@cntrl-site/components 0.1.30-alpha.3 → 0.1.30-alpha.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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),V=require("react"),ae=require("classnames"),Br=require("react-dom"),Wr="ControlSlider-module__wrapper___sHEkd",Fr="ControlSlider-module__hoverArrow___A-dOH",Mr="ControlSlider-module__sliderItem___QQSkR",Vr="ControlSlider-module__sliderImage___9hRl-",Hr="ControlSlider-module__arrow___05ghY",$r="ControlSlider-module__arrowVertical___tBfVN",Ur="ControlSlider-module__nextArrow___-30Yc",Gr="ControlSlider-module__arrowInner___aEra3",Yr="ControlSlider-module__arrowIcon___S4ztF",Xr="ControlSlider-module__arrowImg___2dwJW",Kr="ControlSlider-module__mirror___brd6U",qr="ControlSlider-module__pagination___bicLF",Jr="ControlSlider-module__paginationInner___bT-P-",Zr="ControlSlider-module__paginationVertical___zYqKw",Qr="ControlSlider-module__paginationItem___nTRbk",ei="ControlSlider-module__dot___p1Qun",ti="ControlSlider-module__activeDot___LHFaj",ni="ControlSlider-module__paginationInsideBottom___R3FWn",ri="ControlSlider-module__paginationInsideTop___V-qb-",ii="ControlSlider-module__paginationOutsideBottom___14w8D",oi="ControlSlider-module__paginationOutsideTop___SCLqB",ai="ControlSlider-module__paginationInsideLeft___yOBRZ",li="ControlSlider-module__paginationInsideRight___Rtt3o",si="ControlSlider-module__paginationOutsideLeft___lahaw",ci="ControlSlider-module__paginationOutsideRight___EtuQa",ui="ControlSlider-module__imgWrapper___UjEgB",pi="ControlSlider-module__captionBlock___dJ6-j",di="ControlSlider-module__captionTextWrapper___HFlpf",mi="ControlSlider-module__captionText___uGBVc",gi="ControlSlider-module__active___WZK4G",fi="ControlSlider-module__withPointerEvents___t-18M",hi="ControlSlider-module__topLeftAlignment___zjnGM",vi="ControlSlider-module__topCenterAlignment___gD1xW",yi="ControlSlider-module__topRightAlignment___NMapS",bi="ControlSlider-module__middleLeftAlignment___OnUrY",_i="ControlSlider-module__middleCenterAlignment___Tdkl0",wi="ControlSlider-module__middleRightAlignment___wEbfX",Si="ControlSlider-module__bottomLeftAlignment___cTP2-",xi="ControlSlider-module__bottomCenterAlignment___c54fB",Ci="ControlSlider-module__bottomRightAlignment___kEwrz",Ai="ControlSlider-module__clickOverlay___DZA28",Ii="ControlSlider-module__contain___pLyq7",Ei="ControlSlider-module__cover___KdDat",G={wrapper:Wr,hoverArrow:Fr,sliderItem:Mr,sliderImage:Vr,arrow:Hr,arrowVertical:$r,nextArrow:Ur,arrowInner:Gr,arrowIcon:Yr,arrowImg:Xr,mirror:Kr,pagination:qr,paginationInner:Jr,paginationVertical:Zr,paginationItem:Qr,dot:ei,activeDot:ti,paginationInsideBottom:ni,paginationInsideTop:ri,paginationOutsideBottom:ii,paginationOutsideTop:oi,paginationInsideLeft:ai,paginationInsideRight:li,paginationOutsideLeft:si,paginationOutsideRight:ci,imgWrapper:ui,captionBlock:pi,captionTextWrapper:di,captionText:mi,active:gi,withPointerEvents:fi,topLeftAlignment:hi,topCenterAlignment:vi,topRightAlignment:yi,middleLeftAlignment:bi,middleCenterAlignment:_i,middleRightAlignment:wi,bottomLeftAlignment:Si,bottomCenterAlignment:xi,bottomRightAlignment:Ci,clickOverlay:Ai,contain:Ii,cover:Ei};function Li(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function Ti(e,n,r){return n&&Li(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var kn="(prefers-reduced-motion: reduce)",Ze=1,Ri=2,tt=3,it=4,vt=5,Tt=6,kt=7,Ni={CREATED:Ze,MOUNTED:Ri,IDLE:tt,MOVING:it,SCROLLING:vt,DRAGGING:Tt,DESTROYED:kt};function Oe(e){e.length=0}function We(e,n,r){return Array.prototype.slice.call(e,n,r)}function ce(e){return e.bind.apply(e,[null].concat(We(arguments,1)))}var tr=setTimeout,tn=function(){};function On(e){return requestAnimationFrame(e)}function Wt(e,n){return typeof n===e}function ut(e){return!dn(e)&&Wt("object",e)}var pn=Array.isArray,nr=ce(Wt,"function"),Pe=ce(Wt,"string"),yt=ce(Wt,"undefined");function dn(e){return e===null}function rr(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function bt(e){return pn(e)?e:[e]}function Se(e,n){bt(e).forEach(n)}function mn(e,n){return e.indexOf(n)>-1}function Rt(e,n){return e.push.apply(e,bt(n)),e}function Ne(e,n,r){e&&Se(n,function(t){t&&e.classList[r?"add":"remove"](t)})}function Ie(e,n){Ne(e,Pe(n)?n.split(" "):n,!0)}function _t(e,n){Se(n,e.appendChild.bind(e))}function gn(e,n){Se(e,function(r){var t=(n||r).parentNode;t&&t.insertBefore(r,n)})}function pt(e,n){return rr(e)&&(e.msMatchesSelector||e.matches).call(e,n)}function ir(e,n){var r=e?We(e.children):[];return n?r.filter(function(t){return pt(t,n)}):r}function wt(e,n){return n?ir(e,n)[0]:e.firstElementChild}var dt=Object.keys;function He(e,n,r){return e&&(r?dt(e).reverse():dt(e)).forEach(function(t){t!=="__proto__"&&n(e[t],t)}),e}function mt(e){return We(arguments,1).forEach(function(n){He(n,function(r,t){e[t]=n[t]})}),e}function ze(e){return We(arguments,1).forEach(function(n){He(n,function(r,t){pn(r)?e[t]=r.slice():ut(r)?e[t]=ze({},ut(e[t])?e[t]:{},r):e[t]=r})}),e}function Dn(e,n){Se(n||dt(e),function(r){delete e[r]})}function Ee(e,n){Se(e,function(r){Se(n,function(t){r&&r.removeAttribute(t)})})}function J(e,n,r){ut(n)?He(n,function(t,o){J(e,o,t)}):Se(e,function(t){dn(r)||r===""?Ee(t,n):t.setAttribute(n,String(r))})}function Qe(e,n,r){var t=document.createElement(e);return n&&(Pe(n)?Ie(t,n):J(t,n)),r&&_t(r,t),t}function xe(e,n,r){if(yt(r))return getComputedStyle(e)[n];dn(r)||(e.style[n]=""+r)}function gt(e,n){xe(e,"display",n)}function or(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function Ce(e,n){return e.getAttribute(n)}function zn(e,n){return e&&e.classList.contains(n)}function _e(e){return e.getBoundingClientRect()}function Ue(e){Se(e,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)})}function ar(e){return wt(new DOMParser().parseFromString(e,"text/html").body)}function Re(e,n){e.preventDefault(),n&&(e.stopPropagation(),e.stopImmediatePropagation())}function lr(e,n){return e&&e.querySelector(n)}function fn(e,n){return n?We(e.querySelectorAll(n)):[]}function je(e,n){Ne(e,n,!1)}function nn(e){return e.timeStamp}function Ve(e){return Pe(e)?e:e?e+"px":""}var St="splide",hn="data-"+St;function st(e,n){if(!e)throw new Error("["+St+"] "+(n||""))}var Be=Math.min,Ot=Math.max,Dt=Math.floor,ft=Math.ceil,be=Math.abs;function sr(e,n,r){return be(e-n)<r}function Nt(e,n,r,t){var o=Be(n,r),l=Ot(n,r);return t?o<e&&e<l:o<=e&&e<=l}function qe(e,n,r){var t=Be(n,r),o=Ot(n,r);return Be(Ot(t,e),o)}function rn(e){return+(e>0)-+(e<0)}function on(e,n){return Se(n,function(r){e=e.replace("%s",""+r)}),e}function vn(e){return e<10?"0"+e:""+e}var Pn={};function ji(e){return""+e+vn(Pn[e]=(Pn[e]||0)+1)}function cr(){var e=[];function n(i,s,a,p){o(i,s,function(c,w,v){var b="addEventListener"in c,u=b?c.removeEventListener.bind(c,w,a,p):c.removeListener.bind(c,a);b?c.addEventListener(w,a,p):c.addListener(a),e.push([c,w,v,a,u])})}function r(i,s,a){o(i,s,function(p,c,w){e=e.filter(function(v){return v[0]===p&&v[1]===c&&v[2]===w&&(!a||v[3]===a)?(v[4](),!1):!0})})}function t(i,s,a){var p,c=!0;return typeof CustomEvent=="function"?p=new CustomEvent(s,{bubbles:c,detail:a}):(p=document.createEvent("CustomEvent"),p.initCustomEvent(s,c,!1,a)),i.dispatchEvent(p),p}function o(i,s,a){Se(i,function(p){p&&Se(s,function(c){c.split(" ").forEach(function(w){var v=w.split(".");a(p,v[0],v[1])})})})}function l(){e.forEach(function(i){i[4]()}),Oe(e)}return{bind:n,unbind:r,dispatch:t,destroy:l}}var Fe="mounted",an="ready",De="move",ot="moved",yn="click",ur="active",pr="inactive",dr="visible",mr="hidden",he="refresh",ye="updated",nt="resize",Ft="resized",gr="drag",fr="dragging",hr="dragged",Mt="scroll",Ye="scrolled",ki="overflow",bn="destroy",vr="arrows:mounted",yr="arrows:updated",br="pagination:mounted",_r="pagination:updated",_n="navigation:mounted",wn="autoplay:play",wr="autoplay:playing",Sn="autoplay:pause",xn="lazyload:loaded",Sr="sk",xr="sh",zt="ei";function pe(e){var n=e?e.event.bus:document.createDocumentFragment(),r=cr();function t(l,i){r.bind(n,bt(l).join(" "),function(s){i.apply(i,pn(s.detail)?s.detail:[])})}function o(l){r.dispatch(n,l,We(arguments,1))}return e&&e.event.on(bn,r.destroy),mt(r,{bus:n,on:t,off:ce(r.unbind,n),emit:o})}function Vt(e,n,r,t){var o=Date.now,l,i=0,s,a=!0,p=0;function c(){if(!a){if(i=e?Be((o()-l)/e,1):1,r&&r(i),i>=1&&(n(),l=o(),t&&++p>=t))return v();s=On(c)}}function w(S){S||u(),l=o()-(S?i*e:0),a=!1,s=On(c)}function v(){a=!0}function b(){l=o(),i=0,r&&r(i)}function u(){s&&cancelAnimationFrame(s),i=0,s=0,a=!0}function d(S){e=S}function C(){return a}return{start:w,rewind:b,pause:v,cancel:u,set:d,isPaused:C}}function Oi(e){var n=e;function r(o){n=o}function t(o){return mn(bt(o),n)}return{set:r,is:t}}function Di(e,n){var r=Vt(0,e,null,1);return function(){r.isPaused()&&r.start()}}function zi(e,n,r){var t=e.state,o=r.breakpoints||{},l=r.reducedMotion||{},i=cr(),s=[];function a(){var u=r.mediaQuery==="min";dt(o).sort(function(d,C){return u?+d-+C:+C-+d}).forEach(function(d){c(o[d],"("+(u?"min":"max")+"-width:"+d+"px)")}),c(l,kn),w()}function p(u){u&&i.destroy()}function c(u,d){var C=matchMedia(d);i.bind(C,"change",w),s.push([u,C])}function w(){var u=t.is(kt),d=r.direction,C=s.reduce(function(S,g){return ze(S,g[1].matches?g[0]:{})},{});Dn(r),b(C),r.destroy?e.destroy(r.destroy==="completely"):u?(p(!0),e.mount()):d!==r.direction&&e.refresh()}function v(u){matchMedia(kn).matches&&(u?ze(r,l):Dn(r,dt(l)))}function b(u,d,C){ze(r,u),d&&ze(Object.getPrototypeOf(r),u),(C||!t.is(Ze))&&e.emit(ye,r)}return{setup:a,destroy:p,reduce:v,set:b}}var Ht="Arrow",$t=Ht+"Left",Ut=Ht+"Right",Cr=Ht+"Up",Ar=Ht+"Down",Bn="rtl",Gt="ttb",qt={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Cr,Ut],ArrowRight:[Ar,$t]};function Pi(e,n,r){function t(l,i,s){s=s||r.direction;var a=s===Bn&&!i?1:s===Gt?0:-1;return qt[l]&&qt[l][a]||l.replace(/width|left|right/i,function(p,c){var w=qt[p.toLowerCase()][a]||p;return c>0?w.charAt(0).toUpperCase()+w.slice(1):w})}function o(l){return l*(r.direction===Bn?1:-1)}return{resolve:t,orient:o}}var ke="role",et="tabindex",Bi="disabled",Ae="aria-",xt=Ae+"controls",Ir=Ae+"current",Wn=Ae+"selected",we=Ae+"label",Cn=Ae+"labelledby",Er=Ae+"hidden",An=Ae+"orientation",ht=Ae+"roledescription",Fn=Ae+"live",Mn=Ae+"busy",Vn=Ae+"atomic",In=[ke,et,Bi,xt,Ir,we,Cn,Er,An,ht],Le=St+"__",Me="is-",Jt=St,Hn=Le+"track",Wi=Le+"list",Yt=Le+"slide",Lr=Yt+"--clone",Fi=Yt+"__container",En=Le+"arrows",Xt=Le+"arrow",Tr=Xt+"--prev",Rr=Xt+"--next",Kt=Le+"pagination",Nr=Kt+"__page",Mi=Le+"progress",Vi=Mi+"__bar",Hi=Le+"toggle",$i=Le+"spinner",Ui=Le+"sr",Gi=Me+"initialized",Ge=Me+"active",jr=Me+"prev",kr=Me+"next",ln=Me+"visible",sn=Me+"loading",Or=Me+"focus-in",Dr=Me+"overflow",Yi=[Ge,ln,jr,kr,sn,Or,Dr],Xi={slide:Yt,clone:Lr,arrows:En,arrow:Xt,prev:Tr,next:Rr,pagination:Kt,page:Nr,spinner:$i};function Ki(e,n){if(nr(e.closest))return e.closest(n);for(var r=e;r&&r.nodeType===1&&!pt(r,n);)r=r.parentElement;return r}var qi=5,$n=200,zr="touchstart mousedown",Zt="touchmove mousemove",Qt="touchend touchcancel mouseup click";function Ji(e,n,r){var t=pe(e),o=t.on,l=t.bind,i=e.root,s=r.i18n,a={},p=[],c=[],w=[],v,b,u;function d(){x(),M(),g()}function C(){o(he,S),o(he,d),o(ye,g),l(document,zr+" keydown",function(y){u=y.type==="keydown"},{capture:!0}),l(i,"focusin",function(){Ne(i,Or,!!u)})}function S(y){var I=In.concat("style");Oe(p),je(i,c),je(v,w),Ee([v,b],I),Ee(i,y?I:["style",ht])}function g(){je(i,c),je(v,w),c=E(Jt),w=E(Hn),Ie(i,c),Ie(v,w),J(i,we,r.label),J(i,Cn,r.labelledby)}function x(){v=B("."+Hn),b=wt(v,"."+Wi),st(v&&b,"A track/list element is missing."),Rt(p,ir(b,"."+Yt+":not(."+Lr+")")),He({arrows:En,pagination:Kt,prev:Tr,next:Rr,bar:Vi,toggle:Hi},function(y,I){a[I]=B("."+y)}),mt(a,{root:i,track:v,list:b,slides:p})}function M(){var y=i.id||ji(St),I=r.role;i.id=y,v.id=v.id||y+"-track",b.id=b.id||y+"-list",!Ce(i,ke)&&i.tagName!=="SECTION"&&I&&J(i,ke,I),J(i,ht,s.carousel),J(b,ke,"presentation")}function B(y){var I=lr(i,y);return I&&Ki(I,"."+Jt)===i?I:void 0}function E(y){return[y+"--"+r.type,y+"--"+r.direction,r.drag&&y+"--draggable",r.isNavigation&&y+"--nav",y===Jt&&Ge]}return mt(a,{setup:d,mount:C,destroy:S})}var rt="slide",at="loop",Ct="fade";function Zi(e,n,r,t){var o=pe(e),l=o.on,i=o.emit,s=o.bind,a=e.Components,p=e.root,c=e.options,w=c.isNavigation,v=c.updateOnMove,b=c.i18n,u=c.pagination,d=c.slideFocus,C=a.Direction.resolve,S=Ce(t,"style"),g=Ce(t,we),x=r>-1,M=wt(t,"."+Fi),B;function E(){x||(t.id=p.id+"-slide"+vn(n+1),J(t,ke,u?"tabpanel":"group"),J(t,ht,b.slide),J(t,we,g||on(b.slideLabel,[n+1,e.length]))),y()}function y(){s(t,"click",ce(i,yn,L)),s(t,"keydown",ce(i,Sr,L)),l([ot,xr,Ye],N),l(_n,k),v&&l(De,F)}function I(){B=!0,o.destroy(),je(t,Yi),Ee(t,In),J(t,"style",S),J(t,we,g||"")}function k(){var T=e.splides.map(function(_){var O=_.splide.Components.Slides.getAt(n);return O?O.slide.id:""}).join(" ");J(t,we,on(b.slideX,(x?r:n)+1)),J(t,xt,T),J(t,ke,d?"button":""),d&&Ee(t,ht)}function F(){B||N()}function N(){if(!B){var T=e.index;D(),z(),Ne(t,jr,n===T-1),Ne(t,kr,n===T+1)}}function D(){var T=$();T!==zn(t,Ge)&&(Ne(t,Ge,T),J(t,Ir,w&&T||""),i(T?ur:pr,L))}function z(){var T=m(),_=!T&&(!$()||x);if(e.state.is([it,vt])||J(t,Er,_||""),J(fn(t,c.focusableNodes||""),et,_?-1:""),d&&J(t,et,_?-1:0),T!==zn(t,ln)&&(Ne(t,ln,T),i(T?dr:mr,L)),!T&&document.activeElement===t){var O=a.Slides.getAt(e.index);O&&or(O.slide)}}function U(T,_,O){xe(O&&M||t,T,_)}function $(){var T=e.index;return T===n||c.cloneStatus&&T===r}function m(){if(e.is(Ct))return $();var T=_e(a.Elements.track),_=_e(t),O=C("left",!0),X=C("right",!0);return Dt(T[O])<=ft(_[O])&&Dt(_[X])<=ft(T[X])}function j(T,_){var O=be(T-n);return!x&&(c.rewind||e.is(at))&&(O=Be(O,e.length-O)),O<=_}var L={index:n,slideIndex:r,slide:t,container:M,isClone:x,mount:E,destroy:I,update:N,style:U,isWithin:j};return L}function Qi(e,n,r){var t=pe(e),o=t.on,l=t.emit,i=t.bind,s=n.Elements,a=s.slides,p=s.list,c=[];function w(){v(),o(he,b),o(he,v)}function v(){a.forEach(function(N,D){d(N,D,-1)})}function b(){B(function(N){N.destroy()}),Oe(c)}function u(){B(function(N){N.update()})}function d(N,D,z){var U=Zi(e,D,z,N);U.mount(),c.push(U),c.sort(function($,m){return $.index-m.index})}function C(N){return N?E(function(D){return!D.isClone}):c}function S(N){var D=n.Controller,z=D.toIndex(N),U=D.hasFocus()?1:r.perPage;return E(function($){return Nt($.index,z,z+U-1)})}function g(N){return E(N)[0]}function x(N,D){Se(N,function(z){if(Pe(z)&&(z=ar(z)),rr(z)){var U=a[D];U?gn(z,U):_t(p,z),Ie(z,r.classes.slide),I(z,ce(l,nt))}}),l(he)}function M(N){Ue(E(N).map(function(D){return D.slide})),l(he)}function B(N,D){C(D).forEach(N)}function E(N){return c.filter(nr(N)?N:function(D){return Pe(N)?pt(D.slide,N):mn(bt(N),D.index)})}function y(N,D,z){B(function(U){U.style(N,D,z)})}function I(N,D){var z=fn(N,"img"),U=z.length;U?z.forEach(function($){i($,"load error",function(){--U||D()})}):D()}function k(N){return N?a.length:c.length}function F(){return c.length>r.perPage}return{mount:w,destroy:b,update:u,register:d,get:C,getIn:S,getAt:g,add:x,remove:M,forEach:B,filter:E,style:y,getLength:k,isEnough:F}}function eo(e,n,r){var t=pe(e),o=t.on,l=t.bind,i=t.emit,s=n.Slides,a=n.Direction.resolve,p=n.Elements,c=p.root,w=p.track,v=p.list,b=s.getAt,u=s.style,d,C,S;function g(){x(),l(window,"resize load",Di(ce(i,nt))),o([ye,he],x),o(nt,M)}function x(){d=r.direction===Gt,xe(c,"maxWidth",Ve(r.width)),xe(w,a("paddingLeft"),B(!1)),xe(w,a("paddingRight"),B(!0)),M(!0)}function M(L){var T=_e(c);(L||C.width!==T.width||C.height!==T.height)&&(xe(w,"height",E()),u(a("marginRight"),Ve(r.gap)),u("width",I()),u("height",k(),!0),C=T,i(Ft),S!==(S=j())&&(Ne(c,Dr,S),i(ki,S)))}function B(L){var T=r.padding,_=a(L?"right":"left");return T&&Ve(T[_]||(ut(T)?0:T))||"0px"}function E(){var L="";return d&&(L=y(),st(L,"height or heightRatio is missing."),L="calc("+L+" - "+B(!1)+" - "+B(!0)+")"),L}function y(){return Ve(r.height||_e(v).width*r.heightRatio)}function I(){return r.autoWidth?null:Ve(r.fixedWidth)||(d?"":F())}function k(){return Ve(r.fixedHeight)||(d?r.autoHeight?null:F():y())}function F(){var L=Ve(r.gap);return"calc((100%"+(L&&" + "+L)+")/"+(r.perPage||1)+(L&&" - "+L)+")"}function N(){return _e(v)[a("width")]}function D(L,T){var _=b(L||0);return _?_e(_.slide)[a("width")]+(T?0:$()):0}function z(L,T){var _=b(L);if(_){var O=_e(_.slide)[a("right")],X=_e(v)[a("left")];return be(O-X)+(T?0:$())}return 0}function U(L){return z(e.length-1)-z(0)+D(0,L)}function $(){var L=b(0);return L&&parseFloat(xe(L.slide,a("marginRight")))||0}function m(L){return parseFloat(xe(w,a("padding"+(L?"Right":"Left"))))||0}function j(){return e.is(Ct)||U(!0)>N()}return{mount:g,resize:M,listSize:N,slideSize:D,sliderSize:U,totalSize:z,getPadding:m,isOverflow:j}}var to=2;function no(e,n,r){var t=pe(e),o=t.on,l=n.Elements,i=n.Slides,s=n.Direction.resolve,a=[],p;function c(){o(he,w),o([ye,nt],b),(p=C())&&(u(p),n.Layout.resize(!0))}function w(){v(),c()}function v(){Ue(a),Oe(a),t.destroy()}function b(){var S=C();p!==S&&(p<S||!S)&&t.emit(he)}function u(S){var g=i.get().slice(),x=g.length;if(x){for(;g.length<S;)Rt(g,g);Rt(g.slice(-S),g.slice(0,S)).forEach(function(M,B){var E=B<S,y=d(M.slide,B);E?gn(y,g[0].slide):_t(l.list,y),Rt(a,y),i.register(y,B-S+(E?0:x),M.index)})}}function d(S,g){var x=S.cloneNode(!0);return Ie(x,r.classes.clone),x.id=e.root.id+"-clone"+vn(g+1),x}function C(){var S=r.clones;if(!e.is(at))S=0;else if(yt(S)){var g=r[s("fixedWidth")]&&n.Layout.slideSize(0),x=g&&ft(_e(l.track)[s("width")]/g);S=x||r[s("autoWidth")]&&e.length||r.perPage*to}return S}return{mount:c,destroy:v}}function ro(e,n,r){var t=pe(e),o=t.on,l=t.emit,i=e.state.set,s=n.Layout,a=s.slideSize,p=s.getPadding,c=s.totalSize,w=s.listSize,v=s.sliderSize,b=n.Direction,u=b.resolve,d=b.orient,C=n.Elements,S=C.list,g=C.track,x;function M(){x=n.Transition,o([Fe,Ft,ye,he],B)}function B(){n.Controller.isBusy()||(n.Scroll.cancel(),y(e.index),n.Slides.update())}function E(_,O,X,ie){_!==O&&L(_>X)&&(N(),I(F(U(),_>X),!0)),i(it),l(De,O,X,_),x.start(O,function(){i(tt),l(ot,O,X,_),ie&&ie()})}function y(_){I(z(_,!0))}function I(_,O){if(!e.is(Ct)){var X=O?_:k(_);xe(S,"transform","translate"+u("X")+"("+X+"px)"),_!==X&&l(xr)}}function k(_){if(e.is(at)){var O=D(_),X=O>n.Controller.getEnd(),ie=O<0;(ie||X)&&(_=F(_,X))}return _}function F(_,O){var X=_-j(O),ie=v();return _-=d(ie*(ft(be(X)/ie)||1))*(O?1:-1),_}function N(){I(U(),!0),x.cancel()}function D(_){for(var O=n.Slides.get(),X=0,ie=1/0,ne=0;ne<O.length;ne++){var re=O[ne].index,A=be(z(re,!0)-_);if(A<=ie)ie=A,X=re;else break}return X}function z(_,O){var X=d(c(_-1)-m(_));return O?$(X):X}function U(){var _=u("left");return _e(S)[_]-_e(g)[_]+d(p(!1))}function $(_){return r.trimSpace&&e.is(rt)&&(_=qe(_,0,d(v(!0)-w()))),_}function m(_){var O=r.focus;return O==="center"?(w()-a(_,!0))/2:+O*a(_)||0}function j(_){return z(_?n.Controller.getEnd():0,!!r.trimSpace)}function L(_){var O=d(F(U(),_));return _?O>=0:O<=S[u("scrollWidth")]-_e(g)[u("width")]}function T(_,O){O=yt(O)?U():O;var X=_!==!0&&d(O)<d(j(!1)),ie=_!==!1&&d(O)>d(j(!0));return X||ie}return{mount:M,move:E,jump:y,translate:I,shift:F,cancel:N,toIndex:D,toPosition:z,getPosition:U,getLimit:j,exceededLimit:T,reposition:B}}function io(e,n,r){var t=pe(e),o=t.on,l=t.emit,i=n.Move,s=i.getPosition,a=i.getLimit,p=i.toPosition,c=n.Slides,w=c.isEnough,v=c.getLength,b=r.omitEnd,u=e.is(at),d=e.is(rt),C=ce(U,!1),S=ce(U,!0),g=r.start||0,x,M=g,B,E,y;function I(){k(),o([ye,he,zt],k),o(Ft,F)}function k(){B=v(!0),E=r.perMove,y=r.perPage,x=L();var A=qe(g,0,b?x:B-1);A!==g&&(g=A,i.reposition())}function F(){x!==L()&&l(zt)}function N(A,q,ve){if(!re()){var se=z(A),ge=j(se);ge>-1&&(q||ge!==g)&&(X(ge),i.move(se,ge,M,ve))}}function D(A,q,ve,se){n.Scroll.scroll(A,q,ve,function(){var ge=j(i.toIndex(s()));X(b?Be(ge,x):ge),se&&se()})}function z(A){var q=g;if(Pe(A)){var ve=A.match(/([+\-<>])(\d+)?/)||[],se=ve[1],ge=ve[2];se==="+"||se==="-"?q=$(g+ +(""+se+(+ge||1)),g):se===">"?q=ge?T(+ge):C(!0):se==="<"&&(q=S(!0))}else q=u?A:qe(A,0,x);return q}function U(A,q){var ve=E||(ne()?1:y),se=$(g+ve*(A?-1:1),g,!(E||ne()));return se===-1&&d&&!sr(s(),a(!A),1)?A?0:x:q?se:j(se)}function $(A,q,ve){if(w()||ne()){var se=m(A);se!==A&&(q=A,A=se,ve=!1),A<0||A>x?!E&&(Nt(0,A,q,!0)||Nt(x,q,A,!0))?A=T(_(A)):u?A=ve?A<0?-(B%y||y):B:A:r.rewind?A=A<0?x:0:A=-1:ve&&A!==q&&(A=T(_(q)+(A<q?-1:1)))}else A=-1;return A}function m(A){if(d&&r.trimSpace==="move"&&A!==g)for(var q=s();q===p(A,!0)&&Nt(A,0,e.length-1,!r.rewind);)A<g?--A:++A;return A}function j(A){return u?(A+B)%B||0:A}function L(){for(var A=B-(ne()||u&&E?1:y);b&&A-- >0;)if(p(B-1,!0)!==p(A,!0)){A++;break}return qe(A,0,B-1)}function T(A){return qe(ne()?A:y*A,0,x)}function _(A){return ne()?Be(A,x):Dt((A>=x?B-1:A)/y)}function O(A){var q=i.toIndex(A);return d?qe(q,0,x):q}function X(A){A!==g&&(M=g,g=A)}function ie(A){return A?M:g}function ne(){return!yt(r.focus)||r.isNavigation}function re(){return e.state.is([it,vt])&&!!r.waitForTransition}return{mount:I,go:N,scroll:D,getNext:C,getPrev:S,getAdjacent:U,getEnd:L,setIndex:X,getIndex:ie,toIndex:T,toPage:_,toDest:O,hasFocus:ne,isBusy:re}}var oo="http://www.w3.org/2000/svg",ao="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",Et=40;function lo(e,n,r){var t=pe(e),o=t.on,l=t.bind,i=t.emit,s=r.classes,a=r.i18n,p=n.Elements,c=n.Controller,w=p.arrows,v=p.track,b=w,u=p.prev,d=p.next,C,S,g={};function x(){B(),o(ye,M)}function M(){E(),x()}function B(){var D=r.arrows;D&&!(u&&d)&&k(),u&&d&&(mt(g,{prev:u,next:d}),gt(b,D?"":"none"),Ie(b,S=En+"--"+r.direction),D&&(y(),N(),J([u,d],xt,v.id),i(vr,u,d)))}function E(){t.destroy(),je(b,S),C?(Ue(w?[u,d]:b),u=d=null):Ee([u,d],In)}function y(){o([Fe,ot,he,Ye,zt],N),l(d,"click",ce(I,">")),l(u,"click",ce(I,"<"))}function I(D){c.go(D,!0)}function k(){b=w||Qe("div",s.arrows),u=F(!0),d=F(!1),C=!0,_t(b,[u,d]),!w&&gn(b,v)}function F(D){var z='<button class="'+s.arrow+" "+(D?s.prev:s.next)+'" type="button"><svg xmlns="'+oo+'" viewBox="0 0 '+Et+" "+Et+'" width="'+Et+'" height="'+Et+'" focusable="false"><path d="'+(r.arrowPath||ao)+'" />';return ar(z)}function N(){if(u&&d){var D=e.index,z=c.getPrev(),U=c.getNext(),$=z>-1&&D<z?a.last:a.prev,m=U>-1&&D>U?a.first:a.next;u.disabled=z<0,d.disabled=U<0,J(u,we,$),J(d,we,m),i(yr,u,d,z,U)}}return{arrows:g,mount:x,destroy:E,update:N}}var so=hn+"-interval";function co(e,n,r){var t=pe(e),o=t.on,l=t.bind,i=t.emit,s=Vt(r.interval,e.go.bind(e,">"),y),a=s.isPaused,p=n.Elements,c=n.Elements,w=c.root,v=c.toggle,b=r.autoplay,u,d,C=b==="pause";function S(){b&&(g(),v&&J(v,xt,p.track.id),C||x(),E())}function g(){r.pauseOnHover&&l(w,"mouseenter mouseleave",function(k){u=k.type==="mouseenter",B()}),r.pauseOnFocus&&l(w,"focusin focusout",function(k){d=k.type==="focusin",B()}),v&&l(v,"click",function(){C?x():M(!0)}),o([De,Mt,he],s.rewind),o(De,I)}function x(){a()&&n.Slides.isEnough()&&(s.start(!r.resetProgress),d=u=C=!1,E(),i(wn))}function M(k){k===void 0&&(k=!0),C=!!k,E(),a()||(s.pause(),i(Sn))}function B(){C||(u||d?M(!1):x())}function E(){v&&(Ne(v,Ge,!C),J(v,we,r.i18n[C?"play":"pause"]))}function y(k){var F=p.bar;F&&xe(F,"width",k*100+"%"),i(wr,k)}function I(k){var F=n.Slides.getAt(k);s.set(F&&+Ce(F.slide,so)||r.interval)}return{mount:S,destroy:s.cancel,play:x,pause:M,isPaused:a}}function uo(e,n,r){var t=pe(e),o=t.on;function l(){r.cover&&(o(xn,ce(s,!0)),o([Fe,ye,he],ce(i,!0)))}function i(a){n.Slides.forEach(function(p){var c=wt(p.container||p.slide,"img");c&&c.src&&s(a,c,p)})}function s(a,p,c){c.style("background",a?'center/cover no-repeat url("'+p.src+'")':"",!0),gt(p,a?"none":"")}return{mount:l,destroy:ce(i,!1)}}var po=10,mo=600,go=.6,fo=1.5,ho=800;function vo(e,n,r){var t=pe(e),o=t.on,l=t.emit,i=e.state.set,s=n.Move,a=s.getPosition,p=s.getLimit,c=s.exceededLimit,w=s.translate,v=e.is(rt),b,u,d=1;function C(){o(De,M),o([ye,he],B)}function S(y,I,k,F,N){var D=a();if(M(),k&&(!v||!c())){var z=n.Layout.sliderSize(),U=rn(y)*z*Dt(be(y)/z)||0;y=s.toPosition(n.Controller.toDest(y%z))+U}var $=sr(D,y,1);d=1,I=$?0:I||Ot(be(y-D)/fo,ho),u=F,b=Vt(I,g,ce(x,D,y,N),1),i(vt),l(Mt),b.start()}function g(){i(tt),u&&u(),l(Ye)}function x(y,I,k,F){var N=a(),D=y+(I-y)*E(F),z=(D-N)*d;w(N+z),v&&!k&&c()&&(d*=go,be(z)<po&&S(p(c(!0)),mo,!1,u,!0))}function M(){b&&b.cancel()}function B(){b&&!b.isPaused()&&(M(),g())}function E(y){var I=r.easingFunc;return I?I(y):1-Math.pow(1-y,4)}return{mount:C,destroy:M,scroll:S,cancel:B}}var Je={passive:!1,capture:!0};function yo(e,n,r){var t=pe(e),o=t.on,l=t.emit,i=t.bind,s=t.unbind,a=e.state,p=n.Move,c=n.Scroll,w=n.Controller,v=n.Elements.track,b=n.Media.reduce,u=n.Direction,d=u.resolve,C=u.orient,S=p.getPosition,g=p.exceededLimit,x,M,B,E,y,I=!1,k,F,N;function D(){i(v,Zt,tn,Je),i(v,Qt,tn,Je),i(v,zr,U,Je),i(v,"click",j,{capture:!0}),i(v,"dragstart",Re),o([Fe,ye],z)}function z(){var W=r.drag;lt(!W),E=W==="free"}function U(W){if(k=!1,!F){var f=ge(W);se(W.target)&&(f||!W.button)&&(w.isBusy()?Re(W,!0):(N=f?v:window,y=a.is([it,vt]),B=null,i(N,Zt,$,Je),i(N,Qt,m,Je),p.cancel(),c.cancel(),L(W)))}}function $(W){if(a.is(Tt)||(a.set(Tt),l(gr)),W.cancelable)if(y){p.translate(x+ve(ne(W)));var f=re(W)>$n,H=I!==(I=g());(f||H)&&L(W),k=!0,l(fr),Re(W)}else O(W)&&(y=_(W),Re(W))}function m(W){a.is(Tt)&&(a.set(tt),l(hr)),y&&(T(W),Re(W)),s(N,Zt,$),s(N,Qt,m),y=!1}function j(W){!F&&k&&Re(W,!0)}function L(W){B=M,M=W,x=S()}function T(W){var f=X(W),H=ie(f),Y=r.rewind&&r.rewindByDrag;b(!1),E?w.scroll(H,0,r.snap):e.is(Ct)?w.go(C(rn(f))<0?Y?"<":"-":Y?">":"+"):e.is(rt)&&I&&Y?w.go(g(!0)?">":"<"):w.go(w.toDest(H),!0),b(!0)}function _(W){var f=r.dragMinThreshold,H=ut(f),Y=H&&f.mouse||0,Z=(H?f.touch:+f)||10;return be(ne(W))>(ge(W)?Z:Y)}function O(W){return be(ne(W))>be(ne(W,!0))}function X(W){if(e.is(at)||!I){var f=re(W);if(f&&f<$n)return ne(W)/f}return 0}function ie(W){return S()+rn(W)*Be(be(W)*(r.flickPower||600),E?1/0:n.Layout.listSize()*(r.flickMaxPages||1))}function ne(W,f){return q(W,f)-q(A(W),f)}function re(W){return nn(W)-nn(A(W))}function A(W){return M===W&&B||M}function q(W,f){return(ge(W)?W.changedTouches[0]:W)["page"+d(f?"Y":"X")]}function ve(W){return W/(I&&e.is(rt)?qi:1)}function se(W){var f=r.noDrag;return!pt(W,"."+Nr+", ."+Xt)&&(!f||!pt(W,f))}function ge(W){return typeof TouchEvent<"u"&&W instanceof TouchEvent}function Xe(){return y}function lt(W){F=W}return{mount:D,disable:lt,isDragging:Xe}}var bo={Spacebar:" ",Right:Ut,Left:$t,Up:Cr,Down:Ar};function Ln(e){return e=Pe(e)?e:e.key,bo[e]||e}var Un="keydown";function _o(e,n,r){var t=pe(e),o=t.on,l=t.bind,i=t.unbind,s=e.root,a=n.Direction.resolve,p,c;function w(){v(),o(ye,b),o(ye,v),o(De,d)}function v(){var S=r.keyboard;S&&(p=S==="global"?window:s,l(p,Un,C))}function b(){i(p,Un)}function u(S){c=S}function d(){var S=c;c=!0,tr(function(){c=S})}function C(S){if(!c){var g=Ln(S);g===a($t)?e.go("<"):g===a(Ut)&&e.go(">")}}return{mount:w,destroy:b,disable:u}}var ct=hn+"-lazy",jt=ct+"-srcset",wo="["+ct+"], ["+jt+"]";function So(e,n,r){var t=pe(e),o=t.on,l=t.off,i=t.bind,s=t.emit,a=r.lazyLoad==="sequential",p=[ot,Ye],c=[];function w(){r.lazyLoad&&(v(),o(he,v))}function v(){Oe(c),b(),a?S():(l(p),o(p,u),u())}function b(){n.Slides.forEach(function(g){fn(g.slide,wo).forEach(function(x){var M=Ce(x,ct),B=Ce(x,jt);if(M!==x.src||B!==x.srcset){var E=r.classes.spinner,y=x.parentElement,I=wt(y,"."+E)||Qe("span",E,y);c.push([x,g,I]),x.src||gt(x,"none")}})})}function u(){c=c.filter(function(g){var x=r.perPage*((r.preloadPages||1)+1)-1;return g[1].isWithin(e.index,x)?d(g):!0}),c.length||l(p)}function d(g){var x=g[0];Ie(g[1].slide,sn),i(x,"load error",ce(C,g)),J(x,"src",Ce(x,ct)),J(x,"srcset",Ce(x,jt)),Ee(x,ct),Ee(x,jt)}function C(g,x){var M=g[0],B=g[1];je(B.slide,sn),x.type!=="error"&&(Ue(g[2]),gt(M,""),s(xn,M,B),s(nt)),a&&S()}function S(){c.length&&d(c.shift())}return{mount:w,destroy:ce(Oe,c),check:u}}function xo(e,n,r){var t=pe(e),o=t.on,l=t.emit,i=t.bind,s=n.Slides,a=n.Elements,p=n.Controller,c=p.hasFocus,w=p.getIndex,v=p.go,b=n.Direction.resolve,u=a.pagination,d=[],C,S;function g(){x(),o([ye,he,zt],g);var F=r.pagination;u&&gt(u,F?"":"none"),F&&(o([De,Mt,Ye],k),M(),k(),l(br,{list:C,items:d},I(e.index)))}function x(){C&&(Ue(u?We(C.children):C),je(C,S),Oe(d),C=null),t.destroy()}function M(){var F=e.length,N=r.classes,D=r.i18n,z=r.perPage,U=c()?p.getEnd()+1:ft(F/z);C=u||Qe("ul",N.pagination,a.track.parentElement),Ie(C,S=Kt+"--"+y()),J(C,ke,"tablist"),J(C,we,D.select),J(C,An,y()===Gt?"vertical":"");for(var $=0;$<U;$++){var m=Qe("li",null,C),j=Qe("button",{class:N.page,type:"button"},m),L=s.getIn($).map(function(_){return _.slide.id}),T=!c()&&z>1?D.pageX:D.slideX;i(j,"click",ce(B,$)),r.paginationKeyboard&&i(j,"keydown",ce(E,$)),J(m,ke,"presentation"),J(j,ke,"tab"),J(j,xt,L.join(" ")),J(j,we,on(T,$+1)),J(j,et,-1),d.push({li:m,button:j,page:$})}}function B(F){v(">"+F,!0)}function E(F,N){var D=d.length,z=Ln(N),U=y(),$=-1;z===b(Ut,!1,U)?$=++F%D:z===b($t,!1,U)?$=(--F+D)%D:z==="Home"?$=0:z==="End"&&($=D-1);var m=d[$];m&&(or(m.button),v(">"+$),Re(N,!0))}function y(){return r.paginationDirection||r.direction}function I(F){return d[p.toPage(F)]}function k(){var F=I(w(!0)),N=I(w());if(F){var D=F.button;je(D,Ge),Ee(D,Wn),J(D,et,-1)}if(N){var z=N.button;Ie(z,Ge),J(z,Wn,!0),J(z,et,"")}l(_r,{list:C,items:d},F,N)}return{items:d,mount:g,destroy:x,getAt:I,update:k}}var Co=[" ","Enter"];function Ao(e,n,r){var t=r.isNavigation,o=r.slideFocus,l=[];function i(){e.splides.forEach(function(u){u.isParent||(p(e,u.splide),p(u.splide,e))}),t&&c()}function s(){l.forEach(function(u){u.destroy()}),Oe(l)}function a(){s(),i()}function p(u,d){var C=pe(u);C.on(De,function(S,g,x){d.go(d.is(at)?x:S)}),l.push(C)}function c(){var u=pe(e),d=u.on;d(yn,v),d(Sr,b),d([Fe,ye],w),l.push(u),u.emit(_n,e.splides)}function w(){J(n.Elements.list,An,r.direction===Gt?"vertical":"")}function v(u){e.go(u.index)}function b(u,d){mn(Co,Ln(d))&&(v(u),Re(d))}return{setup:ce(n.Media.set,{slideFocus:yt(o)?t:o},!0),mount:i,destroy:s,remount:a}}function Io(e,n,r){var t=pe(e),o=t.bind,l=0;function i(){r.wheel&&o(n.Elements.track,"wheel",s,Je)}function s(p){if(p.cancelable){var c=p.deltaY,w=c<0,v=nn(p),b=r.wheelMinThreshold||0,u=r.wheelSleep||0;be(c)>b&&v-l>u&&(e.go(w?"<":">"),l=v),a(w)&&Re(p)}}function a(p){return!r.releaseWheel||e.state.is(it)||n.Controller.getAdjacent(p)!==-1}return{mount:i}}var Eo=90;function Lo(e,n,r){var t=pe(e),o=t.on,l=n.Elements.track,i=r.live&&!r.isNavigation,s=Qe("span",Ui),a=Vt(Eo,ce(c,!1));function p(){i&&(v(!n.Autoplay.isPaused()),J(l,Vn,!0),s.textContent="…",o(wn,ce(v,!0)),o(Sn,ce(v,!1)),o([ot,Ye],ce(c,!0)))}function c(b){J(l,Mn,b),b?(_t(l,s),a.start()):(Ue(s),a.cancel())}function w(){Ee(l,[Fn,Vn,Mn]),Ue(s)}function v(b){i&&J(l,Fn,b?"off":"polite")}return{mount:p,disable:v,destroy:w}}var To=Object.freeze({__proto__:null,Media:zi,Direction:Pi,Elements:Ji,Slides:Qi,Layout:eo,Clones:no,Move:ro,Controller:io,Arrows:lo,Autoplay:co,Cover:uo,Scroll:vo,Drag:yo,Keyboard:_o,LazyLoad:So,Pagination:xo,Sync:Ao,Wheel:Io,Live:Lo}),Ro={prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},No={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Xi,i18n:Ro,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function jo(e,n,r){var t=n.Slides;function o(){pe(e).on([Fe,he],l)}function l(){t.forEach(function(s){s.style("transform","translateX(-"+100*s.index+"%)")})}function i(s,a){t.style("transition","opacity "+r.speed+"ms "+r.easing),tr(a)}return{mount:o,start:i,cancel:tn}}function ko(e,n,r){var t=n.Move,o=n.Controller,l=n.Scroll,i=n.Elements.list,s=ce(xe,i,"transition"),a;function p(){pe(e).bind(i,"transitionend",function(b){b.target===i&&a&&(w(),a())})}function c(b,u){var d=t.toPosition(b,!0),C=t.getPosition(),S=v(b);be(d-C)>=1&&S>=1?r.useScroll?l.scroll(d,S,!1,u):(s("transform "+S+"ms "+r.easing),t.translate(d,!0),a=u):(t.jump(b),u())}function w(){s(""),l.cancel()}function v(b){var u=r.rewindSpeed;if(e.is(rt)&&u){var d=o.getIndex(!0),C=o.getEnd();if(d===0&&b>=C||d>=C&&b===0)return u}return r.speed}return{mount:p,start:c,cancel:w}}var Oo=(function(){function e(r,t){this.event=pe(),this.Components={},this.state=Oi(Ze),this.splides=[],this._o={},this._E={};var o=Pe(r)?lr(document,r):r;st(o,o+" is invalid."),this.root=o,t=ze({label:Ce(o,we)||"",labelledby:Ce(o,Cn)||""},No,e.defaults,t||{});try{ze(t,JSON.parse(Ce(o,hn)))}catch{st(!1,"Invalid JSON")}this._o=Object.create(ze({},t))}var n=e.prototype;return n.mount=function(t,o){var l=this,i=this.state,s=this.Components;st(i.is([Ze,kt]),"Already mounted!"),i.set(Ze),this._C=s,this._T=o||this._T||(this.is(Ct)?jo:ko),this._E=t||this._E;var a=mt({},To,this._E,{Transition:this._T});return He(a,function(p,c){var w=p(l,s,l._o);s[c]=w,w.setup&&w.setup()}),He(s,function(p){p.mount&&p.mount()}),this.emit(Fe),Ie(this.root,Gi),i.set(tt),this.emit(an),this},n.sync=function(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(tt)&&(this._C.Sync.remount(),t.Components.Sync.remount()),this},n.go=function(t){return this._C.Controller.go(t),this},n.on=function(t,o){return this.event.on(t,o),this},n.off=function(t){return this.event.off(t),this},n.emit=function(t){var o;return(o=this.event).emit.apply(o,[t].concat(We(arguments,1))),this},n.add=function(t,o){return this._C.Slides.add(t,o),this},n.remove=function(t){return this._C.Slides.remove(t),this},n.is=function(t){return this._o.type===t},n.refresh=function(){return this.emit(he),this},n.destroy=function(t){t===void 0&&(t=!0);var o=this.event,l=this.state;return l.is(Ze)?pe(this).on(an,this.destroy.bind(this,t)):(He(this._C,function(i){i.destroy&&i.destroy(t)},!0),o.emit(bn),o.destroy(),t&&Oe(this.splides),l.set(kt)),this},Ti(e,[{key:"options",get:function(){return this._o},set:function(t){this._C.Media.set(t,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),e})(),Tn=Oo;Tn.defaults={};Tn.STATES=Ni;var Gn=[[Fe,"onMounted"],[an,"onReady"],[De,"onMove"],[ot,"onMoved"],[yn,"onClick"],[ur,"onActive"],[pr,"onInactive"],[dr,"onVisible"],[mr,"onHidden"],[he,"onRefresh"],[ye,"onUpdated"],[nt,"onResize"],[Ft,"onResized"],[gr,"onDrag"],[fr,"onDragging"],[hr,"onDragged"],[Mt,"onScroll"],[Ye,"onScrolled"],[bn,"onDestroy"],[vr,"onArrowsMounted"],[yr,"onArrowsUpdated"],[br,"onPaginationMounted"],[_r,"onPaginationUpdated"],[_n,"onNavigationMounted"],[wn,"onAutoplayPlay"],[wr,"onAutoplayPlaying"],[Sn,"onAutoplayPause"],[xn,"onLazyLoadLoaded"]];function Rn(...e){return e.filter(Boolean).join(" ")}function Pt(e){return e!==null&&typeof e=="object"}function cn(e,n){if(Array.isArray(e)&&Array.isArray(n))return e.length===n.length&&!e.some((r,t)=>!cn(r,n[t]));if(Pt(e)&&Pt(n)){const r=Object.keys(e),t=Object.keys(n);return r.length===t.length&&!r.some(o=>!Object.prototype.hasOwnProperty.call(n,o)||!cn(e[o],n[o]))}return e===n}function Do(e,n){return e.length===n.length&&!e.some((r,t)=>r!==n[t])}function zo(e,n){if(e){const r=Object.keys(e);for(let t=0;t<r.length;t++){const o=r[t];if(o!=="__proto__"&&n(e[o],o)===!1)break}}return e}function un(e,n){const r=e;return zo(n,(t,o)=>{Array.isArray(t)?r[o]=t.slice():Pt(t)?r[o]=un(Pt(r[o])?r[o]:{},t):r[o]=t}),r}var Po=({children:e,className:n,...r})=>V.createElement("div",{className:Rn("splide__track",n),...r},V.createElement("ul",{className:"splide__list"},e)),Nn=class extends V.Component{constructor(){super(...arguments),this.splideRef=V.createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:n,transition:r}=this.props,{current:t}=this.splideRef;t&&(this.splide=new Tn(t,e),this.bind(this.splide),this.splide.mount(n,r),this.options=un({},e||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){if(!this.splide)return;const{options:e}=this.props;e&&!cn(this.options,e)&&(this.splide.options=e,this.options=un({},e));const n=this.getSlides();Do(this.slides,n)||(this.splide.refresh(),this.slides=n)}sync(e){var n;(n=this.splide)==null||n.sync(e)}go(e){var n;(n=this.splide)==null||n.go(e)}getSlides(){var e;if(this.splide){const n=(e=this.splide.Components.Elements)==null?void 0:e.list.children;return n&&Array.prototype.slice.call(n)||[]}return[]}bind(e){Gn.forEach(([n,r])=>{const t=this.props[r];typeof t=="function"&&e.on(n,(...o)=>{t(e,...o)})})}omit(e,n){return n.forEach(r=>{Object.prototype.hasOwnProperty.call(e,r)&&delete e[r]}),e}render(){const{className:e,tag:n="div",hasTrack:r=!0,children:t,...o}=this.props;return V.createElement(n,{className:Rn("splide",e),ref:this.splideRef,...this.omit(o,["options",...Gn.map(l=>l[1])])},r?V.createElement(Po,null,t):t)}},jn=({children:e,className:n,...r})=>V.createElement("li",{className:Rn("splide__slide",n),...r},e);/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),F=require("react"),oe=require("classnames"),Br=require("react-dom"),Wr="ControlSlider-module__wrapper___sHEkd",Fr="ControlSlider-module__hoverArrow___A-dOH",Mr="ControlSlider-module__sliderItem___QQSkR",Hr="ControlSlider-module__sliderImage___9hRl-",Vr="ControlSlider-module__arrow___05ghY",$r="ControlSlider-module__arrowVertical___tBfVN",Ur="ControlSlider-module__nextArrow___-30Yc",Gr="ControlSlider-module__arrowInner___aEra3",Yr="ControlSlider-module__arrowIcon___S4ztF",Xr="ControlSlider-module__arrowImg___2dwJW",Kr="ControlSlider-module__mirror___brd6U",qr="ControlSlider-module__pagination___bicLF",Jr="ControlSlider-module__paginationInner___bT-P-",Zr="ControlSlider-module__paginationVertical___zYqKw",Qr="ControlSlider-module__paginationItem___nTRbk",ei="ControlSlider-module__dot___p1Qun",ti="ControlSlider-module__activeDot___LHFaj",ni="ControlSlider-module__paginationInsideBottom___R3FWn",ri="ControlSlider-module__paginationInsideTop___V-qb-",ii="ControlSlider-module__paginationOutsideBottom___14w8D",oi="ControlSlider-module__paginationOutsideTop___SCLqB",ai="ControlSlider-module__paginationInsideLeft___yOBRZ",li="ControlSlider-module__paginationInsideRight___Rtt3o",si="ControlSlider-module__paginationOutsideLeft___lahaw",ci="ControlSlider-module__paginationOutsideRight___EtuQa",ui="ControlSlider-module__imgWrapper___UjEgB",pi="ControlSlider-module__captionBlock___dJ6-j",di="ControlSlider-module__captionTextWrapper___HFlpf",mi="ControlSlider-module__captionText___uGBVc",gi="ControlSlider-module__active___WZK4G",fi="ControlSlider-module__withPointerEvents___t-18M",hi="ControlSlider-module__topLeftAlignment___zjnGM",vi="ControlSlider-module__topCenterAlignment___gD1xW",yi="ControlSlider-module__topRightAlignment___NMapS",bi="ControlSlider-module__middleLeftAlignment___OnUrY",_i="ControlSlider-module__middleCenterAlignment___Tdkl0",wi="ControlSlider-module__middleRightAlignment___wEbfX",Si="ControlSlider-module__bottomLeftAlignment___cTP2-",xi="ControlSlider-module__bottomCenterAlignment___c54fB",Ci="ControlSlider-module__bottomRightAlignment___kEwrz",Ai="ControlSlider-module__clickOverlay___DZA28",Ii="ControlSlider-module__contain___pLyq7",Ei="ControlSlider-module__cover___KdDat",U={wrapper:Wr,hoverArrow:Fr,sliderItem:Mr,sliderImage:Hr,arrow:Vr,arrowVertical:$r,nextArrow:Ur,arrowInner:Gr,arrowIcon:Yr,arrowImg:Xr,mirror:Kr,pagination:qr,paginationInner:Jr,paginationVertical:Zr,paginationItem:Qr,dot:ei,activeDot:ti,paginationInsideBottom:ni,paginationInsideTop:ri,paginationOutsideBottom:ii,paginationOutsideTop:oi,paginationInsideLeft:ai,paginationInsideRight:li,paginationOutsideLeft:si,paginationOutsideRight:ci,imgWrapper:ui,captionBlock:pi,captionTextWrapper:di,captionText:mi,active:gi,withPointerEvents:fi,topLeftAlignment:hi,topCenterAlignment:vi,topRightAlignment:yi,middleLeftAlignment:bi,middleCenterAlignment:_i,middleRightAlignment:wi,bottomLeftAlignment:Si,bottomCenterAlignment:xi,bottomRightAlignment:Ci,clickOverlay:Ai,contain:Ii,cover:Ei};function Li(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ti(e,r,t){return r&&Li(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var kn="(prefers-reduced-motion: reduce)",Je=1,Ri=2,et=3,rt=4,ht=5,Tt=6,kt=7,Ni={CREATED:Je,MOUNTED:Ri,IDLE:et,MOVING:rt,SCROLLING:ht,DRAGGING:Tt,DESTROYED:kt};function Oe(e){e.length=0}function We(e,r,t){return Array.prototype.slice.call(e,r,t)}function ae(e){return e.bind.apply(e,[null].concat(We(arguments,1)))}var tr=setTimeout,tn=function(){};function On(e){return requestAnimationFrame(e)}function Wt(e,r){return typeof r===e}function ct(e){return!dn(e)&&Wt("object",e)}var pn=Array.isArray,nr=ae(Wt,"function"),Pe=ae(Wt,"string"),vt=ae(Wt,"undefined");function dn(e){return e===null}function rr(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function yt(e){return pn(e)?e:[e]}function Se(e,r){yt(e).forEach(r)}function mn(e,r){return e.indexOf(r)>-1}function Rt(e,r){return e.push.apply(e,yt(r)),e}function Ne(e,r,t){e&&Se(r,function(n){n&&e.classList[t?"add":"remove"](n)})}function Ie(e,r){Ne(e,Pe(r)?r.split(" "):r,!0)}function bt(e,r){Se(r,e.appendChild.bind(e))}function gn(e,r){Se(e,function(t){var n=(r||t).parentNode;n&&n.insertBefore(t,r)})}function ut(e,r){return rr(e)&&(e.msMatchesSelector||e.matches).call(e,r)}function ir(e,r){var t=e?We(e.children):[];return r?t.filter(function(n){return ut(n,r)}):t}function _t(e,r){return r?ir(e,r)[0]:e.firstElementChild}var pt=Object.keys;function Ve(e,r,t){return e&&(t?pt(e).reverse():pt(e)).forEach(function(n){n!=="__proto__"&&r(e[n],n)}),e}function dt(e){return We(arguments,1).forEach(function(r){Ve(r,function(t,n){e[n]=r[n]})}),e}function ze(e){return We(arguments,1).forEach(function(r){Ve(r,function(t,n){pn(t)?e[n]=t.slice():ct(t)?e[n]=ze({},ct(e[n])?e[n]:{},t):e[n]=t})}),e}function Dn(e,r){Se(r||pt(e),function(t){delete e[t]})}function Ee(e,r){Se(e,function(t){Se(r,function(n){t&&t.removeAttribute(n)})})}function q(e,r,t){ct(r)?Ve(r,function(n,o){q(e,o,n)}):Se(e,function(n){dn(t)||t===""?Ee(n,r):n.setAttribute(r,String(t))})}function Ze(e,r,t){var n=document.createElement(e);return r&&(Pe(r)?Ie(n,r):q(n,r)),t&&bt(t,n),n}function xe(e,r,t){if(vt(t))return getComputedStyle(e)[r];dn(t)||(e.style[r]=""+t)}function mt(e,r){xe(e,"display",r)}function or(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function Ce(e,r){return e.getAttribute(r)}function zn(e,r){return e&&e.classList.contains(r)}function _e(e){return e.getBoundingClientRect()}function Ue(e){Se(e,function(r){r&&r.parentNode&&r.parentNode.removeChild(r)})}function ar(e){return _t(new DOMParser().parseFromString(e,"text/html").body)}function Re(e,r){e.preventDefault(),r&&(e.stopPropagation(),e.stopImmediatePropagation())}function lr(e,r){return e&&e.querySelector(r)}function fn(e,r){return r?We(e.querySelectorAll(r)):[]}function je(e,r){Ne(e,r,!1)}function nn(e){return e.timeStamp}function He(e){return Pe(e)?e:e?e+"px":""}var wt="splide",hn="data-"+wt;function lt(e,r){if(!e)throw new Error("["+wt+"] "+(r||""))}var Be=Math.min,Ot=Math.max,Dt=Math.floor,gt=Math.ceil,be=Math.abs;function sr(e,r,t){return be(e-r)<t}function Nt(e,r,t,n){var o=Be(r,t),l=Ot(r,t);return n?o<e&&e<l:o<=e&&e<=l}function Ke(e,r,t){var n=Be(r,t),o=Ot(r,t);return Be(Ot(n,e),o)}function rn(e){return+(e>0)-+(e<0)}function on(e,r){return Se(r,function(t){e=e.replace("%s",""+t)}),e}function vn(e){return e<10?"0"+e:""+e}var Pn={};function ji(e){return""+e+vn(Pn[e]=(Pn[e]||0)+1)}function cr(){var e=[];function r(i,c,s,p){o(i,c,function(a,_,h){var d="addEventListener"in a,u=d?a.removeEventListener.bind(a,_,s,p):a.removeListener.bind(a,s);d?a.addEventListener(_,s,p):a.addListener(s),e.push([a,_,h,s,u])})}function t(i,c,s){o(i,c,function(p,a,_){e=e.filter(function(h){return h[0]===p&&h[1]===a&&h[2]===_&&(!s||h[3]===s)?(h[4](),!1):!0})})}function n(i,c,s){var p,a=!0;return typeof CustomEvent=="function"?p=new CustomEvent(c,{bubbles:a,detail:s}):(p=document.createEvent("CustomEvent"),p.initCustomEvent(c,a,!1,s)),i.dispatchEvent(p),p}function o(i,c,s){Se(i,function(p){p&&Se(c,function(a){a.split(" ").forEach(function(_){var h=_.split(".");s(p,h[0],h[1])})})})}function l(){e.forEach(function(i){i[4]()}),Oe(e)}return{bind:r,unbind:t,dispatch:n,destroy:l}}var Fe="mounted",an="ready",De="move",it="moved",yn="click",ur="active",pr="inactive",dr="visible",mr="hidden",me="refresh",ve="updated",tt="resize",Ft="resized",gr="drag",fr="dragging",hr="dragged",Mt="scroll",Ye="scrolled",ki="overflow",bn="destroy",vr="arrows:mounted",yr="arrows:updated",br="pagination:mounted",_r="pagination:updated",_n="navigation:mounted",wn="autoplay:play",wr="autoplay:playing",Sn="autoplay:pause",xn="lazyload:loaded",Sr="sk",xr="sh",zt="ei";function ue(e){var r=e?e.event.bus:document.createDocumentFragment(),t=cr();function n(l,i){t.bind(r,yt(l).join(" "),function(c){i.apply(i,pn(c.detail)?c.detail:[])})}function o(l){t.dispatch(r,l,We(arguments,1))}return e&&e.event.on(bn,t.destroy),dt(t,{bus:r,on:n,off:ae(t.unbind,r),emit:o})}function Ht(e,r,t,n){var o=Date.now,l,i=0,c,s=!0,p=0;function a(){if(!s){if(i=e?Be((o()-l)/e,1):1,t&&t(i),i>=1&&(r(),l=o(),n&&++p>=n))return h();c=On(a)}}function _(A){A||u(),l=o()-(A?i*e:0),s=!1,c=On(a)}function h(){s=!0}function d(){l=o(),i=0,t&&t(i)}function u(){c&&cancelAnimationFrame(c),i=0,c=0,s=!0}function m(A){e=A}function C(){return s}return{start:_,rewind:d,pause:h,cancel:u,set:m,isPaused:C}}function Oi(e){var r=e;function t(o){r=o}function n(o){return mn(yt(o),r)}return{set:t,is:n}}function Di(e,r){var t=Ht(0,e,null,1);return function(){t.isPaused()&&t.start()}}function zi(e,r,t){var n=e.state,o=t.breakpoints||{},l=t.reducedMotion||{},i=cr(),c=[];function s(){var u=t.mediaQuery==="min";pt(o).sort(function(m,C){return u?+m-+C:+C-+m}).forEach(function(m){a(o[m],"("+(u?"min":"max")+"-width:"+m+"px)")}),a(l,kn),_()}function p(u){u&&i.destroy()}function a(u,m){var C=matchMedia(m);i.bind(C,"change",_),c.push([u,C])}function _(){var u=n.is(kt),m=t.direction,C=c.reduce(function(A,y){return ze(A,y[1].matches?y[0]:{})},{});Dn(t),d(C),t.destroy?e.destroy(t.destroy==="completely"):u?(p(!0),e.mount()):m!==t.direction&&e.refresh()}function h(u){matchMedia(kn).matches&&(u?ze(t,l):Dn(t,pt(l)))}function d(u,m,C){ze(t,u),m&&ze(Object.getPrototypeOf(t),u),(C||!n.is(Je))&&e.emit(ve,t)}return{setup:s,destroy:p,reduce:h,set:d}}var Vt="Arrow",$t=Vt+"Left",Ut=Vt+"Right",Cr=Vt+"Up",Ar=Vt+"Down",Bn="rtl",Gt="ttb",qt={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Cr,Ut],ArrowRight:[Ar,$t]};function Pi(e,r,t){function n(l,i,c){c=c||t.direction;var s=c===Bn&&!i?1:c===Gt?0:-1;return qt[l]&&qt[l][s]||l.replace(/width|left|right/i,function(p,a){var _=qt[p.toLowerCase()][s]||p;return a>0?_.charAt(0).toUpperCase()+_.slice(1):_})}function o(l){return l*(t.direction===Bn?1:-1)}return{resolve:n,orient:o}}var ke="role",Qe="tabindex",Bi="disabled",Ae="aria-",St=Ae+"controls",Ir=Ae+"current",Wn=Ae+"selected",we=Ae+"label",Cn=Ae+"labelledby",Er=Ae+"hidden",An=Ae+"orientation",ft=Ae+"roledescription",Fn=Ae+"live",Mn=Ae+"busy",Hn=Ae+"atomic",In=[ke,Qe,Bi,St,Ir,we,Cn,Er,An,ft],Le=wt+"__",Me="is-",Jt=wt,Vn=Le+"track",Wi=Le+"list",Yt=Le+"slide",Lr=Yt+"--clone",Fi=Yt+"__container",En=Le+"arrows",Xt=Le+"arrow",Tr=Xt+"--prev",Rr=Xt+"--next",Kt=Le+"pagination",Nr=Kt+"__page",Mi=Le+"progress",Hi=Mi+"__bar",Vi=Le+"toggle",$i=Le+"spinner",Ui=Le+"sr",Gi=Me+"initialized",Ge=Me+"active",jr=Me+"prev",kr=Me+"next",ln=Me+"visible",sn=Me+"loading",Or=Me+"focus-in",Dr=Me+"overflow",Yi=[Ge,ln,jr,kr,sn,Or,Dr],Xi={slide:Yt,clone:Lr,arrows:En,arrow:Xt,prev:Tr,next:Rr,pagination:Kt,page:Nr,spinner:$i};function Ki(e,r){if(nr(e.closest))return e.closest(r);for(var t=e;t&&t.nodeType===1&&!ut(t,r);)t=t.parentElement;return t}var qi=5,$n=200,zr="touchstart mousedown",Zt="touchmove mousemove",Qt="touchend touchcancel mouseup click";function Ji(e,r,t){var n=ue(e),o=n.on,l=n.bind,i=e.root,c=t.i18n,s={},p=[],a=[],_=[],h,d,u;function m(){x(),H(),y()}function C(){o(me,A),o(me,m),o(ve,y),l(document,zr+" keydown",function(v){u=v.type==="keydown"},{capture:!0}),l(i,"focusin",function(){Ne(i,Or,!!u)})}function A(v){var S=In.concat("style");Oe(p),je(i,a),je(h,_),Ee([h,d],S),Ee(i,v?S:["style",ft])}function y(){je(i,a),je(h,_),a=L(Jt),_=L(Vn),Ie(i,a),Ie(h,_),q(i,we,t.label),q(i,Cn,t.labelledby)}function x(){h=B("."+Vn),d=_t(h,"."+Wi),lt(h&&d,"A track/list element is missing."),Rt(p,ir(d,"."+Yt+":not(."+Lr+")")),Ve({arrows:En,pagination:Kt,prev:Tr,next:Rr,bar:Hi,toggle:Vi},function(v,S){s[S]=B("."+v)}),dt(s,{root:i,track:h,list:d,slides:p})}function H(){var v=i.id||ji(wt),S=t.role;i.id=v,h.id=h.id||v+"-track",d.id=d.id||v+"-list",!Ce(i,ke)&&i.tagName!=="SECTION"&&S&&q(i,ke,S),q(i,ft,c.carousel),q(d,ke,"presentation")}function B(v){var S=lr(i,v);return S&&Ki(S,"."+Jt)===i?S:void 0}function L(v){return[v+"--"+t.type,v+"--"+t.direction,t.drag&&v+"--draggable",t.isNavigation&&v+"--nav",v===Jt&&Ge]}return dt(s,{setup:m,mount:C,destroy:A})}var nt="slide",ot="loop",xt="fade";function Zi(e,r,t,n){var o=ue(e),l=o.on,i=o.emit,c=o.bind,s=e.Components,p=e.root,a=e.options,_=a.isNavigation,h=a.updateOnMove,d=a.i18n,u=a.pagination,m=a.slideFocus,C=s.Direction.resolve,A=Ce(n,"style"),y=Ce(n,we),x=t>-1,H=_t(n,"."+Fi),B;function L(){x||(n.id=p.id+"-slide"+vn(r+1),q(n,ke,u?"tabpanel":"group"),q(n,ft,d.slide),q(n,we,y||on(d.slideLabel,[r+1,e.length]))),v()}function v(){c(n,"click",ae(i,yn,T)),c(n,"keydown",ae(i,Sr,T)),l([it,xr,Ye],I),l(_n,N),h&&l(De,W)}function S(){B=!0,o.destroy(),je(n,Yi),Ee(n,In),q(n,"style",A),q(n,we,y||"")}function N(){var R=e.splides.map(function(b){var O=b.splide.Components.Slides.getAt(r);return O?O.slide.id:""}).join(" ");q(n,we,on(d.slideX,(x?t:r)+1)),q(n,St,R),q(n,ke,m?"button":""),m&&Ee(n,ft)}function W(){B||I()}function I(){if(!B){var R=e.index;D(),P(),Ne(n,jr,r===R-1),Ne(n,kr,r===R+1)}}function D(){var R=V();R!==zn(n,Ge)&&(Ne(n,Ge,R),q(n,Ir,_&&R||""),i(R?ur:pr,T))}function P(){var R=g(),b=!R&&(!V()||x);if(e.state.is([rt,ht])||q(n,Er,b||""),q(fn(n,a.focusableNodes||""),Qe,b?-1:""),m&&q(n,Qe,b?-1:0),R!==zn(n,ln)&&(Ne(n,ln,R),i(R?dr:mr,T)),!R&&document.activeElement===n){var O=s.Slides.getAt(e.index);O&&or(O.slide)}}function G(R,b,O){xe(O&&H||n,R,b)}function V(){var R=e.index;return R===r||a.cloneStatus&&R===t}function g(){if(e.is(xt))return V();var R=_e(s.Elements.track),b=_e(n),O=C("left",!0),Y=C("right",!0);return Dt(R[O])<=gt(b[O])&&Dt(b[Y])<=gt(R[Y])}function j(R,b){var O=be(R-r);return!x&&(a.rewind||e.is(ot))&&(O=Be(O,e.length-O)),O<=b}var T={index:r,slideIndex:t,slide:n,container:H,isClone:x,mount:L,destroy:S,update:I,style:G,isWithin:j};return T}function Qi(e,r,t){var n=ue(e),o=n.on,l=n.emit,i=n.bind,c=r.Elements,s=c.slides,p=c.list,a=[];function _(){h(),o(me,d),o(me,h)}function h(){s.forEach(function(I,D){m(I,D,-1)})}function d(){B(function(I){I.destroy()}),Oe(a)}function u(){B(function(I){I.update()})}function m(I,D,P){var G=Zi(e,D,P,I);G.mount(),a.push(G),a.sort(function(V,g){return V.index-g.index})}function C(I){return I?L(function(D){return!D.isClone}):a}function A(I){var D=r.Controller,P=D.toIndex(I),G=D.hasFocus()?1:t.perPage;return L(function(V){return Nt(V.index,P,P+G-1)})}function y(I){return L(I)[0]}function x(I,D){Se(I,function(P){if(Pe(P)&&(P=ar(P)),rr(P)){var G=s[D];G?gn(P,G):bt(p,P),Ie(P,t.classes.slide),S(P,ae(l,tt))}}),l(me)}function H(I){Ue(L(I).map(function(D){return D.slide})),l(me)}function B(I,D){C(D).forEach(I)}function L(I){return a.filter(nr(I)?I:function(D){return Pe(I)?ut(D.slide,I):mn(yt(I),D.index)})}function v(I,D,P){B(function(G){G.style(I,D,P)})}function S(I,D){var P=fn(I,"img"),G=P.length;G?P.forEach(function(V){i(V,"load error",function(){--G||D()})}):D()}function N(I){return I?s.length:a.length}function W(){return a.length>t.perPage}return{mount:_,destroy:d,update:u,register:m,get:C,getIn:A,getAt:y,add:x,remove:H,forEach:B,filter:L,style:v,getLength:N,isEnough:W}}function eo(e,r,t){var n=ue(e),o=n.on,l=n.bind,i=n.emit,c=r.Slides,s=r.Direction.resolve,p=r.Elements,a=p.root,_=p.track,h=p.list,d=c.getAt,u=c.style,m,C,A;function y(){x(),l(window,"resize load",Di(ae(i,tt))),o([ve,me],x),o(tt,H)}function x(){m=t.direction===Gt,xe(a,"maxWidth",He(t.width)),xe(_,s("paddingLeft"),B(!1)),xe(_,s("paddingRight"),B(!0)),H(!0)}function H(T){var R=_e(a);(T||C.width!==R.width||C.height!==R.height)&&(xe(_,"height",L()),u(s("marginRight"),He(t.gap)),u("width",S()),u("height",N(),!0),C=R,i(Ft),A!==(A=j())&&(Ne(a,Dr,A),i(ki,A)))}function B(T){var R=t.padding,b=s(T?"right":"left");return R&&He(R[b]||(ct(R)?0:R))||"0px"}function L(){var T="";return m&&(T=v(),lt(T,"height or heightRatio is missing."),T="calc("+T+" - "+B(!1)+" - "+B(!0)+")"),T}function v(){return He(t.height||_e(h).width*t.heightRatio)}function S(){return t.autoWidth?null:He(t.fixedWidth)||(m?"":W())}function N(){return He(t.fixedHeight)||(m?t.autoHeight?null:W():v())}function W(){var T=He(t.gap);return"calc((100%"+(T&&" + "+T)+")/"+(t.perPage||1)+(T&&" - "+T)+")"}function I(){return _e(h)[s("width")]}function D(T,R){var b=d(T||0);return b?_e(b.slide)[s("width")]+(R?0:V()):0}function P(T,R){var b=d(T);if(b){var O=_e(b.slide)[s("right")],Y=_e(h)[s("left")];return be(O-Y)+(R?0:V())}return 0}function G(T){return P(e.length-1)-P(0)+D(0,T)}function V(){var T=d(0);return T&&parseFloat(xe(T.slide,s("marginRight")))||0}function g(T){return parseFloat(xe(_,s("padding"+(T?"Right":"Left"))))||0}function j(){return e.is(xt)||G(!0)>I()}return{mount:y,resize:H,listSize:I,slideSize:D,sliderSize:G,totalSize:P,getPadding:g,isOverflow:j}}var to=2;function no(e,r,t){var n=ue(e),o=n.on,l=r.Elements,i=r.Slides,c=r.Direction.resolve,s=[],p;function a(){o(me,_),o([ve,tt],d),(p=C())&&(u(p),r.Layout.resize(!0))}function _(){h(),a()}function h(){Ue(s),Oe(s),n.destroy()}function d(){var A=C();p!==A&&(p<A||!A)&&n.emit(me)}function u(A){var y=i.get().slice(),x=y.length;if(x){for(;y.length<A;)Rt(y,y);Rt(y.slice(-A),y.slice(0,A)).forEach(function(H,B){var L=B<A,v=m(H.slide,B);L?gn(v,y[0].slide):bt(l.list,v),Rt(s,v),i.register(v,B-A+(L?0:x),H.index)})}}function m(A,y){var x=A.cloneNode(!0);return Ie(x,t.classes.clone),x.id=e.root.id+"-clone"+vn(y+1),x}function C(){var A=t.clones;if(!e.is(ot))A=0;else if(vt(A)){var y=t[c("fixedWidth")]&&r.Layout.slideSize(0),x=y&&gt(_e(l.track)[c("width")]/y);A=x||t[c("autoWidth")]&&e.length||t.perPage*to}return A}return{mount:a,destroy:h}}function ro(e,r,t){var n=ue(e),o=n.on,l=n.emit,i=e.state.set,c=r.Layout,s=c.slideSize,p=c.getPadding,a=c.totalSize,_=c.listSize,h=c.sliderSize,d=r.Direction,u=d.resolve,m=d.orient,C=r.Elements,A=C.list,y=C.track,x;function H(){x=r.Transition,o([Fe,Ft,ve,me],B)}function B(){r.Controller.isBusy()||(r.Scroll.cancel(),v(e.index),r.Slides.update())}function L(b,O,Y,ne){b!==O&&T(b>Y)&&(I(),S(W(G(),b>Y),!0)),i(rt),l(De,O,Y,b),x.start(O,function(){i(et),l(it,O,Y,b),ne&&ne()})}function v(b){S(P(b,!0))}function S(b,O){if(!e.is(xt)){var Y=O?b:N(b);xe(A,"transform","translate"+u("X")+"("+Y+"px)"),b!==Y&&l(xr)}}function N(b){if(e.is(ot)){var O=D(b),Y=O>r.Controller.getEnd(),ne=O<0;(ne||Y)&&(b=W(b,Y))}return b}function W(b,O){var Y=b-j(O),ne=h();return b-=m(ne*(gt(be(Y)/ne)||1))*(O?1:-1),b}function I(){S(G(),!0),x.cancel()}function D(b){for(var O=r.Slides.get(),Y=0,ne=1/0,Q=0;Q<O.length;Q++){var le=O[Q].index,E=be(P(le,!0)-b);if(E<=ne)ne=E,Y=le;else break}return Y}function P(b,O){var Y=m(a(b-1)-g(b));return O?V(Y):Y}function G(){var b=u("left");return _e(A)[b]-_e(y)[b]+m(p(!1))}function V(b){return t.trimSpace&&e.is(nt)&&(b=Ke(b,0,m(h(!0)-_()))),b}function g(b){var O=t.focus;return O==="center"?(_()-s(b,!0))/2:+O*s(b)||0}function j(b){return P(b?r.Controller.getEnd():0,!!t.trimSpace)}function T(b){var O=m(W(G(),b));return b?O>=0:O<=A[u("scrollWidth")]-_e(y)[u("width")]}function R(b,O){O=vt(O)?G():O;var Y=b!==!0&&m(O)<m(j(!1)),ne=b!==!1&&m(O)>m(j(!0));return Y||ne}return{mount:H,move:L,jump:v,translate:S,shift:W,cancel:I,toIndex:D,toPosition:P,getPosition:G,getLimit:j,exceededLimit:R,reposition:B}}function io(e,r,t){var n=ue(e),o=n.on,l=n.emit,i=r.Move,c=i.getPosition,s=i.getLimit,p=i.toPosition,a=r.Slides,_=a.isEnough,h=a.getLength,d=t.omitEnd,u=e.is(ot),m=e.is(nt),C=ae(G,!1),A=ae(G,!0),y=t.start||0,x,H=y,B,L,v;function S(){N(),o([ve,me,zt],N),o(Ft,W)}function N(){B=h(!0),L=t.perMove,v=t.perPage,x=T();var E=Ke(y,0,d?x:B-1);E!==y&&(y=E,i.reposition())}function W(){x!==T()&&l(zt)}function I(E,J,he){if(!le()){var se=P(E),fe=j(se);fe>-1&&(J||fe!==y)&&(Y(fe),i.move(se,fe,H,he))}}function D(E,J,he,se){r.Scroll.scroll(E,J,he,function(){var fe=j(i.toIndex(c()));Y(d?Be(fe,x):fe),se&&se()})}function P(E){var J=y;if(Pe(E)){var he=E.match(/([+\-<>])(\d+)?/)||[],se=he[1],fe=he[2];se==="+"||se==="-"?J=V(y+ +(""+se+(+fe||1)),y):se===">"?J=fe?R(+fe):C(!0):se==="<"&&(J=A(!0))}else J=u?E:Ke(E,0,x);return J}function G(E,J){var he=L||(Q()?1:v),se=V(y+he*(E?-1:1),y,!(L||Q()));return se===-1&&m&&!sr(c(),s(!E),1)?E?0:x:J?se:j(se)}function V(E,J,he){if(_()||Q()){var se=g(E);se!==E&&(J=E,E=se,he=!1),E<0||E>x?!L&&(Nt(0,E,J,!0)||Nt(x,J,E,!0))?E=R(b(E)):u?E=he?E<0?-(B%v||v):B:E:t.rewind?E=E<0?x:0:E=-1:he&&E!==J&&(E=R(b(J)+(E<J?-1:1)))}else E=-1;return E}function g(E){if(m&&t.trimSpace==="move"&&E!==y)for(var J=c();J===p(E,!0)&&Nt(E,0,e.length-1,!t.rewind);)E<y?--E:++E;return E}function j(E){return u?(E+B)%B||0:E}function T(){for(var E=B-(Q()||u&&L?1:v);d&&E-- >0;)if(p(B-1,!0)!==p(E,!0)){E++;break}return Ke(E,0,B-1)}function R(E){return Ke(Q()?E:v*E,0,x)}function b(E){return Q()?Be(E,x):Dt((E>=x?B-1:E)/v)}function O(E){var J=i.toIndex(E);return m?Ke(J,0,x):J}function Y(E){E!==y&&(H=y,y=E)}function ne(E){return E?H:y}function Q(){return!vt(t.focus)||t.isNavigation}function le(){return e.state.is([rt,ht])&&!!t.waitForTransition}return{mount:S,go:I,scroll:D,getNext:C,getPrev:A,getAdjacent:G,getEnd:T,setIndex:Y,getIndex:ne,toIndex:R,toPage:b,toDest:O,hasFocus:Q,isBusy:le}}var oo="http://www.w3.org/2000/svg",ao="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",Et=40;function lo(e,r,t){var n=ue(e),o=n.on,l=n.bind,i=n.emit,c=t.classes,s=t.i18n,p=r.Elements,a=r.Controller,_=p.arrows,h=p.track,d=_,u=p.prev,m=p.next,C,A,y={};function x(){B(),o(ve,H)}function H(){L(),x()}function B(){var D=t.arrows;D&&!(u&&m)&&N(),u&&m&&(dt(y,{prev:u,next:m}),mt(d,D?"":"none"),Ie(d,A=En+"--"+t.direction),D&&(v(),I(),q([u,m],St,h.id),i(vr,u,m)))}function L(){n.destroy(),je(d,A),C?(Ue(_?[u,m]:d),u=m=null):Ee([u,m],In)}function v(){o([Fe,it,me,Ye,zt],I),l(m,"click",ae(S,">")),l(u,"click",ae(S,"<"))}function S(D){a.go(D,!0)}function N(){d=_||Ze("div",c.arrows),u=W(!0),m=W(!1),C=!0,bt(d,[u,m]),!_&&gn(d,h)}function W(D){var P='<button class="'+c.arrow+" "+(D?c.prev:c.next)+'" type="button"><svg xmlns="'+oo+'" viewBox="0 0 '+Et+" "+Et+'" width="'+Et+'" height="'+Et+'" focusable="false"><path d="'+(t.arrowPath||ao)+'" />';return ar(P)}function I(){if(u&&m){var D=e.index,P=a.getPrev(),G=a.getNext(),V=P>-1&&D<P?s.last:s.prev,g=G>-1&&D>G?s.first:s.next;u.disabled=P<0,m.disabled=G<0,q(u,we,V),q(m,we,g),i(yr,u,m,P,G)}}return{arrows:y,mount:x,destroy:L,update:I}}var so=hn+"-interval";function co(e,r,t){var n=ue(e),o=n.on,l=n.bind,i=n.emit,c=Ht(t.interval,e.go.bind(e,">"),v),s=c.isPaused,p=r.Elements,a=r.Elements,_=a.root,h=a.toggle,d=t.autoplay,u,m,C=d==="pause";function A(){d&&(y(),h&&q(h,St,p.track.id),C||x(),L())}function y(){t.pauseOnHover&&l(_,"mouseenter mouseleave",function(N){u=N.type==="mouseenter",B()}),t.pauseOnFocus&&l(_,"focusin focusout",function(N){m=N.type==="focusin",B()}),h&&l(h,"click",function(){C?x():H(!0)}),o([De,Mt,me],c.rewind),o(De,S)}function x(){s()&&r.Slides.isEnough()&&(c.start(!t.resetProgress),m=u=C=!1,L(),i(wn))}function H(N){N===void 0&&(N=!0),C=!!N,L(),s()||(c.pause(),i(Sn))}function B(){C||(u||m?H(!1):x())}function L(){h&&(Ne(h,Ge,!C),q(h,we,t.i18n[C?"play":"pause"]))}function v(N){var W=p.bar;W&&xe(W,"width",N*100+"%"),i(wr,N)}function S(N){var W=r.Slides.getAt(N);c.set(W&&+Ce(W.slide,so)||t.interval)}return{mount:A,destroy:c.cancel,play:x,pause:H,isPaused:s}}function uo(e,r,t){var n=ue(e),o=n.on;function l(){t.cover&&(o(xn,ae(c,!0)),o([Fe,ve,me],ae(i,!0)))}function i(s){r.Slides.forEach(function(p){var a=_t(p.container||p.slide,"img");a&&a.src&&c(s,a,p)})}function c(s,p,a){a.style("background",s?'center/cover no-repeat url("'+p.src+'")':"",!0),mt(p,s?"none":"")}return{mount:l,destroy:ae(i,!1)}}var po=10,mo=600,go=.6,fo=1.5,ho=800;function vo(e,r,t){var n=ue(e),o=n.on,l=n.emit,i=e.state.set,c=r.Move,s=c.getPosition,p=c.getLimit,a=c.exceededLimit,_=c.translate,h=e.is(nt),d,u,m=1;function C(){o(De,H),o([ve,me],B)}function A(v,S,N,W,I){var D=s();if(H(),N&&(!h||!a())){var P=r.Layout.sliderSize(),G=rn(v)*P*Dt(be(v)/P)||0;v=c.toPosition(r.Controller.toDest(v%P))+G}var V=sr(D,v,1);m=1,S=V?0:S||Ot(be(v-D)/fo,ho),u=W,d=Ht(S,y,ae(x,D,v,I),1),i(ht),l(Mt),d.start()}function y(){i(et),u&&u(),l(Ye)}function x(v,S,N,W){var I=s(),D=v+(S-v)*L(W),P=(D-I)*m;_(I+P),h&&!N&&a()&&(m*=go,be(P)<po&&A(p(a(!0)),mo,!1,u,!0))}function H(){d&&d.cancel()}function B(){d&&!d.isPaused()&&(H(),y())}function L(v){var S=t.easingFunc;return S?S(v):1-Math.pow(1-v,4)}return{mount:C,destroy:H,scroll:A,cancel:B}}var qe={passive:!1,capture:!0};function yo(e,r,t){var n=ue(e),o=n.on,l=n.emit,i=n.bind,c=n.unbind,s=e.state,p=r.Move,a=r.Scroll,_=r.Controller,h=r.Elements.track,d=r.Media.reduce,u=r.Direction,m=u.resolve,C=u.orient,A=p.getPosition,y=p.exceededLimit,x,H,B,L,v,S=!1,N,W,I;function D(){i(h,Zt,tn,qe),i(h,Qt,tn,qe),i(h,zr,G,qe),i(h,"click",j,{capture:!0}),i(h,"dragstart",Re),o([Fe,ve],P)}function P(){var M=t.drag;Ct(!M),L=M==="free"}function G(M){if(N=!1,!W){var w=fe(M);se(M.target)&&(w||!M.button)&&(_.isBusy()?Re(M,!0):(I=w?h:window,v=s.is([rt,ht]),B=null,i(I,Zt,V,qe),i(I,Qt,g,qe),p.cancel(),a.cancel(),T(M)))}}function V(M){if(s.is(Tt)||(s.set(Tt),l(gr)),M.cancelable)if(v){p.translate(x+he(Q(M)));var w=le(M)>$n,$=S!==(S=y());(w||$)&&T(M),N=!0,l(fr),Re(M)}else O(M)&&(v=b(M),Re(M))}function g(M){s.is(Tt)&&(s.set(et),l(hr)),v&&(R(M),Re(M)),c(I,Zt,V),c(I,Qt,g),v=!1}function j(M){!W&&N&&Re(M,!0)}function T(M){B=H,H=M,x=A()}function R(M){var w=Y(M),$=ne(w),X=t.rewind&&t.rewindByDrag;d(!1),L?_.scroll($,0,t.snap):e.is(xt)?_.go(C(rn(w))<0?X?"<":"-":X?">":"+"):e.is(nt)&&S&&X?_.go(y(!0)?">":"<"):_.go(_.toDest($),!0),d(!0)}function b(M){var w=t.dragMinThreshold,$=ct(w),X=$&&w.mouse||0,Z=($?w.touch:+w)||10;return be(Q(M))>(fe(M)?Z:X)}function O(M){return be(Q(M))>be(Q(M,!0))}function Y(M){if(e.is(ot)||!S){var w=le(M);if(w&&w<$n)return Q(M)/w}return 0}function ne(M){return A()+rn(M)*Be(be(M)*(t.flickPower||600),L?1/0:r.Layout.listSize()*(t.flickMaxPages||1))}function Q(M,w){return J(M,w)-J(E(M),w)}function le(M){return nn(M)-nn(E(M))}function E(M){return H===M&&B||H}function J(M,w){return(fe(M)?M.changedTouches[0]:M)["page"+m(w?"Y":"X")]}function he(M){return M/(S&&e.is(nt)?qi:1)}function se(M){var w=t.noDrag;return!ut(M,"."+Nr+", ."+Xt)&&(!w||!ut(M,w))}function fe(M){return typeof TouchEvent<"u"&&M instanceof TouchEvent}function at(){return v}function Ct(M){W=M}return{mount:D,disable:Ct,isDragging:at}}var bo={Spacebar:" ",Right:Ut,Left:$t,Up:Cr,Down:Ar};function Ln(e){return e=Pe(e)?e:e.key,bo[e]||e}var Un="keydown";function _o(e,r,t){var n=ue(e),o=n.on,l=n.bind,i=n.unbind,c=e.root,s=r.Direction.resolve,p,a;function _(){h(),o(ve,d),o(ve,h),o(De,m)}function h(){var A=t.keyboard;A&&(p=A==="global"?window:c,l(p,Un,C))}function d(){i(p,Un)}function u(A){a=A}function m(){var A=a;a=!0,tr(function(){a=A})}function C(A){if(!a){var y=Ln(A);y===s($t)?e.go("<"):y===s(Ut)&&e.go(">")}}return{mount:_,destroy:d,disable:u}}var st=hn+"-lazy",jt=st+"-srcset",wo="["+st+"], ["+jt+"]";function So(e,r,t){var n=ue(e),o=n.on,l=n.off,i=n.bind,c=n.emit,s=t.lazyLoad==="sequential",p=[it,Ye],a=[];function _(){t.lazyLoad&&(h(),o(me,h))}function h(){Oe(a),d(),s?A():(l(p),o(p,u),u())}function d(){r.Slides.forEach(function(y){fn(y.slide,wo).forEach(function(x){var H=Ce(x,st),B=Ce(x,jt);if(H!==x.src||B!==x.srcset){var L=t.classes.spinner,v=x.parentElement,S=_t(v,"."+L)||Ze("span",L,v);a.push([x,y,S]),x.src||mt(x,"none")}})})}function u(){a=a.filter(function(y){var x=t.perPage*((t.preloadPages||1)+1)-1;return y[1].isWithin(e.index,x)?m(y):!0}),a.length||l(p)}function m(y){var x=y[0];Ie(y[1].slide,sn),i(x,"load error",ae(C,y)),q(x,"src",Ce(x,st)),q(x,"srcset",Ce(x,jt)),Ee(x,st),Ee(x,jt)}function C(y,x){var H=y[0],B=y[1];je(B.slide,sn),x.type!=="error"&&(Ue(y[2]),mt(H,""),c(xn,H,B),c(tt)),s&&A()}function A(){a.length&&m(a.shift())}return{mount:_,destroy:ae(Oe,a),check:u}}function xo(e,r,t){var n=ue(e),o=n.on,l=n.emit,i=n.bind,c=r.Slides,s=r.Elements,p=r.Controller,a=p.hasFocus,_=p.getIndex,h=p.go,d=r.Direction.resolve,u=s.pagination,m=[],C,A;function y(){x(),o([ve,me,zt],y);var W=t.pagination;u&&mt(u,W?"":"none"),W&&(o([De,Mt,Ye],N),H(),N(),l(br,{list:C,items:m},S(e.index)))}function x(){C&&(Ue(u?We(C.children):C),je(C,A),Oe(m),C=null),n.destroy()}function H(){var W=e.length,I=t.classes,D=t.i18n,P=t.perPage,G=a()?p.getEnd()+1:gt(W/P);C=u||Ze("ul",I.pagination,s.track.parentElement),Ie(C,A=Kt+"--"+v()),q(C,ke,"tablist"),q(C,we,D.select),q(C,An,v()===Gt?"vertical":"");for(var V=0;V<G;V++){var g=Ze("li",null,C),j=Ze("button",{class:I.page,type:"button"},g),T=c.getIn(V).map(function(b){return b.slide.id}),R=!a()&&P>1?D.pageX:D.slideX;i(j,"click",ae(B,V)),t.paginationKeyboard&&i(j,"keydown",ae(L,V)),q(g,ke,"presentation"),q(j,ke,"tab"),q(j,St,T.join(" ")),q(j,we,on(R,V+1)),q(j,Qe,-1),m.push({li:g,button:j,page:V})}}function B(W){h(">"+W,!0)}function L(W,I){var D=m.length,P=Ln(I),G=v(),V=-1;P===d(Ut,!1,G)?V=++W%D:P===d($t,!1,G)?V=(--W+D)%D:P==="Home"?V=0:P==="End"&&(V=D-1);var g=m[V];g&&(or(g.button),h(">"+V),Re(I,!0))}function v(){return t.paginationDirection||t.direction}function S(W){return m[p.toPage(W)]}function N(){var W=S(_(!0)),I=S(_());if(W){var D=W.button;je(D,Ge),Ee(D,Wn),q(D,Qe,-1)}if(I){var P=I.button;Ie(P,Ge),q(P,Wn,!0),q(P,Qe,"")}l(_r,{list:C,items:m},W,I)}return{items:m,mount:y,destroy:x,getAt:S,update:N}}var Co=[" ","Enter"];function Ao(e,r,t){var n=t.isNavigation,o=t.slideFocus,l=[];function i(){e.splides.forEach(function(u){u.isParent||(p(e,u.splide),p(u.splide,e))}),n&&a()}function c(){l.forEach(function(u){u.destroy()}),Oe(l)}function s(){c(),i()}function p(u,m){var C=ue(u);C.on(De,function(A,y,x){m.go(m.is(ot)?x:A)}),l.push(C)}function a(){var u=ue(e),m=u.on;m(yn,h),m(Sr,d),m([Fe,ve],_),l.push(u),u.emit(_n,e.splides)}function _(){q(r.Elements.list,An,t.direction===Gt?"vertical":"")}function h(u){e.go(u.index)}function d(u,m){mn(Co,Ln(m))&&(h(u),Re(m))}return{setup:ae(r.Media.set,{slideFocus:vt(o)?n:o},!0),mount:i,destroy:c,remount:s}}function Io(e,r,t){var n=ue(e),o=n.bind,l=0;function i(){t.wheel&&o(r.Elements.track,"wheel",c,qe)}function c(p){if(p.cancelable){var a=p.deltaY,_=a<0,h=nn(p),d=t.wheelMinThreshold||0,u=t.wheelSleep||0;be(a)>d&&h-l>u&&(e.go(_?"<":">"),l=h),s(_)&&Re(p)}}function s(p){return!t.releaseWheel||e.state.is(rt)||r.Controller.getAdjacent(p)!==-1}return{mount:i}}var Eo=90;function Lo(e,r,t){var n=ue(e),o=n.on,l=r.Elements.track,i=t.live&&!t.isNavigation,c=Ze("span",Ui),s=Ht(Eo,ae(a,!1));function p(){i&&(h(!r.Autoplay.isPaused()),q(l,Hn,!0),c.textContent="…",o(wn,ae(h,!0)),o(Sn,ae(h,!1)),o([it,Ye],ae(a,!0)))}function a(d){q(l,Mn,d),d?(bt(l,c),s.start()):(Ue(c),s.cancel())}function _(){Ee(l,[Fn,Hn,Mn]),Ue(c)}function h(d){i&&q(l,Fn,d?"off":"polite")}return{mount:p,disable:h,destroy:_}}var To=Object.freeze({__proto__:null,Media:zi,Direction:Pi,Elements:Ji,Slides:Qi,Layout:eo,Clones:no,Move:ro,Controller:io,Arrows:lo,Autoplay:co,Cover:uo,Scroll:vo,Drag:yo,Keyboard:_o,LazyLoad:So,Pagination:xo,Sync:Ao,Wheel:Io,Live:Lo}),Ro={prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},No={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Xi,i18n:Ro,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function jo(e,r,t){var n=r.Slides;function o(){ue(e).on([Fe,me],l)}function l(){n.forEach(function(c){c.style("transform","translateX(-"+100*c.index+"%)")})}function i(c,s){n.style("transition","opacity "+t.speed+"ms "+t.easing),tr(s)}return{mount:o,start:i,cancel:tn}}function ko(e,r,t){var n=r.Move,o=r.Controller,l=r.Scroll,i=r.Elements.list,c=ae(xe,i,"transition"),s;function p(){ue(e).bind(i,"transitionend",function(d){d.target===i&&s&&(_(),s())})}function a(d,u){var m=n.toPosition(d,!0),C=n.getPosition(),A=h(d);be(m-C)>=1&&A>=1?t.useScroll?l.scroll(m,A,!1,u):(c("transform "+A+"ms "+t.easing),n.translate(m,!0),s=u):(n.jump(d),u())}function _(){c(""),l.cancel()}function h(d){var u=t.rewindSpeed;if(e.is(nt)&&u){var m=o.getIndex(!0),C=o.getEnd();if(m===0&&d>=C||m>=C&&d===0)return u}return t.speed}return{mount:p,start:a,cancel:_}}var Oo=(function(){function e(t,n){this.event=ue(),this.Components={},this.state=Oi(Je),this.splides=[],this._o={},this._E={};var o=Pe(t)?lr(document,t):t;lt(o,o+" is invalid."),this.root=o,n=ze({label:Ce(o,we)||"",labelledby:Ce(o,Cn)||""},No,e.defaults,n||{});try{ze(n,JSON.parse(Ce(o,hn)))}catch{lt(!1,"Invalid JSON")}this._o=Object.create(ze({},n))}var r=e.prototype;return r.mount=function(n,o){var l=this,i=this.state,c=this.Components;lt(i.is([Je,kt]),"Already mounted!"),i.set(Je),this._C=c,this._T=o||this._T||(this.is(xt)?jo:ko),this._E=n||this._E;var s=dt({},To,this._E,{Transition:this._T});return Ve(s,function(p,a){var _=p(l,c,l._o);c[a]=_,_.setup&&_.setup()}),Ve(c,function(p){p.mount&&p.mount()}),this.emit(Fe),Ie(this.root,Gi),i.set(et),this.emit(an),this},r.sync=function(n){return this.splides.push({splide:n}),n.splides.push({splide:this,isParent:!0}),this.state.is(et)&&(this._C.Sync.remount(),n.Components.Sync.remount()),this},r.go=function(n){return this._C.Controller.go(n),this},r.on=function(n,o){return this.event.on(n,o),this},r.off=function(n){return this.event.off(n),this},r.emit=function(n){var o;return(o=this.event).emit.apply(o,[n].concat(We(arguments,1))),this},r.add=function(n,o){return this._C.Slides.add(n,o),this},r.remove=function(n){return this._C.Slides.remove(n),this},r.is=function(n){return this._o.type===n},r.refresh=function(){return this.emit(me),this},r.destroy=function(n){n===void 0&&(n=!0);var o=this.event,l=this.state;return l.is(Je)?ue(this).on(an,this.destroy.bind(this,n)):(Ve(this._C,function(i){i.destroy&&i.destroy(n)},!0),o.emit(bn),o.destroy(),n&&Oe(this.splides),l.set(kt)),this},Ti(e,[{key:"options",get:function(){return this._o},set:function(n){this._C.Media.set(n,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),e})(),Tn=Oo;Tn.defaults={};Tn.STATES=Ni;var Gn=[[Fe,"onMounted"],[an,"onReady"],[De,"onMove"],[it,"onMoved"],[yn,"onClick"],[ur,"onActive"],[pr,"onInactive"],[dr,"onVisible"],[mr,"onHidden"],[me,"onRefresh"],[ve,"onUpdated"],[tt,"onResize"],[Ft,"onResized"],[gr,"onDrag"],[fr,"onDragging"],[hr,"onDragged"],[Mt,"onScroll"],[Ye,"onScrolled"],[bn,"onDestroy"],[vr,"onArrowsMounted"],[yr,"onArrowsUpdated"],[br,"onPaginationMounted"],[_r,"onPaginationUpdated"],[_n,"onNavigationMounted"],[wn,"onAutoplayPlay"],[wr,"onAutoplayPlaying"],[Sn,"onAutoplayPause"],[xn,"onLazyLoadLoaded"]];function Rn(...e){return e.filter(Boolean).join(" ")}function Pt(e){return e!==null&&typeof e=="object"}function cn(e,r){if(Array.isArray(e)&&Array.isArray(r))return e.length===r.length&&!e.some((t,n)=>!cn(t,r[n]));if(Pt(e)&&Pt(r)){const t=Object.keys(e),n=Object.keys(r);return t.length===n.length&&!t.some(o=>!Object.prototype.hasOwnProperty.call(r,o)||!cn(e[o],r[o]))}return e===r}function Do(e,r){return e.length===r.length&&!e.some((t,n)=>t!==r[n])}function zo(e,r){if(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];if(o!=="__proto__"&&r(e[o],o)===!1)break}}return e}function un(e,r){const t=e;return zo(r,(n,o)=>{Array.isArray(n)?t[o]=n.slice():Pt(n)?t[o]=un(Pt(t[o])?t[o]:{},n):t[o]=n}),t}var Po=({children:e,className:r,...t})=>F.createElement("div",{className:Rn("splide__track",r),...t},F.createElement("ul",{className:"splide__list"},e)),Nn=class extends F.Component{constructor(){super(...arguments),this.splideRef=F.createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:r,transition:t}=this.props,{current:n}=this.splideRef;n&&(this.splide=new Tn(n,e),this.bind(this.splide),this.splide.mount(r,t),this.options=un({},e||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){if(!this.splide)return;const{options:e}=this.props;e&&!cn(this.options,e)&&(this.splide.options=e,this.options=un({},e));const r=this.getSlides();Do(this.slides,r)||(this.splide.refresh(),this.slides=r)}sync(e){var r;(r=this.splide)==null||r.sync(e)}go(e){var r;(r=this.splide)==null||r.go(e)}getSlides(){var e;if(this.splide){const r=(e=this.splide.Components.Elements)==null?void 0:e.list.children;return r&&Array.prototype.slice.call(r)||[]}return[]}bind(e){Gn.forEach(([r,t])=>{const n=this.props[t];typeof n=="function"&&e.on(r,(...o)=>{n(e,...o)})})}omit(e,r){return r.forEach(t=>{Object.prototype.hasOwnProperty.call(e,t)&&delete e[t]}),e}render(){const{className:e,tag:r="div",hasTrack:t=!0,children:n,...o}=this.props;return F.createElement(r,{className:Rn("splide",e),ref:this.splideRef,...this.omit(o,["options",...Gn.map(l=>l[1])])},t?F.createElement(Po,null,n):n)}},jn=({children:e,className:r,...t})=>F.createElement("li",{className:Rn("splide__slide",r),...t},e);/*!
2
2
  * Splide.js
3
3
  * Version : 4.1.3
4
4
  * License : MIT
5
5
  * Copyright: 2022 Naotoshi Fujita
6
- */const Bo="RichTextRenderer-module__link___BWeZ2",Wo={link:Bo},Bt=({content:e})=>{const n=r=>r.map((t,o)=>t.type==="link"?h.jsx("a",{className:Wo.link,href:t.value,target:t.target,children:n(t.children)},o):h.jsx("span",{style:Fo(t),children:t.text},o));return h.jsx(h.Fragment,{children:e.map((r,t)=>{const o=r.children;return h.jsx("div",{children:n(o)},t)})})};function Fo(e){return{...e.fontFamily&&{fontFamily:e.fontFamily},...e.fontWeight&&{fontWeight:e.fontWeight},...e.fontStyle&&{fontStyle:e.fontStyle},...e.textDecoration&&{textDecoration:e.textDecoration},...e.textTransform&&{textTransform:e.textTransform},...e.fontVariant&&{fontVariant:e.fontVariant},...e.verticalAlign&&{verticalAlign:e.verticalAlign,lineHeight:"0px"}}}function R(e,n=!1){return n?`calc(var(--cntrl-article-width) * ${e})`:`${e*100}vw`}const Mo="SvgImage-module__svg___q3xE-",Vo="SvgImage-module__img___VsTm-",Yn={svg:Mo,img:Vo},$e=({url:e,fill:n="#000000",hoverFill:r="#CCCCCC",className:t=""})=>{const[o,l]=V.useState(!0);return V.useEffect(()=>{if(typeof window<"u"&&window.CSS){const i=CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")');l(i)}},[]),!e.endsWith(".svg")||!o?h.jsx("img",{src:e,alt:"",className:ae(Yn.img,t)}):h.jsx("span",{"data-supports-mask":o,className:ae(Yn.svg,t),style:{"--svg":`url(${e})`,"--fill":n,"--hover-fill":r}})},Ho={"top-left":G.topLeftAlignment,"top-center":G.topCenterAlignment,"top-right":G.topRightAlignment,"middle-left":G.middleLeftAlignment,"middle-center":G.middleCenterAlignment,"middle-right":G.middleRightAlignment,"bottom-left":G.bottomLeftAlignment,"bottom-center":G.bottomCenterAlignment,"bottom-right":G.bottomRightAlignment};function $o({settings:e,content:n,styles:r,isEditor:t}){const[o,l]=V.useState(null),{widthSettings:i,fontSettings:s,letterSpacing:a,textAlign:p,wordSpacing:c,fontSizeLineHeight:w,textAppearance:v,color:b}=r.imageCaption,[u,d]=V.useState(void 0),[C,S]=V.useState(null),[g,x]=V.useState(0),[M,B]=V.useState(0),{direction:E,transition:y,controls:I,pagination:k,imageCaption:F,triggers:N}=e,D=V.useRef(y.type),{x:z,y:U}=e.controls.offset,$=m=>{o&&o.go(m)};return V.useEffect(()=>{if(!C)return;const m=new ResizeObserver(j=>{if(!o)return;const[L]=j;d({width:Math.round(L.contentRect.width),height:Math.round(L.contentRect.height)})});return m.observe(C),()=>m.unobserve(C)},[C]),V.useEffect(()=>{!o||D.current===y.type||(B(m=>m+1),D.current=y.type)},[y.type]),h.jsx("div",{className:ae(G.wrapper,{[G.editor]:t}),ref:S,children:h.jsxs("div",{className:G.sliderInner,style:{width:u?u.width:"100%",height:u?u.height:"100%",backgroundColor:y.backgroundColor&&y.type==="fade in"?y.backgroundColor:"transparent"},children:[e.imageCaption.isActive&&h.jsx("div",{className:ae(G.captionBlock),children:h.jsx("div",{className:G.captionTextWrapper,children:n.map((m,j)=>h.jsx("div",{className:ae(G.captionText,Ho[F.alignment],{[G.withPointerEvents]:j===g&&t,[G.active]:j===g}),style:{fontFamily:s.fontFamily,fontWeight:s.fontWeight,fontStyle:s.fontStyle,width:i.sizing==="auto"?"max-content":R(i.width,t),letterSpacing:R(a,t),wordSpacing:R(c,t),textAlign:p,fontSize:R(w.fontSize,t),lineHeight:R(w.lineHeight,t),textTransform:v.textTransform??"none",textDecoration:v.textDecoration??"none",fontVariant:v.fontVariant??"normal",color:b,transitionDuration:y.duration?`${Math.round(parseInt(y.duration)/2)}ms`:"500ms"},children:h.jsx("div",{"data-styles":"imageCaption",className:G.captionTextInner,style:{"--link-hover-color":F.linkHoverColor,"--link-color":F.linkColor,position:"relative",top:R(F.offset.y,t),left:R(F.offset.x,t)},children:h.jsx(Bt,{content:m.imageCaption})})},j))})}),h.jsx(Nn,{onMove:m=>{x(m.index)},ref:l,options:{arrows:!1,speed:y.duration?parseInt(y.duration):500,autoplay:N.autoPlay!==null,...N.autoPlay!==null&&{interval:parseInt(N.autoPlay)*1e3},direction:E==="horiz"||y.type==="fade in"?"ltr":"ttb",pagination:!1,drag:N.triggersList.drag,perPage:1,width:u?u.width:"100%",height:u?u.height:"100%",type:y.type==="fade in"?"fade":"loop",rewind:!0},children:n.map((m,j)=>h.jsx(jn,{children:h.jsx("div",{className:G.sliderItem,children:h.jsx("div",{className:G.imgWrapper,children:h.jsx("img",{className:ae(G.sliderImage,{[G.contain]:m.image.objectFit==="contain",[G.cover]:m.image.objectFit==="cover"}),src:m.image.url,alt:m.image.name??""})})})},j))},M),I.isActive&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:ae(G.arrow,{[G.arrowVertical]:E==="vert",[G.hoverArrow]:I.show==="on hover"}),style:{color:I.color,"--arrow-hover-color":I.hover},children:h.jsxs("button",{onClick:()=>{$("-1")},className:G.arrowInner,style:{transform:`translate(${R(z,t)}, ${R(U*(E==="horiz"?1:-1),t)}) scale(${e.controls.scale/100}) rotate(${E==="horiz"?"0deg":"90deg"})`},children:[I.arrowsImgUrl&&h.jsx($e,{url:I.arrowsImgUrl,fill:I.color,hoverFill:I.hover,className:ae(G.arrowImg,G.mirror)}),!I.arrowsImgUrl&&h.jsx(Xn,{color:I.color,className:ae(G.arrowIcon,G.arrowImg,G.mirror)})]})}),h.jsx("div",{className:ae(G.arrow,G.nextArrow,{[G.arrowVertical]:E==="vert",[G.hoverArrow]:I.show==="on hover"}),style:{color:I.color,"--arrow-hover-color":I.hover},children:h.jsxs("button",{className:G.arrowInner,onClick:()=>$("+1"),style:{transform:`translate(${R(z*(E==="horiz"?-1:1),t)}, ${R(U,t)}) scale(${e.controls.scale/100}) rotate(${E==="horiz"?"0deg":"90deg"})`},children:[I.arrowsImgUrl&&h.jsx($e,{url:I.arrowsImgUrl,fill:I.color,hoverFill:I.hover,className:G.arrowImg}),!I.arrowsImgUrl&&h.jsx(Xn,{color:I.color,className:ae(G.arrowIcon,G.arrowImg)})]})})]}),N.triggersList.click&&h.jsx("div",{className:G.clickOverlay,onClick:()=>{o&&o.go("+1")}}),k.isActive&&h.jsx("div",{className:ae(G.pagination,{[G.paginationInsideBottom]:k.position==="inside-1"&&E==="horiz",[G.paginationInsideTop]:k.position==="inside-2"&&E==="horiz",[G.paginationOutsideBottom]:k.position==="outside-1"&&E==="horiz",[G.paginationOutsideTop]:k.position==="outside-2"&&E==="horiz",[G.paginationInsideLeft]:k.position==="inside-1"&&E==="vert",[G.paginationInsideRight]:k.position==="inside-2"&&E==="vert",[G.paginationOutsideLeft]:k.position==="outside-1"&&E==="vert",[G.paginationOutsideRight]:k.position==="outside-2"&&E==="vert",[G.paginationVertical]:E==="vert"}),children:h.jsx("div",{className:G.paginationInner,style:{backgroundColor:k.colors[2],transform:`scale(${k.scale/100}) translate(${R(k.offset.x,t)}, ${R(k.offset.y,t)}) rotate(${E==="horiz"?"0deg":"90deg"})`},children:n.map((m,j)=>h.jsx("button",{onClick:()=>{o&&o.go(j)},className:ae(G.paginationItem),children:h.jsx("div",{className:ae(G.dot,{[G.activeDot]:j===g}),style:{backgroundColor:j===g?k.colors[0]:k.colors[1],"--pagination-hover-color":k.hover}})},j))})})]})})}function Xn({color:e,className:n}){return h.jsx("svg",{viewBox:"0 0 10 18",className:n,children:h.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:h.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:e,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const Uo={element:$o,id:"control-slider",name:"Slider",preview:{type:"video",url:"https://cdn.cntrl.site/component-assets/Control-slider-preview.mp4"},defaultSize:{width:400,height:400},schema:{type:"object",properties:{settings:{layoutBased:!0,type:"object",display:{type:"settings-block"},properties:{triggers:{title:"triggers",icon:"target",tooltip:"Triggers",type:"object",properties:{triggersList:{type:"object",display:{type:"toggle-ratio-group"},properties:{click:{type:"boolean"},drag:{type:"boolean"}}},autoPlay:{type:["string","null"],label:"Auto",display:{type:"step-selector"},enum:[null,"1s","2s","3s","4s","5s"]}}},direction:{icon:"horizontal-resize",tooltip:"Direction",type:"string",display:{type:"ratio-group"},enum:["horiz","vert"]},transition:{title:"transit",icon:"transition",tooltip:"Transition",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide","fade in"]},backgroundColor:{type:["string","null"],title:"BG Color",display:{visible:!1,type:"settings-color-picker",format:"single"}},duration:{type:"string",label:"icon:hourglass",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]}}},controls:{title:"controls",icon:"controls",tooltip:"Controls",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"scale",min:50,max:600,display:{type:"range-control"}},color:{title:"color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}},show:{title:"Show",type:"string",display:{type:"ratio-group"},enum:["always","on hover"]}}},pagination:{title:"nav",icon:"pagination",tooltip:"Navigation",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},position:{display:{type:"socket",direction:"horizontal"},type:"string",enum:["outside-1","outside-2","inside-1","inside-2"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"scale",min:10,max:400,display:{type:"range-control"}},colors:{display:{type:"settings-color-picker",format:"multiple"},title:"color",type:"array",items:{type:"string"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},imageCaption:{title:"Caption",icon:"text-icon",tooltip:"Caption",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},alignment:{type:"string",display:{type:"align-grid"},enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},linkColor:{title:"Link",type:"string",display:{type:"settings-color-picker",format:"single"}},linkHoverColor:{title:"Link Hov",type:"string",display:{type:"settings-color-picker",format:"single"}}}}},default:{triggers:{triggersList:{click:!1,drag:!0},autoPlay:null},controls:{isActive:!0,arrowsImgUrl:null,offset:{x:0,y:0},scale:100,color:"#000000",hover:"#cccccc",show:"always"},transition:{type:"slide",duration:"500ms",backgroundColor:null},pagination:{isActive:!0,scale:50,position:"outside-1",offset:{x:0,y:0},colors:["#cccccc","#cccccc","#000000"],hover:"#cccccc"},direction:"horiz",imageCaption:{offset:{x:0,y:0},isActive:!0,alignment:"middle-center",linkColor:"#cccccc",linkHoverColor:"#cccccc"}},displayRules:[{if:{name:"direction",value:"vert"},then:{name:"properties.pagination.properties.position.display.direction",value:"vertical"}},{if:{name:"transition.type",value:"fade in"},then:{name:"properties.transition.properties.backgroundColor.display.visible",value:!0}}]},content:{layoutBased:!1,type:"array",settings:{addItemFromFileExplorer:!0,defaultWidth:500},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{minWidth:58,maxWidth:108,type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},imageCaption:{placeholder:"Add Caption...",label:"Description",display:{type:"rich-text",minWidth:300,maxWidth:550}}},required:["image"]},default:[{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-1.png",name:"Slider-1.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-2.png",name:"Slider-2.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-3.png",name:"Slider-3.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]}]},styles:{layoutBased:!0,type:"object",properties:{imageCaption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right","justify"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase","capitalize"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"auto"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.02,lineHeight:.02},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}}},required:["settings","content","styles"]}},Go="ImageRevealSlider-module__imageRevealSlider___UE5Ob",Yo="ImageRevealSlider-module__image___Qjt-e",Xo="ImageRevealSlider-module__link___N-iLG",Ko="ImageRevealSlider-module__cursor___2U03d",Ke={imageRevealSlider:Go,image:Yo,link:Xo,cursor:Ko};function Kn(e,n,r){for(const t of r){const o=new Image;o.src=t.url;const l=t.width?Number.parseFloat(t.width):o.naturalWidth,i=o.naturalHeight/o.naturalWidth*l,s=l/2,a=i/2;if(e>=t.x-s&&e<=t.x+s&&n>=t.y-a&&n<=t.y+a)return!0}return!1}function en(e){return new Promise(n=>{const r=new Image;r.src=e,r.onload=()=>{n({width:r.naturalWidth,height:r.naturalHeight})}})}async function qo(e,n,r,t){let o,l;if(n==="custom"){o=r;const i=await en(e);l=i.height/i.width*o}else if(n==="random"){o=Math.random()*(t.max-t.min)+t.min;const i=await en(e);l=i.height/i.width*o}else{const i=await en(e);o=i.width,l=i.height}return{width:o,height:l,finalWidth:`${o}px`}}function Jo({settings:e,content:n,isEditor:r}){const[t,o]=V.useState(null),[l,i]=V.useState([]),[s,a]=V.useState(0),p=V.useRef(0),[c,w]=V.useState({x:0,y:0}),[v,b]=V.useState(1),[u,d]=V.useState("none"),C=V.useRef({x:0,y:0}),[S,g]=V.useState(!1),{sizeType:x,imageWidth:M,randomRangeImageWidth:B}=e.imageSize,{revealPosition:E,visible:y}=e.position,{cursorType:I,target:k,defaultCursorScale:F,defaultCursor:N,hoverCursorScale:D,hoverCursor:z}=e.cursor;V.useEffect(()=>{if(!t)return;const m=(T,_)=>{const O=t.getBoundingClientRect(),X=T-O.left,ie=_-O.top;if(w({x:X,y:ie}),I==="system"){d("none"),b(1);return}const ne=X,re=ie,A=document.elementFromPoint(O.left+ne,O.top+re);if(A&&A.closest("a")){d("none"),b(1);return}const q=Kn(ne,re,l)||k==="area"?{img:z??"none",scale:D}:{img:N??"none",scale:F};d(q.img),b(q.scale)},j=T=>{T.stopPropagation(),C.current={x:T.clientX,y:T.clientY},m(T.clientX,T.clientY)},L=()=>{S&&m(C.current.x,C.current.y)};return t.addEventListener("mousemove",j),window.addEventListener("scroll",L,!0),()=>{t.removeEventListener("mousemove",j),window.removeEventListener("scroll",L,!0)}},[t,S,c,I,k,z,N,D,F,l]),V.useEffect(()=>{S||(d("none"),b(0))},[S]);const U=async(m,j,L,T={})=>{const{width:_,height:O,finalWidth:X}=await qo(m.image.url,x,M,B);let ie=0,ne=0;E==="same"?(ie=j/2,ne=L/2):(ie=T.x??Math.random()*j,ne=T.y??Math.random()*L);const re=Math.min(Math.max(ie,_/2),j-_/2),A=Math.min(Math.max(ne,O/2),L-O/2);return{id:p.current++,url:m.image.url,link:m.link,name:m.image.name,x:re,y:A,width:X}};V.useEffect(()=>{if(!t||n.length===0)return;const m=t.getBoundingClientRect(),j=m.width,L=m.height,T=[];(async()=>{const O=n[0],X=await U(O,j,L);T.push(X),i(T),a(1)})()},[x,M,B,E,t]),V.useEffect(()=>{y==="last One"&&i(m=>m.length>0?[m[m.length-1]]:[])},[y]);const $=async m=>{if(!t)return;const j=t.getBoundingClientRect(),L=m.clientX-j.left,T=m.clientY-j.top;if(k==="image"&&!Kn(L,T,l))return;let _=0,O=0;E==="on Click"?(_=L,O=T):E==="same"?(_=j.width/2,O=j.height/2):(_=Math.random()*j.width,O=Math.random()*j.height);const X=n[s],ie=await U(X,j.width,j.height,{x:_,y:O});i(ne=>y==="all"?[...ne,ie]:[ie]),a(ne=>ne>=n.length-1?0:ne+1)};return h.jsxs("div",{ref:o,onClick:$,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),className:Ke.imageRevealSlider,style:{cursor:u==="none"?"default":"none"},children:[l.map(m=>h.jsx("div",{className:Ke.wrapper,style:{top:`${m.y}px`,left:`${m.x}px`,position:"absolute",transform:"translate(-50%, -50%)",width:m.width??"auto",height:"auto",cursor:u==="none"?"default":"none"},children:k==="area"&&m.link?h.jsx("a",{href:m.link,target:"_blank",className:Ke.link,children:h.jsx("img",{src:m.url,alt:m.name,className:Ke.image},m.id)}):h.jsx("img",{src:m.url,alt:m.name,className:Ke.image},m.id)},m.id)),S&&h.jsx("div",{className:Ke.cursor,style:{left:`${c.x}px`,top:`${c.y}px`,transform:`translate(-50%, -50%) scale(${v})`,backgroundImage:`url('${u}')`,backgroundSize:"cover",backgroundPosition:"center",position:"absolute",pointerEvents:"none"}})]})}const Zo={element:Jo,id:"control-image-reveal",name:"Click Gallery",preview:{type:"video",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7EQ3WSW43JG5YMC8B2HTPKT.mp4"},defaultSize:{width:"100%",height:"100%"},schema:{type:"object",properties:{settings:{layoutBased:!0,type:"object",display:{type:"settings-block"},properties:{imageSize:{title:"IMG SIZE",icon:"size",tooltip:"IMG SIZE",type:"object",properties:{sizeType:{type:"string",display:{type:"ratio-group"},enum:["as Is","custom","random"]},imageWidth:{type:"number",label:"W",display:{type:"numeric-input",visible:!1}},randomRangeImageWidth:{type:"object",display:{type:"random-range-controls",visible:!1},properties:{min:{type:"number"},max:{type:"number"}}}}},cursor:{title:"cursor",icon:"cursor",tooltip:"cursor",type:"object",properties:{cursorType:{type:"string",display:{type:"ratio-group"},enum:["system","custom"]},target:{type:"string",title:"Target",display:{type:"ratio-group"},enum:["area","image"]},defaultCursor:{type:["string","null"],title:"Default",display:{type:"settings-image-input",visible:!1}},defaultCursorScale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control",visible:!1}},hoverCursor:{type:["string","null"],title:"Hover",display:{type:"settings-image-input",visible:!1}},hoverCursorScale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control",visible:!1}}}},position:{title:"position",icon:"transition",tooltip:"Position",type:"object",properties:{revealPosition:{type:"string",display:{type:"ratio-group"},enum:["random","same","on Click"]},visible:{type:"string",title:"Visible",display:{type:"ratio-group"},enum:["all","last One"]}}}},default:{imageSize:{sizeType:"custom",imageWidth:500,randomRangeImageWidth:{min:100,max:1e3}},cursor:{cursorType:"system",target:"area",defaultCursor:null,defaultCursorScale:2,hoverCursor:null,hoverCursorScale:2},position:{revealPosition:"random",visible:"all"}},displayRules:[{if:{name:"imageSize.sizeType",value:"custom"},then:{name:"properties.imageSize.properties.imageWidth.display.visible",value:!0}},{if:{name:"imageSize.sizeType",value:"random"},then:{name:"properties.imageSize.properties.randomRangeImageWidth.display.visible",value:!0}},{if:[{name:"cursor.target",value:"image"},{name:"cursor.cursorType",value:"custom"}],then:{name:"properties.cursor.properties.defaultCursor.display.visible",value:!0}},{if:[{name:"cursor.target",value:"image"},{name:"cursor.cursorType",value:"custom"},{name:"cursor.defaultCursor",value:null,isNotEqual:!0}],then:{name:"properties.cursor.properties.defaultCursorScale.display.visible",value:!0}},{if:{name:"cursor.cursorType",value:"custom"},then:{name:"properties.cursor.properties.hoverCursor.display.visible",value:!0}},{if:[{name:"cursor.cursorType",value:"custom"},{name:"cursor.hoverCursor",value:null,isNotEqual:!0}],then:{name:"properties.cursor.properties.hoverCursorScale.display.visible",value:!0}}]},content:{layoutBased:!1,type:"array",settings:{addItemFromFileExplorer:!0,defaultWidth:500},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{isObjectFitEditable:!1,minWidth:58,maxWidth:108,type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},link:{label:"URL",placeholder:"Enter link...",display:{type:"text-input",minWidth:300,maxWidth:550}}},required:["image"]},default:[{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQK9211QXBE9W284ZNKB8.png",name:"Slider-1.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQMFT72JD18WKP0Q2DVAT.png",name:"Slider-2.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQNEVRXPSRX5K1YTMJQY9.png",name:"Slider-3.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQP84JKRDT7WNWDQZR4Y9.png",name:"Slider-4.png"},link:""}]}}}},Qo="LightBox-module__hidden___9s-9x",ea="LightBox-module__heroImage___sTxNF",ta="LightBox-module__background___rm9ml",na="LightBox-module__editor___4ACaY",ra="LightBox-module__contentStyle___Bgnsq",ia="LightBox-module__imageStyle___tLIlB",oa="LightBox-module__imgWrapper___LuFUp",aa="LightBox-module__contain___8-yaS",la="LightBox-module__cover___hNvOG",sa="LightBox-module__caption___b6L2I",ca="LightBox-module__captionTextInner___rCGNH",ua="LightBox-module__lightboxSplide___XFuWC",pa="LightBox-module__arrow___iz38X",da="LightBox-module__arrowVertical___Zfz81",ma="LightBox-module__nextArrow___zkAQN",ga="LightBox-module__arrowInner___p48sW",fa="LightBox-module__arrowIcon___3VaFf",ha="LightBox-module__arrowImg___pNV88",va="LightBox-module__mirror___pjeXc",ya="LightBox-module__thumbsWrapper___GB-nU",ba="LightBox-module__thumbsContainerVertical___wttk5",_a="LightBox-module__thumbsContainer___osSma",wa="LightBox-module__thumbsAlignStart___MO6tY",Sa="LightBox-module__thumbsAlignCenter___Q4sUx",xa="LightBox-module__thumbsAlignEnd___p4y9R",Ca="LightBox-module__thumbItem___HvnF3",Aa="LightBox-module__closeButton___g2khP",Ia="LightBox-module__fadeIn___0m5GW",Ea="LightBox-module__slideInLeft___gPYwC",La="LightBox-module__slideInRight___S-pPp",Ta="LightBox-module__slideInTop___DFdAj",Ra="LightBox-module__slideInBottom___m27kZ",Na="LightBox-module__fadeOut___55qBR",ja="LightBox-module__slideOutLeft___NvU7P",ka="LightBox-module__slideOutRight___SK7eC",Oa="LightBox-module__slideOutTop___Vgg0z",Da="LightBox-module__slideOutBottom___nJ0Ef",za="LightBox-module__scaleSlide___vZriG",P={hidden:Qo,heroImage:ea,background:ta,editor:na,contentStyle:ra,imageStyle:ia,imgWrapper:oa,contain:aa,cover:la,caption:sa,captionTextInner:ca,lightboxSplide:ua,arrow:pa,arrowVertical:da,nextArrow:ma,arrowInner:ga,arrowIcon:fa,arrowImg:ha,mirror:va,thumbsWrapper:ya,thumbsContainerVertical:ba,thumbsContainer:_a,thumbsAlignStart:wa,thumbsAlignCenter:Sa,thumbsAlignEnd:xa,thumbItem:Ca,closeButton:Aa,fadeIn:Ia,slideInLeft:Ea,slideInRight:La,slideInTop:Ta,slideInBottom:Ra,fadeOut:Na,slideOutLeft:ja,slideOutRight:ka,slideOutTop:Oa,slideOutBottom:Da,scaleSlide:za},Lt=(e,n,r)=>{const t={},[o,l]=e.split("-");return o==="top"?(t.top="0",t.bottom="auto"):o==="middle"?(t.top="50%",t.bottom="auto"):o==="bottom"&&(t.top="auto",t.bottom="0"),l==="left"?(t.left="0",t.right="auto"):l==="center"?(t.left="50%",t.right="auto"):l==="right"&&(t.left="auto",t.right="0"),o==="middle"&&l==="center"?t.transform=`translate(calc(-50% + ${R(n.x,r)}), calc(-50% + ${R(n.y,r)}))`:o==="middle"?t.transform=`translate(${R(n.x,r)}, calc(-50% + ${R(n.y,r)}))`:l==="center"?t.transform=`translate(calc(-50% + ${R(n.x,r)}), ${R(n.y,r)})`:t.transform=`translate(${R(n.x,r)}, ${R(n.y,r)})`,t};function Pr(e){const n=window.getComputedStyle(e);return{top:parseFloat(n.paddingTop)||0,right:parseFloat(n.paddingRight)||0,bottom:parseFloat(n.paddingBottom)||0,left:parseFloat(n.paddingLeft)||0}}function qn(e){const n=e.getBoundingClientRect(),r=Pr(e),t=Math.max(0,n.width-r.left-r.right),o=Math.max(0,n.height-r.top-r.bottom),l=e.naturalWidth,i=e.naturalHeight,s=t/o,a=l/i;let p,c;a>s?(p=t,c=t/a):(c=o,p=o*a);const w=n.left+r.left,v=n.top+r.top,b=(t-p)/2+w,u=(o-c)/2+v;return{x:b,y:u,width:p,height:c}}function Jn(e){const n=e.getBoundingClientRect(),r=Pr(e);return{left:n.left+r.left,right:n.right-r.right,top:n.top+r.top,bottom:n.bottom-r.bottom}}function Zn(e){const n=e.match(/rgba?\(([^)]+)\)/);if(n){const t=n[1].split(",").map(o=>parseFloat(o.trim()));return t.length===4?t[3]:1}const r=e.match(/^#([0-9a-fA-F]{8})$/);if(r){const t=r[1].substring(6,8);return parseInt(t,16)/255}return e.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/),1}function Pa(e,n){const r=(()=>{if(e==="fade in")return P.fadeIn;if(e==="slide in"||e==="mix")switch(n){case"left":return P.slideInLeft;case"right":return P.slideInRight;case"top":return P.slideInTop;case"bottom":return P.slideInBottom;default:return P.slideInRight}return P.fadeIn})(),t=(()=>{if(e==="fade in"||e==="mix")return P.fadeIn;if(e==="slide in")switch(n){case"left":return P.slideInLeft;case"right":return P.slideInRight;case"top":return P.slideInTop;case"bottom":return P.slideInBottom;default:return P.slideInRight}return P.fadeIn})(),o=(()=>{if(e==="fade in"||e==="mix")return P.fadeOut;if(e==="slide in")switch(n){case"left":return P.slideOutLeft;case"right":return P.slideOutRight;case"top":return P.slideOutTop;case"bottom":return P.slideOutBottom;default:return P.slideOutRight}return P.fadeOut})(),l=(()=>{if(e==="fade in")return P.fadeOut;if(e==="slide in"||e==="mix")switch(n){case"left":return P.slideOutLeft;case"right":return P.slideOutRight;case"top":return P.slideOutTop;case"bottom":return P.slideOutBottom;default:return P.slideOutRight}return P.fadeOut})();return{appearClass:r,backdropAppearClass:t,backdropDisappearClass:o,disappearClass:l}}const Ba=({settings:e,content:n,styles:r,portalId:t,activeEvent:o,isEditor:l})=>{const[i,s]=V.useState(!1),{url:a}=e.thumbnailBlock.cover;return V.useEffect(()=>{o==="close"&&s(!1),o==="open"&&s(!0)},[o]),h.jsxs(h.Fragment,{children:[h.jsx("img",{src:a,alt:"Cover",className:P.heroImage,onClick:()=>s(!0)}),h.jsx(Wa,{isOpen:i,onClose:()=>s(!1),content:n,settings:e,lightboxStyles:r,portalId:t,isEditor:l})]})},Wa=({isOpen:e,onClose:n,content:r,lightboxStyles:t,settings:o,portalId:l,isEditor:i,metadata:s})=>{var W;const[a,p]=V.useState(0),[c,w]=V.useState(0),[v,b]=V.useState(!1),[u,d]=V.useState(!1),[C,S]=V.useState({}),g=V.useRef(null),x=V.useRef(null),M=V.useRef(null),B=V.useRef(!1),E=V.useRef(null),y=V.useRef(null),I=V.useRef(null),k=V.useRef(null),F=V.useRef(!1),N=V.useRef(null),[D,z]=V.useState(!1),{appear:U,triggers:$,slider:m,thumbnail:j,controls:L,area:T,caption:_,layout:O}=o.lightboxBlock,{appearClass:X,backdropAppearClass:ie,backdropDisappearClass:ne,disappearClass:re}=Pa(U.type,U.direction),A=(s==null?void 0:s.itemId)??null;V.useEffect(()=>{const f=()=>{setTimeout(()=>{var Y,Z;(Z=(Y=g.current)==null?void 0:Y.splide)==null||Z.refresh()},16)},H=()=>{w(Y=>Y+1)};return window.addEventListener("ArticleEditor.Layout:change",f),window.addEventListener("ArticleEditor.ComponentContent:change",H),()=>{window.removeEventListener("ArticleEditor.Layout:change",f),window.removeEventListener("ArticleEditor.ComponentContent:change",H)}},[]),V.useEffect(()=>{if(!e||!j.isActive){z(!1);return}const f=N.current;if(!f)return;const H=()=>{m.direction==="horiz"?z(f.scrollWidth>f.clientWidth):z(f.scrollHeight>f.clientHeight)};H();const Y=new ResizeObserver(H);return Y.observe(f),()=>Y.disconnect()},[e,j.isActive,r.length,C,m.direction]);const q=V.useCallback(()=>{const f=window.matchMedia("(max-width: 768px)").matches,H=Zn(T.color);f&&!i&&H>.9&&(document.body.style.backgroundColor=""),b(!0),B.current=!0;const Y=Z=>{Z.target===E.current&&Z.animationName&&(E.current&&y.current&&E.current.removeEventListener("animationend",y.current),y.current=null,B.current&&(B.current=!1,n()),b(!1))};E.current&&(y.current=Y,E.current.addEventListener("animationend",Y))},[n,T.color,i]),ve=(f,H,Y)=>{var Z,ee;if(f){if($.type==="click"&&$.switch==="image")$.repeat==="close"&&a===r.length-1?q():(Z=g.current)==null||Z.go("+1");else if($.type==="click"&&$.switch==="50/50"){const Q=f.getBoundingClientRect(),K=H-Q.left,le=Y-Q.top,fe=Q.width,oe=Q.height;let de;m.direction==="horiz"?de=K<fe/2?"-1":"+1":de=le<oe/2?"-1":"+1",(ee=g.current)==null||ee.go(de)}}},se=f=>{if(F.current){F.current=!1;return}const H=r[a],Y=(H==null?void 0:H.image.objectFit)==="cover";let Z,ee;if("changedTouches"in f&&f.changedTouches.length>0)Z=f.changedTouches[0].clientX,ee=f.changedTouches[0].clientY;else if("clientX"in f)Z=f.clientX,ee=f.clientY;else return;let Q;if(Y&&M.current){const K=Jn(M.current);Q=Z>=K.left&&Z<=K.right&&ee>=K.top&&ee<=K.bottom}else{const K=M.current?qn(M.current):null;if(!K){f.target===f.currentTarget&&q();return}Q=Z>=K.x&&Z<=K.x+K.width&&ee>=K.y&&ee<=K.y+K.height}Q?ve(M.current,Z,ee):q()},ge=f=>{const H=f.target;(H.classList.contains(P.thumbsWrapper)||H.classList.contains(P.thumbsContainer))&&se(f)};V.useEffect(()=>{if(!e)return;const f=H=>{var Y,Z;if(H.key==="Escape"){q();return}if(H.key==="ArrowRight"){p(ee=>(ee+1)%Math.max(r.length,1)),(Y=g.current)==null||Y.go("+1");return}H.key==="ArrowLeft"&&(p(ee=>(ee-1+Math.max(r.length,1))%Math.max(r.length,1)),(Z=g.current)==null||Z.go("-1"))};return window.addEventListener("keydown",f),()=>{window.removeEventListener("keydown",f)}},[e,q,r.length]),V.useEffect(()=>{if(e){if(p(0),w(H=>H+1),B.current=!1,b(!1),d(!1),S({}),!A)return;const f=new CustomEvent("page-overlay",{detail:{itemId:A}});window.dispatchEvent(f)}return()=>{E.current&&y.current&&(E.current.removeEventListener("animationend",y.current),y.current=null),d(!1)}},[e,A]),V.useEffect(()=>{x.current!==null&&x.current!==m.type&&w(f=>f+1),x.current=m.type},[m.type]),V.useEffect(()=>{if(!e)return;const f=document.body.style.overflow,H=window.matchMedia("(max-width: 768px)").matches,Y=Zn(T.color);document.body.style.overflow="hidden",d(!1);const Z=Q=>{Q.target===E.current&&!B.current&&Q.animationName&&(H&&!i&&Y>.9&&(document.body.style.backgroundColor=T.color),d(!0),E.current&&I.current&&E.current.removeEventListener("animationend",I.current),I.current=null)};E.current&&(I.current=Z,E.current.addEventListener("animationend",Z));const ee=Q=>{const K=Q.target;K&&(K.closest(`.${P.thumbsWrapper}`)||K.closest(`.${P.thumbsContainer}`))||m.type!=="slide"&&Q.preventDefault()};return document.addEventListener("touchmove",ee,{passive:!1}),()=>{document.body.style.overflow=f,document.removeEventListener("touchmove",ee),E.current&&I.current&&(E.current.removeEventListener("animationend",I.current),I.current=null),d(!1)}},[e,i,T.color,m.type]),V.useEffect(()=>{if(!e)return;const f=H=>{var Z,ee;if(B.current){H.stopPropagation();return}if(F.current){F.current=!1;return}const Y=H.target;if(!(Y&&(Y.closest(`.${P.thumbsContainer}`)||Y.closest(`.${P.thumbItem}`)))){if(m.type==="slide"&&$.type==="drag"&&((ee=(Z=g.current)==null?void 0:Z.splide)!=null&&ee.root)){const Q=g.current.splide.root;if(Y&&(Q.contains(Y)||Q===Y))return}if(H.touches.length===0&&H.changedTouches.length>0){const Q=r[a],K=(Q==null?void 0:Q.image.objectFit)==="cover",le=H.changedTouches[0];let fe;if(K&&M.current){const oe=Jn(M.current);fe=le.clientX>=oe.left&&le.clientX<=oe.right&&le.clientY>=oe.top&&le.clientY<=oe.bottom}else{const oe=M.current?qn(M.current):null;if(!oe)return;fe=le.clientX>=oe.x&&le.clientX<=oe.x+oe.width&&le.clientY>=oe.y&&le.clientY<=oe.y+oe.height}if(!fe){H.stopPropagation(),B.current=!0;const oe=de=>{de.stopPropagation(),de.preventDefault(),document.removeEventListener("click",oe,!0)};document.addEventListener("click",oe,!0),q()}}}};return document.addEventListener("touchend",f,{passive:!0}),()=>{document.removeEventListener("touchend",f)}},[e,q,a,r]);const Xe=(m.type==="scale"||m.type==="fade")&&m.direction==="vert"&&$.type==="drag";V.useEffect(()=>{var de,At;if(!e||!Xe||!((At=(de=g.current)==null?void 0:de.splide)!=null&&At.root))return;const f=g.current.splide.root,H=30,Y=(te,me)=>{if(k.current){const Te=Math.abs(te-k.current.x),It=Math.abs(me-k.current.y);(Te>0||It>0)&&(F.current=!0)}},Z=te=>{k.current&&(te.preventDefault(),Y(te.clientX,te.clientY))},ee=te=>{k.current&&te.touches.length>0&&(te.preventDefault(),Y(te.touches[0].clientX,te.touches[0].clientY))},Q=(te,me)=>{if(!k.current||!g.current){k.current=null;return}const Te=Math.abs(te-k.current.x),It=Math.abs(me-k.current.y);It>H&&It>Te&&g.current.go(me<k.current.y?"+1":"-1"),k.current=null},K=te=>{k.current&&Q(te.clientX,te.clientY),document.removeEventListener("pointerup",K),document.removeEventListener("pointercancel",K),document.removeEventListener("pointermove",Z)},le=te=>{if(k.current){if(te.changedTouches.length>0){const me=te.changedTouches[0];Q(me.clientX,me.clientY)}document.removeEventListener("touchend",le),document.removeEventListener("touchcancel",le),document.removeEventListener("touchmove",ee)}},fe=te=>{k.current={x:te.clientX,y:te.clientY},F.current=!1,document.addEventListener("pointermove",Z,{passive:!1}),document.addEventListener("pointerup",K),document.addEventListener("pointercancel",K)},oe=te=>{te.touches.length>0&&(k.current={x:te.touches[0].clientX,y:te.touches[0].clientY},F.current=!1,document.addEventListener("touchmove",ee,{passive:!1}),document.addEventListener("touchend",le),document.addEventListener("touchcancel",le))};return f.addEventListener("pointerdown",fe),f.addEventListener("touchstart",oe),()=>{f.removeEventListener("pointerdown",fe),f.removeEventListener("touchstart",oe),document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",K),document.removeEventListener("pointercancel",K),document.removeEventListener("touchmove",ee),document.removeEventListener("touchend",le),document.removeEventListener("touchcancel",le),k.current=null,F.current=!1}},[e,Xe,c]);const lt={backgroundColor:T.color,backdropFilter:`blur(${T.blur}px)`,animationDuration:`${parseInt(U.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"};return document.getElementById(l)?Br.createPortal(h.jsxs(h.Fragment,{children:[h.jsx("div",{ref:i?null:E,className:ae(P.background,v?ne:ie,{[P.editor]:i},{[P.hidden]:!e}),style:{...lt,...u&&!i&&!v?{position:"absolute"}:{}}}),h.jsxs("div",{ref:i?E:null,className:ae(P.contentStyle,v?re:X,{[P.editor]:i},{[P.hidden]:!e}),style:{animationDuration:`${parseInt(U.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"},children:[h.jsx(Nn,{onMove:f=>p(f.index),ref:g,className:P.lightboxSplide,options:{arrows:!1,speed:m.duration?parseInt(m.duration):500,direction:m.direction==="horiz"||m.type==="fade"||m.type==="scale"?"ltr":"ttb",pagination:!1,drag:$.type==="drag"&&!Xe,perPage:1,width:"100%",height:"100%",type:m.type==="fade"||m.type==="scale"?"fade":"loop",padding:0,rewind:$.repeat!=="close",start:0},style:{"--splide-speed":m.duration},children:r.map((f,H)=>{const Y=Lt(O.position,O.offset,i),Z=`${R(O.padding.top,i)} ${R(O.padding.right,i)} ${R(O.padding.bottom,i)} ${R(O.padding.left,i)}`,ee=m.type==="scale"?(()=>{const{transform:Q,...K}=Y;return{...K,position:"absolute",padding:Z,boxSizing:"border-box","--position-transform":Q||"none"}})():{...Y,position:"absolute",padding:Z,boxSizing:"border-box"};return h.jsx(jn,{children:h.jsx("div",{className:P.imgWrapper,onClick:se,children:h.jsx("img",{ref:H===a?M:null,className:ae(P.imageStyle,{[P.contain]:f.image.objectFit==="contain",[P.cover]:f.image.objectFit==="cover",[P.scaleSlide]:m.type==="scale"}),src:f.image.url,alt:f.image.name??"",style:{...ee,pointerEvents:f.image.objectFit==="contain"?"none":"auto"}})})},H)})},c),L.isActive&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:ae(P.arrow,{[P.arrowVertical]:m.direction==="vert"}),style:{color:L.color,"--arrow-hover-color":L.hover},children:h.jsxs("button",{className:P.arrowInner,style:{transform:`translate(${R(L.offset.x,i)}, ${R(L.offset.y*(m.direction==="horiz"?1:-1),i)}) scale(${L.scale}) rotate(${m.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var f;return(f=g.current)==null?void 0:f.go("-1")},"aria-label":"Previous",children:[L.arrowsImgUrl&&h.jsx($e,{url:L.arrowsImgUrl,fill:L.color,hoverFill:L.hover,className:ae(P.arrowImg,P.mirror)}),!L.arrowsImgUrl&&h.jsx(Qn,{color:L.color,className:ae(P.arrowIcon,P.arrowImg,P.mirror)})]})}),h.jsx("div",{className:ae(P.arrow,P.nextArrow,{[P.arrowVertical]:m.direction==="vert"}),style:{color:L.color,"--arrow-hover-color":L.hover},children:h.jsxs("button",{className:P.arrowInner,style:{transform:`translate(${R(L.offset.x*(m.direction==="horiz"?-1:1),i)}, ${R(L.offset.y,i)}) scale(${L.scale}) rotate(${m.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var f;return(f=g.current)==null?void 0:f.go("+1")},"aria-label":"Next",children:[L.arrowsImgUrl&&h.jsx($e,{url:L.arrowsImgUrl,fill:L.color,hoverFill:L.hover,className:P.arrowImg}),!L.arrowsImgUrl&&h.jsx(Qn,{color:L.color,className:ae(P.arrowIcon,P.arrowImg)})]})})]}),T.closeIconUrl&&(()=>{const f=Lt(T.closeIconAlign,T.closeIconOffset,i),H=`scale(${T.closeIconScale})`,Y=f.transform?`${f.transform} ${H}`:H;return h.jsx("button",{className:P.closeButton,style:{...f,transform:Y},onClick:q,"aria-label":"Close lightbox",children:h.jsx($e,{url:T.closeIconUrl,fill:T.closeIconColor??"#000000",hoverFill:T.closeIconHover??"#cccccc"})})})(),_&&_.isActive&&t.imageCaption&&((W=r[a])==null?void 0:W.imageCaption)&&(()=>{const{widthSettings:f,fontSettings:H,letterSpacing:Y,textAlign:Z,wordSpacing:ee,fontSizeLineHeight:Q,textAppearance:K,color:le}=t.imageCaption;return h.jsx("div",{className:P.caption,style:{...Lt(_.alignment,_.offset,i),fontFamily:H.fontFamily,fontWeight:H.fontWeight,fontStyle:H.fontStyle,width:f.sizing==="auto"?"max-content":R(f.width,i),letterSpacing:R(Y,i),wordSpacing:R(ee,i),textAlign:Z,fontSize:R(Q.fontSize,i),lineHeight:R(Q.lineHeight,i),textTransform:K.textTransform??"none",textDecoration:K.textDecoration??"none",fontVariant:K.fontVariant??"normal",color:le},onClick:fe=>fe.stopPropagation(),children:h.jsx("div",{"data-styles":"imageCaption",className:P.captionTextInner,style:{"--link-color":_.linkColor,"--link-hover-color":_.linkHoverColor},children:h.jsx(Bt,{content:r[a].imageCaption})})})})(),j.isActive&&(()=>{const[f,H]=j.position.split("-"),Y=m.direction==="horiz"?`${f}-left`:j.position,Z=Lt(Y,j.offset,i),ee=()=>{if(m.direction==="horiz"){if(H==="left")return"flex-start";if(H==="center")return"center";if(H==="right")return"flex-end"}else{if(f==="top")return"flex-start";if(f==="middle")return"center";if(f==="bottom")return"flex-end"}return"flex-start"};return h.jsx("div",{ref:N,className:P.thumbsWrapper,onClick:Q=>ge(Q),style:{position:i?"absolute":"fixed",...Z,...m.direction==="horiz"?{maxWidth:"100vw",width:"100%",overflowX:"auto",overflowY:"hidden"}:{maxHeight:"100vh",overflowY:"auto",overflowX:"hidden"}},children:h.jsx("div",{className:ae(P.thumbsContainer,{[P.thumbsContainerVertical]:m.direction==="vert",[P.thumbsAlignStart]:j.align==="start",[P.thumbsAlignCenter]:j.align==="center",[P.thumbsAlignEnd]:j.align==="end"}),style:{gap:R(j.grid.gap,i),justifyContent:D?"flex-start":ee()},children:r.map((Q,K)=>{const le=K===a,fe=C[K],de=j.grid.size*(le?j.activeState.scale:1),At=()=>{if(j.fit!=="fit")return{};if(!fe)return m.direction==="horiz"?{height:R(de,i)}:{width:R(de,i)};const te=fe.width/fe.height;if(m.direction==="horiz"){const me=de,Te=me*te;return{width:R(Te,i),height:R(me,i)}}else{const me=de,Te=me/te;return{width:R(me,i),height:R(Te,i)}}};return h.jsx("button",{className:P.thumbItem,style:{...m.direction==="horiz"&&j.fit!=="fit"?{height:R(de,i)}:{},...m.direction==="vert"&&j.fit!=="fit"?{width:R(de,i)}:{},...j.fit==="cover"?{width:R(de,i),height:R(de,i)}:{},...At(),transition:le?"all 0.25s ease-out":"none",opacity:le?j.activeState.opacity/100:j.opacity/100,"--thumb-hover":j.activeState.opacity/100},onClick:te=>{var me;te.stopPropagation(),p(K),(me=g.current)==null||me.go(K)},onMouseEnter:()=>{var te;j.triggers==="hov"&&((te=g.current)==null||te.go(K))},children:h.jsx("img",{src:Q.image.url,alt:Q.image.name??"",onLoad:te=>{const me=te.currentTarget;me.naturalWidth&&me.naturalHeight&&S(Te=>({...Te,[K]:{width:me.naturalWidth,height:me.naturalHeight}}))},style:{objectFit:j.fit==="cover"?"cover":"contain",...j.fit==="fit"?{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}:{},...j.fit==="cover"?{width:"100%",height:"100%"}:{}}})},`${Q.image.name}-${K}`)})})})})()]})]}),document.getElementById(l)):null};function Qn({color:e,className:n}){return h.jsx("svg",{viewBox:"0 0 10 18",className:n,children:h.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:h.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:e,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const Fa={element:Ba,id:"lightbox",name:"Lightbox",preview:{type:"video",url:"https://cdn.cntrl.site/component-assets/lightbox.mp4"},defaultSize:{width:440,height:550},schema:{type:"object",properties:{settings:{layoutBased:!0,type:"object",properties:{thumbnailBlock:{display:{type:"settings-block",triggerEvent:"close"},type:"object",properties:{cover:{title:"COVER",icon:"cover",tooltip:"Cover Image",type:"object",properties:{url:{type:"string",display:{type:"cover-image-input"}}}}}},lightboxBlock:{display:{type:"settings-block",triggerEvent:"open"},type:"object",properties:{appear:{title:"APPEAR",icon:"transition",tooltip:"Appearance",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide in","fade in","mix"]},duration:{type:"string",label:"T",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]},direction:{type:"string",title:"From",display:{type:"direction-control"},enum:["top","left","right","bottom"]}}},triggers:{title:"TRIGGERS",icon:"target",tooltip:"Triggers",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["click","drag"]},switch:{type:"string",display:{type:"ratio-group"},enum:["image","50/50"]},repeat:{type:"string",title:"Repeat",display:{visible:!1,type:"ratio-group"},enum:["close","loop"]}}},slider:{title:"SLIDER",icon:"horizontal-resize",tooltip:"Slider",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide","fade","scale"]},direction:{type:"string",display:{type:"ratio-group"},enum:["horiz","vert"]},duration:{type:"string",label:"T",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]}}},thumbnail:{title:"THUMB",icon:"thumbnail",tooltip:"Thumbnail",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},position:{display:{type:"align-grid"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},fit:{type:"string",display:{type:"ratio-group"},enum:["cover","fit"]},align:{type:"string",title:"Align",display:{type:"align-group",direction:"horizontal"},enum:["start","center","end"]},triggers:{type:"string",title:"Triggers",display:{type:"ratio-group",direction:"horizontal"},enum:["clk","hov"]},grid:{type:"object",title:"Grid",display:{type:"group"},properties:{size:{type:"number",label:"Box",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},gap:{type:"number",label:"Gap",scalingEnabled:!0,min:0,display:{type:"numeric-input"}}}},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},opacity:{type:"number",title:"Opacity",label:"icon:opacity",min:0,max:100,step:1,display:{type:"numeric-input"}},activeState:{type:"object",title:"ACTIVE",display:{type:"group"},properties:{scale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control"}},opacity:{type:"number",title:"Opacity",label:"icon:opacity",min:0,max:100,step:1,display:{type:"numeric-input"}}}}}},layout:{title:"LAYOUT",icon:"layout",tooltip:"Layout",type:"object",properties:{position:{display:{type:"align-grid"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},padding:{type:"object",title:"Padding",display:{type:"padding-controls"},properties:{top:{min:0,step:1,type:"number"},left:{min:0,step:1,type:"number"},right:{min:0,step:1,type:"number"},bottom:{min:0,step:1,type:"number"}}}}},controls:{title:"CONTROLS",icon:"controls",tooltip:"Controls",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},offset:{title:"Offset",type:"object",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"Scale",min:.5,max:5,step:.1,display:{type:"range-control"}},color:{title:"Color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"Hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},area:{title:"AREA",icon:"area",tooltip:"Area",type:"object",properties:{color:{type:"string",display:{type:"settings-color-picker",format:"single"}},blur:{type:"number",label:"icon:blur",display:{type:"numeric-input"}},closeIconUrl:{type:["string","null"],title:"Close Icon",display:{type:"settings-image-input"}},closeIconAlign:{display:{type:"align-grid",direction:"horizontal"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},closeIconScale:{type:"number",title:"Scale",min:.5,max:5,step:.1,display:{type:"range-control"}},closeIconOffset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},closeIconColor:{title:"Color",type:"string",display:{type:"settings-color-picker",format:"single"}},closeIconHover:{title:"Hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},caption:{title:"DESC",icon:"text-icon",tooltip:"Description",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},alignment:{type:"string",display:{type:"align-grid"},enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{title:"Offset",type:"object",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},linkColor:{title:"Link",type:"string",display:{type:"settings-color-picker",format:"single"}},linkHoverColor:{title:"Link Hov",type:"string",display:{type:"settings-color-picker",format:"single"}}}}}}},default:{d:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"slide in",duration:"1000ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"vert",duration:"1000ms"},thumbnail:{isActive:!0,position:"middle-left",fit:"fit",align:"start",triggers:"hov",grid:{size:.05,gap:.01},offset:{x:.01,y:0},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:0,bottom:.06,left:0}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},linkColor:"#cccccc",linkHoverColor:"#cccccc"}}},m:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"fade in",duration:"500ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"horiz",duration:"1000ms"},thumbnail:{isActive:!0,position:"bottom-center",fit:"fit",align:"start",triggers:"hov",grid:{size:.1,gap:.05},offset:{x:.01,y:-.05},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:.05,bottom:.06,left:.05}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},hover:"#cccccc"}}},t:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"fade in",duration:"500ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"vert",duration:"1000ms"},thumbnail:{isActive:!0,position:"middle-left",fit:"fit",align:"start",triggers:"hov",grid:{size:.05,gap:.01},offset:{x:.03,y:0},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:.1,bottom:.06,left:.1}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},hover:"#cccccc"}}}},displayRules:[{if:{name:"lightboxBlock.appear.type",value:"slide in"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!0}},{if:{name:"lightboxBlock.slider.direction",value:"vert"},then:{name:"properties.lightboxBlock.properties.thumbnail.properties.align.display.direction",value:"vertical"}},{if:{name:"lightboxBlock.appear.type",value:"mix"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!0}},{if:{name:"lightboxBlock.appear.type",value:"fade in"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!1}},{if:[{name:"lightboxBlock.triggers.type",value:"click"},{name:"lightboxBlock.triggers.switch",value:"image"}],then:{name:"properties.lightboxBlock.properties.triggers.properties.repeat.display.visible",value:!0}}]},content:{layoutBased:!1,type:"array",settings:{addItemFromFileExplorer:!0,defaultWidth:500},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input",minWidth:58,maxWidth:108},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},imageCaption:{label:"Description",placeholder:"Add Caption...",display:{type:"rich-text",minWidth:300,maxWidth:550}}},required:["image"]},default:[{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/2.jpg",name:"Slider-1.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/3.jpg",name:"Slider-2.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/4.jpg",name:"Slider-3.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]}]},styles:{layoutBased:!0,type:"object",properties:{imageCaption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right","justify"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase","capitalize"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"auto"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.02,lineHeight:.02},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}}},required:["settings","content","styles"]}},Ma="Testimonials-module__container___H14Dc",Va="Testimonials-module__gradientCorners___5yVCO",Ha="Testimonials-module__wrapper___eCRwv",$a="Testimonials-module__wrapperAutoplayOff___9g73H",Ua="Testimonials-module__wrapperDropShadow___gOkGi",Ga="Testimonials-module__cover___5I7Fh",Ya="Testimonials-module__elementsOverlay___5BTW9",Xa="Testimonials-module__image___nHD1Y",Ka="Testimonials-module__icon___SstqT",qa="Testimonials-module__arrow___NO6BN",Ja="Testimonials-module__nextArrow___L3G-W",Za="Testimonials-module__arrowInner___GSjnA",Qa="Testimonials-module__arrowIcon___fw7vy",el="Testimonials-module__arrowImg___7R9fl",tl="Testimonials-module__mirror___JkFna",ue={container:Ma,gradientCorners:Va,wrapper:Ha,wrapperAutoplayOff:$a,wrapperDropShadow:Ua,cover:Ga,elementsOverlay:Ya,image:Xa,icon:Ka,arrow:qa,nextArrow:Ja,arrowInner:Za,arrowIcon:Qa,arrowImg:el,mirror:tl},nl=e=>{if(!e)return 0;const n=e.match(/^(\d+)s$/);return n?parseInt(n[1],10)*1e3:0},rl=({settings:e,content:n,styles:r,isEditor:t})=>{var g,x,M,B,E,y,I,k,F,N,D,z,U,$,m,j,L,T,_,O,X,ie,ne;const o=V.useRef(null),{general:l,card:i}=e,{width:s}=i.dimensions,a=l.autoplay==="on",p=a?1:l.inView??n.length,c=l.move==="one"?1:p,w=a?1:c,v=a?e.general.speed?nl(e.general.speed):0:5e3,b=e.card.dropShadow.active==="on"?2*(e.card.dropShadow.blur+e.card.dropShadow.spread)+e.card.dropShadow.right:0,u=a?void 0:R(s*p+e.card.gap*(p-1)+i.borders.width*2*p+b,t??!1),d=`${l.autoplay}-${p}`,C=e.card.dropShadow.active==="on";C&&R(Math.max(e.card.dropShadow.blur+e.card.dropShadow.spread,e.card.dropShadow.right,e.card.dropShadow.down),t??!1);const S=R(i.dimensions.height,t??!1);return V.useEffect(()=>{var re;if((re=o.current)!=null&&re.splide){const A=o.current.splide;A.options={...A.options,autoplay:a,perMove:w,interval:a?v||5e3:0,rewind:!a,inView:a?void 0:n.length},A.refresh()}},[l.autoplay,a,w,v]),h.jsxs(h.Fragment,{children:[h.jsx("div",{className:ae(ue.container,e.card.hasGradientCorners==="gradient"&&ue.gradientCorners),style:{justifyContent:"center"},children:h.jsx("div",{className:ae(ue.wrapper,!a&&ue.wrapperAutoplayOff,C&&ue.wrapperDropShadow),style:{...u?{width:u}:{}},children:h.jsx(Nn,{ref:o,options:{type:"loop",fixedWidth:R(s+i.borders.width*2,t??!1),height:"100%",...e.general.autoplay==="off"&&{height:"100%"},arrows:!1,perMove:a?w:c,gap:R(e.card.gap,t??!1),padding:0,drag:!1,autoplay:a,speed:v,interval:v,rewind:!a,easing:"linear",direction:e.general.direction==="left"?"ltr":"rtl",pagination:!1,pauseOnHover:e.general.pause==="hover",pauseOnFocus:e.general.pause==="click"},children:n.map((re,A)=>{var q,ve,se,ge;return h.jsx(jn,{children:h.jsxs("div",{style:{padding:`${R(e.card.padding.top,t??!1)} ${R(e.card.padding.right,t??!1)} ${R(e.card.padding.bottom,t??!1)} ${R(e.card.padding.left,t??!1)}`,width:R(s+i.borders.width*2,t??!1),minHeight:S,height:S,borderRadius:R(e.card.corner,t??!1),border:`${R(e.card.borders.width,t??!1)} solid ${e.card.borders.color}`,boxSizing:"border-box",position:"relative",boxShadow:e.card.dropShadow.active==="on"?`${R(e.card.dropShadow.right,t??!1)} ${R(e.card.dropShadow.down,t??!1)} ${R(e.card.dropShadow.blur,t??!1)} ${R(e.card.dropShadow.spread,t??!1)} ${e.card.dropShadow.color}`:"none",...e.card.dropShadow.active==="on"&&{marginTop:R(e.card.dropShadow.blur+e.card.dropShadow.spread,t??!1),marginBottom:R(e.card.dropShadow.down+e.card.dropShadow.blur+e.card.dropShadow.spread,t??!1),marginLeft:R(e.card.dropShadow.blur+e.card.dropShadow.spread,t??!1),marginRight:R(e.card.dropShadow.right+e.card.dropShadow.blur+e.card.dropShadow.spread,t??!1)}},children:[((q=re.image)==null?void 0:q.url)&&h.jsx("img",{className:ue.image,src:(ve=re.image)==null?void 0:ve.url,alt:(se=re.image)==null?void 0:se.name,style:{objectFit:((ge=re.image)==null?void 0:ge.objectFit)||"cover",borderRadius:`${R(e.card.corner,t??!1)}`,height:S}}),h.jsx("div",{className:ue.cover,style:{background:e.card.bgColor,borderRadius:`${R(e.card.corner,t??!1)}`,height:S}}),h.jsx("div",{className:ue.elementsOverlay,style:{display:"flex",flexDirection:"column",inset:0,pointerEvents:"none"},children:(e.elements.elements.order??(Array.isArray(e.elements.elements.order)?e.elements.elements.order:["text","icon","caption"])).map((W,f)=>({key:W,order:f})).map(({key:W,order:f})=>{var H,Y;if(W==="icon")return h.jsx("img",{"data-controls":"elements.icon.margin.top",src:(H=re.icon)==null?void 0:H.url,alt:(Y=re.icon)==null?void 0:Y.name,className:ue.icon,style:{marginTop:R(e.elements.icon.margin.top,t??!1),transform:`scale(${e.elements.icon.scale/100})`,order:f,zIndex:f,pointerEvents:"auto"}},"icon");if(W==="text"&&r.imageCaption){const{widthSettings:Z,fontSettings:ee,letterSpacing:Q,textAlign:K,wordSpacing:le,fontSizeLineHeight:fe,textAppearance:oe,color:de}=r.imageCaption;return h.jsx("div",{"data-styles":"imageCaption","data-controls":"elements.text.margin.top",className:ue.caption,style:{marginTop:R(e.elements.text.margin.top,t??!1),fontFamily:ee.fontFamily,fontWeight:ee.fontWeight,fontStyle:ee.fontStyle,minHeight:R(e.elements.text.minHeight,t??!1),letterSpacing:R(Q,t),wordSpacing:R(le,t),textAlign:K,fontSize:R(fe.fontSize,t),lineHeight:R(fe.lineHeight,t),textTransform:oe.textTransform??"none",textDecoration:oe.textDecoration??"none",fontVariant:oe.fontVariant??"normal",color:de,order:f,zIndex:f,pointerEvents:"auto"},children:h.jsx(Bt,{content:re.imageCaption})},"text")}if(W==="caption"&&r.caption){const{widthSettings:Z,fontSettings:ee,letterSpacing:Q,textAlign:K,wordSpacing:le,fontSizeLineHeight:fe,textAppearance:oe,color:de}=r.caption;return h.jsx("div",{"data-styles":"caption","data-controls":"elements.caption.margin.top",className:ue.caption,style:{marginTop:R(e.elements.caption.margin.top,t??!1),fontFamily:ee.fontFamily,fontWeight:ee.fontWeight,fontStyle:ee.fontStyle,minHeight:R(e.elements.caption.minHeight,t??!1),letterSpacing:R(Q,t),wordSpacing:R(le,t),textAlign:K,fontSize:R(fe.fontSize,t),lineHeight:R(fe.lineHeight,t),textTransform:oe.textTransform??"none",textDecoration:oe.textDecoration??"none",fontVariant:oe.fontVariant??"normal",color:de,order:f,zIndex:f,pointerEvents:"auto"},children:h.jsx(Bt,{content:re.caption})},"caption")}return null})})]})},A)})},d)})}),((g=e.general.controls)==null?void 0:g.isActive)&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:ue.arrow,style:{color:(x=e.general.controls)==null?void 0:x.color,"--arrow-hover-color":(M=e.general.controls)==null?void 0:M.hover},children:h.jsxs("button",{className:ue.arrowInner,style:{transform:`translate(${R((B=e.general.controls)==null?void 0:B.offset.x,t??!1)}, ${R((E=e.general.controls)==null?void 0:E.offset.y,t??!1)}) scale(${((y=e.general.controls)==null?void 0:y.scale)/100})`},onClick:()=>{var re;return(re=o.current)==null?void 0:re.go(a?"+1":`+${c}`)},"aria-label":"Previous",children:[((I=e.general.controls)==null?void 0:I.arrowsImgUrl)&&h.jsx($e,{url:(k=e.general.controls)==null?void 0:k.arrowsImgUrl,fill:(F=e.general.controls)==null?void 0:F.color,hoverFill:(N=e.general.controls)==null?void 0:N.hover,className:ae(ue.arrowImg,ue.mirror)}),!((D=e.general.controls)!=null&&D.arrowsImgUrl)&&h.jsx(er,{color:(z=e.general.controls)==null?void 0:z.color,className:ae(ue.arrowIcon,ue.arrowImg,ue.mirror)})]})}),h.jsx("div",{className:ae(ue.arrow,ue.nextArrow),style:{color:(U=e.general.controls)==null?void 0:U.color,"--arrow-hover-color":($=e.general.controls)==null?void 0:$.hover},children:h.jsxs("button",{className:ue.arrowInner,style:{transform:`translate(${R(((m=e.general.controls)==null?void 0:m.offset.x)*-1,t??!1)}, ${R((j=e.general.controls)==null?void 0:j.offset.y,t??!1)}) scale(${((L=e.general.controls)==null?void 0:L.scale)/100})`},onClick:()=>{var re;return(re=o.current)==null?void 0:re.go(a?"-1":`-${c}`)},"aria-label":"Next",children:[((T=e.general.controls)==null?void 0:T.arrowsImgUrl)&&h.jsx($e,{url:(_=e.general.controls)==null?void 0:_.arrowsImgUrl,fill:(O=e.general.controls)==null?void 0:O.color,hoverFill:(X=e.general.controls)==null?void 0:X.hover,className:ue.arrowImg}),!((ie=e.general.controls)!=null&&ie.arrowsImgUrl)&&h.jsx(er,{color:(ne=e.general.controls)==null?void 0:ne.color,className:ae(ue.arrowIcon,ue.arrowImg)})]})})]})]})};function er({color:e,className:n}){return h.jsx("svg",{viewBox:"0 0 10 18",className:n,children:h.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:h.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:e,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const il={element:rl,id:"testimonials",name:"Testimonials",preview:{type:"video",url:"https://cdn.cntrl.site/component-assets/testimonials.mp4"},defaultSize:{width:700,height:300},schema:{type:"object",properties:{settings:{layoutBased:!0,type:"object",display:{type:"settings-block"},properties:{general:{icon:"thumbnail",type:"object",properties:{autoplay:{type:"string",title:"Autoplay",display:{type:"ratio-group",direction:"horizontal"},enum:["on","off"]},inView:{type:"number",title:"In View",min:1,display:{type:"numeric-input"}},alignment:{type:"string",title:"Alignment",display:{type:"align-group",direction:"vertical"},enum:["left","center","right"]},move:{type:"string",title:"Move",display:{type:"ratio-group",direction:"horizontal"},enum:["one","view"]},speed:{type:["string","null"],title:"Speed",display:{type:"step-selector"},enum:["1s","2s","3s","4s","5s","6s","7s","8s","9s","10s"]},direction:{type:"string",display:{type:"ratio-group"},enum:["left","right"]},pause:{title:"Pause on",type:"string",display:{type:"ratio-group"},enum:["hover","click","off"]},controls:{title:"controls",icon:"controls",tooltip:"Controls",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"scale",min:50,max:600,display:{type:"range-control"}},color:{title:"color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}}}},card:{icon:"card",type:"object",properties:{dimensions:{type:"object",title:"Size",display:{type:"group"},properties:{width:{type:"number",label:"W",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},height:{type:"number",label:"minH",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},gap:{type:"number",title:"Gap",scalingEnabled:!0,min:0,display:{type:"numeric-input"}},corner:{type:"number",title:"Corners",scalingEnabled:!0,min:0,label:"icon:border-radius",display:{type:"numeric-input"}},borders:{type:"object",title:"Borders",display:{type:"group"},properties:{width:{type:"number",label:"icon:border-width",scalingEnabled:!0,min:0,display:{type:"numeric-input"}},color:{type:"string",display:{type:"settings-color-picker",format:"single"}}}},bgColor:{title:"BG color",type:"string",display:{type:"settings-color-picker",format:"single"}},padding:{type:"object",title:"Padding",display:{type:"padding-controls"}},dropShadow:{type:"object",title:"Shadow",display:{type:"group"},properties:{active:{type:"string",title:"active",display:{type:"ratio-group",direction:"horizontal"},enum:["on","off"]},right:{type:"number",title:"Right",scalingEnabled:!0,display:{type:"numeric-input"}},down:{type:"number",title:"Down",scalingEnabled:!0,display:{type:"numeric-input"}},spread:{type:"number",title:"Spread",scalingEnabled:!0,display:{type:"numeric-input"}},blur:{type:"number",title:"Blur",scalingEnabled:!0,display:{type:"numeric-input"}},color:{title:"color",type:"string",display:{type:"settings-color-picker",format:"single"}}}},hasGradientCorners:{title:"Grad cor",type:"string",display:{type:"ratio-group"},enum:["gradient","none"]}}},elements:{title:"elements",icon:"star",type:"object",properties:{elements:{type:"array",display:{type:"order-selector"},items:{type:"string",enum:["text","icon","caption"]},default:{order:["text","icon","caption"],active:"text"}},text:{type:"object",display:{type:"group"},properties:{minHeight:{type:"number",title:"Min Height",scalingEnabled:!0,display:{type:"numeric-input"}},margin:{type:"object",title:"Margin",display:{type:"group",visible:!1},properties:{top:{type:"number",label:"Top",scalingEnabled:!0,display:{type:"numeric-input",visible:!1}}}}}},icon:{type:"object",display:{type:"group"},properties:{margin:{type:"object",title:"Margin",display:{type:"group",visible:!1},properties:{top:{type:"number",label:"Top",scalingEnabled:!0,display:{type:"numeric-input",visible:!1}}}},scale:{type:"number",title:"scale",min:50,max:600,display:{type:"range-control",visible:!1}}}},caption:{type:"object",display:{type:"group"},properties:{minHeight:{type:"number",title:"Min Height",scalingEnabled:!0,display:{type:"numeric-input"}},margin:{type:"object",title:"Margin",display:{type:"group",visible:!1},properties:{top:{type:"number",label:"Top",scalingEnabled:!0,display:{type:"numeric-input",visible:!1}}}}}}}}},default:{general:{autoplay:"off",move:"one",speed:"5s",direction:"left",pause:"off",controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:100,color:"#000000",hover:"#cccccc"}},card:{dimensions:{width:.15,height:.2},gap:.02,corner:.005,borders:{width:.001,color:"#000000"},bgColor:"rgba(255, 255, 255, 0.2)",padding:{top:0,right:0,bottom:0,left:0},dropShadow:{active:"on",right:0,down:0,spread:0,blur:0,color:"#000000"},hasGradientCorners:"gradient"},elements:{elements:["text","icon","caption"],active:"text",text:{minHeight:.01,margin:{top:0}},icon:{margin:{top:0},scale:100},caption:{minHeight:.01,margin:{top:0}}}},displayRules:[{if:{name:"general.autoplay",value:"off"},then:{name:"properties.general.properties.inView.display.visible",value:!0}},{if:{name:"general.autoplay",value:"off"},then:{name:"properties.general.properties.alignment.display.visible",value:!0}},{if:{name:"general.autoplay",value:"off"},then:{name:"properties.general.properties.move.display.visible",value:!0}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.inView.display.visible",value:!1}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.alignment.display.visible",value:!1}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.move.display.visible",value:!1}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.speed.display.visible",value:!0}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.direction.display.visible",value:!0}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.pause.display.visible",value:!0}},{if:{name:"general.autoplay",value:"off"},then:{name:"properties.general.properties.speed.display.visible",value:!1}},{if:{name:"general.autoplay",value:"off"},then:{name:"properties.general.properties.direction.display.visible",value:!1}},{if:{name:"general.autoplay",value:"off"},then:{name:"properties.general.properties.pause.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"text"},then:{name:"properties.elements.properties.text.properties.minHeight.display.visible",value:!0}},{if:{name:"elements.elements.active",value:"text"},then:{name:"properties.elements.properties.caption.properties.minHeight.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"caption"},then:{name:"properties.elements.properties.caption.properties.minHeight.display.visible",value:!0}},{if:{name:"elements.elements.active",value:"caption"},then:{name:"properties.elements.properties.caption.properties.minHeight.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"icon"},then:{name:"properties.elements.properties.text.properties.minHeight.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"icon"},then:{name:"properties.elements.properties.caption.properties.minHeight.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"icon"},then:{name:"properties.elements.properties.icon.properties.scale.display.visible",value:!0}}]},content:{layoutBased:!1,type:"array",settings:{addItemFromFileExplorer:!1,defaultWidth:500},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{minWidth:58,maxWidth:108,type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},icon:{type:"object",label:"Icon",display:{minWidth:58,maxWidth:108,type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},imageCaption:{placeholder:"Add Text...",label:"Text",display:{type:"rich-text",minWidth:300,maxWidth:550}},caption:{placeholder:"Add Caption...",label:"Caption",display:{type:"rich-text",minWidth:300,maxWidth:550}}},required:["image"]},default:[{image:{},icon:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01GJ2SPNXG3V5P35ZA35YM1JTW/articles-assets/01KFXFA89BHQHVAJNAZCJMWDA1.png",name:""},imageCaption:[{type:"paragraph",children:[{text:"Innovative solutions redefine connectivity, enhancing user experience through seamless digital integration and efficiency."}]}],caption:[{type:"paragraph",children:[{text:"CEO @ Company"}]}]},{image:{},icon:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01GJ2SPNXG3V5P35ZA35YM1JTW/articles-assets/01KFXFA89BHQHVAJNAZCJMWDA1.png",name:""},imageCaption:[{type:"paragraph",children:[{text:"In the realm of digital innovation, transformative algorithms redefine connectivity, propelling unprecedented technological advancements."}]}],caption:[{type:"paragraph",children:[{text:"CEO @ Company"}]}]},{image:{},icon:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01GJ2SPNXG3V5P35ZA35YM1JTW/articles-assets/01KFXFA89BHQHVAJNAZCJMWDA1.png",name:""},imageCaption:[{type:"paragraph",children:[{text:"Harnessing innovative algorithms, this paradigm shift enhances computational efficiency and optimizes data processing frameworks."}]}],caption:[{type:"paragraph",children:[{text:"CEO @ Company"}]}]}]},styles:{layoutBased:!0,type:"object",properties:{imageCaption:{dataName:"imageCaption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}},caption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"manual"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.01,lineHeight:.01},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"},caption:{widthSettings:{width:.13,sizing:"manual"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.01,lineHeight:.01},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}},required:["settings","content","styles"]}}},ol=[Uo,Zo,Fa,il];exports.components=ol;
6
+ */const Bo="RichTextRenderer-module__link___BWeZ2",Wo={link:Bo},Bt=({content:e})=>{const r=t=>t.map((n,o)=>n.type==="link"?f.jsx("a",{className:Wo.link,href:n.value,target:n.target,children:r(n.children)},o):f.jsx("span",{style:Fo(n),children:n.text},o));return f.jsx(f.Fragment,{children:e.map((t,n)=>{const o=t.children;return f.jsx("div",{children:r(o)},n)})})};function Fo(e){return{...e.fontFamily&&{fontFamily:e.fontFamily},...e.fontWeight&&{fontWeight:e.fontWeight},...e.fontStyle&&{fontStyle:e.fontStyle},...e.textDecoration&&{textDecoration:e.textDecoration},...e.textTransform&&{textTransform:e.textTransform},...e.fontVariant&&{fontVariant:e.fontVariant},...e.verticalAlign&&{verticalAlign:e.verticalAlign,lineHeight:"0px"}}}function k(e,r=!1){return r?`calc(var(--cntrl-article-width) * ${e})`:`${e*100}vw`}const Mo="SvgImage-module__svg___q3xE-",Ho="SvgImage-module__img___VsTm-",Yn={svg:Mo,img:Ho},$e=({url:e,fill:r="#000000",hoverFill:t="#CCCCCC",className:n=""})=>{const[o,l]=F.useState(!0);return F.useEffect(()=>{if(typeof window<"u"&&window.CSS){const i=CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")');l(i)}},[]),!e.endsWith(".svg")||!o?f.jsx("img",{src:e,alt:"",className:oe(Yn.img,n)}):f.jsx("span",{"data-supports-mask":o,className:oe(Yn.svg,n),style:{"--svg":`url(${e})`,"--fill":r,"--hover-fill":t}})},Vo={"top-left":U.topLeftAlignment,"top-center":U.topCenterAlignment,"top-right":U.topRightAlignment,"middle-left":U.middleLeftAlignment,"middle-center":U.middleCenterAlignment,"middle-right":U.middleRightAlignment,"bottom-left":U.bottomLeftAlignment,"bottom-center":U.bottomCenterAlignment,"bottom-right":U.bottomRightAlignment};function $o({settings:e,content:r,styles:t,isEditor:n}){const[o,l]=F.useState(null),{widthSettings:i,fontSettings:c,letterSpacing:s,textAlign:p,wordSpacing:a,fontSizeLineHeight:_,textAppearance:h,color:d}=t.imageCaption,[u,m]=F.useState(void 0),[C,A]=F.useState(null),[y,x]=F.useState(0),[H,B]=F.useState(0),{direction:L,transition:v,controls:S,pagination:N,imageCaption:W,triggers:I}=e,D=F.useRef(v.type),{x:P,y:G}=e.controls.offset,V=g=>{o&&o.go(g)};return F.useEffect(()=>{if(!C)return;const g=new ResizeObserver(j=>{if(!o)return;const[T]=j;m({width:Math.round(T.contentRect.width),height:Math.round(T.contentRect.height)})});return g.observe(C),()=>g.unobserve(C)},[C]),F.useEffect(()=>{!o||D.current===v.type||(B(g=>g+1),D.current=v.type)},[v.type]),f.jsx("div",{className:oe(U.wrapper,{[U.editor]:n}),ref:A,children:f.jsxs("div",{className:U.sliderInner,style:{width:u?u.width:"100%",height:u?u.height:"100%",backgroundColor:v.backgroundColor&&v.type==="fade in"?v.backgroundColor:"transparent"},children:[e.imageCaption.isActive&&f.jsx("div",{className:oe(U.captionBlock),children:f.jsx("div",{className:U.captionTextWrapper,children:r.map((g,j)=>f.jsx("div",{className:oe(U.captionText,Vo[W.alignment],{[U.withPointerEvents]:j===y&&n,[U.active]:j===y}),style:{fontFamily:c.fontFamily,fontWeight:c.fontWeight,fontStyle:c.fontStyle,width:i.sizing==="auto"?"max-content":k(i.width,n),letterSpacing:k(s,n),wordSpacing:k(a,n),textAlign:p,fontSize:k(_.fontSize,n),lineHeight:k(_.lineHeight,n),textTransform:h.textTransform??"none",textDecoration:h.textDecoration??"none",fontVariant:h.fontVariant??"normal",color:d,transitionDuration:v.duration?`${Math.round(parseInt(v.duration)/2)}ms`:"500ms"},children:f.jsx("div",{"data-styles":"imageCaption",className:U.captionTextInner,style:{"--link-hover-color":W.linkHoverColor,"--link-color":W.linkColor,position:"relative",top:k(W.offset.y,n),left:k(W.offset.x,n)},children:f.jsx(Bt,{content:g.imageCaption})})},j))})}),f.jsx(Nn,{onMove:g=>{x(g.index)},ref:l,options:{arrows:!1,speed:v.duration?parseInt(v.duration):500,autoplay:I.autoPlay!==null,...I.autoPlay!==null&&{interval:parseInt(I.autoPlay)*1e3},direction:L==="horiz"||v.type==="fade in"?"ltr":"ttb",pagination:!1,drag:I.triggersList.drag,perPage:1,width:u?u.width:"100%",height:u?u.height:"100%",type:v.type==="fade in"?"fade":"loop",rewind:!0},children:r.map((g,j)=>f.jsx(jn,{children:f.jsx("div",{className:U.sliderItem,children:f.jsx("div",{className:U.imgWrapper,children:f.jsx("img",{className:oe(U.sliderImage,{[U.contain]:g.image.objectFit==="contain",[U.cover]:g.image.objectFit==="cover"}),src:g.image.url,alt:g.image.name??""})})})},j))},H),S.isActive&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:oe(U.arrow,{[U.arrowVertical]:L==="vert",[U.hoverArrow]:S.show==="on hover"}),style:{color:S.color,"--arrow-hover-color":S.hover},children:f.jsxs("button",{onClick:()=>{V("-1")},className:U.arrowInner,style:{transform:`translate(${k(P,n)}, ${k(G*(L==="horiz"?1:-1),n)}) scale(${e.controls.scale/100}) rotate(${L==="horiz"?"0deg":"90deg"})`},children:[S.arrowsImgUrl&&f.jsx($e,{url:S.arrowsImgUrl,fill:S.color,hoverFill:S.hover,className:oe(U.arrowImg,U.mirror)}),!S.arrowsImgUrl&&f.jsx(Xn,{color:S.color,className:oe(U.arrowIcon,U.arrowImg,U.mirror)})]})}),f.jsx("div",{className:oe(U.arrow,U.nextArrow,{[U.arrowVertical]:L==="vert",[U.hoverArrow]:S.show==="on hover"}),style:{color:S.color,"--arrow-hover-color":S.hover},children:f.jsxs("button",{className:U.arrowInner,onClick:()=>V("+1"),style:{transform:`translate(${k(P*(L==="horiz"?-1:1),n)}, ${k(G,n)}) scale(${e.controls.scale/100}) rotate(${L==="horiz"?"0deg":"90deg"})`},children:[S.arrowsImgUrl&&f.jsx($e,{url:S.arrowsImgUrl,fill:S.color,hoverFill:S.hover,className:U.arrowImg}),!S.arrowsImgUrl&&f.jsx(Xn,{color:S.color,className:oe(U.arrowIcon,U.arrowImg)})]})})]}),I.triggersList.click&&f.jsx("div",{className:U.clickOverlay,onClick:()=>{o&&o.go("+1")}}),N.isActive&&f.jsx("div",{className:oe(U.pagination,{[U.paginationInsideBottom]:N.position==="inside-1"&&L==="horiz",[U.paginationInsideTop]:N.position==="inside-2"&&L==="horiz",[U.paginationOutsideBottom]:N.position==="outside-1"&&L==="horiz",[U.paginationOutsideTop]:N.position==="outside-2"&&L==="horiz",[U.paginationInsideLeft]:N.position==="inside-1"&&L==="vert",[U.paginationInsideRight]:N.position==="inside-2"&&L==="vert",[U.paginationOutsideLeft]:N.position==="outside-1"&&L==="vert",[U.paginationOutsideRight]:N.position==="outside-2"&&L==="vert",[U.paginationVertical]:L==="vert"}),children:f.jsx("div",{className:U.paginationInner,style:{backgroundColor:N.colors[2],transform:`scale(${N.scale/100}) translate(${k(N.offset.x,n)}, ${k(N.offset.y,n)}) rotate(${L==="horiz"?"0deg":"90deg"})`},children:r.map((g,j)=>f.jsx("button",{onClick:()=>{o&&o.go(j)},className:oe(U.paginationItem),children:f.jsx("div",{className:oe(U.dot,{[U.activeDot]:j===y}),style:{backgroundColor:j===y?N.colors[0]:N.colors[1],"--pagination-hover-color":N.hover}})},j))})})]})})}function Xn({color:e,className:r}){return f.jsx("svg",{viewBox:"0 0 10 18",className:r,children:f.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:f.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:e,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const Uo={element:$o,id:"control-slider",name:"Slider",preview:{type:"video",url:"https://cdn.cntrl.site/component-assets/Control-slider-preview.mp4"},defaultSize:{width:400,height:400},schema:{type:"object",properties:{settings:{layoutBased:!0,type:"object",display:{type:"settings-block"},properties:{triggers:{title:"triggers",icon:"target",tooltip:"Triggers",type:"object",properties:{triggersList:{type:"object",display:{type:"toggle-ratio-group"},properties:{click:{type:"boolean"},drag:{type:"boolean"}}},autoPlay:{type:["string","null"],label:"Auto",display:{type:"step-selector"},enum:[null,"1s","2s","3s","4s","5s"]}}},direction:{icon:"horizontal-resize",tooltip:"Direction",type:"string",display:{type:"ratio-group"},enum:["horiz","vert"]},transition:{title:"transit",icon:"transition",tooltip:"Transition",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide","fade in"]},backgroundColor:{type:["string","null"],title:"BG Color",display:{visible:!1,type:"settings-color-picker",format:"single"}},duration:{type:"string",label:"icon:hourglass",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]}}},controls:{title:"controls",icon:"controls",tooltip:"Controls",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"scale",min:50,max:600,display:{type:"range-control"}},color:{title:"color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}},show:{title:"Show",type:"string",display:{type:"ratio-group"},enum:["always","on hover"]}}},pagination:{title:"nav",icon:"pagination",tooltip:"Navigation",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},position:{display:{type:"socket",direction:"horizontal"},type:"string",enum:["outside-1","outside-2","inside-1","inside-2"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"scale",min:10,max:400,display:{type:"range-control"}},colors:{display:{type:"settings-color-picker",format:"multiple"},title:"color",type:"array",items:{type:"string"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},imageCaption:{title:"Caption",icon:"text-icon",tooltip:"Caption",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},alignment:{type:"string",display:{type:"align-grid"},enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},linkColor:{title:"Link",type:"string",display:{type:"settings-color-picker",format:"single"}},linkHoverColor:{title:"Link Hov",type:"string",display:{type:"settings-color-picker",format:"single"}}}}},default:{triggers:{triggersList:{click:!1,drag:!0},autoPlay:null},controls:{isActive:!0,arrowsImgUrl:null,offset:{x:0,y:0},scale:100,color:"#000000",hover:"#cccccc",show:"always"},transition:{type:"slide",duration:"500ms",backgroundColor:null},pagination:{isActive:!0,scale:50,position:"outside-1",offset:{x:0,y:0},colors:["#cccccc","#cccccc","#000000"],hover:"#cccccc"},direction:"horiz",imageCaption:{offset:{x:0,y:0},isActive:!0,alignment:"middle-center",linkColor:"#cccccc",linkHoverColor:"#cccccc"}},displayRules:[{if:{name:"direction",value:"vert"},then:{name:"properties.pagination.properties.position.display.direction",value:"vertical"}},{if:{name:"transition.type",value:"fade in"},then:{name:"properties.transition.properties.backgroundColor.display.visible",value:!0}}]},content:{layoutBased:!1,type:"array",settings:{addItemFromFileExplorer:!0,defaultWidth:500},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{minWidth:58,maxWidth:108,type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},imageCaption:{placeholder:"Add Caption...",label:"Description",display:{type:"rich-text",minWidth:300,maxWidth:550}}},required:["image"]},default:[{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-1.png",name:"Slider-1.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-2.png",name:"Slider-2.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-3.png",name:"Slider-3.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]}]},styles:{layoutBased:!0,type:"object",properties:{imageCaption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right","justify"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase","capitalize"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"auto"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.02,lineHeight:.02},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}}},required:["settings","content","styles"]}},Go="ImageRevealSlider-module__imageRevealSlider___UE5Ob",Yo="ImageRevealSlider-module__image___Qjt-e",Xo="ImageRevealSlider-module__link___N-iLG",Ko="ImageRevealSlider-module__cursor___2U03d",Xe={imageRevealSlider:Go,image:Yo,link:Xo,cursor:Ko};function Kn(e,r,t){for(const n of t){const o=new Image;o.src=n.url;const l=n.width?Number.parseFloat(n.width):o.naturalWidth,i=o.naturalHeight/o.naturalWidth*l,c=l/2,s=i/2;if(e>=n.x-c&&e<=n.x+c&&r>=n.y-s&&r<=n.y+s)return!0}return!1}function en(e){return new Promise(r=>{const t=new Image;t.src=e,t.onload=()=>{r({width:t.naturalWidth,height:t.naturalHeight})}})}async function qo(e,r,t,n){let o,l;if(r==="custom"){o=t;const i=await en(e);l=i.height/i.width*o}else if(r==="random"){o=Math.random()*(n.max-n.min)+n.min;const i=await en(e);l=i.height/i.width*o}else{const i=await en(e);o=i.width,l=i.height}return{width:o,height:l,finalWidth:`${o}px`}}function Jo({settings:e,content:r,isEditor:t}){const[n,o]=F.useState(null),[l,i]=F.useState([]),[c,s]=F.useState(0),p=F.useRef(0),[a,_]=F.useState({x:0,y:0}),[h,d]=F.useState(1),[u,m]=F.useState("none"),C=F.useRef({x:0,y:0}),[A,y]=F.useState(!1),{sizeType:x,imageWidth:H,randomRangeImageWidth:B}=e.imageSize,{revealPosition:L,visible:v}=e.position,{cursorType:S,target:N,defaultCursorScale:W,defaultCursor:I,hoverCursorScale:D,hoverCursor:P}=e.cursor;F.useEffect(()=>{if(!n)return;const g=(R,b)=>{const O=n.getBoundingClientRect(),Y=R-O.left,ne=b-O.top;if(_({x:Y,y:ne}),S==="system"){m("none"),d(1);return}const Q=Y,le=ne,E=document.elementFromPoint(O.left+Q,O.top+le);if(E&&E.closest("a")){m("none"),d(1);return}const J=Kn(Q,le,l)||N==="area"?{img:P??"none",scale:D}:{img:I??"none",scale:W};m(J.img),d(J.scale)},j=R=>{R.stopPropagation(),C.current={x:R.clientX,y:R.clientY},g(R.clientX,R.clientY)},T=()=>{A&&g(C.current.x,C.current.y)};return n.addEventListener("mousemove",j),window.addEventListener("scroll",T,!0),()=>{n.removeEventListener("mousemove",j),window.removeEventListener("scroll",T,!0)}},[n,A,a,S,N,P,I,D,W,l]),F.useEffect(()=>{A||(m("none"),d(0))},[A]);const G=async(g,j,T,R={})=>{const{width:b,height:O,finalWidth:Y}=await qo(g.image.url,x,H,B);let ne=0,Q=0;L==="same"?(ne=j/2,Q=T/2):(ne=R.x??Math.random()*j,Q=R.y??Math.random()*T);const le=Math.min(Math.max(ne,b/2),j-b/2),E=Math.min(Math.max(Q,O/2),T-O/2);return{id:p.current++,url:g.image.url,link:g.link,name:g.image.name,x:le,y:E,width:Y}};F.useEffect(()=>{if(!n||r.length===0)return;const g=n.getBoundingClientRect(),j=g.width,T=g.height,R=[];(async()=>{const O=r[0],Y=await G(O,j,T);R.push(Y),i(R),s(1)})()},[x,H,B,L,n]),F.useEffect(()=>{v==="last One"&&i(g=>g.length>0?[g[g.length-1]]:[])},[v]);const V=async g=>{if(!n)return;const j=n.getBoundingClientRect(),T=g.clientX-j.left,R=g.clientY-j.top;if(N==="image"&&!Kn(T,R,l))return;let b=0,O=0;L==="on Click"?(b=T,O=R):L==="same"?(b=j.width/2,O=j.height/2):(b=Math.random()*j.width,O=Math.random()*j.height);const Y=r[c],ne=await G(Y,j.width,j.height,{x:b,y:O});i(Q=>v==="all"?[...Q,ne]:[ne]),s(Q=>Q>=r.length-1?0:Q+1)};return f.jsxs("div",{ref:o,onClick:V,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),className:Xe.imageRevealSlider,style:{cursor:u==="none"?"default":"none"},children:[l.map(g=>f.jsx("div",{className:Xe.wrapper,style:{top:`${g.y}px`,left:`${g.x}px`,position:"absolute",transform:"translate(-50%, -50%)",width:g.width??"auto",height:"auto",cursor:u==="none"?"default":"none"},children:N==="area"&&g.link?f.jsx("a",{href:g.link,target:"_blank",className:Xe.link,children:f.jsx("img",{src:g.url,alt:g.name,className:Xe.image},g.id)}):f.jsx("img",{src:g.url,alt:g.name,className:Xe.image},g.id)},g.id)),A&&f.jsx("div",{className:Xe.cursor,style:{left:`${a.x}px`,top:`${a.y}px`,transform:`translate(-50%, -50%) scale(${h})`,backgroundImage:`url('${u}')`,backgroundSize:"cover",backgroundPosition:"center",position:"absolute",pointerEvents:"none"}})]})}const Zo={element:Jo,id:"control-image-reveal",name:"Click Gallery",preview:{type:"video",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7EQ3WSW43JG5YMC8B2HTPKT.mp4"},defaultSize:{width:"100%",height:"100%"},schema:{type:"object",properties:{settings:{layoutBased:!0,type:"object",display:{type:"settings-block"},properties:{imageSize:{title:"IMG SIZE",icon:"size",tooltip:"IMG SIZE",type:"object",properties:{sizeType:{type:"string",display:{type:"ratio-group"},enum:["as Is","custom","random"]},imageWidth:{type:"number",label:"W",display:{type:"numeric-input",visible:!1}},randomRangeImageWidth:{type:"object",display:{type:"random-range-controls",visible:!1},properties:{min:{type:"number"},max:{type:"number"}}}}},cursor:{title:"cursor",icon:"cursor",tooltip:"cursor",type:"object",properties:{cursorType:{type:"string",display:{type:"ratio-group"},enum:["system","custom"]},target:{type:"string",title:"Target",display:{type:"ratio-group"},enum:["area","image"]},defaultCursor:{type:["string","null"],title:"Default",display:{type:"settings-image-input",visible:!1}},defaultCursorScale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control",visible:!1}},hoverCursor:{type:["string","null"],title:"Hover",display:{type:"settings-image-input",visible:!1}},hoverCursorScale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control",visible:!1}}}},position:{title:"position",icon:"transition",tooltip:"Position",type:"object",properties:{revealPosition:{type:"string",display:{type:"ratio-group"},enum:["random","same","on Click"]},visible:{type:"string",title:"Visible",display:{type:"ratio-group"},enum:["all","last One"]}}}},default:{imageSize:{sizeType:"custom",imageWidth:500,randomRangeImageWidth:{min:100,max:1e3}},cursor:{cursorType:"system",target:"area",defaultCursor:null,defaultCursorScale:2,hoverCursor:null,hoverCursorScale:2},position:{revealPosition:"random",visible:"all"}},displayRules:[{if:{name:"imageSize.sizeType",value:"custom"},then:{name:"properties.imageSize.properties.imageWidth.display.visible",value:!0}},{if:{name:"imageSize.sizeType",value:"random"},then:{name:"properties.imageSize.properties.randomRangeImageWidth.display.visible",value:!0}},{if:[{name:"cursor.target",value:"image"},{name:"cursor.cursorType",value:"custom"}],then:{name:"properties.cursor.properties.defaultCursor.display.visible",value:!0}},{if:[{name:"cursor.target",value:"image"},{name:"cursor.cursorType",value:"custom"},{name:"cursor.defaultCursor",value:null,isNotEqual:!0}],then:{name:"properties.cursor.properties.defaultCursorScale.display.visible",value:!0}},{if:{name:"cursor.cursorType",value:"custom"},then:{name:"properties.cursor.properties.hoverCursor.display.visible",value:!0}},{if:[{name:"cursor.cursorType",value:"custom"},{name:"cursor.hoverCursor",value:null,isNotEqual:!0}],then:{name:"properties.cursor.properties.hoverCursorScale.display.visible",value:!0}}]},content:{layoutBased:!1,type:"array",settings:{addItemFromFileExplorer:!0,defaultWidth:500},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{isObjectFitEditable:!1,minWidth:58,maxWidth:108,type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},link:{label:"URL",placeholder:"Enter link...",display:{type:"text-input",minWidth:300,maxWidth:550}}},required:["image"]},default:[{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQK9211QXBE9W284ZNKB8.png",name:"Slider-1.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQMFT72JD18WKP0Q2DVAT.png",name:"Slider-2.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQNEVRXPSRX5K1YTMJQY9.png",name:"Slider-3.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQP84JKRDT7WNWDQZR4Y9.png",name:"Slider-4.png"},link:""}]}}}},Qo="LightBox-module__hidden___9s-9x",ea="LightBox-module__heroImage___sTxNF",ta="LightBox-module__background___rm9ml",na="LightBox-module__editor___4ACaY",ra="LightBox-module__contentStyle___Bgnsq",ia="LightBox-module__imageStyle___tLIlB",oa="LightBox-module__imgWrapper___LuFUp",aa="LightBox-module__contain___8-yaS",la="LightBox-module__cover___hNvOG",sa="LightBox-module__caption___b6L2I",ca="LightBox-module__captionTextInner___rCGNH",ua="LightBox-module__lightboxSplide___XFuWC",pa="LightBox-module__arrow___iz38X",da="LightBox-module__arrowVertical___Zfz81",ma="LightBox-module__nextArrow___zkAQN",ga="LightBox-module__arrowInner___p48sW",fa="LightBox-module__arrowIcon___3VaFf",ha="LightBox-module__arrowImg___pNV88",va="LightBox-module__mirror___pjeXc",ya="LightBox-module__thumbsWrapper___GB-nU",ba="LightBox-module__thumbsContainerVertical___wttk5",_a="LightBox-module__thumbsContainer___osSma",wa="LightBox-module__thumbsAlignStart___MO6tY",Sa="LightBox-module__thumbsAlignCenter___Q4sUx",xa="LightBox-module__thumbsAlignEnd___p4y9R",Ca="LightBox-module__thumbItem___HvnF3",Aa="LightBox-module__closeButton___g2khP",Ia="LightBox-module__fadeIn___0m5GW",Ea="LightBox-module__slideInLeft___gPYwC",La="LightBox-module__slideInRight___S-pPp",Ta="LightBox-module__slideInTop___DFdAj",Ra="LightBox-module__slideInBottom___m27kZ",Na="LightBox-module__fadeOut___55qBR",ja="LightBox-module__slideOutLeft___NvU7P",ka="LightBox-module__slideOutRight___SK7eC",Oa="LightBox-module__slideOutTop___Vgg0z",Da="LightBox-module__slideOutBottom___nJ0Ef",za="LightBox-module__scaleSlide___vZriG",z={hidden:Qo,heroImage:ea,background:ta,editor:na,contentStyle:ra,imageStyle:ia,imgWrapper:oa,contain:aa,cover:la,caption:sa,captionTextInner:ca,lightboxSplide:ua,arrow:pa,arrowVertical:da,nextArrow:ma,arrowInner:ga,arrowIcon:fa,arrowImg:ha,mirror:va,thumbsWrapper:ya,thumbsContainerVertical:ba,thumbsContainer:_a,thumbsAlignStart:wa,thumbsAlignCenter:Sa,thumbsAlignEnd:xa,thumbItem:Ca,closeButton:Aa,fadeIn:Ia,slideInLeft:Ea,slideInRight:La,slideInTop:Ta,slideInBottom:Ra,fadeOut:Na,slideOutLeft:ja,slideOutRight:ka,slideOutTop:Oa,slideOutBottom:Da,scaleSlide:za},Lt=(e,r,t)=>{const n={},[o,l]=e.split("-");return o==="top"?(n.top="0",n.bottom="auto"):o==="middle"?(n.top="50%",n.bottom="auto"):o==="bottom"&&(n.top="auto",n.bottom="0"),l==="left"?(n.left="0",n.right="auto"):l==="center"?(n.left="50%",n.right="auto"):l==="right"&&(n.left="auto",n.right="0"),o==="middle"&&l==="center"?n.transform=`translate(calc(-50% + ${k(r.x,t)}), calc(-50% + ${k(r.y,t)}))`:o==="middle"?n.transform=`translate(${k(r.x,t)}, calc(-50% + ${k(r.y,t)}))`:l==="center"?n.transform=`translate(calc(-50% + ${k(r.x,t)}), ${k(r.y,t)})`:n.transform=`translate(${k(r.x,t)}, ${k(r.y,t)})`,n};function Pr(e){const r=window.getComputedStyle(e);return{top:parseFloat(r.paddingTop)||0,right:parseFloat(r.paddingRight)||0,bottom:parseFloat(r.paddingBottom)||0,left:parseFloat(r.paddingLeft)||0}}function qn(e){const r=e.getBoundingClientRect(),t=Pr(e),n=Math.max(0,r.width-t.left-t.right),o=Math.max(0,r.height-t.top-t.bottom),l=e.naturalWidth,i=e.naturalHeight,c=n/o,s=l/i;let p,a;s>c?(p=n,a=n/s):(a=o,p=o*s);const _=r.left+t.left,h=r.top+t.top,d=(n-p)/2+_,u=(o-a)/2+h;return{x:d,y:u,width:p,height:a}}function Jn(e){const r=e.getBoundingClientRect(),t=Pr(e);return{left:r.left+t.left,right:r.right-t.right,top:r.top+t.top,bottom:r.bottom-t.bottom}}function Zn(e){const r=e.match(/rgba?\(([^)]+)\)/);if(r){const n=r[1].split(",").map(o=>parseFloat(o.trim()));return n.length===4?n[3]:1}const t=e.match(/^#([0-9a-fA-F]{8})$/);if(t){const n=t[1].substring(6,8);return parseInt(n,16)/255}return e.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/),1}function Pa(e,r){const t=(()=>{if(e==="fade in")return z.fadeIn;if(e==="slide in"||e==="mix")switch(r){case"left":return z.slideInLeft;case"right":return z.slideInRight;case"top":return z.slideInTop;case"bottom":return z.slideInBottom;default:return z.slideInRight}return z.fadeIn})(),n=(()=>{if(e==="fade in"||e==="mix")return z.fadeIn;if(e==="slide in")switch(r){case"left":return z.slideInLeft;case"right":return z.slideInRight;case"top":return z.slideInTop;case"bottom":return z.slideInBottom;default:return z.slideInRight}return z.fadeIn})(),o=(()=>{if(e==="fade in"||e==="mix")return z.fadeOut;if(e==="slide in")switch(r){case"left":return z.slideOutLeft;case"right":return z.slideOutRight;case"top":return z.slideOutTop;case"bottom":return z.slideOutBottom;default:return z.slideOutRight}return z.fadeOut})(),l=(()=>{if(e==="fade in")return z.fadeOut;if(e==="slide in"||e==="mix")switch(r){case"left":return z.slideOutLeft;case"right":return z.slideOutRight;case"top":return z.slideOutTop;case"bottom":return z.slideOutBottom;default:return z.slideOutRight}return z.fadeOut})();return{appearClass:t,backdropAppearClass:n,backdropDisappearClass:o,disappearClass:l}}const Ba=({settings:e,content:r,styles:t,portalId:n,activeEvent:o,isEditor:l})=>{const[i,c]=F.useState(!1),{url:s}=e.thumbnailBlock.cover;return F.useEffect(()=>{o==="close"&&c(!1),o==="open"&&c(!0)},[o]),f.jsxs(f.Fragment,{children:[f.jsx("img",{src:s,alt:"Cover",className:z.heroImage,onClick:()=>c(!0)}),f.jsx(Wa,{isOpen:i,onClose:()=>c(!1),content:r,settings:e,lightboxStyles:t,portalId:n,isEditor:l})]})},Wa=({isOpen:e,onClose:r,content:t,lightboxStyles:n,settings:o,portalId:l,isEditor:i,metadata:c})=>{var M;const[s,p]=F.useState(0),[a,_]=F.useState(0),[h,d]=F.useState(!1),[u,m]=F.useState(!1),[C,A]=F.useState({}),y=F.useRef(null),x=F.useRef(null),H=F.useRef(null),B=F.useRef(!1),L=F.useRef(null),v=F.useRef(null),S=F.useRef(null),N=F.useRef(null),W=F.useRef(!1),I=F.useRef(null),[D,P]=F.useState(!1),{appear:G,triggers:V,slider:g,thumbnail:j,controls:T,area:R,caption:b,layout:O}=o.lightboxBlock,{appearClass:Y,backdropAppearClass:ne,backdropDisappearClass:Q,disappearClass:le}=Pa(G.type,G.direction),E=(c==null?void 0:c.itemId)??null;F.useEffect(()=>{const w=()=>{setTimeout(()=>{var X,Z;(Z=(X=y.current)==null?void 0:X.splide)==null||Z.refresh()},16)},$=()=>{_(X=>X+1)};return window.addEventListener("ArticleEditor.Layout:change",w),window.addEventListener("ArticleEditor.ComponentContent:change",$),()=>{window.removeEventListener("ArticleEditor.Layout:change",w),window.removeEventListener("ArticleEditor.ComponentContent:change",$)}},[]),F.useEffect(()=>{if(!e||!j.isActive){P(!1);return}const w=I.current;if(!w)return;const $=()=>{g.direction==="horiz"?P(w.scrollWidth>w.clientWidth):P(w.scrollHeight>w.clientHeight)};$();const X=new ResizeObserver($);return X.observe(w),()=>X.disconnect()},[e,j.isActive,t.length,C,g.direction]);const J=F.useCallback(()=>{const w=window.matchMedia("(max-width: 768px)").matches,$=Zn(R.color);w&&!i&&$>.9&&(document.body.style.backgroundColor=""),d(!0),B.current=!0;const X=Z=>{Z.target===L.current&&Z.animationName&&(L.current&&v.current&&L.current.removeEventListener("animationend",v.current),v.current=null,B.current&&(B.current=!1,r()),d(!1))};L.current&&(v.current=X,L.current.addEventListener("animationend",X))},[r,R.color,i]),he=(w,$,X)=>{var Z,re;if(w){if(V.type==="click"&&V.switch==="image")V.repeat==="close"&&s===t.length-1?J():(Z=y.current)==null||Z.go("+1");else if(V.type==="click"&&V.switch==="50/50"){const ee=w.getBoundingClientRect(),K=$-ee.left,ce=X-ee.top,ye=ee.width,pe=ee.height;let ge;g.direction==="horiz"?ge=K<ye/2?"-1":"+1":ge=ce<pe/2?"-1":"+1",(re=y.current)==null||re.go(ge)}}},se=w=>{if(W.current){W.current=!1;return}const $=t[s],X=($==null?void 0:$.image.objectFit)==="cover";let Z,re;if("changedTouches"in w&&w.changedTouches.length>0)Z=w.changedTouches[0].clientX,re=w.changedTouches[0].clientY;else if("clientX"in w)Z=w.clientX,re=w.clientY;else return;let ee;if(X&&H.current){const K=Jn(H.current);ee=Z>=K.left&&Z<=K.right&&re>=K.top&&re<=K.bottom}else{const K=H.current?qn(H.current):null;if(!K){w.target===w.currentTarget&&J();return}ee=Z>=K.x&&Z<=K.x+K.width&&re>=K.y&&re<=K.y+K.height}ee?he(H.current,Z,re):J()},fe=w=>{const $=w.target;($.classList.contains(z.thumbsWrapper)||$.classList.contains(z.thumbsContainer))&&se(w)};F.useEffect(()=>{if(!e)return;const w=$=>{var X,Z;if($.key==="Escape"){J();return}if($.key==="ArrowRight"){p(re=>(re+1)%Math.max(t.length,1)),(X=y.current)==null||X.go("+1");return}$.key==="ArrowLeft"&&(p(re=>(re-1+Math.max(t.length,1))%Math.max(t.length,1)),(Z=y.current)==null||Z.go("-1"))};return window.addEventListener("keydown",w),()=>{window.removeEventListener("keydown",w)}},[e,J,t.length]),F.useEffect(()=>{if(e){if(p(0),_($=>$+1),B.current=!1,d(!1),m(!1),A({}),!E)return;const w=new CustomEvent("page-overlay",{detail:{itemId:E}});window.dispatchEvent(w)}return()=>{L.current&&v.current&&(L.current.removeEventListener("animationend",v.current),v.current=null),m(!1)}},[e,E]),F.useEffect(()=>{x.current!==null&&x.current!==g.type&&_(w=>w+1),x.current=g.type},[g.type]),F.useEffect(()=>{if(!e)return;const w=document.body.style.overflow,$=window.matchMedia("(max-width: 768px)").matches,X=Zn(R.color);document.body.style.overflow="hidden",m(!1);const Z=ee=>{ee.target===L.current&&!B.current&&ee.animationName&&($&&!i&&X>.9&&(document.body.style.backgroundColor=R.color),m(!0),L.current&&S.current&&L.current.removeEventListener("animationend",S.current),S.current=null)};L.current&&(S.current=Z,L.current.addEventListener("animationend",Z));const re=ee=>{const K=ee.target;K&&(K.closest(`.${z.thumbsWrapper}`)||K.closest(`.${z.thumbsContainer}`))||g.type!=="slide"&&ee.preventDefault()};return document.addEventListener("touchmove",re,{passive:!1}),()=>{document.body.style.overflow=w,document.removeEventListener("touchmove",re),L.current&&S.current&&(L.current.removeEventListener("animationend",S.current),S.current=null),m(!1)}},[e,i,R.color,g.type]),F.useEffect(()=>{if(!e)return;const w=$=>{var Z,re;if(B.current){$.stopPropagation();return}if(W.current){W.current=!1;return}const X=$.target;if(!(X&&(X.closest(`.${z.thumbsContainer}`)||X.closest(`.${z.thumbItem}`)))){if(g.type==="slide"&&V.type==="drag"&&((re=(Z=y.current)==null?void 0:Z.splide)!=null&&re.root)){const ee=y.current.splide.root;if(X&&(ee.contains(X)||ee===X))return}if($.touches.length===0&&$.changedTouches.length>0){const ee=t[s],K=(ee==null?void 0:ee.image.objectFit)==="cover",ce=$.changedTouches[0];let ye;if(K&&H.current){const pe=Jn(H.current);ye=ce.clientX>=pe.left&&ce.clientX<=pe.right&&ce.clientY>=pe.top&&ce.clientY<=pe.bottom}else{const pe=H.current?qn(H.current):null;if(!pe)return;ye=ce.clientX>=pe.x&&ce.clientX<=pe.x+pe.width&&ce.clientY>=pe.y&&ce.clientY<=pe.y+pe.height}if(!ye){$.stopPropagation(),B.current=!0;const pe=ge=>{ge.stopPropagation(),ge.preventDefault(),document.removeEventListener("click",pe,!0)};document.addEventListener("click",pe,!0),J()}}}};return document.addEventListener("touchend",w,{passive:!0}),()=>{document.removeEventListener("touchend",w)}},[e,J,s,t]);const at=(g.type==="scale"||g.type==="fade")&&g.direction==="vert"&&V.type==="drag";F.useEffect(()=>{var ge,At;if(!e||!at||!((At=(ge=y.current)==null?void 0:ge.splide)!=null&&At.root))return;const w=y.current.splide.root,$=30,X=(te,de)=>{if(N.current){const Te=Math.abs(te-N.current.x),It=Math.abs(de-N.current.y);(Te>0||It>0)&&(W.current=!0)}},Z=te=>{N.current&&(te.preventDefault(),X(te.clientX,te.clientY))},re=te=>{N.current&&te.touches.length>0&&(te.preventDefault(),X(te.touches[0].clientX,te.touches[0].clientY))},ee=(te,de)=>{if(!N.current||!y.current){N.current=null;return}const Te=Math.abs(te-N.current.x),It=Math.abs(de-N.current.y);It>$&&It>Te&&y.current.go(de<N.current.y?"+1":"-1"),N.current=null},K=te=>{N.current&&ee(te.clientX,te.clientY),document.removeEventListener("pointerup",K),document.removeEventListener("pointercancel",K),document.removeEventListener("pointermove",Z)},ce=te=>{if(N.current){if(te.changedTouches.length>0){const de=te.changedTouches[0];ee(de.clientX,de.clientY)}document.removeEventListener("touchend",ce),document.removeEventListener("touchcancel",ce),document.removeEventListener("touchmove",re)}},ye=te=>{N.current={x:te.clientX,y:te.clientY},W.current=!1,document.addEventListener("pointermove",Z,{passive:!1}),document.addEventListener("pointerup",K),document.addEventListener("pointercancel",K)},pe=te=>{te.touches.length>0&&(N.current={x:te.touches[0].clientX,y:te.touches[0].clientY},W.current=!1,document.addEventListener("touchmove",re,{passive:!1}),document.addEventListener("touchend",ce),document.addEventListener("touchcancel",ce))};return w.addEventListener("pointerdown",ye),w.addEventListener("touchstart",pe),()=>{w.removeEventListener("pointerdown",ye),w.removeEventListener("touchstart",pe),document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",K),document.removeEventListener("pointercancel",K),document.removeEventListener("touchmove",re),document.removeEventListener("touchend",ce),document.removeEventListener("touchcancel",ce),N.current=null,W.current=!1}},[e,at,a]);const Ct={backgroundColor:R.color,backdropFilter:`blur(${R.blur}px)`,animationDuration:`${parseInt(G.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"};return document.getElementById(l)?Br.createPortal(f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:i?null:L,className:oe(z.background,h?Q:ne,{[z.editor]:i},{[z.hidden]:!e}),style:{...Ct,...u&&!i&&!h?{position:"absolute"}:{}}}),f.jsxs("div",{ref:i?L:null,className:oe(z.contentStyle,h?le:Y,{[z.editor]:i},{[z.hidden]:!e}),style:{animationDuration:`${parseInt(G.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"},children:[f.jsx(Nn,{onMove:w=>p(w.index),ref:y,className:z.lightboxSplide,options:{arrows:!1,speed:g.duration?parseInt(g.duration):500,direction:g.direction==="horiz"||g.type==="fade"||g.type==="scale"?"ltr":"ttb",pagination:!1,drag:V.type==="drag"&&!at,perPage:1,width:"100%",height:"100%",type:g.type==="fade"||g.type==="scale"?"fade":"loop",padding:0,rewind:V.repeat!=="close",start:0},style:{"--splide-speed":g.duration},children:t.map((w,$)=>{const X=Lt(O.position,O.offset,i),Z=`${k(O.padding.top,i)} ${k(O.padding.right,i)} ${k(O.padding.bottom,i)} ${k(O.padding.left,i)}`,re=g.type==="scale"?(()=>{const{transform:ee,...K}=X;return{...K,position:"absolute",padding:Z,boxSizing:"border-box","--position-transform":ee||"none"}})():{...X,position:"absolute",padding:Z,boxSizing:"border-box"};return f.jsx(jn,{children:f.jsx("div",{className:z.imgWrapper,onClick:se,children:f.jsx("img",{ref:$===s?H:null,className:oe(z.imageStyle,{[z.contain]:w.image.objectFit==="contain",[z.cover]:w.image.objectFit==="cover",[z.scaleSlide]:g.type==="scale"}),src:w.image.url,alt:w.image.name??"",style:{...re,pointerEvents:w.image.objectFit==="contain"?"none":"auto"}})})},$)})},a),T.isActive&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:oe(z.arrow,{[z.arrowVertical]:g.direction==="vert"}),style:{color:T.color,"--arrow-hover-color":T.hover},children:f.jsxs("button",{className:z.arrowInner,style:{transform:`translate(${k(T.offset.x,i)}, ${k(T.offset.y*(g.direction==="horiz"?1:-1),i)}) scale(${T.scale}) rotate(${g.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var w;return(w=y.current)==null?void 0:w.go("-1")},"aria-label":"Previous",children:[T.arrowsImgUrl&&f.jsx($e,{url:T.arrowsImgUrl,fill:T.color,hoverFill:T.hover,className:oe(z.arrowImg,z.mirror)}),!T.arrowsImgUrl&&f.jsx(Qn,{color:T.color,className:oe(z.arrowIcon,z.arrowImg,z.mirror)})]})}),f.jsx("div",{className:oe(z.arrow,z.nextArrow,{[z.arrowVertical]:g.direction==="vert"}),style:{color:T.color,"--arrow-hover-color":T.hover},children:f.jsxs("button",{className:z.arrowInner,style:{transform:`translate(${k(T.offset.x*(g.direction==="horiz"?-1:1),i)}, ${k(T.offset.y,i)}) scale(${T.scale}) rotate(${g.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var w;return(w=y.current)==null?void 0:w.go("+1")},"aria-label":"Next",children:[T.arrowsImgUrl&&f.jsx($e,{url:T.arrowsImgUrl,fill:T.color,hoverFill:T.hover,className:z.arrowImg}),!T.arrowsImgUrl&&f.jsx(Qn,{color:T.color,className:oe(z.arrowIcon,z.arrowImg)})]})})]}),R.closeIconUrl&&(()=>{const w=Lt(R.closeIconAlign,R.closeIconOffset,i),$=`scale(${R.closeIconScale})`,X=w.transform?`${w.transform} ${$}`:$;return f.jsx("button",{className:z.closeButton,style:{...w,transform:X},onClick:J,"aria-label":"Close lightbox",children:f.jsx($e,{url:R.closeIconUrl,fill:R.closeIconColor??"#000000",hoverFill:R.closeIconHover??"#cccccc"})})})(),b&&b.isActive&&n.imageCaption&&((M=t[s])==null?void 0:M.imageCaption)&&(()=>{const{widthSettings:w,fontSettings:$,letterSpacing:X,textAlign:Z,wordSpacing:re,fontSizeLineHeight:ee,textAppearance:K,color:ce}=n.imageCaption;return f.jsx("div",{className:z.caption,style:{...Lt(b.alignment,b.offset,i),fontFamily:$.fontFamily,fontWeight:$.fontWeight,fontStyle:$.fontStyle,width:w.sizing==="auto"?"max-content":k(w.width,i),letterSpacing:k(X,i),wordSpacing:k(re,i),textAlign:Z,fontSize:k(ee.fontSize,i),lineHeight:k(ee.lineHeight,i),textTransform:K.textTransform??"none",textDecoration:K.textDecoration??"none",fontVariant:K.fontVariant??"normal",color:ce},onClick:ye=>ye.stopPropagation(),children:f.jsx("div",{"data-styles":"imageCaption",className:z.captionTextInner,style:{"--link-color":b.linkColor,"--link-hover-color":b.linkHoverColor},children:f.jsx(Bt,{content:t[s].imageCaption})})})})(),j.isActive&&(()=>{const[w,$]=j.position.split("-"),X=g.direction==="horiz"?`${w}-left`:j.position,Z=Lt(X,j.offset,i),re=()=>{if(g.direction==="horiz"){if($==="left")return"flex-start";if($==="center")return"center";if($==="right")return"flex-end"}else{if(w==="top")return"flex-start";if(w==="middle")return"center";if(w==="bottom")return"flex-end"}return"flex-start"};return f.jsx("div",{ref:I,className:z.thumbsWrapper,onClick:ee=>fe(ee),style:{position:i?"absolute":"fixed",...Z,...g.direction==="horiz"?{maxWidth:"100vw",width:"100%",overflowX:"auto",overflowY:"hidden"}:{maxHeight:"100vh",overflowY:"auto",overflowX:"hidden"}},children:f.jsx("div",{className:oe(z.thumbsContainer,{[z.thumbsContainerVertical]:g.direction==="vert",[z.thumbsAlignStart]:j.align==="start",[z.thumbsAlignCenter]:j.align==="center",[z.thumbsAlignEnd]:j.align==="end"}),style:{gap:k(j.grid.gap,i),justifyContent:D?"flex-start":re()},children:t.map((ee,K)=>{const ce=K===s,ye=C[K],ge=j.grid.size*(ce?j.activeState.scale:1),At=()=>{if(j.fit!=="fit")return{};if(!ye)return g.direction==="horiz"?{height:k(ge,i)}:{width:k(ge,i)};const te=ye.width/ye.height;if(g.direction==="horiz"){const de=ge,Te=de*te;return{width:k(Te,i),height:k(de,i)}}else{const de=ge,Te=de/te;return{width:k(de,i),height:k(Te,i)}}};return f.jsx("button",{className:z.thumbItem,style:{...g.direction==="horiz"&&j.fit!=="fit"?{height:k(ge,i)}:{},...g.direction==="vert"&&j.fit!=="fit"?{width:k(ge,i)}:{},...j.fit==="cover"?{width:k(ge,i),height:k(ge,i)}:{},...At(),transition:ce?"all 0.25s ease-out":"none",opacity:ce?j.activeState.opacity/100:j.opacity/100,"--thumb-hover":j.activeState.opacity/100},onClick:te=>{var de;te.stopPropagation(),p(K),(de=y.current)==null||de.go(K)},onMouseEnter:()=>{var te;j.triggers==="hov"&&((te=y.current)==null||te.go(K))},children:f.jsx("img",{src:ee.image.url,alt:ee.image.name??"",onLoad:te=>{const de=te.currentTarget;de.naturalWidth&&de.naturalHeight&&A(Te=>({...Te,[K]:{width:de.naturalWidth,height:de.naturalHeight}}))},style:{objectFit:j.fit==="cover"?"cover":"contain",...j.fit==="fit"?{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}:{},...j.fit==="cover"?{width:"100%",height:"100%"}:{}}})},`${ee.image.name}-${K}`)})})})})()]})]}),document.getElementById(l)):null};function Qn({color:e,className:r}){return f.jsx("svg",{viewBox:"0 0 10 18",className:r,children:f.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:f.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:e,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const Fa={element:Ba,id:"lightbox",name:"Lightbox",preview:{type:"video",url:"https://cdn.cntrl.site/component-assets/lightbox.mp4"},defaultSize:{width:440,height:550},schema:{type:"object",properties:{settings:{layoutBased:!0,type:"object",properties:{thumbnailBlock:{display:{type:"settings-block",triggerEvent:"close"},type:"object",properties:{cover:{title:"COVER",icon:"cover",tooltip:"Cover Image",type:"object",properties:{url:{type:"string",display:{type:"cover-image-input"}}}}}},lightboxBlock:{display:{type:"settings-block",triggerEvent:"open"},type:"object",properties:{appear:{title:"APPEAR",icon:"transition",tooltip:"Appearance",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide in","fade in","mix"]},duration:{type:"string",label:"T",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]},direction:{type:"string",title:"From",display:{type:"direction-control"},enum:["top","left","right","bottom"]}}},triggers:{title:"TRIGGERS",icon:"target",tooltip:"Triggers",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["click","drag"]},switch:{type:"string",display:{type:"ratio-group"},enum:["image","50/50"]},repeat:{type:"string",title:"Repeat",display:{visible:!1,type:"ratio-group"},enum:["close","loop"]}}},slider:{title:"SLIDER",icon:"horizontal-resize",tooltip:"Slider",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide","fade","scale"]},direction:{type:"string",display:{type:"ratio-group"},enum:["horiz","vert"]},duration:{type:"string",label:"T",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]}}},thumbnail:{title:"THUMB",icon:"thumbnail",tooltip:"Thumbnail",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},position:{display:{type:"align-grid"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},fit:{type:"string",display:{type:"ratio-group"},enum:["cover","fit"]},align:{type:"string",title:"Align",display:{type:"align-group",direction:"horizontal"},enum:["start","center","end"]},triggers:{type:"string",title:"Triggers",display:{type:"ratio-group",direction:"horizontal"},enum:["clk","hov"]},grid:{type:"object",title:"Grid",display:{type:"group"},properties:{size:{type:"number",label:"Box",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},gap:{type:"number",label:"Gap",scalingEnabled:!0,min:0,display:{type:"numeric-input"}}}},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},opacity:{type:"number",title:"Opacity",label:"icon:opacity",min:0,max:100,step:1,display:{type:"numeric-input"}},activeState:{type:"object",title:"ACTIVE",display:{type:"group"},properties:{scale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control"}},opacity:{type:"number",title:"Opacity",label:"icon:opacity",min:0,max:100,step:1,display:{type:"numeric-input"}}}}}},layout:{title:"LAYOUT",icon:"layout",tooltip:"Layout",type:"object",properties:{position:{display:{type:"align-grid"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},padding:{type:"object",title:"Padding",display:{type:"padding-controls"},properties:{top:{min:0,step:1,type:"number"},left:{min:0,step:1,type:"number"},right:{min:0,step:1,type:"number"},bottom:{min:0,step:1,type:"number"}}}}},controls:{title:"CONTROLS",icon:"controls",tooltip:"Controls",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},offset:{title:"Offset",type:"object",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"Scale",min:.5,max:5,step:.1,display:{type:"range-control"}},color:{title:"Color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"Hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},area:{title:"AREA",icon:"area",tooltip:"Area",type:"object",properties:{color:{type:"string",display:{type:"settings-color-picker",format:"single"}},blur:{type:"number",label:"icon:blur",display:{type:"numeric-input"}},closeIconUrl:{type:["string","null"],title:"Close Icon",display:{type:"settings-image-input"}},closeIconAlign:{display:{type:"align-grid",direction:"horizontal"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},closeIconScale:{type:"number",title:"Scale",min:.5,max:5,step:.1,display:{type:"range-control"}},closeIconOffset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},closeIconColor:{title:"Color",type:"string",display:{type:"settings-color-picker",format:"single"}},closeIconHover:{title:"Hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},caption:{title:"DESC",icon:"text-icon",tooltip:"Description",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},alignment:{type:"string",display:{type:"align-grid"},enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{title:"Offset",type:"object",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},linkColor:{title:"Link",type:"string",display:{type:"settings-color-picker",format:"single"}},linkHoverColor:{title:"Link Hov",type:"string",display:{type:"settings-color-picker",format:"single"}}}}}}},default:{d:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"slide in",duration:"1000ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"vert",duration:"1000ms"},thumbnail:{isActive:!0,position:"middle-left",fit:"fit",align:"start",triggers:"hov",grid:{size:.05,gap:.01},offset:{x:.01,y:0},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:0,bottom:.06,left:0}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},linkColor:"#cccccc",linkHoverColor:"#cccccc"}}},m:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"fade in",duration:"500ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"horiz",duration:"1000ms"},thumbnail:{isActive:!0,position:"bottom-center",fit:"fit",align:"start",triggers:"hov",grid:{size:.1,gap:.05},offset:{x:.01,y:-.05},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:.05,bottom:.06,left:.05}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},hover:"#cccccc"}}},t:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"fade in",duration:"500ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"vert",duration:"1000ms"},thumbnail:{isActive:!0,position:"middle-left",fit:"fit",align:"start",triggers:"hov",grid:{size:.05,gap:.01},offset:{x:.03,y:0},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:.1,bottom:.06,left:.1}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},hover:"#cccccc"}}}},displayRules:[{if:{name:"lightboxBlock.appear.type",value:"slide in"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!0}},{if:{name:"lightboxBlock.slider.direction",value:"vert"},then:{name:"properties.lightboxBlock.properties.thumbnail.properties.align.display.direction",value:"vertical"}},{if:{name:"lightboxBlock.appear.type",value:"mix"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!0}},{if:{name:"lightboxBlock.appear.type",value:"fade in"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!1}},{if:[{name:"lightboxBlock.triggers.type",value:"click"},{name:"lightboxBlock.triggers.switch",value:"image"}],then:{name:"properties.lightboxBlock.properties.triggers.properties.repeat.display.visible",value:!0}}]},content:{layoutBased:!1,type:"array",settings:{addItemFromFileExplorer:!0,defaultWidth:500},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input",minWidth:58,maxWidth:108},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},imageCaption:{label:"Description",placeholder:"Add Caption...",display:{type:"rich-text",minWidth:300,maxWidth:550}}},required:["image"]},default:[{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/2.jpg",name:"Slider-1.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/3.jpg",name:"Slider-2.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/4.jpg",name:"Slider-3.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]}]},styles:{layoutBased:!0,type:"object",properties:{imageCaption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right","justify"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase","capitalize"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"auto"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.02,lineHeight:.02},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}}},required:["settings","content","styles"]}},Ma="Testimonials-module__container___H14Dc",Ha="Testimonials-module__gradientCorners___5yVCO",Va="Testimonials-module__wrapper___eCRwv",$a="Testimonials-module__wrapperDropShadow___gOkGi",Ua="Testimonials-module__cover___5I7Fh",Ga="Testimonials-module__elementsOverlay___5BTW9",Ya="Testimonials-module__image___nHD1Y",Xa="Testimonials-module__icon___SstqT",Ka="Testimonials-module__controls___3Kkww",qa="Testimonials-module__arrow___NO6BN",Ja="Testimonials-module__nextArrow___L3G-W",Za="Testimonials-module__arrowInner___GSjnA",Qa="Testimonials-module__arrowIcon___fw7vy",el="Testimonials-module__arrowImg___7R9fl",tl="Testimonials-module__mirror___JkFna",nl="Testimonials-module__control___9n4l3",ie={container:Ma,gradientCorners:Ha,wrapper:Va,wrapperDropShadow:$a,cover:Ua,elementsOverlay:Ga,image:Ya,icon:Xa,controls:Ka,arrow:qa,nextArrow:Ja,arrowInner:Za,arrowIcon:Qa,arrowImg:el,mirror:tl,control:nl},rl=({isRtl:e,step:r,controls:t,isEditor:n,sliderRef:o})=>{const l=e?`+${r}`:`-${r}`,i=e?`-${r}`:`+${r}`,c=()=>{var a;(a=o.current)==null||a.go(l)},s=()=>{var a;(a=o.current)==null||a.go(i)},p=a=>{if(!a)return{};const[_,h]=a.split("-"),d={};return _==="middle"?(d.position="absolute",d.top="50%",d.left=0,d.right=0,d.transform="translateY(-50%)",d.display="flex"):_==="top"?(d.order=0,d.marginTop=0,d.marginBottom="auto"):(d.order=2,d.marginTop="auto",d.marginBottom=0),h==="left"?_==="middle"?d.justifyContent="flex-start":d.alignSelf="flex-start":h==="center"?d.justifyContent="center":d.justifyContent="flex-end",d};return f.jsxs("div",{className:ie.controls,style:{color:t==null?void 0:t.color,"--arrow-hover-color":t==null?void 0:t.hover,gap:k((t==null?void 0:t.gap)??0,n??!1),...p(t==null?void 0:t.align)},children:[f.jsx("div",{className:ie.arrow,children:f.jsxs("button",{className:ie.arrowInner,onClick:c,"aria-label":"Previous",style:{transform:`scale(${(t==null?void 0:t.scale)/100})`},children:[(t==null?void 0:t.arrowsImgUrl)&&f.jsx($e,{url:t==null?void 0:t.arrowsImgUrl,fill:t==null?void 0:t.color,hoverFill:t==null?void 0:t.hover,className:oe(ie.arrowImg,ie.mirror)}),!(t!=null&&t.arrowsImgUrl)&&f.jsx(er,{color:t==null?void 0:t.color,className:oe(ie.arrowIcon,ie.arrowImg,ie.mirror)})]})}),f.jsx("div",{className:oe(ie.arrow,ie.nextArrow),children:f.jsxs("button",{className:ie.arrowInner,onClick:s,"aria-label":"Next",style:{transform:`scale(${(t==null?void 0:t.scale)/100})`},children:[(t==null?void 0:t.arrowsImgUrl)&&f.jsx($e,{url:t==null?void 0:t.arrowsImgUrl,fill:t==null?void 0:t.color,hoverFill:t==null?void 0:t.hover,className:ie.arrowImg}),!(t!=null&&t.arrowsImgUrl)&&f.jsx(er,{color:t==null?void 0:t.color,className:oe(ie.arrowIcon,ie.arrowImg)})]})})]})};function er({color:e,className:r}){return f.jsx("svg",{viewBox:"0 0 10 18",className:r,children:f.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:f.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:e,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const il=e=>{if(!e)return 0;const r=e.match(/^(\d+)s$/);return r?parseInt(r[1],10)*1e3:0},ol=({settings:e,content:r,styles:t,isEditor:n})=>{var B,L;const o=F.useRef(null),[l,i]=F.useState(1),c=F.useRef(null),s=F.useRef(null),{general:p,card:a}=e,{width:_}=a.dimensions,h=p.autoplay==="on",d=e.general.speed?il(e.general.speed):0,u=e.card.dropShadow.active==="on"?e.card.dropShadow.blur+e.card.dropShadow.spread+Math.abs(e.card.dropShadow.right):0,m=k(_*r.length+e.card.gap*r.length+a.borders.width*2*r.length+u,n??!1),C=`${p.autoplay}-${r.length}`,A=e.card.dropShadow.active==="on",y=k(a.dimensions.height,n??!1),x=e.general.direction==="right",H=p.move==="one"?1:l;return F.useEffect(()=>{var v;if((v=o.current)!=null&&v.splide){const S=o.current.splide;S.options={...S.options,autoplay:h,perMove:1,perPage:h?r.length||3:l,interval:h?d||5e3:0,rewind:!h},S.refresh()}},[p.autoplay,d,r.length]),F.useEffect(()=>{(()=>{var I;if(!c.current)return;const S=c.current.clientWidth,N=(I=s.current)==null?void 0:I.clientWidth;if(!N||!S){i(1);return}const W=Math.max(1,Math.floor(S/N));i(W)})()},[e.card.gap,n,e.general.move]),f.jsxs(f.Fragment,{children:[f.jsx("div",{style:{height:`calc(100% + ${k(Math.abs(a.dropShadow.down)+a.dropShadow.blur+a.dropShadow.spread,n??!1)} )`,transform:a.dropShadow.down>0?`translateY(-${k(a.dropShadow.down,n??!1)})`:`translateY(${k(a.dropShadow.down,n??!1)})`,"--gradient-color":e.general.gradientCorners.color},className:e.general.gradientCorners.active==="gradient"?ie.gradientCorners:void 0}),f.jsxs("div",{className:ie.container,style:{flexDirection:"column",alignItems:"center"},children:[f.jsx("div",{className:oe(ie.wrapper,!h&&ie.wrapperAutoplayOff,A&&ie.wrapperDropShadow),style:{...m?{width:m}:{},"--card-gap":h?0:`${k(e.card.gap,n??!1)}`},ref:c,children:f.jsx(Nn,{ref:o,options:{type:h||((B=p.controls)==null?void 0:B.isActive)==="visible"?"loop":"slide",fixedWidth:k(_+a.borders.width*2,n??!1),height:"auto",arrows:!1,perMove:1,perPage:l,gap:h?k(e.card.gap,n??!1):0,padding:0,drag:!1,autoplay:h,speed:d,interval:d||5e3,rewind:!h,easing:"linear",direction:e.general.direction==="left"?"ltr":"rtl",pagination:!1,pauseOnHover:e.general.pause==="hover",pauseOnFocus:e.general.pause==="click"},children:r.map((v,S)=>{var N,W,I,D;return f.jsx(jn,{children:f.jsxs("div",{ref:s,style:{padding:`${k(e.card.padding.top,n??!1)} ${k(e.card.padding.right,n??!1)} ${k(e.card.padding.bottom,n??!1)} ${k(e.card.padding.left,n??!1)}`,width:k(_+a.borders.width*2,n??!1),minHeight:y,height:"100%",borderRadius:k(e.card.corner,n??!1),border:`${k(e.card.borders.width,n??!1)} solid ${e.card.borders.color}`,boxSizing:"border-box",position:"relative",boxShadow:e.card.dropShadow.active==="on"?`${k(e.card.dropShadow.right,n??!1)} ${k(e.card.dropShadow.down,n??!1)} ${k(e.card.dropShadow.blur,n??!1)} ${k(e.card.dropShadow.spread,n??!1)} ${e.card.dropShadow.color}`:"none"},children:[((N=v.image)==null?void 0:N.url)&&f.jsx("img",{className:ie.image,src:(W=v.image)==null?void 0:W.url,alt:(I=v.image)==null?void 0:I.name,style:{objectFit:((D=v.image)==null?void 0:D.objectFit)||"cover",borderRadius:`${k(e.card.corner,n??!1)}`,height:y}}),f.jsx("div",{className:ie.cover,style:{background:e.card.bgColor,borderRadius:`${k(e.card.corner,n??!1)}`,height:"100%"}}),f.jsx("div",{className:ie.elementsOverlay,style:{display:"flex",flexDirection:"column",inset:0,pointerEvents:"none"},children:(e.elements.elements.order??(Array.isArray(e.elements.elements.order)?e.elements.elements.order:["text","icon","caption"])).map((V,g)=>({key:V,order:g})).map(({key:V,order:g})=>{var j,T;if(V==="icon")return f.jsxs("div",{style:{order:g,zIndex:g},children:[f.jsx("div",{"data-controls":"elements.icon.margin.top",className:ie.control,style:{height:k(e.elements.icon.margin.top,n??!1)}}),f.jsx("div",{style:{width:"100%",textAlign:e.elements.icon.align},children:f.jsx("img",{src:(j=v.icon)==null?void 0:j.url,alt:(T=v.icon)==null?void 0:T.name,className:ie.icon,style:{transform:`scale(${e.elements.icon.scale/100})`,pointerEvents:"auto"}})})]},"icon");if(V==="text"&&t.imageCaption){const{widthSettings:R,fontSettings:b,letterSpacing:O,textAlign:Y,wordSpacing:ne,fontSizeLineHeight:Q,textAppearance:le,color:E}=t.imageCaption;return f.jsxs("div",{style:{order:g,zIndex:g},children:[f.jsx("div",{"data-controls":"elements.text.margin.top",className:ie.control,style:{height:k(e.elements.text.margin.top,n??!1)}}),f.jsx("div",{"data-styles":"imageCaption",className:ie.caption,style:{fontFamily:b.fontFamily,fontWeight:b.fontWeight,fontStyle:b.fontStyle,minHeight:k(e.elements.text.minHeight,n??!1),letterSpacing:k(O,n),wordSpacing:k(ne,n),textAlign:Y,fontSize:k(Q.fontSize,n),lineHeight:k(Q.lineHeight,n),textTransform:le.textTransform??"none",textDecoration:le.textDecoration??"none",fontVariant:le.fontVariant??"normal",color:E,pointerEvents:"auto"},children:f.jsx(Bt,{content:v.imageCaption})})]},"text")}if(V==="caption"&&t.caption){const{widthSettings:R,fontSettings:b,letterSpacing:O,textAlign:Y,wordSpacing:ne,fontSizeLineHeight:Q,textAppearance:le,color:E}=t.caption;return f.jsxs("div",{style:{order:g,zIndex:g},children:[f.jsx("div",{"data-controls":"elements.caption.margin.top",className:ie.control,style:{height:k(e.elements.caption.margin.top,n??!1)}}),f.jsx("div",{"data-styles":"caption",className:ie.caption,style:{fontFamily:b.fontFamily,fontWeight:b.fontWeight,fontStyle:b.fontStyle,minHeight:k(e.elements.caption.minHeight,n??!1),letterSpacing:k(O,n),wordSpacing:k(ne,n),textAlign:Y,fontSize:k(Q.fontSize,n),lineHeight:k(Q.lineHeight,n),textTransform:le.textTransform??"none",textDecoration:le.textDecoration??"none",fontVariant:le.fontVariant??"normal",color:E,pointerEvents:"auto"},children:f.jsx(Bt,{content:v.caption})})]},"caption")}return null})})]})},S)})},C)}),((L=e.general.controls)==null?void 0:L.isActive)==="visible"&&p.autoplay==="off"&&f.jsx(rl,{isRtl:x,step:H,controls:e.general.controls,isEditor:n??!1,sliderRef:o})]})]})},al={element:ol,id:"testimonials",name:"Testimonials",preview:{type:"video",url:"https://cdn.cntrl.site/component-assets/testimonials.mp4"},defaultSize:{width:700,height:300},schema:{type:"object",properties:{settings:{layoutBased:!0,type:"object",display:{type:"settings-block"},properties:{general:{icon:"thumbnail",type:"object",properties:{autoplay:{type:"string",title:"Autoplay",display:{type:"ratio-group",direction:"horizontal"},enum:["on","off"]},move:{type:"string",title:"Move",display:{type:"ratio-group",direction:"horizontal"},enum:["one","view"]},speed:{type:["string","null"],title:"Speed",display:{type:"step-selector"},enum:["1s","2s","3s","4s","5s","6s","7s","8s","9s","10s"]},direction:{type:"string",display:{type:"ratio-group"},enum:["left","right"]},pause:{title:"Pause on",type:"string",display:{type:"ratio-group"},enum:["hover","click","off"]},controls:{title:"controls",type:"object",properties:{isActive:{type:"string",title:"Controls",display:{type:"ratio-group",direction:"vertical"},enum:["visible","hidden"]},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},align:{display:{type:"align-grid",direction:"horizontal"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},gap:{type:"number",title:"Gap",scalingEnabled:!0,display:{type:"numeric-input"}},scale:{type:"number",title:"scale",min:50,max:600,display:{type:"range-control"}},color:{title:"color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},gradientCorners:{type:"object",title:"",display:{type:"group"},properties:{active:{type:"string",title:"Corners",display:{type:"ratio-group",direction:"vertical"},enum:["gradient","none"]},color:{type:"string",title:"Gradient",display:{type:"settings-color-picker",format:"single"}}}}}},card:{icon:"card",type:"object",properties:{dimensions:{type:"object",title:"Size",display:{type:"group"},properties:{width:{type:"number",label:"W",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},height:{type:"number",title:"Min Height",label:"H",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},gap:{type:"number",label:"Gap",scalingEnabled:!0,min:0,display:{type:"numeric-input"}},corner:{type:"number",title:"Corners",scalingEnabled:!0,min:0,label:"icon:border-radius",display:{type:"numeric-input"}},borders:{type:"object",title:"Borders",display:{type:"group"},properties:{width:{type:"number",label:"icon:border-width",scalingEnabled:!0,min:0,display:{type:"numeric-input"}},color:{type:"string",display:{type:"settings-color-picker",format:"single"}}}},bgColor:{title:"BG color",type:"string",display:{type:"settings-color-picker",format:"single"}},padding:{type:"object",title:"Padding",display:{type:"padding-controls"}},dropShadow:{type:"object",title:"Shadow",display:{type:"group"},properties:{active:{type:"string",title:"active",display:{type:"ratio-group",direction:"horizontal"},enum:["on","off"]},right:{type:"number",label:"x",scalingEnabled:!0,display:{type:"numeric-input"}},down:{type:"number",label:"y",scalingEnabled:!0,display:{type:"numeric-input"}},blur:{type:"number",label:"icon:blur",scalingEnabled:!0,display:{type:"numeric-input"}},spread:{type:"number",title:"Spread",scalingEnabled:!0,display:{type:"numeric-input"}},color:{title:"color",type:"string",display:{type:"settings-color-picker",format:"single"}}}}}},elements:{title:"elements",icon:"star",type:"object",properties:{elements:{type:"array",display:{type:"order-selector"},items:{type:"string",enum:["text","icon","caption"]},default:{order:["text","icon","caption"],active:"text"}},text:{type:"object",display:{type:"group"},properties:{minHeight:{type:"number",label:"H",title:"Min Height",scalingEnabled:!0,display:{type:"numeric-input"}},margin:{type:"object",title:"Margin",display:{type:"group",visible:!1},properties:{top:{type:"number",label:"Top",scalingEnabled:!0,min:0,display:{type:"numeric-input",visible:!1}}}}}},icon:{type:"object",display:{type:"group"},properties:{margin:{type:"object",title:"Margin",display:{type:"group",visible:!1},properties:{top:{type:"number",label:"Top",scalingEnabled:!0,display:{type:"numeric-input",visible:!1}}}},align:{type:"string",title:"Align",label:"align",enum:["left","center","right"],display:{type:"align-group",direction:"vertical"}},scale:{type:"number",title:"scale",min:50,max:600,display:{type:"range-control",visible:!1}}}},caption:{type:"object",display:{type:"group"},properties:{minHeight:{type:"number",label:"H",title:"Min Height",scalingEnabled:!0,display:{type:"numeric-input"}},margin:{type:"object",title:"Margin",display:{type:"group",visible:!1},properties:{top:{type:"number",label:"Top",scalingEnabled:!0,min:0,display:{type:"numeric-input",visible:!1}}}}}}}}},default:{general:{autoplay:"off",move:"one",speed:"5s",align:"left",direction:"left",pause:"off",controls:{isActive:"hidden",arrowsImgUrl:null,align:"top-center",gap:.02,scale:100,color:"#000000",hover:"#cccccc"},gradientCorners:{active:"none",color:"#ffffff"}},card:{dimensions:{width:.15,height:.2},gap:.02,corner:.005,borders:{width:.001,color:"#000000"},bgColor:"rgba(255, 255, 255, 0.2)",padding:{top:0,right:0,bottom:0,left:0},dropShadow:{active:"on",right:0,down:0,spread:0,blur:0,color:"#000000"}},elements:{elements:["text","icon","caption"],active:"text",text:{minHeight:.01,margin:{top:0}},icon:{margin:{top:0},scale:100,align:"left"},caption:{minHeight:.01,margin:{top:0}}}},displayRules:[{if:{name:"general.autoplay",value:"off"},then:{name:"properties.general.properties.move.display.visible",value:!0}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.move.display.visible",value:!1}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.direction.display.visible",value:!0}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.pause.display.visible",value:!0}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.controls.properties.align.display.visible",value:!1}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.controls.properties.gap.display.visible",value:!1}},{if:{name:"general.autoplay",value:"off"},then:{name:"properties.general.properties.direction.display.visible",value:!1}},{if:{name:"general.autoplay",value:"off"},then:{name:"properties.general.properties.pause.display.visible",value:!1}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.controls.properties.isActive.display.visible",value:!1}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.controls.properties.arrowsImgUrl.display.visible",value:!1}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.controls.properties.offset.display.visible",value:!1}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.controls.properties.scale.display.visible",value:!1}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.controls.properties.color.display.visible",value:!1}},{if:{name:"general.autoplay",value:"on"},then:{name:"properties.general.properties.controls.properties.hover.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"text"},then:{name:"properties.elements.properties.text.properties.minHeight.display.visible",value:!0}},{if:{name:"elements.elements.active",value:"text"},then:{name:"properties.elements.properties.caption.properties.minHeight.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"caption"},then:{name:"properties.elements.properties.caption.properties.minHeight.display.visible",value:!0}},{if:{name:"elements.elements.active",value:"caption"},then:{name:"properties.elements.properties.caption.properties.minHeight.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"caption"},then:{name:"properties.elements.properties.icon.properties.align.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"text"},then:{name:"properties.elements.properties.icon.properties.align.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"icon"},then:{name:"properties.elements.properties.text.properties.minHeight.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"icon"},then:{name:"properties.elements.properties.caption.properties.minHeight.display.visible",value:!1}},{if:{name:"elements.elements.active",value:"icon"},then:{name:"properties.elements.properties.icon.properties.scale.display.visible",value:!0}},{if:{name:"elements.elements.active",value:"icon"},then:{name:"properties.elements.properties.icon.properties.align.display.visible",value:!0}}]},content:{layoutBased:!1,type:"array",settings:{addItemFromFileExplorer:!1,defaultWidth:500},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{minWidth:58,maxWidth:108,type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},icon:{type:"object",label:"Icon",display:{minWidth:58,maxWidth:108,type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},imageCaption:{placeholder:"Add Text...",label:"Text",display:{type:"rich-text",minWidth:300,maxWidth:550}},caption:{placeholder:"Add Caption...",label:"Caption",display:{type:"rich-text",minWidth:300,maxWidth:550}}},required:["image"]},default:[{image:{},icon:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01GJ2SPNXG3V5P35ZA35YM1JTW/articles-assets/01KFXFA89BHQHVAJNAZCJMWDA1.png",name:""},imageCaption:[{type:"paragraph",children:[{text:"Innovative solutions redefine connectivity, enhancing user experience through seamless digital integration and efficiency."}]}],caption:[{type:"paragraph",children:[{text:"CEO @ Company"}]}]},{image:{},icon:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01GJ2SPNXG3V5P35ZA35YM1JTW/articles-assets/01KFXFA89BHQHVAJNAZCJMWDA1.png",name:""},imageCaption:[{type:"paragraph",children:[{text:"In the realm of digital innovation, transformative algorithms redefine connectivity, propelling unprecedented technological advancements."}]}],caption:[{type:"paragraph",children:[{text:"CEO @ Company"}]}]},{image:{},icon:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01GJ2SPNXG3V5P35ZA35YM1JTW/articles-assets/01KFXFA89BHQHVAJNAZCJMWDA1.png",name:""},imageCaption:[{type:"paragraph",children:[{text:"Harnessing innovative algorithms, this paradigm shift enhances computational efficiency and optimizes data processing frameworks."}]}],caption:[{type:"paragraph",children:[{text:"CEO @ Company"}]}]}]},styles:{layoutBased:!0,type:"object",properties:{imageCaption:{dataName:"imageCaption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}},caption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"manual"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.01,lineHeight:.01},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"},caption:{widthSettings:{width:.13,sizing:"manual"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.01,lineHeight:.01},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}},required:["settings","content","styles"]}}},ll=[Uo,Zo,Fa,al];exports.components=ll;