[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.117.12.223: ~ $
(()=>{var e,t={4180:(e,t,a)=>{"use strict";const l=window.kadence.icons;var i=a(1609),n=a.n(i),r=a(2485),o=a.n(r);const s=window.lodash;var c=a(4848),d=Object.defineProperty,u=Object.defineProperties,m=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,k=(e,t,a)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,h=(e,t)=>{for(var a in t||(t={}))p.call(t,a)&&k(e,a,t[a]);if(g)for(var a of g(t))b.call(t,a)&&k(e,a,t[a]);return e},y=(e,t)=>u(e,m(t)),f=(e,t)=>t.filter(e),v=(e,t)=>e.top===t.top?e.left<t.left?-1:1:e.top<t.top?-1:1;function w({stone:e,availableSpots:t,containerSize:a}){let l=(({availableSpots:e,stone:t})=>function(e,t){for(let a=0,l=t.length;a<l;a++){let l=t[a];if(e(l))return l}return null}((e=>((e,t)=>{let a=e.right-e.left>=t.width;if(!e.bottom)return a;let l=e.bottom-e.top>=t.height;return a&&l})(e,t)),e))({availableSpots:t,stone:e}),i={left:l.left,top:l.top},n=(({availableSpots:e,optimalSpot:t,containerSize:a,stone:l})=>{let i={right:a,top:t.top+l.height,left:t.left};t.bottom&&(i.bottom=t.bottom);for(let t=0,a=e.length;t<a;t+=1){let a=e[t];if(i.left<a.left&&i.top<a.top){i.right=a.left;break}}return i})({optimalSpot:l,availableSpots:t.filter((e=>e!==l)),stone:e,containerSize:a}),r=[...t,n],o=(({spots:e,position:t,optimalSpot:a,stone:l})=>e.map(((e,i,n)=>{if(e===a)return(({stone:e,position:t,spotsList:a,optimalSpot:l})=>{let i=h({},l);return i.left=t.left+e.width,(e=>e.right-e.left<5||e.bottom&&e.bottom-e.top<5)(i)||(({spotsList:e,usedSpot:t})=>e.some((e=>e!==t&&t.left===e.left)))({usedSpot:i,spotsList:a})?null:i})({stone:l,position:t,optimalSpot:a,spotsList:n});let r=(({position:e,spot:t,stone:a})=>{if(e.left>t.left&&t.right>=e.left&&e.top+a.height>t.top){if(t.bottom&&t.bottom<e.top)return t;let a=h({},t);return a.right=e.left,a}return null})({position:t,spot:e,stone:l});if(r)return r;let o=(({position:e,stone:t,spot:a})=>{if(e.left+t.width>a.left&&e.top>=a.top){if(a.bottom&&a.bottom<e.top||a.right<e.left)return a;let t=h({},a);return t.bottom=e.top,t}return null})({position:t,stone:l,spot:e});return o||e})))({spots:r,position:i,optimalSpot:l,stone:e});return r=[...f(Boolean,o)],r=(e=>((e,t)=>[...t].sort(e))(v,e))(r),{position:i,availableSpots:r}}var E=e=>({fade:`${e}ms opacity ease`,fadeMove:`\n    ${e}ms opacity ease,\n    ${e}ms top ease,\n    ${e}ms left ease\n  `,move:`\n    ${e}ms top ease,\n    ${e}ms left ease\n  `}),_=({style:e,position:t,transition:a,transitionDuration:l})=>h(h(y(h({},e),{position:"absolute"}),(e=>e?y(h({},e),{opacity:1}):{opacity:0,top:0,left:0})(t)),(({transition:e,transitionDuration:t})=>e?{transition:E(t)[e]}:null)({transition:a,transitionDuration:l})),S=e=>{var t=e,{children:a,style:l,transition:n=!1,transitionDuration:r=500,transitionStep:o=50}=t,s=((e,t)=>{var a={};for(var l in e)p.call(e,l)&&t.indexOf(l)<0&&(a[l]=e[l]);if(null!=e&&g)for(var l of g(e))t.indexOf(l)<0&&b.call(e,l)&&(a[l]=e[l]);return a})(t,["children","style","transition","transitionDuration","transitionStep"]);let d=(0,i.useRef)([]),u=(0,i.useRef)(null),m=(()=>{let[e,t]=(0,i.useState)(),a=(0,i.useRef)(function(e){let t;return function(...a){t&&clearTimeout(t),t=setTimeout((function(){t=null,e.apply(null,a)}),300)}}(t));return(0,i.useEffect)((()=>{let e=()=>{a.current(window.innerWidth)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),e})(),k=(e=>{let[t,a]=(0,i.useState)(null);return(0,i.useEffect)((()=>{let t=new ResizeObserver((e=>{for(let t of e)a(t.contentRect.width)}));return e.current&&t.observe(e.current),()=>{t.disconnect()}}),[e]),t})(u),{positions:f,containerHeight:v}=(({boxesRefs:e,wrapperRef:t,children:a,windowWidth:l,wrapperWidth:n})=>{let[{positions:r,containerHeight:o,stones:s,availableSpots:c},d]=(0,i.useState)({positions:[],containerHeight:null,stones:[],availableSpots:[]});return(0,i.useEffect)((()=>{var a,l;let i=(e=>e.reduce(((e,t)=>{if(!t)return e;let a=t.getBoundingClientRect();return e.push({width:a.width,height:a.height}),e}),[]))(e.current),n=null!=(l=null==(a=t.current)?void 0:a.offsetWidth)?l:0;if(null===n)return;let r=(({stones:e,containerSize:t})=>{if(!e.length)return{positions:[],containerHeight:0,availableSpots:[]};let a=0,l=[],i=[{top:0,left:0,right:t}];for(let n of e){let e=w({availableSpots:i,stone:n,containerSize:t}),r=e.position.top+n.height;a<r&&(a=r),l.push(e.position),i=e.availableSpots}return{availableSpots:i,positions:l,containerHeight:a}})({stones:i,containerSize:n});d(y(h({},r),{stones:i}))}),[a,e,t,l,n]),{positions:r,containerHeight:o,stones:s,availableSpots:c}})({boxesRefs:d,wrapperRef:u,children:a,windowWidth:m,wrapperWidth:k}),E=h({minHeight:null!=v?v:0,position:"relative"},l);return(0,c.jsx)("div",y(h({ref:u,style:E},s),{children:i.Children.map(a,((e,t)=>{if("object"!=typeof e||!e||!("type"in e))return e;let a={style:_({style:e.props.style,position:f[t],transition:n,transitionDuration:r}),ref:e=>d.current[t]=e};return(0,i.cloneElement)(e,h(h({},e.props),a))}))}))};const x=window.kadence.helpers,N=window.kadence.components;function C(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}var $="(prefers-reduced-motion: reduce)";function T(e){e.length=0}function O(e,t,a){return Array.prototype.slice.call(e,t,a)}function L(e){return e.bind.apply(e,[null].concat(O(arguments,1)))}var P=setTimeout,z=function(){};function R(e){return requestAnimationFrame(e)}function D(e,t){return typeof t===e}function B(e){return!M(e)&&D("object",e)}var I=Array.isArray,F=L(D,"function"),U=L(D,"string"),A=L(D,"undefined");function M(e){return null===e}function H(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(e){return!1}}function V(e){return I(e)?e:[e]}function q(e,t){V(e).forEach(t)}function G(e,t){return e.indexOf(t)>-1}function j(e,t){return e.push.apply(e,V(t)),e}function W(e,t,a){e&&q(t,(function(t){t&&e.classList[a?"add":"remove"](t)}))}function K(e,t){W(e,U(t)?t.split(" "):t,!0)}function X(e,t){q(t,e.appendChild.bind(e))}function Z(e,t){q(e,(function(e){var a=(t||e).parentNode;a&&a.insertBefore(e,t)}))}function Y(e,t){return H(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function J(e,t){var a=e?O(e.children):[];return t?a.filter((function(e){return Y(e,t)})):a}function Q(e,t){return t?J(e,t)[0]:e.firstElementChild}var ee=Object.keys;function te(e,t,a){return e&&(a?ee(e).reverse():ee(e)).forEach((function(a){"__proto__"!==a&&t(e[a],a)})),e}function ae(e){return O(arguments,1).forEach((function(t){te(t,(function(a,l){e[l]=t[l]}))})),e}function le(e){return O(arguments,1).forEach((function(t){te(t,(function(t,a){I(t)?e[a]=t.slice():B(t)?e[a]=le({},B(e[a])?e[a]:{},t):e[a]=t}))})),e}function ie(e,t){q(t||ee(e),(function(t){delete e[t]}))}function ne(e,t){q(e,(function(e){q(t,(function(t){e&&e.removeAttribute(t)}))}))}function re(e,t,a){B(t)?te(t,(function(t,a){re(e,a,t)})):q(e,(function(e){M(a)||""===a?ne(e,t):e.setAttribute(t,String(a))}))}function oe(e,t,a){var l=document.createElement(e);return t&&(U(t)?K(l,t):re(l,t)),a&&X(a,l),l}function se(e,t,a){if(A(a))return getComputedStyle(e)[t];M(a)||(e.style[t]=""+a)}function ce(e,t){se(e,"display",t)}function de(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function ue(e,t){return e.getAttribute(t)}function me(e,t){return e&&e.classList.contains(t)}function ge(e){return e.getBoundingClientRect()}function pe(e){q(e,(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))}function be(e){return Q((new DOMParser).parseFromString(e,"text/html").body)}function ke(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function he(e,t){return e&&e.querySelector(t)}function ye(e,t){return t?O(e.querySelectorAll(t)):[]}function fe(e,t){W(e,t,!1)}function ve(e){return e.timeStamp}function we(e){return U(e)?e:e?e+"px":""}var Ee="splide",_e="data-"+Ee;function Se(e,t){if(!e)throw new Error("["+Ee+"] "+(t||""))}var xe=Math.min,Ne=Math.max,Ce=Math.floor,$e=Math.ceil,Te=Math.abs;function Oe(e,t,a){return Te(e-t)<a}function Le(e,t,a,l){var i=xe(t,a),n=Ne(t,a);return l?i<e&&e<n:i<=e&&e<=n}function Pe(e,t,a){var l=xe(t,a),i=Ne(t,a);return xe(Ne(l,e),i)}function ze(e){return+(e>0)-+(e<0)}function Re(e,t){return q(t,(function(t){e=e.replace("%s",""+t)})),e}function De(e){return e<10?"0"+e:""+e}var Be={};function Ie(){var e=[];function t(e,t,a){q(e,(function(e){e&&q(t,(function(t){t.split(" ").forEach((function(t){var l=t.split(".");a(e,l[0],l[1])}))}))}))}return{bind:function(a,l,i,n){t(a,l,(function(t,a,l){var r="addEventListener"in t,o=r?t.removeEventListener.bind(t,a,i,n):t.removeListener.bind(t,i);r?t.addEventListener(a,i,n):t.addListener(i),e.push([t,a,l,i,o])}))},unbind:function(a,l,i){t(a,l,(function(t,a,l){e=e.filter((function(e){return!!(e[0]!==t||e[1]!==a||e[2]!==l||i&&e[3]!==i)||(e[4](),!1)}))}))},dispatch:function(e,t,a){var l,i=!0;return"function"==typeof CustomEvent?l=new CustomEvent(t,{bubbles:i,detail:a}):(l=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,a),e.dispatchEvent(l),l},destroy:function(){e.forEach((function(e){e[4]()})),T(e)}}}var Fe="mounted",Ue="ready",Ae="move",Me="moved",He="click",Ve="active",qe="inactive",Ge="visible",je="hidden",We="refresh",Ke="updated",Xe="resize",Ze="resized",Ye="drag",Je="dragging",Qe="dragged",et="scroll",tt="scrolled",at="destroy",lt="arrows:mounted",it="arrows:updated",nt="pagination:mounted",rt="pagination:updated",ot="navigation:mounted",st="autoplay:play",ct="autoplay:playing",dt="autoplay:pause",ut="lazyload:loaded",mt="ei";function gt(e){var t=e?e.event.bus:document.createDocumentFragment(),a=Ie();return e&&e.event.on(at,a.destroy),ae(a,{bus:t,on:function(e,l){a.bind(t,V(e).join(" "),(function(e){l.apply(l,I(e.detail)?e.detail:[])}))},off:L(a.unbind,t),emit:function(e){a.dispatch(t,e,O(arguments,1))}})}function pt(e,t,a,l){var i,n,r=Date.now,o=0,s=!0,c=0;function d(){if(!s){if(o=e?xe((r()-i)/e,1):1,a&&a(o),o>=1&&(t(),i=r(),l&&++c>=l))return u();n=R(d)}}function u(){s=!0}function m(){n&&cancelAnimationFrame(n),o=0,n=0,s=!0}return{start:function(t){t||m(),i=r()-(t?o*e:0),s=!1,n=R(d)},rewind:function(){i=r(),o=0,a&&a(o)},pause:u,cancel:m,set:function(t){e=t},isPaused:function(){return s}}}var bt="Arrow",kt=bt+"Left",ht=bt+"Right",yt=bt+"Up",ft=bt+"Down",vt="ttb",wt={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[yt,ht],ArrowRight:[ft,kt]},Et="role",_t="tabindex",St="aria-",xt=St+"controls",Nt=St+"current",Ct=St+"selected",$t=St+"label",Tt=St+"labelledby",Ot=St+"hidden",Lt=St+"orientation",Pt=St+"roledescription",zt=St+"live",Rt=St+"busy",Dt=St+"atomic",Bt=[Et,_t,"disabled",xt,Nt,$t,Tt,Ot,Lt,Pt],It=Ee+"__",Ft="is-",Ut=Ee,At=It+"track",Mt=It+"list",Ht=It+"slide",Vt=Ht+"--clone",qt=Ht+"__container",Gt=It+"arrows",jt=It+"arrow",Wt=jt+"--prev",Kt=jt+"--next",Xt=It+"pagination",Zt=Xt+"__page",Yt=It+"progress__bar",Jt=It+"toggle",Qt=It+"sr",ea=Ft+"initialized",ta=Ft+"active",aa=Ft+"prev",la=Ft+"next",ia=Ft+"visible",na=Ft+"loading",ra=Ft+"focus-in",oa=Ft+"overflow",sa=[ta,ia,aa,la,na,ra,oa],ca={slide:Ht,clone:Vt,arrows:Gt,arrow:jt,prev:Wt,next:Kt,pagination:Xt,page:Zt,spinner:It+"spinner"},da="touchstart mousedown",ua="touchmove mousemove",ma="touchend touchcancel mouseup click",ga="slide",pa="loop",ba="fade";var ka=_e+"-interval",ha={passive:!1,capture:!0},ya={Spacebar:" ",Right:ht,Left:kt,Up:yt,Down:ft};function fa(e){return e=U(e)?e:e.key,ya[e]||e}var va="keydown",wa=_e+"-lazy",Ea=wa+"-srcset",_a="["+wa+"], ["+Ea+"]",Sa=[" ","Enter"],xa=Object.freeze({__proto__:null,Media:function(e,t,a){var l=e.state,i=a.breakpoints||{},n=a.reducedMotion||{},r=Ie(),o=[];function s(e){e&&r.destroy()}function c(e,t){var a=matchMedia(t);r.bind(a,"change",d),o.push([e,a])}function d(){var t=l.is(7),i=a.direction,n=o.reduce((function(e,t){return le(e,t[1].matches?t[0]:{})}),{});ie(a),u(n),a.destroy?e.destroy("completely"===a.destroy):t?(s(!0),e.mount()):i!==a.direction&&e.refresh()}function u(t,i,n){le(a,t),i&&le(Object.getPrototypeOf(a),t),!n&&l.is(1)||e.emit(Ke,a)}return{setup:function(){var e="min"===a.mediaQuery;ee(i).sort((function(t,a){return e?+t-+a:+a-+t})).forEach((function(t){c(i[t],"("+(e?"min":"max")+"-width:"+t+"px)")})),c(n,$),d()},destroy:s,reduce:function(e){matchMedia($).matches&&(e?le(a,n):ie(a,ee(n)))},set:u}},Direction:function(e,t,a){return{resolve:function(e,t,l){var i="rtl"!==(l=l||a.direction)||t?l===vt?0:-1:1;return wt[e]&&wt[e][i]||e.replace(/width|left|right/i,(function(e,t){var a=wt[e.toLowerCase()][i]||e;return t>0?a.charAt(0).toUpperCase()+a.slice(1):a}))},orient:function(e){return e*("rtl"===a.direction?1:-1)}}},Elements:function(e,t,a){var l,i,n,r=gt(e),o=r.on,s=r.bind,c=e.root,d=a.i18n,u={},m=[],g=[],p=[];function b(){var e,t,n;l=y("."+At),i=Q(l,"."+Mt),Se(l&&i,"A track/list element is missing."),j(m,J(i,"."+Ht+":not(."+Vt+")")),te({arrows:Gt,pagination:Xt,prev:Wt,next:Kt,bar:Yt,toggle:Jt},(function(e,t){u[t]=y("."+e)})),ae(u,{root:c,track:l,list:i,slides:m}),t=c.id||""+(e=Ee)+De(Be[e]=(Be[e]||0)+1),n=a.role,c.id=t,l.id=l.id||t+"-track",i.id=i.id||t+"-list",!ue(c,Et)&&"SECTION"!==c.tagName&&n&&re(c,Et,n),re(c,Pt,d.carousel),re(i,Et,"presentation"),h()}function k(e){var t=Bt.concat("style");T(m),fe(c,g),fe(l,p),ne([l,i],t),ne(c,e?t:["style",Pt])}function h(){fe(c,g),fe(l,p),g=f(Ut),p=f(At),K(c,g),K(l,p),re(c,$t,a.label),re(c,Tt,a.labelledby)}function y(e){var t=he(c,e);return t&&function(e,t){if(F(e.closest))return e.closest(t);for(var a=e;a&&1===a.nodeType&&!Y(a,t);)a=a.parentElement;return a}(t,"."+Ut)===c?t:void 0}function f(e){return[e+"--"+a.type,e+"--"+a.direction,a.drag&&e+"--draggable",a.isNavigation&&e+"--nav",e===Ut&&ta]}return ae(u,{setup:b,mount:function(){o(We,k),o(We,b),o(Ke,h),s(document,da+" keydown",(function(e){n="keydown"===e.type}),{capture:!0}),s(c,"focusin",(function(){W(c,ra,!!n)}))},destroy:k})},Slides:function(e,t,a){var l=gt(e),i=l.on,n=l.emit,r=l.bind,o=t.Elements,s=o.slides,c=o.list,d=[];function u(){s.forEach((function(e,t){g(e,t,-1)}))}function m(){b((function(e){e.destroy()})),T(d)}function g(t,a,l){var i=function(e,t,a,l){var i,n=gt(e),r=n.on,o=n.emit,s=n.bind,c=e.Components,d=e.root,u=e.options,m=u.isNavigation,g=u.updateOnMove,p=u.i18n,b=u.pagination,k=u.slideFocus,h=c.Direction.resolve,y=ue(l,"style"),f=ue(l,$t),v=a>-1,w=Q(l,"."+qt);function E(){var i=e.splides.map((function(e){var a=e.splide.Components.Slides.getAt(t);return a?a.slide.id:""})).join(" ");re(l,$t,Re(p.slideX,(v?a:t)+1)),re(l,xt,i),re(l,Et,k?"button":""),k&&ne(l,Pt)}function _(){i||S()}function S(){if(!i){var a=e.index;(n=x())!==me(l,ta)&&(W(l,ta,n),re(l,Nt,m&&n||""),o(n?Ve:qe,N)),function(){var t=function(){if(e.is(ba))return x();var t=ge(c.Elements.track),a=ge(l),i=h("left",!0),n=h("right",!0);return Ce(t[i])<=$e(a[i])&&Ce(a[n])<=$e(t[n])}(),a=!t&&(!x()||v);if(e.state.is([4,5])||re(l,Ot,a||""),re(ye(l,u.focusableNodes||""),_t,a?-1:""),k&&re(l,_t,a?-1:0),t!==me(l,ia)&&(W(l,ia,t),o(t?Ge:je,N)),!t&&document.activeElement===l){var i=c.Slides.getAt(e.index);i&&de(i.slide)}}(),W(l,aa,t===a-1),W(l,la,t===a+1)}var n}function x(){var l=e.index;return l===t||u.cloneStatus&&l===a}var N={index:t,slideIndex:a,slide:l,container:w,isClone:v,mount:function(){v||(l.id=d.id+"-slide"+De(t+1),re(l,Et,b?"tabpanel":"group"),re(l,Pt,p.slide),re(l,$t,f||Re(p.slideLabel,[t+1,e.length]))),s(l,"click",L(o,He,N)),s(l,"keydown",L(o,"sk",N)),r([Me,"sh",tt],S),r(ot,E),g&&r(Ae,_)},destroy:function(){i=!0,n.destroy(),fe(l,sa),ne(l,Bt),re(l,"style",y),re(l,$t,f||"")},update:S,style:function(e,t,a){se(a&&w||l,e,t)},isWithin:function(a,l){var i=Te(a-t);return v||!u.rewind&&!e.is(pa)||(i=xe(i,e.length-i)),i<=l}};return N}(e,a,l,t);i.mount(),d.push(i),d.sort((function(e,t){return e.index-t.index}))}function p(e){return e?k((function(e){return!e.isClone})):d}function b(e,t){p(t).forEach(e)}function k(e){return d.filter(F(e)?e:function(t){return U(e)?Y(t.slide,e):G(V(e),t.index)})}return{mount:function(){u(),i(We,m),i(We,u)},destroy:m,update:function(){b((function(e){e.update()}))},register:g,get:p,getIn:function(e){var l=t.Controller,i=l.toIndex(e),n=l.hasFocus()?1:a.perPage;return k((function(e){return Le(e.index,i,i+n-1)}))},getAt:function(e){return k(e)[0]},add:function(e,t){q(e,(function(e){if(U(e)&&(e=be(e)),H(e)){var l=s[t];l?Z(e,l):X(c,e),K(e,a.classes.slide),i=e,o=L(n,Xe),d=ye(i,"img"),(u=d.length)?d.forEach((function(e){r(e,"load error",(function(){--u||o()}))})):o()}var i,o,d,u})),n(We)},remove:function(e){pe(k(e).map((function(e){return e.slide}))),n(We)},forEach:b,filter:k,style:function(e,t,a){b((function(l){l.style(e,t,a)}))},getLength:function(e){return e?s.length:d.length},isEnough:function(){return d.length>a.perPage}}},Layout:function(e,t,a){var l,i,n,r=gt(e),o=r.on,s=r.bind,c=r.emit,d=t.Slides,u=t.Direction.resolve,m=t.Elements,g=m.root,p=m.track,b=m.list,k=d.getAt,h=d.style;function y(){l=a.direction===vt,se(g,"maxWidth",we(a.width)),se(p,u("paddingLeft"),v(!1)),se(p,u("paddingRight"),v(!0)),f(!0)}function f(e){var t,r=ge(g);(e||i.width!==r.width||i.height!==r.height)&&(se(p,"height",(t="",l&&(Se(t=w(),"height or heightRatio is missing."),t="calc("+t+" - "+v(!1)+" - "+v(!0)+")"),t)),h(u("marginRight"),we(a.gap)),h("width",a.autoWidth?null:we(a.fixedWidth)||(l?"":E())),h("height",we(a.fixedHeight)||(l?a.autoHeight?null:E():w()),!0),i=r,c(Ze),n!==(n=$())&&(W(g,oa,n),c("overflow",n)))}function v(e){var t=a.padding,l=u(e?"right":"left");return t&&we(t[l]||(B(t)?0:t))||"0px"}function w(){return we(a.height||ge(b).width*a.heightRatio)}function E(){var e=we(a.gap);return"calc((100%"+(e&&" + "+e)+")/"+(a.perPage||1)+(e&&" - "+e)+")"}function _(){return ge(b)[u("width")]}function S(e,t){var a=k(e||0);return a?ge(a.slide)[u("width")]+(t?0:C()):0}function x(e,t){var a=k(e);if(a){var l=ge(a.slide)[u("right")],i=ge(b)[u("left")];return Te(l-i)+(t?0:C())}return 0}function N(t){return x(e.length-1)-x(0)+S(0,t)}function C(){var e=k(0);return e&&parseFloat(se(e.slide,u("marginRight")))||0}function $(){return e.is(ba)||N(!0)>_()}return{mount:function(){var e,t;y(),s(window,"resize load",(e=L(c,Xe),t=pt(0,e,null,1),function(){t.isPaused()&&t.start()})),o([Ke,We],y),o(Xe,f)},resize:f,listSize:_,slideSize:S,sliderSize:N,totalSize:x,getPadding:function(e){return parseFloat(se(p,u("padding"+(e?"Right":"Left"))))||0},isOverflow:$}},Clones:function(e,t,a){var l,i=gt(e),n=i.on,r=t.Elements,o=t.Slides,s=t.Direction.resolve,c=[];function d(){n(We,u),n([Ke,Xe],g),(l=p())&&(function(t){var l=o.get().slice(),i=l.length;if(i){for(;l.length<t;)j(l,l);j(l.slice(-t),l.slice(0,t)).forEach((function(n,s){var d=s<t,u=function(t,l){var i=t.cloneNode(!0);return K(i,a.classes.clone),i.id=e.root.id+"-clone"+De(l+1),i}(n.slide,s);d?Z(u,l[0].slide):X(r.list,u),j(c,u),o.register(u,s-t+(d?0:i),n.index)}))}}(l),t.Layout.resize(!0))}function u(){m(),d()}function m(){pe(c),T(c),i.destroy()}function g(){var e=p();l!==e&&(l<e||!e)&&i.emit(We)}function p(){var l=a.clones;if(e.is(pa)){if(A(l)){var i=a[s("fixedWidth")]&&t.Layout.slideSize(0);l=i&&$e(ge(r.track)[s("width")]/i)||a[s("autoWidth")]&&e.length||2*a.perPage}}else l=0;return l}return{mount:d,destroy:m}},Move:function(e,t,a){var l,i=gt(e),n=i.on,r=i.emit,o=e.state.set,s=t.Layout,c=s.slideSize,d=s.getPadding,u=s.totalSize,m=s.listSize,g=s.sliderSize,p=t.Direction,b=p.resolve,k=p.orient,h=t.Elements,y=h.list,f=h.track;function v(){t.Controller.isBusy()||(t.Scroll.cancel(),w(e.index),t.Slides.update())}function w(e){E(N(e,!0))}function E(a,l){if(!e.is(ba)){var i=l?a:function(a){if(e.is(pa)){var l=x(a),i=l>t.Controller.getEnd();(l<0||i)&&(a=_(a,i))}return a}(a);se(y,"transform","translate"+b("X")+"("+i+"px)"),a!==i&&r("sh")}}function _(e,t){var a=e-$(t),l=g();return e-k(l*($e(Te(a)/l)||1))*(t?1:-1)}function S(){E(C(),!0),l.cancel()}function x(e){for(var a=t.Slides.get(),l=0,i=1/0,n=0;n<a.length;n++){var r=a[n].index,o=Te(N(r,!0)-e);if(!(o<=i))break;i=o,l=r}return l}function N(t,l){var i=k(u(t-1)-function(e){var t=a.focus;return"center"===t?(m()-c(e,!0))/2:+t*c(e)||0}(t));return l?function(t){return a.trimSpace&&e.is(ga)&&(t=Pe(t,0,k(g(!0)-m()))),t}(i):i}function C(){var e=b("left");return ge(y)[e]-ge(f)[e]+k(d(!1))}function $(e){return N(e?t.Controller.getEnd():0,!!a.trimSpace)}return{mount:function(){l=t.Transition,n([Fe,Ze,Ke,We],v)},move:function(e,t,a,i){var n,s;e!==t&&(n=e>a,s=k(_(C(),n)),n?s>=0:s<=y[b("scrollWidth")]-ge(f)[b("width")])&&(S(),E(_(C(),e>a),!0)),o(4),r(Ae,t,a,e),l.start(t,(function(){o(3),r(Me,t,a,e),i&&i()}))},jump:w,translate:E,shift:_,cancel:S,toIndex:x,toPosition:N,getPosition:C,getLimit:$,exceededLimit:function(e,t){t=A(t)?C():t;var a=!0!==e&&k(t)<k($(!1)),l=!1!==e&&k(t)>k($(!0));return a||l},reposition:v}},Controller:function(e,t,a){var l,i,n,r,o=gt(e),s=o.on,c=o.emit,d=t.Move,u=d.getPosition,m=d.getLimit,g=d.toPosition,p=t.Slides,b=p.isEnough,k=p.getLength,h=a.omitEnd,y=e.is(pa),f=e.is(ga),v=L(N,!1),w=L(N,!0),E=a.start||0,_=E;function S(){i=k(!0),n=a.perMove,r=a.perPage,l=T();var e=Pe(E,0,h?l:i-1);e!==E&&(E=e,d.reposition())}function x(){l!==T()&&c(mt)}function N(e,t){var a=n||(R()?1:r),i=C(E+a*(e?-1:1),E,!(n||R()));return-1===i&&f&&!Oe(u(),m(!e),1)?e?0:l:t?i:$(i)}function C(t,o,s){if(b()||R()){var c=function(t){if(f&&"move"===a.trimSpace&&t!==E)for(var l=u();l===g(t,!0)&&Le(t,0,e.length-1,!a.rewind);)t<E?--t:++t;return t}(t);c!==t&&(o=t,t=c,s=!1),t<0||t>l?t=n||!Le(0,t,o,!0)&&!Le(l,o,t,!0)?y?s?t<0?-(i%r||r):i:t:a.rewind?t<0?l:0:-1:O(P(t)):s&&t!==o&&(t=O(P(o)+(t<o?-1:1)))}else t=-1;return t}function $(e){return y?(e+i)%i||0:e}function T(){for(var e=i-(R()||y&&n?1:r);h&&e-- >0;)if(g(i-1,!0)!==g(e,!0)){e++;break}return Pe(e,0,i-1)}function O(e){return Pe(R()?e:r*e,0,l)}function P(e){return R()?xe(e,l):Ce((e>=l?i-1:e)/r)}function z(e){e!==E&&(_=E,E=e)}function R(){return!A(a.focus)||a.isNavigation}function D(){return e.state.is([4,5])&&!!a.waitForTransition}return{mount:function(){S(),s([Ke,We,mt],S),s(Ze,x)},go:function(e,t,a){if(!D()){var i=function(e){var t=E;if(U(e)){var a=e.match(/([+\-<>])(\d+)?/)||[],i=a[1],n=a[2];"+"===i||"-"===i?t=C(E+ +(""+i+(+n||1)),E):">"===i?t=n?O(+n):v(!0):"<"===i&&(t=w(!0))}else t=y?e:Pe(e,0,l);return t}(e),n=$(i);n>-1&&(t||n!==E)&&(z(n),d.move(i,n,_,a))}},scroll:function(e,a,i,n){t.Scroll.scroll(e,a,i,(function(){var e=$(d.toIndex(u()));z(h?xe(e,l):e),n&&n()}))},getNext:v,getPrev:w,getAdjacent:N,getEnd:T,setIndex:z,getIndex:function(e){return e?_:E},toIndex:O,toPage:P,toDest:function(e){var t=d.toIndex(e);return f?Pe(t,0,l):t},hasFocus:R,isBusy:D}},Arrows:function(e,t,a){var l,i,n=gt(e),r=n.on,o=n.bind,s=n.emit,c=a.classes,d=a.i18n,u=t.Elements,m=t.Controller,g=u.arrows,p=u.track,b=g,k=u.prev,h=u.next,y={};function f(){var e;!(e=a.arrows)||k&&h||(b=g||oe("div",c.arrows),k=_(!0),h=_(!1),l=!0,X(b,[k,h]),!g&&Z(b,p)),k&&h&&(ae(y,{prev:k,next:h}),ce(b,e?"":"none"),K(b,i=Gt+"--"+a.direction),e&&(r([Fe,Me,We,tt,mt],S),o(h,"click",L(E,">")),o(k,"click",L(E,"<")),S(),re([k,h],xt,p.id),s(lt,k,h))),r(Ke,v)}function v(){w(),f()}function w(){n.destroy(),fe(b,i),l?(pe(g?[k,h]:b),k=h=null):ne([k,h],Bt)}function E(e){m.go(e,!0)}function _(e){return be('<button class="'+c.arrow+" "+(e?c.prev:c.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(a.arrowPath||"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")+'" />')}function S(){if(k&&h){var t=e.index,a=m.getPrev(),l=m.getNext(),i=a>-1&&t<a?d.last:d.prev,n=l>-1&&t>l?d.first:d.next;k.disabled=a<0,h.disabled=l<0,re(k,$t,i),re(h,$t,n),s(it,k,h,a,l)}}return{arrows:y,mount:f,destroy:w,update:S}},Autoplay:function(e,t,a){var l,i,n=gt(e),r=n.on,o=n.bind,s=n.emit,c=pt(a.interval,e.go.bind(e,">"),(function(e){var t=u.bar;t&&se(t,"width",100*e+"%"),s(ct,e)})),d=c.isPaused,u=t.Elements,m=t.Elements,g=m.root,p=m.toggle,b=a.autoplay,k="pause"===b;function h(){d()&&t.Slides.isEnough()&&(c.start(!a.resetProgress),i=l=k=!1,v(),s(st))}function y(e){void 0===e&&(e=!0),k=!!e,v(),d()||(c.pause(),s(dt))}function f(){k||(l||i?y(!1):h())}function v(){p&&(W(p,ta,!k),re(p,$t,a.i18n[k?"play":"pause"]))}function w(e){var l=t.Slides.getAt(e);c.set(l&&+ue(l.slide,ka)||a.interval)}return{mount:function(){b&&(a.pauseOnHover&&o(g,"mouseenter mouseleave",(function(e){l="mouseenter"===e.type,f()})),a.pauseOnFocus&&o(g,"focusin focusout",(function(e){i="focusin"===e.type,f()})),p&&o(p,"click",(function(){k?h():y(!0)})),r([Ae,et,We],c.rewind),r(Ae,w),p&&re(p,xt,u.track.id),k||h(),v())},destroy:c.cancel,play:h,pause:y,isPaused:d}},Cover:function(e,t,a){var l=gt(e).on;function i(e){t.Slides.forEach((function(t){var a=Q(t.container||t.slide,"img");a&&a.src&&n(e,a,t)}))}function n(e,t,a){a.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),ce(t,e?"none":"")}return{mount:function(){a.cover&&(l(ut,L(n,!0)),l([Fe,Ke,We],L(i,!0)))},destroy:L(i,!1)}},Scroll:function(e,t,a){var l,i,n=gt(e),r=n.on,o=n.emit,s=e.state.set,c=t.Move,d=c.getPosition,u=c.getLimit,m=c.exceededLimit,g=c.translate,p=e.is(ga),b=1;function k(e,a,n,r,u){var g=d();if(f(),n&&(!p||!m())){var k=t.Layout.sliderSize(),v=ze(e)*k*Ce(Te(e)/k)||0;e=c.toPosition(t.Controller.toDest(e%k))+v}var w=Oe(g,e,1);b=1,a=w?0:a||Ne(Te(e-g)/1.5,800),i=r,l=pt(a,h,L(y,g,e,u),1),s(5),o(et),l.start()}function h(){s(3),i&&i(),o(tt)}function y(e,t,l,n){var r,o,s=d(),c=(e+(t-e)*(r=n,(o=a.easingFunc)?o(r):1-Math.pow(1-r,4))-s)*b;g(s+c),p&&!l&&m()&&(b*=.6,Te(c)<10&&k(u(m(!0)),600,!1,i,!0))}function f(){l&&l.cancel()}function v(){l&&!l.isPaused()&&(f(),h())}return{mount:function(){r(Ae,f),r([Ke,We],v)},destroy:f,scroll:k,cancel:v}},Drag:function(e,t,a){var l,i,n,r,o,s,c,d,u=gt(e),m=u.on,g=u.emit,p=u.bind,b=u.unbind,k=e.state,h=t.Move,y=t.Scroll,f=t.Controller,v=t.Elements.track,w=t.Media.reduce,E=t.Direction,_=E.resolve,S=E.orient,x=h.getPosition,N=h.exceededLimit,C=!1;function $(){var e=a.drag;M(!e),r="free"===e}function T(e){if(s=!1,!c){var t=A(e);l=e.target,i=a.noDrag,Y(l,"."+Zt+", ."+jt)||i&&Y(l,i)||!t&&e.button||(f.isBusy()?ke(e,!0):(d=t?v:window,o=k.is([4,5]),n=null,p(d,ua,O,ha),p(d,ma,L,ha),h.cancel(),y.cancel(),R(e)))}var l,i}function O(t){if(k.is(6)||(k.set(6),g(Ye)),t.cancelable)if(o){h.translate(l+D(t)/(C&&e.is(ga)?5:1));var i=I(t)>200,n=C!==(C=N());(i||n)&&R(t),s=!0,g(Je),ke(t)}else(function(e){return Te(D(e))>Te(D(e,!0))})(t)&&(o=function(e){var t=a.dragMinThreshold,l=B(t),i=l&&t.mouse||0,n=(l?t.touch:+t)||10;return Te(D(e))>(A(e)?n:i)}(t),ke(t))}function L(l){k.is(6)&&(k.set(3),g(Qe)),o&&(function(l){var i=function(t){if(e.is(pa)||!C){var a=I(t);if(a&&a<200)return D(t)/a}return 0}(l),n=function(e){return x()+ze(e)*xe(Te(e)*(a.flickPower||600),r?1/0:t.Layout.listSize()*(a.flickMaxPages||1))}(i),o=a.rewind&&a.rewindByDrag;w(!1),r?f.scroll(n,0,a.snap):e.is(ba)?f.go(S(ze(i))<0?o?"<":"-":o?">":"+"):e.is(ga)&&C&&o?f.go(N(!0)?">":"<"):f.go(f.toDest(n),!0),w(!0)}(l),ke(l)),b(d,ua,O),b(d,ma,L),o=!1}function P(e){!c&&s&&ke(e,!0)}function R(e){n=i,i=e,l=x()}function D(e,t){return U(e,t)-U(F(e),t)}function I(e){return ve(e)-ve(F(e))}function F(e){return i===e&&n||i}function U(e,t){return(A(e)?e.changedTouches[0]:e)["page"+_(t?"Y":"X")]}function A(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function M(e){c=e}return{mount:function(){p(v,ua,z,ha),p(v,ma,z,ha),p(v,da,T,ha),p(v,"click",P,{capture:!0}),p(v,"dragstart",ke),m([Fe,Ke],$)},disable:M,isDragging:function(){return o}}},Keyboard:function(e,t,a){var l,i,n=gt(e),r=n.on,o=n.bind,s=n.unbind,c=e.root,d=t.Direction.resolve;function u(){var e=a.keyboard;e&&(l="global"===e?window:c,o(l,va,p))}function m(){s(l,va)}function g(){var e=i;i=!0,P((function(){i=e}))}function p(t){if(!i){var a=fa(t);a===d(kt)?e.go("<"):a===d(ht)&&e.go(">")}}return{mount:function(){u(),r(Ke,m),r(Ke,u),r(Ae,g)},destroy:m,disable:function(e){i=e}}},LazyLoad:function(e,t,a){var l=gt(e),i=l.on,n=l.off,r=l.bind,o=l.emit,s="sequential"===a.lazyLoad,c=[Me,tt],d=[];function u(){T(d),t.Slides.forEach((function(e){ye(e.slide,_a).forEach((function(t){var l=ue(t,wa),i=ue(t,Ea);if(l!==t.src||i!==t.srcset){var n=a.classes.spinner,r=t.parentElement,o=Q(r,"."+n)||oe("span",n,r);d.push([t,e,o]),t.src||ce(t,"none")}}))})),s?b():(n(c),i(c,m),m())}function m(){(d=d.filter((function(t){var l=a.perPage*((a.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,l)||g(t)}))).length||n(c)}function g(e){var t=e[0];K(e[1].slide,na),r(t,"load error",L(p,e)),re(t,"src",ue(t,wa)),re(t,"srcset",ue(t,Ea)),ne(t,wa),ne(t,Ea)}function p(e,t){var a=e[0],l=e[1];fe(l.slide,na),"error"!==t.type&&(pe(e[2]),ce(a,""),o(ut,a,l),o(Xe)),s&&b()}function b(){d.length&&g(d.shift())}return{mount:function(){a.lazyLoad&&(u(),i(We,u))},destroy:L(T,d),check:m}},Pagination:function(e,t,a){var l,i,n=gt(e),r=n.on,o=n.emit,s=n.bind,c=t.Slides,d=t.Elements,u=t.Controller,m=u.hasFocus,g=u.getIndex,p=u.go,b=t.Direction.resolve,k=d.pagination,h=[];function y(){l&&(pe(k?O(l.children):l),fe(l,i),T(h),l=null),n.destroy()}function f(e){p(">"+e,!0)}function v(e,t){var a=h.length,l=fa(t),i=w(),n=-1;l===b(ht,!1,i)?n=++e%a:l===b(kt,!1,i)?n=(--e+a)%a:"Home"===l?n=0:"End"===l&&(n=a-1);var r=h[n];r&&(de(r.button),p(">"+n),ke(t,!0))}function w(){return a.paginationDirection||a.direction}function E(e){return h[u.toPage(e)]}function _(){var e=E(g(!0)),t=E(g());if(e){var a=e.button;fe(a,ta),ne(a,Ct),re(a,_t,-1)}if(t){var i=t.button;K(i,ta),re(i,Ct,!0),re(i,_t,"")}o(rt,{list:l,items:h},e,t)}return{items:h,mount:function t(){y(),r([Ke,We,mt],t);var n=a.pagination;k&&ce(k,n?"":"none"),n&&(r([Ae,et,tt],_),function(){var t=e.length,n=a.classes,r=a.i18n,o=a.perPage,g=m()?u.getEnd()+1:$e(t/o);K(l=k||oe("ul",n.pagination,d.track.parentElement),i=Xt+"--"+w()),re(l,Et,"tablist"),re(l,$t,r.select),re(l,Lt,w()===vt?"vertical":"");for(var p=0;p<g;p++){var b=oe("li",null,l),y=oe("button",{class:n.page,type:"button"},b),E=c.getIn(p).map((function(e){return e.slide.id})),_=!m()&&o>1?r.pageX:r.slideX;s(y,"click",L(f,p)),a.paginationKeyboard&&s(y,"keydown",L(v,p)),re(b,Et,"presentation"),re(y,Et,"tab"),re(y,xt,E.join(" ")),re(y,$t,Re(_,p+1)),re(y,_t,-1),h.push({li:b,button:y,page:p})}}(),_(),o(nt,{list:l,items:h},E(e.index)))},destroy:y,getAt:E,update:_}},Sync:function(e,t,a){var l=a.isNavigation,i=a.slideFocus,n=[];function r(){var t,a;e.splides.forEach((function(t){t.isParent||(s(e,t.splide),s(t.splide,e))})),l&&((a=(t=gt(e)).on)(He,d),a("sk",u),a([Fe,Ke],c),n.push(t),t.emit(ot,e.splides))}function o(){n.forEach((function(e){e.destroy()})),T(n)}function s(e,t){var a=gt(e);a.on(Ae,(function(e,a,l){t.go(t.is(pa)?l:e)})),n.push(a)}function c(){re(t.Elements.list,Lt,a.direction===vt?"vertical":"")}function d(t){e.go(t.index)}function u(e,t){G(Sa,fa(t))&&(d(e),ke(t))}return{setup:L(t.Media.set,{slideFocus:A(i)?l:i},!0),mount:r,destroy:o,remount:function(){o(),r()}}},Wheel:function(e,t,a){var l=gt(e).bind,i=0;function n(l){if(l.cancelable){var n=l.deltaY,r=n<0,o=ve(l),s=a.wheelMinThreshold||0,c=a.wheelSleep||0;Te(n)>s&&o-i>c&&(e.go(r?"<":">"),i=o),function(l){return!a.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(l)}(r)&&ke(l)}}return{mount:function(){a.wheel&&l(t.Elements.track,"wheel",n,ha)}}},Live:function(e,t,a){var l=gt(e).on,i=t.Elements.track,n=a.live&&!a.isNavigation,r=oe("span",Qt),o=pt(90,L(s,!1));function s(e){re(i,Rt,e),e?(X(i,r),o.start()):(pe(r),o.cancel())}function c(e){n&&re(i,zt,e?"off":"polite")}return{mount:function(){n&&(c(!t.Autoplay.isPaused()),re(i,Dt,!0),r.textContent="…",l(st,L(c,!0)),l(dt,L(c,!1)),l([Me,tt],L(s,!0)))},disable:c,destroy:function(){ne(i,[zt,Dt,Rt]),pe(r)}}}}),Na={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:ca,i18n:{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"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Ca(e,t,a){var l=t.Slides;function i(){l.forEach((function(e){e.style("transform","translateX(-"+100*e.index+"%)")}))}return{mount:function(){gt(e).on([Fe,We],i)},start:function(e,t){l.style("transition","opacity "+a.speed+"ms "+a.easing),P(t)},cancel:z}}function $a(e,t,a){var l,i=t.Move,n=t.Controller,r=t.Scroll,o=t.Elements.list,s=L(se,o,"transition");function c(){s(""),r.cancel()}return{mount:function(){gt(e).bind(o,"transitionend",(function(e){e.target===o&&l&&(c(),l())}))},start:function(t,o){var c=i.toPosition(t,!0),d=i.getPosition(),u=function(t){var l=a.rewindSpeed;if(e.is(ga)&&l){var i=n.getIndex(!0),r=n.getEnd();if(0===i&&t>=r||i>=r&&0===t)return l}return a.speed}(t);Te(c-d)>=1&&u>=1?a.useScroll?r.scroll(c,u,!1,o):(s("transform "+u+"ms "+a.easing),i.translate(c,!0),l=o):(i.jump(t),o())},cancel:c}}var Ta=function(){function e(t,a){var l;this.event=gt(),this.Components={},this.state=(l=1,{set:function(e){l=e},is:function(e){return G(V(e),l)}}),this.splides=[],this._o={},this._E={};var i=U(t)?he(document,t):t;Se(i,i+" is invalid."),this.root=i,a=le({label:ue(i,$t)||"",labelledby:ue(i,Tt)||""},Na,e.defaults,a||{});try{le(a,JSON.parse(ue(i,_e)))}catch(e){Se(!1,"Invalid JSON")}this._o=Object.create(le({},a))}var t,a,l=e.prototype;return l.mount=function(e,t){var a=this,l=this.state,i=this.Components;return Se(l.is([1,7]),"Already mounted!"),l.set(1),this._C=i,this._T=t||this._T||(this.is(ba)?Ca:$a),this._E=e||this._E,te(ae({},xa,this._E,{Transition:this._T}),(function(e,t){var l=e(a,i,a._o);i[t]=l,l.setup&&l.setup()})),te(i,(function(e){e.mount&&e.mount()})),this.emit(Fe),K(this.root,ea),l.set(3),this.emit(Ue),this},l.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},l.go=function(e){return this._C.Controller.go(e),this},l.on=function(e,t){return this.event.on(e,t),this},l.off=function(e){return this.event.off(e),this},l.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(O(arguments,1))),this},l.add=function(e,t){return this._C.Slides.add(e,t),this},l.remove=function(e){return this._C.Slides.remove(e),this},l.is=function(e){return this._o.type===e},l.refresh=function(){return this.emit(We),this},l.destroy=function(e){void 0===e&&(e=!0);var t=this.event,a=this.state;return a.is(1)?gt(this).on(Ue,this.destroy.bind(this,e)):(te(this._C,(function(t){t.destroy&&t.destroy(e)}),!0),t.emit(at),t.destroy(),e&&T(this.splides),a.set(7)),this},t=e,(a=[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&C(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),e}();Ta.defaults={},Ta.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};var Oa=[[Fe,"onMounted"],[Ue,"onReady"],[Ae,"onMove"],[Me,"onMoved"],[He,"onClick"],[Ve,"onActive"],[qe,"onInactive"],[Ge,"onVisible"],[je,"onHidden"],[We,"onRefresh"],[Ke,"onUpdated"],[Xe,"onResize"],[Ze,"onResized"],[Ye,"onDrag"],[Je,"onDragging"],[Qe,"onDragged"],[et,"onScroll"],[tt,"onScrolled"],[at,"onDestroy"],[lt,"onArrowsMounted"],[it,"onArrowsUpdated"],[nt,"onPaginationMounted"],[rt,"onPaginationUpdated"],[ot,"onNavigationMounted"],[st,"onAutoplayPlay"],[ct,"onAutoplayPlaying"],[dt,"onAutoplayPause"],[ut,"onLazyLoadLoaded"]];function La(...e){return e.filter(Boolean).join(" ")}function Pa(e){return null!==e&&"object"==typeof e}function za(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some(((e,a)=>!za(e,t[a])));if(Pa(e)&&Pa(t)){const a=Object.keys(e),l=Object.keys(t);return a.length===l.length&&!a.some((a=>!Object.prototype.hasOwnProperty.call(t,a)||!za(e[a],t[a])))}return e===t}function Ra(e,t){const a=e;return function(e,t){if(e){const a=Object.keys(e);for(let l=0;l<a.length;l++){const i=a[l];if("__proto__"!==i&&!1===t(e[i],i))break}}}(t,((e,t)=>{Array.isArray(e)?a[t]=e.slice():Pa(e)?a[t]=Ra(Pa(a[t])?a[t]:{},e):a[t]=e})),a}var Da=({children:e,className:t,...a})=>n().createElement("div",{className:La("splide__track",t),...a},n().createElement("ul",{className:"splide__list"},e)),Ba=class extends n().Component{constructor(){super(...arguments),this.splideRef=n().createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:t,transition:a}=this.props,{current:l}=this.splideRef;l&&(this.splide=new Ta(l,e),this.bind(this.splide),this.splide.mount(t,a),this.options=Ra({},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&&!za(this.options,e)&&(this.splide.options=e,this.options=Ra({},e));const t=this.getSlides();var a,l;a=this.slides,l=t,(a.length!==l.length||a.some(((e,t)=>e!==l[t])))&&(this.splide.refresh(),this.slides=t)}sync(e){var t;null==(t=this.splide)||t.sync(e)}go(e){var t;null==(t=this.splide)||t.go(e)}getSlides(){var e;if(this.splide){const t=null==(e=this.splide.Components.Elements)?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}bind(e){Oa.forEach((([t,a])=>{const l=this.props[a];"function"==typeof l&&e.on(t,((...t)=>{l(e,...t)}))}))}omit(e,t){return t.forEach((t=>{Object.prototype.hasOwnProperty.call(e,t)&&delete e[t]})),e}render(){const{className:e,tag:t="div",hasTrack:a=!0,children:l,...i}=this.props;return n().createElement(t,{className:La("splide",e),ref:this.splideRef,...this.omit(i,["options",...Oa.map((e=>e[1]))])},a?n().createElement(Da,null,l):l)}},Ia=({children:e,className:t,...a})=>n().createElement("li",{className:La("splide__slide",t),...a},e);const Fa=window.wp.hooks,Ua=window.wp.apiFetch;var Aa=a.n(Ua);const Ma=window.wp.components,Ha=window.wp.blockEditor,Va=window.wp.element,qa=window.wp.i18n,Ga=window.wp.blob,ja=window.wp.data,Wa=window.wp.keycodes,Ka=window.wp.primitives,Xa=(0,Va.createElement)(Ka.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Va.createElement)(Ka.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})),Za=(0,Va.createElement)(Ka.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Va.createElement)(Ka.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),Ya=(0,Va.createElement)(Ka.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Va.createElement)(Ka.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),Ja=function(e){const{onSelect:t,container:a,url:l,width:n,height:r,imageRatio:s,lightUrl:c,thumbUrl:d,customLink:u,linkTarget:m,linkSponsored:g,alt:p,id:b,index:k,linkTo:h,link:y,isFirstItem:f,isLastItem:v,isSelected:w,showCaption:E,caption:_,captionStyle:S,captionStyles:N,onRemove:C,onMoveForward:$,onMoveBackward:T,setAttributes:O,setLinkAttributes:L,"aria-label":P,type:z,thumbnail:R,dynamicSource:D,previewDevice:B}=e,[I,F]=(0,Va.useState)(!1),U=()=>{F(!I)},A=()=>{w||t(k)},M=(0,x.getPreviewSize)(B,void 0!==N?.[0]?.size?.[0]?N[0].size[0]:"",void 0!==N?.[0]?.size?.[1]?N[0].size[1]:"",void 0!==N?.[0]?.size?.[2]?N[0].size[2]:"");let H;switch(h){case"media":H=l;break;case"custom":H=u||l;break;case"attachment":H=y}const V=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":"grid"===z&&"inherit"!==s||("carousel"===z||"slider"===z||"thumbslider"===z)&&s||"fluidcarousel"!==z&&"tiles"!==z&&n&&r,[`kb-gallery-image-ratio-${s}`]:s&&("grid"===z||"carousel"===z||"slider"===z||"thumbslider"===z)}),q=(0,Va.useRef)(),G=(0,i.createElement)("button",{className:V,onClick:()=>{A()},unstableOnFocus:()=>{A()},onKeyDown:()=>{var e;a===document.activeElement&&w&&-1!==[Wa.BACKSPACE,Wa.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),C())},tabIndex:"0","aria-label":P,ref:q,style:{paddingBottom:"masonry"===z&&n&&r||"grid"===z&&"inherit"===s&&n&&r?r/n*100+"%":void 0}},(0,i.createElement)("img",{src:d||l,alt:p,width:n,height:r,"data-id":b,"data-full-image":l,"data-light-image":c,"data-link":y,"data-custom-link":u,"data-custom-link-target":m}),(0,Ga.isBlobURL)(l)&&(0,i.createElement)(Ma.Spinner,null)),j=(0,i.createElement)("div",{className:V,style:{paddingBottom:"masonry"===z&&n&&r||"grid"===z&&"inherit"===s&&n&&r?r/n*100+"%":void 0}},(0,i.createElement)("img",{src:d||l,alt:p,width:n,height:r,"data-id":b,"data-full-image":l,"data-light-image":c,"data-link":y,"data-custom-link":u,"data-custom-link-target":m}),(0,Ga.isBlobURL)(l)&&(0,i.createElement)(Ma.Spinner,null)),W=(0,i.createElement)(Ha.RichText,{tagName:"figcaption",className:"kadence-blocks-gallery-item__caption",placeholder:w?(0,qa.__)("Write caption…","kadence-blocks"):null,value:_,onChange:e=>O({caption:e}),inlineToolbar:!0,keepPlaceholderOnFocus:!0,style:{fontWeight:""!==N[0].weight?N[0].weight:void 0,fontStyle:""!==N[0].style?N[0].style:void 0,fontSize:M?(0,x.getFontSizeOptionOutput)(M,N[0].sizeType):void 0,lineHeight:N[0].lineHeight&&N[0].lineHeight[0]?N[0].lineHeight[0]+N[0].lineType:void 0,textTransform:""!==N[0].textTransform?N[0].textTransform:void 0,letterSpacing:""!==N[0].letterSpacing?N[0].letterSpacing+"px":void 0,fontFamily:""!==N[0].family?N[0].family:""}}),K=(0,i.createElement)("figcaption",{className:"kadence-blocks-gallery-item__caption",style:{fontWeight:""!==N[0].weight?N[0].weight:void 0,fontStyle:""!==N[0].style?N[0].style:void 0,fontSize:void 0!==N[0].size&&""!==N[0].size[0]?N[0].size[0]+N[0].sizeType:void 0,lineHeight:N[0].lineHeight&&N[0].lineHeight[0]?N[0].lineHeight[0]+N[0].lineType:void 0,textTransform:""!==N[0].textTransform?N[0].textTransform:void 0,letterSpacing:""!==N[0].letterSpacing?N[0].letterSpacing+"px":void 0,fontFamily:""!==N[0].family?N[0].family:""}},_),X=D?K:W,Z=o()({"kb-gallery-figure":!0,"is-selected":!R&&w,"is-transient":(0,Ga.isBlobURL)(d||l),"kadence-blocks-gallery-item-has-caption":E&&_,"kadence-blocks-gallery-item-hide-caption":!E,[`kb-has-image-ratio-${s}`]:s&&("grid"===z||"carousel"===z||"slider"===z||"thumbslider"===z)});return(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("figure",{className:Z,style:{maxWidth:"below"===S&&n&&r?n+"px":void 0}},(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===z&&n&&r?n+"px":void 0}},!R&&G,R&&j,!R&&"below"!==S&&E&&X),!R&&(0,i.createElement)(Va.Fragment,null,"below"===S&&E&&X,!D&&(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kadence-blocks-library-gallery-item__move-menu"},(0,i.createElement)(Ma.Button,{icon:Xa,onClick:f?void 0:T,className:"kadence-blocks-gallery-item__move-backward",label:(0,qa.__)("Move Image Backward","kadence-blocks"),"aria-disabled":f,disabled:!w}),(0,i.createElement)(Ma.Button,{icon:Za,onClick:v?void 0:$,className:"kadence-blocks-gallery-item__move-forward",label:(0,qa.__)("Move Image Forward","kadence-blocks"),"aria-disabled":v,disabled:!w})),(0,i.createElement)("div",{className:"kadence-blocks-library-gallery-item__inline-menu"},(0,i.createElement)(Ma.Button,{icon:Ya,onClick:C,className:"kadence-blocks-gallery-item__remove",label:(0,qa.__)("Remove Image","kadence-blocks"),disabled:!w}))))),!R&&"custom"===h&&w&&!D&&(0,i.createElement)("div",{className:"kb-gallery-custom-options"},(0,i.createElement)("div",{className:"block-editor-url-popover__row kb-gallery-custom-link",onClick:()=>U()},(0,i.createElement)(Ha.URLInput,{"aria-label":(0,qa.__)("URL","kadence-blocks"),placeholder:(0,qa.__)("Paste or type URL","kadence-blocks"),unstableOnFocus:()=>U(),onClick:()=>U(),className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",value:u,onChange:e=>L({customLink:e})}),(0,i.createElement)(Ma.Button,{className:"editor-url-popover__settings-toggle block-editor-url-popover__settings-toggle",icon:"arrow-down-alt2",label:(0,qa.__)("Link Settings","kadence-blocks"),onClick:()=>U,"aria-expanded":()=>I})),I&&(0,i.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row editor-url-popover__settings block-editor-url-popover__settings"},(0,i.createElement)(Ma.ToggleControl,{label:(0,qa.__)("Open in New Tab","kadence-blocks"),checked:"_blank"===m,onChange:e=>L({linkTarget:e?"_blank":""})}),(0,i.createElement)(Ma.ToggleControl,{label:(0,qa.__)("Sponsored","kadence-blocks"),checked:"sponsored"===g,onChange:e=>L({linkSponsored:e?"sponsored":""})}))))},Qa=async(e,t,a,l="")=>await Promise.all(e.map((async e=>{let i="",n="",r="",o=await wp.data.select("core").getMedia(e.id,{context:"view"});o||(o=e);const c=(0,s.pick)(o,["id","link"]);if(c.alt=(0,s.get)(e,["alt"]),(0,s.get)(o,["alt_text"])||(0,s.get)(o,["alt"]),c.caption=(0,s.get)(e,["caption"])||(0,s.get)(o,["caption","rendered"])||void 0,c.url=o.source_url||e.url,e.id&&"object"==typeof l&&null!==l)for(const t in l)parseInt(l[t].id)===e.id&&(l[t].customLink&&(i=l[t].customLink),l[t].linkTarget&&(n=l[t].linkTarget),l[t].linkTarget&&(r=l[t].linkSponsored));return c.customLink=e.customLink||i,c.linkTarget=e.linkTarget||n,c.linkSponsored=e.linkSponsored||r,c.thumbUrl=(0,s.get)(o,["media_details","sizes",a,"source_url"])||(0,s.get)(o,["sizes",a,"url"])||o.source_url||e.url,c.lightUrl=(0,s.get)(o,["media_details","sizes",t,"source_url"])||(0,s.get)(o,["sizes",t,"url"])||o.source_url||e.url,c.width=(0,s.get)(o,["media_details","sizes",a,"width"])||(0,s.get)(o,["sizes",a,"width"])||(0,s.get)(o,["media_details","width"])||(0,s.get)(o,["sizes","full","width"])||void 0,c.height=(0,s.get)(o,["media_details","sizes",a,"height"])||(0,s.get)(o,["sizes",a,"height"])||(0,s.get)(o,["media_details","height"])||(0,s.get)(o,["sizes","full","height"])||void 0,c}))),el=e=>{let t=[];return 1===e?t=[1,1,1,1,1,1]:2===e?t=[2,2,2,2,1,1]:3===e?t=[3,3,3,2,1,1]:4===e?t=[4,4,4,3,2,2]:5===e?t=[5,5,5,4,4,3]:6===e?t=[6,6,6,4,4,3]:7===e?t=[7,7,7,5,5,4]:8===e&&(t=[8,4,4,6,4,4]),t},tl=(0,Va.createElement)(Ka.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Va.createElement)(Ka.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})),al=(0,Va.createElement)(Ka.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Va.createElement)(Ka.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})),ll=(0,Va.createElement)(Ka.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Va.createElement)(Ka.Path,{d:"M2 12C2 6.44444 6.44444 2 12 2C17.5556 2 22 6.44444 22 12C22 17.5556 17.5556 22 12 22C6.44444 22 2 17.5556 2 12ZM13 11V7H11V11H7V13H11V17H13V13H17V11H13Z"})),il=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"title":"Advanced Gallery","name":"kadence/advancedgallery","category":"kadence-blocks","textdomain":"kadence-blocks","attributes":{"uniqueID":{"type":"string"},"columns":{"type":"array","default":[3,3,3,2,1,1]},"columnControl":{"type":"string","default":"linked"},"images":{"type":"array","default":[],"source":"query","selector":".kadence-blocks-gallery-item","query":{"url":{"source":"attribute","selector":"img","attribute":"data-full-image"},"thumbUrl":{"source":"attribute","selector":"img","attribute":"src"},"lightUrl":{"source":"attribute","selector":"img","attribute":"data-light-image"},"link":{"source":"attribute","selector":"img","attribute":"data-link"},"customLink":{"source":"attribute","selector":"img","attribute":"data-custom-link"},"linkTarget":{"source":"attribute","selector":"img","attribute":"data-custom-link-target"},"width":{"source":"attribute","selector":"img","attribute":"width"},"height":{"source":"attribute","selector":"img","attribute":"height"},"alt":{"source":"attribute","selector":"img","attribute":"alt","default":""},"id":{"source":"attribute","selector":"img","attribute":"data-id"},"caption":{"type":"string","source":"html","selector":".kadence-blocks-gallery-item__caption"},"linkSponsored":{"source":"attribute","selector":"img","attribute":"data-sponsored"}},"__experimentalRole":"content"},"lightSize":{"type":"string","default":"full"},"thumbSize":{"type":"string","default":"large"},"ids":{"type":"array"},"type":{"type":"string","default":"masonry"},"imageRatio":{"type":"string","default":"land32"},"linkTo":{"type":"string","default":"none"},"showCaption":{"type":"boolean","default":false},"hoverStyle":{"type":"string","default":"dark"},"captionStyle":{"type":"string","default":"bottom-hover"},"captionStyles":{"type":"array","default":[{"size":["","",""],"sizeType":"px","lineHeight":["","",""],"lineType":"px","letterSpacing":"","textTransform":"","family":"","google":false,"style":"","weight":"","variant":"","subset":"","loadGoogle":true,"color":"","background":"#000000","backgroundOpacity":0.5}]},"captionAlignment":{"type":"string","default":"center"},"gutter":{"type":"array","default":[10,"",""]},"gap":{"type":"array","default":["","",""]},"gutterUnit":{"type":"string","default":"px"},"carouselHeight":{"type":"array","default":[300,"",""]},"imageRadius":{"type":"array","default":[0,0,0,0]},"tabletImageRadius":{"type":"array","default":["","","",""]},"mobileImageRadius":{"type":"array","default":["","","",""]},"imageRadiusUnit":{"type":"string","default":"px"},"autoPlay":{"type":"boolean","default":false},"autoSpeed":{"type":"number","default":7000},"transSpeed":{"type":"number","default":400},"slidesScroll":{"type":"string","default":"1"},"slideType":{"type":"string","default":"fade"},"arrowStyle":{"type":"string","default":"whiteondark"},"dotStyle":{"type":"string","default":"dark"},"displayShadow":{"type":"boolean","default":false},"shadow":{"type":"array","default":[{"color":"#000000","opacity":0.2,"spread":0,"blur":14,"hOffset":4,"vOffset":2}]},"shadowHover":{"type":"array","default":[{"color":"#000000","opacity":0.2,"spread":0,"blur":14,"hOffset":4,"vOffset":2}]},"imageFilter":{"type":"string","default":"none"},"lightbox":{"type":"string","default":"none"},"lightboxCaption":{"type":"boolean","default":true},"margin":{"type":"array","default":[{"desk":["","","",""],"tablet":["","","",""],"mobile":["","","",""]}]},"marginUnit":{"type":"string","default":"px"},"carouselAlign":{"type":"boolean","default":true},"thumbnailRatio":{"type":"string","default":"land32"},"thumbnailColumns":{"type":"array","default":[4,4,4,4,4,4]},"thumbnailControl":{"type":"string","default":"linked"},"mobileForceHover":{"type":"boolean","default":false},"imagesDynamic":{"type":"array","default":[]},"inQueryBlock":{"type":"boolean","default":false},"lazyLoad":{"type":"boolean","default":false},"imagesData":{"type":"array","default":[{"url":"","thumbUrl":"","lightUrl":"","link":"","customLink":"","linkTarget":"","width":"","height":"","alt":"","id":"","caption":"","linkSponsored":""}]},"padding":{"type":"array","default":["","","",""]},"tabletPadding":{"type":"array","default":["","","",""]},"mobilePadding":{"type":"array","default":["","","",""]},"paddingUnit":{"type":"string","default":"px"},"anchor":{"type":"string"},"kbVersion":{"type":"number","default":""}},"supports":{"anchor":true,"align":["wide","full","left","right"],"html":false,"ktdynamic":true,"kbMetadata":true},"usesContext":["postId","queryId","kadence/dynamicSource","kadence/repeaterRowData","kadence/repeaterRow"]}'),nl=[{value:"attachment",label:(0,qa.__)("Attachment Page","kadence-blocks")},{value:"media",label:(0,qa.__)("Media File","kadence-blocks")},{value:"custom",label:(0,qa.__)("Custom","kadence-blocks")},{value:"none",label:(0,qa.__)("None","kadence-blocks")}],rl=[{value:"masonry",label:(0,qa.__)("Masonry","kadence-blocks"),icon:l.galleryMasonryIcon,isDisabled:!1},{value:"grid",label:(0,qa.__)("Grid","kadence-blocks"),icon:l.galleryGridIcon,isDisabled:!1},{value:"carousel",label:(0,qa.__)("Carousel","kadence-blocks"),icon:l.galleryCarouselIcon,isDisabled:!1},{value:"fluidcarousel",label:(0,qa.__)("Fluid Carousel","kadence-blocks"),icon:l.galleryFluidIcon,isDisabled:!1},{value:"slider",label:(0,qa.__)("Slider","kadence-blocks"),icon:l.gallerySliderIcon,isDisabled:!1},{value:"thumbslider",label:(0,qa.__)("Thumbnail Slider (Pro addon)","kadence-blocks"),icon:l.galleryThumbSliderIcon,isDisabled:!0},{value:"tiles",label:(0,qa.__)("Tiles (Pro addon)","kadence-blocks"),icon:l.galleryTilesIcon,isDisabled:!0}],ol=["image"],sl=[{attributes:{uniqueID:{type:"string"},columns:{type:"array",default:[3,3,3,2,1,1]},columnControl:{type:"string",default:"linked"},images:{type:"array",default:[],source:"query",selector:".kadence-blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"data-full-image"},thumbUrl:{source:"attribute",selector:"img",attribute:"src"},lightUrl:{source:"attribute",selector:"img",attribute:"data-light-image"},link:{source:"attribute",selector:"img",attribute:"data-link"},customLink:{source:"attribute",selector:"img",attribute:"data-custom-link"},linkTarget:{source:"attribute",selector:"img",attribute:"data-custom-link-target"},width:{source:"attribute",selector:"img",attribute:"width"},height:{source:"attribute",selector:"img",attribute:"height"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".kadence-blocks-gallery-item__caption"}}},lightSize:{type:"string",default:"full"},thumbSize:{type:"string",default:"large"},ids:{type:"array"},type:{type:"string",default:"masonry"},imageRatio:{type:"string",default:"land32"},linkTo:{type:"string",default:"none"},showCaption:{type:"boolean",default:!1},hoverStyle:{type:"string",default:"dark"},captionStyle:{type:"string",default:"bottom-hover"},captionStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,color:"",background:"#000000",backgroundOpacity:.5}]},captionAlignment:{type:"string",default:"center"},gutter:{type:"array",default:[10,"",""]},carouselHeight:{type:"array",default:[300,"",""]},imageRadius:{type:"array",default:[0,0,0,0]},autoPlay:{type:"boolean",default:!1},autoSpeed:{type:"number",default:7e3},transSpeed:{type:"number",default:400},slidesScroll:{type:"string",default:"1"},arrowStyle:{type:"string",default:"whiteondark"},dotStyle:{type:"string",default:"dark"},displayShadow:{type:"boolean",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},imageFilter:{type:"string",default:"none"},lightbox:{type:"string",default:"none"},lightboxCaption:{type:"boolean",default:!0},margin:{type:"array",default:[{desk:["","","",""],tablet:["","","",""],mobile:["","","",""]}]},marginUnit:{type:"string",default:"px"},carouselAlign:{type:"boolean",default:!0},thumbnailRatio:{type:"string",default:"land32"},thumbnailColumns:{type:"array",default:[4,4,4,4,4,4]},thumbnailControl:{type:"string",default:"linked"},mobileForceHover:{type:"boolean",default:!1}},save:({attributes:e})=>{const{uniqueID:t,images:a,columns:l,type:n,linkTo:r,showCaption:s,captionStyle:c,imageRatio:d,imageFilter:u,lightbox:m,lightboxCaption:g,dotStyle:p,transSpeed:b,slidesScroll:k,autoPlay:h,arrowStyle:y,autoSpeed:f,carouselAlign:v,thumbnailColumns:w,thumbnailRatio:E,mobileForceHover:_}=e,S=o()({"kb-gallery-ul":!0,[`kb-gallery-type-${n}`]:n,"kb-masonry-init":"masonry"===n,"kb-mobile-force-hover":_,[`kb-gallery-id-${t}`]:t,[`kb-gallery-caption-style-${c}`]:c,[`kb-gallery-filter-${u}`]:u,"kb-gallery-magnific-init":"media"===r&&"magnific"===m}),x=e=>{let t;switch(r){case"media":t=e.lightUrl||e.url;break;case"custom":t=e.customLink?e.customLink:"";break;case"attachment":t=e.link}const a=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&d||"fluidcarousel"!==n&&"tiles"!==n&&e.width&&e.height,[`kb-gallery-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),l=(0,i.createElement)("div",{className:a,style:{paddingBottom:"grid"!==n&&"carousel"!==n&&"fluidcarousel"!==n&&"tiles"!==n&&"slider"!==n&&"thumbslider"!==n&&e.width&&e.height||"grid"===n&&"inherit"===d&&e.width&&e.height?e.height/e.width*100+"%":void 0}},(0,i.createElement)("img",{src:e.thumbUrl||e.url,width:e.width,height:e.height,alt:e.alt,"data-full-image":e.url,"data-light-image":e.lightUrl,"data-id":e.id,"data-link":e.link,"data-custom-link":e.customLink,"data-custom-link-target":e.linkTarget,className:`${e.id?`wp-image-${e.id}`:void 0}${"carousel"===n||"fluidcarousel"===n||"tiles"===n||"slider"===n||"thumbslider"===n?" skip-lazy":void 0}`})),u=o()({"kb-gallery-figure":!0,"kb-gallery-item-has-link":t,"kadence-blocks-gallery-item-has-caption":s&&e.caption&&e.caption.length>0,"kadence-blocks-gallery-item-hide-caption":!s,[`kb-has-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),g=t||"below"!==c?"div":"figcaption",p=(0,i.createElement)(Ha.RichText.Content,{className:"kadence-blocks-gallery-item__caption",tagName:g,value:e.caption}),b="carousel"===n||"fluidcarousel"===n||"slider"===n||"thumbslider"===n?"div":"li",k=(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===n&&e.width&&e.height||("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&"inherit"===d&&e.width&&e.height?e.width+"px":void 0}},l,e.caption&&e.caption.length>0&&"below"!==c&&p),e.caption&&e.caption.length>0&&"below"===c&&p);let h;return"custom"===r&&"_blank"===e.linkTarget&&(h="noopener noreferrer"),(0,i.createElement)(b,{key:e.id||e.url,className:"kadence-blocks-gallery-item"},(0,i.createElement)("div",{className:"kadence-blocks-gallery-item-inner"},(0,i.createElement)("figure",{className:u},t?(0,i.createElement)("a",{href:t,className:"kb-gallery-item-link",target:"custom"===r&&"_blank"===e.linkTarget||"media"===r&&"new_tab"===m?"_blank":void 0,rel:h||void 0},k):k)))};return(0,i.createElement)("div",{className:`kb-gallery-wrap-id-${t}`},"carousel"===n&&(0,i.createElement)("div",{className:S,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-gallery-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-md":l[2],"data-columns-sm":l[3],"data-columns-xs":l[4],"data-columns-ss":l[5],"data-slider-anim-speed":b,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},x(e))))))),"fluidcarousel"===n&&(0,i.createElement)("div",{className:S,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-fluid-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}${!1===v?" kb-carousel-mode-align-left":""}`,"data-slider-anim-speed":b,"data-slider-type":"fluidcarousel","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f,"data-slider-center-mode":!1===v?"false":void 0},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},x(e))))))),"slider"===n&&(0,i.createElement)("div",{className:S,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-slider kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-slider-anim-speed":b,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-slide-item",key:t},x(e))))))),"thumbslider"===n&&(0,i.createElement)("div",{className:S,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-none"},(0,i.createElement)("div",{id:`kb-slider-${t}`,className:`kt-blocks-carousel-init kb-gallery-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-none`,"data-columns-xxl":w[0],"data-columns-xl":w[1],"data-columns-md":w[2],"data-columns-sm":w[3],"data-columns-xs":w[4],"data-columns-ss":w[5],"data-slider-anim-speed":b,"data-slider-type":"thumbnail","data-slider-nav":`kb-thumb-slider-${t}`,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":!1,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},x(e))))),(0,i.createElement)("div",{id:`kb-thumb-slider-${t}`,className:`kb-gallery-carousel kb-gallery-slider-thumbnails kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-none`,"data-slider-anim-speed":b,"data-slider-type":"thumbnail","data-slider-nav":`kb-slider-${t}`,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":!1,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},(e=>{const t=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&d||"fluidcarousel"!==n&&"tiles"!==n&&e.width&&e.height,[`kb-gallery-image-ratio-${E}`]:E&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),a=(0,i.createElement)("div",{className:t,style:{paddingBottom:"grid"!==n&&"carousel"!==n&&"fluidcarousel"!==n&&"tiles"!==n&&"slider"!==n&&"thumbslider"!==n&&e.width&&e.height||"grid"===n&&"inherit"===E&&e.width&&e.height?e.height/e.width*100+"%":void 0}},(0,i.createElement)("img",{src:e.thumbUrl||e.url,width:e.width,height:e.height,alt:e.alt,"data-full-image":e.url,"data-light-image":e.lightUrl,"data-id":e.id,"data-link":e.link,"data-custom-link":e.customLink,"data-custom-link-target":e.linkTarget,className:e.id?`wp-image-${e.id}`:null})),l=o()({"kb-gallery-thumb-figure":!0,[`kb-has-image-ratio-${E}`]:E&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),r=(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===n&&e.width&&e.height||("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&"inherit"===E&&e.width&&e.height?e.width+"px":void 0}},a));return(0,i.createElement)("li",{key:e.id||e.url,className:"kadence-blocks-gallery-thumb-item"},(0,i.createElement)("div",{className:"kadence-blocks-gallery-thumb-item-inner"},(0,i.createElement)("figure",{className:l},r)))})(e))))))),"tiles"===n&&(0,i.createElement)("ul",{className:S,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},a.map((e=>x(e)))),("masonry"===n||"grid"===n)&&(0,i.createElement)("ul",{className:S,"data-item-selector":".kadence-blocks-gallery-item","data-image-filter":u,"data-lightbox-caption":!!g&&"true","data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-lg":l[2],"data-columns-md":l[3],"data-columns-sm":l[4],"data-columns-xs":l[5]},a.map((e=>x(e)))))}},{attributes:{uniqueID:{type:"string"},columns:{type:"array",default:[3,3,3,2,1,1]},columnControl:{type:"string",default:"linked"},images:{type:"array",default:[],source:"query",selector:".kadence-blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"data-full-image"},thumbUrl:{source:"attribute",selector:"img",attribute:"src"},lightUrl:{source:"attribute",selector:"img",attribute:"data-light-image"},link:{source:"attribute",selector:"img",attribute:"data-link"},customLink:{source:"attribute",selector:"img",attribute:"data-custom-link"},linkTarget:{source:"attribute",selector:"img",attribute:"data-custom-link-target"},width:{source:"attribute",selector:"img",attribute:"width"},height:{source:"attribute",selector:"img",attribute:"height"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},lightSize:{type:"string",default:"full"},thumbSize:{type:"string",default:"large"},ids:{type:"array"},type:{type:"string",default:"masonry"},imageRatio:{type:"string",default:"land32"},linkTo:{type:"string",default:"none"},showCaption:{type:"boolean",default:!1},hoverStyle:{type:"string",default:"dark"},captionStyle:{type:"string",default:"bottom-hover"},captionStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,color:"",background:"#000000",backgroundOpacity:.5}]},captionAlignment:{type:"string",default:"center"},gutter:{type:"array",default:[10,"",""]},carouselHeight:{type:"array",default:[300,"",""]},imageRadius:{type:"array",default:[0,0,0,0]},autoPlay:{type:"boolean",default:!1},autoSpeed:{type:"number",default:7e3},transSpeed:{type:"number",default:400},slidesScroll:{type:"string",default:"1"},arrowStyle:{type:"string",default:"whiteondark"},dotStyle:{type:"string",default:"dark"},displayShadow:{type:"boolean",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},imageFilter:{type:"string",default:"none"},lightbox:{type:"string",default:"none"},lightboxCaption:{type:"boolean",default:!0},margin:{type:"array",default:[{desk:["","","",""],tablet:["","","",""],mobile:["","","",""]}]},marginUnit:{type:"string",default:"px"},carouselAlign:{type:"boolean",default:!0},thumbnailRatio:{type:"string",default:"land32"},thumbnailColumns:{type:"array",default:[4,4,4,4,4,4]},thumbnailControl:{type:"string",default:"linked"},mobileForceHover:{type:"boolean",default:!1}},save:({attributes:e})=>{const{uniqueID:t,images:a,columns:l,type:n,linkTo:r,showCaption:s,captionStyle:c,imageRatio:d,imageFilter:u,lightbox:m,lightboxCaption:g,dotStyle:p,transSpeed:b,slidesScroll:k,autoPlay:h,arrowStyle:y,autoSpeed:f,carouselAlign:v,thumbnailColumns:w,thumbnailRatio:E,mobileForceHover:_}=e,S=o()({"kb-gallery-ul":!0,[`kb-gallery-type-${n}`]:n,"kb-masonry-init":"masonry"===n,"kb-mobile-force-hover":_,[`kb-gallery-id-${t}`]:t,[`kb-gallery-caption-style-${c}`]:c,[`kb-gallery-filter-${u}`]:u,"kb-gallery-magnific-init":"media"===r&&"magnific"===m}),x=e=>{let t;switch(r){case"media":t=e.lightUrl||e.url;break;case"custom":t=e.customLink?e.customLink:"";break;case"attachment":t=e.link}const a=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&d||"fluidcarousel"!==n&&"tiles"!==n&&e.width&&e.height,[`kb-gallery-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),l=(0,i.createElement)("div",{className:a,style:{paddingBottom:"grid"!==n&&"carousel"!==n&&"fluidcarousel"!==n&&"tiles"!==n&&"slider"!==n&&"thumbslider"!==n&&e.width&&e.height||"grid"===n&&"inherit"===d&&e.width&&e.height?e.height/e.width*100+"%":void 0}},(0,i.createElement)("img",{src:e.thumbUrl||e.url,width:e.width,height:e.height,alt:e.alt,"data-full-image":e.url,"data-light-image":e.lightUrl,"data-id":e.id,"data-link":e.link,"data-custom-link":e.customLink,"data-custom-link-target":e.linkTarget,className:`${e.id?`wp-image-${e.id}`:void 0}${"carousel"===n||"fluidcarousel"===n||"tiles"===n||"slider"===n||"thumbslider"===n?" skip-lazy":void 0}`})),u=o()({"kb-gallery-figure":!0,"kb-gallery-item-has-link":t,"kadence-blocks-gallery-item-has-caption":s&&e.caption&&e.caption.length>0,"kadence-blocks-gallery-item-hide-caption":!s,[`kb-has-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),g=(0,i.createElement)(Ha.RichText.Content,{className:"kadence-blocks-gallery-item__caption",tagName:"figcaption",value:e.caption}),p=(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===n&&e.width&&e.height||("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&"inherit"===d&&e.width&&e.height?e.width+"px":void 0}},l,e.caption&&e.caption.length>0&&"below"!==c&&g),e.caption&&e.caption.length>0&&"below"===c&&g);return(0,i.createElement)("li",{key:e.id||e.url,className:"kadence-blocks-gallery-item"},(0,i.createElement)("div",{className:"kadence-blocks-gallery-item-inner"},(0,i.createElement)("figure",{className:u},t?(0,i.createElement)("a",{href:t,className:"kb-gallery-item-link",target:"custom"===r&&"_blank"===e.linkTarget||"media"===r&&"new_tab"===m?"_blank":void 0,rel:"custom"===r&&"_blank"===e.linkTarget?"noopener noreferrer":void 0},p):p)))};return(0,i.createElement)("div",{className:`kb-gallery-wrap-id-${t}`},"carousel"===n&&(0,i.createElement)("div",{className:S,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-gallery-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-md":l[2],"data-columns-sm":l[3],"data-columns-xs":l[4],"data-columns-ss":l[5],"data-slider-anim-speed":b,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},x(e))))))),"fluidcarousel"===n&&(0,i.createElement)("div",{className:S,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-fluid-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}${!1===v?" kb-carousel-mode-align-left":""}`,"data-slider-anim-speed":b,"data-slider-type":"fluidcarousel","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f,"data-slider-center-mode":!1===v?"false":void 0},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},x(e))))))),"slider"===n&&(0,i.createElement)("div",{className:S,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-slider kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-slider-anim-speed":b,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-slide-item",key:t},x(e))))))),"thumbslider"===n&&(0,i.createElement)("div",{className:S,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-none"},(0,i.createElement)("div",{id:`kb-slider-${t}`,className:`kt-blocks-carousel-init kb-gallery-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-none`,"data-columns-xxl":w[0],"data-columns-xl":w[1],"data-columns-md":w[2],"data-columns-sm":w[3],"data-columns-xs":w[4],"data-columns-ss":w[5],"data-slider-anim-speed":b,"data-slider-type":"thumbnail","data-slider-nav":`kb-thumb-slider-${t}`,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":!1,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},x(e))))),(0,i.createElement)("div",{id:`kb-thumb-slider-${t}`,className:`kb-gallery-carousel kb-gallery-slider-thumbnails kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-none`,"data-slider-anim-speed":b,"data-slider-type":"thumbnail","data-slider-nav":`kb-slider-${t}`,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":!1,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},(e=>{const t=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&d||"fluidcarousel"!==n&&"tiles"!==n&&e.width&&e.height,[`kb-gallery-image-ratio-${E}`]:E&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),a=(0,i.createElement)("div",{className:t,style:{paddingBottom:"grid"!==n&&"carousel"!==n&&"fluidcarousel"!==n&&"tiles"!==n&&"slider"!==n&&"thumbslider"!==n&&e.width&&e.height||"grid"===n&&"inherit"===E&&e.width&&e.height?e.height/e.width*100+"%":void 0}},(0,i.createElement)("img",{src:e.thumbUrl||e.url,width:e.width,height:e.height,alt:e.alt,"data-full-image":e.url,"data-light-image":e.lightUrl,"data-id":e.id,"data-link":e.link,"data-custom-link":e.customLink,"data-custom-link-target":e.linkTarget,className:e.id?`wp-image-${e.id}`:null})),l=o()({"kb-gallery-thumb-figure":!0,[`kb-has-image-ratio-${E}`]:E&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),r=(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===n&&e.width&&e.height||("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&"inherit"===E&&e.width&&e.height?e.width+"px":void 0}},a));return(0,i.createElement)("li",{key:e.id||e.url,className:"kadence-blocks-gallery-thumb-item"},(0,i.createElement)("div",{className:"kadence-blocks-gallery-thumb-item-inner"},(0,i.createElement)("figure",{className:l},r)))})(e))))))),"tiles"===n&&(0,i.createElement)("ul",{className:S,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},a.map((e=>x(e)))),("masonry"===n||"grid"===n)&&(0,i.createElement)("ul",{className:S,"data-item-selector":".kadence-blocks-gallery-item","data-image-filter":u,"data-lightbox-caption":!!g&&"true","data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-lg":l[2],"data-columns-md":l[3],"data-columns-sm":l[4],"data-columns-xs":l[5]},a.map((e=>x(e)))))}},{attributes:{uniqueID:{type:"string"},columns:{type:"array",default:[3,3,3,2,1,1]},columnControl:{type:"string",default:"linked"},images:{type:"array",default:[],source:"query",selector:".kadence-blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"data-full-image"},thumbUrl:{source:"attribute",selector:"img",attribute:"src"},lightUrl:{source:"attribute",selector:"img",attribute:"data-light-image"},link:{source:"attribute",selector:"img",attribute:"data-link"},customLink:{source:"attribute",selector:"img",attribute:"data-custom-link"},linkTarget:{source:"attribute",selector:"img",attribute:"data-custom-link-target"},width:{source:"attribute",selector:"img",attribute:"width"},height:{source:"attribute",selector:"img",attribute:"height"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},lightSize:{type:"string",default:"full"},thumbSize:{type:"string",default:"large"},ids:{type:"array"},type:{type:"string",default:"masonry"},imageRatio:{type:"string",default:"land32"},linkTo:{type:"string",default:"none"},showCaption:{type:"boolean",default:!1},hoverStyle:{type:"string",default:"dark"},captionStyle:{type:"string",default:"bottom-hover"},captionStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,color:"",background:"#000000",backgroundOpacity:.5}]},captionAlignment:{type:"string",default:"center"},gutter:{type:"array",default:[10,"",""]},carouselHeight:{type:"array",default:[300,"",""]},imageRadius:{type:"array",default:[0,0,0,0]},autoPlay:{type:"boolean",default:!1},autoSpeed:{type:"number",default:7e3},transSpeed:{type:"number",default:400},slidesScroll:{type:"string",default:"1"},arrowStyle:{type:"string",default:"whiteondark"},dotStyle:{type:"string",default:"dark"},displayShadow:{type:"boolean",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},imageFilter:{type:"string",default:"none"},lightbox:{type:"string",default:"none"},lightboxCaption:{type:"boolean",default:!0},margin:{type:"array",default:[{desk:["","","",""],tablet:["","","",""],mobile:["","","",""]}]},marginUnit:{type:"string",default:"px"},carouselAlign:{type:"boolean",default:!0},thumbnailRatio:{type:"string",default:"land32"},thumbnailColumns:{type:"array",default:[4,4,4,4,4,4]},thumbnailControl:{type:"string",default:"linked"}},save:({attributes:e})=>{const{uniqueID:t,images:a,columns:l,type:n,linkTo:r,showCaption:s,captionStyle:c,imageRatio:d,imageFilter:u,lightbox:m,lightboxCaption:g,dotStyle:p,transSpeed:b,slidesScroll:k,autoPlay:h,arrowStyle:y,autoSpeed:f,carouselAlign:v,thumbnailColumns:w,thumbnailRatio:E}=e,_=o()({"kb-gallery-ul":!0,[`kb-gallery-type-${n}`]:n,"kb-masonry-init":"masonry"===n,[`kb-gallery-id-${t}`]:t,[`kb-gallery-caption-style-${c}`]:c,[`kb-gallery-filter-${u}`]:u,"kb-gallery-magnific-init":"media"===r&&"magnific"===m}),S=e=>{let t;switch(r){case"media":t=e.lightUrl||e.url;break;case"custom":t=e.customLink?e.customLink:"";break;case"attachment":t=e.link}const a=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&d||"fluidcarousel"!==n&&"tiles"!==n&&e.width&&e.height,[`kb-gallery-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),l=(0,i.createElement)("div",{className:a,style:{paddingBottom:"grid"!==n&&"carousel"!==n&&"fluidcarousel"!==n&&"tiles"!==n&&"slider"!==n&&"thumbslider"!==n&&e.width&&e.height||"grid"===n&&"inherit"===d&&e.width&&e.height?e.height/e.width*100+"%":void 0}},(0,i.createElement)("img",{src:e.thumbUrl||e.url,width:e.width,height:e.height,alt:e.alt,"data-full-image":e.url,"data-light-image":e.lightUrl,"data-id":e.id,"data-link":e.link,"data-custom-link":e.customLink,"data-custom-link-target":e.linkTarget,className:e.id?`wp-image-${e.id}`:null})),u=o()({"kb-gallery-figure":!0,"kb-gallery-item-has-link":t,"kadence-blocks-gallery-item-has-caption":s&&e.caption&&e.caption.length>0,"kadence-blocks-gallery-item-hide-caption":!s,[`kb-has-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),g=(0,i.createElement)(Ha.RichText.Content,{className:"kadence-blocks-gallery-item__caption",tagName:"figcaption",value:e.caption}),p=(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===n&&e.width&&e.height||("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&"inherit"===d&&e.width&&e.height?e.width+"px":void 0}},l,e.caption&&e.caption.length>0&&"below"!==c&&g),e.caption&&e.caption.length>0&&"below"===c&&g);return(0,i.createElement)("li",{key:e.id||e.url,className:"kadence-blocks-gallery-item"},(0,i.createElement)("div",{className:"kadence-blocks-gallery-item-inner"},(0,i.createElement)("figure",{className:u},t?(0,i.createElement)("a",{href:t,className:"kb-gallery-item-link",target:"custom"===r&&"_blank"===e.linkTarget||"media"===r&&"new_tab"===m?"_blank":void 0,rel:"custom"===r&&"_blank"===e.linkTarget?"noopener noreferrer":void 0},p):p)))};return(0,i.createElement)("div",{className:`kb-gallery-wrap-id-${t}`},"carousel"===n&&(0,i.createElement)("div",{className:_,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-gallery-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-md":l[2],"data-columns-sm":l[3],"data-columns-xs":l[4],"data-columns-ss":l[5],"data-slider-anim-speed":b,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},S(e))))))),"fluidcarousel"===n&&(0,i.createElement)("div",{className:_,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-fluid-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}${!1===v?" kb-carousel-mode-align-left":""}`,"data-slider-anim-speed":b,"data-slider-type":"fluidcarousel","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f,"data-slider-center-mode":!1===v?"false":void 0},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},S(e))))))),"slider"===n&&(0,i.createElement)("div",{className:_,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-slider kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-slider-anim-speed":b,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-slide-item",key:t},S(e))))))),"thumbslider"===n&&(0,i.createElement)("div",{className:_,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-none"},(0,i.createElement)("div",{id:`kb-slider-${t}`,className:`kt-blocks-carousel-init kb-gallery-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-none`,"data-columns-xxl":w[0],"data-columns-xl":w[1],"data-columns-md":w[2],"data-columns-sm":w[3],"data-columns-xs":w[4],"data-columns-ss":w[5],"data-slider-anim-speed":b,"data-slider-type":"thumbnail","data-slider-nav":`kb-thumb-slider-${t}`,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":!1,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},S(e))))),(0,i.createElement)("div",{id:`kb-thumb-slider-${t}`,className:`kb-gallery-carousel kb-gallery-slider-thumbnails kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-none`,"data-slider-anim-speed":b,"data-slider-type":"thumbnail","data-slider-nav":`kb-slider-${t}`,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":!1,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},(e=>{const t=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&d||"fluidcarousel"!==n&&"tiles"!==n&&e.width&&e.height,[`kb-gallery-image-ratio-${E}`]:E&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),a=(0,i.createElement)("div",{className:t,style:{paddingBottom:"grid"!==n&&"carousel"!==n&&"fluidcarousel"!==n&&"tiles"!==n&&"slider"!==n&&"thumbslider"!==n&&e.width&&e.height||"grid"===n&&"inherit"===E&&e.width&&e.height?e.height/e.width*100+"%":void 0}},(0,i.createElement)("img",{src:e.thumbUrl||e.url,width:e.width,height:e.height,alt:e.alt,"data-full-image":e.url,"data-light-image":e.lightUrl,"data-id":e.id,"data-link":e.link,"data-custom-link":e.customLink,"data-custom-link-target":e.linkTarget,className:e.id?`wp-image-${e.id}`:null})),l=o()({"kb-gallery-thumb-figure":!0,[`kb-has-image-ratio-${E}`]:E&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),r=(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===n&&e.width&&e.height||("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&"inherit"===E&&e.width&&e.height?e.width+"px":void 0}},a));return(0,i.createElement)("li",{key:e.id||e.url,className:"kadence-blocks-gallery-thumb-item"},(0,i.createElement)("div",{className:"kadence-blocks-gallery-thumb-item-inner"},(0,i.createElement)("figure",{className:l},r)))})(e))))))),"tiles"===n&&(0,i.createElement)("ul",{className:_,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},a.map((e=>S(e)))),("masonry"===n||"grid"===n)&&(0,i.createElement)("ul",{className:_,"data-item-selector":".kadence-blocks-gallery-item","data-image-filter":u,"data-lightbox-caption":!!g&&"true","data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-lg":l[2],"data-columns-md":l[3],"data-columns-sm":l[4],"data-columns-xs":l[5]},a.map((e=>S(e)))))}},{attributes:{uniqueID:{type:"string"},columns:{type:"array",default:[3,3,3,2,1,1]},columnControl:{type:"string",default:"linked"},images:{type:"array",default:[],source:"query",selector:".kadence-blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"data-full-image"},thumbUrl:{source:"attribute",selector:"img",attribute:"src"},lightUrl:{source:"attribute",selector:"img",attribute:"data-light-image"},link:{source:"attribute",selector:"img",attribute:"data-link"},customLink:{source:"attribute",selector:"img",attribute:"data-custom-link"},linkTarget:{source:"attribute",selector:"img",attribute:"data-custom-link-target"},width:{source:"attribute",selector:"img",attribute:"width"},height:{source:"attribute",selector:"img",attribute:"height"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},lightSize:{type:"string",default:"full"},thumbSize:{type:"string",default:"large"},ids:{type:"array"},type:{type:"string",default:"masonry"},imageRatio:{type:"string",default:"land32"},linkTo:{type:"string",default:"none"},showCaption:{type:"boolean",default:!1},hoverStyle:{type:"string",default:"dark"},captionStyle:{type:"string",default:"bottom-hover"},captionStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,color:"",background:"#000000",backgroundOpacity:.5}]},captionAlignment:{type:"string",default:"center"},gutter:{type:"array",default:[10,"",""]},carouselHeight:{type:"array",default:[300,"",""]},imageRadius:{type:"array",default:[0,0,0,0]},autoPlay:{type:"boolean",default:!1},autoSpeed:{type:"number",default:7e3},transSpeed:{type:"number",default:400},slidesScroll:{type:"string",default:"1"},arrowStyle:{type:"string",default:"whiteondark"},dotStyle:{type:"string",default:"dark"},displayShadow:{type:"boolean",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},imageFilter:{type:"string",default:"none"},lightbox:{type:"string",default:"none"},lightboxCaption:{type:"boolean",default:!0},margin:{type:"array",default:[{desk:["","","",""],tablet:["","","",""],mobile:["","","",""]}]},marginUnit:{type:"string",default:"px"},carouselAlign:{type:"boolean",default:!0},thumbnailRatio:{type:"string",default:"land32"},thumbnailColumns:{type:"array",default:[4,4,4,4,4,4]},thumbnailControl:{type:"string",default:"linked"}},save:({attributes:e})=>{const{uniqueID:t,images:a,columns:l,type:n,linkTo:r,showCaption:s,captionStyle:c,imageRatio:d,imageFilter:u,lightbox:m,lightboxCaption:g,dotStyle:p,transSpeed:b,slidesScroll:k,autoPlay:h,arrowStyle:y,autoSpeed:f,carouselAlign:v,thumbnailColumns:w,thumbnailRatio:E}=e,_=o()({"kb-gallery-ul":!0,[`kb-gallery-type-${n}`]:n,"kb-masonry-init":"masonry"===n,[`kb-gallery-id-${t}`]:t,[`kb-gallery-caption-style-${c}`]:c,[`kb-gallery-filter-${u}`]:u,"kb-gallery-magnific-init":"media"===r&&"magnific"===m}),S=e=>{let t;switch(r){case"media":t=e.url;break;case"custom":t=e.customLink?e.customLink:"";break;case"attachment":t=e.link}const a=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&d||"fluidcarousel"!==n&&"tiles"!==n&&e.width&&e.height,[`kb-gallery-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),l=(0,i.createElement)("div",{className:a,style:{paddingBottom:"grid"!==n&&"carousel"!==n&&"fluidcarousel"!==n&&"tiles"!==n&&"slider"!==n&&"thumbslider"!==n&&e.width&&e.height||"grid"===n&&"inherit"===d&&e.width&&e.height?e.height/e.width*100+"%":void 0}},(0,i.createElement)("img",{src:e.thumbUrl||e.url,width:e.width,height:e.height,alt:e.alt,"data-full-image":e.url,"data-light-image":e.url,"data-id":e.id,"data-link":e.link,"data-custom-link":e.customLink,"data-custom-link-target":e.linkTarget,className:e.id?`wp-image-${e.id}`:null})),u=o()({"kb-gallery-figure":!0,"kb-gallery-item-has-link":t,"kadence-blocks-gallery-item-has-caption":s&&e.caption&&e.caption.length>0,"kadence-blocks-gallery-item-hide-caption":!s,[`kb-has-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),m=(0,i.createElement)(Ha.RichText.Content,{className:"kadence-blocks-gallery-item__caption",tagName:"figcaption",value:e.caption}),g=(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===n&&e.width&&e.height||("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&"inherit"===d&&e.width&&e.height?e.width+"px":void 0}},l,e.caption&&e.caption.length>0&&"below"!==c&&m),e.caption&&e.caption.length>0&&"below"===c&&m);return(0,i.createElement)("li",{key:e.id||e.url,className:"kadence-blocks-gallery-item"},(0,i.createElement)("div",{className:"kadence-blocks-gallery-item-inner"},(0,i.createElement)("figure",{className:u},t?(0,i.createElement)("a",{href:t,className:"kb-gallery-item-link",target:"custom"===r&&"_blank"===e.linkTarget?"_blank":void 0,rel:"custom"===r&&"_blank"===e.linkTarget?"noopener noreferrer":void 0},g):g)))};return(0,i.createElement)("div",{className:`kb-gallery-wrap-id-${t}`},"carousel"===n&&(0,i.createElement)("div",{className:_,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-gallery-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-md":l[2],"data-columns-sm":l[3],"data-columns-xs":l[4],"data-columns-ss":l[5],"data-slider-anim-speed":b,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},S(e))))))),"fluidcarousel"===n&&(0,i.createElement)("div",{className:_,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-fluid-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}${!1===v?" kb-carousel-mode-align-left":""}`,"data-slider-anim-speed":b,"data-slider-type":"fluidcarousel","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f,"data-slider-center-mode":!1===v?"false":void 0},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},S(e))))))),"slider"===n&&(0,i.createElement)("div",{className:_,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-slider kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-slider-anim-speed":b,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-slide-item",key:t},S(e))))))),"thumbslider"===n&&(0,i.createElement)("div",{className:_,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-none"},(0,i.createElement)("div",{id:`kb-slider-${t}`,className:`kt-blocks-carousel-init kb-gallery-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-none`,"data-columns-xxl":w[0],"data-columns-xl":w[1],"data-columns-md":w[2],"data-columns-sm":w[3],"data-columns-xs":w[4],"data-columns-ss":w[5],"data-slider-anim-speed":b,"data-slider-type":"thumbnail","data-slider-nav":`kb-thumb-slider-${t}`,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":!1,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},S(e))))),(0,i.createElement)("div",{id:`kb-thumb-slider-${t}`,className:`kb-gallery-carousel kb-gallery-slider-thumbnails kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-none`,"data-slider-anim-speed":b,"data-slider-type":"thumbnail","data-slider-nav":`kb-slider-${t}`,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":!1,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},(e=>{const t=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&d||"fluidcarousel"!==n&&"tiles"!==n&&e.width&&e.height,[`kb-gallery-image-ratio-${E}`]:E&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),a=(0,i.createElement)("div",{className:t,style:{paddingBottom:"grid"!==n&&"carousel"!==n&&"fluidcarousel"!==n&&"tiles"!==n&&"slider"!==n&&"thumbslider"!==n&&e.width&&e.height||"grid"===n&&"inherit"===E&&e.width&&e.height?e.height/e.width*100+"%":void 0}},(0,i.createElement)("img",{src:e.thumbUrl||e.url,width:e.width,height:e.height,alt:e.alt,"data-full-image":e.url,"data-light-image":e.url,"data-id":e.id,"data-link":e.link,"data-custom-link":e.customLink,"data-custom-link-target":e.linkTarget,className:e.id?`wp-image-${e.id}`:null})),l=o()({"kb-gallery-thumb-figure":!0,[`kb-has-image-ratio-${E}`]:E&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),r=(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===n&&e.width&&e.height||("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&"inherit"===E&&e.width&&e.height?e.width+"px":void 0}},a));return(0,i.createElement)("li",{key:e.id||e.url,className:"kadence-blocks-gallery-thumb-item"},(0,i.createElement)("div",{className:"kadence-blocks-gallery-thumb-item-inner"},(0,i.createElement)("figure",{className:l},r)))})(e))))))),"tiles"===n&&(0,i.createElement)("ul",{className:_,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},a.map((e=>S(e)))),("masonry"===n||"grid"===n)&&(0,i.createElement)("ul",{className:_,"data-item-selector":".kadence-blocks-gallery-item","data-image-filter":u,"data-lightbox-caption":!!g&&"true","data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-lg":l[2],"data-columns-md":l[3],"data-columns-sm":l[4],"data-columns-xs":l[5]},a.map((e=>S(e)))))}},{attributes:{uniqueID:{type:"string"},columns:{type:"array",default:[3,3,3,2,1,1]},columnControl:{type:"string",default:"linked"},images:{type:"array",default:[],source:"query",selector:".kadence-blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"data-full-image"},thumbUrl:{source:"attribute",selector:"img",attribute:"src"},lightUrl:{source:"attribute",selector:"img",attribute:"data-light-image"},link:{source:"attribute",selector:"img",attribute:"data-link"},customLink:{source:"attribute",selector:"img",attribute:"data-custom-link"},linkTarget:{source:"attribute",selector:"img",attribute:"data-custom-link-target"},width:{source:"attribute",selector:"img",attribute:"width"},height:{source:"attribute",selector:"img",attribute:"height"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},lightSize:{type:"string",default:"full"},thumbSize:{type:"string",default:"large"},ids:{type:"array"},type:{type:"string",default:"masonry"},imageRatio:{type:"string",default:"land32"},linkTo:{type:"string",default:"none"},showCaption:{type:"boolean",default:!1},hoverStyle:{type:"string",default:"dark"},captionStyle:{type:"string",default:"bottom-hover"},captionStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,color:"",background:"#000000",backgroundOpacity:.5}]},captionAlignment:{type:"string",default:"center"},gutter:{type:"array",default:[10,"",""]},carouselHeight:{type:"array",default:[300,"",""]},imageRadius:{type:"array",default:[0,0,0,0]},autoPlay:{type:"boolean",default:!1},autoSpeed:{type:"number",default:7e3},transSpeed:{type:"number",default:400},slidesScroll:{type:"string",default:"1"},arrowStyle:{type:"string",default:"whiteondark"},dotStyle:{type:"string",default:"dark"},displayShadow:{type:"boolean",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},imageFilter:{type:"string",default:"none"},lightbox:{type:"string",default:"none"},lightboxCaption:{type:"boolean",default:!0},margin:{type:"array",default:[{desk:["","","",""],tablet:["","","",""],mobile:["","","",""]}]},marginUnit:{type:"string",default:"px"},carouselAlign:{type:"boolean",default:!0}},save:({attributes:e})=>{const{uniqueID:t,images:a,columns:l,type:n,linkTo:r,showCaption:s,captionStyle:c,imageRatio:d,imageFilter:u,lightbox:m,lightboxCaption:g,dotStyle:p,transSpeed:b,slidesScroll:k,autoPlay:h,arrowStyle:y,autoSpeed:f,carouselAlign:v}=e,w=o()({"kb-gallery-ul":!0,[`kb-gallery-type-${n}`]:n,"kb-masonry-init":"masonry"===n,[`kb-gallery-id-${t}`]:t,[`kb-gallery-caption-style-${c}`]:c,[`kb-gallery-filter-${u}`]:u,"kb-gallery-magnific-init":"media"===r&&"magnific"===m}),E=e=>{let t;switch(r){case"media":t=e.url;break;case"custom":t=e.customLink?e.customLink:"";break;case"attachment":t=e.link}const a=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":("grid"===n||"carousel"===n||"slider"===n)&&d||"fluidcarousel"!==n&&e.width&&e.height,[`kb-gallery-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n)}),l=(0,i.createElement)("div",{className:a,style:{paddingBottom:"grid"!==n&&"carousel"!==n&&"fluidcarousel"!==n&&"slider"!==n&&e.width&&e.height||"grid"===n&&"inherit"===d&&e.width&&e.height?e.height/e.width*100+"%":void 0}},(0,i.createElement)("img",{src:e.thumbUrl||e.url,width:e.width,height:e.height,alt:e.alt,"data-full-image":e.url,"data-light-image":e.url,"data-id":e.id,"data-link":e.link,"data-custom-link":e.customLink,"data-custom-link-target":e.linkTarget,className:e.id?`wp-image-${e.id}`:null})),u=o()({"kb-gallery-figure":!0,"kb-gallery-item-has-link":t,"kadence-blocks-gallery-item-has-caption":s&&e.caption&&e.caption.length>0,"kadence-blocks-gallery-item-hide-caption":!s,[`kb-has-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n)}),m=(0,i.createElement)(Ha.RichText.Content,{className:"kadence-blocks-gallery-item__caption",tagName:"figcaption",value:e.caption}),g=(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===n&&e.width&&e.height||("grid"===n||"carousel"===n||"slider"===n)&&"inherit"===d&&e.width&&e.height?e.width+"px":void 0}},l,e.caption&&e.caption.length>0&&"below"!==c&&m),e.caption&&e.caption.length>0&&"below"===c&&m);return(0,i.createElement)("li",{key:e.id||e.url,className:"kadence-blocks-gallery-item"},(0,i.createElement)("div",{className:"kadence-blocks-gallery-item-inner"},(0,i.createElement)("figure",{className:u},t?(0,i.createElement)("a",{href:t,className:"kb-gallery-item-link",target:"custom"===r&&"_blank"===e.linkTarget?"_blank":void 0,rel:"custom"===r&&"_blank"===e.linkTarget?"noopener noreferrer":void 0},g):g)))};return(0,i.createElement)("div",null,"carousel"===n&&(0,i.createElement)("div",{className:w,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-gallery-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-md":l[2],"data-columns-sm":l[3],"data-columns-xs":l[4],"data-columns-ss":l[5],"data-slider-anim-speed":b,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},E(e))))))),"fluidcarousel"===n&&(0,i.createElement)("div",{className:w,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-fluid-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}${!1===v?" kb-carousel-mode-align-left":""}`,"data-slider-anim-speed":b,"data-slider-type":"fluidcarousel","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f,"data-slider-center-mode":!1===v?"false":void 0},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},E(e))))))),"slider"===n&&(0,i.createElement)("div",{className:w,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-slider kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-slider-anim-speed":b,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-slide-item",key:t},E(e))))))),("masonry"===n||"grid"===n)&&(0,i.createElement)("ul",{className:w,"data-item-selector":".kadence-blocks-gallery-item","data-image-filter":u,"data-lightbox-caption":!!g&&"true","data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-lg":l[2],"data-columns-md":l[3],"data-columns-sm":l[4],"data-columns-xs":l[5]},a.map((e=>E(e)))))}}],cl=window.wp.blocks;(0,cl.registerBlockType)("kadence/advancedgallery",{...il,title:(0,qa._x)("Gallery (Adv)","block title","kadence-blocks"),description:(0,qa._x)("Photo galleries, carousels, and sliders! Enable custom links, captions, and more.","block description","kadence-blocks"),keywords:[(0,qa.__)("gallery","kadence-blocks"),(0,qa.__)("image","kadence-blocks"),"KB"],icon:{src:l.galleryIcon},transforms:{from:[{type:"block",blocks:["core/gallery"],transform:e=>(0,cl.createBlock)("kadence/advancedgallery",{align:e.align?e.align:"none",columns:el(e.columns?e.columns:3),images:e.images?e.images.map((e=>((e,t,a)=>{let l="";const i=(0,s.pick)(e,["id","link"]);if(e.id,e.id&&!e.sizes&&!e.media_details){const t=wp.data.select("core").getMedia(e.id,{context:"view"});t&&(e=t)}return i.alt=(0,s.get)(e,["alt_text"])||(0,s.get)(e,["alt"])||void 0,i.caption=(0,s.get)(e,["caption","rendered"])||(0,s.get)(e,["caption"])||void 0,i.url=e.url||e.source_url,i.thumbUrl=(0,s.get)(e,["sizes",a,"url"])||(0,s.get)(e,["media_details","sizes",a,"source_url"])||l||e.url||e.source_url,i.lightUrl=(0,s.get)(e,["sizes",t,"url"])||(0,s.get)(e,["media_details","sizes",t,"source_url"])||e.url||e.source_url,i.width=(0,s.get)(e,["sizes",a,"width"])||(0,s.get)(e,["media_details","sizes",a,"width"])||(0,s.get)(e,["sizes","full","width"])||(0,s.get)(e,["media_details","width"])||void 0,i.height=(0,s.get)(e,["sizes",a,"height"])||(0,s.get)(e,["media_details","sizes",a,"height"])||(0,s.get)(e,["sizes","full","height"])||(0,s.get)(e,["media_details","height"])||void 0,i})(e,"large","full"))):[],linkTo:e.linkTo?e.linkTo:"none",ids:e.ids})}],to:[{type:"block",blocks:["core/gallery"],transform:e=>(0,cl.createBlock)("core/gallery",{align:e.align,columns:e.columns[2],linkTo:e.linkTo,ids:[],images:[]},[...e.imagesDynamic.map((e=>{const t=(e=>{const t=(0,s.pick)(e,["alt","id","link","caption"]);return t.url=(0,s.get)(e,["sizes","large","url"])||(0,s.get)(e,["media_details","sizes","large","source_url"])||e.url,t})(e);return(0,cl.createBlock)("core/image",{id:t.id,alt:t.alt,caption:t.caption,url:t.url,link:t.link})}))])}]},edit:function(e){const{attributes:t,isSelected:a,className:l,noticeUI:n,context:r,clientId:c,setAttributes:d}=e,{inQueryBlock:u,uniqueID:m,images:g,columns:p,linkTo:b,ids:k,columnControl:h,showCaption:y,captionStyles:f,lightbox:v,lightSize:w,type:E,imageRatio:_,captionStyle:C,gutter:$,thumbSize:T,autoPlay:O,autoSpeed:L,transSpeed:P,slidesScroll:z,arrowStyle:R,dotStyle:D,imageRadius:B,tabletImageRadius:I,mobileImageRadius:F,imageRadiusUnit:U,margin:A,marginUnit:M,displayShadow:H,shadow:V,shadowHover:q,carouselHeight:G,imageFilter:j,lightboxCaption:W,carouselAlign:K,thumbnailColumns:X,thumbnailControl:Z,thumbnailRatio:Y,mobileForceHover:J,kadenceDynamic:Q,imagesDynamic:ee,padding:te,tabletPadding:ae,mobilePadding:le,paddingUnit:ie,kbVersion:ne,gutterUnit:re,lazyLoad:oe,slideType:se}=t,ce=(0,Va.useRef)(null),de=(0,Va.useRef)(),{addUniqueID:ue}=(0,ja.useDispatch)("kadenceblocks/data"),me=!!(Q&&Q.images&&Q.images.enable),{isUniqueID:ge,isUniqueBlock:pe,previewDevice:be,parentData:ke,mediaUpload:he}=(0,ja.useSelect)((e=>({isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,a)=>e("kadenceblocks/data").isUniqueBlock(t,a),previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),parentData:{rootBlock:e(Ha.store).getBlock(e(Ha.store).getBlockHierarchyRootClientId(c)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e(Ha.store).getBlockAttributes(e(Ha.store).getBlockParentsByBlockName(c,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()},mediaUpload:e(Ha.store).getSettings().mediaUpload})),[c]);(0,Va.useEffect)((()=>{ce.current&&de.current&&de.current.splide&&ce.current.sync(de.current.splide)}),[ce.current,de.current]),(0,Va.useEffect)((()=>{(0,x.setBlockDefaults)("kadence/advancedgallery",t);const a=(0,x.getPostOrFseId)(e,ke),l=(0,x.getUniqueId)(m,c,ge,pe,a);if(l!==m?(t.uniqueID=l,d({uniqueID:l}),ue(l,c)):ue(l,c),d({inQueryBlock:(0,x.getInQueryBlock)(r,u)}),g?.length&&(0,s.every)(g,(({url:e})=>(0,Ga.isBlobURL)(e)))){const e=(0,s.map)(g,(({url:e})=>(0,Ga.getBlobByURL)(e)));(0,s.forEach)(g,(({url:e})=>(0,Ga.revokeBlobURL)(e))),he({filesList:e,onFileChange:e=>He(e,2),allowedTypes:["image"]})}if(!ne||ne<2){if(g&&!me){const e=[];(0,s.forEach)(g,(t=>{e.push({url:t?.url||"",thumbUrl:t?.thumbUrl||"",lightUrl:t?.lightUrl||"",link:t?.link||"",customLink:t?.customLink||"",linkTarget:t?.linkTarget||"",width:t?.width||"",height:t?.height||"",alt:t?.alt||"",id:t?.id||"",caption:t?.caption||"",linkSponsored:t?.linkSponsored||""})})),d({imagesDynamic:e})}d({kbVersion:2})}}),[]);const ye=void 0!==ie?ie:"px",fe=void 0!==M?M:"px",ve=(0,x.getPreviewSize)(be,void 0!==A[0].desk[0]?A[0].desk[0]:"",void 0!==A[0].tablet[0]?A[0].tablet[0]:"",void 0!==A[0].mobile[0]?A[0].mobile[0]:""),we=(0,x.getPreviewSize)(be,void 0!==A[0].desk[0]?A[0].desk[1]:"",void 0!==A[0].tablet[0]?A[0].tablet[1]:"",void 0!==A[0].mobile[0]?A[0].mobile[1]:""),Ee=(0,x.getPreviewSize)(be,void 0!==A[0].desk[0]?A[0].desk[2]:"",void 0!==A[0].tablet[0]?A[0].tablet[2]:"",void 0!==A[0].mobile[0]?A[0].mobile[2]:""),_e=(0,x.getPreviewSize)(be,void 0!==A[0].desk[0]?A[0].desk[3]:"",void 0!==A[0].tablet[0]?A[0].tablet[3]:"",void 0!==A[0].mobile[0]?A[0].mobile[3]:""),Se=(0,x.getPreviewSize)(be,void 0!==te?te[0]:"",void 0!==ae?ae[0]:"",void 0!==le?le[0]:""),xe=(0,x.getPreviewSize)(be,void 0!==te&&void 0!==te[1]&&""!==te[1]?te[1]:"",void 0!==ae?ae[1]:"",void 0!==le?le[1]:""),Ne=(0,x.getPreviewSize)(be,void 0!==te?te[2]:"",void 0!==ae?ae[2]:"",void 0!==le?le[2]:""),Ce=(0,x.getPreviewSize)(be,void 0!==te&&void 0!==te[3]&&""!==te[3]?te[3]:"",void 0!==ae?ae[3]:"",void 0!==le?le[3]:""),$e=(0,x.getPreviewSize)(be,void 0!==p[0]?p[0]:3,void 0!==p[3]?p[3]:"",void 0!==p[5]?p[5]:""),Te=(0,x.getPreviewSize)(be,void 0!==X[0]?X[0]:4,void 0!==X[3]?X[3]:"",void 0!==X[5]?X[5]:""),Oe=(0,x.getPreviewSize)(be,void 0!==$[0]?$[0]:"",void 0!==$[1]?$[1]:"",void 0!==$[2]?$[2]:""),Le=re||"px",Pe=(0,x.getPreviewSize)(be,void 0!==G[0]?G[0]:"",void 0!==G[1]?G[1]:"",void 0!==G[2]?G[2]:""),ze=(0,x.getPreviewSize)(be,void 0!==B?B:"",void 0!==I?I:"",void 0!==F?F:""),Re=(0,Ha.useBlockProps)({className:"kb-gallery-container"}),De={paddingLeft:void 0!==Ce?(0,x.getSpacingOptionOutput)(Ce,ye):void 0,paddingRight:void 0!==xe?(0,x.getSpacingOptionOutput)(xe,ye):void 0,paddingTop:void 0!==Se?(0,x.getSpacingOptionOutput)(Se,ye):void 0,paddingBottom:void 0!==Ne?(0,x.getSpacingOptionOutput)(Ne,ye):void 0,marginLeft:void 0!==_e?(0,x.getSpacingOptionOutput)(_e,fe):void 0,marginRight:void 0!==we?(0,x.getSpacingOptionOutput)(we,fe):void 0,marginTop:void 0!==ve?(0,x.getSpacingOptionOutput)(ve,fe):void 0,marginBottom:void 0!==Ee?(0,x.getSpacingOptionOutput)(Ee,fe):void 0},[Be,Ie]=(0,Va.useState)(null),[Fe,Ue]=(0,Va.useState)("general"),Ae=e=>{let t=e;if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.imagesDynamic&&(t={...t,ids:(0,s.map)(t.imagesDynamic,"id")}),d(t)},Me=(e,t)=>{const a=[...ee];a.splice(t,1,ee[e]),a.splice(e,1,ee[t]),Ie(t),Ae({imagesDynamic:a})};async function He(e,t=9){const a=await Qa(e,w,T,ee);Ae({imagesDynamic:a})}const Ve=t=>{const{noticeOperations:a}=e;a.removeAllNotices(),a.createErrorNotice(t)},qe=(0,Va.useMemo)((()=>(0,Fa.applyFilters)("kadence.galleryTypes",rl)),[]),Ge=null!=ee?ee:[],je=!!Ge.length,We=e=>{const t=V.map(((t,a)=>(0===a&&(t={...t,...e}),t)));d({shadow:t})},Ke=e=>{const t=q.map(((t,a)=>(0===a&&(t={...t,...e}),t)));d({shadowHover:t})},Xe=e=>{const t=A.map(((t,a)=>(0===a&&(t={...t,...e}),t)));d({margin:t})},Ze=(0,x.mouseOverVisualizer)(),Ye=(0,x.mouseOverVisualizer)(),Je="em"===M||"rem"===M?-25:-999,Qe="em"===M||"rem"===M?25:999,et="em"===M||"rem"===M?.1:1,tt=[{key:"linked",name:(0,qa.__)("Linked","kadence-blocks"),icon:(0,qa.__)("Linked","kadence-blocks")},{key:"individual",name:(0,qa.__)("Individual","kadence-blocks"),icon:(0,qa.__)("Individual","kadence-blocks")}],at={google:{families:[f[0].family+(f[0].variant?":"+f[0].variant:"")]}},lt=f[0].google?at:"",it=e=>{const t=f.map(((t,a)=>(0===a&&(t={...t,...e}),t)));d({captionStyles:t})},nt={type:"slide",autoplay:O,rewind:!0,pagination:"none"!==D,arrows:"none"!==R,speed:P,drag:!1,perPage:$e,interval:L,gap:Oe?Oe+Le:"0",direction:x.isRTL?"rtl":"ltr"};1!==nt.perPage&&"1"!==z||(nt.focus=0,nt.perMove=1,nt.type="loop");const rt={type:"loop",autoplay:O,rewind:!0,arrows:"none"!==R,perPage:1,speed:P,interval:L,autoWidth:!0,drag:!1,pagination:"none"!==D,focus:!1===K?0:"center",gap:Oe?Oe+Le:"0",direction:x.isRTL?"rtl":"ltr"},ot={type:se,dots:"none"!==D,arrows:"none"!==R,rewind:!0,perPage:1,fade:!0,clones:0,speed:P,drag:!1,interval:L,autoplay:O,direction:x.isRTL?"rtl":"ltr"},st={type:se,dots:!1,arrows:"none"!==R,rewind:!0,fade:!0,speed:P,drag:!1,pagination:!1,autoplaySpeed:L,autoplay:O,slidesToShow:1,slidesToScroll:1,direction:x.isRTL?"rtl":"ltr"},ct={focus:0,height:"100%",perPage:Te,speed:P,gap:""!==Oe?Oe+Le:"4px",rewind:!0,pagination:!1,isNavigation:!0,arrows:!(Te>Ge.length),direction:x.isRTL?"rtl":"ltr"},dt=["images","imagesDynamic"],ut=(0,i.createElement)(Ha.BlockControls,null,je&&!me&&(0,i.createElement)(Ma.ToolbarGroup,null,(0,i.createElement)(Ha.MediaUpload,{onSelect:e=>He(e,3),allowedTypes:ol,multiple:!0,gallery:!0,value:ee.map((e=>e.id)),render:({open:e})=>(0,i.createElement)(Ma.ToolbarButton,{className:"components-toolbar__control",label:(0,qa.__)("Edit/Add gallery images","kadence-blocks"),icon:tl,onClick:e})})),(0,i.createElement)(N.CopyPasteAttributes,{attributes:t,excludedAttrs:dt,defaultAttributes:il.attributes,blockSlug:il.name,onPaste:e=>d(e)})),mt=qe.filter((e=>e.value===E)),gt=(0,i.createElement)(i.Fragment,null,(0,x.showSettings)("allSettings","kadence/advancedgallery")&&(0,i.createElement)(Ha.InspectorControls,null,(0,i.createElement)(N.InspectorControlTabs,{panelName:"advancedgallery",setActiveTab:e=>Ue(e),activeTab:Fe}),"general"===Fe&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(N.KadencePanelBody,{panelName:"kb-gallery-settings"},kadence_blocks_params.dynamic_enabled&&me&&(0,i.createElement)(N.DynamicGalleryControl,{dynamicAttribute:"images",...e}),(0,i.createElement)(N.KadenceRadioButtons,{value:E,options:qe,wrap:!0,hideLabel:!0,label:(0,qa.__)("Gallery Type:","kadence-blocks")+" "+(void 0!==mt&&void 0!==mt[0]&&mt[0].label?mt[0].label:"Masonry"),className:"kb-gallery-type-select",onChange:e=>{d({type:e})}}),("grid"===E||"carousel"===E||"slider"===E||"thumbslider"===E)&&(0,i.createElement)(Ma.SelectControl,{label:(0,qa.__)("Image ratio","kadence-blocks"),options:[{label:(0,qa.__)("Landscape 4:3","kadence-blocks"),value:"land43"},{label:(0,qa.__)("Landscape 3:2","kadence-blocks"),value:"land32"},{label:(0,qa.__)("Landscape 16:9","kadence-blocks"),value:"land169"},{label:(0,qa.__)("Landscape 2:1","kadence-blocks"),value:"land21"},{label:(0,qa.__)("Landscape 3:1","kadence-blocks"),value:"land31"},{label:(0,qa.__)("Landscape 4:1","kadence-blocks"),value:"land41"},{label:(0,qa.__)("Portrait 3:4","kadence-blocks"),value:"port34"},{label:(0,qa.__)("Portrait 2:3","kadence-blocks"),value:"port23"},{label:(0,qa.__)("Square 1:1","kadence-blocks"),value:"square"},{label:(0,qa.__)("Inherit","kadence-blocks"),value:"inherit"}],value:_,onChange:e=>d({imageRatio:e})}),"thumbslider"===E&&(0,i.createElement)(Ma.SelectControl,{label:(0,qa.__)("Thumbnail Image ratio","kadence-blocks"),options:[{label:(0,qa.__)("Landscape 4:3","kadence-blocks"),value:"land43"},{label:(0,qa.__)("Landscape 3:2","kadence-blocks"),value:"land32"},{label:(0,qa.__)("Landscape 16:9","kadence-blocks"),value:"land169"},{label:(0,qa.__)("Landscape 2:1","kadence-blocks"),value:"land21"},{label:(0,qa.__)("Landscape 3:1","kadence-blocks"),value:"land31"},{label:(0,qa.__)("Landscape 4:1","kadence-blocks"),value:"land41"},{label:(0,qa.__)("Portrait 3:4","kadence-blocks"),value:"port34"},{label:(0,qa.__)("Portrait 2:3","kadence-blocks"),value:"port23"},{label:(0,qa.__)("Square 1:1","kadence-blocks"),value:"square"},{label:(0,qa.__)("Inherit","kadence-blocks"),value:"inherit"}],value:Y,onChange:e=>d({thumbnailRatio:e})}),E&&("carousel"===E||"grid"===E||"masonry"===E)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Ma.ButtonGroup,{className:"kt-size-type-options kt-outline-control","aria-label":(0,qa.__)("Column Control Type","kadence-blocks")},(0,s.map)(tt,(({name:e,key:t,icon:a})=>(0,i.createElement)(Ma.Tooltip,{text:e},(0,i.createElement)(Ma.Button,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:h===t,"aria-pressed":h===t,onClick:()=>d({columnControl:t})},a))))),"individual"!==h&&(0,i.createElement)(N.StepControls,{label:(0,qa.__)("Columns","kadence-blocks"),value:p[2],onChange:e=>{let t=[];1===e?t=[1,1,1,1,1,1]:2===e?t=[2,2,2,2,1,1]:3===e?t=[3,3,3,2,1,1]:4===e?t=[4,4,4,3,2,2]:5===e?t=[5,5,5,4,4,3]:6===e?t=[6,6,6,4,4,3]:7===e?t=[7,7,7,5,5,4]:8===e&&(t=[8,8,8,6,4,4]),d({columns:t})},min:1,max:8}),h&&"individual"===h&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("h4",null,(0,qa.__)("Columns","kadence-blocks")),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen Above 1500px","kadence-blocks"),value:p[0],onChange:e=>d({columns:[e,p[1],p[2],p[3],p[4],p[5]]}),min:1,max:8}),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen 1200px - 1499px","kadence-blocks"),value:p[1],onChange:e=>d({columns:[p[0],e,p[2],p[3],p[4],p[5]]}),min:1,max:8}),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen 992px - 1199px","kadence-blocks"),value:p[2],onChange:e=>d({columns:[p[0],p[1],e,p[3],p[4],p[5]]}),min:1,max:8}),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen 768px - 991px","kadence-blocks"),value:p[3],onChange:e=>d({columns:[p[0],p[1],p[2],e,p[4],p[5]]}),min:1,max:8}),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen 544px - 767px","kadence-blocks"),value:p[4],onChange:e=>d({columns:[p[0],p[1],p[2],p[3],e,p[5]]}),min:1,max:8}),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen Below 543px","kadence-blocks"),value:p[5],onChange:e=>d({columns:[p[0],p[1],p[2],p[3],p[4],e]}),min:1,max:8}))),E&&"thumbslider"===E&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Ma.ButtonGroup,{className:"kt-size-type-options kt-outline-control","aria-label":(0,qa.__)("Thumb Column Control Type","kadence-blocks")},(0,s.map)(tt,(({name:e,key:t,icon:a})=>(0,i.createElement)(Ma.Tooltip,{text:e},(0,i.createElement)(Ma.Button,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:Z===t,"aria-pressed":Z===t,onClick:()=>d({thumbnailControl:t})},a))))),"individual"!==Z&&(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Thumbnail Columns","kadence-blocks"),value:X[2],onChange:e=>{let t=[];1===e?t=[1,1,1,1,1,1]:2===e?t=[2,2,2,2,2,2]:3===e?t=[3,3,3,3,3,3]:4===e?t=[4,4,4,4,4,4]:5===e?t=[5,5,5,4,4,4]:6===e?t=[6,6,6,4,4,4]:7===e?t=[7,7,7,5,5,4]:8===e?t=[8,8,8,6,4,4]:9===e?t=[9,9,9,7,5,5]:10===e&&(t=[10,10,10,8,6,6]),d({thumbnailColumns:t})},min:1,max:10}),Z&&"individual"===Z&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("h4",null,(0,qa.__)("Columns","kadence-blocks")),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen Above 1500px","kadence-blocks"),value:X[0],onChange:e=>d({thumbnailColumns:[e,X[1],X[2],X[3],X[4],X[5]]}),min:1,max:8}),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen 1200px - 1499px","kadence-blocks"),value:X[1],onChange:e=>d({thumbnailColumns:[X[0],e,X[2],X[3],X[4],X[5]]}),min:1,max:8}),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen 992px - 1199px","kadence-blocks"),value:X[2],onChange:e=>d({thumbnailColumns:[X[0],X[1],e,X[3],X[4],X[5]]}),min:1,max:8}),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen 768px - 991px","kadence-blocks"),value:X[3],onChange:e=>d({thumbnailColumns:[X[0],X[1],X[2],e,X[4],X[5]]}),min:1,max:8}),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen 544px - 767px","kadence-blocks"),value:X[4],onChange:e=>d({thumbnailColumns:[X[0],X[1],X[2],X[3],e,X[5]]}),min:1,max:8}),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Screen Below 543px","kadence-blocks"),value:X[5],onChange:e=>d({thumbnailColumns:[X[0],X[1],X[2],X[3],X[4],e]}),min:1,max:8}))),"slider"!==E&&(0,x.showSettings)("gutterSettings","kadence/advancedgallery")&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(N.ResponsiveRangeControls,{label:(0,qa.__)("Gutter","kadence-blocks"),value:""!==$?.[0]?$[0]:"",onChange:e=>d({gutter:[e,""!==$?.[1]?$[1]:"",""!==$?.[2]?$[2]:""]}),tabletValue:""!==$?.[1]?$[1]:"",onChangeTablet:e=>d({gutter:[""!==$?.[0]?$[0]:"",e,""!==$?.[2]?$[2]:""]}),mobileValue:""!==$?.[2]?$[2]:"",onChangeMobile:e=>d({gutter:[""!==$?.[0]?$[0]:"",""!==$?.[1]?$[1]:"",e]}),min:0,max:"px"!==re?12:200,step:"px"!==re?.1:1,unit:re,onUnit:e=>d({gutterUnit:e}),units:["px","em","rem"]})),("fluidcarousel"===E||"tiles"===E)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(N.ResponsiveRangeControls,{label:"tiles"===E?(0,qa.__)("Row Height","kadence-blocks"):(0,qa.__)("Carousel Height","kadence-blocks"),value:void 0!==G&&void 0!==G[0]?G[0]:"",onChange:e=>d({carouselHeight:[e,void 0!==G&&void 0!==G[1]?G[1]:"",void 0!==G&&void 0!==G[2]?G[2]:""]}),tabletValue:void 0!==G&&void 0!==G[1]?G[1]:"",onChangeTablet:e=>d({carouselHeight:[void 0!==G&&void 0!==G[0]?G[0]:"",e,void 0!==G&&void 0!==G[2]?G[2]:""]}),mobileValue:void 0!==G&&void 0!==G[2]?G[2]:"",onChangeMobile:e=>d({carouselHeight:[void 0!==G&&void 0!==G[0]?G[0]:"",void 0!==G&&void 0!==G[1]?G[1]:"",e]}),step:1,min:120,max:800,unit:"px",showUnit:!0,units:["px"]}),"fluidcarousel"===E&&(0,i.createElement)(Ma.ToggleControl,{label:(0,qa.__)("Carousel Center Mode","kadence-blocks"),checked:K,onChange:e=>d({carouselAlign:e})})),k&&void 0!==k[0]&&!me&&(0,i.createElement)(Ma.BaseControl,null,(0,i.createElement)(N.ImageSizeControl,{label:(0,qa.__)("Thumbnail Image Sizes","kadence-blocks"),slug:T,id:k[0],fullSelection:!0,selectByValue:!1,onChange:e=>(async e=>{d({thumbSize:e.slug});try{const t=await Qa(ee,w,e.slug);Ae({imagesDynamic:t})}catch(e){console.error(e)}})(e)})),k&&void 0!==k[0]&&ee&&ee.length>1&&!me&&(0,i.createElement)(Ma.BaseControl,{__nextHasNoMarginBottom:!0},(0,i.createElement)(Ma.Button,{className:"reverse-order",variant:"secondary",text:(0,qa.__)("Reverse Image Order","kadence-blocks"),icon:al,onClick:()=>{const e=JSON.parse(JSON.stringify(ee.reverse()));d({imagesDynamic:e})}}))),E&&("carousel"===E||"fluidcarousel"===E||"slider"===E||"thumbslider"===E)&&(0,i.createElement)(i.Fragment,null,(0,x.showSettings)("carouselSettings","kadence/advancedgallery")&&(0,i.createElement)(N.KadencePanelBody,{title:(0,qa.__)("Carousel Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-gallery-carousel-settings"},(0,i.createElement)(Ma.ToggleControl,{label:(0,qa.__)("Carousel Auto Play","kadence-blocks"),checked:O,onChange:e=>d({autoPlay:e})}),O&&(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Autoplay Speed","kadence-blocks"),value:L,onChange:e=>d({autoSpeed:e}),min:0,max:15e3,step:10}),("thumbslider"===E||"slider"===E)&&(0,i.createElement)(Ma.SelectControl,{label:(0,qa.__)("Transition Style","kadence-blocks"),options:[{label:(0,qa.__)("Fade","kadence-blocks"),value:"fade"},{label:(0,qa.__)("Slide","kadence-blocks"),value:"slide"}],value:se||"fade",onChange:e=>d({slideType:e})}),(0,i.createElement)(N.RangeControl,{label:(0,qa.__)("Carousel Slide Transition Speed","kadence-blocks"),value:P,onChange:e=>d({transSpeed:e}),min:100,max:15e3,step:10}),"carousel"===E&&(0,i.createElement)(Ma.SelectControl,{label:(0,qa.__)("Slides to Scroll","kadence-blocks"),options:[{label:(0,qa.__)("One","kadence-blocks"),value:"1"},{label:(0,qa.__)("All","kadence-blocks"),value:"all"}],value:z,onChange:e=>d({slidesScroll:e})}),(0,i.createElement)(Ma.SelectControl,{label:(0,qa.__)("Arrow Style","kadence-blocks"),options:[{label:(0,qa.__)("White on Dark","kadence-blocks"),value:"whiteondark"},{label:(0,qa.__)("Black on Light","kadence-blocks"),value:"blackonlight"},{label:(0,qa.__)("Outline Black","kadence-blocks"),value:"outlineblack"},{label:(0,qa.__)("Outline White","kadence-blocks"),value:"outlinewhite"},{label:(0,qa.__)("None","kadence-blocks"),value:"none"}],value:R,onChange:e=>d({arrowStyle:e})}),"thumbslider"!==E&&(0,i.createElement)(Ma.SelectControl,{label:(0,qa.__)("Dot Style","kadence-blocks"),options:[{label:(0,qa.__)("Dark","kadence-blocks"),value:"dark"},{label:(0,qa.__)("Light","kadence-blocks"),value:"light"},{label:(0,qa.__)("Outline Dark","kadence-blocks"),value:"outlinedark"},{label:(0,qa.__)("Outline Light","kadence-blocks"),value:"outlinelight"},{label:(0,qa.__)("None","kadence-blocks"),value:"none"}],value:D,onChange:e=>d({dotStyle:e})}),(0,i.createElement)(Ma.ToggleControl,{label:(0,qa.__)("Enable Image Lazy Load","kadence-blocks"),checked:oe,onChange:e=>d({lazyLoad:e})}))),(0,i.createElement)(N.KadencePanelBody,{title:(0,qa.__)("Link Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-gallery-link-settings"},(0,i.createElement)(Ma.SelectControl,{label:(0,qa.__)("Link To","kadence-blocks"),value:b,onChange:e=>d({linkTo:e}),options:nl}),"custom"===b&&me&&(0,i.createElement)(N.DynamicLinkControl,{dynamicAttribute:"link",...e}),"media"===b&&(0,i.createElement)(i.Fragment,null,k&&void 0!==k[0]&&!me&&(0,i.createElement)(N.ImageSizeControl,{label:(0,qa.__)("Link Image Size","kadence-blocks"),slug:w,id:k[0],fullSelection:!0,selectByValue:!1,onChange:e=>async function(e){d({lightSize:e.slug});const t=await Qa(ee,e.slug,T);Ae({imagesDynamic:t})}(e)}),(0,x.showSettings)("lightboxSettings","kadence/advancedgallery")&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Ma.SelectControl,{label:(0,qa.__)("Link Triggers?","kadence-blocks"),value:v,onChange:e=>d({lightbox:e}),options:[{label:(0,qa.__)("None","kadence-blocks"),value:"none"},{label:(0,qa.__)("Lightbox","kadence-blocks"),value:"magnific"},{label:(0,qa.__)("New Tab","kadence-blocks"),value:"new_tab"}]}),v&&"magnific"===v&&(0,i.createElement)(Ma.ToggleControl,{label:(0,qa.__)("Show Caption in Lightbox","kadence-blocks"),checked:W,onChange:e=>d({lightboxCaption:e})})))),(0,x.showSettings)("captionSettings","kadence/advancedgallery")&&(0,i.createElement)(N.KadencePanelBody,{title:(0,qa.__)("Caption Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-gallery-caption-settings"},(0,i.createElement)(Ma.ToggleControl,{label:(0,qa.__)("Show Captions","kadence-blocks"),checked:y,onChange:()=>async function(){const e=y;if(Ae({showCaption:!e}),e&&ee){const e=await Qa(ee,w,T);Ae({imagesDynamic:e})}}()}),y&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Ma.SelectControl,{label:(0,qa.__)("Caption Placement","kadence-blocks"),options:[{label:(0,qa.__)("Bottom of Image - Show on Hover","kadence-blocks"),value:"bottom-hover"},{label:(0,qa.__)("Bottom of Image - Show always","kadence-blocks"),value:"bottom"},{label:(0,qa.__)("Below Image - Show always","kadence-blocks"),value:"below"},{label:(0,qa.__)("Cover Image - Show on Hover","kadence-blocks"),value:"cover-hover"}],value:C,onChange:e=>d({captionStyle:e})}),("cover-hover"===C||"bottom-hover"===C)&&(0,i.createElement)(Ma.ToggleControl,{label:(0,qa.__)("Force hover effect always for mobile","kadence-blocks"),checked:J,onChange:e=>d({mobileForceHover:e})}),(0,i.createElement)(N.PopColorControl,{label:(0,qa.__)("Caption Color","kadence-blocks"),value:f&&f[0]&&f[0].color?f[0].color:"",default:"",onChange:e=>it({color:e})}),(0,i.createElement)(N.PopColorControl,{label:(0,qa.__)("Caption Background","kadence-blocks"),value:f&&f[0]&&f[0].background?f[0].background:"",default:"#000000",onChange:e=>it({background:e}),opacityValue:f&&f[0]&&void 0!==f[0].backgroundOpacity?f[0].backgroundOpacity:.5,onOpacityChange:e=>it({backgroundOpacity:e})}),(0,i.createElement)(N.TypographyControls,{fontGroup:"body",fontSize:f[0].size,onFontSize:e=>it({size:e}),fontSizeType:f[0].sizeType,onFontSizeType:e=>it({sizeType:e}),lineHeight:f[0].lineHeight,onLineHeight:e=>it({lineHeight:e}),lineHeightType:f[0].lineType,onLineHeightType:e=>it({lineType:e}),letterSpacing:f[0].letterSpacing,onLetterSpacing:e=>it({letterSpacing:e}),textTransform:f[0].textTransform,onTextTransform:e=>it({textTransform:e}),fontFamily:f[0].family,onFontFamily:e=>it({family:e}),onFontChange:e=>{it({family:e.value,google:e.google})},onFontArrayChange:e=>it(e),googleFont:f[0].google,onGoogleFont:e=>it({google:e}),loadGoogleFont:f[0].loadGoogle,onLoadGoogleFont:e=>it({loadGoogle:e}),fontVariant:f[0].variant,onFontVariant:e=>it({variant:e}),fontWeight:f[0].weight,onFontWeight:e=>it({weight:e}),fontStyle:f[0].style,onFontStyle:e=>it({style:e}),fontSubset:f[0].subset,onFontSubset:e=>it({subset:e})})))),"style"===Fe&&(0,i.createElement)(i.Fragment,null,(0,x.showSettings)("styleSettings","kadence/advancedgallery")&&(0,i.createElement)(N.KadencePanelBody,{title:(0,qa.__)("Image Style","kadence-blocks"),panelName:"kb-gallery-image-style"},!("carousel"===E&&"inherit"===_)&&!("slider"===E&&"inherit"===_)&&(0,i.createElement)(N.ResponsiveMeasurementControls,{label:(0,qa.__)("Border Radius","kadence-blocks"),value:B,tabletValue:I,mobileValue:F,onChange:e=>d({imageRadius:e}),onChangeTablet:e=>d({tabletImageRadius:e}),onChangeMobile:e=>d({mobileImageRadius:e}),unit:U,units:["px","em","rem","%"],onUnit:e=>d({imageRadiusUnit:e}),max:"em"===U||"rem"===U?24:500,step:"em"===U||"rem"===U?.1:1,min:0,isBorderRadius:!0,allowEmpty:!0}),(0,i.createElement)(Ma.SelectControl,{label:(0,qa.__)("Image Filter","kadence-blocks"),help:(0,qa.__)("Not supported in Internet Explorer","kadence-blocks"),options:[{label:(0,qa.__)("None","kadence-blocks"),value:"none"},{label:(0,qa.__)("Grayscale","kadence-blocks"),value:"grayscale"},{label:(0,qa.__)("Sepia","kadence-blocks"),value:"sepia"},{label:(0,qa.__)("Saturation","kadence-blocks"),value:"saturation"},{label:(0,qa.__)("Vintage","kadence-blocks"),value:"vintage"},{label:(0,qa.__)("Earlybird","kadence-blocks"),value:"earlybird"},{label:(0,qa.__)("Toaster","kadence-blocks"),value:"toaster"},{label:(0,qa.__)("Mayfair","kadence-blocks"),value:"mayfair"}],value:j,onChange:e=>d({imageFilter:e})})),(0,x.showSettings)("shadowSettings","kadence/advancedgallery")&&(0,i.createElement)(N.KadencePanelBody,{title:(0,qa.__)("Image Shadow","kadence-blocks"),initialOpen:!1,panelName:"kb-gallery-image-shadow"},(0,i.createElement)(Ma.ToggleControl,{label:(0,qa.__)("Enable Shadow","kadence-blocks"),checked:H,onChange:e=>d({displayShadow:e}),help:(0,qa.__)("Sliders and carousels will cut off shadows because of how items in a carousel are hidden.","kadence-blocks")}),H&&(0,i.createElement)(Ma.TabPanel,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:(0,qa.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:(0,qa.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},(e=>{let t;return e.name&&(t="hover"===e.name?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(N.BoxShadowControl,{label:(0,qa.__)("Hover Box Shadow","kadence-blocks"),enable:!0,color:q[0].color?q[0].color:"",colorDefault:"#000000",opacity:q[0].opacity,hOffset:q[0].hOffset,vOffset:q[0].vOffset,blur:q[0].blur,spread:q[0].spread,onColorChange:e=>{Ke({color:e})},onOpacityChange:e=>{Ke({opacity:e})},onHOffsetChange:e=>{Ke({hOffset:e})},onVOffsetChange:e=>{Ke({vOffset:e})},onBlurChange:e=>{Ke({blur:e})},onSpreadChange:e=>{Ke({spread:e})}})):(0,i.createElement)(i.Fragment,null,(0,i.createElement)(N.BoxShadowControl,{label:(0,qa.__)("Box Shadow","kadence-blocks"),enable:!0,color:V[0].color?V[0].color:"",colorDefault:"#000000",opacity:V[0].opacity,hOffset:V[0].hOffset,vOffset:V[0].vOffset,blur:V[0].blur,spread:V[0].spread,onColorChange:e=>{We({color:e})},onOpacityChange:e=>{We({opacity:e})},onHOffsetChange:e=>{We({hOffset:e})},onVOffsetChange:e=>{We({vOffset:e})},onBlurChange:e=>{We({blur:e})},onSpreadChange:e=>{We({spread:e})}}))),(0,i.createElement)("div",{className:e.className,key:e.className},t)})))),"advanced"===Fe&&(0,i.createElement)(i.Fragment,null,(0,x.showSettings)("spacingSettings","kadence/advancedgallery")&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(N.KadencePanelBody,{panelName:"kb-adv-gallery-spacing-settings"},(0,i.createElement)(N.ResponsiveMeasureRangeControl,{label:(0,qa.__)("Padding","kadence-blocks"),value:te,tabletValue:ae,mobileValue:le,onChange:e=>{d({padding:e})},onChangeTablet:e=>{d({tabletPadding:e})},onChangeMobile:e=>{d({mobilePadding:e})},min:0,max:"em"===ie||"rem"===ie?24:999,step:"em"===ie||"rem"===ie?.1:1,unit:ie,units:["px","em","rem","%","vh","vw"],onUnit:e=>d({paddingUnit:e}),onMouseOver:Ye.onMouseOver,onMouseOut:Ye.onMouseOut}),(0,i.createElement)(N.ResponsiveMeasureRangeControl,{label:(0,qa.__)("Margin","kadence-blocks"),value:A[0].desk,tabletValue:A[0].tablet,mobileValue:A[0].mobile,onChange:e=>{Xe({desk:e})},onChangeTablet:e=>{Xe({tablet:e})},onChangeMobile:e=>{Xe({mobile:e})},min:Je,max:Qe,step:et,unit:M,units:["px","em","rem","%","vh"],onUnit:e=>d({marginUnit:e}),onMouseOver:Ze.onMouseOver,onMouseOut:Ze.onMouseOut,allowAuto:!0})),(0,i.createElement)("div",{className:"kt-sidebar-settings-spacer"})),(0,i.createElement)(N.KadenceBlockDefaults,{attributes:t,defaultAttributes:il.attributes,blockSlug:"kadence/advancedgallery",excludedAttrs:dt}))));let pt="",bt="";je||(bt=(0,qa.__)("Gallery","kadence-blocks"),pt=(0,qa.__)("Drag images, upload new ones or select files from your library.","kadence-blocks"));const kt=(0,i.createElement)(Ma.Placeholder,{label:(0,qa.__)("Gallery","kadence-blocks"),instructions:(0,qa.__)("Dynamic source failed to load array of images.","kadence-blocks")},kadence_blocks_params.dynamic_enabled?(0,i.createElement)(N.DynamicGalleryControl,{dynamicAttribute:"images",...e}):void 0),ht=(0,i.createElement)(N.KadenceMediaPlaceholder,{labels:{title:bt,instructions:pt},selectIcon:ll,selectLabel:(0,qa.__)("Select Images","kadence-blocks"),onSelect:e=>He(e,4),accept:"image/*",multiple:!0,className:"kadence-image-upload",allowedTypes:ol,dynamicControl:kadence_blocks_params.dynamic_enabled?(0,i.createElement)(N.DynamicGalleryControl,{dynamicAttribute:"images",...e}):void 0}),yt=(0,i.createElement)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,i.createElement)("g",null,(0,i.createElement)("path",{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}))),ft=((0,i.createElement)(Ha.MediaPlaceholder,{addToGallery:je,isAppender:je,className:l,dropZoneUIOnly:je&&!a,icon:!je&&(0,i.createElement)(Ha.BlockIcon,{icon:yt}),labels:{title:!je&&(0,qa.__)("Gallery","kadence-blocks"),instructions:!je&&(0,qa.__)("Drag images, upload new ones or select files from your library.","kadence-blocks")},onSelect:e=>He(e,5),accept:"image/*",allowedTypes:ol,multiple:!0,value:je?g:void 0,onError:()=>Ve,notices:je?void 0:n}),(0,i.createElement)("style",null,`\n\t\t\t\t\t.wp-block-kadence-advancedgallery .kb-gallery-type-tiles.kb-gallery-id-${m}, .wp-block-kadence-advancedgallery .kb-gallery-type-grid.kb-gallery-id-${m}, .wp-block-kadence-advancedgallery .kb-gallery-type-masonry.kb-gallery-id-${m} {\n\t\t\t\t\t\t${Oe?"margin: -"+Oe/2+Le+";":""}\n\t\t\t\t\t}\n\t\t\t\t\t.kb-gallery-id-${m}.kb-gallery-type-masonry .kadence-blocks-gallery-item, .kb-gallery-id-${m}.kb-gallery-type-grid .kadence-blocks-gallery-item, .kb-gallery-id-${m}.kb-gallery-type-tiles .kadence-blocks-gallery-item {\n\t\t\t\t\t\t${Oe?"padding:"+Oe/2+Le+";":""}\n\t\t\t\t\t}\n\t\t\t\t\t.kb-gallery-id-${m}.kb-gallery-type-thumbslider .kt-blocks-carousel-main {\n\t\t\t\t\t\t${Oe?"margin-bottom:"+Oe+Le+";":""}\n\t\t\t\t\t}\n\n\t\t\t\t\t${f&&void 0!==f[0]&&void 0!==f[0].background?`.kb-gallery-id-${m}.kb-gallery-main-contain .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner figcaption { background: linear-gradient( 0deg, `+(0,x.KadenceColorOutput)(f[0].background?f[0].background:"#000000",""!==f[0].backgroundOpacity?f[0].backgroundOpacity:.5)+" 0, "+(0,x.KadenceColorOutput)(f[0].background?f[0].background:"#000000",0)+" 100% );}":""}\n\t\t\t\t\t${f&&void 0!==f[0]&&void 0!==f[0].background?`.kb-gallery-id-${m}.kb-gallery-caption-style-cover-hover.kb-gallery-main-contain .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner figcaption, .kb-gallery-id-${m}.kb-gallery-caption-style-below.kb-gallery-main-contain .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner figcaption { background:`+(0,x.KadenceColorOutput)(f[0].background?f[0].background:"#000000",""!==f[0].backgroundOpacity?f[0].backgroundOpacity:.5)+";}":""}\n\t\t\t\t\t${f&&void 0!==f[0]&&void 0!==f[0].color&&""!==f[0].color?`.kb-gallery-id-${m} .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner figcaption { color:`+(0,x.KadenceColorOutput)(f[0].color)+";}":""}\n\t\t\t\t\t.kb-gallery-id-${m} .kadence-blocks-gallery-item .kb-gal-image-radius { box-shadow:${H?V[0].hOffset+"px "+V[0].vOffset+"px "+V[0].blur+"px "+V[0].spread+"px "+(0,x.KadenceColorOutput)(V[0].color,V[0].opacity):"none"}; }\n\t\t\t\t\t.kb-gallery-id-${m} .kadence-blocks-gallery-item:hover .kb-gal-image-radius { box-shadow:${H?q[0].hOffset+"px "+q[0].vOffset+"px "+q[0].blur+"px "+q[0].spread+"px "+(0,x.KadenceColorOutput)(q[0].color,q[0].opacity):"none"}; }\n\t\t\t\t\t.kb-gallery-id-${m} .kadence-blocks-gallery-item .kb-gal-image-radius {\n\t\t\t\t\t\t${ze?"border-radius:"+ze[0]+U+" "+ze[1]+U+" "+ze[2]+U+" "+ze[3]+U+";":""}\n\t\t\t\t\t}\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-fluidcarousel.kb-gallery-id-${m} .kt-blocks-carousel .splide__list figure .kb-gal-image-radius, .kb-gallery-main-contain.kb-gallery-type-fluidcarousel.kb-gallery-id-${m} .kt-blocks-carousel .splide__list figure .kb-gal-image-radius img {\n\t\t\t\t\t\t${Pe?"height:"+Pe+"px;":""}\n\t\t\t\t\t}\n\t\t\t\t\t.wp-block-kadence-advancedgallery .kb-gallery-type-tiles.kb-gallery-id-${m} > .kadence-blocks-gallery-item, .wp-block-kadence-advancedgallery .kb-gallery-type-tiles.kb-gallery-id-${m} .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner img {\n\t\t\t\t\t\t${Pe?"height:"+Pe+"px;":""}\n\t\t\t\t\t}\n\t\t\t`));if(!je||Ge.constructor!==Array)return(0,i.createElement)("div",{...Re},ut,gt,Ge.constructor!==Array&&me?kt:ht);const vt=o()("kb-gallery-main-contain",{[`kb-gallery-type-${E}`]:E,[`kb-gallery-id-${m}`]:m,[`kb-gallery-caption-style-${C}`]:C,[`kb-gallery-filter-${j}`]:j,[`kb-gallery-preview-columns-${$e}`]:("grid"===E||"masonry"===E||"carousel"===E)&&$e}),wt=(e,t,l=!1)=>{const n=(0,qa.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ /* translators: %1$d is the order number of the image, %2$d is the total number of images. */
(0,qa.__)("image %1$d of %2$d in gallery","kadence-blocks"),t+1,Ge.length),r=l?Y:_;return(0,i.createElement)("div",{className:"kadence-blocks-gallery-item-inner"},(0,i.createElement)(Ja,{thumbUrl:e.thumbUrl,url:e.url,width:e.width,height:e.height,lightUrl:e.lightUrl,alt:e.alt,id:e.id,index:t,link:e.link,linkTo:b,isFirstItem:0===t,isLastItem:t+1===Ge.length,isSelected:a&&Be===t,onMoveBackward:()=>{var e;0!==(e=t)&&Me(e,e-1)},onMoveForward:()=>{var e;(e=t)!==ee.length-1&&Me(e,e+1)},onRemove:()=>{(e=>{const t=(0,s.filter)(ee,((t,a)=>e!==a));Ie(null),Ae({imagesDynamic:t})})(t)},onSelect:e=>{(e=>{Be!==e&&Ie(e)})(e)},setAttributes:e=>{((e,t)=>{ee[e]&&(ee[e].id&&((e,t)=>{const a=new window.FormData;(0,s.forEach)(t,((e,t)=>a.append(t,e))),Aa()({path:"/wp/v2/media/"+e,body:a,method:"POST"})})(ee[e].id,t),d({imagesDynamic:[...ee.slice(0,e),{...ee[e],...t},...ee.slice(e+1)]}))})(t,e)},caption:e.caption,customLink:e.customLink,linkTarget:e.linkTarget,linkSponsored:e.linkSponsored,setLinkAttributes:e=>{((e,t)=>{ee[e]&&d({imagesDynamic:[...ee.slice(0,e),{...ee[e],...t},...ee.slice(e+1)]})})(t,e)},showCaption:y,captionStyles:f,captionStyle:C,"aria-label":n,imageRatio:r,type:E,thumbnail:l,dynamicSource:me,previewDevice:be}))};return(0,i.createElement)("div",{...Re},(0,i.createElement)(N.SpacingVisualizer,{type:"outsideVertical",forceShow:Ze.isMouseOver,spacing:[(0,x.getSpacingOptionOutput)(ve,fe),(0,x.getSpacingOptionOutput)(we,fe),(0,x.getSpacingOptionOutput)(Ee,fe),(0,x.getSpacingOptionOutput)(_e,fe)]}),(0,i.createElement)(N.SpacingVisualizer,{style:{marginLeft:void 0!==_e?(0,x.getSpacingOptionOutput)(_e,fe):void 0,marginRight:void 0!==we?(0,x.getSpacingOptionOutput)(we,fe):void 0},type:"inside",forceShow:Ye.isMouseOver,spacing:[(0,x.getSpacingOptionOutput)(Se,ye),(0,x.getSpacingOptionOutput)(xe,ye),(0,x.getSpacingOptionOutput)(Ne,ye),(0,x.getSpacingOptionOutput)(Ce,ye)]}),ft,ut,gt,n,y&&f[0].google&&(0,i.createElement)(N.WebfontLoader,{config:lt}),E&&"fluidcarousel"===E&&(0,i.createElement)("div",{id:`kb-gallery-id-${m}`,style:De,className:vt},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-blocks-fluid-carousel kt-carousel-container-dotstyle-${D}${!1===K?" kb-carousel-mode-align-left":""}`},1!==Ge.length&&(0,i.createElement)(Ba,{options:rt,className:`splide kt-carousel-arrowstyle-${R} kt-carousel-dotstyle-${D}`},Ge.map(((e,t)=>(0,i.createElement)(Ia,{className:"kadence-blocks-gallery-item",key:e.id||e.url},wt(e,t))))),1===Ge.length&&Ge.map(((e,t)=>(0,i.createElement)("div",{className:"kadence-blocks-gallery-item",key:e.id||e.url},wt(e,t)))))),E&&"slider"===E&&(0,i.createElement)("div",{className:vt,style:De},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-blocks-slider kt-carousel-container-dotstyle-${D}`},1!==Ge.length&&(0,i.createElement)(Ba,{options:ot,className:`splide kt-carousel-arrowstyle-${R} kt-carousel-dotstyle-${D}`},Ge.map(((e,t)=>(0,i.createElement)(Ia,{className:"kadence-blocks-gallery-item",key:e.id||e.url},wt(e,t))))),1===Ge.length&&Ge.map(((e,t)=>(0,i.createElement)("div",{className:"kadence-blocks-gallery-item",key:e.id||e.url},wt(e,t)))))),E&&"thumbslider"===E&&(0,i.createElement)("div",{className:vt,style:De},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-blocks-slider kt-carousel-container-dotstyle-${D}`},1!==Ge.length&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Ba,{options:st,ref:ce,className:`splide kt-blocks-carousel-main kt-carousel-arrowstyle-${R} kt-carousel-dotstyle-${D}`},Ge.map(((e,t)=>(0,i.createElement)(Ia,{className:"kadence-blocks-gallery-item",key:e.id||e.url},wt(e,t))))),(0,i.createElement)(Ba,{options:ct,ref:de,className:`splide kt-carousel-arrowstyle-${R} kt-blocks-carousel-thumbnails kb-cloned-${Ge.length<X[0]?"hide":"show"} kt-carousel-dotstyle-none`},Ge.map(((e,t)=>(0,i.createElement)(Ia,{className:"kadence-blocks-gallery-item",key:e.id||e.url},wt(e,t,!0)))))),1===Ge.length&&Ge.map(((e,t)=>(0,i.createElement)("div",{className:"kadence-blocks-gallery-item",key:e.id||e.url},wt(e,t)))))),E&&"carousel"===E&&(0,i.createElement)("div",{className:vt,style:De,"data-columns-xxl":p[0],"data-columns-xl":p[1],"data-columns-lg":p[2],"data-columns-md":p[3],"data-columns-sm":p[4],"data-columns-xs":p[5]},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${D}`},(0,i.createElement)(Ba,{options:nt,ref:ce,className:`splide kt-carousel-arrowstyle-${R} kt-carousel-dotstyle-${D}`},Ge.map(((e,t)=>(0,i.createElement)(Ia,{className:"kadence-blocks-gallery-item",key:e.id||e.url},wt(e,t))))))),E&&"masonry"===E&&(0,i.createElement)(S,{style:De,className:vt},Ge.map(((e,t)=>(0,i.createElement)("div",{className:"kadence-blocks-gallery-item",key:e.id||e.url},wt(e,t))))),E&&"grid"===E&&(0,i.createElement)("ul",{style:De,className:vt,"data-columns-xxl":p[0],"data-columns-xl":p[1],"data-columns-lg":p[2],"data-columns-md":p[3],"data-columns-sm":p[4],"data-columns-xs":p[5]},Ge.map(((e,t)=>(0,i.createElement)("li",{className:"kadence-blocks-gallery-item",key:e.id||e.url},wt(e,t))))),E&&"tiles"===E&&(0,i.createElement)("ul",{style:De,className:vt},Ge.map(((e,t)=>(0,i.createElement)("li",{className:"kadence-blocks-gallery-item",key:e.id||e.url},wt(e,t))))))},save:function({attributes:e}){const{uniqueID:t,images:a,columns:l,type:n,linkTo:r,showCaption:s,captionStyle:c,imageRatio:d,imageFilter:u,lightbox:m,lightboxCaption:g,dotStyle:p,transSpeed:b,slidesScroll:k,autoPlay:h,arrowStyle:y,autoSpeed:f,carouselAlign:v,thumbnailColumns:w,thumbnailRatio:E,mobileForceHover:_,kadenceDynamic:S,kbVersion:x}=e;if(x>=2)return null;if(S&&S.images&&S.images.enable)return null;const N=o()({"kb-gallery-ul":!0,[`kb-gallery-type-${n}`]:n,"kb-masonry-init":"masonry"===n,"kb-mobile-force-hover":_,[`kb-gallery-id-${t}`]:t,[`kb-gallery-caption-style-${c}`]:c,[`kb-gallery-filter-${u}`]:u,"kb-gallery-magnific-init":"media"===r&&"magnific"===m}),C=e=>{let t;switch(r){case"media":t=e.lightUrl||e.url;break;case"custom":t=e.customLink?e.customLink:"";break;case"attachment":t=e.link}const a=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&d||"fluidcarousel"!==n&&"tiles"!==n&&e.width&&e.height,[`kb-gallery-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),l=(0,i.createElement)("div",{className:a,style:{paddingBottom:"grid"!==n&&"carousel"!==n&&"fluidcarousel"!==n&&"tiles"!==n&&"slider"!==n&&"thumbslider"!==n&&e.width&&e.height||"grid"===n&&"inherit"===d&&e.width&&e.height?e.height/e.width*100+"%":void 0}},(0,i.createElement)("img",{src:e.thumbUrl||e.url,width:e.width,height:e.height,alt:e.alt,"data-full-image":e.url,"data-light-image":e.lightUrl,"data-id":e.id,"data-link":e.link,"data-custom-link":e.customLink,"data-custom-link-target":e.linkTarget,"data-sponsored":e.linkSponsored,className:`${e.id?`wp-image-${e.id}`:"wp-image-"}${"carousel"===n||"fluidcarousel"===n||"tiles"===n||"slider"===n||"thumbslider"===n?" skip-lazy":""}`})),u=o()({"kb-gallery-figure":!0,"kb-gallery-item-has-link":t,"kadence-blocks-gallery-item-has-caption":s&&e.caption&&e.caption.length>0,"kadence-blocks-gallery-item-hide-caption":!s,[`kb-has-image-ratio-${d}`]:d&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),g=t||"below"!==c?"div":"figcaption",p=(0,i.createElement)(Ha.RichText.Content,{className:"kadence-blocks-gallery-item__caption",tagName:g,value:e.caption}),b="carousel"===n||"fluidcarousel"===n||"slider"===n||"thumbslider"===n?"div":"li",k=(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===n&&e.width&&e.height||("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&"inherit"===d&&e.width&&e.height?e.width+"px":void 0}},l,e.caption&&e.caption.length>0&&"below"!==c&&p),e.caption&&e.caption.length>0&&"below"===c&&p);let h;return"custom"===r&&"_blank"===e.linkTarget&&(h="noopener noreferrer"),"custom"===r&&"sponsored"===e.linkSponsored&&(h=h?h.concat(" sponsored"):"sponsored"),(0,i.createElement)(b,{key:e.id||e.url,className:"kadence-blocks-gallery-item"},(0,i.createElement)("div",{className:"kadence-blocks-gallery-item-inner"},(0,i.createElement)("figure",{className:u},t?(0,i.createElement)("a",{href:t,className:"kb-gallery-item-link",target:"custom"===r&&"_blank"===e.linkTarget||"media"===r&&"new_tab"===m?"_blank":void 0,rel:h||void 0},k):k)))},$=Ha.useBlockProps.save({className:`kb-gallery-wrap-id-${t}`});return(0,i.createElement)("div",{...$},"carousel"===n&&(0,i.createElement)("div",{className:N,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-gallery-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-md":l[2],"data-columns-sm":l[3],"data-columns-xs":l[4],"data-columns-ss":l[5],"data-slider-anim-speed":b,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},C(e))))))),"fluidcarousel"===n&&(0,i.createElement)("div",{className:N,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-fluid-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}${!1===v?" kb-carousel-mode-align-left":""}`,"data-slider-anim-speed":b,"data-slider-type":"fluidcarousel","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f,"data-slider-center-mode":!1===v?"false":void 0},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},C(e))))))),"slider"===n&&(0,i.createElement)("div",{className:N,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:`kt-blocks-carousel kt-carousel-container-dotstyle-${p}`},(0,i.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-slider kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-${p}`,"data-slider-anim-speed":b,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==y,"data-slider-dots":"none"!==p,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-slide-item",key:t},C(e))))))),"thumbslider"===n&&(0,i.createElement)("div",{className:N,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},(0,i.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-none"},(0,i.createElement)("div",{id:`kb-slider-${t}`,className:`kt-blocks-carousel-init kb-gallery-carousel kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-none`,"data-columns-xxl":w[0],"data-columns-xl":w[1],"data-columns-md":w[2],"data-columns-sm":w[3],"data-columns-xs":w[4],"data-columns-ss":w[5],"data-slider-anim-speed":b,"data-slider-type":"thumbnail","data-slider-nav":`kb-thumb-slider-${t}`,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":!1,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},C(e))))),(0,i.createElement)("div",{id:`kb-thumb-slider-${t}`,className:`kb-gallery-carousel kb-gallery-slider-thumbnails kt-carousel-arrowstyle-${y} kt-carousel-dotstyle-none`,"data-slider-anim-speed":b,"data-slider-type":"thumbnail","data-slider-nav":`kb-slider-${t}`,"data-slider-scroll":k,"data-slider-arrows":"none"!==y,"data-slider-dots":!1,"data-slider-hover-pause":"false","data-slider-auto":h,"data-slider-speed":f},a.map(((e,t)=>(0,i.createElement)("div",{className:"kb-slide-item kb-gallery-carousel-item",key:t},(e=>{const t=o()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&d||"fluidcarousel"!==n&&"tiles"!==n&&e.width&&e.height,[`kb-gallery-image-ratio-${E}`]:E&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),a=(0,i.createElement)("div",{className:t,style:{paddingBottom:"grid"!==n&&"carousel"!==n&&"fluidcarousel"!==n&&"tiles"!==n&&"slider"!==n&&"thumbslider"!==n&&e.width&&e.height||"grid"===n&&"inherit"===E&&e.width&&e.height?e.height/e.width*100+"%":void 0}},(0,i.createElement)("img",{src:e.thumbUrl||e.url,width:e.width,height:e.height,alt:e.alt,"data-full-image":e.url,"data-light-image":e.lightUrl,"data-id":e.id,"data-link":e.link,"data-custom-link":e.customLink,"data-custom-link-target":e.linkTarget,"data-sponsored":e.linkSponsored,className:e.id?`wp-image-${e.id}`:null})),l=o()({"kb-gallery-thumb-figure":!0,[`kb-has-image-ratio-${E}`]:E&&("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)}),r=(0,i.createElement)(Va.Fragment,null,(0,i.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===n&&e.width&&e.height||("grid"===n||"carousel"===n||"slider"===n||"thumbslider"===n)&&"inherit"===E&&e.width&&e.height?e.width+"px":void 0}},a));return(0,i.createElement)("li",{key:e.id||e.url,className:"kadence-blocks-gallery-thumb-item"},(0,i.createElement)("div",{className:"kadence-blocks-gallery-thumb-item-inner"},(0,i.createElement)("figure",{className:l},r)))})(e))))))),"tiles"===n&&(0,i.createElement)("ul",{className:N,"data-image-filter":u,"data-lightbox-caption":!!g&&"true"},a.map((e=>C(e)))),("masonry"===n||"grid"===n)&&(0,i.createElement)("ul",{className:N,"data-item-selector":".kadence-blocks-gallery-item","data-image-filter":u,"data-lightbox-caption":!!g&&"true","data-columns-xxl":l[0],"data-columns-xl":l[1],"data-columns-lg":l[2],"data-columns-md":l[3],"data-columns-sm":l[4],"data-columns-xs":l[5]},a.map((e=>C(e)))))},deprecated:sl,example:{attributes:{uniqueID:"123456789",columns:[2,2,2,2,1,1],images:[{id:1,url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg",width:594,height:350},{id:1,url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg",width:594,height:350}]}}})},2485:(e,t)=>{var a;!function(){"use strict";var l={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)){if(a.length){var r=i.apply(null,a);r&&e.push(r)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var o in a)l.call(a,o)&&a[o]&&e.push(o);else e.push(a.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(a=function(){return i}.apply(t,[]))||(e.exports=a)}()},1020:(e,t,a)=>{"use strict";var l=a(1609),i=Symbol.for("react.element"),n=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),r=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,a){var l,s={},c=null,d=null;for(l in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)n.call(t,l)&&!o.hasOwnProperty(l)&&(s[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===s[l]&&(s[l]=t[l]);return{$$typeof:i,type:e,key:c,ref:d,props:s,_owner:r.current}}},4848:(e,t,a)=>{"use strict";e.exports=a(1020)},1609:e=>{"use strict";e.exports=window.React}},a={};function l(e){var i=a[e];if(void 0!==i)return i.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,l),n.exports}l.m=t,e=[],l.O=(t,a,i,n)=>{if(!a){var r=1/0;for(d=0;d<e.length;d++){a=e[d][0],i=e[d][1],n=e[d][2];for(var o=!0,s=0;s<a.length;s++)(!1&n||r>=n)&&Object.keys(l.O).every((e=>l.O[e](a[s])))?a.splice(s--,1):(o=!1,n<r&&(r=n));if(o){e.splice(d--,1);var c=i();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[a,i,n]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={3930:0,3739:0};l.O.j=t=>0===e[t];var t=(t,a)=>{var i,n,r=a[0],o=a[1],s=a[2],c=0;if(r.some((t=>0!==e[t]))){for(i in o)l.o(o,i)&&(l.m[i]=o[i]);if(s)var d=s(l)}for(t&&t(a);c<r.length;c++)n=r[c],l.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return l.O(d)},a=self.webpackChunkkadence=self.webpackChunkkadence||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var i=l.O(void 0,[3739],(()=>l(4180)));i=l.O(i),(this.kadence=this.kadence||{})["blocks-advancedgallery"]=i})();

Filemanager

Name Type Size Permission Actions
blocks Folder 0755
images Folder 0755
admin-kadence-home.asset.php File 260 B 0644
admin-kadence-home.css File 42.54 KB 0644
admin-kadence-home.js File 331.56 KB 0644
blocks-accordion.asset.php File 275 B 0644
blocks-accordion.css File 12.26 KB 0644
blocks-accordion.js File 65.94 KB 0644
blocks-advanced-form.asset.php File 404 B 0644
blocks-advanced-form.css File 30.99 KB 0644
blocks-advanced-form.js File 420.08 KB 0644
blocks-advancedbtn.asset.php File 288 B 0644
blocks-advancedbtn.css File 8.82 KB 0644
blocks-advancedbtn.js File 124.14 KB 0644
blocks-advancedgallery.asset.php File 315 B 0644
blocks-advancedgallery.css File 29.13 KB 0644
blocks-advancedgallery.js File 153.72 KB 0644
blocks-advancedheading.asset.php File 330 B 0644
blocks-advancedheading.css File 18.39 KB 0644
blocks-advancedheading.js File 126.14 KB 0644
blocks-column.asset.php File 256 B 0644
blocks-column.css File 9.03 KB 0644
blocks-column.js File 95.59 KB 0644
blocks-countdown.asset.php File 281 B 0644
blocks-countdown.css File 4.39 KB 0644
blocks-countdown.js File 65.05 KB 0644
blocks-countup.asset.php File 234 B 0644
blocks-countup.css File 91 B 0644
blocks-countup.js File 39.05 KB 0644
blocks-form.asset.php File 324 B 0644
blocks-form.css File 8.01 KB 0644
blocks-form.js File 295.96 KB 0644
blocks-googlemaps.asset.php File 287 B 0644
blocks-googlemaps.css File 515 B 0644
blocks-googlemaps.js File 152.02 KB 0644
blocks-header.asset.php File 328 B 0644
blocks-header.css File 17.33 KB 0644
blocks-header.js File 295.24 KB 0644
blocks-icon.asset.php File 261 B 0644
blocks-icon.css File 1.2 KB 0644
blocks-icon.js File 42.66 KB 0644
blocks-iconlist.asset.php File 289 B 0644
blocks-iconlist.css File 2.65 KB 0644
blocks-iconlist.js File 55.04 KB 0644
blocks-identity.asset.php File 250 B 0644
blocks-identity.css File 2.88 KB 0644
blocks-identity.js File 78.88 KB 0644
blocks-image.asset.php File 328 B 0644
blocks-image.css File 6.39 KB 0644
blocks-image.js File 64.23 KB 0644
blocks-infobox.asset.php File 303 B 0644
blocks-infobox.css File 8.58 KB 0644
blocks-infobox.js File 208.7 KB 0644
blocks-lottie.asset.php File 244 B 0644
blocks-lottie.css File 276 B 0644
blocks-lottie.js File 399.32 KB 0644
blocks-navigation-link.asset.php File 392 B 0644
blocks-navigation-link.css File 1 B 0644
blocks-navigation-link.js File 111.29 KB 0644
blocks-navigation.asset.php File 316 B 0644
blocks-navigation.css File 154.75 KB 0644
blocks-navigation.js File 185.56 KB 0644
blocks-posts.asset.php File 301 B 0644
blocks-posts.css File 5.83 KB 0644
blocks-posts.js File 27.17 KB 0644
blocks-progress-bar.asset.php File 244 B 0644
blocks-progress-bar.css File 888 B 0644
blocks-progress-bar.js File 68.32 KB 0644
blocks-rowlayout.asset.php File 361 B 0644
blocks-rowlayout.css File 114.04 KB 0644
blocks-rowlayout.js File 819.02 KB 0644
blocks-search.asset.php File 234 B 0644
blocks-search.css File 1.28 KB 0644
blocks-search.js File 28.92 KB 0644
blocks-show-more.asset.php File 244 B 0644
blocks-show-more.css File 189 B 0644
blocks-show-more.js File 11.87 KB 0644
blocks-single-icon.asset.php File 234 B 0644
blocks-single-icon.js File 16.82 KB 0644
blocks-singlebtn.asset.php File 288 B 0644
blocks-singlebtn.js File 67.43 KB 0644
blocks-spacer.asset.php File 234 B 0644
blocks-spacer.css File 1.88 KB 0644
blocks-spacer.js File 22.91 KB 0644
blocks-table.asset.php File 298 B 0644
blocks-table.css File 269 B 0644
blocks-table.js File 43.46 KB 0644
blocks-tableofcontents.asset.php File 285 B 0644
blocks-tableofcontents.css File 7.64 KB 0644
blocks-tableofcontents.js File 40.17 KB 0644
blocks-tabs.asset.php File 300 B 0644
blocks-tabs.css File 14.48 KB 0644
blocks-tabs.js File 180.84 KB 0644
blocks-testimonial.asset.php File 261 B 0644
blocks-testimonial.js File 45.21 KB 0644
blocks-testimonials.asset.php File 261 B 0644
blocks-testimonials.css File 19.51 KB 0644
blocks-testimonials.js File 246.17 KB 0644
blocks-videopopup.asset.php File 273 B 0644
blocks-videopopup.css File 1.72 KB 0644
blocks-videopopup.js File 51.68 KB 0644
components.asset.php File 363 B 0644
components.css File 93.12 KB 0644
components.js File 647.82 KB 0644
early-filters.asset.php File 212 B 0644
early-filters.js File 3.32 KB 0644
extension-block-css.asset.php File 231 B 0644
extension-block-css.js File 503.13 KB 0644
extension-image-picker.asset.php File 219 B 0644
extension-image-picker.css File 6.1 KB 0644
extension-image-picker.js File 88.64 KB 0644
extension-kadence-base.asset.php File 99 B 0644
extension-kadence-base.js File 198 B 0644
extension-stores.asset.php File 103 B 0644
extension-stores.js File 5.86 KB 0644
header-visual-builder.asset.php File 239 B 0644
header-visual-builder.css File 8.93 KB 0644
header-visual-builder.js File 63.86 KB 0644
helpers.asset.php File 187 B 0644
helpers.js File 27.17 KB 0644
icons.asset.php File 91 B 0644
icons.js File 457.37 KB 0644
plugin-kadence-control.asset.php File 374 B 0644
plugin-kadence-control.css File 4.18 KB 0644
plugin-kadence-control.js File 155.14 KB 0644
style-blocks-accordion.css File 10.96 KB 0644
style-blocks-advanced-form.css File 16.23 KB 0644
style-blocks-advancedbtn.css File 2.62 KB 0644
style-blocks-advancedgallery.css File 29.79 KB 0644
style-blocks-advancedheading.css File 196 B 0644
style-blocks-column.css File 1.44 KB 0644
style-blocks-countdown.css File 3.7 KB 0644
style-blocks-form.css File 9.49 KB 0644
style-blocks-header.css File 10.18 KB 0644
style-blocks-icon.css File 1.02 KB 0644
style-blocks-iconlist.css File 3.51 KB 0644
style-blocks-identity.css File 2.41 KB 0644
style-blocks-image.css File 4.5 KB 0644
style-blocks-infobox.css File 7.54 KB 0644
style-blocks-lottie.css File 239 B 0644
style-blocks-navigation.css File 96.07 KB 0644
style-blocks-posts.css File 8.37 KB 0644
style-blocks-progress-bar.css File 813 B 0644
style-blocks-rowlayout.css File 7.83 KB 0644
style-blocks-search.css File 1.28 KB 0644
style-blocks-spacer.css File 2.25 KB 0644
style-blocks-table.css File 112 B 0644
style-blocks-tableofcontents.css File 8.29 KB 0644
style-blocks-tabs.css File 10.23 KB 0644
style-blocks-testimonials.css File 10.54 KB 0644
style-blocks-videopopup.css File 4.59 KB 0644