import{c as P}from"./element-plus.fcb5dc91.js";import{d as V,bM as j,u as t,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.c062802b.js";import{l as A,d as E}from"./index.fbf661f7.js";import"./@vueuse.0a77614e.js";import"./@element-plus.a03b0c46.js";import"./lodash-es.50da5137.js";import"./dayjs.f435f141.js";import"./axios.cd7dbc38.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.0a06fa01.js";import"./lodash.dbfecd92.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.bd8db83c.js";import"./vue-clipboard3.82df6bce.js";import"./clipboard.ae9f1cf1.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":t(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(t(m),(e,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":t(p)===a}])},x(e.name),3),F(n("div",X,[(o(!0),s(h,null,v(e.sub_button,(u,w)=>(o(),s("div",{key:w,class:"oa-phone-menu-subitem-title"},x(u.name),1))),128))],512),[[I,e.sub_button.length&&e.has_menu]])],8,W))),128)),t(m).length<=2?(o(),s("div",{key:0,class:"flex items-center justify-center flex-1 h-full",onClick:l[0]||(l[0]=(...e)=>t(c)&&t(c)(...e))},[r(d,null,{default:f(()=>[r(g)]),_:1})])):M("",!0)])])}}});const Pe=E($,[["__scopeId","data-v-d95f9d8f"]]);export{Pe as default};
