officialblock 1.0.9 → 1.1.0
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.
|
@@ -183,4 +183,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
183
183
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
184
184
|
PERFORMANCE OF THIS SOFTWARE.
|
|
185
185
|
***************************************************************************** */function su(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,c=e.editorPlugin;t&&t.forEach(function(l){return an.registerMenu(l)}),n&&n.forEach(function(l){return an.registerRenderElem(l)}),r&&an.registerRenderStyle(r),o&&o.forEach(function(l){return an.registerElemToHtml(l)}),i&&an.registerStyleToHtml(i),a&&a.forEach(function(l){return an.registerPreParseHtml(l)}),u&&u.forEach(function(l){return an.registerParseElemHtml(l)}),s&&an.registerParseStyleHtml(s),c&&an.registerPlugin(c)}kue.forEach(function(e){return su(e)}),su(rce),su(Bfe),su(Rge),su(_0e),su(y1e);var YM='<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>',XM={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},E1e={hoverbarKeys:Ot(Ot({},XM),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};an.setEditorConfig(Ot(Ot({},E1e),{decorate:KM}));var x1e={hoverbarKeys:XM};an.setSimpleEditorConfig(Ot(Ot({},x1e),{decorate:KM}));var C1e={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:ne("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:ne("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:ne("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:ne("editor.image"),iconSvg:YM,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:ne("editor.video"),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>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};an.setToolbarConfig(C1e);var S1e={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:ne("editor.image"),iconSvg:YM,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function D1e(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,o=r===void 0?[]:r,i=e.html,a=e.config,u=a===void 0?{}:a,s=e.mode,c=(s===void 0?"default":s)==="simple"?an.simpleEditorConfig:an.editorConfig,l=Ot(Ot({},c.hoverbarKeys||{}),u.hoverbarKeys||{});return Bee({selector:n,config:Ot(Ot(Ot({},c),u),{hoverbarKeys:l}),content:o,html:i,plugins:an.plugins})}function k1e(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?an.simpleToolbarConfig:an.toolbarConfig,s=function(c,l){if(c==null)throw new Error("Cannot create toolbar, because editor is null");var f=l.selector,p=l.config,h=p===void 0?{}:p;if(function(m,b){return RP(m,"data-w-e-toolbar",b)}(c,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var y=Cr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},h||{}),v=new Vee(f,y);return Z3.set(v,c),q0.set(c,v),v}(n,{selector:t,config:Ot(Ot({},u),o)});return s}an.setSimpleToolbarConfig(S1e);var A1e=Object.defineProperty,O1e=Object.defineProperties,B1e=Object.getOwnPropertyDescriptors,JT=Object.getOwnPropertySymbols,_1e=Object.prototype.hasOwnProperty,N1e=Object.prototype.propertyIsEnumerable,QT=(e,t,n)=>t in e?A1e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T1e=(e,t)=>{for(var n in t||(t={}))_1e.call(t,n)&&QT(e,n,t[n]);if(JT)for(var n of JT(t))N1e.call(t,n)&&QT(e,n,t[n]);return e},F1e=(e,t)=>O1e(e,B1e(t));function $i(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
|
|
186
|
-
Please use '@${e}' event instead of props`,t}var ZM=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const V1e=d.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=d.ref(null),r=d.shallowRef(null),o=d.ref(""),i=()=>{if(!n.value)return;const u=d.toRaw(e.defaultContent);D1e({selector:n.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:F1e(T1e({},e.defaultConfig),{onCreated(s){if(r.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const c=$i("onCreated");throw new Error(c)}},onChange(s){const c=s.getHtml();if(o.value=c,t.emit("update:modelValue",c),t.emit("onChange",s),e.defaultConfig.onChange){const l=$i("onChange");throw new Error(l)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const c=$i("onDestroyed");throw new Error(c)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const c=$i("onMaxLength");throw new Error(c)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const c=$i("onFocus");throw new Error(c)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const c=$i("onBlur");throw new Error(c)}},customAlert(s,c){if(t.emit("customAlert",s,c),e.defaultConfig.customAlert){const l=$i("customAlert");throw new Error(l)}},customPaste:(s,c)=>{if(e.defaultConfig.customPaste){const f=$i("customPaste");throw new Error(f)}let l;return t.emit("customPaste",s,c,f=>{l=f}),l}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return d.onMounted(()=>{i()}),d.watch(()=>e.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),P1e={ref:"box",style:{height:"100%"}};function j1e(e,t,n,r,o,i){return d.openBlock(),d.createElementBlock("div",P1e,null,512)}var L1e=ZM(V1e,[["render",j1e]]);const I1e=d.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=d.ref(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");B.getToolbar(r)||k1e({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return d.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),R1e={ref:"selector"};function M1e(e,t,n,r,o,i){return d.openBlock(),d.createElementBlock("div",R1e,null,512)}var $1e=ZM(I1e,[["render",M1e]]);const z1e={class:"rich-text-editor"},H1e=d.defineComponent({__name:"RichTextEditor",props:{modelValue:{default:""},placeholder:{default:"请输入内容..."},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},maxLength:{default:1e4},excludeKeys:{default:()=>[]},includeKeys:{default:()=>[]},uploadImgServer:{default:""},uploadVideoServer:{default:""}},emits:["update:modelValue","change","focus","blur","created"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=d.shallowRef(),a=d.ref(""),u=d.computed(()=>typeof r.height=="number"?`${r.height}px`:r.height),s={excludeKeys:r.excludeKeys,insertKeys:{index:0,keys:r.includeKeys}},c={placeholder:r.placeholder,readOnly:r.disabled,maxLength:r.maxLength,MENU_CONF:{uploadImage:{server:r.uploadImgServer,fieldName:"file",maxFileSize:5*1024*1024,allowedFileTypes:["image/*"],meta:{},headers:{},withCredentials:!1,timeout:30*1e3,onBeforeUpload(v){return console.log("onBeforeUpload",v),v},onProgress(v){console.log("onProgress",v)},onSuccess(v,m){console.log("onSuccess",v,m)},onFailed(v,m){console.log("onFailed",v,m)},onError(v,m){console.log("onError",v,m)}},uploadVideo:{server:r.uploadVideoServer,fieldName:"file",maxFileSize:50*1024*1024,allowedFileTypes:["video/*"],meta:{},headers:{},withCredentials:!1,timeout:60*1e3,onBeforeUpload(v){return console.log("onBeforeUpload video",v),v},onProgress(v){console.log("onProgress video",v)},onSuccess(v,m){console.log("onSuccess video",v,m)},onFailed(v,m){console.log("onFailed video",v,m)},onError(v,m){console.log("onError video",v,m)}}}};d.onBeforeUnmount(()=>{const v=i.value;v!=null&&v.destroy()}),d.watch(()=>r.modelValue,v=>{v!==a.value&&(a.value=v||"")},{immediate:!0});const l=v=>{i.value=v,o("created",v)},f=v=>{o("update:modelValue",a.value),o("change",v)},p=()=>{i.value=void 0},h=v=>{o("focus",v)},y=v=>{o("blur",v)};return t({editor:i,getHtml:()=>a.value,getText:()=>{var v;return((v=i.value)==null?void 0:v.getText())||""},isEmpty:()=>{var v;return((v=i.value)==null?void 0:v.isEmpty())||!0},clear:()=>{var v;return(v=i.value)==null?void 0:v.clear()},focus:()=>{var v;return(v=i.value)==null?void 0:v.focus()},blur:()=>{var v;return(v=i.value)==null?void 0:v.blur()},disable:()=>{var v;return(v=i.value)==null?void 0:v.disable()},enable:()=>{var v;return(v=i.value)==null?void 0:v.enable()}}),(v,m)=>(d.openBlock(),d.createElementBlock("div",z1e,[d.createVNode(d.unref($1e),{class:"editor-toolbar",editor:i.value,defaultConfig:s,mode:v.mode},null,8,["editor","mode"]),d.createVNode(d.unref(L1e),{class:"editor-content",style:d.normalizeStyle({height:u.value}),modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=b=>a.value=b),defaultConfig:c,mode:v.mode,onOnCreated:l,onOnChange:f,onOnDestroyed:p,onOnFocus:h,onOnBlur:y},null,8,["style","modelValue","mode"])]))}}),Sp=ct(H1e,[["__scopeId","data-v-760a12a3"]]),U1e={class:"setting-content"},W1e={class:"setting-header flex items-center"},G1e={class:"setting-header flex items-center"},q1e={class:"setting-body"},K1e={class:"setting-item"},Y1e={class:"item-name"},X1e={class:"btn-group"},Z1e={class:"drag-handle"},J1e={class:"btn-group"},Q1e={key:0,class:"drag-handle"},ebe={class:"item-action flex items-center"},tbe=["onClick"],nbe={class:"btn-group"},rbe={key:0,class:"drag-handle"},obe={class:"item-action flex items-center"},ibe=["onClick"],abe={class:"btn-group"},ube={key:0,class:"drag-handle"},sbe={class:"item-action flex items-center"},lbe=["onClick"],cbe={class:"btn-group"},dbe={key:0,class:"drag-handle"},fbe={class:"item-action flex items-center"},pbe=["onClick"],hbe=["src"],gbe={class:"item-uplaod flex items-center"},vbe={class:"item-img-list"},mbe={class:"btn-group"},ybe={key:0,class:"drag-handle"},bbe={key:0,class:"item-img-box"},wbe=["src"],Ebe={class:"item-right flex-1"},xbe=["onClick"],Cbe=["src"],Sbe={class:"item-uplaod flex items-center"},Dbe=["src"],kbe={class:"item-uplaod flex items-center"},Abe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=d.ref(!1),r=d.computed(()=>({animation:200,group:"item",disabled:!1,ghostClass:"ghost"})),o=d.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),i=d.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),a=d.computed(()=>({animation:200,group:"categories",disabled:!1,ghostClass:"ghost"})),u=d.computed(()=>({animation:200,group:"images",disabled:!1,ghostClass:"ghost"})),s=C=>C&&C.length>1,c=e,l=t,f=()=>{l("update:show",!1)},p=C=>{const x=c.data;C==="Article"?x.data.push({id:ye(),type:"Article",title:"",content:"",buttonList:[],linkList:[]}):C==="Contact"?x.data.push({id:ye(),type:"Contact",title:"",content:"",categories:[],linkList:[]}):C==="Image"?x.data.push({id:ye(),type:"Image",imgSrc:"",caption:"",alt:"",isRound:!1}):C==="ImageList"?x.data.push({id:ye(),type:"ImageList",imageList:[]}):C==="Video"&&x.data.push({id:ye(),type:"Video",videoSrc:"",imgSrc:""})},h=C=>{c.data.data=c.data.data.filter(x=>x.id!==C)},y=C=>{C.push({id:ye(),text:"查看更多",url:void 0,isExternal:!1})},v=(C,x)=>{C.splice(C.findIndex(A=>A.id===x),1)},m=C=>{C.push({id:ye(),text:"查看更多",url:void 0,isExternal:!1})},b=(C,x)=>{C.splice(C.findIndex(A=>A.id===x),1)},g=C=>{C.push({id:ye(),text:"分类"})},w=(C,x)=>{C.splice(C.findIndex(A=>A.id===x),1)},E=C=>{C.push({id:ye(),src:""})},D=(C,x)=>{C.splice(C.findIndex(A=>A===x),1)};return(C,x)=>{const A=d.resolveComponent("a-option"),_=d.resolveComponent("a-select"),L=d.resolveComponent("icon-plus"),R=d.resolveComponent("a-button"),I=d.resolveComponent("a-button-group"),q=d.resolveComponent("icon-drag-arrow"),z=d.resolveComponent("icon-delete"),H=d.resolveComponent("a-input"),Y=d.resolveComponent("a-checkbox"),Q=d.resolveComponent("a-link"),se=d.resolveComponent("a-upload"),le=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(le,{width:500,visible:e.show,footer:!1,onCancel:f,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",U1e,[d.createElementVNode("div",W1e,[x[24]||(x[24]=d.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),d.createVNode(_,{modelValue:e.data.width,"onUpdate:modelValue":x[0]||(x[0]=M=>e.data.width=M),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(A,{value:"default"},{default:d.withCtx(()=>x[20]||(x[20]=[d.createTextVNode("默认")])),_:1,__:[20]}),d.createVNode(A,{value:"small"},{default:d.withCtx(()=>x[21]||(x[21]=[d.createTextVNode("小")])),_:1,__:[21]}),d.createVNode(A,{value:"medium"},{default:d.withCtx(()=>x[22]||(x[22]=[d.createTextVNode("中")])),_:1,__:[22]}),d.createVNode(A,{value:"large"},{default:d.withCtx(()=>x[23]||(x[23]=[d.createTextVNode("大")])),_:1,__:[23]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",G1e,[x[27]||(x[27]=d.createElementVNode("span",{class:"header-title"},"组件背景",-1)),d.createVNode(_,{modelValue:e.data.background,"onUpdate:modelValue":x[1]||(x[1]=M=>e.data.background=M),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(A,{value:"white"},{default:d.withCtx(()=>x[25]||(x[25]=[d.createTextVNode("白色")])),_:1,__:[25]}),d.createVNode(A,{value:"grey"},{default:d.withCtx(()=>x[26]||(x[26]=[d.createTextVNode("灰色")])),_:1,__:[26]})]),_:1},8,["modelValue"])]),d.createVNode(I,{type:"primary"},{default:d.withCtx(()=>[d.createVNode(R,{size:"mini",onClick:x[2]||(x[2]=M=>p("Article"))},{icon:d.withCtx(()=>[d.createVNode(L)]),default:d.withCtx(()=>[x[28]||(x[28]=d.createTextVNode(" Article "))]),_:1,__:[28]}),d.createVNode(R,{size:"mini",onClick:x[3]||(x[3]=M=>p("Contact"))},{icon:d.withCtx(()=>[d.createVNode(L)]),default:d.withCtx(()=>[x[29]||(x[29]=d.createTextVNode(" Contact "))]),_:1,__:[29]}),d.createVNode(R,{size:"mini",onClick:x[4]||(x[4]=M=>p("Image"))},{icon:d.withCtx(()=>[d.createVNode(L)]),default:d.withCtx(()=>[x[30]||(x[30]=d.createTextVNode(" Image "))]),_:1,__:[30]}),d.createVNode(R,{size:"mini",onClick:x[5]||(x[5]=M=>p("ImageList"))},{icon:d.withCtx(()=>[d.createVNode(L)]),default:d.withCtx(()=>[x[31]||(x[31]=d.createTextVNode(" ImageList "))]),_:1,__:[31]}),d.createVNode(R,{size:"mini",onClick:x[6]||(x[6]=M=>p("Video"))},{icon:d.withCtx(()=>[d.createVNode(L)]),default:d.withCtx(()=>[x[32]||(x[32]=d.createTextVNode(" Video "))]),_:1,__:[32]})]),_:1}),d.createElementVNode("div",q1e,[d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.data,"onUpdate:modelValue":x[17]||(x[17]=M=>e.data.data=M),"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},r.value,{onStart:x[18]||(x[18]=M=>n.value=!0),onEnd:x[19]||(x[19]=M=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:M})=>[d.createElementVNode("div",K1e,[d.createElementVNode("p",Y1e,d.toDisplayString(M.type),1),d.createElementVNode("div",X1e,[d.createElementVNode("div",Z1e,[d.createVNode(q,{class:"drag-icon"})]),d.createVNode(z,{class:"btn-delete",onClick:k=>h(M.id)},null,8,["onClick"])]),M.type==="Article"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[x[37]||(x[37]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(H,{modelValue:M.title,"onUpdate:modelValue":k=>M.title=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),x[38]||(x[38]=d.createElementVNode("p",{class:"item-title"},"内容",-1)),d.createVNode(d.unref(Sp),{modelValue:M.content,"onUpdate:modelValue":k=>M.content=k},null,8,["modelValue","onUpdate:modelValue"]),x[39]||(x[39]=d.createElementVNode("p",{class:"item-title"},"按钮",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:M.buttonList,"onUpdate:modelValue":k=>M.buttonList=k,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},o.value,{disabled:!s(M.buttonList),onStart:x[7]||(x[7]=k=>n.value=!0),onEnd:x[8]||(x[8]=k=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:k})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(M.buttonList)}]),key:k.id},[d.createElementVNode("div",J1e,[s(M.buttonList)?(d.openBlock(),d.createElementBlock("div",Q1e,[d.createVNode(q,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(z,{class:"btn-delete",onClick:O=>v(M.buttonList,k.id)},null,8,["onClick"])]),d.createVNode(R,{type:"primary"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(k.text),1)]),_:2},1024),d.createElementVNode("div",ebe,[d.createVNode(H,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":O=>k.text=O,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(H,{modelValue:k.url,"onUpdate:modelValue":O=>k.url=O,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(Y,{"model-value":k.isExternal},{default:d.withCtx(()=>x[33]||(x[33]=[d.createTextVNode("是否外部链接")])),_:2,__:[33]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:k=>y(M.buttonList)},[d.createVNode(L),x[34]||(x[34]=d.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,tbe),x[40]||(x[40]=d.createElementVNode("p",{class:"item-title"},"链接",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":k=>M.linkList=k,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},i.value,{disabled:!s(M.linkList),onStart:x[9]||(x[9]=k=>n.value=!0),onEnd:x[10]||(x[10]=k=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:k})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(M.linkList)}]),key:k.id},[d.createElementVNode("div",nbe,[s(M.linkList)?(d.openBlock(),d.createElementBlock("div",rbe,[d.createVNode(q,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(z,{class:"btn-delete",onClick:O=>b(M.linkList,k.id)},null,8,["onClick"])]),d.createVNode(Q,{href:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(k.text),1)]),_:2},1024),d.createElementVNode("div",obe,[d.createVNode(H,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":O=>k.text=O,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(H,{modelValue:k.url,"onUpdate:modelValue":O=>k.url=O,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(Y,{"model-value":k.isExternal},{default:d.withCtx(()=>x[35]||(x[35]=[d.createTextVNode("是否外部链接")])),_:2,__:[35]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:k=>m(M.linkList)},[d.createVNode(L),x[36]||(x[36]=d.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,ibe)],64)):d.createCommentVNode("",!0),M.type==="Contact"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[x[44]||(x[44]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(H,{modelValue:M.title,"onUpdate:modelValue":k=>M.title=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),x[45]||(x[45]=d.createElementVNode("p",{class:"item-title"},"内容",-1)),d.createVNode(d.unref(Sp),{modelValue:M.content,"onUpdate:modelValue":k=>M.content=k},null,8,["modelValue","onUpdate:modelValue"]),x[46]||(x[46]=d.createElementVNode("p",{class:"item-title"},"分类",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:M.categories,"onUpdate:modelValue":k=>M.categories=k,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},a.value,{disabled:!s(M.categories),onStart:x[11]||(x[11]=k=>n.value=!0),onEnd:x[12]||(x[12]=k=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:k})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(M.categories)}]),key:k.id},[d.createElementVNode("div",abe,[s(M.categories)?(d.openBlock(),d.createElementBlock("div",ube,[d.createVNode(q,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(z,{class:"btn-delete",onClick:O=>w(M.categories,k.id)},null,8,["onClick"])]),d.createVNode(z,{class:"btn-delete",onClick:O=>w(M.categories,k.id)},null,8,["onClick"]),d.createVNode(Q,{href:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(k.text),1)]),_:2},1024),d.createElementVNode("div",sbe,[d.createVNode(H,{modelValue:k.text,"onUpdate:modelValue":O=>k.text=O,placeholder:"分类名称","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:k=>g(M.categories)},[d.createVNode(L),x[41]||(x[41]=d.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,lbe),x[47]||(x[47]=d.createElementVNode("p",{class:"item-title"},"链接",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":k=>M.linkList=k,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},i.value,{disabled:!s(M.linkList),onStart:x[13]||(x[13]=k=>n.value=!0),onEnd:x[14]||(x[14]=k=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:k})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(M.linkList)}]),key:k.id},[d.createElementVNode("div",cbe,[s(M.linkList)?(d.openBlock(),d.createElementBlock("div",dbe,[d.createVNode(q,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(z,{class:"btn-delete",onClick:O=>b(M.linkList,k.id)},null,8,["onClick"])]),d.createVNode(Q,{href:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(k.text),1)]),_:2},1024),d.createElementVNode("div",fbe,[d.createVNode(H,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":O=>k.text=O,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(H,{modelValue:k.url,"onUpdate:modelValue":O=>k.url=O,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(Y,{"model-value":k.isExternal},{default:d.withCtx(()=>x[42]||(x[42]=[d.createTextVNode("是否外部链接")])),_:2,__:[42]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:k=>m(M.linkList)},[d.createVNode(L),x[43]||(x[43]=d.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,pbe)],64)):d.createCommentVNode("",!0),M.type==="Image"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:2},[d.createElementVNode("img",{class:"item-img",src:M.imgSrc},null,8,hbe),d.createElementVNode("div",gbe,[d.createVNode(H,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(se,{class:"fit-content","show-file-list":!1,action:"/"})]),d.createVNode(H,{class:"mt-2",modelValue:M.caption,"onUpdate:modelValue":k=>M.caption=k,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(H,{class:"mt-2",modelValue:M.alt,"onUpdate:modelValue":k=>M.alt=k,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(Y,{class:"pt-2","model-value":M.isRound},{default:d.withCtx(()=>x[48]||(x[48]=[d.createTextVNode("圆角")])),_:2,__:[48]},1032,["model-value"])],64)):d.createCommentVNode("",!0),M.type==="ImageList"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:3},[x[50]||(x[50]=d.createElementVNode("p",{class:"item-title"},"图片组",-1)),d.createElementVNode("div",vbe,[d.createVNode(d.unref(nr),d.mergeProps({modelValue:M.imageList,"onUpdate:modelValue":k=>M.imageList=k,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},u.value,{disabled:!s(M.imageList),onStart:x[15]||(x[15]=k=>n.value=!0),onEnd:x[16]||(x[16]=k=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:k})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["img-list-item flex draggable-item",{"sortable-disabled":!s(M.imageList)}]),key:k.id},[d.createElementVNode("div",mbe,[s(M.imageList)?(d.openBlock(),d.createElementBlock("div",ybe,[d.createVNode(q,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(z,{class:"btn-delete",onClick:O=>D(M.imageList,k.id)},null,8,["onClick"])]),k.src?(d.openBlock(),d.createElementBlock("div",bbe,[d.createElementVNode("img",{class:"item-img small-img",src:k.src},null,8,wbe)])):d.createCommentVNode("",!0),d.createElementVNode("div",Ebe,[d.createVNode(H,{style:{"margin-bottom":"12px"},modelValue:k.src,"onUpdate:modelValue":O=>k.src=O,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(se,{"show-file-list":!1,action:"/"})])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"])]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:k=>E(M.imageList)},[d.createVNode(L),x[49]||(x[49]=d.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,xbe)],64)):d.createCommentVNode("",!0),M.type==="Video"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:4},[x[51]||(x[51]=d.createElementVNode("p",{class:"item-title"},"视频",-1)),d.createElementVNode("video",{class:"item-img",src:M.videoSrc,controls:""},null,8,Cbe),d.createElementVNode("div",Sbe,[d.createVNode(H,{modelValue:M.videoSrc,"onUpdate:modelValue":k=>M.videoSrc=k,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(se,{class:"fit-content","show-file-list":!1,action:"/"})]),d.createElementVNode("img",{class:"item-img",src:M.imgSrc},null,8,Dbe),d.createElementVNode("div",kbe,[d.createVNode(H,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(se,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):d.createCommentVNode("",!0)])]),_:1},16,["modelValue","component-data"])])])]),_:1},8,["visible"])}}}),Obe=ct(Abe,[["__scopeId","data-v-c3067679"]]),Bbe={class:"operate-page operate-component"},_be={class:"operate-btn d-flex justify-end"},Nbe=d.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1}},emits:["handleCopy","handleDelete","handleEdit"],setup(e,{emit:t}){const n=t,r=()=>{n("handleCopy")},o=()=>{n("handleDelete")},i=()=>{n("handleEdit")};return(a,u)=>{const s=d.resolveComponent("icon-copy"),c=d.resolveComponent("icon-delete"),l=d.resolveComponent("icon-edit");return d.withDirectives((d.openBlock(),d.createElementBlock("div",Bbe,[d.createElementVNode("div",_be,[d.createElementVNode("div",{class:"btn-item btn-copy d-flex align-center fs-10",onClick:r},[d.createVNode(s),u[0]||(u[0]=d.createElementVNode("span",{class:"btn-text"},"复制",-1))]),d.createElementVNode("div",{class:"btn-item btn-delete d-flex align-center fs-10",onClick:o},[d.createVNode(c),u[1]||(u[1]=d.createElementVNode("span",{class:"btn-text"},"删除",-1))]),d.createElementVNode("div",{class:"btn-item btn-edit d-flex align-center fs-10",onClick:i},[d.createVNode(l),u[2]||(u[2]=d.createElementVNode("span",{class:"btn-text"},"编辑",-1))])])],512)),[[d.vShow,e.show]])}}}),yi=ct(Nbe,[["__scopeId","data-v-7426c151"]]),Tbe={class:"article-list-left"},Fbe={class:"article-list-right"},Vbe=d.defineComponent({name:"ArticleList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=d.computed(()=>n.modelValue&&n.modelValue.data&&n.modelValue.data.length?n.modelValue.data.some(l=>l.type==="Image"||l.type==="Video"||l.type==="ImageList"):!1),i=()=>{var f,p;if(n.modelValue&&n.modelValue.data)return;const l={id:((f=n.modelValue)==null?void 0:f.id)||ye(),type:"ArticleList",readOnly:((p=n.modelValue)==null?void 0:p.readOnly)||!1,width:"",bgColor:"",data:[{id:ye(),type:"Article",title:"耀华国际教育学校浙江桐乡",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",buttonList:[],linkList:[{id:ye(),text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},{id:ye(),type:"Image",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",caption:"",alt:"",isRound:!1}]};r("update:modelValue",l)},a=d.ref(!1),u=d.ref(!1),s=()=>{r("handleDelete",n.modelValue.id)},c=()=>{r("handleCopy",n.modelValue)};return i(),(l,f)=>{var y,v,m;const p=d.resolveComponent("a-col"),h=d.resolveComponent("a-row");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"article-list-container",style:d.normalizeStyle({backgroundColor:(y=e.modelValue)==null?void 0:y.bgColor}),onMouseenter:f[2]||(f[2]=b=>a.value=!0),onMouseleave:f[3]||(f[3]=b=>a.value=!1)},[d.createVNode(h,{class:d.normalizeClass(["article-list",[(v=e.modelValue)!=null&&v.width?`container-content-${(m=e.modelValue)==null?void 0:m.width}`:"container-content"]])},{default:d.withCtx(()=>{var b;return[d.createVNode(p,{sm:{span:24},md:{span:o.value?12:24}},{default:d.withCtx(()=>{var g;return[d.createElementVNode("div",Tbe,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((g=e.modelValue)==null?void 0:g.data,w=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:w.id},[w.type==="Article"?(d.openBlock(),d.createBlock(f$,{key:0,article:w},null,8,["article"])):d.createCommentVNode("",!0),w.type==="Contact"?(d.openBlock(),d.createBlock(b$,{key:1,contact:w},null,8,["contact"])):d.createCommentVNode("",!0)],64))),128))])]}),_:1},8,["md"]),o.value?(d.openBlock(),d.createBlock(p,{key:0,sm:{span:24},md:{span:12}},{default:d.withCtx(()=>{var g;return[d.createElementVNode("div",Fbe,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((g=e.modelValue)==null?void 0:g.data,w=>(d.openBlock(),d.createBlock(N$,{key:w.id,type:w.type,data:w,preview:e.modelValue.isPreview},null,8,["type","data","preview"]))),128))])]}),_:1})):d.createCommentVNode("",!0),(b=e.modelValue)!=null&&b.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:1,show:a.value,"onUpdate:show":f[0]||(f[0]=g=>a.value=g),onHandleEdit:f[1]||(f[1]=g=>u.value=!0),onHandleDelete:s,onHandleCopy:c},null,8,["show"]))]}),_:1},8,["class"])],36),d.createVNode(Obe,{show:u.value,"onUpdate:show":f[4]||(f[4]=b=>u.value=b),data:e.modelValue},null,8,["show","data"])],64)}}}),Y5=ct(Vbe,[["__scopeId","data-v-821771c9"]]),Pbe={class:"setting-content"},jbe=["src"],Lbe={class:"item-uplaod flex items-center"},Ibe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=t,r=()=>{n("update:show",!1)};return(o,i)=>{const a=d.resolveComponent("a-input"),u=d.resolveComponent("a-upload"),s=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(s,{width:500,visible:e.show,footer:!1,onCancel:r,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>{var c,l;return[d.createElementVNode("div",Pbe,[i[2]||(i[2]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(a,{modelValue:e.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=f=>e.data.data.title=f),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),i[3]||(i[3]=d.createElementVNode("p",{class:"item-title"},"图片",-1)),d.createElementVNode("img",{class:"item-img",src:(l=(c=e.data)==null?void 0:c.data)==null?void 0:l.imgSrc},null,8,jbe),d.createElementVNode("div",Lbe,[d.createVNode(a,{modelValue:e.data.data.imgSrc,"onUpdate:modelValue":i[1]||(i[1]=f=>e.data.data.imgSrc=f),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),d.createVNode(u,{class:"fit-content","show-file-list":!1,action:"/"})])])]}),_:1},8,["visible"])}}}),Rbe=ct(Ibe,[["__scopeId","data-v-c2966fed"]]),Mbe={class:"red"},$be={class:"banner-page__title"},zbe={class:"position-absolute triangle-position"},Hbe={class:"position-relative h-100 banner-strips"},Ube=d.defineComponent({name:"BannerPage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var l,f;if(n.modelValue&&n.modelValue.data)return;const c={id:((l=n.modelValue)==null?void 0:l.id)||ye(),type:"BannerPage",readOnly:((f=n.modelValue)==null?void 0:f.readOnly)||!1,data:{title:"冷风机奥附件哦啊金佛阿吉佛大金佛电极法对哦就对哦就发哦就发哦激发激发哦飞机奥飞机",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg"}};r("update:modelValue",c)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)};return o(),(c,l)=>{var f,p,h,y,v;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"banner-page",onMouseenter:l[2]||(l[2]=m=>i.value=!0),onMouseleave:l[3]||(l[3]=m=>i.value=!1)},[d.createElementVNode("div",Mbe,[d.createElementVNode("p",$be,d.toDisplayString((p=(f=e.modelValue)==null?void 0:f.data)==null?void 0:p.title),1)]),l[6]||(l[6]=d.createElementVNode("div",{class:"orange"},null,-1)),d.createElementVNode("div",zbe,[d.createElementVNode("div",Hbe,[l[5]||(l[5]=d.createElementVNode("img",{src:"https://ywies-tx.cedim.cn/images/material/banner-strips.png",alt:""},null,-1)),d.createElementVNode("div",{class:"triangle",style:d.normalizeStyle({backgroundImage:"url("+((y=(h=e.modelValue)==null?void 0:h.data)==null?void 0:y.imgSrc)+")"}),"data-v-24231ec2":""},null,4)])]),(v=e.modelValue)!=null&&v.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":l[0]||(l[0]=m=>i.value=m),onHandleEdit:l[1]||(l[1]=m=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],32),d.createVNode(Rbe,{show:a.value,"onUpdate:show":l[4]||(l[4]=m=>a.value=m),data:e.modelValue},null,8,["show","data"])],64)}}}),X5=ct(Ube,[["__scopeId","data-v-9d303384"]]),Wbe={class:"setting-content"},Gbe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=e,r=t,o=()=>{r("update:show",!1)},i=d.ref(1),a=u=>{u===1?(n.data.data.desktopHeight=49,n.data.data.mobileHeight=24):u===2?(n.data.data.desktopHeight=80,n.data.data.mobileHeight=40):u===3?(n.data.data.desktopHeight=32,n.data.data.mobileHeight=40):u===4?(n.data.data.desktopHeight=16,n.data.data.mobileHeight=16):u===5&&(n.data.data.desktopHeight=160,n.data.data.mobileHeight=80)};return(u,s)=>{const c=d.resolveComponent("a-option"),l=d.resolveComponent("a-select"),f=d.resolveComponent("a-input"),p=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(p,{width:500,visible:e.show,footer:!1,onCancel:o,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",Wbe,[s[12]||(s[12]=d.createElementVNode("p",{class:"item-title"},"背景颜色",-1)),d.createVNode(l,{modelValue:e.data.bgColor,"onUpdate:modelValue":s[0]||(s[0]=h=>e.data.bgColor=h),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(c,{value:"#ffffff"},{default:d.withCtx(()=>s[5]||(s[5]=[d.createTextVNode("白色")])),_:1,__:[5]}),d.createVNode(c,{value:"#F7F7FA"},{default:d.withCtx(()=>s[6]||(s[6]=[d.createTextVNode("灰色")])),_:1,__:[6]})]),_:1},8,["modelValue"]),s[13]||(s[13]=d.createElementVNode("p",{class:"item-title"},"间距设置",-1)),d.createVNode(l,{modelValue:i.value,"onUpdate:modelValue":s[1]||(s[1]=h=>i.value=h),placeholder:"请选择",onChange:a,"allow-clear":""},{default:d.withCtx(()=>[d.createVNode(c,{value:1},{default:d.withCtx(()=>s[7]||(s[7]=[d.createTextVNode("制表符起始间距(49px,24px)")])),_:1,__:[7]}),d.createVNode(c,{value:2},{default:d.withCtx(()=>s[8]||(s[8]=[d.createTextVNode("部分间距(80px,40px)")])),_:1,__:[8]}),d.createVNode(c,{value:3},{default:d.withCtx(()=>s[9]||(s[9]=[d.createTextVNode("组件间距(32px,40px)")])),_:1,__:[9]}),d.createVNode(c,{value:4},{default:d.withCtx(()=>s[10]||(s[10]=[d.createTextVNode("链接间距(16px,16px)")])),_:1,__:[10]}),d.createVNode(c,{value:5},{default:d.withCtx(()=>s[11]||(s[11]=[d.createTextVNode("页末间距(160px,80px)")])),_:1,__:[11]})]),_:1},8,["modelValue"]),s[14]||(s[14]=d.createElementVNode("p",{class:"item-title"},"PC高度(单位:px)",-1)),d.createVNode(f,{modelValue:e.data.data.desktopHeight,"onUpdate:modelValue":s[2]||(s[2]=h=>e.data.data.desktopHeight=h),disabled:""},null,8,["modelValue"]),s[15]||(s[15]=d.createElementVNode("p",{class:"item-title"},"移动端高度(单位:px)",-1)),d.createVNode(f,{modelValue:e.data.data.mobileHeight,"onUpdate:modelValue":s[3]||(s[3]=h=>e.data.data.mobileHeight=h),disabled:""},null,8,["modelValue"]),s[16]||(s[16]=d.createElementVNode("p",{class:"item-title"},"唯一标识",-1)),d.createVNode(f,{modelValue:e.data.data.id,"onUpdate:modelValue":s[4]||(s[4]=h=>e.data.data.id=h),placeholder:"请输入唯一标识","allow-clear":""},null,8,["modelValue"])])]),_:1},8,["visible"])}}}),qbe=ct(Gbe,[["__scopeId","data-v-72d8e435"]]),Kbe=["id"],Ybe=d.defineComponent({name:"CustomSpace",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var l,f;if(n.modelValue&&n.modelValue.data)return;const c={id:((l=n.modelValue)==null?void 0:l.id)||ye(),type:"CustomSpace",readOnly:((f=n.modelValue)==null?void 0:f.readOnly)||!1,data:{id:"",desktopHeight:"49",mobileHeight:"24",bgColor:""}};r("update:modelValue",c)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)};return o(),(c,l)=>{var f,p,h,y,v,m,b,g,w;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{id:(p=(f=e.modelValue)==null?void 0:f.data)==null?void 0:p.id,class:"custom-space",style:d.normalizeStyle({"--desktop-height":((y=(h=e.modelValue)==null?void 0:h.data)==null?void 0:y.desktopHeight)+"px","--mobile-height":((m=(v=e.modelValue)==null?void 0:v.data)==null?void 0:m.mobileHeight)+"px","--bg-color":(g=(b=e.modelValue)==null?void 0:b.data)==null?void 0:g.bgColor}),onMouseenter:l[2]||(l[2]=E=>i.value=!0),onMouseleave:l[3]||(l[3]=E=>i.value=!1)},[(w=e.modelValue)!=null&&w.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":l[0]||(l[0]=E=>i.value=E),onHandleEdit:l[1]||(l[1]=E=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],44,Kbe),d.createVNode(qbe,{show:a.value,"onUpdate:show":l[4]||(l[4]=E=>a.value=E),data:e.modelValue},null,8,["show","data"])],64)}}}),Z5=ct(Ybe,[["__scopeId","data-v-05d34a76"]]),Xbe={class:"setting-content"},Zbe={class:"setting-body"},Jbe={class:"item-name"},Qbe={class:"btn-group"},e2e={key:0,class:"drag-handle"},t2e={class:"item-name"},n2e=["src"],r2e={class:"mt-2 flex items-center"},o2e=["src"],i2e={class:"mt-2 flex items-center"},a2e=["src"],u2e={class:"mt-2 flex items-center"},s2e={class:"btn-group"},l2e={key:0,class:"drag-handle"},c2e={class:"item-action flex items-center"},d2e=["onClick"],f2e=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show","updateSwiper"],setup(e,{emit:t}){const n=d.ref(!1),r=d.computed(()=>({animation:200,group:"banners",disabled:!1,ghostClass:"ghost"})),o=d.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),i=p=>p&&p.length>1,a=t,u=()=>{a("update:show",!1)},s=(p,h)=>{p.push({id:ye(),type:h,imgSrc:"",title:"",alt:"",link:"",videoSrc:h==="Video"?"":void 0}),a("updateSwiper")},c=(p,h)=>{p.splice(p.findIndex(y=>y.id===h),1),a("updateSwiper")},l=p=>{p.push({id:ye(),text:"查看更多",url:void 0,isExternal:!1})},f=(p,h)=>{p.splice(p.findIndex(y=>y.id===h),1)};return(p,h)=>{const y=d.resolveComponent("icon-drag-arrow"),v=d.resolveComponent("icon-delete"),m=d.resolveComponent("a-input"),b=d.resolveComponent("a-upload"),g=d.resolveComponent("a-checkbox"),w=d.resolveComponent("icon-plus"),E=d.resolveComponent("a-button"),D=d.resolveComponent("a-button-group"),C=d.resolveComponent("a-link"),x=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(x,{width:500,visible:e.show,footer:!1,onCancel:u,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",Xbe,[d.createElementVNode("div",Zbe,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.data.data,A=>(d.openBlock(),d.createElementBlock("div",{class:"setting-item",key:A.id},[d.createElementVNode("p",Jbe,d.toDisplayString(A.type),1),A.type==="Banners"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createVNode(d.unref(nr),d.mergeProps({modelValue:A.data,"onUpdate:modelValue":_=>A.data=_,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},{ref_for:!0},r.value,{disabled:!i(A.data),onStart:h[0]||(h[0]=_=>n.value=!0),onEnd:h[1]||(h[1]=_=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:_})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(A.data)}]),key:A.id},[d.createElementVNode("div",Qbe,[i(A.data)?(d.openBlock(),d.createElementBlock("div",e2e,[d.createVNode(y,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(v,{class:"btn-delete",onClick:L=>c(A.data,A.id)},null,8,["onClick"])]),d.createElementVNode("p",t2e,d.toDisplayString(_.type),1),d.createVNode(m,{class:"mt-2",modelValue:_.title,"onUpdate:modelValue":L=>_.title=L,placeholder:"标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(m,{class:"mt-2",modelValue:_.alt,"onUpdate:modelValue":L=>_.alt=L,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(m,{class:"mt-2",modelValue:_.link,"onUpdate:modelValue":L=>_.link=L,placeholder:"链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),_.type==="Image"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createElementVNode("img",{class:"item-img",src:_.imgSrc},null,8,n2e),d.createElementVNode("div",r2e,[d.createVNode(m,{modelValue:_.imgSrc,"onUpdate:modelValue":L=>_.imgSrc=L,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(b,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createElementVNode("video",{class:"item-img",src:_.videoSrc,controls:""},null,8,o2e),d.createElementVNode("div",i2e,[d.createVNode(m,{modelValue:_.videoSrc,"onUpdate:modelValue":L=>_.videoSrc=L,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(b,{class:"fit-content","show-file-list":!1,action:"/"})]),d.createElementVNode("img",{class:"item-img",src:_.imgSrc},null,8,a2e),d.createElementVNode("div",u2e,[d.createVNode(m,{modelValue:_.imgSrc,"onUpdate:modelValue":L=>_.imgSrc=L,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(b,{class:"fit-content","show-file-list":!1,action:"/"})])],64)),d.createVNode(g,{class:"mt-2","model-value":_.isExternal},{default:d.withCtx(()=>h[4]||(h[4]=[d.createTextVNode("是否外部链接")])),_:2,__:[4]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createVNode(D,{class:"mt-2",type:"primary"},{default:d.withCtx(()=>[d.createVNode(E,{size:"mini",type:"outline",onClick:_=>s(A.data,"Image")},{icon:d.withCtx(()=>[d.createVNode(w)]),default:d.withCtx(()=>[h[5]||(h[5]=d.createTextVNode(" 图片 "))]),_:2,__:[5]},1032,["onClick"]),d.createVNode(E,{size:"mini",type:"outline",onClick:_=>s(A.data,"Video")},{icon:d.withCtx(()=>[d.createVNode(w)]),default:d.withCtx(()=>[h[6]||(h[6]=d.createTextVNode(" 视频 "))]),_:2,__:[6]},1032,["onClick"])]),_:2},1024)],64)):d.createCommentVNode("",!0),A.type==="Links"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createVNode(d.unref(nr),d.mergeProps({modelValue:A.data,"onUpdate:modelValue":_=>A.data=_,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},{ref_for:!0},o.value,{disabled:!i(A.data),onStart:h[2]||(h[2]=_=>n.value=!0),onEnd:h[3]||(h[3]=_=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:_})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(A.data)}]),key:_.id},[d.createElementVNode("div",s2e,[i(A.data)?(d.openBlock(),d.createElementBlock("div",l2e,[d.createVNode(y,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(v,{class:"btn-delete",onClick:L=>f(A.data,_.id)},null,8,["onClick"])]),d.createVNode(C,{href:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(_.text),1)]),_:2},1024),d.createElementVNode("div",c2e,[d.createVNode(m,{class:"action-text",modelValue:_.text,"onUpdate:modelValue":L=>_.text=L,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(m,{modelValue:_.url,"onUpdate:modelValue":L=>_.url=L,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(g,{"model-value":_.isExternal},{default:d.withCtx(()=>h[7]||(h[7]=[d.createTextVNode("是否外部链接")])),_:2,__:[7]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:_=>l(A.data)},[d.createVNode(w),h[8]||(h[8]=d.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,d2e)],64)):d.createCommentVNode("",!0)]))),128))])])]),_:1},8,["visible"])}}}),p2e=ct(f2e,[["__scopeId","data-v-adf57909"]]),h2e={class:"banner-quicklinks"},g2e={class:"quick-links__list"},v2e=d.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},setup(e){const t=e,n=d.ref(null),r=d.ref(!1),o=d.ref(!1),i=()=>{const c=n.value;c&&(r.value=c.scrollLeft>0,o.value=c.scrollLeft+c.clientWidth<c.scrollWidth)},a=()=>{const c=n.value;c&&c.scrollBy({left:-c.clientWidth/1.5,behavior:"smooth"})},u=()=>{const c=n.value;c&&c.scrollBy({left:c.clientWidth/1.5,behavior:"smooth"})},s=()=>{i()};return d.watch(()=>t.data,async()=>{await d.nextTick(),i()}),d.onMounted(()=>{window.addEventListener("resize",i),d.nextTick(i)}),d.onUnmounted(()=>{window.removeEventListener("resize",i)}),(c,l)=>(d.openBlock(),d.createElementBlock("div",h2e,[d.withDirectives(d.createElementVNode("div",{class:"quick-links__nav__prev",onClick:a},null,512),[[d.vShow,r.value]]),d.createElementVNode("div",{class:"quick-links__wrapper",ref_key:"quickLinksWrapperRef",ref:n,onScroll:s},[d.createElementVNode("div",g2e,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.data,f=>(d.openBlock(),d.createBlock(fv,{key:f.id,data:f,hasHoverBg:!1},null,8,["data"]))),128))])],544),d.withDirectives(d.createElementVNode("div",{class:"quick-links__nav__next",onClick:u},null,512),[[d.vShow,o.value]])]))}}),m2e=ct(v2e,[["__scopeId","data-v-7ef2a320"]]),y2e={class:"swiper-wrapper"},b2e={class:"swiper-slide__media"},w2e=["src","alt"],E2e={key:1,class:"video-player"},x2e=["poster"],C2e=["src"],S2e=["href"],D2e={class:"swiper-slide__body"},k2e={class:"swiper-slide__body__title text-center"},A2e={class:"video-box"},O2e=["src"],B2e=d.defineComponent({__name:"index",props:{data:{},imageInterval:{},videoAutoNext:{type:Boolean}},setup(e,{expose:t}){const n=e,r=d.ref();let o=null,i=0,a=null,u=null,s=null,c=null,l=null;const f=async()=>{try{const R=await Promise.resolve().then(()=>require("./swiper-JiLDDxAF.js")),{Navigation:I,Pagination:q,Autoplay:z}=await Promise.resolve().then(()=>require("./index-Ch_ldWmA.js"));u=R.Swiper,s=I,c=q,l=z,await Promise.resolve().then(()=>require("./swiper-Dyvby5gX.js")),await Promise.resolve().then(()=>require("./navigation-Dyvby5gX.js")),await Promise.resolve().then(()=>require("./pagination-Dyvby5gX.js")),r.value&&(o=new u(r.value,{modules:[s,c,l],autoHeight:!1,speed:1e3,effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{el:".swiper-pagination",clickable:!0},on:{slideChange:H=>{i=H.activeIndex,v(i)},touchStart:()=>{h()},touchEnd:()=>{setTimeout(()=>{const H=n.data[p.value];H&&H.type==="Image"&&y()},100)}}}))}catch(R){console.error("Failed to load Swiper:",R)}},p=d.ref(0),h=()=>{a&&(clearTimeout(a),a=null)},y=()=>{h();const R=n.data[p.value];if(R&&R.type==="Image"){const I=n.imageInterval||5e3;a=setTimeout(()=>{o&&o.slideNext()},I)}},v=R=>{h(),D(),p.value=R;const I=n.data[p.value];I.type==="Video"?E():I.type==="Image"&&y()},m=()=>{w.value=!1,n.videoAutoNext!==!1&&o&&setTimeout(()=>{o.slideNext()},200)},b=d.ref([]),g=(R,I)=>{const q=R&&"$el"in R?R.$el:R;q instanceof HTMLVideoElement&&(b.value[I]=q)},w=d.ref(!1),E=()=>{b.value[p.value]&&(b.value[p.value].play(),w.value=!0,h())},D=()=>{b.value[p.value]&&(b.value[p.value].pause(),w.value=!1)},C=d.ref(!1),x=d.ref(),A=d.ref(),_=()=>{D(),A.value=n.data[p.value].videoSrc,d.nextTick(()=>{var R;C.value=!0,(R=x.value)==null||R.play()})},L=()=>{var R;(R=x.value)==null||R.pause(),C.value=!1};return d.onMounted(async()=>{await f(),v(0)}),d.onUnmounted(()=>{h(),o&&o.destroy(!0,!0)}),t({initSwiper:f}),(R,I)=>{const q=d.resolveComponent("a-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"swiper-container",ref_key:"swiperContainer",ref:r},[d.createElementVNode("div",y2e,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(R.data,(z,H)=>(d.openBlock(),d.createElementBlock("div",{class:"swiper-slide",key:z.id},[d.createElementVNode("div",b2e,[z.type==="Image"?(d.openBlock(),d.createElementBlock("img",{key:0,class:"swiper-slide__media-img",src:z.imgSrc,alt:z.alt},null,8,w2e)):z.type==="Video"?(d.openBlock(),d.createElementBlock("div",E2e,[d.createElementVNode("video",{ref_for:!0,ref:Y=>g(Y,H),playsinline:"",poster:z.imgSrc,onEnded:m},[d.createElementVNode("source",{src:z.videoSrc,type:"video/mp4"},null,8,C2e)],40,x2e)])):d.createCommentVNode("",!0)]),d.createElementVNode("a",{href:z.link,target:"_blank",class:"swiper-slide__link"},null,8,S2e),d.createElementVNode("div",D2e,[d.createElementVNode("div",k2e,d.toDisplayString(z.title),1),z.type==="Video"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[w.value?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:0,type:"button",class:"swiper-slide__body__play",onClick:d.withModifiers(E,["stop"])})),d.createElementVNode("button",{type:"button",class:"swiper-slide__body__link",onClick:d.withModifiers(_,["stop"])},"观看完整视频")],64)):d.createCommentVNode("",!0)])]))),128))]),I[1]||(I[1]=d.createElementVNode("div",{class:"swiper-pagination"},null,-1)),I[2]||(I[2]=d.createElementVNode("div",{class:"swiper-button-next"},null,-1)),I[3]||(I[3]=d.createElementVNode("div",{class:"swiper-button-prev"},null,-1))],512),d.createVNode(q,{visible:C.value,"onUpdate:visible":I[0]||(I[0]=z=>C.value=z),footer:!1,width:"1200px",onCancel:L},{title:d.withCtx(()=>I[4]||(I[4]=[d.createTextVNode(" 观看完整视频 ")])),default:d.withCtx(()=>[d.createElementVNode("div",A2e,[d.createElementVNode("video",{ref_key:"videoElement",ref:x,controls:""},[d.createElementVNode("source",{src:A.value,type:"video/mp4"},null,8,O2e)],512)])]),_:1},8,["visible"])],64)}}}),_2e=ct(B2e,[["__scopeId","data-v-2e7fac84"]]),N2e=d.defineComponent({name:"HeroSlide",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var p,h;if(n.modelValue&&n.modelValue.data)return;const f={id:((p=n.modelValue)==null?void 0:p.id)||ye(),type:"HeroSlide",readOnly:((h=n.modelValue)==null?void 0:h.readOnly)||!1,data:[{id:ye(),type:"Banners",data:[{id:ye(),type:"Image",title:"耀华国际教育学校浙江桐乡",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:"",link:"https://www.baidu.com"},{id:ye(),type:"Video",title:"耀华国际教育学校浙江桐乡",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:"",link:"",videoSrc:"https://mvideo.ycyw.com/2e1a9441vodgzp1253458132/a31402d51397757891052265568/SW8B19vOtzMA.mp4"}]},{id:ye(),type:"Links",data:[{id:ye(),text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]}]};r("update:modelValue",f)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)},c=d.ref(),l=()=>{var f;(f=c.value)==null||f.initSwiper()};return o(),(f,p)=>{var h,y;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"hero-slide has-quick-links is-video-and-image",onMouseenter:p[2]||(p[2]=v=>i.value=!0),onMouseleave:p[3]||(p[3]=v=>i.value=!1)},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((h=e.modelValue)==null?void 0:h.data,v=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:v.id},[v.type==="Banners"?(d.openBlock(),d.createBlock(_2e,{key:0,ref_for:!0,ref_key:"swiperRef",ref:c,data:v.data},null,8,["data"])):d.createCommentVNode("",!0),v.type==="Links"&&v.data.length?(d.openBlock(),d.createBlock(m2e,{key:1,data:v.data},null,8,["data"])):d.createCommentVNode("",!0)],64))),128)),(y=e.modelValue)!=null&&y.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":p[0]||(p[0]=v=>i.value=v),onHandleEdit:p[1]||(p[1]=v=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],32),d.createVNode(p2e,{show:a.value,"onUpdate:show":p[4]||(p[4]=v=>a.value=v),data:e.modelValue,onUpdateSwiper:l},null,8,["show","data"])],64)}}}),J5=ct(N2e,[["__scopeId","data-v-fbb9a937"]]),T2e={class:"setting-content"},F2e=["src"],V2e={class:"item-uplaod flex items-center"},P2e=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=t,r=()=>{n("update:show",!1)};return(o,i)=>{const a=d.resolveComponent("a-input"),u=d.resolveComponent("a-upload"),s=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(s,{width:500,visible:e.show,footer:!1,onCancel:r,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>{var c,l;return[d.createElementVNode("div",T2e,[i[2]||(i[2]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(a,{modelValue:e.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=f=>e.data.data.title=f),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),i[3]||(i[3]=d.createElementVNode("p",{class:"item-title"},"图片",-1)),d.createElementVNode("img",{class:"item-img",src:(l=(c=e.data)==null?void 0:c.data)==null?void 0:l.imgSrc},null,8,F2e),d.createElementVNode("div",V2e,[d.createVNode(a,{modelValue:e.data.data.imgSrc,"onUpdate:modelValue":i[1]||(i[1]=f=>e.data.data.imgSrc=f),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),d.createVNode(u,{class:"fit-content","show-file-list":!1,action:"/"})])])]}),_:1},8,["visible"])}}}),j2e=ct(P2e,[["__scopeId","data-v-1bc09ad8"]]),L2e={class:"banner-image__title is-zh"},I2e=d.defineComponent({name:"BannerImage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var l,f;if(n.modelValue&&n.modelValue.data)return;const c={id:((l=n.modelValue)==null?void 0:l.id)||ye(),type:"BannerImage",readOnly:((f=n.modelValue)==null?void 0:f.readOnly)||!1,data:{title:"About YWIES",imgSrc:"https://osswebsite-test.cedim.cn/ywies-tx/static-images/about-ywies/01_About_YWIES_1_Header.jpg"}};r("update:modelValue",c)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)};return o(),(c,l)=>{var f,p,h,y,v;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"banner-image",onMouseenter:l[2]||(l[2]=m=>i.value=!0),onMouseleave:l[3]||(l[3]=m=>i.value=!1)},[d.createElementVNode("div",{class:"banner-image__image",style:d.normalizeStyle({backgroundImage:"url("+((p=(f=e.modelValue)==null?void 0:f.data)==null?void 0:p.imgSrc)+")","background-position":"center"})},[d.createElementVNode("div",L2e,d.toDisplayString((y=(h=e.modelValue)==null?void 0:h.data)==null?void 0:y.title),1)],4),(v=e.modelValue)!=null&&v.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":l[0]||(l[0]=m=>i.value=m),onHandleEdit:l[1]||(l[1]=m=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],32),d.createVNode(j2e,{show:a.value,"onUpdate:show":l[4]||(l[4]=m=>a.value=m),data:e.modelValue},null,8,["show","data"])],64)}}}),Q5=ct(I2e,[["__scopeId","data-v-6f9fc6c4"]]),R2e={class:"setting-content"},M2e={class:"setting-header flex items-center"},$2e={class:"setting-header flex items-center"},z2e={class:"setting-body"},H2e={class:"setting-item"},U2e={class:"btn-group"},W2e={key:0,class:"drag-handle"},G2e={class:"item-action flex items-center"},q2e=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=d.ref(!1),r=d.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),o=l=>l&&l.length>1,i=e,a=t,u=()=>{a("update:show",!1)},s=l=>{i.data.data.push({id:ye(),type:l,text:"查看更多",url:void 0,isExternal:!1})},c=l=>{i.data.data=i.data.data.filter(f=>f.id!==l)};return(l,f)=>{const p=d.resolveComponent("a-option"),h=d.resolveComponent("a-select"),y=d.resolveComponent("icon-plus"),v=d.resolveComponent("a-button"),m=d.resolveComponent("a-button-group"),b=d.resolveComponent("icon-drag-arrow"),g=d.resolveComponent("icon-delete"),w=d.resolveComponent("a-input"),E=d.resolveComponent("a-checkbox"),D=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(D,{width:500,visible:e.show,footer:!1,onCancel:u,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",R2e,[d.createElementVNode("div",M2e,[f[13]||(f[13]=d.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),d.createVNode(h,{modelValue:e.data.width,"onUpdate:modelValue":f[0]||(f[0]=C=>e.data.width=C),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(p,{value:""},{default:d.withCtx(()=>f[9]||(f[9]=[d.createTextVNode("默认")])),_:1,__:[9]}),d.createVNode(p,{value:"small"},{default:d.withCtx(()=>f[10]||(f[10]=[d.createTextVNode("小")])),_:1,__:[10]}),d.createVNode(p,{value:"middle"},{default:d.withCtx(()=>f[11]||(f[11]=[d.createTextVNode("中")])),_:1,__:[11]}),d.createVNode(p,{value:"max"},{default:d.withCtx(()=>f[12]||(f[12]=[d.createTextVNode("大")])),_:1,__:[12]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",$2e,[f[16]||(f[16]=d.createElementVNode("span",{class:"header-title"},"组件背景",-1)),d.createVNode(h,{modelValue:e.data.bgColor,"onUpdate:modelValue":f[1]||(f[1]=C=>e.data.bgColor=C),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(p,{value:"#ffffff"},{default:d.withCtx(()=>f[14]||(f[14]=[d.createTextVNode("白色")])),_:1,__:[14]}),d.createVNode(p,{value:"#F7F7FA"},{default:d.withCtx(()=>f[15]||(f[15]=[d.createTextVNode("灰色")])),_:1,__:[15]})]),_:1},8,["modelValue"])]),d.createVNode(m,{type:"primary"},{default:d.withCtx(()=>[d.createVNode(v,{size:"mini",onClick:f[2]||(f[2]=C=>s(""))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[17]||(f[17]=d.createTextVNode(" 默认按钮 "))]),_:1,__:[17]}),d.createVNode(v,{size:"mini",onClick:f[3]||(f[3]=C=>s("white"))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[18]||(f[18]=d.createTextVNode(" 白色按钮 "))]),_:1,__:[18]}),d.createVNode(v,{size:"mini",onClick:f[4]||(f[4]=C=>s("light"))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[19]||(f[19]=d.createTextVNode(" 亮色按钮 "))]),_:1,__:[19]}),d.createVNode(v,{size:"mini",onClick:f[5]||(f[5]=C=>s("blue"))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[20]||(f[20]=d.createTextVNode(" 蓝色按钮 "))]),_:1,__:[20]})]),_:1}),d.createElementVNode("div",z2e,[d.createElementVNode("div",H2e,[f[22]||(f[22]=d.createElementVNode("p",{class:"item-name"},"按钮",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.data,"onUpdate:modelValue":f[6]||(f[6]=C=>e.data.data=C),"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},r.value,{disabled:!o(e.data.data),onStart:f[7]||(f[7]=C=>n.value=!0),onEnd:f[8]||(f[8]=C=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:C})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!o(e.data.data)}]),key:C.id},[d.createElementVNode("div",U2e,[o(e.data.data)?(d.openBlock(),d.createElementBlock("div",W2e,[d.createVNode(b,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(g,{class:"btn-delete",onClick:x=>c(C.id)},null,8,["onClick"])]),d.createVNode(v,{type:"primary"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(C.text),1)]),_:2},1024),d.createElementVNode("div",G2e,[d.createVNode(w,{class:"action-text",modelValue:C.text,"onUpdate:modelValue":x=>C.text=x,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(w,{modelValue:C.url,"onUpdate:modelValue":x=>C.url=x,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(E,{"model-value":C.isExternal},{default:d.withCtx(()=>f[21]||(f[21]=[d.createTextVNode("是否外部链接")])),_:2,__:[21]},1032,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),K2e=ct(q2e,[["__scopeId","data-v-3f125042"]]),Y2e={class:"btn-list__row"},X2e=["href"],Z2e={class:"btn-primary__text"},J2e=d.defineComponent({name:"BtnList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var l,f;if(n.modelValue&&n.modelValue.data)return;const c={id:((l=n.modelValue)==null?void 0:l.id)||ye(),type:"BtnList",readOnly:((f=n.modelValue)==null?void 0:f.readOnly)||!1,width:"",bgColor:"",data:[{id:ye(),type:"",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:ye(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:ye(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:ye(),type:"blue",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]};r("update:modelValue",c)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)};return o(),(c,l)=>{var f,p,h,y,v;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"btn-list center",style:d.normalizeStyle({backgroundColor:(f=e.modelValue)==null?void 0:f.bgColor}),onMouseenter:l[2]||(l[2]=m=>i.value=!0),onMouseleave:l[3]||(l[3]=m=>i.value=!1)},[d.createElementVNode("div",{class:d.normalizeClass(["btn-list__container",[(p=e.modelValue)!=null&&p.width?`container-content-${(h=e.modelValue)==null?void 0:h.width}`:"container-content"]])},[d.createElementVNode("div",Y2e,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((y=e.modelValue)==null?void 0:y.data,m=>(d.openBlock(),d.createElementBlock("div",{class:"btn-list__item",key:m.id},[d.createElementVNode("a",{href:m.url||"#",class:d.normalizeClass(["size-normal btn-primary",[m.type?`btn-primary--${m.type}`:""]])},[d.createElementVNode("div",Z2e,d.toDisplayString(m.text),1),l[5]||(l[5]=d.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,X2e)]))),128))])],2),(v=e.modelValue)!=null&&v.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":l[0]||(l[0]=m=>i.value=m),onHandleEdit:l[1]||(l[1]=m=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],36),d.createVNode(K2e,{show:a.value,"onUpdate:show":l[4]||(l[4]=m=>a.value=m),data:e.modelValue},null,8,["show","data"])],64)}}}),Ty=ct(J2e,[["__scopeId","data-v-d0761976"]]),Q2e=["src"],ewe={class:"item-uplaod flex items-center"},twe=["src"],nwe={class:"item-uplaod flex items-center"},rwe={class:"item-title pt-2"},owe={class:"btn-group"},iwe={key:0,class:"drag-handle"},awe={class:"item-action flex items-center"},uwe={class:"btn-group"},swe={key:0,class:"drag-handle"},lwe=d.defineComponent({__name:"setting",props:{data:{type:Object,default:()=>{}},showLogo:{type:Boolean,default:!0},maxNum:{type:Number,default:2},canAddParagraph:{type:Boolean,default:!1}},setup(e){const t=d.ref(!1),n=d.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),r=d.computed(()=>({animation:200,group:"paragraphs",disabled:!1,ghostClass:"ghost"})),o=c=>c&&c.length>1,i=e,a=(c,l)=>{l.length>=i.maxNum||l.push({id:ye(),type:c,text:"查看更多",url:void 0,isExternal:!1})},u=(c,l)=>{c.splice(c.findIndex(f=>f.id===l),1)},s=c=>{c.push({title:"耀华国际教育学校浙江桐乡",subTitle:"耀华国际教育学校浙江桐乡",name:"耀华国际教育学校浙江桐乡",label:"123",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",buttonList:{id:ye(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[]},paragraphs:{title:"",content:""}})};return(c,l)=>{const f=d.resolveComponent("a-input"),p=d.resolveComponent("a-upload"),h=d.resolveComponent("icon-drag-arrow"),y=d.resolveComponent("icon-delete"),v=d.resolveComponent("a-button"),m=d.resolveComponent("a-checkbox"),b=d.resolveComponent("icon-plus"),g=d.resolveComponent("a-button-group");return d.openBlock(),d.createElementBlock(d.Fragment,null,[e.showLogo?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[l[18]||(l[18]=d.createElementVNode("p",{class:"item-title"},"学校logo",-1)),d.createElementVNode("img",{class:"item-img",src:e.data.logo},null,8,Q2e),d.createElementVNode("div",ewe,[d.createVNode(f,{modelValue:e.data.logo,"onUpdate:modelValue":l[0]||(l[0]=w=>e.data.logo=w),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),d.createVNode(p,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):d.createCommentVNode("",!0),l[27]||(l[27]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(f,{modelValue:e.data.title,"onUpdate:modelValue":l[1]||(l[1]=w=>e.data.title=w),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),l[28]||(l[28]=d.createElementVNode("p",{class:"item-title"},"子标题",-1)),d.createVNode(f,{modelValue:e.data.subTitle,"onUpdate:modelValue":l[2]||(l[2]=w=>e.data.subTitle=w),placeholder:"请输入子标题","allow-clear":""},null,8,["modelValue"]),l[29]||(l[29]=d.createElementVNode("p",{class:"item-title"},"名称",-1)),d.createVNode(f,{modelValue:e.data.name,"onUpdate:modelValue":l[3]||(l[3]=w=>e.data.name=w),placeholder:"请输入名称","allow-clear":""},null,8,["modelValue"]),l[30]||(l[30]=d.createElementVNode("p",{class:"item-title"},"标签",-1)),d.createVNode(f,{modelValue:e.data.label,"onUpdate:modelValue":l[4]||(l[4]=w=>e.data.label=w),placeholder:"请输入标签","allow-clear":""},null,8,["modelValue"]),l[31]||(l[31]=d.createElementVNode("p",{class:"item-title"},"图片",-1)),d.createElementVNode("img",{class:"item-img",src:e.data.imgSrc},null,8,twe),d.createElementVNode("div",nwe,[d.createVNode(f,{modelValue:e.data.imgSrc,"onUpdate:modelValue":l[5]||(l[5]=w=>e.data.imgSrc=w),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),d.createVNode(p,{class:"fit-content","show-file-list":!1,action:"/"})]),d.createVNode(f,{class:"mt-2",modelValue:e.data.alt,"onUpdate:modelValue":l[6]||(l[6]=w=>e.data.alt=w),placeholder:"图片alt","allow-clear":""},null,8,["modelValue"]),d.createElementVNode("p",rwe,"按钮(最多"+d.toDisplayString(e.maxNum)+"个)",1),d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.buttonList.data,"onUpdate:modelValue":l[7]||(l[7]=w=>e.data.buttonList.data=w),"component-data":{tag:"div",type:"transition-group",name:t.value?null:"flip-list"}},n.value,{disabled:!o(e.data.buttonList.data),onStart:l[8]||(l[8]=w=>t.value=!0),onEnd:l[9]||(l[9]=w=>t.value=!1),"item-key":"id"}),{item:d.withCtx(({element:w})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button item-link draggable-item",{"sortable-disabled":!o(e.data.buttonList.data)}]),key:w.id},[d.createElementVNode("div",owe,[o(e.data.buttonList.data)?(d.openBlock(),d.createElementBlock("div",iwe,[d.createVNode(h,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(y,{class:"btn-delete",onClick:E=>u(e.data.buttonList.data,w.id)},null,8,["onClick"])]),d.createVNode(v,{type:"primary"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(w.text),1)]),_:2},1024),d.createElementVNode("div",awe,[d.createVNode(f,{class:"action-text",modelValue:w.text,"onUpdate:modelValue":E=>w.text=E,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(f,{modelValue:w.url,"onUpdate:modelValue":E=>w.url=E,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(m,{"model-value":w.isExternal},{default:d.withCtx(()=>l[19]||(l[19]=[d.createTextVNode("是否外部链接")])),_:2,__:[19]},1032,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"]),d.createVNode(g,{class:"mt-2",type:"primary"},{default:d.withCtx(()=>[d.createVNode(v,{size:"mini",onClick:l[10]||(l[10]=w=>a("default",e.data.buttonList.data))},{icon:d.withCtx(()=>[d.createVNode(b)]),default:d.withCtx(()=>[l[20]||(l[20]=d.createTextVNode(" 默认按钮 "))]),_:1,__:[20]}),d.createVNode(v,{size:"mini",onClick:l[11]||(l[11]=w=>a("white",e.data.buttonList.data))},{icon:d.withCtx(()=>[d.createVNode(b)]),default:d.withCtx(()=>[l[21]||(l[21]=d.createTextVNode(" 白色按钮 "))]),_:1,__:[21]}),d.createVNode(v,{size:"mini",onClick:l[12]||(l[12]=w=>a("light",e.data.buttonList.data))},{icon:d.withCtx(()=>[d.createVNode(b)]),default:d.withCtx(()=>[l[22]||(l[22]=d.createTextVNode(" 亮色按钮 "))]),_:1,__:[22]}),d.createVNode(v,{size:"mini",onClick:l[13]||(l[13]=w=>a("blue",e.data.buttonList.data))},{icon:d.withCtx(()=>[d.createVNode(b)]),default:d.withCtx(()=>[l[23]||(l[23]=d.createTextVNode(" 蓝色按钮 "))]),_:1,__:[23]})]),_:1}),l[32]||(l[32]=d.createElementVNode("p",{class:"item-name mt-2"},"段落",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.paragraphs,"onUpdate:modelValue":l[14]||(l[14]=w=>e.data.paragraphs=w),"component-data":{tag:"div",type:"transition-group",name:t.value?null:"flip-list"}},r.value,{disabled:!o(e.data.paragraphs),onStart:l[15]||(l[15]=w=>t.value=!0),onEnd:l[16]||(l[16]=w=>t.value=!1),"item-key":"id"}),{item:d.withCtx(({element:w})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button item-link draggable-item",{"sortable-disabled":!o(e.data.paragraphs)}]),key:w.id},[d.createElementVNode("div",uwe,[o(e.data.paragraphs)?(d.openBlock(),d.createElementBlock("div",swe,[d.createVNode(h,{class:"drag-icon"})])):d.createCommentVNode("",!0),e.canAddParagraph?(d.openBlock(),d.createBlock(y,{key:1,class:"btn-delete",onClick:E=>u(e.data.paragraphs,w.id)},null,8,["onClick"])):d.createCommentVNode("",!0)]),l[24]||(l[24]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(f,{modelValue:w.title,"onUpdate:modelValue":E=>w.title=E,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),l[25]||(l[25]=d.createElementVNode("p",{class:"item-title mt-2"},"内容",-1)),d.createVNode(d.unref(Sp),{modelValue:w.content,"onUpdate:modelValue":E=>w.content=E},null,8,["modelValue","onUpdate:modelValue"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.canAddParagraph?(d.openBlock(),d.createElementBlock("div",{key:1,class:"item-add-btn flex items-center",onClick:l[17]||(l[17]=w=>s(e.data.paragraphs))},[d.createVNode(b),l[26]||(l[26]=d.createElementVNode("span",{class:"btn-text"},"添加段落",-1))])):d.createCommentVNode("",!0)],64)}}}),JM=ct(lwe,[["__scopeId","data-v-6523839a"]]),cwe={class:"setting-content"},dwe={class:"setting-header flex items-center"},fwe={class:"setting-header flex items-center"},pwe={class:"setting-header flex items-center"},hwe={class:"setting-body"},gwe={class:"setting-item"},vwe={class:"btn-group"},mwe={key:0,class:"drag-handle"},ywe=["src"],bwe={class:"item-uplaod flex items-center"},wwe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=d.ref(!1),r=d.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),o=l=>l&&l.length>1,i=e,a=t,u=()=>{a("update:show",!1)},s=l=>{i.data.data.push({id:ye(),type:l,text:"查看更多",url:void 0,isExternal:!1,isLight:!1})},c=l=>{i.data.data=i.data.data.filter(f=>f.id!==l)};return(l,f)=>{const p=d.resolveComponent("a-option"),h=d.resolveComponent("a-select"),y=d.resolveComponent("a-input"),v=d.resolveComponent("icon-plus"),m=d.resolveComponent("a-button"),b=d.resolveComponent("a-button-group"),g=d.resolveComponent("icon-drag-arrow"),w=d.resolveComponent("icon-delete"),E=d.resolveComponent("a-upload"),D=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(D,{width:500,visible:e.show,footer:!1,onCancel:u,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",cwe,[d.createElementVNode("div",dwe,[f[10]||(f[10]=d.createElementVNode("span",{class:"header-title"},"组件背景",-1)),d.createVNode(h,{modelValue:e.data.bgColor,"onUpdate:modelValue":f[0]||(f[0]=C=>e.data.bgColor=C),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(p,{value:"#ffffff"},{default:d.withCtx(()=>f[8]||(f[8]=[d.createTextVNode("白色")])),_:1,__:[8]}),d.createVNode(p,{value:"#F7F7FA"},{default:d.withCtx(()=>f[9]||(f[9]=[d.createTextVNode("灰色")])),_:1,__:[9]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",fwe,[f[11]||(f[11]=d.createElementVNode("span",{class:"header-title"},"pc列数",-1)),d.createVNode(y,{modelValue:e.data.desktopCol,"onUpdate:modelValue":f[1]||(f[1]=C=>e.data.desktopCol=C),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),d.createElementVNode("div",pwe,[f[12]||(f[12]=d.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),d.createVNode(y,{modelValue:e.data.mobileCol,"onUpdate:modelValue":f[2]||(f[2]=C=>e.data.mobileCol=C),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),d.createVNode(b,{type:"primary"},{default:d.withCtx(()=>[d.createVNode(m,{size:"mini",onClick:f[3]||(f[3]=C=>s("GalleryListItem"))},{icon:d.withCtx(()=>[d.createVNode(v)]),default:d.withCtx(()=>[f[13]||(f[13]=d.createTextVNode(" 普通项目 "))]),_:1,__:[13]}),d.createVNode(m,{size:"mini",onClick:f[4]||(f[4]=C=>s("GalleryListProfile"))},{icon:d.withCtx(()=>[d.createVNode(v)]),default:d.withCtx(()=>[f[14]||(f[14]=d.createTextVNode(" 文章项目 "))]),_:1,__:[14]})]),_:1}),d.createElementVNode("div",hwe,[d.createElementVNode("div",gwe,[d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.data,"onUpdate:modelValue":f[5]||(f[5]=C=>e.data.data=C),"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},r.value,{disabled:!o(e.data.data),onStart:f[6]||(f[6]=C=>n.value=!0),onEnd:f[7]||(f[7]=C=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:C})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!o(e.data.data)}]),key:C.id},[d.createElementVNode("div",vwe,[o(e.data.data)?(d.openBlock(),d.createElementBlock("div",mwe,[d.createVNode(g,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(w,{class:"btn-delete",onClick:x=>c(C.id)},null,8,["onClick"])]),f[15]||(f[15]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(y,{modelValue:C.title,"onUpdate:modelValue":x=>C.title=x,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),f[16]||(f[16]=d.createElementVNode("p",{class:"item-title"},"文本",-1)),d.createVNode(y,{modelValue:C.text,"onUpdate:modelValue":x=>C.text=x,placeholder:"请输入文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),f[17]||(f[17]=d.createElementVNode("p",{class:"item-title"},"图片",-1)),d.createElementVNode("img",{class:"item-img",src:C.imgSrc},null,8,ywe),d.createElementVNode("div",bwe,[d.createVNode(y,{modelValue:C.imgSrc,"onUpdate:modelValue":x=>C.imgSrc=x,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(E,{class:"fit-content","show-file-list":!1,action:"/"})]),d.createVNode(y,{class:"mt-2",modelValue:C.alt,"onUpdate:modelValue":x=>C.alt=x,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),f[18]||(f[18]=d.createElementVNode("p",{class:"item-title"},"网址",-1)),d.createVNode(y,{modelValue:C.url,"onUpdate:modelValue":x=>C.url=x,placeholder:"请输入网址","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),f[19]||(f[19]=d.createElementVNode("p",{class:"item-title"},"Profile Information",-1)),C.profile?(d.openBlock(),d.createBlock(JM,{key:0,data:C.profile,showLogo:!1,canAddParagraph:!0},null,8,["data"])):d.createCommentVNode("",!0)],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),Ewe=ct(wwe,[["__scopeId","data-v-33218bbc"]]),xwe={class:"lightbox__content"},Cwe={class:"lightbox__content__head"},Swe={class:"lightbox__content__head__image"},Dwe=["src","alt"],kwe={class:"lightbox__content__head__info"},Awe={class:"lightbox__content__head__info__title"},Owe={class:"lightbox__content__head__info__subtitle"},Bwe={class:"lightbox__content__head__info__label"},_we={class:"lightbox__content__head__info__btn"},Nwe={class:"lightbox__content__main",style:{"--head-height":"297px"}},Twe={class:"scroll-bar"},Fwe={"data-simplebar-auto-hide":"false",class:"simple-bar","data-simplebar":"init"},Vwe={class:"simplebar-wrapper",style:{margin:"0px -24px 0px 0px"}},Pwe={class:"simplebar-mask"},jwe={class:"simplebar-offset",style:{right:"0px",bottom:"0px"}},Lwe={class:"simplebar-content-wrapper",tabindex:"0",role:"region","aria-label":"scrollable content",style:{height:"auto",overflow:"hidden"}},Iwe={class:"simplebar-content",style:{padding:"0px 24px 0px 0px"}},Rwe={class:"lightbox__content__body"},Mwe={class:"lightbox__content__body__title"},$we=["innerHTML"],zwe={class:"lightbox__content__footer"},Hwe={class:"lightbox__content__footer__logo"},Uwe=["src"],Wwe=d.defineComponent({__name:"index",props:{data:{type:Object,default:()=>{}}},emits:["close"],setup(e,{emit:t}){const n=t,r=()=>{n("close")};return(o,i)=>{var a,u,s,c,l,f;return d.openBlock(),d.createElementBlock("div",xwe,[d.createElementVNode("div",{class:"lightbox__content__cross i i-cross-modal",onClick:r}),d.createElementVNode("div",{class:"lightbox__content__prev i i-arrow-prev",onClick:r}),d.createElementVNode("div",Cwe,[d.createElementVNode("div",Swe,[d.createElementVNode("img",{src:(a=e.data)==null?void 0:a.imgSrc,alt:(u=e.data)==null?void 0:u.alt},null,8,Dwe)]),d.createElementVNode("div",kwe,[d.createElementVNode("h2",Awe,d.toDisplayString((s=e.data)==null?void 0:s.title),1),d.createElementVNode("h6",Owe,d.toDisplayString((c=e.data)==null?void 0:c.subTitle),1),d.createElementVNode("div",Bwe,d.toDisplayString((l=e.data)==null?void 0:l.label),1),d.createElementVNode("div",_we,[d.createVNode(Ty,{modelValue:e.data.buttonList,"onUpdate:modelValue":i[0]||(i[0]=p=>e.data.buttonList=p)},null,8,["modelValue"])])])]),d.createElementVNode("div",Nwe,[d.createElementVNode("div",Twe,[d.createElementVNode("div",Fwe,[d.createElementVNode("div",Vwe,[i[1]||(i[1]=d.createElementVNode("div",{class:"simplebar-height-auto-observer-wrapper"},[d.createElementVNode("div",{class:"simplebar-height-auto-observer"})],-1)),d.createElementVNode("div",Pwe,[d.createElementVNode("div",jwe,[d.createElementVNode("div",Lwe,[d.createElementVNode("div",Iwe,[d.createElementVNode("div",Rwe,[d.createElementVNode("ul",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((f=e.data)==null?void 0:f.paragraphs,p=>(d.openBlock(),d.createElementBlock("li",{class:"lightbox__content__body__list",key:p.id},[d.createElementVNode("div",Mwe,d.toDisplayString(p.title),1),d.createElementVNode("div",{class:"lightbox__content__body__text",innerHTML:p.content},null,8,$we)]))),128))])]),d.createElementVNode("div",zwe,[d.createElementVNode("div",Hwe,[d.createElementVNode("img",{src:e.data.logo||"https://ywies-tx.cedim.cn/images/logo/logo-ycyw.png",alt:"school logo"},null,8,Uwe)])])])])])]),i[2]||(i[2]=d.createElementVNode("div",{class:"simplebar-placeholder",style:{width:"auto",height:"222px"}},null,-1))]),i[3]||(i[3]=d.createElementVNode("div",{class:"simplebar-track simplebar-horizontal",style:{visibility:"hidden"}},[d.createElementVNode("div",{class:"simplebar-scrollbar simplebar-visible",style:{width:"0px",display:"none"}})],-1)),i[4]||(i[4]=d.createElementVNode("div",{class:"simplebar-track simplebar-vertical",style:{visibility:"hidden"}},[d.createElementVNode("div",{class:"simplebar-scrollbar simplebar-visible",style:{height:"0px",display:"none"}})],-1))])])])])}}}),Gwe=ct(Wwe,[["__scopeId","data-v-5fc66282"]]),QM=d.defineComponent({__name:"modal",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=e,r=d.computed(()=>n.show),o=t,i=()=>{o("update:show",!1)};return(a,u)=>{const s=d.resolveComponent("a-modal");return d.openBlock(),d.createBlock(s,{visible:r.value,"onUpdate:visible":u[0]||(u[0]=c=>r.value=c),hideTitle:!0,footer:!1,bodyClass:"profile-model",onCancel:i},{default:d.withCtx(()=>[d.createVNode(Gwe,{data:e.data,onClose:i},null,8,["data"])]),_:1},8,["visible"])}}}),qwe=["onClick"],Kwe={class:"gallery-caption__img"},Ywe=["src","alt"],Xwe={class:"gallery-caption__title tx-subtitle text-blue text-center mt-3 mt-md-4 px-3"},Zwe={key:0,class:"tx-body text-teal-darkest text-center mt-2 mt-md-3 mb-3"},Jwe=d.defineComponent({name:"GalleryList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var h,y;if(n.modelValue&&n.modelValue.data)return;const p={id:((h=n.modelValue)==null?void 0:h.id)||ye(),type:"GalleryList",readOnly:((y=n.modelValue)==null?void 0:y.readOnly)||!1,bgColor:"",desktopCol:4,mobileCol:2,data:[{id:ye(),type:"GalleryListItem",title:"耀华国际教育学校浙江桐乡",text:"123",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:"",url:"https://www.baidu.com"},{id:ye(),type:"GalleryListProfile",title:"耀华国际教育学校浙江桐乡",text:"123",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:"",url:"",profile:{title:"耀华国际教育学校浙江桐乡",subTitle:"耀华国际教育学校浙江桐乡",name:"耀华国际教育学校浙江桐乡",label:"123",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",buttonList:{id:ye(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:ye(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:ye(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:ye(),title:"123",content:"123"}]}}]};r("update:modelValue",p)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)},c=d.ref(!1),l=d.ref({}),f=p=>{p.type==="GalleryListProfile"&&(l.value=p.profile,c.value=!0)};return o(),(p,h)=>{var m,b;const y=d.resolveComponent("a-col"),v=d.resolveComponent("a-row");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"gallery-list",onMouseenter:h[2]||(h[2]=g=>i.value=!0),onMouseleave:h[3]||(h[3]=g=>i.value=!1)},[d.createElementVNode("div",{class:"gallery-container gallery-caption container-content",style:d.normalizeStyle({backgroundColor:(m=e.modelValue)==null?void 0:m.bgColor})},[d.createVNode(v,{class:"caption-row"},{default:d.withCtx(()=>{var g;return[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((g=e.modelValue)==null?void 0:g.data,w=>{var E,D;return d.openBlock(),d.createBlock(y,{key:w.id,sm:{span:24/((E=e.modelValue)==null?void 0:E.mobileCol)},md:{span:24/((D=e.modelValue)==null?void 0:D.desktopCol)}},{default:d.withCtx(()=>[d.createElementVNode("div",{class:d.normalizeClass(["gallery-caption",[w.url&&"has-url",w.profile&&"has-profile"]]),onClick:C=>f(w)},[d.createElementVNode("div",Kwe,[d.createElementVNode("img",{src:w.imgSrc,alt:w.alt},null,8,Ywe)]),d.createElementVNode("div",Xwe,d.toDisplayString(w.title),1),w.text?(d.openBlock(),d.createElementBlock("div",Zwe,d.toDisplayString(w.text),1)):d.createCommentVNode("",!0)],10,qwe)]),_:2},1032,["sm","md"])}),128))]}),_:1})],4),(b=e.modelValue)!=null&&b.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":h[0]||(h[0]=g=>i.value=g),onHandleEdit:h[1]||(h[1]=g=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],32),d.createVNode(Ewe,{show:a.value,"onUpdate:show":h[4]||(h[4]=g=>a.value=g),data:e.modelValue},null,8,["show","data"]),d.createVNode(QM,{show:c.value,"onUpdate:show":h[5]||(h[5]=g=>c.value=g),data:l.value},null,8,["show","data"])],64)}}}),eS=ct(Jwe,[["__scopeId","data-v-25124312"]]),Qwe={class:"setting-content"},eEe={class:"setting-header flex items-center"},tEe={class:"setting-header flex items-center"},nEe={class:"setting-body"},rEe={class:"setting-item"},oEe={class:"btn-group"},iEe={key:0,class:"drag-handle"},aEe={class:"item-action flex items-center"},uEe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=d.ref(!1),r=d.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),o=l=>l&&l.length>1,i=e,a=t,u=()=>{a("update:show",!1)},s=l=>{i.data.data.push({id:ye(),type:l,text:"查看更多",url:void 0,isExternal:!1,isLight:!1})},c=l=>{i.data.data=i.data.data.filter(f=>f.id!==l)};return(l,f)=>{const p=d.resolveComponent("a-option"),h=d.resolveComponent("a-select"),y=d.resolveComponent("icon-plus"),v=d.resolveComponent("a-button"),m=d.resolveComponent("a-button-group"),b=d.resolveComponent("icon-drag-arrow"),g=d.resolveComponent("icon-delete"),w=d.resolveComponent("a-link"),E=d.resolveComponent("a-input"),D=d.resolveComponent("a-checkbox"),C=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(C,{width:500,visible:e.show,footer:!1,onCancel:u,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",Qwe,[d.createElementVNode("div",eEe,[f[11]||(f[11]=d.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),d.createVNode(h,{modelValue:e.data.width,"onUpdate:modelValue":f[0]||(f[0]=x=>e.data.width=x),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(p,{value:""},{default:d.withCtx(()=>f[7]||(f[7]=[d.createTextVNode("默认")])),_:1,__:[7]}),d.createVNode(p,{value:"small"},{default:d.withCtx(()=>f[8]||(f[8]=[d.createTextVNode("小")])),_:1,__:[8]}),d.createVNode(p,{value:"middle"},{default:d.withCtx(()=>f[9]||(f[9]=[d.createTextVNode("中")])),_:1,__:[9]}),d.createVNode(p,{value:"max"},{default:d.withCtx(()=>f[10]||(f[10]=[d.createTextVNode("大")])),_:1,__:[10]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",tEe,[f[14]||(f[14]=d.createElementVNode("span",{class:"header-title"},"组件背景",-1)),d.createVNode(h,{modelValue:e.data.bgColor,"onUpdate:modelValue":f[1]||(f[1]=x=>e.data.bgColor=x),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(p,{value:"#ffffff"},{default:d.withCtx(()=>f[12]||(f[12]=[d.createTextVNode("白色")])),_:1,__:[12]}),d.createVNode(p,{value:"#F7F7FA"},{default:d.withCtx(()=>f[13]||(f[13]=[d.createTextVNode("灰色")])),_:1,__:[13]})]),_:1},8,["modelValue"])]),d.createVNode(m,{type:"primary"},{default:d.withCtx(()=>[d.createVNode(v,{size:"mini",onClick:f[2]||(f[2]=x=>s("circle"))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[15]||(f[15]=d.createTextVNode(" 圆链接 "))]),_:1,__:[15]}),d.createVNode(v,{size:"mini",onClick:f[3]||(f[3]=x=>s("text"))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[16]||(f[16]=d.createTextVNode(" 文字链接 "))]),_:1,__:[16]})]),_:1}),d.createElementVNode("div",nEe,[d.createElementVNode("div",rEe,[f[20]||(f[20]=d.createElementVNode("p",{class:"item-name"},"链接",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.data,"onUpdate:modelValue":f[4]||(f[4]=x=>e.data.data=x),"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},r.value,{disabled:!o(e.data.data),onStart:f[5]||(f[5]=x=>n.value=!0),onEnd:f[6]||(f[6]=x=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:x})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!o(e.data.data)}]),key:x.id},[d.createElementVNode("div",oEe,[o(e.data.data)?(d.openBlock(),d.createElementBlock("div",iEe,[d.createVNode(b,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(g,{class:"btn-delete",onClick:A=>c(x.id)},null,8,["onClick"])]),d.createVNode(w,{href:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(x.text),1)]),_:2},1024),x.type==="circle"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createElementVNode("div",aEe,[d.createVNode(E,{class:"action-text",modelValue:x.text,"onUpdate:modelValue":A=>x.text=A,placeholder:"链接文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(E,{modelValue:x.url,"onUpdate:modelValue":A=>x.url=A,placeholder:"链接链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(D,{"model-value":x.isExternal},{default:d.withCtx(()=>f[17]||(f[17]=[d.createTextVNode("是否外部链接")])),_:2,__:[17]},1032,["model-value"]),d.createVNode(D,{style:{"padding-left":"10px"},"model-value":x.isLight},{default:d.withCtx(()=>f[18]||(f[18]=[d.createTextVNode("是否亮色")])),_:2,__:[18]},1032,["model-value"])],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createVNode(E,{class:"action-text m-2",modelValue:x.text,"onUpdate:modelValue":A=>x.text=A,placeholder:"链接文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),f[19]||(f[19]=d.createElementVNode("p",{class:"item-name"},"Profile Information",-1)),d.createVNode(JM,{data:x.profile},null,8,["data"])],64))],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),sEe=ct(uEe,[["__scopeId","data-v-a50a1faa"]]),lEe=["onClick"],cEe=["href"],dEe={key:1,class:"text-link"},fEe={type:"button",class:"text-link__wrapper link link--udrline-2"},pEe={class:"text-link__text"},hEe=d.defineComponent({name:"LinkList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var h,y,v;if(n.modelValue&&n.modelValue.data)return;const p={id:((h=n.modelValue)==null?void 0:h.id)||ye(),type:"LinkList",readOnly:((y=n.modelValue)==null?void 0:y.readOnly)||!1,width:"",bgColor:"",data:[{id:ye(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!1},{id:ye(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!0},{id:ye(),type:"text",text:"了解更多",profile:{logo:"https://ywies-tx.cedim.cn/images/logo/logo-ycyw.png",title:"耀华国际教育学校浙江桐乡",subTitle:"耀华国际教育学校浙江桐乡",name:"耀华国际教育学校浙江桐乡",label:"123",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",buttonList:{id:((v=n.modelValue)==null?void 0:v.id)||ye(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:ye(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:ye(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:ye(),title:"123",content:"123"}]}}]};r("update:modelValue",p)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)},c=d.ref(!1),l=d.ref({}),f=p=>{p.type==="text"&&(l.value=p.profile,c.value=!0)};return o(),(p,h)=>{var y,v,m,b,g;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"link-list",style:d.normalizeStyle({backgroundColor:(y=e.modelValue)==null?void 0:y.bgColor}),onMouseenter:h[2]||(h[2]=w=>i.value=!0),onMouseleave:h[3]||(h[3]=w=>i.value=!1)},[d.createElementVNode("div",{class:d.normalizeClass(["link-list__container justify-content-center",[(v=e.modelValue)!=null&&v.width?`container-content-${(m=e.modelValue)==null?void 0:m.width}`:"container-content"]])},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((b=e.modelValue)==null?void 0:b.data,w=>(d.openBlock(),d.createElementBlock("div",{class:"link-list__item",key:w.id,onClick:E=>f(w)},[w.type==="circle"?(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass(["circle-link",[w.isLight?"circle-link--light":""]])},[d.createElementVNode("a",{href:w.url||"#",class:d.normalizeClass([w.isLight?"nuxt-link-exact-active nuxt-link-active":""])},[d.createElementVNode("div",null,d.toDisplayString(w.text),1),d.createElementVNode("span",{class:d.normalizeClass(["circle-link__icon",[w.isLight?"circle-link__icon--light":""]])},null,2)],10,cEe)],2)):(d.openBlock(),d.createElementBlock("div",dEe,[d.createElementVNode("button",fEe,[d.createElementVNode("span",pEe,d.toDisplayString(w.text),1)])]))],8,lEe))),128))],2),(g=e.modelValue)!=null&&g.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":h[0]||(h[0]=w=>i.value=w),onHandleEdit:h[1]||(h[1]=w=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],36),d.createVNode(sEe,{show:a.value,"onUpdate:show":h[4]||(h[4]=w=>a.value=w),data:e.modelValue},null,8,["show","data"]),d.createVNode(QM,{show:c.value,"onUpdate:show":h[5]||(h[5]=w=>c.value=w),data:l.value},null,8,["show","data"])],64)}}}),tS=ct(hEe,[["__scopeId","data-v-5e2bae1f"]]),gEe={class:"setting-content"},vEe={class:"setting-header flex items-center"},mEe={class:"setting-header flex items-center"},yEe={class:"setting-header flex items-center"},bEe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=t,r=()=>{n("update:show",!1)};return(o,i)=>{const a=d.resolveComponent("a-option"),u=d.resolveComponent("a-select"),s=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(s,{width:500,visible:e.show,footer:!1,onCancel:r,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",gEe,[d.createElementVNode("div",vEe,[i[9]||(i[9]=d.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),d.createVNode(u,{modelValue:e.data.data.width,"onUpdate:modelValue":i[0]||(i[0]=c=>e.data.data.width=c),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(a,{value:"default"},{default:d.withCtx(()=>i[5]||(i[5]=[d.createTextVNode("默认")])),_:1,__:[5]}),d.createVNode(a,{value:"small"},{default:d.withCtx(()=>i[6]||(i[6]=[d.createTextVNode("小")])),_:1,__:[6]}),d.createVNode(a,{value:"medium"},{default:d.withCtx(()=>i[7]||(i[7]=[d.createTextVNode("中")])),_:1,__:[7]}),d.createVNode(a,{value:"large"},{default:d.withCtx(()=>i[8]||(i[8]=[d.createTextVNode("大")])),_:1,__:[8]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",mEe,[i[12]||(i[12]=d.createElementVNode("span",{class:"header-title"},"组件背景",-1)),d.createVNode(u,{modelValue:e.data.data.bgColor,"onUpdate:modelValue":i[1]||(i[1]=c=>e.data.data.bgColor=c),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(a,{value:"#ffffff"},{default:d.withCtx(()=>i[10]||(i[10]=[d.createTextVNode("白色")])),_:1,__:[10]}),d.createVNode(a,{value:"#F7F7FA"},{default:d.withCtx(()=>i[11]||(i[11]=[d.createTextVNode("灰色")])),_:1,__:[11]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",yEe,[i[15]||(i[15]=d.createElementVNode("span",{class:"header-title"},"是否显示下划线",-1)),d.createVNode(u,{modelValue:e.data.data.hasLine,"onUpdate:modelValue":i[2]||(i[2]=c=>e.data.data.hasLine=c),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(a,{value:!0},{default:d.withCtx(()=>i[13]||(i[13]=[d.createTextVNode("是")])),_:1,__:[13]}),d.createVNode(a,{value:!1},{default:d.withCtx(()=>i[14]||(i[14]=[d.createTextVNode("否")])),_:1,__:[14]})]),_:1},8,["modelValue"])]),i[16]||(i[16]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(d.unref(Sp),{modelValue:e.data.data.text,"onUpdate:modelValue":i[3]||(i[3]=c=>e.data.data.text=c)},null,8,["modelValue"]),i[17]||(i[17]=d.createElementVNode("p",{class:"item-title"},"内容",-1)),d.createVNode(d.unref(Sp),{modelValue:e.data.data.desc,"onUpdate:modelValue":i[4]||(i[4]=c=>e.data.data.desc=c)},null,8,["modelValue"])])]),_:1},8,["visible"])}}}),wEe=ct(bEe,[["__scopeId","data-v-5f93f285"]]),EEe={key:0,class:"quote-text__line"},xEe=["innerHTML"],CEe=["innerHTML"],SEe=d.defineComponent({name:"OuoteText",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var l,f;if(n.modelValue&&n.modelValue.data)return;const c={id:((l=n.modelValue)==null?void 0:l.id)||ye(),type:"OuoteText",readOnly:((f=n.modelValue)==null?void 0:f.readOnly)||!1,data:{width:"",bgColor:"",hasLine:!0,text:"浙江桐乡特色高中将于今年9月成立!",desc:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。"}};r("update:modelValue",c)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)};return o(),(c,l)=>{var f,p,h,y,v;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"quote-text",onMouseenter:l[2]||(l[2]=m=>i.value=!0),onMouseleave:l[3]||(l[3]=m=>i.value=!1)},[d.createElementVNode("div",{class:"quote-text__container quote-text--normal container-content",style:d.normalizeStyle({background:((f=e.modelValue)==null?void 0:f.data.bgColor)||"transparent"})},[(p=e.modelValue)!=null&&p.data.hasLine?(d.openBlock(),d.createElementBlock("div",EEe)):d.createCommentVNode("",!0),d.createElementVNode("div",{class:"quote-text__content",innerHTML:(h=e.modelValue)==null?void 0:h.data.text},null,8,xEe),d.createElementVNode("div",{class:"quote-text__desc",innerHTML:(y=e.modelValue)==null?void 0:y.data.desc},null,8,CEe)],4),(v=e.modelValue)!=null&&v.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":l[0]||(l[0]=m=>i.value=m),onHandleEdit:l[1]||(l[1]=m=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],32),d.createVNode(wEe,{show:a.value,"onUpdate:show":l[4]||(l[4]=m=>a.value=m),data:e.modelValue},null,8,["show","data"])],64)}}}),nS=ct(SEe,[["__scopeId","data-v-8392822c"]]),DEe={install:e=>{e.component("ArticleList",Y5)}},kEe={install:e=>{e.component("BannerPage",X5)}},AEe={install:e=>{e.component("CustomSpace",Z5)}},OEe={install:e=>{e.component("HeroSlide",J5)}},BEe={install:e=>{e.component("BannerImage",Q5)}},_Ee={install:e=>{e.component("BtnList",Ty)}},NEe={install:e=>{e.component("GalleryList",eS)}},TEe={install:e=>{e.component("LinkList",tS)}},FEe={install:e=>{e.component("BannerImage",nS)}},jC={default:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"14px",fontFamily:"Inter, sans-serif",borderRadius:"6px",spacing:"16px"},dark:{primaryColor:"#60a5fa",secondaryColor:"#c084fc",fontSize:"14px",fontFamily:"Inter, sans-serif",borderRadius:"6px",spacing:"16px"},compact:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"12px",fontFamily:"Inter, sans-serif",borderRadius:"4px",spacing:"12px"},large:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"16px",fontFamily:"Inter, sans-serif",borderRadius:"8px",spacing:"20px"}},Mn=d.ref(jC.default),co=d.ref(!1);function VEe(){const e=y=>{typeof y=="string"?Mn.value={...jC[y]}:Mn.value={...y},r()},t=y=>{Mn.value={...Mn.value,...y},r()},n=()=>{co.value=!co.value,document.documentElement.classList.toggle("dark",co.value)},r=()=>{const y=document.documentElement,v=Mn.value;y.style.setProperty("--theme-primary",v.primaryColor),y.style.setProperty("--theme-secondary",v.secondaryColor),y.style.setProperty("--font-size-default",v.fontSize),y.style.setProperty("--font-family-sans",v.fontFamily),y.style.setProperty("--radius-md",v.borderRadius),y.style.setProperty("--spacing-md",v.spacing)},o=y=>d.computed(()=>y==="primary"?Mn.value.primaryColor:Mn.value.secondaryColor),i=()=>d.computed(()=>Mn.value.fontSize),a=()=>d.computed(()=>Mn.value.fontFamily),u=()=>d.computed(()=>Mn.value.borderRadius),s=()=>d.computed(()=>Mn.value.spacing),c=()=>{e("default"),co.value=!1,document.documentElement.classList.remove("dark")},l=()=>JSON.stringify(Mn.value,null,2),f=y=>{try{const v=JSON.parse(y);return e(v),!0}catch(v){return console.error("Invalid theme configuration:",v),!1}},p=()=>{const y=localStorage.getItem("officialblock-theme"),v=localStorage.getItem("officialblock-dark-mode");if(y)try{const g=JSON.parse(y);e(g)}catch(g){console.error("Failed to restore theme:",g)}v&&(co.value=v==="true",document.documentElement.classList.toggle("dark",co.value));const m=window.matchMedia("(prefers-color-scheme: dark)"),b=g=>{localStorage.getItem("officialblock-dark-mode")||(co.value=g.matches,document.documentElement.classList.toggle("dark",co.value))};m.addEventListener("change",b),r()},h=()=>{localStorage.setItem("officialblock-theme",JSON.stringify(Mn.value)),localStorage.setItem("officialblock-dark-mode",co.value.toString())};return{currentTheme:d.computed(()=>Mn.value),isDarkMode:d.computed(()=>co.value),themePresets:jC,setTheme:e,updateTheme:t,toggleDarkMode:n,resetTheme:c,exportTheme:l,importTheme:f,initTheme:p,saveTheme:h,getThemeColor:o,getFontSize:i,getFontFamily:a,getBorderRadius:u,getSpacing:s}}class PEe{static hexToRgb(t){const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null}static rgbToHex(t,n,r){return"#"+((1<<24)+(t<<16)+(n<<8)+r).toString(16).slice(1)}static adjustBrightness(t,n){const r=this.hexToRgb(t);if(!r)return t;const o=i=>{const a=Math.round(i*(1+n/100));return Math.max(0,Math.min(255,a))};return this.rgbToHex(o(r.r),o(r.g),o(r.b))}static generateColorScale(t){const n=[50,100,200,300,400,500,600,700,800,900,950],r={};return n.forEach((o,i)=>{let a;o<=500?a=80-i*16:a=-20-(i-5)*12,r[o.toString()]=this.adjustBrightness(t,a)}),r}static getContrastRatio(t,n){const r=s=>{const c=this.hexToRgb(s);if(!c)return 0;const l=f=>{const p=f/255;return p<=.03928?p/12.92:Math.pow((p+.055)/1.055,2.4)};return .2126*l(c.r)+.7152*l(c.g)+.0722*l(c.b)},o=r(t),i=r(n),a=Math.max(o,i),u=Math.min(o,i);return(a+.05)/(u+.05)}static isDarkColor(t){const n=this.hexToRgb(t);return n?(n.r*299+n.g*587+n.b*114)/1e3<128:!1}static getBestTextColor(t){return this.isDarkColor(t)?"#ffffff":"#000000"}static mixColors(t,n,r=.5){const o=this.hexToRgb(t),i=this.hexToRgb(n);if(!o||!i)return t;const a=(u,s)=>Math.round(u*(1-r)+s*r);return this.rgbToHex(a(o.r,i.r),a(o.g,i.g),a(o.b,i.b))}}class jEe{static getCurrentBreakpoint(){const t=window.innerWidth;return t<475?"xs":t<640?"sm":t<768?"md":t<1024?"lg":t<1280?"xl":"2xl"}static isMobile(){return window.innerWidth<768}static isTablet(){const t=window.innerWidth;return t>=768&&t<1024}static isDesktop(){return window.innerWidth>=1024}static onBreakpointChange(t){let n=this.getCurrentBreakpoint();const r=()=>{const o=this.getCurrentBreakpoint();o!==n&&(n=o,t(o))};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}}}class e${static animate(t,n,r,o,i=this.easing.easeOutQuad){const a=performance.now();let u;const s=c=>{const l=c-a,f=Math.min(l/r,1),p=i(f),h=t+(n-t)*p;o(h),f<1&&(u=requestAnimationFrame(s))};return u=requestAnimationFrame(s),()=>{u&&cancelAnimationFrame(u)}}static scrollTo(t,n,r=300,o=this.easing.easeOutQuad){return new Promise(i=>{const a=t===window,u=a?window.pageYOffset:t.scrollTop;this.animate(u,n,r,s=>{a?window.scrollTo(0,s):t.scrollTop=s},o),setTimeout(i,r)})}}iS(e$,"easing",{linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t*t:-1+(4-2*t)*t,easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1});class LEe{static setItem(t,n){try{return localStorage.setItem(t,JSON.stringify(n)),!0}catch(r){return console.warn("Failed to save to localStorage:",r),!1}}static getItem(t,n){try{const r=localStorage.getItem(t);return r?JSON.parse(r):n||null}catch(r){return console.warn("Failed to read from localStorage:",r),n||null}}static removeItem(t){try{return localStorage.removeItem(t),!0}catch(n){return console.warn("Failed to remove from localStorage:",n),!1}}static cleanExpired(){const t=Date.now(),n=[];for(let r=0;r<localStorage.length;r++){const o=localStorage.key(r);if(o&&o.startsWith("officialblock-"))try{const i=JSON.parse(localStorage.getItem(o)||"{}");i.expires&&i.expires<t&&n.push(o)}catch{}}n.forEach(r=>localStorage.removeItem(r))}}const IEe={install:e=>{e.component("ArticleList",Y5),e.component("BannerImage",Q5),e.component("BannerPage",X5),e.component("BtnList",Ty),e.component("CustomSpace",Z5),e.component("GalleryList",eS),e.component("HeroSlide",J5),e.component("LinkList",tS),e.component("QuoteText",nS)}};exports.AnimationUtils=e$;exports.ArticleList=Y5;exports.ArticleListPlugin=DEe;exports.BannerImage=Q5;exports.BannerImagePlugin=BEe;exports.BannerPage=X5;exports.BannerPagePlugin=kEe;exports.BtnList=Ty;exports.BtnListPlugin=_Ee;exports.CustomSpace=Z5;exports.CustomSpacePlugin=AEe;exports.GalleryList=eS;exports.GalleryListPlugin=NEe;exports.HeroSlide=J5;exports.HeroSlidePlugin=OEe;exports.LinkList=tS;exports.LinkListPlugin=TEe;exports.QuoteText=nS;exports.QuoteTextPlugin=FEe;exports.ResponsiveUtils=jEe;exports.StorageUtils=LEe;exports.ThemeUtils=PEe;exports.default=IEe;exports.useTheme=VEe;
|
|
186
|
+
Please use '@${e}' event instead of props`,t}var ZM=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const V1e=d.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=d.ref(null),r=d.shallowRef(null),o=d.ref(""),i=()=>{if(!n.value)return;const u=d.toRaw(e.defaultContent);D1e({selector:n.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:F1e(T1e({},e.defaultConfig),{onCreated(s){if(r.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const c=$i("onCreated");throw new Error(c)}},onChange(s){const c=s.getHtml();if(o.value=c,t.emit("update:modelValue",c),t.emit("onChange",s),e.defaultConfig.onChange){const l=$i("onChange");throw new Error(l)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const c=$i("onDestroyed");throw new Error(c)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const c=$i("onMaxLength");throw new Error(c)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const c=$i("onFocus");throw new Error(c)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const c=$i("onBlur");throw new Error(c)}},customAlert(s,c){if(t.emit("customAlert",s,c),e.defaultConfig.customAlert){const l=$i("customAlert");throw new Error(l)}},customPaste:(s,c)=>{if(e.defaultConfig.customPaste){const f=$i("customPaste");throw new Error(f)}let l;return t.emit("customPaste",s,c,f=>{l=f}),l}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return d.onMounted(()=>{i()}),d.watch(()=>e.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),P1e={ref:"box",style:{height:"100%"}};function j1e(e,t,n,r,o,i){return d.openBlock(),d.createElementBlock("div",P1e,null,512)}var L1e=ZM(V1e,[["render",j1e]]);const I1e=d.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=d.ref(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");B.getToolbar(r)||k1e({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return d.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),R1e={ref:"selector"};function M1e(e,t,n,r,o,i){return d.openBlock(),d.createElementBlock("div",R1e,null,512)}var $1e=ZM(I1e,[["render",M1e]]);const z1e={class:"rich-text-editor"},H1e=d.defineComponent({__name:"RichTextEditor",props:{modelValue:{default:""},placeholder:{default:"请输入内容..."},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},maxLength:{default:1e4},excludeKeys:{default:()=>[]},includeKeys:{default:()=>[]},uploadImgServer:{default:""},uploadVideoServer:{default:""}},emits:["update:modelValue","change","focus","blur","created"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=d.shallowRef(),a=d.ref(""),u=d.computed(()=>typeof r.height=="number"?`${r.height}px`:r.height),s={excludeKeys:r.excludeKeys,insertKeys:{index:0,keys:r.includeKeys}},c={placeholder:r.placeholder,readOnly:r.disabled,maxLength:r.maxLength,MENU_CONF:{uploadImage:{server:r.uploadImgServer,fieldName:"file",maxFileSize:5*1024*1024,allowedFileTypes:["image/*"],meta:{},headers:{},withCredentials:!1,timeout:30*1e3,onBeforeUpload(v){return console.log("onBeforeUpload",v),v},onProgress(v){console.log("onProgress",v)},onSuccess(v,m){console.log("onSuccess",v,m)},onFailed(v,m){console.log("onFailed",v,m)},onError(v,m){console.log("onError",v,m)}},uploadVideo:{server:r.uploadVideoServer,fieldName:"file",maxFileSize:50*1024*1024,allowedFileTypes:["video/*"],meta:{},headers:{},withCredentials:!1,timeout:60*1e3,onBeforeUpload(v){return console.log("onBeforeUpload video",v),v},onProgress(v){console.log("onProgress video",v)},onSuccess(v,m){console.log("onSuccess video",v,m)},onFailed(v,m){console.log("onFailed video",v,m)},onError(v,m){console.log("onError video",v,m)}}}};d.onBeforeUnmount(()=>{const v=i.value;v!=null&&v.destroy()}),d.watch(()=>r.modelValue,v=>{v!==a.value&&(a.value=v||"")},{immediate:!0});const l=v=>{i.value=v,o("created",v)},f=v=>{o("update:modelValue",a.value),o("change",v)},p=()=>{i.value=void 0},h=v=>{o("focus",v)},y=v=>{o("blur",v)};return t({editor:i,getHtml:()=>a.value,getText:()=>{var v;return((v=i.value)==null?void 0:v.getText())||""},isEmpty:()=>{var v;return((v=i.value)==null?void 0:v.isEmpty())||!0},clear:()=>{var v;return(v=i.value)==null?void 0:v.clear()},focus:()=>{var v;return(v=i.value)==null?void 0:v.focus()},blur:()=>{var v;return(v=i.value)==null?void 0:v.blur()},disable:()=>{var v;return(v=i.value)==null?void 0:v.disable()},enable:()=>{var v;return(v=i.value)==null?void 0:v.enable()}}),(v,m)=>(d.openBlock(),d.createElementBlock("div",z1e,[d.createVNode(d.unref($1e),{class:"editor-toolbar",editor:i.value,defaultConfig:s,mode:v.mode},null,8,["editor","mode"]),d.createVNode(d.unref(L1e),{class:"editor-content",style:d.normalizeStyle({height:u.value}),modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=b=>a.value=b),defaultConfig:c,mode:v.mode,onOnCreated:l,onOnChange:f,onOnDestroyed:p,onOnFocus:h,onOnBlur:y},null,8,["style","modelValue","mode"])]))}}),Sp=ct(H1e,[["__scopeId","data-v-760a12a3"]]),U1e={class:"setting-content"},W1e={class:"setting-header flex items-center"},G1e={class:"setting-header flex items-center"},q1e={class:"setting-body"},K1e={class:"setting-item"},Y1e={class:"item-name"},X1e={class:"btn-group"},Z1e={class:"drag-handle"},J1e={class:"btn-group"},Q1e={key:0,class:"drag-handle"},ebe={class:"item-action flex items-center"},tbe=["onClick"],nbe={class:"btn-group"},rbe={key:0,class:"drag-handle"},obe={class:"item-action flex items-center"},ibe=["onClick"],abe={class:"btn-group"},ube={key:0,class:"drag-handle"},sbe={class:"item-action flex items-center"},lbe=["onClick"],cbe={class:"btn-group"},dbe={key:0,class:"drag-handle"},fbe={class:"item-action flex items-center"},pbe=["onClick"],hbe=["src"],gbe={class:"item-uplaod flex items-center"},vbe={class:"item-img-list"},mbe={class:"btn-group"},ybe={key:0,class:"drag-handle"},bbe={key:0,class:"item-img-box"},wbe=["src"],Ebe={class:"item-right flex-1"},xbe=["onClick"],Cbe=["src"],Sbe={class:"item-uplaod flex items-center"},Dbe=["src"],kbe={class:"item-uplaod flex items-center"},Abe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=d.ref(!1),r=d.computed(()=>({animation:200,group:"item",disabled:!1,ghostClass:"ghost"})),o=d.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),i=d.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),a=d.computed(()=>({animation:200,group:"categories",disabled:!1,ghostClass:"ghost"})),u=d.computed(()=>({animation:200,group:"images",disabled:!1,ghostClass:"ghost"})),s=C=>C&&C.length>1,c=e,l=t,f=()=>{l("update:show",!1)},p=C=>{const x=c.data;C==="Article"?x.data.push({id:ye(),type:"Article",title:"",content:"",buttonList:[],linkList:[]}):C==="Contact"?x.data.push({id:ye(),type:"Contact",title:"",content:"",categories:[],linkList:[]}):C==="Image"?x.data.push({id:ye(),type:"Image",imgSrc:"",caption:"",alt:"",isRound:!1}):C==="ImageList"?x.data.push({id:ye(),type:"ImageList",imageList:[]}):C==="Video"&&x.data.push({id:ye(),type:"Video",videoSrc:"",imgSrc:""})},h=C=>{c.data.data=c.data.data.filter(x=>x.id!==C)},y=C=>{C.push({id:ye(),text:"查看更多",url:void 0,isExternal:!1})},v=(C,x)=>{C.splice(C.findIndex(A=>A.id===x),1)},m=C=>{C.push({id:ye(),text:"查看更多",url:void 0,isExternal:!1})},b=(C,x)=>{C.splice(C.findIndex(A=>A.id===x),1)},g=C=>{C.push({id:ye(),text:"分类"})},w=(C,x)=>{C.splice(C.findIndex(A=>A.id===x),1)},E=C=>{C.push({id:ye(),src:""})},D=(C,x)=>{C.splice(C.findIndex(A=>A===x),1)};return(C,x)=>{const A=d.resolveComponent("a-option"),_=d.resolveComponent("a-select"),L=d.resolveComponent("icon-plus"),R=d.resolveComponent("a-button"),I=d.resolveComponent("a-button-group"),q=d.resolveComponent("icon-drag-arrow"),z=d.resolveComponent("icon-delete"),H=d.resolveComponent("a-input"),Y=d.resolveComponent("a-checkbox"),Q=d.resolveComponent("a-link"),se=d.resolveComponent("a-upload"),le=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(le,{width:500,visible:e.show,footer:!1,onCancel:f,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",U1e,[d.createElementVNode("div",W1e,[x[24]||(x[24]=d.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),d.createVNode(_,{modelValue:e.data.width,"onUpdate:modelValue":x[0]||(x[0]=M=>e.data.width=M),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(A,{value:"default"},{default:d.withCtx(()=>x[20]||(x[20]=[d.createTextVNode("默认")])),_:1,__:[20]}),d.createVNode(A,{value:"small"},{default:d.withCtx(()=>x[21]||(x[21]=[d.createTextVNode("小")])),_:1,__:[21]}),d.createVNode(A,{value:"medium"},{default:d.withCtx(()=>x[22]||(x[22]=[d.createTextVNode("中")])),_:1,__:[22]}),d.createVNode(A,{value:"large"},{default:d.withCtx(()=>x[23]||(x[23]=[d.createTextVNode("大")])),_:1,__:[23]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",G1e,[x[27]||(x[27]=d.createElementVNode("span",{class:"header-title"},"组件背景",-1)),d.createVNode(_,{modelValue:e.data.background,"onUpdate:modelValue":x[1]||(x[1]=M=>e.data.background=M),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(A,{value:"white"},{default:d.withCtx(()=>x[25]||(x[25]=[d.createTextVNode("白色")])),_:1,__:[25]}),d.createVNode(A,{value:"grey"},{default:d.withCtx(()=>x[26]||(x[26]=[d.createTextVNode("灰色")])),_:1,__:[26]})]),_:1},8,["modelValue"])]),d.createVNode(I,{type:"primary"},{default:d.withCtx(()=>[d.createVNode(R,{size:"mini",onClick:x[2]||(x[2]=M=>p("Article"))},{icon:d.withCtx(()=>[d.createVNode(L)]),default:d.withCtx(()=>[x[28]||(x[28]=d.createTextVNode(" Article "))]),_:1,__:[28]}),d.createVNode(R,{size:"mini",onClick:x[3]||(x[3]=M=>p("Contact"))},{icon:d.withCtx(()=>[d.createVNode(L)]),default:d.withCtx(()=>[x[29]||(x[29]=d.createTextVNode(" Contact "))]),_:1,__:[29]}),d.createVNode(R,{size:"mini",onClick:x[4]||(x[4]=M=>p("Image"))},{icon:d.withCtx(()=>[d.createVNode(L)]),default:d.withCtx(()=>[x[30]||(x[30]=d.createTextVNode(" Image "))]),_:1,__:[30]}),d.createVNode(R,{size:"mini",onClick:x[5]||(x[5]=M=>p("ImageList"))},{icon:d.withCtx(()=>[d.createVNode(L)]),default:d.withCtx(()=>[x[31]||(x[31]=d.createTextVNode(" ImageList "))]),_:1,__:[31]}),d.createVNode(R,{size:"mini",onClick:x[6]||(x[6]=M=>p("Video"))},{icon:d.withCtx(()=>[d.createVNode(L)]),default:d.withCtx(()=>[x[32]||(x[32]=d.createTextVNode(" Video "))]),_:1,__:[32]})]),_:1}),d.createElementVNode("div",q1e,[d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.data,"onUpdate:modelValue":x[17]||(x[17]=M=>e.data.data=M),"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},r.value,{onStart:x[18]||(x[18]=M=>n.value=!0),onEnd:x[19]||(x[19]=M=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:M})=>[d.createElementVNode("div",K1e,[d.createElementVNode("p",Y1e,d.toDisplayString(M.type),1),d.createElementVNode("div",X1e,[d.createElementVNode("div",Z1e,[d.createVNode(q,{class:"drag-icon"})]),d.createVNode(z,{class:"btn-delete",onClick:k=>h(M.id)},null,8,["onClick"])]),M.type==="Article"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[x[37]||(x[37]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(H,{modelValue:M.title,"onUpdate:modelValue":k=>M.title=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),x[38]||(x[38]=d.createElementVNode("p",{class:"item-title"},"内容",-1)),d.createVNode(d.unref(Sp),{modelValue:M.content,"onUpdate:modelValue":k=>M.content=k},null,8,["modelValue","onUpdate:modelValue"]),x[39]||(x[39]=d.createElementVNode("p",{class:"item-title"},"按钮",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:M.buttonList,"onUpdate:modelValue":k=>M.buttonList=k,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},o.value,{disabled:!s(M.buttonList),onStart:x[7]||(x[7]=k=>n.value=!0),onEnd:x[8]||(x[8]=k=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:k})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(M.buttonList)}]),key:k.id},[d.createElementVNode("div",J1e,[s(M.buttonList)?(d.openBlock(),d.createElementBlock("div",Q1e,[d.createVNode(q,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(z,{class:"btn-delete",onClick:O=>v(M.buttonList,k.id)},null,8,["onClick"])]),d.createVNode(R,{type:"primary"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(k.text),1)]),_:2},1024),d.createElementVNode("div",ebe,[d.createVNode(H,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":O=>k.text=O,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(H,{modelValue:k.url,"onUpdate:modelValue":O=>k.url=O,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(Y,{"model-value":k.isExternal},{default:d.withCtx(()=>x[33]||(x[33]=[d.createTextVNode("是否外部链接")])),_:2,__:[33]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:k=>y(M.buttonList)},[d.createVNode(L),x[34]||(x[34]=d.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,tbe),x[40]||(x[40]=d.createElementVNode("p",{class:"item-title"},"链接",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":k=>M.linkList=k,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},i.value,{disabled:!s(M.linkList),onStart:x[9]||(x[9]=k=>n.value=!0),onEnd:x[10]||(x[10]=k=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:k})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(M.linkList)}]),key:k.id},[d.createElementVNode("div",nbe,[s(M.linkList)?(d.openBlock(),d.createElementBlock("div",rbe,[d.createVNode(q,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(z,{class:"btn-delete",onClick:O=>b(M.linkList,k.id)},null,8,["onClick"])]),d.createVNode(Q,{href:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(k.text),1)]),_:2},1024),d.createElementVNode("div",obe,[d.createVNode(H,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":O=>k.text=O,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(H,{modelValue:k.url,"onUpdate:modelValue":O=>k.url=O,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(Y,{"model-value":k.isExternal},{default:d.withCtx(()=>x[35]||(x[35]=[d.createTextVNode("是否外部链接")])),_:2,__:[35]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:k=>m(M.linkList)},[d.createVNode(L),x[36]||(x[36]=d.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,ibe)],64)):d.createCommentVNode("",!0),M.type==="Contact"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[x[44]||(x[44]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(H,{modelValue:M.title,"onUpdate:modelValue":k=>M.title=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),x[45]||(x[45]=d.createElementVNode("p",{class:"item-title"},"内容",-1)),d.createVNode(d.unref(Sp),{modelValue:M.content,"onUpdate:modelValue":k=>M.content=k},null,8,["modelValue","onUpdate:modelValue"]),x[46]||(x[46]=d.createElementVNode("p",{class:"item-title"},"分类",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:M.categories,"onUpdate:modelValue":k=>M.categories=k,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},a.value,{disabled:!s(M.categories),onStart:x[11]||(x[11]=k=>n.value=!0),onEnd:x[12]||(x[12]=k=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:k})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(M.categories)}]),key:k.id},[d.createElementVNode("div",abe,[s(M.categories)?(d.openBlock(),d.createElementBlock("div",ube,[d.createVNode(q,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(z,{class:"btn-delete",onClick:O=>w(M.categories,k.id)},null,8,["onClick"])]),d.createVNode(z,{class:"btn-delete",onClick:O=>w(M.categories,k.id)},null,8,["onClick"]),d.createVNode(Q,{href:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(k.text),1)]),_:2},1024),d.createElementVNode("div",sbe,[d.createVNode(H,{modelValue:k.text,"onUpdate:modelValue":O=>k.text=O,placeholder:"分类名称","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:k=>g(M.categories)},[d.createVNode(L),x[41]||(x[41]=d.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,lbe),x[47]||(x[47]=d.createElementVNode("p",{class:"item-title"},"链接",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:M.linkList,"onUpdate:modelValue":k=>M.linkList=k,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},i.value,{disabled:!s(M.linkList),onStart:x[13]||(x[13]=k=>n.value=!0),onEnd:x[14]||(x[14]=k=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:k})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(M.linkList)}]),key:k.id},[d.createElementVNode("div",cbe,[s(M.linkList)?(d.openBlock(),d.createElementBlock("div",dbe,[d.createVNode(q,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(z,{class:"btn-delete",onClick:O=>b(M.linkList,k.id)},null,8,["onClick"])]),d.createVNode(Q,{href:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(k.text),1)]),_:2},1024),d.createElementVNode("div",fbe,[d.createVNode(H,{class:"action-text",modelValue:k.text,"onUpdate:modelValue":O=>k.text=O,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(H,{modelValue:k.url,"onUpdate:modelValue":O=>k.url=O,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(Y,{"model-value":k.isExternal},{default:d.withCtx(()=>x[42]||(x[42]=[d.createTextVNode("是否外部链接")])),_:2,__:[42]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:k=>m(M.linkList)},[d.createVNode(L),x[43]||(x[43]=d.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,pbe)],64)):d.createCommentVNode("",!0),M.type==="Image"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:2},[d.createElementVNode("img",{class:"item-img",src:M.imgSrc},null,8,hbe),d.createElementVNode("div",gbe,[d.createVNode(H,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(se,{class:"fit-content","show-file-list":!1,action:"/"})]),d.createVNode(H,{class:"mt-2",modelValue:M.caption,"onUpdate:modelValue":k=>M.caption=k,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(H,{class:"mt-2",modelValue:M.alt,"onUpdate:modelValue":k=>M.alt=k,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(Y,{class:"pt-2","model-value":M.isRound},{default:d.withCtx(()=>x[48]||(x[48]=[d.createTextVNode("圆角")])),_:2,__:[48]},1032,["model-value"])],64)):d.createCommentVNode("",!0),M.type==="ImageList"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:3},[x[50]||(x[50]=d.createElementVNode("p",{class:"item-title"},"图片组",-1)),d.createElementVNode("div",vbe,[d.createVNode(d.unref(nr),d.mergeProps({modelValue:M.imageList,"onUpdate:modelValue":k=>M.imageList=k,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},u.value,{disabled:!s(M.imageList),onStart:x[15]||(x[15]=k=>n.value=!0),onEnd:x[16]||(x[16]=k=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:k})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["img-list-item flex draggable-item",{"sortable-disabled":!s(M.imageList)}]),key:k.id},[d.createElementVNode("div",mbe,[s(M.imageList)?(d.openBlock(),d.createElementBlock("div",ybe,[d.createVNode(q,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(z,{class:"btn-delete",onClick:O=>D(M.imageList,k.id)},null,8,["onClick"])]),k.src?(d.openBlock(),d.createElementBlock("div",bbe,[d.createElementVNode("img",{class:"item-img small-img",src:k.src},null,8,wbe)])):d.createCommentVNode("",!0),d.createElementVNode("div",Ebe,[d.createVNode(H,{style:{"margin-bottom":"12px"},modelValue:k.src,"onUpdate:modelValue":O=>k.src=O,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(se,{"show-file-list":!1,action:"/"})])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"])]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:k=>E(M.imageList)},[d.createVNode(L),x[49]||(x[49]=d.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,xbe)],64)):d.createCommentVNode("",!0),M.type==="Video"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:4},[x[51]||(x[51]=d.createElementVNode("p",{class:"item-title"},"视频",-1)),d.createElementVNode("video",{class:"item-img",src:M.videoSrc,controls:""},null,8,Cbe),d.createElementVNode("div",Sbe,[d.createVNode(H,{modelValue:M.videoSrc,"onUpdate:modelValue":k=>M.videoSrc=k,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(se,{class:"fit-content","show-file-list":!1,action:"/"})]),d.createElementVNode("img",{class:"item-img",src:M.imgSrc},null,8,Dbe),d.createElementVNode("div",kbe,[d.createVNode(H,{modelValue:M.imgSrc,"onUpdate:modelValue":k=>M.imgSrc=k,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(se,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):d.createCommentVNode("",!0)])]),_:1},16,["modelValue","component-data"])])])]),_:1},8,["visible"])}}}),Obe=ct(Abe,[["__scopeId","data-v-c3067679"]]),Bbe={class:"operate-page operate-component"},_be={class:"operate-btn d-flex justify-end"},Nbe=d.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1}},emits:["handleCopy","handleDelete","handleEdit"],setup(e,{emit:t}){const n=t,r=()=>{n("handleCopy")},o=()=>{n("handleDelete")},i=()=>{n("handleEdit")};return(a,u)=>{const s=d.resolveComponent("icon-copy"),c=d.resolveComponent("icon-delete"),l=d.resolveComponent("icon-edit");return d.withDirectives((d.openBlock(),d.createElementBlock("div",Bbe,[d.createElementVNode("div",_be,[d.createElementVNode("div",{class:"btn-item btn-copy d-flex align-center fs-10",onClick:r},[d.createVNode(s),u[0]||(u[0]=d.createElementVNode("span",{class:"btn-text"},"复制",-1))]),d.createElementVNode("div",{class:"btn-item btn-delete d-flex align-center fs-10",onClick:o},[d.createVNode(c),u[1]||(u[1]=d.createElementVNode("span",{class:"btn-text"},"删除",-1))]),d.createElementVNode("div",{class:"btn-item btn-edit d-flex align-center fs-10",onClick:i},[d.createVNode(l),u[2]||(u[2]=d.createElementVNode("span",{class:"btn-text"},"编辑",-1))])])],512)),[[d.vShow,e.show]])}}}),yi=ct(Nbe,[["__scopeId","data-v-7426c151"]]),Tbe={class:"article-list-left"},Fbe={class:"article-list-right"},Vbe=d.defineComponent({name:"ArticleList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=d.computed(()=>n.modelValue&&n.modelValue.data&&n.modelValue.data.length?n.modelValue.data.some(l=>l.type==="Image"||l.type==="Video"||l.type==="ImageList"):!1),i=()=>{var f,p;if(n.modelValue&&n.modelValue.data)return;const l={id:((f=n.modelValue)==null?void 0:f.id)||ye(),type:"ArticleList",readOnly:((p=n.modelValue)==null?void 0:p.readOnly)||!1,width:"",bgColor:"",data:[{id:ye(),type:"Article",title:"耀华国际教育学校浙江桐乡",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",buttonList:[],linkList:[{id:ye(),text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},{id:ye(),type:"Image",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",caption:"",alt:"",isRound:!1}]};r("update:modelValue",l)},a=d.ref(!1),u=d.ref(!1),s=()=>{r("handleDelete",n.modelValue.id)},c=()=>{r("handleCopy",n.modelValue)};return i(),(l,f)=>{var y,v,m;const p=d.resolveComponent("a-col"),h=d.resolveComponent("a-row");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"article-list-container",style:d.normalizeStyle({backgroundColor:(y=e.modelValue)==null?void 0:y.bgColor}),onMouseenter:f[2]||(f[2]=b=>a.value=!0),onMouseleave:f[3]||(f[3]=b=>a.value=!1)},[d.createVNode(h,{class:d.normalizeClass(["article-list",[(v=e.modelValue)!=null&&v.width?`container-content-${(m=e.modelValue)==null?void 0:m.width}`:"container-content"]])},{default:d.withCtx(()=>{var b;return[d.createVNode(p,{sm:{span:24},md:{span:o.value?12:24}},{default:d.withCtx(()=>{var g;return[d.createElementVNode("div",Tbe,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((g=e.modelValue)==null?void 0:g.data,w=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:w.id},[w.type==="Article"?(d.openBlock(),d.createBlock(f$,{key:0,article:w},null,8,["article"])):d.createCommentVNode("",!0),w.type==="Contact"?(d.openBlock(),d.createBlock(b$,{key:1,contact:w},null,8,["contact"])):d.createCommentVNode("",!0)],64))),128))])]}),_:1},8,["md"]),o.value?(d.openBlock(),d.createBlock(p,{key:0,sm:{span:24},md:{span:12}},{default:d.withCtx(()=>{var g;return[d.createElementVNode("div",Fbe,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((g=e.modelValue)==null?void 0:g.data,w=>(d.openBlock(),d.createBlock(N$,{key:w.id,type:w.type,data:w,preview:e.modelValue.isPreview},null,8,["type","data","preview"]))),128))])]}),_:1})):d.createCommentVNode("",!0),(b=e.modelValue)!=null&&b.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:1,show:a.value,"onUpdate:show":f[0]||(f[0]=g=>a.value=g),onHandleEdit:f[1]||(f[1]=g=>u.value=!0),onHandleDelete:s,onHandleCopy:c},null,8,["show"]))]}),_:1},8,["class"])],36),d.createVNode(Obe,{show:u.value,"onUpdate:show":f[4]||(f[4]=b=>u.value=b),data:e.modelValue},null,8,["show","data"])],64)}}}),Y5=ct(Vbe,[["__scopeId","data-v-821771c9"]]),Pbe={class:"setting-content"},jbe=["src"],Lbe={class:"item-uplaod flex items-center"},Ibe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=t,r=()=>{n("update:show",!1)};return(o,i)=>{const a=d.resolveComponent("a-input"),u=d.resolveComponent("a-upload"),s=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(s,{width:500,visible:e.show,footer:!1,onCancel:r,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>{var c,l;return[d.createElementVNode("div",Pbe,[i[2]||(i[2]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(a,{modelValue:e.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=f=>e.data.data.title=f),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),i[3]||(i[3]=d.createElementVNode("p",{class:"item-title"},"图片",-1)),d.createElementVNode("img",{class:"item-img",src:(l=(c=e.data)==null?void 0:c.data)==null?void 0:l.imgSrc},null,8,jbe),d.createElementVNode("div",Lbe,[d.createVNode(a,{modelValue:e.data.data.imgSrc,"onUpdate:modelValue":i[1]||(i[1]=f=>e.data.data.imgSrc=f),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),d.createVNode(u,{class:"fit-content","show-file-list":!1,action:"/"})])])]}),_:1},8,["visible"])}}}),Rbe=ct(Ibe,[["__scopeId","data-v-c2966fed"]]),Mbe={class:"red"},$be={class:"banner-page__title"},zbe={class:"position-absolute triangle-position"},Hbe={class:"position-relative h-100 banner-strips"},Ube=d.defineComponent({name:"BannerPage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var l,f;if(n.modelValue&&n.modelValue.data)return;const c={id:((l=n.modelValue)==null?void 0:l.id)||ye(),type:"BannerPage",readOnly:((f=n.modelValue)==null?void 0:f.readOnly)||!1,data:{title:"冷风机奥附件哦啊金佛阿吉佛大金佛电极法对哦就对哦就发哦就发哦激发激发哦飞机奥飞机",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg"}};r("update:modelValue",c)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)};return o(),(c,l)=>{var f,p,h,y,v;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"banner-page",onMouseenter:l[2]||(l[2]=m=>i.value=!0),onMouseleave:l[3]||(l[3]=m=>i.value=!1)},[d.createElementVNode("div",Mbe,[d.createElementVNode("p",$be,d.toDisplayString((p=(f=e.modelValue)==null?void 0:f.data)==null?void 0:p.title),1)]),l[6]||(l[6]=d.createElementVNode("div",{class:"orange"},null,-1)),d.createElementVNode("div",zbe,[d.createElementVNode("div",Hbe,[l[5]||(l[5]=d.createElementVNode("img",{src:"https://ywies-tx.cedim.cn/images/material/banner-strips.png",alt:""},null,-1)),d.createElementVNode("div",{class:"triangle",style:d.normalizeStyle({backgroundImage:"url("+((y=(h=e.modelValue)==null?void 0:h.data)==null?void 0:y.imgSrc)+")"}),"data-v-24231ec2":""},null,4)])]),(v=e.modelValue)!=null&&v.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":l[0]||(l[0]=m=>i.value=m),onHandleEdit:l[1]||(l[1]=m=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],32),d.createVNode(Rbe,{show:a.value,"onUpdate:show":l[4]||(l[4]=m=>a.value=m),data:e.modelValue},null,8,["show","data"])],64)}}}),X5=ct(Ube,[["__scopeId","data-v-9d303384"]]),Wbe={class:"setting-content"},Gbe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=e,r=t,o=()=>{r("update:show",!1)},i=d.ref(1),a=u=>{u===1?(n.data.data.desktopHeight=49,n.data.data.mobileHeight=24):u===2?(n.data.data.desktopHeight=80,n.data.data.mobileHeight=40):u===3?(n.data.data.desktopHeight=32,n.data.data.mobileHeight=40):u===4?(n.data.data.desktopHeight=16,n.data.data.mobileHeight=16):u===5&&(n.data.data.desktopHeight=160,n.data.data.mobileHeight=80)};return(u,s)=>{const c=d.resolveComponent("a-option"),l=d.resolveComponent("a-select"),f=d.resolveComponent("a-input"),p=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(p,{width:500,visible:e.show,footer:!1,onCancel:o,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",Wbe,[s[12]||(s[12]=d.createElementVNode("p",{class:"item-title"},"背景颜色",-1)),d.createVNode(l,{modelValue:e.data.bgColor,"onUpdate:modelValue":s[0]||(s[0]=h=>e.data.bgColor=h),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(c,{value:"#ffffff"},{default:d.withCtx(()=>s[5]||(s[5]=[d.createTextVNode("白色")])),_:1,__:[5]}),d.createVNode(c,{value:"#F7F7FA"},{default:d.withCtx(()=>s[6]||(s[6]=[d.createTextVNode("灰色")])),_:1,__:[6]})]),_:1},8,["modelValue"]),s[13]||(s[13]=d.createElementVNode("p",{class:"item-title"},"间距设置",-1)),d.createVNode(l,{modelValue:i.value,"onUpdate:modelValue":s[1]||(s[1]=h=>i.value=h),placeholder:"请选择",onChange:a,"allow-clear":""},{default:d.withCtx(()=>[d.createVNode(c,{value:1},{default:d.withCtx(()=>s[7]||(s[7]=[d.createTextVNode("制表符起始间距(49px,24px)")])),_:1,__:[7]}),d.createVNode(c,{value:2},{default:d.withCtx(()=>s[8]||(s[8]=[d.createTextVNode("部分间距(80px,40px)")])),_:1,__:[8]}),d.createVNode(c,{value:3},{default:d.withCtx(()=>s[9]||(s[9]=[d.createTextVNode("组件间距(32px,40px)")])),_:1,__:[9]}),d.createVNode(c,{value:4},{default:d.withCtx(()=>s[10]||(s[10]=[d.createTextVNode("链接间距(16px,16px)")])),_:1,__:[10]}),d.createVNode(c,{value:5},{default:d.withCtx(()=>s[11]||(s[11]=[d.createTextVNode("页末间距(160px,80px)")])),_:1,__:[11]})]),_:1},8,["modelValue"]),s[14]||(s[14]=d.createElementVNode("p",{class:"item-title"},"PC高度(单位:px)",-1)),d.createVNode(f,{modelValue:e.data.data.desktopHeight,"onUpdate:modelValue":s[2]||(s[2]=h=>e.data.data.desktopHeight=h),disabled:""},null,8,["modelValue"]),s[15]||(s[15]=d.createElementVNode("p",{class:"item-title"},"移动端高度(单位:px)",-1)),d.createVNode(f,{modelValue:e.data.data.mobileHeight,"onUpdate:modelValue":s[3]||(s[3]=h=>e.data.data.mobileHeight=h),disabled:""},null,8,["modelValue"]),s[16]||(s[16]=d.createElementVNode("p",{class:"item-title"},"唯一标识",-1)),d.createVNode(f,{modelValue:e.data.data.id,"onUpdate:modelValue":s[4]||(s[4]=h=>e.data.data.id=h),placeholder:"请输入唯一标识","allow-clear":""},null,8,["modelValue"])])]),_:1},8,["visible"])}}}),qbe=ct(Gbe,[["__scopeId","data-v-72d8e435"]]),Kbe=["id"],Ybe=d.defineComponent({name:"CustomSpace",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var l,f;if(n.modelValue&&n.modelValue.data)return;const c={id:((l=n.modelValue)==null?void 0:l.id)||ye(),type:"CustomSpace",readOnly:((f=n.modelValue)==null?void 0:f.readOnly)||!1,data:{id:"",desktopHeight:"49",mobileHeight:"24",bgColor:""}};r("update:modelValue",c)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)};return o(),(c,l)=>{var f,p,h,y,v,m,b,g,w;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{id:(p=(f=e.modelValue)==null?void 0:f.data)==null?void 0:p.id,class:"custom-space",style:d.normalizeStyle({"--desktop-height":((y=(h=e.modelValue)==null?void 0:h.data)==null?void 0:y.desktopHeight)+"px","--mobile-height":((m=(v=e.modelValue)==null?void 0:v.data)==null?void 0:m.mobileHeight)+"px","--bg-color":(g=(b=e.modelValue)==null?void 0:b.data)==null?void 0:g.bgColor}),onMouseenter:l[2]||(l[2]=E=>i.value=!0),onMouseleave:l[3]||(l[3]=E=>i.value=!1)},[(w=e.modelValue)!=null&&w.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":l[0]||(l[0]=E=>i.value=E),onHandleEdit:l[1]||(l[1]=E=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],44,Kbe),d.createVNode(qbe,{show:a.value,"onUpdate:show":l[4]||(l[4]=E=>a.value=E),data:e.modelValue},null,8,["show","data"])],64)}}}),Z5=ct(Ybe,[["__scopeId","data-v-05d34a76"]]),Xbe={class:"setting-content"},Zbe={class:"setting-body"},Jbe={class:"item-name"},Qbe={class:"btn-group"},e2e={key:0,class:"drag-handle"},t2e={class:"item-name"},n2e=["src"],r2e={class:"mt-2 flex items-center"},o2e=["src"],i2e={class:"mt-2 flex items-center"},a2e=["src"],u2e={class:"mt-2 flex items-center"},s2e={class:"btn-group"},l2e={key:0,class:"drag-handle"},c2e={class:"item-action flex items-center"},d2e=["onClick"],f2e=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show","updateSwiper"],setup(e,{emit:t}){const n=d.ref(!1),r=d.computed(()=>({animation:200,group:"banners",disabled:!1,ghostClass:"ghost"})),o=d.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),i=p=>p&&p.length>1,a=t,u=()=>{a("update:show",!1)},s=(p,h)=>{p.push({id:ye(),type:h,imgSrc:"",title:"",alt:"",link:"",videoSrc:h==="Video"?"":void 0}),a("updateSwiper")},c=(p,h)=>{p.splice(p.findIndex(y=>y.id===h),1),a("updateSwiper")},l=p=>{p.push({id:ye(),text:"查看更多",url:void 0,isExternal:!1})},f=(p,h)=>{p.splice(p.findIndex(y=>y.id===h),1)};return(p,h)=>{const y=d.resolveComponent("icon-drag-arrow"),v=d.resolveComponent("icon-delete"),m=d.resolveComponent("a-input"),b=d.resolveComponent("a-upload"),g=d.resolveComponent("a-checkbox"),w=d.resolveComponent("icon-plus"),E=d.resolveComponent("a-button"),D=d.resolveComponent("a-button-group"),C=d.resolveComponent("a-link"),x=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(x,{width:500,visible:e.show,footer:!1,onCancel:u,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",Xbe,[d.createElementVNode("div",Zbe,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.data.data,A=>(d.openBlock(),d.createElementBlock("div",{class:"setting-item",key:A.id},[d.createElementVNode("p",Jbe,d.toDisplayString(A.type),1),A.type==="Banners"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createVNode(d.unref(nr),d.mergeProps({modelValue:A.data,"onUpdate:modelValue":_=>A.data=_,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},{ref_for:!0},r.value,{disabled:!i(A.data),onStart:h[0]||(h[0]=_=>n.value=!0),onEnd:h[1]||(h[1]=_=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:_})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(A.data)}]),key:A.id},[d.createElementVNode("div",Qbe,[i(A.data)?(d.openBlock(),d.createElementBlock("div",e2e,[d.createVNode(y,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(v,{class:"btn-delete",onClick:L=>c(A.data,A.id)},null,8,["onClick"])]),d.createElementVNode("p",t2e,d.toDisplayString(_.type),1),d.createVNode(m,{class:"mt-2",modelValue:_.title,"onUpdate:modelValue":L=>_.title=L,placeholder:"标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(m,{class:"mt-2",modelValue:_.alt,"onUpdate:modelValue":L=>_.alt=L,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(m,{class:"mt-2",modelValue:_.link,"onUpdate:modelValue":L=>_.link=L,placeholder:"链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),_.type==="Image"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createElementVNode("img",{class:"item-img",src:_.imgSrc},null,8,n2e),d.createElementVNode("div",r2e,[d.createVNode(m,{modelValue:_.imgSrc,"onUpdate:modelValue":L=>_.imgSrc=L,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(b,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createElementVNode("video",{class:"item-img",src:_.videoSrc,controls:""},null,8,o2e),d.createElementVNode("div",i2e,[d.createVNode(m,{modelValue:_.videoSrc,"onUpdate:modelValue":L=>_.videoSrc=L,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(b,{class:"fit-content","show-file-list":!1,action:"/"})]),d.createElementVNode("img",{class:"item-img",src:_.imgSrc},null,8,a2e),d.createElementVNode("div",u2e,[d.createVNode(m,{modelValue:_.imgSrc,"onUpdate:modelValue":L=>_.imgSrc=L,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(b,{class:"fit-content","show-file-list":!1,action:"/"})])],64)),d.createVNode(g,{class:"mt-2","model-value":_.isExternal},{default:d.withCtx(()=>h[4]||(h[4]=[d.createTextVNode("是否外部链接")])),_:2,__:[4]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createVNode(D,{class:"mt-2",type:"primary"},{default:d.withCtx(()=>[d.createVNode(E,{size:"mini",type:"outline",onClick:_=>s(A.data,"Image")},{icon:d.withCtx(()=>[d.createVNode(w)]),default:d.withCtx(()=>[h[5]||(h[5]=d.createTextVNode(" 图片 "))]),_:2,__:[5]},1032,["onClick"]),d.createVNode(E,{size:"mini",type:"outline",onClick:_=>s(A.data,"Video")},{icon:d.withCtx(()=>[d.createVNode(w)]),default:d.withCtx(()=>[h[6]||(h[6]=d.createTextVNode(" 视频 "))]),_:2,__:[6]},1032,["onClick"])]),_:2},1024)],64)):d.createCommentVNode("",!0),A.type==="Links"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createVNode(d.unref(nr),d.mergeProps({modelValue:A.data,"onUpdate:modelValue":_=>A.data=_,"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},{ref_for:!0},o.value,{disabled:!i(A.data),onStart:h[2]||(h[2]=_=>n.value=!0),onEnd:h[3]||(h[3]=_=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:_})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(A.data)}]),key:_.id},[d.createElementVNode("div",s2e,[i(A.data)?(d.openBlock(),d.createElementBlock("div",l2e,[d.createVNode(y,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(v,{class:"btn-delete",onClick:L=>f(A.data,_.id)},null,8,["onClick"])]),d.createVNode(C,{href:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(_.text),1)]),_:2},1024),d.createElementVNode("div",c2e,[d.createVNode(m,{class:"action-text",modelValue:_.text,"onUpdate:modelValue":L=>_.text=L,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(m,{modelValue:_.url,"onUpdate:modelValue":L=>_.url=L,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(g,{"model-value":_.isExternal},{default:d.withCtx(()=>h[7]||(h[7]=[d.createTextVNode("是否外部链接")])),_:2,__:[7]},1032,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),d.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:_=>l(A.data)},[d.createVNode(w),h[8]||(h[8]=d.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,d2e)],64)):d.createCommentVNode("",!0)]))),128))])])]),_:1},8,["visible"])}}}),p2e=ct(f2e,[["__scopeId","data-v-adf57909"]]),h2e={class:"banner-quicklinks"},g2e={class:"quick-links__list"},v2e=d.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},setup(e){const t=e,n=d.ref(null),r=d.ref(!1),o=d.ref(!1),i=()=>{const c=n.value;c&&(r.value=c.scrollLeft>0,o.value=c.scrollLeft+c.clientWidth<c.scrollWidth)},a=()=>{const c=n.value;c&&c.scrollBy({left:-c.clientWidth/1.5,behavior:"smooth"})},u=()=>{const c=n.value;c&&c.scrollBy({left:c.clientWidth/1.5,behavior:"smooth"})},s=()=>{i()};return d.watch(()=>t.data,async()=>{await d.nextTick(),i()}),d.onMounted(()=>{window.addEventListener("resize",i),d.nextTick(i)}),d.onUnmounted(()=>{window.removeEventListener("resize",i)}),(c,l)=>(d.openBlock(),d.createElementBlock("div",h2e,[d.withDirectives(d.createElementVNode("div",{class:"quick-links__nav__prev",onClick:a},null,512),[[d.vShow,r.value]]),d.createElementVNode("div",{class:"quick-links__wrapper",ref_key:"quickLinksWrapperRef",ref:n,onScroll:s},[d.createElementVNode("div",g2e,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.data,f=>(d.openBlock(),d.createBlock(fv,{key:f.id,data:f,hasHoverBg:!1},null,8,["data"]))),128))])],544),d.withDirectives(d.createElementVNode("div",{class:"quick-links__nav__next",onClick:u},null,512),[[d.vShow,o.value]])]))}}),m2e=ct(v2e,[["__scopeId","data-v-7ef2a320"]]),y2e={class:"swiper-wrapper"},b2e={class:"swiper-slide__media"},w2e=["src","alt"],E2e={key:1,class:"video-player"},x2e=["poster"],C2e=["src"],S2e=["href"],D2e={class:"swiper-slide__body"},k2e={class:"swiper-slide__body__title text-center"},A2e={class:"video-box"},O2e=["src"],B2e=d.defineComponent({__name:"index",props:{data:{},imageInterval:{},videoAutoNext:{type:Boolean}},setup(e,{expose:t}){const n=e,r=d.ref();let o=null,i=0,a=null,u=null,s=null,c=null,l=null;const f=async()=>{try{const R=await Promise.resolve().then(()=>require("./swiper-JiLDDxAF.js")),{Navigation:I,Pagination:q,Autoplay:z}=await Promise.resolve().then(()=>require("./index-Ch_ldWmA.js"));u=R.Swiper,s=I,c=q,l=z,await Promise.resolve().then(()=>require("./swiper-Dyvby5gX.js")),await Promise.resolve().then(()=>require("./navigation-Dyvby5gX.js")),await Promise.resolve().then(()=>require("./pagination-Dyvby5gX.js")),r.value&&(o=new u(r.value,{modules:[s,c,l],autoHeight:!1,speed:1e3,effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{el:".swiper-pagination",clickable:!0},on:{slideChange:H=>{i=H.activeIndex,v(i)},touchStart:()=>{h()},touchEnd:()=>{setTimeout(()=>{const H=n.data[p.value];H&&H.type==="Image"&&y()},100)}}}))}catch(R){console.error("Failed to load Swiper:",R)}},p=d.ref(0),h=()=>{a&&(clearTimeout(a),a=null)},y=()=>{h();const R=n.data[p.value];if(R&&R.type==="Image"){const I=n.imageInterval||5e3;a=setTimeout(()=>{o&&o.slideNext()},I)}},v=R=>{h(),D(),p.value=R;const I=n.data[p.value];I.type==="Video"?E():I.type==="Image"&&y()},m=()=>{w.value=!1,n.videoAutoNext!==!1&&o&&setTimeout(()=>{o.slideNext()},200)},b=d.ref([]),g=(R,I)=>{const q=R&&"$el"in R?R.$el:R;q instanceof HTMLVideoElement&&(b.value[I]=q)},w=d.ref(!1),E=()=>{b.value[p.value]&&(b.value[p.value].play(),w.value=!0,h())},D=()=>{b.value[p.value]&&(b.value[p.value].pause(),w.value=!1)},C=d.ref(!1),x=d.ref(),A=d.ref(),_=()=>{D(),A.value=n.data[p.value].videoSrc,d.nextTick(()=>{var R;C.value=!0,(R=x.value)==null||R.play()})},L=()=>{var R;(R=x.value)==null||R.pause(),C.value=!1};return d.onMounted(async()=>{await f(),v(0)}),d.onUnmounted(()=>{h(),o&&o.destroy(!0,!0)}),t({initSwiper:f}),(R,I)=>{const q=d.resolveComponent("a-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"swiper-container",ref_key:"swiperContainer",ref:r},[d.createElementVNode("div",y2e,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(R.data,(z,H)=>(d.openBlock(),d.createElementBlock("div",{class:"swiper-slide",key:z.id},[d.createElementVNode("div",b2e,[z.type==="Image"?(d.openBlock(),d.createElementBlock("img",{key:0,class:"swiper-slide__media-img",src:z.imgSrc,alt:z.alt},null,8,w2e)):z.type==="Video"?(d.openBlock(),d.createElementBlock("div",E2e,[d.createElementVNode("video",{ref_for:!0,ref:Y=>g(Y,H),playsinline:"",poster:z.imgSrc,onEnded:m},[d.createElementVNode("source",{src:z.videoSrc,type:"video/mp4"},null,8,C2e)],40,x2e)])):d.createCommentVNode("",!0)]),d.createElementVNode("a",{href:z.link,target:"_blank",class:"swiper-slide__link"},null,8,S2e),d.createElementVNode("div",D2e,[d.createElementVNode("div",k2e,d.toDisplayString(z.title),1),z.type==="Video"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[w.value?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:0,type:"button",class:"swiper-slide__body__play",onClick:d.withModifiers(E,["stop"])})),d.createElementVNode("button",{type:"button",class:"swiper-slide__body__link",onClick:d.withModifiers(_,["stop"])},"观看完整视频")],64)):d.createCommentVNode("",!0)])]))),128))]),I[1]||(I[1]=d.createElementVNode("div",{class:"swiper-pagination"},null,-1)),I[2]||(I[2]=d.createElementVNode("div",{class:"swiper-button-next"},null,-1)),I[3]||(I[3]=d.createElementVNode("div",{class:"swiper-button-prev"},null,-1))],512),d.createVNode(q,{visible:C.value,"onUpdate:visible":I[0]||(I[0]=z=>C.value=z),footer:!1,width:"1200px",onCancel:L},{title:d.withCtx(()=>I[4]||(I[4]=[d.createTextVNode(" 观看完整视频 ")])),default:d.withCtx(()=>[d.createElementVNode("div",A2e,[d.createElementVNode("video",{ref_key:"videoElement",ref:x,controls:""},[d.createElementVNode("source",{src:A.value,type:"video/mp4"},null,8,O2e)],512)])]),_:1},8,["visible"])],64)}}}),_2e=ct(B2e,[["__scopeId","data-v-2e7fac84"]]),N2e=d.defineComponent({name:"HeroSlide",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var p,h;if(n.modelValue&&n.modelValue.data)return;const f={id:((p=n.modelValue)==null?void 0:p.id)||ye(),type:"HeroSlide",readOnly:((h=n.modelValue)==null?void 0:h.readOnly)||!1,data:[{id:ye(),type:"Banners",data:[{id:ye(),type:"Image",title:"耀华国际教育学校浙江桐乡",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:"",link:"https://www.baidu.com"},{id:ye(),type:"Video",title:"耀华国际教育学校浙江桐乡",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:"",link:"",videoSrc:"https://mvideo.ycyw.com/2e1a9441vodgzp1253458132/a31402d51397757891052265568/SW8B19vOtzMA.mp4"}]},{id:ye(),type:"Links",data:[{id:ye(),text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]}]};r("update:modelValue",f)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)},c=d.ref(),l=()=>{var f;(f=c.value)==null||f.initSwiper()};return o(),(f,p)=>{var h,y;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"hero-slide has-quick-links is-video-and-image",onMouseenter:p[2]||(p[2]=v=>i.value=!0),onMouseleave:p[3]||(p[3]=v=>i.value=!1)},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((h=e.modelValue)==null?void 0:h.data,v=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:v.id},[v.type==="Banners"?(d.openBlock(),d.createBlock(_2e,{key:0,ref_for:!0,ref_key:"swiperRef",ref:c,data:v.data},null,8,["data"])):d.createCommentVNode("",!0),v.type==="Links"&&v.data.length?(d.openBlock(),d.createBlock(m2e,{key:1,data:v.data},null,8,["data"])):d.createCommentVNode("",!0)],64))),128)),(y=e.modelValue)!=null&&y.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":p[0]||(p[0]=v=>i.value=v),onHandleEdit:p[1]||(p[1]=v=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],32),d.createVNode(p2e,{show:a.value,"onUpdate:show":p[4]||(p[4]=v=>a.value=v),data:e.modelValue,onUpdateSwiper:l},null,8,["show","data"])],64)}}}),J5=ct(N2e,[["__scopeId","data-v-fbb9a937"]]),T2e={class:"setting-content"},F2e=["src"],V2e={class:"item-uplaod flex items-center"},P2e=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=t,r=()=>{n("update:show",!1)};return(o,i)=>{const a=d.resolveComponent("a-input"),u=d.resolveComponent("a-upload"),s=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(s,{width:500,visible:e.show,footer:!1,onCancel:r,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>{var c,l;return[d.createElementVNode("div",T2e,[i[2]||(i[2]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(a,{modelValue:e.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=f=>e.data.data.title=f),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),i[3]||(i[3]=d.createElementVNode("p",{class:"item-title"},"图片",-1)),d.createElementVNode("img",{class:"item-img",src:(l=(c=e.data)==null?void 0:c.data)==null?void 0:l.imgSrc},null,8,F2e),d.createElementVNode("div",V2e,[d.createVNode(a,{modelValue:e.data.data.imgSrc,"onUpdate:modelValue":i[1]||(i[1]=f=>e.data.data.imgSrc=f),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),d.createVNode(u,{class:"fit-content","show-file-list":!1,action:"/"})])])]}),_:1},8,["visible"])}}}),j2e=ct(P2e,[["__scopeId","data-v-1bc09ad8"]]),L2e={class:"banner-image__title is-zh"},I2e=d.defineComponent({name:"BannerImage",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var l,f;if(n.modelValue&&n.modelValue.data)return;const c={id:((l=n.modelValue)==null?void 0:l.id)||ye(),type:"BannerImage",readOnly:((f=n.modelValue)==null?void 0:f.readOnly)||!1,data:{title:"About YWIES",imgSrc:"https://osswebsite-test.cedim.cn/ywies-tx/static-images/about-ywies/01_About_YWIES_1_Header.jpg"}};r("update:modelValue",c)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)};return o(),(c,l)=>{var f,p,h,y,v;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"banner-image",onMouseenter:l[2]||(l[2]=m=>i.value=!0),onMouseleave:l[3]||(l[3]=m=>i.value=!1)},[d.createElementVNode("div",{class:"banner-image__image",style:d.normalizeStyle({backgroundImage:"url("+((p=(f=e.modelValue)==null?void 0:f.data)==null?void 0:p.imgSrc)+")","background-position":"center"})},[d.createElementVNode("div",L2e,d.toDisplayString((y=(h=e.modelValue)==null?void 0:h.data)==null?void 0:y.title),1)],4),(v=e.modelValue)!=null&&v.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":l[0]||(l[0]=m=>i.value=m),onHandleEdit:l[1]||(l[1]=m=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],32),d.createVNode(j2e,{show:a.value,"onUpdate:show":l[4]||(l[4]=m=>a.value=m),data:e.modelValue},null,8,["show","data"])],64)}}}),Q5=ct(I2e,[["__scopeId","data-v-6f9fc6c4"]]),R2e={class:"setting-content"},M2e={class:"setting-header flex items-center"},$2e={class:"setting-header flex items-center"},z2e={class:"setting-body"},H2e={class:"setting-item"},U2e={class:"btn-group"},W2e={key:0,class:"drag-handle"},G2e={class:"item-action flex items-center"},q2e=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=d.ref(!1),r=d.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),o=l=>l&&l.length>1,i=e,a=t,u=()=>{a("update:show",!1)},s=l=>{i.data.data.push({id:ye(),type:l,text:"查看更多",url:void 0,isExternal:!1})},c=l=>{i.data.data=i.data.data.filter(f=>f.id!==l)};return(l,f)=>{const p=d.resolveComponent("a-option"),h=d.resolveComponent("a-select"),y=d.resolveComponent("icon-plus"),v=d.resolveComponent("a-button"),m=d.resolveComponent("a-button-group"),b=d.resolveComponent("icon-drag-arrow"),g=d.resolveComponent("icon-delete"),w=d.resolveComponent("a-input"),E=d.resolveComponent("a-checkbox"),D=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(D,{width:500,visible:e.show,footer:!1,onCancel:u,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",R2e,[d.createElementVNode("div",M2e,[f[13]||(f[13]=d.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),d.createVNode(h,{modelValue:e.data.width,"onUpdate:modelValue":f[0]||(f[0]=C=>e.data.width=C),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(p,{value:""},{default:d.withCtx(()=>f[9]||(f[9]=[d.createTextVNode("默认")])),_:1,__:[9]}),d.createVNode(p,{value:"small"},{default:d.withCtx(()=>f[10]||(f[10]=[d.createTextVNode("小")])),_:1,__:[10]}),d.createVNode(p,{value:"middle"},{default:d.withCtx(()=>f[11]||(f[11]=[d.createTextVNode("中")])),_:1,__:[11]}),d.createVNode(p,{value:"max"},{default:d.withCtx(()=>f[12]||(f[12]=[d.createTextVNode("大")])),_:1,__:[12]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",$2e,[f[16]||(f[16]=d.createElementVNode("span",{class:"header-title"},"组件背景",-1)),d.createVNode(h,{modelValue:e.data.bgColor,"onUpdate:modelValue":f[1]||(f[1]=C=>e.data.bgColor=C),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(p,{value:"#ffffff"},{default:d.withCtx(()=>f[14]||(f[14]=[d.createTextVNode("白色")])),_:1,__:[14]}),d.createVNode(p,{value:"#F7F7FA"},{default:d.withCtx(()=>f[15]||(f[15]=[d.createTextVNode("灰色")])),_:1,__:[15]})]),_:1},8,["modelValue"])]),d.createVNode(m,{type:"primary"},{default:d.withCtx(()=>[d.createVNode(v,{size:"mini",onClick:f[2]||(f[2]=C=>s(""))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[17]||(f[17]=d.createTextVNode(" 默认按钮 "))]),_:1,__:[17]}),d.createVNode(v,{size:"mini",onClick:f[3]||(f[3]=C=>s("white"))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[18]||(f[18]=d.createTextVNode(" 白色按钮 "))]),_:1,__:[18]}),d.createVNode(v,{size:"mini",onClick:f[4]||(f[4]=C=>s("light"))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[19]||(f[19]=d.createTextVNode(" 亮色按钮 "))]),_:1,__:[19]}),d.createVNode(v,{size:"mini",onClick:f[5]||(f[5]=C=>s("blue"))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[20]||(f[20]=d.createTextVNode(" 蓝色按钮 "))]),_:1,__:[20]})]),_:1}),d.createElementVNode("div",z2e,[d.createElementVNode("div",H2e,[f[22]||(f[22]=d.createElementVNode("p",{class:"item-name"},"按钮",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.data,"onUpdate:modelValue":f[6]||(f[6]=C=>e.data.data=C),"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},r.value,{disabled:!o(e.data.data),onStart:f[7]||(f[7]=C=>n.value=!0),onEnd:f[8]||(f[8]=C=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:C})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!o(e.data.data)}]),key:C.id},[d.createElementVNode("div",U2e,[o(e.data.data)?(d.openBlock(),d.createElementBlock("div",W2e,[d.createVNode(b,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(g,{class:"btn-delete",onClick:x=>c(C.id)},null,8,["onClick"])]),d.createVNode(v,{type:"primary"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(C.text),1)]),_:2},1024),d.createElementVNode("div",G2e,[d.createVNode(w,{class:"action-text",modelValue:C.text,"onUpdate:modelValue":x=>C.text=x,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(w,{modelValue:C.url,"onUpdate:modelValue":x=>C.url=x,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(E,{"model-value":C.isExternal},{default:d.withCtx(()=>f[21]||(f[21]=[d.createTextVNode("是否外部链接")])),_:2,__:[21]},1032,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),K2e=ct(q2e,[["__scopeId","data-v-3f125042"]]),Y2e={class:"btn-list__row"},X2e=["href"],Z2e={class:"btn-primary__text"},J2e=d.defineComponent({name:"BtnList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var l,f;if(n.modelValue&&n.modelValue.data)return;const c={id:((l=n.modelValue)==null?void 0:l.id)||ye(),type:"BtnList",readOnly:((f=n.modelValue)==null?void 0:f.readOnly)||!1,width:"",bgColor:"",data:[{id:ye(),type:"",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:ye(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:ye(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:ye(),type:"blue",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]};r("update:modelValue",c)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)};return o(),(c,l)=>{var f,p,h,y,v;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"btn-list center",style:d.normalizeStyle({backgroundColor:(f=e.modelValue)==null?void 0:f.bgColor}),onMouseenter:l[2]||(l[2]=m=>i.value=!0),onMouseleave:l[3]||(l[3]=m=>i.value=!1)},[d.createElementVNode("div",{class:d.normalizeClass(["btn-list__container",[(p=e.modelValue)!=null&&p.width?`container-content-${(h=e.modelValue)==null?void 0:h.width}`:"container-content"]])},[d.createElementVNode("div",Y2e,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((y=e.modelValue)==null?void 0:y.data,m=>(d.openBlock(),d.createElementBlock("div",{class:"btn-list__item",key:m.id},[d.createElementVNode("a",{href:m.url||"#",class:d.normalizeClass(["size-normal btn-primary",[m.type?`btn-primary--${m.type}`:""]])},[d.createElementVNode("div",Z2e,d.toDisplayString(m.text),1),l[5]||(l[5]=d.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],10,X2e)]))),128))])],2),(v=e.modelValue)!=null&&v.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":l[0]||(l[0]=m=>i.value=m),onHandleEdit:l[1]||(l[1]=m=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],36),d.createVNode(K2e,{show:a.value,"onUpdate:show":l[4]||(l[4]=m=>a.value=m),data:e.modelValue},null,8,["show","data"])],64)}}}),Ty=ct(J2e,[["__scopeId","data-v-d0761976"]]),Q2e=["src"],ewe={class:"item-uplaod flex items-center"},twe=["src"],nwe={class:"item-uplaod flex items-center"},rwe={class:"item-title pt-2"},owe={class:"btn-group"},iwe={key:0,class:"drag-handle"},awe={class:"item-action flex items-center"},uwe={class:"btn-group"},swe={key:0,class:"drag-handle"},lwe=d.defineComponent({__name:"setting",props:{data:{type:Object,default:()=>{}},showLogo:{type:Boolean,default:!0},maxNum:{type:Number,default:2},canAddParagraph:{type:Boolean,default:!1}},setup(e){const t=d.ref(!1),n=d.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),r=d.computed(()=>({animation:200,group:"paragraphs",disabled:!1,ghostClass:"ghost"})),o=c=>c&&c.length>1,i=e,a=(c,l)=>{l.length>=i.maxNum||l.push({id:ye(),type:c,text:"查看更多",url:void 0,isExternal:!1})},u=(c,l)=>{c.splice(c.findIndex(f=>f.id===l),1)},s=c=>{c.push({title:"耀华国际教育学校浙江桐乡",subTitle:"耀华国际教育学校浙江桐乡",name:"耀华国际教育学校浙江桐乡",label:"123",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",buttonList:{id:ye(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[]},paragraphs:{title:"",content:""}})};return(c,l)=>{const f=d.resolveComponent("a-input"),p=d.resolveComponent("a-upload"),h=d.resolveComponent("icon-drag-arrow"),y=d.resolveComponent("icon-delete"),v=d.resolveComponent("a-button"),m=d.resolveComponent("a-checkbox"),b=d.resolveComponent("icon-plus"),g=d.resolveComponent("a-button-group");return d.openBlock(),d.createElementBlock(d.Fragment,null,[e.showLogo?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[l[18]||(l[18]=d.createElementVNode("p",{class:"item-title"},"学校logo",-1)),d.createElementVNode("img",{class:"item-img",src:e.data.logo},null,8,Q2e),d.createElementVNode("div",ewe,[d.createVNode(f,{modelValue:e.data.logo,"onUpdate:modelValue":l[0]||(l[0]=w=>e.data.logo=w),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),d.createVNode(p,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):d.createCommentVNode("",!0),l[27]||(l[27]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(f,{modelValue:e.data.title,"onUpdate:modelValue":l[1]||(l[1]=w=>e.data.title=w),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),l[28]||(l[28]=d.createElementVNode("p",{class:"item-title"},"子标题",-1)),d.createVNode(f,{modelValue:e.data.subTitle,"onUpdate:modelValue":l[2]||(l[2]=w=>e.data.subTitle=w),placeholder:"请输入子标题","allow-clear":""},null,8,["modelValue"]),l[29]||(l[29]=d.createElementVNode("p",{class:"item-title"},"名称",-1)),d.createVNode(f,{modelValue:e.data.name,"onUpdate:modelValue":l[3]||(l[3]=w=>e.data.name=w),placeholder:"请输入名称","allow-clear":""},null,8,["modelValue"]),l[30]||(l[30]=d.createElementVNode("p",{class:"item-title"},"标签",-1)),d.createVNode(f,{modelValue:e.data.label,"onUpdate:modelValue":l[4]||(l[4]=w=>e.data.label=w),placeholder:"请输入标签","allow-clear":""},null,8,["modelValue"]),l[31]||(l[31]=d.createElementVNode("p",{class:"item-title"},"图片",-1)),d.createElementVNode("img",{class:"item-img",src:e.data.imgSrc},null,8,twe),d.createElementVNode("div",nwe,[d.createVNode(f,{modelValue:e.data.imgSrc,"onUpdate:modelValue":l[5]||(l[5]=w=>e.data.imgSrc=w),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),d.createVNode(p,{class:"fit-content","show-file-list":!1,action:"/"})]),d.createVNode(f,{class:"mt-2",modelValue:e.data.alt,"onUpdate:modelValue":l[6]||(l[6]=w=>e.data.alt=w),placeholder:"图片alt","allow-clear":""},null,8,["modelValue"]),d.createElementVNode("p",rwe,"按钮(最多"+d.toDisplayString(e.maxNum)+"个)",1),d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.buttonList.data,"onUpdate:modelValue":l[7]||(l[7]=w=>e.data.buttonList.data=w),"component-data":{tag:"div",type:"transition-group",name:t.value?null:"flip-list"}},n.value,{disabled:!o(e.data.buttonList.data),onStart:l[8]||(l[8]=w=>t.value=!0),onEnd:l[9]||(l[9]=w=>t.value=!1),"item-key":"id"}),{item:d.withCtx(({element:w})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button item-link draggable-item",{"sortable-disabled":!o(e.data.buttonList.data)}]),key:w.id},[d.createElementVNode("div",owe,[o(e.data.buttonList.data)?(d.openBlock(),d.createElementBlock("div",iwe,[d.createVNode(h,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(y,{class:"btn-delete",onClick:E=>u(e.data.buttonList.data,w.id)},null,8,["onClick"])]),d.createVNode(v,{type:"primary"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(w.text),1)]),_:2},1024),d.createElementVNode("div",awe,[d.createVNode(f,{class:"action-text",modelValue:w.text,"onUpdate:modelValue":E=>w.text=E,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(f,{modelValue:w.url,"onUpdate:modelValue":E=>w.url=E,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(m,{"model-value":w.isExternal},{default:d.withCtx(()=>l[19]||(l[19]=[d.createTextVNode("是否外部链接")])),_:2,__:[19]},1032,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"]),d.createVNode(g,{class:"mt-2",type:"primary"},{default:d.withCtx(()=>[d.createVNode(v,{size:"mini",onClick:l[10]||(l[10]=w=>a("default",e.data.buttonList.data))},{icon:d.withCtx(()=>[d.createVNode(b)]),default:d.withCtx(()=>[l[20]||(l[20]=d.createTextVNode(" 默认按钮 "))]),_:1,__:[20]}),d.createVNode(v,{size:"mini",onClick:l[11]||(l[11]=w=>a("white",e.data.buttonList.data))},{icon:d.withCtx(()=>[d.createVNode(b)]),default:d.withCtx(()=>[l[21]||(l[21]=d.createTextVNode(" 白色按钮 "))]),_:1,__:[21]}),d.createVNode(v,{size:"mini",onClick:l[12]||(l[12]=w=>a("light",e.data.buttonList.data))},{icon:d.withCtx(()=>[d.createVNode(b)]),default:d.withCtx(()=>[l[22]||(l[22]=d.createTextVNode(" 亮色按钮 "))]),_:1,__:[22]}),d.createVNode(v,{size:"mini",onClick:l[13]||(l[13]=w=>a("blue",e.data.buttonList.data))},{icon:d.withCtx(()=>[d.createVNode(b)]),default:d.withCtx(()=>[l[23]||(l[23]=d.createTextVNode(" 蓝色按钮 "))]),_:1,__:[23]})]),_:1}),l[32]||(l[32]=d.createElementVNode("p",{class:"item-name mt-2"},"段落",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.paragraphs,"onUpdate:modelValue":l[14]||(l[14]=w=>e.data.paragraphs=w),"component-data":{tag:"div",type:"transition-group",name:t.value?null:"flip-list"}},r.value,{disabled:!o(e.data.paragraphs),onStart:l[15]||(l[15]=w=>t.value=!0),onEnd:l[16]||(l[16]=w=>t.value=!1),"item-key":"id"}),{item:d.withCtx(({element:w})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button item-link draggable-item",{"sortable-disabled":!o(e.data.paragraphs)}]),key:w.id},[d.createElementVNode("div",uwe,[o(e.data.paragraphs)?(d.openBlock(),d.createElementBlock("div",swe,[d.createVNode(h,{class:"drag-icon"})])):d.createCommentVNode("",!0),e.canAddParagraph?(d.openBlock(),d.createBlock(y,{key:1,class:"btn-delete",onClick:E=>u(e.data.paragraphs,w.id)},null,8,["onClick"])):d.createCommentVNode("",!0)]),l[24]||(l[24]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(f,{modelValue:w.title,"onUpdate:modelValue":E=>w.title=E,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),l[25]||(l[25]=d.createElementVNode("p",{class:"item-title mt-2"},"内容",-1)),d.createVNode(d.unref(Sp),{modelValue:w.content,"onUpdate:modelValue":E=>w.content=E},null,8,["modelValue","onUpdate:modelValue"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.canAddParagraph?(d.openBlock(),d.createElementBlock("div",{key:1,class:"item-add-btn flex items-center",onClick:l[17]||(l[17]=w=>s(e.data.paragraphs))},[d.createVNode(b),l[26]||(l[26]=d.createElementVNode("span",{class:"btn-text"},"添加段落",-1))])):d.createCommentVNode("",!0)],64)}}}),JM=ct(lwe,[["__scopeId","data-v-6523839a"]]),cwe={class:"setting-content"},dwe={class:"setting-header flex items-center"},fwe={class:"setting-header flex items-center"},pwe={class:"setting-header flex items-center"},hwe={class:"setting-body"},gwe={class:"setting-item"},vwe={class:"btn-group"},mwe={key:0,class:"drag-handle"},ywe=["src"],bwe={class:"item-uplaod flex items-center"},wwe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=d.ref(!1),r=d.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),o=l=>l&&l.length>1,i=e,a=t,u=()=>{a("update:show",!1)},s=l=>{i.data.data.push({id:ye(),type:l,text:"查看更多",url:void 0,isExternal:!1,isLight:!1})},c=l=>{i.data.data=i.data.data.filter(f=>f.id!==l)};return(l,f)=>{const p=d.resolveComponent("a-option"),h=d.resolveComponent("a-select"),y=d.resolveComponent("a-input"),v=d.resolveComponent("icon-plus"),m=d.resolveComponent("a-button"),b=d.resolveComponent("a-button-group"),g=d.resolveComponent("icon-drag-arrow"),w=d.resolveComponent("icon-delete"),E=d.resolveComponent("a-upload"),D=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(D,{width:500,visible:e.show,footer:!1,onCancel:u,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",cwe,[d.createElementVNode("div",dwe,[f[10]||(f[10]=d.createElementVNode("span",{class:"header-title"},"组件背景",-1)),d.createVNode(h,{modelValue:e.data.bgColor,"onUpdate:modelValue":f[0]||(f[0]=C=>e.data.bgColor=C),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(p,{value:"#ffffff"},{default:d.withCtx(()=>f[8]||(f[8]=[d.createTextVNode("白色")])),_:1,__:[8]}),d.createVNode(p,{value:"#F7F7FA"},{default:d.withCtx(()=>f[9]||(f[9]=[d.createTextVNode("灰色")])),_:1,__:[9]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",fwe,[f[11]||(f[11]=d.createElementVNode("span",{class:"header-title"},"pc列数",-1)),d.createVNode(y,{modelValue:e.data.desktopCol,"onUpdate:modelValue":f[1]||(f[1]=C=>e.data.desktopCol=C),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),d.createElementVNode("div",pwe,[f[12]||(f[12]=d.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),d.createVNode(y,{modelValue:e.data.mobileCol,"onUpdate:modelValue":f[2]||(f[2]=C=>e.data.mobileCol=C),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),d.createVNode(b,{type:"primary"},{default:d.withCtx(()=>[d.createVNode(m,{size:"mini",onClick:f[3]||(f[3]=C=>s("GalleryListItem"))},{icon:d.withCtx(()=>[d.createVNode(v)]),default:d.withCtx(()=>[f[13]||(f[13]=d.createTextVNode(" 普通项目 "))]),_:1,__:[13]}),d.createVNode(m,{size:"mini",onClick:f[4]||(f[4]=C=>s("GalleryListProfile"))},{icon:d.withCtx(()=>[d.createVNode(v)]),default:d.withCtx(()=>[f[14]||(f[14]=d.createTextVNode(" 文章项目 "))]),_:1,__:[14]})]),_:1}),d.createElementVNode("div",hwe,[d.createElementVNode("div",gwe,[d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.data,"onUpdate:modelValue":f[5]||(f[5]=C=>e.data.data=C),"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},r.value,{disabled:!o(e.data.data),onStart:f[6]||(f[6]=C=>n.value=!0),onEnd:f[7]||(f[7]=C=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:C})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!o(e.data.data)}]),key:C.id},[d.createElementVNode("div",vwe,[o(e.data.data)?(d.openBlock(),d.createElementBlock("div",mwe,[d.createVNode(g,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(w,{class:"btn-delete",onClick:x=>c(C.id)},null,8,["onClick"])]),f[15]||(f[15]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(y,{modelValue:C.title,"onUpdate:modelValue":x=>C.title=x,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),f[16]||(f[16]=d.createElementVNode("p",{class:"item-title"},"文本",-1)),d.createVNode(y,{modelValue:C.text,"onUpdate:modelValue":x=>C.text=x,placeholder:"请输入文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),f[17]||(f[17]=d.createElementVNode("p",{class:"item-title"},"图片",-1)),d.createElementVNode("img",{class:"item-img",src:C.imgSrc},null,8,ywe),d.createElementVNode("div",bwe,[d.createVNode(y,{modelValue:C.imgSrc,"onUpdate:modelValue":x=>C.imgSrc=x,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(E,{class:"fit-content","show-file-list":!1,action:"/"})]),d.createVNode(y,{class:"mt-2",modelValue:C.alt,"onUpdate:modelValue":x=>C.alt=x,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),f[18]||(f[18]=d.createElementVNode("p",{class:"item-title"},"网址",-1)),d.createVNode(y,{modelValue:C.url,"onUpdate:modelValue":x=>C.url=x,placeholder:"请输入网址","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),f[19]||(f[19]=d.createElementVNode("p",{class:"item-title"},"Profile Information",-1)),C.profile?(d.openBlock(),d.createBlock(JM,{key:0,data:C.profile,showLogo:!1,canAddParagraph:!0},null,8,["data"])):d.createCommentVNode("",!0)],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),Ewe=ct(wwe,[["__scopeId","data-v-33218bbc"]]),xwe={class:"lightbox__content"},Cwe={class:"lightbox__content__head"},Swe={class:"lightbox__content__head__image"},Dwe=["src","alt"],kwe={class:"lightbox__content__head__info"},Awe={class:"lightbox__content__head__info__title"},Owe={class:"lightbox__content__head__info__subtitle"},Bwe={class:"lightbox__content__head__info__label"},_we={class:"lightbox__content__head__info__btn"},Nwe={class:"lightbox__content__main",style:{"--head-height":"297px"}},Twe={class:"scroll-bar"},Fwe={"data-simplebar-auto-hide":"false",class:"simple-bar","data-simplebar":"init"},Vwe={class:"simplebar-wrapper",style:{margin:"0px -24px 0px 0px"}},Pwe={class:"simplebar-mask"},jwe={class:"simplebar-offset",style:{right:"0px",bottom:"0px"}},Lwe={class:"simplebar-content-wrapper",tabindex:"0",role:"region","aria-label":"scrollable content",style:{height:"auto",overflow:"hidden"}},Iwe={class:"simplebar-content",style:{padding:"0px 24px 0px 0px"}},Rwe={class:"lightbox__content__body"},Mwe={class:"lightbox__content__body__title"},$we=["innerHTML"],zwe={class:"lightbox__content__footer"},Hwe={class:"lightbox__content__footer__logo"},Uwe=["src"],Wwe=d.defineComponent({__name:"index",props:{data:{type:Object,default:()=>{}}},emits:["close"],setup(e,{emit:t}){const n=t,r=()=>{n("close")};return(o,i)=>{var a,u,s,c,l,f;return d.openBlock(),d.createElementBlock("div",xwe,[d.createElementVNode("div",{class:"lightbox__content__cross i i-cross-modal",onClick:r}),d.createElementVNode("div",{class:"lightbox__content__prev i i-arrow-prev",onClick:r}),d.createElementVNode("div",Cwe,[d.createElementVNode("div",Swe,[d.createElementVNode("img",{src:(a=e.data)==null?void 0:a.imgSrc,alt:(u=e.data)==null?void 0:u.alt},null,8,Dwe)]),d.createElementVNode("div",kwe,[d.createElementVNode("h2",Awe,d.toDisplayString((s=e.data)==null?void 0:s.title),1),d.createElementVNode("h6",Owe,d.toDisplayString((c=e.data)==null?void 0:c.subTitle),1),d.createElementVNode("div",Bwe,d.toDisplayString((l=e.data)==null?void 0:l.label),1),d.createElementVNode("div",_we,[d.createVNode(Ty,{modelValue:e.data.buttonList,"onUpdate:modelValue":i[0]||(i[0]=p=>e.data.buttonList=p)},null,8,["modelValue"])])])]),d.createElementVNode("div",Nwe,[d.createElementVNode("div",Twe,[d.createElementVNode("div",Fwe,[d.createElementVNode("div",Vwe,[i[1]||(i[1]=d.createElementVNode("div",{class:"simplebar-height-auto-observer-wrapper"},[d.createElementVNode("div",{class:"simplebar-height-auto-observer"})],-1)),d.createElementVNode("div",Pwe,[d.createElementVNode("div",jwe,[d.createElementVNode("div",Lwe,[d.createElementVNode("div",Iwe,[d.createElementVNode("div",Rwe,[d.createElementVNode("ul",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((f=e.data)==null?void 0:f.paragraphs,p=>(d.openBlock(),d.createElementBlock("li",{class:"lightbox__content__body__list",key:p.id},[d.createElementVNode("div",Mwe,d.toDisplayString(p.title),1),d.createElementVNode("div",{class:"lightbox__content__body__text",innerHTML:p.content},null,8,$we)]))),128))])]),d.createElementVNode("div",zwe,[d.createElementVNode("div",Hwe,[d.createElementVNode("img",{src:e.data.logo||"https://ywies-tx.cedim.cn/images/logo/logo-ycyw.png",alt:"school logo"},null,8,Uwe)])])])])])]),i[2]||(i[2]=d.createElementVNode("div",{class:"simplebar-placeholder",style:{width:"auto",height:"222px"}},null,-1))]),i[3]||(i[3]=d.createElementVNode("div",{class:"simplebar-track simplebar-horizontal",style:{visibility:"hidden"}},[d.createElementVNode("div",{class:"simplebar-scrollbar simplebar-visible",style:{width:"0px",display:"none"}})],-1)),i[4]||(i[4]=d.createElementVNode("div",{class:"simplebar-track simplebar-vertical",style:{visibility:"hidden"}},[d.createElementVNode("div",{class:"simplebar-scrollbar simplebar-visible",style:{height:"0px",display:"none"}})],-1))])])])])}}}),Gwe=ct(Wwe,[["__scopeId","data-v-5fc66282"]]),QM=d.defineComponent({__name:"modal",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=e,r=d.computed(()=>n.show),o=t,i=()=>{o("update:show",!1)};return(a,u)=>{const s=d.resolveComponent("a-modal");return d.openBlock(),d.createBlock(s,{visible:r.value,"onUpdate:visible":u[0]||(u[0]=c=>r.value=c),hideTitle:!0,footer:!1,bodyClass:"profile-model",onCancel:i},{default:d.withCtx(()=>[d.createVNode(Gwe,{data:e.data,onClose:i},null,8,["data"])]),_:1},8,["visible"])}}}),qwe=["onClick"],Kwe={class:"gallery-caption__img"},Ywe=["src","alt"],Xwe={class:"gallery-caption__title tx-subtitle text-blue text-center mt-3 mt-md-4 px-3"},Zwe={key:0,class:"tx-body text-teal-darkest text-center mt-2 mt-md-3 mb-3"},Jwe=d.defineComponent({name:"GalleryList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var h,y;if(n.modelValue&&n.modelValue.data)return;const p={id:((h=n.modelValue)==null?void 0:h.id)||ye(),type:"GalleryList",readOnly:((y=n.modelValue)==null?void 0:y.readOnly)||!1,bgColor:"",desktopCol:4,mobileCol:2,data:[{id:ye(),type:"GalleryListItem",title:"耀华国际教育学校浙江桐乡",text:"123",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:"",url:"https://www.baidu.com"},{id:ye(),type:"GalleryListProfile",title:"耀华国际教育学校浙江桐乡",text:"123",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:"",url:"",profile:{title:"耀华国际教育学校浙江桐乡",subTitle:"耀华国际教育学校浙江桐乡",name:"耀华国际教育学校浙江桐乡",label:"123",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",buttonList:{id:ye(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:ye(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:ye(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:ye(),title:"123",content:"123"}]}}]};r("update:modelValue",p)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)},c=d.ref(!1),l=d.ref({}),f=p=>{p.type==="GalleryListProfile"&&(l.value=p.profile,c.value=!0)};return o(),(p,h)=>{var m,b;const y=d.resolveComponent("a-col"),v=d.resolveComponent("a-row");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"gallery-list",onMouseenter:h[2]||(h[2]=g=>i.value=!0),onMouseleave:h[3]||(h[3]=g=>i.value=!1)},[d.createElementVNode("div",{class:"gallery-container gallery-caption container-content",style:d.normalizeStyle({backgroundColor:(m=e.modelValue)==null?void 0:m.bgColor})},[d.createVNode(v,{class:"caption-row"},{default:d.withCtx(()=>{var g;return[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((g=e.modelValue)==null?void 0:g.data,w=>{var E,D;return d.openBlock(),d.createBlock(y,{key:w.id,sm:{span:24/((E=e.modelValue)==null?void 0:E.mobileCol)},md:{span:24/((D=e.modelValue)==null?void 0:D.desktopCol)}},{default:d.withCtx(()=>[d.createElementVNode("div",{class:d.normalizeClass(["gallery-caption",[w.url&&"has-url",w.profile&&"has-profile"]]),onClick:C=>f(w)},[d.createElementVNode("div",Kwe,[d.createElementVNode("img",{src:w.imgSrc,alt:w.alt},null,8,Ywe)]),d.createElementVNode("div",Xwe,d.toDisplayString(w.title),1),w.text?(d.openBlock(),d.createElementBlock("div",Zwe,d.toDisplayString(w.text),1)):d.createCommentVNode("",!0)],10,qwe)]),_:2},1032,["sm","md"])}),128))]}),_:1})],4),(b=e.modelValue)!=null&&b.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":h[0]||(h[0]=g=>i.value=g),onHandleEdit:h[1]||(h[1]=g=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],32),d.createVNode(Ewe,{show:a.value,"onUpdate:show":h[4]||(h[4]=g=>a.value=g),data:e.modelValue},null,8,["show","data"]),d.createVNode(QM,{show:c.value,"onUpdate:show":h[5]||(h[5]=g=>c.value=g),data:l.value},null,8,["show","data"])],64)}}}),eS=ct(Jwe,[["__scopeId","data-v-25124312"]]),Qwe={class:"setting-content"},eEe={class:"setting-header flex items-center"},tEe={class:"setting-header flex items-center"},nEe={class:"setting-body"},rEe={class:"setting-item"},oEe={class:"btn-group"},iEe={key:0,class:"drag-handle"},aEe={class:"item-action flex items-center"},uEe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=d.ref(!1),r=d.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),o=l=>l&&l.length>1,i=e,a=t,u=()=>{a("update:show",!1)},s=l=>{i.data.data.push({id:ye(),type:l,text:"查看更多",url:void 0,isExternal:!1,isLight:!1})},c=l=>{i.data.data=i.data.data.filter(f=>f.id!==l)};return(l,f)=>{const p=d.resolveComponent("a-option"),h=d.resolveComponent("a-select"),y=d.resolveComponent("icon-plus"),v=d.resolveComponent("a-button"),m=d.resolveComponent("a-button-group"),b=d.resolveComponent("icon-drag-arrow"),g=d.resolveComponent("icon-delete"),w=d.resolveComponent("a-link"),E=d.resolveComponent("a-input"),D=d.resolveComponent("a-checkbox"),C=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(C,{width:500,visible:e.show,footer:!1,onCancel:u,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",Qwe,[d.createElementVNode("div",eEe,[f[11]||(f[11]=d.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),d.createVNode(h,{modelValue:e.data.width,"onUpdate:modelValue":f[0]||(f[0]=x=>e.data.width=x),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(p,{value:""},{default:d.withCtx(()=>f[7]||(f[7]=[d.createTextVNode("默认")])),_:1,__:[7]}),d.createVNode(p,{value:"small"},{default:d.withCtx(()=>f[8]||(f[8]=[d.createTextVNode("小")])),_:1,__:[8]}),d.createVNode(p,{value:"middle"},{default:d.withCtx(()=>f[9]||(f[9]=[d.createTextVNode("中")])),_:1,__:[9]}),d.createVNode(p,{value:"max"},{default:d.withCtx(()=>f[10]||(f[10]=[d.createTextVNode("大")])),_:1,__:[10]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",tEe,[f[14]||(f[14]=d.createElementVNode("span",{class:"header-title"},"组件背景",-1)),d.createVNode(h,{modelValue:e.data.bgColor,"onUpdate:modelValue":f[1]||(f[1]=x=>e.data.bgColor=x),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(p,{value:"#ffffff"},{default:d.withCtx(()=>f[12]||(f[12]=[d.createTextVNode("白色")])),_:1,__:[12]}),d.createVNode(p,{value:"#F7F7FA"},{default:d.withCtx(()=>f[13]||(f[13]=[d.createTextVNode("灰色")])),_:1,__:[13]})]),_:1},8,["modelValue"])]),d.createVNode(m,{type:"primary"},{default:d.withCtx(()=>[d.createVNode(v,{size:"mini",onClick:f[2]||(f[2]=x=>s("circle"))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[15]||(f[15]=d.createTextVNode(" 圆链接 "))]),_:1,__:[15]}),d.createVNode(v,{size:"mini",onClick:f[3]||(f[3]=x=>s("text"))},{icon:d.withCtx(()=>[d.createVNode(y)]),default:d.withCtx(()=>[f[16]||(f[16]=d.createTextVNode(" 文字链接 "))]),_:1,__:[16]})]),_:1}),d.createElementVNode("div",nEe,[d.createElementVNode("div",rEe,[f[20]||(f[20]=d.createElementVNode("p",{class:"item-name"},"链接",-1)),d.createVNode(d.unref(nr),d.mergeProps({modelValue:e.data.data,"onUpdate:modelValue":f[4]||(f[4]=x=>e.data.data=x),"component-data":{tag:"div",type:"transition-group",name:n.value?null:"flip-list"}},r.value,{disabled:!o(e.data.data),onStart:f[5]||(f[5]=x=>n.value=!0),onEnd:f[6]||(f[6]=x=>n.value=!1),"item-key":"id"}),{item:d.withCtx(({element:x})=>[(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["item-button draggable-item",{"sortable-disabled":!o(e.data.data)}]),key:x.id},[d.createElementVNode("div",oEe,[o(e.data.data)?(d.openBlock(),d.createElementBlock("div",iEe,[d.createVNode(b,{class:"drag-icon"})])):d.createCommentVNode("",!0),d.createVNode(g,{class:"btn-delete",onClick:A=>c(x.id)},null,8,["onClick"])]),d.createVNode(w,{href:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(x.text),1)]),_:2},1024),x.type==="circle"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createElementVNode("div",aEe,[d.createVNode(E,{class:"action-text",modelValue:x.text,"onUpdate:modelValue":A=>x.text=A,placeholder:"链接文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),d.createVNode(E,{modelValue:x.url,"onUpdate:modelValue":A=>x.url=A,placeholder:"链接链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),d.createVNode(D,{"model-value":x.isExternal},{default:d.withCtx(()=>f[17]||(f[17]=[d.createTextVNode("是否外部链接")])),_:2,__:[17]},1032,["model-value"]),d.createVNode(D,{style:{"padding-left":"10px"},"model-value":x.isLight},{default:d.withCtx(()=>f[18]||(f[18]=[d.createTextVNode("是否亮色")])),_:2,__:[18]},1032,["model-value"])],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createVNode(E,{class:"action-text m-2",modelValue:x.text,"onUpdate:modelValue":A=>x.text=A,placeholder:"链接文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),f[19]||(f[19]=d.createElementVNode("p",{class:"item-name"},"Profile Information",-1)),d.createVNode(JM,{data:x.profile},null,8,["data"])],64))],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),sEe=ct(uEe,[["__scopeId","data-v-a50a1faa"]]),lEe=["onClick"],cEe=["href"],dEe={key:1,class:"text-link"},fEe={type:"button",class:"text-link__wrapper link link--udrline-2"},pEe={class:"text-link__text"},hEe=d.defineComponent({name:"LinkList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var h,y,v;if(n.modelValue&&n.modelValue.data)return;const p={id:((h=n.modelValue)==null?void 0:h.id)||ye(),type:"LinkList",readOnly:((y=n.modelValue)==null?void 0:y.readOnly)||!1,width:"",bgColor:"",data:[{id:ye(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!1},{id:ye(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!0},{id:ye(),type:"text",text:"了解更多",profile:{logo:"https://ywies-tx.cedim.cn/images/logo/logo-ycyw.png",title:"耀华国际教育学校浙江桐乡",subTitle:"耀华国际教育学校浙江桐乡",name:"耀华国际教育学校浙江桐乡",label:"123",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",buttonList:{id:((v=n.modelValue)==null?void 0:v.id)||ye(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:ye(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:ye(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:ye(),title:"123",content:"123"}]}}]};r("update:modelValue",p)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)},c=d.ref(!1),l=d.ref({}),f=p=>{p.type==="text"&&(l.value=p.profile,c.value=!0)};return o(),(p,h)=>{var y,v,m,b,g;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"link-list",style:d.normalizeStyle({backgroundColor:(y=e.modelValue)==null?void 0:y.bgColor}),onMouseenter:h[2]||(h[2]=w=>i.value=!0),onMouseleave:h[3]||(h[3]=w=>i.value=!1)},[d.createElementVNode("div",{class:d.normalizeClass(["link-list__container justify-content-center",[(v=e.modelValue)!=null&&v.width?`container-content-${(m=e.modelValue)==null?void 0:m.width}`:"container-content"]])},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((b=e.modelValue)==null?void 0:b.data,w=>(d.openBlock(),d.createElementBlock("div",{class:"link-list__item",key:w.id,onClick:E=>f(w)},[w.type==="circle"?(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass(["circle-link",[w.isLight?"circle-link--light":""]])},[d.createElementVNode("a",{href:w.url||"#",class:d.normalizeClass([w.isLight?"nuxt-link-exact-active nuxt-link-active":""])},[d.createElementVNode("div",null,d.toDisplayString(w.text),1),d.createElementVNode("span",{class:d.normalizeClass(["circle-link__icon",[w.isLight?"circle-link__icon--light":""]])},null,2)],10,cEe)],2)):(d.openBlock(),d.createElementBlock("div",dEe,[d.createElementVNode("button",fEe,[d.createElementVNode("span",pEe,d.toDisplayString(w.text),1)])]))],8,lEe))),128))],2),(g=e.modelValue)!=null&&g.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":h[0]||(h[0]=w=>i.value=w),onHandleEdit:h[1]||(h[1]=w=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],36),d.createVNode(sEe,{show:a.value,"onUpdate:show":h[4]||(h[4]=w=>a.value=w),data:e.modelValue},null,8,["show","data"]),d.createVNode(QM,{show:c.value,"onUpdate:show":h[5]||(h[5]=w=>c.value=w),data:l.value},null,8,["show","data"])],64)}}}),tS=ct(hEe,[["__scopeId","data-v-5e2bae1f"]]),gEe={class:"setting-content"},vEe={class:"setting-header flex items-center"},mEe={class:"setting-header flex items-center"},yEe={class:"setting-header flex items-center"},bEe=d.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:t}){const n=t,r=()=>{n("update:show",!1)};return(o,i)=>{const a=d.resolveComponent("a-option"),u=d.resolveComponent("a-select"),s=d.resolveComponent("a-drawer");return d.openBlock(),d.createBlock(s,{width:500,visible:e.show,footer:!1,onCancel:r,unmountOnClose:""},{title:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(e.data.type)+"组件编辑 ",1)]),default:d.withCtx(()=>[d.createElementVNode("div",gEe,[d.createElementVNode("div",vEe,[i[9]||(i[9]=d.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),d.createVNode(u,{modelValue:e.data.data.width,"onUpdate:modelValue":i[0]||(i[0]=c=>e.data.data.width=c),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(a,{value:"default"},{default:d.withCtx(()=>i[5]||(i[5]=[d.createTextVNode("默认")])),_:1,__:[5]}),d.createVNode(a,{value:"small"},{default:d.withCtx(()=>i[6]||(i[6]=[d.createTextVNode("小")])),_:1,__:[6]}),d.createVNode(a,{value:"medium"},{default:d.withCtx(()=>i[7]||(i[7]=[d.createTextVNode("中")])),_:1,__:[7]}),d.createVNode(a,{value:"large"},{default:d.withCtx(()=>i[8]||(i[8]=[d.createTextVNode("大")])),_:1,__:[8]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",mEe,[i[12]||(i[12]=d.createElementVNode("span",{class:"header-title"},"组件背景",-1)),d.createVNode(u,{modelValue:e.data.data.bgColor,"onUpdate:modelValue":i[1]||(i[1]=c=>e.data.data.bgColor=c),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(a,{value:"#ffffff"},{default:d.withCtx(()=>i[10]||(i[10]=[d.createTextVNode("白色")])),_:1,__:[10]}),d.createVNode(a,{value:"#F7F7FA"},{default:d.withCtx(()=>i[11]||(i[11]=[d.createTextVNode("灰色")])),_:1,__:[11]})]),_:1},8,["modelValue"])]),d.createElementVNode("div",yEe,[i[15]||(i[15]=d.createElementVNode("span",{class:"header-title"},"是否显示下划线",-1)),d.createVNode(u,{modelValue:e.data.data.hasLine,"onUpdate:modelValue":i[2]||(i[2]=c=>e.data.data.hasLine=c),placeholder:"请选择","allow-clear":""},{default:d.withCtx(()=>[d.createVNode(a,{value:!0},{default:d.withCtx(()=>i[13]||(i[13]=[d.createTextVNode("是")])),_:1,__:[13]}),d.createVNode(a,{value:!1},{default:d.withCtx(()=>i[14]||(i[14]=[d.createTextVNode("否")])),_:1,__:[14]})]),_:1},8,["modelValue"])]),i[16]||(i[16]=d.createElementVNode("p",{class:"item-title"},"标题",-1)),d.createVNode(d.unref(Sp),{modelValue:e.data.data.text,"onUpdate:modelValue":i[3]||(i[3]=c=>e.data.data.text=c)},null,8,["modelValue"]),i[17]||(i[17]=d.createElementVNode("p",{class:"item-title"},"内容",-1)),d.createVNode(d.unref(Sp),{modelValue:e.data.data.desc,"onUpdate:modelValue":i[4]||(i[4]=c=>e.data.data.desc=c)},null,8,["modelValue"])])]),_:1},8,["visible"])}}}),wEe=ct(bEe,[["__scopeId","data-v-5f93f285"]]),EEe={key:0,class:"quote-text__line"},xEe=["innerHTML"],CEe=["innerHTML"],SEe=d.defineComponent({name:"OuoteText",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(e,{emit:t}){const n=e,r=t,o=()=>{var l,f;if(n.modelValue&&n.modelValue.data)return;const c={id:((l=n.modelValue)==null?void 0:l.id)||ye(),type:"OuoteText",readOnly:((f=n.modelValue)==null?void 0:f.readOnly)||!1,data:{width:"",bgColor:"",hasLine:!0,text:"浙江桐乡特色高中将于今年9月成立!",desc:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。"}};r("update:modelValue",c)},i=d.ref(!1),a=d.ref(!1),u=()=>{r("handleDelete",n.modelValue.id)},s=()=>{r("handleCopy",n.modelValue)};return o(),(c,l)=>{var f,p,h,y,v,m,b,g,w;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:"quote-text",onMouseenter:l[2]||(l[2]=E=>i.value=!0),onMouseleave:l[3]||(l[3]=E=>i.value=!1)},[d.createElementVNode("div",{class:"quote-text__container quote-text--normal container-content",style:d.normalizeStyle({background:((p=(f=e.modelValue)==null?void 0:f.data)==null?void 0:p.bgColor)||"transparent"})},[(y=(h=e.modelValue)==null?void 0:h.data)!=null&&y.hasLine?(d.openBlock(),d.createElementBlock("div",EEe)):d.createCommentVNode("",!0),d.createElementVNode("div",{class:"quote-text__content",innerHTML:(m=(v=e.modelValue)==null?void 0:v.data)==null?void 0:m.text},null,8,xEe),d.createElementVNode("div",{class:"quote-text__desc",innerHTML:(g=(b=e.modelValue)==null?void 0:b.data)==null?void 0:g.desc},null,8,CEe)],4),(w=e.modelValue)!=null&&w.readOnly?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(yi,{key:0,show:i.value,"onUpdate:show":l[0]||(l[0]=E=>i.value=E),onHandleEdit:l[1]||(l[1]=E=>a.value=!0),onHandleDelete:u,onHandleCopy:s},null,8,["show"]))],32),d.createVNode(wEe,{show:a.value,"onUpdate:show":l[4]||(l[4]=E=>a.value=E),data:e.modelValue},null,8,["show","data"])],64)}}}),nS=ct(SEe,[["__scopeId","data-v-dc7b77ed"]]),DEe={install:e=>{e.component("ArticleList",Y5)}},kEe={install:e=>{e.component("BannerPage",X5)}},AEe={install:e=>{e.component("CustomSpace",Z5)}},OEe={install:e=>{e.component("HeroSlide",J5)}},BEe={install:e=>{e.component("BannerImage",Q5)}},_Ee={install:e=>{e.component("BtnList",Ty)}},NEe={install:e=>{e.component("GalleryList",eS)}},TEe={install:e=>{e.component("LinkList",tS)}},FEe={install:e=>{e.component("BannerImage",nS)}},jC={default:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"14px",fontFamily:"Inter, sans-serif",borderRadius:"6px",spacing:"16px"},dark:{primaryColor:"#60a5fa",secondaryColor:"#c084fc",fontSize:"14px",fontFamily:"Inter, sans-serif",borderRadius:"6px",spacing:"16px"},compact:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"12px",fontFamily:"Inter, sans-serif",borderRadius:"4px",spacing:"12px"},large:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"16px",fontFamily:"Inter, sans-serif",borderRadius:"8px",spacing:"20px"}},Mn=d.ref(jC.default),co=d.ref(!1);function VEe(){const e=y=>{typeof y=="string"?Mn.value={...jC[y]}:Mn.value={...y},r()},t=y=>{Mn.value={...Mn.value,...y},r()},n=()=>{co.value=!co.value,document.documentElement.classList.toggle("dark",co.value)},r=()=>{const y=document.documentElement,v=Mn.value;y.style.setProperty("--theme-primary",v.primaryColor),y.style.setProperty("--theme-secondary",v.secondaryColor),y.style.setProperty("--font-size-default",v.fontSize),y.style.setProperty("--font-family-sans",v.fontFamily),y.style.setProperty("--radius-md",v.borderRadius),y.style.setProperty("--spacing-md",v.spacing)},o=y=>d.computed(()=>y==="primary"?Mn.value.primaryColor:Mn.value.secondaryColor),i=()=>d.computed(()=>Mn.value.fontSize),a=()=>d.computed(()=>Mn.value.fontFamily),u=()=>d.computed(()=>Mn.value.borderRadius),s=()=>d.computed(()=>Mn.value.spacing),c=()=>{e("default"),co.value=!1,document.documentElement.classList.remove("dark")},l=()=>JSON.stringify(Mn.value,null,2),f=y=>{try{const v=JSON.parse(y);return e(v),!0}catch(v){return console.error("Invalid theme configuration:",v),!1}},p=()=>{const y=localStorage.getItem("officialblock-theme"),v=localStorage.getItem("officialblock-dark-mode");if(y)try{const g=JSON.parse(y);e(g)}catch(g){console.error("Failed to restore theme:",g)}v&&(co.value=v==="true",document.documentElement.classList.toggle("dark",co.value));const m=window.matchMedia("(prefers-color-scheme: dark)"),b=g=>{localStorage.getItem("officialblock-dark-mode")||(co.value=g.matches,document.documentElement.classList.toggle("dark",co.value))};m.addEventListener("change",b),r()},h=()=>{localStorage.setItem("officialblock-theme",JSON.stringify(Mn.value)),localStorage.setItem("officialblock-dark-mode",co.value.toString())};return{currentTheme:d.computed(()=>Mn.value),isDarkMode:d.computed(()=>co.value),themePresets:jC,setTheme:e,updateTheme:t,toggleDarkMode:n,resetTheme:c,exportTheme:l,importTheme:f,initTheme:p,saveTheme:h,getThemeColor:o,getFontSize:i,getFontFamily:a,getBorderRadius:u,getSpacing:s}}class PEe{static hexToRgb(t){const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null}static rgbToHex(t,n,r){return"#"+((1<<24)+(t<<16)+(n<<8)+r).toString(16).slice(1)}static adjustBrightness(t,n){const r=this.hexToRgb(t);if(!r)return t;const o=i=>{const a=Math.round(i*(1+n/100));return Math.max(0,Math.min(255,a))};return this.rgbToHex(o(r.r),o(r.g),o(r.b))}static generateColorScale(t){const n=[50,100,200,300,400,500,600,700,800,900,950],r={};return n.forEach((o,i)=>{let a;o<=500?a=80-i*16:a=-20-(i-5)*12,r[o.toString()]=this.adjustBrightness(t,a)}),r}static getContrastRatio(t,n){const r=s=>{const c=this.hexToRgb(s);if(!c)return 0;const l=f=>{const p=f/255;return p<=.03928?p/12.92:Math.pow((p+.055)/1.055,2.4)};return .2126*l(c.r)+.7152*l(c.g)+.0722*l(c.b)},o=r(t),i=r(n),a=Math.max(o,i),u=Math.min(o,i);return(a+.05)/(u+.05)}static isDarkColor(t){const n=this.hexToRgb(t);return n?(n.r*299+n.g*587+n.b*114)/1e3<128:!1}static getBestTextColor(t){return this.isDarkColor(t)?"#ffffff":"#000000"}static mixColors(t,n,r=.5){const o=this.hexToRgb(t),i=this.hexToRgb(n);if(!o||!i)return t;const a=(u,s)=>Math.round(u*(1-r)+s*r);return this.rgbToHex(a(o.r,i.r),a(o.g,i.g),a(o.b,i.b))}}class jEe{static getCurrentBreakpoint(){const t=window.innerWidth;return t<475?"xs":t<640?"sm":t<768?"md":t<1024?"lg":t<1280?"xl":"2xl"}static isMobile(){return window.innerWidth<768}static isTablet(){const t=window.innerWidth;return t>=768&&t<1024}static isDesktop(){return window.innerWidth>=1024}static onBreakpointChange(t){let n=this.getCurrentBreakpoint();const r=()=>{const o=this.getCurrentBreakpoint();o!==n&&(n=o,t(o))};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}}}class e${static animate(t,n,r,o,i=this.easing.easeOutQuad){const a=performance.now();let u;const s=c=>{const l=c-a,f=Math.min(l/r,1),p=i(f),h=t+(n-t)*p;o(h),f<1&&(u=requestAnimationFrame(s))};return u=requestAnimationFrame(s),()=>{u&&cancelAnimationFrame(u)}}static scrollTo(t,n,r=300,o=this.easing.easeOutQuad){return new Promise(i=>{const a=t===window,u=a?window.pageYOffset:t.scrollTop;this.animate(u,n,r,s=>{a?window.scrollTo(0,s):t.scrollTop=s},o),setTimeout(i,r)})}}iS(e$,"easing",{linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t*t:-1+(4-2*t)*t,easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1});class LEe{static setItem(t,n){try{return localStorage.setItem(t,JSON.stringify(n)),!0}catch(r){return console.warn("Failed to save to localStorage:",r),!1}}static getItem(t,n){try{const r=localStorage.getItem(t);return r?JSON.parse(r):n||null}catch(r){return console.warn("Failed to read from localStorage:",r),n||null}}static removeItem(t){try{return localStorage.removeItem(t),!0}catch(n){return console.warn("Failed to remove from localStorage:",n),!1}}static cleanExpired(){const t=Date.now(),n=[];for(let r=0;r<localStorage.length;r++){const o=localStorage.key(r);if(o&&o.startsWith("officialblock-"))try{const i=JSON.parse(localStorage.getItem(o)||"{}");i.expires&&i.expires<t&&n.push(o)}catch{}}n.forEach(r=>localStorage.removeItem(r))}}const IEe={install:e=>{e.component("ArticleList",Y5),e.component("BannerImage",Q5),e.component("BannerPage",X5),e.component("BtnList",Ty),e.component("CustomSpace",Z5),e.component("GalleryList",eS),e.component("HeroSlide",J5),e.component("LinkList",tS),e.component("QuoteText",nS)}};exports.AnimationUtils=e$;exports.ArticleList=Y5;exports.ArticleListPlugin=DEe;exports.BannerImage=Q5;exports.BannerImagePlugin=BEe;exports.BannerPage=X5;exports.BannerPagePlugin=kEe;exports.BtnList=Ty;exports.BtnListPlugin=_Ee;exports.CustomSpace=Z5;exports.CustomSpacePlugin=AEe;exports.GalleryList=eS;exports.GalleryListPlugin=NEe;exports.HeroSlide=J5;exports.HeroSlidePlugin=OEe;exports.LinkList=tS;exports.LinkListPlugin=TEe;exports.QuoteText=nS;exports.QuoteTextPlugin=FEe;exports.ResponsiveUtils=jEe;exports.StorageUtils=LEe;exports.ThemeUtils=PEe;exports.default=IEe;exports.useTheme=VEe;
|