(globalThis.webpackChunksakurairo_scripts=globalThis.webpackChunksakurairo_scripts||[]).push([[8279],{3552:function(o){var t,e,s;o.exports=(t=function(){return(t=Object.assign||function(o){for(var t,e=1,s=arguments.length;e<s;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o}).apply(this,arguments)},e="lgBeforeOpen",s={margin:40,mediumZoom:!0,backgroundColor:"#000"},function(){function o(o,e){var r=this;this.core=o,this.$LG=e,this.core.getMediaContainerPosition=function(){return{top:r.settings.margin,bottom:r.settings.margin}};var i={controls:!1,download:!1,counter:!1,showCloseIcon:!1,extraProps:["lgBackgroundColor"],closeOnTap:!1,enableSwipe:!1,enableDrag:!1,swipeToClose:!1,addClass:this.core.settings.addClass+" lg-medium-zoom"};return this.core.settings=t(t({},this.core.settings),i),this.settings=t(t(t({},s),this.core.settings),i),this}return o.prototype.toggleItemClass=function(){for(var o=0;o<this.core.items.length;o++)this.$LG(this.core.items[o]).toggleClass("lg-medium-zoom-item")},o.prototype.init=function(){var o=this;this.settings.mediumZoom&&(this.core.LGel.on(e+".medium",(function(){o.core.$backdrop.css("background-color",o.core.galleryItems[o.core.index].lgBackgroundColor||o.settings.backgroundColor)})),this.toggleItemClass(),this.core.outer.on("click.lg.medium",(function(){o.core.closeGallery()})))},o.prototype.destroy=function(){this.toggleItemClass()},o}())}}]);
//# sourceMappingURL=lg-4.js.map