officialblock 1.7.3 → 1.7.4

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.
@@ -26,7 +26,7 @@
26
26
  * @license Copyright 2008-2025, GreenSock. All rights reserved.
27
27
  * Subject to the terms at https://gsap.com/standard-license
28
28
  * @author: Jack Doyle, jack@greensock.com
29
- */var G,wo,me,Te,Lt,ke,Hi,Aa,Nn,un,Ko,Mn,rt,wa,ri,vt,Gs,Js,xo,$d,ja,Dd,ft,di,Ud,Rd,Pl,ci,Wi,Bo,Ii,pa,ui,$a,zn=1,dt=Date.now,Da=dt(),Ft=0,Qo=0,Ks=function(t,l,o){var a=Pt(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return o["_"+l+"Clamp"]=a,a?t.substr(6,t.length-7):t},Qs=function(t,l){return l&&(!Pt(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},cf=function n(){return Qo&&requestAnimationFrame(n)},er=function(){return wa=1},tr=function(){return wa=0},sl=function(t){return t},en=function(t){return Math.round(t*1e5)/1e5||0},Hd=function(){return typeof window<"u"},Wd=function(){return G||Hd()&&(G=window.gsap)&&G.registerPlugin&&G},uo=function(t){return!!~Hi.indexOf(t)},Id=function(t){return(t==="Height"?Ii:me["inner"+t])||Lt["client"+t]||ke["client"+t]},Xd=function(t){return Dl(t,"getBoundingClientRect")||(uo(t)?function(){return ta.width=me.innerWidth,ta.height=Ii,ta}:function(){return yl(t)})},uf=function(t,l,o){var a=o.d,i=o.d2,s=o.a;return(s=Dl(t,"getBoundingClientRect"))?function(){return s()[a]}:function(){return(l?Id(i):t["client"+i])||0}},mf=function(t,l){return!l||~ul.indexOf(t)?Xd(t):function(){return ta}},cl=function(t,l){var o=l.s,a=l.d2,i=l.d,s=l.a;return Math.max(0,(o="scroll"+a)&&(s=Dl(t,o))?s()-Xd(t)()[i]:uo(t)?(Lt[o]||ke[o])-Id(a):t[o]-t["offset"+a])},jn=function(t,l){for(var o=0;o<xo.length;o+=3)(!l||~l.indexOf(xo[o+1]))&&t(xo[o],xo[o+1],xo[o+2])},Pt=function(t){return typeof t=="string"},ut=function(t){return typeof t=="function"},tn=function(t){return typeof t=="number"},Kl=function(t){return typeof t=="object"},Zo=function(t,l,o){return t&&t.progress(l?0:1)&&o&&t.pause()},Ua=function(t,l){if(t.enabled){var o=t._ctx?t._ctx.add(function(){return l(t)}):l(t);o&&o.totalTime&&(t.callbackAnimation=o)}},go=Math.abs,qd="left",Fd="top",Xi="right",qi="bottom",io="width",so="height",mn="Right",An="Left",pn="Top",fn="Bottom",We="padding",Ht="margin",Uo="Width",Fi="Height",Ye="px",Wt=function(t){return me.getComputedStyle(t)},Af=function(t){var l=Wt(t).position;t.style.position=l==="absolute"||l==="fixed"?l:"relative"},lr=function(t,l){for(var o in l)o in t||(t[o]=l[o]);return t},yl=function(t,l){var o=l&&Wt(t)[ri]!=="matrix(1, 0, 0, 1, 0, 0)"&&G.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),a=t.getBoundingClientRect();return o&&o.progress(0).kill(),a},fa=function(t,l){var o=l.d2;return t["offset"+o]||t["client"+o]||0},Yd=function(t){var l=[],o=t.labels,a=t.duration(),i;for(i in o)l.push(o[i]/a);return l},pf=function(t){return function(l){return G.utils.snap(Yd(t),l)}},Yi=function(t){var l=G.utils.snap(t),o=Array.isArray(t)&&t.slice(0).sort(function(a,i){return a-i});return o?function(a,i,s){s===void 0&&(s=.001);var d;if(!i)return l(a);if(i>0){for(a-=s,d=0;d<o.length;d++)if(o[d]>=a)return o[d];return o[d-1]}else for(d=o.length,a+=s;d--;)if(o[d]<=a)return o[d];return o[0]}:function(a,i,s){s===void 0&&(s=.001);var d=l(a);return!i||Math.abs(d-a)<s||d-a<0==i<0?d:l(i<0?a-t:a+t)}},ff=function(t){return function(l,o){return Yi(Yd(t))(l,o.direction)}},$n=function(t,l,o,a){return o.split(",").forEach(function(i){return t(l,i,a)})},Ke=function(t,l,o,a,i){return t.addEventListener(l,o,{passive:!a,capture:!!i})},Je=function(t,l,o,a){return t.removeEventListener(l,o,!!a)},Dn=function(t,l,o){o=o&&o.wheelHandler,o&&(t(l,"wheel",o),t(l,"touchmove",o))},or={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Un={toggleActions:"play",anticipatePin:0},va={top:0,left:0,center:.5,bottom:1,right:1},Jn=function(t,l){if(Pt(t)){var o=t.indexOf("="),a=~o?+(t.charAt(o-1)+1)*parseFloat(t.substr(o+1)):0;~o&&(t.indexOf("%")>o&&(a*=l/100),t=t.substr(0,o-1)),t=a+(t in va?va[t]*l:~t.indexOf("%")?parseFloat(t)*l/100:parseFloat(t)||0)}return t},Rn=function(t,l,o,a,i,s,d,u){var m=i.startColor,c=i.endColor,r=i.fontSize,f=i.indent,p=i.fontWeight,A=Te.createElement("div"),v=uo(o)||Dl(o,"pinType")==="fixed",w=t.indexOf("scroller")!==-1,V=v?ke:o,h=t.indexOf("start")!==-1,g=h?m:c,y="border-color:"+g+";font-size:"+r+";color:"+g+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((w||u)&&v?"fixed;":"absolute;"),(w||u||!v)&&(y+=(a===Ze?Xi:qi)+":"+(s+parseFloat(f))+"px;"),d&&(y+="box-sizing:border-box;text-align:left;width:"+d.offsetWidth+"px;"),A._isStart=h,A.setAttribute("class","gsap-marker-"+t+(l?" marker-"+l:"")),A.style.cssText=y,A.innerText=l||l===0?t+"-"+l:t,V.children[0]?V.insertBefore(A,V.children[0]):V.appendChild(A),A._offset=A["offset"+a.op.d2],Kn(A,0,a,h),A},Kn=function(t,l,o,a){var i={display:"block"},s=o[a?"os2":"p2"],d=o[a?"p2":"os2"];t._isFlipped=a,i[o.a+"Percent"]=a?-100:0,i[o.a]=a?"1px":0,i["border"+s+Uo]=1,i["border"+d+Uo]=0,i[o.p]=l+"px",G.set(t,i)},ue=[],mi={},_n,nr=function(){return dt()-Ft>34&&(_n||(_n=requestAnimationFrame(wl)))},yo=function(){(!ft||!ft.isPressed||ft.startX>ke.clientWidth)&&(Ae.cache++,ft?_n||(_n=requestAnimationFrame(wl)):wl(),Ft||Ao("scrollStart"),Ft=dt())},Ra=function(){Rd=me.innerWidth,Ud=me.innerHeight},ln=function(t){Ae.cache++,(t===!0||!rt&&!Dd&&!Te.fullscreenElement&&!Te.webkitFullscreenElement&&(!di||Rd!==me.innerWidth||Math.abs(me.innerHeight-Ud)>me.innerHeight*.25))&&Aa.restart(!0)},mo={},vf=[],Zd=function n(){return Je(pe,"scrollEnd",n)||to(!0)},Ao=function(t){return mo[t]&&mo[t].map(function(l){return l()})||vf},St=[],Gd=function(t){for(var l=0;l<St.length;l+=5)(!t||St[l+4]&&St[l+4].query===t)&&(St[l].style.cssText=St[l+1],St[l].getBBox&&St[l].setAttribute("transform",St[l+2]||""),St[l+3].uncache=1)},Zi=function(t,l){var o;for(vt=0;vt<ue.length;vt++)o=ue[vt],o&&(!l||o._ctx===l)&&(t?o.kill(1):o.revert(!0,!0));pa=!0,l&&Gd(l),l||Ao("revert")},Jd=function(t,l){Ae.cache++,(l||!ht)&&Ae.forEach(function(o){return ut(o)&&o.cacheID++&&(o.rec=0)}),Pt(t)&&(me.history.scrollRestoration=Wi=t)},ht,ro=0,ar,hf=function(){if(ar!==ro){var t=ar=ro;requestAnimationFrame(function(){return t===ro&&to(!0)})}},Kd=function(){ke.appendChild(Bo),Ii=!ft&&Bo.offsetHeight||me.innerHeight,ke.removeChild(Bo)},ir=function(t){return Nn(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(l){return l.style.display=t?"none":"block"})},to=function(t,l){if(Lt=Te.documentElement,ke=Te.body,Hi=[me,Te,Lt,ke],Ft&&!t&&!pa){Ke(pe,"scrollEnd",Zd);return}Kd(),ht=pe.isRefreshing=!0,Ae.forEach(function(a){return ut(a)&&++a.cacheID&&(a.rec=a())});var o=Ao("refreshInit");$d&&pe.sort(),l||Zi(),Ae.forEach(function(a){ut(a)&&(a.smooth&&(a.target.style.scrollBehavior="auto"),a(0))}),ue.slice(0).forEach(function(a){return a.refresh()}),pa=!1,ue.forEach(function(a){if(a._subPinOffset&&a.pin){var i=a.vars.horizontal?"offsetWidth":"offsetHeight",s=a.pin[i];a.revert(!0,1),a.adjustPinSpacing(a.pin[i]-s),a.refresh()}}),ui=1,ir(!0),ue.forEach(function(a){var i=cl(a.scroller,a._dir),s=a.vars.end==="max"||a._endClamp&&a.end>i,d=a._startClamp&&a.start>=i;(s||d)&&a.setPositions(d?i-1:a.start,s?Math.max(d?i:a.start+1,i):a.end,!0)}),ir(!1),ui=0,o.forEach(function(a){return a&&a.render&&a.render(-1)}),Ae.forEach(function(a){ut(a)&&(a.smooth&&requestAnimationFrame(function(){return a.target.style.scrollBehavior="smooth"}),a.rec&&a(a.rec))}),Jd(Wi,1),Aa.pause(),ro++,ht=2,wl(2),ue.forEach(function(a){return ut(a.vars.onRefresh)&&a.vars.onRefresh(a)}),ht=pe.isRefreshing=!1,Ao("refresh")},Ai=0,Qn=1,vn,wl=function(t){if(t===2||!ht&&!pa){pe.isUpdating=!0,vn&&vn.update(0);var l=ue.length,o=dt(),a=o-Da>=50,i=l&&ue[0].scroll();if(Qn=Ai>i?-1:1,ht||(Ai=i),a&&(Ft&&!wa&&o-Ft>200&&(Ft=0,Ao("scrollEnd")),Ko=Da,Da=o),Qn<0){for(vt=l;vt-- >0;)ue[vt]&&ue[vt].update(0,a);Qn=1}else for(vt=0;vt<l;vt++)ue[vt]&&ue[vt].update(0,a);pe.isUpdating=!1}_n=0},pi=[qd,Fd,qi,Xi,Ht+fn,Ht+mn,Ht+pn,Ht+An,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],ea=pi.concat([io,so,"boxSizing","max"+Uo,"max"+Fi,"position",Ht,We,We+pn,We+mn,We+fn,We+An]),Vf=function(t,l,o){Lo(o);var a=t._gsap;if(a.spacerIsNative)Lo(a.spacerState);else if(t._gsap.swappedIn){var i=l.parentNode;i&&(i.insertBefore(t,l),i.removeChild(l))}t._gsap.swappedIn=!1},Ha=function(t,l,o,a){if(!t._gsap.swappedIn){for(var i=pi.length,s=l.style,d=t.style,u;i--;)u=pi[i],s[u]=o[u];s.position=o.position==="absolute"?"absolute":"relative",o.display==="inline"&&(s.display="inline-block"),d[qi]=d[Xi]="auto",s.flexBasis=o.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[io]=fa(t,gt)+Ye,s[so]=fa(t,Ze)+Ye,s[We]=d[Ht]=d[Fd]=d[qd]="0",Lo(a),d[io]=d["max"+Uo]=o[io],d[so]=d["max"+Fi]=o[so],d[We]=o[We],t.parentNode!==l&&(t.parentNode.insertBefore(l,t),l.appendChild(t)),t._gsap.swappedIn=!0}},gf=/([A-Z])/g,Lo=function(t){if(t){var l=t.t.style,o=t.length,a=0,i,s;for((t.t._gsap||G.core.getCache(t.t)).uncache=1;a<o;a+=2)s=t[a+1],i=t[a],s?l[i]=s:l[i]&&l.removeProperty(i.replace(gf,"-$1").toLowerCase())}},Hn=function(t){for(var l=ea.length,o=t.style,a=[],i=0;i<l;i++)a.push(ea[i],o[ea[i]]);return a.t=t,a},yf=function(t,l,o){for(var a=[],i=t.length,s=o?8:0,d;s<i;s+=2)d=t[s],a.push(d,d in l?l[d]:t[s+1]);return a.t=t.t,a},ta={left:0,top:0},sr=function(t,l,o,a,i,s,d,u,m,c,r,f,p,A){ut(t)&&(t=t(u)),Pt(t)&&t.substr(0,3)==="max"&&(t=f+(t.charAt(4)==="="?Jn("0"+t.substr(3),o):0));var v=p?p.time():0,w,V,h;if(p&&p.seek(0),isNaN(t)||(t=+t),tn(t))p&&(t=G.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,f,t)),d&&Kn(d,o,a,!0);else{ut(l)&&(l=l(u));var g=(t||"0").split(" "),y,N,C,b;h=xt(l,u)||ke,y=yl(h)||{},(!y||!y.left&&!y.top)&&Wt(h).display==="none"&&(b=h.style.display,h.style.display="block",y=yl(h),b?h.style.display=b:h.style.removeProperty("display")),N=Jn(g[0],y[a.d]),C=Jn(g[1]||"0",o),t=y[a.p]-m[a.p]-c+N+i-C,d&&Kn(d,C,a,o-C<20||d._isStart&&C>20),o-=o-C}if(A&&(u[A]=t||-.001,t<0&&(t=0)),s){var x=t+o,E=s._isStart;w="scroll"+a.d2,Kn(s,x,a,E&&x>20||!E&&(r?Math.max(ke[w],Lt[w]):s.parentNode[w])<=x+1),r&&(m=yl(d),r&&(s.style[a.op.p]=m[a.op.p]-a.op.m-s._offset+Ye))}return p&&h&&(w=yl(h),p.seek(f),V=yl(h),p._caScrollDist=w[a.p]-V[a.p],t=t/p._caScrollDist*f),p&&p.seek(v),p?t:Math.round(t)},bf=/(webkit|moz|length|cssText|inset)/i,rr=function(t,l,o,a){if(t.parentNode!==l){var i=t.style,s,d;if(l===ke){t._stOrig=i.cssText,d=Wt(t);for(s in d)!+s&&!bf.test(s)&&d[s]&&typeof i[s]=="string"&&s!=="0"&&(i[s]=d[s]);i.top=o,i.left=a}else i.cssText=t._stOrig;G.core.getCache(t).uncache=1,l.appendChild(t)}},Qd=function(t,l,o){var a=l,i=a;return function(s){var d=Math.round(t());return d!==a&&d!==i&&Math.abs(d-a)>3&&Math.abs(d-i)>3&&(s=d,o&&o()),i=a,a=Math.round(s),a}},Wn=function(t,l,o){var a={};a[l.p]="+="+o,G.set(t,a)},dr=function(t,l){var o=Hl(t,l),a="_scroll"+l.p2,i=function s(d,u,m,c,r){var f=s.tween,p=u.onComplete,A={};m=m||o();var v=Qd(o,m,function(){f.kill(),s.tween=0});return r=c&&r||0,c=c||d-m,f&&f.kill(),u[a]=d,u.inherit=!1,u.modifiers=A,A[a]=function(){return v(m+c*f.ratio+r*f.ratio*f.ratio)},u.onUpdate=function(){Ae.cache++,s.tween&&wl()},u.onComplete=function(){s.tween=0,p&&p.call(f)},f=s.tween=G.to(t,u),f};return t[a]=o,o.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Ke(t,"wheel",o.wheelHandler),pe.isTouch&&Ke(t,"touchmove",o.wheelHandler),i},pe=function(){function n(l,o){wo||n.register(G)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ci(this),this.init(l,o)}var t=n.prototype;return t.init=function(o,a){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Qo){this.update=this.refresh=this.kill=sl;return}o=lr(Pt(o)||tn(o)||o.nodeType?{trigger:o}:o,Un);var i=o,s=i.onUpdate,d=i.toggleClass,u=i.id,m=i.onToggle,c=i.onRefresh,r=i.scrub,f=i.trigger,p=i.pin,A=i.pinSpacing,v=i.invalidateOnRefresh,w=i.anticipatePin,V=i.onScrubComplete,h=i.onSnapComplete,g=i.once,y=i.snap,N=i.pinReparent,C=i.pinSpacer,b=i.containerAnimation,x=i.fastScrollEnd,E=i.preventOverlaps,_=o.horizontal||o.containerAnimation&&o.horizontal!==!1?gt:Ze,T=!r&&r!==0,S=xt(o.scroller||me),L=G.core.getCache(S),O=uo(S),M=("pinType"in o?o.pinType:Dl(S,"pinType")||O&&"fixed")==="fixed",$=[o.onEnter,o.onLeave,o.onEnterBack,o.onLeaveBack],D=T&&o.toggleActions.split(" "),R="markers"in o?o.markers:Un.markers,j=O?0:parseFloat(Wt(S)["border"+_.p2+Uo])||0,k=this,z=o.onRefreshInit&&function(){return o.onRefreshInit(k)},X=uf(S,O,_),F=mf(S,O),ee=0,be=0,Me=0,W=Hl(S,_),q,J,fe,ve,Y,I,K,oe,se,P,U,te,Q,ce,et,tl,pl,$e,Yt,xe,Zt,Ut,fl,Ro,He,En,vl,fo,vo,Nl,Il,he,Xl,Gt,Jt,Kt,ql,ho,hl;if(k._startClamp=k._endClamp=!1,k._dir=_,w*=45,k.scroller=S,k.scroll=b?b.time.bind(b):W,ve=W(),k.vars=o,a=a||o.animation,"refreshPriority"in o&&($d=1,o.refreshPriority===-9999&&(vn=k)),L.tweenScroll=L.tweenScroll||{top:dr(S,Ze),left:dr(S,gt)},k.tweenTo=q=L.tweenScroll[_.p],k.scrubDuration=function(Z){Xl=tn(Z)&&Z,Xl?he?he.duration(Z):he=G.to(a,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Xl,paused:!0,onComplete:function(){return V&&V(k)}}):(he&&he.progress(1).kill(),he=0)},a&&(a.vars.lazy=!1,a._initted&&!k.isReverted||a.vars.immediateRender!==!1&&o.immediateRender!==!1&&a.duration()&&a.render(0,!0,!0),k.animation=a.pause(),a.scrollTrigger=k,k.scrubDuration(r),Nl=0,u||(u=a.vars.id)),y&&((!Kl(y)||y.push)&&(y={snapTo:y}),"scrollBehavior"in ke.style&&G.set(O?[ke,Lt]:S,{scrollBehavior:"auto"}),Ae.forEach(function(Z){return ut(Z)&&Z.target===(O?Te.scrollingElement||Lt:S)&&(Z.smooth=!1)}),fe=ut(y.snapTo)?y.snapTo:y.snapTo==="labels"?pf(a):y.snapTo==="labelsDirectional"?ff(a):y.directional!==!1?function(Z,ae){return Yi(y.snapTo)(Z,dt()-be<500?0:ae.direction)}:G.utils.snap(y.snapTo),Gt=y.duration||{min:.1,max:2},Gt=Kl(Gt)?un(Gt.min,Gt.max):un(Gt,Gt),Jt=G.delayedCall(y.delay||Xl/2||.1,function(){var Z=W(),ae=dt()-be<500,le=q.tween;if((ae||Math.abs(k.getVelocity())<10)&&!le&&!wa&&ee!==Z){var ie=(Z-I)/ce,Ge=a&&!T?a.totalProgress():ie,Ve=ae?0:(Ge-Il)/(dt()-Ko)*1e3||0,De=G.utils.clamp(-ie,1-ie,go(Ve/2)*Ve/.185),at=ie+(y.inertia===!1?0:De),ze,Se,_e=y,Qt=_e.onStart,Be=_e.onInterrupt,Tt=_e.onComplete;if(ze=fe(at,k),tn(ze)||(ze=at),Se=Math.max(0,Math.round(I+ze*ce)),Z<=K&&Z>=I&&Se!==Z){if(le&&!le._initted&&le.data<=go(Se-Z))return;y.inertia===!1&&(De=ze-ie),q(Se,{duration:Gt(go(Math.max(go(at-Ge),go(ze-Ge))*.185/Ve/.05||0)),ease:y.ease||"power3",data:go(Se-Z),onInterrupt:function(){return Jt.restart(!0)&&Be&&Be(k)},onComplete:function(){k.update(),ee=W(),a&&!T&&(he?he.resetTo("totalProgress",ze,a._tTime/a._tDur):a.progress(ze)),Nl=Il=a&&!T?a.totalProgress():k.progress,h&&h(k),Tt&&Tt(k)}},Z,De*ce,Se-Z-De*ce),Qt&&Qt(k,q.tween)}}else k.isActive&&ee!==Z&&Jt.restart(!0)}).pause()),u&&(mi[u]=k),f=k.trigger=xt(f||p!==!0&&p),hl=f&&f._gsap&&f._gsap.stRevert,hl&&(hl=hl(k)),p=p===!0?f:xt(p),Pt(d)&&(d={targets:f,className:d}),p&&(A===!1||A===Ht||(A=!A&&p.parentNode&&p.parentNode.style&&Wt(p.parentNode).display==="flex"?!1:We),k.pin=p,J=G.core.getCache(p),J.spacer?et=J.pinState:(C&&(C=xt(C),C&&!C.nodeType&&(C=C.current||C.nativeElement),J.spacerIsNative=!!C,C&&(J.spacerState=Hn(C))),J.spacer=$e=C||Te.createElement("div"),$e.classList.add("pin-spacer"),u&&$e.classList.add("pin-spacer-"+u),J.pinState=et=Hn(p)),o.force3D!==!1&&G.set(p,{force3D:!0}),k.spacer=$e=J.spacer,vo=Wt(p),Ro=vo[A+_.os2],xe=G.getProperty(p),Zt=G.quickSetter(p,_.a,Ye),Ha(p,$e,vo),pl=Hn(p)),R){te=Kl(R)?lr(R,or):or,P=Rn("scroller-start",u,S,_,te,0),U=Rn("scroller-end",u,S,_,te,0,P),Yt=P["offset"+_.op.d2];var Ho=xt(Dl(S,"content")||S);oe=this.markerStart=Rn("start",u,Ho,_,te,Yt,0,b),se=this.markerEnd=Rn("end",u,Ho,_,te,Yt,0,b),b&&(ho=G.quickSetter([oe,se],_.a,Ye)),!M&&!(ul.length&&Dl(S,"fixedMarkers")===!0)&&(Af(O?ke:S),G.set([P,U],{force3D:!0}),En=G.quickSetter(P,_.a,Ye),fo=G.quickSetter(U,_.a,Ye))}if(b){var re=b.vars.onUpdate,ne=b.vars.onUpdateParams;b.eventCallback("onUpdate",function(){k.update(0,0,1),re&&re.apply(b,ne||[])})}if(k.previous=function(){return ue[ue.indexOf(k)-1]},k.next=function(){return ue[ue.indexOf(k)+1]},k.revert=function(Z,ae){if(!ae)return k.kill(!0);var le=Z!==!1||!k.enabled,ie=rt;le!==k.isReverted&&(le&&(Kt=Math.max(W(),k.scroll.rec||0),Me=k.progress,ql=a&&a.progress()),oe&&[oe,se,P,U].forEach(function(Ge){return Ge.style.display=le?"none":"block"}),le&&(rt=k,k.update(le)),p&&(!N||!k.isActive)&&(le?Vf(p,$e,et):Ha(p,$e,Wt(p),He)),le||k.update(le),rt=ie,k.isReverted=le)},k.refresh=function(Z,ae,le,ie){if(!((rt||!k.enabled)&&!ae)){if(p&&Z&&Ft){Ke(n,"scrollEnd",Zd);return}!ht&&z&&z(k),rt=k,q.tween&&!le&&(q.tween.kill(),q.tween=0),he&&he.pause(),v&&a&&(a.revert({kill:!1}).invalidate(),a.getChildren&&a.getChildren(!0,!0,!1).forEach(function(_l){return _l.vars.immediateRender&&_l.render(0,!0,!0)})),k.isReverted||k.revert(!0,!0),k._subPinOffset=!1;var Ge=X(),Ve=F(),De=b?b.duration():cl(S,_),at=ce<=.01||!ce,ze=0,Se=ie||0,_e=Kl(le)?le.end:o.end,Qt=o.endTrigger||f,Be=Kl(le)?le.start:o.start||(o.start===0||!f?0:p?"0 0":"0 100%"),Tt=k.pinnedContainer=o.pinnedContainer&&xt(o.pinnedContainer,k),ll=f&&Math.max(0,ue.indexOf(k))||0,tt=ll,lt,it,Fl,Tn,st,Fe,ol,Na,Ns,Wo,nl,Io,Sn;for(R&&Kl(le)&&(Io=G.getProperty(P,_.p),Sn=G.getProperty(U,_.p));tt-- >0;)Fe=ue[tt],Fe.end||Fe.refresh(0,1)||(rt=k),ol=Fe.pin,ol&&(ol===f||ol===p||ol===Tt)&&!Fe.isReverted&&(Wo||(Wo=[]),Wo.unshift(Fe),Fe.revert(!0,!0)),Fe!==ue[tt]&&(ll--,tt--);for(ut(Be)&&(Be=Be(k)),Be=Ks(Be,"start",k),I=sr(Be,f,Ge,_,W(),oe,P,k,Ve,j,M,De,b,k._startClamp&&"_startClamp")||(p?-.001:0),ut(_e)&&(_e=_e(k)),Pt(_e)&&!_e.indexOf("+=")&&(~_e.indexOf(" ")?_e=(Pt(Be)?Be.split(" ")[0]:"")+_e:(ze=Jn(_e.substr(2),Ge),_e=Pt(Be)?Be:(b?G.utils.mapRange(0,b.duration(),b.scrollTrigger.start,b.scrollTrigger.end,I):I)+ze,Qt=f)),_e=Ks(_e,"end",k),K=Math.max(I,sr(_e||(Qt?"100% 0":De),Qt,Ge,_,W()+ze,se,U,k,Ve,j,M,De,b,k._endClamp&&"_endClamp"))||-.001,ze=0,tt=ll;tt--;)Fe=ue[tt],ol=Fe.pin,ol&&Fe.start-Fe._pinPush<=I&&!b&&Fe.end>0&&(lt=Fe.end-(k._startClamp?Math.max(0,Fe.start):Fe.start),(ol===f&&Fe.start-Fe._pinPush<I||ol===Tt)&&isNaN(Be)&&(ze+=lt*(1-Fe.progress)),ol===p&&(Se+=lt));if(I+=ze,K+=ze,k._startClamp&&(k._startClamp+=ze),k._endClamp&&!ht&&(k._endClamp=K||-.001,K=Math.min(K,cl(S,_))),ce=K-I||(I-=.01)&&.001,at&&(Me=G.utils.clamp(0,1,G.utils.normalize(I,K,Kt))),k._pinPush=Se,oe&&ze&&(lt={},lt[_.a]="+="+ze,Tt&&(lt[_.p]="-="+W()),G.set([oe,se],lt)),p&&!(ui&&k.end>=cl(S,_)))lt=Wt(p),Tn=_===Ze,Fl=W(),Ut=parseFloat(xe(_.a))+Se,!De&&K>1&&(nl=(O?Te.scrollingElement||Lt:S).style,nl={style:nl,value:nl["overflow"+_.a.toUpperCase()]},O&&Wt(ke)["overflow"+_.a.toUpperCase()]!=="scroll"&&(nl.style["overflow"+_.a.toUpperCase()]="scroll")),Ha(p,$e,lt),pl=Hn(p),it=yl(p,!0),Na=M&&Hl(S,Tn?gt:Ze)(),A?(He=[A+_.os2,ce+Se+Ye],He.t=$e,tt=A===We?fa(p,_)+ce+Se:0,tt&&(He.push(_.d,tt+Ye),$e.style.flexBasis!=="auto"&&($e.style.flexBasis=tt+Ye)),Lo(He),Tt&&ue.forEach(function(_l){_l.pin===Tt&&_l.vars.pinSpacing!==!1&&(_l._subPinOffset=!0)}),M&&W(Kt)):(tt=fa(p,_),tt&&$e.style.flexBasis!=="auto"&&($e.style.flexBasis=tt+Ye)),M&&(st={top:it.top+(Tn?Fl-I:Na)+Ye,left:it.left+(Tn?Na:Fl-I)+Ye,boxSizing:"border-box",position:"fixed"},st[io]=st["max"+Uo]=Math.ceil(it.width)+Ye,st[so]=st["max"+Fi]=Math.ceil(it.height)+Ye,st[Ht]=st[Ht+pn]=st[Ht+mn]=st[Ht+fn]=st[Ht+An]="0",st[We]=lt[We],st[We+pn]=lt[We+pn],st[We+mn]=lt[We+mn],st[We+fn]=lt[We+fn],st[We+An]=lt[We+An],tl=yf(et,st,N),ht&&W(0)),a?(Ns=a._initted,ja(1),a.render(a.duration(),!0,!0),fl=xe(_.a)-Ut+ce+Se,vl=Math.abs(ce-fl)>1,M&&vl&&tl.splice(tl.length-2,2),a.render(0,!0,!0),Ns||a.invalidate(!0),a.parent||a.totalTime(a.totalTime()),ja(0)):fl=ce,nl&&(nl.value?nl.style["overflow"+_.a.toUpperCase()]=nl.value:nl.style.removeProperty("overflow-"+_.a));else if(f&&W()&&!b)for(it=f.parentNode;it&&it!==ke;)it._pinOffset&&(I-=it._pinOffset,K-=it._pinOffset),it=it.parentNode;Wo&&Wo.forEach(function(_l){return _l.revert(!1,!0)}),k.start=I,k.end=K,ve=Y=ht?Kt:W(),!b&&!ht&&(ve<Kt&&W(Kt),k.scroll.rec=0),k.revert(!1,!0),be=dt(),Jt&&(ee=-1,Jt.restart(!0)),rt=0,a&&T&&(a._initted||ql)&&a.progress()!==ql&&a.progress(ql||0,!0).render(a.time(),!0,!0),(at||Me!==k.progress||b||v||a&&!a._initted)&&(a&&!T&&(a._initted||Me||a.vars.immediateRender!==!1)&&a.totalProgress(b&&I<-.001&&!Me?G.utils.normalize(I,K,0):Me,!0),k.progress=at||(ve-I)/ce===Me?0:Me),p&&A&&($e._pinOffset=Math.round(k.progress*fl)),he&&he.invalidate(),isNaN(Io)||(Io-=G.getProperty(P,_.p),Sn-=G.getProperty(U,_.p),Wn(P,_,Io),Wn(oe,_,Io-(ie||0)),Wn(U,_,Sn),Wn(se,_,Sn-(ie||0))),at&&!ht&&k.update(),c&&!ht&&!Q&&(Q=!0,c(k),Q=!1)}},k.getVelocity=function(){return(W()-Y)/(dt()-Ko)*1e3||0},k.endAnimation=function(){Zo(k.callbackAnimation),a&&(he?he.progress(1):a.paused()?T||Zo(a,k.direction<0,1):Zo(a,a.reversed()))},k.labelToScroll=function(Z){return a&&a.labels&&(I||k.refresh()||I)+a.labels[Z]/a.duration()*ce||0},k.getTrailing=function(Z){var ae=ue.indexOf(k),le=k.direction>0?ue.slice(0,ae).reverse():ue.slice(ae+1);return(Pt(Z)?le.filter(function(ie){return ie.vars.preventOverlaps===Z}):le).filter(function(ie){return k.direction>0?ie.end<=I:ie.start>=K})},k.update=function(Z,ae,le){if(!(b&&!le&&!Z)){var ie=ht===!0?Kt:k.scroll(),Ge=Z?0:(ie-I)/ce,Ve=Ge<0?0:Ge>1?1:Ge||0,De=k.progress,at,ze,Se,_e,Qt,Be,Tt,ll;if(ae&&(Y=ve,ve=b?W():ie,y&&(Il=Nl,Nl=a&&!T?a.totalProgress():Ve)),w&&p&&!rt&&!zn&&Ft&&(!Ve&&I<ie+(ie-Y)/(dt()-Ko)*w?Ve=1e-4:Ve===1&&K>ie+(ie-Y)/(dt()-Ko)*w&&(Ve=.9999)),Ve!==De&&k.enabled){if(at=k.isActive=!!Ve&&Ve<1,ze=!!De&&De<1,Be=at!==ze,Qt=Be||!!Ve!=!!De,k.direction=Ve>De?1:-1,k.progress=Ve,Qt&&!rt&&(Se=Ve&&!De?0:Ve===1?1:De===1?2:3,T&&(_e=!Be&&D[Se+1]!=="none"&&D[Se+1]||D[Se],ll=a&&(_e==="complete"||_e==="reset"||_e in a))),E&&(Be||ll)&&(ll||r||!a)&&(ut(E)?E(k):k.getTrailing(E).forEach(function(Fl){return Fl.endAnimation()})),T||(he&&!rt&&!zn?(he._dp._time-he._start!==he._time&&he.render(he._dp._time-he._start),he.resetTo?he.resetTo("totalProgress",Ve,a._tTime/a._tDur):(he.vars.totalProgress=Ve,he.invalidate().restart())):a&&a.totalProgress(Ve,!!(rt&&(be||Z)))),p){if(Z&&A&&($e.style[A+_.os2]=Ro),!M)Zt(en(Ut+fl*Ve));else if(Qt){if(Tt=!Z&&Ve>De&&K+1>ie&&ie+1>=cl(S,_),N)if(!Z&&(at||Tt)){var tt=yl(p,!0),lt=ie-I;rr(p,ke,tt.top+(_===Ze?lt:0)+Ye,tt.left+(_===Ze?0:lt)+Ye)}else rr(p,$e);Lo(at||Tt?tl:pl),vl&&Ve<1&&at||Zt(Ut+(Ve===1&&!Tt?fl:0))}}y&&!q.tween&&!rt&&!zn&&Jt.restart(!0),d&&(Be||g&&Ve&&(Ve<1||!$a))&&Nn(d.targets).forEach(function(Fl){return Fl.classList[at||g?"add":"remove"](d.className)}),s&&!T&&!Z&&s(k),Qt&&!rt?(T&&(ll&&(_e==="complete"?a.pause().totalProgress(1):_e==="reset"?a.restart(!0).pause():_e==="restart"?a.restart(!0):a[_e]()),s&&s(k)),(Be||!$a)&&(m&&Be&&Ua(k,m),$[Se]&&Ua(k,$[Se]),g&&(Ve===1?k.kill(!1,1):$[Se]=0),Be||(Se=Ve===1?1:3,$[Se]&&Ua(k,$[Se]))),x&&!at&&Math.abs(k.getVelocity())>(tn(x)?x:2500)&&(Zo(k.callbackAnimation),he?he.progress(1):Zo(a,_e==="reverse"?1:!Ve,1))):T&&s&&!rt&&s(k)}if(fo){var it=b?ie/b.duration()*(b._caScrollDist||0):ie;En(it+(P._isFlipped?1:0)),fo(it)}ho&&ho(-ie/b.duration()*(b._caScrollDist||0))}},k.enable=function(Z,ae){k.enabled||(k.enabled=!0,Ke(S,"resize",ln),O||Ke(S,"scroll",yo),z&&Ke(n,"refreshInit",z),Z!==!1&&(k.progress=Me=0,ve=Y=ee=W()),ae!==!1&&k.refresh())},k.getTween=function(Z){return Z&&q?q.tween:he},k.setPositions=function(Z,ae,le,ie){if(b){var Ge=b.scrollTrigger,Ve=b.duration(),De=Ge.end-Ge.start;Z=Ge.start+De*Z/Ve,ae=Ge.start+De*ae/Ve}k.refresh(!1,!1,{start:Qs(Z,le&&!!k._startClamp),end:Qs(ae,le&&!!k._endClamp)},ie),k.update()},k.adjustPinSpacing=function(Z){if(He&&Z){var ae=He.indexOf(_.d)+1;He[ae]=parseFloat(He[ae])+Z+Ye,He[1]=parseFloat(He[1])+Z+Ye,Lo(He)}},k.disable=function(Z,ae){if(k.enabled&&(Z!==!1&&k.revert(!0,!0),k.enabled=k.isActive=!1,ae||he&&he.pause(),Kt=0,J&&(J.uncache=1),z&&Je(n,"refreshInit",z),Jt&&(Jt.pause(),q.tween&&q.tween.kill()&&(q.tween=0)),!O)){for(var le=ue.length;le--;)if(ue[le].scroller===S&&ue[le]!==k)return;Je(S,"resize",ln),O||Je(S,"scroll",yo)}},k.kill=function(Z,ae){k.disable(Z,ae),he&&!ae&&he.kill(),u&&delete mi[u];var le=ue.indexOf(k);le>=0&&ue.splice(le,1),le===vt&&Qn>0&&vt--,le=0,ue.forEach(function(ie){return ie.scroller===k.scroller&&(le=1)}),le||ht||(k.scroll.rec=0),a&&(a.scrollTrigger=null,Z&&a.revert({kill:!1}),ae||a.kill()),oe&&[oe,se,P,U].forEach(function(ie){return ie.parentNode&&ie.parentNode.removeChild(ie)}),vn===k&&(vn=0),p&&(J&&(J.uncache=1),le=0,ue.forEach(function(ie){return ie.pin===p&&le++}),le||(J.spacer=0)),o.onKill&&o.onKill(k)},ue.push(k),k.enable(!1,!1),hl&&hl(k),a&&a.add&&!ce){var we=k.update;k.update=function(){k.update=we,Ae.cache++,I||K||k.refresh()},G.delayedCall(.01,k.update),ce=.01,I=K=0}else k.refresh();p&&hf()},n.register=function(o){return wo||(G=o||Wd(),Hd()&&window.document&&n.enable(),wo=Qo),wo},n.defaults=function(o){if(o)for(var a in o)Un[a]=o[a];return Un},n.disable=function(o,a){Qo=0,ue.forEach(function(s){return s[a?"kill":"disable"](o)}),Je(me,"wheel",yo),Je(Te,"scroll",yo),clearInterval(Mn),Je(Te,"touchcancel",sl),Je(ke,"touchstart",sl),$n(Je,Te,"pointerdown,touchstart,mousedown",er),$n(Je,Te,"pointerup,touchend,mouseup",tr),Aa.kill(),jn(Je);for(var i=0;i<Ae.length;i+=3)Dn(Je,Ae[i],Ae[i+1]),Dn(Je,Ae[i],Ae[i+2])},n.enable=function(){if(me=window,Te=document,Lt=Te.documentElement,ke=Te.body,G&&(Nn=G.utils.toArray,un=G.utils.clamp,ci=G.core.context||sl,ja=G.core.suppressOverwrites||sl,Wi=me.history.scrollRestoration||"auto",Ai=me.pageYOffset||0,G.core.globals("ScrollTrigger",n),ke)){Qo=1,Bo=document.createElement("div"),Bo.style.height="100vh",Bo.style.position="absolute",Kd(),cf(),Re.register(G),n.isTouch=Re.isTouch,Pl=Re.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),di=Re.isTouch===1,Ke(me,"wheel",yo),Hi=[me,Te,Lt,ke],G.matchMedia?(n.matchMedia=function(m){var c=G.matchMedia(),r;for(r in m)c.add(r,m[r]);return c},G.addEventListener("matchMediaInit",function(){return Zi()}),G.addEventListener("matchMediaRevert",function(){return Gd()}),G.addEventListener("matchMedia",function(){to(0,1),Ao("matchMedia")}),G.matchMedia().add("(orientation: portrait)",function(){return Ra(),Ra})):console.warn("Requires GSAP 3.11.0 or later"),Ra(),Ke(Te,"scroll",yo);var o=ke.hasAttribute("style"),a=ke.style,i=a.borderTopStyle,s=G.core.Animation.prototype,d,u;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),a.borderTopStyle="solid",d=yl(ke),Ze.m=Math.round(d.top+Ze.sc())||0,gt.m=Math.round(d.left+gt.sc())||0,i?a.borderTopStyle=i:a.removeProperty("border-top-style"),o||(ke.setAttribute("style",""),ke.removeAttribute("style")),Mn=setInterval(nr,250),G.delayedCall(.5,function(){return zn=0}),Ke(Te,"touchcancel",sl),Ke(ke,"touchstart",sl),$n(Ke,Te,"pointerdown,touchstart,mousedown",er),$n(Ke,Te,"pointerup,touchend,mouseup",tr),ri=G.utils.checkPrefix("transform"),ea.push(ri),wo=dt(),Aa=G.delayedCall(.2,to).pause(),xo=[Te,"visibilitychange",function(){var m=me.innerWidth,c=me.innerHeight;Te.hidden?(Gs=m,Js=c):(Gs!==m||Js!==c)&&ln()},Te,"DOMContentLoaded",to,me,"load",to,me,"resize",ln],jn(Ke),ue.forEach(function(m){return m.enable(0,1)}),u=0;u<Ae.length;u+=3)Dn(Je,Ae[u],Ae[u+1]),Dn(Je,Ae[u],Ae[u+2])}},n.config=function(o){"limitCallbacks"in o&&($a=!!o.limitCallbacks);var a=o.syncInterval;a&&clearInterval(Mn)||(Mn=a)&&setInterval(nr,a),"ignoreMobileResize"in o&&(di=n.isTouch===1&&o.ignoreMobileResize),"autoRefreshEvents"in o&&(jn(Je)||jn(Ke,o.autoRefreshEvents||"none"),Dd=(o.autoRefreshEvents+"").indexOf("resize")===-1)},n.scrollerProxy=function(o,a){var i=xt(o),s=Ae.indexOf(i),d=uo(i);~s&&Ae.splice(s,d?6:2),a&&(d?ul.unshift(me,a,ke,a,Lt,a):ul.unshift(i,a))},n.clearMatchMedia=function(o){ue.forEach(function(a){return a._ctx&&a._ctx.query===o&&a._ctx.kill(!0,!0)})},n.isInViewport=function(o,a,i){var s=(Pt(o)?xt(o):o).getBoundingClientRect(),d=s[i?io:so]*a||0;return i?s.right-d>0&&s.left+d<me.innerWidth:s.bottom-d>0&&s.top+d<me.innerHeight},n.positionInViewport=function(o,a,i){Pt(o)&&(o=xt(o));var s=o.getBoundingClientRect(),d=s[i?io:so],u=a==null?d/2:a in va?va[a]*d:~a.indexOf("%")?parseFloat(a)*d/100:parseFloat(a)||0;return i?(s.left+u)/me.innerWidth:(s.top+u)/me.innerHeight},n.killAll=function(o){if(ue.slice(0).forEach(function(i){return i.vars.id!=="ScrollSmoother"&&i.kill()}),o!==!0){var a=mo.killAll||[];mo={},a.forEach(function(i){return i()})}},n}();pe.version="3.13.0";pe.saveStyles=function(n){return n?Nn(n).forEach(function(t){if(t&&t.style){var l=St.indexOf(t);l>=0&&St.splice(l,5),St.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),G.core.getCache(t),ci())}}):St};pe.revert=function(n,t){return Zi(!n,t)};pe.create=function(n,t){return new pe(n,t)};pe.refresh=function(n){return n?ln(!0):(wo||pe.register())&&to(!0)};pe.update=function(n){return++Ae.cache&&wl(n===!0?2:0)};pe.clearScrollMemory=Jd;pe.maxScroll=function(n,t){return cl(n,t?gt:Ze)};pe.getScrollFunc=function(n,t){return Hl(xt(n),t?gt:Ze)};pe.getById=function(n){return mi[n]};pe.getAll=function(){return ue.filter(function(n){return n.vars.id!=="ScrollSmoother"})};pe.isScrolling=function(){return!!Ft};pe.snapDirectional=Yi;pe.addEventListener=function(n,t){var l=mo[n]||(mo[n]=[]);~l.indexOf(t)||l.push(t)};pe.removeEventListener=function(n,t){var l=mo[n],o=l&&l.indexOf(t);o>=0&&l.splice(o,1)};pe.batch=function(n,t){var l=[],o={},a=t.interval||.016,i=t.batchMax||1e9,s=function(m,c){var r=[],f=[],p=G.delayedCall(a,function(){c(r,f),r=[],f=[]}).pause();return function(A){r.length||p.restart(!0),r.push(A.trigger),f.push(A),i<=r.length&&p.progress(1)}},d;for(d in t)o[d]=d.substr(0,2)==="on"&&ut(t[d])&&d!=="onRefreshInit"?s(d,t[d]):t[d];return ut(i)&&(i=i(),Ke(pe,"refresh",function(){return i=t.batchMax()})),Nn(n).forEach(function(u){var m={};for(d in o)m[d]=o[d];m.trigger=u,l.push(pe.create(m))}),l};var cr=function(t,l,o,a){return l>a?t(a):l<0&&t(0),o>a?(a-l)/(o-l):o<0?l/(l-o):1},Wa=function n(t,l){l===!0?t.style.removeProperty("touch-action"):t.style.touchAction=l===!0?"auto":l?"pan-"+l+(Re.isTouch?" pinch-zoom":""):"none",t===Lt&&n(ke,l)},In={auto:1,scroll:1},wf=function(t){var l=t.event,o=t.target,a=t.axis,i=(l.changedTouches?l.changedTouches[0]:l).target,s=i._gsap||G.core.getCache(i),d=dt(),u;if(!s._isScrollT||d-s._isScrollT>2e3){for(;i&&i!==ke&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(In[(u=Wt(i)).overflowY]||In[u.overflowX]));)i=i.parentNode;s._isScroll=i&&i!==o&&!uo(i)&&(In[(u=Wt(i)).overflowY]||In[u.overflowX]),s._isScrollT=d}(s._isScroll||a==="x")&&(l.stopPropagation(),l._gsapAllow=!0)},ec=function(t,l,o,a){return Re.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:l,onWheel:a=a&&wf,onPress:a,onDrag:a,onScroll:a,onEnable:function(){return o&&Ke(Te,Re.eventTypes[0],mr,!1,!0)},onDisable:function(){return Je(Te,Re.eventTypes[0],mr,!0)}})},xf=/(input|label|select|textarea)/i,ur,mr=function(t){var l=xf.test(t.target.tagName);(l||ur)&&(t._gsapAllow=!0,ur=l)},kf=function(t){Kl(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var l=t,o=l.normalizeScrollX,a=l.momentum,i=l.allowNestedScroll,s=l.onRelease,d,u,m=xt(t.target)||Lt,c=G.core.globals().ScrollSmoother,r=c&&c.get(),f=Pl&&(t.content&&xt(t.content)||r&&t.content!==!1&&!r.smooth()&&r.content()),p=Hl(m,Ze),A=Hl(m,gt),v=1,w=(Re.isTouch&&me.visualViewport?me.visualViewport.scale*me.visualViewport.width:me.outerWidth)/me.innerWidth,V=0,h=ut(a)?function(){return a(d)}:function(){return a||2.8},g,y,N=ec(m,t.type,!0,i),C=function(){return y=!1},b=sl,x=sl,E=function(){u=cl(m,Ze),x=un(Pl?1:0,u),o&&(b=un(0,cl(m,gt))),g=ro},_=function(){f._gsap.y=en(parseFloat(f._gsap.y)+p.offset)+"px",f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(f._gsap.y)+", 0, 1)",p.offset=p.cacheID=0},T=function(){if(y){requestAnimationFrame(C);var R=en(d.deltaY/2),j=x(p.v-R);if(f&&j!==p.v+p.offset){p.offset=j-p.v;var k=en((parseFloat(f&&f._gsap.y)||0)-p.offset);f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+k+", 0, 1)",f._gsap.y=k+"px",p.cacheID=Ae.cache,wl()}return!0}p.offset&&_(),y=!0},S,L,O,M,$=function(){E(),S.isActive()&&S.vars.scrollY>u&&(p()>u?S.progress(1)&&p(u):S.resetTo("scrollY",u))};return f&&G.set(f,{y:"+=0"}),t.ignoreCheck=function(D){return Pl&&D.type==="touchmove"&&T()||v>1.05&&D.type!=="touchstart"||d.isGesturing||D.touches&&D.touches.length>1},t.onPress=function(){y=!1;var D=v;v=en((me.visualViewport&&me.visualViewport.scale||1)/w),S.pause(),D!==v&&Wa(m,v>1.01?!0:o?!1:"x"),L=A(),O=p(),E(),g=ro},t.onRelease=t.onGestureStart=function(D,R){if(p.offset&&_(),!R)M.restart(!0);else{Ae.cache++;var j=h(),k,z;o&&(k=A(),z=k+j*.05*-D.velocityX/.227,j*=cr(A,k,z,cl(m,gt)),S.vars.scrollX=b(z)),k=p(),z=k+j*.05*-D.velocityY/.227,j*=cr(p,k,z,cl(m,Ze)),S.vars.scrollY=x(z),S.invalidate().duration(j).play(.01),(Pl&&S.vars.scrollY>=u||k>=u-1)&&G.to({},{onUpdate:$,duration:j})}s&&s(D)},t.onWheel=function(){S._ts&&S.pause(),dt()-V>1e3&&(g=0,V=dt())},t.onChange=function(D,R,j,k,z){if(ro!==g&&E(),R&&o&&A(b(k[2]===R?L+(D.startX-D.x):A()+R-k[1])),j){p.offset&&_();var X=z[2]===j,F=X?O+D.startY-D.y:p()+j-z[1],ee=x(F);X&&F!==ee&&(O+=ee-F),p(ee)}(j||R)&&wl()},t.onEnable=function(){Wa(m,o?!1:"x"),pe.addEventListener("refresh",$),Ke(me,"resize",$),p.smooth&&(p.target.style.scrollBehavior="auto",p.smooth=A.smooth=!1),N.enable()},t.onDisable=function(){Wa(m,!0),Je(me,"resize",$),pe.removeEventListener("refresh",$),N.kill()},t.lockAxis=t.lockAxis!==!1,d=new Re(t),d.iOS=Pl,Pl&&!p()&&p(1),Pl&&G.ticker.add(sl),M=d._dc,S=G.to(d,{ease:"power4",paused:!0,inherit:!1,scrollX:o?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Qd(p,p(),function(){return S.pause()})},onUpdate:wl,onComplete:M.vars.onComplete}),d};pe.sort=function(n){if(ut(n))return ue.sort(n);var t=me.pageYOffset||0;return pe.getAll().forEach(function(l){return l._sortY=l.trigger?t+l.trigger.getBoundingClientRect().top:l.start+me.innerHeight}),ue.sort(n||function(l,o){return(l.vars.refreshPriority||0)*-1e6+(l.vars.containerAnimation?1e6:l._sortY)-((o.vars.containerAnimation?1e6:o._sortY)+(o.vars.refreshPriority||0)*-1e6)})};pe.observe=function(n){return new Re(n)};pe.normalizeScroll=function(n){if(typeof n>"u")return ft;if(n===!0&&ft)return ft.enable();if(n===!1){ft&&ft.kill(),ft=n;return}var t=n instanceof Re?n:kf(n);return ft&&ft.target===t.target&&ft.kill(),uo(t.target)&&(ft=t),t};pe.core={_getVelocityProp:si,_inputObserver:ec,_scrollers:Ae,_proxies:ul,bridge:{ss:function(){Ft||Ao("scrollStart"),Ft=dt()},ref:function(){return rt}}};Wd()&&G.registerPlugin(pe);const Nf={class:"gallery-timeline"},_f={class:"gallery-timeline__list"},Cf={class:"list__wrapper"},Ef={class:"timeline__list"},Tf=["innerHTML"],Sf=["innerHTML"],Pf=["innerHTML"],Bf=["innerHTML"],Lf={key:2,class:"my-3 my-md-5 pe-4"},Of=["href"],Mf={class:"timeline__item__button__text"},zf={key:0,class:"d-flex justify-content-center mt-6"},jf=e.defineComponent({name:"GalleryTimeline",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){kn.registerPlugin(pe);const l=n,o=t,a=e.computed(()=>window.innerWidth),i=()=>{var T;if(l.modelValue&&l.modelValue.data)return;const _={id:((T=l.modelValue)==null?void 0:T.id)||B(),type:"GalleryTimeline",bgColor:"",data:[{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"},{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"}]};o("update:modelValue",_)},s=e.ref(!1),d=e.ref(!1),u=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},c=_=>{o("handlePaste",_)};i();let r=null;const f=e.ref(5),p=e.ref(5);let A=null;const v=e.computed(()=>{var _;return((_=l.modelValue)==null?void 0:_.data)??null}),w=e.computed(()=>{var _;return a.value>=768?v.value:(_=v.value)==null?void 0:_.slice(0,f.value)}),V=e.computed(()=>{var _;return a.value<=767.98&&f.value<((_=v.value)==null?void 0:_.length)}),h=()=>{if(typeof window<"u")return Math.round(window.pageYOffset)},g=e.computed(()=>h());e.watch(()=>g.value,()=>{a.value>=768||E(b,5e3)}),e.watch(()=>w.value,()=>{b()});const y=e.ref([]),N=e.ref([]),C=e.ref(null),b=()=>{r=null,e.nextTick(x)},x=()=>{var L,O;r=kn.timeline();const _=y.value,T=N.value,S=(O=(L=C.value)==null?void 0:L.$el)==null?void 0:O.querySelector(".simplebar-content-wrapper");!_||!T||_.forEach((M,$)=>{r.fromTo(M,{"--line-height":"0%"},{"--line-height":"100%",scrollTrigger:{start:()=>window.innerWidth<768?"top center":`top top+=${50+$*35}px`,end:()=>window.innerWidth<768?"center center":`bottom center+=${$*25}px`,scrub:1,trigger:T[$],scroller:S,onEnter:D=>{D.trigger.classList.add("is-enter")},onEnterBack:D=>{D.trigger.classList.remove("is-enter")},onLeaveBack:D=>{D.trigger.classList.remove("is-enter")}}})})},E=(_,T)=>{A?A+T<Date.now()&&(_(),A=Date.now()):(_(),A=Date.now())};return e.onMounted(()=>{e.nextTick(x)}),(_,T)=>{var L;const S=e.resolveComponent("a-image");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:T[3]||(T[3]=O=>s.value=!0),onMouseleave:T[4]||(T[4]=O=>s.value=!1)},[e.createElementVNode("div",{class:"gallery-container gallery-timeline container-content",style:e.normalizeStyle({backgroundColor:(L=n.modelValue)==null?void 0:L.bgColor})},[e.createElementVNode("div",Nf,[e.createElementVNode("div",_f,[e.createVNode(Va,{hideScrollbar:a.value<768,ref_key:"scroller",ref:C},{default:e.withCtx(()=>{var O;return[e.createElementVNode("div",Cf,[e.createElementVNode("ul",Ef,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((O=n.modelValue)==null?void 0:O.data,M=>(e.openBlock(),e.createElementBlock("li",{class:"timeline__item",key:M.id,ref_for:!0,ref:$=>{$&&N.value.push($)}},[e.createElementVNode("div",{class:"item__line",ref_for:!0,ref:$=>{$&&y.value.push($)}},[...T[6]||(T[6]=[e.createElementVNode("div",{class:"item__line__mobile"},null,-1),e.createElementVNode("div",{class:"item__dot"},null,-1)])],512),e.createElementVNode("div",{class:e.normalizeClass(["d-flex flex-column flex-md-row justify-content-between",{"has-date":!!M.date}])},[e.createElementVNode("div",null,[M.date?e.withDirectives((e.openBlock(),e.createElementBlock("h4",{key:1,class:"text-blue-dark",innerHTML:M.title},null,8,Sf)),[[e.vShow,M.title]]):e.withDirectives((e.openBlock(),e.createElementBlock("h6",{key:0,class:"text-blue-dark",innerHTML:M.title},null,8,Tf)),[[e.vShow,M.title]]),e.withDirectives(e.createElementVNode("div",{class:"tx-body-big text-blue-dark mb-3 mb-md-5 pe-3",innerHTML:M.date},null,8,Pf),[[e.vShow,M.date]]),e.withDirectives(e.createElementVNode("div",{class:"tx-body-p text-teal-darkest mb-3 mb-md-5 pe-3",innerHTML:M.text},null,8,Bf),[[e.vShow,M.text]]),M.url?(e.openBlock(),e.createElementBlock("div",Lf,[e.createElementVNode("a",{href:M.url,target:"_blank",class:"timeline__item__button d-inline-block"},[e.createElementVNode("div",Mf,e.toDisplayString(M.btnText),1)],8,Of)])):e.createCommentVNode("",!0)]),M.imgSrc?(e.openBlock(),e.createBlock(S,{key:0,class:"flex-shrink-0 img-fit mb-8 mb-md-0 ms-md-15 mt-md-2 pe-4 cursor-pointer w-md-30",src:M.imgSrc,alt:M.alt,preview:!0},null,8,["src","alt"])):e.createCommentVNode("",!0)],2)]))),128))]),V.value?(e.openBlock(),e.createElementBlock("div",zf,[e.createElementVNode("button",{type:"button",class:"btn btn__load-more",onClick:T[0]||(T[0]=M=>f.value+=p.value)},[...T[7]||(T[7]=[e.createElementVNode("div",{class:"btn--udrline"}," 更多 ",-1),e.createElementVNode("span",{class:"i i-load-more"},null,-1)])])])):e.createCommentVNode("",!0)])]}),_:1},8,["hideScrollbar"])])])],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:s.value,"onUpdate:show":T[1]||(T[1]=O=>s.value=O),onHandleEdit:T[2]||(T[2]=O=>d.value=!0),onHandleDelete:u,onHandleCopy:m,onHandlePaste:c},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(mA,{key:0,show:d.value,"onUpdate:show":T[5]||(T[5]=O=>d.value=O),data:n.modelValue},null,8,["show","data"]))],64)}}}),Gi=H(jf,[["__scopeId","data-v-c2437ee0"]]),$f={class:"setting-content"},Df={class:"setting-header flex items-center"},Uf={class:"setting-body"},Rf={class:"setting-item"},Hf={class:"btn-group"},Wf={key:0,class:"drag-handle"},If={class:"item-schedule-list"},Xf={class:"btn-group"},qf={key:0,class:"drag-handle"},Ff=["src"],Yf={class:"item-uplaod flex items-center"},Zf={class:"item-action flex items-center"},Gf=["onClick"],Jf=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"schedules",disabled:!1,ghostClass:"ghost"})),i=p=>p&&p.length>1,s=n,d=t,u=()=>{d("update:show",!1)},m=()=>{if(s.data.length>=2){alert("最多只能添加2个");return}s.data.data.push({id:B(),title:"标题",desc:"描述",schedule:[]})},c=p=>{p.schedule.push({id:B(),title:"标题",text:"内容",date:"",imgSrc:"",alt:"",url:"",btnText:""})},r=p=>{s.data.data=s.data.data.filter(A=>A.id!==p)},f=(p,A)=>{p.schedule=p.schedule.filter(v=>v.id!==A)};return(p,A)=>{const v=e.resolveComponent("a-option"),w=e.resolveComponent("a-select"),V=e.resolveComponent("icon-drag-arrow"),h=e.resolveComponent("icon-delete"),g=e.resolveComponent("a-input"),y=e.resolveComponent("a-button"),N=e.resolveComponent("icon-plus"),C=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(C,{width:500,visible:n.show,footer:!1,onCancel:u,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",$f,[e.createElementVNode("div",Df,[A[9]||(A[9]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(w,{modelValue:n.data.bgColor,"onUpdate:modelValue":A[0]||(A[0]=b=>n.data.bgColor=b),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(v,{value:"#ffffff"},{default:e.withCtx(()=>[...A[7]||(A[7]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(v,{value:"#F7F7FA"},{default:e.withCtx(()=>[...A[8]||(A[8]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Uf,[e.createElementVNode("div",Rf,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":A[3]||(A[3]=b=>n.data.data=b),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!i(n.data.data),onStart:A[4]||(A[4]=b=>l.value=!0),onEnd:A[5]||(A[5]=b=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:b})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(n.data.data)}]),key:b.id},[e.createElementVNode("div",Hf,[i(n.data.data)?(e.openBlock(),e.createElementBlock("div",Wf,[e.createVNode(V,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:x=>r(b.id)},null,8,["onClick"])]),A[15]||(A[15]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(e.unref(qe),{modelValue:b.title,"onUpdate:modelValue":x=>b.title=x,name:`GalleryTimelineCol_editor_${b.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),A[16]||(A[16]=e.createElementVNode("p",{class:"item-title"},"描述",-1)),e.createVNode(g,{modelValue:b.desc,"onUpdate:modelValue":x=>b.desc=x,placeholder:"请输入文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),A[17]||(A[17]=e.createElementVNode("p",{class:"item-title"},"schedule",-1)),e.createElementVNode("div",If,[e.createVNode(e.unref(de),e.mergeProps({modelValue:b.schedule,"onUpdate:modelValue":x=>b.schedule=x,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!i(b.schedule),onStart:A[1]||(A[1]=x=>l.value=!0),onEnd:A[2]||(A[2]=x=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:x})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-schedule draggable-item",{"sortable-disabled":!i(b.schedule)}]),key:x.id},[e.createElementVNode("div",Xf,[i(b.schedule)?(e.openBlock(),e.createElementBlock("div",qf,[e.createVNode(V,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:E=>f(b,x.id)},null,8,["onClick"])]),A[10]||(A[10]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(g,{modelValue:x.title,"onUpdate:modelValue":E=>x.title=E,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),A[11]||(A[11]=e.createElementVNode("p",{class:"item-title"},"文本",-1)),e.createVNode(e.unref(qe),{modelValue:x.text,"onUpdate:modelValue":E=>x.text=E,name:`GalleryTimelineCol_editor_${x.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),A[12]||(A[12]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(g,{modelValue:x.date,"onUpdate:modelValue":E=>x.date=E,placeholder:"请输入日期","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),A[13]||(A[13]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:x.imgSrc},null,8,Ff),e.createElementVNode("div",Yf,[e.createVNode(g,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,name:`GalleryTimelineCol_${x.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(g,{class:"mt-2",modelValue:x.alt,"onUpdate:modelValue":E=>x.alt=E,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{style:{"margin-top":"10px"},type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.btnText),1)]),_:2},1024),e.createElementVNode("div",Zf,[e.createVNode(g,{class:"action-text",modelValue:x.btnText,"onUpdate:modelValue":E=>x.btnText=E,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(g,{modelValue:x.url,"onUpdate:modelValue":E=>x.url=E,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:x=>c(b)},[e.createVNode(N),A[14]||(A[14]=e.createElementVNode("span",{class:"btn-text"},"添加schedule",-1))],8,Gf)])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:A[6]||(A[6]=b=>m())},[e.createVNode(N),A[18]||(A[18]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),Kf=H(Jf,[["__scopeId","data-v-8f499c28"]]),Qf={class:"row row-cols-1 row-cols-md-2"},ev={class:"gallery-timeline"},tv={class:"mb-6 mb-md-8"},lv=["innerHTML"],ov={key:1,class:"gallery-timeline__desc text-center"},nv={class:"gallery-timeline__list"},av={class:"list__wrapper"},iv={class:"timeline__list"},sv=["innerHTML"],rv=["innerHTML"],dv=["innerHTML"],cv=["innerHTML"],uv={key:2,class:"my-3 my-md-5 pe-4"},mv=["href"],Av={class:"timeline__item__button__text"},pv={key:0,class:"d-flex justify-content-center mt-6"},fv=e.defineComponent({name:"GalleryTimelineCol",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){kn.registerPlugin(pe);const l=n,o=t,a=e.computed(()=>window.innerWidth),i=()=>{var T;if(l.modelValue&&l.modelValue.data)return;const _={id:((T=l.modelValue)==null?void 0:T.id)||B(),type:"GalleryTimelineCol",bgColor:"",data:[{id:B(),title:"标题",desc:"描述",schedule:[{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"},{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"}]},{id:B(),title:"标题",desc:"描述",schedule:[{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"},{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"}]}]};o("update:modelValue",_)},s=e.ref(!1),d=e.ref(!1),u=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},c=_=>{o("handlePaste",_)};i();let r=null;const f=e.ref(5),p=e.ref(5);let A=null;const v=e.computed(()=>{var _;return((_=l.modelValue)==null?void 0:_.data)??null}),w=e.computed(()=>{var _;return a.value>=768?v.value:(_=v.value)==null?void 0:_.slice(0,f.value)}),V=e.computed(()=>{var _;return a.value<=767.98&&f.value<((_=v.value)==null?void 0:_.length)}),h=()=>{if(typeof window<"u")return Math.round(window.pageYOffset)},g=e.computed(()=>h());e.watch(()=>g.value,()=>{a.value>=768||E(b,5e3)}),e.watch(()=>w.value,()=>{b()});const y=e.ref([]),N=e.ref([]),C=e.ref(null),b=()=>{r=null,e.nextTick(x)},x=()=>{var L,O;r=kn.timeline();const _=y.value,T=N.value,S=(O=(L=C.value)==null?void 0:L.$el)==null?void 0:O.querySelector(".simplebar-content-wrapper");!_||!T||_.forEach((M,$)=>{r.fromTo(M,{"--line-height":"0%"},{"--line-height":"100%",scrollTrigger:{start:()=>window.innerWidth<768?"top center":`top top+=${50+$*35}px`,end:()=>window.innerWidth<768?"center center":`bottom center+=${$*25}px`,scrub:1,trigger:T[$],scroller:S,onEnter:D=>{D.trigger.classList.add("is-enter")},onEnterBack:D=>{D.trigger.classList.remove("is-enter")},onLeaveBack:D=>{D.trigger.classList.remove("is-enter")}}})})},E=(_,T)=>{A?A+T<Date.now()&&(_(),A=Date.now()):(_(),A=Date.now())};return e.onMounted(()=>{e.nextTick(x)}),(_,T)=>{var L,O;const S=e.resolveComponent("a-image");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:T[3]||(T[3]=M=>s.value=!0),onMouseleave:T[4]||(T[4]=M=>s.value=!1)},[e.createElementVNode("div",{class:"gallery-container gallery-timeline-col container-content",style:e.normalizeStyle({backgroundColor:(L=n.modelValue)==null?void 0:L.bgColor})},[e.createElementVNode("div",Qf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((O=n.modelValue)==null?void 0:O.data,M=>(e.openBlock(),e.createElementBlock("div",{class:"col",key:M.id},[e.createElementVNode("div",ev,[e.createElementVNode("div",tv,[M.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gallery-timeline__title text-center",innerHTML:M.title},null,8,lv)):e.createCommentVNode("",!0),M.desc?(e.openBlock(),e.createElementBlock("div",ov,e.toDisplayString(M.desc),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",nv,[e.createVNode(Va,{hideScrollbar:a.value<768,ref_for:!0,ref_key:"scroller",ref:C},{default:e.withCtx(()=>[e.createElementVNode("div",av,[e.createElementVNode("ul",iv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.schedule,$=>(e.openBlock(),e.createElementBlock("li",{class:"timeline__item",key:$.id,ref_for:!0,ref:D=>{D&&N.value.push(D)}},[e.createElementVNode("div",{class:"item__line",ref_for:!0,ref:D=>{D&&y.value.push(D)}},[...T[6]||(T[6]=[e.createElementVNode("div",{class:"item__line__mobile"},null,-1),e.createElementVNode("div",{class:"item__dot"},null,-1)])],512),e.createElementVNode("div",{class:e.normalizeClass(["d-flex flex-column flex-md-row justify-content-between",{"has-date":!!$.date}])},[e.createElementVNode("div",null,[$.date?e.withDirectives((e.openBlock(),e.createElementBlock("h4",{key:1,class:"text-blue-dark",innerHTML:$.title},null,8,rv)),[[e.vShow,$.title]]):e.withDirectives((e.openBlock(),e.createElementBlock("h6",{key:0,class:"text-blue-dark",innerHTML:$.title},null,8,sv)),[[e.vShow,$.title]]),e.withDirectives(e.createElementVNode("div",{class:"tx-body-big text-blue-dark mb-3 mb-md-5 pe-3",innerHTML:$.date},null,8,dv),[[e.vShow,$.date]]),e.withDirectives(e.createElementVNode("div",{class:"tx-body-p text-teal-darkest mb-3 mb-md-5 pe-3",innerHTML:$.text},null,8,cv),[[e.vShow,$.text]]),$.url?(e.openBlock(),e.createElementBlock("div",uv,[e.createElementVNode("a",{href:$.url,target:"_blank",class:"timeline__item__button d-inline-block"},[e.createElementVNode("div",Av,e.toDisplayString($.btnText),1)],8,mv)])):e.createCommentVNode("",!0)]),$.imgSrc?(e.openBlock(),e.createBlock(S,{key:0,class:"flex-shrink-0 img-fit mb-8 mb-md-0 ms-md-15 mt-md-2 pe-4 cursor-pointer w-md-30",src:$.imgSrc,alt:$.alt,preview:!0},null,8,["src","alt"])):e.createCommentVNode("",!0)],2)]))),128))]),V.value?(e.openBlock(),e.createElementBlock("div",pv,[e.createElementVNode("button",{type:"button",class:"btn btn__load-more",onClick:T[0]||(T[0]=$=>f.value+=p.value)},[...T[7]||(T[7]=[e.createElementVNode("div",{class:"btn--udrline"}," 更多 ",-1),e.createElementVNode("span",{class:"i i-load-more"},null,-1)])])])):e.createCommentVNode("",!0)])]),_:2},1032,["hideScrollbar"])])])]))),128))])],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:s.value,"onUpdate:show":T[1]||(T[1]=M=>s.value=M),onHandleEdit:T[2]||(T[2]=M=>d.value=!0),onHandleDelete:u,onHandleCopy:m,onHandlePaste:c},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Kf,{key:0,show:d.value,"onUpdate:show":T[5]||(T[5]=M=>d.value=M),data:n.modelValue},null,8,["show","data"]))],64)}}}),Ji=H(fv,[["__scopeId","data-v-99e9210c"]]),vv=["href"],hv=["onClick"],Vv={key:1,class:"text-link"},gv=["onClick"],yv={class:"text-link__text"},bv=e.defineComponent({__name:"linkList",props:{list:{}},emits:["handleClick"],setup(n,{emit:t}){const l=t,o=a=>{a.type==="circle"&&a.url&&!a.url.includes("http")?l("handleClick",a.url):a.type==="text"&&l("handleClick",a)};return(a,i)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,s=>(e.openBlock(),e.createElementBlock("div",{class:"link-list__item",key:s.id},[s.type==="circle"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["circle-link",[s.isLight?"circle-link--light":""]])},[s.url&&s.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:s.url,class:e.normalizeClass([s.isLight?"nuxt-link-exact-active nuxt-link-active":""])},[e.createElementVNode("div",null,e.toDisplayString(s.text),1),e.createElementVNode("span",{class:e.normalizeClass(["circle-link__icon",[s.isLight?"circle-link__icon--light":""]])},null,2)],10,vv)):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d=>o(s),class:e.normalizeClass([s.isLight?"nuxt-link-exact-active nuxt-link-active":""])},[e.createElementVNode("div",null,e.toDisplayString(s.text),1),e.createElementVNode("span",{class:e.normalizeClass(["circle-link__icon",[s.isLight?"circle-link__icon--light":""]])},null,2)],10,hv))],2)):(e.openBlock(),e.createElementBlock("div",Vv,[e.createElementVNode("button",{type:"button",class:"text-link__wrapper link link--udrline-2",onClick:d=>o(s)},[e.createElementVNode("span",yv,e.toDisplayString(s.text),1)],8,gv)]))]))),128))}}),Ki=H(bv,[["__scopeId","data-v-e2cfa93e"]]),wv={class:"process-desktop"},xv={class:"process__left"},kv={class:"text-blue-dark"},Nv={class:"process-list my-10"},_v=["onClick"],Cv={class:"item-date tx-body-big"},Ev={class:"item-title"},Tv={class:"process__right"},Sv={class:"process__info__num"},Pv={class:"process__info__title"},Bv=["innerHTML"],Lv={class:"process__info__link"},Ov={key:0,class:"process__img"},Mv={class:"img-wrapper"},zv=["src","alt"],jv=e.defineComponent({name:"ProcessDesktop",__name:"ProcessDesktop",props:{data:Object,activeIdx:Number},emits:["updateIdx"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(72),i=e.ref(250),s=e.ref(window.innerWidth),d=e.ref([]),u=e.computed(()=>{var p,A;const f=(A=(p=l.data)==null?void 0:p.processes)==null?void 0:A.length;return!f||f<=1?"0%":`${m.value/(f-1)*100}%`}),m=e.computed({get(){return l.activeIdx??0},set(f){o("updateIdx",f)}}),c=()=>{s.value=window.innerWidth},r=()=>{const f=d.value;if(!f||f.length===0)return;const p=f[0];if(!p)return;const A=p.offsetLeft,v=p.clientWidth/2;a.value=A+v};return e.watch(s,()=>{r()}),e.onMounted(()=>{window.addEventListener("resize",c),c(),d.value=[],e.nextTick(()=>{r()})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",c)}),(f,p)=>{var A,v,w,V;return e.openBlock(),e.createElementBlock("div",wv,[e.createElementVNode("div",xv,[e.createElementVNode("h2",kv,e.toDisplayString((A=n.data)==null?void 0:A.title),1),e.createElementVNode("ul",Nv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=n.data)==null?void 0:v.processes,(h,g)=>(e.openBlock(),e.createElementBlock("li",{key:h.id,class:e.normalizeClass(["process-item",{"is-active":g==m.value}]),onClick:y=>m.value=g},[e.createElementVNode("div",Cv,e.toDisplayString(h.date),1),e.createElementVNode("div",{class:"item-num",ref_for:!0,ref:y=>{y&&d.value.push(y)}},e.toDisplayString(g+1),513),e.createElementVNode("h6",Ev,e.toDisplayString(h.title),1)],10,_v))),128)),e.createElementVNode("div",{class:"progress",style:e.normalizeStyle([{"--bar-height":u.value},{"--bar-left":`${a.value}px`}])},[...p[0]||(p[0]=[e.createElementVNode("div",{class:"progress-bar",role:"progressbar","aria-valuenow":"0","aria-valuemin":"0","aria-valuemax":"100"},null,-1)])],4)]),e.createElementVNode("div",null,[e.createVNode(yi,{list:(w=n.data)==null?void 0:w.btnList},null,8,["list"])])]),e.createElementVNode("div",Tv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=n.data)==null?void 0:V.processes,(h,g)=>(e.openBlock(),e.createElementBlock("div",{key:h.id,class:e.normalizeClass(["process__right__wrapper",{"is-active":m.value==g}])},[e.createElementVNode("div",{class:"process__info",style:e.normalizeStyle({"--scroll-bar-height":`${i.value}px`})},[e.createElementVNode("div",Sv,e.toDisplayString(g+1),1),e.createElementVNode("div",Pv,e.toDisplayString(h.title),1),e.createVNode(Va,{light:""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"process__info__text",innerHTML:h.desc},null,8,Bv),e.createElementVNode("div",Lv,[e.createVNode(Ki,{list:h.linkList},null,8,["list"])])]),_:2},1024)],4),h.imgSrc?(e.openBlock(),e.createElementBlock("div",Ov,[e.createElementVNode("div",Mv,[e.createElementVNode("img",{src:h.imgSrc,alt:h.alt||h.title},null,8,zv)])])):e.createCommentVNode("",!0)],2))),128))])])}}}),$v=H(jv,[["__scopeId","data-v-485de4f0"]]),Dv={class:"process-accordion"},Uv={class:"text-blue-dark"},Rv={class:"process-list my-6"},Hv=["onClick"],Wv={class:"item-date tx-body-p"},Iv={class:"item-line"},Xv={class:"item-collapse__header flex-between"},qv={class:"collapse__header__title"},Fv=["innerHTML"],Yv={class:"item__link mt-1"},Zv={class:"link-list__container"},Gv=e.defineComponent({name:"ProcessAccordion",__name:"ProcessAccordion",props:{data:Object,activeIdx:Number},emits:["updateIdx"],setup(n,{emit:t}){const l=n,o=t;e.watch(()=>l.data,()=>{var r,f;(f=(r=l.data)==null?void 0:r.processes)==null||f.forEach(p=>{var A;(A=p.linkList)==null||A.forEach(v=>{v.isLight=!1})})});const a=e.ref(window.innerWidth),i=e.ref([]),s=e.ref([]),d=e.computed({get(){return l.activeIdx??NaN},set(r){o("updateIdx",r)}}),u=()=>{a.value=window.innerWidth},m=()=>{s.value.forEach(f=>{f.style.setProperty("--max-height",`${f.scrollHeight}px`)})},c=r=>{d.value===r?d.value=NaN:d.value=r};return e.watch(a,()=>{m()}),e.onMounted(()=>{window.addEventListener("resize",u),u(),i.value=[],s.value=[],e.nextTick(()=>{m()})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",u)}),(r,f)=>{var p,A,v;return e.openBlock(),e.createElementBlock("div",Dv,[e.createElementVNode("h2",Uv,e.toDisplayString((p=n.data)==null?void 0:p.title),1),e.createElementVNode("ul",Rv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((A=n.data)==null?void 0:A.processes,(w,V)=>(e.openBlock(),e.createElementBlock("li",{key:w.id,class:e.normalizeClass(["process-item",[{"is-active":V==d.value},{"is-active-past":V<d.value}]]),onClick:h=>c(V)},[e.createElementVNode("div",Wv,e.toDisplayString(w.date),1),e.createElementVNode("div",Iv,[e.createElementVNode("div",{class:"item-num",ref_for:!0,ref:h=>{h&&i.value.push(h)}},e.toDisplayString(V+1),513)]),e.createElementVNode("div",{class:e.normalizeClass(["item-collapse",{"is-open":V==d.value}])},[e.createElementVNode("div",Xv,[e.createElementVNode("h6",qv,e.toDisplayString(w.title),1),f[0]||(f[0]=e.createElementVNode("div",{class:"collapse__header__btn"},null,-1))]),e.createElementVNode("div",{class:"item-collapse__body",ref_for:!0,ref:h=>{h&&s.value.push(h)}},[e.createElementVNode("div",{class:"item-desc",innerHTML:w.desc},null,8,Fv),e.createElementVNode("div",Yv,[e.createElementVNode("div",Zv,[e.createVNode(Ki,{list:w.linkList},null,8,["list"])])])],512)],2)],10,Hv))),128))]),e.createElementVNode("div",null,[e.createVNode(yi,{list:(v=n.data)==null?void 0:v.btnList},null,8,["list"])])])}}}),Jv=H(Gv,[["__scopeId","data-v-262f42cb"]]),Kv={class:"setting-content"},Qv={class:"setting-header flex items-center"},e1={class:"setting-header flex items-center"},t1={class:"setting-body"},l1={class:"btn-group"},o1={key:0,class:"drag-handle"},n1={class:"item-action flex items-center mt-2"},a1={class:"setting-body mt-2"},i1={class:"btn-group"},s1={key:0,class:"drag-handle"},r1=["src"],d1={class:"item-uplaod flex items-center"},c1={class:"section-item section-link"},u1={class:"btn-group"},m1={key:0,class:"drag-handle"},A1={class:"item-action flex items-center"},p1=["onClick"],f1=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"btns",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),i=e.computed(()=>({animation:200,group:"sections",disabled:!1,ghostClass:"ghost"})),s=w=>w&&w.length>1,d=n,u=t,m=()=>{u("update:show",!1)},c=()=>{d.data.data.btnList.push({id:B(),type:"",text:"了解更多",url:"/",isExternal:!1})},r=w=>{d.data.data.btnList=d.data.data.btnList.filter(V=>V.id!==w)},f=()=>{d.data.data.processes.push({id:B(),title:"标题",date:"",desc:"",linkList:[]})},p=w=>{d.data.data.processes=d.data.data.processes.filter(V=>V.id!==w)},A=w=>{w.push({id:B(),type:"circle",text:"了解更多",url:"/",isExternal:!1,isLight:!1})},v=(w,V)=>{w.splice(w.findIndex(h=>h.id===V),1)};return(w,V)=>{const h=e.resolveComponent("a-option"),g=e.resolveComponent("a-select"),y=e.resolveComponent("a-input"),N=e.resolveComponent("icon-drag-arrow"),C=e.resolveComponent("icon-delete"),b=e.resolveComponent("a-button"),x=e.resolveComponent("a-checkbox"),E=e.resolveComponent("icon-plus"),_=e.resolveComponent("a-link"),T=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(T,{width:500,visible:n.show,footer:!1,onCancel:m,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Kv,[e.createElementVNode("div",Qv,[V[16]||(V[16]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(g,{modelValue:n.data.width,"onUpdate:modelValue":V[0]||(V[0]=S=>n.data.width=S),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(h,{value:"default"},{default:e.withCtx(()=>[...V[12]||(V[12]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(h,{value:"small"},{default:e.withCtx(()=>[...V[13]||(V[13]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(h,{value:"middle"},{default:e.withCtx(()=>[...V[14]||(V[14]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(h,{value:"max"},{default:e.withCtx(()=>[...V[15]||(V[15]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",e1,[V[17]||(V[17]=e.createElementVNode("span",{class:"header-title"},"标题",-1)),e.createVNode(y,{modelValue:n.data.data.title,"onUpdate:modelValue":V[1]||(V[1]=S=>n.data.data.title=S),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",t1,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data.btnList,"onUpdate:modelValue":V[2]||(V[2]=S=>n.data.data.btnList=S),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!s(n.data.data),onStart:V[3]||(V[3]=S=>l.value=!0),onEnd:V[4]||(V[4]=S=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:S})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-section draggable-item",{"sortable-disabled":!s(n.data.data.btnList)}]),key:S.id},[e.createElementVNode("div",l1,[s(n.data.data)?(e.openBlock(),e.createElementBlock("div",o1,[e.createVNode(N,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(C,{class:"btn-delete",onClick:L=>r(S.id)},null,8,["onClick"])]),e.createVNode(b,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.text),1)]),_:2},1024),e.createElementVNode("div",n1,[e.createVNode(y,{class:"action-text",modelValue:S.text,"onUpdate:modelValue":L=>S.text=L,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{modelValue:S.url,"onUpdate:modelValue":L=>S.url=L,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(x,{"model-value":S.isExternal},{default:e.withCtx(()=>[...V[18]||(V[18]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:V[5]||(V[5]=S=>c())},[e.createVNode(E),V[19]||(V[19]=e.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))])]),e.createElementVNode("div",a1,[V[28]||(V[28]=e.createElementVNode("p",{class:"item-title"},"Process",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data.processes,"onUpdate:modelValue":V[8]||(V[8]=S=>n.data.data.processes=S),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!s(n.data.data.processes),onStart:V[9]||(V[9]=S=>l.value=!0),onEnd:V[10]||(V[10]=S=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:S})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-section draggable-item",{"sortable-disabled":!s(n.data.data.processes)}]),key:S.id},[e.createElementVNode("div",i1,[s(n.data.data.processes)?(e.openBlock(),e.createElementBlock("div",s1,[e.createVNode(N,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(C,{class:"btn-delete",onClick:L=>p(S.id)},null,8,["onClick"])]),V[23]||(V[23]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(y,{modelValue:S.title,"onUpdate:modelValue":L=>S.title=L,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),V[24]||(V[24]=e.createElementVNode("p",{class:"item-title"},"描述",-1)),e.createVNode(e.unref(qe),{modelValue:S.desc,"onUpdate:modelValue":L=>S.desc=L,name:`Process_editor_${S.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),V[25]||(V[25]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(y,{modelValue:S.date,"onUpdate:modelValue":L=>S.date=L,placeholder:"请输入日期","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),V[26]||(V[26]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:S.imgSrc},null,8,r1),e.createElementVNode("div",d1,[e.createVNode(y,{modelValue:S.imgSrc,"onUpdate:modelValue":L=>S.imgSrc=L,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:S.imgSrc,"onUpdate:modelValue":L=>S.imgSrc=L,name:`Process_${S.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createElementVNode("div",c1,[e.createVNode(e.unref(de),e.mergeProps({modelValue:S.linkList,"onUpdate:modelValue":L=>S.linkList=L,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!s(S.linkList),onStart:V[6]||(V[6]=L=>l.value=!0),onEnd:V[7]||(V[7]=L=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:L})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(S.linkList)}]),key:L.id},[e.createElementVNode("div",u1,[s(S.linkList)?(e.openBlock(),e.createElementBlock("div",m1,[e.createVNode(N,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(C,{class:"btn-delete",onClick:O=>v(S.linkList,L.id)},null,8,["onClick"])]),e.createVNode(_,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.text),1)]),_:2},1024),L.type==="circle"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",A1,[e.createVNode(y,{class:"action-text",modelValue:L.text,"onUpdate:modelValue":O=>L.text=O,placeholder:"链接文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{modelValue:L.url,"onUpdate:modelValue":O=>L.url=O,placeholder:"链接链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(x,{"model-value":L.isExternal},{default:e.withCtx(()=>[...V[20]||(V[20]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"]),e.createVNode(x,{style:{"padding-left":"10px"},"model-value":L.isLight},{default:e.withCtx(()=>[...V[21]||(V[21]=[e.createTextVNode("是否亮色",-1)])]),_:1},8,["model-value"])],64)):e.createCommentVNode("",!0)],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>A(S.linkList)},[e.createVNode(E),V[22]||(V[22]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,p1)])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:V[11]||(V[11]=S=>f())},[e.createVNode(E),V[27]||(V[27]=e.createElementVNode("span",{class:"btn-text"},"添加Process",-1))])])])]),_:1},8,["visible"])}}}),v1=H(f1,[["__scopeId","data-v-72b7cc6e"]]),h1={key:0,class:"process__desktop"},V1={key:1,class:"process__mobile"},g1=e.defineComponent({name:"Process",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var A;if(l.modelValue&&l.modelValue.data)return;const p={id:((A=l.modelValue)==null?void 0:A.id)||B(),type:"Process",width:"",data:{id:B(),title:"发展历程",noWrap:!1,btnList:[{id:B(),type:"",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}],processes:[{id:B(),date:"1900",title:"标题1",desc:"<p>发简历<strong>放假啊冷风机阿拉法久</strong>啊拉法基阿拉法久啊反垃圾阿拉法</p>",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",linkList:[{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!1},{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!0}]},{id:B(),date:"1900",title:"标题1",desc:"<p>发简历<strong>放假啊冷风机阿拉法久</strong>啊拉法基阿拉法久啊反垃圾阿拉法</p>",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",linkList:[{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!1},{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!0}]}]}};o("update:modelValue",p)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=p=>{o("handlePaste",p)};a();const c=e.ref(0),r=e.ref(typeof window<"u"?window.innerWidth:1024),f=()=>{typeof window<"u"&&(r.value=window.innerWidth)};return e.onMounted(()=>{typeof window<"u"&&(window.addEventListener("resize",f),f())}),e.onBeforeUnmount(()=>{typeof window<"u"&&window.removeEventListener("resize",f)}),(p,A)=>{var v,w,V,h;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"process",onMouseenter:A[4]||(A[4]=g=>i.value=!0),onMouseleave:A[5]||(A[5]=g=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["process__container",[(v=n.modelValue)!=null&&v.width?`container-content-${(w=n.modelValue)==null?void 0:w.width}`:"container-content"]])},[r.value>=768?(e.openBlock(),e.createElementBlock("div",h1,[e.createVNode($v,{data:(V=n.modelValue)==null?void 0:V.data,activeIdx:c.value,onUpdateIdx:A[0]||(A[0]=g=>c.value=g)},null,8,["data","activeIdx"])])):(e.openBlock(),e.createElementBlock("div",V1,[e.createVNode(Jv,{data:(h=n.modelValue)==null?void 0:h.data,activeIdx:c.value,onUpdateIdx:A[1]||(A[1]=g=>c.value=g)},null,8,["data","activeIdx"])]))],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":A[2]||(A[2]=g=>i.value=g),onHandleEdit:A[3]||(A[3]=g=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v1,{key:0,show:s.value,"onUpdate:show":A[6]||(A[6]=g=>s.value=g),data:n.modelValue},null,8,["show","data"]))],64)}}}),Qi=H(g1,[["__scopeId","data-v-d11b0dfd"]]),y1={class:"setting-content"},b1=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=t,a=()=>{o("update:show",!1)},i=e.ref(1),s=d=>{d===1?(l.data.data.desktopHeight=49,l.data.data.mobileHeight=24):d===2?(l.data.data.desktopHeight=80,l.data.data.mobileHeight=40):d===3?(l.data.data.desktopHeight=32,l.data.data.mobileHeight=40):d===4?(l.data.data.desktopHeight=16,l.data.data.mobileHeight=16):d===5&&(l.data.data.desktopHeight=160,l.data.data.mobileHeight=80)};return(d,u)=>{const m=e.resolveComponent("a-option"),c=e.resolveComponent("a-select"),r=e.resolveComponent("a-input"),f=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(f,{width:500,visible:n.show,footer:!1,onCancel:a,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",y1,[u[12]||(u[12]=e.createElementVNode("p",{class:"item-title"},"背景颜色",-1)),e.createVNode(c,{modelValue:n.data.bgColor,"onUpdate:modelValue":u[0]||(u[0]=p=>n.data.bgColor=p),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(m,{value:"#ffffff"},{default:e.withCtx(()=>[...u[5]||(u[5]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(m,{value:"#F7F7FA"},{default:e.withCtx(()=>[...u[6]||(u[6]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"]),u[13]||(u[13]=e.createElementVNode("p",{class:"item-title"},"间距设置",-1)),e.createVNode(c,{modelValue:i.value,"onUpdate:modelValue":u[1]||(u[1]=p=>i.value=p),placeholder:"请选择",onChange:s,"allow-clear":""},{default:e.withCtx(()=>[e.createVNode(m,{value:1},{default:e.withCtx(()=>[...u[7]||(u[7]=[e.createTextVNode("制表符起始间距(49px,24px)",-1)])]),_:1}),e.createVNode(m,{value:2},{default:e.withCtx(()=>[...u[8]||(u[8]=[e.createTextVNode("部分间距(80px,40px)",-1)])]),_:1}),e.createVNode(m,{value:3},{default:e.withCtx(()=>[...u[9]||(u[9]=[e.createTextVNode("组件间距(32px,40px)",-1)])]),_:1}),e.createVNode(m,{value:4},{default:e.withCtx(()=>[...u[10]||(u[10]=[e.createTextVNode("链接间距(16px,16px)",-1)])]),_:1}),e.createVNode(m,{value:5},{default:e.withCtx(()=>[...u[11]||(u[11]=[e.createTextVNode("页末间距(160px,80px)",-1)])]),_:1})]),_:1},8,["modelValue"]),u[14]||(u[14]=e.createElementVNode("p",{class:"item-title"},"PC高度(单位:px)",-1)),e.createVNode(r,{modelValue:n.data.data.desktopHeight,"onUpdate:modelValue":u[2]||(u[2]=p=>n.data.data.desktopHeight=p),disabled:""},null,8,["modelValue"]),u[15]||(u[15]=e.createElementVNode("p",{class:"item-title"},"移动端高度(单位:px)",-1)),e.createVNode(r,{modelValue:n.data.data.mobileHeight,"onUpdate:modelValue":u[3]||(u[3]=p=>n.data.data.mobileHeight=p),disabled:""},null,8,["modelValue"]),u[16]||(u[16]=e.createElementVNode("p",{class:"item-title"},"唯一标识",-1)),e.createVNode(r,{modelValue:n.data.data.id,"onUpdate:modelValue":u[4]||(u[4]=p=>n.data.data.id=p),placeholder:"请输入唯一标识","allow-clear":""},null,8,["modelValue"])])]),_:1},8,["visible"])}}}),w1=H(b1,[["__scopeId","data-v-72d8e435"]]),x1=["id"],k1=e.defineComponent({name:"CustomSpace",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"CustomSpace",data:{id:"",desktopHeight:"49",mobileHeight:"24",bgColor:""}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v,w,V,h,g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{id:(p=(f=n.modelValue)==null?void 0:f.data)==null?void 0:p.id,class:"custom-space",style:e.normalizeStyle({"--desktop-height":((v=(A=n.modelValue)==null?void 0:A.data)==null?void 0:v.desktopHeight)+"px","--mobile-height":((V=(w=n.modelValue)==null?void 0:w.data)==null?void 0:V.mobileHeight)+"px","--bg-color":(g=(h=n.modelValue)==null?void 0:h.data)==null?void 0:g.bgColor}),onMouseenter:r[2]||(r[2]=y=>i.value=!0),onMouseleave:r[3]||(r[3]=y=>i.value=!1)},[n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=y=>i.value=y),onHandleEdit:r[1]||(r[1]=y=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],44,x1),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w1,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=y=>s.value=y),data:n.modelValue},null,8,["show","data"]))],64)}}}),es=H(k1,[["__scopeId","data-v-33a4ad79"]]),N1=["src"],_1={class:"item-uplaod flex items-center"},C1=["src"],E1={class:"item-uplaod flex items-center"},T1={class:"item-title pt-2"},S1={class:"btn-group"},P1={key:0,class:"drag-handle"},B1={class:"item-action flex items-center"},L1={class:"btn-group"},O1={key:0,class:"drag-handle"},M1=e.defineComponent({__name:"setting",props:{data:{type:Object,default:()=>{}},showLogo:{type:Boolean,default:!0},maxNum:{type:Number,default:2},canAddParagraph:{type:Boolean,default:!1}},setup(n){const t=e.ref(!1),l=e.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),o=e.computed(()=>({animation:200,group:"paragraphs",disabled:!1,ghostClass:"ghost"})),a=m=>m&&m.length>1,i=n,s=(m,c)=>{c.length>=i.maxNum||c.push({id:B(),type:m,text:"查看更多",url:void 0,isExternal:!1})},d=(m,c)=>{m.splice(m.findIndex(r=>r.id===c),1)},u=m=>{m.push({title:"耀华国际教育学校浙江桐乡",subTitle:"耀华国际教育学校浙江桐乡",name:"耀华国际教育学校浙江桐乡",label:"123",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",buttonList:{id:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[]},paragraphs:{title:"",content:""}})};return(m,c)=>{const r=e.resolveComponent("a-input"),f=e.resolveComponent("a-upload"),p=e.resolveComponent("icon-drag-arrow"),A=e.resolveComponent("icon-delete"),v=e.resolveComponent("a-button"),w=e.resolveComponent("a-checkbox"),V=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-button-group");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.showLogo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c[18]||(c[18]=e.createElementVNode("p",{class:"item-title"},"学校logo",-1)),e.createElementVNode("img",{class:"item-img",src:n.data.logo},null,8,N1),e.createElementVNode("div",_1,[e.createVNode(r,{modelValue:n.data.logo,"onUpdate:modelValue":c[0]||(c[0]=g=>n.data.logo=g),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(f,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):e.createCommentVNode("",!0),c[27]||(c[27]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(r,{modelValue:n.data.title,"onUpdate:modelValue":c[1]||(c[1]=g=>n.data.title=g),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),c[28]||(c[28]=e.createElementVNode("p",{class:"item-title"},"子标题",-1)),e.createVNode(r,{modelValue:n.data.subTitle,"onUpdate:modelValue":c[2]||(c[2]=g=>n.data.subTitle=g),placeholder:"请输入子标题","allow-clear":""},null,8,["modelValue"]),c[29]||(c[29]=e.createElementVNode("p",{class:"item-title"},"名称",-1)),e.createVNode(r,{modelValue:n.data.name,"onUpdate:modelValue":c[3]||(c[3]=g=>n.data.name=g),placeholder:"请输入名称","allow-clear":""},null,8,["modelValue"]),c[30]||(c[30]=e.createElementVNode("p",{class:"item-title"},"标签",-1)),e.createVNode(r,{modelValue:n.data.label,"onUpdate:modelValue":c[4]||(c[4]=g=>n.data.label=g),placeholder:"请输入标签","allow-clear":""},null,8,["modelValue"]),c[31]||(c[31]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:n.data.imgSrc},null,8,C1),e.createElementVNode("div",E1,[e.createVNode(r,{modelValue:n.data.imgSrc,"onUpdate:modelValue":c[5]||(c[5]=g=>n.data.imgSrc=g),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(f,{class:"fit-content","show-file-list":!1,action:"/"})]),e.createVNode(r,{class:"mt-2",modelValue:n.data.alt,"onUpdate:modelValue":c[6]||(c[6]=g=>n.data.alt=g),placeholder:"图片alt","allow-clear":""},null,8,["modelValue"]),e.createElementVNode("p",T1,"按钮(最多"+e.toDisplayString(n.maxNum)+"个)",1),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.buttonList.data,"onUpdate:modelValue":c[7]||(c[7]=g=>n.data.buttonList.data=g),"component-data":{tag:"div",type:"transition-group",name:t.value?null:"flip-list"}},l.value,{disabled:!a(n.data.buttonList.data),onStart:c[8]||(c[8]=g=>t.value=!0),onEnd:c[9]||(c[9]=g=>t.value=!1),"item-key":"id"}),{item:e.withCtx(({element:g})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button item-link draggable-item",{"sortable-disabled":!a(n.data.buttonList.data)}]),key:g.id},[e.createElementVNode("div",S1,[a(n.data.buttonList.data)?(e.openBlock(),e.createElementBlock("div",P1,[e.createVNode(p,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(A,{class:"btn-delete",onClick:y=>d(n.data.buttonList.data,g.id)},null,8,["onClick"])]),e.createVNode(v,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.text),1)]),_:2},1024),e.createElementVNode("div",B1,[e.createVNode(r,{class:"action-text",modelValue:g.text,"onUpdate:modelValue":y=>g.text=y,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(r,{modelValue:g.url,"onUpdate:modelValue":y=>g.url=y,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(w,{"model-value":g.isExternal},{default:e.withCtx(()=>[...c[19]||(c[19]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createVNode(h,{class:"mt-2",type:"primary"},{default:e.withCtx(()=>[e.createVNode(v,{size:"mini",onClick:c[10]||(c[10]=g=>s("default",n.data.buttonList.data))},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[c[20]||(c[20]=e.createTextVNode(" 默认按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:c[11]||(c[11]=g=>s("white",n.data.buttonList.data))},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[c[21]||(c[21]=e.createTextVNode(" 白色按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:c[12]||(c[12]=g=>s("light",n.data.buttonList.data))},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[c[22]||(c[22]=e.createTextVNode(" 亮色按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:c[13]||(c[13]=g=>s("blue",n.data.buttonList.data))},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[c[23]||(c[23]=e.createTextVNode(" 蓝色按钮 ",-1))]),_:1})]),_:1}),c[32]||(c[32]=e.createElementVNode("p",{class:"item-name mt-2"},"段落",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.paragraphs,"onUpdate:modelValue":c[14]||(c[14]=g=>n.data.paragraphs=g),"component-data":{tag:"div",type:"transition-group",name:t.value?null:"flip-list"}},o.value,{disabled:!a(n.data.paragraphs),onStart:c[15]||(c[15]=g=>t.value=!0),onEnd:c[16]||(c[16]=g=>t.value=!1),"item-key":"id"}),{item:e.withCtx(({element:g})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button item-link draggable-item",{"sortable-disabled":!a(n.data.paragraphs)}]),key:g.id},[e.createElementVNode("div",L1,[a(n.data.paragraphs)?(e.openBlock(),e.createElementBlock("div",O1,[e.createVNode(p,{class:"drag-icon"})])):e.createCommentVNode("",!0),n.canAddParagraph?(e.openBlock(),e.createBlock(A,{key:1,class:"btn-delete",onClick:y=>d(n.data.paragraphs,g.id)},null,8,["onClick"])):e.createCommentVNode("",!0)]),c[24]||(c[24]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(r,{modelValue:g.title,"onUpdate:modelValue":y=>g.title=y,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),c[25]||(c[25]=e.createElementVNode("p",{class:"item-title mt-2"},"内容",-1)),e.createVNode(e.unref(qe),{name:`Profile_editor_${g.id}`,modelValue:g.content,"onUpdate:modelValue":y=>g.content=y},null,8,["name","modelValue","onUpdate:modelValue"])],2))]),_:1},16,["modelValue","component-data","disabled"]),n.canAddParagraph?(e.openBlock(),e.createElementBlock("div",{key:1,class:"item-add-btn flex items-center",onClick:c[17]||(c[17]=g=>u(n.data.paragraphs))},[e.createVNode(V),c[26]||(c[26]=e.createElementVNode("span",{class:"btn-text"},"添加段落",-1))])):e.createCommentVNode("",!0)],64)}}}),xa=H(M1,[["__scopeId","data-v-40fe2c2b"]]),z1={class:"setting-content"},j1={class:"setting-header flex items-center"},$1={class:"setting-header flex items-center"},D1={class:"setting-header flex items-center"},U1={class:"setting-body"},R1={class:"setting-item"},H1={class:"btn-group"},W1={key:0,class:"drag-handle"},I1=["src"],X1={class:"item-uplaod flex items-center"},q1=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=c=>{i.data.data.push({id:B(),type:c,text:"查看更多",url:void 0,isExternal:!1,isLight:!1})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("a-input"),v=e.resolveComponent("icon-plus"),w=e.resolveComponent("a-button"),V=e.resolveComponent("a-button-group"),h=e.resolveComponent("icon-drag-arrow"),g=e.resolveComponent("icon-delete"),y=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(y,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",z1,[e.createElementVNode("div",j1,[r[10]||(r[10]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=N=>n.data.bgColor=N),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",$1,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"pc列数",-1)),e.createVNode(A,{modelValue:n.data.desktopCol,"onUpdate:modelValue":r[1]||(r[1]=N=>n.data.desktopCol=N),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",D1,[r[12]||(r[12]=e.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),e.createVNode(A,{modelValue:n.data.mobileCol,"onUpdate:modelValue":r[2]||(r[2]=N=>n.data.mobileCol=N),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createVNode(V,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(w,{size:"mini",onClick:r[3]||(r[3]=N=>u("GalleryListItem"))},{icon:e.withCtx(()=>[e.createVNode(v)]),default:e.withCtx(()=>[r[13]||(r[13]=e.createTextVNode(" 普通项目 ",-1))]),_:1}),e.createVNode(w,{size:"mini",onClick:r[4]||(r[4]=N=>u("GalleryListProfile"))},{icon:e.withCtx(()=>[e.createVNode(v)]),default:e.withCtx(()=>[r[14]||(r[14]=e.createTextVNode(" 文章项目 ",-1))]),_:1})]),_:1}),e.createElementVNode("div",U1,[e.createElementVNode("div",R1,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[5]||(r[5]=N=>n.data.data=N),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[6]||(r[6]=N=>l.value=!0),onEnd:r[7]||(r[7]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:N.id},[e.createElementVNode("div",H1,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",W1,[e.createVNode(h,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(g,{class:"btn-delete",onClick:C=>m(N.id)},null,8,["onClick"])]),r[15]||(r[15]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(A,{modelValue:N.title,"onUpdate:modelValue":C=>N.title=C,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[16]||(r[16]=e.createElementVNode("p",{class:"item-title"},"文本",-1)),e.createVNode(A,{modelValue:N.text,"onUpdate:modelValue":C=>N.text=C,placeholder:"请输入文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[17]||(r[17]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:N.imgSrc},null,8,I1),e.createElementVNode("div",X1,[e.createVNode(A,{modelValue:N.imgSrc,"onUpdate:modelValue":C=>N.imgSrc=C,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:N.imgSrc,"onUpdate:modelValue":C=>N.imgSrc=C,name:`GalleryList_${N.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(A,{class:"mt-2",modelValue:N.alt,"onUpdate:modelValue":C=>N.alt=C,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[18]||(r[18]=e.createElementVNode("p",{class:"item-title"},"网址",-1)),e.createVNode(A,{modelValue:N.url,"onUpdate:modelValue":C=>N.url=C,placeholder:"请输入网址","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[19]||(r[19]=e.createElementVNode("p",{class:"item-title"},"Profile Information",-1)),N.profile?(e.openBlock(),e.createBlock(xa,{key:0,data:N.profile,showLogo:!1,canAddParagraph:!0},null,8,["data"])):e.createCommentVNode("",!0)],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),F1=H(q1,[["__scopeId","data-v-7ab273f4"]]),Y1={class:"lightbox__content"},Z1={class:"lightbox__content__head"},G1={class:"lightbox__content__head__image"},J1=["src","alt"],K1={class:"lightbox__content__head__info"},Q1={class:"lightbox__content__head__info__title"},eh={class:"lightbox__content__head__info__subtitle"},th={class:"lightbox__content__head__info__label"},lh={class:"lightbox__content__head__info__btn"},oh={class:"lightbox__content__main",style:{"--head-height":"297px"}},nh={class:"scroll-bar"},ah={"data-simplebar-auto-hide":"false",class:"simple-bar","data-simplebar":"init"},ih={class:"simplebar-wrapper",style:{margin:"0px -24px 0px 0px"}},sh={class:"simplebar-mask"},rh={class:"simplebar-offset",style:{right:"0px",bottom:"0px"}},dh={class:"simplebar-content-wrapper",tabindex:"0",role:"region","aria-label":"scrollable content",style:{height:"auto",overflow:"hidden"}},ch={class:"simplebar-content",style:{padding:"0px 24px 0px 0px"}},uh={class:"lightbox__content__body"},mh={class:"lightbox__content__body__title"},Ah=["innerHTML"],ph={class:"lightbox__content__footer"},fh={class:"lightbox__content__footer__logo"},vh=["src"],hh=e.defineComponent({__name:"index",props:{data:{type:Object,default:()=>{}}},emits:["close"],setup(n,{emit:t}){const l=t,o=()=>{l("close")};return(a,i)=>{var s,d,u,m,c,r;return e.openBlock(),e.createElementBlock("div",Y1,[e.createElementVNode("div",{class:"lightbox__content__cross i i-cross-modal",onClick:o}),e.createElementVNode("div",{class:"lightbox__content__prev i i-arrow-prev",onClick:o}),e.createElementVNode("div",Z1,[e.createElementVNode("div",G1,[e.createElementVNode("img",{src:(s=n.data)==null?void 0:s.imgSrc,alt:(d=n.data)==null?void 0:d.alt},null,8,J1)]),e.createElementVNode("div",K1,[e.createElementVNode("h2",Q1,e.toDisplayString((u=n.data)==null?void 0:u.title),1),e.createElementVNode("h6",eh,e.toDisplayString((m=n.data)==null?void 0:m.subTitle),1),e.createElementVNode("div",th,e.toDisplayString((c=n.data)==null?void 0:c.label),1),e.createElementVNode("div",lh,[e.createVNode(ha,{modelValue:n.data.buttonList,"onUpdate:modelValue":i[0]||(i[0]=f=>n.data.buttonList=f)},null,8,["modelValue"])])])]),e.createElementVNode("div",oh,[e.createElementVNode("div",nh,[e.createElementVNode("div",ah,[e.createElementVNode("div",ih,[i[1]||(i[1]=e.createElementVNode("div",{class:"simplebar-height-auto-observer-wrapper"},[e.createElementVNode("div",{class:"simplebar-height-auto-observer"})],-1)),e.createElementVNode("div",sh,[e.createElementVNode("div",rh,[e.createElementVNode("div",dh,[e.createElementVNode("div",ch,[e.createElementVNode("div",uh,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((r=n.data)==null?void 0:r.paragraphs,f=>(e.openBlock(),e.createElementBlock("li",{class:"lightbox__content__body__list",key:f.id},[e.createElementVNode("div",mh,e.toDisplayString(f.title),1),e.createElementVNode("div",{class:"lightbox__content__body__text",innerHTML:f.content},null,8,Ah)]))),128))])]),e.createElementVNode("div",ph,[e.createElementVNode("div",fh,[e.createElementVNode("img",{src:n.data.logo||"https://ywies-tx.cedim/images/logo/logo-ycyw.png",alt:"school logo"},null,8,vh)])])])])])]),i[2]||(i[2]=e.createElementVNode("div",{class:"simplebar-placeholder",style:{width:"auto",height:"222px"}},null,-1))]),i[3]||(i[3]=e.createElementVNode("div",{class:"simplebar-track simplebar-horizontal",style:{visibility:"hidden"}},[e.createElementVNode("div",{class:"simplebar-scrollbar simplebar-visible",style:{width:"0px",display:"none"}})],-1)),i[4]||(i[4]=e.createElementVNode("div",{class:"simplebar-track simplebar-vertical",style:{visibility:"hidden"}},[e.createElementVNode("div",{class:"simplebar-scrollbar simplebar-visible",style:{height:"0px",display:"none"}})],-1))])])])])}}}),Vh=H(hh,[["__scopeId","data-v-d329796d"]]),ka=e.defineComponent({__name:"modal",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=e.computed(()=>l.show),a=t,i=()=>{a("update:show",!1)};return(s,d)=>{const u=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(u,{visible:o.value,"onUpdate:visible":d[0]||(d[0]=m=>o.value=m),hideTitle:!0,footer:!1,bodyClass:"profile-model",onCancel:i},{default:e.withCtx(()=>[e.createVNode(Vh,{data:n.data,onClose:i},null,8,["data"])]),_:1},8,["visible"])}}}),gh=["onClick"],yh={class:"gallery-caption__img"},bh=["src","alt"],wh={class:"gallery-caption__title tx-subtitle text-blue text-center mt-3 mt-md-4 px-3"},xh={key:0,class:"tx-body text-teal-darkest text-center mt-2 mt-md-3 mb-3"},kh=e.defineComponent({name:"GalleryList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var A;if(l.modelValue&&l.modelValue.data)return;const p={id:((A=l.modelValue)==null?void 0:A.id)||B(),type:"GalleryList",bgColor:"",desktopCol:4,mobileCol:2,data:[{id:B(),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:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]}}]};o("update:modelValue",p)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=p=>{o("handlePaste",p)},c=e.ref(!1),r=e.ref({}),f=p=>{p.type==="GalleryListProfile"&&(r.value=p.profile,c.value=!0)};return a(),(p,A)=>{var V;const v=e.resolveComponent("a-col"),w=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:A[2]||(A[2]=h=>i.value=!0),onMouseleave:A[3]||(A[3]=h=>i.value=!1)},[e.createElementVNode("div",{class:"gallery-container gallery-caption container-content",style:e.normalizeStyle({backgroundColor:(V=n.modelValue)==null?void 0:V.bgColor})},[e.createVNode(w,{class:"caption-row"},{default:e.withCtx(()=>{var h;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((h=n.modelValue)==null?void 0:h.data,g=>{var y,N;return e.openBlock(),e.createBlock(v,{key:g.id,sm:{span:24/((y=n.modelValue)==null?void 0:y.mobileCol)},md:{span:24/((N=n.modelValue)==null?void 0:N.desktopCol)}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["gallery-caption",[g.url&&"has-url",g.profile&&"has-profile"]]),onClick:C=>f(g)},[e.createElementVNode("div",yh,[e.createElementVNode("img",{src:g.imgSrc,alt:g.alt},null,8,bh)]),e.createElementVNode("div",wh,e.toDisplayString(g.title),1),g.text?(e.openBlock(),e.createElementBlock("div",xh,e.toDisplayString(g.text),1)):e.createCommentVNode("",!0)],10,gh)]),_:2},1032,["sm","md"])}),128))]}),_:1})],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":A[0]||(A[0]=h=>i.value=h),onHandleEdit:A[1]||(A[1]=h=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F1,{key:0,show:s.value,"onUpdate:show":A[4]||(A[4]=h=>s.value=h),data:n.modelValue},null,8,["show","data"])),e.createVNode(ka,{show:c.value,"onUpdate:show":A[5]||(A[5]=h=>c.value=h),data:r.value},null,8,["show","data"])],64)}}}),ts=H(kh,[["__scopeId","data-v-b339bce1"]]),Nh={class:"setting-content"},_h={class:"setting-body"},Ch={class:"item-name"},Eh={class:"btn-group"},Th={key:0,class:"drag-handle"},Sh={class:"item-name"},Ph=["src"],Bh={class:"mt-2 flex items-center"},Lh=["src"],Oh={class:"mt-2 flex items-center"},Mh=["src"],zh={class:"mt-2 flex items-center"},jh={class:"btn-group"},$h={key:0,class:"drag-handle"},Dh={class:"item-action flex items-center"},Uh=["onClick"],Rh=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show","updateSwiper"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"banners",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),i=f=>f&&f.length>1,s=t,d=()=>{s("update:show",!1)},u=(f,p)=>{f.push({id:B(),type:p,imgSrc:"",title:"",alt:"",link:"",videoSrc:p==="Video"?"":void 0}),s("updateSwiper")},m=(f,p)=>{f.splice(f.findIndex(A=>A.id===p),1),s("updateSwiper")},c=f=>{f.push({id:B(),text:"查看更多",url:void 0,isExternal:!1})},r=(f,p)=>{f.splice(f.findIndex(A=>A.id===p),1)};return(f,p)=>{const A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("a-input"),V=e.resolveComponent("a-checkbox"),h=e.resolveComponent("icon-plus"),g=e.resolveComponent("a-button"),y=e.resolveComponent("a-button-group"),N=e.resolveComponent("a-link"),C=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(C,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Nh,[e.createElementVNode("div",_h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data.data,b=>(e.openBlock(),e.createElementBlock("div",{class:"setting-item",key:b.id},[e.createElementVNode("p",Ch,e.toDisplayString(b.type),1),b.type==="Banners"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(de),e.mergeProps({modelValue:b.data,"onUpdate:modelValue":x=>b.data=x,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},{ref_for:!0},o.value,{disabled:!i(b.data),onStart:p[0]||(p[0]=x=>l.value=!0),onEnd:p[1]||(p[1]=x=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:x})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(b.data)}]),key:x.id},[e.createElementVNode("div",Eh,[i(b.data)?(e.openBlock(),e.createElementBlock("div",Th,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:E=>m(b.data,b.id)},null,8,["onClick"])]),e.createElementVNode("p",Sh,e.toDisplayString(x.type),1),e.createVNode(w,{class:"mt-2",modelValue:x.title,"onUpdate:modelValue":E=>x.title=E,placeholder:"标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(w,{class:"mt-2",modelValue:x.alt,"onUpdate:modelValue":E=>x.alt=E,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(w,{class:"mt-2",modelValue:x.link,"onUpdate:modelValue":E=>x.link=E,placeholder:"链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),x.type==="Image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("img",{class:"item-img",src:x.imgSrc},null,8,Ph),e.createElementVNode("div",Bh,[e.createVNode(w,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,name:`HeroSlide_${x.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("video",{class:"item-img",src:x.videoSrc,controls:""},null,8,Lh),e.createElementVNode("div",Oh,[e.createVNode(w,{modelValue:x.videoSrc,"onUpdate:modelValue":E=>x.videoSrc=E,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:x.videoSrc,"onUpdate:modelValue":E=>x.videoSrc=E,name:`HeroSlide_${x.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createElementVNode("img",{class:"item-img",src:x.imgSrc},null,8,Mh),e.createElementVNode("div",zh,[e.createVNode(w,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,name:`HeroSlide_${x.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],64)),e.createVNode(V,{class:"mt-2","model-value":x.isExternal},{default:e.withCtx(()=>[...p[4]||(p[4]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createVNode(y,{class:"mt-2",type:"primary"},{default:e.withCtx(()=>[e.createVNode(g,{size:"mini",type:"outline",onClick:x=>u(b.data,"Image")},{icon:e.withCtx(()=>[e.createVNode(h)]),default:e.withCtx(()=>[p[5]||(p[5]=e.createTextVNode(" 图片 ",-1))]),_:1},8,["onClick"]),e.createVNode(g,{size:"mini",type:"outline",onClick:x=>u(b.data,"Video")},{icon:e.withCtx(()=>[e.createVNode(h)]),default:e.withCtx(()=>[p[6]||(p[6]=e.createTextVNode(" 视频 ",-1))]),_:1},8,["onClick"])]),_:2},1024)],64)):e.createCommentVNode("",!0),b.type==="Links"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(de),e.mergeProps({modelValue:b.data,"onUpdate:modelValue":x=>b.data=x,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},{ref_for:!0},a.value,{disabled:!i(b.data),onStart:p[2]||(p[2]=x=>l.value=!0),onEnd:p[3]||(p[3]=x=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:x})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(b.data)}]),key:x.id},[e.createElementVNode("div",jh,[i(b.data)?(e.openBlock(),e.createElementBlock("div",$h,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:E=>r(b.data,x.id)},null,8,["onClick"])]),e.createVNode(N,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.text),1)]),_:2},1024),e.createElementVNode("div",Dh,[e.createVNode(w,{class:"action-text",modelValue:x.text,"onUpdate:modelValue":E=>x.text=E,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(w,{modelValue:x.url,"onUpdate:modelValue":E=>x.url=E,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(V,{"model-value":x.isExternal},{default:e.withCtx(()=>[...p[7]||(p[7]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:x=>c(b.data)},[e.createVNode(h),p[8]||(p[8]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,Uh)],64)):e.createCommentVNode("",!0)]))),128))])])]),_:1},8,["visible"])}}}),Hh=H(Rh,[["__scopeId","data-v-1f1760c7"]]),Wh={class:"banner-quicklinks"},Ih={class:"quick-links__list"},Xh=e.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},emits:["handleClick"],setup(n,{emit:t}){const l=n,o=t,a=f=>{o("handleClick",f)},i=e.ref(null),s=e.ref(!1),d=e.ref(!1),u=()=>{const f=i.value;f&&(s.value=f.scrollLeft>0,d.value=f.scrollLeft+f.clientWidth<f.scrollWidth)},m=()=>{const f=i.value;f&&f.scrollBy({left:-f.clientWidth/1.5,behavior:"smooth"})},c=()=>{const f=i.value;f&&f.scrollBy({left:f.clientWidth/1.5,behavior:"smooth"})},r=()=>{u()};return e.watch(()=>l.data,async()=>{await e.nextTick(),u()}),e.onMounted(()=>{window.addEventListener("resize",u),e.nextTick(u)}),e.onUnmounted(()=>{window.removeEventListener("resize",u)}),(f,p)=>(e.openBlock(),e.createElementBlock("div",Wh,[e.withDirectives(e.createElementVNode("div",{class:"quick-links__nav__prev",onClick:m},null,512),[[e.vShow,s.value]]),e.createElementVNode("div",{class:"quick-links__wrapper",ref_key:"quickLinksWrapperRef",ref:i,onScroll:r},[e.createElementVNode("div",Ih,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data,A=>(e.openBlock(),e.createBlock(la,{key:A.id,data:A,hasHoverBg:!1,onHandleClick:a},null,8,["data"]))),128))])],544),e.withDirectives(e.createElementVNode("div",{class:"quick-links__nav__next",onClick:c},null,512),[[e.vShow,d.value]])]))}}),qh=H(Xh,[["__scopeId","data-v-83b87f22"]]),Fh={class:"swiper-wrapper"},Yh={class:"swiper-slide__media"},Zh=["src","alt"],Gh={key:1,class:"video-player"},Jh=["poster"],Kh=["src"],Qh=["href"],eV={class:"swiper-slide__body"},tV={class:"swiper-slide__body__title text-center"},lV={class:"video-box"},oV=["src"],nV=e.defineComponent({__name:"index",props:{data:{},imageInterval:{},videoAutoNext:{type:Boolean}},setup(n,{expose:t}){const l=n,o=e.ref();let a=null,i=0,s=null,d=null,u=null,m=null,c=null;const r=async()=>{try{const T=await import("swiper"),{Navigation:S,Pagination:L,Autoplay:O}=await import("swiper/modules");d=T.Swiper,u=S,m=L,c=O,await Promise.resolve().then(()=>WV),await Promise.resolve().then(()=>IV),await Promise.resolve().then(()=>XV),o.value&&(a=new d(o.value,{modules:[u,m,c],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:M=>{i=M.activeIndex,v(i)},touchStart:()=>{p()},touchEnd:()=>{setTimeout(()=>{const M=l.data[f.value];M&&M.type==="Image"&&A()},100)}}}))}catch(T){console.error("Failed to load Swiper:",T)}},f=e.ref(0),p=()=>{s&&(clearTimeout(s),s=null)},A=()=>{p();const T=l.data[f.value];if(T&&T.type==="Image"){const S=l.imageInterval||5e3;s=setTimeout(()=>{a&&a.slideNext()},S)}},v=T=>{p(),N(),f.value=T;const S=l.data[f.value];S.type==="Video"?y():S.type==="Image"&&A()},w=()=>{g.value=!1,l.videoAutoNext!==!1&&a&&setTimeout(()=>{a.slideNext()},200)},V=e.ref([]),h=(T,S)=>{const L=T&&"$el"in T?T.$el:T;L instanceof HTMLVideoElement&&(V.value[S]=L)},g=e.ref(!1),y=()=>{V.value[f.value]&&(V.value[f.value].play(),g.value=!0,p())},N=()=>{V.value[f.value]&&(V.value[f.value].pause(),g.value=!1)},C=e.ref(!1),b=e.ref(),x=e.ref(),E=()=>{N(),x.value=l.data[f.value].videoSrc,e.nextTick(()=>{var T;C.value=!0,(T=b.value)==null||T.play()})},_=()=>{var T;(T=b.value)==null||T.pause(),C.value=!1};return e.onMounted(async()=>{await r(),v(0)}),e.onUnmounted(()=>{p(),a&&a.destroy(!0,!0)}),t({initSwiper:r}),(T,S)=>{const L=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"swiper-container",ref_key:"swiperContainer",ref:o},[e.createElementVNode("div",Fh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data,(O,M)=>(e.openBlock(),e.createElementBlock("div",{class:"swiper-slide",key:O.id},[e.createElementVNode("div",Yh,[O.type==="Image"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"swiper-slide__media-img",src:O.imgSrc,alt:O.alt},null,8,Zh)):O.type==="Video"?(e.openBlock(),e.createElementBlock("div",Gh,[e.createElementVNode("video",{ref_for:!0,ref:$=>h($,M),playsinline:"",poster:O.imgSrc,onEnded:w},[e.createElementVNode("source",{src:O.videoSrc,type:"video/mp4"},null,8,Kh)],40,Jh)])):e.createCommentVNode("",!0)]),e.createElementVNode("a",{href:O.link,target:"_blank",class:"swiper-slide__link"},null,8,Qh),e.createElementVNode("div",eV,[e.createElementVNode("div",tV,e.toDisplayString(O.title),1),O.type==="Video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"swiper-slide__body__play",onClick:e.withModifiers(y,["stop"])})),e.createElementVNode("button",{type:"button",class:"swiper-slide__body__link",onClick:e.withModifiers(E,["stop"])},"观看完整视频")],64)):e.createCommentVNode("",!0)])]))),128))]),S[1]||(S[1]=e.createElementVNode("div",{class:"swiper-pagination"},null,-1)),S[2]||(S[2]=e.createElementVNode("div",{class:"swiper-button-next"},null,-1)),S[3]||(S[3]=e.createElementVNode("div",{class:"swiper-button-prev"},null,-1))],512),e.createVNode(L,{visible:C.value,"onUpdate:visible":S[0]||(S[0]=O=>C.value=O),footer:!1,width:"1200px",onCancel:_},{title:e.withCtx(()=>[...S[4]||(S[4]=[e.createTextVNode(" 观看完整视频 ",-1)])]),default:e.withCtx(()=>[e.createElementVNode("div",lV,[e.createElementVNode("video",{ref_key:"videoElement",ref:b,controls:""},[e.createElementVNode("source",{src:x.value,type:"video/mp4"},null,8,oV)],512)])]),_:1},8,["visible"])],64)}}}),aV=H(nV,[["__scopeId","data-v-f46c25de"]]),iV=e.defineComponent({name:"HeroSlide",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var A;if(l.modelValue&&l.modelValue.data)return;const p={id:((A=l.modelValue)==null?void 0:A.id)||B(),type:"HeroSlide",data:[{id:B(),type:"Banners",data:[{id:B(),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:B(),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:B(),type:"Links",data:[{id:B(),text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]}]};o("update:modelValue",p)},i=p=>{o("handleClick",p)},s=e.ref(!1),d=e.ref(!1),u=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},c=p=>{o("handlePaste",p)},r=e.ref(),f=()=>{var p;(p=r.value)==null||p.initSwiper()};return a(),(p,A)=>{var v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"hero-slide has-quick-links is-video-and-image",onMouseenter:A[2]||(A[2]=w=>s.value=!0),onMouseleave:A[3]||(A[3]=w=>s.value=!1)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=n.modelValue)==null?void 0:v.data,w=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w.id},[w.type==="Banners"?(e.openBlock(),e.createBlock(aV,{key:0,ref_for:!0,ref_key:"swiperRef",ref:r,data:w.data},null,8,["data"])):e.createCommentVNode("",!0),w.type==="Links"&&w.data.length?(e.openBlock(),e.createBlock(qh,{key:1,data:w.data,onHandleClick:i},null,8,["data"])):e.createCommentVNode("",!0)],64))),128)),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:s.value,"onUpdate:show":A[0]||(A[0]=w=>s.value=w),onHandleEdit:A[1]||(A[1]=w=>d.value=!0),onHandleDelete:u,onHandleCopy:m,onHandlePaste:c},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Hh,{key:0,show:d.value,"onUpdate:show":A[4]||(A[4]=w=>d.value=w),data:n.modelValue,onUpdateSwiper:f},null,8,["show","data"]))],64)}}}),ls=H(iV,[["__scopeId","data-v-f54bfbfb"]]),sV={class:"setting-content"},rV={class:"setting-header flex items-center"},dV={class:"setting-header flex items-center"},cV={class:"setting-body"},uV={class:"setting-item"},mV={class:"btn-group"},AV={key:0,class:"drag-handle"},pV={class:"item-action flex items-center"},fV=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=c=>{i.data.data.push({id:B(),type:c,text:"查看更多",url:void 0,isExternal:!1,isLight:!1})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-plus"),v=e.resolveComponent("a-button"),w=e.resolveComponent("a-button-group"),V=e.resolveComponent("icon-drag-arrow"),h=e.resolveComponent("icon-delete"),g=e.resolveComponent("a-link"),y=e.resolveComponent("a-input"),N=e.resolveComponent("a-checkbox"),C=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(C,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",sV,[e.createElementVNode("div",rV,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(p,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=b=>n.data.width=b),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:""},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(f,{value:"small"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(f,{value:"middle"},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(f,{value:"max"},{default:e.withCtx(()=>[...r[10]||(r[10]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",dV,[r[14]||(r[14]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[1]||(r[1]=b=>n.data.bgColor=b),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[12]||(r[12]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[13]||(r[13]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createVNode(w,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(v,{size:"mini",onClick:r[2]||(r[2]=b=>u("circle"))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[15]||(r[15]=e.createTextVNode(" 圆链接 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:r[3]||(r[3]=b=>u("text"))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[16]||(r[16]=e.createTextVNode(" 文字链接 ",-1))]),_:1})]),_:1}),e.createElementVNode("div",cV,[e.createElementVNode("div",uV,[r[20]||(r[20]=e.createElementVNode("p",{class:"item-name"},"链接",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[4]||(r[4]=b=>n.data.data=b),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[5]||(r[5]=b=>l.value=!0),onEnd:r[6]||(r[6]=b=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:b})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:b.id},[e.createElementVNode("div",mV,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",AV,[e.createVNode(V,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:x=>m(b.id)},null,8,["onClick"])]),e.createVNode(g,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.text),1)]),_:2},1024),b.type==="circle"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",pV,[e.createVNode(y,{class:"action-text",modelValue:b.text,"onUpdate:modelValue":x=>b.text=x,placeholder:"链接文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{modelValue:b.url,"onUpdate:modelValue":x=>b.url=x,placeholder:"链接链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(N,{"model-value":b.isExternal},{default:e.withCtx(()=>[...r[17]||(r[17]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"]),e.createVNode(N,{style:{"padding-left":"10px"},"model-value":b.isLight},{default:e.withCtx(()=>[...r[18]||(r[18]=[e.createTextVNode("是否亮色",-1)])]),_:1},8,["model-value"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(y,{class:"action-text m-2",modelValue:b.text,"onUpdate:modelValue":x=>b.text=x,placeholder:"链接文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[19]||(r[19]=e.createElementVNode("p",{class:"item-name"},"Profile Information",-1)),e.createVNode(xa,{data:b.profile},null,8,["data"])],64))],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),vV=H(fV,[["__scopeId","data-v-3a4d530f"]]),hV=e.defineComponent({name:"LinkList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var A,v;if(l.modelValue&&l.modelValue.data)return;const p={id:((A=l.modelValue)==null?void 0:A.id)||B(),type:"LinkList",width:"",bgColor:"",data:[{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!1},{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!0},{id:B(),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=l.modelValue)==null?void 0:v.id)||B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]}}]};o("update:modelValue",p)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=p=>{o("handlePaste",p)},c=e.ref(!1),r=e.ref({}),f=p=>{p.type==="text"&&(r.value=p.profile,c.value=!0)};return a(),(p,A)=>{var v,w,V,h;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"link-list",style:e.normalizeStyle({backgroundColor:(v=n.modelValue)==null?void 0:v.bgColor}),onMouseenter:A[2]||(A[2]=g=>i.value=!0),onMouseleave:A[3]||(A[3]=g=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["link-list__container justify-content-center",[(w=n.modelValue)!=null&&w.width?`container-content-${(V=n.modelValue)==null?void 0:V.width}`:"container-content"]])},[e.createVNode(Ki,{list:(h=n.modelValue)==null?void 0:h.data,onHandleClick:f},null,8,["list"])],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":A[0]||(A[0]=g=>i.value=g),onHandleEdit:A[1]||(A[1]=g=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(vV,{key:0,show:s.value,"onUpdate:show":A[4]||(A[4]=g=>s.value=g),data:n.modelValue},null,8,["show","data"])),e.createVNode(ka,{show:c.value,"onUpdate:show":A[5]||(A[5]=g=>c.value=g),data:r.value},null,8,["show","data"])],64)}}}),os=H(hV,[["__scopeId","data-v-fb7a0af7"]]),VV={class:"setting-content"},gV={class:"setting-header flex items-center"},yV={class:"setting-header flex items-center"},bV={class:"setting-header flex items-center"},wV=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-option"),d=e.resolveComponent("a-select"),u=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(u,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",VV,[e.createElementVNode("div",gV,[i[9]||(i[9]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(d,{modelValue:n.data.data.width,"onUpdate:modelValue":i[0]||(i[0]=m=>n.data.data.width=m),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(s,{value:"default"},{default:e.withCtx(()=>[...i[5]||(i[5]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(s,{value:"small"},{default:e.withCtx(()=>[...i[6]||(i[6]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(s,{value:"middle"},{default:e.withCtx(()=>[...i[7]||(i[7]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(s,{value:"max"},{default:e.withCtx(()=>[...i[8]||(i[8]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",yV,[i[12]||(i[12]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(d,{modelValue:n.data.data.bgColor,"onUpdate:modelValue":i[1]||(i[1]=m=>n.data.data.bgColor=m),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(s,{value:"#ffffff"},{default:e.withCtx(()=>[...i[10]||(i[10]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(s,{value:"#F7F7FA"},{default:e.withCtx(()=>[...i[11]||(i[11]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",bV,[i[15]||(i[15]=e.createElementVNode("span",{class:"header-title"},"是否显示下划线",-1)),e.createVNode(d,{modelValue:n.data.data.hasLine,"onUpdate:modelValue":i[2]||(i[2]=m=>n.data.data.hasLine=m),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(s,{value:!0},{default:e.withCtx(()=>[...i[13]||(i[13]=[e.createTextVNode("是",-1)])]),_:1}),e.createVNode(s,{value:!1},{default:e.withCtx(()=>[...i[14]||(i[14]=[e.createTextVNode("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),i[16]||(i[16]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.text,"onUpdate:modelValue":i[3]||(i[3]=m=>n.data.data.text=m),name:"QuoteText_editor_text"},null,8,["modelValue"]),i[17]||(i[17]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.desc,"onUpdate:modelValue":i[4]||(i[4]=m=>n.data.data.desc=m),name:"QuoteText_editor_desc"},null,8,["modelValue"])])]),_:1},8,["visible"])}}}),xV=H(wV,[["__scopeId","data-v-1e2a389e"]]),kV={key:0,class:"quote-text__line"},NV=["innerHTML"],_V=["innerHTML"],CV=e.defineComponent({name:"QuoteText",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"QuoteText",data:{width:"",bgColor:"",hasLine:!0,text:"浙江桐乡特色高中将于今年9月成立!",desc:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。"}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v,w,V,h,g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"quote-text",onMouseenter:r[2]||(r[2]=y=>i.value=!0),onMouseleave:r[3]||(r[3]=y=>i.value=!1)},[e.createElementVNode("div",{class:"quote-text__container quote-text--normal container-content",style:e.normalizeStyle({background:((p=(f=n.modelValue)==null?void 0:f.data)==null?void 0:p.bgColor)||"transparent"})},[(v=(A=n.modelValue)==null?void 0:A.data)!=null&&v.hasLine?(e.openBlock(),e.createElementBlock("div",kV)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"quote-text__content",innerHTML:(V=(w=n.modelValue)==null?void 0:w.data)==null?void 0:V.text},null,8,NV),e.createElementVNode("div",{class:"quote-text__desc",innerHTML:(g=(h=n.modelValue)==null?void 0:h.data)==null?void 0:g.desc},null,8,_V)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=y=>i.value=y),onHandleEdit:r[1]||(r[1]=y=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(xV,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=y=>s.value=y),data:n.modelValue},null,8,["show","data"]))],64)}}}),ns=H(CV,[["__scopeId","data-v-b290fdea"]]),EV={class:"setting-content"},TV={class:"setting-header flex items-center"},SV={class:"setting-body"},PV={class:"setting-item"},BV={class:"btn-group"},LV={key:0,class:"drag-handle"},OV={class:"item-action flex items-center"},MV=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=()=>{i.data.data.push({id:B(),title:"查看更多",link:void 0})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("a-button"),V=e.resolveComponent("a-input"),h=e.resolveComponent("icon-plus"),g=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(g,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",EV,[e.createElementVNode("div",TV,[r[9]||(r[9]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(p,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=y=>n.data.width=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:""},{default:e.withCtx(()=>[...r[5]||(r[5]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(f,{value:"small"},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(f,{value:"middle"},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(f,{value:"max"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",SV,[e.createElementVNode("div",PV,[r[11]||(r[11]=e.createElementVNode("p",{class:"item-name"},"链接",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=y=>n.data.data=y),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[2]||(r[2]=y=>l.value=!0),onEnd:r[3]||(r[3]=y=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:y.id},[e.createElementVNode("div",BV,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",LV,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:N=>m(y.id)},null,8,["onClick"])]),e.createVNode(w,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:2},1024),e.createElementVNode("div",OV,[e.createVNode(V,{class:"action-text",modelValue:y.title,"onUpdate:modelValue":N=>y.title=N,placeholder:"文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(V,{modelValue:y.link,"onUpdate:modelValue":N=>y.link=N,placeholder:"链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[4]||(r[4]=y=>u())},[e.createVNode(h),r[10]||(r[10]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))])])])])]),_:1},8,["visible"])}}}),zV=H(MV,[["__scopeId","data-v-143af305"]]),jV={class:"donor-links__row row row-cols-1 row-cols-sm-2 row-cols-lg-3"},$V=["href"],DV={class:"donor-link__text"},UV=["onClick"],RV={class:"donor-link__text"},HV=e.defineComponent({name:"DonorLinks",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var f;if(l.modelValue&&l.modelValue.data)return;const r={id:((f=l.modelValue)==null?void 0:f.id)||B(),type:"DonorLinks",width:"",data:[{id:B(),title:"了解更多",link:"https://www.baidu.com"},{id:B(),title:"了解更多",link:"https://www.baidu.com"}]};o("update:modelValue",r)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=r=>{o("handlePaste",r)},c=r=>{o("handleClick",r)};return a(),(r,f)=>{var p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"donor-links",onMouseenter:f[2]||(f[2]=w=>i.value=!0),onMouseleave:f[3]||(f[3]=w=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["donor-links__container",[(p=n.modelValue)!=null&&p.width?`container-content-${(A=n.modelValue)==null?void 0:A.width}`:"container-content"]])},[e.createElementVNode("div",jV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=n.modelValue)==null?void 0:v.data,w=>(e.openBlock(),e.createElementBlock("div",{key:w.id},[w.link&&w.link.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:w.link,class:"donor-link btn"},[e.createElementVNode("div",DV,e.toDisplayString(w.title),1),f[5]||(f[5]=e.createElementVNode("span",{class:"donor-link__icon"},null,-1))],8,$V)):w.link?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:V=>c(w.link),class:"donor-link btn"},[e.createElementVNode("div",RV,e.toDisplayString(w.title),1),f[6]||(f[6]=e.createElementVNode("span",{class:"donor-link__icon"},null,-1))],8,UV)):e.createCommentVNode("",!0)]))),128))])],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":f[0]||(f[0]=w=>i.value=w),onHandleEdit:f[1]||(f[1]=w=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(zV,{key:0,show:s.value,"onUpdate:show":f[4]||(f[4]=w=>s.value=w),data:n.modelValue},null,8,["show","data"]))],64)}}}),as=H(HV,[["__scopeId","data-v-a64d0f41"]]),WV=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),IV=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),XV=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),qV={class:"setting-content"},FV={class:"setting-header flex items-center"},YV={class:"setting-body"},ZV={class:"setting-item"},GV={class:"btn-group"},JV={key:0,class:"drag-handle"},KV=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"profiles",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=()=>{i.data.data.push({id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("icon-plus"),V=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(V,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",qV,[e.createElementVNode("div",FV,[r[9]||(r[9]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(p,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=h=>n.data.width=h),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:""},{default:e.withCtx(()=>[...r[5]||(r[5]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(f,{value:"small"},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(f,{value:"middle"},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(f,{value:"max"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",YV,[e.createElementVNode("div",ZV,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=h=>n.data.data=h),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[2]||(r[2]=h=>l.value=!0),onEnd:r[3]||(r[3]=h=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:h})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:h.id},[e.createElementVNode("div",GV,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",JV,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:g=>m(h.id)},null,8,["onClick"])]),e.createVNode(xa,{data:h,showLogo:!1,canAddParagraph:!0},null,8,["data"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[4]||(r[4]=h=>u())},[e.createVNode(w),r[10]||(r[10]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),QV=H(KV,[["__scopeId","data-v-619f046d"]]),e0={class:"slides-pagination__list"},t0=["onClick"],l0=e.defineComponent({__name:"index",props:{currentIndex:{type:Number,default:()=>0},count:{type:Number,default:()=>0},dark:{type:Boolean,default:()=>!1},hideArrow:{type:Boolean,default:()=>!1},isLoop:{type:Boolean,default:()=>!1}},emits:["updatePage","slidePrev","slideNext"],setup(n,{emit:t}){const l=n,o=t,a=e.computed(()=>l.count<6||l.currentIndex<3?5:l.currentIndex+3),i=e.computed(()=>a.value>l.count?l.count-5:a.value-5),s=(d,u)=>{if(l.isLoop){if(u=="slidePrev")return o("slidePrev",d);if(u=="slideNext")return o("slideNext",d)}else if(d<0||d>=l.count)return;o("updatePage",d)};return(d,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["slides-pagination",[{"slides-pagination__dark":n.dark}]])},[e.createElementVNode("div",e0,[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass(["slides-pagination__arrow__prev",{"slides-pagination__arrow--disable":n.currentIndex===0&&!n.isLoop}]),onClick:u[0]||(u[0]=m=>s(n.currentIndex-1,"slidePrev"))},null,2),[[e.vShow,!n.hideArrow]]),e.createVNode(e.TransitionGroup,{name:"list",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.count,(m,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c>=i.value&&c<a.value?(e.openBlock(),e.createElementBlock("button",{key:m,type:"button",class:e.normalizeClass(["slides-pagination__dot",{"slides-pagination__dot--is-active":c===n.currentIndex}]),onClick:r=>s(c)},null,10,t0)):e.createCommentVNode("",!0)],64))),256))]),_:1}),e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass(["slides-pagination__arrow__next",{"slides-pagination__arrow--disable":n.currentIndex===n.count-1&&!n.isLoop}]),onClick:u[1]||(u[1]=m=>s(n.currentIndex+1,"slideNext"))},null,2),[[e.vShow,!n.hideArrow]])])],2))}}),is=H(l0,[["__scopeId","data-v-8d634011"]]),o0={class:"slide-content"},n0={class:"card-profile"},a0={class:"profile__head"},i0={class:"profile__img img-fit --show-profile"},s0=["src","alt"],r0={class:"profile__body text-center --show-profile"},d0={class:"profile__title tx-subtitle mt-3 mt-md-4"},c0={class:"profile__name tx-h6 mt-md-1"},u0={class:"mt-10 mt-md-12"},m0={key:1},A0={class:"row row-cols-1 row-cols-md-3 row-cols-lg-4 justify-content-center"},p0=["onClick"],f0={class:"card-profile"},v0={class:"profile__head"},h0={class:"profile__img img-fit --show-profile"},V0=["src","alt"],g0={class:"profile__body text-center --show-profile"},y0={class:"profile__title tx-subtitle mt-3 mt-md-4"},b0={class:"profile__name tx-h6 mt-md-1"},w0=e.defineComponent({name:"CardCarousel",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=e.computed(()=>{var L,O,M,$;if(typeof window>"u")return!0;const S=window.innerWidth;return((O=(L=l.modelValue)==null?void 0:L.data)==null?void 0:O.length)>3&&S>=1024||(($=(M=l.modelValue)==null?void 0:M.data)==null?void 0:$.length)>2&&S>=768&&S<1024||S<768}),i=e.ref(!0),s=[yt.Navigation,yt.Pagination,yt.Autoplay],d={768:{slidesPerView:3,slidesPerGroup:1,spaceBetween:16,shortSwipes:!1},1024:{slidesPerView:4,slidesPerGroup:1,spaceBetween:16}},u=e.ref(0),m=e.ref(!1),c=e.ref(),r=S=>{u.value=S.realIndex??0},f=S=>{var L,O;_.value=(O=(L=l.modelValue)==null?void 0:L.data)==null?void 0:O[S],E.value=!0},p=S=>{c.value=S,m.value||e.nextTick(()=>{setTimeout(()=>{A()},100)})},A=()=>{i.value=!1,e.nextTick(()=>{i.value=!0,e.nextTick(()=>{c.value&&(c.value.update(),m.value=!0)})})},v=e.computed(()=>{var S,L;return(L=(S=l.modelValue)==null?void 0:S.data)==null?void 0:L.length}),w=S=>{c.value&&c.value.slideToLoop(S,600)},V=()=>{c.value&&c.value.slidePrev(600)},h=()=>{c.value&&c.value.slideNext(600)},g=()=>{var L,O;if(l.modelValue&&((L=l.modelValue)!=null&&L.data))return;const S={id:((O=l.modelValue)==null?void 0:O.id)||B(),type:"CardCarousel",width:"",data:[{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]}]};o("update:modelValue",S)},y=e.ref(!1),N=e.ref(!1),C=()=>{var S;o("handleDelete",(S=l.modelValue)==null?void 0:S.id)},b=()=>{o("handleCopy",l.modelValue)},x=S=>{o("handlePaste",S)},E=e.ref(!1),_=e.ref({}),T=S=>{_.value=S,E.value=!0};return e.onMounted(()=>{A()}),g(),(S,L)=>{var M,$,D;const O=e.resolveComponent("client-only");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"card-carousel",onMouseenter:L[2]||(L[2]=R=>y.value=!0),onMouseleave:L[3]||(L[3]=R=>y.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["card-carousel__wrapper",[(M=n.modelValue)!=null&&M.width?`container-content-${($=n.modelValue)==null?void 0:$.width}`:"container-content"]])},[a.value&&i.value?(e.openBlock(),e.createBlock(O,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(ml.Swiper),{ref:"swiperRef",modules:s,"centered-slides":!1,speed:600,"slides-per-view":1,"slides-per-group":1,"space-between":16,"short-swipes":!0,"long-swipes-ratio":.3,loop:!0,"auto-height":!0,breakpoints:d,class:"swiper card-carousel__swiper",onSlideChange:r,onSwiper:p},{default:e.withCtx(()=>{var R;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((R=n.modelValue)==null?void 0:R.data,(j,k)=>(e.openBlock(),e.createBlock(e.unref(ml.SwiperSlide),{key:j.id,class:"swiper-slide",onClick:z=>f(k)},{default:e.withCtx(()=>[e.createElementVNode("div",o0,[e.createElementVNode("div",n0,[e.createElementVNode("div",a0,[e.createElementVNode("div",i0,[e.createElementVNode("img",{src:j.imgSrc,alt:j.alt},null,8,s0),L[6]||(L[6]=e.createElementVNode("div",{class:"profile__img__mask"},[e.createElementVNode("div",{class:"profile__img__mask__btn"}," 简介 ")],-1))])]),e.createElementVNode("div",r0,[e.createElementVNode("div",d0,e.toDisplayString(j.title),1),e.createElementVNode("h6",c0,e.toDisplayString(j.name),1)])])])]),_:2},1032,["onClick"]))),128))]}),_:1},512),e.createElementVNode("div",u0,[e.createVNode(is,{currentIndex:u.value,count:v.value,onUpdatePage:w,onSlidePrev:V,onSlideNext:h,dark:"",isLoop:!0},null,8,["currentIndex","count"])])]),_:1})):(e.openBlock(),e.createElementBlock("div",m0,[e.createElementVNode("div",A0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((D=n.modelValue)==null?void 0:D.data,R=>(e.openBlock(),e.createElementBlock("div",{class:"card-content",key:R.id,onClick:j=>T(R)},[e.createElementVNode("div",f0,[e.createElementVNode("div",v0,[e.createElementVNode("div",h0,[e.createElementVNode("img",{src:R.imgSrc,alt:R.alt},null,8,V0),L[7]||(L[7]=e.createElementVNode("div",{class:"profile__img__mask"},[e.createElementVNode("div",{class:"profile__img__mask__btn"}," 简介 ")],-1))])]),e.createElementVNode("div",g0,[e.createElementVNode("div",y0,e.toDisplayString(R.title),1),e.createElementVNode("h6",b0,e.toDisplayString(R.name),1)])])],8,p0))),128))])]))],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:y.value,"onUpdate:show":L[0]||(L[0]=R=>y.value=R),onHandleEdit:L[1]||(L[1]=R=>N.value=!0),onHandleDelete:C,onHandleCopy:b,onHandlePaste:x},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(QV,{key:0,show:N.value,"onUpdate:show":L[4]||(L[4]=R=>N.value=R),data:n.modelValue},null,8,["show","data"])),e.createVNode(ka,{show:E.value,"onUpdate:show":L[5]||(L[5]=R=>E.value=R),data:_.value},null,8,["show","data"])],64)}}}),ss=H(w0,[["__scopeId","data-v-f4e9bae8"]]),x0={class:"setting-content"},k0={class:"setting-header flex items-center"},N0={class:"setting-body"},_0={class:"setting-item"},C0={class:"btn-group"},E0={key:0,class:"drag-handle"},T0=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"profiles",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=()=>{i.data.data.push({id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-input"),p=e.resolveComponent("icon-drag-arrow"),A=e.resolveComponent("icon-delete"),v=e.resolveComponent("icon-plus"),w=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(w,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",x0,[e.createElementVNode("div",k0,[r[5]||(r[5]=e.createElementVNode("span",{class:"header-title"},"行数",-1)),e.createVNode(f,{modelValue:n.data.rows,"onUpdate:modelValue":r[0]||(r[0]=V=>n.data.rows=V),placeholder:"输入几行","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",N0,[e.createElementVNode("div",_0,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=V=>n.data.data=V),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[2]||(r[2]=V=>l.value=!0),onEnd:r[3]||(r[3]=V=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:V})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:V.id},[e.createElementVNode("div",C0,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",E0,[e.createVNode(p,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(A,{class:"btn-delete",onClick:h=>m(V.id)},null,8,["onClick"])]),e.createVNode(xa,{data:V,showLogo:!1,canAddParagraph:!0},null,8,["data"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[4]||(r[4]=V=>u())},[e.createVNode(v),r[6]||(r[6]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),S0=H(T0,[["__scopeId","data-v-f95b497b"]]),P0={class:"card-carousel__wrapper container-content"},B0={class:"row row-cols-2 row-cols-md-3 row-cols-lg-4"},L0=["onClick"],O0={class:"card-profile"},M0={class:"profile__head"},z0={class:"profile__img img-fit --show-profile"},j0=["src","alt"],$0={class:"profile__body text-center --show-profile"},D0={class:"profile__title tx-subtitle mt-3 mt-md-4"},U0={class:"profile__name tx-h6 mt-md-1"},R0={class:"mt-10 mt-md-12"},H0=e.defineComponent({name:"CardCarouselMultiRow",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=[yt.Navigation,yt.Pagination,yt.Autoplay],i={768:{slidesPerView:"auto",slidesPerGroup:1,slidesPerGroupAuto:!0,spaceBetween:16},1024:{slidesPerView:1,slidesPerGroup:1,spaceBetween:16}},s=e.ref(0),d=e.ref([]),u=e.ref(null),m=E=>{u.value=E},c=E=>{s.value=E.realIndex},r=e.computed(()=>{var E;return((E=l.modelValue)==null?void 0:E.row)??2}),f=e.computed(()=>{const E=window.innerWidth;return(E>=768&&E>=1024?4:3)*r.value}),p=()=>{var _,T,S;console.log("listChuncked",(_=l.modelValue)==null?void 0:_.data);const E=(S=(T=l.modelValue)==null?void 0:T.data)==null?void 0:S.reduce((L,O,M)=>{const $=Math.floor(M/f.value);return L[$]||(L[$]=[]),L[$].push(O),L},[]);console.log("listChunck",E),d.value=E},A=e.ref(null),v=E=>{u.value&&u.value.slideToLoop(E,600)},w=()=>{var _;if(l.modelValue&&l.modelValue.data)return;const E={id:((_=l.modelValue)==null?void 0:_.id)||B(),type:"CardCarouselMultiRow",rows:2,data:[{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]}]};o("update:modelValue",E)},V=e.ref(!1),h=e.ref(!1),g=()=>{o("handleDelete",l.modelValue.id)},y=()=>{o("handleCopy",l.modelValue)},N=E=>{o("handlePaste",E)},C=e.ref(!1),b=e.ref({}),x=E=>{b.value=E,C.value=!0};return w(),e.nextTick(()=>{p()}),(E,_)=>{var S,L;const T=e.resolveComponent("client-only");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"card-carousel-multi-row",ref:"parent",onMouseenter:_[2]||(_[2]=O=>V.value=!0),onMouseleave:_[3]||(_[3]=O=>V.value=!1)},[e.createElementVNode("div",P0,[(L=(S=n.modelValue)==null?void 0:S.data)!=null&&L.length?(e.openBlock(),e.createBlock(T,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(ml.Swiper),{ref_key:"swiperRef",ref:A,modules:a,"centered-slides":!1,speed:600,"slides-per-view":1,"slides-per-group":1,"space-between":16,loop:!0,breakpoints:i,class:"swiper card-carousel__swiper",onSwiper:m,onSlideChange:c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(O,M)=>(e.openBlock(),e.createBlock(e.unref(ml.SwiperSlide),{key:M,class:"swiper-slide"},{default:e.withCtx(()=>[e.createElementVNode("div",B0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O,($,D)=>(e.openBlock(),e.createElementBlock("div",{class:"slide-content col",key:"item-"+D,onClick:R=>x($)},[e.createElementVNode("div",O0,[e.createElementVNode("div",M0,[e.createElementVNode("div",z0,[e.createElementVNode("img",{src:$.imgSrc,alt:$.alt},null,8,j0),_[6]||(_[6]=e.createElementVNode("div",{class:"profile__img__mask"},[e.createElementVNode("div",{class:"profile__img__mask__btn"},"简介")],-1))])]),e.createElementVNode("div",$0,[e.createElementVNode("div",D0,e.toDisplayString($.title),1),e.createElementVNode("h6",U0,e.toDisplayString($.name),1)])])],8,L0))),128))])]),_:2},1024))),128))]),_:1},512),e.createElementVNode("div",R0,[e.createVNode(is,{currentIndex:s.value,count:d.value.length,onUpdatePage:v,dark:""},null,8,["currentIndex","count"])])]),_:1})):e.createCommentVNode("",!0)]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:V.value,"onUpdate:show":_[0]||(_[0]=O=>V.value=O),onHandleEdit:_[1]||(_[1]=O=>h.value=!0),onHandleDelete:g,onHandleCopy:y,onHandlePaste:N},null,8,["show"]))],544),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(S0,{key:0,show:h.value,"onUpdate:show":_[4]||(_[4]=O=>h.value=O),data:n.modelValue},null,8,["show","data"])),e.createVNode(ka,{show:C.value,"onUpdate:show":_[5]||(_[5]=O=>C.value=O),data:b.value},null,8,["show","data"])],64)}}}),rs=H(H0,[["__scopeId","data-v-9a368a4a"]]),W0={class:"setting-content"},I0=["src"],X0={class:"item-uplaod flex items-center"},q0=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(d,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>{var u,m;return[e.createElementVNode("div",W0,[i[5]||(i[5]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=c=>n.data.data.title=c),name:"BannerQuote_editor_title"},null,8,["modelValue"]),i[6]||(i[6]=e.createElementVNode("p",{class:"item-title"},"标签",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.label,"onUpdate:modelValue":i[1]||(i[1]=c=>n.data.data.label=c),name:"BannerQuote_editor_label"},null,8,["modelValue"]),i[7]||(i[7]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:(m=(u=n.data)==null?void 0:u.data)==null?void 0:m.imgSrc},null,8,I0),e.createElementVNode("div",X0,[e.createVNode(s,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[2]||(i[2]=c=>n.data.data.imgSrc=c),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[3]||(i[3]=c=>n.data.data.imgSrc=c),name:"BannerQuote","button-class":"fit-content"},null,8,["modelValue"])]),e.createVNode(s,{class:"mt-2",modelValue:n.data.data.alt,"onUpdate:modelValue":i[4]||(i[4]=c=>n.data.data.alt=c),placeholder:"图片alt","allow-clear":""},null,8,["modelValue"])])]}),_:1},8,["visible"])}}}),F0=H(q0,[["__scopeId","data-v-a526561e"]]),Y0={class:"banner-quote__wrapper container-content-max"},Z0={class:"banner-quote__left"},G0=["innerHTML"],J0=["innerHTML"],K0={class:"banner-quote__right"},Q0={class:"banner-quote__right__image"},eg=["src","alt"],tg=e.defineComponent({name:"BannerQuote",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"BannerQuote",data:{title:"<p>About YWIES</p>",label:"<p>About YWIES</p>",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:""}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v,w,V,h,g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"banner-quote is-zh",onMouseenter:r[2]||(r[2]=y=>i.value=!0),onMouseleave:r[3]||(r[3]=y=>i.value=!1)},[e.createElementVNode("div",Y0,[e.createElementVNode("div",Z0,[r[5]||(r[5]=e.createElementVNode("div",{class:"quote quote-1"},null,-1)),r[6]||(r[6]=e.createElementVNode("div",{class:"quote quote-2"},null,-1)),e.createElementVNode("div",{class:"banner-quote__title",innerHTML:(p=(f=n.modelValue)==null?void 0:f.data)==null?void 0:p.title},null,8,G0),e.createElementVNode("div",{class:"banner-quote__label",innerHTML:(v=(A=n.modelValue)==null?void 0:A.data)==null?void 0:v.label},null,8,J0)]),r[7]||(r[7]=e.createElementVNode("div",{class:"banner-quote__center"},null,-1)),e.createElementVNode("div",K0,[e.createElementVNode("div",Q0,[e.createElementVNode("img",{src:(V=(w=n.modelValue)==null?void 0:w.data)==null?void 0:V.imgSrc,alt:(g=(h=n.modelValue)==null?void 0:h.data)==null?void 0:g.alt},null,8,eg)])])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=y=>i.value=y),onHandleEdit:r[1]||(r[1]=y=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F0,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=y=>s.value=y),data:n.modelValue},null,8,["show","data"]))],64)}}}),ds=H(tg,[["__scopeId","data-v-c027196c"]]),lg={class:"setting-content"},og={class:"setting-header flex items-center"},ng={class:"setting-header flex items-center"},ag={class:"setting-body"},ig={class:"btn-group"},sg={key:0,class:"drag-handle"},rg={class:"item-action flex items-center"},dg=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),a=m=>m&&m.length>1,i=t,s=()=>{i("update:show",!1)},d=m=>{m.push({id:B(),text:"查看更多",url:void 0,isExternal:!1})},u=(m,c)=>{m.splice(m.findIndex(r=>r.id===c),1)};return(m,c)=>{const r=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("a-input"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("a-link"),V=e.resolveComponent("a-checkbox"),h=e.resolveComponent("icon-plus"),g=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(g,{width:500,visible:n.show,footer:!1,onCancel:s,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",lg,[e.createElementVNode("div",og,[c[12]||(c[12]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(f,{modelValue:n.data.width,"onUpdate:modelValue":c[0]||(c[0]=y=>n.data.width=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(r,{value:"default"},{default:e.withCtx(()=>[...c[8]||(c[8]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(r,{value:"small"},{default:e.withCtx(()=>[...c[9]||(c[9]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(r,{value:"middle"},{default:e.withCtx(()=>[...c[10]||(c[10]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(r,{value:"max"},{default:e.withCtx(()=>[...c[11]||(c[11]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",ng,[c[15]||(c[15]=e.createElementVNode("span",{class:"header-title"},"组件类型",-1)),e.createVNode(f,{modelValue:n.data.textType,"onUpdate:modelValue":c[1]||(c[1]=y=>n.data.textType=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(r,{value:"default"},{default:e.withCtx(()=>[...c[13]||(c[13]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(r,{value:"center"},{default:e.withCtx(()=>[...c[14]||(c[14]=[e.createTextVNode("居中",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",ag,[c[18]||(c[18]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(p,{modelValue:n.data.data.title,"onUpdate:modelValue":c[2]||(c[2]=y=>n.data.data.title=y),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),c[19]||(c[19]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.description,"onUpdate:modelValue":c[3]||(c[3]=y=>n.data.data.description=y),name:`ArticleItem_editor_${n.data.id}`},null,8,["modelValue","name"]),c[20]||(c[20]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data.linkList,"onUpdate:modelValue":c[4]||(c[4]=y=>n.data.data.linkList=y),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data.linkList),onStart:c[5]||(c[5]=y=>l.value=!0),onEnd:c[6]||(c[6]=y=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data.linkList)}]),key:y.id},[e.createElementVNode("div",ig,[a(n.data.data.linkList)?(e.openBlock(),e.createElementBlock("div",sg,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:N=>u(n.data.data.linkList,y.id)},null,8,["onClick"])]),e.createVNode(w,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.text),1)]),_:2},1024),e.createElementVNode("div",rg,[e.createVNode(p,{class:"action-text",modelValue:y.text,"onUpdate:modelValue":N=>y.text=N,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(p,{modelValue:y.url,"onUpdate:modelValue":N=>y.url=N,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(V,{"model-value":y.isExternal},{default:e.withCtx(()=>[...c[16]||(c[16]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:c[7]||(c[7]=y=>d(n.data.data.linkList))},[e.createVNode(h),c[17]||(c[17]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))])])])]),_:1},8,["visible"])}}}),cg=H(dg,[["__scopeId","data-v-e992b7b2"]]),ug=["innerHTML"],mg={class:"circle-link"},Ag=["href"],pg=["onClick"],fg=e.defineComponent({name:"ArticleItem",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var f;if(l.modelValue&&l.modelValue.data)return;const r={id:((f=l.modelValue)==null?void 0:f.id)||B(),type:"ArticleItem",width:"",textType:"default",data:{title:"About YWIES",description:"<p>家佛啊放假哦啊房间哦啊激发对哦金佛登记佛啊激发哦飞机奥啊金佛登记佛啊激发哦飞机奥</p>",linkList:[{id:B(),type:"link",text:"link",url:"https://www.baidu.com",isExternal:!1}]}};o("update:modelValue",r)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=r=>{o("handlePaste",r)},c=r=>{o("handleClick",r)};return a(),(r,f)=>{var p,A,v,w,V,h,g,y,N,C,b;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"article-item",onMouseenter:f[2]||(f[2]=x=>i.value=!0),onMouseleave:f[3]||(f[3]=x=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["article-item__container",[(p=n.modelValue)!=null&&p.width?`container-content-${(A=n.modelValue)==null?void 0:A.width}`:"container-content"]])},[e.createElementVNode("h2",{class:e.normalizeClass(["article-item__title",[((v=n.modelValue)==null?void 0:v.textType)==="center"?"text-center":""]])},e.toDisplayString((V=(w=n.modelValue)==null?void 0:w.data)==null?void 0:V.title),3),e.createElementVNode("div",{class:e.normalizeClass(["article-item__content mt-4",[((h=n.modelValue)==null?void 0:h.textType)==="center"?"text-center":""]]),innerHTML:(y=(g=n.modelValue)==null?void 0:g.data)==null?void 0:y.description},null,10,ug),e.createElementVNode("div",{class:e.normalizeClass(["article-item__link mt-4",[((N=n.modelValue)==null?void 0:N.textType)==="center"?"flex-center":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((b=(C=n.modelValue)==null?void 0:C.data)==null?void 0:b.linkList,x=>(e.openBlock(),e.createElementBlock("div",{class:"article-item__link__col",key:x.id},[e.createElementVNode("div",mg,[x.url&&x.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:x.url,class:"nuxt-link-active"},[e.createElementVNode("div",null,e.toDisplayString(x.text),1),f[5]||(f[5]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,Ag)):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:E=>c(x.url),class:"nuxt-link-active"},[e.createElementVNode("div",null,e.toDisplayString(x.text),1),f[6]||(f[6]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,pg))])]))),128))],2)],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":f[0]||(f[0]=x=>i.value=x),onHandleEdit:f[1]||(f[1]=x=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(cg,{key:0,show:s.value,"onUpdate:show":f[4]||(f[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),cs=H(fg,[["__scopeId","data-v-35f55218"]]),vg={class:"setting-content"},hg={class:"setting-body"},Vg=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(s,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",vg,[e.createElementVNode("div",hg,[i[3]||(i[3]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=d=>n.data.data.title=d),name:"RibbonBlock_editor_title"},null,8,["modelValue"]),i[4]||(i[4]=e.createElementVNode("p",{class:"item-title"},"副标题",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.subTitle,"onUpdate:modelValue":i[1]||(i[1]=d=>n.data.data.subTitle=d),name:"RibbonBlock_editor_subTitle"},null,8,["modelValue"]),i[5]||(i[5]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.description,"onUpdate:modelValue":i[2]||(i[2]=d=>n.data.data.description=d),name:"RibbonBlock_editor_description"},null,8,["modelValue"])])])]),_:1},8,["visible"])}}}),gg=H(Vg,[["__scopeId","data-v-73288883"]]),yg={key:0,class:"ribbon-block__bg"},bg=["innerHTML"],wg=["innerHTML"],xg=["innerHTML"],kg=e.defineComponent({name:"RibbonBlock",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"RibbonBlock",data:{title:"<p>家乐福放假啊飞机阿飞</p>",subTitle:"<p>飞机阿飞垃圾<strong>费垃圾费啦</strong></p>",description:"<p>发了疯<strong>哈符号佛啊复印件发就</strong>发拉法基垃<em>圾发啦激发发货单</em>号佛佛啊发货哦地哦ID和放大后f爱</p>"}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v,w,V,h,g,y,N,C,b,x,E,_,T,S,L;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"ribbon-block",onMouseenter:r[2]||(r[2]=O=>i.value=!0),onMouseleave:r[3]||(r[3]=O=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["ribbon-block__wrapper",[(p=(f=n.modelValue)==null?void 0:f.data)!=null&&p.title||(v=(A=n.modelValue)==null?void 0:A.data)!=null&&v.subTitle||(V=(w=n.modelValue)==null?void 0:w.data)!=null&&V.description?"has-text":""]])},[(g=(h=n.modelValue)==null?void 0:h.data)!=null&&g.title||(N=(y=n.modelValue)==null?void 0:y.data)!=null&&N.subTitle||(b=(C=n.modelValue)==null?void 0:C.data)!=null&&b.description?(e.openBlock(),e.createElementBlock("div",yg,[e.createElementVNode("div",{class:"ribbon-block__title",innerHTML:(E=(x=n.modelValue)==null?void 0:x.data)==null?void 0:E.title},null,8,bg),e.createElementVNode("div",{class:"ribbon-block__text",innerHTML:(T=(_=n.modelValue)==null?void 0:_.data)==null?void 0:T.subTitle},null,8,wg),e.createElementVNode("div",{class:"ribbon-block__description",innerHTML:(L=(S=n.modelValue)==null?void 0:S.data)==null?void 0:L.description},null,8,xg),r[5]||(r[5]=e.createElementVNode("div",{class:"ribbon-block__space"},null,-1))])):e.createCommentVNode("",!0),r[6]||(r[6]=e.createElementVNode("div",{class:"ribbon-block__img"},null,-1))],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=O=>i.value=O),onHandleEdit:r[1]||(r[1]=O=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(gg,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=O=>s.value=O),data:n.modelValue},null,8,["show","data"]))],64)}}}),us=H(kg,[["__scopeId","data-v-6a95b6b8"]]),Ng=["id"],_g={key:0,class:"caption__display"},Cg=["data-bs-target","aria-controls"],Eg={key:0,class:"gallery__thumbnail"},Tg=["onClick"],Sg=["src"],Pg=e.defineComponent({name:"TimelineStoryGallery",__name:"TimelineStoryGallery",props:{gallery:{}},emits:["openCaption"],setup(n,{emit:t}){const l=t,o=e.ref(0),a=e.ref(0),i=e.ref(0),s=e.ref(0),d=e.ref(!1),u=e.ref(Date.now()),m=e.ref(null),c=e.ref(null),r=e.computed(()=>a.value>0),f=e.computed(()=>i.value-a.value>s.value);e.watch(o,()=>{d.value=!1});const p=()=>{const V=c.value;V&&(a.value=V.scrollLeft,i.value=V.scrollWidth);const h=m.value;h&&(s.value=h.getBoundingClientRect().width)},A=V=>{const h=c.value;h&&(V==="next"?h.scrollLeft+=9999:h.scrollLeft-=9999)},v=()=>{p()},w=V=>{l("openCaption",{text:V.text||"",image:V.url})};return e.onMounted(()=>{e.nextTick(()=>{setTimeout(v,300)})}),(V,h)=>{const g=e.resolveComponent("a-image");return e.openBlock(),e.createElementBlock("div",{class:"timeline-story-gallery",ref_key:"wrapper",ref:m},[e.createElementVNode("div",{class:e.normalizeClass(["gallery__large",{"gallery__large--mask":d.value}])},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>{var y,N;return[e.createVNode(g,{src:(N=(y=n.gallery)==null?void 0:y[o.value])==null?void 0:N.imgSrc,preview:!0,fit:"contain",width:"100%"},null,8,["src"])]}),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>{var y,N;return[(N=(y=n.gallery)==null?void 0:y[o.value])!=null&&N.text?(e.openBlock(),e.createElementBlock("div",{class:"gallery__large__caption",key:o.value},[e.createElementVNode("div",{class:"caption__collapse collapse",id:`collapse-${u.value}`},e.toDisplayString(n.gallery[o.value].text),9,Ng),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_g,e.toDisplayString(n.gallery[o.value].text),1)),e.createElementVNode("button",{class:"caption__btn caption__btn--desktop",type:"button","data-bs-toggle":"collapse","data-bs-target":`#collapse-${u.value}`,"aria-expanded":"false","aria-controls":`collapse-${u.value}`,onClick:h[0]||(h[0]=C=>d.value=!d.value)},null,8,Cg),e.createElementVNode("button",{class:"caption__btn d-md-none",type:"button",onClick:h[1]||(h[1]=C=>w(n.gallery[o.value]))})])):e.createCommentVNode("",!0)]}),_:1})],2),n.gallery&&n.gallery.length>1?(e.openBlock(),e.createElementBlock("div",Eg,[e.createElementVNode("ul",{class:"thumbnail__list",ref_key:"list",ref:c,onScroll:v},[e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:h[2]||(h[2]=y=>A("prev"))},null,512),[[e.vShow,r.value]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.gallery,(y,N)=>(e.openBlock(),e.createElementBlock("li",{class:"thumbnail__item",key:y.id,onClick:C=>o.value=N},[e.createElementVNode("img",{src:y.imgSrc},null,8,Sg)],8,Tg))),128)),e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__next",onClick:h[3]||(h[3]=y=>A("next"))},null,512),[[e.vShow,f.value]])],544)])):e.createCommentVNode("",!0)],512)}}}),Bg=H(Pg,[["__scopeId","data-v-d53bc212"]]),Lg=["onClick"],Og=e.defineComponent({name:"TimelineStoryStickybar",__name:"TimelineStoryStickybar",props:{list:{},currentIdx:{}},emits:["updateCurrentIdx"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(0),i=e.ref(0),s=e.ref(0),d=e.ref(0),u=e.ref(!1),m=e.ref(window.innerWidth),c=e.ref(null),r=e.ref(null),f=e.computed(()=>a.value>40),p=e.computed(()=>i.value-40>m.value);e.watch(()=>m.value,()=>{v(),w()}),e.watch(()=>l.currentIdx,()=>{e.nextTick(N)});const A=()=>{m.value=window.innerWidth},v=()=>{u.value=!0,y(),h()},w=()=>{const C=r.value;C&&(d.value=(m.value-C.getBoundingClientRect().width)/2)},V=C=>{o("updateCurrentIdx",C)},h=()=>{const C=r.value;C&&(a.value=C.scrollLeft);const b=C==null?void 0:C.querySelectorAll(".stickybar__btn");if(b&&b.length>0){const x=b[b.length-1];i.value=x.getBoundingClientRect().right}},g=C=>{const b=r.value;b&&(C==="next"?b.scrollLeft+=100:b.scrollLeft-=100)},y=()=>{var x;const C=(x=r.value)==null?void 0:x.querySelectorAll(".stickybar__btn");if(!C)return;const b=C[Number(l.currentIdx)];b&&(s.value=b.getBoundingClientRect().right)},N=()=>{var _;const C=(_=r.value)==null?void 0:_.querySelectorAll(".stickybar__btn");if(!C)return;const b=C[Number(l.currentIdx)];if(!b)return;const x=b.clientWidth/2,E=m.value/2;u.value=!1,e.nextTick(()=>{const T=r.value;T&&(T.scrollLeft-=E-b.getBoundingClientRect().right+x,setTimeout(v,100))})};return e.onMounted(()=>{window.addEventListener("resize",A),A(),e.nextTick(()=>{setTimeout(v,300),w()})}),(C,b)=>(e.openBlock(),e.createElementBlock("div",{class:"timeline-story-stickybar",ref_key:"wrapper",ref:c},[e.createElementVNode("ul",{class:"stickybar__list",ref_key:"listRef",ref:r,onScroll:v},[e.withDirectives(e.createElementVNode("div",{class:"stickybar__nav__prev",onClick:b[0]||(b[0]=x=>g("prev"))},null,512),[[e.vShow,f.value]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,(x,E)=>(e.openBlock(),e.createElementBlock("li",{key:x.id,class:e.normalizeClass(["stickybar__item",[{"is-active":n.currentIdx>=Number(E)}]])},[e.createElementVNode("div",{class:e.normalizeClass(["stickybar__btn",[{"is-active":n.currentIdx==Number(E)}]]),onClick:_=>V(Number(E))},e.toDisplayString(x.title),11,Lg),e.createElementVNode("span",{class:e.normalizeClass(["stickybar__btn__line",[{"is-active":n.currentIdx>Number(E)}]])},null,2)],2))),128)),e.withDirectives(e.createElementVNode("div",{class:"stickybar__nav__next",onClick:b[1]||(b[1]=x=>g("next"))},null,512),[[e.vShow,p.value]])],544),e.createElementVNode("div",{class:"stickybar__line",style:e.normalizeStyle({width:`${s.value-12}px`,transition:u.value?"width .25s linear":""})},null,4)],512))}}),Mg=H(Og,[["__scopeId","data-v-b22d359b"]]),zg={class:"timeline-story-caption"},jg={class:"caption__content"},$g={class:"caption__body"},Dg={class:"caption__text"},Ug={class:"caption__img"},Rg=["src"],Hg=e.defineComponent({name:"TimelineStoryCaption",__name:"TimelineStoryCaption",props:{text:{},image:{}},emits:["closeCaption"],setup(n,{emit:t}){const l=t,o=()=>{l("closeCaption")};return(a,i)=>(e.openBlock(),e.createElementBlock("div",zg,[e.createElementVNode("div",jg,[e.createElementVNode("div",{class:"caption__header"},[e.createElementVNode("button",{type:"button",class:"caption__header__btn",onClick:o})]),e.createElementVNode("div",$g,[e.createElementVNode("div",Dg,e.toDisplayString(n.text),1),e.createElementVNode("div",Ug,[e.createElementVNode("img",{src:n.image,alt:""},null,8,Rg)])])])]))}}),Wg=H(Hg,[["__scopeId","data-v-178eed82"]]),Ig=["onClick"],Xg=e.defineComponent({name:"TimelineStoryScrollspy",__name:"TimelineStoryScrollspy",props:{list:{},activeIdx:{}},emits:["scrollToIdx"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(0),i=e.ref(0),s=e.ref(0),d=e.ref(null),u=e.computed(()=>a.value>0),m=e.computed(()=>i.value-a.value>s.value);e.watch(()=>l.activeIdx,()=>{r()});const c=A=>{o("scrollToIdx",A)},r=()=>{const A=d.value;if(!A)return;const w=A.querySelectorAll(".timeline-story-scrollspy__item")[l.activeIdx];if(!w)return;const V=w.getBoundingClientRect().top,h=A.getBoundingClientRect().top,g=A.clientHeight/2;A.scrollTop-=g-V+h},f=()=>{const A=d.value;A&&(a.value=A.scrollTop,i.value=A.scrollHeight,s.value=A.clientHeight)},p=A=>{const v=d.value;v&&(A==="next"?v.scrollTop+=9999:v.scrollTop-=9999)};return(A,v)=>(e.openBlock(),e.createElementBlock("div",{class:"timeline-story-scrollspy",ref_key:"parent",ref:d,onScroll:f},[e.withDirectives(e.createElementVNode("div",{class:"scrollspy__nav__prev",onClick:v[0]||(v[0]=w=>p("prev"))},null,512),[[e.vShow,u.value]]),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,(w,V)=>(e.openBlock(),e.createElementBlock("li",{key:w.id,class:e.normalizeClass(["timeline-story-scrollspy__item",{"is-active":n.activeIdx==V}]),onClick:h=>c(V)},e.toDisplayString(w.title),11,Ig))),128))]),e.withDirectives(e.createElementVNode("div",{class:"scrollspy__nav__next",onClick:v[1]||(v[1]=w=>p("next"))},null,512),[[e.vShow,m.value]])],544))}}),qg=H(Xg,[["__scopeId","data-v-cee1b9f5"]]),Fg={class:"setting-content"},Yg={class:"setting-body"},Zg={class:"btn-group"},Gg={key:0,class:"drag-handle"},Jg={class:"section-item gallery-item"},Kg={class:"btn-group"},Qg={key:0,class:"drag-handle"},e2=["src"],t2={class:"item-uplaod flex items-center"},l2=["onClick"],o2=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"sections",disabled:!1,ghostClass:"ghost"})),i=p=>p&&p.length>1,s=n,d=t,u=()=>{d("update:show",!1)},m=()=>{s.data.data.push({id:B(),title:"标题",desc:"",gallery:[]})},c=p=>{s.data.data=s.data.data.filter(A=>A.id!==p)},r=p=>{p.push({id:B(),imgSrc:""})},f=(p,A)=>{p.splice(p.findIndex(v=>v.id===A),1)};return(p,A)=>{const v=e.resolveComponent("icon-drag-arrow"),w=e.resolveComponent("icon-delete"),V=e.resolveComponent("a-input"),h=e.resolveComponent("icon-plus"),g=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(g,{width:500,visible:n.show,footer:!1,onCancel:u,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Fg,[e.createElementVNode("div",Yg,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":A[2]||(A[2]=y=>n.data.data=y),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!i(n.data.data),onStart:A[3]||(A[3]=y=>l.value=!0),onEnd:A[4]||(A[4]=y=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-section draggable-item",{"sortable-disabled":!i(n.data.data)}]),key:y.id},[e.createElementVNode("div",Zg,[i(n.data.data)?(e.openBlock(),e.createElementBlock("div",Gg,[e.createVNode(v,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(w,{class:"btn-delete",onClick:N=>c(y.id)},null,8,["onClick"])]),A[8]||(A[8]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(V,{modelValue:y.title,"onUpdate:modelValue":N=>y.title=N,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),A[9]||(A[9]=e.createElementVNode("p",{class:"item-title"},"描述",-1)),e.createVNode(e.unref(qe),{modelValue:y.desc,"onUpdate:modelValue":N=>y.desc=N,name:`TimelineStory_editor_${y.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),A[10]||(A[10]=e.createElementVNode("p",{class:"item-title"},"gallery",-1)),e.createElementVNode("div",Jg,[e.createVNode(e.unref(de),e.mergeProps({modelValue:y.gallery,"onUpdate:modelValue":N=>y.gallery=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!i(y.gallery),onStart:A[0]||(A[0]=N=>l.value=!0),onEnd:A[1]||(A[1]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(y.gallery)}]),key:N.id},[e.createElementVNode("div",Kg,[i(y.gallery)?(e.openBlock(),e.createElementBlock("div",Qg,[e.createVNode(v,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(w,{class:"btn-delete",onClick:C=>f(y.gallery,N.id)},null,8,["onClick"])]),A[6]||(A[6]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:N.imgSrc},null,8,e2),e.createElementVNode("div",t2,[e.createVNode(V,{modelValue:N.imgSrc,"onUpdate:modelValue":C=>N.imgSrc=C,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:N.imgSrc,"onUpdate:modelValue":C=>N.imgSrc=C,name:`TimelineStory_${N.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:N=>r(y.gallery)},[e.createVNode(h),A[7]||(A[7]=e.createElementVNode("span",{class:"btn-text"},"添加gallery",-1))],8,l2)])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:A[5]||(A[5]=y=>m())},[e.createVNode(h),A[11]||(A[11]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])]),_:1},8,["visible"])}}}),n2=H(o2,[["__scopeId","data-v-27c73fc0"]]),a2=["id"],i2={class:"story__content container-content"},s2={class:"stroy__left"},r2={class:"story__label__title"},d2=["innerHTML"],c2={class:"stroy__right"},u2={class:"story__scrollspy"},m2=e.defineComponent({name:"TimelineStory",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var I;if(l.modelValue&&l.modelValue.data)return;const Y={id:((I=l.modelValue)==null?void 0:I.id)||B(),type:"TimelineStory",data:[{id:B(),title:"标题",desc:"描述",gallery:[{id:B(),imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg"},{id:B(),imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/05_panoramic01_origin.jpg"}]},{id:B(),title:"标题",desc:"描述",gallery:[{id:B(),imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg"}]}]};o("update:modelValue",Y)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=Y=>{o("handlePaste",Y)};a();const c=e.ref(0),r=e.ref(0),f=e.ref(0),p=e.ref(0),A=e.ref(""),v=e.ref(""),w=e.ref(!1),V=e.ref(window.innerWidth),h=e.ref(window.scrollY),g=e.ref(!1),y=e.ref(null),N=e.ref(null),C=e.ref(null),b=e.ref(null),x=e.ref(null),E=e.ref(null),_=e.ref(null),T=e.ref([]),S=e.ref([]),L=e.computed(()=>V.value>1023.98?100:66),O=e.computed(()=>g.value);e.watch(V,()=>{fe()});const M=Y=>Y?Y.getBoundingClientRect().top+window.scrollY:0,$=Y=>{if(!Y)return{x:0,y:0};const I=Y.getBoundingClientRect();return{x:I.left+window.scrollX,y:I.top+window.scrollY}},D=Y=>{Y?document.body.style.overflow="hidden":document.body.style.overflow=""},R=()=>{window.addEventListener("scroll",z),window.addEventListener("resize",k),k()},j=()=>{window.removeEventListener("scroll",z),window.removeEventListener("resize",k)},k=()=>{V.value=window.innerWidth,h.value=window.scrollY},z=()=>{var oe;h.value=window.scrollY;const Y=h.value+L.value+64,I=M(b.value),K=I+(((oe=b.value)==null?void 0:oe.clientHeight)||0);Y<I?c.value=0:Y>K&&(c.value=999),X(),F(),ee(),be(),Me(),q()},X=()=>{var P;const Y=h.value+L.value+64,I=M(b.value),K=I+(((P=b.value)==null?void 0:P.clientHeight)||0),oe={top:I+15,bottom:K-378},se=[x.value,E.value];!x.value||!E.value||(Y<oe.top?se.forEach(U=>{U==null||U.classList.add("is-top"),U==null||U.classList.remove("is-fixed"),U==null||U.classList.remove("is-bottom")}):Y>oe.bottom?se.forEach(U=>{U==null||U.classList.add("is-bottom"),U==null||U.classList.remove("is-fixed"),U==null||U.classList.remove("is-top")}):se.forEach(U=>{U==null||U.classList.add("is-fixed"),U==null||U.classList.remove("is-top"),U==null||U.classList.remove("is-bottom")}))},F=()=>{var P;const Y=h.value+L.value+64,I=_.value,K=M(b.value),oe=K+(((P=b.value)==null?void 0:P.clientHeight)||0),se={top:K-80,bottom:oe-181};I&&(Y<se.top?(I.classList.add("is-top"),I.classList.remove("is-fixed"),I.classList.remove("is-bottom")):Y>se.bottom?(I.classList.add("is-bottom"),I.classList.remove("is-fixed"),I.classList.remove("is-top")):(I.classList.add("is-fixed"),I.classList.remove("is-top"),I.classList.remove("is-bottom")))},ee=()=>{var oe;const Y=M(b.value),I=M(_.value);r.value=((oe=b.value)==null?void 0:oe.clientHeight)||0,p.value=41/r.value;const K=I<Y?h.value+I-Y:I-Y;f.value=(K+12)/r.value},be=()=>{const Y=h.value+L.value+64,I=T.value.length;for(let K=0;K<I;K++){const oe=T.value[K],se=M(oe),P=oe.clientHeight,U=M(oe)+P,te=S.value[K],Q=te.clientHeight,ce=O.value?{top:se+31,bottom:U-Q}:{top:se-10,bottom:U-Q-30};if(P<Q){te.classList.add("is-top"),te.classList.remove("is-fixed"),te.classList.remove("is-bottom");continue}Y<ce.top?(te.classList.add("is-top"),te.classList.remove("is-fixed"),te.classList.remove("is-bottom")):Y>ce.bottom?(te.classList.add("is-bottom"),te.classList.remove("is-fixed"),te.classList.remove("is-top")):(te.classList.add("is-fixed"),te.classList.remove("is-top"),te.classList.remove("is-bottom"))}},Me=()=>{const Y=h.value+L.value+64,I=T.value.length;for(let K=0;K<I;K++){const oe=T.value[K],se=M(oe),P=M(oe)+oe.clientHeight,te=S.value[K].clientHeight,Q={top:se-300,bottom:P-te};Y>Q.top&&Y<Q.bottom&&(c.value=K)}},W=Y=>{const I=V.value<768?120:150,K=$(T.value[Y]).y-I;window.scroll({top:K,left:0,behavior:"smooth"})},q=()=>{const Y=y.value;if(!Y)return;const I=Y.getBoundingClientRect().top,K=Y.getBoundingClientRect().bottom,oe=+window.getComputedStyle(document.body).getPropertyValue("--header-height-calc").split("px")[0],se=C.value;se&&(I-80>oe||K<oe?(se.classList.remove("is-fixed"),se.classList.add("d-none")):(se.classList.add("is-fixed"),se.classList.remove("d-none")))},J=Y=>{A.value=Y.text,v.value=Y.image,D(!0),w.value=!0},fe=()=>{D(!1),w.value=!1},ve=()=>{const I=T.value.length;for(let K=0;K<I;K++){const oe=T.value[K],se=oe.clientHeight,U=S.value[K].clientHeight,te=oe.children[0];se<U&&(te.style.minHeight=`${U}px`)}};return e.onMounted(()=>{T.value=[],S.value=[],e.nextTick(()=>{R(),z(),ve()})}),e.onBeforeUnmount(()=>{j()}),(Y,I)=>{var K,oe,se;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"timeline-story",ref_key:"wrapper",ref:y,onMouseenter:I[2]||(I[2]=P=>i.value=!0),onMouseleave:I[3]||(I[3]=P=>i.value=!1)},[e.createElementVNode("div",{class:"story__sticky-bar d-md-none",ref_key:"tab",ref:N},[e.createElementVNode("div",{class:"story__sticky-bar__content",ref_key:"stickybar",ref:C},[e.createVNode(Mg,{list:(K=n.modelValue)==null?void 0:K.data,currentIdx:c.value,onUpdateCurrentIdx:W},null,8,["list","currentIdx"])],512)],512),e.createElementVNode("ul",{class:"story__list",ref_key:"listRef",ref:b},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((oe=n.modelValue)==null?void 0:oe.data,(P,U)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["story__item",{"is-active":c.value==U}]),key:P.id,ref_for:!0,ref:te=>{te&&T.value.push(te)},id:`${P.id}`},[e.createElementVNode("div",i2,[e.createElementVNode("div",s2,[e.createElementVNode("div",{class:"story__label",ref_for:!0,ref:te=>{te&&S.value.push(te)}},[e.createElementVNode("div",r2,e.toDisplayString(P.title),1),e.createElementVNode("div",{class:"story__label__desc",innerHTML:P.desc},null,8,d2)],512)]),e.createElementVNode("div",c2,[e.createElementVNode("div",{class:e.normalizeClass(["story__gallery",{"is-active":c.value==U}])},[e.createVNode(Bg,{gallery:P.gallery,onOpenCaption:J},null,8,["gallery"])],2)])])],10,a2))),128)),e.createElementVNode("div",{class:"story__mask",ref_key:"bg",ref:x},null,512),e.createElementVNode("div",{class:"story__line",style:e.normalizeStyle([{"--height":`${r.value}px`},{"--bottom":`${f.value*100}%`},{"--space":`${p.value*100}%`}])},null,4),e.createElementVNode("div",{class:"story__dot",ref_key:"dot",ref:_},null,512),e.createElementVNode("div",{class:"story__mask story__mask--front",ref_key:"bg2",ref:E},[e.createElementVNode("div",u2,[e.createVNode(qg,{list:(se=n.modelValue)==null?void 0:se.data,activeIdx:c.value,onScrollToIdx:W},null,8,["list","activeIdx"])])],512)],512),e.createVNode(e.Transition,{name:"fade-right"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(Wg,{text:A.value,image:v.value,onCloseCaption:fe},null,8,["text","image"]),[[e.vShow,w.value]])]),_:1}),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":I[0]||(I[0]=P=>i.value=P),onHandleEdit:I[1]||(I[1]=P=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],544),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(n2,{key:0,show:s.value,"onUpdate:show":I[4]||(I[4]=P=>s.value=P),data:n.modelValue},null,8,["show","data"]))],64)}}}),ms=H(m2,[["__scopeId","data-v-c0e084af"]]),As=dc.create({baseURL:"https://cms-test.cedim.cn/api/",timeout:3e4,headers:{"Content-Type":"application/json;charset=utf-8"}});As.interceptors.request.use(n=>(console.log("Request:",n),n),n=>(console.error("Request Error:",n),Promise.reject(n)));As.interceptors.response.use(n=>{console.log("Response:",n);const{data:t}=n;return n.status===200&&t?n:(console.error("Business Error:",t.message),Promise.reject(new Error(t.message||"请求失败")))},n=>{console.error("Response Error:",n);let t="网络错误";if(n.response){const{status:l,data:o}=n.response;switch(l){case 401:t="未授权,请重新登录";break;case 403:t="拒绝访问";break;case 404:t="请求地址出错";break;case 500:t="服务器内部错误";break;default:t=(o==null?void 0:o.message)||`连接错误${l}`}}else n.request?t="网络连接异常":t=n.message||"请求失败";return console.error("HTTP Error:",t),Promise.reject(n)});const A2=As,p2={class:"list-sort"},f2=["onClick"],v2=e.defineComponent({name:"ListSort",__name:"ListSort",props:{list:{},focusKey:{},year:{type:Boolean}},emits:["updateKey"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(!1),i=e.computed(()=>{var m,c,r;return l.year?l.focusKey??((m=l.list)==null?void 0:m[0]):l.focusKey??((r=(c=l.list)==null?void 0:c[0])==null?void 0:r.key)}),s=e.computed(()=>{var c,r,f,p,A;if(l.year){const v=(c=l.list)==null?void 0:c.find(w=>w==i.value);return v||((r=l.list)==null?void 0:r[0])}const m=(f=l.list)==null?void 0:f.find(v=>v.key==i.value);return m?m.name:(A=(p=l.list)==null?void 0:p[0])==null?void 0:A.name});e.watch(()=>l.focusKey,()=>{u()});const d=m=>{o("updateKey",m),a.value=!1},u=()=>{a.value=!1};return(m,c)=>(e.openBlock(),e.createElementBlock("div",p2,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["list-sort__btn",{"is-active":a.value}]),onClick:c[0]||(c[0]=r=>a.value=!a.value)},e.toDisplayString(s.value),3),e.createElementVNode("ul",{class:e.normalizeClass(["list-sort__list",{"is-active":a.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,r=>(e.openBlock(),e.createElementBlock("li",{key:r.key||r},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["list-sort__option",{"is-active":i.value==(r.key||r)}]),onClick:f=>d(r.key||r)},e.toDisplayString(r.name||r),11,f2)]))),128))],2)]))}}),Ar=H(v2,[["__scopeId","data-v-2445a011"]]),h2={class:"list-filter"},V2=["data-count"],g2=["id","value"],y2=["for"],b2=e.defineComponent({name:"ListFilter",__name:"ListFilter",props:{list:{},focusKey:{},placeholder:{}},emits:["updateKey"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(!1),i=e.ref(Date.now()),s=e.computed({get(){return l.focusKey??[]},set(u){o("updateKey",u)}});e.watch(()=>l.focusKey,()=>{d()});const d=()=>{a.value=!1};return(u,m)=>(e.openBlock(),e.createElementBlock("div",h2,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["list-filter__btn",{"is-active":a.value}]),onClick:m[0]||(m[0]=c=>a.value=!a.value)},[e.createElementVNode("div",{class:e.normalizeClass(["btn__text",{"show-circle":s.value.length>0}]),"data-count":s.value.length}," 筛选 ",10,V2),m[2]||(m[2]=e.createElementVNode("div",{class:"btn__expand"},null,-1))],2),e.createElementVNode("ul",{class:e.normalizeClass(["list-filter__list",{"is-active":a.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,(c,r)=>(e.openBlock(),e.createElementBlock("li",{key:c.key},[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"d-none",id:`${c.key}-${i.value}`,value:c.key,"onUpdate:modelValue":m[1]||(m[1]=f=>s.value=f)},null,8,g2),[[e.vModelCheckbox,s.value]]),e.createElementVNode("label",{for:`${c.key}-${i.value}`,class:e.normalizeClass(["list-filter__option",{"is-active":s.value.includes(c.key)}])},e.toDisplayString(c.name),11,y2)]))),128))],2)]))}}),w2=H(b2,[["__scopeId","data-v-abbe0b75"]]),x2={class:"tab-blue"},k2={class:"tab-blue__wrapper flex-center"},N2=["onClick"],_2={key:0,class:"tab-blue__filter__sort"},C2={key:1,class:"tab-blue__filter__filter"},E2={key:0,class:"tab-blue__filter__filter"},T2=e.defineComponent({name:"TabBlue",__name:"TabBlue",props:{componentProps:{},currentIdx:{},keySort:{},keyFilter:{},yearList:{},keyYear:{},articleTabList:{}},emits:["updateIdx","updateSort","updateFilter","updateYear"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(null),i=e.ref(null),s=e.ref([]),d=e.ref([]),u=e.ref(0),m=e.ref(0),c=e.ref(0),r=e.ref(0),f=e.ref(0),p=e.ref(!0),A=e.ref(300),v=e.ref(0),w=e.computed(()=>{var z;return Array.isArray(l.articleTabList)?l.articleTabList:((z=l.componentProps)==null?void 0:z.list)??null}),V=e.computed(()=>{var z;return((z=l.componentProps)==null?void 0:z.sort)??null}),h=e.computed(()=>{var z;return((z=l.componentProps)==null?void 0:z.filter)??[]}),g=e.computed(()=>{const z=l.yearList??[],X="所有年份",F=[...z];return F.unshift(X),l.yearList?F:[]}),y=e.computed({get(){return l.keySort},set(z){o("updateSort",z)}}),N=e.computed({get(){return l.keyFilter},set(z){o("updateFilter",z)}}),C=e.computed({get(){return l.keyYear},set(z){o("updateYear",z)}}),b=e.computed({get(){return l.currentIdx??0},set(z){o("updateIdx",z),e.nextTick(()=>k())}}),x=e.computed(()=>u.value-m.value),E=e.computed(()=>typeof window>"u"?!1:r.value-window.innerWidth>20),_=e.ref(typeof window<"u"?window.innerWidth:0);e.watch(()=>l.currentIdx,(z,X)=>{p.value=(z??0)>(X??0),e.nextTick(()=>O())}),e.watch(_,()=>{M(),O()});const T=()=>{const z=a.value;z&&(f.value=z.getBoundingClientRect().left)},S=()=>{const z=d.value[b.value];z&&(u.value=z.getBoundingClientRect().right)},L=()=>{const z=d.value[b.value];z&&(m.value=z.getBoundingClientRect().left)};setTimeout(()=>{console.log("stripLeft=======",d.value[5].getBoundingClientRect().left)},500);const O=(z=250)=>{p.value?(S(),setTimeout(L,z)):(L(),setTimeout(S,z)),j()},M=()=>{const z=i.value;z&&(c.value=z.scrollLeft),T(),e.nextTick(()=>O(50)),e.nextTick($)},$=()=>{const z=s.value;if(z&&z.length>0){const X=z[z.length-1];X&&(r.value=X.getBoundingClientRect().right)}},D=()=>{M()},R=z=>{const X=i.value;X&&(z==="next"?X.scrollLeft=c.value+100:X.scrollLeft=c.value-100)},j=()=>{const z=i.value;z&&(A.value=z.clientWidth)},k=()=>{if(typeof window>"u")return;const z=d.value[b.value];if(!z)return;const X=z.clientWidth/2,F=window.innerWidth/2;v.value=z.getBoundingClientRect().right-X;const ee=i.value;ee&&(ee.scrollLeft-=F-v.value)};return e.onMounted(()=>{if(e.nextTick(()=>{setTimeout(D,300)}),typeof window<"u"){const z=()=>{_.value=window.innerWidth};window.addEventListener("resize",z),e.onBeforeUnmount(()=>{window.removeEventListener("resize",z)})}}),(z,X)=>(e.openBlock(),e.createElementBlock("div",x2,[e.createElementVNode("div",k2,[e.createElementVNode("div",{class:"tab-blue__nav justify-content-center",ref_key:"nav",ref:a},[e.withDirectives(e.createElementVNode("div",{class:"tab-blue__nav__prev",onClick:X[0]||(X[0]=F=>R("prev"))},null,512),[[e.vShow,c.value>30]]),e.createElementVNode("ul",{class:"tab-blue__list px-4",ref_key:"list",ref:i,onScroll:D},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(F,ee)=>(e.openBlock(),e.createElementBlock("li",{key:F.key,class:"tab-blue__list__item",ref_for:!0,ref:be=>s.value[ee]=be},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["tab-blue__btn",{"tab-blue__btn--active":b.value==ee}]),ref_for:!0,ref:be=>d.value[ee]=be,onClick:be=>b.value=ee},e.toDisplayString(F.name),11,N2)]))),128)),e.createElementVNode("span",{class:"tab-blue__strip",style:e.normalizeStyle(`--strip-width:${x.value}px;--strip-left:${m.value}px;--list-scroll-left:${c.value}px;--fix-left:${f.value}px`)},null,4)],544),e.withDirectives(e.createElementVNode("div",{class:"tab-blue__nav__next",onClick:X[1]||(X[1]=F=>R("next"))},null,512),[[e.vShow,E.value]])],512),V.value&&h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tab-blue__filter zIndex2 mt-5 mt-md-3",style:e.normalizeStyle({"--width":`${A.value}px`})},[V.value.length>0?(e.openBlock(),e.createElementBlock("div",_2,[e.createVNode(Ar,{list:V.value,focusKey:y.value,onUpdateKey:X[2]||(X[2]=F=>y.value=F)},null,8,["list","focusKey"])])):e.createCommentVNode("",!0),h.value.length>0?(e.openBlock(),e.createElementBlock("div",C2,[e.createVNode(w2,{list:h.value,focusKey:N.value,onUpdateKey:X[3]||(X[3]=F=>N.value=F)},null,8,["list","focusKey"])])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),g.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:"tab-blue__filter mt-5 mt-md-3",style:e.normalizeStyle({"--width":`${A.value}px`})},[g.value.length>1?(e.openBlock(),e.createElementBlock("div",E2,[e.createVNode(Ar,{list:g.value,year:!0,focusKey:C.value,onUpdateKey:X[4]||(X[4]=F=>C.value=F)},null,8,["list","focusKey"])])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)])]))}}),S2=H(T2,[["__scopeId","data-v-799a0f8d"]]),P2={class:"article__head"},B2=["href"],L2=["src","alt"],O2=["src","alt"],M2=["src","alt"],z2={key:0,class:"article__title line-clamp-2 mt-3"},j2={key:1,class:"article__desc line-clamp-4 mt-2"},$2={class:"article__footer"},D2={key:0,class:"article__label"},U2={key:1,class:"article__date"},R2=e.defineComponent({name:"CardArticle",__name:"CardArticle",props:{componentProps:{},singleColumn:{type:Boolean},articleCategories:{}},emits:["openPopup","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(null),i=e.ref(""),s=w=>{var g;if(A.value||!w)return;let V=(g=l.componentProps)==null?void 0:g.category;window.scroll({top:0,left:0,behavior:"smooth"});const h=a.value?a.value.getBoundingClientRect().top+window.scrollY-160:0;o("openPopup",{key:w,cat:V,positionY:h})},d=w=>{o("handleClick",w)},u=e.computed(()=>{var w;return l.componentProps?l.componentProps.image?l.componentProps.image:(w=l.componentProps.meta)!=null&&w.image?l.componentProps.meta.image:"https://ywies-tx.cedim.cn/_nuxt/img/ywies-news-logo.202e378.jpg":"https://ywies-tx.cedim.cn/_nuxt/img/ywies-news-logo.202e378.jpg"}),m=e.computed(()=>{var w;return l.componentProps?l.componentProps.title?l.componentProps.title:(w=l.componentProps.meta)==null?void 0:w.title:null}),c=e.computed(()=>{if(l.componentProps)return l.componentProps.alt??m.value??void 0}),r=e.computed(()=>{var w;return l.componentProps?l.componentProps.desc?l.componentProps.desc:(w=l.componentProps.meta)==null?void 0:w.description:null}),f=e.computed(()=>{var h;if(!l.componentProps)return null;if(l.componentProps.labelName)return l.componentProps.labelName;let w=l.componentProps.label?l.componentProps.label:l.componentProps.category;const V=l.articleCategories;if(V&&w){let g=V.filter(y=>y.key.toLowerCase()===w.toLowerCase());return i.value=(h=g[0])==null?void 0:h.name,i.value}return w}),p=e.computed(()=>{var w;return l.componentProps?l.componentProps.date?l.componentProps.date:v((w=l.componentProps)==null?void 0:w.time):null}),A=e.computed(()=>{var w;return((w=l.componentProps)==null?void 0:w.link)??null}),v=w=>{if(!w)return null;const V=new Date(w),h=V.getFullYear(),g=(V.getMonth()+1).toString().padStart(2,"0"),y=V.getDate().toString().padStart(2,"0");return`${h}年${g}月${y}日`};return(w,V)=>(e.openBlock(),e.createElementBlock("div",{class:"card-article",ref_key:"cardArticle",ref:a},[e.createElementVNode("div",P2,[A.value&&A.value.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:A.value,target:"_blank",class:"article__img img-fit",onMousedown:V[0]||(V[0]=e.withModifiers(()=>{},["prevent","stop"]))},[e.createElementVNode("img",{src:u.value,alt:c.value},null,8,L2),V[4]||(V[4]=e.createElementVNode("div",{class:"article__img__mask"},[e.createElementVNode("div",{class:"article__img__mask__btn"}," 阅读 ")],-1))],40,B2)):A.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:V[1]||(V[1]=h=>d(A.value)),class:"article__img img-fit",onMousedown:V[2]||(V[2]=e.withModifiers(()=>{},["prevent","stop"]))},[e.createElementVNode("img",{src:u.value,alt:c.value},null,8,O2),V[5]||(V[5]=e.createElementVNode("div",{class:"article__img__mask"},[e.createElementVNode("div",{class:"article__img__mask__btn"}," 阅读 ")],-1))],32)):(e.openBlock(),e.createElementBlock("div",{key:2,class:"article__img img-fit",onClick:V[3]||(V[3]=h=>{var g;return s((g=n.componentProps)==null?void 0:g.key)})},[e.createElementVNode("img",{src:u.value,alt:c.value},null,8,M2),V[6]||(V[6]=e.createElementVNode("div",{class:"article__img__mask"},[e.createElementVNode("div",{class:"article__img__mask__btn"}," 阅读 ")],-1))]))]),e.createElementVNode("div",{class:e.normalizeClass(["article__body",{"is-single-column":n.singleColumn}])},[m.value?(e.openBlock(),e.createElementBlock("h6",z2,e.toDisplayString(m.value),1)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("p",j2,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",$2,[f.value?(e.openBlock(),e.createElementBlock("div",D2,e.toDisplayString(f.value),1)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("div",U2,e.toDisplayString(p.value),1)):e.createCommentVNode("",!0)])],2)],512))}}),H2=H(R2,[["__scopeId","data-v-5f1785b8"]]),W2={class:"pagination"},I2={class:"d-flex align-items-center h-100 justify-content-center justify-content-md-start"},X2={key:0,class:"page-ellipsis flex-center"},q2=["onClick"],F2=e.defineComponent({name:"Pagination",__name:"Pagination",props:{totalPage:{},currentPage:{}},emits:["changePage"],setup(n,{emit:t}){const l=n,o=t,a=e.computed(()=>{let u=[],m=!1;const c=l.totalPage??1;for(let r=1;r<=c;r++)d(r)?(m=!1,u.push(r)):m||(u.push("Ellipsis"),m=!0);return u[0]==="Ellipsis"&&u.shift(),u}),i=u=>{o("changePage",u)},s=u=>{const m=l.currentPage??1,c=l.totalPage??1;u<0?m>1&&i(m+u):m<c&&i(m+u)},d=u=>{const m=l.totalPage??1,c=l.currentPage??1;return m<=6||u<=c+2&&u>=c||u===m||c>=m-3&&(u>=m-2||u===1)};return(u,m)=>(e.openBlock(),e.createElementBlock("div",W2,[e.createElementVNode("ul",I2,[e.createElementVNode("li",{class:e.normalizeClass(["page-arrow pr-3 pr-md-4",{"page-arrow--disable":n.currentPage===1}]),onClick:m[0]||(m[0]=c=>s(-1))},[...m[2]||(m[2]=[e.createElementVNode("div",{class:"i page-arrow__left"},null,-1)])],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(c,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${c}-${r}`},[c==="Ellipsis"?(e.openBlock(),e.createElementBlock("li",X2)):(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["page-item flex-center",{"page-item--active":c===n.currentPage}]),onClick:f=>typeof c=="number"?i(c):void 0},e.toDisplayString(c),11,q2))],64))),128)),e.createElementVNode("li",{class:e.normalizeClass(["page-arrow pl-3 pl-md-4",{"page-arrow--disable":n.currentPage===n.totalPage}]),onClick:m[1]||(m[1]=c=>s(1))},[...m[3]||(m[3]=[e.createElementVNode("div",{class:"i page-arrow__right"},null,-1)])],2)])]))}}),Y2=H(F2,[["__scopeId","data-v-d5dbf1f4"]]),Z2={class:"setting-content"},G2={class:"setting-header flex items-center"},J2={class:"setting-header flex items-center"},K2={class:"setting-header flex items-center"},Q2={class:"setting-body"},ey={class:"setting-item"},ty={class:"btn-group"},ly={key:0,class:"drag-handle"},oy={class:"item-action flex items-center"},ny={class:"item-action flex items-center"},ay=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),a=m=>m&&m.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=m=>{i.data.data=i.data.data.filter(c=>c.id!==m)};return(m,c)=>{const r=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("a-input"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(w,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Z2,[e.createElementVNode("div",G2,[c[10]||(c[10]=e.createElementVNode("span",{class:"header-title"},"显示年份选择",-1)),e.createVNode(f,{modelValue:n.data.displayYearList,"onUpdate:modelValue":c[0]||(c[0]=V=>n.data.displayYearList=V),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(r,{value:!0},{default:e.withCtx(()=>[...c[8]||(c[8]=[e.createTextVNode("是",-1)])]),_:1}),e.createVNode(r,{value:!1},{default:e.withCtx(()=>[...c[9]||(c[9]=[e.createTextVNode("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",J2,[c[11]||(c[11]=e.createElementVNode("span",{class:"header-title"},"文章分类",-1)),e.createVNode(f,{modelValue:n.data.article_category_group_id,"onUpdate:modelValue":c[1]||(c[1]=V=>n.data.article_category_group_id=V),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data["article-category-groups"],V=>(e.openBlock(),e.createBlock(r,{key:V.id,value:V.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",K2,[c[12]||(c[12]=e.createElementVNode("span",{class:"header-title"},"接口地址",-1)),e.createElementVNode("div",null,[e.createVNode(p,{modelValue:n.data.api,"onUpdate:modelValue":c[2]||(c[2]=V=>n.data.api=V),placeholder:"默认接口地址","allow-clear":""},null,8,["modelValue"]),e.createVNode(p,{style:{"margin-top":"8px"},modelValue:n.data.previewModeApi,"onUpdate:modelValue":c[3]||(c[3]=V=>n.data.previewModeApi=V),placeholder:"PreviewMode接口地址","allow-clear":""},null,8,["modelValue"]),e.createVNode(p,{style:{"margin-top":"8px"},modelValue:n.data.reviewModeApi,"onUpdate:modelValue":c[4]||(c[4]=V=>n.data.reviewModeApi=V),placeholder:"ReviewMode接口地址","allow-clear":""},null,8,["modelValue"])])]),e.createElementVNode("div",Q2,[e.createElementVNode("div",ey,[c[15]||(c[15]=e.createElementVNode("p",{class:"item-name"},"Sort",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.sort,"onUpdate:modelValue":c[5]||(c[5]=V=>n.data.sort=V),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.sort),onStart:c[6]||(c[6]=V=>l.value=!0),onEnd:c[7]||(c[7]=V=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:V})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.sort)}]),key:V.key},[e.createElementVNode("div",ty,[a(n.data.sort)?(e.openBlock(),e.createElementBlock("div",ly,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:h=>u(V.key)},null,8,["onClick"])]),e.createElementVNode("div",oy,[c[13]||(c[13]=e.createElementVNode("p",{class:"item-name"},"Sort Behaviour",-1)),e.createVNode(p,{style:{flex:"1"},modelValue:V.key,"onUpdate:modelValue":h=>V.key=h,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",ny,[c[14]||(c[14]=e.createElementVNode("p",{class:"item-name"},"Translation",-1)),e.createVNode(p,{style:{flex:"1"},modelValue:V.name,"onUpdate:modelValue":h=>V.name=h,placeholder:"翻译","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),iy=H(ay,[["__scopeId","data-v-7c85974d"]]),sy={class:"tab-default__wrapper container-content"},ry={class:"tab-default__content mt-5 mt-md-13"},dy={key:0,"data-aos":"fade-in","data-aos-duration":"1500"},cy={key:0,class:"flex-center mt-15 mt-md-20"},uy=e.defineComponent({name:"NewsList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var q,J,fe,ve,Y,I;if(l.modelValue&&l.modelValue.data)return;const W={id:((q=l.modelValue)==null?void 0:q.id)||B(),type:"NewsList",api:((J=l.modelValue)==null?void 0:J.api)||"/component/production/articles",previewModeApi:((fe=l.modelValue)==null?void 0:fe.previewModeApi)||"/component/preview/articles",reviewModeApi:((ve=l.modelValue)==null?void 0:ve.reviewModeApi)||"/component/review/articles",isPreviewMode:((Y=l.modelValue)==null?void 0:Y.isPreviewMode)||!1,isReviewMode:((I=l.modelValue)==null?void 0:I.isReviewMode)||!1,sort:[{key:"most-recent",name:"最新"},{key:"past-month",name:"上月"},{key:"past-year",name:"去年"}],displayYearList:!0,yearList:[2025,2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009],list:[{key:"all",name:"全部",list:[]},{key:"news",name:"学校新闻",list:[]},{key:"events",name:"活动",list:[]}],"article-category-groups":{28:{id:28,name:"新闻",categories:[{id:92,key:"school-news",name:"学校新闻",hasArticles:!0},{id:291,key:"events",name:"活动预告",hasArticles:!0},{id:93,key:"wechat-news",name:"微信精彩文章",hasArticles:!0},{id:94,key:"press",name:"媒体报导",hasArticles:!0},{id:282,key:"ycyw-news",name:"耀中耀华新闻",hasArticles:!0},{id:300,key:"yuiuih",name:"测试",hasArticles:!0},{id:294,key:"ycyw-event",name:"耀中耀华活动",hasArticles:!0},{id:296,key:"edfutures",name:"未来教育部",hasArticles:!0}]},65:{id:65,name:"媒体",categories:[{id:274,key:"meet-series",name:"“遇见”系列",hasArticles:!0},{id:275,key:"planet-leadership-series",name:"星空说",hasArticles:!0}]},101:{id:101,name:"家长分享",categories:[{id:290,key:"parent-sharing",name:"家长分享",hasArticles:!0}]}},article_category_group_id:28,"article-categories":[{id:92,key:"school-news",name:"学校新闻",hasArticles:!0},{id:93,key:"wechat-news",name:"微信精彩文章",hasArticles:!0},{id:94,key:"press",name:"媒体报导",hasArticles:!0},{id:95,key:"circulars-n-newsletters",name:"校內刊物",hasArticles:!0},{id:222,key:"planet-leadership-series-archive",name:"星空说 - Archive",hasArticles:!0},{id:223,key:"meet-series-archive",name:"“遇见”系列 - Archive",hasArticles:!0},{id:274,key:"meet-series",name:"“遇见”系列",hasArticles:!0},{id:275,key:"planet-leadership-series",name:"星空说",hasArticles:!0},{id:282,key:"ycyw-news",name:"耀中耀华新闻",hasArticles:!0},{id:290,key:"parent-sharing",name:"家长分享",hasArticles:!0},{id:291,key:"events",name:"活动预告",hasArticles:!0},{id:294,key:"ycyw-event",name:"耀中耀华活动",hasArticles:!0},{id:296,key:"edfutures",name:"未来教育部",hasArticles:!0},{id:300,key:"yuiuih",name:"测试",hasArticles:!0}],getIsPreviewMode:!1,getIsReviewMode:!1};o("update:modelValue",W),e.nextTick(()=>{console.log("更新数据:",l.modelValue["article-categories"])})},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=W=>{o("handlePaste",W)},c=W=>{o("handleClick",W)};a();const r=e.ref(null),f=e.ref(!1),p=e.ref(void 0),A=e.ref(0),v=e.ref(null),w=e.ref(null),V=e.ref("所有年份"),h=e.ref(10),g=e.ref(1),y=e.ref(12),N=e.ref([]),C=e.ref({}),b=e.ref(""),x=e.ref(window.innerWidth),E=e.ref("sc"),_=()=>{x.value=window.innerWidth},T=e.computed(()=>{var J,fe,ve,Y;if(!f.value)return Object.freeze(((J=l.modelValue)==null?void 0:J.list)??[]);const W=(fe=l.modelValue)==null?void 0:fe["article-category-groups"];if(!W||!p.value||!W.hasOwnProperty(p.value))return Object.freeze([]);let q=W[p.value].categories;return!((ve=l.modelValue)!=null&&ve.isPreviewMode)&&!((Y=l.modelValue)!=null&&Y.isReviewMode)&&(q=q.filter(function(I){return I.hasOwnProperty("hasArticles")&&I.hasArticles})),Object.freeze(q)}),S=e.computed(()=>{let W=[];for(const q of T.value)q.key!=="all"&&W.push(q.key);return Object.freeze(W)}),L=e.computed(()=>{var W;if(f.value){let q=[{key:"all",name:"全部",list:[]}],J=T.value.map(function(fe){return{key:fe.key,name:fe.name,list:[]}});return Object.freeze(q.concat(J))}return((W=l.modelValue)==null?void 0:W.list)??void 0}),O=e.computed(()=>{var W;return((W=l.modelValue)==null?void 0:W.colDesktop)??4}),M=e.computed(()=>{var W;return((W=l.modelValue)==null?void 0:W.colTablet)??3}),$=e.computed(()=>{var W;return((W=l.modelValue)==null?void 0:W.colMobile)??1}),D=e.computed(()=>{var W,q;return((q=(W=L.value)==null?void 0:W[A.value])==null?void 0:q.list)??null}),R=e.computed(()=>{var W;return!w.value||!w.value.length?D.value:((W=D.value)==null?void 0:W.filter(q=>{var fe;let J=!1;return(fe=w.value)==null||fe.forEach(ve=>{J=q&&q.keywords&&q.keywords.includes(ve)?!0:J}),J}))??[]}),j=e.computed(()=>{if(!v.value||v.value==="most-recent")return[...R.value].sort((K,oe)=>new Date(oe.date).getTime()-new Date(K.date).getTime());const W=new Date,q=W.getFullYear(),J=W.getMonth(),fe=W.getDate(),ve=new Date(q,J-1<0?11:J-1,fe),Y=new Date(q-1,J,fe),I=v.value==="past-month"?ve:Y;return R.value.filter(K=>new Date(K.date)>I&&new Date(K.date)<W)}),k=e.computed(()=>{var W,q;return((W=l.modelValue)==null?void 0:W.displayYearList)??!0?(q=l.modelValue)==null?void 0:q.yearList:[]}),z=e.computed(()=>{var W,q,J;return f.value||(W=l.modelValue)!=null&&W.list&&((J=(q=l.modelValue.list[0])==null?void 0:q.list)==null?void 0:J.length)===0?N.value:j.value.slice((g.value-1)*y.value,g.value*y.value)}),X=W=>{if(!W)return;const fe=W.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:fe,behavior:"smooth"})};e.watch(v,()=>{F(),ee()}),e.watch(w,()=>{ee()}),e.watch(V,()=>{F(),ee()}),e.watch(g,()=>{const W=r.value;X(W),F()}),e.watch(A,W=>{ee(),L.value&&L.value[W]&&(b.value=L.value[W].key,g.value=1,F())}),e.watch(S,(W,q)=>{q.length===0&&W.length>0&&(be(),F())});const F=async()=>{var W,q,J,fe,ve,Y,I,K;if(f.value||(W=l.modelValue)!=null&&W.list&&((J=(q=l.modelValue.list[0])==null?void 0:q.list)==null?void 0:J.length)===0){let oe=(fe=l.modelValue)==null?void 0:fe.api;if((ve=l.modelValue)!=null&&ve.isPreviewMode&&(oe=(Y=l.modelValue)==null?void 0:Y.previewModeApi),(I=l.modelValue)!=null&&I.isReviewMode&&(oe=(K=l.modelValue)==null?void 0:K.reviewModeApi),S.value.length===0)return;let se={per_page:y.value,page:g.value,filter:v.value,year:k.value.includes(Number(V.value))||k.value.includes(String(V.value))?Number(V.value):null,category:!b.value||b.value==="all"?S.value.join(","):b.value};const P={headers:{"api-key":"api-key",application:"website",website:`ywies-tx-${E.value}`},params:se};try{const U=await A2.get(oe,P);N.value=U.data.data,C.value=U.data.meta,h.value=C.value.last_page}catch(U){console.error("Error fetching articles:",U)}}},ee=()=>{var W,q,J;g.value=1,y.value=x.value>=768?x.value>=1024?12:9:10,(f.value||(W=l.modelValue)!=null&&W.list&&((J=(q=l.modelValue.list[0])==null?void 0:q.list)==null?void 0:J.length)>0)&&(h.value=Math.ceil(j.value.length/y.value))},be=()=>{let W=0;b.value&&L.value&&(W=L.value.findIndex(q=>q.key==b.value)),A.value=W>-1?W:0},Me=W=>{A.value=W,b.value=L.value[W].key,g.value=1,F()};return e.onMounted(()=>{var q;let W=((q=l.modelValue)==null?void 0:q.article_category_group_id)??null;W&&(f.value=!0,p.value=W),window.addEventListener("resize",_),_(),ee(),be(),e.nextTick(()=>{F()})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",_)}),(W,q)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"news-list tab-default",ref_key:"parent",ref:r,onMouseenter:q[6]||(q[6]=J=>i.value=!0),onMouseleave:q[7]||(q[7]=J=>i.value=!1)},[e.createElementVNode("div",sy,[e.createVNode(S2,{componentProps:n.modelValue,currentIdx:A.value,keySort:v.value,keyFilter:w.value??[],keyYear:V.value,yearList:k.value,articleTabList:L.value?[...L.value]:void 0,onUpdateIdx:Me,onUpdateSort:q[0]||(q[0]=J=>v.value=typeof J=="string"?J:null),onUpdateFilter:q[1]||(q[1]=J=>w.value=J),onUpdateYear:q[2]||(q[2]=J=>V.value=String(J))},null,8,["componentProps","currentIdx","keySort","keyFilter","keyYear","yearList","articleTabList"])]),e.createElementVNode("div",ry,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(J,fe)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:J.key},[fe==A.value?(e.openBlock(),e.createElementBlock("div",dy,[e.createElementVNode("div",{class:e.normalizeClass(["card-list row container-content-middle",[`row-cols-${$.value}`,`row-cols-md-${M.value}`,`row-cols-lg-${O.value}`]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,ve=>{var Y;return e.openBlock(),e.createElementBlock("div",{class:"card-item col",key:ve.id},[e.createVNode(H2,{componentProps:ve,articleCategories:(Y=n.modelValue)==null?void 0:Y["article-categories"],singleColumn:x.value<768,onHandleClick:c},null,8,["componentProps","articleCategories","singleColumn"])])}),128))],2),h.value>0?(e.openBlock(),e.createElementBlock("div",cy,[e.createVNode(Y2,{totalPage:h.value,currentPage:g.value,onChangePage:q[3]||(q[3]=ve=>g.value=ve)},null,8,["totalPage","currentPage"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))),128))]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":q[4]||(q[4]=J=>i.value=J),onHandleEdit:q[5]||(q[5]=J=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],544),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(iy,{key:0,show:s.value,"onUpdate:show":q[8]||(q[8]=J=>s.value=J),data:n.modelValue},null,8,["show","data"]))],64))}}),ps=H(uy,[["__scopeId","data-v-7f671d7f"]]),my={class:"setting-content"},Ay={class:"setting-header flex items-center"},py={class:"setting-header flex items-center"},fy={key:1,class:"btn-setting"},vy={class:"btn-group"},hy={class:"item-action flex items-center"},Vy={class:"setting-body"},gy={class:"btn-group"},yy={key:0,class:"drag-handle"},by={class:"section-item"},wy={class:"btn-group"},xy={key:0,class:"drag-handle"},ky=["src"],Ny={class:"item-uplaod flex items-center"},_y=["onClick"],Cy=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"sections",disabled:!1,ghostClass:"ghost"})),i=A=>A&&A.length>1,s=n,d=t,u=()=>{d("update:show",!1)},m=()=>{s.data.btnType="",s.data.btnText="",s.data.btnUrl="",s.data.isExternal=!1},c=()=>{s.data.data.push({id:B(),timeSection:[]})},r=A=>{s.data.data=s.data.data.filter(v=>v.id!==A)},f=A=>{A.push({id:B(),title:"标题",subtitle:"内容",year:"",imgSrc:"",alt:"",linkUrl:"",isExternal:!1})},p=(A,v)=>{A.splice(A.findIndex(w=>w.id===v),1)};return(A,v)=>{const w=e.resolveComponent("a-input"),V=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-button"),g=e.resolveComponent("a-button-group"),y=e.resolveComponent("icon-delete"),N=e.resolveComponent("a-link"),C=e.resolveComponent("a-checkbox"),b=e.resolveComponent("icon-drag-arrow"),x=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(x,{width:500,visible:n.show,footer:!1,onCancel:u,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",my,[e.createElementVNode("div",Ay,[v[12]||(v[12]=e.createElementVNode("span",{class:"header-title"},"标题",-1)),e.createVNode(w,{modelValue:n.data.title,"onUpdate:modelValue":v[0]||(v[0]=E=>n.data.title=E),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",py,[v[13]||(v[13]=e.createElementVNode("span",{class:"header-title"},"子标题",-1)),e.createVNode(w,{modelValue:n.data.subtitle,"onUpdate:modelValue":v[1]||(v[1]=E=>n.data.subtitle=E),placeholder:"请输入子标题","allow-clear":""},null,8,["modelValue"])]),n.data.btnType?(e.openBlock(),e.createElementBlock("div",fy,[e.createElementVNode("div",vy,[e.createVNode(y,{class:"btn-delete",onClick:m})]),n.data.btnType==="btn"?(e.openBlock(),e.createBlock(h,{key:0,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.btnText),1)]),_:1})):(e.openBlock(),e.createBlock(N,{key:1,href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.btnText),1)]),_:1})),e.createElementVNode("div",hy,[e.createVNode(w,{class:"action-text",modelValue:n.data.btnText,"onUpdate:modelValue":v[4]||(v[4]=E=>n.data.btnText=E),placeholder:"按钮文本","allow-clear":""},null,8,["modelValue"]),e.createVNode(w,{modelValue:n.data.btnUrl,"onUpdate:modelValue":v[5]||(v[5]=E=>n.data.btnUrl=E),placeholder:"按钮链接","allow-clear":""},null,8,["modelValue"])]),e.createVNode(C,{"model-value":n.data.isExternal},{default:e.withCtx(()=>[...v[16]||(v[16]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])])):(e.openBlock(),e.createBlock(g,{key:0,type:"primary"},{default:e.withCtx(()=>[e.createVNode(h,{size:"mini",onClick:v[2]||(v[2]=E=>n.data.btnType="btn")},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[v[14]||(v[14]=e.createTextVNode(" 按钮 ",-1))]),_:1}),e.createVNode(h,{size:"mini",onClick:v[3]||(v[3]=E=>n.data.btnType="link")},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[v[15]||(v[15]=e.createTextVNode(" 链接 ",-1))]),_:1})]),_:1})),e.createElementVNode("div",Vy,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":v[8]||(v[8]=E=>n.data.data=E),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!i(n.data.data),onStart:v[9]||(v[9]=E=>l.value=!0),onEnd:v[10]||(v[10]=E=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:E})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-section draggable-item",{"sortable-disabled":!i(n.data.data)}]),key:E.id},[e.createElementVNode("div",gy,[i(n.data.data)?(e.openBlock(),e.createElementBlock("div",yy,[e.createVNode(b,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(y,{class:"btn-delete",onClick:_=>r(E.id)},null,8,["onClick"])]),e.createElementVNode("div",by,[e.createVNode(e.unref(de),e.mergeProps({modelValue:E.timeSection,"onUpdate:modelValue":_=>E.timeSection=_,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!i(E.timeSection),onStart:v[6]||(v[6]=_=>l.value=!0),onEnd:v[7]||(v[7]=_=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:_})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(E.timeSection)}]),key:_.id},[e.createElementVNode("div",wy,[i(E.timeSection)?(e.openBlock(),e.createElementBlock("div",xy,[e.createVNode(b,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(y,{class:"btn-delete",onClick:T=>p(E.timeSection,_.id)},null,8,["onClick"])]),v[17]||(v[17]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(w,{modelValue:_.title,"onUpdate:modelValue":T=>_.title=T,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),v[18]||(v[18]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:_.subtitle,"onUpdate:modelValue":T=>_.subtitle=T,name:`TheHistoryCarousel_editor_${_.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),v[19]||(v[19]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(w,{modelValue:_.year,"onUpdate:modelValue":T=>_.year=T,placeholder:"请输入日期","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),v[20]||(v[20]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:_.imgSrc},null,8,ky),e.createElementVNode("div",Ny,[e.createVNode(w,{modelValue:_.imgSrc,"onUpdate:modelValue":T=>_.imgSrc=T,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:_.imgSrc,"onUpdate:modelValue":T=>_.imgSrc=T,name:`TheHistoryCarousel_${_.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(w,{class:"mt-2",modelValue:_.alt,"onUpdate:modelValue":T=>_.alt=T,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(w,{class:"mt-2",modelValue:_.linkUrl,"onUpdate:modelValue":T=>_.linkUrl=T,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:_=>f(E.timeSection)},[e.createVNode(V),v[21]||(v[21]=e.createElementVNode("span",{class:"btn-text"},"添加section",-1))],8,_y)])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:v[11]||(v[11]=E=>c())},[e.createVNode(V),v[22]||(v[22]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])]),_:1},8,["visible"])}}}),Ey=H(Cy,[["__scopeId","data-v-95b13291"]]),Ty={key:0,class:"popBox"},Sy={class:"close-header"},Py={class:"mb-3"},By=["innerHTML"],Ly={class:"mt-5"},Oy={class:"circle-link"},My=["href","target"],zy=e.defineComponent({name:"LightHistoryPopup",__name:"index",props:{historyPopupData:{},show:{type:Boolean}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=e.computed(()=>l.show),a=t,i=()=>{a("update:show",!1)};return(s,d)=>{const u=e.resolveComponent("a-button");return o.value?(e.openBlock(),e.createElementBlock("div",Ty,[e.createElementVNode("div",Sy,[e.createVNode(u,{type:"text",size:"small",onClick:i,class:"close-btn"},{default:e.withCtx(()=>[...d[0]||(d[0]=[e.createTextVNode(" × ",-1)])]),_:1})]),e.createElementVNode("h6",Py,e.toDisplayString(n.historyPopupData.title),1),e.createVNode(Va,null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:"popBox__subtitle tx-body-small",innerHTML:n.historyPopupData.subtitle},null,8,By)]),_:1}),e.createElementVNode("div",Ly,[e.createElementVNode("div",Oy,[e.createElementVNode("a",{href:n.historyPopupData.linkUrl,target:n.historyPopupData.isExternal?"_blank":"_self",class:"nuxt-link-active"},[...d[1]||(d[1]=[e.createElementVNode("div",null,"了解更多",-1),e.createElementVNode("span",{class:"circle-link__icon"},null,-1)])],8,My)])])])):e.createCommentVNode("",!0)}}}),jy=H(zy,[["__scopeId","data-v-2728df05"]]),$y={class:"position-relative"},Dy=["data-swiper-parallax"],Uy=["data-swiper-parallax","data-swiper-parallax-opacity"],Ry=["onClick"],Hy={class:"period__effect"},Wy=["id"],Iy=["data-swiper-parallax","data-swiper-parallax-opacity"],Xy=["src","alt"],qy={class:"hisPopup"},Fy={class:"swiper-bottom"},Yy={class:"swiper-bottom__text"},Zy={class:"tx-subtitle text-uppercase text-center"},Gy={class:"position-relative w-100 celebrateTitle"},Jy={class:"text-uppercase text-center"},Ky=["onClick"],Qy={key:0,class:"year-pagination__box__line"},eb=["href"],tb={class:"btn-primary__text"},lb={key:1,class:"circle-link mx-auto mt-2 circle-link--light"},ob=["href"],nb={"data-v-d020e8b6":""},ab=e.defineComponent({name:"TheHistoryCarousel",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var T;if(l.modelValue&&l.modelValue.data)return;const _={id:((T=l.modelValue)==null?void 0:T.id)||B(),type:"TheHistoryCarousel",title:"标题",subtitle:"副标题",btnType:"link",btnText:"按钮",btnUrl:"http://baidu.com",isExternal:!0,data:[{id:B(),timeSection:[{id:B(),title:"标题1",subtitle:"内容",year:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",linkUrl:"http://baidu.com",isExternal:!0},{id:B(),title:"标题2",subtitle:"内容",year:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",linkUrl:"http://baidu.com",isExternal:!0}]},{id:B(),timeSection:[{id:B(),title:"标题3",subtitle:"内容",year:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",linkUrl:"http://baidu.com",isExternal:!0}]}]};o("update:modelValue",_)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=_=>{o("handlePaste",_)};a();const c=e.ref(!1),r=e.ref(0),f=e.ref(!1),p=e.ref("-23%"),A=e.ref(null),v=e.ref(null),w=e.ref([]),V=[yt.Navigation,yt.Pagination,yt.Parallax];e.watch(r,(_,T)=>{if(w.value&&w.value[0]&&v.value){const S=w.value[0].clientWidth;if(T<_&&_>3){v.value.scrollLeft+=S;return}if(T>_&&_<N.value.length-4){v.value.scrollLeft-=S;return}}});const h=e.ref({title:"",subtitle:"",linkUrl:"",isExternal:!0}),g=_=>{c.value=!0,h.value={title:_.title,subtitle:_.subtitle,linkUrl:_.linkUrl,isExternal:_.isExternal}},y=e.ref(null),N=e.computed(()=>{var _;if(!((_=l.modelValue)!=null&&_.data))return[];if(typeof window<"u"&&window.innerWidth<576){let T=[];return l.modelValue.data.forEach(S=>{S.timeSection.forEach(L=>{T.push({id:B(),timeSection:[L]})})}),T}else return l.modelValue.data}),C=e.computed(()=>{if(typeof window<"u"&&window.innerWidth<576){const _=2280/N.value.length/2;return p.value=`-${_}%`,p.value}else return p.value="-23%",p.value}),b=_=>{y.value=_,f.value=!0},x=()=>{y.value&&(r.value=y.value.activeIndex,c.value=!1)},E=_=>{r.value=_,y.value&&y.value.slideTo(_)};return(_,T)=>{var S,L,O,M,$,D,R;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"the-history-carousel",onMouseenter:T[3]||(T[3]=j=>i.value=!0),onMouseleave:T[4]||(T[4]=j=>i.value=!1)},[e.createElementVNode("div",$y,[e.createVNode(e.unref(ml.Swiper),{ref_key:"historySlide",ref:A,class:"swiper history-swiper",modules:V,"slides-per-view":1,"space-between":0,speed:2e3,parallax:!0,direction:"horizontal",loop:!1,"allow-touch-move":!0,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},onSwiper:b,onSlideChange:x},{"container-start":e.withCtx(()=>[e.createElementVNode("div",{class:"parallax-bg","data-swiper-parallax":C.value,style:e.normalizeStyle({transform:`translate3d(${C.value==="-380%"?0:C.value}, 0, 0)`,"transition-duration":"0ms"})},null,12,Dy)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,j=>(e.openBlock(),e.createBlock(e.unref(ml.SwiperSlide),{class:"slide-box",key:j.id},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.timeSection,(k,z)=>(e.openBlock(),e.createElementBlock("div",{class:"inside-wrap leftSide",key:k.id},[e.createElementVNode("div",{style:e.normalizeStyle({zIndex:z?1:50}),class:"period","data-swiper-parallax":z?-300:0,"data-swiper-parallax-opacity":z?.2:.5},[e.createElementVNode("p",null,e.toDisplayString(k.year),1),e.createElementVNode("div",{class:"period__iconPlus",onClick:X=>g(k)},[e.createElementVNode("img",{ref_for:!0,ref:k.year+z?"right":"left",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05Ljk3OTIyIDE5Ljk1OEMxNS40OTA2IDE5Ljk1OCAxOS45NTg0IDE1LjQ5MDEgMTkuOTU4NCA5Ljk3ODczQzE5Ljk1ODQgNC40NjczNiAxNS40OTA2IC0wLjAwMDQ4ODI4MSA5Ljk3OTIyIC0wLjAwMDQ4ODI4MUM0LjQ2Nzg1IC0wLjAwMDQ4ODI4MSAwIDQuNDY3MzYgMCA5Ljk3ODczQzAgMTUuNDkwMSA0LjQ2Nzg1IDE5Ljk1OCA5Ljk3OTIyIDE5Ljk1OFpNMTQuMTczMiAxMS4wNDU0TDExLjA0NTMgMTEuMDQ1NFYxNC4xNzMzQzExLjA0NTMgMTQuNzQ5MSAxMC41Nzg0IDE1LjIxNiAxMC4wMDI2IDE1LjIxNkM5LjQyNjc3IDE1LjIxNiA4Ljk1OTk3IDE0Ljc0OTEgOC45NTk5NyAxNC4xNzMzVjExLjA0NTRMNS44MzIwMyAxMS4wNDU0QzUuMjU2MiAxMS4wNDU0IDQuNzg5MzkgMTAuNTc4NiA0Ljc4OTM5IDEwLjAwMjdDNC43ODkzOSA5LjQyNjg5IDUuMjU2MiA4Ljk2MDA4IDUuODMyMDMgOC45NjAwOEw4Ljk1OTk3IDguOTYwMDhWNS44MzIxNUM4Ljk1OTk3IDUuMjU2MzEgOS40MjY3NyA0Ljc4OTUgMTAuMDAyNiA0Ljc4OTVDMTAuNTc4NCA0Ljc4OTUgMTEuMDQ1MyA1LjI1NjMxIDExLjA0NTMgNS44MzIxNVY4Ljk2MDA4TDE0LjE3MzIgOC45NjAwOEMxNC43NDkgOC45NjAwOCAxNS4yMTU4IDkuNDI2ODkgMTUuMjE1OCAxMC4wMDI3QzE1LjIxNTggMTAuNTc4NiAxNC43NDkgMTEuMDQ1NCAxNC4xNzMyIDExLjA0NTRaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K",alt:"了解更多"},null,512)],8,Ry),e.createElementVNode("div",Hy,[e.createElementVNode("div",{id:"period__effect__circle"+z,class:"period__effect__circle"},null,8,Wy)])],12,Uy),e.createElementVNode("div",{class:"image","data-swiper-parallax":z?600:-400,"data-swiper-parallax-opacity":z?0:.2},[e.createElementVNode("img",{src:k.imgSrc,alt:k.alt},null,8,Xy)],8,Iy)]))),128)),e.createElementVNode("div",qy,[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.createVNode(jy,{show:c.value,"onUpdate:show":T[0]||(T[0]=k=>c.value=k),historyPopupData:h.value},null,8,["show","historyPopupData"])]),_:1})])]),_:2},1024))),128))]),_:1},512),e.createElementVNode("div",Fy,[e.createElementVNode("div",Yy,[e.createElementVNode("p",Zy,e.toDisplayString((S=n.modelValue)==null?void 0:S.subtitle),1),e.createElementVNode("div",Gy,[T[6]||(T[6]=e.createElementVNode("div",{class:"swiper-button-prev swiper-button-black swiper-position-prev"},null,-1)),e.createElementVNode("h1",Jy,e.toDisplayString((L=n.modelValue)==null?void 0:L.title),1),T[7]||(T[7]=e.createElementVNode("div",{class:"swiper-button-next swiper-button-black swiper-position-next"},null,-1))]),e.createElementVNode("div",{class:"year-pagination",ref_key:"yearPagination",ref:v},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(j,k)=>(e.openBlock(),e.createElementBlock("div",{ref_for:!0,ref_key:"yearBlock",ref:w,class:"year-pagination__box",key:j.timeSection[0].year+k},[e.createElementVNode("h5",{onClick:z=>E(k),class:e.normalizeClass({pageActive:r.value===k})},e.toDisplayString(j.timeSection[0].year),11,Ky),k+1!==N.value.length?(e.openBlock(),e.createElementBlock("div",Qy)):e.createCommentVNode("",!0)]))),128))],512),((O=n.modelValue)==null?void 0:O.btnType)==="btn"?(e.openBlock(),e.createElementBlock("a",{key:0,href:((M=n.modelValue)==null?void 0:M.btnUrl)||"#",target:"_blank",class:"btn-primary mx-auto mt-2 btn-primary--white size-normal"},[e.createElementVNode("div",tb,e.toDisplayString(($=n.modelValue)==null?void 0:$.btnText),1),T[8]||(T[8]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],8,eb)):(e.openBlock(),e.createElementBlock("div",lb,[e.createElementVNode("a",{href:((D=n.modelValue)==null?void 0:D.btnUrl)||"#",class:"nuxt-link-active"},[e.createElementVNode("div",nb,e.toDisplayString((R=n.modelValue)==null?void 0:R.btnText),1),T[9]||(T[9]=e.createElementVNode("span",{class:"circle-link__icon circle-link__icon--light"},null,-1))],8,ob)]))])])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":T[1]||(T[1]=j=>i.value=j),onHandleEdit:T[2]||(T[2]=j=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ey,{key:0,show:s.value,"onUpdate:show":T[5]||(T[5]=j=>s.value=j),data:n.modelValue},null,8,["show","data"]))],64)}}}),fs=H(ab,[["__scopeId","data-v-9f7b9b55"]]),ib={class:"setting-content"},sb={class:"setting-header flex items-center"},rb={class:"setting-body"},db={class:"setting-item"},cb={class:"btn-group"},ub={key:0,class:"drag-handle"},mb=["src"],Ab={class:"item-uplaod flex items-center"},pb=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"profiles",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=()=>{i.data.data.push({id:B(),title:"耀华国际教育学校浙江桐乡1",subtitle:"耀华国际教育学校",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:""})},m=c=>{if(i.data.data.length<=3){alert("至少保留3个项目");return}i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("a-input"),V=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(h,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",ib,[e.createElementVNode("div",sb,[r[7]||(r[7]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=g=>n.data.bgColor=g),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[5]||(r[5]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",rb,[e.createElementVNode("div",db,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=g=>n.data.data=g),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[2]||(r[2]=g=>l.value=!0),onEnd:r[3]||(r[3]=g=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:g})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:g.id},[e.createElementVNode("div",cb,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",ub,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:y=>m(g.id)},null,8,["onClick"])]),r[8]||(r[8]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(w,{modelValue:g.title,"onUpdate:modelValue":y=>g.title=y,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[9]||(r[9]=e.createElementVNode("p",{class:"item-title"},"子标题",-1)),e.createVNode(w,{modelValue:g.subTitle,"onUpdate:modelValue":y=>g.subTitle=y,placeholder:"请输入子标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[10]||(r[10]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(w,{modelValue:g.content,"onUpdate:modelValue":y=>g.content=y,placeholder:"请输入内容","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[11]||(r[11]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:g.imgSrc},null,8,mb),e.createElementVNode("div",Ab,[e.createVNode(w,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,name:`CardShowcaseProfile_img_${g.id}`},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(w,{class:"mt-2",modelValue:g.alt,"onUpdate:modelValue":y=>g.alt=y,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[4]||(r[4]=g=>u())},[e.createVNode(V),r[12]||(r[12]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),fb=H(pb,[["__scopeId","data-v-c564d09d"]]),vb={key:0,class:"splide-wrapper-desktop"},hb={class:"slide-content"},Vb={class:"slide-content__box bg-white shadow-lg"},gb={key:0,class:"img-wrapper"},yb=["src","alt"],bb={class:"slide-content__box__title"},wb=["innerHTML"],xb={key:2,class:"slide-content__box__content"},kb={class:"swiper-footer"},Nb={class:"swiper-pagination"},_b=["onClick"],Cb={key:1,class:"swiper-wrapper-mobile"},Eb={class:"slide-content-mobile"},Tb={class:"slide-content__box bg-white shadow-lg"},Sb={key:0,class:"img-wrapper"},Pb=["src","alt"],Bb={class:"slide-content__box__title"},Lb=["innerHTML"],Ob={key:2,class:"slide-content__box__content"},Mb=e.defineComponent({name:"CardShowcaseProfile",__name:"index",props:{modelValue:{type:Object,default:()=>({})},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var E;if(l.modelValue&&l.modelValue.data)return;const x={id:((E=l.modelValue)==null?void 0:E.id)||B(),type:"CardShowcaseProfile",bgColor:"",data:[{id:B(),title:"耀华国际教育学校浙江桐乡1",subtitle:"耀华国际教育学校",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:""},{id:B(),title:"耀华国际教育学校浙江桐乡2",subtitle:"耀华国际教育学校",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:""},{id:B(),title:"耀华国际教育学校浙江桐乡3",subtitle:"耀华国际教育学校",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:""}]};o("update:modelValue",x)},i=e.ref(!1),s=e.ref(!1),d=e.ref(null),u=e.ref(null),m=e.ref(null),c=e.ref(typeof window<"u"?window.innerWidth:1024),r=e.ref(0),f=[yt.Navigation,yt.Pagination,yt.EffectFade],p={type:"loop",perPage:3,perMove:1,focus:"center",gap:"0px",speed:600,arrows:!1,pagination:!1,drag:!0,updateOnMove:!0},A=()=>{var x;(x=l.modelValue)!=null&&x.id&&o("handleDelete",l.modelValue.id)},v=()=>{l.modelValue&&o("handleCopy",l.modelValue)},w=x=>{o("handlePaste",x)},V=()=>{c.value=typeof window<"u"?window.innerWidth:1024};typeof window<"u"&&window.addEventListener("resize",V);const h=x=>{console.log("Splide initialized:",{index:x.index,length:x.length})},g=(x,E)=>{r.value=E},y=()=>{var x;(x=u.value)!=null&&x.splide&&u.value.splide.go("<")},N=()=>{var x;(x=u.value)!=null&&x.splide&&u.value.splide.go(">")},C=x=>{var E;(E=u.value)!=null&&E.splide&&u.value.splide.go(x)},b=x=>{m.value=x};return e.onBeforeUnmount(()=>{typeof window<"u"&&window.removeEventListener("resize",V)}),a(),(x,E)=>{var _,T;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"card-showcase card-showcase-profile",style:e.normalizeStyle({backgroundColor:(_=n.modelValue)==null?void 0:_.bgColor}),onMouseenter:E[2]||(E[2]=S=>i.value=!0),onMouseleave:E[3]||(E[3]=S=>i.value=!1)},[e.createElementVNode("div",{class:"card-showcase__container container-content-middle",ref_key:"cardShowcase",ref:d},[c.value>767.98?(e.openBlock(),e.createElementBlock("div",vb,[e.createVNode(e.unref(_s.Splide),{ref_key:"splideRef",ref:u,options:p,"onSplide:mounted":h,"onSplide:move":g},{default:e.withCtx(()=>{var S;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((S=n.modelValue)==null?void 0:S.data,L=>(e.openBlock(),e.createBlock(e.unref(_s.SplideSlide),{key:L.id},{default:e.withCtx(()=>[e.createElementVNode("div",hb,[e.createElementVNode("div",Vb,[L.imgSrc?(e.openBlock(),e.createElementBlock("div",gb,[e.createElementVNode("img",{class:"img-static",src:L.imgSrc,alt:L.alt||L.title},null,8,yb)])):e.createCommentVNode("",!0),e.createElementVNode("div",bb,e.toDisplayString(L.title),1),L.subtitle?(e.openBlock(),e.createElementBlock("div",{key:1,class:"slide-content__box__subtitle",innerHTML:L.subtitle},null,8,wb)):e.createCommentVNode("",!0),L.content?(e.openBlock(),e.createElementBlock("div",xb,e.toDisplayString(L.content),1)):e.createCommentVNode("",!0)])])]),_:2},1024))),128))]}),_:1},512),e.createElementVNode("div",kb,[e.createElementVNode("div",{class:"swiper-button-prev",onClick:y}),e.createElementVNode("div",Nb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((T=n.modelValue)==null?void 0:T.data,(S,L)=>(e.openBlock(),e.createElementBlock("span",{key:L,class:e.normalizeClass(["swiper-pagination-bullet",{"swiper-pagination-bullet-active":r.value===L}]),onClick:O=>C(L)},null,10,_b))),128))]),e.createElementVNode("div",{class:"swiper-button-next",onClick:N})])])):(e.openBlock(),e.createElementBlock("div",Cb,[e.createVNode(e.unref(ml.Swiper),{ref_key:"showCaseSlideMobile",ref:m,modules:f,"centered-slides":!0,"slides-per-view":1,speed:600,effect:"fade",fadeEffect:{crossFade:!0},loop:!0,autoHeight:!0,navigation:{nextEl:".swiper-button-next-mobile",prevEl:".swiper-button-prev-mobile"},pagination:{el:".swiper-pagination-mobile",clickable:!0},class:"swiper showcaseSlide swiper--mobile",onSwiper:b},{default:e.withCtx(()=>{var S;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((S=n.modelValue)==null?void 0:S.data,L=>(e.openBlock(),e.createBlock(e.unref(ml.SwiperSlide),{key:L.id},{default:e.withCtx(()=>[e.createElementVNode("div",Eb,[e.createElementVNode("div",Tb,[L.imgSrc?(e.openBlock(),e.createElementBlock("div",Sb,[e.createElementVNode("img",{class:"img-static",src:L.imgSrc,alt:L.alt||L.title},null,8,Pb)])):e.createCommentVNode("",!0),e.createElementVNode("h4",Bb,e.toDisplayString(L.title),1),L.subtitle?(e.openBlock(),e.createElementBlock("div",{key:1,class:"slide-content__box__subtitle",innerHTML:L.subtitle},null,8,Lb)):e.createCommentVNode("",!0),L.content?(e.openBlock(),e.createElementBlock("div",Ob,e.toDisplayString(L.content),1)):e.createCommentVNode("",!0)])])]),_:2},1024))),128))]}),_:1},512),E[5]||(E[5]=e.createElementVNode("div",{class:"swiper-footer"},[e.createElementVNode("div",{class:"swiper-button-prev-mobile swiper-button-prev"}),e.createElementVNode("div",{class:"swiper-pagination-mobile swiper-pagination"}),e.createElementVNode("div",{class:"swiper-button-next-mobile swiper-button-next"})],-1))]))],512),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":E[0]||(E[0]=S=>i.value=S),onHandleEdit:E[1]||(E[1]=S=>s.value=!0),onHandleDelete:A,onHandleCopy:v,onHandlePaste:w},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(fb,{key:0,show:s.value,"onUpdate:show":E[4]||(E[4]=S=>s.value=S),data:n.modelValue},null,8,["show","data"]))],64)}}}),vs=H(Mb,[["__scopeId","data-v-25af4a04"]]),zb={class:"seting-box"},jb=["src"],$b={class:"item-uplaod flex items-center"},Db=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=e.ref({title:"",content:"",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg"}),a=()=>{l("update:show",!1)};return(i,s)=>{const d=e.resolveComponent("a-input"),u=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(u,{width:500,visible:n.show,footer:!1,onCancel:a,unmountOnClose:""},{title:e.withCtx(()=>{var m;return[e.createTextVNode(e.toDisplayString((m=n.data)==null?void 0:m.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",zb,[s[4]||(s[4]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(d,{modelValue:n.data.title,"onUpdate:modelValue":s[0]||(s[0]=m=>n.data.title=m),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),s[5]||(s[5]=e.createElementVNode("p",{class:"item-title mt-2"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.content,"onUpdate:modelValue":s[1]||(s[1]=m=>n.data.content=m),name:"CountDown_editor"},null,8,["modelValue"]),s[6]||(s[6]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:o.value.imgSrc},null,8,jb),e.createElementVNode("div",$b,[e.createVNode(d,{modelValue:o.value.imgSrc,"onUpdate:modelValue":s[2]||(s[2]=m=>o.value.imgSrc=m),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:o.value.imgSrc,"onUpdate:modelValue":s[3]||(s[3]=m=>o.value.imgSrc=m),name:"CountDown","button-class":"fit-content"},null,8,["modelValue"])])])]),_:1},8,["visible"])}}}),Ub=H(Db,[["__scopeId","data-v-e5d63e67"]]),Rb={class:"count-down__img"},Hb=["src"],Wb={class:"count-down__content"},Ib=["innerHTML"],Xb={class:"content__title"},qb={class:"count-down__timer"},Fb={class:"count-down__timer__time"},Yb={class:"count-down__timer__time"},Zb={class:"count-down__timer__time"},Gb={class:"count-down__timer__time"},Jb=e.defineComponent({name:"CountDown",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=e.ref({day:0,hour:0,min:0,sec:0}),d=e.ref(null),u=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},c=p=>{o("handlePaste",p)},r=()=>{var A;if(l.modelValue&&l.modelValue.data)return;const p={id:((A=l.modelValue)==null?void 0:A.id)||B(),type:"CountDown",title:"title",content:"content",countTime:"2025-08-08",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",bgColor:"#ffffff"};o("update:modelValue",p),e.nextTick(()=>{f()})},f=()=>{d.value&&clearInterval(d.value),d.value=setInterval(()=>{const p=new Date,v=new Date(l.modelValue.countTime).getTime()-p.getTime();v<=0||(s.value.day=Math.floor(v/(1e3*60*60*24)),s.value.hour=Math.floor(v/(1e3*60*60)%24),s.value.min=Math.floor(v/(1e3*60)%60),s.value.sec=Math.floor(v/1e3%60),s.value.day===0&&s.value.hour===0&&s.value.min===0&&s.value.sec===0&&(clearInterval(d.value),d.value=null))},1e3)};return r(),(p,A)=>{var v,w,V,h,g,y,N,C;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"count-down",onMouseenter:A[2]||(A[2]=b=>a.value=!0),onMouseleave:A[3]||(A[3]=b=>a.value=!1)},[e.createElementVNode("div",{style:e.normalizeStyle({backgroundColor:(v=n.modelValue)==null?void 0:v.bgColor,marginTop:"30px",marginBottom:"30px"}),class:"count-down-container"},[e.createElementVNode("div",Rb,[e.createElementVNode("img",{src:(w=n.modelValue)==null?void 0:w.imgSrc,alt:""},null,8,Hb)]),e.createElementVNode("div",Wb,[e.createElementVNode("div",{class:"content__text",innerHTML:(V=n.modelValue)==null?void 0:V.content},null,8,Ib),e.createElementVNode("div",Xb,e.toDisplayString((h=n.modelValue)==null?void 0:h.title),1)]),e.createElementVNode("ul",qb,[e.createElementVNode("li",null,[e.createElementVNode("div",Fb,e.toDisplayString((g=s.value)==null?void 0:g.day),1),A[5]||(A[5]=e.createElementVNode("div",{class:"count-down__timer__label"},"日",-1))]),e.createElementVNode("li",null,[e.createElementVNode("div",Yb,e.toDisplayString((y=s.value)==null?void 0:y.hour),1),A[6]||(A[6]=e.createElementVNode("div",{class:"count-down__timer__label"},"小时",-1))]),e.createElementVNode("li",null,[e.createElementVNode("div",Zb,e.toDisplayString((N=s.value)==null?void 0:N.min),1),A[7]||(A[7]=e.createElementVNode("div",{class:"count-down__timer__label"},"分钟",-1))]),e.createElementVNode("li",null,[e.createElementVNode("div",Gb,e.toDisplayString((C=s.value)==null?void 0:C.sec),1),A[8]||(A[8]=e.createElementVNode("div",{class:"count-down__timer__label"},"秒",-1))])])],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":A[0]||(A[0]=b=>a.value=b),onHandleEdit:A[1]||(A[1]=b=>i.value=!0),onHandleDelete:u,onHandleCopy:m,onHandlePaste:c},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ub,{key:0,show:i.value,"onUpdate:show":A[4]||(A[4]=b=>i.value=b),data:n.modelValue},null,8,["show","data"]))],64)}}}),hs=H(Jb,[["__scopeId","data-v-6578469f"]]),Kb={class:"seting-box"},Qb={class:"setting-header flex items-center"},ew={class:"setting-header flex items-center"},tw={class:"setting-header flex items-center"},lw=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-option"),d=e.resolveComponent("a-select"),u=e.resolveComponent("a-slider"),m=e.resolveComponent("a-input"),c=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(c,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=n.data)==null?void 0:r.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",Kb,[e.createElementVNode("div",Qb,[i[7]||(i[7]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(d,{modelValue:n.data.width,"onUpdate:modelValue":i[0]||(i[0]=r=>n.data.width=r),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(s,{value:"default"},{default:e.withCtx(()=>[...i[3]||(i[3]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(s,{value:"small"},{default:e.withCtx(()=>[...i[4]||(i[4]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(s,{value:"middle"},{default:e.withCtx(()=>[...i[5]||(i[5]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(s,{value:"max"},{default:e.withCtx(()=>[...i[6]||(i[6]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",ew,[i[8]||(i[8]=e.createElementVNode("span",{class:"header-title"},"组件高度",-1)),e.createVNode(u,{modelValue:n.data.height,"onUpdate:modelValue":i[1]||(i[1]=r=>n.data.height=r),min:320,max:1080,"default-value":10,"show-input":""},null,8,["modelValue"])]),e.createElementVNode("div",tw,[i[9]||(i[9]=e.createElementVNode("span",{class:"header-title"},"网址",-1)),e.createVNode(m,{modelValue:n.data.url,"onUpdate:modelValue":i[2]||(i[2]=r=>n.data.url=r),style:{background:"#ffffff"},placeholder:"请输入","allow-clear":""},null,8,["modelValue"])])])]),_:1},8,["visible"])}}}),ow=H(lw,[["__scopeId","data-v-b71264f4"]]),nw={class:"custom-iframe"},aw=["height","src"],iw=e.defineComponent({name:"CustomIframe",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1);e.ref({day:0,hour:0,min:0,sec:0}),e.ref(null);const s=e.computed(()=>{var p;const r=(p=l.modelValue)==null?void 0:p.width;return!r||r==="default"?"container-content":r.startsWith("container-content-")?r:{small:"acontainer-content-small",middle:"acontainer-content-middle",medium:"acontainer-content-middle",max:"acontainer-content-max"}[r]||"container-content"}),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=r=>{o("handlePaste",r)};return(()=>{var f;if(l.modelValue&&l.modelValue.height)return;const r={id:((f=l.modelValue)==null?void 0:f.id)||B(),type:"CustomIframe",width:"",height:550,url:"https://www.baidu.com"};o("update:modelValue",r)})(),(r,f)=>{var p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(p=n.modelValue)==null?void 0:p.bgColor}]),class:"custom-iframe-container",onMouseenter:f[2]||(f[2]=w=>a.value=!0),onMouseleave:f[3]||(f[3]=w=>a.value=!1)},[e.createElementVNode("div",nw,[e.createElementVNode("div",{class:e.normalizeClass([s.value])},[e.createElementVNode("iframe",{width:"450",height:(A=n.modelValue)==null?void 0:A.height,frameborder:"0",src:(v=n.modelValue)==null?void 0:v.url,allow:"",style:{border:"0"}},null,8,aw)],2)]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":f[0]||(f[0]=w=>a.value=w),onHandleEdit:f[1]||(f[1]=w=>i.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ow,{key:0,show:i.value,"onUpdate:show":f[4]||(f[4]=w=>i.value=w),data:n.modelValue},null,8,["show","data"]))],64)}}}),Vs=H(iw,[["__scopeId","data-v-4468f564"]]),sw={class:"seting-box"},rw={class:"setting-header items-center"},dw={key:0},cw={class:"draggable_box"},uw={class:"drag_top_box"},mw=["onClick"],Aw=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),o=e.ref(!1),a=n,i=e.ref(new Set),s=f=>{i.value.has(f.id)?i.value.delete(f.id):i.value.add(f.id)},d=f=>{a.data.data=a.data.data.filter(p=>p.id!==f)},u=()=>{a.data.data.push({name:"New Contact",title:"",region:"",link:"",id:B()}),e.nextTick(()=>{const p=document.querySelector(".arco-drawer-body");p&&(p.scrollTop=p.scrollHeight)})},m=f=>i.value.has(f.id),c=t,r=()=>{c("update:show",!1)};return(f,p)=>{const A=e.resolveComponent("a-slider"),v=e.resolveComponent("icon-drag-dot"),w=e.resolveComponent("icon-drag-arrow"),V=e.resolveComponent("icon-delete"),h=e.resolveComponent("a-input"),g=e.resolveComponent("icon-plus"),y=e.resolveComponent("a-button"),N=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(N,{width:500,visible:n.show,footer:!1,onCancel:r,unmountOnClose:""},{title:e.withCtx(()=>{var C;return[e.createTextVNode(e.toDisplayString((C=n.data)==null?void 0:C.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",sw,[e.createElementVNode("div",rw,[p[9]||(p[9]=e.createElementVNode("p",{class:"item-title"},"组件高度(最小值: 1, 最大值: 2)",-1)),e.createVNode(A,{modelValue:n.data.columns,"onUpdate:modelValue":p[0]||(p[0]=C=>n.data.columns=C),min:1,max:2,"default-value":2,"show-input":""},null,8,["modelValue"]),p[10]||(p[10]=e.createElementVNode("p",{class:"item-title"},"Contact Person",-1)),n.data.data.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",dw,"No items found.")),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":p[1]||(p[1]=C=>n.data.data=C),"component-data":{tag:"div",type:"transition-group",name:o.value?null:"flip-list"}},l.value,{disabled:!1,onStart:p[2]||(p[2]=C=>o.value=!0),onEnd:p[3]||(p[3]=C=>o.value=!1),"item-key":"id"}),{item:e.withCtx(({element:C})=>[e.createElementVNode("div",cw,[e.createElementVNode("div",uw,[e.createElementVNode("div",{onClick:b=>s(C)},[e.createVNode(v,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(C.name),1)],8,mw),e.createElementVNode("div",null,[e.createVNode(w,{class:"icon_drag"}),e.createVNode(V,{class:"btn-delete",onClick:e.withModifiers(b=>d(C.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[p[4]||(p[4]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Name",-1)),e.createVNode(h,{modelValue:C.name,"onUpdate:modelValue":b=>C.name=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),p[5]||(p[5]=e.createElementVNode("p",{class:"item-title"},"Title",-1)),e.createVNode(h,{modelValue:C.title,"onUpdate:modelValue":b=>C.title=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),p[6]||(p[6]=e.createElementVNode("p",{class:"item-title"},"Region",-1)),e.createVNode(h,{modelValue:C.region,"onUpdate:modelValue":b=>C.region=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),p[7]||(p[7]=e.createElementVNode("p",{class:"item-title"},"Email",-1)),e.createVNode(h,{modelValue:C.link,"onUpdate:modelValue":b=>C.link=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!m(C)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"]),e.createVNode(y,{type:"primary",onClick:u},{icon:e.withCtx(()=>[e.createVNode(g)]),default:e.withCtx(()=>[p[8]||(p[8]=e.createTextVNode(" 联系人 ",-1))]),_:1})])])]),_:1},8,["visible"])}}}),pw=H(Aw,[["__scopeId","data-v-3ba11141"]]),fi="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19%204H5C4.20435%204%203.44129%204.31607%202.87868%204.87868C2.31607%205.44129%202%206.20435%202%207V17C2%2017.7956%202.31607%2018.5587%202.87868%2019.1213C3.44129%2019.6839%204.20435%2020%205%2020H19C19.7956%2020%2020.5587%2019.6839%2021.1213%2019.1213C21.6839%2018.5587%2022%2017.7956%2022%2017V7C22%206.20435%2021.6839%205.44129%2021.1213%204.87868C20.5587%204.31607%2019.7956%204%2019%204ZM19%206L12.5%2010.47C12.348%2010.5578%2012.1755%2010.604%2012%2010.604C11.8245%2010.604%2011.652%2010.5578%2011.5%2010.47L5%206H19Z'%20fill='%230032A0'/%3e%3c/svg%3e",fw={class:"contact-us-list"},vw={class:"contact-us-list__list"},hw={class:"contact-us-list__item"},Vw={class:"contact-us-list__item__name"},gw={class:"contact-us-list__item__title"},yw={class:"contact-us-list__item__region"},bw={class:"contact-us-list__item__link"},ww={class:"icon-link icon-link--md"},xw=["href"],kw={class:"icon-link__text"},Nw=e.defineComponent({name:"ContactUsList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=()=>{o("handleDelete",l.modelValue.id)},d=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return(()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"ContactUsList",columns:2,data:[{name:"New Contact111",title:"title1111",region:"region111",link:"111@qq.com",id:B()},{name:"New Contact111222",title:"title12222",region:"region111",link:"111@qq.com",id:B()},{name:"New Contac33333",title:"title3333",region:"region33333",link:"111@qq.com",id:B()}]};o("update:modelValue",c)})(),(c,r)=>{var A;const f=e.resolveComponent("a-col"),p=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(A=n.modelValue)==null?void 0:A.bgColor}]),class:"contact_wrap",onMouseenter:r[2]||(r[2]=v=>a.value=!0),onMouseleave:r[3]||(r[3]=v=>a.value=!1)},[e.createElementVNode("div",fw,[e.createElementVNode("div",null,[e.createElementVNode("ul",vw,[e.createVNode(p,{style:{display:"flex"}},{default:e.withCtx(()=>{var v;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=n.modelValue)==null?void 0:v.data,w=>{var V,h,g,y;return e.openBlock(),e.createBlock(f,{sm:{span:((V=n.modelValue)==null?void 0:V.columns)===2?12:24},md:{span:((h=n.modelValue)==null?void 0:h.columns)===2?12:24},lg:{span:((g=n.modelValue)==null?void 0:g.columns)===2?12:24},xl:{span:((y=n.modelValue)==null?void 0:y.columns)===2?12:24},style:{"margin-top":"16px"}},{default:e.withCtx(()=>[e.createElementVNode("li",hw,[e.createElementVNode("h6",Vw,e.toDisplayString(w.name),1),e.createElementVNode("p",gw,e.toDisplayString(w.title),1),e.createElementVNode("div",yw,e.toDisplayString(w.region),1),e.createElementVNode("div",bw,[e.createElementVNode("div",ww,[e.createElementVNode("a",{href:`mailto:${w.link}`,target:"_blank",class:"icon-link__wrapper"},[e.createElementVNode("span",{class:"icon-link__icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(fi)})`})},null,4),e.createElementVNode("div",kw,[e.createElementVNode("span",null,e.toDisplayString(w.link),1)])],8,xw)])])])]),_:2},1032,["sm","md","lg","xl"])}),256))]}),_:1})])])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":r[0]||(r[0]=v=>a.value=v),onHandleEdit:r[1]||(r[1]=v=>i.value=!0),onHandleDelete:s,onHandleCopy:d,onHandlePaste:u},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(pw,{key:0,show:i.value,"onUpdate:show":r[4]||(r[4]=v=>i.value=v),data:n.modelValue},null,8,["show","data"]))],64)}}}),gs=H(Nw,[["__scopeId","data-v-161661a9"]]),_w={class:"seting-box"},Cw={key:0},Ew={class:"setting-header items-center"},Tw={class:"draggable_box"},Sw={class:"drag_top_box"},Pw=["onClick"],Bw={key:1},Lw={class:"setting-header items-center"},Ow={class:"draggable_box"},Mw={class:"drag_top_box"},zw=["onClick"],jw=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),o=e.ref(!1),a=n,i=e.ref(new Set),s=e.ref(new Set),d=V=>{s.value.has(V.id)?s.value.delete(V.id):s.value.add(V.id)},u=V=>{i.value.has(V.id)?i.value.delete(V.id):i.value.add(V.id)},m=V=>{a.data.headers=a.data.headers.filter(h=>h.id!==V)},c=V=>{a.data.rows=a.data.rows.filter(h=>h.id!==V)},r=()=>{a.data.rows.push({title:"请输入",first:"",second:"",third:"",forth:"",id:B()})},f=()=>{a.data.headers.push({title:"请输入",id:B()}),e.nextTick(()=>{const h=document.querySelector(".arco-drawer-body");h&&(h.scrollTop=h.scrollHeight)})},p=V=>i.value.has(V.id),A=V=>s.value.has(V.id),v=t,w=()=>{v("update:show",!1)};return(V,h)=>{const g=e.resolveComponent("icon-drag-dot"),y=e.resolveComponent("icon-drag-arrow"),N=e.resolveComponent("icon-delete"),C=e.resolveComponent("a-input"),b=e.resolveComponent("icon-plus"),x=e.resolveComponent("a-button"),E=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(E,{width:500,visible:n.show,footer:!1,onCancel:w,unmountOnClose:""},{title:e.withCtx(()=>{var _;return[e.createTextVNode(e.toDisplayString((_=n.data)==null?void 0:_.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",_w,[h[14]||(h[14]=e.createElementVNode("div",{class:"part_title"},"表格头部",-1)),n.data.headers.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Cw,"暂无数据")),e.createElementVNode("div",Ew,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.headers,"onUpdate:modelValue":h[0]||(h[0]=_=>n.data.headers=_),"component-data":{tag:"div",type:"transition-group",name:o.value?null:"flip-list"}},l.value,{disabled:!1,onStart:h[1]||(h[1]=_=>o.value=!0),onEnd:h[2]||(h[2]=_=>o.value=!1),"item-key":"id"}),{item:e.withCtx(({element:_})=>[e.createElementVNode("div",Tw,[e.createElementVNode("div",Sw,[e.createElementVNode("div",{onClick:T=>u(_)},[e.createVNode(g,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(_.title),1)],8,Pw),e.createElementVNode("div",null,[e.createVNode(y,{class:"icon_drag"}),e.createVNode(N,{class:"btn-delete",onClick:e.withModifiers(T=>m(_.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[h[6]||(h[6]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Title",-1)),e.createVNode(C,{modelValue:_.title,"onUpdate:modelValue":T=>_.title=T,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!p(_)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"])]),e.createVNode(x,{type:"primary",onClick:f},{icon:e.withCtx(()=>[e.createVNode(b)]),default:e.withCtx(()=>[h[7]||(h[7]=e.createTextVNode(" 新增 ",-1))]),_:1}),h[15]||(h[15]=e.createElementVNode("div",{style:{"margin-top":"30px"},class:"part_title"},"表格行",-1)),n.data.rows.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Bw,"暂无数据")),e.createElementVNode("div",Lw,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.rows,"onUpdate:modelValue":h[3]||(h[3]=_=>n.data.rows=_),"component-data":{tag:"div",type:"transition-group",name:o.value?null:"flip-list"}},l.value,{disabled:!1,onStart:h[4]||(h[4]=_=>o.value=!0),onEnd:h[5]||(h[5]=_=>o.value=!1),"item-key":"id"}),{item:e.withCtx(({element:_})=>[e.createElementVNode("div",Ow,[e.createElementVNode("div",Mw,[e.createElementVNode("div",{onClick:T=>d(_)},[e.createVNode(g,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(_.title),1)],8,zw),e.createElementVNode("div",null,[e.createVNode(y,{class:"icon_drag"}),e.createVNode(N,{class:"btn-delete",onClick:e.withModifiers(T=>c(_.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[h[8]||(h[8]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Title",-1)),e.createVNode(C,{modelValue:_.title,"onUpdate:modelValue":T=>_.title=T,placeholder:"请输入","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[9]||(h[9]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"First",-1)),e.createVNode(C,{modelValue:_.first,"onUpdate:modelValue":T=>_.first=T,placeholder:"请输入","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[10]||(h[10]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Second",-1)),e.createVNode(C,{modelValue:_.second,"onUpdate:modelValue":T=>_.second=T,placeholder:"请输入","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[11]||(h[11]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Third",-1)),e.createVNode(C,{modelValue:_.third,"onUpdate:modelValue":T=>_.third=T,placeholder:"请输入","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[12]||(h[12]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Forth",-1)),e.createVNode(C,{modelValue:_.forth,"onUpdate:modelValue":T=>_.forth=T,placeholder:"请输入","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!A(_)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"])]),e.createVNode(x,{type:"primary",onClick:r},{icon:e.withCtx(()=>[e.createVNode(b)]),default:e.withCtx(()=>[h[13]||(h[13]=e.createTextVNode(" 新增 ",-1))]),_:1})])]),_:1},8,["visible"])}}}),$w=H(jw,[["__scopeId","data-v-1f0c946c"]]),Dw={class:"count-down"},Uw={class:"table-two"},Rw={class:"table-two__wrapper"},Hw={class:"tableTwo"},Ww={key:0,class:"tableTwo__th"},Iw={key:0},Xw={class:"tableTwo__row"},qw=e.defineComponent({name:"TableTwo",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=()=>{o("handleDelete",l.modelValue.id)},d=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return(()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"TableTwo",headers:[{title:1},{title:2},{title:3},{title:4},{title:5}],rows:[{title:"1",first:"1",second:"1",third:"1",forth:"1"},{title:"2",first:"2",second:"2",third:"2",forth:"2"}]};o("update:modelValue",c)})(),(c,r)=>{var f;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(f=n.modelValue)==null?void 0:f.bgColor}]),class:"table-two-container",onMouseenter:r[2]||(r[2]=p=>a.value=!0),onMouseleave:r[3]||(r[3]=p=>a.value=!1)},[e.createElementVNode("div",Dw,[e.createElementVNode("div",Uw,[e.createElementVNode("div",Rw,[e.createElementVNode("table",Hw,[e.createElementVNode("thead",null,[n.modelValue&&n.modelValue.headers&&n.modelValue.headers.length?(e.openBlock(),e.createElementBlock("tr",Ww,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.modelValue.headers,p=>(e.openBlock(),e.createElementBlock("th",null,[e.createElementVNode("p",null,e.toDisplayString(p.title),1)]))),256))])):e.createCommentVNode("",!0)]),n.modelValue&&n.modelValue.rows&&n.modelValue.rows.length?(e.openBlock(),e.createElementBlock("tbody",Iw,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.modelValue.rows,p=>(e.openBlock(),e.createElementBlock("tr",Xw,[e.createElementVNode("td",null,e.toDisplayString(p.title),1),e.createElementVNode("td",null,e.toDisplayString(p.first),1),e.createElementVNode("td",null,e.toDisplayString(p.second),1),e.createElementVNode("td",null,e.toDisplayString(p.third),1),e.createElementVNode("td",null,e.toDisplayString(p.forth),1)]))),256))])):e.createCommentVNode("",!0)])])])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":r[0]||(r[0]=p=>a.value=p),onHandleEdit:r[1]||(r[1]=p=>i.value=!0),onHandleDelete:s,onHandleCopy:d,onHandlePaste:u},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($w,{key:0,show:i.value,"onUpdate:show":r[4]||(r[4]=p=>i.value=p),data:n.modelValue},null,8,["show","data"]))],64)}}}),ys=H(qw,[["__scopeId","data-v-78e41c69"]]),Fw={class:"seting-box"},Yw=["src"],Zw={class:"item-uplaod flex items-center"},Gw={key:2,class:"link-title-box"},Jw={key:3},Kw=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=e.ref(!1),a=()=>{l("update:show",!1)},i=()=>{o.value=!1},s=()=>{o.value=!o.value};return(d,u)=>{const m=e.resolveComponent("a-input"),c=e.resolveComponent("a-divider"),r=e.resolveComponent("a-button"),f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(A,{width:500,visible:n.show,footer:!1,onCancel:a,unmountOnClose:""},{title:e.withCtx(()=>{var v;return[e.createTextVNode(e.toDisplayString((v=n.data)==null?void 0:v.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>{var v,w;return[e.createElementVNode("div",Fw,[u[14]||(u[14]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(m,{modelValue:n.data.title,"onUpdate:modelValue":u[0]||(u[0]=V=>n.data.title=V),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),u[15]||(u[15]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),(v=n.data)!=null&&v.image?(e.openBlock(),e.createElementBlock("img",{key:0,class:"item-img",src:(w=n.data)==null?void 0:w.image},null,8,Yw)):e.createCommentVNode("",!0),e.createElementVNode("div",Zw,[e.createVNode(m,{modelValue:n.data.image,"onUpdate:modelValue":u[1]||(u[1]=V=>n.data.image=V),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.image,"onUpdate:modelValue":u[2]||(u[2]=V=>n.data.image=V),name:"BannerImageWithLink","button-class":"fit-content"},null,8,["modelValue"])]),e.createVNode(c,{class:"divider_box",type:"dashed",size:1}),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,{key:1,type:"outline",onClick:s},{default:e.withCtx(()=>[...u[6]||(u[6]=[e.createTextVNode("添加链接",-1)])]),_:1})),o.value?(e.openBlock(),e.createElementBlock("div",Gw,[u[8]||(u[8]=e.createElementVNode("h4",null,"链接",-1)),e.createVNode(r,{type:"text",onClick:i},{default:e.withCtx(()=>[...u[7]||(u[7]=[e.createTextVNode("移除",-1)])]),_:1})])):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",Jw,[u[11]||(u[11]=e.createElementVNode("p",{class:"item-title"},"文本",-1)),e.createVNode(m,{modelValue:n.data.text,"onUpdate:modelValue":u[3]||(u[3]=V=>n.data.text=V),placeholder:"请输入文本","allow-clear":""},null,8,["modelValue"]),u[12]||(u[12]=e.createElementVNode("p",{class:"item-title"},"链接类型",-1)),e.createVNode(p,{modelValue:n.data.linkType,"onUpdate:modelValue":u[4]||(u[4]=V=>n.data.linkType=V),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"External Link"},{default:e.withCtx(()=>[...u[9]||(u[9]=[e.createTextVNode("外部链接",-1)])]),_:1}),e.createVNode(f,{value:"Internal Link"},{default:e.withCtx(()=>[...u[10]||(u[10]=[e.createTextVNode("内容链接",-1)])]),_:1})]),_:1},8,["modelValue"]),u[13]||(u[13]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(m,{modelValue:n.data.link,"onUpdate:modelValue":u[5]||(u[5]=V=>n.data.link=V),placeholder:"请输入链接","allow-clear":""},null,8,["modelValue"])])):e.createCommentVNode("",!0)])]}),_:1},8,["visible"])}}}),Qw=H(Kw,[["__scopeId","data-v-f13d1ac5"]]),ex={class:"banner-image-with-link"},tx={class:"banner-body"},lx={class:"banner-body__title"},ox={class:"banner-body__link"},nx={class:"circle-link circle-link--light"},ax=["href"],ix=e.defineComponent({name:"BannerImageWithLink",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=()=>{o("handleDelete",l.modelValue.id)},d=()=>{o("handleCopy",l.modelValue)},u=f=>{o("handlePaste",f)},m=f=>{o("handleClick",f)};(()=>{var p;if(l.modelValue&&l.modelValue.data)return;const f={id:((p=l.modelValue)==null?void 0:p.id)||B(),type:"BannerImageWithLink",title:"bing-bannerImgLink",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/pdf/TX%20Brochure%20Cover_optim_origin.png",text:"哈哈哈",linkType:"External Link",link:"https://www.baidu.com"};o("update:modelValue",f),console.log("props.modelValue111111111",l.modelValue)})();const r=e.computed(()=>{var p;return(p=l.modelValue)!=null&&p.image?`url(${l.modelValue.image})`:"none"});return(f,p)=>{var A,v,w,V,h,g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(A=n.modelValue)==null?void 0:A.bgColor}]),class:"custom-iframe-container",onMouseenter:p[3]||(p[3]=y=>a.value=!0),onMouseleave:p[4]||(p[4]=y=>a.value=!1)},[e.createElementVNode("div",ex,[e.createElementVNode("div",{class:"banner-wrapper",style:e.normalizeStyle({"--bg-image":r.value})},[e.createElementVNode("div",tx,[e.createElementVNode("div",lx,e.toDisplayString(((v=n.modelValue)==null?void 0:v.title)||"title"),1),e.createElementVNode("div",ox,[e.createElementVNode("div",nx,[(w=n.modelValue)!=null&&w.link&&n.modelValue.link.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:n.modelValue.link,target:"_blank"},[e.createElementVNode("div",null,e.toDisplayString(((V=n.modelValue)==null?void 0:V.text)||"bing-placholder"),1),p[6]||(p[6]=e.createElementVNode("span",{class:"circle-link__icon circle-link__icon--light"},null,-1))],8,ax)):(h=n.modelValue)!=null&&h.link?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:p[0]||(p[0]=y=>m(n.modelValue.link))},[e.createElementVNode("div",null,e.toDisplayString(((g=n.modelValue)==null?void 0:g.text)||"bing-placholder"),1),p[7]||(p[7]=e.createElementVNode("span",{class:"circle-link__icon circle-link__icon--light"},null,-1))])):e.createCommentVNode("",!0)])])])],4)]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":p[1]||(p[1]=y=>a.value=y),onHandleEdit:p[2]||(p[2]=y=>i.value=!0),onHandleDelete:s,onHandleCopy:d,onHandlePaste:u},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Qw,{key:0,show:i.value,"onUpdate:show":p[5]||(p[5]=y=>i.value=y),data:n.modelValue},null,8,["show","data"]))],64)}}}),bs=H(ix,[["__scopeId","data-v-3189597f"]]),sx={class:"seting-box"},rx=["src"],dx={class:"item-uplaod flex items-center"},cx={key:0},ux=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=e.ref([]),a=t,i=()=>{a("update:show",!1)},s=u=>{o.value=o.value.filter(m=>m!==l.data.linkList[u].type),l.data.linkList.splice(u,1)},d=u=>{o.value.includes(u)||(o.value.push(u),l.data.linkList.push({type:u,text:"",url:"",linkType:"textOnly"}))};return(u,m)=>{const c=e.resolveComponent("a-option"),r=e.resolveComponent("a-select"),f=e.resolveComponent("a-input"),p=e.resolveComponent("a-button"),A=e.resolveComponent("a-button-group"),v=e.resolveComponent("icon-close"),w=e.resolveComponent("a-collapse-item"),V=e.resolveComponent("a-collapse"),h=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(h,{width:600,visible:n.show,footer:!1,onCancel:i,unmountOnClose:""},{title:e.withCtx(()=>{var g;return[e.createTextVNode(e.toDisplayString((g=n.data)==null?void 0:g.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",sx,[m[28]||(m[28]=e.createElementVNode("p",{class:"item-title"},"内容宽度",-1)),e.createVNode(r,{style:{width:"320px",background:"#ffffff"},modelValue:n.data.width,"onUpdate:modelValue":m[0]||(m[0]=g=>n.data.width=g),placeholder:"Please select ..."},{default:e.withCtx(()=>[e.createVNode(c,{value:800},{default:e.withCtx(()=>[...m[11]||(m[11]=[e.createTextVNode("Small Width",-1)])]),_:1}),e.createVNode(c,{value:952},{default:e.withCtx(()=>[...m[12]||(m[12]=[e.createTextVNode("Default Width",-1)])]),_:1}),e.createVNode(c,{value:1208},{default:e.withCtx(()=>[...m[13]||(m[13]=[e.createTextVNode("Middle Width",-1)])]),_:1}),e.createVNode(c,{value:1920},{default:e.withCtx(()=>[...m[14]||(m[14]=[e.createTextVNode("Max Width",-1)])]),_:1})]),_:1},8,["modelValue"]),m[29]||(m[29]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(f,{modelValue:n.data.title,"onUpdate:modelValue":m[1]||(m[1]=g=>n.data.title=g),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),m[30]||(m[30]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:n.data.image},null,8,rx),e.createElementVNode("div",dx,[e.createVNode(f,{modelValue:n.data.image,"onUpdate:modelValue":m[2]||(m[2]=g=>n.data.image=g),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.image,"onUpdate:modelValue":m[3]||(m[3]=g=>n.data.image=g),name:"ContactUsInfo","button-class":"fit-content"},null,8,["modelValue"])]),m[31]||(m[31]=e.createElementVNode("p",{class:"item-title"},"Image Alt",-1)),e.createVNode(f,{modelValue:n.data.imageAlt,"onUpdate:modelValue":m[4]||(m[4]=g=>n.data.imageAlt=g),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),m[32]||(m[32]=e.createElementVNode("p",{class:"item-title"}," Add Contact Method (This order will not be reflected on page.) ",-1)),e.createVNode(A,{type:"primary"},{default:e.withCtx(()=>[o.value.includes("pin")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:0,onClick:m[5]||(m[5]=g=>d("pin"))},{default:e.withCtx(()=>[...m[15]||(m[15]=[e.createTextVNode(" Address ",-1)])]),_:1})),o.value.includes("googleMap")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:1,onClick:m[6]||(m[6]=g=>d("googleMap"))},{default:e.withCtx(()=>[...m[16]||(m[16]=[e.createTextVNode(" Google Map ",-1)])]),_:1})),o.value.includes("baiduMap")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:2,onClick:m[7]||(m[7]=g=>d("baiduMap"))},{default:e.withCtx(()=>[...m[17]||(m[17]=[e.createTextVNode(" Baidu Map ",-1)])]),_:1})),o.value.includes("email")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:3,onClick:m[8]||(m[8]=g=>d("email"))},{default:e.withCtx(()=>[...m[18]||(m[18]=[e.createTextVNode(" Email ",-1)])]),_:1})),o.value.includes("phone")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:4,onClick:m[9]||(m[9]=g=>d("phone"))},{default:e.withCtx(()=>[...m[19]||(m[19]=[e.createTextVNode(" Phone ",-1)])]),_:1})),o.value.includes("fax")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:5,onClick:m[10]||(m[10]=g=>d("fax"))},{default:e.withCtx(()=>[...m[20]||(m[20]=[e.createTextVNode(" Fax ",-1)])]),_:1}))]),_:1}),e.createElementVNode("div",null,[e.createVNode(V,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data.linkList,(g,y)=>(e.openBlock(),e.createBlock(w,{header:g.type+g.text,key:y},{"expand-icon":e.withCtx(()=>[...m[21]||(m[21]=[])]),extra:e.withCtx(()=>[e.createVNode(v,{onClick:e.withModifiers(()=>s(y),["stop"])},null,8,["onClick"])]),default:e.withCtx(()=>[o.value.includes(g.type)?(e.openBlock(),e.createElementBlock("div",cx,[m[25]||(m[25]=e.createElementVNode("p",null,"Text",-1)),e.createVNode(f,{modelValue:g.text,"onUpdate:modelValue":N=>g.text=N,placeholder:"请输入内容","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),m[26]||(m[26]=e.createElementVNode("p",{class:"item-title"},"Link Type",-1)),e.createVNode(r,{style:{width:"320px",background:"#ffffff"},modelValue:g.linkType,"onUpdate:modelValue":N=>g.linkType=N,placeholder:"Please select ..."},{default:e.withCtx(()=>[e.createVNode(c,{value:"internalLink"},{default:e.withCtx(()=>[...m[22]||(m[22]=[e.createTextVNode("Internal Link",-1)])]),_:1}),e.createVNode(c,{value:"externalLink"},{default:e.withCtx(()=>[...m[23]||(m[23]=[e.createTextVNode("External Link",-1)])]),_:1}),e.createVNode(c,{value:"textOnly"},{default:e.withCtx(()=>[...m[24]||(m[24]=[e.createTextVNode("Text-only",-1)])]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"]),m[27]||(m[27]=e.createElementVNode("p",{class:"item-title"},"Url",-1)),e.createVNode(f,{modelValue:g.url,"onUpdate:modelValue":N=>g.url=N,"allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0)]),_:2},1032,["header"]))),128))]),_:1})])])]),_:1},8,["visible"])}}}),mx=H(ux,[["__scopeId","data-v-ee1a117b"]]),pr="data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.27916%2012.5392C8.45404%2012.0722%208.1578%209.47241%208.09244%208.90418C7.98596%208.02917%206.95597%206.49842%205.557%206.61966C3.79643%206.77779%203.54025%209.31955%203.54025%209.31955C3.302%2010.495%204.10954%2013.0062%206.27916%2012.5392ZM8.58793%2017.0597C8.52467%2017.2421%208.38235%2017.7091%208.5057%2018.1161C8.74817%2019.029%209.54096%2019.0702%209.54096%2019.0702H10.6795V16.287H9.45978C8.91158%2016.4493%208.64802%2016.8763%208.58793%2017.0597ZM10.3148%208.18098C11.5166%208.18098%2012.4865%206.79782%2012.4865%205.08891C12.4865%203.38105%2011.5166%202%2010.3148%202C9.1161%202%208.14304%203.38105%208.14304%205.08891C8.14304%206.79782%209.1161%208.18098%2010.3148%208.18098ZM15.4889%208.38444C17.0935%208.59318%2018.1256%206.88005%2018.3312%205.58123C18.541%204.28453%2017.5046%202.77908%2016.3682%202.51974C15.2296%202.25829%2013.8074%204.08317%2013.6778%205.27129C13.5228%206.72613%2013.8855%208.17887%2015.4889%208.38444ZM15.4889%2012.0194C13.5228%208.95689%2010.7312%2010.203%209.79608%2011.7612C8.8673%2013.3183%207.41773%2014.3019%207.21215%2014.5633C7.00341%2014.8205%204.2118%2016.327%204.83169%2019.0797C5.45053%2021.8301%207.62752%2021.7785%207.62752%2021.7785C7.62752%2021.7785%209.23101%2021.9366%2011.0917%2021.5191C12.9535%2021.1069%2014.5559%2021.6225%2014.5559%2021.6225C14.5559%2021.6225%2018.9047%2023.0773%2020.0938%2020.2752C21.283%2017.4709%2019.4223%2016.0182%2019.4223%2016.0182C19.4223%2016.0182%2016.9385%2014.0963%2015.4879%2012.0194H15.4889ZM9.15511%2020.1898C7.9343%2019.9462%207.4483%2019.1134%207.38716%2018.9711C7.32706%2018.8266%206.98022%2018.1572%207.16366%2017.0176C7.69077%2015.3108%209.19517%2015.1885%209.19517%2015.1885H10.7006V13.3383L11.9815%2013.3594V20.1898H9.15616H9.15511ZM13.994%2020.1697C12.7332%2019.845%2012.6752%2018.9489%2012.6752%2018.9489V15.3519L13.994%2015.3308V18.5631C14.0752%2018.9089%2014.5032%2018.9711%2014.5032%2018.9711H15.8432V15.3519H17.2474V20.1697H13.994ZM21.8523%2010.5657C21.8523%209.94366%2021.3357%208.07344%2019.4223%208.07344C17.5046%208.07344%2017.2485%209.83929%2017.2485%2011.0875C17.2485%2012.2788%2017.3486%2013.9413%2019.7301%2013.8886C22.1127%2013.8359%2021.8523%2011.1898%2021.8523%2010.5657Z'%20fill='%230048E8'/%3e%3c/svg%3e",fr="data:image/svg+xml,%3csvg%20width='23'%20height='24'%20viewBox='0%200%2023%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.3826%206C18.3745%208.17%2018.1486%2010.73%2017.0585%2012.81C16.1353%2014.5%2014.8094%2015.93%2013.6799%2017.5C13.1888%2018.2%2012.6978%2018.95%2012.3344%2019.76C12.2067%2020.03%2012.1183%2020.31%2012.0201%2020.59C11.9219%2020.87%2011.8335%2021.15%2011.7451%2021.43C11.6567%2021.69%2011.5486%2022%2011.2245%2022C10.8415%2022%2010.7335%2021.56%2010.6549%2021.26C10.4192%2020.53%2010.1835%2019.83%209.82008%2019.16C9.40758%2018.37%208.88704%2017.64%208.35668%2016.93L17.3826%206ZM8.39597%208.42L5.1549%2012.34C5.75401%2013.63%206.64775%2014.73%207.50222%2015.83C7.70847%2016.08%207.91472%2016.34%208.11115%2016.61L12.2067%2011.67L12.1674%2011.68C10.7335%2012.18%209.1424%2011.44%208.57276%2010C8.49418%209.83%208.43525%209.63%208.39597%209.43C8.34193%209.09894%208.34193%208.76106%208.39597%208.43V8.42ZM5.90133%204.62L5.89151%204.63C4.30043%206.68%204.02543%209.53%204.97811%2011.94L8.89686%207.2L8.84775%207.15L5.90133%204.62ZM13.4049%202.36L10.2424%206.17L10.2817%206.16C11.5978%205.7%2013.071%206.28%2013.7388%207.5C13.8861%207.78%2014.004%208.08%2014.0433%208.38C14.1022%208.76%2014.1219%209.03%2014.0531%209.4V9.41L17.196%205.61C16.3744%204.08939%2015.0266%202.93445%2013.4147%202.37L13.4049%202.36ZM9.15222%206.89L12.9924%202.24L12.9531%202.23C12.3835%202.08%2011.804%202%2011.2245%202C9.28972%202%207.46293%202.85%206.1665%204.31L6.14686%204.32L9.15222%206.89Z'%20fill='%23001E60'/%3e%3cg%20clip-path='url(%23clip0_1307_138886)'%3e%3cpath%20d='M8.32617%2016.8164C8.90147%2017.5536%209.42506%2018.33%209.89316%2019.1402C10.2928%2019.9022%2010.4595%2020.4189%2010.7515%2021.337C10.9307%2021.8442%2011.0926%2021.9956%2011.4406%2021.9956C11.8199%2021.9956%2011.992%2021.7381%2012.125%2021.3397C12.4011%2020.4727%2012.6177%2019.811%2012.9595%2019.1858C13.6302%2017.9787%2014.4636%2016.9061%2015.2824%2015.8752C15.5041%2015.5834%2016.9374%2013.8836%2017.5827%2012.5424C17.5827%2012.5424%2018.3757%2011.0691%2018.3757%209.01152C18.3757%207.08683%2017.5936%205.75195%2017.5936%205.75195L15.3418%206.35827L13.9744%209.97958L13.636%2010.4789L13.5684%2010.5694L13.4784%2010.6826L13.3205%2010.8635L13.0948%2011.0904L11.8771%2012.0879L8.83262%2013.8553L8.32617%2016.8164Z'%20fill='%2334A853'/%3e%3cpath%20d='M5.18359%2012.2931C5.92663%2013.9995%207.35947%2015.4996%208.32891%2016.816L13.478%2010.6833C13.478%2010.6833%2012.7526%2011.6372%2011.4367%2011.6372C9.97096%2011.6372%208.78685%2010.4604%208.78685%208.97644C8.78685%207.95884%209.39573%207.25977%209.39573%207.25977L5.9004%208.20146L5.18359%2012.293V12.2931Z'%20fill='%23FBBC04'/%3e%3cpath%20d='M13.5353%202.31451C15.2454%202.86889%2016.7092%204.03276%2017.5945%205.749L13.4794%2010.6797C13.4794%2010.6797%2014.0882%209.96797%2014.0882%208.95669C14.0882%207.43821%2012.8165%206.30383%2011.4427%206.30383C10.1436%206.30383%209.39746%207.25614%209.39746%207.25614V4.14988L13.5353%202.31445V2.31451Z'%20fill='%234285F4'/%3e%3cpath%20d='M6.12695%204.49401C7.14836%203.26529%208.94565%202%2011.4235%202C12.6257%202%2013.5313%202.31733%2013.5313%202.31733L9.39389%207.25973H6.46245L6.12695%204.49406V4.49401Z'%20fill='%231A73E8'/%3e%3cpath%20d='M5.18358%2012.294C5.18358%2012.294%204.5%2010.948%204.5%208.99817C4.5%207.15528%205.21252%205.54438%206.12683%204.49414L9.3961%207.26029L5.18358%2012.294Z'%20fill='%23EA4335'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1307_138886'%3e%3crect%20width='13.8753'%20height='20'%20fill='white'%20transform='translate(4.5%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",vr="data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.72757%206.13843L6.9432%203.92483C7.0995%203.76785%207.28527%203.64329%207.48984%203.55832C7.69442%203.47335%207.91376%203.42963%208.13528%203.42969C8.58673%203.42969%209.01113%203.60653%209.32944%203.92483L11.7136%206.30902C11.8706%206.46532%2011.9951%206.65109%2012.0801%206.85567C12.1651%207.06024%2012.2088%207.27959%2012.2087%207.50112C12.2087%207.95257%2012.0319%208.37698%2011.7136%208.69529L9.97021%2010.4387C10.3783%2011.3382%2010.9457%2012.1565%2011.6449%2012.8541C12.3425%2013.5551%2013.1607%2014.1245%2014.0603%2014.5351L15.8037%2012.7917C15.96%2012.6347%2016.1457%2012.5101%2016.3503%2012.4252C16.5549%2012.3402%2016.7742%2012.2965%2016.9958%2012.2965C17.4472%2012.2965%2017.8716%2012.4734%2018.1899%2012.7917L20.5761%2015.1738C20.7333%2015.3304%2020.858%2015.5165%2020.943%2015.7214C21.0279%2015.9264%2021.0715%2016.1461%2021.0713%2016.368C21.0713%2016.8194%2020.8945%2017.2438%2020.5761%2017.5621L18.3647%2019.7737C17.857%2020.2834%2017.156%2020.5725%2016.4361%2020.5725C16.2843%2020.5725%2016.1386%2020.5601%2015.9951%2020.5351C13.1907%2020.0732%2010.4092%2018.5816%208.16441%2016.3388C5.92172%2014.0982%204.43215%2011.3187%203.96405%208.50597C3.82259%207.64675%204.1076%206.76256%204.72757%206.13843Z'%20fill='%230032A0'/%3e%3c/svg%3e",hr="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%206H16V8H11V6ZM8%209V3H19V9C19.7956%209%2020.5587%209.31607%2021.1213%209.87868C21.6839%2010.4413%2022%2011.2044%2022%2012V18H19V21H8V18H7V9H8ZM10%205V9H17V5H10ZM10%2015V19H17V15H10ZM19%2011C18.7348%2011%2018.4804%2011.1054%2018.2929%2011.2929C18.1054%2011.4804%2018%2011.7348%2018%2012C18%2012.2652%2018.1054%2012.5196%2018.2929%2012.7071C18.4804%2012.8946%2018.7348%2013%2019%2013C19.2652%2013%2019.5196%2012.8946%2019.7071%2012.7071C19.8946%2012.5196%2020%2012.2652%2020%2012C20%2011.7348%2019.8946%2011.4804%2019.7071%2011.2929C19.5196%2011.1054%2019.2652%2011%2019%2011ZM4%209H5C5.26522%209%205.51957%209.10536%205.70711%209.29289C5.89464%209.48043%206%209.73478%206%2010V17C6%2017.2652%205.89464%2017.5196%205.70711%2017.7071C5.51957%2017.8946%205.26522%2018%205%2018H4C3.46957%2018%202.96086%2017.7893%202.58579%2017.4142C2.21071%2017.0391%202%2016.5304%202%2016V11C2%2010.4696%202.21071%209.96086%202.58579%209.58579C2.96086%209.21071%203.46957%209%204%209Z'%20fill='%230032A0'/%3e%3c/svg%3e",Vr="data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.75%201C10.5628%201.00261%208.46586%201.87264%206.91925%203.41925C5.37264%204.96586%204.50261%207.06276%204.5%209.25C4.5%2016.3091%2012%2021.6411%2012.3193%2021.8645C12.4456%2021.9527%2012.5959%2022%2012.75%2022C12.9041%2022%2013.0544%2021.9527%2013.1807%2021.8645C13.5%2021.6411%2021%2016.3091%2021%209.25C20.9974%207.06276%2020.1274%204.96586%2018.5808%203.41925C17.0341%201.87264%2014.9372%201.00261%2012.75%201ZM12.7506%206.25028C13.3439%206.25028%2013.9239%206.42623%2014.4173%206.75587C14.9106%207.08552%2015.2951%207.55405%2015.5222%208.10223C15.7493%208.65041%2015.8087%209.25361%2015.6929%209.83555C15.5772%2010.4175%2015.2914%2010.952%2014.8719%2011.3716C14.4523%2011.7912%2013.9178%2012.0769%2013.3358%2012.1926C12.7539%2012.3084%2012.1507%2012.249%2011.6025%2012.0219C11.0543%2011.7949%2010.5858%2011.4103%2010.2562%2010.917C9.92651%2010.4236%209.75056%209.84363%209.75056%209.25028C9.75056%208.45463%2010.0666%207.69157%2010.6292%207.12896C11.1919%206.56635%2011.9549%206.25028%2012.7506%206.25028Z'%20fill='%230032A0'/%3e%3c/svg%3e",Ax={class:"contact_us_img"},px=["src","alt"],fx={class:"contact_us_content"},vx={class:"contact_us_title"},hx={class:"contact_us_content_wrap"},Vx={style:{display:"flex"}},gx={key:0,style:{"margin-right":"24px"},class:"contact_us_content_item"},yx={style:{display:"flex"}},bx={key:0,class:"contact_us_content_item"},wx={key:1,class:"contact_us_content_item last_content"},xx={style:{display:"flex"}},kx={key:0,class:"contact_us_content_item"},Nx={key:1,class:"contact_us_content_item last_content"},_x={key:0,class:"contact_us_content_item"},Cx={class:"contact_us_wrap_mobile"},Ex={class:"contact_us_img"},Tx=["src","alt"],Sx={class:"content_mobile_detail"},Px={key:0,style:{"margin-right":"24px"},class:"contact_us_content_item"},Bx={key:1,class:"contact_us_content_item"},Lx={key:2,class:"contact_us_content_item"},Ox={key:3,class:"contact_us_content_item"},Mx={key:4,class:"contact_us_content_item"},zx={key:5,class:"contact_us_content_item"},jx=e.defineComponent({name:"ContactUsInfo",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=e.ref({text:"",linkType:"",url:""}),o=e.ref({text:"",linkType:"",url:""}),a=e.ref({text:"",linkType:"",url:""}),i=e.ref({text:"",linkType:"",url:""}),s=e.ref({text:"",linkType:"",url:""}),d=e.ref({text:"",linkType:"",url:""}),u=n;console.log("!!!!",u.modelValue);const m=t,c=e.ref(!1),r=e.ref(!1),f=()=>{m("handleDelete",u.modelValue.id)},p=()=>{m("handleCopy",u.modelValue)},A=V=>{m("handlePaste",V)},v=(V,h)=>{h.linkType!=="textOnly"&&(V.includes("http")?window.open(V,"_blank"):m("handleClick",V))},w=()=>{var h;if(u.modelValue&&u.modelValue.data)return;const V={id:((h=u.modelValue)==null?void 0:h.id)||B(),type:"ContactUsInfo",title:"title",width:1208,image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/02_public%20area%2001_origin_origin.jpg",imageAlt:"",linkList:[]};m("update:modelValue",V)};return e.watch(()=>u.modelValue,V=>{var h;console.log("modelValue 发生变化:",{新值:V,list:V==null?void 0:V.linkList}),(h=V==null?void 0:V.linkList)==null||h.forEach(g=>{g.type==="pin"&&(l.value.text=g.text,l.value.linkType=g.linkType,l.value.url=g.url,console.log("pin===========",l),console.log("item==========",g)),g.type==="googleMap"&&(o.value.text=g.text,o.value.linkType=g.linkType,o.value.url=g.url),g.type==="baiduMap"&&(a.value.text=g.text,a.value.linkType=g.linkType,a.value.url=g.url),g.type==="phone"&&(i.value.text=g.text,i.value.linkType=g.linkType,i.value.url=g.url),g.type==="fax"&&(s.value.text=g.text,s.value.linkType=g.linkType,s.value.url=g.url),g.type==="email"&&(d.value.text=g.text,d.value.linkType=g.linkType,d.value.url=g.url)})},{deep:!0,immediate:!0}),w(),(V,h)=>{var g,y,N,C,b,x,E,_,T,S,L,O,M,$,D,R,j,k,z;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:{"margin-top":"30px","margin-bottom":"30px"},class:"contact-us-info-container",onMouseenter:h[14]||(h[14]=X=>c.value=!0),onMouseleave:h[15]||(h[15]=X=>c.value=!1)},[e.createElementVNode("div",{class:"contact_us_wrap",style:e.normalizeStyle({width:((g=n.modelValue)==null?void 0:g.width)+"px"})},[e.createElementVNode("div",Ax,[e.createElementVNode("img",{src:(y=n.modelValue)==null?void 0:y.image,alt:(N=n.modelValue)==null?void 0:N.imageAlt},null,8,px)]),e.createElementVNode("div",fx,[e.createElementVNode("h4",vx,e.toDisplayString((C=n.modelValue)==null?void 0:C.title),1),e.createElementVNode("div",hx,[e.createElementVNode("div",Vx,[l.value.text?(e.openBlock(),e.createElementBlock("div",gx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(Vr)})`})},null,4),e.createElementVNode("span",{onClick:h[0]||(h[0]=X=>{var F;return v((F=l.value)==null?void 0:F.url,l.value)}),class:e.normalizeClass([l.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((b=l.value)==null?void 0:b.text),3)])):e.createCommentVNode("",!0),e.createElementVNode("div",yx,[o.value.text?(e.openBlock(),e.createElementBlock("div",bx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(fr)})`})},null,4),e.createElementVNode("span",{onClick:h[1]||(h[1]=X=>{var F;return v((F=o.value)==null?void 0:F.url,o.value)}),class:e.normalizeClass([o.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((x=o.value)==null?void 0:x.text),3)])):e.createCommentVNode("",!0),a.value.text?(e.openBlock(),e.createElementBlock("div",wx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(pr)})`})},null,4),e.createElementVNode("span",{onClick:h[2]||(h[2]=X=>{var F;return v((F=a.value)==null?void 0:F.url,a.value)}),class:e.normalizeClass([a.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((E=a.value)==null?void 0:E.text),3)])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",xx,[i.value.text?(e.openBlock(),e.createElementBlock("div",kx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(vr)})`})},null,4),e.createElementVNode("span",{onClick:h[3]||(h[3]=X=>{var F;return v((F=i.value)==null?void 0:F.url,i.value)}),class:e.normalizeClass([i.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((_=i.value)==null?void 0:_.text),3)])):e.createCommentVNode("",!0),s.value.text?(e.openBlock(),e.createElementBlock("div",Nx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(hr)})`})},null,4),e.createElementVNode("span",{onClick:h[4]||(h[4]=X=>{var F;return v((F=s.value)==null?void 0:F.url,s.value)}),class:e.normalizeClass([s.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((T=s.value)==null?void 0:T.text),3)])):e.createCommentVNode("",!0)]),d.value.text?(e.openBlock(),e.createElementBlock("div",_x,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(fi)})`})},null,4),e.createElementVNode("span",{onClick:h[5]||(h[5]=X=>{var F;return v((F=d.value)==null?void 0:F.url,d.value)}),class:e.normalizeClass([d.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((S=d.value)==null?void 0:S.text),3)])):e.createCommentVNode("",!0)])])],4),e.createElementVNode("div",Cx,[e.createElementVNode("div",Ex,[e.createElementVNode("img",{src:(L=n.modelValue)==null?void 0:L.image,alt:(O=n.modelValue)==null?void 0:O.imageAlt},null,8,Tx)]),e.createElementVNode("div",Sx,[e.createElementVNode("h4",null,e.toDisplayString((M=n.modelValue)==null?void 0:M.title),1),l.value.text?(e.openBlock(),e.createElementBlock("div",Px,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(Vr)})`})},null,4),e.createElementVNode("span",{onClick:h[6]||(h[6]=X=>{var F;return v((F=l.value)==null?void 0:F.url,l.value)}),class:e.normalizeClass([l.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString(($=l.value)==null?void 0:$.text),3)])):e.createCommentVNode("",!0),o.value.text?(e.openBlock(),e.createElementBlock("div",Bx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(fr)})`})},null,4),e.createElementVNode("span",{onClick:h[7]||(h[7]=X=>{var F;return v((F=o.value)==null?void 0:F.url,o.value)}),class:e.normalizeClass([o.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((D=o.value)==null?void 0:D.text),3)])):e.createCommentVNode("",!0),a.value.text?(e.openBlock(),e.createElementBlock("div",Lx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(pr)})`})},null,4),e.createElementVNode("span",{onClick:h[8]||(h[8]=X=>{var F;return v((F=a.value)==null?void 0:F.url,a.value)}),class:e.normalizeClass([a.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((R=a.value)==null?void 0:R.text),3)])):e.createCommentVNode("",!0),i.value.text?(e.openBlock(),e.createElementBlock("div",Ox,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(vr)})`})},null,4),e.createElementVNode("span",{onClick:h[9]||(h[9]=X=>{var F;return v((F=i.value)==null?void 0:F.url,i.value)}),class:e.normalizeClass([i.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((j=i.value)==null?void 0:j.text),3)])):e.createCommentVNode("",!0),s.value.text?(e.openBlock(),e.createElementBlock("div",Mx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(hr)})`})},null,4),e.createElementVNode("span",{onClick:h[10]||(h[10]=X=>{var F;return v((F=s.value)==null?void 0:F.url,s.value)}),class:e.normalizeClass([s.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((k=s.value)==null?void 0:k.text),3)])):e.createCommentVNode("",!0),d.value.text?(e.openBlock(),e.createElementBlock("div",zx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(fi)})`})},null,4),e.createElementVNode("span",{onClick:h[11]||(h[11]=X=>{var F;return v((F=d.value)==null?void 0:F.url,d.value)}),class:e.normalizeClass([d.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((z=d.value)==null?void 0:z.text),3)])):e.createCommentVNode("",!0)])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:c.value,"onUpdate:show":h[12]||(h[12]=X=>c.value=X),onHandleEdit:h[13]||(h[13]=X=>r.value=!0),onHandleDelete:f,onHandleCopy:p,onHandlePaste:A},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(mx,{key:0,show:r.value,"onUpdate:show":h[16]||(h[16]=X=>r.value=X),data:n.modelValue},null,8,["show","data"]))],64)}}}),ws=H(jx,[["__scopeId","data-v-2c1365c4"]]),$x={class:"pagination_wrap"},Dx={class:"pagination"},Ux={class:"pagination-list"},Rx=["onClick"],Hx=e.defineComponent({__name:"Pagination",props:{total:{type:Number,default:0},activePage:{type:Number,default:1}},emits:["update:activePage","page-change"],setup(n,{emit:t}){const l=n,o=t,a=e.computed(()=>{const u=[];for(let m=1;m<=l.total;m++)u.push(m);return u}),i=u=>{u!==l.activePage&&u>=1&&u<=l.total&&(console.log("页数========",u),o("page-change",u),console.log("当前页数========更新",l.activePage))},s=()=>{l.activePage>1&&i(l.activePage-1)},d=()=>{l.activePage<l.total&&i(l.activePage+1)};return(u,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",$x,[e.createElementVNode("div",Dx,[e.createElementVNode("ul",Ux,[e.createElementVNode("li",{class:e.normalizeClass(["page-arrow",{"page-arrow--disable":n.activePage<=1}]),onClick:s},[...m[0]||(m[0]=[e.createElementVNode("div",{class:"i page-arrow__left"},null,-1)])],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createElementBlock("li",{key:c,class:e.normalizeClass(["page-item",{"page-item--active":c===n.activePage}]),onClick:r=>i(c)},e.toDisplayString(c),11,Rx))),128)),e.createElementVNode("li",{class:e.normalizeClass(["page-arrow",{"page-arrow--disable":n.activePage>=n.total}]),onClick:d},[...m[1]||(m[1]=[e.createElementVNode("div",{class:"i page-arrow__right"},null,-1)])],2)])])])]))}}),Wx=H(Hx,[["__scopeId","data-v-44a20524"]]),Ix={class:"seting-box"},Xx={class:"draggable_box"},qx={class:"drag_top_box"},Fx=["onClick"],Yx={class:"sub_draggable_box"},Zx={class:"draggable_box"},Gx={class:"drag_top_box"},Jx=["onClick"],Kx=["src"],Qx={class:"item-uplaod flex items-center"},ek=["src"],tk={class:"item-uplaod flex items-center"},lk={key:0},ok=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),o=e.computed(()=>({animation:200,group:"publications",disabled:!1,ghostClass:"ghost"})),a=e.ref(!1),i=e.ref(!1),s=n,d=t,u=()=>{d("update:show",!1)},m=e.ref(new Set),c=e.ref(new Set),r=e.ref(!1);e.watch(()=>{var y,N;return(N=(y=s.data)==null?void 0:y.list)==null?void 0:N.sections},y=>{if(y&&Array.isArray(y)&&!r.value){r.value=!0;const N=y.map(b=>b.key);m.value=new Set(N);const C=[];y.forEach(b=>{b.publications&&Array.isArray(b.publications)&&b.publications.forEach(x=>{x.id&&C.push(x.id)})}),c.value=new Set(C)}},{immediate:!0,deep:!0});const f=()=>{s.data.list.sections.push({key:Xn(),title:"new Section",text:"",button:"View all"})},p=y=>{const N={id:B(10),title:"new Publications",image:"",fileUrl:""},C=s.data.list.sections[y];C.publications||(C.publications=[]),C.publications.push(N)},A=y=>{if(!c.value.has(y.id))c.value.add(y.id);else{const N=[];s.data.list.sections.forEach(C=>{C.publications&&Array.isArray(C.publications)&&C.publications.forEach(b=>{b.id&&N.push(b.id)})}),c.value=new Set(N),c.value.delete(y.id)}},v=(y,N)=>{const C=s.data.list.sections.find(b=>b.key===N);C&&C.publications&&(C.publications=C.publications.filter(b=>b.id!==y))},w=y=>{if(!m.value.has(y.key))m.value.add(y.key);else{const N=[];s.data.list.sections.forEach(C=>{C.key&&N.push(C.key)}),m.value=new Set(N),m.value.delete(y.key)}},V=y=>{s.data.list.sections=s.data.list.sections.filter(N=>N.key!==y)},h=y=>m.value.has(y.key),g=y=>c.value.has(y.id);return(y,N)=>{const C=e.resolveComponent("a-option"),b=e.resolveComponent("a-select"),x=e.resolveComponent("icon-drag-dot"),E=e.resolveComponent("icon-drag-arrow"),_=e.resolveComponent("icon-delete"),T=e.resolveComponent("a-input"),S=e.resolveComponent("a-button"),L=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(L,{width:600,visible:n.show,footer:!1,onCancel:u,unmountOnClose:""},{title:e.withCtx(()=>{var O;return[e.createTextVNode(e.toDisplayString((O=n.data)==null?void 0:O.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",Ix,[N[28]||(N[28]=e.createElementVNode("p",{class:"item-title"},"内容宽度",-1)),e.createVNode(b,{style:{width:"320px",background:"#ffffff"},modelValue:n.data.width,"onUpdate:modelValue":N[0]||(N[0]=O=>n.data.width=O),placeholder:"Please select ..."},{default:e.withCtx(()=>[e.createVNode(C,{value:800},{default:e.withCtx(()=>[...N[11]||(N[11]=[e.createTextVNode("Small Width",-1)])]),_:1}),e.createVNode(C,{value:952},{default:e.withCtx(()=>[...N[12]||(N[12]=[e.createTextVNode("Default Width",-1)])]),_:1}),e.createVNode(C,{value:1208},{default:e.withCtx(()=>[...N[13]||(N[13]=[e.createTextVNode("Middle Width",-1)])]),_:1}),e.createVNode(C,{value:1920},{default:e.withCtx(()=>[...N[14]||(N[14]=[e.createTextVNode("Max Width",-1)])]),_:1})]),_:1},8,["modelValue"]),N[29]||(N[29]=e.createElementVNode("p",{class:"item-title"},"背景色",-1)),e.createVNode(b,{style:{width:"320px",background:"#ffffff"},modelValue:n.data.bgColor,"onUpdate:modelValue":N[1]||(N[1]=O=>n.data.bgColor=O),placeholder:"Please select ..."},{default:e.withCtx(()=>[e.createVNode(C,{value:"#ffffff"},{default:e.withCtx(()=>[...N[15]||(N[15]=[e.createTextVNode("White Background",-1)])]),_:1}),e.createVNode(C,{value:"#f8f9fa"},{default:e.withCtx(()=>[...N[16]||(N[16]=[e.createTextVNode("Grey Background",-1)])]),_:1})]),_:1},8,["modelValue"]),N[30]||(N[30]=e.createElementVNode("p",{class:"item-title"},"章节",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.list.sections,"onUpdate:modelValue":N[8]||(N[8]=O=>n.data.list.sections=O),"component-data":{tag:"div",type:"transition-group",name:a.value?null:"flip-list"}},l.value,{disabled:!1,onStart:N[9]||(N[9]=O=>a.value=!0),onEnd:N[10]||(N[10]=O=>a.value=!1),"item-key":"key"}),{item:e.withCtx(({element:O,index:M})=>[e.createElementVNode("div",Xx,[e.createElementVNode("div",qx,[e.createElementVNode("div",{onClick:$=>w(O)},[e.createVNode(x,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(O.title),1)],8,Fx),e.createElementVNode("div",null,[e.createVNode(E,{class:"icon_drag"}),e.createVNode(_,{class:"btn-delete",onClick:e.withModifiers($=>V(O.key),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[N[21]||(N[21]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Key",-1)),e.createVNode(T,{style:{border:"1px solid #c0c0c0"},modelValue:O.key,"onUpdate:modelValue":$=>O.key=$,onClick:N[2]||(N[2]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),N[22]||(N[22]=e.createElementVNode("span",null,"Key must be formed by lower-case letters (a-z), numbers (0-9) and hyphens (-).",-1)),N[23]||(N[23]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"题目",-1)),e.createVNode(T,{style:{border:"1px solid #c0c0c0"},modelValue:O.title,"onUpdate:modelValue":$=>O.title=$,onClick:N[3]||(N[3]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),N[24]||(N[24]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"文本",-1)),e.createVNode(T,{style:{border:"1px solid #c0c0c0"},modelValue:O.text,"onUpdate:modelValue":$=>O.text=$,onClick:N[4]||(N[4]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),N[25]||(N[25]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"按钮",-1)),e.createVNode(T,{style:{border:"1px solid #c0c0c0"},modelValue:O.button,"onUpdate:modelValue":$=>O.button=$,onClick:N[5]||(N[5]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),N[26]||(N[26]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Publications",-1)),e.createElementVNode("div",Yx,[e.createVNode(e.unref(de),e.mergeProps({modelValue:O.publications,"onUpdate:modelValue":$=>O.publications=$,"component-data":{tag:"div",type:"transition-group",name:i.value?null:"flip-list"}},o.value,{disabled:!1,onStart:N[6]||(N[6]=$=>i.value=!0),onEnd:N[7]||(N[7]=$=>i.value=!1),"item-key":"id"}),{item:e.withCtx(({element:$})=>[e.createElementVNode("div",Zx,[e.createElementVNode("div",Gx,[e.createElementVNode("div",{onClick:e.withModifiers(D=>A($),["stop"])},[e.createVNode(x,{style:{"margin-right":"10px"}}),e.createTextVNode(" "+e.toDisplayString($.title),1)],8,Jx),e.createElementVNode("div",null,[e.createVNode(E,{class:"icon_drag"}),e.createVNode(_,{class:"btn-delete",onClick:e.withModifiers(D=>v($.id,O.key),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[N[17]||(N[17]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," Title ",-1)),e.createVNode(T,{style:{border:"1px solid #f1eeee"},modelValue:$.title,"onUpdate:modelValue":D=>$.title=D},null,8,["modelValue","onUpdate:modelValue"]),N[18]||(N[18]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 图片 ",-1)),e.createElementVNode("img",{class:"item-img",src:$.image},null,8,Kx),e.createElementVNode("div",Qx,[e.createVNode(T,{modelValue:$.image,"onUpdate:modelValue":D=>$.image=D,placeholder:"请输入图片链接","allow-clear":"",style:{border:"1px solid #c0c0c0"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:$.image,"onUpdate:modelValue":D=>$.image=D,name:`Publications_${$.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),N[19]||(N[19]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 文件链接 ",-1)),e.createElementVNode("img",{class:"item-img",src:$.fileUrl},null,8,ek),e.createElementVNode("div",tk,[e.createVNode(T,{modelValue:$.fileUrl,"onUpdate:modelValue":D=>$.fileUrl=D,placeholder:"请输入图片链接","allow-clear":"",style:{border:"1px solid #c0c0c0"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:$.fileUrl,"onUpdate:modelValue":D=>$.fileUrl=D,name:`Publications_${$.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],512),[[e.vShow,!g($)]])]),_:2},1024)])]),_:2},1040,["modelValue","onUpdate:modelValue","component-data"]),O.publications?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",lk,"No items found.")),e.createVNode(S,{style:{"margin-top":"10px","margin-left":"5px"},type:"primary",onClick:$=>p(M)},{default:e.withCtx(()=>[...N[20]||(N[20]=[e.createTextVNode("新增Publications",-1)])]),_:1},8,["onClick"])])],512),[[e.vShow,!h(O)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"]),e.createVNode(S,{style:{"margin-top":"10px","margin-left":"5px"},type:"primary",onClick:f},{default:e.withCtx(()=>[...N[27]||(N[27]=[e.createTextVNode("新增Section",-1)])]),_:1})])]),_:1},8,["visible"])}}}),nk=H(ok,[["__scopeId","data-v-b21faf90"]]),ak={class:"publications_box publications-bg-light"},ik={class:"pub-main"},sk={class:"publications-title-blue"},rk={class:"pub_main_text"},dk={class:"publications-mt-medium publications-mt-medium-xlarge"},ck=["data-aos-delay"],uk={class:"card-publication"},mk={class:"publication__head"},Ak=["onClick"],pk=["src","alt"],fk={class:"publication__body"},vk=["onClick"],hk={class:"pub-sub",style:{"margin-top":"110px"}},Vk={class:"pub-sublist__row row row-cols-md-2"},gk={class:"publications-title-blue"},yk={class:"pub-sub__text publications-mt-small"},bk={class:"publications-mt-small"},wk={class:"circle-link"},xk={class:"publications-mt-medium",style:{"margin-top":"40px"}},kk={key:0,class:"pub-subitem__row publications-grid publications-grid-2"},Nk={class:"card-publication"},_k={class:"publication__head"},Ck=["onClick"],Ek=["src"],Tk={class:"publication__body"},Sk=["onClick"],Pk=e.defineComponent({name:"Publications",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=V=>{o("handleClick",V)},i=(V,h)=>{const g=[];for(let y=0;y<V.length;y+=h)g.push(V.slice(y,y+h));return g},s=e.ref([]),d=e.ref([]),u=e.ref([]);e.watch(()=>l.modelValue,V=>{if(V&&V.list&&V.list.sections.length>0){s.value=V.list.sections[0];const h=i(s.value.publications,8);d.value=h,u.value=V.list.sections.slice(1),console.log("subMain.value",u.value)}},{immediate:!0,deep:!0});const m=e.ref(1),c=V=>{console.log("分页========",V),m.value=V},r=e.ref(!1),f=e.ref(!1),p=()=>{o("handleDelete",l.modelValue.id)},A=()=>{o("handleCopy",l.modelValue)},v=V=>{o("handlePaste",V)};return(()=>{var h;if(l.modelValue&&l.modelValue.data)return;const V={id:((h=l.modelValue)==null?void 0:h.id)||B(),width:800,bgColor:"#f8f9fa",type:"Publications",list:{sections:[{key:Xn(),title:"title11111???",text:"text1111??",button:"view all",publications:[{id:111,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"},{id:2222,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"}]},{key:Xn(),title:"title22222",text:"text1111",button:"view all",publications:[{id:890,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"},{id:89e3,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"}]},{key:Xn(),title:"title33333",text:"text1111",button:"view all",publications:[{id:34,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"},{id:89,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"}]}]}};o("update:modelValue",V)})(),(V,h)=>{var g,y,N,C;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(g=n.modelValue)==null?void 0:g.bgColor}]),class:"publications-container",onMouseenter:h[3]||(h[3]=b=>r.value=!0),onMouseleave:h[4]||(h[4]=b=>r.value=!1)},[e.createElementVNode("div",ak,[e.createElementVNode("div",{class:"publications__wrapper",style:e.normalizeStyle({maxWidth:((y=n.modelValue)==null?void 0:y.width)+"px"})},[e.createElementVNode("div",ik,[e.createElementVNode("h4",sk,e.toDisplayString(s.value.title),1),e.createElementVNode("div",rk,e.toDisplayString(s.value.text),1),e.createElementVNode("div",dk,[(C=(N=n.modelValue)==null?void 0:N.list)!=null&&C.sections?(e.openBlock(),e.createElementBlock("ul",{class:"publications-grid publications-grid-2 publications-grid-md-4",key:m.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value[m.value-1],(b,x)=>(e.openBlock(),e.createElementBlock("li",{key:x,"data-aos":"fade-right","data-aos-duration":"1500","data-aos-delay":x*100,class:"publications-grid-item"},[e.createElementVNode("div",uk,[e.createElementVNode("div",mk,[e.createElementVNode("a",{onClick:E=>a(b.fileUrl),rel:"noopener noreferrer",class:"header_img"},[e.createElementVNode("img",{src:b.image,alt:b.title},null,8,pk),h[6]||(h[6]=e.createElementVNode("div",{class:"publication__img__mask"},[e.createElementVNode("div",{class:"publication__img__mask__btn"},"阅读")],-1))],8,Ak)]),e.createElementVNode("div",fk,[e.createElementVNode("a",{onClick:E=>a(b.fileUrl),rel:"noopener noreferrer",class:"publication__title publications-line-clamp-2",style:{"font-weight":"bold"}},e.toDisplayString(b.title),9,vk)])])],8,ck))),128))])):e.createCommentVNode("",!0)]),e.createVNode(Wx,{total:d.value.length,activePage:m.value,onPageChange:c},null,8,["total","activePage"])]),e.createElementVNode("div",hk,[e.createElementVNode("ul",Vk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,b=>(e.openBlock(),e.createElementBlock("li",{key:b.key},[e.createElementVNode("h4",gk,e.toDisplayString(b.title),1),e.createElementVNode("div",yk,e.toDisplayString(b.text),1),e.createElementVNode("div",bk,[e.createElementVNode("div",wk,[e.createElementVNode("a",{onClick:h[0]||(h[0]=x=>a(V.item.fileUrl))},[e.createElementVNode("div",null,e.toDisplayString(b.button),1),h[7]||(h[7]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))])])]),e.createElementVNode("div",xk,[b.publications&&b.publications.length?(e.openBlock(),e.createElementBlock("ul",kk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.publications.slice(0,2),(x,E)=>(e.openBlock(),e.createElementBlock("li",{key:E,"data-aos":"fade-in","data-aos-duration":"1500",class:"publications-grid-item aos-init aos-animate"},[e.createElementVNode("div",Nk,[e.createElementVNode("div",_k,[e.createElementVNode("a",{onClick:_=>a(x.fileUrl),rel:"noopener noreferrer",class:"publication__img img-wrapper"},[e.createElementVNode("img",{src:x.image,alt:"111111"},null,8,Ek),h[8]||(h[8]=e.createElementVNode("div",{class:"publication__img__mask"},[e.createElementVNode("div",{class:"publication__img__mask__btn"},"阅读")],-1))],8,Ck)]),e.createElementVNode("div",Tk,[e.createElementVNode("a",{onClick:_=>a(x.fileUrl),rel:"noopener noreferrer",class:"publication__title publications-line-clamp-2"},e.toDisplayString(x.title),9,Sk)])])]))),128))])):e.createCommentVNode("",!0)])]))),128))])])],4)]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:r.value,"onUpdate:show":h[1]||(h[1]=b=>r.value=b),onHandleEdit:h[2]||(h[2]=b=>f.value=!0),onHandleDelete:p,onHandleCopy:A,onHandlePaste:v},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(nk,{key:0,show:f.value,"onUpdate:show":h[5]||(h[5]=b=>f.value=b),data:n.modelValue},null,8,["show","data"]))],64)}}}),xs=H(Pk,[["__scopeId","data-v-b8f24e17"]]),Bk={class:"seting-box"},Lk=["src"],Ok={class:"item-uplaod flex items-center"},Mk={class:"draggable_box"},zk={class:"drag_top_box"},jk=["onClick"],$k={class:"sub_draggable_box"},Dk={class:"draggable_box"},Uk={class:"drag_top_box"},Rk=["onClick"],Hk=["src"],Wk={class:"item-uplaod flex items-center"},Ik={key:0},Xk=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=e.ref(!1),a=e.ref(new Set),i=e.ref(new Set);e.watch(()=>{var b;return(b=l.data)==null?void 0:b.markers},b=>{if(b&&Array.isArray(b)&&!o.value){o.value=!0;const x=b.map(_=>_.key);a.value=new Set(x);const E=[];b.forEach(_=>{_.list&&Array.isArray(_.list)&&_.list.forEach(T=>{T.id&&E.push(T.id)})}),i.value=new Set(E)}},{immediate:!0,deep:!0});const s=()=>{l.data.markers.push({key:B(10),name:"新的校园",x_coordinates:0,y_coordinates:0,textPos:"left"})},d=e.computed(()=>({animation:200,group:"publications",disabled:!1,ghostClass:"ghost"})),u=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),m=e.ref(!1),c=e.ref(!1),r=t,f=b=>a.value.has(b.key),p=()=>{r("update:show",!1)},A=()=>{var b,x;return((x=(b=l.data)==null?void 0:b.markers)==null?void 0:x.map(E=>E.key).filter(Boolean))||[]},v=()=>{var x;const b=[];return(x=l.data)!=null&&x.markers&&Array.isArray(l.data.markers)&&l.data.markers.forEach(E=>{E.list&&Array.isArray(E.list)&&E.list.forEach(_=>{_.id&&b.push(_.id)})}),b},w=(b,x,E)=>{if(!x.value.has(b))x.value.add(b);else{const T=E();x.value=new Set(T.filter(S=>S!==b))}},V=b=>{w(b.key,a,A)},h=b=>{l.data.markers=l.data.markers.filter(x=>x.key!==b)},g=b=>i.value.has(b.id),y=b=>{w(b.id,i,v)},N=b=>{const x={id:B(10),title:"新的校区",desc:"",image:"",alt:"",phone:"",email:"",link:"",linkName:""},E=l.data.markers[b];E.list||(E.list=[]),E.list.push(x)},C=(b,x)=>{const E=l.data.list.find(_=>_.key===x);E&&E.publications&&(E.publications=E.publications.filter(_=>_.id!==b))};return(b,x)=>{const E=e.resolveComponent("a-input"),_=e.resolveComponent("icon-drag-dot"),T=e.resolveComponent("icon-drag-arrow"),S=e.resolveComponent("icon-delete"),L=e.resolveComponent("a-option"),O=e.resolveComponent("a-select"),M=e.resolveComponent("icon-plus"),$=e.resolveComponent("a-button"),D=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(D,{width:500,visible:n.show,footer:!1,onCancel:p,unmountOnClose:""},{title:e.withCtx(()=>{var R;return[e.createTextVNode(e.toDisplayString((R=n.data)==null?void 0:R.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",Bk,[x[29]||(x[29]=e.createElementVNode("p",{class:"item-title"},"地图图片",-1)),e.createElementVNode("img",{class:"item-img",src:n.data.map},null,8,Lk),e.createElementVNode("div",Ok,[e.createVNode(E,{modelValue:n.data.map,"onUpdate:modelValue":x[0]||(x[0]=R=>n.data.map=R),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.map,"onUpdate:modelValue":x[1]||(x[1]=R=>n.data.map=R),name:"MapStatic","button-class":"fit-content"},null,8,["modelValue"])]),x[30]||(x[30]=e.createElementVNode("p",{class:"item-title"},"显示X坐标",-1)),e.createVNode(E,{modelValue:n.data.x_coordinates,"onUpdate:modelValue":x[2]||(x[2]=R=>n.data.x_coordinates=R),"allow-clear":""},null,8,["modelValue"]),x[31]||(x[31]=e.createElementVNode("p",{class:"item-title"},"显示Y坐标",-1)),e.createVNode(E,{modelValue:n.data.y_coordinates,"onUpdate:modelValue":x[3]||(x[3]=R=>n.data.y_coordinates=R),"allow-clear":""},null,8,["modelValue"]),x[32]||(x[32]=e.createElementVNode("p",{class:"item-title"},"标记",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.markers,"onUpdate:modelValue":x[9]||(x[9]=R=>n.data.markers=R),"component-data":{tag:"div",type:"transition-group",name:m.value?null:"flip-list"}},u.value,{disabled:!1,onStart:x[10]||(x[10]=R=>m.value=!0),onEnd:x[11]||(x[11]=R=>m.value=!1),"item-key":"key"}),{item:e.withCtx(({element:R,index:j})=>[e.createElementVNode("div",Mk,[e.createElementVNode("div",zk,[e.createElementVNode("div",{onClick:k=>V(R)},[e.createVNode(_,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(R.name),1)],8,jk),e.createElementVNode("div",null,[e.createVNode(T,{class:"icon_drag"}),e.createVNode(S,{class:"btn-delete",onClick:e.withModifiers(k=>h(R.key),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[x[23]||(x[23]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"名称",-1)),e.createVNode(E,{style:{border:"1px solid #c0c0c0"},modelValue:R.name,"onUpdate:modelValue":k=>R.name=k,onClick:x[4]||(x[4]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),x[24]||(x[24]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标记X坐标",-1)),e.createVNode(E,{style:{border:"1px solid #c0c0c0"},modelValue:R.x_coordinates,"onUpdate:modelValue":k=>R.x_coordinates=k,onClick:x[5]||(x[5]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),x[25]||(x[25]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标记Y坐标",-1)),e.createVNode(E,{style:{border:"1px solid #c0c0c0"},modelValue:R.x_coordinates,"onUpdate:modelValue":k=>R.x_coordinates=k,onClick:x[6]||(x[6]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),x[26]||(x[26]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"详情弹出位置",-1)),e.createVNode(O,{modelValue:R.textPos,"onUpdate:modelValue":k=>R.textPos=k,style:{width:"320px"},placeholder:"请选择"},{default:e.withCtx(()=>[e.createVNode(L,{value:"left"},{default:e.withCtx(()=>[...x[12]||(x[12]=[e.createTextVNode("左",-1)])]),_:1}),e.createVNode(L,{value:"right"},{default:e.withCtx(()=>[...x[13]||(x[13]=[e.createTextVNode("右",-1)])]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"]),x[27]||(x[27]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"校区",-1)),e.createElementVNode("div",$k,[e.createVNode(e.unref(de),e.mergeProps({modelValue:R.list,"onUpdate:modelValue":k=>R.list=k,"component-data":{tag:"div",type:"transition-group",name:c.value?null:"flip-list"}},d.value,{disabled:!1,onStart:x[7]||(x[7]=k=>c.value=!0),onEnd:x[8]||(x[8]=k=>c.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k,index:z})=>[e.createElementVNode("div",Dk,[e.createElementVNode("div",Uk,[e.createElementVNode("div",{onClick:e.withModifiers(X=>y(k),["stop"])},[e.createVNode(_,{style:{"margin-right":"10px"}}),e.createTextVNode(" "+e.toDisplayString(k.title),1)],8,Rk),e.createElementVNode("div",null,[e.createVNode(T,{class:"icon_drag"}),e.createVNode(S,{class:"btn-delete",onClick:e.withModifiers(X=>C(k.id,R.key),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[x[14]||(x[14]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 题目 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.title,"onUpdate:modelValue":X=>k.title=X},null,8,["modelValue","onUpdate:modelValue"]),x[15]||(x[15]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 描述 ",-1)),e.createVNode(e.unref(qe),{modelValue:k.desc,"onUpdate:modelValue":X=>k.desc=X,name:`MapStatic_editor_${j}_${z}`},null,8,["modelValue","onUpdate:modelValue","name"]),x[16]||(x[16]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 图片 ",-1)),e.createElementVNode("img",{class:"item-img",src:k.image},null,8,Hk),e.createElementVNode("div",Wk,[e.createVNode(E,{modelValue:k.image,"onUpdate:modelValue":X=>k.image=X,placeholder:"请输入图片链接","allow-clear":"",style:{border:"1px solid #c0c0c0"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:k.image,"onUpdate:modelValue":X=>k.image=X,name:`MapStatic_${j}_${z}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),x[17]||(x[17]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 图片替代文本 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.alt,"onUpdate:modelValue":X=>k.alt=X},null,8,["modelValue","onUpdate:modelValue"]),x[18]||(x[18]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 链接名称 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.linkName,"onUpdate:modelValue":X=>k.linkName=X},null,8,["modelValue","onUpdate:modelValue"]),x[19]||(x[19]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 链接地址 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.link,"onUpdate:modelValue":X=>k.link=X},null,8,["modelValue","onUpdate:modelValue"]),x[20]||(x[20]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 手机号码 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.phone,"onUpdate:modelValue":X=>k.phone=X},null,8,["modelValue","onUpdate:modelValue"]),x[21]||(x[21]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 邮箱 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.email,"onUpdate:modelValue":X=>k.email=X},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!g(k)]])]),_:2},1024)])]),_:2},1040,["modelValue","onUpdate:modelValue","component-data"]),R.list?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",Ik,"暂无数据")),e.createVNode($,{style:{"margin-top":"10px","margin-left":"5px"},type:"primary",onClick:k=>N(j)},{icon:e.withCtx(()=>[e.createVNode(M)]),default:e.withCtx(()=>[x[22]||(x[22]=e.createTextVNode("校区",-1))]),_:1},8,["onClick"])])],512),[[e.vShow,!f(R)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"]),e.createVNode($,{style:{"margin-top":"10px","margin-left":"5px"},type:"primary",onClick:s},{default:e.withCtx(()=>[...x[28]||(x[28]=[e.createTextVNode("新增Section",-1)])]),_:1})])]),_:1},8,["visible"])}}}),qk=H(Xk,[["__scopeId","data-v-dba7887b"]]),Fk={class:"map-static-detail"},Yk={class:"detail__image"},Zk=["src","alt"],Gk=["src","alt"],Jk={class:"detail__content"},Kk={key:0,class:"detail__title me-md-5"},Qk=["innerHTML"],eN={class:"detail__cta"},tN={key:0},lN=["href"],oN={key:1},nN=["href"],aN={key:2,class:"detail__link"},iN=e.defineComponent({__name:"MapStaticDetail",props:{componentProps:{default:null}},emits:["close"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(0),i=e.ref(0),s=e.ref(0),d={image:"/images/dummyimage/placeholder.jpg"},u=e.computed(()=>{var A;return((A=l.componentProps)==null?void 0:A.list)??[]}),m=e.computed(()=>{var A;return((A=u.value)==null?void 0:A[a.value])??u.value[0]});e.watch(a,A=>{A>u.value.length-1?a.value=0:A<0&&(a.value=u.value.length-1)});const c=()=>{o("close"),setTimeout(()=>{a.value=0},300)},r=A=>{i.value=A.changedTouches[0].screenX},f=A=>{s.value=A.changedTouches[0].screenX,p()},p=()=>{s.value<i.value&&(a.value+=1),s.value>i.value&&(a.value-=1)};return(A,v)=>(e.openBlock(),e.createElementBlock("div",Fk,[e.createElementVNode("button",{type:"button",class:"detail__close",onClick:c}),e.createVNode(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("div",{class:"map-static-detail__wrapper",key:a.value,onTouchstart:r,onTouchend:f},[e.createElementVNode("div",Yk,[m.value.image?(e.openBlock(),e.createElementBlock("img",{key:0,src:m.value.image,alt:m.value.alt||m.value.title},null,8,Zk)):(e.openBlock(),e.createElementBlock("img",{key:1,src:d.image,alt:m.value.alt||m.value.title},null,8,Gk))]),e.createElementVNode("div",Jk,[m.value.title?(e.openBlock(),e.createElementBlock("h6",Kk,e.toDisplayString(m.value.title),1)):e.createCommentVNode("",!0),m.value.desc?(e.openBlock(),e.createElementBlock("div",{key:1,class:"detail__desc me-md-5",innerHTML:m.value.desc},null,8,Qk)):e.createCommentVNode("",!0),e.createElementVNode("ul",eN,[m.value.phone?(e.openBlock(),e.createElementBlock("li",tN,[e.createElementVNode("a",{href:`tel:${m.value.phone}`,class:"detail__cta__item link-body-p link--udrline"},e.toDisplayString(m.value.phone),9,lN)])):e.createCommentVNode("",!0),m.value.email?(e.openBlock(),e.createElementBlock("li",oN,[e.createElementVNode("a",{href:`mailto:${m.value.email}`,class:"detail__cta__item link-body-p link--udrline"},e.toDisplayString(m.value.email),9,nN)])):e.createCommentVNode("",!0)]),m.value.link?(e.openBlock(),e.createElementBlock("div",aN)):e.createCommentVNode("",!0)])],32)):e.createCommentVNode("",!0)]),_:1}),u.value.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:"map-static-detail__btn-prev i",onClick:v[0]||(v[0]=w=>a.value-=1)}),e.createElementVNode("button",{type:"button",class:"map-static-detail__btn-next i",onClick:v[1]||(v[1]=w=>a.value+=1)})],64)):e.createCommentVNode("",!0)]))}}),sN=H(iN,[["__scopeId","data-v-c495d3da"]]),rN={class:"mapstatic_wrap"},dN=["draggable"],cN=["src"],uN=["data-title","onClick","onMouseover","onMouseleave"],mN={class:"map__detail"},AN={class:"map-prev"},pN={class:"map-next"},fN={class:"map-up"},vN={class:"map-down"},hN={key:0},VN={key:1,class:"map-hint-fullscreen flex-center"},gN=e.defineComponent({name:"MapStatic",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=()=>{o("handleDelete",l.modelValue.id)},d=()=>{o("handleCopy",l.modelValue)},u=P=>{o("handlePaste",P)};(()=>{var U;if(l.modelValue&&l.modelValue.data)return;const P={id:((U=l.modelValue)==null?void 0:U.id)||B(),type:"MapStatic",map:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",x_coordinates:49.4,y_coordinates:70,zoom_desktop:1.75,zoom_mobile:2.25,bgColor:"#f5f5f5",markers:[{key:"marker-1",name:"北京校区",x_coordinates:25.5,y_coordinates:35.2,textPos:"left",list:[{title:"香港中央图书馆",desc:"香港最大的公共图书馆,提供丰富的图书资源和学习空间。位于铜锣湾核心地带,交通便利。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"香港中央图书馆外观",phone:"+852 2921 0222",email:"info@hkpl.gov.hk",link:"https://www.hkpl.gov.hk",linkName:"访问图书馆官网",id:B()},{title:"维多利亚港观景台",desc:"欣赏维多利亚港美景的最佳地点之一,可以观看到香港岛和九龙半岛的壮丽景色。每晚8点有幻彩咏香江灯光秀。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"维多利亚港夜景",phone:"+852 2508 1234",email:"tourism@discoverhongkong.com",link:"https://www.discoverhongkong.com/tc/see-do/highlight-attractions/harbour-views/symphony-of-lights.html",linkName:"了解更多景点信息",id:B()}]},{key:"marker-2",name:"上海校区",x_coordinates:65.8,y_coordinates:45.6,textPos:"right",list:[{title:"香港中央图书馆",desc:"香港最大的公共图书馆,提供丰富的图书资源和学习空间。位于铜锣湾核心地带,交通便利。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"香港中央图书馆外观",phone:"+852 2921 0222",email:"info@hkpl.gov.hk",link:"https://www.hkpl.gov.hk",linkName:"访问图书馆官网",id:B()},{title:"维多利亚港观景台",desc:"欣赏维多利亚港美景的最佳地点之一,可以观看到香港岛和九龙半岛的壮丽景色。每晚8点有幻彩咏香江灯光秀。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"维多利亚港夜景",phone:"+852 2508 1234",email:"tourism@discoverhongkong.com",link:"https://www.discoverhongkong.com/tc/see-do/highlight-attractions/harbour-views/symphony-of-lights.html",linkName:"了解更多景点信息",id:B()}]},{key:"marker-3",name:"广州校区",x_coordinates:40.2,y_coordinates:60.8,textPos:"left",list:[{title:"香港中央图书馆",desc:"香港最大的公共图书馆,提供丰富的图书资源和学习空间。位于铜锣湾核心地带,交通便利。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"香港中央图书馆外观",phone:"+852 2921 0222",email:"info@hkpl.gov.hk",link:"https://www.hkpl.gov.hk",linkName:"访问图书馆官网",id:B()},{title:"维多利亚港观景台",desc:"欣赏维多利亚港美景的最佳地点之一,可以观看到香港岛和九龙半岛的壮丽景色。每晚8点有幻彩咏香江灯光秀。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"维多利亚港夜景",phone:"+852 2508 1234",email:"tourism@discoverhongkong.com",link:"https://www.discoverhongkong.com/tc/see-do/highlight-attractions/harbour-views/symphony-of-lights.html",linkName:"了解更多景点信息",id:B()}]}]};o("update:modelValue",P)})();const c=e.ref({map:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",x_coordinates:49.4,y_coordinates:70,zoom_desktop:1.75,zoom_mobile:2.25});e.ref({key:"marker-1",name:"北京校区",x_coordinates:25.5,y_coordinates:35.2,textPos:"bottom"});const r=e.ref(NaN),f=e.ref(NaN),p=e.ref(!1),A=e.ref(!1),v=e.ref(null),w=e.ref(null),V=e.ref(null),h=e.ref(null),g=e.ref(0),y=e.ref(0),N=e.ref(!1),C=e.ref(0),b=e.ref(0),x=e.ref(!0),E=e.ref(!0),_=e.ref(!0),T=e.ref(!0),S=e.ref(),L=e.ref(),O=e.computed(()=>({transformOrigin:`${R.value}% 50%`,transform:`translate(${g.value}px, ${y.value}px)`,height:`${X.value*100}%`})),M=e.computed(()=>isNaN(r.value)?null:$.value[r.value]),$=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.markers)??[]}),D=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.map)??c.value.map}),R=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.x_coordinates)??c.value.x_coordinates}),j=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.y_coordinates)??c.value.y_coordinates}),k=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.zoom_desktop)??c.value.zoom_desktop}),z=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.zoom_mobile)??c.value.zoom_mobile}),X=e.computed(()=>(typeof window<"u"?window.innerWidth:1024)>768?k.value:z.value),F=e.computed(()=>typeof window<"u"?window.innerWidth<1024:!1),ee=(P,U)=>({left:`${P}%`,top:`${U}%`,transform:"translate(-50%, -75%)"}),be=P=>{r.value=P,p.value=!0},Me=()=>{console.log("closeDetail"),p.value=!1,setTimeout(()=>{r.value=NaN},300)},W=P=>{if(P.type==="touchstart"){const U=P;V.value=U.touches[0].clientX-g.value,h.value=U.touches[0].clientY-y.value}else{const U=P;V.value=U.clientX-g.value,h.value=U.clientY-y.value}A.value=!0},q=()=>{V.value=v.value,h.value=w.value,A.value=!1},J=P=>{if(A.value){if(P.preventDefault(),P.type==="touchmove"){const U=P;v.value=U.touches[0].clientX-(V.value||0),w.value=U.touches[0].clientY-(h.value||0)}else{const U=P;v.value=U.clientX-(V.value||0),w.value=U.clientY-(h.value||0)}fe(v.value,w.value)}},fe=(P,U)=>{let te=P,Q=U;const ce=L.value,et=S.value;if(!ce||!et)return;const tl=ce.getBoundingClientRect().width,pl=ce.getBoundingClientRect().height,$e=et.getBoundingClientRect().height,Yt=typeof window<"u"?window.innerWidth:1024,xe={right:-tl+Yt/2,left:-1*Yt/2,top:-pl+$e/2,bottom:-1*$e/2};te<xe.right?te=xe.right:te>xe.left&&(te=xe.left),Q<xe.top?Q=xe.top:Q>xe.bottom&&(Q=xe.bottom),g.value=te,y.value=Q},ve=P=>{if(Math.abs(P.deltaX)>Math.abs(P.deltaY)){P.preventDefault();const U=g.value-P.deltaX;fe(U,y.value)}},Y=()=>{const P=L.value,U=S.value;if(P&&U&&P.clientWidth){const te=U.clientWidth,Q=U.clientHeight,ce=P.clientWidth,et=P.clientHeight;g.value=-(ce*R.value/100-te/2),y.value=-(et*j.value/100-Q/2)}fe(g.value,y.value)},I=P=>{f.value=P},K=P=>{P===f.value&&(f.value=NaN)},oe=()=>{Y(),e.nextTick(()=>{typeof window<"u"&&window.innerWidth<=768&&setTimeout(()=>N.value=!0,1300)})},se=P=>{P.preventDefault();const U=S.value;if(!U)return;const te=U.getBoundingClientRect();if(P.type==="touchmove"){const Q=P;C.value=Q.touches[0].clientX-te.left,b.value=Q.touches[0].clientY-te.top}else{const Q=P;C.value=Q.clientX-te.left,b.value=Q.clientY-te.top}};return e.watch(c,()=>{r.value=NaN}),e.watch(()=>typeof window<"u"?window.innerWidth:1024,()=>{Y()}),e.watch(A,()=>{N.value=!0}),e.watch(g,()=>{const P=L.value;if(!P)return;const U=P.getBoundingClientRect().width,te=typeof window<"u"?window.innerWidth:1024,Q={right:-U+te/2,left:-1*te/2};x.value=Q.left-g.value>50,E.value=g.value-Q.right>50}),e.watch(y,()=>{const P=L.value,U=S.value;if(!P||!U)return;const te=P.getBoundingClientRect().height,Q=U.getBoundingClientRect().height,ce={top:-te+Q/2,bottom:-1*Q/2};_.value=ce.bottom-y.value>50,T.value=y.value-ce.top>50}),e.watch(M,(P,U)=>{console.log("focosObj 发生变化:",{newValue:P,oldValue:U})},{deep:!0,immediate:!0}),e.onMounted(()=>{Y()}),(P,U)=>{var te;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(te=n.modelValue)==null?void 0:te.bgColor}]),class:"mapstatic-container",onMouseenter:U[7]||(U[7]=Q=>a.value=!0),onMouseleave:U[8]||(U[8]=Q=>a.value=!1)},[e.createElementVNode("div",rN,[e.createElementVNode("div",{class:"map-static",ref_key:"parent",ref:S,onMousemove:U[4]||(U[4]=Q=>se(Q))},[e.createElementVNode("div",{class:e.normalizeClass(["map__wrapper",{map__wrapper__blur:!N.value}]),ref_key:"wrapper",ref:L,style:e.normalizeStyle(O.value),draggable:A.value,onMousedown:U[0]||(U[0]=Q=>W(Q)),onMouseup:q,onMousemove:U[1]||(U[1]=Q=>J(Q)),onMouseleave:q,onTouchstart:U[2]||(U[2]=Q=>W(Q)),onTouchend:q,onTouchmove:U[3]||(U[3]=Q=>J(Q)),onWheel:ve},[e.createElementVNode("img",{class:"map__img",src:D.value,alt:"map image",onLoad:oe},null,40,cN),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(Q,ce)=>(e.openBlock(),e.createElementBlock("div",{key:Q.key,class:e.normalizeClass(["map__marker",[{"is-blur":p.value&&ce!==r.value,"is-active":ce==r.value},Q.textPos?`is-name-${Q.textPos}`:null]]),style:e.normalizeStyle(ee(Q.x_coordinates,Q.y_coordinates)),"data-title":Q.name,onClick:et=>be(ce),onMouseover:et=>I(ce),onMouseleave:et=>K(ce)},null,46,uN))),128))],46,dN),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",mN,[e.createVNode(sN,{componentProps:M.value,onClose:Me},null,8,["componentProps"])],512),[[e.vShow,p.value]])]),_:1}),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives(e.createElementVNode("div",AN,null,512),[[e.vShow,x.value]]),e.withDirectives(e.createElementVNode("div",pN,null,512),[[e.vShow,E.value]]),e.withDirectives(e.createElementVNode("div",fN,null,512),[[e.vShow,_.value]]),e.withDirectives(e.createElementVNode("div",vN,null,512),[[e.vShow,T.value]])],64)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[N.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",hN,[F.value?(e.openBlock(),e.createElementBlock("div",VN,[...U[10]||(U[10]=[e.createElementVNode("div",{class:"map-hint-fullscreen__hint"},"拖动以查看更多学校",-1)])])):(e.openBlock(),e.createElementBlock("div",{key:0,class:"map-hint",style:e.normalizeStyle({left:`${C.value}px`,top:`${b.value}px`})}," 拖动以查看更多学校 ",4))]))]),_:1})],544)]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":U[5]||(U[5]=Q=>a.value=Q),onHandleEdit:U[6]||(U[6]=Q=>i.value=!0),onHandleDelete:s,onHandleCopy:d,onHandlePaste:u},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(qk,{key:0,show:i.value,"onUpdate:show":U[9]||(U[9]=Q=>i.value=Q),data:n.modelValue},null,8,["show","data"]))],64)}}}),ks=H(gN,[["__scopeId","data-v-25e92b2c"]]),yN={install:n=>{n.component("RibbonBlock",us)}},bN={install:n=>{n.component("TimelineStory",ms)}},wN={install:n=>{n.component("NewsList",ps)}},xN={install:n=>{n.component("TheHistoryCarousel",fs)}},kN={install:n=>{n.component("CardShowcaseProfile",vs)}},NN={install:n=>{n.component("ArticleList",hi)}},_N={install:n=>{n.component("BannerImage",Vi)}},CN={install:n=>{n.component("BannerPage",gi)}},EN={install:n=>{n.component("BtnList",ha)}},TN={install:n=>{n.component("GalleryDefault",bi)}},SN={install:n=>{n.component("GalleryCaptionRound",wi)}},PN={install:n=>{n.component("GalleryTimeline",Gi)}},BN={install:n=>{n.component("GalleryTimelineCol",Ji)}},LN={install:n=>{n.component("Process",Qi)}},ON={install:n=>{n.component("CustomSpace",es)}},MN={install:n=>{n.component("GalleryList",ts)}},zN={install:n=>{n.component("HeroSlide",ls)}},jN={install:n=>{n.component("LinkList",os)}},$N={install:n=>{n.component("QuoteText",ns)}},DN={install:n=>{n.component("DonorLinks",as)}},UN={install:n=>{n.component("CardCarousel",ss)}},RN={install:n=>{n.component("CardCarouselMultiRow",rs)}},HN={install:n=>{n.component("BannerQuote",ds)}},WN={install:n=>{n.component("ArticleItem",cs)}},IN={install:n=>{n.component("CountDown",hs)}},XN={install:n=>{n.component("CustomIframe",Vs)}},qN={install:n=>{n.component("BannerImageWithLink",bs)}},FN={install:n=>{n.component("ContactUsList",gs)}},YN={install:n=>{n.component("TableTwo",ys)}},ZN={class:"seting-box"},GN={key:0},JN={class:"setting-header items-center"},KN={class:"draggable_box"},QN={class:"drag_top_box"},e_=["onClick"],t_=["src"],l_={class:"item-uplaod flex items-center"},o_={key:1},n_={class:"draggable_link_box"},a_={class:"drag_link_top_box"},i_=["onClick"],s_={class:"link_item",style:{"margin-top":"20px"}},r_={style:{width:"160px"}},d_=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),o=e.computed(()=>({animation:200,group:"linkItems",disabled:!1,ghostClass:"ghost"})),a=e.ref(!1),i=e.ref(!1),s=n,d=e.ref(new Set);e.ref(new Set);const u=e.ref(new Set),m=g=>{d.value.has(g.id)?d.value.delete(g.id):d.value.add(g.id)},c=g=>{s.data.list=s.data.list.filter(y=>y.id!==g)},r=()=>{console.log("props.data",s.data),s.data.list.push({id:B(),name:"[[ New Key Info ]]",title:"title111",image:"",label:"",content:"",links:[]}),e.nextTick(()=>{if(typeof document<"u"){const y=document.querySelector(".arco-drawer-body");y&&(y.scrollTop=y.scrollHeight)}})},f=g=>d.value.has(g.id),p=t,A=()=>{p("update:show",!1)},v=g=>{u.value.has(g.id)?u.value.delete(g.id):u.value.add(g.id)},w=g=>u.value.has(g.id),V=g=>{const y=s.data.list.find(N=>N.id===g);y&&y.links.push({id:B(),text:"新链接",linkType:"Internal Link",url:""})},h=(g,y)=>{const N=s.data.list.find(C=>C.id===g);N&&(N.links=N.links.filter(C=>C.id!==y))};return(g,y)=>{const N=e.resolveComponent("icon-drag-dot"),C=e.resolveComponent("icon-drag-arrow"),b=e.resolveComponent("icon-delete"),x=e.resolveComponent("a-input"),E=e.resolveComponent("a-option"),_=e.resolveComponent("a-select"),T=e.resolveComponent("icon-plus"),S=e.resolveComponent("a-button"),L=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(L,{width:500,visible:n.show,footer:!1,onCancel:A,unmountOnClose:""},{title:e.withCtx(()=>{var O;return[e.createTextVNode(e.toDisplayString((O=n.data)==null?void 0:O.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",ZN,[y[16]||(y[16]=e.createElementVNode("div",{class:"part_title"},"表格头部",-1)),n.data.list.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",GN,"暂无数据")),e.createElementVNode("div",JN,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.list,"onUpdate:modelValue":y[2]||(y[2]=O=>n.data.list=O),"component-data":{tag:"div",type:"transition-group",name:a.value?null:"flip-list"}},l.value,{disabled:!1,onStart:y[3]||(y[3]=O=>a.value=!0),onEnd:y[4]||(y[4]=O=>a.value=!1),"item-key":"id"}),{item:e.withCtx(({element:O})=>[e.createElementVNode("div",KN,[e.createElementVNode("div",QN,[e.createElementVNode("div",{onClick:M=>m(O)},[e.createVNode(N,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(O.name),1)],8,e_),e.createElementVNode("div",null,[e.createVNode(C,{class:"icon_drag"}),e.createVNode(b,{class:"btn-delete",onClick:e.withModifiers(M=>c(O.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[y[9]||(y[9]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"名称",-1)),e.createVNode(x,{modelValue:O.name,"onUpdate:modelValue":M=>O.name=M,placeholder:"请输入名称","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),y[10]||(y[10]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标题",-1)),e.createVNode(x,{modelValue:O.title,"onUpdate:modelValue":M=>O.title=M,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),y[11]||(y[11]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),O!=null&&O.image?(e.openBlock(),e.createElementBlock("img",{key:0,class:"item-img",src:O==null?void 0:O.image},null,8,t_)):e.createCommentVNode("",!0),e.createElementVNode("div",l_,[e.createVNode(x,{modelValue:O.image,"onUpdate:modelValue":M=>O.image=M,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:O.image,"onUpdate:modelValue":M=>O.image=M,name:`ScrollKeyInfo_${O.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),y[12]||(y[12]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标签",-1)),e.createVNode(x,{modelValue:O.label,"onUpdate:modelValue":M=>O.label=M,placeholder:"标签","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),y[13]||(y[13]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:O.content,"onUpdate:modelValue":M=>O.content=M,height:100,placeholder:"请输入内容",name:`ScrollKeyInfo_editor_${O.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),y[14]||(y[14]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"链接",-1)),O.links.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",o_,"暂无数据")),e.createVNode(e.unref(de),e.mergeProps({modelValue:O.links,"onUpdate:modelValue":M=>O.links=M,"component-data":{tag:"div",type:"transition-group",name:i.value?null:"flip-list"}},o.value,{disabled:!1,onStart:y[0]||(y[0]=M=>i.value=!0),onEnd:y[1]||(y[1]=M=>i.value=!1),"item-key":"id"}),{item:e.withCtx(({element:M,index:$})=>[e.createElementVNode("div",n_,[e.createElementVNode("div",a_,[e.createElementVNode("div",{onClick:D=>v(M)},[e.createVNode(N,{style:{"margin-right":"10px"}}),e.createTextVNode("链接 "+e.toDisplayString($+1),1)],8,i_),e.createElementVNode("div",null,[e.createVNode(C,{class:"icon_drag"}),e.createVNode(b,{class:"btn-delete",onClick:e.withModifiers(D=>h(O.id,M.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[y[7]||(y[7]=e.createElementVNode("p",{class:"link-title"},"链接文本",-1)),e.createVNode(x,{modelValue:M.text,"onUpdate:modelValue":D=>M.text=D,placeholder:"请输入文本"},null,8,["modelValue","onUpdate:modelValue"]),e.createElementVNode("div",s_,[e.createElementVNode("div",r_,[e.createVNode(_,{modelValue:M.linkType,"onUpdate:modelValue":D=>M.linkType=D,placeholder:"请选择链接类型"},{default:e.withCtx(()=>[e.createVNode(E,{value:"Internal Link"},{default:e.withCtx(()=>[...y[5]||(y[5]=[e.createTextVNode("Internal Link",-1)])]),_:1}),e.createVNode(E,{value:"External Link"},{default:e.withCtx(()=>[...y[6]||(y[6]=[e.createTextVNode("External Link",-1)])]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])]),e.createVNode(x,{modelValue:M.url,"onUpdate:modelValue":D=>M.url=D,placeholder:"请输入链接地址"},null,8,["modelValue","onUpdate:modelValue"])])],512),[[e.vShow,!w(M)]])]),_:2},1024)])]),_:2},1040,["modelValue","onUpdate:modelValue","component-data"]),e.createVNode(S,{style:{"margin-top":"20px"},size:"mini",type:"primary",onClick:M=>V(O.id)},{icon:e.withCtx(()=>[e.createVNode(T)]),default:e.withCtx(()=>[y[8]||(y[8]=e.createTextVNode(" 链接 ",-1))]),_:1},8,["onClick"])],512),[[e.vShow,!f(O)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"])]),e.createVNode(S,{type:"primary",onClick:r},{icon:e.withCtx(()=>[e.createVNode(T)]),default:e.withCtx(()=>[y[15]||(y[15]=e.createTextVNode(" 新增 ",-1))]),_:1})])]),_:1},8,["visible"])}}}),c_=H(d_,[["__scopeId","data-v-1f5c2c09"]]),u_={class:"scroll-key-info scrollkey_wrap"},m_={class:"scroll-key-info__wrapper"},A_={class:"middle_content_box"},p_={class:"content_wrap"},f_={class:"left_content"},v_={class:"title"},h_={class:"lable"},V_={class:"right_content"},g_={class:"top_content"},y_=["innerHTML"],b_={key:0,class:"bottom_content"},w_=["href"],x_={class:"a_text"},k_=["onClick"],N_={class:"a_text"},__={class:"scroll-key-info__step-bar d-none d-md-block"},C_={class:"step-bar__wrapper container-content"},E_={class:"step-bar__list"},T_=["onClick"],S_={class:"step-bar__item__text"},P_={class:"mobile_wrap"},B_={class:"tab-primary__list"},L_=["onClick"],O_={class:"flex-center"},M_={class:"tab__content__card"},z_={class:"text-blue-dark"},j_={class:"tx-body-p text-teal-dark mt-1"},$_={class:"tab__content__card__content mt-3"},D_=["innerHTML"],U_={class:"tab__content__card__link mt-6"},R_={class:"circle-link"},H_=["onClick"],W_=["onClick"],I_=e.defineComponent({name:"ScrollKeyInfo",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=e.ref(0),d=e.ref(null),u=e.ref(0),m=e.ref(0),c=()=>{o("handleDelete",l.modelValue.id)},r=()=>{o("handleCopy",l.modelValue)},f=V=>{o("handlePaste",V)},p=V=>{o("handleClick",V)},A=()=>{var h;if(l.modelValue&&l.modelValue.data)return;const V={id:((h=l.modelValue)==null?void 0:h.id)||B(),type:"ScrollKeyInfo",list:[{name:"name111",title:"title111",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/pdf/TX%20Brochure%20Cover.png",label:"label1111",content:"content111",links:[{text:"text111",linkType:"Internal Link",url:"https://www.baidu.com"},{text:"text2222",linkType:"Internal Link",url:"https://www.baidu.com"}]},{name:"name2222222",title:"title22222",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/pdf/TX%20Brochure%20Cover.png",label:"label2222",content:"content111",links:[{text:"text111",linkType:"Internal Link",url:"https://www.baidu.com"},{text:"text2222",linkType:"Internal Link",url:"https://www.baidu.com"}]},{name:"name33333333",title:"title333333",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/pdf/TX%20Brochure%20Cover.png",label:"label2222",content:"content111",links:[{text:"text111",linkType:"Internal Link",url:"https://www.baidu.com"},{text:"text2222",linkType:"Internal Link",url:"https://www.baidu.com"}]}]};o("update:modelValue",V)},v=(V,h)=>{s.value=V,w(h)},w=V=>{var E;const h=V.currentTarget.querySelector(".tab-primary__btn"),g=h.offsetWidth,y=h.offsetLeft,N=u.value,C=m.value,b=(E=d==null?void 0:d.value)==null?void 0:E.querySelector(".tab-primary__strip");b.style.transition="none";const x=Math.abs(y-C)+Math.max(g,N);m.value=Math.min(C,y),u.value=x,b.offsetHeight,b.style.transition="left 0.25s ease-in-out, width 0.25s ease-in-out",setTimeout(()=>{m.value=y,u.value=g},260)};return e.onMounted(()=>{e.nextTick(()=>{var g;const h=((g=d==null?void 0:d.value)==null?void 0:g.querySelectorAll(".tab-primary__item")[0]).querySelector(".tab-primary__btn");u.value=h.offsetWidth,m.value=h.offsetLeft})}),A(),(V,h)=>{var g,y,N,C,b,x,E;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(g=n.modelValue)==null?void 0:g.bgColor}]),class:"scroll-key-info-container",onMouseenter:h[2]||(h[2]=_=>a.value=!0),onMouseleave:h[3]||(h[3]=_=>a.value=!1)},[e.createElementVNode("div",u_,[e.createElementVNode("div",m_,[e.createVNode(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>{var _,T,S,L,O,M,$;return[(e.openBlock(),e.createElementBlock("div",{class:"pc_wrap",key:s.value,style:e.normalizeStyle({position:"relative",height:"100%",backgroundPosition:"50%",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundImage:"linear-gradient(180deg, hsla(0, 0%, 100%, 0) 78.25%, #edeef1 83.46%),url("+((_=n.modelValue)==null?void 0:_.list[s.value].image)+")"})},[e.createElementVNode("div",A_,[e.createElementVNode("div",p_,[e.createElementVNode("div",f_,[e.createElementVNode("h5",v_,e.toDisplayString((T=n.modelValue)==null?void 0:T.list[s.value].name),1),e.createElementVNode("div",h_,e.toDisplayString((S=n.modelValue)==null?void 0:S.list[s.value].label),1)]),e.createElementVNode("div",V_,[e.createElementVNode("p",g_,[e.createElementVNode("strong",{class:"content",innerHTML:(L=n.modelValue)==null?void 0:L.list[s.value].content},null,8,y_)]),(M=(O=n.modelValue)==null?void 0:O.list[s.value])!=null&&M.links.length?(e.openBlock(),e.createElementBlock("div",b_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(($=n.modelValue)==null?void 0:$.list[s.value].links,D=>(e.openBlock(),e.createElementBlock("div",{class:"bottom_item",key:D},[D&&D.url&&D.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,class:"a_style",href:D.url,target:"_blank"},[e.createElementVNode("span",x_,e.toDisplayString(D.text),1),h[5]||(h[5]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,w_)):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:R=>p(D.url),class:"a_style"},[e.createElementVNode("span",N_,e.toDisplayString(D.text),1),h[6]||(h[6]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,k_))]))),128))])):e.createCommentVNode("",!0)])])])],4))]}),_:1}),e.createElementVNode("div",__,[e.createElementVNode("div",C_,[e.createElementVNode("ul",E_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((y=n.modelValue)==null?void 0:y.list,(_,T)=>(e.openBlock(),e.createElementBlock("li",{onClick:S=>v(T,S),class:e.normalizeClass(["step-bar__item",[s.value===T?"is-active":""]])},[e.createElementVNode("div",S_,e.toDisplayString(_.name),1)],10,T_))),256))])])])]),h[7]||(h[7]=e.createElementVNode("div",{class:"scroll-key-info__content"},[e.createElementVNode("div")],-1))]),e.createElementVNode("div",P_,[e.createVNode(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>{var _;return[(e.openBlock(),e.createElementBlock("div",{class:"pc_wrap",key:s.value,style:e.normalizeStyle({position:"relative",height:"100%",backgroundPosition:"50%",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundImage:"linear-gradient(180deg, hsla(0, 0%, 100%, 0) 78.25%, #edeef1 83.46%),url("+((_=n.modelValue)==null?void 0:_.list[s.value].image)+")"})},null,4))]}),_:1}),e.createElementVNode("div",{class:"tab-primary is-campus",ref_key:"tabContainer",ref:d},[e.createElementVNode("ul",B_,[h[8]||(h[8]=e.createElementVNode("div",{class:"tab-primary__nav__prev",style:{display:"none"}},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((N=n.modelValue)==null?void 0:N.list,(_,T)=>(e.openBlock(),e.createElementBlock("li",{onClick:S=>v(T,S),class:"tab-primary__item"},[e.createElementVNode("div",O_,[e.createElementVNode("div",{class:e.normalizeClass(["tab-primary__btn",[s.value===T?"is-active":""]])},[e.createElementVNode("div",null,e.toDisplayString(_.name),1)],2)])],8,L_))),256)),h[9]||(h[9]=e.createElementVNode("div",{class:"tab-primary__nav__next",style:{display:"none"}},null,-1))]),e.createElementVNode("span",{class:"tab-primary__strip",style:e.normalizeStyle({"--strip-width":u.value+"px","--strip-left":m.value+"px","--fix-left":"0px"})},null,4)],512),e.createElementVNode("div",M_,[e.createElementVNode("h5",z_,e.toDisplayString((C=n.modelValue)==null?void 0:C.list[s.value].name),1),e.createElementVNode("div",j_,e.toDisplayString((b=n.modelValue)==null?void 0:b.list[s.value].label),1),e.createElementVNode("div",$_,[e.createElementVNode("p",{innerHTML:(x=n.modelValue)==null?void 0:x.list[s.value].content},null,8,D_)]),e.createElementVNode("div",U_,[e.createElementVNode("div",R_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((E=n.modelValue)==null?void 0:E.list[s.value].links,_=>{var T;return e.openBlock(),e.createElementBlock("div",{key:_},[_.url&&_.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:S=>p(_.url),class:"nuxt-link-active"},[e.createElementVNode("div",null,e.toDisplayString(_.text),1),h[10]||(h[10]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,H_)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList((T=n.modelValue)==null?void 0:T.list[s.value].links,S=>(e.openBlock(),e.createElementBlock("button",{onClick:L=>p(S.url),class:"nuxt-link-active",key:S},[e.createElementVNode("div",null,e.toDisplayString(S.text),1),h[11]||(h[11]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,W_))),128))])}),128))])])])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":h[0]||(h[0]=_=>a.value=_),onHandleEdit:h[1]||(h[1]=_=>i.value=!0),onHandleDelete:c,onHandleCopy:r,onHandlePaste:f},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c_,{key:0,show:i.value,"onUpdate:show":h[4]||(h[4]=_=>i.value=_),data:n.modelValue},null,8,["show","data"]))],64)}}}),X_=H(I_,[["__scopeId","data-v-25e84daf"]]),q_={install:n=>{n.component("ScrollKeyInfo",X_)}},F_={install:n=>{n.component("ContactUsInfo",ws)}},Y_={install:n=>{n.component("Publications",xs)}},Z_={install:n=>{n.component("MapStatic",ks)}},G_={class:"seting-box"},J_={key:0},K_={class:"draggable_box"},Q_={class:"drag_top_box"},eC=["onClick"],tC={class:"line-clamp-2"},lC=["src"],oC={class:"item-uplaod flex items-center"},nC={class:"btn_group"},aC=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=p=>{const A={key:B(8),title:"新文章",description:"这是一个新的文章描述",image:"https://picsum.photos/800/600",date:new Date().toISOString().split("T")[0],label:"new",labelName:"新标签",category:"new"};p==="prepend"?l.data.list.unshift(A):p==="append"&&l.data.list.push(A)},a=p=>s.value.has(p.key),i=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),s=e.ref(new Set),d=p=>{l.data.list=l.data.list.filter(A=>A.key!==p)},u=p=>{if(!s.value.has(p.key))s.value.add(p.key);else{const A=[];l.data.list.forEach(v=>{v.key&&A.push(v.key)}),s.value=new Set(A),s.value.delete(p.key)}},m=e.ref(!1);e.watch(()=>{var p;return(p=l.data)==null?void 0:p.list},p=>{if(p&&Array.isArray(p)&&!m.value){m.value=!0;const A=p.map(v=>v.key);s.value=new Set(A)}},{immediate:!0,deep:!0});const c=t,r=e.ref(!1),f=()=>{c("update:show",!1)};return(p,A)=>{const v=e.resolveComponent("a-option"),w=e.resolveComponent("a-select"),V=e.resolveComponent("a-input"),h=e.resolveComponent("icon-drag-dot"),g=e.resolveComponent("icon-drag-arrow"),y=e.resolveComponent("icon-delete"),N=e.resolveComponent("a-date-picker"),C=e.resolveComponent("a-button"),b=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(b,{width:500,visible:n.show,footer:!1,onCancel:f,unmountOnClose:""},{title:e.withCtx(()=>{var x;return[e.createTextVNode(e.toDisplayString((x=n.data)==null?void 0:x.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",G_,[A[20]||(A[20]=e.createElementVNode("p",{class:"item-title"},"内容宽度",-1)),e.createVNode(w,{style:{width:"320px",background:"#ffffff",marginBottom:"20px"},modelValue:n.data.width,"onUpdate:modelValue":A[0]||(A[0]=x=>n.data.width=x),placeholder:"请选择宽度..."},{default:e.withCtx(()=>[e.createVNode(v,{value:"container-content-800"},{default:e.withCtx(()=>[...A[7]||(A[7]=[e.createTextVNode("小 ",-1)])]),_:1}),e.createVNode(v,{value:"container-content-952"},{default:e.withCtx(()=>[...A[8]||(A[8]=[e.createTextVNode("默认 ",-1)])]),_:1}),e.createVNode(v,{value:"container-content-1208"},{default:e.withCtx(()=>[...A[9]||(A[9]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(v,{value:"container-content-1920"},{default:e.withCtx(()=>[...A[10]||(A[10]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"]),n.data.getDataType==="all"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[A[11]||(A[11]=e.createElementVNode("p",{class:"item-title"},"您希望展示的文章类别标签",-1)),e.createVNode(V,{modelValue:n.data.getDataType,"onUpdate:modelValue":A[1]||(A[1]=x=>n.data.getDataType=x)},null,8,["modelValue"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.data.list.length===0?(e.openBlock(),e.createElementBlock("div",J_,"暂无数据")):e.createCommentVNode("",!0),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.list,"onUpdate:modelValue":A[2]||(A[2]=x=>n.data.list=x),"component-data":{tag:"div",type:"transition-group",name:r.value?null:"flip-list"}},i.value,{disabled:!1,onStart:A[3]||(A[3]=x=>r.value=!0),onEnd:A[4]||(A[4]=x=>r.value=!1),"item-key":"key"}),{item:e.withCtx(({element:x,index:E})=>[e.createElementVNode("div",K_,[e.createElementVNode("div",Q_,[e.createElementVNode("div",{style:{display:"flex","align-items":"center"},onClick:_=>u(x)},[e.createVNode(h,{style:{"margin-right":"10px"}}),e.createElementVNode("span",tC,e.toDisplayString(x.title),1)],8,eC),e.createElementVNode("div",null,[e.createVNode(g,{class:"icon_drag"}),e.createVNode(y,{class:"btn-delete",onClick:e.withModifiers(_=>d(x.key),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[A[12]||(A[12]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标题",-1)),e.createVNode(V,{style:{border:"1px solid #f1eeee"},modelValue:x.title,"onUpdate:modelValue":_=>x.title=_},null,8,["modelValue","onUpdate:modelValue"]),A[13]||(A[13]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:x.image},null,8,lC),e.createElementVNode("div",oC,[e.createVNode(V,{modelValue:x.image,"onUpdate:modelValue":_=>x.image=_,placeholder:"请输入图片链接","allow-clear":"",style:{border:"1px solid #c0c0c0"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:x.image,"onUpdate:modelValue":_=>x.image=_,name:`CardCarouselArticles_${x.key}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),A[14]||(A[14]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"链接",-1)),e.createVNode(V,{style:{border:"1px solid #f1eeee"},modelValue:x.link,"onUpdate:modelValue":_=>x.link=_},null,8,["modelValue","onUpdate:modelValue"]),A[15]||(A[15]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标签名称",-1)),e.createVNode(V,{style:{border:"1px solid #f1eeee"},modelValue:x.labelName,"onUpdate:modelValue":_=>x.labelName=_},null,8,["modelValue","onUpdate:modelValue"]),A[16]||(A[16]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"描述",-1)),e.createVNode(V,{style:{border:"1px solid #f1eeee"},modelValue:x.desc,"onUpdate:modelValue":_=>x.desc=_},null,8,["modelValue","onUpdate:modelValue"]),A[17]||(A[17]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"日期",-1)),e.createVNode(N,{style:{width:"200px"},modelValue:x.date,"onUpdate:modelValue":_=>x.date=_},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!a(x)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"]),e.createElementVNode("div",nC,[e.createVNode(C,{onClick:A[5]||(A[5]=x=>o("prepend")),type:"primary",style:{"margin-right":"20px"}},{default:e.withCtx(()=>[...A[18]||(A[18]=[e.createTextVNode("前置",-1)])]),_:1}),e.createVNode(C,{onClick:A[6]||(A[6]=x=>o("append")),type:"primary"},{default:e.withCtx(()=>[...A[19]||(A[19]=[e.createTextVNode("追加",-1)])]),_:1})])],64))])]),_:1},8,["visible"])}}}),iC=H(aC,[["__scopeId","data-v-2bf2966b"]]);/*!
29
+ */var G,wo,me,Te,Lt,ke,Hi,Aa,Nn,un,Ko,Mn,rt,wa,ri,vt,Gs,Js,xo,$d,ja,Dd,ft,di,Ud,Rd,Pl,ci,Wi,Bo,Ii,pa,ui,$a,zn=1,dt=Date.now,Da=dt(),Ft=0,Qo=0,Ks=function(t,l,o){var a=Pt(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return o["_"+l+"Clamp"]=a,a?t.substr(6,t.length-7):t},Qs=function(t,l){return l&&(!Pt(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},cf=function n(){return Qo&&requestAnimationFrame(n)},er=function(){return wa=1},tr=function(){return wa=0},sl=function(t){return t},en=function(t){return Math.round(t*1e5)/1e5||0},Hd=function(){return typeof window<"u"},Wd=function(){return G||Hd()&&(G=window.gsap)&&G.registerPlugin&&G},uo=function(t){return!!~Hi.indexOf(t)},Id=function(t){return(t==="Height"?Ii:me["inner"+t])||Lt["client"+t]||ke["client"+t]},Xd=function(t){return Dl(t,"getBoundingClientRect")||(uo(t)?function(){return ta.width=me.innerWidth,ta.height=Ii,ta}:function(){return yl(t)})},uf=function(t,l,o){var a=o.d,i=o.d2,s=o.a;return(s=Dl(t,"getBoundingClientRect"))?function(){return s()[a]}:function(){return(l?Id(i):t["client"+i])||0}},mf=function(t,l){return!l||~ul.indexOf(t)?Xd(t):function(){return ta}},cl=function(t,l){var o=l.s,a=l.d2,i=l.d,s=l.a;return Math.max(0,(o="scroll"+a)&&(s=Dl(t,o))?s()-Xd(t)()[i]:uo(t)?(Lt[o]||ke[o])-Id(a):t[o]-t["offset"+a])},jn=function(t,l){for(var o=0;o<xo.length;o+=3)(!l||~l.indexOf(xo[o+1]))&&t(xo[o],xo[o+1],xo[o+2])},Pt=function(t){return typeof t=="string"},ut=function(t){return typeof t=="function"},tn=function(t){return typeof t=="number"},Kl=function(t){return typeof t=="object"},Zo=function(t,l,o){return t&&t.progress(l?0:1)&&o&&t.pause()},Ua=function(t,l){if(t.enabled){var o=t._ctx?t._ctx.add(function(){return l(t)}):l(t);o&&o.totalTime&&(t.callbackAnimation=o)}},go=Math.abs,qd="left",Fd="top",Xi="right",qi="bottom",io="width",so="height",mn="Right",An="Left",pn="Top",fn="Bottom",We="padding",Ht="margin",Uo="Width",Fi="Height",Ye="px",Wt=function(t){return me.getComputedStyle(t)},Af=function(t){var l=Wt(t).position;t.style.position=l==="absolute"||l==="fixed"?l:"relative"},lr=function(t,l){for(var o in l)o in t||(t[o]=l[o]);return t},yl=function(t,l){var o=l&&Wt(t)[ri]!=="matrix(1, 0, 0, 1, 0, 0)"&&G.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),a=t.getBoundingClientRect();return o&&o.progress(0).kill(),a},fa=function(t,l){var o=l.d2;return t["offset"+o]||t["client"+o]||0},Yd=function(t){var l=[],o=t.labels,a=t.duration(),i;for(i in o)l.push(o[i]/a);return l},pf=function(t){return function(l){return G.utils.snap(Yd(t),l)}},Yi=function(t){var l=G.utils.snap(t),o=Array.isArray(t)&&t.slice(0).sort(function(a,i){return a-i});return o?function(a,i,s){s===void 0&&(s=.001);var d;if(!i)return l(a);if(i>0){for(a-=s,d=0;d<o.length;d++)if(o[d]>=a)return o[d];return o[d-1]}else for(d=o.length,a+=s;d--;)if(o[d]<=a)return o[d];return o[0]}:function(a,i,s){s===void 0&&(s=.001);var d=l(a);return!i||Math.abs(d-a)<s||d-a<0==i<0?d:l(i<0?a-t:a+t)}},ff=function(t){return function(l,o){return Yi(Yd(t))(l,o.direction)}},$n=function(t,l,o,a){return o.split(",").forEach(function(i){return t(l,i,a)})},Ke=function(t,l,o,a,i){return t.addEventListener(l,o,{passive:!a,capture:!!i})},Je=function(t,l,o,a){return t.removeEventListener(l,o,!!a)},Dn=function(t,l,o){o=o&&o.wheelHandler,o&&(t(l,"wheel",o),t(l,"touchmove",o))},or={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Un={toggleActions:"play",anticipatePin:0},va={top:0,left:0,center:.5,bottom:1,right:1},Jn=function(t,l){if(Pt(t)){var o=t.indexOf("="),a=~o?+(t.charAt(o-1)+1)*parseFloat(t.substr(o+1)):0;~o&&(t.indexOf("%")>o&&(a*=l/100),t=t.substr(0,o-1)),t=a+(t in va?va[t]*l:~t.indexOf("%")?parseFloat(t)*l/100:parseFloat(t)||0)}return t},Rn=function(t,l,o,a,i,s,d,u){var m=i.startColor,c=i.endColor,r=i.fontSize,f=i.indent,p=i.fontWeight,A=Te.createElement("div"),v=uo(o)||Dl(o,"pinType")==="fixed",w=t.indexOf("scroller")!==-1,V=v?ke:o,h=t.indexOf("start")!==-1,g=h?m:c,y="border-color:"+g+";font-size:"+r+";color:"+g+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((w||u)&&v?"fixed;":"absolute;"),(w||u||!v)&&(y+=(a===Ze?Xi:qi)+":"+(s+parseFloat(f))+"px;"),d&&(y+="box-sizing:border-box;text-align:left;width:"+d.offsetWidth+"px;"),A._isStart=h,A.setAttribute("class","gsap-marker-"+t+(l?" marker-"+l:"")),A.style.cssText=y,A.innerText=l||l===0?t+"-"+l:t,V.children[0]?V.insertBefore(A,V.children[0]):V.appendChild(A),A._offset=A["offset"+a.op.d2],Kn(A,0,a,h),A},Kn=function(t,l,o,a){var i={display:"block"},s=o[a?"os2":"p2"],d=o[a?"p2":"os2"];t._isFlipped=a,i[o.a+"Percent"]=a?-100:0,i[o.a]=a?"1px":0,i["border"+s+Uo]=1,i["border"+d+Uo]=0,i[o.p]=l+"px",G.set(t,i)},ue=[],mi={},_n,nr=function(){return dt()-Ft>34&&(_n||(_n=requestAnimationFrame(wl)))},yo=function(){(!ft||!ft.isPressed||ft.startX>ke.clientWidth)&&(Ae.cache++,ft?_n||(_n=requestAnimationFrame(wl)):wl(),Ft||Ao("scrollStart"),Ft=dt())},Ra=function(){Rd=me.innerWidth,Ud=me.innerHeight},ln=function(t){Ae.cache++,(t===!0||!rt&&!Dd&&!Te.fullscreenElement&&!Te.webkitFullscreenElement&&(!di||Rd!==me.innerWidth||Math.abs(me.innerHeight-Ud)>me.innerHeight*.25))&&Aa.restart(!0)},mo={},vf=[],Zd=function n(){return Je(pe,"scrollEnd",n)||to(!0)},Ao=function(t){return mo[t]&&mo[t].map(function(l){return l()})||vf},St=[],Gd=function(t){for(var l=0;l<St.length;l+=5)(!t||St[l+4]&&St[l+4].query===t)&&(St[l].style.cssText=St[l+1],St[l].getBBox&&St[l].setAttribute("transform",St[l+2]||""),St[l+3].uncache=1)},Zi=function(t,l){var o;for(vt=0;vt<ue.length;vt++)o=ue[vt],o&&(!l||o._ctx===l)&&(t?o.kill(1):o.revert(!0,!0));pa=!0,l&&Gd(l),l||Ao("revert")},Jd=function(t,l){Ae.cache++,(l||!ht)&&Ae.forEach(function(o){return ut(o)&&o.cacheID++&&(o.rec=0)}),Pt(t)&&(me.history.scrollRestoration=Wi=t)},ht,ro=0,ar,hf=function(){if(ar!==ro){var t=ar=ro;requestAnimationFrame(function(){return t===ro&&to(!0)})}},Kd=function(){ke.appendChild(Bo),Ii=!ft&&Bo.offsetHeight||me.innerHeight,ke.removeChild(Bo)},ir=function(t){return Nn(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(l){return l.style.display=t?"none":"block"})},to=function(t,l){if(Lt=Te.documentElement,ke=Te.body,Hi=[me,Te,Lt,ke],Ft&&!t&&!pa){Ke(pe,"scrollEnd",Zd);return}Kd(),ht=pe.isRefreshing=!0,Ae.forEach(function(a){return ut(a)&&++a.cacheID&&(a.rec=a())});var o=Ao("refreshInit");$d&&pe.sort(),l||Zi(),Ae.forEach(function(a){ut(a)&&(a.smooth&&(a.target.style.scrollBehavior="auto"),a(0))}),ue.slice(0).forEach(function(a){return a.refresh()}),pa=!1,ue.forEach(function(a){if(a._subPinOffset&&a.pin){var i=a.vars.horizontal?"offsetWidth":"offsetHeight",s=a.pin[i];a.revert(!0,1),a.adjustPinSpacing(a.pin[i]-s),a.refresh()}}),ui=1,ir(!0),ue.forEach(function(a){var i=cl(a.scroller,a._dir),s=a.vars.end==="max"||a._endClamp&&a.end>i,d=a._startClamp&&a.start>=i;(s||d)&&a.setPositions(d?i-1:a.start,s?Math.max(d?i:a.start+1,i):a.end,!0)}),ir(!1),ui=0,o.forEach(function(a){return a&&a.render&&a.render(-1)}),Ae.forEach(function(a){ut(a)&&(a.smooth&&requestAnimationFrame(function(){return a.target.style.scrollBehavior="smooth"}),a.rec&&a(a.rec))}),Jd(Wi,1),Aa.pause(),ro++,ht=2,wl(2),ue.forEach(function(a){return ut(a.vars.onRefresh)&&a.vars.onRefresh(a)}),ht=pe.isRefreshing=!1,Ao("refresh")},Ai=0,Qn=1,vn,wl=function(t){if(t===2||!ht&&!pa){pe.isUpdating=!0,vn&&vn.update(0);var l=ue.length,o=dt(),a=o-Da>=50,i=l&&ue[0].scroll();if(Qn=Ai>i?-1:1,ht||(Ai=i),a&&(Ft&&!wa&&o-Ft>200&&(Ft=0,Ao("scrollEnd")),Ko=Da,Da=o),Qn<0){for(vt=l;vt-- >0;)ue[vt]&&ue[vt].update(0,a);Qn=1}else for(vt=0;vt<l;vt++)ue[vt]&&ue[vt].update(0,a);pe.isUpdating=!1}_n=0},pi=[qd,Fd,qi,Xi,Ht+fn,Ht+mn,Ht+pn,Ht+An,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],ea=pi.concat([io,so,"boxSizing","max"+Uo,"max"+Fi,"position",Ht,We,We+pn,We+mn,We+fn,We+An]),Vf=function(t,l,o){Lo(o);var a=t._gsap;if(a.spacerIsNative)Lo(a.spacerState);else if(t._gsap.swappedIn){var i=l.parentNode;i&&(i.insertBefore(t,l),i.removeChild(l))}t._gsap.swappedIn=!1},Ha=function(t,l,o,a){if(!t._gsap.swappedIn){for(var i=pi.length,s=l.style,d=t.style,u;i--;)u=pi[i],s[u]=o[u];s.position=o.position==="absolute"?"absolute":"relative",o.display==="inline"&&(s.display="inline-block"),d[qi]=d[Xi]="auto",s.flexBasis=o.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[io]=fa(t,gt)+Ye,s[so]=fa(t,Ze)+Ye,s[We]=d[Ht]=d[Fd]=d[qd]="0",Lo(a),d[io]=d["max"+Uo]=o[io],d[so]=d["max"+Fi]=o[so],d[We]=o[We],t.parentNode!==l&&(t.parentNode.insertBefore(l,t),l.appendChild(t)),t._gsap.swappedIn=!0}},gf=/([A-Z])/g,Lo=function(t){if(t){var l=t.t.style,o=t.length,a=0,i,s;for((t.t._gsap||G.core.getCache(t.t)).uncache=1;a<o;a+=2)s=t[a+1],i=t[a],s?l[i]=s:l[i]&&l.removeProperty(i.replace(gf,"-$1").toLowerCase())}},Hn=function(t){for(var l=ea.length,o=t.style,a=[],i=0;i<l;i++)a.push(ea[i],o[ea[i]]);return a.t=t,a},yf=function(t,l,o){for(var a=[],i=t.length,s=o?8:0,d;s<i;s+=2)d=t[s],a.push(d,d in l?l[d]:t[s+1]);return a.t=t.t,a},ta={left:0,top:0},sr=function(t,l,o,a,i,s,d,u,m,c,r,f,p,A){ut(t)&&(t=t(u)),Pt(t)&&t.substr(0,3)==="max"&&(t=f+(t.charAt(4)==="="?Jn("0"+t.substr(3),o):0));var v=p?p.time():0,w,V,h;if(p&&p.seek(0),isNaN(t)||(t=+t),tn(t))p&&(t=G.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,f,t)),d&&Kn(d,o,a,!0);else{ut(l)&&(l=l(u));var g=(t||"0").split(" "),y,N,C,b;h=xt(l,u)||ke,y=yl(h)||{},(!y||!y.left&&!y.top)&&Wt(h).display==="none"&&(b=h.style.display,h.style.display="block",y=yl(h),b?h.style.display=b:h.style.removeProperty("display")),N=Jn(g[0],y[a.d]),C=Jn(g[1]||"0",o),t=y[a.p]-m[a.p]-c+N+i-C,d&&Kn(d,C,a,o-C<20||d._isStart&&C>20),o-=o-C}if(A&&(u[A]=t||-.001,t<0&&(t=0)),s){var x=t+o,E=s._isStart;w="scroll"+a.d2,Kn(s,x,a,E&&x>20||!E&&(r?Math.max(ke[w],Lt[w]):s.parentNode[w])<=x+1),r&&(m=yl(d),r&&(s.style[a.op.p]=m[a.op.p]-a.op.m-s._offset+Ye))}return p&&h&&(w=yl(h),p.seek(f),V=yl(h),p._caScrollDist=w[a.p]-V[a.p],t=t/p._caScrollDist*f),p&&p.seek(v),p?t:Math.round(t)},bf=/(webkit|moz|length|cssText|inset)/i,rr=function(t,l,o,a){if(t.parentNode!==l){var i=t.style,s,d;if(l===ke){t._stOrig=i.cssText,d=Wt(t);for(s in d)!+s&&!bf.test(s)&&d[s]&&typeof i[s]=="string"&&s!=="0"&&(i[s]=d[s]);i.top=o,i.left=a}else i.cssText=t._stOrig;G.core.getCache(t).uncache=1,l.appendChild(t)}},Qd=function(t,l,o){var a=l,i=a;return function(s){var d=Math.round(t());return d!==a&&d!==i&&Math.abs(d-a)>3&&Math.abs(d-i)>3&&(s=d,o&&o()),i=a,a=Math.round(s),a}},Wn=function(t,l,o){var a={};a[l.p]="+="+o,G.set(t,a)},dr=function(t,l){var o=Hl(t,l),a="_scroll"+l.p2,i=function s(d,u,m,c,r){var f=s.tween,p=u.onComplete,A={};m=m||o();var v=Qd(o,m,function(){f.kill(),s.tween=0});return r=c&&r||0,c=c||d-m,f&&f.kill(),u[a]=d,u.inherit=!1,u.modifiers=A,A[a]=function(){return v(m+c*f.ratio+r*f.ratio*f.ratio)},u.onUpdate=function(){Ae.cache++,s.tween&&wl()},u.onComplete=function(){s.tween=0,p&&p.call(f)},f=s.tween=G.to(t,u),f};return t[a]=o,o.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Ke(t,"wheel",o.wheelHandler),pe.isTouch&&Ke(t,"touchmove",o.wheelHandler),i},pe=function(){function n(l,o){wo||n.register(G)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ci(this),this.init(l,o)}var t=n.prototype;return t.init=function(o,a){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Qo){this.update=this.refresh=this.kill=sl;return}o=lr(Pt(o)||tn(o)||o.nodeType?{trigger:o}:o,Un);var i=o,s=i.onUpdate,d=i.toggleClass,u=i.id,m=i.onToggle,c=i.onRefresh,r=i.scrub,f=i.trigger,p=i.pin,A=i.pinSpacing,v=i.invalidateOnRefresh,w=i.anticipatePin,V=i.onScrubComplete,h=i.onSnapComplete,g=i.once,y=i.snap,N=i.pinReparent,C=i.pinSpacer,b=i.containerAnimation,x=i.fastScrollEnd,E=i.preventOverlaps,_=o.horizontal||o.containerAnimation&&o.horizontal!==!1?gt:Ze,T=!r&&r!==0,S=xt(o.scroller||me),L=G.core.getCache(S),O=uo(S),M=("pinType"in o?o.pinType:Dl(S,"pinType")||O&&"fixed")==="fixed",$=[o.onEnter,o.onLeave,o.onEnterBack,o.onLeaveBack],D=T&&o.toggleActions.split(" "),R="markers"in o?o.markers:Un.markers,j=O?0:parseFloat(Wt(S)["border"+_.p2+Uo])||0,k=this,z=o.onRefreshInit&&function(){return o.onRefreshInit(k)},X=uf(S,O,_),F=mf(S,O),ee=0,be=0,Me=0,W=Hl(S,_),q,J,fe,ve,Y,I,K,oe,se,P,U,te,Q,ce,et,tl,pl,$e,Yt,xe,Zt,Ut,fl,Ro,He,En,vl,fo,vo,Nl,Il,he,Xl,Gt,Jt,Kt,ql,ho,hl;if(k._startClamp=k._endClamp=!1,k._dir=_,w*=45,k.scroller=S,k.scroll=b?b.time.bind(b):W,ve=W(),k.vars=o,a=a||o.animation,"refreshPriority"in o&&($d=1,o.refreshPriority===-9999&&(vn=k)),L.tweenScroll=L.tweenScroll||{top:dr(S,Ze),left:dr(S,gt)},k.tweenTo=q=L.tweenScroll[_.p],k.scrubDuration=function(Z){Xl=tn(Z)&&Z,Xl?he?he.duration(Z):he=G.to(a,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Xl,paused:!0,onComplete:function(){return V&&V(k)}}):(he&&he.progress(1).kill(),he=0)},a&&(a.vars.lazy=!1,a._initted&&!k.isReverted||a.vars.immediateRender!==!1&&o.immediateRender!==!1&&a.duration()&&a.render(0,!0,!0),k.animation=a.pause(),a.scrollTrigger=k,k.scrubDuration(r),Nl=0,u||(u=a.vars.id)),y&&((!Kl(y)||y.push)&&(y={snapTo:y}),"scrollBehavior"in ke.style&&G.set(O?[ke,Lt]:S,{scrollBehavior:"auto"}),Ae.forEach(function(Z){return ut(Z)&&Z.target===(O?Te.scrollingElement||Lt:S)&&(Z.smooth=!1)}),fe=ut(y.snapTo)?y.snapTo:y.snapTo==="labels"?pf(a):y.snapTo==="labelsDirectional"?ff(a):y.directional!==!1?function(Z,ae){return Yi(y.snapTo)(Z,dt()-be<500?0:ae.direction)}:G.utils.snap(y.snapTo),Gt=y.duration||{min:.1,max:2},Gt=Kl(Gt)?un(Gt.min,Gt.max):un(Gt,Gt),Jt=G.delayedCall(y.delay||Xl/2||.1,function(){var Z=W(),ae=dt()-be<500,le=q.tween;if((ae||Math.abs(k.getVelocity())<10)&&!le&&!wa&&ee!==Z){var ie=(Z-I)/ce,Ge=a&&!T?a.totalProgress():ie,Ve=ae?0:(Ge-Il)/(dt()-Ko)*1e3||0,De=G.utils.clamp(-ie,1-ie,go(Ve/2)*Ve/.185),at=ie+(y.inertia===!1?0:De),ze,Se,_e=y,Qt=_e.onStart,Be=_e.onInterrupt,Tt=_e.onComplete;if(ze=fe(at,k),tn(ze)||(ze=at),Se=Math.max(0,Math.round(I+ze*ce)),Z<=K&&Z>=I&&Se!==Z){if(le&&!le._initted&&le.data<=go(Se-Z))return;y.inertia===!1&&(De=ze-ie),q(Se,{duration:Gt(go(Math.max(go(at-Ge),go(ze-Ge))*.185/Ve/.05||0)),ease:y.ease||"power3",data:go(Se-Z),onInterrupt:function(){return Jt.restart(!0)&&Be&&Be(k)},onComplete:function(){k.update(),ee=W(),a&&!T&&(he?he.resetTo("totalProgress",ze,a._tTime/a._tDur):a.progress(ze)),Nl=Il=a&&!T?a.totalProgress():k.progress,h&&h(k),Tt&&Tt(k)}},Z,De*ce,Se-Z-De*ce),Qt&&Qt(k,q.tween)}}else k.isActive&&ee!==Z&&Jt.restart(!0)}).pause()),u&&(mi[u]=k),f=k.trigger=xt(f||p!==!0&&p),hl=f&&f._gsap&&f._gsap.stRevert,hl&&(hl=hl(k)),p=p===!0?f:xt(p),Pt(d)&&(d={targets:f,className:d}),p&&(A===!1||A===Ht||(A=!A&&p.parentNode&&p.parentNode.style&&Wt(p.parentNode).display==="flex"?!1:We),k.pin=p,J=G.core.getCache(p),J.spacer?et=J.pinState:(C&&(C=xt(C),C&&!C.nodeType&&(C=C.current||C.nativeElement),J.spacerIsNative=!!C,C&&(J.spacerState=Hn(C))),J.spacer=$e=C||Te.createElement("div"),$e.classList.add("pin-spacer"),u&&$e.classList.add("pin-spacer-"+u),J.pinState=et=Hn(p)),o.force3D!==!1&&G.set(p,{force3D:!0}),k.spacer=$e=J.spacer,vo=Wt(p),Ro=vo[A+_.os2],xe=G.getProperty(p),Zt=G.quickSetter(p,_.a,Ye),Ha(p,$e,vo),pl=Hn(p)),R){te=Kl(R)?lr(R,or):or,P=Rn("scroller-start",u,S,_,te,0),U=Rn("scroller-end",u,S,_,te,0,P),Yt=P["offset"+_.op.d2];var Ho=xt(Dl(S,"content")||S);oe=this.markerStart=Rn("start",u,Ho,_,te,Yt,0,b),se=this.markerEnd=Rn("end",u,Ho,_,te,Yt,0,b),b&&(ho=G.quickSetter([oe,se],_.a,Ye)),!M&&!(ul.length&&Dl(S,"fixedMarkers")===!0)&&(Af(O?ke:S),G.set([P,U],{force3D:!0}),En=G.quickSetter(P,_.a,Ye),fo=G.quickSetter(U,_.a,Ye))}if(b){var re=b.vars.onUpdate,ne=b.vars.onUpdateParams;b.eventCallback("onUpdate",function(){k.update(0,0,1),re&&re.apply(b,ne||[])})}if(k.previous=function(){return ue[ue.indexOf(k)-1]},k.next=function(){return ue[ue.indexOf(k)+1]},k.revert=function(Z,ae){if(!ae)return k.kill(!0);var le=Z!==!1||!k.enabled,ie=rt;le!==k.isReverted&&(le&&(Kt=Math.max(W(),k.scroll.rec||0),Me=k.progress,ql=a&&a.progress()),oe&&[oe,se,P,U].forEach(function(Ge){return Ge.style.display=le?"none":"block"}),le&&(rt=k,k.update(le)),p&&(!N||!k.isActive)&&(le?Vf(p,$e,et):Ha(p,$e,Wt(p),He)),le||k.update(le),rt=ie,k.isReverted=le)},k.refresh=function(Z,ae,le,ie){if(!((rt||!k.enabled)&&!ae)){if(p&&Z&&Ft){Ke(n,"scrollEnd",Zd);return}!ht&&z&&z(k),rt=k,q.tween&&!le&&(q.tween.kill(),q.tween=0),he&&he.pause(),v&&a&&(a.revert({kill:!1}).invalidate(),a.getChildren&&a.getChildren(!0,!0,!1).forEach(function(_l){return _l.vars.immediateRender&&_l.render(0,!0,!0)})),k.isReverted||k.revert(!0,!0),k._subPinOffset=!1;var Ge=X(),Ve=F(),De=b?b.duration():cl(S,_),at=ce<=.01||!ce,ze=0,Se=ie||0,_e=Kl(le)?le.end:o.end,Qt=o.endTrigger||f,Be=Kl(le)?le.start:o.start||(o.start===0||!f?0:p?"0 0":"0 100%"),Tt=k.pinnedContainer=o.pinnedContainer&&xt(o.pinnedContainer,k),ll=f&&Math.max(0,ue.indexOf(k))||0,tt=ll,lt,it,Fl,Tn,st,Fe,ol,Na,Ns,Wo,nl,Io,Sn;for(R&&Kl(le)&&(Io=G.getProperty(P,_.p),Sn=G.getProperty(U,_.p));tt-- >0;)Fe=ue[tt],Fe.end||Fe.refresh(0,1)||(rt=k),ol=Fe.pin,ol&&(ol===f||ol===p||ol===Tt)&&!Fe.isReverted&&(Wo||(Wo=[]),Wo.unshift(Fe),Fe.revert(!0,!0)),Fe!==ue[tt]&&(ll--,tt--);for(ut(Be)&&(Be=Be(k)),Be=Ks(Be,"start",k),I=sr(Be,f,Ge,_,W(),oe,P,k,Ve,j,M,De,b,k._startClamp&&"_startClamp")||(p?-.001:0),ut(_e)&&(_e=_e(k)),Pt(_e)&&!_e.indexOf("+=")&&(~_e.indexOf(" ")?_e=(Pt(Be)?Be.split(" ")[0]:"")+_e:(ze=Jn(_e.substr(2),Ge),_e=Pt(Be)?Be:(b?G.utils.mapRange(0,b.duration(),b.scrollTrigger.start,b.scrollTrigger.end,I):I)+ze,Qt=f)),_e=Ks(_e,"end",k),K=Math.max(I,sr(_e||(Qt?"100% 0":De),Qt,Ge,_,W()+ze,se,U,k,Ve,j,M,De,b,k._endClamp&&"_endClamp"))||-.001,ze=0,tt=ll;tt--;)Fe=ue[tt],ol=Fe.pin,ol&&Fe.start-Fe._pinPush<=I&&!b&&Fe.end>0&&(lt=Fe.end-(k._startClamp?Math.max(0,Fe.start):Fe.start),(ol===f&&Fe.start-Fe._pinPush<I||ol===Tt)&&isNaN(Be)&&(ze+=lt*(1-Fe.progress)),ol===p&&(Se+=lt));if(I+=ze,K+=ze,k._startClamp&&(k._startClamp+=ze),k._endClamp&&!ht&&(k._endClamp=K||-.001,K=Math.min(K,cl(S,_))),ce=K-I||(I-=.01)&&.001,at&&(Me=G.utils.clamp(0,1,G.utils.normalize(I,K,Kt))),k._pinPush=Se,oe&&ze&&(lt={},lt[_.a]="+="+ze,Tt&&(lt[_.p]="-="+W()),G.set([oe,se],lt)),p&&!(ui&&k.end>=cl(S,_)))lt=Wt(p),Tn=_===Ze,Fl=W(),Ut=parseFloat(xe(_.a))+Se,!De&&K>1&&(nl=(O?Te.scrollingElement||Lt:S).style,nl={style:nl,value:nl["overflow"+_.a.toUpperCase()]},O&&Wt(ke)["overflow"+_.a.toUpperCase()]!=="scroll"&&(nl.style["overflow"+_.a.toUpperCase()]="scroll")),Ha(p,$e,lt),pl=Hn(p),it=yl(p,!0),Na=M&&Hl(S,Tn?gt:Ze)(),A?(He=[A+_.os2,ce+Se+Ye],He.t=$e,tt=A===We?fa(p,_)+ce+Se:0,tt&&(He.push(_.d,tt+Ye),$e.style.flexBasis!=="auto"&&($e.style.flexBasis=tt+Ye)),Lo(He),Tt&&ue.forEach(function(_l){_l.pin===Tt&&_l.vars.pinSpacing!==!1&&(_l._subPinOffset=!0)}),M&&W(Kt)):(tt=fa(p,_),tt&&$e.style.flexBasis!=="auto"&&($e.style.flexBasis=tt+Ye)),M&&(st={top:it.top+(Tn?Fl-I:Na)+Ye,left:it.left+(Tn?Na:Fl-I)+Ye,boxSizing:"border-box",position:"fixed"},st[io]=st["max"+Uo]=Math.ceil(it.width)+Ye,st[so]=st["max"+Fi]=Math.ceil(it.height)+Ye,st[Ht]=st[Ht+pn]=st[Ht+mn]=st[Ht+fn]=st[Ht+An]="0",st[We]=lt[We],st[We+pn]=lt[We+pn],st[We+mn]=lt[We+mn],st[We+fn]=lt[We+fn],st[We+An]=lt[We+An],tl=yf(et,st,N),ht&&W(0)),a?(Ns=a._initted,ja(1),a.render(a.duration(),!0,!0),fl=xe(_.a)-Ut+ce+Se,vl=Math.abs(ce-fl)>1,M&&vl&&tl.splice(tl.length-2,2),a.render(0,!0,!0),Ns||a.invalidate(!0),a.parent||a.totalTime(a.totalTime()),ja(0)):fl=ce,nl&&(nl.value?nl.style["overflow"+_.a.toUpperCase()]=nl.value:nl.style.removeProperty("overflow-"+_.a));else if(f&&W()&&!b)for(it=f.parentNode;it&&it!==ke;)it._pinOffset&&(I-=it._pinOffset,K-=it._pinOffset),it=it.parentNode;Wo&&Wo.forEach(function(_l){return _l.revert(!1,!0)}),k.start=I,k.end=K,ve=Y=ht?Kt:W(),!b&&!ht&&(ve<Kt&&W(Kt),k.scroll.rec=0),k.revert(!1,!0),be=dt(),Jt&&(ee=-1,Jt.restart(!0)),rt=0,a&&T&&(a._initted||ql)&&a.progress()!==ql&&a.progress(ql||0,!0).render(a.time(),!0,!0),(at||Me!==k.progress||b||v||a&&!a._initted)&&(a&&!T&&(a._initted||Me||a.vars.immediateRender!==!1)&&a.totalProgress(b&&I<-.001&&!Me?G.utils.normalize(I,K,0):Me,!0),k.progress=at||(ve-I)/ce===Me?0:Me),p&&A&&($e._pinOffset=Math.round(k.progress*fl)),he&&he.invalidate(),isNaN(Io)||(Io-=G.getProperty(P,_.p),Sn-=G.getProperty(U,_.p),Wn(P,_,Io),Wn(oe,_,Io-(ie||0)),Wn(U,_,Sn),Wn(se,_,Sn-(ie||0))),at&&!ht&&k.update(),c&&!ht&&!Q&&(Q=!0,c(k),Q=!1)}},k.getVelocity=function(){return(W()-Y)/(dt()-Ko)*1e3||0},k.endAnimation=function(){Zo(k.callbackAnimation),a&&(he?he.progress(1):a.paused()?T||Zo(a,k.direction<0,1):Zo(a,a.reversed()))},k.labelToScroll=function(Z){return a&&a.labels&&(I||k.refresh()||I)+a.labels[Z]/a.duration()*ce||0},k.getTrailing=function(Z){var ae=ue.indexOf(k),le=k.direction>0?ue.slice(0,ae).reverse():ue.slice(ae+1);return(Pt(Z)?le.filter(function(ie){return ie.vars.preventOverlaps===Z}):le).filter(function(ie){return k.direction>0?ie.end<=I:ie.start>=K})},k.update=function(Z,ae,le){if(!(b&&!le&&!Z)){var ie=ht===!0?Kt:k.scroll(),Ge=Z?0:(ie-I)/ce,Ve=Ge<0?0:Ge>1?1:Ge||0,De=k.progress,at,ze,Se,_e,Qt,Be,Tt,ll;if(ae&&(Y=ve,ve=b?W():ie,y&&(Il=Nl,Nl=a&&!T?a.totalProgress():Ve)),w&&p&&!rt&&!zn&&Ft&&(!Ve&&I<ie+(ie-Y)/(dt()-Ko)*w?Ve=1e-4:Ve===1&&K>ie+(ie-Y)/(dt()-Ko)*w&&(Ve=.9999)),Ve!==De&&k.enabled){if(at=k.isActive=!!Ve&&Ve<1,ze=!!De&&De<1,Be=at!==ze,Qt=Be||!!Ve!=!!De,k.direction=Ve>De?1:-1,k.progress=Ve,Qt&&!rt&&(Se=Ve&&!De?0:Ve===1?1:De===1?2:3,T&&(_e=!Be&&D[Se+1]!=="none"&&D[Se+1]||D[Se],ll=a&&(_e==="complete"||_e==="reset"||_e in a))),E&&(Be||ll)&&(ll||r||!a)&&(ut(E)?E(k):k.getTrailing(E).forEach(function(Fl){return Fl.endAnimation()})),T||(he&&!rt&&!zn?(he._dp._time-he._start!==he._time&&he.render(he._dp._time-he._start),he.resetTo?he.resetTo("totalProgress",Ve,a._tTime/a._tDur):(he.vars.totalProgress=Ve,he.invalidate().restart())):a&&a.totalProgress(Ve,!!(rt&&(be||Z)))),p){if(Z&&A&&($e.style[A+_.os2]=Ro),!M)Zt(en(Ut+fl*Ve));else if(Qt){if(Tt=!Z&&Ve>De&&K+1>ie&&ie+1>=cl(S,_),N)if(!Z&&(at||Tt)){var tt=yl(p,!0),lt=ie-I;rr(p,ke,tt.top+(_===Ze?lt:0)+Ye,tt.left+(_===Ze?0:lt)+Ye)}else rr(p,$e);Lo(at||Tt?tl:pl),vl&&Ve<1&&at||Zt(Ut+(Ve===1&&!Tt?fl:0))}}y&&!q.tween&&!rt&&!zn&&Jt.restart(!0),d&&(Be||g&&Ve&&(Ve<1||!$a))&&Nn(d.targets).forEach(function(Fl){return Fl.classList[at||g?"add":"remove"](d.className)}),s&&!T&&!Z&&s(k),Qt&&!rt?(T&&(ll&&(_e==="complete"?a.pause().totalProgress(1):_e==="reset"?a.restart(!0).pause():_e==="restart"?a.restart(!0):a[_e]()),s&&s(k)),(Be||!$a)&&(m&&Be&&Ua(k,m),$[Se]&&Ua(k,$[Se]),g&&(Ve===1?k.kill(!1,1):$[Se]=0),Be||(Se=Ve===1?1:3,$[Se]&&Ua(k,$[Se]))),x&&!at&&Math.abs(k.getVelocity())>(tn(x)?x:2500)&&(Zo(k.callbackAnimation),he?he.progress(1):Zo(a,_e==="reverse"?1:!Ve,1))):T&&s&&!rt&&s(k)}if(fo){var it=b?ie/b.duration()*(b._caScrollDist||0):ie;En(it+(P._isFlipped?1:0)),fo(it)}ho&&ho(-ie/b.duration()*(b._caScrollDist||0))}},k.enable=function(Z,ae){k.enabled||(k.enabled=!0,Ke(S,"resize",ln),O||Ke(S,"scroll",yo),z&&Ke(n,"refreshInit",z),Z!==!1&&(k.progress=Me=0,ve=Y=ee=W()),ae!==!1&&k.refresh())},k.getTween=function(Z){return Z&&q?q.tween:he},k.setPositions=function(Z,ae,le,ie){if(b){var Ge=b.scrollTrigger,Ve=b.duration(),De=Ge.end-Ge.start;Z=Ge.start+De*Z/Ve,ae=Ge.start+De*ae/Ve}k.refresh(!1,!1,{start:Qs(Z,le&&!!k._startClamp),end:Qs(ae,le&&!!k._endClamp)},ie),k.update()},k.adjustPinSpacing=function(Z){if(He&&Z){var ae=He.indexOf(_.d)+1;He[ae]=parseFloat(He[ae])+Z+Ye,He[1]=parseFloat(He[1])+Z+Ye,Lo(He)}},k.disable=function(Z,ae){if(k.enabled&&(Z!==!1&&k.revert(!0,!0),k.enabled=k.isActive=!1,ae||he&&he.pause(),Kt=0,J&&(J.uncache=1),z&&Je(n,"refreshInit",z),Jt&&(Jt.pause(),q.tween&&q.tween.kill()&&(q.tween=0)),!O)){for(var le=ue.length;le--;)if(ue[le].scroller===S&&ue[le]!==k)return;Je(S,"resize",ln),O||Je(S,"scroll",yo)}},k.kill=function(Z,ae){k.disable(Z,ae),he&&!ae&&he.kill(),u&&delete mi[u];var le=ue.indexOf(k);le>=0&&ue.splice(le,1),le===vt&&Qn>0&&vt--,le=0,ue.forEach(function(ie){return ie.scroller===k.scroller&&(le=1)}),le||ht||(k.scroll.rec=0),a&&(a.scrollTrigger=null,Z&&a.revert({kill:!1}),ae||a.kill()),oe&&[oe,se,P,U].forEach(function(ie){return ie.parentNode&&ie.parentNode.removeChild(ie)}),vn===k&&(vn=0),p&&(J&&(J.uncache=1),le=0,ue.forEach(function(ie){return ie.pin===p&&le++}),le||(J.spacer=0)),o.onKill&&o.onKill(k)},ue.push(k),k.enable(!1,!1),hl&&hl(k),a&&a.add&&!ce){var we=k.update;k.update=function(){k.update=we,Ae.cache++,I||K||k.refresh()},G.delayedCall(.01,k.update),ce=.01,I=K=0}else k.refresh();p&&hf()},n.register=function(o){return wo||(G=o||Wd(),Hd()&&window.document&&n.enable(),wo=Qo),wo},n.defaults=function(o){if(o)for(var a in o)Un[a]=o[a];return Un},n.disable=function(o,a){Qo=0,ue.forEach(function(s){return s[a?"kill":"disable"](o)}),Je(me,"wheel",yo),Je(Te,"scroll",yo),clearInterval(Mn),Je(Te,"touchcancel",sl),Je(ke,"touchstart",sl),$n(Je,Te,"pointerdown,touchstart,mousedown",er),$n(Je,Te,"pointerup,touchend,mouseup",tr),Aa.kill(),jn(Je);for(var i=0;i<Ae.length;i+=3)Dn(Je,Ae[i],Ae[i+1]),Dn(Je,Ae[i],Ae[i+2])},n.enable=function(){if(me=window,Te=document,Lt=Te.documentElement,ke=Te.body,G&&(Nn=G.utils.toArray,un=G.utils.clamp,ci=G.core.context||sl,ja=G.core.suppressOverwrites||sl,Wi=me.history.scrollRestoration||"auto",Ai=me.pageYOffset||0,G.core.globals("ScrollTrigger",n),ke)){Qo=1,Bo=document.createElement("div"),Bo.style.height="100vh",Bo.style.position="absolute",Kd(),cf(),Re.register(G),n.isTouch=Re.isTouch,Pl=Re.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),di=Re.isTouch===1,Ke(me,"wheel",yo),Hi=[me,Te,Lt,ke],G.matchMedia?(n.matchMedia=function(m){var c=G.matchMedia(),r;for(r in m)c.add(r,m[r]);return c},G.addEventListener("matchMediaInit",function(){return Zi()}),G.addEventListener("matchMediaRevert",function(){return Gd()}),G.addEventListener("matchMedia",function(){to(0,1),Ao("matchMedia")}),G.matchMedia().add("(orientation: portrait)",function(){return Ra(),Ra})):console.warn("Requires GSAP 3.11.0 or later"),Ra(),Ke(Te,"scroll",yo);var o=ke.hasAttribute("style"),a=ke.style,i=a.borderTopStyle,s=G.core.Animation.prototype,d,u;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),a.borderTopStyle="solid",d=yl(ke),Ze.m=Math.round(d.top+Ze.sc())||0,gt.m=Math.round(d.left+gt.sc())||0,i?a.borderTopStyle=i:a.removeProperty("border-top-style"),o||(ke.setAttribute("style",""),ke.removeAttribute("style")),Mn=setInterval(nr,250),G.delayedCall(.5,function(){return zn=0}),Ke(Te,"touchcancel",sl),Ke(ke,"touchstart",sl),$n(Ke,Te,"pointerdown,touchstart,mousedown",er),$n(Ke,Te,"pointerup,touchend,mouseup",tr),ri=G.utils.checkPrefix("transform"),ea.push(ri),wo=dt(),Aa=G.delayedCall(.2,to).pause(),xo=[Te,"visibilitychange",function(){var m=me.innerWidth,c=me.innerHeight;Te.hidden?(Gs=m,Js=c):(Gs!==m||Js!==c)&&ln()},Te,"DOMContentLoaded",to,me,"load",to,me,"resize",ln],jn(Ke),ue.forEach(function(m){return m.enable(0,1)}),u=0;u<Ae.length;u+=3)Dn(Je,Ae[u],Ae[u+1]),Dn(Je,Ae[u],Ae[u+2])}},n.config=function(o){"limitCallbacks"in o&&($a=!!o.limitCallbacks);var a=o.syncInterval;a&&clearInterval(Mn)||(Mn=a)&&setInterval(nr,a),"ignoreMobileResize"in o&&(di=n.isTouch===1&&o.ignoreMobileResize),"autoRefreshEvents"in o&&(jn(Je)||jn(Ke,o.autoRefreshEvents||"none"),Dd=(o.autoRefreshEvents+"").indexOf("resize")===-1)},n.scrollerProxy=function(o,a){var i=xt(o),s=Ae.indexOf(i),d=uo(i);~s&&Ae.splice(s,d?6:2),a&&(d?ul.unshift(me,a,ke,a,Lt,a):ul.unshift(i,a))},n.clearMatchMedia=function(o){ue.forEach(function(a){return a._ctx&&a._ctx.query===o&&a._ctx.kill(!0,!0)})},n.isInViewport=function(o,a,i){var s=(Pt(o)?xt(o):o).getBoundingClientRect(),d=s[i?io:so]*a||0;return i?s.right-d>0&&s.left+d<me.innerWidth:s.bottom-d>0&&s.top+d<me.innerHeight},n.positionInViewport=function(o,a,i){Pt(o)&&(o=xt(o));var s=o.getBoundingClientRect(),d=s[i?io:so],u=a==null?d/2:a in va?va[a]*d:~a.indexOf("%")?parseFloat(a)*d/100:parseFloat(a)||0;return i?(s.left+u)/me.innerWidth:(s.top+u)/me.innerHeight},n.killAll=function(o){if(ue.slice(0).forEach(function(i){return i.vars.id!=="ScrollSmoother"&&i.kill()}),o!==!0){var a=mo.killAll||[];mo={},a.forEach(function(i){return i()})}},n}();pe.version="3.13.0";pe.saveStyles=function(n){return n?Nn(n).forEach(function(t){if(t&&t.style){var l=St.indexOf(t);l>=0&&St.splice(l,5),St.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),G.core.getCache(t),ci())}}):St};pe.revert=function(n,t){return Zi(!n,t)};pe.create=function(n,t){return new pe(n,t)};pe.refresh=function(n){return n?ln(!0):(wo||pe.register())&&to(!0)};pe.update=function(n){return++Ae.cache&&wl(n===!0?2:0)};pe.clearScrollMemory=Jd;pe.maxScroll=function(n,t){return cl(n,t?gt:Ze)};pe.getScrollFunc=function(n,t){return Hl(xt(n),t?gt:Ze)};pe.getById=function(n){return mi[n]};pe.getAll=function(){return ue.filter(function(n){return n.vars.id!=="ScrollSmoother"})};pe.isScrolling=function(){return!!Ft};pe.snapDirectional=Yi;pe.addEventListener=function(n,t){var l=mo[n]||(mo[n]=[]);~l.indexOf(t)||l.push(t)};pe.removeEventListener=function(n,t){var l=mo[n],o=l&&l.indexOf(t);o>=0&&l.splice(o,1)};pe.batch=function(n,t){var l=[],o={},a=t.interval||.016,i=t.batchMax||1e9,s=function(m,c){var r=[],f=[],p=G.delayedCall(a,function(){c(r,f),r=[],f=[]}).pause();return function(A){r.length||p.restart(!0),r.push(A.trigger),f.push(A),i<=r.length&&p.progress(1)}},d;for(d in t)o[d]=d.substr(0,2)==="on"&&ut(t[d])&&d!=="onRefreshInit"?s(d,t[d]):t[d];return ut(i)&&(i=i(),Ke(pe,"refresh",function(){return i=t.batchMax()})),Nn(n).forEach(function(u){var m={};for(d in o)m[d]=o[d];m.trigger=u,l.push(pe.create(m))}),l};var cr=function(t,l,o,a){return l>a?t(a):l<0&&t(0),o>a?(a-l)/(o-l):o<0?l/(l-o):1},Wa=function n(t,l){l===!0?t.style.removeProperty("touch-action"):t.style.touchAction=l===!0?"auto":l?"pan-"+l+(Re.isTouch?" pinch-zoom":""):"none",t===Lt&&n(ke,l)},In={auto:1,scroll:1},wf=function(t){var l=t.event,o=t.target,a=t.axis,i=(l.changedTouches?l.changedTouches[0]:l).target,s=i._gsap||G.core.getCache(i),d=dt(),u;if(!s._isScrollT||d-s._isScrollT>2e3){for(;i&&i!==ke&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(In[(u=Wt(i)).overflowY]||In[u.overflowX]));)i=i.parentNode;s._isScroll=i&&i!==o&&!uo(i)&&(In[(u=Wt(i)).overflowY]||In[u.overflowX]),s._isScrollT=d}(s._isScroll||a==="x")&&(l.stopPropagation(),l._gsapAllow=!0)},ec=function(t,l,o,a){return Re.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:l,onWheel:a=a&&wf,onPress:a,onDrag:a,onScroll:a,onEnable:function(){return o&&Ke(Te,Re.eventTypes[0],mr,!1,!0)},onDisable:function(){return Je(Te,Re.eventTypes[0],mr,!0)}})},xf=/(input|label|select|textarea)/i,ur,mr=function(t){var l=xf.test(t.target.tagName);(l||ur)&&(t._gsapAllow=!0,ur=l)},kf=function(t){Kl(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var l=t,o=l.normalizeScrollX,a=l.momentum,i=l.allowNestedScroll,s=l.onRelease,d,u,m=xt(t.target)||Lt,c=G.core.globals().ScrollSmoother,r=c&&c.get(),f=Pl&&(t.content&&xt(t.content)||r&&t.content!==!1&&!r.smooth()&&r.content()),p=Hl(m,Ze),A=Hl(m,gt),v=1,w=(Re.isTouch&&me.visualViewport?me.visualViewport.scale*me.visualViewport.width:me.outerWidth)/me.innerWidth,V=0,h=ut(a)?function(){return a(d)}:function(){return a||2.8},g,y,N=ec(m,t.type,!0,i),C=function(){return y=!1},b=sl,x=sl,E=function(){u=cl(m,Ze),x=un(Pl?1:0,u),o&&(b=un(0,cl(m,gt))),g=ro},_=function(){f._gsap.y=en(parseFloat(f._gsap.y)+p.offset)+"px",f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(f._gsap.y)+", 0, 1)",p.offset=p.cacheID=0},T=function(){if(y){requestAnimationFrame(C);var R=en(d.deltaY/2),j=x(p.v-R);if(f&&j!==p.v+p.offset){p.offset=j-p.v;var k=en((parseFloat(f&&f._gsap.y)||0)-p.offset);f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+k+", 0, 1)",f._gsap.y=k+"px",p.cacheID=Ae.cache,wl()}return!0}p.offset&&_(),y=!0},S,L,O,M,$=function(){E(),S.isActive()&&S.vars.scrollY>u&&(p()>u?S.progress(1)&&p(u):S.resetTo("scrollY",u))};return f&&G.set(f,{y:"+=0"}),t.ignoreCheck=function(D){return Pl&&D.type==="touchmove"&&T()||v>1.05&&D.type!=="touchstart"||d.isGesturing||D.touches&&D.touches.length>1},t.onPress=function(){y=!1;var D=v;v=en((me.visualViewport&&me.visualViewport.scale||1)/w),S.pause(),D!==v&&Wa(m,v>1.01?!0:o?!1:"x"),L=A(),O=p(),E(),g=ro},t.onRelease=t.onGestureStart=function(D,R){if(p.offset&&_(),!R)M.restart(!0);else{Ae.cache++;var j=h(),k,z;o&&(k=A(),z=k+j*.05*-D.velocityX/.227,j*=cr(A,k,z,cl(m,gt)),S.vars.scrollX=b(z)),k=p(),z=k+j*.05*-D.velocityY/.227,j*=cr(p,k,z,cl(m,Ze)),S.vars.scrollY=x(z),S.invalidate().duration(j).play(.01),(Pl&&S.vars.scrollY>=u||k>=u-1)&&G.to({},{onUpdate:$,duration:j})}s&&s(D)},t.onWheel=function(){S._ts&&S.pause(),dt()-V>1e3&&(g=0,V=dt())},t.onChange=function(D,R,j,k,z){if(ro!==g&&E(),R&&o&&A(b(k[2]===R?L+(D.startX-D.x):A()+R-k[1])),j){p.offset&&_();var X=z[2]===j,F=X?O+D.startY-D.y:p()+j-z[1],ee=x(F);X&&F!==ee&&(O+=ee-F),p(ee)}(j||R)&&wl()},t.onEnable=function(){Wa(m,o?!1:"x"),pe.addEventListener("refresh",$),Ke(me,"resize",$),p.smooth&&(p.target.style.scrollBehavior="auto",p.smooth=A.smooth=!1),N.enable()},t.onDisable=function(){Wa(m,!0),Je(me,"resize",$),pe.removeEventListener("refresh",$),N.kill()},t.lockAxis=t.lockAxis!==!1,d=new Re(t),d.iOS=Pl,Pl&&!p()&&p(1),Pl&&G.ticker.add(sl),M=d._dc,S=G.to(d,{ease:"power4",paused:!0,inherit:!1,scrollX:o?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Qd(p,p(),function(){return S.pause()})},onUpdate:wl,onComplete:M.vars.onComplete}),d};pe.sort=function(n){if(ut(n))return ue.sort(n);var t=me.pageYOffset||0;return pe.getAll().forEach(function(l){return l._sortY=l.trigger?t+l.trigger.getBoundingClientRect().top:l.start+me.innerHeight}),ue.sort(n||function(l,o){return(l.vars.refreshPriority||0)*-1e6+(l.vars.containerAnimation?1e6:l._sortY)-((o.vars.containerAnimation?1e6:o._sortY)+(o.vars.refreshPriority||0)*-1e6)})};pe.observe=function(n){return new Re(n)};pe.normalizeScroll=function(n){if(typeof n>"u")return ft;if(n===!0&&ft)return ft.enable();if(n===!1){ft&&ft.kill(),ft=n;return}var t=n instanceof Re?n:kf(n);return ft&&ft.target===t.target&&ft.kill(),uo(t.target)&&(ft=t),t};pe.core={_getVelocityProp:si,_inputObserver:ec,_scrollers:Ae,_proxies:ul,bridge:{ss:function(){Ft||Ao("scrollStart"),Ft=dt()},ref:function(){return rt}}};Wd()&&G.registerPlugin(pe);const Nf={class:"gallery-timeline"},_f={class:"gallery-timeline__list"},Cf={class:"list__wrapper"},Ef={class:"timeline__list"},Tf=["innerHTML"],Sf=["innerHTML"],Pf=["innerHTML"],Bf=["innerHTML"],Lf={key:2,class:"my-3 my-md-5 pe-4"},Of=["href"],Mf={class:"timeline__item__button__text"},zf={key:0,class:"d-flex justify-content-center mt-6"},jf=e.defineComponent({name:"GalleryTimeline",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){kn.registerPlugin(pe);const l=n,o=t,a=e.computed(()=>window.innerWidth),i=()=>{var T;if(l.modelValue&&l.modelValue.data)return;const _={id:((T=l.modelValue)==null?void 0:T.id)||B(),type:"GalleryTimeline",bgColor:"",data:[{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"},{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"}]};o("update:modelValue",_)},s=e.ref(!1),d=e.ref(!1),u=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},c=_=>{o("handlePaste",_)};i();let r=null;const f=e.ref(5),p=e.ref(5);let A=null;const v=e.computed(()=>{var _;return((_=l.modelValue)==null?void 0:_.data)??null}),w=e.computed(()=>{var _;return a.value>=768?v.value:(_=v.value)==null?void 0:_.slice(0,f.value)}),V=e.computed(()=>{var _;return a.value<=767.98&&f.value<((_=v.value)==null?void 0:_.length)}),h=()=>{if(typeof window<"u")return Math.round(window.pageYOffset)},g=e.computed(()=>h());e.watch(()=>g.value,()=>{a.value>=768||E(b,5e3)}),e.watch(()=>w.value,()=>{b()});const y=e.ref([]),N=e.ref([]),C=e.ref(null),b=()=>{r=null,e.nextTick(x)},x=()=>{var L,O;r=kn.timeline();const _=y.value,T=N.value,S=(O=(L=C.value)==null?void 0:L.$el)==null?void 0:O.querySelector(".simplebar-content-wrapper");!_||!T||_.forEach((M,$)=>{r.fromTo(M,{"--line-height":"0%"},{"--line-height":"100%",scrollTrigger:{start:()=>window.innerWidth<768?"top center":`top top+=${50+$*35}px`,end:()=>window.innerWidth<768?"center center":`bottom center+=${$*25}px`,scrub:1,trigger:T[$],scroller:S,onEnter:D=>{D.trigger.classList.add("is-enter")},onEnterBack:D=>{D.trigger.classList.remove("is-enter")},onLeaveBack:D=>{D.trigger.classList.remove("is-enter")}}})})},E=(_,T)=>{A?A+T<Date.now()&&(_(),A=Date.now()):(_(),A=Date.now())};return e.onMounted(()=>{e.nextTick(x)}),(_,T)=>{var L;const S=e.resolveComponent("a-image");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:T[3]||(T[3]=O=>s.value=!0),onMouseleave:T[4]||(T[4]=O=>s.value=!1)},[e.createElementVNode("div",{class:"gallery-container gallery-timeline container-content",style:e.normalizeStyle({backgroundColor:(L=n.modelValue)==null?void 0:L.bgColor})},[e.createElementVNode("div",Nf,[e.createElementVNode("div",_f,[e.createVNode(Va,{hideScrollbar:a.value<768,ref_key:"scroller",ref:C},{default:e.withCtx(()=>{var O;return[e.createElementVNode("div",Cf,[e.createElementVNode("ul",Ef,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((O=n.modelValue)==null?void 0:O.data,M=>(e.openBlock(),e.createElementBlock("li",{class:"timeline__item",key:M.id,ref_for:!0,ref:$=>{$&&N.value.push($)}},[e.createElementVNode("div",{class:"item__line",ref_for:!0,ref:$=>{$&&y.value.push($)}},[...T[6]||(T[6]=[e.createElementVNode("div",{class:"item__line__mobile"},null,-1),e.createElementVNode("div",{class:"item__dot"},null,-1)])],512),e.createElementVNode("div",{class:e.normalizeClass(["d-flex flex-column flex-md-row justify-content-between",{"has-date":!!M.date}])},[e.createElementVNode("div",null,[M.date?e.withDirectives((e.openBlock(),e.createElementBlock("h4",{key:1,class:"text-blue-dark",innerHTML:M.title},null,8,Sf)),[[e.vShow,M.title]]):e.withDirectives((e.openBlock(),e.createElementBlock("h6",{key:0,class:"text-blue-dark",innerHTML:M.title},null,8,Tf)),[[e.vShow,M.title]]),e.withDirectives(e.createElementVNode("div",{class:"tx-body-big text-blue-dark mb-3 mb-md-5 pe-3",innerHTML:M.date},null,8,Pf),[[e.vShow,M.date]]),e.withDirectives(e.createElementVNode("div",{class:"tx-body-p text-teal-darkest mb-3 mb-md-5 pe-3",innerHTML:M.text},null,8,Bf),[[e.vShow,M.text]]),M.url?(e.openBlock(),e.createElementBlock("div",Lf,[e.createElementVNode("a",{href:M.url,target:"_blank",class:"timeline__item__button d-inline-block"},[e.createElementVNode("div",Mf,e.toDisplayString(M.btnText),1)],8,Of)])):e.createCommentVNode("",!0)]),M.imgSrc?(e.openBlock(),e.createBlock(S,{key:0,class:"flex-shrink-0 img-fit mb-8 mb-md-0 ms-md-15 mt-md-2 pe-4 cursor-pointer w-md-30",src:M.imgSrc,alt:M.alt,preview:!0},null,8,["src","alt"])):e.createCommentVNode("",!0)],2)]))),128))]),V.value?(e.openBlock(),e.createElementBlock("div",zf,[e.createElementVNode("button",{type:"button",class:"btn btn__load-more",onClick:T[0]||(T[0]=M=>f.value+=p.value)},[...T[7]||(T[7]=[e.createElementVNode("div",{class:"btn--udrline"}," 更多 ",-1),e.createElementVNode("span",{class:"i i-load-more"},null,-1)])])])):e.createCommentVNode("",!0)])]}),_:1},8,["hideScrollbar"])])])],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:s.value,"onUpdate:show":T[1]||(T[1]=O=>s.value=O),onHandleEdit:T[2]||(T[2]=O=>d.value=!0),onHandleDelete:u,onHandleCopy:m,onHandlePaste:c},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(mA,{key:0,show:d.value,"onUpdate:show":T[5]||(T[5]=O=>d.value=O),data:n.modelValue},null,8,["show","data"]))],64)}}}),Gi=H(jf,[["__scopeId","data-v-c2437ee0"]]),$f={class:"setting-content"},Df={class:"setting-header flex items-center"},Uf={class:"setting-body"},Rf={class:"setting-item"},Hf={class:"btn-group"},Wf={key:0,class:"drag-handle"},If={class:"item-schedule-list"},Xf={class:"btn-group"},qf={key:0,class:"drag-handle"},Ff=["src"],Yf={class:"item-uplaod flex items-center"},Zf={class:"item-action flex items-center"},Gf=["onClick"],Jf=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"schedules",disabled:!1,ghostClass:"ghost"})),i=p=>p&&p.length>1,s=n,d=t,u=()=>{d("update:show",!1)},m=()=>{if(s.data.length>=2){alert("最多只能添加2个");return}s.data.data.push({id:B(),title:"标题",desc:"描述",schedule:[]})},c=p=>{p.schedule.push({id:B(),title:"标题",text:"内容",date:"",imgSrc:"",alt:"",url:"",btnText:""})},r=p=>{s.data.data=s.data.data.filter(A=>A.id!==p)},f=(p,A)=>{p.schedule=p.schedule.filter(v=>v.id!==A)};return(p,A)=>{const v=e.resolveComponent("a-option"),w=e.resolveComponent("a-select"),V=e.resolveComponent("icon-drag-arrow"),h=e.resolveComponent("icon-delete"),g=e.resolveComponent("a-input"),y=e.resolveComponent("a-button"),N=e.resolveComponent("icon-plus"),C=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(C,{width:500,visible:n.show,footer:!1,onCancel:u,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",$f,[e.createElementVNode("div",Df,[A[9]||(A[9]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(w,{modelValue:n.data.bgColor,"onUpdate:modelValue":A[0]||(A[0]=b=>n.data.bgColor=b),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(v,{value:"#ffffff"},{default:e.withCtx(()=>[...A[7]||(A[7]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(v,{value:"#F7F7FA"},{default:e.withCtx(()=>[...A[8]||(A[8]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Uf,[e.createElementVNode("div",Rf,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":A[3]||(A[3]=b=>n.data.data=b),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!i(n.data.data),onStart:A[4]||(A[4]=b=>l.value=!0),onEnd:A[5]||(A[5]=b=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:b})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(n.data.data)}]),key:b.id},[e.createElementVNode("div",Hf,[i(n.data.data)?(e.openBlock(),e.createElementBlock("div",Wf,[e.createVNode(V,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:x=>r(b.id)},null,8,["onClick"])]),A[15]||(A[15]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(e.unref(qe),{modelValue:b.title,"onUpdate:modelValue":x=>b.title=x,name:`GalleryTimelineCol_editor_${b.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),A[16]||(A[16]=e.createElementVNode("p",{class:"item-title"},"描述",-1)),e.createVNode(g,{modelValue:b.desc,"onUpdate:modelValue":x=>b.desc=x,placeholder:"请输入文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),A[17]||(A[17]=e.createElementVNode("p",{class:"item-title"},"schedule",-1)),e.createElementVNode("div",If,[e.createVNode(e.unref(de),e.mergeProps({modelValue:b.schedule,"onUpdate:modelValue":x=>b.schedule=x,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!i(b.schedule),onStart:A[1]||(A[1]=x=>l.value=!0),onEnd:A[2]||(A[2]=x=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:x})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-schedule draggable-item",{"sortable-disabled":!i(b.schedule)}]),key:x.id},[e.createElementVNode("div",Xf,[i(b.schedule)?(e.openBlock(),e.createElementBlock("div",qf,[e.createVNode(V,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:E=>f(b,x.id)},null,8,["onClick"])]),A[10]||(A[10]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(g,{modelValue:x.title,"onUpdate:modelValue":E=>x.title=E,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),A[11]||(A[11]=e.createElementVNode("p",{class:"item-title"},"文本",-1)),e.createVNode(e.unref(qe),{modelValue:x.text,"onUpdate:modelValue":E=>x.text=E,name:`GalleryTimelineCol_editor_${x.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),A[12]||(A[12]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(g,{modelValue:x.date,"onUpdate:modelValue":E=>x.date=E,placeholder:"请输入日期","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),A[13]||(A[13]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:x.imgSrc},null,8,Ff),e.createElementVNode("div",Yf,[e.createVNode(g,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,name:`GalleryTimelineCol_${x.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(g,{class:"mt-2",modelValue:x.alt,"onUpdate:modelValue":E=>x.alt=E,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{style:{"margin-top":"10px"},type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.btnText),1)]),_:2},1024),e.createElementVNode("div",Zf,[e.createVNode(g,{class:"action-text",modelValue:x.btnText,"onUpdate:modelValue":E=>x.btnText=E,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(g,{modelValue:x.url,"onUpdate:modelValue":E=>x.url=E,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:x=>c(b)},[e.createVNode(N),A[14]||(A[14]=e.createElementVNode("span",{class:"btn-text"},"添加schedule",-1))],8,Gf)])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:A[6]||(A[6]=b=>m())},[e.createVNode(N),A[18]||(A[18]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),Kf=H(Jf,[["__scopeId","data-v-8f499c28"]]),Qf={class:"row row-cols-1 row-cols-md-2"},ev={class:"gallery-timeline"},tv={class:"mb-6 mb-md-8"},lv=["innerHTML"],ov={key:1,class:"gallery-timeline__desc text-center"},nv={class:"gallery-timeline__list"},av={class:"list__wrapper"},iv={class:"timeline__list"},sv=["innerHTML"],rv=["innerHTML"],dv=["innerHTML"],cv=["innerHTML"],uv={key:2,class:"my-3 my-md-5 pe-4"},mv=["href"],Av={class:"timeline__item__button__text"},pv={key:0,class:"d-flex justify-content-center mt-6"},fv=e.defineComponent({name:"GalleryTimelineCol",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){kn.registerPlugin(pe);const l=n,o=t,a=e.computed(()=>window.innerWidth),i=()=>{var T;if(l.modelValue&&l.modelValue.data)return;const _={id:((T=l.modelValue)==null?void 0:T.id)||B(),type:"GalleryTimelineCol",bgColor:"",data:[{id:B(),title:"标题",desc:"描述",schedule:[{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"},{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"}]},{id:B(),title:"标题",desc:"描述",schedule:[{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"},{id:B(),title:"标题",text:"内容",date:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",url:"http://baidu.com",btnText:"按钮"}]}]};o("update:modelValue",_)},s=e.ref(!1),d=e.ref(!1),u=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},c=_=>{o("handlePaste",_)};i();let r=null;const f=e.ref(5),p=e.ref(5);let A=null;const v=e.computed(()=>{var _;return((_=l.modelValue)==null?void 0:_.data)??null}),w=e.computed(()=>{var _;return a.value>=768?v.value:(_=v.value)==null?void 0:_.slice(0,f.value)}),V=e.computed(()=>{var _;return a.value<=767.98&&f.value<((_=v.value)==null?void 0:_.length)}),h=()=>{if(typeof window<"u")return Math.round(window.pageYOffset)},g=e.computed(()=>h());e.watch(()=>g.value,()=>{a.value>=768||E(b,5e3)}),e.watch(()=>w.value,()=>{b()});const y=e.ref([]),N=e.ref([]),C=e.ref(null),b=()=>{r=null,e.nextTick(x)},x=()=>{var L,O;r=kn.timeline();const _=y.value,T=N.value,S=(O=(L=C.value)==null?void 0:L.$el)==null?void 0:O.querySelector(".simplebar-content-wrapper");!_||!T||_.forEach((M,$)=>{r.fromTo(M,{"--line-height":"0%"},{"--line-height":"100%",scrollTrigger:{start:()=>window.innerWidth<768?"top center":`top top+=${50+$*35}px`,end:()=>window.innerWidth<768?"center center":`bottom center+=${$*25}px`,scrub:1,trigger:T[$],scroller:S,onEnter:D=>{D.trigger.classList.add("is-enter")},onEnterBack:D=>{D.trigger.classList.remove("is-enter")},onLeaveBack:D=>{D.trigger.classList.remove("is-enter")}}})})},E=(_,T)=>{A?A+T<Date.now()&&(_(),A=Date.now()):(_(),A=Date.now())};return e.onMounted(()=>{e.nextTick(x)}),(_,T)=>{var L,O;const S=e.resolveComponent("a-image");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:T[3]||(T[3]=M=>s.value=!0),onMouseleave:T[4]||(T[4]=M=>s.value=!1)},[e.createElementVNode("div",{class:"gallery-container gallery-timeline-col container-content",style:e.normalizeStyle({backgroundColor:(L=n.modelValue)==null?void 0:L.bgColor})},[e.createElementVNode("div",Qf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((O=n.modelValue)==null?void 0:O.data,M=>(e.openBlock(),e.createElementBlock("div",{class:"col",key:M.id},[e.createElementVNode("div",ev,[e.createElementVNode("div",tv,[M.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gallery-timeline__title text-center",innerHTML:M.title},null,8,lv)):e.createCommentVNode("",!0),M.desc?(e.openBlock(),e.createElementBlock("div",ov,e.toDisplayString(M.desc),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",nv,[e.createVNode(Va,{hideScrollbar:a.value<768,ref_for:!0,ref_key:"scroller",ref:C},{default:e.withCtx(()=>[e.createElementVNode("div",av,[e.createElementVNode("ul",iv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.schedule,$=>(e.openBlock(),e.createElementBlock("li",{class:"timeline__item",key:$.id,ref_for:!0,ref:D=>{D&&N.value.push(D)}},[e.createElementVNode("div",{class:"item__line",ref_for:!0,ref:D=>{D&&y.value.push(D)}},[...T[6]||(T[6]=[e.createElementVNode("div",{class:"item__line__mobile"},null,-1),e.createElementVNode("div",{class:"item__dot"},null,-1)])],512),e.createElementVNode("div",{class:e.normalizeClass(["d-flex flex-column flex-md-row justify-content-between",{"has-date":!!$.date}])},[e.createElementVNode("div",null,[$.date?e.withDirectives((e.openBlock(),e.createElementBlock("h4",{key:1,class:"text-blue-dark",innerHTML:$.title},null,8,rv)),[[e.vShow,$.title]]):e.withDirectives((e.openBlock(),e.createElementBlock("h6",{key:0,class:"text-blue-dark",innerHTML:$.title},null,8,sv)),[[e.vShow,$.title]]),e.withDirectives(e.createElementVNode("div",{class:"tx-body-big text-blue-dark mb-3 mb-md-5 pe-3",innerHTML:$.date},null,8,dv),[[e.vShow,$.date]]),e.withDirectives(e.createElementVNode("div",{class:"tx-body-p text-teal-darkest mb-3 mb-md-5 pe-3",innerHTML:$.text},null,8,cv),[[e.vShow,$.text]]),$.url?(e.openBlock(),e.createElementBlock("div",uv,[e.createElementVNode("a",{href:$.url,target:"_blank",class:"timeline__item__button d-inline-block"},[e.createElementVNode("div",Av,e.toDisplayString($.btnText),1)],8,mv)])):e.createCommentVNode("",!0)]),$.imgSrc?(e.openBlock(),e.createBlock(S,{key:0,class:"flex-shrink-0 img-fit mb-8 mb-md-0 ms-md-15 mt-md-2 pe-4 cursor-pointer w-md-30",src:$.imgSrc,alt:$.alt,preview:!0},null,8,["src","alt"])):e.createCommentVNode("",!0)],2)]))),128))]),V.value?(e.openBlock(),e.createElementBlock("div",pv,[e.createElementVNode("button",{type:"button",class:"btn btn__load-more",onClick:T[0]||(T[0]=$=>f.value+=p.value)},[...T[7]||(T[7]=[e.createElementVNode("div",{class:"btn--udrline"}," 更多 ",-1),e.createElementVNode("span",{class:"i i-load-more"},null,-1)])])])):e.createCommentVNode("",!0)])]),_:2},1032,["hideScrollbar"])])])]))),128))])],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:s.value,"onUpdate:show":T[1]||(T[1]=M=>s.value=M),onHandleEdit:T[2]||(T[2]=M=>d.value=!0),onHandleDelete:u,onHandleCopy:m,onHandlePaste:c},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Kf,{key:0,show:d.value,"onUpdate:show":T[5]||(T[5]=M=>d.value=M),data:n.modelValue},null,8,["show","data"]))],64)}}}),Ji=H(fv,[["__scopeId","data-v-99e9210c"]]),vv=["href"],hv=["onClick"],Vv={key:1,class:"text-link"},gv=["onClick"],yv={class:"text-link__text"},bv=e.defineComponent({__name:"linkList",props:{list:{}},emits:["handleClick"],setup(n,{emit:t}){const l=t,o=a=>{a.type==="circle"&&a.url&&!a.url.includes("http")?l("handleClick",a.url):a.type==="text"&&l("handleClick",a)};return(a,i)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,s=>(e.openBlock(),e.createElementBlock("div",{class:"link-list__item",key:s.id},[s.type==="circle"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["circle-link",[s.isLight?"circle-link--light":""]])},[s.url&&s.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:s.url,class:e.normalizeClass([s.isLight?"nuxt-link-exact-active nuxt-link-active":""])},[e.createElementVNode("div",null,e.toDisplayString(s.text),1),e.createElementVNode("span",{class:e.normalizeClass(["circle-link__icon",[s.isLight?"circle-link__icon--light":""]])},null,2)],10,vv)):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d=>o(s),class:e.normalizeClass([s.isLight?"nuxt-link-exact-active nuxt-link-active":""])},[e.createElementVNode("div",null,e.toDisplayString(s.text),1),e.createElementVNode("span",{class:e.normalizeClass(["circle-link__icon",[s.isLight?"circle-link__icon--light":""]])},null,2)],10,hv))],2)):(e.openBlock(),e.createElementBlock("div",Vv,[e.createElementVNode("button",{type:"button",class:"text-link__wrapper link link--udrline-2",onClick:d=>o(s)},[e.createElementVNode("span",yv,e.toDisplayString(s.text),1)],8,gv)]))]))),128))}}),Ki=H(bv,[["__scopeId","data-v-e2cfa93e"]]),wv={class:"process-desktop"},xv={class:"process__left"},kv={class:"text-blue-dark"},Nv={class:"process-list my-10"},_v=["onClick"],Cv={class:"item-date tx-body-big"},Ev={class:"item-title"},Tv={class:"process__right"},Sv={class:"process__info__num"},Pv={class:"process__info__title"},Bv=["innerHTML"],Lv={class:"process__info__link"},Ov={key:0,class:"process__img"},Mv={class:"img-wrapper"},zv=["src","alt"],jv=e.defineComponent({name:"ProcessDesktop",__name:"ProcessDesktop",props:{data:Object,activeIdx:Number},emits:["updateIdx"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(72),i=e.ref(250),s=e.ref(window.innerWidth),d=e.ref([]),u=e.computed(()=>{var p,A;const f=(A=(p=l.data)==null?void 0:p.processes)==null?void 0:A.length;return!f||f<=1?"0%":`${m.value/(f-1)*100}%`}),m=e.computed({get(){return l.activeIdx??0},set(f){o("updateIdx",f)}}),c=()=>{s.value=window.innerWidth},r=()=>{const f=d.value;if(!f||f.length===0)return;const p=f[0];if(!p)return;const A=p.offsetLeft,v=p.clientWidth/2;a.value=A+v};return e.watch(s,()=>{r()}),e.onMounted(()=>{window.addEventListener("resize",c),c(),d.value=[],e.nextTick(()=>{r()})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",c)}),(f,p)=>{var A,v,w,V;return e.openBlock(),e.createElementBlock("div",wv,[e.createElementVNode("div",xv,[e.createElementVNode("h2",kv,e.toDisplayString((A=n.data)==null?void 0:A.title),1),e.createElementVNode("ul",Nv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=n.data)==null?void 0:v.processes,(h,g)=>(e.openBlock(),e.createElementBlock("li",{key:h.id,class:e.normalizeClass(["process-item",{"is-active":g==m.value}]),onClick:y=>m.value=g},[e.createElementVNode("div",Cv,e.toDisplayString(h.date),1),e.createElementVNode("div",{class:"item-num",ref_for:!0,ref:y=>{y&&d.value.push(y)}},e.toDisplayString(g+1),513),e.createElementVNode("h6",Ev,e.toDisplayString(h.title),1)],10,_v))),128)),e.createElementVNode("div",{class:"progress",style:e.normalizeStyle([{"--bar-height":u.value},{"--bar-left":`${a.value}px`}])},[...p[0]||(p[0]=[e.createElementVNode("div",{class:"progress-bar",role:"progressbar","aria-valuenow":"0","aria-valuemin":"0","aria-valuemax":"100"},null,-1)])],4)]),e.createElementVNode("div",null,[e.createVNode(yi,{list:(w=n.data)==null?void 0:w.btnList},null,8,["list"])])]),e.createElementVNode("div",Tv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=n.data)==null?void 0:V.processes,(h,g)=>(e.openBlock(),e.createElementBlock("div",{key:h.id,class:e.normalizeClass(["process__right__wrapper",{"is-active":m.value==g}])},[e.createElementVNode("div",{class:"process__info",style:e.normalizeStyle({"--scroll-bar-height":`${i.value}px`})},[e.createElementVNode("div",Sv,e.toDisplayString(g+1),1),e.createElementVNode("div",Pv,e.toDisplayString(h.title),1),e.createVNode(Va,{light:""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"process__info__text",innerHTML:h.desc},null,8,Bv),e.createElementVNode("div",Lv,[e.createVNode(Ki,{list:h.linkList},null,8,["list"])])]),_:2},1024)],4),h.imgSrc?(e.openBlock(),e.createElementBlock("div",Ov,[e.createElementVNode("div",Mv,[e.createElementVNode("img",{src:h.imgSrc,alt:h.alt||h.title},null,8,zv)])])):e.createCommentVNode("",!0)],2))),128))])])}}}),$v=H(jv,[["__scopeId","data-v-485de4f0"]]),Dv={class:"process-accordion"},Uv={class:"text-blue-dark"},Rv={class:"process-list my-6"},Hv=["onClick"],Wv={class:"item-date tx-body-p"},Iv={class:"item-line"},Xv={class:"item-collapse__header flex-between"},qv={class:"collapse__header__title"},Fv=["innerHTML"],Yv={class:"item__link mt-1"},Zv={class:"link-list__container"},Gv=e.defineComponent({name:"ProcessAccordion",__name:"ProcessAccordion",props:{data:Object,activeIdx:Number},emits:["updateIdx"],setup(n,{emit:t}){const l=n,o=t;e.watch(()=>l.data,()=>{var r,f;(f=(r=l.data)==null?void 0:r.processes)==null||f.forEach(p=>{var A;(A=p.linkList)==null||A.forEach(v=>{v.isLight=!1})})});const a=e.ref(window.innerWidth),i=e.ref([]),s=e.ref([]),d=e.computed({get(){return l.activeIdx??NaN},set(r){o("updateIdx",r)}}),u=()=>{a.value=window.innerWidth},m=()=>{s.value.forEach(f=>{f.style.setProperty("--max-height",`${f.scrollHeight}px`)})},c=r=>{d.value===r?d.value=NaN:d.value=r};return e.watch(a,()=>{m()}),e.onMounted(()=>{window.addEventListener("resize",u),u(),i.value=[],s.value=[],e.nextTick(()=>{m()})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",u)}),(r,f)=>{var p,A,v;return e.openBlock(),e.createElementBlock("div",Dv,[e.createElementVNode("h2",Uv,e.toDisplayString((p=n.data)==null?void 0:p.title),1),e.createElementVNode("ul",Rv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((A=n.data)==null?void 0:A.processes,(w,V)=>(e.openBlock(),e.createElementBlock("li",{key:w.id,class:e.normalizeClass(["process-item",[{"is-active":V==d.value},{"is-active-past":V<d.value}]]),onClick:h=>c(V)},[e.createElementVNode("div",Wv,e.toDisplayString(w.date),1),e.createElementVNode("div",Iv,[e.createElementVNode("div",{class:"item-num",ref_for:!0,ref:h=>{h&&i.value.push(h)}},e.toDisplayString(V+1),513)]),e.createElementVNode("div",{class:e.normalizeClass(["item-collapse",{"is-open":V==d.value}])},[e.createElementVNode("div",Xv,[e.createElementVNode("h6",qv,e.toDisplayString(w.title),1),f[0]||(f[0]=e.createElementVNode("div",{class:"collapse__header__btn"},null,-1))]),e.createElementVNode("div",{class:"item-collapse__body",ref_for:!0,ref:h=>{h&&s.value.push(h)}},[e.createElementVNode("div",{class:"item-desc",innerHTML:w.desc},null,8,Fv),e.createElementVNode("div",Yv,[e.createElementVNode("div",Zv,[e.createVNode(Ki,{list:w.linkList},null,8,["list"])])])],512)],2)],10,Hv))),128))]),e.createElementVNode("div",null,[e.createVNode(yi,{list:(v=n.data)==null?void 0:v.btnList},null,8,["list"])])])}}}),Jv=H(Gv,[["__scopeId","data-v-262f42cb"]]),Kv={class:"setting-content"},Qv={class:"setting-header flex items-center"},e1={class:"setting-header flex items-center"},t1={class:"setting-body"},l1={class:"btn-group"},o1={key:0,class:"drag-handle"},n1={class:"item-action flex items-center mt-2"},a1={class:"setting-body mt-2"},i1={class:"btn-group"},s1={key:0,class:"drag-handle"},r1=["src"],d1={class:"item-uplaod flex items-center"},c1={class:"section-item section-link"},u1={class:"btn-group"},m1={key:0,class:"drag-handle"},A1={class:"item-action flex items-center"},p1=["onClick"],f1=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"btns",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),i=e.computed(()=>({animation:200,group:"sections",disabled:!1,ghostClass:"ghost"})),s=w=>w&&w.length>1,d=n,u=t,m=()=>{u("update:show",!1)},c=()=>{d.data.data.btnList.push({id:B(),type:"",text:"了解更多",url:"/",isExternal:!1})},r=w=>{d.data.data.btnList=d.data.data.btnList.filter(V=>V.id!==w)},f=()=>{d.data.data.processes.push({id:B(),title:"标题",date:"",desc:"",linkList:[]})},p=w=>{d.data.data.processes=d.data.data.processes.filter(V=>V.id!==w)},A=w=>{w.push({id:B(),type:"circle",text:"了解更多",url:"/",isExternal:!1,isLight:!1})},v=(w,V)=>{w.splice(w.findIndex(h=>h.id===V),1)};return(w,V)=>{const h=e.resolveComponent("a-option"),g=e.resolveComponent("a-select"),y=e.resolveComponent("a-input"),N=e.resolveComponent("icon-drag-arrow"),C=e.resolveComponent("icon-delete"),b=e.resolveComponent("a-button"),x=e.resolveComponent("a-checkbox"),E=e.resolveComponent("icon-plus"),_=e.resolveComponent("a-link"),T=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(T,{width:500,visible:n.show,footer:!1,onCancel:m,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Kv,[e.createElementVNode("div",Qv,[V[16]||(V[16]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(g,{modelValue:n.data.width,"onUpdate:modelValue":V[0]||(V[0]=S=>n.data.width=S),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(h,{value:"default"},{default:e.withCtx(()=>[...V[12]||(V[12]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(h,{value:"small"},{default:e.withCtx(()=>[...V[13]||(V[13]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(h,{value:"middle"},{default:e.withCtx(()=>[...V[14]||(V[14]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(h,{value:"max"},{default:e.withCtx(()=>[...V[15]||(V[15]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",e1,[V[17]||(V[17]=e.createElementVNode("span",{class:"header-title"},"标题",-1)),e.createVNode(y,{modelValue:n.data.data.title,"onUpdate:modelValue":V[1]||(V[1]=S=>n.data.data.title=S),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",t1,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data.btnList,"onUpdate:modelValue":V[2]||(V[2]=S=>n.data.data.btnList=S),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!s(n.data.data),onStart:V[3]||(V[3]=S=>l.value=!0),onEnd:V[4]||(V[4]=S=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:S})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-section draggable-item",{"sortable-disabled":!s(n.data.data.btnList)}]),key:S.id},[e.createElementVNode("div",l1,[s(n.data.data)?(e.openBlock(),e.createElementBlock("div",o1,[e.createVNode(N,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(C,{class:"btn-delete",onClick:L=>r(S.id)},null,8,["onClick"])]),e.createVNode(b,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.text),1)]),_:2},1024),e.createElementVNode("div",n1,[e.createVNode(y,{class:"action-text",modelValue:S.text,"onUpdate:modelValue":L=>S.text=L,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{modelValue:S.url,"onUpdate:modelValue":L=>S.url=L,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(x,{"model-value":S.isExternal},{default:e.withCtx(()=>[...V[18]||(V[18]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:V[5]||(V[5]=S=>c())},[e.createVNode(E),V[19]||(V[19]=e.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))])]),e.createElementVNode("div",a1,[V[28]||(V[28]=e.createElementVNode("p",{class:"item-title"},"Process",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data.processes,"onUpdate:modelValue":V[8]||(V[8]=S=>n.data.data.processes=S),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!s(n.data.data.processes),onStart:V[9]||(V[9]=S=>l.value=!0),onEnd:V[10]||(V[10]=S=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:S})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-section draggable-item",{"sortable-disabled":!s(n.data.data.processes)}]),key:S.id},[e.createElementVNode("div",i1,[s(n.data.data.processes)?(e.openBlock(),e.createElementBlock("div",s1,[e.createVNode(N,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(C,{class:"btn-delete",onClick:L=>p(S.id)},null,8,["onClick"])]),V[23]||(V[23]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(y,{modelValue:S.title,"onUpdate:modelValue":L=>S.title=L,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),V[24]||(V[24]=e.createElementVNode("p",{class:"item-title"},"描述",-1)),e.createVNode(e.unref(qe),{modelValue:S.desc,"onUpdate:modelValue":L=>S.desc=L,name:`Process_editor_${S.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),V[25]||(V[25]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(y,{modelValue:S.date,"onUpdate:modelValue":L=>S.date=L,placeholder:"请输入日期","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),V[26]||(V[26]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:S.imgSrc},null,8,r1),e.createElementVNode("div",d1,[e.createVNode(y,{modelValue:S.imgSrc,"onUpdate:modelValue":L=>S.imgSrc=L,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:S.imgSrc,"onUpdate:modelValue":L=>S.imgSrc=L,name:`Process_${S.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createElementVNode("div",c1,[e.createVNode(e.unref(de),e.mergeProps({modelValue:S.linkList,"onUpdate:modelValue":L=>S.linkList=L,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},i.value,{disabled:!s(S.linkList),onStart:V[6]||(V[6]=L=>l.value=!0),onEnd:V[7]||(V[7]=L=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:L})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!s(S.linkList)}]),key:L.id},[e.createElementVNode("div",u1,[s(S.linkList)?(e.openBlock(),e.createElementBlock("div",m1,[e.createVNode(N,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(C,{class:"btn-delete",onClick:O=>v(S.linkList,L.id)},null,8,["onClick"])]),e.createVNode(_,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.text),1)]),_:2},1024),L.type==="circle"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",A1,[e.createVNode(y,{class:"action-text",modelValue:L.text,"onUpdate:modelValue":O=>L.text=O,placeholder:"链接文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{modelValue:L.url,"onUpdate:modelValue":O=>L.url=O,placeholder:"链接链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(x,{"model-value":L.isExternal},{default:e.withCtx(()=>[...V[20]||(V[20]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"]),e.createVNode(x,{style:{"padding-left":"10px"},"model-value":L.isLight},{default:e.withCtx(()=>[...V[21]||(V[21]=[e.createTextVNode("是否亮色",-1)])]),_:1},8,["model-value"])],64)):e.createCommentVNode("",!0)],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>A(S.linkList)},[e.createVNode(E),V[22]||(V[22]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,p1)])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:V[11]||(V[11]=S=>f())},[e.createVNode(E),V[27]||(V[27]=e.createElementVNode("span",{class:"btn-text"},"添加Process",-1))])])])]),_:1},8,["visible"])}}}),v1=H(f1,[["__scopeId","data-v-72b7cc6e"]]),h1={key:0,class:"process__desktop"},V1={key:1,class:"process__mobile"},g1=e.defineComponent({name:"Process",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var A;if(l.modelValue&&l.modelValue.data)return;const p={id:((A=l.modelValue)==null?void 0:A.id)||B(),type:"Process",width:"",data:{id:B(),title:"发展历程",noWrap:!1,btnList:[{id:B(),type:"",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}],processes:[{id:B(),date:"1900",title:"标题1",desc:"<p>发简历<strong>放假啊冷风机阿拉法久</strong>啊拉法基阿拉法久啊反垃圾阿拉法</p>",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",linkList:[{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!1},{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!0}]},{id:B(),date:"1900",title:"标题1",desc:"<p>发简历<strong>放假啊冷风机阿拉法久</strong>啊拉法基阿拉法久啊反垃圾阿拉法</p>",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",linkList:[{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!1},{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!0}]}]}};o("update:modelValue",p)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=p=>{o("handlePaste",p)};a();const c=e.ref(0),r=e.ref(typeof window<"u"?window.innerWidth:1024),f=()=>{typeof window<"u"&&(r.value=window.innerWidth)};return e.onMounted(()=>{typeof window<"u"&&(window.addEventListener("resize",f),f())}),e.onBeforeUnmount(()=>{typeof window<"u"&&window.removeEventListener("resize",f)}),(p,A)=>{var v,w,V,h;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"process",onMouseenter:A[4]||(A[4]=g=>i.value=!0),onMouseleave:A[5]||(A[5]=g=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["process__container",[(v=n.modelValue)!=null&&v.width?`container-content-${(w=n.modelValue)==null?void 0:w.width}`:"container-content"]])},[r.value>=768?(e.openBlock(),e.createElementBlock("div",h1,[e.createVNode($v,{data:(V=n.modelValue)==null?void 0:V.data,activeIdx:c.value,onUpdateIdx:A[0]||(A[0]=g=>c.value=g)},null,8,["data","activeIdx"])])):(e.openBlock(),e.createElementBlock("div",V1,[e.createVNode(Jv,{data:(h=n.modelValue)==null?void 0:h.data,activeIdx:c.value,onUpdateIdx:A[1]||(A[1]=g=>c.value=g)},null,8,["data","activeIdx"])]))],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":A[2]||(A[2]=g=>i.value=g),onHandleEdit:A[3]||(A[3]=g=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v1,{key:0,show:s.value,"onUpdate:show":A[6]||(A[6]=g=>s.value=g),data:n.modelValue},null,8,["show","data"]))],64)}}}),Qi=H(g1,[["__scopeId","data-v-d11b0dfd"]]),y1={class:"setting-content"},b1=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=t,a=()=>{o("update:show",!1)},i=e.ref(1),s=d=>{d===1?(l.data.data.desktopHeight=49,l.data.data.mobileHeight=24):d===2?(l.data.data.desktopHeight=80,l.data.data.mobileHeight=40):d===3?(l.data.data.desktopHeight=32,l.data.data.mobileHeight=40):d===4?(l.data.data.desktopHeight=16,l.data.data.mobileHeight=16):d===5&&(l.data.data.desktopHeight=160,l.data.data.mobileHeight=80)};return(d,u)=>{const m=e.resolveComponent("a-option"),c=e.resolveComponent("a-select"),r=e.resolveComponent("a-input"),f=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(f,{width:500,visible:n.show,footer:!1,onCancel:a,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",y1,[u[12]||(u[12]=e.createElementVNode("p",{class:"item-title"},"背景颜色",-1)),e.createVNode(c,{modelValue:n.data.bgColor,"onUpdate:modelValue":u[0]||(u[0]=p=>n.data.bgColor=p),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(m,{value:"#ffffff"},{default:e.withCtx(()=>[...u[5]||(u[5]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(m,{value:"#F7F7FA"},{default:e.withCtx(()=>[...u[6]||(u[6]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"]),u[13]||(u[13]=e.createElementVNode("p",{class:"item-title"},"间距设置",-1)),e.createVNode(c,{modelValue:i.value,"onUpdate:modelValue":u[1]||(u[1]=p=>i.value=p),placeholder:"请选择",onChange:s,"allow-clear":""},{default:e.withCtx(()=>[e.createVNode(m,{value:1},{default:e.withCtx(()=>[...u[7]||(u[7]=[e.createTextVNode("制表符起始间距(49px,24px)",-1)])]),_:1}),e.createVNode(m,{value:2},{default:e.withCtx(()=>[...u[8]||(u[8]=[e.createTextVNode("部分间距(80px,40px)",-1)])]),_:1}),e.createVNode(m,{value:3},{default:e.withCtx(()=>[...u[9]||(u[9]=[e.createTextVNode("组件间距(32px,40px)",-1)])]),_:1}),e.createVNode(m,{value:4},{default:e.withCtx(()=>[...u[10]||(u[10]=[e.createTextVNode("链接间距(16px,16px)",-1)])]),_:1}),e.createVNode(m,{value:5},{default:e.withCtx(()=>[...u[11]||(u[11]=[e.createTextVNode("页末间距(160px,80px)",-1)])]),_:1})]),_:1},8,["modelValue"]),u[14]||(u[14]=e.createElementVNode("p",{class:"item-title"},"PC高度(单位:px)",-1)),e.createVNode(r,{modelValue:n.data.data.desktopHeight,"onUpdate:modelValue":u[2]||(u[2]=p=>n.data.data.desktopHeight=p),disabled:""},null,8,["modelValue"]),u[15]||(u[15]=e.createElementVNode("p",{class:"item-title"},"移动端高度(单位:px)",-1)),e.createVNode(r,{modelValue:n.data.data.mobileHeight,"onUpdate:modelValue":u[3]||(u[3]=p=>n.data.data.mobileHeight=p),disabled:""},null,8,["modelValue"]),u[16]||(u[16]=e.createElementVNode("p",{class:"item-title"},"唯一标识",-1)),e.createVNode(r,{modelValue:n.data.data.id,"onUpdate:modelValue":u[4]||(u[4]=p=>n.data.data.id=p),placeholder:"请输入唯一标识","allow-clear":""},null,8,["modelValue"])])]),_:1},8,["visible"])}}}),w1=H(b1,[["__scopeId","data-v-72d8e435"]]),x1=["id"],k1=e.defineComponent({name:"CustomSpace",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"CustomSpace",data:{id:"",desktopHeight:"49",mobileHeight:"24",bgColor:""}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v,w,V,h,g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{id:(p=(f=n.modelValue)==null?void 0:f.data)==null?void 0:p.id,class:"custom-space",style:e.normalizeStyle({"--desktop-height":((v=(A=n.modelValue)==null?void 0:A.data)==null?void 0:v.desktopHeight)+"px","--mobile-height":((V=(w=n.modelValue)==null?void 0:w.data)==null?void 0:V.mobileHeight)+"px","--bg-color":(g=(h=n.modelValue)==null?void 0:h.data)==null?void 0:g.bgColor}),onMouseenter:r[2]||(r[2]=y=>i.value=!0),onMouseleave:r[3]||(r[3]=y=>i.value=!1)},[n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=y=>i.value=y),onHandleEdit:r[1]||(r[1]=y=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],44,x1),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w1,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=y=>s.value=y),data:n.modelValue},null,8,["show","data"]))],64)}}}),es=H(k1,[["__scopeId","data-v-33a4ad79"]]),N1=["src"],_1={class:"item-uplaod flex items-center"},C1=["src"],E1={class:"item-uplaod flex items-center"},T1={class:"item-title pt-2"},S1={class:"btn-group"},P1={key:0,class:"drag-handle"},B1={class:"item-action flex items-center"},L1={class:"btn-group"},O1={key:0,class:"drag-handle"},M1=e.defineComponent({__name:"setting",props:{data:{type:Object,default:()=>{}},showLogo:{type:Boolean,default:!0},maxNum:{type:Number,default:2},canAddParagraph:{type:Boolean,default:!1}},setup(n){const t=e.ref(!1),l=e.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),o=e.computed(()=>({animation:200,group:"paragraphs",disabled:!1,ghostClass:"ghost"})),a=m=>m&&m.length>1,i=n,s=(m,c)=>{c.length>=i.maxNum||c.push({id:B(),type:m,text:"查看更多",url:void 0,isExternal:!1})},d=(m,c)=>{m.splice(m.findIndex(r=>r.id===c),1)},u=m=>{m.push({title:"耀华国际教育学校浙江桐乡",subTitle:"耀华国际教育学校浙江桐乡",name:"耀华国际教育学校浙江桐乡",label:"123",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",buttonList:{id:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[]},paragraphs:{title:"",content:""}})};return(m,c)=>{const r=e.resolveComponent("a-input"),f=e.resolveComponent("a-upload"),p=e.resolveComponent("icon-drag-arrow"),A=e.resolveComponent("icon-delete"),v=e.resolveComponent("a-button"),w=e.resolveComponent("a-checkbox"),V=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-button-group");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.showLogo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c[18]||(c[18]=e.createElementVNode("p",{class:"item-title"},"学校logo",-1)),e.createElementVNode("img",{class:"item-img",src:n.data.logo},null,8,N1),e.createElementVNode("div",_1,[e.createVNode(r,{modelValue:n.data.logo,"onUpdate:modelValue":c[0]||(c[0]=g=>n.data.logo=g),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(f,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):e.createCommentVNode("",!0),c[27]||(c[27]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(r,{modelValue:n.data.title,"onUpdate:modelValue":c[1]||(c[1]=g=>n.data.title=g),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),c[28]||(c[28]=e.createElementVNode("p",{class:"item-title"},"子标题",-1)),e.createVNode(r,{modelValue:n.data.subTitle,"onUpdate:modelValue":c[2]||(c[2]=g=>n.data.subTitle=g),placeholder:"请输入子标题","allow-clear":""},null,8,["modelValue"]),c[29]||(c[29]=e.createElementVNode("p",{class:"item-title"},"名称",-1)),e.createVNode(r,{modelValue:n.data.name,"onUpdate:modelValue":c[3]||(c[3]=g=>n.data.name=g),placeholder:"请输入名称","allow-clear":""},null,8,["modelValue"]),c[30]||(c[30]=e.createElementVNode("p",{class:"item-title"},"标签",-1)),e.createVNode(r,{modelValue:n.data.label,"onUpdate:modelValue":c[4]||(c[4]=g=>n.data.label=g),placeholder:"请输入标签","allow-clear":""},null,8,["modelValue"]),c[31]||(c[31]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:n.data.imgSrc},null,8,C1),e.createElementVNode("div",E1,[e.createVNode(r,{modelValue:n.data.imgSrc,"onUpdate:modelValue":c[5]||(c[5]=g=>n.data.imgSrc=g),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(f,{class:"fit-content","show-file-list":!1,action:"/"})]),e.createVNode(r,{class:"mt-2",modelValue:n.data.alt,"onUpdate:modelValue":c[6]||(c[6]=g=>n.data.alt=g),placeholder:"图片alt","allow-clear":""},null,8,["modelValue"]),e.createElementVNode("p",T1,"按钮(最多"+e.toDisplayString(n.maxNum)+"个)",1),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.buttonList.data,"onUpdate:modelValue":c[7]||(c[7]=g=>n.data.buttonList.data=g),"component-data":{tag:"div",type:"transition-group",name:t.value?null:"flip-list"}},l.value,{disabled:!a(n.data.buttonList.data),onStart:c[8]||(c[8]=g=>t.value=!0),onEnd:c[9]||(c[9]=g=>t.value=!1),"item-key":"id"}),{item:e.withCtx(({element:g})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button item-link draggable-item",{"sortable-disabled":!a(n.data.buttonList.data)}]),key:g.id},[e.createElementVNode("div",S1,[a(n.data.buttonList.data)?(e.openBlock(),e.createElementBlock("div",P1,[e.createVNode(p,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(A,{class:"btn-delete",onClick:y=>d(n.data.buttonList.data,g.id)},null,8,["onClick"])]),e.createVNode(v,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.text),1)]),_:2},1024),e.createElementVNode("div",B1,[e.createVNode(r,{class:"action-text",modelValue:g.text,"onUpdate:modelValue":y=>g.text=y,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(r,{modelValue:g.url,"onUpdate:modelValue":y=>g.url=y,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(w,{"model-value":g.isExternal},{default:e.withCtx(()=>[...c[19]||(c[19]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createVNode(h,{class:"mt-2",type:"primary"},{default:e.withCtx(()=>[e.createVNode(v,{size:"mini",onClick:c[10]||(c[10]=g=>s("default",n.data.buttonList.data))},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[c[20]||(c[20]=e.createTextVNode(" 默认按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:c[11]||(c[11]=g=>s("white",n.data.buttonList.data))},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[c[21]||(c[21]=e.createTextVNode(" 白色按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:c[12]||(c[12]=g=>s("light",n.data.buttonList.data))},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[c[22]||(c[22]=e.createTextVNode(" 亮色按钮 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:c[13]||(c[13]=g=>s("blue",n.data.buttonList.data))},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[c[23]||(c[23]=e.createTextVNode(" 蓝色按钮 ",-1))]),_:1})]),_:1}),c[32]||(c[32]=e.createElementVNode("p",{class:"item-name mt-2"},"段落",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.paragraphs,"onUpdate:modelValue":c[14]||(c[14]=g=>n.data.paragraphs=g),"component-data":{tag:"div",type:"transition-group",name:t.value?null:"flip-list"}},o.value,{disabled:!a(n.data.paragraphs),onStart:c[15]||(c[15]=g=>t.value=!0),onEnd:c[16]||(c[16]=g=>t.value=!1),"item-key":"id"}),{item:e.withCtx(({element:g})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button item-link draggable-item",{"sortable-disabled":!a(n.data.paragraphs)}]),key:g.id},[e.createElementVNode("div",L1,[a(n.data.paragraphs)?(e.openBlock(),e.createElementBlock("div",O1,[e.createVNode(p,{class:"drag-icon"})])):e.createCommentVNode("",!0),n.canAddParagraph?(e.openBlock(),e.createBlock(A,{key:1,class:"btn-delete",onClick:y=>d(n.data.paragraphs,g.id)},null,8,["onClick"])):e.createCommentVNode("",!0)]),c[24]||(c[24]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(r,{modelValue:g.title,"onUpdate:modelValue":y=>g.title=y,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),c[25]||(c[25]=e.createElementVNode("p",{class:"item-title mt-2"},"内容",-1)),e.createVNode(e.unref(qe),{name:`Profile_editor_${g.id}`,modelValue:g.content,"onUpdate:modelValue":y=>g.content=y},null,8,["name","modelValue","onUpdate:modelValue"])],2))]),_:1},16,["modelValue","component-data","disabled"]),n.canAddParagraph?(e.openBlock(),e.createElementBlock("div",{key:1,class:"item-add-btn flex items-center",onClick:c[17]||(c[17]=g=>u(n.data.paragraphs))},[e.createVNode(V),c[26]||(c[26]=e.createElementVNode("span",{class:"btn-text"},"添加段落",-1))])):e.createCommentVNode("",!0)],64)}}}),xa=H(M1,[["__scopeId","data-v-40fe2c2b"]]),z1={class:"setting-content"},j1={class:"setting-header flex items-center"},$1={class:"setting-header flex items-center"},D1={class:"setting-header flex items-center"},U1={class:"setting-body"},R1={class:"setting-item"},H1={class:"btn-group"},W1={key:0,class:"drag-handle"},I1=["src"],X1={class:"item-uplaod flex items-center"},q1=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=c=>{i.data.data.push({id:B(),type:c,text:"查看更多",url:void 0,isExternal:!1,isLight:!1})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("a-input"),v=e.resolveComponent("icon-plus"),w=e.resolveComponent("a-button"),V=e.resolveComponent("a-button-group"),h=e.resolveComponent("icon-drag-arrow"),g=e.resolveComponent("icon-delete"),y=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(y,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",z1,[e.createElementVNode("div",j1,[r[10]||(r[10]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=N=>n.data.bgColor=N),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",$1,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"pc列数",-1)),e.createVNode(A,{modelValue:n.data.desktopCol,"onUpdate:modelValue":r[1]||(r[1]=N=>n.data.desktopCol=N),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",D1,[r[12]||(r[12]=e.createElementVNode("span",{class:"header-title"},"移动端列数",-1)),e.createVNode(A,{modelValue:n.data.mobileCol,"onUpdate:modelValue":r[2]||(r[2]=N=>n.data.mobileCol=N),placeholder:"请输入","allow-clear":""},null,8,["modelValue"])]),e.createVNode(V,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(w,{size:"mini",onClick:r[3]||(r[3]=N=>u("GalleryListItem"))},{icon:e.withCtx(()=>[e.createVNode(v)]),default:e.withCtx(()=>[r[13]||(r[13]=e.createTextVNode(" 普通项目 ",-1))]),_:1}),e.createVNode(w,{size:"mini",onClick:r[4]||(r[4]=N=>u("GalleryListProfile"))},{icon:e.withCtx(()=>[e.createVNode(v)]),default:e.withCtx(()=>[r[14]||(r[14]=e.createTextVNode(" 文章项目 ",-1))]),_:1})]),_:1}),e.createElementVNode("div",U1,[e.createElementVNode("div",R1,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[5]||(r[5]=N=>n.data.data=N),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[6]||(r[6]=N=>l.value=!0),onEnd:r[7]||(r[7]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:N.id},[e.createElementVNode("div",H1,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",W1,[e.createVNode(h,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(g,{class:"btn-delete",onClick:C=>m(N.id)},null,8,["onClick"])]),r[15]||(r[15]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(A,{modelValue:N.title,"onUpdate:modelValue":C=>N.title=C,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[16]||(r[16]=e.createElementVNode("p",{class:"item-title"},"文本",-1)),e.createVNode(A,{modelValue:N.text,"onUpdate:modelValue":C=>N.text=C,placeholder:"请输入文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[17]||(r[17]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:N.imgSrc},null,8,I1),e.createElementVNode("div",X1,[e.createVNode(A,{modelValue:N.imgSrc,"onUpdate:modelValue":C=>N.imgSrc=C,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:N.imgSrc,"onUpdate:modelValue":C=>N.imgSrc=C,name:`GalleryList_${N.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(A,{class:"mt-2",modelValue:N.alt,"onUpdate:modelValue":C=>N.alt=C,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[18]||(r[18]=e.createElementVNode("p",{class:"item-title"},"网址",-1)),e.createVNode(A,{modelValue:N.url,"onUpdate:modelValue":C=>N.url=C,placeholder:"请输入网址","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[19]||(r[19]=e.createElementVNode("p",{class:"item-title"},"Profile Information",-1)),N.profile?(e.openBlock(),e.createBlock(xa,{key:0,data:N.profile,showLogo:!1,canAddParagraph:!0},null,8,["data"])):e.createCommentVNode("",!0)],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),F1=H(q1,[["__scopeId","data-v-7ab273f4"]]),Y1={class:"lightbox__content"},Z1={class:"lightbox__content__head"},G1={class:"lightbox__content__head__image"},J1=["src","alt"],K1={class:"lightbox__content__head__info"},Q1={class:"lightbox__content__head__info__title"},eh={class:"lightbox__content__head__info__subtitle"},th={class:"lightbox__content__head__info__label"},lh={class:"lightbox__content__head__info__btn"},oh={class:"lightbox__content__main",style:{"--head-height":"297px"}},nh={class:"scroll-bar"},ah={"data-simplebar-auto-hide":"false",class:"simple-bar","data-simplebar":"init"},ih={class:"simplebar-wrapper",style:{margin:"0px -24px 0px 0px"}},sh={class:"simplebar-mask"},rh={class:"simplebar-offset",style:{right:"0px",bottom:"0px"}},dh={class:"simplebar-content-wrapper",tabindex:"0",role:"region","aria-label":"scrollable content",style:{height:"auto",overflow:"hidden"}},ch={class:"simplebar-content",style:{padding:"0px 24px 0px 0px"}},uh={class:"lightbox__content__body"},mh={class:"lightbox__content__body__title"},Ah=["innerHTML"],ph={class:"lightbox__content__footer"},fh={class:"lightbox__content__footer__logo"},vh=["src"],hh=e.defineComponent({__name:"index",props:{data:{type:Object,default:()=>{}}},emits:["close"],setup(n,{emit:t}){const l=t,o=()=>{l("close")};return(a,i)=>{var s,d,u,m,c,r;return e.openBlock(),e.createElementBlock("div",Y1,[e.createElementVNode("div",{class:"lightbox__content__cross i i-cross-modal",onClick:o}),e.createElementVNode("div",{class:"lightbox__content__prev i i-arrow-prev",onClick:o}),e.createElementVNode("div",Z1,[e.createElementVNode("div",G1,[e.createElementVNode("img",{src:(s=n.data)==null?void 0:s.imgSrc,alt:(d=n.data)==null?void 0:d.alt},null,8,J1)]),e.createElementVNode("div",K1,[e.createElementVNode("h2",Q1,e.toDisplayString((u=n.data)==null?void 0:u.title),1),e.createElementVNode("h6",eh,e.toDisplayString((m=n.data)==null?void 0:m.subTitle),1),e.createElementVNode("div",th,e.toDisplayString((c=n.data)==null?void 0:c.label),1),e.createElementVNode("div",lh,[e.createVNode(ha,{modelValue:n.data.buttonList,"onUpdate:modelValue":i[0]||(i[0]=f=>n.data.buttonList=f)},null,8,["modelValue"])])])]),e.createElementVNode("div",oh,[e.createElementVNode("div",nh,[e.createElementVNode("div",ah,[e.createElementVNode("div",ih,[i[1]||(i[1]=e.createElementVNode("div",{class:"simplebar-height-auto-observer-wrapper"},[e.createElementVNode("div",{class:"simplebar-height-auto-observer"})],-1)),e.createElementVNode("div",sh,[e.createElementVNode("div",rh,[e.createElementVNode("div",dh,[e.createElementVNode("div",ch,[e.createElementVNode("div",uh,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((r=n.data)==null?void 0:r.paragraphs,f=>(e.openBlock(),e.createElementBlock("li",{class:"lightbox__content__body__list",key:f.id},[e.createElementVNode("div",mh,e.toDisplayString(f.title),1),e.createElementVNode("div",{class:"lightbox__content__body__text",innerHTML:f.content},null,8,Ah)]))),128))])]),e.createElementVNode("div",ph,[e.createElementVNode("div",fh,[e.createElementVNode("img",{src:n.data.logo||"https://ywies-tx.cedim/images/logo/logo-ycyw.png",alt:"school logo"},null,8,vh)])])])])])]),i[2]||(i[2]=e.createElementVNode("div",{class:"simplebar-placeholder",style:{width:"auto",height:"222px"}},null,-1))]),i[3]||(i[3]=e.createElementVNode("div",{class:"simplebar-track simplebar-horizontal",style:{visibility:"hidden"}},[e.createElementVNode("div",{class:"simplebar-scrollbar simplebar-visible",style:{width:"0px",display:"none"}})],-1)),i[4]||(i[4]=e.createElementVNode("div",{class:"simplebar-track simplebar-vertical",style:{visibility:"hidden"}},[e.createElementVNode("div",{class:"simplebar-scrollbar simplebar-visible",style:{height:"0px",display:"none"}})],-1))])])])])}}}),Vh=H(hh,[["__scopeId","data-v-d329796d"]]),ka=e.defineComponent({__name:"modal",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=e.computed(()=>l.show),a=t,i=()=>{a("update:show",!1)};return(s,d)=>{const u=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(u,{visible:o.value,"onUpdate:visible":d[0]||(d[0]=m=>o.value=m),hideTitle:!0,footer:!1,bodyClass:"profile-model",onCancel:i},{default:e.withCtx(()=>[e.createVNode(Vh,{data:n.data,onClose:i},null,8,["data"])]),_:1},8,["visible"])}}}),gh=["onClick"],yh={class:"gallery-caption__img"},bh=["src","alt"],wh={class:"gallery-caption__title tx-subtitle text-blue text-center mt-3 mt-md-4 px-3"},xh={key:0,class:"tx-body text-teal-darkest text-center mt-2 mt-md-3 mb-3"},kh=e.defineComponent({name:"GalleryList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var A;if(l.modelValue&&l.modelValue.data)return;const p={id:((A=l.modelValue)==null?void 0:A.id)||B(),type:"GalleryList",bgColor:"",desktopCol:4,mobileCol:2,data:[{id:B(),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:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]}}]};o("update:modelValue",p)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=p=>{o("handlePaste",p)},c=e.ref(!1),r=e.ref({}),f=p=>{p.type==="GalleryListProfile"&&(r.value=p.profile,c.value=!0)};return a(),(p,A)=>{var V;const v=e.resolveComponent("a-col"),w=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"gallery-list",onMouseenter:A[2]||(A[2]=h=>i.value=!0),onMouseleave:A[3]||(A[3]=h=>i.value=!1)},[e.createElementVNode("div",{class:"gallery-container gallery-caption container-content",style:e.normalizeStyle({backgroundColor:(V=n.modelValue)==null?void 0:V.bgColor})},[e.createVNode(w,{class:"caption-row"},{default:e.withCtx(()=>{var h;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((h=n.modelValue)==null?void 0:h.data,g=>{var y,N;return e.openBlock(),e.createBlock(v,{key:g.id,sm:{span:24/((y=n.modelValue)==null?void 0:y.mobileCol)},md:{span:24/((N=n.modelValue)==null?void 0:N.desktopCol)}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["gallery-caption",[g.url&&"has-url",g.profile&&"has-profile"]]),onClick:C=>f(g)},[e.createElementVNode("div",yh,[e.createElementVNode("img",{src:g.imgSrc,alt:g.alt},null,8,bh)]),e.createElementVNode("div",wh,e.toDisplayString(g.title),1),g.text?(e.openBlock(),e.createElementBlock("div",xh,e.toDisplayString(g.text),1)):e.createCommentVNode("",!0)],10,gh)]),_:2},1032,["sm","md"])}),128))]}),_:1})],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":A[0]||(A[0]=h=>i.value=h),onHandleEdit:A[1]||(A[1]=h=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F1,{key:0,show:s.value,"onUpdate:show":A[4]||(A[4]=h=>s.value=h),data:n.modelValue},null,8,["show","data"])),e.createVNode(ka,{show:c.value,"onUpdate:show":A[5]||(A[5]=h=>c.value=h),data:r.value},null,8,["show","data"])],64)}}}),ts=H(kh,[["__scopeId","data-v-b339bce1"]]),Nh={class:"setting-content"},_h={class:"setting-body"},Ch={class:"item-name"},Eh={class:"btn-group"},Th={key:0,class:"drag-handle"},Sh={class:"item-name"},Ph=["src"],Bh={class:"mt-2 flex items-center"},Lh=["src"],Oh={class:"mt-2 flex items-center"},Mh=["src"],zh={class:"mt-2 flex items-center"},jh={class:"btn-group"},$h={key:0,class:"drag-handle"},Dh={class:"item-action flex items-center"},Uh=["onClick"],Rh=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show","updateSwiper"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"banners",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),i=f=>f&&f.length>1,s=t,d=()=>{s("update:show",!1)},u=(f,p)=>{f.push({id:B(),type:p,imgSrc:"",title:"",alt:"",link:"",videoSrc:p==="Video"?"":void 0}),s("updateSwiper")},m=(f,p)=>{f.splice(f.findIndex(A=>A.id===p),1),s("updateSwiper")},c=f=>{f.push({id:B(),text:"查看更多",url:void 0,isExternal:!1})},r=(f,p)=>{f.splice(f.findIndex(A=>A.id===p),1)};return(f,p)=>{const A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("a-input"),V=e.resolveComponent("a-checkbox"),h=e.resolveComponent("icon-plus"),g=e.resolveComponent("a-button"),y=e.resolveComponent("a-button-group"),N=e.resolveComponent("a-link"),C=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(C,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Nh,[e.createElementVNode("div",_h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data.data,b=>(e.openBlock(),e.createElementBlock("div",{class:"setting-item",key:b.id},[e.createElementVNode("p",Ch,e.toDisplayString(b.type),1),b.type==="Banners"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(de),e.mergeProps({modelValue:b.data,"onUpdate:modelValue":x=>b.data=x,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},{ref_for:!0},o.value,{disabled:!i(b.data),onStart:p[0]||(p[0]=x=>l.value=!0),onEnd:p[1]||(p[1]=x=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:x})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(b.data)}]),key:x.id},[e.createElementVNode("div",Eh,[i(b.data)?(e.openBlock(),e.createElementBlock("div",Th,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:E=>m(b.data,b.id)},null,8,["onClick"])]),e.createElementVNode("p",Sh,e.toDisplayString(x.type),1),e.createVNode(w,{class:"mt-2",modelValue:x.title,"onUpdate:modelValue":E=>x.title=E,placeholder:"标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(w,{class:"mt-2",modelValue:x.alt,"onUpdate:modelValue":E=>x.alt=E,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(w,{class:"mt-2",modelValue:x.link,"onUpdate:modelValue":E=>x.link=E,placeholder:"链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),x.type==="Image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("img",{class:"item-img",src:x.imgSrc},null,8,Ph),e.createElementVNode("div",Bh,[e.createVNode(w,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,name:`HeroSlide_${x.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("video",{class:"item-img",src:x.videoSrc,controls:""},null,8,Lh),e.createElementVNode("div",Oh,[e.createVNode(w,{modelValue:x.videoSrc,"onUpdate:modelValue":E=>x.videoSrc=E,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:x.videoSrc,"onUpdate:modelValue":E=>x.videoSrc=E,name:`HeroSlide_${x.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createElementVNode("img",{class:"item-img",src:x.imgSrc},null,8,Mh),e.createElementVNode("div",zh,[e.createVNode(w,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:x.imgSrc,"onUpdate:modelValue":E=>x.imgSrc=E,name:`HeroSlide_${x.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],64)),e.createVNode(V,{class:"mt-2","model-value":x.isExternal},{default:e.withCtx(()=>[...p[4]||(p[4]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createVNode(y,{class:"mt-2",type:"primary"},{default:e.withCtx(()=>[e.createVNode(g,{size:"mini",type:"outline",onClick:x=>u(b.data,"Image")},{icon:e.withCtx(()=>[e.createVNode(h)]),default:e.withCtx(()=>[p[5]||(p[5]=e.createTextVNode(" 图片 ",-1))]),_:1},8,["onClick"]),e.createVNode(g,{size:"mini",type:"outline",onClick:x=>u(b.data,"Video")},{icon:e.withCtx(()=>[e.createVNode(h)]),default:e.withCtx(()=>[p[6]||(p[6]=e.createTextVNode(" 视频 ",-1))]),_:1},8,["onClick"])]),_:2},1024)],64)):e.createCommentVNode("",!0),b.type==="Links"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(de),e.mergeProps({modelValue:b.data,"onUpdate:modelValue":x=>b.data=x,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},{ref_for:!0},a.value,{disabled:!i(b.data),onStart:p[2]||(p[2]=x=>l.value=!0),onEnd:p[3]||(p[3]=x=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:x})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(b.data)}]),key:x.id},[e.createElementVNode("div",jh,[i(b.data)?(e.openBlock(),e.createElementBlock("div",$h,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:E=>r(b.data,x.id)},null,8,["onClick"])]),e.createVNode(N,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.text),1)]),_:2},1024),e.createElementVNode("div",Dh,[e.createVNode(w,{class:"action-text",modelValue:x.text,"onUpdate:modelValue":E=>x.text=E,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(w,{modelValue:x.url,"onUpdate:modelValue":E=>x.url=E,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(V,{"model-value":x.isExternal},{default:e.withCtx(()=>[...p[7]||(p[7]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:x=>c(b.data)},[e.createVNode(h),p[8]||(p[8]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,Uh)],64)):e.createCommentVNode("",!0)]))),128))])])]),_:1},8,["visible"])}}}),Hh=H(Rh,[["__scopeId","data-v-1f1760c7"]]),Wh={class:"banner-quicklinks"},Ih={class:"quick-links__list"},Xh=e.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},emits:["handleClick"],setup(n,{emit:t}){const l=n,o=t,a=f=>{o("handleClick",f)},i=e.ref(null),s=e.ref(!1),d=e.ref(!1),u=()=>{const f=i.value;f&&(s.value=f.scrollLeft>0,d.value=f.scrollLeft+f.clientWidth<f.scrollWidth)},m=()=>{const f=i.value;f&&f.scrollBy({left:-f.clientWidth/1.5,behavior:"smooth"})},c=()=>{const f=i.value;f&&f.scrollBy({left:f.clientWidth/1.5,behavior:"smooth"})},r=()=>{u()};return e.watch(()=>l.data,async()=>{await e.nextTick(),u()}),e.onMounted(()=>{window.addEventListener("resize",u),e.nextTick(u)}),e.onUnmounted(()=>{window.removeEventListener("resize",u)}),(f,p)=>(e.openBlock(),e.createElementBlock("div",Wh,[e.withDirectives(e.createElementVNode("div",{class:"quick-links__nav__prev",onClick:m},null,512),[[e.vShow,s.value]]),e.createElementVNode("div",{class:"quick-links__wrapper",ref_key:"quickLinksWrapperRef",ref:i,onScroll:r},[e.createElementVNode("div",Ih,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data,A=>(e.openBlock(),e.createBlock(la,{key:A.id,data:A,hasHoverBg:!1,onHandleClick:a},null,8,["data"]))),128))])],544),e.withDirectives(e.createElementVNode("div",{class:"quick-links__nav__next",onClick:c},null,512),[[e.vShow,d.value]])]))}}),qh=H(Xh,[["__scopeId","data-v-83b87f22"]]),Fh={class:"swiper-wrapper"},Yh={class:"swiper-slide__media"},Zh=["src","alt"],Gh={key:1,class:"video-player"},Jh=["poster"],Kh=["src"],Qh=["href"],eV={class:"swiper-slide__body"},tV={class:"swiper-slide__body__title text-center"},lV={class:"video-box"},oV=["src"],nV=e.defineComponent({__name:"index",props:{data:{},imageInterval:{},videoAutoNext:{type:Boolean}},setup(n,{expose:t}){const l=n,o=e.ref();let a=null,i=0,s=null,d=null,u=null,m=null,c=null;const r=async()=>{try{const T=await import("swiper"),{Navigation:S,Pagination:L,Autoplay:O}=await import("swiper/modules");d=T.Swiper,u=S,m=L,c=O,await Promise.resolve().then(()=>WV),await Promise.resolve().then(()=>IV),await Promise.resolve().then(()=>XV),o.value&&(a=new d(o.value,{modules:[u,m,c],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:M=>{i=M.activeIndex,v(i)},touchStart:()=>{p()},touchEnd:()=>{setTimeout(()=>{const M=l.data[f.value];M&&M.type==="Image"&&A()},100)}}}))}catch(T){console.error("Failed to load Swiper:",T)}},f=e.ref(0),p=()=>{s&&(clearTimeout(s),s=null)},A=()=>{p();const T=l.data[f.value];if(T&&T.type==="Image"){const S=l.imageInterval||5e3;s=setTimeout(()=>{a&&a.slideNext()},S)}},v=T=>{p(),N(),f.value=T;const S=l.data[f.value];S.type==="Video"?y():S.type==="Image"&&A()},w=()=>{g.value=!1,l.videoAutoNext!==!1&&a&&setTimeout(()=>{a.slideNext()},200)},V=e.ref([]),h=(T,S)=>{const L=T&&"$el"in T?T.$el:T;L instanceof HTMLVideoElement&&(V.value[S]=L)},g=e.ref(!1),y=()=>{V.value[f.value]&&(V.value[f.value].play(),g.value=!0,p())},N=()=>{V.value[f.value]&&(V.value[f.value].pause(),g.value=!1)},C=e.ref(!1),b=e.ref(),x=e.ref(),E=()=>{N(),x.value=l.data[f.value].videoSrc,e.nextTick(()=>{var T;C.value=!0,(T=b.value)==null||T.play()})},_=()=>{var T;(T=b.value)==null||T.pause(),C.value=!1};return e.onMounted(async()=>{await r(),v(0)}),e.onUnmounted(()=>{p(),a&&a.destroy(!0,!0)}),t({initSwiper:r}),(T,S)=>{const L=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"swiper-container",ref_key:"swiperContainer",ref:o},[e.createElementVNode("div",Fh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data,(O,M)=>(e.openBlock(),e.createElementBlock("div",{class:"swiper-slide",key:O.id},[e.createElementVNode("div",Yh,[O.type==="Image"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"swiper-slide__media-img",src:O.imgSrc,alt:O.alt},null,8,Zh)):O.type==="Video"?(e.openBlock(),e.createElementBlock("div",Gh,[e.createElementVNode("video",{ref_for:!0,ref:$=>h($,M),playsinline:"",poster:O.imgSrc,onEnded:w},[e.createElementVNode("source",{src:O.videoSrc,type:"video/mp4"},null,8,Kh)],40,Jh)])):e.createCommentVNode("",!0)]),e.createElementVNode("a",{href:O.link,target:"_blank",class:"swiper-slide__link"},null,8,Qh),e.createElementVNode("div",eV,[e.createElementVNode("div",tV,e.toDisplayString(O.title),1),O.type==="Video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"swiper-slide__body__play",onClick:e.withModifiers(y,["stop"])})),e.createElementVNode("button",{type:"button",class:"swiper-slide__body__link",onClick:e.withModifiers(E,["stop"])},"观看完整视频")],64)):e.createCommentVNode("",!0)])]))),128))]),S[1]||(S[1]=e.createElementVNode("div",{class:"swiper-pagination"},null,-1)),S[2]||(S[2]=e.createElementVNode("div",{class:"swiper-button-next"},null,-1)),S[3]||(S[3]=e.createElementVNode("div",{class:"swiper-button-prev"},null,-1))],512),e.createVNode(L,{visible:C.value,"onUpdate:visible":S[0]||(S[0]=O=>C.value=O),footer:!1,width:"1200px",onCancel:_},{title:e.withCtx(()=>[...S[4]||(S[4]=[e.createTextVNode(" 观看完整视频 ",-1)])]),default:e.withCtx(()=>[e.createElementVNode("div",lV,[e.createElementVNode("video",{ref_key:"videoElement",ref:b,controls:""},[e.createElementVNode("source",{src:x.value,type:"video/mp4"},null,8,oV)],512)])]),_:1},8,["visible"])],64)}}}),aV=H(nV,[["__scopeId","data-v-f46c25de"]]),iV=e.defineComponent({name:"HeroSlide",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var A;if(l.modelValue&&l.modelValue.data)return;const p={id:((A=l.modelValue)==null?void 0:A.id)||B(),type:"HeroSlide",data:[{id:B(),type:"Banners",data:[{id:B(),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:B(),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:B(),type:"Links",data:[{id:B(),text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]}]};o("update:modelValue",p)},i=p=>{o("handleClick",p)},s=e.ref(!1),d=e.ref(!1),u=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},c=p=>{o("handlePaste",p)},r=e.ref(),f=()=>{var p;(p=r.value)==null||p.initSwiper()};return a(),(p,A)=>{var v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"hero-slide has-quick-links is-video-and-image",onMouseenter:A[2]||(A[2]=w=>s.value=!0),onMouseleave:A[3]||(A[3]=w=>s.value=!1)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=n.modelValue)==null?void 0:v.data,w=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w.id},[w.type==="Banners"?(e.openBlock(),e.createBlock(aV,{key:0,ref_for:!0,ref_key:"swiperRef",ref:r,data:w.data},null,8,["data"])):e.createCommentVNode("",!0),w.type==="Links"&&w.data.length?(e.openBlock(),e.createBlock(qh,{key:1,data:w.data,onHandleClick:i},null,8,["data"])):e.createCommentVNode("",!0)],64))),128)),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:s.value,"onUpdate:show":A[0]||(A[0]=w=>s.value=w),onHandleEdit:A[1]||(A[1]=w=>d.value=!0),onHandleDelete:u,onHandleCopy:m,onHandlePaste:c},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Hh,{key:0,show:d.value,"onUpdate:show":A[4]||(A[4]=w=>d.value=w),data:n.modelValue,onUpdateSwiper:f},null,8,["show","data"]))],64)}}}),ls=H(iV,[["__scopeId","data-v-f54bfbfb"]]),sV={class:"setting-content"},rV={class:"setting-header flex items-center"},dV={class:"setting-header flex items-center"},cV={class:"setting-body"},uV={class:"setting-item"},mV={class:"btn-group"},AV={key:0,class:"drag-handle"},pV={class:"item-action flex items-center"},fV=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=c=>{i.data.data.push({id:B(),type:c,text:"查看更多",url:void 0,isExternal:!1,isLight:!1})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-plus"),v=e.resolveComponent("a-button"),w=e.resolveComponent("a-button-group"),V=e.resolveComponent("icon-drag-arrow"),h=e.resolveComponent("icon-delete"),g=e.resolveComponent("a-link"),y=e.resolveComponent("a-input"),N=e.resolveComponent("a-checkbox"),C=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(C,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",sV,[e.createElementVNode("div",rV,[r[11]||(r[11]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(p,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=b=>n.data.width=b),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:""},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(f,{value:"small"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(f,{value:"middle"},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(f,{value:"max"},{default:e.withCtx(()=>[...r[10]||(r[10]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",dV,[r[14]||(r[14]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[1]||(r[1]=b=>n.data.bgColor=b),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[12]||(r[12]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[13]||(r[13]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createVNode(w,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(v,{size:"mini",onClick:r[2]||(r[2]=b=>u("circle"))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[15]||(r[15]=e.createTextVNode(" 圆链接 ",-1))]),_:1}),e.createVNode(v,{size:"mini",onClick:r[3]||(r[3]=b=>u("text"))},{icon:e.withCtx(()=>[e.createVNode(A)]),default:e.withCtx(()=>[r[16]||(r[16]=e.createTextVNode(" 文字链接 ",-1))]),_:1})]),_:1}),e.createElementVNode("div",cV,[e.createElementVNode("div",uV,[r[20]||(r[20]=e.createElementVNode("p",{class:"item-name"},"链接",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[4]||(r[4]=b=>n.data.data=b),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[5]||(r[5]=b=>l.value=!0),onEnd:r[6]||(r[6]=b=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:b})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:b.id},[e.createElementVNode("div",mV,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",AV,[e.createVNode(V,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(h,{class:"btn-delete",onClick:x=>m(b.id)},null,8,["onClick"])]),e.createVNode(g,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.text),1)]),_:2},1024),b.type==="circle"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",pV,[e.createVNode(y,{class:"action-text",modelValue:b.text,"onUpdate:modelValue":x=>b.text=x,placeholder:"链接文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(y,{modelValue:b.url,"onUpdate:modelValue":x=>b.url=x,placeholder:"链接链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(N,{"model-value":b.isExternal},{default:e.withCtx(()=>[...r[17]||(r[17]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"]),e.createVNode(N,{style:{"padding-left":"10px"},"model-value":b.isLight},{default:e.withCtx(()=>[...r[18]||(r[18]=[e.createTextVNode("是否亮色",-1)])]),_:1},8,["model-value"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(y,{class:"action-text m-2",modelValue:b.text,"onUpdate:modelValue":x=>b.text=x,placeholder:"链接文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[19]||(r[19]=e.createElementVNode("p",{class:"item-name"},"Profile Information",-1)),e.createVNode(xa,{data:b.profile},null,8,["data"])],64))],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),vV=H(fV,[["__scopeId","data-v-3a4d530f"]]),hV=e.defineComponent({name:"LinkList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var A,v;if(l.modelValue&&l.modelValue.data)return;const p={id:((A=l.modelValue)==null?void 0:A.id)||B(),type:"LinkList",width:"",bgColor:"",data:[{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!1},{id:B(),type:"circle",text:"了解更多",url:"https://www.baidu.com",isExternal:!1,isLight:!0},{id:B(),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=l.modelValue)==null?void 0:v.id)||B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]}}]};o("update:modelValue",p)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=p=>{o("handlePaste",p)},c=e.ref(!1),r=e.ref({}),f=p=>{p.type==="text"&&(r.value=p.profile,c.value=!0)};return a(),(p,A)=>{var v,w,V,h;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"link-list",style:e.normalizeStyle({backgroundColor:(v=n.modelValue)==null?void 0:v.bgColor}),onMouseenter:A[2]||(A[2]=g=>i.value=!0),onMouseleave:A[3]||(A[3]=g=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["link-list__container justify-content-center",[(w=n.modelValue)!=null&&w.width?`container-content-${(V=n.modelValue)==null?void 0:V.width}`:"container-content"]])},[e.createVNode(Ki,{list:(h=n.modelValue)==null?void 0:h.data,onHandleClick:f},null,8,["list"])],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":A[0]||(A[0]=g=>i.value=g),onHandleEdit:A[1]||(A[1]=g=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(vV,{key:0,show:s.value,"onUpdate:show":A[4]||(A[4]=g=>s.value=g),data:n.modelValue},null,8,["show","data"])),e.createVNode(ka,{show:c.value,"onUpdate:show":A[5]||(A[5]=g=>c.value=g),data:r.value},null,8,["show","data"])],64)}}}),os=H(hV,[["__scopeId","data-v-fb7a0af7"]]),VV={class:"setting-content"},gV={class:"setting-header flex items-center"},yV={class:"setting-header flex items-center"},bV={class:"setting-header flex items-center"},wV=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-option"),d=e.resolveComponent("a-select"),u=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(u,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",VV,[e.createElementVNode("div",gV,[i[9]||(i[9]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(d,{modelValue:n.data.data.width,"onUpdate:modelValue":i[0]||(i[0]=m=>n.data.data.width=m),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(s,{value:"default"},{default:e.withCtx(()=>[...i[5]||(i[5]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(s,{value:"small"},{default:e.withCtx(()=>[...i[6]||(i[6]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(s,{value:"middle"},{default:e.withCtx(()=>[...i[7]||(i[7]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(s,{value:"max"},{default:e.withCtx(()=>[...i[8]||(i[8]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",yV,[i[12]||(i[12]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(d,{modelValue:n.data.data.bgColor,"onUpdate:modelValue":i[1]||(i[1]=m=>n.data.data.bgColor=m),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(s,{value:"#ffffff"},{default:e.withCtx(()=>[...i[10]||(i[10]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(s,{value:"#F7F7FA"},{default:e.withCtx(()=>[...i[11]||(i[11]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",bV,[i[15]||(i[15]=e.createElementVNode("span",{class:"header-title"},"是否显示下划线",-1)),e.createVNode(d,{modelValue:n.data.data.hasLine,"onUpdate:modelValue":i[2]||(i[2]=m=>n.data.data.hasLine=m),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(s,{value:!0},{default:e.withCtx(()=>[...i[13]||(i[13]=[e.createTextVNode("是",-1)])]),_:1}),e.createVNode(s,{value:!1},{default:e.withCtx(()=>[...i[14]||(i[14]=[e.createTextVNode("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),i[16]||(i[16]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.text,"onUpdate:modelValue":i[3]||(i[3]=m=>n.data.data.text=m),name:"QuoteText_editor_text"},null,8,["modelValue"]),i[17]||(i[17]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.desc,"onUpdate:modelValue":i[4]||(i[4]=m=>n.data.data.desc=m),name:"QuoteText_editor_desc"},null,8,["modelValue"])])]),_:1},8,["visible"])}}}),xV=H(wV,[["__scopeId","data-v-1e2a389e"]]),kV={key:0,class:"quote-text__line"},NV=["innerHTML"],_V=["innerHTML"],CV=e.defineComponent({name:"QuoteText",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"QuoteText",data:{width:"",bgColor:"",hasLine:!0,text:"浙江桐乡特色高中将于今年9月成立!",desc:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。"}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v,w,V,h,g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"quote-text",onMouseenter:r[2]||(r[2]=y=>i.value=!0),onMouseleave:r[3]||(r[3]=y=>i.value=!1)},[e.createElementVNode("div",{class:"quote-text__container quote-text--normal container-content",style:e.normalizeStyle({background:((p=(f=n.modelValue)==null?void 0:f.data)==null?void 0:p.bgColor)||"transparent"})},[(v=(A=n.modelValue)==null?void 0:A.data)!=null&&v.hasLine?(e.openBlock(),e.createElementBlock("div",kV)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"quote-text__content",innerHTML:(V=(w=n.modelValue)==null?void 0:w.data)==null?void 0:V.text},null,8,NV),e.createElementVNode("div",{class:"quote-text__desc",innerHTML:(g=(h=n.modelValue)==null?void 0:h.data)==null?void 0:g.desc},null,8,_V)],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=y=>i.value=y),onHandleEdit:r[1]||(r[1]=y=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(xV,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=y=>s.value=y),data:n.modelValue},null,8,["show","data"]))],64)}}}),ns=H(CV,[["__scopeId","data-v-b290fdea"]]),EV={class:"setting-content"},TV={class:"setting-header flex items-center"},SV={class:"setting-body"},PV={class:"setting-item"},BV={class:"btn-group"},LV={key:0,class:"drag-handle"},OV={class:"item-action flex items-center"},MV=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"buttons",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=()=>{i.data.data.push({id:B(),title:"查看更多",link:void 0})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("a-button"),V=e.resolveComponent("a-input"),h=e.resolveComponent("icon-plus"),g=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(g,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",EV,[e.createElementVNode("div",TV,[r[9]||(r[9]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(p,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=y=>n.data.width=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:""},{default:e.withCtx(()=>[...r[5]||(r[5]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(f,{value:"small"},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(f,{value:"middle"},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(f,{value:"max"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",SV,[e.createElementVNode("div",PV,[r[11]||(r[11]=e.createElementVNode("p",{class:"item-name"},"链接",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=y=>n.data.data=y),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[2]||(r[2]=y=>l.value=!0),onEnd:r[3]||(r[3]=y=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:y.id},[e.createElementVNode("div",BV,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",LV,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:N=>m(y.id)},null,8,["onClick"])]),e.createVNode(w,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:2},1024),e.createElementVNode("div",OV,[e.createVNode(V,{class:"action-text",modelValue:y.title,"onUpdate:modelValue":N=>y.title=N,placeholder:"文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(V,{modelValue:y.link,"onUpdate:modelValue":N=>y.link=N,placeholder:"链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[4]||(r[4]=y=>u())},[e.createVNode(h),r[10]||(r[10]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))])])])])]),_:1},8,["visible"])}}}),zV=H(MV,[["__scopeId","data-v-143af305"]]),jV={class:"donor-links__row row row-cols-1 row-cols-sm-2 row-cols-lg-3"},$V=["href"],DV={class:"donor-link__text"},UV=["onClick"],RV={class:"donor-link__text"},HV=e.defineComponent({name:"DonorLinks",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var f;if(l.modelValue&&l.modelValue.data)return;const r={id:((f=l.modelValue)==null?void 0:f.id)||B(),type:"DonorLinks",width:"",data:[{id:B(),title:"了解更多",link:"https://www.baidu.com"},{id:B(),title:"了解更多",link:"https://www.baidu.com"}]};o("update:modelValue",r)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=r=>{o("handlePaste",r)},c=r=>{o("handleClick",r)};return a(),(r,f)=>{var p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"donor-links",onMouseenter:f[2]||(f[2]=w=>i.value=!0),onMouseleave:f[3]||(f[3]=w=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["donor-links__container",[(p=n.modelValue)!=null&&p.width?`container-content-${(A=n.modelValue)==null?void 0:A.width}`:"container-content"]])},[e.createElementVNode("div",jV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=n.modelValue)==null?void 0:v.data,w=>(e.openBlock(),e.createElementBlock("div",{key:w.id},[w.link&&w.link.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:w.link,class:"donor-link btn"},[e.createElementVNode("div",DV,e.toDisplayString(w.title),1),f[5]||(f[5]=e.createElementVNode("span",{class:"donor-link__icon"},null,-1))],8,$V)):w.link?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:V=>c(w.link),class:"donor-link btn"},[e.createElementVNode("div",RV,e.toDisplayString(w.title),1),f[6]||(f[6]=e.createElementVNode("span",{class:"donor-link__icon"},null,-1))],8,UV)):e.createCommentVNode("",!0)]))),128))])],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":f[0]||(f[0]=w=>i.value=w),onHandleEdit:f[1]||(f[1]=w=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(zV,{key:0,show:s.value,"onUpdate:show":f[4]||(f[4]=w=>s.value=w),data:n.modelValue},null,8,["show","data"]))],64)}}}),as=H(HV,[["__scopeId","data-v-a64d0f41"]]),WV=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),IV=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),XV=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),qV={class:"setting-content"},FV={class:"setting-header flex items-center"},YV={class:"setting-body"},ZV={class:"setting-item"},GV={class:"btn-group"},JV={key:0,class:"drag-handle"},KV=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"profiles",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=()=>{i.data.data.push({id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("icon-plus"),V=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(V,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",qV,[e.createElementVNode("div",FV,[r[9]||(r[9]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(p,{modelValue:n.data.width,"onUpdate:modelValue":r[0]||(r[0]=h=>n.data.width=h),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:""},{default:e.withCtx(()=>[...r[5]||(r[5]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(f,{value:"small"},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(f,{value:"middle"},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(f,{value:"max"},{default:e.withCtx(()=>[...r[8]||(r[8]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",YV,[e.createElementVNode("div",ZV,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=h=>n.data.data=h),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[2]||(r[2]=h=>l.value=!0),onEnd:r[3]||(r[3]=h=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:h})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:h.id},[e.createElementVNode("div",GV,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",JV,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:g=>m(h.id)},null,8,["onClick"])]),e.createVNode(xa,{data:h,showLogo:!1,canAddParagraph:!0},null,8,["data"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[4]||(r[4]=h=>u())},[e.createVNode(w),r[10]||(r[10]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),QV=H(KV,[["__scopeId","data-v-619f046d"]]),e0={class:"slides-pagination__list"},t0=["onClick"],l0=e.defineComponent({__name:"index",props:{currentIndex:{type:Number,default:()=>0},count:{type:Number,default:()=>0},dark:{type:Boolean,default:()=>!1},hideArrow:{type:Boolean,default:()=>!1},isLoop:{type:Boolean,default:()=>!1}},emits:["updatePage","slidePrev","slideNext"],setup(n,{emit:t}){const l=n,o=t,a=e.computed(()=>l.count<6||l.currentIndex<3?5:l.currentIndex+3),i=e.computed(()=>a.value>l.count?l.count-5:a.value-5),s=(d,u)=>{if(l.isLoop){if(u=="slidePrev")return o("slidePrev",d);if(u=="slideNext")return o("slideNext",d)}else if(d<0||d>=l.count)return;o("updatePage",d)};return(d,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["slides-pagination",[{"slides-pagination__dark":n.dark}]])},[e.createElementVNode("div",e0,[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass(["slides-pagination__arrow__prev",{"slides-pagination__arrow--disable":n.currentIndex===0&&!n.isLoop}]),onClick:u[0]||(u[0]=m=>s(n.currentIndex-1,"slidePrev"))},null,2),[[e.vShow,!n.hideArrow]]),e.createVNode(e.TransitionGroup,{name:"list",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.count,(m,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c>=i.value&&c<a.value?(e.openBlock(),e.createElementBlock("button",{key:m,type:"button",class:e.normalizeClass(["slides-pagination__dot",{"slides-pagination__dot--is-active":c===n.currentIndex}]),onClick:r=>s(c)},null,10,t0)):e.createCommentVNode("",!0)],64))),256))]),_:1}),e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass(["slides-pagination__arrow__next",{"slides-pagination__arrow--disable":n.currentIndex===n.count-1&&!n.isLoop}]),onClick:u[1]||(u[1]=m=>s(n.currentIndex+1,"slideNext"))},null,2),[[e.vShow,!n.hideArrow]])])],2))}}),is=H(l0,[["__scopeId","data-v-8d634011"]]),o0={class:"slide-content"},n0={class:"card-profile"},a0={class:"profile__head"},i0={class:"profile__img img-fit --show-profile"},s0=["src","alt"],r0={class:"profile__body text-center --show-profile"},d0={class:"profile__title tx-subtitle mt-3 mt-md-4"},c0={class:"profile__name tx-h6 mt-md-1"},u0={class:"mt-10 mt-md-12"},m0={key:1},A0={class:"row row-cols-1 row-cols-md-3 row-cols-lg-4 justify-content-center"},p0=["onClick"],f0={class:"card-profile"},v0={class:"profile__head"},h0={class:"profile__img img-fit --show-profile"},V0=["src","alt"],g0={class:"profile__body text-center --show-profile"},y0={class:"profile__title tx-subtitle mt-3 mt-md-4"},b0={class:"profile__name tx-h6 mt-md-1"},w0=e.defineComponent({name:"CardCarousel",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=e.computed(()=>{var L,O,M,$;if(typeof window>"u")return!0;const S=window.innerWidth;return((O=(L=l.modelValue)==null?void 0:L.data)==null?void 0:O.length)>3&&S>=1024||(($=(M=l.modelValue)==null?void 0:M.data)==null?void 0:$.length)>2&&S>=768&&S<1024||S<768}),i=e.ref(!0),s=[yt.Navigation,yt.Pagination,yt.Autoplay],d={768:{slidesPerView:3,slidesPerGroup:1,spaceBetween:16,shortSwipes:!1},1024:{slidesPerView:4,slidesPerGroup:1,spaceBetween:16}},u=e.ref(0),m=e.ref(!1),c=e.ref(),r=S=>{u.value=S.realIndex??0},f=S=>{var L,O;_.value=(O=(L=l.modelValue)==null?void 0:L.data)==null?void 0:O[S],E.value=!0},p=S=>{c.value=S,m.value||e.nextTick(()=>{setTimeout(()=>{A()},100)})},A=()=>{i.value=!1,e.nextTick(()=>{i.value=!0,e.nextTick(()=>{c.value&&(c.value.update(),m.value=!0)})})},v=e.computed(()=>{var S,L;return(L=(S=l.modelValue)==null?void 0:S.data)==null?void 0:L.length}),w=S=>{c.value&&c.value.slideToLoop(S,600)},V=()=>{c.value&&c.value.slidePrev(600)},h=()=>{c.value&&c.value.slideNext(600)},g=()=>{var L,O;if(l.modelValue&&((L=l.modelValue)!=null&&L.data))return;const S={id:((O=l.modelValue)==null?void 0:O.id)||B(),type:"CardCarousel",width:"",data:[{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]}]};o("update:modelValue",S)},y=e.ref(!1),N=e.ref(!1),C=()=>{var S;o("handleDelete",(S=l.modelValue)==null?void 0:S.id)},b=()=>{o("handleCopy",l.modelValue)},x=S=>{o("handlePaste",S)},E=e.ref(!1),_=e.ref({}),T=S=>{_.value=S,E.value=!0};return e.onMounted(()=>{A()}),g(),(S,L)=>{var M,$,D;const O=e.resolveComponent("client-only");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"card-carousel",onMouseenter:L[2]||(L[2]=R=>y.value=!0),onMouseleave:L[3]||(L[3]=R=>y.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["card-carousel__wrapper",[(M=n.modelValue)!=null&&M.width?`container-content-${($=n.modelValue)==null?void 0:$.width}`:"container-content"]])},[a.value&&i.value?(e.openBlock(),e.createBlock(O,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(ml.Swiper),{ref:"swiperRef",modules:s,"centered-slides":!1,speed:600,"slides-per-view":1,"slides-per-group":1,"space-between":16,"short-swipes":!0,"long-swipes-ratio":.3,loop:!0,"auto-height":!0,breakpoints:d,class:"swiper card-carousel__swiper",onSlideChange:r,onSwiper:p},{default:e.withCtx(()=>{var R;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((R=n.modelValue)==null?void 0:R.data,(j,k)=>(e.openBlock(),e.createBlock(e.unref(ml.SwiperSlide),{key:j.id,class:"swiper-slide",onClick:z=>f(k)},{default:e.withCtx(()=>[e.createElementVNode("div",o0,[e.createElementVNode("div",n0,[e.createElementVNode("div",a0,[e.createElementVNode("div",i0,[e.createElementVNode("img",{src:j.imgSrc,alt:j.alt},null,8,s0),L[6]||(L[6]=e.createElementVNode("div",{class:"profile__img__mask"},[e.createElementVNode("div",{class:"profile__img__mask__btn"}," 简介 ")],-1))])]),e.createElementVNode("div",r0,[e.createElementVNode("div",d0,e.toDisplayString(j.title),1),e.createElementVNode("h6",c0,e.toDisplayString(j.name),1)])])])]),_:2},1032,["onClick"]))),128))]}),_:1},512),e.createElementVNode("div",u0,[e.createVNode(is,{currentIndex:u.value,count:v.value,onUpdatePage:w,onSlidePrev:V,onSlideNext:h,dark:"",isLoop:!0},null,8,["currentIndex","count"])])]),_:1})):(e.openBlock(),e.createElementBlock("div",m0,[e.createElementVNode("div",A0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((D=n.modelValue)==null?void 0:D.data,R=>(e.openBlock(),e.createElementBlock("div",{class:"card-content",key:R.id,onClick:j=>T(R)},[e.createElementVNode("div",f0,[e.createElementVNode("div",v0,[e.createElementVNode("div",h0,[e.createElementVNode("img",{src:R.imgSrc,alt:R.alt},null,8,V0),L[7]||(L[7]=e.createElementVNode("div",{class:"profile__img__mask"},[e.createElementVNode("div",{class:"profile__img__mask__btn"}," 简介 ")],-1))])]),e.createElementVNode("div",g0,[e.createElementVNode("div",y0,e.toDisplayString(R.title),1),e.createElementVNode("h6",b0,e.toDisplayString(R.name),1)])])],8,p0))),128))])]))],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:y.value,"onUpdate:show":L[0]||(L[0]=R=>y.value=R),onHandleEdit:L[1]||(L[1]=R=>N.value=!0),onHandleDelete:C,onHandleCopy:b,onHandlePaste:x},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(QV,{key:0,show:N.value,"onUpdate:show":L[4]||(L[4]=R=>N.value=R),data:n.modelValue},null,8,["show","data"])),e.createVNode(ka,{show:E.value,"onUpdate:show":L[5]||(L[5]=R=>E.value=R),data:_.value},null,8,["show","data"])],64)}}}),ss=H(w0,[["__scopeId","data-v-f4e9bae8"]]),x0={class:"setting-content"},k0={class:"setting-header flex items-center"},N0={class:"setting-body"},_0={class:"setting-item"},C0={class:"btn-group"},E0={key:0,class:"drag-handle"},T0=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"profiles",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=()=>{i.data.data.push({id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]})},m=c=>{i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-input"),p=e.resolveComponent("icon-drag-arrow"),A=e.resolveComponent("icon-delete"),v=e.resolveComponent("icon-plus"),w=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(w,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",x0,[e.createElementVNode("div",k0,[r[5]||(r[5]=e.createElementVNode("span",{class:"header-title"},"行数",-1)),e.createVNode(f,{modelValue:n.data.rows,"onUpdate:modelValue":r[0]||(r[0]=V=>n.data.rows=V),placeholder:"输入几行","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",N0,[e.createElementVNode("div",_0,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=V=>n.data.data=V),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[2]||(r[2]=V=>l.value=!0),onEnd:r[3]||(r[3]=V=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:V})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:V.id},[e.createElementVNode("div",C0,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",E0,[e.createVNode(p,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(A,{class:"btn-delete",onClick:h=>m(V.id)},null,8,["onClick"])]),e.createVNode(xa,{data:V,showLogo:!1,canAddParagraph:!0},null,8,["data"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[4]||(r[4]=V=>u())},[e.createVNode(v),r[6]||(r[6]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),S0=H(T0,[["__scopeId","data-v-f95b497b"]]),P0={class:"card-carousel__wrapper container-content"},B0={class:"row row-cols-2 row-cols-md-3 row-cols-lg-4"},L0=["onClick"],O0={class:"card-profile"},M0={class:"profile__head"},z0={class:"profile__img img-fit --show-profile"},j0=["src","alt"],$0={class:"profile__body text-center --show-profile"},D0={class:"profile__title tx-subtitle mt-3 mt-md-4"},U0={class:"profile__name tx-h6 mt-md-1"},R0={class:"mt-10 mt-md-12"},H0=e.defineComponent({name:"CardCarouselMultiRow",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=[yt.Navigation,yt.Pagination,yt.Autoplay],i={768:{slidesPerView:"auto",slidesPerGroup:1,slidesPerGroupAuto:!0,spaceBetween:16},1024:{slidesPerView:1,slidesPerGroup:1,spaceBetween:16}},s=e.ref(0),d=e.ref([]),u=e.ref(null),m=E=>{u.value=E},c=E=>{s.value=E.realIndex},r=e.computed(()=>{var E;return((E=l.modelValue)==null?void 0:E.row)??2}),f=e.computed(()=>{const E=window.innerWidth;return(E>=768&&E>=1024?4:3)*r.value}),p=()=>{var _,T,S;console.log("listChuncked",(_=l.modelValue)==null?void 0:_.data);const E=(S=(T=l.modelValue)==null?void 0:T.data)==null?void 0:S.reduce((L,O,M)=>{const $=Math.floor(M/f.value);return L[$]||(L[$]=[]),L[$].push(O),L},[]);console.log("listChunck",E),d.value=E},A=e.ref(null),v=E=>{u.value&&u.value.slideToLoop(E,600)},w=()=>{var _;if(l.modelValue&&l.modelValue.data)return;const E={id:((_=l.modelValue)==null?void 0:_.id)||B(),type:"CardCarouselMultiRow",rows:2,data:[{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]},{id:B(),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:B(),type:"BtnList",readOnly:!0,width:"",bgColor:"",data:[{id:B(),type:"white",text:"了解更多",url:"https://www.baidu.com",isExternal:!1},{id:B(),type:"light",text:"了解更多",url:"https://www.baidu.com",isExternal:!1}]},paragraphs:[{id:B(),title:"123",content:"123"}]}]};o("update:modelValue",E)},V=e.ref(!1),h=e.ref(!1),g=()=>{o("handleDelete",l.modelValue.id)},y=()=>{o("handleCopy",l.modelValue)},N=E=>{o("handlePaste",E)},C=e.ref(!1),b=e.ref({}),x=E=>{b.value=E,C.value=!0};return w(),e.nextTick(()=>{p()}),(E,_)=>{var S,L;const T=e.resolveComponent("client-only");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"card-carousel-multi-row",ref:"parent",onMouseenter:_[2]||(_[2]=O=>V.value=!0),onMouseleave:_[3]||(_[3]=O=>V.value=!1)},[e.createElementVNode("div",P0,[(L=(S=n.modelValue)==null?void 0:S.data)!=null&&L.length?(e.openBlock(),e.createBlock(T,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(ml.Swiper),{ref_key:"swiperRef",ref:A,modules:a,"centered-slides":!1,speed:600,"slides-per-view":1,"slides-per-group":1,"space-between":16,loop:!0,breakpoints:i,class:"swiper card-carousel__swiper",onSwiper:m,onSlideChange:c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(O,M)=>(e.openBlock(),e.createBlock(e.unref(ml.SwiperSlide),{key:M,class:"swiper-slide"},{default:e.withCtx(()=>[e.createElementVNode("div",B0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O,($,D)=>(e.openBlock(),e.createElementBlock("div",{class:"slide-content col",key:"item-"+D,onClick:R=>x($)},[e.createElementVNode("div",O0,[e.createElementVNode("div",M0,[e.createElementVNode("div",z0,[e.createElementVNode("img",{src:$.imgSrc,alt:$.alt},null,8,j0),_[6]||(_[6]=e.createElementVNode("div",{class:"profile__img__mask"},[e.createElementVNode("div",{class:"profile__img__mask__btn"},"简介")],-1))])]),e.createElementVNode("div",$0,[e.createElementVNode("div",D0,e.toDisplayString($.title),1),e.createElementVNode("h6",U0,e.toDisplayString($.name),1)])])],8,L0))),128))])]),_:2},1024))),128))]),_:1},512),e.createElementVNode("div",R0,[e.createVNode(is,{currentIndex:s.value,count:d.value.length,onUpdatePage:v,dark:""},null,8,["currentIndex","count"])])]),_:1})):e.createCommentVNode("",!0)]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:V.value,"onUpdate:show":_[0]||(_[0]=O=>V.value=O),onHandleEdit:_[1]||(_[1]=O=>h.value=!0),onHandleDelete:g,onHandleCopy:y,onHandlePaste:N},null,8,["show"]))],544),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(S0,{key:0,show:h.value,"onUpdate:show":_[4]||(_[4]=O=>h.value=O),data:n.modelValue},null,8,["show","data"])),e.createVNode(ka,{show:C.value,"onUpdate:show":_[5]||(_[5]=O=>C.value=O),data:b.value},null,8,["show","data"])],64)}}}),rs=H(H0,[["__scopeId","data-v-9a368a4a"]]),W0={class:"setting-content"},I0=["src"],X0={class:"item-uplaod flex items-center"},q0=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(d,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>{var u,m;return[e.createElementVNode("div",W0,[i[5]||(i[5]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=c=>n.data.data.title=c),name:"BannerQuote_editor_title"},null,8,["modelValue"]),i[6]||(i[6]=e.createElementVNode("p",{class:"item-title"},"标签",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.label,"onUpdate:modelValue":i[1]||(i[1]=c=>n.data.data.label=c),name:"BannerQuote_editor_label"},null,8,["modelValue"]),i[7]||(i[7]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:(m=(u=n.data)==null?void 0:u.data)==null?void 0:m.imgSrc},null,8,I0),e.createElementVNode("div",X0,[e.createVNode(s,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[2]||(i[2]=c=>n.data.data.imgSrc=c),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.data.imgSrc,"onUpdate:modelValue":i[3]||(i[3]=c=>n.data.data.imgSrc=c),name:"BannerQuote","button-class":"fit-content"},null,8,["modelValue"])]),e.createVNode(s,{class:"mt-2",modelValue:n.data.data.alt,"onUpdate:modelValue":i[4]||(i[4]=c=>n.data.data.alt=c),placeholder:"图片alt","allow-clear":""},null,8,["modelValue"])])]}),_:1},8,["visible"])}}}),F0=H(q0,[["__scopeId","data-v-a526561e"]]),Y0={class:"banner-quote__wrapper container-content-max"},Z0={class:"banner-quote__left"},G0=["innerHTML"],J0=["innerHTML"],K0={class:"banner-quote__right"},Q0={class:"banner-quote__right__image"},eg=["src","alt"],tg=e.defineComponent({name:"BannerQuote",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"BannerQuote",data:{title:"<p>About YWIES</p>",label:"<p>About YWIES</p>",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:""}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v,w,V,h,g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"banner-quote is-zh",onMouseenter:r[2]||(r[2]=y=>i.value=!0),onMouseleave:r[3]||(r[3]=y=>i.value=!1)},[e.createElementVNode("div",Y0,[e.createElementVNode("div",Z0,[r[5]||(r[5]=e.createElementVNode("div",{class:"quote quote-1"},null,-1)),r[6]||(r[6]=e.createElementVNode("div",{class:"quote quote-2"},null,-1)),e.createElementVNode("div",{class:"banner-quote__title",innerHTML:(p=(f=n.modelValue)==null?void 0:f.data)==null?void 0:p.title},null,8,G0),e.createElementVNode("div",{class:"banner-quote__label",innerHTML:(v=(A=n.modelValue)==null?void 0:A.data)==null?void 0:v.label},null,8,J0)]),r[7]||(r[7]=e.createElementVNode("div",{class:"banner-quote__center"},null,-1)),e.createElementVNode("div",K0,[e.createElementVNode("div",Q0,[e.createElementVNode("img",{src:(V=(w=n.modelValue)==null?void 0:w.data)==null?void 0:V.imgSrc,alt:(g=(h=n.modelValue)==null?void 0:h.data)==null?void 0:g.alt},null,8,eg)])])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=y=>i.value=y),onHandleEdit:r[1]||(r[1]=y=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F0,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=y=>s.value=y),data:n.modelValue},null,8,["show","data"]))],64)}}}),ds=H(tg,[["__scopeId","data-v-c027196c"]]),lg={class:"setting-content"},og={class:"setting-header flex items-center"},ng={class:"setting-header flex items-center"},ag={class:"setting-body"},ig={class:"btn-group"},sg={key:0,class:"drag-handle"},rg={class:"item-action flex items-center"},dg=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),a=m=>m&&m.length>1,i=t,s=()=>{i("update:show",!1)},d=m=>{m.push({id:B(),text:"查看更多",url:void 0,isExternal:!1})},u=(m,c)=>{m.splice(m.findIndex(r=>r.id===c),1)};return(m,c)=>{const r=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("a-input"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("a-link"),V=e.resolveComponent("a-checkbox"),h=e.resolveComponent("icon-plus"),g=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(g,{width:500,visible:n.show,footer:!1,onCancel:s,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",lg,[e.createElementVNode("div",og,[c[12]||(c[12]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(f,{modelValue:n.data.width,"onUpdate:modelValue":c[0]||(c[0]=y=>n.data.width=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(r,{value:"default"},{default:e.withCtx(()=>[...c[8]||(c[8]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(r,{value:"small"},{default:e.withCtx(()=>[...c[9]||(c[9]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(r,{value:"middle"},{default:e.withCtx(()=>[...c[10]||(c[10]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(r,{value:"max"},{default:e.withCtx(()=>[...c[11]||(c[11]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",ng,[c[15]||(c[15]=e.createElementVNode("span",{class:"header-title"},"组件类型",-1)),e.createVNode(f,{modelValue:n.data.textType,"onUpdate:modelValue":c[1]||(c[1]=y=>n.data.textType=y),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(r,{value:"default"},{default:e.withCtx(()=>[...c[13]||(c[13]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(r,{value:"center"},{default:e.withCtx(()=>[...c[14]||(c[14]=[e.createTextVNode("居中",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",ag,[c[18]||(c[18]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(p,{modelValue:n.data.data.title,"onUpdate:modelValue":c[2]||(c[2]=y=>n.data.data.title=y),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),c[19]||(c[19]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.description,"onUpdate:modelValue":c[3]||(c[3]=y=>n.data.data.description=y),name:`ArticleItem_editor_${n.data.id}`},null,8,["modelValue","name"]),c[20]||(c[20]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data.linkList,"onUpdate:modelValue":c[4]||(c[4]=y=>n.data.data.linkList=y),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data.linkList),onStart:c[5]||(c[5]=y=>l.value=!0),onEnd:c[6]||(c[6]=y=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data.linkList)}]),key:y.id},[e.createElementVNode("div",ig,[a(n.data.data.linkList)?(e.openBlock(),e.createElementBlock("div",sg,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:N=>u(n.data.data.linkList,y.id)},null,8,["onClick"])]),e.createVNode(w,{href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.text),1)]),_:2},1024),e.createElementVNode("div",rg,[e.createVNode(p,{class:"action-text",modelValue:y.text,"onUpdate:modelValue":N=>y.text=N,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(p,{modelValue:y.url,"onUpdate:modelValue":N=>y.url=N,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),e.createVNode(V,{"model-value":y.isExternal},{default:e.withCtx(()=>[...c[16]||(c[16]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:c[7]||(c[7]=y=>d(n.data.data.linkList))},[e.createVNode(h),c[17]||(c[17]=e.createElementVNode("span",{class:"btn-text"},"添加链接",-1))])])])]),_:1},8,["visible"])}}}),cg=H(dg,[["__scopeId","data-v-e992b7b2"]]),ug=["innerHTML"],mg={class:"circle-link"},Ag=["href"],pg=["onClick"],fg=e.defineComponent({name:"ArticleItem",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var f;if(l.modelValue&&l.modelValue.data)return;const r={id:((f=l.modelValue)==null?void 0:f.id)||B(),type:"ArticleItem",width:"",textType:"default",data:{title:"About YWIES",description:"<p>家佛啊放假哦啊房间哦啊激发对哦金佛登记佛啊激发哦飞机奥啊金佛登记佛啊激发哦飞机奥</p>",linkList:[{id:B(),type:"link",text:"link",url:"https://www.baidu.com",isExternal:!1}]}};o("update:modelValue",r)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=r=>{o("handlePaste",r)},c=r=>{o("handleClick",r)};return a(),(r,f)=>{var p,A,v,w,V,h,g,y,N,C,b;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"article-item",onMouseenter:f[2]||(f[2]=x=>i.value=!0),onMouseleave:f[3]||(f[3]=x=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["article-item__container",[(p=n.modelValue)!=null&&p.width?`container-content-${(A=n.modelValue)==null?void 0:A.width}`:"container-content"]])},[e.createElementVNode("h2",{class:e.normalizeClass(["article-item__title",[((v=n.modelValue)==null?void 0:v.textType)==="center"?"text-center":""]])},e.toDisplayString((V=(w=n.modelValue)==null?void 0:w.data)==null?void 0:V.title),3),e.createElementVNode("div",{class:e.normalizeClass(["article-item__content mt-4",[((h=n.modelValue)==null?void 0:h.textType)==="center"?"text-center":""]]),innerHTML:(y=(g=n.modelValue)==null?void 0:g.data)==null?void 0:y.description},null,10,ug),e.createElementVNode("div",{class:e.normalizeClass(["article-item__link mt-4",[((N=n.modelValue)==null?void 0:N.textType)==="center"?"flex-center":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((b=(C=n.modelValue)==null?void 0:C.data)==null?void 0:b.linkList,x=>(e.openBlock(),e.createElementBlock("div",{class:"article-item__link__col",key:x.id},[e.createElementVNode("div",mg,[x.url&&x.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:x.url,class:"nuxt-link-active"},[e.createElementVNode("div",null,e.toDisplayString(x.text),1),f[5]||(f[5]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,Ag)):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:E=>c(x.url),class:"nuxt-link-active"},[e.createElementVNode("div",null,e.toDisplayString(x.text),1),f[6]||(f[6]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,pg))])]))),128))],2)],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":f[0]||(f[0]=x=>i.value=x),onHandleEdit:f[1]||(f[1]=x=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(cg,{key:0,show:s.value,"onUpdate:show":f[4]||(f[4]=x=>s.value=x),data:n.modelValue},null,8,["show","data"]))],64)}}}),cs=H(fg,[["__scopeId","data-v-35f55218"]]),vg={class:"setting-content"},hg={class:"setting-body"},Vg=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(s,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",vg,[e.createElementVNode("div",hg,[i[3]||(i[3]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.title,"onUpdate:modelValue":i[0]||(i[0]=d=>n.data.data.title=d),name:"RibbonBlock_editor_title"},null,8,["modelValue"]),i[4]||(i[4]=e.createElementVNode("p",{class:"item-title"},"副标题",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.subTitle,"onUpdate:modelValue":i[1]||(i[1]=d=>n.data.data.subTitle=d),name:"RibbonBlock_editor_subTitle"},null,8,["modelValue"]),i[5]||(i[5]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.data.description,"onUpdate:modelValue":i[2]||(i[2]=d=>n.data.data.description=d),name:"RibbonBlock_editor_description"},null,8,["modelValue"])])])]),_:1},8,["visible"])}}}),gg=H(Vg,[["__scopeId","data-v-73288883"]]),yg={key:0,class:"ribbon-block__bg"},bg=["innerHTML"],wg=["innerHTML"],xg=["innerHTML"],kg=e.defineComponent({name:"RibbonBlock",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"RibbonBlock",data:{title:"<p>家乐福放假啊飞机阿飞</p>",subTitle:"<p>飞机阿飞垃圾<strong>费垃圾费啦</strong></p>",description:"<p>发了疯<strong>哈符号佛啊复印件发就</strong>发拉法基垃<em>圾发啦激发发货单</em>号佛佛啊发货哦地哦ID和放大后f爱</p>"}};o("update:modelValue",c)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=c=>{o("handlePaste",c)};return a(),(c,r)=>{var f,p,A,v,w,V,h,g,y,N,C,b,x,E,_,T,S,L;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"ribbon-block",onMouseenter:r[2]||(r[2]=O=>i.value=!0),onMouseleave:r[3]||(r[3]=O=>i.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["ribbon-block__wrapper",[(p=(f=n.modelValue)==null?void 0:f.data)!=null&&p.title||(v=(A=n.modelValue)==null?void 0:A.data)!=null&&v.subTitle||(V=(w=n.modelValue)==null?void 0:w.data)!=null&&V.description?"has-text":""]])},[(g=(h=n.modelValue)==null?void 0:h.data)!=null&&g.title||(N=(y=n.modelValue)==null?void 0:y.data)!=null&&N.subTitle||(b=(C=n.modelValue)==null?void 0:C.data)!=null&&b.description?(e.openBlock(),e.createElementBlock("div",yg,[e.createElementVNode("div",{class:"ribbon-block__title",innerHTML:(E=(x=n.modelValue)==null?void 0:x.data)==null?void 0:E.title},null,8,bg),e.createElementVNode("div",{class:"ribbon-block__text",innerHTML:(T=(_=n.modelValue)==null?void 0:_.data)==null?void 0:T.subTitle},null,8,wg),e.createElementVNode("div",{class:"ribbon-block__description",innerHTML:(L=(S=n.modelValue)==null?void 0:S.data)==null?void 0:L.description},null,8,xg),r[5]||(r[5]=e.createElementVNode("div",{class:"ribbon-block__space"},null,-1))])):e.createCommentVNode("",!0),r[6]||(r[6]=e.createElementVNode("div",{class:"ribbon-block__img"},null,-1))],2),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":r[0]||(r[0]=O=>i.value=O),onHandleEdit:r[1]||(r[1]=O=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(gg,{key:0,show:s.value,"onUpdate:show":r[4]||(r[4]=O=>s.value=O),data:n.modelValue},null,8,["show","data"]))],64)}}}),us=H(kg,[["__scopeId","data-v-6a95b6b8"]]),Ng=["id"],_g={key:0,class:"caption__display"},Cg=["data-bs-target","aria-controls"],Eg={key:0,class:"gallery__thumbnail"},Tg=["onClick"],Sg=["src"],Pg=e.defineComponent({name:"TimelineStoryGallery",__name:"TimelineStoryGallery",props:{gallery:{}},emits:["openCaption"],setup(n,{emit:t}){const l=t,o=e.ref(0),a=e.ref(0),i=e.ref(0),s=e.ref(0),d=e.ref(!1),u=e.ref(Date.now()),m=e.ref(null),c=e.ref(null),r=e.computed(()=>a.value>0),f=e.computed(()=>i.value-a.value>s.value);e.watch(o,()=>{d.value=!1});const p=()=>{const V=c.value;V&&(a.value=V.scrollLeft,i.value=V.scrollWidth);const h=m.value;h&&(s.value=h.getBoundingClientRect().width)},A=V=>{const h=c.value;h&&(V==="next"?h.scrollLeft+=9999:h.scrollLeft-=9999)},v=()=>{p()},w=V=>{l("openCaption",{text:V.text||"",image:V.url})};return e.onMounted(()=>{e.nextTick(()=>{setTimeout(v,300)})}),(V,h)=>{const g=e.resolveComponent("a-image");return e.openBlock(),e.createElementBlock("div",{class:"timeline-story-gallery",ref_key:"wrapper",ref:m},[e.createElementVNode("div",{class:e.normalizeClass(["gallery__large",{"gallery__large--mask":d.value}])},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>{var y,N;return[e.createVNode(g,{src:(N=(y=n.gallery)==null?void 0:y[o.value])==null?void 0:N.imgSrc,preview:!0,fit:"contain",width:"100%"},null,8,["src"])]}),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>{var y,N;return[(N=(y=n.gallery)==null?void 0:y[o.value])!=null&&N.text?(e.openBlock(),e.createElementBlock("div",{class:"gallery__large__caption",key:o.value},[e.createElementVNode("div",{class:"caption__collapse collapse",id:`collapse-${u.value}`},e.toDisplayString(n.gallery[o.value].text),9,Ng),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_g,e.toDisplayString(n.gallery[o.value].text),1)),e.createElementVNode("button",{class:"caption__btn caption__btn--desktop",type:"button","data-bs-toggle":"collapse","data-bs-target":`#collapse-${u.value}`,"aria-expanded":"false","aria-controls":`collapse-${u.value}`,onClick:h[0]||(h[0]=C=>d.value=!d.value)},null,8,Cg),e.createElementVNode("button",{class:"caption__btn d-md-none",type:"button",onClick:h[1]||(h[1]=C=>w(n.gallery[o.value]))})])):e.createCommentVNode("",!0)]}),_:1})],2),n.gallery&&n.gallery.length>1?(e.openBlock(),e.createElementBlock("div",Eg,[e.createElementVNode("ul",{class:"thumbnail__list",ref_key:"list",ref:c,onScroll:v},[e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:h[2]||(h[2]=y=>A("prev"))},null,512),[[e.vShow,r.value]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.gallery,(y,N)=>(e.openBlock(),e.createElementBlock("li",{class:"thumbnail__item",key:y.id,onClick:C=>o.value=N},[e.createElementVNode("img",{src:y.imgSrc},null,8,Sg)],8,Tg))),128)),e.withDirectives(e.createElementVNode("div",{class:"thumbnail__nav__next",onClick:h[3]||(h[3]=y=>A("next"))},null,512),[[e.vShow,f.value]])],544)])):e.createCommentVNode("",!0)],512)}}}),Bg=H(Pg,[["__scopeId","data-v-d53bc212"]]),Lg=["onClick"],Og=e.defineComponent({name:"TimelineStoryStickybar",__name:"TimelineStoryStickybar",props:{list:{},currentIdx:{}},emits:["updateCurrentIdx"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(0),i=e.ref(0),s=e.ref(0),d=e.ref(0),u=e.ref(!1),m=e.ref(window.innerWidth),c=e.ref(null),r=e.ref(null),f=e.computed(()=>a.value>40),p=e.computed(()=>i.value-40>m.value);e.watch(()=>m.value,()=>{v(),w()}),e.watch(()=>l.currentIdx,()=>{e.nextTick(N)});const A=()=>{m.value=window.innerWidth},v=()=>{u.value=!0,y(),h()},w=()=>{const C=r.value;C&&(d.value=(m.value-C.getBoundingClientRect().width)/2)},V=C=>{o("updateCurrentIdx",C)},h=()=>{const C=r.value;C&&(a.value=C.scrollLeft);const b=C==null?void 0:C.querySelectorAll(".stickybar__btn");if(b&&b.length>0){const x=b[b.length-1];i.value=x.getBoundingClientRect().right}},g=C=>{const b=r.value;b&&(C==="next"?b.scrollLeft+=100:b.scrollLeft-=100)},y=()=>{var x;const C=(x=r.value)==null?void 0:x.querySelectorAll(".stickybar__btn");if(!C)return;const b=C[Number(l.currentIdx)];b&&(s.value=b.getBoundingClientRect().right)},N=()=>{var _;const C=(_=r.value)==null?void 0:_.querySelectorAll(".stickybar__btn");if(!C)return;const b=C[Number(l.currentIdx)];if(!b)return;const x=b.clientWidth/2,E=m.value/2;u.value=!1,e.nextTick(()=>{const T=r.value;T&&(T.scrollLeft-=E-b.getBoundingClientRect().right+x,setTimeout(v,100))})};return e.onMounted(()=>{window.addEventListener("resize",A),A(),e.nextTick(()=>{setTimeout(v,300),w()})}),(C,b)=>(e.openBlock(),e.createElementBlock("div",{class:"timeline-story-stickybar",ref_key:"wrapper",ref:c},[e.createElementVNode("ul",{class:"stickybar__list",ref_key:"listRef",ref:r,onScroll:v},[e.withDirectives(e.createElementVNode("div",{class:"stickybar__nav__prev",onClick:b[0]||(b[0]=x=>g("prev"))},null,512),[[e.vShow,f.value]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,(x,E)=>(e.openBlock(),e.createElementBlock("li",{key:x.id,class:e.normalizeClass(["stickybar__item",[{"is-active":n.currentIdx>=Number(E)}]])},[e.createElementVNode("div",{class:e.normalizeClass(["stickybar__btn",[{"is-active":n.currentIdx==Number(E)}]]),onClick:_=>V(Number(E))},e.toDisplayString(x.title),11,Lg),e.createElementVNode("span",{class:e.normalizeClass(["stickybar__btn__line",[{"is-active":n.currentIdx>Number(E)}]])},null,2)],2))),128)),e.withDirectives(e.createElementVNode("div",{class:"stickybar__nav__next",onClick:b[1]||(b[1]=x=>g("next"))},null,512),[[e.vShow,p.value]])],544),e.createElementVNode("div",{class:"stickybar__line",style:e.normalizeStyle({width:`${s.value-12}px`,transition:u.value?"width .25s linear":""})},null,4)],512))}}),Mg=H(Og,[["__scopeId","data-v-b22d359b"]]),zg={class:"timeline-story-caption"},jg={class:"caption__content"},$g={class:"caption__body"},Dg={class:"caption__text"},Ug={class:"caption__img"},Rg=["src"],Hg=e.defineComponent({name:"TimelineStoryCaption",__name:"TimelineStoryCaption",props:{text:{},image:{}},emits:["closeCaption"],setup(n,{emit:t}){const l=t,o=()=>{l("closeCaption")};return(a,i)=>(e.openBlock(),e.createElementBlock("div",zg,[e.createElementVNode("div",jg,[e.createElementVNode("div",{class:"caption__header"},[e.createElementVNode("button",{type:"button",class:"caption__header__btn",onClick:o})]),e.createElementVNode("div",$g,[e.createElementVNode("div",Dg,e.toDisplayString(n.text),1),e.createElementVNode("div",Ug,[e.createElementVNode("img",{src:n.image,alt:""},null,8,Rg)])])])]))}}),Wg=H(Hg,[["__scopeId","data-v-178eed82"]]),Ig=["onClick"],Xg=e.defineComponent({name:"TimelineStoryScrollspy",__name:"TimelineStoryScrollspy",props:{list:{},activeIdx:{}},emits:["scrollToIdx"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(0),i=e.ref(0),s=e.ref(0),d=e.ref(null),u=e.computed(()=>a.value>0),m=e.computed(()=>i.value-a.value>s.value);e.watch(()=>l.activeIdx,()=>{r()});const c=A=>{o("scrollToIdx",A)},r=()=>{const A=d.value;if(!A)return;const w=A.querySelectorAll(".timeline-story-scrollspy__item")[l.activeIdx];if(!w)return;const V=w.getBoundingClientRect().top,h=A.getBoundingClientRect().top,g=A.clientHeight/2;A.scrollTop-=g-V+h},f=()=>{const A=d.value;A&&(a.value=A.scrollTop,i.value=A.scrollHeight,s.value=A.clientHeight)},p=A=>{const v=d.value;v&&(A==="next"?v.scrollTop+=9999:v.scrollTop-=9999)};return(A,v)=>(e.openBlock(),e.createElementBlock("div",{class:"timeline-story-scrollspy",ref_key:"parent",ref:d,onScroll:f},[e.withDirectives(e.createElementVNode("div",{class:"scrollspy__nav__prev",onClick:v[0]||(v[0]=w=>p("prev"))},null,512),[[e.vShow,u.value]]),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,(w,V)=>(e.openBlock(),e.createElementBlock("li",{key:w.id,class:e.normalizeClass(["timeline-story-scrollspy__item",{"is-active":n.activeIdx==V}]),onClick:h=>c(V)},e.toDisplayString(w.title),11,Ig))),128))]),e.withDirectives(e.createElementVNode("div",{class:"scrollspy__nav__next",onClick:v[1]||(v[1]=w=>p("next"))},null,512),[[e.vShow,m.value]])],544))}}),qg=H(Xg,[["__scopeId","data-v-cee1b9f5"]]),Fg={class:"setting-content"},Yg={class:"setting-body"},Zg={class:"btn-group"},Gg={key:0,class:"drag-handle"},Jg={class:"section-item gallery-item"},Kg={class:"btn-group"},Qg={key:0,class:"drag-handle"},e2=["src"],t2={class:"item-uplaod flex items-center"},l2=["onClick"],o2=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"sections",disabled:!1,ghostClass:"ghost"})),i=p=>p&&p.length>1,s=n,d=t,u=()=>{d("update:show",!1)},m=()=>{s.data.data.push({id:B(),title:"标题",desc:"",gallery:[]})},c=p=>{s.data.data=s.data.data.filter(A=>A.id!==p)},r=p=>{p.push({id:B(),imgSrc:""})},f=(p,A)=>{p.splice(p.findIndex(v=>v.id===A),1)};return(p,A)=>{const v=e.resolveComponent("icon-drag-arrow"),w=e.resolveComponent("icon-delete"),V=e.resolveComponent("a-input"),h=e.resolveComponent("icon-plus"),g=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(g,{width:500,visible:n.show,footer:!1,onCancel:u,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Fg,[e.createElementVNode("div",Yg,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":A[2]||(A[2]=y=>n.data.data=y),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!i(n.data.data),onStart:A[3]||(A[3]=y=>l.value=!0),onEnd:A[4]||(A[4]=y=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-section draggable-item",{"sortable-disabled":!i(n.data.data)}]),key:y.id},[e.createElementVNode("div",Zg,[i(n.data.data)?(e.openBlock(),e.createElementBlock("div",Gg,[e.createVNode(v,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(w,{class:"btn-delete",onClick:N=>c(y.id)},null,8,["onClick"])]),A[8]||(A[8]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(V,{modelValue:y.title,"onUpdate:modelValue":N=>y.title=N,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),A[9]||(A[9]=e.createElementVNode("p",{class:"item-title"},"描述",-1)),e.createVNode(e.unref(qe),{modelValue:y.desc,"onUpdate:modelValue":N=>y.desc=N,name:`TimelineStory_editor_${y.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),A[10]||(A[10]=e.createElementVNode("p",{class:"item-title"},"gallery",-1)),e.createElementVNode("div",Jg,[e.createVNode(e.unref(de),e.mergeProps({modelValue:y.gallery,"onUpdate:modelValue":N=>y.gallery=N,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!i(y.gallery),onStart:A[0]||(A[0]=N=>l.value=!0),onEnd:A[1]||(A[1]=N=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:N})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(y.gallery)}]),key:N.id},[e.createElementVNode("div",Kg,[i(y.gallery)?(e.openBlock(),e.createElementBlock("div",Qg,[e.createVNode(v,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(w,{class:"btn-delete",onClick:C=>f(y.gallery,N.id)},null,8,["onClick"])]),A[6]||(A[6]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:N.imgSrc},null,8,e2),e.createElementVNode("div",t2,[e.createVNode(V,{modelValue:N.imgSrc,"onUpdate:modelValue":C=>N.imgSrc=C,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:N.imgSrc,"onUpdate:modelValue":C=>N.imgSrc=C,name:`TimelineStory_${N.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:N=>r(y.gallery)},[e.createVNode(h),A[7]||(A[7]=e.createElementVNode("span",{class:"btn-text"},"添加gallery",-1))],8,l2)])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:A[5]||(A[5]=y=>m())},[e.createVNode(h),A[11]||(A[11]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])]),_:1},8,["visible"])}}}),n2=H(o2,[["__scopeId","data-v-27c73fc0"]]),a2=["id"],i2={class:"story__content container-content"},s2={class:"stroy__left"},r2={class:"story__label__title"},d2=["innerHTML"],c2={class:"stroy__right"},u2={class:"story__scrollspy"},m2=e.defineComponent({name:"TimelineStory",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var I;if(l.modelValue&&l.modelValue.data)return;const Y={id:((I=l.modelValue)==null?void 0:I.id)||B(),type:"TimelineStory",data:[{id:B(),title:"标题",desc:"描述",gallery:[{id:B(),imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg"},{id:B(),imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/05_panoramic01_origin.jpg"}]},{id:B(),title:"标题",desc:"描述",gallery:[{id:B(),imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg"}]}]};o("update:modelValue",Y)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=Y=>{o("handlePaste",Y)};a();const c=e.ref(0),r=e.ref(0),f=e.ref(0),p=e.ref(0),A=e.ref(""),v=e.ref(""),w=e.ref(!1),V=e.ref(window.innerWidth),h=e.ref(window.scrollY),g=e.ref(!1),y=e.ref(null),N=e.ref(null),C=e.ref(null),b=e.ref(null),x=e.ref(null),E=e.ref(null),_=e.ref(null),T=e.ref([]),S=e.ref([]),L=e.computed(()=>V.value>1023.98?100:66),O=e.computed(()=>g.value);e.watch(V,()=>{fe()});const M=Y=>Y?Y.getBoundingClientRect().top+window.scrollY:0,$=Y=>{if(!Y)return{x:0,y:0};const I=Y.getBoundingClientRect();return{x:I.left+window.scrollX,y:I.top+window.scrollY}},D=Y=>{Y?document.body.style.overflow="hidden":document.body.style.overflow=""},R=()=>{window.addEventListener("scroll",z),window.addEventListener("resize",k),k()},j=()=>{window.removeEventListener("scroll",z),window.removeEventListener("resize",k)},k=()=>{V.value=window.innerWidth,h.value=window.scrollY},z=()=>{var oe;h.value=window.scrollY;const Y=h.value+L.value+64,I=M(b.value),K=I+(((oe=b.value)==null?void 0:oe.clientHeight)||0);Y<I?c.value=0:Y>K&&(c.value=999),X(),F(),ee(),be(),Me(),q()},X=()=>{var P;const Y=h.value+L.value+64,I=M(b.value),K=I+(((P=b.value)==null?void 0:P.clientHeight)||0),oe={top:I+15,bottom:K-378},se=[x.value,E.value];!x.value||!E.value||(Y<oe.top?se.forEach(U=>{U==null||U.classList.add("is-top"),U==null||U.classList.remove("is-fixed"),U==null||U.classList.remove("is-bottom")}):Y>oe.bottom?se.forEach(U=>{U==null||U.classList.add("is-bottom"),U==null||U.classList.remove("is-fixed"),U==null||U.classList.remove("is-top")}):se.forEach(U=>{U==null||U.classList.add("is-fixed"),U==null||U.classList.remove("is-top"),U==null||U.classList.remove("is-bottom")}))},F=()=>{var P;const Y=h.value+L.value+64,I=_.value,K=M(b.value),oe=K+(((P=b.value)==null?void 0:P.clientHeight)||0),se={top:K-80,bottom:oe-181};I&&(Y<se.top?(I.classList.add("is-top"),I.classList.remove("is-fixed"),I.classList.remove("is-bottom")):Y>se.bottom?(I.classList.add("is-bottom"),I.classList.remove("is-fixed"),I.classList.remove("is-top")):(I.classList.add("is-fixed"),I.classList.remove("is-top"),I.classList.remove("is-bottom")))},ee=()=>{var oe;const Y=M(b.value),I=M(_.value);r.value=((oe=b.value)==null?void 0:oe.clientHeight)||0,p.value=41/r.value;const K=I<Y?h.value+I-Y:I-Y;f.value=(K+12)/r.value},be=()=>{const Y=h.value+L.value+64,I=T.value.length;for(let K=0;K<I;K++){const oe=T.value[K],se=M(oe),P=oe.clientHeight,U=M(oe)+P,te=S.value[K],Q=te.clientHeight,ce=O.value?{top:se+31,bottom:U-Q}:{top:se-10,bottom:U-Q-30};if(P<Q){te.classList.add("is-top"),te.classList.remove("is-fixed"),te.classList.remove("is-bottom");continue}Y<ce.top?(te.classList.add("is-top"),te.classList.remove("is-fixed"),te.classList.remove("is-bottom")):Y>ce.bottom?(te.classList.add("is-bottom"),te.classList.remove("is-fixed"),te.classList.remove("is-top")):(te.classList.add("is-fixed"),te.classList.remove("is-top"),te.classList.remove("is-bottom"))}},Me=()=>{const Y=h.value+L.value+64,I=T.value.length;for(let K=0;K<I;K++){const oe=T.value[K],se=M(oe),P=M(oe)+oe.clientHeight,te=S.value[K].clientHeight,Q={top:se-300,bottom:P-te};Y>Q.top&&Y<Q.bottom&&(c.value=K)}},W=Y=>{const I=V.value<768?120:150,K=$(T.value[Y]).y-I;window.scroll({top:K,left:0,behavior:"smooth"})},q=()=>{const Y=y.value;if(!Y)return;const I=Y.getBoundingClientRect().top,K=Y.getBoundingClientRect().bottom,oe=+window.getComputedStyle(document.body).getPropertyValue("--header-height-calc").split("px")[0],se=C.value;se&&(I-80>oe||K<oe?(se.classList.remove("is-fixed"),se.classList.add("d-none")):(se.classList.add("is-fixed"),se.classList.remove("d-none")))},J=Y=>{A.value=Y.text,v.value=Y.image,D(!0),w.value=!0},fe=()=>{D(!1),w.value=!1},ve=()=>{const I=T.value.length;for(let K=0;K<I;K++){const oe=T.value[K],se=oe.clientHeight,U=S.value[K].clientHeight,te=oe.children[0];se<U&&(te.style.minHeight=`${U}px`)}};return e.onMounted(()=>{T.value=[],S.value=[],e.nextTick(()=>{R(),z(),ve()})}),e.onBeforeUnmount(()=>{j()}),(Y,I)=>{var K,oe,se;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"timeline-story",ref_key:"wrapper",ref:y,onMouseenter:I[2]||(I[2]=P=>i.value=!0),onMouseleave:I[3]||(I[3]=P=>i.value=!1)},[e.createElementVNode("div",{class:"story__sticky-bar d-md-none",ref_key:"tab",ref:N},[e.createElementVNode("div",{class:"story__sticky-bar__content",ref_key:"stickybar",ref:C},[e.createVNode(Mg,{list:(K=n.modelValue)==null?void 0:K.data,currentIdx:c.value,onUpdateCurrentIdx:W},null,8,["list","currentIdx"])],512)],512),e.createElementVNode("ul",{class:"story__list",ref_key:"listRef",ref:b},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((oe=n.modelValue)==null?void 0:oe.data,(P,U)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["story__item",{"is-active":c.value==U}]),key:P.id,ref_for:!0,ref:te=>{te&&T.value.push(te)},id:`${P.id}`},[e.createElementVNode("div",i2,[e.createElementVNode("div",s2,[e.createElementVNode("div",{class:"story__label",ref_for:!0,ref:te=>{te&&S.value.push(te)}},[e.createElementVNode("div",r2,e.toDisplayString(P.title),1),e.createElementVNode("div",{class:"story__label__desc",innerHTML:P.desc},null,8,d2)],512)]),e.createElementVNode("div",c2,[e.createElementVNode("div",{class:e.normalizeClass(["story__gallery",{"is-active":c.value==U}])},[e.createVNode(Bg,{gallery:P.gallery,onOpenCaption:J},null,8,["gallery"])],2)])])],10,a2))),128)),e.createElementVNode("div",{class:"story__mask",ref_key:"bg",ref:x},null,512),e.createElementVNode("div",{class:"story__line",style:e.normalizeStyle([{"--height":`${r.value}px`},{"--bottom":`${f.value*100}%`},{"--space":`${p.value*100}%`}])},null,4),e.createElementVNode("div",{class:"story__dot",ref_key:"dot",ref:_},null,512),e.createElementVNode("div",{class:"story__mask story__mask--front",ref_key:"bg2",ref:E},[e.createElementVNode("div",u2,[e.createVNode(qg,{list:(se=n.modelValue)==null?void 0:se.data,activeIdx:c.value,onScrollToIdx:W},null,8,["list","activeIdx"])])],512)],512),e.createVNode(e.Transition,{name:"fade-right"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(Wg,{text:A.value,image:v.value,onCloseCaption:fe},null,8,["text","image"]),[[e.vShow,w.value]])]),_:1}),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":I[0]||(I[0]=P=>i.value=P),onHandleEdit:I[1]||(I[1]=P=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],544),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(n2,{key:0,show:s.value,"onUpdate:show":I[4]||(I[4]=P=>s.value=P),data:n.modelValue},null,8,["show","data"]))],64)}}}),ms=H(m2,[["__scopeId","data-v-c0e084af"]]),As=dc.create({baseURL:"https://cms-test.cedim.cn/api/",timeout:3e4,headers:{"Content-Type":"application/json;charset=utf-8"}});As.interceptors.request.use(n=>(console.log("Request:",n),n),n=>(console.error("Request Error:",n),Promise.reject(n)));As.interceptors.response.use(n=>{console.log("Response:",n);const{data:t}=n;return n.status===200&&t?n:(console.error("Business Error:",t.message),Promise.reject(new Error(t.message||"请求失败")))},n=>{console.error("Response Error:",n);let t="网络错误";if(n.response){const{status:l,data:o}=n.response;switch(l){case 401:t="未授权,请重新登录";break;case 403:t="拒绝访问";break;case 404:t="请求地址出错";break;case 500:t="服务器内部错误";break;default:t=(o==null?void 0:o.message)||`连接错误${l}`}}else n.request?t="网络连接异常":t=n.message||"请求失败";return console.error("HTTP Error:",t),Promise.reject(n)});const A2=As,p2={class:"list-sort"},f2=["onClick"],v2=e.defineComponent({name:"ListSort",__name:"ListSort",props:{list:{},focusKey:{},year:{type:Boolean}},emits:["updateKey"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(!1),i=e.computed(()=>{var m,c,r;return l.year?l.focusKey??((m=l.list)==null?void 0:m[0]):l.focusKey??((r=(c=l.list)==null?void 0:c[0])==null?void 0:r.key)}),s=e.computed(()=>{var c,r,f,p,A;if(l.year){const v=(c=l.list)==null?void 0:c.find(w=>w==i.value);return v||((r=l.list)==null?void 0:r[0])}const m=(f=l.list)==null?void 0:f.find(v=>v.key==i.value);return m?m.name:(A=(p=l.list)==null?void 0:p[0])==null?void 0:A.name});e.watch(()=>l.focusKey,()=>{u()});const d=m=>{o("updateKey",m),a.value=!1},u=()=>{a.value=!1};return(m,c)=>(e.openBlock(),e.createElementBlock("div",p2,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["list-sort__btn",{"is-active":a.value}]),onClick:c[0]||(c[0]=r=>a.value=!a.value)},e.toDisplayString(s.value),3),e.createElementVNode("ul",{class:e.normalizeClass(["list-sort__list",{"is-active":a.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,r=>(e.openBlock(),e.createElementBlock("li",{key:r.key||r},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["list-sort__option",{"is-active":i.value==(r.key||r)}]),onClick:f=>d(r.key||r)},e.toDisplayString(r.name||r),11,f2)]))),128))],2)]))}}),Ar=H(v2,[["__scopeId","data-v-2445a011"]]),h2={class:"list-filter"},V2=["data-count"],g2=["id","value"],y2=["for"],b2=e.defineComponent({name:"ListFilter",__name:"ListFilter",props:{list:{},focusKey:{},placeholder:{}},emits:["updateKey"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(!1),i=e.ref(Date.now()),s=e.computed({get(){return l.focusKey??[]},set(u){o("updateKey",u)}});e.watch(()=>l.focusKey,()=>{d()});const d=()=>{a.value=!1};return(u,m)=>(e.openBlock(),e.createElementBlock("div",h2,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["list-filter__btn",{"is-active":a.value}]),onClick:m[0]||(m[0]=c=>a.value=!a.value)},[e.createElementVNode("div",{class:e.normalizeClass(["btn__text",{"show-circle":s.value.length>0}]),"data-count":s.value.length}," 筛选 ",10,V2),m[2]||(m[2]=e.createElementVNode("div",{class:"btn__expand"},null,-1))],2),e.createElementVNode("ul",{class:e.normalizeClass(["list-filter__list",{"is-active":a.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,(c,r)=>(e.openBlock(),e.createElementBlock("li",{key:c.key},[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"d-none",id:`${c.key}-${i.value}`,value:c.key,"onUpdate:modelValue":m[1]||(m[1]=f=>s.value=f)},null,8,g2),[[e.vModelCheckbox,s.value]]),e.createElementVNode("label",{for:`${c.key}-${i.value}`,class:e.normalizeClass(["list-filter__option",{"is-active":s.value.includes(c.key)}])},e.toDisplayString(c.name),11,y2)]))),128))],2)]))}}),w2=H(b2,[["__scopeId","data-v-abbe0b75"]]),x2={class:"tab-blue"},k2={class:"tab-blue__wrapper flex-center"},N2=["onClick"],_2={key:0,class:"tab-blue__filter__sort"},C2={key:1,class:"tab-blue__filter__filter"},E2={key:0,class:"tab-blue__filter__filter"},T2=e.defineComponent({name:"TabBlue",__name:"TabBlue",props:{componentProps:{},currentIdx:{},keySort:{},keyFilter:{},yearList:{},keyYear:{},articleTabList:{}},emits:["updateIdx","updateSort","updateFilter","updateYear"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(null),i=e.ref(null),s=e.ref([]),d=e.ref([]),u=e.ref(0),m=e.ref(0),c=e.ref(0),r=e.ref(0),f=e.ref(0),p=e.ref(!0),A=e.ref(300),v=e.ref(0),w=e.computed(()=>{var z;return Array.isArray(l.articleTabList)?l.articleTabList:((z=l.componentProps)==null?void 0:z.list)??null}),V=e.computed(()=>{var z;return((z=l.componentProps)==null?void 0:z.sort)??null}),h=e.computed(()=>{var z;return((z=l.componentProps)==null?void 0:z.filter)??[]}),g=e.computed(()=>{const z=l.yearList??[],X="所有年份",F=[...z];return F.unshift(X),l.yearList?F:[]}),y=e.computed({get(){return l.keySort},set(z){o("updateSort",z)}}),N=e.computed({get(){return l.keyFilter},set(z){o("updateFilter",z)}}),C=e.computed({get(){return l.keyYear},set(z){o("updateYear",z)}}),b=e.computed({get(){return l.currentIdx??0},set(z){o("updateIdx",z),e.nextTick(()=>k())}}),x=e.computed(()=>u.value-m.value),E=e.computed(()=>typeof window>"u"?!1:r.value-window.innerWidth>20),_=e.ref(typeof window<"u"?window.innerWidth:0);e.watch(()=>l.currentIdx,(z,X)=>{p.value=(z??0)>(X??0),e.nextTick(()=>O())}),e.watch(_,()=>{M(),O()});const T=()=>{const z=a.value;z&&(f.value=z.getBoundingClientRect().left)},S=()=>{const z=d.value[b.value];z&&(u.value=z.getBoundingClientRect().right)},L=()=>{const z=d.value[b.value];z&&(m.value=z.getBoundingClientRect().left)};setTimeout(()=>{console.log("stripLeft=======",d.value[5].getBoundingClientRect().left)},500);const O=(z=250)=>{p.value?(S(),setTimeout(L,z)):(L(),setTimeout(S,z)),j()},M=()=>{const z=i.value;z&&(c.value=z.scrollLeft),T(),e.nextTick(()=>O(50)),e.nextTick($)},$=()=>{const z=s.value;if(z&&z.length>0){const X=z[z.length-1];X&&(r.value=X.getBoundingClientRect().right)}},D=()=>{M()},R=z=>{const X=i.value;X&&(z==="next"?X.scrollLeft=c.value+100:X.scrollLeft=c.value-100)},j=()=>{const z=i.value;z&&(A.value=z.clientWidth)},k=()=>{if(typeof window>"u")return;const z=d.value[b.value];if(!z)return;const X=z.clientWidth/2,F=window.innerWidth/2;v.value=z.getBoundingClientRect().right-X;const ee=i.value;ee&&(ee.scrollLeft-=F-v.value)};return e.onMounted(()=>{if(e.nextTick(()=>{setTimeout(D,300)}),typeof window<"u"){const z=()=>{_.value=window.innerWidth};window.addEventListener("resize",z),e.onBeforeUnmount(()=>{window.removeEventListener("resize",z)})}}),(z,X)=>(e.openBlock(),e.createElementBlock("div",x2,[e.createElementVNode("div",k2,[e.createElementVNode("div",{class:"tab-blue__nav justify-content-center",ref_key:"nav",ref:a},[e.withDirectives(e.createElementVNode("div",{class:"tab-blue__nav__prev",onClick:X[0]||(X[0]=F=>R("prev"))},null,512),[[e.vShow,c.value>30]]),e.createElementVNode("ul",{class:"tab-blue__list px-4",ref_key:"list",ref:i,onScroll:D},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(F,ee)=>(e.openBlock(),e.createElementBlock("li",{key:F.key,class:"tab-blue__list__item",ref_for:!0,ref:be=>s.value[ee]=be},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["tab-blue__btn",{"tab-blue__btn--active":b.value==ee}]),ref_for:!0,ref:be=>d.value[ee]=be,onClick:be=>b.value=ee},e.toDisplayString(F.name),11,N2)]))),128)),e.createElementVNode("span",{class:"tab-blue__strip",style:e.normalizeStyle(`--strip-width:${x.value}px;--strip-left:${m.value}px;--list-scroll-left:${c.value}px;--fix-left:${f.value}px`)},null,4)],544),e.withDirectives(e.createElementVNode("div",{class:"tab-blue__nav__next",onClick:X[1]||(X[1]=F=>R("next"))},null,512),[[e.vShow,E.value]])],512),V.value&&h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tab-blue__filter zIndex2 mt-5 mt-md-3",style:e.normalizeStyle({"--width":`${A.value}px`})},[V.value.length>0?(e.openBlock(),e.createElementBlock("div",_2,[e.createVNode(Ar,{list:V.value,focusKey:y.value,onUpdateKey:X[2]||(X[2]=F=>y.value=F)},null,8,["list","focusKey"])])):e.createCommentVNode("",!0),h.value.length>0?(e.openBlock(),e.createElementBlock("div",C2,[e.createVNode(w2,{list:h.value,focusKey:N.value,onUpdateKey:X[3]||(X[3]=F=>N.value=F)},null,8,["list","focusKey"])])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),g.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:"tab-blue__filter mt-5 mt-md-3",style:e.normalizeStyle({"--width":`${A.value}px`})},[g.value.length>1?(e.openBlock(),e.createElementBlock("div",E2,[e.createVNode(Ar,{list:g.value,year:!0,focusKey:C.value,onUpdateKey:X[4]||(X[4]=F=>C.value=F)},null,8,["list","focusKey"])])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)])]))}}),S2=H(T2,[["__scopeId","data-v-799a0f8d"]]),P2={class:"article__head"},B2=["href"],L2=["src","alt"],O2=["src","alt"],M2=["src","alt"],z2={key:0,class:"article__title line-clamp-2 mt-3"},j2={key:1,class:"article__desc line-clamp-4 mt-2"},$2={class:"article__footer"},D2={key:0,class:"article__label"},U2={key:1,class:"article__date"},R2=e.defineComponent({name:"CardArticle",__name:"CardArticle",props:{componentProps:{},singleColumn:{type:Boolean},articleCategories:{}},emits:["openPopup","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(null),i=e.ref(""),s=w=>{var g;if(A.value||!w)return;let V=(g=l.componentProps)==null?void 0:g.category;window.scroll({top:0,left:0,behavior:"smooth"});const h=a.value?a.value.getBoundingClientRect().top+window.scrollY-160:0;o("openPopup",{key:w,cat:V,positionY:h})},d=w=>{o("handleClick",w)},u=e.computed(()=>{var w;return l.componentProps?l.componentProps.image?l.componentProps.image:(w=l.componentProps.meta)!=null&&w.image?l.componentProps.meta.image:"https://ywies-tx.cedim.cn/_nuxt/img/ywies-news-logo.202e378.jpg":"https://ywies-tx.cedim.cn/_nuxt/img/ywies-news-logo.202e378.jpg"}),m=e.computed(()=>{var w;return l.componentProps?l.componentProps.title?l.componentProps.title:(w=l.componentProps.meta)==null?void 0:w.title:null}),c=e.computed(()=>{if(l.componentProps)return l.componentProps.alt??m.value??void 0}),r=e.computed(()=>{var w;return l.componentProps?l.componentProps.desc?l.componentProps.desc:(w=l.componentProps.meta)==null?void 0:w.description:null}),f=e.computed(()=>{var h;if(!l.componentProps)return null;if(l.componentProps.labelName)return l.componentProps.labelName;let w=l.componentProps.label?l.componentProps.label:l.componentProps.category;const V=l.articleCategories;if(V&&w){let g=V.filter(y=>y.key.toLowerCase()===w.toLowerCase());return i.value=(h=g[0])==null?void 0:h.name,i.value}return w}),p=e.computed(()=>{var w;return l.componentProps?l.componentProps.date?l.componentProps.date:v((w=l.componentProps)==null?void 0:w.time):null}),A=e.computed(()=>{var w;return((w=l.componentProps)==null?void 0:w.link)??null}),v=w=>{if(!w)return null;const V=new Date(w),h=V.getFullYear(),g=(V.getMonth()+1).toString().padStart(2,"0"),y=V.getDate().toString().padStart(2,"0");return`${h}年${g}月${y}日`};return(w,V)=>(e.openBlock(),e.createElementBlock("div",{class:"card-article",ref_key:"cardArticle",ref:a},[e.createElementVNode("div",P2,[A.value&&A.value.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:A.value,target:"_blank",class:"article__img img-fit",onMousedown:V[0]||(V[0]=e.withModifiers(()=>{},["prevent","stop"]))},[e.createElementVNode("img",{src:u.value,alt:c.value},null,8,L2),V[4]||(V[4]=e.createElementVNode("div",{class:"article__img__mask"},[e.createElementVNode("div",{class:"article__img__mask__btn"}," 阅读 ")],-1))],40,B2)):A.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:V[1]||(V[1]=h=>d(A.value)),class:"article__img img-fit",onMousedown:V[2]||(V[2]=e.withModifiers(()=>{},["prevent","stop"]))},[e.createElementVNode("img",{src:u.value,alt:c.value},null,8,O2),V[5]||(V[5]=e.createElementVNode("div",{class:"article__img__mask"},[e.createElementVNode("div",{class:"article__img__mask__btn"}," 阅读 ")],-1))],32)):(e.openBlock(),e.createElementBlock("div",{key:2,class:"article__img img-fit",onClick:V[3]||(V[3]=h=>{var g;return s((g=n.componentProps)==null?void 0:g.key)})},[e.createElementVNode("img",{src:u.value,alt:c.value},null,8,M2),V[6]||(V[6]=e.createElementVNode("div",{class:"article__img__mask"},[e.createElementVNode("div",{class:"article__img__mask__btn"}," 阅读 ")],-1))]))]),e.createElementVNode("div",{class:e.normalizeClass(["article__body",{"is-single-column":n.singleColumn}])},[m.value?(e.openBlock(),e.createElementBlock("h6",z2,e.toDisplayString(m.value),1)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("p",j2,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",$2,[f.value?(e.openBlock(),e.createElementBlock("div",D2,e.toDisplayString(f.value),1)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("div",U2,e.toDisplayString(p.value),1)):e.createCommentVNode("",!0)])],2)],512))}}),H2=H(R2,[["__scopeId","data-v-5f1785b8"]]),W2={class:"pagination"},I2={class:"d-flex align-items-center h-100 justify-content-center justify-content-md-start"},X2={key:0,class:"page-ellipsis flex-center"},q2=["onClick"],F2=e.defineComponent({name:"Pagination",__name:"Pagination",props:{totalPage:{},currentPage:{}},emits:["changePage"],setup(n,{emit:t}){const l=n,o=t,a=e.computed(()=>{let u=[],m=!1;const c=l.totalPage??1;for(let r=1;r<=c;r++)d(r)?(m=!1,u.push(r)):m||(u.push("Ellipsis"),m=!0);return u[0]==="Ellipsis"&&u.shift(),u}),i=u=>{o("changePage",u)},s=u=>{const m=l.currentPage??1,c=l.totalPage??1;u<0?m>1&&i(m+u):m<c&&i(m+u)},d=u=>{const m=l.totalPage??1,c=l.currentPage??1;return m<=6||u<=c+2&&u>=c||u===m||c>=m-3&&(u>=m-2||u===1)};return(u,m)=>(e.openBlock(),e.createElementBlock("div",W2,[e.createElementVNode("ul",I2,[e.createElementVNode("li",{class:e.normalizeClass(["page-arrow pr-3 pr-md-4",{"page-arrow--disable":n.currentPage===1}]),onClick:m[0]||(m[0]=c=>s(-1))},[...m[2]||(m[2]=[e.createElementVNode("div",{class:"i page-arrow__left"},null,-1)])],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(c,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${c}-${r}`},[c==="Ellipsis"?(e.openBlock(),e.createElementBlock("li",X2)):(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["page-item flex-center",{"page-item--active":c===n.currentPage}]),onClick:f=>typeof c=="number"?i(c):void 0},e.toDisplayString(c),11,q2))],64))),128)),e.createElementVNode("li",{class:e.normalizeClass(["page-arrow pl-3 pl-md-4",{"page-arrow--disable":n.currentPage===n.totalPage}]),onClick:m[1]||(m[1]=c=>s(1))},[...m[3]||(m[3]=[e.createElementVNode("div",{class:"i page-arrow__right"},null,-1)])],2)])]))}}),Y2=H(F2,[["__scopeId","data-v-d5dbf1f4"]]),Z2={class:"setting-content"},G2={class:"setting-header flex items-center"},J2={class:"setting-header flex items-center"},K2={class:"setting-header flex items-center"},Q2={class:"setting-body"},ey={class:"setting-item"},ty={class:"btn-group"},ly={key:0,class:"drag-handle"},oy={class:"item-action flex items-center"},ny={class:"item-action flex items-center"},ay=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),a=m=>m&&m.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=m=>{i.data.data=i.data.data.filter(c=>c.id!==m)};return(m,c)=>{const r=e.resolveComponent("a-option"),f=e.resolveComponent("a-select"),p=e.resolveComponent("a-input"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(w,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",Z2,[e.createElementVNode("div",G2,[c[10]||(c[10]=e.createElementVNode("span",{class:"header-title"},"显示年份选择",-1)),e.createVNode(f,{modelValue:n.data.displayYearList,"onUpdate:modelValue":c[0]||(c[0]=V=>n.data.displayYearList=V),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(r,{value:!0},{default:e.withCtx(()=>[...c[8]||(c[8]=[e.createTextVNode("是",-1)])]),_:1}),e.createVNode(r,{value:!1},{default:e.withCtx(()=>[...c[9]||(c[9]=[e.createTextVNode("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",J2,[c[11]||(c[11]=e.createElementVNode("span",{class:"header-title"},"文章分类",-1)),e.createVNode(f,{modelValue:n.data.article_category_group_id,"onUpdate:modelValue":c[1]||(c[1]=V=>n.data.article_category_group_id=V),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data["article-category-groups"],V=>(e.openBlock(),e.createBlock(r,{key:V.id,value:V.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",K2,[c[12]||(c[12]=e.createElementVNode("span",{class:"header-title"},"接口地址",-1)),e.createElementVNode("div",null,[e.createVNode(p,{modelValue:n.data.api,"onUpdate:modelValue":c[2]||(c[2]=V=>n.data.api=V),placeholder:"默认接口地址","allow-clear":""},null,8,["modelValue"]),e.createVNode(p,{style:{"margin-top":"8px"},modelValue:n.data.previewModeApi,"onUpdate:modelValue":c[3]||(c[3]=V=>n.data.previewModeApi=V),placeholder:"PreviewMode接口地址","allow-clear":""},null,8,["modelValue"]),e.createVNode(p,{style:{"margin-top":"8px"},modelValue:n.data.reviewModeApi,"onUpdate:modelValue":c[4]||(c[4]=V=>n.data.reviewModeApi=V),placeholder:"ReviewMode接口地址","allow-clear":""},null,8,["modelValue"])])]),e.createElementVNode("div",Q2,[e.createElementVNode("div",ey,[c[15]||(c[15]=e.createElementVNode("p",{class:"item-name"},"Sort",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.sort,"onUpdate:modelValue":c[5]||(c[5]=V=>n.data.sort=V),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.sort),onStart:c[6]||(c[6]=V=>l.value=!0),onEnd:c[7]||(c[7]=V=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:V})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.sort)}]),key:V.key},[e.createElementVNode("div",ty,[a(n.data.sort)?(e.openBlock(),e.createElementBlock("div",ly,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:h=>u(V.key)},null,8,["onClick"])]),e.createElementVNode("div",oy,[c[13]||(c[13]=e.createElementVNode("p",{class:"item-name"},"Sort Behaviour",-1)),e.createVNode(p,{style:{flex:"1"},modelValue:V.key,"onUpdate:modelValue":h=>V.key=h,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",ny,[c[14]||(c[14]=e.createElementVNode("p",{class:"item-name"},"Translation",-1)),e.createVNode(p,{style:{flex:"1"},modelValue:V.name,"onUpdate:modelValue":h=>V.name=h,placeholder:"翻译","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),iy=H(ay,[["__scopeId","data-v-7c85974d"]]),sy={class:"tab-default__wrapper container-content"},ry={class:"tab-default__content mt-5 mt-md-13"},dy={key:0,"data-aos":"fade-in","data-aos-duration":"1500"},cy={key:0,class:"flex-center mt-15 mt-md-20"},uy=e.defineComponent({name:"NewsList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var q,J,fe,ve,Y,I;if(l.modelValue&&l.modelValue.data)return;const W={id:((q=l.modelValue)==null?void 0:q.id)||B(),type:"NewsList",api:((J=l.modelValue)==null?void 0:J.api)||"/component/production/articles",previewModeApi:((fe=l.modelValue)==null?void 0:fe.previewModeApi)||"/component/preview/articles",reviewModeApi:((ve=l.modelValue)==null?void 0:ve.reviewModeApi)||"/component/review/articles",isPreviewMode:((Y=l.modelValue)==null?void 0:Y.isPreviewMode)||!1,isReviewMode:((I=l.modelValue)==null?void 0:I.isReviewMode)||!1,sort:[{key:"most-recent",name:"最新"},{key:"past-month",name:"上月"},{key:"past-year",name:"去年"}],displayYearList:!0,yearList:[2025,2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009],list:[{key:"all",name:"全部",list:[]},{key:"news",name:"学校新闻",list:[]},{key:"events",name:"活动",list:[]}],"article-category-groups":{28:{id:28,name:"新闻",categories:[{id:92,key:"school-news",name:"学校新闻",hasArticles:!0},{id:291,key:"events",name:"活动预告",hasArticles:!0},{id:93,key:"wechat-news",name:"微信精彩文章",hasArticles:!0},{id:94,key:"press",name:"媒体报导",hasArticles:!0},{id:282,key:"ycyw-news",name:"耀中耀华新闻",hasArticles:!0},{id:300,key:"yuiuih",name:"测试",hasArticles:!0},{id:294,key:"ycyw-event",name:"耀中耀华活动",hasArticles:!0},{id:296,key:"edfutures",name:"未来教育部",hasArticles:!0}]},65:{id:65,name:"媒体",categories:[{id:274,key:"meet-series",name:"“遇见”系列",hasArticles:!0},{id:275,key:"planet-leadership-series",name:"星空说",hasArticles:!0}]},101:{id:101,name:"家长分享",categories:[{id:290,key:"parent-sharing",name:"家长分享",hasArticles:!0}]}},article_category_group_id:28,"article-categories":[{id:92,key:"school-news",name:"学校新闻",hasArticles:!0},{id:93,key:"wechat-news",name:"微信精彩文章",hasArticles:!0},{id:94,key:"press",name:"媒体报导",hasArticles:!0},{id:95,key:"circulars-n-newsletters",name:"校內刊物",hasArticles:!0},{id:222,key:"planet-leadership-series-archive",name:"星空说 - Archive",hasArticles:!0},{id:223,key:"meet-series-archive",name:"“遇见”系列 - Archive",hasArticles:!0},{id:274,key:"meet-series",name:"“遇见”系列",hasArticles:!0},{id:275,key:"planet-leadership-series",name:"星空说",hasArticles:!0},{id:282,key:"ycyw-news",name:"耀中耀华新闻",hasArticles:!0},{id:290,key:"parent-sharing",name:"家长分享",hasArticles:!0},{id:291,key:"events",name:"活动预告",hasArticles:!0},{id:294,key:"ycyw-event",name:"耀中耀华活动",hasArticles:!0},{id:296,key:"edfutures",name:"未来教育部",hasArticles:!0},{id:300,key:"yuiuih",name:"测试",hasArticles:!0}],getIsPreviewMode:!1,getIsReviewMode:!1};o("update:modelValue",W),e.nextTick(()=>{console.log("更新数据:",l.modelValue["article-categories"])})},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=W=>{o("handlePaste",W)},c=W=>{o("handleClick",W)};a();const r=e.ref(null),f=e.ref(!1),p=e.ref(void 0),A=e.ref(0),v=e.ref(null),w=e.ref(null),V=e.ref("所有年份"),h=e.ref(10),g=e.ref(1),y=e.ref(12),N=e.ref([]),C=e.ref({}),b=e.ref(""),x=e.ref(window.innerWidth),E=e.ref("sc"),_=()=>{x.value=window.innerWidth},T=e.computed(()=>{var J,fe,ve,Y;if(!f.value)return Object.freeze(((J=l.modelValue)==null?void 0:J.list)??[]);const W=(fe=l.modelValue)==null?void 0:fe["article-category-groups"];if(!W||!p.value||!W.hasOwnProperty(p.value))return Object.freeze([]);let q=W[p.value].categories;return!((ve=l.modelValue)!=null&&ve.isPreviewMode)&&!((Y=l.modelValue)!=null&&Y.isReviewMode)&&(q=q.filter(function(I){return I.hasOwnProperty("hasArticles")&&I.hasArticles})),Object.freeze(q)}),S=e.computed(()=>{let W=[];for(const q of T.value)q.key!=="all"&&W.push(q.key);return Object.freeze(W)}),L=e.computed(()=>{var W;if(f.value){let q=[{key:"all",name:"全部",list:[]}],J=T.value.map(function(fe){return{key:fe.key,name:fe.name,list:[]}});return Object.freeze(q.concat(J))}return((W=l.modelValue)==null?void 0:W.list)??void 0}),O=e.computed(()=>{var W;return((W=l.modelValue)==null?void 0:W.colDesktop)??4}),M=e.computed(()=>{var W;return((W=l.modelValue)==null?void 0:W.colTablet)??3}),$=e.computed(()=>{var W;return((W=l.modelValue)==null?void 0:W.colMobile)??1}),D=e.computed(()=>{var W,q;return((q=(W=L.value)==null?void 0:W[A.value])==null?void 0:q.list)??null}),R=e.computed(()=>{var W;return!w.value||!w.value.length?D.value:((W=D.value)==null?void 0:W.filter(q=>{var fe;let J=!1;return(fe=w.value)==null||fe.forEach(ve=>{J=q&&q.keywords&&q.keywords.includes(ve)?!0:J}),J}))??[]}),j=e.computed(()=>{if(!v.value||v.value==="most-recent")return[...R.value].sort((K,oe)=>new Date(oe.date).getTime()-new Date(K.date).getTime());const W=new Date,q=W.getFullYear(),J=W.getMonth(),fe=W.getDate(),ve=new Date(q,J-1<0?11:J-1,fe),Y=new Date(q-1,J,fe),I=v.value==="past-month"?ve:Y;return R.value.filter(K=>new Date(K.date)>I&&new Date(K.date)<W)}),k=e.computed(()=>{var W,q;return((W=l.modelValue)==null?void 0:W.displayYearList)??!0?(q=l.modelValue)==null?void 0:q.yearList:[]}),z=e.computed(()=>{var W,q,J;return f.value||(W=l.modelValue)!=null&&W.list&&((J=(q=l.modelValue.list[0])==null?void 0:q.list)==null?void 0:J.length)===0?N.value:j.value.slice((g.value-1)*y.value,g.value*y.value)}),X=W=>{if(!W)return;const fe=W.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:fe,behavior:"smooth"})};e.watch(v,()=>{F(),ee()}),e.watch(w,()=>{ee()}),e.watch(V,()=>{F(),ee()}),e.watch(g,()=>{const W=r.value;X(W),F()}),e.watch(A,W=>{ee(),L.value&&L.value[W]&&(b.value=L.value[W].key,g.value=1,F())}),e.watch(S,(W,q)=>{q.length===0&&W.length>0&&(be(),F())});const F=async()=>{var W,q,J,fe,ve,Y,I,K;if(f.value||(W=l.modelValue)!=null&&W.list&&((J=(q=l.modelValue.list[0])==null?void 0:q.list)==null?void 0:J.length)===0){let oe=(fe=l.modelValue)==null?void 0:fe.api;if((ve=l.modelValue)!=null&&ve.isPreviewMode&&(oe=(Y=l.modelValue)==null?void 0:Y.previewModeApi),(I=l.modelValue)!=null&&I.isReviewMode&&(oe=(K=l.modelValue)==null?void 0:K.reviewModeApi),S.value.length===0)return;let se={per_page:y.value,page:g.value,filter:v.value,year:k.value.includes(Number(V.value))||k.value.includes(String(V.value))?Number(V.value):null,category:!b.value||b.value==="all"?S.value.join(","):b.value};const P={headers:{"api-key":"api-key",application:"website",website:`ywies-tx-${E.value}`},params:se};try{const U=await A2.get(oe,P);N.value=U.data.data,C.value=U.data.meta,h.value=C.value.last_page}catch(U){console.error("Error fetching articles:",U)}}},ee=()=>{var W,q,J;g.value=1,y.value=x.value>=768?x.value>=1024?12:9:10,(f.value||(W=l.modelValue)!=null&&W.list&&((J=(q=l.modelValue.list[0])==null?void 0:q.list)==null?void 0:J.length)>0)&&(h.value=Math.ceil(j.value.length/y.value))},be=()=>{let W=0;b.value&&L.value&&(W=L.value.findIndex(q=>q.key==b.value)),A.value=W>-1?W:0},Me=W=>{A.value=W,b.value=L.value[W].key,g.value=1,F()};return e.onMounted(()=>{var q;let W=((q=l.modelValue)==null?void 0:q.article_category_group_id)??null;W&&(f.value=!0,p.value=W),window.addEventListener("resize",_),_(),ee(),be(),e.nextTick(()=>{F()})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",_)}),(W,q)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"news-list tab-default",ref_key:"parent",ref:r,onMouseenter:q[6]||(q[6]=J=>i.value=!0),onMouseleave:q[7]||(q[7]=J=>i.value=!1)},[e.createElementVNode("div",sy,[e.createVNode(S2,{componentProps:n.modelValue,currentIdx:A.value,keySort:v.value,keyFilter:w.value??[],keyYear:V.value,yearList:k.value,articleTabList:L.value?[...L.value]:void 0,onUpdateIdx:Me,onUpdateSort:q[0]||(q[0]=J=>v.value=typeof J=="string"?J:null),onUpdateFilter:q[1]||(q[1]=J=>w.value=J),onUpdateYear:q[2]||(q[2]=J=>V.value=String(J))},null,8,["componentProps","currentIdx","keySort","keyFilter","keyYear","yearList","articleTabList"])]),e.createElementVNode("div",ry,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(J,fe)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:J.key},[fe==A.value?(e.openBlock(),e.createElementBlock("div",dy,[e.createElementVNode("div",{class:e.normalizeClass(["card-list row container-content-middle",[`row-cols-${$.value}`,`row-cols-md-${M.value}`,`row-cols-lg-${O.value}`]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,ve=>{var Y;return e.openBlock(),e.createElementBlock("div",{class:"card-item col",key:ve.id},[e.createVNode(H2,{componentProps:ve,articleCategories:(Y=n.modelValue)==null?void 0:Y["article-categories"],singleColumn:x.value<768,onHandleClick:c},null,8,["componentProps","articleCategories","singleColumn"])])}),128))],2),h.value>0?(e.openBlock(),e.createElementBlock("div",cy,[e.createVNode(Y2,{totalPage:h.value,currentPage:g.value,onChangePage:q[3]||(q[3]=ve=>g.value=ve)},null,8,["totalPage","currentPage"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))),128))]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":q[4]||(q[4]=J=>i.value=J),onHandleEdit:q[5]||(q[5]=J=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],544),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(iy,{key:0,show:s.value,"onUpdate:show":q[8]||(q[8]=J=>s.value=J),data:n.modelValue},null,8,["show","data"]))],64))}}),ps=H(uy,[["__scopeId","data-v-7f671d7f"]]),my={class:"setting-content"},Ay={class:"setting-header flex items-center"},py={class:"setting-header flex items-center"},fy={key:1,class:"btn-setting"},vy={class:"btn-group"},hy={class:"item-action flex items-center"},Vy={class:"setting-body"},gy={class:"btn-group"},yy={key:0,class:"drag-handle"},by={class:"section-item"},wy={class:"btn-group"},xy={key:0,class:"drag-handle"},ky=["src"],Ny={class:"item-uplaod flex items-center"},_y=["onClick"],Cy=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost"})),a=e.computed(()=>({animation:200,group:"sections",disabled:!1,ghostClass:"ghost"})),i=A=>A&&A.length>1,s=n,d=t,u=()=>{d("update:show",!1)},m=()=>{s.data.btnType="",s.data.btnText="",s.data.btnUrl="",s.data.isExternal=!1},c=()=>{s.data.data.push({id:B(),timeSection:[]})},r=A=>{s.data.data=s.data.data.filter(v=>v.id!==A)},f=A=>{A.push({id:B(),title:"标题",subtitle:"内容",year:"",imgSrc:"",alt:"",linkUrl:"",isExternal:!1})},p=(A,v)=>{A.splice(A.findIndex(w=>w.id===v),1)};return(A,v)=>{const w=e.resolveComponent("a-input"),V=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-button"),g=e.resolveComponent("a-button-group"),y=e.resolveComponent("icon-delete"),N=e.resolveComponent("a-link"),C=e.resolveComponent("a-checkbox"),b=e.resolveComponent("icon-drag-arrow"),x=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(x,{width:500,visible:n.show,footer:!1,onCancel:u,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",my,[e.createElementVNode("div",Ay,[v[12]||(v[12]=e.createElementVNode("span",{class:"header-title"},"标题",-1)),e.createVNode(w,{modelValue:n.data.title,"onUpdate:modelValue":v[0]||(v[0]=E=>n.data.title=E),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",py,[v[13]||(v[13]=e.createElementVNode("span",{class:"header-title"},"子标题",-1)),e.createVNode(w,{modelValue:n.data.subtitle,"onUpdate:modelValue":v[1]||(v[1]=E=>n.data.subtitle=E),placeholder:"请输入子标题","allow-clear":""},null,8,["modelValue"])]),n.data.btnType?(e.openBlock(),e.createElementBlock("div",fy,[e.createElementVNode("div",vy,[e.createVNode(y,{class:"btn-delete",onClick:m})]),n.data.btnType==="btn"?(e.openBlock(),e.createBlock(h,{key:0,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.btnText),1)]),_:1})):(e.openBlock(),e.createBlock(N,{key:1,href:"link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.btnText),1)]),_:1})),e.createElementVNode("div",hy,[e.createVNode(w,{class:"action-text",modelValue:n.data.btnText,"onUpdate:modelValue":v[4]||(v[4]=E=>n.data.btnText=E),placeholder:"按钮文本","allow-clear":""},null,8,["modelValue"]),e.createVNode(w,{modelValue:n.data.btnUrl,"onUpdate:modelValue":v[5]||(v[5]=E=>n.data.btnUrl=E),placeholder:"按钮链接","allow-clear":""},null,8,["modelValue"])]),e.createVNode(C,{"model-value":n.data.isExternal},{default:e.withCtx(()=>[...v[16]||(v[16]=[e.createTextVNode("是否外部链接",-1)])]),_:1},8,["model-value"])])):(e.openBlock(),e.createBlock(g,{key:0,type:"primary"},{default:e.withCtx(()=>[e.createVNode(h,{size:"mini",onClick:v[2]||(v[2]=E=>n.data.btnType="btn")},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[v[14]||(v[14]=e.createTextVNode(" 按钮 ",-1))]),_:1}),e.createVNode(h,{size:"mini",onClick:v[3]||(v[3]=E=>n.data.btnType="link")},{icon:e.withCtx(()=>[e.createVNode(V)]),default:e.withCtx(()=>[v[15]||(v[15]=e.createTextVNode(" 链接 ",-1))]),_:1})]),_:1})),e.createElementVNode("div",Vy,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":v[8]||(v[8]=E=>n.data.data=E),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!i(n.data.data),onStart:v[9]||(v[9]=E=>l.value=!0),onEnd:v[10]||(v[10]=E=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:E})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-section draggable-item",{"sortable-disabled":!i(n.data.data)}]),key:E.id},[e.createElementVNode("div",gy,[i(n.data.data)?(e.openBlock(),e.createElementBlock("div",yy,[e.createVNode(b,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(y,{class:"btn-delete",onClick:_=>r(E.id)},null,8,["onClick"])]),e.createElementVNode("div",by,[e.createVNode(e.unref(de),e.mergeProps({modelValue:E.timeSection,"onUpdate:modelValue":_=>E.timeSection=_,"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},a.value,{disabled:!i(E.timeSection),onStart:v[6]||(v[6]=_=>l.value=!0),onEnd:v[7]||(v[7]=_=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:_})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!i(E.timeSection)}]),key:_.id},[e.createElementVNode("div",wy,[i(E.timeSection)?(e.openBlock(),e.createElementBlock("div",xy,[e.createVNode(b,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(y,{class:"btn-delete",onClick:T=>p(E.timeSection,_.id)},null,8,["onClick"])]),v[17]||(v[17]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(w,{modelValue:_.title,"onUpdate:modelValue":T=>_.title=T,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),v[18]||(v[18]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:_.subtitle,"onUpdate:modelValue":T=>_.subtitle=T,name:`TheHistoryCarousel_editor_${_.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),v[19]||(v[19]=e.createElementVNode("p",{class:"item-title"},"日期",-1)),e.createVNode(w,{modelValue:_.year,"onUpdate:modelValue":T=>_.year=T,placeholder:"请输入日期","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),v[20]||(v[20]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:_.imgSrc},null,8,ky),e.createElementVNode("div",Ny,[e.createVNode(w,{modelValue:_.imgSrc,"onUpdate:modelValue":T=>_.imgSrc=T,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:_.imgSrc,"onUpdate:modelValue":T=>_.imgSrc=T,name:`TheHistoryCarousel_${_.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(w,{class:"mt-2",modelValue:_.alt,"onUpdate:modelValue":T=>_.alt=T,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(w,{class:"mt-2",modelValue:_.linkUrl,"onUpdate:modelValue":T=>_.linkUrl=T,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],2))]),_:2},1040,["modelValue","onUpdate:modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:_=>f(E.timeSection)},[e.createVNode(V),v[21]||(v[21]=e.createElementVNode("span",{class:"btn-text"},"添加section",-1))],8,_y)])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:v[11]||(v[11]=E=>c())},[e.createVNode(V),v[22]||(v[22]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])]),_:1},8,["visible"])}}}),Ey=H(Cy,[["__scopeId","data-v-95b13291"]]),Ty={key:0,class:"popBox"},Sy={class:"close-header"},Py={class:"mb-3"},By=["innerHTML"],Ly={class:"mt-5"},Oy={class:"circle-link"},My=["href","target"],zy=e.defineComponent({name:"LightHistoryPopup",__name:"index",props:{historyPopupData:{},show:{type:Boolean}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=e.computed(()=>l.show),a=t,i=()=>{a("update:show",!1)};return(s,d)=>{const u=e.resolveComponent("a-button");return o.value?(e.openBlock(),e.createElementBlock("div",Ty,[e.createElementVNode("div",Sy,[e.createVNode(u,{type:"text",size:"small",onClick:i,class:"close-btn"},{default:e.withCtx(()=>[...d[0]||(d[0]=[e.createTextVNode(" × ",-1)])]),_:1})]),e.createElementVNode("h6",Py,e.toDisplayString(n.historyPopupData.title),1),e.createVNode(Va,null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:"popBox__subtitle tx-body-small",innerHTML:n.historyPopupData.subtitle},null,8,By)]),_:1}),e.createElementVNode("div",Ly,[e.createElementVNode("div",Oy,[e.createElementVNode("a",{href:n.historyPopupData.linkUrl,target:n.historyPopupData.isExternal?"_blank":"_self",class:"nuxt-link-active"},[...d[1]||(d[1]=[e.createElementVNode("div",null,"了解更多",-1),e.createElementVNode("span",{class:"circle-link__icon"},null,-1)])],8,My)])])])):e.createCommentVNode("",!0)}}}),jy=H(zy,[["__scopeId","data-v-2728df05"]]),$y={class:"position-relative"},Dy=["data-swiper-parallax"],Uy=["data-swiper-parallax","data-swiper-parallax-opacity"],Ry=["onClick"],Hy={class:"period__effect"},Wy=["id"],Iy=["data-swiper-parallax","data-swiper-parallax-opacity"],Xy=["src","alt"],qy={class:"hisPopup"},Fy={class:"swiper-bottom"},Yy={class:"swiper-bottom__text"},Zy={class:"tx-subtitle text-uppercase text-center"},Gy={class:"position-relative w-100 celebrateTitle"},Jy={class:"text-uppercase text-center"},Ky=["onClick"],Qy={key:0,class:"year-pagination__box__line"},eb=["href"],tb={class:"btn-primary__text"},lb={key:1,class:"circle-link mx-auto mt-2 circle-link--light"},ob=["href"],nb={"data-v-d020e8b6":""},ab=e.defineComponent({name:"TheHistoryCarousel",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var T;if(l.modelValue&&l.modelValue.data)return;const _={id:((T=l.modelValue)==null?void 0:T.id)||B(),type:"TheHistoryCarousel",title:"标题",subtitle:"副标题",btnType:"link",btnText:"按钮",btnUrl:"http://baidu.com",isExternal:!0,data:[{id:B(),timeSection:[{id:B(),title:"标题1",subtitle:"内容",year:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",linkUrl:"http://baidu.com",isExternal:!0},{id:B(),title:"标题2",subtitle:"内容",year:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",linkUrl:"http://baidu.com",isExternal:!0}]},{id:B(),timeSection:[{id:B(),title:"标题3",subtitle:"内容",year:"1990",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-bj/images/home/ywies-tx.jpg",alt:"",linkUrl:"http://baidu.com",isExternal:!0}]}]};o("update:modelValue",_)},i=e.ref(!1),s=e.ref(!1),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=_=>{o("handlePaste",_)};a();const c=e.ref(!1),r=e.ref(0),f=e.ref(!1),p=e.ref("-23%"),A=e.ref(null),v=e.ref(null),w=e.ref([]),V=[yt.Navigation,yt.Pagination,yt.Parallax];e.watch(r,(_,T)=>{if(w.value&&w.value[0]&&v.value){const S=w.value[0].clientWidth;if(T<_&&_>3){v.value.scrollLeft+=S;return}if(T>_&&_<N.value.length-4){v.value.scrollLeft-=S;return}}});const h=e.ref({title:"",subtitle:"",linkUrl:"",isExternal:!0}),g=_=>{c.value=!0,h.value={title:_.title,subtitle:_.subtitle,linkUrl:_.linkUrl,isExternal:_.isExternal}},y=e.ref(null),N=e.computed(()=>{var _;if(!((_=l.modelValue)!=null&&_.data))return[];if(typeof window<"u"&&window.innerWidth<576){let T=[];return l.modelValue.data.forEach(S=>{S.timeSection.forEach(L=>{T.push({id:B(),timeSection:[L]})})}),T}else return l.modelValue.data}),C=e.computed(()=>{if(typeof window<"u"&&window.innerWidth<576){const _=2280/N.value.length/2;return p.value=`-${_}%`,p.value}else return p.value="-23%",p.value}),b=_=>{y.value=_,f.value=!0},x=()=>{y.value&&(r.value=y.value.activeIndex,c.value=!1)},E=_=>{r.value=_,y.value&&y.value.slideTo(_)};return(_,T)=>{var S,L,O,M,$,D,R;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"the-history-carousel",onMouseenter:T[3]||(T[3]=j=>i.value=!0),onMouseleave:T[4]||(T[4]=j=>i.value=!1)},[e.createElementVNode("div",$y,[e.createVNode(e.unref(ml.Swiper),{ref_key:"historySlide",ref:A,class:"swiper history-swiper",modules:V,"slides-per-view":1,"space-between":0,speed:2e3,parallax:!0,direction:"horizontal",loop:!1,"allow-touch-move":!0,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},onSwiper:b,onSlideChange:x},{"container-start":e.withCtx(()=>[e.createElementVNode("div",{class:"parallax-bg","data-swiper-parallax":C.value,style:e.normalizeStyle({transform:`translate3d(${C.value==="-380%"?0:C.value}, 0, 0)`,"transition-duration":"0ms"})},null,12,Dy)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,j=>(e.openBlock(),e.createBlock(e.unref(ml.SwiperSlide),{class:"slide-box",key:j.id},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.timeSection,(k,z)=>(e.openBlock(),e.createElementBlock("div",{class:"inside-wrap leftSide",key:k.id},[e.createElementVNode("div",{style:e.normalizeStyle({zIndex:z?1:50}),class:"period","data-swiper-parallax":z?-300:0,"data-swiper-parallax-opacity":z?.2:.5},[e.createElementVNode("p",null,e.toDisplayString(k.year),1),e.createElementVNode("div",{class:"period__iconPlus",onClick:X=>g(k)},[e.createElementVNode("img",{ref_for:!0,ref:k.year+z?"right":"left",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05Ljk3OTIyIDE5Ljk1OEMxNS40OTA2IDE5Ljk1OCAxOS45NTg0IDE1LjQ5MDEgMTkuOTU4NCA5Ljk3ODczQzE5Ljk1ODQgNC40NjczNiAxNS40OTA2IC0wLjAwMDQ4ODI4MSA5Ljk3OTIyIC0wLjAwMDQ4ODI4MUM0LjQ2Nzg1IC0wLjAwMDQ4ODI4MSAwIDQuNDY3MzYgMCA5Ljk3ODczQzAgMTUuNDkwMSA0LjQ2Nzg1IDE5Ljk1OCA5Ljk3OTIyIDE5Ljk1OFpNMTQuMTczMiAxMS4wNDU0TDExLjA0NTMgMTEuMDQ1NFYxNC4xNzMzQzExLjA0NTMgMTQuNzQ5MSAxMC41Nzg0IDE1LjIxNiAxMC4wMDI2IDE1LjIxNkM5LjQyNjc3IDE1LjIxNiA4Ljk1OTk3IDE0Ljc0OTEgOC45NTk5NyAxNC4xNzMzVjExLjA0NTRMNS44MzIwMyAxMS4wNDU0QzUuMjU2MiAxMS4wNDU0IDQuNzg5MzkgMTAuNTc4NiA0Ljc4OTM5IDEwLjAwMjdDNC43ODkzOSA5LjQyNjg5IDUuMjU2MiA4Ljk2MDA4IDUuODMyMDMgOC45NjAwOEw4Ljk1OTk3IDguOTYwMDhWNS44MzIxNUM4Ljk1OTk3IDUuMjU2MzEgOS40MjY3NyA0Ljc4OTUgMTAuMDAyNiA0Ljc4OTVDMTAuNTc4NCA0Ljc4OTUgMTEuMDQ1MyA1LjI1NjMxIDExLjA0NTMgNS44MzIxNVY4Ljk2MDA4TDE0LjE3MzIgOC45NjAwOEMxNC43NDkgOC45NjAwOCAxNS4yMTU4IDkuNDI2ODkgMTUuMjE1OCAxMC4wMDI3QzE1LjIxNTggMTAuNTc4NiAxNC43NDkgMTEuMDQ1NCAxNC4xNzMyIDExLjA0NTRaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K",alt:"了解更多"},null,512)],8,Ry),e.createElementVNode("div",Hy,[e.createElementVNode("div",{id:"period__effect__circle"+z,class:"period__effect__circle"},null,8,Wy)])],12,Uy),e.createElementVNode("div",{class:"image","data-swiper-parallax":z?600:-400,"data-swiper-parallax-opacity":z?0:.2},[e.createElementVNode("img",{src:k.imgSrc,alt:k.alt},null,8,Xy)],8,Iy)]))),128)),e.createElementVNode("div",qy,[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.createVNode(jy,{show:c.value,"onUpdate:show":T[0]||(T[0]=k=>c.value=k),historyPopupData:h.value},null,8,["show","historyPopupData"])]),_:1})])]),_:2},1024))),128))]),_:1},512),e.createElementVNode("div",Fy,[e.createElementVNode("div",Yy,[e.createElementVNode("p",Zy,e.toDisplayString((S=n.modelValue)==null?void 0:S.subtitle),1),e.createElementVNode("div",Gy,[T[6]||(T[6]=e.createElementVNode("div",{class:"swiper-button-prev swiper-button-black swiper-position-prev"},null,-1)),e.createElementVNode("h1",Jy,e.toDisplayString((L=n.modelValue)==null?void 0:L.title),1),T[7]||(T[7]=e.createElementVNode("div",{class:"swiper-button-next swiper-button-black swiper-position-next"},null,-1))]),e.createElementVNode("div",{class:"year-pagination",ref_key:"yearPagination",ref:v},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(j,k)=>(e.openBlock(),e.createElementBlock("div",{ref_for:!0,ref_key:"yearBlock",ref:w,class:"year-pagination__box",key:j.timeSection[0].year+k},[e.createElementVNode("h5",{onClick:z=>E(k),class:e.normalizeClass({pageActive:r.value===k})},e.toDisplayString(j.timeSection[0].year),11,Ky),k+1!==N.value.length?(e.openBlock(),e.createElementBlock("div",Qy)):e.createCommentVNode("",!0)]))),128))],512),((O=n.modelValue)==null?void 0:O.btnType)==="btn"?(e.openBlock(),e.createElementBlock("a",{key:0,href:((M=n.modelValue)==null?void 0:M.btnUrl)||"#",target:"_blank",class:"btn-primary mx-auto mt-2 btn-primary--white size-normal"},[e.createElementVNode("div",tb,e.toDisplayString(($=n.modelValue)==null?void 0:$.btnText),1),T[8]||(T[8]=e.createElementVNode("span",{class:"btn-primary__icon"},null,-1))],8,eb)):(e.openBlock(),e.createElementBlock("div",lb,[e.createElementVNode("a",{href:((D=n.modelValue)==null?void 0:D.btnUrl)||"#",class:"nuxt-link-active"},[e.createElementVNode("div",nb,e.toDisplayString((R=n.modelValue)==null?void 0:R.btnText),1),T[9]||(T[9]=e.createElementVNode("span",{class:"circle-link__icon circle-link__icon--light"},null,-1))],8,ob)]))])])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":T[1]||(T[1]=j=>i.value=j),onHandleEdit:T[2]||(T[2]=j=>s.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ey,{key:0,show:s.value,"onUpdate:show":T[5]||(T[5]=j=>s.value=j),data:n.modelValue},null,8,["show","data"]))],64)}}}),fs=H(ab,[["__scopeId","data-v-9f7b9b55"]]),ib={class:"setting-content"},sb={class:"setting-header flex items-center"},rb={class:"setting-body"},db={class:"setting-item"},cb={class:"btn-group"},ub={key:0,class:"drag-handle"},mb=["src"],Ab={class:"item-uplaod flex items-center"},pb=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.ref(!1),o=e.computed(()=>({animation:200,group:"profiles",disabled:!1,ghostClass:"ghost"})),a=c=>c&&c.length>1,i=n,s=t,d=()=>{s("update:show",!1)},u=()=>{i.data.data.push({id:B(),title:"耀华国际教育学校浙江桐乡1",subtitle:"耀华国际教育学校",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:""})},m=c=>{if(i.data.data.length<=3){alert("至少保留3个项目");return}i.data.data=i.data.data.filter(r=>r.id!==c)};return(c,r)=>{const f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("icon-drag-arrow"),v=e.resolveComponent("icon-delete"),w=e.resolveComponent("a-input"),V=e.resolveComponent("icon-plus"),h=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(h,{width:500,visible:n.show,footer:!1,onCancel:d,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",ib,[e.createElementVNode("div",sb,[r[7]||(r[7]=e.createElementVNode("span",{class:"header-title"},"组件背景",-1)),e.createVNode(p,{modelValue:n.data.bgColor,"onUpdate:modelValue":r[0]||(r[0]=g=>n.data.bgColor=g),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"#ffffff"},{default:e.withCtx(()=>[...r[5]||(r[5]=[e.createTextVNode("白色",-1)])]),_:1}),e.createVNode(f,{value:"#F7F7FA"},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("灰色",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",rb,[e.createElementVNode("div",db,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":r[1]||(r[1]=g=>n.data.data=g),"component-data":{tag:"div",type:"transition-group",name:l.value?null:"flip-list"}},o.value,{disabled:!a(n.data.data),onStart:r[2]||(r[2]=g=>l.value=!0),onEnd:r[3]||(r[3]=g=>l.value=!1),"item-key":"id"}),{item:e.withCtx(({element:g})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!a(n.data.data)}]),key:g.id},[e.createElementVNode("div",cb,[a(n.data.data)?(e.openBlock(),e.createElementBlock("div",ub,[e.createVNode(A,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(v,{class:"btn-delete",onClick:y=>m(g.id)},null,8,["onClick"])]),r[8]||(r[8]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(w,{modelValue:g.title,"onUpdate:modelValue":y=>g.title=y,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[9]||(r[9]=e.createElementVNode("p",{class:"item-title"},"子标题",-1)),e.createVNode(w,{modelValue:g.subTitle,"onUpdate:modelValue":y=>g.subTitle=y,placeholder:"请输入子标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[10]||(r[10]=e.createElementVNode("p",{class:"item-title"},"内容",-1)),e.createVNode(w,{modelValue:g.content,"onUpdate:modelValue":y=>g.content=y,placeholder:"请输入内容","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),r[11]||(r[11]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:g.imgSrc},null,8,mb),e.createElementVNode("div",Ab,[e.createVNode(w,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:g.imgSrc,"onUpdate:modelValue":y=>g.imgSrc=y,name:`CardShowcaseProfile_img_${g.id}`},null,8,["modelValue","onUpdate:modelValue","name"])]),e.createVNode(w,{class:"mt-2",modelValue:g.alt,"onUpdate:modelValue":y=>g.alt=y,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],2))]),_:1},16,["modelValue","component-data","disabled"]),e.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:r[4]||(r[4]=g=>u())},[e.createVNode(V),r[12]||(r[12]=e.createElementVNode("span",{class:"btn-text"},"添加",-1))])])])])]),_:1},8,["visible"])}}}),fb=H(pb,[["__scopeId","data-v-c564d09d"]]),vb={key:0,class:"splide-wrapper-desktop"},hb={class:"slide-content"},Vb={class:"slide-content__box bg-white shadow-lg"},gb={key:0,class:"img-wrapper"},yb=["src","alt"],bb={class:"slide-content__box__title"},wb=["innerHTML"],xb={key:2,class:"slide-content__box__content"},kb={class:"swiper-footer"},Nb={class:"swiper-pagination"},_b=["onClick"],Cb={key:1,class:"swiper-wrapper-mobile"},Eb={class:"slide-content-mobile"},Tb={class:"slide-content__box bg-white shadow-lg"},Sb={key:0,class:"img-wrapper"},Pb=["src","alt"],Bb={class:"slide-content__box__title"},Lb=["innerHTML"],Ob={key:2,class:"slide-content__box__content"},Mb=e.defineComponent({name:"CardShowcaseProfile",__name:"index",props:{modelValue:{type:Object,default:()=>({})},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n,o=t,a=()=>{var E;if(l.modelValue&&l.modelValue.data)return;const x={id:((E=l.modelValue)==null?void 0:E.id)||B(),type:"CardShowcaseProfile",bgColor:"",data:[{id:B(),title:"耀华国际教育学校浙江桐乡1",subtitle:"耀华国际教育学校",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:""},{id:B(),title:"耀华国际教育学校浙江桐乡2",subtitle:"耀华国际教育学校",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:""},{id:B(),title:"耀华国际教育学校浙江桐乡3",subtitle:"耀华国际教育学校",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",imgSrc:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/high-school-test/home/different_1_optim.png",alt:""}]};o("update:modelValue",x)},i=e.ref(!1),s=e.ref(!1),d=e.ref(null),u=e.ref(null),m=e.ref(null),c=e.ref(typeof window<"u"?window.innerWidth:1024),r=e.ref(0),f=[yt.Navigation,yt.Pagination,yt.EffectFade],p={type:"loop",perPage:3,perMove:1,focus:"center",gap:"0px",speed:600,arrows:!1,pagination:!1,drag:!0,updateOnMove:!0},A=()=>{var x;(x=l.modelValue)!=null&&x.id&&o("handleDelete",l.modelValue.id)},v=()=>{l.modelValue&&o("handleCopy",l.modelValue)},w=x=>{o("handlePaste",x)},V=()=>{c.value=typeof window<"u"?window.innerWidth:1024};typeof window<"u"&&window.addEventListener("resize",V);const h=x=>{console.log("Splide initialized:",{index:x.index,length:x.length})},g=(x,E)=>{r.value=E},y=()=>{var x;(x=u.value)!=null&&x.splide&&u.value.splide.go("<")},N=()=>{var x;(x=u.value)!=null&&x.splide&&u.value.splide.go(">")},C=x=>{var E;(E=u.value)!=null&&E.splide&&u.value.splide.go(x)},b=x=>{m.value=x};return e.onBeforeUnmount(()=>{typeof window<"u"&&window.removeEventListener("resize",V)}),a(),(x,E)=>{var _,T;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"card-showcase card-showcase-profile",style:e.normalizeStyle({backgroundColor:(_=n.modelValue)==null?void 0:_.bgColor}),onMouseenter:E[2]||(E[2]=S=>i.value=!0),onMouseleave:E[3]||(E[3]=S=>i.value=!1)},[e.createElementVNode("div",{class:"card-showcase__container container-content-middle",ref_key:"cardShowcase",ref:d},[c.value>767.98?(e.openBlock(),e.createElementBlock("div",vb,[e.createVNode(e.unref(_s.Splide),{ref_key:"splideRef",ref:u,options:p,"onSplide:mounted":h,"onSplide:move":g},{default:e.withCtx(()=>{var S;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((S=n.modelValue)==null?void 0:S.data,L=>(e.openBlock(),e.createBlock(e.unref(_s.SplideSlide),{key:L.id},{default:e.withCtx(()=>[e.createElementVNode("div",hb,[e.createElementVNode("div",Vb,[L.imgSrc?(e.openBlock(),e.createElementBlock("div",gb,[e.createElementVNode("img",{class:"img-static",src:L.imgSrc,alt:L.alt||L.title},null,8,yb)])):e.createCommentVNode("",!0),e.createElementVNode("div",bb,e.toDisplayString(L.title),1),L.subtitle?(e.openBlock(),e.createElementBlock("div",{key:1,class:"slide-content__box__subtitle",innerHTML:L.subtitle},null,8,wb)):e.createCommentVNode("",!0),L.content?(e.openBlock(),e.createElementBlock("div",xb,e.toDisplayString(L.content),1)):e.createCommentVNode("",!0)])])]),_:2},1024))),128))]}),_:1},512),e.createElementVNode("div",kb,[e.createElementVNode("div",{class:"swiper-button-prev",onClick:y}),e.createElementVNode("div",Nb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((T=n.modelValue)==null?void 0:T.data,(S,L)=>(e.openBlock(),e.createElementBlock("span",{key:L,class:e.normalizeClass(["swiper-pagination-bullet",{"swiper-pagination-bullet-active":r.value===L}]),onClick:O=>C(L)},null,10,_b))),128))]),e.createElementVNode("div",{class:"swiper-button-next",onClick:N})])])):(e.openBlock(),e.createElementBlock("div",Cb,[e.createVNode(e.unref(ml.Swiper),{ref_key:"showCaseSlideMobile",ref:m,modules:f,"centered-slides":!0,"slides-per-view":1,speed:600,effect:"fade",fadeEffect:{crossFade:!0},loop:!0,autoHeight:!0,navigation:{nextEl:".swiper-button-next-mobile",prevEl:".swiper-button-prev-mobile"},pagination:{el:".swiper-pagination-mobile",clickable:!0},class:"swiper showcaseSlide swiper--mobile",onSwiper:b},{default:e.withCtx(()=>{var S;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((S=n.modelValue)==null?void 0:S.data,L=>(e.openBlock(),e.createBlock(e.unref(ml.SwiperSlide),{key:L.id},{default:e.withCtx(()=>[e.createElementVNode("div",Eb,[e.createElementVNode("div",Tb,[L.imgSrc?(e.openBlock(),e.createElementBlock("div",Sb,[e.createElementVNode("img",{class:"img-static",src:L.imgSrc,alt:L.alt||L.title},null,8,Pb)])):e.createCommentVNode("",!0),e.createElementVNode("h4",Bb,e.toDisplayString(L.title),1),L.subtitle?(e.openBlock(),e.createElementBlock("div",{key:1,class:"slide-content__box__subtitle",innerHTML:L.subtitle},null,8,Lb)):e.createCommentVNode("",!0),L.content?(e.openBlock(),e.createElementBlock("div",Ob,e.toDisplayString(L.content),1)):e.createCommentVNode("",!0)])])]),_:2},1024))),128))]}),_:1},512),E[5]||(E[5]=e.createElementVNode("div",{class:"swiper-footer"},[e.createElementVNode("div",{class:"swiper-button-prev-mobile swiper-button-prev"}),e.createElementVNode("div",{class:"swiper-pagination-mobile swiper-pagination"}),e.createElementVNode("div",{class:"swiper-button-next-mobile swiper-button-next"})],-1))]))],512),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:i.value,"onUpdate:show":E[0]||(E[0]=S=>i.value=S),onHandleEdit:E[1]||(E[1]=S=>s.value=!0),onHandleDelete:A,onHandleCopy:v,onHandlePaste:w},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(fb,{key:0,show:s.value,"onUpdate:show":E[4]||(E[4]=S=>s.value=S),data:n.modelValue},null,8,["show","data"]))],64)}}}),vs=H(Mb,[["__scopeId","data-v-25af4a04"]]),zb={class:"seting-box"},jb=["src"],$b={class:"item-uplaod flex items-center"},Db=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=e.ref({title:"",content:"",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg"}),a=()=>{l("update:show",!1)};return(i,s)=>{const d=e.resolveComponent("a-input"),u=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(u,{width:500,visible:n.show,footer:!1,onCancel:a,unmountOnClose:""},{title:e.withCtx(()=>{var m;return[e.createTextVNode(e.toDisplayString((m=n.data)==null?void 0:m.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",zb,[s[4]||(s[4]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(d,{modelValue:n.data.title,"onUpdate:modelValue":s[0]||(s[0]=m=>n.data.title=m),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),s[5]||(s[5]=e.createElementVNode("p",{class:"item-title mt-2"},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:n.data.content,"onUpdate:modelValue":s[1]||(s[1]=m=>n.data.content=m),name:"CountDown_editor"},null,8,["modelValue"]),s[6]||(s[6]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:o.value.imgSrc},null,8,jb),e.createElementVNode("div",$b,[e.createVNode(d,{modelValue:o.value.imgSrc,"onUpdate:modelValue":s[2]||(s[2]=m=>o.value.imgSrc=m),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:o.value.imgSrc,"onUpdate:modelValue":s[3]||(s[3]=m=>o.value.imgSrc=m),name:"CountDown","button-class":"fit-content"},null,8,["modelValue"])])])]),_:1},8,["visible"])}}}),Ub=H(Db,[["__scopeId","data-v-e5d63e67"]]),Rb={class:"count-down__img"},Hb=["src"],Wb={class:"count-down__content"},Ib=["innerHTML"],Xb={class:"content__title"},qb={class:"count-down__timer"},Fb={class:"count-down__timer__time"},Yb={class:"count-down__timer__time"},Zb={class:"count-down__timer__time"},Gb={class:"count-down__timer__time"},Jb=e.defineComponent({name:"CountDown",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=e.ref({day:0,hour:0,min:0,sec:0}),d=e.ref(null),u=()=>{o("handleDelete",l.modelValue.id)},m=()=>{o("handleCopy",l.modelValue)},c=p=>{o("handlePaste",p)},r=()=>{var A;if(l.modelValue&&l.modelValue.data)return;const p={id:((A=l.modelValue)==null?void 0:A.id)||B(),type:"CountDown",title:"title",content:"content",countTime:"2025-08-08",imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",bgColor:"#ffffff"};o("update:modelValue",p),e.nextTick(()=>{f()})},f=()=>{d.value&&clearInterval(d.value),d.value=setInterval(()=>{const p=new Date,v=new Date(l.modelValue.countTime).getTime()-p.getTime();v<=0||(s.value.day=Math.floor(v/(1e3*60*60*24)),s.value.hour=Math.floor(v/(1e3*60*60)%24),s.value.min=Math.floor(v/(1e3*60)%60),s.value.sec=Math.floor(v/1e3%60),s.value.day===0&&s.value.hour===0&&s.value.min===0&&s.value.sec===0&&(clearInterval(d.value),d.value=null))},1e3)};return r(),(p,A)=>{var v,w,V,h,g,y,N,C;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"count-down",onMouseenter:A[2]||(A[2]=b=>a.value=!0),onMouseleave:A[3]||(A[3]=b=>a.value=!1)},[e.createElementVNode("div",{style:e.normalizeStyle({backgroundColor:(v=n.modelValue)==null?void 0:v.bgColor,marginTop:"30px",marginBottom:"30px"}),class:"count-down-container"},[e.createElementVNode("div",Rb,[e.createElementVNode("img",{src:(w=n.modelValue)==null?void 0:w.imgSrc,alt:""},null,8,Hb)]),e.createElementVNode("div",Wb,[e.createElementVNode("div",{class:"content__text",innerHTML:(V=n.modelValue)==null?void 0:V.content},null,8,Ib),e.createElementVNode("div",Xb,e.toDisplayString((h=n.modelValue)==null?void 0:h.title),1)]),e.createElementVNode("ul",qb,[e.createElementVNode("li",null,[e.createElementVNode("div",Fb,e.toDisplayString((g=s.value)==null?void 0:g.day),1),A[5]||(A[5]=e.createElementVNode("div",{class:"count-down__timer__label"},"日",-1))]),e.createElementVNode("li",null,[e.createElementVNode("div",Yb,e.toDisplayString((y=s.value)==null?void 0:y.hour),1),A[6]||(A[6]=e.createElementVNode("div",{class:"count-down__timer__label"},"小时",-1))]),e.createElementVNode("li",null,[e.createElementVNode("div",Zb,e.toDisplayString((N=s.value)==null?void 0:N.min),1),A[7]||(A[7]=e.createElementVNode("div",{class:"count-down__timer__label"},"分钟",-1))]),e.createElementVNode("li",null,[e.createElementVNode("div",Gb,e.toDisplayString((C=s.value)==null?void 0:C.sec),1),A[8]||(A[8]=e.createElementVNode("div",{class:"count-down__timer__label"},"秒",-1))])])],4),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":A[0]||(A[0]=b=>a.value=b),onHandleEdit:A[1]||(A[1]=b=>i.value=!0),onHandleDelete:u,onHandleCopy:m,onHandlePaste:c},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ub,{key:0,show:i.value,"onUpdate:show":A[4]||(A[4]=b=>i.value=b),data:n.modelValue},null,8,["show","data"]))],64)}}}),hs=H(Jb,[["__scopeId","data-v-6578469f"]]),Kb={class:"seting-box"},Qb={class:"setting-header flex items-center"},ew={class:"setting-header flex items-center"},tw={class:"setting-header flex items-center"},lw=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=()=>{l("update:show",!1)};return(a,i)=>{const s=e.resolveComponent("a-option"),d=e.resolveComponent("a-select"),u=e.resolveComponent("a-slider"),m=e.resolveComponent("a-input"),c=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(c,{width:500,visible:n.show,footer:!1,onCancel:o,unmountOnClose:""},{title:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=n.data)==null?void 0:r.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",Kb,[e.createElementVNode("div",Qb,[i[7]||(i[7]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(d,{modelValue:n.data.width,"onUpdate:modelValue":i[0]||(i[0]=r=>n.data.width=r),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(s,{value:"default"},{default:e.withCtx(()=>[...i[3]||(i[3]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(s,{value:"small"},{default:e.withCtx(()=>[...i[4]||(i[4]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(s,{value:"middle"},{default:e.withCtx(()=>[...i[5]||(i[5]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(s,{value:"max"},{default:e.withCtx(()=>[...i[6]||(i[6]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",ew,[i[8]||(i[8]=e.createElementVNode("span",{class:"header-title"},"组件高度",-1)),e.createVNode(u,{modelValue:n.data.height,"onUpdate:modelValue":i[1]||(i[1]=r=>n.data.height=r),min:320,max:1080,"default-value":10,"show-input":""},null,8,["modelValue"])]),e.createElementVNode("div",tw,[i[9]||(i[9]=e.createElementVNode("span",{class:"header-title"},"网址",-1)),e.createVNode(m,{modelValue:n.data.url,"onUpdate:modelValue":i[2]||(i[2]=r=>n.data.url=r),style:{background:"#ffffff"},placeholder:"请输入","allow-clear":""},null,8,["modelValue"])])])]),_:1},8,["visible"])}}}),ow=H(lw,[["__scopeId","data-v-b71264f4"]]),nw={class:"custom-iframe"},aw=["height","src"],iw=e.defineComponent({name:"CustomIframe",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1);e.ref({day:0,hour:0,min:0,sec:0}),e.ref(null);const s=e.computed(()=>{var p;const r=(p=l.modelValue)==null?void 0:p.width;return!r||r==="default"?"container-content":r.startsWith("container-content-")?r:{small:"acontainer-content-small",middle:"acontainer-content-middle",medium:"acontainer-content-middle",max:"acontainer-content-max"}[r]||"container-content"}),d=()=>{o("handleDelete",l.modelValue.id)},u=()=>{o("handleCopy",l.modelValue)},m=r=>{o("handlePaste",r)};return(()=>{var f;if(l.modelValue&&l.modelValue.height)return;const r={id:((f=l.modelValue)==null?void 0:f.id)||B(),type:"CustomIframe",width:"",height:550,url:"https://www.baidu.com"};o("update:modelValue",r)})(),(r,f)=>{var p,A,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(p=n.modelValue)==null?void 0:p.bgColor}]),class:"custom-iframe-container",onMouseenter:f[2]||(f[2]=w=>a.value=!0),onMouseleave:f[3]||(f[3]=w=>a.value=!1)},[e.createElementVNode("div",nw,[e.createElementVNode("div",{class:e.normalizeClass([s.value])},[e.createElementVNode("iframe",{width:"450",height:(A=n.modelValue)==null?void 0:A.height,frameborder:"0",src:(v=n.modelValue)==null?void 0:v.url,allow:"",style:{border:"0"}},null,8,aw)],2)]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":f[0]||(f[0]=w=>a.value=w),onHandleEdit:f[1]||(f[1]=w=>i.value=!0),onHandleDelete:d,onHandleCopy:u,onHandlePaste:m},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ow,{key:0,show:i.value,"onUpdate:show":f[4]||(f[4]=w=>i.value=w),data:n.modelValue},null,8,["show","data"]))],64)}}}),Vs=H(iw,[["__scopeId","data-v-4468f564"]]),sw={class:"seting-box"},rw={class:"setting-header items-center"},dw={key:0},cw={class:"draggable_box"},uw={class:"drag_top_box"},mw=["onClick"],Aw=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),o=e.ref(!1),a=n,i=e.ref(new Set),s=f=>{i.value.has(f.id)?i.value.delete(f.id):i.value.add(f.id)},d=f=>{a.data.data=a.data.data.filter(p=>p.id!==f)},u=()=>{a.data.data.push({name:"New Contact",title:"",region:"",link:"",id:B()}),e.nextTick(()=>{const p=document.querySelector(".arco-drawer-body");p&&(p.scrollTop=p.scrollHeight)})},m=f=>i.value.has(f.id),c=t,r=()=>{c("update:show",!1)};return(f,p)=>{const A=e.resolveComponent("a-slider"),v=e.resolveComponent("icon-drag-dot"),w=e.resolveComponent("icon-drag-arrow"),V=e.resolveComponent("icon-delete"),h=e.resolveComponent("a-input"),g=e.resolveComponent("icon-plus"),y=e.resolveComponent("a-button"),N=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(N,{width:500,visible:n.show,footer:!1,onCancel:r,unmountOnClose:""},{title:e.withCtx(()=>{var C;return[e.createTextVNode(e.toDisplayString((C=n.data)==null?void 0:C.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",sw,[e.createElementVNode("div",rw,[p[9]||(p[9]=e.createElementVNode("p",{class:"item-title"},"组件高度(最小值: 1, 最大值: 2)",-1)),e.createVNode(A,{modelValue:n.data.columns,"onUpdate:modelValue":p[0]||(p[0]=C=>n.data.columns=C),min:1,max:2,"default-value":2,"show-input":""},null,8,["modelValue"]),p[10]||(p[10]=e.createElementVNode("p",{class:"item-title"},"Contact Person",-1)),n.data.data.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",dw,"No items found.")),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.data,"onUpdate:modelValue":p[1]||(p[1]=C=>n.data.data=C),"component-data":{tag:"div",type:"transition-group",name:o.value?null:"flip-list"}},l.value,{disabled:!1,onStart:p[2]||(p[2]=C=>o.value=!0),onEnd:p[3]||(p[3]=C=>o.value=!1),"item-key":"id"}),{item:e.withCtx(({element:C})=>[e.createElementVNode("div",cw,[e.createElementVNode("div",uw,[e.createElementVNode("div",{onClick:b=>s(C)},[e.createVNode(v,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(C.name),1)],8,mw),e.createElementVNode("div",null,[e.createVNode(w,{class:"icon_drag"}),e.createVNode(V,{class:"btn-delete",onClick:e.withModifiers(b=>d(C.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[p[4]||(p[4]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Name",-1)),e.createVNode(h,{modelValue:C.name,"onUpdate:modelValue":b=>C.name=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),p[5]||(p[5]=e.createElementVNode("p",{class:"item-title"},"Title",-1)),e.createVNode(h,{modelValue:C.title,"onUpdate:modelValue":b=>C.title=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),p[6]||(p[6]=e.createElementVNode("p",{class:"item-title"},"Region",-1)),e.createVNode(h,{modelValue:C.region,"onUpdate:modelValue":b=>C.region=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),p[7]||(p[7]=e.createElementVNode("p",{class:"item-title"},"Email",-1)),e.createVNode(h,{modelValue:C.link,"onUpdate:modelValue":b=>C.link=b,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!m(C)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"]),e.createVNode(y,{type:"primary",onClick:u},{icon:e.withCtx(()=>[e.createVNode(g)]),default:e.withCtx(()=>[p[8]||(p[8]=e.createTextVNode(" 联系人 ",-1))]),_:1})])])]),_:1},8,["visible"])}}}),pw=H(Aw,[["__scopeId","data-v-3ba11141"]]),fi="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19%204H5C4.20435%204%203.44129%204.31607%202.87868%204.87868C2.31607%205.44129%202%206.20435%202%207V17C2%2017.7956%202.31607%2018.5587%202.87868%2019.1213C3.44129%2019.6839%204.20435%2020%205%2020H19C19.7956%2020%2020.5587%2019.6839%2021.1213%2019.1213C21.6839%2018.5587%2022%2017.7956%2022%2017V7C22%206.20435%2021.6839%205.44129%2021.1213%204.87868C20.5587%204.31607%2019.7956%204%2019%204ZM19%206L12.5%2010.47C12.348%2010.5578%2012.1755%2010.604%2012%2010.604C11.8245%2010.604%2011.652%2010.5578%2011.5%2010.47L5%206H19Z'%20fill='%230032A0'/%3e%3c/svg%3e",fw={class:"contact-us-list"},vw={class:"contact-us-list__list"},hw={class:"contact-us-list__item"},Vw={class:"contact-us-list__item__name"},gw={class:"contact-us-list__item__title"},yw={class:"contact-us-list__item__region"},bw={class:"contact-us-list__item__link"},ww={class:"icon-link icon-link--md"},xw=["href"],kw={class:"icon-link__text"},Nw=e.defineComponent({name:"ContactUsList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=()=>{o("handleDelete",l.modelValue.id)},d=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return(()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"ContactUsList",columns:2,data:[{name:"New Contact111",title:"title1111",region:"region111",link:"111@qq.com",id:B()},{name:"New Contact111222",title:"title12222",region:"region111",link:"111@qq.com",id:B()},{name:"New Contac33333",title:"title3333",region:"region33333",link:"111@qq.com",id:B()}]};o("update:modelValue",c)})(),(c,r)=>{var A;const f=e.resolveComponent("a-col"),p=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(A=n.modelValue)==null?void 0:A.bgColor}]),class:"contact_wrap",onMouseenter:r[2]||(r[2]=v=>a.value=!0),onMouseleave:r[3]||(r[3]=v=>a.value=!1)},[e.createElementVNode("div",fw,[e.createElementVNode("div",null,[e.createElementVNode("ul",vw,[e.createVNode(p,{style:{display:"flex"}},{default:e.withCtx(()=>{var v;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=n.modelValue)==null?void 0:v.data,w=>{var V,h,g,y;return e.openBlock(),e.createBlock(f,{sm:{span:((V=n.modelValue)==null?void 0:V.columns)===2?12:24},md:{span:((h=n.modelValue)==null?void 0:h.columns)===2?12:24},lg:{span:((g=n.modelValue)==null?void 0:g.columns)===2?12:24},xl:{span:((y=n.modelValue)==null?void 0:y.columns)===2?12:24},style:{"margin-top":"16px"}},{default:e.withCtx(()=>[e.createElementVNode("li",hw,[e.createElementVNode("h6",Vw,e.toDisplayString(w.name),1),e.createElementVNode("p",gw,e.toDisplayString(w.title),1),e.createElementVNode("div",yw,e.toDisplayString(w.region),1),e.createElementVNode("div",bw,[e.createElementVNode("div",ww,[e.createElementVNode("a",{href:`mailto:${w.link}`,target:"_blank",class:"icon-link__wrapper"},[e.createElementVNode("span",{class:"icon-link__icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(fi)})`})},null,4),e.createElementVNode("div",kw,[e.createElementVNode("span",null,e.toDisplayString(w.link),1)])],8,xw)])])])]),_:2},1032,["sm","md","lg","xl"])}),256))]}),_:1})])])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":r[0]||(r[0]=v=>a.value=v),onHandleEdit:r[1]||(r[1]=v=>i.value=!0),onHandleDelete:s,onHandleCopy:d,onHandlePaste:u},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(pw,{key:0,show:i.value,"onUpdate:show":r[4]||(r[4]=v=>i.value=v),data:n.modelValue},null,8,["show","data"]))],64)}}}),gs=H(Nw,[["__scopeId","data-v-161661a9"]]),_w={class:"seting-box"},Cw={key:0},Ew={class:"setting-header items-center"},Tw={class:"draggable_box"},Sw={class:"drag_top_box"},Pw=["onClick"],Bw={key:1},Lw={class:"setting-header items-center"},Ow={class:"draggable_box"},Mw={class:"drag_top_box"},zw=["onClick"],jw=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),o=e.ref(!1),a=n,i=e.ref(new Set),s=e.ref(new Set),d=V=>{s.value.has(V.id)?s.value.delete(V.id):s.value.add(V.id)},u=V=>{i.value.has(V.id)?i.value.delete(V.id):i.value.add(V.id)},m=V=>{a.data.headers=a.data.headers.filter(h=>h.id!==V)},c=V=>{a.data.rows=a.data.rows.filter(h=>h.id!==V)},r=()=>{a.data.rows.push({title:"请输入",first:"",second:"",third:"",forth:"",id:B()})},f=()=>{a.data.headers.push({title:"请输入",id:B()}),e.nextTick(()=>{const h=document.querySelector(".arco-drawer-body");h&&(h.scrollTop=h.scrollHeight)})},p=V=>i.value.has(V.id),A=V=>s.value.has(V.id),v=t,w=()=>{v("update:show",!1)};return(V,h)=>{const g=e.resolveComponent("icon-drag-dot"),y=e.resolveComponent("icon-drag-arrow"),N=e.resolveComponent("icon-delete"),C=e.resolveComponent("a-input"),b=e.resolveComponent("icon-plus"),x=e.resolveComponent("a-button"),E=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(E,{width:500,visible:n.show,footer:!1,onCancel:w,unmountOnClose:""},{title:e.withCtx(()=>{var _;return[e.createTextVNode(e.toDisplayString((_=n.data)==null?void 0:_.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",_w,[h[14]||(h[14]=e.createElementVNode("div",{class:"part_title"},"表格头部",-1)),n.data.headers.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Cw,"暂无数据")),e.createElementVNode("div",Ew,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.headers,"onUpdate:modelValue":h[0]||(h[0]=_=>n.data.headers=_),"component-data":{tag:"div",type:"transition-group",name:o.value?null:"flip-list"}},l.value,{disabled:!1,onStart:h[1]||(h[1]=_=>o.value=!0),onEnd:h[2]||(h[2]=_=>o.value=!1),"item-key":"id"}),{item:e.withCtx(({element:_})=>[e.createElementVNode("div",Tw,[e.createElementVNode("div",Sw,[e.createElementVNode("div",{onClick:T=>u(_)},[e.createVNode(g,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(_.title),1)],8,Pw),e.createElementVNode("div",null,[e.createVNode(y,{class:"icon_drag"}),e.createVNode(N,{class:"btn-delete",onClick:e.withModifiers(T=>m(_.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[h[6]||(h[6]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Title",-1)),e.createVNode(C,{modelValue:_.title,"onUpdate:modelValue":T=>_.title=T,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!p(_)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"])]),e.createVNode(x,{type:"primary",onClick:f},{icon:e.withCtx(()=>[e.createVNode(b)]),default:e.withCtx(()=>[h[7]||(h[7]=e.createTextVNode(" 新增 ",-1))]),_:1}),h[15]||(h[15]=e.createElementVNode("div",{style:{"margin-top":"30px"},class:"part_title"},"表格行",-1)),n.data.rows.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Bw,"暂无数据")),e.createElementVNode("div",Lw,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.rows,"onUpdate:modelValue":h[3]||(h[3]=_=>n.data.rows=_),"component-data":{tag:"div",type:"transition-group",name:o.value?null:"flip-list"}},l.value,{disabled:!1,onStart:h[4]||(h[4]=_=>o.value=!0),onEnd:h[5]||(h[5]=_=>o.value=!1),"item-key":"id"}),{item:e.withCtx(({element:_})=>[e.createElementVNode("div",Ow,[e.createElementVNode("div",Mw,[e.createElementVNode("div",{onClick:T=>d(_)},[e.createVNode(g,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(_.title),1)],8,zw),e.createElementVNode("div",null,[e.createVNode(y,{class:"icon_drag"}),e.createVNode(N,{class:"btn-delete",onClick:e.withModifiers(T=>c(_.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[h[8]||(h[8]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Title",-1)),e.createVNode(C,{modelValue:_.title,"onUpdate:modelValue":T=>_.title=T,placeholder:"请输入","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[9]||(h[9]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"First",-1)),e.createVNode(C,{modelValue:_.first,"onUpdate:modelValue":T=>_.first=T,placeholder:"请输入","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[10]||(h[10]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Second",-1)),e.createVNode(C,{modelValue:_.second,"onUpdate:modelValue":T=>_.second=T,placeholder:"请输入","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[11]||(h[11]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Third",-1)),e.createVNode(C,{modelValue:_.third,"onUpdate:modelValue":T=>_.third=T,placeholder:"请输入","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[12]||(h[12]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Forth",-1)),e.createVNode(C,{modelValue:_.forth,"onUpdate:modelValue":T=>_.forth=T,placeholder:"请输入","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!A(_)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"])]),e.createVNode(x,{type:"primary",onClick:r},{icon:e.withCtx(()=>[e.createVNode(b)]),default:e.withCtx(()=>[h[13]||(h[13]=e.createTextVNode(" 新增 ",-1))]),_:1})])]),_:1},8,["visible"])}}}),$w=H(jw,[["__scopeId","data-v-1f0c946c"]]),Dw={class:"count-down"},Uw={class:"table-two"},Rw={class:"table-two__wrapper"},Hw={class:"tableTwo"},Ww={key:0,class:"tableTwo__th"},Iw={key:0},Xw={class:"tableTwo__row"},qw=e.defineComponent({name:"TableTwo",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=()=>{o("handleDelete",l.modelValue.id)},d=()=>{o("handleCopy",l.modelValue)},u=c=>{o("handlePaste",c)};return(()=>{var r;if(l.modelValue&&l.modelValue.data)return;const c={id:((r=l.modelValue)==null?void 0:r.id)||B(),type:"TableTwo",headers:[{title:1},{title:2},{title:3},{title:4},{title:5}],rows:[{title:"1",first:"1",second:"1",third:"1",forth:"1"},{title:"2",first:"2",second:"2",third:"2",forth:"2"}]};o("update:modelValue",c)})(),(c,r)=>{var f;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(f=n.modelValue)==null?void 0:f.bgColor}]),class:"table-two-container",onMouseenter:r[2]||(r[2]=p=>a.value=!0),onMouseleave:r[3]||(r[3]=p=>a.value=!1)},[e.createElementVNode("div",Dw,[e.createElementVNode("div",Uw,[e.createElementVNode("div",Rw,[e.createElementVNode("table",Hw,[e.createElementVNode("thead",null,[n.modelValue&&n.modelValue.headers&&n.modelValue.headers.length?(e.openBlock(),e.createElementBlock("tr",Ww,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.modelValue.headers,p=>(e.openBlock(),e.createElementBlock("th",null,[e.createElementVNode("p",null,e.toDisplayString(p.title),1)]))),256))])):e.createCommentVNode("",!0)]),n.modelValue&&n.modelValue.rows&&n.modelValue.rows.length?(e.openBlock(),e.createElementBlock("tbody",Iw,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.modelValue.rows,p=>(e.openBlock(),e.createElementBlock("tr",Xw,[e.createElementVNode("td",null,e.toDisplayString(p.title),1),e.createElementVNode("td",null,e.toDisplayString(p.first),1),e.createElementVNode("td",null,e.toDisplayString(p.second),1),e.createElementVNode("td",null,e.toDisplayString(p.third),1),e.createElementVNode("td",null,e.toDisplayString(p.forth),1)]))),256))])):e.createCommentVNode("",!0)])])])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":r[0]||(r[0]=p=>a.value=p),onHandleEdit:r[1]||(r[1]=p=>i.value=!0),onHandleDelete:s,onHandleCopy:d,onHandlePaste:u},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($w,{key:0,show:i.value,"onUpdate:show":r[4]||(r[4]=p=>i.value=p),data:n.modelValue},null,8,["show","data"]))],64)}}}),ys=H(qw,[["__scopeId","data-v-78e41c69"]]),Fw={class:"seting-box"},Yw=["src"],Zw={class:"item-uplaod flex items-center"},Gw={key:2,class:"link-title-box"},Jw={key:3},Kw=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=t,o=e.ref(!1),a=()=>{l("update:show",!1)},i=()=>{o.value=!1},s=()=>{o.value=!o.value};return(d,u)=>{const m=e.resolveComponent("a-input"),c=e.resolveComponent("a-divider"),r=e.resolveComponent("a-button"),f=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),A=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(A,{width:500,visible:n.show,footer:!1,onCancel:a,unmountOnClose:""},{title:e.withCtx(()=>{var v;return[e.createTextVNode(e.toDisplayString((v=n.data)==null?void 0:v.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>{var v,w;return[e.createElementVNode("div",Fw,[u[14]||(u[14]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(m,{modelValue:n.data.title,"onUpdate:modelValue":u[0]||(u[0]=V=>n.data.title=V),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),u[15]||(u[15]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),(v=n.data)!=null&&v.image?(e.openBlock(),e.createElementBlock("img",{key:0,class:"item-img",src:(w=n.data)==null?void 0:w.image},null,8,Yw)):e.createCommentVNode("",!0),e.createElementVNode("div",Zw,[e.createVNode(m,{modelValue:n.data.image,"onUpdate:modelValue":u[1]||(u[1]=V=>n.data.image=V),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.image,"onUpdate:modelValue":u[2]||(u[2]=V=>n.data.image=V),name:"BannerImageWithLink","button-class":"fit-content"},null,8,["modelValue"])]),e.createVNode(c,{class:"divider_box",type:"dashed",size:1}),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,{key:1,type:"outline",onClick:s},{default:e.withCtx(()=>[...u[6]||(u[6]=[e.createTextVNode("添加链接",-1)])]),_:1})),o.value?(e.openBlock(),e.createElementBlock("div",Gw,[u[8]||(u[8]=e.createElementVNode("h4",null,"链接",-1)),e.createVNode(r,{type:"text",onClick:i},{default:e.withCtx(()=>[...u[7]||(u[7]=[e.createTextVNode("移除",-1)])]),_:1})])):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",Jw,[u[11]||(u[11]=e.createElementVNode("p",{class:"item-title"},"文本",-1)),e.createVNode(m,{modelValue:n.data.text,"onUpdate:modelValue":u[3]||(u[3]=V=>n.data.text=V),placeholder:"请输入文本","allow-clear":""},null,8,["modelValue"]),u[12]||(u[12]=e.createElementVNode("p",{class:"item-title"},"链接类型",-1)),e.createVNode(p,{modelValue:n.data.linkType,"onUpdate:modelValue":u[4]||(u[4]=V=>n.data.linkType=V),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(f,{value:"External Link"},{default:e.withCtx(()=>[...u[9]||(u[9]=[e.createTextVNode("外部链接",-1)])]),_:1}),e.createVNode(f,{value:"Internal Link"},{default:e.withCtx(()=>[...u[10]||(u[10]=[e.createTextVNode("内容链接",-1)])]),_:1})]),_:1},8,["modelValue"]),u[13]||(u[13]=e.createElementVNode("p",{class:"item-title"},"链接",-1)),e.createVNode(m,{modelValue:n.data.link,"onUpdate:modelValue":u[5]||(u[5]=V=>n.data.link=V),placeholder:"请输入链接","allow-clear":""},null,8,["modelValue"])])):e.createCommentVNode("",!0)])]}),_:1},8,["visible"])}}}),Qw=H(Kw,[["__scopeId","data-v-f13d1ac5"]]),ex={class:"banner-image-with-link"},tx={class:"banner-body"},lx={class:"banner-body__title"},ox={class:"banner-body__link"},nx={class:"circle-link circle-link--light"},ax=["href"],ix=e.defineComponent({name:"BannerImageWithLink",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=()=>{o("handleDelete",l.modelValue.id)},d=()=>{o("handleCopy",l.modelValue)},u=f=>{o("handlePaste",f)},m=f=>{o("handleClick",f)};(()=>{var p;if(l.modelValue&&l.modelValue.data)return;const f={id:((p=l.modelValue)==null?void 0:p.id)||B(),type:"BannerImageWithLink",title:"bing-bannerImgLink",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/pdf/TX%20Brochure%20Cover_optim_origin.png",text:"哈哈哈",linkType:"External Link",link:"https://www.baidu.com"};o("update:modelValue",f),console.log("props.modelValue111111111",l.modelValue)})();const r=e.computed(()=>{var p;return(p=l.modelValue)!=null&&p.image?`url(${l.modelValue.image})`:"none"});return(f,p)=>{var A,v,w,V,h,g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(A=n.modelValue)==null?void 0:A.bgColor}]),class:"custom-iframe-container",onMouseenter:p[3]||(p[3]=y=>a.value=!0),onMouseleave:p[4]||(p[4]=y=>a.value=!1)},[e.createElementVNode("div",ex,[e.createElementVNode("div",{class:"banner-wrapper",style:e.normalizeStyle({"--bg-image":r.value})},[e.createElementVNode("div",tx,[e.createElementVNode("div",lx,e.toDisplayString(((v=n.modelValue)==null?void 0:v.title)||"title"),1),e.createElementVNode("div",ox,[e.createElementVNode("div",nx,[(w=n.modelValue)!=null&&w.link&&n.modelValue.link.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,href:n.modelValue.link,target:"_blank"},[e.createElementVNode("div",null,e.toDisplayString(((V=n.modelValue)==null?void 0:V.text)||"bing-placholder"),1),p[6]||(p[6]=e.createElementVNode("span",{class:"circle-link__icon circle-link__icon--light"},null,-1))],8,ax)):(h=n.modelValue)!=null&&h.link?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:p[0]||(p[0]=y=>m(n.modelValue.link))},[e.createElementVNode("div",null,e.toDisplayString(((g=n.modelValue)==null?void 0:g.text)||"bing-placholder"),1),p[7]||(p[7]=e.createElementVNode("span",{class:"circle-link__icon circle-link__icon--light"},null,-1))])):e.createCommentVNode("",!0)])])])],4)]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":p[1]||(p[1]=y=>a.value=y),onHandleEdit:p[2]||(p[2]=y=>i.value=!0),onHandleDelete:s,onHandleCopy:d,onHandlePaste:u},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Qw,{key:0,show:i.value,"onUpdate:show":p[5]||(p[5]=y=>i.value=y),data:n.modelValue},null,8,["show","data"]))],64)}}}),bs=H(ix,[["__scopeId","data-v-3189597f"]]),sx={class:"seting-box"},rx=["src"],dx={class:"item-uplaod flex items-center"},cx={key:0},ux=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=e.ref([]),a=t,i=()=>{a("update:show",!1)},s=u=>{o.value=o.value.filter(m=>m!==l.data.linkList[u].type),l.data.linkList.splice(u,1)},d=u=>{o.value.includes(u)||(o.value.push(u),l.data.linkList.push({type:u,text:"",url:"",linkType:"textOnly"}))};return(u,m)=>{const c=e.resolveComponent("a-option"),r=e.resolveComponent("a-select"),f=e.resolveComponent("a-input"),p=e.resolveComponent("a-button"),A=e.resolveComponent("a-button-group"),v=e.resolveComponent("icon-close"),w=e.resolveComponent("a-collapse-item"),V=e.resolveComponent("a-collapse"),h=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(h,{width:600,visible:n.show,footer:!1,onCancel:i,unmountOnClose:""},{title:e.withCtx(()=>{var g;return[e.createTextVNode(e.toDisplayString((g=n.data)==null?void 0:g.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",sx,[m[28]||(m[28]=e.createElementVNode("p",{class:"item-title"},"内容宽度",-1)),e.createVNode(r,{style:{width:"320px",background:"#ffffff"},modelValue:n.data.width,"onUpdate:modelValue":m[0]||(m[0]=g=>n.data.width=g),placeholder:"Please select ..."},{default:e.withCtx(()=>[e.createVNode(c,{value:800},{default:e.withCtx(()=>[...m[11]||(m[11]=[e.createTextVNode("Small Width",-1)])]),_:1}),e.createVNode(c,{value:952},{default:e.withCtx(()=>[...m[12]||(m[12]=[e.createTextVNode("Default Width",-1)])]),_:1}),e.createVNode(c,{value:1208},{default:e.withCtx(()=>[...m[13]||(m[13]=[e.createTextVNode("Middle Width",-1)])]),_:1}),e.createVNode(c,{value:1920},{default:e.withCtx(()=>[...m[14]||(m[14]=[e.createTextVNode("Max Width",-1)])]),_:1})]),_:1},8,["modelValue"]),m[29]||(m[29]=e.createElementVNode("p",{class:"item-title"},"标题",-1)),e.createVNode(f,{modelValue:n.data.title,"onUpdate:modelValue":m[1]||(m[1]=g=>n.data.title=g),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),m[30]||(m[30]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:n.data.image},null,8,rx),e.createElementVNode("div",dx,[e.createVNode(f,{modelValue:n.data.image,"onUpdate:modelValue":m[2]||(m[2]=g=>n.data.image=g),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.image,"onUpdate:modelValue":m[3]||(m[3]=g=>n.data.image=g),name:"ContactUsInfo","button-class":"fit-content"},null,8,["modelValue"])]),m[31]||(m[31]=e.createElementVNode("p",{class:"item-title"},"Image Alt",-1)),e.createVNode(f,{modelValue:n.data.imageAlt,"onUpdate:modelValue":m[4]||(m[4]=g=>n.data.imageAlt=g),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"]),m[32]||(m[32]=e.createElementVNode("p",{class:"item-title"}," Add Contact Method (This order will not be reflected on page.) ",-1)),e.createVNode(A,{type:"primary"},{default:e.withCtx(()=>[o.value.includes("pin")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:0,onClick:m[5]||(m[5]=g=>d("pin"))},{default:e.withCtx(()=>[...m[15]||(m[15]=[e.createTextVNode(" Address ",-1)])]),_:1})),o.value.includes("googleMap")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:1,onClick:m[6]||(m[6]=g=>d("googleMap"))},{default:e.withCtx(()=>[...m[16]||(m[16]=[e.createTextVNode(" Google Map ",-1)])]),_:1})),o.value.includes("baiduMap")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:2,onClick:m[7]||(m[7]=g=>d("baiduMap"))},{default:e.withCtx(()=>[...m[17]||(m[17]=[e.createTextVNode(" Baidu Map ",-1)])]),_:1})),o.value.includes("email")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:3,onClick:m[8]||(m[8]=g=>d("email"))},{default:e.withCtx(()=>[...m[18]||(m[18]=[e.createTextVNode(" Email ",-1)])]),_:1})),o.value.includes("phone")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:4,onClick:m[9]||(m[9]=g=>d("phone"))},{default:e.withCtx(()=>[...m[19]||(m[19]=[e.createTextVNode(" Phone ",-1)])]),_:1})),o.value.includes("fax")?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:5,onClick:m[10]||(m[10]=g=>d("fax"))},{default:e.withCtx(()=>[...m[20]||(m[20]=[e.createTextVNode(" Fax ",-1)])]),_:1}))]),_:1}),e.createElementVNode("div",null,[e.createVNode(V,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data.linkList,(g,y)=>(e.openBlock(),e.createBlock(w,{header:g.type+g.text,key:y},{"expand-icon":e.withCtx(()=>[...m[21]||(m[21]=[])]),extra:e.withCtx(()=>[e.createVNode(v,{onClick:e.withModifiers(()=>s(y),["stop"])},null,8,["onClick"])]),default:e.withCtx(()=>[o.value.includes(g.type)?(e.openBlock(),e.createElementBlock("div",cx,[m[25]||(m[25]=e.createElementVNode("p",null,"Text",-1)),e.createVNode(f,{modelValue:g.text,"onUpdate:modelValue":N=>g.text=N,placeholder:"请输入内容","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),m[26]||(m[26]=e.createElementVNode("p",{class:"item-title"},"Link Type",-1)),e.createVNode(r,{style:{width:"320px",background:"#ffffff"},modelValue:g.linkType,"onUpdate:modelValue":N=>g.linkType=N,placeholder:"Please select ..."},{default:e.withCtx(()=>[e.createVNode(c,{value:"internalLink"},{default:e.withCtx(()=>[...m[22]||(m[22]=[e.createTextVNode("Internal Link",-1)])]),_:1}),e.createVNode(c,{value:"externalLink"},{default:e.withCtx(()=>[...m[23]||(m[23]=[e.createTextVNode("External Link",-1)])]),_:1}),e.createVNode(c,{value:"textOnly"},{default:e.withCtx(()=>[...m[24]||(m[24]=[e.createTextVNode("Text-only",-1)])]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"]),m[27]||(m[27]=e.createElementVNode("p",{class:"item-title"},"Url",-1)),e.createVNode(f,{modelValue:g.url,"onUpdate:modelValue":N=>g.url=N,"allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0)]),_:2},1032,["header"]))),128))]),_:1})])])]),_:1},8,["visible"])}}}),mx=H(ux,[["__scopeId","data-v-ee1a117b"]]),pr="data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.27916%2012.5392C8.45404%2012.0722%208.1578%209.47241%208.09244%208.90418C7.98596%208.02917%206.95597%206.49842%205.557%206.61966C3.79643%206.77779%203.54025%209.31955%203.54025%209.31955C3.302%2010.495%204.10954%2013.0062%206.27916%2012.5392ZM8.58793%2017.0597C8.52467%2017.2421%208.38235%2017.7091%208.5057%2018.1161C8.74817%2019.029%209.54096%2019.0702%209.54096%2019.0702H10.6795V16.287H9.45978C8.91158%2016.4493%208.64802%2016.8763%208.58793%2017.0597ZM10.3148%208.18098C11.5166%208.18098%2012.4865%206.79782%2012.4865%205.08891C12.4865%203.38105%2011.5166%202%2010.3148%202C9.1161%202%208.14304%203.38105%208.14304%205.08891C8.14304%206.79782%209.1161%208.18098%2010.3148%208.18098ZM15.4889%208.38444C17.0935%208.59318%2018.1256%206.88005%2018.3312%205.58123C18.541%204.28453%2017.5046%202.77908%2016.3682%202.51974C15.2296%202.25829%2013.8074%204.08317%2013.6778%205.27129C13.5228%206.72613%2013.8855%208.17887%2015.4889%208.38444ZM15.4889%2012.0194C13.5228%208.95689%2010.7312%2010.203%209.79608%2011.7612C8.8673%2013.3183%207.41773%2014.3019%207.21215%2014.5633C7.00341%2014.8205%204.2118%2016.327%204.83169%2019.0797C5.45053%2021.8301%207.62752%2021.7785%207.62752%2021.7785C7.62752%2021.7785%209.23101%2021.9366%2011.0917%2021.5191C12.9535%2021.1069%2014.5559%2021.6225%2014.5559%2021.6225C14.5559%2021.6225%2018.9047%2023.0773%2020.0938%2020.2752C21.283%2017.4709%2019.4223%2016.0182%2019.4223%2016.0182C19.4223%2016.0182%2016.9385%2014.0963%2015.4879%2012.0194H15.4889ZM9.15511%2020.1898C7.9343%2019.9462%207.4483%2019.1134%207.38716%2018.9711C7.32706%2018.8266%206.98022%2018.1572%207.16366%2017.0176C7.69077%2015.3108%209.19517%2015.1885%209.19517%2015.1885H10.7006V13.3383L11.9815%2013.3594V20.1898H9.15616H9.15511ZM13.994%2020.1697C12.7332%2019.845%2012.6752%2018.9489%2012.6752%2018.9489V15.3519L13.994%2015.3308V18.5631C14.0752%2018.9089%2014.5032%2018.9711%2014.5032%2018.9711H15.8432V15.3519H17.2474V20.1697H13.994ZM21.8523%2010.5657C21.8523%209.94366%2021.3357%208.07344%2019.4223%208.07344C17.5046%208.07344%2017.2485%209.83929%2017.2485%2011.0875C17.2485%2012.2788%2017.3486%2013.9413%2019.7301%2013.8886C22.1127%2013.8359%2021.8523%2011.1898%2021.8523%2010.5657Z'%20fill='%230048E8'/%3e%3c/svg%3e",fr="data:image/svg+xml,%3csvg%20width='23'%20height='24'%20viewBox='0%200%2023%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.3826%206C18.3745%208.17%2018.1486%2010.73%2017.0585%2012.81C16.1353%2014.5%2014.8094%2015.93%2013.6799%2017.5C13.1888%2018.2%2012.6978%2018.95%2012.3344%2019.76C12.2067%2020.03%2012.1183%2020.31%2012.0201%2020.59C11.9219%2020.87%2011.8335%2021.15%2011.7451%2021.43C11.6567%2021.69%2011.5486%2022%2011.2245%2022C10.8415%2022%2010.7335%2021.56%2010.6549%2021.26C10.4192%2020.53%2010.1835%2019.83%209.82008%2019.16C9.40758%2018.37%208.88704%2017.64%208.35668%2016.93L17.3826%206ZM8.39597%208.42L5.1549%2012.34C5.75401%2013.63%206.64775%2014.73%207.50222%2015.83C7.70847%2016.08%207.91472%2016.34%208.11115%2016.61L12.2067%2011.67L12.1674%2011.68C10.7335%2012.18%209.1424%2011.44%208.57276%2010C8.49418%209.83%208.43525%209.63%208.39597%209.43C8.34193%209.09894%208.34193%208.76106%208.39597%208.43V8.42ZM5.90133%204.62L5.89151%204.63C4.30043%206.68%204.02543%209.53%204.97811%2011.94L8.89686%207.2L8.84775%207.15L5.90133%204.62ZM13.4049%202.36L10.2424%206.17L10.2817%206.16C11.5978%205.7%2013.071%206.28%2013.7388%207.5C13.8861%207.78%2014.004%208.08%2014.0433%208.38C14.1022%208.76%2014.1219%209.03%2014.0531%209.4V9.41L17.196%205.61C16.3744%204.08939%2015.0266%202.93445%2013.4147%202.37L13.4049%202.36ZM9.15222%206.89L12.9924%202.24L12.9531%202.23C12.3835%202.08%2011.804%202%2011.2245%202C9.28972%202%207.46293%202.85%206.1665%204.31L6.14686%204.32L9.15222%206.89Z'%20fill='%23001E60'/%3e%3cg%20clip-path='url(%23clip0_1307_138886)'%3e%3cpath%20d='M8.32617%2016.8164C8.90147%2017.5536%209.42506%2018.33%209.89316%2019.1402C10.2928%2019.9022%2010.4595%2020.4189%2010.7515%2021.337C10.9307%2021.8442%2011.0926%2021.9956%2011.4406%2021.9956C11.8199%2021.9956%2011.992%2021.7381%2012.125%2021.3397C12.4011%2020.4727%2012.6177%2019.811%2012.9595%2019.1858C13.6302%2017.9787%2014.4636%2016.9061%2015.2824%2015.8752C15.5041%2015.5834%2016.9374%2013.8836%2017.5827%2012.5424C17.5827%2012.5424%2018.3757%2011.0691%2018.3757%209.01152C18.3757%207.08683%2017.5936%205.75195%2017.5936%205.75195L15.3418%206.35827L13.9744%209.97958L13.636%2010.4789L13.5684%2010.5694L13.4784%2010.6826L13.3205%2010.8635L13.0948%2011.0904L11.8771%2012.0879L8.83262%2013.8553L8.32617%2016.8164Z'%20fill='%2334A853'/%3e%3cpath%20d='M5.18359%2012.2931C5.92663%2013.9995%207.35947%2015.4996%208.32891%2016.816L13.478%2010.6833C13.478%2010.6833%2012.7526%2011.6372%2011.4367%2011.6372C9.97096%2011.6372%208.78685%2010.4604%208.78685%208.97644C8.78685%207.95884%209.39573%207.25977%209.39573%207.25977L5.9004%208.20146L5.18359%2012.293V12.2931Z'%20fill='%23FBBC04'/%3e%3cpath%20d='M13.5353%202.31451C15.2454%202.86889%2016.7092%204.03276%2017.5945%205.749L13.4794%2010.6797C13.4794%2010.6797%2014.0882%209.96797%2014.0882%208.95669C14.0882%207.43821%2012.8165%206.30383%2011.4427%206.30383C10.1436%206.30383%209.39746%207.25614%209.39746%207.25614V4.14988L13.5353%202.31445V2.31451Z'%20fill='%234285F4'/%3e%3cpath%20d='M6.12695%204.49401C7.14836%203.26529%208.94565%202%2011.4235%202C12.6257%202%2013.5313%202.31733%2013.5313%202.31733L9.39389%207.25973H6.46245L6.12695%204.49406V4.49401Z'%20fill='%231A73E8'/%3e%3cpath%20d='M5.18358%2012.294C5.18358%2012.294%204.5%2010.948%204.5%208.99817C4.5%207.15528%205.21252%205.54438%206.12683%204.49414L9.3961%207.26029L5.18358%2012.294Z'%20fill='%23EA4335'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1307_138886'%3e%3crect%20width='13.8753'%20height='20'%20fill='white'%20transform='translate(4.5%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",vr="data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.72757%206.13843L6.9432%203.92483C7.0995%203.76785%207.28527%203.64329%207.48984%203.55832C7.69442%203.47335%207.91376%203.42963%208.13528%203.42969C8.58673%203.42969%209.01113%203.60653%209.32944%203.92483L11.7136%206.30902C11.8706%206.46532%2011.9951%206.65109%2012.0801%206.85567C12.1651%207.06024%2012.2088%207.27959%2012.2087%207.50112C12.2087%207.95257%2012.0319%208.37698%2011.7136%208.69529L9.97021%2010.4387C10.3783%2011.3382%2010.9457%2012.1565%2011.6449%2012.8541C12.3425%2013.5551%2013.1607%2014.1245%2014.0603%2014.5351L15.8037%2012.7917C15.96%2012.6347%2016.1457%2012.5101%2016.3503%2012.4252C16.5549%2012.3402%2016.7742%2012.2965%2016.9958%2012.2965C17.4472%2012.2965%2017.8716%2012.4734%2018.1899%2012.7917L20.5761%2015.1738C20.7333%2015.3304%2020.858%2015.5165%2020.943%2015.7214C21.0279%2015.9264%2021.0715%2016.1461%2021.0713%2016.368C21.0713%2016.8194%2020.8945%2017.2438%2020.5761%2017.5621L18.3647%2019.7737C17.857%2020.2834%2017.156%2020.5725%2016.4361%2020.5725C16.2843%2020.5725%2016.1386%2020.5601%2015.9951%2020.5351C13.1907%2020.0732%2010.4092%2018.5816%208.16441%2016.3388C5.92172%2014.0982%204.43215%2011.3187%203.96405%208.50597C3.82259%207.64675%204.1076%206.76256%204.72757%206.13843Z'%20fill='%230032A0'/%3e%3c/svg%3e",hr="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%206H16V8H11V6ZM8%209V3H19V9C19.7956%209%2020.5587%209.31607%2021.1213%209.87868C21.6839%2010.4413%2022%2011.2044%2022%2012V18H19V21H8V18H7V9H8ZM10%205V9H17V5H10ZM10%2015V19H17V15H10ZM19%2011C18.7348%2011%2018.4804%2011.1054%2018.2929%2011.2929C18.1054%2011.4804%2018%2011.7348%2018%2012C18%2012.2652%2018.1054%2012.5196%2018.2929%2012.7071C18.4804%2012.8946%2018.7348%2013%2019%2013C19.2652%2013%2019.5196%2012.8946%2019.7071%2012.7071C19.8946%2012.5196%2020%2012.2652%2020%2012C20%2011.7348%2019.8946%2011.4804%2019.7071%2011.2929C19.5196%2011.1054%2019.2652%2011%2019%2011ZM4%209H5C5.26522%209%205.51957%209.10536%205.70711%209.29289C5.89464%209.48043%206%209.73478%206%2010V17C6%2017.2652%205.89464%2017.5196%205.70711%2017.7071C5.51957%2017.8946%205.26522%2018%205%2018H4C3.46957%2018%202.96086%2017.7893%202.58579%2017.4142C2.21071%2017.0391%202%2016.5304%202%2016V11C2%2010.4696%202.21071%209.96086%202.58579%209.58579C2.96086%209.21071%203.46957%209%204%209Z'%20fill='%230032A0'/%3e%3c/svg%3e",Vr="data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.75%201C10.5628%201.00261%208.46586%201.87264%206.91925%203.41925C5.37264%204.96586%204.50261%207.06276%204.5%209.25C4.5%2016.3091%2012%2021.6411%2012.3193%2021.8645C12.4456%2021.9527%2012.5959%2022%2012.75%2022C12.9041%2022%2013.0544%2021.9527%2013.1807%2021.8645C13.5%2021.6411%2021%2016.3091%2021%209.25C20.9974%207.06276%2020.1274%204.96586%2018.5808%203.41925C17.0341%201.87264%2014.9372%201.00261%2012.75%201ZM12.7506%206.25028C13.3439%206.25028%2013.9239%206.42623%2014.4173%206.75587C14.9106%207.08552%2015.2951%207.55405%2015.5222%208.10223C15.7493%208.65041%2015.8087%209.25361%2015.6929%209.83555C15.5772%2010.4175%2015.2914%2010.952%2014.8719%2011.3716C14.4523%2011.7912%2013.9178%2012.0769%2013.3358%2012.1926C12.7539%2012.3084%2012.1507%2012.249%2011.6025%2012.0219C11.0543%2011.7949%2010.5858%2011.4103%2010.2562%2010.917C9.92651%2010.4236%209.75056%209.84363%209.75056%209.25028C9.75056%208.45463%2010.0666%207.69157%2010.6292%207.12896C11.1919%206.56635%2011.9549%206.25028%2012.7506%206.25028Z'%20fill='%230032A0'/%3e%3c/svg%3e",Ax={class:"contact_us_img"},px=["src","alt"],fx={class:"contact_us_content"},vx={class:"contact_us_title"},hx={class:"contact_us_content_wrap"},Vx={style:{display:"flex"}},gx={key:0,style:{"margin-right":"24px"},class:"contact_us_content_item"},yx={style:{display:"flex"}},bx={key:0,class:"contact_us_content_item"},wx={key:1,class:"contact_us_content_item last_content"},xx={style:{display:"flex"}},kx={key:0,class:"contact_us_content_item"},Nx={key:1,class:"contact_us_content_item last_content"},_x={key:0,class:"contact_us_content_item"},Cx={class:"contact_us_wrap_mobile"},Ex={class:"contact_us_img"},Tx=["src","alt"],Sx={class:"content_mobile_detail"},Px={key:0,style:{"margin-right":"24px"},class:"contact_us_content_item"},Bx={key:1,class:"contact_us_content_item"},Lx={key:2,class:"contact_us_content_item"},Ox={key:3,class:"contact_us_content_item"},Mx={key:4,class:"contact_us_content_item"},zx={key:5,class:"contact_us_content_item"},jx=e.defineComponent({name:"ContactUsInfo",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=e.ref({text:"",linkType:"",url:""}),o=e.ref({text:"",linkType:"",url:""}),a=e.ref({text:"",linkType:"",url:""}),i=e.ref({text:"",linkType:"",url:""}),s=e.ref({text:"",linkType:"",url:""}),d=e.ref({text:"",linkType:"",url:""}),u=n;console.log("!!!!",u.modelValue);const m=t,c=e.ref(!1),r=e.ref(!1),f=()=>{m("handleDelete",u.modelValue.id)},p=()=>{m("handleCopy",u.modelValue)},A=V=>{m("handlePaste",V)},v=(V,h)=>{h.linkType!=="textOnly"&&(V.includes("http")?typeof window<"u"&&typeof window<"u"&&window.open(V,"_blank"):m("handleClick",V))},w=()=>{var h;if(u.modelValue&&u.modelValue.data)return;const V={id:((h=u.modelValue)==null?void 0:h.id)||B(),type:"ContactUsInfo",title:"title",width:1208,image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/02_public%20area%2001_origin_origin.jpg",imageAlt:"",linkList:[]};m("update:modelValue",V)};return e.watch(()=>u.modelValue,V=>{var h;console.log("modelValue 发生变化:",{新值:V,list:V==null?void 0:V.linkList}),(h=V==null?void 0:V.linkList)==null||h.forEach(g=>{g.type==="pin"&&(l.value.text=g.text,l.value.linkType=g.linkType,l.value.url=g.url,console.log("pin===========",l),console.log("item==========",g)),g.type==="googleMap"&&(o.value.text=g.text,o.value.linkType=g.linkType,o.value.url=g.url),g.type==="baiduMap"&&(a.value.text=g.text,a.value.linkType=g.linkType,a.value.url=g.url),g.type==="phone"&&(i.value.text=g.text,i.value.linkType=g.linkType,i.value.url=g.url),g.type==="fax"&&(s.value.text=g.text,s.value.linkType=g.linkType,s.value.url=g.url),g.type==="email"&&(d.value.text=g.text,d.value.linkType=g.linkType,d.value.url=g.url)})},{deep:!0,immediate:!0}),w(),(V,h)=>{var g,y,N,C,b,x,E,_,T,S,L,O,M,$,D,R,j,k,z;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:{"margin-top":"30px","margin-bottom":"30px"},class:"contact-us-info-container",onMouseenter:h[14]||(h[14]=X=>c.value=!0),onMouseleave:h[15]||(h[15]=X=>c.value=!1)},[e.createElementVNode("div",{class:"contact_us_wrap",style:e.normalizeStyle({width:((g=n.modelValue)==null?void 0:g.width)+"px"})},[e.createElementVNode("div",Ax,[e.createElementVNode("img",{src:(y=n.modelValue)==null?void 0:y.image,alt:(N=n.modelValue)==null?void 0:N.imageAlt},null,8,px)]),e.createElementVNode("div",fx,[e.createElementVNode("h4",vx,e.toDisplayString((C=n.modelValue)==null?void 0:C.title),1),e.createElementVNode("div",hx,[e.createElementVNode("div",Vx,[l.value.text?(e.openBlock(),e.createElementBlock("div",gx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(Vr)})`})},null,4),e.createElementVNode("span",{onClick:h[0]||(h[0]=X=>{var F;return v((F=l.value)==null?void 0:F.url,l.value)}),class:e.normalizeClass([l.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((b=l.value)==null?void 0:b.text),3)])):e.createCommentVNode("",!0),e.createElementVNode("div",yx,[o.value.text?(e.openBlock(),e.createElementBlock("div",bx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(fr)})`})},null,4),e.createElementVNode("span",{onClick:h[1]||(h[1]=X=>{var F;return v((F=o.value)==null?void 0:F.url,o.value)}),class:e.normalizeClass([o.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((x=o.value)==null?void 0:x.text),3)])):e.createCommentVNode("",!0),a.value.text?(e.openBlock(),e.createElementBlock("div",wx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(pr)})`})},null,4),e.createElementVNode("span",{onClick:h[2]||(h[2]=X=>{var F;return v((F=a.value)==null?void 0:F.url,a.value)}),class:e.normalizeClass([a.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((E=a.value)==null?void 0:E.text),3)])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",xx,[i.value.text?(e.openBlock(),e.createElementBlock("div",kx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(vr)})`})},null,4),e.createElementVNode("span",{onClick:h[3]||(h[3]=X=>{var F;return v((F=i.value)==null?void 0:F.url,i.value)}),class:e.normalizeClass([i.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((_=i.value)==null?void 0:_.text),3)])):e.createCommentVNode("",!0),s.value.text?(e.openBlock(),e.createElementBlock("div",Nx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(hr)})`})},null,4),e.createElementVNode("span",{onClick:h[4]||(h[4]=X=>{var F;return v((F=s.value)==null?void 0:F.url,s.value)}),class:e.normalizeClass([s.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((T=s.value)==null?void 0:T.text),3)])):e.createCommentVNode("",!0)]),d.value.text?(e.openBlock(),e.createElementBlock("div",_x,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(fi)})`})},null,4),e.createElementVNode("span",{onClick:h[5]||(h[5]=X=>{var F;return v((F=d.value)==null?void 0:F.url,d.value)}),class:e.normalizeClass([d.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((S=d.value)==null?void 0:S.text),3)])):e.createCommentVNode("",!0)])])],4),e.createElementVNode("div",Cx,[e.createElementVNode("div",Ex,[e.createElementVNode("img",{src:(L=n.modelValue)==null?void 0:L.image,alt:(O=n.modelValue)==null?void 0:O.imageAlt},null,8,Tx)]),e.createElementVNode("div",Sx,[e.createElementVNode("h4",null,e.toDisplayString((M=n.modelValue)==null?void 0:M.title),1),l.value.text?(e.openBlock(),e.createElementBlock("div",Px,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(Vr)})`})},null,4),e.createElementVNode("span",{onClick:h[6]||(h[6]=X=>{var F;return v((F=l.value)==null?void 0:F.url,l.value)}),class:e.normalizeClass([l.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString(($=l.value)==null?void 0:$.text),3)])):e.createCommentVNode("",!0),o.value.text?(e.openBlock(),e.createElementBlock("div",Bx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(fr)})`})},null,4),e.createElementVNode("span",{onClick:h[7]||(h[7]=X=>{var F;return v((F=o.value)==null?void 0:F.url,o.value)}),class:e.normalizeClass([o.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((D=o.value)==null?void 0:D.text),3)])):e.createCommentVNode("",!0),a.value.text?(e.openBlock(),e.createElementBlock("div",Lx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(pr)})`})},null,4),e.createElementVNode("span",{onClick:h[8]||(h[8]=X=>{var F;return v((F=a.value)==null?void 0:F.url,a.value)}),class:e.normalizeClass([a.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((R=a.value)==null?void 0:R.text),3)])):e.createCommentVNode("",!0),i.value.text?(e.openBlock(),e.createElementBlock("div",Ox,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(vr)})`})},null,4),e.createElementVNode("span",{onClick:h[9]||(h[9]=X=>{var F;return v((F=i.value)==null?void 0:F.url,i.value)}),class:e.normalizeClass([i.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((j=i.value)==null?void 0:j.text),3)])):e.createCommentVNode("",!0),s.value.text?(e.openBlock(),e.createElementBlock("div",Mx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(hr)})`})},null,4),e.createElementVNode("span",{onClick:h[10]||(h[10]=X=>{var F;return v((F=s.value)==null?void 0:F.url,s.value)}),class:e.normalizeClass([s.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((k=s.value)==null?void 0:k.text),3)])):e.createCommentVNode("",!0),d.value.text?(e.openBlock(),e.createElementBlock("div",zx,[e.createElementVNode("span",{class:"icon_link_icon",style:e.normalizeStyle({"--icon-url":`url(${e.unref(fi)})`})},null,4),e.createElementVNode("span",{onClick:h[11]||(h[11]=X=>{var F;return v((F=d.value)==null?void 0:F.url,d.value)}),class:e.normalizeClass([d.value.linkType==="textOnly"?"item_text":"contact_us_content_item_text"])},e.toDisplayString((z=d.value)==null?void 0:z.text),3)])):e.createCommentVNode("",!0)])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:c.value,"onUpdate:show":h[12]||(h[12]=X=>c.value=X),onHandleEdit:h[13]||(h[13]=X=>r.value=!0),onHandleDelete:f,onHandleCopy:p,onHandlePaste:A},null,8,["show"]))],32),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(mx,{key:0,show:r.value,"onUpdate:show":h[16]||(h[16]=X=>r.value=X),data:n.modelValue},null,8,["show","data"]))],64)}}}),ws=H(jx,[["__scopeId","data-v-09fac745"]]),$x={class:"pagination_wrap"},Dx={class:"pagination"},Ux={class:"pagination-list"},Rx=["onClick"],Hx=e.defineComponent({__name:"Pagination",props:{total:{type:Number,default:0},activePage:{type:Number,default:1}},emits:["update:activePage","page-change"],setup(n,{emit:t}){const l=n,o=t,a=e.computed(()=>{const u=[];for(let m=1;m<=l.total;m++)u.push(m);return u}),i=u=>{u!==l.activePage&&u>=1&&u<=l.total&&(console.log("页数========",u),o("page-change",u),console.log("当前页数========更新",l.activePage))},s=()=>{l.activePage>1&&i(l.activePage-1)},d=()=>{l.activePage<l.total&&i(l.activePage+1)};return(u,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",$x,[e.createElementVNode("div",Dx,[e.createElementVNode("ul",Ux,[e.createElementVNode("li",{class:e.normalizeClass(["page-arrow",{"page-arrow--disable":n.activePage<=1}]),onClick:s},[...m[0]||(m[0]=[e.createElementVNode("div",{class:"i page-arrow__left"},null,-1)])],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createElementBlock("li",{key:c,class:e.normalizeClass(["page-item",{"page-item--active":c===n.activePage}]),onClick:r=>i(c)},e.toDisplayString(c),11,Rx))),128)),e.createElementVNode("li",{class:e.normalizeClass(["page-arrow",{"page-arrow--disable":n.activePage>=n.total}]),onClick:d},[...m[1]||(m[1]=[e.createElementVNode("div",{class:"i page-arrow__right"},null,-1)])],2)])])])]))}}),Wx=H(Hx,[["__scopeId","data-v-44a20524"]]),Ix={class:"seting-box"},Xx={class:"draggable_box"},qx={class:"drag_top_box"},Fx=["onClick"],Yx={class:"sub_draggable_box"},Zx={class:"draggable_box"},Gx={class:"drag_top_box"},Jx=["onClick"],Kx=["src"],Qx={class:"item-uplaod flex items-center"},ek=["src"],tk={class:"item-uplaod flex items-center"},lk={key:0},ok=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),o=e.computed(()=>({animation:200,group:"publications",disabled:!1,ghostClass:"ghost"})),a=e.ref(!1),i=e.ref(!1),s=n,d=t,u=()=>{d("update:show",!1)},m=e.ref(new Set),c=e.ref(new Set),r=e.ref(!1);e.watch(()=>{var y,N;return(N=(y=s.data)==null?void 0:y.list)==null?void 0:N.sections},y=>{if(y&&Array.isArray(y)&&!r.value){r.value=!0;const N=y.map(b=>b.key);m.value=new Set(N);const C=[];y.forEach(b=>{b.publications&&Array.isArray(b.publications)&&b.publications.forEach(x=>{x.id&&C.push(x.id)})}),c.value=new Set(C)}},{immediate:!0,deep:!0});const f=()=>{s.data.list.sections.push({key:Xn(),title:"new Section",text:"",button:"View all"})},p=y=>{const N={id:B(10),title:"new Publications",image:"",fileUrl:""},C=s.data.list.sections[y];C.publications||(C.publications=[]),C.publications.push(N)},A=y=>{if(!c.value.has(y.id))c.value.add(y.id);else{const N=[];s.data.list.sections.forEach(C=>{C.publications&&Array.isArray(C.publications)&&C.publications.forEach(b=>{b.id&&N.push(b.id)})}),c.value=new Set(N),c.value.delete(y.id)}},v=(y,N)=>{const C=s.data.list.sections.find(b=>b.key===N);C&&C.publications&&(C.publications=C.publications.filter(b=>b.id!==y))},w=y=>{if(!m.value.has(y.key))m.value.add(y.key);else{const N=[];s.data.list.sections.forEach(C=>{C.key&&N.push(C.key)}),m.value=new Set(N),m.value.delete(y.key)}},V=y=>{s.data.list.sections=s.data.list.sections.filter(N=>N.key!==y)},h=y=>m.value.has(y.key),g=y=>c.value.has(y.id);return(y,N)=>{const C=e.resolveComponent("a-option"),b=e.resolveComponent("a-select"),x=e.resolveComponent("icon-drag-dot"),E=e.resolveComponent("icon-drag-arrow"),_=e.resolveComponent("icon-delete"),T=e.resolveComponent("a-input"),S=e.resolveComponent("a-button"),L=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(L,{width:600,visible:n.show,footer:!1,onCancel:u,unmountOnClose:""},{title:e.withCtx(()=>{var O;return[e.createTextVNode(e.toDisplayString((O=n.data)==null?void 0:O.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",Ix,[N[28]||(N[28]=e.createElementVNode("p",{class:"item-title"},"内容宽度",-1)),e.createVNode(b,{style:{width:"320px",background:"#ffffff"},modelValue:n.data.width,"onUpdate:modelValue":N[0]||(N[0]=O=>n.data.width=O),placeholder:"Please select ..."},{default:e.withCtx(()=>[e.createVNode(C,{value:800},{default:e.withCtx(()=>[...N[11]||(N[11]=[e.createTextVNode("Small Width",-1)])]),_:1}),e.createVNode(C,{value:952},{default:e.withCtx(()=>[...N[12]||(N[12]=[e.createTextVNode("Default Width",-1)])]),_:1}),e.createVNode(C,{value:1208},{default:e.withCtx(()=>[...N[13]||(N[13]=[e.createTextVNode("Middle Width",-1)])]),_:1}),e.createVNode(C,{value:1920},{default:e.withCtx(()=>[...N[14]||(N[14]=[e.createTextVNode("Max Width",-1)])]),_:1})]),_:1},8,["modelValue"]),N[29]||(N[29]=e.createElementVNode("p",{class:"item-title"},"背景色",-1)),e.createVNode(b,{style:{width:"320px",background:"#ffffff"},modelValue:n.data.bgColor,"onUpdate:modelValue":N[1]||(N[1]=O=>n.data.bgColor=O),placeholder:"Please select ..."},{default:e.withCtx(()=>[e.createVNode(C,{value:"#ffffff"},{default:e.withCtx(()=>[...N[15]||(N[15]=[e.createTextVNode("White Background",-1)])]),_:1}),e.createVNode(C,{value:"#f8f9fa"},{default:e.withCtx(()=>[...N[16]||(N[16]=[e.createTextVNode("Grey Background",-1)])]),_:1})]),_:1},8,["modelValue"]),N[30]||(N[30]=e.createElementVNode("p",{class:"item-title"},"章节",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.list.sections,"onUpdate:modelValue":N[8]||(N[8]=O=>n.data.list.sections=O),"component-data":{tag:"div",type:"transition-group",name:a.value?null:"flip-list"}},l.value,{disabled:!1,onStart:N[9]||(N[9]=O=>a.value=!0),onEnd:N[10]||(N[10]=O=>a.value=!1),"item-key":"key"}),{item:e.withCtx(({element:O,index:M})=>[e.createElementVNode("div",Xx,[e.createElementVNode("div",qx,[e.createElementVNode("div",{onClick:$=>w(O)},[e.createVNode(x,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(O.title),1)],8,Fx),e.createElementVNode("div",null,[e.createVNode(E,{class:"icon_drag"}),e.createVNode(_,{class:"btn-delete",onClick:e.withModifiers($=>V(O.key),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[N[21]||(N[21]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Key",-1)),e.createVNode(T,{style:{border:"1px solid #c0c0c0"},modelValue:O.key,"onUpdate:modelValue":$=>O.key=$,onClick:N[2]||(N[2]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),N[22]||(N[22]=e.createElementVNode("span",null,"Key must be formed by lower-case letters (a-z), numbers (0-9) and hyphens (-).",-1)),N[23]||(N[23]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"题目",-1)),e.createVNode(T,{style:{border:"1px solid #c0c0c0"},modelValue:O.title,"onUpdate:modelValue":$=>O.title=$,onClick:N[3]||(N[3]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),N[24]||(N[24]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"文本",-1)),e.createVNode(T,{style:{border:"1px solid #c0c0c0"},modelValue:O.text,"onUpdate:modelValue":$=>O.text=$,onClick:N[4]||(N[4]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),N[25]||(N[25]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"按钮",-1)),e.createVNode(T,{style:{border:"1px solid #c0c0c0"},modelValue:O.button,"onUpdate:modelValue":$=>O.button=$,onClick:N[5]||(N[5]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),N[26]||(N[26]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"Publications",-1)),e.createElementVNode("div",Yx,[e.createVNode(e.unref(de),e.mergeProps({modelValue:O.publications,"onUpdate:modelValue":$=>O.publications=$,"component-data":{tag:"div",type:"transition-group",name:i.value?null:"flip-list"}},o.value,{disabled:!1,onStart:N[6]||(N[6]=$=>i.value=!0),onEnd:N[7]||(N[7]=$=>i.value=!1),"item-key":"id"}),{item:e.withCtx(({element:$})=>[e.createElementVNode("div",Zx,[e.createElementVNode("div",Gx,[e.createElementVNode("div",{onClick:e.withModifiers(D=>A($),["stop"])},[e.createVNode(x,{style:{"margin-right":"10px"}}),e.createTextVNode(" "+e.toDisplayString($.title),1)],8,Jx),e.createElementVNode("div",null,[e.createVNode(E,{class:"icon_drag"}),e.createVNode(_,{class:"btn-delete",onClick:e.withModifiers(D=>v($.id,O.key),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[N[17]||(N[17]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," Title ",-1)),e.createVNode(T,{style:{border:"1px solid #f1eeee"},modelValue:$.title,"onUpdate:modelValue":D=>$.title=D},null,8,["modelValue","onUpdate:modelValue"]),N[18]||(N[18]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 图片 ",-1)),e.createElementVNode("img",{class:"item-img",src:$.image},null,8,Kx),e.createElementVNode("div",Qx,[e.createVNode(T,{modelValue:$.image,"onUpdate:modelValue":D=>$.image=D,placeholder:"请输入图片链接","allow-clear":"",style:{border:"1px solid #c0c0c0"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:$.image,"onUpdate:modelValue":D=>$.image=D,name:`Publications_${$.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),N[19]||(N[19]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 文件链接 ",-1)),e.createElementVNode("img",{class:"item-img",src:$.fileUrl},null,8,ek),e.createElementVNode("div",tk,[e.createVNode(T,{modelValue:$.fileUrl,"onUpdate:modelValue":D=>$.fileUrl=D,placeholder:"请输入图片链接","allow-clear":"",style:{border:"1px solid #c0c0c0"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:$.fileUrl,"onUpdate:modelValue":D=>$.fileUrl=D,name:`Publications_${$.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])])],512),[[e.vShow,!g($)]])]),_:2},1024)])]),_:2},1040,["modelValue","onUpdate:modelValue","component-data"]),O.publications?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",lk,"No items found.")),e.createVNode(S,{style:{"margin-top":"10px","margin-left":"5px"},type:"primary",onClick:$=>p(M)},{default:e.withCtx(()=>[...N[20]||(N[20]=[e.createTextVNode("新增Publications",-1)])]),_:1},8,["onClick"])])],512),[[e.vShow,!h(O)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"]),e.createVNode(S,{style:{"margin-top":"10px","margin-left":"5px"},type:"primary",onClick:f},{default:e.withCtx(()=>[...N[27]||(N[27]=[e.createTextVNode("新增Section",-1)])]),_:1})])]),_:1},8,["visible"])}}}),nk=H(ok,[["__scopeId","data-v-b21faf90"]]),ak={class:"publications_box publications-bg-light"},ik={class:"pub-main"},sk={class:"publications-title-blue"},rk={class:"pub_main_text"},dk={class:"publications-mt-medium publications-mt-medium-xlarge"},ck=["data-aos-delay"],uk={class:"card-publication"},mk={class:"publication__head"},Ak=["onClick"],pk=["src","alt"],fk={class:"publication__body"},vk=["onClick"],hk={class:"pub-sub",style:{"margin-top":"110px"}},Vk={class:"pub-sublist__row row row-cols-md-2"},gk={class:"publications-title-blue"},yk={class:"pub-sub__text publications-mt-small"},bk={class:"publications-mt-small"},wk={class:"circle-link"},xk={class:"publications-mt-medium",style:{"margin-top":"40px"}},kk={key:0,class:"pub-subitem__row publications-grid publications-grid-2"},Nk={class:"card-publication"},_k={class:"publication__head"},Ck=["onClick"],Ek=["src"],Tk={class:"publication__body"},Sk=["onClick"],Pk=e.defineComponent({name:"Publications",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=V=>{o("handleClick",V)},i=(V,h)=>{const g=[];for(let y=0;y<V.length;y+=h)g.push(V.slice(y,y+h));return g},s=e.ref([]),d=e.ref([]),u=e.ref([]);e.watch(()=>l.modelValue,V=>{if(V&&V.list&&V.list.sections.length>0){s.value=V.list.sections[0];const h=i(s.value.publications,8);d.value=h,u.value=V.list.sections.slice(1),console.log("subMain.value",u.value)}},{immediate:!0,deep:!0});const m=e.ref(1),c=V=>{console.log("分页========",V),m.value=V},r=e.ref(!1),f=e.ref(!1),p=()=>{o("handleDelete",l.modelValue.id)},A=()=>{o("handleCopy",l.modelValue)},v=V=>{o("handlePaste",V)};return(()=>{var h;if(l.modelValue&&l.modelValue.data)return;const V={id:((h=l.modelValue)==null?void 0:h.id)||B(),width:800,bgColor:"#f8f9fa",type:"Publications",list:{sections:[{key:Xn(),title:"title11111???",text:"text1111??",button:"view all",publications:[{id:111,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"},{id:2222,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"}]},{key:Xn(),title:"title22222",text:"text1111",button:"view all",publications:[{id:890,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"},{id:89e3,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"}]},{key:Xn(),title:"title33333",text:"text1111",button:"view all",publications:[{id:34,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"},{id:89,title:"pub-title1",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg",fileUrl:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001_origin.jpg"}]}]}};o("update:modelValue",V)})(),(V,h)=>{var g,y,N,C;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(g=n.modelValue)==null?void 0:g.bgColor}]),class:"publications-container",onMouseenter:h[3]||(h[3]=b=>r.value=!0),onMouseleave:h[4]||(h[4]=b=>r.value=!1)},[e.createElementVNode("div",ak,[e.createElementVNode("div",{class:"publications__wrapper",style:e.normalizeStyle({maxWidth:((y=n.modelValue)==null?void 0:y.width)+"px"})},[e.createElementVNode("div",ik,[e.createElementVNode("h4",sk,e.toDisplayString(s.value.title),1),e.createElementVNode("div",rk,e.toDisplayString(s.value.text),1),e.createElementVNode("div",dk,[(C=(N=n.modelValue)==null?void 0:N.list)!=null&&C.sections?(e.openBlock(),e.createElementBlock("ul",{class:"publications-grid publications-grid-2 publications-grid-md-4",key:m.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value[m.value-1],(b,x)=>(e.openBlock(),e.createElementBlock("li",{key:x,"data-aos":"fade-right","data-aos-duration":"1500","data-aos-delay":x*100,class:"publications-grid-item"},[e.createElementVNode("div",uk,[e.createElementVNode("div",mk,[e.createElementVNode("a",{onClick:E=>a(b.fileUrl),rel:"noopener noreferrer",class:"header_img"},[e.createElementVNode("img",{src:b.image,alt:b.title},null,8,pk),h[6]||(h[6]=e.createElementVNode("div",{class:"publication__img__mask"},[e.createElementVNode("div",{class:"publication__img__mask__btn"},"阅读")],-1))],8,Ak)]),e.createElementVNode("div",fk,[e.createElementVNode("a",{onClick:E=>a(b.fileUrl),rel:"noopener noreferrer",class:"publication__title publications-line-clamp-2",style:{"font-weight":"bold"}},e.toDisplayString(b.title),9,vk)])])],8,ck))),128))])):e.createCommentVNode("",!0)]),e.createVNode(Wx,{total:d.value.length,activePage:m.value,onPageChange:c},null,8,["total","activePage"])]),e.createElementVNode("div",hk,[e.createElementVNode("ul",Vk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,b=>(e.openBlock(),e.createElementBlock("li",{key:b.key},[e.createElementVNode("h4",gk,e.toDisplayString(b.title),1),e.createElementVNode("div",yk,e.toDisplayString(b.text),1),e.createElementVNode("div",bk,[e.createElementVNode("div",wk,[e.createElementVNode("a",{onClick:h[0]||(h[0]=x=>a(V.item.fileUrl))},[e.createElementVNode("div",null,e.toDisplayString(b.button),1),h[7]||(h[7]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))])])]),e.createElementVNode("div",xk,[b.publications&&b.publications.length?(e.openBlock(),e.createElementBlock("ul",kk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.publications.slice(0,2),(x,E)=>(e.openBlock(),e.createElementBlock("li",{key:E,"data-aos":"fade-in","data-aos-duration":"1500",class:"publications-grid-item aos-init aos-animate"},[e.createElementVNode("div",Nk,[e.createElementVNode("div",_k,[e.createElementVNode("a",{onClick:_=>a(x.fileUrl),rel:"noopener noreferrer",class:"publication__img img-wrapper"},[e.createElementVNode("img",{src:x.image,alt:"111111"},null,8,Ek),h[8]||(h[8]=e.createElementVNode("div",{class:"publication__img__mask"},[e.createElementVNode("div",{class:"publication__img__mask__btn"},"阅读")],-1))],8,Ck)]),e.createElementVNode("div",Tk,[e.createElementVNode("a",{onClick:_=>a(x.fileUrl),rel:"noopener noreferrer",class:"publication__title publications-line-clamp-2"},e.toDisplayString(x.title),9,Sk)])])]))),128))])):e.createCommentVNode("",!0)])]))),128))])])],4)]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:r.value,"onUpdate:show":h[1]||(h[1]=b=>r.value=b),onHandleEdit:h[2]||(h[2]=b=>f.value=!0),onHandleDelete:p,onHandleCopy:A,onHandlePaste:v},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(nk,{key:0,show:f.value,"onUpdate:show":h[5]||(h[5]=b=>f.value=b),data:n.modelValue},null,8,["show","data"]))],64)}}}),xs=H(Pk,[["__scopeId","data-v-b8f24e17"]]),Bk={class:"seting-box"},Lk=["src"],Ok={class:"item-uplaod flex items-center"},Mk={class:"draggable_box"},zk={class:"drag_top_box"},jk=["onClick"],$k={class:"sub_draggable_box"},Dk={class:"draggable_box"},Uk={class:"drag_top_box"},Rk=["onClick"],Hk=["src"],Wk={class:"item-uplaod flex items-center"},Ik={key:0},Xk=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=e.ref(!1),a=e.ref(new Set),i=e.ref(new Set);e.watch(()=>{var b;return(b=l.data)==null?void 0:b.markers},b=>{if(b&&Array.isArray(b)&&!o.value){o.value=!0;const x=b.map(_=>_.key);a.value=new Set(x);const E=[];b.forEach(_=>{_.list&&Array.isArray(_.list)&&_.list.forEach(T=>{T.id&&E.push(T.id)})}),i.value=new Set(E)}},{immediate:!0,deep:!0});const s=()=>{l.data.markers.push({key:B(10),name:"新的校园",x_coordinates:0,y_coordinates:0,textPos:"left"})},d=e.computed(()=>({animation:200,group:"publications",disabled:!1,ghostClass:"ghost"})),u=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),m=e.ref(!1),c=e.ref(!1),r=t,f=b=>a.value.has(b.key),p=()=>{r("update:show",!1)},A=()=>{var b,x;return((x=(b=l.data)==null?void 0:b.markers)==null?void 0:x.map(E=>E.key).filter(Boolean))||[]},v=()=>{var x;const b=[];return(x=l.data)!=null&&x.markers&&Array.isArray(l.data.markers)&&l.data.markers.forEach(E=>{E.list&&Array.isArray(E.list)&&E.list.forEach(_=>{_.id&&b.push(_.id)})}),b},w=(b,x,E)=>{if(!x.value.has(b))x.value.add(b);else{const T=E();x.value=new Set(T.filter(S=>S!==b))}},V=b=>{w(b.key,a,A)},h=b=>{l.data.markers=l.data.markers.filter(x=>x.key!==b)},g=b=>i.value.has(b.id),y=b=>{w(b.id,i,v)},N=b=>{const x={id:B(10),title:"新的校区",desc:"",image:"",alt:"",phone:"",email:"",link:"",linkName:""},E=l.data.markers[b];E.list||(E.list=[]),E.list.push(x)},C=(b,x)=>{const E=l.data.list.find(_=>_.key===x);E&&E.publications&&(E.publications=E.publications.filter(_=>_.id!==b))};return(b,x)=>{const E=e.resolveComponent("a-input"),_=e.resolveComponent("icon-drag-dot"),T=e.resolveComponent("icon-drag-arrow"),S=e.resolveComponent("icon-delete"),L=e.resolveComponent("a-option"),O=e.resolveComponent("a-select"),M=e.resolveComponent("icon-plus"),$=e.resolveComponent("a-button"),D=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(D,{width:500,visible:n.show,footer:!1,onCancel:p,unmountOnClose:""},{title:e.withCtx(()=>{var R;return[e.createTextVNode(e.toDisplayString((R=n.data)==null?void 0:R.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",Bk,[x[29]||(x[29]=e.createElementVNode("p",{class:"item-title"},"地图图片",-1)),e.createElementVNode("img",{class:"item-img",src:n.data.map},null,8,Lk),e.createElementVNode("div",Ok,[e.createVNode(E,{modelValue:n.data.map,"onUpdate:modelValue":x[0]||(x[0]=R=>n.data.map=R),placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue"]),e.createVNode(Ne,{modelValue:n.data.map,"onUpdate:modelValue":x[1]||(x[1]=R=>n.data.map=R),name:"MapStatic","button-class":"fit-content"},null,8,["modelValue"])]),x[30]||(x[30]=e.createElementVNode("p",{class:"item-title"},"显示X坐标",-1)),e.createVNode(E,{modelValue:n.data.x_coordinates,"onUpdate:modelValue":x[2]||(x[2]=R=>n.data.x_coordinates=R),"allow-clear":""},null,8,["modelValue"]),x[31]||(x[31]=e.createElementVNode("p",{class:"item-title"},"显示Y坐标",-1)),e.createVNode(E,{modelValue:n.data.y_coordinates,"onUpdate:modelValue":x[3]||(x[3]=R=>n.data.y_coordinates=R),"allow-clear":""},null,8,["modelValue"]),x[32]||(x[32]=e.createElementVNode("p",{class:"item-title"},"标记",-1)),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.markers,"onUpdate:modelValue":x[9]||(x[9]=R=>n.data.markers=R),"component-data":{tag:"div",type:"transition-group",name:m.value?null:"flip-list"}},u.value,{disabled:!1,onStart:x[10]||(x[10]=R=>m.value=!0),onEnd:x[11]||(x[11]=R=>m.value=!1),"item-key":"key"}),{item:e.withCtx(({element:R,index:j})=>[e.createElementVNode("div",Mk,[e.createElementVNode("div",zk,[e.createElementVNode("div",{onClick:k=>V(R)},[e.createVNode(_,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(R.name),1)],8,jk),e.createElementVNode("div",null,[e.createVNode(T,{class:"icon_drag"}),e.createVNode(S,{class:"btn-delete",onClick:e.withModifiers(k=>h(R.key),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[x[23]||(x[23]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"名称",-1)),e.createVNode(E,{style:{border:"1px solid #c0c0c0"},modelValue:R.name,"onUpdate:modelValue":k=>R.name=k,onClick:x[4]||(x[4]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),x[24]||(x[24]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标记X坐标",-1)),e.createVNode(E,{style:{border:"1px solid #c0c0c0"},modelValue:R.x_coordinates,"onUpdate:modelValue":k=>R.x_coordinates=k,onClick:x[5]||(x[5]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),x[25]||(x[25]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标记Y坐标",-1)),e.createVNode(E,{style:{border:"1px solid #c0c0c0"},modelValue:R.x_coordinates,"onUpdate:modelValue":k=>R.x_coordinates=k,onClick:x[6]||(x[6]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"]),x[26]||(x[26]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"详情弹出位置",-1)),e.createVNode(O,{modelValue:R.textPos,"onUpdate:modelValue":k=>R.textPos=k,style:{width:"320px"},placeholder:"请选择"},{default:e.withCtx(()=>[e.createVNode(L,{value:"left"},{default:e.withCtx(()=>[...x[12]||(x[12]=[e.createTextVNode("左",-1)])]),_:1}),e.createVNode(L,{value:"right"},{default:e.withCtx(()=>[...x[13]||(x[13]=[e.createTextVNode("右",-1)])]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"]),x[27]||(x[27]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"校区",-1)),e.createElementVNode("div",$k,[e.createVNode(e.unref(de),e.mergeProps({modelValue:R.list,"onUpdate:modelValue":k=>R.list=k,"component-data":{tag:"div",type:"transition-group",name:c.value?null:"flip-list"}},d.value,{disabled:!1,onStart:x[7]||(x[7]=k=>c.value=!0),onEnd:x[8]||(x[8]=k=>c.value=!1),"item-key":"id"}),{item:e.withCtx(({element:k,index:z})=>[e.createElementVNode("div",Dk,[e.createElementVNode("div",Uk,[e.createElementVNode("div",{onClick:e.withModifiers(X=>y(k),["stop"])},[e.createVNode(_,{style:{"margin-right":"10px"}}),e.createTextVNode(" "+e.toDisplayString(k.title),1)],8,Rk),e.createElementVNode("div",null,[e.createVNode(T,{class:"icon_drag"}),e.createVNode(S,{class:"btn-delete",onClick:e.withModifiers(X=>C(k.id,R.key),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[x[14]||(x[14]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 题目 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.title,"onUpdate:modelValue":X=>k.title=X},null,8,["modelValue","onUpdate:modelValue"]),x[15]||(x[15]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 描述 ",-1)),e.createVNode(e.unref(qe),{modelValue:k.desc,"onUpdate:modelValue":X=>k.desc=X,name:`MapStatic_editor_${j}_${z}`},null,8,["modelValue","onUpdate:modelValue","name"]),x[16]||(x[16]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 图片 ",-1)),e.createElementVNode("img",{class:"item-img",src:k.image},null,8,Hk),e.createElementVNode("div",Wk,[e.createVNode(E,{modelValue:k.image,"onUpdate:modelValue":X=>k.image=X,placeholder:"请输入图片链接","allow-clear":"",style:{border:"1px solid #c0c0c0"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:k.image,"onUpdate:modelValue":X=>k.image=X,name:`MapStatic_${j}_${z}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),x[17]||(x[17]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 图片替代文本 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.alt,"onUpdate:modelValue":X=>k.alt=X},null,8,["modelValue","onUpdate:modelValue"]),x[18]||(x[18]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 链接名称 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.linkName,"onUpdate:modelValue":X=>k.linkName=X},null,8,["modelValue","onUpdate:modelValue"]),x[19]||(x[19]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 链接地址 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.link,"onUpdate:modelValue":X=>k.link=X},null,8,["modelValue","onUpdate:modelValue"]),x[20]||(x[20]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 手机号码 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.phone,"onUpdate:modelValue":X=>k.phone=X},null,8,["modelValue","onUpdate:modelValue"]),x[21]||(x[21]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}}," 邮箱 ",-1)),e.createVNode(E,{style:{border:"1px solid #f1eeee"},modelValue:k.email,"onUpdate:modelValue":X=>k.email=X},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!g(k)]])]),_:2},1024)])]),_:2},1040,["modelValue","onUpdate:modelValue","component-data"]),R.list?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",Ik,"暂无数据")),e.createVNode($,{style:{"margin-top":"10px","margin-left":"5px"},type:"primary",onClick:k=>N(j)},{icon:e.withCtx(()=>[e.createVNode(M)]),default:e.withCtx(()=>[x[22]||(x[22]=e.createTextVNode("校区",-1))]),_:1},8,["onClick"])])],512),[[e.vShow,!f(R)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"]),e.createVNode($,{style:{"margin-top":"10px","margin-left":"5px"},type:"primary",onClick:s},{default:e.withCtx(()=>[...x[28]||(x[28]=[e.createTextVNode("新增Section",-1)])]),_:1})])]),_:1},8,["visible"])}}}),qk=H(Xk,[["__scopeId","data-v-dba7887b"]]),Fk={class:"map-static-detail"},Yk={class:"detail__image"},Zk=["src","alt"],Gk=["src","alt"],Jk={class:"detail__content"},Kk={key:0,class:"detail__title me-md-5"},Qk=["innerHTML"],eN={class:"detail__cta"},tN={key:0},lN=["href"],oN={key:1},nN=["href"],aN={key:2,class:"detail__link"},iN=e.defineComponent({__name:"MapStaticDetail",props:{componentProps:{default:null}},emits:["close"],setup(n,{emit:t}){const l=n,o=t,a=e.ref(0),i=e.ref(0),s=e.ref(0),d={image:"/images/dummyimage/placeholder.jpg"},u=e.computed(()=>{var A;return((A=l.componentProps)==null?void 0:A.list)??[]}),m=e.computed(()=>{var A;return((A=u.value)==null?void 0:A[a.value])??u.value[0]});e.watch(a,A=>{A>u.value.length-1?a.value=0:A<0&&(a.value=u.value.length-1)});const c=()=>{o("close"),setTimeout(()=>{a.value=0},300)},r=A=>{i.value=A.changedTouches[0].screenX},f=A=>{s.value=A.changedTouches[0].screenX,p()},p=()=>{s.value<i.value&&(a.value+=1),s.value>i.value&&(a.value-=1)};return(A,v)=>(e.openBlock(),e.createElementBlock("div",Fk,[e.createElementVNode("button",{type:"button",class:"detail__close",onClick:c}),e.createVNode(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("div",{class:"map-static-detail__wrapper",key:a.value,onTouchstart:r,onTouchend:f},[e.createElementVNode("div",Yk,[m.value.image?(e.openBlock(),e.createElementBlock("img",{key:0,src:m.value.image,alt:m.value.alt||m.value.title},null,8,Zk)):(e.openBlock(),e.createElementBlock("img",{key:1,src:d.image,alt:m.value.alt||m.value.title},null,8,Gk))]),e.createElementVNode("div",Jk,[m.value.title?(e.openBlock(),e.createElementBlock("h6",Kk,e.toDisplayString(m.value.title),1)):e.createCommentVNode("",!0),m.value.desc?(e.openBlock(),e.createElementBlock("div",{key:1,class:"detail__desc me-md-5",innerHTML:m.value.desc},null,8,Qk)):e.createCommentVNode("",!0),e.createElementVNode("ul",eN,[m.value.phone?(e.openBlock(),e.createElementBlock("li",tN,[e.createElementVNode("a",{href:`tel:${m.value.phone}`,class:"detail__cta__item link-body-p link--udrline"},e.toDisplayString(m.value.phone),9,lN)])):e.createCommentVNode("",!0),m.value.email?(e.openBlock(),e.createElementBlock("li",oN,[e.createElementVNode("a",{href:`mailto:${m.value.email}`,class:"detail__cta__item link-body-p link--udrline"},e.toDisplayString(m.value.email),9,nN)])):e.createCommentVNode("",!0)]),m.value.link?(e.openBlock(),e.createElementBlock("div",aN)):e.createCommentVNode("",!0)])],32)):e.createCommentVNode("",!0)]),_:1}),u.value.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:"map-static-detail__btn-prev i",onClick:v[0]||(v[0]=w=>a.value-=1)}),e.createElementVNode("button",{type:"button",class:"map-static-detail__btn-next i",onClick:v[1]||(v[1]=w=>a.value+=1)})],64)):e.createCommentVNode("",!0)]))}}),sN=H(iN,[["__scopeId","data-v-c495d3da"]]),rN={class:"mapstatic_wrap"},dN=["draggable"],cN=["src"],uN=["data-title","onClick","onMouseover","onMouseleave"],mN={class:"map__detail"},AN={class:"map-prev"},pN={class:"map-next"},fN={class:"map-up"},vN={class:"map-down"},hN={key:0},VN={key:1,class:"map-hint-fullscreen flex-center"},gN=e.defineComponent({name:"MapStatic",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=()=>{o("handleDelete",l.modelValue.id)},d=()=>{o("handleCopy",l.modelValue)},u=P=>{o("handlePaste",P)};(()=>{var U;if(l.modelValue&&l.modelValue.data)return;const P={id:((U=l.modelValue)==null?void 0:U.id)||B(),type:"MapStatic",map:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",x_coordinates:49.4,y_coordinates:70,zoom_desktop:1.75,zoom_mobile:2.25,bgColor:"#f5f5f5",markers:[{key:"marker-1",name:"北京校区",x_coordinates:25.5,y_coordinates:35.2,textPos:"left",list:[{title:"香港中央图书馆",desc:"香港最大的公共图书馆,提供丰富的图书资源和学习空间。位于铜锣湾核心地带,交通便利。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"香港中央图书馆外观",phone:"+852 2921 0222",email:"info@hkpl.gov.hk",link:"https://www.hkpl.gov.hk",linkName:"访问图书馆官网",id:B()},{title:"维多利亚港观景台",desc:"欣赏维多利亚港美景的最佳地点之一,可以观看到香港岛和九龙半岛的壮丽景色。每晚8点有幻彩咏香江灯光秀。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"维多利亚港夜景",phone:"+852 2508 1234",email:"tourism@discoverhongkong.com",link:"https://www.discoverhongkong.com/tc/see-do/highlight-attractions/harbour-views/symphony-of-lights.html",linkName:"了解更多景点信息",id:B()}]},{key:"marker-2",name:"上海校区",x_coordinates:65.8,y_coordinates:45.6,textPos:"right",list:[{title:"香港中央图书馆",desc:"香港最大的公共图书馆,提供丰富的图书资源和学习空间。位于铜锣湾核心地带,交通便利。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"香港中央图书馆外观",phone:"+852 2921 0222",email:"info@hkpl.gov.hk",link:"https://www.hkpl.gov.hk",linkName:"访问图书馆官网",id:B()},{title:"维多利亚港观景台",desc:"欣赏维多利亚港美景的最佳地点之一,可以观看到香港岛和九龙半岛的壮丽景色。每晚8点有幻彩咏香江灯光秀。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"维多利亚港夜景",phone:"+852 2508 1234",email:"tourism@discoverhongkong.com",link:"https://www.discoverhongkong.com/tc/see-do/highlight-attractions/harbour-views/symphony-of-lights.html",linkName:"了解更多景点信息",id:B()}]},{key:"marker-3",name:"广州校区",x_coordinates:40.2,y_coordinates:60.8,textPos:"left",list:[{title:"香港中央图书馆",desc:"香港最大的公共图书馆,提供丰富的图书资源和学习空间。位于铜锣湾核心地带,交通便利。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"香港中央图书馆外观",phone:"+852 2921 0222",email:"info@hkpl.gov.hk",link:"https://www.hkpl.gov.hk",linkName:"访问图书馆官网",id:B()},{title:"维多利亚港观景台",desc:"欣赏维多利亚港美景的最佳地点之一,可以观看到香港岛和九龙半岛的壮丽景色。每晚8点有幻彩咏香江灯光秀。",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",alt:"维多利亚港夜景",phone:"+852 2508 1234",email:"tourism@discoverhongkong.com",link:"https://www.discoverhongkong.com/tc/see-do/highlight-attractions/harbour-views/symphony-of-lights.html",linkName:"了解更多景点信息",id:B()}]}]};o("update:modelValue",P)})();const c=e.ref({map:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/images/campus-life/school-facilities/00_yard%2001.jpg",x_coordinates:49.4,y_coordinates:70,zoom_desktop:1.75,zoom_mobile:2.25});e.ref({key:"marker-1",name:"北京校区",x_coordinates:25.5,y_coordinates:35.2,textPos:"bottom"});const r=e.ref(NaN),f=e.ref(NaN),p=e.ref(!1),A=e.ref(!1),v=e.ref(null),w=e.ref(null),V=e.ref(null),h=e.ref(null),g=e.ref(0),y=e.ref(0),N=e.ref(!1),C=e.ref(0),b=e.ref(0),x=e.ref(!0),E=e.ref(!0),_=e.ref(!0),T=e.ref(!0),S=e.ref(),L=e.ref(),O=e.computed(()=>({transformOrigin:`${R.value}% 50%`,transform:`translate(${g.value}px, ${y.value}px)`,height:`${X.value*100}%`})),M=e.computed(()=>isNaN(r.value)?null:$.value[r.value]),$=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.markers)??[]}),D=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.map)??c.value.map}),R=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.x_coordinates)??c.value.x_coordinates}),j=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.y_coordinates)??c.value.y_coordinates}),k=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.zoom_desktop)??c.value.zoom_desktop}),z=e.computed(()=>{var P;return((P=l.modelValue)==null?void 0:P.zoom_mobile)??c.value.zoom_mobile}),X=e.computed(()=>(typeof window<"u"?window.innerWidth:1024)>768?k.value:z.value),F=e.computed(()=>typeof window<"u"?window.innerWidth<1024:!1),ee=(P,U)=>({left:`${P}%`,top:`${U}%`,transform:"translate(-50%, -75%)"}),be=P=>{r.value=P,p.value=!0},Me=()=>{console.log("closeDetail"),p.value=!1,setTimeout(()=>{r.value=NaN},300)},W=P=>{if(P.type==="touchstart"){const U=P;V.value=U.touches[0].clientX-g.value,h.value=U.touches[0].clientY-y.value}else{const U=P;V.value=U.clientX-g.value,h.value=U.clientY-y.value}A.value=!0},q=()=>{V.value=v.value,h.value=w.value,A.value=!1},J=P=>{if(A.value){if(P.preventDefault(),P.type==="touchmove"){const U=P;v.value=U.touches[0].clientX-(V.value||0),w.value=U.touches[0].clientY-(h.value||0)}else{const U=P;v.value=U.clientX-(V.value||0),w.value=U.clientY-(h.value||0)}fe(v.value,w.value)}},fe=(P,U)=>{let te=P,Q=U;const ce=L.value,et=S.value;if(!ce||!et)return;const tl=ce.getBoundingClientRect().width,pl=ce.getBoundingClientRect().height,$e=et.getBoundingClientRect().height,Yt=typeof window<"u"?window.innerWidth:1024,xe={right:-tl+Yt/2,left:-1*Yt/2,top:-pl+$e/2,bottom:-1*$e/2};te<xe.right?te=xe.right:te>xe.left&&(te=xe.left),Q<xe.top?Q=xe.top:Q>xe.bottom&&(Q=xe.bottom),g.value=te,y.value=Q},ve=P=>{if(Math.abs(P.deltaX)>Math.abs(P.deltaY)){P.preventDefault();const U=g.value-P.deltaX;fe(U,y.value)}},Y=()=>{const P=L.value,U=S.value;if(P&&U&&P.clientWidth){const te=U.clientWidth,Q=U.clientHeight,ce=P.clientWidth,et=P.clientHeight;g.value=-(ce*R.value/100-te/2),y.value=-(et*j.value/100-Q/2)}fe(g.value,y.value)},I=P=>{f.value=P},K=P=>{P===f.value&&(f.value=NaN)},oe=()=>{Y(),e.nextTick(()=>{typeof window<"u"&&window.innerWidth<=768&&setTimeout(()=>N.value=!0,1300)})},se=P=>{P.preventDefault();const U=S.value;if(!U)return;const te=U.getBoundingClientRect();if(P.type==="touchmove"){const Q=P;C.value=Q.touches[0].clientX-te.left,b.value=Q.touches[0].clientY-te.top}else{const Q=P;C.value=Q.clientX-te.left,b.value=Q.clientY-te.top}};return e.watch(c,()=>{r.value=NaN}),e.watch(()=>typeof window<"u"?window.innerWidth:1024,()=>{Y()}),e.watch(A,()=>{N.value=!0}),e.watch(g,()=>{const P=L.value;if(!P)return;const U=P.getBoundingClientRect().width,te=typeof window<"u"?window.innerWidth:1024,Q={right:-U+te/2,left:-1*te/2};x.value=Q.left-g.value>50,E.value=g.value-Q.right>50}),e.watch(y,()=>{const P=L.value,U=S.value;if(!P||!U)return;const te=P.getBoundingClientRect().height,Q=U.getBoundingClientRect().height,ce={top:-te+Q/2,bottom:-1*Q/2};_.value=ce.bottom-y.value>50,T.value=y.value-ce.top>50}),e.watch(M,(P,U)=>{console.log("focosObj 发生变化:",{newValue:P,oldValue:U})},{deep:!0,immediate:!0}),e.onMounted(()=>{Y()}),(P,U)=>{var te;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(te=n.modelValue)==null?void 0:te.bgColor}]),class:"mapstatic-container",onMouseenter:U[7]||(U[7]=Q=>a.value=!0),onMouseleave:U[8]||(U[8]=Q=>a.value=!1)},[e.createElementVNode("div",rN,[e.createElementVNode("div",{class:"map-static",ref_key:"parent",ref:S,onMousemove:U[4]||(U[4]=Q=>se(Q))},[e.createElementVNode("div",{class:e.normalizeClass(["map__wrapper",{map__wrapper__blur:!N.value}]),ref_key:"wrapper",ref:L,style:e.normalizeStyle(O.value),draggable:A.value,onMousedown:U[0]||(U[0]=Q=>W(Q)),onMouseup:q,onMousemove:U[1]||(U[1]=Q=>J(Q)),onMouseleave:q,onTouchstart:U[2]||(U[2]=Q=>W(Q)),onTouchend:q,onTouchmove:U[3]||(U[3]=Q=>J(Q)),onWheel:ve},[e.createElementVNode("img",{class:"map__img",src:D.value,alt:"map image",onLoad:oe},null,40,cN),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(Q,ce)=>(e.openBlock(),e.createElementBlock("div",{key:Q.key,class:e.normalizeClass(["map__marker",[{"is-blur":p.value&&ce!==r.value,"is-active":ce==r.value},Q.textPos?`is-name-${Q.textPos}`:null]]),style:e.normalizeStyle(ee(Q.x_coordinates,Q.y_coordinates)),"data-title":Q.name,onClick:et=>be(ce),onMouseover:et=>I(ce),onMouseleave:et=>K(ce)},null,46,uN))),128))],46,dN),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",mN,[e.createVNode(sN,{componentProps:M.value,onClose:Me},null,8,["componentProps"])],512),[[e.vShow,p.value]])]),_:1}),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives(e.createElementVNode("div",AN,null,512),[[e.vShow,x.value]]),e.withDirectives(e.createElementVNode("div",pN,null,512),[[e.vShow,E.value]]),e.withDirectives(e.createElementVNode("div",fN,null,512),[[e.vShow,_.value]]),e.withDirectives(e.createElementVNode("div",vN,null,512),[[e.vShow,T.value]])],64)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[N.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",hN,[F.value?(e.openBlock(),e.createElementBlock("div",VN,[...U[10]||(U[10]=[e.createElementVNode("div",{class:"map-hint-fullscreen__hint"},"拖动以查看更多学校",-1)])])):(e.openBlock(),e.createElementBlock("div",{key:0,class:"map-hint",style:e.normalizeStyle({left:`${C.value}px`,top:`${b.value}px`})}," 拖动以查看更多学校 ",4))]))]),_:1})],544)]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":U[5]||(U[5]=Q=>a.value=Q),onHandleEdit:U[6]||(U[6]=Q=>i.value=!0),onHandleDelete:s,onHandleCopy:d,onHandlePaste:u},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(qk,{key:0,show:i.value,"onUpdate:show":U[9]||(U[9]=Q=>i.value=Q),data:n.modelValue},null,8,["show","data"]))],64)}}}),ks=H(gN,[["__scopeId","data-v-25e92b2c"]]),yN={install:n=>{n.component("RibbonBlock",us)}},bN={install:n=>{n.component("TimelineStory",ms)}},wN={install:n=>{n.component("NewsList",ps)}},xN={install:n=>{n.component("TheHistoryCarousel",fs)}},kN={install:n=>{n.component("CardShowcaseProfile",vs)}},NN={install:n=>{n.component("ArticleList",hi)}},_N={install:n=>{n.component("BannerImage",Vi)}},CN={install:n=>{n.component("BannerPage",gi)}},EN={install:n=>{n.component("BtnList",ha)}},TN={install:n=>{n.component("GalleryDefault",bi)}},SN={install:n=>{n.component("GalleryCaptionRound",wi)}},PN={install:n=>{n.component("GalleryTimeline",Gi)}},BN={install:n=>{n.component("GalleryTimelineCol",Ji)}},LN={install:n=>{n.component("Process",Qi)}},ON={install:n=>{n.component("CustomSpace",es)}},MN={install:n=>{n.component("GalleryList",ts)}},zN={install:n=>{n.component("HeroSlide",ls)}},jN={install:n=>{n.component("LinkList",os)}},$N={install:n=>{n.component("QuoteText",ns)}},DN={install:n=>{n.component("DonorLinks",as)}},UN={install:n=>{n.component("CardCarousel",ss)}},RN={install:n=>{n.component("CardCarouselMultiRow",rs)}},HN={install:n=>{n.component("BannerQuote",ds)}},WN={install:n=>{n.component("ArticleItem",cs)}},IN={install:n=>{n.component("CountDown",hs)}},XN={install:n=>{n.component("CustomIframe",Vs)}},qN={install:n=>{n.component("BannerImageWithLink",bs)}},FN={install:n=>{n.component("ContactUsList",gs)}},YN={install:n=>{n.component("TableTwo",ys)}},ZN={class:"seting-box"},GN={key:0},JN={class:"setting-header items-center"},KN={class:"draggable_box"},QN={class:"drag_top_box"},e_=["onClick"],t_=["src"],l_={class:"item-uplaod flex items-center"},o_={key:1},n_={class:"draggable_link_box"},a_={class:"drag_link_top_box"},i_=["onClick"],s_={class:"link_item",style:{"margin-top":"20px"}},r_={style:{width:"160px"}},d_=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),o=e.computed(()=>({animation:200,group:"linkItems",disabled:!1,ghostClass:"ghost"})),a=e.ref(!1),i=e.ref(!1),s=n,d=e.ref(new Set);e.ref(new Set);const u=e.ref(new Set),m=g=>{d.value.has(g.id)?d.value.delete(g.id):d.value.add(g.id)},c=g=>{s.data.list=s.data.list.filter(y=>y.id!==g)},r=()=>{console.log("props.data",s.data),s.data.list.push({id:B(),name:"[[ New Key Info ]]",title:"title111",image:"",label:"",content:"",links:[]}),e.nextTick(()=>{if(typeof document<"u"){const y=document.querySelector(".arco-drawer-body");y&&(y.scrollTop=y.scrollHeight)}})},f=g=>d.value.has(g.id),p=t,A=()=>{p("update:show",!1)},v=g=>{u.value.has(g.id)?u.value.delete(g.id):u.value.add(g.id)},w=g=>u.value.has(g.id),V=g=>{const y=s.data.list.find(N=>N.id===g);y&&y.links.push({id:B(),text:"新链接",linkType:"Internal Link",url:""})},h=(g,y)=>{const N=s.data.list.find(C=>C.id===g);N&&(N.links=N.links.filter(C=>C.id!==y))};return(g,y)=>{const N=e.resolveComponent("icon-drag-dot"),C=e.resolveComponent("icon-drag-arrow"),b=e.resolveComponent("icon-delete"),x=e.resolveComponent("a-input"),E=e.resolveComponent("a-option"),_=e.resolveComponent("a-select"),T=e.resolveComponent("icon-plus"),S=e.resolveComponent("a-button"),L=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(L,{width:500,visible:n.show,footer:!1,onCancel:A,unmountOnClose:""},{title:e.withCtx(()=>{var O;return[e.createTextVNode(e.toDisplayString((O=n.data)==null?void 0:O.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",ZN,[y[16]||(y[16]=e.createElementVNode("div",{class:"part_title"},"表格头部",-1)),n.data.list.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",GN,"暂无数据")),e.createElementVNode("div",JN,[e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.list,"onUpdate:modelValue":y[2]||(y[2]=O=>n.data.list=O),"component-data":{tag:"div",type:"transition-group",name:a.value?null:"flip-list"}},l.value,{disabled:!1,onStart:y[3]||(y[3]=O=>a.value=!0),onEnd:y[4]||(y[4]=O=>a.value=!1),"item-key":"id"}),{item:e.withCtx(({element:O})=>[e.createElementVNode("div",KN,[e.createElementVNode("div",QN,[e.createElementVNode("div",{onClick:M=>m(O)},[e.createVNode(N,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(O.name),1)],8,e_),e.createElementVNode("div",null,[e.createVNode(C,{class:"icon_drag"}),e.createVNode(b,{class:"btn-delete",onClick:e.withModifiers(M=>c(O.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[y[9]||(y[9]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"名称",-1)),e.createVNode(x,{modelValue:O.name,"onUpdate:modelValue":M=>O.name=M,placeholder:"请输入名称","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),y[10]||(y[10]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标题",-1)),e.createVNode(x,{modelValue:O.title,"onUpdate:modelValue":M=>O.title=M,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),y[11]||(y[11]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),O!=null&&O.image?(e.openBlock(),e.createElementBlock("img",{key:0,class:"item-img",src:O==null?void 0:O.image},null,8,t_)):e.createCommentVNode("",!0),e.createElementVNode("div",l_,[e.createVNode(x,{modelValue:O.image,"onUpdate:modelValue":M=>O.image=M,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:O.image,"onUpdate:modelValue":M=>O.image=M,name:`ScrollKeyInfo_${O.id}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),y[12]||(y[12]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标签",-1)),e.createVNode(x,{modelValue:O.label,"onUpdate:modelValue":M=>O.label=M,placeholder:"标签","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),y[13]||(y[13]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"内容",-1)),e.createVNode(e.unref(qe),{modelValue:O.content,"onUpdate:modelValue":M=>O.content=M,height:100,placeholder:"请输入内容",name:`ScrollKeyInfo_editor_${O.id}`},null,8,["modelValue","onUpdate:modelValue","name"]),y[14]||(y[14]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"链接",-1)),O.links.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",o_,"暂无数据")),e.createVNode(e.unref(de),e.mergeProps({modelValue:O.links,"onUpdate:modelValue":M=>O.links=M,"component-data":{tag:"div",type:"transition-group",name:i.value?null:"flip-list"}},o.value,{disabled:!1,onStart:y[0]||(y[0]=M=>i.value=!0),onEnd:y[1]||(y[1]=M=>i.value=!1),"item-key":"id"}),{item:e.withCtx(({element:M,index:$})=>[e.createElementVNode("div",n_,[e.createElementVNode("div",a_,[e.createElementVNode("div",{onClick:D=>v(M)},[e.createVNode(N,{style:{"margin-right":"10px"}}),e.createTextVNode("链接 "+e.toDisplayString($+1),1)],8,i_),e.createElementVNode("div",null,[e.createVNode(C,{class:"icon_drag"}),e.createVNode(b,{class:"btn-delete",onClick:e.withModifiers(D=>h(O.id,M.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[y[7]||(y[7]=e.createElementVNode("p",{class:"link-title"},"链接文本",-1)),e.createVNode(x,{modelValue:M.text,"onUpdate:modelValue":D=>M.text=D,placeholder:"请输入文本"},null,8,["modelValue","onUpdate:modelValue"]),e.createElementVNode("div",s_,[e.createElementVNode("div",r_,[e.createVNode(_,{modelValue:M.linkType,"onUpdate:modelValue":D=>M.linkType=D,placeholder:"请选择链接类型"},{default:e.withCtx(()=>[e.createVNode(E,{value:"Internal Link"},{default:e.withCtx(()=>[...y[5]||(y[5]=[e.createTextVNode("Internal Link",-1)])]),_:1}),e.createVNode(E,{value:"External Link"},{default:e.withCtx(()=>[...y[6]||(y[6]=[e.createTextVNode("External Link",-1)])]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])]),e.createVNode(x,{modelValue:M.url,"onUpdate:modelValue":D=>M.url=D,placeholder:"请输入链接地址"},null,8,["modelValue","onUpdate:modelValue"])])],512),[[e.vShow,!w(M)]])]),_:2},1024)])]),_:2},1040,["modelValue","onUpdate:modelValue","component-data"]),e.createVNode(S,{style:{"margin-top":"20px"},size:"mini",type:"primary",onClick:M=>V(O.id)},{icon:e.withCtx(()=>[e.createVNode(T)]),default:e.withCtx(()=>[y[8]||(y[8]=e.createTextVNode(" 链接 ",-1))]),_:1},8,["onClick"])],512),[[e.vShow,!f(O)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"])]),e.createVNode(S,{type:"primary",onClick:r},{icon:e.withCtx(()=>[e.createVNode(T)]),default:e.withCtx(()=>[y[15]||(y[15]=e.createTextVNode(" 新增 ",-1))]),_:1})])]),_:1},8,["visible"])}}}),c_=H(d_,[["__scopeId","data-v-1f5c2c09"]]),u_={class:"scroll-key-info scrollkey_wrap"},m_={class:"scroll-key-info__wrapper"},A_={class:"middle_content_box"},p_={class:"content_wrap"},f_={class:"left_content"},v_={class:"title"},h_={class:"lable"},V_={class:"right_content"},g_={class:"top_content"},y_=["innerHTML"],b_={key:0,class:"bottom_content"},w_=["href"],x_={class:"a_text"},k_=["onClick"],N_={class:"a_text"},__={class:"scroll-key-info__step-bar d-none d-md-block"},C_={class:"step-bar__wrapper container-content"},E_={class:"step-bar__list"},T_=["onClick"],S_={class:"step-bar__item__text"},P_={class:"mobile_wrap"},B_={class:"tab-primary__list"},L_=["onClick"],O_={class:"flex-center"},M_={class:"tab__content__card"},z_={class:"text-blue-dark"},j_={class:"tx-body-p text-teal-dark mt-1"},$_={class:"tab__content__card__content mt-3"},D_=["innerHTML"],U_={class:"tab__content__card__link mt-6"},R_={class:"circle-link"},H_=["onClick"],W_=["onClick"],I_=e.defineComponent({name:"ScrollKeyInfo",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(n,{emit:t}){const l=n;console.log("!!!!",l.modelValue);const o=t,a=e.ref(!1),i=e.ref(!1),s=e.ref(0),d=e.ref(null),u=e.ref(0),m=e.ref(0),c=()=>{o("handleDelete",l.modelValue.id)},r=()=>{o("handleCopy",l.modelValue)},f=V=>{o("handlePaste",V)},p=V=>{o("handleClick",V)},A=()=>{var h;if(l.modelValue&&l.modelValue.data)return;const V={id:((h=l.modelValue)==null?void 0:h.id)||B(),type:"ScrollKeyInfo",list:[{name:"name111",title:"title111",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/pdf/TX%20Brochure%20Cover.png",label:"label1111",content:"content111",links:[{text:"text111",linkType:"Internal Link",url:"https://www.baidu.com"},{text:"text2222",linkType:"Internal Link",url:"https://www.baidu.com"}]},{name:"name2222222",title:"title22222",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/pdf/TX%20Brochure%20Cover.png",label:"label2222",content:"content111",links:[{text:"text111",linkType:"Internal Link",url:"https://www.baidu.com"},{text:"text2222",linkType:"Internal Link",url:"https://www.baidu.com"}]},{name:"name33333333",title:"title333333",image:"https://osswebsite-test.cedim.cn/media-library/ywies-tx/pdf/TX%20Brochure%20Cover.png",label:"label2222",content:"content111",links:[{text:"text111",linkType:"Internal Link",url:"https://www.baidu.com"},{text:"text2222",linkType:"Internal Link",url:"https://www.baidu.com"}]}]};o("update:modelValue",V)},v=(V,h)=>{s.value=V,w(h)},w=V=>{var E;const h=V.currentTarget.querySelector(".tab-primary__btn"),g=h.offsetWidth,y=h.offsetLeft,N=u.value,C=m.value,b=(E=d==null?void 0:d.value)==null?void 0:E.querySelector(".tab-primary__strip");b.style.transition="none";const x=Math.abs(y-C)+Math.max(g,N);m.value=Math.min(C,y),u.value=x,b.offsetHeight,b.style.transition="left 0.25s ease-in-out, width 0.25s ease-in-out",setTimeout(()=>{m.value=y,u.value=g},260)};return e.onMounted(()=>{e.nextTick(()=>{var g;const h=((g=d==null?void 0:d.value)==null?void 0:g.querySelectorAll(".tab-primary__item")[0]).querySelector(".tab-primary__btn");u.value=h.offsetWidth,m.value=h.offsetLeft})}),A(),(V,h)=>{var g,y,N,C,b,x,E;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle([{"margin-top":"30px","margin-bottom":"30px"},{backgroundColor:(g=n.modelValue)==null?void 0:g.bgColor}]),class:"scroll-key-info-container",onMouseenter:h[2]||(h[2]=_=>a.value=!0),onMouseleave:h[3]||(h[3]=_=>a.value=!1)},[e.createElementVNode("div",u_,[e.createElementVNode("div",m_,[e.createVNode(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>{var _,T,S,L,O,M,$;return[(e.openBlock(),e.createElementBlock("div",{class:"pc_wrap",key:s.value,style:e.normalizeStyle({position:"relative",height:"100%",backgroundPosition:"50%",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundImage:"linear-gradient(180deg, hsla(0, 0%, 100%, 0) 78.25%, #edeef1 83.46%),url("+((_=n.modelValue)==null?void 0:_.list[s.value].image)+")"})},[e.createElementVNode("div",A_,[e.createElementVNode("div",p_,[e.createElementVNode("div",f_,[e.createElementVNode("h5",v_,e.toDisplayString((T=n.modelValue)==null?void 0:T.list[s.value].name),1),e.createElementVNode("div",h_,e.toDisplayString((S=n.modelValue)==null?void 0:S.list[s.value].label),1)]),e.createElementVNode("div",V_,[e.createElementVNode("p",g_,[e.createElementVNode("strong",{class:"content",innerHTML:(L=n.modelValue)==null?void 0:L.list[s.value].content},null,8,y_)]),(M=(O=n.modelValue)==null?void 0:O.list[s.value])!=null&&M.links.length?(e.openBlock(),e.createElementBlock("div",b_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(($=n.modelValue)==null?void 0:$.list[s.value].links,D=>(e.openBlock(),e.createElementBlock("div",{class:"bottom_item",key:D},[D&&D.url&&D.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,class:"a_style",href:D.url,target:"_blank"},[e.createElementVNode("span",x_,e.toDisplayString(D.text),1),h[5]||(h[5]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,w_)):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:R=>p(D.url),class:"a_style"},[e.createElementVNode("span",N_,e.toDisplayString(D.text),1),h[6]||(h[6]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,k_))]))),128))])):e.createCommentVNode("",!0)])])])],4))]}),_:1}),e.createElementVNode("div",__,[e.createElementVNode("div",C_,[e.createElementVNode("ul",E_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((y=n.modelValue)==null?void 0:y.list,(_,T)=>(e.openBlock(),e.createElementBlock("li",{onClick:S=>v(T,S),class:e.normalizeClass(["step-bar__item",[s.value===T?"is-active":""]])},[e.createElementVNode("div",S_,e.toDisplayString(_.name),1)],10,T_))),256))])])])]),h[7]||(h[7]=e.createElementVNode("div",{class:"scroll-key-info__content"},[e.createElementVNode("div")],-1))]),e.createElementVNode("div",P_,[e.createVNode(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>{var _;return[(e.openBlock(),e.createElementBlock("div",{class:"pc_wrap",key:s.value,style:e.normalizeStyle({position:"relative",height:"100%",backgroundPosition:"50%",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundImage:"linear-gradient(180deg, hsla(0, 0%, 100%, 0) 78.25%, #edeef1 83.46%),url("+((_=n.modelValue)==null?void 0:_.list[s.value].image)+")"})},null,4))]}),_:1}),e.createElementVNode("div",{class:"tab-primary is-campus",ref_key:"tabContainer",ref:d},[e.createElementVNode("ul",B_,[h[8]||(h[8]=e.createElementVNode("div",{class:"tab-primary__nav__prev",style:{display:"none"}},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((N=n.modelValue)==null?void 0:N.list,(_,T)=>(e.openBlock(),e.createElementBlock("li",{onClick:S=>v(T,S),class:"tab-primary__item"},[e.createElementVNode("div",O_,[e.createElementVNode("div",{class:e.normalizeClass(["tab-primary__btn",[s.value===T?"is-active":""]])},[e.createElementVNode("div",null,e.toDisplayString(_.name),1)],2)])],8,L_))),256)),h[9]||(h[9]=e.createElementVNode("div",{class:"tab-primary__nav__next",style:{display:"none"}},null,-1))]),e.createElementVNode("span",{class:"tab-primary__strip",style:e.normalizeStyle({"--strip-width":u.value+"px","--strip-left":m.value+"px","--fix-left":"0px"})},null,4)],512),e.createElementVNode("div",M_,[e.createElementVNode("h5",z_,e.toDisplayString((C=n.modelValue)==null?void 0:C.list[s.value].name),1),e.createElementVNode("div",j_,e.toDisplayString((b=n.modelValue)==null?void 0:b.list[s.value].label),1),e.createElementVNode("div",$_,[e.createElementVNode("p",{innerHTML:(x=n.modelValue)==null?void 0:x.list[s.value].content},null,8,D_)]),e.createElementVNode("div",U_,[e.createElementVNode("div",R_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((E=n.modelValue)==null?void 0:E.list[s.value].links,_=>{var T;return e.openBlock(),e.createElementBlock("div",{key:_},[_.url&&_.url.includes("http")?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:S=>p(_.url),class:"nuxt-link-active"},[e.createElementVNode("div",null,e.toDisplayString(_.text),1),h[10]||(h[10]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,H_)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList((T=n.modelValue)==null?void 0:T.list[s.value].links,S=>(e.openBlock(),e.createElementBlock("button",{onClick:L=>p(S.url),class:"nuxt-link-active",key:S},[e.createElementVNode("div",null,e.toDisplayString(S.text),1),h[11]||(h[11]=e.createElementVNode("span",{class:"circle-link__icon"},null,-1))],8,W_))),128))])}),128))])])])]),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye,{key:0,show:a.value,"onUpdate:show":h[0]||(h[0]=_=>a.value=_),onHandleEdit:h[1]||(h[1]=_=>i.value=!0),onHandleDelete:c,onHandleCopy:r,onHandlePaste:f},null,8,["show"]))],36),n.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c_,{key:0,show:i.value,"onUpdate:show":h[4]||(h[4]=_=>i.value=_),data:n.modelValue},null,8,["show","data"]))],64)}}}),X_=H(I_,[["__scopeId","data-v-25e84daf"]]),q_={install:n=>{n.component("ScrollKeyInfo",X_)}},F_={install:n=>{n.component("ContactUsInfo",ws)}},Y_={install:n=>{n.component("Publications",xs)}},Z_={install:n=>{n.component("MapStatic",ks)}},G_={class:"seting-box"},J_={key:0},K_={class:"draggable_box"},Q_={class:"drag_top_box"},eC=["onClick"],tC={class:"line-clamp-2"},lC=["src"],oC={class:"item-uplaod flex items-center"},nC={class:"btn_group"},aC=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(n,{emit:t}){const l=n,o=p=>{const A={key:B(8),title:"新文章",description:"这是一个新的文章描述",image:"https://picsum.photos/800/600",date:new Date().toISOString().split("T")[0],label:"new",labelName:"新标签",category:"new"};p==="prepend"?l.data.list.unshift(A):p==="append"&&l.data.list.push(A)},a=p=>s.value.has(p.key),i=e.computed(()=>({animation:200,group:"links",disabled:!1,ghostClass:"ghost"})),s=e.ref(new Set),d=p=>{l.data.list=l.data.list.filter(A=>A.key!==p)},u=p=>{if(!s.value.has(p.key))s.value.add(p.key);else{const A=[];l.data.list.forEach(v=>{v.key&&A.push(v.key)}),s.value=new Set(A),s.value.delete(p.key)}},m=e.ref(!1);e.watch(()=>{var p;return(p=l.data)==null?void 0:p.list},p=>{if(p&&Array.isArray(p)&&!m.value){m.value=!0;const A=p.map(v=>v.key);s.value=new Set(A)}},{immediate:!0,deep:!0});const c=t,r=e.ref(!1),f=()=>{c("update:show",!1)};return(p,A)=>{const v=e.resolveComponent("a-option"),w=e.resolveComponent("a-select"),V=e.resolveComponent("a-input"),h=e.resolveComponent("icon-drag-dot"),g=e.resolveComponent("icon-drag-arrow"),y=e.resolveComponent("icon-delete"),N=e.resolveComponent("a-date-picker"),C=e.resolveComponent("a-button"),b=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(b,{width:500,visible:n.show,footer:!1,onCancel:f,unmountOnClose:""},{title:e.withCtx(()=>{var x;return[e.createTextVNode(e.toDisplayString((x=n.data)==null?void 0:x.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",G_,[A[20]||(A[20]=e.createElementVNode("p",{class:"item-title"},"内容宽度",-1)),e.createVNode(w,{style:{width:"320px",background:"#ffffff",marginBottom:"20px"},modelValue:n.data.width,"onUpdate:modelValue":A[0]||(A[0]=x=>n.data.width=x),placeholder:"请选择宽度..."},{default:e.withCtx(()=>[e.createVNode(v,{value:"container-content-800"},{default:e.withCtx(()=>[...A[7]||(A[7]=[e.createTextVNode("小 ",-1)])]),_:1}),e.createVNode(v,{value:"container-content-952"},{default:e.withCtx(()=>[...A[8]||(A[8]=[e.createTextVNode("默认 ",-1)])]),_:1}),e.createVNode(v,{value:"container-content-1208"},{default:e.withCtx(()=>[...A[9]||(A[9]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(v,{value:"container-content-1920"},{default:e.withCtx(()=>[...A[10]||(A[10]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"]),n.data.getDataType==="all"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[A[11]||(A[11]=e.createElementVNode("p",{class:"item-title"},"您希望展示的文章类别标签",-1)),e.createVNode(V,{modelValue:n.data.getDataType,"onUpdate:modelValue":A[1]||(A[1]=x=>n.data.getDataType=x)},null,8,["modelValue"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.data.list.length===0?(e.openBlock(),e.createElementBlock("div",J_,"暂无数据")):e.createCommentVNode("",!0),e.createVNode(e.unref(de),e.mergeProps({modelValue:n.data.list,"onUpdate:modelValue":A[2]||(A[2]=x=>n.data.list=x),"component-data":{tag:"div",type:"transition-group",name:r.value?null:"flip-list"}},i.value,{disabled:!1,onStart:A[3]||(A[3]=x=>r.value=!0),onEnd:A[4]||(A[4]=x=>r.value=!1),"item-key":"key"}),{item:e.withCtx(({element:x,index:E})=>[e.createElementVNode("div",K_,[e.createElementVNode("div",Q_,[e.createElementVNode("div",{style:{display:"flex","align-items":"center"},onClick:_=>u(x)},[e.createVNode(h,{style:{"margin-right":"10px"}}),e.createElementVNode("span",tC,e.toDisplayString(x.title),1)],8,eC),e.createElementVNode("div",null,[e.createVNode(g,{class:"icon_drag"}),e.createVNode(y,{class:"btn-delete",onClick:e.withModifiers(_=>d(x.key),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[A[12]||(A[12]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标题",-1)),e.createVNode(V,{style:{border:"1px solid #f1eeee"},modelValue:x.title,"onUpdate:modelValue":_=>x.title=_},null,8,["modelValue","onUpdate:modelValue"]),A[13]||(A[13]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:x.image},null,8,lC),e.createElementVNode("div",oC,[e.createVNode(V,{modelValue:x.image,"onUpdate:modelValue":_=>x.image=_,placeholder:"请输入图片链接","allow-clear":"",style:{border:"1px solid #c0c0c0"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(Ne,{modelValue:x.image,"onUpdate:modelValue":_=>x.image=_,name:`CardCarouselArticles_${x.key}`,"button-class":"fit-content"},null,8,["modelValue","onUpdate:modelValue","name"])]),A[14]||(A[14]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"链接",-1)),e.createVNode(V,{style:{border:"1px solid #f1eeee"},modelValue:x.link,"onUpdate:modelValue":_=>x.link=_},null,8,["modelValue","onUpdate:modelValue"]),A[15]||(A[15]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标签名称",-1)),e.createVNode(V,{style:{border:"1px solid #f1eeee"},modelValue:x.labelName,"onUpdate:modelValue":_=>x.labelName=_},null,8,["modelValue","onUpdate:modelValue"]),A[16]||(A[16]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"描述",-1)),e.createVNode(V,{style:{border:"1px solid #f1eeee"},modelValue:x.desc,"onUpdate:modelValue":_=>x.desc=_},null,8,["modelValue","onUpdate:modelValue"]),A[17]||(A[17]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"日期",-1)),e.createVNode(N,{style:{width:"200px"},modelValue:x.date,"onUpdate:modelValue":_=>x.date=_},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!a(x)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"]),e.createElementVNode("div",nC,[e.createVNode(C,{onClick:A[5]||(A[5]=x=>o("prepend")),type:"primary",style:{"margin-right":"20px"}},{default:e.withCtx(()=>[...A[18]||(A[18]=[e.createTextVNode("前置",-1)])]),_:1}),e.createVNode(C,{onClick:A[6]||(A[6]=x=>o("append")),type:"primary"},{default:e.withCtx(()=>[...A[19]||(A[19]=[e.createTextVNode("追加",-1)])]),_:1})])],64))])]),_:1},8,["visible"])}}}),iC=H(aC,[["__scopeId","data-v-2bf2966b"]]);/*!
30
30
  * vue-router v4.5.1
31
31
  * (c) 2025 Eduardo San Martin Morote
32
32
  * @license MIT