import{c as P}from"./element-plus.f958bb38.js";import{d as V,by as j,e as B,a4 as _,o as e,c as o,a as n,U as r,L as f,V as h,a7 as v,u as s,R as D,P as F,T as x,M as I,O as L,b7 as M,b6 as N}from"./@vue.e8706010.js";import{u as y}from"./useMenuOa.cbd108b2.js";import{l as O,d as A}from"./index.53b3eb4a.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.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.cfaeb9f6.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const E=i=>(M("data-v-d95f9d8f"),i=i(),N(),i),G={class:"oa-phone mr-[35px]"},z=E(()=>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"],$={class:"oa-phone-menu-subitem"},q=V({__name:"oa-phone",setup(i){j(k=>({"591d956f":s(b)}));const C=O(),b=B(()=>C.theme||"#4A5DFF"),{menuList:m,menuIndex:p,handleAddMenu:c}=y(y);return(k,l)=>{const S=_("Grid"),d=P,g=_("Plus");return e(),o("div",G,[z,n("div",R,[n("div",T,[r(d,null,{default:f(()=>[r(S)]),_:1})]),(e(!0),o(h,null,v(s(m),(t,a)=>(e(),o("div",{key:a,class:"relative flex-1",onClick:u=>p.value=a},[n("div",{class:F(["flex items-center justify-center flex-1 text-sm oa-phone-menu-item",{"active-menu":s(p)===a}])},x(t.name),3),I(n("div",$,[(e(!0),o(h,null,v(t.sub_button,(u,w)=>(e(),o("div",{key:w,class:"oa-phone-menu-subitem-title"},x(u.name),1))),128))],512),[[L,t.sub_button.length&&t.has_menu]])],8,U))),128)),s(m).length<=2?(e(),o("div",{key:0,class:"flex items-center justify-center flex-1 h-full",onClick:l[0]||(l[0]=(...t)=>s(c)&&s(c)(...t))},[r(d,null,{default:f(()=>[r(g)]),_:1})])):D("",!0)])])}}});const jt=A(q,[["__scopeId","data-v-d95f9d8f"]]);export{jt as default};