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.403d1c02.js";import"./index.941dcb89.js";import{s as h,a as C}from"./decoration.33b7030a.js";import"./lodash.fc1b942f.js";import"./dayjs.37feae28.js";import{o as V}from"./@element-plus.07bd0514.js";import{f as P,d as I}from"./index.7f83e315.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.97c5f58e.js";import"./index.5e004876.js";import"./picker.8033c433.js";import"./index.vue_vue_type_script_setup_true_lang.32913a1a.js";import"./usePaging.af60c1ec.js";import"./article.45ce958b.js";import"./index.b375235f.js";import"./picker.b9386bc9.js";import"./index.629c101d.js";import"./index.8254d09d.js";import"./index.vue_vue_type_script_setup_true_lang.12030bc1.js";import"./vue3-video-play.f32fd690.js";import"./vuedraggable.5c71a005.js";import"./vue.80c12e94.js";import"./sortablejs.1168e113.js";import"./axios.108bc101.js";import"./pinia.aebd7275.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.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.c446f05b.js";import"./decoration-img.27d0ec81.js";import"./attr.vue_vue_type_script_setup_true_lang.c824aad9.js";import"./content.ac7b56ee.js";import"./attr.vue_vue_type_script_setup_true_lang.81a826e9.js";import"./content.vue_vue_type_script_setup_true_lang.0fb4cf39.js";import"./attr.vue_vue_type_script_setup_true_lang.82acebf7.js";import"./add-nav.vue_vue_type_script_setup_true_lang.36e647ff.js";import"./content.59d7db50.js";import"./attr.vue_vue_type_script_setup_true_lang.ae0f9956.js";import"./content.vue_vue_type_script_setup_true_lang.faea6e3e.js";import"./attr.vue_vue_type_script_setup_true_lang.b613c074.js";import"./content.f343192a.js";import"./attr.vue_vue_type_script_setup_true_lang.b64098f1.js";import"./index.vue_vue_type_script_setup_true_lang.82f57aae.js";import"./content.a25397ca.js";import"./attr.e3f16144.js";import"./content.vue_vue_type_script_setup_true_lang.84b28eea.js";import"./attr.vue_vue_type_script_setup_true_lang.70469484.js";import"./content.e5b7c05d.js";import"./attr.vue_vue_type_script_setup_true_lang.2ac0e6a3.js";import"./content.vue_vue_type_script_setup_true_lang.42e01372.js";import"./attr.vue_vue_type_script_setup_true_lang.ac2b53d1.js";import"./content.5c8c6336.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};
