import{c as P}from"./element-plus.ae09c4a0.js";import{d as V,bM as j,u as e,b as B,ae as _,o,c as s,a as n,W as r,O as f,V as h,a7 as v,Q as D,U as x,P as F,X as I,S as M,bk as N,bj as O}from"./@vue.a7a54728.js";import{u as b}from"./useMenuOa.f0217c08.js";import{l as A,d as E}from"./index.80696382.js";import"./@vueuse.0a77614e.js";import"./@element-plus.a03b0c46.js";import"./lodash-es.bb7dceda.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./wx_oa.1eff64ff.js";import"./lodash.fc1b942f.js";import"./axios.108bc101.js";import"./vue-router.c1c4566f.js";import"./pinia.b401a84e.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.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.f4ae74de.js";const G=i=>(N("data-v-d95f9d8f"),i=i(),O(),i),L={class:"oa-phone mr-[35px]"},z=G(()=>n("div",{class:"oa-phone-content"},null,-1)),Q={class:"flex oa-phone-menu"},U={class:"flex items-center justify-center oa-phone-menu-switch"},W=["onClick"],X={class:"oa-phone-menu-subitem"},$=V({__name:"oa-phone",setup(i){j(y=>({"591d956f":e(k)}));const C=A(),k=B(()=>C.theme||"#4A5DFF"),{menuList:m,menuIndex:p,handleAddMenu:c}=b(b);return(y,l)=>{const S=_("Grid"),d=P,g=_("Plus");return o(),s("div",L,[z,n("div",Q,[n("div",U,[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:D(["flex items-center justify-center flex-1 text-sm oa-phone-menu-item",{"active-menu":e(p)===a}])},x(t.name),3),F(n("div",X,[(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,W))),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 Vt=E($,[["__scopeId","data-v-d95f9d8f"]]);export{Vt as default};
