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