@cntrl-site/components 1.0.4 → 1.0.6-alpha.0

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,143 +1,148 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react/jsx-runtime"),j=require("react"),dt=require("classnames"),F=require("./useScopedStyles-DpVdqfXj.js"),gr=require("react-dom");function mr(t){return t.type==="object"&&t.version===1}const fr="ControlSlider-module__wrapper___sHEkd",hr="ControlSlider-module__hoverArrow___A-dOH",yr="ControlSlider-module__sliderItem___QQSkR",vr="ControlSlider-module__sliderImage___9hRl-",br="ControlSlider-module__arrow___05ghY",Sr="ControlSlider-module__arrowVertical___tBfVN",xr="ControlSlider-module__nextArrow___-30Yc",Cr="ControlSlider-module__arrowInner___aEra3",$r="ControlSlider-module__arrowIcon___S4ztF",_r="ControlSlider-module__arrowImg___2dwJW",wr="ControlSlider-module__mirror___brd6U",Tr="ControlSlider-module__pagination___bicLF",Er="ControlSlider-module__paginationInner___bT-P-",Lr="ControlSlider-module__paginationVertical___zYqKw",Ar="ControlSlider-module__paginationItem___nTRbk",Ir="ControlSlider-module__dot___p1Qun",kr="ControlSlider-module__activeDot___LHFaj",Fr="ControlSlider-module__paginationInsideBottom___R3FWn",Rr="ControlSlider-module__paginationInsideTop___V-qb-",Br="ControlSlider-module__paginationOutsideBottom___14w8D",Vr="ControlSlider-module__paginationOutsideTop___SCLqB",Or="ControlSlider-module__paginationInsideLeft___yOBRZ",Pr="ControlSlider-module__paginationInsideRight___Rtt3o",Nr="ControlSlider-module__paginationOutsideLeft___lahaw",Wr="ControlSlider-module__paginationOutsideRight___EtuQa",zr="ControlSlider-module__imgWrapper___UjEgB",jr="ControlSlider-module__captionBlock___dJ6-j",Mr="ControlSlider-module__captionTextWrapper___HFlpf",Hr="ControlSlider-module__captionText___uGBVc",Dr="ControlSlider-module__active___WZK4G",Ur="ControlSlider-module__withPointerEvents___t-18M",Yr="ControlSlider-module__topLeftAlignment___zjnGM",Gr="ControlSlider-module__topCenterAlignment___gD1xW",qr="ControlSlider-module__topRightAlignment___NMapS",Xr="ControlSlider-module__middleLeftAlignment___OnUrY",Kr="ControlSlider-module__middleCenterAlignment___Tdkl0",Jr="ControlSlider-module__middleRightAlignment___wEbfX",Zr="ControlSlider-module__bottomLeftAlignment___cTP2-",Qr="ControlSlider-module__bottomCenterAlignment___c54fB",ti="ControlSlider-module__bottomRightAlignment___kEwrz",ei="ControlSlider-module__clickOverlay___DZA28",ni="ControlSlider-module__contain___pLyq7",oi="ControlSlider-module__cover___KdDat",Y={wrapper:fr,hoverArrow:hr,sliderItem:yr,sliderImage:vr,arrow:br,arrowVertical:Sr,nextArrow:xr,arrowInner:Cr,arrowIcon:$r,arrowImg:_r,mirror:wr,pagination:Tr,paginationInner:Er,paginationVertical:Lr,paginationItem:Ar,dot:Ir,activeDot:kr,paginationInsideBottom:Fr,paginationInsideTop:Rr,paginationOutsideBottom:Br,paginationOutsideTop:Vr,paginationInsideLeft:Or,paginationInsideRight:Pr,paginationOutsideLeft:Nr,paginationOutsideRight:Wr,imgWrapper:zr,captionBlock:jr,captionTextWrapper:Mr,captionText:Hr,active:Dr,withPointerEvents:Ur,topLeftAlignment:Yr,topCenterAlignment:Gr,topRightAlignment:qr,middleLeftAlignment:Xr,middleCenterAlignment:Kr,middleRightAlignment:Jr,bottomLeftAlignment:Zr,bottomCenterAlignment:Qr,bottomRightAlignment:ti,clickOverlay:ei,contain:ni,cover:oi};function ri(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ii(t,e,n){return e&&ri(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var to="(prefers-reduced-motion: reduce)",ce=1,ai=2,ge=3,he=4,Fe=5,Ye=6,Ke=7,si={CREATED:ce,MOUNTED:ai,IDLE:ge,MOVING:he,SCROLLING:Fe,DRAGGING:Ye,DESTROYED:Ke};function zt(t){t.length=0}function qt(t,e,n){return Array.prototype.slice.call(t,e,n)}function at(t){return t.bind.apply(t,[null].concat(qt(arguments,1)))}var Co=setTimeout,xn=function(){};function eo(t){return requestAnimationFrame(t)}function en(t,e){return typeof e===t}function we(t){return!kn(t)&&en("object",t)}var In=Array.isArray,$o=at(en,"function"),Yt=at(en,"string"),Re=at(en,"undefined");function kn(t){return t===null}function _o(t){try{return t instanceof(t.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function Be(t){return In(t)?t:[t]}function Tt(t,e){Be(t).forEach(e)}function Fn(t,e){return t.indexOf(e)>-1}function Ge(t,e){return t.push.apply(t,Be(e)),t}function Pt(t,e,n){t&&Tt(e,function(o){o&&t.classList[n?"add":"remove"](o)})}function Rt(t,e){Pt(t,Yt(e)?e.split(" "):e,!0)}function Ve(t,e){Tt(e,t.appendChild.bind(t))}function Rn(t,e){Tt(t,function(n){var o=(e||n).parentNode;o&&o.insertBefore(n,e)})}function Te(t,e){return _o(t)&&(t.msMatchesSelector||t.matches).call(t,e)}function wo(t,e){var n=t?qt(t.children):[];return e?n.filter(function(o){return Te(o,e)}):n}function Oe(t,e){return e?wo(t,e)[0]:t.firstElementChild}var Ee=Object.keys;function Qt(t,e,n){return t&&(n?Ee(t).reverse():Ee(t)).forEach(function(o){o!=="__proto__"&&e(t[o],o)}),t}function Le(t){return qt(arguments,1).forEach(function(e){Qt(e,function(n,o){t[o]=e[o]})}),t}function Ut(t){return qt(arguments,1).forEach(function(e){Qt(e,function(n,o){In(n)?t[o]=n.slice():we(n)?t[o]=Ut({},we(t[o])?t[o]:{},n):t[o]=n})}),t}function no(t,e){Tt(e||Ee(t),function(n){delete t[n]})}function Bt(t,e){Tt(t,function(n){Tt(e,function(o){n&&n.removeAttribute(o)})})}function Z(t,e,n){we(e)?Qt(e,function(o,r){Z(t,r,o)}):Tt(t,function(o){kn(n)||n===""?Bt(o,e):o.setAttribute(e,String(n))})}function ue(t,e,n){var o=document.createElement(t);return e&&(Yt(e)?Rt(o,e):Z(o,e)),n&&Ve(n,o),o}function Lt(t,e,n){if(Re(n))return getComputedStyle(t)[e];kn(n)||(t.style[e]=""+n)}function Ae(t,e){Lt(t,"display",e)}function To(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function At(t,e){return t.getAttribute(e)}function oo(t,e){return t&&t.classList.contains(e)}function _t(t){return t.getBoundingClientRect()}function te(t){Tt(t,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function Eo(t){return Oe(new DOMParser().parseFromString(t,"text/html").body)}function Ot(t,e){t.preventDefault(),e&&(t.stopPropagation(),t.stopImmediatePropagation())}function Lo(t,e){return t&&t.querySelector(e)}function Bn(t,e){return e?qt(t.querySelectorAll(e)):[]}function Nt(t,e){Pt(t,e,!1)}function Cn(t){return t.timeStamp}function Jt(t){return Yt(t)?t:t?t+"px":""}var Pe="splide",Vn="data-"+Pe;function $e(t,e){if(!t)throw new Error("["+Pe+"] "+(e||""))}var Gt=Math.min,Je=Math.max,Ze=Math.floor,Ie=Math.ceil,xt=Math.abs;function Ao(t,e,n){return xt(t-e)<n}function qe(t,e,n,o){var r=Gt(e,n),a=Je(e,n);return o?r<t&&t<a:r<=t&&t<=a}function se(t,e,n){var o=Gt(e,n),r=Je(e,n);return Gt(Je(o,t),r)}function $n(t){return+(t>0)-+(t<0)}function _n(t,e){return Tt(e,function(n){t=t.replace("%s",""+n)}),t}function On(t){return t<10?"0"+t:""+t}var ro={};function li(t){return""+t+On(ro[t]=(ro[t]||0)+1)}function Io(){var t=[];function e(i,c,s,p){r(i,c,function(l,w,y){var m="addEventListener"in l,u=m?l.removeEventListener.bind(l,w,s,p):l.removeListener.bind(l,s);m?l.addEventListener(w,s,p):l.addListener(s),t.push([l,w,y,s,u])})}function n(i,c,s){r(i,c,function(p,l,w){t=t.filter(function(y){return y[0]===p&&y[1]===l&&y[2]===w&&(!s||y[3]===s)?(y[4](),!1):!0})})}function o(i,c,s){var p,l=!0;return typeof CustomEvent=="function"?p=new CustomEvent(c,{bubbles:l,detail:s}):(p=document.createEvent("CustomEvent"),p.initCustomEvent(c,l,!1,s)),i.dispatchEvent(p),p}function r(i,c,s){Tt(i,function(p){p&&Tt(c,function(l){l.split(" ").forEach(function(w){var y=w.split(".");s(p,y[0],y[1])})})})}function a(){t.forEach(function(i){i[4]()}),zt(t)}return{bind:e,unbind:n,dispatch:o,destroy:a}}var Xt="mounted",wn="ready",jt="move",ye="moved",Pn="click",ko="active",Fo="inactive",Ro="visible",Bo="hidden",yt="refresh",St="updated",me="resize",nn="resized",Vo="drag",Oo="dragging",Po="dragged",on="scroll",ne="scrolled",ci="overflow",Nn="destroy",No="arrows:mounted",Wo="arrows:updated",zo="pagination:mounted",jo="pagination:updated",Wn="navigation:mounted",zn="autoplay:play",Mo="autoplay:playing",jn="autoplay:pause",Mn="lazyload:loaded",Ho="sk",Do="sh",Qe="ei";function gt(t){var e=t?t.event.bus:document.createDocumentFragment(),n=Io();function o(a,i){n.bind(e,Be(a).join(" "),function(c){i.apply(i,In(c.detail)?c.detail:[])})}function r(a){n.dispatch(e,a,qt(arguments,1))}return t&&t.event.on(Nn,n.destroy),Le(n,{bus:e,on:o,off:at(n.unbind,e),emit:r})}function rn(t,e,n,o){var r=Date.now,a,i=0,c,s=!0,p=0;function l(){if(!s){if(i=t?Gt((r()-a)/t,1):1,n&&n(i),i>=1&&(e(),a=r(),o&&++p>=o))return y();c=eo(l)}}function w(b){b||u(),a=r()-(b?i*t:0),s=!1,c=eo(l)}function y(){s=!0}function m(){a=r(),i=0,n&&n(i)}function u(){c&&cancelAnimationFrame(c),i=0,c=0,s=!0}function d(b){t=b}function C(){return s}return{start:w,rewind:m,pause:y,cancel:u,set:d,isPaused:C}}function ui(t){var e=t;function n(r){e=r}function o(r){return Fn(Be(r),e)}return{set:n,is:o}}function pi(t,e){var n=rn(0,t,null,1);return function(){n.isPaused()&&n.start()}}function di(t,e,n){var o=t.state,r=n.breakpoints||{},a=n.reducedMotion||{},i=Io(),c=[];function s(){var u=n.mediaQuery==="min";Ee(r).sort(function(d,C){return u?+d-+C:+C-+d}).forEach(function(d){l(r[d],"("+(u?"min":"max")+"-width:"+d+"px)")}),l(a,to),w()}function p(u){u&&i.destroy()}function l(u,d){var C=matchMedia(d);i.bind(C,"change",w),c.push([u,C])}function w(){var u=o.is(Ke),d=n.direction,C=c.reduce(function(b,f){return Ut(b,f[1].matches?f[0]:{})},{});no(n),m(C),n.destroy?t.destroy(n.destroy==="completely"):u?(p(!0),t.mount()):d!==n.direction&&t.refresh()}function y(u){matchMedia(to).matches&&(u?Ut(n,a):no(n,Ee(a)))}function m(u,d,C){Ut(n,u),d&&Ut(Object.getPrototypeOf(n),u),(C||!o.is(ce))&&t.emit(St,n)}return{setup:s,destroy:p,reduce:y,set:m}}var an="Arrow",sn=an+"Left",ln=an+"Right",Uo=an+"Up",Yo=an+"Down",io="rtl",cn="ttb",fn={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Uo,ln],ArrowRight:[Yo,sn]};function gi(t,e,n){function o(a,i,c){c=c||n.direction;var s=c===io&&!i?1:c===cn?0:-1;return fn[a]&&fn[a][s]||a.replace(/width|left|right/i,function(p,l){var w=fn[p.toLowerCase()][s]||p;return l>0?w.charAt(0).toUpperCase()+w.slice(1):w})}function r(a){return a*(n.direction===io?1:-1)}return{resolve:o,orient:r}}var Wt="role",pe="tabindex",mi="disabled",It="aria-",Ne=It+"controls",Go=It+"current",ao=It+"selected",wt=It+"label",Hn=It+"labelledby",qo=It+"hidden",Dn=It+"orientation",ke=It+"roledescription",so=It+"live",lo=It+"busy",co=It+"atomic",Un=[Wt,pe,mi,Ne,Go,wt,Hn,qo,Dn,ke],Vt=Pe+"__",Kt="is-",hn=Pe,uo=Vt+"track",fi=Vt+"list",un=Vt+"slide",Xo=un+"--clone",hi=un+"__container",Yn=Vt+"arrows",pn=Vt+"arrow",Ko=pn+"--prev",Jo=pn+"--next",dn=Vt+"pagination",Zo=dn+"__page",yi=Vt+"progress",vi=yi+"__bar",bi=Vt+"toggle",Si=Vt+"spinner",xi=Vt+"sr",Ci=Kt+"initialized",ee=Kt+"active",Qo=Kt+"prev",tr=Kt+"next",Tn=Kt+"visible",En=Kt+"loading",er=Kt+"focus-in",nr=Kt+"overflow",$i=[ee,Tn,Qo,tr,En,er,nr],_i={slide:un,clone:Xo,arrows:Yn,arrow:pn,prev:Ko,next:Jo,pagination:dn,page:Zo,spinner:Si};function wi(t,e){if($o(t.closest))return t.closest(e);for(var n=t;n&&n.nodeType===1&&!Te(n,e);)n=n.parentElement;return n}var Ti=5,po=200,or="touchstart mousedown",yn="touchmove mousemove",vn="touchend touchcancel mouseup click";function Ei(t,e,n){var o=gt(t),r=o.on,a=o.bind,i=t.root,c=n.i18n,s={},p=[],l=[],w=[],y,m,u;function d(){$(),M(),f()}function C(){r(yt,b),r(yt,d),r(St,f),a(document,or+" keydown",function(h){u=h.type==="keydown"},{capture:!0}),a(i,"focusin",function(){Pt(i,er,!!u)})}function b(h){var L=Un.concat("style");zt(p),Nt(i,l),Nt(y,w),Bt([y,m],L),Bt(i,h?L:["style",ke])}function f(){Nt(i,l),Nt(y,w),l=T(hn),w=T(uo),Rt(i,l),Rt(y,w),Z(i,wt,n.label),Z(i,Hn,n.labelledby)}function $(){y=P("."+uo),m=Oe(y,"."+fi),$e(y&&m,"A track/list element is missing."),Ge(p,wo(m,"."+un+":not(."+Xo+")")),Qt({arrows:Yn,pagination:dn,prev:Ko,next:Jo,bar:vi,toggle:bi},function(h,L){s[L]=P("."+h)}),Le(s,{root:i,track:y,list:m,slides:p})}function M(){var h=i.id||li(Pe),L=n.role;i.id=h,y.id=y.id||h+"-track",m.id=m.id||h+"-list",!At(i,Wt)&&i.tagName!=="SECTION"&&L&&Z(i,Wt,L),Z(i,ke,c.carousel),Z(m,Wt,"presentation")}function P(h){var L=Lo(i,h);return L&&wi(L,"."+hn)===i?L:void 0}function T(h){return[h+"--"+n.type,h+"--"+n.direction,n.drag&&h+"--draggable",n.isNavigation&&h+"--nav",h===hn&&ee]}return Le(s,{setup:d,mount:C,destroy:b})}var fe="slide",ve="loop",We="fade";function Li(t,e,n,o){var r=gt(t),a=r.on,i=r.emit,c=r.bind,s=t.Components,p=t.root,l=t.options,w=l.isNavigation,y=l.updateOnMove,m=l.i18n,u=l.pagination,d=l.slideFocus,C=s.Direction.resolve,b=At(o,"style"),f=At(o,wt),$=n>-1,M=Oe(o,"."+hi),P;function T(){$||(o.id=p.id+"-slide"+On(e+1),Z(o,Wt,u?"tabpanel":"group"),Z(o,ke,m.slide),Z(o,wt,f||_n(m.slideLabel,[e+1,t.length]))),h()}function h(){c(o,"click",at(i,Pn,I)),c(o,"keydown",at(i,Ho,I)),a([ye,Do,ne],k),a(Wn,R),y&&a(jt,W)}function L(){P=!0,r.destroy(),Nt(o,$i),Bt(o,Un),Z(o,"style",b),Z(o,wt,f||"")}function R(){var _=t.splides.map(function(v){var V=v.splide.Components.Slides.getAt(e);return V?V.slide.id:""}).join(" ");Z(o,wt,_n(m.slideX,($?n:e)+1)),Z(o,Ne,_),Z(o,Wt,d?"button":""),d&&Bt(o,ke)}function W(){P||k()}function k(){if(!P){var _=t.index;B(),O(),Pt(o,Qo,e===_-1),Pt(o,tr,e===_+1)}}function B(){var _=D();_!==oo(o,ee)&&(Pt(o,ee,_),Z(o,Go,w&&_||""),i(_?ko:Fo,I))}function O(){var _=g(),v=!_&&(!D()||$);if(t.state.is([he,Fe])||Z(o,qo,v||""),Z(Bn(o,l.focusableNodes||""),pe,v?-1:""),d&&Z(o,pe,v?-1:0),_!==oo(o,Tn)&&(Pt(o,Tn,_),i(_?Ro:Bo,I)),!_&&document.activeElement===o){var V=s.Slides.getAt(t.index);V&&To(V.slide)}}function U(_,v,V){Lt(V&&M||o,_,v)}function D(){var _=t.index;return _===e||l.cloneStatus&&_===n}function g(){if(t.is(We))return D();var _=_t(s.Elements.track),v=_t(o),V=C("left",!0),X=C("right",!0);return Ze(_[V])<=Ie(v[V])&&Ze(v[X])<=Ie(_[X])}function A(_,v){var V=xt(_-e);return!$&&(l.rewind||t.is(ve))&&(V=Gt(V,t.length-V)),V<=v}var I={index:e,slideIndex:n,slide:o,container:M,isClone:$,mount:T,destroy:L,update:k,style:U,isWithin:A};return I}function Ai(t,e,n){var o=gt(t),r=o.on,a=o.emit,i=o.bind,c=e.Elements,s=c.slides,p=c.list,l=[];function w(){y(),r(yt,m),r(yt,y)}function y(){s.forEach(function(k,B){d(k,B,-1)})}function m(){P(function(k){k.destroy()}),zt(l)}function u(){P(function(k){k.update()})}function d(k,B,O){var U=Li(t,B,O,k);U.mount(),l.push(U),l.sort(function(D,g){return D.index-g.index})}function C(k){return k?T(function(B){return!B.isClone}):l}function b(k){var B=e.Controller,O=B.toIndex(k),U=B.hasFocus()?1:n.perPage;return T(function(D){return qe(D.index,O,O+U-1)})}function f(k){return T(k)[0]}function $(k,B){Tt(k,function(O){if(Yt(O)&&(O=Eo(O)),_o(O)){var U=s[B];U?Rn(O,U):Ve(p,O),Rt(O,n.classes.slide),L(O,at(a,me))}}),a(yt)}function M(k){te(T(k).map(function(B){return B.slide})),a(yt)}function P(k,B){C(B).forEach(k)}function T(k){return l.filter($o(k)?k:function(B){return Yt(k)?Te(B.slide,k):Fn(Be(k),B.index)})}function h(k,B,O){P(function(U){U.style(k,B,O)})}function L(k,B){var O=Bn(k,"img"),U=O.length;U?O.forEach(function(D){i(D,"load error",function(){--U||B()})}):B()}function R(k){return k?s.length:l.length}function W(){return l.length>n.perPage}return{mount:w,destroy:m,update:u,register:d,get:C,getIn:b,getAt:f,add:$,remove:M,forEach:P,filter:T,style:h,getLength:R,isEnough:W}}function Ii(t,e,n){var o=gt(t),r=o.on,a=o.bind,i=o.emit,c=e.Slides,s=e.Direction.resolve,p=e.Elements,l=p.root,w=p.track,y=p.list,m=c.getAt,u=c.style,d,C,b;function f(){$(),a(window,"resize load",pi(at(i,me))),r([St,yt],$),r(me,M)}function $(){d=n.direction===cn,Lt(l,"maxWidth",Jt(n.width)),Lt(w,s("paddingLeft"),P(!1)),Lt(w,s("paddingRight"),P(!0)),M(!0)}function M(I){var _=_t(l);(I||C.width!==_.width||C.height!==_.height)&&(Lt(w,"height",T()),u(s("marginRight"),Jt(n.gap)),u("width",L()),u("height",R(),!0),C=_,i(nn),b!==(b=A())&&(Pt(l,nr,b),i(ci,b)))}function P(I){var _=n.padding,v=s(I?"right":"left");return _&&Jt(_[v]||(we(_)?0:_))||"0px"}function T(){var I="";return d&&(I=h(),$e(I,"height or heightRatio is missing."),I="calc("+I+" - "+P(!1)+" - "+P(!0)+")"),I}function h(){return Jt(n.height||_t(y).width*n.heightRatio)}function L(){return n.autoWidth?null:Jt(n.fixedWidth)||(d?"":W())}function R(){return Jt(n.fixedHeight)||(d?n.autoHeight?null:W():h())}function W(){var I=Jt(n.gap);return"calc((100%"+(I&&" + "+I)+")/"+(n.perPage||1)+(I&&" - "+I)+")"}function k(){return _t(y)[s("width")]}function B(I,_){var v=m(I||0);return v?_t(v.slide)[s("width")]+(_?0:D()):0}function O(I,_){var v=m(I);if(v){var V=_t(v.slide)[s("right")],X=_t(y)[s("left")];return xt(V-X)+(_?0:D())}return 0}function U(I){return O(t.length-1)-O(0)+B(0,I)}function D(){var I=m(0);return I&&parseFloat(Lt(I.slide,s("marginRight")))||0}function g(I){return parseFloat(Lt(w,s("padding"+(I?"Right":"Left"))))||0}function A(){return t.is(We)||U(!0)>k()}return{mount:f,resize:M,listSize:k,slideSize:B,sliderSize:U,totalSize:O,getPadding:g,isOverflow:A}}var ki=2;function Fi(t,e,n){var o=gt(t),r=o.on,a=e.Elements,i=e.Slides,c=e.Direction.resolve,s=[],p;function l(){r(yt,w),r([St,me],m),(p=C())&&(u(p),e.Layout.resize(!0))}function w(){y(),l()}function y(){te(s),zt(s),o.destroy()}function m(){var b=C();p!==b&&(p<b||!b)&&o.emit(yt)}function u(b){var f=i.get().slice(),$=f.length;if($){for(;f.length<b;)Ge(f,f);Ge(f.slice(-b),f.slice(0,b)).forEach(function(M,P){var T=P<b,h=d(M.slide,P);T?Rn(h,f[0].slide):Ve(a.list,h),Ge(s,h),i.register(h,P-b+(T?0:$),M.index)})}}function d(b,f){var $=b.cloneNode(!0);return Rt($,n.classes.clone),$.id=t.root.id+"-clone"+On(f+1),$}function C(){var b=n.clones;if(!t.is(ve))b=0;else if(Re(b)){var f=n[c("fixedWidth")]&&e.Layout.slideSize(0),$=f&&Ie(_t(a.track)[c("width")]/f);b=$||n[c("autoWidth")]&&t.length||n.perPage*ki}return b}return{mount:l,destroy:y}}function Ri(t,e,n){var o=gt(t),r=o.on,a=o.emit,i=t.state.set,c=e.Layout,s=c.slideSize,p=c.getPadding,l=c.totalSize,w=c.listSize,y=c.sliderSize,m=e.Direction,u=m.resolve,d=m.orient,C=e.Elements,b=C.list,f=C.track,$;function M(){$=e.Transition,r([Xt,nn,St,yt],P)}function P(){e.Controller.isBusy()||(e.Scroll.cancel(),h(t.index),e.Slides.update())}function T(v,V,X,rt){v!==V&&I(v>X)&&(k(),L(W(U(),v>X),!0)),i(he),a(jt,V,X,v),$.start(V,function(){i(ge),a(ye,V,X,v),rt&&rt()})}function h(v){L(O(v,!0))}function L(v,V){if(!t.is(We)){var X=V?v:R(v);Lt(b,"transform","translate"+u("X")+"("+X+"px)"),v!==X&&a(Do)}}function R(v){if(t.is(ve)){var V=B(v),X=V>e.Controller.getEnd(),rt=V<0;(rt||X)&&(v=W(v,X))}return v}function W(v,V){var X=v-A(V),rt=y();return v-=d(rt*(Ie(xt(X)/rt)||1))*(V?1:-1),v}function k(){L(U(),!0),$.cancel()}function B(v){for(var V=e.Slides.get(),X=0,rt=1/0,Q=0;Q<V.length;Q++){var ut=V[Q].index,E=xt(O(ut,!0)-v);if(E<=rt)rt=E,X=ut;else break}return X}function O(v,V){var X=d(l(v-1)-g(v));return V?D(X):X}function U(){var v=u("left");return _t(b)[v]-_t(f)[v]+d(p(!1))}function D(v){return n.trimSpace&&t.is(fe)&&(v=se(v,0,d(y(!0)-w()))),v}function g(v){var V=n.focus;return V==="center"?(w()-s(v,!0))/2:+V*s(v)||0}function A(v){return O(v?e.Controller.getEnd():0,!!n.trimSpace)}function I(v){var V=d(W(U(),v));return v?V>=0:V<=b[u("scrollWidth")]-_t(f)[u("width")]}function _(v,V){V=Re(V)?U():V;var X=v!==!0&&d(V)<d(A(!1)),rt=v!==!1&&d(V)>d(A(!0));return X||rt}return{mount:M,move:T,jump:h,translate:L,shift:W,cancel:k,toIndex:B,toPosition:O,getPosition:U,getLimit:A,exceededLimit:_,reposition:P}}function Bi(t,e,n){var o=gt(t),r=o.on,a=o.emit,i=e.Move,c=i.getPosition,s=i.getLimit,p=i.toPosition,l=e.Slides,w=l.isEnough,y=l.getLength,m=n.omitEnd,u=t.is(ve),d=t.is(fe),C=at(U,!1),b=at(U,!0),f=n.start||0,$,M=f,P,T,h;function L(){R(),r([St,yt,Qe],R),r(nn,W)}function R(){P=y(!0),T=n.perMove,h=n.perPage,$=I();var E=se(f,0,m?$:P-1);E!==f&&(f=E,i.reposition())}function W(){$!==I()&&a(Qe)}function k(E,K,ft){if(!ut()){var it=O(E),mt=A(it);mt>-1&&(K||mt!==f)&&(X(mt),i.move(it,mt,M,ft))}}function B(E,K,ft,it){e.Scroll.scroll(E,K,ft,function(){var mt=A(i.toIndex(c()));X(m?Gt(mt,$):mt),it&&it()})}function O(E){var K=f;if(Yt(E)){var ft=E.match(/([+\-<>])(\d+)?/)||[],it=ft[1],mt=ft[2];it==="+"||it==="-"?K=D(f+ +(""+it+(+mt||1)),f):it===">"?K=mt?_(+mt):C(!0):it==="<"&&(K=b(!0))}else K=u?E:se(E,0,$);return K}function U(E,K){var ft=T||(Q()?1:h),it=D(f+ft*(E?-1:1),f,!(T||Q()));return it===-1&&d&&!Ao(c(),s(!E),1)?E?0:$:K?it:A(it)}function D(E,K,ft){if(w()||Q()){var it=g(E);it!==E&&(K=E,E=it,ft=!1),E<0||E>$?!T&&(qe(0,E,K,!0)||qe($,K,E,!0))?E=_(v(E)):u?E=ft?E<0?-(P%h||h):P:E:n.rewind?E=E<0?$:0:E=-1:ft&&E!==K&&(E=_(v(K)+(E<K?-1:1)))}else E=-1;return E}function g(E){if(d&&n.trimSpace==="move"&&E!==f)for(var K=c();K===p(E,!0)&&qe(E,0,t.length-1,!n.rewind);)E<f?--E:++E;return E}function A(E){return u?(E+P)%P||0:E}function I(){for(var E=P-(Q()||u&&T?1:h);m&&E-- >0;)if(p(P-1,!0)!==p(E,!0)){E++;break}return se(E,0,P-1)}function _(E){return se(Q()?E:h*E,0,$)}function v(E){return Q()?Gt(E,$):Ze((E>=$?P-1:E)/h)}function V(E){var K=i.toIndex(E);return d?se(K,0,$):K}function X(E){E!==f&&(M=f,f=E)}function rt(E){return E?M:f}function Q(){return!Re(n.focus)||n.isNavigation}function ut(){return t.state.is([he,Fe])&&!!n.waitForTransition}return{mount:L,go:k,scroll:B,getNext:C,getPrev:b,getAdjacent:U,getEnd:I,setIndex:X,getIndex:rt,toIndex:_,toPage:v,toDest:V,hasFocus:Q,isBusy:ut}}var Vi="http://www.w3.org/2000/svg",Oi="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",je=40;function Pi(t,e,n){var o=gt(t),r=o.on,a=o.bind,i=o.emit,c=n.classes,s=n.i18n,p=e.Elements,l=e.Controller,w=p.arrows,y=p.track,m=w,u=p.prev,d=p.next,C,b,f={};function $(){P(),r(St,M)}function M(){T(),$()}function P(){var B=n.arrows;B&&!(u&&d)&&R(),u&&d&&(Le(f,{prev:u,next:d}),Ae(m,B?"":"none"),Rt(m,b=Yn+"--"+n.direction),B&&(h(),k(),Z([u,d],Ne,y.id),i(No,u,d)))}function T(){o.destroy(),Nt(m,b),C?(te(w?[u,d]:m),u=d=null):Bt([u,d],Un)}function h(){r([Xt,ye,yt,ne,Qe],k),a(d,"click",at(L,">")),a(u,"click",at(L,"<"))}function L(B){l.go(B,!0)}function R(){m=w||ue("div",c.arrows),u=W(!0),d=W(!1),C=!0,Ve(m,[u,d]),!w&&Rn(m,y)}function W(B){var O='<button class="'+c.arrow+" "+(B?c.prev:c.next)+'" type="button"><svg xmlns="'+Vi+'" viewBox="0 0 '+je+" "+je+'" width="'+je+'" height="'+je+'" focusable="false"><path d="'+(n.arrowPath||Oi)+'" />';return Eo(O)}function k(){if(u&&d){var B=t.index,O=l.getPrev(),U=l.getNext(),D=O>-1&&B<O?s.last:s.prev,g=U>-1&&B>U?s.first:s.next;u.disabled=O<0,d.disabled=U<0,Z(u,wt,D),Z(d,wt,g),i(Wo,u,d,O,U)}}return{arrows:f,mount:$,destroy:T,update:k}}var Ni=Vn+"-interval";function Wi(t,e,n){var o=gt(t),r=o.on,a=o.bind,i=o.emit,c=rn(n.interval,t.go.bind(t,">"),h),s=c.isPaused,p=e.Elements,l=e.Elements,w=l.root,y=l.toggle,m=n.autoplay,u,d,C=m==="pause";function b(){m&&(f(),y&&Z(y,Ne,p.track.id),C||$(),T())}function f(){n.pauseOnHover&&a(w,"mouseenter mouseleave",function(R){u=R.type==="mouseenter",P()}),n.pauseOnFocus&&a(w,"focusin focusout",function(R){d=R.type==="focusin",P()}),y&&a(y,"click",function(){C?$():M(!0)}),r([jt,on,yt],c.rewind),r(jt,L)}function $(){s()&&e.Slides.isEnough()&&(c.start(!n.resetProgress),d=u=C=!1,T(),i(zn))}function M(R){R===void 0&&(R=!0),C=!!R,T(),s()||(c.pause(),i(jn))}function P(){C||(u||d?M(!1):$())}function T(){y&&(Pt(y,ee,!C),Z(y,wt,n.i18n[C?"play":"pause"]))}function h(R){var W=p.bar;W&&Lt(W,"width",R*100+"%"),i(Mo,R)}function L(R){var W=e.Slides.getAt(R);c.set(W&&+At(W.slide,Ni)||n.interval)}return{mount:b,destroy:c.cancel,play:$,pause:M,isPaused:s}}function zi(t,e,n){var o=gt(t),r=o.on;function a(){n.cover&&(r(Mn,at(c,!0)),r([Xt,St,yt],at(i,!0)))}function i(s){e.Slides.forEach(function(p){var l=Oe(p.container||p.slide,"img");l&&l.src&&c(s,l,p)})}function c(s,p,l){l.style("background",s?'center/cover no-repeat url("'+p.src+'")':"",!0),Ae(p,s?"none":"")}return{mount:a,destroy:at(i,!1)}}var ji=10,Mi=600,Hi=.6,Di=1.5,Ui=800;function Yi(t,e,n){var o=gt(t),r=o.on,a=o.emit,i=t.state.set,c=e.Move,s=c.getPosition,p=c.getLimit,l=c.exceededLimit,w=c.translate,y=t.is(fe),m,u,d=1;function C(){r(jt,M),r([St,yt],P)}function b(h,L,R,W,k){var B=s();if(M(),R&&(!y||!l())){var O=e.Layout.sliderSize(),U=$n(h)*O*Ze(xt(h)/O)||0;h=c.toPosition(e.Controller.toDest(h%O))+U}var D=Ao(B,h,1);d=1,L=D?0:L||Je(xt(h-B)/Di,Ui),u=W,m=rn(L,f,at($,B,h,k),1),i(Fe),a(on),m.start()}function f(){i(ge),u&&u(),a(ne)}function $(h,L,R,W){var k=s(),B=h+(L-h)*T(W),O=(B-k)*d;w(k+O),y&&!R&&l()&&(d*=Hi,xt(O)<ji&&b(p(l(!0)),Mi,!1,u,!0))}function M(){m&&m.cancel()}function P(){m&&!m.isPaused()&&(M(),f())}function T(h){var L=n.easingFunc;return L?L(h):1-Math.pow(1-h,4)}return{mount:C,destroy:M,scroll:b,cancel:P}}var le={passive:!1,capture:!0};function Gi(t,e,n){var o=gt(t),r=o.on,a=o.emit,i=o.bind,c=o.unbind,s=t.state,p=e.Move,l=e.Scroll,w=e.Controller,y=e.Elements.track,m=e.Media.reduce,u=e.Direction,d=u.resolve,C=u.orient,b=p.getPosition,f=p.exceededLimit,$,M,P,T,h,L=!1,R,W,k;function B(){i(y,yn,xn,le),i(y,vn,xn,le),i(y,or,U,le),i(y,"click",A,{capture:!0}),i(y,"dragstart",Ot),r([Xt,St],O)}function O(){var z=n.drag;Mt(!z),T=z==="free"}function U(z){if(R=!1,!W){var S=mt(z);it(z.target)&&(S||!z.button)&&(w.isBusy()?Ot(z,!0):(k=S?y:window,h=s.is([he,Fe]),P=null,i(k,yn,D,le),i(k,vn,g,le),p.cancel(),l.cancel(),I(z)))}}function D(z){if(s.is(Ye)||(s.set(Ye),a(Vo)),z.cancelable)if(h){p.translate($+ft(Q(z)));var S=ut(z)>po,H=L!==(L=f());(S||H)&&I(z),R=!0,a(Oo),Ot(z)}else V(z)&&(h=v(z),Ot(z))}function g(z){s.is(Ye)&&(s.set(ge),a(Po)),h&&(_(z),Ot(z)),c(k,yn,D),c(k,vn,g),h=!1}function A(z){!W&&R&&Ot(z,!0)}function I(z){P=M,M=z,$=b()}function _(z){var S=X(z),H=rt(S),G=n.rewind&&n.rewindByDrag;m(!1),T?w.scroll(H,0,n.snap):t.is(We)?w.go(C($n(S))<0?G?"<":"-":G?">":"+"):t.is(fe)&&L&&G?w.go(f(!0)?">":"<"):w.go(w.toDest(H),!0),m(!0)}function v(z){var S=n.dragMinThreshold,H=we(S),G=H&&S.mouse||0,J=(H?S.touch:+S)||10;return xt(Q(z))>(mt(z)?J:G)}function V(z){return xt(Q(z))>xt(Q(z,!0))}function X(z){if(t.is(ve)||!L){var S=ut(z);if(S&&S<po)return Q(z)/S}return 0}function rt(z){return b()+$n(z)*Gt(xt(z)*(n.flickPower||600),T?1/0:e.Layout.listSize()*(n.flickMaxPages||1))}function Q(z,S){return K(z,S)-K(E(z),S)}function ut(z){return Cn(z)-Cn(E(z))}function E(z){return M===z&&P||M}function K(z,S){return(mt(z)?z.changedTouches[0]:z)["page"+d(S?"Y":"X")]}function ft(z){return z/(L&&t.is(fe)?Ti:1)}function it(z){var S=n.noDrag;return!Te(z,"."+Zo+", ."+pn)&&(!S||!Te(z,S))}function mt(z){return typeof TouchEvent<"u"&&z instanceof TouchEvent}function bt(){return h}function Mt(z){W=z}return{mount:B,disable:Mt,isDragging:bt}}var qi={Spacebar:" ",Right:ln,Left:sn,Up:Uo,Down:Yo};function Gn(t){return t=Yt(t)?t:t.key,qi[t]||t}var go="keydown";function Xi(t,e,n){var o=gt(t),r=o.on,a=o.bind,i=o.unbind,c=t.root,s=e.Direction.resolve,p,l;function w(){y(),r(St,m),r(St,y),r(jt,d)}function y(){var b=n.keyboard;b&&(p=b==="global"?window:c,a(p,go,C))}function m(){i(p,go)}function u(b){l=b}function d(){var b=l;l=!0,Co(function(){l=b})}function C(b){if(!l){var f=Gn(b);f===s(sn)?t.go("<"):f===s(ln)&&t.go(">")}}return{mount:w,destroy:m,disable:u}}var _e=Vn+"-lazy",Xe=_e+"-srcset",Ki="["+_e+"], ["+Xe+"]";function Ji(t,e,n){var o=gt(t),r=o.on,a=o.off,i=o.bind,c=o.emit,s=n.lazyLoad==="sequential",p=[ye,ne],l=[];function w(){n.lazyLoad&&(y(),r(yt,y))}function y(){zt(l),m(),s?b():(a(p),r(p,u),u())}function m(){e.Slides.forEach(function(f){Bn(f.slide,Ki).forEach(function($){var M=At($,_e),P=At($,Xe);if(M!==$.src||P!==$.srcset){var T=n.classes.spinner,h=$.parentElement,L=Oe(h,"."+T)||ue("span",T,h);l.push([$,f,L]),$.src||Ae($,"none")}})})}function u(){l=l.filter(function(f){var $=n.perPage*((n.preloadPages||1)+1)-1;return f[1].isWithin(t.index,$)?d(f):!0}),l.length||a(p)}function d(f){var $=f[0];Rt(f[1].slide,En),i($,"load error",at(C,f)),Z($,"src",At($,_e)),Z($,"srcset",At($,Xe)),Bt($,_e),Bt($,Xe)}function C(f,$){var M=f[0],P=f[1];Nt(P.slide,En),$.type!=="error"&&(te(f[2]),Ae(M,""),c(Mn,M,P),c(me)),s&&b()}function b(){l.length&&d(l.shift())}return{mount:w,destroy:at(zt,l),check:u}}function Zi(t,e,n){var o=gt(t),r=o.on,a=o.emit,i=o.bind,c=e.Slides,s=e.Elements,p=e.Controller,l=p.hasFocus,w=p.getIndex,y=p.go,m=e.Direction.resolve,u=s.pagination,d=[],C,b;function f(){$(),r([St,yt,Qe],f);var W=n.pagination;u&&Ae(u,W?"":"none"),W&&(r([jt,on,ne],R),M(),R(),a(zo,{list:C,items:d},L(t.index)))}function $(){C&&(te(u?qt(C.children):C),Nt(C,b),zt(d),C=null),o.destroy()}function M(){var W=t.length,k=n.classes,B=n.i18n,O=n.perPage,U=l()?p.getEnd()+1:Ie(W/O);C=u||ue("ul",k.pagination,s.track.parentElement),Rt(C,b=dn+"--"+h()),Z(C,Wt,"tablist"),Z(C,wt,B.select),Z(C,Dn,h()===cn?"vertical":"");for(var D=0;D<U;D++){var g=ue("li",null,C),A=ue("button",{class:k.page,type:"button"},g),I=c.getIn(D).map(function(v){return v.slide.id}),_=!l()&&O>1?B.pageX:B.slideX;i(A,"click",at(P,D)),n.paginationKeyboard&&i(A,"keydown",at(T,D)),Z(g,Wt,"presentation"),Z(A,Wt,"tab"),Z(A,Ne,I.join(" ")),Z(A,wt,_n(_,D+1)),Z(A,pe,-1),d.push({li:g,button:A,page:D})}}function P(W){y(">"+W,!0)}function T(W,k){var B=d.length,O=Gn(k),U=h(),D=-1;O===m(ln,!1,U)?D=++W%B:O===m(sn,!1,U)?D=(--W+B)%B:O==="Home"?D=0:O==="End"&&(D=B-1);var g=d[D];g&&(To(g.button),y(">"+D),Ot(k,!0))}function h(){return n.paginationDirection||n.direction}function L(W){return d[p.toPage(W)]}function R(){var W=L(w(!0)),k=L(w());if(W){var B=W.button;Nt(B,ee),Bt(B,ao),Z(B,pe,-1)}if(k){var O=k.button;Rt(O,ee),Z(O,ao,!0),Z(O,pe,"")}a(jo,{list:C,items:d},W,k)}return{items:d,mount:f,destroy:$,getAt:L,update:R}}var Qi=[" ","Enter"];function ta(t,e,n){var o=n.isNavigation,r=n.slideFocus,a=[];function i(){t.splides.forEach(function(u){u.isParent||(p(t,u.splide),p(u.splide,t))}),o&&l()}function c(){a.forEach(function(u){u.destroy()}),zt(a)}function s(){c(),i()}function p(u,d){var C=gt(u);C.on(jt,function(b,f,$){d.go(d.is(ve)?$:b)}),a.push(C)}function l(){var u=gt(t),d=u.on;d(Pn,y),d(Ho,m),d([Xt,St],w),a.push(u),u.emit(Wn,t.splides)}function w(){Z(e.Elements.list,Dn,n.direction===cn?"vertical":"")}function y(u){t.go(u.index)}function m(u,d){Fn(Qi,Gn(d))&&(y(u),Ot(d))}return{setup:at(e.Media.set,{slideFocus:Re(r)?o:r},!0),mount:i,destroy:c,remount:s}}function ea(t,e,n){var o=gt(t),r=o.bind,a=0;function i(){n.wheel&&r(e.Elements.track,"wheel",c,le)}function c(p){if(p.cancelable){var l=p.deltaY,w=l<0,y=Cn(p),m=n.wheelMinThreshold||0,u=n.wheelSleep||0;xt(l)>m&&y-a>u&&(t.go(w?"<":">"),a=y),s(w)&&Ot(p)}}function s(p){return!n.releaseWheel||t.state.is(he)||e.Controller.getAdjacent(p)!==-1}return{mount:i}}var na=90;function oa(t,e,n){var o=gt(t),r=o.on,a=e.Elements.track,i=n.live&&!n.isNavigation,c=ue("span",xi),s=rn(na,at(l,!1));function p(){i&&(y(!e.Autoplay.isPaused()),Z(a,co,!0),c.textContent="…",r(zn,at(y,!0)),r(jn,at(y,!1)),r([ye,ne],at(l,!0)))}function l(m){Z(a,lo,m),m?(Ve(a,c),s.start()):(te(c),s.cancel())}function w(){Bt(a,[so,co,lo]),te(c)}function y(m){i&&Z(a,so,m?"off":"polite")}return{mount:p,disable:y,destroy:w}}var ra=Object.freeze({__proto__:null,Media:di,Direction:gi,Elements:Ei,Slides:Ai,Layout:Ii,Clones:Fi,Move:Ri,Controller:Bi,Arrows:Pi,Autoplay:Wi,Cover:zi,Scroll:Yi,Drag:Gi,Keyboard:Xi,LazyLoad:Ji,Pagination:Zi,Sync:ta,Wheel:ea,Live:oa}),ia={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"},aa={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:_i,i18n:ia,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function sa(t,e,n){var o=e.Slides;function r(){gt(t).on([Xt,yt],a)}function a(){o.forEach(function(c){c.style("transform","translateX(-"+100*c.index+"%)")})}function i(c,s){o.style("transition","opacity "+n.speed+"ms "+n.easing),Co(s)}return{mount:r,start:i,cancel:xn}}function la(t,e,n){var o=e.Move,r=e.Controller,a=e.Scroll,i=e.Elements.list,c=at(Lt,i,"transition"),s;function p(){gt(t).bind(i,"transitionend",function(m){m.target===i&&s&&(w(),s())})}function l(m,u){var d=o.toPosition(m,!0),C=o.getPosition(),b=y(m);xt(d-C)>=1&&b>=1?n.useScroll?a.scroll(d,b,!1,u):(c("transform "+b+"ms "+n.easing),o.translate(d,!0),s=u):(o.jump(m),u())}function w(){c(""),a.cancel()}function y(m){var u=n.rewindSpeed;if(t.is(fe)&&u){var d=r.getIndex(!0),C=r.getEnd();if(d===0&&m>=C||d>=C&&m===0)return u}return n.speed}return{mount:p,start:l,cancel:w}}var ca=(function(){function t(n,o){this.event=gt(),this.Components={},this.state=ui(ce),this.splides=[],this._o={},this._E={};var r=Yt(n)?Lo(document,n):n;$e(r,r+" is invalid."),this.root=r,o=Ut({label:At(r,wt)||"",labelledby:At(r,Hn)||""},aa,t.defaults,o||{});try{Ut(o,JSON.parse(At(r,Vn)))}catch{$e(!1,"Invalid JSON")}this._o=Object.create(Ut({},o))}var e=t.prototype;return e.mount=function(o,r){var a=this,i=this.state,c=this.Components;$e(i.is([ce,Ke]),"Already mounted!"),i.set(ce),this._C=c,this._T=r||this._T||(this.is(We)?sa:la),this._E=o||this._E;var s=Le({},ra,this._E,{Transition:this._T});return Qt(s,function(p,l){var w=p(a,c,a._o);c[l]=w,w.setup&&w.setup()}),Qt(c,function(p){p.mount&&p.mount()}),this.emit(Xt),Rt(this.root,Ci),i.set(ge),this.emit(wn),this},e.sync=function(o){return this.splides.push({splide:o}),o.splides.push({splide:this,isParent:!0}),this.state.is(ge)&&(this._C.Sync.remount(),o.Components.Sync.remount()),this},e.go=function(o){return this._C.Controller.go(o),this},e.on=function(o,r){return this.event.on(o,r),this},e.off=function(o){return this.event.off(o),this},e.emit=function(o){var r;return(r=this.event).emit.apply(r,[o].concat(qt(arguments,1))),this},e.add=function(o,r){return this._C.Slides.add(o,r),this},e.remove=function(o){return this._C.Slides.remove(o),this},e.is=function(o){return this._o.type===o},e.refresh=function(){return this.emit(yt),this},e.destroy=function(o){o===void 0&&(o=!0);var r=this.event,a=this.state;return a.is(ce)?gt(this).on(wn,this.destroy.bind(this,o)):(Qt(this._C,function(i){i.destroy&&i.destroy(o)},!0),r.emit(Nn),r.destroy(),o&&zt(this.splides),a.set(Ke)),this},ii(t,[{key:"options",get:function(){return this._o},set:function(o){this._C.Media.set(o,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),t})(),qn=ca;qn.defaults={};qn.STATES=si;var mo=[[Xt,"onMounted"],[wn,"onReady"],[jt,"onMove"],[ye,"onMoved"],[Pn,"onClick"],[ko,"onActive"],[Fo,"onInactive"],[Ro,"onVisible"],[Bo,"onHidden"],[yt,"onRefresh"],[St,"onUpdated"],[me,"onResize"],[nn,"onResized"],[Vo,"onDrag"],[Oo,"onDragging"],[Po,"onDragged"],[on,"onScroll"],[ne,"onScrolled"],[Nn,"onDestroy"],[No,"onArrowsMounted"],[Wo,"onArrowsUpdated"],[zo,"onPaginationMounted"],[jo,"onPaginationUpdated"],[Wn,"onNavigationMounted"],[zn,"onAutoplayPlay"],[Mo,"onAutoplayPlaying"],[jn,"onAutoplayPause"],[Mn,"onLazyLoadLoaded"]];function Xn(...t){return t.filter(Boolean).join(" ")}function tn(t){return t!==null&&typeof t=="object"}function Ln(t,e){if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&!t.some((n,o)=>!Ln(n,e[o]));if(tn(t)&&tn(e)){const n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&!n.some(r=>!Object.prototype.hasOwnProperty.call(e,r)||!Ln(t[r],e[r]))}return t===e}function ua(t,e){return t.length===e.length&&!t.some((n,o)=>n!==e[o])}function pa(t,e){if(t){const n=Object.keys(t);for(let o=0;o<n.length;o++){const r=n[o];if(r!=="__proto__"&&e(t[r],r)===!1)break}}return t}function An(t,e){const n=t;return pa(e,(o,r)=>{Array.isArray(o)?n[r]=o.slice():tn(o)?n[r]=An(tn(n[r])?n[r]:{},o):n[r]=o}),n}var da=({children:t,className:e,...n})=>j.createElement("div",{className:Xn("splide__track",e),...n},j.createElement("ul",{className:"splide__list"},t)),rr=class extends j.Component{constructor(){super(...arguments),this.splideRef=j.createRef(),this.slides=[]}componentDidMount(){const{options:t,extensions:e,transition:n}=this.props,{current:o}=this.splideRef;o&&(this.splide=new qn(o,t),this.bind(this.splide),this.splide.mount(e,n),this.options=An({},t||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){if(!this.splide)return;const{options:t}=this.props;t&&!Ln(this.options,t)&&(this.splide.options=t,this.options=An({},t));const e=this.getSlides();ua(this.slides,e)||(this.splide.refresh(),this.slides=e)}sync(t){var e;(e=this.splide)==null||e.sync(t)}go(t){var e;(e=this.splide)==null||e.go(t)}getSlides(){var t;if(this.splide){const e=(t=this.splide.Components.Elements)==null?void 0:t.list.children;return e&&Array.prototype.slice.call(e)||[]}return[]}bind(t){mo.forEach(([e,n])=>{const o=this.props[n];typeof o=="function"&&t.on(e,(...r)=>{o(t,...r)})})}omit(t,e){return e.forEach(n=>{Object.prototype.hasOwnProperty.call(t,n)&&delete t[n]}),t}render(){const{className:t,tag:e="div",hasTrack:n=!0,children:o,...r}=this.props;return j.createElement(e,{className:Xn("splide",t),ref:this.splideRef,...this.omit(r,["options",...mo.map(a=>a[1])])},n?j.createElement(da,null,o):o)}},ir=({children:t,className:e,...n})=>j.createElement("li",{className:Xn("splide__slide",e),...n},t);/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),j=require("react"),ge=require("classnames"),F=require("./useScopedStyles-DpVdqfXj.js"),gr=require("react-dom");function mr(e){return e.type==="object"&&e.version===1}const fr="ControlSlider-module__wrapper___sHEkd",hr="ControlSlider-module__hoverArrow___A-dOH",yr="ControlSlider-module__sliderItem___QQSkR",vr="ControlSlider-module__sliderImage___9hRl-",br="ControlSlider-module__arrow___05ghY",Sr="ControlSlider-module__arrowVertical___tBfVN",xr="ControlSlider-module__nextArrow___-30Yc",Cr="ControlSlider-module__arrowInner___aEra3",$r="ControlSlider-module__arrowIcon___S4ztF",_r="ControlSlider-module__arrowImg___2dwJW",wr="ControlSlider-module__mirror___brd6U",Tr="ControlSlider-module__pagination___bicLF",Er="ControlSlider-module__paginationInner___bT-P-",Lr="ControlSlider-module__paginationVertical___zYqKw",Ar="ControlSlider-module__paginationItem___nTRbk",Ir="ControlSlider-module__dot___p1Qun",kr="ControlSlider-module__activeDot___LHFaj",Fr="ControlSlider-module__paginationInsideBottom___R3FWn",Rr="ControlSlider-module__paginationInsideTop___V-qb-",Pr="ControlSlider-module__paginationOutsideBottom___14w8D",Vr="ControlSlider-module__paginationOutsideTop___SCLqB",Br="ControlSlider-module__paginationInsideLeft___yOBRZ",Or="ControlSlider-module__paginationInsideRight___Rtt3o",Wr="ControlSlider-module__paginationOutsideLeft___lahaw",Nr="ControlSlider-module__paginationOutsideRight___EtuQa",zr="ControlSlider-module__imgWrapper___UjEgB",jr="ControlSlider-module__captionBlock___dJ6-j",Mr="ControlSlider-module__captionTextWrapper___HFlpf",Hr="ControlSlider-module__captionText___uGBVc",Dr="ControlSlider-module__active___WZK4G",Ur="ControlSlider-module__withPointerEvents___t-18M",Gr="ControlSlider-module__topLeftAlignment___zjnGM",Yr="ControlSlider-module__topCenterAlignment___gD1xW",qr="ControlSlider-module__topRightAlignment___NMapS",Xr="ControlSlider-module__middleLeftAlignment___OnUrY",Kr="ControlSlider-module__middleCenterAlignment___Tdkl0",Jr="ControlSlider-module__middleRightAlignment___wEbfX",Zr="ControlSlider-module__bottomLeftAlignment___cTP2-",Qr="ControlSlider-module__bottomCenterAlignment___c54fB",ei="ControlSlider-module__bottomRightAlignment___kEwrz",ti="ControlSlider-module__clickOverlay___DZA28",ni="ControlSlider-module__contain___pLyq7",oi="ControlSlider-module__cover___KdDat",G={wrapper:fr,hoverArrow:hr,sliderItem:yr,sliderImage:vr,arrow:br,arrowVertical:Sr,nextArrow:xr,arrowInner:Cr,arrowIcon:$r,arrowImg:_r,mirror:wr,pagination:Tr,paginationInner:Er,paginationVertical:Lr,paginationItem:Ar,dot:Ir,activeDot:kr,paginationInsideBottom:Fr,paginationInsideTop:Rr,paginationOutsideBottom:Pr,paginationOutsideTop:Vr,paginationInsideLeft:Br,paginationInsideRight:Or,paginationOutsideLeft:Wr,paginationOutsideRight:Nr,imgWrapper:zr,captionBlock:jr,captionTextWrapper:Mr,captionText:Hr,active:Dr,withPointerEvents:Ur,topLeftAlignment:Gr,topCenterAlignment:Yr,topRightAlignment:qr,middleLeftAlignment:Xr,middleCenterAlignment:Kr,middleRightAlignment:Jr,bottomLeftAlignment:Zr,bottomCenterAlignment:Qr,bottomRightAlignment:ei,clickOverlay:ti,contain:ni,cover:oi};function ri(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ii(e,t,n){return t&&ri(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var eo="(prefers-reduced-motion: reduce)",ut=1,ai=2,ft=3,vt=4,Rt=5,qt=6,Zt=7,li={CREATED:ut,MOUNTED:ai,IDLE:ft,MOVING:vt,SCROLLING:Rt,DRAGGING:qt,DESTROYED:Zt};function De(e){e.length=0}function Je(e,t,n){return Array.prototype.slice.call(e,t,n)}function ue(e){return e.bind.apply(e,[null].concat(Je(arguments,1)))}var Co=setTimeout,$n=function(){};function to(e){return requestAnimationFrame(e)}function on(e,t){return typeof t===e}function Tt(e){return!Rn(e)&&on("object",e)}var Fn=Array.isArray,$o=ue(on,"function"),Xe=ue(on,"string"),Pt=ue(on,"undefined");function Rn(e){return e===null}function _o(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function Vt(e){return Fn(e)?e:[e]}function Ee(e,t){Vt(e).forEach(t)}function Pn(e,t){return e.indexOf(t)>-1}function Xt(e,t){return e.push.apply(e,Vt(t)),e}function je(e,t,n){e&&Ee(t,function(o){o&&e.classList[n?"add":"remove"](o)})}function Fe(e,t){je(e,Xe(t)?t.split(" "):t,!0)}function Bt(e,t){Ee(t,e.appendChild.bind(e))}function Vn(e,t){Ee(e,function(n){var o=(t||n).parentNode;o&&o.insertBefore(n,t)})}function Et(e,t){return _o(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function wo(e,t){var n=e?Je(e.children):[];return t?n.filter(function(o){return Et(o,t)}):n}function Ot(e,t){return t?wo(e,t)[0]:e.firstElementChild}var Lt=Object.keys;function nt(e,t,n){return e&&(n?Lt(e).reverse():Lt(e)).forEach(function(o){o!=="__proto__"&&t(e[o],o)}),e}function At(e){return Je(arguments,1).forEach(function(t){nt(t,function(n,o){e[o]=t[o]})}),e}function qe(e){return Je(arguments,1).forEach(function(t){nt(t,function(n,o){Fn(n)?e[o]=n.slice():Tt(n)?e[o]=qe({},Tt(e[o])?e[o]:{},n):e[o]=n})}),e}function no(e,t){Ee(t||Lt(e),function(n){delete e[n]})}function Re(e,t){Ee(e,function(n){Ee(t,function(o){n&&n.removeAttribute(o)})})}function Z(e,t,n){Tt(t)?nt(t,function(o,r){Z(e,r,o)}):Ee(e,function(o){Rn(n)||n===""?Re(o,t):o.setAttribute(t,String(n))})}function pt(e,t,n){var o=document.createElement(e);return t&&(Xe(t)?Fe(o,t):Z(o,t)),n&&Bt(n,o),o}function Ae(e,t,n){if(Pt(n))return getComputedStyle(e)[t];Rn(n)||(e.style[t]=""+n)}function It(e,t){Ae(e,"display",t)}function To(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function Ie(e,t){return e.getAttribute(t)}function oo(e,t){return e&&e.classList.contains(t)}function we(e){return e.getBoundingClientRect()}function ot(e){Ee(e,function(t){t&&t.parentNode&&t.parentNode.removeChild(t)})}function Eo(e){return Ot(new DOMParser().parseFromString(e,"text/html").body)}function ze(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function Lo(e,t){return e&&e.querySelector(t)}function Bn(e,t){return t?Je(e.querySelectorAll(t)):[]}function Me(e,t){je(e,t,!1)}function _n(e){return e.timeStamp}function et(e){return Xe(e)?e:e?e+"px":""}var Wt="splide",On="data-"+Wt;function _t(e,t){if(!e)throw new Error("["+Wt+"] "+(t||""))}var Ke=Math.min,Qt=Math.max,en=Math.floor,kt=Math.ceil,Ce=Math.abs;function Ao(e,t,n){return Ce(e-t)<n}function Kt(e,t,n,o){var r=Ke(t,n),a=Qt(t,n);return o?r<e&&e<a:r<=e&&e<=a}function st(e,t,n){var o=Ke(t,n),r=Qt(t,n);return Ke(Qt(o,e),r)}function wn(e){return+(e>0)-+(e<0)}function Tn(e,t){return Ee(t,function(n){e=e.replace("%s",""+n)}),e}function Wn(e){return e<10?"0"+e:""+e}var ro={};function si(e){return""+e+Wn(ro[e]=(ro[e]||0)+1)}function Io(){var e=[];function t(i,l,s,p){r(i,l,function(c,_,y){var g="addEventListener"in c,u=g?c.removeEventListener.bind(c,_,s,p):c.removeListener.bind(c,s);g?c.addEventListener(_,s,p):c.addListener(s),e.push([c,_,y,s,u])})}function n(i,l,s){r(i,l,function(p,c,_){e=e.filter(function(y){return y[0]===p&&y[1]===c&&y[2]===_&&(!s||y[3]===s)?(y[4](),!1):!0})})}function o(i,l,s){var p,c=!0;return typeof CustomEvent=="function"?p=new CustomEvent(l,{bubbles:c,detail:s}):(p=document.createEvent("CustomEvent"),p.initCustomEvent(l,c,!1,s)),i.dispatchEvent(p),p}function r(i,l,s){Ee(i,function(p){p&&Ee(l,function(c){c.split(" ").forEach(function(_){var y=_.split(".");s(p,y[0],y[1])})})})}function a(){e.forEach(function(i){i[4]()}),De(e)}return{bind:t,unbind:n,dispatch:o,destroy:a}}var Ze="mounted",En="ready",Ue="move",bt="moved",Nn="click",ko="active",Fo="inactive",Ro="visible",Po="hidden",ve="refresh",Se="updated",ht="resize",rn="resized",Vo="drag",Bo="dragging",Oo="dragged",an="scroll",it="scrolled",ci="overflow",zn="destroy",Wo="arrows:mounted",No="arrows:updated",zo="pagination:mounted",jo="pagination:updated",jn="navigation:mounted",Mn="autoplay:play",Mo="autoplay:playing",Hn="autoplay:pause",Dn="lazyload:loaded",Ho="sk",Do="sh",tn="ei";function me(e){var t=e?e.event.bus:document.createDocumentFragment(),n=Io();function o(a,i){n.bind(t,Vt(a).join(" "),function(l){i.apply(i,Fn(l.detail)?l.detail:[])})}function r(a){n.dispatch(t,a,Je(arguments,1))}return e&&e.event.on(zn,n.destroy),At(n,{bus:t,on:o,off:ue(n.unbind,t),emit:r})}function ln(e,t,n,o){var r=Date.now,a,i=0,l,s=!0,p=0;function c(){if(!s){if(i=e?Ke((r()-a)/e,1):1,n&&n(i),i>=1&&(t(),a=r(),o&&++p>=o))return y();l=to(c)}}function _(v){v||u(),a=r()-(v?i*e:0),s=!1,l=to(c)}function y(){s=!0}function g(){a=r(),i=0,n&&n(i)}function u(){l&&cancelAnimationFrame(l),i=0,l=0,s=!0}function d(v){e=v}function C(){return s}return{start:_,rewind:g,pause:y,cancel:u,set:d,isPaused:C}}function ui(e){var t=e;function n(r){t=r}function o(r){return Pn(Vt(r),t)}return{set:n,is:o}}function pi(e,t){var n=ln(0,e,null,1);return function(){n.isPaused()&&n.start()}}function di(e,t,n){var o=e.state,r=n.breakpoints||{},a=n.reducedMotion||{},i=Io(),l=[];function s(){var u=n.mediaQuery==="min";Lt(r).sort(function(d,C){return u?+d-+C:+C-+d}).forEach(function(d){c(r[d],"("+(u?"min":"max")+"-width:"+d+"px)")}),c(a,eo),_()}function p(u){u&&i.destroy()}function c(u,d){var C=matchMedia(d);i.bind(C,"change",_),l.push([u,C])}function _(){var u=o.is(Zt),d=n.direction,C=l.reduce(function(v,f){return qe(v,f[1].matches?f[0]:{})},{});no(n),g(C),n.destroy?e.destroy(n.destroy==="completely"):u?(p(!0),e.mount()):d!==n.direction&&e.refresh()}function y(u){matchMedia(eo).matches&&(u?qe(n,a):no(n,Lt(a)))}function g(u,d,C){qe(n,u),d&&qe(Object.getPrototypeOf(n),u),(C||!o.is(ut))&&e.emit(Se,n)}return{setup:s,destroy:p,reduce:y,set:g}}var sn="Arrow",cn=sn+"Left",un=sn+"Right",Uo=sn+"Up",Go=sn+"Down",io="rtl",pn="ttb",yn={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Uo,un],ArrowRight:[Go,cn]};function gi(e,t,n){function o(a,i,l){l=l||n.direction;var s=l===io&&!i?1:l===pn?0:-1;return yn[a]&&yn[a][s]||a.replace(/width|left|right/i,function(p,c){var _=yn[p.toLowerCase()][s]||p;return c>0?_.charAt(0).toUpperCase()+_.slice(1):_})}function r(a){return a*(n.direction===io?1:-1)}return{resolve:o,orient:r}}var He="role",dt="tabindex",mi="disabled",ke="aria-",Nt=ke+"controls",Yo=ke+"current",ao=ke+"selected",Te=ke+"label",Un=ke+"labelledby",qo=ke+"hidden",Gn=ke+"orientation",Ft=ke+"roledescription",lo=ke+"live",so=ke+"busy",co=ke+"atomic",Yn=[He,dt,mi,Nt,Yo,Te,Un,qo,Gn,Ft],Pe=Wt+"__",Qe="is-",vn=Wt,uo=Pe+"track",fi=Pe+"list",dn=Pe+"slide",Xo=dn+"--clone",hi=dn+"__container",qn=Pe+"arrows",gn=Pe+"arrow",Ko=gn+"--prev",Jo=gn+"--next",mn=Pe+"pagination",Zo=mn+"__page",yi=Pe+"progress",vi=yi+"__bar",bi=Pe+"toggle",Si=Pe+"spinner",xi=Pe+"sr",Ci=Qe+"initialized",rt=Qe+"active",Qo=Qe+"prev",er=Qe+"next",Ln=Qe+"visible",An=Qe+"loading",tr=Qe+"focus-in",nr=Qe+"overflow",$i=[rt,Ln,Qo,er,An,tr,nr],_i={slide:dn,clone:Xo,arrows:qn,arrow:gn,prev:Ko,next:Jo,pagination:mn,page:Zo,spinner:Si};function wi(e,t){if($o(e.closest))return e.closest(t);for(var n=e;n&&n.nodeType===1&&!Et(n,t);)n=n.parentElement;return n}var Ti=5,po=200,or="touchstart mousedown",bn="touchmove mousemove",Sn="touchend touchcancel mouseup click";function Ei(e,t,n){var o=me(e),r=o.on,a=o.bind,i=e.root,l=n.i18n,s={},p=[],c=[],_=[],y,g,u;function d(){$(),M(),f()}function C(){r(ve,v),r(ve,d),r(Se,f),a(document,or+" keydown",function(h){u=h.type==="keydown"},{capture:!0}),a(i,"focusin",function(){je(i,tr,!!u)})}function v(h){var L=Yn.concat("style");De(p),Me(i,c),Me(y,_),Re([y,g],L),Re(i,h?L:["style",Ft])}function f(){Me(i,c),Me(y,_),c=w(vn),_=w(uo),Fe(i,c),Fe(y,_),Z(i,Te,n.label),Z(i,Un,n.labelledby)}function $(){y=O("."+uo),g=Ot(y,"."+fi),_t(y&&g,"A track/list element is missing."),Xt(p,wo(g,"."+dn+":not(."+Xo+")")),nt({arrows:qn,pagination:mn,prev:Ko,next:Jo,bar:vi,toggle:bi},function(h,L){s[L]=O("."+h)}),At(s,{root:i,track:y,list:g,slides:p})}function M(){var h=i.id||si(Wt),L=n.role;i.id=h,y.id=y.id||h+"-track",g.id=g.id||h+"-list",!Ie(i,He)&&i.tagName!=="SECTION"&&L&&Z(i,He,L),Z(i,Ft,l.carousel),Z(g,He,"presentation")}function O(h){var L=Lo(i,h);return L&&wi(L,"."+vn)===i?L:void 0}function w(h){return[h+"--"+n.type,h+"--"+n.direction,n.drag&&h+"--draggable",n.isNavigation&&h+"--nav",h===vn&&rt]}return At(s,{setup:d,mount:C,destroy:v})}var yt="slide",St="loop",zt="fade";function Li(e,t,n,o){var r=me(e),a=r.on,i=r.emit,l=r.bind,s=e.Components,p=e.root,c=e.options,_=c.isNavigation,y=c.updateOnMove,g=c.i18n,u=c.pagination,d=c.slideFocus,C=s.Direction.resolve,v=Ie(o,"style"),f=Ie(o,Te),$=n>-1,M=Ot(o,"."+hi),O;function w(){$||(o.id=p.id+"-slide"+Wn(t+1),Z(o,He,u?"tabpanel":"group"),Z(o,Ft,g.slide),Z(o,Te,f||Tn(g.slideLabel,[t+1,e.length]))),h()}function h(){l(o,"click",ue(i,Nn,E)),l(o,"keydown",ue(i,Ho,E)),a([bt,Do,it],R),a(jn,P),y&&a(Ue,N)}function L(){O=!0,r.destroy(),Me(o,$i),Re(o,Yn),Z(o,"style",v),Z(o,Te,f||"")}function P(){var T=e.splides.map(function(x){var k=x.splide.Components.Slides.getAt(t);return k?k.slide.id:""}).join(" ");Z(o,Te,Tn(g.slideX,($?n:t)+1)),Z(o,Nt,T),Z(o,He,d?"button":""),d&&Re(o,Ft)}function N(){O||R()}function R(){if(!O){var T=e.index;V(),B(),je(o,Qo,t===T-1),je(o,er,t===T+1)}}function V(){var T=H();T!==oo(o,rt)&&(je(o,rt,T),Z(o,Yo,_&&T||""),i(T?ko:Fo,E))}function B(){var T=m(),x=!T&&(!H()||$);if(e.state.is([vt,Rt])||Z(o,qo,x||""),Z(Bn(o,c.focusableNodes||""),dt,x?-1:""),d&&Z(o,dt,x?-1:0),T!==oo(o,Ln)&&(je(o,Ln,T),i(T?Ro:Po,E)),!T&&document.activeElement===o){var k=s.Slides.getAt(e.index);k&&To(k.slide)}}function U(T,x,k){Ae(k&&M||o,T,x)}function H(){var T=e.index;return T===t||c.cloneStatus&&T===n}function m(){if(e.is(zt))return H();var T=we(s.Elements.track),x=we(o),k=C("left",!0),Y=C("right",!0);return en(T[k])<=kt(x[k])&&en(x[Y])<=kt(T[Y])}function I(T,x){var k=Ce(T-t);return!$&&(c.rewind||e.is(St))&&(k=Ke(k,e.length-k)),k<=x}var E={index:t,slideIndex:n,slide:o,container:M,isClone:$,mount:w,destroy:L,update:R,style:U,isWithin:I};return E}function Ai(e,t,n){var o=me(e),r=o.on,a=o.emit,i=o.bind,l=t.Elements,s=l.slides,p=l.list,c=[];function _(){y(),r(ve,g),r(ve,y)}function y(){s.forEach(function(R,V){d(R,V,-1)})}function g(){O(function(R){R.destroy()}),De(c)}function u(){O(function(R){R.update()})}function d(R,V,B){var U=Li(e,V,B,R);U.mount(),c.push(U),c.sort(function(H,m){return H.index-m.index})}function C(R){return R?w(function(V){return!V.isClone}):c}function v(R){var V=t.Controller,B=V.toIndex(R),U=V.hasFocus()?1:n.perPage;return w(function(H){return Kt(H.index,B,B+U-1)})}function f(R){return w(R)[0]}function $(R,V){Ee(R,function(B){if(Xe(B)&&(B=Eo(B)),_o(B)){var U=s[V];U?Vn(B,U):Bt(p,B),Fe(B,n.classes.slide),L(B,ue(a,ht))}}),a(ve)}function M(R){ot(w(R).map(function(V){return V.slide})),a(ve)}function O(R,V){C(V).forEach(R)}function w(R){return c.filter($o(R)?R:function(V){return Xe(R)?Et(V.slide,R):Pn(Vt(R),V.index)})}function h(R,V,B){O(function(U){U.style(R,V,B)})}function L(R,V){var B=Bn(R,"img"),U=B.length;U?B.forEach(function(H){i(H,"load error",function(){--U||V()})}):V()}function P(R){return R?s.length:c.length}function N(){return c.length>n.perPage}return{mount:_,destroy:g,update:u,register:d,get:C,getIn:v,getAt:f,add:$,remove:M,forEach:O,filter:w,style:h,getLength:P,isEnough:N}}function Ii(e,t,n){var o=me(e),r=o.on,a=o.bind,i=o.emit,l=t.Slides,s=t.Direction.resolve,p=t.Elements,c=p.root,_=p.track,y=p.list,g=l.getAt,u=l.style,d,C,v;function f(){$(),a(window,"resize load",pi(ue(i,ht))),r([Se,ve],$),r(ht,M)}function $(){d=n.direction===pn,Ae(c,"maxWidth",et(n.width)),Ae(_,s("paddingLeft"),O(!1)),Ae(_,s("paddingRight"),O(!0)),M(!0)}function M(E){var T=we(c);(E||C.width!==T.width||C.height!==T.height)&&(Ae(_,"height",w()),u(s("marginRight"),et(n.gap)),u("width",L()),u("height",P(),!0),C=T,i(rn),v!==(v=I())&&(je(c,nr,v),i(ci,v)))}function O(E){var T=n.padding,x=s(E?"right":"left");return T&&et(T[x]||(Tt(T)?0:T))||"0px"}function w(){var E="";return d&&(E=h(),_t(E,"height or heightRatio is missing."),E="calc("+E+" - "+O(!1)+" - "+O(!0)+")"),E}function h(){return et(n.height||we(y).width*n.heightRatio)}function L(){return n.autoWidth?null:et(n.fixedWidth)||(d?"":N())}function P(){return et(n.fixedHeight)||(d?n.autoHeight?null:N():h())}function N(){var E=et(n.gap);return"calc((100%"+(E&&" + "+E)+")/"+(n.perPage||1)+(E&&" - "+E)+")"}function R(){return we(y)[s("width")]}function V(E,T){var x=g(E||0);return x?we(x.slide)[s("width")]+(T?0:H()):0}function B(E,T){var x=g(E);if(x){var k=we(x.slide)[s("right")],Y=we(y)[s("left")];return Ce(k-Y)+(T?0:H())}return 0}function U(E){return B(e.length-1)-B(0)+V(0,E)}function H(){var E=g(0);return E&&parseFloat(Ae(E.slide,s("marginRight")))||0}function m(E){return parseFloat(Ae(_,s("padding"+(E?"Right":"Left"))))||0}function I(){return e.is(zt)||U(!0)>R()}return{mount:f,resize:M,listSize:R,slideSize:V,sliderSize:U,totalSize:B,getPadding:m,isOverflow:I}}var ki=2;function Fi(e,t,n){var o=me(e),r=o.on,a=t.Elements,i=t.Slides,l=t.Direction.resolve,s=[],p;function c(){r(ve,_),r([Se,ht],g),(p=C())&&(u(p),t.Layout.resize(!0))}function _(){y(),c()}function y(){ot(s),De(s),o.destroy()}function g(){var v=C();p!==v&&(p<v||!v)&&o.emit(ve)}function u(v){var f=i.get().slice(),$=f.length;if($){for(;f.length<v;)Xt(f,f);Xt(f.slice(-v),f.slice(0,v)).forEach(function(M,O){var w=O<v,h=d(M.slide,O);w?Vn(h,f[0].slide):Bt(a.list,h),Xt(s,h),i.register(h,O-v+(w?0:$),M.index)})}}function d(v,f){var $=v.cloneNode(!0);return Fe($,n.classes.clone),$.id=e.root.id+"-clone"+Wn(f+1),$}function C(){var v=n.clones;if(!e.is(St))v=0;else if(Pt(v)){var f=n[l("fixedWidth")]&&t.Layout.slideSize(0),$=f&&kt(we(a.track)[l("width")]/f);v=$||n[l("autoWidth")]&&e.length||n.perPage*ki}return v}return{mount:c,destroy:y}}function Ri(e,t,n){var o=me(e),r=o.on,a=o.emit,i=e.state.set,l=t.Layout,s=l.slideSize,p=l.getPadding,c=l.totalSize,_=l.listSize,y=l.sliderSize,g=t.Direction,u=g.resolve,d=g.orient,C=t.Elements,v=C.list,f=C.track,$;function M(){$=t.Transition,r([Ze,rn,Se,ve],O)}function O(){t.Controller.isBusy()||(t.Scroll.cancel(),h(e.index),t.Slides.update())}function w(x,k,Y,re){x!==k&&E(x>Y)&&(R(),L(N(U(),x>Y),!0)),i(vt),a(Ue,k,Y,x),$.start(k,function(){i(ft),a(bt,k,Y,x),re&&re()})}function h(x){L(B(x,!0))}function L(x,k){if(!e.is(zt)){var Y=k?x:P(x);Ae(v,"transform","translate"+u("X")+"("+Y+"px)"),x!==Y&&a(Do)}}function P(x){if(e.is(St)){var k=V(x),Y=k>t.Controller.getEnd(),re=k<0;(re||Y)&&(x=N(x,Y))}return x}function N(x,k){var Y=x-I(k),re=y();return x-=d(re*(kt(Ce(Y)/re)||1))*(k?1:-1),x}function R(){L(U(),!0),$.cancel()}function V(x){for(var k=t.Slides.get(),Y=0,re=1/0,te=0;te<k.length;te++){var ie=k[te].index,A=Ce(B(ie,!0)-x);if(A<=re)re=A,Y=ie;else break}return Y}function B(x,k){var Y=d(c(x-1)-m(x));return k?H(Y):Y}function U(){var x=u("left");return we(v)[x]-we(f)[x]+d(p(!1))}function H(x){return n.trimSpace&&e.is(yt)&&(x=st(x,0,d(y(!0)-_()))),x}function m(x){var k=n.focus;return k==="center"?(_()-s(x,!0))/2:+k*s(x)||0}function I(x){return B(x?t.Controller.getEnd():0,!!n.trimSpace)}function E(x){var k=d(N(U(),x));return x?k>=0:k<=v[u("scrollWidth")]-we(f)[u("width")]}function T(x,k){k=Pt(k)?U():k;var Y=x!==!0&&d(k)<d(I(!1)),re=x!==!1&&d(k)>d(I(!0));return Y||re}return{mount:M,move:w,jump:h,translate:L,shift:N,cancel:R,toIndex:V,toPosition:B,getPosition:U,getLimit:I,exceededLimit:T,reposition:O}}function Pi(e,t,n){var o=me(e),r=o.on,a=o.emit,i=t.Move,l=i.getPosition,s=i.getLimit,p=i.toPosition,c=t.Slides,_=c.isEnough,y=c.getLength,g=n.omitEnd,u=e.is(St),d=e.is(yt),C=ue(U,!1),v=ue(U,!0),f=n.start||0,$,M=f,O,w,h;function L(){P(),r([Se,ve,tn],P),r(rn,N)}function P(){O=y(!0),w=n.perMove,h=n.perPage,$=E();var A=st(f,0,g?$:O-1);A!==f&&(f=A,i.reposition())}function N(){$!==E()&&a(tn)}function R(A,K,fe){if(!ie()){var se=B(A),he=I(se);he>-1&&(K||he!==f)&&(Y(he),i.move(se,he,M,fe))}}function V(A,K,fe,se){t.Scroll.scroll(A,K,fe,function(){var he=I(i.toIndex(l()));Y(g?Ke(he,$):he),se&&se()})}function B(A){var K=f;if(Xe(A)){var fe=A.match(/([+\-<>])(\d+)?/)||[],se=fe[1],he=fe[2];se==="+"||se==="-"?K=H(f+ +(""+se+(+he||1)),f):se===">"?K=he?T(+he):C(!0):se==="<"&&(K=v(!0))}else K=u?A:st(A,0,$);return K}function U(A,K){var fe=w||(te()?1:h),se=H(f+fe*(A?-1:1),f,!(w||te()));return se===-1&&d&&!Ao(l(),s(!A),1)?A?0:$:K?se:I(se)}function H(A,K,fe){if(_()||te()){var se=m(A);se!==A&&(K=A,A=se,fe=!1),A<0||A>$?!w&&(Kt(0,A,K,!0)||Kt($,K,A,!0))?A=T(x(A)):u?A=fe?A<0?-(O%h||h):O:A:n.rewind?A=A<0?$:0:A=-1:fe&&A!==K&&(A=T(x(K)+(A<K?-1:1)))}else A=-1;return A}function m(A){if(d&&n.trimSpace==="move"&&A!==f)for(var K=l();K===p(A,!0)&&Kt(A,0,e.length-1,!n.rewind);)A<f?--A:++A;return A}function I(A){return u?(A+O)%O||0:A}function E(){for(var A=O-(te()||u&&w?1:h);g&&A-- >0;)if(p(O-1,!0)!==p(A,!0)){A++;break}return st(A,0,O-1)}function T(A){return st(te()?A:h*A,0,$)}function x(A){return te()?Ke(A,$):en((A>=$?O-1:A)/h)}function k(A){var K=i.toIndex(A);return d?st(K,0,$):K}function Y(A){A!==f&&(M=f,f=A)}function re(A){return A?M:f}function te(){return!Pt(n.focus)||n.isNavigation}function ie(){return e.state.is([vt,Rt])&&!!n.waitForTransition}return{mount:L,go:R,scroll:V,getNext:C,getPrev:v,getAdjacent:U,getEnd:E,setIndex:Y,getIndex:re,toIndex:T,toPage:x,toDest:k,hasFocus:te,isBusy:ie}}var Vi="http://www.w3.org/2000/svg",Bi="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",Ht=40;function Oi(e,t,n){var o=me(e),r=o.on,a=o.bind,i=o.emit,l=n.classes,s=n.i18n,p=t.Elements,c=t.Controller,_=p.arrows,y=p.track,g=_,u=p.prev,d=p.next,C,v,f={};function $(){O(),r(Se,M)}function M(){w(),$()}function O(){var V=n.arrows;V&&!(u&&d)&&P(),u&&d&&(At(f,{prev:u,next:d}),It(g,V?"":"none"),Fe(g,v=qn+"--"+n.direction),V&&(h(),R(),Z([u,d],Nt,y.id),i(Wo,u,d)))}function w(){o.destroy(),Me(g,v),C?(ot(_?[u,d]:g),u=d=null):Re([u,d],Yn)}function h(){r([Ze,bt,ve,it,tn],R),a(d,"click",ue(L,">")),a(u,"click",ue(L,"<"))}function L(V){c.go(V,!0)}function P(){g=_||pt("div",l.arrows),u=N(!0),d=N(!1),C=!0,Bt(g,[u,d]),!_&&Vn(g,y)}function N(V){var B='<button class="'+l.arrow+" "+(V?l.prev:l.next)+'" type="button"><svg xmlns="'+Vi+'" viewBox="0 0 '+Ht+" "+Ht+'" width="'+Ht+'" height="'+Ht+'" focusable="false"><path d="'+(n.arrowPath||Bi)+'" />';return Eo(B)}function R(){if(u&&d){var V=e.index,B=c.getPrev(),U=c.getNext(),H=B>-1&&V<B?s.last:s.prev,m=U>-1&&V>U?s.first:s.next;u.disabled=B<0,d.disabled=U<0,Z(u,Te,H),Z(d,Te,m),i(No,u,d,B,U)}}return{arrows:f,mount:$,destroy:w,update:R}}var Wi=On+"-interval";function Ni(e,t,n){var o=me(e),r=o.on,a=o.bind,i=o.emit,l=ln(n.interval,e.go.bind(e,">"),h),s=l.isPaused,p=t.Elements,c=t.Elements,_=c.root,y=c.toggle,g=n.autoplay,u,d,C=g==="pause";function v(){g&&(f(),y&&Z(y,Nt,p.track.id),C||$(),w())}function f(){n.pauseOnHover&&a(_,"mouseenter mouseleave",function(P){u=P.type==="mouseenter",O()}),n.pauseOnFocus&&a(_,"focusin focusout",function(P){d=P.type==="focusin",O()}),y&&a(y,"click",function(){C?$():M(!0)}),r([Ue,an,ve],l.rewind),r(Ue,L)}function $(){s()&&t.Slides.isEnough()&&(l.start(!n.resetProgress),d=u=C=!1,w(),i(Mn))}function M(P){P===void 0&&(P=!0),C=!!P,w(),s()||(l.pause(),i(Hn))}function O(){C||(u||d?M(!1):$())}function w(){y&&(je(y,rt,!C),Z(y,Te,n.i18n[C?"play":"pause"]))}function h(P){var N=p.bar;N&&Ae(N,"width",P*100+"%"),i(Mo,P)}function L(P){var N=t.Slides.getAt(P);l.set(N&&+Ie(N.slide,Wi)||n.interval)}return{mount:v,destroy:l.cancel,play:$,pause:M,isPaused:s}}function zi(e,t,n){var o=me(e),r=o.on;function a(){n.cover&&(r(Dn,ue(l,!0)),r([Ze,Se,ve],ue(i,!0)))}function i(s){t.Slides.forEach(function(p){var c=Ot(p.container||p.slide,"img");c&&c.src&&l(s,c,p)})}function l(s,p,c){c.style("background",s?'center/cover no-repeat url("'+p.src+'")':"",!0),It(p,s?"none":"")}return{mount:a,destroy:ue(i,!1)}}var ji=10,Mi=600,Hi=.6,Di=1.5,Ui=800;function Gi(e,t,n){var o=me(e),r=o.on,a=o.emit,i=e.state.set,l=t.Move,s=l.getPosition,p=l.getLimit,c=l.exceededLimit,_=l.translate,y=e.is(yt),g,u,d=1;function C(){r(Ue,M),r([Se,ve],O)}function v(h,L,P,N,R){var V=s();if(M(),P&&(!y||!c())){var B=t.Layout.sliderSize(),U=wn(h)*B*en(Ce(h)/B)||0;h=l.toPosition(t.Controller.toDest(h%B))+U}var H=Ao(V,h,1);d=1,L=H?0:L||Qt(Ce(h-V)/Di,Ui),u=N,g=ln(L,f,ue($,V,h,R),1),i(Rt),a(an),g.start()}function f(){i(ft),u&&u(),a(it)}function $(h,L,P,N){var R=s(),V=h+(L-h)*w(N),B=(V-R)*d;_(R+B),y&&!P&&c()&&(d*=Hi,Ce(B)<ji&&v(p(c(!0)),Mi,!1,u,!0))}function M(){g&&g.cancel()}function O(){g&&!g.isPaused()&&(M(),f())}function w(h){var L=n.easingFunc;return L?L(h):1-Math.pow(1-h,4)}return{mount:C,destroy:M,scroll:v,cancel:O}}var ct={passive:!1,capture:!0};function Yi(e,t,n){var o=me(e),r=o.on,a=o.emit,i=o.bind,l=o.unbind,s=e.state,p=t.Move,c=t.Scroll,_=t.Controller,y=t.Elements.track,g=t.Media.reduce,u=t.Direction,d=u.resolve,C=u.orient,v=p.getPosition,f=p.exceededLimit,$,M,O,w,h,L=!1,P,N,R;function V(){i(y,bn,$n,ct),i(y,Sn,$n,ct),i(y,or,U,ct),i(y,"click",I,{capture:!0}),i(y,"dragstart",ze),r([Ze,Se],B)}function B(){var z=n.drag;Ge(!z),w=z==="free"}function U(z){if(P=!1,!N){var b=he(z);se(z.target)&&(b||!z.button)&&(_.isBusy()?ze(z,!0):(R=b?y:window,h=s.is([vt,Rt]),O=null,i(R,bn,H,ct),i(R,Sn,m,ct),p.cancel(),c.cancel(),E(z)))}}function H(z){if(s.is(qt)||(s.set(qt),a(Vo)),z.cancelable)if(h){p.translate($+fe(te(z)));var b=ie(z)>po,D=L!==(L=f());(b||D)&&E(z),P=!0,a(Bo),ze(z)}else k(z)&&(h=x(z),ze(z))}function m(z){s.is(qt)&&(s.set(ft),a(Oo)),h&&(T(z),ze(z)),l(R,bn,H),l(R,Sn,m),h=!1}function I(z){!N&&P&&ze(z,!0)}function E(z){O=M,M=z,$=v()}function T(z){var b=Y(z),D=re(b),q=n.rewind&&n.rewindByDrag;g(!1),w?_.scroll(D,0,n.snap):e.is(zt)?_.go(C(wn(b))<0?q?"<":"-":q?">":"+"):e.is(yt)&&L&&q?_.go(f(!0)?">":"<"):_.go(_.toDest(D),!0),g(!0)}function x(z){var b=n.dragMinThreshold,D=Tt(b),q=D&&b.mouse||0,J=(D?b.touch:+b)||10;return Ce(te(z))>(he(z)?J:q)}function k(z){return Ce(te(z))>Ce(te(z,!0))}function Y(z){if(e.is(St)||!L){var b=ie(z);if(b&&b<po)return te(z)/b}return 0}function re(z){return v()+wn(z)*Ke(Ce(z)*(n.flickPower||600),w?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}function te(z,b){return K(z,b)-K(A(z),b)}function ie(z){return _n(z)-_n(A(z))}function A(z){return M===z&&O||M}function K(z,b){return(he(z)?z.changedTouches[0]:z)["page"+d(b?"Y":"X")]}function fe(z){return z/(L&&e.is(yt)?Ti:1)}function se(z){var b=n.noDrag;return!Et(z,"."+Zo+", ."+gn)&&(!b||!Et(z,b))}function he(z){return typeof TouchEvent<"u"&&z instanceof TouchEvent}function be(){return h}function Ge(z){N=z}return{mount:V,disable:Ge,isDragging:be}}var qi={Spacebar:" ",Right:un,Left:cn,Up:Uo,Down:Go};function Xn(e){return e=Xe(e)?e:e.key,qi[e]||e}var go="keydown";function Xi(e,t,n){var o=me(e),r=o.on,a=o.bind,i=o.unbind,l=e.root,s=t.Direction.resolve,p,c;function _(){y(),r(Se,g),r(Se,y),r(Ue,d)}function y(){var v=n.keyboard;v&&(p=v==="global"?window:l,a(p,go,C))}function g(){i(p,go)}function u(v){c=v}function d(){var v=c;c=!0,Co(function(){c=v})}function C(v){if(!c){var f=Xn(v);f===s(cn)?e.go("<"):f===s(un)&&e.go(">")}}return{mount:_,destroy:g,disable:u}}var wt=On+"-lazy",Jt=wt+"-srcset",Ki="["+wt+"], ["+Jt+"]";function Ji(e,t,n){var o=me(e),r=o.on,a=o.off,i=o.bind,l=o.emit,s=n.lazyLoad==="sequential",p=[bt,it],c=[];function _(){n.lazyLoad&&(y(),r(ve,y))}function y(){De(c),g(),s?v():(a(p),r(p,u),u())}function g(){t.Slides.forEach(function(f){Bn(f.slide,Ki).forEach(function($){var M=Ie($,wt),O=Ie($,Jt);if(M!==$.src||O!==$.srcset){var w=n.classes.spinner,h=$.parentElement,L=Ot(h,"."+w)||pt("span",w,h);c.push([$,f,L]),$.src||It($,"none")}})})}function u(){c=c.filter(function(f){var $=n.perPage*((n.preloadPages||1)+1)-1;return f[1].isWithin(e.index,$)?d(f):!0}),c.length||a(p)}function d(f){var $=f[0];Fe(f[1].slide,An),i($,"load error",ue(C,f)),Z($,"src",Ie($,wt)),Z($,"srcset",Ie($,Jt)),Re($,wt),Re($,Jt)}function C(f,$){var M=f[0],O=f[1];Me(O.slide,An),$.type!=="error"&&(ot(f[2]),It(M,""),l(Dn,M,O),l(ht)),s&&v()}function v(){c.length&&d(c.shift())}return{mount:_,destroy:ue(De,c),check:u}}function Zi(e,t,n){var o=me(e),r=o.on,a=o.emit,i=o.bind,l=t.Slides,s=t.Elements,p=t.Controller,c=p.hasFocus,_=p.getIndex,y=p.go,g=t.Direction.resolve,u=s.pagination,d=[],C,v;function f(){$(),r([Se,ve,tn],f);var N=n.pagination;u&&It(u,N?"":"none"),N&&(r([Ue,an,it],P),M(),P(),a(zo,{list:C,items:d},L(e.index)))}function $(){C&&(ot(u?Je(C.children):C),Me(C,v),De(d),C=null),o.destroy()}function M(){var N=e.length,R=n.classes,V=n.i18n,B=n.perPage,U=c()?p.getEnd()+1:kt(N/B);C=u||pt("ul",R.pagination,s.track.parentElement),Fe(C,v=mn+"--"+h()),Z(C,He,"tablist"),Z(C,Te,V.select),Z(C,Gn,h()===pn?"vertical":"");for(var H=0;H<U;H++){var m=pt("li",null,C),I=pt("button",{class:R.page,type:"button"},m),E=l.getIn(H).map(function(x){return x.slide.id}),T=!c()&&B>1?V.pageX:V.slideX;i(I,"click",ue(O,H)),n.paginationKeyboard&&i(I,"keydown",ue(w,H)),Z(m,He,"presentation"),Z(I,He,"tab"),Z(I,Nt,E.join(" ")),Z(I,Te,Tn(T,H+1)),Z(I,dt,-1),d.push({li:m,button:I,page:H})}}function O(N){y(">"+N,!0)}function w(N,R){var V=d.length,B=Xn(R),U=h(),H=-1;B===g(un,!1,U)?H=++N%V:B===g(cn,!1,U)?H=(--N+V)%V:B==="Home"?H=0:B==="End"&&(H=V-1);var m=d[H];m&&(To(m.button),y(">"+H),ze(R,!0))}function h(){return n.paginationDirection||n.direction}function L(N){return d[p.toPage(N)]}function P(){var N=L(_(!0)),R=L(_());if(N){var V=N.button;Me(V,rt),Re(V,ao),Z(V,dt,-1)}if(R){var B=R.button;Fe(B,rt),Z(B,ao,!0),Z(B,dt,"")}a(jo,{list:C,items:d},N,R)}return{items:d,mount:f,destroy:$,getAt:L,update:P}}var Qi=[" ","Enter"];function ea(e,t,n){var o=n.isNavigation,r=n.slideFocus,a=[];function i(){e.splides.forEach(function(u){u.isParent||(p(e,u.splide),p(u.splide,e))}),o&&c()}function l(){a.forEach(function(u){u.destroy()}),De(a)}function s(){l(),i()}function p(u,d){var C=me(u);C.on(Ue,function(v,f,$){d.go(d.is(St)?$:v)}),a.push(C)}function c(){var u=me(e),d=u.on;d(Nn,y),d(Ho,g),d([Ze,Se],_),a.push(u),u.emit(jn,e.splides)}function _(){Z(t.Elements.list,Gn,n.direction===pn?"vertical":"")}function y(u){e.go(u.index)}function g(u,d){Pn(Qi,Xn(d))&&(y(u),ze(d))}return{setup:ue(t.Media.set,{slideFocus:Pt(r)?o:r},!0),mount:i,destroy:l,remount:s}}function ta(e,t,n){var o=me(e),r=o.bind,a=0;function i(){n.wheel&&r(t.Elements.track,"wheel",l,ct)}function l(p){if(p.cancelable){var c=p.deltaY,_=c<0,y=_n(p),g=n.wheelMinThreshold||0,u=n.wheelSleep||0;Ce(c)>g&&y-a>u&&(e.go(_?"<":">"),a=y),s(_)&&ze(p)}}function s(p){return!n.releaseWheel||e.state.is(vt)||t.Controller.getAdjacent(p)!==-1}return{mount:i}}var na=90;function oa(e,t,n){var o=me(e),r=o.on,a=t.Elements.track,i=n.live&&!n.isNavigation,l=pt("span",xi),s=ln(na,ue(c,!1));function p(){i&&(y(!t.Autoplay.isPaused()),Z(a,co,!0),l.textContent="…",r(Mn,ue(y,!0)),r(Hn,ue(y,!1)),r([bt,it],ue(c,!0)))}function c(g){Z(a,so,g),g?(Bt(a,l),s.start()):(ot(l),s.cancel())}function _(){Re(a,[lo,co,so]),ot(l)}function y(g){i&&Z(a,lo,g?"off":"polite")}return{mount:p,disable:y,destroy:_}}var ra=Object.freeze({__proto__:null,Media:di,Direction:gi,Elements:Ei,Slides:Ai,Layout:Ii,Clones:Fi,Move:Ri,Controller:Pi,Arrows:Oi,Autoplay:Ni,Cover:zi,Scroll:Gi,Drag:Yi,Keyboard:Xi,LazyLoad:Ji,Pagination:Zi,Sync:ea,Wheel:ta,Live:oa}),ia={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"},aa={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:_i,i18n:ia,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function la(e,t,n){var o=t.Slides;function r(){me(e).on([Ze,ve],a)}function a(){o.forEach(function(l){l.style("transform","translateX(-"+100*l.index+"%)")})}function i(l,s){o.style("transition","opacity "+n.speed+"ms "+n.easing),Co(s)}return{mount:r,start:i,cancel:$n}}function sa(e,t,n){var o=t.Move,r=t.Controller,a=t.Scroll,i=t.Elements.list,l=ue(Ae,i,"transition"),s;function p(){me(e).bind(i,"transitionend",function(g){g.target===i&&s&&(_(),s())})}function c(g,u){var d=o.toPosition(g,!0),C=o.getPosition(),v=y(g);Ce(d-C)>=1&&v>=1?n.useScroll?a.scroll(d,v,!1,u):(l("transform "+v+"ms "+n.easing),o.translate(d,!0),s=u):(o.jump(g),u())}function _(){l(""),a.cancel()}function y(g){var u=n.rewindSpeed;if(e.is(yt)&&u){var d=r.getIndex(!0),C=r.getEnd();if(d===0&&g>=C||d>=C&&g===0)return u}return n.speed}return{mount:p,start:c,cancel:_}}var ca=(function(){function e(n,o){this.event=me(),this.Components={},this.state=ui(ut),this.splides=[],this._o={},this._E={};var r=Xe(n)?Lo(document,n):n;_t(r,r+" is invalid."),this.root=r,o=qe({label:Ie(r,Te)||"",labelledby:Ie(r,Un)||""},aa,e.defaults,o||{});try{qe(o,JSON.parse(Ie(r,On)))}catch{_t(!1,"Invalid JSON")}this._o=Object.create(qe({},o))}var t=e.prototype;return t.mount=function(o,r){var a=this,i=this.state,l=this.Components;_t(i.is([ut,Zt]),"Already mounted!"),i.set(ut),this._C=l,this._T=r||this._T||(this.is(zt)?la:sa),this._E=o||this._E;var s=At({},ra,this._E,{Transition:this._T});return nt(s,function(p,c){var _=p(a,l,a._o);l[c]=_,_.setup&&_.setup()}),nt(l,function(p){p.mount&&p.mount()}),this.emit(Ze),Fe(this.root,Ci),i.set(ft),this.emit(En),this},t.sync=function(o){return this.splides.push({splide:o}),o.splides.push({splide:this,isParent:!0}),this.state.is(ft)&&(this._C.Sync.remount(),o.Components.Sync.remount()),this},t.go=function(o){return this._C.Controller.go(o),this},t.on=function(o,r){return this.event.on(o,r),this},t.off=function(o){return this.event.off(o),this},t.emit=function(o){var r;return(r=this.event).emit.apply(r,[o].concat(Je(arguments,1))),this},t.add=function(o,r){return this._C.Slides.add(o,r),this},t.remove=function(o){return this._C.Slides.remove(o),this},t.is=function(o){return this._o.type===o},t.refresh=function(){return this.emit(ve),this},t.destroy=function(o){o===void 0&&(o=!0);var r=this.event,a=this.state;return a.is(ut)?me(this).on(En,this.destroy.bind(this,o)):(nt(this._C,function(i){i.destroy&&i.destroy(o)},!0),r.emit(zn),r.destroy(),o&&De(this.splides),a.set(Zt)),this},ii(e,[{key:"options",get:function(){return this._o},set:function(o){this._C.Media.set(o,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),e})(),Kn=ca;Kn.defaults={};Kn.STATES=li;var mo=[[Ze,"onMounted"],[En,"onReady"],[Ue,"onMove"],[bt,"onMoved"],[Nn,"onClick"],[ko,"onActive"],[Fo,"onInactive"],[Ro,"onVisible"],[Po,"onHidden"],[ve,"onRefresh"],[Se,"onUpdated"],[ht,"onResize"],[rn,"onResized"],[Vo,"onDrag"],[Bo,"onDragging"],[Oo,"onDragged"],[an,"onScroll"],[it,"onScrolled"],[zn,"onDestroy"],[Wo,"onArrowsMounted"],[No,"onArrowsUpdated"],[zo,"onPaginationMounted"],[jo,"onPaginationUpdated"],[jn,"onNavigationMounted"],[Mn,"onAutoplayPlay"],[Mo,"onAutoplayPlaying"],[Hn,"onAutoplayPause"],[Dn,"onLazyLoadLoaded"]];function Jn(...e){return e.filter(Boolean).join(" ")}function nn(e){return e!==null&&typeof e=="object"}function In(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some((n,o)=>!In(n,t[o]));if(nn(e)&&nn(t)){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&!n.some(r=>!Object.prototype.hasOwnProperty.call(t,r)||!In(e[r],t[r]))}return e===t}function ua(e,t){return e.length===t.length&&!e.some((n,o)=>n!==t[o])}function pa(e,t){if(e){const n=Object.keys(e);for(let o=0;o<n.length;o++){const r=n[o];if(r!=="__proto__"&&t(e[r],r)===!1)break}}return e}function kn(e,t){const n=e;return pa(t,(o,r)=>{Array.isArray(o)?n[r]=o.slice():nn(o)?n[r]=kn(nn(n[r])?n[r]:{},o):n[r]=o}),n}var da=({children:e,className:t,...n})=>j.createElement("div",{className:Jn("splide__track",t),...n},j.createElement("ul",{className:"splide__list"},e)),rr=class extends j.Component{constructor(){super(...arguments),this.splideRef=j.createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:t,transition:n}=this.props,{current:o}=this.splideRef;o&&(this.splide=new Kn(o,e),this.bind(this.splide),this.splide.mount(t,n),this.options=kn({},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&&!In(this.options,e)&&(this.splide.options=e,this.options=kn({},e));const t=this.getSlides();ua(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){mo.forEach(([t,n])=>{const o=this.props[n];typeof o=="function"&&e.on(t,(...r)=>{o(e,...r)})})}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:o,...r}=this.props;return j.createElement(t,{className:Jn("splide",e),ref:this.splideRef,...this.omit(r,["options",...mo.map(a=>a[1])])},n?j.createElement(da,null,o):o)}},ir=({children:e,className:t,...n})=>j.createElement("li",{className:Jn("splide__slide",t),...n},e);/*!
2
2
  * Splide.js
3
3
  * Version : 4.1.3
4
4
  * License : MIT
5
5
  * Copyright: 2022 Naotoshi Fujita
6
- */const ga="RichTextRenderer-module__link___BWeZ2",ma={link:ga},ar=({content:t})=>{const e=n=>n.map((o,r)=>o.type==="link"?x.jsx("a",{className:ma.link,href:o.value,target:o.target,children:e(o.children)},r):x.jsx("span",{style:fa(o),children:o.text},r));return x.jsx(x.Fragment,{children:t.map((n,o)=>{const r=n.children;return x.jsx("div",{children:e(r)},o)})})};function fa(t){return{...t.fontFamily&&{fontFamily:t.fontFamily},...t.fontWeight&&{fontWeight:t.fontWeight},...t.fontStyle&&{fontStyle:t.fontStyle},...t.textDecoration&&{textDecoration:t.textDecoration},...t.textTransform&&{textTransform:t.textTransform},...t.fontVariant&&{fontVariant:t.fontVariant},...t.verticalAlign&&{verticalAlign:t.verticalAlign,lineHeight:"0px"}}}const ha="SvgImage-module__svg___q3xE-",ya="SvgImage-module__img___VsTm-",fo={svg:ha,img:ya},va=t=>{const e=t.trim();return e.startsWith("data:image/svg+xml")?!0:(e.split(/[?#]/)[0]??e).endsWith(".svg")},ba=t=>`url("${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`,de=({url:t,fill:e="#000000",hoverFill:n="#CCCCCC",className:o=""})=>{const[r,a]=j.useState(()=>typeof window>"u"?!0:CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")'));return j.useEffect(()=>{if(typeof window<"u"&&window.CSS){const i=CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")');a(i)}},[]),!va(t)||!r?x.jsx("img",{src:t,alt:"",className:dt(fo.img,o)}):x.jsx("span",{"data-supports-mask":r,className:dt(fo.svg,o),style:{"--svg":ba(t),"--fill":e,"--hover-fill":n}})},Sa={"top-left":Y.topLeftAlignment,"top-center":Y.topCenterAlignment,"top-right":Y.topRightAlignment,"middle-left":Y.middleLeftAlignment,"middle-center":Y.middleCenterAlignment,"middle-right":Y.middleRightAlignment,"bottom-left":Y.bottomLeftAlignment,"bottom-center":Y.bottomCenterAlignment,"bottom-right":Y.bottomRightAlignment};function xa({settings:t,content:e,styles:n,isEditor:o}){const[r,a]=j.useState(null),{widthSettings:i,fontSettings:c,letterSpacing:s,textAlign:p,wordSpacing:l,fontSizeLineHeight:w,textAppearance:y,color:m}=n.imageCaption,[u,d]=j.useState(void 0),[C,b]=j.useState(null),[f,$]=j.useState(0),[M,P]=j.useState(0),{direction:T,transition:h,controls:L,pagination:R,imageCaption:W,triggers:k}=t,B=j.useRef(h.type),{x:O,y:U}=t.controls.offset,D=g=>{r&&r.go(g)};return j.useEffect(()=>{if(!C)return;const g=new ResizeObserver(A=>{if(!r)return;const[I]=A;d({width:Math.round(I.contentRect.width),height:Math.round(I.contentRect.height)})});return g.observe(C),()=>g.unobserve(C)},[C]),j.useEffect(()=>{!r||B.current===h.type||(P(g=>g+1),B.current=h.type)},[h.type]),x.jsx("div",{className:dt(Y.wrapper,{[Y.editor]:o}),ref:b,children:x.jsxs("div",{className:Y.sliderInner,style:{width:u?u.width:"100%",height:u?u.height:"100%",backgroundColor:h.backgroundColor&&h.type==="fade in"?h.backgroundColor:"transparent"},children:[t.imageCaption.isActive&&x.jsx("div",{className:dt(Y.captionBlock),children:x.jsx("div",{className:Y.captionTextWrapper,children:e.map((g,A)=>x.jsx("div",{className:dt(Y.captionText,Sa[W.alignment],{[Y.withPointerEvents]:A===f&&o,[Y.active]:A===f}),style:{fontFamily:c.fontFamily,fontWeight:c.fontWeight,fontStyle:c.fontStyle,width:i.sizing==="auto"?"max-content":F.scalingValue(i.width,o),letterSpacing:F.scalingValue(s,o),wordSpacing:F.scalingValue(l,o),textAlign:p,fontSize:F.scalingValue(w.fontSize,o),lineHeight:F.scalingValue(w.lineHeight,o),textTransform:y.textTransform??"none",textDecoration:y.textDecoration??"none",fontVariant:y.fontVariant??"normal",color:m,transitionDuration:h.duration?`${Math.round(parseInt(h.duration)/2)}ms`:"500ms"},children:x.jsx("div",{"data-styles":"imageCaption",className:Y.captionTextInner,style:{"--link-hover-color":W.linkHoverColor,"--link-color":W.linkColor,position:"relative",top:F.scalingValue(W.offset.y,o),left:F.scalingValue(W.offset.x,o)},children:x.jsx(ar,{content:g.imageCaption})})},A))})}),x.jsx(rr,{onMove:g=>{$(g.index)},ref:a,options:{arrows:!1,speed:h.duration?parseInt(h.duration):500,autoplay:k.autoPlay!==null,...k.autoPlay!==null&&{interval:parseInt(k.autoPlay)*1e3},direction:T==="horiz"||h.type==="fade in"?"ltr":"ttb",pagination:!1,drag:k.triggersList.drag,perPage:1,width:u?u.width:"100%",height:u?u.height:"100%",type:h.type==="fade in"?"fade":"loop",rewind:!0},children:e.map((g,A)=>x.jsx(ir,{children:x.jsx("div",{className:Y.sliderItem,children:x.jsx("div",{className:Y.imgWrapper,children:x.jsx("img",{className:dt(Y.sliderImage,{[Y.contain]:g.image.objectFit==="contain",[Y.cover]:g.image.objectFit==="cover"}),src:g.image.url,alt:g.image.name??""})})})},A))},M),L.isActive&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:dt(Y.arrow,{[Y.arrowVertical]:T==="vert",[Y.hoverArrow]:L.show==="on hover"}),style:{color:L.color,"--arrow-hover-color":L.hover},children:x.jsxs("button",{onClick:()=>{D("-1")},className:Y.arrowInner,style:{transform:`translate(${F.scalingValue(O,o)}, ${F.scalingValue(U*(T==="horiz"?1:-1),o)}) scale(${t.controls.scale/100}) rotate(${T==="horiz"?"0deg":"90deg"})`},children:[L.arrowsImgUrl&&x.jsx(de,{url:L.arrowsImgUrl,fill:L.color,hoverFill:L.hover,className:dt(Y.arrowImg,Y.mirror)}),!L.arrowsImgUrl&&x.jsx(ho,{color:L.color,className:dt(Y.arrowIcon,Y.arrowImg,Y.mirror)})]})}),x.jsx("div",{className:dt(Y.arrow,Y.nextArrow,{[Y.arrowVertical]:T==="vert",[Y.hoverArrow]:L.show==="on hover"}),style:{color:L.color,"--arrow-hover-color":L.hover},children:x.jsxs("button",{className:Y.arrowInner,onClick:()=>D("+1"),style:{transform:`translate(${F.scalingValue(O*(T==="horiz"?-1:1),o)}, ${F.scalingValue(U,o)}) scale(${t.controls.scale/100}) rotate(${T==="horiz"?"0deg":"90deg"})`},children:[L.arrowsImgUrl&&x.jsx(de,{url:L.arrowsImgUrl,fill:L.color,hoverFill:L.hover,className:Y.arrowImg}),!L.arrowsImgUrl&&x.jsx(ho,{color:L.color,className:dt(Y.arrowIcon,Y.arrowImg)})]})})]}),k.triggersList.click&&x.jsx("div",{className:Y.clickOverlay,onClick:()=>{r&&r.go("+1")}}),R.isActive&&x.jsx("div",{className:dt(Y.pagination,{[Y.paginationInsideBottom]:R.position==="inside-1"&&T==="horiz",[Y.paginationInsideTop]:R.position==="inside-2"&&T==="horiz",[Y.paginationOutsideBottom]:R.position==="outside-1"&&T==="horiz",[Y.paginationOutsideTop]:R.position==="outside-2"&&T==="horiz",[Y.paginationInsideLeft]:R.position==="inside-1"&&T==="vert",[Y.paginationInsideRight]:R.position==="inside-2"&&T==="vert",[Y.paginationOutsideLeft]:R.position==="outside-1"&&T==="vert",[Y.paginationOutsideRight]:R.position==="outside-2"&&T==="vert",[Y.paginationVertical]:T==="vert"}),children:x.jsx("div",{className:Y.paginationInner,style:{backgroundColor:R.colors[2],transform:`scale(${R.scale/100}) translate(${F.scalingValue(R.offset.x,o)}, ${F.scalingValue(R.offset.y,o)}) rotate(${T==="horiz"?"0deg":"90deg"})`},children:e.map((g,A)=>x.jsx("button",{onClick:()=>{r&&r.go(A)},className:dt(Y.paginationItem),children:x.jsx("div",{className:dt(Y.dot,{[Y.activeDot]:A===f}),style:{backgroundColor:A===f?R.colors[0]:R.colors[1],"--pagination-hover-color":R.hover}})},A))})})]})})}function ho({color:t,className:e}){return x.jsx("svg",{viewBox:"0 0 10 18",className:e,children:x.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:x.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:t,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const Ca={element:xa,id:"control-slider",name:"Slider",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/sliderImg.png"},defaultSize:{width:400,height:400},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.controls.arrowsImgUrl"}]},fontSettingsPaths:{content:[],parameters:[{path:"styles.imageCaption.fontSettings"}]},schema:{type:"object",properties:{settings:{type:"object",display:{type:"settings-block"},properties:{triggers:{title:"triggers",icon:"target",tooltip:"Triggers",type:"object",properties:{triggersList:{type:"object",display:{type:"toggle-ratio-group"},properties:{click:{type:"boolean"},drag:{type:"boolean"}}},autoPlay:{type:["string","null"],label:"Auto",display:{type:"step-selector"},enum:[null,"1s","2s","3s","4s","5s"]}}},direction:{icon:"horizontal-resize",tooltip:"Direction",type:"string",display:{type:"ratio-group"},enum:["horiz","vert"]},transition:{title:"transit",icon:"transition",tooltip:"Transition",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide","fade in"]},backgroundColor:{type:["string","null"],title:"BG Color",display:{visible:!1,type:"settings-color-picker",format:"single"}},duration:{type:"string",label:"icon:hourglass",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]}}},controls:{title:"controls",icon:"controls",tooltip:"Controls",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"scale",min:50,max:600,display:{type:"range-control"}},color:{title:"color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}},show:{title:"Show",type:"string",display:{type:"ratio-group"},enum:["always","on hover"]}}},pagination:{title:"nav",icon:"pagination",tooltip:"Navigation",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},position:{display:{type:"socket",direction:"horizontal"},type:"string",enum:["outside-1","outside-2","inside-1","inside-2"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"scale",min:10,max:400,display:{type:"range-control"}},colors:{display:{type:"settings-color-picker",format:"multiple"},title:"color",type:"array",items:{type:"string"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},imageCaption:{title:"Caption",icon:"text-icon",tooltip:"Caption",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},alignment:{type:"string",display:{type:"align-grid"},enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},linkColor:{title:"Link",type:"string",display:{type:"settings-color-picker",format:"single"}},linkHoverColor:{title:"Link Hov",type:"string",display:{type:"settings-color-picker",format:"single"}}}}},default:{triggers:{triggersList:{click:!1,drag:!0},autoPlay:null},controls:{isActive:!0,arrowsImgUrl:null,offset:{x:0,y:0},scale:100,color:"#000000",hover:"#cccccc",show:"always"},transition:{type:"slide",duration:"500ms",backgroundColor:null},pagination:{isActive:!0,scale:50,position:"outside-1",offset:{x:0,y:0},colors:["#cccccc","#cccccc","#000000"],hover:"#cccccc"},direction:"horiz",imageCaption:{offset:{x:0,y:0},isActive:!0,alignment:"middle-center",linkColor:"#cccccc",linkHoverColor:"#cccccc"}},displayRules:[{if:{name:"direction",value:"vert"},then:{name:"properties.pagination.properties.position.display.direction",value:"vertical"}},{if:{name:"transition.type",value:"fade in"},then:{name:"properties.transition.properties.backgroundColor.display.visible",value:!0}}]},content:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},imageCaption:{placeholder:"Add Caption...",label:"Description",display:{type:"rich-text"}}},required:["image"]},default:[{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-1.png",name:"Slider-1.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-2.png",name:"Slider-2.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-3.png",name:"Slider-3.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]}]},styles:{type:"object",properties:{imageCaption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right","justify"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase","capitalize"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"auto"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.02,lineHeight:.02},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}}},required:["settings","content","styles"]}},$a="ImageRevealSlider-module__imageRevealSlider___UE5Ob",_a="ImageRevealSlider-module__image___Qjt-e",wa="ImageRevealSlider-module__link___N-iLG",Ta="ImageRevealSlider-module__cursor___2U03d",ae={imageRevealSlider:$a,image:_a,link:wa,cursor:Ta};function yo(t,e,n){for(const o of n){const r=new Image;r.src=o.url;const a=o.width?Number.parseFloat(o.width):r.naturalWidth,i=r.naturalHeight/r.naturalWidth*a,c=a/2,s=i/2;if(t>=o.x-c&&t<=o.x+c&&e>=o.y-s&&e<=o.y+s)return!0}return!1}function bn(t){return new Promise(e=>{const n=new Image;n.src=t,n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})}})}async function Ea(t,e,n,o){let r,a;if(e==="custom"){r=n;const i=await bn(t);a=i.height/i.width*r}else if(e==="random"){r=Math.random()*(o.max-o.min)+o.min;const i=await bn(t);a=i.height/i.width*r}else{const i=await bn(t);r=i.width,a=i.height}return{width:r,height:a,finalWidth:`${r}px`}}function La({settings:t,content:e,isEditor:n}){const[o,r]=j.useState(null),[a,i]=j.useState([]),[c,s]=j.useState(0),p=j.useRef(0),[l,w]=j.useState({x:0,y:0}),[y,m]=j.useState(1),[u,d]=j.useState("none"),C=j.useRef({x:0,y:0}),[b,f]=j.useState(!1),{sizeType:$,imageWidth:M,randomRangeImageWidth:P}=t.imageSize,{revealPosition:T,visible:h}=t.position,{cursorType:L,target:R,defaultCursorScale:W,defaultCursor:k,hoverCursorScale:B,hoverCursor:O}=t.cursor;j.useEffect(()=>{if(!o)return;const g=(_,v)=>{const V=o.getBoundingClientRect(),X=_-V.left,rt=v-V.top;if(w({x:X,y:rt}),L==="system"){d("none"),m(1);return}const Q=X,ut=rt,E=document.elementFromPoint(V.left+Q,V.top+ut);if(E&&E.closest("a")){d("none"),m(1);return}const K=yo(Q,ut,a)||R==="area"?{img:O??"none",scale:B}:{img:k??"none",scale:W};d(K.img),m(K.scale)},A=_=>{_.stopPropagation(),C.current={x:_.clientX,y:_.clientY},g(_.clientX,_.clientY)},I=()=>{b&&g(C.current.x,C.current.y)};return o.addEventListener("mousemove",A),window.addEventListener("scroll",I,!0),()=>{o.removeEventListener("mousemove",A),window.removeEventListener("scroll",I,!0)}},[o,b,l,L,R,O,k,B,W,a]),j.useEffect(()=>{b||(d("none"),m(0))},[b]);const U=async(g,A,I,_={})=>{const{width:v,height:V,finalWidth:X}=await Ea(g.image.url,$,M,P);let rt=0,Q=0;T==="same"?(rt=A/2,Q=I/2):(rt=_.x??Math.random()*A,Q=_.y??Math.random()*I);const ut=Math.min(Math.max(rt,v/2),A-v/2),E=Math.min(Math.max(Q,V/2),I-V/2);return{id:p.current++,url:g.image.url,link:g.link,name:g.image.name,x:ut,y:E,width:X}};j.useEffect(()=>{if(!o||e.length===0)return;const g=o.getBoundingClientRect(),A=g.width,I=g.height,_=[];(async()=>{const V=e[0],X=await U(V,A,I);_.push(X),i(_),s(1)})()},[$,M,P,T,o]),j.useEffect(()=>{h==="last One"&&i(g=>g.length>0?[g[g.length-1]]:[])},[h]);const D=async g=>{if(!o)return;const A=o.getBoundingClientRect(),I=g.clientX-A.left,_=g.clientY-A.top;if(R==="image"&&!yo(I,_,a))return;let v=0,V=0;T==="on Click"?(v=I,V=_):T==="same"?(v=A.width/2,V=A.height/2):(v=Math.random()*A.width,V=Math.random()*A.height);const X=e[c],rt=await U(X,A.width,A.height,{x:v,y:V});i(Q=>h==="all"?[...Q,rt]:[rt]),s(Q=>Q>=e.length-1?0:Q+1)};return x.jsxs("div",{ref:r,onClick:D,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),className:ae.imageRevealSlider,style:{cursor:u==="none"?"default":"none"},children:[a.map(g=>x.jsx("div",{className:ae.wrapper,style:{top:`${g.y}px`,left:`${g.x}px`,position:"absolute",transform:"translate(-50%, -50%)",width:g.width??"auto",height:"auto",cursor:u==="none"?"default":"none"},children:R==="area"&&g.link?x.jsx("a",{href:g.link,target:"_blank",className:ae.link,children:x.jsx("img",{src:g.url,alt:g.name,className:ae.image},g.id)}):x.jsx("img",{src:g.url,alt:g.name,className:ae.image},g.id)},g.id)),b&&x.jsx("div",{className:ae.cursor,style:{left:`${l.x}px`,top:`${l.y}px`,transform:`translate(-50%, -50%) scale(${y})`,backgroundImage:`url('${u}')`,backgroundSize:"cover",backgroundPosition:"center",position:"absolute",pointerEvents:"none"}})]})}const Aa={element:La,id:"control-image-reveal",name:"Click Gallery",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/clickGalleryImg.png"},defaultSize:{width:"100%",height:"100%"},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.cursor.defaultCursor"},{path:"settings.cursor.hoverCursor"}]},fontSettingsPaths:{content:[],parameters:[]},schema:{type:"object",properties:{settings:{type:"object",display:{type:"settings-block"},properties:{imageSize:{title:"IMG SIZE",icon:"size",tooltip:"IMG SIZE",type:"object",properties:{sizeType:{type:"string",display:{type:"ratio-group"},enum:["as Is","custom","random"]},imageWidth:{type:"number",label:"W",display:{type:"numeric-input",visible:!1}},randomRangeImageWidth:{type:"object",display:{type:"random-range-controls",visible:!1},properties:{min:{type:"number"},max:{type:"number"}}}}},cursor:{title:"cursor",icon:"cursor",tooltip:"cursor",type:"object",properties:{cursorType:{type:"string",display:{type:"ratio-group"},enum:["system","custom"]},target:{type:"string",title:"Target",display:{type:"ratio-group"},enum:["area","image"]},defaultCursor:{type:["string","null"],title:"Default",display:{type:"settings-image-input",visible:!1}},defaultCursorScale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control",visible:!1}},hoverCursor:{type:["string","null"],title:"Hover",display:{type:"settings-image-input",visible:!1}},hoverCursorScale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control",visible:!1}}}},position:{title:"position",icon:"transition",tooltip:"Position",type:"object",properties:{revealPosition:{type:"string",display:{type:"ratio-group"},enum:["random","same","on Click"]},visible:{type:"string",title:"Visible",display:{type:"ratio-group"},enum:["all","last One"]}}}},default:{imageSize:{sizeType:"custom",imageWidth:500,randomRangeImageWidth:{min:100,max:1e3}},cursor:{cursorType:"system",target:"area",defaultCursor:null,defaultCursorScale:2,hoverCursor:null,hoverCursorScale:2},position:{revealPosition:"random",visible:"all"}},displayRules:[{if:{name:"imageSize.sizeType",value:"custom"},then:{name:"properties.imageSize.properties.imageWidth.display.visible",value:!0}},{if:{name:"imageSize.sizeType",value:"random"},then:{name:"properties.imageSize.properties.randomRangeImageWidth.display.visible",value:!0}},{if:[{name:"cursor.target",value:"image"},{name:"cursor.cursorType",value:"custom"}],then:{name:"properties.cursor.properties.defaultCursor.display.visible",value:!0}},{if:[{name:"cursor.target",value:"image"},{name:"cursor.cursorType",value:"custom"},{name:"cursor.defaultCursor",value:null,isNotEqual:!0}],then:{name:"properties.cursor.properties.defaultCursorScale.display.visible",value:!0}},{if:{name:"cursor.cursorType",value:"custom"},then:{name:"properties.cursor.properties.hoverCursor.display.visible",value:!0}},{if:[{name:"cursor.cursorType",value:"custom"},{name:"cursor.hoverCursor",value:null,isNotEqual:!0}],then:{name:"properties.cursor.properties.hoverCursorScale.display.visible",value:!0}}]},content:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{isObjectFitEditable:!1,type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},link:{label:"URL",placeholder:"Enter link...",display:{type:"text-input"}}},required:["image"]},default:[{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQK9211QXBE9W284ZNKB8.png",name:"Slider-1.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQMFT72JD18WKP0Q2DVAT.png",name:"Slider-2.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQNEVRXPSRX5K1YTMJQY9.png",name:"Slider-3.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQP84JKRDT7WNWDQZR4Y9.png",name:"Slider-4.png"},link:""}]}}}},Ia="LightBox-module__hidden___9s-9x",ka="LightBox-module__heroImage___sTxNF",Fa="LightBox-module__background___rm9ml",Ra="LightBox-module__editor___4ACaY",Ba="LightBox-module__contentStyle___Bgnsq",Va="LightBox-module__imageStyle___tLIlB",Oa="LightBox-module__imgWrapper___LuFUp",Pa="LightBox-module__contain___8-yaS",Na="LightBox-module__cover___hNvOG",Wa="LightBox-module__caption___b6L2I",za="LightBox-module__captionTextInner___rCGNH",ja="LightBox-module__lightboxSplide___XFuWC",Ma="LightBox-module__arrow___iz38X",Ha="LightBox-module__arrowVertical___Zfz81",Da="LightBox-module__nextArrow___zkAQN",Ua="LightBox-module__arrowInner___p48sW",Ya="LightBox-module__arrowIcon___3VaFf",Ga="LightBox-module__arrowImg___pNV88",qa="LightBox-module__mirror___pjeXc",Xa="LightBox-module__thumbsWrapper___GB-nU",Ka="LightBox-module__thumbsContainerVertical___wttk5",Ja="LightBox-module__thumbsContainer___osSma",Za="LightBox-module__thumbsAlignStart___MO6tY",Qa="LightBox-module__thumbsAlignCenter___Q4sUx",ts="LightBox-module__thumbsAlignEnd___p4y9R",es="LightBox-module__thumbItem___HvnF3",ns="LightBox-module__closeButton___g2khP",os="LightBox-module__fadeIn___0m5GW",rs="LightBox-module__slideInLeft___gPYwC",is="LightBox-module__slideInRight___S-pPp",as="LightBox-module__slideInTop___DFdAj",ss="LightBox-module__slideInBottom___m27kZ",ls="LightBox-module__fadeOut___55qBR",cs="LightBox-module__slideOutLeft___NvU7P",us="LightBox-module__slideOutRight___SK7eC",ps="LightBox-module__slideOutTop___Vgg0z",ds="LightBox-module__slideOutBottom___nJ0Ef",gs="LightBox-module__scaleSlide___vZriG",N={hidden:Ia,heroImage:ka,background:Fa,editor:Ra,contentStyle:Ba,imageStyle:Va,imgWrapper:Oa,contain:Pa,cover:Na,caption:Wa,captionTextInner:za,lightboxSplide:ja,arrow:Ma,arrowVertical:Ha,nextArrow:Da,arrowInner:Ua,arrowIcon:Ya,arrowImg:Ga,mirror:qa,thumbsWrapper:Xa,thumbsContainerVertical:Ka,thumbsContainer:Ja,thumbsAlignStart:Za,thumbsAlignCenter:Qa,thumbsAlignEnd:ts,thumbItem:es,closeButton:ns,fadeIn:os,slideInLeft:rs,slideInRight:is,slideInTop:as,slideInBottom:ss,fadeOut:ls,slideOutLeft:cs,slideOutRight:us,slideOutTop:ps,slideOutBottom:ds,scaleSlide:gs},Me=(t,e,n)=>{const o={},[r,a]=t.split("-");return r==="top"?(o.top="0",o.bottom="auto"):r==="middle"?(o.top="50%",o.bottom="auto"):r==="bottom"&&(o.top="auto",o.bottom="0"),a==="left"?(o.left="0",o.right="auto"):a==="center"?(o.left="50%",o.right="auto"):a==="right"&&(o.left="auto",o.right="0"),r==="middle"&&a==="center"?o.transform=`translate(calc(-50% + ${F.scalingValue(e.x,n)}), calc(-50% + ${F.scalingValue(e.y,n)}))`:r==="middle"?o.transform=`translate(${F.scalingValue(e.x,n)}, calc(-50% + ${F.scalingValue(e.y,n)}))`:a==="center"?o.transform=`translate(calc(-50% + ${F.scalingValue(e.x,n)}), ${F.scalingValue(e.y,n)})`:o.transform=`translate(${F.scalingValue(e.x,n)}, ${F.scalingValue(e.y,n)})`,o};function sr(t){const e=window.getComputedStyle(t);return{top:parseFloat(e.paddingTop)||0,right:parseFloat(e.paddingRight)||0,bottom:parseFloat(e.paddingBottom)||0,left:parseFloat(e.paddingLeft)||0}}function vo(t){const e=t.getBoundingClientRect(),n=sr(t),o=Math.max(0,e.width-n.left-n.right),r=Math.max(0,e.height-n.top-n.bottom),a=t.naturalWidth,i=t.naturalHeight,c=o/r,s=a/i;let p,l;s>c?(p=o,l=o/s):(l=r,p=r*s);const w=e.left+n.left,y=e.top+n.top,m=(o-p)/2+w,u=(r-l)/2+y;return{x:m,y:u,width:p,height:l}}function bo(t){const e=t.getBoundingClientRect(),n=sr(t);return{left:e.left+n.left,right:e.right-n.right,top:e.top+n.top,bottom:e.bottom-n.bottom}}function So(t){const e=t.match(/rgba?\(([^)]+)\)/);if(e){const o=e[1].split(",").map(r=>parseFloat(r.trim()));return o.length===4?o[3]:1}const n=t.match(/^#([0-9a-fA-F]{8})$/);if(n){const o=n[1].substring(6,8);return parseInt(o,16)/255}return t.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/),1}function ms(t,e){const n=(()=>{if(t==="fade in")return N.fadeIn;if(t==="slide in"||t==="mix")switch(e){case"left":return N.slideInLeft;case"right":return N.slideInRight;case"top":return N.slideInTop;case"bottom":return N.slideInBottom;default:return N.slideInRight}return N.fadeIn})(),o=(()=>{if(t==="fade in"||t==="mix")return N.fadeIn;if(t==="slide in")switch(e){case"left":return N.slideInLeft;case"right":return N.slideInRight;case"top":return N.slideInTop;case"bottom":return N.slideInBottom;default:return N.slideInRight}return N.fadeIn})(),r=(()=>{if(t==="fade in"||t==="mix")return N.fadeOut;if(t==="slide in")switch(e){case"left":return N.slideOutLeft;case"right":return N.slideOutRight;case"top":return N.slideOutTop;case"bottom":return N.slideOutBottom;default:return N.slideOutRight}return N.fadeOut})(),a=(()=>{if(t==="fade in")return N.fadeOut;if(t==="slide in"||t==="mix")switch(e){case"left":return N.slideOutLeft;case"right":return N.slideOutRight;case"top":return N.slideOutTop;case"bottom":return N.slideOutBottom;default:return N.slideOutRight}return N.fadeOut})();return{appearClass:n,backdropAppearClass:o,backdropDisappearClass:r,disappearClass:a}}const fs=({settings:t,content:e,styles:n,portalId:o,activeEvent:r,isEditor:a})=>{const[i,c]=j.useState(!1),{url:s}=t.thumbnailBlock.cover;return j.useEffect(()=>{r==="close"&&c(!1),r==="open"&&c(!0)},[r]),x.jsxs(x.Fragment,{children:[x.jsx("img",{src:s,alt:"Cover",className:N.heroImage,onClick:()=>c(!0)}),x.jsx(hs,{isOpen:i,onClose:()=>c(!1),content:e,settings:t,lightboxStyles:n,portalId:o,isEditor:a})]})},hs=({isOpen:t,onClose:e,content:n,lightboxStyles:o,settings:r,portalId:a,isEditor:i,metadata:c})=>{var z;const[s,p]=j.useState(0),[l,w]=j.useState(0),[y,m]=j.useState(!1),[u,d]=j.useState(!1),[C,b]=j.useState({}),f=j.useRef(null),$=j.useRef(null),M=j.useRef(null),P=j.useRef(!1),T=j.useRef(null),h=j.useRef(null),L=j.useRef(null),R=j.useRef(null),W=j.useRef(!1),k=j.useRef(null),[B,O]=j.useState(!1),{appear:U,triggers:D,slider:g,thumbnail:A,controls:I,area:_,caption:v,layout:V}=r.lightboxBlock,{appearClass:X,backdropAppearClass:rt,backdropDisappearClass:Q,disappearClass:ut}=ms(U.type,U.direction),E=(c==null?void 0:c.itemId)??null;j.useEffect(()=>{const S=()=>{setTimeout(()=>{var G,J;(J=(G=f.current)==null?void 0:G.splide)==null||J.refresh()},16)},H=()=>{w(G=>G+1)};return window.addEventListener("ArticleEditor.Layout:change",S),window.addEventListener("ArticleEditor.ComponentContent:change",H),()=>{window.removeEventListener("ArticleEditor.Layout:change",S),window.removeEventListener("ArticleEditor.ComponentContent:change",H)}},[]),j.useEffect(()=>{if(!t||!A.isActive){O(!1);return}const S=k.current;if(!S)return;const H=()=>{g.direction==="horiz"?O(S.scrollWidth>S.clientWidth):O(S.scrollHeight>S.clientHeight)};H();const G=new ResizeObserver(H);return G.observe(S),()=>G.disconnect()},[t,A.isActive,n.length,C,g.direction]);const K=j.useCallback(()=>{const S=window.matchMedia("(max-width: 768px)").matches,H=So(_.color);S&&!i&&H>.9&&(document.body.style.backgroundColor=""),m(!0),P.current=!0;const G=J=>{J.target===T.current&&J.animationName&&(T.current&&h.current&&T.current.removeEventListener("animationend",h.current),h.current=null,P.current&&(P.current=!1,e()),m(!1))};T.current&&(h.current=G,T.current.addEventListener("animationend",G))},[e,_.color,i]),ft=(S,H,G)=>{var J,ot;if(S){if(D.type==="click"&&D.switch==="image")D.repeat==="close"&&s===n.length-1?K():(J=f.current)==null||J.go("+1");else if(D.type==="click"&&D.switch==="50/50"){const tt=S.getBoundingClientRect(),q=H-tt.left,nt=G-tt.top,vt=tt.width,st=tt.height;let pt;g.direction==="horiz"?pt=q<vt/2?"-1":"+1":pt=nt<st/2?"-1":"+1",(ot=f.current)==null||ot.go(pt)}}},it=S=>{if(W.current){W.current=!1;return}const H=n[s],G=(H==null?void 0:H.image.objectFit)==="cover";let J,ot;if("changedTouches"in S&&S.changedTouches.length>0)J=S.changedTouches[0].clientX,ot=S.changedTouches[0].clientY;else if("clientX"in S)J=S.clientX,ot=S.clientY;else return;let tt;if(G&&M.current){const q=bo(M.current);tt=J>=q.left&&J<=q.right&&ot>=q.top&&ot<=q.bottom}else{const q=M.current?vo(M.current):null;if(!q){S.target===S.currentTarget&&K();return}tt=J>=q.x&&J<=q.x+q.width&&ot>=q.y&&ot<=q.y+q.height}tt?ft(M.current,J,ot):K()},mt=S=>{const H=S.target;(H.classList.contains(N.thumbsWrapper)||H.classList.contains(N.thumbsContainer))&&it(S)};j.useEffect(()=>{if(!t)return;const S=H=>{var G,J;if(H.key==="Escape"){K();return}if(H.key==="ArrowRight"){p(ot=>(ot+1)%Math.max(n.length,1)),(G=f.current)==null||G.go("+1");return}H.key==="ArrowLeft"&&(p(ot=>(ot-1+Math.max(n.length,1))%Math.max(n.length,1)),(J=f.current)==null||J.go("-1"))};return window.addEventListener("keydown",S),()=>{window.removeEventListener("keydown",S)}},[t,K,n.length]),j.useEffect(()=>{if(t){if(p(0),w(H=>H+1),P.current=!1,m(!1),d(!1),b({}),!E)return;const S=new CustomEvent("page-overlay",{detail:{itemId:E}});window.dispatchEvent(S)}return()=>{T.current&&h.current&&(T.current.removeEventListener("animationend",h.current),h.current=null),d(!1)}},[t,E]),j.useEffect(()=>{$.current!==null&&$.current!==g.type&&w(S=>S+1),$.current=g.type},[g.type]),j.useEffect(()=>{if(!t)return;const S=document.body.style.overflow,H=window.matchMedia("(max-width: 768px)").matches,G=So(_.color);document.body.style.overflow="hidden",d(!1);const J=tt=>{tt.target===T.current&&!P.current&&tt.animationName&&(H&&!i&&G>.9&&(document.body.style.backgroundColor=_.color),d(!0),T.current&&L.current&&T.current.removeEventListener("animationend",L.current),L.current=null)};T.current&&(L.current=J,T.current.addEventListener("animationend",J));const ot=tt=>{const q=tt.target;q&&(q.closest(`.${N.thumbsWrapper}`)||q.closest(`.${N.thumbsContainer}`))||g.type!=="slide"&&tt.preventDefault()};return document.addEventListener("touchmove",ot,{passive:!1}),()=>{document.body.style.overflow=S,document.removeEventListener("touchmove",ot),T.current&&L.current&&(T.current.removeEventListener("animationend",L.current),L.current=null),d(!1)}},[t,i,_.color,g.type]),j.useEffect(()=>{if(!t)return;const S=H=>{var J,ot;if(P.current){H.stopPropagation();return}if(W.current){W.current=!1;return}const G=H.target;if(!(G&&(G.closest(`.${N.thumbsContainer}`)||G.closest(`.${N.thumbItem}`)))){if(g.type==="slide"&&D.type==="drag"&&((ot=(J=f.current)==null?void 0:J.splide)!=null&&ot.root)){const tt=f.current.splide.root;if(G&&(tt.contains(G)||tt===G))return}if(H.touches.length===0&&H.changedTouches.length>0){const tt=n[s],q=(tt==null?void 0:tt.image.objectFit)==="cover",nt=H.changedTouches[0];let vt;if(q&&M.current){const st=bo(M.current);vt=nt.clientX>=st.left&&nt.clientX<=st.right&&nt.clientY>=st.top&&nt.clientY<=st.bottom}else{const st=M.current?vo(M.current):null;if(!st)return;vt=nt.clientX>=st.x&&nt.clientX<=st.x+st.width&&nt.clientY>=st.y&&nt.clientY<=st.y+st.height}if(!vt){H.stopPropagation(),P.current=!0;const st=pt=>{pt.stopPropagation(),pt.preventDefault(),document.removeEventListener("click",st,!0)};document.addEventListener("click",st,!0),K()}}}};return document.addEventListener("touchend",S,{passive:!0}),()=>{document.removeEventListener("touchend",S)}},[t,K,s,n]);const bt=(g.type==="scale"||g.type==="fade")&&g.direction==="vert"&&D.type==="drag";j.useEffect(()=>{var pt,kt;if(!t||!bt||!((kt=(pt=f.current)==null?void 0:pt.splide)!=null&&kt.root))return;const S=f.current.splide.root,H=30,G=(et,lt)=>{if(R.current){const Ct=Math.abs(et-R.current.x),Ht=Math.abs(lt-R.current.y);(Ct>0||Ht>0)&&(W.current=!0)}},J=et=>{R.current&&(et.preventDefault(),G(et.clientX,et.clientY))},ot=et=>{R.current&&et.touches.length>0&&(et.preventDefault(),G(et.touches[0].clientX,et.touches[0].clientY))},tt=(et,lt)=>{if(!R.current||!f.current){R.current=null;return}const Ct=Math.abs(et-R.current.x),Ht=Math.abs(lt-R.current.y);Ht>H&&Ht>Ct&&f.current.go(lt<R.current.y?"+1":"-1"),R.current=null},q=et=>{R.current&&tt(et.clientX,et.clientY),document.removeEventListener("pointerup",q),document.removeEventListener("pointercancel",q),document.removeEventListener("pointermove",J)},nt=et=>{if(R.current){if(et.changedTouches.length>0){const lt=et.changedTouches[0];tt(lt.clientX,lt.clientY)}document.removeEventListener("touchend",nt),document.removeEventListener("touchcancel",nt),document.removeEventListener("touchmove",ot)}},vt=et=>{R.current={x:et.clientX,y:et.clientY},W.current=!1,document.addEventListener("pointermove",J,{passive:!1}),document.addEventListener("pointerup",q),document.addEventListener("pointercancel",q)},st=et=>{et.touches.length>0&&(R.current={x:et.touches[0].clientX,y:et.touches[0].clientY},W.current=!1,document.addEventListener("touchmove",ot,{passive:!1}),document.addEventListener("touchend",nt),document.addEventListener("touchcancel",nt))};return S.addEventListener("pointerdown",vt),S.addEventListener("touchstart",st),()=>{S.removeEventListener("pointerdown",vt),S.removeEventListener("touchstart",st),document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",q),document.removeEventListener("pointercancel",q),document.removeEventListener("touchmove",ot),document.removeEventListener("touchend",nt),document.removeEventListener("touchcancel",nt),R.current=null,W.current=!1}},[t,bt,l]);const Mt={backgroundColor:_.color,backdropFilter:`blur(${_.blur}px)`,animationDuration:`${parseInt(U.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"};return typeof document>"u"||!document.getElementById(a)?null:gr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:i?null:T,className:dt(N.background,y?Q:rt,{[N.editor]:i},{[N.hidden]:!t}),style:{...Mt,...u&&!i&&!y?{position:"absolute"}:{}}}),x.jsxs("div",{ref:i?T:null,className:dt(N.contentStyle,y?ut:X,{[N.editor]:i},{[N.hidden]:!t}),style:{animationDuration:`${parseInt(U.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"},children:[x.jsx(rr,{onMove:S=>p(S.index),ref:f,className:N.lightboxSplide,options:{arrows:!1,speed:g.duration?parseInt(g.duration):500,direction:g.direction==="horiz"||g.type==="fade"||g.type==="scale"?"ltr":"ttb",pagination:!1,drag:D.type==="drag"&&!bt,perPage:1,width:"100%",height:"100%",type:g.type==="fade"||g.type==="scale"?"fade":"loop",padding:0,rewind:D.repeat!=="close",start:0},style:{"--splide-speed":g.duration},children:n.map((S,H)=>{const G=Me(V.position,V.offset,i),J=`${F.scalingValue(V.padding.top,i)} ${F.scalingValue(V.padding.right,i)} ${F.scalingValue(V.padding.bottom,i)} ${F.scalingValue(V.padding.left,i)}`,ot=g.type==="scale"?(()=>{const{transform:tt,...q}=G;return{...q,position:"absolute",padding:J,boxSizing:"border-box","--position-transform":tt||"none"}})():{...G,position:"absolute",padding:J,boxSizing:"border-box"};return x.jsx(ir,{children:x.jsx("div",{className:N.imgWrapper,onClick:it,children:x.jsx("img",{ref:H===s?M:null,className:dt(N.imageStyle,{[N.contain]:S.image.objectFit==="contain",[N.cover]:S.image.objectFit==="cover",[N.scaleSlide]:g.type==="scale"}),src:S.image.url,alt:S.image.name??"",style:{...ot,pointerEvents:S.image.objectFit==="contain"?"none":"auto"}})})},H)})},l),I.isActive&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:dt(N.arrow,{[N.arrowVertical]:g.direction==="vert"}),style:{color:I.color,"--arrow-hover-color":I.hover},children:x.jsxs("button",{className:N.arrowInner,style:{transform:`translate(${F.scalingValue(I.offset.x,i)}, ${F.scalingValue(I.offset.y*(g.direction==="horiz"?1:-1),i)}) scale(${I.scale}) rotate(${g.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var S;return(S=f.current)==null?void 0:S.go("-1")},"aria-label":"Previous",children:[I.arrowsImgUrl&&x.jsx(de,{url:I.arrowsImgUrl,fill:I.color,hoverFill:I.hover,className:dt(N.arrowImg,N.mirror)}),!I.arrowsImgUrl&&x.jsx(xo,{color:I.color,className:dt(N.arrowIcon,N.arrowImg,N.mirror)})]})}),x.jsx("div",{className:dt(N.arrow,N.nextArrow,{[N.arrowVertical]:g.direction==="vert"}),style:{color:I.color,"--arrow-hover-color":I.hover},children:x.jsxs("button",{className:N.arrowInner,style:{transform:`translate(${F.scalingValue(I.offset.x*(g.direction==="horiz"?-1:1),i)}, ${F.scalingValue(I.offset.y,i)}) scale(${I.scale}) rotate(${g.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var S;return(S=f.current)==null?void 0:S.go("+1")},"aria-label":"Next",children:[I.arrowsImgUrl&&x.jsx(de,{url:I.arrowsImgUrl,fill:I.color,hoverFill:I.hover,className:N.arrowImg}),!I.arrowsImgUrl&&x.jsx(xo,{color:I.color,className:dt(N.arrowIcon,N.arrowImg)})]})})]}),_.closeIconUrl&&(()=>{const S=Me(_.closeIconAlign,_.closeIconOffset,i),H=`scale(${_.closeIconScale})`,G=S.transform?`${S.transform} ${H}`:H;return x.jsx("button",{className:N.closeButton,style:{...S,transform:G},onClick:K,"aria-label":"Close lightbox",children:x.jsx(de,{url:_.closeIconUrl,fill:_.closeIconColor??"#000000",hoverFill:_.closeIconHover??"#cccccc"})})})(),v&&v.isActive&&o.imageCaption&&((z=n[s])==null?void 0:z.imageCaption)&&(()=>{const{widthSettings:S,fontSettings:H,letterSpacing:G,textAlign:J,wordSpacing:ot,fontSizeLineHeight:tt,textAppearance:q,color:nt}=o.imageCaption;return x.jsx("div",{className:N.caption,style:{...Me(v.alignment,v.offset,i),fontFamily:H.fontFamily,fontWeight:H.fontWeight,fontStyle:H.fontStyle,width:S.sizing==="auto"?"max-content":F.scalingValue(S.width,i),letterSpacing:F.scalingValue(G,i),wordSpacing:F.scalingValue(ot,i),textAlign:J,fontSize:F.scalingValue(tt.fontSize,i),lineHeight:F.scalingValue(tt.lineHeight,i),textTransform:q.textTransform??"none",textDecoration:q.textDecoration??"none",fontVariant:q.fontVariant??"normal",color:nt},onClick:vt=>vt.stopPropagation(),children:x.jsx("div",{"data-styles":"imageCaption",className:N.captionTextInner,style:{"--link-color":v.linkColor,"--link-hover-color":v.linkHoverColor},children:x.jsx(ar,{content:n[s].imageCaption})})})})(),A.isActive&&(()=>{const[S,H]=A.position.split("-"),G=g.direction==="horiz"?`${S}-left`:A.position,J=Me(G,A.offset,i),ot=()=>{if(g.direction==="horiz"){if(H==="left")return"flex-start";if(H==="center")return"center";if(H==="right")return"flex-end"}else{if(S==="top")return"flex-start";if(S==="middle")return"center";if(S==="bottom")return"flex-end"}return"flex-start"};return x.jsx("div",{ref:k,className:N.thumbsWrapper,onClick:tt=>mt(tt),style:{position:i?"absolute":"fixed",...J,...g.direction==="horiz"?{maxWidth:"100vw",width:"100%",overflowX:"auto",overflowY:"hidden"}:{maxHeight:"100vh",overflowY:"auto",overflowX:"hidden"}},children:x.jsx("div",{className:dt(N.thumbsContainer,{[N.thumbsContainerVertical]:g.direction==="vert",[N.thumbsAlignStart]:A.align==="start",[N.thumbsAlignCenter]:A.align==="center",[N.thumbsAlignEnd]:A.align==="end"}),style:{gap:F.scalingValue(A.grid.gap,i),justifyContent:B?"flex-start":ot()},children:n.map((tt,q)=>{const nt=q===s,vt=C[q],pt=A.grid.size*(nt?A.activeState.scale:1),kt=()=>{if(A.fit!=="fit")return{};if(!vt)return g.direction==="horiz"?{height:F.scalingValue(pt,i)}:{width:F.scalingValue(pt,i)};const et=vt.width/vt.height;if(g.direction==="horiz"){const lt=pt,Ct=lt*et;return{width:F.scalingValue(Ct,i),height:F.scalingValue(lt,i)}}else{const lt=pt,Ct=lt/et;return{width:F.scalingValue(lt,i),height:F.scalingValue(Ct,i)}}};return x.jsx("button",{className:N.thumbItem,style:{...g.direction==="horiz"&&A.fit!=="fit"?{height:F.scalingValue(pt,i)}:{},...g.direction==="vert"&&A.fit!=="fit"?{width:F.scalingValue(pt,i)}:{},...A.fit==="cover"?{width:F.scalingValue(pt,i),height:F.scalingValue(pt,i)}:{},...kt(),transition:nt?"all 0.25s ease-out":"none",opacity:nt?A.activeState.opacity/100:A.opacity/100,"--thumb-hover":A.activeState.opacity/100},onClick:et=>{var lt;et.stopPropagation(),p(q),(lt=f.current)==null||lt.go(q)},onMouseEnter:()=>{var et;A.triggers==="hov"&&((et=f.current)==null||et.go(q))},children:x.jsx("img",{src:tt.image.url,alt:tt.image.name??"",onLoad:et=>{const lt=et.currentTarget;lt.naturalWidth&&lt.naturalHeight&&b(Ct=>({...Ct,[q]:{width:lt.naturalWidth,height:lt.naturalHeight}}))},style:{objectFit:A.fit==="cover"?"cover":"contain",...A.fit==="fit"?{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}:{},...A.fit==="cover"?{width:"100%",height:"100%"}:{}}})},`${tt.image.name}-${q}`)})})})})()]})]}),document.getElementById(a))};function xo({color:t,className:e}){return x.jsx("svg",{viewBox:"0 0 10 18",className:e,children:x.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:x.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:t,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const ys={element:fs,id:"lightbox",name:"Lightbox",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/lightboxImg.png"},defaultSize:{width:440,height:550},fontSettingsPaths:{content:[],parameters:[{path:"styles.imageCaption.fontSettings"}]},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.thumbnailBlock.cover.url",placeholderEnabled:!0},{path:"settings.controls.arrowsImgUrl"},{path:"settings.area.closeIconUrl"}]},schema:{type:"object",properties:{settings:{type:"object",properties:{thumbnailBlock:{display:{type:"settings-block",triggerEvent:"close"},type:"object",properties:{cover:{title:"COVER",icon:"cover",tooltip:"Cover Image",type:"object",properties:{url:{type:"string",display:{type:"cover-image-input"}}}}}},lightboxBlock:{display:{type:"settings-block",triggerEvent:"open"},type:"object",properties:{appear:{title:"APPEAR",icon:"transition",tooltip:"Appearance",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide in","fade in","mix"]},duration:{type:"string",label:"T",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]},direction:{type:"string",title:"From",display:{type:"direction-control"},enum:["top","left","right","bottom"]}}},triggers:{title:"TRIGGERS",icon:"target",tooltip:"Triggers",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["click","drag"]},switch:{type:"string",display:{type:"ratio-group"},enum:["image","50/50"]},repeat:{type:"string",title:"Repeat",display:{visible:!1,type:"ratio-group"},enum:["close","loop"]}}},slider:{title:"SLIDER",icon:"horizontal-resize",tooltip:"Slider",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide","fade","scale"]},direction:{type:"string",display:{type:"ratio-group"},enum:["horiz","vert"]},duration:{type:"string",label:"T",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]}}},thumbnail:{title:"THUMB",icon:"thumbnail",tooltip:"Thumbnail",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},position:{display:{type:"align-grid"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},fit:{type:"string",display:{type:"ratio-group"},enum:["cover","fit"]},align:{type:"string",title:"Align",display:{type:"align-group",direction:"horizontal"},enum:["start","center","end"]},triggers:{type:"string",title:"Triggers",display:{type:"ratio-group",direction:"horizontal"},enum:["clk","hov"]},grid:{type:"object",title:"Grid",display:{type:"group"},properties:{size:{type:"number",label:"Box",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},gap:{type:"number",label:"Gap",scalingEnabled:!0,min:0,display:{type:"numeric-input"}}}},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},opacity:{type:"number",title:"Opacity",label:"icon:opacity",min:0,max:100,step:1,display:{type:"numeric-input"}},activeState:{type:"object",title:"ACTIVE",display:{type:"group"},properties:{scale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control"}},opacity:{type:"number",title:"Opacity",label:"icon:opacity",min:0,max:100,step:1,display:{type:"numeric-input"}}}}}},layout:{title:"LAYOUT",icon:"layout",tooltip:"Layout",type:"object",properties:{position:{display:{type:"align-grid"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},padding:{type:"object",title:"Padding",display:{type:"padding-controls"},properties:{top:{min:0,step:1,type:"number"},left:{min:0,step:1,type:"number"},right:{min:0,step:1,type:"number"},bottom:{min:0,step:1,type:"number"}}}}},controls:{title:"CONTROLS",icon:"controls",tooltip:"Controls",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},offset:{title:"Offset",type:"object",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"Scale",min:.5,max:5,step:.1,display:{type:"range-control"}},color:{title:"Color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"Hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},area:{title:"AREA",icon:"area",tooltip:"Area",type:"object",properties:{color:{type:"string",display:{type:"settings-color-picker",format:"single"}},blur:{type:"number",label:"icon:blur",display:{type:"numeric-input"}},closeIconUrl:{type:["string","null"],title:"Close Icon",display:{type:"settings-image-input"}},closeIconAlign:{display:{type:"align-grid",direction:"horizontal"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},closeIconScale:{type:"number",title:"Scale",min:.5,max:5,step:.1,display:{type:"range-control"}},closeIconOffset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},closeIconColor:{title:"Color",type:"string",display:{type:"settings-color-picker",format:"single"}},closeIconHover:{title:"Hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},caption:{title:"DESC",icon:"text-icon",tooltip:"Description",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},alignment:{type:"string",display:{type:"align-grid"},enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{title:"Offset",type:"object",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},linkColor:{title:"Link",type:"string",display:{type:"settings-color-picker",format:"single"}},linkHoverColor:{title:"Link Hov",type:"string",display:{type:"settings-color-picker",format:"single"}}}}}}},default:{d:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"slide in",duration:"1000ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"vert",duration:"1000ms"},thumbnail:{isActive:!0,position:"middle-left",fit:"fit",align:"start",triggers:"hov",grid:{size:.05,gap:.01},offset:{x:.01,y:0},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:0,bottom:.06,left:0}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},linkColor:"#cccccc",linkHoverColor:"#cccccc"}}},m:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"fade in",duration:"500ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"horiz",duration:"1000ms"},thumbnail:{isActive:!0,position:"bottom-center",fit:"fit",align:"start",triggers:"hov",grid:{size:.1,gap:.05},offset:{x:.01,y:-.05},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:.05,bottom:.06,left:.05}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},hover:"#cccccc"}}},t:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"fade in",duration:"500ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"vert",duration:"1000ms"},thumbnail:{isActive:!0,position:"middle-left",fit:"fit",align:"start",triggers:"hov",grid:{size:.05,gap:.01},offset:{x:.03,y:0},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:.1,bottom:.06,left:.1}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},hover:"#cccccc"}}}},displayRules:[{if:{name:"lightboxBlock.appear.type",value:"slide in"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!0}},{if:{name:"lightboxBlock.slider.direction",value:"vert"},then:{name:"properties.lightboxBlock.properties.thumbnail.properties.align.display.direction",value:"vertical"}},{if:{name:"lightboxBlock.appear.type",value:"mix"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!0}},{if:{name:"lightboxBlock.appear.type",value:"fade in"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!1}},{if:[{name:"lightboxBlock.triggers.type",value:"click"},{name:"lightboxBlock.triggers.switch",value:"image"}],then:{name:"properties.lightboxBlock.properties.triggers.properties.repeat.display.visible",value:!0}}]},content:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},imageCaption:{label:"Description",placeholder:"Add Caption...",display:{type:"rich-text"}}},required:["image"]},default:[{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/2.jpg",name:"Slider-1.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/3.jpg",name:"Slider-2.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/4.jpg",name:"Slider-3.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]}]},styles:{type:"object",properties:{imageCaption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right","justify"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase","capitalize"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"auto"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.02,lineHeight:.02},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}}},required:["settings","content","styles"]}};function Zt(t,e){var n,o,r;return{fontFamily:t.fontSettings.fontFamily,fontWeight:t.fontSettings.fontWeight,fontStyle:t.fontSettings.fontStyle,letterSpacing:F.scalingValue(t.letterSpacing,e),wordSpacing:F.scalingValue(t.wordSpacing,e),fontSize:F.scalingValue(t.fontSize,e),lineHeight:t.lineHeight!==void 0?F.scalingValue(t.lineHeight,e):void 0,textTransform:(n=t.textAppearance)==null?void 0:n.textTransform,textDecoration:(o=t.textAppearance)==null?void 0:o.textDecoration,fontVariant:(r=t.textAppearance)==null?void 0:r.fontVariant,color:t.color}}function He(t){return`calc(var(--cntrl-article-width, 100vw) * ${t/1440})`}function vs(t){return`
7
- .${t}-wrapper {
6
+ */const ga="RichTextRenderer-module__link___BWeZ2",ma={link:ga},ar=({content:e})=>{const t=n=>n.map((o,r)=>o.type==="link"?S.jsx("a",{className:ma.link,href:o.value,target:o.target,children:t(o.children)},r):S.jsx("span",{style:fa(o),children:o.text},r));return S.jsx(S.Fragment,{children:e.map((n,o)=>{const r=n.children;return S.jsx("div",{children:t(r)},o)})})};function fa(e){return{...e.fontFamily&&{fontFamily:e.fontFamily},...e.fontWeight&&{fontWeight:e.fontWeight},...e.fontStyle&&{fontStyle:e.fontStyle},...e.textDecoration&&{textDecoration:e.textDecoration},...e.textTransform&&{textTransform:e.textTransform},...e.fontVariant&&{fontVariant:e.fontVariant},...e.verticalAlign&&{verticalAlign:e.verticalAlign,lineHeight:"0px"}}}const ha="SvgImage-module__svg___q3xE-",ya="SvgImage-module__img___VsTm-",fo={svg:ha,img:ya},va=e=>{const t=e.trim();return t.startsWith("data:image/svg+xml")?!0:(t.split(/[?#]/)[0]??t).endsWith(".svg")},ba=e=>`url("${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`,gt=({url:e,fill:t="#000000",hoverFill:n="#CCCCCC",className:o="",style:r})=>{const[a,i]=j.useState(()=>typeof window>"u"?!0:CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")'));return j.useEffect(()=>{if(typeof window<"u"&&window.CSS){const l=CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")');i(l)}},[]),!va(e)||!a?S.jsx("img",{src:e,alt:"",className:ge(fo.img,o),style:r}):S.jsx("span",{"data-supports-mask":a,className:ge(fo.svg,o),style:{"--svg":ba(e),"--fill":t,"--hover-fill":n,...r??{}}})},Sa={"top-left":G.topLeftAlignment,"top-center":G.topCenterAlignment,"top-right":G.topRightAlignment,"middle-left":G.middleLeftAlignment,"middle-center":G.middleCenterAlignment,"middle-right":G.middleRightAlignment,"bottom-left":G.bottomLeftAlignment,"bottom-center":G.bottomCenterAlignment,"bottom-right":G.bottomRightAlignment};function xa({settings:e,content:t,styles:n,isEditor:o}){const[r,a]=j.useState(null),{widthSettings:i,fontSettings:l,letterSpacing:s,textAlign:p,wordSpacing:c,fontSizeLineHeight:_,textAppearance:y,color:g}=n.imageCaption,[u,d]=j.useState(void 0),[C,v]=j.useState(null),[f,$]=j.useState(0),[M,O]=j.useState(0),{direction:w,transition:h,controls:L,pagination:P,imageCaption:N,triggers:R}=e,V=j.useRef(h.type),{x:B,y:U}=e.controls.offset,H=m=>{r&&r.go(m)};return j.useEffect(()=>{if(!C)return;const m=new ResizeObserver(I=>{if(!r)return;const[E]=I;d({width:Math.round(E.contentRect.width),height:Math.round(E.contentRect.height)})});return m.observe(C),()=>m.unobserve(C)},[C]),j.useEffect(()=>{!r||V.current===h.type||(O(m=>m+1),V.current=h.type)},[h.type]),S.jsx("div",{className:ge(G.wrapper,{[G.editor]:o}),ref:v,children:S.jsxs("div",{className:G.sliderInner,style:{width:u?u.width:"100%",height:u?u.height:"100%",backgroundColor:h.backgroundColor&&h.type==="fade in"?h.backgroundColor:"transparent"},children:[e.imageCaption.isActive&&S.jsx("div",{className:ge(G.captionBlock),children:S.jsx("div",{className:G.captionTextWrapper,children:t.map((m,I)=>S.jsx("div",{className:ge(G.captionText,Sa[N.alignment],{[G.withPointerEvents]:I===f&&o,[G.active]:I===f}),style:{fontFamily:l.fontFamily,fontWeight:l.fontWeight,fontStyle:l.fontStyle,width:i.sizing==="auto"?"max-content":F.scalingValue(i.width,o),letterSpacing:F.scalingValue(s,o),wordSpacing:F.scalingValue(c,o),textAlign:p,fontSize:F.scalingValue(_.fontSize,o),lineHeight:F.scalingValue(_.lineHeight,o),textTransform:y.textTransform??"none",textDecoration:y.textDecoration??"none",fontVariant:y.fontVariant??"normal",color:g,transitionDuration:h.duration?`${Math.round(parseInt(h.duration)/2)}ms`:"500ms"},children:S.jsx("div",{"data-styles":"imageCaption",className:G.captionTextInner,style:{"--link-hover-color":N.linkHoverColor,"--link-color":N.linkColor,position:"relative",top:F.scalingValue(N.offset.y,o),left:F.scalingValue(N.offset.x,o)},children:S.jsx(ar,{content:m.imageCaption})})},I))})}),S.jsx(rr,{onMove:m=>{$(m.index)},ref:a,options:{arrows:!1,speed:h.duration?parseInt(h.duration):500,autoplay:R.autoPlay!==null,...R.autoPlay!==null&&{interval:parseInt(R.autoPlay)*1e3},direction:w==="horiz"||h.type==="fade in"?"ltr":"ttb",pagination:!1,drag:R.triggersList.drag,perPage:1,width:u?u.width:"100%",height:u?u.height:"100%",type:h.type==="fade in"?"fade":"loop",rewind:!0},children:t.map((m,I)=>S.jsx(ir,{children:S.jsx("div",{className:G.sliderItem,children:S.jsx("div",{className:G.imgWrapper,children:S.jsx("img",{className:ge(G.sliderImage,{[G.contain]:m.image.objectFit==="contain",[G.cover]:m.image.objectFit==="cover"}),src:m.image.url,alt:m.image.name??""})})})},I))},M),L.isActive&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:ge(G.arrow,{[G.arrowVertical]:w==="vert",[G.hoverArrow]:L.show==="on hover"}),style:{color:L.color,"--arrow-hover-color":L.hover},children:S.jsxs("button",{onClick:()=>{H("-1")},className:G.arrowInner,style:{transform:`translate(${F.scalingValue(B,o)}, ${F.scalingValue(U*(w==="horiz"?1:-1),o)}) scale(${e.controls.scale/100}) rotate(${w==="horiz"?"0deg":"90deg"})`},children:[L.arrowsImgUrl&&S.jsx(gt,{url:L.arrowsImgUrl,fill:L.color,hoverFill:L.hover,className:ge(G.arrowImg,G.mirror)}),!L.arrowsImgUrl&&S.jsx(ho,{color:L.color,className:ge(G.arrowIcon,G.arrowImg,G.mirror)})]})}),S.jsx("div",{className:ge(G.arrow,G.nextArrow,{[G.arrowVertical]:w==="vert",[G.hoverArrow]:L.show==="on hover"}),style:{color:L.color,"--arrow-hover-color":L.hover},children:S.jsxs("button",{className:G.arrowInner,onClick:()=>H("+1"),style:{transform:`translate(${F.scalingValue(B*(w==="horiz"?-1:1),o)}, ${F.scalingValue(U,o)}) scale(${e.controls.scale/100}) rotate(${w==="horiz"?"0deg":"90deg"})`},children:[L.arrowsImgUrl&&S.jsx(gt,{url:L.arrowsImgUrl,fill:L.color,hoverFill:L.hover,className:G.arrowImg}),!L.arrowsImgUrl&&S.jsx(ho,{color:L.color,className:ge(G.arrowIcon,G.arrowImg)})]})})]}),R.triggersList.click&&S.jsx("div",{className:G.clickOverlay,onClick:()=>{r&&r.go("+1")}}),P.isActive&&S.jsx("div",{className:ge(G.pagination,{[G.paginationInsideBottom]:P.position==="inside-1"&&w==="horiz",[G.paginationInsideTop]:P.position==="inside-2"&&w==="horiz",[G.paginationOutsideBottom]:P.position==="outside-1"&&w==="horiz",[G.paginationOutsideTop]:P.position==="outside-2"&&w==="horiz",[G.paginationInsideLeft]:P.position==="inside-1"&&w==="vert",[G.paginationInsideRight]:P.position==="inside-2"&&w==="vert",[G.paginationOutsideLeft]:P.position==="outside-1"&&w==="vert",[G.paginationOutsideRight]:P.position==="outside-2"&&w==="vert",[G.paginationVertical]:w==="vert"}),children:S.jsx("div",{className:G.paginationInner,style:{backgroundColor:P.colors[2],transform:`scale(${P.scale/100}) translate(${F.scalingValue(P.offset.x,o)}, ${F.scalingValue(P.offset.y,o)}) rotate(${w==="horiz"?"0deg":"90deg"})`},children:t.map((m,I)=>S.jsx("button",{onClick:()=>{r&&r.go(I)},className:ge(G.paginationItem),children:S.jsx("div",{className:ge(G.dot,{[G.activeDot]:I===f}),style:{backgroundColor:I===f?P.colors[0]:P.colors[1],"--pagination-hover-color":P.hover}})},I))})})]})})}function ho({color:e,className:t}){return S.jsx("svg",{viewBox:"0 0 10 18",className:t,children:S.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:S.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:e,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const Ca={element:xa,id:"control-slider",name:"Slider",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/sliderImg.png"},defaultSize:{width:400,height:400},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.controls.arrowsImgUrl"}]},fontSettingsPaths:{content:[],parameters:[{path:"styles.imageCaption.fontSettings"}]},schema:{type:"object",properties:{settings:{type:"object",display:{type:"settings-block"},properties:{triggers:{title:"triggers",icon:"target",tooltip:"Triggers",type:"object",properties:{triggersList:{type:"object",display:{type:"toggle-ratio-group"},properties:{click:{type:"boolean"},drag:{type:"boolean"}}},autoPlay:{type:["string","null"],label:"Auto",display:{type:"step-selector"},enum:[null,"1s","2s","3s","4s","5s"]}}},direction:{icon:"horizontal-resize",tooltip:"Direction",type:"string",display:{type:"ratio-group"},enum:["horiz","vert"]},transition:{title:"transit",icon:"transition",tooltip:"Transition",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide","fade in"]},backgroundColor:{type:["string","null"],title:"BG Color",display:{visible:!1,type:"settings-color-picker",format:"single"}},duration:{type:"string",label:"icon:hourglass",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]}}},controls:{title:"controls",icon:"controls",tooltip:"Controls",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"scale",min:50,max:600,display:{type:"range-control"}},color:{title:"color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}},show:{title:"Show",type:"string",display:{type:"ratio-group"},enum:["always","on hover"]}}},pagination:{title:"nav",icon:"pagination",tooltip:"Navigation",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},position:{display:{type:"socket",direction:"horizontal"},type:"string",enum:["outside-1","outside-2","inside-1","inside-2"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"scale",min:10,max:400,display:{type:"range-control"}},colors:{display:{type:"settings-color-picker",format:"multiple"},title:"color",type:"array",items:{type:"string"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},imageCaption:{title:"Caption",icon:"text-icon",tooltip:"Caption",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},alignment:{type:"string",display:{type:"align-grid"},enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},linkColor:{title:"Link",type:"string",display:{type:"settings-color-picker",format:"single"}},linkHoverColor:{title:"Link Hov",type:"string",display:{type:"settings-color-picker",format:"single"}}}}},default:{triggers:{triggersList:{click:!1,drag:!0},autoPlay:null},controls:{isActive:!0,arrowsImgUrl:null,offset:{x:0,y:0},scale:100,color:"#000000",hover:"#cccccc",show:"always"},transition:{type:"slide",duration:"500ms",backgroundColor:null},pagination:{isActive:!0,scale:50,position:"outside-1",offset:{x:0,y:0},colors:["#cccccc","#cccccc","#000000"],hover:"#cccccc"},direction:"horiz",imageCaption:{offset:{x:0,y:0},isActive:!0,alignment:"middle-center",linkColor:"#cccccc",linkHoverColor:"#cccccc"}},displayRules:[{if:{name:"direction",value:"vert"},then:{name:"properties.pagination.properties.position.display.direction",value:"vertical"}},{if:{name:"transition.type",value:"fade in"},then:{name:"properties.transition.properties.backgroundColor.display.visible",value:!0}}]},content:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},imageCaption:{placeholder:"Add Caption...",label:"Description",display:{type:"rich-text"}}},required:["image"]},default:[{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-1.png",name:"Slider-1.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-2.png",name:"Slider-2.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/component-assets/Control-slider-default-picture-3.png",name:"Slider-3.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]}]},styles:{type:"object",properties:{imageCaption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right","justify"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase","capitalize"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"auto"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.02,lineHeight:.02},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}}},required:["settings","content","styles"]}},$a="ImageRevealSlider-module__imageRevealSlider___UE5Ob",_a="ImageRevealSlider-module__image___Qjt-e",wa="ImageRevealSlider-module__link___N-iLG",Ta="ImageRevealSlider-module__cursor___2U03d",lt={imageRevealSlider:$a,image:_a,link:wa,cursor:Ta};function yo(e,t,n){for(const o of n){const r=new Image;r.src=o.url;const a=o.width?Number.parseFloat(o.width):r.naturalWidth,i=r.naturalHeight/r.naturalWidth*a,l=a/2,s=i/2;if(e>=o.x-l&&e<=o.x+l&&t>=o.y-s&&t<=o.y+s)return!0}return!1}function xn(e){return new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>{t({width:n.naturalWidth,height:n.naturalHeight})}})}async function Ea(e,t,n,o){let r,a;if(t==="custom"){r=n;const i=await xn(e);a=i.height/i.width*r}else if(t==="random"){r=Math.random()*(o.max-o.min)+o.min;const i=await xn(e);a=i.height/i.width*r}else{const i=await xn(e);r=i.width,a=i.height}return{width:r,height:a,finalWidth:`${r}px`}}function La({settings:e,content:t,isEditor:n}){const[o,r]=j.useState(null),[a,i]=j.useState([]),[l,s]=j.useState(0),p=j.useRef(0),[c,_]=j.useState({x:0,y:0}),[y,g]=j.useState(1),[u,d]=j.useState("none"),C=j.useRef({x:0,y:0}),[v,f]=j.useState(!1),{sizeType:$,imageWidth:M,randomRangeImageWidth:O}=e.imageSize,{revealPosition:w,visible:h}=e.position,{cursorType:L,target:P,defaultCursorScale:N,defaultCursor:R,hoverCursorScale:V,hoverCursor:B}=e.cursor;j.useEffect(()=>{if(!o)return;const m=(T,x)=>{const k=o.getBoundingClientRect(),Y=T-k.left,re=x-k.top;if(_({x:Y,y:re}),L==="system"){d("none"),g(1);return}const te=Y,ie=re,A=document.elementFromPoint(k.left+te,k.top+ie);if(A&&A.closest("a")){d("none"),g(1);return}const K=yo(te,ie,a)||P==="area"?{img:B??"none",scale:V}:{img:R??"none",scale:N};d(K.img),g(K.scale)},I=T=>{T.stopPropagation(),C.current={x:T.clientX,y:T.clientY},m(T.clientX,T.clientY)},E=()=>{v&&m(C.current.x,C.current.y)};return o.addEventListener("mousemove",I),window.addEventListener("scroll",E,!0),()=>{o.removeEventListener("mousemove",I),window.removeEventListener("scroll",E,!0)}},[o,v,c,L,P,B,R,V,N,a]),j.useEffect(()=>{v||(d("none"),g(0))},[v]);const U=async(m,I,E,T={})=>{const{width:x,height:k,finalWidth:Y}=await Ea(m.image.url,$,M,O);let re=0,te=0;w==="same"?(re=I/2,te=E/2):(re=T.x??Math.random()*I,te=T.y??Math.random()*E);const ie=Math.min(Math.max(re,x/2),I-x/2),A=Math.min(Math.max(te,k/2),E-k/2);return{id:p.current++,url:m.image.url,link:m.link,name:m.image.name,x:ie,y:A,width:Y}};j.useEffect(()=>{if(!o||t.length===0)return;const m=o.getBoundingClientRect(),I=m.width,E=m.height,T=[];(async()=>{const k=t[0],Y=await U(k,I,E);T.push(Y),i(T),s(1)})()},[$,M,O,w,o]),j.useEffect(()=>{h==="last One"&&i(m=>m.length>0?[m[m.length-1]]:[])},[h]);const H=async m=>{if(!o)return;const I=o.getBoundingClientRect(),E=m.clientX-I.left,T=m.clientY-I.top;if(P==="image"&&!yo(E,T,a))return;let x=0,k=0;w==="on Click"?(x=E,k=T):w==="same"?(x=I.width/2,k=I.height/2):(x=Math.random()*I.width,k=Math.random()*I.height);const Y=t[l],re=await U(Y,I.width,I.height,{x,y:k});i(te=>h==="all"?[...te,re]:[re]),s(te=>te>=t.length-1?0:te+1)};return S.jsxs("div",{ref:r,onClick:H,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),className:lt.imageRevealSlider,style:{cursor:u==="none"?"default":"none"},children:[a.map(m=>S.jsx("div",{className:lt.wrapper,style:{top:`${m.y}px`,left:`${m.x}px`,position:"absolute",transform:"translate(-50%, -50%)",width:m.width??"auto",height:"auto",cursor:u==="none"?"default":"none"},children:P==="area"&&m.link?S.jsx("a",{href:m.link,target:"_blank",className:lt.link,children:S.jsx("img",{src:m.url,alt:m.name,className:lt.image},m.id)}):S.jsx("img",{src:m.url,alt:m.name,className:lt.image},m.id)},m.id)),v&&S.jsx("div",{className:lt.cursor,style:{left:`${c.x}px`,top:`${c.y}px`,transform:`translate(-50%, -50%) scale(${y})`,backgroundImage:`url('${u}')`,backgroundSize:"cover",backgroundPosition:"center",position:"absolute",pointerEvents:"none"}})]})}const Aa={element:La,id:"control-image-reveal",name:"Click Gallery",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/clickGalleryImg.png"},defaultSize:{width:"100%",height:"100%"},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.cursor.defaultCursor"},{path:"settings.cursor.hoverCursor"}]},fontSettingsPaths:{content:[],parameters:[]},schema:{type:"object",properties:{settings:{type:"object",display:{type:"settings-block"},properties:{imageSize:{title:"IMG SIZE",icon:"size",tooltip:"IMG SIZE",type:"object",properties:{sizeType:{type:"string",display:{type:"ratio-group"},enum:["as Is","custom","random"]},imageWidth:{type:"number",label:"W",display:{type:"numeric-input",visible:!1}},randomRangeImageWidth:{type:"object",display:{type:"random-range-controls",visible:!1},properties:{min:{type:"number"},max:{type:"number"}}}}},cursor:{title:"cursor",icon:"cursor",tooltip:"cursor",type:"object",properties:{cursorType:{type:"string",display:{type:"ratio-group"},enum:["system","custom"]},target:{type:"string",title:"Target",display:{type:"ratio-group"},enum:["area","image"]},defaultCursor:{type:["string","null"],title:"Default",display:{type:"settings-image-input",visible:!1}},defaultCursorScale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control",visible:!1}},hoverCursor:{type:["string","null"],title:"Hover",display:{type:"settings-image-input",visible:!1}},hoverCursorScale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control",visible:!1}}}},position:{title:"position",icon:"transition",tooltip:"Position",type:"object",properties:{revealPosition:{type:"string",display:{type:"ratio-group"},enum:["random","same","on Click"]},visible:{type:"string",title:"Visible",display:{type:"ratio-group"},enum:["all","last One"]}}}},default:{imageSize:{sizeType:"custom",imageWidth:500,randomRangeImageWidth:{min:100,max:1e3}},cursor:{cursorType:"system",target:"area",defaultCursor:null,defaultCursorScale:2,hoverCursor:null,hoverCursorScale:2},position:{revealPosition:"random",visible:"all"}},displayRules:[{if:{name:"imageSize.sizeType",value:"custom"},then:{name:"properties.imageSize.properties.imageWidth.display.visible",value:!0}},{if:{name:"imageSize.sizeType",value:"random"},then:{name:"properties.imageSize.properties.randomRangeImageWidth.display.visible",value:!0}},{if:[{name:"cursor.target",value:"image"},{name:"cursor.cursorType",value:"custom"}],then:{name:"properties.cursor.properties.defaultCursor.display.visible",value:!0}},{if:[{name:"cursor.target",value:"image"},{name:"cursor.cursorType",value:"custom"},{name:"cursor.defaultCursor",value:null,isNotEqual:!0}],then:{name:"properties.cursor.properties.defaultCursorScale.display.visible",value:!0}},{if:{name:"cursor.cursorType",value:"custom"},then:{name:"properties.cursor.properties.hoverCursor.display.visible",value:!0}},{if:[{name:"cursor.cursorType",value:"custom"},{name:"cursor.hoverCursor",value:null,isNotEqual:!0}],then:{name:"properties.cursor.properties.hoverCursorScale.display.visible",value:!0}}]},content:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{isObjectFitEditable:!1,type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},link:{label:"URL",placeholder:"Enter link...",display:{type:"text-input"}}},required:["image"]},default:[{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQK9211QXBE9W284ZNKB8.png",name:"Slider-1.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQMFT72JD18WKP0Q2DVAT.png",name:"Slider-2.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQNEVRXPSRX5K1YTMJQY9.png",name:"Slider-3.png"},link:""},{image:{objectFit:"cover",url:"https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K7ERQP84JKRDT7WNWDQZR4Y9.png",name:"Slider-4.png"},link:""}]}}}},Ia="LightBox-module__hidden___9s-9x",ka="LightBox-module__heroImage___sTxNF",Fa="LightBox-module__background___rm9ml",Ra="LightBox-module__editor___4ACaY",Pa="LightBox-module__contentStyle___Bgnsq",Va="LightBox-module__imageStyle___tLIlB",Ba="LightBox-module__imgWrapper___LuFUp",Oa="LightBox-module__contain___8-yaS",Wa="LightBox-module__cover___hNvOG",Na="LightBox-module__caption___b6L2I",za="LightBox-module__captionTextInner___rCGNH",ja="LightBox-module__lightboxSplide___XFuWC",Ma="LightBox-module__arrow___iz38X",Ha="LightBox-module__arrowVertical___Zfz81",Da="LightBox-module__nextArrow___zkAQN",Ua="LightBox-module__arrowInner___p48sW",Ga="LightBox-module__arrowIcon___3VaFf",Ya="LightBox-module__arrowImg___pNV88",qa="LightBox-module__mirror___pjeXc",Xa="LightBox-module__thumbsWrapper___GB-nU",Ka="LightBox-module__thumbsContainerVertical___wttk5",Ja="LightBox-module__thumbsContainer___osSma",Za="LightBox-module__thumbsAlignStart___MO6tY",Qa="LightBox-module__thumbsAlignCenter___Q4sUx",el="LightBox-module__thumbsAlignEnd___p4y9R",tl="LightBox-module__thumbItem___HvnF3",nl="LightBox-module__closeButton___g2khP",ol="LightBox-module__fadeIn___0m5GW",rl="LightBox-module__slideInLeft___gPYwC",il="LightBox-module__slideInRight___S-pPp",al="LightBox-module__slideInTop___DFdAj",ll="LightBox-module__slideInBottom___m27kZ",sl="LightBox-module__fadeOut___55qBR",cl="LightBox-module__slideOutLeft___NvU7P",ul="LightBox-module__slideOutRight___SK7eC",pl="LightBox-module__slideOutTop___Vgg0z",dl="LightBox-module__slideOutBottom___nJ0Ef",gl="LightBox-module__scaleSlide___vZriG",W={hidden:Ia,heroImage:ka,background:Fa,editor:Ra,contentStyle:Pa,imageStyle:Va,imgWrapper:Ba,contain:Oa,cover:Wa,caption:Na,captionTextInner:za,lightboxSplide:ja,arrow:Ma,arrowVertical:Ha,nextArrow:Da,arrowInner:Ua,arrowIcon:Ga,arrowImg:Ya,mirror:qa,thumbsWrapper:Xa,thumbsContainerVertical:Ka,thumbsContainer:Ja,thumbsAlignStart:Za,thumbsAlignCenter:Qa,thumbsAlignEnd:el,thumbItem:tl,closeButton:nl,fadeIn:ol,slideInLeft:rl,slideInRight:il,slideInTop:al,slideInBottom:ll,fadeOut:sl,slideOutLeft:cl,slideOutRight:ul,slideOutTop:pl,slideOutBottom:dl,scaleSlide:gl},Dt=(e,t,n)=>{const o={},[r,a]=e.split("-");return r==="top"?(o.top="0",o.bottom="auto"):r==="middle"?(o.top="50%",o.bottom="auto"):r==="bottom"&&(o.top="auto",o.bottom="0"),a==="left"?(o.left="0",o.right="auto"):a==="center"?(o.left="50%",o.right="auto"):a==="right"&&(o.left="auto",o.right="0"),r==="middle"&&a==="center"?o.transform=`translate(calc(-50% + ${F.scalingValue(t.x,n)}), calc(-50% + ${F.scalingValue(t.y,n)}))`:r==="middle"?o.transform=`translate(${F.scalingValue(t.x,n)}, calc(-50% + ${F.scalingValue(t.y,n)}))`:a==="center"?o.transform=`translate(calc(-50% + ${F.scalingValue(t.x,n)}), ${F.scalingValue(t.y,n)})`:o.transform=`translate(${F.scalingValue(t.x,n)}, ${F.scalingValue(t.y,n)})`,o};function lr(e){const t=window.getComputedStyle(e);return{top:parseFloat(t.paddingTop)||0,right:parseFloat(t.paddingRight)||0,bottom:parseFloat(t.paddingBottom)||0,left:parseFloat(t.paddingLeft)||0}}function vo(e){const t=e.getBoundingClientRect(),n=lr(e),o=Math.max(0,t.width-n.left-n.right),r=Math.max(0,t.height-n.top-n.bottom),a=e.naturalWidth,i=e.naturalHeight,l=o/r,s=a/i;let p,c;s>l?(p=o,c=o/s):(c=r,p=r*s);const _=t.left+n.left,y=t.top+n.top,g=(o-p)/2+_,u=(r-c)/2+y;return{x:g,y:u,width:p,height:c}}function bo(e){const t=e.getBoundingClientRect(),n=lr(e);return{left:t.left+n.left,right:t.right-n.right,top:t.top+n.top,bottom:t.bottom-n.bottom}}function So(e){const t=e.match(/rgba?\(([^)]+)\)/);if(t){const o=t[1].split(",").map(r=>parseFloat(r.trim()));return o.length===4?o[3]:1}const n=e.match(/^#([0-9a-fA-F]{8})$/);if(n){const o=n[1].substring(6,8);return parseInt(o,16)/255}return e.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/),1}function ml(e,t){const n=(()=>{if(e==="fade in")return W.fadeIn;if(e==="slide in"||e==="mix")switch(t){case"left":return W.slideInLeft;case"right":return W.slideInRight;case"top":return W.slideInTop;case"bottom":return W.slideInBottom;default:return W.slideInRight}return W.fadeIn})(),o=(()=>{if(e==="fade in"||e==="mix")return W.fadeIn;if(e==="slide in")switch(t){case"left":return W.slideInLeft;case"right":return W.slideInRight;case"top":return W.slideInTop;case"bottom":return W.slideInBottom;default:return W.slideInRight}return W.fadeIn})(),r=(()=>{if(e==="fade in"||e==="mix")return W.fadeOut;if(e==="slide in")switch(t){case"left":return W.slideOutLeft;case"right":return W.slideOutRight;case"top":return W.slideOutTop;case"bottom":return W.slideOutBottom;default:return W.slideOutRight}return W.fadeOut})(),a=(()=>{if(e==="fade in")return W.fadeOut;if(e==="slide in"||e==="mix")switch(t){case"left":return W.slideOutLeft;case"right":return W.slideOutRight;case"top":return W.slideOutTop;case"bottom":return W.slideOutBottom;default:return W.slideOutRight}return W.fadeOut})();return{appearClass:n,backdropAppearClass:o,backdropDisappearClass:r,disappearClass:a}}const fl=({settings:e,content:t,styles:n,portalId:o,activeEvent:r,isEditor:a})=>{const[i,l]=j.useState(!1),{url:s}=e.thumbnailBlock.cover;return j.useEffect(()=>{r==="close"&&l(!1),r==="open"&&l(!0)},[r]),S.jsxs(S.Fragment,{children:[S.jsx("img",{src:s,alt:"Cover",className:W.heroImage,onClick:()=>l(!0)}),S.jsx(hl,{isOpen:i,onClose:()=>l(!1),content:t,settings:e,lightboxStyles:n,portalId:o,isEditor:a})]})},hl=({isOpen:e,onClose:t,content:n,lightboxStyles:o,settings:r,portalId:a,isEditor:i,metadata:l})=>{var z;const[s,p]=j.useState(0),[c,_]=j.useState(0),[y,g]=j.useState(!1),[u,d]=j.useState(!1),[C,v]=j.useState({}),f=j.useRef(null),$=j.useRef(null),M=j.useRef(null),O=j.useRef(!1),w=j.useRef(null),h=j.useRef(null),L=j.useRef(null),P=j.useRef(null),N=j.useRef(!1),R=j.useRef(null),[V,B]=j.useState(!1),{appear:U,triggers:H,slider:m,thumbnail:I,controls:E,area:T,caption:x,layout:k}=r.lightboxBlock,{appearClass:Y,backdropAppearClass:re,backdropDisappearClass:te,disappearClass:ie}=ml(U.type,U.direction),A=(l==null?void 0:l.itemId)??null;j.useEffect(()=>{const b=()=>{setTimeout(()=>{var q,J;(J=(q=f.current)==null?void 0:q.splide)==null||J.refresh()},16)},D=()=>{_(q=>q+1)};return window.addEventListener("ArticleEditor.Layout:change",b),window.addEventListener("ArticleEditor.ComponentContent:change",D),()=>{window.removeEventListener("ArticleEditor.Layout:change",b),window.removeEventListener("ArticleEditor.ComponentContent:change",D)}},[]),j.useEffect(()=>{if(!e||!I.isActive){B(!1);return}const b=R.current;if(!b)return;const D=()=>{m.direction==="horiz"?B(b.scrollWidth>b.clientWidth):B(b.scrollHeight>b.clientHeight)};D();const q=new ResizeObserver(D);return q.observe(b),()=>q.disconnect()},[e,I.isActive,n.length,C,m.direction]);const K=j.useCallback(()=>{const b=window.matchMedia("(max-width: 768px)").matches,D=So(T.color);b&&!i&&D>.9&&(document.body.style.backgroundColor=""),g(!0),O.current=!0;const q=J=>{J.target===w.current&&J.animationName&&(w.current&&h.current&&w.current.removeEventListener("animationend",h.current),h.current=null,O.current&&(O.current=!1,t()),g(!1))};w.current&&(h.current=q,w.current.addEventListener("animationend",q))},[t,T.color,i]),fe=(b,D,q)=>{var J,ne;if(b){if(H.type==="click"&&H.switch==="image")H.repeat==="close"&&s===n.length-1?K():(J=f.current)==null||J.go("+1");else if(H.type==="click"&&H.switch==="50/50"){const Q=b.getBoundingClientRect(),X=D-Q.left,oe=q-Q.top,ye=Q.width,ae=Q.height;let pe;m.direction==="horiz"?pe=X<ye/2?"-1":"+1":pe=oe<ae/2?"-1":"+1",(ne=f.current)==null||ne.go(pe)}}},se=b=>{if(N.current){N.current=!1;return}const D=n[s],q=(D==null?void 0:D.image.objectFit)==="cover";let J,ne;if("changedTouches"in b&&b.changedTouches.length>0)J=b.changedTouches[0].clientX,ne=b.changedTouches[0].clientY;else if("clientX"in b)J=b.clientX,ne=b.clientY;else return;let Q;if(q&&M.current){const X=bo(M.current);Q=J>=X.left&&J<=X.right&&ne>=X.top&&ne<=X.bottom}else{const X=M.current?vo(M.current):null;if(!X){b.target===b.currentTarget&&K();return}Q=J>=X.x&&J<=X.x+X.width&&ne>=X.y&&ne<=X.y+X.height}Q?fe(M.current,J,ne):K()},he=b=>{const D=b.target;(D.classList.contains(W.thumbsWrapper)||D.classList.contains(W.thumbsContainer))&&se(b)};j.useEffect(()=>{if(!e)return;const b=D=>{var q,J;if(D.key==="Escape"){K();return}if(D.key==="ArrowRight"){p(ne=>(ne+1)%Math.max(n.length,1)),(q=f.current)==null||q.go("+1");return}D.key==="ArrowLeft"&&(p(ne=>(ne-1+Math.max(n.length,1))%Math.max(n.length,1)),(J=f.current)==null||J.go("-1"))};return window.addEventListener("keydown",b),()=>{window.removeEventListener("keydown",b)}},[e,K,n.length]),j.useEffect(()=>{if(e){if(p(0),_(D=>D+1),O.current=!1,g(!1),d(!1),v({}),!A)return;const b=new CustomEvent("page-overlay",{detail:{itemId:A}});window.dispatchEvent(b)}return()=>{w.current&&h.current&&(w.current.removeEventListener("animationend",h.current),h.current=null),d(!1)}},[e,A]),j.useEffect(()=>{$.current!==null&&$.current!==m.type&&_(b=>b+1),$.current=m.type},[m.type]),j.useEffect(()=>{if(!e)return;const b=document.body.style.overflow,D=window.matchMedia("(max-width: 768px)").matches,q=So(T.color);document.body.style.overflow="hidden",d(!1);const J=Q=>{Q.target===w.current&&!O.current&&Q.animationName&&(D&&!i&&q>.9&&(document.body.style.backgroundColor=T.color),d(!0),w.current&&L.current&&w.current.removeEventListener("animationend",L.current),L.current=null)};w.current&&(L.current=J,w.current.addEventListener("animationend",J));const ne=Q=>{const X=Q.target;X&&(X.closest(`.${W.thumbsWrapper}`)||X.closest(`.${W.thumbsContainer}`))||m.type!=="slide"&&Q.preventDefault()};return document.addEventListener("touchmove",ne,{passive:!1}),()=>{document.body.style.overflow=b,document.removeEventListener("touchmove",ne),w.current&&L.current&&(w.current.removeEventListener("animationend",L.current),L.current=null),d(!1)}},[e,i,T.color,m.type]),j.useEffect(()=>{if(!e)return;const b=D=>{var J,ne;if(O.current){D.stopPropagation();return}if(N.current){N.current=!1;return}const q=D.target;if(!(q&&(q.closest(`.${W.thumbsContainer}`)||q.closest(`.${W.thumbItem}`)))){if(m.type==="slide"&&H.type==="drag"&&((ne=(J=f.current)==null?void 0:J.splide)!=null&&ne.root)){const Q=f.current.splide.root;if(q&&(Q.contains(q)||Q===q))return}if(D.touches.length===0&&D.changedTouches.length>0){const Q=n[s],X=(Q==null?void 0:Q.image.objectFit)==="cover",oe=D.changedTouches[0];let ye;if(X&&M.current){const ae=bo(M.current);ye=oe.clientX>=ae.left&&oe.clientX<=ae.right&&oe.clientY>=ae.top&&oe.clientY<=ae.bottom}else{const ae=M.current?vo(M.current):null;if(!ae)return;ye=oe.clientX>=ae.x&&oe.clientX<=ae.x+ae.width&&oe.clientY>=ae.y&&oe.clientY<=ae.y+ae.height}if(!ye){D.stopPropagation(),O.current=!0;const ae=pe=>{pe.stopPropagation(),pe.preventDefault(),document.removeEventListener("click",ae,!0)};document.addEventListener("click",ae,!0),K()}}}};return document.addEventListener("touchend",b,{passive:!0}),()=>{document.removeEventListener("touchend",b)}},[e,K,s,n]);const be=(m.type==="scale"||m.type==="fade")&&m.direction==="vert"&&H.type==="drag";j.useEffect(()=>{var pe,Ve;if(!e||!be||!((Ve=(pe=f.current)==null?void 0:pe.splide)!=null&&Ve.root))return;const b=f.current.splide.root,D=30,q=(ee,ce)=>{if(P.current){const $e=Math.abs(ee-P.current.x),Ye=Math.abs(ce-P.current.y);($e>0||Ye>0)&&(N.current=!0)}},J=ee=>{P.current&&(ee.preventDefault(),q(ee.clientX,ee.clientY))},ne=ee=>{P.current&&ee.touches.length>0&&(ee.preventDefault(),q(ee.touches[0].clientX,ee.touches[0].clientY))},Q=(ee,ce)=>{if(!P.current||!f.current){P.current=null;return}const $e=Math.abs(ee-P.current.x),Ye=Math.abs(ce-P.current.y);Ye>D&&Ye>$e&&f.current.go(ce<P.current.y?"+1":"-1"),P.current=null},X=ee=>{P.current&&Q(ee.clientX,ee.clientY),document.removeEventListener("pointerup",X),document.removeEventListener("pointercancel",X),document.removeEventListener("pointermove",J)},oe=ee=>{if(P.current){if(ee.changedTouches.length>0){const ce=ee.changedTouches[0];Q(ce.clientX,ce.clientY)}document.removeEventListener("touchend",oe),document.removeEventListener("touchcancel",oe),document.removeEventListener("touchmove",ne)}},ye=ee=>{P.current={x:ee.clientX,y:ee.clientY},N.current=!1,document.addEventListener("pointermove",J,{passive:!1}),document.addEventListener("pointerup",X),document.addEventListener("pointercancel",X)},ae=ee=>{ee.touches.length>0&&(P.current={x:ee.touches[0].clientX,y:ee.touches[0].clientY},N.current=!1,document.addEventListener("touchmove",ne,{passive:!1}),document.addEventListener("touchend",oe),document.addEventListener("touchcancel",oe))};return b.addEventListener("pointerdown",ye),b.addEventListener("touchstart",ae),()=>{b.removeEventListener("pointerdown",ye),b.removeEventListener("touchstart",ae),document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",X),document.removeEventListener("pointercancel",X),document.removeEventListener("touchmove",ne),document.removeEventListener("touchend",oe),document.removeEventListener("touchcancel",oe),P.current=null,N.current=!1}},[e,be,c]);const Ge={backgroundColor:T.color,backdropFilter:`blur(${T.blur}px)`,animationDuration:`${parseInt(U.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"};return typeof document>"u"||!document.getElementById(a)?null:gr.createPortal(S.jsxs(S.Fragment,{children:[S.jsx("div",{ref:i?null:w,className:ge(W.background,y?te:re,{[W.editor]:i},{[W.hidden]:!e}),style:{...Ge,...u&&!i&&!y?{position:"absolute"}:{}}}),S.jsxs("div",{ref:i?w:null,className:ge(W.contentStyle,y?ie:Y,{[W.editor]:i},{[W.hidden]:!e}),style:{animationDuration:`${parseInt(U.duration)}ms`,animationTimingFunction:"ease",animationFillMode:"both"},children:[S.jsx(rr,{onMove:b=>p(b.index),ref:f,className:W.lightboxSplide,options:{arrows:!1,speed:m.duration?parseInt(m.duration):500,direction:m.direction==="horiz"||m.type==="fade"||m.type==="scale"?"ltr":"ttb",pagination:!1,drag:H.type==="drag"&&!be,perPage:1,width:"100%",height:"100%",type:m.type==="fade"||m.type==="scale"?"fade":"loop",padding:0,rewind:H.repeat!=="close",start:0},style:{"--splide-speed":m.duration},children:n.map((b,D)=>{const q=Dt(k.position,k.offset,i),J=`${F.scalingValue(k.padding.top,i)} ${F.scalingValue(k.padding.right,i)} ${F.scalingValue(k.padding.bottom,i)} ${F.scalingValue(k.padding.left,i)}`,ne=m.type==="scale"?(()=>{const{transform:Q,...X}=q;return{...X,position:"absolute",padding:J,boxSizing:"border-box","--position-transform":Q||"none"}})():{...q,position:"absolute",padding:J,boxSizing:"border-box"};return S.jsx(ir,{children:S.jsx("div",{className:W.imgWrapper,onClick:se,children:S.jsx("img",{ref:D===s?M:null,className:ge(W.imageStyle,{[W.contain]:b.image.objectFit==="contain",[W.cover]:b.image.objectFit==="cover",[W.scaleSlide]:m.type==="scale"}),src:b.image.url,alt:b.image.name??"",style:{...ne,pointerEvents:b.image.objectFit==="contain"?"none":"auto"}})})},D)})},c),E.isActive&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:ge(W.arrow,{[W.arrowVertical]:m.direction==="vert"}),style:{color:E.color,"--arrow-hover-color":E.hover},children:S.jsxs("button",{className:W.arrowInner,style:{transform:`translate(${F.scalingValue(E.offset.x,i)}, ${F.scalingValue(E.offset.y*(m.direction==="horiz"?1:-1),i)}) scale(${E.scale}) rotate(${m.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var b;return(b=f.current)==null?void 0:b.go("-1")},"aria-label":"Previous",children:[E.arrowsImgUrl&&S.jsx(gt,{url:E.arrowsImgUrl,fill:E.color,hoverFill:E.hover,className:ge(W.arrowImg,W.mirror)}),!E.arrowsImgUrl&&S.jsx(xo,{color:E.color,className:ge(W.arrowIcon,W.arrowImg,W.mirror)})]})}),S.jsx("div",{className:ge(W.arrow,W.nextArrow,{[W.arrowVertical]:m.direction==="vert"}),style:{color:E.color,"--arrow-hover-color":E.hover},children:S.jsxs("button",{className:W.arrowInner,style:{transform:`translate(${F.scalingValue(E.offset.x*(m.direction==="horiz"?-1:1),i)}, ${F.scalingValue(E.offset.y,i)}) scale(${E.scale}) rotate(${m.direction==="horiz"?"0deg":"90deg"})`},onClick:()=>{var b;return(b=f.current)==null?void 0:b.go("+1")},"aria-label":"Next",children:[E.arrowsImgUrl&&S.jsx(gt,{url:E.arrowsImgUrl,fill:E.color,hoverFill:E.hover,className:W.arrowImg}),!E.arrowsImgUrl&&S.jsx(xo,{color:E.color,className:ge(W.arrowIcon,W.arrowImg)})]})})]}),T.closeIconUrl&&(()=>{const b=Dt(T.closeIconAlign,T.closeIconOffset,i),D=`scale(${T.closeIconScale})`,q=b.transform?`${b.transform} ${D}`:D;return S.jsx("button",{className:W.closeButton,style:{...b,transform:q},onClick:K,"aria-label":"Close lightbox",children:S.jsx(gt,{url:T.closeIconUrl,fill:T.closeIconColor??"#000000",hoverFill:T.closeIconHover??"#cccccc"})})})(),x&&x.isActive&&o.imageCaption&&((z=n[s])==null?void 0:z.imageCaption)&&(()=>{const{widthSettings:b,fontSettings:D,letterSpacing:q,textAlign:J,wordSpacing:ne,fontSizeLineHeight:Q,textAppearance:X,color:oe}=o.imageCaption;return S.jsx("div",{className:W.caption,style:{...Dt(x.alignment,x.offset,i),fontFamily:D.fontFamily,fontWeight:D.fontWeight,fontStyle:D.fontStyle,width:b.sizing==="auto"?"max-content":F.scalingValue(b.width,i),letterSpacing:F.scalingValue(q,i),wordSpacing:F.scalingValue(ne,i),textAlign:J,fontSize:F.scalingValue(Q.fontSize,i),lineHeight:F.scalingValue(Q.lineHeight,i),textTransform:X.textTransform??"none",textDecoration:X.textDecoration??"none",fontVariant:X.fontVariant??"normal",color:oe},onClick:ye=>ye.stopPropagation(),children:S.jsx("div",{"data-styles":"imageCaption",className:W.captionTextInner,style:{"--link-color":x.linkColor,"--link-hover-color":x.linkHoverColor},children:S.jsx(ar,{content:n[s].imageCaption})})})})(),I.isActive&&(()=>{const[b,D]=I.position.split("-"),q=m.direction==="horiz"?`${b}-left`:I.position,J=Dt(q,I.offset,i),ne=()=>{if(m.direction==="horiz"){if(D==="left")return"flex-start";if(D==="center")return"center";if(D==="right")return"flex-end"}else{if(b==="top")return"flex-start";if(b==="middle")return"center";if(b==="bottom")return"flex-end"}return"flex-start"};return S.jsx("div",{ref:R,className:W.thumbsWrapper,onClick:Q=>he(Q),style:{position:i?"absolute":"fixed",...J,...m.direction==="horiz"?{maxWidth:"100vw",width:"100%",overflowX:"auto",overflowY:"hidden"}:{maxHeight:"100vh",overflowY:"auto",overflowX:"hidden"}},children:S.jsx("div",{className:ge(W.thumbsContainer,{[W.thumbsContainerVertical]:m.direction==="vert",[W.thumbsAlignStart]:I.align==="start",[W.thumbsAlignCenter]:I.align==="center",[W.thumbsAlignEnd]:I.align==="end"}),style:{gap:F.scalingValue(I.grid.gap,i),justifyContent:V?"flex-start":ne()},children:n.map((Q,X)=>{const oe=X===s,ye=C[X],pe=I.grid.size*(oe?I.activeState.scale:1),Ve=()=>{if(I.fit!=="fit")return{};if(!ye)return m.direction==="horiz"?{height:F.scalingValue(pe,i)}:{width:F.scalingValue(pe,i)};const ee=ye.width/ye.height;if(m.direction==="horiz"){const ce=pe,$e=ce*ee;return{width:F.scalingValue($e,i),height:F.scalingValue(ce,i)}}else{const ce=pe,$e=ce/ee;return{width:F.scalingValue(ce,i),height:F.scalingValue($e,i)}}};return S.jsx("button",{className:W.thumbItem,style:{...m.direction==="horiz"&&I.fit!=="fit"?{height:F.scalingValue(pe,i)}:{},...m.direction==="vert"&&I.fit!=="fit"?{width:F.scalingValue(pe,i)}:{},...I.fit==="cover"?{width:F.scalingValue(pe,i),height:F.scalingValue(pe,i)}:{},...Ve(),transition:oe?"all 0.25s ease-out":"none",opacity:oe?I.activeState.opacity/100:I.opacity/100,"--thumb-hover":I.activeState.opacity/100},onClick:ee=>{var ce;ee.stopPropagation(),p(X),(ce=f.current)==null||ce.go(X)},onMouseEnter:()=>{var ee;I.triggers==="hov"&&((ee=f.current)==null||ee.go(X))},children:S.jsx("img",{src:Q.image.url,alt:Q.image.name??"",onLoad:ee=>{const ce=ee.currentTarget;ce.naturalWidth&&ce.naturalHeight&&v($e=>({...$e,[X]:{width:ce.naturalWidth,height:ce.naturalHeight}}))},style:{objectFit:I.fit==="cover"?"cover":"contain",...I.fit==="fit"?{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}:{},...I.fit==="cover"?{width:"100%",height:"100%"}:{}}})},`${Q.image.name}-${X}`)})})})})()]})]}),document.getElementById(a))};function xo({color:e,className:t}){return S.jsx("svg",{viewBox:"0 0 10 18",className:t,children:S.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:S.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:e,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}const yl={element:fl,id:"lightbox",name:"Lightbox",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/lightboxImg.png"},defaultSize:{width:440,height:550},fontSettingsPaths:{content:[],parameters:[{path:"styles.imageCaption.fontSettings"}]},assetsPaths:{content:[{path:"image.url",placeholderEnabled:!0}],parameters:[{path:"settings.thumbnailBlock.cover.url",placeholderEnabled:!0},{path:"settings.controls.arrowsImgUrl"},{path:"settings.area.closeIconUrl"}]},schema:{type:"object",properties:{settings:{type:"object",properties:{thumbnailBlock:{display:{type:"settings-block",triggerEvent:"close"},type:"object",properties:{cover:{title:"COVER",icon:"cover",tooltip:"Cover Image",type:"object",properties:{url:{type:"string",display:{type:"cover-image-input"}}}}}},lightboxBlock:{display:{type:"settings-block",triggerEvent:"open"},type:"object",properties:{appear:{title:"APPEAR",icon:"transition",tooltip:"Appearance",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide in","fade in","mix"]},duration:{type:"string",label:"T",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]},direction:{type:"string",title:"From",display:{type:"direction-control"},enum:["top","left","right","bottom"]}}},triggers:{title:"TRIGGERS",icon:"target",tooltip:"Triggers",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["click","drag"]},switch:{type:"string",display:{type:"ratio-group"},enum:["image","50/50"]},repeat:{type:"string",title:"Repeat",display:{visible:!1,type:"ratio-group"},enum:["close","loop"]}}},slider:{title:"SLIDER",icon:"horizontal-resize",tooltip:"Slider",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide","fade","scale"]},direction:{type:"string",display:{type:"ratio-group"},enum:["horiz","vert"]},duration:{type:"string",label:"T",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]}}},thumbnail:{title:"THUMB",icon:"thumbnail",tooltip:"Thumbnail",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},position:{display:{type:"align-grid"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},fit:{type:"string",display:{type:"ratio-group"},enum:["cover","fit"]},align:{type:"string",title:"Align",display:{type:"align-group",direction:"horizontal"},enum:["start","center","end"]},triggers:{type:"string",title:"Triggers",display:{type:"ratio-group",direction:"horizontal"},enum:["clk","hov"]},grid:{type:"object",title:"Grid",display:{type:"group"},properties:{size:{type:"number",label:"Box",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},gap:{type:"number",label:"Gap",scalingEnabled:!0,min:0,display:{type:"numeric-input"}}}},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},opacity:{type:"number",title:"Opacity",label:"icon:opacity",min:0,max:100,step:1,display:{type:"numeric-input"}},activeState:{type:"object",title:"ACTIVE",display:{type:"group"},properties:{scale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control"}},opacity:{type:"number",title:"Opacity",label:"icon:opacity",min:0,max:100,step:1,display:{type:"numeric-input"}}}}}},layout:{title:"LAYOUT",icon:"layout",tooltip:"Layout",type:"object",properties:{position:{display:{type:"align-grid"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},padding:{type:"object",title:"Padding",display:{type:"padding-controls"},properties:{top:{min:0,step:1,type:"number"},left:{min:0,step:1,type:"number"},right:{min:0,step:1,type:"number"},bottom:{min:0,step:1,type:"number"}}}}},controls:{title:"CONTROLS",icon:"controls",tooltip:"Controls",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},offset:{title:"Offset",type:"object",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"Scale",min:.5,max:5,step:.1,display:{type:"range-control"}},color:{title:"Color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"Hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},area:{title:"AREA",icon:"area",tooltip:"Area",type:"object",properties:{color:{type:"string",display:{type:"settings-color-picker",format:"single"}},blur:{type:"number",label:"icon:blur",display:{type:"numeric-input"}},closeIconUrl:{type:["string","null"],title:"Close Icon",display:{type:"settings-image-input"}},closeIconAlign:{display:{type:"align-grid",direction:"horizontal"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},closeIconScale:{type:"number",title:"Scale",min:.5,max:5,step:.1,display:{type:"range-control"}},closeIconOffset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},closeIconColor:{title:"Color",type:"string",display:{type:"settings-color-picker",format:"single"}},closeIconHover:{title:"Hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},caption:{title:"DESC",icon:"text-icon",tooltip:"Description",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},alignment:{type:"string",display:{type:"align-grid"},enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{title:"Offset",type:"object",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},linkColor:{title:"Link",type:"string",display:{type:"settings-color-picker",format:"single"}},linkHoverColor:{title:"Link Hov",type:"string",display:{type:"settings-color-picker",format:"single"}}}}}}},default:{d:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"slide in",duration:"1000ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"vert",duration:"1000ms"},thumbnail:{isActive:!0,position:"middle-left",fit:"fit",align:"start",triggers:"hov",grid:{size:.05,gap:.01},offset:{x:.01,y:0},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:0,bottom:.06,left:0}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},linkColor:"#cccccc",linkHoverColor:"#cccccc"}}},m:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"fade in",duration:"500ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"horiz",duration:"1000ms"},thumbnail:{isActive:!0,position:"bottom-center",fit:"fit",align:"start",triggers:"hov",grid:{size:.1,gap:.05},offset:{x:.01,y:-.05},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:.05,bottom:.06,left:.05}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},hover:"#cccccc"}}},t:{thumbnailBlock:{cover:{url:"https://cdn.cntrl.site/component-assets/Cover.jpg"}},lightboxBlock:{appear:{type:"fade in",duration:"500ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"vert",duration:"1000ms"},thumbnail:{isActive:!0,position:"middle-left",fit:"fit",align:"start",triggers:"hov",grid:{size:.05,gap:.01},offset:{x:.03,y:0},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:.1,bottom:.06,left:.1}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},hover:"#cccccc"}}}},displayRules:[{if:{name:"lightboxBlock.appear.type",value:"slide in"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!0}},{if:{name:"lightboxBlock.slider.direction",value:"vert"},then:{name:"properties.lightboxBlock.properties.thumbnail.properties.align.display.direction",value:"vertical"}},{if:{name:"lightboxBlock.appear.type",value:"mix"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!0}},{if:{name:"lightboxBlock.appear.type",value:"fade in"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!1}},{if:[{name:"lightboxBlock.triggers.type",value:"click"},{name:"lightboxBlock.triggers.switch",value:"image"}],then:{name:"properties.lightboxBlock.properties.triggers.properties.repeat.display.visible",value:!0}}]},content:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"},properties:{url:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["url","name"]},imageCaption:{label:"Description",placeholder:"Add Caption...",display:{type:"rich-text"}}},required:["image"]},default:[{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/2.jpg",name:"Slider-1.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/3.jpg",name:"Slider-2.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"contain",url:"https://cdn.cntrl.site/component-assets/4.jpg",name:"Slider-3.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]}]},styles:{type:"object",properties:{imageCaption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right","justify"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase","capitalize"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"auto"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.02,lineHeight:.02},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}}},required:["settings","content","styles"]}};function mt(e){const{color:t,...n}=e;return n}function tt(e,t){var n,o,r;return{fontFamily:e.fontSettings.fontFamily,fontWeight:e.fontSettings.fontWeight,fontStyle:e.fontSettings.fontStyle,letterSpacing:F.scalingValue(e.letterSpacing,t),wordSpacing:F.scalingValue(e.wordSpacing,t),fontSize:F.scalingValue(e.fontSize,t),lineHeight:e.lineHeight!==void 0?F.scalingValue(e.lineHeight,t):void 0,textTransform:(n=e.textAppearance)==null?void 0:n.textTransform,textDecoration:(o=e.textAppearance)==null?void 0:o.textDecoration,fontVariant:(r=e.textAppearance)==null?void 0:r.fontVariant,color:e.color}}function Ut(e){return`calc(var(--cntrl-article-width, 100vw) * ${e/1440})`}function vl(e){return`
7
+ .${e}-wrapper {
8
8
  display: flex;
9
9
  flex-direction: column;
10
10
  width: 100%;
11
- min-height: ${He(48)};
11
+ min-height: ${Ut(48)};
12
12
  }
13
- .${t}-wrapper.${t}-type-C .${t}-input:focus-visible,
14
- .${t}-wrapper.${t}-type-C .${t}-button:focus-visible {
13
+ .${e}-wrapper.${e}-type-C .${e}-input:focus-visible,
14
+ .${e}-wrapper.${e}-type-C .${e}-button:focus-visible {
15
15
  outline: none;
16
16
  }
17
- .${t}-form {
17
+ .${e}-form {
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  width: 100%;
21
21
  }
22
- .${t}-fields {
22
+ .${e}-fields {
23
23
  display: flex;
24
24
  flex-direction: column;
25
25
  flex: 1;
26
26
  min-width: 0;
27
27
  }
28
- .${t}-field-group {
28
+ .${e}-field-group {
29
29
  display: flex;
30
30
  flex-direction: column;
31
31
  flex: 1;
32
32
  min-width: 0;
33
33
  }
34
- .${t}-field-group.${t}-labeled {
35
- gap: ${He(4)};
34
+ .${e}-field-group.${e}-labeled {
35
+ gap: ${Ut(4)};
36
36
  }
37
- .${t}-field-label {
37
+ .${e}-field-label {
38
38
  white-space: nowrap;
39
- color: var(--${t}-label-text-color);
39
+ color: var(--${e}-label-text-color);
40
40
  }
41
- .${t}-input {
41
+ .${e}-input {
42
42
  width: 100%;
43
43
  box-sizing: border-box;
44
44
  outline: none;
45
45
  -webkit-tap-highlight-color: transparent;
46
- background-color: var(--${t}-input-color);
47
- color: var(--${t}-input-text-color);
48
- border-color: var(--${t}-input-border-color);
46
+ background-color: var(--${e}-input-color);
47
+ color: var(--${e}-input-text-color);
48
+ border-color: var(--${e}-input-border-color);
49
49
  transition: color 250ms, border-color 250ms, background-color 250ms;
50
50
  }
51
- .${t}-input::placeholder {
52
- color: var(--${t}-placeholder-color);
51
+ .${e}-input::placeholder {
52
+ color: var(--${e}-placeholder-color);
53
53
  opacity: 1;
54
54
  transition: color 250ms, opacity 250ms;
55
55
  }
56
- .${t}-input:hover {
57
- background-color: var(--${t}-hover-input-color, var(--${t}-input-color));
58
- color: var(--${t}-hover-input-text-color, var(--${t}-input-text-color));
59
- border-color: var(--${t}-hover-input-border-color, var(--${t}-input-border-color));
60
- }
61
- .${t}-wrapper.${t}-state-hover .${t}-input {
62
- background-color: var(--${t}-hover-input-color, var(--${t}-input-color));
63
- color: var(--${t}-hover-input-text-color, var(--${t}-input-text-color));
64
- border-color: var(--${t}-hover-input-border-color, var(--${t}-input-border-color));
65
- }
66
- .${t}-input:focus,
67
- .${t}-input:focus-visible,
68
- .${t}-wrapper.${t}-state-focus .${t}-input {
69
- background-color: var(--${t}-focus-input-color, var(--${t}-input-color));
70
- color: var(--${t}-focus-input-text-color, var(--${t}-input-text-color));
71
- border-color: var(--${t}-focus-input-border-color, var(--${t}-input-border-color));
72
- }
73
- .${t}-input[data-filled="true"] {
74
- background-color: var(--${t}-filled-input-color, var(--${t}-input-color));
75
- color: var(--${t}-filled-input-text-color, var(--${t}-input-text-color));
76
- border-color: var(--${t}-filled-input-border-color, var(--${t}-input-border-color));
77
- }
78
- .${t}-wrapper.${t}-state-success .${t}-input,
79
- .${t}-wrapper.${t}-state-success .${t}-button {
56
+ .${e}-input:hover {
57
+ background-color: var(--${e}-hover-input-color, var(--${e}-input-color));
58
+ color: var(--${e}-hover-input-text-color, var(--${e}-input-text-color));
59
+ border-color: var(--${e}-hover-input-border-color, var(--${e}-input-border-color));
60
+ }
61
+ .${e}-wrapper.${e}-state-hover .${e}-input {
62
+ background-color: var(--${e}-hover-input-color, var(--${e}-input-color));
63
+ color: var(--${e}-hover-input-text-color, var(--${e}-input-text-color));
64
+ border-color: var(--${e}-hover-input-border-color, var(--${e}-input-border-color));
65
+ }
66
+ .${e}-input:focus,
67
+ .${e}-input:focus-visible,
68
+ .${e}-wrapper.${e}-state-focus .${e}-input {
69
+ background-color: var(--${e}-focus-input-color, var(--${e}-input-color));
70
+ color: var(--${e}-focus-input-text-color, var(--${e}-input-text-color));
71
+ border-color: var(--${e}-focus-input-border-color, var(--${e}-input-border-color));
72
+ }
73
+ .${e}-input[data-filled="true"] {
74
+ background-color: var(--${e}-filled-input-color, var(--${e}-input-color));
75
+ color: var(--${e}-filled-input-text-color, var(--${e}-input-text-color));
76
+ border-color: var(--${e}-filled-input-border-color, var(--${e}-input-border-color));
77
+ }
78
+ .${e}-wrapper.${e}-state-filled .${e}-button {
79
+ background-color: var(--${e}-filled-button-color, var(--${e}-button-color));
80
+ color: var(--${e}-filled-button-text-color, var(--${e}-button-text-color));
81
+ border-color: var(--${e}-filled-button-border-color, var(--${e}-button-border-color));
82
+ }
83
+ .${e}-wrapper.${e}-state-success .${e}-input,
84
+ .${e}-wrapper.${e}-state-success .${e}-button {
80
85
  pointer-events: none;
81
86
  }
82
- .${t}-wrapper.${t}-state-error .${t}-input {
87
+ .${e}-wrapper.${e}-state-error .${e}-input {
83
88
  }
84
- .${t}-input[data-field-type="textarea"] {
89
+ .${e}-input[data-field-type="textarea"] {
85
90
  resize: vertical;
86
91
  }
87
- .${t}-input:disabled {
92
+ .${e}-input:disabled {
88
93
  cursor: not-allowed;
89
94
  }
90
- .${t}-button {
95
+ .${e}-button {
91
96
  cursor: pointer;
92
97
  white-space: nowrap;
93
98
  box-sizing: border-box;
94
99
  outline: none;
95
- background-color: var(--${t}-button-color);
96
- color: var(--${t}-button-text-color);
97
- border-color: var(--${t}-button-border-color);
100
+ background-color: var(--${e}-button-color);
101
+ color: var(--${e}-button-text-color);
102
+ border-color: var(--${e}-button-border-color);
98
103
  transition: color 250ms, background-color 250ms, border-color 250ms;
99
104
  }
100
- .${t}-button:hover {
101
- background-color: var(--${t}-hover-button-color, var(--${t}-button-color));
102
- color: var(--${t}-hover-button-text-color, var(--${t}-button-text-color));
103
- border-color: var(--${t}-hover-button-border-color, var(--${t}-button-border-color));
104
- }
105
- .${t}-wrapper.${t}-state-hover .${t}-button {
106
- background-color: var(--${t}-hover-button-color, var(--${t}-button-color));
107
- color: var(--${t}-hover-button-text-color, var(--${t}-button-text-color));
108
- border-color: var(--${t}-hover-button-border-color, var(--${t}-button-border-color));
109
- }
110
- .${t}-button:focus,
111
- .${t}-button:focus-visible,
112
- .${t}-wrapper.${t}-state-focus .${t}-button {
113
- background-color: var(--${t}-focus-button-color, var(--${t}-button-color));
114
- color: var(--${t}-focus-button-text-color, var(--${t}-button-text-color));
115
- border-color: var(--${t}-focus-button-border-color, var(--${t}-button-border-color));
116
- }
117
- .${t}-input:focus-visible,
118
- .${t}-wrapper.${t}-state-focus .${t}-input {
105
+ .${e}-button:hover {
106
+ background-color: var(--${e}-hover-button-color, var(--${e}-button-color));
107
+ color: var(--${e}-hover-button-text-color, var(--${e}-button-text-color));
108
+ border-color: var(--${e}-hover-button-border-color, var(--${e}-button-border-color));
109
+ }
110
+ .${e}-wrapper.${e}-state-hover .${e}-button {
111
+ background-color: var(--${e}-hover-button-color, var(--${e}-button-color));
112
+ color: var(--${e}-hover-button-text-color, var(--${e}-button-text-color));
113
+ border-color: var(--${e}-hover-button-border-color, var(--${e}-button-border-color));
114
+ }
115
+ .${e}-button:focus,
116
+ .${e}-button:focus-visible,
117
+ .${e}-wrapper.${e}-state-focus .${e}-button {
118
+ background-color: var(--${e}-focus-button-color, var(--${e}-button-color));
119
+ color: var(--${e}-focus-button-text-color, var(--${e}-button-text-color));
120
+ border-color: var(--${e}-focus-button-border-color, var(--${e}-button-border-color));
121
+ }
122
+ .${e}-input:focus-visible,
123
+ .${e}-wrapper.${e}-state-focus .${e}-input {
119
124
  outline: none;
120
125
  }
121
- .${t}-button:focus-visible,
122
- .${t}-wrapper.${t}-state-focus .${t}-button {
126
+ .${e}-button:focus-visible,
127
+ .${e}-wrapper.${e}-state-focus .${e}-button {
123
128
  outline: none;
124
129
  }
125
- .${t}-success {
126
- margin-top: ${He(8)};
127
- color: var(--${t}-success-success-color, var(--${t}-success-color));
130
+ .${e}-success {
131
+ margin-top: ${Ut(8)};
132
+ color: var(--${e}-success-success-color, var(--${e}-success-color));
128
133
  }
129
- .${t}-error {
130
- margin-top: ${He(8)};
131
- color: var(--${t}-error-error-color, var(--${t}-error-color));
134
+ .${e}-error {
135
+ margin-top: ${Ut(8)};
136
+ color: var(--${e}-error-error-color, var(--${e}-error-color));
132
137
  }
133
- .${t}-overlay-anchor {
138
+ .${e}-overlay-anchor {
134
139
  position: relative;
135
140
  height: auto;
136
141
  }
137
- `}function bs({settings:t,isEditor:e,metadata:n,activeEvent:o}){const{prefix:r}=F.useScopedStyles(),{type:a="A",fieldsToShow:i=2,fields:c=[],buttonLabel:s,gap:p,fieldsGap:l,buttonCorners:w,buttonStroke:y,buttonPadding:m,isButtonFullWidth:u,inputCorners:d,inputStroke:C,inputPadding:b,inputColor:f,inputTextColor:$,inputBorderColor:M,placeholderColor:P,buttonColor:T,buttonTextColor:h,buttonBorderColor:L,labelTextColor:R,successColor:W,errorColor:k,fontFamily:B,inputFontSettings:O,inputFontSize:U,inputLineHeight:D,inputLetterSpacing:g,inputWordSpacing:A,inputTextAppearance:I,buttonFontSettings:_,buttonFontSize:v,buttonLineHeight:V,buttonLetterSpacing:X,buttonWordSpacing:rt,buttonTextAppearance:Q,labelFontSettings:ut,labelFontSize:E,labelLineHeight:K,labelLetterSpacing:ft,labelWordSpacing:it,labelTextAppearance:mt,statusFontSettings:bt,statusFontSize:Mt,statusLineHeight:z,statusLetterSpacing:S,statusWordSpacing:H,statusTextAppearance:G,successMessage:J,errorMessage:ot,stateOverrides:tt}=t,q=a==="B",nt=c.slice(0,Math.min(i,c.length)),vt={fontSettings:{fontFamily:B,fontWeight:(O==null?void 0:O.fontWeight)??400,fontStyle:(O==null?void 0:O.fontStyle)??"normal"},fontSize:U??.01,lineHeight:D,letterSpacing:g??0,wordSpacing:A??0,textAppearance:I,color:$},st=Zt(vt,e),pt=F.scalingValue(C??0,e),kt={...st,borderStyle:"solid",borderRadius:a==="C"?0:F.scalingValue(d??0,e),...a==="C"?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:pt,borderLeftWidth:0}:{borderWidth:pt},paddingTop:F.scalingValue((b==null?void 0:b.top)??0,e),paddingRight:F.scalingValue((b==null?void 0:b.right)??0,e),paddingBottom:F.scalingValue((b==null?void 0:b.bottom)??0,e),paddingLeft:F.scalingValue((b==null?void 0:b.left)??0,e)},et={fontSettings:{fontFamily:B,fontWeight:(_==null?void 0:_.fontWeight)??400,fontStyle:(_==null?void 0:_.fontStyle)??"normal"},fontSize:v??.01,lineHeight:V,letterSpacing:X??0,wordSpacing:rt??0,textAppearance:Q,color:h},lt=Zt(et,e),Ct=F.scalingValue(y??0,e),Ht={fontSettings:{fontFamily:B,fontWeight:(ut==null?void 0:ut.fontWeight)??400,fontStyle:(ut==null?void 0:ut.fontStyle)??"normal"},fontSize:E??.01,lineHeight:K,letterSpacing:ft??0,wordSpacing:it??0,textAppearance:mt,color:R},be=Zt(Ht,e),gn={fontSettings:{fontFamily:B,fontWeight:(bt==null?void 0:bt.fontWeight)??400,fontStyle:(bt==null?void 0:bt.fontStyle)??"normal"},fontSize:Mt??.01,lineHeight:z,letterSpacing:S??0,wordSpacing:H??0,textAppearance:G,color:W},ht=Zt(gn,e),{color:Se,...oe}=ht,$t=F.buildColorVars(r,{inputColor:f,inputTextColor:$,inputBorderColor:M,placeholderColor:P!=null&&P.trim()?P:"#cccccc",buttonColor:T,buttonTextColor:h,buttonBorderColor:L,labelTextColor:R,successColor:W,errorColor:k},Ss,xs,tt),[Ft,Kn]=j.useState(()=>Object.fromEntries(nt.map(ct=>[ct.name,""]))),[Jn,xe]=j.useState("idle"),[lr,ze]=j.useState(null),mn=o==="success"?"success":o==="error"?"error":Jn,cr=o==="error"?ot:lr,Ce=o==="filled"?Object.fromEntries(nt.map(ct=>[ct.name,"Filled"])):Ft,ur=mn==="error"?F.getFormFieldValidationError(nt,Ce):null,pr=`${o&&o!=="default"?`${r}-state-${o}`:""}`.trim(),Zn=n==null?void 0:n.submitUrl,Qn=(ct,re)=>{Kn(Dt=>({...Dt,[ct]:re}))},dr=async ct=>{ct.preventDefault();const re=Object.fromEntries(nt.map(Et=>{var ie;return[Et.name,((ie=Ft[Et.name])==null?void 0:ie.trim())??""]}).filter(([,Et])=>Et));if(!Zn){xe("error"),ze("No integrations were found for this form.");return}if(Object.keys(re).length===0)return;const Dt=F.getFormFieldValidationError(nt,Ft);if(Dt){xe("error"),ze(Dt);return}xe("submitting"),ze(null);try{const Et=await fetch(Zn,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(re)});if(!Et.ok){const ie=await Et.text();throw new Error(ie||`Request failed: ${Et.status}`)}xe("success"),Kn(Object.fromEntries(nt.map(ie=>[ie.name,""])))}catch(Et){xe("error"),ze(Et instanceof Error?Et.message:"Something went wrong")}};return x.jsxs("div",{className:`${r}-wrapper ${r}-type-${a} ${pr}`.trim(),style:$t,children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:vs(r)}}),x.jsxs("form",{onSubmit:dr,className:`${r}-form`,style:{gap:F.scalingValue(p??0,e)},children:[x.jsx("div",{className:`${r}-fields`,style:{gap:F.scalingValue(l??0,e)},children:nt.map((ct,re)=>x.jsxs("div",{className:`${r}-field-group${q?` ${r}-labeled`:""}`,children:[q&&x.jsx("span",{className:`${r}-field-label`,style:be?{...be,lineHeight:be.fontSize}:void 0,children:ct.label||ct.name}),ct.type==="textarea"?x.jsx("textarea",{name:ct.name,autoComplete:"off",value:Ce[ct.name]??"",onChange:Dt=>Qn(ct.name,Dt.target.value),placeholder:ct.placeholder,className:`${r}-input`,style:kt,rows:1,"data-filled":(Ce[ct.name]??"").trim().length>0,"data-field-type":"textarea"}):x.jsx("input",{type:ct.type==="phone"?"tel":ct.type==="email"?"email":"text",name:ct.name,autoComplete:"off",value:Ce[ct.name]??"",onChange:Dt=>Qn(ct.name,Dt.target.value),placeholder:ct.placeholder,required:ct.isRequired??ct.type==="email",className:`${r}-input`,style:kt,"data-filled":(Ce[ct.name]??"").trim().length>0})]},re))}),x.jsx("div",{className:`${r}-overlay-anchor`,children:x.jsx("button",{type:"submit",className:`${r}-button`,style:{borderStyle:"solid",borderRadius:F.scalingValue(w??0,e),borderWidth:Ct,paddingTop:F.scalingValue((m==null?void 0:m.top)??0,e),paddingRight:F.scalingValue((m==null?void 0:m.right)??0,e),paddingBottom:F.scalingValue((m==null?void 0:m.bottom)??0,e),paddingLeft:F.scalingValue((m==null?void 0:m.left)??0,e),...lt,...u?{width:"100%",textAlign:"center",whiteSpace:"normal"}:{}},children:x.jsx("span",{className:`${r}-overlay-anchor`,style:u?{display:"inline-block",maxWidth:"100%",whiteSpace:"normal",textAlign:"center"}:void 0,children:Jn==="submitting"?"...":s})})})]}),mn==="success"&&x.jsx("p",{className:`${r}-success`,style:{...ht},children:J}),mn==="error"&&x.jsx("p",{className:`${r}-error`,style:{...oe},role:"alert",children:ur??cr??ot})]})}const Ss={inputColor:"input-color",inputTextColor:"input-text-color",inputBorderColor:"input-border-color",placeholderColor:"placeholder-color",buttonColor:"button-color",buttonTextColor:"button-text-color",buttonBorderColor:"button-border-color",labelTextColor:"label-text-color",successColor:"success-color",errorColor:"error-color"},xs=["hover","focus","filled","success","error"],Cs=`import React, { useState } from 'react';
142
+ `}function bl({settings:e,isEditor:t,metadata:n,activeEvent:o}){const{prefix:r}=F.useScopedStyles(),{type:a="A",fieldsToShow:i=2,fields:l=[],buttonLabel:s,gap:p,fieldsGap:c,buttonCorners:_,buttonStroke:y,buttonPadding:g,isButtonFullWidth:u,inputCorners:d,inputStroke:C,inputPadding:v,inputColor:f,inputTextColor:$,inputBorderColor:M,placeholderColor:O,buttonColor:w,buttonTextColor:h,buttonBorderColor:L,labelTextColor:P,successColor:N,errorColor:R,fontFamily:V,inputFontSettings:B,inputFontSize:U,inputLineHeight:H,inputLetterSpacing:m,inputWordSpacing:I,inputTextAppearance:E,buttonFontSettings:T,buttonFontSize:x,buttonLineHeight:k,buttonLetterSpacing:Y,buttonWordSpacing:re,buttonTextAppearance:te,labelFontSettings:ie,labelFontSize:A,labelLineHeight:K,labelLetterSpacing:fe,labelWordSpacing:se,labelTextAppearance:he,statusFontSettings:be,statusFontSize:Ge,statusLineHeight:z,statusLetterSpacing:b,statusWordSpacing:D,statusTextAppearance:q,successMessage:J,errorMessage:ne,stateOverrides:Q}=e,X=a==="B",oe=l.slice(0,Math.min(i,l.length)),ye={fontSettings:{fontFamily:V,fontWeight:(B==null?void 0:B.fontWeight)??400,fontStyle:(B==null?void 0:B.fontStyle)??"normal"},fontSize:U??.01,lineHeight:H,letterSpacing:m??0,wordSpacing:I??0,textAppearance:E,color:$},ae=mt(tt(ye,t)),pe=F.scalingValue(C??0,t),Ve={...ae,borderStyle:"solid",borderRadius:a==="C"?0:F.scalingValue(d??0,t),...a==="C"?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:pe,borderLeftWidth:0}:{borderWidth:pe},paddingTop:F.scalingValue((v==null?void 0:v.top)??0,t),paddingRight:F.scalingValue((v==null?void 0:v.right)??0,t),paddingBottom:F.scalingValue((v==null?void 0:v.bottom)??0,t),paddingLeft:F.scalingValue((v==null?void 0:v.left)??0,t)},ee={fontSettings:{fontFamily:V,fontWeight:(T==null?void 0:T.fontWeight)??400,fontStyle:(T==null?void 0:T.fontStyle)??"normal"},fontSize:x??.01,lineHeight:k,letterSpacing:Y??0,wordSpacing:re??0,textAppearance:te,color:h},ce=mt(tt(ee,t)),$e=F.scalingValue(y??0,t),Ye={fontSettings:{fontFamily:V,fontWeight:(ie==null?void 0:ie.fontWeight)??400,fontStyle:(ie==null?void 0:ie.fontStyle)??"normal"},fontSize:A??.01,lineHeight:K,letterSpacing:fe??0,wordSpacing:se??0,textAppearance:he,color:P},xt=tt(Ye,t),fn={fontSettings:{fontFamily:V,fontWeight:(be==null?void 0:be.fontWeight)??400,fontStyle:(be==null?void 0:be.fontStyle)??"normal"},fontSize:Ge??.01,lineHeight:z,letterSpacing:b??0,wordSpacing:D??0,textAppearance:q,color:N},de=mt(tt(fn,t)),Be=F.buildColorVars(r,{inputColor:f,inputTextColor:$,inputBorderColor:M,placeholderColor:O!=null&&O.trim()?O:"#cccccc",buttonColor:w,buttonTextColor:h,buttonBorderColor:L,labelTextColor:P,successColor:N,errorColor:R},Sl,xl,Q),[_e,xe]=j.useState(()=>Object.fromEntries(oe.map(le=>[le.name,""]))),[Oe,Ct]=j.useState("idle"),[sr,jt]=j.useState(null),hn=o==="success"?"success":o==="error"?"error":Oe,cr=o==="error"?ne:sr,Mt=o==="filled",$t=j.useMemo(()=>{if(!Mt)return _e;let le=null;for(const We of oe)(_e[We.name]??"").trim().length>0||(le=le??{..._e},le[We.name]="Filled");return le??_e},[_e,Mt,oe]),ur=hn==="error"?F.getFormFieldValidationError(oe,$t):null,pr=`${o&&o!=="default"?`${r}-state-${o}`:""}`.trim(),Zn=n==null?void 0:n.submitUrl,Qn=(le,We)=>{xe(Ne=>({...Ne,[le]:We}))},dr=async le=>{le.preventDefault();const We=Object.fromEntries(oe.map(Le=>{var at;return[Le.name,((at=_e[Le.name])==null?void 0:at.trim())??""]}).filter(([,Le])=>Le));if(!Zn){Ct("error"),jt("No integrations were found for this form.");return}if(Object.keys(We).length===0)return;const Ne=F.getFormFieldValidationError(oe,_e);if(Ne){Ct("error"),jt(Ne);return}Ct("submitting"),jt(null);try{const Le=await fetch(Zn,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(We)});if(!Le.ok){const at=await Le.text();throw new Error(at||`Request failed: ${Le.status}`)}Ct("success"),xe(Object.fromEntries(oe.map(at=>[at.name,""])))}catch(Le){Ct("error"),jt(Le instanceof Error?Le.message:"Something went wrong")}};return S.jsxs("div",{className:`${r}-wrapper ${r}-type-${a} ${pr}`.trim(),style:Be,children:[S.jsx("style",{dangerouslySetInnerHTML:{__html:vl(r)}}),S.jsxs("form",{onSubmit:dr,className:`${r}-form`,style:{gap:F.scalingValue(p??0,t)},children:[S.jsx("div",{className:`${r}-fields`,style:{gap:F.scalingValue(c??0,t)},children:oe.map((le,We)=>S.jsxs("div",{className:`${r}-field-group${X?` ${r}-labeled`:""}`,children:[X&&S.jsx("span",{className:`${r}-field-label`,style:xt?{...xt,lineHeight:xt.fontSize}:void 0,children:le.label||le.name}),le.type==="textarea"?S.jsx("textarea",{name:le.name,autoComplete:"off",value:$t[le.name]??"",onChange:Ne=>Qn(le.name,Ne.target.value),placeholder:le.placeholder,className:`${r}-input`,style:Ve,rows:1,"data-filled":Mt||($t[le.name]??"").trim().length>0,"data-field-type":"textarea"}):S.jsx("input",{type:le.type==="phone"?"tel":le.type==="email"?"email":"text",name:le.name,autoComplete:"off",value:$t[le.name]??"",onChange:Ne=>Qn(le.name,Ne.target.value),placeholder:le.placeholder,required:le.isRequired??le.type==="email",className:`${r}-input`,style:Ve,"data-filled":Mt||($t[le.name]??"").trim().length>0})]},We))}),S.jsx("div",{className:`${r}-overlay-anchor`,children:S.jsx("button",{type:"submit",className:`${r}-button`,style:{borderStyle:"solid",borderRadius:F.scalingValue(_??0,t),borderWidth:$e,paddingTop:F.scalingValue((g==null?void 0:g.top)??0,t),paddingRight:F.scalingValue((g==null?void 0:g.right)??0,t),paddingBottom:F.scalingValue((g==null?void 0:g.bottom)??0,t),paddingLeft:F.scalingValue((g==null?void 0:g.left)??0,t),...ce,...u?{width:"100%",textAlign:"center",whiteSpace:"normal"}:{}},children:S.jsx("span",{className:`${r}-overlay-anchor`,style:u?{display:"inline-block",maxWidth:"100%",whiteSpace:"normal",textAlign:"center"}:void 0,children:Oe==="submitting"?"...":s})})})]}),hn==="success"&&S.jsx("p",{className:`${r}-success`,style:{...de},children:J}),hn==="error"&&S.jsx("p",{className:`${r}-error`,style:{...de},role:"alert",children:ur??cr??ne})]})}const Sl={inputColor:"input-color",inputTextColor:"input-text-color",inputBorderColor:"input-border-color",placeholderColor:"placeholder-color",buttonColor:"button-color",buttonTextColor:"button-text-color",buttonBorderColor:"button-border-color",labelTextColor:"label-text-color",successColor:"success-color",errorColor:"error-color"},xl=["hover","focus","filled","success","error"],Cl=`import React, { useMemo, useState } from 'react';
138
143
  import { CommonComponentProps } from '../props';
139
144
  import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
140
- import { textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
145
+ import { omitTextColors, textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
141
146
 
142
147
  function sv(px: number): string {
143
148
  return \`calc(var(--cntrl-article-width, 100vw) * \${px / 1440})\`;
@@ -216,6 +221,11 @@ function getCSS(P: string): string {
216
221
  color: var(--\${P}-filled-input-text-color, var(--\${P}-input-text-color));
217
222
  border-color: var(--\${P}-filled-input-border-color, var(--\${P}-input-border-color));
218
223
  }
224
+ .\${P}-wrapper.\${P}-state-filled .\${P}-button {
225
+ background-color: var(--\${P}-filled-button-color, var(--\${P}-button-color));
226
+ color: var(--\${P}-filled-button-text-color, var(--\${P}-button-text-color));
227
+ border-color: var(--\${P}-filled-button-border-color, var(--\${P}-button-border-color));
228
+ }
219
229
  .\${P}-wrapper.\${P}-state-success .\${P}-input,
220
230
  .\${P}-wrapper.\${P}-state-success .\${P}-button {
221
231
  pointer-events: none;
@@ -358,10 +368,10 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
358
368
  textAppearance: inputTextAppearance,
359
369
  color: inputTextColor,
360
370
  };
361
- const inputCss = textStylesToCss(resolvedInputTextStyle, isEditor);
371
+ const inputTypographyCss = omitTextColors(textStylesToCss(resolvedInputTextStyle, isEditor));
362
372
  const strokeForInput = scalingValue(inputStroke ?? 0, isEditor);
363
373
  const inputFieldCss = {
364
- ...inputCss,
374
+ ...inputTypographyCss,
365
375
  borderStyle: 'solid',
366
376
  borderRadius: type === 'C' ? 0 : scalingValue(inputCorners ?? 0, isEditor),
367
377
  ...(type === 'C'
@@ -391,7 +401,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
391
401
  textAppearance: buttonTextAppearance,
392
402
  color: buttonTextColor,
393
403
  };
394
- const buttonTextCss = textStylesToCss(resolvedButtonTextStyle, isEditor);
404
+ const buttonTypographyCss = omitTextColors(textStylesToCss(resolvedButtonTextStyle, isEditor));
395
405
  const strokeForButton = scalingValue(buttonStroke ?? 0, isEditor);
396
406
 
397
407
  const resolvedLabelTextStyle: TextStyles = {
@@ -422,8 +432,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
422
432
  textAppearance: statusTextAppearance,
423
433
  color: successColor,
424
434
  };
425
- const statusTextCss = textStylesToCss(resolvedStatusTextStyle, isEditor);
426
- const { color: _statusMessageColor, ...statusTypographyCss } = statusTextCss;
435
+ const statusTypographyCss = omitTextColors(textStylesToCss(resolvedStatusTextStyle, isEditor));
427
436
 
428
437
  const colorVars = buildColorVars(P, {
429
438
  inputColor,
@@ -448,9 +457,19 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
448
457
  : activeEvent === 'error' ? 'error'
449
458
  : status;
450
459
  const displayError = activeEvent === 'error' ? errorMessageText : errorMessage;
451
- const displayValues = activeEvent === 'filled'
452
- ? Object.fromEntries(visibleFields.map((f) => [f.name, 'Filled']))
453
- : fieldValues;
460
+ const isFilledPreview = activeEvent === 'filled';
461
+ const displayValues = useMemo(() => {
462
+ if (!isFilledPreview) return fieldValues;
463
+
464
+ let next: Record<string, string> | null = null;
465
+ for (const f of visibleFields) {
466
+ const current = fieldValues[f.name] ?? '';
467
+ if (current.trim().length > 0) continue;
468
+ next = next ?? { ...fieldValues };
469
+ next[f.name] = 'Filled';
470
+ }
471
+ return next ?? fieldValues;
472
+ }, [fieldValues, isFilledPreview, visibleFields]);
454
473
  const validationErrorMessage =
455
474
  displayStatus === 'error'
456
475
  ? getFormFieldValidationError(visibleFields, displayValues)
@@ -533,7 +552,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
533
552
  className={\`\${P}-input\`}
534
553
  style={inputFieldCss}
535
554
  rows={1}
536
- data-filled={((displayValues[field.name] ?? '') as string).trim().length > 0}
555
+ data-filled={isFilledPreview || ((displayValues[field.name] ?? '') as string).trim().length > 0}
537
556
  data-field-type="textarea"
538
557
  />
539
558
  ) : (
@@ -547,7 +566,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
547
566
  required={field.isRequired ?? field.type === 'email'}
548
567
  className={\`\${P}-input\`}
549
568
  style={inputFieldCss}
550
- data-filled={((displayValues[field.name] ?? '') as string).trim().length > 0}
569
+ data-filled={isFilledPreview || ((displayValues[field.name] ?? '') as string).trim().length > 0}
551
570
  />
552
571
  )}
553
572
  </div>
@@ -565,7 +584,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
565
584
  paddingRight: scalingValue(buttonPadding?.right ?? 0, isEditor),
566
585
  paddingBottom: scalingValue(buttonPadding?.bottom ?? 0, isEditor),
567
586
  paddingLeft: scalingValue(buttonPadding?.left ?? 0, isEditor),
568
- ...buttonTextCss,
587
+ ...buttonTypographyCss,
569
588
  ...(isButtonFullWidth
570
589
  ? {
571
590
  width: '100%',
@@ -594,7 +613,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
594
613
  {displayStatus === 'success' && (
595
614
  <p
596
615
  className={\`\${P}-success\`}
597
- style={{ ...statusTextCss }}
616
+ style={{ ...statusTypographyCss }}
598
617
  >
599
618
  {successMessage}
600
619
  </p>
@@ -712,8 +731,8 @@ const COLOR_VAR_MAP: Record<ColorKeys, string> = {
712
731
  };
713
732
 
714
733
  const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
715
- `,$s=[{name:"email",type:"email",placeholder:"Enter your email",label:"Email",isRequired:!0,error:"Please, enter a valid e-mail."},{name:"name",type:"text",placeholder:"Enter your name",label:"Name",isRequired:!1,error:"Please, enter your name."},{name:"company",type:"text",placeholder:"Enter company",label:"Company",isRequired:!1,error:"Please, enter your company name."},{name:"phone",type:"phone",placeholder:"Enter your phone",label:"Phone",isRequired:!1,error:"Please, enter a valid phone number."},{name:"message",type:"textarea",placeholder:"Enter your message",label:"Message",isRequired:!1,error:"Message is required"},{name:"message2",type:"textarea",placeholder:"Enter your message 2",label:"Message 2",isRequired:!1,error:"Message 2 is required"},{name:"message3",type:"textarea",placeholder:"Enter your message 3",label:"Message 3",isRequired:!1,error:"Message 3 is required"}],De={fontSettings:{type:"object",display:{type:"font-settings-weight"},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},_s=["inputColor","inputTextColor","inputBorderColor","placeholderColor","buttonColor","buttonTextColor","buttonBorderColor","labelTextColor","successColor","errorColor"],ws={type:"object",version:1,settings:{sizing:"auto manual",properties:{fieldsToShow:{type:"number",scope:"common",title:"Fields",display:{type:"number"},min:1,max:7},fields:{type:"array",scope:"common",display:{type:"fields-group"},items:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["text","textarea","phone","email"]},placeholder:{type:"string"},label:{type:"string"},isRequired:{type:"boolean"},error:{type:"string"}}}},buttonLabel:{type:"string",scope:"common",title:"Button Label",display:{type:"text-input"}},successMessage:{type:"string",scope:"common",title:"Success Message",display:{type:"text-input"}},errorMessage:{type:"string",scope:"common",title:"Error Message",display:{type:"text-input"}},type:{type:"string",scope:"common",title:"",display:{type:"radio-group"},enum:["A","B","C"]},gap:{type:"number",scope:"layout",title:"Gap",display:{type:"range-control"},min:0,max:100},fieldsGap:{type:"number",scope:"layout",title:"Gap",display:{type:"range-control"},min:0,max:100},buttonPadding:{type:"object",scope:"layout",title:"Padding",display:{type:"padding-controls"}},inputPadding:{type:"object",scope:"layout",title:"Padding",display:{type:"padding-controls"}},buttonStroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},buttonCorners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control"},min:0,max:100},inputStroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},inputCorners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control"},min:0,max:100},inputColor:{type:"string",scope:"common",title:"Input Fill",display:{type:"palette-color-picker"}},inputTextColor:{type:"string",scope:"common",title:"Input Label",display:{type:"palette-color-picker"}},inputBorderColor:{type:"string",scope:"common",title:"Input Stroke",display:{type:"palette-color-picker"}},placeholderColor:{type:"string",scope:"common",title:"Filler text",display:{type:"palette-color-picker"}},buttonColor:{type:"string",scope:"common",title:"Button Fill",display:{type:"palette-color-picker"}},buttonTextColor:{type:"string",scope:"common",title:"Button Label",display:{type:"palette-color-picker"}},isButtonFullWidth:{type:"boolean",scope:"common",title:"Full Width",display:{type:"toggle",enum:["On","Off"]}},buttonBorderColor:{type:"string",scope:"common",title:"Button Stroke",display:{type:"palette-color-picker"}},labelTextColor:{type:"string",scope:"common",title:"Label Color",display:{type:"palette-color-picker",visible:!1}},successColor:{type:"string",scope:"common",title:"Success Message Color",display:{type:"palette-color-picker"}},errorColor:{type:"string",scope:"common",title:"Error Message Color",display:{type:"palette-color-picker"}},stateOverrides:{type:"object",scope:"common"},fontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},inputFontSettings:{...De.fontSettings,scope:"common",title:"Input",display:{type:"font-settings-weight"}},inputFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},inputLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},inputLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},inputWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},inputTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}},buttonFontSettings:{...De.fontSettings,scope:"common",title:"Button",display:{type:"font-settings-weight"}},buttonFontSize:{type:"number",scope:"layout",title:"Button Font Size",display:{type:"font-size"}},buttonLineHeight:{type:"number",scope:"layout",title:"Button Line Height",display:{type:"line-height-input"}},buttonLetterSpacing:{type:"number",scope:"layout",title:"Button Letter Spacing",display:{type:"letter-spacing-input"}},buttonWordSpacing:{type:"number",scope:"layout",title:"Button Word Spacing",display:{type:"word-spacing-input"}},buttonTextAppearance:{type:"object",scope:"layout",title:"Button Text Appearance",display:{type:"text-appearance"}},labelFontSettings:{...De.fontSettings,scope:"common",title:"Label",display:{type:"font-settings-weight",visible:!1}},labelFontSize:{type:"number",scope:"layout",title:"Label Font Size",display:{type:"font-size",visible:!1}},labelLineHeight:{type:"number",scope:"layout",title:"Label Line Height",display:{type:"line-height-input",visible:!1}},labelLetterSpacing:{type:"number",scope:"layout",title:"Label Letter Spacing",display:{type:"letter-spacing-input",visible:!1}},labelWordSpacing:{type:"number",scope:"layout",title:"Label Word Spacing",display:{type:"word-spacing-input",visible:!1}},labelTextAppearance:{type:"object",scope:"layout",title:"Label Text Appearance",display:{type:"text-appearance",visible:!1}},statusFontSettings:{...De.fontSettings,scope:"common",title:"Success/Error"},statusFontSize:{type:"number",scope:"layout",title:"Success/Error Font Size",display:{type:"font-size"}},statusLineHeight:{type:"number",scope:"layout",title:"Success/Error Line Height",display:{type:"line-height-input"}},statusLetterSpacing:{type:"number",scope:"layout",title:"Success/Error Letter Spacing",display:{type:"letter-spacing-input"}},statusWordSpacing:{type:"number",scope:"layout",title:"Success/Error Word Spacing",display:{type:"word-spacing-input"}},statusTextAppearance:{type:"object",scope:"layout",title:"Success/Error Text Appearance",display:{type:"text-appearance"}}},defaults:{fieldsToShow:2,fields:$s,type:"A",inputColor:"#FFFFFF",inputTextColor:"#0A00F8",inputBorderColor:"#E2E2E2",placeholderColor:"#808080",buttonColor:"#0A00F8",buttonTextColor:"#ffffff",buttonBorderColor:"#0A00F8",labelTextColor:"#999999",successColor:"#22c55e",errorColor:"#ef4444",stateOverrides:{hover:{buttonColor:"#194EFF"}},fontFamily:"Arial",inputFontSettings:{fontWeight:400,fontStyle:"normal"},inputLetterSpacing:0,inputWordSpacing:0,inputTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},buttonFontSettings:{fontWeight:400,fontStyle:"normal"},buttonLetterSpacing:0,buttonWordSpacing:0,buttonTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},labelFontSettings:{fontWeight:400,fontStyle:"normal"},labelLetterSpacing:0,labelWordSpacing:0,labelTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},statusFontSettings:{fontWeight:400,fontStyle:"normal"},statusLetterSpacing:0,statusWordSpacing:0,statusTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},isButtonFullWidth:!1,buttonLabel:"Sign up",successMessage:"Thanks for subscribing!",errorMessage:"Please, fill all required fields."},layoutDefaults:{m:{gap:.032,fieldsGap:.032,buttonStroke:0,buttonCorners:.192,inputStroke:.003,inputCorners:.192,buttonPadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},inputPadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},inputFontSize:.043,inputLineHeight:.043,buttonFontSize:.0373,buttonLineHeight:.0373,labelFontSize:.0373,labelLineHeight:.0373,statusFontSize:.0373,statusLineHeight:.0373},d:{gap:.0083,fieldsGap:.0083,buttonStroke:0,buttonCorners:.05,inputStroke:.001,inputCorners:.05,buttonPadding:{top:.01,right:.01,bottom:.01,left:.01},inputPadding:{top:.01,right:.01,bottom:.01,left:.01},inputFontSize:.01,inputLineHeight:.01,buttonFontSize:.01,buttonLineHeight:.01,labelFontSize:.01,labelLineHeight:.01,statusFontSize:.01,statusLineHeight:.01}},displayRules:[{if:{name:"type",value:"B"},then:{name:"properties.labelTextColor.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelFontSettings.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelFontSize.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelLineHeight.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelLetterSpacing.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelWordSpacing.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelTextAppearance.display.visible",value:!0}},{if:{name:"type",value:"C"},then:{name:"properties.buttonCorners.display.visible",value:!1}},{if:{name:"type",value:"C"},then:{name:"properties.inputCorners.display.visible",value:!1}},{if:{name:"buttonStroke",value:0},then:{name:"properties.buttonBorderColor.display.visible",value:!1}},{if:{name:"inputStroke",value:0},then:{name:"properties.inputBorderColor.display.visible",value:!1}}]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","name","fieldsToShow"]},"type",{type:"group",title:"",items:[{type:"row",title:"Input",items:[{type:"group",title:"",items:["fieldsGap","inputStroke","inputCorners"]},{type:"group",title:"",items:["inputPadding"]}]},{type:"group",title:"Button",items:[{type:"row",items:["isButtonFullWidth"]},{type:"row",items:[{type:"group",title:"",items:["gap","buttonStroke","buttonCorners"]},{type:"group",title:"",items:["buttonPadding"]}]}]}]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["fontFamily",{type:"group",title:"",items:["inputFontSettings",{type:"row",items:["inputFontSize","inputLineHeight","inputLetterSpacing","inputWordSpacing"]},"inputTextAppearance"]},{type:"group",title:"",items:["buttonFontSettings",{type:"row",items:["buttonFontSize","buttonLineHeight","buttonLetterSpacing","buttonWordSpacing"]},"buttonTextAppearance"]},{type:"group",title:"",items:["labelFontSettings",{type:"row",items:["labelFontSize","labelLineHeight","labelLetterSpacing","labelWordSpacing"]},"labelTextAppearance"]},{type:"group",title:"",items:["statusFontSettings",{type:"row",items:["statusFontSize","statusLineHeight","statusLetterSpacing","statusWordSpacing"]},"statusTextAppearance"]}]},{id:"fields",icon:"layers",title:"Fields",tooltip:"Fields",layout:["fields","buttonLabel","successMessage","errorMessage"]}],paletteBookmark:{items:[..._s],panelIds:["general","typeStyle"],stateItems:{default:["placeholderColor","inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor","labelTextColor"],hover:["inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor"],focus:["inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor"],filled:["inputTextColor","inputColor","inputBorderColor","buttonTextColor"],success:["successColor"],error:["errorColor"]}},allowedPlugins:["newsletter"],states:["default","hover","focus","filled","success","error"]},Ts={element:bs,id:"form",name:"Newsletter Stacked",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/formImg.png"},version:1,defaultSize:{width:300,height:42},schema:ws,sourceCode:Cs};function Ue(t){return`calc(var(--cntrl-article-width, 100vw) * ${t/1440})`}function Es(t){return`
716
- .${t}-wrapper {
734
+ `,$l=[{name:"email",type:"email",placeholder:"Enter your email",label:"Email",isRequired:!0,error:"Please, enter a valid e-mail."},{name:"name",type:"text",placeholder:"Enter your name",label:"Name",isRequired:!1,error:"Please, enter your name."},{name:"company",type:"text",placeholder:"Enter company",label:"Company",isRequired:!1,error:"Please, enter your company name."},{name:"phone",type:"phone",placeholder:"Enter your phone",label:"Phone",isRequired:!1,error:"Please, enter a valid phone number."},{name:"message",type:"textarea",placeholder:"Enter your message",label:"Message",isRequired:!1,error:"Message is required"},{name:"message2",type:"textarea",placeholder:"Enter your message 2",label:"Message 2",isRequired:!1,error:"Message 2 is required"},{name:"message3",type:"textarea",placeholder:"Enter your message 3",label:"Message 3",isRequired:!1,error:"Message 3 is required"}],Gt={fontSettings:{type:"object",display:{type:"font-settings-weight"},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},_l=["inputColor","inputTextColor","inputBorderColor","placeholderColor","buttonColor","buttonTextColor","buttonBorderColor","labelTextColor","successColor","errorColor"],wl={type:"object",version:1,settings:{sizing:"auto manual",properties:{fieldsToShow:{type:"number",scope:"common",title:"Fields",display:{type:"number"},min:1,max:7},fields:{type:"array",scope:"common",display:{type:"fields-group"},items:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["text","textarea","phone","email"]},placeholder:{type:"string"},label:{type:"string"},isRequired:{type:"boolean"},error:{type:"string"}}}},buttonLabel:{type:"string",scope:"common",title:"Button Label",display:{type:"text-input"}},successMessage:{type:"string",scope:"common",title:"Success Message",display:{type:"text-input"}},errorMessage:{type:"string",scope:"common",title:"Error Message",display:{type:"text-input"}},type:{type:"string",scope:"common",title:"",display:{type:"radio-group"},enum:["A","B","C"]},gap:{type:"number",scope:"layout",title:"Gap",display:{type:"range-control"},min:0,max:100},fieldsGap:{type:"number",scope:"layout",title:"Gap",display:{type:"range-control"},min:0,max:100},buttonPadding:{type:"object",scope:"layout",title:"Padding",display:{type:"padding-controls"}},inputPadding:{type:"object",scope:"layout",title:"Padding",display:{type:"padding-controls"}},buttonStroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},buttonCorners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control"},min:0,max:100},inputStroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},inputCorners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control"},min:0,max:100},inputColor:{type:"string",scope:"common",title:"Input Fill",display:{type:"palette-color-picker"}},inputTextColor:{type:"string",scope:"common",title:"Input Label",display:{type:"palette-color-picker"}},inputBorderColor:{type:"string",scope:"common",title:"Input Stroke",display:{type:"palette-color-picker"}},placeholderColor:{type:"string",scope:"common",title:"Filler text",display:{type:"palette-color-picker"}},buttonColor:{type:"string",scope:"common",title:"Button Fill",display:{type:"palette-color-picker"}},buttonTextColor:{type:"string",scope:"common",title:"Button Label",display:{type:"palette-color-picker"}},isButtonFullWidth:{type:"boolean",scope:"common",title:"Full Width",display:{type:"toggle",enum:["On","Off"]}},buttonBorderColor:{type:"string",scope:"common",title:"Button Stroke",display:{type:"palette-color-picker"}},labelTextColor:{type:"string",scope:"common",title:"Label Color",display:{type:"palette-color-picker",visible:!1}},successColor:{type:"string",scope:"common",title:"Success Message Color",display:{type:"palette-color-picker"}},errorColor:{type:"string",scope:"common",title:"Error Message Color",display:{type:"palette-color-picker"}},stateOverrides:{type:"object",scope:"common"},fontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},inputFontSettings:{...Gt.fontSettings,scope:"common",title:"Input",display:{type:"font-settings-weight"}},inputFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},inputLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},inputLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},inputWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},inputTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}},buttonFontSettings:{...Gt.fontSettings,scope:"common",title:"Button",display:{type:"font-settings-weight"}},buttonFontSize:{type:"number",scope:"layout",title:"Button Font Size",display:{type:"font-size"}},buttonLineHeight:{type:"number",scope:"layout",title:"Button Line Height",display:{type:"line-height-input"}},buttonLetterSpacing:{type:"number",scope:"layout",title:"Button Letter Spacing",display:{type:"letter-spacing-input"}},buttonWordSpacing:{type:"number",scope:"layout",title:"Button Word Spacing",display:{type:"word-spacing-input"}},buttonTextAppearance:{type:"object",scope:"layout",title:"Button Text Appearance",display:{type:"text-appearance"}},labelFontSettings:{...Gt.fontSettings,scope:"common",title:"Label",display:{type:"font-settings-weight",visible:!1}},labelFontSize:{type:"number",scope:"layout",title:"Label Font Size",display:{type:"font-size",visible:!1}},labelLineHeight:{type:"number",scope:"layout",title:"Label Line Height",display:{type:"line-height-input",visible:!1}},labelLetterSpacing:{type:"number",scope:"layout",title:"Label Letter Spacing",display:{type:"letter-spacing-input",visible:!1}},labelWordSpacing:{type:"number",scope:"layout",title:"Label Word Spacing",display:{type:"word-spacing-input",visible:!1}},labelTextAppearance:{type:"object",scope:"layout",title:"Label Text Appearance",display:{type:"text-appearance",visible:!1}},statusFontSettings:{...Gt.fontSettings,scope:"common",title:"Success/Error"},statusFontSize:{type:"number",scope:"layout",title:"Success/Error Font Size",display:{type:"font-size"}},statusLineHeight:{type:"number",scope:"layout",title:"Success/Error Line Height",display:{type:"line-height-input"}},statusLetterSpacing:{type:"number",scope:"layout",title:"Success/Error Letter Spacing",display:{type:"letter-spacing-input"}},statusWordSpacing:{type:"number",scope:"layout",title:"Success/Error Word Spacing",display:{type:"word-spacing-input"}},statusTextAppearance:{type:"object",scope:"layout",title:"Success/Error Text Appearance",display:{type:"text-appearance"}}},defaults:{fieldsToShow:2,fields:$l,type:"A",inputColor:"#FFFFFF",inputTextColor:"#0A00F8",inputBorderColor:"#E2E2E2",placeholderColor:"#808080",buttonColor:"#0A00F8",buttonTextColor:"#ffffff",buttonBorderColor:"#0A00F8",labelTextColor:"#999999",successColor:"#22c55e",errorColor:"#ef4444",stateOverrides:{hover:{buttonColor:"#194EFF"}},fontFamily:"Arial",inputFontSettings:{fontWeight:400,fontStyle:"normal"},inputLetterSpacing:0,inputWordSpacing:0,inputTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},buttonFontSettings:{fontWeight:400,fontStyle:"normal"},buttonLetterSpacing:0,buttonWordSpacing:0,buttonTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},labelFontSettings:{fontWeight:400,fontStyle:"normal"},labelLetterSpacing:0,labelWordSpacing:0,labelTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},statusFontSettings:{fontWeight:400,fontStyle:"normal"},statusLetterSpacing:0,statusWordSpacing:0,statusTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},isButtonFullWidth:!1,buttonLabel:"Sign up",successMessage:"Thanks for subscribing!",errorMessage:"Please, fill all required fields."},layoutDefaults:{m:{gap:.032,fieldsGap:.032,buttonStroke:0,buttonCorners:.192,inputStroke:.003,inputCorners:.192,buttonPadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},inputPadding:{top:.0373,right:.0373,bottom:.0373,left:.0373},inputFontSize:.043,inputLineHeight:.043,buttonFontSize:.0373,buttonLineHeight:.0373,labelFontSize:.0373,labelLineHeight:.0373,statusFontSize:.0373,statusLineHeight:.0373},d:{gap:.0083,fieldsGap:.0083,buttonStroke:0,buttonCorners:.05,inputStroke:.001,inputCorners:.05,buttonPadding:{top:.01,right:.01,bottom:.01,left:.01},inputPadding:{top:.01,right:.01,bottom:.01,left:.01},inputFontSize:.01,inputLineHeight:.01,buttonFontSize:.01,buttonLineHeight:.01,labelFontSize:.01,labelLineHeight:.01,statusFontSize:.01,statusLineHeight:.01}},displayRules:[{if:{name:"type",value:"B"},then:{name:"properties.labelTextColor.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelFontSettings.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelFontSize.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelLineHeight.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelLetterSpacing.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelWordSpacing.display.visible",value:!0}},{if:{name:"type",value:"B"},then:{name:"properties.labelTextAppearance.display.visible",value:!0}},{if:{name:"type",value:"C"},then:{name:"properties.buttonCorners.display.visible",value:!1}},{if:{name:"type",value:"C"},then:{name:"properties.inputCorners.display.visible",value:!1}},{if:{name:"buttonStroke",value:0},then:{name:"properties.buttonBorderColor.display.visible",value:!1}},{if:{name:"inputStroke",value:0},then:{name:"properties.inputBorderColor.display.visible",value:!1}},{if:{name:"fieldsToShow",value:1},then:{name:"properties.fieldsGap.display.visible",value:!1}}]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","name","fieldsToShow"]},"type",{type:"group",title:"",items:[{type:"row",title:"Input",items:[{type:"group",title:"",items:["fieldsGap","inputStroke","inputCorners"]},{type:"group",title:"",items:["inputPadding"]}]},{type:"group",title:"Button",items:[{type:"row",items:["isButtonFullWidth"]},{type:"row",items:[{type:"group",title:"",items:["gap","buttonStroke","buttonCorners"]},{type:"group",title:"",items:["buttonPadding"]}]}]}]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["fontFamily",{type:"group",title:"",items:["inputFontSettings",{type:"row",items:["inputFontSize","inputLineHeight","inputLetterSpacing","inputWordSpacing"]},"inputTextAppearance"]},{type:"group",title:"",items:["buttonFontSettings",{type:"row",items:["buttonFontSize","buttonLineHeight","buttonLetterSpacing","buttonWordSpacing"]},"buttonTextAppearance"]},{type:"group",title:"",items:["labelFontSettings",{type:"row",items:["labelFontSize","labelLineHeight","labelLetterSpacing","labelWordSpacing"]},"labelTextAppearance"]},{type:"group",title:"",items:["statusFontSettings",{type:"row",items:["statusFontSize","statusLineHeight","statusLetterSpacing","statusWordSpacing"]},"statusTextAppearance"]}]},{id:"fields",icon:"layers",title:"Fields",tooltip:"Fields",layout:["fields","buttonLabel","successMessage","errorMessage"]}],paletteBookmark:{items:[..._l],panelIds:["general","typeStyle"],stateItems:{default:["placeholderColor","inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor","labelTextColor"],hover:["inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor"],focus:["inputColor","inputBorderColor","buttonTextColor","buttonColor","buttonBorderColor"],filled:["inputTextColor","inputColor","inputBorderColor","buttonTextColor"],success:["successColor"],error:["errorColor"]}},allowedPlugins:["newsletter"],states:["default","hover","focus","filled","success","error"]},Tl={element:bl,id:"form",name:"Newsletter Stacked",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/formImg.jpg"},version:1,defaultSize:{width:300,height:42},schema:wl,sourceCode:Cl};function Yt(e){return`calc(var(--cntrl-article-width, 100vw) * ${e/1440})`}function El(e){return`
735
+ .${e}-wrapper {
717
736
  display: flex;
718
737
  flex-direction: column;
719
738
  width: 100%;
@@ -721,90 +740,90 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
721
740
  align-items: stretch;
722
741
  justify-content: center;
723
742
  }
724
- .${t}-form {
743
+ .${e}-form {
725
744
  display: flex;
726
745
  width: 100%;
727
746
  align-items: stretch;
728
747
  overflow: hidden;
729
- border-color: var(--${t}-stroke-color);
748
+ border-color: var(--${e}-stroke-color);
730
749
  transition: border-color 250ms;
731
750
  }
732
- .${t}-form:hover {
733
- border-color: var(--${t}-hover-stroke-color, var(--${t}-stroke-color));
751
+ .${e}-form:hover {
752
+ border-color: var(--${e}-hover-stroke-color, var(--${e}-stroke-color));
734
753
  }
735
- .${t}-form:focus-within {
736
- border-color: var(--${t}-focus-stroke-color, var(--${t}-stroke-color));
754
+ .${e}-form:focus-within {
755
+ border-color: var(--${e}-focus-stroke-color, var(--${e}-stroke-color));
737
756
  }
738
- .${t}-wrapper.${t}-state-hover .${t}-form {
739
- border-color: var(--${t}-hover-stroke-color, var(--${t}-stroke-color));
757
+ .${e}-wrapper.${e}-state-hover .${e}-form {
758
+ border-color: var(--${e}-hover-stroke-color, var(--${e}-stroke-color));
740
759
  }
741
- .${t}-wrapper.${t}-state-focus .${t}-form {
742
- border-color: var(--${t}-focus-stroke-color, var(--${t}-stroke-color));
760
+ .${e}-wrapper.${e}-state-focus .${e}-form {
761
+ border-color: var(--${e}-focus-stroke-color, var(--${e}-stroke-color));
743
762
  }
744
- .${t}-wrapper.${t}-state-filled .${t}-form {
745
- border-color: var(--${t}-filled-stroke-color, var(--${t}-stroke-color));
763
+ .${e}-wrapper.${e}-state-filled .${e}-form {
764
+ border-color: var(--${e}-filled-stroke-color, var(--${e}-stroke-color));
746
765
  }
747
- .${t}-inputWrap {
766
+ .${e}-inputWrap {
748
767
  position: relative;
749
768
  display: flex;
750
769
  align-items: center;
751
770
  flex: 1;
752
771
  min-width: 0;
753
- background-color: var(--${t}-input-color);
772
+ background-color: var(--${e}-input-color);
754
773
  transition: background-color 250ms;
755
774
  }
756
- .${t}-inputWrap:hover,
757
- .${t}-wrapper.${t}-state-hover .${t}-inputWrap {
758
- background-color: var(--${t}-hover-input-color, var(--${t}-input-color));
775
+ .${e}-inputWrap:hover,
776
+ .${e}-wrapper.${e}-state-hover .${e}-inputWrap {
777
+ background-color: var(--${e}-hover-input-color, var(--${e}-input-color));
759
778
  }
760
- .${t}-inputWrap:focus-within,
761
- .${t}-wrapper.${t}-state-focus .${t}-inputWrap {
762
- background-color: var(--${t}-focus-input-color, var(--${t}-input-color));
779
+ .${e}-inputWrap:focus-within,
780
+ .${e}-wrapper.${e}-state-focus .${e}-inputWrap {
781
+ background-color: var(--${e}-focus-input-color, var(--${e}-input-color));
763
782
  }
764
- .${t}-wrapper.${t}-state-filled .${t}-inputWrap {
765
- background-color: var(--${t}-filled-input-color, var(--${t}-input-color));
783
+ .${e}-wrapper.${e}-state-filled .${e}-inputWrap {
784
+ background-color: var(--${e}-filled-input-color, var(--${e}-input-color));
766
785
  }
767
- .${t}-input {
786
+ .${e}-input {
768
787
  flex: 1;
769
788
  min-width: 0;
770
789
  background: transparent;
771
790
  border: none;
772
791
  outline: none;
773
792
  -webkit-tap-highlight-color: transparent;
774
- color: var(--${t}-input-text-color);
793
+ color: var(--${e}-input-text-color);
775
794
  transition: color 250ms, background-color 250ms, border-color 250ms;
776
795
  }
777
- .${t}-input:hover {
778
- color: var(--${t}-hover-input-text-color, var(--${t}-input-text-color));
796
+ .${e}-input:hover {
797
+ color: var(--${e}-hover-input-text-color, var(--${e}-input-text-color));
779
798
  }
780
- .${t}-inputWrap:hover .${t}-input,
781
- .${t}-wrapper.${t}-state-hover .${t}-input {
782
- color: var(--${t}-hover-input-text-color, var(--${t}-input-text-color));
799
+ .${e}-inputWrap:hover .${e}-input,
800
+ .${e}-wrapper.${e}-state-hover .${e}-input {
801
+ color: var(--${e}-hover-input-text-color, var(--${e}-input-text-color));
783
802
  }
784
- .${t}-input:focus,
785
- .${t}-wrapper.${t}-state-focus .${t}-input {
786
- color: var(--${t}-focus-input-text-color, var(--${t}-input-text-color));
803
+ .${e}-input:focus,
804
+ .${e}-wrapper.${e}-state-focus .${e}-input {
805
+ color: var(--${e}-focus-input-text-color, var(--${e}-input-text-color));
787
806
  }
788
- .${t}-wrapper.${t}-state-filled .${t}-input {
789
- color: var(--${t}-filled-input-text-color, var(--${t}-input-text-color));
807
+ .${e}-wrapper.${e}-state-filled .${e}-input {
808
+ color: var(--${e}-filled-input-text-color, var(--${e}-input-text-color));
790
809
  }
791
- .${t}-input::placeholder {
792
- color: var(--${t}-placeholder-color);
810
+ .${e}-input::placeholder {
811
+ color: var(--${e}-placeholder-color);
793
812
  opacity: 1;
794
813
  transition: color 250ms, opacity 250ms;
795
814
  }
796
- .${t}-inputWrap:hover .${t}-input::placeholder,
797
- .${t}-wrapper.${t}-state-hover .${t}-input::placeholder {
798
- color: var(--${t}-hover-placeholder-color, var(--${t}-placeholder-color));
815
+ .${e}-inputWrap:hover .${e}-input::placeholder,
816
+ .${e}-wrapper.${e}-state-hover .${e}-input::placeholder {
817
+ color: var(--${e}-hover-placeholder-color, var(--${e}-placeholder-color));
799
818
  }
800
- .${t}-inputWrap:focus-within .${t}-input::placeholder,
801
- .${t}-wrapper.${t}-state-focus .${t}-input::placeholder {
802
- color: var(--${t}-focus-placeholder-color, var(--${t}-placeholder-color));
819
+ .${e}-inputWrap:focus-within .${e}-input::placeholder,
820
+ .${e}-wrapper.${e}-state-focus .${e}-input::placeholder {
821
+ color: var(--${e}-focus-placeholder-color, var(--${e}-placeholder-color));
803
822
  }
804
- .${t}-wrapper.${t}-state-filled .${t}-input::placeholder {
805
- color: var(--${t}-filled-placeholder-color, var(--${t}-placeholder-color));
823
+ .${e}-wrapper.${e}-state-filled .${e}-input::placeholder {
824
+ color: var(--${e}-filled-placeholder-color, var(--${e}-placeholder-color));
806
825
  }
807
- .${t}-submitBtn {
826
+ .${e}-submitBtn {
808
827
  box-sizing: border-box;
809
828
  height: 100%;
810
829
  display: flex;
@@ -813,13 +832,13 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
813
832
  border: none;
814
833
  cursor: pointer;
815
834
  white-space: nowrap;
816
- background-color: var(--${t}-button-color);
817
- color: var(--${t}-button-text-color);
835
+ background-color: var(--${e}-button-color);
836
+ color: var(--${e}-button-text-color);
818
837
  border-left-style: solid;
819
- border-left-color: var(--${t}-stroke-color);
838
+ border-left-color: var(--${e}-stroke-color);
820
839
  transition: color 250ms, background-color 250ms, border-color 250ms;
821
840
  }
822
- .${t}-submitBtn img {
841
+ .${e}-submitBtn img {
823
842
  display: block;
824
843
  box-sizing: border-box;
825
844
  flex: 0 1 auto;
@@ -830,7 +849,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
830
849
  max-height: 100%;
831
850
  object-fit: contain;
832
851
  }
833
- .${t}-submitBtn svg {
852
+ .${e}-submitBtn svg {
834
853
  display: block;
835
854
  box-sizing: border-box;
836
855
  flex: 0 1 auto;
@@ -840,7 +859,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
840
859
  max-width: 100%;
841
860
  max-height: 100%;
842
861
  }
843
- .${t}-submitBtn .${t}-submitBtnIcon {
862
+ .${e}-submitBtn .${e}-submitBtnIcon {
844
863
  position: relative;
845
864
  top: auto;
846
865
  left: auto;
@@ -856,57 +875,57 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
856
875
  max-width: 100%;
857
876
  max-height: 100%;
858
877
  }
859
- .${t}-submitBtn:hover,
860
- .${t}-wrapper.${t}-state-hover .${t}-submitBtn {
861
- background-color: var(--${t}-hover-button-color, var(--${t}-button-color));
862
- color: var(--${t}-hover-button-text-color, var(--${t}-button-text-color));
863
- border-left-color: var(--${t}-hover-stroke-color, var(--${t}-stroke-color));
878
+ .${e}-submitBtn:hover,
879
+ .${e}-wrapper.${e}-state-hover .${e}-submitBtn {
880
+ background-color: var(--${e}-hover-button-color, var(--${e}-button-color));
881
+ color: var(--${e}-hover-button-text-color, var(--${e}-button-text-color));
882
+ border-left-color: var(--${e}-hover-stroke-color, var(--${e}-stroke-color));
864
883
  }
865
- .${t}-submitBtn:focus,
866
- .${t}-wrapper.${t}-state-focus .${t}-submitBtn {
867
- background-color: var(--${t}-focus-button-color, var(--${t}-button-color));
868
- color: var(--${t}-focus-button-text-color, var(--${t}-button-text-color));
869
- border-left-color: var(--${t}-focus-stroke-color, var(--${t}-stroke-color));
884
+ .${e}-submitBtn:focus,
885
+ .${e}-wrapper.${e}-state-focus .${e}-submitBtn {
886
+ background-color: var(--${e}-focus-button-color, var(--${e}-button-color));
887
+ color: var(--${e}-focus-button-text-color, var(--${e}-button-text-color));
888
+ border-left-color: var(--${e}-focus-stroke-color, var(--${e}-stroke-color));
870
889
  }
871
- .${t}-wrapper.${t}-state-filled .${t}-submitBtn {
872
- background-color: var(--${t}-filled-button-color, var(--${t}-button-color));
873
- color: var(--${t}-filled-button-text-color, var(--${t}-button-text-color));
874
- border-left-color: var(--${t}-filled-stroke-color, var(--${t}-stroke-color));
890
+ .${e}-wrapper.${e}-state-filled .${e}-submitBtn {
891
+ background-color: var(--${e}-filled-button-color, var(--${e}-button-color));
892
+ color: var(--${e}-filled-button-text-color, var(--${e}-button-text-color));
893
+ border-left-color: var(--${e}-filled-stroke-color, var(--${e}-stroke-color));
875
894
  }
876
- .${t}-submitBtn:hover .${t}-submitBtnIcon,
877
- .${t}-wrapper.${t}-state-hover .${t}-submitBtn .${t}-submitBtnIcon {
878
- background-color: var(--${t}-hover-button-text-color, var(--${t}-button-text-color));
895
+ .${e}-submitBtn:hover .${e}-submitBtnIcon,
896
+ .${e}-wrapper.${e}-state-hover .${e}-submitBtn .${e}-submitBtnIcon {
897
+ background-color: var(--${e}-hover-button-text-color, var(--${e}-button-text-color));
879
898
  }
880
- .${t}-submitBtn:focus .${t}-submitBtnIcon,
881
- .${t}-wrapper.${t}-state-focus .${t}-submitBtn .${t}-submitBtnIcon {
882
- background-color: var(--${t}-focus-button-text-color, var(--${t}-button-text-color));
899
+ .${e}-submitBtn:focus .${e}-submitBtnIcon,
900
+ .${e}-wrapper.${e}-state-focus .${e}-submitBtn .${e}-submitBtnIcon {
901
+ background-color: var(--${e}-focus-button-text-color, var(--${e}-button-text-color));
883
902
  }
884
- .${t}-wrapper.${t}-state-filled .${t}-submitBtn .${t}-submitBtnIcon {
885
- background-color: var(--${t}-filled-button-text-color, var(--${t}-button-text-color));
903
+ .${e}-wrapper.${e}-state-filled .${e}-submitBtn .${e}-submitBtnIcon {
904
+ background-color: var(--${e}-filled-button-text-color, var(--${e}-button-text-color));
886
905
  }
887
- .${t}-wrapper.${t}-state-success .${t}-input,
888
- .${t}-wrapper.${t}-state-success .${t}-submitBtn {
906
+ .${e}-wrapper.${e}-state-success .${e}-input,
907
+ .${e}-wrapper.${e}-state-success .${e}-submitBtn {
889
908
  pointer-events: none;
890
909
  }
891
- .${t}-overlayAnchor {
910
+ .${e}-overlayAnchor {
892
911
  position: relative;
893
912
  display: flex;
894
913
  align-items: center;
895
914
  }
896
- .${t}-success {
897
- margin-top: ${Ue(8)};
898
- font-size: ${Ue(14)};
899
- color: var(--${t}-success-success-color, var(--${t}-success-color));
915
+ .${e}-success {
916
+ margin-top: ${Yt(8)};
917
+ font-size: ${Yt(14)};
918
+ color: var(--${e}-success-success-color, var(--${e}-success-color));
900
919
  }
901
- .${t}-error {
902
- margin-top: ${Ue(8)};
903
- font-size: ${Ue(14)};
904
- color: var(--${t}-error-error-color, var(--${t}-error-color));
920
+ .${e}-error {
921
+ margin-top: ${Yt(8)};
922
+ font-size: ${Yt(14)};
923
+ color: var(--${e}-error-error-color, var(--${e}-error-color));
905
924
  }
906
- `}const Ls=({settings:t,isEditor:e,metadata:n,activeEvent:o})=>{const{prefix:r}=F.useScopedStyles(),{fields:a=[{name:"email",type:"email",placeholder:"Your email"}],buttonContent:i,buttonLabel:c,fieldsToShow:s=1,fontFamily:p,inputFontSettings:l,inputFontSize:w,inputLineHeight:y,inputLetterSpacing:m,inputWordSpacing:u,inputTextAppearance:d,buttonFontSettings:C,buttonFontSize:b,buttonLineHeight:f,buttonLetterSpacing:$,buttonWordSpacing:M,buttonTextAppearance:P,statusFontSettings:T,statusFontSize:h,statusLineHeight:L,statusLetterSpacing:R,statusWordSpacing:W,statusTextAppearance:k,minHeight:B,corners:O,stroke:U,stateOverrides:D,inputPadding:g,buttonPadding:A,successMessage:I="Thanks for subscribing!",errorMessage:_="Please, fill all required fields."}=t,v=a.slice(0,Math.min(s,a.length)),[V,X]=j.useState(()=>Object.fromEntries(v.map(ht=>[ht.name,""]))),[rt,Q]=j.useState("idle"),[ut,E]=j.useState(null),K=o==="success"?"success":o==="error"?"error":rt,ft=o==="error"?_:ut,it=o==="filled"?Object.fromEntries(v.map(ht=>[ht.name,"Filled"])):V,mt=K==="error"?F.getFormFieldValidationError(v,it):null,bt=o&&o!=="default"?`${r}-state-${o}`:"",Mt=v.some(ht=>(it[ht.name]??"").trim().length>0),z=bt!==`${r}-state-filled`&&Mt?`${r}-state-filled`:"",S=`${bt} ${z}`.trim(),H=n==null?void 0:n.submitUrl,G=c??"",J=(i==null?void 0:i.icon)??"",ot=(i==null?void 0:i.mode)==="On",tt=G||"Submit",q={fontSettings:{fontFamily:p,fontWeight:(l==null?void 0:l.fontWeight)??400,fontStyle:(l==null?void 0:l.fontStyle)??"normal"},fontSize:w??.01,lineHeight:y,letterSpacing:m??0,wordSpacing:u??0,textAppearance:d,color:t.inputTextColor??"#111111"},nt={fontSettings:{fontFamily:p,fontWeight:(C==null?void 0:C.fontWeight)??400,fontStyle:(C==null?void 0:C.fontStyle)??"normal"},fontSize:b??.01,lineHeight:f,letterSpacing:$??0,wordSpacing:M??0,textAppearance:P,color:t.buttonTextColor??"#ffffff"},vt={fontSettings:{fontFamily:p,fontWeight:(T==null?void 0:T.fontWeight)??400,fontStyle:(T==null?void 0:T.fontStyle)??"normal"},fontSize:h??.01,lineHeight:L,letterSpacing:R??0,wordSpacing:W??0,textAppearance:k,color:t.successColor??"#22c55e"},st=Zt(q,e),pt=Zt(nt,e),kt=Zt(vt,e),{color:et,...lt}=kt,Ct=F.buildColorVars(r,{strokeColor:t.strokeColor,inputColor:t.inputColor,placeholderColor:t.placeholderColor,buttonColor:t.buttonColor,successColor:t.successColor,errorColor:t.errorColor,inputTextColor:t.inputTextColor??(q==null?void 0:q.color)??"#111111",buttonTextColor:t.buttonTextColor??(nt==null?void 0:nt.color)??"#ffffff"},As,Is,D),Ht={borderRadius:F.scalingValue(O,e),borderWidth:F.scalingValue(U,e),borderStyle:"solid"},be={borderLeftWidth:F.scalingValue(U,e)},gn=async ht=>{ht.preventDefault();const Se=Object.fromEntries(v.map($t=>{var Ft;return[$t.name,((Ft=V[$t.name])==null?void 0:Ft.trim())??""]}).filter(([,$t])=>$t));if(!H){Q("error"),E("No integrations were found for this form.");return}if(Object.keys(Se).length===0)return;const oe=F.getFormFieldValidationError(v,V);if(oe){Q("error"),E(oe);return}Q("submitting"),E(null);try{const $t=await fetch(H,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Se)});if(!$t.ok){const Ft=await $t.text();throw new Error(Ft||`Request failed: ${$t.status}`)}Q("success"),X(Object.fromEntries(v.map(Ft=>[Ft.name,""])))}catch($t){Q("error"),E($t instanceof Error?$t.message:"Something went wrong")}};return x.jsxs("div",{className:`${r}-wrapper ${S}`.trim(),style:Ct,children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:Es(r)}}),x.jsxs("form",{onSubmit:gn,className:`${r}-form`,style:{...Ht,height:F.scalingValue(B,e),minHeight:F.scalingValue(B,e)},children:[x.jsx("div",{className:`${r}-inputWrap ${r}-overlayAnchor`,style:{flex:1,minWidth:0},children:v.map(ht=>x.jsx("input",{type:ht.type==="email"?"email":ht.type==="phone"?"tel":"text",name:ht.name,autoComplete:"off",value:it[ht.name]??"",onChange:Se=>X(oe=>({...oe,[ht.name]:Se.target.value})),placeholder:ht.placeholder,required:ht.isRequired??ht.type==="email",className:`${r}-input`,style:{...st,paddingRight:F.scalingValue(g.right,e),paddingLeft:F.scalingValue(g.left,e),paddingTop:F.scalingValue(g.top,e),paddingBottom:F.scalingValue(g.bottom,e)}},ht.name))}),x.jsx("div",{className:`${r}-overlayAnchor`,children:x.jsx("button",{type:"submit",className:`${r}-submitBtn`,"aria-label":tt,style:{...pt,...be,paddingRight:F.scalingValue(A.right,e),paddingLeft:F.scalingValue(A.left,e),paddingTop:F.scalingValue(A.top,e),paddingBottom:F.scalingValue(A.bottom,e)},children:rt==="submitting"?"...":ot?J&&x.jsx(de,{url:J,className:`${r}-submitBtnIcon`,fill:`var(--${r}-button-text-color)`,hoverFill:`var(--${r}-button-text-color)`}):G})})]}),K==="success"&&x.jsx("p",{className:`${r}-success`,style:{...kt},children:I}),K==="error"&&x.jsx("p",{className:`${r}-error`,style:{...lt},role:"alert",children:mt??ft??_})]})},As={strokeColor:"stroke-color",inputColor:"input-color",placeholderColor:"placeholder-color",buttonColor:"button-color",inputTextColor:"input-text-color",buttonTextColor:"button-text-color",successColor:"success-color",errorColor:"error-color"},Is=["hover","focus","filled","success","error"],ks=`import React, { useState } from 'react';
925
+ `}const Ll=({settings:e,isEditor:t,metadata:n,activeEvent:o})=>{const{prefix:r}=F.useScopedStyles(),{fields:a=[{name:"email",type:"email",placeholder:"Your email"}],buttonIcon:i,buttonLabel:l,fieldsToShow:s=1,fontFamily:p,inputFontSettings:c,inputFontSize:_,inputLineHeight:y,inputLetterSpacing:g,inputWordSpacing:u,inputTextAppearance:d,buttonFontSettings:C,buttonFontSize:v,buttonLineHeight:f,buttonLetterSpacing:$,buttonWordSpacing:M,buttonTextAppearance:O,statusFontSettings:w,statusFontSize:h,statusLineHeight:L,statusLetterSpacing:P,statusWordSpacing:N,statusTextAppearance:R,iconMaxWidth:V,minHeight:B,corners:U,stroke:H,stateOverrides:m,inputPadding:I,buttonPadding:E,successMessage:T="Thanks for subscribing!",errorMessage:x="Please, fill all required fields."}=e,k=a.slice(0,Math.min(s,a.length)),[Y,re]=j.useState(()=>Object.fromEntries(k.map(de=>[de.name,""]))),[te,ie]=j.useState("idle"),[A,K]=j.useState(null),fe=o==="success"?"success":o==="error"?"error":te,se=o==="error"?x:A,he=o==="filled",be=j.useMemo(()=>{if(!he)return Y;let de=null;for(const Be of k)(Y[Be.name]??"").trim().length>0||(de=de??{...Y},de[Be.name]="Filled");return de??Y},[he,Y,k]),Ge=fe==="error"?F.getFormFieldValidationError(k,be):null,z=o&&o!=="default"?`${r}-state-${o}`:"",b=k.some(de=>(be[de.name]??"").trim().length>0),D=z!==`${r}-state-filled`&&b?`${r}-state-filled`:"",q=`${z} ${D}`.trim(),J=n==null?void 0:n.submitUrl,ne=l??"",Q=(i==null?void 0:i.icon)??"",X=(i==null?void 0:i.mode)==="On",oe=ne||"Submit",ye={fontSettings:{fontFamily:p,fontWeight:(c==null?void 0:c.fontWeight)??400,fontStyle:(c==null?void 0:c.fontStyle)??"normal"},fontSize:_??.01,lineHeight:y,letterSpacing:g??0,wordSpacing:u??0,textAppearance:d,color:e.inputTextColor??"#111111"},ae={fontSettings:{fontFamily:p,fontWeight:(C==null?void 0:C.fontWeight)??400,fontStyle:(C==null?void 0:C.fontStyle)??"normal"},fontSize:v??.01,lineHeight:f,letterSpacing:$??0,wordSpacing:M??0,textAppearance:O,color:e.buttonTextColor??"#ffffff"},pe={fontSettings:{fontFamily:p,fontWeight:(w==null?void 0:w.fontWeight)??400,fontStyle:(w==null?void 0:w.fontStyle)??"normal"},fontSize:h??.01,lineHeight:L,letterSpacing:P??0,wordSpacing:N??0,textAppearance:R,color:e.successColor??"#22c55e"},Ve=mt(tt(ye,t)),ee=mt(tt(ae,t)),ce=mt(tt(pe,t)),$e=F.buildColorVars(r,{strokeColor:e.strokeColor,inputColor:e.inputColor,placeholderColor:e.placeholderColor,buttonColor:e.buttonColor,successColor:e.successColor,errorColor:e.errorColor,inputTextColor:e.inputTextColor??(ye==null?void 0:ye.color)??"#111111",buttonTextColor:e.buttonTextColor??(ae==null?void 0:ae.color)??"#ffffff"},Al,Il,m),Ye={borderRadius:F.scalingValue(U,t),borderWidth:F.scalingValue(H,t),borderStyle:"solid"},xt={borderLeftWidth:F.scalingValue(H,t)},fn=async de=>{de.preventDefault();const Be=Object.fromEntries(k.map(xe=>{var Oe;return[xe.name,((Oe=Y[xe.name])==null?void 0:Oe.trim())??""]}).filter(([,xe])=>xe));if(!J){ie("error"),K("No integrations were found for this form.");return}if(Object.keys(Be).length===0)return;const _e=F.getFormFieldValidationError(k,Y);if(_e){ie("error"),K(_e);return}ie("submitting"),K(null);try{const xe=await fetch(J,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Be)});if(!xe.ok){const Oe=await xe.text();throw new Error(Oe||`Request failed: ${xe.status}`)}ie("success"),re(Object.fromEntries(k.map(Oe=>[Oe.name,""])))}catch(xe){ie("error"),K(xe instanceof Error?xe.message:"Something went wrong")}};return S.jsxs("div",{className:`${r}-wrapper ${q}`.trim(),style:$e,children:[S.jsx("style",{dangerouslySetInnerHTML:{__html:El(r)}}),S.jsxs("form",{onSubmit:fn,className:`${r}-form`,style:{...Ye,height:F.scalingValue(B,t),minHeight:F.scalingValue(B,t)},children:[S.jsx("div",{className:`${r}-inputWrap ${r}-overlayAnchor`,style:{flex:1,minWidth:0},children:k.map(de=>S.jsx("input",{type:de.type==="email"?"email":de.type==="phone"?"tel":"text",name:de.name,autoComplete:"off",value:be[de.name]??"",onChange:Be=>re(_e=>({..._e,[de.name]:Be.target.value})),placeholder:de.placeholder,required:de.isRequired??de.type==="email",className:`${r}-input`,style:{...Ve,paddingRight:F.scalingValue(I.right,t),paddingLeft:F.scalingValue(I.left,t),paddingTop:F.scalingValue(I.top,t),paddingBottom:F.scalingValue(I.bottom,t)}},de.name))}),S.jsx("div",{className:`${r}-overlayAnchor`,children:S.jsx("button",{type:"submit",className:`${r}-submitBtn`,"aria-label":oe,style:{...ee,...xt,paddingRight:F.scalingValue(E.right,t),paddingLeft:F.scalingValue(E.left,t),paddingTop:F.scalingValue(E.top,t),paddingBottom:F.scalingValue(E.bottom,t)},children:te==="submitting"?"...":X?Q&&S.jsx(gt,{url:Q,className:`${r}-submitBtnIcon`,style:{maxWidth:F.scalingValue(V??0,t)},fill:`var(--${r}-button-text-color)`,hoverFill:`var(--${r}-button-text-color)`}):ne})})]}),fe==="success"&&S.jsx("p",{className:`${r}-success`,style:{...ce},children:T}),fe==="error"&&S.jsx("p",{className:`${r}-error`,style:{...ce},role:"alert",children:Ge??se??x})]})},Al={strokeColor:"stroke-color",inputColor:"input-color",placeholderColor:"placeholder-color",buttonColor:"button-color",inputTextColor:"input-text-color",buttonTextColor:"button-text-color",successColor:"success-color",errorColor:"error-color"},Il=["hover","focus","filled","success","error"],kl=`import React, { useMemo, useState } from 'react';
907
926
  import { CommonComponentProps } from '../props';
908
927
  import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
909
- import { textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
928
+ import { omitTextColors, textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
910
929
  import { SvgImage } from '../helpers/SvgImage/SvgImage';
911
930
 
912
931
  function sv(px: number): string {
@@ -1119,7 +1138,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
1119
1138
  const { prefix: P } = useScopedStyles();
1120
1139
  const {
1121
1140
  fields = [{ name: 'email', type: 'email', placeholder: 'Your email' }],
1122
- buttonContent,
1141
+ buttonIcon,
1123
1142
  buttonLabel,
1124
1143
  fieldsToShow = 1,
1125
1144
  fontFamily,
@@ -1141,6 +1160,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
1141
1160
  statusLetterSpacing,
1142
1161
  statusWordSpacing,
1143
1162
  statusTextAppearance,
1163
+ iconMaxWidth,
1144
1164
  minHeight,
1145
1165
  corners,
1146
1166
  stroke,
@@ -1162,9 +1182,19 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
1162
1182
  : activeEvent === 'error' ? 'error'
1163
1183
  : status;
1164
1184
  const displayError = activeEvent === 'error' ? errorMessageText : errorMessage;
1165
- const displayValues = activeEvent === 'filled'
1166
- ? Object.fromEntries(visibleFields.map((f) => [f.name, 'Filled']))
1167
- : values;
1185
+ const isFilledPreview = activeEvent === 'filled';
1186
+ const displayValues = useMemo(() => {
1187
+ if (!isFilledPreview) return values;
1188
+
1189
+ let next: Record<string, string> | null = null;
1190
+ for (const f of visibleFields) {
1191
+ const current = values[f.name] ?? '';
1192
+ if (current.trim().length > 0) continue;
1193
+ next = next ?? { ...values };
1194
+ next[f.name] = 'Filled';
1195
+ }
1196
+ return next ?? values;
1197
+ }, [isFilledPreview, values, visibleFields]);
1168
1198
  const validationErrorMessage = displayStatus === 'error'
1169
1199
  ? getFormFieldValidationError(visibleFields, displayValues)
1170
1200
  : null;
@@ -1176,8 +1206,8 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
1176
1206
 
1177
1207
  const submitUrl = metadata?.submitUrl as string | undefined;
1178
1208
  const labelText = buttonLabel ?? '';
1179
- const iconSrc = buttonContent?.icon ?? '';
1180
- const useIconButton = buttonContent?.mode === 'On';
1209
+ const iconSrc = buttonIcon?.icon ?? '';
1210
+ const useIconButton = buttonIcon?.mode === 'On';
1181
1211
  const submitAriaLabel = labelText || 'Submit';
1182
1212
 
1183
1213
  const resolvedInputTextStyle: TextStyles = {
@@ -1222,10 +1252,9 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
1222
1252
  color: settings.successColor ?? '#22c55e',
1223
1253
  };
1224
1254
 
1225
- const inputCss = textStylesToCss(resolvedInputTextStyle, isEditor);
1226
- const buttonCss = textStylesToCss(resolvedButtonTextStyle, isEditor);
1227
- const statusCss = textStylesToCss(resolvedStatusTextStyle, isEditor);
1228
- const { color: _statusMessageColor, ...statusTypographyCss } = statusCss;
1255
+ const inputTypographyCss = omitTextColors(textStylesToCss(resolvedInputTextStyle, isEditor));
1256
+ const buttonTypographyCss = omitTextColors(textStylesToCss(resolvedButtonTextStyle, isEditor));
1257
+ const statusTypographyCss = omitTextColors(textStylesToCss(resolvedStatusTextStyle, isEditor));
1229
1258
  const colorVars = buildColorVars(P, {
1230
1259
  strokeColor: settings.strokeColor,
1231
1260
  inputColor: settings.inputColor,
@@ -1315,7 +1344,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
1315
1344
  required={field.isRequired ?? field.type === 'email'}
1316
1345
  className={\`\${P}-input\`}
1317
1346
  style={{
1318
- ...inputCss,
1347
+ ...inputTypographyCss,
1319
1348
  paddingRight: scalingValue(inputPadding.right, isEditor),
1320
1349
  paddingLeft: scalingValue(inputPadding.left, isEditor),
1321
1350
  paddingTop: scalingValue(inputPadding.top, isEditor),
@@ -1330,7 +1359,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
1330
1359
  className={\`\${P}-submitBtn\`}
1331
1360
  aria-label={submitAriaLabel}
1332
1361
  style={{
1333
- ...buttonCss,
1362
+ ...buttonTypographyCss,
1334
1363
  ...dividerWidthStyle,
1335
1364
  paddingRight: scalingValue(buttonPadding.right, isEditor),
1336
1365
  paddingLeft: scalingValue(buttonPadding.left, isEditor),
@@ -1345,6 +1374,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
1345
1374
  <SvgImage
1346
1375
  url={iconSrc}
1347
1376
  className={\`\${P}-submitBtnIcon\`}
1377
+ style={{ maxWidth: scalingValue(iconMaxWidth ?? 0, isEditor) }}
1348
1378
  fill={\`var(--\${P}-button-text-color)\`}
1349
1379
  hoverFill={\`var(--\${P}-button-text-color)\`}
1350
1380
  />
@@ -1356,7 +1386,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
1356
1386
  {displayStatus === 'success' && (
1357
1387
  <p
1358
1388
  className={\`\${P}-success\`}
1359
- style={{ ...statusCss }}
1389
+ style={{ ...statusTypographyCss }}
1360
1390
  >
1361
1391
  {successMessage}
1362
1392
  </p>
@@ -1394,7 +1424,7 @@ type OnelinerColorKeys =
1394
1424
 
1395
1425
  type StateColorOverrides = Partial<Record<OnelinerColorKeys, string>>;
1396
1426
 
1397
- export type OnelinerFormButtonContent = {
1427
+ export type OnelinerFormButtonIcon = {
1398
1428
  mode?: 'On' | 'Off';
1399
1429
  icon?: string | null;
1400
1430
  };
@@ -1403,7 +1433,8 @@ export type OnelinerFormSettings = {
1403
1433
  fields: FieldConfig[];
1404
1434
  fieldsToShow: number;
1405
1435
  buttonLabel?: string | null;
1406
- buttonContent?: OnelinerFormButtonContent | null;
1436
+ buttonIcon?: OnelinerFormButtonIcon | null;
1437
+ iconMaxWidth?: number;
1407
1438
  fontFamily?: string;
1408
1439
  inputFontSettings?: { fontWeight: number; fontStyle: string };
1409
1440
  inputFontSize?: number;
@@ -1463,4 +1494,4 @@ const COLOR_VAR_MAP: Record<OnelinerColorKeys, string> = {
1463
1494
  };
1464
1495
 
1465
1496
  const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
1466
- `,Fs="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="6" height="9"><path fill="white" transform="translate(0.0625 0.0595703)" d="M0.18305826 0.18305826C0.40836075 -0.042244215 0.76288015 -0.059575174 1.0080621 0.13106538L1.0669417 0.18305826L4.8169417 3.9330583C5.0422444 4.158361 5.0595751 4.5128803 4.8689346 4.7580624L4.8169417 4.8169417L1.0669417 8.5669422C0.82286406 8.8110189 0.42713594 8.8110189 0.18305826 8.5669422C-0.042244215 8.3416395 -0.059575174 7.9871197 0.13106538 7.7419376L0.18305826 7.6830583L3.4906249 4.375L0.18305826 1.0669417C-0.042244215 0.84163928 -0.059575174 0.48711985 0.13106538 0.24193785L0.18305826 0.18305826Z" fill-rule="evenodd"/></svg>'),Rs=[{name:"email",type:"email",placeholder:"Enter your email",label:"Email",isRequired:!0,error:"Please, enter a valid e-mail."},{name:"name",type:"text",placeholder:"Enter your name",label:"Name",isRequired:!1,error:"Please, enter your name."},{name:"company",type:"text",placeholder:"Enter company",label:"Company",isRequired:!1,error:"Please, enter your company name."},{name:"phone",type:"phone",placeholder:"Enter your phone",label:"Phone",isRequired:!1,error:"Please, enter a valid phone number."}],Sn={fontSettings:{type:"object",display:{type:"font-settings-weight",visible:!0},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},Bs=["strokeColor","inputColor","inputTextColor","placeholderColor","buttonColor","buttonTextColor","successColor","errorColor"],Vs={type:"object",version:1,settings:{sizing:"auto manual",properties:{fieldsToShow:{type:"number",scope:"common",title:"Fields",display:{type:"number"},min:1,max:3},fields:{type:"array",scope:"common",display:{type:"fields-group"},items:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["text","phone","email"]},placeholder:{type:"string"},label:{type:"string"},isRequired:{type:"boolean"},error:{type:"string"}}}},buttonLabel:{type:"string",scope:"common",title:"Button Label",display:{type:"text-input"}},buttonContent:{type:"object",scope:"common",title:"Button Icon",display:{type:"button-content-switch"},properties:{mode:{type:"string",enum:["On","Off"]},icon:{type:["string","null"],title:"Icon",display:{type:"settings-image-input"}}}},fontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},inputPadding:{type:"object",scope:"layout",title:"",display:{type:"padding-controls"}},buttonPadding:{type:"object",scope:"layout",title:"",display:{type:"padding-controls"}},minHeight:{type:"number",scope:"layout",title:"min Height",display:{type:"range-control"},min:0,max:200},corners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control"},min:0,max:100},stroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},strokeColor:{type:"string",scope:"common",title:"Stroke",display:{type:"palette-color-picker"}},inputColor:{type:"string",scope:"common",title:"Input Fill",display:{type:"palette-color-picker"}},inputTextColor:{type:"string",scope:"common",title:"Input Label",display:{type:"palette-color-picker"}},placeholderColor:{type:"string",scope:"common",title:"Filler Text",display:{type:"palette-color-picker"}},buttonColor:{type:"string",scope:"common",title:"Button Fill",display:{type:"palette-color-picker"}},buttonTextColor:{type:"string",scope:"common",title:"Button Label",display:{type:"palette-color-picker"}},successColor:{type:"string",scope:"common",title:"Success Message Color",display:{type:"palette-color-picker"}},errorColor:{type:"string",scope:"common",title:"Error Message Color",display:{type:"palette-color-picker"}},successMessage:{type:"string",scope:"common",title:"Success Message",display:{type:"text-input"}},errorMessage:{type:"string",scope:"common",title:"Error Message",display:{type:"text-input"}},stateOverrides:{type:"object",scope:"common"},inputFontSettings:{...Sn.fontSettings,scope:"common",title:"Input"},inputFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},inputLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},inputLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},inputWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},inputTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}},buttonFontSettings:{...Sn.fontSettings,scope:"common",title:"Button"},buttonFontSize:{type:"number",scope:"layout",title:"Button Font Size",display:{type:"font-size"}},buttonLineHeight:{type:"number",scope:"layout",title:"Button Line Height",display:{type:"line-height-input"}},buttonLetterSpacing:{type:"number",scope:"layout",title:"Button Letter Spacing",display:{type:"letter-spacing-input"}},buttonWordSpacing:{type:"number",scope:"layout",title:"Button Word Spacing",display:{type:"word-spacing-input"}},buttonTextAppearance:{type:"object",scope:"layout",title:"Button Text Appearance",display:{type:"text-appearance"}},statusFontSettings:{...Sn.fontSettings,scope:"common",title:"Success/Error"},statusFontSize:{type:"number",scope:"layout",title:"Success/Error Font Size",display:{type:"font-size"}},statusLineHeight:{type:"number",scope:"layout",title:"Success/Error Line Height",display:{type:"line-height-input"}},statusLetterSpacing:{type:"number",scope:"layout",title:"Success/Error Letter Spacing",display:{type:"letter-spacing-input"}},statusWordSpacing:{type:"number",scope:"layout",title:"Success/Error Word Spacing",display:{type:"word-spacing-input"}},statusTextAppearance:{type:"object",scope:"layout",title:"Success/Error Text Appearance",display:{type:"text-appearance"}}},defaults:{fields:Rs,fieldsToShow:1,buttonLabel:"Subscribe",buttonContent:{mode:"Off",icon:Fs},fontFamily:"Arial",strokeColor:"#0A00F8",inputColor:"#ffffff",inputTextColor:"#0A00F8",placeholderColor:"#000000",buttonColor:"#0088D7",buttonTextColor:"#ffffff",errorColor:"#ef4444",successColor:"#22c55e",successMessage:"Thanks for subscribing!",errorMessage:"Please, fill all required fields.",stateOverrides:{hover:{buttonColor:"#33A2F2"}},inputFontSettings:{fontWeight:400,fontStyle:"normal"},inputLetterSpacing:0,inputWordSpacing:0,inputTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},buttonFontSettings:{fontWeight:400,fontStyle:"normal"},buttonLetterSpacing:0,buttonWordSpacing:0,buttonTextAppearance:{textTransform:"uppercase",textDecoration:"none",fontVariant:"normal"},statusFontSettings:{fontWeight:400,fontStyle:"normal"},statusLetterSpacing:0,statusWordSpacing:0,statusTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}},layoutDefaults:{m:{minHeight:.1,stroke:0,corners:0,buttonPadding:{top:.02,right:.04,bottom:.02,left:.04},inputPadding:{top:.01,right:.03,bottom:.01,left:.03},inputFontSize:.043,inputLineHeight:.043,buttonFontSize:.0373,buttonLineHeight:.0373,statusFontSize:.0373,statusLineHeight:.0373},d:{minHeight:.028,stroke:0,corners:0,buttonPadding:{right:.0175,left:.0175,top:.005,bottom:.004},inputPadding:{top:.01,right:.01,bottom:.01,left:.01},inputFontSize:.01,inputLineHeight:.01,buttonFontSize:.009,buttonLineHeight:.01,statusFontSize:.01,statusLineHeight:.01}},displayRules:[{if:{name:"stroke",value:0},then:{name:"properties.strokeColor.display.visible",value:!1}},{if:{name:"buttonContent.mode",value:"On"},then:{name:"properties.buttonFontSettings.display.visible",value:!1}},{if:{name:"buttonContent.mode",value:"On"},then:{name:"properties.buttonFontSize.display.visible",value:!1}},{if:{name:"buttonContent.mode",value:"On"},then:{name:"properties.buttonLineHeight.display.visible",value:!1}},{if:{name:"buttonContent.mode",value:"On"},then:{name:"properties.buttonLetterSpacing.display.visible",value:!1}},{if:{name:"buttonContent.mode",value:"On"},then:{name:"properties.buttonWordSpacing.display.visible",value:!1}},{if:{name:"buttonContent.mode",value:"On"},then:{name:"properties.buttonTextAppearance.display.visible",value:!1}}]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","fieldsToShow"]},{type:"row",items:["minHeight","corners"]},{type:"row",items:[{type:"group",title:"",items:["stroke","buttonContent"]},{type:"switcher",title:"Padding",options:{Input:["inputPadding"],Button:["buttonPadding"]}}]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["fontFamily",{type:"group",title:"",items:["inputFontSettings",{type:"row",items:["inputFontSize","inputLineHeight","inputLetterSpacing","inputWordSpacing"]},"inputTextAppearance"]},{type:"group",title:"",items:["buttonFontSettings",{type:"row",items:["buttonFontSize","buttonLineHeight","buttonLetterSpacing","buttonWordSpacing"]},"buttonTextAppearance"]},{type:"group",title:"",items:["statusFontSettings",{type:"row",items:["statusFontSize","statusLineHeight","statusLetterSpacing","statusWordSpacing"]},"statusTextAppearance"]}]},{id:"fields",icon:"layers",title:"Fields",tooltip:"Fields",layout:["fields","buttonLabel","successMessage","errorMessage"]}],paletteBookmark:{items:[...Bs],panelIds:["general","typeStyle"],stateItems:{default:["strokeColor","placeholderColor","inputColor","buttonTextColor","buttonColor"],hover:["strokeColor","inputColor","buttonTextColor","buttonColor"],focus:["strokeColor","inputTextColor","buttonTextColor","buttonColor"],filled:["strokeColor","inputColor","inputTextColor","buttonTextColor"],success:["successColor"],error:["errorColor"]}},allowedPlugins:["newsletter"],states:["default","hover","focus","filled","success","error"]},Os={element:Ls,id:"oneliner-form",name:"Newsletter Single Line",version:1,preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/onelinerImg.png"},defaultSize:{width:400,height:60},schema:Vs,sourceCode:ks},Ps=[Ca,Aa,ys,Ts,Os];exports.components=Ps;exports.isSchemaV1=mr;
1497
+ `,Fl="data:image/svg+xml,"+encodeURIComponent('<svg width="23px" height="20px" viewBox="0 0 23 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Newsletter" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Tutorials-pop-up-Copy-12" transform="translate(-43, -687)" fill="#FFFFFF" fill-rule="nonzero"><path d="M66,697 C66,697.552285 65.5522847,698 65,698 L44,698 C43.4477153,698 43,697.552285 43,697 C43,696.447715 43.4477153,696 44,696 L65,696 C65.5522847,696 66,696.447715 66,697 Z M55.6689647,687.256706 L65.6689647,696.256706 C66.1103451,696.653948 66.1103451,697.346052 65.6689647,697.743294 L55.6689647,706.743294 C55.2584547,707.112753 54.6261649,707.079475 54.2567059,706.668965 C53.8872468,706.258455 53.9205252,705.626165 54.3310353,705.256706 L63.5051529,697 L54.3310353,688.743294 C53.9205252,688.373835 53.8872468,687.741545 54.2567059,687.331035 C54.6261649,686.920525 55.2584547,686.887247 55.6689647,687.256706 Z" id="Combined-Shape"></path></g></g></svg>'),Rl=[{name:"email",type:"email",placeholder:"Enter your email",label:"Email",isRequired:!0,error:"Please, enter a valid e-mail."},{name:"name",type:"text",placeholder:"Enter your name",label:"Name",isRequired:!1,error:"Please, enter your name."},{name:"company",type:"text",placeholder:"Enter company",label:"Company",isRequired:!1,error:"Please, enter your company name."},{name:"phone",type:"phone",placeholder:"Enter your phone",label:"Phone",isRequired:!1,error:"Please, enter a valid phone number."}],Cn={fontSettings:{type:"object",display:{type:"font-settings-weight",visible:!0},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},Pl=["strokeColor","inputColor","inputTextColor","placeholderColor","buttonColor","buttonTextColor","successColor","errorColor"],Vl={type:"object",version:1,settings:{sizing:"auto manual",properties:{fieldsToShow:{type:"number",scope:"common",title:"Fields",display:{type:"number"},min:1,max:3},fields:{type:"array",scope:"common",display:{type:"fields-group"},items:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["text","phone","email"]},placeholder:{type:"string"},label:{type:"string"},isRequired:{type:"boolean"},error:{type:"string"}}}},buttonLabel:{type:"string",scope:"common",title:"Button Label",display:{type:"text-input"}},buttonIcon:{type:"object",scope:"common",title:"Button Icon",display:{type:"button-icon-switch"},properties:{mode:{type:"string",enum:["On","Off"]},icon:{type:["string","null"],title:"Icon",display:{type:"settings-image-input"}}}},iconMaxWidth:{type:"number",scope:"common",title:"Icon Max Width",display:{type:"full-width-input"},min:0,max:1},fontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},inputPadding:{type:"object",scope:"layout",title:"",display:{type:"padding-controls"}},buttonPadding:{type:"object",scope:"layout",title:"",display:{type:"padding-controls"}},minHeight:{type:"number",scope:"layout",title:"min Height",display:{type:"range-control"},min:0,max:200},corners:{type:"number",scope:"layout",title:"Corners",display:{type:"range-control"},min:0,max:100},stroke:{type:"number",scope:"layout",title:"Stroke",display:{type:"range-control"},min:0,max:20},strokeColor:{type:"string",scope:"common",title:"Stroke",display:{type:"palette-color-picker"}},inputColor:{type:"string",scope:"common",title:"Input Fill",display:{type:"palette-color-picker"}},inputTextColor:{type:"string",scope:"common",title:"Input Label",display:{type:"palette-color-picker"}},placeholderColor:{type:"string",scope:"common",title:"Filler Text",display:{type:"palette-color-picker"}},buttonColor:{type:"string",scope:"common",title:"Button Fill",display:{type:"palette-color-picker"}},buttonTextColor:{type:"string",scope:"common",title:"Button Label",display:{type:"palette-color-picker"}},successColor:{type:"string",scope:"common",title:"Success Message Color",display:{type:"palette-color-picker"}},errorColor:{type:"string",scope:"common",title:"Error Message Color",display:{type:"palette-color-picker"}},successMessage:{type:"string",scope:"common",title:"Success Message",display:{type:"text-input"}},errorMessage:{type:"string",scope:"common",title:"Error Message",display:{type:"text-input"}},stateOverrides:{type:"object",scope:"common"},inputFontSettings:{...Cn.fontSettings,scope:"common",title:"Input"},inputFontSize:{type:"number",scope:"layout",title:"Input Font Size",display:{type:"font-size"}},inputLineHeight:{type:"number",scope:"layout",title:"Input Line Height",display:{type:"line-height-input"}},inputLetterSpacing:{type:"number",scope:"layout",title:"Input Letter Spacing",display:{type:"letter-spacing-input"}},inputWordSpacing:{type:"number",scope:"layout",title:"Input Word Spacing",display:{type:"word-spacing-input"}},inputTextAppearance:{type:"object",scope:"layout",title:"Input Text Appearance",display:{type:"text-appearance"}},buttonFontSettings:{...Cn.fontSettings,scope:"common",title:"Button"},buttonFontSize:{type:"number",scope:"layout",title:"Button Font Size",display:{type:"font-size"}},buttonLineHeight:{type:"number",scope:"layout",title:"Button Line Height",display:{type:"line-height-input"}},buttonLetterSpacing:{type:"number",scope:"layout",title:"Button Letter Spacing",display:{type:"letter-spacing-input"}},buttonWordSpacing:{type:"number",scope:"layout",title:"Button Word Spacing",display:{type:"word-spacing-input"}},buttonTextAppearance:{type:"object",scope:"layout",title:"Button Text Appearance",display:{type:"text-appearance"}},statusFontSettings:{...Cn.fontSettings,scope:"common",title:"Success/Error"},statusFontSize:{type:"number",scope:"layout",title:"Success/Error Font Size",display:{type:"font-size"}},statusLineHeight:{type:"number",scope:"layout",title:"Success/Error Line Height",display:{type:"line-height-input"}},statusLetterSpacing:{type:"number",scope:"layout",title:"Success/Error Letter Spacing",display:{type:"letter-spacing-input"}},statusWordSpacing:{type:"number",scope:"layout",title:"Success/Error Word Spacing",display:{type:"word-spacing-input"}},statusTextAppearance:{type:"object",scope:"layout",title:"Success/Error Text Appearance",display:{type:"text-appearance"}}},defaults:{fields:Rl,fieldsToShow:1,buttonLabel:"Subscribe",buttonIcon:{mode:"Off",icon:Fl},fontFamily:"Arial",strokeColor:"#0A00F8",inputColor:"#ffffff",inputTextColor:"#0A00F8",placeholderColor:"#000000",buttonColor:"#0088D7",buttonTextColor:"#ffffff",errorColor:"#ef4444",successColor:"#22c55e",successMessage:"Thanks for subscribing!",errorMessage:"Please, fill all required fields.",stateOverrides:{hover:{buttonColor:"#33A2F2"}},inputFontSettings:{fontWeight:400,fontStyle:"normal"},inputLetterSpacing:0,inputWordSpacing:0,inputTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},buttonFontSettings:{fontWeight:400,fontStyle:"normal"},buttonLetterSpacing:0,buttonWordSpacing:0,buttonTextAppearance:{textTransform:"uppercase",textDecoration:"none",fontVariant:"normal"},statusFontSettings:{fontWeight:400,fontStyle:"normal"},statusLetterSpacing:0,statusWordSpacing:0,statusTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}},layoutDefaults:{m:{minHeight:.1,iconMaxWidth:.1,stroke:0,corners:0,buttonPadding:{top:.02,right:.04,bottom:.02,left:.04},inputPadding:{top:.01,right:.03,bottom:.01,left:.03},inputFontSize:.043,inputLineHeight:.043,buttonFontSize:.0373,buttonLineHeight:.0373,statusFontSize:.0373,statusLineHeight:.0373},d:{minHeight:.028,iconMaxWidth:.028,stroke:0,corners:0,buttonPadding:{right:.0175,left:.0175,top:.005,bottom:.004},inputPadding:{top:.01,right:.01,bottom:.01,left:.01},inputFontSize:.01,inputLineHeight:.01,buttonFontSize:.009,buttonLineHeight:.01,statusFontSize:.01,statusLineHeight:.01}},displayRules:[{if:{name:"stroke",value:0},then:{name:"properties.strokeColor.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonFontSettings.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonFontSize.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonLineHeight.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonLetterSpacing.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonWordSpacing.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"On"},then:{name:"properties.buttonTextAppearance.display.visible",value:!1}},{if:{name:"buttonIcon.mode",value:"Off"},then:{name:"properties.iconMaxWidth.display.visible",value:!1}}]},panels:[{id:"general",icon:"cursor",title:"General",tooltip:"General Settings",layout:[{type:"row",items:["__componentName__","fieldsToShow"]},{type:"row",items:["minHeight","corners"]},{type:"row",items:[{type:"group",title:"",items:["stroke","buttonIcon"]},{type:"switcher",title:"Padding",options:{Input:["inputPadding"],Button:["buttonPadding"]}}]},"iconMaxWidth"]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["fontFamily",{type:"group",title:"",items:["inputFontSettings",{type:"row",items:["inputFontSize","inputLineHeight","inputLetterSpacing","inputWordSpacing"]},"inputTextAppearance"]},{type:"group",title:"",items:["buttonFontSettings",{type:"row",items:["buttonFontSize","buttonLineHeight","buttonLetterSpacing","buttonWordSpacing"]},"buttonTextAppearance"]},{type:"group",title:"",items:["statusFontSettings",{type:"row",items:["statusFontSize","statusLineHeight","statusLetterSpacing","statusWordSpacing"]},"statusTextAppearance"]}]},{id:"fields",icon:"layers",title:"Fields",tooltip:"Fields",layout:["fields","buttonLabel","successMessage","errorMessage"]}],paletteBookmark:{items:[...Pl],panelIds:["general","typeStyle"],stateItems:{default:["strokeColor","placeholderColor","inputColor","buttonTextColor","buttonColor"],hover:["strokeColor","inputColor","buttonTextColor","buttonColor"],focus:["strokeColor","inputTextColor","buttonTextColor","buttonColor"],filled:["strokeColor","inputColor","inputTextColor","buttonTextColor"],success:["successColor"],error:["errorColor"]}},allowedPlugins:["newsletter"],states:["default","hover","focus","filled","success","error"]},Bl={element:Ll,id:"oneliner-form",name:"Newsletter Single Line",version:1,preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/onelinerImg.jpg"},defaultSize:{width:400,height:60},assetsPaths:{content:[],parameters:[{path:"buttonIcon.icon"}]},schema:Vl,sourceCode:kl},Ol=[Ca,Aa,yl,Tl,Bl];exports.components=Ol;exports.isSchemaV1=mr;