import{E as u}from"./element-plus.b75f72d9.js";import{w as d}from"./index.1112220f.js";import{d as _,o as r,c as p,V as f,M as v,W as y,a8 as b,Q as s,a as h,I as k,L as C,R as V,u as x}from"./@vue.cab01781.js";import{d as B}from"./index.0d74f100.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"./attr.vue_vue_type_script_setup_true_lang.d7dd0d42.js";import"./index.f27f3dee.js";import"./picker.8e894bcb.js";import"./index.dac3ed42.js";import"./picker.107bab6f.js";import"./index.cdf981e8.js";import"./usePaging.0756ad8e.js";import"./index.606d6cf8.js";import"./index.vue_vue_type_script_setup_true_lang.f20a4aac.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.d3816776.js";import"./decoration-img.f3232894.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.2cd39c40.js";import"./content.2f792a07.js";import"./attr.vue_vue_type_script_setup_true_lang.80149812.js";import"./add-nav.vue_vue_type_script_setup_true_lang.80265493.js";import"./content.aa5bdcda.js";import"./attr.vue_vue_type_script_setup_true_lang.5cf85274.js";import"./content.vue_vue_type_script_setup_true_lang.a4c4300f.js";import"./attr.vue_vue_type_script_setup_true_lang.06a2fa18.js";import"./content.3afdb627.js";import"./decoration.da354311.js";import"./attr.vue_vue_type_script_setup_true_lang.0b87e513.js";import"./content.ffac7358.js";import"./attr.vue_vue_type_script_setup_true_lang.7ba69e78.js";import"./content.vue_vue_type_script_setup_true_lang.8974c32f.js";import"./attr.vue_vue_type_script_setup_true_lang.0583d8bc.js";import"./content.1427fe25.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(m,{emit:l}){const n=(t,i)=>{t.disabled||l("update:modelValue",i)};return(t,i)=>{const c=u;return r(),p("div",D,[f(c,null,{default:v(()=>[(r(!0),p(y,null,b(m.pageData,(o,a)=>(r(),p("div",{key:o.id,class:s(["relative",{"cursor-pointer":!(o!=null&&o.disabled)}]),onClick:e=>n(o,a)},[h("div",{class:s(["absolute w-full h-full z-[100] border-dashed",{select:a==m.modelValue,"border-[#dcdfe6] border-2":!(o!=null&&o.disabled)}])},null,2),k(t.$slots,"default",{},()=>{var e;return[(r(),C(V((e=x(d)[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,E))),128))]),_:3})])}}});const Qo=B(N,[["__scopeId","data-v-d63d893f"]]);export{Qo as default};
