import{w as c}from"./index.6a2560b6.js";import{d as u,o as r,c as p,W as d,a8 as _,Q as s,a as f,$ as y,I as v,L as b,R as k,u as h}from"./@vue.cab01781.js";import{d as C}from"./index.0abf9e5c.js";import"./attr.vue_vue_type_script_setup_true_lang.bf02be3c.js";import"./element-plus.fa1aa32c.js";import"./@vueuse.724ed0af.js";import"./@element-plus.92b4185f.js";import"./lodash-es.29c53eac.js";import"./dayjs.22a46fd8.js";import"./axios.8058589d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.a5935337.js";import"./picker.a8e8312e.js";import"./index.082aefea.js";import"./picker.9777ec45.js";import"./index.a2d4596a.js";import"./usePaging.c00588f1.js";import"./index.8930a171.js";import"./index.vue_vue_type_script_setup_true_lang.2ded5aed.js";import"./vue3-video-play.05975c53.js";import"./vuedraggable.5917840d.js";import"./vue.a15b7233.js";import"./sortablejs.c69601cb.js";import"./content.vue_vue_type_script_setup_true_lang.ecbe13fb.js";import"./decoration-img.86a83dbc.js";import"./lodash.bbe6f09f.js";import"./vue-router.5046cc50.js";import"./pinia.e85e8286.js";import"./vue-demi.bfae2336.js";import"./css-color-function.5bd363c0.js";import"./color.232115c1.js";import"./clone.8f44c0eb.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.404eaa9c.js";import"./vue-clipboard3.19ab9072.js";import"./clipboard.6fb7c109.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0ab41b7b.js";import"./attr.vue_vue_type_script_setup_true_lang.468dcca5.js";import"./content.d9290133.js";import"./attr.vue_vue_type_script_setup_true_lang.35cd56fc.js";import"./add-nav.vue_vue_type_script_setup_true_lang.46ae1c21.js";import"./content.a65a57b9.js";import"./attr.vue_vue_type_script_setup_true_lang.5c3cb791.js";import"./content.vue_vue_type_script_setup_true_lang.6cae415d.js";import"./attr.vue_vue_type_script_setup_true_lang.06a2fa18.js";import"./content.eee78eea.js";import"./decoration.be3abd00.js";import"./attr.vue_vue_type_script_setup_true_lang.0b87e513.js";import"./content.36207187.js";import"./attr.vue_vue_type_script_setup_true_lang.028dddc7.js";import"./content.vue_vue_type_script_setup_true_lang.c42941ea.js";import"./attr.vue_vue_type_script_setup_true_lang.0583d8bc.js";import"./content.eea90bde.js";const V={class:"pages-preview"},B=["onClick"],z=u({__name:"preview-pc",props:{pageData:{type:Array,default:()=>[]},modelValue:{type:Number,default:0}},emits:["update:modelValue"],setup(m,{emit:l}){const n=(t,i)=>{t.disabled||l("update:modelValue",i)};return(t,i)=>(r(),p("div",V,[(r(!0),p(d,null,_(m.pageData,(o,a)=>(r(),p("div",{key:o.id,class:s(["relative",{"cursor-pointer":!(o!=null&&o.disabled)}]),onClick:e=>n(o,a)},[f("div",{class:s(["absolute w-full h-full z-[100] border-dashed",{select:a==m.modelValue,"border-[#dcdfe6] border-2":!(o!=null&&o.disabled)}]),style:y(o.styles)},null,6),v(t.$slots,"default",{},()=>{var e;return[(r(),b(k((e=h(c)[o==null?void 0:o.name])==null?void 0:e.content),{content:o.content,styles:o.styles,key:o.id},null,8,["content","styles"]))]},!0)],10,B))),128))]))}});const Eo=C(z,[["__scopeId","data-v-1822c05c"]]);export{Eo as default};
