import{c as P}from"./element-plus.9cae3cb1.js";import{d as V,bN as N,u as e,b as j,ag as _,o,c as s,a as n,V as r,M as f,U as h,aa as v,P as B,T as x,O as D,W as F,R as I,bl as M,bk as O}from"./@vue.96c135a1.js";import{u as b}from"./useMenuOa.19cdb885.js";import{l as A,d as E}from"./index.7f83e315.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.f4694335.js";import"./@element-plus.07bd0514.js";import"./dayjs.37feae28.js";import"./@amap.8a62addd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./wx_oa.09ee072b.js";import"./lodash.fc1b942f.js";import"./axios.108bc101.js";import"./vue-router.64fdcd9a.js";import"./pinia.aebd7275.js";import"./css-color-function.91b6e704.js";import"./color.d62296c5.js";import"./clone.f2407509.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.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.80787eb0.js";import"./tslib.60310f1a.js";import"./zrender.6f33727c.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.3d7ee361.js";const G=i=>(M("data-v-d95f9d8f"),i=i(),O(),i),L={class:"oa-phone mr-[35px]"},z=G(()=>n("div",{class:"oa-phone-content"},null,-1)),R={class:"flex oa-phone-menu"},T={class:"flex items-center justify-center oa-phone-menu-switch"},U=["onClick"],W={class:"oa-phone-menu-subitem"},$=V({__name:"oa-phone",setup(i){N(y=>({"591d956f":e(k)}));const C=A(),k=j(()=>C.theme||"#4A5DFF"),{menuList:m,menuIndex:p,handleAddMenu:c}=b(b);return(y,l)=>{const g=_("Grid"),d=P,S=_("Plus");return o(),s("div",L,[z,n("div",R,[n("div",T,[r(d,null,{default:f(()=>[r(g)]),_: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",W,[(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),[[F,t.sub_button.length&&t.has_menu]])],8,U))),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(S)]),_:1})])):I("",!0)])])}}});const Pt=E($,[["__scopeId","data-v-d95f9d8f"]]);export{Pt as default};
