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