import{_ as V}from"./index.67e98804.js";import{I as E,E as f,w as C}from"./element-plus.fcb5dc91.js";import{c as T,d as k}from"./decoration.d32bf13f.js";import F from"./menu.fdf4eeb9.js";import{_ as M}from"./attr.vue_vue_type_script_setup_true_lang.465cf672.js";import P from"./content.e2af61a4.js";import{d as v,r as A,a0 as I,b as N,w as R,ah as O,o as p,c as S,a as s,W as i,O as n,u as e,j as U,M as c,R as b,ak as j,al as z,P as L,T as W}from"./@vue.a7a54728.js";import{d as $}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"./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";import"./index.412763d8.js";import"./picker.d26c8ee4.js";import"./index.vue_vue_type_script_setup_true_lang.9f140467.js";import"./usePaging.6d054449.js";import"./article.d154e0cc.js";import"./index.94abbaf6.js";import"./picker.57293a6f.js";import"./index.9c8e4bc3.js";import"./index.ee4b171a.js";import"./index.vue_vue_type_script_setup_true_lang.d81fea66.js";import"./vue3-video-play.bb08d671.js";import"./vuedraggable.bcfc1549.js";import"./vue.24a4941e.js";import"./sortablejs.4b9b4228.js";import"./index.vue_vue_type_script_setup_true_lang.1a9e8b05.js";import"./decoration-img.30403b06.js";const q={attr:M,content:P},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"},Q={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=I({[1]:{id:1,type:1,name:"\u79FB\u52A8\u7AEF\u5BFC\u822A\u680F",data:{style:{default_color:"",selected_color:""},list:[]},component:q}}),r=N(()=>l[a.value]),_=async()=>{const t=await T({type:a.value});l[1].data=t},x=async()=>{const{data:t}=r.value;await k({...t}),_()};return R(a,()=>{_()},{immediate:!0}),(t,m)=>{const h=E,u=f,w=f,y=C,g=V,B=O("perms");return p(),S("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(F,{class:"!h-full flex-none",modelValue:e(a),"onUpdate:modelValue":m[0]||(m[0]=o=>U(a)?a.value=o:null),menus:e(l)},null,8,["modelValue","menus"])]),_:1}),s("div",Q,[s("div",X,[i(u,{height:"100%"},{default:n(()=>{var o;return[(p(),c(b((o=e(r).component)==null?void 0:o.content),j(z(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]=D=>e(r).data=D)},null,8,["modelValue"]))])]}),_:1})])]),_:1})])]),L((p(),c(g,{fixed:!0},{default:n(()=>[i(y,{type:"primary",onClick:x},{default:n(()=>[W("\u4FDD\u5B58")]),_:1})]),_:1})),[[B,["decorate:tabbar:save"]]])])}}});const oo=$(tt,[["__scopeId","data-v-f7a9692b"]]);export{oo as default};
