@cntrl-site/components 1.0.7-alpha.2 → 1.0.7-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),j=require("react"),mt=require("classnames"),w=require("./useScopedStyles-DpVdqfXj.js"),br=require("react-dom");function Sr(t){return t.type==="object"&&t.version===1}const xr="ControlSlider-module__wrapper___sHEkd",Cr="ControlSlider-module__hoverArrow___A-dOH",wr="ControlSlider-module__sliderItem___QQSkR",$r="ControlSlider-module__sliderImage___9hRl-",Tr="ControlSlider-module__arrow___05ghY",_r="ControlSlider-module__arrowVertical___tBfVN",Ar="ControlSlider-module__nextArrow___-30Yc",Er="ControlSlider-module__arrowInner___aEra3",Lr="ControlSlider-module__arrowIcon___S4ztF",Fr="ControlSlider-module__arrowImg___2dwJW",kr="ControlSlider-module__mirror___brd6U",Ir="ControlSlider-module__pagination___bicLF",Rr="ControlSlider-module__paginationInner___bT-P-",Wr="ControlSlider-module__paginationVertical___zYqKw",zr="ControlSlider-module__paginationItem___nTRbk",Vr="ControlSlider-module__dot___p1Qun",Mr="ControlSlider-module__activeDot___LHFaj",Nr="ControlSlider-module__paginationInsideBottom___R3FWn",Pr="ControlSlider-module__paginationInsideTop___V-qb-",jr="ControlSlider-module__paginationOutsideBottom___14w8D",Hr="ControlSlider-module__paginationOutsideTop___SCLqB",Or="ControlSlider-module__paginationInsideLeft___yOBRZ",Br="ControlSlider-module__paginationInsideRight___Rtt3o",Dr="ControlSlider-module__paginationOutsideLeft___lahaw",Ur="ControlSlider-module__paginationOutsideRight___EtuQa",qr="ControlSlider-module__imgWrapper___UjEgB",Gr="ControlSlider-module__captionBlock___dJ6-j",Yr="ControlSlider-module__captionTextWrapper___HFlpf",Xr="ControlSlider-module__captionText___uGBVc",Kr="ControlSlider-module__active___WZK4G",Zr="ControlSlider-module__withPointerEvents___t-18M",Jr="ControlSlider-module__topLeftAlignment___zjnGM",Qr="ControlSlider-module__topCenterAlignment___gD1xW",ti="ControlSlider-module__topRightAlignment___NMapS",ei="ControlSlider-module__middleLeftAlignment___OnUrY",ni="ControlSlider-module__middleCenterAlignment___Tdkl0",oi="ControlSlider-module__middleRightAlignment___wEbfX",ri="ControlSlider-module__bottomLeftAlignment___cTP2-",ii="ControlSlider-module__bottomCenterAlignment___c54fB",ai="ControlSlider-module__bottomRightAlignment___kEwrz",li="ControlSlider-module__clickOverlay___DZA28",si="ControlSlider-module__contain___pLyq7",ci="ControlSlider-module__cover___KdDat",K={wrapper:xr,hoverArrow:Cr,sliderItem:wr,sliderImage:$r,arrow:Tr,arrowVertical:_r,nextArrow:Ar,arrowInner:Er,arrowIcon:Lr,arrowImg:Fr,mirror:kr,pagination:Ir,paginationInner:Rr,paginationVertical:Wr,paginationItem:zr,dot:Vr,activeDot:Mr,paginationInsideBottom:Nr,paginationInsideTop:Pr,paginationOutsideBottom:jr,paginationOutsideTop:Hr,paginationInsideLeft:Or,paginationInsideRight:Br,paginationOutsideLeft:Dr,paginationOutsideRight:Ur,imgWrapper:qr,captionBlock:Gr,captionTextWrapper:Yr,captionText:Xr,active:Kr,withPointerEvents:Zr,topLeftAlignment:Jr,topCenterAlignment:Qr,topRightAlignment:ti,middleLeftAlignment:ei,middleCenterAlignment:ni,middleRightAlignment:oi,bottomLeftAlignment:ri,bottomCenterAlignment:ii,bottomRightAlignment:ai,clickOverlay:li,contain:si,cover:ci};function pi(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ui(t,e,n){return e&&pi(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var io="(prefers-reduced-motion: reduce)",ge=1,di=2,ve=3,xe=4,Me=5,Je=6,nn=7,gi={CREATED:ge,MOUNTED:di,IDLE:ve,MOVING:xe,SCROLLING:Me,DRAGGING:Je,DESTROYED:nn};function Gt(t){t.length=0}function te(t,e,n){return Array.prototype.slice.call(t,e,n)}function ut(t){return t.bind.apply(t,[null].concat(te(arguments,1)))}var Lo=setTimeout,An=function(){};function ao(t){return requestAnimationFrame(t)}function sn(t,e){return typeof e===t}function Le(t){return!Mn(t)&&sn("object",t)}var Vn=Array.isArray,Fo=ut(sn,"function"),Jt=ut(sn,"string"),Ne=ut(sn,"undefined");function Mn(t){return t===null}function ko(t){try{return t instanceof(t.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function Pe(t){return Vn(t)?t:[t]}function Et(t,e){Pe(t).forEach(e)}function Nn(t,e){return t.indexOf(e)>-1}function Qe(t,e){return t.push.apply(t,Pe(e)),t}function Dt(t,e,n){t&&Et(e,function(o){o&&t.classList[n?"add":"remove"](o)})}function Mt(t,e){Dt(t,Jt(e)?e.split(" "):e,!0)}function je(t,e){Et(e,t.appendChild.bind(t))}function Pn(t,e){Et(t,function(n){var o=(e||n).parentNode;o&&o.insertBefore(n,e)})}function Fe(t,e){return ko(t)&&(t.msMatchesSelector||t.matches).call(t,e)}function Io(t,e){var n=t?te(t.children):[];return e?n.filter(function(o){return Fe(o,e)}):n}function He(t,e){return e?Io(t,e)[0]:t.firstElementChild}var ke=Object.keys;function ie(t,e,n){return t&&(n?ke(t).reverse():ke(t)).forEach(function(o){o!=="__proto__"&&e(t[o],o)}),t}function Ie(t){return te(arguments,1).forEach(function(e){ie(e,function(n,o){t[o]=e[o]})}),t}function Kt(t){return te(arguments,1).forEach(function(e){ie(e,function(n,o){Vn(n)?t[o]=n.slice():Le(n)?t[o]=Kt({},Le(t[o])?t[o]:{},n):t[o]=n})}),t}function lo(t,e){Et(e||ke(t),function(n){delete t[n]})}function Nt(t,e){Et(t,function(n){Et(e,function(o){n&&n.removeAttribute(o)})})}function nt(t,e,n){Le(e)?ie(e,function(o,r){nt(t,r,o)}):Et(t,function(o){Mn(n)||n===""?Nt(o,e):o.setAttribute(e,String(n))})}function me(t,e,n){var o=document.createElement(t);return e&&(Jt(e)?Mt(o,e):nt(o,e)),n&&je(n,o),o}function It(t,e,n){if(Ne(n))return getComputedStyle(t)[e];Mn(n)||(t.style[e]=""+n)}function Re(t,e){It(t,"display",e)}function Ro(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function Rt(t,e){return t.getAttribute(e)}function so(t,e){return t&&t.classList.contains(e)}function _t(t){return t.getBoundingClientRect()}function ae(t){Et(t,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function Wo(t){return He(new DOMParser().parseFromString(t,"text/html").body)}function Bt(t,e){t.preventDefault(),e&&(t.stopPropagation(),t.stopImmediatePropagation())}function zo(t,e){return t&&t.querySelector(e)}function jn(t,e){return e?te(t.querySelectorAll(e)):[]}function Ut(t,e){Dt(t,e,!1)}function En(t){return t.timeStamp}function re(t){return Jt(t)?t:t?t+"px":""}var Oe="splide",Hn="data-"+Oe;function Ae(t,e){if(!t)throw new Error("["+Oe+"] "+(e||""))}var Qt=Math.min,on=Math.max,rn=Math.floor,We=Math.ceil,$t=Math.abs;function Vo(t,e,n){return $t(t-e)<n}function tn(t,e,n,o){var r=Qt(e,n),a=on(e,n);return o?r<t&&t<a:r<=t&&t<=a}function ue(t,e,n){var o=Qt(e,n),r=on(e,n);return Qt(on(o,t),r)}function Ln(t){return+(t>0)-+(t<0)}function Fn(t,e){return Et(e,function(n){t=t.replace("%s",""+n)}),t}function On(t){return t<10?"0"+t:""+t}var co={};function mi(t){return""+t+On(co[t]=(co[t]||0)+1)}function Mo(){var t=[];function e(i,p,s,f){r(i,p,function(u,F,S){var y="addEventListener"in u,d=y?u.removeEventListener.bind(u,F,s,f):u.removeListener.bind(u,s);y?u.addEventListener(F,s,f):u.addListener(s),t.push([u,F,S,s,d])})}function n(i,p,s){r(i,p,function(f,u,F){t=t.filter(function(S){return S[0]===f&&S[1]===u&&S[2]===F&&(!s||S[3]===s)?(S[4](),!1):!0})})}function o(i,p,s){var f,u=!0;return typeof CustomEvent=="function"?f=new CustomEvent(p,{bubbles:u,detail:s}):(f=document.createEvent("CustomEvent"),f.initCustomEvent(p,u,!1,s)),i.dispatchEvent(f),f}function r(i,p,s){Et(i,function(f){f&&Et(p,function(u){u.split(" ").forEach(function(F){var S=F.split(".");s(f,S[0],S[1])})})})}function a(){t.forEach(function(i){i[4]()}),Gt(t)}return{bind:e,unbind:n,dispatch:o,destroy:a}}var ee="mounted",kn="ready",Yt="move",Ce="moved",Bn="click",No="active",Po="inactive",jo="visible",Ho="hidden",bt="refresh",wt="updated",be="resize",cn="resized",Oo="drag",Bo="dragging",Do="dragged",pn="scroll",se="scrolled",fi="overflow",Dn="destroy",Uo="arrows:mounted",qo="arrows:updated",Go="pagination:mounted",Yo="pagination:updated",Un="navigation:mounted",qn="autoplay:play",Xo="autoplay:playing",Gn="autoplay:pause",Yn="lazyload:loaded",Ko="sk",Zo="sh",an="ei";function ht(t){var e=t?t.event.bus:document.createDocumentFragment(),n=Mo();function o(a,i){n.bind(e,Pe(a).join(" "),function(p){i.apply(i,Vn(p.detail)?p.detail:[])})}function r(a){n.dispatch(e,a,te(arguments,1))}return t&&t.event.on(Dn,n.destroy),Ie(n,{bus:e,on:o,off:ut(n.unbind,e),emit:r})}function un(t,e,n,o){var r=Date.now,a,i=0,p,s=!0,f=0;function u(){if(!s){if(i=t?Qt((r()-a)/t,1):1,n&&n(i),i>=1&&(e(),a=r(),o&&++f>=o))return S();p=ao(u)}}function F(b){b||d(),a=r()-(b?i*t:0),s=!1,p=ao(u)}function S(){s=!0}function y(){a=r(),i=0,n&&n(i)}function d(){p&&cancelAnimationFrame(p),i=0,p=0,s=!0}function g(b){t=b}function $(){return s}return{start:F,rewind:y,pause:S,cancel:d,set:g,isPaused:$}}function yi(t){var e=t;function n(r){e=r}function o(r){return Nn(Pe(r),e)}return{set:n,is:o}}function hi(t,e){var n=un(0,t,null,1);return function(){n.isPaused()&&n.start()}}function vi(t,e,n){var o=t.state,r=n.breakpoints||{},a=n.reducedMotion||{},i=Mo(),p=[];function s(){var d=n.mediaQuery==="min";ke(r).sort(function(g,$){return d?+g-+$:+$-+g}).forEach(function(g){u(r[g],"("+(d?"min":"max")+"-width:"+g+"px)")}),u(a,io),F()}function f(d){d&&i.destroy()}function u(d,g){var $=matchMedia(g);i.bind($,"change",F),p.push([d,$])}function F(){var d=o.is(nn),g=n.direction,$=p.reduce(function(b,v){return Kt(b,v[1].matches?v[0]:{})},{});lo(n),y($),n.destroy?t.destroy(n.destroy==="completely"):d?(f(!0),t.mount()):g!==n.direction&&t.refresh()}function S(d){matchMedia(io).matches&&(d?Kt(n,a):lo(n,ke(a)))}function y(d,g,$){Kt(n,d),g&&Kt(Object.getPrototypeOf(n),d),($||!o.is(ge))&&t.emit(wt,n)}return{setup:s,destroy:f,reduce:S,set:y}}var dn="Arrow",gn=dn+"Left",mn=dn+"Right",Jo=dn+"Up",Qo=dn+"Down",po="rtl",fn="ttb",xn={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Jo,mn],ArrowRight:[Qo,gn]};function bi(t,e,n){function o(a,i,p){p=p||n.direction;var s=p===po&&!i?1:p===fn?0:-1;return xn[a]&&xn[a][s]||a.replace(/width|left|right/i,function(f,u){var F=xn[f.toLowerCase()][s]||f;return u>0?F.charAt(0).toUpperCase()+F.slice(1):F})}function r(a){return a*(n.direction===po?1:-1)}return{resolve:o,orient:r}}var qt="role",fe="tabindex",Si="disabled",Wt="aria-",Be=Wt+"controls",tr=Wt+"current",uo=Wt+"selected",At=Wt+"label",Xn=Wt+"labelledby",er=Wt+"hidden",Kn=Wt+"orientation",ze=Wt+"roledescription",go=Wt+"live",mo=Wt+"busy",fo=Wt+"atomic",Zn=[qt,fe,Si,Be,tr,At,Xn,er,Kn,ze],Pt=Oe+"__",ne="is-",Cn=Oe,yo=Pt+"track",xi=Pt+"list",yn=Pt+"slide",nr=yn+"--clone",Ci=yn+"__container",Jn=Pt+"arrows",hn=Pt+"arrow",or=hn+"--prev",rr=hn+"--next",vn=Pt+"pagination",ir=vn+"__page",wi=Pt+"progress",$i=wi+"__bar",Ti=Pt+"toggle",_i=Pt+"spinner",Ai=Pt+"sr",Ei=ne+"initialized",le=ne+"active",ar=ne+"prev",lr=ne+"next",In=ne+"visible",Rn=ne+"loading",sr=ne+"focus-in",cr=ne+"overflow",Li=[le,In,ar,lr,Rn,sr,cr],Fi={slide:yn,clone:nr,arrows:Jn,arrow:hn,prev:or,next:rr,pagination:vn,page:ir,spinner:_i};function ki(t,e){if(Fo(t.closest))return t.closest(e);for(var n=t;n&&n.nodeType===1&&!Fe(n,e);)n=n.parentElement;return n}var Ii=5,ho=200,pr="touchstart mousedown",wn="touchmove mousemove",$n="touchend touchcancel mouseup click";function Ri(t,e,n){var o=ht(t),r=o.on,a=o.bind,i=t.root,p=n.i18n,s={},f=[],u=[],F=[],S,y,d;function g(){C(),H(),v()}function $(){r(bt,b),r(bt,g),r(wt,v),a(document,pr+" keydown",function(c){d=c.type==="keydown"},{capture:!0}),a(i,"focusin",function(){Dt(i,sr,!!d)})}function b(c){var k=Zn.concat("style");Gt(f),Ut(i,u),Ut(S,F),Nt([S,y],k),Nt(i,c?k:["style",ze])}function v(){Ut(i,u),Ut(S,F),u=T(Cn),F=T(yo),Mt(i,u),Mt(S,F),nt(i,At,n.label),nt(i,Xn,n.labelledby)}function C(){S=E("."+yo),y=He(S,"."+xi),Ae(S&&y,"A track/list element is missing."),Qe(f,Io(y,"."+yn+":not(."+nr+")")),ie({arrows:Jn,pagination:vn,prev:or,next:rr,bar:$i,toggle:Ti},function(c,k){s[k]=E("."+c)}),Ie(s,{root:i,track:S,list:y,slides:f})}function H(){var c=i.id||mi(Oe),k=n.role;i.id=c,S.id=S.id||c+"-track",y.id=y.id||c+"-list",!Rt(i,qt)&&i.tagName!=="SECTION"&&k&&nt(i,qt,k),nt(i,ze,p.carousel),nt(y,qt,"presentation")}function E(c){var k=zo(i,c);return k&&ki(k,"."+Cn)===i?k:void 0}function T(c){return[c+"--"+n.type,c+"--"+n.direction,n.drag&&c+"--draggable",n.isNavigation&&c+"--nav",c===Cn&&le]}return Ie(s,{setup:g,mount:$,destroy:b})}var Se="slide",we="loop",De="fade";function Wi(t,e,n,o){var r=ht(t),a=r.on,i=r.emit,p=r.bind,s=t.Components,f=t.root,u=t.options,F=u.isNavigation,S=u.updateOnMove,y=u.i18n,d=u.pagination,g=u.slideFocus,$=s.Direction.resolve,b=Rt(o,"style"),v=Rt(o,At),C=n>-1,H=He(o,"."+Ci),E;function T(){C||(o.id=f.id+"-slide"+On(e+1),nt(o,qt,d?"tabpanel":"group"),nt(o,ze,y.slide),nt(o,At,v||Fn(y.slideLabel,[e+1,t.length]))),c()}function c(){p(o,"click",ut(i,Bn,z)),p(o,"keydown",ut(i,Ko,z)),a([Ce,Zo,se],x),a(Un,L),S&&a(Yt,P)}function k(){E=!0,r.destroy(),Ut(o,Li),Nt(o,Zn),nt(o,"style",b),nt(o,At,v||"")}function L(){var W=t.splides.map(function(A){var M=A.splide.Components.Slides.getAt(e);return M?M.slide.id:""}).join(" ");nt(o,At,Fn(y.slideX,(C?n:e)+1)),nt(o,Be,W),nt(o,qt,g?"button":""),g&&Nt(o,ze)}function P(){E||x()}function x(){if(!E){var W=t.index;V(),_(),Dt(o,ar,e===W-1),Dt(o,lr,e===W+1)}}function V(){var W=q();W!==so(o,le)&&(Dt(o,le,W),nt(o,tr,F&&W||""),i(W?No:Po,z))}function _(){var W=h(),A=!W&&(!q()||C);if(t.state.is([xe,Me])||nt(o,er,A||""),nt(jn(o,u.focusableNodes||""),fe,A?-1:""),g&&nt(o,fe,A?-1:0),W!==so(o,In)&&(Dt(o,In,W),i(W?jo:Ho,z)),!W&&document.activeElement===o){var M=s.Slides.getAt(t.index);M&&Ro(M.slide)}}function U(W,A,M){It(M&&H||o,W,A)}function q(){var W=t.index;return W===e||u.cloneStatus&&W===n}function h(){if(t.is(De))return q();var W=_t(s.Elements.track),A=_t(o),M=$("left",!0),X=$("right",!0);return rn(W[M])<=We(A[M])&&rn(A[X])<=We(W[X])}function I(W,A){var M=$t(W-e);return!C&&(u.rewind||t.is(we))&&(M=Qt(M,t.length-M)),M<=A}var z={index:e,slideIndex:n,slide:o,container:H,isClone:C,mount:T,destroy:k,update:x,style:U,isWithin:I};return z}function zi(t,e,n){var o=ht(t),r=o.on,a=o.emit,i=o.bind,p=e.Elements,s=p.slides,f=p.list,u=[];function F(){S(),r(bt,y),r(bt,S)}function S(){s.forEach(function(x,V){g(x,V,-1)})}function y(){E(function(x){x.destroy()}),Gt(u)}function d(){E(function(x){x.update()})}function g(x,V,_){var U=Wi(t,V,_,x);U.mount(),u.push(U),u.sort(function(q,h){return q.index-h.index})}function $(x){return x?T(function(V){return!V.isClone}):u}function b(x){var V=e.Controller,_=V.toIndex(x),U=V.hasFocus()?1:n.perPage;return T(function(q){return tn(q.index,_,_+U-1)})}function v(x){return T(x)[0]}function C(x,V){Et(x,function(_){if(Jt(_)&&(_=Wo(_)),ko(_)){var U=s[V];U?Pn(_,U):je(f,_),Mt(_,n.classes.slide),k(_,ut(a,be))}}),a(bt)}function H(x){ae(T(x).map(function(V){return V.slide})),a(bt)}function E(x,V){$(V).forEach(x)}function T(x){return u.filter(Fo(x)?x:function(V){return Jt(x)?Fe(V.slide,x):Nn(Pe(x),V.index)})}function c(x,V,_){E(function(U){U.style(x,V,_)})}function k(x,V){var _=jn(x,"img"),U=_.length;U?_.forEach(function(q){i(q,"load error",function(){--U||V()})}):V()}function L(x){return x?s.length:u.length}function P(){return u.length>n.perPage}return{mount:F,destroy:y,update:d,register:g,get:$,getIn:b,getAt:v,add:C,remove:H,forEach:E,filter:T,style:c,getLength:L,isEnough:P}}function Vi(t,e,n){var o=ht(t),r=o.on,a=o.bind,i=o.emit,p=e.Slides,s=e.Direction.resolve,f=e.Elements,u=f.root,F=f.track,S=f.list,y=p.getAt,d=p.style,g,$,b;function v(){C(),a(window,"resize load",hi(ut(i,be))),r([wt,bt],C),r(be,H)}function C(){g=n.direction===fn,It(u,"maxWidth",re(n.width)),It(F,s("paddingLeft"),E(!1)),It(F,s("paddingRight"),E(!0)),H(!0)}function H(z){var W=_t(u);(z||$.width!==W.width||$.height!==W.height)&&(It(F,"height",T()),d(s("marginRight"),re(n.gap)),d("width",k()),d("height",L(),!0),$=W,i(cn),b!==(b=I())&&(Dt(u,cr,b),i(fi,b)))}function E(z){var W=n.padding,A=s(z?"right":"left");return W&&re(W[A]||(Le(W)?0:W))||"0px"}function T(){var z="";return g&&(z=c(),Ae(z,"height or heightRatio is missing."),z="calc("+z+" - "+E(!1)+" - "+E(!0)+")"),z}function c(){return re(n.height||_t(S).width*n.heightRatio)}function k(){return n.autoWidth?null:re(n.fixedWidth)||(g?"":P())}function L(){return re(n.fixedHeight)||(g?n.autoHeight?null:P():c())}function P(){var z=re(n.gap);return"calc((100%"+(z&&" + "+z)+")/"+(n.perPage||1)+(z&&" - "+z)+")"}function x(){return _t(S)[s("width")]}function V(z,W){var A=y(z||0);return A?_t(A.slide)[s("width")]+(W?0:q()):0}function _(z,W){var A=y(z);if(A){var M=_t(A.slide)[s("right")],X=_t(S)[s("left")];return $t(M-X)+(W?0:q())}return 0}function U(z){return _(t.length-1)-_(0)+V(0,z)}function q(){var z=y(0);return z&&parseFloat(It(z.slide,s("marginRight")))||0}function h(z){return parseFloat(It(F,s("padding"+(z?"Right":"Left"))))||0}function I(){return t.is(De)||U(!0)>x()}return{mount:v,resize:H,listSize:x,slideSize:V,sliderSize:U,totalSize:_,getPadding:h,isOverflow:I}}var Mi=2;function Ni(t,e,n){var o=ht(t),r=o.on,a=e.Elements,i=e.Slides,p=e.Direction.resolve,s=[],f;function u(){r(bt,F),r([wt,be],y),(f=$())&&(d(f),e.Layout.resize(!0))}function F(){S(),u()}function S(){ae(s),Gt(s),o.destroy()}function y(){var b=$();f!==b&&(f<b||!b)&&o.emit(bt)}function d(b){var v=i.get().slice(),C=v.length;if(C){for(;v.length<b;)Qe(v,v);Qe(v.slice(-b),v.slice(0,b)).forEach(function(H,E){var T=E<b,c=g(H.slide,E);T?Pn(c,v[0].slide):je(a.list,c),Qe(s,c),i.register(c,E-b+(T?0:C),H.index)})}}function g(b,v){var C=b.cloneNode(!0);return Mt(C,n.classes.clone),C.id=t.root.id+"-clone"+On(v+1),C}function $(){var b=n.clones;if(!t.is(we))b=0;else if(Ne(b)){var v=n[p("fixedWidth")]&&e.Layout.slideSize(0),C=v&&We(_t(a.track)[p("width")]/v);b=C||n[p("autoWidth")]&&t.length||n.perPage*Mi}return b}return{mount:u,destroy:S}}function Pi(t,e,n){var o=ht(t),r=o.on,a=o.emit,i=t.state.set,p=e.Layout,s=p.slideSize,f=p.getPadding,u=p.totalSize,F=p.listSize,S=p.sliderSize,y=e.Direction,d=y.resolve,g=y.orient,$=e.Elements,b=$.list,v=$.track,C;function H(){C=e.Transition,r([ee,cn,wt,bt],E)}function E(){e.Controller.isBusy()||(e.Scroll.cancel(),c(t.index),e.Slides.update())}function T(A,M,X,it){A!==M&&z(A>X)&&(x(),k(P(U(),A>X),!0)),i(xe),a(Yt,M,X,A),C.start(M,function(){i(ve),a(Ce,M,X,A),it&&it()})}function c(A){k(_(A,!0))}function k(A,M){if(!t.is(De)){var X=M?A:L(A);It(b,"transform","translate"+d("X")+"("+X+"px)"),A!==X&&a(Zo)}}function L(A){if(t.is(we)){var M=V(A),X=M>e.Controller.getEnd(),it=M<0;(it||X)&&(A=P(A,X))}return A}function P(A,M){var X=A-I(M),it=S();return A-=g(it*(We($t(X)/it)||1))*(M?1:-1),A}function x(){k(U(),!0),C.cancel()}function V(A){for(var M=e.Slides.get(),X=0,it=1/0,ot=0;ot<M.length;ot++){var lt=M[ot].index,N=$t(_(lt,!0)-A);if(N<=it)it=N,X=lt;else break}return X}function _(A,M){var X=g(u(A-1)-h(A));return M?q(X):X}function U(){var A=d("left");return _t(b)[A]-_t(v)[A]+g(f(!1))}function q(A){return n.trimSpace&&t.is(Se)&&(A=ue(A,0,g(S(!0)-F()))),A}function h(A){var M=n.focus;return M==="center"?(F()-s(A,!0))/2:+M*s(A)||0}function I(A){return _(A?e.Controller.getEnd():0,!!n.trimSpace)}function z(A){var M=g(P(U(),A));return A?M>=0:M<=b[d("scrollWidth")]-_t(v)[d("width")]}function W(A,M){M=Ne(M)?U():M;var X=A!==!0&&g(M)<g(I(!1)),it=A!==!1&&g(M)>g(I(!0));return X||it}return{mount:H,move:T,jump:c,translate:k,shift:P,cancel:x,toIndex:V,toPosition:_,getPosition:U,getLimit:I,exceededLimit:W,reposition:E}}function ji(t,e,n){var o=ht(t),r=o.on,a=o.emit,i=e.Move,p=i.getPosition,s=i.getLimit,f=i.toPosition,u=e.Slides,F=u.isEnough,S=u.getLength,y=n.omitEnd,d=t.is(we),g=t.is(Se),$=ut(U,!1),b=ut(U,!0),v=n.start||0,C,H=v,E,T,c;function k(){L(),r([wt,bt,an],L),r(cn,P)}function L(){E=S(!0),T=n.perMove,c=n.perPage,C=z();var N=ue(v,0,y?C:E-1);N!==v&&(v=N,i.reposition())}function P(){C!==z()&&a(an)}function x(N,Z,dt){if(!lt()){var st=_(N),ft=I(st);ft>-1&&(Z||ft!==v)&&(X(ft),i.move(st,ft,H,dt))}}function V(N,Z,dt,st){e.Scroll.scroll(N,Z,dt,function(){var ft=I(i.toIndex(p()));X(y?Qt(ft,C):ft),st&&st()})}function _(N){var Z=v;if(Jt(N)){var dt=N.match(/([+\-<>])(\d+)?/)||[],st=dt[1],ft=dt[2];st==="+"||st==="-"?Z=q(v+ +(""+st+(+ft||1)),v):st===">"?Z=ft?W(+ft):$(!0):st==="<"&&(Z=b(!0))}else Z=d?N:ue(N,0,C);return Z}function U(N,Z){var dt=T||(ot()?1:c),st=q(v+dt*(N?-1:1),v,!(T||ot()));return st===-1&&g&&!Vo(p(),s(!N),1)?N?0:C:Z?st:I(st)}function q(N,Z,dt){if(F()||ot()){var st=h(N);st!==N&&(Z=N,N=st,dt=!1),N<0||N>C?!T&&(tn(0,N,Z,!0)||tn(C,Z,N,!0))?N=W(A(N)):d?N=dt?N<0?-(E%c||c):E:N:n.rewind?N=N<0?C:0:N=-1:dt&&N!==Z&&(N=W(A(Z)+(N<Z?-1:1)))}else N=-1;return N}function h(N){if(g&&n.trimSpace==="move"&&N!==v)for(var Z=p();Z===f(N,!0)&&tn(N,0,t.length-1,!n.rewind);)N<v?--N:++N;return N}function I(N){return d?(N+E)%E||0:N}function z(){for(var N=E-(ot()||d&&T?1:c);y&&N-- >0;)if(f(E-1,!0)!==f(N,!0)){N++;break}return ue(N,0,E-1)}function W(N){return ue(ot()?N:c*N,0,C)}function A(N){return ot()?Qt(N,C):rn((N>=C?E-1:N)/c)}function M(N){var Z=i.toIndex(N);return g?ue(Z,0,C):Z}function X(N){N!==v&&(H=v,v=N)}function it(N){return N?H:v}function ot(){return!Ne(n.focus)||n.isNavigation}function lt(){return t.state.is([xe,Me])&&!!n.waitForTransition}return{mount:k,go:x,scroll:V,getNext:$,getPrev:b,getAdjacent:U,getEnd:z,setIndex:X,getIndex:it,toIndex:W,toPage:A,toDest:M,hasFocus:ot,isBusy:lt}}var Hi="http://www.w3.org/2000/svg",Oi="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",Ge=40;function Bi(t,e,n){var o=ht(t),r=o.on,a=o.bind,i=o.emit,p=n.classes,s=n.i18n,f=e.Elements,u=e.Controller,F=f.arrows,S=f.track,y=F,d=f.prev,g=f.next,$,b,v={};function C(){E(),r(wt,H)}function H(){T(),C()}function E(){var V=n.arrows;V&&!(d&&g)&&L(),d&&g&&(Ie(v,{prev:d,next:g}),Re(y,V?"":"none"),Mt(y,b=Jn+"--"+n.direction),V&&(c(),x(),nt([d,g],Be,S.id),i(Uo,d,g)))}function T(){o.destroy(),Ut(y,b),$?(ae(F?[d,g]:y),d=g=null):Nt([d,g],Zn)}function c(){r([ee,Ce,bt,se,an],x),a(g,"click",ut(k,">")),a(d,"click",ut(k,"<"))}function k(V){u.go(V,!0)}function L(){y=F||me("div",p.arrows),d=P(!0),g=P(!1),$=!0,je(y,[d,g]),!F&&Pn(y,S)}function P(V){var _='<button class="'+p.arrow+" "+(V?p.prev:p.next)+'" type="button"><svg xmlns="'+Hi+'" viewBox="0 0 '+Ge+" "+Ge+'" width="'+Ge+'" height="'+Ge+'" focusable="false"><path d="'+(n.arrowPath||Oi)+'" />';return Wo(_)}function x(){if(d&&g){var V=t.index,_=u.getPrev(),U=u.getNext(),q=_>-1&&V<_?s.last:s.prev,h=U>-1&&V>U?s.first:s.next;d.disabled=_<0,g.disabled=U<0,nt(d,At,q),nt(g,At,h),i(qo,d,g,_,U)}}return{arrows:v,mount:C,destroy:T,update:x}}var Di=Hn+"-interval";function Ui(t,e,n){var o=ht(t),r=o.on,a=o.bind,i=o.emit,p=un(n.interval,t.go.bind(t,">"),c),s=p.isPaused,f=e.Elements,u=e.Elements,F=u.root,S=u.toggle,y=n.autoplay,d,g,$=y==="pause";function b(){y&&(v(),S&&nt(S,Be,f.track.id),$||C(),T())}function v(){n.pauseOnHover&&a(F,"mouseenter mouseleave",function(L){d=L.type==="mouseenter",E()}),n.pauseOnFocus&&a(F,"focusin focusout",function(L){g=L.type==="focusin",E()}),S&&a(S,"click",function(){$?C():H(!0)}),r([Yt,pn,bt],p.rewind),r(Yt,k)}function C(){s()&&e.Slides.isEnough()&&(p.start(!n.resetProgress),g=d=$=!1,T(),i(qn))}function H(L){L===void 0&&(L=!0),$=!!L,T(),s()||(p.pause(),i(Gn))}function E(){$||(d||g?H(!1):C())}function T(){S&&(Dt(S,le,!$),nt(S,At,n.i18n[$?"play":"pause"]))}function c(L){var P=f.bar;P&&It(P,"width",L*100+"%"),i(Xo,L)}function k(L){var P=e.Slides.getAt(L);p.set(P&&+Rt(P.slide,Di)||n.interval)}return{mount:b,destroy:p.cancel,play:C,pause:H,isPaused:s}}function qi(t,e,n){var o=ht(t),r=o.on;function a(){n.cover&&(r(Yn,ut(p,!0)),r([ee,wt,bt],ut(i,!0)))}function i(s){e.Slides.forEach(function(f){var u=He(f.container||f.slide,"img");u&&u.src&&p(s,u,f)})}function p(s,f,u){u.style("background",s?'center/cover no-repeat url("'+f.src+'")':"",!0),Re(f,s?"none":"")}return{mount:a,destroy:ut(i,!1)}}var Gi=10,Yi=600,Xi=.6,Ki=1.5,Zi=800;function Ji(t,e,n){var o=ht(t),r=o.on,a=o.emit,i=t.state.set,p=e.Move,s=p.getPosition,f=p.getLimit,u=p.exceededLimit,F=p.translate,S=t.is(Se),y,d,g=1;function $(){r(Yt,H),r([wt,bt],E)}function b(c,k,L,P,x){var V=s();if(H(),L&&(!S||!u())){var _=e.Layout.sliderSize(),U=Ln(c)*_*rn($t(c)/_)||0;c=p.toPosition(e.Controller.toDest(c%_))+U}var q=Vo(V,c,1);g=1,k=q?0:k||on($t(c-V)/Ki,Zi),d=P,y=un(k,v,ut(C,V,c,x),1),i(Me),a(pn),y.start()}function v(){i(ve),d&&d(),a(se)}function C(c,k,L,P){var x=s(),V=c+(k-c)*T(P),_=(V-x)*g;F(x+_),S&&!L&&u()&&(g*=Xi,$t(_)<Gi&&b(f(u(!0)),Yi,!1,d,!0))}function H(){y&&y.cancel()}function E(){y&&!y.isPaused()&&(H(),v())}function T(c){var k=n.easingFunc;return k?k(c):1-Math.pow(1-c,4)}return{mount:$,destroy:H,scroll:b,cancel:E}}var de={passive:!1,capture:!0};function Qi(t,e,n){var o=ht(t),r=o.on,a=o.emit,i=o.bind,p=o.unbind,s=t.state,f=e.Move,u=e.Scroll,F=e.Controller,S=e.Elements.track,y=e.Media.reduce,d=e.Direction,g=d.resolve,$=d.orient,b=f.getPosition,v=f.exceededLimit,C,H,E,T,c,k=!1,L,P,x;function V(){i(S,wn,An,de),i(S,$n,An,de),i(S,pr,U,de),i(S,"click",I,{capture:!0}),i(S,"dragstart",Bt),r([ee,wt],_)}function _(){var R=n.drag;J(!R),T=R==="free"}function U(R){if(L=!1,!P){var m=ft(R);st(R.target)&&(m||!R.button)&&(F.isBusy()?Bt(R,!0):(x=m?S:window,c=s.is([xe,Me]),E=null,i(x,wn,q,de),i(x,$n,h,de),f.cancel(),u.cancel(),z(R)))}}function q(R){if(s.is(Je)||(s.set(Je),a(Oo)),R.cancelable)if(c){f.translate(C+dt(ot(R)));var m=lt(R)>ho,O=k!==(k=v());(m||O)&&z(R),L=!0,a(Bo),Bt(R)}else M(R)&&(c=A(R),Bt(R))}function h(R){s.is(Je)&&(s.set(ve),a(Do)),c&&(W(R),Bt(R)),p(x,wn,q),p(x,$n,h),c=!1}function I(R){!P&&L&&Bt(R,!0)}function z(R){E=H,H=R,C=b()}function W(R){var m=X(R),O=it(m),B=n.rewind&&n.rewindByDrag;y(!1),T?F.scroll(O,0,n.snap):t.is(De)?F.go($(Ln(m))<0?B?"<":"-":B?">":"+"):t.is(Se)&&k&&B?F.go(v(!0)?">":"<"):F.go(F.toDest(O),!0),y(!0)}function A(R){var m=n.dragMinThreshold,O=Le(m),B=O&&m.mouse||0,G=(O?m.touch:+m)||10;return $t(ot(R))>(ft(R)?G:B)}function M(R){return $t(ot(R))>$t(ot(R,!0))}function X(R){if(t.is(we)||!k){var m=lt(R);if(m&&m<ho)return ot(R)/m}return 0}function it(R){return b()+Ln(R)*Qt($t(R)*(n.flickPower||600),T?1/0:e.Layout.listSize()*(n.flickMaxPages||1))}function ot(R,m){return Z(R,m)-Z(N(R),m)}function lt(R){return En(R)-En(N(R))}function N(R){return H===R&&E||H}function Z(R,m){return(ft(R)?R.changedTouches[0]:R)["page"+g(m?"Y":"X")]}function dt(R){return R/(k&&t.is(Se)?Ii:1)}function st(R){var m=n.noDrag;return!Fe(R,"."+ir+", ."+hn)&&(!m||!Fe(R,m))}function ft(R){return typeof TouchEvent<"u"&&R instanceof TouchEvent}function St(){return c}function J(R){P=R}return{mount:V,disable:J,isDragging:St}}var ta={Spacebar:" ",Right:mn,Left:gn,Up:Jo,Down:Qo};function Qn(t){return t=Jt(t)?t:t.key,ta[t]||t}var vo="keydown";function ea(t,e,n){var o=ht(t),r=o.on,a=o.bind,i=o.unbind,p=t.root,s=e.Direction.resolve,f,u;function F(){S(),r(wt,y),r(wt,S),r(Yt,g)}function S(){var b=n.keyboard;b&&(f=b==="global"?window:p,a(f,vo,$))}function y(){i(f,vo)}function d(b){u=b}function g(){var b=u;u=!0,Lo(function(){u=b})}function $(b){if(!u){var v=Qn(b);v===s(gn)?t.go("<"):v===s(mn)&&t.go(">")}}return{mount:F,destroy:y,disable:d}}var Ee=Hn+"-lazy",en=Ee+"-srcset",na="["+Ee+"], ["+en+"]";function oa(t,e,n){var o=ht(t),r=o.on,a=o.off,i=o.bind,p=o.emit,s=n.lazyLoad==="sequential",f=[Ce,se],u=[];function F(){n.lazyLoad&&(S(),r(bt,S))}function S(){Gt(u),y(),s?b():(a(f),r(f,d),d())}function y(){e.Slides.forEach(function(v){jn(v.slide,na).forEach(function(C){var H=Rt(C,Ee),E=Rt(C,en);if(H!==C.src||E!==C.srcset){var T=n.classes.spinner,c=C.parentElement,k=He(c,"."+T)||me("span",T,c);u.push([C,v,k]),C.src||Re(C,"none")}})})}function d(){u=u.filter(function(v){var C=n.perPage*((n.preloadPages||1)+1)-1;return v[1].isWithin(t.index,C)?g(v):!0}),u.length||a(f)}function g(v){var C=v[0];Mt(v[1].slide,Rn),i(C,"load error",ut($,v)),nt(C,"src",Rt(C,Ee)),nt(C,"srcset",Rt(C,en)),Nt(C,Ee),Nt(C,en)}function $(v,C){var H=v[0],E=v[1];Ut(E.slide,Rn),C.type!=="error"&&(ae(v[2]),Re(H,""),p(Yn,H,E),p(be)),s&&b()}function b(){u.length&&g(u.shift())}return{mount:F,destroy:ut(Gt,u),check:d}}function ra(t,e,n){var o=ht(t),r=o.on,a=o.emit,i=o.bind,p=e.Slides,s=e.Elements,f=e.Controller,u=f.hasFocus,F=f.getIndex,S=f.go,y=e.Direction.resolve,d=s.pagination,g=[],$,b;function v(){C(),r([wt,bt,an],v);var P=n.pagination;d&&Re(d,P?"":"none"),P&&(r([Yt,pn,se],L),H(),L(),a(Go,{list:$,items:g},k(t.index)))}function C(){$&&(ae(d?te($.children):$),Ut($,b),Gt(g),$=null),o.destroy()}function H(){var P=t.length,x=n.classes,V=n.i18n,_=n.perPage,U=u()?f.getEnd()+1:We(P/_);$=d||me("ul",x.pagination,s.track.parentElement),Mt($,b=vn+"--"+c()),nt($,qt,"tablist"),nt($,At,V.select),nt($,Kn,c()===fn?"vertical":"");for(var q=0;q<U;q++){var h=me("li",null,$),I=me("button",{class:x.page,type:"button"},h),z=p.getIn(q).map(function(A){return A.slide.id}),W=!u()&&_>1?V.pageX:V.slideX;i(I,"click",ut(E,q)),n.paginationKeyboard&&i(I,"keydown",ut(T,q)),nt(h,qt,"presentation"),nt(I,qt,"tab"),nt(I,Be,z.join(" ")),nt(I,At,Fn(W,q+1)),nt(I,fe,-1),g.push({li:h,button:I,page:q})}}function E(P){S(">"+P,!0)}function T(P,x){var V=g.length,_=Qn(x),U=c(),q=-1;_===y(mn,!1,U)?q=++P%V:_===y(gn,!1,U)?q=(--P+V)%V:_==="Home"?q=0:_==="End"&&(q=V-1);var h=g[q];h&&(Ro(h.button),S(">"+q),Bt(x,!0))}function c(){return n.paginationDirection||n.direction}function k(P){return g[f.toPage(P)]}function L(){var P=k(F(!0)),x=k(F());if(P){var V=P.button;Ut(V,le),Nt(V,uo),nt(V,fe,-1)}if(x){var _=x.button;Mt(_,le),nt(_,uo,!0),nt(_,fe,"")}a(Yo,{list:$,items:g},P,x)}return{items:g,mount:v,destroy:C,getAt:k,update:L}}var ia=[" ","Enter"];function aa(t,e,n){var o=n.isNavigation,r=n.slideFocus,a=[];function i(){t.splides.forEach(function(d){d.isParent||(f(t,d.splide),f(d.splide,t))}),o&&u()}function p(){a.forEach(function(d){d.destroy()}),Gt(a)}function s(){p(),i()}function f(d,g){var $=ht(d);$.on(Yt,function(b,v,C){g.go(g.is(we)?C:b)}),a.push($)}function u(){var d=ht(t),g=d.on;g(Bn,S),g(Ko,y),g([ee,wt],F),a.push(d),d.emit(Un,t.splides)}function F(){nt(e.Elements.list,Kn,n.direction===fn?"vertical":"")}function S(d){t.go(d.index)}function y(d,g){Nn(ia,Qn(g))&&(S(d),Bt(g))}return{setup:ut(e.Media.set,{slideFocus:Ne(r)?o:r},!0),mount:i,destroy:p,remount:s}}function la(t,e,n){var o=ht(t),r=o.bind,a=0;function i(){n.wheel&&r(e.Elements.track,"wheel",p,de)}function p(f){if(f.cancelable){var u=f.deltaY,F=u<0,S=En(f),y=n.wheelMinThreshold||0,d=n.wheelSleep||0;$t(u)>y&&S-a>d&&(t.go(F?"<":">"),a=S),s(F)&&Bt(f)}}function s(f){return!n.releaseWheel||t.state.is(xe)||e.Controller.getAdjacent(f)!==-1}return{mount:i}}var sa=90;function ca(t,e,n){var o=ht(t),r=o.on,a=e.Elements.track,i=n.live&&!n.isNavigation,p=me("span",Ai),s=un(sa,ut(u,!1));function f(){i&&(S(!e.Autoplay.isPaused()),nt(a,fo,!0),p.textContent="…",r(qn,ut(S,!0)),r(Gn,ut(S,!1)),r([Ce,se],ut(u,!0)))}function u(y){nt(a,mo,y),y?(je(a,p),s.start()):(ae(p),s.cancel())}function F(){Nt(a,[go,fo,mo]),ae(p)}function S(y){i&&nt(a,go,y?"off":"polite")}return{mount:f,disable:S,destroy:F}}var pa=Object.freeze({__proto__:null,Media:vi,Direction:bi,Elements:Ri,Slides:zi,Layout:Vi,Clones:Ni,Move:Pi,Controller:ji,Arrows:Bi,Autoplay:Ui,Cover:qi,Scroll:Ji,Drag:Qi,Keyboard:ea,LazyLoad:oa,Pagination:ra,Sync:aa,Wheel:la,Live:ca}),ua={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"},da={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:Fi,i18n:ua,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function ga(t,e,n){var o=e.Slides;function r(){ht(t).on([ee,bt],a)}function a(){o.forEach(function(p){p.style("transform","translateX(-"+100*p.index+"%)")})}function i(p,s){o.style("transition","opacity "+n.speed+"ms "+n.easing),Lo(s)}return{mount:r,start:i,cancel:An}}function ma(t,e,n){var o=e.Move,r=e.Controller,a=e.Scroll,i=e.Elements.list,p=ut(It,i,"transition"),s;function f(){ht(t).bind(i,"transitionend",function(y){y.target===i&&s&&(F(),s())})}function u(y,d){var g=o.toPosition(y,!0),$=o.getPosition(),b=S(y);$t(g-$)>=1&&b>=1?n.useScroll?a.scroll(g,b,!1,d):(p("transform "+b+"ms "+n.easing),o.translate(g,!0),s=d):(o.jump(y),d())}function F(){p(""),a.cancel()}function S(y){var d=n.rewindSpeed;if(t.is(Se)&&d){var g=r.getIndex(!0),$=r.getEnd();if(g===0&&y>=$||g>=$&&y===0)return d}return n.speed}return{mount:f,start:u,cancel:F}}var fa=(function(){function t(n,o){this.event=ht(),this.Components={},this.state=yi(ge),this.splides=[],this._o={},this._E={};var r=Jt(n)?zo(document,n):n;Ae(r,r+" is invalid."),this.root=r,o=Kt({label:Rt(r,At)||"",labelledby:Rt(r,Xn)||""},da,t.defaults,o||{});try{Kt(o,JSON.parse(Rt(r,Hn)))}catch{Ae(!1,"Invalid JSON")}this._o=Object.create(Kt({},o))}var e=t.prototype;return e.mount=function(o,r){var a=this,i=this.state,p=this.Components;Ae(i.is([ge,nn]),"Already mounted!"),i.set(ge),this._C=p,this._T=r||this._T||(this.is(De)?ga:ma),this._E=o||this._E;var s=Ie({},pa,this._E,{Transition:this._T});return ie(s,function(f,u){var F=f(a,p,a._o);p[u]=F,F.setup&&F.setup()}),ie(p,function(f){f.mount&&f.mount()}),this.emit(ee),Mt(this.root,Ei),i.set(ve),this.emit(kn),this},e.sync=function(o){return this.splides.push({splide:o}),o.splides.push({splide:this,isParent:!0}),this.state.is(ve)&&(this._C.Sync.remount(),o.Components.Sync.remount()),this},e.go=function(o){return this._C.Controller.go(o),this},e.on=function(o,r){return this.event.on(o,r),this},e.off=function(o){return this.event.off(o),this},e.emit=function(o){var r;return(r=this.event).emit.apply(r,[o].concat(te(arguments,1))),this},e.add=function(o,r){return this._C.Slides.add(o,r),this},e.remove=function(o){return this._C.Slides.remove(o),this},e.is=function(o){return this._o.type===o},e.refresh=function(){return this.emit(bt),this},e.destroy=function(o){o===void 0&&(o=!0);var r=this.event,a=this.state;return a.is(ge)?ht(this).on(kn,this.destroy.bind(this,o)):(ie(this._C,function(i){i.destroy&&i.destroy(o)},!0),r.emit(Dn),r.destroy(),o&&Gt(this.splides),a.set(nn)),this},ui(t,[{key:"options",get:function(){return this._o},set:function(o){this._C.Media.set(o,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),t})(),to=fa;to.defaults={};to.STATES=gi;var bo=[[ee,"onMounted"],[kn,"onReady"],[Yt,"onMove"],[Ce,"onMoved"],[Bn,"onClick"],[No,"onActive"],[Po,"onInactive"],[jo,"onVisible"],[Ho,"onHidden"],[bt,"onRefresh"],[wt,"onUpdated"],[be,"onResize"],[cn,"onResized"],[Oo,"onDrag"],[Bo,"onDragging"],[Do,"onDragged"],[pn,"onScroll"],[se,"onScrolled"],[Dn,"onDestroy"],[Uo,"onArrowsMounted"],[qo,"onArrowsUpdated"],[Go,"onPaginationMounted"],[Yo,"onPaginationUpdated"],[Un,"onNavigationMounted"],[qn,"onAutoplayPlay"],[Xo,"onAutoplayPlaying"],[Gn,"onAutoplayPause"],[Yn,"onLazyLoadLoaded"]];function eo(...t){return t.filter(Boolean).join(" ")}function ln(t){return t!==null&&typeof t=="object"}function Wn(t,e){if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&!t.some((n,o)=>!Wn(n,e[o]));if(ln(t)&&ln(e)){const n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&!n.some(r=>!Object.prototype.hasOwnProperty.call(e,r)||!Wn(t[r],e[r]))}return t===e}function ya(t,e){return t.length===e.length&&!t.some((n,o)=>n!==e[o])}function ha(t,e){if(t){const n=Object.keys(t);for(let o=0;o<n.length;o++){const r=n[o];if(r!=="__proto__"&&e(t[r],r)===!1)break}}return t}function zn(t,e){const n=t;return ha(e,(o,r)=>{Array.isArray(o)?n[r]=o.slice():ln(o)?n[r]=zn(ln(n[r])?n[r]:{},o):n[r]=o}),n}var va=({children:t,className:e,...n})=>j.createElement("div",{className:eo("splide__track",e),...n},j.createElement("ul",{className:"splide__list"},t)),ur=class extends j.Component{constructor(){super(...arguments),this.splideRef=j.createRef(),this.slides=[]}componentDidMount(){const{options:t,extensions:e,transition:n}=this.props,{current:o}=this.splideRef;o&&(this.splide=new to(o,t),this.bind(this.splide),this.splide.mount(e,n),this.options=zn({},t||{}),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:t}=this.props;t&&!Wn(this.options,t)&&(this.splide.options=t,this.options=zn({},t));const e=this.getSlides();ya(this.slides,e)||(this.splide.refresh(),this.slides=e)}sync(t){var e;(e=this.splide)==null||e.sync(t)}go(t){var e;(e=this.splide)==null||e.go(t)}getSlides(){var t;if(this.splide){const e=(t=this.splide.Components.Elements)==null?void 0:t.list.children;return e&&Array.prototype.slice.call(e)||[]}return[]}bind(t){bo.forEach(([e,n])=>{const o=this.props[n];typeof o=="function"&&t.on(e,(...r)=>{o(t,...r)})})}omit(t,e){return e.forEach(n=>{Object.prototype.hasOwnProperty.call(t,n)&&delete t[n]}),t}render(){const{className:t,tag:e="div",hasTrack:n=!0,children:o,...r}=this.props;return j.createElement(e,{className:eo("splide",t),ref:this.splideRef,...this.omit(r,["options",...bo.map(a=>a[1])])},n?j.createElement(va,null,o):o)}},dr=({children:t,className:e,...n})=>j.createElement("li",{className:eo("splide__slide",e),...n},t);/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),H=require("react"),mt=require("classnames"),_=require("./useScopedStyles-DpVdqfXj.js"),br=require("react-dom");function xr(t){return t.type==="object"&&t.version===1}const Sr="ControlSlider-module__wrapper___sHEkd",Cr="ControlSlider-module__hoverArrow___A-dOH",wr="ControlSlider-module__sliderItem___QQSkR",$r="ControlSlider-module__sliderImage___9hRl-",Tr="ControlSlider-module__arrow___05ghY",_r="ControlSlider-module__arrowVertical___tBfVN",Ar="ControlSlider-module__nextArrow___-30Yc",Lr="ControlSlider-module__arrowInner___aEra3",Er="ControlSlider-module__arrowIcon___S4ztF",Fr="ControlSlider-module__arrowImg___2dwJW",kr="ControlSlider-module__mirror___brd6U",Ir="ControlSlider-module__pagination___bicLF",Rr="ControlSlider-module__paginationInner___bT-P-",Wr="ControlSlider-module__paginationVertical___zYqKw",zr="ControlSlider-module__paginationItem___nTRbk",Vr="ControlSlider-module__dot___p1Qun",Mr="ControlSlider-module__activeDot___LHFaj",Nr="ControlSlider-module__paginationInsideBottom___R3FWn",Pr="ControlSlider-module__paginationInsideTop___V-qb-",Hr="ControlSlider-module__paginationOutsideBottom___14w8D",jr="ControlSlider-module__paginationOutsideTop___SCLqB",Or="ControlSlider-module__paginationInsideLeft___yOBRZ",Br="ControlSlider-module__paginationInsideRight___Rtt3o",Dr="ControlSlider-module__paginationOutsideLeft___lahaw",Ur="ControlSlider-module__paginationOutsideRight___EtuQa",qr="ControlSlider-module__imgWrapper___UjEgB",Gr="ControlSlider-module__captionBlock___dJ6-j",Yr="ControlSlider-module__captionTextWrapper___HFlpf",Xr="ControlSlider-module__captionText___uGBVc",Kr="ControlSlider-module__active___WZK4G",Zr="ControlSlider-module__withPointerEvents___t-18M",Jr="ControlSlider-module__topLeftAlignment___zjnGM",Qr="ControlSlider-module__topCenterAlignment___gD1xW",ti="ControlSlider-module__topRightAlignment___NMapS",ei="ControlSlider-module__middleLeftAlignment___OnUrY",ni="ControlSlider-module__middleCenterAlignment___Tdkl0",oi="ControlSlider-module__middleRightAlignment___wEbfX",ri="ControlSlider-module__bottomLeftAlignment___cTP2-",ii="ControlSlider-module__bottomCenterAlignment___c54fB",ai="ControlSlider-module__bottomRightAlignment___kEwrz",li="ControlSlider-module__clickOverlay___DZA28",si="ControlSlider-module__contain___pLyq7",ci="ControlSlider-module__cover___KdDat",Z={wrapper:Sr,hoverArrow:Cr,sliderItem:wr,sliderImage:$r,arrow:Tr,arrowVertical:_r,nextArrow:Ar,arrowInner:Lr,arrowIcon:Er,arrowImg:Fr,mirror:kr,pagination:Ir,paginationInner:Rr,paginationVertical:Wr,paginationItem:zr,dot:Vr,activeDot:Mr,paginationInsideBottom:Nr,paginationInsideTop:Pr,paginationOutsideBottom:Hr,paginationOutsideTop:jr,paginationInsideLeft:Or,paginationInsideRight:Br,paginationOutsideLeft:Dr,paginationOutsideRight:Ur,imgWrapper:qr,captionBlock:Gr,captionTextWrapper:Yr,captionText:Xr,active:Kr,withPointerEvents:Zr,topLeftAlignment:Jr,topCenterAlignment:Qr,topRightAlignment:ti,middleLeftAlignment:ei,middleCenterAlignment:ni,middleRightAlignment:oi,bottomLeftAlignment:ri,bottomCenterAlignment:ii,bottomRightAlignment:ai,clickOverlay:li,contain:si,cover:ci};function pi(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ui(t,e,n){return e&&pi(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var io="(prefers-reduced-motion: reduce)",ge=1,di=2,ve=3,Se=4,Me=5,Je=6,nn=7,gi={CREATED:ge,MOUNTED:di,IDLE:ve,MOVING:Se,SCROLLING:Me,DRAGGING:Je,DESTROYED:nn};function Gt(t){t.length=0}function te(t,e,n){return Array.prototype.slice.call(t,e,n)}function dt(t){return t.bind.apply(t,[null].concat(te(arguments,1)))}var Eo=setTimeout,An=function(){};function ao(t){return requestAnimationFrame(t)}function sn(t,e){return typeof e===t}function Ee(t){return!Mn(t)&&sn("object",t)}var Vn=Array.isArray,Fo=dt(sn,"function"),Jt=dt(sn,"string"),Ne=dt(sn,"undefined");function Mn(t){return t===null}function ko(t){try{return t instanceof(t.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function Pe(t){return Vn(t)?t:[t]}function Lt(t,e){Pe(t).forEach(e)}function Nn(t,e){return t.indexOf(e)>-1}function Qe(t,e){return t.push.apply(t,Pe(e)),t}function Dt(t,e,n){t&&Lt(e,function(o){o&&t.classList[n?"add":"remove"](o)})}function Mt(t,e){Dt(t,Jt(e)?e.split(" "):e,!0)}function He(t,e){Lt(e,t.appendChild.bind(t))}function Pn(t,e){Lt(t,function(n){var o=(e||n).parentNode;o&&o.insertBefore(n,e)})}function Fe(t,e){return ko(t)&&(t.msMatchesSelector||t.matches).call(t,e)}function Io(t,e){var n=t?te(t.children):[];return e?n.filter(function(o){return Fe(o,e)}):n}function je(t,e){return e?Io(t,e)[0]:t.firstElementChild}var ke=Object.keys;function ie(t,e,n){return t&&(n?ke(t).reverse():ke(t)).forEach(function(o){o!=="__proto__"&&e(t[o],o)}),t}function Ie(t){return te(arguments,1).forEach(function(e){ie(e,function(n,o){t[o]=e[o]})}),t}function Kt(t){return te(arguments,1).forEach(function(e){ie(e,function(n,o){Vn(n)?t[o]=n.slice():Ee(n)?t[o]=Kt({},Ee(t[o])?t[o]:{},n):t[o]=n})}),t}function lo(t,e){Lt(e||ke(t),function(n){delete t[n]})}function Nt(t,e){Lt(t,function(n){Lt(e,function(o){n&&n.removeAttribute(o)})})}function et(t,e,n){Ee(e)?ie(e,function(o,r){et(t,r,o)}):Lt(t,function(o){Mn(n)||n===""?Nt(o,e):o.setAttribute(e,String(n))})}function me(t,e,n){var o=document.createElement(t);return e&&(Jt(e)?Mt(o,e):et(o,e)),n&&He(n,o),o}function It(t,e,n){if(Ne(n))return getComputedStyle(t)[e];Mn(n)||(t.style[e]=""+n)}function Re(t,e){It(t,"display",e)}function Ro(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function Rt(t,e){return t.getAttribute(e)}function so(t,e){return t&&t.classList.contains(e)}function _t(t){return t.getBoundingClientRect()}function ae(t){Lt(t,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function Wo(t){return je(new DOMParser().parseFromString(t,"text/html").body)}function Bt(t,e){t.preventDefault(),e&&(t.stopPropagation(),t.stopImmediatePropagation())}function zo(t,e){return t&&t.querySelector(e)}function Hn(t,e){return e?te(t.querySelectorAll(e)):[]}function Ut(t,e){Dt(t,e,!1)}function Ln(t){return t.timeStamp}function re(t){return Jt(t)?t:t?t+"px":""}var Oe="splide",jn="data-"+Oe;function Ae(t,e){if(!t)throw new Error("["+Oe+"] "+(e||""))}var Qt=Math.min,on=Math.max,rn=Math.floor,We=Math.ceil,$t=Math.abs;function Vo(t,e,n){return $t(t-e)<n}function tn(t,e,n,o){var r=Qt(e,n),a=on(e,n);return o?r<t&&t<a:r<=t&&t<=a}function ue(t,e,n){var o=Qt(e,n),r=on(e,n);return Qt(on(o,t),r)}function En(t){return+(t>0)-+(t<0)}function Fn(t,e){return Lt(e,function(n){t=t.replace("%s",""+n)}),t}function On(t){return t<10?"0"+t:""+t}var co={};function mi(t){return""+t+On(co[t]=(co[t]||0)+1)}function Mo(){var t=[];function e(i,l,p,g){r(i,l,function(u,F,S){var f="addEventListener"in u,d=f?u.removeEventListener.bind(u,F,p,g):u.removeListener.bind(u,p);f?u.addEventListener(F,p,g):u.addListener(p),t.push([u,F,S,p,d])})}function n(i,l,p){r(i,l,function(g,u,F){t=t.filter(function(S){return S[0]===g&&S[1]===u&&S[2]===F&&(!p||S[3]===p)?(S[4](),!1):!0})})}function o(i,l,p){var g,u=!0;return typeof CustomEvent=="function"?g=new CustomEvent(l,{bubbles:u,detail:p}):(g=document.createEvent("CustomEvent"),g.initCustomEvent(l,u,!1,p)),i.dispatchEvent(g),g}function r(i,l,p){Lt(i,function(g){g&&Lt(l,function(u){u.split(" ").forEach(function(F){var S=F.split(".");p(g,S[0],S[1])})})})}function a(){t.forEach(function(i){i[4]()}),Gt(t)}return{bind:e,unbind:n,dispatch:o,destroy:a}}var ee="mounted",kn="ready",Yt="move",Ce="moved",Bn="click",No="active",Po="inactive",Ho="visible",jo="hidden",vt="refresh",wt="updated",be="resize",cn="resized",Oo="drag",Bo="dragging",Do="dragged",pn="scroll",se="scrolled",fi="overflow",Dn="destroy",Uo="arrows:mounted",qo="arrows:updated",Go="pagination:mounted",Yo="pagination:updated",Un="navigation:mounted",qn="autoplay:play",Xo="autoplay:playing",Gn="autoplay:pause",Yn="lazyload:loaded",Ko="sk",Zo="sh",an="ei";function yt(t){var e=t?t.event.bus:document.createDocumentFragment(),n=Mo();function o(a,i){n.bind(e,Pe(a).join(" "),function(l){i.apply(i,Vn(l.detail)?l.detail:[])})}function r(a){n.dispatch(e,a,te(arguments,1))}return t&&t.event.on(Dn,n.destroy),Ie(n,{bus:e,on:o,off:dt(n.unbind,e),emit:r})}function un(t,e,n,o){var r=Date.now,a,i=0,l,p=!0,g=0;function u(){if(!p){if(i=t?Qt((r()-a)/t,1):1,n&&n(i),i>=1&&(e(),a=r(),o&&++g>=o))return S();l=ao(u)}}function F(x){x||d(),a=r()-(x?i*t:0),p=!1,l=ao(u)}function S(){p=!0}function f(){a=r(),i=0,n&&n(i)}function d(){l&&cancelAnimationFrame(l),i=0,l=0,p=!0}function m(x){t=x}function w(){return p}return{start:F,rewind:f,pause:S,cancel:d,set:m,isPaused:w}}function yi(t){var e=t;function n(r){e=r}function o(r){return Nn(Pe(r),e)}return{set:n,is:o}}function hi(t,e){var n=un(0,t,null,1);return function(){n.isPaused()&&n.start()}}function vi(t,e,n){var o=t.state,r=n.breakpoints||{},a=n.reducedMotion||{},i=Mo(),l=[];function p(){var d=n.mediaQuery==="min";ke(r).sort(function(m,w){return d?+m-+w:+w-+m}).forEach(function(m){u(r[m],"("+(d?"min":"max")+"-width:"+m+"px)")}),u(a,io),F()}function g(d){d&&i.destroy()}function u(d,m){var w=matchMedia(m);i.bind(w,"change",F),l.push([d,w])}function F(){var d=o.is(nn),m=n.direction,w=l.reduce(function(x,b){return Kt(x,b[1].matches?b[0]:{})},{});lo(n),f(w),n.destroy?t.destroy(n.destroy==="completely"):d?(g(!0),t.mount()):m!==n.direction&&t.refresh()}function S(d){matchMedia(io).matches&&(d?Kt(n,a):lo(n,ke(a)))}function f(d,m,w){Kt(n,d),m&&Kt(Object.getPrototypeOf(n),d),(w||!o.is(ge))&&t.emit(wt,n)}return{setup:p,destroy:g,reduce:S,set:f}}var dn="Arrow",gn=dn+"Left",mn=dn+"Right",Jo=dn+"Up",Qo=dn+"Down",po="rtl",fn="ttb",Sn={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Jo,mn],ArrowRight:[Qo,gn]};function bi(t,e,n){function o(a,i,l){l=l||n.direction;var p=l===po&&!i?1:l===fn?0:-1;return Sn[a]&&Sn[a][p]||a.replace(/width|left|right/i,function(g,u){var F=Sn[g.toLowerCase()][p]||g;return u>0?F.charAt(0).toUpperCase()+F.slice(1):F})}function r(a){return a*(n.direction===po?1:-1)}return{resolve:o,orient:r}}var qt="role",fe="tabindex",xi="disabled",Wt="aria-",Be=Wt+"controls",tr=Wt+"current",uo=Wt+"selected",At=Wt+"label",Xn=Wt+"labelledby",er=Wt+"hidden",Kn=Wt+"orientation",ze=Wt+"roledescription",go=Wt+"live",mo=Wt+"busy",fo=Wt+"atomic",Zn=[qt,fe,xi,Be,tr,At,Xn,er,Kn,ze],Pt=Oe+"__",ne="is-",Cn=Oe,yo=Pt+"track",Si=Pt+"list",yn=Pt+"slide",nr=yn+"--clone",Ci=yn+"__container",Jn=Pt+"arrows",hn=Pt+"arrow",or=hn+"--prev",rr=hn+"--next",vn=Pt+"pagination",ir=vn+"__page",wi=Pt+"progress",$i=wi+"__bar",Ti=Pt+"toggle",_i=Pt+"spinner",Ai=Pt+"sr",Li=ne+"initialized",le=ne+"active",ar=ne+"prev",lr=ne+"next",In=ne+"visible",Rn=ne+"loading",sr=ne+"focus-in",cr=ne+"overflow",Ei=[le,In,ar,lr,Rn,sr,cr],Fi={slide:yn,clone:nr,arrows:Jn,arrow:hn,prev:or,next:rr,pagination:vn,page:ir,spinner:_i};function ki(t,e){if(Fo(t.closest))return t.closest(e);for(var n=t;n&&n.nodeType===1&&!Fe(n,e);)n=n.parentElement;return n}var Ii=5,ho=200,pr="touchstart mousedown",wn="touchmove mousemove",$n="touchend touchcancel mouseup click";function Ri(t,e,n){var o=yt(t),r=o.on,a=o.bind,i=t.root,l=n.i18n,p={},g=[],u=[],F=[],S,f,d;function m(){$(),j(),b()}function w(){r(vt,x),r(vt,m),r(wt,b),a(document,pr+" keydown",function(y){d=y.type==="keydown"},{capture:!0}),a(i,"focusin",function(){Dt(i,sr,!!d)})}function x(y){var L=Zn.concat("style");Gt(g),Ut(i,u),Ut(S,F),Nt([S,f],L),Nt(i,y?L:["style",ze])}function b(){Ut(i,u),Ut(S,F),u=C(Cn),F=C(yo),Mt(i,u),Mt(S,F),et(i,At,n.label),et(i,Xn,n.labelledby)}function $(){S=W("."+yo),f=je(S,"."+Si),Ae(S&&f,"A track/list element is missing."),Qe(g,Io(f,"."+yn+":not(."+nr+")")),ie({arrows:Jn,pagination:vn,prev:or,next:rr,bar:$i,toggle:Ti},function(y,L){p[L]=W("."+y)}),Ie(p,{root:i,track:S,list:f,slides:g})}function j(){var y=i.id||mi(Oe),L=n.role;i.id=y,S.id=S.id||y+"-track",f.id=f.id||y+"-list",!Rt(i,qt)&&i.tagName!=="SECTION"&&L&&et(i,qt,L),et(i,ze,l.carousel),et(f,qt,"presentation")}function W(y){var L=zo(i,y);return L&&ki(L,"."+Cn)===i?L:void 0}function C(y){return[y+"--"+n.type,y+"--"+n.direction,n.drag&&y+"--draggable",n.isNavigation&&y+"--nav",y===Cn&&le]}return Ie(p,{setup:m,mount:w,destroy:x})}var xe="slide",we="loop",De="fade";function Wi(t,e,n,o){var r=yt(t),a=r.on,i=r.emit,l=r.bind,p=t.Components,g=t.root,u=t.options,F=u.isNavigation,S=u.updateOnMove,f=u.i18n,d=u.pagination,m=u.slideFocus,w=p.Direction.resolve,x=Rt(o,"style"),b=Rt(o,At),$=n>-1,j=je(o,"."+Ci),W;function C(){$||(o.id=g.id+"-slide"+On(e+1),et(o,qt,d?"tabpanel":"group"),et(o,ze,f.slide),et(o,At,b||Fn(f.slideLabel,[e+1,t.length]))),y()}function y(){l(o,"click",dt(i,Bn,R)),l(o,"keydown",dt(i,Ko,R)),a([Ce,Zo,se],T),a(Un,h),S&&a(Yt,P)}function L(){W=!0,r.destroy(),Ut(o,Ei),Nt(o,Zn),et(o,"style",x),et(o,At,b||"")}function h(){var E=t.splides.map(function(A){var V=A.splide.Components.Slides.getAt(e);return V?V.slide.id:""}).join(" ");et(o,At,Fn(f.slideX,($?n:e)+1)),et(o,Be,E),et(o,qt,m?"button":""),m&&Nt(o,ze)}function P(){W||T()}function T(){if(!W){var E=t.index;z(),k(),Dt(o,ar,e===E-1),Dt(o,lr,e===E+1)}}function z(){var E=O();E!==so(o,le)&&(Dt(o,le,E),et(o,tr,F&&E||""),i(E?No:Po,R))}function k(){var E=v(),A=!E&&(!O()||$);if(t.state.is([Se,Me])||et(o,er,A||""),et(Hn(o,u.focusableNodes||""),fe,A?-1:""),m&&et(o,fe,A?-1:0),E!==so(o,In)&&(Dt(o,In,E),i(E?Ho:jo,R)),!E&&document.activeElement===o){var V=p.Slides.getAt(t.index);V&&Ro(V.slide)}}function U(E,A,V){It(V&&j||o,E,A)}function O(){var E=t.index;return E===e||u.cloneStatus&&E===n}function v(){if(t.is(De))return O();var E=_t(p.Elements.track),A=_t(o),V=w("left",!0),X=w("right",!0);return rn(E[V])<=We(A[V])&&rn(A[X])<=We(E[X])}function I(E,A){var V=$t(E-e);return!$&&(u.rewind||t.is(we))&&(V=Qt(V,t.length-V)),V<=A}var R={index:e,slideIndex:n,slide:o,container:j,isClone:$,mount:C,destroy:L,update:T,style:U,isWithin:I};return R}function zi(t,e,n){var o=yt(t),r=o.on,a=o.emit,i=o.bind,l=e.Elements,p=l.slides,g=l.list,u=[];function F(){S(),r(vt,f),r(vt,S)}function S(){p.forEach(function(T,z){m(T,z,-1)})}function f(){W(function(T){T.destroy()}),Gt(u)}function d(){W(function(T){T.update()})}function m(T,z,k){var U=Wi(t,z,k,T);U.mount(),u.push(U),u.sort(function(O,v){return O.index-v.index})}function w(T){return T?C(function(z){return!z.isClone}):u}function x(T){var z=e.Controller,k=z.toIndex(T),U=z.hasFocus()?1:n.perPage;return C(function(O){return tn(O.index,k,k+U-1)})}function b(T){return C(T)[0]}function $(T,z){Lt(T,function(k){if(Jt(k)&&(k=Wo(k)),ko(k)){var U=p[z];U?Pn(k,U):He(g,k),Mt(k,n.classes.slide),L(k,dt(a,be))}}),a(vt)}function j(T){ae(C(T).map(function(z){return z.slide})),a(vt)}function W(T,z){w(z).forEach(T)}function C(T){return u.filter(Fo(T)?T:function(z){return Jt(T)?Fe(z.slide,T):Nn(Pe(T),z.index)})}function y(T,z,k){W(function(U){U.style(T,z,k)})}function L(T,z){var k=Hn(T,"img"),U=k.length;U?k.forEach(function(O){i(O,"load error",function(){--U||z()})}):z()}function h(T){return T?p.length:u.length}function P(){return u.length>n.perPage}return{mount:F,destroy:f,update:d,register:m,get:w,getIn:x,getAt:b,add:$,remove:j,forEach:W,filter:C,style:y,getLength:h,isEnough:P}}function Vi(t,e,n){var o=yt(t),r=o.on,a=o.bind,i=o.emit,l=e.Slides,p=e.Direction.resolve,g=e.Elements,u=g.root,F=g.track,S=g.list,f=l.getAt,d=l.style,m,w,x;function b(){$(),a(window,"resize load",hi(dt(i,be))),r([wt,vt],$),r(be,j)}function $(){m=n.direction===fn,It(u,"maxWidth",re(n.width)),It(F,p("paddingLeft"),W(!1)),It(F,p("paddingRight"),W(!0)),j(!0)}function j(R){var E=_t(u);(R||w.width!==E.width||w.height!==E.height)&&(It(F,"height",C()),d(p("marginRight"),re(n.gap)),d("width",L()),d("height",h(),!0),w=E,i(cn),x!==(x=I())&&(Dt(u,cr,x),i(fi,x)))}function W(R){var E=n.padding,A=p(R?"right":"left");return E&&re(E[A]||(Ee(E)?0:E))||"0px"}function C(){var R="";return m&&(R=y(),Ae(R,"height or heightRatio is missing."),R="calc("+R+" - "+W(!1)+" - "+W(!0)+")"),R}function y(){return re(n.height||_t(S).width*n.heightRatio)}function L(){return n.autoWidth?null:re(n.fixedWidth)||(m?"":P())}function h(){return re(n.fixedHeight)||(m?n.autoHeight?null:P():y())}function P(){var R=re(n.gap);return"calc((100%"+(R&&" + "+R)+")/"+(n.perPage||1)+(R&&" - "+R)+")"}function T(){return _t(S)[p("width")]}function z(R,E){var A=f(R||0);return A?_t(A.slide)[p("width")]+(E?0:O()):0}function k(R,E){var A=f(R);if(A){var V=_t(A.slide)[p("right")],X=_t(S)[p("left")];return $t(V-X)+(E?0:O())}return 0}function U(R){return k(t.length-1)-k(0)+z(0,R)}function O(){var R=f(0);return R&&parseFloat(It(R.slide,p("marginRight")))||0}function v(R){return parseFloat(It(F,p("padding"+(R?"Right":"Left"))))||0}function I(){return t.is(De)||U(!0)>T()}return{mount:b,resize:j,listSize:T,slideSize:z,sliderSize:U,totalSize:k,getPadding:v,isOverflow:I}}var Mi=2;function Ni(t,e,n){var o=yt(t),r=o.on,a=e.Elements,i=e.Slides,l=e.Direction.resolve,p=[],g;function u(){r(vt,F),r([wt,be],f),(g=w())&&(d(g),e.Layout.resize(!0))}function F(){S(),u()}function S(){ae(p),Gt(p),o.destroy()}function f(){var x=w();g!==x&&(g<x||!x)&&o.emit(vt)}function d(x){var b=i.get().slice(),$=b.length;if($){for(;b.length<x;)Qe(b,b);Qe(b.slice(-x),b.slice(0,x)).forEach(function(j,W){var C=W<x,y=m(j.slide,W);C?Pn(y,b[0].slide):He(a.list,y),Qe(p,y),i.register(y,W-x+(C?0:$),j.index)})}}function m(x,b){var $=x.cloneNode(!0);return Mt($,n.classes.clone),$.id=t.root.id+"-clone"+On(b+1),$}function w(){var x=n.clones;if(!t.is(we))x=0;else if(Ne(x)){var b=n[l("fixedWidth")]&&e.Layout.slideSize(0),$=b&&We(_t(a.track)[l("width")]/b);x=$||n[l("autoWidth")]&&t.length||n.perPage*Mi}return x}return{mount:u,destroy:S}}function Pi(t,e,n){var o=yt(t),r=o.on,a=o.emit,i=t.state.set,l=e.Layout,p=l.slideSize,g=l.getPadding,u=l.totalSize,F=l.listSize,S=l.sliderSize,f=e.Direction,d=f.resolve,m=f.orient,w=e.Elements,x=w.list,b=w.track,$;function j(){$=e.Transition,r([ee,cn,wt,vt],W)}function W(){e.Controller.isBusy()||(e.Scroll.cancel(),y(t.index),e.Slides.update())}function C(A,V,X,rt){A!==V&&R(A>X)&&(T(),L(P(U(),A>X),!0)),i(Se),a(Yt,V,X,A),$.start(V,function(){i(ve),a(Ce,V,X,A),rt&&rt()})}function y(A){L(k(A,!0))}function L(A,V){if(!t.is(De)){var X=V?A:h(A);It(x,"transform","translate"+d("X")+"("+X+"px)"),A!==X&&a(Zo)}}function h(A){if(t.is(we)){var V=z(A),X=V>e.Controller.getEnd(),rt=V<0;(rt||X)&&(A=P(A,X))}return A}function P(A,V){var X=A-I(V),rt=S();return A-=m(rt*(We($t(X)/rt)||1))*(V?1:-1),A}function T(){L(U(),!0),$.cancel()}function z(A){for(var V=e.Slides.get(),X=0,rt=1/0,ot=0;ot<V.length;ot++){var lt=V[ot].index,M=$t(k(lt,!0)-A);if(M<=rt)rt=M,X=lt;else break}return X}function k(A,V){var X=m(u(A-1)-v(A));return V?O(X):X}function U(){var A=d("left");return _t(x)[A]-_t(b)[A]+m(g(!1))}function O(A){return n.trimSpace&&t.is(xe)&&(A=ue(A,0,m(S(!0)-F()))),A}function v(A){var V=n.focus;return V==="center"?(F()-p(A,!0))/2:+V*p(A)||0}function I(A){return k(A?e.Controller.getEnd():0,!!n.trimSpace)}function R(A){var V=m(P(U(),A));return A?V>=0:V<=x[d("scrollWidth")]-_t(b)[d("width")]}function E(A,V){V=Ne(V)?U():V;var X=A!==!0&&m(V)<m(I(!1)),rt=A!==!1&&m(V)>m(I(!0));return X||rt}return{mount:j,move:C,jump:y,translate:L,shift:P,cancel:T,toIndex:z,toPosition:k,getPosition:U,getLimit:I,exceededLimit:E,reposition:W}}function Hi(t,e,n){var o=yt(t),r=o.on,a=o.emit,i=e.Move,l=i.getPosition,p=i.getLimit,g=i.toPosition,u=e.Slides,F=u.isEnough,S=u.getLength,f=n.omitEnd,d=t.is(we),m=t.is(xe),w=dt(U,!1),x=dt(U,!0),b=n.start||0,$,j=b,W,C,y;function L(){h(),r([wt,vt,an],h),r(cn,P)}function h(){W=S(!0),C=n.perMove,y=n.perPage,$=R();var M=ue(b,0,f?$:W-1);M!==b&&(b=M,i.reposition())}function P(){$!==R()&&a(an)}function T(M,Q,ft){if(!lt()){var st=k(M),gt=I(st);gt>-1&&(Q||gt!==b)&&(X(gt),i.move(st,gt,j,ft))}}function z(M,Q,ft,st){e.Scroll.scroll(M,Q,ft,function(){var gt=I(i.toIndex(l()));X(f?Qt(gt,$):gt),st&&st()})}function k(M){var Q=b;if(Jt(M)){var ft=M.match(/([+\-<>])(\d+)?/)||[],st=ft[1],gt=ft[2];st==="+"||st==="-"?Q=O(b+ +(""+st+(+gt||1)),b):st===">"?Q=gt?E(+gt):w(!0):st==="<"&&(Q=x(!0))}else Q=d?M:ue(M,0,$);return Q}function U(M,Q){var ft=C||(ot()?1:y),st=O(b+ft*(M?-1:1),b,!(C||ot()));return st===-1&&m&&!Vo(l(),p(!M),1)?M?0:$:Q?st:I(st)}function O(M,Q,ft){if(F()||ot()){var st=v(M);st!==M&&(Q=M,M=st,ft=!1),M<0||M>$?!C&&(tn(0,M,Q,!0)||tn($,Q,M,!0))?M=E(A(M)):d?M=ft?M<0?-(W%y||y):W:M:n.rewind?M=M<0?$:0:M=-1:ft&&M!==Q&&(M=E(A(Q)+(M<Q?-1:1)))}else M=-1;return M}function v(M){if(m&&n.trimSpace==="move"&&M!==b)for(var Q=l();Q===g(M,!0)&&tn(M,0,t.length-1,!n.rewind);)M<b?--M:++M;return M}function I(M){return d?(M+W)%W||0:M}function R(){for(var M=W-(ot()||d&&C?1:y);f&&M-- >0;)if(g(W-1,!0)!==g(M,!0)){M++;break}return ue(M,0,W-1)}function E(M){return ue(ot()?M:y*M,0,$)}function A(M){return ot()?Qt(M,$):rn((M>=$?W-1:M)/y)}function V(M){var Q=i.toIndex(M);return m?ue(Q,0,$):Q}function X(M){M!==b&&(j=b,b=M)}function rt(M){return M?j:b}function ot(){return!Ne(n.focus)||n.isNavigation}function lt(){return t.state.is([Se,Me])&&!!n.waitForTransition}return{mount:L,go:T,scroll:z,getNext:w,getPrev:x,getAdjacent:U,getEnd:R,setIndex:X,getIndex:rt,toIndex:E,toPage:A,toDest:V,hasFocus:ot,isBusy:lt}}var ji="http://www.w3.org/2000/svg",Oi="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",Ge=40;function Bi(t,e,n){var o=yt(t),r=o.on,a=o.bind,i=o.emit,l=n.classes,p=n.i18n,g=e.Elements,u=e.Controller,F=g.arrows,S=g.track,f=F,d=g.prev,m=g.next,w,x,b={};function $(){W(),r(wt,j)}function j(){C(),$()}function W(){var z=n.arrows;z&&!(d&&m)&&h(),d&&m&&(Ie(b,{prev:d,next:m}),Re(f,z?"":"none"),Mt(f,x=Jn+"--"+n.direction),z&&(y(),T(),et([d,m],Be,S.id),i(Uo,d,m)))}function C(){o.destroy(),Ut(f,x),w?(ae(F?[d,m]:f),d=m=null):Nt([d,m],Zn)}function y(){r([ee,Ce,vt,se,an],T),a(m,"click",dt(L,">")),a(d,"click",dt(L,"<"))}function L(z){u.go(z,!0)}function h(){f=F||me("div",l.arrows),d=P(!0),m=P(!1),w=!0,He(f,[d,m]),!F&&Pn(f,S)}function P(z){var k='<button class="'+l.arrow+" "+(z?l.prev:l.next)+'" type="button"><svg xmlns="'+ji+'" viewBox="0 0 '+Ge+" "+Ge+'" width="'+Ge+'" height="'+Ge+'" focusable="false"><path d="'+(n.arrowPath||Oi)+'" />';return Wo(k)}function T(){if(d&&m){var z=t.index,k=u.getPrev(),U=u.getNext(),O=k>-1&&z<k?p.last:p.prev,v=U>-1&&z>U?p.first:p.next;d.disabled=k<0,m.disabled=U<0,et(d,At,O),et(m,At,v),i(qo,d,m,k,U)}}return{arrows:b,mount:$,destroy:C,update:T}}var Di=jn+"-interval";function Ui(t,e,n){var o=yt(t),r=o.on,a=o.bind,i=o.emit,l=un(n.interval,t.go.bind(t,">"),y),p=l.isPaused,g=e.Elements,u=e.Elements,F=u.root,S=u.toggle,f=n.autoplay,d,m,w=f==="pause";function x(){f&&(b(),S&&et(S,Be,g.track.id),w||$(),C())}function b(){n.pauseOnHover&&a(F,"mouseenter mouseleave",function(h){d=h.type==="mouseenter",W()}),n.pauseOnFocus&&a(F,"focusin focusout",function(h){m=h.type==="focusin",W()}),S&&a(S,"click",function(){w?$():j(!0)}),r([Yt,pn,vt],l.rewind),r(Yt,L)}function $(){p()&&e.Slides.isEnough()&&(l.start(!n.resetProgress),m=d=w=!1,C(),i(qn))}function j(h){h===void 0&&(h=!0),w=!!h,C(),p()||(l.pause(),i(Gn))}function W(){w||(d||m?j(!1):$())}function C(){S&&(Dt(S,le,!w),et(S,At,n.i18n[w?"play":"pause"]))}function y(h){var P=g.bar;P&&It(P,"width",h*100+"%"),i(Xo,h)}function L(h){var P=e.Slides.getAt(h);l.set(P&&+Rt(P.slide,Di)||n.interval)}return{mount:x,destroy:l.cancel,play:$,pause:j,isPaused:p}}function qi(t,e,n){var o=yt(t),r=o.on;function a(){n.cover&&(r(Yn,dt(l,!0)),r([ee,wt,vt],dt(i,!0)))}function i(p){e.Slides.forEach(function(g){var u=je(g.container||g.slide,"img");u&&u.src&&l(p,u,g)})}function l(p,g,u){u.style("background",p?'center/cover no-repeat url("'+g.src+'")':"",!0),Re(g,p?"none":"")}return{mount:a,destroy:dt(i,!1)}}var Gi=10,Yi=600,Xi=.6,Ki=1.5,Zi=800;function Ji(t,e,n){var o=yt(t),r=o.on,a=o.emit,i=t.state.set,l=e.Move,p=l.getPosition,g=l.getLimit,u=l.exceededLimit,F=l.translate,S=t.is(xe),f,d,m=1;function w(){r(Yt,j),r([wt,vt],W)}function x(y,L,h,P,T){var z=p();if(j(),h&&(!S||!u())){var k=e.Layout.sliderSize(),U=En(y)*k*rn($t(y)/k)||0;y=l.toPosition(e.Controller.toDest(y%k))+U}var O=Vo(z,y,1);m=1,L=O?0:L||on($t(y-z)/Ki,Zi),d=P,f=un(L,b,dt($,z,y,T),1),i(Me),a(pn),f.start()}function b(){i(ve),d&&d(),a(se)}function $(y,L,h,P){var T=p(),z=y+(L-y)*C(P),k=(z-T)*m;F(T+k),S&&!h&&u()&&(m*=Xi,$t(k)<Gi&&x(g(u(!0)),Yi,!1,d,!0))}function j(){f&&f.cancel()}function W(){f&&!f.isPaused()&&(j(),b())}function C(y){var L=n.easingFunc;return L?L(y):1-Math.pow(1-y,4)}return{mount:w,destroy:j,scroll:x,cancel:W}}var de={passive:!1,capture:!0};function Qi(t,e,n){var o=yt(t),r=o.on,a=o.emit,i=o.bind,l=o.unbind,p=t.state,g=e.Move,u=e.Scroll,F=e.Controller,S=e.Elements.track,f=e.Media.reduce,d=e.Direction,m=d.resolve,w=d.orient,x=g.getPosition,b=g.exceededLimit,$,j,W,C,y,L=!1,h,P,T;function z(){i(S,wn,An,de),i(S,$n,An,de),i(S,pr,U,de),i(S,"click",I,{capture:!0}),i(S,"dragstart",Bt),r([ee,wt],k)}function k(){var q=n.drag;zt(!q),C=q==="free"}function U(q){if(h=!1,!P){var c=gt(q);st(q.target)&&(c||!q.button)&&(F.isBusy()?Bt(q,!0):(T=c?S:window,y=p.is([Se,Me]),W=null,i(T,wn,O,de),i(T,$n,v,de),g.cancel(),u.cancel(),R(q)))}}function O(q){if(p.is(Je)||(p.set(Je),a(Oo)),q.cancelable)if(y){g.translate($+ft(ot(q)));var c=lt(q)>ho,N=L!==(L=b());(c||N)&&R(q),h=!0,a(Bo),Bt(q)}else V(q)&&(y=A(q),Bt(q))}function v(q){p.is(Je)&&(p.set(ve),a(Do)),y&&(E(q),Bt(q)),l(T,wn,O),l(T,$n,v),y=!1}function I(q){!P&&h&&Bt(q,!0)}function R(q){W=j,j=q,$=x()}function E(q){var c=X(q),N=rt(c),B=n.rewind&&n.rewindByDrag;f(!1),C?F.scroll(N,0,n.snap):t.is(De)?F.go(w(En(c))<0?B?"<":"-":B?">":"+"):t.is(xe)&&L&&B?F.go(b(!0)?">":"<"):F.go(F.toDest(N),!0),f(!0)}function A(q){var c=n.dragMinThreshold,N=Ee(c),B=N&&c.mouse||0,Y=(N?c.touch:+c)||10;return $t(ot(q))>(gt(q)?Y:B)}function V(q){return $t(ot(q))>$t(ot(q,!0))}function X(q){if(t.is(we)||!L){var c=lt(q);if(c&&c<ho)return ot(q)/c}return 0}function rt(q){return x()+En(q)*Qt($t(q)*(n.flickPower||600),C?1/0:e.Layout.listSize()*(n.flickMaxPages||1))}function ot(q,c){return Q(q,c)-Q(M(q),c)}function lt(q){return Ln(q)-Ln(M(q))}function M(q){return j===q&&W||j}function Q(q,c){return(gt(q)?q.changedTouches[0]:q)["page"+m(c?"Y":"X")]}function ft(q){return q/(L&&t.is(xe)?Ii:1)}function st(q){var c=n.noDrag;return!Fe(q,"."+ir+", ."+hn)&&(!c||!Fe(q,c))}function gt(q){return typeof TouchEvent<"u"&&q instanceof TouchEvent}function bt(){return y}function zt(q){P=q}return{mount:z,disable:zt,isDragging:bt}}var ta={Spacebar:" ",Right:mn,Left:gn,Up:Jo,Down:Qo};function Qn(t){return t=Jt(t)?t:t.key,ta[t]||t}var vo="keydown";function ea(t,e,n){var o=yt(t),r=o.on,a=o.bind,i=o.unbind,l=t.root,p=e.Direction.resolve,g,u;function F(){S(),r(wt,f),r(wt,S),r(Yt,m)}function S(){var x=n.keyboard;x&&(g=x==="global"?window:l,a(g,vo,w))}function f(){i(g,vo)}function d(x){u=x}function m(){var x=u;u=!0,Eo(function(){u=x})}function w(x){if(!u){var b=Qn(x);b===p(gn)?t.go("<"):b===p(mn)&&t.go(">")}}return{mount:F,destroy:f,disable:d}}var Le=jn+"-lazy",en=Le+"-srcset",na="["+Le+"], ["+en+"]";function oa(t,e,n){var o=yt(t),r=o.on,a=o.off,i=o.bind,l=o.emit,p=n.lazyLoad==="sequential",g=[Ce,se],u=[];function F(){n.lazyLoad&&(S(),r(vt,S))}function S(){Gt(u),f(),p?x():(a(g),r(g,d),d())}function f(){e.Slides.forEach(function(b){Hn(b.slide,na).forEach(function($){var j=Rt($,Le),W=Rt($,en);if(j!==$.src||W!==$.srcset){var C=n.classes.spinner,y=$.parentElement,L=je(y,"."+C)||me("span",C,y);u.push([$,b,L]),$.src||Re($,"none")}})})}function d(){u=u.filter(function(b){var $=n.perPage*((n.preloadPages||1)+1)-1;return b[1].isWithin(t.index,$)?m(b):!0}),u.length||a(g)}function m(b){var $=b[0];Mt(b[1].slide,Rn),i($,"load error",dt(w,b)),et($,"src",Rt($,Le)),et($,"srcset",Rt($,en)),Nt($,Le),Nt($,en)}function w(b,$){var j=b[0],W=b[1];Ut(W.slide,Rn),$.type!=="error"&&(ae(b[2]),Re(j,""),l(Yn,j,W),l(be)),p&&x()}function x(){u.length&&m(u.shift())}return{mount:F,destroy:dt(Gt,u),check:d}}function ra(t,e,n){var o=yt(t),r=o.on,a=o.emit,i=o.bind,l=e.Slides,p=e.Elements,g=e.Controller,u=g.hasFocus,F=g.getIndex,S=g.go,f=e.Direction.resolve,d=p.pagination,m=[],w,x;function b(){$(),r([wt,vt,an],b);var P=n.pagination;d&&Re(d,P?"":"none"),P&&(r([Yt,pn,se],h),j(),h(),a(Go,{list:w,items:m},L(t.index)))}function $(){w&&(ae(d?te(w.children):w),Ut(w,x),Gt(m),w=null),o.destroy()}function j(){var P=t.length,T=n.classes,z=n.i18n,k=n.perPage,U=u()?g.getEnd()+1:We(P/k);w=d||me("ul",T.pagination,p.track.parentElement),Mt(w,x=vn+"--"+y()),et(w,qt,"tablist"),et(w,At,z.select),et(w,Kn,y()===fn?"vertical":"");for(var O=0;O<U;O++){var v=me("li",null,w),I=me("button",{class:T.page,type:"button"},v),R=l.getIn(O).map(function(A){return A.slide.id}),E=!u()&&k>1?z.pageX:z.slideX;i(I,"click",dt(W,O)),n.paginationKeyboard&&i(I,"keydown",dt(C,O)),et(v,qt,"presentation"),et(I,qt,"tab"),et(I,Be,R.join(" ")),et(I,At,Fn(E,O+1)),et(I,fe,-1),m.push({li:v,button:I,page:O})}}function W(P){S(">"+P,!0)}function C(P,T){var z=m.length,k=Qn(T),U=y(),O=-1;k===f(mn,!1,U)?O=++P%z:k===f(gn,!1,U)?O=(--P+z)%z:k==="Home"?O=0:k==="End"&&(O=z-1);var v=m[O];v&&(Ro(v.button),S(">"+O),Bt(T,!0))}function y(){return n.paginationDirection||n.direction}function L(P){return m[g.toPage(P)]}function h(){var P=L(F(!0)),T=L(F());if(P){var z=P.button;Ut(z,le),Nt(z,uo),et(z,fe,-1)}if(T){var k=T.button;Mt(k,le),et(k,uo,!0),et(k,fe,"")}a(Yo,{list:w,items:m},P,T)}return{items:m,mount:b,destroy:$,getAt:L,update:h}}var ia=[" ","Enter"];function aa(t,e,n){var o=n.isNavigation,r=n.slideFocus,a=[];function i(){t.splides.forEach(function(d){d.isParent||(g(t,d.splide),g(d.splide,t))}),o&&u()}function l(){a.forEach(function(d){d.destroy()}),Gt(a)}function p(){l(),i()}function g(d,m){var w=yt(d);w.on(Yt,function(x,b,$){m.go(m.is(we)?$:x)}),a.push(w)}function u(){var d=yt(t),m=d.on;m(Bn,S),m(Ko,f),m([ee,wt],F),a.push(d),d.emit(Un,t.splides)}function F(){et(e.Elements.list,Kn,n.direction===fn?"vertical":"")}function S(d){t.go(d.index)}function f(d,m){Nn(ia,Qn(m))&&(S(d),Bt(m))}return{setup:dt(e.Media.set,{slideFocus:Ne(r)?o:r},!0),mount:i,destroy:l,remount:p}}function la(t,e,n){var o=yt(t),r=o.bind,a=0;function i(){n.wheel&&r(e.Elements.track,"wheel",l,de)}function l(g){if(g.cancelable){var u=g.deltaY,F=u<0,S=Ln(g),f=n.wheelMinThreshold||0,d=n.wheelSleep||0;$t(u)>f&&S-a>d&&(t.go(F?"<":">"),a=S),p(F)&&Bt(g)}}function p(g){return!n.releaseWheel||t.state.is(Se)||e.Controller.getAdjacent(g)!==-1}return{mount:i}}var sa=90;function ca(t,e,n){var o=yt(t),r=o.on,a=e.Elements.track,i=n.live&&!n.isNavigation,l=me("span",Ai),p=un(sa,dt(u,!1));function g(){i&&(S(!e.Autoplay.isPaused()),et(a,fo,!0),l.textContent="…",r(qn,dt(S,!0)),r(Gn,dt(S,!1)),r([Ce,se],dt(u,!0)))}function u(f){et(a,mo,f),f?(He(a,l),p.start()):(ae(l),p.cancel())}function F(){Nt(a,[go,fo,mo]),ae(l)}function S(f){i&&et(a,go,f?"off":"polite")}return{mount:g,disable:S,destroy:F}}var pa=Object.freeze({__proto__:null,Media:vi,Direction:bi,Elements:Ri,Slides:zi,Layout:Vi,Clones:Ni,Move:Pi,Controller:Hi,Arrows:Bi,Autoplay:Ui,Cover:qi,Scroll:Ji,Drag:Qi,Keyboard:ea,LazyLoad:oa,Pagination:ra,Sync:aa,Wheel:la,Live:ca}),ua={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"},da={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:Fi,i18n:ua,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function ga(t,e,n){var o=e.Slides;function r(){yt(t).on([ee,vt],a)}function a(){o.forEach(function(l){l.style("transform","translateX(-"+100*l.index+"%)")})}function i(l,p){o.style("transition","opacity "+n.speed+"ms "+n.easing),Eo(p)}return{mount:r,start:i,cancel:An}}function ma(t,e,n){var o=e.Move,r=e.Controller,a=e.Scroll,i=e.Elements.list,l=dt(It,i,"transition"),p;function g(){yt(t).bind(i,"transitionend",function(f){f.target===i&&p&&(F(),p())})}function u(f,d){var m=o.toPosition(f,!0),w=o.getPosition(),x=S(f);$t(m-w)>=1&&x>=1?n.useScroll?a.scroll(m,x,!1,d):(l("transform "+x+"ms "+n.easing),o.translate(m,!0),p=d):(o.jump(f),d())}function F(){l(""),a.cancel()}function S(f){var d=n.rewindSpeed;if(t.is(xe)&&d){var m=r.getIndex(!0),w=r.getEnd();if(m===0&&f>=w||m>=w&&f===0)return d}return n.speed}return{mount:g,start:u,cancel:F}}var fa=(function(){function t(n,o){this.event=yt(),this.Components={},this.state=yi(ge),this.splides=[],this._o={},this._E={};var r=Jt(n)?zo(document,n):n;Ae(r,r+" is invalid."),this.root=r,o=Kt({label:Rt(r,At)||"",labelledby:Rt(r,Xn)||""},da,t.defaults,o||{});try{Kt(o,JSON.parse(Rt(r,jn)))}catch{Ae(!1,"Invalid JSON")}this._o=Object.create(Kt({},o))}var e=t.prototype;return e.mount=function(o,r){var a=this,i=this.state,l=this.Components;Ae(i.is([ge,nn]),"Already mounted!"),i.set(ge),this._C=l,this._T=r||this._T||(this.is(De)?ga:ma),this._E=o||this._E;var p=Ie({},pa,this._E,{Transition:this._T});return ie(p,function(g,u){var F=g(a,l,a._o);l[u]=F,F.setup&&F.setup()}),ie(l,function(g){g.mount&&g.mount()}),this.emit(ee),Mt(this.root,Li),i.set(ve),this.emit(kn),this},e.sync=function(o){return this.splides.push({splide:o}),o.splides.push({splide:this,isParent:!0}),this.state.is(ve)&&(this._C.Sync.remount(),o.Components.Sync.remount()),this},e.go=function(o){return this._C.Controller.go(o),this},e.on=function(o,r){return this.event.on(o,r),this},e.off=function(o){return this.event.off(o),this},e.emit=function(o){var r;return(r=this.event).emit.apply(r,[o].concat(te(arguments,1))),this},e.add=function(o,r){return this._C.Slides.add(o,r),this},e.remove=function(o){return this._C.Slides.remove(o),this},e.is=function(o){return this._o.type===o},e.refresh=function(){return this.emit(vt),this},e.destroy=function(o){o===void 0&&(o=!0);var r=this.event,a=this.state;return a.is(ge)?yt(this).on(kn,this.destroy.bind(this,o)):(ie(this._C,function(i){i.destroy&&i.destroy(o)},!0),r.emit(Dn),r.destroy(),o&&Gt(this.splides),a.set(nn)),this},ui(t,[{key:"options",get:function(){return this._o},set:function(o){this._C.Media.set(o,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),t})(),to=fa;to.defaults={};to.STATES=gi;var bo=[[ee,"onMounted"],[kn,"onReady"],[Yt,"onMove"],[Ce,"onMoved"],[Bn,"onClick"],[No,"onActive"],[Po,"onInactive"],[Ho,"onVisible"],[jo,"onHidden"],[vt,"onRefresh"],[wt,"onUpdated"],[be,"onResize"],[cn,"onResized"],[Oo,"onDrag"],[Bo,"onDragging"],[Do,"onDragged"],[pn,"onScroll"],[se,"onScrolled"],[Dn,"onDestroy"],[Uo,"onArrowsMounted"],[qo,"onArrowsUpdated"],[Go,"onPaginationMounted"],[Yo,"onPaginationUpdated"],[Un,"onNavigationMounted"],[qn,"onAutoplayPlay"],[Xo,"onAutoplayPlaying"],[Gn,"onAutoplayPause"],[Yn,"onLazyLoadLoaded"]];function eo(...t){return t.filter(Boolean).join(" ")}function ln(t){return t!==null&&typeof t=="object"}function Wn(t,e){if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&!t.some((n,o)=>!Wn(n,e[o]));if(ln(t)&&ln(e)){const n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&!n.some(r=>!Object.prototype.hasOwnProperty.call(e,r)||!Wn(t[r],e[r]))}return t===e}function ya(t,e){return t.length===e.length&&!t.some((n,o)=>n!==e[o])}function ha(t,e){if(t){const n=Object.keys(t);for(let o=0;o<n.length;o++){const r=n[o];if(r!=="__proto__"&&e(t[r],r)===!1)break}}return t}function zn(t,e){const n=t;return ha(e,(o,r)=>{Array.isArray(o)?n[r]=o.slice():ln(o)?n[r]=zn(ln(n[r])?n[r]:{},o):n[r]=o}),n}var va=({children:t,className:e,...n})=>H.createElement("div",{className:eo("splide__track",e),...n},H.createElement("ul",{className:"splide__list"},t)),ur=class extends H.Component{constructor(){super(...arguments),this.splideRef=H.createRef(),this.slides=[]}componentDidMount(){const{options:t,extensions:e,transition:n}=this.props,{current:o}=this.splideRef;o&&(this.splide=new to(o,t),this.bind(this.splide),this.splide.mount(e,n),this.options=zn({},t||{}),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:t}=this.props;t&&!Wn(this.options,t)&&(this.splide.options=t,this.options=zn({},t));const e=this.getSlides();ya(this.slides,e)||(this.splide.refresh(),this.slides=e)}sync(t){var e;(e=this.splide)==null||e.sync(t)}go(t){var e;(e=this.splide)==null||e.go(t)}getSlides(){var t;if(this.splide){const e=(t=this.splide.Components.Elements)==null?void 0:t.list.children;return e&&Array.prototype.slice.call(e)||[]}return[]}bind(t){bo.forEach(([e,n])=>{const o=this.props[n];typeof o=="function"&&t.on(e,(...r)=>{o(t,...r)})})}omit(t,e){return e.forEach(n=>{Object.prototype.hasOwnProperty.call(t,n)&&delete t[n]}),t}render(){const{className:t,tag:e="div",hasTrack:n=!0,children:o,...r}=this.props;return H.createElement(e,{className:eo("splide",t),ref:this.splideRef,...this.omit(r,["options",...bo.map(a=>a[1])])},n?H.createElement(va,null,o):o)}},dr=({children:t,className:e,...n})=>H.createElement("li",{className:eo("splide__slide",e),...n},t);/*!
2
2
  * Splide.js
3
3
  * Version : 4.1.3
4
4
  * License : MIT
5
5
  * Copyright: 2022 Naotoshi Fujita
6
- */const ba="RichTextRenderer-module__link___BWeZ2",Sa={link:ba},Ve=({content:t})=>{const e=n=>n.map((o,r)=>o.type==="link"?l.jsx("a",{className:Sa.link,href:o.value,target:o.target,children:e(o.children)},r):l.jsx("span",{style:xa(o),children:o.text},r));return l.jsx(l.Fragment,{children:t.map((n,o)=>{const r=n.children;return l.jsx("div",{children:e(r)},o)})})};function xa(t){return{...t.fontFamily&&{fontFamily:t.fontFamily},...t.fontWeight&&{fontWeight:t.fontWeight},...t.fontStyle&&{fontStyle:t.fontStyle},...t.textDecoration&&{textDecoration:t.textDecoration},...t.textTransform&&{textTransform:t.textTransform},...t.fontVariant&&{fontVariant:t.fontVariant},...t.verticalAlign&&{verticalAlign:t.verticalAlign,lineHeight:"0px"}}}const Ca="SvgImage-module__svg___q3xE-",wa="SvgImage-module__img___VsTm-",So={svg:Ca,img:wa},$a=t=>{const e=t.trim();return e.startsWith("data:image/svg+xml")?!0:(e.split(/[?#]/)[0]??e).endsWith(".svg")},Ta=t=>`url("${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`,ye=({url:t,fill:e="#000000",hoverFill:n="#CCCCCC",className:o="",style:r})=>{const[a,i]=j.useState(()=>typeof window>"u"?!0:CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")'));return j.useEffect(()=>{if(typeof window<"u"&&window.CSS){const p=CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")');i(p)}},[]),!$a(t)||!a?l.jsx("img",{src:t,alt:"",className:mt(So.img,o),style:r}):l.jsx("span",{"data-supports-mask":a,className:mt(So.svg,o),style:{"--svg":Ta(t),"--fill":e,"--hover-fill":n,...r??{}}})},_a={"top-left":K.topLeftAlignment,"top-center":K.topCenterAlignment,"top-right":K.topRightAlignment,"middle-left":K.middleLeftAlignment,"middle-center":K.middleCenterAlignment,"middle-right":K.middleRightAlignment,"bottom-left":K.bottomLeftAlignment,"bottom-center":K.bottomCenterAlignment,"bottom-right":K.bottomRightAlignment};function Aa({settings:t,content:e,styles:n,isEditor:o}){const[r,a]=j.useState(null),{widthSettings:i,fontSettings:p,letterSpacing:s,textAlign:f,wordSpacing:u,fontSizeLineHeight:F,textAppearance:S,color:y}=n.imageCaption,[d,g]=j.useState(void 0),[$,b]=j.useState(null),[v,C]=j.useState(0),[H,E]=j.useState(0),{direction:T,transition:c,controls:k,pagination:L,imageCaption:P,triggers:x}=t,V=j.useRef(c.type),{x:_,y:U}=t.controls.offset,q=h=>{r&&r.go(h)};return j.useEffect(()=>{if(!$)return;const h=new ResizeObserver(I=>{if(!r)return;const[z]=I;g({width:Math.round(z.contentRect.width),height:Math.round(z.contentRect.height)})});return h.observe($),()=>h.unobserve($)},[$]),j.useEffect(()=>{!r||V.current===c.type||(E(h=>h+1),V.current=c.type)},[c.type]),l.jsx("div",{className:mt(K.wrapper,{[K.editor]:o}),ref:b,children:l.jsxs("div",{className:K.sliderInner,style:{width:d?d.width:"100%",height:d?d.height:"100%",backgroundColor:c.backgroundColor&&c.type==="fade in"?c.backgroundColor:"transparent"},children:[t.imageCaption.isActive&&l.jsx("div",{className:mt(K.captionBlock),children:l.jsx("div",{className:K.captionTextWrapper,children:e.map((h,I)=>l.jsx("div",{className:mt(K.captionText,_a[P.alignment],{[K.withPointerEvents]:I===v&&o,[K.active]:I===v}),style:{fontFamily:p.fontFamily,fontWeight:p.fontWeight,fontStyle:p.fontStyle,width:i.sizing==="auto"?"max-content":w.scalingValue(i.width,o),letterSpacing:w.scalingValue(s,o),wordSpacing:w.scalingValue(u,o),textAlign:f,fontSize:w.scalingValue(F.fontSize,o),lineHeight:w.scalingValue(F.lineHeight,o),textTransform:S.textTransform??"none",textDecoration:S.textDecoration??"none",fontVariant:S.fontVariant??"normal",color:y,transitionDuration:c.duration?`${Math.round(parseInt(c.duration)/2)}ms`:"500ms"},children:l.jsx("div",{"data-styles":"imageCaption",className:K.captionTextInner,style:{"--link-hover-color":P.linkHoverColor,"--link-color":P.linkColor,position:"relative",top:w.scalingValue(P.offset.y,o),left:w.scalingValue(P.offset.x,o)},children:l.jsx(Ve,{content:h.imageCaption})})},I))})}),l.jsx(ur,{onMove:h=>{C(h.index)},ref:a,options:{arrows:!1,speed:c.duration?parseInt(c.duration):500,autoplay:x.autoPlay!==null,...x.autoPlay!==null&&{interval:parseInt(x.autoPlay)*1e3},direction:T==="horiz"||c.type==="fade in"?"ltr":"ttb",pagination:!1,drag:x.triggersList.drag,perPage:1,width:d?d.width:"100%",height:d?d.height:"100%",type:c.type==="fade in"?"fade":"loop",rewind:!0},children:e.map((h,I)=>l.jsx(dr,{children:l.jsx("div",{className:K.sliderItem,children:l.jsx("div",{className:K.imgWrapper,children:l.jsx("img",{className:mt(K.sliderImage,{[K.contain]:h.image.objectFit==="contain",[K.cover]:h.image.objectFit==="cover"}),src:h.image.url,alt:h.image.name??""})})})},I))},H),k.isActive&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:mt(K.arrow,{[K.arrowVertical]:T==="vert",[K.hoverArrow]:k.show==="on hover"}),style:{color:k.color,"--arrow-hover-color":k.hover},children:l.jsxs("button",{onClick:()=>{q("-1")},className:K.arrowInner,style:{transform:`translate(${w.scalingValue(_,o)}, ${w.scalingValue(U*(T==="horiz"?1:-1),o)}) scale(${t.controls.scale/100}) rotate(${T==="horiz"?"0deg":"90deg"})`},children:[k.arrowsImgUrl&&l.jsx(ye,{url:k.arrowsImgUrl,fill:k.color,hoverFill:k.hover,className:mt(K.arrowImg,K.mirror)}),!k.arrowsImgUrl&&l.jsx(xo,{color:k.color,className:mt(K.arrowIcon,K.arrowImg,K.mirror)})]})}),l.jsx("div",{className:mt(K.arrow,K.nextArrow,{[K.arrowVertical]:T==="vert",[K.hoverArrow]:k.show==="on hover"}),style:{color:k.color,"--arrow-hover-color":k.hover},children:l.jsxs("button",{className:K.arrowInner,onClick:()=>q("+1"),style:{transform:`translate(${w.scalingValue(_*(T==="horiz"?-1:1),o)}, ${w.scalingValue(U,o)}) scale(${t.controls.scale/100}) rotate(${T==="horiz"?"0deg":"90deg"})`},children:[k.arrowsImgUrl&&l.jsx(ye,{url:k.arrowsImgUrl,fill:k.color,hoverFill:k.hover,className:K.arrowImg}),!k.arrowsImgUrl&&l.jsx(xo,{color:k.color,className:mt(K.arrowIcon,K.arrowImg)})]})})]}),x.triggersList.click&&l.jsx("div",{className:K.clickOverlay,onClick:()=>{r&&r.go("+1")}}),L.isActive&&l.jsx("div",{className:mt(K.pagination,{[K.paginationInsideBottom]:L.position==="inside-1"&&T==="horiz",[K.paginationInsideTop]:L.position==="inside-2"&&T==="horiz",[K.paginationOutsideBottom]:L.position==="outside-1"&&T==="horiz",[K.paginationOutsideTop]:L.position==="outside-2"&&T==="horiz",[K.paginationInsideLeft]:L.position==="inside-1"&&T==="vert",[K.paginationInsideRight]:L.position==="inside-2"&&T==="vert",[K.paginationOutsideLeft]:L.position==="outside-1"&&T==="vert",[K.paginationOutsideRight]:L.position==="outside-2"&&T==="vert",[K.paginationVertical]:T==="vert"}),children:l.jsx("div",{className:K.paginationInner,style:{backgroundColor:L.colors[2],transform:`scale(${L.scale/100}) translate(${w.scalingValue(L.offset.x,o)}, ${w.scalingValue(L.offset.y,o)}) rotate(${T==="horiz"?"0deg":"90deg"})`},children:e.map((h,I)=>l.jsx("button",{onClick:()=>{r&&r.go(I)},className:mt(K.paginationItem),children:l.jsx("div",{className:mt(K.dot,{[K.activeDot]:I===v}),style:{backgroundColor:I===v?L.colors[0]:L.colors[1],"--pagination-hover-color":L.hover}})},I))})})]})})}function xo({color:t,className:e}){return l.jsx("svg",{viewBox:"0 0 10 18",className:e,children:l.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:l.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:t,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const Ea={element:Aa,id:"control-slider",name:"Slider",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/sliderImg.png"},defaultSize:{width:400,height:400},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.controls.arrowsImgUrl"}]},fontSettingsPaths:{content:[],parameters:[{path:"styles.imageCaption.fontSettings"}]},schema:{type:"object",properties:{settings:{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:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{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"}}},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:{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"]}},La="ImageRevealSlider-module__imageRevealSlider___UE5Ob",Fa="ImageRevealSlider-module__image___Qjt-e",ka="ImageRevealSlider-module__link___N-iLG",Ia="ImageRevealSlider-module__cursor___2U03d",pe={imageRevealSlider:La,image:Fa,link:ka,cursor:Ia};function Co(t,e,n){for(const o of n){const r=new Image;r.src=o.url;const a=o.width?Number.parseFloat(o.width):r.naturalWidth,i=r.naturalHeight/r.naturalWidth*a,p=a/2,s=i/2;if(t>=o.x-p&&t<=o.x+p&&e>=o.y-s&&e<=o.y+s)return!0}return!1}function Tn(t){return new Promise(e=>{const n=new Image;n.src=t,n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})}})}async function Ra(t,e,n,o){let r,a;if(e==="custom"){r=n;const i=await Tn(t);a=i.height/i.width*r}else if(e==="random"){r=Math.random()*(o.max-o.min)+o.min;const i=await Tn(t);a=i.height/i.width*r}else{const i=await Tn(t);r=i.width,a=i.height}return{width:r,height:a,finalWidth:`${r}px`}}function Wa({settings:t,content:e,isEditor:n}){const[o,r]=j.useState(null),[a,i]=j.useState([]),[p,s]=j.useState(0),f=j.useRef(0),[u,F]=j.useState({x:0,y:0}),[S,y]=j.useState(1),[d,g]=j.useState("none"),$=j.useRef({x:0,y:0}),[b,v]=j.useState(!1),{sizeType:C,imageWidth:H,randomRangeImageWidth:E}=t.imageSize,{revealPosition:T,visible:c}=t.position,{cursorType:k,target:L,defaultCursorScale:P,defaultCursor:x,hoverCursorScale:V,hoverCursor:_}=t.cursor;j.useEffect(()=>{if(!o)return;const h=(W,A)=>{const M=o.getBoundingClientRect(),X=W-M.left,it=A-M.top;if(F({x:X,y:it}),k==="system"){g("none"),y(1);return}const ot=X,lt=it,N=document.elementFromPoint(M.left+ot,M.top+lt);if(N&&N.closest("a")){g("none"),y(1);return}const Z=Co(ot,lt,a)||L==="area"?{img:_??"none",scale:V}:{img:x??"none",scale:P};g(Z.img),y(Z.scale)},I=W=>{W.stopPropagation(),$.current={x:W.clientX,y:W.clientY},h(W.clientX,W.clientY)},z=()=>{b&&h($.current.x,$.current.y)};return o.addEventListener("mousemove",I),window.addEventListener("scroll",z,!0),()=>{o.removeEventListener("mousemove",I),window.removeEventListener("scroll",z,!0)}},[o,b,u,k,L,_,x,V,P,a]),j.useEffect(()=>{b||(g("none"),y(0))},[b]);const U=async(h,I,z,W={})=>{const{width:A,height:M,finalWidth:X}=await Ra(h.image.url,C,H,E);let it=0,ot=0;T==="same"?(it=I/2,ot=z/2):(it=W.x??Math.random()*I,ot=W.y??Math.random()*z);const lt=Math.min(Math.max(it,A/2),I-A/2),N=Math.min(Math.max(ot,M/2),z-M/2);return{id:f.current++,url:h.image.url,link:h.link,name:h.image.name,x:lt,y:N,width:X}};j.useEffect(()=>{if(!o||e.length===0)return;const h=o.getBoundingClientRect(),I=h.width,z=h.height,W=[];(async()=>{const M=e[0],X=await U(M,I,z);W.push(X),i(W),s(1)})()},[C,H,E,T,o]),j.useEffect(()=>{c==="last One"&&i(h=>h.length>0?[h[h.length-1]]:[])},[c]);const q=async h=>{if(!o)return;const I=o.getBoundingClientRect(),z=h.clientX-I.left,W=h.clientY-I.top;if(L==="image"&&!Co(z,W,a))return;let A=0,M=0;T==="on Click"?(A=z,M=W):T==="same"?(A=I.width/2,M=I.height/2):(A=Math.random()*I.width,M=Math.random()*I.height);const X=e[p],it=await U(X,I.width,I.height,{x:A,y:M});i(ot=>c==="all"?[...ot,it]:[it]),s(ot=>ot>=e.length-1?0:ot+1)};return l.jsxs("div",{ref:r,onClick:q,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),className:pe.imageRevealSlider,style:{cursor:d==="none"?"default":"none"},children:[a.map(h=>l.jsx("div",{className:pe.wrapper,style:{top:`${h.y}px`,left:`${h.x}px`,position:"absolute",transform:"translate(-50%, -50%)",width:h.width??"auto",height:"auto",cursor:d==="none"?"default":"none"},children:L==="area"&&h.link?l.jsx("a",{href:h.link,target:"_blank",className:pe.link,children:l.jsx("img",{src:h.url,alt:h.name,className:pe.image},h.id)}):l.jsx("img",{src:h.url,alt:h.name,className:pe.image},h.id)},h.id)),b&&l.jsx("div",{className:pe.cursor,style:{left:`${u.x}px`,top:`${u.y}px`,transform:`translate(-50%, -50%) scale(${S})`,backgroundImage:`url('${d}')`,backgroundSize:"cover",backgroundPosition:"center",position:"absolute",pointerEvents:"none"}})]})}const za={element:Wa,id:"control-image-reveal",name:"Click Gallery",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/clickGalleryImg.png"},defaultSize:{width:"100%",height:"100%"},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.cursor.defaultCursor"},{path:"settings.cursor.hoverCursor"}]},fontSettingsPaths:{content:[],parameters:[]},schema:{type:"object",properties:{settings:{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:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{isObjectFitEditable:!1,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"}}},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:""}]}}}},Va="LightBox-module__hidden___9s-9x",Ma="LightBox-module__heroImage___sTxNF",Na="LightBox-module__background___rm9ml",Pa="LightBox-module__editor___4ACaY",ja="LightBox-module__contentStyle___Bgnsq",Ha="LightBox-module__imageStyle___tLIlB",Oa="LightBox-module__imgWrapper___LuFUp",Ba="LightBox-module__contain___8-yaS",Da="LightBox-module__cover___hNvOG",Ua="LightBox-module__caption___b6L2I",qa="LightBox-module__captionTextInner___rCGNH",Ga="LightBox-module__lightboxSplide___XFuWC",Ya="LightBox-module__arrow___iz38X",Xa="LightBox-module__arrowVertical___Zfz81",Ka="LightBox-module__nextArrow___zkAQN",Za="LightBox-module__arrowInner___p48sW",Ja="LightBox-module__arrowIcon___3VaFf",Qa="LightBox-module__arrowImg___pNV88",tl="LightBox-module__mirror___pjeXc",el="LightBox-module__thumbsWrapper___GB-nU",nl="LightBox-module__thumbsContainerVertical___wttk5",ol="LightBox-module__thumbsContainer___osSma",rl="LightBox-module__thumbsAlignStart___MO6tY",il="LightBox-module__thumbsAlignCenter___Q4sUx",al="LightBox-module__thumbsAlignEnd___p4y9R",ll="LightBox-module__thumbItem___HvnF3",sl="LightBox-module__closeButton___g2khP",cl="LightBox-module__fadeIn___0m5GW",pl="LightBox-module__slideInLeft___gPYwC",ul="LightBox-module__slideInRight___S-pPp",dl="LightBox-module__slideInTop___DFdAj",gl="LightBox-module__slideInBottom___m27kZ",ml="LightBox-module__fadeOut___55qBR",fl="LightBox-module__slideOutLeft___NvU7P",yl="LightBox-module__slideOutRight___SK7eC",hl="LightBox-module__slideOutTop___Vgg0z",vl="LightBox-module__slideOutBottom___nJ0Ef",bl="LightBox-module__scaleSlide___vZriG",D={hidden:Va,heroImage:Ma,background:Na,editor:Pa,contentStyle:ja,imageStyle:Ha,imgWrapper:Oa,contain:Ba,cover:Da,caption:Ua,captionTextInner:qa,lightboxSplide:Ga,arrow:Ya,arrowVertical:Xa,nextArrow:Ka,arrowInner:Za,arrowIcon:Ja,arrowImg:Qa,mirror:tl,thumbsWrapper:el,thumbsContainerVertical:nl,thumbsContainer:ol,thumbsAlignStart:rl,thumbsAlignCenter:il,thumbsAlignEnd:al,thumbItem:ll,closeButton:sl,fadeIn:cl,slideInLeft:pl,slideInRight:ul,slideInTop:dl,slideInBottom:gl,fadeOut:ml,slideOutLeft:fl,slideOutRight:yl,slideOutTop:hl,slideOutBottom:vl,scaleSlide:bl},Ye=(t,e,n)=>{const o={},[r,a]=t.split("-");return r==="top"?(o.top="0",o.bottom="auto"):r==="middle"?(o.top="50%",o.bottom="auto"):r==="bottom"&&(o.top="auto",o.bottom="0"),a==="left"?(o.left="0",o.right="auto"):a==="center"?(o.left="50%",o.right="auto"):a==="right"&&(o.left="auto",o.right="0"),r==="middle"&&a==="center"?o.transform=`translate(calc(-50% + ${w.scalingValue(e.x,n)}), calc(-50% + ${w.scalingValue(e.y,n)}))`:r==="middle"?o.transform=`translate(${w.scalingValue(e.x,n)}, calc(-50% + ${w.scalingValue(e.y,n)}))`:a==="center"?o.transform=`translate(calc(-50% + ${w.scalingValue(e.x,n)}), ${w.scalingValue(e.y,n)})`:o.transform=`translate(${w.scalingValue(e.x,n)}, ${w.scalingValue(e.y,n)})`,o};function gr(t){const e=window.getComputedStyle(t);return{top:parseFloat(e.paddingTop)||0,right:parseFloat(e.paddingRight)||0,bottom:parseFloat(e.paddingBottom)||0,left:parseFloat(e.paddingLeft)||0}}function wo(t){const e=t.getBoundingClientRect(),n=gr(t),o=Math.max(0,e.width-n.left-n.right),r=Math.max(0,e.height-n.top-n.bottom),a=t.naturalWidth,i=t.naturalHeight,p=o/r,s=a/i;let f,u;s>p?(f=o,u=o/s):(u=r,f=r*s);const F=e.left+n.left,S=e.top+n.top,y=(o-f)/2+F,d=(r-u)/2+S;return{x:y,y:d,width:f,height:u}}function $o(t){const e=t.getBoundingClientRect(),n=gr(t);return{left:e.left+n.left,right:e.right-n.right,top:e.top+n.top,bottom:e.bottom-n.bottom}}function To(t){const e=t.match(/rgba?\(([^)]+)\)/);if(e){const o=e[1].split(",").map(r=>parseFloat(r.trim()));return o.length===4?o[3]:1}const n=t.match(/^#([0-9a-fA-F]{8})$/);if(n){const o=n[1].substring(6,8);return parseInt(o,16)/255}return t.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/),1}function Sl(t,e){const n=(()=>{if(t==="fade in")return D.fadeIn;if(t==="slide in"||t==="mix")switch(e){case"left":return D.slideInLeft;case"right":return D.slideInRight;case"top":return D.slideInTop;case"bottom":return D.slideInBottom;default:return D.slideInRight}return D.fadeIn})(),o=(()=>{if(t==="fade in"||t==="mix")return D.fadeIn;if(t==="slide in")switch(e){case"left":return D.slideInLeft;case"right":return D.slideInRight;case"top":return D.slideInTop;case"bottom":return D.slideInBottom;default:return D.slideInRight}return D.fadeIn})(),r=(()=>{if(t==="fade in"||t==="mix")return D.fadeOut;if(t==="slide in")switch(e){case"left":return D.slideOutLeft;case"right":return D.slideOutRight;case"top":return D.slideOutTop;case"bottom":return D.slideOutBottom;default:return D.slideOutRight}return D.fadeOut})(),a=(()=>{if(t==="fade in")return D.fadeOut;if(t==="slide in"||t==="mix")switch(e){case"left":return D.slideOutLeft;case"right":return D.slideOutRight;case"top":return D.slideOutTop;case"bottom":return D.slideOutBottom;default:return D.slideOutRight}return D.fadeOut})();return{appearClass:n,backdropAppearClass:o,backdropDisappearClass:r,disappearClass:a}}const xl=({settings:t,content:e,styles:n,portalId:o,activeEvent:r,isEditor:a})=>{const[i,p]=j.useState(!1),{url:s}=t.thumbnailBlock.cover;return j.useEffect(()=>{r==="close"&&p(!1),r==="open"&&p(!0)},[r]),l.jsxs(l.Fragment,{children:[l.jsx("img",{src:s,alt:"Cover",className:D.heroImage,onClick:()=>p(!0)}),l.jsx(Cl,{isOpen:i,onClose:()=>p(!1),content:e,settings:t,lightboxStyles:n,portalId:o,isEditor:a})]})},Cl=({isOpen:t,onClose:e,content:n,lightboxStyles:o,settings:r,portalId:a,isEditor:i,metadata:p})=>{var R;const[s,f]=j.useState(0),[u,F]=j.useState(0),[S,y]=j.useState(!1),[d,g]=j.useState(!1),[$,b]=j.useState({}),v=j.useRef(null),C=j.useRef(null),H=j.useRef(null),E=j.useRef(!1),T=j.useRef(null),c=j.useRef(null),k=j.useRef(null),L=j.useRef(null),P=j.useRef(!1),x=j.useRef(null),[V,_]=j.useState(!1),{appear:U,triggers:q,slider:h,thumbnail:I,controls:z,area:W,caption:A,layout:M}=r.lightboxBlock,{appearClass:X,backdropAppearClass:it,backdropDisappearClass:ot,disappearClass:lt}=Sl(U.type,U.direction),N=(p==null?void 0:p.itemId)??null;j.useEffect(()=>{const m=()=>{setTimeout(()=>{var B,G;(G=(B=v.current)==null?void 0:B.splide)==null||G.refresh()},16)},O=()=>{F(B=>B+1)};return window.addEventListener("ArticleEditor.Layout:change",m),window.addEventListener("ArticleEditor.ComponentContent:change",O),()=>{window.removeEventListener("ArticleEditor.Layout:change",m),window.removeEventListener("ArticleEditor.ComponentContent:change",O)}},[]),j.useEffect(()=>{if(!t||!I.isActive){_(!1);return}const m=x.current;if(!m)return;const O=()=>{h.direction==="horiz"?_(m.scrollWidth>m.clientWidth):_(m.scrollHeight>m.clientHeight)};O();const B=new ResizeObserver(O);return B.observe(m),()=>B.disconnect()},[t,I.isActive,n.length,$,h.direction]);const Z=j.useCallback(()=>{const m=window.matchMedia("(max-width: 768px)").matches,O=To(W.color);m&&!i&&O>.9&&(document.body.style.backgroundColor=""),y(!0),E.current=!0;const B=G=>{G.target===T.current&&G.animationName&&(T.current&&c.current&&T.current.removeEventListener("animationend",c.current),c.current=null,E.current&&(E.current=!1,e()),y(!1))};T.current&&(c.current=B,T.current.addEventListener("animationend",B))},[e,W.color,i]),dt=(m,O,B)=>{var G,tt;if(m){if(q.type==="click"&&q.switch==="image")q.repeat==="close"&&s===n.length-1?Z():(G=v.current)==null||G.go("+1");else if(q.type==="click"&&q.switch==="50/50"){const Q=m.getBoundingClientRect(),Y=O-Q.left,rt=B-Q.top,gt=Q.width,at=Q.height;let yt;h.direction==="horiz"?yt=Y<gt/2?"-1":"+1":yt=rt<at/2?"-1":"+1",(tt=v.current)==null||tt.go(yt)}}},st=m=>{if(P.current){P.current=!1;return}const O=n[s],B=(O==null?void 0:O.image.objectFit)==="cover";let G,tt;if("changedTouches"in m&&m.changedTouches.length>0)G=m.changedTouches[0].clientX,tt=m.changedTouches[0].clientY;else if("clientX"in m)G=m.clientX,tt=m.clientY;else return;let Q;if(B&&H.current){const Y=$o(H.current);Q=G>=Y.left&&G<=Y.right&&tt>=Y.top&&tt<=Y.bottom}else{const Y=H.current?wo(H.current):null;if(!Y){m.target===m.currentTarget&&Z();return}Q=G>=Y.x&&G<=Y.x+Y.width&&tt>=Y.y&&tt<=Y.y+Y.height}Q?dt(H.current,G,tt):Z()},ft=m=>{const O=m.target;(O.classList.contains(D.thumbsWrapper)||O.classList.contains(D.thumbsContainer))&&st(m)};j.useEffect(()=>{if(!t)return;const m=O=>{var B,G;if(O.key==="Escape"){Z();return}if(O.key==="ArrowRight"){f(tt=>(tt+1)%Math.max(n.length,1)),(B=v.current)==null||B.go("+1");return}O.key==="ArrowLeft"&&(f(tt=>(tt-1+Math.max(n.length,1))%Math.max(n.length,1)),(G=v.current)==null||G.go("-1"))};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[t,Z,n.length]),j.useEffect(()=>{if(t){if(f(0),F(O=>O+1),E.current=!1,y(!1),g(!1),b({}),!N)return;const m=new CustomEvent("page-overlay",{detail:{itemId:N}});window.dispatchEvent(m)}return()=>{T.current&&c.current&&(T.current.removeEventListener("animationend",c.current),c.current=null),g(!1)}},[t,N]),j.useEffect(()=>{C.current!==null&&C.current!==h.type&&F(m=>m+1),C.current=h.type},[h.type]),j.useEffect(()=>{if(!t)return;const m=document.body.style.overflow,O=window.matchMedia("(max-width: 768px)").matches,B=To(W.color);document.body.style.overflow="hidden",g(!1);const G=Q=>{Q.target===T.current&&!E.current&&Q.animationName&&(O&&!i&&B>.9&&(document.body.style.backgroundColor=W.color),g(!0),T.current&&k.current&&T.current.removeEventListener("animationend",k.current),k.current=null)};T.current&&(k.current=G,T.current.addEventListener("animationend",G));const tt=Q=>{const Y=Q.target;Y&&(Y.closest(`.${D.thumbsWrapper}`)||Y.closest(`.${D.thumbsContainer}`))||h.type!=="slide"&&Q.preventDefault()};return document.addEventListener("touchmove",tt,{passive:!1}),()=>{document.body.style.overflow=m,document.removeEventListener("touchmove",tt),T.current&&k.current&&(T.current.removeEventListener("animationend",k.current),k.current=null),g(!1)}},[t,i,W.color,h.type]),j.useEffect(()=>{if(!t)return;const m=O=>{var G,tt;if(E.current){O.stopPropagation();return}if(P.current){P.current=!1;return}const B=O.target;if(!(B&&(B.closest(`.${D.thumbsContainer}`)||B.closest(`.${D.thumbItem}`)))){if(h.type==="slide"&&q.type==="drag"&&((tt=(G=v.current)==null?void 0:G.splide)!=null&&tt.root)){const Q=v.current.splide.root;if(B&&(Q.contains(B)||Q===B))return}if(O.touches.length===0&&O.changedTouches.length>0){const Q=n[s],Y=(Q==null?void 0:Q.image.objectFit)==="cover",rt=O.changedTouches[0];let gt;if(Y&&H.current){const at=$o(H.current);gt=rt.clientX>=at.left&&rt.clientX<=at.right&&rt.clientY>=at.top&&rt.clientY<=at.bottom}else{const at=H.current?wo(H.current):null;if(!at)return;gt=rt.clientX>=at.x&&rt.clientX<=at.x+at.width&&rt.clientY>=at.y&&rt.clientY<=at.y+at.height}if(!gt){O.stopPropagation(),E.current=!0;const at=yt=>{yt.stopPropagation(),yt.preventDefault(),document.removeEventListener("click",at,!0)};document.addEventListener("click",at,!0),Z()}}}};return document.addEventListener("touchend",m,{passive:!0}),()=>{document.removeEventListener("touchend",m)}},[t,Z,s,n]);const St=(h.type==="scale"||h.type==="fade")&&h.direction==="vert"&&q.type==="drag";j.useEffect(()=>{var yt,zt;if(!t||!St||!((zt=(yt=v.current)==null?void 0:yt.splide)!=null&&zt.root))return;const m=v.current.splide.root,O=30,B=(et,pt)=>{if(L.current){const Tt=Math.abs(et-L.current.x),Xt=Math.abs(pt-L.current.y);(Tt>0||Xt>0)&&(P.current=!0)}},G=et=>{L.current&&(et.preventDefault(),B(et.clientX,et.clientY))},tt=et=>{L.current&&et.touches.length>0&&(et.preventDefault(),B(et.touches[0].clientX,et.touches[0].clientY))},Q=(et,pt)=>{if(!L.current||!v.current){L.current=null;return}const Tt=Math.abs(et-L.current.x),Xt=Math.abs(pt-L.current.y);Xt>O&&Xt>Tt&&v.current.go(pt<L.current.y?"+1":"-1"),L.current=null},Y=et=>{L.current&&Q(et.clientX,et.clientY),document.removeEventListener("pointerup",Y),document.removeEventListener("pointercancel",Y),document.removeEventListener("pointermove",G)},rt=et=>{if(L.current){if(et.changedTouches.length>0){const pt=et.changedTouches[0];Q(pt.clientX,pt.clientY)}document.removeEventListener("touchend",rt),document.removeEventListener("touchcancel",rt),document.removeEventListener("touchmove",tt)}},gt=et=>{L.current={x:et.clientX,y:et.clientY},P.current=!1,document.addEventListener("pointermove",G,{passive:!1}),document.addEventListener("pointerup",Y),document.addEventListener("pointercancel",Y)},at=et=>{et.touches.length>0&&(L.current={x:et.touches[0].clientX,y:et.touches[0].clientY},P.current=!1,document.addEventListener("touchmove",tt,{passive:!1}),document.addEventListener("touchend",rt),document.addEventListener("touchcancel",rt))};return m.addEventListener("pointerdown",gt),m.addEventListener("touchstart",at),()=>{m.removeEventListener("pointerdown",gt),m.removeEventListener("touchstart",at),document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",Y),document.removeEventListener("pointercancel",Y),document.removeEventListener("touchmove",tt),document.removeEventListener("touchend",rt),document.removeEventListener("touchcancel",rt),L.current=null,P.current=!1}},[t,St,u]);const J={backgroundColor:W.color,backdropFilter:`blur(${W.blur}px)`,animationDuration:`${parseInt(U.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"};return typeof document>"u"||!document.getElementById(a)?null:br.createPortal(l.jsxs(l.Fragment,{children:[l.jsx("div",{ref:i?null:T,className:mt(D.background,S?ot:it,{[D.editor]:i},{[D.hidden]:!t}),style:{...J,...d&&!i&&!S?{position:"absolute"}:{}}}),l.jsxs("div",{ref:i?T:null,className:mt(D.contentStyle,S?lt:X,{[D.editor]:i},{[D.hidden]:!t}),style:{animationDuration:`${parseInt(U.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"},children:[l.jsx(ur,{onMove:m=>f(m.index),ref:v,className:D.lightboxSplide,options:{arrows:!1,speed:h.duration?parseInt(h.duration):500,direction:h.direction==="horiz"||h.type==="fade"||h.type==="scale"?"ltr":"ttb",pagination:!1,drag:q.type==="drag"&&!St,perPage:1,width:"100%",height:"100%",type:h.type==="fade"||h.type==="scale"?"fade":"loop",padding:0,rewind:q.repeat!=="close",start:0},style:{"--splide-speed":h.duration},children:n.map((m,O)=>{const B=Ye(M.position,M.offset,i),G=`${w.scalingValue(M.padding.top,i)} ${w.scalingValue(M.padding.right,i)} ${w.scalingValue(M.padding.bottom,i)} ${w.scalingValue(M.padding.left,i)}`,tt=h.type==="scale"?(()=>{const{transform:Q,...Y}=B;return{...Y,position:"absolute",padding:G,boxSizing:"border-box","--position-transform":Q||"none"}})():{...B,position:"absolute",padding:G,boxSizing:"border-box"};return l.jsx(dr,{children:l.jsx("div",{className:D.imgWrapper,onClick:st,children:l.jsx("img",{ref:O===s?H:null,className:mt(D.imageStyle,{[D.contain]:m.image.objectFit==="contain",[D.cover]:m.image.objectFit==="cover",[D.scaleSlide]:h.type==="scale"}),src:m.image.url,alt:m.image.name??"",style:{...tt,pointerEvents:m.image.objectFit==="contain"?"none":"auto"}})})},O)})},u),z.isActive&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:mt(D.arrow,{[D.arrowVertical]:h.direction==="vert"}),style:{color:z.color,"--arrow-hover-color":z.hover},children:l.jsxs("button",{className:D.arrowInner,style:{transform:`translate(${w.scalingValue(z.offset.x,i)}, ${w.scalingValue(z.offset.y*(h.direction==="horiz"?1:-1),i)}) scale(${z.scale}) rotate(${h.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var m;return(m=v.current)==null?void 0:m.go("-1")},"aria-label":"Previous",children:[z.arrowsImgUrl&&l.jsx(ye,{url:z.arrowsImgUrl,fill:z.color,hoverFill:z.hover,className:mt(D.arrowImg,D.mirror)}),!z.arrowsImgUrl&&l.jsx(_o,{color:z.color,className:mt(D.arrowIcon,D.arrowImg,D.mirror)})]})}),l.jsx("div",{className:mt(D.arrow,D.nextArrow,{[D.arrowVertical]:h.direction==="vert"}),style:{color:z.color,"--arrow-hover-color":z.hover},children:l.jsxs("button",{className:D.arrowInner,style:{transform:`translate(${w.scalingValue(z.offset.x*(h.direction==="horiz"?-1:1),i)}, ${w.scalingValue(z.offset.y,i)}) scale(${z.scale}) rotate(${h.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var m;return(m=v.current)==null?void 0:m.go("+1")},"aria-label":"Next",children:[z.arrowsImgUrl&&l.jsx(ye,{url:z.arrowsImgUrl,fill:z.color,hoverFill:z.hover,className:D.arrowImg}),!z.arrowsImgUrl&&l.jsx(_o,{color:z.color,className:mt(D.arrowIcon,D.arrowImg)})]})})]}),W.closeIconUrl&&(()=>{const m=Ye(W.closeIconAlign,W.closeIconOffset,i),O=`scale(${W.closeIconScale})`,B=m.transform?`${m.transform} ${O}`:O;return l.jsx("button",{className:D.closeButton,style:{...m,transform:B},onClick:Z,"aria-label":"Close lightbox",children:l.jsx(ye,{url:W.closeIconUrl,fill:W.closeIconColor??"#000000",hoverFill:W.closeIconHover??"#cccccc"})})})(),A&&A.isActive&&o.imageCaption&&((R=n[s])==null?void 0:R.imageCaption)&&(()=>{const{widthSettings:m,fontSettings:O,letterSpacing:B,textAlign:G,wordSpacing:tt,fontSizeLineHeight:Q,textAppearance:Y,color:rt}=o.imageCaption;return l.jsx("div",{className:D.caption,style:{...Ye(A.alignment,A.offset,i),fontFamily:O.fontFamily,fontWeight:O.fontWeight,fontStyle:O.fontStyle,width:m.sizing==="auto"?"max-content":w.scalingValue(m.width,i),letterSpacing:w.scalingValue(B,i),wordSpacing:w.scalingValue(tt,i),textAlign:G,fontSize:w.scalingValue(Q.fontSize,i),lineHeight:w.scalingValue(Q.lineHeight,i),textTransform:Y.textTransform??"none",textDecoration:Y.textDecoration??"none",fontVariant:Y.fontVariant??"normal",color:rt},onClick:gt=>gt.stopPropagation(),children:l.jsx("div",{"data-styles":"imageCaption",className:D.captionTextInner,style:{"--link-color":A.linkColor,"--link-hover-color":A.linkHoverColor},children:l.jsx(Ve,{content:n[s].imageCaption})})})})(),I.isActive&&(()=>{const[m,O]=I.position.split("-"),B=h.direction==="horiz"?`${m}-left`:I.position,G=Ye(B,I.offset,i),tt=()=>{if(h.direction==="horiz"){if(O==="left")return"flex-start";if(O==="center")return"center";if(O==="right")return"flex-end"}else{if(m==="top")return"flex-start";if(m==="middle")return"center";if(m==="bottom")return"flex-end"}return"flex-start"};return l.jsx("div",{ref:x,className:D.thumbsWrapper,onClick:Q=>ft(Q),style:{position:i?"absolute":"fixed",...G,...h.direction==="horiz"?{maxWidth:"100vw",width:"100%",overflowX:"auto",overflowY:"hidden"}:{maxHeight:"100vh",overflowY:"auto",overflowX:"hidden"}},children:l.jsx("div",{className:mt(D.thumbsContainer,{[D.thumbsContainerVertical]:h.direction==="vert",[D.thumbsAlignStart]:I.align==="start",[D.thumbsAlignCenter]:I.align==="center",[D.thumbsAlignEnd]:I.align==="end"}),style:{gap:w.scalingValue(I.grid.gap,i),justifyContent:V?"flex-start":tt()},children:n.map((Q,Y)=>{const rt=Y===s,gt=$[Y],yt=I.grid.size*(rt?I.activeState.scale:1),zt=()=>{if(I.fit!=="fit")return{};if(!gt)return h.direction==="horiz"?{height:w.scalingValue(yt,i)}:{width:w.scalingValue(yt,i)};const et=gt.width/gt.height;if(h.direction==="horiz"){const pt=yt,Tt=pt*et;return{width:w.scalingValue(Tt,i),height:w.scalingValue(pt,i)}}else{const pt=yt,Tt=pt/et;return{width:w.scalingValue(pt,i),height:w.scalingValue(Tt,i)}}};return l.jsx("button",{className:D.thumbItem,style:{...h.direction==="horiz"&&I.fit!=="fit"?{height:w.scalingValue(yt,i)}:{},...h.direction==="vert"&&I.fit!=="fit"?{width:w.scalingValue(yt,i)}:{},...I.fit==="cover"?{width:w.scalingValue(yt,i),height:w.scalingValue(yt,i)}:{},...zt(),transition:rt?"all 0.25s ease-out":"none",opacity:rt?I.activeState.opacity/100:I.opacity/100,"--thumb-hover":I.activeState.opacity/100},onClick:et=>{var pt;et.stopPropagation(),f(Y),(pt=v.current)==null||pt.go(Y)},onMouseEnter:()=>{var et;I.triggers==="hov"&&((et=v.current)==null||et.go(Y))},children:l.jsx("img",{src:Q.image.url,alt:Q.image.name??"",onLoad:et=>{const pt=et.currentTarget;pt.naturalWidth&&pt.naturalHeight&&b(Tt=>({...Tt,[Y]:{width:pt.naturalWidth,height:pt.naturalHeight}}))},style:{objectFit:I.fit==="cover"?"cover":"contain",...I.fit==="fit"?{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}:{},...I.fit==="cover"?{width:"100%",height:"100%"}:{}}})},`${Q.image.name}-${Y}`)})})})})()]})]}),document.getElementById(a))};function _o({color:t,className:e}){return l.jsx("svg",{viewBox:"0 0 10 18",className:e,children:l.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:l.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:t,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const wl={element:xl,id:"lightbox",name:"Lightbox",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/lightboxImg.png"},defaultSize:{width:440,height:550},fontSettingsPaths:{content:[],parameters:[{path:"styles.imageCaption.fontSettings"}]},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.thumbnailBlock.cover.url",placeholderEnabled:!0},{path:"settings.controls.arrowsImgUrl"},{path:"settings.area.closeIconUrl"}]},schema:{type:"object",properties:{settings:{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:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"},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"}}},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:{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"]}};function he(t){const{color:e,...n}=t;return n}function Zt(t,e){var n,o,r;return{fontFamily:t.fontSettings.fontFamily,fontWeight:t.fontSettings.fontWeight,fontStyle:t.fontSettings.fontStyle,letterSpacing:w.scalingValue(t.letterSpacing,e),wordSpacing:w.scalingValue(t.wordSpacing,e),fontSize:w.scalingValue(t.fontSize,e),lineHeight:t.lineHeight!==void 0?w.scalingValue(t.lineHeight,e):void 0,textTransform:(n=t.textAppearance)==null?void 0:n.textTransform,textDecoration:(o=t.textAppearance)==null?void 0:o.textDecoration,fontVariant:(r=t.textAppearance)==null?void 0:r.fontVariant,color:t.color}}function Xe(t){return`calc(var(--cntrl-article-width, 100vw) * ${t/1440})`}function $l(t){return`
6
+ */const ba="RichTextRenderer-module__link___BWeZ2",xa={link:ba},Ve=({content:t})=>{const e=n=>n.map((o,r)=>o.type==="link"?s.jsx("a",{className:xa.link,href:o.value,target:o.target,children:e(o.children)},r):s.jsx("span",{style:Sa(o),children:o.text},r));return s.jsx(s.Fragment,{children:t.map((n,o)=>{const r=n.children;return s.jsx("div",{children:e(r)},o)})})};function Sa(t){return{...t.fontFamily&&{fontFamily:t.fontFamily},...t.fontWeight&&{fontWeight:t.fontWeight},...t.fontStyle&&{fontStyle:t.fontStyle},...t.textDecoration&&{textDecoration:t.textDecoration},...t.textTransform&&{textTransform:t.textTransform},...t.fontVariant&&{fontVariant:t.fontVariant},...t.verticalAlign&&{verticalAlign:t.verticalAlign,lineHeight:"0px"}}}const Ca="SvgImage-module__svg___q3xE-",wa="SvgImage-module__img___VsTm-",xo={svg:Ca,img:wa},$a=t=>{const e=t.trim();return e.startsWith("data:image/svg+xml")?!0:(e.split(/[?#]/)[0]??e).endsWith(".svg")},Ta=t=>`url("${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`,ye=({url:t,fill:e="#000000",hoverFill:n="#CCCCCC",className:o="",style:r})=>{const[a,i]=H.useState(()=>typeof window>"u"?!0:CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")'));return H.useEffect(()=>{if(typeof window<"u"&&window.CSS){const l=CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")');i(l)}},[]),!$a(t)||!a?s.jsx("img",{src:t,alt:"",className:mt(xo.img,o),style:r}):s.jsx("span",{"data-supports-mask":a,className:mt(xo.svg,o),style:{"--svg":Ta(t),"--fill":e,"--hover-fill":n,...r??{}}})},_a={"top-left":Z.topLeftAlignment,"top-center":Z.topCenterAlignment,"top-right":Z.topRightAlignment,"middle-left":Z.middleLeftAlignment,"middle-center":Z.middleCenterAlignment,"middle-right":Z.middleRightAlignment,"bottom-left":Z.bottomLeftAlignment,"bottom-center":Z.bottomCenterAlignment,"bottom-right":Z.bottomRightAlignment};function Aa({settings:t,content:e,styles:n,isEditor:o}){const[r,a]=H.useState(null),{widthSettings:i,fontSettings:l,letterSpacing:p,textAlign:g,wordSpacing:u,fontSizeLineHeight:F,textAppearance:S,color:f}=n.imageCaption,[d,m]=H.useState(void 0),[w,x]=H.useState(null),[b,$]=H.useState(0),[j,W]=H.useState(0),{direction:C,transition:y,controls:L,pagination:h,imageCaption:P,triggers:T}=t,z=H.useRef(y.type),{x:k,y:U}=t.controls.offset,O=v=>{r&&r.go(v)};return H.useEffect(()=>{if(!w)return;const v=new ResizeObserver(I=>{if(!r)return;const[R]=I;m({width:Math.round(R.contentRect.width),height:Math.round(R.contentRect.height)})});return v.observe(w),()=>v.unobserve(w)},[w]),H.useEffect(()=>{!r||z.current===y.type||(W(v=>v+1),z.current=y.type)},[y.type]),s.jsx("div",{className:mt(Z.wrapper,{[Z.editor]:o}),ref:x,children:s.jsxs("div",{className:Z.sliderInner,style:{width:d?d.width:"100%",height:d?d.height:"100%",backgroundColor:y.backgroundColor&&y.type==="fade in"?y.backgroundColor:"transparent"},children:[t.imageCaption.isActive&&s.jsx("div",{className:mt(Z.captionBlock),children:s.jsx("div",{className:Z.captionTextWrapper,children:e.map((v,I)=>s.jsx("div",{className:mt(Z.captionText,_a[P.alignment],{[Z.withPointerEvents]:I===b&&o,[Z.active]:I===b}),style:{fontFamily:l.fontFamily,fontWeight:l.fontWeight,fontStyle:l.fontStyle,width:i.sizing==="auto"?"max-content":_.scalingValue(i.width,o),letterSpacing:_.scalingValue(p,o),wordSpacing:_.scalingValue(u,o),textAlign:g,fontSize:_.scalingValue(F.fontSize,o),lineHeight:_.scalingValue(F.lineHeight,o),textTransform:S.textTransform??"none",textDecoration:S.textDecoration??"none",fontVariant:S.fontVariant??"normal",color:f,transitionDuration:y.duration?`${Math.round(parseInt(y.duration)/2)}ms`:"500ms"},children:s.jsx("div",{"data-styles":"imageCaption",className:Z.captionTextInner,style:{"--link-hover-color":P.linkHoverColor,"--link-color":P.linkColor,position:"relative",top:_.scalingValue(P.offset.y,o),left:_.scalingValue(P.offset.x,o)},children:s.jsx(Ve,{content:v.imageCaption})})},I))})}),s.jsx(ur,{onMove:v=>{$(v.index)},ref:a,options:{arrows:!1,speed:y.duration?parseInt(y.duration):500,autoplay:T.autoPlay!==null,...T.autoPlay!==null&&{interval:parseInt(T.autoPlay)*1e3},direction:C==="horiz"||y.type==="fade in"?"ltr":"ttb",pagination:!1,drag:T.triggersList.drag,perPage:1,width:d?d.width:"100%",height:d?d.height:"100%",type:y.type==="fade in"?"fade":"loop",rewind:!0},children:e.map((v,I)=>s.jsx(dr,{children:s.jsx("div",{className:Z.sliderItem,children:s.jsx("div",{className:Z.imgWrapper,children:s.jsx("img",{className:mt(Z.sliderImage,{[Z.contain]:v.image.objectFit==="contain",[Z.cover]:v.image.objectFit==="cover"}),src:v.image.url,alt:v.image.name??""})})})},I))},j),L.isActive&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:mt(Z.arrow,{[Z.arrowVertical]:C==="vert",[Z.hoverArrow]:L.show==="on hover"}),style:{color:L.color,"--arrow-hover-color":L.hover},children:s.jsxs("button",{onClick:()=>{O("-1")},className:Z.arrowInner,style:{transform:`translate(${_.scalingValue(k,o)}, ${_.scalingValue(U*(C==="horiz"?1:-1),o)}) scale(${t.controls.scale/100}) rotate(${C==="horiz"?"0deg":"90deg"})`},children:[L.arrowsImgUrl&&s.jsx(ye,{url:L.arrowsImgUrl,fill:L.color,hoverFill:L.hover,className:mt(Z.arrowImg,Z.mirror)}),!L.arrowsImgUrl&&s.jsx(So,{color:L.color,className:mt(Z.arrowIcon,Z.arrowImg,Z.mirror)})]})}),s.jsx("div",{className:mt(Z.arrow,Z.nextArrow,{[Z.arrowVertical]:C==="vert",[Z.hoverArrow]:L.show==="on hover"}),style:{color:L.color,"--arrow-hover-color":L.hover},children:s.jsxs("button",{className:Z.arrowInner,onClick:()=>O("+1"),style:{transform:`translate(${_.scalingValue(k*(C==="horiz"?-1:1),o)}, ${_.scalingValue(U,o)}) scale(${t.controls.scale/100}) rotate(${C==="horiz"?"0deg":"90deg"})`},children:[L.arrowsImgUrl&&s.jsx(ye,{url:L.arrowsImgUrl,fill:L.color,hoverFill:L.hover,className:Z.arrowImg}),!L.arrowsImgUrl&&s.jsx(So,{color:L.color,className:mt(Z.arrowIcon,Z.arrowImg)})]})})]}),T.triggersList.click&&s.jsx("div",{className:Z.clickOverlay,onClick:()=>{r&&r.go("+1")}}),h.isActive&&s.jsx("div",{className:mt(Z.pagination,{[Z.paginationInsideBottom]:h.position==="inside-1"&&C==="horiz",[Z.paginationInsideTop]:h.position==="inside-2"&&C==="horiz",[Z.paginationOutsideBottom]:h.position==="outside-1"&&C==="horiz",[Z.paginationOutsideTop]:h.position==="outside-2"&&C==="horiz",[Z.paginationInsideLeft]:h.position==="inside-1"&&C==="vert",[Z.paginationInsideRight]:h.position==="inside-2"&&C==="vert",[Z.paginationOutsideLeft]:h.position==="outside-1"&&C==="vert",[Z.paginationOutsideRight]:h.position==="outside-2"&&C==="vert",[Z.paginationVertical]:C==="vert"}),children:s.jsx("div",{className:Z.paginationInner,style:{backgroundColor:h.colors[2],transform:`scale(${h.scale/100}) translate(${_.scalingValue(h.offset.x,o)}, ${_.scalingValue(h.offset.y,o)}) rotate(${C==="horiz"?"0deg":"90deg"})`},children:e.map((v,I)=>s.jsx("button",{onClick:()=>{r&&r.go(I)},className:mt(Z.paginationItem),children:s.jsx("div",{className:mt(Z.dot,{[Z.activeDot]:I===b}),style:{backgroundColor:I===b?h.colors[0]:h.colors[1],"--pagination-hover-color":h.hover}})},I))})})]})})}function So({color:t,className:e}){return s.jsx("svg",{viewBox:"0 0 10 18",className:e,children:s.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:s.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:t,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const La={element:Aa,id:"control-slider",name:"Slider",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/sliderImg.png"},defaultSize:{width:400,height:400},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.controls.arrowsImgUrl"}]},fontSettingsPaths:{content:[],parameters:[{path:"styles.imageCaption.fontSettings"}]},schema:{type:"object",properties:{settings:{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:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{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"}}},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:{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"]}},Ea="ImageRevealSlider-module__imageRevealSlider___UE5Ob",Fa="ImageRevealSlider-module__image___Qjt-e",ka="ImageRevealSlider-module__link___N-iLG",Ia="ImageRevealSlider-module__cursor___2U03d",pe={imageRevealSlider:Ea,image:Fa,link:ka,cursor:Ia};function Co(t,e,n){for(const o of n){const r=new Image;r.src=o.url;const a=o.width?Number.parseFloat(o.width):r.naturalWidth,i=r.naturalHeight/r.naturalWidth*a,l=a/2,p=i/2;if(t>=o.x-l&&t<=o.x+l&&e>=o.y-p&&e<=o.y+p)return!0}return!1}function Tn(t){return new Promise(e=>{const n=new Image;n.src=t,n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})}})}async function Ra(t,e,n,o){let r,a;if(e==="custom"){r=n;const i=await Tn(t);a=i.height/i.width*r}else if(e==="random"){r=Math.random()*(o.max-o.min)+o.min;const i=await Tn(t);a=i.height/i.width*r}else{const i=await Tn(t);r=i.width,a=i.height}return{width:r,height:a,finalWidth:`${r}px`}}function Wa({settings:t,content:e,isEditor:n}){const[o,r]=H.useState(null),[a,i]=H.useState([]),[l,p]=H.useState(0),g=H.useRef(0),[u,F]=H.useState({x:0,y:0}),[S,f]=H.useState(1),[d,m]=H.useState("none"),w=H.useRef({x:0,y:0}),[x,b]=H.useState(!1),{sizeType:$,imageWidth:j,randomRangeImageWidth:W}=t.imageSize,{revealPosition:C,visible:y}=t.position,{cursorType:L,target:h,defaultCursorScale:P,defaultCursor:T,hoverCursorScale:z,hoverCursor:k}=t.cursor;H.useEffect(()=>{if(!o)return;const v=(E,A)=>{const V=o.getBoundingClientRect(),X=E-V.left,rt=A-V.top;if(F({x:X,y:rt}),L==="system"){m("none"),f(1);return}const ot=X,lt=rt,M=document.elementFromPoint(V.left+ot,V.top+lt);if(M&&M.closest("a")){m("none"),f(1);return}const Q=Co(ot,lt,a)||h==="area"?{img:k??"none",scale:z}:{img:T??"none",scale:P};m(Q.img),f(Q.scale)},I=E=>{E.stopPropagation(),w.current={x:E.clientX,y:E.clientY},v(E.clientX,E.clientY)},R=()=>{x&&v(w.current.x,w.current.y)};return o.addEventListener("mousemove",I),window.addEventListener("scroll",R,!0),()=>{o.removeEventListener("mousemove",I),window.removeEventListener("scroll",R,!0)}},[o,x,u,L,h,k,T,z,P,a]),H.useEffect(()=>{x||(m("none"),f(0))},[x]);const U=async(v,I,R,E={})=>{const{width:A,height:V,finalWidth:X}=await Ra(v.image.url,$,j,W);let rt=0,ot=0;C==="same"?(rt=I/2,ot=R/2):(rt=E.x??Math.random()*I,ot=E.y??Math.random()*R);const lt=Math.min(Math.max(rt,A/2),I-A/2),M=Math.min(Math.max(ot,V/2),R-V/2);return{id:g.current++,url:v.image.url,link:v.link,name:v.image.name,x:lt,y:M,width:X}};H.useEffect(()=>{if(!o||e.length===0)return;const v=o.getBoundingClientRect(),I=v.width,R=v.height,E=[];(async()=>{const V=e[0],X=await U(V,I,R);E.push(X),i(E),p(1)})()},[$,j,W,C,o]),H.useEffect(()=>{y==="last One"&&i(v=>v.length>0?[v[v.length-1]]:[])},[y]);const O=async v=>{if(!o)return;const I=o.getBoundingClientRect(),R=v.clientX-I.left,E=v.clientY-I.top;if(h==="image"&&!Co(R,E,a))return;let A=0,V=0;C==="on Click"?(A=R,V=E):C==="same"?(A=I.width/2,V=I.height/2):(A=Math.random()*I.width,V=Math.random()*I.height);const X=e[l],rt=await U(X,I.width,I.height,{x:A,y:V});i(ot=>y==="all"?[...ot,rt]:[rt]),p(ot=>ot>=e.length-1?0:ot+1)};return s.jsxs("div",{ref:r,onClick:O,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),className:pe.imageRevealSlider,style:{cursor:d==="none"?"default":"none"},children:[a.map(v=>s.jsx("div",{className:pe.wrapper,style:{top:`${v.y}px`,left:`${v.x}px`,position:"absolute",transform:"translate(-50%, -50%)",width:v.width??"auto",height:"auto",cursor:d==="none"?"default":"none"},children:h==="area"&&v.link?s.jsx("a",{href:v.link,target:"_blank",className:pe.link,children:s.jsx("img",{src:v.url,alt:v.name,className:pe.image},v.id)}):s.jsx("img",{src:v.url,alt:v.name,className:pe.image},v.id)},v.id)),x&&s.jsx("div",{className:pe.cursor,style:{left:`${u.x}px`,top:`${u.y}px`,transform:`translate(-50%, -50%) scale(${S})`,backgroundImage:`url('${d}')`,backgroundSize:"cover",backgroundPosition:"center",position:"absolute",pointerEvents:"none"}})]})}const za={element:Wa,id:"control-image-reveal",name:"Click Gallery",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/clickGalleryImg.png"},defaultSize:{width:"100%",height:"100%"},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.cursor.defaultCursor"},{path:"settings.cursor.hoverCursor"}]},fontSettingsPaths:{content:[],parameters:[]},schema:{type:"object",properties:{settings:{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:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{isObjectFitEditable:!1,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"}}},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:""}]}}}},Va="LightBox-module__hidden___9s-9x",Ma="LightBox-module__heroImage___sTxNF",Na="LightBox-module__background___rm9ml",Pa="LightBox-module__editor___4ACaY",Ha="LightBox-module__contentStyle___Bgnsq",ja="LightBox-module__imageStyle___tLIlB",Oa="LightBox-module__imgWrapper___LuFUp",Ba="LightBox-module__contain___8-yaS",Da="LightBox-module__cover___hNvOG",Ua="LightBox-module__caption___b6L2I",qa="LightBox-module__captionTextInner___rCGNH",Ga="LightBox-module__lightboxSplide___XFuWC",Ya="LightBox-module__arrow___iz38X",Xa="LightBox-module__arrowVertical___Zfz81",Ka="LightBox-module__nextArrow___zkAQN",Za="LightBox-module__arrowInner___p48sW",Ja="LightBox-module__arrowIcon___3VaFf",Qa="LightBox-module__arrowImg___pNV88",tl="LightBox-module__mirror___pjeXc",el="LightBox-module__thumbsWrapper___GB-nU",nl="LightBox-module__thumbsContainerVertical___wttk5",ol="LightBox-module__thumbsContainer___osSma",rl="LightBox-module__thumbsAlignStart___MO6tY",il="LightBox-module__thumbsAlignCenter___Q4sUx",al="LightBox-module__thumbsAlignEnd___p4y9R",ll="LightBox-module__thumbItem___HvnF3",sl="LightBox-module__closeButton___g2khP",cl="LightBox-module__fadeIn___0m5GW",pl="LightBox-module__slideInLeft___gPYwC",ul="LightBox-module__slideInRight___S-pPp",dl="LightBox-module__slideInTop___DFdAj",gl="LightBox-module__slideInBottom___m27kZ",ml="LightBox-module__fadeOut___55qBR",fl="LightBox-module__slideOutLeft___NvU7P",yl="LightBox-module__slideOutRight___SK7eC",hl="LightBox-module__slideOutTop___Vgg0z",vl="LightBox-module__slideOutBottom___nJ0Ef",bl="LightBox-module__scaleSlide___vZriG",D={hidden:Va,heroImage:Ma,background:Na,editor:Pa,contentStyle:Ha,imageStyle:ja,imgWrapper:Oa,contain:Ba,cover:Da,caption:Ua,captionTextInner:qa,lightboxSplide:Ga,arrow:Ya,arrowVertical:Xa,nextArrow:Ka,arrowInner:Za,arrowIcon:Ja,arrowImg:Qa,mirror:tl,thumbsWrapper:el,thumbsContainerVertical:nl,thumbsContainer:ol,thumbsAlignStart:rl,thumbsAlignCenter:il,thumbsAlignEnd:al,thumbItem:ll,closeButton:sl,fadeIn:cl,slideInLeft:pl,slideInRight:ul,slideInTop:dl,slideInBottom:gl,fadeOut:ml,slideOutLeft:fl,slideOutRight:yl,slideOutTop:hl,slideOutBottom:vl,scaleSlide:bl},Ye=(t,e,n)=>{const o={},[r,a]=t.split("-");return r==="top"?(o.top="0",o.bottom="auto"):r==="middle"?(o.top="50%",o.bottom="auto"):r==="bottom"&&(o.top="auto",o.bottom="0"),a==="left"?(o.left="0",o.right="auto"):a==="center"?(o.left="50%",o.right="auto"):a==="right"&&(o.left="auto",o.right="0"),r==="middle"&&a==="center"?o.transform=`translate(calc(-50% + ${_.scalingValue(e.x,n)}), calc(-50% + ${_.scalingValue(e.y,n)}))`:r==="middle"?o.transform=`translate(${_.scalingValue(e.x,n)}, calc(-50% + ${_.scalingValue(e.y,n)}))`:a==="center"?o.transform=`translate(calc(-50% + ${_.scalingValue(e.x,n)}), ${_.scalingValue(e.y,n)})`:o.transform=`translate(${_.scalingValue(e.x,n)}, ${_.scalingValue(e.y,n)})`,o};function gr(t){const e=window.getComputedStyle(t);return{top:parseFloat(e.paddingTop)||0,right:parseFloat(e.paddingRight)||0,bottom:parseFloat(e.paddingBottom)||0,left:parseFloat(e.paddingLeft)||0}}function wo(t){const e=t.getBoundingClientRect(),n=gr(t),o=Math.max(0,e.width-n.left-n.right),r=Math.max(0,e.height-n.top-n.bottom),a=t.naturalWidth,i=t.naturalHeight,l=o/r,p=a/i;let g,u;p>l?(g=o,u=o/p):(u=r,g=r*p);const F=e.left+n.left,S=e.top+n.top,f=(o-g)/2+F,d=(r-u)/2+S;return{x:f,y:d,width:g,height:u}}function $o(t){const e=t.getBoundingClientRect(),n=gr(t);return{left:e.left+n.left,right:e.right-n.right,top:e.top+n.top,bottom:e.bottom-n.bottom}}function To(t){const e=t.match(/rgba?\(([^)]+)\)/);if(e){const o=e[1].split(",").map(r=>parseFloat(r.trim()));return o.length===4?o[3]:1}const n=t.match(/^#([0-9a-fA-F]{8})$/);if(n){const o=n[1].substring(6,8);return parseInt(o,16)/255}return t.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/),1}function xl(t,e){const n=(()=>{if(t==="fade in")return D.fadeIn;if(t==="slide in"||t==="mix")switch(e){case"left":return D.slideInLeft;case"right":return D.slideInRight;case"top":return D.slideInTop;case"bottom":return D.slideInBottom;default:return D.slideInRight}return D.fadeIn})(),o=(()=>{if(t==="fade in"||t==="mix")return D.fadeIn;if(t==="slide in")switch(e){case"left":return D.slideInLeft;case"right":return D.slideInRight;case"top":return D.slideInTop;case"bottom":return D.slideInBottom;default:return D.slideInRight}return D.fadeIn})(),r=(()=>{if(t==="fade in"||t==="mix")return D.fadeOut;if(t==="slide in")switch(e){case"left":return D.slideOutLeft;case"right":return D.slideOutRight;case"top":return D.slideOutTop;case"bottom":return D.slideOutBottom;default:return D.slideOutRight}return D.fadeOut})(),a=(()=>{if(t==="fade in")return D.fadeOut;if(t==="slide in"||t==="mix")switch(e){case"left":return D.slideOutLeft;case"right":return D.slideOutRight;case"top":return D.slideOutTop;case"bottom":return D.slideOutBottom;default:return D.slideOutRight}return D.fadeOut})();return{appearClass:n,backdropAppearClass:o,backdropDisappearClass:r,disappearClass:a}}const Sl=({settings:t,content:e,styles:n,portalId:o,activeEvent:r,isEditor:a})=>{const[i,l]=H.useState(!1),{url:p}=t.thumbnailBlock.cover;return H.useEffect(()=>{r==="close"&&l(!1),r==="open"&&l(!0)},[r]),s.jsxs(s.Fragment,{children:[s.jsx("img",{src:p,alt:"Cover",className:D.heroImage,onClick:()=>l(!0)}),s.jsx(Cl,{isOpen:i,onClose:()=>l(!1),content:e,settings:t,lightboxStyles:n,portalId:o,isEditor:a})]})},Cl=({isOpen:t,onClose:e,content:n,lightboxStyles:o,settings:r,portalId:a,isEditor:i,metadata:l})=>{var q;const[p,g]=H.useState(0),[u,F]=H.useState(0),[S,f]=H.useState(!1),[d,m]=H.useState(!1),[w,x]=H.useState({}),b=H.useRef(null),$=H.useRef(null),j=H.useRef(null),W=H.useRef(!1),C=H.useRef(null),y=H.useRef(null),L=H.useRef(null),h=H.useRef(null),P=H.useRef(!1),T=H.useRef(null),[z,k]=H.useState(!1),{appear:U,triggers:O,slider:v,thumbnail:I,controls:R,area:E,caption:A,layout:V}=r.lightboxBlock,{appearClass:X,backdropAppearClass:rt,backdropDisappearClass:ot,disappearClass:lt}=xl(U.type,U.direction),M=(l==null?void 0:l.itemId)??null;H.useEffect(()=>{const c=()=>{setTimeout(()=>{var B,Y;(Y=(B=b.current)==null?void 0:B.splide)==null||Y.refresh()},16)},N=()=>{F(B=>B+1)};return window.addEventListener("ArticleEditor.Layout:change",c),window.addEventListener("ArticleEditor.ComponentContent:change",N),()=>{window.removeEventListener("ArticleEditor.Layout:change",c),window.removeEventListener("ArticleEditor.ComponentContent:change",N)}},[]),H.useEffect(()=>{if(!t||!I.isActive){k(!1);return}const c=T.current;if(!c)return;const N=()=>{v.direction==="horiz"?k(c.scrollWidth>c.clientWidth):k(c.scrollHeight>c.clientHeight)};N();const B=new ResizeObserver(N);return B.observe(c),()=>B.disconnect()},[t,I.isActive,n.length,w,v.direction]);const Q=H.useCallback(()=>{const c=window.matchMedia("(max-width: 768px)").matches,N=To(E.color);c&&!i&&N>.9&&(document.body.style.backgroundColor=""),f(!0),W.current=!0;const B=Y=>{Y.target===C.current&&Y.animationName&&(C.current&&y.current&&C.current.removeEventListener("animationend",y.current),y.current=null,W.current&&(W.current=!1,e()),f(!1))};C.current&&(y.current=B,C.current.addEventListener("animationend",B))},[e,E.color,i]),ft=(c,N,B)=>{var Y,G;if(c){if(O.type==="click"&&O.switch==="image")O.repeat==="close"&&p===n.length-1?Q():(Y=b.current)==null||Y.go("+1");else if(O.type==="click"&&O.switch==="50/50"){const K=c.getBoundingClientRect(),J=N-K.left,nt=B-K.top,it=K.width,at=K.height;let pt;v.direction==="horiz"?pt=J<it/2?"-1":"+1":pt=nt<at/2?"-1":"+1",(G=b.current)==null||G.go(pt)}}},st=c=>{if(P.current){P.current=!1;return}const N=n[p],B=(N==null?void 0:N.image.objectFit)==="cover";let Y,G;if("changedTouches"in c&&c.changedTouches.length>0)Y=c.changedTouches[0].clientX,G=c.changedTouches[0].clientY;else if("clientX"in c)Y=c.clientX,G=c.clientY;else return;let K;if(B&&j.current){const J=$o(j.current);K=Y>=J.left&&Y<=J.right&&G>=J.top&&G<=J.bottom}else{const J=j.current?wo(j.current):null;if(!J){c.target===c.currentTarget&&Q();return}K=Y>=J.x&&Y<=J.x+J.width&&G>=J.y&&G<=J.y+J.height}K?ft(j.current,Y,G):Q()},gt=c=>{const N=c.target;(N.classList.contains(D.thumbsWrapper)||N.classList.contains(D.thumbsContainer))&&st(c)};H.useEffect(()=>{if(!t)return;const c=N=>{var B,Y;if(N.key==="Escape"){Q();return}if(N.key==="ArrowRight"){g(G=>(G+1)%Math.max(n.length,1)),(B=b.current)==null||B.go("+1");return}N.key==="ArrowLeft"&&(g(G=>(G-1+Math.max(n.length,1))%Math.max(n.length,1)),(Y=b.current)==null||Y.go("-1"))};return window.addEventListener("keydown",c),()=>{window.removeEventListener("keydown",c)}},[t,Q,n.length]),H.useEffect(()=>{if(t){if(g(0),F(N=>N+1),W.current=!1,f(!1),m(!1),x({}),!M)return;const c=new CustomEvent("page-overlay",{detail:{itemId:M}});window.dispatchEvent(c)}return()=>{C.current&&y.current&&(C.current.removeEventListener("animationend",y.current),y.current=null),m(!1)}},[t,M]),H.useEffect(()=>{$.current!==null&&$.current!==v.type&&F(c=>c+1),$.current=v.type},[v.type]),H.useEffect(()=>{if(!t)return;const c=document.body.style.overflow,N=window.matchMedia("(max-width: 768px)").matches,B=To(E.color);document.body.style.overflow="hidden",m(!1);const Y=K=>{K.target===C.current&&!W.current&&K.animationName&&(N&&!i&&B>.9&&(document.body.style.backgroundColor=E.color),m(!0),C.current&&L.current&&C.current.removeEventListener("animationend",L.current),L.current=null)};C.current&&(L.current=Y,C.current.addEventListener("animationend",Y));const G=K=>{const J=K.target;J&&(J.closest(`.${D.thumbsWrapper}`)||J.closest(`.${D.thumbsContainer}`))||v.type!=="slide"&&K.preventDefault()};return document.addEventListener("touchmove",G,{passive:!1}),()=>{document.body.style.overflow=c,document.removeEventListener("touchmove",G),C.current&&L.current&&(C.current.removeEventListener("animationend",L.current),L.current=null),m(!1)}},[t,i,E.color,v.type]),H.useEffect(()=>{if(!t)return;const c=N=>{var Y,G;if(W.current){N.stopPropagation();return}if(P.current){P.current=!1;return}const B=N.target;if(!(B&&(B.closest(`.${D.thumbsContainer}`)||B.closest(`.${D.thumbItem}`)))){if(v.type==="slide"&&O.type==="drag"&&((G=(Y=b.current)==null?void 0:Y.splide)!=null&&G.root)){const K=b.current.splide.root;if(B&&(K.contains(B)||K===B))return}if(N.touches.length===0&&N.changedTouches.length>0){const K=n[p],J=(K==null?void 0:K.image.objectFit)==="cover",nt=N.changedTouches[0];let it;if(J&&j.current){const at=$o(j.current);it=nt.clientX>=at.left&&nt.clientX<=at.right&&nt.clientY>=at.top&&nt.clientY<=at.bottom}else{const at=j.current?wo(j.current):null;if(!at)return;it=nt.clientX>=at.x&&nt.clientX<=at.x+at.width&&nt.clientY>=at.y&&nt.clientY<=at.y+at.height}if(!it){N.stopPropagation(),W.current=!0;const at=pt=>{pt.stopPropagation(),pt.preventDefault(),document.removeEventListener("click",at,!0)};document.addEventListener("click",at,!0),Q()}}}};return document.addEventListener("touchend",c,{passive:!0}),()=>{document.removeEventListener("touchend",c)}},[t,Q,p,n]);const bt=(v.type==="scale"||v.type==="fade")&&v.direction==="vert"&&O.type==="drag";H.useEffect(()=>{var pt,Tt;if(!t||!bt||!((Tt=(pt=b.current)==null?void 0:pt.splide)!=null&&Tt.root))return;const c=b.current.splide.root,N=30,B=(tt,ut)=>{if(h.current){const St=Math.abs(tt-h.current.x),Xt=Math.abs(ut-h.current.y);(St>0||Xt>0)&&(P.current=!0)}},Y=tt=>{h.current&&(tt.preventDefault(),B(tt.clientX,tt.clientY))},G=tt=>{h.current&&tt.touches.length>0&&(tt.preventDefault(),B(tt.touches[0].clientX,tt.touches[0].clientY))},K=(tt,ut)=>{if(!h.current||!b.current){h.current=null;return}const St=Math.abs(tt-h.current.x),Xt=Math.abs(ut-h.current.y);Xt>N&&Xt>St&&b.current.go(ut<h.current.y?"+1":"-1"),h.current=null},J=tt=>{h.current&&K(tt.clientX,tt.clientY),document.removeEventListener("pointerup",J),document.removeEventListener("pointercancel",J),document.removeEventListener("pointermove",Y)},nt=tt=>{if(h.current){if(tt.changedTouches.length>0){const ut=tt.changedTouches[0];K(ut.clientX,ut.clientY)}document.removeEventListener("touchend",nt),document.removeEventListener("touchcancel",nt),document.removeEventListener("touchmove",G)}},it=tt=>{h.current={x:tt.clientX,y:tt.clientY},P.current=!1,document.addEventListener("pointermove",Y,{passive:!1}),document.addEventListener("pointerup",J),document.addEventListener("pointercancel",J)},at=tt=>{tt.touches.length>0&&(h.current={x:tt.touches[0].clientX,y:tt.touches[0].clientY},P.current=!1,document.addEventListener("touchmove",G,{passive:!1}),document.addEventListener("touchend",nt),document.addEventListener("touchcancel",nt))};return c.addEventListener("pointerdown",it),c.addEventListener("touchstart",at),()=>{c.removeEventListener("pointerdown",it),c.removeEventListener("touchstart",at),document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",J),document.removeEventListener("pointercancel",J),document.removeEventListener("touchmove",G),document.removeEventListener("touchend",nt),document.removeEventListener("touchcancel",nt),h.current=null,P.current=!1}},[t,bt,u]);const zt={backgroundColor:E.color,backdropFilter:`blur(${E.blur}px)`,animationDuration:`${parseInt(U.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"};return typeof document>"u"||!document.getElementById(a)?null:br.createPortal(s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:i?null:C,className:mt(D.background,S?ot:rt,{[D.editor]:i},{[D.hidden]:!t}),style:{...zt,...d&&!i&&!S?{position:"absolute"}:{}}}),s.jsxs("div",{ref:i?C:null,className:mt(D.contentStyle,S?lt:X,{[D.editor]:i},{[D.hidden]:!t}),style:{animationDuration:`${parseInt(U.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"},children:[s.jsx(ur,{onMove:c=>g(c.index),ref:b,className:D.lightboxSplide,options:{arrows:!1,speed:v.duration?parseInt(v.duration):500,direction:v.direction==="horiz"||v.type==="fade"||v.type==="scale"?"ltr":"ttb",pagination:!1,drag:O.type==="drag"&&!bt,perPage:1,width:"100%",height:"100%",type:v.type==="fade"||v.type==="scale"?"fade":"loop",padding:0,rewind:O.repeat!=="close",start:0},style:{"--splide-speed":v.duration},children:n.map((c,N)=>{const B=Ye(V.position,V.offset,i),Y=`${_.scalingValue(V.padding.top,i)} ${_.scalingValue(V.padding.right,i)} ${_.scalingValue(V.padding.bottom,i)} ${_.scalingValue(V.padding.left,i)}`,G=v.type==="scale"?(()=>{const{transform:K,...J}=B;return{...J,position:"absolute",padding:Y,boxSizing:"border-box","--position-transform":K||"none"}})():{...B,position:"absolute",padding:Y,boxSizing:"border-box"};return s.jsx(dr,{children:s.jsx("div",{className:D.imgWrapper,onClick:st,children:s.jsx("img",{ref:N===p?j:null,className:mt(D.imageStyle,{[D.contain]:c.image.objectFit==="contain",[D.cover]:c.image.objectFit==="cover",[D.scaleSlide]:v.type==="scale"}),src:c.image.url,alt:c.image.name??"",style:{...G,pointerEvents:c.image.objectFit==="contain"?"none":"auto"}})})},N)})},u),R.isActive&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:mt(D.arrow,{[D.arrowVertical]:v.direction==="vert"}),style:{color:R.color,"--arrow-hover-color":R.hover},children:s.jsxs("button",{className:D.arrowInner,style:{transform:`translate(${_.scalingValue(R.offset.x,i)}, ${_.scalingValue(R.offset.y*(v.direction==="horiz"?1:-1),i)}) scale(${R.scale}) rotate(${v.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var c;return(c=b.current)==null?void 0:c.go("-1")},"aria-label":"Previous",children:[R.arrowsImgUrl&&s.jsx(ye,{url:R.arrowsImgUrl,fill:R.color,hoverFill:R.hover,className:mt(D.arrowImg,D.mirror)}),!R.arrowsImgUrl&&s.jsx(_o,{color:R.color,className:mt(D.arrowIcon,D.arrowImg,D.mirror)})]})}),s.jsx("div",{className:mt(D.arrow,D.nextArrow,{[D.arrowVertical]:v.direction==="vert"}),style:{color:R.color,"--arrow-hover-color":R.hover},children:s.jsxs("button",{className:D.arrowInner,style:{transform:`translate(${_.scalingValue(R.offset.x*(v.direction==="horiz"?-1:1),i)}, ${_.scalingValue(R.offset.y,i)}) scale(${R.scale}) rotate(${v.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var c;return(c=b.current)==null?void 0:c.go("+1")},"aria-label":"Next",children:[R.arrowsImgUrl&&s.jsx(ye,{url:R.arrowsImgUrl,fill:R.color,hoverFill:R.hover,className:D.arrowImg}),!R.arrowsImgUrl&&s.jsx(_o,{color:R.color,className:mt(D.arrowIcon,D.arrowImg)})]})})]}),E.closeIconUrl&&(()=>{const c=Ye(E.closeIconAlign,E.closeIconOffset,i),N=`scale(${E.closeIconScale})`,B=c.transform?`${c.transform} ${N}`:N;return s.jsx("button",{className:D.closeButton,style:{...c,transform:B},onClick:Q,"aria-label":"Close lightbox",children:s.jsx(ye,{url:E.closeIconUrl,fill:E.closeIconColor??"#000000",hoverFill:E.closeIconHover??"#cccccc"})})})(),A&&A.isActive&&o.imageCaption&&((q=n[p])==null?void 0:q.imageCaption)&&(()=>{const{widthSettings:c,fontSettings:N,letterSpacing:B,textAlign:Y,wordSpacing:G,fontSizeLineHeight:K,textAppearance:J,color:nt}=o.imageCaption;return s.jsx("div",{className:D.caption,style:{...Ye(A.alignment,A.offset,i),fontFamily:N.fontFamily,fontWeight:N.fontWeight,fontStyle:N.fontStyle,width:c.sizing==="auto"?"max-content":_.scalingValue(c.width,i),letterSpacing:_.scalingValue(B,i),wordSpacing:_.scalingValue(G,i),textAlign:Y,fontSize:_.scalingValue(K.fontSize,i),lineHeight:_.scalingValue(K.lineHeight,i),textTransform:J.textTransform??"none",textDecoration:J.textDecoration??"none",fontVariant:J.fontVariant??"normal",color:nt},onClick:it=>it.stopPropagation(),children:s.jsx("div",{"data-styles":"imageCaption",className:D.captionTextInner,style:{"--link-color":A.linkColor,"--link-hover-color":A.linkHoverColor},children:s.jsx(Ve,{content:n[p].imageCaption})})})})(),I.isActive&&(()=>{const[c,N]=I.position.split("-"),B=v.direction==="horiz"?`${c}-left`:I.position,Y=Ye(B,I.offset,i),G=()=>{if(v.direction==="horiz"){if(N==="left")return"flex-start";if(N==="center")return"center";if(N==="right")return"flex-end"}else{if(c==="top")return"flex-start";if(c==="middle")return"center";if(c==="bottom")return"flex-end"}return"flex-start"};return s.jsx("div",{ref:T,className:D.thumbsWrapper,onClick:K=>gt(K),style:{position:i?"absolute":"fixed",...Y,...v.direction==="horiz"?{maxWidth:"100vw",width:"100%",overflowX:"auto",overflowY:"hidden"}:{maxHeight:"100vh",overflowY:"auto",overflowX:"hidden"}},children:s.jsx("div",{className:mt(D.thumbsContainer,{[D.thumbsContainerVertical]:v.direction==="vert",[D.thumbsAlignStart]:I.align==="start",[D.thumbsAlignCenter]:I.align==="center",[D.thumbsAlignEnd]:I.align==="end"}),style:{gap:_.scalingValue(I.grid.gap,i),justifyContent:z?"flex-start":G()},children:n.map((K,J)=>{const nt=J===p,it=w[J],pt=I.grid.size*(nt?I.activeState.scale:1),Tt=()=>{if(I.fit!=="fit")return{};if(!it)return v.direction==="horiz"?{height:_.scalingValue(pt,i)}:{width:_.scalingValue(pt,i)};const tt=it.width/it.height;if(v.direction==="horiz"){const ut=pt,St=ut*tt;return{width:_.scalingValue(St,i),height:_.scalingValue(ut,i)}}else{const ut=pt,St=ut/tt;return{width:_.scalingValue(ut,i),height:_.scalingValue(St,i)}}};return s.jsx("button",{className:D.thumbItem,style:{...v.direction==="horiz"&&I.fit!=="fit"?{height:_.scalingValue(pt,i)}:{},...v.direction==="vert"&&I.fit!=="fit"?{width:_.scalingValue(pt,i)}:{},...I.fit==="cover"?{width:_.scalingValue(pt,i),height:_.scalingValue(pt,i)}:{},...Tt(),transition:nt?"all 0.25s ease-out":"none",opacity:nt?I.activeState.opacity/100:I.opacity/100,"--thumb-hover":I.activeState.opacity/100},onClick:tt=>{var ut;tt.stopPropagation(),g(J),(ut=b.current)==null||ut.go(J)},onMouseEnter:()=>{var tt;I.triggers==="hov"&&((tt=b.current)==null||tt.go(J))},children:s.jsx("img",{src:K.image.url,alt:K.image.name??"",onLoad:tt=>{const ut=tt.currentTarget;ut.naturalWidth&&ut.naturalHeight&&x(St=>({...St,[J]:{width:ut.naturalWidth,height:ut.naturalHeight}}))},style:{objectFit:I.fit==="cover"?"cover":"contain",...I.fit==="fit"?{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}:{},...I.fit==="cover"?{width:"100%",height:"100%"}:{}}})},`${K.image.name}-${J}`)})})})})()]})]}),document.getElementById(a))};function _o({color:t,className:e}){return s.jsx("svg",{viewBox:"0 0 10 18",className:e,children:s.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:s.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:t,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const wl={element:Sl,id:"lightbox",name:"Lightbox",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/lightboxImg.png"},defaultSize:{width:440,height:550},fontSettingsPaths:{content:[],parameters:[{path:"styles.imageCaption.fontSettings"}]},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.thumbnailBlock.cover.url",placeholderEnabled:!0},{path:"settings.controls.arrowsImgUrl"},{path:"settings.area.closeIconUrl"}]},schema:{type:"object",properties:{settings:{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:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"},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"}}},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:{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"]}};function he(t){const{color:e,...n}=t;return n}function Zt(t,e){var n,o,r;return{fontFamily:t.fontSettings.fontFamily,fontWeight:t.fontSettings.fontWeight,fontStyle:t.fontSettings.fontStyle,letterSpacing:_.scalingValue(t.letterSpacing,e),wordSpacing:_.scalingValue(t.wordSpacing,e),fontSize:_.scalingValue(t.fontSize,e),lineHeight:t.lineHeight!==void 0?_.scalingValue(t.lineHeight,e):void 0,textTransform:(n=t.textAppearance)==null?void 0:n.textTransform,textDecoration:(o=t.textAppearance)==null?void 0:o.textDecoration,fontVariant:(r=t.textAppearance)==null?void 0:r.fontVariant,color:t.color}}function Xe(t){return`calc(var(--cntrl-article-width, 100vw) * ${t/1440})`}function $l(t){return`
7
7
  .${t}-wrapper {
8
8
  display: flex;
9
9
  flex-direction: column;
@@ -139,7 +139,7 @@
139
139
  position: relative;
140
140
  height: auto;
141
141
  }
142
- `}function Tl({settings:t,isEditor:e,metadata:n,activeEvent:o}){const{prefix:r}=w.useScopedStyles(),{type:a="A",fieldsToShow:i=2,fields:p=[],buttonLabel:s,gap:f,fieldsGap:u,buttonCorners:F,buttonStroke:S,buttonPadding:y,isButtonFullWidth:d,inputCorners:g,inputStroke:$,inputPadding:b,inputColor:v,inputTextColor:C,inputBorderColor:H,placeholderColor:E,buttonColor:T,buttonTextColor:c,buttonBorderColor:k,labelTextColor:L,successColor:P,errorColor:x,fontFamily:V,inputFontSettings:_,inputFontSize:U,inputLineHeight:q,inputLetterSpacing:h,inputWordSpacing:I,inputTextAppearance:z,buttonFontSettings:W,buttonFontSize:A,buttonLineHeight:M,buttonLetterSpacing:X,buttonWordSpacing:it,buttonTextAppearance:ot,labelFontSettings:lt,labelFontSize:N,labelLineHeight:Z,labelLetterSpacing:dt,labelWordSpacing:st,labelTextAppearance:ft,statusFontSettings:St,statusFontSize:J,statusLineHeight:R,statusLetterSpacing:m,statusWordSpacing:O,statusTextAppearance:B,successMessage:G,errorMessage:tt,stateOverrides:Q}=t,Y=a==="B",rt=p.slice(0,Math.min(i,p.length)),gt={fontSettings:{fontFamily:V,fontWeight:(_==null?void 0:_.fontWeight)??400,fontStyle:(_==null?void 0:_.fontStyle)??"normal"},fontSize:U??.01,lineHeight:q,letterSpacing:h??0,wordSpacing:I??0,textAppearance:z,color:C},at=he(Zt(gt,e)),yt=w.scalingValue($??0,e),zt=w.scalingValue((q??U??.01)+((b==null?void 0:b.top)??0)+((b==null?void 0:b.bottom)??0)+(a==="C"?$??0:($??0)*2),e),et={...at,borderStyle:"solid",borderRadius:a==="C"?0:w.scalingValue(g??0,e),...a==="C"?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:yt,borderLeftWidth:0}:{borderWidth:yt},paddingTop:w.scalingValue((b==null?void 0:b.top)??0,e),paddingRight:w.scalingValue((b==null?void 0:b.right)??0,e),paddingBottom:w.scalingValue((b==null?void 0:b.bottom)??0,e),paddingLeft:w.scalingValue((b==null?void 0:b.left)??0,e),height:zt,minHeight:zt},pt={fontSettings:{fontFamily:V,fontWeight:(W==null?void 0:W.fontWeight)??400,fontStyle:(W==null?void 0:W.fontStyle)??"normal"},fontSize:A??.01,lineHeight:M,letterSpacing:X??0,wordSpacing:it??0,textAppearance:ot,color:c},Tt=he(Zt(pt,e)),Xt=w.scalingValue(S??0,e),bn={fontSettings:{fontFamily:V,fontWeight:(lt==null?void 0:lt.fontWeight)??400,fontStyle:(lt==null?void 0:lt.fontStyle)??"normal"},fontSize:N??.01,lineHeight:Z,letterSpacing:dt??0,wordSpacing:st??0,textAppearance:ft,color:L},$e=Zt(bn,e),vt={fontSettings:{fontFamily:V,fontWeight:(St==null?void 0:St.fontWeight)??400,fontStyle:(St==null?void 0:St.fontStyle)??"normal"},fontSize:J??.01,lineHeight:R,letterSpacing:m??0,wordSpacing:O??0,textAppearance:B,color:P},Vt=he(Zt(vt,e)),oe=w.buildColorVars(r,{inputColor:v,inputTextColor:C,inputBorderColor:H,placeholderColor:E!=null&&E.trim()?E:"#cccccc",buttonColor:T,buttonTextColor:c,buttonBorderColor:k,labelTextColor:L,successColor:P,errorColor:x},_l,Al,Q),[xt,jt]=j.useState(()=>Object.fromEntries(rt.map(ct=>[ct.name,""]))),[no,Te]=j.useState("idle"),[mr,Ue]=j.useState(null),Sn=o==="success"?"success":o==="error"?"error":no,fr=o==="error"?tt:mr,qe=o==="filled",_e=j.useMemo(()=>{if(!qe)return xt;let ct=null;for(const Ht of rt)(xt[Ht.name]??"").trim().length>0||(ct=ct??{...xt},ct[Ht.name]="Filled");return ct??xt},[xt,qe,rt]),yr=Sn==="error"?w.getFormFieldValidationError(rt,_e):null,hr=`${o&&o!=="default"?`${r}-state-${o}`:""}`.trim(),oo=n==null?void 0:n.submitUrl,ro=(ct,Ht)=>{jt(Ot=>({...Ot,[ct]:Ht}))},vr=async ct=>{ct.preventDefault();const Ht=Object.fromEntries(rt.map(Lt=>{var ce;return[Lt.name,((ce=xt[Lt.name])==null?void 0:ce.trim())??""]}).filter(([,Lt])=>Lt));if(!oo){Te("error"),Ue("No integrations were found for this form.");return}if(Object.keys(Ht).length===0)return;const Ot=w.getFormFieldValidationError(rt,xt);if(Ot){Te("error"),Ue(Ot);return}Te("submitting"),Ue(null);try{const Lt=await fetch(oo,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ht)});if(!Lt.ok){const ce=await Lt.text();throw new Error(ce||`Request failed: ${Lt.status}`)}Te("success"),jt(Object.fromEntries(rt.map(ce=>[ce.name,""])))}catch(Lt){Te("error"),Ue(Lt instanceof Error?Lt.message:"Something went wrong")}};return l.jsxs("div",{className:`${r}-wrapper ${r}-type-${a} ${hr}`.trim(),style:oe,children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:$l(r)}}),l.jsxs("form",{onSubmit:vr,className:`${r}-form`,style:{gap:w.scalingValue(f??0,e)},children:[l.jsx("div",{className:`${r}-fields`,style:{gap:w.scalingValue(u??0,e)},children:rt.map((ct,Ht)=>l.jsxs("div",{className:`${r}-field-group${Y?` ${r}-labeled`:""}`,children:[Y&&l.jsx("span",{className:`${r}-field-label`,style:$e?{...$e,lineHeight:$e.fontSize}:void 0,children:ct.label||ct.name}),ct.type==="textarea"?l.jsx("textarea",{name:ct.name,autoComplete:"off",value:_e[ct.name]??"",onChange:Ot=>ro(ct.name,Ot.target.value),placeholder:ct.placeholder,className:`${r}-input`,style:et,rows:1,"data-filled":qe||(_e[ct.name]??"").trim().length>0,"data-field-type":"textarea"}):l.jsx("input",{type:ct.type==="phone"?"tel":ct.type==="email"?"email":"text",name:ct.name,autoComplete:"off",value:_e[ct.name]??"",onChange:Ot=>ro(ct.name,Ot.target.value),placeholder:ct.placeholder,required:ct.isRequired??ct.type==="email",className:`${r}-input`,style:et,"data-filled":qe||(_e[ct.name]??"").trim().length>0})]},Ht))}),l.jsx("div",{className:`${r}-overlay-anchor`,children:l.jsx("button",{type:"submit",className:`${r}-button`,style:{borderStyle:"solid",borderRadius:w.scalingValue(F??0,e),borderWidth:Xt,paddingTop:w.scalingValue((y==null?void 0:y.top)??0,e),paddingRight:w.scalingValue((y==null?void 0:y.right)??0,e),paddingBottom:w.scalingValue((y==null?void 0:y.bottom)??0,e),paddingLeft:w.scalingValue((y==null?void 0:y.left)??0,e),...Tt,...d?{width:"100%",textAlign:"center",whiteSpace:"normal"}:{}},children:l.jsx("span",{className:`${r}-overlay-anchor`,style:d?{display:"inline-block",maxWidth:"100%",whiteSpace:"normal",textAlign:"center"}:void 0,children:no==="submitting"?"...":s})})})]}),Sn==="success"&&l.jsx("p",{className:`${r}-success`,style:{...Vt},children:G}),Sn==="error"&&l.jsx("p",{className:`${r}-error`,style:{...Vt},role:"alert",children:yr??fr??tt})]})}const _l={inputColor:"input-color",inputTextColor:"input-text-color",inputBorderColor:"input-border-color",placeholderColor:"placeholder-color",buttonColor:"button-color",buttonTextColor:"button-text-color",buttonBorderColor:"button-border-color",labelTextColor:"label-text-color",successColor:"success-color",errorColor:"error-color"},Al=["hover","focus","filled","success","error"],El=`import React, { useMemo, useState } from 'react';
142
+ `}function Tl({settings:t,isEditor:e,metadata:n,activeEvent:o}){const{prefix:r}=_.useScopedStyles(),{type:a="A",fieldsToShow:i=2,fields:l=[],buttonLabel:p,gap:g,fieldsGap:u,buttonCorners:F,buttonStroke:S,buttonPadding:f,isButtonFullWidth:d,inputCorners:m,inputStroke:w,inputPadding:x,inputColor:b,inputTextColor:$,inputBorderColor:j,placeholderColor:W,buttonColor:C,buttonTextColor:y,buttonBorderColor:L,labelTextColor:h,successColor:P,errorColor:T,fontFamily:z,inputFontSettings:k,inputFontSize:U,inputLineHeight:O,inputLetterSpacing:v,inputWordSpacing:I,inputTextAppearance:R,buttonFontSettings:E,buttonFontSize:A,buttonLineHeight:V,buttonLetterSpacing:X,buttonWordSpacing:rt,buttonTextAppearance:ot,labelFontSettings:lt,labelFontSize:M,labelLineHeight:Q,labelLetterSpacing:ft,labelWordSpacing:st,labelTextAppearance:gt,statusFontSettings:bt,statusFontSize:zt,statusLineHeight:q,statusLetterSpacing:c,statusWordSpacing:N,statusTextAppearance:B,successMessage:Y,errorMessage:G,stateOverrides:K}=t,J=a==="B",nt=l.slice(0,Math.min(i,l.length)),it={fontSettings:{fontFamily:z,fontWeight:(k==null?void 0:k.fontWeight)??400,fontStyle:(k==null?void 0:k.fontStyle)??"normal"},fontSize:U??.01,lineHeight:O,letterSpacing:v??0,wordSpacing:I??0,textAppearance:R,color:$},at=he(Zt(it,e)),pt=_.scalingValue(w??0,e),Tt=_.scalingValue((O??U??.01)+((x==null?void 0:x.top)??0)+((x==null?void 0:x.bottom)??0)+(a==="C"?w??0:(w??0)*2),e),tt={...at,borderStyle:"solid",borderRadius:a==="C"?0:_.scalingValue(m??0,e),...a==="C"?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:pt,borderLeftWidth:0}:{borderWidth:pt},paddingTop:_.scalingValue((x==null?void 0:x.top)??0,e),paddingRight:_.scalingValue((x==null?void 0:x.right)??0,e),paddingBottom:_.scalingValue((x==null?void 0:x.bottom)??0,e),paddingLeft:_.scalingValue((x==null?void 0:x.left)??0,e),height:Tt,minHeight:Tt},ut={fontSettings:{fontFamily:z,fontWeight:(E==null?void 0:E.fontWeight)??400,fontStyle:(E==null?void 0:E.fontStyle)??"normal"},fontSize:A??.01,lineHeight:V,letterSpacing:X??0,wordSpacing:rt??0,textAppearance:ot,color:y},St=he(Zt(ut,e)),Xt=_.scalingValue(S??0,e),bn={fontSettings:{fontFamily:z,fontWeight:(lt==null?void 0:lt.fontWeight)??400,fontStyle:(lt==null?void 0:lt.fontStyle)??"normal"},fontSize:M??.01,lineHeight:Q,letterSpacing:ft??0,wordSpacing:st??0,textAppearance:gt,color:h},$e=Zt(bn,e),ht={fontSettings:{fontFamily:z,fontWeight:(bt==null?void 0:bt.fontWeight)??400,fontStyle:(bt==null?void 0:bt.fontStyle)??"normal"},fontSize:zt??.01,lineHeight:q,letterSpacing:c??0,wordSpacing:N??0,textAppearance:B,color:P},Vt=he(Zt(ht,e)),oe=_.buildColorVars(r,{inputColor:b,inputTextColor:$,inputBorderColor:j,placeholderColor:W!=null&&W.trim()?W:"#cccccc",buttonColor:C,buttonTextColor:y,buttonBorderColor:L,labelTextColor:h,successColor:P,errorColor:T},_l,Al,K),[xt,Ht]=H.useState(()=>Object.fromEntries(nt.map(ct=>[ct.name,""]))),[no,Te]=H.useState("idle"),[mr,Ue]=H.useState(null),xn=o==="success"?"success":o==="error"?"error":no,fr=o==="error"?G:mr,qe=o==="filled",_e=H.useMemo(()=>{if(!qe)return xt;let ct=null;for(const jt of nt)(xt[jt.name]??"").trim().length>0||(ct=ct??{...xt},ct[jt.name]="Filled");return ct??xt},[xt,qe,nt]),yr=xn==="error"?_.getFormFieldValidationError(nt,_e):null,hr=`${o&&o!=="default"?`${r}-state-${o}`:""}`.trim(),oo=n==null?void 0:n.submitUrl,ro=(ct,jt)=>{Ht(Ot=>({...Ot,[ct]:jt}))},vr=async ct=>{ct.preventDefault();const jt=Object.fromEntries(nt.map(Et=>{var ce;return[Et.name,((ce=xt[Et.name])==null?void 0:ce.trim())??""]}).filter(([,Et])=>Et));if(!oo){Te("error"),Ue("No integrations were found for this form.");return}if(Object.keys(jt).length===0)return;const Ot=_.getFormFieldValidationError(nt,xt);if(Ot){Te("error"),Ue(Ot);return}Te("submitting"),Ue(null);try{const Et=await fetch(oo,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(jt)});if(!Et.ok){const ce=await Et.text();throw new Error(ce||`Request failed: ${Et.status}`)}Te("success"),Ht(Object.fromEntries(nt.map(ce=>[ce.name,""])))}catch(Et){Te("error"),Ue(Et instanceof Error?Et.message:"Something went wrong")}};return s.jsxs("div",{className:`${r}-wrapper ${r}-type-${a} ${hr}`.trim(),style:oe,children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:$l(r)}}),s.jsxs("form",{onSubmit:vr,className:`${r}-form`,style:{gap:_.scalingValue(g??0,e)},children:[s.jsx("div",{className:`${r}-fields`,style:{gap:_.scalingValue(u??0,e)},children:nt.map((ct,jt)=>s.jsxs("div",{className:`${r}-field-group${J?` ${r}-labeled`:""}`,children:[J&&s.jsx("span",{className:`${r}-field-label`,style:$e?{...$e,lineHeight:$e.fontSize}:void 0,children:ct.label||ct.name}),ct.type==="textarea"?s.jsx("textarea",{name:ct.name,autoComplete:"off",value:_e[ct.name]??"",onChange:Ot=>ro(ct.name,Ot.target.value),placeholder:ct.placeholder,className:`${r}-input`,style:tt,rows:1,"data-filled":qe||(_e[ct.name]??"").trim().length>0,"data-field-type":"textarea"}):s.jsx("input",{type:ct.type==="phone"?"tel":ct.type==="email"?"email":"text",name:ct.name,autoComplete:"off",value:_e[ct.name]??"",onChange:Ot=>ro(ct.name,Ot.target.value),placeholder:ct.placeholder,required:ct.isRequired??ct.type==="email",className:`${r}-input`,style:tt,"data-filled":qe||(_e[ct.name]??"").trim().length>0})]},jt))}),s.jsx("div",{className:`${r}-overlay-anchor`,children:s.jsx("button",{type:"submit",className:`${r}-button`,style:{borderStyle:"solid",borderRadius:_.scalingValue(F??0,e),borderWidth:Xt,paddingTop:_.scalingValue((f==null?void 0:f.top)??0,e),paddingRight:_.scalingValue((f==null?void 0:f.right)??0,e),paddingBottom:_.scalingValue((f==null?void 0:f.bottom)??0,e),paddingLeft:_.scalingValue((f==null?void 0:f.left)??0,e),...St,...d?{width:"100%",textAlign:"center",whiteSpace:"normal"}:{}},children:s.jsx("span",{className:`${r}-overlay-anchor`,style:d?{display:"inline-block",maxWidth:"100%",whiteSpace:"normal",textAlign:"center"}:void 0,children:no==="submitting"?"...":p})})})]}),xn==="success"&&s.jsx("p",{className:`${r}-success`,style:{...Vt},children:Y}),xn==="error"&&s.jsx("p",{className:`${r}-error`,style:{...Vt},role:"alert",children:yr??fr??G})]})}const _l={inputColor:"input-color",inputTextColor:"input-text-color",inputBorderColor:"input-border-color",placeholderColor:"placeholder-color",buttonColor:"button-color",buttonTextColor:"button-text-color",buttonBorderColor:"button-border-color",labelTextColor:"label-text-color",successColor:"success-color",errorColor:"error-color"},Al=["hover","focus","filled","success","error"],Ll=`import React, { useMemo, useState } from 'react';
143
143
  import { CommonComponentProps } from '../props';
144
144
  import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
145
145
  import { omitTextColors, textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
@@ -740,7 +740,7 @@ const COLOR_VAR_MAP: Record<ColorKeys, string> = {
740
740
  };
741
741
 
742
742
  const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
743
- `,Ll=[{name:"email",type:"email",placeholder:"Enter your email",label:"Email",isRequired:!0,error:"Please, enter a valid e-mail."},{name:"name",type:"text",placeholder:"Enter your name",label:"Name",isRequired:!1,error:"Please, enter your name."},{name:"company",type:"text",placeholder:"Enter company",label:"Company",isRequired:!1,error:"Please, enter your company name."},{name:"phone",type:"phone",placeholder:"Enter your phone",label:"Phone",isRequired:!1,error:"Please, enter a valid phone number."},{name:"message",type:"textarea",placeholder:"Enter your message",label:"Message",isRequired:!1,error:"Message is required"},{name:"message2",type:"textarea",placeholder:"Enter your message 2",label:"Message 2",isRequired:!1,error:"Message 2 is required"},{name:"message3",type:"textarea",placeholder:"Enter your message 3",label:"Message 3",isRequired:!1,error:"Message 3 is required"}],Ke={fontSettings:{type:"object",display:{type:"font-settings-weight"},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},Fl=["inputColor","inputTextColor","inputBorderColor","placeholderColor","buttonColor","buttonTextColor","buttonBorderColor","labelTextColor","successColor","errorColor"],kl={type:"object",version:1,settings:{sizing:"auto manual",properties:{fieldsToShow:{type:"number",scope:"common",title:"Fields",display:{type:"number"},min:1,max:7},fields:{type:"array",scope:"common",display:{type:"fields-group"},items:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["text","textarea","phone","email"]},placeholder:{type:"string"},label:{type:"string"},isRequired:{type:"boolean"},error:{type:"string"}}}},buttonLabel:{type:"string",scope:"common",title:"Button Label",display:{type:"text-input"}},successMessage:{type:"string",scope:"common",title:"Success Message",display:{type:"text-input"}},errorMessage:{type:"string",scope:"common",title:"Error Message",display:{type:"text-input"}},type:{type:"string",scope:"common",title:"",display:{type:"radio-group"},enum:["A","B","C"]},gap:{type:"number",scope:"layout",title:"Gap",display:{type:"range-control"},min:0,max:100},fieldsGap:{type:"number",scope:"layout",title:"Gap",display:{type:"range-control",enabled:!0},min:0,max:100},buttonPadding:{type:"object",scope:"layout",title:"Padding",display:{type:"padding-controls"}},inputPadding:{type:"object",scope:"layout",title:"Padding",display:{type:"padding-controls"}},buttonStroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},buttonCorners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control",enabled:!0},min:0,max:100},inputStroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},inputCorners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control",enabled:!0},min:0,max:100},inputColor:{type:"string",scope:"common",title:"Input Fill",display:{type:"palette-color-picker"}},inputTextColor:{type:"string",scope:"common",title:"Input Label",display:{type:"palette-color-picker"}},inputBorderColor:{type:"string",scope:"common",title:"Input Stroke",display:{type:"palette-color-picker"}},placeholderColor:{type:"string",scope:"common",title:"Filler text",display:{type:"palette-color-picker"}},buttonColor:{type:"string",scope:"common",title:"Button Fill",display:{type:"palette-color-picker"}},buttonTextColor:{type:"string",scope:"common",title:"Button Label",display:{type:"palette-color-picker"}},isButtonFullWidth:{type:"boolean",scope:"common",title:"Full Width",display:{type:"toggle",enum:["On","Off"]}},buttonBorderColor:{type:"string",scope:"common",title:"Button Stroke",display:{type:"palette-color-picker"}},labelTextColor:{type:"string",scope:"common",title:"Label Color",display:{type:"palette-color-picker",visible:!1}},successColor:{type:"string",scope:"common",title:"Success Message Color",display:{type:"palette-color-picker"}},errorColor:{type:"string",scope:"common",title:"Error Message Color",display:{type:"palette-color-picker"}},stateOverrides:{type:"object",scope:"common"},fontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},inputFontSettings:{...Ke.fontSettings,scope:"common",title:"Input",display:{type:"font-settings-weight"}},inputFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},inputLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},inputLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},inputWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},inputTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}},buttonFontSettings:{...Ke.fontSettings,scope:"common",title:"Button",display:{type:"font-settings-weight"}},buttonFontSize:{type:"number",scope:"layout",title:"Button Font Size",display:{type:"font-size"}},buttonLineHeight:{type:"number",scope:"layout",title:"Button Line Height",display:{type:"line-height-input"}},buttonLetterSpacing:{type:"number",scope:"layout",title:"Button Letter Spacing",display:{type:"letter-spacing-input"}},buttonWordSpacing:{type:"number",scope:"layout",title:"Button Word Spacing",display:{type:"word-spacing-input"}},buttonTextAppearance:{type:"object",scope:"layout",title:"Button Text Appearance",display:{type:"text-appearance"}},labelFontSettings:{...Ke.fontSettings,scope:"common",title:"Label",display:{type:"font-settings-weight",visible:!1}},labelFontSize:{type:"number",scope:"layout",title:"Label Font Size",display:{type:"font-size",visible:!1}},labelLineHeight:{type:"number",scope:"layout",title:"Label Line Height",display:{type:"line-height-input",visible:!1}},labelLetterSpacing:{type:"number",scope:"layout",title:"Label Letter Spacing",display:{type:"letter-spacing-input",visible:!1}},labelWordSpacing:{type:"number",scope:"layout",title:"Label Word Spacing",display:{type:"word-spacing-input",visible:!1}},labelTextAppearance:{type:"object",scope:"layout",title:"Label Text Appearance",display:{type:"text-appearance",visible:!1}},statusFontSettings:{...Ke.fontSettings,scope:"common",title:"Success/Error"},statusFontSize:{type:"number",scope:"layout",title:"Success/Error Font Size",display:{type:"font-size"}},statusLineHeight:{type:"number",scope:"layout",title:"Success/Error Line Height",display:{type:"line-height-input"}},statusLetterSpacing:{type:"number",scope:"layout",title:"Success/Error Letter Spacing",display:{type:"letter-spacing-input"}},statusWordSpacing:{type:"number",scope:"layout",title:"Success/Error Word Spacing",display:{type:"word-spacing-input"}},statusTextAppearance:{type:"object",scope:"layout",title:"Success/Error Text Appearance",display:{type:"text-appearance"}}},defaults:{fieldsToShow:2,fields:Ll,type:"A",inputColor:"#FFFFFF",inputTextColor:"#0A00F8",inputBorderColor:"#E2E2E2",placeholderColor:"#808080",buttonColor:"#0A00F8",buttonTextColor:"#ffffff",buttonBorderColor:"#0A00F8",labelTextColor:"#999999",successColor:"#22c55e",errorColor:"#ef4444",stateOverrides:{hover:{buttonColor:"#194EFF"}},fontFamily:"Arial",inputFontSettings:{fontWeight:400,fontStyle:"normal"},inputLetterSpacing:0,inputWordSpacing:0,inputTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},buttonFontSettings:{fontWeight:400,fontStyle:"normal"},buttonLetterSpacing:0,buttonWordSpacing:0,buttonTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},labelFontSettings:{fontWeight:400,fontStyle:"normal"},labelLetterSpacing:0,labelWordSpacing:0,labelTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},statusFontSettings:{fontWeight:400,fontStyle:"normal"},statusLetterSpacing:0,statusWordSpacing:0,statusTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},isButtonFullWidth:!1,buttonLabel:"Sign up",successMessage:"Thanks for subscribing!",errorMessage:"Please, fill all required fields."},layoutDefaults:{m:{gap:.032,fieldsGap:.032,buttonStroke:0,buttonCorners:.192,inputStroke:.003,inputCorners:.192,buttonPadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},inputPadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},inputFontSize:.043,inputLineHeight:.043,buttonFontSize:.0373,buttonLineHeight:.0373,labelFontSize:.0373,labelLineHeight:.0373,statusFontSize:.0373,statusLineHeight:.0373},d:{gap:.0083,fieldsGap:.0083,buttonStroke:0,buttonCorners:.05,inputStroke:.001,inputCorners:.05,buttonPadding:{top:.01,right:.01,bottom:.01,left:.01},inputPadding:{top:.01,right:.01,bottom:.01,left:.01},inputFontSize:.01,inputLineHeight:.01,buttonFontSize:.01,buttonLineHeight:.01,labelFontSize:.01,labelLineHeight:.01,statusFontSize:.01,statusLineHeight:.01}},displayRules:[{if:{name:"type",value:"B"},then:{name:"properties.labelTextColor.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelFontSettings.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelFontSize.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelLineHeight.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelLetterSpacing.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelWordSpacing.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelTextAppearance.display.visible",value:!0}},{if:{name:"type",value:"C"},then:{name:"properties.buttonCorners.display.enabled",value:!1}},{if:{name:"type",value:"C"},then:{name:"properties.inputCorners.display.enabled",value:!1}},{if:{name:"buttonStroke",value:0},then:{name:"properties.buttonBorderColor.display.visible",value:!1}},{if:{name:"inputStroke",value:0},then:{name:"properties.inputBorderColor.display.visible",value:!1}},{if:{name:"fieldsToShow",value:1},then:{name:"properties.fieldsGap.display.enabled",value:!1}}]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","name","fieldsToShow"]},"type",{type:"group",title:"",items:[{type:"row",title:"Input",items:[{type:"group",title:"",items:["fieldsGap","inputStroke","inputCorners"]},{type:"group",title:"",items:["inputPadding"]}]},{type:"group",title:"Button",items:[{type:"row",items:["isButtonFullWidth"]},{type:"row",items:[{type:"group",title:"",items:["gap","buttonStroke","buttonCorners"]},{type:"group",title:"",items:["buttonPadding"]}]}]}]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["fontFamily",{type:"group",title:"",items:["inputFontSettings",{type:"row",items:["inputFontSize","inputLineHeight","inputLetterSpacing","inputWordSpacing"]},"inputTextAppearance"]},{type:"group",title:"",items:["buttonFontSettings",{type:"row",items:["buttonFontSize","buttonLineHeight","buttonLetterSpacing","buttonWordSpacing"]},"buttonTextAppearance"]},{type:"group",title:"",items:["labelFontSettings",{type:"row",items:["labelFontSize","labelLineHeight","labelLetterSpacing","labelWordSpacing"]},"labelTextAppearance"]},{type:"group",title:"",items:["statusFontSettings",{type:"row",items:["statusFontSize","statusLineHeight","statusLetterSpacing","statusWordSpacing"]},"statusTextAppearance"]}]},{id:"fields",icon:"layers",title:"Fields",tooltip:"Fields",layout:["fields","buttonLabel","successMessage","errorMessage"]}],paletteBookmark:{items:[...Fl],panelIds:["general","typeStyle"],stateItems:{default:["placeholderColor","inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor","labelTextColor"],hover:["inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor"],focus:["inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor"],filled:["inputTextColor","inputColor","inputBorderColor","buttonTextColor"],success:["successColor"],error:["errorColor"]}},allowedPlugins:["newsletter"],states:["default","hover","focus","filled","success","error"]},Il={element:Tl,id:"form",name:"Newsletter Stacked",category:"forms",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/formImg.jpg"},defaultSize:{width:300,height:42},schema:kl,sourceCode:El};function Ze(t){return`calc(var(--cntrl-article-width, 100vw) * ${t/1440})`}function Rl(t){return`
743
+ `,El=[{name:"email",type:"email",placeholder:"Enter your email",label:"Email",isRequired:!0,error:"Please, enter a valid e-mail."},{name:"name",type:"text",placeholder:"Enter your name",label:"Name",isRequired:!1,error:"Please, enter your name."},{name:"company",type:"text",placeholder:"Enter company",label:"Company",isRequired:!1,error:"Please, enter your company name."},{name:"phone",type:"phone",placeholder:"Enter your phone",label:"Phone",isRequired:!1,error:"Please, enter a valid phone number."},{name:"message",type:"textarea",placeholder:"Enter your message",label:"Message",isRequired:!1,error:"Message is required"},{name:"message2",type:"textarea",placeholder:"Enter your message 2",label:"Message 2",isRequired:!1,error:"Message 2 is required"},{name:"message3",type:"textarea",placeholder:"Enter your message 3",label:"Message 3",isRequired:!1,error:"Message 3 is required"}],Ke={fontSettings:{type:"object",display:{type:"font-settings-weight"},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},Fl=["inputColor","inputTextColor","inputBorderColor","placeholderColor","buttonColor","buttonTextColor","buttonBorderColor","labelTextColor","successColor","errorColor"],kl={type:"object",version:1,settings:{sizing:"auto manual",properties:{fieldsToShow:{type:"number",scope:"common",title:"Fields",display:{type:"number"},min:1,max:7},fields:{type:"array",scope:"common",display:{type:"fields-group"},items:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["text","textarea","phone","email"]},placeholder:{type:"string"},label:{type:"string"},isRequired:{type:"boolean"},error:{type:"string"}}}},buttonLabel:{type:"string",scope:"common",title:"Button Label",display:{type:"text-input"}},successMessage:{type:"string",scope:"common",title:"Success Message",display:{type:"text-input"}},errorMessage:{type:"string",scope:"common",title:"Error Message",display:{type:"text-input"}},type:{type:"string",scope:"common",title:"",display:{type:"radio-group"},enum:["A","B","C"]},gap:{type:"number",scope:"layout",title:"Gap",display:{type:"range-control"},min:0,max:100},fieldsGap:{type:"number",scope:"layout",title:"Gap",display:{type:"range-control",enabled:!0},min:0,max:100},buttonPadding:{type:"object",scope:"layout",title:"Padding",display:{type:"padding-controls"}},inputPadding:{type:"object",scope:"layout",title:"Padding",display:{type:"padding-controls"}},buttonStroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},buttonCorners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control",enabled:!0},min:0,max:100},inputStroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},inputCorners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control",enabled:!0},min:0,max:100},inputColor:{type:"string",scope:"common",title:"Input Fill",display:{type:"palette-color-picker"}},inputTextColor:{type:"string",scope:"common",title:"Input Label",display:{type:"palette-color-picker"}},inputBorderColor:{type:"string",scope:"common",title:"Input Stroke",display:{type:"palette-color-picker"}},placeholderColor:{type:"string",scope:"common",title:"Filler text",display:{type:"palette-color-picker"}},buttonColor:{type:"string",scope:"common",title:"Button Fill",display:{type:"palette-color-picker"}},buttonTextColor:{type:"string",scope:"common",title:"Button Label",display:{type:"palette-color-picker"}},isButtonFullWidth:{type:"boolean",scope:"common",title:"Full Width",display:{type:"toggle",enum:["On","Off"]}},buttonBorderColor:{type:"string",scope:"common",title:"Button Stroke",display:{type:"palette-color-picker"}},labelTextColor:{type:"string",scope:"common",title:"Label Color",display:{type:"palette-color-picker",visible:!1}},successColor:{type:"string",scope:"common",title:"Success Message Color",display:{type:"palette-color-picker"}},errorColor:{type:"string",scope:"common",title:"Error Message Color",display:{type:"palette-color-picker"}},stateOverrides:{type:"object",scope:"common"},fontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},inputFontSettings:{...Ke.fontSettings,scope:"common",title:"Input",display:{type:"font-settings-weight"}},inputFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},inputLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},inputLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},inputWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},inputTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}},buttonFontSettings:{...Ke.fontSettings,scope:"common",title:"Button",display:{type:"font-settings-weight"}},buttonFontSize:{type:"number",scope:"layout",title:"Button Font Size",display:{type:"font-size"}},buttonLineHeight:{type:"number",scope:"layout",title:"Button Line Height",display:{type:"line-height-input"}},buttonLetterSpacing:{type:"number",scope:"layout",title:"Button Letter Spacing",display:{type:"letter-spacing-input"}},buttonWordSpacing:{type:"number",scope:"layout",title:"Button Word Spacing",display:{type:"word-spacing-input"}},buttonTextAppearance:{type:"object",scope:"layout",title:"Button Text Appearance",display:{type:"text-appearance"}},labelFontSettings:{...Ke.fontSettings,scope:"common",title:"Label",display:{type:"font-settings-weight",visible:!1}},labelFontSize:{type:"number",scope:"layout",title:"Label Font Size",display:{type:"font-size",visible:!1}},labelLineHeight:{type:"number",scope:"layout",title:"Label Line Height",display:{type:"line-height-input",visible:!1}},labelLetterSpacing:{type:"number",scope:"layout",title:"Label Letter Spacing",display:{type:"letter-spacing-input",visible:!1}},labelWordSpacing:{type:"number",scope:"layout",title:"Label Word Spacing",display:{type:"word-spacing-input",visible:!1}},labelTextAppearance:{type:"object",scope:"layout",title:"Label Text Appearance",display:{type:"text-appearance",visible:!1}},statusFontSettings:{...Ke.fontSettings,scope:"common",title:"Success/Error"},statusFontSize:{type:"number",scope:"layout",title:"Success/Error Font Size",display:{type:"font-size"}},statusLineHeight:{type:"number",scope:"layout",title:"Success/Error Line Height",display:{type:"line-height-input"}},statusLetterSpacing:{type:"number",scope:"layout",title:"Success/Error Letter Spacing",display:{type:"letter-spacing-input"}},statusWordSpacing:{type:"number",scope:"layout",title:"Success/Error Word Spacing",display:{type:"word-spacing-input"}},statusTextAppearance:{type:"object",scope:"layout",title:"Success/Error Text Appearance",display:{type:"text-appearance"}}},defaults:{fieldsToShow:2,fields:El,type:"A",inputColor:"#FFFFFF",inputTextColor:"#0A00F8",inputBorderColor:"#E2E2E2",placeholderColor:"#808080",buttonColor:"#0A00F8",buttonTextColor:"#ffffff",buttonBorderColor:"#0A00F8",labelTextColor:"#999999",successColor:"#22c55e",errorColor:"#ef4444",stateOverrides:{hover:{buttonColor:"#194EFF"}},fontFamily:"Arial",inputFontSettings:{fontWeight:400,fontStyle:"normal"},inputLetterSpacing:0,inputWordSpacing:0,inputTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},buttonFontSettings:{fontWeight:400,fontStyle:"normal"},buttonLetterSpacing:0,buttonWordSpacing:0,buttonTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},labelFontSettings:{fontWeight:400,fontStyle:"normal"},labelLetterSpacing:0,labelWordSpacing:0,labelTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},statusFontSettings:{fontWeight:400,fontStyle:"normal"},statusLetterSpacing:0,statusWordSpacing:0,statusTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},isButtonFullWidth:!1,buttonLabel:"Sign up",successMessage:"Thanks for subscribing!",errorMessage:"Please, fill all required fields."},layoutDefaults:{m:{gap:.032,fieldsGap:.032,buttonStroke:0,buttonCorners:.192,inputStroke:.003,inputCorners:.192,buttonPadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},inputPadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},inputFontSize:.043,inputLineHeight:.043,buttonFontSize:.0373,buttonLineHeight:.0373,labelFontSize:.0373,labelLineHeight:.0373,statusFontSize:.0373,statusLineHeight:.0373},d:{gap:.0083,fieldsGap:.0083,buttonStroke:0,buttonCorners:.05,inputStroke:.001,inputCorners:.05,buttonPadding:{top:.01,right:.01,bottom:.01,left:.01},inputPadding:{top:.01,right:.01,bottom:.01,left:.01},inputFontSize:.01,inputLineHeight:.01,buttonFontSize:.01,buttonLineHeight:.01,labelFontSize:.01,labelLineHeight:.01,statusFontSize:.01,statusLineHeight:.01}},displayRules:[{if:{name:"type",value:"B"},then:{name:"properties.labelTextColor.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelFontSettings.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelFontSize.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelLineHeight.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelLetterSpacing.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelWordSpacing.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelTextAppearance.display.visible",value:!0}},{if:{name:"type",value:"C"},then:{name:"properties.buttonCorners.display.enabled",value:!1}},{if:{name:"type",value:"C"},then:{name:"properties.inputCorners.display.enabled",value:!1}},{if:{name:"buttonStroke",value:0},then:{name:"properties.buttonBorderColor.display.visible",value:!1}},{if:{name:"inputStroke",value:0},then:{name:"properties.inputBorderColor.display.visible",value:!1}},{if:{name:"fieldsToShow",value:1},then:{name:"properties.fieldsGap.display.enabled",value:!1}}]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","name","fieldsToShow"]},"type",{type:"group",title:"",items:[{type:"row",title:"Input",items:[{type:"group",title:"",items:["fieldsGap","inputStroke","inputCorners"]},{type:"group",title:"",items:["inputPadding"]}]},{type:"group",title:"Button",items:[{type:"row",items:["isButtonFullWidth"]},{type:"row",items:[{type:"group",title:"",items:["gap","buttonStroke","buttonCorners"]},{type:"group",title:"",items:["buttonPadding"]}]}]}]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["fontFamily",{type:"group",title:"",items:["inputFontSettings",{type:"row",items:["inputFontSize","inputLineHeight","inputLetterSpacing","inputWordSpacing"]},"inputTextAppearance"]},{type:"group",title:"",items:["buttonFontSettings",{type:"row",items:["buttonFontSize","buttonLineHeight","buttonLetterSpacing","buttonWordSpacing"]},"buttonTextAppearance"]},{type:"group",title:"",items:["labelFontSettings",{type:"row",items:["labelFontSize","labelLineHeight","labelLetterSpacing","labelWordSpacing"]},"labelTextAppearance"]},{type:"group",title:"",items:["statusFontSettings",{type:"row",items:["statusFontSize","statusLineHeight","statusLetterSpacing","statusWordSpacing"]},"statusTextAppearance"]}]},{id:"fields",icon:"layers",title:"Fields",tooltip:"Fields",layout:["fields","buttonLabel","successMessage","errorMessage"]}],paletteBookmark:{items:[...Fl],panelIds:["general","typeStyle"],stateItems:{default:["placeholderColor","inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor","labelTextColor"],hover:["inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor"],focus:["inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor"],filled:["inputTextColor","inputColor","inputBorderColor","buttonTextColor"],success:["successColor"],error:["errorColor"]}},allowedPlugins:["newsletter"],states:["default","hover","focus","filled","success","error"]},Il={element:Tl,id:"form",name:"Newsletter Stacked",category:"forms",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/formImg.jpg"},defaultSize:{width:300,height:42},schema:kl,sourceCode:Ll};function Ze(t){return`calc(var(--cntrl-article-width, 100vw) * ${t/1440})`}function Rl(t){return`
744
744
  .${t}-wrapper {
745
745
  display: flex;
746
746
  flex-direction: column;
@@ -931,7 +931,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
931
931
  font-size: ${Ze(14)};
932
932
  color: var(--${t}-error-error-color, var(--${t}-error-color));
933
933
  }
934
- `}const Wl=({settings:t,isEditor:e,metadata:n,activeEvent:o})=>{const{prefix:r}=w.useScopedStyles(),{fields:a=[{name:"email",type:"email",placeholder:"Your email"}],buttonIcon:i,buttonLabel:p,fieldsToShow:s=1,fontFamily:f,inputFontSettings:u,inputFontSize:F,inputLineHeight:S,inputLetterSpacing:y,inputWordSpacing:d,inputTextAppearance:g,buttonFontSettings:$,buttonFontSize:b,buttonLineHeight:v,buttonLetterSpacing:C,buttonWordSpacing:H,buttonTextAppearance:E,statusFontSettings:T,statusFontSize:c,statusLineHeight:k,statusLetterSpacing:L,statusWordSpacing:P,statusTextAppearance:x,iconMaxWidth:V,minHeight:_,corners:U,stroke:q,stateOverrides:h,inputPadding:I,buttonPadding:z,successMessage:W="Thanks for subscribing!",errorMessage:A="Please, fill all required fields."}=t,M=a.slice(0,Math.min(s,a.length)),[X,it]=j.useState(()=>Object.fromEntries(M.map(vt=>[vt.name,""]))),[ot,lt]=j.useState("idle"),[N,Z]=j.useState(null),dt=o==="success"?"success":o==="error"?"error":ot,st=o==="error"?A:N,ft=o==="filled",St=j.useMemo(()=>{if(!ft)return X;let vt=null;for(const Vt of M)(X[Vt.name]??"").trim().length>0||(vt=vt??{...X},vt[Vt.name]="Filled");return vt??X},[ft,X,M]),J=dt==="error"?w.getFormFieldValidationError(M,St):null,R=o&&o!=="default"?`${r}-state-${o}`:"",m=M.some(vt=>(St[vt.name]??"").trim().length>0),O=R!==`${r}-state-filled`&&m?`${r}-state-filled`:"",B=`${R} ${O}`.trim(),G=n==null?void 0:n.submitUrl,tt=p??"",Q=(i==null?void 0:i.icon)??"",Y=(i==null?void 0:i.mode)==="On",rt=tt||"Submit",gt={fontSettings:{fontFamily:f,fontWeight:(u==null?void 0:u.fontWeight)??400,fontStyle:(u==null?void 0:u.fontStyle)??"normal"},fontSize:F??.01,lineHeight:S,letterSpacing:y??0,wordSpacing:d??0,textAppearance:g,color:t.inputTextColor??"#111111"},at={fontSettings:{fontFamily:f,fontWeight:($==null?void 0:$.fontWeight)??400,fontStyle:($==null?void 0:$.fontStyle)??"normal"},fontSize:b??.01,lineHeight:v,letterSpacing:C??0,wordSpacing:H??0,textAppearance:E,color:t.buttonTextColor??"#ffffff"},yt={fontSettings:{fontFamily:f,fontWeight:(T==null?void 0:T.fontWeight)??400,fontStyle:(T==null?void 0:T.fontStyle)??"normal"},fontSize:c??.01,lineHeight:k,letterSpacing:L??0,wordSpacing:P??0,textAppearance:x,color:t.successColor??"#22c55e"},zt=he(Zt(gt,e)),et=he(Zt(at,e)),pt=he(Zt(yt,e)),Tt=w.buildColorVars(r,{strokeColor:t.strokeColor,inputColor:t.inputColor,placeholderColor:t.placeholderColor,buttonColor:t.buttonColor,successColor:t.successColor,errorColor:t.errorColor,inputTextColor:t.inputTextColor??(gt==null?void 0:gt.color)??"#111111",buttonTextColor:t.buttonTextColor??(at==null?void 0:at.color)??"#ffffff"},zl,Vl,h),Xt={borderRadius:w.scalingValue(U,e),borderWidth:w.scalingValue(q,e),borderStyle:"solid"},bn={borderLeftWidth:w.scalingValue(q,e)},$e=async vt=>{vt.preventDefault();const Vt=Object.fromEntries(M.map(xt=>{var jt;return[xt.name,((jt=X[xt.name])==null?void 0:jt.trim())??""]}).filter(([,xt])=>xt));if(!G){lt("error"),Z("No integrations were found for this form.");return}if(Object.keys(Vt).length===0)return;const oe=w.getFormFieldValidationError(M,X);if(oe){lt("error"),Z(oe);return}lt("submitting"),Z(null);try{const xt=await fetch(G,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Vt)});if(!xt.ok){const jt=await xt.text();throw new Error(jt||`Request failed: ${xt.status}`)}lt("success"),it(Object.fromEntries(M.map(jt=>[jt.name,""])))}catch(xt){lt("error"),Z(xt instanceof Error?xt.message:"Something went wrong")}};return l.jsxs("div",{className:`${r}-wrapper ${B}`.trim(),style:Tt,children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:Rl(r)}}),l.jsxs("form",{onSubmit:$e,className:`${r}-form`,style:{...Xt,height:w.scalingValue(_,e),minHeight:w.scalingValue(_,e)},children:[l.jsx("div",{className:`${r}-inputWrap ${r}-overlayAnchor`,style:{flex:1,minWidth:0},children:M.map(vt=>l.jsx("input",{type:vt.type==="email"?"email":vt.type==="phone"?"tel":"text",name:vt.name,autoComplete:"off",value:St[vt.name]??"",onChange:Vt=>it(oe=>({...oe,[vt.name]:Vt.target.value})),placeholder:vt.placeholder,required:vt.isRequired??vt.type==="email",className:`${r}-input`,style:{...zt,paddingRight:w.scalingValue(I.right,e),paddingLeft:w.scalingValue(I.left,e),paddingTop:w.scalingValue(I.top,e),paddingBottom:w.scalingValue(I.bottom,e)}},vt.name))}),l.jsx("div",{className:`${r}-overlayAnchor`,children:l.jsx("button",{type:"submit",className:`${r}-submitBtn`,"aria-label":rt,style:{...et,...bn,paddingRight:w.scalingValue(z.right,e),paddingLeft:w.scalingValue(z.left,e),paddingTop:w.scalingValue(z.top,e),paddingBottom:w.scalingValue(z.bottom,e)},children:ot==="submitting"?"...":Y?Q&&l.jsx(ye,{url:Q,className:`${r}-submitBtnIcon`,style:{maxWidth:w.scalingValue(V??0,e)},fill:`var(--${r}-button-text-color)`,hoverFill:`var(--${r}-button-text-color)`}):tt})})]}),dt==="success"&&l.jsx("p",{className:`${r}-success`,style:{...pt},children:W}),dt==="error"&&l.jsx("p",{className:`${r}-error`,style:{...pt},role:"alert",children:J??st??A})]})},zl={strokeColor:"stroke-color",inputColor:"input-color",placeholderColor:"placeholder-color",buttonColor:"button-color",inputTextColor:"input-text-color",buttonTextColor:"button-text-color",successColor:"success-color",errorColor:"error-color"},Vl=["hover","focus","filled","success","error"],Ml=`import React, { useMemo, useState } from 'react';
934
+ `}const Wl=({settings:t,isEditor:e,metadata:n,activeEvent:o})=>{const{prefix:r}=_.useScopedStyles(),{fields:a=[{name:"email",type:"email",placeholder:"Your email"}],buttonIcon:i,buttonLabel:l,fieldsToShow:p=1,fontFamily:g,inputFontSettings:u,inputFontSize:F,inputLineHeight:S,inputLetterSpacing:f,inputWordSpacing:d,inputTextAppearance:m,buttonFontSettings:w,buttonFontSize:x,buttonLineHeight:b,buttonLetterSpacing:$,buttonWordSpacing:j,buttonTextAppearance:W,statusFontSettings:C,statusFontSize:y,statusLineHeight:L,statusLetterSpacing:h,statusWordSpacing:P,statusTextAppearance:T,iconMaxWidth:z,minHeight:k,corners:U,stroke:O,stateOverrides:v,inputPadding:I,buttonPadding:R,successMessage:E="Thanks for subscribing!",errorMessage:A="Please, fill all required fields."}=t,V=a.slice(0,Math.min(p,a.length)),[X,rt]=H.useState(()=>Object.fromEntries(V.map(ht=>[ht.name,""]))),[ot,lt]=H.useState("idle"),[M,Q]=H.useState(null),ft=o==="success"?"success":o==="error"?"error":ot,st=o==="error"?A:M,gt=o==="filled",bt=H.useMemo(()=>{if(!gt)return X;let ht=null;for(const Vt of V)(X[Vt.name]??"").trim().length>0||(ht=ht??{...X},ht[Vt.name]="Filled");return ht??X},[gt,X,V]),zt=ft==="error"?_.getFormFieldValidationError(V,bt):null,q=o&&o!=="default"?`${r}-state-${o}`:"",c=V.some(ht=>(bt[ht.name]??"").trim().length>0),N=q!==`${r}-state-filled`&&c?`${r}-state-filled`:"",B=`${q} ${N}`.trim(),Y=n==null?void 0:n.submitUrl,G=l??"",K=(i==null?void 0:i.icon)??"",J=(i==null?void 0:i.mode)==="On",nt=G||"Submit",it={fontSettings:{fontFamily:g,fontWeight:(u==null?void 0:u.fontWeight)??400,fontStyle:(u==null?void 0:u.fontStyle)??"normal"},fontSize:F??.01,lineHeight:S,letterSpacing:f??0,wordSpacing:d??0,textAppearance:m,color:t.inputTextColor??"#111111"},at={fontSettings:{fontFamily:g,fontWeight:(w==null?void 0:w.fontWeight)??400,fontStyle:(w==null?void 0:w.fontStyle)??"normal"},fontSize:x??.01,lineHeight:b,letterSpacing:$??0,wordSpacing:j??0,textAppearance:W,color:t.buttonTextColor??"#ffffff"},pt={fontSettings:{fontFamily:g,fontWeight:(C==null?void 0:C.fontWeight)??400,fontStyle:(C==null?void 0:C.fontStyle)??"normal"},fontSize:y??.01,lineHeight:L,letterSpacing:h??0,wordSpacing:P??0,textAppearance:T,color:t.successColor??"#22c55e"},Tt=he(Zt(it,e)),tt=he(Zt(at,e)),ut=he(Zt(pt,e)),St=_.buildColorVars(r,{strokeColor:t.strokeColor,inputColor:t.inputColor,placeholderColor:t.placeholderColor,buttonColor:t.buttonColor,successColor:t.successColor,errorColor:t.errorColor,inputTextColor:t.inputTextColor??(it==null?void 0:it.color)??"#111111",buttonTextColor:t.buttonTextColor??(at==null?void 0:at.color)??"#ffffff"},zl,Vl,v),Xt={borderRadius:_.scalingValue(U,e),borderWidth:_.scalingValue(O,e),borderStyle:"solid"},bn={borderLeftWidth:_.scalingValue(O,e)},$e=async ht=>{ht.preventDefault();const Vt=Object.fromEntries(V.map(xt=>{var Ht;return[xt.name,((Ht=X[xt.name])==null?void 0:Ht.trim())??""]}).filter(([,xt])=>xt));if(!Y){lt("error"),Q("No integrations were found for this form.");return}if(Object.keys(Vt).length===0)return;const oe=_.getFormFieldValidationError(V,X);if(oe){lt("error"),Q(oe);return}lt("submitting"),Q(null);try{const xt=await fetch(Y,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Vt)});if(!xt.ok){const Ht=await xt.text();throw new Error(Ht||`Request failed: ${xt.status}`)}lt("success"),rt(Object.fromEntries(V.map(Ht=>[Ht.name,""])))}catch(xt){lt("error"),Q(xt instanceof Error?xt.message:"Something went wrong")}};return s.jsxs("div",{className:`${r}-wrapper ${B}`.trim(),style:St,children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:Rl(r)}}),s.jsxs("form",{onSubmit:$e,className:`${r}-form`,style:{...Xt,height:_.scalingValue(k,e),minHeight:_.scalingValue(k,e)},children:[s.jsx("div",{className:`${r}-inputWrap ${r}-overlayAnchor`,style:{flex:1,minWidth:0},children:V.map(ht=>s.jsx("input",{type:ht.type==="email"?"email":ht.type==="phone"?"tel":"text",name:ht.name,autoComplete:"off",value:bt[ht.name]??"",onChange:Vt=>rt(oe=>({...oe,[ht.name]:Vt.target.value})),placeholder:ht.placeholder,required:ht.isRequired??ht.type==="email",className:`${r}-input`,style:{...Tt,paddingRight:_.scalingValue(I.right,e),paddingLeft:_.scalingValue(I.left,e),paddingTop:_.scalingValue(I.top,e),paddingBottom:_.scalingValue(I.bottom,e)}},ht.name))}),s.jsx("div",{className:`${r}-overlayAnchor`,children:s.jsx("button",{type:"submit",className:`${r}-submitBtn`,"aria-label":nt,style:{...tt,...bn,paddingRight:_.scalingValue(R.right,e),paddingLeft:_.scalingValue(R.left,e),paddingTop:_.scalingValue(R.top,e),paddingBottom:_.scalingValue(R.bottom,e)},children:ot==="submitting"?"...":J?K&&s.jsx(ye,{url:K,className:`${r}-submitBtnIcon`,style:{maxWidth:_.scalingValue(z??0,e)},fill:`var(--${r}-button-text-color)`,hoverFill:`var(--${r}-button-text-color)`}):G})})]}),ft==="success"&&s.jsx("p",{className:`${r}-success`,style:{...ut},children:E}),ft==="error"&&s.jsx("p",{className:`${r}-error`,style:{...ut},role:"alert",children:zt??st??A})]})},zl={strokeColor:"stroke-color",inputColor:"input-color",placeholderColor:"placeholder-color",buttonColor:"button-color",inputTextColor:"input-text-color",buttonTextColor:"button-text-color",successColor:"success-color",errorColor:"error-color"},Vl=["hover","focus","filled","success","error"],Ml=`import React, { useMemo, useState } from 'react';
935
935
  import { CommonComponentProps } from '../props';
936
936
  import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
937
937
  import { omitTextColors, textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
@@ -1503,7 +1503,7 @@ const COLOR_VAR_MAP: Record<OnelinerColorKeys, string> = {
1503
1503
  };
1504
1504
 
1505
1505
  const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
1506
- `,Nl="data:image/svg+xml,"+encodeURIComponent('<svg width="23px" height="20px" viewBox="0 0 23 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Newsletter" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Tutorials-pop-up-Copy-12" transform="translate(-43, -687)" fill="#FFFFFF" fill-rule="nonzero"><path d="M66,697 C66,697.552285 65.5522847,698 65,698 L44,698 C43.4477153,698 43,697.552285 43,697 C43,696.447715 43.4477153,696 44,696 L65,696 C65.5522847,696 66,696.447715 66,697 Z M55.6689647,687.256706 L65.6689647,696.256706 C66.1103451,696.653948 66.1103451,697.346052 65.6689647,697.743294 L55.6689647,706.743294 C55.2584547,707.112753 54.6261649,707.079475 54.2567059,706.668965 C53.8872468,706.258455 53.9205252,705.626165 54.3310353,705.256706 L63.5051529,697 L54.3310353,688.743294 C53.9205252,688.373835 53.8872468,687.741545 54.2567059,687.331035 C54.6261649,686.920525 55.2584547,686.887247 55.6689647,687.256706 Z" id="Combined-Shape"></path></g></g></svg>'),Pl=[{name:"email",type:"email",placeholder:"Enter your email",label:"Email",isRequired:!0,error:"Please, enter a valid e-mail."},{name:"name",type:"text",placeholder:"Enter your name",label:"Name",isRequired:!1,error:"Please, enter your name."},{name:"company",type:"text",placeholder:"Enter company",label:"Company",isRequired:!1,error:"Please, enter your company name."},{name:"phone",type:"phone",placeholder:"Enter your phone",label:"Phone",isRequired:!1,error:"Please, enter a valid phone number."}],_n={fontSettings:{type:"object",display:{type:"font-settings-weight",visible:!0},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},jl=["strokeColor","inputColor","inputTextColor","placeholderColor","buttonColor","buttonTextColor","successColor","errorColor"],Hl={type:"object",version:1,settings:{sizing:"auto manual",properties:{fieldsToShow:{type:"number",scope:"common",title:"Fields",display:{type:"number"},min:1,max:3},fields:{type:"array",scope:"common",display:{type:"fields-group"},items:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["text","phone","email"]},placeholder:{type:"string"},label:{type:"string"},isRequired:{type:"boolean"},error:{type:"string"}}}},buttonLabel:{type:"string",scope:"common",title:"Button Label",display:{type:"text-input"}},buttonIcon:{type:"object",scope:"common",title:"Button Icon",display:{type:"button-icon-switch"},properties:{mode:{type:"string",enum:["On","Off"]},icon:{type:["string","null"],title:"Icon",display:{type:"settings-image-input"}}}},iconMaxWidth:{type:"number",scope:"common",title:"Icon Max Width",display:{type:"full-width-input"},min:0,max:1},fontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},inputPadding:{type:"object",scope:"layout",title:"",display:{type:"padding-controls"}},buttonPadding:{type:"object",scope:"layout",title:"",display:{type:"padding-controls"}},minHeight:{type:"number",scope:"layout",title:"min Height",display:{type:"range-control"},min:0,max:200},corners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control"},min:0,max:100},stroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},strokeColor:{type:"string",scope:"common",title:"Stroke",display:{type:"palette-color-picker"}},inputColor:{type:"string",scope:"common",title:"Input Fill",display:{type:"palette-color-picker"}},inputTextColor:{type:"string",scope:"common",title:"Input Label",display:{type:"palette-color-picker"}},placeholderColor:{type:"string",scope:"common",title:"Filler Text",display:{type:"palette-color-picker"}},buttonColor:{type:"string",scope:"common",title:"Button Fill",display:{type:"palette-color-picker"}},buttonTextColor:{type:"string",scope:"common",title:"Button Label",display:{type:"palette-color-picker"}},successColor:{type:"string",scope:"common",title:"Success Message Color",display:{type:"palette-color-picker"}},errorColor:{type:"string",scope:"common",title:"Error Message Color",display:{type:"palette-color-picker"}},successMessage:{type:"string",scope:"common",title:"Success Message",display:{type:"text-input"}},errorMessage:{type:"string",scope:"common",title:"Error Message",display:{type:"text-input"}},stateOverrides:{type:"object",scope:"common"},inputFontSettings:{..._n.fontSettings,scope:"common",title:"Input"},inputFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},inputLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},inputLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},inputWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},inputTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}},buttonFontSettings:{..._n.fontSettings,scope:"common",title:"Button"},buttonFontSize:{type:"number",scope:"layout",title:"Button Font Size",display:{type:"font-size"}},buttonLineHeight:{type:"number",scope:"layout",title:"Button Line Height",display:{type:"line-height-input"}},buttonLetterSpacing:{type:"number",scope:"layout",title:"Button Letter Spacing",display:{type:"letter-spacing-input"}},buttonWordSpacing:{type:"number",scope:"layout",title:"Button Word Spacing",display:{type:"word-spacing-input"}},buttonTextAppearance:{type:"object",scope:"layout",title:"Button Text Appearance",display:{type:"text-appearance"}},statusFontSettings:{..._n.fontSettings,scope:"common",title:"Success/Error"},statusFontSize:{type:"number",scope:"layout",title:"Success/Error Font Size",display:{type:"font-size"}},statusLineHeight:{type:"number",scope:"layout",title:"Success/Error Line Height",display:{type:"line-height-input"}},statusLetterSpacing:{type:"number",scope:"layout",title:"Success/Error Letter Spacing",display:{type:"letter-spacing-input"}},statusWordSpacing:{type:"number",scope:"layout",title:"Success/Error Word Spacing",display:{type:"word-spacing-input"}},statusTextAppearance:{type:"object",scope:"layout",title:"Success/Error Text Appearance",display:{type:"text-appearance"}}},defaults:{fields:Pl,fieldsToShow:1,buttonLabel:"Subscribe",buttonIcon:{mode:"Off",icon:Nl},fontFamily:"Arial",strokeColor:"#0A00F8",inputColor:"#ffffff",inputTextColor:"#0A00F8",placeholderColor:"#000000",buttonColor:"#0088D7",buttonTextColor:"#ffffff",errorColor:"#ef4444",successColor:"#22c55e",successMessage:"Thanks for subscribing!",errorMessage:"Please, fill all required fields.",stateOverrides:{hover:{buttonColor:"#33A2F2"}},inputFontSettings:{fontWeight:400,fontStyle:"normal"},inputLetterSpacing:0,inputWordSpacing:0,inputTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},buttonFontSettings:{fontWeight:400,fontStyle:"normal"},buttonLetterSpacing:0,buttonWordSpacing:0,buttonTextAppearance:{textTransform:"uppercase",textDecoration:"none",fontVariant:"normal"},statusFontSettings:{fontWeight:400,fontStyle:"normal"},statusLetterSpacing:0,statusWordSpacing:0,statusTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}},layoutDefaults:{m:{minHeight:.1,iconMaxWidth:.1,stroke:0,corners:0,buttonPadding:{top:.02,right:.04,bottom:.02,left:.04},inputPadding:{top:.01,right:.03,bottom:.01,left:.03},inputFontSize:.043,inputLineHeight:.043,buttonFontSize:.0373,buttonLineHeight:.0373,statusFontSize:.0373,statusLineHeight:.0373},d:{minHeight:.028,iconMaxWidth:.028,stroke:0,corners:0,buttonPadding:{right:.0175,left:.0175,top:.005,bottom:.004},inputPadding:{top:.01,right:.01,bottom:.01,left:.01},inputFontSize:.01,inputLineHeight:.01,buttonFontSize:.009,buttonLineHeight:.01,statusFontSize:.01,statusLineHeight:.01}},displayRules:[{if:{name:"stroke",value:0},then:{name:"properties.strokeColor.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonFontSettings.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonFontSize.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonLineHeight.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonLetterSpacing.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonWordSpacing.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonTextAppearance.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"Off"},then:{name:"properties.iconMaxWidth.display.visible",value:!1}}]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","fieldsToShow"]},{type:"row",items:["minHeight","corners"]},{type:"row",items:[{type:"group",title:"",items:["stroke","buttonIcon"]},{type:"switcher",title:"Padding",options:{Input:["inputPadding"],Button:["buttonPadding"]}}]},"iconMaxWidth"]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["fontFamily",{type:"group",title:"",items:["inputFontSettings",{type:"row",items:["inputFontSize","inputLineHeight","inputLetterSpacing","inputWordSpacing"]},"inputTextAppearance"]},{type:"group",title:"",items:["buttonFontSettings",{type:"row",items:["buttonFontSize","buttonLineHeight","buttonLetterSpacing","buttonWordSpacing"]},"buttonTextAppearance"]},{type:"group",title:"",items:["statusFontSettings",{type:"row",items:["statusFontSize","statusLineHeight","statusLetterSpacing","statusWordSpacing"]},"statusTextAppearance"]}]},{id:"fields",icon:"layers",title:"Fields",tooltip:"Fields",layout:["fields","buttonLabel","successMessage","errorMessage"]}],paletteBookmark:{items:[...jl],panelIds:["general","typeStyle"],stateItems:{default:["strokeColor","placeholderColor","inputColor","buttonTextColor","buttonColor"],hover:["strokeColor","inputColor","buttonTextColor","buttonColor"],focus:["strokeColor","inputTextColor","buttonTextColor","buttonColor"],filled:["strokeColor","inputColor","inputTextColor","buttonTextColor"],success:["successColor"],error:["errorColor"]}},allowedPlugins:["newsletter"],states:["default","hover","focus","filled","success","error"]},Ol={element:Wl,id:"oneliner-form",name:"Newsletter Single Line",category:"forms",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/onelinerImg.jpg"},defaultSize:{width:400,height:60},assetsPaths:{content:[],parameters:[{path:"buttonIcon.icon"}]},schema:Hl,sourceCode:Ml},Bl="Testimonials-module__marqueeWrapper___CwgXx",Dl="Testimonials-module__marqueeTrack___0eRvh",Ul="Testimonials-module__marqueeSet___Zz-mH",ql="Testimonials-module__wrapper___MSG51",Gl="Testimonials-module__cover___8N6A3",Yl="Testimonials-module__elementsOverlay___ar14y",Xl="Testimonials-module__image___fqDvN",Kl="Testimonials-module__control___ORbH3",Ft={marqueeWrapper:Bl,marqueeTrack:Dl,marqueeSet:Ul,wrapper:ql,cover:Gl,elementsOverlay:Yl,image:Xl,control:Kl},Zl=30,Jl=t=>{if(typeof t=="number")return t;const e=parseFloat(String(t??""));return Number.isFinite(e)?e:0},Ql=t=>({fontSettings:{...t.fontSettings},letterSpacing:t.letterSpacing,wordSpacing:t.wordSpacing,fontSize:t.fontSizeLineHeight.fontSize,lineHeight:t.fontSizeLineHeight.lineHeight,textAppearance:t.textAppearance,color:t.color}),ts=({settings:t,content:e,isEditor:n})=>{const{autoplay:o,align:r,speed:a,direction:i,pauseOnHover:p,gap:s,cardWidth:f,cardHeight:u,corners:F,stroke:S,strokeColor:y,bgColor:d,padding:g,logoMarginTop:$,logoWidth:b,textMarginTop:v,textMinHeight:C,captionMarginTop:H}=t,E=o==="on",T=Math.max(0,Jl(a))*Zl,c=J=>w.scalingValue(J,n??!1),k=j.useRef(null),L=j.useRef(null),P=j.useRef(null),[x,V]=j.useState(0),[_,U]=j.useState(0),q=j.useRef(0),h=j.useRef(!1),I=j.useRef(null),z=j.useRef(i),W=E&&p==="on",A=j.useMemo(()=>typeof i=="boolean"?i?"right":"left":String(i??"").trim().toLowerCase()==="right"?"right":"left",[i]),M=J=>{var et;const R=(et=t==null?void 0:t.styles)==null?void 0:et[J];if(R)return R;const m=J==="text"?"text":"caption",O=t==null?void 0:t[`${m}FontFamily`],B=t==null?void 0:t[`${m}FontSettings`],G=t==null?void 0:t[`${m}LetterSpacing`],tt=t==null?void 0:t[`${m}WordSpacing`],Q=t==null?void 0:t[`${m}TextAlign`],Y=t==null?void 0:t[`${m}TextAppearance`],rt=(t==null?void 0:t[`${m}Color`])??(J==="text"?t==null?void 0:t.imageCaptionColor:void 0),gt=t==null?void 0:t[`${m}FontSize`],at=t==null?void 0:t[`${m}LineHeight`];return typeof O=="string"||!!B||typeof G=="number"||typeof tt=="number"||typeof Q=="string"||!!Y||typeof rt=="string"||typeof gt=="number"||typeof at=="number"?{widthSettings:{width:.13,sizing:"manual"},fontSettings:{fontFamily:typeof O=="string"?O:"Arial",fontWeight:typeof(B==null?void 0:B.fontWeight)=="number"?B.fontWeight:400,fontStyle:typeof(B==null?void 0:B.fontStyle)=="string"?B.fontStyle:"normal"},letterSpacing:typeof G=="number"?G:0,wordSpacing:typeof tt=="number"?tt:0,textAlign:Q==="left"||Q==="center"||Q==="right"?Q:"left",fontSizeLineHeight:{fontSize:typeof gt=="number"?gt:.01,lineHeight:typeof at=="number"?at:.01},textAppearance:{textTransform:(Y==null?void 0:Y.textTransform)??"none",textDecoration:(Y==null?void 0:Y.textDecoration)??"none",fontVariant:(Y==null?void 0:Y.fontVariant)??"normal"},color:typeof rt=="string"?rt:"#000000"}:void 0},X=M("text"),it=M("caption"),ot=j.useMemo(()=>!E||(e==null?void 0:e.length)===0?1:_<=0||x<=0?2:Math.max(2,Math.ceil(x/_)+1),[E,e==null?void 0:e.length,_,x]);j.useLayoutEffect(()=>{if(!E)return;const J=k.current,R=P.current;if(!J||!R)return;let m=0;const O=()=>{V(J.getBoundingClientRect().width),U(R.getBoundingClientRect().width)},B=()=>{cancelAnimationFrame(m),m=requestAnimationFrame(O)};B();const G=new ResizeObserver(B);return G.observe(J),G.observe(R),()=>{cancelAnimationFrame(m),G.disconnect()}},[E,e==null?void 0:e.length]),j.useLayoutEffect(()=>{const J=L.current;if(!E||!J)return;if(_<=0||T<=0){J.style.transform="translate3d(0, 0, 0)";return}z.current!==i&&(q.current=1-q.current,z.current=i);const R=_/T*1e3,m=A==="left"?-_:0,O=A==="left"?0:-_,B=J.animate([{transform:`translate3d(${m}px, 0, 0)`},{transform:`translate3d(${O}px, 0, 0)`}],{duration:R,iterations:1/0,easing:"linear"});return B.currentTime=q.current*R,h.current&&B.pause(),I.current=B,()=>{const G=typeof B.currentTime=="number"?B.currentTime:0;q.current=R>0?G/R%1:0,B.cancel(),I.current===B&&(I.current=null)}},[E,_,T,i]);const lt=()=>{var J;W&&(h.current=!0,(J=I.current)==null||J.pause())},N=()=>{var J;W&&(h.current=!1,(J=I.current)==null||J.play())},Z=j.useMemo(()=>{switch(r){case"center":return"center";case"end":return"flex-end";case"start":default:return"flex-start"}},[r]),dt=j.useMemo(()=>{switch(r){case"center":return"center";case"end":return"right";case"start":default:return"left"}},[r]),st=(J,R,m,O,B,G,tt)=>l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:Z,width:"100%"},children:[l.jsx("div",{"data-controls":O,className:Ft.control,style:{width:"100%",height:c(G)}}),l.jsx("div",{"data-styles":m,className:Ft.caption,style:{...Zt(Ql(J),n),textAlign:dt,pointerEvents:"auto",...tt?{minHeight:c(tt)}:{}},children:l.jsx(Ve,{content:R})})]},B),ft=(J,R)=>{var m,O,B,G;return l.jsxs("div",{style:{padding:`${c(g.top)} ${c(g.right)} ${c(g.bottom)} ${c(g.left)}`,width:c(f+S*2),minHeight:c(u),height:"100%",borderRadius:c(F),border:`${c(S)} solid ${y}`,boxSizing:"border-box",position:"relative",overflow:"hidden"},children:[((m=J.image)==null?void 0:m.url)&&l.jsx("img",{className:Ft.image,src:J.image.url,alt:J.image.name,style:{objectFit:J.image.objectFit||"cover",borderRadius:c(F),height:c(u)}}),l.jsx("div",{className:Ft.cover,style:{background:d,height:"100%"}}),l.jsxs("div",{className:Ft.elementsOverlay,style:{display:"flex",flexDirection:"column",pointerEvents:"none",alignItems:Z,textAlign:dt},children:[X&&st(X,J.text,"text","textMarginTop","text",v,C),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:Z,width:"100%"},children:[l.jsx("div",{"data-controls":"logoMarginTop",className:Ft.control,style:{width:"100%",height:c($)}}),l.jsx("div",{style:{width:c(b)},children:l.jsx("img",{src:(O=J.logo)==null?void 0:O.url,alt:(B=J.logo)==null?void 0:B.name,style:{pointerEvents:"auto",width:"100%",height:"100%",objectFit:((G=J.logo)==null?void 0:G.objectFit)||"cover"}})})]},"logo"),it&&st(it,J.caption,"caption","captionMarginTop","caption",H)]})]},R)},St=(J,R,m)=>l.jsxs("div",{style:{position:"relative",flex:"0 0 auto",height:"100%"},children:[ft(J,`card-${R}`),n&&!m&&l.jsx("div",{"data-controls":"gap","data-controls-axis":"x",style:{position:"absolute",top:0,right:`calc(-1 * ${c(s)})`,width:c(s),height:"100%",pointerEvents:"auto",zIndex:2}})]},R);return E&&(e!=null&&e.length)&&e.length>0?l.jsx("div",{ref:k,className:mt(Ft.wrapper,Ft.marqueeWrapper),"aria-label":"Testimonials",children:l.jsx("div",{ref:L,className:Ft.marqueeTrack,onMouseEnter:lt,onMouseLeave:N,children:Array.from({length:ot},(J,R)=>l.jsx("div",{ref:R===0?P:void 0,className:Ft.marqueeSet,style:{gap:c(s),paddingRight:c(s)},"aria-hidden":R>0,children:e==null?void 0:e.map((m,O)=>St(m,`${R}-${O}`,O===((e==null?void 0:e.length)??0)-1))},`set-${R}`))})}):l.jsx("div",{className:Ft.wrapper,children:l.jsx("div",{style:{display:"flex",flexDirection:"row",gap:c(s),justifyContent:"center",overflowX:"auto"},"aria-label":"Testimonials",children:e==null?void 0:e.map((J,R)=>St(J,R,R===((e==null?void 0:e.length)??0)-1))})})},es=`import { useLayoutEffect, useMemo, useRef, useState } from 'react';
1506
+ `,Nl="data:image/svg+xml,"+encodeURIComponent('<svg width="23px" height="20px" viewBox="0 0 23 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Newsletter" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Tutorials-pop-up-Copy-12" transform="translate(-43, -687)" fill="#FFFFFF" fill-rule="nonzero"><path d="M66,697 C66,697.552285 65.5522847,698 65,698 L44,698 C43.4477153,698 43,697.552285 43,697 C43,696.447715 43.4477153,696 44,696 L65,696 C65.5522847,696 66,696.447715 66,697 Z M55.6689647,687.256706 L65.6689647,696.256706 C66.1103451,696.653948 66.1103451,697.346052 65.6689647,697.743294 L55.6689647,706.743294 C55.2584547,707.112753 54.6261649,707.079475 54.2567059,706.668965 C53.8872468,706.258455 53.9205252,705.626165 54.3310353,705.256706 L63.5051529,697 L54.3310353,688.743294 C53.9205252,688.373835 53.8872468,687.741545 54.2567059,687.331035 C54.6261649,686.920525 55.2584547,686.887247 55.6689647,687.256706 Z" id="Combined-Shape"></path></g></g></svg>'),Pl=[{name:"email",type:"email",placeholder:"Enter your email",label:"Email",isRequired:!0,error:"Please, enter a valid e-mail."},{name:"name",type:"text",placeholder:"Enter your name",label:"Name",isRequired:!1,error:"Please, enter your name."},{name:"company",type:"text",placeholder:"Enter company",label:"Company",isRequired:!1,error:"Please, enter your company name."},{name:"phone",type:"phone",placeholder:"Enter your phone",label:"Phone",isRequired:!1,error:"Please, enter a valid phone number."}],_n={fontSettings:{type:"object",display:{type:"font-settings-weight",visible:!0},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},Hl=["strokeColor","inputColor","inputTextColor","placeholderColor","buttonColor","buttonTextColor","successColor","errorColor"],jl={type:"object",version:1,settings:{sizing:"auto manual",properties:{fieldsToShow:{type:"number",scope:"common",title:"Fields",display:{type:"number"},min:1,max:3},fields:{type:"array",scope:"common",display:{type:"fields-group"},items:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["text","phone","email"]},placeholder:{type:"string"},label:{type:"string"},isRequired:{type:"boolean"},error:{type:"string"}}}},buttonLabel:{type:"string",scope:"common",title:"Button Label",display:{type:"text-input"}},buttonIcon:{type:"object",scope:"common",title:"Button Icon",display:{type:"button-icon-switch"},properties:{mode:{type:"string",enum:["On","Off"]},icon:{type:["string","null"],title:"Icon",display:{type:"settings-image-input"}}}},iconMaxWidth:{type:"number",scope:"common",title:"Icon Max Width",display:{type:"full-width-input"},min:0,max:1},fontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},inputPadding:{type:"object",scope:"layout",title:"",display:{type:"padding-controls"}},buttonPadding:{type:"object",scope:"layout",title:"",display:{type:"padding-controls"}},minHeight:{type:"number",scope:"layout",title:"min Height",display:{type:"range-control"},min:0,max:200},corners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control"},min:0,max:100},stroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},strokeColor:{type:"string",scope:"common",title:"Stroke",display:{type:"palette-color-picker"}},inputColor:{type:"string",scope:"common",title:"Input Fill",display:{type:"palette-color-picker"}},inputTextColor:{type:"string",scope:"common",title:"Input Label",display:{type:"palette-color-picker"}},placeholderColor:{type:"string",scope:"common",title:"Filler Text",display:{type:"palette-color-picker"}},buttonColor:{type:"string",scope:"common",title:"Button Fill",display:{type:"palette-color-picker"}},buttonTextColor:{type:"string",scope:"common",title:"Button Label",display:{type:"palette-color-picker"}},successColor:{type:"string",scope:"common",title:"Success Message Color",display:{type:"palette-color-picker"}},errorColor:{type:"string",scope:"common",title:"Error Message Color",display:{type:"palette-color-picker"}},successMessage:{type:"string",scope:"common",title:"Success Message",display:{type:"text-input"}},errorMessage:{type:"string",scope:"common",title:"Error Message",display:{type:"text-input"}},stateOverrides:{type:"object",scope:"common"},inputFontSettings:{..._n.fontSettings,scope:"common",title:"Input"},inputFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},inputLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},inputLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},inputWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},inputTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}},buttonFontSettings:{..._n.fontSettings,scope:"common",title:"Button"},buttonFontSize:{type:"number",scope:"layout",title:"Button Font Size",display:{type:"font-size"}},buttonLineHeight:{type:"number",scope:"layout",title:"Button Line Height",display:{type:"line-height-input"}},buttonLetterSpacing:{type:"number",scope:"layout",title:"Button Letter Spacing",display:{type:"letter-spacing-input"}},buttonWordSpacing:{type:"number",scope:"layout",title:"Button Word Spacing",display:{type:"word-spacing-input"}},buttonTextAppearance:{type:"object",scope:"layout",title:"Button Text Appearance",display:{type:"text-appearance"}},statusFontSettings:{..._n.fontSettings,scope:"common",title:"Success/Error"},statusFontSize:{type:"number",scope:"layout",title:"Success/Error Font Size",display:{type:"font-size"}},statusLineHeight:{type:"number",scope:"layout",title:"Success/Error Line Height",display:{type:"line-height-input"}},statusLetterSpacing:{type:"number",scope:"layout",title:"Success/Error Letter Spacing",display:{type:"letter-spacing-input"}},statusWordSpacing:{type:"number",scope:"layout",title:"Success/Error Word Spacing",display:{type:"word-spacing-input"}},statusTextAppearance:{type:"object",scope:"layout",title:"Success/Error Text Appearance",display:{type:"text-appearance"}}},defaults:{fields:Pl,fieldsToShow:1,buttonLabel:"Subscribe",buttonIcon:{mode:"Off",icon:Nl},fontFamily:"Arial",strokeColor:"#0A00F8",inputColor:"#ffffff",inputTextColor:"#0A00F8",placeholderColor:"#000000",buttonColor:"#0088D7",buttonTextColor:"#ffffff",errorColor:"#ef4444",successColor:"#22c55e",successMessage:"Thanks for subscribing!",errorMessage:"Please, fill all required fields.",stateOverrides:{hover:{buttonColor:"#33A2F2"}},inputFontSettings:{fontWeight:400,fontStyle:"normal"},inputLetterSpacing:0,inputWordSpacing:0,inputTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},buttonFontSettings:{fontWeight:400,fontStyle:"normal"},buttonLetterSpacing:0,buttonWordSpacing:0,buttonTextAppearance:{textTransform:"uppercase",textDecoration:"none",fontVariant:"normal"},statusFontSettings:{fontWeight:400,fontStyle:"normal"},statusLetterSpacing:0,statusWordSpacing:0,statusTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}},layoutDefaults:{m:{minHeight:.1,iconMaxWidth:.1,stroke:0,corners:0,buttonPadding:{top:.02,right:.04,bottom:.02,left:.04},inputPadding:{top:.01,right:.03,bottom:.01,left:.03},inputFontSize:.043,inputLineHeight:.043,buttonFontSize:.0373,buttonLineHeight:.0373,statusFontSize:.0373,statusLineHeight:.0373},d:{minHeight:.028,iconMaxWidth:.028,stroke:0,corners:0,buttonPadding:{right:.0175,left:.0175,top:.005,bottom:.004},inputPadding:{top:.01,right:.01,bottom:.01,left:.01},inputFontSize:.01,inputLineHeight:.01,buttonFontSize:.009,buttonLineHeight:.01,statusFontSize:.01,statusLineHeight:.01}},displayRules:[{if:{name:"stroke",value:0},then:{name:"properties.strokeColor.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonFontSettings.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonFontSize.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonLineHeight.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonLetterSpacing.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonWordSpacing.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonTextAppearance.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"Off"},then:{name:"properties.iconMaxWidth.display.visible",value:!1}}]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","fieldsToShow"]},{type:"row",items:["minHeight","corners"]},{type:"row",items:[{type:"group",title:"",items:["stroke","buttonIcon"]},{type:"switcher",title:"Padding",options:{Input:["inputPadding"],Button:["buttonPadding"]}}]},"iconMaxWidth"]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["fontFamily",{type:"group",title:"",items:["inputFontSettings",{type:"row",items:["inputFontSize","inputLineHeight","inputLetterSpacing","inputWordSpacing"]},"inputTextAppearance"]},{type:"group",title:"",items:["buttonFontSettings",{type:"row",items:["buttonFontSize","buttonLineHeight","buttonLetterSpacing","buttonWordSpacing"]},"buttonTextAppearance"]},{type:"group",title:"",items:["statusFontSettings",{type:"row",items:["statusFontSize","statusLineHeight","statusLetterSpacing","statusWordSpacing"]},"statusTextAppearance"]}]},{id:"fields",icon:"layers",title:"Fields",tooltip:"Fields",layout:["fields","buttonLabel","successMessage","errorMessage"]}],paletteBookmark:{items:[...Hl],panelIds:["general","typeStyle"],stateItems:{default:["strokeColor","placeholderColor","inputColor","buttonTextColor","buttonColor"],hover:["strokeColor","inputColor","buttonTextColor","buttonColor"],focus:["strokeColor","inputTextColor","buttonTextColor","buttonColor"],filled:["strokeColor","inputColor","inputTextColor","buttonTextColor"],success:["successColor"],error:["errorColor"]}},allowedPlugins:["newsletter"],states:["default","hover","focus","filled","success","error"]},Ol={element:Wl,id:"oneliner-form",name:"Newsletter Single Line",category:"forms",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/onelinerImg.jpg"},defaultSize:{width:400,height:60},assetsPaths:{content:[],parameters:[{path:"buttonIcon.icon"}]},schema:jl,sourceCode:Ml},Bl="Testimonials-module__marqueeWrapper___CwgXx",Dl="Testimonials-module__marqueeTrack___0eRvh",Ul="Testimonials-module__marqueeSet___Zz-mH",ql="Testimonials-module__wrapper___MSG51",Gl="Testimonials-module__cover___8N6A3",Yl="Testimonials-module__elementsOverlay___ar14y",Xl="Testimonials-module__image___fqDvN",Kl="Testimonials-module__control___ORbH3",Ft={marqueeWrapper:Bl,marqueeTrack:Dl,marqueeSet:Ul,wrapper:ql,cover:Gl,elementsOverlay:Yl,image:Xl,control:Kl},Zl=30,Jl=t=>{if(typeof t=="number")return t;const e=parseFloat(String(t??""));return Number.isFinite(e)?e:0},Ql=t=>({fontSettings:{...t.fontSettings},letterSpacing:t.letterSpacing,wordSpacing:t.wordSpacing,fontSize:t.fontSizeLineHeight.fontSize,lineHeight:t.fontSizeLineHeight.lineHeight,textAppearance:t.textAppearance,color:t.color}),ts=({settings:t,content:e,isEditor:n,isPreviewMode:o})=>{const{autoplay:r,align:a,speed:i,direction:l,pauseOnHover:p,gap:g,cardWidth:u,cardHeight:F,corners:S,stroke:f,strokeColor:d,bgColor:m,padding:w,logoMarginTop:x,logoWidth:b,textMarginTop:$,textMinHeight:j,captionMarginTop:W}=t,C=r==="on",y=C&&!o,L=Math.max(0,Jl(i))*Zl,h=c=>_.scalingValue(c,n??!1),P=H.useRef(null),T=H.useRef(null),z=H.useRef(null),[k,U]=H.useState(0),[O,v]=H.useState(0),I=H.useRef(0),R=H.useRef(!1),E=H.useRef(null),A=H.useRef(l),V=y&&p==="on",X=H.useMemo(()=>typeof l=="boolean"?l?"right":"left":String(l??"").trim().toLowerCase()==="right"?"right":"left",[l]),rt=c=>{var St;const N=(St=t==null?void 0:t.styles)==null?void 0:St[c];if(N)return N;const B=c==="text"?"text":"caption",Y=t==null?void 0:t[`${B}FontFamily`],G=t==null?void 0:t[`${B}FontSettings`],K=t==null?void 0:t[`${B}LetterSpacing`],J=t==null?void 0:t[`${B}WordSpacing`],nt=t==null?void 0:t[`${B}TextAlign`],it=t==null?void 0:t[`${B}TextAppearance`],at=(t==null?void 0:t[`${B}Color`])??(c==="text"?t==null?void 0:t.imageCaptionColor:void 0),pt=t==null?void 0:t[`${B}FontSize`],Tt=t==null?void 0:t[`${B}LineHeight`];return typeof Y=="string"||!!G||typeof K=="number"||typeof J=="number"||typeof nt=="string"||!!it||typeof at=="string"||typeof pt=="number"||typeof Tt=="number"?{widthSettings:{width:.13,sizing:"manual"},fontSettings:{fontFamily:typeof Y=="string"?Y:"Arial",fontWeight:typeof(G==null?void 0:G.fontWeight)=="number"?G.fontWeight:400,fontStyle:typeof(G==null?void 0:G.fontStyle)=="string"?G.fontStyle:"normal"},letterSpacing:typeof K=="number"?K:0,wordSpacing:typeof J=="number"?J:0,textAlign:nt==="left"||nt==="center"||nt==="right"?nt:"left",fontSizeLineHeight:{fontSize:typeof pt=="number"?pt:.01,lineHeight:typeof Tt=="number"?Tt:.01},textAppearance:{textTransform:(it==null?void 0:it.textTransform)??"none",textDecoration:(it==null?void 0:it.textDecoration)??"none",fontVariant:(it==null?void 0:it.fontVariant)??"normal"},color:typeof at=="string"?at:"#000000"}:void 0},ot=rt("text"),lt=rt("caption"),M=H.useMemo(()=>!C||(e==null?void 0:e.length)===0?1:O<=0||k<=0?2:Math.max(2,Math.ceil(k/O)+1),[C,e==null?void 0:e.length,O,k]);H.useLayoutEffect(()=>{if(!C)return;const c=P.current,N=z.current;if(!c||!N)return;let B=0;const Y=()=>{U(c.getBoundingClientRect().width),v(N.getBoundingClientRect().width)},G=()=>{cancelAnimationFrame(B),B=requestAnimationFrame(Y)};G();const K=new ResizeObserver(G);return K.observe(c),K.observe(N),()=>{cancelAnimationFrame(B),K.disconnect()}},[C,e==null?void 0:e.length]),H.useLayoutEffect(()=>{const c=T.current;if(!C||!c||!y)return;if(O<=0||L<=0){c.style.transform="translate3d(0, 0, 0)";return}A.current!==l&&(I.current=1-I.current,A.current=l);const N=O/L*1e3,B=X==="left"?-O:0,Y=X==="left"?0:-O,G=c.animate([{transform:`translate3d(${B}px, 0, 0)`},{transform:`translate3d(${Y}px, 0, 0)`}],{duration:N,iterations:1/0,easing:"linear"});return G.currentTime=I.current*N,R.current&&G.pause(),E.current=G,()=>{const K=typeof G.currentTime=="number"?G.currentTime:0;I.current=N>0?K/N%1:0,G.cancel(),E.current===G&&(E.current=null)}},[C,y,O,L,l]);const Q=()=>{var c;V&&(R.current=!0,(c=E.current)==null||c.pause())},ft=()=>{var c;V&&(R.current=!1,(c=E.current)==null||c.play())},st=H.useMemo(()=>{switch(a){case"center":return"center";case"end":return"flex-end";case"start":default:return"flex-start"}},[a]),gt=H.useMemo(()=>{switch(a){case"center":return"center";case"end":return"right";case"start":default:return"left"}},[a]),bt=(c,N,B,Y,G,K,J)=>s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:st,width:"100%"},children:[s.jsx("div",{"data-controls":Y,className:Ft.control,style:{width:"100%",height:h(K)}}),s.jsx("div",{"data-styles":B,className:Ft.caption,style:{...Zt(Ql(c),n),textAlign:gt,pointerEvents:"auto",...J?{minHeight:h(J)}:{}},children:s.jsx(Ve,{content:N})})]},G),zt=(c,N)=>{var B,Y,G,K;return s.jsxs("div",{style:{padding:`${h(w.top)} ${h(w.right)} ${h(w.bottom)} ${h(w.left)}`,width:h(u+f*2),minHeight:h(F),height:"100%",borderRadius:h(S),border:`${h(f)} solid ${d}`,boxSizing:"border-box",position:"relative",overflow:"hidden"},children:[((B=c.image)==null?void 0:B.url)&&s.jsx("img",{className:Ft.image,src:c.image.url,alt:c.image.name,style:{objectFit:c.image.objectFit||"cover",borderRadius:h(S),height:h(F)}}),s.jsx("div",{className:Ft.cover,style:{background:m,height:"100%"}}),s.jsxs("div",{className:Ft.elementsOverlay,style:{display:"flex",flexDirection:"column",pointerEvents:"none",alignItems:st,textAlign:gt},children:[ot&&bt(ot,c.text,"text","textMarginTop","text",$,j),s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:st,width:"100%"},children:[s.jsx("div",{"data-controls":"logoMarginTop",className:Ft.control,style:{width:"100%",height:h(x)}}),s.jsx("div",{style:{width:h(b)},children:s.jsx("img",{src:(Y=c.logo)==null?void 0:Y.url,alt:(G=c.logo)==null?void 0:G.name,style:{pointerEvents:"auto",width:"100%",height:"100%",objectFit:((K=c.logo)==null?void 0:K.objectFit)||"cover"}})})]},"logo"),lt&&bt(lt,c.caption,"caption","captionMarginTop","caption",W)]})]},N)},q=(c,N,B)=>s.jsxs("div",{style:{position:"relative",flex:"0 0 auto",height:"100%"},children:[zt(c,`card-${N}`),n&&!B&&s.jsx("div",{"data-controls":"gap","data-controls-axis":"x",style:{position:"absolute",top:0,right:`calc(-1 * ${h(g)})`,width:h(g),height:"100%",pointerEvents:"auto",zIndex:2}})]},N);return C&&(e!=null&&e.length)&&e.length>0?s.jsx("div",{ref:P,className:mt(Ft.wrapper,Ft.marqueeWrapper),"aria-label":"Testimonials",children:s.jsx("div",{ref:T,className:Ft.marqueeTrack,onMouseEnter:Q,onMouseLeave:ft,children:Array.from({length:M},(c,N)=>s.jsx("div",{ref:N===0?z:void 0,className:Ft.marqueeSet,style:{gap:h(g),paddingRight:h(g)},"aria-hidden":N>0,children:e==null?void 0:e.map((B,Y)=>q(B,`${N}-${Y}`,Y===((e==null?void 0:e.length)??0)-1))},`set-${N}`))})}):s.jsx("div",{className:Ft.wrapper,children:s.jsx("div",{style:{display:"flex",flexDirection:"row",gap:h(g),justifyContent:"center",overflowX:"auto"},"aria-label":"Testimonials",children:e==null?void 0:e.map((c,N)=>q(c,N,N===((e==null?void 0:e.length)??0)-1))})})},es=`import { useLayoutEffect, useMemo, useRef, useState } from 'react';
1507
1507
  import cn from 'classnames';
1508
1508
  import classes from './Testimonials.module.scss';
1509
1509
  import { CommonComponentProps } from '../props';
@@ -1515,6 +1515,7 @@ type TestimonialsProps = {
1515
1515
  settings: TestimonialsSettings;
1516
1516
  content?: TestimonialsItem[];
1517
1517
  isEditor?: boolean;
1518
+ isPreviewMode?: boolean;
1518
1519
  } & CommonComponentProps;
1519
1520
 
1520
1521
  type CaptionStyleFromFlatSettings = {
@@ -1560,9 +1561,10 @@ const resolveCaptionTextStyles = (caption: CaptionStyles): TextStyles => ({
1560
1561
  color: caption.color,
1561
1562
  });
1562
1563
 
1563
- export const Testimonials = ({ settings, content, isEditor }: TestimonialsProps) => {
1564
+ export const Testimonials = ({ settings, content, isEditor, isPreviewMode }: TestimonialsProps) => {
1564
1565
  const { autoplay, align, speed, direction, pauseOnHover, gap, cardWidth, cardHeight, corners, stroke, strokeColor, bgColor, padding, logoMarginTop, logoWidth, textMarginTop, textMinHeight, captionMarginTop } = settings;
1565
1566
  const isAutoplay = autoplay === 'on';
1567
+ const isAnimating = isAutoplay && !isPreviewMode;
1566
1568
  const pxPerSec = Math.max(0, parseSpeed(speed)) * PX_PER_SEC_PER_SPEED_UNIT;
1567
1569
  const scaled = (v: number) => scalingValue(v, isEditor ?? false);
1568
1570
  const wrapperRef = useRef<HTMLDivElement | null>(null);
@@ -1574,7 +1576,7 @@ export const Testimonials = ({ settings, content, isEditor }: TestimonialsProps)
1574
1576
  const hoveringRef = useRef(false);
1575
1577
  const animRef = useRef<Animation | null>(null);
1576
1578
  const lastDirectionRef = useRef(direction);
1577
- const hoverPauseEnabled = isAutoplay && pauseOnHover === 'on';
1579
+ const hoverPauseEnabled = isAnimating && pauseOnHover === 'on';
1578
1580
 
1579
1581
  const normalizedDirection = useMemo<'left' | 'right'>(() => {
1580
1582
  if (typeof direction === 'boolean') return direction ? 'right' : 'left';
@@ -1671,7 +1673,7 @@ export const Testimonials = ({ settings, content, isEditor }: TestimonialsProps)
1671
1673
 
1672
1674
  useLayoutEffect(() => {
1673
1675
  const track = trackRef.current;
1674
- if (!isAutoplay || !track) return;
1676
+ if (!isAutoplay || !track || !isAnimating) return;
1675
1677
  if (setWidth <= 0 || pxPerSec <= 0) {
1676
1678
  track.style.transform = 'translate3d(0, 0, 0)';
1677
1679
  return;
@@ -1697,7 +1699,7 @@ export const Testimonials = ({ settings, content, isEditor }: TestimonialsProps)
1697
1699
  anim.cancel();
1698
1700
  if (animRef.current === anim) animRef.current = null;
1699
1701
  };
1700
- }, [isAutoplay, setWidth, pxPerSec, direction]);
1702
+ }, [isAutoplay, isAnimating, setWidth, pxPerSec, direction]);
1701
1703
 
1702
1704
  const onTrackEnter = () => {
1703
1705
  if (!hoverPauseEnabled) return;
@@ -1990,7 +1992,7 @@ type TestimonialsStyles = {
1990
1992
  text: CaptionStyles;
1991
1993
  caption: CaptionStyles;
1992
1994
  };
1993
- `,Ao={fontSettings:{type:"object",scope:"common",display:{type:"font-settings"},properties:{fontWeight:{type:"number",scope:"common"},fontStyle:{type:"string",scope:"common"}}}},ns={type:"object",version:1,settings:{sizing:"auto manual",properties:{autoplay:{type:"string",scope:"common",title:"Autoplay",display:{type:"switch-control"},enum:["on","off"]},speed:{type:"number",scope:"layout",title:"Speed",display:{type:"speed-control"},min:1,max:10},direction:{type:"string",scope:"common",title:"Direction",display:{type:"direction-control"},enum:["left","right"]},pauseOnHover:{title:"Pause on hover",type:"string",scope:"common",display:{type:"switch-toggle-2",enum:["on","off"]}},gap:{type:"number",scope:"layout",title:"Gap",min:0,max:200,display:{type:"range-control"}},align:{type:"string",title:"Align",display:{type:"align-group",direction:"horizontal"},enum:["start","center","end"]},cardWidth:{type:"number",scope:"layout",title:"Card width",min:0,max:400,display:{type:"range-control"}},cardHeight:{type:"number",scope:"layout",title:"Card height",min:0,max:400,display:{type:"range-control"}},corners:{type:"number",scope:"layout",title:"Corners",min:0,max:100,display:{type:"range-control"}},stroke:{type:"number",scope:"layout",title:"Stroke",min:0,max:20,display:{type:"range-control"}},strokeColor:{type:"string",scope:"common",title:"Stroke color",display:{type:"palette-color-picker"}},bgColor:{title:"BG color",type:"string",scope:"common",display:{type:"palette-color-picker"}},padding:{type:"object",scope:"layout",title:"Padding",display:{type:"padding-controls"}},logoMarginTop:{type:"number",scope:"layout",title:"Logo margin top",min:0,max:100,display:{type:"range-control"}},logoWidth:{type:"number",scope:"layout",title:"Logo width",min:0,max:200,display:{type:"range-control"}},imageCaptionColor:{type:"string",scope:"common",title:"Text color",display:{type:"palette-color-picker"}},captionColor:{type:"string",scope:"common",title:"Caption color",display:{type:"palette-color-picker"}},textMarginTop:{type:"number",scope:"layout",title:"Text margin top",min:0,max:100,display:{type:"range-control"}},textMinHeight:{type:"number",scope:"layout",title:"min height",min:0,max:300,display:{type:"range-control"}},captionMarginTop:{type:"number",scope:"layout",title:"Caption margin top",min:0,max:100,display:{type:"range-control"}},captionFontFamily:{type:"string",scope:"common",title:"Caption",display:{type:"font-family-select"}},captionFontSettings:{...Ao.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},captionFontSize:{type:"number",scope:"layout",title:"Caption Font Size",display:{type:"font-size"}},captionLineHeight:{type:"number",scope:"layout",title:"Caption Line Height",display:{type:"line-height-input"}},captionLetterSpacing:{type:"number",scope:"layout",title:"Caption Letter Spacing",display:{type:"letter-spacing-input"}},captionWordSpacing:{type:"number",scope:"layout",title:"Caption Word Spacing",display:{type:"word-spacing-input"}},captionTextAppearance:{type:"object",scope:"layout",title:"Caption Text Appearance",display:{type:"text-appearance"}},textFontFamily:{type:"string",scope:"common",title:"Text",display:{type:"font-family-select"}},textFontSettings:{...Ao.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},textFontSize:{type:"number",scope:"layout",title:"Text Font Size",display:{type:"font-size"}},textLineHeight:{type:"number",scope:"layout",title:"Text Line Height",display:{type:"line-height-input"}},textLetterSpacing:{type:"number",scope:"layout",title:"Text Letter Spacing",display:{type:"letter-spacing-input"}},textWordSpacing:{type:"number",scope:"layout",title:"Text Word Spacing",display:{type:"word-spacing-input"}},textTextAppearance:{type:"object",scope:"layout",title:"Text Text Appearance",display:{type:"text-appearance"}}},defaults:{autoplay:"off",direction:"left",pauseOnHover:"off",strokeColor:"#000000",bgColor:"rgba(255, 255, 255, 0.2)",imageCaptionColor:"#000000",captionColor:"#000000",captionFontFamily:"Arial",captionFontSettings:{fontWeight:400,fontStyle:"normal"},align:"start",captionLetterSpacing:0,captionWordSpacing:0,captionTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},textFontFamily:"Arial",textFontSettings:{fontWeight:400,fontStyle:"normal"},textLetterSpacing:0,textWordSpacing:0,textTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}},layoutDefaults:{m:{speed:3,gap:.02,cardWidth:.15,cardHeight:.2,corners:.005,stroke:.001,padding:{top:0,right:0,bottom:0,left:0},logoMarginTop:0,logoWidth:0,textMarginTop:0,textMinHeight:.01,captionMarginTop:0,textFontSize:.01,captionFontSize:.01},d:{speed:5,gap:.02,cardWidth:.15,cardHeight:.2,corners:.005,stroke:.001,padding:{top:0,right:0,bottom:0,left:0},logoMarginTop:0,logoWidth:0,textMarginTop:0,textMinHeight:.01,captionMarginTop:0,textFontSize:.01,captionFontSize:.01}},displayRules:[],layout:["__componentName__","autoplay","speed","direction","pauseOnHover","gap","cardWidth","cardHeight","corners","stroke","strokeColor","bgColor","padding","logoMarginTop","logoWidth","textMarginTop","textMinHeight","captionMarginTop"]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","autoplay"]},{type:"row",items:["speed",{type:"row",title:"",items:["pauseOnHover","direction"]}]},{type:"row",items:["align"]},{type:"row",title:"Card",items:[{type:"group",title:"",items:["cardWidth","cardHeight","corners","stroke"]},{type:"group",title:"",items:["padding","logoWidth"]}]},{type:"row",title:"Quote",items:["textMinHeight",""]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["textFontFamily","textFontSettings",{type:"group",title:"",items:["text",{type:"row",items:["textFontSize","textLineHeight","textLetterSpacing","textWordSpacing"]},"textTextAppearance"]},"captionFontFamily","captionFontSettings",{type:"group",title:"",items:["caption",{type:"row",items:["captionFontSize","captionLineHeight","captionLetterSpacing","captionWordSpacing"]},"captionTextAppearance"]}]}],paletteBookmark:{items:["strokeColor","bgColor","imageCaptionColor","captionColor"],panelIds:["general","typeStyle"]},content:{type:"array",settings:{addItemFromFileExplorer:!1},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}}},logo:{type:"object",label:"Logo",display:{type:"media-input"}},text:{placeholder:"Add Text...",label:"Text",display:{type:"rich-text"}},caption:{placeholder:"Add Caption...",label:"Caption",display:{type:"rich-text"}}}},default:[{image:{},logo:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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:{},logo:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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:{},logo:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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"}]}]}]}},os={element:ts,id:"testimonials",name:"Eliana",category:"testimonials",version:1,preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/testimonials.png"},defaultSize:{width:700,height:300},schema:ns,sourceCode:es,assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.controls.arrowsImgUrl"}]},fontSettingsPaths:{content:[],parameters:[{path:"styles.text.fontSettings"}]}},rs="Testimonials-module__container___Hxc4p",is="Testimonials-module__wrapper___uBekx",as="Testimonials-module__cover___ZvEoE",ls="Testimonials-module__elementsOverlay___5I51C",ss="Testimonials-module__icon___Cpw7E",cs="Testimonials-module__control___DktvH",kt={container:rs,wrapper:is,cover:as,elementsOverlay:ls,icon:ss,control:cs},ps=({settings:t,content:e,isEditor:n})=>{var v;const o=e||[],{autoplay:r,speed:a,imageWidth:i}=t,p=r==="on",s=t.width??0,f=t.imageMarginTop??0,u=t.textMarginTop??0,F=t.textMinHeight??0,S=t.captionMarginTop??0,y=o[0],d=C=>{var I;const H=(I=t==null?void 0:t.styles)==null?void 0:I[C];if(H)return H;const E=C==="text"?"text":"caption",T=t==null?void 0:t[`${E}FontFamily`],c=t==null?void 0:t[`${E}FontSettings`],k=t==null?void 0:t[`${E}LetterSpacing`],L=t==null?void 0:t[`${E}WordSpacing`],P=t==null?void 0:t[`${E}TextAlign`],x=t==null?void 0:t[`${E}TextAppearance`],V=t==null?void 0:t[`${E}Color`],_=t==null?void 0:t[`${E}FontSize`],U=t==null?void 0:t[`${E}LineHeight`];return typeof T=="string"||!!c||typeof k=="number"||typeof L=="number"||typeof P=="string"||!!x||typeof V=="string"||typeof _=="number"||typeof U=="number"?{widthSettings:{width:.13,sizing:"manual"},fontSettings:{fontFamily:typeof T=="string"?T:"Arial",fontWeight:typeof(c==null?void 0:c.fontWeight)=="number"?c.fontWeight:400,fontStyle:typeof(c==null?void 0:c.fontStyle)=="string"?c.fontStyle:"normal"},letterSpacing:typeof k=="number"?k:0,wordSpacing:typeof L=="number"?L:0,textAlign:P==="left"||P==="center"||P==="right"?P:"left",fontSizeLineHeight:{fontSize:typeof _=="number"?_:.01,lineHeight:typeof U=="number"?U:.01},textAppearance:{textTransform:(x==null?void 0:x.textTransform)??"none",textDecoration:(x==null?void 0:x.textDecoration)??"none",fontVariant:(x==null?void 0:x.fontVariant)??"normal"},color:typeof V=="string"?V:"#000000"}:void 0},g=d("text"),$=d("caption"),b=j.useMemo(()=>["text","image","caption"].map((H,E)=>({key:H,order:E})),[]);return y?l.jsx(l.Fragment,{children:l.jsxs("div",{className:kt.container,style:{flexDirection:"column",alignItems:"center"},children:[l.jsx("div",{className:mt(kt.wrapper,!p&&kt.wrapperAutoplayOff),style:{width:w.scalingValue(s,n??!1)},children:l.jsxs("div",{style:{width:w.scalingValue(s,n??!1),height:"100%",boxSizing:"border-box",position:"relative"},children:[l.jsx("div",{className:kt.cover}),l.jsx("div",{className:kt.elementsOverlay,style:{display:"flex",flexDirection:"column",inset:0,pointerEvents:"none"},children:b.map(({key:C,order:H})=>{var E,T,c;if(C==="image")return l.jsxs("div",{style:{order:H,zIndex:H},children:[l.jsx("div",{"data-controls":"imageMarginTop",className:kt.control,style:{height:w.scalingValue(f,n??!1)}}),l.jsx("div",{style:{width:"100%"},children:l.jsx("img",{src:(E=y.image)==null?void 0:E.url,alt:(T=y.image)==null?void 0:T.name,className:kt.icon,style:{pointerEvents:"auto",objectFit:((c=y.image)==null?void 0:c.objectFit)||"cover",width:w.scalingValue(i??0,n??!1),height:"100%"}})})]},"image");if(C==="text"&&g){const{widthSettings:k,fontSettings:L,letterSpacing:P,textAlign:x,wordSpacing:V,fontSizeLineHeight:_,textAppearance:U,color:q}=g;return l.jsxs("div",{style:{order:H,zIndex:H},children:[l.jsx("div",{"data-controls":"textMarginTop",className:kt.control,style:{height:w.scalingValue(u,n??!1)}}),l.jsx("div",{"data-styles":"text",className:kt.caption,style:{fontFamily:L.fontFamily,fontWeight:L.fontWeight,fontStyle:L.fontStyle,minHeight:w.scalingValue(F,n??!1),letterSpacing:w.scalingValue(P,n),wordSpacing:w.scalingValue(V,n),textAlign:x,fontSize:w.scalingValue(_.fontSize,n),lineHeight:w.scalingValue(_.lineHeight,n),textTransform:U.textTransform??"none",textDecoration:U.textDecoration??"none",fontVariant:U.fontVariant??"normal",color:q,pointerEvents:"auto"},children:l.jsx(Ve,{content:y.text??[]})})]},"text")}if(C==="caption"&&$){const{widthSettings:k,fontSettings:L,letterSpacing:P,textAlign:x,wordSpacing:V,fontSizeLineHeight:_,textAppearance:U,color:q}=$;return l.jsxs("div",{style:{order:H,zIndex:H},children:[l.jsx("div",{"data-controls":"captionMarginTop",className:kt.control,style:{height:w.scalingValue(S,n??!1)}}),l.jsx("div",{"data-styles":"caption",className:kt.caption,style:{fontFamily:L.fontFamily,fontWeight:L.fontWeight,fontStyle:L.fontStyle,minHeight:0,letterSpacing:w.scalingValue(P,n),wordSpacing:w.scalingValue(V,n),textAlign:x,fontSize:w.scalingValue(_.fontSize,n),lineHeight:w.scalingValue(_.lineHeight,n),textTransform:U.textTransform??"none",textDecoration:U.textDecoration??"none",fontVariant:U.fontVariant??"normal",color:q,pointerEvents:"auto"},children:l.jsx(Ve,{content:y.caption})})]},"caption")}return null})})]})}),((v=t.controls)==null?void 0:v.isActive)==="visible"&&t.autoplay==="off"&&l.jsx("div",{children:"Controls"})]})}):l.jsx(l.Fragment,{})},us=`import cn from 'classnames';
1995
+ `,Ao={fontSettings:{type:"object",scope:"common",display:{type:"font-settings"},properties:{fontWeight:{type:"number",scope:"common"},fontStyle:{type:"string",scope:"common"}}}},ns={type:"object",version:1,settings:{sizing:"auto manual",properties:{autoplay:{type:"string",scope:"common",title:"Autoplay",display:{type:"switch-control"},enum:["on","off"]},speed:{type:"number",scope:"layout",title:"Speed",display:{type:"speed-control"},min:.5,max:8},direction:{type:"string",scope:"common",title:"Direction",display:{type:"direction-control"},enum:["left","right"]},pauseOnHover:{title:"Pause on hover",type:"string",scope:"common",display:{type:"switch-toggle-2",enum:["on","off"]}},gap:{type:"number",scope:"layout",title:"Gap",min:0,max:200,display:{type:"range-control"}},align:{type:"string",title:"Align",display:{type:"align-group",direction:"horizontal"},enum:["start","center","end"]},cardWidth:{type:"number",scope:"layout",title:"width",min:0,max:400,display:{type:"range-control"}},cardHeight:{type:"number",scope:"layout",title:"height",min:0,max:400,display:{type:"range-control"}},corners:{type:"number",scope:"layout",title:"Corners",min:0,max:100,display:{type:"range-control"}},stroke:{type:"number",scope:"layout",title:"Stroke",min:0,max:20,display:{type:"range-control"}},strokeColor:{type:"string",scope:"common",title:"Stroke color",display:{type:"palette-color-picker",visible:!0}},bgColor:{title:"BG color",type:"string",scope:"common",display:{type:"palette-color-picker"}},padding:{type:"object",scope:"layout",title:"Padding",display:{type:"padding-controls"}},logoMarginTop:{type:"number",scope:"layout",title:"Logo margin top",min:0,max:100,display:{type:"range-control"}},logoWidth:{type:"number",scope:"layout",title:"Logo width",min:0,max:200,display:{type:"range-control"}},imageCaptionColor:{type:"string",scope:"common",title:"Text color",display:{type:"palette-color-picker"}},captionColor:{type:"string",scope:"common",title:"Caption color",display:{type:"palette-color-picker"}},textMarginTop:{type:"number",scope:"layout",title:"Text margin top",min:0,max:100,display:{type:"range-control"}},textMinHeight:{type:"number",scope:"layout",title:"min height",min:0,max:300,display:{type:"range-control"}},captionMarginTop:{type:"number",scope:"layout",title:"Caption margin top",min:0,max:100,display:{type:"range-control"}},captionFontFamily:{type:"string",scope:"common",title:"Caption",display:{type:"font-family-select"}},captionFontSettings:{...Ao.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},captionFontSize:{type:"number",scope:"layout",title:"Caption Font Size",display:{type:"font-size"}},captionLineHeight:{type:"number",scope:"layout",title:"Caption Line Height",display:{type:"line-height-input"}},captionLetterSpacing:{type:"number",scope:"layout",title:"Caption Letter Spacing",display:{type:"letter-spacing-input"}},captionWordSpacing:{type:"number",scope:"layout",title:"Caption Word Spacing",display:{type:"word-spacing-input"}},captionTextAppearance:{type:"object",scope:"layout",title:"Caption Text Appearance",display:{type:"text-appearance"}},textFontFamily:{type:"string",scope:"common",title:"Text",display:{type:"font-family-select"}},textFontSettings:{...Ao.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},textFontSize:{type:"number",scope:"layout",title:"Text Font Size",display:{type:"font-size"}},textLineHeight:{type:"number",scope:"layout",title:"Text Line Height",display:{type:"line-height-input"}},textLetterSpacing:{type:"number",scope:"layout",title:"Text Letter Spacing",display:{type:"letter-spacing-input"}},textWordSpacing:{type:"number",scope:"layout",title:"Text Word Spacing",display:{type:"word-spacing-input"}},textTextAppearance:{type:"object",scope:"layout",title:"Text Text Appearance",display:{type:"text-appearance"}}},defaults:{autoplay:"off",direction:"left",pauseOnHover:"off",strokeColor:"#000000",bgColor:"rgba(255, 255, 255, 0.81)",imageCaptionColor:"#000000",captionColor:"#000000",captionFontFamily:"Arial",captionFontSettings:{fontWeight:400,fontStyle:"normal"},align:"center",captionLetterSpacing:0,captionWordSpacing:0,captionTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},textFontFamily:"Arial",textFontSettings:{fontWeight:400,fontStyle:"normal"},textLetterSpacing:0,textWordSpacing:0,textTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}},layoutDefaults:{m:{speed:3,gap:.02,cardWidth:.15,cardHeight:.2,corners:.005,stroke:.001,padding:{top:.01,right:.01,bottom:.01,left:.01},logoMarginTop:0,logoWidth:.02,textMarginTop:0,textMinHeight:.01,captionMarginTop:0,textFontSize:.01,textLineHeight:.01,captionFontSize:.01,captionLineHeight:.01},d:{speed:5,gap:.02,cardWidth:.15,cardHeight:.15,corners:.005,stroke:.001,padding:{top:.01,right:.01,bottom:.01,left:.01},logoMarginTop:.01,logoWidth:.05,textMarginTop:0,textMinHeight:.07,captionMarginTop:.01,textFontSize:.01,textLineHeight:.01,captionFontSize:.01,captionLineHeight:.01}},displayRules:[{if:{name:"stroke",value:0},then:{name:"properties.strokeColor.display.visible",value:!1}}],layout:["__componentName__","autoplay","speed","direction","pauseOnHover","gap","cardWidth","cardHeight","corners","stroke","strokeColor","bgColor","padding","logoMarginTop","logoWidth","textMarginTop","textMinHeight","captionMarginTop"]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","autoplay"]},{type:"row",items:["speed",{type:"row",title:"",items:["pauseOnHover","direction"]}]},{type:"row",items:["align"]},{type:"row",title:"Card",items:[{type:"group",title:"",items:["cardWidth","cardHeight","corners","stroke"]},{type:"group",title:"",items:["padding","logoWidth"]}]},{type:"row",title:"Quote",items:["textMinHeight",""]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["textFontFamily","textFontSettings",{type:"group",title:"",items:["text",{type:"row",items:["textFontSize","textLineHeight","textLetterSpacing","textWordSpacing"]},"textTextAppearance"]},"captionFontFamily","captionFontSettings",{type:"group",title:"",items:["caption",{type:"row",items:["captionFontSize","captionLineHeight","captionLetterSpacing","captionWordSpacing"]},"captionTextAppearance"]}]}],paletteBookmark:{items:["strokeColor","bgColor","imageCaptionColor","captionColor"],panelIds:["general","typeStyle"]},content:{type:"array",settings:{addItemFromFileExplorer:!1},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}}},logo:{type:"object",label:"Logo",display:{type:"media-input"}},text:{placeholder:"Add Text...",label:"Text",display:{type:"rich-text"}},caption:{placeholder:"Add Caption...",label:"Caption",display:{type:"rich-text"}}}},default:[{image:{},logo:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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:{},logo:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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:{},logo:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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"}]}]}]}},os={element:ts,id:"testimonials",name:"Eliana",category:"testimonials",version:1,preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/testimonials.png"},defaultSize:{width:750,height:300},schema:ns,sourceCode:es,assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.controls.arrowsImgUrl"}]},fontSettingsPaths:{content:[],parameters:[{path:"styles.text.fontSettings"}]}},rs="Testimonials-module__container___Hxc4p",is="Testimonials-module__wrapper___uBekx",as="Testimonials-module__cover___ZvEoE",ls="Testimonials-module__elementsOverlay___5I51C",ss="Testimonials-module__icon___Cpw7E",cs="Testimonials-module__control___DktvH",kt={container:rs,wrapper:is,cover:as,elementsOverlay:ls,icon:ss,control:cs},ps=({settings:t,content:e,isEditor:n})=>{var b;const o=e||[],{autoplay:r,speed:a,imageWidth:i}=t,l=r==="on",p=t.width??0,g=t.imageMarginTop??0,u=t.textMarginTop??0,F=t.textMinHeight??0,S=t.captionMarginTop??0,f=o[0],d=$=>{var I;const j=(I=t==null?void 0:t.styles)==null?void 0:I[$];if(j)return j;const W=$==="text"?"text":"caption",C=t==null?void 0:t[`${W}FontFamily`],y=t==null?void 0:t[`${W}FontSettings`],L=t==null?void 0:t[`${W}LetterSpacing`],h=t==null?void 0:t[`${W}WordSpacing`],P=t==null?void 0:t[`${W}TextAlign`],T=t==null?void 0:t[`${W}TextAppearance`],z=t==null?void 0:t[`${W}Color`],k=t==null?void 0:t[`${W}FontSize`],U=t==null?void 0:t[`${W}LineHeight`];return typeof C=="string"||!!y||typeof L=="number"||typeof h=="number"||typeof P=="string"||!!T||typeof z=="string"||typeof k=="number"||typeof U=="number"?{widthSettings:{width:.13,sizing:"manual"},fontSettings:{fontFamily:typeof C=="string"?C:"Arial",fontWeight:typeof(y==null?void 0:y.fontWeight)=="number"?y.fontWeight:400,fontStyle:typeof(y==null?void 0:y.fontStyle)=="string"?y.fontStyle:"normal"},letterSpacing:typeof L=="number"?L:0,wordSpacing:typeof h=="number"?h:0,textAlign:P==="left"||P==="center"||P==="right"?P:"left",fontSizeLineHeight:{fontSize:typeof k=="number"?k:.01,lineHeight:typeof U=="number"?U:.01},textAppearance:{textTransform:(T==null?void 0:T.textTransform)??"none",textDecoration:(T==null?void 0:T.textDecoration)??"none",fontVariant:(T==null?void 0:T.fontVariant)??"normal"},color:typeof z=="string"?z:"#000000"}:void 0},m=d("text"),w=d("caption"),x=H.useMemo(()=>["text","image","caption"].map((j,W)=>({key:j,order:W})),[]);return f?s.jsx(s.Fragment,{children:s.jsxs("div",{className:kt.container,style:{flexDirection:"column",alignItems:"center"},children:[s.jsx("div",{className:mt(kt.wrapper,!l&&kt.wrapperAutoplayOff),style:{width:_.scalingValue(p,n??!1)},children:s.jsxs("div",{style:{width:_.scalingValue(p,n??!1),height:"100%",boxSizing:"border-box",position:"relative"},children:[s.jsx("div",{className:kt.cover}),s.jsx("div",{className:kt.elementsOverlay,style:{display:"flex",flexDirection:"column",inset:0,pointerEvents:"none"},children:x.map(({key:$,order:j})=>{var W,C,y;if($==="image")return s.jsxs("div",{style:{order:j,zIndex:j},children:[s.jsx("div",{"data-controls":"imageMarginTop",className:kt.control,style:{height:_.scalingValue(g,n??!1)}}),s.jsx("div",{style:{width:"100%"},children:s.jsx("img",{src:(W=f.image)==null?void 0:W.url,alt:(C=f.image)==null?void 0:C.name,className:kt.icon,style:{pointerEvents:"auto",objectFit:((y=f.image)==null?void 0:y.objectFit)||"cover",width:_.scalingValue(i??0,n??!1),height:"100%"}})})]},"image");if($==="text"&&m){const{widthSettings:L,fontSettings:h,letterSpacing:P,textAlign:T,wordSpacing:z,fontSizeLineHeight:k,textAppearance:U,color:O}=m;return s.jsxs("div",{style:{order:j,zIndex:j},children:[s.jsx("div",{"data-controls":"textMarginTop",className:kt.control,style:{height:_.scalingValue(u,n??!1)}}),s.jsx("div",{"data-styles":"text",className:kt.caption,style:{fontFamily:h.fontFamily,fontWeight:h.fontWeight,fontStyle:h.fontStyle,minHeight:_.scalingValue(F,n??!1),letterSpacing:_.scalingValue(P,n),wordSpacing:_.scalingValue(z,n),textAlign:T,fontSize:_.scalingValue(k.fontSize,n),lineHeight:_.scalingValue(k.lineHeight,n),textTransform:U.textTransform??"none",textDecoration:U.textDecoration??"none",fontVariant:U.fontVariant??"normal",color:O,pointerEvents:"auto"},children:s.jsx(Ve,{content:f.text??[]})})]},"text")}if($==="caption"&&w){const{widthSettings:L,fontSettings:h,letterSpacing:P,textAlign:T,wordSpacing:z,fontSizeLineHeight:k,textAppearance:U,color:O}=w;return s.jsxs("div",{style:{order:j,zIndex:j},children:[s.jsx("div",{"data-controls":"captionMarginTop",className:kt.control,style:{height:_.scalingValue(S,n??!1)}}),s.jsx("div",{"data-styles":"caption",className:kt.caption,style:{fontFamily:h.fontFamily,fontWeight:h.fontWeight,fontStyle:h.fontStyle,minHeight:0,letterSpacing:_.scalingValue(P,n),wordSpacing:_.scalingValue(z,n),textAlign:T,fontSize:_.scalingValue(k.fontSize,n),lineHeight:_.scalingValue(k.lineHeight,n),textTransform:U.textTransform??"none",textDecoration:U.textDecoration??"none",fontVariant:U.fontVariant??"normal",color:O,pointerEvents:"auto"},children:s.jsx(Ve,{content:f.caption})})]},"caption")}return null})})]})}),((b=t.controls)==null?void 0:b.isActive)==="visible"&&t.autoplay==="off"&&s.jsx("div",{children:"Controls"})]})}):s.jsx(s.Fragment,{})},us=`import cn from 'classnames';
1994
1996
  import { useMemo } from 'react';
1995
1997
  import classes from './Testimonials.module.scss';
1996
1998
  import { CommonComponentProps } from '../props';
@@ -2315,4 +2317,4 @@ type TestimonialsStyles = {
2315
2317
  };
2316
2318
 
2317
2319
  type ElementOrderKey = 'text' | 'image' | 'caption';
2318
- `,Eo={fontSettings:{type:"object",scope:"common",display:{type:"font-settings"},properties:{fontWeight:{type:"number",scope:"common"},fontStyle:{type:"string",scope:"common"}}}},Ct={fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"},ds={type:"object",version:1,settings:{sizing:"auto manual",properties:{autoplay:{type:"string",scope:"common",title:"Autoplay",display:{type:"switch-control"},enum:["on","off"]},speed:{type:"number",scope:"layout",title:"Speed",display:{type:"speed-control"},min:1,max:10},width:{type:"number",scope:"layout",title:"Card width",min:0,max:400,display:{type:"range-control"}},imageWidth:{type:"number",scope:"layout",title:"Image width",min:0,max:100,display:{type:"range-control"}},imageMarginTop:{type:"number",scope:"layout",title:"Image margin top",min:0,max:100,display:{type:"range-control"}},textMarginTop:{type:"number",scope:"layout",title:"Text margin top",min:0,max:100,display:{type:"range-control"}},textMinHeight:{type:"number",scope:"layout",title:"Text min height",min:0,max:300,display:{type:"range-control"}},captionMarginTop:{type:"number",scope:"layout",title:"Caption margin top",min:0,max:100,display:{type:"range-control"}},captionFontFamily:{type:"string",scope:"common",title:"Caption",display:{type:"font-family-select"}},captionFontSettings:{...Eo.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},captionFontSize:{type:"number",scope:"layout",title:"Caption Font Size",display:{type:"font-size"}},captionLineHeight:{type:"number",scope:"layout",title:"Caption Line Height",display:{type:"line-height-input"}},captionLetterSpacing:{type:"number",scope:"layout",title:"Caption Letter Spacing",display:{type:"letter-spacing-input"}},captionWordSpacing:{type:"number",scope:"layout",title:"Caption Word Spacing",display:{type:"word-spacing-input"}},captionTextAppearance:{type:"object",scope:"layout",title:"Caption Text Appearance",display:{type:"text-appearance"}},captionTextAlign:{display:{type:"text-align-control"},type:"string",scope:"common",title:"Caption Align",enum:["left","center","right"]},captionColor:{display:{type:"style-panel-color-picker"},type:"string",scope:"common",title:"Caption Color"},textFontFamily:{type:"string",scope:"common",title:"Text",display:{type:"font-family-select"}},textFontSettings:{...Eo.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},textFontSize:{type:"number",scope:"layout",title:"Text Font Size",display:{type:"font-size"}},textLineHeight:{type:"number",scope:"layout",title:"Text Line Height",display:{type:"line-height-input"}},textLetterSpacing:{type:"number",scope:"layout",title:"Text Letter Spacing",display:{type:"letter-spacing-input"}},textWordSpacing:{type:"number",scope:"layout",title:"Text Word Spacing",display:{type:"word-spacing-input"}},textTextAppearance:{type:"object",scope:"layout",title:"Text Text Appearance",display:{type:"text-appearance"}},textTextAlign:{display:{type:"text-align-control"},type:"string",scope:"common",title:"Text Align",enum:["left","center","right"]},textColor:{display:{type:"style-panel-color-picker"},type:"string",scope:"common",title:"Text Color"}},defaults:{autoplay:"off",textFontFamily:Ct.fontSettings.fontFamily,textFontSettings:{fontWeight:Ct.fontSettings.fontWeight,fontStyle:Ct.fontSettings.fontStyle},textLetterSpacing:Ct.letterSpacing,textWordSpacing:Ct.wordSpacing,textTextAlign:Ct.textAlign,textTextAppearance:Ct.textAppearance,textColor:Ct.color,captionFontFamily:Ct.fontSettings.fontFamily,captionFontSettings:{fontWeight:Ct.fontSettings.fontWeight,fontStyle:Ct.fontSettings.fontStyle},captionLetterSpacing:Ct.letterSpacing,captionWordSpacing:Ct.wordSpacing,captionTextAlign:Ct.textAlign,captionTextAppearance:Ct.textAppearance,captionColor:Ct.color},layoutDefaults:{m:{speed:5,width:.15,height:.2,corners:.005,stroke:.001,imageMarginTop:0,textMarginTop:0,textMinHeight:.01,captionMarginTop:0,textFontSize:.01,captionFontSize:.01,textLineHeight:.01,captionLineHeight:.01,imageWidth:.15},d:{speed:5,width:.15,height:.2,corners:.005,stroke:.001,imageMarginTop:0,textMarginTop:0,textMinHeight:.01,captionMarginTop:0,textFontSize:.01,captionFontSize:.01,textLineHeight:.01,captionLineHeight:.01,imageWidth:.15}},displayRules:[],layout:["__componentName__","autoplay","speed","width","imageMarginTop","textMarginTop","textMinHeight","captionMarginTop"]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","autoplay"]},{type:"row",items:["controls","speed"]},{type:"row",items:[{type:"group",title:"",items:["width"]}]},{type:"row",items:[{type:"group",title:"",items:["delay","imageWidth"]}]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["textFontFamily","textFontSettings",{type:"group",title:"",items:["text",{type:"row",items:["textFontSize","textLineHeight","textLetterSpacing","textWordSpacing"]},"textTextAppearance"]},"captionFontFamily","captionFontSettings",{type:"group",title:"",items:["caption",{type:"row",items:["captionFontSize","captionLineHeight","captionLetterSpacing","captionWordSpacing"]},"captionTextAppearance"]}]}],paletteBookmark:{items:["textColor","captionColor"],panelIds:["general","typeStyle"]},content:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"}},text:{placeholder:"Add Text...",label:"Text",display:{type:"rich-text"}},caption:{placeholder:"Add Caption...",label:"Caption",display:{type:"rich-text"}}}},default:[{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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"}]}]}]}},gs={element:ps,id:"testimonial-single",name:"Clara",category:"testimonials",version:1,preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/testimonialsSingle.png"},defaultSize:{width:700,height:300},schema:ds,sourceCode:us,assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.controls.arrowsImgUrl"}]},fontSettingsPaths:{content:[],parameters:[{path:"styles.text.fontSettings"},{path:"styles.caption.fontSettings"}]}},ms=[Ea,za,wl,Il,Ol,os,gs];exports.components=ms;exports.isSchemaV1=Sr;
2320
+ `,Lo={fontSettings:{type:"object",scope:"common",display:{type:"font-settings"},properties:{fontWeight:{type:"number",scope:"common"},fontStyle:{type:"string",scope:"common"}}}},Ct={fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"},ds={type:"object",version:1,settings:{sizing:"auto manual",properties:{autoplay:{type:"string",scope:"common",title:"Autoplay",display:{type:"switch-control"},enum:["on","off"]},speed:{type:"number",scope:"layout",title:"Speed",display:{type:"speed-control"},min:1,max:10},width:{type:"number",scope:"layout",title:"Card width",min:0,max:400,display:{type:"range-control"}},imageWidth:{type:"number",scope:"layout",title:"Image width",min:0,max:100,display:{type:"range-control"}},imageMarginTop:{type:"number",scope:"layout",title:"Image margin top",min:0,max:100,display:{type:"range-control"}},textMarginTop:{type:"number",scope:"layout",title:"Text margin top",min:0,max:100,display:{type:"range-control"}},textMinHeight:{type:"number",scope:"layout",title:"Text min height",min:0,max:300,display:{type:"range-control"}},captionMarginTop:{type:"number",scope:"layout",title:"Caption margin top",min:0,max:100,display:{type:"range-control"}},captionFontFamily:{type:"string",scope:"common",title:"Caption",display:{type:"font-family-select"}},captionFontSettings:{...Lo.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},captionFontSize:{type:"number",scope:"layout",title:"Caption Font Size",display:{type:"font-size"}},captionLineHeight:{type:"number",scope:"layout",title:"Caption Line Height",display:{type:"line-height-input"}},captionLetterSpacing:{type:"number",scope:"layout",title:"Caption Letter Spacing",display:{type:"letter-spacing-input"}},captionWordSpacing:{type:"number",scope:"layout",title:"Caption Word Spacing",display:{type:"word-spacing-input"}},captionTextAppearance:{type:"object",scope:"layout",title:"Caption Text Appearance",display:{type:"text-appearance"}},captionTextAlign:{display:{type:"text-align-control"},type:"string",scope:"common",title:"Caption Align",enum:["left","center","right"]},captionColor:{display:{type:"style-panel-color-picker"},type:"string",scope:"common",title:"Caption Color"},textFontFamily:{type:"string",scope:"common",title:"Text",display:{type:"font-family-select"}},textFontSettings:{...Lo.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},textFontSize:{type:"number",scope:"layout",title:"Text Font Size",display:{type:"font-size"}},textLineHeight:{type:"number",scope:"layout",title:"Text Line Height",display:{type:"line-height-input"}},textLetterSpacing:{type:"number",scope:"layout",title:"Text Letter Spacing",display:{type:"letter-spacing-input"}},textWordSpacing:{type:"number",scope:"layout",title:"Text Word Spacing",display:{type:"word-spacing-input"}},textTextAppearance:{type:"object",scope:"layout",title:"Text Text Appearance",display:{type:"text-appearance"}},textTextAlign:{display:{type:"text-align-control"},type:"string",scope:"common",title:"Text Align",enum:["left","center","right"]},textColor:{display:{type:"style-panel-color-picker"},type:"string",scope:"common",title:"Text Color"}},defaults:{autoplay:"off",textFontFamily:Ct.fontSettings.fontFamily,textFontSettings:{fontWeight:Ct.fontSettings.fontWeight,fontStyle:Ct.fontSettings.fontStyle},textLetterSpacing:Ct.letterSpacing,textWordSpacing:Ct.wordSpacing,textTextAlign:Ct.textAlign,textTextAppearance:Ct.textAppearance,textColor:Ct.color,captionFontFamily:Ct.fontSettings.fontFamily,captionFontSettings:{fontWeight:Ct.fontSettings.fontWeight,fontStyle:Ct.fontSettings.fontStyle},captionLetterSpacing:Ct.letterSpacing,captionWordSpacing:Ct.wordSpacing,captionTextAlign:Ct.textAlign,captionTextAppearance:Ct.textAppearance,captionColor:Ct.color},layoutDefaults:{m:{speed:5,width:.15,height:.2,corners:.005,stroke:.001,imageMarginTop:0,textMarginTop:0,textMinHeight:.01,captionMarginTop:0,textFontSize:.01,captionFontSize:.01,textLineHeight:.01,captionLineHeight:.01,imageWidth:.15},d:{speed:5,width:.15,height:.2,corners:.005,stroke:.001,imageMarginTop:0,textMarginTop:0,textMinHeight:.01,captionMarginTop:0,textFontSize:.01,captionFontSize:.01,textLineHeight:.01,captionLineHeight:.01,imageWidth:.15}},displayRules:[],layout:["__componentName__","autoplay","speed","width","imageMarginTop","textMarginTop","textMinHeight","captionMarginTop"]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","autoplay"]},{type:"row",items:["controls","speed"]},{type:"row",items:[{type:"group",title:"",items:["width"]}]},{type:"row",items:[{type:"group",title:"",items:["delay","imageWidth"]}]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["textFontFamily","textFontSettings",{type:"group",title:"",items:["text",{type:"row",items:["textFontSize","textLineHeight","textLetterSpacing","textWordSpacing"]},"textTextAppearance"]},"captionFontFamily","captionFontSettings",{type:"group",title:"",items:["caption",{type:"row",items:["captionFontSize","captionLineHeight","captionLetterSpacing","captionWordSpacing"]},"captionTextAppearance"]}]}],paletteBookmark:{items:["textColor","captionColor"],panelIds:["general","typeStyle"]},content:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"}},text:{placeholder:"Add Text...",label:"Text",display:{type:"rich-text"}},caption:{placeholder:"Add Caption...",label:"Caption",display:{type:"rich-text"}}}},default:[{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/logo.png",name:""},text:[{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"}]}]}]}},gs={element:ps,id:"testimonial-single",name:"Clara",category:"testimonials",version:1,preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/testimonialsSingle.png"},defaultSize:{width:700,height:300},schema:ds,sourceCode:us,assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.controls.arrowsImgUrl"}]},fontSettingsPaths:{content:[],parameters:[{path:"styles.text.fontSettings"},{path:"styles.caption.fontSettings"}]}},ms=[La,za,wl,Il,Ol,os,gs];exports.components=ms;exports.isSchemaV1=xr;