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.
@@ -1,4 +1,4 @@
1
- (function(q,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuedraggable"),require("@wangeditor/editor"),require("swiper/vue"),require("swiper/modules"),require("axios"),require("@splidejs/vue-splide")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","@wangeditor/editor","swiper/vue","swiper/modules","axios","@splidejs/vue-splide"],e):(q=typeof globalThis<"u"?globalThis:q||self,e(q.OfficialBlock={},q.Vue,q.vuedraggable,q.WangEditor,q.SwiperVue,q.SwiperModules,q.axios,q.VueSplide))})(this,function(q,e,ie,U_,ll,ft,tc,ks){"use strict";var j_=Object.defineProperty;var D_=(q,e,ie)=>e in q?j_(q,e,{enumerable:!0,configurable:!0,writable:!0,value:ie}):q[e]=ie;var ec=(q,e,ie)=>D_(q,typeof e!="symbol"?e+"":e,ie);function L(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 Tn(n="Publications",t="section",l=10,o=8){const a="abcdefghijklmnopqrstuvwxyz0123456789",i=a.length;function s(u){if(typeof crypto<"u"&&crypto.getRandomValues){const f=new Uint32Array(u);crypto.getRandomValues(f);let p="";for(let h=0;h<u;h++)p+=a[f[h]%i];return p}else{let f="";for(let p=0;p<u;p++)f+=a.charAt(Math.floor(Math.random()*i));return f}}function d(u){const f=Date.now().toString();if(f.length>=u)return f.slice(0,u);{const p=s(u-f.length).replace(/[^0-9]/g,"");return f+p}}const A=d(l),m=s(o),c=d(l),r=s(o);return`${n}-${A}-${m}-${t}-${c}-${r}`}const lc={class:"button-text"},oc={class:"link-text"},nc=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",lc,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",oc,e.toDisplayString(n.data.text),1),s[1]||(s[1]=e.createElementVNode("span",{class:"button-icon link-icon"},null,-1))]))}}),W=(n,t)=>{const l=n.__vccOpts||n;for(const[o,a]of t)l[o]=a;return l},Sn=W(nc,[["__scopeId","data-v-d959a3d5"]]),ac={class:"article-item"},ic={class:"article-item-title"},sc=["innerHTML"],rc={key:0,class:"article-item-button"},dc={key:1,class:"article-item-link"},cc=W(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",ic,e.toDisplayString(n.article.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.article.content},null,8,sc),(s=n.article.buttonList)!=null&&s.length?(e.openBlock(),e.createElementBlock("div",rc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.buttonList,A=>(e.openBlock(),e.createBlock(Sn,{key:A.id,data:A,onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0),(d=n.article.linkList)!=null&&d.length?(e.openBlock(),e.createElementBlock("div",dc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.linkList,A=>(e.openBlock(),e.createBlock(Sn,{key:A.id,data:A,type:"link",onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-2c696c08"]]),mc={class:"contact-item"},Ac={class:"contact-item-categories"},pc={class:"contact-item-title"},fc=["innerHTML"],uc={class:"contact-item-link"},hc=W(e.defineComponent({__name:"contact",props:{contact:{type:Object,default:()=>{}}},setup(n){return(t,l)=>(e.openBlock(),e.createElementBlock("div",mc,[e.createElementVNode("div",Ac,[(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",pc,e.toDisplayString(n.contact.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.contact.content},null,8,fc),e.createElementVNode("div",uc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.contact.linkList,o=>(e.openBlock(),e.createBlock(Sn,{key:o.id,data:o,type:"link"},null,8,["data"]))),128))])]))}}),[["__scopeId","data-v-32cbb692"]]),Vc={key:0,class:"image-container"},gc={key:0,class:"image-desc"},yc={key:1,class:"video-container flex-inline flex-center"},bc=["src"],wc={class:"video-thumbnail flex flex-center"},xc=["src"],kc={key:2,class:"image-list-container"},Nc={key:0,class:"image-preview"},_c={class:"image-list-wrapper"},Cc=["src","onClick"],Ec=W(e.defineComponent({__name:"index",props:{type:{type:String,default:"Image"},data:{type:Object,default:()=>{}},preview:{type:Boolean,default:!0}},setup(n){var p,h,x;const t=n,l=e.ref(),o=e.ref(!1),a=()=>{var g;(g=l.value)==null||g.play(),o.value=!0},i=e.ref(((x=(h=(p=t.data)==null?void 0:p.imageList)==null?void 0:h[0])==null?void 0:x.src)||""),s=g=>{i.value=g},d=e.ref(null),A=e.ref(!1),m=e.ref(!1),c=()=>{const g=d.value;g&&(A.value=g.scrollLeft>0,m.value=g.scrollLeft+g.clientWidth<g.scrollWidth)},r=()=>{const g=d.value;g&&g.scrollBy({left:-g.clientWidth/1.5,behavior:"smooth"})},u=()=>{const g=d.value;g&&g.scrollBy({left:g.clientWidth/1.5,behavior:"smooth"})},f=()=>{c()};return e.watch(()=>{var g;return(g=t.data)==null?void 0:g.imageList},async()=>{await e.nextTick(),c()}),e.onMounted(()=>{window.addEventListener("resize",c),e.nextTick(c)}),e.onUnmounted(()=>{window.removeEventListener("resize",c)}),(g,V)=>{const y=e.resolveComponent("a-image"),b=e.resolveComponent("icon-caret-right");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.type==="Image"?(e.openBlock(),e.createElementBlock("div",Vc,[e.createVNode(y,{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",gc,e.toDisplayString(n.data.caption),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.type==="Video"?(e.openBlock(),e.createElementBlock("div",yc,[e.createElementVNode("video",{class:"video",ref_key:"videoElement",ref:l,src:n.data.videoSrc,controls:""},null,8,bc),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",wc,[e.createElementVNode("img",{src:n.data.imgSrc},null,8,xc)]),e.createElementVNode("div",{class:"play-button flex flex-center",onClick:a},[e.createVNode(b,{style:{color:"#fff"}})])],64))])):e.createCommentVNode("",!0),n.type==="ImageList"?(e.openBlock(),e.createElementBlock("div",kc,[i.value?(e.openBlock(),e.createElementBlock("div",Nc,[e.createVNode(y,{class:"image",src:i.value,preview:n.preview,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview"])])):e.createCommentVNode("",!0),e.createElementVNode("div",_c,[e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:r}," ‹ ",512),[[e.vShow,A.value]]),e.createElementVNode("div",{class:"image-list",ref_key:"imageListRef",ref:d,onScroll:f},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data.imageList,_=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_.id},[_.src?(e.openBlock(),e.createElementBlock("img",{key:0,class:"image",src:_.src,onClick:C=>s(_.src)},null,8,Cc)):e.createCommentVNode("",!0)],64))),128))],544),e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__next",onClick:u}," › ",512),[[e.vShow,m.value]])])])):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-a39a94f2"]]),_e=W(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],([A,m])=>{!A||!m||m!==l.name||o("update:modelValue",A)},{immediate:!1}),(A,m)=>{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"])}}}),[["__scopeId","data-v-32b7c6db"]]),Ie=W(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),A=e.ref("");return e.watch(()=>[s==null?void 0:s.value,d==null?void 0:d.value],([m,c])=>{var r,u;!m||!c||c!==o.name+A.value||(A.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%;">'):(u=a.value)==null||u.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 m=a.value;m!=null&&m.destroy()}),e.watch(()=>o.modelValue,m=>{m!==i.value&&(i.value=m||"")},{immediate:!0}),t({editor:a,getHtml:()=>i.value,getText:()=>{var m;return((m=a.value)==null?void 0:m.getText())||""},isEmpty:()=>{var m;return((m=a.value)==null?void 0:m.isEmpty())||!0},clear:()=>{var m;return(m=a.value)==null?void 0:m.clear()},focus:()=>{var m;return(m=a.value)==null?void 0:m.focus()},blur:()=>{var m;return(m=a.value)==null?void 0:m.blur()},disable:()=>{var m;return(m=a.value)==null?void 0:m.disable()},enable:()=>{var m;return(m=a.value)==null?void 0:m.enable()}}),(m,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})}}}),[["__scopeId","data-v-2f501911"]]),Tc={class:"setting-content"},Sc={class:"setting-header flex items-center"},Pc={class:"setting-header flex items-center"},Bc={class:"setting-body"},Lc={class:"setting-item"},Oc={class:"item-name"},$c={class:"btn-group"},zc={class:"drag-handle"},Mc={class:"btn-group"},jc={key:0,class:"drag-handle"},Dc={class:"item-action flex items-center"},Uc=["onClick"],Rc={class:"btn-group"},Hc={key:0,class:"drag-handle"},Wc={class:"item-action flex items-center"},Ic=["onClick"],Xc={class:"btn-group"},qc={key:0,class:"drag-handle"},Fc={class:"item-action flex items-center"},Yc=["onClick"],Zc={class:"btn-group"},Gc={key:0,class:"drag-handle"},Jc={class:"item-action flex items-center"},Kc=["onClick"],vc=["src"],Qc={class:"item-uplaod flex items-center"},em={class:"item-img-list"},tm={class:"btn-group"},lm={key:0,class:"drag-handle"},om={key:0,class:"item-img-box"},nm=["src"],am={class:"item-right flex-1"},im=["onClick"],sm=["src"],rm={class:"item-uplaod flex items-center"},dm=["src"],cm={class:"item-uplaod flex items-center"},mm=W(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"})),A=C=>C&&C.length>1,m=n,c=t,r=()=>{c("update:show",!1)},u=C=>{const w=m.data;C==="Article"?w.data.push({id:L(),type:"Article",title:"",content:"",buttonList:[],linkList:[]}):C==="Contact"?w.data.push({id:L(),type:"Contact",title:"",content:"",categories:[],linkList:[]}):C==="Image"?w.data.push({id:L(),type:"Image",imgSrc:"",caption:"",alt:"",isRound:!1}):C==="ImageList"?w.data.push({id:L(),type:"ImageList",imageList:[]}):C==="Video"&&w.data.push({id:L(),type:"Video",videoSrc:"",imgSrc:""})},f=C=>{m.data.data=m.data.data.filter(w=>w.id!==C)},p=C=>{C.push({id:L(),text:"查看更多",url:void 0,isExternal:!1})},h=(C,w)=>{C.splice(C.findIndex(N=>N.id===w),1)},x=C=>{C.push({id:L(),text:"查看更多",url:void 0,isExternal:!1})},g=(C,w)=>{C.splice(C.findIndex(N=>N.id===w),1)},V=C=>{C.push({id:L(),text:"分类"})},y=(C,w)=>{C.splice(C.findIndex(N=>N.id===w),1)},b=C=>{C.push({id:L(),src:""})},_=(C,w)=>{C.splice(C.findIndex(N=>N===w),1)};return(C,w)=>{const N=e.resolveComponent("a-option"),T=e.resolveComponent("a-select"),E=e.resolveComponent("icon-plus"),S=e.resolveComponent("a-button"),P=e.resolveComponent("a-button-group"),O=e.resolveComponent("icon-drag-arrow"),$=e.resolveComponent("icon-delete"),z=e.resolveComponent("a-input"),j=e.resolveComponent("a-checkbox"),D=e.resolveComponent("a-link"),H=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(H,{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",Tc,[e.createElementVNode("div",Sc,[w[24]||(w[24]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(T,{modelValue:n.data.width,"onUpdate:modelValue":w[0]||(w[0]=M=>n.data.width=M),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(N,{value:"default"},{default:e.withCtx(()=>[...w[20]||(w[20]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(N,{value:"small"},{default:e.withCtx(()=>[...w[21]||(w[21]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(N,{value:"middle"},{default:e.withCtx(()=>[...w[22]||(w[22]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(N,{value:"max"},{default:e.withCtx(()=>[...w[23]||(w[23]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Pc,[w[27]||(w[27]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(T,{modelValue:n.data.bgColor,"onUpdate:modelValue":w[1]||(w[1]=M=>n.data.bgColor=M),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(N,{value:"#ffffff"},{default:e.withCtx(()=>[...w[25]||(w[25]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(N,{value:"#F7F7FA"},{default:e.withCtx(()=>[...w[26]||(w[26]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createVNode(P,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(S,{size:"mini",onClick:w[2]||(w[2]=M=>u("Article"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[w[28]||(w[28]=e.createTextVNode(" Article ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:w[3]||(w[3]=M=>u("Contact"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[w[29]||(w[29]=e.createTextVNode(" Contact ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:w[4]||(w[4]=M=>u("Image"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[w[30]||(w[30]=e.createTextVNode(" Image ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:w[5]||(w[5]=M=>u("ImageList"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[w[31]||(w[31]=e.createTextVNode(" ImageList ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:w[6]||(w[6]=M=>u("Video"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[w[32]||(w[32]=e.createTextVNode(" Video ",-1))]),_:1})]),_:1}),e.createElementVNode("div",Bc,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":w[17]||(w[17]=M=>n.data.data=M),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{onStart:w[18]||(w[18]=M=>l.value=!0),onEnd:w[19]||(w[19]=M=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:M})=>[e.createElementVNode("div",Lc,[e.createElementVNode("p",Oc,e.toDisplayString(M.type),1),e.createElementVNode("div",$c,[e.createElementVNode("div",zc,[e.createVNode(O,{class:"drag-icon"})]),e.createVNode($,{class:"btn-delete",onClick:k=>f(M.id)},null,8,["onClick"])]),M.type==="Article"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[w[37]||(w[37]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(z,{modelValue:M.title,"onUpdate:modelValue":k=>M.title=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w[38]||(w[38]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(Ie),{modelValue:M.content,"onUpdate:modelValue":k=>M.content=k,name:`ArticleList_editor_${M.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),w[39]||(w[39]=e.createElementVNode("p",{class:"item-title"},"按钮",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:M.buttonList,"onUpdate:modelValue":k=>M.buttonList=k,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!A(M.buttonList),onStart:w[7]||(w[7]=k=>l.value=!0),onEnd:w[8]||(w[8]=k=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!A(M.buttonList)}]),key:k.id},[e.createElementVNode("div",Mc,[A(M.buttonList)?(e.openBlock(),e.createElementBlock("div",jc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>h(M.buttonList,k.id)},null,8,["onClick"])]),e.createVNode(S,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.text),1)]),_:2},1024),e.createElementVNode("div",Dc,[e.createVNode(z,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":U=>k.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:k.url,"onUpdate:modelValue":U=>k.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":k.isExternal},{default:e.withCtx(()=>[...w[33]||(w[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:k=>p(M.buttonList)},[e.createVNode(E),w[34]||(w[34]=e.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,Uc),w[40]||(w[40]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":k=>M.linkList=k,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!A(M.linkList),onStart:w[9]||(w[9]=k=>l.value=!0),onEnd:w[10]||(w[10]=k=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!A(M.linkList)}]),key:k.id},[e.createElementVNode("div",Rc,[A(M.linkList)?(e.openBlock(),e.createElementBlock("div",Hc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>g(M.linkList,k.id)},null,8,["onClick"])]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.text),1)]),_:2},1024),e.createElementVNode("div",Wc,[e.createVNode(z,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":U=>k.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:k.url,"onUpdate:modelValue":U=>k.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":k.isExternal},{default:e.withCtx(()=>[...w[35]||(w[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:k=>x(M.linkList)},[e.createVNode(E),w[36]||(w[36]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,Ic)],64)):e.createCommentVNode("",!0),M.type==="Contact"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[w[44]||(w[44]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(z,{modelValue:M.title,"onUpdate:modelValue":k=>M.title=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w[45]||(w[45]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(Ie),{modelValue:M.content,"onUpdate:modelValue":k=>M.content=k,name:`ArticleList_editor_${M.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),w[46]||(w[46]=e.createElementVNode("p",{class:"item-title"},"分类",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:M.categories,"onUpdate:modelValue":k=>M.categories=k,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},s.value,{disabled:!A(M.categories),onStart:w[11]||(w[11]=k=>l.value=!0),onEnd:w[12]||(w[12]=k=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!A(M.categories)}]),key:k.id},[e.createElementVNode("div",Xc,[A(M.categories)?(e.openBlock(),e.createElementBlock("div",qc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>y(M.categories,k.id)},null,8,["onClick"])]),e.createVNode($,{class:"btn-delete",onClick:U=>y(M.categories,k.id)},null,8,["onClick"]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.text),1)]),_:2},1024),e.createElementVNode("div",Fc,[e.createVNode(z,{modelValue:k.text,"onUpdate:modelValue":U=>k.text=U,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:k=>V(M.categories)},[e.createVNode(E),w[41]||(w[41]=e.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,Yc),w[47]||(w[47]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":k=>M.linkList=k,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!A(M.linkList),onStart:w[13]||(w[13]=k=>l.value=!0),onEnd:w[14]||(w[14]=k=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!A(M.linkList)}]),key:k.id},[e.createElementVNode("div",Zc,[A(M.linkList)?(e.openBlock(),e.createElementBlock("div",Gc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>g(M.linkList,k.id)},null,8,["onClick"])]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.text),1)]),_:2},1024),e.createElementVNode("div",Jc,[e.createVNode(z,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":U=>k.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:k.url,"onUpdate:modelValue":U=>k.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":k.isExternal},{default:e.withCtx(()=>[...w[42]||(w[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:k=>x(M.linkList)},[e.createVNode(E),w[43]||(w[43]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,Kc)],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,vc),e.createElementVNode("div",Qc,[e.createVNode(z,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,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":k=>M.caption=k,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{class:"mt-2",modelValue:M.alt,"onUpdate:modelValue":k=>M.alt=k,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(j,{class:"pt-2","model-value":M.isRound},{default:e.withCtx(()=>[...w[48]||(w[48]=[e.createTextVNode("圆角",-1)])]),_:1},8,["model-value"])],64)):e.createCommentVNode("",!0),M.type==="ImageList"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[w[50]||(w[50]=e.createElementVNode("p",{class:"item-title"},"图片组",-1)),e.createElementVNode("div",em,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:M.imageList,"onUpdate:modelValue":k=>M.imageList=k,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},d.value,{disabled:!A(M.imageList),onStart:w[15]||(w[15]=k=>l.value=!0),onEnd:w[16]||(w[16]=k=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["img-list-item flex draggable-item",{"sortable-disabled":!A(M.imageList)}]),key:k.id},[e.createElementVNode("div",tm,[A(M.imageList)?(e.openBlock(),e.createElementBlock("div",lm,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>_(M.imageList,k.id)},null,8,["onClick"])]),k.src?(e.openBlock(),e.createElementBlock("div",om,[e.createElementVNode("img",{class:"item-img small-img",src:k.src},null,8,nm)])):e.createCommentVNode("",!0),e.createElementVNode("div",am,[e.createVNode(z,{style:{"margin-bottom":"12px"},modelValue:k.src,"onUpdate:modelValue":U=>k.src=U,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:k.src,"onUpdate:modelValue":U=>k.src=U,name:`ArticleList_${k.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:k=>b(M.imageList)},[e.createVNode(E),w[49]||(w[49]=e.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,im)],64)):e.createCommentVNode("",!0),M.type==="Video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[w[51]||(w[51]=e.createElementVNode("p",{class:"item-title"},"视频",-1)),e.createElementVNode("video",{class:"item-img",src:M.videoSrc,controls:""},null,8,sm),e.createElementVNode("div",rm,[e.createVNode(z,{modelValue:M.videoSrc,"onUpdate:modelValue":k=>M.videoSrc=k,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:M.videoSrc,"onUpdate:modelValue":k=>M.videoSrc=k,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,dm),e.createElementVNode("div",cm,[e.createVNode(z,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,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"])}}}),[["__scopeId","data-v-a682759f"]]),Am={class:"operate-page operate-component"},pm={class:"operate-btn d-flex justify-end"},we=W(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,A)=>{const m=e.resolveComponent("icon-copy"),c=e.resolveComponent("a-tooltip"),r=e.resolveComponent("icon-delete"),u=e.resolveComponent("icon-edit"),f=e.resolveComponent("icon-arrow-up"),p=e.resolveComponent("icon-arrow-down");return e.withDirectives((e.openBlock(),e.createElementBlock("div",Am,[e.createElementVNode("div",pm,[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(m)]),_: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(u)]),_:1})]),e.createElementVNode("div",{class:"btn-item btn-paste d-flex align-center fs-10",onClick:A[0]||(A[0]=h=>s("top"))},[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:A[1]||(A[1]=h=>s("bottom"))},[e.createVNode(c,{content:"向下粘贴",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(p)]),_:1})])])],512)),[[e.vShow,n.show]])}}}),[["__scopeId","data-v-534cce66"]]),fm={class:"article-list-left"},um={class:"article-list-right"},Na=W(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 u;if(l.modelValue&&l.modelValue.data)return;const r={id:((u=l.modelValue)==null?void 0:u.id)||L(),type:"ArticleList",width:"",bgColor:"",data:[{id:L(),type:"Article",title:"耀华国际教育学校浙江桐乡",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",buttonList:[],linkList:[{id:L(),text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},{id:L(),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),A=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},c=r=>{o("handlePaste",r)};return i(),(r,u)=>{var h,x,g;const f=e.resolveComponent("a-col"),p=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"article-list-container",style:e.normalizeStyle({backgroundColor:(h=n.modelValue)==null?void 0:h.bgColor}),onMouseenter:u[2]||(u[2]=V=>s.value=!0),onMouseleave:u[3]||(u[3]=V=>s.value=!1)},[e.createVNode(p,{class:e.normalizeClass(["article-list",[(x=n.modelValue)!=null&&x.width?`container-content-${(g=n.modelValue)==null?void 0:g.width}`:"container-content"]])},{default:e.withCtx(()=>[e.createVNode(f,{sm:{span:24},md:{span:a.value?12:24}},{default:e.withCtx(()=>{var V;return[e.createElementVNode("div",fm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=n.modelValue)==null?void 0:V.data,y=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y.id},[y.type==="Article"?(e.openBlock(),e.createBlock(cc,{key:0,article:y},null,8,["article"])):e.createCommentVNode("",!0),y.type==="Contact"?(e.openBlock(),e.createBlock(hc,{key:1,contact:y},null,8,["contact"])):e.createCommentVNode("",!0)],64))),128))])]}),_:1},8,["md"]),a.value?(e.openBlock(),e.createBlock(f,{key:0,sm:{span:24},md:{span:12}},{default:e.withCtx(()=>{var V;return[e.createElementVNode("div",um,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=n.modelValue)==null?void 0:V.data,y=>(e.openBlock(),e.createBlock(Ec,{key:y.id,type:y.type,data:y,preview:n.modelValue.isPreview},null,8,["type","data","preview"]))),128))])]}),_:1})):e.createCommentVNode("",!0),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{key:1,show:s.value,"onUpdate:show":u[0]||(u[0]=V=>s.value=V),onHandleEdit:u[1]||(u[1]=V=>d.value=!0),onHandleDelete:A,onHandleCopy:m,onHandlePaste:c},null,8,["show"]))]),_:1},8,["class"])],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(mm,{key:0,show:d.value,"onUpdate:show":u[4]||(u[4]=V=>d.value=V),data:n.modelValue},null,8,["show","data"]))],64)}}}),[["__scopeId","data-v-e31d08c6"]]),hm={class:"setting-content"},Vm=["src"],gm={class:"item-uplaod flex items-center"},ym=W(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 A,m;return[e.createElementVNode("div",hm,[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:(m=(A=n.data)==null?void 0:A.data)==null?void 0:m.imgSrc},null,8,Vm),e.createElementVNode("div",gm,[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(_e,{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"])}}}),[["__scopeId","data-v-c2c014ad"]]),bm={class:"banner-image__title is-zh"},_a=W(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)||L(),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)},A=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var u,f,p,h;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("+((f=(u=n.modelValue)==null?void 0:u.data)==null?void 0:f.imgSrc)+")","background-position":"center"})},[e.createElementVNode("div",bm,e.toDisplayString((h=(p=n.modelValue)==null?void 0:p.data)==null?void 0:h.title),1)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{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:A,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ym,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),[["__scopeId","data-v-88156ebc"]]),wm={class:"setting-content"},xm=["src"],km={class:"item-uplaod flex items-center"},Nm=W(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 A,m;return[e.createElementVNode("div",wm,[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:(m=(A=n.data)==null?void 0:A.data)==null?void 0:m.imgSrc},null,8,xm),e.createElementVNode("div",km,[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(_e,{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"])}}}),[["__scopeId","data-v-87125fc3"]]),_m={class:"red"},Cm={class:"banner-page__title"},Em={class:"position-absolute triangle-position"},Tm={class:"position-relative h-100 banner-strips"},Ca=W(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)||L(),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)},A=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var u,f,p,h;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",_m,[e.createElementVNode("p",Cm,e.toDisplayString((f=(u=n.modelValue)==null?void 0:u.data)==null?void 0:f.title),1)]),r[6]||(r[6]=e.createElementVNode("div",{class:"orange"},null,-1)),e.createElementVNode("div",Em,[e.createElementVNode("div",Tm,[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("+((h=(p=n.modelValue)==null?void 0:p.data)==null?void 0:h.imgSrc)+")"}),"data-v-24231ec2":""},null,4)])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{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:A,onHandlePaste:m},null,8,["show"]))],32),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)}}}),[["__scopeId","data-v-2a3cea9b"]]),Sm={class:"setting-content"},Pm={class:"setting-header flex items-center"},Bm={class:"setting-header flex items-center"},Lm={class:"setting-body"},Om={class:"setting-item"},$m={class:"btn-group"},zm={key:0,class:"drag-handle"},Mm={class:"item-action flex items-center"},jm=W(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)},A=c=>{i.data.data.push({id:L(),type:c,text:"查看更多",url:void 0,isExternal:!1})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const u=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-button"),x=e.resolveComponent("a-button-group"),g=e.resolveComponent("icon-drag-arrow"),V=e.resolveComponent("icon-delete"),y=e.resolveComponent("a-input"),b=e.resolveComponent("a-checkbox"),_=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(_,{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",Sm,[e.createElementVNode("div",Pm,[r[13]||(r[13]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(f,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=C=>n.data.width=C),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:""},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(u,{value:"small"},{default:e.withCtx(()=>[...r[10]||(r[10]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(u,{value:"middle"},{default:e.withCtx(()=>[...r[11]||(r[11]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(u,{value:"max"},{default:e.withCtx(()=>[...r[12]||(r[12]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Bm,[r[16]||(r[16]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[1]||(r[1]=C=>n.data.bgColor=C),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:"#ffffff"},{default:e.withCtx(()=>[...r[14]||(r[14]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(u,{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(h,{size:"mini",onClick:r[2]||(r[2]=C=>A(""))},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[r[17]||(r[17]=e.createTextVNode(" 默认按钮 ",-1))]),_:1}),e.createVNode(h,{size:"mini",onClick:r[3]||(r[3]=C=>A("white"))},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[r[18]||(r[18]=e.createTextVNode(" 白色按钮 ",-1))]),_:1}),e.createVNode(h,{size:"mini",onClick:r[4]||(r[4]=C=>A("light"))},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[r[19]||(r[19]=e.createTextVNode(" 亮色按钮 ",-1))]),_:1}),e.createVNode(h,{size:"mini",onClick:r[5]||(r[5]=C=>A("blue"))},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[r[20]||(r[20]=e.createTextVNode(" 蓝色按钮 ",-1))]),_:1})]),_:1}),e.createElementVNode("div",Lm,[e.createElementVNode("div",Om,[r[22]||(r[22]=e.createElementVNode("p",{class:"item-name"},"按钮",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[6]||(r[6]=C=>n.data.data=C),"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]=C=>l.value=!0),onEnd:r[8]||(r[8]=C=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:C})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:C.id},[e.createElementVNode("div",$m,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",zm,[e.createVNode(g,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(V,{class:"btn-delete",onClick:w=>m(C.id)},null,8,["onClick"])]),e.createVNode(h,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.text),1)]),_:2},1024),e.createElementVNode("div",Mm,[e.createVNode(y,{class:"action-text",modelValue:C.text,"onUpdate:modelValue":w=>C.text=w,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{modelValue:C.url,"onUpdate:modelValue":w=>C.url=w,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(b,{"model-value":C.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"])}}}),[["__scopeId","data-v-3f125042"]]),Dm={class:"btn-list__row"},Um=["href"],Rm={class:"btn-primary__text"},Hm=["onClick"],Wm={class:"btn-primary__text"},Ea=W(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",Dm,[(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",Rm,e.toDisplayString(s.text),1),i[0]||(i[0]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,Um)):(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",Wm,e.toDisplayString(s.text),1),i[1]||(i[1]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,Hm))]))),128))]))}}),[["__scopeId","data-v-5e060a34"]]),Pn=W(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)||L(),type:"BtnList",width:"",bgColor:"",data:[{id:L(),type:"",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:L(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:L(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:L(),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)},A=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var u,f,p,h;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"btn-list center",style:e.normalizeStyle({backgroundColor:(u=n.modelValue)==null?void 0:u.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",[(f=n.modelValue)!=null&&f.width?`container-content-${(p=n.modelValue)==null?void 0:p.width}`:"container-content"]])},[e.createVNode(Ea,{list:(h=n.modelValue)==null?void 0:h.data},null,8,["list"])],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{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:A,onHandlePaste:m},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(jm,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),[["__scopeId","data-v-696a9c13"]]),Im={class:"setting-content"},Xm={class:"setting-header flex items-center"},qm={class:"setting-header flex items-center"},Fm={class:"setting-header flex items-center"},Ym={class:"setting-body"},Zm={class:"setting-item"},Gm={class:"btn-group"},Jm={key:0,class:"drag-handle"},Km=["src"],vm={class:"item-uplaod flex items-center"},Qm=W(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)},A=()=>{i.data.data.push({id:L(),title:"标题",subtitle:"副标题",imgSrc:void 0,alt:""})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const u=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("a-input"),h=e.resolveComponent("icon-drag-arrow"),x=e.resolveComponent("icon-delete"),g=e.resolveComponent("icon-plus"),V=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(V,{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",Im,[e.createElementVNode("div",Xm,[r[9]||(r[9]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=y=>n.data.bgColor=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:"#ffffff"},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(u,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",qm,[r[10]||(r[10]=e.createElementVNode("span",{class:"header-title"},"pc列数",-1)),e.createVNode(p,{modelValue:n.data.desktopCol,"onUpdate:modelValue":r[1]||(r[1]=y=>n.data.desktopCol=y),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",Fm,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),e.createVNode(p,{modelValue:n.data.mobileCol,"onUpdate:modelValue":r[2]||(r[2]=y=>n.data.mobileCol=y),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",Ym,[e.createElementVNode("div",Zm,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[3]||(r[3]=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[4]||(r[4]=y=>l.value=!0),onEnd:r[5]||(r[5]=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",Gm,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",Jm,[e.createVNode(h,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:b=>m(y.id)},null,8,["onClick"])]),r[12]||(r[12]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(p,{modelValue:y.title,"onUpdate:modelValue":b=>y.title=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[13]||(r[13]=e.createElementVNode("p",{class:"item-title"},"副标题",-1)),e.createVNode(p,{modelValue:y.subtitle,"onUpdate:modelValue":b=>y.subtitle=b,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:y.imgSrc},null,8,Km),e.createElementVNode("div",vm,[e.createVNode(p,{modelValue:y.imgSrc,"onUpdate:modelValue":b=>y.imgSrc=b,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:y.imgSrc,"onUpdate:modelValue":b=>y.imgSrc=b,name:`GalleryDefault_${y.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(p,{class:"mt-2",modelValue:y.alt,"onUpdate:modelValue":b=>y.alt=b,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]=y=>A())},[e.createVNode(g),r[15]||(r[15]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-0e37a6da"]]),eA={class:"gallery-default"},tA={class:"img-wrapper need-mask"},lA=["src","alt"],oA={class:"img-wrapper__content"},nA={class:"img-wrapper__content__title"},aA={class:"img-wrapper__content__subtitle"},Ta=W(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)||L(),type:"GalleryDefault",bgColor:"",desktopCol:3,mobileCol:2,data:[{id:L(),title:"标题",subtitle:"副标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:""},{id:L(),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)},A=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var u,f,p,h;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:(u=n.modelValue)==null?void 0:u.bgColor})},[e.createElementVNode("div",{class:e.normalizeClass(["default-row row",[`row-cols-${(f=n.modelValue)==null?void 0:f.mobileCol}`,`row-cols-md-${(p=n.modelValue)==null?void 0:p.desktopCol}`]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((h=n.modelValue)==null?void 0:h.data,x=>(e.openBlock(),e.createElementBlock("div",{key:x.id,class:"col"},[e.createElementVNode("div",eA,[e.createElementVNode("div",tA,[e.createElementVNode("img",{src:x.imgSrc,alt:x.alt},null,8,lA),e.createElementVNode("div",oA,[e.createElementVNode("div",nA,e.toDisplayString(x.title),1),e.createElementVNode("h5",aA,e.toDisplayString(x.subtitle),1)])])])]))),128))],2)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{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:A,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Qm,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),[["__scopeId","data-v-38153845"]]),iA={class:"setting-content"},sA={class:"setting-header flex items-center"},rA={class:"setting-header flex items-center"},dA={class:"setting-header flex items-center"},cA={class:"setting-header flex items-center"},mA={class:"setting-body"},AA={class:"setting-item"},pA={class:"btn-group"},fA={key:0,class:"drag-handle"},uA=["src"],hA={class:"item-uplaod flex items-center"},VA=W(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)},A=()=>{i.data.data.push({id:L(),title:"标题",url:"",imgSrc:void 0,alt:""})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const u=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("a-input"),h=e.resolveComponent("icon-drag-arrow"),x=e.resolveComponent("icon-delete"),g=e.resolveComponent("icon-plus"),V=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(V,{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",iA,[e.createElementVNode("div",sA,[r[10]||(r[10]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=y=>n.data.bgColor=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:"#ffffff"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(u,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",rA,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"pc列数",-1)),e.createVNode(p,{modelValue:n.data.desktopCol,"onUpdate:modelValue":r[1]||(r[1]=y=>n.data.desktopCol=y),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",dA,[r[12]||(r[12]=e.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),e.createVNode(p,{modelValue:n.data.mobileCol,"onUpdate:modelValue":r[2]||(r[2]=y=>n.data.mobileCol=y),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",cA,[r[15]||(r[15]=e.createElementVNode("span",{class:"header-title"},"是否居中",-1)),e.createVNode(f,{modelValue:n.data.center,"onUpdate:modelValue":r[3]||(r[3]=y=>n.data.center=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:!0},{default:e.withCtx(()=>[...r[13]||(r[13]=[e.createTextVNode("是",-1)])]),_:1}),e.createVNode(u,{value:!1},{default:e.withCtx(()=>[...r[14]||(r[14]=[e.createTextVNode("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",mA,[e.createElementVNode("div",AA,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[4]||(r[4]=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[5]||(r[5]=y=>l.value=!0),onEnd:r[6]||(r[6]=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",pA,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",fA,[e.createVNode(h,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:b=>m(y.id)},null,8,["onClick"])]),r[16]||(r[16]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(p,{modelValue:y.title,"onUpdate:modelValue":b=>y.title=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[17]||(r[17]=e.createElementVNode("p",{class:"item-title"},"跳转链接",-1)),e.createVNode(p,{modelValue:y.url,"onUpdate:modelValue":b=>y.url=b,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:y.imgSrc},null,8,uA),e.createElementVNode("div",hA,[e.createVNode(p,{modelValue:y.imgSrc,"onUpdate:modelValue":b=>y.imgSrc=b,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:y.imgSrc,"onUpdate:modelValue":b=>y.imgSrc=b,name:`GalleryCaptionRound_${y.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(p,{class:"mt-2",modelValue:y.alt,"onUpdate:modelValue":b=>y.alt=b,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]=y=>A())},[e.createVNode(g),r[19]||(r[19]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-641fc5d7"]]),gA=["href"],yA=["src","alt"],bA=["onClick"],wA=["src","alt"],xA={key:2,class:"gallery-caption__img"},kA=["src","alt"],NA=["href"],_A=["onClick"],CA=["innerHTML"],Sa=W(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 u;if(l.modelValue&&l.modelValue.data)return;const r={id:((u=l.modelValue)==null?void 0:u.id)||L(),type:"GalleryCaptionRound",bgColor:"",desktopCol:3,mobileCol:2,center:!1,data:[{id:L(),title:"标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com"},{id:L(),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)},A=()=>{o("handleCopy",l.modelValue)},m=r=>{o("handlePaste",r)},c=r=>{o("handleClick",r)};return a(),(r,u)=>{var f,p,h,x,g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:u[2]||(u[2]=V=>i.value=!0),onMouseleave:u[3]||(u[3]=V=>i.value=!1)},[e.createElementVNode("div",{class:"gallery-container gallery-caption-round 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-${(h=n.modelValue)==null?void 0:h.desktopCol}`,((x=n.modelValue)==null?void 0:x.center)&&"row-center"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((g=n.modelValue)==null?void 0:g.data,V=>(e.openBlock(),e.createElementBlock("div",{key:V.id,class:"col"},[e.createElementVNode("div",{class:e.normalizeClass(["gallery-caption-round gallery-caption",[V.url&&"has-url"]])},[V.url&&V.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:V.url,target:"_blank",class:"gallery-caption__img"},[e.createElementVNode("img",{src:V.imgSrc,alt:V.alt},null,8,yA)],8,gA)):V.url?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y=>c(V.url),class:"gallery-caption__img"},[e.createElementVNode("img",{src:V.imgSrc,alt:V.alt},null,8,wA)],8,bA)):(e.openBlock(),e.createElementBlock("div",xA,[e.createElementVNode("img",{src:V.imgSrc,alt:V.alt},null,8,kA)])),V.url&&V.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:3,href:V.url,target:"_blank",class:"gallery-caption__title tx-subtitle text-blue text-center"},e.toDisplayString(V.title),9,NA)):V.url?(e.openBlock(),e.createElementBlock("button",{key:4,onClick:y=>c(V.url),class:"gallery-caption__title tx-subtitle text-blue text-center"},e.toDisplayString(V.title),9,_A)):(e.openBlock(),e.createElementBlock("div",{key:5,class:"tx-subtitle text-blue text-center",innerHTML:V.title},null,8,CA))],2)]))),128))],2)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{key:0,show:i.value,"onUpdate:show":u[0]||(u[0]=V=>i.value=V),onHandleEdit:u[1]||(u[1]=V=>s.value=!0),onHandleDelete:d,onHandleCopy:A,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(VA,{key:0,show:s.value,"onUpdate:show":u[4]||(u[4]=V=>s.value=V),data:n.modelValue},null,8,["show","data"]))],64)}}}),[["__scopeId","data-v-1597f5dc"]]),EA={class:"setting-content"},TA={class:"setting-header flex items-center"},SA={class:"setting-body"},PA={class:"setting-item"},BA={class:"btn-group"},LA={key:0,class:"drag-handle"},OA=["src"],$A={class:"item-uplaod flex items-center"},zA={class:"item-action flex items-center"},MA=W(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)},A=()=>{i.data.data.push({id:L(),title:"标题",text:"内容",date:"",imgSrc:"",alt:"",url:"",btnText:""})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const u=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("icon-drag-arrow"),h=e.resolveComponent("icon-delete"),x=e.resolveComponent("a-input"),g=e.resolveComponent("a-button"),V=e.resolveComponent("icon-plus"),y=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(y,{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(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=b=>n.data.bgColor=b),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:"#ffffff"},{default:e.withCtx(()=>[...r[5]||(r[5]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(u,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",SA,[e.createElementVNode("div",PA,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=b=>n.data.data=b),"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]=b=>l.value=!0),onEnd:r[3]||(r[3]=b=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:b})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:b.id},[e.createElementVNode("div",BA,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",LA,[e.createVNode(p,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:_=>m(b.id)},null,8,["onClick"])]),r[8]||(r[8]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(x,{modelValue:b.title,"onUpdate:modelValue":_=>b.title=_,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[9]||(r[9]=e.createElementVNode("p",{class:"item-title"},"文本",-1)),e.createVNode(e.unref(Ie),{modelValue:b.text,"onUpdate:modelValue":_=>b.text=_,name:`GalleryTimeline_editor_${b.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),r[10]||(r[10]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(x,{modelValue:b.date,"onUpdate:modelValue":_=>b.date=_,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:b.imgSrc},null,8,OA),e.createElementVNode("div",$A,[e.createVNode(x,{modelValue:b.imgSrc,"onUpdate:modelValue":_=>b.imgSrc=_,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:b.imgSrc,"onUpdate:modelValue":_=>b.imgSrc=_,name:`GalleryTimeline_${b.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(x,{class:"mt-2",modelValue:b.alt,"onUpdate:modelValue":_=>b.alt=_,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(g,{style:{"margin-top":"10px"},type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.btnText),1)]),_:2},1024),e.createElementVNode("div",zA,[e.createVNode(x,{class:"action-text",modelValue:b.btnText,"onUpdate:modelValue":_=>b.btnText=_,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(x,{modelValue:b.url,"onUpdate:modelValue":_=>b.url=_,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]=b=>A())},[e.createVNode(V),r[12]||(r[12]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-69d5d758"]]);function Bn(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}var jA=typeof global=="object"&&global&&global.Object===Object&&global,DA=typeof self=="object"&&self&&self.Object===Object&&self,Ns=jA||DA||Function("return this")(),Pa=function(){return Ns.Date.now()},UA=/\s/;function RA(n){for(var t=n.length;t--&&UA.test(n.charAt(t)););return t}var HA=/^\s+/;function WA(n){return n&&n.slice(0,RA(n)+1).replace(HA,"")}var Ln=Ns.Symbol,_s=Object.prototype,IA=_s.hasOwnProperty,XA=_s.toString,Ho=Ln?Ln.toStringTag:void 0;function qA(n){var t=IA.call(n,Ho),l=n[Ho];try{n[Ho]=void 0;var o=!0}catch{}var a=XA.call(n);return o&&(t?n[Ho]=l:delete n[Ho]),a}var FA=Object.prototype,YA=FA.toString;function ZA(n){return YA.call(n)}var GA="[object Null]",JA="[object Undefined]",Cs=Ln?Ln.toStringTag:void 0;function KA(n){return n==null?n===void 0?JA:GA:Cs&&Cs in Object(n)?qA(n):ZA(n)}function vA(n){return n!=null&&typeof n=="object"}var QA="[object Symbol]";function ep(n){return typeof n=="symbol"||vA(n)&&KA(n)==QA}var Es=NaN,tp=/^[-+]0x[0-9a-f]+$/i,lp=/^0b[01]+$/i,op=/^0o[0-7]+$/i,np=parseInt;function Ts(n){if(typeof n=="number")return n;if(ep(n))return Es;if(Bn(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=Bn(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=WA(n);var l=lp.test(n);return l||op.test(n)?np(n.slice(2),l?2:8):tp.test(n)?Es:+n}var ap="Expected a function",ip=Math.max,sp=Math.min;function On(n,t,l){var o,a,i,s,d,A,m=0,c=!1,r=!1,u=!0;if(typeof n!="function")throw new TypeError(ap);t=Ts(t)||0,Bn(l)&&(c=!!l.leading,r="maxWait"in l,i=r?ip(Ts(l.maxWait)||0,t):i,u="trailing"in l?!!l.trailing:u);function f(C){var w=o,N=a;return o=a=void 0,m=C,s=n.apply(N,w),s}function p(C){return m=C,d=setTimeout(g,t),c?f(C):s}function h(C){var w=C-A,N=C-m,T=t-w;return r?sp(T,i-N):T}function x(C){var w=C-A,N=C-m;return A===void 0||w>=t||w<0||r&&N>=i}function g(){var C=Pa();if(x(C))return V(C);d=setTimeout(g,h(C))}function V(C){return d=void 0,u&&o?f(C):(o=a=void 0,s)}function y(){d!==void 0&&clearTimeout(d),m=0,o=A=a=d=void 0}function b(){return d===void 0?s:V(Pa())}function _(){var C=Pa(),w=x(C);if(o=arguments,a=this,A=C,w){if(d===void 0)return p(A);if(r)return clearTimeout(d),d=setTimeout(g,t),f(A)}return d===void 0&&(d=setTimeout(g,t)),s}return _.cancel=y,_.flush=b,_}var rp="Expected a function";function dp(n,t,l){var o=!0,a=!0;if(typeof n!="function")throw new TypeError(rp);return Bn(l)&&(o="leading"in l?!!l.leading:o,a="trailing"in l?!!l.trailing:a),On(n,t,{leading:o,maxWait:t,trailing:a})}var uo=function(){return uo=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},uo.apply(this,arguments)};function Ss(n){return!n||!n.ownerDocument||!n.ownerDocument.defaultView?window:n.ownerDocument.defaultView}function Ps(n){return!n||!n.ownerDocument?document:n.ownerDocument}var Bs=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,A){return A.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 Ls(n,t){var l;n&&(l=n.classList).add.apply(l,t.split(" "))}function Os(n,t){n&&t.split(" ").forEach(function(l){n.classList.remove(l)})}function $s(n){return".".concat(n.split(" ").join("."))}var Ba=!!(typeof window<"u"&&window.document&&window.document.createElement),cp=Object.freeze({__proto__:null,addClasses:Ls,canUseDOM:Ba,classNamesToQuery:$s,getElementDocument:Ps,getElementWindow:Ss,getOptions:Bs,removeClasses:Os}),ho=null,zs=null;Ba&&window.addEventListener("resize",function(){zs!==window.devicePixelRatio&&(zs=window.devicePixelRatio,ho=null)});function Ms(){if(ho===null){if(typeof document>"u")return ho=0,ho;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),ho=l}return ho}var Cl=Ss,La=Ps,mp=Bs,El=Ls,Tl=Os,xt=$s,Wo=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,A,m,c,r,u,f,p,h;if(!(!o.draggedAxis||!o.contentWrapperEl)){var x,g=o.axis[o.draggedAxis].track,V=(s=(i=g.rect)===null||i===void 0?void 0:i[o.axis[o.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,y=o.axis[o.draggedAxis].scrollbar,b=(A=(d=o.contentWrapperEl)===null||d===void 0?void 0:d[o.axis[o.draggedAxis].scrollSizeAttr])!==null&&A!==void 0?A:0,_=parseInt((c=(m=o.elStyles)===null||m===void 0?void 0:m[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 C=x-((u=(r=g.rect)===null||r===void 0?void 0:r[o.axis[o.draggedAxis].offsetAttr])!==null&&u!==void 0?u:0)-o.axis[o.draggedAxis].dragOffset;C=o.draggedAxis==="x"&&o.isRtl?((p=(f=g.rect)===null||f===void 0?void 0:f[o.axis[o.draggedAxis].sizeAttr])!==null&&p!==void 0?p:0)-y.size-C:C;var w=C/(V-y.size),N=w*(b-_);o.draggedAxis==="x"&&o.isRtl&&(N=!((h=n.getRtlHelpers())===null||h===void 0)&&h.isScrollingToNegative?-N:N),o.contentWrapperEl[o.axis[o.draggedAxis].scrollOffsetAttr]=N}},this.onEndDrag=function(a){o.isDragging=!1;var i=La(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=uo(uo({},n.defaultOptions),l),this.classNames=uo(uo({},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=dp(this._onMouseMove,64),this.onWindowResize=On(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=On(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=On(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:Ms()}catch{return Ms()}},n.getOffset=function(t){var l=t.getBoundingClientRect(),o=La(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(){Ba&&(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(xt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(xt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(xt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(xt(this.classNames.offset)),this.maskEl=this.el.querySelector(xt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,xt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(xt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(xt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(xt(this.classNames.track)).concat(xt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(xt(this.classNames.track)).concat(xt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(xt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((l=this.axis.y.track.el)===null||l===void 0?void 0:l.querySelector(xt(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 A=this.contentEl.scrollHeight,m=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=o?"auto":"100%",this.placeholderEl.style.width=a?"".concat(l||m,"px"):"auto",this.placeholderEl.style.height="".concat(A,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&m>l,this.axis.y.isOverflowing=A>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,u=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&m>i-u,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&A>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,A=parseInt(this.elStyles[this.axis[t].sizeAttr],10),m=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];m=t==="x"&&this.isRtl&&(!((o=n.getRtlHelpers())===null||o===void 0)&&o.isScrollOriginAtZero)?-m:m,t==="x"&&this.isRtl&&(m=!((a=n.getRtlHelpers())===null||a===void 0)&&a.isScrollingToNegative?m:-m);var c=m/(s-A),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=La(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 A=this.axis[l];if(!(!this.options.clickOnTrack||!A.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var m=Cl(this.el);this.axis[l].scrollbar.rect=A.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,u=parseInt((d=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[l].sizeAttr])!==null&&d!==void 0?d:"0px",10),f=this.contentWrapperEl[this.axis[l].scrollOffsetAttr],p=l==="y"?this.mouseY-r:this.mouseX-r,h=p<0?-1:1,x=h===-1?f-u:f+u,g=40,V=function(){o.contentWrapperEl&&(h===-1?f>x&&(f-=g,o.contentWrapperEl[o.axis[l].scrollOffsetAttr]=f,m.requestAnimationFrame(V)):f<x&&(f+=g,o.contentWrapperEl[o.axis[l].scrollOffsetAttr]=f,m.requestAnimationFrame(V)))};V()}},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=mp,n.helpers=cp,n}(),Xl=function(){return Xl=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},Xl.apply(this,arguments)},Ap={beforeUnmount:"beforeUnmount"},Io;function pp(n){var t,l=n.h,o=n.emit,a=n.slots,i=n.props,s=function(A){return o("scroll",A)},d=Xl(Xl({},Wo.defaultOptions.classNames),i.classNames);return l("div",Xl({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",Xl(Xl({},{onScroll:s,class:d.contentWrapper,tabIndex:i.tabIndex||Wo.defaultOptions.tabIndex,role:"region","aria-label":i.ariaLabel||Wo.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 fp=e.defineComponent((Io={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=Wo.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 Wo(this.$refs.element,n),this.scrollElement=this.$refs.scrollElement,this.contentElement=this.$refs.contentElement}},Io[Ap.beforeUnmount]=function(){var n;(n=this.SimpleBar)===null||n===void 0||n.unMount(),this.SimpleBar=void 0},Io.methods={recalculate:function(){var n;(n=this.SimpleBar)===null||n===void 0||n.recalculate()}},Io.render=function(n){var t=this;return pp({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})},Io));const $n=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(fp),{key:0,"data-simplebar-auto-hide":"false",class:"simple-bar"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}))],2))}});function ul(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function js(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t}/*!
1
+ (function(q,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuedraggable"),require("swiper/vue"),require("swiper/modules"),require("axios"),require("@splidejs/vue-splide")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","swiper/vue","swiper/modules","axios","@splidejs/vue-splide"],e):(q=typeof globalThis<"u"?globalThis:q||self,e(q.OfficialBlock={},q.Vue,q.vuedraggable,q.SwiperVue,q.SwiperModules,q.axios,q.VueSplide))})(this,function(q,e,ie,ll,ft,tc,ks){"use strict";var j_=Object.defineProperty;var D_=(q,e,ie)=>e in q?j_(q,e,{enumerable:!0,configurable:!0,writable:!0,value:ie}):q[e]=ie;var ec=(q,e,ie)=>D_(q,typeof e!="symbol"?e+"":e,ie);function L(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 Tn(n="Publications",t="section",l=10,o=8){const a="abcdefghijklmnopqrstuvwxyz0123456789",i=a.length;function s(u){if(typeof crypto<"u"&&crypto.getRandomValues){const f=new Uint32Array(u);crypto.getRandomValues(f);let p="";for(let h=0;h<u;h++)p+=a[f[h]%i];return p}else{let f="";for(let p=0;p<u;p++)f+=a.charAt(Math.floor(Math.random()*i));return f}}function d(u){const f=Date.now().toString();if(f.length>=u)return f.slice(0,u);{const p=s(u-f.length).replace(/[^0-9]/g,"");return f+p}}const A=d(l),m=s(o),c=d(l),r=s(o);return`${n}-${A}-${m}-${t}-${c}-${r}`}const lc={class:"button-text"},oc={class:"link-text"},nc=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",lc,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",oc,e.toDisplayString(n.data.text),1),s[1]||(s[1]=e.createElementVNode("span",{class:"button-icon link-icon"},null,-1))]))}}),W=(n,t)=>{const l=n.__vccOpts||n;for(const[o,a]of t)l[o]=a;return l},Sn=W(nc,[["__scopeId","data-v-d959a3d5"]]),ac={class:"article-item"},ic={class:"article-item-title"},sc=["innerHTML"],rc={key:0,class:"article-item-button"},dc={key:1,class:"article-item-link"},cc=W(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",ic,e.toDisplayString(n.article.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.article.content},null,8,sc),(s=n.article.buttonList)!=null&&s.length?(e.openBlock(),e.createElementBlock("div",rc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.buttonList,A=>(e.openBlock(),e.createBlock(Sn,{key:A.id,data:A,onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0),(d=n.article.linkList)!=null&&d.length?(e.openBlock(),e.createElementBlock("div",dc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.linkList,A=>(e.openBlock(),e.createBlock(Sn,{key:A.id,data:A,type:"link",onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-2c696c08"]]),mc={class:"contact-item"},Ac={class:"contact-item-categories"},pc={class:"contact-item-title"},fc=["innerHTML"],uc={class:"contact-item-link"},hc=W(e.defineComponent({__name:"contact",props:{contact:{type:Object,default:()=>{}}},setup(n){return(t,l)=>(e.openBlock(),e.createElementBlock("div",mc,[e.createElementVNode("div",Ac,[(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",pc,e.toDisplayString(n.contact.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.contact.content},null,8,fc),e.createElementVNode("div",uc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.contact.linkList,o=>(e.openBlock(),e.createBlock(Sn,{key:o.id,data:o,type:"link"},null,8,["data"]))),128))])]))}}),[["__scopeId","data-v-32cbb692"]]),Vc={key:0,class:"image-container"},gc={key:0,class:"image-desc"},yc={key:1,class:"video-container flex-inline flex-center"},bc=["src"],wc={class:"video-thumbnail flex flex-center"},xc=["src"],kc={key:2,class:"image-list-container"},Nc={key:0,class:"image-preview"},_c={class:"image-list-wrapper"},Cc=["src","onClick"],Ec=W(e.defineComponent({__name:"index",props:{type:{type:String,default:"Image"},data:{type:Object,default:()=>{}},preview:{type:Boolean,default:!0}},setup(n){var p,h,x;const t=n,l=e.ref(),o=e.ref(!1),a=()=>{var g;(g=l.value)==null||g.play(),o.value=!0},i=e.ref(((x=(h=(p=t.data)==null?void 0:p.imageList)==null?void 0:h[0])==null?void 0:x.src)||""),s=g=>{i.value=g},d=e.ref(null),A=e.ref(!1),m=e.ref(!1),c=()=>{const g=d.value;g&&(A.value=g.scrollLeft>0,m.value=g.scrollLeft+g.clientWidth<g.scrollWidth)},r=()=>{const g=d.value;g&&g.scrollBy({left:-g.clientWidth/1.5,behavior:"smooth"})},u=()=>{const g=d.value;g&&g.scrollBy({left:g.clientWidth/1.5,behavior:"smooth"})},f=()=>{c()};return e.watch(()=>{var g;return(g=t.data)==null?void 0:g.imageList},async()=>{await e.nextTick(),c()}),e.onMounted(()=>{window.addEventListener("resize",c),e.nextTick(c)}),e.onUnmounted(()=>{window.removeEventListener("resize",c)}),(g,V)=>{const y=e.resolveComponent("a-image"),b=e.resolveComponent("icon-caret-right");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.type==="Image"?(e.openBlock(),e.createElementBlock("div",Vc,[e.createVNode(y,{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",gc,e.toDisplayString(n.data.caption),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.type==="Video"?(e.openBlock(),e.createElementBlock("div",yc,[e.createElementVNode("video",{class:"video",ref_key:"videoElement",ref:l,src:n.data.videoSrc,controls:""},null,8,bc),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",wc,[e.createElementVNode("img",{src:n.data.imgSrc},null,8,xc)]),e.createElementVNode("div",{class:"play-button flex flex-center",onClick:a},[e.createVNode(b,{style:{color:"#fff"}})])],64))])):e.createCommentVNode("",!0),n.type==="ImageList"?(e.openBlock(),e.createElementBlock("div",kc,[i.value?(e.openBlock(),e.createElementBlock("div",Nc,[e.createVNode(y,{class:"image",src:i.value,preview:n.preview,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview"])])):e.createCommentVNode("",!0),e.createElementVNode("div",_c,[e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:r}," ‹ ",512),[[e.vShow,A.value]]),e.createElementVNode("div",{class:"image-list",ref_key:"imageListRef",ref:d,onScroll:f},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data.imageList,_=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_.id},[_.src?(e.openBlock(),e.createElementBlock("img",{key:0,class:"image",src:_.src,onClick:C=>s(_.src)},null,8,Cc)):e.createCommentVNode("",!0)],64))),128))],544),e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__next",onClick:u}," › ",512),[[e.vShow,m.value]])])])):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-a39a94f2"]]),_e=W(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],([A,m])=>{!A||!m||m!==l.name||o("update:modelValue",A)},{immediate:!1}),(A,m)=>{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"])}}}),[["__scopeId","data-v-32b7c6db"]]),Ie=W(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),A=e.ref("");return e.watch(()=>[s==null?void 0:s.value,d==null?void 0:d.value],([m,c])=>{var r,u;!m||!c||c!==o.name+A.value||(A.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%;">'):(u=a.value)==null||u.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 m=a.value;m!=null&&m.destroy()}),e.watch(()=>o.modelValue,m=>{m!==i.value&&(i.value=m||"")},{immediate:!0}),t({editor:a,getHtml:()=>i.value,getText:()=>{var m;return((m=a.value)==null?void 0:m.getText())||""},isEmpty:()=>{var m;return((m=a.value)==null?void 0:m.isEmpty())||!0},clear:()=>{var m;return(m=a.value)==null?void 0:m.clear()},focus:()=>{var m;return(m=a.value)==null?void 0:m.focus()},blur:()=>{var m;return(m=a.value)==null?void 0:m.blur()},disable:()=>{var m;return(m=a.value)==null?void 0:m.disable()},enable:()=>{var m;return(m=a.value)==null?void 0:m.enable()}}),(m,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})}}}),[["__scopeId","data-v-c50bbd44"]]),Tc={class:"setting-content"},Sc={class:"setting-header flex items-center"},Pc={class:"setting-header flex items-center"},Bc={class:"setting-body"},Lc={class:"setting-item"},Oc={class:"item-name"},$c={class:"btn-group"},zc={class:"drag-handle"},Mc={class:"btn-group"},jc={key:0,class:"drag-handle"},Dc={class:"item-action flex items-center"},Uc=["onClick"],Rc={class:"btn-group"},Hc={key:0,class:"drag-handle"},Wc={class:"item-action flex items-center"},Ic=["onClick"],Xc={class:"btn-group"},qc={key:0,class:"drag-handle"},Fc={class:"item-action flex items-center"},Yc=["onClick"],Zc={class:"btn-group"},Gc={key:0,class:"drag-handle"},Jc={class:"item-action flex items-center"},Kc=["onClick"],vc=["src"],Qc={class:"item-uplaod flex items-center"},em={class:"item-img-list"},tm={class:"btn-group"},lm={key:0,class:"drag-handle"},om={key:0,class:"item-img-box"},nm=["src"],am={class:"item-right flex-1"},im=["onClick"],sm=["src"],rm={class:"item-uplaod flex items-center"},dm=["src"],cm={class:"item-uplaod flex items-center"},mm=W(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"})),A=C=>C&&C.length>1,m=n,c=t,r=()=>{c("update:show",!1)},u=C=>{const w=m.data;C==="Article"?w.data.push({id:L(),type:"Article",title:"",content:"",buttonList:[],linkList:[]}):C==="Contact"?w.data.push({id:L(),type:"Contact",title:"",content:"",categories:[],linkList:[]}):C==="Image"?w.data.push({id:L(),type:"Image",imgSrc:"",caption:"",alt:"",isRound:!1}):C==="ImageList"?w.data.push({id:L(),type:"ImageList",imageList:[]}):C==="Video"&&w.data.push({id:L(),type:"Video",videoSrc:"",imgSrc:""})},f=C=>{m.data.data=m.data.data.filter(w=>w.id!==C)},p=C=>{C.push({id:L(),text:"查看更多",url:void 0,isExternal:!1})},h=(C,w)=>{C.splice(C.findIndex(N=>N.id===w),1)},x=C=>{C.push({id:L(),text:"查看更多",url:void 0,isExternal:!1})},g=(C,w)=>{C.splice(C.findIndex(N=>N.id===w),1)},V=C=>{C.push({id:L(),text:"分类"})},y=(C,w)=>{C.splice(C.findIndex(N=>N.id===w),1)},b=C=>{C.push({id:L(),src:""})},_=(C,w)=>{C.splice(C.findIndex(N=>N===w),1)};return(C,w)=>{const N=e.resolveComponent("a-option"),T=e.resolveComponent("a-select"),E=e.resolveComponent("icon-plus"),S=e.resolveComponent("a-button"),P=e.resolveComponent("a-button-group"),O=e.resolveComponent("icon-drag-arrow"),$=e.resolveComponent("icon-delete"),z=e.resolveComponent("a-input"),j=e.resolveComponent("a-checkbox"),D=e.resolveComponent("a-link"),H=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(H,{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",Tc,[e.createElementVNode("div",Sc,[w[24]||(w[24]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(T,{modelValue:n.data.width,"onUpdate:modelValue":w[0]||(w[0]=M=>n.data.width=M),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(N,{value:"default"},{default:e.withCtx(()=>[...w[20]||(w[20]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(N,{value:"small"},{default:e.withCtx(()=>[...w[21]||(w[21]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(N,{value:"middle"},{default:e.withCtx(()=>[...w[22]||(w[22]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(N,{value:"max"},{default:e.withCtx(()=>[...w[23]||(w[23]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Pc,[w[27]||(w[27]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(T,{modelValue:n.data.bgColor,"onUpdate:modelValue":w[1]||(w[1]=M=>n.data.bgColor=M),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(N,{value:"#ffffff"},{default:e.withCtx(()=>[...w[25]||(w[25]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(N,{value:"#F7F7FA"},{default:e.withCtx(()=>[...w[26]||(w[26]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createVNode(P,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(S,{size:"mini",onClick:w[2]||(w[2]=M=>u("Article"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[w[28]||(w[28]=e.createTextVNode(" Article ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:w[3]||(w[3]=M=>u("Contact"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[w[29]||(w[29]=e.createTextVNode(" Contact ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:w[4]||(w[4]=M=>u("Image"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[w[30]||(w[30]=e.createTextVNode(" Image ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:w[5]||(w[5]=M=>u("ImageList"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[w[31]||(w[31]=e.createTextVNode(" ImageList ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:w[6]||(w[6]=M=>u("Video"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[w[32]||(w[32]=e.createTextVNode(" Video ",-1))]),_:1})]),_:1}),e.createElementVNode("div",Bc,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":w[17]||(w[17]=M=>n.data.data=M),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{onStart:w[18]||(w[18]=M=>l.value=!0),onEnd:w[19]||(w[19]=M=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:M})=>[e.createElementVNode("div",Lc,[e.createElementVNode("p",Oc,e.toDisplayString(M.type),1),e.createElementVNode("div",$c,[e.createElementVNode("div",zc,[e.createVNode(O,{class:"drag-icon"})]),e.createVNode($,{class:"btn-delete",onClick:k=>f(M.id)},null,8,["onClick"])]),M.type==="Article"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[w[37]||(w[37]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(z,{modelValue:M.title,"onUpdate:modelValue":k=>M.title=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w[38]||(w[38]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(Ie),{modelValue:M.content,"onUpdate:modelValue":k=>M.content=k,name:`ArticleList_editor_${M.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),w[39]||(w[39]=e.createElementVNode("p",{class:"item-title"},"按钮",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:M.buttonList,"onUpdate:modelValue":k=>M.buttonList=k,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!A(M.buttonList),onStart:w[7]||(w[7]=k=>l.value=!0),onEnd:w[8]||(w[8]=k=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!A(M.buttonList)}]),key:k.id},[e.createElementVNode("div",Mc,[A(M.buttonList)?(e.openBlock(),e.createElementBlock("div",jc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>h(M.buttonList,k.id)},null,8,["onClick"])]),e.createVNode(S,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.text),1)]),_:2},1024),e.createElementVNode("div",Dc,[e.createVNode(z,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":U=>k.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:k.url,"onUpdate:modelValue":U=>k.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":k.isExternal},{default:e.withCtx(()=>[...w[33]||(w[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:k=>p(M.buttonList)},[e.createVNode(E),w[34]||(w[34]=e.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,Uc),w[40]||(w[40]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":k=>M.linkList=k,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!A(M.linkList),onStart:w[9]||(w[9]=k=>l.value=!0),onEnd:w[10]||(w[10]=k=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!A(M.linkList)}]),key:k.id},[e.createElementVNode("div",Rc,[A(M.linkList)?(e.openBlock(),e.createElementBlock("div",Hc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>g(M.linkList,k.id)},null,8,["onClick"])]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.text),1)]),_:2},1024),e.createElementVNode("div",Wc,[e.createVNode(z,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":U=>k.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:k.url,"onUpdate:modelValue":U=>k.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":k.isExternal},{default:e.withCtx(()=>[...w[35]||(w[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:k=>x(M.linkList)},[e.createVNode(E),w[36]||(w[36]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,Ic)],64)):e.createCommentVNode("",!0),M.type==="Contact"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[w[44]||(w[44]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(z,{modelValue:M.title,"onUpdate:modelValue":k=>M.title=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),w[45]||(w[45]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(Ie),{modelValue:M.content,"onUpdate:modelValue":k=>M.content=k,name:`ArticleList_editor_${M.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),w[46]||(w[46]=e.createElementVNode("p",{class:"item-title"},"分类",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:M.categories,"onUpdate:modelValue":k=>M.categories=k,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},s.value,{disabled:!A(M.categories),onStart:w[11]||(w[11]=k=>l.value=!0),onEnd:w[12]||(w[12]=k=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!A(M.categories)}]),key:k.id},[e.createElementVNode("div",Xc,[A(M.categories)?(e.openBlock(),e.createElementBlock("div",qc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>y(M.categories,k.id)},null,8,["onClick"])]),e.createVNode($,{class:"btn-delete",onClick:U=>y(M.categories,k.id)},null,8,["onClick"]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.text),1)]),_:2},1024),e.createElementVNode("div",Fc,[e.createVNode(z,{modelValue:k.text,"onUpdate:modelValue":U=>k.text=U,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:k=>V(M.categories)},[e.createVNode(E),w[41]||(w[41]=e.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,Yc),w[47]||(w[47]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":k=>M.linkList=k,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!A(M.linkList),onStart:w[13]||(w[13]=k=>l.value=!0),onEnd:w[14]||(w[14]=k=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!A(M.linkList)}]),key:k.id},[e.createElementVNode("div",Zc,[A(M.linkList)?(e.openBlock(),e.createElementBlock("div",Gc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>g(M.linkList,k.id)},null,8,["onClick"])]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.text),1)]),_:2},1024),e.createElementVNode("div",Jc,[e.createVNode(z,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":U=>k.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{modelValue:k.url,"onUpdate:modelValue":U=>k.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":k.isExternal},{default:e.withCtx(()=>[...w[42]||(w[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:k=>x(M.linkList)},[e.createVNode(E),w[43]||(w[43]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,Kc)],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,vc),e.createElementVNode("div",Qc,[e.createVNode(z,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,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":k=>M.caption=k,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(z,{class:"mt-2",modelValue:M.alt,"onUpdate:modelValue":k=>M.alt=k,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(j,{class:"pt-2","model-value":M.isRound},{default:e.withCtx(()=>[...w[48]||(w[48]=[e.createTextVNode("圆角",-1)])]),_:1},8,["model-value"])],64)):e.createCommentVNode("",!0),M.type==="ImageList"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[w[50]||(w[50]=e.createElementVNode("p",{class:"item-title"},"图片组",-1)),e.createElementVNode("div",em,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:M.imageList,"onUpdate:modelValue":k=>M.imageList=k,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},d.value,{disabled:!A(M.imageList),onStart:w[15]||(w[15]=k=>l.value=!0),onEnd:w[16]||(w[16]=k=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["img-list-item flex draggable-item",{"sortable-disabled":!A(M.imageList)}]),key:k.id},[e.createElementVNode("div",tm,[A(M.imageList)?(e.openBlock(),e.createElementBlock("div",lm,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>_(M.imageList,k.id)},null,8,["onClick"])]),k.src?(e.openBlock(),e.createElementBlock("div",om,[e.createElementVNode("img",{class:"item-img small-img",src:k.src},null,8,nm)])):e.createCommentVNode("",!0),e.createElementVNode("div",am,[e.createVNode(z,{style:{"margin-bottom":"12px"},modelValue:k.src,"onUpdate:modelValue":U=>k.src=U,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:k.src,"onUpdate:modelValue":U=>k.src=U,name:`ArticleList_${k.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:k=>b(M.imageList)},[e.createVNode(E),w[49]||(w[49]=e.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,im)],64)):e.createCommentVNode("",!0),M.type==="Video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[w[51]||(w[51]=e.createElementVNode("p",{class:"item-title"},"视频",-1)),e.createElementVNode("video",{class:"item-img",src:M.videoSrc,controls:""},null,8,sm),e.createElementVNode("div",rm,[e.createVNode(z,{modelValue:M.videoSrc,"onUpdate:modelValue":k=>M.videoSrc=k,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:M.videoSrc,"onUpdate:modelValue":k=>M.videoSrc=k,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,dm),e.createElementVNode("div",cm,[e.createVNode(z,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,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"])}}}),[["__scopeId","data-v-a682759f"]]),Am={class:"operate-page operate-component"},pm={class:"operate-btn d-flex justify-end"},we=W(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,A)=>{const m=e.resolveComponent("icon-copy"),c=e.resolveComponent("a-tooltip"),r=e.resolveComponent("icon-delete"),u=e.resolveComponent("icon-edit"),f=e.resolveComponent("icon-arrow-up"),p=e.resolveComponent("icon-arrow-down");return e.withDirectives((e.openBlock(),e.createElementBlock("div",Am,[e.createElementVNode("div",pm,[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(m)]),_: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(u)]),_:1})]),e.createElementVNode("div",{class:"btn-item btn-paste d-flex align-center fs-10",onClick:A[0]||(A[0]=h=>s("top"))},[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:A[1]||(A[1]=h=>s("bottom"))},[e.createVNode(c,{content:"向下粘贴",position:"bottom"},{default:e.withCtx(()=>[e.createVNode(p)]),_:1})])])],512)),[[e.vShow,n.show]])}}}),[["__scopeId","data-v-534cce66"]]),fm={class:"article-list-left"},um={class:"article-list-right"},Na=W(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 u;if(l.modelValue&&l.modelValue.data)return;const r={id:((u=l.modelValue)==null?void 0:u.id)||L(),type:"ArticleList",width:"",bgColor:"",data:[{id:L(),type:"Article",title:"耀华国际教育学校浙江桐乡",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",buttonList:[],linkList:[{id:L(),text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},{id:L(),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),A=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},c=r=>{o("handlePaste",r)};return i(),(r,u)=>{var h,x,g;const f=e.resolveComponent("a-col"),p=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"article-list-container",style:e.normalizeStyle({backgroundColor:(h=n.modelValue)==null?void 0:h.bgColor}),onMouseenter:u[2]||(u[2]=V=>s.value=!0),onMouseleave:u[3]||(u[3]=V=>s.value=!1)},[e.createVNode(p,{class:e.normalizeClass(["article-list",[(x=n.modelValue)!=null&&x.width?`container-content-${(g=n.modelValue)==null?void 0:g.width}`:"container-content"]])},{default:e.withCtx(()=>[e.createVNode(f,{sm:{span:24},md:{span:a.value?12:24}},{default:e.withCtx(()=>{var V;return[e.createElementVNode("div",fm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=n.modelValue)==null?void 0:V.data,y=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y.id},[y.type==="Article"?(e.openBlock(),e.createBlock(cc,{key:0,article:y},null,8,["article"])):e.createCommentVNode("",!0),y.type==="Contact"?(e.openBlock(),e.createBlock(hc,{key:1,contact:y},null,8,["contact"])):e.createCommentVNode("",!0)],64))),128))])]}),_:1},8,["md"]),a.value?(e.openBlock(),e.createBlock(f,{key:0,sm:{span:24},md:{span:12}},{default:e.withCtx(()=>{var V;return[e.createElementVNode("div",um,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=n.modelValue)==null?void 0:V.data,y=>(e.openBlock(),e.createBlock(Ec,{key:y.id,type:y.type,data:y,preview:n.modelValue.isPreview},null,8,["type","data","preview"]))),128))])]}),_:1})):e.createCommentVNode("",!0),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{key:1,show:s.value,"onUpdate:show":u[0]||(u[0]=V=>s.value=V),onHandleEdit:u[1]||(u[1]=V=>d.value=!0),onHandleDelete:A,onHandleCopy:m,onHandlePaste:c},null,8,["show"]))]),_:1},8,["class"])],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(mm,{key:0,show:d.value,"onUpdate:show":u[4]||(u[4]=V=>d.value=V),data:n.modelValue},null,8,["show","data"]))],64)}}}),[["__scopeId","data-v-e31d08c6"]]),hm={class:"setting-content"},Vm=["src"],gm={class:"item-uplaod flex items-center"},ym=W(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 A,m;return[e.createElementVNode("div",hm,[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:(m=(A=n.data)==null?void 0:A.data)==null?void 0:m.imgSrc},null,8,Vm),e.createElementVNode("div",gm,[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(_e,{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"])}}}),[["__scopeId","data-v-c2c014ad"]]),bm={class:"banner-image__title is-zh"},_a=W(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)||L(),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)},A=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var u,f,p,h;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("+((f=(u=n.modelValue)==null?void 0:u.data)==null?void 0:f.imgSrc)+")","background-position":"center"})},[e.createElementVNode("div",bm,e.toDisplayString((h=(p=n.modelValue)==null?void 0:p.data)==null?void 0:h.title),1)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{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:A,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ym,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),[["__scopeId","data-v-88156ebc"]]),wm={class:"setting-content"},xm=["src"],km={class:"item-uplaod flex items-center"},Nm=W(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 A,m;return[e.createElementVNode("div",wm,[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:(m=(A=n.data)==null?void 0:A.data)==null?void 0:m.imgSrc},null,8,xm),e.createElementVNode("div",km,[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(_e,{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"])}}}),[["__scopeId","data-v-87125fc3"]]),_m={class:"red"},Cm={class:"banner-page__title"},Em={class:"position-absolute triangle-position"},Tm={class:"position-relative h-100 banner-strips"},Ca=W(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)||L(),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)},A=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var u,f,p,h;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",_m,[e.createElementVNode("p",Cm,e.toDisplayString((f=(u=n.modelValue)==null?void 0:u.data)==null?void 0:f.title),1)]),r[6]||(r[6]=e.createElementVNode("div",{class:"orange"},null,-1)),e.createElementVNode("div",Em,[e.createElementVNode("div",Tm,[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("+((h=(p=n.modelValue)==null?void 0:p.data)==null?void 0:h.imgSrc)+")"}),"data-v-24231ec2":""},null,4)])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{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:A,onHandlePaste:m},null,8,["show"]))],32),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)}}}),[["__scopeId","data-v-2a3cea9b"]]),Sm={class:"setting-content"},Pm={class:"setting-header flex items-center"},Bm={class:"setting-header flex items-center"},Lm={class:"setting-body"},Om={class:"setting-item"},$m={class:"btn-group"},zm={key:0,class:"drag-handle"},Mm={class:"item-action flex items-center"},jm=W(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)},A=c=>{i.data.data.push({id:L(),type:c,text:"查看更多",url:void 0,isExternal:!1})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const u=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-button"),x=e.resolveComponent("a-button-group"),g=e.resolveComponent("icon-drag-arrow"),V=e.resolveComponent("icon-delete"),y=e.resolveComponent("a-input"),b=e.resolveComponent("a-checkbox"),_=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(_,{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",Sm,[e.createElementVNode("div",Pm,[r[13]||(r[13]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(f,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=C=>n.data.width=C),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:""},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(u,{value:"small"},{default:e.withCtx(()=>[...r[10]||(r[10]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(u,{value:"middle"},{default:e.withCtx(()=>[...r[11]||(r[11]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(u,{value:"max"},{default:e.withCtx(()=>[...r[12]||(r[12]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Bm,[r[16]||(r[16]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[1]||(r[1]=C=>n.data.bgColor=C),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:"#ffffff"},{default:e.withCtx(()=>[...r[14]||(r[14]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(u,{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(h,{size:"mini",onClick:r[2]||(r[2]=C=>A(""))},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[r[17]||(r[17]=e.createTextVNode(" 默认按钮 ",-1))]),_:1}),e.createVNode(h,{size:"mini",onClick:r[3]||(r[3]=C=>A("white"))},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[r[18]||(r[18]=e.createTextVNode(" 白色按钮 ",-1))]),_:1}),e.createVNode(h,{size:"mini",onClick:r[4]||(r[4]=C=>A("light"))},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[r[19]||(r[19]=e.createTextVNode(" 亮色按钮 ",-1))]),_:1}),e.createVNode(h,{size:"mini",onClick:r[5]||(r[5]=C=>A("blue"))},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[r[20]||(r[20]=e.createTextVNode(" 蓝色按钮 ",-1))]),_:1})]),_:1}),e.createElementVNode("div",Lm,[e.createElementVNode("div",Om,[r[22]||(r[22]=e.createElementVNode("p",{class:"item-name"},"按钮",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[6]||(r[6]=C=>n.data.data=C),"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]=C=>l.value=!0),onEnd:r[8]||(r[8]=C=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:C})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:C.id},[e.createElementVNode("div",$m,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",zm,[e.createVNode(g,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(V,{class:"btn-delete",onClick:w=>m(C.id)},null,8,["onClick"])]),e.createVNode(h,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.text),1)]),_:2},1024),e.createElementVNode("div",Mm,[e.createVNode(y,{class:"action-text",modelValue:C.text,"onUpdate:modelValue":w=>C.text=w,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{modelValue:C.url,"onUpdate:modelValue":w=>C.url=w,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(b,{"model-value":C.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"])}}}),[["__scopeId","data-v-3f125042"]]),Dm={class:"btn-list__row"},Um=["href"],Rm={class:"btn-primary__text"},Hm=["onClick"],Wm={class:"btn-primary__text"},Ea=W(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",Dm,[(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",Rm,e.toDisplayString(s.text),1),i[0]||(i[0]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,Um)):(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",Wm,e.toDisplayString(s.text),1),i[1]||(i[1]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,Hm))]))),128))]))}}),[["__scopeId","data-v-5e060a34"]]),Pn=W(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)||L(),type:"BtnList",width:"",bgColor:"",data:[{id:L(),type:"",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:L(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:L(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:L(),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)},A=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var u,f,p,h;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"btn-list center",style:e.normalizeStyle({backgroundColor:(u=n.modelValue)==null?void 0:u.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",[(f=n.modelValue)!=null&&f.width?`container-content-${(p=n.modelValue)==null?void 0:p.width}`:"container-content"]])},[e.createVNode(Ea,{list:(h=n.modelValue)==null?void 0:h.data},null,8,["list"])],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{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:A,onHandlePaste:m},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(jm,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),[["__scopeId","data-v-696a9c13"]]),Im={class:"setting-content"},Xm={class:"setting-header flex items-center"},qm={class:"setting-header flex items-center"},Fm={class:"setting-header flex items-center"},Ym={class:"setting-body"},Zm={class:"setting-item"},Gm={class:"btn-group"},Jm={key:0,class:"drag-handle"},Km=["src"],vm={class:"item-uplaod flex items-center"},Qm=W(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)},A=()=>{i.data.data.push({id:L(),title:"标题",subtitle:"副标题",imgSrc:void 0,alt:""})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const u=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("a-input"),h=e.resolveComponent("icon-drag-arrow"),x=e.resolveComponent("icon-delete"),g=e.resolveComponent("icon-plus"),V=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(V,{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",Im,[e.createElementVNode("div",Xm,[r[9]||(r[9]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=y=>n.data.bgColor=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:"#ffffff"},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(u,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",qm,[r[10]||(r[10]=e.createElementVNode("span",{class:"header-title"},"pc列数",-1)),e.createVNode(p,{modelValue:n.data.desktopCol,"onUpdate:modelValue":r[1]||(r[1]=y=>n.data.desktopCol=y),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",Fm,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),e.createVNode(p,{modelValue:n.data.mobileCol,"onUpdate:modelValue":r[2]||(r[2]=y=>n.data.mobileCol=y),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",Ym,[e.createElementVNode("div",Zm,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[3]||(r[3]=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[4]||(r[4]=y=>l.value=!0),onEnd:r[5]||(r[5]=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",Gm,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",Jm,[e.createVNode(h,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:b=>m(y.id)},null,8,["onClick"])]),r[12]||(r[12]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(p,{modelValue:y.title,"onUpdate:modelValue":b=>y.title=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[13]||(r[13]=e.createElementVNode("p",{class:"item-title"},"副标题",-1)),e.createVNode(p,{modelValue:y.subtitle,"onUpdate:modelValue":b=>y.subtitle=b,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:y.imgSrc},null,8,Km),e.createElementVNode("div",vm,[e.createVNode(p,{modelValue:y.imgSrc,"onUpdate:modelValue":b=>y.imgSrc=b,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:y.imgSrc,"onUpdate:modelValue":b=>y.imgSrc=b,name:`GalleryDefault_${y.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(p,{class:"mt-2",modelValue:y.alt,"onUpdate:modelValue":b=>y.alt=b,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]=y=>A())},[e.createVNode(g),r[15]||(r[15]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-0e37a6da"]]),eA={class:"gallery-default"},tA={class:"img-wrapper need-mask"},lA=["src","alt"],oA={class:"img-wrapper__content"},nA={class:"img-wrapper__content__title"},aA={class:"img-wrapper__content__subtitle"},Ta=W(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)||L(),type:"GalleryDefault",bgColor:"",desktopCol:3,mobileCol:2,data:[{id:L(),title:"标题",subtitle:"副标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:""},{id:L(),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)},A=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var u,f,p,h;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:(u=n.modelValue)==null?void 0:u.bgColor})},[e.createElementVNode("div",{class:e.normalizeClass(["default-row row",[`row-cols-${(f=n.modelValue)==null?void 0:f.mobileCol}`,`row-cols-md-${(p=n.modelValue)==null?void 0:p.desktopCol}`]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((h=n.modelValue)==null?void 0:h.data,x=>(e.openBlock(),e.createElementBlock("div",{key:x.id,class:"col"},[e.createElementVNode("div",eA,[e.createElementVNode("div",tA,[e.createElementVNode("img",{src:x.imgSrc,alt:x.alt},null,8,lA),e.createElementVNode("div",oA,[e.createElementVNode("div",nA,e.toDisplayString(x.title),1),e.createElementVNode("h5",aA,e.toDisplayString(x.subtitle),1)])])])]))),128))],2)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{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:A,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Qm,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),[["__scopeId","data-v-38153845"]]),iA={class:"setting-content"},sA={class:"setting-header flex items-center"},rA={class:"setting-header flex items-center"},dA={class:"setting-header flex items-center"},cA={class:"setting-header flex items-center"},mA={class:"setting-body"},AA={class:"setting-item"},pA={class:"btn-group"},fA={key:0,class:"drag-handle"},uA=["src"],hA={class:"item-uplaod flex items-center"},VA=W(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)},A=()=>{i.data.data.push({id:L(),title:"标题",url:"",imgSrc:void 0,alt:""})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const u=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("a-input"),h=e.resolveComponent("icon-drag-arrow"),x=e.resolveComponent("icon-delete"),g=e.resolveComponent("icon-plus"),V=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(V,{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",iA,[e.createElementVNode("div",sA,[r[10]||(r[10]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=y=>n.data.bgColor=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:"#ffffff"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(u,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",rA,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"pc列数",-1)),e.createVNode(p,{modelValue:n.data.desktopCol,"onUpdate:modelValue":r[1]||(r[1]=y=>n.data.desktopCol=y),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",dA,[r[12]||(r[12]=e.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),e.createVNode(p,{modelValue:n.data.mobileCol,"onUpdate:modelValue":r[2]||(r[2]=y=>n.data.mobileCol=y),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",cA,[r[15]||(r[15]=e.createElementVNode("span",{class:"header-title"},"是否居中",-1)),e.createVNode(f,{modelValue:n.data.center,"onUpdate:modelValue":r[3]||(r[3]=y=>n.data.center=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:!0},{default:e.withCtx(()=>[...r[13]||(r[13]=[e.createTextVNode("是",-1)])]),_:1}),e.createVNode(u,{value:!1},{default:e.withCtx(()=>[...r[14]||(r[14]=[e.createTextVNode("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",mA,[e.createElementVNode("div",AA,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[4]||(r[4]=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[5]||(r[5]=y=>l.value=!0),onEnd:r[6]||(r[6]=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",pA,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",fA,[e.createVNode(h,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:b=>m(y.id)},null,8,["onClick"])]),r[16]||(r[16]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(p,{modelValue:y.title,"onUpdate:modelValue":b=>y.title=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[17]||(r[17]=e.createElementVNode("p",{class:"item-title"},"跳转链接",-1)),e.createVNode(p,{modelValue:y.url,"onUpdate:modelValue":b=>y.url=b,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:y.imgSrc},null,8,uA),e.createElementVNode("div",hA,[e.createVNode(p,{modelValue:y.imgSrc,"onUpdate:modelValue":b=>y.imgSrc=b,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:y.imgSrc,"onUpdate:modelValue":b=>y.imgSrc=b,name:`GalleryCaptionRound_${y.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(p,{class:"mt-2",modelValue:y.alt,"onUpdate:modelValue":b=>y.alt=b,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]=y=>A())},[e.createVNode(g),r[19]||(r[19]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-641fc5d7"]]),gA=["href"],yA=["src","alt"],bA=["onClick"],wA=["src","alt"],xA={key:2,class:"gallery-caption__img"},kA=["src","alt"],NA=["href"],_A=["onClick"],CA=["innerHTML"],Sa=W(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 u;if(l.modelValue&&l.modelValue.data)return;const r={id:((u=l.modelValue)==null?void 0:u.id)||L(),type:"GalleryCaptionRound",bgColor:"",desktopCol:3,mobileCol:2,center:!1,data:[{id:L(),title:"标题",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com"},{id:L(),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)},A=()=>{o("handleCopy",l.modelValue)},m=r=>{o("handlePaste",r)},c=r=>{o("handleClick",r)};return a(),(r,u)=>{var f,p,h,x,g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:u[2]||(u[2]=V=>i.value=!0),onMouseleave:u[3]||(u[3]=V=>i.value=!1)},[e.createElementVNode("div",{class:"gallery-container gallery-caption-round 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-${(h=n.modelValue)==null?void 0:h.desktopCol}`,((x=n.modelValue)==null?void 0:x.center)&&"row-center"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((g=n.modelValue)==null?void 0:g.data,V=>(e.openBlock(),e.createElementBlock("div",{key:V.id,class:"col"},[e.createElementVNode("div",{class:e.normalizeClass(["gallery-caption-round gallery-caption",[V.url&&"has-url"]])},[V.url&&V.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:V.url,target:"_blank",class:"gallery-caption__img"},[e.createElementVNode("img",{src:V.imgSrc,alt:V.alt},null,8,yA)],8,gA)):V.url?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y=>c(V.url),class:"gallery-caption__img"},[e.createElementVNode("img",{src:V.imgSrc,alt:V.alt},null,8,wA)],8,bA)):(e.openBlock(),e.createElementBlock("div",xA,[e.createElementVNode("img",{src:V.imgSrc,alt:V.alt},null,8,kA)])),V.url&&V.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:3,href:V.url,target:"_blank",class:"gallery-caption__title tx-subtitle text-blue text-center"},e.toDisplayString(V.title),9,NA)):V.url?(e.openBlock(),e.createElementBlock("button",{key:4,onClick:y=>c(V.url),class:"gallery-caption__title tx-subtitle text-blue text-center"},e.toDisplayString(V.title),9,_A)):(e.openBlock(),e.createElementBlock("div",{key:5,class:"tx-subtitle text-blue text-center",innerHTML:V.title},null,8,CA))],2)]))),128))],2)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we,{key:0,show:i.value,"onUpdate:show":u[0]||(u[0]=V=>i.value=V),onHandleEdit:u[1]||(u[1]=V=>s.value=!0),onHandleDelete:d,onHandleCopy:A,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(VA,{key:0,show:s.value,"onUpdate:show":u[4]||(u[4]=V=>s.value=V),data:n.modelValue},null,8,["show","data"]))],64)}}}),[["__scopeId","data-v-1597f5dc"]]),EA={class:"setting-content"},TA={class:"setting-header flex items-center"},SA={class:"setting-body"},PA={class:"setting-item"},BA={class:"btn-group"},LA={key:0,class:"drag-handle"},OA=["src"],$A={class:"item-uplaod flex items-center"},zA={class:"item-action flex items-center"},MA=W(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)},A=()=>{i.data.data.push({id:L(),title:"标题",text:"内容",date:"",imgSrc:"",alt:"",url:"",btnText:""})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const u=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("icon-drag-arrow"),h=e.resolveComponent("icon-delete"),x=e.resolveComponent("a-input"),g=e.resolveComponent("a-button"),V=e.resolveComponent("icon-plus"),y=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(y,{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(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=b=>n.data.bgColor=b),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(u,{value:"#ffffff"},{default:e.withCtx(()=>[...r[5]||(r[5]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(u,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",SA,[e.createElementVNode("div",PA,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=b=>n.data.data=b),"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]=b=>l.value=!0),onEnd:r[3]||(r[3]=b=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:b})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:b.id},[e.createElementVNode("div",BA,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",LA,[e.createVNode(p,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:_=>m(b.id)},null,8,["onClick"])]),r[8]||(r[8]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(x,{modelValue:b.title,"onUpdate:modelValue":_=>b.title=_,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[9]||(r[9]=e.createElementVNode("p",{class:"item-title"},"文本",-1)),e.createVNode(e.unref(Ie),{modelValue:b.text,"onUpdate:modelValue":_=>b.text=_,name:`GalleryTimeline_editor_${b.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),r[10]||(r[10]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(x,{modelValue:b.date,"onUpdate:modelValue":_=>b.date=_,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:b.imgSrc},null,8,OA),e.createElementVNode("div",$A,[e.createVNode(x,{modelValue:b.imgSrc,"onUpdate:modelValue":_=>b.imgSrc=_,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:b.imgSrc,"onUpdate:modelValue":_=>b.imgSrc=_,name:`GalleryTimeline_${b.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(x,{class:"mt-2",modelValue:b.alt,"onUpdate:modelValue":_=>b.alt=_,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(g,{style:{"margin-top":"10px"},type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.btnText),1)]),_:2},1024),e.createElementVNode("div",zA,[e.createVNode(x,{class:"action-text",modelValue:b.btnText,"onUpdate:modelValue":_=>b.btnText=_,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(x,{modelValue:b.url,"onUpdate:modelValue":_=>b.url=_,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]=b=>A())},[e.createVNode(V),r[12]||(r[12]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-69d5d758"]]);function Bn(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}var jA=typeof global=="object"&&global&&global.Object===Object&&global,DA=typeof self=="object"&&self&&self.Object===Object&&self,Ns=jA||DA||Function("return this")(),Pa=function(){return Ns.Date.now()},UA=/\s/;function RA(n){for(var t=n.length;t--&&UA.test(n.charAt(t)););return t}var HA=/^\s+/;function WA(n){return n&&n.slice(0,RA(n)+1).replace(HA,"")}var Ln=Ns.Symbol,_s=Object.prototype,IA=_s.hasOwnProperty,XA=_s.toString,Ho=Ln?Ln.toStringTag:void 0;function qA(n){var t=IA.call(n,Ho),l=n[Ho];try{n[Ho]=void 0;var o=!0}catch{}var a=XA.call(n);return o&&(t?n[Ho]=l:delete n[Ho]),a}var FA=Object.prototype,YA=FA.toString;function ZA(n){return YA.call(n)}var GA="[object Null]",JA="[object Undefined]",Cs=Ln?Ln.toStringTag:void 0;function KA(n){return n==null?n===void 0?JA:GA:Cs&&Cs in Object(n)?qA(n):ZA(n)}function vA(n){return n!=null&&typeof n=="object"}var QA="[object Symbol]";function ep(n){return typeof n=="symbol"||vA(n)&&KA(n)==QA}var Es=NaN,tp=/^[-+]0x[0-9a-f]+$/i,lp=/^0b[01]+$/i,op=/^0o[0-7]+$/i,np=parseInt;function Ts(n){if(typeof n=="number")return n;if(ep(n))return Es;if(Bn(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=Bn(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=WA(n);var l=lp.test(n);return l||op.test(n)?np(n.slice(2),l?2:8):tp.test(n)?Es:+n}var ap="Expected a function",ip=Math.max,sp=Math.min;function On(n,t,l){var o,a,i,s,d,A,m=0,c=!1,r=!1,u=!0;if(typeof n!="function")throw new TypeError(ap);t=Ts(t)||0,Bn(l)&&(c=!!l.leading,r="maxWait"in l,i=r?ip(Ts(l.maxWait)||0,t):i,u="trailing"in l?!!l.trailing:u);function f(C){var w=o,N=a;return o=a=void 0,m=C,s=n.apply(N,w),s}function p(C){return m=C,d=setTimeout(g,t),c?f(C):s}function h(C){var w=C-A,N=C-m,T=t-w;return r?sp(T,i-N):T}function x(C){var w=C-A,N=C-m;return A===void 0||w>=t||w<0||r&&N>=i}function g(){var C=Pa();if(x(C))return V(C);d=setTimeout(g,h(C))}function V(C){return d=void 0,u&&o?f(C):(o=a=void 0,s)}function y(){d!==void 0&&clearTimeout(d),m=0,o=A=a=d=void 0}function b(){return d===void 0?s:V(Pa())}function _(){var C=Pa(),w=x(C);if(o=arguments,a=this,A=C,w){if(d===void 0)return p(A);if(r)return clearTimeout(d),d=setTimeout(g,t),f(A)}return d===void 0&&(d=setTimeout(g,t)),s}return _.cancel=y,_.flush=b,_}var rp="Expected a function";function dp(n,t,l){var o=!0,a=!0;if(typeof n!="function")throw new TypeError(rp);return Bn(l)&&(o="leading"in l?!!l.leading:o,a="trailing"in l?!!l.trailing:a),On(n,t,{leading:o,maxWait:t,trailing:a})}var uo=function(){return uo=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},uo.apply(this,arguments)};function Ss(n){return!n||!n.ownerDocument||!n.ownerDocument.defaultView?window:n.ownerDocument.defaultView}function Ps(n){return!n||!n.ownerDocument?document:n.ownerDocument}var Bs=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,A){return A.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 Ls(n,t){var l;n&&(l=n.classList).add.apply(l,t.split(" "))}function Os(n,t){n&&t.split(" ").forEach(function(l){n.classList.remove(l)})}function $s(n){return".".concat(n.split(" ").join("."))}var Ba=!!(typeof window<"u"&&window.document&&window.document.createElement),cp=Object.freeze({__proto__:null,addClasses:Ls,canUseDOM:Ba,classNamesToQuery:$s,getElementDocument:Ps,getElementWindow:Ss,getOptions:Bs,removeClasses:Os}),ho=null,zs=null;Ba&&window.addEventListener("resize",function(){zs!==window.devicePixelRatio&&(zs=window.devicePixelRatio,ho=null)});function Ms(){if(ho===null){if(typeof document>"u")return ho=0,ho;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),ho=l}return ho}var Cl=Ss,La=Ps,mp=Bs,El=Ls,Tl=Os,xt=$s,Wo=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,A,m,c,r,u,f,p,h;if(!(!o.draggedAxis||!o.contentWrapperEl)){var x,g=o.axis[o.draggedAxis].track,V=(s=(i=g.rect)===null||i===void 0?void 0:i[o.axis[o.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,y=o.axis[o.draggedAxis].scrollbar,b=(A=(d=o.contentWrapperEl)===null||d===void 0?void 0:d[o.axis[o.draggedAxis].scrollSizeAttr])!==null&&A!==void 0?A:0,_=parseInt((c=(m=o.elStyles)===null||m===void 0?void 0:m[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 C=x-((u=(r=g.rect)===null||r===void 0?void 0:r[o.axis[o.draggedAxis].offsetAttr])!==null&&u!==void 0?u:0)-o.axis[o.draggedAxis].dragOffset;C=o.draggedAxis==="x"&&o.isRtl?((p=(f=g.rect)===null||f===void 0?void 0:f[o.axis[o.draggedAxis].sizeAttr])!==null&&p!==void 0?p:0)-y.size-C:C;var w=C/(V-y.size),N=w*(b-_);o.draggedAxis==="x"&&o.isRtl&&(N=!((h=n.getRtlHelpers())===null||h===void 0)&&h.isScrollingToNegative?-N:N),o.contentWrapperEl[o.axis[o.draggedAxis].scrollOffsetAttr]=N}},this.onEndDrag=function(a){o.isDragging=!1;var i=La(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=uo(uo({},n.defaultOptions),l),this.classNames=uo(uo({},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=dp(this._onMouseMove,64),this.onWindowResize=On(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=On(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=On(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:Ms()}catch{return Ms()}},n.getOffset=function(t){var l=t.getBoundingClientRect(),o=La(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(){Ba&&(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(xt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(xt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(xt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(xt(this.classNames.offset)),this.maskEl=this.el.querySelector(xt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,xt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(xt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(xt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(xt(this.classNames.track)).concat(xt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(xt(this.classNames.track)).concat(xt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(xt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((l=this.axis.y.track.el)===null||l===void 0?void 0:l.querySelector(xt(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 A=this.contentEl.scrollHeight,m=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=o?"auto":"100%",this.placeholderEl.style.width=a?"".concat(l||m,"px"):"auto",this.placeholderEl.style.height="".concat(A,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&m>l,this.axis.y.isOverflowing=A>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,u=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&m>i-u,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&A>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,A=parseInt(this.elStyles[this.axis[t].sizeAttr],10),m=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];m=t==="x"&&this.isRtl&&(!((o=n.getRtlHelpers())===null||o===void 0)&&o.isScrollOriginAtZero)?-m:m,t==="x"&&this.isRtl&&(m=!((a=n.getRtlHelpers())===null||a===void 0)&&a.isScrollingToNegative?m:-m);var c=m/(s-A),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=La(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 A=this.axis[l];if(!(!this.options.clickOnTrack||!A.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var m=Cl(this.el);this.axis[l].scrollbar.rect=A.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,u=parseInt((d=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[l].sizeAttr])!==null&&d!==void 0?d:"0px",10),f=this.contentWrapperEl[this.axis[l].scrollOffsetAttr],p=l==="y"?this.mouseY-r:this.mouseX-r,h=p<0?-1:1,x=h===-1?f-u:f+u,g=40,V=function(){o.contentWrapperEl&&(h===-1?f>x&&(f-=g,o.contentWrapperEl[o.axis[l].scrollOffsetAttr]=f,m.requestAnimationFrame(V)):f<x&&(f+=g,o.contentWrapperEl[o.axis[l].scrollOffsetAttr]=f,m.requestAnimationFrame(V)))};V()}},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=mp,n.helpers=cp,n}(),Xl=function(){return Xl=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},Xl.apply(this,arguments)},Ap={beforeUnmount:"beforeUnmount"},Io;function pp(n){var t,l=n.h,o=n.emit,a=n.slots,i=n.props,s=function(A){return o("scroll",A)},d=Xl(Xl({},Wo.defaultOptions.classNames),i.classNames);return l("div",Xl({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",Xl(Xl({},{onScroll:s,class:d.contentWrapper,tabIndex:i.tabIndex||Wo.defaultOptions.tabIndex,role:"region","aria-label":i.ariaLabel||Wo.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 fp=e.defineComponent((Io={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=Wo.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 Wo(this.$refs.element,n),this.scrollElement=this.$refs.scrollElement,this.contentElement=this.$refs.contentElement}},Io[Ap.beforeUnmount]=function(){var n;(n=this.SimpleBar)===null||n===void 0||n.unMount(),this.SimpleBar=void 0},Io.methods={recalculate:function(){var n;(n=this.SimpleBar)===null||n===void 0||n.recalculate()}},Io.render=function(n){var t=this;return pp({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})},Io));const $n=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(fp),{key:0,"data-simplebar-auto-hide":"false",class:"simple-bar"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}))],2))}});function ul(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function js(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
  *