import{w as B,I as x}from"./element-plus.9cae3cb1.js";import{a as E}from"./vue-router.64fdcd9a.js";import k from"./preview-pc.80904cec.js";import"./index.c13ab811.js";import{s as h,a as C}from"./decoration.13610fd4.js";import"./lodash.d6737109.js";import"./dayjs.37feae28.js";import{o as V}from"./@element-plus.07bd0514.js";import{f as P,d as I}from"./index.60ed7c6d.js";import{d as v,_ as N,r as d,b as A,w as O,aq as S,o as l,c as M,V as p,M as m,a as _,u as s,j,S as f,O as J,L as R}from"./@vue.96c135a1.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.f4694335.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./@amap.8a62addd.js";import"./attr.053cd853.js";import"./index.ca7c40ee.js";import"./picker.cc45538c.js";import"./index.vue_vue_type_script_setup_true_lang.32913a1a.js";import"./usePaging.af60c1ec.js";import"./article.e87d8e4e.js";import"./index.3b15f80f.js";import"./picker.cbc3f1d2.js";import"./index.a779bb61.js";import"./index.96727c29.js";import"./index.vue_vue_type_script_setup_true_lang.12030bc1.js";import"./vue3-video-play.f32fd690.js";import"./vuedraggable.7c3813d2.js";import"./vue.19f894a8.js";import"./sortablejs.a173b1ef.js";import"./axios.c6b9fe3d.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"./content.vue_vue_type_script_setup_true_lang.6324858d.js";import"./decoration-img.0202a9bd.js";import"./attr.vue_vue_type_script_setup_true_lang.b1ad5f8b.js";import"./content.f649144d.js";import"./attr.vue_vue_type_script_setup_true_lang.fade3945.js";import"./content.vue_vue_type_script_setup_true_lang.2e52416d.js";import"./attr.vue_vue_type_script_setup_true_lang.5b0f3fb8.js";import"./add-nav.vue_vue_type_script_setup_true_lang.25853e88.js";import"./content.158768ce.js";import"./attr.vue_vue_type_script_setup_true_lang.3799f6ab.js";import"./content.vue_vue_type_script_setup_true_lang.8edadde9.js";import"./attr.vue_vue_type_script_setup_true_lang.b613c074.js";import"./content.a001812f.js";import"./attr.vue_vue_type_script_setup_true_lang.4981d02e.js";import"./index.vue_vue_type_script_setup_true_lang.82f57aae.js";import"./content.3f7966dd.js";import"./attr.afaf7ad3.js";import"./content.vue_vue_type_script_setup_true_lang.e8d2b86a.js";import"./attr.vue_vue_type_script_setup_true_lang.70469484.js";import"./content.974b864e.js";import"./attr.vue_vue_type_script_setup_true_lang.eb5f1d2b.js";import"./content.vue_vue_type_script_setup_true_lang.7b014d43.js";import"./attr.vue_vue_type_script_setup_true_lang.ac2b53d1.js";import"./content.b1c6c673.js";const T={class:"decoration-pages min-w-[1100px]"},q={class:"flex justify-between w-full"},H={class:"flex-1 h-full"},L=v({name:"decorationPc"}),U=v({...L,setup(W){const D=E();let u;(t=>{t.HOME="4"})(u||(u={}));const r=N({[4]:{id:4,type:4,name:"\u9996\u9875\u88C5\u4FEE",pageData:[]}}),e=d("4"),a=d(0),i=A(()=>{var t,o;return(o=(t=r[e.value])==null?void 0:t.pageData)!=null?o:[]}),g=async()=>{await P.confirm("\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\uFF1F\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002"),D.back()},n=async()=>{const t=await C({id:e.value});r[String(t.id)].pageData=JSON.parse(t.data),a.value=i.value.findIndex(o=>!o.disabled)},w=async()=>{await h({...r[e.value],data:JSON.stringify(r[e.value].pageData)}),n()};return O(e,()=>{a.value=i.value.findIndex(t=>!t.disabled),n()},{immediate:!0}),(t,o)=>{const c=B,F=x,b=S("perms");return l(),M("div",T,[p(F,{shadow:"never",class:"!border-none !rounded-none !bg-primary"},{default:m(()=>[_("div",q,[p(c,{link:"",type:"primary",icon:s(V),style:{color:"#fff"},onClick:g},{default:m(()=>[f(" \u8FD4\u56DE ")]),_:1},8,["icon"]),J((l(),R(c,{onClick:w},{default:m(()=>[f(" \u4FDD\u5B58 ")]),_:1})),[[b,["decorate:pages:save"]]])])]),_:1}),_("div",H,[p(k,{modelValue:s(a),"onUpdate:modelValue":o[0]||(o[0]=y=>j(a)?a.value=y:null),pageData:s(i)},null,8,["modelValue","pageData"])])])}}});const lo=I(U,[["__scopeId","data-v-e8bbd032"]]);export{lo as default};
