import{w as B,N as x}from"./element-plus.55d71530.js";import{a as E}from"./vue-router.64fdcd9a.js";import k from"./preview-pc.03af6b7e.js";import"./index.6459b344.js";import{s as h,a as C}from"./decoration.6e17be7b.js";import"./lodash.d6737109.js";import"./dayjs.37feae28.js";import{o as V}from"./@element-plus.07bd0514.js";import{f as N,d as P}from"./index.e2bd5212.js";import{d as v,_ as A,r as d,b as I,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.24fb838c.js";import"./index.54e5bacf.js";import"./picker.7465cadc.js";import"./index.vue_vue_type_script_setup_true_lang.39bbbfbb.js";import"./usePaging.af60c1ec.js";import"./article.b949a73f.js";import"./index.e651cfa0.js";import"./picker.33f9b871.js";import"./index.cd0dc544.js";import"./index.00eda3af.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"./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.54817871.js";import"./decoration-img.030e6144.js";import"./attr.vue_vue_type_script_setup_true_lang.5c368662.js";import"./content.67680b54.js";import"./attr.vue_vue_type_script_setup_true_lang.a2d174d6.js";import"./content.vue_vue_type_script_setup_true_lang.6b09cc99.js";import"./attr.vue_vue_type_script_setup_true_lang.29209ccf.js";import"./add-nav.vue_vue_type_script_setup_true_lang.cf6de6fe.js";import"./content.31ef1433.js";import"./attr.vue_vue_type_script_setup_true_lang.a3708709.js";import"./content.vue_vue_type_script_setup_true_lang.dc15f896.js";import"./attr.vue_vue_type_script_setup_true_lang.b613c074.js";import"./content.b4b40506.js";import"./attr.vue_vue_type_script_setup_true_lang.67436a61.js";import"./index.vue_vue_type_script_setup_true_lang.bc6f35ed.js";import"./content.7cebf586.js";import"./attr.60de1684.js";import"./content.vue_vue_type_script_setup_true_lang.15f343da.js";import"./attr.vue_vue_type_script_setup_true_lang.70469484.js";import"./content.37fa7e80.js";import"./attr.vue_vue_type_script_setup_true_lang.79d1ad3c.js";import"./content.vue_vue_type_script_setup_true_lang.0011042f.js";import"./attr.vue_vue_type_script_setup_true_lang.ac2b53d1.js";import"./content.2d07d8b6.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=A({[4]:{id:4,type:4,name:"\u9996\u9875\u88C5\u4FEE",pageData:[]}}),e=d("4"),a=d(0),i=I(()=>{var t,o;return(o=(t=r[e.value])==null?void 0:t.pageData)!=null?o:[]}),g=async()=>{await N.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=P(U,[["__scopeId","data-v-e8bbd032"]]);export{lo as default};
