import{E as u}from"./element-plus.9816852d.js";import{w as d}from"./index.25876831.js";import{d as _,o as r,c as m,U as f,L as b,T as v,a7 as y,O as s,a as h,H as k,K as C,P as V,u as x}from"./@vue.51d7f2d8.js";import{d as B}from"./index.fdc772f5.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.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"./attr.vue_vue_type_script_setup_true_lang.f71efcb8.js";import"./index.c279106f.js";import"./picker.4df01907.js";import"./index.ed3dbb0f.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./picker.5e3ff324.js";import"./index.8276eb7a.js";import"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import"./index.f93942f9.js";import"./index.vue_vue_type_script_setup_true_lang.e9eaddcf.js";import"./usePaging.2ad8e1e6.js";import"./vue3-video-play.b911321b.js";import"./vuedraggable.a2066cae.js";import"./vue.3348ef2c.js";import"./sortablejs.85a0be55.js";import"./content.vue_vue_type_script_setup_true_lang.6586fe25.js";import"./decoration-img.ca92afc4.js";import"./lodash.675f209e.js";import"./axios.54f807ba.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./attr.vue_vue_type_script_setup_true_lang.3cdc81bd.js";import"./content.2b58c816.js";import"./attr.vue_vue_type_script_setup_true_lang.087ed179.js";import"./add-nav.vue_vue_type_script_setup_true_lang.970fac2e.js";import"./content.31ec702c.js";import"./attr.vue_vue_type_script_setup_true_lang.400fa68c.js";import"./content.vue_vue_type_script_setup_true_lang.9da838ec.js";import"./attr.vue_vue_type_script_setup_true_lang.d01577b5.js";import"./content.6328618a.js";import"./decoration.2fae2cb1.js";import"./attr.vue_vue_type_script_setup_true_lang.0fc534ba.js";import"./content.974343fd.js";import"./attr.vue_vue_type_script_setup_true_lang.fceaa072.js";import"./content.vue_vue_type_script_setup_true_lang.3ef37e5c.js";import"./attr.vue_vue_type_script_setup_true_lang.00e826d0.js";import"./content.ae18b10f.js";const D={class:"shadow mx-[30px] pages-preview"},E=["onClick"],N=_({__name:"preview",props:{pageData:{type:Array,default:()=>[]},modelValue:{type:Number,default:0}},emits:["update:modelValue"],setup(e,{emit:l}){const n=(t,i)=>{t.disabled||l("update:modelValue",i)};return(t,i)=>{const c=u;return r(),m("div",D,[f(c,null,{default:b(()=>[(r(!0),m(v,null,y(e.pageData,(o,a)=>(r(),m("div",{key:o.id,class:s(["relative",{"cursor-pointer":!(o!=null&&o.disabled)}]),onClick:p=>n(o,a)},[h("div",{class:s(["absolute w-full h-full z-[100] border-dashed",{select:a==e.modelValue,"border-[#dcdfe6] border-2":!(o!=null&&o.disabled)}])},null,2),k(t.$slots,"default",{},()=>{var p;return[(r(),C(V((p=x(d)[o==null?void 0:o.name])==null?void 0:p.content),{content:o.content,styles:o.styles,key:o.id},null,8,["content","styles"]))]},!0)],10,E))),128))]),_:3})])}}});const Jo=B(N,[["__scopeId","data-v-4eb981b5"]]);export{Jo as default};