officialblock 1.6.5 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/official-block.cjs.js +1 -1
- package/dist/official-block.es.js +30 -22
- package/dist/official-block.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(q,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuedraggable"),require("@wangeditor/editor-for-vue"),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-for-vue","@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.WangEditorVue,q.WangEditor,q.SwiperVue,q.SwiperModules,q.axios,q.VueSplide))})(this,function(q,e,ie,Ns,_s,ll,ft,oc,Cs){"use strict";var R_=Object.defineProperty;var H_=(q,e,ie)=>e in q?R_(q,e,{enumerable:!0,configurable:!0,writable:!0,value:ie}):q[e]=ie;var Xl=(q,e,ie)=>H_(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 Sn(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 m=d(l),A=s(o),c=d(l),r=s(o);return`${n}-${m}-${A}-${t}-${c}-${r}`}const nc={class:"button-text"},ac={class:"link-text"},ic=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",nc,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",ac,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},Pn=W(ic,[["__scopeId","data-v-d959a3d5"]]),sc={class:"article-item"},rc={class:"article-item-title"},dc=["innerHTML"],cc={key:0,class:"article-item-button"},mc={key:1,class:"article-item-link"},Ac=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",sc,[e.createElementVNode("h4",rc,e.toDisplayString(n.article.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.article.content},null,8,dc),(s=n.article.buttonList)!=null&&s.length?(e.openBlock(),e.createElementBlock("div",cc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.buttonList,m=>(e.openBlock(),e.createBlock(Pn,{key:m.id,data:m,onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0),(d=n.article.linkList)!=null&&d.length?(e.openBlock(),e.createElementBlock("div",mc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.linkList,m=>(e.openBlock(),e.createBlock(Pn,{key:m.id,data:m,type:"link",onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-2c696c08"]]),pc={class:"contact-item"},fc={class:"contact-item-categories"},uc={class:"contact-item-title"},hc=["innerHTML"],Vc={class:"contact-item-link"},gc=W(e.defineComponent({__name:"contact",props:{contact:{type:Object,default:()=>{}}},setup(n){return(t,l)=>(e.openBlock(),e.createElementBlock("div",pc,[e.createElementVNode("div",fc,[(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",uc,e.toDisplayString(n.contact.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.contact.content},null,8,hc),e.createElementVNode("div",Vc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.contact.linkList,o=>(e.openBlock(),e.createBlock(Pn,{key:o.id,data:o,type:"link"},null,8,["data"]))),128))])]))}}),[["__scopeId","data-v-32cbb692"]]),yc={key:0,class:"image-container"},bc={key:0,class:"image-desc"},wc={key:1,class:"video-container flex-inline flex-center"},xc=["src"],kc={class:"video-thumbnail flex flex-center"},Nc=["src"],_c={key:2,class:"image-list-container"},Cc={key:0,class:"image-preview"},Ec={class:"image-list-wrapper"},Tc=["src","onClick"],Sc=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),m=e.ref(!1),A=e.ref(!1),c=()=>{const g=d.value;g&&(m.value=g.scrollLeft>0,A.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"),w=e.resolveComponent("icon-caret-right");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.type==="Image"?(e.openBlock(),e.createElementBlock("div",yc,[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",bc,e.toDisplayString(n.data.caption),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.type==="Video"?(e.openBlock(),e.createElementBlock("div",wc,[e.createElementVNode("video",{class:"video",ref_key:"videoElement",ref:l,src:n.data.videoSrc,controls:""},null,8,xc),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",kc,[e.createElementVNode("img",{src:n.data.imgSrc},null,8,Nc)]),e.createElementVNode("div",{class:"play-button flex flex-center",onClick:a},[e.createVNode(w,{style:{color:"#fff"}})])],64))])):e.createCommentVNode("",!0),n.type==="ImageList"?(e.openBlock(),e.createElementBlock("div",_c,[i.value?(e.openBlock(),e.createElementBlock("div",Cc,[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",Ec,[e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:r}," ‹ ",512),[[e.vShow,m.value]]),e.createElementVNode("div",{class:"image-list",ref_key:"imageListRef",ref:d,onScroll:f},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data.imageList,C=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:C.id},[C.src?(e.openBlock(),e.createElementBlock("img",{key:0,class:"image",src:C.src,onClick:_=>s(C.src)},null,8,Tc)):e.createCommentVNode("",!0)],64))),128))],544),e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__next",onClick:u}," › ",512),[[e.vShow,A.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],([m,A])=>{!m||!A||A!==l.name||o("update:modelValue",m)},{immediate:!1}),(m,A)=>{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"]]),Pc={class:"rich-text-editor"},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=l,i=e.shallowRef(),s=e.ref(""),d=e.computed(()=>typeof o.height=="number"?`${o.height}px`:o.height),m=e.inject("handleUpload",()=>{}),A=e.inject("fileUrl",null),c=e.inject("chooseName",null),r=e.ref(""),u=()=>{if(!m){console.warn("Upload: handleUpload function not provided by ancestor");return}m(!0,o.name+r.value)};e.watch(()=>[A==null?void 0:A.value,c==null?void 0:c.value],([_,b])=>{var k,T;!_||!b||b!==o.name+r.value||(r.value==="img"?(k=i.value)==null||k.dangerouslyInsertHtml('<img src="https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg" alt="图片" style="max-width: 100%;">'):(T=i.value)==null||T.dangerouslyInsertHtml('<video src="https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg" controls style="max-width: 100%;"></video>'))},{immediate:!1});class f{constructor(){Xl(this,"title");Xl(this,"tag");Xl(this,"iconSvg");this.title="上传图片",this.tag="button",this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>'}isActive(b){return!1}getValue(b){return""}isDisabled(b){return!1}exec(b,k){e.nextTick(()=>{console.log("点击了自定义上传图片菜单"),r.value="img",u()})}}class p{constructor(){Xl(this,"title");Xl(this,"tag");Xl(this,"iconSvg");this.title="上传视频",this.tag="button",this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>'}getValue(b){return""}isActive(b){return!1}isDisabled(b){return!1}exec(b,k){e.nextTick(()=>{r.value="video",u()})}}const h={toolbarKeys:["headerSelect","bold","italic","through","underline","color","fontSize","lineHeight","delIndent","indent","divider","insertTable","justifyCenter","justifyJustify","justifyLeft","justifyRight","undo","redo","clearStyle","codeBlock"]},x={placeholder:o.placeholder,readOnly:o.disabled,maxLength:o.maxLength,MENU_CONF:{}};x.MENU_CONF={};const g=_=>{i.value=_;const b={key:"CustomImageMenu",factory(){return new f}},k={key:"CustomVideoMenu",factory(){return new p}};_s.Boot.registerMenu(b),_s.Boot.registerMenu(k),h.insertKeys={index:0,keys:["CustomImageMenu","CustomVideoMenu"]},a("created",_)};e.onBeforeUnmount(()=>{const _=i.value;_!=null&&_.destroy()}),e.watch(()=>o.modelValue,_=>{_!==s.value&&(s.value=_||"")},{immediate:!0});const V=_=>{a("update:modelValue",s.value),a("change",_)},y=()=>{i.value=void 0},w=_=>{a("focus",_)},C=_=>{a("blur",_)};return t({editor:i,getHtml:()=>s.value,getText:()=>{var _;return((_=i.value)==null?void 0:_.getText())||""},isEmpty:()=>{var _;return((_=i.value)==null?void 0:_.isEmpty())||!0},clear:()=>{var _;return(_=i.value)==null?void 0:_.clear()},focus:()=>{var _;return(_=i.value)==null?void 0:_.focus()},blur:()=>{var _;return(_=i.value)==null?void 0:_.blur()},disable:()=>{var _;return(_=i.value)==null?void 0:_.disable()},enable:()=>{var _;return(_=i.value)==null?void 0:_.enable()}}),(_,b)=>(e.openBlock(),e.createElementBlock("div",Pc,[e.createVNode(e.unref(Ns.Toolbar),{class:"editor-toolbar",editor:i.value,defaultConfig:h,mode:n.mode},null,8,["editor","mode"]),e.createVNode(e.unref(Ns.Editor),{class:"editor-content",style:e.normalizeStyle({height:d.value}),modelValue:s.value,"onUpdate:modelValue":b[0]||(b[0]=k=>s.value=k),defaultConfig:x,mode:n.mode,onOnCreated:g,onOnChange:V,onOnDestroyed:y,onOnFocus:w,onOnBlur:C},null,8,["style","modelValue","mode"])]))}}),[["__scopeId","data-v-06fb3774"]]),Bc={class:"setting-content"},Lc={class:"setting-header flex items-center"},Oc={class:"setting-header flex items-center"},$c={class:"setting-body"},Mc={class:"setting-item"},zc={class:"item-name"},jc={class:"btn-group"},Dc={class:"drag-handle"},Uc={class:"btn-group"},Rc={key:0,class:"drag-handle"},Hc={class:"item-action flex items-center"},Wc=["onClick"],Ic={class:"btn-group"},Xc={key:0,class:"drag-handle"},qc={class:"item-action flex items-center"},Fc=["onClick"],Yc={class:"btn-group"},Zc={key:0,class:"drag-handle"},Gc={class:"item-action flex items-center"},Jc=["onClick"],Kc={class:"btn-group"},vc={key:0,class:"drag-handle"},Qc={class:"item-action flex items-center"},em=["onClick"],tm=["src"],lm={class:"item-uplaod flex items-center"},om={class:"item-img-list"},nm={class:"btn-group"},am={key:0,class:"drag-handle"},im={key:0,class:"item-img-box"},sm=["src"],rm={class:"item-right flex-1"},dm=["onClick"],cm=["src"],mm={class:"item-uplaod flex items-center"},Am=["src"],pm={class:"item-uplaod flex items-center"},fm=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"})),m=_=>_&&_.length>1,A=n,c=t,r=()=>{c("update:show",!1)},u=_=>{const b=A.data;_==="Article"?b.data.push({id:L(),type:"Article",title:"",content:"",buttonList:[],linkList:[]}):_==="Contact"?b.data.push({id:L(),type:"Contact",title:"",content:"",categories:[],linkList:[]}):_==="Image"?b.data.push({id:L(),type:"Image",imgSrc:"",caption:"",alt:"",isRound:!1}):_==="ImageList"?b.data.push({id:L(),type:"ImageList",imageList:[]}):_==="Video"&&b.data.push({id:L(),type:"Video",videoSrc:"",imgSrc:""})},f=_=>{A.data.data=A.data.data.filter(b=>b.id!==_)},p=_=>{_.push({id:L(),text:"查看更多",url:void 0,isExternal:!1})},h=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},x=_=>{_.push({id:L(),text:"查看更多",url:void 0,isExternal:!1})},g=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},V=_=>{_.push({id:L(),text:"分类"})},y=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},w=_=>{_.push({id:L(),src:""})},C=(_,b)=>{_.splice(_.findIndex(k=>k===b),1)};return(_,b)=>{const k=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"),M=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",Bc,[e.createElementVNode("div",Lc,[b[24]||(b[24]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(T,{modelValue:n.data.width,"onUpdate:modelValue":b[0]||(b[0]=z=>n.data.width=z),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(k,{value:"default"},{default:e.withCtx(()=>[...b[20]||(b[20]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(k,{value:"small"},{default:e.withCtx(()=>[...b[21]||(b[21]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(k,{value:"middle"},{default:e.withCtx(()=>[...b[22]||(b[22]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(k,{value:"max"},{default:e.withCtx(()=>[...b[23]||(b[23]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Oc,[b[27]||(b[27]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(T,{modelValue:n.data.bgColor,"onUpdate:modelValue":b[1]||(b[1]=z=>n.data.bgColor=z),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(k,{value:"#ffffff"},{default:e.withCtx(()=>[...b[25]||(b[25]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(k,{value:"#F7F7FA"},{default:e.withCtx(()=>[...b[26]||(b[26]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createVNode(P,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(S,{size:"mini",onClick:b[2]||(b[2]=z=>u("Article"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[b[28]||(b[28]=e.createTextVNode(" Article ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:b[3]||(b[3]=z=>u("Contact"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[b[29]||(b[29]=e.createTextVNode(" Contact ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:b[4]||(b[4]=z=>u("Image"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[b[30]||(b[30]=e.createTextVNode(" Image ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:b[5]||(b[5]=z=>u("ImageList"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[b[31]||(b[31]=e.createTextVNode(" ImageList ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:b[6]||(b[6]=z=>u("Video"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[b[32]||(b[32]=e.createTextVNode(" Video ",-1))]),_:1})]),_:1}),e.createElementVNode("div",$c,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":b[17]||(b[17]=z=>n.data.data=z),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{onStart:b[18]||(b[18]=z=>l.value=!0),onEnd:b[19]||(b[19]=z=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:z})=>[e.createElementVNode("div",Mc,[e.createElementVNode("p",zc,e.toDisplayString(z.type),1),e.createElementVNode("div",jc,[e.createElementVNode("div",Dc,[e.createVNode(O,{class:"drag-icon"})]),e.createVNode($,{class:"btn-delete",onClick:N=>f(z.id)},null,8,["onClick"])]),z.type==="Article"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[b[37]||(b[37]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(M,{modelValue:z.title,"onUpdate:modelValue":N=>z.title=N,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b[38]||(b[38]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(Ie),{modelValue:z.content,"onUpdate:modelValue":N=>z.content=N,name:`ArticleList_editor_${z.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),b[39]||(b[39]=e.createElementVNode("p",{class:"item-title"},"按钮",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:z.buttonList,"onUpdate:modelValue":N=>z.buttonList=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!m(z.buttonList),onStart:b[7]||(b[7]=N=>l.value=!0),onEnd:b[8]||(b[8]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(z.buttonList)}]),key:N.id},[e.createElementVNode("div",Uc,[m(z.buttonList)?(e.openBlock(),e.createElementBlock("div",Rc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>h(z.buttonList,N.id)},null,8,["onClick"])]),e.createVNode(S,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.text),1)]),_:2},1024),e.createElementVNode("div",Hc,[e.createVNode(M,{class:"action-text",modelValue:N.text,"onUpdate:modelValue":U=>N.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(M,{modelValue:N.url,"onUpdate:modelValue":U=>N.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":N.isExternal},{default:e.withCtx(()=>[...b[33]||(b[33]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:N=>p(z.buttonList)},[e.createVNode(E),b[34]||(b[34]=e.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,Wc),b[40]||(b[40]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:z.linkList,"onUpdate:modelValue":N=>z.linkList=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!m(z.linkList),onStart:b[9]||(b[9]=N=>l.value=!0),onEnd:b[10]||(b[10]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(z.linkList)}]),key:N.id},[e.createElementVNode("div",Ic,[m(z.linkList)?(e.openBlock(),e.createElementBlock("div",Xc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>g(z.linkList,N.id)},null,8,["onClick"])]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.text),1)]),_:2},1024),e.createElementVNode("div",qc,[e.createVNode(M,{class:"action-text",modelValue:N.text,"onUpdate:modelValue":U=>N.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(M,{modelValue:N.url,"onUpdate:modelValue":U=>N.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":N.isExternal},{default:e.withCtx(()=>[...b[35]||(b[35]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:N=>x(z.linkList)},[e.createVNode(E),b[36]||(b[36]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,Fc)],64)):e.createCommentVNode("",!0),z.type==="Contact"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b[44]||(b[44]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(M,{modelValue:z.title,"onUpdate:modelValue":N=>z.title=N,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b[45]||(b[45]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(Ie),{modelValue:z.content,"onUpdate:modelValue":N=>z.content=N,name:`ArticleList_editor_${z.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),b[46]||(b[46]=e.createElementVNode("p",{class:"item-title"},"分类",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:z.categories,"onUpdate:modelValue":N=>z.categories=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},s.value,{disabled:!m(z.categories),onStart:b[11]||(b[11]=N=>l.value=!0),onEnd:b[12]||(b[12]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(z.categories)}]),key:N.id},[e.createElementVNode("div",Yc,[m(z.categories)?(e.openBlock(),e.createElementBlock("div",Zc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>y(z.categories,N.id)},null,8,["onClick"])]),e.createVNode($,{class:"btn-delete",onClick:U=>y(z.categories,N.id)},null,8,["onClick"]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.text),1)]),_:2},1024),e.createElementVNode("div",Gc,[e.createVNode(M,{modelValue:N.text,"onUpdate:modelValue":U=>N.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:N=>V(z.categories)},[e.createVNode(E),b[41]||(b[41]=e.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,Jc),b[47]||(b[47]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:z.linkList,"onUpdate:modelValue":N=>z.linkList=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!m(z.linkList),onStart:b[13]||(b[13]=N=>l.value=!0),onEnd:b[14]||(b[14]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(z.linkList)}]),key:N.id},[e.createElementVNode("div",Kc,[m(z.linkList)?(e.openBlock(),e.createElementBlock("div",vc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>g(z.linkList,N.id)},null,8,["onClick"])]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.text),1)]),_:2},1024),e.createElementVNode("div",Qc,[e.createVNode(M,{class:"action-text",modelValue:N.text,"onUpdate:modelValue":U=>N.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(M,{modelValue:N.url,"onUpdate:modelValue":U=>N.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":N.isExternal},{default:e.withCtx(()=>[...b[42]||(b[42]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:N=>x(z.linkList)},[e.createVNode(E),b[43]||(b[43]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,em)],64)):e.createCommentVNode("",!0),z.type==="Image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("img",{class:"item-img",src:z.imgSrc},null,8,tm),e.createElementVNode("div",lm,[e.createVNode(M,{modelValue:z.imgSrc,"onUpdate:modelValue":N=>z.imgSrc=N,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:z.imgSrc,"onUpdate:modelValue":N=>z.imgSrc=N,name:`ArticleList_${z.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(M,{class:"mt-2",modelValue:z.caption,"onUpdate:modelValue":N=>z.caption=N,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(M,{class:"mt-2",modelValue:z.alt,"onUpdate:modelValue":N=>z.alt=N,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(j,{class:"pt-2","model-value":z.isRound},{default:e.withCtx(()=>[...b[48]||(b[48]=[e.createTextVNode("圆角",-1)])]),_:1},8,["model-value"])],64)):e.createCommentVNode("",!0),z.type==="ImageList"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[b[50]||(b[50]=e.createElementVNode("p",{class:"item-title"},"图片组",-1)),e.createElementVNode("div",om,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:z.imageList,"onUpdate:modelValue":N=>z.imageList=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},d.value,{disabled:!m(z.imageList),onStart:b[15]||(b[15]=N=>l.value=!0),onEnd:b[16]||(b[16]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["img-list-item flex draggable-item",{"sortable-disabled":!m(z.imageList)}]),key:N.id},[e.createElementVNode("div",nm,[m(z.imageList)?(e.openBlock(),e.createElementBlock("div",am,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>C(z.imageList,N.id)},null,8,["onClick"])]),N.src?(e.openBlock(),e.createElementBlock("div",im,[e.createElementVNode("img",{class:"item-img small-img",src:N.src},null,8,sm)])):e.createCommentVNode("",!0),e.createElementVNode("div",rm,[e.createVNode(M,{style:{"margin-bottom":"12px"},modelValue:N.src,"onUpdate:modelValue":U=>N.src=U,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:N.src,"onUpdate:modelValue":U=>N.src=U,name:`ArticleList_${N.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:N=>w(z.imageList)},[e.createVNode(E),b[49]||(b[49]=e.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,dm)],64)):e.createCommentVNode("",!0),z.type==="Video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[b[51]||(b[51]=e.createElementVNode("p",{class:"item-title"},"视频",-1)),e.createElementVNode("video",{class:"item-img",src:z.videoSrc,controls:""},null,8,cm),e.createElementVNode("div",mm,[e.createVNode(M,{modelValue:z.videoSrc,"onUpdate:modelValue":N=>z.videoSrc=N,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:z.videoSrc,"onUpdate:modelValue":N=>z.videoSrc=N,name:`ArticleList_${z.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createElementVNode("img",{class:"item-img",src:z.imgSrc},null,8,Am),e.createElementVNode("div",pm,[e.createVNode(M,{modelValue:z.imgSrc,"onUpdate:modelValue":N=>z.imgSrc=N,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:z.imgSrc,"onUpdate:modelValue":N=>z.imgSrc=N,name:`ArticleList_${z.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"]]),um={class:"operate-page operate-component"},hm={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,m)=>{const A=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",um,[e.createElementVNode("div",hm,[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(A)]),_: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:m[0]||(m[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:m[1]||(m[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"]]),Vm={class:"article-list-left"},gm={class:"article-list-right"},_a=W(e.defineComponent({name:"ArticleList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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),m=()=>{o("handleDelete",l.modelValue.id)},A=()=>{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",Vm,[(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(Ac,{key:0,article:y},null,8,["article"])):e.createCommentVNode("",!0),y.type==="Contact"?(e.openBlock(),e.createBlock(gc,{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",gm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=n.modelValue)==null?void 0:V.data,y=>(e.openBlock(),e.createBlock(Sc,{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:m,onHandleCopy:A,onHandlePaste:c},null,8,["show"]))]),_:1},8,["class"])],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(fm,{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-16ee0edf"]]),ym={class:"setting-content"},bm=["src"],wm={class:"item-uplaod flex items-center"},xm=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 m,A;return[e.createElementVNode("div",ym,[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:(A=(m=n.data)==null?void 0:m.data)==null?void 0:A.imgSrc},null,8,bm),e.createElementVNode("div",wm,[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"]]),km={class:"banner-image__title is-zh"},Ca=W(e.defineComponent({name:"BannerImage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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)},m=()=>{o("handleCopy",l.modelValue)},A=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",km,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:m,onHandlePaste:A},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(xm,{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-a23e85c2"]]),Nm={class:"setting-content"},_m=["src"],Cm={class:"item-uplaod flex items-center"},Em=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 m,A;return[e.createElementVNode("div",Nm,[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:(A=(m=n.data)==null?void 0:m.data)==null?void 0:A.imgSrc},null,8,_m),e.createElementVNode("div",Cm,[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"]]),Tm={class:"red"},Sm={class:"banner-page__title"},Pm={class:"position-absolute triangle-position"},Bm={class:"position-relative h-100 banner-strips"},Ea=W(e.defineComponent({name:"BannerPage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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)},m=()=>{o("handleCopy",l.modelValue)},A=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",Tm,[e.createElementVNode("p",Sm,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",Pm,[e.createElementVNode("div",Bm,[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:m,onHandlePaste:A},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Em,{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-38a9fbb5"]]),Lm={class:"setting-content"},Om={class:"setting-header flex items-center"},$m={class:"setting-header flex items-center"},Mm={class:"setting-body"},zm={class:"setting-item"},jm={class:"btn-group"},Dm={key:0,class:"drag-handle"},Um={class:"item-action flex items-center"},Rm=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)},m=c=>{i.data.data.push({id:L(),type:c,text:"查看更多",url:void 0,isExternal:!1})},A=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"),w=e.resolveComponent("a-checkbox"),C=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(C,{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",Lm,[e.createElementVNode("div",Om,[r[13]||(r[13]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(f,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=_=>n.data.width=_),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",$m,[r[16]||(r[16]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[1]||(r[1]=_=>n.data.bgColor=_),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]=_=>m(""))},{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]=_=>m("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]=_=>m("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]=_=>m("blue"))},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[r[20]||(r[20]=e.createTextVNode(" 蓝色按钮 ",-1))]),_:1})]),_:1}),e.createElementVNode("div",Mm,[e.createElementVNode("div",zm,[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]=_=>n.data.data=_),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[7]||(r[7]=_=>l.value=!0),onEnd:r[8]||(r[8]=_=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:_})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:_.id},[e.createElementVNode("div",jm,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",Dm,[e.createVNode(g,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(V,{class:"btn-delete",onClick:b=>A(_.id)},null,8,["onClick"])]),e.createVNode(h,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.text),1)]),_:2},1024),e.createElementVNode("div",Um,[e.createVNode(y,{class:"action-text",modelValue:_.text,"onUpdate:modelValue":b=>_.text=b,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{modelValue:_.url,"onUpdate:modelValue":b=>_.url=b,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(w,{"model-value":_.isExternal},{default:e.withCtx(()=>[...r[21]||(r[21]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-3f125042"]]),Hm={class:"btn-list__row"},Wm=["href"],Im={class:"btn-primary__text"},Xm=["onClick"],qm={class:"btn-primary__text"},Ta=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",Hm,[(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",Im,e.toDisplayString(s.text),1),i[0]||(i[0]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,Wm)):(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",qm,e.toDisplayString(s.text),1),i[1]||(i[1]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,Xm))]))),128))]))}}),[["__scopeId","data-v-5e060a34"]]),Bn=W(e.defineComponent({name:"BtnList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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)},m=()=>{o("handleCopy",l.modelValue)},A=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(Ta,{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:m,onHandlePaste:A},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Rm,{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-0232f437"]]),Fm={class:"setting-content"},Ym={class:"setting-header flex items-center"},Zm={class:"setting-header flex items-center"},Gm={class:"setting-header flex items-center"},Jm={class:"setting-body"},Km={class:"setting-item"},vm={class:"btn-group"},Qm={key:0,class:"drag-handle"},eA=["src"],tA={class:"item-uplaod flex items-center"},lA=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)},m=()=>{i.data.data.push({id:L(),title:"标题",subtitle:"副标题",imgSrc:void 0,alt:""})},A=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",Fm,[e.createElementVNode("div",Ym,[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",Zm,[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",Gm,[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",Jm,[e.createElementVNode("div",Km,[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",vm,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",Qm,[e.createVNode(h,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:w=>A(y.id)},null,8,["onClick"])]),r[12]||(r[12]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(p,{modelValue:y.title,"onUpdate:modelValue":w=>y.title=w,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":w=>y.subtitle=w,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,eA),e.createElementVNode("div",tA,[e.createVNode(p,{modelValue:y.imgSrc,"onUpdate:modelValue":w=>y.imgSrc=w,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:y.imgSrc,"onUpdate:modelValue":w=>y.imgSrc=w,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":w=>y.alt=w,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=>m())},[e.createVNode(g),r[15]||(r[15]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-0e37a6da"]]),oA={class:"gallery-default"},nA={class:"img-wrapper need-mask"},aA=["src","alt"],iA={class:"img-wrapper__content"},sA={class:"img-wrapper__content__title"},rA={class:"img-wrapper__content__subtitle"},Sa=W(e.defineComponent({name:"GalleryDefault",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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)},m=()=>{o("handleCopy",l.modelValue)},A=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",oA,[e.createElementVNode("div",nA,[e.createElementVNode("img",{src:x.imgSrc,alt:x.alt},null,8,aA),e.createElementVNode("div",iA,[e.createElementVNode("div",sA,e.toDisplayString(x.title),1),e.createElementVNode("h5",rA,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:m,onHandlePaste:A},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(lA,{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-6df31a81"]]),dA={class:"setting-content"},cA={class:"setting-header flex items-center"},mA={class:"setting-header flex items-center"},AA={class:"setting-header flex items-center"},pA={class:"setting-header flex items-center"},fA={class:"setting-body"},uA={class:"setting-item"},hA={class:"btn-group"},VA={key:0,class:"drag-handle"},gA=["src"],yA={class:"item-uplaod flex items-center"},bA=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)},m=()=>{i.data.data.push({id:L(),title:"标题",url:"",imgSrc:void 0,alt:""})},A=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",dA,[e.createElementVNode("div",cA,[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",mA,[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",AA,[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",pA,[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",fA,[e.createElementVNode("div",uA,[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",hA,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",VA,[e.createVNode(h,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:w=>A(y.id)},null,8,["onClick"])]),r[16]||(r[16]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(p,{modelValue:y.title,"onUpdate:modelValue":w=>y.title=w,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":w=>y.url=w,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,gA),e.createElementVNode("div",yA,[e.createVNode(p,{modelValue:y.imgSrc,"onUpdate:modelValue":w=>y.imgSrc=w,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:y.imgSrc,"onUpdate:modelValue":w=>y.imgSrc=w,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":w=>y.alt=w,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=>m())},[e.createVNode(g),r[19]||(r[19]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-641fc5d7"]]),wA=["href"],xA=["src","alt"],kA=["onClick"],NA=["src","alt"],_A={key:2,class:"gallery-caption__img"},CA=["src","alt"],EA=["href"],TA=["onClick"],SA=["innerHTML"],Pa=W(e.defineComponent({name:"GalleryCaptionRound",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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)},m=()=>{o("handleCopy",l.modelValue)},A=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,xA)],8,wA)):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,NA)],8,kA)):(e.openBlock(),e.createElementBlock("div",_A,[e.createElementVNode("img",{src:V.imgSrc,alt:V.alt},null,8,CA)])),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,EA)):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,TA)):(e.openBlock(),e.createElementBlock("div",{key:5,class:"tx-subtitle text-blue text-center",innerHTML:V.title},null,8,SA))],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:m,onHandlePaste:A},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(bA,{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-d4f2d329"]]),PA={class:"setting-content"},BA={class:"setting-header flex items-center"},LA={class:"setting-body"},OA={class:"setting-item"},$A={class:"btn-group"},MA={key:0,class:"drag-handle"},zA=["src"],jA={class:"item-uplaod flex items-center"},DA={class:"item-action flex items-center"},UA=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)},m=()=>{i.data.data.push({id:L(),title:"标题",text:"内容",date:"",imgSrc:"",alt:"",url:"",btnText:""})},A=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",PA,[e.createElementVNode("div",BA,[r[7]||(r[7]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=w=>n.data.bgColor=w),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",LA,[e.createElementVNode("div",OA,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=w=>n.data.data=w),"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]=w=>l.value=!0),onEnd:r[3]||(r[3]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:w.id},[e.createElementVNode("div",$A,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",MA,[e.createVNode(p,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:C=>A(w.id)},null,8,["onClick"])]),r[8]||(r[8]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(x,{modelValue:w.title,"onUpdate:modelValue":C=>w.title=C,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:w.text,"onUpdate:modelValue":C=>w.text=C,name:`GalleryTimeline_editor_${w.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),r[10]||(r[10]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(x,{modelValue:w.date,"onUpdate:modelValue":C=>w.date=C,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:w.imgSrc},null,8,zA),e.createElementVNode("div",jA,[e.createVNode(x,{modelValue:w.imgSrc,"onUpdate:modelValue":C=>w.imgSrc=C,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:w.imgSrc,"onUpdate:modelValue":C=>w.imgSrc=C,name:`GalleryTimeline_${w.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(x,{class:"mt-2",modelValue:w.alt,"onUpdate:modelValue":C=>w.alt=C,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(w.btnText),1)]),_:2},1024),e.createElementVNode("div",DA,[e.createVNode(x,{class:"action-text",modelValue:w.btnText,"onUpdate:modelValue":C=>w.btnText=C,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(x,{modelValue:w.url,"onUpdate:modelValue":C=>w.url=C,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]=w=>m())},[e.createVNode(V),r[12]||(r[12]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-69d5d758"]]);function Ln(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}var RA=typeof global=="object"&&global&&global.Object===Object&&global,HA=typeof self=="object"&&self&&self.Object===Object&&self,Es=RA||HA||Function("return this")(),Ba=function(){return Es.Date.now()},WA=/\s/;function IA(n){for(var t=n.length;t--&&WA.test(n.charAt(t)););return t}var XA=/^\s+/;function qA(n){return n&&n.slice(0,IA(n)+1).replace(XA,"")}var On=Es.Symbol,Ts=Object.prototype,FA=Ts.hasOwnProperty,YA=Ts.toString,Wo=On?On.toStringTag:void 0;function ZA(n){var t=FA.call(n,Wo),l=n[Wo];try{n[Wo]=void 0;var o=!0}catch{}var a=YA.call(n);return o&&(t?n[Wo]=l:delete n[Wo]),a}var GA=Object.prototype,JA=GA.toString;function KA(n){return JA.call(n)}var vA="[object Null]",QA="[object Undefined]",Ss=On?On.toStringTag:void 0;function ep(n){return n==null?n===void 0?QA:vA:Ss&&Ss in Object(n)?ZA(n):KA(n)}function tp(n){return n!=null&&typeof n=="object"}var lp="[object Symbol]";function op(n){return typeof n=="symbol"||tp(n)&&ep(n)==lp}var Ps=NaN,np=/^[-+]0x[0-9a-f]+$/i,ap=/^0b[01]+$/i,ip=/^0o[0-7]+$/i,sp=parseInt;function Bs(n){if(typeof n=="number")return n;if(op(n))return Ps;if(Ln(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=Ln(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=qA(n);var l=ap.test(n);return l||ip.test(n)?sp(n.slice(2),l?2:8):np.test(n)?Ps:+n}var rp="Expected a function",dp=Math.max,cp=Math.min;function $n(n,t,l){var o,a,i,s,d,m,A=0,c=!1,r=!1,u=!0;if(typeof n!="function")throw new TypeError(rp);t=Bs(t)||0,Ln(l)&&(c=!!l.leading,r="maxWait"in l,i=r?dp(Bs(l.maxWait)||0,t):i,u="trailing"in l?!!l.trailing:u);function f(_){var b=o,k=a;return o=a=void 0,A=_,s=n.apply(k,b),s}function p(_){return A=_,d=setTimeout(g,t),c?f(_):s}function h(_){var b=_-m,k=_-A,T=t-b;return r?cp(T,i-k):T}function x(_){var b=_-m,k=_-A;return m===void 0||b>=t||b<0||r&&k>=i}function g(){var _=Ba();if(x(_))return V(_);d=setTimeout(g,h(_))}function V(_){return d=void 0,u&&o?f(_):(o=a=void 0,s)}function y(){d!==void 0&&clearTimeout(d),A=0,o=m=a=d=void 0}function w(){return d===void 0?s:V(Ba())}function C(){var _=Ba(),b=x(_);if(o=arguments,a=this,m=_,b){if(d===void 0)return p(m);if(r)return clearTimeout(d),d=setTimeout(g,t),f(m)}return d===void 0&&(d=setTimeout(g,t)),s}return C.cancel=y,C.flush=w,C}var mp="Expected a function";function Ap(n,t,l){var o=!0,a=!0;if(typeof n!="function")throw new TypeError(mp);return Ln(l)&&(o="leading"in l?!!l.leading:o,a="trailing"in l?!!l.trailing:a),$n(n,t,{leading:o,maxWait:t,trailing:a})}var ho=function(){return ho=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},ho.apply(this,arguments)};function Ls(n){return!n||!n.ownerDocument||!n.ownerDocument.defaultView?window:n.ownerDocument.defaultView}function Os(n){return!n||!n.ownerDocument?document:n.ownerDocument}var $s=function(n){var t={},l=Array.prototype.reduce.call(n,function(o,a){var i=a.name.match(/data-simplebar-(.+)/);if(i){var s=i[1].replace(/\W+(.)/g,function(d,m){return m.toUpperCase()});switch(a.value){case"true":o[s]=!0;break;case"false":o[s]=!1;break;case void 0:o[s]=!0;break;default:o[s]=a.value}}return o},t);return l};function Ms(n,t){var l;n&&(l=n.classList).add.apply(l,t.split(" "))}function zs(n,t){n&&t.split(" ").forEach(function(l){n.classList.remove(l)})}function js(n){return".".concat(n.split(" ").join("."))}var La=!!(typeof window<"u"&&window.document&&window.document.createElement),pp=Object.freeze({__proto__:null,addClasses:Ms,canUseDOM:La,classNamesToQuery:js,getElementDocument:Os,getElementWindow:Ls,getOptions:$s,removeClasses:zs}),Vo=null,Ds=null;La&&window.addEventListener("resize",function(){Ds!==window.devicePixelRatio&&(Ds=window.devicePixelRatio,Vo=null)});function Us(){if(Vo===null){if(typeof document>"u")return Vo=0,Vo;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),Vo=l}return Vo}var Cl=Ls,Oa=Os,fp=$s,El=Ms,Tl=zs,xt=js,Io=function(){function n(t,l){l===void 0&&(l={});var o=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var a=Cl(o.el);o.scrollXTicking||(a.requestAnimationFrame(o.scrollX),o.scrollXTicking=!0),o.scrollYTicking||(a.requestAnimationFrame(o.scrollY),o.scrollYTicking=!0),o.isScrolling||(o.isScrolling=!0,El(o.el,o.classNames.scrolling)),o.showScrollbar("x"),o.showScrollbar("y"),o.onStopScrolling()},this.scrollX=function(){o.axis.x.isOverflowing&&o.positionScrollbar("x"),o.scrollXTicking=!1},this.scrollY=function(){o.axis.y.isOverflowing&&o.positionScrollbar("y"),o.scrollYTicking=!1},this._onStopScrolling=function(){Tl(o.el,o.classNames.scrolling),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isScrolling=!1},this.onMouseEnter=function(){o.isMouseEntering||(El(o.el,o.classNames.mouseEntered),o.showScrollbar("x"),o.showScrollbar("y"),o.isMouseEntering=!0),o.onMouseEntered()},this._onMouseEntered=function(){Tl(o.el,o.classNames.mouseEntered),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isMouseEntering=!1},this._onMouseMove=function(a){o.mouseX=a.clientX,o.mouseY=a.clientY,(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseMoveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseMoveForAxis("y")},this.onMouseLeave=function(){o.onMouseMove.cancel(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseLeaveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseLeaveForAxis("y"),o.mouseX=-1,o.mouseY=-1},this._onWindowResize=function(){o.scrollbarWidth=o.getScrollbarWidth(),o.hideNativeScrollbar()},this.onPointerEvent=function(a){if(!(!o.axis.x.track.el||!o.axis.y.track.el||!o.axis.x.scrollbar.el||!o.axis.y.scrollbar.el)){var i,s;o.axis.x.track.rect=o.axis.x.track.el.getBoundingClientRect(),o.axis.y.track.rect=o.axis.y.track.el.getBoundingClientRect(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&(i=o.isWithinBounds(o.axis.x.track.rect)),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&(s=o.isWithinBounds(o.axis.y.track.rect)),(i||s)&&(a.stopPropagation(),a.type==="pointerdown"&&a.pointerType!=="touch"&&(i&&(o.axis.x.scrollbar.rect=o.axis.x.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.x.scrollbar.rect)?o.onDragStart(a,"x"):o.onTrackClick(a,"x")),s&&(o.axis.y.scrollbar.rect=o.axis.y.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.y.scrollbar.rect)?o.onDragStart(a,"y"):o.onTrackClick(a,"y"))))}},this.drag=function(a){var i,s,d,m,A,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,w=(m=(d=o.contentWrapperEl)===null||d===void 0?void 0:d[o.axis[o.draggedAxis].scrollSizeAttr])!==null&&m!==void 0?m:0,C=parseInt((c=(A=o.elStyles)===null||A===void 0?void 0:A[o.axis[o.draggedAxis].sizeAttr])!==null&&c!==void 0?c:"0px",10);a.preventDefault(),a.stopPropagation(),o.draggedAxis==="y"?x=a.pageY:x=a.pageX;var _=x-((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;_=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-_:_;var b=_/(V-y.size),k=b*(w-C);o.draggedAxis==="x"&&o.isRtl&&(k=!((h=n.getRtlHelpers())===null||h===void 0)&&h.isScrollingToNegative?-k:k),o.contentWrapperEl[o.axis[o.draggedAxis].scrollOffsetAttr]=k}},this.onEndDrag=function(a){o.isDragging=!1;var i=Oa(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=ho(ho({},n.defaultOptions),l),this.classNames=ho(ho({},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=Ap(this._onMouseMove,64),this.onWindowResize=$n(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=$n(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=$n(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:Us()}catch{return Us()}},n.getOffset=function(t){var l=t.getBoundingClientRect(),o=Oa(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(){La&&(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 m=this.contentEl.scrollHeight,A=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=o?"auto":"100%",this.placeholderEl.style.width=a?"".concat(l||A,"px"):"auto",this.placeholderEl.style.height="".concat(m,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&A>l,this.axis.y.isOverflowing=m>c,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var r=this.axis.x.isOverflowing?this.scrollbarWidth:0,u=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&A>i-u,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&m>c-r,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},n.prototype.getScrollbarSize=function(t){var l,o;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var a=this.contentEl[this.axis[t].scrollSizeAttr],i=(o=(l=this.axis[t].track.el)===null||l===void 0?void 0:l[this.axis[t].offsetSizeAttr])!==null&&o!==void 0?o:0,s=i/a,d;return d=Math.max(~~(s*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},n.prototype.positionScrollbar=function(t){var l,o,a;t===void 0&&(t="y");var i=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!i.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],d=((l=this.axis[t].track.el)===null||l===void 0?void 0:l[this.axis[t].offsetSizeAttr])||0,m=parseInt(this.elStyles[this.axis[t].sizeAttr],10),A=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];A=t==="x"&&this.isRtl&&(!((o=n.getRtlHelpers())===null||o===void 0)&&o.isScrollOriginAtZero)?-A:A,t==="x"&&this.isRtl&&(A=!((a=n.getRtlHelpers())===null||a===void 0)&&a.isScrollingToNegative?A:-A);var c=A/(s-m),r=~~((d-i.size)*c);r=t==="x"&&this.isRtl?-r+(d-i.size):r,i.el.style.transform=t==="x"?"translate3d(".concat(r,"px, 0, 0)"):"translate3d(0, ".concat(r,"px, 0)")}},n.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var l=this.axis[t].track.el,o=this.axis[t].scrollbar.el;!l||!o||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(l.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(l.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?o.style.display="block":o.style.display="none")},n.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(El(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},n.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Tl(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},n.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},n.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var l=this.axis[t];!l.track.el||!l.scrollbar.el||(l.track.rect=l.track.el.getBoundingClientRect(),l.scrollbar.rect=l.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(l.track.rect)?(this.showScrollbar(t),El(l.track.el,this.classNames.hover),this.isWithinBounds(l.scrollbar.rect)?El(l.scrollbar.el,this.classNames.hover):Tl(l.scrollbar.el,this.classNames.hover)):(Tl(l.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},n.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Tl(this.axis[t].track.el,this.classNames.hover),Tl(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},n.prototype.onDragStart=function(t,l){var o;l===void 0&&(l="y"),this.isDragging=!0;var a=Oa(this.el),i=Cl(this.el),s=this.axis[l].scrollbar,d=l==="y"?t.pageY:t.pageX;this.axis[l].dragOffset=d-(((o=s.rect)===null||o===void 0?void 0:o[this.axis[l].offsetAttr])||0),this.draggedAxis=l,El(this.el,this.classNames.dragging),a.addEventListener("mousemove",this.drag,!0),a.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(a.addEventListener("click",this.preventClick,!0),a.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.prototype.onTrackClick=function(t,l){var o=this,a,i,s,d;l===void 0&&(l="y");var m=this.axis[l];if(!(!this.options.clickOnTrack||!m.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var A=Cl(this.el);this.axis[l].scrollbar.rect=m.scrollbar.el.getBoundingClientRect();var c=this.axis[l].scrollbar,r=(i=(a=c.rect)===null||a===void 0?void 0:a[this.axis[l].offsetAttr])!==null&&i!==void 0?i:0,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,A.requestAnimationFrame(V)):f<x&&(f+=g,o.contentWrapperEl[o.axis[l].scrollOffsetAttr]=f,A.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=fp,n.helpers=pp,n}(),ql=function(){return ql=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},ql.apply(this,arguments)},up={beforeUnmount:"beforeUnmount"},Xo;function hp(n){var t,l=n.h,o=n.emit,a=n.slots,i=n.props,s=function(m){return o("scroll",m)},d=ql(ql({},Io.defaultOptions.classNames),i.classNames);return l("div",ql({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",ql(ql({},{onScroll:s,class:d.contentWrapper,tabIndex:i.tabIndex||Io.defaultOptions.tabIndex,role:"region","aria-label":i.ariaLabel||Io.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 Vp=e.defineComponent((Xo={name:"simplebar-vue",props:{autoHide:{type:Boolean,default:void 0},classNames:Object,forceVisible:{type:[Boolean,String],validator:function(n){return typeof n=="boolean"||n==="x"||n==="y"},default:void 0},ariaLabel:String,tabIndex:Number,direction:{type:String,validator:function(n){return n==="ltr"||n==="rtl"}},timeout:Number,clickOnTrack:{type:Boolean,default:void 0},scrollbarMinSize:Number,scrollbarMaxSize:Number},emits:["scroll"],data:function(){return{}},mounted:function(){for(var n=Io.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 Io(this.$refs.element,n),this.scrollElement=this.$refs.scrollElement,this.contentElement=this.$refs.contentElement}},Xo[up.beforeUnmount]=function(){var n;(n=this.SimpleBar)===null||n===void 0||n.unMount(),this.SimpleBar=void 0},Xo.methods={recalculate:function(){var n;(n=this.SimpleBar)===null||n===void 0||n.recalculate()}},Xo.render=function(n){var t=this;return hp({h:typeof n=="function"?n:e.h,emit:function(){for(var l=[],o=0;o<arguments.length;o++)l[o]=arguments[o];return t.$emit.apply(t,l)},slots:this.$slots,props:this.$props})},Xo));const Mn=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(Vp),{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 Rs(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("@wangeditor/editor-for-vue"),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-for-vue","@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.WangEditorVue,q.WangEditor,q.SwiperVue,q.SwiperModules,q.axios,q.VueSplide))})(this,function(q,e,ie,Ns,_s,ll,ft,oc,Cs){"use strict";var R_=Object.defineProperty;var H_=(q,e,ie)=>e in q?R_(q,e,{enumerable:!0,configurable:!0,writable:!0,value:ie}):q[e]=ie;var Xl=(q,e,ie)=>H_(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 Sn(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 m=d(l),A=s(o),c=d(l),r=s(o);return`${n}-${m}-${A}-${t}-${c}-${r}`}const nc={class:"button-text"},ac={class:"link-text"},ic=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",nc,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",ac,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},Pn=W(ic,[["__scopeId","data-v-d959a3d5"]]),sc={class:"article-item"},rc={class:"article-item-title"},dc=["innerHTML"],cc={key:0,class:"article-item-button"},mc={key:1,class:"article-item-link"},Ac=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",sc,[e.createElementVNode("h4",rc,e.toDisplayString(n.article.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.article.content},null,8,dc),(s=n.article.buttonList)!=null&&s.length?(e.openBlock(),e.createElementBlock("div",cc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.buttonList,m=>(e.openBlock(),e.createBlock(Pn,{key:m.id,data:m,onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0),(d=n.article.linkList)!=null&&d.length?(e.openBlock(),e.createElementBlock("div",mc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.article.linkList,m=>(e.openBlock(),e.createBlock(Pn,{key:m.id,data:m,type:"link",onHandleClick:o},null,8,["data"]))),128))])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-2c696c08"]]),pc={class:"contact-item"},fc={class:"contact-item-categories"},uc={class:"contact-item-title"},hc=["innerHTML"],Vc={class:"contact-item-link"},gc=W(e.defineComponent({__name:"contact",props:{contact:{type:Object,default:()=>{}}},setup(n){return(t,l)=>(e.openBlock(),e.createElementBlock("div",pc,[e.createElementVNode("div",fc,[(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",uc,e.toDisplayString(n.contact.title),1),e.createElementVNode("div",{class:"editor-content",innerHTML:n.contact.content},null,8,hc),e.createElementVNode("div",Vc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.contact.linkList,o=>(e.openBlock(),e.createBlock(Pn,{key:o.id,data:o,type:"link"},null,8,["data"]))),128))])]))}}),[["__scopeId","data-v-32cbb692"]]),yc={key:0,class:"image-container"},bc={key:0,class:"image-desc"},wc={key:1,class:"video-container flex-inline flex-center"},xc=["src"],kc={class:"video-thumbnail flex flex-center"},Nc=["src"],_c={key:2,class:"image-list-container"},Cc={key:0,class:"image-preview"},Ec={class:"image-list-wrapper"},Tc=["src","onClick"],Sc=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),m=e.ref(!1),A=e.ref(!1),c=()=>{const g=d.value;g&&(m.value=g.scrollLeft>0,A.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"),w=e.resolveComponent("icon-caret-right");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.type==="Image"?(e.openBlock(),e.createElementBlock("div",yc,[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",bc,e.toDisplayString(n.data.caption),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.type==="Video"?(e.openBlock(),e.createElementBlock("div",wc,[e.createElementVNode("video",{class:"video",ref_key:"videoElement",ref:l,src:n.data.videoSrc,controls:""},null,8,xc),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",kc,[e.createElementVNode("img",{src:n.data.imgSrc},null,8,Nc)]),e.createElementVNode("div",{class:"play-button flex flex-center",onClick:a},[e.createVNode(w,{style:{color:"#fff"}})])],64))])):e.createCommentVNode("",!0),n.type==="ImageList"?(e.openBlock(),e.createElementBlock("div",_c,[i.value?(e.openBlock(),e.createElementBlock("div",Cc,[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",Ec,[e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:r}," ‹ ",512),[[e.vShow,m.value]]),e.createElementVNode("div",{class:"image-list",ref_key:"imageListRef",ref:d,onScroll:f},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data.imageList,C=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:C.id},[C.src?(e.openBlock(),e.createElementBlock("img",{key:0,class:"image",src:C.src,onClick:_=>s(C.src)},null,8,Tc)):e.createCommentVNode("",!0)],64))),128))],544),e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__next",onClick:u}," › ",512),[[e.vShow,A.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],([m,A])=>{!m||!A||A!==l.name||o("update:modelValue",m)},{immediate:!1}),(m,A)=>{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"]]),Pc={class:"rich-text-editor"},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=l,i=e.shallowRef(),s=e.ref(""),d=e.computed(()=>typeof o.height=="number"?`${o.height}px`:o.height),m=e.inject("handleUpload",()=>{}),A=e.inject("fileUrl",null),c=e.inject("chooseName",null),r=e.ref(""),u=()=>{if(!m){console.warn("Upload: handleUpload function not provided by ancestor");return}m(!0,o.name+r.value)};e.watch(()=>[A==null?void 0:A.value,c==null?void 0:c.value],([_,b])=>{var k,T;!_||!b||b!==o.name+r.value||(r.value==="img"?(k=i.value)==null||k.dangerouslyInsertHtml('<img src="https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg" alt="图片" style="max-width: 100%;">'):(T=i.value)==null||T.dangerouslyInsertHtml('<video src="https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg" controls style="max-width: 100%;"></video>'))},{immediate:!1});class f{constructor(){Xl(this,"title");Xl(this,"tag");Xl(this,"iconSvg");this.title="上传图片",this.tag="button",this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>'}isActive(b){return!1}getValue(b){return""}isDisabled(b){return!1}exec(b,k){e.nextTick(()=>{console.log("点击了自定义上传图片菜单"),r.value="img",u()})}}class p{constructor(){Xl(this,"title");Xl(this,"tag");Xl(this,"iconSvg");this.title="上传视频",this.tag="button",this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>'}getValue(b){return""}isActive(b){return!1}isDisabled(b){return!1}exec(b,k){e.nextTick(()=>{r.value="video",u()})}}const h={toolbarKeys:["headerSelect","bold","italic","through","underline","color","fontSize","lineHeight","delIndent","indent","divider","insertTable","justifyCenter","justifyJustify","justifyLeft","justifyRight","undo","redo","clearStyle","codeBlock"]},x={placeholder:o.placeholder,readOnly:o.disabled,maxLength:o.maxLength,MENU_CONF:{}};x.MENU_CONF={};const g=_=>{i.value=_;const b={key:"CustomImageMenu",factory(){return new f}},k={key:"CustomVideoMenu",factory(){return new p}};_s.Boot.registerMenu(b),_s.Boot.registerMenu(k),h.insertKeys={index:0,keys:["CustomImageMenu","CustomVideoMenu"]},a("created",_)};e.onBeforeUnmount(()=>{const _=i.value;_!=null&&_.destroy()}),e.watch(()=>o.modelValue,_=>{_!==s.value&&(s.value=_||"")},{immediate:!0});const V=_=>{a("update:modelValue",s.value),a("change",_)},y=()=>{i.value=void 0},w=_=>{a("focus",_)},C=_=>{a("blur",_)};return t({editor:i,getHtml:()=>s.value,getText:()=>{var _;return((_=i.value)==null?void 0:_.getText())||""},isEmpty:()=>{var _;return((_=i.value)==null?void 0:_.isEmpty())||!0},clear:()=>{var _;return(_=i.value)==null?void 0:_.clear()},focus:()=>{var _;return(_=i.value)==null?void 0:_.focus()},blur:()=>{var _;return(_=i.value)==null?void 0:_.blur()},disable:()=>{var _;return(_=i.value)==null?void 0:_.disable()},enable:()=>{var _;return(_=i.value)==null?void 0:_.enable()}}),(_,b)=>{const k=e.resolveComponent("client-only");return e.openBlock(),e.createBlock(k,null,{default:e.withCtx(()=>[e.createElementVNode("div",Pc,[e.createVNode(e.unref(Ns.Toolbar),{class:"editor-toolbar",editor:i.value,defaultConfig:h,mode:n.mode},null,8,["editor","mode"]),e.createVNode(e.unref(Ns.Editor),{class:"editor-content",style:e.normalizeStyle({height:d.value}),modelValue:s.value,"onUpdate:modelValue":b[0]||(b[0]=T=>s.value=T),defaultConfig:x,mode:n.mode,onOnCreated:g,onOnChange:V,onOnDestroyed:y,onOnFocus:w,onOnBlur:C},null,8,["style","modelValue","mode"])])]),_:1})}}}),[["__scopeId","data-v-5810ba54"]]),Bc={class:"setting-content"},Lc={class:"setting-header flex items-center"},Oc={class:"setting-header flex items-center"},$c={class:"setting-body"},Mc={class:"setting-item"},zc={class:"item-name"},jc={class:"btn-group"},Dc={class:"drag-handle"},Uc={class:"btn-group"},Rc={key:0,class:"drag-handle"},Hc={class:"item-action flex items-center"},Wc=["onClick"],Ic={class:"btn-group"},Xc={key:0,class:"drag-handle"},qc={class:"item-action flex items-center"},Fc=["onClick"],Yc={class:"btn-group"},Zc={key:0,class:"drag-handle"},Gc={class:"item-action flex items-center"},Jc=["onClick"],Kc={class:"btn-group"},vc={key:0,class:"drag-handle"},Qc={class:"item-action flex items-center"},em=["onClick"],tm=["src"],lm={class:"item-uplaod flex items-center"},om={class:"item-img-list"},nm={class:"btn-group"},am={key:0,class:"drag-handle"},im={key:0,class:"item-img-box"},sm=["src"],rm={class:"item-right flex-1"},dm=["onClick"],cm=["src"],mm={class:"item-uplaod flex items-center"},Am=["src"],pm={class:"item-uplaod flex items-center"},fm=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"})),m=_=>_&&_.length>1,A=n,c=t,r=()=>{c("update:show",!1)},u=_=>{const b=A.data;_==="Article"?b.data.push({id:L(),type:"Article",title:"",content:"",buttonList:[],linkList:[]}):_==="Contact"?b.data.push({id:L(),type:"Contact",title:"",content:"",categories:[],linkList:[]}):_==="Image"?b.data.push({id:L(),type:"Image",imgSrc:"",caption:"",alt:"",isRound:!1}):_==="ImageList"?b.data.push({id:L(),type:"ImageList",imageList:[]}):_==="Video"&&b.data.push({id:L(),type:"Video",videoSrc:"",imgSrc:""})},f=_=>{A.data.data=A.data.data.filter(b=>b.id!==_)},p=_=>{_.push({id:L(),text:"查看更多",url:void 0,isExternal:!1})},h=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},x=_=>{_.push({id:L(),text:"查看更多",url:void 0,isExternal:!1})},g=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},V=_=>{_.push({id:L(),text:"分类"})},y=(_,b)=>{_.splice(_.findIndex(k=>k.id===b),1)},w=_=>{_.push({id:L(),src:""})},C=(_,b)=>{_.splice(_.findIndex(k=>k===b),1)};return(_,b)=>{const k=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"),M=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",Bc,[e.createElementVNode("div",Lc,[b[24]||(b[24]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(T,{modelValue:n.data.width,"onUpdate:modelValue":b[0]||(b[0]=z=>n.data.width=z),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(k,{value:"default"},{default:e.withCtx(()=>[...b[20]||(b[20]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(k,{value:"small"},{default:e.withCtx(()=>[...b[21]||(b[21]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(k,{value:"middle"},{default:e.withCtx(()=>[...b[22]||(b[22]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(k,{value:"max"},{default:e.withCtx(()=>[...b[23]||(b[23]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Oc,[b[27]||(b[27]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(T,{modelValue:n.data.bgColor,"onUpdate:modelValue":b[1]||(b[1]=z=>n.data.bgColor=z),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(k,{value:"#ffffff"},{default:e.withCtx(()=>[...b[25]||(b[25]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(k,{value:"#F7F7FA"},{default:e.withCtx(()=>[...b[26]||(b[26]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createVNode(P,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(S,{size:"mini",onClick:b[2]||(b[2]=z=>u("Article"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[b[28]||(b[28]=e.createTextVNode(" Article ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:b[3]||(b[3]=z=>u("Contact"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[b[29]||(b[29]=e.createTextVNode(" Contact ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:b[4]||(b[4]=z=>u("Image"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[b[30]||(b[30]=e.createTextVNode(" Image ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:b[5]||(b[5]=z=>u("ImageList"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[b[31]||(b[31]=e.createTextVNode(" ImageList ",-1))]),_:1}),e.createVNode(S,{size:"mini",onClick:b[6]||(b[6]=z=>u("Video"))},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[b[32]||(b[32]=e.createTextVNode(" Video ",-1))]),_:1})]),_:1}),e.createElementVNode("div",$c,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":b[17]||(b[17]=z=>n.data.data=z),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{onStart:b[18]||(b[18]=z=>l.value=!0),onEnd:b[19]||(b[19]=z=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:z})=>[e.createElementVNode("div",Mc,[e.createElementVNode("p",zc,e.toDisplayString(z.type),1),e.createElementVNode("div",jc,[e.createElementVNode("div",Dc,[e.createVNode(O,{class:"drag-icon"})]),e.createVNode($,{class:"btn-delete",onClick:N=>f(z.id)},null,8,["onClick"])]),z.type==="Article"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[b[37]||(b[37]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(M,{modelValue:z.title,"onUpdate:modelValue":N=>z.title=N,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b[38]||(b[38]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(Ie),{modelValue:z.content,"onUpdate:modelValue":N=>z.content=N,name:`ArticleList_editor_${z.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),b[39]||(b[39]=e.createElementVNode("p",{class:"item-title"},"按钮",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:z.buttonList,"onUpdate:modelValue":N=>z.buttonList=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!m(z.buttonList),onStart:b[7]||(b[7]=N=>l.value=!0),onEnd:b[8]||(b[8]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(z.buttonList)}]),key:N.id},[e.createElementVNode("div",Uc,[m(z.buttonList)?(e.openBlock(),e.createElementBlock("div",Rc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>h(z.buttonList,N.id)},null,8,["onClick"])]),e.createVNode(S,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.text),1)]),_:2},1024),e.createElementVNode("div",Hc,[e.createVNode(M,{class:"action-text",modelValue:N.text,"onUpdate:modelValue":U=>N.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(M,{modelValue:N.url,"onUpdate:modelValue":U=>N.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":N.isExternal},{default:e.withCtx(()=>[...b[33]||(b[33]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:N=>p(z.buttonList)},[e.createVNode(E),b[34]||(b[34]=e.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,Wc),b[40]||(b[40]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:z.linkList,"onUpdate:modelValue":N=>z.linkList=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!m(z.linkList),onStart:b[9]||(b[9]=N=>l.value=!0),onEnd:b[10]||(b[10]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(z.linkList)}]),key:N.id},[e.createElementVNode("div",Ic,[m(z.linkList)?(e.openBlock(),e.createElementBlock("div",Xc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>g(z.linkList,N.id)},null,8,["onClick"])]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.text),1)]),_:2},1024),e.createElementVNode("div",qc,[e.createVNode(M,{class:"action-text",modelValue:N.text,"onUpdate:modelValue":U=>N.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(M,{modelValue:N.url,"onUpdate:modelValue":U=>N.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":N.isExternal},{default:e.withCtx(()=>[...b[35]||(b[35]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:N=>x(z.linkList)},[e.createVNode(E),b[36]||(b[36]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,Fc)],64)):e.createCommentVNode("",!0),z.type==="Contact"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b[44]||(b[44]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(M,{modelValue:z.title,"onUpdate:modelValue":N=>z.title=N,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b[45]||(b[45]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(Ie),{modelValue:z.content,"onUpdate:modelValue":N=>z.content=N,name:`ArticleList_editor_${z.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),b[46]||(b[46]=e.createElementVNode("p",{class:"item-title"},"分类",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:z.categories,"onUpdate:modelValue":N=>z.categories=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},s.value,{disabled:!m(z.categories),onStart:b[11]||(b[11]=N=>l.value=!0),onEnd:b[12]||(b[12]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(z.categories)}]),key:N.id},[e.createElementVNode("div",Yc,[m(z.categories)?(e.openBlock(),e.createElementBlock("div",Zc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>y(z.categories,N.id)},null,8,["onClick"])]),e.createVNode($,{class:"btn-delete",onClick:U=>y(z.categories,N.id)},null,8,["onClick"]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.text),1)]),_:2},1024),e.createElementVNode("div",Gc,[e.createVNode(M,{modelValue:N.text,"onUpdate:modelValue":U=>N.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:N=>V(z.categories)},[e.createVNode(E),b[41]||(b[41]=e.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,Jc),b[47]||(b[47]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(ie),e.mergeProps({modelValue:z.linkList,"onUpdate:modelValue":N=>z.linkList=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!m(z.linkList),onStart:b[13]||(b[13]=N=>l.value=!0),onEnd:b[14]||(b[14]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!m(z.linkList)}]),key:N.id},[e.createElementVNode("div",Kc,[m(z.linkList)?(e.openBlock(),e.createElementBlock("div",vc,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>g(z.linkList,N.id)},null,8,["onClick"])]),e.createVNode(D,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.text),1)]),_:2},1024),e.createElementVNode("div",Qc,[e.createVNode(M,{class:"action-text",modelValue:N.text,"onUpdate:modelValue":U=>N.text=U,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(M,{modelValue:N.url,"onUpdate:modelValue":U=>N.url=U,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(j,{"model-value":N.isExternal},{default:e.withCtx(()=>[...b[42]||(b[42]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:N=>x(z.linkList)},[e.createVNode(E),b[43]||(b[43]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,em)],64)):e.createCommentVNode("",!0),z.type==="Image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("img",{class:"item-img",src:z.imgSrc},null,8,tm),e.createElementVNode("div",lm,[e.createVNode(M,{modelValue:z.imgSrc,"onUpdate:modelValue":N=>z.imgSrc=N,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:z.imgSrc,"onUpdate:modelValue":N=>z.imgSrc=N,name:`ArticleList_${z.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(M,{class:"mt-2",modelValue:z.caption,"onUpdate:modelValue":N=>z.caption=N,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(M,{class:"mt-2",modelValue:z.alt,"onUpdate:modelValue":N=>z.alt=N,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(j,{class:"pt-2","model-value":z.isRound},{default:e.withCtx(()=>[...b[48]||(b[48]=[e.createTextVNode("圆角",-1)])]),_:1},8,["model-value"])],64)):e.createCommentVNode("",!0),z.type==="ImageList"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[b[50]||(b[50]=e.createElementVNode("p",{class:"item-title"},"图片组",-1)),e.createElementVNode("div",om,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:z.imageList,"onUpdate:modelValue":N=>z.imageList=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},d.value,{disabled:!m(z.imageList),onStart:b[15]||(b[15]=N=>l.value=!0),onEnd:b[16]||(b[16]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["img-list-item flex draggable-item",{"sortable-disabled":!m(z.imageList)}]),key:N.id},[e.createElementVNode("div",nm,[m(z.imageList)?(e.openBlock(),e.createElementBlock("div",am,[e.createVNode(O,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode($,{class:"btn-delete",onClick:U=>C(z.imageList,N.id)},null,8,["onClick"])]),N.src?(e.openBlock(),e.createElementBlock("div",im,[e.createElementVNode("img",{class:"item-img small-img",src:N.src},null,8,sm)])):e.createCommentVNode("",!0),e.createElementVNode("div",rm,[e.createVNode(M,{style:{"margin-bottom":"12px"},modelValue:N.src,"onUpdate:modelValue":U=>N.src=U,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:N.src,"onUpdate:modelValue":U=>N.src=U,name:`ArticleList_${N.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:N=>w(z.imageList)},[e.createVNode(E),b[49]||(b[49]=e.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,dm)],64)):e.createCommentVNode("",!0),z.type==="Video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[b[51]||(b[51]=e.createElementVNode("p",{class:"item-title"},"视频",-1)),e.createElementVNode("video",{class:"item-img",src:z.videoSrc,controls:""},null,8,cm),e.createElementVNode("div",mm,[e.createVNode(M,{modelValue:z.videoSrc,"onUpdate:modelValue":N=>z.videoSrc=N,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:z.videoSrc,"onUpdate:modelValue":N=>z.videoSrc=N,name:`ArticleList_${z.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createElementVNode("img",{class:"item-img",src:z.imgSrc},null,8,Am),e.createElementVNode("div",pm,[e.createVNode(M,{modelValue:z.imgSrc,"onUpdate:modelValue":N=>z.imgSrc=N,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:z.imgSrc,"onUpdate:modelValue":N=>z.imgSrc=N,name:`ArticleList_${z.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"]]),um={class:"operate-page operate-component"},hm={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,m)=>{const A=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",um,[e.createElementVNode("div",hm,[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(A)]),_: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:m[0]||(m[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:m[1]||(m[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"]]),Vm={class:"article-list-left"},gm={class:"article-list-right"},_a=W(e.defineComponent({name:"ArticleList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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),m=()=>{o("handleDelete",l.modelValue.id)},A=()=>{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",Vm,[(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(Ac,{key:0,article:y},null,8,["article"])):e.createCommentVNode("",!0),y.type==="Contact"?(e.openBlock(),e.createBlock(gc,{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",gm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=n.modelValue)==null?void 0:V.data,y=>(e.openBlock(),e.createBlock(Sc,{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:m,onHandleCopy:A,onHandlePaste:c},null,8,["show"]))]),_:1},8,["class"])],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(fm,{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-16ee0edf"]]),ym={class:"setting-content"},bm=["src"],wm={class:"item-uplaod flex items-center"},xm=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 m,A;return[e.createElementVNode("div",ym,[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:(A=(m=n.data)==null?void 0:m.data)==null?void 0:A.imgSrc},null,8,bm),e.createElementVNode("div",wm,[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"]]),km={class:"banner-image__title is-zh"},Ca=W(e.defineComponent({name:"BannerImage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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)},m=()=>{o("handleCopy",l.modelValue)},A=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",km,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:m,onHandlePaste:A},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(xm,{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-a23e85c2"]]),Nm={class:"setting-content"},_m=["src"],Cm={class:"item-uplaod flex items-center"},Em=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 m,A;return[e.createElementVNode("div",Nm,[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:(A=(m=n.data)==null?void 0:m.data)==null?void 0:A.imgSrc},null,8,_m),e.createElementVNode("div",Cm,[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"]]),Tm={class:"red"},Sm={class:"banner-page__title"},Pm={class:"position-absolute triangle-position"},Bm={class:"position-relative h-100 banner-strips"},Ea=W(e.defineComponent({name:"BannerPage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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)},m=()=>{o("handleCopy",l.modelValue)},A=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",Tm,[e.createElementVNode("p",Sm,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",Pm,[e.createElementVNode("div",Bm,[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:m,onHandlePaste:A},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Em,{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-38a9fbb5"]]),Lm={class:"setting-content"},Om={class:"setting-header flex items-center"},$m={class:"setting-header flex items-center"},Mm={class:"setting-body"},zm={class:"setting-item"},jm={class:"btn-group"},Dm={key:0,class:"drag-handle"},Um={class:"item-action flex items-center"},Rm=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)},m=c=>{i.data.data.push({id:L(),type:c,text:"查看更多",url:void 0,isExternal:!1})},A=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"),w=e.resolveComponent("a-checkbox"),C=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(C,{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",Lm,[e.createElementVNode("div",Om,[r[13]||(r[13]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(f,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=_=>n.data.width=_),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",$m,[r[16]||(r[16]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[1]||(r[1]=_=>n.data.bgColor=_),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]=_=>m(""))},{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]=_=>m("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]=_=>m("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]=_=>m("blue"))},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[r[20]||(r[20]=e.createTextVNode(" 蓝色按钮 ",-1))]),_:1})]),_:1}),e.createElementVNode("div",Mm,[e.createElementVNode("div",zm,[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]=_=>n.data.data=_),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[7]||(r[7]=_=>l.value=!0),onEnd:r[8]||(r[8]=_=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:_})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:_.id},[e.createElementVNode("div",jm,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",Dm,[e.createVNode(g,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(V,{class:"btn-delete",onClick:b=>A(_.id)},null,8,["onClick"])]),e.createVNode(h,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.text),1)]),_:2},1024),e.createElementVNode("div",Um,[e.createVNode(y,{class:"action-text",modelValue:_.text,"onUpdate:modelValue":b=>_.text=b,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{modelValue:_.url,"onUpdate:modelValue":b=>_.url=b,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(w,{"model-value":_.isExternal},{default:e.withCtx(()=>[...r[21]||(r[21]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-3f125042"]]),Hm={class:"btn-list__row"},Wm=["href"],Im={class:"btn-primary__text"},Xm=["onClick"],qm={class:"btn-primary__text"},Ta=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",Hm,[(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",Im,e.toDisplayString(s.text),1),i[0]||(i[0]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,Wm)):(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",qm,e.toDisplayString(s.text),1),i[1]||(i[1]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,Xm))]))),128))]))}}),[["__scopeId","data-v-5e060a34"]]),Bn=W(e.defineComponent({name:"BtnList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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)},m=()=>{o("handleCopy",l.modelValue)},A=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(Ta,{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:m,onHandlePaste:A},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Rm,{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-0232f437"]]),Fm={class:"setting-content"},Ym={class:"setting-header flex items-center"},Zm={class:"setting-header flex items-center"},Gm={class:"setting-header flex items-center"},Jm={class:"setting-body"},Km={class:"setting-item"},vm={class:"btn-group"},Qm={key:0,class:"drag-handle"},eA=["src"],tA={class:"item-uplaod flex items-center"},lA=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)},m=()=>{i.data.data.push({id:L(),title:"标题",subtitle:"副标题",imgSrc:void 0,alt:""})},A=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",Fm,[e.createElementVNode("div",Ym,[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",Zm,[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",Gm,[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",Jm,[e.createElementVNode("div",Km,[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",vm,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",Qm,[e.createVNode(h,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:w=>A(y.id)},null,8,["onClick"])]),r[12]||(r[12]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(p,{modelValue:y.title,"onUpdate:modelValue":w=>y.title=w,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":w=>y.subtitle=w,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,eA),e.createElementVNode("div",tA,[e.createVNode(p,{modelValue:y.imgSrc,"onUpdate:modelValue":w=>y.imgSrc=w,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:y.imgSrc,"onUpdate:modelValue":w=>y.imgSrc=w,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":w=>y.alt=w,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=>m())},[e.createVNode(g),r[15]||(r[15]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-0e37a6da"]]),oA={class:"gallery-default"},nA={class:"img-wrapper need-mask"},aA=["src","alt"],iA={class:"img-wrapper__content"},sA={class:"img-wrapper__content__title"},rA={class:"img-wrapper__content__subtitle"},Sa=W(e.defineComponent({name:"GalleryDefault",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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)},m=()=>{o("handleCopy",l.modelValue)},A=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",oA,[e.createElementVNode("div",nA,[e.createElementVNode("img",{src:x.imgSrc,alt:x.alt},null,8,aA),e.createElementVNode("div",iA,[e.createElementVNode("div",sA,e.toDisplayString(x.title),1),e.createElementVNode("h5",rA,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:m,onHandlePaste:A},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(lA,{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-6df31a81"]]),dA={class:"setting-content"},cA={class:"setting-header flex items-center"},mA={class:"setting-header flex items-center"},AA={class:"setting-header flex items-center"},pA={class:"setting-header flex items-center"},fA={class:"setting-body"},uA={class:"setting-item"},hA={class:"btn-group"},VA={key:0,class:"drag-handle"},gA=["src"],yA={class:"item-uplaod flex items-center"},bA=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)},m=()=>{i.data.data.push({id:L(),title:"标题",url:"",imgSrc:void 0,alt:""})},A=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",dA,[e.createElementVNode("div",cA,[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",mA,[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",AA,[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",pA,[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",fA,[e.createElementVNode("div",uA,[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",hA,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",VA,[e.createVNode(h,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(x,{class:"btn-delete",onClick:w=>A(y.id)},null,8,["onClick"])]),r[16]||(r[16]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(p,{modelValue:y.title,"onUpdate:modelValue":w=>y.title=w,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":w=>y.url=w,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,gA),e.createElementVNode("div",yA,[e.createVNode(p,{modelValue:y.imgSrc,"onUpdate:modelValue":w=>y.imgSrc=w,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:y.imgSrc,"onUpdate:modelValue":w=>y.imgSrc=w,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":w=>y.alt=w,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=>m())},[e.createVNode(g),r[19]||(r[19]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-641fc5d7"]]),wA=["href"],xA=["src","alt"],kA=["onClick"],NA=["src","alt"],_A={key:2,class:"gallery-caption__img"},CA=["src","alt"],EA=["href"],TA=["onClick"],SA=["innerHTML"],Pa=W(e.defineComponent({name:"GalleryCaptionRound",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},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)},m=()=>{o("handleCopy",l.modelValue)},A=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,xA)],8,wA)):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,NA)],8,kA)):(e.openBlock(),e.createElementBlock("div",_A,[e.createElementVNode("img",{src:V.imgSrc,alt:V.alt},null,8,CA)])),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,EA)):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,TA)):(e.openBlock(),e.createElementBlock("div",{key:5,class:"tx-subtitle text-blue text-center",innerHTML:V.title},null,8,SA))],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:m,onHandlePaste:A},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(bA,{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-d4f2d329"]]),PA={class:"setting-content"},BA={class:"setting-header flex items-center"},LA={class:"setting-body"},OA={class:"setting-item"},$A={class:"btn-group"},MA={key:0,class:"drag-handle"},zA=["src"],jA={class:"item-uplaod flex items-center"},DA={class:"item-action flex items-center"},UA=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)},m=()=>{i.data.data.push({id:L(),title:"标题",text:"内容",date:"",imgSrc:"",alt:"",url:"",btnText:""})},A=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",PA,[e.createElementVNode("div",BA,[r[7]||(r[7]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(f,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=w=>n.data.bgColor=w),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",LA,[e.createElementVNode("div",OA,[e.createVNode(e.unref(ie),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=w=>n.data.data=w),"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]=w=>l.value=!0),onEnd:r[3]||(r[3]=w=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:w})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:w.id},[e.createElementVNode("div",$A,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",MA,[e.createVNode(p,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:C=>A(w.id)},null,8,["onClick"])]),r[8]||(r[8]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(x,{modelValue:w.title,"onUpdate:modelValue":C=>w.title=C,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:w.text,"onUpdate:modelValue":C=>w.text=C,name:`GalleryTimeline_editor_${w.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),r[10]||(r[10]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(x,{modelValue:w.date,"onUpdate:modelValue":C=>w.date=C,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:w.imgSrc},null,8,zA),e.createElementVNode("div",jA,[e.createVNode(x,{modelValue:w.imgSrc,"onUpdate:modelValue":C=>w.imgSrc=C,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(_e,{modelValue:w.imgSrc,"onUpdate:modelValue":C=>w.imgSrc=C,name:`GalleryTimeline_${w.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(x,{class:"mt-2",modelValue:w.alt,"onUpdate:modelValue":C=>w.alt=C,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(w.btnText),1)]),_:2},1024),e.createElementVNode("div",DA,[e.createVNode(x,{class:"action-text",modelValue:w.btnText,"onUpdate:modelValue":C=>w.btnText=C,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(x,{modelValue:w.url,"onUpdate:modelValue":C=>w.url=C,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]=w=>m())},[e.createVNode(V),r[12]||(r[12]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-69d5d758"]]);function Ln(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}var RA=typeof global=="object"&&global&&global.Object===Object&&global,HA=typeof self=="object"&&self&&self.Object===Object&&self,Es=RA||HA||Function("return this")(),Ba=function(){return Es.Date.now()},WA=/\s/;function IA(n){for(var t=n.length;t--&&WA.test(n.charAt(t)););return t}var XA=/^\s+/;function qA(n){return n&&n.slice(0,IA(n)+1).replace(XA,"")}var On=Es.Symbol,Ts=Object.prototype,FA=Ts.hasOwnProperty,YA=Ts.toString,Wo=On?On.toStringTag:void 0;function ZA(n){var t=FA.call(n,Wo),l=n[Wo];try{n[Wo]=void 0;var o=!0}catch{}var a=YA.call(n);return o&&(t?n[Wo]=l:delete n[Wo]),a}var GA=Object.prototype,JA=GA.toString;function KA(n){return JA.call(n)}var vA="[object Null]",QA="[object Undefined]",Ss=On?On.toStringTag:void 0;function ep(n){return n==null?n===void 0?QA:vA:Ss&&Ss in Object(n)?ZA(n):KA(n)}function tp(n){return n!=null&&typeof n=="object"}var lp="[object Symbol]";function op(n){return typeof n=="symbol"||tp(n)&&ep(n)==lp}var Ps=NaN,np=/^[-+]0x[0-9a-f]+$/i,ap=/^0b[01]+$/i,ip=/^0o[0-7]+$/i,sp=parseInt;function Bs(n){if(typeof n=="number")return n;if(op(n))return Ps;if(Ln(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=Ln(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=qA(n);var l=ap.test(n);return l||ip.test(n)?sp(n.slice(2),l?2:8):np.test(n)?Ps:+n}var rp="Expected a function",dp=Math.max,cp=Math.min;function $n(n,t,l){var o,a,i,s,d,m,A=0,c=!1,r=!1,u=!0;if(typeof n!="function")throw new TypeError(rp);t=Bs(t)||0,Ln(l)&&(c=!!l.leading,r="maxWait"in l,i=r?dp(Bs(l.maxWait)||0,t):i,u="trailing"in l?!!l.trailing:u);function f(_){var b=o,k=a;return o=a=void 0,A=_,s=n.apply(k,b),s}function p(_){return A=_,d=setTimeout(g,t),c?f(_):s}function h(_){var b=_-m,k=_-A,T=t-b;return r?cp(T,i-k):T}function x(_){var b=_-m,k=_-A;return m===void 0||b>=t||b<0||r&&k>=i}function g(){var _=Ba();if(x(_))return V(_);d=setTimeout(g,h(_))}function V(_){return d=void 0,u&&o?f(_):(o=a=void 0,s)}function y(){d!==void 0&&clearTimeout(d),A=0,o=m=a=d=void 0}function w(){return d===void 0?s:V(Ba())}function C(){var _=Ba(),b=x(_);if(o=arguments,a=this,m=_,b){if(d===void 0)return p(m);if(r)return clearTimeout(d),d=setTimeout(g,t),f(m)}return d===void 0&&(d=setTimeout(g,t)),s}return C.cancel=y,C.flush=w,C}var mp="Expected a function";function Ap(n,t,l){var o=!0,a=!0;if(typeof n!="function")throw new TypeError(mp);return Ln(l)&&(o="leading"in l?!!l.leading:o,a="trailing"in l?!!l.trailing:a),$n(n,t,{leading:o,maxWait:t,trailing:a})}var ho=function(){return ho=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},ho.apply(this,arguments)};function Ls(n){return!n||!n.ownerDocument||!n.ownerDocument.defaultView?window:n.ownerDocument.defaultView}function Os(n){return!n||!n.ownerDocument?document:n.ownerDocument}var $s=function(n){var t={},l=Array.prototype.reduce.call(n,function(o,a){var i=a.name.match(/data-simplebar-(.+)/);if(i){var s=i[1].replace(/\W+(.)/g,function(d,m){return m.toUpperCase()});switch(a.value){case"true":o[s]=!0;break;case"false":o[s]=!1;break;case void 0:o[s]=!0;break;default:o[s]=a.value}}return o},t);return l};function Ms(n,t){var l;n&&(l=n.classList).add.apply(l,t.split(" "))}function zs(n,t){n&&t.split(" ").forEach(function(l){n.classList.remove(l)})}function js(n){return".".concat(n.split(" ").join("."))}var La=!!(typeof window<"u"&&window.document&&window.document.createElement),pp=Object.freeze({__proto__:null,addClasses:Ms,canUseDOM:La,classNamesToQuery:js,getElementDocument:Os,getElementWindow:Ls,getOptions:$s,removeClasses:zs}),Vo=null,Ds=null;La&&window.addEventListener("resize",function(){Ds!==window.devicePixelRatio&&(Ds=window.devicePixelRatio,Vo=null)});function Us(){if(Vo===null){if(typeof document>"u")return Vo=0,Vo;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),Vo=l}return Vo}var Cl=Ls,Oa=Os,fp=$s,El=Ms,Tl=zs,xt=js,Io=function(){function n(t,l){l===void 0&&(l={});var o=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var a=Cl(o.el);o.scrollXTicking||(a.requestAnimationFrame(o.scrollX),o.scrollXTicking=!0),o.scrollYTicking||(a.requestAnimationFrame(o.scrollY),o.scrollYTicking=!0),o.isScrolling||(o.isScrolling=!0,El(o.el,o.classNames.scrolling)),o.showScrollbar("x"),o.showScrollbar("y"),o.onStopScrolling()},this.scrollX=function(){o.axis.x.isOverflowing&&o.positionScrollbar("x"),o.scrollXTicking=!1},this.scrollY=function(){o.axis.y.isOverflowing&&o.positionScrollbar("y"),o.scrollYTicking=!1},this._onStopScrolling=function(){Tl(o.el,o.classNames.scrolling),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isScrolling=!1},this.onMouseEnter=function(){o.isMouseEntering||(El(o.el,o.classNames.mouseEntered),o.showScrollbar("x"),o.showScrollbar("y"),o.isMouseEntering=!0),o.onMouseEntered()},this._onMouseEntered=function(){Tl(o.el,o.classNames.mouseEntered),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isMouseEntering=!1},this._onMouseMove=function(a){o.mouseX=a.clientX,o.mouseY=a.clientY,(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseMoveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseMoveForAxis("y")},this.onMouseLeave=function(){o.onMouseMove.cancel(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseLeaveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseLeaveForAxis("y"),o.mouseX=-1,o.mouseY=-1},this._onWindowResize=function(){o.scrollbarWidth=o.getScrollbarWidth(),o.hideNativeScrollbar()},this.onPointerEvent=function(a){if(!(!o.axis.x.track.el||!o.axis.y.track.el||!o.axis.x.scrollbar.el||!o.axis.y.scrollbar.el)){var i,s;o.axis.x.track.rect=o.axis.x.track.el.getBoundingClientRect(),o.axis.y.track.rect=o.axis.y.track.el.getBoundingClientRect(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&(i=o.isWithinBounds(o.axis.x.track.rect)),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&(s=o.isWithinBounds(o.axis.y.track.rect)),(i||s)&&(a.stopPropagation(),a.type==="pointerdown"&&a.pointerType!=="touch"&&(i&&(o.axis.x.scrollbar.rect=o.axis.x.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.x.scrollbar.rect)?o.onDragStart(a,"x"):o.onTrackClick(a,"x")),s&&(o.axis.y.scrollbar.rect=o.axis.y.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.y.scrollbar.rect)?o.onDragStart(a,"y"):o.onTrackClick(a,"y"))))}},this.drag=function(a){var i,s,d,m,A,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,w=(m=(d=o.contentWrapperEl)===null||d===void 0?void 0:d[o.axis[o.draggedAxis].scrollSizeAttr])!==null&&m!==void 0?m:0,C=parseInt((c=(A=o.elStyles)===null||A===void 0?void 0:A[o.axis[o.draggedAxis].sizeAttr])!==null&&c!==void 0?c:"0px",10);a.preventDefault(),a.stopPropagation(),o.draggedAxis==="y"?x=a.pageY:x=a.pageX;var _=x-((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;_=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-_:_;var b=_/(V-y.size),k=b*(w-C);o.draggedAxis==="x"&&o.isRtl&&(k=!((h=n.getRtlHelpers())===null||h===void 0)&&h.isScrollingToNegative?-k:k),o.contentWrapperEl[o.axis[o.draggedAxis].scrollOffsetAttr]=k}},this.onEndDrag=function(a){o.isDragging=!1;var i=Oa(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=ho(ho({},n.defaultOptions),l),this.classNames=ho(ho({},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=Ap(this._onMouseMove,64),this.onWindowResize=$n(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=$n(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=$n(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:Us()}catch{return Us()}},n.getOffset=function(t){var l=t.getBoundingClientRect(),o=Oa(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(){La&&(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 m=this.contentEl.scrollHeight,A=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=o?"auto":"100%",this.placeholderEl.style.width=a?"".concat(l||A,"px"):"auto",this.placeholderEl.style.height="".concat(m,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&A>l,this.axis.y.isOverflowing=m>c,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var r=this.axis.x.isOverflowing?this.scrollbarWidth:0,u=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&A>i-u,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&m>c-r,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},n.prototype.getScrollbarSize=function(t){var l,o;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var a=this.contentEl[this.axis[t].scrollSizeAttr],i=(o=(l=this.axis[t].track.el)===null||l===void 0?void 0:l[this.axis[t].offsetSizeAttr])!==null&&o!==void 0?o:0,s=i/a,d;return d=Math.max(~~(s*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},n.prototype.positionScrollbar=function(t){var l,o,a;t===void 0&&(t="y");var i=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!i.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],d=((l=this.axis[t].track.el)===null||l===void 0?void 0:l[this.axis[t].offsetSizeAttr])||0,m=parseInt(this.elStyles[this.axis[t].sizeAttr],10),A=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];A=t==="x"&&this.isRtl&&(!((o=n.getRtlHelpers())===null||o===void 0)&&o.isScrollOriginAtZero)?-A:A,t==="x"&&this.isRtl&&(A=!((a=n.getRtlHelpers())===null||a===void 0)&&a.isScrollingToNegative?A:-A);var c=A/(s-m),r=~~((d-i.size)*c);r=t==="x"&&this.isRtl?-r+(d-i.size):r,i.el.style.transform=t==="x"?"translate3d(".concat(r,"px, 0, 0)"):"translate3d(0, ".concat(r,"px, 0)")}},n.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var l=this.axis[t].track.el,o=this.axis[t].scrollbar.el;!l||!o||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(l.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(l.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?o.style.display="block":o.style.display="none")},n.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(El(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},n.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Tl(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},n.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},n.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var l=this.axis[t];!l.track.el||!l.scrollbar.el||(l.track.rect=l.track.el.getBoundingClientRect(),l.scrollbar.rect=l.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(l.track.rect)?(this.showScrollbar(t),El(l.track.el,this.classNames.hover),this.isWithinBounds(l.scrollbar.rect)?El(l.scrollbar.el,this.classNames.hover):Tl(l.scrollbar.el,this.classNames.hover)):(Tl(l.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},n.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Tl(this.axis[t].track.el,this.classNames.hover),Tl(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},n.prototype.onDragStart=function(t,l){var o;l===void 0&&(l="y"),this.isDragging=!0;var a=Oa(this.el),i=Cl(this.el),s=this.axis[l].scrollbar,d=l==="y"?t.pageY:t.pageX;this.axis[l].dragOffset=d-(((o=s.rect)===null||o===void 0?void 0:o[this.axis[l].offsetAttr])||0),this.draggedAxis=l,El(this.el,this.classNames.dragging),a.addEventListener("mousemove",this.drag,!0),a.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(a.addEventListener("click",this.preventClick,!0),a.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.prototype.onTrackClick=function(t,l){var o=this,a,i,s,d;l===void 0&&(l="y");var m=this.axis[l];if(!(!this.options.clickOnTrack||!m.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var A=Cl(this.el);this.axis[l].scrollbar.rect=m.scrollbar.el.getBoundingClientRect();var c=this.axis[l].scrollbar,r=(i=(a=c.rect)===null||a===void 0?void 0:a[this.axis[l].offsetAttr])!==null&&i!==void 0?i:0,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,A.requestAnimationFrame(V)):f<x&&(f+=g,o.contentWrapperEl[o.axis[l].scrollOffsetAttr]=f,A.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=fp,n.helpers=pp,n}(),ql=function(){return ql=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},ql.apply(this,arguments)},up={beforeUnmount:"beforeUnmount"},Xo;function hp(n){var t,l=n.h,o=n.emit,a=n.slots,i=n.props,s=function(m){return o("scroll",m)},d=ql(ql({},Io.defaultOptions.classNames),i.classNames);return l("div",ql({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",ql(ql({},{onScroll:s,class:d.contentWrapper,tabIndex:i.tabIndex||Io.defaultOptions.tabIndex,role:"region","aria-label":i.ariaLabel||Io.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 Vp=e.defineComponent((Xo={name:"simplebar-vue",props:{autoHide:{type:Boolean,default:void 0},classNames:Object,forceVisible:{type:[Boolean,String],validator:function(n){return typeof n=="boolean"||n==="x"||n==="y"},default:void 0},ariaLabel:String,tabIndex:Number,direction:{type:String,validator:function(n){return n==="ltr"||n==="rtl"}},timeout:Number,clickOnTrack:{type:Boolean,default:void 0},scrollbarMinSize:Number,scrollbarMaxSize:Number},emits:["scroll"],data:function(){return{}},mounted:function(){for(var n=Io.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 Io(this.$refs.element,n),this.scrollElement=this.$refs.scrollElement,this.contentElement=this.$refs.contentElement}},Xo[up.beforeUnmount]=function(){var n;(n=this.SimpleBar)===null||n===void 0||n.unMount(),this.SimpleBar=void 0},Xo.methods={recalculate:function(){var n;(n=this.SimpleBar)===null||n===void 0||n.recalculate()}},Xo.render=function(n){var t=this;return hp({h:typeof n=="function"?n:e.h,emit:function(){for(var l=[],o=0;o<arguments.length;o++)l[o]=arguments[o];return t.$emit.apply(t,l)},slots:this.$slots,props:this.$props})},Xo));const Mn=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(Vp),{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 Rs(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
|
*
|