import{_ as D}from"./index.dd27da2c.js";import{N as E,E as f,w as C}from"./element-plus.55d71530.js";import{c as T,d as F}from"./decoration.c1772ed9.js";import k from"./menu.efa9c46c.js";import{_ as M}from"./attr.vue_vue_type_script_setup_true_lang.49a0dd03.js";import N from"./content.aa7515fd.js";import{d as v,r as A,_ as P,b as S,w as I,aq as L,o as p,c as O,a as s,V as i,M as n,u as e,j as R,L as c,Q as b,al as U,am as j,O as q,S as z}from"./@vue.96c135a1.js";import{d as Q}from"./index.b7f6427b.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"./lodash.d6737109.js";import"./axios.c6b9fe3d.js";import"./vue-router.64fdcd9a.js";import"./pinia.aebd7275.js";import"./css-color-function.7f53c13d.js";import"./color.4952d479.js";import"./clone.dd01d7ea.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";import"./index.630379b3.js";import"./picker.0e27e617.js";import"./index.vue_vue_type_script_setup_true_lang.39bbbfbb.js";import"./usePaging.af60c1ec.js";import"./article.ec4dee19.js";import"./index.9939838f.js";import"./picker.76cdcf9b.js";import"./index.7e1cd87f.js";import"./index.7f807500.js";import"./index.vue_vue_type_script_setup_true_lang.bc0f922f.js";import"./vue3-video-play.f32fd690.js";import"./vuedraggable.7c3813d2.js";import"./vue.19f894a8.js";import"./sortablejs.a173b1ef.js";import"./index.vue_vue_type_script_setup_true_lang.bc6f35ed.js";import"./decoration-img.6393121f.js";const $={attr:M,content:N},G={class:"decoration-tabbar"},H={class:"flex-1 min-h-0 w-full"},J={class:"h-full"},K={class:"flex min-w-[900px] scroll-view-content"},W={class:"flex-1 pages-preview-box"},X={class:"pages-preview mx-[30px]"},Y={class:"px-5 pb-5"},Z=v({name:"decorationTabbar"}),tt=v({...Z,setup(ot){let d;(t=>{t.MOBILE="1",t.PC="2"})(d||(d={}));const a=A("1"),l=P({[1]:{id:1,type:1,name:"\u79FB\u52A8\u7AEF\u5BFC\u822A\u680F",data:{style:{default_color:"",selected_color:""},list:[]},component:$}}),r=S(()=>l[a.value]),_=async()=>{const t=await T({type:a.value});l[1].data=t},x=async()=>{const{data:t}=r.value;await F({...t}),_()};return I(a,()=>{_()},{immediate:!0}),(t,m)=>{const h=E,u=f,w=f,y=C,g=D,V=L("perms");return p(),O("div",G,[s("div",H,[s("div",J,[i(w,null,{default:n(()=>[s("div",K,[i(h,{shadow:"never",class:"!border-none flex","body-style":{"padding-right":0}},{default:n(()=>[i(k,{class:"!h-full flex-none",modelValue:e(a),"onUpdate:modelValue":m[0]||(m[0]=o=>R(a)?a.value=o:null),menus:e(l)},null,8,["modelValue","menus"])]),_:1}),s("div",W,[s("div",X,[i(u,{height:"100%"},{default:n(()=>{var o;return[(p(),c(b((o=e(r).component)==null?void 0:o.content),U(j(e(r).data)),null,16))]}),_:1})])]),i(u,{class:"attr-setting flex-none"},{default:n(()=>{var o;return[s("div",Y,[(p(),c(b((o=e(r).component)==null?void 0:o.attr),{modelValue:e(r).data,"onUpdate:modelValue":m[1]||(m[1]=B=>e(r).data=B)},null,8,["modelValue"]))])]}),_:1})])]),_:1})])]),q((p(),c(g,{fixed:!0},{default:n(()=>[i(y,{type:"primary",onClick:x},{default:n(()=>[z("\u4FDD\u5B58")]),_:1})]),_:1})),[[V,["decorate:tabbar:save"]]])])}}});const oo=Q(tt,[["__scopeId","data-v-f7a9692b"]]);export{oo as default};
