import{c as V}from"./element-plus.ab0703f2.js";import{d as j,bM as F,u as e,b as P,ah as _,o,c as s,a as n,W as r,Q as f,F as h,a9 as v,K as B,V as x,R as D,X as I,T as M,bk as N,bj as A}from"./@vue.340249d8.js";import{u as b}from"./useMenuOa.a39e89f3.js";import{k as E,d as G}from"./index.5ab034a5.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./wx_oa.91add5dc.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";const L=i=>(N("data-v-d95f9d8f"),i=i(),A(),i),O={class:"oa-phone mr-[35px]"},z=L(()=>n("div",{class:"oa-phone-content"},null,-1)),K={class:"flex oa-phone-menu"},Q={class:"flex items-center justify-center oa-phone-menu-switch"},R=["onClick"],T={class:"oa-phone-menu-subitem"},W=j({__name:"oa-phone",setup(i){F(y=>({"591d956f":e(C)}));const k=E(),C=P(()=>k.theme||"#4A5DFF"),{menuList:m,menuIndex:p,handleAddMenu:c}=b(b);return(y,l)=>{const S=_("Grid"),d=V,g=_("Plus");return o(),s("div",O,[z,n("div",K,[n("div",Q,[r(d,null,{default:f(()=>[r(S)]),_:1})]),(o(!0),s(h,null,v(e(m),(t,a)=>(o(),s("div",{key:a,class:"relative flex-1",onClick:u=>p.value=a},[n("div",{class:B(["flex items-center justify-center flex-1 text-sm oa-phone-menu-item",{"active-menu":e(p)===a}])},x(t.name),3),D(n("div",T,[(o(!0),s(h,null,v(t.sub_button,(u,w)=>(o(),s("div",{key:w,class:"oa-phone-menu-subitem-title"},x(u.name),1))),128))],512),[[I,t.sub_button.length&&t.has_menu]])],8,R))),128)),e(m).length<=2?(o(),s("div",{key:0,class:"flex items-center justify-center flex-1 h-full",onClick:l[0]||(l[0]=(...t)=>e(c)&&e(c)(...t))},[r(d,null,{default:f(()=>[r(g)]),_:1})])):M("",!0)])])}}});const jt=G(W,[["__scopeId","data-v-d95f9d8f"]]);export{jt as default};