import{c as w}from"./element-plus.fa1aa32c.js";import{d as B,bA as P,e as V,a5 as _,o as t,c as o,a as n,V as a,M as f,W as h,a8 as v,Q as j,u as s,U as x,O as A,P as D,S as F,b9 as I,b8 as M}from"./@vue.cab01781.js";import{u as C}from"./useMenuOa.bbb0df8f.js";import{m as N,d as O}from"./index.0abf9e5c.js";import"./@vueuse.724ed0af.js";import"./@element-plus.92b4185f.js";import"./lodash-es.29c53eac.js";import"./dayjs.22a46fd8.js";import"./axios.8058589d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./wx_oa.5b68b7b6.js";import"./lodash.bbe6f09f.js";import"./vue-router.5046cc50.js";import"./pinia.e85e8286.js";import"./vue-demi.bfae2336.js";import"./css-color-function.5bd363c0.js";import"./color.232115c1.js";import"./clone.8f44c0eb.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.404eaa9c.js";import"./vue-clipboard3.19ab9072.js";import"./clipboard.6fb7c109.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0ab41b7b.js";const E=i=>(I("data-v-ca3c4ffd"),i=i(),M(),i),G={class:"oa-phone mr-[35px]"},L=E(()=>n("div",{class:"oa-phone-content"},null,-1)),z={class:"flex oa-phone-menu"},Q={class:"flex items-center justify-center oa-phone-menu-switch"},T=["onClick"],U={class:"oa-phone-menu-subitem"},W={class:"oa-phone-menu-subitem-title"},$=B({__name:"oa-phone",setup(i){P(b=>({"0a33d76e":s(S)}));const y=N(),S=V(()=>y.theme||"#4A5DFF"),{menuList:c,menuIndex:m,handleAddMenu:p}=C(C);return(b,l)=>{const g=_("Grid"),u=w,k=_("Plus");return t(),o("div",G,[L,n("div",z,[n("div",Q,[a(u,null,{default:f(()=>[a(g)]),_:1})]),(t(!0),o(h,null,v(s(c),(e,r)=>(t(),o("div",{key:r,class:"relative flex-1",onClick:d=>m.value=r},[n("div",{class:j(["flex items-center justify-center flex-1 text-sm oa-phone-menu-item",{"active-menu":s(m)===r}])},x(e.name),3),A(n("div",U,[(t(!0),o(h,null,v(e.subButtons,(d,q)=>(t(),o("div",W,x(d.name),1))),256))],512),[[D,e.subButtons.length&&e.menuType!=1]])],8,T))),128)),s(c).length<=2?(t(),o("div",{key:0,class:"flex items-center justify-center flex-1 h-full",onClick:l[0]||(l[0]=(...e)=>s(p)&&s(p)(...e))},[a(u,null,{default:f(()=>[a(k)]),_:1})])):F("",!0)])])}}});const we=O($,[["__scopeId","data-v-ca3c4ffd"]]);export{we as default};
