import{d as V}from"./element-plus-z3MwpXC9.js";import{d as w,bI as P,u as e,b as j,ah as d,o,c as s,a as n,V as r,M as _,U as h,aa as f,P as B,T as v,O as D,W as F,R as M}from"./@vue-TMcuEboY.js";import{e as N,d as O}from"./index-DXEGVToZ.js";import{u as x}from"./useMenuOa-CGyGL28i.js";import"./lodash-es-R-kYiKr_.js";import"./async-validator-DKvM95Vc.js";import"./@element-plus-DRBc1Xzw.js";import"./dayjs-CMfar2R3.js";import"./balanced-match-mNcR6oh4.js";import"./@ctrl-r5W6hzzQ.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@popperjs-D9SI2xQl.js";import"./nprogress-Cgf5DU8x.js";import"./vue-router-D4MxfuQi.js";import"./pinia-ebUeA1L2.js";import"./axios-C-n2IhIP.js";import"./lodash-BtPWuHkK.js";import"./@vueuse-BQYVjZ5N.js";import"./css-color-function-rJvg8h-6.js";import"./color-B0v57BL7.js";import"./clone-CuIhj1wH.js";import"./color-convert-BGgJB5UM.js";import"./color-name-BQ5IbGbl.js";import"./color-string-BhgG7-8u.js";import"./ms-CzQ2E3wO.js";import"./vue-clipboard3-8CNoFg4V.js";import"./clipboard-Dch_ozqB.js";import"./echarts-BR_QmBtV.js";import"./tslib-BDyQ-Jie.js";import"./zrender-B-CeXLwU.js";import"./highlight.js-D5uP1KGk.js";import"./@highlightjs-KJi31KWJ.js";import"./wx_oa-BEHpACEm.js";const A={class:"oa-phone mr-[35px]"},E={class:"flex oa-phone-menu"},G={class:"flex items-center justify-center oa-phone-menu-switch"},L=["onClick"],z={class:"oa-phone-menu-subitem"},I=w({__name:"oa-phone",setup(R){P(k=>({"5d8c0dd7":e(b)}));const C=N(),b=j(()=>C.theme||"#4A5DFF"),{menuList:m,menuIndex:p,handleAddMenu:l}=x(x);return(k,i)=>{const y=d("Grid"),c=V,g=d("Plus");return o(),s("div",A,[i[1]||(i[1]=n("div",{class:"oa-phone-content"},null,-1)),n("div",E,[n("div",G,[r(c,null,{default:_(()=>[r(y)]),_:1})]),(o(!0),s(h,null,f(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}])},v(t.name),3),D(n("div",z,[(o(!0),s(h,null,f(t.sub_button,(u,S)=>(o(),s("div",{key:S,class:"oa-phone-menu-subitem-title"},v(u.name),1))),128))],512),[[F,t.sub_button.length&&t.has_menu]])],8,L))),128)),e(m).length<=2?(o(),s("div",{key:0,class:"flex items-center justify-center flex-1 h-full",onClick:i[0]||(i[0]=(...t)=>e(l)&&e(l)(...t))},[r(c,null,{default:_(()=>[r(g)]),_:1})])):M("",!0)])])}}}),kt=O(I,[["__scopeId","data-v-e8e53db5"]]);export{kt as default};
