@cntrl-site/components 1.0.12-alpha.29 → 1.0.12-alpha.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),c=require("react"),Be=require("classnames"),L=require("./readTestimonialTextMeasure-CB_Uq-fO.js"),Xn=require("react-dom");function qa(e){return e.type==="object"&&e.version===1}const Xa="ControlSlider-module__wrapper___sHEkd",Ya="ControlSlider-module__hoverArrow___A-dOH",Ja="ControlSlider-module__sliderItem___QQSkR",Za="ControlSlider-module__sliderImage___9hRl-",Qa="ControlSlider-module__arrow___05ghY",el="ControlSlider-module__arrowVertical___tBfVN",tl="ControlSlider-module__nextArrow___-30Yc",nl="ControlSlider-module__arrowInner___aEra3",il="ControlSlider-module__arrowIcon___S4ztF",ol="ControlSlider-module__arrowImg___2dwJW",rl="ControlSlider-module__mirror___brd6U",al="ControlSlider-module__pagination___bicLF",ll="ControlSlider-module__paginationInner___bT-P-",sl="ControlSlider-module__paginationVertical___zYqKw",cl="ControlSlider-module__paginationItem___nTRbk",dl="ControlSlider-module__dot___p1Qun",ul="ControlSlider-module__activeDot___LHFaj",pl="ControlSlider-module__paginationInsideBottom___R3FWn",ml="ControlSlider-module__paginationInsideTop___V-qb-",gl="ControlSlider-module__paginationOutsideBottom___14w8D",hl="ControlSlider-module__paginationOutsideTop___SCLqB",fl="ControlSlider-module__paginationInsideLeft___yOBRZ",yl="ControlSlider-module__paginationInsideRight___Rtt3o",vl="ControlSlider-module__paginationOutsideLeft___lahaw",bl="ControlSlider-module__paginationOutsideRight___EtuQa",xl="ControlSlider-module__imgWrapper___UjEgB",Sl="ControlSlider-module__captionBlock___dJ6-j",Cl="ControlSlider-module__captionTextWrapper___HFlpf",$l="ControlSlider-module__captionText___uGBVc",wl="ControlSlider-module__active___WZK4G",Tl="ControlSlider-module__withPointerEvents___t-18M",Ll="ControlSlider-module__topLeftAlignment___zjnGM",El="ControlSlider-module__topCenterAlignment___gD1xW",Il="ControlSlider-module__topRightAlignment___NMapS",Rl="ControlSlider-module__middleLeftAlignment___OnUrY",Pl="ControlSlider-module__middleCenterAlignment___Tdkl0",_l="ControlSlider-module__middleRightAlignment___wEbfX",Al="ControlSlider-module__bottomLeftAlignment___cTP2-",Ml="ControlSlider-module__bottomCenterAlignment___c54fB",kl="ControlSlider-module__bottomRightAlignment___kEwrz",Fl="ControlSlider-module__clickOverlay___DZA28",Wl="ControlSlider-module__contain___pLyq7",Nl="ControlSlider-module__cover___KdDat",ye={wrapper:Xa,hoverArrow:Ya,sliderItem:Ja,sliderImage:Za,arrow:Qa,arrowVertical:el,nextArrow:tl,arrowInner:nl,arrowIcon:il,arrowImg:ol,mirror:rl,pagination:al,paginationInner:ll,paginationVertical:sl,paginationItem:cl,dot:dl,activeDot:ul,paginationInsideBottom:pl,paginationInsideTop:ml,paginationOutsideBottom:gl,paginationOutsideTop:hl,paginationInsideLeft:fl,paginationInsideRight:yl,paginationOutsideLeft:vl,paginationOutsideRight:bl,imgWrapper:xl,captionBlock:Sl,captionTextWrapper:Cl,captionText:$l,active:wl,withPointerEvents:Tl,topLeftAlignment:Ll,topCenterAlignment:El,topRightAlignment:Il,middleLeftAlignment:Rl,middleCenterAlignment:Pl,middleRightAlignment:_l,bottomLeftAlignment:Al,bottomCenterAlignment:Ml,bottomRightAlignment:kl,clickOverlay:Fl,contain:Wl,cover:Nl};function Hl(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Bl(e,t,n){return t&&Hl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var tr="(prefers-reduced-motion: reduce)",xn=1,Ol=2,$n=3,_n=4,Yn=5,xi=6,Ii=7,jl={CREATED:xn,MOUNTED:Ol,IDLE:$n,MOVING:_n,SCROLLING:Yn,DRAGGING:xi,DESTROYED:Ii};function Dt(e){e.length=0}function Zt(e,t,n){return Array.prototype.slice.call(e,t,n)}function Ue(e){return e.bind.apply(e,[null].concat(Zt(arguments,1)))}var Jr=setTimeout,go=function(){};function nr(e){return requestAnimationFrame(e)}function Fi(e,t){return typeof t===e}function Hn(e){return!Lo(e)&&Fi("object",e)}var To=Array.isArray,Zr=Ue(Fi,"function"),Xt=Ue(Fi,"string"),Jn=Ue(Fi,"undefined");function Lo(e){return e===null}function Qr(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function Zn(e){return To(e)?e:[e]}function Et(e,t){Zn(e).forEach(t)}function Eo(e,t){return e.indexOf(t)>-1}function Si(e,t){return e.push.apply(e,Zn(t)),e}function Bt(e,t,n){e&&Et(t,function(i){i&&e.classList[n?"add":"remove"](i)})}function Mt(e,t){Bt(e,Xt(t)?t.split(" "):t,!0)}function Qn(e,t){Et(t,e.appendChild.bind(e))}function Io(e,t){Et(e,function(n){var i=(t||n).parentNode;i&&i.insertBefore(n,t)})}function Bn(e,t){return Qr(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function ea(e,t){var n=e?Zt(e.children):[];return t?n.filter(function(i){return Bn(i,t)}):n}function ei(e,t){return t?ea(e,t)[0]:e.firstElementChild}var On=Object.keys;function sn(e,t,n){return e&&(n?On(e).reverse():On(e)).forEach(function(i){i!=="__proto__"&&t(e[i],i)}),e}function jn(e){return Zt(arguments,1).forEach(function(t){sn(t,function(n,i){e[i]=t[i]})}),e}function qt(e){return Zt(arguments,1).forEach(function(t){sn(t,function(n,i){To(n)?e[i]=n.slice():Hn(n)?e[i]=qt({},Hn(e[i])?e[i]:{},n):e[i]=n})}),e}function ir(e,t){Et(t||On(e),function(n){delete e[n]})}function kt(e,t){Et(e,function(n){Et(t,function(i){n&&n.removeAttribute(i)})})}function Ee(e,t,n){Hn(t)?sn(t,function(i,o){Ee(e,o,i)}):Et(e,function(i){Lo(n)||n===""?kt(i,t):i.setAttribute(t,String(n))})}function Sn(e,t,n){var i=document.createElement(e);return t&&(Xt(t)?Mt(i,t):Ee(i,t)),n&&Qn(n,i),i}function It(e,t,n){if(Jn(n))return getComputedStyle(e)[t];Lo(n)||(e.style[t]=""+n)}function zn(e,t){It(e,"display",t)}function ta(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function Rt(e,t){return e.getAttribute(t)}function or(e,t){return e&&e.classList.contains(t)}function wt(e){return e.getBoundingClientRect()}function cn(e){Et(e,function(t){t&&t.parentNode&&t.parentNode.removeChild(t)})}function na(e){return ei(new DOMParser().parseFromString(e,"text/html").body)}function Ht(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function ia(e,t){return e&&e.querySelector(t)}function Ro(e,t){return t?Zt(e.querySelectorAll(t)):[]}function Ot(e,t){Bt(e,t,!1)}function ho(e){return e.timeStamp}function nn(e){return Xt(e)?e:e?e+"px":""}var ti="splide",Po="data-"+ti;function Fn(e,t){if(!e)throw new Error("["+ti+"] "+(t||""))}var Yt=Math.min,Ri=Math.max,Pi=Math.floor,Vn=Math.ceil,vt=Math.abs;function oa(e,t,n){return vt(e-t)<n}function Ci(e,t,n,i){var o=Yt(t,n),l=Ri(t,n);return i?o<e&&e<l:o<=e&&e<=l}function yn(e,t,n){var i=Yt(t,n),o=Ri(t,n);return Yt(Ri(i,e),o)}function fo(e){return+(e>0)-+(e<0)}function yo(e,t){return Et(t,function(n){e=e.replace("%s",""+n)}),e}function _o(e){return e<10?"0"+e:""+e}var rr={};function zl(e){return""+e+_o(rr[e]=(rr[e]||0)+1)}function ra(){var e=[];function t(s,d,a,u){o(s,d,function(p,I,S){var v="addEventListener"in p,g=v?p.removeEventListener.bind(p,I,a,u):p.removeListener.bind(p,a);v?p.addEventListener(I,a,u):p.addListener(a),e.push([p,I,S,a,g])})}function n(s,d,a){o(s,d,function(u,p,I){e=e.filter(function(S){return S[0]===u&&S[1]===p&&S[2]===I&&(!a||S[3]===a)?(S[4](),!1):!0})})}function i(s,d,a){var u,p=!0;return typeof CustomEvent=="function"?u=new CustomEvent(d,{bubbles:p,detail:a}):(u=document.createEvent("CustomEvent"),u.initCustomEvent(d,p,!1,a)),s.dispatchEvent(u),u}function o(s,d,a){Et(s,function(u){u&&Et(d,function(p){p.split(" ").forEach(function(I){var S=I.split(".");a(u,S[0],S[1])})})})}function l(){e.forEach(function(s){s[4]()}),Dt(e)}return{bind:t,unbind:n,dispatch:i,destroy:l}}var Qt="mounted",vo="ready",Gt="move",An="moved",Ao="click",aa="active",la="inactive",sa="visible",ca="hidden",it="refresh",gt="updated",wn="resize",Wi="resized",da="drag",ua="dragging",pa="dragged",Ni="scroll",un="scrolled",Vl="overflow",Mo="destroy",ma="arrows:mounted",ga="arrows:updated",ha="pagination:mounted",fa="pagination:updated",ko="navigation:mounted",Fo="autoplay:play",ya="autoplay:playing",Wo="autoplay:pause",No="lazyload:loaded",va="sk",ba="sh",_i="ei";function Qe(e){var t=e?e.event.bus:document.createDocumentFragment(),n=ra();function i(l,s){n.bind(t,Zn(l).join(" "),function(d){s.apply(s,To(d.detail)?d.detail:[])})}function o(l){n.dispatch(t,l,Zt(arguments,1))}return e&&e.event.on(Mo,n.destroy),jn(n,{bus:t,on:i,off:Ue(n.unbind,t),emit:o})}function Hi(e,t,n,i){var o=Date.now,l,s=0,d,a=!0,u=0;function p(){if(!a){if(s=e?Yt((o()-l)/e,1):1,n&&n(s),s>=1&&(t(),l=o(),i&&++u>=i))return S();d=nr(p)}}function I(T){T||g(),l=o()-(T?s*e:0),a=!1,d=nr(p)}function S(){a=!0}function v(){l=o(),s=0,n&&n(s)}function g(){d&&cancelAnimationFrame(d),s=0,d=0,a=!0}function h(T){e=T}function R(){return a}return{start:I,rewind:v,pause:S,cancel:g,set:h,isPaused:R}}function Dl(e){var t=e;function n(o){t=o}function i(o){return Eo(Zn(o),t)}return{set:n,is:i}}function Gl(e,t){var n=Hi(0,e,null,1);return function(){n.isPaused()&&n.start()}}function Kl(e,t,n){var i=e.state,o=n.breakpoints||{},l=n.reducedMotion||{},s=ra(),d=[];function a(){var g=n.mediaQuery==="min";On(o).sort(function(h,R){return g?+h-+R:+R-+h}).forEach(function(h){p(o[h],"("+(g?"min":"max")+"-width:"+h+"px)")}),p(l,tr),I()}function u(g){g&&s.destroy()}function p(g,h){var R=matchMedia(h);s.bind(R,"change",I),d.push([g,R])}function I(){var g=i.is(Ii),h=n.direction,R=d.reduce(function(T,y){return qt(T,y[1].matches?y[0]:{})},{});ir(n),v(R),n.destroy?e.destroy(n.destroy==="completely"):g?(u(!0),e.mount()):h!==n.direction&&e.refresh()}function S(g){matchMedia(tr).matches&&(g?qt(n,l):ir(n,On(l)))}function v(g,h,R){qt(n,g),h&&qt(Object.getPrototypeOf(n),g),(R||!i.is(xn))&&e.emit(gt,n)}return{setup:a,destroy:u,reduce:S,set:v}}var Bi="Arrow",Oi=Bi+"Left",ji=Bi+"Right",xa=Bi+"Up",Sa=Bi+"Down",ar="rtl",zi="ttb",Zi={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[xa,ji],ArrowRight:[Sa,Oi]};function Ul(e,t,n){function i(l,s,d){d=d||n.direction;var a=d===ar&&!s?1:d===zi?0:-1;return Zi[l]&&Zi[l][a]||l.replace(/width|left|right/i,function(u,p){var I=Zi[u.toLowerCase()][a]||u;return p>0?I.charAt(0).toUpperCase()+I.slice(1):I})}function o(l){return l*(n.direction===ar?1:-1)}return{resolve:i,orient:o}}var jt="role",Cn="tabindex",ql="disabled",Pt="aria-",ni=Pt+"controls",Ca=Pt+"current",lr=Pt+"selected",Tt=Pt+"label",Ho=Pt+"labelledby",$a=Pt+"hidden",Bo=Pt+"orientation",Dn=Pt+"roledescription",sr=Pt+"live",cr=Pt+"busy",dr=Pt+"atomic",Oo=[jt,Cn,ql,ni,Ca,Tt,Ho,$a,Bo,Dn],Ft=ti+"__",en="is-",Qi=ti,ur=Ft+"track",Xl=Ft+"list",Vi=Ft+"slide",wa=Vi+"--clone",Yl=Vi+"__container",jo=Ft+"arrows",Di=Ft+"arrow",Ta=Di+"--prev",La=Di+"--next",Gi=Ft+"pagination",Ea=Gi+"__page",Jl=Ft+"progress",Zl=Jl+"__bar",Ql=Ft+"toggle",es=Ft+"spinner",ts=Ft+"sr",ns=en+"initialized",dn=en+"active",Ia=en+"prev",Ra=en+"next",bo=en+"visible",xo=en+"loading",Pa=en+"focus-in",_a=en+"overflow",is=[dn,bo,Ia,Ra,xo,Pa,_a],os={slide:Vi,clone:wa,arrows:jo,arrow:Di,prev:Ta,next:La,pagination:Gi,page:Ea,spinner:es};function rs(e,t){if(Zr(e.closest))return e.closest(t);for(var n=e;n&&n.nodeType===1&&!Bn(n,t);)n=n.parentElement;return n}var as=5,pr=200,Aa="touchstart mousedown",eo="touchmove mousemove",to="touchend touchcancel mouseup click";function ls(e,t,n){var i=Qe(e),o=i.on,l=i.bind,s=e.root,d=n.i18n,a={},u=[],p=[],I=[],S,v,g;function h(){w(),N(),y()}function R(){o(it,T),o(it,h),o(gt,y),l(document,Aa+" keydown",function(C){g=C.type==="keydown"},{capture:!0}),l(s,"focusin",function(){Bt(s,Pa,!!g)})}function T(C){var P=Oo.concat("style");Dt(u),Ot(s,p),Ot(S,I),kt([S,v],P),kt(s,C?P:["style",Dn])}function y(){Ot(s,p),Ot(S,I),p=W(Qi),I=W(ur),Mt(s,p),Mt(S,I),Ee(s,Tt,n.label),Ee(s,Ho,n.labelledby)}function w(){S=_("."+ur),v=ei(S,"."+Xl),Fn(S&&v,"A track/list element is missing."),Si(u,ea(v,"."+Vi+":not(."+wa+")")),sn({arrows:jo,pagination:Gi,prev:Ta,next:La,bar:Zl,toggle:Ql},function(C,P){a[P]=_("."+C)}),jn(a,{root:s,track:S,list:v,slides:u})}function N(){var C=s.id||zl(ti),P=n.role;s.id=C,S.id=S.id||C+"-track",v.id=v.id||C+"-list",!Rt(s,jt)&&s.tagName!=="SECTION"&&P&&Ee(s,jt,P),Ee(s,Dn,d.carousel),Ee(v,jt,"presentation")}function _(C){var P=ia(s,C);return P&&rs(P,"."+Qi)===s?P:void 0}function W(C){return[C+"--"+n.type,C+"--"+n.direction,n.drag&&C+"--draggable",n.isNavigation&&C+"--nav",C===Qi&&dn]}return jn(a,{setup:h,mount:R,destroy:T})}var Tn="slide",Mn="loop",ii="fade";function ss(e,t,n,i){var o=Qe(e),l=o.on,s=o.emit,d=o.bind,a=e.Components,u=e.root,p=e.options,I=p.isNavigation,S=p.updateOnMove,v=p.i18n,g=p.pagination,h=p.slideFocus,R=a.Direction.resolve,T=Rt(i,"style"),y=Rt(i,Tt),w=n>-1,N=ei(i,"."+Yl),_;function W(){w||(i.id=u.id+"-slide"+_o(t+1),Ee(i,jt,g?"tabpanel":"group"),Ee(i,Dn,v.slide),Ee(i,Tt,y||yo(v.slideLabel,[t+1,e.length]))),C()}function C(){d(i,"click",Ue(s,Ao,F)),d(i,"keydown",Ue(s,va,F)),l([An,ba,un],k),l(ko,A),S&&l(Gt,E)}function P(){_=!0,o.destroy(),Ot(i,is),kt(i,Oo),Ee(i,"style",T),Ee(i,Tt,y||"")}function A(){var M=e.splides.map(function($){var O=$.splide.Components.Slides.getAt(t);return O?O.slide.id:""}).join(" ");Ee(i,Tt,yo(v.slideX,(w?n:t)+1)),Ee(i,ni,M),Ee(i,jt,h?"button":""),h&&kt(i,Dn)}function E(){_||k()}function k(){if(!_){var M=e.index;B(),V(),Bt(i,Ia,t===M-1),Bt(i,Ra,t===M+1)}}function B(){var M=ee();M!==or(i,dn)&&(Bt(i,dn,M),Ee(i,Ca,I&&M||""),s(M?aa:la,F))}function V(){var M=m(),$=!M&&(!ee()||w);if(e.state.is([_n,Yn])||Ee(i,$a,$||""),Ee(Ro(i,p.focusableNodes||""),Cn,$?-1:""),h&&Ee(i,Cn,$?-1:0),M!==or(i,bo)&&(Bt(i,bo,M),s(M?sa:ca,F)),!M&&document.activeElement===i){var O=a.Slides.getAt(e.index);O&&ta(O.slide)}}function K(M,$,O){It(O&&N||i,M,$)}function ee(){var M=e.index;return M===t||p.cloneStatus&&M===n}function m(){if(e.is(ii))return ee();var M=wt(a.Elements.track),$=wt(i),O=R("left",!0),U=R("right",!0);return Pi(M[O])<=Vn($[O])&&Pi($[U])<=Vn(M[U])}function b(M,$){var O=vt(M-t);return!w&&(p.rewind||e.is(Mn))&&(O=Yt(O,e.length-O)),O<=$}var F={index:t,slideIndex:n,slide:i,container:N,isClone:w,mount:W,destroy:P,update:k,style:K,isWithin:b};return F}function cs(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=i.bind,d=t.Elements,a=d.slides,u=d.list,p=[];function I(){S(),o(it,v),o(it,S)}function S(){a.forEach(function(k,B){h(k,B,-1)})}function v(){_(function(k){k.destroy()}),Dt(p)}function g(){_(function(k){k.update()})}function h(k,B,V){var K=ss(e,B,V,k);K.mount(),p.push(K),p.sort(function(ee,m){return ee.index-m.index})}function R(k){return k?W(function(B){return!B.isClone}):p}function T(k){var B=t.Controller,V=B.toIndex(k),K=B.hasFocus()?1:n.perPage;return W(function(ee){return Ci(ee.index,V,V+K-1)})}function y(k){return W(k)[0]}function w(k,B){Et(k,function(V){if(Xt(V)&&(V=na(V)),Qr(V)){var K=a[B];K?Io(V,K):Qn(u,V),Mt(V,n.classes.slide),P(V,Ue(l,wn))}}),l(it)}function N(k){cn(W(k).map(function(B){return B.slide})),l(it)}function _(k,B){R(B).forEach(k)}function W(k){return p.filter(Zr(k)?k:function(B){return Xt(k)?Bn(B.slide,k):Eo(Zn(k),B.index)})}function C(k,B,V){_(function(K){K.style(k,B,V)})}function P(k,B){var V=Ro(k,"img"),K=V.length;K?V.forEach(function(ee){s(ee,"load error",function(){--K||B()})}):B()}function A(k){return k?a.length:p.length}function E(){return p.length>n.perPage}return{mount:I,destroy:v,update:g,register:h,get:R,getIn:T,getAt:y,add:w,remove:N,forEach:_,filter:W,style:C,getLength:A,isEnough:E}}function ds(e,t,n){var i=Qe(e),o=i.on,l=i.bind,s=i.emit,d=t.Slides,a=t.Direction.resolve,u=t.Elements,p=u.root,I=u.track,S=u.list,v=d.getAt,g=d.style,h,R,T;function y(){w(),l(window,"resize load",Gl(Ue(s,wn))),o([gt,it],w),o(wn,N)}function w(){h=n.direction===zi,It(p,"maxWidth",nn(n.width)),It(I,a("paddingLeft"),_(!1)),It(I,a("paddingRight"),_(!0)),N(!0)}function N(F){var M=wt(p);(F||R.width!==M.width||R.height!==M.height)&&(It(I,"height",W()),g(a("marginRight"),nn(n.gap)),g("width",P()),g("height",A(),!0),R=M,s(Wi),T!==(T=b())&&(Bt(p,_a,T),s(Vl,T)))}function _(F){var M=n.padding,$=a(F?"right":"left");return M&&nn(M[$]||(Hn(M)?0:M))||"0px"}function W(){var F="";return h&&(F=C(),Fn(F,"height or heightRatio is missing."),F="calc("+F+" - "+_(!1)+" - "+_(!0)+")"),F}function C(){return nn(n.height||wt(S).width*n.heightRatio)}function P(){return n.autoWidth?null:nn(n.fixedWidth)||(h?"":E())}function A(){return nn(n.fixedHeight)||(h?n.autoHeight?null:E():C())}function E(){var F=nn(n.gap);return"calc((100%"+(F&&" + "+F)+")/"+(n.perPage||1)+(F&&" - "+F)+")"}function k(){return wt(S)[a("width")]}function B(F,M){var $=v(F||0);return $?wt($.slide)[a("width")]+(M?0:ee()):0}function V(F,M){var $=v(F);if($){var O=wt($.slide)[a("right")],U=wt(S)[a("left")];return vt(O-U)+(M?0:ee())}return 0}function K(F){return V(e.length-1)-V(0)+B(0,F)}function ee(){var F=v(0);return F&&parseFloat(It(F.slide,a("marginRight")))||0}function m(F){return parseFloat(It(I,a("padding"+(F?"Right":"Left"))))||0}function b(){return e.is(ii)||K(!0)>k()}return{mount:y,resize:N,listSize:k,slideSize:B,sliderSize:K,totalSize:V,getPadding:m,isOverflow:b}}var us=2;function ps(e,t,n){var i=Qe(e),o=i.on,l=t.Elements,s=t.Slides,d=t.Direction.resolve,a=[],u;function p(){o(it,I),o([gt,wn],v),(u=R())&&(g(u),t.Layout.resize(!0))}function I(){S(),p()}function S(){cn(a),Dt(a),i.destroy()}function v(){var T=R();u!==T&&(u<T||!T)&&i.emit(it)}function g(T){var y=s.get().slice(),w=y.length;if(w){for(;y.length<T;)Si(y,y);Si(y.slice(-T),y.slice(0,T)).forEach(function(N,_){var W=_<T,C=h(N.slide,_);W?Io(C,y[0].slide):Qn(l.list,C),Si(a,C),s.register(C,_-T+(W?0:w),N.index)})}}function h(T,y){var w=T.cloneNode(!0);return Mt(w,n.classes.clone),w.id=e.root.id+"-clone"+_o(y+1),w}function R(){var T=n.clones;if(!e.is(Mn))T=0;else if(Jn(T)){var y=n[d("fixedWidth")]&&t.Layout.slideSize(0),w=y&&Vn(wt(l.track)[d("width")]/y);T=w||n[d("autoWidth")]&&e.length||n.perPage*us}return T}return{mount:p,destroy:S}}function ms(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=e.state.set,d=t.Layout,a=d.slideSize,u=d.getPadding,p=d.totalSize,I=d.listSize,S=d.sliderSize,v=t.Direction,g=v.resolve,h=v.orient,R=t.Elements,T=R.list,y=R.track,w;function N(){w=t.Transition,o([Qt,Wi,gt,it],_)}function _(){t.Controller.isBusy()||(t.Scroll.cancel(),C(e.index),t.Slides.update())}function W($,O,U,te){$!==O&&F($>U)&&(k(),P(E(K(),$>U),!0)),s(_n),l(Gt,O,U,$),w.start(O,function(){s($n),l(An,O,U,$),te&&te()})}function C($){P(V($,!0))}function P($,O){if(!e.is(ii)){var U=O?$:A($);It(T,"transform","translate"+g("X")+"("+U+"px)"),$!==U&&l(ba)}}function A($){if(e.is(Mn)){var O=B($),U=O>t.Controller.getEnd(),te=O<0;(te||U)&&($=E($,U))}return $}function E($,O){var U=$-b(O),te=S();return $-=h(te*(Vn(vt(U)/te)||1))*(O?1:-1),$}function k(){P(K(),!0),w.cancel()}function B($){for(var O=t.Slides.get(),U=0,te=1/0,Y=0;Y<O.length;Y++){var fe=O[Y].index,x=vt(V(fe,!0)-$);if(x<=te)te=x,U=fe;else break}return U}function V($,O){var U=h(p($-1)-m($));return O?ee(U):U}function K(){var $=g("left");return wt(T)[$]-wt(y)[$]+h(u(!1))}function ee($){return n.trimSpace&&e.is(Tn)&&($=yn($,0,h(S(!0)-I()))),$}function m($){var O=n.focus;return O==="center"?(I()-a($,!0))/2:+O*a($)||0}function b($){return V($?t.Controller.getEnd():0,!!n.trimSpace)}function F($){var O=h(E(K(),$));return $?O>=0:O<=T[g("scrollWidth")]-wt(y)[g("width")]}function M($,O){O=Jn(O)?K():O;var U=$!==!0&&h(O)<h(b(!1)),te=$!==!1&&h(O)>h(b(!0));return U||te}return{mount:N,move:W,jump:C,translate:P,shift:E,cancel:k,toIndex:B,toPosition:V,getPosition:K,getLimit:b,exceededLimit:M,reposition:_}}function gs(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=t.Move,d=s.getPosition,a=s.getLimit,u=s.toPosition,p=t.Slides,I=p.isEnough,S=p.getLength,v=n.omitEnd,g=e.is(Mn),h=e.is(Tn),R=Ue(K,!1),T=Ue(K,!0),y=n.start||0,w,N=y,_,W,C;function P(){A(),o([gt,it,_i],A),o(Wi,E)}function A(){_=S(!0),W=n.perMove,C=n.perPage,w=F();var x=yn(y,0,v?w:_-1);x!==y&&(y=x,s.reposition())}function E(){w!==F()&&l(_i)}function k(x,q,he){if(!fe()){var pe=V(x),be=b(pe);be>-1&&(q||be!==y)&&(U(be),s.move(pe,be,N,he))}}function B(x,q,he,pe){t.Scroll.scroll(x,q,he,function(){var be=b(s.toIndex(d()));U(v?Yt(be,w):be),pe&&pe()})}function V(x){var q=y;if(Xt(x)){var he=x.match(/([+\-<>])(\d+)?/)||[],pe=he[1],be=he[2];pe==="+"||pe==="-"?q=ee(y+ +(""+pe+(+be||1)),y):pe===">"?q=be?M(+be):R(!0):pe==="<"&&(q=T(!0))}else q=g?x:yn(x,0,w);return q}function K(x,q){var he=W||(Y()?1:C),pe=ee(y+he*(x?-1:1),y,!(W||Y()));return pe===-1&&h&&!oa(d(),a(!x),1)?x?0:w:q?pe:b(pe)}function ee(x,q,he){if(I()||Y()){var pe=m(x);pe!==x&&(q=x,x=pe,he=!1),x<0||x>w?!W&&(Ci(0,x,q,!0)||Ci(w,q,x,!0))?x=M($(x)):g?x=he?x<0?-(_%C||C):_:x:n.rewind?x=x<0?w:0:x=-1:he&&x!==q&&(x=M($(q)+(x<q?-1:1)))}else x=-1;return x}function m(x){if(h&&n.trimSpace==="move"&&x!==y)for(var q=d();q===u(x,!0)&&Ci(x,0,e.length-1,!n.rewind);)x<y?--x:++x;return x}function b(x){return g?(x+_)%_||0:x}function F(){for(var x=_-(Y()||g&&W?1:C);v&&x-- >0;)if(u(_-1,!0)!==u(x,!0)){x++;break}return yn(x,0,_-1)}function M(x){return yn(Y()?x:C*x,0,w)}function $(x){return Y()?Yt(x,w):Pi((x>=w?_-1:x)/C)}function O(x){var q=s.toIndex(x);return h?yn(q,0,w):q}function U(x){x!==y&&(N=y,y=x)}function te(x){return x?N:y}function Y(){return!Jn(n.focus)||n.isNavigation}function fe(){return e.state.is([_n,Yn])&&!!n.waitForTransition}return{mount:P,go:k,scroll:B,getNext:R,getPrev:T,getAdjacent:K,getEnd:F,setIndex:U,getIndex:te,toIndex:M,toPage:$,toDest:O,hasFocus:Y,isBusy:fe}}var hs="http://www.w3.org/2000/svg",fs="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",ci=40;function ys(e,t,n){var i=Qe(e),o=i.on,l=i.bind,s=i.emit,d=n.classes,a=n.i18n,u=t.Elements,p=t.Controller,I=u.arrows,S=u.track,v=I,g=u.prev,h=u.next,R,T,y={};function w(){_(),o(gt,N)}function N(){W(),w()}function _(){var B=n.arrows;B&&!(g&&h)&&A(),g&&h&&(jn(y,{prev:g,next:h}),zn(v,B?"":"none"),Mt(v,T=jo+"--"+n.direction),B&&(C(),k(),Ee([g,h],ni,S.id),s(ma,g,h)))}function W(){i.destroy(),Ot(v,T),R?(cn(I?[g,h]:v),g=h=null):kt([g,h],Oo)}function C(){o([Qt,An,it,un,_i],k),l(h,"click",Ue(P,">")),l(g,"click",Ue(P,"<"))}function P(B){p.go(B,!0)}function A(){v=I||Sn("div",d.arrows),g=E(!0),h=E(!1),R=!0,Qn(v,[g,h]),!I&&Io(v,S)}function E(B){var V='<button class="'+d.arrow+" "+(B?d.prev:d.next)+'" type="button"><svg xmlns="'+hs+'" viewBox="0 0 '+ci+" "+ci+'" width="'+ci+'" height="'+ci+'" focusable="false"><path d="'+(n.arrowPath||fs)+'" />';return na(V)}function k(){if(g&&h){var B=e.index,V=p.getPrev(),K=p.getNext(),ee=V>-1&&B<V?a.last:a.prev,m=K>-1&&B>K?a.first:a.next;g.disabled=V<0,h.disabled=K<0,Ee(g,Tt,ee),Ee(h,Tt,m),s(ga,g,h,V,K)}}return{arrows:y,mount:w,destroy:W,update:k}}var vs=Po+"-interval";function bs(e,t,n){var i=Qe(e),o=i.on,l=i.bind,s=i.emit,d=Hi(n.interval,e.go.bind(e,">"),C),a=d.isPaused,u=t.Elements,p=t.Elements,I=p.root,S=p.toggle,v=n.autoplay,g,h,R=v==="pause";function T(){v&&(y(),S&&Ee(S,ni,u.track.id),R||w(),W())}function y(){n.pauseOnHover&&l(I,"mouseenter mouseleave",function(A){g=A.type==="mouseenter",_()}),n.pauseOnFocus&&l(I,"focusin focusout",function(A){h=A.type==="focusin",_()}),S&&l(S,"click",function(){R?w():N(!0)}),o([Gt,Ni,it],d.rewind),o(Gt,P)}function w(){a()&&t.Slides.isEnough()&&(d.start(!n.resetProgress),h=g=R=!1,W(),s(Fo))}function N(A){A===void 0&&(A=!0),R=!!A,W(),a()||(d.pause(),s(Wo))}function _(){R||(g||h?N(!1):w())}function W(){S&&(Bt(S,dn,!R),Ee(S,Tt,n.i18n[R?"play":"pause"]))}function C(A){var E=u.bar;E&&It(E,"width",A*100+"%"),s(ya,A)}function P(A){var E=t.Slides.getAt(A);d.set(E&&+Rt(E.slide,vs)||n.interval)}return{mount:T,destroy:d.cancel,play:w,pause:N,isPaused:a}}function xs(e,t,n){var i=Qe(e),o=i.on;function l(){n.cover&&(o(No,Ue(d,!0)),o([Qt,gt,it],Ue(s,!0)))}function s(a){t.Slides.forEach(function(u){var p=ei(u.container||u.slide,"img");p&&p.src&&d(a,p,u)})}function d(a,u,p){p.style("background",a?'center/cover no-repeat url("'+u.src+'")':"",!0),zn(u,a?"none":"")}return{mount:l,destroy:Ue(s,!1)}}var Ss=10,Cs=600,$s=.6,ws=1.5,Ts=800;function Ls(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=e.state.set,d=t.Move,a=d.getPosition,u=d.getLimit,p=d.exceededLimit,I=d.translate,S=e.is(Tn),v,g,h=1;function R(){o(Gt,N),o([gt,it],_)}function T(C,P,A,E,k){var B=a();if(N(),A&&(!S||!p())){var V=t.Layout.sliderSize(),K=fo(C)*V*Pi(vt(C)/V)||0;C=d.toPosition(t.Controller.toDest(C%V))+K}var ee=oa(B,C,1);h=1,P=ee?0:P||Ri(vt(C-B)/ws,Ts),g=E,v=Hi(P,y,Ue(w,B,C,k),1),s(Yn),l(Ni),v.start()}function y(){s($n),g&&g(),l(un)}function w(C,P,A,E){var k=a(),B=C+(P-C)*W(E),V=(B-k)*h;I(k+V),S&&!A&&p()&&(h*=$s,vt(V)<Ss&&T(u(p(!0)),Cs,!1,g,!0))}function N(){v&&v.cancel()}function _(){v&&!v.isPaused()&&(N(),y())}function W(C){var P=n.easingFunc;return P?P(C):1-Math.pow(1-C,4)}return{mount:R,destroy:N,scroll:T,cancel:_}}var vn={passive:!1,capture:!0};function Es(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=i.bind,d=i.unbind,a=e.state,u=t.Move,p=t.Scroll,I=t.Controller,S=t.Elements.track,v=t.Media.reduce,g=t.Direction,h=g.resolve,R=g.orient,T=u.getPosition,y=u.exceededLimit,w,N,_,W,C,P=!1,A,E,k;function B(){s(S,eo,go,vn),s(S,to,go,vn),s(S,Aa,K,vn),s(S,"click",b,{capture:!0}),s(S,"dragstart",Ht),o([Qt,gt],V)}function V(){var G=n.drag;me(!G),W=G==="free"}function K(G){if(A=!1,!E){var f=be(G);pe(G.target)&&(f||!G.button)&&(I.isBusy()?Ht(G,!0):(k=f?S:window,C=a.is([_n,Yn]),_=null,s(k,eo,ee,vn),s(k,to,m,vn),u.cancel(),p.cancel(),F(G)))}}function ee(G){if(a.is(xi)||(a.set(xi),l(da)),G.cancelable)if(C){u.translate(w+he(Y(G)));var f=fe(G)>pr,H=P!==(P=y());(f||H)&&F(G),A=!0,l(ua),Ht(G)}else O(G)&&(C=$(G),Ht(G))}function m(G){a.is(xi)&&(a.set($n),l(pa)),C&&(M(G),Ht(G)),d(k,eo,ee),d(k,to,m),C=!1}function b(G){!E&&A&&Ht(G,!0)}function F(G){_=N,N=G,w=T()}function M(G){var f=U(G),H=te(f),j=n.rewind&&n.rewindByDrag;v(!1),W?I.scroll(H,0,n.snap):e.is(ii)?I.go(R(fo(f))<0?j?"<":"-":j?">":"+"):e.is(Tn)&&P&&j?I.go(y(!0)?">":"<"):I.go(I.toDest(H),!0),v(!0)}function $(G){var f=n.dragMinThreshold,H=Hn(f),j=H&&f.mouse||0,ne=(H?f.touch:+f)||10;return vt(Y(G))>(be(G)?ne:j)}function O(G){return vt(Y(G))>vt(Y(G,!0))}function U(G){if(e.is(Mn)||!P){var f=fe(G);if(f&&f<pr)return Y(G)/f}return 0}function te(G){return T()+fo(G)*Yt(vt(G)*(n.flickPower||600),W?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}function Y(G,f){return q(G,f)-q(x(G),f)}function fe(G){return ho(G)-ho(x(G))}function x(G){return N===G&&_||N}function q(G,f){return(be(G)?G.changedTouches[0]:G)["page"+h(f?"Y":"X")]}function he(G){return G/(P&&e.is(Tn)?as:1)}function pe(G){var f=n.noDrag;return!Bn(G,"."+Ea+", ."+Di)&&(!f||!Bn(G,f))}function be(G){return typeof TouchEvent<"u"&&G instanceof TouchEvent}function J(){return C}function me(G){E=G}return{mount:B,disable:me,isDragging:J}}var Is={Spacebar:" ",Right:ji,Left:Oi,Up:xa,Down:Sa};function zo(e){return e=Xt(e)?e:e.key,Is[e]||e}var mr="keydown";function Rs(e,t,n){var i=Qe(e),o=i.on,l=i.bind,s=i.unbind,d=e.root,a=t.Direction.resolve,u,p;function I(){S(),o(gt,v),o(gt,S),o(Gt,h)}function S(){var T=n.keyboard;T&&(u=T==="global"?window:d,l(u,mr,R))}function v(){s(u,mr)}function g(T){p=T}function h(){var T=p;p=!0,Jr(function(){p=T})}function R(T){if(!p){var y=zo(T);y===a(Oi)?e.go("<"):y===a(ji)&&e.go(">")}}return{mount:I,destroy:v,disable:g}}var Wn=Po+"-lazy",$i=Wn+"-srcset",Ps="["+Wn+"], ["+$i+"]";function _s(e,t,n){var i=Qe(e),o=i.on,l=i.off,s=i.bind,d=i.emit,a=n.lazyLoad==="sequential",u=[An,un],p=[];function I(){n.lazyLoad&&(S(),o(it,S))}function S(){Dt(p),v(),a?T():(l(u),o(u,g),g())}function v(){t.Slides.forEach(function(y){Ro(y.slide,Ps).forEach(function(w){var N=Rt(w,Wn),_=Rt(w,$i);if(N!==w.src||_!==w.srcset){var W=n.classes.spinner,C=w.parentElement,P=ei(C,"."+W)||Sn("span",W,C);p.push([w,y,P]),w.src||zn(w,"none")}})})}function g(){p=p.filter(function(y){var w=n.perPage*((n.preloadPages||1)+1)-1;return y[1].isWithin(e.index,w)?h(y):!0}),p.length||l(u)}function h(y){var w=y[0];Mt(y[1].slide,xo),s(w,"load error",Ue(R,y)),Ee(w,"src",Rt(w,Wn)),Ee(w,"srcset",Rt(w,$i)),kt(w,Wn),kt(w,$i)}function R(y,w){var N=y[0],_=y[1];Ot(_.slide,xo),w.type!=="error"&&(cn(y[2]),zn(N,""),d(No,N,_),d(wn)),a&&T()}function T(){p.length&&h(p.shift())}return{mount:I,destroy:Ue(Dt,p),check:g}}function As(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=i.bind,d=t.Slides,a=t.Elements,u=t.Controller,p=u.hasFocus,I=u.getIndex,S=u.go,v=t.Direction.resolve,g=a.pagination,h=[],R,T;function y(){w(),o([gt,it,_i],y);var E=n.pagination;g&&zn(g,E?"":"none"),E&&(o([Gt,Ni,un],A),N(),A(),l(ha,{list:R,items:h},P(e.index)))}function w(){R&&(cn(g?Zt(R.children):R),Ot(R,T),Dt(h),R=null),i.destroy()}function N(){var E=e.length,k=n.classes,B=n.i18n,V=n.perPage,K=p()?u.getEnd()+1:Vn(E/V);R=g||Sn("ul",k.pagination,a.track.parentElement),Mt(R,T=Gi+"--"+C()),Ee(R,jt,"tablist"),Ee(R,Tt,B.select),Ee(R,Bo,C()===zi?"vertical":"");for(var ee=0;ee<K;ee++){var m=Sn("li",null,R),b=Sn("button",{class:k.page,type:"button"},m),F=d.getIn(ee).map(function($){return $.slide.id}),M=!p()&&V>1?B.pageX:B.slideX;s(b,"click",Ue(_,ee)),n.paginationKeyboard&&s(b,"keydown",Ue(W,ee)),Ee(m,jt,"presentation"),Ee(b,jt,"tab"),Ee(b,ni,F.join(" ")),Ee(b,Tt,yo(M,ee+1)),Ee(b,Cn,-1),h.push({li:m,button:b,page:ee})}}function _(E){S(">"+E,!0)}function W(E,k){var B=h.length,V=zo(k),K=C(),ee=-1;V===v(ji,!1,K)?ee=++E%B:V===v(Oi,!1,K)?ee=(--E+B)%B:V==="Home"?ee=0:V==="End"&&(ee=B-1);var m=h[ee];m&&(ta(m.button),S(">"+ee),Ht(k,!0))}function C(){return n.paginationDirection||n.direction}function P(E){return h[u.toPage(E)]}function A(){var E=P(I(!0)),k=P(I());if(E){var B=E.button;Ot(B,dn),kt(B,lr),Ee(B,Cn,-1)}if(k){var V=k.button;Mt(V,dn),Ee(V,lr,!0),Ee(V,Cn,"")}l(fa,{list:R,items:h},E,k)}return{items:h,mount:y,destroy:w,getAt:P,update:A}}var Ms=[" ","Enter"];function ks(e,t,n){var i=n.isNavigation,o=n.slideFocus,l=[];function s(){e.splides.forEach(function(g){g.isParent||(u(e,g.splide),u(g.splide,e))}),i&&p()}function d(){l.forEach(function(g){g.destroy()}),Dt(l)}function a(){d(),s()}function u(g,h){var R=Qe(g);R.on(Gt,function(T,y,w){h.go(h.is(Mn)?w:T)}),l.push(R)}function p(){var g=Qe(e),h=g.on;h(Ao,S),h(va,v),h([Qt,gt],I),l.push(g),g.emit(ko,e.splides)}function I(){Ee(t.Elements.list,Bo,n.direction===zi?"vertical":"")}function S(g){e.go(g.index)}function v(g,h){Eo(Ms,zo(h))&&(S(g),Ht(h))}return{setup:Ue(t.Media.set,{slideFocus:Jn(o)?i:o},!0),mount:s,destroy:d,remount:a}}function Fs(e,t,n){var i=Qe(e),o=i.bind,l=0;function s(){n.wheel&&o(t.Elements.track,"wheel",d,vn)}function d(u){if(u.cancelable){var p=u.deltaY,I=p<0,S=ho(u),v=n.wheelMinThreshold||0,g=n.wheelSleep||0;vt(p)>v&&S-l>g&&(e.go(I?"<":">"),l=S),a(I)&&Ht(u)}}function a(u){return!n.releaseWheel||e.state.is(_n)||t.Controller.getAdjacent(u)!==-1}return{mount:s}}var Ws=90;function Ns(e,t,n){var i=Qe(e),o=i.on,l=t.Elements.track,s=n.live&&!n.isNavigation,d=Sn("span",ts),a=Hi(Ws,Ue(p,!1));function u(){s&&(S(!t.Autoplay.isPaused()),Ee(l,dr,!0),d.textContent="…",o(Fo,Ue(S,!0)),o(Wo,Ue(S,!1)),o([An,un],Ue(p,!0)))}function p(v){Ee(l,cr,v),v?(Qn(l,d),a.start()):(cn(d),a.cancel())}function I(){kt(l,[sr,dr,cr]),cn(d)}function S(v){s&&Ee(l,sr,v?"off":"polite")}return{mount:u,disable:S,destroy:I}}var Hs=Object.freeze({__proto__:null,Media:Kl,Direction:Ul,Elements:ls,Slides:cs,Layout:ds,Clones:ps,Move:ms,Controller:gs,Arrows:ys,Autoplay:bs,Cover:xs,Scroll:Ls,Drag:Es,Keyboard:Rs,LazyLoad:_s,Pagination:As,Sync:ks,Wheel:Fs,Live:Ns}),Bs={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"},Os={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:os,i18n:Bs,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function js(e,t,n){var i=t.Slides;function o(){Qe(e).on([Qt,it],l)}function l(){i.forEach(function(d){d.style("transform","translateX(-"+100*d.index+"%)")})}function s(d,a){i.style("transition","opacity "+n.speed+"ms "+n.easing),Jr(a)}return{mount:o,start:s,cancel:go}}function zs(e,t,n){var i=t.Move,o=t.Controller,l=t.Scroll,s=t.Elements.list,d=Ue(It,s,"transition"),a;function u(){Qe(e).bind(s,"transitionend",function(v){v.target===s&&a&&(I(),a())})}function p(v,g){var h=i.toPosition(v,!0),R=i.getPosition(),T=S(v);vt(h-R)>=1&&T>=1?n.useScroll?l.scroll(h,T,!1,g):(d("transform "+T+"ms "+n.easing),i.translate(h,!0),a=g):(i.jump(v),g())}function I(){d(""),l.cancel()}function S(v){var g=n.rewindSpeed;if(e.is(Tn)&&g){var h=o.getIndex(!0),R=o.getEnd();if(h===0&&v>=R||h>=R&&v===0)return g}return n.speed}return{mount:u,start:p,cancel:I}}var Vs=(function(){function e(n,i){this.event=Qe(),this.Components={},this.state=Dl(xn),this.splides=[],this._o={},this._E={};var o=Xt(n)?ia(document,n):n;Fn(o,o+" is invalid."),this.root=o,i=qt({label:Rt(o,Tt)||"",labelledby:Rt(o,Ho)||""},Os,e.defaults,i||{});try{qt(i,JSON.parse(Rt(o,Po)))}catch{Fn(!1,"Invalid JSON")}this._o=Object.create(qt({},i))}var t=e.prototype;return t.mount=function(i,o){var l=this,s=this.state,d=this.Components;Fn(s.is([xn,Ii]),"Already mounted!"),s.set(xn),this._C=d,this._T=o||this._T||(this.is(ii)?js:zs),this._E=i||this._E;var a=jn({},Hs,this._E,{Transition:this._T});return sn(a,function(u,p){var I=u(l,d,l._o);d[p]=I,I.setup&&I.setup()}),sn(d,function(u){u.mount&&u.mount()}),this.emit(Qt),Mt(this.root,ns),s.set($n),this.emit(vo),this},t.sync=function(i){return this.splides.push({splide:i}),i.splides.push({splide:this,isParent:!0}),this.state.is($n)&&(this._C.Sync.remount(),i.Components.Sync.remount()),this},t.go=function(i){return this._C.Controller.go(i),this},t.on=function(i,o){return this.event.on(i,o),this},t.off=function(i){return this.event.off(i),this},t.emit=function(i){var o;return(o=this.event).emit.apply(o,[i].concat(Zt(arguments,1))),this},t.add=function(i,o){return this._C.Slides.add(i,o),this},t.remove=function(i){return this._C.Slides.remove(i),this},t.is=function(i){return this._o.type===i},t.refresh=function(){return this.emit(it),this},t.destroy=function(i){i===void 0&&(i=!0);var o=this.event,l=this.state;return l.is(xn)?Qe(this).on(vo,this.destroy.bind(this,i)):(sn(this._C,function(s){s.destroy&&s.destroy(i)},!0),o.emit(Mo),o.destroy(),i&&Dt(this.splides),l.set(Ii)),this},Bl(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})(),Vo=Vs;Vo.defaults={};Vo.STATES=jl;var gr=[[Qt,"onMounted"],[vo,"onReady"],[Gt,"onMove"],[An,"onMoved"],[Ao,"onClick"],[aa,"onActive"],[la,"onInactive"],[sa,"onVisible"],[ca,"onHidden"],[it,"onRefresh"],[gt,"onUpdated"],[wn,"onResize"],[Wi,"onResized"],[da,"onDrag"],[ua,"onDragging"],[pa,"onDragged"],[Ni,"onScroll"],[un,"onScrolled"],[Mo,"onDestroy"],[ma,"onArrowsMounted"],[ga,"onArrowsUpdated"],[ha,"onPaginationMounted"],[fa,"onPaginationUpdated"],[ko,"onNavigationMounted"],[Fo,"onAutoplayPlay"],[ya,"onAutoplayPlaying"],[Wo,"onAutoplayPause"],[No,"onLazyLoadLoaded"]];function Do(...e){return e.filter(Boolean).join(" ")}function Ai(e){return e!==null&&typeof e=="object"}function So(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some((n,i)=>!So(n,t[i]));if(Ai(e)&&Ai(t)){const n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&!n.some(o=>!Object.prototype.hasOwnProperty.call(t,o)||!So(e[o],t[o]))}return e===t}function Ds(e,t){return e.length===t.length&&!e.some((n,i)=>n!==t[i])}function Gs(e,t){if(e){const n=Object.keys(e);for(let i=0;i<n.length;i++){const o=n[i];if(o!=="__proto__"&&t(e[o],o)===!1)break}}return e}function Co(e,t){const n=e;return Gs(t,(i,o)=>{Array.isArray(i)?n[o]=i.slice():Ai(i)?n[o]=Co(Ai(n[o])?n[o]:{},i):n[o]=i}),n}var Ks=({children:e,className:t,...n})=>c.createElement("div",{className:Do("splide__track",t),...n},c.createElement("ul",{className:"splide__list"},e)),Go=class extends c.Component{constructor(){super(...arguments),this.splideRef=c.createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:t,transition:n}=this.props,{current:i}=this.splideRef;i&&(this.splide=new Vo(i,e),this.bind(this.splide),this.splide.mount(t,n),this.options=Co({},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&&!So(this.options,e)&&(this.splide.options=e,this.options=Co({},e));const t=this.getSlides();Ds(this.slides,t)||(this.splide.refresh(),this.slides=t)}sync(e){var t;(t=this.splide)==null||t.sync(e)}go(e){var t;(t=this.splide)==null||t.go(e)}getSlides(){var e;if(this.splide){const t=(e=this.splide.Components.Elements)==null?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}bind(e){gr.forEach(([t,n])=>{const i=this.props[n];typeof i=="function"&&e.on(t,(...o)=>{i(e,...o)})})}omit(e,t){return t.forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]}),e}render(){const{className:e,tag:t="div",hasTrack:n=!0,children:i,...o}=this.props;return c.createElement(t,{className:Do("splide",e),ref:this.splideRef,...this.omit(o,["options",...gr.map(l=>l[1])])},n?c.createElement(Ks,null,i):i)}},Ko=({children:e,className:t,...n})=>c.createElement("li",{className:Do("splide__slide",t),...n},e);/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),c=require("react"),Be=require("classnames"),L=require("./readTestimonialTextMeasure-CB_Uq-fO.js"),Xn=require("react-dom");function qa(e){return e.type==="object"&&e.version===1}const Xa="ControlSlider-module__wrapper___sHEkd",Ya="ControlSlider-module__hoverArrow___A-dOH",Ja="ControlSlider-module__sliderItem___QQSkR",Za="ControlSlider-module__sliderImage___9hRl-",Qa="ControlSlider-module__arrow___05ghY",el="ControlSlider-module__arrowVertical___tBfVN",tl="ControlSlider-module__nextArrow___-30Yc",nl="ControlSlider-module__arrowInner___aEra3",il="ControlSlider-module__arrowIcon___S4ztF",ol="ControlSlider-module__arrowImg___2dwJW",rl="ControlSlider-module__mirror___brd6U",al="ControlSlider-module__pagination___bicLF",ll="ControlSlider-module__paginationInner___bT-P-",sl="ControlSlider-module__paginationVertical___zYqKw",cl="ControlSlider-module__paginationItem___nTRbk",dl="ControlSlider-module__dot___p1Qun",ul="ControlSlider-module__activeDot___LHFaj",pl="ControlSlider-module__paginationInsideBottom___R3FWn",ml="ControlSlider-module__paginationInsideTop___V-qb-",gl="ControlSlider-module__paginationOutsideBottom___14w8D",hl="ControlSlider-module__paginationOutsideTop___SCLqB",fl="ControlSlider-module__paginationInsideLeft___yOBRZ",yl="ControlSlider-module__paginationInsideRight___Rtt3o",vl="ControlSlider-module__paginationOutsideLeft___lahaw",bl="ControlSlider-module__paginationOutsideRight___EtuQa",xl="ControlSlider-module__imgWrapper___UjEgB",Sl="ControlSlider-module__captionBlock___dJ6-j",Cl="ControlSlider-module__captionTextWrapper___HFlpf",$l="ControlSlider-module__captionText___uGBVc",wl="ControlSlider-module__active___WZK4G",Tl="ControlSlider-module__withPointerEvents___t-18M",Ll="ControlSlider-module__topLeftAlignment___zjnGM",El="ControlSlider-module__topCenterAlignment___gD1xW",Il="ControlSlider-module__topRightAlignment___NMapS",Rl="ControlSlider-module__middleLeftAlignment___OnUrY",Pl="ControlSlider-module__middleCenterAlignment___Tdkl0",_l="ControlSlider-module__middleRightAlignment___wEbfX",Al="ControlSlider-module__bottomLeftAlignment___cTP2-",Ml="ControlSlider-module__bottomCenterAlignment___c54fB",kl="ControlSlider-module__bottomRightAlignment___kEwrz",Fl="ControlSlider-module__clickOverlay___DZA28",Wl="ControlSlider-module__contain___pLyq7",Nl="ControlSlider-module__cover___KdDat",ye={wrapper:Xa,hoverArrow:Ya,sliderItem:Ja,sliderImage:Za,arrow:Qa,arrowVertical:el,nextArrow:tl,arrowInner:nl,arrowIcon:il,arrowImg:ol,mirror:rl,pagination:al,paginationInner:ll,paginationVertical:sl,paginationItem:cl,dot:dl,activeDot:ul,paginationInsideBottom:pl,paginationInsideTop:ml,paginationOutsideBottom:gl,paginationOutsideTop:hl,paginationInsideLeft:fl,paginationInsideRight:yl,paginationOutsideLeft:vl,paginationOutsideRight:bl,imgWrapper:xl,captionBlock:Sl,captionTextWrapper:Cl,captionText:$l,active:wl,withPointerEvents:Tl,topLeftAlignment:Ll,topCenterAlignment:El,topRightAlignment:Il,middleLeftAlignment:Rl,middleCenterAlignment:Pl,middleRightAlignment:_l,bottomLeftAlignment:Al,bottomCenterAlignment:Ml,bottomRightAlignment:kl,clickOverlay:Fl,contain:Wl,cover:Nl};function Hl(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Bl(e,t,n){return t&&Hl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var tr="(prefers-reduced-motion: reduce)",xn=1,Ol=2,$n=3,_n=4,Yn=5,bi=6,Ii=7,jl={CREATED:xn,MOUNTED:Ol,IDLE:$n,MOVING:_n,SCROLLING:Yn,DRAGGING:bi,DESTROYED:Ii};function Dt(e){e.length=0}function Zt(e,t,n){return Array.prototype.slice.call(e,t,n)}function Ue(e){return e.bind.apply(e,[null].concat(Zt(arguments,1)))}var Jr=setTimeout,go=function(){};function nr(e){return requestAnimationFrame(e)}function Fi(e,t){return typeof t===e}function Hn(e){return!Lo(e)&&Fi("object",e)}var To=Array.isArray,Zr=Ue(Fi,"function"),Xt=Ue(Fi,"string"),Jn=Ue(Fi,"undefined");function Lo(e){return e===null}function Qr(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function Zn(e){return To(e)?e:[e]}function Et(e,t){Zn(e).forEach(t)}function Eo(e,t){return e.indexOf(t)>-1}function xi(e,t){return e.push.apply(e,Zn(t)),e}function Bt(e,t,n){e&&Et(t,function(i){i&&e.classList[n?"add":"remove"](i)})}function Mt(e,t){Bt(e,Xt(t)?t.split(" "):t,!0)}function Qn(e,t){Et(t,e.appendChild.bind(e))}function Io(e,t){Et(e,function(n){var i=(t||n).parentNode;i&&i.insertBefore(n,t)})}function Bn(e,t){return Qr(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function ea(e,t){var n=e?Zt(e.children):[];return t?n.filter(function(i){return Bn(i,t)}):n}function ei(e,t){return t?ea(e,t)[0]:e.firstElementChild}var On=Object.keys;function sn(e,t,n){return e&&(n?On(e).reverse():On(e)).forEach(function(i){i!=="__proto__"&&t(e[i],i)}),e}function jn(e){return Zt(arguments,1).forEach(function(t){sn(t,function(n,i){e[i]=t[i]})}),e}function qt(e){return Zt(arguments,1).forEach(function(t){sn(t,function(n,i){To(n)?e[i]=n.slice():Hn(n)?e[i]=qt({},Hn(e[i])?e[i]:{},n):e[i]=n})}),e}function ir(e,t){Et(t||On(e),function(n){delete e[n]})}function kt(e,t){Et(e,function(n){Et(t,function(i){n&&n.removeAttribute(i)})})}function Ee(e,t,n){Hn(t)?sn(t,function(i,o){Ee(e,o,i)}):Et(e,function(i){Lo(n)||n===""?kt(i,t):i.setAttribute(t,String(n))})}function Sn(e,t,n){var i=document.createElement(e);return t&&(Xt(t)?Mt(i,t):Ee(i,t)),n&&Qn(n,i),i}function It(e,t,n){if(Jn(n))return getComputedStyle(e)[t];Lo(n)||(e.style[t]=""+n)}function zn(e,t){It(e,"display",t)}function ta(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function Rt(e,t){return e.getAttribute(t)}function or(e,t){return e&&e.classList.contains(t)}function wt(e){return e.getBoundingClientRect()}function cn(e){Et(e,function(t){t&&t.parentNode&&t.parentNode.removeChild(t)})}function na(e){return ei(new DOMParser().parseFromString(e,"text/html").body)}function Ht(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function ia(e,t){return e&&e.querySelector(t)}function Ro(e,t){return t?Zt(e.querySelectorAll(t)):[]}function Ot(e,t){Bt(e,t,!1)}function ho(e){return e.timeStamp}function nn(e){return Xt(e)?e:e?e+"px":""}var ti="splide",Po="data-"+ti;function Fn(e,t){if(!e)throw new Error("["+ti+"] "+(t||""))}var Yt=Math.min,Ri=Math.max,Pi=Math.floor,Vn=Math.ceil,vt=Math.abs;function oa(e,t,n){return vt(e-t)<n}function Si(e,t,n,i){var o=Yt(t,n),l=Ri(t,n);return i?o<e&&e<l:o<=e&&e<=l}function yn(e,t,n){var i=Yt(t,n),o=Ri(t,n);return Yt(Ri(i,e),o)}function fo(e){return+(e>0)-+(e<0)}function yo(e,t){return Et(t,function(n){e=e.replace("%s",""+n)}),e}function _o(e){return e<10?"0"+e:""+e}var rr={};function zl(e){return""+e+_o(rr[e]=(rr[e]||0)+1)}function ra(){var e=[];function t(s,d,a,u){o(s,d,function(p,I,S){var v="addEventListener"in p,g=v?p.removeEventListener.bind(p,I,a,u):p.removeListener.bind(p,a);v?p.addEventListener(I,a,u):p.addListener(a),e.push([p,I,S,a,g])})}function n(s,d,a){o(s,d,function(u,p,I){e=e.filter(function(S){return S[0]===u&&S[1]===p&&S[2]===I&&(!a||S[3]===a)?(S[4](),!1):!0})})}function i(s,d,a){var u,p=!0;return typeof CustomEvent=="function"?u=new CustomEvent(d,{bubbles:p,detail:a}):(u=document.createEvent("CustomEvent"),u.initCustomEvent(d,p,!1,a)),s.dispatchEvent(u),u}function o(s,d,a){Et(s,function(u){u&&Et(d,function(p){p.split(" ").forEach(function(I){var S=I.split(".");a(u,S[0],S[1])})})})}function l(){e.forEach(function(s){s[4]()}),Dt(e)}return{bind:t,unbind:n,dispatch:i,destroy:l}}var Qt="mounted",vo="ready",Gt="move",An="moved",Ao="click",aa="active",la="inactive",sa="visible",ca="hidden",it="refresh",gt="updated",wn="resize",Wi="resized",da="drag",ua="dragging",pa="dragged",Ni="scroll",un="scrolled",Vl="overflow",Mo="destroy",ma="arrows:mounted",ga="arrows:updated",ha="pagination:mounted",fa="pagination:updated",ko="navigation:mounted",Fo="autoplay:play",ya="autoplay:playing",Wo="autoplay:pause",No="lazyload:loaded",va="sk",ba="sh",_i="ei";function Qe(e){var t=e?e.event.bus:document.createDocumentFragment(),n=ra();function i(l,s){n.bind(t,Zn(l).join(" "),function(d){s.apply(s,To(d.detail)?d.detail:[])})}function o(l){n.dispatch(t,l,Zt(arguments,1))}return e&&e.event.on(Mo,n.destroy),jn(n,{bus:t,on:i,off:Ue(n.unbind,t),emit:o})}function Hi(e,t,n,i){var o=Date.now,l,s=0,d,a=!0,u=0;function p(){if(!a){if(s=e?Yt((o()-l)/e,1):1,n&&n(s),s>=1&&(t(),l=o(),i&&++u>=i))return S();d=nr(p)}}function I(T){T||g(),l=o()-(T?s*e:0),a=!1,d=nr(p)}function S(){a=!0}function v(){l=o(),s=0,n&&n(s)}function g(){d&&cancelAnimationFrame(d),s=0,d=0,a=!0}function h(T){e=T}function R(){return a}return{start:I,rewind:v,pause:S,cancel:g,set:h,isPaused:R}}function Dl(e){var t=e;function n(o){t=o}function i(o){return Eo(Zn(o),t)}return{set:n,is:i}}function Gl(e,t){var n=Hi(0,e,null,1);return function(){n.isPaused()&&n.start()}}function Kl(e,t,n){var i=e.state,o=n.breakpoints||{},l=n.reducedMotion||{},s=ra(),d=[];function a(){var g=n.mediaQuery==="min";On(o).sort(function(h,R){return g?+h-+R:+R-+h}).forEach(function(h){p(o[h],"("+(g?"min":"max")+"-width:"+h+"px)")}),p(l,tr),I()}function u(g){g&&s.destroy()}function p(g,h){var R=matchMedia(h);s.bind(R,"change",I),d.push([g,R])}function I(){var g=i.is(Ii),h=n.direction,R=d.reduce(function(T,y){return qt(T,y[1].matches?y[0]:{})},{});ir(n),v(R),n.destroy?e.destroy(n.destroy==="completely"):g?(u(!0),e.mount()):h!==n.direction&&e.refresh()}function S(g){matchMedia(tr).matches&&(g?qt(n,l):ir(n,On(l)))}function v(g,h,R){qt(n,g),h&&qt(Object.getPrototypeOf(n),g),(R||!i.is(xn))&&e.emit(gt,n)}return{setup:a,destroy:u,reduce:S,set:v}}var Bi="Arrow",Oi=Bi+"Left",ji=Bi+"Right",xa=Bi+"Up",Sa=Bi+"Down",ar="rtl",zi="ttb",Zi={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[xa,ji],ArrowRight:[Sa,Oi]};function Ul(e,t,n){function i(l,s,d){d=d||n.direction;var a=d===ar&&!s?1:d===zi?0:-1;return Zi[l]&&Zi[l][a]||l.replace(/width|left|right/i,function(u,p){var I=Zi[u.toLowerCase()][a]||u;return p>0?I.charAt(0).toUpperCase()+I.slice(1):I})}function o(l){return l*(n.direction===ar?1:-1)}return{resolve:i,orient:o}}var jt="role",Cn="tabindex",ql="disabled",Pt="aria-",ni=Pt+"controls",Ca=Pt+"current",lr=Pt+"selected",Tt=Pt+"label",Ho=Pt+"labelledby",$a=Pt+"hidden",Bo=Pt+"orientation",Dn=Pt+"roledescription",sr=Pt+"live",cr=Pt+"busy",dr=Pt+"atomic",Oo=[jt,Cn,ql,ni,Ca,Tt,Ho,$a,Bo,Dn],Ft=ti+"__",en="is-",Qi=ti,ur=Ft+"track",Xl=Ft+"list",Vi=Ft+"slide",wa=Vi+"--clone",Yl=Vi+"__container",jo=Ft+"arrows",Di=Ft+"arrow",Ta=Di+"--prev",La=Di+"--next",Gi=Ft+"pagination",Ea=Gi+"__page",Jl=Ft+"progress",Zl=Jl+"__bar",Ql=Ft+"toggle",es=Ft+"spinner",ts=Ft+"sr",ns=en+"initialized",dn=en+"active",Ia=en+"prev",Ra=en+"next",bo=en+"visible",xo=en+"loading",Pa=en+"focus-in",_a=en+"overflow",is=[dn,bo,Ia,Ra,xo,Pa,_a],os={slide:Vi,clone:wa,arrows:jo,arrow:Di,prev:Ta,next:La,pagination:Gi,page:Ea,spinner:es};function rs(e,t){if(Zr(e.closest))return e.closest(t);for(var n=e;n&&n.nodeType===1&&!Bn(n,t);)n=n.parentElement;return n}var as=5,pr=200,Aa="touchstart mousedown",eo="touchmove mousemove",to="touchend touchcancel mouseup click";function ls(e,t,n){var i=Qe(e),o=i.on,l=i.bind,s=e.root,d=n.i18n,a={},u=[],p=[],I=[],S,v,g;function h(){w(),N(),y()}function R(){o(it,T),o(it,h),o(gt,y),l(document,Aa+" keydown",function(C){g=C.type==="keydown"},{capture:!0}),l(s,"focusin",function(){Bt(s,Pa,!!g)})}function T(C){var P=Oo.concat("style");Dt(u),Ot(s,p),Ot(S,I),kt([S,v],P),kt(s,C?P:["style",Dn])}function y(){Ot(s,p),Ot(S,I),p=W(Qi),I=W(ur),Mt(s,p),Mt(S,I),Ee(s,Tt,n.label),Ee(s,Ho,n.labelledby)}function w(){S=_("."+ur),v=ei(S,"."+Xl),Fn(S&&v,"A track/list element is missing."),xi(u,ea(v,"."+Vi+":not(."+wa+")")),sn({arrows:jo,pagination:Gi,prev:Ta,next:La,bar:Zl,toggle:Ql},function(C,P){a[P]=_("."+C)}),jn(a,{root:s,track:S,list:v,slides:u})}function N(){var C=s.id||zl(ti),P=n.role;s.id=C,S.id=S.id||C+"-track",v.id=v.id||C+"-list",!Rt(s,jt)&&s.tagName!=="SECTION"&&P&&Ee(s,jt,P),Ee(s,Dn,d.carousel),Ee(v,jt,"presentation")}function _(C){var P=ia(s,C);return P&&rs(P,"."+Qi)===s?P:void 0}function W(C){return[C+"--"+n.type,C+"--"+n.direction,n.drag&&C+"--draggable",n.isNavigation&&C+"--nav",C===Qi&&dn]}return jn(a,{setup:h,mount:R,destroy:T})}var Tn="slide",Mn="loop",ii="fade";function ss(e,t,n,i){var o=Qe(e),l=o.on,s=o.emit,d=o.bind,a=e.Components,u=e.root,p=e.options,I=p.isNavigation,S=p.updateOnMove,v=p.i18n,g=p.pagination,h=p.slideFocus,R=a.Direction.resolve,T=Rt(i,"style"),y=Rt(i,Tt),w=n>-1,N=ei(i,"."+Yl),_;function W(){w||(i.id=u.id+"-slide"+_o(t+1),Ee(i,jt,g?"tabpanel":"group"),Ee(i,Dn,v.slide),Ee(i,Tt,y||yo(v.slideLabel,[t+1,e.length]))),C()}function C(){d(i,"click",Ue(s,Ao,F)),d(i,"keydown",Ue(s,va,F)),l([An,ba,un],k),l(ko,A),S&&l(Gt,E)}function P(){_=!0,o.destroy(),Ot(i,is),kt(i,Oo),Ee(i,"style",T),Ee(i,Tt,y||"")}function A(){var M=e.splides.map(function($){var O=$.splide.Components.Slides.getAt(t);return O?O.slide.id:""}).join(" ");Ee(i,Tt,yo(v.slideX,(w?n:t)+1)),Ee(i,ni,M),Ee(i,jt,h?"button":""),h&&kt(i,Dn)}function E(){_||k()}function k(){if(!_){var M=e.index;B(),V(),Bt(i,Ia,t===M-1),Bt(i,Ra,t===M+1)}}function B(){var M=ee();M!==or(i,dn)&&(Bt(i,dn,M),Ee(i,Ca,I&&M||""),s(M?aa:la,F))}function V(){var M=m(),$=!M&&(!ee()||w);if(e.state.is([_n,Yn])||Ee(i,$a,$||""),Ee(Ro(i,p.focusableNodes||""),Cn,$?-1:""),h&&Ee(i,Cn,$?-1:0),M!==or(i,bo)&&(Bt(i,bo,M),s(M?sa:ca,F)),!M&&document.activeElement===i){var O=a.Slides.getAt(e.index);O&&ta(O.slide)}}function K(M,$,O){It(O&&N||i,M,$)}function ee(){var M=e.index;return M===t||p.cloneStatus&&M===n}function m(){if(e.is(ii))return ee();var M=wt(a.Elements.track),$=wt(i),O=R("left",!0),U=R("right",!0);return Pi(M[O])<=Vn($[O])&&Pi($[U])<=Vn(M[U])}function b(M,$){var O=vt(M-t);return!w&&(p.rewind||e.is(Mn))&&(O=Yt(O,e.length-O)),O<=$}var F={index:t,slideIndex:n,slide:i,container:N,isClone:w,mount:W,destroy:P,update:k,style:K,isWithin:b};return F}function cs(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=i.bind,d=t.Elements,a=d.slides,u=d.list,p=[];function I(){S(),o(it,v),o(it,S)}function S(){a.forEach(function(k,B){h(k,B,-1)})}function v(){_(function(k){k.destroy()}),Dt(p)}function g(){_(function(k){k.update()})}function h(k,B,V){var K=ss(e,B,V,k);K.mount(),p.push(K),p.sort(function(ee,m){return ee.index-m.index})}function R(k){return k?W(function(B){return!B.isClone}):p}function T(k){var B=t.Controller,V=B.toIndex(k),K=B.hasFocus()?1:n.perPage;return W(function(ee){return Si(ee.index,V,V+K-1)})}function y(k){return W(k)[0]}function w(k,B){Et(k,function(V){if(Xt(V)&&(V=na(V)),Qr(V)){var K=a[B];K?Io(V,K):Qn(u,V),Mt(V,n.classes.slide),P(V,Ue(l,wn))}}),l(it)}function N(k){cn(W(k).map(function(B){return B.slide})),l(it)}function _(k,B){R(B).forEach(k)}function W(k){return p.filter(Zr(k)?k:function(B){return Xt(k)?Bn(B.slide,k):Eo(Zn(k),B.index)})}function C(k,B,V){_(function(K){K.style(k,B,V)})}function P(k,B){var V=Ro(k,"img"),K=V.length;K?V.forEach(function(ee){s(ee,"load error",function(){--K||B()})}):B()}function A(k){return k?a.length:p.length}function E(){return p.length>n.perPage}return{mount:I,destroy:v,update:g,register:h,get:R,getIn:T,getAt:y,add:w,remove:N,forEach:_,filter:W,style:C,getLength:A,isEnough:E}}function ds(e,t,n){var i=Qe(e),o=i.on,l=i.bind,s=i.emit,d=t.Slides,a=t.Direction.resolve,u=t.Elements,p=u.root,I=u.track,S=u.list,v=d.getAt,g=d.style,h,R,T;function y(){w(),l(window,"resize load",Gl(Ue(s,wn))),o([gt,it],w),o(wn,N)}function w(){h=n.direction===zi,It(p,"maxWidth",nn(n.width)),It(I,a("paddingLeft"),_(!1)),It(I,a("paddingRight"),_(!0)),N(!0)}function N(F){var M=wt(p);(F||R.width!==M.width||R.height!==M.height)&&(It(I,"height",W()),g(a("marginRight"),nn(n.gap)),g("width",P()),g("height",A(),!0),R=M,s(Wi),T!==(T=b())&&(Bt(p,_a,T),s(Vl,T)))}function _(F){var M=n.padding,$=a(F?"right":"left");return M&&nn(M[$]||(Hn(M)?0:M))||"0px"}function W(){var F="";return h&&(F=C(),Fn(F,"height or heightRatio is missing."),F="calc("+F+" - "+_(!1)+" - "+_(!0)+")"),F}function C(){return nn(n.height||wt(S).width*n.heightRatio)}function P(){return n.autoWidth?null:nn(n.fixedWidth)||(h?"":E())}function A(){return nn(n.fixedHeight)||(h?n.autoHeight?null:E():C())}function E(){var F=nn(n.gap);return"calc((100%"+(F&&" + "+F)+")/"+(n.perPage||1)+(F&&" - "+F)+")"}function k(){return wt(S)[a("width")]}function B(F,M){var $=v(F||0);return $?wt($.slide)[a("width")]+(M?0:ee()):0}function V(F,M){var $=v(F);if($){var O=wt($.slide)[a("right")],U=wt(S)[a("left")];return vt(O-U)+(M?0:ee())}return 0}function K(F){return V(e.length-1)-V(0)+B(0,F)}function ee(){var F=v(0);return F&&parseFloat(It(F.slide,a("marginRight")))||0}function m(F){return parseFloat(It(I,a("padding"+(F?"Right":"Left"))))||0}function b(){return e.is(ii)||K(!0)>k()}return{mount:y,resize:N,listSize:k,slideSize:B,sliderSize:K,totalSize:V,getPadding:m,isOverflow:b}}var us=2;function ps(e,t,n){var i=Qe(e),o=i.on,l=t.Elements,s=t.Slides,d=t.Direction.resolve,a=[],u;function p(){o(it,I),o([gt,wn],v),(u=R())&&(g(u),t.Layout.resize(!0))}function I(){S(),p()}function S(){cn(a),Dt(a),i.destroy()}function v(){var T=R();u!==T&&(u<T||!T)&&i.emit(it)}function g(T){var y=s.get().slice(),w=y.length;if(w){for(;y.length<T;)xi(y,y);xi(y.slice(-T),y.slice(0,T)).forEach(function(N,_){var W=_<T,C=h(N.slide,_);W?Io(C,y[0].slide):Qn(l.list,C),xi(a,C),s.register(C,_-T+(W?0:w),N.index)})}}function h(T,y){var w=T.cloneNode(!0);return Mt(w,n.classes.clone),w.id=e.root.id+"-clone"+_o(y+1),w}function R(){var T=n.clones;if(!e.is(Mn))T=0;else if(Jn(T)){var y=n[d("fixedWidth")]&&t.Layout.slideSize(0),w=y&&Vn(wt(l.track)[d("width")]/y);T=w||n[d("autoWidth")]&&e.length||n.perPage*us}return T}return{mount:p,destroy:S}}function ms(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=e.state.set,d=t.Layout,a=d.slideSize,u=d.getPadding,p=d.totalSize,I=d.listSize,S=d.sliderSize,v=t.Direction,g=v.resolve,h=v.orient,R=t.Elements,T=R.list,y=R.track,w;function N(){w=t.Transition,o([Qt,Wi,gt,it],_)}function _(){t.Controller.isBusy()||(t.Scroll.cancel(),C(e.index),t.Slides.update())}function W($,O,U,te){$!==O&&F($>U)&&(k(),P(E(K(),$>U),!0)),s(_n),l(Gt,O,U,$),w.start(O,function(){s($n),l(An,O,U,$),te&&te()})}function C($){P(V($,!0))}function P($,O){if(!e.is(ii)){var U=O?$:A($);It(T,"transform","translate"+g("X")+"("+U+"px)"),$!==U&&l(ba)}}function A($){if(e.is(Mn)){var O=B($),U=O>t.Controller.getEnd(),te=O<0;(te||U)&&($=E($,U))}return $}function E($,O){var U=$-b(O),te=S();return $-=h(te*(Vn(vt(U)/te)||1))*(O?1:-1),$}function k(){P(K(),!0),w.cancel()}function B($){for(var O=t.Slides.get(),U=0,te=1/0,Y=0;Y<O.length;Y++){var fe=O[Y].index,x=vt(V(fe,!0)-$);if(x<=te)te=x,U=fe;else break}return U}function V($,O){var U=h(p($-1)-m($));return O?ee(U):U}function K(){var $=g("left");return wt(T)[$]-wt(y)[$]+h(u(!1))}function ee($){return n.trimSpace&&e.is(Tn)&&($=yn($,0,h(S(!0)-I()))),$}function m($){var O=n.focus;return O==="center"?(I()-a($,!0))/2:+O*a($)||0}function b($){return V($?t.Controller.getEnd():0,!!n.trimSpace)}function F($){var O=h(E(K(),$));return $?O>=0:O<=T[g("scrollWidth")]-wt(y)[g("width")]}function M($,O){O=Jn(O)?K():O;var U=$!==!0&&h(O)<h(b(!1)),te=$!==!1&&h(O)>h(b(!0));return U||te}return{mount:N,move:W,jump:C,translate:P,shift:E,cancel:k,toIndex:B,toPosition:V,getPosition:K,getLimit:b,exceededLimit:M,reposition:_}}function gs(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=t.Move,d=s.getPosition,a=s.getLimit,u=s.toPosition,p=t.Slides,I=p.isEnough,S=p.getLength,v=n.omitEnd,g=e.is(Mn),h=e.is(Tn),R=Ue(K,!1),T=Ue(K,!0),y=n.start||0,w,N=y,_,W,C;function P(){A(),o([gt,it,_i],A),o(Wi,E)}function A(){_=S(!0),W=n.perMove,C=n.perPage,w=F();var x=yn(y,0,v?w:_-1);x!==y&&(y=x,s.reposition())}function E(){w!==F()&&l(_i)}function k(x,q,he){if(!fe()){var pe=V(x),be=b(pe);be>-1&&(q||be!==y)&&(U(be),s.move(pe,be,N,he))}}function B(x,q,he,pe){t.Scroll.scroll(x,q,he,function(){var be=b(s.toIndex(d()));U(v?Yt(be,w):be),pe&&pe()})}function V(x){var q=y;if(Xt(x)){var he=x.match(/([+\-<>])(\d+)?/)||[],pe=he[1],be=he[2];pe==="+"||pe==="-"?q=ee(y+ +(""+pe+(+be||1)),y):pe===">"?q=be?M(+be):R(!0):pe==="<"&&(q=T(!0))}else q=g?x:yn(x,0,w);return q}function K(x,q){var he=W||(Y()?1:C),pe=ee(y+he*(x?-1:1),y,!(W||Y()));return pe===-1&&h&&!oa(d(),a(!x),1)?x?0:w:q?pe:b(pe)}function ee(x,q,he){if(I()||Y()){var pe=m(x);pe!==x&&(q=x,x=pe,he=!1),x<0||x>w?!W&&(Si(0,x,q,!0)||Si(w,q,x,!0))?x=M($(x)):g?x=he?x<0?-(_%C||C):_:x:n.rewind?x=x<0?w:0:x=-1:he&&x!==q&&(x=M($(q)+(x<q?-1:1)))}else x=-1;return x}function m(x){if(h&&n.trimSpace==="move"&&x!==y)for(var q=d();q===u(x,!0)&&Si(x,0,e.length-1,!n.rewind);)x<y?--x:++x;return x}function b(x){return g?(x+_)%_||0:x}function F(){for(var x=_-(Y()||g&&W?1:C);v&&x-- >0;)if(u(_-1,!0)!==u(x,!0)){x++;break}return yn(x,0,_-1)}function M(x){return yn(Y()?x:C*x,0,w)}function $(x){return Y()?Yt(x,w):Pi((x>=w?_-1:x)/C)}function O(x){var q=s.toIndex(x);return h?yn(q,0,w):q}function U(x){x!==y&&(N=y,y=x)}function te(x){return x?N:y}function Y(){return!Jn(n.focus)||n.isNavigation}function fe(){return e.state.is([_n,Yn])&&!!n.waitForTransition}return{mount:P,go:k,scroll:B,getNext:R,getPrev:T,getAdjacent:K,getEnd:F,setIndex:U,getIndex:te,toIndex:M,toPage:$,toDest:O,hasFocus:Y,isBusy:fe}}var hs="http://www.w3.org/2000/svg",fs="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",ci=40;function ys(e,t,n){var i=Qe(e),o=i.on,l=i.bind,s=i.emit,d=n.classes,a=n.i18n,u=t.Elements,p=t.Controller,I=u.arrows,S=u.track,v=I,g=u.prev,h=u.next,R,T,y={};function w(){_(),o(gt,N)}function N(){W(),w()}function _(){var B=n.arrows;B&&!(g&&h)&&A(),g&&h&&(jn(y,{prev:g,next:h}),zn(v,B?"":"none"),Mt(v,T=jo+"--"+n.direction),B&&(C(),k(),Ee([g,h],ni,S.id),s(ma,g,h)))}function W(){i.destroy(),Ot(v,T),R?(cn(I?[g,h]:v),g=h=null):kt([g,h],Oo)}function C(){o([Qt,An,it,un,_i],k),l(h,"click",Ue(P,">")),l(g,"click",Ue(P,"<"))}function P(B){p.go(B,!0)}function A(){v=I||Sn("div",d.arrows),g=E(!0),h=E(!1),R=!0,Qn(v,[g,h]),!I&&Io(v,S)}function E(B){var V='<button class="'+d.arrow+" "+(B?d.prev:d.next)+'" type="button"><svg xmlns="'+hs+'" viewBox="0 0 '+ci+" "+ci+'" width="'+ci+'" height="'+ci+'" focusable="false"><path d="'+(n.arrowPath||fs)+'" />';return na(V)}function k(){if(g&&h){var B=e.index,V=p.getPrev(),K=p.getNext(),ee=V>-1&&B<V?a.last:a.prev,m=K>-1&&B>K?a.first:a.next;g.disabled=V<0,h.disabled=K<0,Ee(g,Tt,ee),Ee(h,Tt,m),s(ga,g,h,V,K)}}return{arrows:y,mount:w,destroy:W,update:k}}var vs=Po+"-interval";function bs(e,t,n){var i=Qe(e),o=i.on,l=i.bind,s=i.emit,d=Hi(n.interval,e.go.bind(e,">"),C),a=d.isPaused,u=t.Elements,p=t.Elements,I=p.root,S=p.toggle,v=n.autoplay,g,h,R=v==="pause";function T(){v&&(y(),S&&Ee(S,ni,u.track.id),R||w(),W())}function y(){n.pauseOnHover&&l(I,"mouseenter mouseleave",function(A){g=A.type==="mouseenter",_()}),n.pauseOnFocus&&l(I,"focusin focusout",function(A){h=A.type==="focusin",_()}),S&&l(S,"click",function(){R?w():N(!0)}),o([Gt,Ni,it],d.rewind),o(Gt,P)}function w(){a()&&t.Slides.isEnough()&&(d.start(!n.resetProgress),h=g=R=!1,W(),s(Fo))}function N(A){A===void 0&&(A=!0),R=!!A,W(),a()||(d.pause(),s(Wo))}function _(){R||(g||h?N(!1):w())}function W(){S&&(Bt(S,dn,!R),Ee(S,Tt,n.i18n[R?"play":"pause"]))}function C(A){var E=u.bar;E&&It(E,"width",A*100+"%"),s(ya,A)}function P(A){var E=t.Slides.getAt(A);d.set(E&&+Rt(E.slide,vs)||n.interval)}return{mount:T,destroy:d.cancel,play:w,pause:N,isPaused:a}}function xs(e,t,n){var i=Qe(e),o=i.on;function l(){n.cover&&(o(No,Ue(d,!0)),o([Qt,gt,it],Ue(s,!0)))}function s(a){t.Slides.forEach(function(u){var p=ei(u.container||u.slide,"img");p&&p.src&&d(a,p,u)})}function d(a,u,p){p.style("background",a?'center/cover no-repeat url("'+u.src+'")':"",!0),zn(u,a?"none":"")}return{mount:l,destroy:Ue(s,!1)}}var Ss=10,Cs=600,$s=.6,ws=1.5,Ts=800;function Ls(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=e.state.set,d=t.Move,a=d.getPosition,u=d.getLimit,p=d.exceededLimit,I=d.translate,S=e.is(Tn),v,g,h=1;function R(){o(Gt,N),o([gt,it],_)}function T(C,P,A,E,k){var B=a();if(N(),A&&(!S||!p())){var V=t.Layout.sliderSize(),K=fo(C)*V*Pi(vt(C)/V)||0;C=d.toPosition(t.Controller.toDest(C%V))+K}var ee=oa(B,C,1);h=1,P=ee?0:P||Ri(vt(C-B)/ws,Ts),g=E,v=Hi(P,y,Ue(w,B,C,k),1),s(Yn),l(Ni),v.start()}function y(){s($n),g&&g(),l(un)}function w(C,P,A,E){var k=a(),B=C+(P-C)*W(E),V=(B-k)*h;I(k+V),S&&!A&&p()&&(h*=$s,vt(V)<Ss&&T(u(p(!0)),Cs,!1,g,!0))}function N(){v&&v.cancel()}function _(){v&&!v.isPaused()&&(N(),y())}function W(C){var P=n.easingFunc;return P?P(C):1-Math.pow(1-C,4)}return{mount:R,destroy:N,scroll:T,cancel:_}}var vn={passive:!1,capture:!0};function Es(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=i.bind,d=i.unbind,a=e.state,u=t.Move,p=t.Scroll,I=t.Controller,S=t.Elements.track,v=t.Media.reduce,g=t.Direction,h=g.resolve,R=g.orient,T=u.getPosition,y=u.exceededLimit,w,N,_,W,C,P=!1,A,E,k;function B(){s(S,eo,go,vn),s(S,to,go,vn),s(S,Aa,K,vn),s(S,"click",b,{capture:!0}),s(S,"dragstart",Ht),o([Qt,gt],V)}function V(){var G=n.drag;me(!G),W=G==="free"}function K(G){if(A=!1,!E){var f=be(G);pe(G.target)&&(f||!G.button)&&(I.isBusy()?Ht(G,!0):(k=f?S:window,C=a.is([_n,Yn]),_=null,s(k,eo,ee,vn),s(k,to,m,vn),u.cancel(),p.cancel(),F(G)))}}function ee(G){if(a.is(bi)||(a.set(bi),l(da)),G.cancelable)if(C){u.translate(w+he(Y(G)));var f=fe(G)>pr,H=P!==(P=y());(f||H)&&F(G),A=!0,l(ua),Ht(G)}else O(G)&&(C=$(G),Ht(G))}function m(G){a.is(bi)&&(a.set($n),l(pa)),C&&(M(G),Ht(G)),d(k,eo,ee),d(k,to,m),C=!1}function b(G){!E&&A&&Ht(G,!0)}function F(G){_=N,N=G,w=T()}function M(G){var f=U(G),H=te(f),j=n.rewind&&n.rewindByDrag;v(!1),W?I.scroll(H,0,n.snap):e.is(ii)?I.go(R(fo(f))<0?j?"<":"-":j?">":"+"):e.is(Tn)&&P&&j?I.go(y(!0)?">":"<"):I.go(I.toDest(H),!0),v(!0)}function $(G){var f=n.dragMinThreshold,H=Hn(f),j=H&&f.mouse||0,ne=(H?f.touch:+f)||10;return vt(Y(G))>(be(G)?ne:j)}function O(G){return vt(Y(G))>vt(Y(G,!0))}function U(G){if(e.is(Mn)||!P){var f=fe(G);if(f&&f<pr)return Y(G)/f}return 0}function te(G){return T()+fo(G)*Yt(vt(G)*(n.flickPower||600),W?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}function Y(G,f){return q(G,f)-q(x(G),f)}function fe(G){return ho(G)-ho(x(G))}function x(G){return N===G&&_||N}function q(G,f){return(be(G)?G.changedTouches[0]:G)["page"+h(f?"Y":"X")]}function he(G){return G/(P&&e.is(Tn)?as:1)}function pe(G){var f=n.noDrag;return!Bn(G,"."+Ea+", ."+Di)&&(!f||!Bn(G,f))}function be(G){return typeof TouchEvent<"u"&&G instanceof TouchEvent}function J(){return C}function me(G){E=G}return{mount:B,disable:me,isDragging:J}}var Is={Spacebar:" ",Right:ji,Left:Oi,Up:xa,Down:Sa};function zo(e){return e=Xt(e)?e:e.key,Is[e]||e}var mr="keydown";function Rs(e,t,n){var i=Qe(e),o=i.on,l=i.bind,s=i.unbind,d=e.root,a=t.Direction.resolve,u,p;function I(){S(),o(gt,v),o(gt,S),o(Gt,h)}function S(){var T=n.keyboard;T&&(u=T==="global"?window:d,l(u,mr,R))}function v(){s(u,mr)}function g(T){p=T}function h(){var T=p;p=!0,Jr(function(){p=T})}function R(T){if(!p){var y=zo(T);y===a(Oi)?e.go("<"):y===a(ji)&&e.go(">")}}return{mount:I,destroy:v,disable:g}}var Wn=Po+"-lazy",Ci=Wn+"-srcset",Ps="["+Wn+"], ["+Ci+"]";function _s(e,t,n){var i=Qe(e),o=i.on,l=i.off,s=i.bind,d=i.emit,a=n.lazyLoad==="sequential",u=[An,un],p=[];function I(){n.lazyLoad&&(S(),o(it,S))}function S(){Dt(p),v(),a?T():(l(u),o(u,g),g())}function v(){t.Slides.forEach(function(y){Ro(y.slide,Ps).forEach(function(w){var N=Rt(w,Wn),_=Rt(w,Ci);if(N!==w.src||_!==w.srcset){var W=n.classes.spinner,C=w.parentElement,P=ei(C,"."+W)||Sn("span",W,C);p.push([w,y,P]),w.src||zn(w,"none")}})})}function g(){p=p.filter(function(y){var w=n.perPage*((n.preloadPages||1)+1)-1;return y[1].isWithin(e.index,w)?h(y):!0}),p.length||l(u)}function h(y){var w=y[0];Mt(y[1].slide,xo),s(w,"load error",Ue(R,y)),Ee(w,"src",Rt(w,Wn)),Ee(w,"srcset",Rt(w,Ci)),kt(w,Wn),kt(w,Ci)}function R(y,w){var N=y[0],_=y[1];Ot(_.slide,xo),w.type!=="error"&&(cn(y[2]),zn(N,""),d(No,N,_),d(wn)),a&&T()}function T(){p.length&&h(p.shift())}return{mount:I,destroy:Ue(Dt,p),check:g}}function As(e,t,n){var i=Qe(e),o=i.on,l=i.emit,s=i.bind,d=t.Slides,a=t.Elements,u=t.Controller,p=u.hasFocus,I=u.getIndex,S=u.go,v=t.Direction.resolve,g=a.pagination,h=[],R,T;function y(){w(),o([gt,it,_i],y);var E=n.pagination;g&&zn(g,E?"":"none"),E&&(o([Gt,Ni,un],A),N(),A(),l(ha,{list:R,items:h},P(e.index)))}function w(){R&&(cn(g?Zt(R.children):R),Ot(R,T),Dt(h),R=null),i.destroy()}function N(){var E=e.length,k=n.classes,B=n.i18n,V=n.perPage,K=p()?u.getEnd()+1:Vn(E/V);R=g||Sn("ul",k.pagination,a.track.parentElement),Mt(R,T=Gi+"--"+C()),Ee(R,jt,"tablist"),Ee(R,Tt,B.select),Ee(R,Bo,C()===zi?"vertical":"");for(var ee=0;ee<K;ee++){var m=Sn("li",null,R),b=Sn("button",{class:k.page,type:"button"},m),F=d.getIn(ee).map(function($){return $.slide.id}),M=!p()&&V>1?B.pageX:B.slideX;s(b,"click",Ue(_,ee)),n.paginationKeyboard&&s(b,"keydown",Ue(W,ee)),Ee(m,jt,"presentation"),Ee(b,jt,"tab"),Ee(b,ni,F.join(" ")),Ee(b,Tt,yo(M,ee+1)),Ee(b,Cn,-1),h.push({li:m,button:b,page:ee})}}function _(E){S(">"+E,!0)}function W(E,k){var B=h.length,V=zo(k),K=C(),ee=-1;V===v(ji,!1,K)?ee=++E%B:V===v(Oi,!1,K)?ee=(--E+B)%B:V==="Home"?ee=0:V==="End"&&(ee=B-1);var m=h[ee];m&&(ta(m.button),S(">"+ee),Ht(k,!0))}function C(){return n.paginationDirection||n.direction}function P(E){return h[u.toPage(E)]}function A(){var E=P(I(!0)),k=P(I());if(E){var B=E.button;Ot(B,dn),kt(B,lr),Ee(B,Cn,-1)}if(k){var V=k.button;Mt(V,dn),Ee(V,lr,!0),Ee(V,Cn,"")}l(fa,{list:R,items:h},E,k)}return{items:h,mount:y,destroy:w,getAt:P,update:A}}var Ms=[" ","Enter"];function ks(e,t,n){var i=n.isNavigation,o=n.slideFocus,l=[];function s(){e.splides.forEach(function(g){g.isParent||(u(e,g.splide),u(g.splide,e))}),i&&p()}function d(){l.forEach(function(g){g.destroy()}),Dt(l)}function a(){d(),s()}function u(g,h){var R=Qe(g);R.on(Gt,function(T,y,w){h.go(h.is(Mn)?w:T)}),l.push(R)}function p(){var g=Qe(e),h=g.on;h(Ao,S),h(va,v),h([Qt,gt],I),l.push(g),g.emit(ko,e.splides)}function I(){Ee(t.Elements.list,Bo,n.direction===zi?"vertical":"")}function S(g){e.go(g.index)}function v(g,h){Eo(Ms,zo(h))&&(S(g),Ht(h))}return{setup:Ue(t.Media.set,{slideFocus:Jn(o)?i:o},!0),mount:s,destroy:d,remount:a}}function Fs(e,t,n){var i=Qe(e),o=i.bind,l=0;function s(){n.wheel&&o(t.Elements.track,"wheel",d,vn)}function d(u){if(u.cancelable){var p=u.deltaY,I=p<0,S=ho(u),v=n.wheelMinThreshold||0,g=n.wheelSleep||0;vt(p)>v&&S-l>g&&(e.go(I?"<":">"),l=S),a(I)&&Ht(u)}}function a(u){return!n.releaseWheel||e.state.is(_n)||t.Controller.getAdjacent(u)!==-1}return{mount:s}}var Ws=90;function Ns(e,t,n){var i=Qe(e),o=i.on,l=t.Elements.track,s=n.live&&!n.isNavigation,d=Sn("span",ts),a=Hi(Ws,Ue(p,!1));function u(){s&&(S(!t.Autoplay.isPaused()),Ee(l,dr,!0),d.textContent="…",o(Fo,Ue(S,!0)),o(Wo,Ue(S,!1)),o([An,un],Ue(p,!0)))}function p(v){Ee(l,cr,v),v?(Qn(l,d),a.start()):(cn(d),a.cancel())}function I(){kt(l,[sr,dr,cr]),cn(d)}function S(v){s&&Ee(l,sr,v?"off":"polite")}return{mount:u,disable:S,destroy:I}}var Hs=Object.freeze({__proto__:null,Media:Kl,Direction:Ul,Elements:ls,Slides:cs,Layout:ds,Clones:ps,Move:ms,Controller:gs,Arrows:ys,Autoplay:bs,Cover:xs,Scroll:Ls,Drag:Es,Keyboard:Rs,LazyLoad:_s,Pagination:As,Sync:ks,Wheel:Fs,Live:Ns}),Bs={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"},Os={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:os,i18n:Bs,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function js(e,t,n){var i=t.Slides;function o(){Qe(e).on([Qt,it],l)}function l(){i.forEach(function(d){d.style("transform","translateX(-"+100*d.index+"%)")})}function s(d,a){i.style("transition","opacity "+n.speed+"ms "+n.easing),Jr(a)}return{mount:o,start:s,cancel:go}}function zs(e,t,n){var i=t.Move,o=t.Controller,l=t.Scroll,s=t.Elements.list,d=Ue(It,s,"transition"),a;function u(){Qe(e).bind(s,"transitionend",function(v){v.target===s&&a&&(I(),a())})}function p(v,g){var h=i.toPosition(v,!0),R=i.getPosition(),T=S(v);vt(h-R)>=1&&T>=1?n.useScroll?l.scroll(h,T,!1,g):(d("transform "+T+"ms "+n.easing),i.translate(h,!0),a=g):(i.jump(v),g())}function I(){d(""),l.cancel()}function S(v){var g=n.rewindSpeed;if(e.is(Tn)&&g){var h=o.getIndex(!0),R=o.getEnd();if(h===0&&v>=R||h>=R&&v===0)return g}return n.speed}return{mount:u,start:p,cancel:I}}var Vs=(function(){function e(n,i){this.event=Qe(),this.Components={},this.state=Dl(xn),this.splides=[],this._o={},this._E={};var o=Xt(n)?ia(document,n):n;Fn(o,o+" is invalid."),this.root=o,i=qt({label:Rt(o,Tt)||"",labelledby:Rt(o,Ho)||""},Os,e.defaults,i||{});try{qt(i,JSON.parse(Rt(o,Po)))}catch{Fn(!1,"Invalid JSON")}this._o=Object.create(qt({},i))}var t=e.prototype;return t.mount=function(i,o){var l=this,s=this.state,d=this.Components;Fn(s.is([xn,Ii]),"Already mounted!"),s.set(xn),this._C=d,this._T=o||this._T||(this.is(ii)?js:zs),this._E=i||this._E;var a=jn({},Hs,this._E,{Transition:this._T});return sn(a,function(u,p){var I=u(l,d,l._o);d[p]=I,I.setup&&I.setup()}),sn(d,function(u){u.mount&&u.mount()}),this.emit(Qt),Mt(this.root,ns),s.set($n),this.emit(vo),this},t.sync=function(i){return this.splides.push({splide:i}),i.splides.push({splide:this,isParent:!0}),this.state.is($n)&&(this._C.Sync.remount(),i.Components.Sync.remount()),this},t.go=function(i){return this._C.Controller.go(i),this},t.on=function(i,o){return this.event.on(i,o),this},t.off=function(i){return this.event.off(i),this},t.emit=function(i){var o;return(o=this.event).emit.apply(o,[i].concat(Zt(arguments,1))),this},t.add=function(i,o){return this._C.Slides.add(i,o),this},t.remove=function(i){return this._C.Slides.remove(i),this},t.is=function(i){return this._o.type===i},t.refresh=function(){return this.emit(it),this},t.destroy=function(i){i===void 0&&(i=!0);var o=this.event,l=this.state;return l.is(xn)?Qe(this).on(vo,this.destroy.bind(this,i)):(sn(this._C,function(s){s.destroy&&s.destroy(i)},!0),o.emit(Mo),o.destroy(),i&&Dt(this.splides),l.set(Ii)),this},Bl(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})(),Vo=Vs;Vo.defaults={};Vo.STATES=jl;var gr=[[Qt,"onMounted"],[vo,"onReady"],[Gt,"onMove"],[An,"onMoved"],[Ao,"onClick"],[aa,"onActive"],[la,"onInactive"],[sa,"onVisible"],[ca,"onHidden"],[it,"onRefresh"],[gt,"onUpdated"],[wn,"onResize"],[Wi,"onResized"],[da,"onDrag"],[ua,"onDragging"],[pa,"onDragged"],[Ni,"onScroll"],[un,"onScrolled"],[Mo,"onDestroy"],[ma,"onArrowsMounted"],[ga,"onArrowsUpdated"],[ha,"onPaginationMounted"],[fa,"onPaginationUpdated"],[ko,"onNavigationMounted"],[Fo,"onAutoplayPlay"],[ya,"onAutoplayPlaying"],[Wo,"onAutoplayPause"],[No,"onLazyLoadLoaded"]];function Do(...e){return e.filter(Boolean).join(" ")}function Ai(e){return e!==null&&typeof e=="object"}function So(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some((n,i)=>!So(n,t[i]));if(Ai(e)&&Ai(t)){const n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&!n.some(o=>!Object.prototype.hasOwnProperty.call(t,o)||!So(e[o],t[o]))}return e===t}function Ds(e,t){return e.length===t.length&&!e.some((n,i)=>n!==t[i])}function Gs(e,t){if(e){const n=Object.keys(e);for(let i=0;i<n.length;i++){const o=n[i];if(o!=="__proto__"&&t(e[o],o)===!1)break}}return e}function Co(e,t){const n=e;return Gs(t,(i,o)=>{Array.isArray(i)?n[o]=i.slice():Ai(i)?n[o]=Co(Ai(n[o])?n[o]:{},i):n[o]=i}),n}var Ks=({children:e,className:t,...n})=>c.createElement("div",{className:Do("splide__track",t),...n},c.createElement("ul",{className:"splide__list"},e)),Go=class extends c.Component{constructor(){super(...arguments),this.splideRef=c.createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:t,transition:n}=this.props,{current:i}=this.splideRef;i&&(this.splide=new Vo(i,e),this.bind(this.splide),this.splide.mount(t,n),this.options=Co({},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&&!So(this.options,e)&&(this.splide.options=e,this.options=Co({},e));const t=this.getSlides();Ds(this.slides,t)||(this.splide.refresh(),this.slides=t)}sync(e){var t;(t=this.splide)==null||t.sync(e)}go(e){var t;(t=this.splide)==null||t.go(e)}getSlides(){var e;if(this.splide){const t=(e=this.splide.Components.Elements)==null?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}bind(e){gr.forEach(([t,n])=>{const i=this.props[n];typeof i=="function"&&e.on(t,(...o)=>{i(e,...o)})})}omit(e,t){return t.forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]}),e}render(){const{className:e,tag:t="div",hasTrack:n=!0,children:i,...o}=this.props;return c.createElement(t,{className:Do("splide",e),ref:this.splideRef,...this.omit(o,["options",...gr.map(l=>l[1])])},n?c.createElement(Ks,null,i):i)}},Ko=({children:e,className:t,...n})=>c.createElement("li",{className:Do("splide__slide",t),...n},e);/*!
2
2
  * Splide.js
3
3
  * Version : 4.1.3
4
4
  * License : MIT
@@ -5014,11 +5014,11 @@ const COLOR_VAR_MAP: Record<ColorKeys, string> = {
5014
5014
  };
5015
5015
 
5016
5016
  const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
5017
- `,lo={fontSettings:{type:"object",display:{type:"font-settings-weight"},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},Jd=["titleColor","subtitleColor","lightboxCounterColor"],Zd={type:"object",version:1,content:{type:"array",settings:{addItemWithoutImage:!0},display:{type:"array"},items:{type:"object",properties:{title:{type:"string",label:"Title",placeholder:"Add Title...",display:{type:"text-input"}},subtitle:{type:"string",label:"Subtitle",placeholder:"Add Subtitle...",display:{type:"text-input"}},image:{type:"object",label:"Image",display:{type:"media-list-input"},properties:{url:{type:"string"},name:{type:"string"},type:{type:"string",enum:["image","video"]},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},link:{type:"string",label:"Link",placeholder:"Add link...",display:{type:"text-input"}}},required:["image"]},default:[{title:"Flying Over the Old Town",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(1).webp",objectFit:"cover"}],link:""},{title:"Doors of Matera",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(2).webp",objectFit:"cover"}],link:""},{title:"Cattedrale di Santa Maria",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(3).webp",objectFit:"cover"}],link:""},{title:"City Through the Cracks",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(4).webp",objectFit:"cover"}],link:""},{title:"Private Stone Gardens",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(5).webp",objectFit:"cover"},{url:"https://cdn.cntrl.site/component-assets/grid(6).webp",objectFit:"cover"},{url:"https://cdn.cntrl.site/component-assets/grid(7).webp",objectFit:"cover"}],link:""},{title:"Exiting the Old Town",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(8).webp",objectFit:"cover"}],link:""},{title:"Under the Sun",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(9).webp",objectFit:"cover"}],link:""},{title:"Citygates View",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(10).webp",objectFit:"cover"}],link:""},{title:"Around the City",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(11).webp",objectFit:"cover"}],link:""}]},settings:{sizing:"auto auto",properties:{type:{type:"string",scope:"layout",title:"",display:{type:"radio-group"},enum:["a","b","c"]},gridLayout:{type:"grid-layout",scope:"layout",display:{type:"grid-layout"},gridParams:{type:"object",properties:{columnsCount:{type:"number",title:"Columns",min:1,max:4},wrapperWidth:{type:"number",title:"Width",min:0},entryWidth:{type:"number",title:"Entry",min:0},horizontalGap:{type:"number",title:"Gap",min:0}}}},textBoxWidth:{type:"number",scope:"layout",title:"Text Width (%)",display:{type:"percentage-input"},min:0},verticalGap:{type:"number",scope:"layout",title:"Vertical Gap",display:{type:"numeric-input"},min:0,max:1e3},showText:{type:"boolean",scope:"common",title:"Show text",display:{type:"toggle-cycle",enum:["always","on hover"]}},alignEntries:{type:"boolean",scope:"layout",title:"Align entries",display:{type:"toggle-cycle",enum:["on","off"]}},entriesCount:{type:"number",scope:"layout",title:"Entries #",display:{type:"toggle-numeric-input",enum:["auto","fixed"]},min:1},lightbox:{type:"boolean",scope:"common",title:"Lightbox",display:{type:"toggle-cycle",enum:["on","off"]}},imageDisplay:{type:"object",scope:"common",title:"Display",display:{type:"image-ratio-control"},properties:{display:{type:"string",enum:["fit","cover"]},ratioValue:{type:"string",enum:["1:1","2:3","3:4","4:5","16:9"]},reversed:{type:"boolean"}}},lightboxImageDisplay:{type:"string",scope:"common",title:"Display",display:{type:"toggle-cycle",enum:["fit","cover"]}},slider:{type:"boolean",scope:"common",title:"Slider",display:{type:"toggle-cycle",enum:["on","off"]}},sliderTiming:{type:"number",scope:"common",title:"Timing (Sec)",display:{type:"common-numeric-input"},min:1,max:10},direction:{type:"string",scope:"common",title:"Direction",display:{type:"toggle-cycle",enum:["horizontal","vertical","random"],enabled:!0}},transition:{type:"string",scope:"common",title:"Transition",display:{type:"toggle-cycle",enum:["fade","slide"]}},titleMarginTop:{type:"number",scope:"layout",title:"Title margin top",min:0,max:100,display:{type:"range-control"}},subtitleMarginTop:{type:"number",scope:"layout",title:"Subtitle margin top",min:0,max:100,display:{type:"range-control"}},titleColor:{type:"string",scope:"common",title:"Title Entry",display:{type:"palette-color-picker"}},subtitleColor:{type:"string",scope:"common",title:"Subtitle Entry",display:{type:"palette-color-picker"}},lightboxCounterColor:{type:"string",scope:"common",title:"Counter Lightbox",display:{type:"palette-color-picker"}},titleFontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},titleFontSettings:{...lo.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},titleFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},titleLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},titleLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},titleWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},titleTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}},subtitleFontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},subtitleFontSettings:{...lo.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},subtitleFontSize:{type:"number",scope:"layout",title:"Subtitle Font Size",display:{type:"font-size"}},subtitleLineHeight:{type:"number",scope:"layout",title:"Subtitle Line Height",display:{type:"line-height-input"}},subtitleLetterSpacing:{type:"number",scope:"layout",title:"Subtitle Letter Spacing",display:{type:"letter-spacing-input"}},subtitleWordSpacing:{type:"number",scope:"layout",title:"Subtitle Word Spacing",display:{type:"word-spacing-input"}},subtitleTextAppearance:{type:"object",scope:"layout",title:"Subtitle Text Appearance",display:{type:"text-appearance"}},lightboxCounterFontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},lightboxCounterFontSettings:{...lo.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},lightboxCounterFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},lightboxCounterLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},lightboxCounterLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},lightboxCounterWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},lightboxCounterTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}}},defaults:{lightbox:"on",imageDisplay:{display:"cover",ratioValue:"2:3",reversed:!1},lightboxImageDisplay:"fit",slider:"on",sliderTiming:3,direction:"horizontal",transition:"fade",showText:"always",alignEntries:"on",titleColor:"#000000",subtitleColor:"#000000",lightboxCounterColor:"#DEDDDD",titleFontFamily:"Arial",titleFontSettings:{fontWeight:400,fontStyle:"normal"},titleLetterSpacing:0,titleWordSpacing:0,titleTextAppearance:{textTransform:"uppercase",textDecoration:"none",fontVariant:"normal"},subtitleFontFamily:"Goudy Bookletter 1911",subtitleFontSettings:{fontWeight:400,fontStyle:"normal"},subtitleLetterSpacing:0,subtitleWordSpacing:0,subtitleTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},lightboxCounterFontFamily:"Goudy Bookletter 1911",lightboxCounterFontSettings:{fontWeight:400,fontStyle:"normal"},lightboxCounterLetterSpacing:0,lightboxCounterWordSpacing:0,lightboxCounterTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}},layoutDefaults:{m:{type:"a",gridLayout:{entryWidth:.8,horizontalGap:.0533,wrapperWidth:1,columnsCount:1,lockedParam:null},textBoxWidth:100,verticalGap:.266,entriesCount:0,titleMarginTop:.02,subtitleMarginTop:.02,titleStroke:.003,titleCorners:.192,subtitlePadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},titlePadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},titleFontSize:.1066,titleLineHeight:.0853,subtitleFontSize:.056,subtitleLineHeight:.0506,lightboxCounterFontSize:.0373,lightboxCounterLineHeight:.0373},d:{type:"a",gridLayout:{entryWidth:.0833,horizontalGap:0,wrapperWidth:1,columnsCount:3,lockedParam:null},textBoxWidth:200,verticalGap:.09722,entriesCount:0,titleMarginTop:.008,subtitleMarginTop:.008,titleStroke:.001,titleCorners:.05,subtitlePadding:{top:.01,right:.01,bottom:.01,left:.01},titlePadding:{top:.01,right:.01,bottom:.01,left:.01},titleFontSize:.027,titleLineHeight:.0222,titleLetterSpacing:-.00118,subtitleFontSize:.01,subtitleLineHeight:.01,lightboxCounterFontSize:.01,lightboxCounterLineHeight:.01}},displayRules:[{if:{name:"transition",value:"fade"},then:{name:"properties.direction.display.enabled",value:!1}},{if:{name:"lightbox",value:"off"},then:{name:"properties.lightboxImageDisplay.display.enabled",value:!1}},{if:{name:"type",value:"a"},then:{name:"properties.alignEntries.display.visible",value:!1}},{if:{name:"type",value:"b"},then:{name:"properties.alignEntries.display.visible",value:!1}}],layout:["__componentName__","name","type","gridLayout","textBoxWidth","verticalGap","showText","alignEntries","entriesCount","lightbox","imageDisplay","lightboxImageDisplay","slider","sliderTiming","direction","transition","transition","titleMarginTop","subtitleMarginTop"]},panels:[{id:"general",icon:"settings",title:"General",tooltip:"General Settings",layout:["__componentName__","type",{type:"row",title:"Grid",items:[{type:"group",title:"",items:["gridLayout"]}]},{type:"row",title:"",items:["textBoxWidth","entriesCount"]},{type:"row",title:"",items:["verticalGap","showText"]},{type:"row",title:"",items:["alignEntries"]}]},{id:"imageSettings",icon:"cover",title:"Image settings",tooltip:"Image settings",layout:["__componentName__",{type:"row",title:"Image",items:["imageDisplay"]},{type:"row",title:"Lightbox",items:["lightbox","lightboxImageDisplay"]},{type:"row",title:"Slider",items:[{type:"group",title:"",items:["slider","sliderTiming"]},{type:"group",title:"",items:["direction","transition"]}]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["__componentName__",{type:"group",title:"Title",items:["titleFontFamily","titleFontSettings",{type:"row",items:["titleFontSize","titleLineHeight","titleLetterSpacing","titleWordSpacing"]},"titleTextAppearance"]},{type:"group",title:"Subtitle",items:["subtitleFontFamily","subtitleFontSettings",{type:"row",items:["subtitleFontSize","subtitleLineHeight","subtitleLetterSpacing","subtitleWordSpacing"]},"subtitleTextAppearance"]},{type:"group",title:"Lightbox Counter",items:["lightboxCounterFontFamily","lightboxCounterFontSettings",{type:"row",items:["lightboxCounterFontSize","lightboxCounterLineHeight","lightboxCounterLetterSpacing","lightboxCounterWordSpacing"]},"lightboxCounterTextAppearance"]}]}],paletteBookmark:{items:[...Jd],panelIds:["general","typeStyle"],stateItems:{default:["titleColor","subtitleColor","lightboxCounterColor"]}}},Qd={element:Ud,id:"grid",name:"Neptune",category:"grids",layoutMode:"structured",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/Neptune_Grid.png"},version:1,defaultSize:{d:{width:720,height:540}},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[]},schema:Zd,sourceCode:Yd};function eu(e){if(e.type==="video")return!0;if(e.type==="image")return!1;const t=e.name??"";return/\.(mp4|webm|ogg|mov)(\?|$)/i.test(t)?!0:/\.(mp4|webm|ogg|mov)(\?|$)/i.test(e.url)}function tu({media:e,className:t,style:n}){const i=c.useRef(null);return c.useEffect(()=>{if(!e.isVideo)return;const o=i.current;if(!o)return;const l=o.play();l&&l.catch(()=>{})},[e.isVideo,e.url]),e.isVideo?r.jsx("video",{ref:i,className:t,src:e.url,style:n,muted:!0,loop:!0,autoPlay:!0,playsInline:!0,preload:"auto"}):r.jsx("img",{className:t,src:e.url,alt:"",style:n})}function wi(e){return`calc(var(--cntrl-article-width, 100vw) * ${e/1440})`}function nu(e){return String(e??"").trim().length>0}function Ir(e,t){const n=e.currentTarget,i=n.getBoundingClientRect(),o=e.clientY-i.top>i.height/2;n.classList.toggle(`${t}-reveal-from-bottom`,o)}function Rr(e,t){const n=e.currentTarget,i=n.getBoundingClientRect(),o=e.clientY<i.top+i.height/2;n.classList.toggle(`${t}-reveal-from-bottom`,o)}function Pr(e,t,n,i,o,l,s){const d=L.scalingValue(l,s),a=L.scalingValue(0,s),u=e===0,p=e===t-1&&!o;return{borderTopWidth:u&&n?d:a,borderBottomWidth:!p||i?d:a}}function iu(e,t,n){const i=L.scalingValue(t,n),o=L.scalingValue(0,n);return{borderTopWidth:o,borderBottomWidth:e?i:o}}const _r=10;function ou(e){return`
5017
+ `,lo={fontSettings:{type:"object",display:{type:"font-settings-weight"},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},Jd=["titleColor","subtitleColor","lightboxCounterColor"],Zd={type:"object",version:1,content:{type:"array",settings:{addItemWithoutImage:!0},display:{type:"array"},items:{type:"object",properties:{title:{type:"string",label:"Title",placeholder:"Add Title...",display:{type:"text-input"}},subtitle:{type:"string",label:"Subtitle",placeholder:"Add Subtitle...",display:{type:"text-input"}},image:{type:"object",label:"Image",display:{type:"media-list-input"},properties:{url:{type:"string"},name:{type:"string"},type:{type:"string",enum:["image","video"]},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},link:{type:"string",label:"Link",placeholder:"Add link...",display:{type:"text-input"}}},required:["image"]},default:[{title:"Flying Over the Old Town",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(1).webp",objectFit:"cover"}],link:""},{title:"Doors of Matera",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(2).webp",objectFit:"cover"}],link:""},{title:"Cattedrale di Santa Maria",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(3).webp",objectFit:"cover"}],link:""},{title:"City Through the Cracks",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(4).webp",objectFit:"cover"}],link:""},{title:"Private Stone Gardens",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(5).webp",objectFit:"cover"},{url:"https://cdn.cntrl.site/component-assets/grid(6).webp",objectFit:"cover"},{url:"https://cdn.cntrl.site/component-assets/grid(7).webp",objectFit:"cover"}],link:""},{title:"Exiting the Old Town",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(8).webp",objectFit:"cover"}],link:""},{title:"Under the Sun",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(9).webp",objectFit:"cover"}],link:""},{title:"Citygates View",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(10).webp",objectFit:"cover"}],link:""},{title:"Around the City",subtitle:"Leica M6 / SUMMICRON-M 50mm F2/ PORTRA 400",image:[{url:"https://cdn.cntrl.site/component-assets/grid(11).webp",objectFit:"cover"}],link:""}]},settings:{sizing:"auto auto",properties:{type:{type:"string",scope:"layout",title:"",display:{type:"radio-group"},enum:["a","b","c"]},gridLayout:{type:"grid-layout",scope:"layout",display:{type:"grid-layout"},gridParams:{type:"object",properties:{columnsCount:{type:"number",title:"Columns",min:1,max:4},wrapperWidth:{type:"number",title:"Width",min:0},entryWidth:{type:"number",title:"Entry",min:0},horizontalGap:{type:"number",title:"Gap",min:0}}}},textBoxWidth:{type:"number",scope:"layout",title:"Text Width (%)",display:{type:"percentage-input"},min:0},verticalGap:{type:"number",scope:"layout",title:"Vertical Gap",display:{type:"numeric-input"},min:0,max:1e3},showText:{type:"boolean",scope:"common",title:"Show text",display:{type:"toggle-cycle",enum:["always","on hover"]}},alignEntries:{type:"boolean",scope:"layout",title:"Align entries",display:{type:"toggle-cycle",enum:["on","off"]}},entriesCount:{type:"number",scope:"layout",title:"Entries #",display:{type:"toggle-numeric-input",enum:["auto","fixed"]},min:1},lightbox:{type:"boolean",scope:"common",title:"Lightbox",display:{type:"toggle-cycle",enum:["on","off"]}},imageDisplay:{type:"object",scope:"common",title:"Display",display:{type:"image-ratio-control"},properties:{display:{type:"string",enum:["fit","cover"]},ratioValue:{type:"string",enum:["1:1","2:3","3:4","4:5","16:9"]},reversed:{type:"boolean"}}},lightboxImageDisplay:{type:"string",scope:"common",title:"Display",display:{type:"toggle-cycle",enum:["fit","cover"]}},slider:{type:"boolean",scope:"common",title:"Slider",display:{type:"toggle-cycle",enum:["on","off"]}},sliderTiming:{type:"number",scope:"common",title:"Timing (Sec)",display:{type:"common-numeric-input"},min:1,max:10},direction:{type:"string",scope:"common",title:"Direction",display:{type:"toggle-cycle",enum:["horizontal","vertical","random"],enabled:!0}},transition:{type:"string",scope:"common",title:"Transition",display:{type:"toggle-cycle",enum:["fade","slide"]}},titleMarginTop:{type:"number",scope:"layout",title:"Title margin top",min:0,max:100,display:{type:"range-control"}},subtitleMarginTop:{type:"number",scope:"layout",title:"Subtitle margin top",min:0,max:100,display:{type:"range-control"}},titleColor:{type:"string",scope:"common",title:"Title Entry",display:{type:"palette-color-picker"}},subtitleColor:{type:"string",scope:"common",title:"Subtitle Entry",display:{type:"palette-color-picker"}},lightboxCounterColor:{type:"string",scope:"common",title:"Counter Lightbox",display:{type:"palette-color-picker"}},titleFontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},titleFontSettings:{...lo.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},titleFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},titleLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},titleLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},titleWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},titleTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}},subtitleFontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},subtitleFontSettings:{...lo.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},subtitleFontSize:{type:"number",scope:"layout",title:"Subtitle Font Size",display:{type:"font-size"}},subtitleLineHeight:{type:"number",scope:"layout",title:"Subtitle Line Height",display:{type:"line-height-input"}},subtitleLetterSpacing:{type:"number",scope:"layout",title:"Subtitle Letter Spacing",display:{type:"letter-spacing-input"}},subtitleWordSpacing:{type:"number",scope:"layout",title:"Subtitle Word Spacing",display:{type:"word-spacing-input"}},subtitleTextAppearance:{type:"object",scope:"layout",title:"Subtitle Text Appearance",display:{type:"text-appearance"}},lightboxCounterFontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},lightboxCounterFontSettings:{...lo.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},lightboxCounterFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},lightboxCounterLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},lightboxCounterLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},lightboxCounterWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},lightboxCounterTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}}},defaults:{lightbox:"on",imageDisplay:{display:"cover",ratioValue:"2:3",reversed:!1},lightboxImageDisplay:"fit",slider:"on",sliderTiming:3,direction:"horizontal",transition:"fade",showText:"always",alignEntries:"on",titleColor:"#000000",subtitleColor:"#000000",lightboxCounterColor:"#DEDDDD",titleFontFamily:"Arial",titleFontSettings:{fontWeight:400,fontStyle:"normal"},titleLetterSpacing:0,titleWordSpacing:0,titleTextAppearance:{textTransform:"uppercase",textDecoration:"none",fontVariant:"normal"},subtitleFontFamily:"Goudy Bookletter 1911",subtitleFontSettings:{fontWeight:400,fontStyle:"normal"},subtitleLetterSpacing:0,subtitleWordSpacing:0,subtitleTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},lightboxCounterFontFamily:"Goudy Bookletter 1911",lightboxCounterFontSettings:{fontWeight:400,fontStyle:"normal"},lightboxCounterLetterSpacing:0,lightboxCounterWordSpacing:0,lightboxCounterTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}},layoutDefaults:{m:{type:"a",gridLayout:{entryWidth:.8,horizontalGap:.0533,wrapperWidth:1,columnsCount:1,lockedParam:null},textBoxWidth:100,verticalGap:.266,entriesCount:0,titleMarginTop:.02,subtitleMarginTop:.02,titleStroke:.003,titleCorners:.192,subtitlePadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},titlePadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},titleFontSize:.1066,titleLineHeight:.0853,subtitleFontSize:.056,subtitleLineHeight:.0506,lightboxCounterFontSize:.0373,lightboxCounterLineHeight:.0373},d:{type:"a",gridLayout:{entryWidth:.0833,horizontalGap:0,wrapperWidth:1,columnsCount:3,lockedParam:null},textBoxWidth:200,verticalGap:.09722,entriesCount:0,titleMarginTop:.008,subtitleMarginTop:.008,titleStroke:.001,titleCorners:.05,subtitlePadding:{top:.01,right:.01,bottom:.01,left:.01},titlePadding:{top:.01,right:.01,bottom:.01,left:.01},titleFontSize:.027,titleLineHeight:.0222,titleLetterSpacing:-.00118,subtitleFontSize:.01,subtitleLineHeight:.01,lightboxCounterFontSize:.01,lightboxCounterLineHeight:.01}},displayRules:[{if:{name:"transition",value:"fade"},then:{name:"properties.direction.display.enabled",value:!1}},{if:{name:"lightbox",value:"off"},then:{name:"properties.lightboxImageDisplay.display.enabled",value:!1}},{if:{name:"type",value:"a"},then:{name:"properties.alignEntries.display.visible",value:!1}},{if:{name:"type",value:"b"},then:{name:"properties.alignEntries.display.visible",value:!1}}],layout:["__componentName__","name","type","gridLayout","textBoxWidth","verticalGap","showText","alignEntries","entriesCount","lightbox","imageDisplay","lightboxImageDisplay","slider","sliderTiming","direction","transition","transition","titleMarginTop","subtitleMarginTop"]},panels:[{id:"general",icon:"settings",title:"General",tooltip:"General Settings",layout:["__componentName__","type",{type:"row",title:"Grid",items:[{type:"group",title:"",items:["gridLayout"]}]},{type:"row",title:"",items:["textBoxWidth","entriesCount"]},{type:"row",title:"",items:["verticalGap","showText"]},{type:"row",title:"",items:["alignEntries"]}]},{id:"imageSettings",icon:"cover",title:"Image settings",tooltip:"Image settings",layout:["__componentName__",{type:"row",title:"Image",items:["imageDisplay"]},{type:"row",title:"Lightbox",items:["lightbox","lightboxImageDisplay"]},{type:"row",title:"Slider",items:[{type:"group",title:"",items:["slider","sliderTiming"]},{type:"group",title:"",items:["direction","transition"]}]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["__componentName__",{type:"group",title:"Title",items:["titleFontFamily","titleFontSettings",{type:"row",items:["titleFontSize","titleLineHeight","titleLetterSpacing","titleWordSpacing"]},"titleTextAppearance"]},{type:"group",title:"Subtitle",items:["subtitleFontFamily","subtitleFontSettings",{type:"row",items:["subtitleFontSize","subtitleLineHeight","subtitleLetterSpacing","subtitleWordSpacing"]},"subtitleTextAppearance"]},{type:"group",title:"Lightbox Counter",items:["lightboxCounterFontFamily","lightboxCounterFontSettings",{type:"row",items:["lightboxCounterFontSize","lightboxCounterLineHeight","lightboxCounterLetterSpacing","lightboxCounterWordSpacing"]},"lightboxCounterTextAppearance"]}]}],paletteBookmark:{items:[...Jd],panelIds:["general","typeStyle"],stateItems:{default:["titleColor","subtitleColor","lightboxCounterColor"]}}},Qd={element:Ud,id:"grid",name:"Neptune",category:"grids",layoutMode:"structured",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/Neptune_Grid.png"},version:1,defaultSize:{d:{width:720,height:540}},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[]},schema:Zd,sourceCode:Yd};function eu(e){if(e.type==="video")return!0;if(e.type==="image")return!1;const t=e.name??"";return/\.(mp4|webm|ogg|mov)(\?|$)/i.test(t)?!0:/\.(mp4|webm|ogg|mov)(\?|$)/i.test(e.url)}function tu({media:e,className:t,style:n}){const i=c.useRef(null);return c.useEffect(()=>{if(!e.isVideo)return;const o=i.current;if(!o)return;const l=o.play();l&&l.catch(()=>{})},[e.isVideo,e.url]),e.isVideo?r.jsx("video",{ref:i,className:t,src:e.url,style:n,muted:!0,loop:!0,autoPlay:!0,playsInline:!0,preload:"auto"}):r.jsx("img",{className:t,src:e.url,alt:"",style:n})}function $i(e){return`calc(var(--cntrl-article-width, 100vw) * ${e/1440})`}function nu(e){return String(e??"").trim().length>0}function Ir(e,t){const n=e.currentTarget,i=n.getBoundingClientRect(),o=e.clientY-i.top>i.height/2;n.classList.toggle(`${t}-reveal-from-bottom`,o)}function Rr(e,t){const n=e.currentTarget,i=n.getBoundingClientRect(),o=e.clientY<i.top+i.height/2;n.classList.toggle(`${t}-reveal-from-bottom`,o)}function Pr(e,t,n,i,o,l,s){const d=L.scalingValue(l,s),a=L.scalingValue(0,s),u=e===0,p=e===t-1&&!o;return{borderTopWidth:u&&n?d:a,borderBottomWidth:!p||i?d:a}}function iu(e,t,n){const i=L.scalingValue(t,n),o=L.scalingValue(0,n);return{borderTopWidth:o,borderBottomWidth:e?i:o}}const _r=10;function ou(e){return`
5018
5018
  .${e}-wrapper {
5019
5019
  display: grid;
5020
5020
  align-items: start;
5021
- min-height: ${wi(48)};
5021
+ min-height: ${$i(48)};
5022
5022
  position: relative;
5023
5023
  overflow: visible;
5024
5024
  box-sizing: border-box;
@@ -5140,7 +5140,7 @@ a.${e}-list-item {
5140
5140
  flex-shrink: 0;
5141
5141
  overflow: visible;
5142
5142
  box-sizing: border-box;
5143
- min-width: ${wi(50)};
5143
+ min-width: ${$i(50)};
5144
5144
  position: relative;
5145
5145
  display: flex;
5146
5146
  align-items: flex-start;
@@ -5148,7 +5148,7 @@ a.${e}-list-item {
5148
5148
 
5149
5149
  .${e}-list-col-last {
5150
5150
  flex: 1 1 auto;
5151
- min-width: ${wi(50)};
5151
+ min-width: ${$i(50)};
5152
5152
  }
5153
5153
 
5154
5154
  .${e}-list-col-title {
@@ -5445,7 +5445,7 @@ a.${e}-list-item {
5445
5445
  overflow-wrap: anywhere;
5446
5446
  word-break: break-word;
5447
5447
  }
5448
- `}const Jt=["AColumn","BColumnWidth","CColumnWidth","DColumnWidth","EColumnWidth"],Uo=["AColumn","BColumn","CColumn","DColumn","EColumn"],zt="cutLabel",qo=[...Uo,zt],Ui=["A","B","C","D","E"];function ka(e){return`${e}ColumnVerticalAlign`}const $o=["Top","Center","Bottom"];function Xo(e){const t=String(e??"Top").trim();if(t.toLowerCase().startsWith("baseline")){const i=t.slice(-1).toUpperCase();return Ui.includes(i)?`Baseline ${i}`:"Top"}const n=t.toLowerCase();return n==="center"?"Center":n==="bottom"?"Bottom":n==="top"?"Top":t}function ru(e){const t=Xo(e);return t.toLowerCase().startsWith("baseline")?!1:t==="Top"||t==="Center"||t==="Bottom"}function au(e){const t=String(e??"").trim();if(!t.toLowerCase().startsWith("baseline"))return null;const n=t.slice(-1).toUpperCase();return Ui.includes(n)?n:null}function Fa(e,t,n){const i=au(e);return i?i===t?!1:ru(n[ka(i)]):!0}function Kn(e){const t=Xo(e);if(t.toLowerCase().startsWith("baseline")){const n=t.slice(-1).toUpperCase();return Ui.includes(n)?{kind:"baseline",anchorLetter:n}:{kind:"top"}}return t==="Center"?{kind:"center"}:t==="Bottom"?{kind:"bottom"}:{kind:"top"}}function lu(e,t,n){if(Wa(e,t,n))return Kn(e);const i=Kn(e);return i.kind==="baseline"?{kind:"top"}:i}function su(e){const t=Kn(e);return t.kind==="baseline"?{kind:"top"}:t}function Wa(e,t,n){return Fa(e,n,t)?Kn(e).kind==="baseline":!1}function cu(e){const t={};let n=!1;for(const i of Ui){const o=ka(i),l=e[o];if(e.type==="b"){const s=String(l??"Top").trim();s!=="Top"&&s!=="Center"&&s!=="Bottom"&&(t[o]="Top",n=!0);continue}Fa(l,i,e)||(t[o]="Top",n=!0)}return n?t:null}function du(e){return e==="center"?{flex:"0 0 auto",marginTop:"auto",marginBottom:"auto"}:e==="bottom"?{flex:"0 0 auto",marginTop:"auto"}:{}}function uu(e){const t=Kn(e).kind;return t==="baseline"?"center":t}function pu(e){return e==="right"?"flex-end":e==="center"?"center":"flex-start"}function Ar(e){return e==="center"?"center":e==="bottom"?"flex-end":"flex-start"}function mu(e,t){const n=document.createElement("i");n.className=t,n.setAttribute("aria-hidden","true"),e.prepend(n);const{top:i}=e.getBoundingClientRect(),{bottom:o}=n.getBoundingClientRect(),l=o-i;return n.remove(),l}function so(e,t,n,i){const o=e.titleEl;if(!o)return 0;const l=o.closest(`.${n}`);if(!l)return 0;const s=mu(o,i);if(e.kind==="baseline")return o.getBoundingClientRect().top-t+s;const d=l.getBoundingClientRect(),a=o.getBoundingClientRect().height;let u=0;return e.kind==="center"?u=(d.height-a)/2:e.kind==="bottom"&&(u=d.height-a),d.top-t+u+s}function gu(e,t,n){const i=e.getBoundingClientRect().height;return i<=0?0:(t.forEach(o=>{const l=o.querySelector(`.${n}`);l&&(l.style.minHeight=`${i}px`,l.style.height=`${i}px`)}),i)}function hu(e,t){return!e||!t?(e&&(e.style.transform=""),0):(e.style.transform=`translateY(${t}px)`,t)}const fu={AColumn:"AColumn",BColumnWidth:"BColumn",CColumnWidth:"CColumn",DColumnWidth:"DColumn",EColumnWidth:"EColumn"};function Fe(e,t){return`${e}${t.replace(/^text/,"Text")}`}const yu={AColumn:"A",BColumn:"B",CColumn:"C",DColumn:"D",EColumn:"E",cutLabel:"CUT"};function vu(e){return[Fe(e,"textFontFamily"),Fe(e,"textFontSettings"),{type:"row",items:[Fe(e,"textFontSize"),Fe(e,"textLineHeight"),Fe(e,"textLetterSpacing"),Fe(e,"textWordSpacing")]},Fe(e,"textTextAlign"),Fe(e,"textTextAppearance"),`${e}VerticalAlign`]}function bu(){return{type:"tab",id:"listColumnTextStyle",tabs:Object.fromEntries(qo.map(e=>[yu[e],vu(e)]))}}function Mi(e,t){const n=i=>{const o=Fe(t,i);return e[o]};return{textFontFamily:n("textFontFamily")??"Arial",textFontSettings:n("textFontSettings")??{fontWeight:400,fontStyle:"normal"},textFontSize:n("textFontSize"),textLineHeight:n("textLineHeight"),textLetterSpacing:n("textLetterSpacing")??0,textWordSpacing:n("textWordSpacing")??0,textTextAlign:n("textTextAlign")??(t===zt?"center":"left"),textTextAppearance:n("textTextAppearance"),textColor:e.textColor}}function Mr(e,t){var i,o;const n={fontSettings:{fontFamily:e.textFontFamily,fontWeight:((i=e.textFontSettings)==null?void 0:i.fontWeight)??400,fontStyle:((o=e.textFontSettings)==null?void 0:o.fontStyle)??"normal"},fontSize:e.textFontSize??.01,lineHeight:e.textLineHeight,letterSpacing:e.textLetterSpacing,wordSpacing:e.textWordSpacing,textAlign:e.textTextAlign,textAppearance:e.textTextAppearance,color:e.textColor??"#767676"};return _t(ut(n,t))}function kr(e,t,n,i){const o=Mi(e,t),l=o.textFontSize??.01,s=o.textLineHeight;return s!==void 0&&s<l?`${n} ${i}`:n}function Fr(e,t,n,i){const o=Mi(e,t),l=o.textFontSize??.01,s=o.textLineHeight;return s===void 0||s>=l?{}:{[`--${n}-title-leading-gap`]:L.scalingValue((l-s)/2,i)}}const Lt=["AColumnWidth","BColumnWidth","CColumnWidth","DColumnWidth","EColumnWidth"],Ln=["AColumnPaddingLeft","BColumnPaddingLeft","CColumnPaddingLeft","DColumnPaddingLeft","EColumnPaddingLeft"],En=["AColumnPaddingRight","BColumnPaddingRight","CColumnPaddingRight","DColumnPaddingRight","EColumnPaddingRight"],In=["AColumnPaddingBottom","BColumnPaddingBottom","CColumnPaddingBottom","DColumnPaddingBottom","EColumnPaddingBottom"],xu={textColor:"text-color",backgroundColor:"background-color",dividerColor:"divider-color",textHoverColor:"text-hover-color",backgroundHoverColor:"background-hover-color",dividerHoverColor:"divider-hover-color"},Su=["hover","focus","filled","success","error"],Wr=.004,bn=.004,co=bn,Nr=12,Yo=50,Un=1440,qn=Yo/Un;function Na(e){const t=typeof e=="number"&&e>0?e:Un;return Yo/t}function Cu(e,t){const n={position:"absolute",width:Nr,height:Nr,pointerEvents:"auto"};return t==="left-y"?{...n,left:20,top:"50%",transform:"translateY(-50%)"}:t==="center-x"?{...n,left:"50%",top:`var(--${e}-first-entry-handle-top, 50%)`,transform:"translate(-50%, -50%)"}:{...n,left:"50%",top:"50%",transform:"translate(-50%, -50%)"}}function Nt({P:e,className:t,areaStyle:n,hitPlacement:i,...o}){return r.jsx("div",{className:t,style:{...n,pointerEvents:"none"},...o,children:r.jsx("div",{style:Cu(e,i)})})}function $u(e){let t=e??null;for(;t;){const n=t.style.getPropertyValue("--cntrl-article-width").trim();if(n){const o=parseFloat(n);if(Number.isFinite(o)&&o>0)return o}const i=getComputedStyle(t).getPropertyValue("--cntrl-article-width").trim();if(i){const o=parseFloat(i);if(Number.isFinite(o)&&o>0)return o}t=t.parentElement}return Un}const Ha={AColumnWidth:.02,BColumnWidth:.02,CColumnWidth:.02,DColumnWidth:.02,EColumnWidth:.02};function Nn(e){const t=typeof e.wrapperWidth=="number"?e.wrapperWidth:1;return Math.max(0,t)}function wu(e,t=1){const n=t/e;return Object.fromEntries(Lt.map(i=>[i,n]))}function Tu(){return Object.fromEntries([...Ln.map(e=>[e,0]),...En.map(e=>[e,0])])}function Lu(){return Object.fromEntries(In.map(e=>[e,0]))}function gi(e){return Object.fromEntries(Lt.map(t=>[t,typeof e[t]=="number"?e[t]:Ha[t]]))}function Ba(e,t,n){const i=e-qn,o=t+n;if(o<=0||o<=i)return{paddingLeft:t,paddingRight:n};if(i<=0)return{paddingLeft:0,paddingRight:0};const l=i/o;return{paddingLeft:t*l,paddingRight:n*l}}function Ti(e,t,n){const i=Jo(e,t,n);if(e<=0)return[];const o=i.slice(0,e-1).reduce((l,s)=>l+s,0);return[...i.slice(0,e-1),Math.max(0,t-o)]}function Eu(e,t,n){const i={};for(let o=0;o<e;o+=1){const l=Ln[o],s=En[o],d=typeof n[l]=="number"?n[l]:0,a=typeof n[s]=="number"?n[s]:0,u=Ba(t[o]??0,d,a);u.paddingLeft!==d&&(i[l]=u.paddingLeft),u.paddingRight!==a&&(i[s]=u.paddingRight)}return i}function Jo(e,t,n){if(e<=0)return[];const i=Lt.slice(0,e).map(u=>n[u]);if(e===1)return i;const o=i.slice(0,e-1),s=o.reduce((u,p)=>u+p,0)+qn;if(t>=s)return i;const d=[...o];let a=s-t;for(let u=d.length-1;u>=0&&a>0;u-=1){const p=d[u]-qn;if(p<=0)continue;const I=Math.min(a,p);d[u]-=I,a-=I}return[...d,i[e-1]]}function Iu(e,t,n){if(e<=1)return{};const i=Jo(e,t,n),o={};for(let l=0;l<e-1;l+=1){const s=Lt[l];i[l]!==n[s]&&(o[s]=i[l])}return o}function Hr(e){return Array.isArray(e.columnsOrder)&&e.columnsOrder.length>0?e.columnsOrder:[...Jt]}function Ru(e,t){return e.length!==t.length?!1:e.every((n,i)=>n===t[i])}function Pu(e,t,n,i){const o=Math.min(i,e.length,Lt.length),l={};for(let s=0;s<o;s+=1){const d=e[s],a=t.indexOf(d);if(a===-1)continue;const u=Lt[a],p=Ln[a],I=En[a],S=In[a],v=Lt[s],g=Ln[s],h=En[s],R=In[s],T=n[u],y=n[p],w=n[I],N=n[S];typeof T=="number"&&(l[v]=T),typeof y=="number"&&(l[g]=y),typeof w=="number"&&(l[h]=w),typeof N=="number"&&(l[R]=N)}return l}function Oa(e,t){const n=new Set([...Object.keys(e),...Object.keys(t)]);for(const i of n)if(e[i]!==t[i])return!0;return!1}function _u(e,t){const n=e.columns,i=t.columns;if(typeof n!="number"||n===i)return e;const o=Nn(e),l=e.type==="b"||e.type===void 0&&t.type==="b",s={...e,...wu(n,o),...Tu()};if(l)for(const d of In)typeof t[d]=="number"&&(s[d]=t[d]);else Object.assign(s,Lu());return Oa(e,s)?s:e}function Au(e,t,n){const i=cu(e);i&&(e={...e,...i});const o=Na(n==null?void 0:n.designWidth),l=e.columns,s=t.columns,d=Nn(e),a=Nn(t),u=e.type==="b"||e.type===void 0&&t.type==="b",p=typeof l=="number"?l:typeof s=="number"?s:Jt.length,I=w=>{if(u)return w;const N=gi({...t,...w}),_=Nn(w),W=Ti(p,_,N),C=Eu(p,W,{...t,...w});return Object.keys(C).length===0?w:{...w,...C}};if(typeof l=="number"&&l!==s)return e;const S=Hr(e),v=Hr(t);if(!Ru(S,v))return I({...e,...Pu(S,v,t,p)});if(d<a&&typeof p=="number"&&!u){const w=gi({...t,...e});return I({...e,...Iu(p,d,w)})}if(u){const w=typeof e.textPaddingLR=="number"?e.textPaddingLR:0,N=Math.max(0,(d-o)/2);return w>N?{...e,textPaddingLR:N}:e}const g=gi({...t,...e}),h=Ti(p,a,gi(t)),T=Ti(p,d,g).some((w,N)=>w<(h[N]??w)),y=Lt.some(w=>{const N=e[w],_=t[w];return typeof N=="number"&&typeof _=="number"&&N!==_});return T||y?I(e):e}function Mu(e,t,n,i){const o=t.slice(0,e).reduce((s,d)=>s+d,0),l=n.slice(e+1,t.length-1).reduce((s,d)=>s+d,0);return Math.max(qn,i-o-l-qn)}function ku(e,t){return Math.random()*(t-e)+e}function Fu(e){return Object.fromEntries(Lt.map(t=>[t,typeof e[t]=="number"?e[t]:Ha[t]]))}function uo(e,t,n=0){return Object.fromEntries(t.map(i=>[i,typeof e[i]=="number"?e[i]:n]))}function Wu(e,t,n,i,o,l){return e.slice(0,t).map((s,d)=>{const a=Ln[d],u=En[d],p=In[d];return{key:s,textPrefix:fu[s],widthKey:Lt[d],width:n[Lt[d]],paddingLeftKey:a,paddingRightKey:u,paddingBottomKey:p,paddingLeft:i[a],paddingRight:o[u],paddingBottom:l[p]}})}function Nu({settings:e,content:t,isEditor:n,isPreviewMode:i,isEditMode:o,activeEvent:l,layoutId:s,onUpdateSettings:d}){const{prefix:a}=L.useScopedStyles(),u=!!o,{columns:p,type:I,wrapperWidth:S,entriesCount:v,cellMinHeight:g,dividerWidth:h,showVisibility:R,cut:T,showCut:y,cutCellMinHeight:w,cutLabel:N,imageSize:_,imageOnHover:W,entryHoverEffect:C,entryHoverShowOption:P,rowPaddingTop:A,rowPaddingBottom:E,rowPaddingTopB:k,columnsOrder:B,textPaddingLR:V,textColor:K,backgroundColor:ee,dividerColor:m,textHoverColor:b,backgroundHoverColor:F,dividerHoverColor:M}=e,[$,O]=c.useState(void 0),[U,te]=c.useState(null),Y=W==="on"&&(!n||i),fe=(T??0)>0,x=I==="b",q=c.useRef(null),he=c.useRef(null),[pe,be]=c.useState(null),[J,me]=c.useState(Un),G=Na(J),f=Math.max(0,((S??0)-G)/2),H=Math.min(V??0,f),j=Math.max(H,bn),ne=((S??0)+G)/2;c.useLayoutEffect(()=>{if(!n){me(Un);return}const re=()=>{me($u(q.current))};re();const xe=q.current;if(!xe)return;const Te=new ResizeObserver(re);Te.observe(xe);let Ae=xe;for(;Ae&&!Ae.style.getPropertyValue("--cntrl-article-width");)Ae=Ae.parentElement;return Ae&&Te.observe(Ae),()=>Te.disconnect()},[n,s]),c.useEffect(()=>{O(void 0)},[T,y,t,v]),c.useEffect(()=>{n&&!i&&O(void 0)},[n,i]);const de=L.buildColorVars(a,{textColor:K,backgroundColor:ee,dividerColor:m,textHoverColor:b,backgroundHoverColor:F,dividerHoverColor:M},xu,Su),oe=l&&l!=="default"?`${a}-state-${l}`:"",ge=`${!n||i?C==="default"?`${a}-entry-hover-default`:C==="blinds"?`${a}-entry-hover-blinds`:C==="reveal"?`${a}-entry-hover-reveal`:"":""} ${oe}`.trim(),ve=C==="reveal"&&(!n||i),Se=(R==null?void 0:R[0])??!1,D=(R==null?void 0:R[1])??!1,ue=c.useRef(e),z=c.useRef(s);c.useEffect(()=>{if(!d||!n){ue.current=e,z.current=s;return}if(z.current!==s){ue.current=e,z.current=s;return}const re=ue.current;if(!(re!==e))return;if(typeof re.columns=="number"&&typeof e.columns=="number"&&re.columns!==e.columns){ue.current=e;return}const Te=Au(e,re,{designWidth:J});ue.current=e,Oa(e,Te)&&d(Te)},[e,d,n,s,J]);const X=c.useMemo(()=>Fu(e),[e.AColumnWidth,e.BColumnWidth,e.CColumnWidth,e.DColumnWidth,e.EColumnWidth]),Ce=c.useMemo(()=>uo(e,Ln),[e.AColumnPaddingLeft,e.BColumnPaddingLeft,e.CColumnPaddingLeft,e.DColumnPaddingLeft,e.EColumnPaddingLeft]),_e=c.useMemo(()=>uo(e,En),[e.AColumnPaddingRight,e.BColumnPaddingRight,e.CColumnPaddingRight,e.DColumnPaddingRight,e.EColumnPaddingRight]),Ze=c.useMemo(()=>uo(e,In),[e.AColumnPaddingBottom,e.BColumnPaddingBottom,e.CColumnPaddingBottom,e.DColumnPaddingBottom,e.EColumnPaddingBottom]),We=c.useMemo(()=>Array.isArray(B)&&B.length>0?B:[...Jt],[B]),ze=c.useMemo(()=>Wu(We,p,X,Ce,_e,Ze),[We,p,X,Ce,_e,Ze]),Ne=Nn(e),Me=c.useMemo(()=>Lt.slice(0,p).map(re=>X[re]),[p,X]),qe=c.useMemo(()=>Jo(p,Ne,X),[p,Ne,X]),Xe=c.useMemo(()=>Ti(p,Ne,X),[p,Ne,X]),Pe=c.useMemo(()=>ze.map((re,xe)=>Ba(Xe[xe]??0,re.paddingLeft,re.paddingRight)),[ze,Xe]),Ve=c.useMemo(()=>{const re=v===0?1/0:v;return(t??[]).slice(0,re).map((Te,Ae)=>({id:Ae,cells:Object.fromEntries(Jt.map(nt=>[nt,Te[nt]??""])),image:Te.image,link:Te.link}))},[t,v]),ct=fe?$??T:Ve.length,pt=c.useMemo(()=>fe?Ve.slice(0,ct):Ve,[Ve,fe,ct]),rt=fe&&ct<Ve.length,ot=pt.length>1||rt,Z=[Se?`${a}-divider-top`:"",D||ot?`${a}-divider-bottom`:""].filter(Boolean).join(" "),Q=!n||i,ce=()=>{if(!Q)return;const re=$??T;if(!y){O(Ve.length);return}O(Math.min(re+y,Ve.length))},se=re=>L.scalingValue(re,n??!1),Le=x?k??0:A??0,Oe=E??0,ae=g??0,$e=Le+ae/2,Ie=Math.max(Oe,co),Re=Pr(0,pt.length,Se,D,rt,h??0,n??!1).borderTopWidth,je=pe!=null?`${pe}px`:`calc(${Re} + ${se($e)})`,ht=x?"rowPaddingTopB":"rowPaddingTop",we=ze[0],et=ze[ze.length-1],Ye=Pe[0],Je=Pe[Pe.length-1],dt=we&&Ye?Math.max(Ye.paddingLeft,bn):0,tn=et&&Je?Math.max(Je.paddingRight,bn):0,Xi=Ne,pn=re=>{const xe=q.current;if(!xe)return{x:0,y:0};const Te=xe.getBoundingClientRect();return{x:re.clientX-Te.left+_r,y:re.clientY-Te.top+_r}},Yi=(re,xe)=>{if(!Y)return;const Te=re.image;if(!(Te!=null&&Te.url)){te(null);return}const{x:Ae,y:nt}=pn(xe),at=(_==null?void 0:_.min)??80,ke=(_==null?void 0:_.max)??320,St=(U==null?void 0:U.rowId)===re.id?U.widthPx:ku(at,ke);te({rowId:re.id,url:Te.url,objectFit:"contain",isVideo:eu(Te),widthPx:St,x:Ae,y:nt})},ai=re=>{if(!Y||!U)return;const{x:xe,y:Te}=pn(re);te(Ae=>!Ae||Ae.x===xe&&Ae.y===Te?Ae:{...Ae,x:xe,y:Te})},li=()=>{te(null)},Ji=re=>{ve&&Ir(re,a),Y&&te(null)},He=re=>{ve&&Rr(re,a)};c.useLayoutEffect(()=>{if(!u||x){be(null);return}const re=he.current,xe=re==null?void 0:re.parentElement;if(!re||!xe){be(null);return}const Te=()=>{const nt=re.querySelector("[data-list-row]");if(!nt){be(null);return}const at=xe.getBoundingClientRect(),ke=nt.getBoundingClientRect();be(ke.top-at.top+ke.height/2)};Te();const Ae=new ResizeObserver(Te);return Ae.observe(re),Ae.observe(xe),()=>Ae.disconnect()},[u,x,pt,Le,Oe,ae,t,e,ze,Xe,J,h,Se,D,rt]);const bt=c.useMemo(()=>!x&&Uo.some(re=>{const xe=re.charAt(0),Te=e[`${re}VerticalAlign`];return Wa(Te,e,xe)}),[x,e,e.AColumnVerticalAlign,e.BColumnVerticalAlign,e.CColumnVerticalAlign,e.DColumnVerticalAlign,e.EColumnVerticalAlign]);c.useLayoutEffect(()=>{var St;const re=q.current;if(!re)return;const xe=()=>{re.querySelectorAll("[data-list-col]").forEach(Ct=>{Ct.style.transform="";const lt=Ct.querySelector(`.${a}-list-col`);lt&&(lt.style.minHeight="",lt.style.height="");const $t=Ct.querySelector(`.${a}-list-col-title`);$t&&($t.style.transform="")})};if(x||!bt){xe();return}const Te=()=>{const Ct=Array.from(re.querySelectorAll("[data-list-row]")),lt=`${a}-list-col`,$t=`${a}-baseline-probe`;Ct.forEach(De=>{De.querySelectorAll("[data-list-col]").forEach(ft=>{ft.style.transform="";const yt=ft.querySelector(`.${lt}`);yt&&(yt.style.minHeight="",yt.style.height="");const mt=ft.querySelector(`.${a}-list-col-title`);mt&&(mt.style.transform="")})}),Ct.forEach(De=>{const ft=Array.from(De.querySelectorAll("[data-list-col]"));gu(De,ft,lt)}),re.offsetHeight,Ct.forEach(De=>{const ft=Array.from(De.querySelectorAll("[data-list-col]")),yt=De.getBoundingClientRect().top,mt=new Map,mn=ft.map(tt=>{const gn=tt.querySelector(`.${a}-list-col-title`),hn={el:tt,titleEl:gn,letter:tt.getAttribute("data-col-letter")??"",kind:tt.getAttribute("data-valign")??"top",anchor:tt.getAttribute("data-valign-anchor")};return mt.set(hn.letter,hn),hn}),st=new Map,si=(tt,gn)=>{const hn=st.get(tt.letter);if(hn!==void 0)return hn;const Zo=tt.anchor?mt.get(tt.anchor):void 0;if(tt.kind!=="baseline"||!Zo||gn.has(tt.letter)){const er=so(tt,yt,lt,$t);return st.set(tt.letter,er),er}gn.add(tt.letter);const Ga=si(Zo,gn);gn.delete(tt.letter);const Ka=so(tt,yt,lt,$t),Ua=Ga-Ka;hu(tt.titleEl,Ua);const Qo=so(tt,yt,lt,$t);return st.set(tt.letter,Qo),Qo};mn.forEach(tt=>si(tt,new Set))})};let Ae=null;const nt=()=>{Ae===null&&(Ae=requestAnimationFrame(()=>{Ae=null,Te()}))};Te();const at=new ResizeObserver(()=>nt());at.observe(re);let ke=!1;return typeof document<"u"&&((St=document.fonts)!=null&&St.ready)&&document.fonts.ready.then(()=>{ke||nt()}),()=>{ke=!0,Ae!==null&&(cancelAnimationFrame(Ae),Ae=null),at.disconnect(),xe()}},[bt,x,e,t,J,pt,Xe]);const xt=c.useMemo(()=>ou(a),[a]);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:xt}}),r.jsx("div",{style:de,children:r.jsxs("div",{ref:q,className:`${a}-wrapper ${ge}${Z?` ${Z}`:""}${x?` ${a}-type-b`:""}`.trim(),style:{width:L.scalingValue(S??0,n),...!x&&u?{[`--${a}-first-entry-handle-top`]:je}:{}},onMouseMove:Y?ai:void 0,onMouseLeave:Y?li:void 0,children:[r.jsxs("div",{style:{width:"100%",position:"relative"},children:[pt.map((re,xe)=>{var at;const Te=(((at=re.link)==null?void 0:at.length)??0)>0,Ae=Te&&(!n||i)?"a":"div",nt=Pr(xe,pt.length,Se,D,rt,h??0,n??!1);return r.jsxs(Ae,{ref:xe===0?ke=>{he.current=ke}:void 0,className:`${a}-list-item${Te||P==="always"?` ${a}-list-item-has-link`:""}`,...Te?{href:re.link,target:"_blank"}:{},style:nt,onMouseEnter:ke=>{ve&&(Te||P==="always")&&Ir(ke,a),Y&&Yi(re,ke)},onMouseLeave:ke=>{ve&&(Te||P==="always")&&Rr(ke,a)},children:[Le>0&&r.jsx("div",{className:`${a}-row-padding-handle`,style:{height:se(Le)}}),r.jsxs("div",{className:`${a}-list-cols-row${x?"":` ${a}-list-cols-row-h`}${u&&xe===0&&x?` ${a}-list-cols-row-controls`:""}`,...x?{}:{"data-list-row":""},style:x?void 0:{minHeight:se(ae)},children:[ze.map((ke,St)=>{const Ct=St===ze.length-1,lt=Pe[St],$t=ke.paddingBottom,De=nu(re.cells[ke.key]),ft=x&&De&&$t>0,yt=x?{minHeight:se(ae)}:{width:se(Xe[St])},mt=x?{paddingLeft:se(H),paddingRight:se(H)}:{paddingLeft:se(lt.paddingLeft),paddingRight:se(lt.paddingRight)},mn=ke.textPrefix.charAt(0),st=x?su(e[`${ke.textPrefix}VerticalAlign`]):lu(e[`${ke.textPrefix}VerticalAlign`],e,mn),si=x&&De&&u&&xe===0;return r.jsxs("div",{className:x?`${a}-list-col-wrap`:void 0,...x?{}:{"data-list-col":"","data-col-letter":mn,"data-valign":st.kind,...st.kind==="baseline"?{"data-valign-anchor":st.anchorLetter}:{}},children:[r.jsx("div",{className:`${a}-list-col${Ct?` ${a}-list-col-last`:""}`,style:{...mt,...yt,...x?{justifyContent:Ar(st.kind)}:{}},"data-test":ke.width,children:r.jsx("span",{className:kr(e,ke.textPrefix,`${a}-list-col-title`,`${a}-text-tight-leading`),style:{...Mr(Mi(e,ke.textPrefix),n),...Fr(e,ke.textPrefix,a,n),...x?{}:du(st.kind)},children:re.cells[ke.key]??null})}),ft&&r.jsx("div",{className:`${a}-row-padding-handle`,style:{height:se($t)}}),si&&r.jsx(Nt,{P:a,"data-controls":ke.paddingBottomKey,"data-controls-static-handle":"","data-controls-axis":"y","data-controls-variant":"column-padding","data-controls-min":"0",className:`${a}-padding-control-handle`,hitPlacement:"center",areaStyle:{position:"absolute",bottom:0,left:0,width:"100%",height:se(Math.max($t,co))}})]},ke.key)}),u&&xe===0&&x&&r.jsxs(r.Fragment,{children:[r.jsx(Nt,{P:a,"data-controls":"textPaddingLR","data-controls-static-handle":"","data-controls-paired":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-min":"0","data-controls-max-fraction":String(ne),className:`${a}-text-padding-lr-handle`,hitPlacement:"center",areaStyle:{position:"absolute",top:0,left:0,width:se(j),height:"100%"}}),r.jsx(Nt,{P:a,"data-controls":"textPaddingLR","data-controls-static-handle":"","data-controls-paired":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-reverse":"","data-controls-min":"0","data-controls-max-fraction":String(ne),className:`${a}-text-padding-lr-handle`,hitPlacement:"center",areaStyle:{position:"absolute",top:0,left:se(Math.max(j,Ne-j)),width:se(j),height:"100%"}})]})]}),!x&&Oe>0&&r.jsx("div",{className:`${a}-row-padding-handle`,style:{height:se(Oe)}}),u&&xe===0&&!x&&r.jsx(Nt,{P:a,"data-controls":"rowPaddingBottom","data-controls-static-handle":"","data-controls-handle-left":"20","data-controls-axis":"y","data-controls-variant":"row-padding","data-controls-min":"0",className:`${a}-padding-control-handle`,hitPlacement:"left-y",areaStyle:{position:"absolute",bottom:0,left:0,width:"100%",height:se(Ie)}})]},re.id)}),u&&r.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:r.jsx(Nt,{P:a,"data-controls":ht,"data-controls-static-handle":"",...x?{}:{"data-controls-handle-left":"20"},"data-controls-axis":"y","data-controls-variant":"row-padding","data-controls-min":"0",className:`${a}-padding-control-handle`,hitPlacement:x?"center":"left-y",areaStyle:{position:"absolute",top:Re,left:0,width:"100%",height:se(Math.max(Le,co))}})},"row-padding-handles"),u&&!x&&we&&et&&r.jsxs("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:[r.jsx(Nt,{P:a,"data-controls":we.paddingLeftKey,"data-controls-static-handle":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-min":"0","data-controls-max-fraction":String(Xe[0]-((Ye==null?void 0:Ye.paddingRight)??0)),className:`${a}-padding-control-handle`,hitPlacement:"center-x",areaStyle:{position:"absolute",top:0,left:0,width:se(dt),height:"100%"}}),r.jsx(Nt,{P:a,"data-controls":et.paddingRightKey,"data-controls-static-handle":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-reverse":"","data-controls-min":"0","data-controls-max-fraction":String(Xe[ze.length-1]-((Je==null?void 0:Je.paddingLeft)??0)),className:`${a}-padding-control-handle`,hitPlacement:"center-x",areaStyle:{position:"absolute",top:0,left:se(Xi-tn),width:se(tn),height:"100%"}})]},"column-edge-padding-handles"),u&&!x&&ze.slice(0,-1).map((re,xe)=>{const Te=ze[xe+1],Ae=qe.slice(0,xe+1).reduce((Ct,lt)=>Ct+lt,0),nt=Pe[xe],at=Pe[xe+1],ke=Math.max(nt.paddingRight,bn),St=Math.max(at.paddingLeft,bn);return r.jsxs("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:[r.jsx(Nt,{P:a,"data-controls":re.paddingRightKey,"data-controls-static-handle":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-reverse":"","data-controls-min":"0","data-controls-max-fraction":String(Xe[xe]-nt.paddingLeft),className:`${a}-padding-control-handle`,hitPlacement:"center-x",areaStyle:{position:"absolute",top:0,left:se(Ae-ke),width:se(ke),height:"100%"}}),r.jsx(Nt,{P:a,"data-controls":Te.paddingLeftKey,"data-controls-static-handle":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-min":"0","data-controls-max-fraction":String(Xe[xe+1]-at.paddingRight),className:`${a}-padding-control-handle`,hitPlacement:"center-x",areaStyle:{position:"absolute",top:0,left:se(Ae),width:se(St),height:"100%"}})]},`${re.paddingRightKey}-padding`)}),u&&!x&&ze.slice(0,-1).map((re,xe)=>{const Te=Mu(xe,qe,Me,Ne),nt=qe.slice(0,xe+1).reduce((at,ke)=>at+ke,0)-Wr/2;return r.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:r.jsx("div",{"data-controls":re.widthKey,"data-controls-static-handle":"","data-controls-axis":"x","data-controls-min":String(Yo),"data-controls-max-fraction":String(Te),"data-controls-variant":"column-width",className:`${a}-col-resize-handle`,style:{position:"absolute",top:"0px",left:se(nt),width:se(Wr),height:"calc(100%)",pointerEvents:"auto"}})},`${re.widthKey}-junction`)})]}),rt&&(()=>{const re=Mi(e,zt),xe=uu(e.cutLabelVerticalAlign),Te=re.textTextAlign==="justify"||x;return r.jsx("button",{type:"button",className:`${a}-cut-item`,style:{minHeight:se(w??0),cursor:Q?"pointer":"default",...iu(D,h??0,n??!1)},onClick:Q?ce:void 0,onMouseEnter:ve||Y?Ji:void 0,onMouseLeave:ve?He:void 0,children:r.jsx("div",{className:`${a}-list-cols-row`,style:{...x?{paddingLeft:se(H),paddingRight:se(H)}:{},justifyContent:pu(re.textTextAlign),alignItems:Ar(xe)},children:r.jsx("span",{className:kr(e,zt,`${a}-cut-label`,`${a}-text-tight-leading`),style:{...Mr(re,n),...Fr(e,zt,a,n),...Te?{width:"100%"}:{}},children:N})})})})(),Y&&U&&(()=>{const re=wi(U.widthPx),xe={width:re,height:"auto",maxHeight:re,objectFit:"contain",left:U.x,top:U.y,position:"absolute"};return r.jsx(tu,{media:U,className:U.isVideo?`${a}-hover-video`:`${a}-hover-image`,style:xe},`${U.rowId}-${U.url}`)})()]})})]})}const Hu=`import { useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type ComponentPropsWithoutRef } from 'react';
5448
+ `}const Jt=["AColumn","BColumnWidth","CColumnWidth","DColumnWidth","EColumnWidth"],Uo=["AColumn","BColumn","CColumn","DColumn","EColumn"],zt="cutLabel",qo=[...Uo,zt],Ui=["A","B","C","D","E"];function ka(e){return`${e}ColumnVerticalAlign`}const $o=["Top","Center","Bottom"];function Xo(e){const t=String(e??"Top").trim();if(t.toLowerCase().startsWith("baseline")){const i=t.slice(-1).toUpperCase();return Ui.includes(i)?`Baseline ${i}`:"Top"}const n=t.toLowerCase();return n==="center"?"Center":n==="bottom"?"Bottom":n==="top"?"Top":t}function ru(e){const t=Xo(e);return t.toLowerCase().startsWith("baseline")?!1:t==="Top"||t==="Center"||t==="Bottom"}function au(e){const t=String(e??"").trim();if(!t.toLowerCase().startsWith("baseline"))return null;const n=t.slice(-1).toUpperCase();return Ui.includes(n)?n:null}function Fa(e,t,n){const i=au(e);return i?i===t?!1:ru(n[ka(i)]):!0}function Kn(e){const t=Xo(e);if(t.toLowerCase().startsWith("baseline")){const n=t.slice(-1).toUpperCase();return Ui.includes(n)?{kind:"baseline",anchorLetter:n}:{kind:"top"}}return t==="Center"?{kind:"center"}:t==="Bottom"?{kind:"bottom"}:{kind:"top"}}function lu(e,t,n){if(Wa(e,t,n))return Kn(e);const i=Kn(e);return i.kind==="baseline"?{kind:"top"}:i}function su(e){const t=Kn(e);return t.kind==="baseline"?{kind:"top"}:t}function Wa(e,t,n){return Fa(e,n,t)?Kn(e).kind==="baseline":!1}function cu(e){const t={};let n=!1;for(const i of Ui){const o=ka(i),l=e[o];if(e.type==="b"){const s=String(l??"Top").trim();s!=="Top"&&s!=="Center"&&s!=="Bottom"&&(t[o]="Top",n=!0);continue}Fa(l,i,e)||(t[o]="Top",n=!0)}return n?t:null}function du(e){return e==="center"?{flex:"0 0 auto",marginTop:"auto",marginBottom:"auto"}:e==="bottom"?{flex:"0 0 auto",marginTop:"auto"}:{}}function uu(e){const t=Kn(e).kind;return t==="baseline"?"center":t}function pu(e){return e==="right"?"flex-end":e==="center"?"center":"flex-start"}function Ar(e){return e==="center"?"center":e==="bottom"?"flex-end":"flex-start"}function mu(e,t){const n=document.createElement("i");n.className=t,n.setAttribute("aria-hidden","true"),e.prepend(n);const{top:i}=e.getBoundingClientRect(),{bottom:o}=n.getBoundingClientRect(),l=o-i;return n.remove(),l}function so(e,t,n,i){const o=e.titleEl;if(!o)return 0;const l=o.closest(`.${n}`);if(!l)return 0;const s=mu(o,i);if(e.kind==="baseline")return o.getBoundingClientRect().top-t+s;const d=l.getBoundingClientRect(),a=o.getBoundingClientRect().height;let u=0;return e.kind==="center"?u=(d.height-a)/2:e.kind==="bottom"&&(u=d.height-a),d.top-t+u+s}function gu(e,t,n){const i=e.getBoundingClientRect().height;return i<=0?0:(t.forEach(o=>{const l=o.querySelector(`.${n}`);l&&(l.style.minHeight=`${i}px`,l.style.height=`${i}px`)}),i)}function hu(e,t){return!e||!t?(e&&(e.style.transform=""),0):(e.style.transform=`translateY(${t}px)`,t)}const fu={AColumn:"AColumn",BColumnWidth:"BColumn",CColumnWidth:"CColumn",DColumnWidth:"DColumn",EColumnWidth:"EColumn"};function Fe(e,t){return`${e}${t.replace(/^text/,"Text")}`}const yu={AColumn:"A",BColumn:"B",CColumn:"C",DColumn:"D",EColumn:"E",cutLabel:"CUT"};function vu(e){return[Fe(e,"textFontFamily"),Fe(e,"textFontSettings"),{type:"row",items:[Fe(e,"textFontSize"),Fe(e,"textLineHeight"),Fe(e,"textLetterSpacing"),Fe(e,"textWordSpacing")]},Fe(e,"textTextAlign"),Fe(e,"textTextAppearance"),`${e}VerticalAlign`]}function bu(){return{type:"tab",id:"listColumnTextStyle",tabs:Object.fromEntries(qo.map(e=>[yu[e],vu(e)]))}}function Mi(e,t){const n=i=>{const o=Fe(t,i);return e[o]};return{textFontFamily:n("textFontFamily")??"Arial",textFontSettings:n("textFontSettings")??{fontWeight:400,fontStyle:"normal"},textFontSize:n("textFontSize"),textLineHeight:n("textLineHeight"),textLetterSpacing:n("textLetterSpacing")??0,textWordSpacing:n("textWordSpacing")??0,textTextAlign:n("textTextAlign")??(t===zt?"center":"left"),textTextAppearance:n("textTextAppearance"),textColor:e.textColor}}function Mr(e,t){var i,o;const n={fontSettings:{fontFamily:e.textFontFamily,fontWeight:((i=e.textFontSettings)==null?void 0:i.fontWeight)??400,fontStyle:((o=e.textFontSettings)==null?void 0:o.fontStyle)??"normal"},fontSize:e.textFontSize??.01,lineHeight:e.textLineHeight,letterSpacing:e.textLetterSpacing,wordSpacing:e.textWordSpacing,textAlign:e.textTextAlign,textAppearance:e.textTextAppearance,color:e.textColor??"#767676"};return _t(ut(n,t))}function kr(e,t,n,i){const o=Mi(e,t),l=o.textFontSize??.01,s=o.textLineHeight;return s!==void 0&&s<l?`${n} ${i}`:n}function Fr(e,t,n,i){const o=Mi(e,t),l=o.textFontSize??.01,s=o.textLineHeight;return s===void 0||s>=l?{}:{[`--${n}-title-leading-gap`]:L.scalingValue((l-s)/2,i)}}const Lt=["AColumnWidth","BColumnWidth","CColumnWidth","DColumnWidth","EColumnWidth"],Ln=["AColumnPaddingLeft","BColumnPaddingLeft","CColumnPaddingLeft","DColumnPaddingLeft","EColumnPaddingLeft"],En=["AColumnPaddingRight","BColumnPaddingRight","CColumnPaddingRight","DColumnPaddingRight","EColumnPaddingRight"],In=["AColumnPaddingBottom","BColumnPaddingBottom","CColumnPaddingBottom","DColumnPaddingBottom","EColumnPaddingBottom"],xu={textColor:"text-color",backgroundColor:"background-color",dividerColor:"divider-color",textHoverColor:"text-hover-color",backgroundHoverColor:"background-hover-color",dividerHoverColor:"divider-hover-color"},Su=["hover","focus","filled","success","error"],Wr=.004,bn=.004,co=bn,Nr=12,Yo=50,Un=1440,qn=Yo/Un;function Na(e){const t=typeof e=="number"&&e>0?e:Un;return Yo/t}function Cu(e,t){const n={position:"absolute",width:Nr,height:Nr,pointerEvents:"auto"};return t==="left-y"?{...n,left:20,top:"50%",transform:"translateY(-50%)"}:t==="center-x"?{...n,left:"50%",top:`var(--${e}-first-entry-handle-top, 50%)`,transform:"translate(-50%, -50%)"}:{...n,left:"50%",top:"50%",transform:"translate(-50%, -50%)"}}function Nt({P:e,className:t,areaStyle:n,hitPlacement:i,...o}){return r.jsx("div",{className:t,style:{...n,pointerEvents:"none"},...o,children:r.jsx("div",{style:Cu(e,i)})})}function $u(e){let t=e??null;for(;t;){const n=t.style.getPropertyValue("--cntrl-article-width").trim();if(n){const o=parseFloat(n);if(Number.isFinite(o)&&o>0)return o}const i=getComputedStyle(t).getPropertyValue("--cntrl-article-width").trim();if(i){const o=parseFloat(i);if(Number.isFinite(o)&&o>0)return o}t=t.parentElement}return Un}const Ha={AColumnWidth:.02,BColumnWidth:.02,CColumnWidth:.02,DColumnWidth:.02,EColumnWidth:.02};function Nn(e){const t=typeof e.wrapperWidth=="number"?e.wrapperWidth:1;return Math.max(0,t)}function wu(e,t=1){const n=t/e;return Object.fromEntries(Lt.map(i=>[i,n]))}function Tu(){return Object.fromEntries([...Ln.map(e=>[e,0]),...En.map(e=>[e,0])])}function Lu(){return Object.fromEntries(In.map(e=>[e,0]))}function gi(e){return Object.fromEntries(Lt.map(t=>[t,typeof e[t]=="number"?e[t]:Ha[t]]))}function Ba(e,t,n){const i=e-qn,o=t+n;if(o<=0||o<=i)return{paddingLeft:t,paddingRight:n};if(i<=0)return{paddingLeft:0,paddingRight:0};const l=i/o;return{paddingLeft:t*l,paddingRight:n*l}}function wi(e,t,n){const i=Jo(e,t,n);if(e<=0)return[];const o=i.slice(0,e-1).reduce((l,s)=>l+s,0);return[...i.slice(0,e-1),Math.max(0,t-o)]}function Eu(e,t,n){const i={};for(let o=0;o<e;o+=1){const l=Ln[o],s=En[o],d=typeof n[l]=="number"?n[l]:0,a=typeof n[s]=="number"?n[s]:0,u=Ba(t[o]??0,d,a);u.paddingLeft!==d&&(i[l]=u.paddingLeft),u.paddingRight!==a&&(i[s]=u.paddingRight)}return i}function Jo(e,t,n){if(e<=0)return[];const i=Lt.slice(0,e).map(u=>n[u]);if(e===1)return i;const o=i.slice(0,e-1),s=o.reduce((u,p)=>u+p,0)+qn;if(t>=s)return i;const d=[...o];let a=s-t;for(let u=d.length-1;u>=0&&a>0;u-=1){const p=d[u]-qn;if(p<=0)continue;const I=Math.min(a,p);d[u]-=I,a-=I}return[...d,i[e-1]]}function Iu(e,t,n){if(e<=1)return{};const i=Jo(e,t,n),o={};for(let l=0;l<e-1;l+=1){const s=Lt[l];i[l]!==n[s]&&(o[s]=i[l])}return o}function Hr(e){return Array.isArray(e.columnsOrder)&&e.columnsOrder.length>0?e.columnsOrder:[...Jt]}function Ru(e,t){return e.length!==t.length?!1:e.every((n,i)=>n===t[i])}function Pu(e,t,n,i){const o=Math.min(i,e.length,Lt.length),l={};for(let s=0;s<o;s+=1){const d=e[s],a=t.indexOf(d);if(a===-1)continue;const u=Lt[a],p=Ln[a],I=En[a],S=In[a],v=Lt[s],g=Ln[s],h=En[s],R=In[s],T=n[u],y=n[p],w=n[I],N=n[S];typeof T=="number"&&(l[v]=T),typeof y=="number"&&(l[g]=y),typeof w=="number"&&(l[h]=w),typeof N=="number"&&(l[R]=N)}return l}function Oa(e,t){const n=new Set([...Object.keys(e),...Object.keys(t)]);for(const i of n)if(e[i]!==t[i])return!0;return!1}function _u(e,t){const n=e.columns,i=t.columns;if(typeof n!="number"||n===i)return e;const o=Nn(e),l=e.type==="b"||e.type===void 0&&t.type==="b",s={...e,...wu(n,o),...Tu()};if(l)for(const d of In)typeof t[d]=="number"&&(s[d]=t[d]);else Object.assign(s,Lu());return Oa(e,s)?s:e}function Au(e,t,n){const i=cu(e);i&&(e={...e,...i});const o=Na(n==null?void 0:n.designWidth),l=e.columns,s=t.columns,d=Nn(e),a=Nn(t),u=e.type==="b"||e.type===void 0&&t.type==="b",p=typeof l=="number"?l:typeof s=="number"?s:Jt.length,I=w=>{if(u)return w;const N=gi({...t,...w}),_=Nn(w),W=wi(p,_,N),C=Eu(p,W,{...t,...w});return Object.keys(C).length===0?w:{...w,...C}};if(typeof l=="number"&&l!==s)return e;const S=Hr(e),v=Hr(t);if(!Ru(S,v))return I({...e,...Pu(S,v,t,p)});if(d<a&&typeof p=="number"&&!u){const w=gi({...t,...e});return I({...e,...Iu(p,d,w)})}if(u){const w=typeof e.textPaddingLR=="number"?e.textPaddingLR:0,N=Math.max(0,(d-o)/2);return w>N?{...e,textPaddingLR:N}:e}const g=gi({...t,...e}),h=wi(p,a,gi(t)),T=wi(p,d,g).some((w,N)=>w<(h[N]??w)),y=Lt.some(w=>{const N=e[w],_=t[w];return typeof N=="number"&&typeof _=="number"&&N!==_});return T||y?I(e):e}function Mu(e,t,n,i){const o=t.slice(0,e).reduce((s,d)=>s+d,0),l=n.slice(e+1,t.length-1).reduce((s,d)=>s+d,0);return Math.max(qn,i-o-l-qn)}function ku(e,t){return Math.random()*(t-e)+e}function Fu(e){return Object.fromEntries(Lt.map(t=>[t,typeof e[t]=="number"?e[t]:Ha[t]]))}function uo(e,t,n=0){return Object.fromEntries(t.map(i=>[i,typeof e[i]=="number"?e[i]:n]))}function Wu(e,t,n,i,o,l){return e.slice(0,t).map((s,d)=>{const a=Ln[d],u=En[d],p=In[d];return{key:s,textPrefix:fu[s],widthKey:Lt[d],width:n[Lt[d]],paddingLeftKey:a,paddingRightKey:u,paddingBottomKey:p,paddingLeft:i[a],paddingRight:o[u],paddingBottom:l[p]}})}function Nu({settings:e,content:t,isEditor:n,isPreviewMode:i,isEditMode:o,activeEvent:l,layoutId:s,onUpdateSettings:d}){const{prefix:a}=L.useScopedStyles(),u=!!o,{columns:p,type:I,wrapperWidth:S,entriesCount:v,cellMinHeight:g,dividerWidth:h,showVisibility:R,cut:T,showCut:y,cutCellMinHeight:w,cutLabel:N,imageSize:_,imageOnHover:W,entryHoverEffect:C,entryHoverShowOption:P,rowPaddingTop:A,rowPaddingBottom:E,rowPaddingTopB:k,columnsOrder:B,textPaddingLR:V,textColor:K,backgroundColor:ee,dividerColor:m,textHoverColor:b,backgroundHoverColor:F,dividerHoverColor:M}=e,[$,O]=c.useState(void 0),[U,te]=c.useState(null),Y=W==="on"&&(!n||i),fe=(T??0)>0,x=I==="b",q=c.useRef(null),he=c.useRef(null),[pe,be]=c.useState(null),[J,me]=c.useState(Un),G=Na(J),f=Math.max(0,((S??0)-G)/2),H=Math.min(V??0,f),j=Math.max(H,bn),ne=((S??0)+G)/2;c.useLayoutEffect(()=>{if(!n){me(Un);return}const re=()=>{me($u(q.current))};re();const xe=q.current;if(!xe)return;const Te=new ResizeObserver(re);Te.observe(xe);let Ae=xe;for(;Ae&&!Ae.style.getPropertyValue("--cntrl-article-width");)Ae=Ae.parentElement;return Ae&&Te.observe(Ae),()=>Te.disconnect()},[n,s]),c.useEffect(()=>{O(void 0)},[T,y,t,v]),c.useEffect(()=>{n&&!i&&O(void 0)},[n,i]);const de=L.buildColorVars(a,{textColor:K,backgroundColor:ee,dividerColor:m,textHoverColor:b,backgroundHoverColor:F,dividerHoverColor:M},xu,Su),oe=l&&l!=="default"?`${a}-state-${l}`:"",ge=`${!n||i?C==="default"?`${a}-entry-hover-default`:C==="blinds"?`${a}-entry-hover-blinds`:C==="reveal"?`${a}-entry-hover-reveal`:"":""} ${oe}`.trim(),ve=C==="reveal"&&(!n||i),Se=(R==null?void 0:R[0])??!1,D=(R==null?void 0:R[1])??!1,ue=c.useRef(e),z=c.useRef(s);c.useEffect(()=>{if(!d||!n){ue.current=e,z.current=s;return}if(z.current!==s){ue.current=e,z.current=s;return}const re=ue.current;if(!(re!==e))return;if(typeof re.columns=="number"&&typeof e.columns=="number"&&re.columns!==e.columns){ue.current=e;return}const Te=Au(e,re,{designWidth:J});ue.current=e,Oa(e,Te)&&d(Te)},[e,d,n,s,J]);const X=c.useMemo(()=>Fu(e),[e.AColumnWidth,e.BColumnWidth,e.CColumnWidth,e.DColumnWidth,e.EColumnWidth]),Ce=c.useMemo(()=>uo(e,Ln),[e.AColumnPaddingLeft,e.BColumnPaddingLeft,e.CColumnPaddingLeft,e.DColumnPaddingLeft,e.EColumnPaddingLeft]),_e=c.useMemo(()=>uo(e,En),[e.AColumnPaddingRight,e.BColumnPaddingRight,e.CColumnPaddingRight,e.DColumnPaddingRight,e.EColumnPaddingRight]),Ze=c.useMemo(()=>uo(e,In),[e.AColumnPaddingBottom,e.BColumnPaddingBottom,e.CColumnPaddingBottom,e.DColumnPaddingBottom,e.EColumnPaddingBottom]),We=c.useMemo(()=>Array.isArray(B)&&B.length>0?B:[...Jt],[B]),ze=c.useMemo(()=>Wu(We,p,X,Ce,_e,Ze),[We,p,X,Ce,_e,Ze]),Ne=Nn(e),Me=c.useMemo(()=>Lt.slice(0,p).map(re=>X[re]),[p,X]),qe=c.useMemo(()=>Jo(p,Ne,X),[p,Ne,X]),Xe=c.useMemo(()=>wi(p,Ne,X),[p,Ne,X]),Pe=c.useMemo(()=>ze.map((re,xe)=>Ba(Xe[xe]??0,re.paddingLeft,re.paddingRight)),[ze,Xe]),Ve=c.useMemo(()=>{const re=v===0?1/0:v;return(t??[]).slice(0,re).map((Te,Ae)=>({id:Ae,cells:Object.fromEntries(Jt.map(nt=>[nt,Te[nt]??""])),image:Te.image,link:Te.link}))},[t,v]),ct=fe?$??T:Ve.length,pt=c.useMemo(()=>fe?Ve.slice(0,ct):Ve,[Ve,fe,ct]),rt=fe&&ct<Ve.length,ot=pt.length>1||rt,Z=[Se?`${a}-divider-top`:"",D||ot?`${a}-divider-bottom`:""].filter(Boolean).join(" "),Q=!n||i,ce=()=>{if(!Q)return;const re=$??T;if(!y){O(Ve.length);return}O(Math.min(re+y,Ve.length))},se=re=>L.scalingValue(re,n??!1),Le=x?k??0:A??0,Oe=E??0,ae=g??0,$e=Le+ae/2,Ie=Math.max(Oe,co),Re=Pr(0,pt.length,Se,D,rt,h??0,n??!1).borderTopWidth,je=pe!=null?`${pe}px`:`calc(${Re} + ${se($e)})`,ht=x?"rowPaddingTopB":"rowPaddingTop",we=ze[0],et=ze[ze.length-1],Ye=Pe[0],Je=Pe[Pe.length-1],dt=we&&Ye?Math.max(Ye.paddingLeft,bn):0,tn=et&&Je?Math.max(Je.paddingRight,bn):0,Xi=Ne,pn=re=>{const xe=q.current;if(!xe)return{x:0,y:0};const Te=xe.getBoundingClientRect();return{x:re.clientX-Te.left+_r,y:re.clientY-Te.top+_r}},Yi=(re,xe)=>{if(!Y)return;const Te=re.image;if(!(Te!=null&&Te.url)){te(null);return}const{x:Ae,y:nt}=pn(xe),at=(_==null?void 0:_.min)??80,ke=(_==null?void 0:_.max)??320,St=(U==null?void 0:U.rowId)===re.id?U.widthPx:ku(at,ke);te({rowId:re.id,url:Te.url,objectFit:"contain",isVideo:eu(Te),widthPx:St,x:Ae,y:nt})},ai=re=>{if(!Y||!U)return;const{x:xe,y:Te}=pn(re);te(Ae=>!Ae||Ae.x===xe&&Ae.y===Te?Ae:{...Ae,x:xe,y:Te})},li=()=>{te(null)},Ji=re=>{ve&&Ir(re,a),Y&&te(null)},He=re=>{ve&&Rr(re,a)};c.useLayoutEffect(()=>{if(!u||x){be(null);return}const re=he.current,xe=re==null?void 0:re.parentElement;if(!re||!xe){be(null);return}const Te=()=>{const nt=re.querySelector("[data-list-row]");if(!nt){be(null);return}const at=xe.getBoundingClientRect(),ke=nt.getBoundingClientRect();be(ke.top-at.top+ke.height/2)};Te();const Ae=new ResizeObserver(Te);return Ae.observe(re),Ae.observe(xe),()=>Ae.disconnect()},[u,x,pt,Le,Oe,ae,t,e,ze,Xe,J,h,Se,D,rt]);const bt=c.useMemo(()=>!x&&Uo.some(re=>{const xe=re.charAt(0),Te=e[`${re}VerticalAlign`];return Wa(Te,e,xe)}),[x,e,e.AColumnVerticalAlign,e.BColumnVerticalAlign,e.CColumnVerticalAlign,e.DColumnVerticalAlign,e.EColumnVerticalAlign]);c.useLayoutEffect(()=>{var St;const re=q.current;if(!re)return;const xe=()=>{re.querySelectorAll("[data-list-col]").forEach(Ct=>{Ct.style.transform="";const lt=Ct.querySelector(`.${a}-list-col`);lt&&(lt.style.minHeight="",lt.style.height="");const $t=Ct.querySelector(`.${a}-list-col-title`);$t&&($t.style.transform="")})};if(x||!bt){xe();return}const Te=()=>{const Ct=Array.from(re.querySelectorAll("[data-list-row]")),lt=`${a}-list-col`,$t=`${a}-baseline-probe`;Ct.forEach(De=>{De.querySelectorAll("[data-list-col]").forEach(ft=>{ft.style.transform="";const yt=ft.querySelector(`.${lt}`);yt&&(yt.style.minHeight="",yt.style.height="");const mt=ft.querySelector(`.${a}-list-col-title`);mt&&(mt.style.transform="")})}),Ct.forEach(De=>{const ft=Array.from(De.querySelectorAll("[data-list-col]"));gu(De,ft,lt)}),re.offsetHeight,Ct.forEach(De=>{const ft=Array.from(De.querySelectorAll("[data-list-col]")),yt=De.getBoundingClientRect().top,mt=new Map,mn=ft.map(tt=>{const gn=tt.querySelector(`.${a}-list-col-title`),hn={el:tt,titleEl:gn,letter:tt.getAttribute("data-col-letter")??"",kind:tt.getAttribute("data-valign")??"top",anchor:tt.getAttribute("data-valign-anchor")};return mt.set(hn.letter,hn),hn}),st=new Map,si=(tt,gn)=>{const hn=st.get(tt.letter);if(hn!==void 0)return hn;const Zo=tt.anchor?mt.get(tt.anchor):void 0;if(tt.kind!=="baseline"||!Zo||gn.has(tt.letter)){const er=so(tt,yt,lt,$t);return st.set(tt.letter,er),er}gn.add(tt.letter);const Ga=si(Zo,gn);gn.delete(tt.letter);const Ka=so(tt,yt,lt,$t),Ua=Ga-Ka;hu(tt.titleEl,Ua);const Qo=so(tt,yt,lt,$t);return st.set(tt.letter,Qo),Qo};mn.forEach(tt=>si(tt,new Set))})};let Ae=null;const nt=()=>{Ae===null&&(Ae=requestAnimationFrame(()=>{Ae=null,Te()}))};Te();const at=new ResizeObserver(()=>nt());at.observe(re);let ke=!1;return typeof document<"u"&&((St=document.fonts)!=null&&St.ready)&&document.fonts.ready.then(()=>{ke||nt()}),()=>{ke=!0,Ae!==null&&(cancelAnimationFrame(Ae),Ae=null),at.disconnect(),xe()}},[bt,x,e,t,J,pt,Xe]);const xt=c.useMemo(()=>ou(a),[a]);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:xt}}),r.jsx("div",{style:de,children:r.jsxs("div",{ref:q,className:`${a}-wrapper ${ge}${Z?` ${Z}`:""}${x?` ${a}-type-b`:""}`.trim(),style:{width:L.scalingValue(S??0,n),...!x&&u?{[`--${a}-first-entry-handle-top`]:je}:{}},onMouseMove:Y?ai:void 0,onMouseLeave:Y?li:void 0,children:[r.jsxs("div",{style:{width:"100%",position:"relative"},children:[pt.map((re,xe)=>{var at;const Te=(((at=re.link)==null?void 0:at.length)??0)>0,Ae=Te&&(!n||i)?"a":"div",nt=Pr(xe,pt.length,Se,D,rt,h??0,n??!1);return r.jsxs(Ae,{ref:xe===0?ke=>{he.current=ke}:void 0,className:`${a}-list-item${Te||P==="always"?` ${a}-list-item-has-link`:""}`,...Te?{href:re.link,target:"_blank"}:{},style:nt,onMouseEnter:ke=>{ve&&(Te||P==="always")&&Ir(ke,a),Y&&Yi(re,ke)},onMouseLeave:ke=>{ve&&(Te||P==="always")&&Rr(ke,a)},children:[Le>0&&r.jsx("div",{className:`${a}-row-padding-handle`,style:{height:se(Le)}}),r.jsxs("div",{className:`${a}-list-cols-row${x?"":` ${a}-list-cols-row-h`}${u&&xe===0&&x?` ${a}-list-cols-row-controls`:""}`,...x?{}:{"data-list-row":""},style:x?void 0:{minHeight:se(ae)},children:[ze.map((ke,St)=>{const Ct=St===ze.length-1,lt=Pe[St],$t=ke.paddingBottom,De=nu(re.cells[ke.key]),ft=x&&De&&$t>0,yt=x?{minHeight:se(ae)}:{width:se(Xe[St])},mt=x?{paddingLeft:se(H),paddingRight:se(H)}:{paddingLeft:se(lt.paddingLeft),paddingRight:se(lt.paddingRight)},mn=ke.textPrefix.charAt(0),st=x?su(e[`${ke.textPrefix}VerticalAlign`]):lu(e[`${ke.textPrefix}VerticalAlign`],e,mn),si=x&&De&&u&&xe===0;return r.jsxs("div",{className:x?`${a}-list-col-wrap`:void 0,...x?{}:{"data-list-col":"","data-col-letter":mn,"data-valign":st.kind,...st.kind==="baseline"?{"data-valign-anchor":st.anchorLetter}:{}},children:[r.jsx("div",{className:`${a}-list-col${Ct?` ${a}-list-col-last`:""}`,style:{...mt,...yt,...x?{justifyContent:Ar(st.kind)}:{}},"data-test":ke.width,children:r.jsx("span",{className:kr(e,ke.textPrefix,`${a}-list-col-title`,`${a}-text-tight-leading`),style:{...Mr(Mi(e,ke.textPrefix),n),...Fr(e,ke.textPrefix,a,n),...x?{}:du(st.kind)},children:re.cells[ke.key]??null})}),ft&&r.jsx("div",{className:`${a}-row-padding-handle`,style:{height:se($t)}}),si&&r.jsx(Nt,{P:a,"data-controls":ke.paddingBottomKey,"data-controls-static-handle":"","data-controls-axis":"y","data-controls-variant":"column-padding","data-controls-min":"0",className:`${a}-padding-control-handle`,hitPlacement:"center",areaStyle:{position:"absolute",bottom:0,left:0,width:"100%",height:se(Math.max($t,co))}})]},ke.key)}),u&&xe===0&&x&&r.jsxs(r.Fragment,{children:[r.jsx(Nt,{P:a,"data-controls":"textPaddingLR","data-controls-static-handle":"","data-controls-paired":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-min":"0","data-controls-max-fraction":String(ne),className:`${a}-text-padding-lr-handle`,hitPlacement:"center",areaStyle:{position:"absolute",top:0,left:0,width:se(j),height:"100%"}}),r.jsx(Nt,{P:a,"data-controls":"textPaddingLR","data-controls-static-handle":"","data-controls-paired":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-reverse":"","data-controls-min":"0","data-controls-max-fraction":String(ne),className:`${a}-text-padding-lr-handle`,hitPlacement:"center",areaStyle:{position:"absolute",top:0,left:se(Math.max(j,Ne-j)),width:se(j),height:"100%"}})]})]}),!x&&Oe>0&&r.jsx("div",{className:`${a}-row-padding-handle`,style:{height:se(Oe)}}),u&&xe===0&&!x&&r.jsx(Nt,{P:a,"data-controls":"rowPaddingBottom","data-controls-static-handle":"","data-controls-handle-left":"20","data-controls-axis":"y","data-controls-variant":"row-padding","data-controls-min":"0",className:`${a}-padding-control-handle`,hitPlacement:"left-y",areaStyle:{position:"absolute",bottom:0,left:0,width:"100%",height:se(Ie)}})]},re.id)}),u&&r.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:r.jsx(Nt,{P:a,"data-controls":ht,"data-controls-static-handle":"",...x?{}:{"data-controls-handle-left":"20"},"data-controls-axis":"y","data-controls-variant":"row-padding","data-controls-min":"0",className:`${a}-padding-control-handle`,hitPlacement:x?"center":"left-y",areaStyle:{position:"absolute",top:Re,left:0,width:"100%",height:se(Math.max(Le,co))}})},"row-padding-handles"),u&&!x&&we&&et&&r.jsxs("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:[r.jsx(Nt,{P:a,"data-controls":we.paddingLeftKey,"data-controls-static-handle":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-min":"0","data-controls-max-fraction":String(Xe[0]-((Ye==null?void 0:Ye.paddingRight)??0)),className:`${a}-padding-control-handle`,hitPlacement:"center-x",areaStyle:{position:"absolute",top:0,left:0,width:se(dt),height:"100%"}}),r.jsx(Nt,{P:a,"data-controls":et.paddingRightKey,"data-controls-static-handle":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-reverse":"","data-controls-min":"0","data-controls-max-fraction":String(Xe[ze.length-1]-((Je==null?void 0:Je.paddingLeft)??0)),className:`${a}-padding-control-handle`,hitPlacement:"center-x",areaStyle:{position:"absolute",top:0,left:se(Xi-tn),width:se(tn),height:"100%"}})]},"column-edge-padding-handles"),u&&!x&&ze.slice(0,-1).map((re,xe)=>{const Te=ze[xe+1],Ae=qe.slice(0,xe+1).reduce((Ct,lt)=>Ct+lt,0),nt=Pe[xe],at=Pe[xe+1],ke=Math.max(nt.paddingRight,bn),St=Math.max(at.paddingLeft,bn);return r.jsxs("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:[r.jsx(Nt,{P:a,"data-controls":re.paddingRightKey,"data-controls-static-handle":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-reverse":"","data-controls-min":"0","data-controls-max-fraction":String(Xe[xe]-nt.paddingLeft),className:`${a}-padding-control-handle`,hitPlacement:"center-x",areaStyle:{position:"absolute",top:0,left:se(Ae-ke),width:se(ke),height:"100%"}}),r.jsx(Nt,{P:a,"data-controls":Te.paddingLeftKey,"data-controls-static-handle":"","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-min":"0","data-controls-max-fraction":String(Xe[xe+1]-at.paddingRight),className:`${a}-padding-control-handle`,hitPlacement:"center-x",areaStyle:{position:"absolute",top:0,left:se(Ae),width:se(St),height:"100%"}})]},`${re.paddingRightKey}-padding`)}),u&&!x&&ze.slice(0,-1).map((re,xe)=>{const Te=Mu(xe,qe,Me,Ne),nt=qe.slice(0,xe+1).reduce((at,ke)=>at+ke,0)-Wr/2;return r.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:r.jsx("div",{"data-controls":re.widthKey,"data-controls-static-handle":"","data-controls-axis":"x","data-controls-min":String(Yo),"data-controls-max-fraction":String(Te),"data-controls-variant":"column-width",className:`${a}-col-resize-handle`,style:{position:"absolute",top:"0px",left:se(nt),width:se(Wr),height:"calc(100%)",pointerEvents:"auto"}})},`${re.widthKey}-junction`)})]}),rt&&(()=>{const re=Mi(e,zt),xe=uu(e.cutLabelVerticalAlign),Te=re.textTextAlign==="justify"||x;return r.jsx("button",{type:"button",className:`${a}-cut-item`,style:{minHeight:se(w??0),cursor:Q?"pointer":"default",...iu(D,h??0,n??!1)},onClick:Q?ce:void 0,onMouseEnter:ve||Y?Ji:void 0,onMouseLeave:ve?He:void 0,children:r.jsx("div",{className:`${a}-list-cols-row`,style:{...x?{paddingLeft:se(H),paddingRight:se(H)}:{},justifyContent:pu(re.textTextAlign),alignItems:Ar(xe)},children:r.jsx("span",{className:kr(e,zt,`${a}-cut-label`,`${a}-text-tight-leading`),style:{...Mr(re,n),...Fr(e,zt,a,n),...Te?{width:"100%"}:{}},children:N})})})})(),Y&&U&&(()=>{const re=$i(U.widthPx),xe={width:re,height:"auto",maxHeight:re,objectFit:"contain",left:U.x,top:U.y,position:"absolute"};return r.jsx(tu,{media:U,className:U.isVideo?`${a}-hover-video`:`${a}-hover-image`,style:xe},`${U.rowId}-${U.url}`)})()]})})]})}const Hu=`import { useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type ComponentPropsWithoutRef } from 'react';
5449
5449
  import { CommonComponentProps } from '../props';
5450
5450
  import { buildColorVars, scalingValue, useScopedStyles } from '../utils/index';
5451
5451
  import { omitTextColors, TextStyles, textStylesToCss } from '../utils/textStylesToCss';
@@ -8456,7 +8456,7 @@ export function List({ settings, content, isEditor, isPreviewMode, isEditMode, a
8456
8456
  </>
8457
8457
  );
8458
8458
  }
8459
- `,kn=["A","B","C","D","E"],Br=[...$o,"Baseline A","Baseline B","Baseline C","Baseline D","Baseline E"],on={fontSettings:{type:"object",display:{type:"font-settings-weight"},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}},fontSize:{type:"number",display:{type:"font-size"}},lineHeight:{type:"number",display:{type:"line-height-input"}},letterSpacing:{type:"number",display:{type:"letter-spacing-input"}},wordSpacing:{type:"number",display:{type:"word-spacing-input"}},textAlign:{type:"string",enum:["left","center","right","justify"],display:{type:"vertical-text-aligh-options"}},textAppearance:{type:"object",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"]}}}};function Bu(e){return{type:"string",label:e,placeholder:"Add Title...",display:{type:"text-input"}}}function hi(e){return{type:"number",scope:"layout",title:e,min:0,max:100,display:{type:"range-control"}}}function Ou(){return Object.fromEntries(kn.map((e,t)=>{const n=Jt[t],i=`${e} column`;return[n,Bu(i)]}))}function ju(){const e={};for(const t of kn)e[`${t}ColumnWidth`]=hi(`${t} column width`),e[`${t}ColumnPaddingLeft`]=hi(`${t} column padding left`),e[`${t}ColumnPaddingRight`]=hi(`${t} column padding right`),e[`${t}ColumnPaddingBottom`]=hi(`${t} column padding bottom`);return e}function Or(e={}){const{typeBDefaults:t,...n}=e,i={wrapperWidth:1,columnsOrder:[...Jt]};for(const l of kn)i[`${l}ColumnWidth`]=l==="A"?.0798:.32,i[`${l}ColumnPaddingLeft`]=0,i[`${l}ColumnPaddingRight`]=0,i[`${l}ColumnPaddingBottom`]=0;const o=n.type==="b"&&t?t:{};return{...i,...o,...n}}function zu(e){const t={};if(e===zt)t[`${e}VerticalAlign`]={type:"string",scope:"layout",title:"",display:{type:"drop-down",label:"Vertical alignment",enum:[...$o]},enum:[...$o]};else{const n=e.charAt(0);t[`${e}VerticalAlign`]={type:"string",scope:"layout",title:"",display:{type:"drop-down",label:"Vertical alignment",enum:[...Br],filterBaselineByTopAnchor:!0,columnLetter:n},enum:[...Br]}}return t[Fe(e,"textFontFamily")]={type:"string",scope:"common",title:"",display:{type:"font-family-select",hideLabel:!0}},t[Fe(e,"textFontSettings")]={...on.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight",hideLabel:!0}},t[Fe(e,"textFontSize")]={...on.fontSize,scope:"layout",title:"",display:{type:"font-size"}},t[Fe(e,"textLineHeight")]={...on.lineHeight,scope:"layout",title:"",display:{type:"line-height-input"}},t[Fe(e,"textLetterSpacing")]={...on.letterSpacing,scope:"layout",title:"",display:{type:"letter-spacing-input"}},t[Fe(e,"textWordSpacing")]={...on.wordSpacing,scope:"layout",title:"",display:{type:"word-spacing-input"}},t[Fe(e,"textTextAlign")]={...on.textAlign,scope:"layout",title:"",display:{type:"vertical-text-aligh-options"}},t[Fe(e,"textTextAppearance")]={...on.textAppearance,scope:"layout",title:"",display:{type:"text-appearance"}},t}const Vu=qo.reduce((e,t)=>({...e,...zu(t)}),{});function Du(e){return{verticalAlign:e===zt?"Center":"Top",textFontFamily:"Arial",textFontSettings:{fontWeight:400,fontStyle:"normal"},textLetterSpacing:0,textWordSpacing:0,textTextAlign:e===zt?"center":"left",textTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}}}function Gu(e,t={}){var n;return{...Du(e),...t.default,...(n=t.byPrefix)==null?void 0:n[e]}}const jr=new Set(["textFontFamily","textFontSettings"]);function Ku(e,t,n){const i=l=>n===void 0?!0:n==="common"?jr.has(l):!jr.has(l),o={};return i("verticalAlign")&&t.verticalAlign!==void 0&&(o[`${e}VerticalAlign`]=Xo(t.verticalAlign)),i("textFontFamily")&&t.textFontFamily!==void 0&&(o[Fe(e,"textFontFamily")]=t.textFontFamily),i("textFontSettings")&&t.textFontSettings!==void 0&&(o[Fe(e,"textFontSettings")]=t.textFontSettings),i("textFontSize")&&t.textFontSize!==void 0&&(o[Fe(e,"textFontSize")]=t.textFontSize),i("textLineHeight")&&t.textLineHeight!==void 0&&(o[Fe(e,"textLineHeight")]=t.textLineHeight),i("textLetterSpacing")&&t.textLetterSpacing!==void 0&&(o[Fe(e,"textLetterSpacing")]=t.textLetterSpacing),i("textWordSpacing")&&t.textWordSpacing!==void 0&&(o[Fe(e,"textWordSpacing")]=t.textWordSpacing),i("textTextAlign")&&t.textTextAlign!==void 0&&(o[Fe(e,"textTextAlign")]=t.textTextAlign),i("textTextAppearance")&&t.textTextAppearance!==void 0&&(o[Fe(e,"textTextAppearance")]=t.textTextAppearance),o}function Li(e={},t){return qo.reduce((n,i)=>({...n,...Ku(i,Gu(i,e),t)}),{})}const Uu=Li(),qu=bu();function ja(e){return[Fe(e,"textFontFamily"),Fe(e,"textFontSettings"),Fe(e,"textFontSize"),Fe(e,"textLineHeight"),Fe(e,"textLetterSpacing"),Fe(e,"textWordSpacing"),Fe(e,"textTextAlign"),Fe(e,"textTextAppearance"),`${e}VerticalAlign`]}function Xu(){const e=[];return Uo.forEach((t,n)=>{const i=Jt[n],o=ja(t);for(let l=1;l<Jt.length;l+=1){const s=[{name:"columns",value:l},...Array.from({length:l},(d,a)=>({name:`columnsOrder.${a}`,value:i,isNotEqual:!0}))];o.forEach(d=>{e.push({if:s,then:{name:`properties.${d}.display.visible`,value:!1}})})}}),e}const Yu=["textColor","backgroundColor","dividerColor","textHoverColor","backgroundHoverColor","dividerHoverColor"];ja(zt);const Ju=[...kn.flatMap(e=>[`${e}ColumnWidth`,`${e}ColumnPaddingLeft`,`${e}ColumnPaddingRight`]),"rowPaddingTop","rowPaddingBottom"],rn=[{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(1).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(2).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(3).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(4).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(5).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(6).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(7).webp"}],Zu=[{AColumn:"01",BColumnWidth:"Ethan Parker",CColumnWidth:"Midnight Atlas",DColumnWidth:"Portland, OR",EColumnWidth:"On Display",image:rn[0],link:""},{AColumn:"02",BColumnWidth:"Madison Reed",CColumnWidth:"Echoes in Vermilion",DColumnWidth:"Savannah, GA",EColumnWidth:"Scheduled",image:rn[1],link:""},{AColumn:"03",BColumnWidth:"Noah Bennett",CColumnWidth:"Paper and scissors",DColumnWidth:"Madison, WI",EColumnWidth:"On Display",image:rn[2],link:""},{AColumn:"04",BColumnWidth:"Olivia Carter",CColumnWidth:"The Quiet Frequency",DColumnWidth:"Boise, ID",EColumnWidth:"On Display",image:rn[3],link:""},{AColumn:"05",BColumnWidth:"Mason Brooks",CColumnWidth:"Sights of Tomorrow",DColumnWidth:"Tampa, FL",EColumnWidth:"Postponed",image:rn[4],link:""},{AColumn:"06",BColumnWidth:"Sophia Mitchell",CColumnWidth:"Velvet Horizons",DColumnWidth:"Albuquerque, NM",EColumnWidth:"Scheduled",image:rn[5],link:""},{AColumn:"07",BColumnWidth:"Jackson Turner",CColumnWidth:"Ink & Aurora",DColumnWidth:"Pittsburgh, PA",EColumnWidth:"On Display",image:rn[6],link:""}],Qu=[...kn.flatMap(e=>[`${e}ColumnWidth`,`${e}ColumnPaddingLeft`,`${e}ColumnPaddingRight`,`${e}ColumnPaddingBottom`]),"columnsOrder"],ep={type:"object",version:1,content:{type:"array",settings:{addItemWithoutImage:!0},display:{type:"array",ref:{columnsOrder:"settings.properties.columnsOrder",columnsCount:"settings.properties.columns"}},items:{type:"object",properties:{...Ou(),image:{type:"object",label:"Image",display:{isObjectFitEditable:!1,defaultObjectFit:"contain",type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},type:{type:"string",enum:["image","video"]},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},link:{type:"string",label:"Link",placeholder:"Add link...",display:{type:"text-input"}}},required:["image"]},default:Zu},settings:{sizing:"auto auto",properties:{type:{type:"string",scope:"layout",title:"",display:{type:"radio-group"},enum:["a","b"]},columns:{type:"number",scope:"layout",title:"Columns",display:{type:"count-number"},min:1,max:5},wrapperWidth:{type:"number",scope:"layout",title:"Width",display:{type:"numeric-input"},min:0,max:9999},textPaddingLR:{type:"number",scope:"layout",title:"Text Padding LR",min:0,max:9999,display:{type:"range-control"}},entriesCount:{type:"number",scope:"layout",title:"Entries #",display:{type:"toggle-numeric-input",enum:["auto","fixed"]},min:1},cellMinHeight:{type:"number",scope:"layout",title:"Cell min height",display:{type:"numeric-input"},min:0,max:9999},imageOnHover:{type:"boolean",scope:"common",title:"Image On Hover",display:{type:"toggle-cycle",enum:["on","off"]}},imageSize:{type:"object",scope:"layout",title:"Image size",display:{type:"min-max-input"},min:1,max:1440,properties:{min:{type:"number"},max:{type:"number"}}},dividerWidth:{type:"number",scope:"layout",title:"Divider width",display:{type:"numeric-input"},min:0,max:9999},showVisibility:{type:"array",scope:"common",title:"Show",display:{type:"double-toggle",enum:["top","bottom"]},items:{type:"boolean"},default:[!0,!1]},cut:{type:"number",scope:"layout",title:"Display",display:{type:"toggle-numeric-input",enum:["off","on"]},min:1},entryHoverEffect:{type:"string",scope:"common",title:"Effect",display:{type:"toggle-cycle",enum:["none","default","blinds","reveal"]}},entryHoverShowOption:{type:"string",scope:"common",title:"Show",display:{type:"toggle-cycle",enum:["always","link only"]}},cutCellMinHeight:{type:"number",scope:"layout",title:"Cell min height",display:{type:"numeric-input"},min:0,max:9999},cutLabel:{type:"string",scope:"common",title:"Cut Label",display:{type:"label-input"}},showCut:{type:"number",scope:"layout",title:"Show",display:{type:"toggle-numeric-input",enum:["all","custom"]},min:1},rowPaddingTop:{type:"number",scope:"layout",title:"Row Padding Top",min:0,max:100,display:{type:"range-control"}},rowPaddingBottom:{type:"number",scope:"layout",title:"Row Padding Bottom",min:0,max:100,display:{type:"range-control"}},rowPaddingTopB:{type:"number",scope:"layout",title:"Row Padding Top",min:0,max:100,display:{type:"range-control"}},...ju(),columnsOrder:{type:"array",scope:"layout",title:"Columns Order",display:{type:"reorder-input"},items:{type:"string"}},textColor:{type:"string",scope:"common",title:"Text Default",display:{type:"palette-color-picker"}},textHoverColor:{type:"string",scope:"common",title:"Text Hover",display:{type:"palette-color-picker"}},...Vu,backgroundColor:{type:"string",scope:"common",title:"BG Default",display:{type:"palette-color-picker"}},dividerColor:{type:"string",scope:"common",title:"Divider Default",display:{type:"palette-color-picker"}},backgroundHoverColor:{type:"string",scope:"common",title:"BG Hover",display:{type:"palette-color-picker"}},dividerHoverColor:{type:"string",scope:"common",title:"Divider Hover",display:{type:"palette-color-picker"}}},defaults:{imageOnHover:"on",entryHoverEffect:"default",entryHoverShowOption:"always",cutLabel:"SEE ALL",showVisibility:[!0,!0],textColor:"#000000",textHoverColor:"#FFFFFF",...Uu,...Li({},"common"),backgroundColor:"#FFFFFF00",dividerColor:"#373737",backgroundHoverColor:"#000000",dividerHoverColor:"#000000"},layoutDefaults:{m:Or({columns:3,type:"b",textPaddingLR:.0373,entriesCount:0,cellMinHeight:.02,imageSize:{min:80,max:320},dividerWidth:.004,cut:0,showCut:0,cutCellMinHeight:.02,rowPaddingTop:.01,rowPaddingBottom:.01,typeBDefaults:{rowPaddingTopB:.0461,AColumnPaddingBottom:.041,BColumnPaddingBottom:.041,CColumnPaddingBottom:.0615,DColumnPaddingBottom:0,EColumnPaddingBottom:0},textStroke:.003,textCorners:.192,textPadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},...Li({default:{textFontSize:.0906,textLineHeight:.0426,textTextAlign:"left"},byPrefix:{cutLabel:{textTextAlign:"center"}}},"layout")}),d:Or({columns:4,type:"a",textPaddingLR:.01,entriesCount:0,cellMinHeight:.0555,imageSize:{min:200,max:200},dividerWidth:.002083,cut:0,showCut:0,cutCellMinHeight:.0555,rowPaddingTop:0,rowPaddingBottom:0,rowPaddingTopB:.01,textStroke:.001,textCorners:.05,textPadding:{top:.01,right:.01,bottom:.01,left:.01},...Li({default:{textFontSize:.0333,textLineHeight:.0333,textLetterSpacing:-9e-4,textTextAlign:"left",verticalAlign:"center"},byPrefix:{cutLabel:{textTextAlign:"center"}}},"layout")})},displayRules:[...Xu(),{if:{name:"type",value:"a"},then:{name:"properties.textPaddingLR.display.visible",value:!1}},...Ju.map(e=>({if:{name:"type",value:"b"},then:{name:`properties.${e}.display.visible`,value:!1}})),{if:{name:"type",value:"a"},then:{name:"properties.rowPaddingTopB.display.visible",value:!1}},...kn.map(e=>({if:{name:"type",value:"a"},then:{name:`properties.${e}ColumnPaddingBottom.display.visible`,value:!1}}))],layout:["__componentName__","name","type","columns","wrapperWidth","textPaddingLR","entriesCount","cellMinHeight","imageOnHover","imageSize","dividerWidth","showVisibility","cut","showCut","cutCellMinHeight","entryHoverEffect","entryHoverShowOption","cutLabel","rowPaddingTop","rowPaddingBottom","rowPaddingTopB",...Qu]},panels:[{id:"general",icon:"settings",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","name"]},"type",{type:"row",title:"",items:["columns","wrapperWidth"]},{type:"row",title:"",items:["entriesCount","cellMinHeight"]},{type:"row",title:"",items:["imageOnHover","imageSize"]},{type:"row",title:"Entry Hover",items:["entryHoverEffect","entryHoverShowOption"]},{type:"row",title:"Divider Settings",items:["dividerWidth","showVisibility"]}]},{id:"columnsOrder",icon:"layers",title:"Columns Order",tooltip:"Columns order",layout:["__componentName__","columnsOrder"]},{id:"cutSettings",icon:"cut",title:"Cut settings",tooltip:"Cut settings",layout:["__componentName__",{type:"row",title:"",items:["cut"]},{type:"row",title:"Cut Settings",items:["cutLabel","cutCellMinHeight"]},{type:"row",title:"",items:["showCut"]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["__componentName__",qu]}],paletteBookmark:{items:[...Yu],panelIds:["general","typeStyle"],stateItems:{default:["textColor","backgroundColor","dividerColor","textHoverColor","backgroundHoverColor","dividerHoverColor"]}}},tp={element:Nu,id:"list",name:"Programme",category:"lists",layoutMode:"structured",normalizeLayoutSettingsUpdate:(e,t)=>_u(e,t),preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/Programme_List.png"},version:1,defaultSize:{d:{width:720,height:540}},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[]},schema:ep,sourceCode:Hu},Vt=e=>e.display==="Cover",qi=e=>{const t=e.ratioValue??"1:1",n=e.reversed??!1,[i,o]=t.split(":").map(Number);return`${n?o:i} / ${n?i:o}`},ki=300,np=3e3,fi=42;function ip(e){return`
8459
+ `,kn=["A","B","C","D","E"],Br=[...$o,"Baseline A","Baseline B","Baseline C","Baseline D","Baseline E"],on={fontSettings:{type:"object",display:{type:"font-settings-weight"},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}},fontSize:{type:"number",display:{type:"font-size"}},lineHeight:{type:"number",display:{type:"line-height-input"}},letterSpacing:{type:"number",display:{type:"letter-spacing-input"}},wordSpacing:{type:"number",display:{type:"word-spacing-input"}},textAlign:{type:"string",enum:["left","center","right","justify"],display:{type:"vertical-text-aligh-options"}},textAppearance:{type:"object",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"]}}}};function Bu(e){return{type:"string",label:e,placeholder:"Add Title...",display:{type:"text-input"}}}function hi(e){return{type:"number",scope:"layout",title:e,min:0,max:100,display:{type:"range-control"}}}function Ou(){return Object.fromEntries(kn.map((e,t)=>{const n=Jt[t],i=`${e} column`;return[n,Bu(i)]}))}function ju(){const e={};for(const t of kn)e[`${t}ColumnWidth`]=hi(`${t} column width`),e[`${t}ColumnPaddingLeft`]=hi(`${t} column padding left`),e[`${t}ColumnPaddingRight`]=hi(`${t} column padding right`),e[`${t}ColumnPaddingBottom`]=hi(`${t} column padding bottom`);return e}function Or(e={}){const{typeBDefaults:t,...n}=e,i={wrapperWidth:1,columnsOrder:[...Jt]};for(const l of kn)i[`${l}ColumnWidth`]=l==="A"?.0798:.32,i[`${l}ColumnPaddingLeft`]=0,i[`${l}ColumnPaddingRight`]=0,i[`${l}ColumnPaddingBottom`]=0;const o=n.type==="b"&&t?t:{};return{...i,...o,...n}}function zu(e){const t={};if(e===zt)t[`${e}VerticalAlign`]={type:"string",scope:"layout",title:"",display:{type:"drop-down",label:"Vertical alignment",enum:[...$o]},enum:[...$o]};else{const n=e.charAt(0);t[`${e}VerticalAlign`]={type:"string",scope:"layout",title:"",display:{type:"drop-down",label:"Vertical alignment",enum:[...Br],filterBaselineByTopAnchor:!0,columnLetter:n},enum:[...Br]}}return t[Fe(e,"textFontFamily")]={type:"string",scope:"common",title:"",display:{type:"font-family-select",hideLabel:!0}},t[Fe(e,"textFontSettings")]={...on.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight",hideLabel:!0}},t[Fe(e,"textFontSize")]={...on.fontSize,scope:"layout",title:"",display:{type:"font-size"}},t[Fe(e,"textLineHeight")]={...on.lineHeight,scope:"layout",title:"",display:{type:"line-height-input"}},t[Fe(e,"textLetterSpacing")]={...on.letterSpacing,scope:"layout",title:"",display:{type:"letter-spacing-input"}},t[Fe(e,"textWordSpacing")]={...on.wordSpacing,scope:"layout",title:"",display:{type:"word-spacing-input"}},t[Fe(e,"textTextAlign")]={...on.textAlign,scope:"layout",title:"",display:{type:"vertical-text-aligh-options"}},t[Fe(e,"textTextAppearance")]={...on.textAppearance,scope:"layout",title:"",display:{type:"text-appearance"}},t}const Vu=qo.reduce((e,t)=>({...e,...zu(t)}),{});function Du(e){return{verticalAlign:e===zt?"Center":"Top",textFontFamily:"Arial",textFontSettings:{fontWeight:400,fontStyle:"normal"},textLetterSpacing:0,textWordSpacing:0,textTextAlign:e===zt?"center":"left",textTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}}}function Gu(e,t={}){var n;return{...Du(e),...t.default,...(n=t.byPrefix)==null?void 0:n[e]}}const jr=new Set(["textFontFamily","textFontSettings"]);function Ku(e,t,n){const i=l=>n===void 0?!0:n==="common"?jr.has(l):!jr.has(l),o={};return i("verticalAlign")&&t.verticalAlign!==void 0&&(o[`${e}VerticalAlign`]=Xo(t.verticalAlign)),i("textFontFamily")&&t.textFontFamily!==void 0&&(o[Fe(e,"textFontFamily")]=t.textFontFamily),i("textFontSettings")&&t.textFontSettings!==void 0&&(o[Fe(e,"textFontSettings")]=t.textFontSettings),i("textFontSize")&&t.textFontSize!==void 0&&(o[Fe(e,"textFontSize")]=t.textFontSize),i("textLineHeight")&&t.textLineHeight!==void 0&&(o[Fe(e,"textLineHeight")]=t.textLineHeight),i("textLetterSpacing")&&t.textLetterSpacing!==void 0&&(o[Fe(e,"textLetterSpacing")]=t.textLetterSpacing),i("textWordSpacing")&&t.textWordSpacing!==void 0&&(o[Fe(e,"textWordSpacing")]=t.textWordSpacing),i("textTextAlign")&&t.textTextAlign!==void 0&&(o[Fe(e,"textTextAlign")]=t.textTextAlign),i("textTextAppearance")&&t.textTextAppearance!==void 0&&(o[Fe(e,"textTextAppearance")]=t.textTextAppearance),o}function Ti(e={},t){return qo.reduce((n,i)=>({...n,...Ku(i,Gu(i,e),t)}),{})}const Uu=Ti(),qu=bu();function ja(e){return[Fe(e,"textFontFamily"),Fe(e,"textFontSettings"),Fe(e,"textFontSize"),Fe(e,"textLineHeight"),Fe(e,"textLetterSpacing"),Fe(e,"textWordSpacing"),Fe(e,"textTextAlign"),Fe(e,"textTextAppearance"),`${e}VerticalAlign`]}function Xu(){const e=[];return Uo.forEach((t,n)=>{const i=Jt[n],o=ja(t);for(let l=1;l<Jt.length;l+=1){const s=[{name:"columns",value:l},...Array.from({length:l},(d,a)=>({name:`columnsOrder.${a}`,value:i,isNotEqual:!0}))];o.forEach(d=>{e.push({if:s,then:{name:`properties.${d}.display.visible`,value:!1}})})}}),e}const Yu=["textColor","backgroundColor","dividerColor","textHoverColor","backgroundHoverColor","dividerHoverColor"];ja(zt);const Ju=[...kn.flatMap(e=>[`${e}ColumnWidth`,`${e}ColumnPaddingLeft`,`${e}ColumnPaddingRight`]),"rowPaddingTop","rowPaddingBottom"],rn=[{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(1).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(2).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(3).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(4).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(5).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(6).webp"},{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/default-list(7).webp"}],Zu=[{AColumn:"01",BColumnWidth:"Ethan Parker",CColumnWidth:"Midnight Atlas",DColumnWidth:"Portland, OR",EColumnWidth:"On Display",image:rn[0],link:""},{AColumn:"02",BColumnWidth:"Madison Reed",CColumnWidth:"Echoes in Vermilion",DColumnWidth:"Savannah, GA",EColumnWidth:"Scheduled",image:rn[1],link:""},{AColumn:"03",BColumnWidth:"Noah Bennett",CColumnWidth:"Paper and scissors",DColumnWidth:"Madison, WI",EColumnWidth:"On Display",image:rn[2],link:""},{AColumn:"04",BColumnWidth:"Olivia Carter",CColumnWidth:"The Quiet Frequency",DColumnWidth:"Boise, ID",EColumnWidth:"On Display",image:rn[3],link:""},{AColumn:"05",BColumnWidth:"Mason Brooks",CColumnWidth:"Sights of Tomorrow",DColumnWidth:"Tampa, FL",EColumnWidth:"Postponed",image:rn[4],link:""},{AColumn:"06",BColumnWidth:"Sophia Mitchell",CColumnWidth:"Velvet Horizons",DColumnWidth:"Albuquerque, NM",EColumnWidth:"Scheduled",image:rn[5],link:""},{AColumn:"07",BColumnWidth:"Jackson Turner",CColumnWidth:"Ink & Aurora",DColumnWidth:"Pittsburgh, PA",EColumnWidth:"On Display",image:rn[6],link:""}],Qu=[...kn.flatMap(e=>[`${e}ColumnWidth`,`${e}ColumnPaddingLeft`,`${e}ColumnPaddingRight`,`${e}ColumnPaddingBottom`]),"columnsOrder"],ep={type:"object",version:1,content:{type:"array",settings:{addItemWithoutImage:!0},display:{type:"array",ref:{columnsOrder:"settings.properties.columnsOrder",columnsCount:"settings.properties.columns"}},items:{type:"object",properties:{...Ou(),image:{type:"object",label:"Image",display:{isObjectFitEditable:!1,defaultObjectFit:"contain",type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},type:{type:"string",enum:["image","video"]},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},link:{type:"string",label:"Link",placeholder:"Add link...",display:{type:"text-input"}}},required:["image"]},default:Zu},settings:{sizing:"auto auto",properties:{type:{type:"string",scope:"layout",title:"",display:{type:"radio-group"},enum:["a","b"]},columns:{type:"number",scope:"layout",title:"Columns",display:{type:"count-number"},min:1,max:5},wrapperWidth:{type:"number",scope:"layout",title:"Width",display:{type:"numeric-input"},min:0,max:9999},textPaddingLR:{type:"number",scope:"layout",title:"Text Padding LR",min:0,max:9999,display:{type:"range-control"}},entriesCount:{type:"number",scope:"layout",title:"Entries #",display:{type:"toggle-numeric-input",enum:["auto","fixed"]},min:1},cellMinHeight:{type:"number",scope:"layout",title:"Cell min height",display:{type:"numeric-input"},min:0,max:9999},imageOnHover:{type:"boolean",scope:"common",title:"Image On Hover",display:{type:"toggle-cycle",enum:["on","off"]}},imageSize:{type:"object",scope:"layout",title:"Image size",display:{type:"min-max-input"},min:1,max:1440,properties:{min:{type:"number"},max:{type:"number"}}},dividerWidth:{type:"number",scope:"layout",title:"Divider width",display:{type:"numeric-input"},min:0,max:9999},showVisibility:{type:"array",scope:"common",title:"Show",display:{type:"double-toggle",enum:["top","bottom"]},items:{type:"boolean"},default:[!0,!1]},cut:{type:"number",scope:"layout",title:"Display",display:{type:"toggle-numeric-input",enum:["off","on"]},min:1},entryHoverEffect:{type:"string",scope:"common",title:"Effect",display:{type:"toggle-cycle",enum:["none","default","blinds","reveal"]}},entryHoverShowOption:{type:"string",scope:"common",title:"Show",display:{type:"toggle-cycle",enum:["always","link only"]}},cutCellMinHeight:{type:"number",scope:"layout",title:"Cell min height",display:{type:"numeric-input"},min:0,max:9999},cutLabel:{type:"string",scope:"common",title:"Cut Label",display:{type:"label-input"}},showCut:{type:"number",scope:"layout",title:"Show",display:{type:"toggle-numeric-input",enum:["all","custom"]},min:1},rowPaddingTop:{type:"number",scope:"layout",title:"Row Padding Top",min:0,max:100,display:{type:"range-control"}},rowPaddingBottom:{type:"number",scope:"layout",title:"Row Padding Bottom",min:0,max:100,display:{type:"range-control"}},rowPaddingTopB:{type:"number",scope:"layout",title:"Row Padding Top",min:0,max:100,display:{type:"range-control"}},...ju(),columnsOrder:{type:"array",scope:"layout",title:"Columns Order",display:{type:"reorder-input"},items:{type:"string"}},textColor:{type:"string",scope:"common",title:"Text Default",display:{type:"palette-color-picker"}},textHoverColor:{type:"string",scope:"common",title:"Text Hover",display:{type:"palette-color-picker"}},...Vu,backgroundColor:{type:"string",scope:"common",title:"BG Default",display:{type:"palette-color-picker"}},dividerColor:{type:"string",scope:"common",title:"Divider Default",display:{type:"palette-color-picker"}},backgroundHoverColor:{type:"string",scope:"common",title:"BG Hover",display:{type:"palette-color-picker"}},dividerHoverColor:{type:"string",scope:"common",title:"Divider Hover",display:{type:"palette-color-picker"}}},defaults:{imageOnHover:"on",entryHoverEffect:"default",entryHoverShowOption:"always",cutLabel:"SEE ALL",showVisibility:[!0,!0],textColor:"#000000",textHoverColor:"#FFFFFF",...Uu,...Ti({},"common"),backgroundColor:"#FFFFFF00",dividerColor:"#373737",backgroundHoverColor:"#000000",dividerHoverColor:"#000000"},layoutDefaults:{m:Or({columns:3,type:"b",textPaddingLR:.0373,entriesCount:0,cellMinHeight:.02,imageSize:{min:80,max:320},dividerWidth:.004,cut:0,showCut:0,cutCellMinHeight:.02,rowPaddingTop:.01,rowPaddingBottom:.01,typeBDefaults:{rowPaddingTopB:.0461,AColumnPaddingBottom:.041,BColumnPaddingBottom:.041,CColumnPaddingBottom:.0615,DColumnPaddingBottom:0,EColumnPaddingBottom:0},textStroke:.003,textCorners:.192,textPadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},...Ti({default:{textFontSize:.0906,textLineHeight:.0426,textTextAlign:"left"},byPrefix:{cutLabel:{textTextAlign:"center"}}},"layout")}),d:Or({columns:4,type:"a",textPaddingLR:.01,entriesCount:0,cellMinHeight:.0555,imageSize:{min:200,max:200},dividerWidth:.002083,cut:0,showCut:0,cutCellMinHeight:.0555,rowPaddingTop:0,rowPaddingBottom:0,rowPaddingTopB:.01,textStroke:.001,textCorners:.05,textPadding:{top:.01,right:.01,bottom:.01,left:.01},...Ti({default:{textFontSize:.0333,textLineHeight:.0333,textLetterSpacing:-9e-4,textTextAlign:"left",verticalAlign:"center"},byPrefix:{cutLabel:{textTextAlign:"center"}}},"layout")})},displayRules:[...Xu(),{if:{name:"type",value:"a"},then:{name:"properties.textPaddingLR.display.visible",value:!1}},...Ju.map(e=>({if:{name:"type",value:"b"},then:{name:`properties.${e}.display.visible`,value:!1}})),{if:{name:"type",value:"a"},then:{name:"properties.rowPaddingTopB.display.visible",value:!1}},...kn.map(e=>({if:{name:"type",value:"a"},then:{name:`properties.${e}ColumnPaddingBottom.display.visible`,value:!1}}))],layout:["__componentName__","name","type","columns","wrapperWidth","textPaddingLR","entriesCount","cellMinHeight","imageOnHover","imageSize","dividerWidth","showVisibility","cut","showCut","cutCellMinHeight","entryHoverEffect","entryHoverShowOption","cutLabel","rowPaddingTop","rowPaddingBottom","rowPaddingTopB",...Qu]},panels:[{id:"general",icon:"settings",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","name"]},"type",{type:"row",title:"",items:["columns","wrapperWidth"]},{type:"row",title:"",items:["entriesCount","cellMinHeight"]},{type:"row",title:"",items:["imageOnHover","imageSize"]},{type:"row",title:"Entry Hover",items:["entryHoverEffect","entryHoverShowOption"]},{type:"row",title:"Divider Settings",items:["dividerWidth","showVisibility"]}]},{id:"columnsOrder",icon:"layers",title:"Columns Order",tooltip:"Columns order",layout:["__componentName__","columnsOrder"]},{id:"cutSettings",icon:"cut",title:"Cut settings",tooltip:"Cut settings",layout:["__componentName__",{type:"row",title:"",items:["cut"]},{type:"row",title:"Cut Settings",items:["cutLabel","cutCellMinHeight"]},{type:"row",title:"",items:["showCut"]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["__componentName__",qu]}],paletteBookmark:{items:[...Yu],panelIds:["general","typeStyle"],stateItems:{default:["textColor","backgroundColor","dividerColor","textHoverColor","backgroundHoverColor","dividerHoverColor"]}}},tp={element:Nu,id:"list",name:"Programme",category:"lists",layoutMode:"structured",normalizeLayoutSettingsUpdate:(e,t)=>_u(e,t),preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/Programme_List.png"},version:1,defaultSize:{d:{width:720,height:540}},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[]},schema:ep,sourceCode:Hu},Vt=e=>e.display==="Cover",qi=e=>{const t=e.ratioValue??"1:1",n=e.reversed??!1,[i,o]=t.split(":").map(Number);return`${n?o:i} / ${n?i:o}`},ki=300,np=3e3,Li=42;function ip(e){return`
8460
8460
  .${e}-wrapper {
8461
8461
  position: relative;
8462
8462
  width: 100%;
@@ -8651,16 +8651,15 @@ export function List({ settings, content, isEditor, isPreviewMode, isEditMode, a
8651
8651
 
8652
8652
  .${e}-thumb-image {
8653
8653
  display: block;
8654
- width: ${fi}px;
8655
- height: ${fi}px;
8654
+ height: ${Li}px;
8656
8655
  object-fit: contain;
8657
8656
  transition: filter 0.2s ease;
8658
8657
  }
8659
8658
 
8660
8659
  .${e}-thumb-image-cover {
8661
8660
  aspect-ratio: var(--image-aspect-ratio);
8662
- max-width: ${fi}px;
8663
- max-height: ${fi}px;
8661
+ max-width: ${Li}px;
8662
+ max-height: ${Li}px;
8664
8663
  width: auto;
8665
8664
  height: auto;
8666
8665
  object-fit: cover;
@@ -8768,7 +8767,7 @@ export function List({ settings, content, isEditor, isPreviewMode, isEditMode, a
8768
8767
  pointer-events: auto;
8769
8768
  z-index: 10;
8770
8769
  }
8771
- `}function op(e){if(!Array.isArray(e)||e.length===0)return{};const t=e.find(o=>(o==null?void 0:o.type)==="paragraph")??e[0],n=t==null?void 0:t.children;if(!Array.isArray(n))return{};const i=n.map(o=>typeof(o==null?void 0:o.text)=="string"?o.text.trim():"").filter(Boolean);return{title1:i[0],title2:i[1],title3:i[2]}}function rp(e){for(const t of e)if(t.title1||t.title2||t.title3)return{title1:t.title1??"",title2:t.title2??"",title3:t.title3??""};for(const t of e){const n=op(t.text);if(n.title1||n.title2||n.title3)return{title1:n.title1??"",title2:n.title2??"",title3:n.title3??""}}return{title1:"",title2:"",title3:""}}const oi=["title1","title2","title3"];function Ge(e,t){return`${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`}const ap={title1:"1",title2:"2",title3:"3"};function lp(e){return[Ge(e,"fontFamily"),Ge(e,"fontSettings"),{type:"row",items:[Ge(e,"fontSize"),Ge(e,"lineHeight"),Ge(e,"letterSpacing"),Ge(e,"wordSpacing")]},Ge(e,"textAlign"),Ge(e,"textAppearance")]}function sp(){return{type:"tab",id:"stripTextStyle",tabs:Object.fromEntries(oi.map(e=>[ap[e],lp(e)]))}}const cp={title1:"title1Color",title2:"title2Color",title3:"title3Color"},dp={title1:.02,title2:.02,title3:.02};function po(e,t){const n=i=>{const o=Ge(t,i);return e[o]};return{fontFamily:n("fontFamily")??"Arial",fontSettings:n("fontSettings")??{fontWeight:400,fontStyle:"normal"},fontSize:n("fontSize"),lineHeight:n("lineHeight"),letterSpacing:n("letterSpacing")??0,wordSpacing:n("wordSpacing")??0,textAlign:n("textAlign")??"left",textAppearance:n("textAppearance"),color:e[cp[t]]}}function mo(e,t,n){var o,l;const i={fontSettings:{fontFamily:t.fontFamily,fontWeight:((o=t.fontSettings)==null?void 0:o.fontWeight)??400,fontStyle:((l=t.fontSettings)==null?void 0:l.fontStyle)??"normal"},fontSize:t.fontSize??dp[e],lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,wordSpacing:t.wordSpacing,textAlign:t.textAlign,textAppearance:t.textAppearance,color:t.color??"#ffffff"};return ut(i,n)}const up=1,zr=.15,pp=3,mp=20,yi=e=>`max(${e}, ${mp}px)`,gp=({prefix:e,images:t,type:n,backgroundColor:i,contentBackgroundColor:o,thumbnailGap:l,thumbnailMarginBottom:s,imageGap:d,isEditor:a,isEditMode:u,isPreviewMode:p,closeIcon:I,closeIconMaxWidth:S,closeIconColor:v,closeIconHoverColor:g,thumbnailTrigger:h,thumbnailVisibility:R,thumbnailObjectFit:T,thumbnailActive:y,thumbnailActiveColor:w,textMaxWidth:N,title1Gap:_,title2Gap:W,title1:C,title2:P,title3:A,title1Style:E,title2Style:k,title3Style:B,contentMarginTop:V,contentMarginLeft:K,contentMarginRight:ee,onClose:m})=>{const b=!!u,F=!u,M=!u&&(!a||!!p),$=M,O=M,U=Vt(T),te=U?{"--image-aspect-ratio":qi(T)}:void 0,Y=(Z,Q,ce=!1)=>{const se=yi(Q),Le=`calc(-0.5 * (${se} + ${Q}))`;return r.jsx("div",{"data-controls":Z,"data-controls-axis":"x",...ce?{"data-controls-reverse":"true"}:void 0,style:{position:"absolute",top:0,right:Le,width:se,height:"100%",pointerEvents:"auto",zIndex:3}})},fe=!!(C||P||A),x=(Z=!1)=>{const Q=[];return C&&Q.push({className:`${e}-title1`,style:E,text:C,gapKey:"title1Gap",gap:_}),P&&Q.push({className:`${e}-title2`,style:k,text:P,gapKey:"title2Gap",gap:W}),A&&Q.push({className:`${e}-title3`,style:B,text:A}),Q.map((ce,se)=>r.jsxs("div",{className:`${e}-title-cell`,style:se<Q.length-1&&ce.gap?{marginRight:ce.gap}:void 0,children:[r.jsx("p",{className:ce.className,style:{...ce.style,maxWidth:N},children:ce.text}),Z&&b&&ce.gapKey&&ce.gap&&se<Q.length-1?Y(ce.gapKey,ce.gap):null]},ce.className))},q=c.useRef(null),he=c.useRef(null),pe=c.useRef([]),be=c.useRef(0),J=c.useRef({isActive:!1,startX:0,scrollLeft:0,hasMoved:!1}),me=t.length>1,G=me?pp:1,f=c.useMemo(()=>Array.from({length:G},()=>t).flat(),[t,G]),[H,j]=c.useState(!1),[ne,de]=c.useState(!1),[oe,ie]=c.useState(!0),[ge,ve]=c.useState(0),Se=c.useRef(ge);Se.current=ge;const D=c.useRef(null),ue=c.useRef(!1),z=c.useRef(null),X=c.useRef(null),Ce=c.useCallback(()=>{F&&(ie(!0),X.current&&clearTimeout(X.current),X.current=setTimeout(()=>{J.current.isActive||ie(!1)},np))},[F]),_e=c.useCallback(()=>{u||ue.current||(ue.current=!0,de(!1),z.current=setTimeout(()=>{m()},ki))},[u,m]),Ze=()=>{if(!me||t.length===0)return be.current=0,0;const Z=pe.current[0],Q=pe.current[t.length];if(!Z||!Q)return be.current;const ce=Q.offsetLeft-Z.offsetLeft;return ce>0&&(be.current=ce),be.current},We=(Z=!1)=>{if(!me)return;const Q=he.current,ce=Ze();!Q||ce<=0||(Q.scrollLeft<=0?(Q.scrollLeft+=ce,Z&&(J.current.scrollLeft+=ce)):Q.scrollLeft>=ce*2&&(Q.scrollLeft-=ce,Z&&(J.current.scrollLeft-=ce)))},ze=(Z=(Q=>(Q=he.current)==null?void 0:Q.scrollLeft)()??0)=>{let ce=0,se=1/0;return pe.current.forEach((Le,Oe)=>{if(!Le)return;const ae=Math.abs(Le.offsetLeft-Z);ae<se&&(se=ae,ce=Oe)}),ce},Ne=()=>{!he.current||t.length===0||D.current===null&&ve(ze()%t.length)},Me=()=>{D.current=null,Ne()},qe=(Z="smooth")=>{const Q=he.current;if(!Q||t.length===0)return;const ce=ze(),se=pe.current[ce];se&&(Q.scrollTo({left:se.offsetLeft,behavior:Z}),ve(ce%t.length))},Xe=Z=>{const Q=he.current;Q&&(Q.style.scrollSnapType=Z?"":"none")},Pe=(Z,Q="smooth")=>{const ce=he.current;if(!ce||t.length===0)return;const se=ce.scrollLeft-Z,Le=ze(ce.scrollLeft),Oe=pe.current[Le],ae=pe.current[Le+1],$e=Oe?ae?ae.offsetLeft-Oe.offsetLeft:Oe.offsetWidth:0;let Ie=Le;$e>0&&(se>$e*zr?Ie+=1:se<-$e*zr&&(Ie-=1)),me||(Ie=Math.max(0,Math.min(f.length-1,Ie)));const Re=pe.current[Ie];if(!Re){qe(Q);return}ce.scrollTo({left:Re.offsetLeft,behavior:Q}),ve(Ie%t.length)},Ve=(Z,Q="smooth")=>{const ce=he.current,se=me?t.length+Z:Z,Le=pe.current[se];!ce||!Le||(Q==="smooth"?D.current=Z:D.current=null,ve(Z),ce.scrollTo({left:Le.offsetLeft,behavior:Q}))},ct=Z=>Z.closest("[data-controls]")||Z.closest(`.${e}-thumbnails`)||Z.closest(`.${e}-close-icon`),pt=Z=>{if(!$||Z.pointerType!=="mouse"||Z.button!==0||ct(Z.target))return;const Q=he.current,ce=q.current;!Q||!ce||(J.current={isActive:!0,startX:Z.clientX,scrollLeft:Q.scrollLeft,hasMoved:!1},Xe(!1),Ce(),ce.setPointerCapture(Z.pointerId))},rt=Z=>{if(!$||Z.pointerType!=="mouse")return;const Q=he.current;if(!Q||!J.current.isActive)return;const ce=Z.clientX-J.current.startX;Math.abs(ce)>up&&(J.current.hasMoved=!0,j(!0)),J.current.hasMoved&&(Z.preventDefault(),Q.scrollLeft=J.current.scrollLeft-ce,We(!0),Ne(),Ce())},ot=Z=>{if(!$||Z.pointerType!=="mouse")return;const Q=he.current,ce=q.current;if(!Q||!ce)return;const se=J.current.hasMoved,Le=J.current.scrollLeft;J.current.isActive=!1,j(!1),ce.hasPointerCapture(Z.pointerId)&&ce.releasePointerCapture(Z.pointerId),We(),Xe(!0),se?Pe(Le):Ne(),Ce()};return c.useEffect(()=>{const Z=requestAnimationFrame(()=>de(!0)),Q=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{cancelAnimationFrame(Z),document.body.style.overflow=Q,z.current&&clearTimeout(z.current),X.current&&clearTimeout(X.current)}},[]),c.useEffect(()=>{if(!F){ie(!0);return}Ce();const Z=q.current;if(!Z)return;const Q=()=>Ce();return Z.addEventListener("pointermove",Q),Z.addEventListener("pointerdown",Q),()=>{Z.removeEventListener("pointermove",Q),Z.removeEventListener("pointerdown",Q),X.current&&clearTimeout(X.current)}},[F,Ce]),c.useEffect(()=>{const Z=Q=>{Q.key==="Escape"&&_e()};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[_e]),c.useLayoutEffect(()=>{Ze(),Ve(Se.current,"auto")},[d]),c.useLayoutEffect(()=>{Ze(),Ve(0,"auto")},[t.length,me]),c.useEffect(()=>{if(!u)return;const Z=he.current;if(!Z)return;const Q=ce=>{ce.preventDefault()};return Z.addEventListener("wheel",Q,{passive:!1}),Z.addEventListener("touchmove",Q,{passive:!1}),()=>{Z.removeEventListener("wheel",Q),Z.removeEventListener("touchmove",Q)}},[u]),c.useEffect(()=>{const Z=he.current;if(!Z)return;let Q=null;const ce=()=>{We(),Ne(),D.current!==null&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{D.current!==null&&Me()},150))},se=()=>{D.current!==null&&(Q&&(clearTimeout(Q),Q=null),Me())};Z.addEventListener("scroll",ce,{passive:!0}),Z.addEventListener("scrollend",se);const Le=new ResizeObserver(()=>{Ze(),We(),Ne()});return Le.observe(Z),()=>{Q&&clearTimeout(Q),Z.removeEventListener("scroll",ce),Z.removeEventListener("scrollend",se),Le.disconnect()}},[t.length,me]),r.jsxs("div",{"data-selection":"none",className:`${e}-lightbox${a?` ${e}-lightbox-editor`:""}${u?` ${e}-lightbox-edit-mode`:""}`,onClick:_e,role:"dialog","aria-modal":"true","aria-label":"Image gallery",style:{opacity:ne?1:0,transition:`opacity ${ki}ms ease`,pointerEvents:ne?"auto":"none"},children:[r.jsx("div",{className:`${e}-lightbox-backdrop`,style:{backgroundColor:i}}),r.jsxs("div",{ref:q,className:`${e}-lightbox-content`,"data-mouse-draggable":$&&t.length>0?"true":"false","data-mouse-dragging":H?"true":"false",onClick:Z=>Z.stopPropagation(),onPointerDown:$?pt:void 0,onPointerMove:$?rt:void 0,onPointerUp:$?ot:void 0,onPointerCancel:$?ot:void 0,children:[r.jsxs("div",{className:`${e}-lightbox-content-inner`,style:{width:"100%",height:n==="A"?"100%":"auto",top:0,bottom:n==="A"?0:"auto",...n==="B"?{backgroundColor:o,position:"relative"}:{}},children:[r.jsx("div",{"data-controls":b?"contentMarginTop":void 0,className:b?`${e}-control`:void 0,style:{height:V,width:"100%",pointerEvents:b?"auto":"none"}}),r.jsxs("div",{className:n==="B"?`${e}-lightbox-chrome-bar`:void 0,style:{display:"flex",flexDirection:"row",width:"100%"},children:[r.jsx("div",{"data-controls":b?"contentMarginLeft":void 0,"data-controls-axis":b?"x":void 0,className:b?`${e}-control`:void 0,style:{width:K,flexShrink:0}}),r.jsxs("div",{className:`${e}-lightbox-content-area`,children:[fe&&r.jsx("div",{className:`${e}-titles-row`,children:x(!0)}),I&&r.jsx("div",{className:`${e}-close-icon`,"data-chrome-hidden":F&&!oe?"true":"false",style:{width:L.scalingValue(S??0,a),height:L.scalingValue(S??0,a),"--close-icon-hover-color":g},children:r.jsx("button",{type:"button",className:`${e}-close-icon-inner`,onClick:_e,"aria-label":"Close",children:r.jsx(At,{url:I,fill:v,hoverFill:g,className:`${e}-close-icon-img`})})})]}),r.jsx("div",{"data-controls":b?"contentMarginRight":void 0,"data-controls-axis":b?"x":void 0,"data-controls-reverse":b?"":void 0,className:b?`${e}-control`:void 0,style:{width:ee,flexShrink:0,pointerEvents:b?"auto":"none"}})]})]}),r.jsx("div",{ref:he,className:`${e}-lightbox-strip`,style:{gap:d},"data-mouse-dragging":H?"true":"false",children:f.map((Z,Q)=>{const ce=Z.image.objectFit??"contain",se=Q%t.length,Le=Math.floor(Q/t.length),Oe=yi(d),ae=`calc(-0.5 * (${Oe} + ${d}))`;return r.jsxs("div",{ref:$e=>pe.current[Q]=$e,className:`${e}-strip-item`,style:{height:"100%"},children:[r.jsx("img",{src:Z.image.url,draggable:!1,style:{display:"block",width:"100%",height:"100%",objectFit:ce}}),b&&se<t.length-1&&r.jsx("div",{"data-controls":"imageGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:ae,width:Oe,height:"100%",pointerEvents:"auto",zIndex:3}})]},`${Le}-${Z.image.url}-${se}`)})}),t.length>1&&R==="on"&&(()=>{const Z=yi(s),Q=`calc(-0.5 * (${s} + ${Z}))`;return r.jsxs("div",{className:`${e}-thumbnails`,"data-thumbnail-active":y,"data-chrome-hidden":F&&!oe?"true":"false",style:{gap:l,bottom:s,"--thumbnail-active-color":w},children:[t.map((ce,se)=>{const Le=yi(l),Oe=`calc(-0.5 * (${Le} + ${l}))`;return r.jsxs("div",{style:{position:"relative",flex:"0 0 auto"},children:[r.jsx("button",{type:"button",className:`${e}-thumb`,"data-active":ge===se?"true":"false",onClick:()=>M&&h==="click"&&Ve(se),onMouseEnter:()=>O&&h==="hover"&&Ve(se),"aria-label":ce.image.name?`View ${ce.image.name}`:`View image ${se+1}`,"aria-current":ge===se?"true":void 0,children:r.jsx("img",{className:`${e}-thumb-image${U?` ${e}-thumb-image-cover`:""}`,src:ce.image.url,alt:"",draggable:!1,style:te})}),b&&se<t.length-1&&r.jsx("div",{"data-controls":"thumbnailGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:Oe,width:Le,height:"100%",pointerEvents:"auto",zIndex:3}})]},`thumb-${ce.image.url}-${se}`)}),b&&r.jsx("div",{"data-controls":"thumbnailMarginBottom","data-controls-axis":"y","data-controls-reverse":b?"":void 0,style:{position:"absolute",left:0,right:0,bottom:Q,height:Z,pointerEvents:"auto",zIndex:3}})]})})()]})]})},hp=({settings:e,content:t,isEditor:n,isEditMode:i,isPreviewMode:o,portalId:l})=>{const{prefix:s}=L.useScopedStyles(),{cover:d,coverFit:a,type:u,backgroundColor:p,contentBackgroundColor:I,thumbnailVisibility:S,thumbnailObjectFit:v,thumbnailTrigger:g,thumbnailActive:h,thumbnailActiveColor:R,thumbnailGap:T,thumbnailMarginBottom:y,imageGap:w,textMaxWidth:N,title1Gap:_,title2Gap:W,closeIcon:C,closeIconMaxWidth:P,closeIconColor:A,closeIconHoverColor:E,contentMarginTop:k,contentMarginLeft:B,contentMarginRight:V}=e,K=c.useRef(null),[ee,m]=c.useState(!1),b=t??[],{title1:F,title2:M,title3:$}=rp(b),O=q=>L.scalingValue(q,n??!1),U=mo("title1",po(e,"title1"),n),te=mo("title2",po(e,"title2"),n),Y=mo("title3",po(e,"title3"),n),fe=()=>{i||b.length===0||m(!0)},x=()=>{m(!1)};return r.jsxs(r.Fragment,{children:[r.jsxs("div",{ref:K,className:`${s}-wrapper`,children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:ip(s)}}),d?r.jsx("button",{type:"button",className:`${s}-cover ${Vt(a)?`${s}-ratio-wrapper-cover`:`${s}-ratio-wrapper-fit`}`,onClick:fe,style:{display:"block",padding:0,border:"none",background:"transparent",...Vt(a)?{"--image-aspect-ratio":qi(a)}:{}},"aria-label":"Open image gallery",children:r.jsx("img",{className:`${s}-cover-image ${Vt(a)?`${s}-cover-image-cover`:`${s}-cover-image-fit`}`,src:d,alt:"cover"})}):null]}),ee&&typeof document<"u"&&(()=>{const q=(l?document.getElementById(l):null)??document.body;return Xn.createPortal(r.jsx(gp,{prefix:s,type:u,images:b,backgroundColor:p,contentBackgroundColor:I,thumbnailGap:O(T),thumbnailMarginBottom:O(y??.02),imageGap:O(w??0),thumbnailVisibility:S,thumbnailObjectFit:v,thumbnailTrigger:g,thumbnailActive:h,thumbnailActiveColor:R,textMaxWidth:O(N),title1Gap:O(_??0),title2Gap:O(W??0),title1:F,title2:M,title3:$,title1Style:U,title2Style:te,title3Style:Y,contentMarginTop:O(k??0),contentMarginLeft:O(B??0),contentMarginRight:O(V??0),closeIcon:C,closeIconMaxWidth:P,closeIconColor:A,closeIconHoverColor:E,isEditor:n,isEditMode:i,isPreviewMode:o,onClose:x}),q)})()]})},fp=`import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
8770
+ `}function op(e){if(!Array.isArray(e)||e.length===0)return{};const t=e.find(o=>(o==null?void 0:o.type)==="paragraph")??e[0],n=t==null?void 0:t.children;if(!Array.isArray(n))return{};const i=n.map(o=>typeof(o==null?void 0:o.text)=="string"?o.text.trim():"").filter(Boolean);return{title1:i[0],title2:i[1],title3:i[2]}}function rp(e){for(const t of e)if(t.title1||t.title2||t.title3)return{title1:t.title1??"",title2:t.title2??"",title3:t.title3??""};for(const t of e){const n=op(t.text);if(n.title1||n.title2||n.title3)return{title1:n.title1??"",title2:n.title2??"",title3:n.title3??""}}return{title1:"",title2:"",title3:""}}const oi=["title1","title2","title3"];function Ge(e,t){return`${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`}const ap={title1:"1",title2:"2",title3:"3"};function lp(e){return[Ge(e,"fontFamily"),Ge(e,"fontSettings"),{type:"row",items:[Ge(e,"fontSize"),Ge(e,"lineHeight"),Ge(e,"letterSpacing"),Ge(e,"wordSpacing")]},Ge(e,"textAlign"),Ge(e,"textAppearance")]}function sp(){return{type:"tab",id:"stripTextStyle",tabs:Object.fromEntries(oi.map(e=>[ap[e],lp(e)]))}}const cp={title1:"title1Color",title2:"title2Color",title3:"title3Color"},dp={title1:.02,title2:.02,title3:.02};function po(e,t){const n=i=>{const o=Ge(t,i);return e[o]};return{fontFamily:n("fontFamily")??"Arial",fontSettings:n("fontSettings")??{fontWeight:400,fontStyle:"normal"},fontSize:n("fontSize"),lineHeight:n("lineHeight"),letterSpacing:n("letterSpacing")??0,wordSpacing:n("wordSpacing")??0,textAlign:n("textAlign")??"left",textAppearance:n("textAppearance"),color:e[cp[t]]}}function mo(e,t,n){var o,l;const i={fontSettings:{fontFamily:t.fontFamily,fontWeight:((o=t.fontSettings)==null?void 0:o.fontWeight)??400,fontStyle:((l=t.fontSettings)==null?void 0:l.fontStyle)??"normal"},fontSize:t.fontSize??dp[e],lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,wordSpacing:t.wordSpacing,textAlign:t.textAlign,textAppearance:t.textAppearance,color:t.color??"#ffffff"};return ut(i,n)}const up=1,zr=.15,pp=3,mp=20,fi=e=>`max(${e}, ${mp}px)`,gp=({prefix:e,images:t,type:n,backgroundColor:i,contentBackgroundColor:o,thumbnailGap:l,thumbnailMarginBottom:s,imageGap:d,isEditor:a,isEditMode:u,isPreviewMode:p,closeIcon:I,closeIconMaxWidth:S,closeIconColor:v,closeIconHoverColor:g,thumbnailTrigger:h,thumbnailVisibility:R,thumbnailObjectFit:T,thumbnailActive:y,thumbnailActiveColor:w,textMaxWidth:N,title1Gap:_,title2Gap:W,title1:C,title2:P,title3:A,title1Style:E,title2Style:k,title3Style:B,contentMarginTop:V,contentMarginLeft:K,contentMarginRight:ee,onClose:m})=>{const b=!!u,F=!u,M=!u&&(!a||!!p),$=M,O=M,U=Vt(T),te=U?{"--image-aspect-ratio":qi(T)}:void 0,Y=(Z,Q,ce=!1)=>{const se=fi(Q),Le=`calc(-0.5 * (${se} + ${Q}))`;return r.jsx("div",{"data-controls":Z,"data-controls-axis":"x",...ce?{"data-controls-reverse":"true"}:void 0,style:{position:"absolute",top:0,right:Le,width:se,height:"100%",pointerEvents:"auto",zIndex:3}})},fe=!!(C||P||A),x=(Z=!1)=>{const Q=[];return C&&Q.push({className:`${e}-title1`,style:E,text:C,gapKey:"title1Gap",gap:_}),P&&Q.push({className:`${e}-title2`,style:k,text:P,gapKey:"title2Gap",gap:W}),A&&Q.push({className:`${e}-title3`,style:B,text:A}),Q.map((ce,se)=>r.jsxs("div",{className:`${e}-title-cell`,style:se<Q.length-1&&ce.gap?{marginRight:ce.gap}:void 0,children:[r.jsx("p",{className:ce.className,style:{...ce.style,maxWidth:N},children:ce.text}),Z&&b&&ce.gapKey&&ce.gap&&se<Q.length-1?Y(ce.gapKey,ce.gap):null]},ce.className))},q=c.useRef(null),he=c.useRef(null),pe=c.useRef([]),be=c.useRef(0),J=c.useRef({isActive:!1,startX:0,scrollLeft:0,hasMoved:!1}),me=t.length>1,G=me?pp:1,f=c.useMemo(()=>Array.from({length:G},()=>t).flat(),[t,G]),[H,j]=c.useState(!1),[ne,de]=c.useState(!1),[oe,ie]=c.useState(!0),[ge,ve]=c.useState(0),Se=c.useRef(ge);Se.current=ge;const D=c.useRef(null),ue=c.useRef(!1),z=c.useRef(null),X=c.useRef(null),Ce=c.useCallback(()=>{F&&(ie(!0),X.current&&clearTimeout(X.current),X.current=setTimeout(()=>{J.current.isActive||ie(!1)},np))},[F]),_e=c.useCallback(()=>{u||ue.current||(ue.current=!0,de(!1),z.current=setTimeout(()=>{m()},ki))},[u,m]),Ze=()=>{if(!me||t.length===0)return be.current=0,0;const Z=pe.current[0],Q=pe.current[t.length];if(!Z||!Q)return be.current;const ce=Q.offsetLeft-Z.offsetLeft;return ce>0&&(be.current=ce),be.current},We=(Z=!1)=>{if(!me)return;const Q=he.current,ce=Ze();!Q||ce<=0||(Q.scrollLeft<=0?(Q.scrollLeft+=ce,Z&&(J.current.scrollLeft+=ce)):Q.scrollLeft>=ce*2&&(Q.scrollLeft-=ce,Z&&(J.current.scrollLeft-=ce)))},ze=(Z=(Q=>(Q=he.current)==null?void 0:Q.scrollLeft)()??0)=>{let ce=0,se=1/0;return pe.current.forEach((Le,Oe)=>{if(!Le)return;const ae=Math.abs(Le.offsetLeft-Z);ae<se&&(se=ae,ce=Oe)}),ce},Ne=()=>{!he.current||t.length===0||D.current===null&&ve(ze()%t.length)},Me=()=>{D.current=null,Ne()},qe=(Z="smooth")=>{const Q=he.current;if(!Q||t.length===0)return;const ce=ze(),se=pe.current[ce];se&&(Q.scrollTo({left:se.offsetLeft,behavior:Z}),ve(ce%t.length))},Xe=Z=>{const Q=he.current;Q&&(Q.style.scrollSnapType=Z?"":"none")},Pe=(Z,Q="smooth")=>{const ce=he.current;if(!ce||t.length===0)return;const se=ce.scrollLeft-Z,Le=ze(ce.scrollLeft),Oe=pe.current[Le],ae=pe.current[Le+1],$e=Oe?ae?ae.offsetLeft-Oe.offsetLeft:Oe.offsetWidth:0;let Ie=Le;$e>0&&(se>$e*zr?Ie+=1:se<-$e*zr&&(Ie-=1)),me||(Ie=Math.max(0,Math.min(f.length-1,Ie)));const Re=pe.current[Ie];if(!Re){qe(Q);return}ce.scrollTo({left:Re.offsetLeft,behavior:Q}),ve(Ie%t.length)},Ve=(Z,Q="smooth")=>{const ce=he.current,se=me?t.length+Z:Z,Le=pe.current[se];!ce||!Le||(Q==="smooth"?D.current=Z:D.current=null,ve(Z),ce.scrollTo({left:Le.offsetLeft,behavior:Q}))},ct=Z=>Z.closest("[data-controls]")||Z.closest(`.${e}-thumbnails`)||Z.closest(`.${e}-close-icon`),pt=Z=>{if(!$||Z.pointerType!=="mouse"||Z.button!==0||ct(Z.target))return;const Q=he.current,ce=q.current;!Q||!ce||(J.current={isActive:!0,startX:Z.clientX,scrollLeft:Q.scrollLeft,hasMoved:!1},Xe(!1),Ce(),ce.setPointerCapture(Z.pointerId))},rt=Z=>{if(!$||Z.pointerType!=="mouse")return;const Q=he.current;if(!Q||!J.current.isActive)return;const ce=Z.clientX-J.current.startX;Math.abs(ce)>up&&(J.current.hasMoved=!0,j(!0)),J.current.hasMoved&&(Z.preventDefault(),Q.scrollLeft=J.current.scrollLeft-ce,We(!0),Ne(),Ce())},ot=Z=>{if(!$||Z.pointerType!=="mouse")return;const Q=he.current,ce=q.current;if(!Q||!ce)return;const se=J.current.hasMoved,Le=J.current.scrollLeft;J.current.isActive=!1,j(!1),ce.hasPointerCapture(Z.pointerId)&&ce.releasePointerCapture(Z.pointerId),We(),Xe(!0),se?Pe(Le):Ne(),Ce()};return c.useEffect(()=>{const Z=requestAnimationFrame(()=>de(!0)),Q=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{cancelAnimationFrame(Z),document.body.style.overflow=Q,z.current&&clearTimeout(z.current),X.current&&clearTimeout(X.current)}},[]),c.useEffect(()=>{if(!F){ie(!0);return}Ce();const Z=q.current;if(!Z)return;const Q=()=>Ce();return Z.addEventListener("pointermove",Q),Z.addEventListener("pointerdown",Q),()=>{Z.removeEventListener("pointermove",Q),Z.removeEventListener("pointerdown",Q),X.current&&clearTimeout(X.current)}},[F,Ce]),c.useEffect(()=>{const Z=Q=>{Q.key==="Escape"&&_e()};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[_e]),c.useLayoutEffect(()=>{Ze(),Ve(Se.current,"auto")},[d]),c.useLayoutEffect(()=>{Ze(),Ve(0,"auto")},[t.length,me]),c.useEffect(()=>{if(!u)return;const Z=he.current;if(!Z)return;const Q=ce=>{ce.preventDefault()};return Z.addEventListener("wheel",Q,{passive:!1}),Z.addEventListener("touchmove",Q,{passive:!1}),()=>{Z.removeEventListener("wheel",Q),Z.removeEventListener("touchmove",Q)}},[u]),c.useEffect(()=>{const Z=he.current;if(!Z)return;let Q=null;const ce=()=>{We(),Ne(),D.current!==null&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{D.current!==null&&Me()},150))},se=()=>{D.current!==null&&(Q&&(clearTimeout(Q),Q=null),Me())};Z.addEventListener("scroll",ce,{passive:!0}),Z.addEventListener("scrollend",se);const Le=new ResizeObserver(()=>{Ze(),We(),Ne()});return Le.observe(Z),()=>{Q&&clearTimeout(Q),Z.removeEventListener("scroll",ce),Z.removeEventListener("scrollend",se),Le.disconnect()}},[t.length,me]),r.jsxs("div",{"data-selection":"none",className:`${e}-lightbox${a?` ${e}-lightbox-editor`:""}${u?` ${e}-lightbox-edit-mode`:""}`,onClick:_e,role:"dialog","aria-modal":"true","aria-label":"Image gallery",style:{opacity:ne?1:0,transition:`opacity ${ki}ms ease`,pointerEvents:ne?"auto":"none"},children:[r.jsx("div",{className:`${e}-lightbox-backdrop`,style:{backgroundColor:i}}),r.jsxs("div",{ref:q,className:`${e}-lightbox-content`,"data-mouse-draggable":$&&t.length>0?"true":"false","data-mouse-dragging":H?"true":"false",onClick:Z=>Z.stopPropagation(),onPointerDown:$?pt:void 0,onPointerMove:$?rt:void 0,onPointerUp:$?ot:void 0,onPointerCancel:$?ot:void 0,children:[r.jsxs("div",{className:`${e}-lightbox-content-inner`,style:{width:"100%",height:n==="A"?"100%":"auto",top:0,bottom:n==="A"?0:"auto",...n==="B"?{backgroundColor:o,position:"relative"}:{}},children:[r.jsx("div",{"data-controls":b?"contentMarginTop":void 0,className:b?`${e}-control`:void 0,style:{height:V,width:"100%",pointerEvents:b?"auto":"none"}}),r.jsxs("div",{className:n==="B"?`${e}-lightbox-chrome-bar`:void 0,style:{display:"flex",flexDirection:"row",width:"100%"},children:[r.jsx("div",{"data-controls":b?"contentMarginLeft":void 0,"data-controls-axis":b?"x":void 0,className:b?`${e}-control`:void 0,style:{width:K,flexShrink:0}}),r.jsxs("div",{className:`${e}-lightbox-content-area`,children:[fe&&r.jsx("div",{className:`${e}-titles-row`,children:x(!0)}),I&&r.jsx("div",{className:`${e}-close-icon`,"data-chrome-hidden":F&&!oe?"true":"false",style:{width:L.scalingValue(S??0,a),height:L.scalingValue(S??0,a),"--close-icon-hover-color":g},children:r.jsx("button",{type:"button",className:`${e}-close-icon-inner`,onClick:_e,"aria-label":"Close",children:r.jsx(At,{url:I,fill:v,hoverFill:g,className:`${e}-close-icon-img`})})})]}),r.jsx("div",{"data-controls":b?"contentMarginRight":void 0,"data-controls-axis":b?"x":void 0,"data-controls-reverse":b?"":void 0,className:b?`${e}-control`:void 0,style:{width:ee,flexShrink:0,pointerEvents:b?"auto":"none"}})]})]}),r.jsx("div",{ref:he,className:`${e}-lightbox-strip`,style:{gap:d},"data-mouse-dragging":H?"true":"false",children:f.map((Z,Q)=>{const ce=Z.image.objectFit??"contain",se=Q%t.length,Le=Math.floor(Q/t.length),Oe=fi(d),ae=`calc(-0.5 * (${Oe} + ${d}))`;return r.jsxs("div",{ref:$e=>pe.current[Q]=$e,className:`${e}-strip-item`,style:{height:"100%"},children:[r.jsx("img",{src:Z.image.url,draggable:!1,style:{display:"block",width:"100%",height:"100%",objectFit:ce}}),b&&se<t.length-1&&r.jsx("div",{"data-controls":"imageGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:ae,width:Oe,height:"100%",pointerEvents:"auto",zIndex:3}})]},`${Le}-${Z.image.url}-${se}`)})}),t.length>1&&R==="on"&&(()=>{const Z=fi(s),Q=`calc(-0.5 * (${s} + ${Z}))`;return r.jsxs("div",{className:`${e}-thumbnails`,"data-thumbnail-active":y,"data-chrome-hidden":F&&!oe?"true":"false",style:{gap:l,bottom:s,"--thumbnail-active-color":w},children:[t.map((ce,se)=>{const Le=fi(l),Oe=`calc(-0.5 * (${Le} + ${l}))`;return r.jsxs("div",{style:{position:"relative",flex:"0 0 auto"},children:[r.jsx("button",{type:"button",className:`${e}-thumb`,"data-active":ge===se?"true":"false",onClick:()=>M&&h==="click"&&Ve(se),onMouseEnter:()=>O&&h==="hover"&&Ve(se),"aria-label":ce.image.name?`View ${ce.image.name}`:`View image ${se+1}`,"aria-current":ge===se?"true":void 0,children:r.jsx("img",{className:`${e}-thumb-image${U?` ${e}-thumb-image-cover`:""}`,src:ce.image.url,alt:"",draggable:!1,style:{...te,...T.display==="Cover"?{width:Li}:{width:"100%"}}})}),b&&se<t.length-1&&r.jsx("div",{"data-controls":"thumbnailGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:Oe,width:Le,height:"100%",pointerEvents:"auto",zIndex:3}})]},`thumb-${ce.image.url}-${se}`)}),b&&r.jsx("div",{"data-controls":"thumbnailMarginBottom","data-controls-axis":"y","data-controls-reverse":b?"":void 0,style:{position:"absolute",left:0,right:0,bottom:Q,height:Z,pointerEvents:"auto",zIndex:3}})]})})()]})]})},hp=({settings:e,content:t,isEditor:n,isEditMode:i,isPreviewMode:o,portalId:l})=>{const{prefix:s}=L.useScopedStyles(),{cover:d,coverFit:a,type:u,backgroundColor:p,contentBackgroundColor:I,thumbnailVisibility:S,thumbnailObjectFit:v,thumbnailTrigger:g,thumbnailActive:h,thumbnailActiveColor:R,thumbnailGap:T,thumbnailMarginBottom:y,imageGap:w,textMaxWidth:N,title1Gap:_,title2Gap:W,closeIcon:C,closeIconMaxWidth:P,closeIconColor:A,closeIconHoverColor:E,contentMarginTop:k,contentMarginLeft:B,contentMarginRight:V}=e,K=c.useRef(null),[ee,m]=c.useState(!1),b=t??[],{title1:F,title2:M,title3:$}=rp(b),O=q=>L.scalingValue(q,n??!1),U=mo("title1",po(e,"title1"),n),te=mo("title2",po(e,"title2"),n),Y=mo("title3",po(e,"title3"),n),fe=()=>{i||b.length===0||m(!0)},x=()=>{m(!1)};return r.jsxs(r.Fragment,{children:[r.jsxs("div",{ref:K,className:`${s}-wrapper`,children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:ip(s)}}),d?r.jsx("button",{type:"button",className:`${s}-cover ${Vt(a)?`${s}-ratio-wrapper-cover`:`${s}-ratio-wrapper-fit`}`,onClick:fe,style:{display:"block",padding:0,border:"none",background:"transparent",...Vt(a)?{"--image-aspect-ratio":qi(a)}:{}},"aria-label":"Open image gallery",children:r.jsx("img",{className:`${s}-cover-image ${Vt(a)?`${s}-cover-image-cover`:`${s}-cover-image-fit`}`,src:d,alt:"cover"})}):null]}),ee&&typeof document<"u"&&(()=>{const q=(l?document.getElementById(l):null)??document.body;return Xn.createPortal(r.jsx(gp,{prefix:s,type:u,images:b,backgroundColor:p,contentBackgroundColor:I,thumbnailGap:O(T),thumbnailMarginBottom:O(y??.02),imageGap:O(w??0),thumbnailVisibility:S,thumbnailObjectFit:v,thumbnailTrigger:g,thumbnailActive:h,thumbnailActiveColor:R,textMaxWidth:O(N),title1Gap:O(_??0),title2Gap:O(W??0),title1:F,title2:M,title3:$,title1Style:U,title2Style:te,title3Style:Y,contentMarginTop:O(k??0),contentMarginLeft:O(B??0),contentMarginRight:O(V??0),closeIcon:C,closeIconMaxWidth:P,closeIconColor:A,closeIconHoverColor:E,isEditor:n,isEditMode:i,isPreviewMode:o,onClose:x}),q)})()]})},fp=`import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
8772
8771
  import { createPortal } from 'react-dom';
8773
8772
  import { CommonComponentProps } from '../props';
8774
8773
  import { scalingValue } from '../utils/scalingValue';
@@ -8978,7 +8977,6 @@ function getCSS(P: string): string {
8978
8977
 
8979
8978
  .\${P}-thumb-image {
8980
8979
  display: block;
8981
- width: \${THUMB_MAX_SIZE_PX}px;
8982
8980
  height: \${THUMB_MAX_SIZE_PX}px;
8983
8981
  object-fit: contain;
8984
8982
  transition: filter 0.2s ease;
@@ -10053,7 +10051,10 @@ const LightboxOverlay = ({
10053
10051
  src={item.image.url}
10054
10052
  alt=""
10055
10053
  draggable={false}
10056
- style={thumbAspectRatioStyle}
10054
+ style={
10055
+ {...thumbAspectRatioStyle,
10056
+ ...(thumbnailObjectFit.display === 'Cover' ? { width: THUMB_MAX_SIZE_PX } : { width: '100%' }),}
10057
+ }
10057
10058
  />
10058
10059
  </button>
10059
10060
  {showControls && index < images.length - 1 && (
@@ -10618,7 +10619,7 @@ export const LightboxStrip = ({ settings, content, isEditor, isEditMode, isPrevi
10618
10619
  pointer-events: auto;
10619
10620
  z-index: 10;
10620
10621
  }
10621
- `}const Ip=20,Rp=2,qr=e=>`max(${e}, ${Ip}px)`,Pn=e=>((e==null?void 0:e.image)??[]).slice(0,Rp),Da=e=>e.reduce((t,n)=>t+Pn(n).length,0),Pp=(e,t)=>{let n=1;for(let o=0;o<t;o++)n+=Pn(e[o]).length;const i=Pn(e[t]).length;return{start:n,end:n+i-1}},_p=(e,t)=>{const n=Da(e),{start:i,end:o}=Pp(e,t);return i===o?`${i} / ${n}`:`${i}-${o} / ${n}`},Ei=(e,t)=>t==="B"?e.flatMap((n,i)=>Pn(n).map(o=>({entry:n,entryIndex:i,images:[o]}))):e.map((n,i)=>({entry:n,entryIndex:i,images:Pn(n)})),Ap=(e,t,n,i)=>{var l;if(n==="B")return`${t+1} / ${e.length}`;const o=((l=e[t])==null?void 0:l.entryIndex)??0;return _p(i,o)},Xr=e=>e?`${e.title1??""}|${e.title2??""}|${e.title3??""}`:"",Mp=(e,t,n)=>e==="B"?t.length>1:Da(n)>1,kp=({prefix:e,entries:t,journalType:n,coverFit:i,backgroundColor:o,imageGap:l,slideMaxWidth:s,slideMaxHeight:d,isEditor:a,isEditMode:u,isPreviewMode:p,closeIcon:I,closeIconMaxWidth:S,closeIconColor:v,closeIconHoverColor:g,textMaxWidth:h,titlesGap:R,countCloseGap:T,textTransition:y,title1Style:w,title2Style:N,title3Style:_,countStyle:W,contentMarginTop:C,contentMarginLeft:P,contentMarginRight:A,initialSlideIndex:E=0,enableUrlSync:k=!1,onBeforeClose:B,onClose:V})=>{const K=!!u,ee=!a||!!p,m=c.useMemo(()=>Ei(t,n),[t,n]),[b,F]=c.useState(E),M=m[b],$=M==null?void 0:M.entry,[O,U]=c.useState(!1),[te,Y]=c.useState(null),[fe,x]=c.useState(!1),[q,he]=c.useState(null),[pe,be]=c.useState(!1),[J,me]=c.useState(0),[G,f]=c.useState(),[H,j]=c.useState(),[ne,de]=c.useState(null),oe=c.useRef(null),ie=c.useRef(0),ge=c.useRef(0),ve=c.useRef(0),Se=c.useRef(!1),D=c.useRef(null),ue=c.useRef(null),z=c.useRef(null),X=c.useRef(null),Ce=c.useRef(null),_e=c.useRef(null),Ze=c.useCallback(()=>{const ae=ue.current;if(!ae)return;const $e=ae.closest(`.${e}-lightbox-content-area`);if(!$e)return ae.getBoundingClientRect().width;let Ie=0;return Array.from($e.children).forEach(Re=>{Re instanceof HTMLElement&&(Re.contains(ae)||(Ie+=Re.getBoundingClientRect().width))}),$e.getBoundingClientRect().width-Ie},[e]),We=c.useCallback(()=>{oe.current&&(clearTimeout(oe.current),oe.current=null)},[]),ze=c.useCallback(ae=>{ae===ie.current&&(he(null),be(!1))},[]),Ne=c.useCallback(()=>{u||Se.current||(Se.current=!0,B==null||B(),U(!1),D.current=setTimeout(()=>{V()},Dr))},[u,B,V]),Me=c.useCallback(ae=>{k&&za(ae+1,!0)},[k]),qe=c.useCallback(ae=>{var dt,tn;if(m.length===0)return;const $e=(ae%m.length+m.length)%m.length;if($e===b)return;const Ie=m[b],Re=m[$e];ie.current+=1;const je=ie.current,ht=y==="fade"&&Xr(Ie==null?void 0:Ie.entry)!==Xr(Re==null?void 0:Re.entry),we=(dt=ue.current)==null?void 0:dt.getBoundingClientRect().height;let et,Ye;ht&&(Ye=Ze(),Xn.flushSync(()=>{de(Re.entry)}),z.current&&Ye&&(z.current.style.width=`${Ye}px`),et=(tn=z.current)==null?void 0:tn.getBoundingClientRect().height,z.current&&(z.current.style.width=""));const Je=Math.max(we??0,et??0)||void 0;me(je),he(b),be(!0),F($e),Me($e),ve.current=$e,ht?(We(),Je&&f(Je),Ye&&j(Ye),Y((Ie==null?void 0:Ie.entryIndex)??null),x(!0),ge.current=Re.entryIndex,oe.current=setTimeout(()=>{Y(null),x(!1),f(void 0),j(void 0),de(null),oe.current=null},wo)):(We(),Y(null),x(!1),f(void 0),j(void 0),de(null),ge.current=Re.entryIndex)},[b,We,Ze,m,Me,y]),Xe=ae=>{var je;if(!ee||m.length<=1||ae.button!==0&&ae.pointerType==="mouse"||ae.target.closest("[data-controls]"))return;const Ie=(je=X.current)==null?void 0:je.getBoundingClientRect(),Re=Ie?Ie.left+Ie.width/2:window.innerWidth/2;ae.clientX<Re?qe(b-1):qe(b+1)};c.useEffect(()=>{_e.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const ae=requestAnimationFrame(()=>{U(!0),requestAnimationFrame(()=>{Ce.current?Ce.current.focus():X.current&&X.current.focus()})}),$e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{cancelAnimationFrame(ae),document.body.style.overflow=$e,D.current&&clearTimeout(D.current),oe.current&&clearTimeout(oe.current);const Ie=_e.current;Ie&&document.contains(Ie)&&Ie.focus()}},[]),c.useEffect(()=>{var ae;y!=="fade"&&(ge.current=((ae=m[b])==null?void 0:ae.entryIndex)??0,We(),Y(null),x(!1),f(void 0),j(void 0))},[b,We,m,y]),c.useEffect(()=>{const ae=$e=>{if($e.key==="Escape"){Ne();return}if($e.key==="ArrowLeft"&&m.length>1){qe(b-1);return}if($e.key==="ArrowRight"&&m.length>1){qe(b+1);return}if($e.key==="Tab"&&X.current){const Ie=X.current.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'),Re=Array.from(Ie).filter(et=>!et.closest('[aria-hidden="true"]'));if(Re.length===0)return;const je=Re[0],ht=Re[Re.length-1],we=document.activeElement;$e.shiftKey?(we===je||!X.current.contains(we))&&($e.preventDefault(),ht.focus()):(we===ht||!X.current.contains(we))&&($e.preventDefault(),je.focus())}};return window.addEventListener("keydown",ae),()=>window.removeEventListener("keydown",ae)},[qe,Ne,b,m.length]),c.useLayoutEffect(()=>{We(),ie.current=0,me(0),he(null),be(!1),Y(null),x(!1),f(void 0),j(void 0),de(null),F(ae=>{const $e=Math.max(0,m.length-1);return Math.min(ae,$e)})},[We,t.length,n,m.length]),c.useLayoutEffect(()=>{var ae;ve.current=E,ge.current=((ae=m[E])==null?void 0:ae.entryIndex)??0,F(E)},[E,m.length]);const Pe=te!==null?t[te]:null,Ve=q!==null?m[q]:null,ct=!!($!=null&&$.title1||$!=null&&$.title2||$!=null&&$.title3||Pe!=null&&Pe.title1||Pe!=null&&Pe.title2||Pe!=null&&Pe.title3),pt=Mp(n,m,t),rt=!!I,ot={gap:R},Z=pt&&rt?{gap:T}:void 0,Q=(ae,$e,Ie=!1)=>{const Re=qr($e),je=`calc(-0.5 * (${Re} + ${$e}))`;return r.jsx("div",{"data-controls":ae,"data-controls-axis":"x",...Ie?{"data-controls-reverse":"true"}:void 0,style:{position:"absolute",top:0,right:je,width:Re,height:"100%",pointerEvents:"auto",zIndex:3}})},ce=(ae,$e=!1)=>{if(!ae)return null;const Ie=[ae.title1?{className:`${e}-title1`,style:w,text:ae.title1}:null,ae.title2?{className:`${e}-title2`,style:N,text:ae.title2}:null,ae.title3?{className:`${e}-title3`,style:_,text:ae.title3}:null].filter(Re=>Re!==null);return Ie.map((Re,je)=>r.jsxs("div",{className:`${e}-title-cell`,children:[r.jsx("p",{className:Re.className,style:{...Re.style,maxWidth:h},children:Re.text}),$e&&K&&je<Ie.length-1?Q("titlesGap",R):null]},Re.className))},se=ae=>{const $e=!ae.objectFit&&Vt(i);return{className:`${e}-slide-image-cell${$e?` ${e}-slide-image-cell-cover`:""}`,style:{maxWidth:s,maxHeight:d,...$e?{"--image-aspect-ratio":qi(i)}:{}}}},Le=ae=>ae.objectFit?{className:`${e}-slide-image ${e}-slide-image-custom`,style:{"--image-object-fit":ae.objectFit}}:Vt(i)?{className:`${e}-slide-image ${e}-slide-image-cover`}:{className:`${e}-slide-image ${e}-slide-image-fit`},Oe=ae=>{if(ae.length===0)return null;const $e=ae.length>1,Ie=qr(l),Re=`calc(-0.5 * (${Ie} + ${l}))`;if(ae.length===1){const je=ae[0];return r.jsx("div",{...se(je),children:r.jsx("img",{...Le(je),src:je.url,alt:je.name??"",draggable:!1})})}return r.jsx("div",{className:`${e}-slide-inner`,style:$e?{gap:l}:void 0,children:ae.map((je,ht)=>r.jsxs("div",{...se(je),children:[r.jsx("img",{...Le(je),src:je.url,alt:je.name??"",draggable:!1}),K&&$e&&ht<ae.length-1&&r.jsx("div",{"data-controls":"imageGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:Re,width:Ie,height:"100%",pointerEvents:"auto",zIndex:3}})]},`${je.url}-${ht}`))})};return r.jsxs("div",{ref:X,"data-selection":"none",className:`${e}-lightbox${a?` ${e}-lightbox-editor`:""}${u?` ${e}-lightbox-edit-mode`:""}`,onClick:Ne,role:"dialog","aria-modal":"true","aria-label":"Journal gallery",tabIndex:rt?void 0:-1,style:{opacity:O?1:0,transition:`opacity ${Dr}ms ease`,pointerEvents:O?"auto":"none"},children:[r.jsx("div",{className:`${e}-lightbox-backdrop`,style:{backgroundColor:o}}),r.jsx("div",{className:`${e}-lightbox-content`,onClick:ae=>ae.stopPropagation(),children:r.jsx("div",{className:`${e}-lightbox-strip`,"data-desktop-nav":ee&&m.length>1?"true":"false",onPointerUp:ee?Xe:void 0,children:r.jsxs("div",{className:`${e}-slide-stack`,children:[Ve&&pe?r.jsx("div",{className:`${e}-slide-layer-out ${e}-slide-fade-out`,onAnimationEnd:ae=>{ae.target===ae.currentTarget&&ze(J)},children:r.jsx("div",{className:`${e}-slide-area`,children:Oe(Ve.images)})},`slide-out-${J}`):null,r.jsx("div",{className:`${e}-slide-layer-in${pe?` ${e}-slide-fade-in`:""}`,children:r.jsx("div",{className:`${e}-slide-area`,children:M?Oe(M.images):null})},`slide-in-${J}-${b}`)]})})}),r.jsxs("div",{className:`${e}-lightbox-chrome`,style:{width:"100%",height:"100%"},children:[r.jsx("div",{"data-controls":K?"contentMarginTop":void 0,className:K?`${e}-control`:void 0,style:{height:C,width:"100%"}}),r.jsxs("div",{style:{display:"flex",flexDirection:"row",width:"100%"},children:[r.jsx("div",{"data-controls":K?"contentMarginLeft":void 0,"data-controls-axis":K?"x":void 0,className:K?`${e}-control`:void 0,style:{width:P,flexShrink:0}}),r.jsxs("div",{className:`${e}-lightbox-content-area`,children:[ct&&r.jsx("div",{className:`${e}-text-bar-cell`,children:r.jsx("div",{className:`${e}-titles-row`,style:ot,children:y==="fade"?r.jsxs(r.Fragment,{children:[r.jsx("div",{ref:z,className:`${e}-titles-stack`,style:{...ot,position:"absolute",visibility:"hidden",pointerEvents:"none",left:0,right:0,top:0,width:"100%",height:"auto"},"aria-hidden":"true",children:ce(ne||$,!1)}),r.jsxs("div",{ref:ue,className:`${e}-titles-stack`,style:{...ot,...fe&&G?{minHeight:G}:void 0,...fe&&H?{width:H,maxWidth:"100%"}:void 0,...fe?{overflow:"hidden"}:void 0},children:[Pe&&fe?r.jsx("div",{className:`${e}-titles-layer-out ${e}-titles-fade-out`,style:ot,children:ce(Pe)}):null,r.jsx("div",{className:`${e}-titles-layer-in${fe?` ${e}-titles-layer-in-fading ${e}-titles-fade-in`:""}`,style:ot,children:ce($,!0)})]})]}):ce($,!0)})}),r.jsxs("div",{className:`${e}-lightbox-persistent-controls`,style:Z,children:[pt&&r.jsxs("div",{className:`${e}-text-bar-cell`,children:[r.jsx("span",{className:`${e}-entry-counter`,style:W,"aria-live":"polite","aria-atomic":"true",children:Ap(m,b,n,t)}),K&&rt?Q("countCloseGap",T,!0):null]}),rt&&r.jsx("div",{className:`${e}-close-icon`,style:{width:L.scalingValue(S??0,a),height:L.scalingValue(S??0,a),"--close-icon-hover-color":g},children:r.jsx("button",{ref:Ce,type:"button",className:`${e}-close-icon-inner`,onClick:Ne,"aria-label":"Close",children:r.jsx(At,{url:I??"",fill:v,hoverFill:g,className:`${e}-close-icon-img`})})})]})]}),r.jsx("div",{"data-controls":K?"contentMarginRight":void 0,"data-controls-axis":K?"x":void 0,"data-controls-reverse":K?"":void 0,className:K?`${e}-control`:void 0,style:{width:A,flexShrink:0}})]})]})]})},ri=["title1","title2","title3","count"];function Ke(e,t){return`${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`}const Fp={title1:"1",title2:"2",title3:"3",count:"Count"};function Wp(e){return[Ke(e,"fontFamily"),Ke(e,"fontSettings"),{type:"row",items:[Ke(e,"fontSize"),Ke(e,"lineHeight"),Ke(e,"letterSpacing"),Ke(e,"wordSpacing")]},Ke(e,"textAlign"),Ke(e,"textAppearance")]}function Np(){return{type:"tab",id:"journalTextStyle",tabs:Object.fromEntries(ri.map(e=>[Fp[e],Wp(e)]))}}const Hp={title1:"title1Color",title2:"title2Color",title3:"title3Color",count:"countColor"},Bp={title1:.02,title2:.02,title3:.02,count:.017};function vi(e,t){const n=i=>{const o=Ke(t,i);return e[o]};return{fontFamily:n("fontFamily")??"Arial",fontSettings:n("fontSettings")??{fontWeight:400,fontStyle:"normal"},fontSize:n("fontSize"),lineHeight:n("lineHeight"),letterSpacing:n("letterSpacing")??0,wordSpacing:n("wordSpacing")??0,textAlign:n("textAlign")??"left",textAppearance:n("textAppearance"),color:e[Hp[t]]}}function bi(e,t,n){var o,l;const i={fontSettings:{fontFamily:t.fontFamily,fontWeight:((o=t.fontSettings)==null?void 0:o.fontWeight)??400,fontStyle:((l=t.fontSettings)==null?void 0:l.fontStyle)??"normal"},fontSize:t.fontSize??Bp[e],lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,wordSpacing:t.wordSpacing,textAlign:t.textAlign,textAppearance:t.textAppearance,color:t.color??"#ffffff"};return ut(i,n)}const Op=({settings:e,content:t,isEditor:n,isEditMode:i,isPreviewMode:o,portalId:l})=>{const{prefix:s}=L.useScopedStyles(),{cover:d,coverFit:a,type:u,backgroundColor:p,imageGap:I,maxWidth:S,maxHeight:v,textMaxWidth:g,textTransition:h,titlesGap:R,countCloseGap:T,closeIcon:y,closeIconMaxWidth:w,closeIconColor:N,closeIconHoverColor:_,contentMarginTop:W,contentMarginLeft:C,contentMarginRight:P}=e,A=q=>L.scalingValue(q,n??!1),E=bi("title1",vi(e,"title1"),n),k=bi("title2",vi(e,"title2"),n),B=bi("title3",vi(e,"title3"),n),V=bi("count",vi(e,"count"),n),K=c.useRef(null),[ee,m]=c.useState(!1),[b,F]=c.useState(0),M=c.useRef(!1),$=c.useRef(!1),O=c.useRef(!1),U=c.useMemo(()=>(t??[]).filter(q=>Pn(q).length>0),[t]),te=!n||!!o,Y=c.useCallback(()=>{te&&(O.current=!0,Lp($.current),$.current=!1)},[te]),fe=(q=0)=>{if(i||U.length===0)return;const he=Ei(U,u),pe=Math.max(0,Math.min(q,he.length-1));if(F(pe),te){const be=Va();za(pe+1,be),$.current=!be}m(!0)},x=c.useCallback(()=>{m(!1),O.current=!1},[]);return c.useEffect(()=>{if(!te||M.current)return;M.current=!0;const q=Kr();if(!q)return;const he=Ur(q,Ei(U,u).length);he<0||(F(he),m(!0))},[U,te,u]),c.useEffect(()=>{if(!te)return;const q=()=>{if(O.current){O.current=!1,m(!1);return}const he=Kr();if(!he){m(!1);return}const pe=Ur(he,Ei(U,u).length);if(pe<0){m(!1);return}$.current=!1,F(pe),m(!0)};return window.addEventListener("popstate",q),()=>window.removeEventListener("popstate",q)},[U,te,u]),r.jsxs(r.Fragment,{children:[r.jsxs("div",{ref:K,className:`${s}-wrapper`,children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:Ep(s)}}),d?r.jsx("button",{type:"button",className:`${s}-cover ${Vt(a)?`${s}-ratio-wrapper-cover`:`${s}-ratio-wrapper-fit`}`,onClick:()=>fe(),style:{display:"block",padding:0,border:"none",background:"transparent",...Vt(a)?{"--image-aspect-ratio":qi(a)}:{}},"aria-label":"Open journal gallery",children:r.jsx("img",{className:`${s}-cover-image ${Vt(a)?`${s}-cover-image-cover`:`${s}-cover-image-fit`}`,src:d,alt:"cover"})}):null]}),ee&&typeof document<"u"&&(()=>{const q=(l?document.getElementById(l):null)??document.body;return Xn.createPortal(r.jsx(kp,{prefix:s,entries:U,journalType:u,coverFit:a,backgroundColor:p,imageGap:A(I??0),slideMaxWidth:`${S}%`,slideMaxHeight:`${v}%`,textMaxWidth:A(g??.4),titlesGap:A(R??0),countCloseGap:A(T??0),textTransition:h,title1Style:E,title2Style:k,title3Style:B,countStyle:V,contentMarginTop:A(W??0),contentMarginLeft:A(C??0),contentMarginRight:A(P??0),closeIcon:y,closeIconMaxWidth:w,closeIconColor:N,closeIconHoverColor:_,isEditor:n,isEditMode:i,isPreviewMode:o,initialSlideIndex:b,enableUrlSync:te,onBeforeClose:Y,onClose:x}),q)})()]})},jp=`import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
10622
+ `}const Ip=20,Rp=2,qr=e=>`max(${e}, ${Ip}px)`,Pn=e=>((e==null?void 0:e.image)??[]).slice(0,Rp),Da=e=>e.reduce((t,n)=>t+Pn(n).length,0),Pp=(e,t)=>{let n=1;for(let o=0;o<t;o++)n+=Pn(e[o]).length;const i=Pn(e[t]).length;return{start:n,end:n+i-1}},_p=(e,t)=>{const n=Da(e),{start:i,end:o}=Pp(e,t);return i===o?`${i} / ${n}`:`${i}-${o} / ${n}`},Ei=(e,t)=>t==="B"?e.flatMap((n,i)=>Pn(n).map(o=>({entry:n,entryIndex:i,images:[o]}))):e.map((n,i)=>({entry:n,entryIndex:i,images:Pn(n)})),Ap=(e,t,n,i)=>{var l;if(n==="B")return`${t+1} / ${e.length}`;const o=((l=e[t])==null?void 0:l.entryIndex)??0;return _p(i,o)},Xr=e=>e?`${e.title1??""}|${e.title2??""}|${e.title3??""}`:"",Mp=(e,t,n)=>e==="B"?t.length>1:Da(n)>1,kp=({prefix:e,entries:t,journalType:n,coverFit:i,backgroundColor:o,imageGap:l,slideMaxWidth:s,slideMaxHeight:d,isEditor:a,isEditMode:u,isPreviewMode:p,closeIcon:I,closeIconMaxWidth:S,closeIconColor:v,closeIconHoverColor:g,textMaxWidth:h,titlesGap:R,countCloseGap:T,textTransition:y,title1Style:w,title2Style:N,title3Style:_,countStyle:W,contentMarginTop:C,contentMarginLeft:P,contentMarginRight:A,initialSlideIndex:E=0,enableUrlSync:k=!1,onBeforeClose:B,onClose:V})=>{const K=!!u,ee=!a||!!p,m=c.useMemo(()=>Ei(t,n),[t,n]),[b,F]=c.useState(E),M=m[b],$=M==null?void 0:M.entry,[O,U]=c.useState(!1),[te,Y]=c.useState(null),[fe,x]=c.useState(!1),[q,he]=c.useState(null),[pe,be]=c.useState(!1),[J,me]=c.useState(0),[G,f]=c.useState(),[H,j]=c.useState(),[ne,de]=c.useState(null),oe=c.useRef(null),ie=c.useRef(0),ge=c.useRef(0),ve=c.useRef(0),Se=c.useRef(!1),D=c.useRef(null),ue=c.useRef(null),z=c.useRef(null),X=c.useRef(null),Ce=c.useRef(null),_e=c.useRef(null),Ze=c.useCallback(()=>{const ae=ue.current;if(!ae)return;const $e=ae.closest(`.${e}-lightbox-content-area`);if(!$e)return ae.getBoundingClientRect().width;let Ie=0;return Array.from($e.children).forEach(Re=>{Re instanceof HTMLElement&&(Re.contains(ae)||(Ie+=Re.getBoundingClientRect().width))}),$e.getBoundingClientRect().width-Ie},[e]),We=c.useCallback(()=>{oe.current&&(clearTimeout(oe.current),oe.current=null)},[]),ze=c.useCallback(ae=>{ae===ie.current&&(he(null),be(!1))},[]),Ne=c.useCallback(()=>{u||Se.current||(Se.current=!0,B==null||B(),U(!1),D.current=setTimeout(()=>{V()},Dr))},[u,B,V]),Me=c.useCallback(ae=>{k&&za(ae+1,!0)},[k]),qe=c.useCallback(ae=>{var dt,tn;if(m.length===0)return;const $e=(ae%m.length+m.length)%m.length;if($e===b)return;const Ie=m[b],Re=m[$e];ie.current+=1;const je=ie.current,ht=y==="fade"&&Xr(Ie==null?void 0:Ie.entry)!==Xr(Re==null?void 0:Re.entry),we=(dt=ue.current)==null?void 0:dt.getBoundingClientRect().height;let et,Ye;ht&&(Ye=Ze(),Xn.flushSync(()=>{de(Re.entry)}),z.current&&Ye&&(z.current.style.width=`${Ye}px`),et=(tn=z.current)==null?void 0:tn.getBoundingClientRect().height,z.current&&(z.current.style.width=""));const Je=Math.max(we??0,et??0)||void 0;me(je),he(b),be(!0),F($e),Me($e),ve.current=$e,ht?(We(),Je&&f(Je),Ye&&j(Ye),Y((Ie==null?void 0:Ie.entryIndex)??null),x(!0),ge.current=Re.entryIndex,oe.current=setTimeout(()=>{Y(null),x(!1),f(void 0),j(void 0),de(null),oe.current=null},wo)):(We(),Y(null),x(!1),f(void 0),j(void 0),de(null),ge.current=Re.entryIndex)},[b,We,Ze,m,Me,y]),Xe=ae=>{var je;if(!ee||m.length<=1||ae.button!==0&&ae.pointerType==="mouse"||ae.target.closest("[data-controls]"))return;const Ie=(je=X.current)==null?void 0:je.getBoundingClientRect(),Re=Ie?Ie.left+Ie.width/2:window.innerWidth/2;ae.clientX<Re?qe(b-1):qe(b+1)};c.useEffect(()=>{_e.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const ae=requestAnimationFrame(()=>{U(!0),requestAnimationFrame(()=>{Ce.current?Ce.current.focus():X.current&&X.current.focus()})}),$e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{cancelAnimationFrame(ae),document.body.style.overflow=$e,D.current&&clearTimeout(D.current),oe.current&&clearTimeout(oe.current);const Ie=_e.current;Ie&&document.contains(Ie)&&Ie.focus()}},[]),c.useEffect(()=>{var ae;y!=="fade"&&(ge.current=((ae=m[b])==null?void 0:ae.entryIndex)??0,We(),Y(null),x(!1),f(void 0),j(void 0))},[b,We,m,y]),c.useEffect(()=>{const ae=$e=>{if($e.key==="Escape"){Ne();return}if($e.key==="ArrowLeft"&&m.length>1){qe(b-1);return}if($e.key==="ArrowRight"&&m.length>1){qe(b+1);return}if($e.key==="Tab"&&X.current){const Ie=X.current.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'),Re=Array.from(Ie).filter(et=>!et.closest('[aria-hidden="true"]'));if(Re.length===0)return;const je=Re[0],ht=Re[Re.length-1],we=document.activeElement;$e.shiftKey?(we===je||!X.current.contains(we))&&($e.preventDefault(),ht.focus()):(we===ht||!X.current.contains(we))&&($e.preventDefault(),je.focus())}};return window.addEventListener("keydown",ae),()=>window.removeEventListener("keydown",ae)},[qe,Ne,b,m.length]),c.useLayoutEffect(()=>{We(),ie.current=0,me(0),he(null),be(!1),Y(null),x(!1),f(void 0),j(void 0),de(null),F(ae=>{const $e=Math.max(0,m.length-1);return Math.min(ae,$e)})},[We,t.length,n,m.length]),c.useLayoutEffect(()=>{var ae;ve.current=E,ge.current=((ae=m[E])==null?void 0:ae.entryIndex)??0,F(E)},[E,m.length]);const Pe=te!==null?t[te]:null,Ve=q!==null?m[q]:null,ct=!!($!=null&&$.title1||$!=null&&$.title2||$!=null&&$.title3||Pe!=null&&Pe.title1||Pe!=null&&Pe.title2||Pe!=null&&Pe.title3),pt=Mp(n,m,t),rt=!!I,ot={gap:R},Z=pt&&rt?{gap:T}:void 0,Q=(ae,$e,Ie=!1)=>{const Re=qr($e),je=`calc(-0.5 * (${Re} + ${$e}))`;return r.jsx("div",{"data-controls":ae,"data-controls-axis":"x",...Ie?{"data-controls-reverse":"true"}:void 0,style:{position:"absolute",top:0,right:je,width:Re,height:"100%",pointerEvents:"auto",zIndex:3}})},ce=(ae,$e=!1)=>{if(!ae)return null;const Ie=[ae.title1?{className:`${e}-title1`,style:w,text:ae.title1}:null,ae.title2?{className:`${e}-title2`,style:N,text:ae.title2}:null,ae.title3?{className:`${e}-title3`,style:_,text:ae.title3}:null].filter(Re=>Re!==null);return Ie.map((Re,je)=>r.jsxs("div",{className:`${e}-title-cell`,children:[r.jsx("p",{className:Re.className,style:{...Re.style,maxWidth:h},children:Re.text}),$e&&K&&je<Ie.length-1?Q("titlesGap",R):null]},Re.className))},se=ae=>{const $e=!ae.objectFit&&Vt(i);return{className:`${e}-slide-image-cell${$e?` ${e}-slide-image-cell-cover`:""}`,style:{maxWidth:s,maxHeight:d,...$e?{"--image-aspect-ratio":qi(i)}:{}}}},Le=ae=>ae.objectFit?{className:`${e}-slide-image ${e}-slide-image-custom`,style:{"--image-object-fit":ae.objectFit}}:Vt(i)?{className:`${e}-slide-image ${e}-slide-image-cover`}:{className:`${e}-slide-image ${e}-slide-image-fit`},Oe=ae=>{if(ae.length===0)return null;const $e=ae.length>1,Ie=qr(l),Re=`calc(-0.5 * (${Ie} + ${l}))`;if(ae.length===1){const je=ae[0];return r.jsx("div",{...se(je),children:r.jsx("img",{...Le(je),src:je.url,alt:je.name??"",draggable:!1})})}return r.jsx("div",{className:`${e}-slide-inner`,style:$e?{gap:l}:void 0,children:ae.map((je,ht)=>r.jsxs("div",{...se(je),children:[r.jsx("img",{...Le(je),src:je.url,alt:je.name??"",draggable:!1}),K&&$e&&ht<ae.length-1&&r.jsx("div",{"data-controls":"imageGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:Re,width:Ie,height:"100%",pointerEvents:"auto",zIndex:3}})]},`${je.url}-${ht}`))})};return r.jsxs("div",{ref:X,"data-selection":"none",className:`${e}-lightbox${a?` ${e}-lightbox-editor`:""}${u?` ${e}-lightbox-edit-mode`:""}`,onClick:Ne,role:"dialog","aria-modal":"true","aria-label":"Journal gallery",tabIndex:rt?void 0:-1,style:{opacity:O?1:0,transition:`opacity ${Dr}ms ease`,pointerEvents:O?"auto":"none"},children:[r.jsx("div",{className:`${e}-lightbox-backdrop`,style:{backgroundColor:o}}),r.jsx("div",{className:`${e}-lightbox-content`,onClick:ae=>ae.stopPropagation(),children:r.jsx("div",{className:`${e}-lightbox-strip`,"data-desktop-nav":ee&&m.length>1?"true":"false",onPointerUp:ee?Xe:void 0,children:r.jsxs("div",{className:`${e}-slide-stack`,children:[Ve&&pe?r.jsx("div",{className:`${e}-slide-layer-out ${e}-slide-fade-out`,onAnimationEnd:ae=>{ae.target===ae.currentTarget&&ze(J)},children:r.jsx("div",{className:`${e}-slide-area`,children:Oe(Ve.images)})},`slide-out-${J}`):null,r.jsx("div",{className:`${e}-slide-layer-in${pe?` ${e}-slide-fade-in`:""}`,children:r.jsx("div",{className:`${e}-slide-area`,children:M?Oe(M.images):null})},`slide-in-${J}-${b}`)]})})}),r.jsxs("div",{className:`${e}-lightbox-chrome`,style:{width:"100%",height:"100%"},children:[r.jsx("div",{"data-controls":K?"contentMarginTop":void 0,className:K?`${e}-control`:void 0,style:{height:C,width:"100%"}}),r.jsxs("div",{style:{display:"flex",flexDirection:"row",width:"100%"},children:[r.jsx("div",{"data-controls":K?"contentMarginLeft":void 0,"data-controls-axis":K?"x":void 0,className:K?`${e}-control`:void 0,style:{width:P,flexShrink:0}}),r.jsxs("div",{className:`${e}-lightbox-content-area`,children:[ct&&r.jsx("div",{className:`${e}-text-bar-cell`,children:r.jsx("div",{className:`${e}-titles-row`,style:ot,children:y==="fade"?r.jsxs(r.Fragment,{children:[r.jsx("div",{ref:z,className:`${e}-titles-stack`,style:{...ot,position:"absolute",visibility:"hidden",pointerEvents:"none",left:0,right:0,top:0,width:"100%",height:"auto"},"aria-hidden":"true",children:ce(ne||$,!1)}),r.jsxs("div",{ref:ue,className:`${e}-titles-stack`,style:{...ot,...fe&&G?{minHeight:G}:void 0,...fe&&H?{width:H,maxWidth:"100%"}:void 0,...fe?{overflow:"hidden"}:void 0},children:[Pe&&fe?r.jsx("div",{className:`${e}-titles-layer-out ${e}-titles-fade-out`,style:ot,children:ce(Pe)}):null,r.jsx("div",{className:`${e}-titles-layer-in${fe?` ${e}-titles-layer-in-fading ${e}-titles-fade-in`:""}`,style:ot,children:ce($,!0)})]})]}):ce($,!0)})}),r.jsxs("div",{className:`${e}-lightbox-persistent-controls`,style:Z,children:[pt&&r.jsxs("div",{className:`${e}-text-bar-cell`,children:[r.jsx("span",{className:`${e}-entry-counter`,style:W,"aria-live":"polite","aria-atomic":"true",children:Ap(m,b,n,t)}),K&&rt?Q("countCloseGap",T,!0):null]}),rt&&r.jsx("div",{className:`${e}-close-icon`,style:{width:L.scalingValue(S??0,a),height:L.scalingValue(S??0,a),"--close-icon-hover-color":g},children:r.jsx("button",{ref:Ce,type:"button",className:`${e}-close-icon-inner`,onClick:Ne,"aria-label":"Close",children:r.jsx(At,{url:I??"",fill:v,hoverFill:g,className:`${e}-close-icon-img`})})})]})]}),r.jsx("div",{"data-controls":K?"contentMarginRight":void 0,"data-controls-axis":K?"x":void 0,"data-controls-reverse":K?"":void 0,className:K?`${e}-control`:void 0,style:{width:A,flexShrink:0}})]})]})]})},ri=["title1","title2","title3","count"];function Ke(e,t){return`${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`}const Fp={title1:"1",title2:"2",title3:"3",count:"Count"};function Wp(e){return[Ke(e,"fontFamily"),Ke(e,"fontSettings"),{type:"row",items:[Ke(e,"fontSize"),Ke(e,"lineHeight"),Ke(e,"letterSpacing"),Ke(e,"wordSpacing")]},Ke(e,"textAlign"),Ke(e,"textAppearance")]}function Np(){return{type:"tab",id:"journalTextStyle",tabs:Object.fromEntries(ri.map(e=>[Fp[e],Wp(e)]))}}const Hp={title1:"title1Color",title2:"title2Color",title3:"title3Color",count:"countColor"},Bp={title1:.02,title2:.02,title3:.02,count:.017};function yi(e,t){const n=i=>{const o=Ke(t,i);return e[o]};return{fontFamily:n("fontFamily")??"Arial",fontSettings:n("fontSettings")??{fontWeight:400,fontStyle:"normal"},fontSize:n("fontSize"),lineHeight:n("lineHeight"),letterSpacing:n("letterSpacing")??0,wordSpacing:n("wordSpacing")??0,textAlign:n("textAlign")??"left",textAppearance:n("textAppearance"),color:e[Hp[t]]}}function vi(e,t,n){var o,l;const i={fontSettings:{fontFamily:t.fontFamily,fontWeight:((o=t.fontSettings)==null?void 0:o.fontWeight)??400,fontStyle:((l=t.fontSettings)==null?void 0:l.fontStyle)??"normal"},fontSize:t.fontSize??Bp[e],lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,wordSpacing:t.wordSpacing,textAlign:t.textAlign,textAppearance:t.textAppearance,color:t.color??"#ffffff"};return ut(i,n)}const Op=({settings:e,content:t,isEditor:n,isEditMode:i,isPreviewMode:o,portalId:l})=>{const{prefix:s}=L.useScopedStyles(),{cover:d,coverFit:a,type:u,backgroundColor:p,imageGap:I,maxWidth:S,maxHeight:v,textMaxWidth:g,textTransition:h,titlesGap:R,countCloseGap:T,closeIcon:y,closeIconMaxWidth:w,closeIconColor:N,closeIconHoverColor:_,contentMarginTop:W,contentMarginLeft:C,contentMarginRight:P}=e,A=q=>L.scalingValue(q,n??!1),E=vi("title1",yi(e,"title1"),n),k=vi("title2",yi(e,"title2"),n),B=vi("title3",yi(e,"title3"),n),V=vi("count",yi(e,"count"),n),K=c.useRef(null),[ee,m]=c.useState(!1),[b,F]=c.useState(0),M=c.useRef(!1),$=c.useRef(!1),O=c.useRef(!1),U=c.useMemo(()=>(t??[]).filter(q=>Pn(q).length>0),[t]),te=!n||!!o,Y=c.useCallback(()=>{te&&(O.current=!0,Lp($.current),$.current=!1)},[te]),fe=(q=0)=>{if(i||U.length===0)return;const he=Ei(U,u),pe=Math.max(0,Math.min(q,he.length-1));if(F(pe),te){const be=Va();za(pe+1,be),$.current=!be}m(!0)},x=c.useCallback(()=>{m(!1),O.current=!1},[]);return c.useEffect(()=>{if(!te||M.current)return;M.current=!0;const q=Kr();if(!q)return;const he=Ur(q,Ei(U,u).length);he<0||(F(he),m(!0))},[U,te,u]),c.useEffect(()=>{if(!te)return;const q=()=>{if(O.current){O.current=!1,m(!1);return}const he=Kr();if(!he){m(!1);return}const pe=Ur(he,Ei(U,u).length);if(pe<0){m(!1);return}$.current=!1,F(pe),m(!0)};return window.addEventListener("popstate",q),()=>window.removeEventListener("popstate",q)},[U,te,u]),r.jsxs(r.Fragment,{children:[r.jsxs("div",{ref:K,className:`${s}-wrapper`,children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:Ep(s)}}),d?r.jsx("button",{type:"button",className:`${s}-cover ${Vt(a)?`${s}-ratio-wrapper-cover`:`${s}-ratio-wrapper-fit`}`,onClick:()=>fe(),style:{display:"block",padding:0,border:"none",background:"transparent",...Vt(a)?{"--image-aspect-ratio":qi(a)}:{}},"aria-label":"Open journal gallery",children:r.jsx("img",{className:`${s}-cover-image ${Vt(a)?`${s}-cover-image-cover`:`${s}-cover-image-fit`}`,src:d,alt:"cover"})}):null]}),ee&&typeof document<"u"&&(()=>{const q=(l?document.getElementById(l):null)??document.body;return Xn.createPortal(r.jsx(kp,{prefix:s,entries:U,journalType:u,coverFit:a,backgroundColor:p,imageGap:A(I??0),slideMaxWidth:`${S}%`,slideMaxHeight:`${v}%`,textMaxWidth:A(g??.4),titlesGap:A(R??0),countCloseGap:A(T??0),textTransition:h,title1Style:E,title2Style:k,title3Style:B,countStyle:V,contentMarginTop:A(W??0),contentMarginLeft:A(C??0),contentMarginRight:A(P??0),closeIcon:y,closeIconMaxWidth:w,closeIconColor:N,closeIconHoverColor:_,isEditor:n,isEditMode:i,isPreviewMode:o,initialSlideIndex:b,enableUrlSync:te,onBeforeClose:Y,onClose:x}),q)})()]})},jp=`import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
10622
10623
  import { createPortal, flushSync } from 'react-dom';
10623
10624
  import { CommonComponentProps } from '../props';
10624
10625
  import { scalingValue } from '../utils/scalingValue';
package/dist/index.mjs CHANGED
@@ -60,13 +60,13 @@ function Yl(e, t) {
60
60
  function Jl(e, t, n) {
61
61
  return t && Yl(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
62
62
  }
63
- var pr = "(prefers-reduced-motion: reduce)", Pn = 1, Zl = 2, An = 3, On = 4, oi = 5, Ii = 6, Ni = 7, Ql = {
63
+ var pr = "(prefers-reduced-motion: reduce)", Pn = 1, Zl = 2, An = 3, On = 4, oi = 5, Ei = 6, Ni = 7, Ql = {
64
64
  CREATED: Pn,
65
65
  MOUNTED: Zl,
66
66
  IDLE: An,
67
67
  MOVING: On,
68
68
  SCROLLING: oi,
69
- DRAGGING: Ii,
69
+ DRAGGING: Ei,
70
70
  DESTROYED: Ni
71
71
  };
72
72
  function Jt(e) {
@@ -109,7 +109,7 @@ function kt(e, t) {
109
109
  function Ho(e, t) {
110
110
  return e.indexOf(t) > -1;
111
111
  }
112
- function Pi(e, t) {
112
+ function Ii(e, t) {
113
113
  return e.push.apply(e, ai(t)), e;
114
114
  }
115
115
  function Kt(e, t, n) {
@@ -241,7 +241,7 @@ var an = Math.min, Hi = Math.max, Bi = Math.floor, Zn = Math.ceil, Tt = Math.abs
241
241
  function fa(e, t, n) {
242
242
  return Tt(e - t) < n;
243
243
  }
244
- function Ri(e, t, n, i) {
244
+ function Pi(e, t, n, i) {
245
245
  var o = an(t, n), a = Hi(t, n);
246
246
  return i ? o < e && e < a : o <= e && e <= a;
247
247
  }
@@ -485,7 +485,7 @@ function bs(e, t, n) {
485
485
  Ut(l, u), Ut(x, L), u = k(uo), L = k(Cr), Ot(l, u), Ot(x, L), Re(l, At, n.label), Re(l, Xo, n.labelledby);
486
486
  }
487
487
  function $() {
488
- x = P("." + Cr), y = si(x, "." + ls), jn(x && y, "A track/list element is missing."), Pi(d, pa(y, "." + eo + ":not(." + Wa + ")")), yn({
488
+ x = P("." + Cr), y = si(x, "." + ls), jn(x && y, "A track/list element is missing."), Ii(d, pa(y, "." + eo + ":not(." + Wa + ")")), yn({
489
489
  arrows: Zo,
490
490
  pagination: no,
491
491
  prev: Na,
@@ -622,7 +622,7 @@ function Ss(e, t, n) {
622
622
  function w(A) {
623
623
  var H = t.Controller, D = H.toIndex(A), G = H.hasFocus() ? 1 : n.perPage;
624
624
  return k(function(ee) {
625
- return Ri(ee.index, D, D + G - 1);
625
+ return Pi(ee.index, D, D + G - 1);
626
626
  });
627
627
  }
628
628
  function f(A) {
@@ -777,10 +777,10 @@ function ws(e, t, n) {
777
777
  var f = l.get().slice(), $ = f.length;
778
778
  if ($) {
779
779
  for (; f.length < w; )
780
- Pi(f, f);
781
- Pi(f.slice(-w), f.slice(0, w)).forEach(function(W, P) {
780
+ Ii(f, f);
781
+ Ii(f.slice(-w), f.slice(0, w)).forEach(function(W, P) {
782
782
  var k = P < w, S = g(W.slide, P);
783
- k ? Bo(S, f[0].slide) : li(a.list, S), Pi(r, S), l.register(S, P - w + (k ? 0 : $), W.index);
783
+ k ? Bo(S, f[0].slide) : li(a.list, S), Ii(r, S), l.register(S, P - w + (k ? 0 : $), W.index);
784
784
  });
785
785
  }
786
786
  }
@@ -932,14 +932,14 @@ function Ls(e, t, n) {
932
932
  function ee(b, U, ye) {
933
933
  if (L() || X()) {
934
934
  var me = p(b);
935
- me !== b && (U = b, b = me, ye = !1), b < 0 || b > $ ? !k && (Ri(0, b, U, !0) || Ri($, U, b, !0)) ? b = _(C(b)) : m ? b = ye ? b < 0 ? -(P % S || S) : P : b : n.rewind ? b = b < 0 ? $ : 0 : b = -1 : ye && b !== U && (b = _(C(U) + (b < U ? -1 : 1)));
935
+ me !== b && (U = b, b = me, ye = !1), b < 0 || b > $ ? !k && (Pi(0, b, U, !0) || Pi($, U, b, !0)) ? b = _(C(b)) : m ? b = ye ? b < 0 ? -(P % S || S) : P : b : n.rewind ? b = b < 0 ? $ : 0 : b = -1 : ye && b !== U && (b = _(C(U) + (b < U ? -1 : 1)));
936
936
  } else
937
937
  b = -1;
938
938
  return b;
939
939
  }
940
940
  function p(b) {
941
941
  if (g && n.trimSpace === "move" && b !== f)
942
- for (var U = c(); U === d(b, !0) && Ri(b, 0, e.length - 1, !n.rewind); )
942
+ for (var U = c(); U === d(b, !0) && Pi(b, 0, e.length - 1, !n.rewind); )
943
943
  b < f ? --b : ++b;
944
944
  return b;
945
945
  }
@@ -1161,7 +1161,7 @@ function Bs(e, t, n) {
1161
1161
  }
1162
1162
  }
1163
1163
  function ee(j) {
1164
- if (r.is(Ii) || (r.set(Ii), a(Ca)), j.cancelable)
1164
+ if (r.is(Ei) || (r.set(Ei), a(Ca)), j.cancelable)
1165
1165
  if (S) {
1166
1166
  d.translate($ + ye(X(j)));
1167
1167
  var h = ve(j) > $r, N = I !== (I = f());
@@ -1169,7 +1169,7 @@ function Bs(e, t, n) {
1169
1169
  } else B(j) && (S = C(j), Gt(j));
1170
1170
  }
1171
1171
  function p(j) {
1172
- r.is(Ii) && (r.set(An), a(wa)), S && (_(j), Gt(j)), c(A, po, ee), c(A, mo, p), S = !1;
1172
+ r.is(Ei) && (r.set(An), a(wa)), S && (_(j), Gt(j)), c(A, po, ee), c(A, mo, p), S = !1;
1173
1173
  }
1174
1174
  function v(j) {
1175
1175
  !T && R && Gt(j, !0);
@@ -1277,7 +1277,7 @@ function zs(e, t, n) {
1277
1277
  disable: m
1278
1278
  };
1279
1279
  }
1280
- var Gn = zo + "-lazy", _i = Gn + "-srcset", Ds = "[" + Gn + "], [" + _i + "]";
1280
+ var Gn = zo + "-lazy", Ri = Gn + "-srcset", Ds = "[" + Gn + "], [" + Ri + "]";
1281
1281
  function Vs(e, t, n) {
1282
1282
  var i = it(e), o = i.on, a = i.off, l = i.bind, c = i.emit, r = n.lazyLoad === "sequential", d = [zn, xn], u = [];
1283
1283
  function L() {
@@ -1289,7 +1289,7 @@ function Vs(e, t, n) {
1289
1289
  function y() {
1290
1290
  t.Slides.forEach(function(f) {
1291
1291
  Oo(f.slide, Ds).forEach(function($) {
1292
- var W = Wt($, Gn), P = Wt($, _i);
1292
+ var W = Wt($, Gn), P = Wt($, Ri);
1293
1293
  if (W !== $.src || P !== $.srcset) {
1294
1294
  var k = n.classes.spinner, S = $.parentElement, I = si(S, "." + k) || Rn("span", k, S);
1295
1295
  u.push([$, f, I]), $.src || Jn($, "none");
@@ -1305,7 +1305,7 @@ function Vs(e, t, n) {
1305
1305
  }
1306
1306
  function g(f) {
1307
1307
  var $ = f[0];
1308
- Ot(f[1].slide, _o), l($, "load error", Je(E, f)), Re($, "src", Wt($, Gn)), Re($, "srcset", Wt($, _i)), zt($, Gn), zt($, _i);
1308
+ Ot(f[1].slide, _o), l($, "load error", Je(E, f)), Re($, "src", Wt($, Gn)), Re($, "srcset", Wt($, Ri)), zt($, Gn), zt($, Ri);
1309
1309
  }
1310
1310
  function E(f, $) {
1311
1311
  var W = f[0], P = f[1];
@@ -15250,7 +15250,7 @@ function mu({
15250
15250
  }
15251
15251
  );
15252
15252
  }
15253
- function Ai(e) {
15253
+ function _i(e) {
15254
15254
  return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
15255
15255
  }
15256
15256
  function gu(e) {
@@ -15281,7 +15281,7 @@ function fu(e) {
15281
15281
  .${e}-wrapper {
15282
15282
  display: grid;
15283
15283
  align-items: start;
15284
- min-height: ${Ai(48)};
15284
+ min-height: ${_i(48)};
15285
15285
  position: relative;
15286
15286
  overflow: visible;
15287
15287
  box-sizing: border-box;
@@ -15403,7 +15403,7 @@ a.${e}-list-item {
15403
15403
  flex-shrink: 0;
15404
15404
  overflow: visible;
15405
15405
  box-sizing: border-box;
15406
- min-width: ${Ai(50)};
15406
+ min-width: ${_i(50)};
15407
15407
  position: relative;
15408
15408
  display: flex;
15409
15409
  align-items: flex-start;
@@ -15411,7 +15411,7 @@ a.${e}-list-item {
15411
15411
 
15412
15412
  .${e}-list-col-last {
15413
15413
  flex: 1 1 auto;
15414
- min-width: ${Ai(50)};
15414
+ min-width: ${_i(50)};
15415
15415
  }
15416
15416
 
15417
15417
  .${e}-list-col-title {
@@ -16060,7 +16060,7 @@ function Ja(e, t, n) {
16060
16060
  paddingRight: n * a
16061
16061
  };
16062
16062
  }
16063
- function Mi(e, t, n) {
16063
+ function Ai(e, t, n) {
16064
16064
  const i = sr(e, t, n);
16065
16065
  if (e <= 0)
16066
16066
  return [];
@@ -16163,7 +16163,7 @@ function ju(e, t, n) {
16163
16163
  const o = Xa(n == null ? void 0 : n.designWidth), a = e.columns, l = t.columns, c = Kn(e), r = Kn(t), d = e.type === "b" || e.type === void 0 && t.type === "b", u = typeof a == "number" ? a : typeof l == "number" ? l : ln.length, L = ($) => {
16164
16164
  if (d)
16165
16165
  return $;
16166
- const W = Ci({ ...t, ...$ }), P = Kn($), k = Mi(u, P, W), S = Bu(u, k, {
16166
+ const W = Ci({ ...t, ...$ }), P = Kn($), k = Ai(u, P, W), S = Bu(u, k, {
16167
16167
  ...t,
16168
16168
  ...$
16169
16169
  });
@@ -16191,11 +16191,11 @@ function ju(e, t, n) {
16191
16191
  const $ = typeof e.textPaddingLR == "number" ? e.textPaddingLR : 0, W = Math.max(0, (c - o) / 2);
16192
16192
  return $ > W ? { ...e, textPaddingLR: W } : e;
16193
16193
  }
16194
- const m = Ci({ ...t, ...e }), g = Mi(
16194
+ const m = Ci({ ...t, ...e }), g = Ai(
16195
16195
  u,
16196
16196
  r,
16197
16197
  Ci(t)
16198
- ), w = Mi(
16198
+ ), w = Ai(
16199
16199
  u,
16200
16200
  c,
16201
16201
  m
@@ -16386,7 +16386,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
16386
16386
  () => sr(u, Oe, q),
16387
16387
  [u, Oe, q]
16388
16388
  ), Qe = je(
16389
- () => Mi(u, Oe, q),
16389
+ () => Ai(u, Oe, q),
16390
16390
  [u, Oe, q]
16391
16391
  ), Me = je(
16392
16392
  () => Ke.map((re, Ce) => Ja(
@@ -17050,7 +17050,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
17050
17050
  );
17051
17051
  })(),
17052
17052
  X && K && (() => {
17053
- const re = Ai(K.widthPx), Ce = {
17053
+ const re = _i(K.widthPx), Ce = {
17054
17054
  width: re,
17055
17055
  height: "auto",
17056
17056
  maxHeight: re,
@@ -20287,7 +20287,7 @@ function op(e, t, n) {
20287
20287
  const i = (a) => n === void 0 ? !0 : n === "common" ? Zr.has(a) : !Zr.has(a), o = {};
20288
20288
  return i("verticalAlign") && t.verticalAlign !== void 0 && (o[`${e}VerticalAlign`] = ar(t.verticalAlign)), i("textFontFamily") && t.textFontFamily !== void 0 && (o[He(e, "textFontFamily")] = t.textFontFamily), i("textFontSettings") && t.textFontSettings !== void 0 && (o[He(e, "textFontSettings")] = t.textFontSettings), i("textFontSize") && t.textFontSize !== void 0 && (o[He(e, "textFontSize")] = t.textFontSize), i("textLineHeight") && t.textLineHeight !== void 0 && (o[He(e, "textLineHeight")] = t.textLineHeight), i("textLetterSpacing") && t.textLetterSpacing !== void 0 && (o[He(e, "textLetterSpacing")] = t.textLetterSpacing), i("textWordSpacing") && t.textWordSpacing !== void 0 && (o[He(e, "textWordSpacing")] = t.textWordSpacing), i("textTextAlign") && t.textTextAlign !== void 0 && (o[He(e, "textTextAlign")] = t.textTextAlign), i("textTextAppearance") && t.textTextAppearance !== void 0 && (o[He(e, "textTextAppearance")] = t.textTextAppearance), o;
20289
20289
  }
20290
- function ki(e = {}, t) {
20290
+ function Mi(e = {}, t) {
20291
20291
  return rr.reduce(
20292
20292
  (n, i) => ({
20293
20293
  ...n,
@@ -20296,7 +20296,7 @@ function ki(e = {}, t) {
20296
20296
  {}
20297
20297
  );
20298
20298
  }
20299
- const rp = ki(), ap = _u();
20299
+ const rp = Mi(), ap = _u();
20300
20300
  function Qa(e) {
20301
20301
  return [
20302
20302
  He(e, "textFontFamily"),
@@ -20704,7 +20704,7 @@ const cp = [
20704
20704
  textColor: "#000000",
20705
20705
  textHoverColor: "#FFFFFF",
20706
20706
  ...rp,
20707
- ...ki({}, "common"),
20707
+ ...Mi({}, "common"),
20708
20708
  backgroundColor: "#FFFFFF00",
20709
20709
  dividerColor: "#373737",
20710
20710
  backgroundHoverColor: "#000000",
@@ -20735,7 +20735,7 @@ const cp = [
20735
20735
  textStroke: 3e-3,
20736
20736
  textCorners: 0.192,
20737
20737
  textPadding: { top: 0.0373, right: 0.0373, bottom: 0.0373, left: 0.0373 },
20738
- ...ki({
20738
+ ...Mi({
20739
20739
  default: {
20740
20740
  textFontSize: 0.0906,
20741
20741
  textLineHeight: 0.0426,
@@ -20765,7 +20765,7 @@ const cp = [
20765
20765
  textStroke: 1e-3,
20766
20766
  textCorners: 0.05,
20767
20767
  textPadding: { top: 0.01, right: 0.01, bottom: 0.01, left: 0.01 },
20768
- ...ki({
20768
+ ...Mi({
20769
20769
  default: {
20770
20770
  textFontSize: 0.0333,
20771
20771
  textLineHeight: 0.0333,
@@ -20912,7 +20912,7 @@ const cp = [
20912
20912
  }, Yt = (e) => e.display === "Cover", ro = (e) => {
20913
20913
  const t = e.ratioValue ?? "1:1", n = e.reversed ?? !1, [i, o] = t.split(":").map(Number);
20914
20914
  return `${n ? o : i} / ${n ? i : o}`;
20915
- }, Vi = 300, gp = 3e3, wi = 42;
20915
+ }, Vi = 300, gp = 3e3, ki = 42;
20916
20916
  function hp(e) {
20917
20917
  return `
20918
20918
  .${e}-wrapper {
@@ -21109,16 +21109,15 @@ function hp(e) {
21109
21109
 
21110
21110
  .${e}-thumb-image {
21111
21111
  display: block;
21112
- width: ${wi}px;
21113
- height: ${wi}px;
21112
+ height: ${ki}px;
21114
21113
  object-fit: contain;
21115
21114
  transition: filter 0.2s ease;
21116
21115
  }
21117
21116
 
21118
21117
  .${e}-thumb-image-cover {
21119
21118
  aspect-ratio: var(--image-aspect-ratio);
21120
- max-width: ${wi}px;
21121
- max-height: ${wi}px;
21119
+ max-width: ${ki}px;
21120
+ max-height: ${ki}px;
21122
21121
  width: auto;
21123
21122
  height: auto;
21124
21123
  object-fit: cover;
@@ -21343,7 +21342,7 @@ function wo(e, t, n) {
21343
21342
  };
21344
21343
  return vt(i, n);
21345
21344
  }
21346
- const $p = 1, Qr = 0.15, wp = 3, Tp = 20, Ti = (e) => `max(${e}, ${Tp}px)`, Lp = ({
21345
+ const $p = 1, Qr = 0.15, wp = 3, Tp = 20, wi = (e) => `max(${e}, ${Tp}px)`, Lp = ({
21347
21346
  prefix: e,
21348
21347
  images: t,
21349
21348
  type: n,
@@ -21379,7 +21378,7 @@ const $p = 1, Qr = 0.15, wp = 3, Tp = 20, Ti = (e) => `max(${e}, ${Tp}px)`, Lp =
21379
21378
  onClose: p
21380
21379
  }) => {
21381
21380
  const v = !!d, M = !d, _ = !d && (!r || !!u), C = _, B = _, K = Yt(w), te = K ? { "--image-aspect-ratio": ro(w) } : void 0, X = (Z, Q, ce = !1) => {
21382
- const se = Ti(Q), Pe = `calc(-0.5 * (${se} + ${Q}))`;
21381
+ const se = wi(Q), Pe = `calc(-0.5 * (${se} + ${Q}))`;
21383
21382
  return /* @__PURE__ */ s(
21384
21383
  "div",
21385
21384
  {
@@ -21676,7 +21675,7 @@ const $p = 1, Qr = 0.15, wp = 3, Tp = 20, Ti = (e) => `max(${e}, ${Tp}px)`, Lp =
21676
21675
  style: { gap: c },
21677
21676
  "data-mouse-dragging": N ? "true" : "false",
21678
21677
  children: h.map((Z, Q) => {
21679
- const ce = Z.image.objectFit ?? "contain", se = Q % t.length, Pe = Math.floor(Q / t.length), Ve = Ti(c), ae = `calc(-0.5 * (${Ve} + ${c}))`;
21678
+ const ce = Z.image.objectFit ?? "contain", se = Q % t.length, Pe = Math.floor(Q / t.length), Ve = wi(c), ae = `calc(-0.5 * (${Ve} + ${c}))`;
21680
21679
  return /* @__PURE__ */ J(
21681
21680
  "div",
21682
21681
  {
@@ -21721,7 +21720,7 @@ const $p = 1, Qr = 0.15, wp = 3, Tp = 20, Ti = (e) => `max(${e}, ${Tp}px)`, Lp =
21721
21720
  }
21722
21721
  ),
21723
21722
  t.length > 1 && E === "on" && (() => {
21724
- const Z = Ti(l), Q = `calc(-0.5 * (${l} + ${Z}))`;
21723
+ const Z = wi(l), Q = `calc(-0.5 * (${l} + ${Z}))`;
21725
21724
  return /* @__PURE__ */ J(
21726
21725
  "div",
21727
21726
  {
@@ -21735,7 +21734,7 @@ const $p = 1, Qr = 0.15, wp = 3, Tp = 20, Ti = (e) => `max(${e}, ${Tp}px)`, Lp =
21735
21734
  },
21736
21735
  children: [
21737
21736
  t.map((ce, se) => {
21738
- const Pe = Ti(a), Ve = `calc(-0.5 * (${Pe} + ${a}))`;
21737
+ const Pe = wi(a), Ve = `calc(-0.5 * (${Pe} + ${a}))`;
21739
21738
  return /* @__PURE__ */ J("div", { style: { position: "relative", flex: "0 0 auto" }, children: [
21740
21739
  /* @__PURE__ */ s(
21741
21740
  "button",
@@ -21754,7 +21753,10 @@ const $p = 1, Qr = 0.15, wp = 3, Tp = 20, Ti = (e) => `max(${e}, ${Tp}px)`, Lp =
21754
21753
  src: ce.image.url,
21755
21754
  alt: "",
21756
21755
  draggable: !1,
21757
- style: te
21756
+ style: {
21757
+ ...te,
21758
+ ...w.display === "Cover" ? { width: ki } : { width: "100%" }
21759
+ }
21758
21760
  }
21759
21761
  )
21760
21762
  }
@@ -22117,7 +22119,6 @@ function getCSS(P: string): string {
22117
22119
 
22118
22120
  .\${P}-thumb-image {
22119
22121
  display: block;
22120
- width: \${THUMB_MAX_SIZE_PX}px;
22121
22122
  height: \${THUMB_MAX_SIZE_PX}px;
22122
22123
  object-fit: contain;
22123
22124
  transition: filter 0.2s ease;
@@ -23192,7 +23193,10 @@ const LightboxOverlay = ({
23192
23193
  src={item.image.url}
23193
23194
  alt=""
23194
23195
  draggable={false}
23195
- style={thumbAspectRatioStyle}
23196
+ style={
23197
+ {...thumbAspectRatioStyle,
23198
+ ...(thumbnailObjectFit.display === 'Cover' ? { width: THUMB_MAX_SIZE_PX } : { width: '100%' }),}
23199
+ }
23196
23200
  />
23197
23201
  </button>
23198
23202
  {showControls && index < images.length - 1 && (
@@ -24857,7 +24861,7 @@ const Yp = {
24857
24861
  title3: 0.02,
24858
24862
  count: 0.017
24859
24863
  };
24860
- function Li(e, t) {
24864
+ function Ti(e, t) {
24861
24865
  const n = (i) => {
24862
24866
  const o = Ye(t, i);
24863
24867
  return e[o];
@@ -24877,7 +24881,7 @@ function Li(e, t) {
24877
24881
  color: e[Yp[t]]
24878
24882
  };
24879
24883
  }
24880
- function Ei(e, t, n) {
24884
+ function Li(e, t, n) {
24881
24885
  var o, a;
24882
24886
  const i = {
24883
24887
  fontSettings: {
@@ -24915,7 +24919,7 @@ const Zp = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
24915
24919
  contentMarginTop: k,
24916
24920
  contentMarginLeft: S,
24917
24921
  contentMarginRight: I
24918
- } = e, R = (U) => F(U, n ?? !1), T = Ei("title1", Li(e, "title1"), n), A = Ei("title2", Li(e, "title2"), n), H = Ei("title3", Li(e, "title3"), n), D = Ei("count", Li(e, "count"), n), G = ge(null), [ee, p] = de(!1), [v, M] = de(0), _ = ge(!1), C = ge(!1), B = ge(!1), K = je(
24922
+ } = e, R = (U) => F(U, n ?? !1), T = Li("title1", Ti(e, "title1"), n), A = Li("title2", Ti(e, "title2"), n), H = Li("title3", Ti(e, "title3"), n), D = Li("count", Ti(e, "count"), n), G = ge(null), [ee, p] = de(!1), [v, M] = de(0), _ = ge(!1), C = ge(!1), B = ge(!1), K = je(
24919
24923
  () => (t ?? []).filter((U) => Bn(U).length > 0),
24920
24924
  [t]
24921
24925
  ), te = !n || !!o, X = at(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/components",
3
- "version": "1.0.12-alpha.29",
3
+ "version": "1.0.12-alpha.30",
4
4
  "description": "Custom components for control editor and public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",