PageSourceSearch

https://www.buxbearstorage.com/javascripts/home-47d843ad08.min.js

js buxbearstorage.com collected 2026-09-29 13:48:59 UTC 25,011 bytes, 1 lines download raw bytes

1!function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var i=function(){function i(t){var e=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),this.config=i.mergeSettings(t),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something wrong with your selector 😭");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=[].slice.call(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=i.webkitOrNot(),["resizeHandler","touchstartHandler","touchendHandler","touchmoveHandler","mousedownHandler","mouseupHandler","mouseleaveHandler","mousemoveHandler","clickHandler"].forEach((function(t){e[t]=e[t].bind(e)})),this.init()}var o,s,r;return o=i,r=[{key:"mergeSettings",value:function(t){var e={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:function(){},onChange:function(){}},i=t;for(var o in i)e[o]=i[o];return e}},{key:"webkitOrNot",value:function(){return"string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform"}}],(s=[{key:"attachEvents",value:function(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}},{key:"detachEvents",value:function(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}},{key:"init",value:function(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}},{key:"buildSliderFrame",value:function(){var t=this.selectorWidth/this.perPage,e=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width="".concat(t*e,"px"),this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");var i=document.createDocumentFragment();if(this.config.loop)for(var o=this.innerElements.length-this.perPage;o<this.innerElements.length;o++){var s=this.buildSliderFrameItem(this.innerElements[o].cloneNode(!0));i.appendChild(s)}for(var r=0;r<this.innerElements.length;r++){var n=this.buildSliderFrameItem(this.innerElements[r]);i.appendChild(n)}if(this.config.loop)for(var a=0;a<this.perPage;a++){var h=this.buildSliderFrameItem(this.innerElements[a].cloneNode(!0));i.appendChild(h)}this.sliderFrame.appendChild(i),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent()}},{key:"buildSliderFrameItem",value:function(t){var e=document.createElement("div");return e.style.cssFloat=this.config.rtl?"right":"left",e.style.float=this.config.rtl?"right":"left",e.style.width="".concat(this.config.loop?100/(this.innerElements.length+2*this.perPage):100/this.innerElements.length,"%"),e.a
1ppendChild(t),e}},{key:"resolveSlidesNumber",value:function(){if("number"==typeof this.config.perPage)this.perPage=this.config.perPage;else if("object"===t(this.config.perPage))for(var e in this.perPage=1,this.config.perPage)window.innerWidth>=e&&(this.perPage=this.config.perPage[e])}},{key:"prev",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1?arguments[1]:void 0;if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){var o=this.currentSlide-t<0;if(o){this.disableTransition();var s=this.currentSlide+this.innerElements.length,r=this.perPage,n=s+r,a=(this.config.rtl?1:-1)*n*(this.selectorWidth/this.perPage),h=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d(".concat(a+h,"px, 0, 0)"),this.currentSlide=s-t}else this.currentSlide=this.currentSlide-t}else this.currentSlide=Math.max(this.currentSlide-t,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),e&&e.call(this))}}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1?arguments[1]:void 0;if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){var o=this.currentSlide+t>this.innerElements.length-this.perPage;if(o){this.disableTransition();var s=this.currentSlide-this.innerElements.length,r=this.perPage,n=s+r,a=(this.config.rtl?1:-1)*n*(this.selectorWidth/this.perPage),h=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d(".concat(a+h,"px, 0, 0)"),this.currentSlide=s+t}else this.currentSlide=this.currentSlide+t}else this.currentSlide=Math.min(this.currentSlide+t,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),e&&e.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing)}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all ".concat(this.config.duration,"ms ").concat(this.config.easing),this.sliderFrame.style.transition="all ".concat(this.config.duration,"ms ").concat(this.config.easing)}},{key:"goTo",value:function(t,e){if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;this.currentSlide=this.config.loop?t%this.innerElements.length:Math.min(Math.max(t,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),e&&e.call(this))}}},{key:"slideToCurrent",value:function(t){var e=this,i=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,o=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage);t?requestAnimationFrame((function(){requestAnimationFrame((function(){e.enableTransition(),e.sliderFrame.style[e.transformProperty]="translate3d(".concat(o,"px, 0, 0)")}))})):this.sliderFrame.style[this.transformProperty]="translate3d(".concat(o,"px, 0, 0)")}},{key:"updateAfterDrag",value:function(){var t=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),e=Math.abs(t),i=this.config.multipleDrag?Math.ceil(e/(this.selectorWidth/this.perPage)):1,o=t>0&&this.currentSlide-i<0,s=t<0&&this.currentSlide+i>this.innerElements.length-this.perPage;t>0&&e>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):t<0&&e>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(o||s)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(t){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(t.target.nodeName)||(t.stopPropagation(),this.pointerDown=!0,this.drag.startX=t.touches[0].pageX,this.drag.startY=t.touches[0].pageY)}},{key:"touchendHandler",value:function(t){t.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(t){if(t.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-t.touches[0].pageY)<Math.abs(this.drag.startX-t.touches[0].pageX)),this.pointerDown&&this.drag.letItGo){t.preventDefault(),this.drag.endX=t.touches[0].pageX,this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing);var e=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),i=this.drag.endX-this.drag.startX,o=this.config.rtl?e+i:e-i;this.sliderFrame.style[this.transformProperty]="translate3d(".concat((this.config.rtl?1:-1)*o,"px, 0, 0)")}}},{key:"mousedownHandler",value:function(t){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(t.target.nodeName)||(t.preventDefault(),t.stopPropagation(),this.pointerDown=!0,this.drag.startX=t.pageX)}},{key:"mouseupHandler",value:function(t){t.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"mousemoveHandler",value:function(t){if(t.preventDefault(),this.pointerDown){"A"===t.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=t.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing);var e=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),i=this.drag.endX-this.drag.startX,o=this.config.rtl?e+i:e-i;this.sliderFrame.style[this.transformProperty]="translate3d(".concat((this.config.rtl?1:-1)*o,"px, 0, 0)")}}},{key:"mouseleaveHandler",value:function(t){this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=t.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())}},{key:"clickHandler",value:function(t){this.drag.preventClick&&t.preventDefault(),this.drag.preventClick=!1}},{key:"remove",value:function(t,e){if(t<0||t>=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var i=t<this.currentSlide,o=this.currentSlide+this.perPage-1===t;(i||o)&&this.currentSlide--,this.innerElements.splice(t,1),this.buildSliderFrame(),e&&e.call(this)}}
1,{key:"insert",value:function(t,e,i){if(e<0||e>this.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(t))throw new Error("The same item in a carousel? Really? Nope 😭");var o=e<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=o?this.currentSlide+1:this.currentSlide,this.innerElements.splice(e,0,t),this.buildSliderFrame(),i&&i.call(this)}},{key:"prepend",value:function(t,e){this.insert(t,0),e&&e.call(this)}},{key:"append",value:function(t,e){this.insert(t,this.innerElements.length+1),e&&e.call(this)}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;if(this.detachEvents(),this.selector.style.cursor="auto",t){for(var i=document.createDocumentFragment(),o=0;o<this.innerElements.length;o++)i.appendChild(this.innerElements[o]);this.selector.innerHTML="",this.selector.appendChild(i),this.selector.removeAttribute("style")}e&&e.call(this)}}])&&e(o.prototype,s),r&&e(o,r),i}();window.Siema=i}(),function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.configs=t,this.widget=$("#"+t.widgetId),this.setupCTAs()}var i,o,s;return i=e,(o=[{key:"setupCTAs",value:function(){var t=this;this.widget.find(".widget-slug").on("click",(function(t){t.preventDefault()})),this.widget.find(".cta-item a").on("click",(function(e){t.trackCTAEvents($(e.currentTarget))})),G5.isPreview&&this.setupPreviewUrls()}},{key:"setupPreviewUrls",value:function(){for(var t=1;t<=4;t++){var e=this.configs["previewUrl".concat(t)],i=this.widget.find(".cta-item-".concat(t," a"));e.length&&i.length&&i.attr("href",e)}}},{key:"trackCTAEvents",value:function(t){if("function"==typeof ga){var e=t.text();try{ga("send","event","CTA","click",e)}catch(t){}try{ga("g5.send","event","CTA","click",e)}catch(t){}}}}])&&t(i.prototype,o),s&&t(i,s),e}();G5.loadWidgetConfigs(".action-calls .config",e)}(),function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var e=function(){function e(t){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.window=$(window),this.widget=$("#".concat(t.widgetId)),this.displayType=t.displayType,this.evenGridColumns=t.evenGridColumns,this.evenGridType=this.widget.hasClass("grid-layout-1")||this.widget.hasClass("grid-layout-8"),this.gridRowGap=t.gridRowGap,this.photoSlideTransition=t.photoSlideTransition,this.photoSlideTransitionDuration=t.photoSlideTransitionDuration,this.enableLoadMore=t.enableLoadMore,this.loadMoreThreshold=t.loadMoreThreshold,this.loadMoreTextClosed=t.loadMoreTextClosed,this.loadMoreTextOpen=t.loadMoreTextOpen,this.mobileBreakpoint=window.matchMedia("(max-width: ".concat(t.mobileBreakpoint,")")).matches,this.lightbox=$("#".concat(t.lightboxId)),this.maxPhotoCards=50,this.photoCardContainer=".photo-card-container",this.photoCardsContainer=this.widget.find(".photo-cards-container"),this.widgetPhotoCards=this.widget.find(".photo-cards-container .photo-card"),this.photoCardContainers=this.widgetPhotoCards.find(this.photoCardContainer),this.parentContentStripe=this.widget.closest(".content-stripe-widget"),this.loadMoreButton=this.widget.find(".load-more-button"),this.window.resize((function(){return i.mobileBreakpoint=window.matchMedia("(max-width: ".concat(t.mobileBreakpoint,")")).matches})),this.widgetInitial(),this.widgetSlideTransition(),this.photoCardsMosaicResponsive(),this.gridGapSupport(),this.window.resize((function(){i.gridGapSupport(),i.photoCardsMosaicResponsive()})),this.cssFallbacks(),this.photoCardDisplay(),this.galleryDisplay(),this.addImagesFallbacks(),"true"==this.enableLoadMore&&"grid-layout-8"==t.gridType&&this.setupLoadMore()}var i,o,s;return i=e,(o=[{key:"widgetInitial",value:function(){var t=this.widgetPhotoCards.size(),e=this.widget.find(".total-card-count");this.widget.addClass("photo-cards-".concat(t)),e.text(t);var i=0;this.photoCardContainers.each((function(t,e){var o=$(e);i++,o.find(".this-card-count").text(i)}))}},{key:"widgetSlideTransition",value:function(){var t=this;if(this.photoSlideTransition){var e,i=function(){for(var e=t.window.scrollTop(),i=t.
1window.height()+e,o=function(o){var s=t.widgetPhotoCards.eq(o).find(t.photoCardContainer);if(s.length){var r=s.offset().top;r+s.outerHeight()>=e&&r<=i&&(s.hasClass("photo-slide-complete")||(s.addClass("photo-slide-transition"),s.one("transitionend",(function(){s.addClass("photo-slide-complete")}))))}},s=0;s<t.maxPhotoCards;s++)o(s)};this.window.one("load",i),this.window.on("scroll",(function(){clearTimeout(e),e=setTimeout(i,100)})),i()}}},{key:"photoCardsMosaicResponsive",value:function(){this.mobileBreakpoint?this.widget.addClass("mobile"):this.widget.removeClass("mobile")}},{key:"gridGapSupport",value:function(){if(!this.mobileBreakpoint)if(this.evenGridType){if(this.gridRowGap.indexOf("%")>=0){var t=parseFloat(this.gridRowGap.replace(/[^-\d\.]/g,"")),e=parseFloat(this.photoCardsContainer.css("height").replace(/[^-\d\.]/g,""))*t/100;this.photoCardsContainer.css("grid-row-gap",e)}}else{for(var i=this.photoCardsContainer.offset().top,o=this.photoCardsContainer.height()+i,s=[],r=0;r<this.maxPhotoCards;r++)if(this.widgetPhotoCards.eq(r).length){var n=o-(this.widgetPhotoCards.eq(r).find(this.photoCardContainer).offset().top+this.widgetPhotoCards.eq(r).find(this.photoCardContainer).outerHeight());s.push(n)}var a=Math.min.apply(null,s);this.widget.find(".photo-cards-mosaic-container").css("margin-bottom",-a)}}},{key:"objectFitSupport",value:function(){this.evenGridType||(this.widget.addClass("photo-cards-mosaic-object-fit-support"),this.photoCardContainers.each((function(t,e){var i=$(e),o=i.find(".front-photo"),s=o.attr("src");o.length&&(i.prepend('<div class="front-photo-alt"></div>'),i.find(".front-photo-alt").css("backgroundImage","url(".concat(s,")")))})))}},{key:"gridColumnsSupport",value:function(){this.evenGridType&&(this.widget.addClass("grid-columns-support"),this.widgetPhotoCards.css("width","".concat(100/this.evenGridColumns,"%")))}},{key:"cssFallbacks",value:function(){window.CSS&&window.CSS.supports||window.supportsCSS?(CSS.supports("(object-fit: cover) or (object-position: center)")||this.objectFitSupport(),CSS.supports("(grid-template-columns: 1fr)")||this.gridColumnsSupport()):(this.gridColumnsSupport(),this.objectFitSupport())}},{key:"photoCardDisplay",value:function(){"photo-cards"===this.displayType&&(this.photoCardTransitionClassToggle(),this.photoChecks(),this.touchTest(),this.touchHovers())}},{key:"photoCardTransitionClassToggle",value:function(){this.photoCardContainers.on("transitionstart",(function(t){$(t.currentTarget).removeClass("allow-scroll")})),this.photoCardContainers.on("transitionend",(function(t){$(t.currentTarget).addClass("allow-scroll")}))}},{key:"photoChecks",value:function(){this.photoCardContainers.each((function(t,e){var i=$(e),o=i.find(".front-photo"),s=i.find(".back-photo");if(o.length||i.addClass("no-front-photo"),s.length){var r=s.attr("src");i.prepend('<div class="back-photo-alt"></div>'),i.addClass("back-photo-card"),i.find(".back-photo-alt").css("backgroundImage","url(".concat(r,")")),s.remove()}}))}},{key:"touchTest",value:function(){$("html").hasClass("touchevents")&&this.photoCardContainers.addClass("touchevents-photo-cards")}},{key:"touchHovers",value:function(t){var e=this;$("body").on("touchend",(function(){e.photoCardContainers.removeClass("hover")})),this.photoCardContainers.on("touchend",(function(t){e.photoCardContainers.removeClass("hover"),$(t.currentTarget).hasClass("no-photo-card-transition")||($(t.currentTarget).addClass("hover"),t.stopPropagation())})),this.widgetPhotoCards.find("a").on("touchend",(function(t){var i=$(t.currentTarget).closest(e.photoCardContainer);i.hasClass("hover")||i.hasClass("no-photo-card-transition")||t.preventDefault()}))}},{key:"galleryDisplay",value:function(){var t=this;"gallery"===this.displayType&&(this.lightboxLeftArrow=this.lightbox.find(".photo-cards-lightbox-left-arrow"),this.lightboxRightArrow=this.lightbox.find(".photo-cards-lightbox-right-arrow"),this.lightboxResponsive(),this.initLightbox(),this.lightboxClick(),this.window.resize((function(){return t.lightboxResponsive()})))}},{key:"removeFAutoFromImageUrl",value:function(t){return t.replace(/(.+)(cloudinary.com)(.+)(f_auto,|,f_auto)(.+)$/i,"$1$2$3$5")}},{key:"removeFAutoFromSrcSet",value:function(t){return t.split(/(\b[0-9]+w, )/i).map(this.removeFAutoFromImageUrl).join("")}},{key:"setImageSrcFallback",value:function(t){var e=t.src,i=(t.srcset,this.removeFAutoFromImageUrl(e));t.src=i}},{key:"setImageSrcsetFallback",value:function(t){var e=t.srcset,i=this.removeFAutoFromSrcSet(e);t.srcset=i}},{key:"setImageFallback",value:function(t){this.setImageSrcFallback(t),this.setImageSrcsetFallback(t)}},{key:"isImageLoadedWithError",value:function(t){return t.complete&&0===t.naturalWi
1dth}},{key:"addImagesFallbacks",value:function(){var t=this;this.widget.find("img.front-photo").each((function(e,i){t.isImageLoadedWithError(i)?t.setImageFallback(i):i.addEventListener("error",(function e(){t.setImageFallback(i),i.removeEventListener("error",e)}))}))}},{key:"initLightbox",value:function(){var t="".concat(this.widget.selector," .siema");this.slideSiema=new Siema({selector:t,draggable:!0,onChange:this.setupSlider.bind(this),onInit:this.initSlider.bind(this)}),this.lightboxExitClick(),this.lightboxLeftArrowClick(),this.lightboxRightArrowClick(),this.lightboxKeyUps()}},{key:"lightboxResponsive",value:function(){var t=this.widget.find(".photo-cards-mosaic-container");this.mobileBreakpoint?(this.lightbox.addClass("mobile"),this.lightbox.closest(".col").removeClass("photo-cards-mosaic-lightbox-open"),this.lightbox.closest(".row").removeClass("photo-cards-mosaic-lightbox-open"),t.hide()):(this.lightbox.removeClass("mobile"),this.lightbox.hasClass("show")&&(this.lightbox.closest(".col").addClass("photo-cards-mosaic-lightbox-open"),this.lightbox.closest(".row").addClass("photo-cards-mosaic-lightbox-open")),t.show())}},{key:"lightboxClick",value:function(){var t=this;this.photoCardContainers.click((function(e){if(!t.mobileBreakpoint){var i=$(e.target).closest(".photo-card"),o=t.widgetPhotoCards.index(i);t.slideSiema.goTo(o),t.checkArrows(),t.widget.find(".photo-cards-lightbox").addClass("show"),t.lightbox.closest(".col").addClass("photo-cards-mosaic-lightbox-open"),t.lightbox.closest(".row").addClass("photo-cards-mosaic-lightbox-open"),t.triggerResize()}}))}},{key:"initSlider",value:function(){var t=this;this.setupSlider(),setTimeout((function(){return t.triggerResize()}),200)}},{key:"setupSlider",value:function(){this.setCounter(),this.checkArrows()}},{key:"setCounter",value:function(){var t=this.slideSiema?this.slideSiema.currentSlide:0;this.widget.find(".photo-cards-lightbox-counter").text("".concat(t+1," / ").concat(this.widgetPhotoCards.length))}},{key:"checkArrows",value:function(){this.slideSiema?0===this.slideSiema.currentSlide?(this.lightboxLeftArrow.hide(),this.lightboxRightArrow.show()):this.slideSiema.currentSlide===this.widgetPhotoCards.length-1?(this.lightboxRightArrow.hide(),this.lightboxLeftArrow.show()):(this.lightboxLeftArrow.show(),this.lightboxRightArrow.show()):(this.lightboxLeftArrow.hide(),this.lightboxRightArrow.show())}},{key:"triggerResize",value:function(){var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},{key:"lightboxExitFunc",value:function(){this.lightbox.removeClass("show"),this.lightbox.closest(".col").removeClass("photo-cards-mosaic-lightbox-open"),this.lightbox.closest(".row").removeClass("photo-cards-mosaic-lightbox-open")}},{key:"lightboxLeftArrowFunc",value:function(){this.slideSiema.prev()}},{key:"lightboxRightArrowFunc",value:function(){this.slideSiema.next()}},{key:"lightboxExitClick",value:function(){var t=this;this.lightbox.find(".photo-cards-lightbox-exit").click((function(){t.lightboxExitFunc()}))}},{key:"lightboxLeftArrowClick",value:function(){var t=this;this.lightboxLeftArrow.click((function(){t.lightboxLeftArrowFunc()}))}},{key:"lightboxRightArrowClick",value:function(){var t=this;this.lightboxRightArrow.click((function(){t.lightboxRightArrowFunc()}))}},{key:"lightboxKeyUps",value:function(){var t=this;$(document).keyup((function(e){t.lightbox.hasClass("show")&&(27===e.which?t.lightboxExitFunc():37===e.which?t.lightboxLeftArrowFunc():39===e.which&&t.lightboxRightArrowFunc())}))}},{key:"togglePhotoThreshold",value:function(t){this.widgetPhotoCards.slice(this.loadMoreThreshold).toggleClass("hide",t)}},{key:"setupLoadMore",value:function(){var t=this;this.togglePhotoThreshold(!0),this.loadMoreButton.click((function(e){t.photoCardsContainer.hasClass("hide-threshold")?(t.photoCardsContainer.removeClass("hide-threshold").addClass("show-threshold"),t.togglePhotoThreshold(!1),t.loadMoreButton[0].innerHTML=t.loadMoreTextOpen):(t.photoCardsContainer.removeClass("show-threshold").addClass("hide-threshold"),t.togglePhotoThreshold(!0),t.loadMoreButton[0].innerHTML=t.loadMoreTextClosed,t.photoCardsContainer[0].scrollIntoView({behavior:"smooth"}))}))}}])&&t(i.prototype,o),s&&t(i,s),e}();G5.loadWidgetConfigs(".photo-cards-mosaic .config",e)}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.