import{e as c}from"./index.c5b91f96.js";import{d as u,o as r,c as p,W as _,a8 as d,Q as s,a as f,$ as y,I as v,L as b,R as k,u as h}from"./@vue.ab566ce7.js";import{_ as C}from"./index.ec401e3b.js";import"./attr.vue_vue_type_script_setup_true_lang.4ae63624.js";import"./element-plus.258bf9e7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.7a6cc892.js";import"./picker.f1021c28.js";import"./index.9492d03b.js";import"./picker.4547601e.js";import"./index.59cb12da.js";import"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import"./index.vue_vue_type_script_setup_true_lang.84fcd2ee.js";import"./usePaging.f6660143.js";import"./file.vue_vue_type_style_index_0_scoped_5ccc0f84_lang.e4e8877b.js";import"./vue3-video-play.b66b1487.js";import"./vuedraggable.05ef589e.js";import"./vue.6436c619.js";import"./sortablejs.81b741d7.js";import"./content.vue_vue_type_script_setup_true_lang.abf2a72b.js";import"./decoration-img.bd7b8284.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./attr.vue_vue_type_script_setup_true_lang.afd77cca.js";import"./content.f62dbe7a.js";import"./attr.vue_vue_type_script_setup_true_lang.9020e00d.js";import"./add-nav.vue_vue_type_script_setup_true_lang.da62d4a6.js";import"./content.5cd012b8.js";import"./attr.vue_vue_type_script_setup_true_lang.979c9cce.js";import"./content.vue_vue_type_script_setup_true_lang.a9db47e5.js";import"./attr.vue_vue_type_script_setup_true_lang.d4a01b37.js";import"./content.639b0b89.js";import"./decoration.b25b786a.js";import"./attr.vue_vue_type_script_setup_true_lang.d755c81f.js";import"./content.b038d327.js";import"./attr.vue_vue_type_script_setup_true_lang.1dbcafd0.js";import"./content.vue_vue_type_script_setup_true_lang.4eabcd5f.js";import"./attr.vue_vue_type_script_setup_true_lang.8af8a080.js";import"./content.42c53fe6.js";const V={class:"pages-preview"},B=["onClick"],x=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(_,null,d(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 Ro=C(x,[["__scopeId","data-v-7e9e2ca0"]]);export{Ro as default};