@cntrl-site/components 0.1.30-alpha.1 → 0.1.30-alpha.2

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"),$=require("react"),ie=require("classnames"),Fr=require("react-dom"),Wr="ControlSlider-module__wrapper___sHEkd",Mr="ControlSlider-module__hoverArrow___A-dOH",Vr="ControlSlider-module__sliderItem___QQSkR",$r="ControlSlider-module__sliderImage___9hRl-",Hr="ControlSlider-module__arrow___05ghY",Ur="ControlSlider-module__arrowVertical___tBfVN",Yr="ControlSlider-module__nextArrow___-30Yc",Gr="ControlSlider-module__arrowInner___aEra3",Xr="ControlSlider-module__arrowIcon___S4ztF",Kr="ControlSlider-module__arrowImg___2dwJW",qr="ControlSlider-module__mirror___brd6U",Jr="ControlSlider-module__pagination___bicLF",Zr="ControlSlider-module__paginationInner___bT-P-",Qr="ControlSlider-module__paginationVertical___zYqKw",ei="ControlSlider-module__paginationItem___nTRbk",ti="ControlSlider-module__dot___p1Qun",ni="ControlSlider-module__activeDot___LHFaj",ri="ControlSlider-module__paginationInsideBottom___R3FWn",ii="ControlSlider-module__paginationInsideTop___V-qb-",oi="ControlSlider-module__paginationOutsideBottom___14w8D",ai="ControlSlider-module__paginationOutsideTop___SCLqB",si="ControlSlider-module__paginationInsideLeft___yOBRZ",li="ControlSlider-module__paginationInsideRight___Rtt3o",ci="ControlSlider-module__paginationOutsideLeft___lahaw",ui="ControlSlider-module__paginationOutsideRight___EtuQa",pi="ControlSlider-module__imgWrapper___UjEgB",di="ControlSlider-module__captionBlock___dJ6-j",mi="ControlSlider-module__captionTextWrapper___HFlpf",fi="ControlSlider-module__captionText___uGBVc",gi="ControlSlider-module__active___WZK4G",hi="ControlSlider-module__withPointerEvents___t-18M",vi="ControlSlider-module__topLeftAlignment___zjnGM",yi="ControlSlider-module__topCenterAlignment___gD1xW",bi="ControlSlider-module__topRightAlignment___NMapS",_i="ControlSlider-module__middleLeftAlignment___OnUrY",xi="ControlSlider-module__middleCenterAlignment___Tdkl0",wi="ControlSlider-module__middleRightAlignment___wEbfX",Si="ControlSlider-module__bottomLeftAlignment___cTP2-",Ci="ControlSlider-module__bottomCenterAlignment___c54fB",Ai="ControlSlider-module__bottomRightAlignment___kEwrz",Ii="ControlSlider-module__clickOverlay___DZA28",Ei="ControlSlider-module__contain___pLyq7",Li="ControlSlider-module__cover___KdDat",Y={wrapper:Wr,hoverArrow:Mr,sliderItem:Vr,sliderImage:$r,arrow:Hr,arrowVertical:Ur,nextArrow:Yr,arrowInner:Gr,arrowIcon:Xr,arrowImg:Kr,mirror:qr,pagination:Jr,paginationInner:Zr,paginationVertical:Qr,paginationItem:ei,dot:ti,activeDot:ni,paginationInsideBottom:ri,paginationInsideTop:ii,paginationOutsideBottom:oi,paginationOutsideTop:ai,paginationInsideLeft:si,paginationInsideRight:li,paginationOutsideLeft:ci,paginationOutsideRight:ui,imgWrapper:pi,captionBlock:di,captionTextWrapper:mi,captionText:fi,active:gi,withPointerEvents:hi,topLeftAlignment:vi,topCenterAlignment:yi,topRightAlignment:bi,middleLeftAlignment:_i,middleCenterAlignment:xi,middleRightAlignment:wi,bottomLeftAlignment:Si,bottomCenterAlignment:Ci,bottomRightAlignment:Ai,clickOverlay:Ii,contain:Ei,cover:Li};function Ti(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function Ri(e,r,n){return r&&Ti(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var On="(prefers-reduced-motion: reduce)",Je=1,Ni=2,et=3,rt=4,ht=5,Tt=6,jt=7,ki={CREATED:Je,MOUNTED:Ni,IDLE:et,MOVING:rt,SCROLLING:ht,DRAGGING:Tt,DESTROYED:jt};function Oe(e){e.length=0}function Fe(e,r,n){return Array.prototype.slice.call(e,r,n)}function oe(e){return e.bind.apply(e,[null].concat(Fe(arguments,1)))}var nr=setTimeout,nn=function(){};function Dn(e){return requestAnimationFrame(e)}function Ft(e,r){return typeof r===e}function ct(e){return!mn(e)&&Ft("object",e)}var dn=Array.isArray,rr=oe(Ft,"function"),Be=oe(Ft,"string"),vt=oe(Ft,"undefined");function mn(e){return e===null}function ir(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function yt(e){return dn(e)?e:[e]}function we(e,r){yt(e).forEach(r)}function fn(e,r){return e.indexOf(r)>-1}function Rt(e,r){return e.push.apply(e,yt(r)),e}function Ne(e,r,n){e&&we(r,function(t){t&&e.classList[n?"add":"remove"](t)})}function Ie(e,r){Ne(e,Be(r)?r.split(" "):r,!0)}function bt(e,r){we(r,e.appendChild.bind(e))}function gn(e,r){we(e,function(n){var t=(r||n).parentNode;t&&t.insertBefore(n,r)})}function ut(e,r){return ir(e)&&(e.msMatchesSelector||e.matches).call(e,r)}function or(e,r){var n=e?Fe(e.children):[];return r?n.filter(function(t){return ut(t,r)}):n}function _t(e,r){return r?or(e,r)[0]:e.firstElementChild}var pt=Object.keys;function $e(e,r,n){return e&&(n?pt(e).reverse():pt(e)).forEach(function(t){t!=="__proto__"&&r(e[t],t)}),e}function dt(e){return Fe(arguments,1).forEach(function(r){$e(r,function(n,t){e[t]=r[t]})}),e}function Pe(e){return Fe(arguments,1).forEach(function(r){$e(r,function(n,t){dn(n)?e[t]=n.slice():ct(n)?e[t]=Pe({},ct(e[t])?e[t]:{},n):e[t]=n})}),e}function Pn(e,r){we(r||pt(e),function(n){delete e[n]})}function Ee(e,r){we(e,function(n){we(r,function(t){n&&n.removeAttribute(t)})})}function q(e,r,n){ct(r)?$e(r,function(t,i){q(e,i,t)}):we(e,function(t){mn(n)||n===""?Ee(t,r):t.setAttribute(r,String(n))})}function Ze(e,r,n){var t=document.createElement(e);return r&&(Be(r)?Ie(t,r):q(t,r)),n&&bt(n,t),t}function Se(e,r,n){if(vt(n))return getComputedStyle(e)[r];mn(n)||(e.style[r]=""+n)}function mt(e,r){Se(e,"display",r)}function ar(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function Ce(e,r){return e.getAttribute(r)}function Bn(e,r){return e&&e.classList.contains(r)}function _e(e){return e.getBoundingClientRect()}function Ue(e){we(e,function(r){r&&r.parentNode&&r.parentNode.removeChild(r)})}function sr(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 hn(e,r){return r?Fe(e.querySelectorAll(r)):[]}function ke(e,r){Ne(e,r,!1)}function rn(e){return e.timeStamp}function Ve(e){return Be(e)?e:e?e+"px":""}var xt="splide",vn="data-"+xt;function st(e,r){if(!e)throw new Error("["+xt+"] "+(r||""))}var ze=Math.min,Ot=Math.max,Dt=Math.floor,ft=Math.ceil,be=Math.abs;function cr(e,r,n){return be(e-r)<n}function Nt(e,r,n,t){var i=ze(r,n),s=Ot(r,n);return t?i<e&&e<s:i<=e&&e<=s}function Ke(e,r,n){var t=ze(r,n),i=Ot(r,n);return ze(Ot(t,e),i)}function on(e){return+(e>0)-+(e<0)}function an(e,r){return we(r,function(n){e=e.replace("%s",""+n)}),e}function yn(e){return e<10?"0"+e:""+e}var zn={};function ji(e){return""+e+yn(zn[e]=(zn[e]||0)+1)}function ur(){var e=[];function r(o,a,l,d){i(o,a,function(u,x,m){var b="addEventListener"in u,c=b?u.removeEventListener.bind(u,x,l,d):u.removeListener.bind(u,l);b?u.addEventListener(x,l,d):u.addListener(l),e.push([u,x,m,l,c])})}function n(o,a,l){i(o,a,function(d,u,x){e=e.filter(function(m){return m[0]===d&&m[1]===u&&m[2]===x&&(!l||m[3]===l)?(m[4](),!1):!0})})}function t(o,a,l){var d,u=!0;return typeof CustomEvent=="function"?d=new CustomEvent(a,{bubbles:u,detail:l}):(d=document.createEvent("CustomEvent"),d.initCustomEvent(a,u,!1,l)),o.dispatchEvent(d),d}function i(o,a,l){we(o,function(d){d&&we(a,function(u){u.split(" ").forEach(function(x){var m=x.split(".");l(d,m[0],m[1])})})})}function s(){e.forEach(function(o){o[4]()}),Oe(e)}return{bind:r,unbind:n,dispatch:t,destroy:s}}var We="mounted",sn="ready",De="move",it="moved",bn="click",pr="active",dr="inactive",mr="visible",fr="hidden",de="refresh",ve="updated",tt="resize",Wt="resized",gr="drag",hr="dragging",vr="dragged",Mt="scroll",Ge="scrolled",Oi="overflow",_n="destroy",yr="arrows:mounted",br="arrows:updated",_r="pagination:mounted",xr="pagination:updated",xn="navigation:mounted",wn="autoplay:play",wr="autoplay:playing",Sn="autoplay:pause",Cn="lazyload:loaded",Sr="sk",Cr="sh",Pt="ei";function le(e){var r=e?e.event.bus:document.createDocumentFragment(),n=ur();function t(s,o){n.bind(r,yt(s).join(" "),function(a){o.apply(o,dn(a.detail)?a.detail:[])})}function i(s){n.dispatch(r,s,Fe(arguments,1))}return e&&e.event.on(_n,n.destroy),dt(n,{bus:r,on:t,off:oe(n.unbind,r),emit:i})}function Vt(e,r,n,t){var i=Date.now,s,o=0,a,l=!0,d=0;function u(){if(!l){if(o=e?ze((i()-s)/e,1):1,n&&n(o),o>=1&&(r(),s=i(),t&&++d>=t))return m();a=Dn(u)}}function x(v){v||c(),s=i()-(v?o*e:0),l=!1,a=Dn(u)}function m(){l=!0}function b(){s=i(),o=0,n&&n(o)}function c(){a&&cancelAnimationFrame(a),o=0,a=0,l=!0}function p(v){e=v}function C(){return l}return{start:x,rewind:b,pause:m,cancel:c,set:p,isPaused:C}}function Di(e){var r=e;function n(i){r=i}function t(i){return fn(yt(i),r)}return{set:n,is:t}}function Pi(e,r){var n=Vt(0,e,null,1);return function(){n.isPaused()&&n.start()}}function Bi(e,r,n){var t=e.state,i=n.breakpoints||{},s=n.reducedMotion||{},o=ur(),a=[];function l(){var c=n.mediaQuery==="min";pt(i).sort(function(p,C){return c?+p-+C:+C-+p}).forEach(function(p){u(i[p],"("+(c?"min":"max")+"-width:"+p+"px)")}),u(s,On),x()}function d(c){c&&o.destroy()}function u(c,p){var C=matchMedia(p);o.bind(C,"change",x),a.push([c,C])}function x(){var c=t.is(jt),p=n.direction,C=a.reduce(function(v,g){return Pe(v,g[1].matches?g[0]:{})},{});Pn(n),b(C),n.destroy?e.destroy(n.destroy==="completely"):c?(d(!0),e.mount()):p!==n.direction&&e.refresh()}function m(c){matchMedia(On).matches&&(c?Pe(n,s):Pn(n,pt(s)))}function b(c,p,C){Pe(n,c),p&&Pe(Object.getPrototypeOf(n),c),(C||!t.is(Je))&&e.emit(ve,n)}return{setup:l,destroy:d,reduce:m,set:b}}var $t="Arrow",Ht=$t+"Left",Ut=$t+"Right",Ar=$t+"Up",Ir=$t+"Down",Fn="rtl",Yt="ttb",qt={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Ar,Ut],ArrowRight:[Ir,Ht]};function zi(e,r,n){function t(s,o,a){a=a||n.direction;var l=a===Fn&&!o?1:a===Yt?0:-1;return qt[s]&&qt[s][l]||s.replace(/width|left|right/i,function(d,u){var x=qt[d.toLowerCase()][l]||d;return u>0?x.charAt(0).toUpperCase()+x.slice(1):x})}function i(s){return s*(n.direction===Fn?1:-1)}return{resolve:t,orient:i}}var je="role",Qe="tabindex",Fi="disabled",Ae="aria-",wt=Ae+"controls",Er=Ae+"current",Wn=Ae+"selected",xe=Ae+"label",An=Ae+"labelledby",Lr=Ae+"hidden",In=Ae+"orientation",gt=Ae+"roledescription",Mn=Ae+"live",Vn=Ae+"busy",$n=Ae+"atomic",En=[je,Qe,Fi,wt,Er,xe,An,Lr,In,gt],Le=xt+"__",Me="is-",Jt=xt,Hn=Le+"track",Wi=Le+"list",Gt=Le+"slide",Tr=Gt+"--clone",Mi=Gt+"__container",Ln=Le+"arrows",Xt=Le+"arrow",Rr=Xt+"--prev",Nr=Xt+"--next",Kt=Le+"pagination",kr=Kt+"__page",Vi=Le+"progress",$i=Vi+"__bar",Hi=Le+"toggle",Ui=Le+"spinner",Yi=Le+"sr",Gi=Me+"initialized",Ye=Me+"active",jr=Me+"prev",Or=Me+"next",ln=Me+"visible",cn=Me+"loading",Dr=Me+"focus-in",Pr=Me+"overflow",Xi=[Ye,ln,jr,Or,cn,Dr,Pr],Ki={slide:Gt,clone:Tr,arrows:Ln,arrow:Xt,prev:Rr,next:Nr,pagination:Kt,page:kr,spinner:Ui};function qi(e,r){if(rr(e.closest))return e.closest(r);for(var n=e;n&&n.nodeType===1&&!ut(n,r);)n=n.parentElement;return n}var Ji=5,Un=200,Br="touchstart mousedown",Zt="touchmove mousemove",Qt="touchend touchcancel mouseup click";function Zi(e,r,n){var t=le(e),i=t.on,s=t.bind,o=e.root,a=n.i18n,l={},d=[],u=[],x=[],m,b,c;function p(){w(),V(),g()}function C(){i(de,v),i(de,p),i(ve,g),s(document,Br+" keydown",function(y){c=y.type==="keydown"},{capture:!0}),s(o,"focusin",function(){Ne(o,Dr,!!c)})}function v(y){var A=En.concat("style");Oe(d),ke(o,u),ke(m,x),Ee([m,b],A),Ee(o,y?A:["style",gt])}function g(){ke(o,u),ke(m,x),u=I(Jt),x=I(Hn),Ie(o,u),Ie(m,x),q(o,xe,n.label),q(o,An,n.labelledby)}function w(){m=F("."+Hn),b=_t(m,"."+Wi),st(m&&b,"A track/list element is missing."),Rt(d,or(b,"."+Gt+":not(."+Tr+")")),$e({arrows:Ln,pagination:Kt,prev:Rr,next:Nr,bar:$i,toggle:Hi},function(y,A){l[A]=F("."+y)}),dt(l,{root:o,track:m,list:b,slides:d})}function V(){var y=o.id||ji(xt),A=n.role;o.id=y,m.id=m.id||y+"-track",b.id=b.id||y+"-list",!Ce(o,je)&&o.tagName!=="SECTION"&&A&&q(o,je,A),q(o,gt,a.carousel),q(b,je,"presentation")}function F(y){var A=lr(o,y);return A&&qi(A,"."+Jt)===o?A:void 0}function I(y){return[y+"--"+n.type,y+"--"+n.direction,n.drag&&y+"--draggable",n.isNavigation&&y+"--nav",y===Jt&&Ye]}return dt(l,{setup:p,mount:C,destroy:v})}var nt="slide",ot="loop",St="fade";function Qi(e,r,n,t){var i=le(e),s=i.on,o=i.emit,a=i.bind,l=e.Components,d=e.root,u=e.options,x=u.isNavigation,m=u.updateOnMove,b=u.i18n,c=u.pagination,p=u.slideFocus,C=l.Direction.resolve,v=Ce(t,"style"),g=Ce(t,xe),w=n>-1,V=_t(t,"."+Mi),F;function I(){w||(t.id=d.id+"-slide"+yn(r+1),q(t,je,c?"tabpanel":"group"),q(t,gt,b.slide),q(t,xe,g||an(b.slideLabel,[r+1,e.length]))),y()}function y(){a(t,"click",oe(o,bn,R)),a(t,"keydown",oe(o,Sr,R)),s([it,Cr,Ge],E),s(xn,L),m&&s(De,B)}function A(){F=!0,i.destroy(),ke(t,Xi),Ee(t,En),q(t,"style",v),q(t,xe,g||"")}function L(){var N=e.splides.map(function(S){var P=S.splide.Components.Slides.getAt(r);return P?P.slide.id:""}).join(" ");q(t,xe,an(b.slideX,(w?n:r)+1)),q(t,wt,N),q(t,je,p?"button":""),p&&Ee(t,gt)}function B(){F||E()}function E(){if(!F){var N=e.index;j(),D(),Ne(t,jr,r===N-1),Ne(t,Or,r===N+1)}}function j(){var N=W();N!==Bn(t,Ye)&&(Ne(t,Ye,N),q(t,Er,x&&N||""),o(N?pr:dr,R))}function D(){var N=f(),S=!N&&(!W()||w);if(e.state.is([rt,ht])||q(t,Lr,S||""),q(hn(t,u.focusableNodes||""),Qe,S?-1:""),p&&q(t,Qe,S?-1:0),N!==Bn(t,ln)&&(Ne(t,ln,N),o(N?mr:fr,R)),!N&&document.activeElement===t){var P=l.Slides.getAt(e.index);P&&ar(P.slide)}}function H(N,S,P){Se(P&&V||t,N,S)}function W(){var N=e.index;return N===r||u.cloneStatus&&N===n}function f(){if(e.is(St))return W();var N=_e(l.Elements.track),S=_e(t),P=C("left",!0),X=C("right",!0);return Dt(N[P])<=ft(S[P])&&Dt(S[X])<=ft(N[X])}function k(N,S){var P=be(N-r);return!w&&(u.rewind||e.is(ot))&&(P=ze(P,e.length-P)),P<=S}var R={index:r,slideIndex:n,slide:t,container:V,isClone:w,mount:I,destroy:A,update:E,style:H,isWithin:k};return R}function eo(e,r,n){var t=le(e),i=t.on,s=t.emit,o=t.bind,a=r.Elements,l=a.slides,d=a.list,u=[];function x(){m(),i(de,b),i(de,m)}function m(){l.forEach(function(E,j){p(E,j,-1)})}function b(){F(function(E){E.destroy()}),Oe(u)}function c(){F(function(E){E.update()})}function p(E,j,D){var H=Qi(e,j,D,E);H.mount(),u.push(H),u.sort(function(W,f){return W.index-f.index})}function C(E){return E?I(function(j){return!j.isClone}):u}function v(E){var j=r.Controller,D=j.toIndex(E),H=j.hasFocus()?1:n.perPage;return I(function(W){return Nt(W.index,D,D+H-1)})}function g(E){return I(E)[0]}function w(E,j){we(E,function(D){if(Be(D)&&(D=sr(D)),ir(D)){var H=l[j];H?gn(D,H):bt(d,D),Ie(D,n.classes.slide),A(D,oe(s,tt))}}),s(de)}function V(E){Ue(I(E).map(function(j){return j.slide})),s(de)}function F(E,j){C(j).forEach(E)}function I(E){return u.filter(rr(E)?E:function(j){return Be(E)?ut(j.slide,E):fn(yt(E),j.index)})}function y(E,j,D){F(function(H){H.style(E,j,D)})}function A(E,j){var D=hn(E,"img"),H=D.length;H?D.forEach(function(W){o(W,"load error",function(){--H||j()})}):j()}function L(E){return E?l.length:u.length}function B(){return u.length>n.perPage}return{mount:x,destroy:b,update:c,register:p,get:C,getIn:v,getAt:g,add:w,remove:V,forEach:F,filter:I,style:y,getLength:L,isEnough:B}}function to(e,r,n){var t=le(e),i=t.on,s=t.bind,o=t.emit,a=r.Slides,l=r.Direction.resolve,d=r.Elements,u=d.root,x=d.track,m=d.list,b=a.getAt,c=a.style,p,C,v;function g(){w(),s(window,"resize load",Pi(oe(o,tt))),i([ve,de],w),i(tt,V)}function w(){p=n.direction===Yt,Se(u,"maxWidth",Ve(n.width)),Se(x,l("paddingLeft"),F(!1)),Se(x,l("paddingRight"),F(!0)),V(!0)}function V(R){var N=_e(u);(R||C.width!==N.width||C.height!==N.height)&&(Se(x,"height",I()),c(l("marginRight"),Ve(n.gap)),c("width",A()),c("height",L(),!0),C=N,o(Wt),v!==(v=k())&&(Ne(u,Pr,v),o(Oi,v)))}function F(R){var N=n.padding,S=l(R?"right":"left");return N&&Ve(N[S]||(ct(N)?0:N))||"0px"}function I(){var R="";return p&&(R=y(),st(R,"height or heightRatio is missing."),R="calc("+R+" - "+F(!1)+" - "+F(!0)+")"),R}function y(){return Ve(n.height||_e(m).width*n.heightRatio)}function A(){return n.autoWidth?null:Ve(n.fixedWidth)||(p?"":B())}function L(){return Ve(n.fixedHeight)||(p?n.autoHeight?null:B():y())}function B(){var R=Ve(n.gap);return"calc((100%"+(R&&" + "+R)+")/"+(n.perPage||1)+(R&&" - "+R)+")"}function E(){return _e(m)[l("width")]}function j(R,N){var S=b(R||0);return S?_e(S.slide)[l("width")]+(N?0:W()):0}function D(R,N){var S=b(R);if(S){var P=_e(S.slide)[l("right")],X=_e(m)[l("left")];return be(P-X)+(N?0:W())}return 0}function H(R){return D(e.length-1)-D(0)+j(0,R)}function W(){var R=b(0);return R&&parseFloat(Se(R.slide,l("marginRight")))||0}function f(R){return parseFloat(Se(x,l("padding"+(R?"Right":"Left"))))||0}function k(){return e.is(St)||H(!0)>E()}return{mount:g,resize:V,listSize:E,slideSize:j,sliderSize:H,totalSize:D,getPadding:f,isOverflow:k}}var no=2;function ro(e,r,n){var t=le(e),i=t.on,s=r.Elements,o=r.Slides,a=r.Direction.resolve,l=[],d;function u(){i(de,x),i([ve,tt],b),(d=C())&&(c(d),r.Layout.resize(!0))}function x(){m(),u()}function m(){Ue(l),Oe(l),t.destroy()}function b(){var v=C();d!==v&&(d<v||!v)&&t.emit(de)}function c(v){var g=o.get().slice(),w=g.length;if(w){for(;g.length<v;)Rt(g,g);Rt(g.slice(-v),g.slice(0,v)).forEach(function(V,F){var I=F<v,y=p(V.slide,F);I?gn(y,g[0].slide):bt(s.list,y),Rt(l,y),o.register(y,F-v+(I?0:w),V.index)})}}function p(v,g){var w=v.cloneNode(!0);return Ie(w,n.classes.clone),w.id=e.root.id+"-clone"+yn(g+1),w}function C(){var v=n.clones;if(!e.is(ot))v=0;else if(vt(v)){var g=n[a("fixedWidth")]&&r.Layout.slideSize(0),w=g&&ft(_e(s.track)[a("width")]/g);v=w||n[a("autoWidth")]&&e.length||n.perPage*no}return v}return{mount:u,destroy:m}}function io(e,r,n){var t=le(e),i=t.on,s=t.emit,o=e.state.set,a=r.Layout,l=a.slideSize,d=a.getPadding,u=a.totalSize,x=a.listSize,m=a.sliderSize,b=r.Direction,c=b.resolve,p=b.orient,C=r.Elements,v=C.list,g=C.track,w;function V(){w=r.Transition,i([We,Wt,ve,de],F)}function F(){r.Controller.isBusy()||(r.Scroll.cancel(),y(e.index),r.Slides.update())}function I(S,P,X,re){S!==P&&R(S>X)&&(E(),A(B(H(),S>X),!0)),o(rt),s(De,P,X,S),w.start(P,function(){o(et),s(it,P,X,S),re&&re()})}function y(S){A(D(S,!0))}function A(S,P){if(!e.is(St)){var X=P?S:L(S);Se(v,"transform","translate"+c("X")+"("+X+"px)"),S!==X&&s(Cr)}}function L(S){if(e.is(ot)){var P=j(S),X=P>r.Controller.getEnd(),re=P<0;(re||X)&&(S=B(S,X))}return S}function B(S,P){var X=S-k(P),re=m();return S-=p(re*(ft(be(X)/re)||1))*(P?1:-1),S}function E(){A(H(),!0),w.cancel()}function j(S){for(var P=r.Slides.get(),X=0,re=1/0,te=0;te<P.length;te++){var he=P[te].index,T=be(D(he,!0)-S);if(T<=re)re=T,X=he;else break}return X}function D(S,P){var X=p(u(S-1)-f(S));return P?W(X):X}function H(){var S=c("left");return _e(v)[S]-_e(g)[S]+p(d(!1))}function W(S){return n.trimSpace&&e.is(nt)&&(S=Ke(S,0,p(m(!0)-x()))),S}function f(S){var P=n.focus;return P==="center"?(x()-l(S,!0))/2:+P*l(S)||0}function k(S){return D(S?r.Controller.getEnd():0,!!n.trimSpace)}function R(S){var P=p(B(H(),S));return S?P>=0:P<=v[c("scrollWidth")]-_e(g)[c("width")]}function N(S,P){P=vt(P)?H():P;var X=S!==!0&&p(P)<p(k(!1)),re=S!==!1&&p(P)>p(k(!0));return X||re}return{mount:V,move:I,jump:y,translate:A,shift:B,cancel:E,toIndex:j,toPosition:D,getPosition:H,getLimit:k,exceededLimit:N,reposition:F}}function oo(e,r,n){var t=le(e),i=t.on,s=t.emit,o=r.Move,a=o.getPosition,l=o.getLimit,d=o.toPosition,u=r.Slides,x=u.isEnough,m=u.getLength,b=n.omitEnd,c=e.is(ot),p=e.is(nt),C=oe(H,!1),v=oe(H,!0),g=n.start||0,w,V=g,F,I,y;function A(){L(),i([ve,de,Pt],L),i(Wt,B)}function L(){F=m(!0),I=n.perMove,y=n.perPage,w=R();var T=Ke(g,0,b?w:F-1);T!==g&&(g=T,o.reposition())}function B(){w!==R()&&s(Pt)}function E(T,J,ge){if(!he()){var ae=D(T),fe=k(ae);fe>-1&&(J||fe!==g)&&(X(fe),o.move(ae,fe,V,ge))}}function j(T,J,ge,ae){r.Scroll.scroll(T,J,ge,function(){var fe=k(o.toIndex(a()));X(b?ze(fe,w):fe),ae&&ae()})}function D(T){var J=g;if(Be(T)){var ge=T.match(/([+\-<>])(\d+)?/)||[],ae=ge[1],fe=ge[2];ae==="+"||ae==="-"?J=W(g+ +(""+ae+(+fe||1)),g):ae===">"?J=fe?N(+fe):C(!0):ae==="<"&&(J=v(!0))}else J=c?T:Ke(T,0,w);return J}function H(T,J){var ge=I||(te()?1:y),ae=W(g+ge*(T?-1:1),g,!(I||te()));return ae===-1&&p&&!cr(a(),l(!T),1)?T?0:w:J?ae:k(ae)}function W(T,J,ge){if(x()||te()){var ae=f(T);ae!==T&&(J=T,T=ae,ge=!1),T<0||T>w?!I&&(Nt(0,T,J,!0)||Nt(w,J,T,!0))?T=N(S(T)):c?T=ge?T<0?-(F%y||y):F:T:n.rewind?T=T<0?w:0:T=-1:ge&&T!==J&&(T=N(S(J)+(T<J?-1:1)))}else T=-1;return T}function f(T){if(p&&n.trimSpace==="move"&&T!==g)for(var J=a();J===d(T,!0)&&Nt(T,0,e.length-1,!n.rewind);)T<g?--T:++T;return T}function k(T){return c?(T+F)%F||0:T}function R(){for(var T=F-(te()||c&&I?1:y);b&&T-- >0;)if(d(F-1,!0)!==d(T,!0)){T++;break}return Ke(T,0,F-1)}function N(T){return Ke(te()?T:y*T,0,w)}function S(T){return te()?ze(T,w):Dt((T>=w?F-1:T)/y)}function P(T){var J=o.toIndex(T);return p?Ke(J,0,w):J}function X(T){T!==g&&(V=g,g=T)}function re(T){return T?V:g}function te(){return!vt(n.focus)||n.isNavigation}function he(){return e.state.is([rt,ht])&&!!n.waitForTransition}return{mount:A,go:E,scroll:j,getNext:C,getPrev:v,getAdjacent:H,getEnd:R,setIndex:X,getIndex:re,toIndex:N,toPage:S,toDest:P,hasFocus:te,isBusy:he}}var ao="http://www.w3.org/2000/svg",so="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,n){var t=le(e),i=t.on,s=t.bind,o=t.emit,a=n.classes,l=n.i18n,d=r.Elements,u=r.Controller,x=d.arrows,m=d.track,b=x,c=d.prev,p=d.next,C,v,g={};function w(){F(),i(ve,V)}function V(){I(),w()}function F(){var j=n.arrows;j&&!(c&&p)&&L(),c&&p&&(dt(g,{prev:c,next:p}),mt(b,j?"":"none"),Ie(b,v=Ln+"--"+n.direction),j&&(y(),E(),q([c,p],wt,m.id),o(yr,c,p)))}function I(){t.destroy(),ke(b,v),C?(Ue(x?[c,p]:b),c=p=null):Ee([c,p],En)}function y(){i([We,it,de,Ge,Pt],E),s(p,"click",oe(A,">")),s(c,"click",oe(A,"<"))}function A(j){u.go(j,!0)}function L(){b=x||Ze("div",a.arrows),c=B(!0),p=B(!1),C=!0,bt(b,[c,p]),!x&&gn(b,m)}function B(j){var D='<button class="'+a.arrow+" "+(j?a.prev:a.next)+'" type="button"><svg xmlns="'+ao+'" viewBox="0 0 '+Et+" "+Et+'" width="'+Et+'" height="'+Et+'" focusable="false"><path d="'+(n.arrowPath||so)+'" />';return sr(D)}function E(){if(c&&p){var j=e.index,D=u.getPrev(),H=u.getNext(),W=D>-1&&j<D?l.last:l.prev,f=H>-1&&j>H?l.first:l.next;c.disabled=D<0,p.disabled=H<0,q(c,xe,W),q(p,xe,f),o(br,c,p,D,H)}}return{arrows:g,mount:w,destroy:I,update:E}}var co=vn+"-interval";function uo(e,r,n){var t=le(e),i=t.on,s=t.bind,o=t.emit,a=Vt(n.interval,e.go.bind(e,">"),y),l=a.isPaused,d=r.Elements,u=r.Elements,x=u.root,m=u.toggle,b=n.autoplay,c,p,C=b==="pause";function v(){b&&(g(),m&&q(m,wt,d.track.id),C||w(),I())}function g(){n.pauseOnHover&&s(x,"mouseenter mouseleave",function(L){c=L.type==="mouseenter",F()}),n.pauseOnFocus&&s(x,"focusin focusout",function(L){p=L.type==="focusin",F()}),m&&s(m,"click",function(){C?w():V(!0)}),i([De,Mt,de],a.rewind),i(De,A)}function w(){l()&&r.Slides.isEnough()&&(a.start(!n.resetProgress),p=c=C=!1,I(),o(wn))}function V(L){L===void 0&&(L=!0),C=!!L,I(),l()||(a.pause(),o(Sn))}function F(){C||(c||p?V(!1):w())}function I(){m&&(Ne(m,Ye,!C),q(m,xe,n.i18n[C?"play":"pause"]))}function y(L){var B=d.bar;B&&Se(B,"width",L*100+"%"),o(wr,L)}function A(L){var B=r.Slides.getAt(L);a.set(B&&+Ce(B.slide,co)||n.interval)}return{mount:v,destroy:a.cancel,play:w,pause:V,isPaused:l}}function po(e,r,n){var t=le(e),i=t.on;function s(){n.cover&&(i(Cn,oe(a,!0)),i([We,ve,de],oe(o,!0)))}function o(l){r.Slides.forEach(function(d){var u=_t(d.container||d.slide,"img");u&&u.src&&a(l,u,d)})}function a(l,d,u){u.style("background",l?'center/cover no-repeat url("'+d.src+'")':"",!0),mt(d,l?"none":"")}return{mount:s,destroy:oe(o,!1)}}var mo=10,fo=600,go=.6,ho=1.5,vo=800;function yo(e,r,n){var t=le(e),i=t.on,s=t.emit,o=e.state.set,a=r.Move,l=a.getPosition,d=a.getLimit,u=a.exceededLimit,x=a.translate,m=e.is(nt),b,c,p=1;function C(){i(De,V),i([ve,de],F)}function v(y,A,L,B,E){var j=l();if(V(),L&&(!m||!u())){var D=r.Layout.sliderSize(),H=on(y)*D*Dt(be(y)/D)||0;y=a.toPosition(r.Controller.toDest(y%D))+H}var W=cr(j,y,1);p=1,A=W?0:A||Ot(be(y-j)/ho,vo),c=B,b=Vt(A,g,oe(w,j,y,E),1),o(ht),s(Mt),b.start()}function g(){o(et),c&&c(),s(Ge)}function w(y,A,L,B){var E=l(),j=y+(A-y)*I(B),D=(j-E)*p;x(E+D),m&&!L&&u()&&(p*=go,be(D)<mo&&v(d(u(!0)),fo,!1,c,!0))}function V(){b&&b.cancel()}function F(){b&&!b.isPaused()&&(V(),g())}function I(y){var A=n.easingFunc;return A?A(y):1-Math.pow(1-y,4)}return{mount:C,destroy:V,scroll:v,cancel:F}}var qe={passive:!1,capture:!0};function bo(e,r,n){var t=le(e),i=t.on,s=t.emit,o=t.bind,a=t.unbind,l=e.state,d=r.Move,u=r.Scroll,x=r.Controller,m=r.Elements.track,b=r.Media.reduce,c=r.Direction,p=c.resolve,C=c.orient,v=d.getPosition,g=d.exceededLimit,w,V,F,I,y,A=!1,L,B,E;function j(){o(m,Zt,nn,qe),o(m,Qt,nn,qe),o(m,Br,H,qe),o(m,"click",k,{capture:!0}),o(m,"dragstart",Re),i([We,ve],D)}function D(){var M=n.drag;Ct(!M),I=M==="free"}function H(M){if(L=!1,!B){var _=fe(M);ae(M.target)&&(_||!M.button)&&(x.isBusy()?Re(M,!0):(E=_?m:window,y=l.is([rt,ht]),F=null,o(E,Zt,W,qe),o(E,Qt,f,qe),d.cancel(),u.cancel(),R(M)))}}function W(M){if(l.is(Tt)||(l.set(Tt),s(gr)),M.cancelable)if(y){d.translate(w+ge(te(M)));var _=he(M)>Un,U=A!==(A=g());(_||U)&&R(M),L=!0,s(hr),Re(M)}else P(M)&&(y=S(M),Re(M))}function f(M){l.is(Tt)&&(l.set(et),s(vr)),y&&(N(M),Re(M)),a(E,Zt,W),a(E,Qt,f),y=!1}function k(M){!B&&L&&Re(M,!0)}function R(M){F=V,V=M,w=v()}function N(M){var _=X(M),U=re(_),G=n.rewind&&n.rewindByDrag;b(!1),I?x.scroll(U,0,n.snap):e.is(St)?x.go(C(on(_))<0?G?"<":"-":G?">":"+"):e.is(nt)&&A&&G?x.go(g(!0)?">":"<"):x.go(x.toDest(U),!0),b(!0)}function S(M){var _=n.dragMinThreshold,U=ct(_),G=U&&_.mouse||0,Z=(U?_.touch:+_)||10;return be(te(M))>(fe(M)?Z:G)}function P(M){return be(te(M))>be(te(M,!0))}function X(M){if(e.is(ot)||!A){var _=he(M);if(_&&_<Un)return te(M)/_}return 0}function re(M){return v()+on(M)*ze(be(M)*(n.flickPower||600),I?1/0:r.Layout.listSize()*(n.flickMaxPages||1))}function te(M,_){return J(M,_)-J(T(M),_)}function he(M){return rn(M)-rn(T(M))}function T(M){return V===M&&F||V}function J(M,_){return(fe(M)?M.changedTouches[0]:M)["page"+p(_?"Y":"X")]}function ge(M){return M/(A&&e.is(nt)?Ji:1)}function ae(M){var _=n.noDrag;return!ut(M,"."+kr+", ."+Xt)&&(!_||!ut(M,_))}function fe(M){return typeof TouchEvent<"u"&&M instanceof TouchEvent}function at(){return y}function Ct(M){B=M}return{mount:j,disable:Ct,isDragging:at}}var _o={Spacebar:" ",Right:Ut,Left:Ht,Up:Ar,Down:Ir};function Tn(e){return e=Be(e)?e:e.key,_o[e]||e}var Yn="keydown";function xo(e,r,n){var t=le(e),i=t.on,s=t.bind,o=t.unbind,a=e.root,l=r.Direction.resolve,d,u;function x(){m(),i(ve,b),i(ve,m),i(De,p)}function m(){var v=n.keyboard;v&&(d=v==="global"?window:a,s(d,Yn,C))}function b(){o(d,Yn)}function c(v){u=v}function p(){var v=u;u=!0,nr(function(){u=v})}function C(v){if(!u){var g=Tn(v);g===l(Ht)?e.go("<"):g===l(Ut)&&e.go(">")}}return{mount:x,destroy:b,disable:c}}var lt=vn+"-lazy",kt=lt+"-srcset",wo="["+lt+"], ["+kt+"]";function So(e,r,n){var t=le(e),i=t.on,s=t.off,o=t.bind,a=t.emit,l=n.lazyLoad==="sequential",d=[it,Ge],u=[];function x(){n.lazyLoad&&(m(),i(de,m))}function m(){Oe(u),b(),l?v():(s(d),i(d,c),c())}function b(){r.Slides.forEach(function(g){hn(g.slide,wo).forEach(function(w){var V=Ce(w,lt),F=Ce(w,kt);if(V!==w.src||F!==w.srcset){var I=n.classes.spinner,y=w.parentElement,A=_t(y,"."+I)||Ze("span",I,y);u.push([w,g,A]),w.src||mt(w,"none")}})})}function c(){u=u.filter(function(g){var w=n.perPage*((n.preloadPages||1)+1)-1;return g[1].isWithin(e.index,w)?p(g):!0}),u.length||s(d)}function p(g){var w=g[0];Ie(g[1].slide,cn),o(w,"load error",oe(C,g)),q(w,"src",Ce(w,lt)),q(w,"srcset",Ce(w,kt)),Ee(w,lt),Ee(w,kt)}function C(g,w){var V=g[0],F=g[1];ke(F.slide,cn),w.type!=="error"&&(Ue(g[2]),mt(V,""),a(Cn,V,F),a(tt)),l&&v()}function v(){u.length&&p(u.shift())}return{mount:x,destroy:oe(Oe,u),check:c}}function Co(e,r,n){var t=le(e),i=t.on,s=t.emit,o=t.bind,a=r.Slides,l=r.Elements,d=r.Controller,u=d.hasFocus,x=d.getIndex,m=d.go,b=r.Direction.resolve,c=l.pagination,p=[],C,v;function g(){w(),i([ve,de,Pt],g);var B=n.pagination;c&&mt(c,B?"":"none"),B&&(i([De,Mt,Ge],L),V(),L(),s(_r,{list:C,items:p},A(e.index)))}function w(){C&&(Ue(c?Fe(C.children):C),ke(C,v),Oe(p),C=null),t.destroy()}function V(){var B=e.length,E=n.classes,j=n.i18n,D=n.perPage,H=u()?d.getEnd()+1:ft(B/D);C=c||Ze("ul",E.pagination,l.track.parentElement),Ie(C,v=Kt+"--"+y()),q(C,je,"tablist"),q(C,xe,j.select),q(C,In,y()===Yt?"vertical":"");for(var W=0;W<H;W++){var f=Ze("li",null,C),k=Ze("button",{class:E.page,type:"button"},f),R=a.getIn(W).map(function(S){return S.slide.id}),N=!u()&&D>1?j.pageX:j.slideX;o(k,"click",oe(F,W)),n.paginationKeyboard&&o(k,"keydown",oe(I,W)),q(f,je,"presentation"),q(k,je,"tab"),q(k,wt,R.join(" ")),q(k,xe,an(N,W+1)),q(k,Qe,-1),p.push({li:f,button:k,page:W})}}function F(B){m(">"+B,!0)}function I(B,E){var j=p.length,D=Tn(E),H=y(),W=-1;D===b(Ut,!1,H)?W=++B%j:D===b(Ht,!1,H)?W=(--B+j)%j:D==="Home"?W=0:D==="End"&&(W=j-1);var f=p[W];f&&(ar(f.button),m(">"+W),Re(E,!0))}function y(){return n.paginationDirection||n.direction}function A(B){return p[d.toPage(B)]}function L(){var B=A(x(!0)),E=A(x());if(B){var j=B.button;ke(j,Ye),Ee(j,Wn),q(j,Qe,-1)}if(E){var D=E.button;Ie(D,Ye),q(D,Wn,!0),q(D,Qe,"")}s(xr,{list:C,items:p},B,E)}return{items:p,mount:g,destroy:w,getAt:A,update:L}}var Ao=[" ","Enter"];function Io(e,r,n){var t=n.isNavigation,i=n.slideFocus,s=[];function o(){e.splides.forEach(function(c){c.isParent||(d(e,c.splide),d(c.splide,e))}),t&&u()}function a(){s.forEach(function(c){c.destroy()}),Oe(s)}function l(){a(),o()}function d(c,p){var C=le(c);C.on(De,function(v,g,w){p.go(p.is(ot)?w:v)}),s.push(C)}function u(){var c=le(e),p=c.on;p(bn,m),p(Sr,b),p([We,ve],x),s.push(c),c.emit(xn,e.splides)}function x(){q(r.Elements.list,In,n.direction===Yt?"vertical":"")}function m(c){e.go(c.index)}function b(c,p){fn(Ao,Tn(p))&&(m(c),Re(p))}return{setup:oe(r.Media.set,{slideFocus:vt(i)?t:i},!0),mount:o,destroy:a,remount:l}}function Eo(e,r,n){var t=le(e),i=t.bind,s=0;function o(){n.wheel&&i(r.Elements.track,"wheel",a,qe)}function a(d){if(d.cancelable){var u=d.deltaY,x=u<0,m=rn(d),b=n.wheelMinThreshold||0,c=n.wheelSleep||0;be(u)>b&&m-s>c&&(e.go(x?"<":">"),s=m),l(x)&&Re(d)}}function l(d){return!n.releaseWheel||e.state.is(rt)||r.Controller.getAdjacent(d)!==-1}return{mount:o}}var Lo=90;function To(e,r,n){var t=le(e),i=t.on,s=r.Elements.track,o=n.live&&!n.isNavigation,a=Ze("span",Yi),l=Vt(Lo,oe(u,!1));function d(){o&&(m(!r.Autoplay.isPaused()),q(s,$n,!0),a.textContent="…",i(wn,oe(m,!0)),i(Sn,oe(m,!1)),i([it,Ge],oe(u,!0)))}function u(b){q(s,Vn,b),b?(bt(s,a),l.start()):(Ue(a),l.cancel())}function x(){Ee(s,[Mn,$n,Vn]),Ue(a)}function m(b){o&&q(s,Mn,b?"off":"polite")}return{mount:d,disable:m,destroy:x}}var Ro=Object.freeze({__proto__:null,Media:Bi,Direction:zi,Elements:Zi,Slides:eo,Layout:to,Clones:ro,Move:io,Controller:oo,Arrows:lo,Autoplay:uo,Cover:po,Scroll:yo,Drag:bo,Keyboard:xo,LazyLoad:So,Pagination:Co,Sync:Io,Wheel:Eo,Live:To}),No={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"},ko={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:Ki,i18n:No,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function jo(e,r,n){var t=r.Slides;function i(){le(e).on([We,de],s)}function s(){t.forEach(function(a){a.style("transform","translateX(-"+100*a.index+"%)")})}function o(a,l){t.style("transition","opacity "+n.speed+"ms "+n.easing),nr(l)}return{mount:i,start:o,cancel:nn}}function Oo(e,r,n){var t=r.Move,i=r.Controller,s=r.Scroll,o=r.Elements.list,a=oe(Se,o,"transition"),l;function d(){le(e).bind(o,"transitionend",function(b){b.target===o&&l&&(x(),l())})}function u(b,c){var p=t.toPosition(b,!0),C=t.getPosition(),v=m(b);be(p-C)>=1&&v>=1?n.useScroll?s.scroll(p,v,!1,c):(a("transform "+v+"ms "+n.easing),t.translate(p,!0),l=c):(t.jump(b),c())}function x(){a(""),s.cancel()}function m(b){var c=n.rewindSpeed;if(e.is(nt)&&c){var p=i.getIndex(!0),C=i.getEnd();if(p===0&&b>=C||p>=C&&b===0)return c}return n.speed}return{mount:d,start:u,cancel:x}}var Do=(function(){function e(n,t){this.event=le(),this.Components={},this.state=Di(Je),this.splides=[],this._o={},this._E={};var i=Be(n)?lr(document,n):n;st(i,i+" is invalid."),this.root=i,t=Pe({label:Ce(i,xe)||"",labelledby:Ce(i,An)||""},ko,e.defaults,t||{});try{Pe(t,JSON.parse(Ce(i,vn)))}catch{st(!1,"Invalid JSON")}this._o=Object.create(Pe({},t))}var r=e.prototype;return r.mount=function(t,i){var s=this,o=this.state,a=this.Components;st(o.is([Je,jt]),"Already mounted!"),o.set(Je),this._C=a,this._T=i||this._T||(this.is(St)?jo:Oo),this._E=t||this._E;var l=dt({},Ro,this._E,{Transition:this._T});return $e(l,function(d,u){var x=d(s,a,s._o);a[u]=x,x.setup&&x.setup()}),$e(a,function(d){d.mount&&d.mount()}),this.emit(We),Ie(this.root,Gi),o.set(et),this.emit(sn),this},r.sync=function(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(et)&&(this._C.Sync.remount(),t.Components.Sync.remount()),this},r.go=function(t){return this._C.Controller.go(t),this},r.on=function(t,i){return this.event.on(t,i),this},r.off=function(t){return this.event.off(t),this},r.emit=function(t){var i;return(i=this.event).emit.apply(i,[t].concat(Fe(arguments,1))),this},r.add=function(t,i){return this._C.Slides.add(t,i),this},r.remove=function(t){return this._C.Slides.remove(t),this},r.is=function(t){return this._o.type===t},r.refresh=function(){return this.emit(de),this},r.destroy=function(t){t===void 0&&(t=!0);var i=this.event,s=this.state;return s.is(Je)?le(this).on(sn,this.destroy.bind(this,t)):($e(this._C,function(o){o.destroy&&o.destroy(t)},!0),i.emit(_n),i.destroy(),t&&Oe(this.splides),s.set(jt)),this},Ri(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})(),Rn=Do;Rn.defaults={};Rn.STATES=ki;var Gn=[[We,"onMounted"],[sn,"onReady"],[De,"onMove"],[it,"onMoved"],[bn,"onClick"],[pr,"onActive"],[dr,"onInactive"],[mr,"onVisible"],[fr,"onHidden"],[de,"onRefresh"],[ve,"onUpdated"],[tt,"onResize"],[Wt,"onResized"],[gr,"onDrag"],[hr,"onDragging"],[vr,"onDragged"],[Mt,"onScroll"],[Ge,"onScrolled"],[_n,"onDestroy"],[yr,"onArrowsMounted"],[br,"onArrowsUpdated"],[_r,"onPaginationMounted"],[xr,"onPaginationUpdated"],[xn,"onNavigationMounted"],[wn,"onAutoplayPlay"],[wr,"onAutoplayPlaying"],[Sn,"onAutoplayPause"],[Cn,"onLazyLoadLoaded"]];function Nn(...e){return e.filter(Boolean).join(" ")}function Bt(e){return e!==null&&typeof e=="object"}function un(e,r){if(Array.isArray(e)&&Array.isArray(r))return e.length===r.length&&!e.some((n,t)=>!un(n,r[t]));if(Bt(e)&&Bt(r)){const n=Object.keys(e),t=Object.keys(r);return n.length===t.length&&!n.some(i=>!Object.prototype.hasOwnProperty.call(r,i)||!un(e[i],r[i]))}return e===r}function Po(e,r){return e.length===r.length&&!e.some((n,t)=>n!==r[t])}function Bo(e,r){if(e){const n=Object.keys(e);for(let t=0;t<n.length;t++){const i=n[t];if(i!=="__proto__"&&r(e[i],i)===!1)break}}return e}function pn(e,r){const n=e;return Bo(r,(t,i)=>{Array.isArray(t)?n[i]=t.slice():Bt(t)?n[i]=pn(Bt(n[i])?n[i]:{},t):n[i]=t}),n}var zo=({children:e,className:r,...n})=>$.createElement("div",{className:Nn("splide__track",r),...n},$.createElement("ul",{className:"splide__list"},e)),kn=class extends $.Component{constructor(){super(...arguments),this.splideRef=$.createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:r,transition:n}=this.props,{current:t}=this.splideRef;t&&(this.splide=new Rn(t,e),this.bind(this.splide),this.splide.mount(r,n),this.options=pn({},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&&!un(this.options,e)&&(this.splide.options=e,this.options=pn({},e));const r=this.getSlides();Po(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,n])=>{const t=this.props[n];typeof t=="function"&&e.on(r,(...i)=>{t(e,...i)})})}omit(e,r){return r.forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]}),e}render(){const{className:e,tag:r="div",hasTrack:n=!0,children:t,...i}=this.props;return $.createElement(r,{className:Nn("splide",e),ref:this.splideRef,...this.omit(i,["options",...Gn.map(s=>s[1])])},n?$.createElement(zo,null,t):t)}},jn=({children:e,className:r,...n})=>$.createElement("li",{className:Nn("splide__slide",r),...n},e);/*!
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);/*!
2
2
  * Splide.js
3
3
  * Version : 4.1.3
4
4
  * License : MIT
5
5
  * Copyright: 2022 Naotoshi Fujita
6
- */const Fo="RichTextRenderer-module__link___BWeZ2",Wo={link:Fo},zt=({content:e})=>{const r=n=>n.map((t,i)=>t.type==="link"?h.jsx("a",{className:Wo.link,href:t.value,target:t.target,children:r(t.children)},i):h.jsx("span",{style:Mo(t),children:t.text},i));return h.jsx(h.Fragment,{children:e.map((n,t)=>{const i=n.children;return h.jsx("div",{children:r(i)},t)})})};function Mo(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 O(e,r=!1){return r?`calc(var(--cntrl-article-width) * ${e})`:`${e*100}vw`}const Vo="SvgImage-module__svg___q3xE-",$o="SvgImage-module__img___VsTm-",Xn={svg:Vo,img:$o},He=({url:e,fill:r="#000000",hoverFill:n="#CCCCCC",className:t=""})=>{const[i,s]=$.useState(!0);return $.useEffect(()=>{if(typeof window<"u"&&window.CSS){const o=CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")');s(o)}},[]),!e.endsWith(".svg")||!i?h.jsx("img",{src:e,alt:"",className:ie(Xn.img,t)}):h.jsx("span",{"data-supports-mask":i,className:ie(Xn.svg,t),style:{"--svg":`url(${e})`,"--fill":r,"--hover-fill":n}})},Ho={"top-left":Y.topLeftAlignment,"top-center":Y.topCenterAlignment,"top-right":Y.topRightAlignment,"middle-left":Y.middleLeftAlignment,"middle-center":Y.middleCenterAlignment,"middle-right":Y.middleRightAlignment,"bottom-left":Y.bottomLeftAlignment,"bottom-center":Y.bottomCenterAlignment,"bottom-right":Y.bottomRightAlignment};function Uo({settings:e,content:r,styles:n,isEditor:t}){const[i,s]=$.useState(null),{widthSettings:o,fontSettings:a,letterSpacing:l,textAlign:d,wordSpacing:u,fontSizeLineHeight:x,textAppearance:m,color:b}=n.imageCaption,[c,p]=$.useState(void 0),[C,v]=$.useState(null),[g,w]=$.useState(0),[V,F]=$.useState(0),{direction:I,transition:y,controls:A,pagination:L,imageCaption:B,triggers:E}=e,j=$.useRef(y.type),{x:D,y:H}=e.controls.offset,W=f=>{i&&i.go(f)};return $.useEffect(()=>{if(!C)return;const f=new ResizeObserver(k=>{if(!i)return;const[R]=k;p({width:Math.round(R.contentRect.width),height:Math.round(R.contentRect.height)})});return f.observe(C),()=>f.unobserve(C)},[C]),$.useEffect(()=>{!i||j.current===y.type||(F(f=>f+1),j.current=y.type)},[y.type]),h.jsx("div",{className:ie(Y.wrapper,{[Y.editor]:t}),ref:v,children:h.jsxs("div",{className:Y.sliderInner,style:{width:c?c.width:"100%",height:c?c.height:"100%",backgroundColor:y.backgroundColor&&y.type==="fade in"?y.backgroundColor:"transparent"},children:[e.imageCaption.isActive&&h.jsx("div",{className:ie(Y.captionBlock),children:h.jsx("div",{className:Y.captionTextWrapper,children:r.map((f,k)=>h.jsx("div",{className:ie(Y.captionText,Ho[B.alignment],{[Y.withPointerEvents]:k===g&&t,[Y.active]:k===g}),style:{fontFamily:a.fontFamily,fontWeight:a.fontWeight,fontStyle:a.fontStyle,width:o.sizing==="auto"?"max-content":O(o.width,t),letterSpacing:O(l,t),wordSpacing:O(u,t),textAlign:d,fontSize:O(x.fontSize,t),lineHeight:O(x.lineHeight,t),textTransform:m.textTransform??"none",textDecoration:m.textDecoration??"none",fontVariant:m.fontVariant??"normal",color:b,transitionDuration:y.duration?`${Math.round(parseInt(y.duration)/2)}ms`:"500ms"},children:h.jsx("div",{"data-styles":"imageCaption",className:Y.captionTextInner,style:{"--link-hover-color":B.linkHoverColor,"--link-color":B.linkColor,position:"relative",top:O(B.offset.y,t),left:O(B.offset.x,t)},children:h.jsx(zt,{content:f.imageCaption})})},k))})}),h.jsx(kn,{onMove:f=>{w(f.index)},ref:s,options:{arrows:!1,speed:y.duration?parseInt(y.duration):500,autoplay:E.autoPlay!==null,...E.autoPlay!==null&&{interval:parseInt(E.autoPlay)*1e3},direction:I==="horiz"||y.type==="fade in"?"ltr":"ttb",pagination:!1,drag:E.triggersList.drag,perPage:1,width:c?c.width:"100%",height:c?c.height:"100%",type:y.type==="fade in"?"fade":"loop",rewind:!0},children:r.map((f,k)=>h.jsx(jn,{children:h.jsx("div",{className:Y.sliderItem,children:h.jsx("div",{className:Y.imgWrapper,children:h.jsx("img",{className:ie(Y.sliderImage,{[Y.contain]:f.image.objectFit==="contain",[Y.cover]:f.image.objectFit==="cover"}),src:f.image.url,alt:f.image.name??""})})})},k))},V),A.isActive&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:ie(Y.arrow,{[Y.arrowVertical]:I==="vert",[Y.hoverArrow]:A.show==="on hover"}),style:{color:A.color,"--arrow-hover-color":A.hover},children:h.jsxs("button",{onClick:()=>{W("-1")},className:Y.arrowInner,style:{transform:`translate(${O(D,t)}, ${O(H*(I==="horiz"?1:-1),t)}) scale(${e.controls.scale/100}) rotate(${I==="horiz"?"0deg":"90deg"})`},children:[A.arrowsImgUrl&&h.jsx(He,{url:A.arrowsImgUrl,fill:A.color,hoverFill:A.hover,className:ie(Y.arrowImg,Y.mirror)}),!A.arrowsImgUrl&&h.jsx(Kn,{color:A.color,className:ie(Y.arrowIcon,Y.arrowImg,Y.mirror)})]})}),h.jsx("div",{className:ie(Y.arrow,Y.nextArrow,{[Y.arrowVertical]:I==="vert",[Y.hoverArrow]:A.show==="on hover"}),style:{color:A.color,"--arrow-hover-color":A.hover},children:h.jsxs("button",{className:Y.arrowInner,onClick:()=>W("+1"),style:{transform:`translate(${O(D*(I==="horiz"?-1:1),t)}, ${O(H,t)}) scale(${e.controls.scale/100}) rotate(${I==="horiz"?"0deg":"90deg"})`},children:[A.arrowsImgUrl&&h.jsx(He,{url:A.arrowsImgUrl,fill:A.color,hoverFill:A.hover,className:Y.arrowImg}),!A.arrowsImgUrl&&h.jsx(Kn,{color:A.color,className:ie(Y.arrowIcon,Y.arrowImg)})]})})]}),E.triggersList.click&&h.jsx("div",{className:Y.clickOverlay,onClick:()=>{i&&i.go("+1")}}),L.isActive&&h.jsx("div",{className:ie(Y.pagination,{[Y.paginationInsideBottom]:L.position==="inside-1"&&I==="horiz",[Y.paginationInsideTop]:L.position==="inside-2"&&I==="horiz",[Y.paginationOutsideBottom]:L.position==="outside-1"&&I==="horiz",[Y.paginationOutsideTop]:L.position==="outside-2"&&I==="horiz",[Y.paginationInsideLeft]:L.position==="inside-1"&&I==="vert",[Y.paginationInsideRight]:L.position==="inside-2"&&I==="vert",[Y.paginationOutsideLeft]:L.position==="outside-1"&&I==="vert",[Y.paginationOutsideRight]:L.position==="outside-2"&&I==="vert",[Y.paginationVertical]:I==="vert"}),children:h.jsx("div",{className:Y.paginationInner,style:{backgroundColor:L.colors[2],transform:`scale(${L.scale/100}) translate(${O(L.offset.x,t)}, ${O(L.offset.y,t)}) rotate(${I==="horiz"?"0deg":"90deg"})`},children:r.map((f,k)=>h.jsx("button",{onClick:()=>{i&&i.go(k)},className:ie(Y.paginationItem),children:h.jsx("div",{className:ie(Y.dot,{[Y.activeDot]:k===g}),style:{backgroundColor:k===g?L.colors[0]:L.colors[1],"--pagination-hover-color":L.hover}})},k))})})]})})}function Kn({color:e,className:r}){return h.jsx("svg",{viewBox:"0 0 10 18",className:r,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 Yo={element:Uo,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",Xo="ImageRevealSlider-module__image___Qjt-e",Ko="ImageRevealSlider-module__link___N-iLG",qo="ImageRevealSlider-module__cursor___2U03d",Xe={imageRevealSlider:Go,image:Xo,link:Ko,cursor:qo};function qn(e,r,n){for(const t of n){const i=new Image;i.src=t.url;const s=t.width?Number.parseFloat(t.width):i.naturalWidth,o=i.naturalHeight/i.naturalWidth*s,a=s/2,l=o/2;if(e>=t.x-a&&e<=t.x+a&&r>=t.y-l&&r<=t.y+l)return!0}return!1}function en(e){return new Promise(r=>{const n=new Image;n.src=e,n.onload=()=>{r({width:n.naturalWidth,height:n.naturalHeight})}})}async function Jo(e,r,n,t){let i,s;if(r==="custom"){i=n;const o=await en(e);s=o.height/o.width*i}else if(r==="random"){i=Math.random()*(t.max-t.min)+t.min;const o=await en(e);s=o.height/o.width*i}else{const o=await en(e);i=o.width,s=o.height}return{width:i,height:s,finalWidth:`${i}px`}}function Zo({settings:e,content:r,isEditor:n}){const[t,i]=$.useState(null),[s,o]=$.useState([]),[a,l]=$.useState(0),d=$.useRef(0),[u,x]=$.useState({x:0,y:0}),[m,b]=$.useState(1),[c,p]=$.useState("none"),C=$.useRef({x:0,y:0}),[v,g]=$.useState(!1),{sizeType:w,imageWidth:V,randomRangeImageWidth:F}=e.imageSize,{revealPosition:I,visible:y}=e.position,{cursorType:A,target:L,defaultCursorScale:B,defaultCursor:E,hoverCursorScale:j,hoverCursor:D}=e.cursor;$.useEffect(()=>{if(!t)return;const f=(N,S)=>{const P=t.getBoundingClientRect(),X=N-P.left,re=S-P.top;if(x({x:X,y:re}),A==="system"){p("none"),b(1);return}const te=X,he=re,T=document.elementFromPoint(P.left+te,P.top+he);if(T&&T.closest("a")){p("none"),b(1);return}const J=qn(te,he,s)||L==="area"?{img:D??"none",scale:j}:{img:E??"none",scale:B};p(J.img),b(J.scale)},k=N=>{N.stopPropagation(),C.current={x:N.clientX,y:N.clientY},f(N.clientX,N.clientY)},R=()=>{v&&f(C.current.x,C.current.y)};return t.addEventListener("mousemove",k),window.addEventListener("scroll",R,!0),()=>{t.removeEventListener("mousemove",k),window.removeEventListener("scroll",R,!0)}},[t,v,u,A,L,D,E,j,B,s]),$.useEffect(()=>{v||(p("none"),b(0))},[v]);const H=async(f,k,R,N={})=>{const{width:S,height:P,finalWidth:X}=await Jo(f.image.url,w,V,F);let re=0,te=0;I==="same"?(re=k/2,te=R/2):(re=N.x??Math.random()*k,te=N.y??Math.random()*R);const he=Math.min(Math.max(re,S/2),k-S/2),T=Math.min(Math.max(te,P/2),R-P/2);return{id:d.current++,url:f.image.url,link:f.link,name:f.image.name,x:he,y:T,width:X}};$.useEffect(()=>{if(!t||r.length===0)return;const f=t.getBoundingClientRect(),k=f.width,R=f.height,N=[];(async()=>{const P=r[0],X=await H(P,k,R);N.push(X),o(N),l(1)})()},[w,V,F,I,t]),$.useEffect(()=>{y==="last One"&&o(f=>f.length>0?[f[f.length-1]]:[])},[y]);const W=async f=>{if(!t)return;const k=t.getBoundingClientRect(),R=f.clientX-k.left,N=f.clientY-k.top;if(L==="image"&&!qn(R,N,s))return;let S=0,P=0;I==="on Click"?(S=R,P=N):I==="same"?(S=k.width/2,P=k.height/2):(S=Math.random()*k.width,P=Math.random()*k.height);const X=r[a],re=await H(X,k.width,k.height,{x:S,y:P});o(te=>y==="all"?[...te,re]:[re]),l(te=>te>=r.length-1?0:te+1)};return h.jsxs("div",{ref:i,onClick:W,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),className:Xe.imageRevealSlider,style:{cursor:c==="none"?"default":"none"},children:[s.map(f=>h.jsx("div",{className:Xe.wrapper,style:{top:`${f.y}px`,left:`${f.x}px`,position:"absolute",transform:"translate(-50%, -50%)",width:f.width??"auto",height:"auto",cursor:c==="none"?"default":"none"},children:L==="area"&&f.link?h.jsx("a",{href:f.link,target:"_blank",className:Xe.link,children:h.jsx("img",{src:f.url,alt:f.name,className:Xe.image},f.id)}):h.jsx("img",{src:f.url,alt:f.name,className:Xe.image},f.id)},f.id)),v&&h.jsx("div",{className:Xe.cursor,style:{left:`${u.x}px`,top:`${u.y}px`,transform:`translate(-50%, -50%) scale(${m})`,backgroundImage:`url('${c}')`,backgroundSize:"cover",backgroundPosition:"center",position:"absolute",pointerEvents:"none"}})]})}const Qo={element:Zo,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:""}]}}}},ea="LightBox-module__hidden___9s-9x",ta="LightBox-module__heroImage___sTxNF",na="LightBox-module__background___rm9ml",ra="LightBox-module__editor___4ACaY",ia="LightBox-module__contentStyle___Bgnsq",oa="LightBox-module__imageStyle___tLIlB",aa="LightBox-module__imgWrapper___LuFUp",sa="LightBox-module__contain___8-yaS",la="LightBox-module__cover___hNvOG",ca="LightBox-module__caption___b6L2I",ua="LightBox-module__captionTextInner___rCGNH",pa="LightBox-module__lightboxSplide___XFuWC",da="LightBox-module__arrow___iz38X",ma="LightBox-module__arrowVertical___Zfz81",fa="LightBox-module__nextArrow___zkAQN",ga="LightBox-module__arrowInner___p48sW",ha="LightBox-module__arrowIcon___3VaFf",va="LightBox-module__arrowImg___pNV88",ya="LightBox-module__mirror___pjeXc",ba="LightBox-module__thumbsWrapper___GB-nU",_a="LightBox-module__thumbsContainerVertical___wttk5",xa="LightBox-module__thumbsContainer___osSma",wa="LightBox-module__thumbsAlignStart___MO6tY",Sa="LightBox-module__thumbsAlignCenter___Q4sUx",Ca="LightBox-module__thumbsAlignEnd___p4y9R",Aa="LightBox-module__thumbItem___HvnF3",Ia="LightBox-module__closeButton___g2khP",Ea="LightBox-module__fadeIn___0m5GW",La="LightBox-module__slideInLeft___gPYwC",Ta="LightBox-module__slideInRight___S-pPp",Ra="LightBox-module__slideInTop___DFdAj",Na="LightBox-module__slideInBottom___m27kZ",ka="LightBox-module__fadeOut___55qBR",ja="LightBox-module__slideOutLeft___NvU7P",Oa="LightBox-module__slideOutRight___SK7eC",Da="LightBox-module__slideOutTop___Vgg0z",Pa="LightBox-module__slideOutBottom___nJ0Ef",Ba="LightBox-module__scaleSlide___vZriG",z={hidden:ea,heroImage:ta,background:na,editor:ra,contentStyle:ia,imageStyle:oa,imgWrapper:aa,contain:sa,cover:la,caption:ca,captionTextInner:ua,lightboxSplide:pa,arrow:da,arrowVertical:ma,nextArrow:fa,arrowInner:ga,arrowIcon:ha,arrowImg:va,mirror:ya,thumbsWrapper:ba,thumbsContainerVertical:_a,thumbsContainer:xa,thumbsAlignStart:wa,thumbsAlignCenter:Sa,thumbsAlignEnd:Ca,thumbItem:Aa,closeButton:Ia,fadeIn:Ea,slideInLeft:La,slideInRight:Ta,slideInTop:Ra,slideInBottom:Na,fadeOut:ka,slideOutLeft:ja,slideOutRight:Oa,slideOutTop:Da,slideOutBottom:Pa,scaleSlide:Ba},Lt=(e,r,n)=>{const t={},[i,s]=e.split("-");return i==="top"?(t.top="0",t.bottom="auto"):i==="middle"?(t.top="50%",t.bottom="auto"):i==="bottom"&&(t.top="auto",t.bottom="0"),s==="left"?(t.left="0",t.right="auto"):s==="center"?(t.left="50%",t.right="auto"):s==="right"&&(t.left="auto",t.right="0"),i==="middle"&&s==="center"?t.transform=`translate(calc(-50% + ${O(r.x,n)}), calc(-50% + ${O(r.y,n)}))`:i==="middle"?t.transform=`translate(${O(r.x,n)}, calc(-50% + ${O(r.y,n)}))`:s==="center"?t.transform=`translate(calc(-50% + ${O(r.x,n)}), ${O(r.y,n)})`:t.transform=`translate(${O(r.x,n)}, ${O(r.y,n)})`,t};function zr(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 Jn(e){const r=e.getBoundingClientRect(),n=zr(e),t=Math.max(0,r.width-n.left-n.right),i=Math.max(0,r.height-n.top-n.bottom),s=e.naturalWidth,o=e.naturalHeight,a=t/i,l=s/o;let d,u;l>a?(d=t,u=t/l):(u=i,d=i*l);const x=r.left+n.left,m=r.top+n.top,b=(t-d)/2+x,c=(i-u)/2+m;return{x:b,y:c,width:d,height:u}}function Zn(e){const r=e.getBoundingClientRect(),n=zr(e);return{left:r.left+n.left,right:r.right-n.right,top:r.top+n.top,bottom:r.bottom-n.bottom}}function Qn(e){const r=e.match(/rgba?\(([^)]+)\)/);if(r){const t=r[1].split(",").map(i=>parseFloat(i.trim()));return t.length===4?t[3]:1}const n=e.match(/^#([0-9a-fA-F]{8})$/);if(n){const t=n[1].substring(6,8);return parseInt(t,16)/255}return e.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/),1}function za(e,r){const n=(()=>{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})(),t=(()=>{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})(),i=(()=>{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})(),s=(()=>{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:n,backdropAppearClass:t,backdropDisappearClass:i,disappearClass:s}}const Fa=({settings:e,content:r,styles:n,portalId:t,activeEvent:i,isEditor:s})=>{const[o,a]=$.useState(!1),{url:l}=e.thumbnailBlock.cover;return $.useEffect(()=>{i==="close"&&a(!1),i==="open"&&a(!0)},[i]),h.jsxs(h.Fragment,{children:[h.jsx("img",{src:l,alt:"Cover",className:z.heroImage,onClick:()=>a(!0)}),h.jsx(Wa,{isOpen:o,onClose:()=>a(!1),content:r,settings:e,lightboxStyles:n,portalId:t,isEditor:s})]})},Wa=({isOpen:e,onClose:r,content:n,lightboxStyles:t,settings:i,portalId:s,isEditor:o,metadata:a})=>{var M;const[l,d]=$.useState(0),[u,x]=$.useState(0),[m,b]=$.useState(!1),[c,p]=$.useState(!1),[C,v]=$.useState({}),g=$.useRef(null),w=$.useRef(null),V=$.useRef(null),F=$.useRef(!1),I=$.useRef(null),y=$.useRef(null),A=$.useRef(null),L=$.useRef(null),B=$.useRef(!1),E=$.useRef(null),[j,D]=$.useState(!1),{appear:H,triggers:W,slider:f,thumbnail:k,controls:R,area:N,caption:S,layout:P}=i.lightboxBlock,{appearClass:X,backdropAppearClass:re,backdropDisappearClass:te,disappearClass:he}=za(H.type,H.direction),T=(a==null?void 0:a.itemId)??null;$.useEffect(()=>{const _=()=>{setTimeout(()=>{var G,Z;(Z=(G=g.current)==null?void 0:G.splide)==null||Z.refresh()},16)},U=()=>{x(G=>G+1)};return window.addEventListener("ArticleEditor.Layout:change",_),window.addEventListener("ArticleEditor.ComponentContent:change",U),()=>{window.removeEventListener("ArticleEditor.Layout:change",_),window.removeEventListener("ArticleEditor.ComponentContent:change",U)}},[]),$.useEffect(()=>{if(!e||!k.isActive){D(!1);return}const _=E.current;if(!_)return;const U=()=>{f.direction==="horiz"?D(_.scrollWidth>_.clientWidth):D(_.scrollHeight>_.clientHeight)};U();const G=new ResizeObserver(U);return G.observe(_),()=>G.disconnect()},[e,k.isActive,n.length,C,f.direction]);const J=$.useCallback(()=>{const _=window.matchMedia("(max-width: 768px)").matches,U=Qn(N.color);_&&!o&&U>.9&&(document.body.style.backgroundColor=""),b(!0),F.current=!0;const G=Z=>{Z.target===I.current&&Z.animationName&&(I.current&&y.current&&I.current.removeEventListener("animationend",y.current),y.current=null,F.current&&(F.current=!1,r()),b(!1))};I.current&&(y.current=G,I.current.addEventListener("animationend",G))},[r,N.color,o]),ge=(_,U,G)=>{var Z,ne;if(_){if(W.type==="click"&&W.switch==="image")W.repeat==="close"&&l===n.length-1?J():(Z=g.current)==null||Z.go("+1");else if(W.type==="click"&&W.switch==="50/50"){const Q=_.getBoundingClientRect(),K=U-Q.left,se=G-Q.top,ye=Q.width,ce=Q.height;let me;f.direction==="horiz"?me=K<ye/2?"-1":"+1":me=se<ce/2?"-1":"+1",(ne=g.current)==null||ne.go(me)}}},ae=_=>{if(B.current){B.current=!1;return}const U=n[l],G=(U==null?void 0:U.image.objectFit)==="cover";let Z,ne;if("changedTouches"in _&&_.changedTouches.length>0)Z=_.changedTouches[0].clientX,ne=_.changedTouches[0].clientY;else if("clientX"in _)Z=_.clientX,ne=_.clientY;else return;let Q;if(G&&V.current){const K=Zn(V.current);Q=Z>=K.left&&Z<=K.right&&ne>=K.top&&ne<=K.bottom}else{const K=V.current?Jn(V.current):null;if(!K){_.target===_.currentTarget&&J();return}Q=Z>=K.x&&Z<=K.x+K.width&&ne>=K.y&&ne<=K.y+K.height}Q?ge(V.current,Z,ne):J()},fe=_=>{const U=_.target;(U.classList.contains(z.thumbsWrapper)||U.classList.contains(z.thumbsContainer))&&ae(_)};$.useEffect(()=>{if(!e)return;const _=U=>{var G,Z;if(U.key==="Escape"){J();return}if(U.key==="ArrowRight"){d(ne=>(ne+1)%Math.max(n.length,1)),(G=g.current)==null||G.go("+1");return}U.key==="ArrowLeft"&&(d(ne=>(ne-1+Math.max(n.length,1))%Math.max(n.length,1)),(Z=g.current)==null||Z.go("-1"))};return window.addEventListener("keydown",_),()=>{window.removeEventListener("keydown",_)}},[e,J,n.length]),$.useEffect(()=>{if(e){if(d(0),x(U=>U+1),F.current=!1,b(!1),p(!1),v({}),!T)return;const _=new CustomEvent("page-overlay",{detail:{itemId:T}});window.dispatchEvent(_)}return()=>{I.current&&y.current&&(I.current.removeEventListener("animationend",y.current),y.current=null),p(!1)}},[e,T]),$.useEffect(()=>{w.current!==null&&w.current!==f.type&&x(_=>_+1),w.current=f.type},[f.type]),$.useEffect(()=>{if(!e)return;const _=document.body.style.overflow,U=window.matchMedia("(max-width: 768px)").matches,G=Qn(N.color);document.body.style.overflow="hidden",p(!1);const Z=Q=>{Q.target===I.current&&!F.current&&Q.animationName&&(U&&!o&&G>.9&&(document.body.style.backgroundColor=N.color),p(!0),I.current&&A.current&&I.current.removeEventListener("animationend",A.current),A.current=null)};I.current&&(A.current=Z,I.current.addEventListener("animationend",Z));const ne=Q=>{const K=Q.target;K&&(K.closest(`.${z.thumbsWrapper}`)||K.closest(`.${z.thumbsContainer}`))||f.type!=="slide"&&Q.preventDefault()};return document.addEventListener("touchmove",ne,{passive:!1}),()=>{document.body.style.overflow=_,document.removeEventListener("touchmove",ne),I.current&&A.current&&(I.current.removeEventListener("animationend",A.current),A.current=null),p(!1)}},[e,o,N.color,f.type]),$.useEffect(()=>{if(!e)return;const _=U=>{var Z,ne;if(F.current){U.stopPropagation();return}if(B.current){B.current=!1;return}const G=U.target;if(!(G&&(G.closest(`.${z.thumbsContainer}`)||G.closest(`.${z.thumbItem}`)))){if(f.type==="slide"&&W.type==="drag"&&((ne=(Z=g.current)==null?void 0:Z.splide)!=null&&ne.root)){const Q=g.current.splide.root;if(G&&(Q.contains(G)||Q===G))return}if(U.touches.length===0&&U.changedTouches.length>0){const Q=n[l],K=(Q==null?void 0:Q.image.objectFit)==="cover",se=U.changedTouches[0];let ye;if(K&&V.current){const ce=Zn(V.current);ye=se.clientX>=ce.left&&se.clientX<=ce.right&&se.clientY>=ce.top&&se.clientY<=ce.bottom}else{const ce=V.current?Jn(V.current):null;if(!ce)return;ye=se.clientX>=ce.x&&se.clientX<=ce.x+ce.width&&se.clientY>=ce.y&&se.clientY<=ce.y+ce.height}if(!ye){U.stopPropagation(),F.current=!0;const ce=me=>{me.stopPropagation(),me.preventDefault(),document.removeEventListener("click",ce,!0)};document.addEventListener("click",ce,!0),J()}}}};return document.addEventListener("touchend",_,{passive:!0}),()=>{document.removeEventListener("touchend",_)}},[e,J,l,n]);const at=(f.type==="scale"||f.type==="fade")&&f.direction==="vert"&&W.type==="drag";$.useEffect(()=>{var me,At;if(!e||!at||!((At=(me=g.current)==null?void 0:me.splide)!=null&&At.root))return;const _=g.current.splide.root,U=30,G=(ee,ue)=>{if(L.current){const Te=Math.abs(ee-L.current.x),It=Math.abs(ue-L.current.y);(Te>0||It>0)&&(B.current=!0)}},Z=ee=>{L.current&&(ee.preventDefault(),G(ee.clientX,ee.clientY))},ne=ee=>{L.current&&ee.touches.length>0&&(ee.preventDefault(),G(ee.touches[0].clientX,ee.touches[0].clientY))},Q=(ee,ue)=>{if(!L.current||!g.current){L.current=null;return}const Te=Math.abs(ee-L.current.x),It=Math.abs(ue-L.current.y);It>U&&It>Te&&g.current.go(ue<L.current.y?"+1":"-1"),L.current=null},K=ee=>{L.current&&Q(ee.clientX,ee.clientY),document.removeEventListener("pointerup",K),document.removeEventListener("pointercancel",K),document.removeEventListener("pointermove",Z)},se=ee=>{if(L.current){if(ee.changedTouches.length>0){const ue=ee.changedTouches[0];Q(ue.clientX,ue.clientY)}document.removeEventListener("touchend",se),document.removeEventListener("touchcancel",se),document.removeEventListener("touchmove",ne)}},ye=ee=>{L.current={x:ee.clientX,y:ee.clientY},B.current=!1,document.addEventListener("pointermove",Z,{passive:!1}),document.addEventListener("pointerup",K),document.addEventListener("pointercancel",K)},ce=ee=>{ee.touches.length>0&&(L.current={x:ee.touches[0].clientX,y:ee.touches[0].clientY},B.current=!1,document.addEventListener("touchmove",ne,{passive:!1}),document.addEventListener("touchend",se),document.addEventListener("touchcancel",se))};return _.addEventListener("pointerdown",ye),_.addEventListener("touchstart",ce),()=>{_.removeEventListener("pointerdown",ye),_.removeEventListener("touchstart",ce),document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",K),document.removeEventListener("pointercancel",K),document.removeEventListener("touchmove",ne),document.removeEventListener("touchend",se),document.removeEventListener("touchcancel",se),L.current=null,B.current=!1}},[e,at,u]);const Ct={backgroundColor:N.color,backdropFilter:`blur(${N.blur}px)`,animationDuration:`${parseInt(H.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"};return document.getElementById(s)?Fr.createPortal(h.jsxs(h.Fragment,{children:[h.jsx("div",{ref:o?null:I,className:ie(z.background,m?te:re,{[z.editor]:o},{[z.hidden]:!e}),style:{...Ct,...c&&!o&&!m?{position:"absolute"}:{}}}),h.jsxs("div",{ref:o?I:null,className:ie(z.contentStyle,m?he:X,{[z.editor]:o},{[z.hidden]:!e}),style:{animationDuration:`${parseInt(H.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"},children:[h.jsx(kn,{onMove:_=>d(_.index),ref:g,className:z.lightboxSplide,options:{arrows:!1,speed:f.duration?parseInt(f.duration):500,direction:f.direction==="horiz"||f.type==="fade"||f.type==="scale"?"ltr":"ttb",pagination:!1,drag:W.type==="drag"&&!at,perPage:1,width:"100%",height:"100%",type:f.type==="fade"||f.type==="scale"?"fade":"loop",padding:0,rewind:W.repeat!=="close",start:0},style:{"--splide-speed":f.duration},children:n.map((_,U)=>{const G=Lt(P.position,P.offset,o),Z=`${O(P.padding.top,o)} ${O(P.padding.right,o)} ${O(P.padding.bottom,o)} ${O(P.padding.left,o)}`,ne=f.type==="scale"?(()=>{const{transform:Q,...K}=G;return{...K,position:"absolute",padding:Z,boxSizing:"border-box","--position-transform":Q||"none"}})():{...G,position:"absolute",padding:Z,boxSizing:"border-box"};return h.jsx(jn,{children:h.jsx("div",{className:z.imgWrapper,onClick:ae,children:h.jsx("img",{ref:U===l?V:null,className:ie(z.imageStyle,{[z.contain]:_.image.objectFit==="contain",[z.cover]:_.image.objectFit==="cover",[z.scaleSlide]:f.type==="scale"}),src:_.image.url,alt:_.image.name??"",style:{...ne,pointerEvents:_.image.objectFit==="contain"?"none":"auto"}})})},U)})},u),R.isActive&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:ie(z.arrow,{[z.arrowVertical]:f.direction==="vert"}),style:{color:R.color,"--arrow-hover-color":R.hover},children:h.jsxs("button",{className:z.arrowInner,style:{transform:`translate(${O(R.offset.x,o)}, ${O(R.offset.y*(f.direction==="horiz"?1:-1),o)}) scale(${R.scale}) rotate(${f.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var _;return(_=g.current)==null?void 0:_.go("-1")},"aria-label":"Previous",children:[R.arrowsImgUrl&&h.jsx(He,{url:R.arrowsImgUrl,fill:R.color,hoverFill:R.hover,className:ie(z.arrowImg,z.mirror)}),!R.arrowsImgUrl&&h.jsx(er,{color:R.color,className:ie(z.arrowIcon,z.arrowImg,z.mirror)})]})}),h.jsx("div",{className:ie(z.arrow,z.nextArrow,{[z.arrowVertical]:f.direction==="vert"}),style:{color:R.color,"--arrow-hover-color":R.hover},children:h.jsxs("button",{className:z.arrowInner,style:{transform:`translate(${O(R.offset.x*(f.direction==="horiz"?-1:1),o)}, ${O(R.offset.y,o)}) scale(${R.scale}) rotate(${f.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var _;return(_=g.current)==null?void 0:_.go("+1")},"aria-label":"Next",children:[R.arrowsImgUrl&&h.jsx(He,{url:R.arrowsImgUrl,fill:R.color,hoverFill:R.hover,className:z.arrowImg}),!R.arrowsImgUrl&&h.jsx(er,{color:R.color,className:ie(z.arrowIcon,z.arrowImg)})]})})]}),N.closeIconUrl&&(()=>{const _=Lt(N.closeIconAlign,N.closeIconOffset,o),U=`scale(${N.closeIconScale})`,G=_.transform?`${_.transform} ${U}`:U;return h.jsx("button",{className:z.closeButton,style:{..._,transform:G},onClick:J,"aria-label":"Close lightbox",children:h.jsx(He,{url:N.closeIconUrl,fill:N.closeIconColor??"#000000",hoverFill:N.closeIconHover??"#cccccc"})})})(),S&&S.isActive&&t.imageCaption&&((M=n[l])==null?void 0:M.imageCaption)&&(()=>{const{widthSettings:_,fontSettings:U,letterSpacing:G,textAlign:Z,wordSpacing:ne,fontSizeLineHeight:Q,textAppearance:K,color:se}=t.imageCaption;return h.jsx("div",{className:z.caption,style:{...Lt(S.alignment,S.offset,o),fontFamily:U.fontFamily,fontWeight:U.fontWeight,fontStyle:U.fontStyle,width:_.sizing==="auto"?"max-content":O(_.width,o),letterSpacing:O(G,o),wordSpacing:O(ne,o),textAlign:Z,fontSize:O(Q.fontSize,o),lineHeight:O(Q.lineHeight,o),textTransform:K.textTransform??"none",textDecoration:K.textDecoration??"none",fontVariant:K.fontVariant??"normal",color:se},onClick:ye=>ye.stopPropagation(),children:h.jsx("div",{"data-styles":"imageCaption",className:z.captionTextInner,style:{"--link-color":S.linkColor,"--link-hover-color":S.linkHoverColor},children:h.jsx(zt,{content:n[l].imageCaption})})})})(),k.isActive&&(()=>{const[_,U]=k.position.split("-"),G=f.direction==="horiz"?`${_}-left`:k.position,Z=Lt(G,k.offset,o),ne=()=>{if(f.direction==="horiz"){if(U==="left")return"flex-start";if(U==="center")return"center";if(U==="right")return"flex-end"}else{if(_==="top")return"flex-start";if(_==="middle")return"center";if(_==="bottom")return"flex-end"}return"flex-start"};return h.jsx("div",{ref:E,className:z.thumbsWrapper,onClick:Q=>fe(Q),style:{position:o?"absolute":"fixed",...Z,...f.direction==="horiz"?{maxWidth:"100vw",width:"100%",overflowX:"auto",overflowY:"hidden"}:{maxHeight:"100vh",overflowY:"auto",overflowX:"hidden"}},children:h.jsx("div",{className:ie(z.thumbsContainer,{[z.thumbsContainerVertical]:f.direction==="vert",[z.thumbsAlignStart]:k.align==="start",[z.thumbsAlignCenter]:k.align==="center",[z.thumbsAlignEnd]:k.align==="end"}),style:{gap:O(k.grid.gap,o),justifyContent:j?"flex-start":ne()},children:n.map((Q,K)=>{const se=K===l,ye=C[K],me=k.grid.size*(se?k.activeState.scale:1),At=()=>{if(k.fit!=="fit")return{};if(!ye)return f.direction==="horiz"?{height:O(me,o)}:{width:O(me,o)};const ee=ye.width/ye.height;if(f.direction==="horiz"){const ue=me,Te=ue*ee;return{width:O(Te,o),height:O(ue,o)}}else{const ue=me,Te=ue/ee;return{width:O(ue,o),height:O(Te,o)}}};return h.jsx("button",{className:z.thumbItem,style:{...f.direction==="horiz"&&k.fit!=="fit"?{height:O(me,o)}:{},...f.direction==="vert"&&k.fit!=="fit"?{width:O(me,o)}:{},...k.fit==="cover"?{width:O(me,o),height:O(me,o)}:{},...At(),transition:se?"all 0.25s ease-out":"none",opacity:se?k.activeState.opacity/100:k.opacity/100,"--thumb-hover":k.activeState.opacity/100},onClick:ee=>{var ue;ee.stopPropagation(),d(K),(ue=g.current)==null||ue.go(K)},onMouseEnter:()=>{var ee;k.triggers==="hov"&&((ee=g.current)==null||ee.go(K))},children:h.jsx("img",{src:Q.image.url,alt:Q.image.name??"",onLoad:ee=>{const ue=ee.currentTarget;ue.naturalWidth&&ue.naturalHeight&&v(Te=>({...Te,[K]:{width:ue.naturalWidth,height:ue.naturalHeight}}))},style:{objectFit:k.fit==="cover"?"cover":"contain",...k.fit==="fit"?{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}:{},...k.fit==="cover"?{width:"100%",height:"100%"}:{}}})},`${Q.image.name}-${K}`)})})})})()]})]}),document.getElementById(s)):null};function er({color:e,className:r}){return h.jsx("svg",{viewBox:"0 0 10 18",className:r,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 Ma={element:Fa,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"]}},Va="Testimonials-module__container___H14Dc",$a="Testimonials-module__wrapper___eCRwv",Ha="Testimonials-module__cover___5I7Fh",Ua="Testimonials-module__caption___-YQRG",Ya="Testimonials-module__creds___KKvX1",Ga="Testimonials-module__image___nHD1Y",Xa="Testimonials-module__icon___SstqT",Ka="Testimonials-module__arrow___NO6BN",qa="Testimonials-module__nextArrow___L3G-W",Ja="Testimonials-module__arrowInner___GSjnA",Za="Testimonials-module__arrowIcon___fw7vy",Qa="Testimonials-module__arrowImg___7R9fl",es="Testimonials-module__mirror___JkFna",pe={container:Va,wrapper:$a,cover:Ha,caption:Ua,creds:Ya,image:Ga,icon:Xa,arrow:Ka,nextArrow:qa,arrowInner:Ja,arrowIcon:Za,arrowImg:Qa,mirror:es};function tn(e,r,n){const t={},[i,s]=e.split("-");return i==="top"?(t.top="0",t.bottom="auto"):i==="middle"?(t.top="50%",t.bottom="auto"):i==="bottom"&&(t.top="auto",t.bottom="0"),s==="left"?(t.left="0",t.right="auto"):s==="center"?(t.left="50%",t.right="auto"):s==="right"&&(t.left="auto",t.right="0"),i==="middle"&&s==="center"?t.transform=`translate(calc(-50% + ${O(r.x,n)}), calc(-50% + ${O(r.y,n)}))`:i==="middle"?t.transform=`translate(${O(r.x,n)}, calc(-50% + ${O(r.y,n)}))`:s==="center"?t.transform=`translate(calc(-50% + ${O(r.x,n)}), ${O(r.y,n)})`:t.transform=`translate(${O(r.x,n)}, ${O(r.y,n)})`,t}const ts=e=>{if(!e)return 0;const r=e.match(/^(\d+)(ms|s)$/);if(!r)return 0;const n=parseInt(r[1],10);return r[2]==="s"?n*1e3:n},ns=({settings:e,content:r,styles:n,isEditor:t})=>{const i=$.useRef(null),{general:s,card:o,controls:a}=e,{width:l,height:d}=o.dimensions,u=e.general.move==="one"?1:e.general.inView||1,x=e.general.inView||3,m=e.general.autoplay==="on",b=m?1:u,c=m?e.general.speed?ts(e.general.speed):0:500,p=m?void 0:O(l*x+e.card.gap*(x-1)+o.borders.width*2*x,t??!1),C=`${s.autoplay}-${s.inView}`;return $.useEffect(()=>{var v;if((v=i.current)!=null&&v.splide){const g=i.current.splide;g.options={...g.options,autoplay:m,perPage:x,perMove:b,interval:m?c||500:0,rewind:!m},g.refresh()}},[s.autoplay,s.inView,m,x,b,c]),h.jsxs(h.Fragment,{children:[h.jsx("div",{className:pe.container,style:{justifyContent:e.general.alignment},children:h.jsx("div",{className:`${pe.wrapper}`,style:p?{width:p}:void 0,children:h.jsx(kn,{ref:i,options:{type:"loop",fixedWidth:O(l+o.borders.width*2,t??!1),...e.general.autoplay==="off"&&{perPage:x,width:p},arrows:!1,perMove:m?b:u,gap:O(e.card.gap,t??!1),padding:0,drag:!1,autoplay:m,speed:c,interval:c,rewind:!m,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,g)=>{var V,F,I,y,A;const w=tn(e.elements.icon.alignment,e.elements.icon.offset,t);return h.jsx(jn,{children:h.jsxs("div",{style:{width:O(l+o.borders.width*2,t??!1),height:O(d,t??!1),borderRadius:O(e.card.corner,t??!1),border:`${O(e.card.borders.width,t??!1)} solid ${e.card.borders.color}`,overflow:"hidden",boxSizing:"border-box"},children:[h.jsx("img",{className:pe.image,src:(V=v.image)==null?void 0:V.url,alt:(F=v.image)==null?void 0:F.name,style:{objectFit:((I=v.image)==null?void 0:I.objectFit)||"cover"}}),h.jsx("div",{className:pe.cover,style:{background:e.card.bgColor,borderRadius:`${O(e.card.corner,t??!1)}`}}),h.jsxs("div",{children:[h.jsx("img",{src:(y=v.icon)==null?void 0:y.url,alt:(A=v.icon)==null?void 0:A.name,className:pe.icon,style:{...w,transform:`${w.transform||""} scale(${e.elements.icon.scale/100})`}}),n.imageCaption&&(()=>{const{widthSettings:L,fontSettings:B,letterSpacing:E,textAlign:j,wordSpacing:D,fontSizeLineHeight:H,textAppearance:W,color:f}=n.imageCaption;return h.jsx("div",{"data-styles":"imageCaption",className:pe.caption,style:{...tn(e.elements.text.alignment,e.elements.text.offset,t),fontFamily:B.fontFamily,fontWeight:B.fontWeight,fontStyle:B.fontStyle,width:L.sizing==="auto"?"max-content":O(L.width,t),letterSpacing:O(E,t),wordSpacing:O(D,t),textAlign:j,fontSize:O(H.fontSize,t),lineHeight:O(H.lineHeight,t),textTransform:W.textTransform??"none",textDecoration:W.textDecoration??"none",fontVariant:W.fontVariant??"normal",color:f},children:h.jsx(zt,{content:v.imageCaption})})})(),n.creds&&(()=>{const{widthSettings:L,fontSettings:B,letterSpacing:E,textAlign:j,wordSpacing:D,fontSizeLineHeight:H,textAppearance:W,color:f}=n.creds;return h.jsx("div",{"data-styles":"creds",className:pe.creds,style:{...tn(e.elements.creds.alignment,e.elements.creds.offset,t),fontFamily:B.fontFamily,fontWeight:B.fontWeight,fontStyle:B.fontStyle,width:L.sizing==="auto"?"max-content":O(L.width,t),letterSpacing:O(E,t),wordSpacing:O(D,t),textAlign:j,fontSize:O(H.fontSize,t),lineHeight:O(H.lineHeight,t),textTransform:W.textTransform??"none",textDecoration:W.textDecoration??"none",fontVariant:W.fontVariant??"normal",color:f},children:h.jsx(zt,{content:v.creds})})})()]})]})},g)})},C)})}),a.isActive&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:pe.arrow,style:{color:a.color,"--arrow-hover-color":a.hover},children:h.jsxs("button",{className:pe.arrowInner,style:{transform:`translate(${O(a.offset.x,t??!1)}, ${O(a.offset.y,t??!1)}) scale(${a.scale/100})`},onClick:()=>{var v;return(v=i.current)==null?void 0:v.go(m?"-1":`-${u}`)},"aria-label":"Previous",children:[a.arrowsImgUrl&&h.jsx(He,{url:a.arrowsImgUrl,fill:a.color,hoverFill:a.hover,className:ie(pe.arrowImg,pe.mirror)}),!a.arrowsImgUrl&&h.jsx(tr,{color:a.color,className:ie(pe.arrowIcon,pe.arrowImg,pe.mirror)})]})}),h.jsx("div",{className:ie(pe.arrow,pe.nextArrow),style:{color:a.color,"--arrow-hover-color":a.hover},children:h.jsxs("button",{className:pe.arrowInner,style:{transform:`translate(${O(a.offset.x*-1,t??!1)}, ${O(a.offset.y,t??!1)}) scale(${a.scale/100})`},onClick:()=>{var v;return(v=i.current)==null?void 0:v.go(m?"+1":`+${u}`)},"aria-label":"Next",children:[a.arrowsImgUrl&&h.jsx(He,{url:a.arrowsImgUrl,fill:a.color,hoverFill:a.hover,className:pe.arrowImg}),!a.arrowsImgUrl&&h.jsx(tr,{color:a.color,className:ie(pe.arrowIcon,pe.arrowImg)})]})})]})]})};function tr({color:e,className:r}){return h.jsx("svg",{viewBox:"0 0 10 18",className:r,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 rs={element:ns,id:"testimonials",name:"Testimonials",preview:{type:"video",url:"https://cdn.cntrl.site/component-assets/testimonials.mp4"},defaultSize:{width:700,height:400},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:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]},direction:{type:"string",display:{type:"ratio-group"},enum:["left","right"]},pause:{title:"Pause on",type:"string",display:{type:"ratio-group"},enum:["hover","click","off"]}}},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:"H",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"}}}},elements:{title:"elements",icon:"star",type:"object",properties:{elements:{type:"string",display:{type:"ratio-group"},enum:["text","icon","caption"]},text:{type:"object",display:{type:"group"},properties:{alignment:{type:"string",display:{type:"align-grid",visible:!0},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",visible:!0},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}}}}}},icon:{type:"object",display:{type:"group"},properties:{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}}}},scale:{type:"number",title:"scale",min:50,max:600,display:{type:"range-control",visible:!1}}}},creds:{type:"object",display:{type:"group"},properties:{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}}}}}}}},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"}}}}},default:{general:{autoplay:"off",inView:3,alignment:"center",move:"one",speed:"3s",direction:"left",pause:"off"},card:{dimensions:{width:.15,height:.2},gap:.02,corner:.005,borders:{width:.001,color:"#000000"},bgColor:"rgba(255, 255, 255, 0.2)"},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:100,color:"#000000",hover:"#cccccc"},elements:{elements:"text",text:{alignment:"middle-left",offset:{x:.005,y:0}},icon:{alignment:"top-left",offset:{x:0,y:0},scale:100},creds:{alignment:"bottom-left",offset:{x:.005,y:-.005}}}},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",value:"text"},then:{name:"properties.elements.properties.text.properties.alignment.display.visible",value:!0}},{if:{name:"elements.elements",value:"text"},then:{name:"properties.elements.properties.text.properties.offset.display.visible",value:!0}},{if:{name:"elements.elements",value:"text"},then:{name:"properties.elements.properties.icon.properties.alignment.display.visible",value:!1}},{if:{name:"elements.elements",value:"text"},then:{name:"properties.elements.properties.icon.properties.offset.display.visible",value:!1}},{if:{name:"elements.elements",value:"text"},then:{name:"properties.elements.properties.creds.properties.alignment.display.visible",value:!1}},{if:{name:"elements.elements",value:"text"},then:{name:"properties.elements.properties.creds.properties.offset.display.visible",value:!1}},{if:{name:"elements.elements",value:"icon"},then:{name:"properties.elements.properties.icon.properties.alignment.display.visible",value:!0}},{if:{name:"elements.elements",value:"icon"},then:{name:"properties.elements.properties.icon.properties.offset.display.visible",value:!0}},{if:{name:"elements.elements",value:"icon"},then:{name:"properties.elements.properties.text.properties.alignment.display.visible",value:!1}},{if:{name:"elements.elements",value:"icon"},then:{name:"properties.elements.properties.text.properties.offset.display.visible",value:!1}},{if:{name:"elements.elements",value:"icon"},then:{name:"properties.elements.properties.creds.properties.alignment.display.visible",value:!1}},{if:{name:"elements.elements",value:"icon"},then:{name:"properties.elements.properties.creds.properties.offset.display.visible",value:!1}},{if:{name:"elements.elements",value:"caption"},then:{name:"properties.elements.properties.creds.properties.alignment.display.visible",value:!0}},{if:{name:"elements.elements",value:"caption"},then:{name:"properties.elements.properties.creds.properties.offset.display.visible",value:!0}},{if:{name:"elements.elements",value:"caption"},then:{name:"properties.elements.properties.text.properties.alignment.display.visible",value:!1}},{if:{name:"elements.elements",value:"caption"},then:{name:"properties.elements.properties.text.properties.offset.display.visible",value:!1}},{if:{name:"elements.elements",value:"caption"},then:{name:"properties.elements.properties.icon.properties.alignment.display.visible",value:!1}},{if:{name:"elements.elements",value:"caption"},then:{name:"properties.elements.properties.icon.properties.offset.display.visible",value:!1}},{if:{name:"elements.elements",value:"icon"},then:{name:"properties.elements.properties.icon.properties.scale.display.visible",value:!0}},{if:{name:"elements.elements",value:"text"},then:{name:"properties.elements.properties.icon.properties.scale.display.visible",value:!1}},{if:{name:"elements.elements",value:"caption"},then:{name:"properties.elements.properties.icon.properties.scale.display.visible",value:!1}}]},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}},creds:{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."}]}],creds:[{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."}]}],creds:[{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."}]}],creds:[{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"}}}},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"},creds:{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"]}}},is=[Yo,Qo,Ma,rs];exports.components=is;
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;