import{d as _,a as w,r as y,b_ as c,aj as g,o,c as l,F as h,k,R as C,i as f,a$ as I,Q as r,h as m,t as x,Y as D,s as S}from"./C895UCSy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="04635654-d84a-4d9c-8d9e-9148ffd8abd0",e._sentryDebugIdIdentifier="sentry-dbid-04635654-d84a-4d9c-8d9e-9148ffd8abd0")}catch{}})();const L=["onClick"],N={class:"ml5 os-switch-item-text"},z=_({name:"OsSwitch",__name:"Index",props:{type:{type:String,default:"light"},winLabel:{type:String,default:""},macLabel:{type:String,default:""},width:{type:String,default:"272px"}},emits:["tabClick"],setup(e,{emit:s}){const d=s,n=e,u=w().value,p=y([{value:"win",icon:"icon-s-win",label:n.winLabel||u.common.win,active:c().value==="win"},{value:"mac",icon:"icon-s-mac",label:n.macLabel||u.common.mac,active:c().value==="mac"}]),b=t=>{p.value.forEach(i=>{i.active=i.value===t}),c().value=t,d("tabClick",t)};return(t,i)=>{const v=g("track-label");return o(),l("div",{class:r(["flex-inline items-center b-rd-14 cursor-pointer os-switch",n.type?n.type:"light"]),style:D({"min-width":n.width})},[(o(!0),l(h,null,k(f(p),a=>C((o(),l("div",{key:a.value,class:r(["pl20 pr20 pt2 pb2 b-rd-14 flex items-center justify-center w-50% os-switch-item",{active:a.active}]),onClick:B=>b(a.value)},[m("i",{class:r(["iconfont-single font-size-19 line-height-none",a.icon])},null,2),m("span",N,x(a.label),1)],10,L)),[[v,("getComponentsName"in t?t.getComponentsName:f(I))(a.value)]])),128))],6)}}}),O=S(z,[["__scopeId","data-v-c0a37eb6"]]);export{O as _};
//# sourceMappingURL=3pSPN33r.js.map
