System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./index-legacy112.js?v=1761009159"],function(e,t){"use strict";var n,a,o,r,u,l,i,d,s,c,f,v,h,m,p,y,g,b,w,_,C,x,k,L,I,$,j,A,B,E,M,S,O,R,T,V,z,F,W;return{setters:[function(e){n=e.u,a=e.bF,o=e.C,r=e.Q,u=e._},function(e){l=e.c,i=e.X,d=e.Y,s=e.b,c=e.aG,f=e.at,v=e.r,h=e.t,m=e.g,p=e.w,y=e.a1,g=e.q,b=e.a6,w=e.aO,_=e.v,C=e.x,x=e.z,k=e.F,L=e.b0,I=e.y,$=e.M,j=e.D,A=e.N,B=e.B,E=e.I,M=e.J,S=e.e,O=e.O,R=e.K,T=e.aP,V=e.d,z=e.az,F=e.A},function(e){W=e._}],execute:function(){var q={class:"flex flex-col p-[1.2rem]"},D=["onClick"],G=l({__name:"index",props:i({options:{default:function(){return[]}},store:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},showContent:{type:Boolean,default:!0},contentClass:{default:"router-tabs-content"}},{modelValue:{},modelModifiers:{}}),emits:i(["cutTab","afterLeave"],["update:modelValue"]),setup:function(e,u){var l=u.emit,i=V(function(){return r(function(){return t.import("./index-legacy177.js?v=1761009159")},void 0,t.meta.url)}),G=e,J=l,K=d(e,"modelValue"),N=n(),P=N.mainWidth,Q=(N.forceLtd,N.aliyunEcsLtd),U=N.payment,X=s(),Y=c(),H=f(G.options),Z=v(!0),ee=v(!1),te=v("0px"),ne=v(0),ae=v(),oe=v(),re="".concat(X.path.split("/")[1],"_router").toUpperCase(),ue=h(U.value).authType,le=m(function(){return"router-tabs-content"===G.contentClass});p(function(){return X.name},function(){if(ce())se(X.name),K.value=X.name;else{var e=localStorage.getItem(re)||H.value[0].name;Y.push({name:e}),se(e),K.value=e}});var ie=function(e){var t=e.target.offsetLeft,n=e.target.offsetWidth;te.value="".concat(t+n-22,"px"),ee.value=!0},de=y(ae,function(e){var t=e[0].contentRect.width;ne.value=t,Z.value=P.value-320>=ne.value}),se=function(e){localStorage.setItem(re,e)},ce=function(){var e=X.path.split("/");return e.length>2&&""!=e[2]},fe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];K.value=e,t&&se(e),X.name!==e&&n&&Y.push({name:e})};return p(function(){return o.value},function(e){var t,n=e.find(function(e){return-1!==X.path.indexOf(e.path)});if(null!=n&&n.children&&Array.isArray(n.children)&&H.value.forEach(function(e){var t=n.children.find(function(t){return e.path===t.name});e.show=!t||t.show}),null===(t=H.value.find(function(e){return e.name===X.name}))||void 0===t||!t.show){var a=H.value.filter(function(e){return e.show});a&&a.length&&fe(a[0].name)}},{immediate:!0}),p(P,function(){Z.value=P.value-320>=ne.value}),g(function(){var e,t,n,o=localStorage.getItem(re);if(H.value.length||(H.value=a(null===(e=X.matched[1])||void 0===e?void 0:e.children,"array",[])),"/mail"===(null===(t=X.matched[1])||void 0===t?void 0:t.path)&&H.value.forEach(function(e){e.show=!0}),"/vhost"===(null===(n=X.matched[1])||void 0===n?void 0:n.path)&&H.value.forEach(function(e){e.show=!0}),G.store)return ce()?fe(X.name):fe(o||H.value[0].name)}),b(function(){de.stop()}),function(e,t){var n=W,a=z,o=w("router-view");return _(),C("div",q,[x("div",{class:R(["header-tabs",{disabled:e.disabled}])},[x("div",{ref_key:"headerChildContentRef",ref:ae,class:"flex flex-wrap"},[(_(!0),C(k,null,L(I(H),function(e,n){var a,o;return _(),C(k,{key:n},[e.show?(_(),C("div",{key:0,ref_for:!0,ref_key:"tabListRef",ref:oe,class:R(["header-child-tab",{"active-tab":K.value===e.name,"!hidden":null==e||null===(a=e.meta)||void 0===a?void 0:a.ignore}]),onClick:function(t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];G.disabled||(K.value!==e||t)&&(se(e),K.value=e,Y.push({name:e}),J("cutTab",e))}(e.name)},onMouseenter:ie,onMouseleave:t[0]||(t[0]=function(e){return ee.value=!1})},F(null===(o=e.meta)||void 0===o?void 0:o.title),43,D)):j("",!0)],64)}),128))],512),e.$slots.right?$(e.$slots,"right",{key:0},void 0,!0):j("",!0),e.$slots.right?j("",!0):(_(),A(a,{key:1,width:"580",disabled:"free"!==I(ue),"show-arrow":!1,"popper-style":"padding: 0;border-radius: var(--el-border-radius-round);overflow: hidden;","popper-class":"el-product-state-popover"},{reference:B(function(){return[E(S(n,{"is-home":!0,"disable-pro":!0},null,512),[[M,I(Z)&&!I(Q)]])]}),default:B(function(){return[(_(),A(O(I(i))))]}),_:1},8,["disabled"]))],2),e.showContent?(_(),C("div",{key:0,class:R(["",{"module-ui":I(le),"mt-[1.2rem]":I(le)}])},[e.$slots.default?(_(),C("div",{key:0,class:R(e.contentClass)},[$(e.$slots,"default",{},void 0,!0)],2)):(_(),C("div",{key:1,class:R(e.contentClass)},[S(o,null,{default:B(function(e){var n=e.Component;return[S(T,{name:"fade",mode:"out-in",onAfterLeave:t[1]||(t[1]=function(e){return J("afterLeave")})},{default:B(function(){return[(_(),A(O(n)))]}),_:2},1024)]}),_:1})],2))],2)):j("",!0)])}}});e("_",u(G,[["__scopeId","data-v-c2d1147c"]]))}}});
