officialblock 1.6.8 → 1.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/official-block.cjs.js +1 -1
- package/dist/official-block.es.js +79 -80
- package/dist/official-block.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var lc=Object.create;var ka=Object.defineProperty;var oc=Object.getOwnPropertyDescriptor;var nc=Object.getOwnPropertyNames;var ac=Object.getPrototypeOf,ic=Object.prototype.hasOwnProperty;var sc=(n,t,l)=>t in n?ka(n,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[t]=l;var rc=(n,t,l,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of nc(t))!ic.call(n,a)&&a!==l&&ka(n,a,{get:()=>t[a],enumerable:!(o=oc(t,a))||o.enumerable});return n};var ks=(n,t,l)=>(l=n!=null?lc(ac(n)):{},rc(t||!n||!n.__esModule?ka(l,"default",{value:n,enumerable:!0}):l,n));var Ns=(n,t,l)=>sc(n,typeof t!="symbol"?t+"":t,l);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),de=require("vuedraggable");require("@wangeditor/editor");const ml=require("swiper/vue"),yt=require("swiper/modules"),dc=require("axios"),_s=require("@splidejs/vue-splide");function B(n=16){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let l="";for(let o=0;o<n;o++)l+=t.charAt(Math.floor(Math.random()*t.length));return l}function Wn(n="Publications",t="section",l=10,o=8){const a="abcdefghijklmnopqrstuvwxyz0123456789",i=a.length;function s(f){if(typeof crypto<"u"&&crypto.getRandomValues){const p=new Uint32Array(f);crypto.getRandomValues(p);let A="";for(let v=0;v<f;v++)A+=a[p[v]%i];return A}else{let p="";for(let A=0;A<f;A++)p+=a.charAt(Math.floor(Math.random()*i));return p}}function d(f){const p=Date.now().toString();if(p.length>=f)return p.slice(0,f);{const A=s(f-p.length).replace(/[^0-9]/g,"");return p+A}}const m=d(l),u=s(o),c=d(l),r=s(o);return`${n}-${m}-${u}-${t}-${c}-${r}`}const cc={class:"button-text"},uc={class:"link-text"},mc=e.defineComponent({__name:"index",props:{type:{type:String,default:"button"},data:{type:Object,default:()=>{}},hasHoverBg:{type:Boolean,default:!0}},emits:["handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{l.data.url&&(l.data.url.startsWith("http")?window.open(l.data.url,"_blank"):o("handleClick",l.data.url))};return(i,s)=>n.type==="button"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button-primary flex-inline flex-center",[n.hasHoverBg&&"button-hover-bg"]]),onClick:a},[e.createElementVNode("span",cc,e.toDisplayString(n.data.text),1),s[0]||(s[0]=e.createElementVNode("span",{class:"button-icon"},null,-1))],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"link-button flex-inline flex-center",onClick:a},[e.createElementVNode("span",uc,e.toDisplayString(n.data.text),1),s[1]||(s[1]=e.createElementVNode("span",{class:"button-icon link-icon"},null,-1))]))}}),H=(n,t)=>{const l=n.__vccOpts||n;for(const[o,a]of t)l[o]=a;return l},ea=H(mc,[["__scopeId","data-v-d959a3d5"]]),Ac={class:"article-item"},pc={class:"article-item-title"},fc=["innerHTML"],vc={key:0,class:"article-item-button"},hc={key:1,class:"article-item-link"},Vc=e.defineComponent({__name:"article",props:{article:{type:Object,default:()=>{}}},emits:["handleClick"],setup(n,{emit:t}){const l=t,o=a=>{l("handleClick",a)};return(a,i)=>{var s,d;return e.openBlock(),e.createElementBlock("div",Ac,[e.createElementVNode("h4",pc,e.toDisplayString(n.article.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.article.content},null,8,fc),(s=n.article.buttonList)!=null&&s.length?(e.openBlock(),e.createElementBlock("div",vc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.buttonList,m=>(e.openBlock(),e.createBlock(ea,{key:m.id,data:m,onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0),(d=n.article.linkList)!=null&&d.length?(e.openBlock(),e.createElementBlock("div",hc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.linkList,m=>(e.openBlock(),e.createBlock(ea,{key:m.id,data:m,type:"link",onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0)])}}}),gc=H(Vc,[["__scopeId","data-v-2c696c08"]]),yc={class:"contact-item"},bc={class:"contact-item-categories"},xc={class:"contact-item-title"},wc=["innerHTML"],kc={class:"contact-item-link"},Nc=e.defineComponent({__name:"contact",props:{contact:{type:Object,default:()=>{}}},setup(n){return(t,l)=>(e.openBlock(),e.createElementBlock("div",yc,[e.createElementVNode("div",bc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.contact.categories,o=>(e.openBlock(),e.createElementBlock("p",{class:"categories",key:o.id},e.toDisplayString(o.text),1))),128))]),e.createElementVNode("h4",xc,e.toDisplayString(n.contact.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.contact.content},null,8,wc),e.createElementVNode("div",kc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.contact.linkList,o=>(e.openBlock(),e.createBlock(ea,{key:o.id,data:o,type:"link"},null,8,["data"]))),128))])]))}}),_c=H(Nc,[["__scopeId","data-v-32cbb692"]]),Cc={key:0,class:"image-container"},Ec={key:0,class:"image-desc"},Tc={key:1,class:"video-container flex-inline flex-center"},Sc=["src"],Pc={class:"video-thumbnail flex flex-center"},Bc=["src"],Lc={key:2,class:"image-list-container"},Oc={key:0,class:"image-preview"},zc={class:"image-list-wrapper"},Mc=["src","onClick"],jc=e.defineComponent({__name:"index",props:{type:{type:String,default:"Image"},data:{type:Object,default:()=>{}},preview:{type:Boolean,default:!0}},setup(n){var A,v,x;const t=n,l=e.ref(),o=e.ref(!1),a=()=>{var V;(V=l.value)==null||V.play(),o.value=!0},i=e.ref(((x=(v=(A=t.data)==null?void 0:A.imageList)==null?void 0:v[0])==null?void 0:x.src)||""),s=V=>{i.value=V},d=e.ref(null),m=e.ref(!1),u=e.ref(!1),c=()=>{const V=d.value;V&&(m.value=V.scrollLeft>0,u.value=V.scrollLeft+V.clientWidth<V.scrollWidth)},r=()=>{const V=d.value;V&&V.scrollBy({left:-V.clientWidth/1.5,behavior:"smooth"})},f=()=>{const V=d.value;V&&V.scrollBy({left:V.clientWidth/1.5,behavior:"smooth"})},p=()=>{c()};return e.watch(()=>{var V;return(V=t.data)==null?void 0:V.imageList},async()=>{await e.nextTick(),c()}),e.onMounted(()=>{window.addEventListener("resize",c),e.nextTick(c)}),e.onUnmounted(()=>{window.removeEventListener("resize",c)}),(V,h)=>{const g=e.resolveComponent("a-image"),y=e.resolveComponent("icon-caret-right");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.type==="Image"?(e.openBlock(),e.createElementBlock("div",Cc,[e.createVNode(g,{class:"image",src:n.data.imgSrc,preview:n.preview,alt:n.data.alt,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview","alt"]),n.data.caption?(e.openBlock(),e.createElementBlock("p",Ec,e.toDisplayString(n.data.caption),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.type==="Video"?(e.openBlock(),e.createElementBlock("div",Tc,[e.createElementVNode("video",{class:"video",ref_key:"videoElement",ref:l,src:n.data.videoSrc,controls:""},null,8,Sc),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",Pc,[e.createElementVNode("img",{src:n.data.imgSrc},null,8,Bc)]),e.createElementVNode("div",{class:"play-button flex flex-center",onClick:a},[e.createVNode(y,{style:{color:"#fff"}})])],64))])):e.createCommentVNode("",!0),n.type==="ImageList"?(e.openBlock(),e.createElementBlock("div",Lc,[i.value?(e.openBlock(),e.createElementBlock("div",Oc,[e.createVNode(g,{class:"image",src:i.value,preview:n.preview,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview"])])):e.createCommentVNode("",!0),e.createElementVNode("div",zc,[e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:r}," ‹ ",512),[[e.vShow,m.value]]),e.createElementVNode("div",{class:"image-list",ref_key:"imageListRef",ref:d,onScroll:p},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data.imageList,N=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:N.id},[N.src?(e.openBlock(),e.createElementBlock("img",{key:0,class:"image",src:N.src,onClick:_=>s(N.src)},null,8,Mc)):e.createCommentVNode("",!0)],64))),128))],544),e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__next",onClick:f}," › ",512),[[e.vShow,u.value]])])])):e.createCommentVNode("",!0)],64)}}}),$c=H(jc,[["__scopeId","data-v-a39a94f2"]]),Dc=e.defineComponent({__name:"index",props:{modelValue:{type:String,default:""},name:{type:String,default:""},buttonText:{type:String,default:"点击上传"},buttonClass:{type:String,default:"fit-content"}},emits:["update:modelValue"],setup(n,{emit:t}){const l=n,o=t,a=e.inject("handleUpload",()=>{}),i=e.inject("fileUrl",null),s=e.inject("chooseName",null),d=()=>{if(!a){console.warn("Upload: handleUpload function not provided by ancestor");return}a(!0,l.name)};return e.watch(()=>[i==null?void 0:i.value,s==null?void 0:s.value],([m,u])=>{!m||!u||u!==l.name||o("update:modelValue",m)},{immediate:!1}),(m,u)=>{const c=e.resolveComponent("icon-upload"),r=e.resolveComponent("a-button");return e.openBlock(),e.createBlock(r,{type:"primary",onClick:d,class:e.normalizeClass(n.buttonClass)},{icon:e.withCtx(()=>[e.createVNode(c)]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.buttonText),1)]),_:1},8,["class"])}}}),Ne=H(Dc,[["__scopeId","data-v-32b7c6db"]]),Uc=e.defineComponent({__name:"RichTextEditor",props:{name:{default:""},modelValue:{default:""},placeholder:{default:"请输入内容..."},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},maxLength:{default:1e4},excludeKeys:{default:()=>[]},includeKeys:{default:()=>[]}},emits:["update:modelValue","change","focus","blur","created","upload-image","upload-video"],setup(n,{expose:t,emit:l}){const o=n,a=e.shallowRef(),i=e.ref("");e.computed(()=>typeof o.height=="number"?`${o.height}px`:o.height),e.inject("handleUpload",()=>{});const s=e.inject("fileUrl",null),d=e.inject("chooseName",null),m=e.ref("");return e.watch(()=>[s==null?void 0:s.value,d==null?void 0:d.value],([u,c])=>{var r,f;!u||!c||c!==o.name+m.value||(m.value==="img"?(r=a.value)==null||r.dangerouslyInsertHtml('<img src="https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg" alt="图片" style="max-width: 100%;">'):(f=a.value)==null||f.dangerouslyInsertHtml('<video src="https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg" controls style="max-width: 100%;"></video>'))},{immediate:!1}),o.placeholder,o.disabled,o.maxLength,e.onBeforeUnmount(()=>{const u=a.value;u!=null&&u.destroy()}),e.watch(()=>o.modelValue,u=>{u!==i.value&&(i.value=u||"")},{immediate:!0}),t({editor:a,getHtml:()=>i.value,getText:()=>{var u;return((u=a.value)==null?void 0:u.getText())||""},isEmpty:()=>{var u;return((u=a.value)==null?void 0:u.isEmpty())||!0},clear:()=>{var u;return(u=a.value)==null?void 0:u.clear()},focus:()=>{var u;return(u=a.value)==null?void 0:u.focus()},blur:()=>{var u;return(u=a.value)==null?void 0:u.blur()},disable:()=>{var u;return(u=a.value)==null?void 0:u.disable()},enable:()=>{var u;return(u=a.value)==null?void 0:u.enable()}}),(u,c)=>{const r=e.resolveComponent("client-only");return e.openBlock(),e.createBlock(r,null,{default:e.withCtx(()=>[...c[0]||(c[0]=[e.createElementVNode("div",{class:"rich-text-editor"},null,-1)])]),_:1})}}}),qe=H(Uc,[["__scopeId","data-v-2f501911"]]),Rc={class:"setting-content"},Hc={class:"setting-header flex items-center"},Wc={class:"setting-header flex items-center"},Ic={class:"setting-body"},Xc={class:"setting-item"},qc={class:"item-name"},Fc={class:"btn-group"},Yc={class:"drag-handle"},Zc={class:"btn-group"},Gc={key:0,class:"drag-handle"},Jc={class:"item-action flex items-center"},Kc=["onClick"],Qc={class:"btn-group"},eu={key:0,class:"drag-handle"},tu={class:"item-action flex items-center"},lu=["onClick"],ou={class:"btn-group"},nu={key:0,class:"drag-handle"},au={class:"item-action flex items-center"},iu=["onClick"],su={class:"btn-group"},ru={key:0,class:"drag-handle"},du={class:"item-action flex items-center"},cu=["onClick"],uu=["src"],mu={class:"item-uplaod flex items-center"},Au={class:"item-img-list"},pu={class:"btn-group"},fu={key:0,class:"drag-handle"},vu={key:0,class:"item-img-box"},hu=["src"],Vu={class:"item-right flex-1"},gu=["onClick"],yu=["src"],bu={class:"item-uplaod flex items-center"},xu=["src"],wu={class:"item-uplaod flex items-center"},ku=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"item",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),i=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),s=e.computed(()=>({animation:200,group:"categories",disabled:!1,ghostClass:"ghost"})),d=e.computed(()=>({animation:200,group:"images",disabled:!1,ghostClass:"ghost"})),m=_=>_&&_.length>1,u=n,c=t,r=()=>{c("update:show",!1)},f=_=>{const b=u.data;_==="Article"?b.data.push({id:B(),type:"Article",title:"",content:"",buttonList:[],linkList:[]}):_==="Contact"?b.data.push({id:B(),type:"Contact",title:"",content:"",categories:[],linkList:[]}):_==="Image"?b.data.push({id:B(),type:"Image",imgSrc:"",caption:"",alt:"",isRound:!1}):_==="ImageList"?b.data.push({id:B(),type:"ImageList",imageList:[]}):_==="Video"&&b.data.push({id:B(),type:"Video",videoSrc:"",imgSrc:""})},p=_=>{u.data.data=u.data.data.filter(b=>b.id!==_)},A=_=>{_.push({id:B(),text:"查看更多",url:void 0,isExternal:!1})},v=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},x=_=>{_.push({id:B(),text:"查看更多",url:void 0,isExternal:!1})},V=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},h=_=>{_.push({id:B(),text:"分类"})},g=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},y=_=>{_.push({id:B(),src:""})},N=(_,b)=>{_.splice(_.findIndex(k=>k===b),1)};return(_,b)=>{const k=e.resolveComponent("a-option"),E=e.resolveComponent("a-select"),C=e.resolveComponent("icon-plus"),T=e.resolveComponent("a-button"),S=e.resolveComponent("a-button-group"),L=e.resolveComponent("icon-drag-arrow"),O=e.resolveComponent("icon-delete"),z=e.resolveComponent("a-input"),j=e.resolveComponent("a-checkbox"),$=e.resolveComponent("a-link"),R=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(R,{width:500,visible:n.show,footer:!1,onCancel:r,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Rc,[e.createElementVNode("div",Hc,[b[24]||(b[24]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(E,{modelValue:n.data.width,"onUpdate:modelValue":b[0]||(b[0]=M=>n.data.width=M),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(k,{value:"default"},{default:e.withCtx(()=>[...b[20]||(b[20]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(k,{value:"small"},{default:e.withCtx(()=>[...b[21]||(b[21]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(k,{value:"middle"},{default:e.withCtx(()=>[...b[22]||(b[22]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(k,{value:"max"},{default:e.withCtx(()=>[...b[23]||(b[23]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Wc,[b[27]||(b[27]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(E,{modelValue:n.data.bgColor,"onUpdate:modelValue":b[1]||(b[1]=M=>n.data.bgColor=M),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(k,{value:"#ffffff"},{default:e.withCtx(()=>[...b[25]||(b[25]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(k,{value:"#F7F7FA"},{default:e.withCtx(()=>[...b[26]||(b[26]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createVNode(S,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(T,{size:"mini",onClick:b[2]||(b[2]=M=>f("Article"))},{icon:e.withCtx(()=>[e.createVNode(C)]),default:e.withCtx(()=>[b[28]||(b[28]=e.createTextVNode(" Article ",-1))]),_:1}),e.createVNode(T,{size:"mini",onClick:b[3]||(b[3]=M=>f("Contact"))},{icon:e.withCtx(()=>[e.createVNode(C)]),default:e.withCtx(()=>[b[29]||(b[29]=e.createTextVNode(" Contact ",-1))]),_:1}),e.createVNode(T,{size:"mini",onClick:b[4]||(b[4]=M=>f("Image"))},{icon:e.withCtx(()=>[e.createVNode(C)]),default:e.withCtx(()=>[b[30]||(b[30]=e.createTextVNode(" Image ",-1))]),_:1}),e.createVNode(T,{size:"mini",onClick:b[5]||(b[5]=M=>f("ImageList"))},{icon:e.withCtx(()=>[e.createVNode(C)]),default:e.withCtx(()=>[b[31]||(b[31]=e.createTextVNode(" ImageList ",-1))]),_:1}),e.createVNode(T,{size:"mini",onClick:b[6]||(b[6]=M=>f("Video"))},{icon:e.withCtx(()=>[e.createVNode(C)]),default:e.withCtx(()=>[b[32]||(b[32]=e.createTextVNode(" Video ",-1))]),_:1})]),_:1}),e.createElementVNode("div",Ic,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":b[17]||(b[17]=M=>n.data.data=M),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{onStart:b[18]||(b[18]=M=>l.value=!0),onEnd:b[19]||(b[19]=M=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:M})=>[e.createElementVNode("div",Xc,[e.createElementVNode("p",qc,e.toDisplayString(M.type),1),e.createElementVNode("div",Fc,[e.createElementVNode("div",Yc,[e.createVNode(L,{class:"drag-icon"})]),e.createVNode(O,{class:"btn-delete",onClick:w=>p(M.id)},null,8,["onClick"])]),M.type==="Article"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[b[37]||(b[37]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(z,{modelValue:M.title,"onUpdate:modelValue":w=>M.title=w,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b[38]||(b[38]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:M.content,"onUpdate:modelValue":w=>M.content=w,name:`ArticleList_editor_${M.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),b[39]||(b[39]=e.createElementVNode("p",{class:"item-title"},"按钮",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:M.buttonList,"onUpdate:modelValue":w=>M.buttonList=w,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!m(M.buttonList),onStart:b[7]||(b[7]=w=>l.value=!0),onEnd:b[8]||(b[8]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(M.buttonList)}]),key:w.id},[e.createElementVNode("div",Zc,[m(M.buttonList)?(e.openBlock(),e.createElementBlock("div",Gc,[e.createVNode(L,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(O,{class:"btn-delete",onClick:D=>v(M.buttonList,w.id)},null,8,["onClick"])]),e.createVNode(T,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.text),1)]),_:2},1024),e.createElementVNode("div",Jc,[e.createVNode(z,{class:"action-text",modelValue:w.text,"onUpdate:modelValue":D=>w.text=D,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:w.url,"onUpdate:modelValue":D=>w.url=D,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":w.isExternal},{default:e.withCtx(()=>[...b[33]||(b[33]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:w=>A(M.buttonList)},[e.createVNode(C),b[34]||(b[34]=e.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,Kc),b[40]||(b[40]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":w=>M.linkList=w,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!m(M.linkList),onStart:b[9]||(b[9]=w=>l.value=!0),onEnd:b[10]||(b[10]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(M.linkList)}]),key:w.id},[e.createElementVNode("div",Qc,[m(M.linkList)?(e.openBlock(),e.createElementBlock("div",eu,[e.createVNode(L,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(O,{class:"btn-delete",onClick:D=>V(M.linkList,w.id)},null,8,["onClick"])]),e.createVNode($,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.text),1)]),_:2},1024),e.createElementVNode("div",tu,[e.createVNode(z,{class:"action-text",modelValue:w.text,"onUpdate:modelValue":D=>w.text=D,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:w.url,"onUpdate:modelValue":D=>w.url=D,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":w.isExternal},{default:e.withCtx(()=>[...b[35]||(b[35]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:w=>x(M.linkList)},[e.createVNode(C),b[36]||(b[36]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,lu)],64)):e.createCommentVNode("",!0),M.type==="Contact"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b[44]||(b[44]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(z,{modelValue:M.title,"onUpdate:modelValue":w=>M.title=w,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b[45]||(b[45]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:M.content,"onUpdate:modelValue":w=>M.content=w,name:`ArticleList_editor_${M.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),b[46]||(b[46]=e.createElementVNode("p",{class:"item-title"},"分类",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:M.categories,"onUpdate:modelValue":w=>M.categories=w,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},s.value,{disabled:!m(M.categories),onStart:b[11]||(b[11]=w=>l.value=!0),onEnd:b[12]||(b[12]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(M.categories)}]),key:w.id},[e.createElementVNode("div",ou,[m(M.categories)?(e.openBlock(),e.createElementBlock("div",nu,[e.createVNode(L,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(O,{class:"btn-delete",onClick:D=>g(M.categories,w.id)},null,8,["onClick"])]),e.createVNode(O,{class:"btn-delete",onClick:D=>g(M.categories,w.id)},null,8,["onClick"]),e.createVNode($,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.text),1)]),_:2},1024),e.createElementVNode("div",au,[e.createVNode(z,{modelValue:w.text,"onUpdate:modelValue":D=>w.text=D,placeholder:"分类名称","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:w=>h(M.categories)},[e.createVNode(C),b[41]||(b[41]=e.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,iu),b[47]||(b[47]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":w=>M.linkList=w,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!m(M.linkList),onStart:b[13]||(b[13]=w=>l.value=!0),onEnd:b[14]||(b[14]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(M.linkList)}]),key:w.id},[e.createElementVNode("div",su,[m(M.linkList)?(e.openBlock(),e.createElementBlock("div",ru,[e.createVNode(L,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(O,{class:"btn-delete",onClick:D=>V(M.linkList,w.id)},null,8,["onClick"])]),e.createVNode($,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.text),1)]),_:2},1024),e.createElementVNode("div",du,[e.createVNode(z,{class:"action-text",modelValue:w.text,"onUpdate:modelValue":D=>w.text=D,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:w.url,"onUpdate:modelValue":D=>w.url=D,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":w.isExternal},{default:e.withCtx(()=>[...b[42]||(b[42]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:w=>x(M.linkList)},[e.createVNode(C),b[43]||(b[43]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,cu)],64)):e.createCommentVNode("",!0),M.type==="Image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("img",{class:"item-img",src:M.imgSrc},null,8,uu),e.createElementVNode("div",mu,[e.createVNode(z,{modelValue:M.imgSrc,"onUpdate:modelValue":w=>M.imgSrc=w,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:M.imgSrc,"onUpdate:modelValue":w=>M.imgSrc=w,name:`ArticleList_${M.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(z,{class:"mt-2",modelValue:M.caption,"onUpdate:modelValue":w=>M.caption=w,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{class:"mt-2",modelValue:M.alt,"onUpdate:modelValue":w=>M.alt=w,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(j,{class:"pt-2","model-value":M.isRound},{default:e.withCtx(()=>[...b[48]||(b[48]=[e.createTextVNode("圆角",-1)])]),_:1},8,["model-value"])],64)):e.createCommentVNode("",!0),M.type==="ImageList"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[b[50]||(b[50]=e.createElementVNode("p",{class:"item-title"},"图片组",-1)),e.createElementVNode("div",Au,[e.createVNode(e.unref(de),e.mergeProps({modelValue:M.imageList,"onUpdate:modelValue":w=>M.imageList=w,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},d.value,{disabled:!m(M.imageList),onStart:b[15]||(b[15]=w=>l.value=!0),onEnd:b[16]||(b[16]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["img-list-item flex draggable-item",{"sortable-disabled":!m(M.imageList)}]),key:w.id},[e.createElementVNode("div",pu,[m(M.imageList)?(e.openBlock(),e.createElementBlock("div",fu,[e.createVNode(L,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(O,{class:"btn-delete",onClick:D=>N(M.imageList,w.id)},null,8,["onClick"])]),w.src?(e.openBlock(),e.createElementBlock("div",vu,[e.createElementVNode("img",{class:"item-img small-img",src:w.src},null,8,hu)])):e.createCommentVNode("",!0),e.createElementVNode("div",Vu,[e.createVNode(z,{style:{"margin-bottom":"12px"},modelValue:w.src,"onUpdate:modelValue":D=>w.src=D,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:w.src,"onUpdate:modelValue":D=>w.src=D,name:`ArticleList_${w.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"])]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:w=>y(M.imageList)},[e.createVNode(C),b[49]||(b[49]=e.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,gu)],64)):e.createCommentVNode("",!0),M.type==="Video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[b[51]||(b[51]=e.createElementVNode("p",{class:"item-title"},"视频",-1)),e.createElementVNode("video",{class:"item-img",src:M.videoSrc,controls:""},null,8,yu),e.createElementVNode("div",bu,[e.createVNode(z,{modelValue:M.videoSrc,"onUpdate:modelValue":w=>M.videoSrc=w,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:M.videoSrc,"onUpdate:modelValue":w=>M.videoSrc=w,name:`ArticleList_${M.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createElementVNode("img",{class:"item-img",src:M.imgSrc},null,8,xu),e.createElementVNode("div",wu,[e.createVNode(z,{modelValue:M.imgSrc,"onUpdate:modelValue":w=>M.imgSrc=w,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:M.imgSrc,"onUpdate:modelValue":w=>M.imgSrc=w,name:`ArticleList_${M.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],64)):e.createCommentVNode("",!0)])]),_:1},16,["modelValue","component-data"])])])]),_:1},8,["visible"])}}}),Nu=H(ku,[["__scopeId","data-v-a682759f"]]),_u={class:"operate-page operate-component"},Cu={class:"operate-btn d-flex justify-end"},Eu=e.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1}},emits:["handleCopy","handleDelete","handleEdit","handlePaste"],setup(n,{emit:t}){const l=t,o=()=>{l("handleCopy")},a=()=>{l("handleDelete")},i=()=>{l("handleEdit")},s=d=>{l("handlePaste",d)};return(d,m)=>{const u=e.resolveComponent("icon-copy"),c=e.resolveComponent("a-tooltip"),r=e.resolveComponent("icon-delete"),f=e.resolveComponent("icon-edit"),p=e.resolveComponent("icon-arrow-up"),A=e.resolveComponent("icon-arrow-down");return e.withDirectives((e.openBlock(),e.createElementBlock("div",_u,[e.createElementVNode("div",Cu,[e.createElementVNode("div",{class:"btn-item btn-copy d-flex align-center fs-10",onClick:o},[e.createVNode(c,{content:"复制",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(u)]),_:1})]),e.createElementVNode("div",{class:"btn-item btn-delete d-flex align-center fs-10",onClick:a},[e.createVNode(c,{content:"删除",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(r)]),_:1})]),e.createElementVNode("div",{class:"btn-item btn-edit d-flex align-center fs-10",onClick:i},[e.createVNode(c,{content:"编辑",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1})]),e.createElementVNode("div",{class:"btn-item btn-paste d-flex align-center fs-10",onClick:m[0]||(m[0]=v=>s("top"))},[e.createVNode(c,{content:"向上粘贴",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(p)]),_:1})]),e.createElementVNode("div",{class:"btn-item btn-paste d-flex align-center fs-10",onClick:m[1]||(m[1]=v=>s("bottom"))},[e.createVNode(c,{content:"向下粘贴",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(A)]),_:1})])])],512)),[[e.vShow,n.show]])}}}),ye=H(Eu,[["__scopeId","data-v-534cce66"]]),Tu={class:"article-list-left"},Su={class:"article-list-right"},Pu=e.defineComponent({name:"ArticleList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=e.computed(()=>l.modelValue&&l.modelValue.data&&l.modelValue.data.length?l.modelValue.data.some(r=>r.type==="Image"||r.type==="Video"||r.type==="ImageList"):!1),i=()=>{var f;if(l.modelValue&&l.modelValue.data)return;const r={id:((f=l.modelValue)==null?void 0:f.id)||B(),type:"ArticleList",width:"",bgColor:"",data:[{id:B(),type:"Article",title:"耀华国际教育学校浙江桐乡",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",buttonList:[],linkList:[{id:B(),text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},{id:B(),type:"Image",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",caption:"",alt:"",isRound:!1}]};o("update:modelValue",r)},s=e.ref(!1),d=e.ref(!1),m=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},c=r=>{o("handlePaste",r)};return i(),(r,f)=>{var v,x,V;const p=e.resolveComponent("a-col"),A=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"article-list-container",style:e.normalizeStyle({backgroundColor:(v=n.modelValue)==null?void 0:v.bgColor}),onMouseenter:f[2]||(f[2]=h=>s.value=!0),onMouseleave:f[3]||(f[3]=h=>s.value=!1)},[e.createVNode(A,{class:e.normalizeClass(["article-list",[(x=n.modelValue)!=null&&x.width?`container-content-${(V=n.modelValue)==null?void 0:V.width}`:"container-content"]])},{default:e.withCtx(()=>[e.createVNode(p,{sm:{span:24},md:{span:a.value?12:24}},{default:e.withCtx(()=>{var h;return[e.createElementVNode("div",Tu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((h=n.modelValue)==null?void 0:h.data,g=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:g.id},[g.type==="Article"?(e.openBlock(),e.createBlock(gc,{key:0,article:g},null,8,["article"])):e.createCommentVNode("",!0),g.type==="Contact"?(e.openBlock(),e.createBlock(_c,{key:1,contact:g},null,8,["contact"])):e.createCommentVNode("",!0)],64))),128))])]}),_:1},8,["md"]),a.value?(e.openBlock(),e.createBlock(p,{key:0,sm:{span:24},md:{span:12}},{default:e.withCtx(()=>{var h;return[e.createElementVNode("div",Su,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((h=n.modelValue)==null?void 0:h.data,g=>(e.openBlock(),e.createBlock($c,{key:g.id,type:g.type,data:g,preview:n.modelValue.isPreview},null,8,["type","data","preview"]))),128))])]}),_:1})):e.createCommentVNode("",!0),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:1,show:s.value,"onUpdate:show":f[0]||(f[0]=h=>s.value=h),onHandleEdit:f[1]||(f[1]=h=>d.value=!0),onHandleDelete:m,onHandleCopy:u,onHandlePaste:c},null,8,["show"]))]),_:1},8,["class"])],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Nu,{key:0,show:d.value,"onUpdate:show":f[4]||(f[4]=h=>d.value=h),data:n.modelValue},null,8,["show","data"]))],64)}}}),fi=H(Pu,[["__scopeId","data-v-e31d08c6"]]),Bu={class:"setting-content"},Lu=["src"],Ou={class:"item-uplaod flex items-center"},zu=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(d,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>{var m,u;return[e.createElementVNode("div",Bu,[i[3]||(i[3]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(s,{modelValue:n.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=c=>n.data.data.title=c),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),i[4]||(i[4]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:(u=(m=n.data)==null?void 0:m.data)==null?void 0:u.imgSrc},null,8,Lu),e.createElementVNode("div",Ou,[e.createVNode(s,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[1]||(i[1]=c=>n.data.data.imgSrc=c),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[2]||(i[2]=c=>n.data.data.imgSrc=c),name:"bannerImage"},null,8,["modelValue"])])])]}),_:1},8,["visible"])}}}),Mu=H(zu,[["__scopeId","data-v-c2c014ad"]]),ju={class:"banner-image__title is-zh"},$u=e.defineComponent({name:"BannerImage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"BannerImage",data:{title:"About YWIES",imgSrc:"https://osswebsite-test.cedim.cn/ywies-tx/static-images/about-ywies/01_About_YWIES_1_Header.jpg"}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"banner-image",onMouseenter:r[2]||(r[2]=x=>i.value=!0),onMouseleave:r[3]||(r[3]=x=>i.value=!1)},[e.createElementVNode("div",{class:"banner-image__image",style:e.normalizeStyle({backgroundImage:"url("+((p=(f=n.modelValue)==null?void 0:f.data)==null?void 0:p.imgSrc)+")","background-position":"center"})},[e.createElementVNode("div",ju,e.toDisplayString((v=(A=n.modelValue)==null?void 0:A.data)==null?void 0:v.title),1)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=x=>i.value=x),onHandleEdit:r[1]||(r[1]=x=>s.value=!0),onHandleDelete:d,onHandleCopy:m,onHandlePaste:u},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Mu,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),vi=H($u,[["__scopeId","data-v-88156ebc"]]),Du={class:"setting-content"},Uu=["src"],Ru={class:"item-uplaod flex items-center"},Hu=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(d,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>{var m,u;return[e.createElementVNode("div",Du,[i[3]||(i[3]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(s,{modelValue:n.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=c=>n.data.data.title=c),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),i[4]||(i[4]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:(u=(m=n.data)==null?void 0:m.data)==null?void 0:u.imgSrc},null,8,Uu),e.createElementVNode("div",Ru,[e.createVNode(s,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[1]||(i[1]=c=>n.data.data.imgSrc=c),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[2]||(i[2]=c=>n.data.data.imgSrc=c),name:"BannerPage","button-class":"fit-content"},null,8,["modelValue"])])])]}),_:1},8,["visible"])}}}),Wu=H(Hu,[["__scopeId","data-v-87125fc3"]]),Iu={class:"red"},Xu={class:"banner-page__title"},qu={class:"position-absolute triangle-position"},Fu={class:"position-relative h-100 banner-strips"},Yu=e.defineComponent({name:"BannerPage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"BannerPage",data:{title:"冷风机奥附件哦啊金佛阿吉佛大金佛电极法对哦就对哦就发哦就发哦激发激发哦飞机奥飞机",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg"}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"banner-page",onMouseenter:r[2]||(r[2]=x=>i.value=!0),onMouseleave:r[3]||(r[3]=x=>i.value=!1)},[e.createElementVNode("div",Iu,[e.createElementVNode("p",Xu,e.toDisplayString((p=(f=n.modelValue)==null?void 0:f.data)==null?void 0:p.title),1)]),r[6]||(r[6]=e.createElementVNode("div",{class:"orange"},null,-1)),e.createElementVNode("div",qu,[e.createElementVNode("div",Fu,[r[5]||(r[5]=e.createElementVNode("img",{src:"https://ywies-tx.cedim.cn/images/material/banner-strips.png",alt:""},null,-1)),e.createElementVNode("div",{class:"triangle",style:e.normalizeStyle({backgroundImage:"url("+((v=(A=n.modelValue)==null?void 0:A.data)==null?void 0:v.imgSrc)+")"}),"data-v-24231ec2":""},null,4)])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=x=>i.value=x),onHandleEdit:r[1]||(r[1]=x=>s.value=!0),onHandleDelete:d,onHandleCopy:m,onHandlePaste:u},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Wu,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),hi=H(Yu,[["__scopeId","data-v-2a3cea9b"]]),Zu={class:"setting-content"},Gu={class:"setting-header flex items-center"},Ju={class:"setting-header flex items-center"},Ku={class:"setting-body"},Qu={class:"setting-item"},em={class:"btn-group"},tm={key:0,class:"drag-handle"},lm={class:"item-action flex items-center"},om=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},m=c=>{i.data.data.push({id:B(),type:c,text:"查看更多",url:void 0,isExternal:!1})},u=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-plus"),v=e.resolveComponent("a-button"),x=e.resolveComponent("a-button-group"),V=e.resolveComponent("icon-drag-arrow"),h=e.resolveComponent("icon-delete"),g=e.resolveComponent("a-input"),y=e.resolveComponent("a-checkbox"),N=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(N,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Zu,[e.createElementVNode("div",Gu,[r[13]||(r[13]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(p,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=_=>n.data.width=_),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:""},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(f,{value:"small"},{default:e.withCtx(()=>[...r[10]||(r[10]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(f,{value:"middle"},{default:e.withCtx(()=>[...r[11]||(r[11]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(f,{value:"max"},{default:e.withCtx(()=>[...r[12]||(r[12]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Ju,[r[16]||(r[16]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[1]||(r[1]=_=>n.data.bgColor=_),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[14]||(r[14]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[15]||(r[15]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createVNode(x,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(v,{size:"mini",onClick:r[2]||(r[2]=_=>m(""))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[17]||(r[17]=e.createTextVNode(" 默认按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:r[3]||(r[3]=_=>m("white"))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[18]||(r[18]=e.createTextVNode(" 白色按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:r[4]||(r[4]=_=>m("light"))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[19]||(r[19]=e.createTextVNode(" 亮色按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:r[5]||(r[5]=_=>m("blue"))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[20]||(r[20]=e.createTextVNode(" 蓝色按钮 ",-1))]),_:1})]),_:1}),e.createElementVNode("div",Ku,[e.createElementVNode("div",Qu,[r[22]||(r[22]=e.createElementVNode("p",{class:"item-name"},"按钮",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[6]||(r[6]=_=>n.data.data=_),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[7]||(r[7]=_=>l.value=!0),onEnd:r[8]||(r[8]=_=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:_})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:_.id},[e.createElementVNode("div",em,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",tm,[e.createVNode(V,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:b=>u(_.id)},null,8,["onClick"])]),e.createVNode(v,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.text),1)]),_:2},1024),e.createElementVNode("div",lm,[e.createVNode(g,{class:"action-text",modelValue:_.text,"onUpdate:modelValue":b=>_.text=b,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(g,{modelValue:_.url,"onUpdate:modelValue":b=>_.url=b,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(y,{"model-value":_.isExternal},{default:e.withCtx(()=>[...r[21]||(r[21]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),nm=H(om,[["__scopeId","data-v-3f125042"]]),am={class:"btn-list__row"},im=["href"],sm={class:"btn-primary__text"},rm=["onClick"],dm={class:"btn-primary__text"},cm=e.defineComponent({__name:"btnList",props:{list:{}},emits:["handleClick"],setup(n,{emit:t}){const l=t,o=a=>{l("handleClick",a)};return(a,i)=>(e.openBlock(),e.createElementBlock("div",am,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,s=>(e.openBlock(),e.createElementBlock("div",{class:"btn-list__item",key:s.id},[s.url&&s.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:s.url,class:e.normalizeClass(["size-normal btn-primary",[s.type?`btn-primary--${s.type}`:""]])},[e.createElementVNode("div",sm,e.toDisplayString(s.text),1),i[0]||(i[0]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,im)):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d=>o(s.url||""),class:e.normalizeClass(["size-normal btn-primary",[s.type?`btn-primary--${s.type}`:""]])},[e.createElementVNode("div",dm,e.toDisplayString(s.text),1),i[1]||(i[1]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,rm))]))),128))]))}}),Vi=H(cm,[["__scopeId","data-v-5e060a34"]]),um=e.defineComponent({name:"BtnList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"BtnList",width:"",bgColor:"",data:[{id:B(),type:"",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"blue",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"btn-list center",style:e.normalizeStyle({backgroundColor:(f=n.modelValue)==null?void 0:f.bgColor}),onMouseenter:r[2]||(r[2]=x=>i.value=!0),onMouseleave:r[3]||(r[3]=x=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["btn-list__container",[(p=n.modelValue)!=null&&p.width?`container-content-${(A=n.modelValue)==null?void 0:A.width}`:"container-content"]])},[e.createVNode(Vi,{list:(v=n.modelValue)==null?void 0:v.data},null,8,["list"])],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=x=>i.value=x),onHandleEdit:r[1]||(r[1]=x=>s.value=!0),onHandleDelete:d,onHandleCopy:m,onHandlePaste:u},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(nm,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),fa=H(um,[["__scopeId","data-v-696a9c13"]]),mm={class:"setting-content"},Am={class:"setting-header flex items-center"},pm={class:"setting-header flex items-center"},fm={class:"setting-header flex items-center"},vm={class:"setting-body"},hm={class:"setting-item"},Vm={class:"btn-group"},gm={key:0,class:"drag-handle"},ym=["src"],bm={class:"item-uplaod flex items-center"},xm=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},m=()=>{i.data.data.push({id:B(),title:"标题",subtitle:"副标题",imgSrc:void 0,alt:""})},u=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("a-input"),v=e.resolveComponent("icon-drag-arrow"),x=e.resolveComponent("icon-delete"),V=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(h,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",mm,[e.createElementVNode("div",Am,[r[9]||(r[9]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=g=>n.data.bgColor=g),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",pm,[r[10]||(r[10]=e.createElementVNode("span",{class:"header-title"},"pc列数",-1)),e.createVNode(A,{modelValue:n.data.desktopCol,"onUpdate:modelValue":r[1]||(r[1]=g=>n.data.desktopCol=g),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",fm,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),e.createVNode(A,{modelValue:n.data.mobileCol,"onUpdate:modelValue":r[2]||(r[2]=g=>n.data.mobileCol=g),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",vm,[e.createElementVNode("div",hm,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[3]||(r[3]=g=>n.data.data=g),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[4]||(r[4]=g=>l.value=!0),onEnd:r[5]||(r[5]=g=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:g})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:g.id},[e.createElementVNode("div",Vm,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",gm,[e.createVNode(v,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:y=>u(g.id)},null,8,["onClick"])]),r[12]||(r[12]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(A,{modelValue:g.title,"onUpdate:modelValue":y=>g.title=y,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[13]||(r[13]=e.createElementVNode("p",{class:"item-title"},"副标题",-1)),e.createVNode(A,{modelValue:g.subtitle,"onUpdate:modelValue":y=>g.subtitle=y,placeholder:"请输入文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[14]||(r[14]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:g.imgSrc},null,8,ym),e.createElementVNode("div",bm,[e.createVNode(A,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,name:`GalleryDefault_${g.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(A,{class:"mt-2",modelValue:g.alt,"onUpdate:modelValue":y=>g.alt=y,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[6]||(r[6]=g=>m())},[e.createVNode(V),r[15]||(r[15]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),wm=H(xm,[["__scopeId","data-v-0e37a6da"]]),km={class:"gallery-default"},Nm={class:"img-wrapper need-mask"},_m=["src","alt"],Cm={class:"img-wrapper__content"},Em={class:"img-wrapper__content__title"},Tm={class:"img-wrapper__content__subtitle"},Sm=e.defineComponent({name:"GalleryDefault",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"GalleryDefault",bgColor:"",desktopCol:3,mobileCol:2,data:[{id:B(),title:"标题",subtitle:"副标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:""},{id:B(),title:"标题",subtitle:"副标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:""}]};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:r[2]||(r[2]=x=>i.value=!0),onMouseleave:r[3]||(r[3]=x=>i.value=!1)},[e.createElementVNode("div",{class:"container-content",style:e.normalizeStyle({backgroundColor:(f=n.modelValue)==null?void 0:f.bgColor})},[e.createElementVNode("div",{class:e.normalizeClass(["default-row row",[`row-cols-${(p=n.modelValue)==null?void 0:p.mobileCol}`,`row-cols-md-${(A=n.modelValue)==null?void 0:A.desktopCol}`]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=n.modelValue)==null?void 0:v.data,x=>(e.openBlock(),e.createElementBlock("div",{key:x.id,class:"col"},[e.createElementVNode("div",km,[e.createElementVNode("div",Nm,[e.createElementVNode("img",{src:x.imgSrc,alt:x.alt},null,8,_m),e.createElementVNode("div",Cm,[e.createElementVNode("div",Em,e.toDisplayString(x.title),1),e.createElementVNode("h5",Tm,e.toDisplayString(x.subtitle),1)])])])]))),128))],2)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=x=>i.value=x),onHandleEdit:r[1]||(r[1]=x=>s.value=!0),onHandleDelete:d,onHandleCopy:m,onHandlePaste:u},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(wm,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),gi=H(Sm,[["__scopeId","data-v-38153845"]]),Pm={class:"setting-content"},Bm={class:"setting-header flex items-center"},Lm={class:"setting-header flex items-center"},Om={class:"setting-header flex items-center"},zm={class:"setting-header flex items-center"},Mm={class:"setting-body"},jm={class:"setting-item"},$m={class:"btn-group"},Dm={key:0,class:"drag-handle"},Um=["src"],Rm={class:"item-uplaod flex items-center"},Hm=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},m=()=>{i.data.data.push({id:B(),title:"标题",url:"",imgSrc:void 0,alt:""})},u=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("a-input"),v=e.resolveComponent("icon-drag-arrow"),x=e.resolveComponent("icon-delete"),V=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(h,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Pm,[e.createElementVNode("div",Bm,[r[10]||(r[10]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=g=>n.data.bgColor=g),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Lm,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"pc列数",-1)),e.createVNode(A,{modelValue:n.data.desktopCol,"onUpdate:modelValue":r[1]||(r[1]=g=>n.data.desktopCol=g),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",Om,[r[12]||(r[12]=e.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),e.createVNode(A,{modelValue:n.data.mobileCol,"onUpdate:modelValue":r[2]||(r[2]=g=>n.data.mobileCol=g),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",zm,[r[15]||(r[15]=e.createElementVNode("span",{class:"header-title"},"是否居中",-1)),e.createVNode(p,{modelValue:n.data.center,"onUpdate:modelValue":r[3]||(r[3]=g=>n.data.center=g),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:!0},{default:e.withCtx(()=>[...r[13]||(r[13]=[e.createTextVNode("是",-1)])]),_:1}),e.createVNode(f,{value:!1},{default:e.withCtx(()=>[...r[14]||(r[14]=[e.createTextVNode("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Mm,[e.createElementVNode("div",jm,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[4]||(r[4]=g=>n.data.data=g),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[5]||(r[5]=g=>l.value=!0),onEnd:r[6]||(r[6]=g=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:g})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:g.id},[e.createElementVNode("div",$m,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",Dm,[e.createVNode(v,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:y=>u(g.id)},null,8,["onClick"])]),r[16]||(r[16]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(A,{modelValue:g.title,"onUpdate:modelValue":y=>g.title=y,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[17]||(r[17]=e.createElementVNode("p",{class:"item-title"},"跳转链接",-1)),e.createVNode(A,{modelValue:g.url,"onUpdate:modelValue":y=>g.url=y,placeholder:"请输入跳转链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[18]||(r[18]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:g.imgSrc},null,8,Um),e.createElementVNode("div",Rm,[e.createVNode(A,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,name:`GalleryCaptionRound_${g.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(A,{class:"mt-2",modelValue:g.alt,"onUpdate:modelValue":y=>g.alt=y,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[7]||(r[7]=g=>m())},[e.createVNode(V),r[19]||(r[19]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),Wm=H(Hm,[["__scopeId","data-v-641fc5d7"]]),Im=["href"],Xm=["src","alt"],qm=["onClick"],Fm=["src","alt"],Ym={key:2,class:"gallery-caption__img"},Zm=["src","alt"],Gm=["href"],Jm=["onClick"],Km=["innerHTML"],Qm=e.defineComponent({name:"GalleryCaptionRound",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var f;if(l.modelValue&&l.modelValue.data)return;const r={id:((f=l.modelValue)==null?void 0:f.id)||B(),type:"GalleryCaptionRound",bgColor:"",desktopCol:3,mobileCol:2,center:!1,data:[{id:B(),title:"标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com"},{id:B(),title:"标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:""}]};o("update:modelValue",r)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},u=r=>{o("handlePaste",r)},c=r=>{o("handleClick",r)};return a(),(r,f)=>{var p,A,v,x,V;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:f[2]||(f[2]=h=>i.value=!0),onMouseleave:f[3]||(f[3]=h=>i.value=!1)},[e.createElementVNode("div",{class:"gallery-container gallery-caption-round container-content",style:e.normalizeStyle({backgroundColor:(p=n.modelValue)==null?void 0:p.bgColor})},[e.createElementVNode("div",{class:e.normalizeClass(["default-row row",[`row-cols-${(A=n.modelValue)==null?void 0:A.mobileCol}`,`row-cols-md-${(v=n.modelValue)==null?void 0:v.desktopCol}`,((x=n.modelValue)==null?void 0:x.center)&&"row-center"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=n.modelValue)==null?void 0:V.data,h=>(e.openBlock(),e.createElementBlock("div",{key:h.id,class:"col"},[e.createElementVNode("div",{class:e.normalizeClass(["gallery-caption-round gallery-caption",[h.url&&"has-url"]])},[h.url&&h.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:h.url,target:"_blank",class:"gallery-caption__img"},[e.createElementVNode("img",{src:h.imgSrc,alt:h.alt},null,8,Xm)],8,Im)):h.url?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:g=>c(h.url),class:"gallery-caption__img"},[e.createElementVNode("img",{src:h.imgSrc,alt:h.alt},null,8,Fm)],8,qm)):(e.openBlock(),e.createElementBlock("div",Ym,[e.createElementVNode("img",{src:h.imgSrc,alt:h.alt},null,8,Zm)])),h.url&&h.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:3,href:h.url,target:"_blank",class:"gallery-caption__title tx-subtitle text-blue text-center"},e.toDisplayString(h.title),9,Gm)):h.url?(e.openBlock(),e.createElementBlock("button",{key:4,onClick:g=>c(h.url),class:"gallery-caption__title tx-subtitle text-blue text-center"},e.toDisplayString(h.title),9,Jm)):(e.openBlock(),e.createElementBlock("div",{key:5,class:"tx-subtitle text-blue text-center",innerHTML:h.title},null,8,Km))],2)]))),128))],2)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":f[0]||(f[0]=h=>i.value=h),onHandleEdit:f[1]||(f[1]=h=>s.value=!0),onHandleDelete:d,onHandleCopy:m,onHandlePaste:u},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Wm,{key:0,show:s.value,"onUpdate:show":f[4]||(f[4]=h=>s.value=h),data:n.modelValue},null,8,["show","data"]))],64)}}}),yi=H(Qm,[["__scopeId","data-v-1597f5dc"]]),eA={class:"setting-content"},tA={class:"setting-header flex items-center"},lA={class:"setting-body"},oA={class:"setting-item"},nA={class:"btn-group"},aA={key:0,class:"drag-handle"},iA=["src"],sA={class:"item-uplaod flex items-center"},rA={class:"item-action flex items-center"},dA=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},m=()=>{i.data.data.push({id:B(),title:"标题",text:"内容",date:"",imgSrc:"",alt:"",url:"",btnText:""})},u=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),x=e.resolveComponent("a-input"),V=e.resolveComponent("a-button"),h=e.resolveComponent("icon-plus"),g=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(g,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",eA,[e.createElementVNode("div",tA,[r[7]||(r[7]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=y=>n.data.bgColor=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[5]||(r[5]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",lA,[e.createElementVNode("div",oA,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=y=>n.data.data=y),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[2]||(r[2]=y=>l.value=!0),onEnd:r[3]||(r[3]=y=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:y.id},[e.createElementVNode("div",nA,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",aA,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:N=>u(y.id)},null,8,["onClick"])]),r[8]||(r[8]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(x,{modelValue:y.title,"onUpdate:modelValue":N=>y.title=N,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[9]||(r[9]=e.createElementVNode("p",{class:"item-title"},"文本",-1)),e.createVNode(e.unref(qe),{modelValue:y.text,"onUpdate:modelValue":N=>y.text=N,name:`GalleryTimeline_editor_${y.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),r[10]||(r[10]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(x,{modelValue:y.date,"onUpdate:modelValue":N=>y.date=N,placeholder:"请输入日期","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[11]||(r[11]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:y.imgSrc},null,8,iA),e.createElementVNode("div",sA,[e.createVNode(x,{modelValue:y.imgSrc,"onUpdate:modelValue":N=>y.imgSrc=N,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:y.imgSrc,"onUpdate:modelValue":N=>y.imgSrc=N,name:`GalleryTimeline_${y.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(x,{class:"mt-2",modelValue:y.alt,"onUpdate:modelValue":N=>y.alt=N,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(V,{style:{"margin-top":"10px"},type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.btnText),1)]),_:2},1024),e.createElementVNode("div",rA,[e.createVNode(x,{class:"action-text",modelValue:y.btnText,"onUpdate:modelValue":N=>y.btnText=N,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(x,{modelValue:y.url,"onUpdate:modelValue":N=>y.url=N,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[4]||(r[4]=y=>m())},[e.createVNode(h),r[12]||(r[12]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),cA=H(dA,[["__scopeId","data-v-69d5d758"]]);function ta(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}var uA=typeof global=="object"&&global&&global.Object===Object&&global,mA=typeof self=="object"&&self&&self.Object===Object&&self,kr=uA||mA||Function("return this")(),Na=function(){return kr.Date.now()},AA=/\s/;function pA(n){for(var t=n.length;t--&&AA.test(n.charAt(t)););return t}var fA=/^\s+/;function vA(n){return n&&n.slice(0,pA(n)+1).replace(fA,"")}var la=kr.Symbol,Nr=Object.prototype,hA=Nr.hasOwnProperty,VA=Nr.toString,Io=la?la.toStringTag:void 0;function gA(n){var t=hA.call(n,Io),l=n[Io];try{n[Io]=void 0;var o=!0}catch{}var a=VA.call(n);return o&&(t?n[Io]=l:delete n[Io]),a}var yA=Object.prototype,bA=yA.toString;function xA(n){return bA.call(n)}var wA="[object Null]",kA="[object Undefined]",Cs=la?la.toStringTag:void 0;function NA(n){return n==null?n===void 0?kA:wA:Cs&&Cs in Object(n)?gA(n):xA(n)}function _A(n){return n!=null&&typeof n=="object"}var CA="[object Symbol]";function EA(n){return typeof n=="symbol"||_A(n)&&NA(n)==CA}var Es=NaN,TA=/^[-+]0x[0-9a-f]+$/i,SA=/^0b[01]+$/i,PA=/^0o[0-7]+$/i,BA=parseInt;function Ts(n){if(typeof n=="number")return n;if(EA(n))return Es;if(ta(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=ta(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=vA(n);var l=SA.test(n);return l||PA.test(n)?BA(n.slice(2),l?2:8):TA.test(n)?Es:+n}var LA="Expected a function",OA=Math.max,zA=Math.min;function In(n,t,l){var o,a,i,s,d,m,u=0,c=!1,r=!1,f=!0;if(typeof n!="function")throw new TypeError(LA);t=Ts(t)||0,ta(l)&&(c=!!l.leading,r="maxWait"in l,i=r?OA(Ts(l.maxWait)||0,t):i,f="trailing"in l?!!l.trailing:f);function p(_){var b=o,k=a;return o=a=void 0,u=_,s=n.apply(k,b),s}function A(_){return u=_,d=setTimeout(V,t),c?p(_):s}function v(_){var b=_-m,k=_-u,E=t-b;return r?zA(E,i-k):E}function x(_){var b=_-m,k=_-u;return m===void 0||b>=t||b<0||r&&k>=i}function V(){var _=Na();if(x(_))return h(_);d=setTimeout(V,v(_))}function h(_){return d=void 0,f&&o?p(_):(o=a=void 0,s)}function g(){d!==void 0&&clearTimeout(d),u=0,o=m=a=d=void 0}function y(){return d===void 0?s:h(Na())}function N(){var _=Na(),b=x(_);if(o=arguments,a=this,m=_,b){if(d===void 0)return A(m);if(r)return clearTimeout(d),d=setTimeout(V,t),p(m)}return d===void 0&&(d=setTimeout(V,t)),s}return N.cancel=g,N.flush=y,N}var MA="Expected a function";function jA(n,t,l){var o=!0,a=!0;if(typeof n!="function")throw new TypeError(MA);return ta(l)&&(o="leading"in l?!!l.leading:o,a="trailing"in l?!!l.trailing:a),In(n,t,{leading:o,maxWait:t,trailing:a})}var wo=function(){return wo=Object.assign||function(t){for(var l,o=1,a=arguments.length;o<a;o++){l=arguments[o];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(t[i]=l[i])}return t},wo.apply(this,arguments)};function _r(n){return!n||!n.ownerDocument||!n.ownerDocument.defaultView?window:n.ownerDocument.defaultView}function Cr(n){return!n||!n.ownerDocument?document:n.ownerDocument}var Er=function(n){var t={},l=Array.prototype.reduce.call(n,function(o,a){var i=a.name.match(/data-simplebar-(.+)/);if(i){var s=i[1].replace(/\W+(.)/g,function(d,m){return m.toUpperCase()});switch(a.value){case"true":o[s]=!0;break;case"false":o[s]=!1;break;case void 0:o[s]=!0;break;default:o[s]=a.value}}return o},t);return l};function Tr(n,t){var l;n&&(l=n.classList).add.apply(l,t.split(" "))}function Sr(n,t){n&&t.split(" ").forEach(function(l){n.classList.remove(l)})}function Pr(n){return".".concat(n.split(" ").join("."))}var bi=!!(typeof window<"u"&&window.document&&window.document.createElement),$A=Object.freeze({__proto__:null,addClasses:Tr,canUseDOM:bi,classNamesToQuery:Pr,getElementDocument:Cr,getElementWindow:_r,getOptions:Er,removeClasses:Sr}),yo=null,Ss=null;bi&&window.addEventListener("resize",function(){Ss!==window.devicePixelRatio&&(Ss=window.devicePixelRatio,yo=null)});function Ps(){if(yo===null){if(typeof document>"u")return yo=0,yo;var n=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),n.appendChild(t);var l=t.getBoundingClientRect().right;n.removeChild(t),yo=l}return yo}var Cl=_r,_a=Cr,DA=Er,El=Tr,Tl=Sr,bt=Pr,ln=function(){function n(t,l){l===void 0&&(l={});var o=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var a=Cl(o.el);o.scrollXTicking||(a.requestAnimationFrame(o.scrollX),o.scrollXTicking=!0),o.scrollYTicking||(a.requestAnimationFrame(o.scrollY),o.scrollYTicking=!0),o.isScrolling||(o.isScrolling=!0,El(o.el,o.classNames.scrolling)),o.showScrollbar("x"),o.showScrollbar("y"),o.onStopScrolling()},this.scrollX=function(){o.axis.x.isOverflowing&&o.positionScrollbar("x"),o.scrollXTicking=!1},this.scrollY=function(){o.axis.y.isOverflowing&&o.positionScrollbar("y"),o.scrollYTicking=!1},this._onStopScrolling=function(){Tl(o.el,o.classNames.scrolling),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isScrolling=!1},this.onMouseEnter=function(){o.isMouseEntering||(El(o.el,o.classNames.mouseEntered),o.showScrollbar("x"),o.showScrollbar("y"),o.isMouseEntering=!0),o.onMouseEntered()},this._onMouseEntered=function(){Tl(o.el,o.classNames.mouseEntered),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isMouseEntering=!1},this._onMouseMove=function(a){o.mouseX=a.clientX,o.mouseY=a.clientY,(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseMoveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseMoveForAxis("y")},this.onMouseLeave=function(){o.onMouseMove.cancel(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseLeaveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseLeaveForAxis("y"),o.mouseX=-1,o.mouseY=-1},this._onWindowResize=function(){o.scrollbarWidth=o.getScrollbarWidth(),o.hideNativeScrollbar()},this.onPointerEvent=function(a){if(!(!o.axis.x.track.el||!o.axis.y.track.el||!o.axis.x.scrollbar.el||!o.axis.y.scrollbar.el)){var i,s;o.axis.x.track.rect=o.axis.x.track.el.getBoundingClientRect(),o.axis.y.track.rect=o.axis.y.track.el.getBoundingClientRect(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&(i=o.isWithinBounds(o.axis.x.track.rect)),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&(s=o.isWithinBounds(o.axis.y.track.rect)),(i||s)&&(a.stopPropagation(),a.type==="pointerdown"&&a.pointerType!=="touch"&&(i&&(o.axis.x.scrollbar.rect=o.axis.x.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.x.scrollbar.rect)?o.onDragStart(a,"x"):o.onTrackClick(a,"x")),s&&(o.axis.y.scrollbar.rect=o.axis.y.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.y.scrollbar.rect)?o.onDragStart(a,"y"):o.onTrackClick(a,"y"))))}},this.drag=function(a){var i,s,d,m,u,c,r,f,p,A,v;if(!(!o.draggedAxis||!o.contentWrapperEl)){var x,V=o.axis[o.draggedAxis].track,h=(s=(i=V.rect)===null||i===void 0?void 0:i[o.axis[o.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,g=o.axis[o.draggedAxis].scrollbar,y=(m=(d=o.contentWrapperEl)===null||d===void 0?void 0:d[o.axis[o.draggedAxis].scrollSizeAttr])!==null&&m!==void 0?m:0,N=parseInt((c=(u=o.elStyles)===null||u===void 0?void 0:u[o.axis[o.draggedAxis].sizeAttr])!==null&&c!==void 0?c:"0px",10);a.preventDefault(),a.stopPropagation(),o.draggedAxis==="y"?x=a.pageY:x=a.pageX;var _=x-((f=(r=V.rect)===null||r===void 0?void 0:r[o.axis[o.draggedAxis].offsetAttr])!==null&&f!==void 0?f:0)-o.axis[o.draggedAxis].dragOffset;_=o.draggedAxis==="x"&&o.isRtl?((A=(p=V.rect)===null||p===void 0?void 0:p[o.axis[o.draggedAxis].sizeAttr])!==null&&A!==void 0?A:0)-g.size-_:_;var b=_/(h-g.size),k=b*(y-N);o.draggedAxis==="x"&&o.isRtl&&(k=!((v=n.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-k:k),o.contentWrapperEl[o.axis[o.draggedAxis].scrollOffsetAttr]=k}},this.onEndDrag=function(a){o.isDragging=!1;var i=_a(o.el),s=Cl(o.el);a.preventDefault(),a.stopPropagation(),Tl(o.el,o.classNames.dragging),o.onStopScrolling(),i.removeEventListener("mousemove",o.drag,!0),i.removeEventListener("mouseup",o.onEndDrag,!0),o.removePreventClickId=s.setTimeout(function(){i.removeEventListener("click",o.preventClick,!0),i.removeEventListener("dblclick",o.preventClick,!0),o.removePreventClickId=null})},this.preventClick=function(a){a.preventDefault(),a.stopPropagation()},this.el=t,this.options=wo(wo({},n.defaultOptions),l),this.classNames=wo(wo({},n.defaultOptions.classNames),l.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=jA(this._onMouseMove,64),this.onWindowResize=In(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=In(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=In(this._onMouseEntered,this.stopScrollDelay),this.init()}return n.getRtlHelpers=function(){if(n.rtlHelpers)return n.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var l=t.firstElementChild,o=l==null?void 0:l.firstElementChild;if(!o)return null;document.body.appendChild(l),l.scrollLeft=0;var a=n.getOffset(l),i=n.getOffset(o);l.scrollLeft=-999;var s=n.getOffset(o);return document.body.removeChild(l),n.rtlHelpers={isScrollOriginAtZero:a.left!==i.left,isScrollingToNegative:i.left!==s.left},n.rtlHelpers},n.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ps()}catch{return Ps()}},n.getOffset=function(t){var l=t.getBoundingClientRect(),o=_a(t),a=Cl(t);return{top:l.top+(a.pageYOffset||o.documentElement.scrollTop),left:l.left+(a.pageXOffset||o.documentElement.scrollLeft)}},n.prototype.init=function(){bi&&(this.initDOM(),this.rtlHelpers=n.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},n.prototype.initDOM=function(){var t,l;this.wrapperEl=this.el.querySelector(bt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(bt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(bt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(bt(this.classNames.offset)),this.maskEl=this.el.querySelector(bt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,bt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(bt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(bt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(bt(this.classNames.track)).concat(bt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(bt(this.classNames.track)).concat(bt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(bt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((l=this.axis.y.track.el)===null||l===void 0?void 0:l.querySelector(bt(this.classNames.scrollbar)))||null,this.options.autoHide||(El(this.axis.x.scrollbar.el,this.classNames.visible),El(this.axis.y.scrollbar.el,this.classNames.visible))},n.prototype.initListeners=function(){var t=this,l,o=Cl(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(l=this.contentWrapperEl)===null||l===void 0||l.addEventListener("scroll",this.onScroll),o.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var a=!1,i=o.ResizeObserver||ResizeObserver;this.resizeObserver=new i(function(){a&&o.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),o.requestAnimationFrame(function(){a=!0})}this.mutationObserver=new o.MutationObserver(function(){o.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},n.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Cl(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var l=this.contentEl.offsetWidth,o=this.heightAutoObserverEl.offsetHeight<=1,a=this.heightAutoObserverEl.offsetWidth<=1||l>0,i=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,d=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var m=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=o?"auto":"100%",this.placeholderEl.style.width=a?"".concat(l||u,"px"):"auto",this.placeholderEl.style.height="".concat(m,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&u>l,this.axis.y.isOverflowing=m>c,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var r=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>i-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&m>c-r,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},n.prototype.getScrollbarSize=function(t){var l,o;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var a=this.contentEl[this.axis[t].scrollSizeAttr],i=(o=(l=this.axis[t].track.el)===null||l===void 0?void 0:l[this.axis[t].offsetSizeAttr])!==null&&o!==void 0?o:0,s=i/a,d;return d=Math.max(~~(s*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},n.prototype.positionScrollbar=function(t){var l,o,a;t===void 0&&(t="y");var i=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!i.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],d=((l=this.axis[t].track.el)===null||l===void 0?void 0:l[this.axis[t].offsetSizeAttr])||0,m=parseInt(this.elStyles[this.axis[t].sizeAttr],10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];u=t==="x"&&this.isRtl&&(!((o=n.getRtlHelpers())===null||o===void 0)&&o.isScrollOriginAtZero)?-u:u,t==="x"&&this.isRtl&&(u=!((a=n.getRtlHelpers())===null||a===void 0)&&a.isScrollingToNegative?u:-u);var c=u/(s-m),r=~~((d-i.size)*c);r=t==="x"&&this.isRtl?-r+(d-i.size):r,i.el.style.transform=t==="x"?"translate3d(".concat(r,"px, 0, 0)"):"translate3d(0, ".concat(r,"px, 0)")}},n.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var l=this.axis[t].track.el,o=this.axis[t].scrollbar.el;!l||!o||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(l.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(l.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?o.style.display="block":o.style.display="none")},n.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(El(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},n.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Tl(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},n.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},n.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var l=this.axis[t];!l.track.el||!l.scrollbar.el||(l.track.rect=l.track.el.getBoundingClientRect(),l.scrollbar.rect=l.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(l.track.rect)?(this.showScrollbar(t),El(l.track.el,this.classNames.hover),this.isWithinBounds(l.scrollbar.rect)?El(l.scrollbar.el,this.classNames.hover):Tl(l.scrollbar.el,this.classNames.hover)):(Tl(l.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},n.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Tl(this.axis[t].track.el,this.classNames.hover),Tl(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},n.prototype.onDragStart=function(t,l){var o;l===void 0&&(l="y"),this.isDragging=!0;var a=_a(this.el),i=Cl(this.el),s=this.axis[l].scrollbar,d=l==="y"?t.pageY:t.pageX;this.axis[l].dragOffset=d-(((o=s.rect)===null||o===void 0?void 0:o[this.axis[l].offsetAttr])||0),this.draggedAxis=l,El(this.el,this.classNames.dragging),a.addEventListener("mousemove",this.drag,!0),a.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(a.addEventListener("click",this.preventClick,!0),a.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.prototype.onTrackClick=function(t,l){var o=this,a,i,s,d;l===void 0&&(l="y");var m=this.axis[l];if(!(!this.options.clickOnTrack||!m.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var u=Cl(this.el);this.axis[l].scrollbar.rect=m.scrollbar.el.getBoundingClientRect();var c=this.axis[l].scrollbar,r=(i=(a=c.rect)===null||a===void 0?void 0:a[this.axis[l].offsetAttr])!==null&&i!==void 0?i:0,f=parseInt((d=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[l].sizeAttr])!==null&&d!==void 0?d:"0px",10),p=this.contentWrapperEl[this.axis[l].scrollOffsetAttr],A=l==="y"?this.mouseY-r:this.mouseX-r,v=A<0?-1:1,x=v===-1?p-f:p+f,V=40,h=function(){o.contentWrapperEl&&(v===-1?p>x&&(p-=V,o.contentWrapperEl[o.axis[l].scrollOffsetAttr]=p,u.requestAnimationFrame(h)):p<x&&(p+=V,o.contentWrapperEl[o.axis[l].scrollOffsetAttr]=p,u.requestAnimationFrame(h)))};h()}},n.prototype.getContentElement=function(){return this.contentEl},n.prototype.getScrollElement=function(){return this.contentWrapperEl},n.prototype.removeListeners=function(){var t=Cl(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},n.prototype.unMount=function(){this.removeListeners()},n.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},n.prototype.findChild=function(t,l){var o=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(a){return o.call(a,l)})[0]},n.rtlHelpers=null,n.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},n.getOptions=DA,n.helpers=$A,n}(),Kl=function(){return Kl=Object.assign||function(t){for(var l,o=1,a=arguments.length;o<a;o++){l=arguments[o];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(t[i]=l[i])}return t},Kl.apply(this,arguments)},UA={beforeUnmount:"beforeUnmount"},Xo;function RA(n){var t,l=n.h,o=n.emit,a=n.slots,i=n.props,s=function(m){return o("scroll",m)},d=Kl(Kl({},ln.defaultOptions.classNames),i.classNames);return l("div",Kl({ref:"element"},{"data-simplebar":"init"}),[l("div",{class:d.wrapper},[l("div",{class:d.heightAutoObserverWrapperEl},[l("div",{class:d.heightAutoObserverEl})]),l("div",{class:d.mask},[l("div",{class:d.offset},[l("div",Kl(Kl({},{onScroll:s,class:d.contentWrapper,tabIndex:i.tabIndex||ln.defaultOptions.tabIndex,role:"region","aria-label":i.ariaLabel||ln.defaultOptions.ariaLabel}),{ref:"scrollElement"}),[l("div",{class:d.contentEl,ref:"contentElement"},(t=a.default)===null||t===void 0?void 0:t.call(a))])])]),l("div",{class:d.placeholder})]),l("div",{class:"".concat(d.track," simplebar-horizontal")},[l("div",{class:d.scrollbar})]),l("div",{class:"".concat(d.track," simplebar-vertical")},[l("div",{class:d.scrollbar})])])}var HA=e.defineComponent((Xo={name:"simplebar-vue",props:{autoHide:{type:Boolean,default:void 0},classNames:Object,forceVisible:{type:[Boolean,String],validator:function(n){return typeof n=="boolean"||n==="x"||n==="y"},default:void 0},ariaLabel:String,tabIndex:Number,direction:{type:String,validator:function(n){return n==="ltr"||n==="rtl"}},timeout:Number,clickOnTrack:{type:Boolean,default:void 0},scrollbarMinSize:Number,scrollbarMaxSize:Number},emits:["scroll"],data:function(){return{}},mounted:function(){for(var n=ln.getOptions(this.$refs.element.attributes),t=0,l=Object.entries(this.$props);t<l.length;t++){var o=l[t],a=o[0],i=o[1];i!=null&&typeof i!="function"&&(n[a]=i)}this.SimpleBar=new ln(this.$refs.element,n),this.scrollElement=this.$refs.scrollElement,this.contentElement=this.$refs.contentElement}},Xo[UA.beforeUnmount]=function(){var n;(n=this.SimpleBar)===null||n===void 0||n.unMount(),this.SimpleBar=void 0},Xo.methods={recalculate:function(){var n;(n=this.SimpleBar)===null||n===void 0||n.recalculate()}},Xo.render=function(n){var t=this;return RA({h:typeof n=="function"?n:e.h,emit:function(){for(var l=[],o=0;o<arguments.length;o++)l[o]=arguments[o];return t.$emit.apply(t,l)},slots:this.$slots,props:this.$props})},Xo));const va=e.defineComponent({name:"ScrollBar",__name:"index",props:{hideScrollbar:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},setup(n){return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["scroll-bar",{"scroll-bar--is-light":n.light}])},[n.hideScrollbar?e.renderSlot(t.$slots,"default",{key:1}):(e.openBlock(),e.createBlock(e.unref(HA),{key:0,"data-simplebar-auto-hide":"false",class:"simple-bar"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}))],2))}});function Vl(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Br(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t}/*!
|
|
1
|
+
"use strict";var lc=Object.create;var ka=Object.defineProperty;var oc=Object.getOwnPropertyDescriptor;var nc=Object.getOwnPropertyNames;var ac=Object.getPrototypeOf,ic=Object.prototype.hasOwnProperty;var sc=(n,t,l)=>t in n?ka(n,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[t]=l;var rc=(n,t,l,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of nc(t))!ic.call(n,a)&&a!==l&&ka(n,a,{get:()=>t[a],enumerable:!(o=oc(t,a))||o.enumerable});return n};var ks=(n,t,l)=>(l=n!=null?lc(ac(n)):{},rc(t||!n||!n.__esModule?ka(l,"default",{value:n,enumerable:!0}):l,n));var Ns=(n,t,l)=>sc(n,typeof t!="symbol"?t+"":t,l);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),de=require("vuedraggable"),ml=require("swiper/vue"),yt=require("swiper/modules"),dc=require("axios"),_s=require("@splidejs/vue-splide");function B(n=16){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let l="";for(let o=0;o<n;o++)l+=t.charAt(Math.floor(Math.random()*t.length));return l}function Wn(n="Publications",t="section",l=10,o=8){const a="abcdefghijklmnopqrstuvwxyz0123456789",i=a.length;function s(f){if(typeof crypto<"u"&&crypto.getRandomValues){const p=new Uint32Array(f);crypto.getRandomValues(p);let A="";for(let v=0;v<f;v++)A+=a[p[v]%i];return A}else{let p="";for(let A=0;A<f;A++)p+=a.charAt(Math.floor(Math.random()*i));return p}}function d(f){const p=Date.now().toString();if(p.length>=f)return p.slice(0,f);{const A=s(f-p.length).replace(/[^0-9]/g,"");return p+A}}const m=d(l),u=s(o),c=d(l),r=s(o);return`${n}-${m}-${u}-${t}-${c}-${r}`}const cc={class:"button-text"},uc={class:"link-text"},mc=e.defineComponent({__name:"index",props:{type:{type:String,default:"button"},data:{type:Object,default:()=>{}},hasHoverBg:{type:Boolean,default:!0}},emits:["handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{l.data.url&&(l.data.url.startsWith("http")?window.open(l.data.url,"_blank"):o("handleClick",l.data.url))};return(i,s)=>n.type==="button"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button-primary flex-inline flex-center",[n.hasHoverBg&&"button-hover-bg"]]),onClick:a},[e.createElementVNode("span",cc,e.toDisplayString(n.data.text),1),s[0]||(s[0]=e.createElementVNode("span",{class:"button-icon"},null,-1))],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"link-button flex-inline flex-center",onClick:a},[e.createElementVNode("span",uc,e.toDisplayString(n.data.text),1),s[1]||(s[1]=e.createElementVNode("span",{class:"button-icon link-icon"},null,-1))]))}}),H=(n,t)=>{const l=n.__vccOpts||n;for(const[o,a]of t)l[o]=a;return l},ea=H(mc,[["__scopeId","data-v-d959a3d5"]]),Ac={class:"article-item"},pc={class:"article-item-title"},fc=["innerHTML"],vc={key:0,class:"article-item-button"},hc={key:1,class:"article-item-link"},Vc=e.defineComponent({__name:"article",props:{article:{type:Object,default:()=>{}}},emits:["handleClick"],setup(n,{emit:t}){const l=t,o=a=>{l("handleClick",a)};return(a,i)=>{var s,d;return e.openBlock(),e.createElementBlock("div",Ac,[e.createElementVNode("h4",pc,e.toDisplayString(n.article.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.article.content},null,8,fc),(s=n.article.buttonList)!=null&&s.length?(e.openBlock(),e.createElementBlock("div",vc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.buttonList,m=>(e.openBlock(),e.createBlock(ea,{key:m.id,data:m,onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0),(d=n.article.linkList)!=null&&d.length?(e.openBlock(),e.createElementBlock("div",hc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.linkList,m=>(e.openBlock(),e.createBlock(ea,{key:m.id,data:m,type:"link",onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0)])}}}),gc=H(Vc,[["__scopeId","data-v-2c696c08"]]),yc={class:"contact-item"},bc={class:"contact-item-categories"},xc={class:"contact-item-title"},wc=["innerHTML"],kc={class:"contact-item-link"},Nc=e.defineComponent({__name:"contact",props:{contact:{type:Object,default:()=>{}}},setup(n){return(t,l)=>(e.openBlock(),e.createElementBlock("div",yc,[e.createElementVNode("div",bc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.contact.categories,o=>(e.openBlock(),e.createElementBlock("p",{class:"categories",key:o.id},e.toDisplayString(o.text),1))),128))]),e.createElementVNode("h4",xc,e.toDisplayString(n.contact.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.contact.content},null,8,wc),e.createElementVNode("div",kc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.contact.linkList,o=>(e.openBlock(),e.createBlock(ea,{key:o.id,data:o,type:"link"},null,8,["data"]))),128))])]))}}),_c=H(Nc,[["__scopeId","data-v-32cbb692"]]),Cc={key:0,class:"image-container"},Ec={key:0,class:"image-desc"},Tc={key:1,class:"video-container flex-inline flex-center"},Sc=["src"],Pc={class:"video-thumbnail flex flex-center"},Bc=["src"],Lc={key:2,class:"image-list-container"},Oc={key:0,class:"image-preview"},zc={class:"image-list-wrapper"},Mc=["src","onClick"],jc=e.defineComponent({__name:"index",props:{type:{type:String,default:"Image"},data:{type:Object,default:()=>{}},preview:{type:Boolean,default:!0}},setup(n){var A,v,x;const t=n,l=e.ref(),o=e.ref(!1),a=()=>{var V;(V=l.value)==null||V.play(),o.value=!0},i=e.ref(((x=(v=(A=t.data)==null?void 0:A.imageList)==null?void 0:v[0])==null?void 0:x.src)||""),s=V=>{i.value=V},d=e.ref(null),m=e.ref(!1),u=e.ref(!1),c=()=>{const V=d.value;V&&(m.value=V.scrollLeft>0,u.value=V.scrollLeft+V.clientWidth<V.scrollWidth)},r=()=>{const V=d.value;V&&V.scrollBy({left:-V.clientWidth/1.5,behavior:"smooth"})},f=()=>{const V=d.value;V&&V.scrollBy({left:V.clientWidth/1.5,behavior:"smooth"})},p=()=>{c()};return e.watch(()=>{var V;return(V=t.data)==null?void 0:V.imageList},async()=>{await e.nextTick(),c()}),e.onMounted(()=>{window.addEventListener("resize",c),e.nextTick(c)}),e.onUnmounted(()=>{window.removeEventListener("resize",c)}),(V,h)=>{const g=e.resolveComponent("a-image"),y=e.resolveComponent("icon-caret-right");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.type==="Image"?(e.openBlock(),e.createElementBlock("div",Cc,[e.createVNode(g,{class:"image",src:n.data.imgSrc,preview:n.preview,alt:n.data.alt,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview","alt"]),n.data.caption?(e.openBlock(),e.createElementBlock("p",Ec,e.toDisplayString(n.data.caption),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.type==="Video"?(e.openBlock(),e.createElementBlock("div",Tc,[e.createElementVNode("video",{class:"video",ref_key:"videoElement",ref:l,src:n.data.videoSrc,controls:""},null,8,Sc),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",Pc,[e.createElementVNode("img",{src:n.data.imgSrc},null,8,Bc)]),e.createElementVNode("div",{class:"play-button flex flex-center",onClick:a},[e.createVNode(y,{style:{color:"#fff"}})])],64))])):e.createCommentVNode("",!0),n.type==="ImageList"?(e.openBlock(),e.createElementBlock("div",Lc,[i.value?(e.openBlock(),e.createElementBlock("div",Oc,[e.createVNode(g,{class:"image",src:i.value,preview:n.preview,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview"])])):e.createCommentVNode("",!0),e.createElementVNode("div",zc,[e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:r}," ‹ ",512),[[e.vShow,m.value]]),e.createElementVNode("div",{class:"image-list",ref_key:"imageListRef",ref:d,onScroll:p},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data.imageList,N=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:N.id},[N.src?(e.openBlock(),e.createElementBlock("img",{key:0,class:"image",src:N.src,onClick:_=>s(N.src)},null,8,Mc)):e.createCommentVNode("",!0)],64))),128))],544),e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__next",onClick:f}," › ",512),[[e.vShow,u.value]])])])):e.createCommentVNode("",!0)],64)}}}),$c=H(jc,[["__scopeId","data-v-a39a94f2"]]),Dc=e.defineComponent({__name:"index",props:{modelValue:{type:String,default:""},name:{type:String,default:""},buttonText:{type:String,default:"点击上传"},buttonClass:{type:String,default:"fit-content"}},emits:["update:modelValue"],setup(n,{emit:t}){const l=n,o=t,a=e.inject("handleUpload",()=>{}),i=e.inject("fileUrl",null),s=e.inject("chooseName",null),d=()=>{if(!a){console.warn("Upload: handleUpload function not provided by ancestor");return}a(!0,l.name)};return e.watch(()=>[i==null?void 0:i.value,s==null?void 0:s.value],([m,u])=>{!m||!u||u!==l.name||o("update:modelValue",m)},{immediate:!1}),(m,u)=>{const c=e.resolveComponent("icon-upload"),r=e.resolveComponent("a-button");return e.openBlock(),e.createBlock(r,{type:"primary",onClick:d,class:e.normalizeClass(n.buttonClass)},{icon:e.withCtx(()=>[e.createVNode(c)]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.buttonText),1)]),_:1},8,["class"])}}}),Ne=H(Dc,[["__scopeId","data-v-32b7c6db"]]),Uc=e.defineComponent({__name:"RichTextEditor",props:{name:{default:""},modelValue:{default:""},placeholder:{default:"请输入内容..."},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},maxLength:{default:1e4},excludeKeys:{default:()=>[]},includeKeys:{default:()=>[]}},emits:["update:modelValue","change","focus","blur","created","upload-image","upload-video"],setup(n,{expose:t,emit:l}){const o=n,a=e.shallowRef(),i=e.ref("");e.computed(()=>typeof o.height=="number"?`${o.height}px`:o.height),e.inject("handleUpload",()=>{});const s=e.inject("fileUrl",null),d=e.inject("chooseName",null),m=e.ref("");return e.watch(()=>[s==null?void 0:s.value,d==null?void 0:d.value],([u,c])=>{var r,f;!u||!c||c!==o.name+m.value||(m.value==="img"?(r=a.value)==null||r.dangerouslyInsertHtml('<img src="https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg" alt="图片" style="max-width: 100%;">'):(f=a.value)==null||f.dangerouslyInsertHtml('<video src="https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg" controls style="max-width: 100%;"></video>'))},{immediate:!1}),o.placeholder,o.disabled,o.maxLength,e.onBeforeUnmount(()=>{const u=a.value;u!=null&&u.destroy()}),e.watch(()=>o.modelValue,u=>{u!==i.value&&(i.value=u||"")},{immediate:!0}),t({editor:a,getHtml:()=>i.value,getText:()=>{var u;return((u=a.value)==null?void 0:u.getText())||""},isEmpty:()=>{var u;return((u=a.value)==null?void 0:u.isEmpty())||!0},clear:()=>{var u;return(u=a.value)==null?void 0:u.clear()},focus:()=>{var u;return(u=a.value)==null?void 0:u.focus()},blur:()=>{var u;return(u=a.value)==null?void 0:u.blur()},disable:()=>{var u;return(u=a.value)==null?void 0:u.disable()},enable:()=>{var u;return(u=a.value)==null?void 0:u.enable()}}),(u,c)=>{const r=e.resolveComponent("client-only");return e.openBlock(),e.createBlock(r,null,{default:e.withCtx(()=>[...c[0]||(c[0]=[e.createElementVNode("div",{class:"rich-text-editor"},null,-1)])]),_:1})}}}),qe=H(Uc,[["__scopeId","data-v-c50bbd44"]]),Rc={class:"setting-content"},Hc={class:"setting-header flex items-center"},Wc={class:"setting-header flex items-center"},Ic={class:"setting-body"},Xc={class:"setting-item"},qc={class:"item-name"},Fc={class:"btn-group"},Yc={class:"drag-handle"},Zc={class:"btn-group"},Gc={key:0,class:"drag-handle"},Jc={class:"item-action flex items-center"},Kc=["onClick"],Qc={class:"btn-group"},eu={key:0,class:"drag-handle"},tu={class:"item-action flex items-center"},lu=["onClick"],ou={class:"btn-group"},nu={key:0,class:"drag-handle"},au={class:"item-action flex items-center"},iu=["onClick"],su={class:"btn-group"},ru={key:0,class:"drag-handle"},du={class:"item-action flex items-center"},cu=["onClick"],uu=["src"],mu={class:"item-uplaod flex items-center"},Au={class:"item-img-list"},pu={class:"btn-group"},fu={key:0,class:"drag-handle"},vu={key:0,class:"item-img-box"},hu=["src"],Vu={class:"item-right flex-1"},gu=["onClick"],yu=["src"],bu={class:"item-uplaod flex items-center"},xu=["src"],wu={class:"item-uplaod flex items-center"},ku=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"item",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),i=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),s=e.computed(()=>({animation:200,group:"categories",disabled:!1,ghostClass:"ghost"})),d=e.computed(()=>({animation:200,group:"images",disabled:!1,ghostClass:"ghost"})),m=_=>_&&_.length>1,u=n,c=t,r=()=>{c("update:show",!1)},f=_=>{const b=u.data;_==="Article"?b.data.push({id:B(),type:"Article",title:"",content:"",buttonList:[],linkList:[]}):_==="Contact"?b.data.push({id:B(),type:"Contact",title:"",content:"",categories:[],linkList:[]}):_==="Image"?b.data.push({id:B(),type:"Image",imgSrc:"",caption:"",alt:"",isRound:!1}):_==="ImageList"?b.data.push({id:B(),type:"ImageList",imageList:[]}):_==="Video"&&b.data.push({id:B(),type:"Video",videoSrc:"",imgSrc:""})},p=_=>{u.data.data=u.data.data.filter(b=>b.id!==_)},A=_=>{_.push({id:B(),text:"查看更多",url:void 0,isExternal:!1})},v=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},x=_=>{_.push({id:B(),text:"查看更多",url:void 0,isExternal:!1})},V=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},h=_=>{_.push({id:B(),text:"分类"})},g=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},y=_=>{_.push({id:B(),src:""})},N=(_,b)=>{_.splice(_.findIndex(k=>k===b),1)};return(_,b)=>{const k=e.resolveComponent("a-option"),E=e.resolveComponent("a-select"),C=e.resolveComponent("icon-plus"),T=e.resolveComponent("a-button"),S=e.resolveComponent("a-button-group"),L=e.resolveComponent("icon-drag-arrow"),O=e.resolveComponent("icon-delete"),z=e.resolveComponent("a-input"),j=e.resolveComponent("a-checkbox"),$=e.resolveComponent("a-link"),R=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(R,{width:500,visible:n.show,footer:!1,onCancel:r,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Rc,[e.createElementVNode("div",Hc,[b[24]||(b[24]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(E,{modelValue:n.data.width,"onUpdate:modelValue":b[0]||(b[0]=M=>n.data.width=M),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(k,{value:"default"},{default:e.withCtx(()=>[...b[20]||(b[20]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(k,{value:"small"},{default:e.withCtx(()=>[...b[21]||(b[21]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(k,{value:"middle"},{default:e.withCtx(()=>[...b[22]||(b[22]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(k,{value:"max"},{default:e.withCtx(()=>[...b[23]||(b[23]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Wc,[b[27]||(b[27]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(E,{modelValue:n.data.bgColor,"onUpdate:modelValue":b[1]||(b[1]=M=>n.data.bgColor=M),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(k,{value:"#ffffff"},{default:e.withCtx(()=>[...b[25]||(b[25]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(k,{value:"#F7F7FA"},{default:e.withCtx(()=>[...b[26]||(b[26]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createVNode(S,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(T,{size:"mini",onClick:b[2]||(b[2]=M=>f("Article"))},{icon:e.withCtx(()=>[e.createVNode(C)]),default:e.withCtx(()=>[b[28]||(b[28]=e.createTextVNode(" Article ",-1))]),_:1}),e.createVNode(T,{size:"mini",onClick:b[3]||(b[3]=M=>f("Contact"))},{icon:e.withCtx(()=>[e.createVNode(C)]),default:e.withCtx(()=>[b[29]||(b[29]=e.createTextVNode(" Contact ",-1))]),_:1}),e.createVNode(T,{size:"mini",onClick:b[4]||(b[4]=M=>f("Image"))},{icon:e.withCtx(()=>[e.createVNode(C)]),default:e.withCtx(()=>[b[30]||(b[30]=e.createTextVNode(" Image ",-1))]),_:1}),e.createVNode(T,{size:"mini",onClick:b[5]||(b[5]=M=>f("ImageList"))},{icon:e.withCtx(()=>[e.createVNode(C)]),default:e.withCtx(()=>[b[31]||(b[31]=e.createTextVNode(" ImageList ",-1))]),_:1}),e.createVNode(T,{size:"mini",onClick:b[6]||(b[6]=M=>f("Video"))},{icon:e.withCtx(()=>[e.createVNode(C)]),default:e.withCtx(()=>[b[32]||(b[32]=e.createTextVNode(" Video ",-1))]),_:1})]),_:1}),e.createElementVNode("div",Ic,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":b[17]||(b[17]=M=>n.data.data=M),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{onStart:b[18]||(b[18]=M=>l.value=!0),onEnd:b[19]||(b[19]=M=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:M})=>[e.createElementVNode("div",Xc,[e.createElementVNode("p",qc,e.toDisplayString(M.type),1),e.createElementVNode("div",Fc,[e.createElementVNode("div",Yc,[e.createVNode(L,{class:"drag-icon"})]),e.createVNode(O,{class:"btn-delete",onClick:w=>p(M.id)},null,8,["onClick"])]),M.type==="Article"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[b[37]||(b[37]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(z,{modelValue:M.title,"onUpdate:modelValue":w=>M.title=w,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b[38]||(b[38]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:M.content,"onUpdate:modelValue":w=>M.content=w,name:`ArticleList_editor_${M.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),b[39]||(b[39]=e.createElementVNode("p",{class:"item-title"},"按钮",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:M.buttonList,"onUpdate:modelValue":w=>M.buttonList=w,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!m(M.buttonList),onStart:b[7]||(b[7]=w=>l.value=!0),onEnd:b[8]||(b[8]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(M.buttonList)}]),key:w.id},[e.createElementVNode("div",Zc,[m(M.buttonList)?(e.openBlock(),e.createElementBlock("div",Gc,[e.createVNode(L,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(O,{class:"btn-delete",onClick:D=>v(M.buttonList,w.id)},null,8,["onClick"])]),e.createVNode(T,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.text),1)]),_:2},1024),e.createElementVNode("div",Jc,[e.createVNode(z,{class:"action-text",modelValue:w.text,"onUpdate:modelValue":D=>w.text=D,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:w.url,"onUpdate:modelValue":D=>w.url=D,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":w.isExternal},{default:e.withCtx(()=>[...b[33]||(b[33]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:w=>A(M.buttonList)},[e.createVNode(C),b[34]||(b[34]=e.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,Kc),b[40]||(b[40]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":w=>M.linkList=w,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!m(M.linkList),onStart:b[9]||(b[9]=w=>l.value=!0),onEnd:b[10]||(b[10]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(M.linkList)}]),key:w.id},[e.createElementVNode("div",Qc,[m(M.linkList)?(e.openBlock(),e.createElementBlock("div",eu,[e.createVNode(L,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(O,{class:"btn-delete",onClick:D=>V(M.linkList,w.id)},null,8,["onClick"])]),e.createVNode($,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.text),1)]),_:2},1024),e.createElementVNode("div",tu,[e.createVNode(z,{class:"action-text",modelValue:w.text,"onUpdate:modelValue":D=>w.text=D,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:w.url,"onUpdate:modelValue":D=>w.url=D,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":w.isExternal},{default:e.withCtx(()=>[...b[35]||(b[35]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:w=>x(M.linkList)},[e.createVNode(C),b[36]||(b[36]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,lu)],64)):e.createCommentVNode("",!0),M.type==="Contact"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b[44]||(b[44]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(z,{modelValue:M.title,"onUpdate:modelValue":w=>M.title=w,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b[45]||(b[45]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:M.content,"onUpdate:modelValue":w=>M.content=w,name:`ArticleList_editor_${M.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),b[46]||(b[46]=e.createElementVNode("p",{class:"item-title"},"分类",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:M.categories,"onUpdate:modelValue":w=>M.categories=w,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},s.value,{disabled:!m(M.categories),onStart:b[11]||(b[11]=w=>l.value=!0),onEnd:b[12]||(b[12]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(M.categories)}]),key:w.id},[e.createElementVNode("div",ou,[m(M.categories)?(e.openBlock(),e.createElementBlock("div",nu,[e.createVNode(L,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(O,{class:"btn-delete",onClick:D=>g(M.categories,w.id)},null,8,["onClick"])]),e.createVNode(O,{class:"btn-delete",onClick:D=>g(M.categories,w.id)},null,8,["onClick"]),e.createVNode($,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.text),1)]),_:2},1024),e.createElementVNode("div",au,[e.createVNode(z,{modelValue:w.text,"onUpdate:modelValue":D=>w.text=D,placeholder:"分类名称","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:w=>h(M.categories)},[e.createVNode(C),b[41]||(b[41]=e.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,iu),b[47]||(b[47]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":w=>M.linkList=w,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!m(M.linkList),onStart:b[13]||(b[13]=w=>l.value=!0),onEnd:b[14]||(b[14]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(M.linkList)}]),key:w.id},[e.createElementVNode("div",su,[m(M.linkList)?(e.openBlock(),e.createElementBlock("div",ru,[e.createVNode(L,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(O,{class:"btn-delete",onClick:D=>V(M.linkList,w.id)},null,8,["onClick"])]),e.createVNode($,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.text),1)]),_:2},1024),e.createElementVNode("div",du,[e.createVNode(z,{class:"action-text",modelValue:w.text,"onUpdate:modelValue":D=>w.text=D,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:w.url,"onUpdate:modelValue":D=>w.url=D,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":w.isExternal},{default:e.withCtx(()=>[...b[42]||(b[42]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:w=>x(M.linkList)},[e.createVNode(C),b[43]||(b[43]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,cu)],64)):e.createCommentVNode("",!0),M.type==="Image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("img",{class:"item-img",src:M.imgSrc},null,8,uu),e.createElementVNode("div",mu,[e.createVNode(z,{modelValue:M.imgSrc,"onUpdate:modelValue":w=>M.imgSrc=w,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:M.imgSrc,"onUpdate:modelValue":w=>M.imgSrc=w,name:`ArticleList_${M.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(z,{class:"mt-2",modelValue:M.caption,"onUpdate:modelValue":w=>M.caption=w,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{class:"mt-2",modelValue:M.alt,"onUpdate:modelValue":w=>M.alt=w,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(j,{class:"pt-2","model-value":M.isRound},{default:e.withCtx(()=>[...b[48]||(b[48]=[e.createTextVNode("圆角",-1)])]),_:1},8,["model-value"])],64)):e.createCommentVNode("",!0),M.type==="ImageList"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[b[50]||(b[50]=e.createElementVNode("p",{class:"item-title"},"图片组",-1)),e.createElementVNode("div",Au,[e.createVNode(e.unref(de),e.mergeProps({modelValue:M.imageList,"onUpdate:modelValue":w=>M.imageList=w,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},d.value,{disabled:!m(M.imageList),onStart:b[15]||(b[15]=w=>l.value=!0),onEnd:b[16]||(b[16]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["img-list-item flex draggable-item",{"sortable-disabled":!m(M.imageList)}]),key:w.id},[e.createElementVNode("div",pu,[m(M.imageList)?(e.openBlock(),e.createElementBlock("div",fu,[e.createVNode(L,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(O,{class:"btn-delete",onClick:D=>N(M.imageList,w.id)},null,8,["onClick"])]),w.src?(e.openBlock(),e.createElementBlock("div",vu,[e.createElementVNode("img",{class:"item-img small-img",src:w.src},null,8,hu)])):e.createCommentVNode("",!0),e.createElementVNode("div",Vu,[e.createVNode(z,{style:{"margin-bottom":"12px"},modelValue:w.src,"onUpdate:modelValue":D=>w.src=D,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:w.src,"onUpdate:modelValue":D=>w.src=D,name:`ArticleList_${w.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"])]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:w=>y(M.imageList)},[e.createVNode(C),b[49]||(b[49]=e.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,gu)],64)):e.createCommentVNode("",!0),M.type==="Video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[b[51]||(b[51]=e.createElementVNode("p",{class:"item-title"},"视频",-1)),e.createElementVNode("video",{class:"item-img",src:M.videoSrc,controls:""},null,8,yu),e.createElementVNode("div",bu,[e.createVNode(z,{modelValue:M.videoSrc,"onUpdate:modelValue":w=>M.videoSrc=w,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:M.videoSrc,"onUpdate:modelValue":w=>M.videoSrc=w,name:`ArticleList_${M.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createElementVNode("img",{class:"item-img",src:M.imgSrc},null,8,xu),e.createElementVNode("div",wu,[e.createVNode(z,{modelValue:M.imgSrc,"onUpdate:modelValue":w=>M.imgSrc=w,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:M.imgSrc,"onUpdate:modelValue":w=>M.imgSrc=w,name:`ArticleList_${M.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],64)):e.createCommentVNode("",!0)])]),_:1},16,["modelValue","component-data"])])])]),_:1},8,["visible"])}}}),Nu=H(ku,[["__scopeId","data-v-a682759f"]]),_u={class:"operate-page operate-component"},Cu={class:"operate-btn d-flex justify-end"},Eu=e.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1}},emits:["handleCopy","handleDelete","handleEdit","handlePaste"],setup(n,{emit:t}){const l=t,o=()=>{l("handleCopy")},a=()=>{l("handleDelete")},i=()=>{l("handleEdit")},s=d=>{l("handlePaste",d)};return(d,m)=>{const u=e.resolveComponent("icon-copy"),c=e.resolveComponent("a-tooltip"),r=e.resolveComponent("icon-delete"),f=e.resolveComponent("icon-edit"),p=e.resolveComponent("icon-arrow-up"),A=e.resolveComponent("icon-arrow-down");return e.withDirectives((e.openBlock(),e.createElementBlock("div",_u,[e.createElementVNode("div",Cu,[e.createElementVNode("div",{class:"btn-item btn-copy d-flex align-center fs-10",onClick:o},[e.createVNode(c,{content:"复制",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(u)]),_:1})]),e.createElementVNode("div",{class:"btn-item btn-delete d-flex align-center fs-10",onClick:a},[e.createVNode(c,{content:"删除",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(r)]),_:1})]),e.createElementVNode("div",{class:"btn-item btn-edit d-flex align-center fs-10",onClick:i},[e.createVNode(c,{content:"编辑",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1})]),e.createElementVNode("div",{class:"btn-item btn-paste d-flex align-center fs-10",onClick:m[0]||(m[0]=v=>s("top"))},[e.createVNode(c,{content:"向上粘贴",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(p)]),_:1})]),e.createElementVNode("div",{class:"btn-item btn-paste d-flex align-center fs-10",onClick:m[1]||(m[1]=v=>s("bottom"))},[e.createVNode(c,{content:"向下粘贴",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(A)]),_:1})])])],512)),[[e.vShow,n.show]])}}}),ye=H(Eu,[["__scopeId","data-v-534cce66"]]),Tu={class:"article-list-left"},Su={class:"article-list-right"},Pu=e.defineComponent({name:"ArticleList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=e.computed(()=>l.modelValue&&l.modelValue.data&&l.modelValue.data.length?l.modelValue.data.some(r=>r.type==="Image"||r.type==="Video"||r.type==="ImageList"):!1),i=()=>{var f;if(l.modelValue&&l.modelValue.data)return;const r={id:((f=l.modelValue)==null?void 0:f.id)||B(),type:"ArticleList",width:"",bgColor:"",data:[{id:B(),type:"Article",title:"耀华国际教育学校浙江桐乡",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",buttonList:[],linkList:[{id:B(),text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},{id:B(),type:"Image",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",caption:"",alt:"",isRound:!1}]};o("update:modelValue",r)},s=e.ref(!1),d=e.ref(!1),m=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},c=r=>{o("handlePaste",r)};return i(),(r,f)=>{var v,x,V;const p=e.resolveComponent("a-col"),A=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"article-list-container",style:e.normalizeStyle({backgroundColor:(v=n.modelValue)==null?void 0:v.bgColor}),onMouseenter:f[2]||(f[2]=h=>s.value=!0),onMouseleave:f[3]||(f[3]=h=>s.value=!1)},[e.createVNode(A,{class:e.normalizeClass(["article-list",[(x=n.modelValue)!=null&&x.width?`container-content-${(V=n.modelValue)==null?void 0:V.width}`:"container-content"]])},{default:e.withCtx(()=>[e.createVNode(p,{sm:{span:24},md:{span:a.value?12:24}},{default:e.withCtx(()=>{var h;return[e.createElementVNode("div",Tu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((h=n.modelValue)==null?void 0:h.data,g=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:g.id},[g.type==="Article"?(e.openBlock(),e.createBlock(gc,{key:0,article:g},null,8,["article"])):e.createCommentVNode("",!0),g.type==="Contact"?(e.openBlock(),e.createBlock(_c,{key:1,contact:g},null,8,["contact"])):e.createCommentVNode("",!0)],64))),128))])]}),_:1},8,["md"]),a.value?(e.openBlock(),e.createBlock(p,{key:0,sm:{span:24},md:{span:12}},{default:e.withCtx(()=>{var h;return[e.createElementVNode("div",Su,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((h=n.modelValue)==null?void 0:h.data,g=>(e.openBlock(),e.createBlock($c,{key:g.id,type:g.type,data:g,preview:n.modelValue.isPreview},null,8,["type","data","preview"]))),128))])]}),_:1})):e.createCommentVNode("",!0),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:1,show:s.value,"onUpdate:show":f[0]||(f[0]=h=>s.value=h),onHandleEdit:f[1]||(f[1]=h=>d.value=!0),onHandleDelete:m,onHandleCopy:u,onHandlePaste:c},null,8,["show"]))]),_:1},8,["class"])],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Nu,{key:0,show:d.value,"onUpdate:show":f[4]||(f[4]=h=>d.value=h),data:n.modelValue},null,8,["show","data"]))],64)}}}),fi=H(Pu,[["__scopeId","data-v-e31d08c6"]]),Bu={class:"setting-content"},Lu=["src"],Ou={class:"item-uplaod flex items-center"},zu=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(d,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>{var m,u;return[e.createElementVNode("div",Bu,[i[3]||(i[3]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(s,{modelValue:n.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=c=>n.data.data.title=c),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),i[4]||(i[4]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:(u=(m=n.data)==null?void 0:m.data)==null?void 0:u.imgSrc},null,8,Lu),e.createElementVNode("div",Ou,[e.createVNode(s,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[1]||(i[1]=c=>n.data.data.imgSrc=c),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[2]||(i[2]=c=>n.data.data.imgSrc=c),name:"bannerImage"},null,8,["modelValue"])])])]}),_:1},8,["visible"])}}}),Mu=H(zu,[["__scopeId","data-v-c2c014ad"]]),ju={class:"banner-image__title is-zh"},$u=e.defineComponent({name:"BannerImage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"BannerImage",data:{title:"About YWIES",imgSrc:"https://osswebsite-test.cedim.cn/ywies-tx/static-images/about-ywies/01_About_YWIES_1_Header.jpg"}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"banner-image",onMouseenter:r[2]||(r[2]=x=>i.value=!0),onMouseleave:r[3]||(r[3]=x=>i.value=!1)},[e.createElementVNode("div",{class:"banner-image__image",style:e.normalizeStyle({backgroundImage:"url("+((p=(f=n.modelValue)==null?void 0:f.data)==null?void 0:p.imgSrc)+")","background-position":"center"})},[e.createElementVNode("div",ju,e.toDisplayString((v=(A=n.modelValue)==null?void 0:A.data)==null?void 0:v.title),1)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=x=>i.value=x),onHandleEdit:r[1]||(r[1]=x=>s.value=!0),onHandleDelete:d,onHandleCopy:m,onHandlePaste:u},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Mu,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),vi=H($u,[["__scopeId","data-v-88156ebc"]]),Du={class:"setting-content"},Uu=["src"],Ru={class:"item-uplaod flex items-center"},Hu=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(d,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>{var m,u;return[e.createElementVNode("div",Du,[i[3]||(i[3]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(s,{modelValue:n.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=c=>n.data.data.title=c),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),i[4]||(i[4]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:(u=(m=n.data)==null?void 0:m.data)==null?void 0:u.imgSrc},null,8,Uu),e.createElementVNode("div",Ru,[e.createVNode(s,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[1]||(i[1]=c=>n.data.data.imgSrc=c),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[2]||(i[2]=c=>n.data.data.imgSrc=c),name:"BannerPage","button-class":"fit-content"},null,8,["modelValue"])])])]}),_:1},8,["visible"])}}}),Wu=H(Hu,[["__scopeId","data-v-87125fc3"]]),Iu={class:"red"},Xu={class:"banner-page__title"},qu={class:"position-absolute triangle-position"},Fu={class:"position-relative h-100 banner-strips"},Yu=e.defineComponent({name:"BannerPage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"BannerPage",data:{title:"冷风机奥附件哦啊金佛阿吉佛大金佛电极法对哦就对哦就发哦就发哦激发激发哦飞机奥飞机",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg"}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"banner-page",onMouseenter:r[2]||(r[2]=x=>i.value=!0),onMouseleave:r[3]||(r[3]=x=>i.value=!1)},[e.createElementVNode("div",Iu,[e.createElementVNode("p",Xu,e.toDisplayString((p=(f=n.modelValue)==null?void 0:f.data)==null?void 0:p.title),1)]),r[6]||(r[6]=e.createElementVNode("div",{class:"orange"},null,-1)),e.createElementVNode("div",qu,[e.createElementVNode("div",Fu,[r[5]||(r[5]=e.createElementVNode("img",{src:"https://ywies-tx.cedim.cn/images/material/banner-strips.png",alt:""},null,-1)),e.createElementVNode("div",{class:"triangle",style:e.normalizeStyle({backgroundImage:"url("+((v=(A=n.modelValue)==null?void 0:A.data)==null?void 0:v.imgSrc)+")"}),"data-v-24231ec2":""},null,4)])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=x=>i.value=x),onHandleEdit:r[1]||(r[1]=x=>s.value=!0),onHandleDelete:d,onHandleCopy:m,onHandlePaste:u},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Wu,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),hi=H(Yu,[["__scopeId","data-v-2a3cea9b"]]),Zu={class:"setting-content"},Gu={class:"setting-header flex items-center"},Ju={class:"setting-header flex items-center"},Ku={class:"setting-body"},Qu={class:"setting-item"},em={class:"btn-group"},tm={key:0,class:"drag-handle"},lm={class:"item-action flex items-center"},om=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},m=c=>{i.data.data.push({id:B(),type:c,text:"查看更多",url:void 0,isExternal:!1})},u=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-plus"),v=e.resolveComponent("a-button"),x=e.resolveComponent("a-button-group"),V=e.resolveComponent("icon-drag-arrow"),h=e.resolveComponent("icon-delete"),g=e.resolveComponent("a-input"),y=e.resolveComponent("a-checkbox"),N=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(N,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Zu,[e.createElementVNode("div",Gu,[r[13]||(r[13]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(p,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=_=>n.data.width=_),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:""},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(f,{value:"small"},{default:e.withCtx(()=>[...r[10]||(r[10]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(f,{value:"middle"},{default:e.withCtx(()=>[...r[11]||(r[11]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(f,{value:"max"},{default:e.withCtx(()=>[...r[12]||(r[12]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Ju,[r[16]||(r[16]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[1]||(r[1]=_=>n.data.bgColor=_),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[14]||(r[14]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[15]||(r[15]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createVNode(x,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(v,{size:"mini",onClick:r[2]||(r[2]=_=>m(""))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[17]||(r[17]=e.createTextVNode(" 默认按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:r[3]||(r[3]=_=>m("white"))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[18]||(r[18]=e.createTextVNode(" 白色按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:r[4]||(r[4]=_=>m("light"))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[19]||(r[19]=e.createTextVNode(" 亮色按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:r[5]||(r[5]=_=>m("blue"))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[20]||(r[20]=e.createTextVNode(" 蓝色按钮 ",-1))]),_:1})]),_:1}),e.createElementVNode("div",Ku,[e.createElementVNode("div",Qu,[r[22]||(r[22]=e.createElementVNode("p",{class:"item-name"},"按钮",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[6]||(r[6]=_=>n.data.data=_),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[7]||(r[7]=_=>l.value=!0),onEnd:r[8]||(r[8]=_=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:_})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:_.id},[e.createElementVNode("div",em,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",tm,[e.createVNode(V,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:b=>u(_.id)},null,8,["onClick"])]),e.createVNode(v,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.text),1)]),_:2},1024),e.createElementVNode("div",lm,[e.createVNode(g,{class:"action-text",modelValue:_.text,"onUpdate:modelValue":b=>_.text=b,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(g,{modelValue:_.url,"onUpdate:modelValue":b=>_.url=b,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(y,{"model-value":_.isExternal},{default:e.withCtx(()=>[...r[21]||(r[21]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),nm=H(om,[["__scopeId","data-v-3f125042"]]),am={class:"btn-list__row"},im=["href"],sm={class:"btn-primary__text"},rm=["onClick"],dm={class:"btn-primary__text"},cm=e.defineComponent({__name:"btnList",props:{list:{}},emits:["handleClick"],setup(n,{emit:t}){const l=t,o=a=>{l("handleClick",a)};return(a,i)=>(e.openBlock(),e.createElementBlock("div",am,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,s=>(e.openBlock(),e.createElementBlock("div",{class:"btn-list__item",key:s.id},[s.url&&s.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:s.url,class:e.normalizeClass(["size-normal btn-primary",[s.type?`btn-primary--${s.type}`:""]])},[e.createElementVNode("div",sm,e.toDisplayString(s.text),1),i[0]||(i[0]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,im)):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d=>o(s.url||""),class:e.normalizeClass(["size-normal btn-primary",[s.type?`btn-primary--${s.type}`:""]])},[e.createElementVNode("div",dm,e.toDisplayString(s.text),1),i[1]||(i[1]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,rm))]))),128))]))}}),Vi=H(cm,[["__scopeId","data-v-5e060a34"]]),um=e.defineComponent({name:"BtnList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"BtnList",width:"",bgColor:"",data:[{id:B(),type:"",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"blue",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"btn-list center",style:e.normalizeStyle({backgroundColor:(f=n.modelValue)==null?void 0:f.bgColor}),onMouseenter:r[2]||(r[2]=x=>i.value=!0),onMouseleave:r[3]||(r[3]=x=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["btn-list__container",[(p=n.modelValue)!=null&&p.width?`container-content-${(A=n.modelValue)==null?void 0:A.width}`:"container-content"]])},[e.createVNode(Vi,{list:(v=n.modelValue)==null?void 0:v.data},null,8,["list"])],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=x=>i.value=x),onHandleEdit:r[1]||(r[1]=x=>s.value=!0),onHandleDelete:d,onHandleCopy:m,onHandlePaste:u},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(nm,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),fa=H(um,[["__scopeId","data-v-696a9c13"]]),mm={class:"setting-content"},Am={class:"setting-header flex items-center"},pm={class:"setting-header flex items-center"},fm={class:"setting-header flex items-center"},vm={class:"setting-body"},hm={class:"setting-item"},Vm={class:"btn-group"},gm={key:0,class:"drag-handle"},ym=["src"],bm={class:"item-uplaod flex items-center"},xm=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},m=()=>{i.data.data.push({id:B(),title:"标题",subtitle:"副标题",imgSrc:void 0,alt:""})},u=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("a-input"),v=e.resolveComponent("icon-drag-arrow"),x=e.resolveComponent("icon-delete"),V=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(h,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",mm,[e.createElementVNode("div",Am,[r[9]||(r[9]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=g=>n.data.bgColor=g),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",pm,[r[10]||(r[10]=e.createElementVNode("span",{class:"header-title"},"pc列数",-1)),e.createVNode(A,{modelValue:n.data.desktopCol,"onUpdate:modelValue":r[1]||(r[1]=g=>n.data.desktopCol=g),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",fm,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),e.createVNode(A,{modelValue:n.data.mobileCol,"onUpdate:modelValue":r[2]||(r[2]=g=>n.data.mobileCol=g),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",vm,[e.createElementVNode("div",hm,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[3]||(r[3]=g=>n.data.data=g),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[4]||(r[4]=g=>l.value=!0),onEnd:r[5]||(r[5]=g=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:g})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:g.id},[e.createElementVNode("div",Vm,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",gm,[e.createVNode(v,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:y=>u(g.id)},null,8,["onClick"])]),r[12]||(r[12]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(A,{modelValue:g.title,"onUpdate:modelValue":y=>g.title=y,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[13]||(r[13]=e.createElementVNode("p",{class:"item-title"},"副标题",-1)),e.createVNode(A,{modelValue:g.subtitle,"onUpdate:modelValue":y=>g.subtitle=y,placeholder:"请输入文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[14]||(r[14]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:g.imgSrc},null,8,ym),e.createElementVNode("div",bm,[e.createVNode(A,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,name:`GalleryDefault_${g.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(A,{class:"mt-2",modelValue:g.alt,"onUpdate:modelValue":y=>g.alt=y,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[6]||(r[6]=g=>m())},[e.createVNode(V),r[15]||(r[15]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),wm=H(xm,[["__scopeId","data-v-0e37a6da"]]),km={class:"gallery-default"},Nm={class:"img-wrapper need-mask"},_m=["src","alt"],Cm={class:"img-wrapper__content"},Em={class:"img-wrapper__content__title"},Tm={class:"img-wrapper__content__subtitle"},Sm=e.defineComponent({name:"GalleryDefault",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"GalleryDefault",bgColor:"",desktopCol:3,mobileCol:2,data:[{id:B(),title:"标题",subtitle:"副标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:""},{id:B(),title:"标题",subtitle:"副标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:""}]};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:r[2]||(r[2]=x=>i.value=!0),onMouseleave:r[3]||(r[3]=x=>i.value=!1)},[e.createElementVNode("div",{class:"container-content",style:e.normalizeStyle({backgroundColor:(f=n.modelValue)==null?void 0:f.bgColor})},[e.createElementVNode("div",{class:e.normalizeClass(["default-row row",[`row-cols-${(p=n.modelValue)==null?void 0:p.mobileCol}`,`row-cols-md-${(A=n.modelValue)==null?void 0:A.desktopCol}`]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=n.modelValue)==null?void 0:v.data,x=>(e.openBlock(),e.createElementBlock("div",{key:x.id,class:"col"},[e.createElementVNode("div",km,[e.createElementVNode("div",Nm,[e.createElementVNode("img",{src:x.imgSrc,alt:x.alt},null,8,_m),e.createElementVNode("div",Cm,[e.createElementVNode("div",Em,e.toDisplayString(x.title),1),e.createElementVNode("h5",Tm,e.toDisplayString(x.subtitle),1)])])])]))),128))],2)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=x=>i.value=x),onHandleEdit:r[1]||(r[1]=x=>s.value=!0),onHandleDelete:d,onHandleCopy:m,onHandlePaste:u},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(wm,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),gi=H(Sm,[["__scopeId","data-v-38153845"]]),Pm={class:"setting-content"},Bm={class:"setting-header flex items-center"},Lm={class:"setting-header flex items-center"},Om={class:"setting-header flex items-center"},zm={class:"setting-header flex items-center"},Mm={class:"setting-body"},jm={class:"setting-item"},$m={class:"btn-group"},Dm={key:0,class:"drag-handle"},Um=["src"],Rm={class:"item-uplaod flex items-center"},Hm=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},m=()=>{i.data.data.push({id:B(),title:"标题",url:"",imgSrc:void 0,alt:""})},u=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("a-input"),v=e.resolveComponent("icon-drag-arrow"),x=e.resolveComponent("icon-delete"),V=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(h,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Pm,[e.createElementVNode("div",Bm,[r[10]||(r[10]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=g=>n.data.bgColor=g),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Lm,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"pc列数",-1)),e.createVNode(A,{modelValue:n.data.desktopCol,"onUpdate:modelValue":r[1]||(r[1]=g=>n.data.desktopCol=g),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",Om,[r[12]||(r[12]=e.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),e.createVNode(A,{modelValue:n.data.mobileCol,"onUpdate:modelValue":r[2]||(r[2]=g=>n.data.mobileCol=g),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",zm,[r[15]||(r[15]=e.createElementVNode("span",{class:"header-title"},"是否居中",-1)),e.createVNode(p,{modelValue:n.data.center,"onUpdate:modelValue":r[3]||(r[3]=g=>n.data.center=g),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:!0},{default:e.withCtx(()=>[...r[13]||(r[13]=[e.createTextVNode("是",-1)])]),_:1}),e.createVNode(f,{value:!1},{default:e.withCtx(()=>[...r[14]||(r[14]=[e.createTextVNode("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Mm,[e.createElementVNode("div",jm,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[4]||(r[4]=g=>n.data.data=g),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[5]||(r[5]=g=>l.value=!0),onEnd:r[6]||(r[6]=g=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:g})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:g.id},[e.createElementVNode("div",$m,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",Dm,[e.createVNode(v,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:y=>u(g.id)},null,8,["onClick"])]),r[16]||(r[16]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(A,{modelValue:g.title,"onUpdate:modelValue":y=>g.title=y,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[17]||(r[17]=e.createElementVNode("p",{class:"item-title"},"跳转链接",-1)),e.createVNode(A,{modelValue:g.url,"onUpdate:modelValue":y=>g.url=y,placeholder:"请输入跳转链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[18]||(r[18]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:g.imgSrc},null,8,Um),e.createElementVNode("div",Rm,[e.createVNode(A,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,name:`GalleryCaptionRound_${g.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(A,{class:"mt-2",modelValue:g.alt,"onUpdate:modelValue":y=>g.alt=y,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[7]||(r[7]=g=>m())},[e.createVNode(V),r[19]||(r[19]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),Wm=H(Hm,[["__scopeId","data-v-641fc5d7"]]),Im=["href"],Xm=["src","alt"],qm=["onClick"],Fm=["src","alt"],Ym={key:2,class:"gallery-caption__img"},Zm=["src","alt"],Gm=["href"],Jm=["onClick"],Km=["innerHTML"],Qm=e.defineComponent({name:"GalleryCaptionRound",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var f;if(l.modelValue&&l.modelValue.data)return;const r={id:((f=l.modelValue)==null?void 0:f.id)||B(),type:"GalleryCaptionRound",bgColor:"",desktopCol:3,mobileCol:2,center:!1,data:[{id:B(),title:"标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com"},{id:B(),title:"标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:""}]};o("update:modelValue",r)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},u=r=>{o("handlePaste",r)},c=r=>{o("handleClick",r)};return a(),(r,f)=>{var p,A,v,x,V;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:f[2]||(f[2]=h=>i.value=!0),onMouseleave:f[3]||(f[3]=h=>i.value=!1)},[e.createElementVNode("div",{class:"gallery-container gallery-caption-round container-content",style:e.normalizeStyle({backgroundColor:(p=n.modelValue)==null?void 0:p.bgColor})},[e.createElementVNode("div",{class:e.normalizeClass(["default-row row",[`row-cols-${(A=n.modelValue)==null?void 0:A.mobileCol}`,`row-cols-md-${(v=n.modelValue)==null?void 0:v.desktopCol}`,((x=n.modelValue)==null?void 0:x.center)&&"row-center"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=n.modelValue)==null?void 0:V.data,h=>(e.openBlock(),e.createElementBlock("div",{key:h.id,class:"col"},[e.createElementVNode("div",{class:e.normalizeClass(["gallery-caption-round gallery-caption",[h.url&&"has-url"]])},[h.url&&h.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:h.url,target:"_blank",class:"gallery-caption__img"},[e.createElementVNode("img",{src:h.imgSrc,alt:h.alt},null,8,Xm)],8,Im)):h.url?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:g=>c(h.url),class:"gallery-caption__img"},[e.createElementVNode("img",{src:h.imgSrc,alt:h.alt},null,8,Fm)],8,qm)):(e.openBlock(),e.createElementBlock("div",Ym,[e.createElementVNode("img",{src:h.imgSrc,alt:h.alt},null,8,Zm)])),h.url&&h.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:3,href:h.url,target:"_blank",class:"gallery-caption__title tx-subtitle text-blue text-center"},e.toDisplayString(h.title),9,Gm)):h.url?(e.openBlock(),e.createElementBlock("button",{key:4,onClick:g=>c(h.url),class:"gallery-caption__title tx-subtitle text-blue text-center"},e.toDisplayString(h.title),9,Jm)):(e.openBlock(),e.createElementBlock("div",{key:5,class:"tx-subtitle text-blue text-center",innerHTML:h.title},null,8,Km))],2)]))),128))],2)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":f[0]||(f[0]=h=>i.value=h),onHandleEdit:f[1]||(f[1]=h=>s.value=!0),onHandleDelete:d,onHandleCopy:m,onHandlePaste:u},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Wm,{key:0,show:s.value,"onUpdate:show":f[4]||(f[4]=h=>s.value=h),data:n.modelValue},null,8,["show","data"]))],64)}}}),yi=H(Qm,[["__scopeId","data-v-1597f5dc"]]),eA={class:"setting-content"},tA={class:"setting-header flex items-center"},lA={class:"setting-body"},oA={class:"setting-item"},nA={class:"btn-group"},aA={key:0,class:"drag-handle"},iA=["src"],sA={class:"item-uplaod flex items-center"},rA={class:"item-action flex items-center"},dA=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},m=()=>{i.data.data.push({id:B(),title:"标题",text:"内容",date:"",imgSrc:"",alt:"",url:"",btnText:""})},u=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),x=e.resolveComponent("a-input"),V=e.resolveComponent("a-button"),h=e.resolveComponent("icon-plus"),g=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(g,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",eA,[e.createElementVNode("div",tA,[r[7]||(r[7]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=y=>n.data.bgColor=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[5]||(r[5]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",lA,[e.createElementVNode("div",oA,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=y=>n.data.data=y),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[2]||(r[2]=y=>l.value=!0),onEnd:r[3]||(r[3]=y=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:y.id},[e.createElementVNode("div",nA,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",aA,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:N=>u(y.id)},null,8,["onClick"])]),r[8]||(r[8]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(x,{modelValue:y.title,"onUpdate:modelValue":N=>y.title=N,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[9]||(r[9]=e.createElementVNode("p",{class:"item-title"},"文本",-1)),e.createVNode(e.unref(qe),{modelValue:y.text,"onUpdate:modelValue":N=>y.text=N,name:`GalleryTimeline_editor_${y.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),r[10]||(r[10]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(x,{modelValue:y.date,"onUpdate:modelValue":N=>y.date=N,placeholder:"请输入日期","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[11]||(r[11]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:y.imgSrc},null,8,iA),e.createElementVNode("div",sA,[e.createVNode(x,{modelValue:y.imgSrc,"onUpdate:modelValue":N=>y.imgSrc=N,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:y.imgSrc,"onUpdate:modelValue":N=>y.imgSrc=N,name:`GalleryTimeline_${y.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(x,{class:"mt-2",modelValue:y.alt,"onUpdate:modelValue":N=>y.alt=N,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(V,{style:{"margin-top":"10px"},type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.btnText),1)]),_:2},1024),e.createElementVNode("div",rA,[e.createVNode(x,{class:"action-text",modelValue:y.btnText,"onUpdate:modelValue":N=>y.btnText=N,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(x,{modelValue:y.url,"onUpdate:modelValue":N=>y.url=N,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[4]||(r[4]=y=>m())},[e.createVNode(h),r[12]||(r[12]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),cA=H(dA,[["__scopeId","data-v-69d5d758"]]);function ta(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}var uA=typeof global=="object"&&global&&global.Object===Object&&global,mA=typeof self=="object"&&self&&self.Object===Object&&self,kr=uA||mA||Function("return this")(),Na=function(){return kr.Date.now()},AA=/\s/;function pA(n){for(var t=n.length;t--&&AA.test(n.charAt(t)););return t}var fA=/^\s+/;function vA(n){return n&&n.slice(0,pA(n)+1).replace(fA,"")}var la=kr.Symbol,Nr=Object.prototype,hA=Nr.hasOwnProperty,VA=Nr.toString,Io=la?la.toStringTag:void 0;function gA(n){var t=hA.call(n,Io),l=n[Io];try{n[Io]=void 0;var o=!0}catch{}var a=VA.call(n);return o&&(t?n[Io]=l:delete n[Io]),a}var yA=Object.prototype,bA=yA.toString;function xA(n){return bA.call(n)}var wA="[object Null]",kA="[object Undefined]",Cs=la?la.toStringTag:void 0;function NA(n){return n==null?n===void 0?kA:wA:Cs&&Cs in Object(n)?gA(n):xA(n)}function _A(n){return n!=null&&typeof n=="object"}var CA="[object Symbol]";function EA(n){return typeof n=="symbol"||_A(n)&&NA(n)==CA}var Es=NaN,TA=/^[-+]0x[0-9a-f]+$/i,SA=/^0b[01]+$/i,PA=/^0o[0-7]+$/i,BA=parseInt;function Ts(n){if(typeof n=="number")return n;if(EA(n))return Es;if(ta(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=ta(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=vA(n);var l=SA.test(n);return l||PA.test(n)?BA(n.slice(2),l?2:8):TA.test(n)?Es:+n}var LA="Expected a function",OA=Math.max,zA=Math.min;function In(n,t,l){var o,a,i,s,d,m,u=0,c=!1,r=!1,f=!0;if(typeof n!="function")throw new TypeError(LA);t=Ts(t)||0,ta(l)&&(c=!!l.leading,r="maxWait"in l,i=r?OA(Ts(l.maxWait)||0,t):i,f="trailing"in l?!!l.trailing:f);function p(_){var b=o,k=a;return o=a=void 0,u=_,s=n.apply(k,b),s}function A(_){return u=_,d=setTimeout(V,t),c?p(_):s}function v(_){var b=_-m,k=_-u,E=t-b;return r?zA(E,i-k):E}function x(_){var b=_-m,k=_-u;return m===void 0||b>=t||b<0||r&&k>=i}function V(){var _=Na();if(x(_))return h(_);d=setTimeout(V,v(_))}function h(_){return d=void 0,f&&o?p(_):(o=a=void 0,s)}function g(){d!==void 0&&clearTimeout(d),u=0,o=m=a=d=void 0}function y(){return d===void 0?s:h(Na())}function N(){var _=Na(),b=x(_);if(o=arguments,a=this,m=_,b){if(d===void 0)return A(m);if(r)return clearTimeout(d),d=setTimeout(V,t),p(m)}return d===void 0&&(d=setTimeout(V,t)),s}return N.cancel=g,N.flush=y,N}var MA="Expected a function";function jA(n,t,l){var o=!0,a=!0;if(typeof n!="function")throw new TypeError(MA);return ta(l)&&(o="leading"in l?!!l.leading:o,a="trailing"in l?!!l.trailing:a),In(n,t,{leading:o,maxWait:t,trailing:a})}var wo=function(){return wo=Object.assign||function(t){for(var l,o=1,a=arguments.length;o<a;o++){l=arguments[o];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(t[i]=l[i])}return t},wo.apply(this,arguments)};function _r(n){return!n||!n.ownerDocument||!n.ownerDocument.defaultView?window:n.ownerDocument.defaultView}function Cr(n){return!n||!n.ownerDocument?document:n.ownerDocument}var Er=function(n){var t={},l=Array.prototype.reduce.call(n,function(o,a){var i=a.name.match(/data-simplebar-(.+)/);if(i){var s=i[1].replace(/\W+(.)/g,function(d,m){return m.toUpperCase()});switch(a.value){case"true":o[s]=!0;break;case"false":o[s]=!1;break;case void 0:o[s]=!0;break;default:o[s]=a.value}}return o},t);return l};function Tr(n,t){var l;n&&(l=n.classList).add.apply(l,t.split(" "))}function Sr(n,t){n&&t.split(" ").forEach(function(l){n.classList.remove(l)})}function Pr(n){return".".concat(n.split(" ").join("."))}var bi=!!(typeof window<"u"&&window.document&&window.document.createElement),$A=Object.freeze({__proto__:null,addClasses:Tr,canUseDOM:bi,classNamesToQuery:Pr,getElementDocument:Cr,getElementWindow:_r,getOptions:Er,removeClasses:Sr}),yo=null,Ss=null;bi&&window.addEventListener("resize",function(){Ss!==window.devicePixelRatio&&(Ss=window.devicePixelRatio,yo=null)});function Ps(){if(yo===null){if(typeof document>"u")return yo=0,yo;var n=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),n.appendChild(t);var l=t.getBoundingClientRect().right;n.removeChild(t),yo=l}return yo}var Cl=_r,_a=Cr,DA=Er,El=Tr,Tl=Sr,bt=Pr,ln=function(){function n(t,l){l===void 0&&(l={});var o=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var a=Cl(o.el);o.scrollXTicking||(a.requestAnimationFrame(o.scrollX),o.scrollXTicking=!0),o.scrollYTicking||(a.requestAnimationFrame(o.scrollY),o.scrollYTicking=!0),o.isScrolling||(o.isScrolling=!0,El(o.el,o.classNames.scrolling)),o.showScrollbar("x"),o.showScrollbar("y"),o.onStopScrolling()},this.scrollX=function(){o.axis.x.isOverflowing&&o.positionScrollbar("x"),o.scrollXTicking=!1},this.scrollY=function(){o.axis.y.isOverflowing&&o.positionScrollbar("y"),o.scrollYTicking=!1},this._onStopScrolling=function(){Tl(o.el,o.classNames.scrolling),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isScrolling=!1},this.onMouseEnter=function(){o.isMouseEntering||(El(o.el,o.classNames.mouseEntered),o.showScrollbar("x"),o.showScrollbar("y"),o.isMouseEntering=!0),o.onMouseEntered()},this._onMouseEntered=function(){Tl(o.el,o.classNames.mouseEntered),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isMouseEntering=!1},this._onMouseMove=function(a){o.mouseX=a.clientX,o.mouseY=a.clientY,(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseMoveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseMoveForAxis("y")},this.onMouseLeave=function(){o.onMouseMove.cancel(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseLeaveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseLeaveForAxis("y"),o.mouseX=-1,o.mouseY=-1},this._onWindowResize=function(){o.scrollbarWidth=o.getScrollbarWidth(),o.hideNativeScrollbar()},this.onPointerEvent=function(a){if(!(!o.axis.x.track.el||!o.axis.y.track.el||!o.axis.x.scrollbar.el||!o.axis.y.scrollbar.el)){var i,s;o.axis.x.track.rect=o.axis.x.track.el.getBoundingClientRect(),o.axis.y.track.rect=o.axis.y.track.el.getBoundingClientRect(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&(i=o.isWithinBounds(o.axis.x.track.rect)),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&(s=o.isWithinBounds(o.axis.y.track.rect)),(i||s)&&(a.stopPropagation(),a.type==="pointerdown"&&a.pointerType!=="touch"&&(i&&(o.axis.x.scrollbar.rect=o.axis.x.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.x.scrollbar.rect)?o.onDragStart(a,"x"):o.onTrackClick(a,"x")),s&&(o.axis.y.scrollbar.rect=o.axis.y.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.y.scrollbar.rect)?o.onDragStart(a,"y"):o.onTrackClick(a,"y"))))}},this.drag=function(a){var i,s,d,m,u,c,r,f,p,A,v;if(!(!o.draggedAxis||!o.contentWrapperEl)){var x,V=o.axis[o.draggedAxis].track,h=(s=(i=V.rect)===null||i===void 0?void 0:i[o.axis[o.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,g=o.axis[o.draggedAxis].scrollbar,y=(m=(d=o.contentWrapperEl)===null||d===void 0?void 0:d[o.axis[o.draggedAxis].scrollSizeAttr])!==null&&m!==void 0?m:0,N=parseInt((c=(u=o.elStyles)===null||u===void 0?void 0:u[o.axis[o.draggedAxis].sizeAttr])!==null&&c!==void 0?c:"0px",10);a.preventDefault(),a.stopPropagation(),o.draggedAxis==="y"?x=a.pageY:x=a.pageX;var _=x-((f=(r=V.rect)===null||r===void 0?void 0:r[o.axis[o.draggedAxis].offsetAttr])!==null&&f!==void 0?f:0)-o.axis[o.draggedAxis].dragOffset;_=o.draggedAxis==="x"&&o.isRtl?((A=(p=V.rect)===null||p===void 0?void 0:p[o.axis[o.draggedAxis].sizeAttr])!==null&&A!==void 0?A:0)-g.size-_:_;var b=_/(h-g.size),k=b*(y-N);o.draggedAxis==="x"&&o.isRtl&&(k=!((v=n.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-k:k),o.contentWrapperEl[o.axis[o.draggedAxis].scrollOffsetAttr]=k}},this.onEndDrag=function(a){o.isDragging=!1;var i=_a(o.el),s=Cl(o.el);a.preventDefault(),a.stopPropagation(),Tl(o.el,o.classNames.dragging),o.onStopScrolling(),i.removeEventListener("mousemove",o.drag,!0),i.removeEventListener("mouseup",o.onEndDrag,!0),o.removePreventClickId=s.setTimeout(function(){i.removeEventListener("click",o.preventClick,!0),i.removeEventListener("dblclick",o.preventClick,!0),o.removePreventClickId=null})},this.preventClick=function(a){a.preventDefault(),a.stopPropagation()},this.el=t,this.options=wo(wo({},n.defaultOptions),l),this.classNames=wo(wo({},n.defaultOptions.classNames),l.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=jA(this._onMouseMove,64),this.onWindowResize=In(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=In(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=In(this._onMouseEntered,this.stopScrollDelay),this.init()}return n.getRtlHelpers=function(){if(n.rtlHelpers)return n.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var l=t.firstElementChild,o=l==null?void 0:l.firstElementChild;if(!o)return null;document.body.appendChild(l),l.scrollLeft=0;var a=n.getOffset(l),i=n.getOffset(o);l.scrollLeft=-999;var s=n.getOffset(o);return document.body.removeChild(l),n.rtlHelpers={isScrollOriginAtZero:a.left!==i.left,isScrollingToNegative:i.left!==s.left},n.rtlHelpers},n.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ps()}catch{return Ps()}},n.getOffset=function(t){var l=t.getBoundingClientRect(),o=_a(t),a=Cl(t);return{top:l.top+(a.pageYOffset||o.documentElement.scrollTop),left:l.left+(a.pageXOffset||o.documentElement.scrollLeft)}},n.prototype.init=function(){bi&&(this.initDOM(),this.rtlHelpers=n.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},n.prototype.initDOM=function(){var t,l;this.wrapperEl=this.el.querySelector(bt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(bt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(bt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(bt(this.classNames.offset)),this.maskEl=this.el.querySelector(bt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,bt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(bt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(bt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(bt(this.classNames.track)).concat(bt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(bt(this.classNames.track)).concat(bt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(bt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((l=this.axis.y.track.el)===null||l===void 0?void 0:l.querySelector(bt(this.classNames.scrollbar)))||null,this.options.autoHide||(El(this.axis.x.scrollbar.el,this.classNames.visible),El(this.axis.y.scrollbar.el,this.classNames.visible))},n.prototype.initListeners=function(){var t=this,l,o=Cl(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(l=this.contentWrapperEl)===null||l===void 0||l.addEventListener("scroll",this.onScroll),o.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var a=!1,i=o.ResizeObserver||ResizeObserver;this.resizeObserver=new i(function(){a&&o.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),o.requestAnimationFrame(function(){a=!0})}this.mutationObserver=new o.MutationObserver(function(){o.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},n.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Cl(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var l=this.contentEl.offsetWidth,o=this.heightAutoObserverEl.offsetHeight<=1,a=this.heightAutoObserverEl.offsetWidth<=1||l>0,i=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,d=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var m=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=o?"auto":"100%",this.placeholderEl.style.width=a?"".concat(l||u,"px"):"auto",this.placeholderEl.style.height="".concat(m,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&u>l,this.axis.y.isOverflowing=m>c,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var r=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>i-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&m>c-r,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},n.prototype.getScrollbarSize=function(t){var l,o;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var a=this.contentEl[this.axis[t].scrollSizeAttr],i=(o=(l=this.axis[t].track.el)===null||l===void 0?void 0:l[this.axis[t].offsetSizeAttr])!==null&&o!==void 0?o:0,s=i/a,d;return d=Math.max(~~(s*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},n.prototype.positionScrollbar=function(t){var l,o,a;t===void 0&&(t="y");var i=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!i.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],d=((l=this.axis[t].track.el)===null||l===void 0?void 0:l[this.axis[t].offsetSizeAttr])||0,m=parseInt(this.elStyles[this.axis[t].sizeAttr],10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];u=t==="x"&&this.isRtl&&(!((o=n.getRtlHelpers())===null||o===void 0)&&o.isScrollOriginAtZero)?-u:u,t==="x"&&this.isRtl&&(u=!((a=n.getRtlHelpers())===null||a===void 0)&&a.isScrollingToNegative?u:-u);var c=u/(s-m),r=~~((d-i.size)*c);r=t==="x"&&this.isRtl?-r+(d-i.size):r,i.el.style.transform=t==="x"?"translate3d(".concat(r,"px, 0, 0)"):"translate3d(0, ".concat(r,"px, 0)")}},n.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var l=this.axis[t].track.el,o=this.axis[t].scrollbar.el;!l||!o||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(l.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(l.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?o.style.display="block":o.style.display="none")},n.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(El(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},n.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Tl(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},n.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},n.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var l=this.axis[t];!l.track.el||!l.scrollbar.el||(l.track.rect=l.track.el.getBoundingClientRect(),l.scrollbar.rect=l.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(l.track.rect)?(this.showScrollbar(t),El(l.track.el,this.classNames.hover),this.isWithinBounds(l.scrollbar.rect)?El(l.scrollbar.el,this.classNames.hover):Tl(l.scrollbar.el,this.classNames.hover)):(Tl(l.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},n.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Tl(this.axis[t].track.el,this.classNames.hover),Tl(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},n.prototype.onDragStart=function(t,l){var o;l===void 0&&(l="y"),this.isDragging=!0;var a=_a(this.el),i=Cl(this.el),s=this.axis[l].scrollbar,d=l==="y"?t.pageY:t.pageX;this.axis[l].dragOffset=d-(((o=s.rect)===null||o===void 0?void 0:o[this.axis[l].offsetAttr])||0),this.draggedAxis=l,El(this.el,this.classNames.dragging),a.addEventListener("mousemove",this.drag,!0),a.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(a.addEventListener("click",this.preventClick,!0),a.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.prototype.onTrackClick=function(t,l){var o=this,a,i,s,d;l===void 0&&(l="y");var m=this.axis[l];if(!(!this.options.clickOnTrack||!m.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var u=Cl(this.el);this.axis[l].scrollbar.rect=m.scrollbar.el.getBoundingClientRect();var c=this.axis[l].scrollbar,r=(i=(a=c.rect)===null||a===void 0?void 0:a[this.axis[l].offsetAttr])!==null&&i!==void 0?i:0,f=parseInt((d=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[l].sizeAttr])!==null&&d!==void 0?d:"0px",10),p=this.contentWrapperEl[this.axis[l].scrollOffsetAttr],A=l==="y"?this.mouseY-r:this.mouseX-r,v=A<0?-1:1,x=v===-1?p-f:p+f,V=40,h=function(){o.contentWrapperEl&&(v===-1?p>x&&(p-=V,o.contentWrapperEl[o.axis[l].scrollOffsetAttr]=p,u.requestAnimationFrame(h)):p<x&&(p+=V,o.contentWrapperEl[o.axis[l].scrollOffsetAttr]=p,u.requestAnimationFrame(h)))};h()}},n.prototype.getContentElement=function(){return this.contentEl},n.prototype.getScrollElement=function(){return this.contentWrapperEl},n.prototype.removeListeners=function(){var t=Cl(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},n.prototype.unMount=function(){this.removeListeners()},n.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},n.prototype.findChild=function(t,l){var o=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(a){return o.call(a,l)})[0]},n.rtlHelpers=null,n.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},n.getOptions=DA,n.helpers=$A,n}(),Kl=function(){return Kl=Object.assign||function(t){for(var l,o=1,a=arguments.length;o<a;o++){l=arguments[o];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(t[i]=l[i])}return t},Kl.apply(this,arguments)},UA={beforeUnmount:"beforeUnmount"},Xo;function RA(n){var t,l=n.h,o=n.emit,a=n.slots,i=n.props,s=function(m){return o("scroll",m)},d=Kl(Kl({},ln.defaultOptions.classNames),i.classNames);return l("div",Kl({ref:"element"},{"data-simplebar":"init"}),[l("div",{class:d.wrapper},[l("div",{class:d.heightAutoObserverWrapperEl},[l("div",{class:d.heightAutoObserverEl})]),l("div",{class:d.mask},[l("div",{class:d.offset},[l("div",Kl(Kl({},{onScroll:s,class:d.contentWrapper,tabIndex:i.tabIndex||ln.defaultOptions.tabIndex,role:"region","aria-label":i.ariaLabel||ln.defaultOptions.ariaLabel}),{ref:"scrollElement"}),[l("div",{class:d.contentEl,ref:"contentElement"},(t=a.default)===null||t===void 0?void 0:t.call(a))])])]),l("div",{class:d.placeholder})]),l("div",{class:"".concat(d.track," simplebar-horizontal")},[l("div",{class:d.scrollbar})]),l("div",{class:"".concat(d.track," simplebar-vertical")},[l("div",{class:d.scrollbar})])])}var HA=e.defineComponent((Xo={name:"simplebar-vue",props:{autoHide:{type:Boolean,default:void 0},classNames:Object,forceVisible:{type:[Boolean,String],validator:function(n){return typeof n=="boolean"||n==="x"||n==="y"},default:void 0},ariaLabel:String,tabIndex:Number,direction:{type:String,validator:function(n){return n==="ltr"||n==="rtl"}},timeout:Number,clickOnTrack:{type:Boolean,default:void 0},scrollbarMinSize:Number,scrollbarMaxSize:Number},emits:["scroll"],data:function(){return{}},mounted:function(){for(var n=ln.getOptions(this.$refs.element.attributes),t=0,l=Object.entries(this.$props);t<l.length;t++){var o=l[t],a=o[0],i=o[1];i!=null&&typeof i!="function"&&(n[a]=i)}this.SimpleBar=new ln(this.$refs.element,n),this.scrollElement=this.$refs.scrollElement,this.contentElement=this.$refs.contentElement}},Xo[UA.beforeUnmount]=function(){var n;(n=this.SimpleBar)===null||n===void 0||n.unMount(),this.SimpleBar=void 0},Xo.methods={recalculate:function(){var n;(n=this.SimpleBar)===null||n===void 0||n.recalculate()}},Xo.render=function(n){var t=this;return RA({h:typeof n=="function"?n:e.h,emit:function(){for(var l=[],o=0;o<arguments.length;o++)l[o]=arguments[o];return t.$emit.apply(t,l)},slots:this.$slots,props:this.$props})},Xo));const va=e.defineComponent({name:"ScrollBar",__name:"index",props:{hideScrollbar:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},setup(n){return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["scroll-bar",{"scroll-bar--is-light":n.light}])},[n.hideScrollbar?e.renderSlot(t.$slots,"default",{key:1}):(e.openBlock(),e.createBlock(e.unref(HA),{key:0,"data-simplebar-auto-hide":"false",class:"simple-bar"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}))],2))}});function Vl(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Br(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t}/*!
|
|
2
2
|
* GSAP 3.13.0
|
|
3
3
|
* https://gsap.com
|
|
4
4
|
*
|