Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fslightbox

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fslightbox - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

2

fslightbox.min.js

@@ -1,1 +0,1 @@

!function(){return function e(t,s,n){function i(a,r){if(!s[a]){if(!t[a]){var d="function"==typeof require&&require;if(!r&&d)return d(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=s[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,s,n)}return s[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}}()({1:[function(e,t,s){t.exports={loader:'<div class="lds-ring"><div></div><div></div><div></div><div></div></div>',DOMObject:"",createHolder:function(e,t){let s=new this.DOMObject("div").addClassesAndCreate(["fslightbox-source-holder"]);return s.innerHTML=this.loader,e.data.sources[t]=s,s},renderHolderInitial:function(e,t,s){this.DOMObject=s;const n=e.getSourcesIndexes.all(t),i=e.data.total_slides;if(i>=3){const t=this.createHolder(e,n.previous);e.transforms.transformMinus(t),e.data.mediaHolder.holder.appendChild(t)}if(i>=1){const t=this.createHolder(e,n.current);e.data.mediaHolder.holder.appendChild(t)}if(i>=2){const t=this.createHolder(e,n.next);e.transforms.transformPlus(t),e.data.mediaHolder.holder.appendChild(t)}},renderHolder:function(e,t,s){switch(s){case"previous":this.renderHolderPrevious(e,t);break;case"current":this.renderHolderCurrent(e,t);break;case"next":this.renderHolderNext(e,t)}},renderHolderPrevious:function(e,t){const s=e.getSourcesIndexes.previous(t),n=this.createHolder(e,s);e.transforms.transformMinus(n),e.data.mediaHolder.holder.insertAdjacentElement("afterbegin",n)},renderHolderNext:function(e,t){const s=e.getSourcesIndexes.next(t),n=this.createHolder(e,s);e.transforms.transformPlus(n),e.data.mediaHolder.holder.appendChild(n)},renderHolderCurrent:function(e,t){const s=e.getSourcesIndexes.all(t),n=this.createHolder(e,s.current);e.transforms.transformNull(n),e.data.mediaHolder.holder.insertBefore(n,e.data.sources[s.next])},previousSlideViaButton:function(e,t){1===t?e.data.slide=e.data.total_slides:e.data.slide-=1,e.stopVideos(),e.data.updateSlideNumber(e.data.slide);const s=e.getSourcesIndexes.all(e.data.slide);void 0===e.data.sources[s.previous]&&e.loadsources("previous",e.data.slide);const n=e.data.sources,i=n[s.current],o=n[s.next];o.classList.remove("fslightbox-transform-transition"),i.classList.remove("fslightbox-transform-transition"),n[s.previous].classList.remove("fslightbox-transform-transition"),o.classList.remove("fslightbox-fade-in-animation"),o.offsetWidth,o.classList.add("fslightbox-fade-in-animation"),i.classList.remove("fslightbox-fade-in-animation"),i.offsetWidth,i.classList.add("fslightbox-fade-in-animation"),e.transforms.transformNull(i),e.transforms.transformPlus(o)},nextSlideViaButton:function(e,t){t===e.data.total_slides?e.data.slide=1:e.data.slide+=1,e.stopVideos(),e.data.updateSlideNumber(e.data.slide);const s=e.getSourcesIndexes.all(e.data.slide);void 0===e.data.sources[s.next]&&e.loadsources("next",e.data.slide);const n=e.data.sources,i=n[s.current],o=n[s.previous];o.classList.remove("fslightbox-transform-transition"),i.classList.remove("fslightbox-transform-transition"),n[s.next].classList.remove("fslightbox-transform-transition"),o.classList.remove("fslightbox-fade-in-animation"),o.offsetWidth,o.classList.add("fslightbox-fade-in-animation"),i.classList.remove("fslightbox-fade-in-animation"),i.offsetWidth,i.classList.add("fslightbox-fade-in-animation"),e.transforms.transformNull(i),e.transforms.transformMinus(o)}}},{}],2:[function(e,t,s){t.exports=function(e,t){const s=new t("div").addClassesAndCreate(["fslightbox-invisible-hover"]),n={mediaHolder:e.data.mediaHolder.holder,invisibleHover:s,holderWrapper:e.data.holderWrapper},i=e.data.sources,o=e.data.urls.length;let a,r,d=!1,l=!0;const c=function(t){"VIDEO"===t.target.tagName||e.data.isMobile||t.preventDefault();for(let e in n)n[e].classList.add("fslightbox-cursor-grabbing");d=!0,a=e.data.isMobile?t.touches[0].clientX:t.clientX,r=0},u=function(){e.element.contains(s)&&e.element.removeChild(s);let t=e.getSourcesIndexes.all(e.data.slide);for(let e in n)n[e].classList.remove("fslightbox-cursor-grabbing");d=!1,0!==r&&l&&(l=!1,i[t.previous].classList.add("fslightbox-transform-transition"),i[t.current].classList.add("fslightbox-transform-transition"),i[t.next].classList.add("fslightbox-transform-transition"),r>0?(1===e.data.slide?e.data.updateSlideNumber(e.data.total_slides):e.data.updateSlideNumber(e.data.slide-1),o>=2?(e.transforms.transformPlus(i[t.current]),e.transforms.transformNull(i[t.previous])):e.transforms.transformNull(i[t.current]),t=e.getSourcesIndexes.all(e.data.slide),void 0===e.data.sources[t.previous]&&e.loadsources("previous",e.data.slide)):r<0&&(e.data.slide===e.data.total_slides?e.data.updateSlideNumber(1):e.data.updateSlideNumber(e.data.slide+1),o>1?(e.transforms.transformMinus(i[t.current]),e.transforms.transformNull(i[t.next])):e.transforms.transformNull(i[t.current]),t=e.getSourcesIndexes.all(e.data.slide),void 0===e.data.sources[t.next]&&e.loadsources("next",e.data.slide)),r=0,e.stopVideos(),setTimeout(function(){i[t.previous].classList.remove("fslightbox-transform-transition"),i[t.current].classList.remove("fslightbox-transform-transition"),i[t.next].classList.remove("fslightbox-transform-transition"),l=!0},250))},h=function(t){if(!d||!l)return;let n;n=e.data.isMobile?t.touches[0].clientX:t.clientX,e.element.appendChild(s),r=n-a;const c=e.getSourcesIndexes.all(e.data.slide);o>=3&&(i[c.previous].style.transform="translate("+(-e.data.slideDistance*window.innerWidth+r)+"px,0)"),o>=1&&(i[c.current].style.transform="translate("+r+"px,0)"),o>=2&&(i[c.next].style.transform="translate("+(e.data.slideDistance*window.innerWidth+r)+"px,0)")};for(let e in n)n[e].addEventListener("mousedown",c),n[e].addEventListener("touchstart",c,{passive:!0});window.addEventListener("mouseup",u),window.addEventListener("touchend",u),s.addEventListener("mouseup",u),s.addEventListener("touchend",u),window.addEventListener("mousemove",h),window.addEventListener("touchmove",h),e.data.nav.addEventListener("mousedown",function(e){e.preventDefault()})}},{}],3:[function(e,t,s){window.fsLightboxObject=function(){this.element=new s("div").addClassesAndCreate(["fslightbox-container"]),this.data={slide:1,total_slides:1,slideDistance:1.3,slideCounter:!0,slideButtons:!0,isFirstTimeLoad:!1,moveSlidesViaDrag:!0,toolbarButtons:{close:!0,fullscreen:!0},name:"",isMobile:!1,urls:[],sources:[],sourcesLoaded:[],rememberedSourcesDimensions:[],videos:[],videosPosters:[],holderWrapper:{},mediaHolder:{},nav:{},toolbar:{},slideCounterElem:{},initiated:!1,fullscreen:!1,fadingOut:!1,onResizeEvent:{},updateSlideNumber:function(){}};const t=this;function s(e){this.elem=document.createElement(e),this.addClassesAndCreate=function(e){for(let t in e)this.elem.classList.add(e[t]);return this.elem}}function n(){let e=this;const s=t.data.sources;this.mediaHolderDimensions=function(){window.innerWidth>1e3?(t.data.mediaHolder.holder.style.width=window.innerWidth-.1*window.innerWidth+"px",t.data.mediaHolder.holder.style.height=window.innerHeight-.1*window.innerHeight+"px"):(t.data.mediaHolder.holder.style.width=window.innerWidth+"px",t.data.mediaHolder.holder.style.height=window.innerHeight+"px")};window.onresize=function(){t.checkIfMobile(),e.mediaHolderDimensions(),function(){const e=t.getSourcesIndexes.all(t.data.slide),n=t.data.rememberedSourcesDimensions;for(let i in s){t.data.urls.length>2&&t.transforms.transformMinus(s[e.previous]),t.transforms.transformNull(s[e.current]),t.data.urls.length>1&&t.transforms.transformPlus(s[e.next]);const o=s[i].firstChild,a=n[i].width/n[i].height,r=parseInt(t.data.mediaHolder.holder.style.width),d=parseInt(t.data.mediaHolder.holder.style.height);let l=r/a;l<d-60?(o.style.height=l+"px",o.style.width=r+"px"):(l=d-60,o.style.height=l+"px",o.style.width=l*a+"px")}}(),function(){const e=t.data.sources,s=t.getSourcesIndexes.all(t.data.slide);for(let n in e)parseInt(n)!==s.previous&&parseInt(n)!==s.current&&parseInt(n)!==s.next&&(e[n].classList.remove("fslightbox-transform-transition"),t.transforms.transformMinus(e[n]))}()}}this.init=function(i){if(t.data.initiated)return t.initSetSlide(i),void t.show();t.checkIfMobile(),t.data.onResizeEvent=new n;let o=t.data.name,a=[];const r=fsLightboxHelpers.a;for(let e=0;e<r.length;e++)if(r[e].hasAttribute("fslightbox-gallery")&&r[e].getAttribute("fslightbox-gallery")===o){let s=a.push(r[e].getAttribute("href"));r[e].hasAttribute("fslightbox-video-poster")&&(t.data.videosPosters[s-1]=r[e].getAttribute("fslightbox-video-poster"))}t.data.urls=a,t.data.total_slides=a.length,new t.dom,t.throwEvent("init"),t.throwEvent("open"),e("./changeSlideByDragging.js")(t,s),t.initSetSlide(i),t.data.initiated=!0},this.initSetSlide=function(e){switch(typeof e){case"string":t.setSlide(t.data.urls.indexOf(e)+1);break;case"number":t.setSlide(e);break;case"undefined":t.setSlide(1)}},this.show=function(){const e=t.element;t.scrollbar.showScrollbar(),e.classList.remove("fslightbox-container-fadeout"),document.body.appendChild(e),t.throwEvent("show"),t.throwEvent("open"),e.classList.remove(["fslightbox-fade-in-animation"]),e.classList.add(["fslightbox-fade-in-animation"])},this.hide=function(){t.data.fullscreen&&t.toolbar.closeFullscreen(),t.element.classList.add("fslightbox-container-fadeout"),t.data.fadingOut=!0,t.throwEvent("close"),setTimeout(function(){t.scrollbar.hideScrollbar(),t.data.fadingOut=!1,document.body.removeChild(t.element)},250)},this.dom=function(){e("./renderDOM.js")(t,s)},this.throwEvent=function(e){let s;"function"==typeof Event?s=new Event(e):(s=document.createEvent("Event")).initEvent(e,!0,!0),t.element.dispatchEvent(s)},this.checkIfMobile=function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?t.data.isMobile=!0:t.data.isMobile=!1},this.scrollbar={hideScrollbar:function(){if(document.documentElement.classList.contains("fslightbox-scrollbarfix")){let e=document.querySelector(".recompense-for-scrollbar");e&&(e.style.paddingRight="0"),document.documentElement.classList.remove("fslightbox-scrollbarfix")}document.documentElement.classList.remove("fslightbox-open")},showScrollbar:function(){if(!t.data.isMobile&&document.documentElement.offsetHeight>=window.innerHeight){let e=document.querySelector(".recompense-for-scrollbar");e&&(e.style.paddingRight="17px"),document.documentElement.classList.add("fslightbox-scrollbarfix")}document.documentElement.classList.add("fslightbox-open")}},this.SVGIcon=function(){this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.path=document.createElementNS("http://www.w3.org/2000/svg","path"),this.svg.setAttributeNS(null,"class","fslightbox-svg-icon"),this.svg.setAttributeNS(null,"viewBox","0 0 15 15"),this.getSVGIcon=function(e,t,s){return this.path.setAttributeNS(null,"d",s),this.svg.setAttributeNS(null,"viewBox",e),this.svg.setAttributeNS(null,"width",t),this.svg.setAttributeNS(null,"height",t),this.svg.appendChild(this.path),this.svg}};let i=e("./toolbar");this.toolbar=new i(t,s),this.mediaHolder=function(){this.holder=new s("div").addClassesAndCreate(["fslightbox-media-holder"]),window.innerWidth>1e3?(this.holder.style.width=window.innerWidth-.1*window.innerWidth+"px",this.holder.style.height=window.innerHeight-.1*window.innerHeight+"px"):(this.holder.style.width=window.innerWidth+"px",this.holder.style.height=window.innerHeight+"px"),this.renderHolder=function(e){e.appendChild(this.holder)}},this.getSourcesIndexes={previous:function(e){let s;const n=e-1;return s=0===n?t.data.total_slides-1:n-1},next:function(e){let s;const n=e-1;return s=e===t.data.total_slides?0:n+1},all:function(e){const s=e-1,n={previous:0,current:0,next:0};return n.previous=0===s?t.data.total_slides-1:s-1,n.current=s,e===t.data.total_slides?n.next=0:n.next=s+1,n}},this.transforms={transformMinus:function(e){e.style.transform="translate("+-t.data.slideDistance*window.innerWidth+"px,0)"},transformNull:function(e){e.style.transform="translate(0,0)"},transformPlus:function(e){e.style.transform="translate("+t.data.slideDistance*window.innerWidth+"px,0)"}},this.stopVideos=function(){const e=t.data.videos;for(let s in e)!0===e[s]?void 0!==t.data.sources[s].firstChild.pause&&t.data.sources[s].firstChild.pause():t.data.sources[s].firstChild.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*")},this.setSlide=function(e){t.data.slide=e,t.data.updateSlideNumber(e);const s=t.getSourcesIndexes.all(e),n=t.data.sources;0===n.length?t.loadsources("initial",e):(void 0===n[s.previous]&&t.loadsources("previous",e),void 0===n[s.current]&&t.loadsources("current",e),void 0===n[s.next]&&t.loadsources("next",e));for(let e in n)n[e].classList.remove("fslightbox-transform-transition"),e==s.previous&&n.length>1?t.transforms.transformMinus(n[s.previous]):e!=s.current?e!=s.next?t.transforms.transformMinus(n[e]):t.transforms.transformPlus(n[s.next]):t.transforms.transformNull(n[s.current])},this.appendMethods=e("./appendSource"),this.loadsources=function(n,i){return new(e("./loadSource.js"))(t,s,n,i)}},function(){window.fsLightboxInstances=[],window.fsLightboxHelpers={a:document.getElementsByTagName("a")};let e=fsLightboxHelpers.a;for(let t=0;t<e.length;t++){if(!e[t].hasAttribute("fslightbox-gallery"))continue;const s=e[t].getAttribute("fslightbox-gallery");void 0===fsLightboxInstances[s]&&(fsLightbox=new fsLightboxObject,fsLightbox.data.name=s,fsLightboxInstances[s]=fsLightbox),e[t].addEventListener("click",function(e){e.preventDefault();let t=this.getAttribute("fslightbox-gallery");if(fsLightboxInstances[t].data.initiated)return fsLightboxInstances[t].setSlide(fsLightboxInstances[t].data.urls.indexOf(this.getAttribute("href"))+1),void fsLightboxInstances[t].show();fsLightboxInstances[t].init(this.getAttribute("href"))})}}(document,window)},{"./appendSource":1,"./changeSlideByDragging.js":2,"./loadSource.js":4,"./renderDOM.js":5,"./toolbar":6}],4:[function(e,t,s){t.exports=function(e,t,s,n){const i=e.getSourcesIndexes.all(n),o=e.data.urls,a=e.data.sources;let r=function(n,i,o,r){let d=new t("div").addClassesAndCreate(["fslightbox-source-holder"]);e.data.rememberedSourcesDimensions[r]={width:i,height:o},function(t,s,n){const i=s/n,o=parseInt(e.data.mediaHolder.holder.style.width),a=parseInt(e.data.mediaHolder.holder.style.height);let r=o/i;r<a-60?(t.style.height=r+"px",t.style.width=o+"px"):(r=a-60,t.style.height=r+"px",t.style.width=r*i+"px")}(n,i,o),d.appendChild(n),"initial"===s?function(e,t){e.innerHTML="",e.appendChild(t),e.firstChild.classList.add("fslightbox-fade-in-animation")}(a[r],n):function(e,t){e.innerHTML="",e.appendChild(t),e.firstChild.offsetWidth,e.firstChild.classList.add("fslightbox-fade-in-animation")}(a[r],n)};const d=function(e){let s=new t("div").addClassesAndCreate(["fslightbox-invalid-file-wrapper"]);s.innerHTML="Invalid file",r(s,window.innerWidth,window.innerHeight,e)};if(this.createSourceElem=function(s){const n=document.createElement("a"),i=e.data.urls[s];if(n.href=i,"www.youtube.com"===n.hostname)e.data.videos[s]=!1,function(s,n){let i=new t("iframe").addClassesAndCreate(["fslightbox-single-source"]);i.src="//www.youtube.com/embed/"+s+"?enablejsapi=1",i.setAttribute("allowfullscreen",""),i.setAttribute("frameborder","0"),e.data.mediaHolder.holder.appendChild(i),r(i,1920,1080,n)}(function(e){let t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return t&&11==t[2].length?t[2]:"error"}(i),s);else{const n=new XMLHttpRequest;n.onreadystatechange=function(){if(2===n.readyState){if(200===n.status||206===n.status){const i=n.getResponseHeader("content-type"),a=i.slice(0,i.indexOf("/"));"image"===a?function(e,s){let n=new t("img").addClassesAndCreate(["fslightbox-single-source"]);n.src=e,n.addEventListener("load",function(){r(n,this.width,this.height,s)})}(o[s],s):"video"===a?(!function(s,n,i){let o,a,d=!1,l=new t("video").addClassesAndCreate(["fslightbox-single-source"]),c=new t("source").elem;e.data.videosPosters[n]&&(l.poster=e.data.videosPosters[n],l.style.objectFit="cover"),c.src=s,c.type=i,l.appendChild(c),l.onloadedmetadata=function(){d||(this.videoWidth&&0!==this.videoWidth?(o=this.videoWidth,a=this.videoHeight):(o=1920,a=1080),d=!0,r(l,o,a,n))};let u=0,h=setInterval(function(){if(d)clearInterval(h);else{if(l.videoWidth&&0!==l.videoWidth)o=l.videoWidth,a=l.videoHeight;else{if(u<31)return void u++;o=1920,a=1080}d=!0,r(l,o,a,n),clearInterval(h)}},100);l.setAttribute("controls","")}(o[s],s,i),e.data.videos[s]=!0):d(s)}else d(s);n.abort()}},n.open("get",i,!0),n.send(null)}},"initial"===s)e.appendMethods.renderHolderInitial(e,n,t),o.length>=1&&this.createSourceElem(i.current),o.length>=2&&this.createSourceElem(i.next),o.length>=3&&this.createSourceElem(i.previous);else switch(e.appendMethods.renderHolder(e,n,s),s){case"previous":this.createSourceElem(i.previous);break;case"current":this.createSourceElem(i.current);break;case"next":this.createSourceElem(i.next)}}},{}],5:[function(e,t,s){t.exports=function(e,t){const s=function(){let s=new t("div").addClassesAndCreate(["fslightbox-slide-number-container"]);e.data.slideCounterElem=new t("div").addClassesAndCreate(["fslightbox-slide-slide-number"]),e.data.slideCounterElem.innerHTML=e.data.slide,e.data.slideCounterElem.id="current_slide";let n=new t("div").addClassesAndCreate(["fslightbox-slide-slide-number","fslightbox-slash"]);n.innerHTML="/";let i=new t("div").addClassesAndCreate(["fslightbox-slide-slide-number"]);i.innerHTML=e.data.total_slides,s.appendChild(e.data.slideCounterElem),s.appendChild(n),s.appendChild(i),e.data.updateSlideNumber=function(t){e.data.slide=t,e.data.slideCounterElem.innerHTML=t},this.renderSlideCounter=function(t){e.data.slideCounter&&t.appendChild(s)}},n=function(s,n,i){let o=new t("div").addClassesAndCreate(["fslightbox-slide-btn","button-style"]);o.appendChild((new e.SVGIcon).getSVGIcon("0 0 20 20","1em",i)),s.appendChild(o),n.appendChild(s)};var i;e.scrollbar.showScrollbar(),e.element.id="fslightbox-container",document.body.appendChild(e.element),i=e.element,e.data.nav=new t("div").addClassesAndCreate(["fslightbox-nav"]),e.toolbar.renderToolbar(e.data.nav),(new s).renderSlideCounter(e.data.nav),i.appendChild(e.data.nav),e.data.total_slides>1&&function(s){if(!1===e.data.slideButtons)return!1;let i=new t("div").addClassesAndCreate(["fslightbox-slide-btn-container","fslightbox-slide-btn-left-container"]);n(i,s,"M8.388,10.049l4.76-4.873c0.303-0.31,0.297-0.804-0.012-1.105c-0.309-0.304-0.803-0.293-1.105,0.012L6.726,9.516c-0.303,0.31-0.296,0.805,0.012,1.105l5.433,5.307c0.152,0.148,0.35,0.223,0.547,0.223c0.203,0,0.406-0.08,0.559-0.236c0.303-0.309,0.295-0.803-0.012-1.104L8.388,10.049z"),i.onclick=function(){e.appendMethods.previousSlideViaButton(e,e.data.slide)};let o=new t("div").addClassesAndCreate(["fslightbox-slide-btn-container","fslightbox-slide-btn-right-container"]);n(o,s,"M11.611,10.049l-4.76-4.873c-0.303-0.31-0.297-0.804,0.012-1.105c0.309-0.304,0.803-0.293,1.105,0.012l5.306,5.433c0.304,0.31,0.296,0.805-0.012,1.105L7.83,15.928c-0.152,0.148-0.35,0.223-0.547,0.223c-0.203,0-0.406-0.08-0.559-0.236c-0.303-0.309-0.295-0.803,0.012-1.104L11.611,10.049z"),o.onclick=function(){e.appendMethods.nextSlideViaButton(e,e.data.slide)}}(e.element),e.data.holderWrapper=new t("div").addClassesAndCreate(["fslightbox-holder-wrapper"]),e.element.appendChild(e.data.holderWrapper),e.data.mediaHolder=new e.mediaHolder,e.data.mediaHolder.renderHolder(e.data.holderWrapper),e.element.classList.add(["fslightbox-fade-in-animation"]),e.data.isfirstTimeLoad=!0}},{}],6:[function(e,t,s){t.exports=function(e,t){this.toolbarElem=new t("div").addClassesAndCreate(["fslightbox-toolbar"]);const s=this;this.renderDefaultButtons=function(){let n=e.data.toolbarButtons;if(!0===n.fullscreen){let n=new t("div").addClassesAndCreate(["fslightbox-toolbar-button","button-style"]),i=(new e.SVGIcon).getSVGIcon("0 0 17.5 17.5","1.25em","M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z");n.appendChild(i),n.onclick=function(){e.data.fullscreen?s.closeFullscreen():s.openFullscreen()},this.toolbarElem.appendChild(n)}if(!0===n.close){let s=new t("div").addClassesAndCreate(["fslightbox-toolbar-button","button-style"]),n=(new e.SVGIcon).getSVGIcon("0 0 20 20","1em","M 11.469 10 l 7.08 -7.08 c 0.406 -0.406 0.406 -1.064 0 -1.469 c -0.406 -0.406 -1.063 -0.406 -1.469 0 L 10 8.53 l -7.081 -7.08 c -0.406 -0.406 -1.064 -0.406 -1.469 0 c -0.406 0.406 -0.406 1.063 0 1.469 L 8.531 10 L 1.45 17.081 c -0.406 0.406 -0.406 1.064 0 1.469 c 0.203 0.203 0.469 0.304 0.735 0.304 c 0.266 0 0.531 -0.101 0.735 -0.304 L 10 11.469 l 7.08 7.081 c 0.203 0.203 0.469 0.304 0.735 0.304 c 0.267 0 0.532 -0.101 0.735 -0.304 c 0.406 -0.406 0.406 -1.064 0 -1.469 L 11.469 10 Z");s.appendChild(n),s.onclick=function(){e.data.fadingOut||e.hide()},this.toolbarElem.appendChild(s)}},this.openFullscreen=function(){e.data.fullscreen=!0;let t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},this.closeFullscreen=function(){e.data.fullscreen=!1,document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},this.renderToolbar=function(e){this.renderDefaultButtons(),e.appendChild(this.toolbarElem)}}},{}]},{},[3,5,4,1,2,6]);
!function(){return function e(t,s,n){function i(a,r){if(!s[a]){if(!t[a]){var d="function"==typeof require&&require;if(!r&&d)return d(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=s[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,s,n)}return s[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}}()({1:[function(e,t,s){t.exports={loader:'<div class="lds-ring"><div></div><div></div><div></div><div></div></div>',DOMObject:"",transition:"fslightbox-transform-transition",fadeIn:"fslightbox-fade-in-animation",fadeOut:"fslightbox-fade-out-animation",createHolder:function(e,t){let s=new this.DOMObject("div").addClassesAndCreate(["fslightbox-source-holder"]);return s.innerHTML=this.loader,e.data.sources[t]=s,s},runFadeOutAnimationOnSlide(e,t){t.classList.remove(this.fadeOut),t.offsetWidth,t.classList.add(this.fadeOut)},renderHolderInitial:function(e,t,s){this.DOMObject=s;const n=e.getSourcesIndexes.all(t),i=e.data.total_slides;if(i>=3){const t=this.createHolder(e,n.previous);e.transforms.transformMinus(t),e.data.mediaHolder.holder.appendChild(t)}if(i>=1){const t=this.createHolder(e,n.current);e.data.mediaHolder.holder.appendChild(t)}if(i>=2){const t=this.createHolder(e,n.next);e.transforms.transformPlus(t),e.data.mediaHolder.holder.appendChild(t)}},renderHolder:function(e,t,s){switch(s){case"previous":this.renderHolderPrevious(e,t);break;case"current":this.renderHolderCurrent(e,t);break;case"next":this.renderHolderNext(e,t)}},renderHolderPrevious:function(e,t){const s=e.getSourcesIndexes.previous(t),n=this.createHolder(e,s);e.transforms.transformMinus(n),e.data.mediaHolder.holder.insertAdjacentElement("afterbegin",n)},renderHolderNext:function(e,t){const s=e.getSourcesIndexes.next(t),n=this.createHolder(e,s);e.transforms.transformPlus(n),e.data.mediaHolder.holder.appendChild(n)},renderHolderCurrent:function(e,t){const s=e.getSourcesIndexes.all(t),n=this.createHolder(e,s.current);e.transforms.transformNull(n),e.data.mediaHolder.holder.insertBefore(n,e.data.sources[s.next])},previousSlideViaButton:function(e,t){1===t?e.data.slide=e.data.total_slides:e.data.slide-=1,e.stopVideos(),e.data.updateSlideNumber(e.data.slide);const s=e.getSourcesIndexes.all(e.data.slide);void 0===e.data.sources[s.previous]&&e.loadsources("previous",e.data.slide);const n=e.data.sources,i=n[s.current],o=n[s.next];o.classList.remove(this.transition),i.classList.remove(this.transition),n[s.previous].classList.remove(this.transition),this.runFadeOutAnimationOnSlide(e,o),i.classList.remove(this.fadeOut),i.offsetWidth,i.classList.add(this.fadeIn),e.transforms.transformNull(i),setTimeout(function(){e.transforms.transformPlus(o)},230)},nextSlideViaButton:function(e,t){t===e.data.total_slides?e.data.slide=1:e.data.slide+=1,e.stopVideos(),e.data.updateSlideNumber(e.data.slide);const s=e.getSourcesIndexes.all(e.data.slide);void 0===e.data.sources[s.next]&&e.loadsources("next",e.data.slide);const n=e.data.sources,i=n[s.current],o=n[s.previous];o.classList.remove(this.transition),i.classList.remove(this.transition),n[s.next].classList.remove(this.transition),i.classList.remove(this.fadeOut),i.offsetWidth,i.classList.add(this.fadeIn),this.runFadeOutAnimationOnSlide(e,o),e.transforms.transformNull(i),setTimeout(function(){e.transforms.transformMinus(o)},230)}}},{}],2:[function(e,t,s){t.exports=function(e,t){const s=new t("div").addClassesAndCreate(["fslightbox-invisible-hover"]),n="fslightbox-transform-transition",i={mediaHolder:e.data.mediaHolder.holder,invisibleHover:s,holderWrapper:e.data.holderWrapper},o=e.data.sources,a=e.data.urls.length;let r,d,l=!1,c=!0;const u=function(t){"VIDEO"===t.target.tagName||e.data.isMobile||t.preventDefault();for(let e in i)i[e].classList.add("fslightbox-cursor-grabbing");l=!0,r=e.data.isMobile?t.touches[0].clientX:t.clientX,d=0},h=function(){e.element.contains(s)&&e.element.removeChild(s);let t=e.getSourcesIndexes.all(e.data.slide);for(let e in i)i[e].classList.remove("fslightbox-cursor-grabbing");l=!1,0!==d&&c&&(c=!1,o[t.previous].classList.add(n),o[t.current].classList.add(n),o[t.next].classList.add(n),d>0?(1===e.data.slide?e.data.updateSlideNumber(e.data.total_slides):e.data.updateSlideNumber(e.data.slide-1),a>=2?(e.transforms.transformPlus(o[t.current]),e.transforms.transformNull(o[t.previous])):e.transforms.transformNull(o[t.current]),t=e.getSourcesIndexes.all(e.data.slide),void 0===e.data.sources[t.previous]&&e.loadsources("previous",e.data.slide)):d<0&&(e.data.slide===e.data.total_slides?e.data.updateSlideNumber(1):e.data.updateSlideNumber(e.data.slide+1),a>1?(e.transforms.transformMinus(o[t.current]),e.transforms.transformNull(o[t.next])):e.transforms.transformNull(o[t.current]),t=e.getSourcesIndexes.all(e.data.slide),void 0===e.data.sources[t.next]&&e.loadsources("next",e.data.slide)),d=0,e.stopVideos(),setTimeout(function(){o[t.previous].classList.remove(n),o[t.current].classList.remove(n),o[t.next].classList.remove(n),c=!0},300))},f=function(t){if(!l||!c)return;let n;n=e.data.isMobile?t.touches[0].clientX:t.clientX,e.element.appendChild(s),d=n-r;const i=e.getSourcesIndexes.all(e.data.slide);a>=3&&(o[i.previous].style.transform="translate("+(-e.data.slideDistance*window.innerWidth+d)+"px,0)"),a>=1&&(o[i.current].style.transform="translate("+d+"px,0)"),a>=2&&(o[i.next].style.transform="translate("+(e.data.slideDistance*window.innerWidth+d)+"px,0)")};for(let e in i)i[e].addEventListener("mousedown",u),i[e].addEventListener("touchstart",u,{passive:!0});window.addEventListener("mouseup",h),window.addEventListener("touchend",h),s.addEventListener("mouseup",h),s.addEventListener("touchend",h),window.addEventListener("mousemove",f),window.addEventListener("touchmove",f),e.data.nav.addEventListener("mousedown",function(e){e.preventDefault()})}},{}],3:[function(e,t,s){window.fsLightboxObject=function(){this.element=new s("div").addClassesAndCreate(["fslightbox-container"]),this.data={slide:1,total_slides:1,slideDistance:1.3,slideCounter:!0,slideButtons:!0,isFirstTimeLoad:!1,moveSlidesViaDrag:!0,toolbarButtons:{close:!0,fullscreen:!0},name:"",isMobile:!1,urls:[],sources:[],sourcesLoaded:[],rememberedSourcesDimensions:[],videos:[],videosPosters:[],holderWrapper:{},mediaHolder:{},nav:{},toolbar:{},slideCounterElem:{},initiated:!1,fullscreen:!1,fadingOut:!1,onResizeEvent:{},updateSlideNumber:function(){}};const t=this;function s(e){this.elem=document.createElement(e),this.addClassesAndCreate=function(e){for(let t in e)this.elem.classList.add(e[t]);return this.elem}}function n(){let e=this;const s=t.data.sources;this.mediaHolderDimensions=function(){const e=t.data.mediaHolder.holder.style;window.innerWidth>1e3?(e.width=window.innerWidth-.1*window.innerWidth+"px",e.height=window.innerHeight-.1*window.innerHeight+"px"):(e.width=window.innerWidth+"px",e.height=window.innerHeight+"px")};window.addEventListener("resize",function(){t.checkIfMobile(),e.mediaHolderDimensions(),function(){const e=t.getSourcesIndexes.all(t.data.slide),n=t.data.rememberedSourcesDimensions;for(let i in s){t.data.urls.length>2&&t.transforms.transformMinus(s[e.previous]),t.transforms.transformNull(s[e.current]),t.data.urls.length>1&&t.transforms.transformPlus(s[e.next]);const o=s[i].firstChild,a=n[i].width/n[i].height,r=parseInt(t.data.mediaHolder.holder.style.width),d=parseInt(t.data.mediaHolder.holder.style.height);let l=r/a;l<d-60?(o.style.height=l+"px",o.style.width=r+"px"):(l=d-60,o.style.height=l+"px",o.style.width=l*a+"px")}}(),function(){const e=t.data.sources,s=t.getSourcesIndexes.all(t.data.slide);for(let n in e)parseInt(n)!==s.previous&&parseInt(n)!==s.current&&parseInt(n)!==s.next&&(e[n].classList.remove("fslightbox-transform-transition"),t.transforms.transformMinus(e[n]))}()})}this.init=function(i){if(t.data.initiated)return t.initSetSlide(i),void t.show();t.checkIfMobile(),t.data.onResizeEvent=new n;let o=t.data.name,a=[];const r=fsLightboxHelpers.a;for(let e=0;e<r.length;e++)if(r[e].hasAttribute("fslightbox-gallery")&&r[e].getAttribute("fslightbox-gallery")===o){let s=a.push(r[e].getAttribute("href"));r[e].hasAttribute("fslightbox-video-poster")&&(t.data.videosPosters[s-1]=r[e].getAttribute("fslightbox-video-poster"))}t.data.urls=a,t.data.total_slides=a.length,new t.dom,t.throwEvent("init"),t.throwEvent("open"),e("./changeSlideByDragging.js")(t,s),t.initSetSlide(i),t.data.initiated=!0},this.initSetSlide=function(e){switch(typeof e){case"string":t.setSlide(t.data.urls.indexOf(e)+1);break;case"number":t.setSlide(e);break;case"undefined":t.setSlide(1)}},this.show=function(){const e=t.element;t.scrollbar.showScrollbar(),e.classList.remove("fslightbox-container-fadeout"),document.body.appendChild(e),t.throwEvent("show"),t.throwEvent("open"),e.classList.remove(["fslightbox-fade-in-window"]),e.classList.add(["fslightbox-fade-in-window"])},this.hide=function(){t.data.fullscreen&&t.toolbar.closeFullscreen(),t.element.classList.add("fslightbox-container-fadeout"),t.data.fadingOut=!0,t.throwEvent("close"),setTimeout(function(){t.scrollbar.hideScrollbar(),t.data.fadingOut=!1,document.body.removeChild(t.element)},250)},this.dom=function(){e("./renderDOM.js")(t,s)},this.throwEvent=function(e){let s;"function"==typeof Event?s=new Event(e):(s=document.createEvent("Event")).initEvent(e,!0,!0),t.element.dispatchEvent(s)},this.checkIfMobile=function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?t.data.isMobile=!0:t.data.isMobile=!1},this.scrollbar={hideScrollbar:function(){if(document.documentElement.classList.contains("fslightbox-scrollbarfix")){let e=document.querySelector(".recompense-for-scrollbar");e&&(e.style.paddingRight="0"),document.documentElement.classList.remove("fslightbox-scrollbarfix")}document.documentElement.classList.remove("fslightbox-open")},showScrollbar:function(){if(!t.data.isMobile&&document.documentElement.offsetHeight>=window.innerHeight){let e=document.querySelector(".recompense-for-scrollbar");e&&(e.style.paddingRight="17px"),document.documentElement.classList.add("fslightbox-scrollbarfix")}document.documentElement.classList.add("fslightbox-open")}},this.SVGIcon=function(){this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.path=document.createElementNS("http://www.w3.org/2000/svg","path"),this.svg.setAttributeNS(null,"class","fslightbox-svg-icon"),this.svg.setAttributeNS(null,"viewBox","0 0 15 15"),this.getSVGIcon=function(e,t,s){return this.path.setAttributeNS(null,"d",s),this.svg.setAttributeNS(null,"viewBox",e),this.svg.setAttributeNS(null,"width",t),this.svg.setAttributeNS(null,"height",t),this.svg.appendChild(this.path),this.svg}};let i=e("./toolbar");this.toolbar=new i(t,s),this.mediaHolder=function(){this.holder=new s("div").addClassesAndCreate(["fslightbox-media-holder"]),window.innerWidth>1e3?(this.holder.style.width=window.innerWidth-.1*window.innerWidth+"px",this.holder.style.height=window.innerHeight-.1*window.innerHeight+"px"):(this.holder.style.width=window.innerWidth+"px",this.holder.style.height=window.innerHeight+"px"),this.renderHolder=function(e){e.appendChild(this.holder)}},this.getSourcesIndexes={previous:function(e){let s;const n=e-1;return s=0===n?t.data.total_slides-1:n-1},next:function(e){let s;const n=e-1;return s=e===t.data.total_slides?0:n+1},all:function(e){const s=e-1,n={previous:0,current:0,next:0};return n.previous=0===s?t.data.total_slides-1:s-1,n.current=s,e===t.data.total_slides?n.next=0:n.next=s+1,n}},this.transforms={transformMinus:function(e){e.style.transform="translate("+-t.data.slideDistance*window.innerWidth+"px,0)"},transformNull:function(e){e.style.transform="translate(0,0)"},transformPlus:function(e){e.style.transform="translate("+t.data.slideDistance*window.innerWidth+"px,0)"}},this.stopVideos=function(){const e=t.data.videos,s=t.data.sources;for(let t in e)!0===e[t]?void 0!==s[t].firstChild.pause&&s[t].firstChild.pause():s[t].firstChild.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*")},this.setSlide=function(e){t.data.slide=e,t.data.updateSlideNumber(e);const s=t.getSourcesIndexes.all(e),n=t.data.sources;0===n.length?t.loadsources("initial",e):(void 0===n[s.previous]&&t.loadsources("previous",e),void 0===n[s.current]&&t.loadsources("current",e),void 0===n[s.next]&&t.loadsources("next",e));for(let e in n)n[e].classList.remove("fslightbox-transform-transition"),e==s.previous&&n.length>1?t.transforms.transformMinus(n[s.previous]):e!=s.current?e!=s.next?t.transforms.transformMinus(n[e]):t.transforms.transformPlus(n[s.next]):t.transforms.transformNull(n[s.current])},this.appendMethods=e("./appendSource"),this.loadsources=function(n,i){return new(e("./loadSource.js"))(t,s,n,i)}},function(){window.fsLightboxInstances=[],window.fsLightboxHelpers={a:document.getElementsByTagName("a")};let e=fsLightboxHelpers.a;for(let t=0;t<e.length;t++){if(!e[t].hasAttribute("fslightbox-gallery"))continue;const s=e[t].getAttribute("fslightbox-gallery");void 0===fsLightboxInstances[s]&&(fsLightbox=new fsLightboxObject,fsLightbox.data.name=s,fsLightboxInstances[s]=fsLightbox),e[t].addEventListener("click",function(e){e.preventDefault();let t=this.getAttribute("fslightbox-gallery");if(fsLightboxInstances[t].data.initiated)return fsLightboxInstances[t].setSlide(fsLightboxInstances[t].data.urls.indexOf(this.getAttribute("href"))+1),void fsLightboxInstances[t].show();fsLightboxInstances[t].init(this.getAttribute("href"))})}}(document,window)},{"./appendSource":1,"./changeSlideByDragging.js":2,"./loadSource.js":4,"./renderDOM.js":5,"./toolbar":6}],4:[function(e,t,s){t.exports=function(e,t,s,n){const i=e.getSourcesIndexes.all(n),o=e.data.urls,a=e.data.sources;let r=function(n,i,o,r){let d=new t("div").addClassesAndCreate(["fslightbox-source-holder"]);e.data.rememberedSourcesDimensions[r]={width:i,height:o},function(t,s,n){const i=s/n,o=parseInt(e.data.mediaHolder.holder.style.width),a=parseInt(e.data.mediaHolder.holder.style.height);let r=o/i;r<a-60?(t.style.height=r+"px",t.style.width=o+"px"):(r=a-60,t.style.height=r+"px",t.style.width=r*i+"px")}(n,i,o),d.appendChild(n),"initial"===s?function(e,t){e.innerHTML="",e.appendChild(t),e.firstChild.classList.add("fslightbox-fade-in-animation")}(a[r],n):function(e,t){e.innerHTML="",e.appendChild(t),e.firstChild.offsetWidth,e.firstChild.classList.add("fslightbox-fade-in-animation")}(a[r],n)};const d=function(e){let s=new t("div").addClassesAndCreate(["fslightbox-invalid-file-wrapper"]);s.innerHTML="Invalid file",r(s,window.innerWidth,window.innerHeight,e)};if(this.createSourceElem=function(s){const n=document.createElement("a"),i=e.data.urls[s];if(n.href=i,"www.youtube.com"===n.hostname)e.data.videos[s]=!1,function(s,n){let i=new t("iframe").addClassesAndCreate(["fslightbox-single-source"]);i.src="//www.youtube.com/embed/"+s+"?enablejsapi=1",i.setAttribute("allowfullscreen",""),i.setAttribute("frameborder","0"),e.data.mediaHolder.holder.appendChild(i),r(i,1920,1080,n)}(function(e){let t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return t&&11==t[2].length?t[2]:"error"}(i),s);else{const n=new XMLHttpRequest;n.onreadystatechange=function(){if(2===n.readyState){if(200===n.status||206===n.status){const i=n.getResponseHeader("content-type"),a=i.slice(0,i.indexOf("/"));"image"===a?function(e,s){let n=new t("img").addClassesAndCreate(["fslightbox-single-source"]);n.src=e,n.addEventListener("load",function(){r(n,this.width,this.height,s)})}(o[s],s):"video"===a?(!function(s,n,i){let o,a,d=!1,l=new t("video").addClassesAndCreate(["fslightbox-single-source"]),c=new t("source").elem;e.data.videosPosters[n]&&(l.poster=e.data.videosPosters[n],l.style.objectFit="cover"),c.src=s,c.type=i,l.appendChild(c),l.onloadedmetadata=function(){d||(this.videoWidth&&0!==this.videoWidth?(o=this.videoWidth,a=this.videoHeight):(o=1920,a=1080),d=!0,r(l,o,a,n))};let u=0,h=setInterval(function(){if(d)clearInterval(h);else{if(l.videoWidth&&0!==l.videoWidth)o=l.videoWidth,a=l.videoHeight;else{if(u<31)return void u++;o=1920,a=1080}d=!0,r(l,o,a,n),clearInterval(h)}},100);l.setAttribute("controls","")}(o[s],s,i),e.data.videos[s]=!0):d(s)}else d(s);n.abort()}},n.open("get",i,!0),n.send(null)}},"initial"===s)e.appendMethods.renderHolderInitial(e,n,t),o.length>=1&&this.createSourceElem(i.current),o.length>=2&&this.createSourceElem(i.next),o.length>=3&&this.createSourceElem(i.previous);else switch(e.appendMethods.renderHolder(e,n,s),s){case"previous":this.createSourceElem(i.previous);break;case"current":this.createSourceElem(i.current);break;case"next":this.createSourceElem(i.next)}}},{}],5:[function(e,t,s){t.exports=function(e,t){const s=function(){let s=new t("div").addClassesAndCreate(["fslightbox-slide-number-container"]);e.data.slideCounterElem=new t("div").addClassesAndCreate(["fslightbox-slide-slide-number"]),e.data.slideCounterElem.innerHTML=e.data.slide,e.data.slideCounterElem.id="current_slide";let n=new t("div").addClassesAndCreate(["fslightbox-slide-slide-number","fslightbox-slash"]);n.innerHTML="/";let i=new t("div").addClassesAndCreate(["fslightbox-slide-slide-number"]);i.innerHTML=e.data.total_slides,s.appendChild(e.data.slideCounterElem),s.appendChild(n),s.appendChild(i),e.data.updateSlideNumber=function(t){e.data.slide=t,e.data.slideCounterElem.innerHTML=t},this.renderSlideCounter=function(t){e.data.slideCounter&&t.appendChild(s)}},n=function(s,n,i){let o=new t("div").addClassesAndCreate(["fslightbox-slide-btn","button-style"]);o.appendChild((new e.SVGIcon).getSVGIcon("0 0 20 20","1em",i)),s.appendChild(o),n.appendChild(s)};var i;e.scrollbar.showScrollbar(),e.element.id="fslightbox-container",document.body.appendChild(e.element),i=e.element,e.data.nav=new t("div").addClassesAndCreate(["fslightbox-nav"]),e.toolbar.renderToolbar(e.data.nav),(new s).renderSlideCounter(e.data.nav),i.appendChild(e.data.nav),e.data.total_slides>1&&function(s){if(!1===e.data.slideButtons)return!1;let i=new t("div").addClassesAndCreate(["fslightbox-slide-btn-container","fslightbox-slide-btn-left-container"]);n(i,s,"M8.388,10.049l4.76-4.873c0.303-0.31,0.297-0.804-0.012-1.105c-0.309-0.304-0.803-0.293-1.105,0.012L6.726,9.516c-0.303,0.31-0.296,0.805,0.012,1.105l5.433,5.307c0.152,0.148,0.35,0.223,0.547,0.223c0.203,0,0.406-0.08,0.559-0.236c0.303-0.309,0.295-0.803-0.012-1.104L8.388,10.049z"),i.onclick=function(){e.appendMethods.previousSlideViaButton(e,e.data.slide)};let o=new t("div").addClassesAndCreate(["fslightbox-slide-btn-container","fslightbox-slide-btn-right-container"]);n(o,s,"M11.611,10.049l-4.76-4.873c-0.303-0.31-0.297-0.804,0.012-1.105c0.309-0.304,0.803-0.293,1.105,0.012l5.306,5.433c0.304,0.31,0.296,0.805-0.012,1.105L7.83,15.928c-0.152,0.148-0.35,0.223-0.547,0.223c-0.203,0-0.406-0.08-0.559-0.236c-0.303-0.309-0.295-0.803,0.012-1.104L11.611,10.049z"),o.onclick=function(){e.appendMethods.nextSlideViaButton(e,e.data.slide)}}(e.element),e.data.holderWrapper=new t("div").addClassesAndCreate(["fslightbox-holder-wrapper"]),e.element.appendChild(e.data.holderWrapper),e.data.mediaHolder=new e.mediaHolder,e.data.mediaHolder.renderHolder(e.data.holderWrapper),e.element.classList.add(["fslightbox-fade-in-animation"]),e.data.isfirstTimeLoad=!0}},{}],6:[function(e,t,s){t.exports=function(e,t){this.toolbarElem=new t("div").addClassesAndCreate(["fslightbox-toolbar"]);const s=this;this.renderDefaultButtons=function(){let n=e.data.toolbarButtons;if(!0===n.fullscreen){let n=new t("div").addClassesAndCreate(["fslightbox-toolbar-button","button-style"]),i=(new e.SVGIcon).getSVGIcon("0 0 17.5 17.5","1.25em","M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z");n.appendChild(i),n.onclick=function(){e.data.fullscreen?s.closeFullscreen():s.openFullscreen()},this.toolbarElem.appendChild(n)}if(!0===n.close){let s=new t("div").addClassesAndCreate(["fslightbox-toolbar-button","button-style"]),n=(new e.SVGIcon).getSVGIcon("0 0 20 20","1em","M 11.469 10 l 7.08 -7.08 c 0.406 -0.406 0.406 -1.064 0 -1.469 c -0.406 -0.406 -1.063 -0.406 -1.469 0 L 10 8.53 l -7.081 -7.08 c -0.406 -0.406 -1.064 -0.406 -1.469 0 c -0.406 0.406 -0.406 1.063 0 1.469 L 8.531 10 L 1.45 17.081 c -0.406 0.406 -0.406 1.064 0 1.469 c 0.203 0.203 0.469 0.304 0.735 0.304 c 0.266 0 0.531 -0.101 0.735 -0.304 L 10 11.469 l 7.08 7.081 c 0.203 0.203 0.469 0.304 0.735 0.304 c 0.267 0 0.532 -0.101 0.735 -0.304 c 0.406 -0.406 0.406 -1.064 0 -1.469 L 11.469 10 Z");s.appendChild(n),s.onclick=function(){e.data.fadingOut||e.hide()},this.toolbarElem.appendChild(s)}},this.openFullscreen=function(){e.data.fullscreen=!0;let t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},this.closeFullscreen=function(){e.data.fullscreen=!1,document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},this.renderToolbar=function(e){this.renderDefaultButtons(),e.appendChild(this.toolbarElem)}}},{}]},{},[3,5,4,1,2,6]);
{
"name": "fslightbox",
"version": "1.5.0",
"version": "1.5.1",
"description": "Fullscreen media lightbox library written in vanilla JS. Technologies: JavaScript, SCSS",
"main": "index.js",
"dist-tags": {
"latest": "1.5.0"
"latest": "1.5.1"
},

@@ -9,0 +9,0 @@ "scripts": {

# Fullscreen Lightbox Basic
## Version - 1.5
## Version - 1.5.1

@@ -5,0 +5,0 @@ ## Description

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc