New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fslightbox-vue

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fslightbox-vue - npm Package Compare versions

Comparing version 0.2.0 to 0.5.0

2

index.js

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

module.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var o=function(){var e=this.$createElement,t=this._self._c||e;return this.isOpen?t("div",{ref:"container",staticClass:"fslightbox-container fslightbox-full-dimension fslightbox-fade-in-strong"},[t("Nav",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}),this._v(" "),t("SourcesOutersWrapper",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}),this._v(" "),t("SlideButtons",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}),this._v(" "),t("SlideSwipingHoverer",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}})],1):this._e()};o._withStripped=!0;var i=[];function s(e){var t=e.data.sources,n=e.props,o=n.slide,i=n.sourceIndex,s=n.source,r=0;return s?r=t.indexOf(s):i?r=i:o&&(r=o-1),r}function r(e,t){var n=e.classList;n.contains(t)&&n.remove(t)}var c="fslightbox-",a="".concat(c,"styles"),l="".concat(c,"cursor-grabbing"),u=("".concat(c,"full-dimension"),"".concat(c,"flex-centered"),"".concat(c,"open")),d="".concat(c,"transform-transition"),h=("".concat(c,"absoluted"),"".concat(c,"fade-in")),f="".concat(c,"fade-out"),p=h+"-strong",g=f+"-strong",x="".concat(c,"opacity-"),v=("".concat(x,"0"),"".concat(x,"1")),m="".concat(c,"source"),b="".concat(m,"-outer");"".concat(b,"s-outers-wrapper");var S=250;function w(e){var t=this,n=e.componentsServices,o=n.isFullscreenOpenManager,i=n.isLightboxOpenManager,s=e.core,r=s.eventsDispatcher,c=s.fullscreenToggler,a=s.globalEventsController,l=s.scrollbarRecompensor,d=e.elements,h=e.slideSwipingProps;this.isLightboxFadingOut=!1,this.runActions=function(){t.isLightboxFadingOut=!0,d.container.classList.add(g),a.removeListeners(),o.get()&&c.exitFullscreen(),setTimeout((function(){t.isLightboxFadingOut=!1,h.isSwiping=!1,d.container.classList.remove(g),document.documentElement.classList.remove(u),l.removeRecompense(),i.set(!1),r.dispatch("onClose")}),S-30)}}function L(e){return e.touches?e.touches[0].clientX:e.clientX}var _="sourcesOuters",y="sourcesInners";function I(e){var t,n,o,i=e.collections.sourcesOutersTransformers,s=e.componentsServices,c=e.core,a=c.classFacade,l=c.slideIndexChanger,u=c.stageManager,g=e.elements.sourcesInners,x=e.stageIndexes,v=(t=function(){a.removeFromEachElementClassIfContains(y,f)},n=S,o=[],function(){o.push(!0),setTimeout((function(){o.pop(),o.length||t()}),n)});l.changeTo=function(e){x.current=e,u.updateStageIndexes(),s.setSlideNumber(e+1)},l.jumpTo=function(e){var t=x.current;l.changeTo(e),a.removeFromEachElementClassIfContains(_,d),r(g[t],p),r(g[t],h),g[t].classList.add(f),r(g[e],p),r(g[e],f),g[e].classList.add(h),v(),i[e].zero(),setTimeout((function(){t!==x.current&&i[t].negative()}),S-30)}}function C(e){var t=e.core,n=t.lightboxCloser,o=t.fullscreenToggler,i=t.slideChangeFacade;this.listener=function(e){switch(e.keyCode){case 27:n.close();break;case 37:i.changeToPrevious();break;case 39:i.changeToNext();break;case 122:e.preventDefault(),o.enterFullscreen()}}}function F(e){var t=e.collections.sourcesOutersTransformers,n=e.componentsServices.isSlideSwipingHovererShownManager,o=e.elements,i=e.slideSwipingProps,s=e.stageIndexes;this.runActionsForEvent=function(e){n.get()||n.set(!0),o.container.classList.add(l),i.swipedX=L(e)-i.downClientX,r(s.current,"zero"),void 0!==s.previous&&i.swipedX>0?r(s.previous,"negative"):void 0!==s.next&&i.swipedX<0&&r(s.next,"positive")};var r=function(e,n){t[e].byValue(i.swipedX)[n]()}}function T(e){var t,n=e.data,o=e.resolve,i=e.slideSwipingProps,s=o(F),r=(t=!1,function(){return!t&&(t=!0,requestAnimationFrame((function(){t=!1})),!0)});1===n.sourcesCount?this.listener=function(){i.swipedX=1}:this.listener=function(e){i.isSwiping&&r()&&s.runActionsForEvent(e)}}function O(e){var t=e.collections.sourcesOutersTransformers,n=e.core.slideIndexChanger,o=e.elements.sourcesOuters,i=e.stageIndexes;this.runPositiveSwipedXActions=function(){void 0===i.previous?s("zero"):(s("positive"),n.changeTo(i.previous),s("zero"))},this.runNegativeSwipedXActions=function(){void 0===i.next?s("zero"):(s("negative"),n.changeTo(i.next),s("zero"))};var s=function(e){o[i.current].classList.add(d),t[i.current][e]()}}function E(e){var t=e.componentsServices.isSlideSwipingHovererShownManager,n=e.core.lightboxCloser,o=e.elements,i=e.resolve,s=e.slideSwipingProps,r=i(O);this.runNoSwipeActions=function(){s.isSourceDownEventTarget||n.closeLightbox(),s.isSwiping=!1},this.runActions=function(){s.swipedX>0?r.runPositiveSwipedXActions():r.runNegativeSwipedXActions(),t.set(!1),o.container.classList.remove(l),s.isSwiping=!1}}function z(e){var t=e.resolve,n=e.slideSwipingProps,o=t(E);this.listener=function(){n.isSwiping&&(n.swipedX?o.runActions():o.runNoSwipeActions())}}var A="fslightbox-types",N="fslightbox-scrollbar-width";function k(e){var t,n=e.props.disableLocalStorage,o=0,i={};this.getSourceTypeFromLocalStorageByUrl=function(e){return t[e]?t[e]:s(e)},this.handleReceivedSourceTypeForUrl=function(e,t){void 0!==i[t]&&(o--,i[t]=e,r())};var s=function(e){o++,i[e]=!1},r=function(){0===o&&(!function(e,t){for(var n in t)e[n]=t[n]}(t,i),localStorage.setItem(A,JSON.stringify(t)))};n?(this.getSourceTypeFromLocalStorageByUrl=function(){},this.handleReceivedSourceTypeForUrl=function(){}):(t=JSON.parse(localStorage.getItem(A)))||(t={},this.getSourceTypeFromLocalStorageByUrl=s)}var B="image",M="video",R="youtube",H="custom",$="invalid";function P(e,t,n,o){var i=e.data,s=e.elements.sources,r=n/o,c=0;this.styleSize=function(){if((c=i.maxSourceWidth/r)<i.maxSourceHeight)return n<i.maxSourceWidth&&(c=o),a();c=o>i.maxSourceHeight?i.maxSourceHeight:o,a()};var a=function(){var e=s[t].style;e.width=c*r+"px",e.height=c+"px"}}function D(e,t,n,o){var i=this,s=e.componentsServices.hideLoaderCollection,r=e.collections.sourcesStylers,c=e.elements,a=c.sourcesInners,l=c.sources,u=e.resolve;this.runNormalLoadActions=function(){l[t].classList.add(v),a[t].classList.add(p),s[t]()},this.runInitialLoadActions=function(){i.runNormalLoadActions();var e=u(P,[t,n,o]);e.styleSize(),r[t]=e}}function U(e,t){var n=this,o=e.elements.sources,i=e.props.maxYoutubeVideoDimensions,s=e.resolve;this.handleImageLoad=function(e){var t=e.target,o=t.width,i=t.height;n.handleImageLoad=r(o,i)},this.handleVideoLoad=function(e){var t=e.target,o=t.videoWidth,i=t.videoHeight;n.handleVideoLoad=r(o,i)},this.handleYoutubeLoad=function(){var e=1920,t=1080;i&&(e=i.width,t=i.height),n.handleYoutubeLoad=r(e,t)},this.handleCustomLoad=function(){var e=o[t];n.handleCustomLoad=r(e.offsetWidth,e.offsetHeight)};var r=function(e,n){var o=s(D,[t,e,n]);return o.runInitialLoadActions(),o.runNormalLoadActions}}function X(e){var t=e.collections.sourcesLoadsHandlers,n=e.componentsServices,o=n.isLightboxOpenManager,i=n.setSourceComponentCollection,s=e.resolve;this.runActionsForSourceTypeAndIndex=function(e,n){var r;switch(e!==$&&(t[n]=s(U,[n])),e){case B:r="Imager";break;case M:r="Videor";break;case R:r="Youtuber";break;case H:r="Customer";break;default:r="Invalider"}o.get()&&i[n](r)}}function W(e){var t,n,o,i,s,r=e.collections.xhrs,c={isUrlYoutubeOne:function(e){var t=document.createElement("a");return t.href=e,"www.youtube.com"===t.hostname},getTypeFromResponseContentType:function(e){return e.slice(0,e.indexOf("/"))}};this.setUrlToCheck=function(e){t=e},this.getSourceType=function(e){if(c.isUrlYoutubeOne(t))return e(R);o=e,i=new XMLHttpRequest,r.push(i),i.open("GET",t,!0),i.onreadystatechange=a,i.send()};var a=function(){if(4===i.readyState&&0===i.status&&!s)return l();if(2===i.readyState){if(200!==i.status&&206!==i.status)return s=!0,l();s=!0,d(c.getTypeFromResponseContentType(i.getResponseHeader("content-type"))),u()}},l=function(){n=$,u()},u=function(){i.abort(),o(n)},d=function(e){switch(e){case"image":n=B;break;case"video":n=M;break;default:n=$}}}function j(e,t,n){var o=e.props,i=o.types,s=o.type,r=o.sources,c=e.resolve;this.getTypeSetByClientForIndex=function(e){var t;return i&&i[e]?t=i[e]:s&&(t=s),t},this.retrieveTypeWithXhrForIndex=function(e){var o=c(W);o.setUrlToCheck(r[e]),o.getSourceType((function(o){t.handleReceivedSourceTypeForUrl(o,r[e]),n.runActionsForSourceTypeAndIndex(o,e)}))}}function V(e){var t=e.data,n=e.core.eventsDispatcher;t.isInitialized=!0,function(e){for(var t=e.data.sourcesCount,n=e.props,o=n.sources,i=n.customSources,s=e.resolve,r=s(k),c=s(X),a=s(j,[r,c]),l=0;l<t;l++)if(i&&i[l])c.runActionsForSourceTypeAndIndex(H,l);else{var u=a.getTypeSetByClientForIndex(l);if(u)c.runActionsForSourceTypeAndIndex(u,l);else{var d=r.getSourceTypeFromLocalStorageByUrl(o[l]);d?c.runActionsForSourceTypeAndIndex(d,l):a.retrieveTypeWithXhrForIndex(l)}}}(e),n.dispatch("onInit")}function Y(e){var t,n,o;n=(t=e).core.classFacade,o=t.elements,n.removeFromEachElementClassIfContains=function(e,t){for(var n=0;n<o[e].length;n++)r(o[e][n],t)},function(e){var t=e.core.eventsDispatcher,n=e.props;t.dispatch=function(e){n[e]&&n[e]()}}(e),function(e){var t=e.componentsServices.isFullscreenOpenManager,n=e.core.fullscreenToggler;n.enterFullscreen=function(){t.set(!0);var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},n.exitFullscreen=function(){t.set(!1),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}}(e),function(e){var t=e.core,n=t.globalEventsController,o=t.windowResizeActioner,i=e.resolve,s=i(C),r=i(T),c=i(z);n.attachListeners=function(){document.addEventListener("mousemove",r.listener),document.addEventListener("touchmove",r.listener,{passive:!0}),document.addEventListener("mouseup",c.listener),document.addEventListener("touchend",c.listener,{passive:!0}),addEventListener("resize",o.runActions),document.addEventListener("keydown",s.listener)},n.removeListeners=function(){document.removeEventListener("mousemove",r.listener),document.removeEventListener("touchmove",r.listener),document.removeEventListener("mouseup",c.listener),document.removeEventListener("touchend",c.listener),removeEventListener("resize",o.runActions),document.removeEventListener("keydown",s.listener)}}(e),function(e){var t=e.core.lightboxCloser,n=(0,e.resolve)(w);t.close=function(){n.isLightboxFadingOut||n.runActions()}}(e),function(e){var t=e.componentsServices.isLightboxOpenManager,n=e.core,o=n.lightboxOpener,i=n.lightboxOpenActioner;o.open=function(){t.set(!0,i.runActions)}}(e),function(e){var t=e.collections.sourcesOutersTransformers,n=e.core,o=n.eventsDispatcher,i=n.lightboxOpenActioner,s=n.globalEventsController,r=n.scrollbarRecompensor,c=n.stageManager,a=n.windowResizeActioner,l=e.data,d=e.stageIndexes;i.runActions=function(){c.updateStageIndexes(),document.documentElement.classList.add(u),a.runActions(),r.addRecompense(),s.attachListeners(),t[d.current].zero(),o.dispatch("onOpen"),l.isInitialized?o.dispatch("onShow"):V(e)}}(e),function(e){var t=e.componentsServices.isLightboxOpenManager,n=e.core,o=n.lightboxUpdater,i=n.lightboxCloser,s=n.lightboxOpener,r=n.slideIndexChanger,c=e.stageIndexes;o.handleTogglerUpdate=function(){t.get()?i.close():s.open()},o.runCurrentStageIndexUpdateActionsFor=function(e){e!==c.current&&(t.get()?r.jumpTo(e):c.current=e)}}(e),function(e){var t=e.data,n=e.core.scrollbarRecompensor;n.addRecompense=function(){"complete"===document.readyState?o():window.addEventListener("load",(function(){o(),n.addRecompense=o}))};var o=function(){document.body.offsetHeight>window.innerHeight&&(document.body.style.marginRight=t.scrollbarWidth+"px")};n.removeRecompense=function(){document.body.style.removeProperty("margin-right")}}(e),function(e){var t=e.core,n=t.slideChangeFacade,o=t.slideIndexChanger,i=t.stageManager;e.data.sourcesCount>1?(n.changeToPrevious=function(){o.jumpTo(i.getPreviousSlideIndex())},n.changeToNext=function(){o.jumpTo(i.getNextSlideIndex())}):(n.changeToPrevious=function(){},n.changeToNext=function(){})}(e),I(e),function(e){var t=e.core,n=t.classFacade,o=t.slideSwipingDown,i=e.elements.sources,s=e.slideSwipingProps,r=e.stageIndexes;o.listener=function(e){s.isSwiping=!0,s.downClientX=L(e),s.swipedX=0,"VIDEO"===e.target.tagName||e.touches||e.preventDefault();var t=i[r.current];t&&t.contains(e.target)?s.isSourceDownEventTarget=!0:s.isSourceDownEventTarget=!1,n.removeFromEachElementClassIfContains(_,d)}}(e),function(e){var t=e.stageIndexes,n=e.core.stageManager,o=e.data.sourcesCount-1;n.getPreviousSlideIndex=function(){return 0===t.current?o:t.current-1},n.getNextSlideIndex=function(){return t.current===o?0:t.current+1},n.updateStageIndexes=0===o?function(){}:1===o?function(){0===t.current?(t.next=1,delete t.previous):(t.previous=0,delete t.next)}:function(){t.previous=n.getPreviousSlideIndex(),t.next=n.getNextSlideIndex()},n.isSourceInStage=o<=2?function(){return!0}:function(e){var n=t.current;if(0===n&&e===o||n===o&&0===e)return!0;var i=n-e;return-1===i||0===i||1===i}}(e),function(e){var t=e.collections,n=t.sourcesOutersTransformers,o=t.sourcesStylers,i=e.core.windowResizeActioner,s=e.componentsServices.isFullscreenOpenManager,c=e.data,a=e.elements.sourcesOuters,l=e.stageIndexes;i.runActions=function(){innerWidth<992?c.maxSourceWidth=innerWidth:c.maxSourceWidth=.9*innerWidth,c.maxSourceHeight=.9*innerHeight,screen.height!==innerHeight&&s.set&&s.set(!1);for(var e=0;e<c.sourcesCount;e++)r(a[e],d),e!==l.current&&n[e].negative(),o[e]&&o[e].styleSize()}}(e)}function q(e,t){var n=this,o=e.elements.sourcesOuters,i=e.props.slideDistance+1,s=0;this.byValue=function(e){return s=e,n},this.negative=function(){r(-c())},this.zero=function(){r(0)},this.positive=function(){r(c())};var r=function(e){o[t].style.transform="translateX(".concat(e+s,"px)"),s=0},c=function(){return i*innerWidth}}function J(e){for(var t=e.data.sourcesCount,n=e.resolve,o=[],i=0;i<t;i++){var s=n(q,[i]);o.push(s)}return o}function G(e,t,n){return(G=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&Z(i,n.prototype),i}).apply(null,arguments)}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Q(e){var t,n,o,i,r=this;this.props=e,this.data={sourcesCount:(t=this,n=t.props,o=n.sources,i=n.customSources,i?o?Math.max(i.length,o.length):i.length:o.length),isInitialized:!1,maxSourceWidth:0,maxSourceHeight:0,scrollbarWidth:0},this.slideSwipingProps={isSwiping:!1,downClientX:null,isSourceDownEventTarget:!1,swipedX:0},this.stageIndexes={previous:void 0,current:s(this),next:void 0},this.componentsServices={isLightboxOpenManager:{},setSlideNumber:null,isFullscreenOpenManager:{},hideLoaderCollection:[],setSourceComponentCollection:[],isSlideSwipingHovererShownManager:{}},this.elements={container:null,sourcesOutersWrapper:null,sources:[],sourcesOuters:[],sourcesInners:[],sourcesComponents:[]},this.resolve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.unshift(r),G(e,K(t))},this.collections={sourcesOutersTransformers:J(this),sourcesLoadsHandlers:[],sourcesStylers:[],xhrs:[]},this.core={classFacade:{},eventsDispatcher:{},fullscreenToggler:{},globalEventsController:{},lightboxCloser:{},lightboxOpener:{},lightboxOpenActioner:{},lightboxUpdater:{},scrollbarRecompensor:{},slideChangeFacade:{},slideIndexChanger:{},slideSwipingDown:{},sourceLoadActioner:{},stageManager:{},windowResizeActioner:{}},Y(this)}var ee=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"nav",staticClass:"fslightbox-nav"},[t("Toolbar",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}),this._v(" "),this.hasMoreThanSource?t("SlideNumber",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}):this._e()],1)};ee._withStripped=!0;var te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"fslightbox-toolbar"},[t("FullscreenButton",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}),this._v(" "),t("CloseButton",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}})],1)};te._withStripped=!0;var ne=function(){var e=this.$createElement;return(this._self._c||e)("ToolbarButton",{attrs:{"on-click":this.onClick,"view-box":"0 0 24 24",size:"20px",d:"M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z",title:"Close"}})};ne._withStripped=!0;var oe=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"fslightbox-toolbar-button fslightbox-flex-centered",attrs:{title:this.title},on:{click:this.onClick}},[t("Svger",{attrs:{size:this.size,"view-box":this.viewBox,d:this.d}})],1)};oe._withStripped=!0;var ie=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{width:this.size,height:this.size,viewBox:this.viewBox,xmlns:"http://www.w3.org/2000/svg"}},[t("path",{staticClass:"fslightbox-svg-path",attrs:{d:this.d}})])};function se(e,t,n,o,i,s,r,c){var a,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),r?(a=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=a):i&&(a=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),a)if(l.functional){l._injectStyles=a;var u=l.render;l.render=function(e,t){return a.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,a):[a]}return{exports:e,options:l}}ie._withStripped=!0;var re=se({props:{size:String,viewBox:String,d:String}},ie,[],!1,null,null,null);re.options.__file="src/components/helpers/Svger.vue";var ce=re.exports,ae=se({components:{Svger:ce},props:{onClick:Function,size:String,viewBox:String,d:String,title:String}},oe,[],!1,null,null,null);ae.options.__file="src/components/nav/toolbar/ToolbarButton.vue";var le=ae.exports,ue=se({components:{ToolbarButton:le},props:{fsLightboxIndex:Number},data:function(){return{onClick:i[this.fsLightboxIndex].core.lightboxCloser.close}}},ne,[],!1,null,null,null);ue.options.__file="src/components/nav/toolbar/toolbar-buttons/CloseButton.vue";var de=ue.exports,he=function(){var e=this.$createElement;return(this._self._c||e)("ToolbarButton",{attrs:{"on-click":this.getButtonData("onClick"),"view-box":this.getButtonData("viewBox"),size:this.getButtonData("size"),d:this.getButtonData("d"),title:this.getButtonData("title")}})};he._withStripped=!0;var fe=se({components:{ToolbarButton:le},props:{fsLightboxIndex:Number},data:function(){return{isFullscreenOpen:!1}},methods:{getButtonData:function(e){var t=i[this.fsLightboxIndex].core.fullscreenToggler,n=t.exitFullscreen,o=t.enterFullscreen;return(this.isFullscreenOpen?{onClick:n,viewBox:"0 0 950 1024",size:"24px",d:"M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z",title:"Exit fullscreen"}:{onClick:o,viewBox:"0 0 18 18",size:"20px",d:"M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z",title:"Enter fullscreen"})[e]}},created:function(){var e=this,t=i[this.fsLightboxIndex].componentsServices.isFullscreenOpenManager;t.get=function(){return e.isFullscreenOpen},t.set=function(t){return e.isFullscreenOpen=t}}},he,[],!1,null,null,null);fe.options.__file="src/components/nav/toolbar/toolbar-buttons/FullscreenButton.vue";var pe=se({components:{FullscreenButton:fe.exports,CloseButton:de},props:{fsLightboxIndex:Number}},te,[],!1,null,null,null);pe.options.__file="src/components/nav/toolbar/Toolbar.vue";var ge=pe.exports,xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fslightbox-slide-number-container fslightbox-flex-centered"},[n("div",[e._v(e._s(e.slide))]),e._v(" "),n("div",{staticClass:"fslightbox-slash"},[e._v("/")]),e._v(" "),n("div",[e._v(e._s(e.sourcesCount))])])};xe._withStripped=!0;var ve=se({props:{fsLightboxIndex:Number},data:function(){return{slide:i[this.fsLightboxIndex].stageIndexes.current+1,sourcesCount:i[this.fsLightboxIndex].data.sourcesCount}},created:function(){var e=this;i[this.fsLightboxIndex].componentsServices.setSlideNumber=function(t){return e.slide=t}}},xe,[],!1,null,null,null);ve.options.__file="src/components/nav/SlideNumber.vue";var me=se({components:{SlideNumber:ve.exports,Toolbar:ge},props:{fsLightboxIndex:Number},data:function(){return{hasMoreThanSource:i[this.fsLightboxIndex].data.sourcesCount>1}}},ee,[],!1,null,null,null);me.options.__file="src/components/nav/Nav.vue";var be=me.exports,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"ref",staticClass:"fslightbox-absoluted fslightbox-full-dimension",on:{mousedown:e.listener,touchstart:e.listener}},e._l(e.sourcesCount,(function(t,o){return n("SourceOuter",{key:o,attrs:{i:o,"fs-lightbox-index":e.fsLightboxIndex}})})),1)};Se._withStripped=!0;var we=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"ref",staticClass:"fslightbox-source-outer fslightbox-absoluted fslightbox-full-dimension fslightbox-flex-centered"},[t("SourceInner",{attrs:{"fs-lightbox-index":this.fsLightboxIndex,i:this.i}}),this._v(" "),this.isSourceLoaded?this._e():t("Loader")],1)};we._withStripped=!0;var Le=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"ref"},[this.sourceComponent?t(this.sourceComponent,{tag:"component",attrs:{"fs-lightbox-index":this.fsLightboxIndex,i:this.i}}):this._e()],1)};Le._withStripped=!0;var _e=function(){var e=this.$createElement;return(this._self._c||e)("img",{ref:"ref",staticClass:"fslightbox-source",attrs:{src:this.src,alt:this.src},on:{load:this.onLoad}})};_e._withStripped=!0;var ye=se({props:{fsLightboxIndex:Number,i:Number},data:function(){var e=i[this.fsLightboxIndex],t=e.collections.sourcesLoadsHandlers,n=e.props.sources;return{onLoad:t[this.i].handleImageLoad,src:n[this.i]}},mounted:function(){i[this.fsLightboxIndex].elements.sources[this.i]=this.$refs.ref}},_e,[],!1,null,null,null);ye.options.__file="src/components/sources/proper-sources/Imager.vue";var Ie=ye.exports,Ce=function(){var e=this.$createElement,t=this._self._c||e;return t("video",{ref:"ref",staticClass:"fslightbox-source fslightbox-video",attrs:{poster:this.poster,controls:""},on:{loadedmetadata:this.onLoad}},[t("source",{attrs:{src:this.src}})])};Ce._withStripped=!0;var Fe=se({props:{fsLightboxIndex:Number,i:Number},data:function(){var e=i[this.fsLightboxIndex],t=e.collections.sourcesLoadsHandlers,n=e.props,o=n.sources,s=n.videosPosters;return{onLoad:t[this.i].handleVideoLoad,src:o[this.i],poster:s&&s[this.i]}},mounted:function(){i[this.fsLightboxIndex].elements.sources[this.i]=this.$refs.ref}},Ce,[],!1,null,null,null);Fe.options.__file="src/components/sources/proper-sources/Videor.vue";var Te=Fe.exports,Oe=function(){var e=this.$createElement;return(this._self._c||e)("iframe",{ref:"ref",staticClass:"fslightbox-source fslightbox-youtube-iframe",attrs:{src:this.src,allowfullscreen:""}})};Oe._withStripped=!0;var Ee=se({props:{fsLightboxIndex:Number,i:Number},data:function(){return{src:"https://www.youtube.com/embed/".concat((e=i[this.fsLightboxIndex].props.sources[this.i],e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2]))};var e},mounted:function(){var e=i[this.fsLightboxIndex],t=e.collections.sourcesLoadsHandlers;e.elements.sources[this.i]=this.$refs.ref,t[this.i].handleYoutubeLoad()}},Oe,[],!1,null,null,null);Ee.options.__file="src/components/sources/proper-sources/Youtuber.vue";var ze=Ee.exports,Ae=function(){var e=this.$createElement;return(this._self._c||e)(this.Component,{ref:"ref",tag:"component"})};Ae._withStripped=!0;var Ne=se({props:{fsLightboxIndex:Number,i:Number},data:function(){return{Component:i[this.fsLightboxIndex].props.customSources[this.i]}},mounted:function(){var e=i[this.fsLightboxIndex],t=e.collections.sourcesLoadsHandlers,n=e.elements.sources;n[this.i]=this.$refs.ref.$el,n[this.i].classList.add(m),t[this.i].handleCustomLoad()}},Ae,[],!1,null,null,null);Ne.options.__file="src/components/sources/proper-sources/Customer.vue";var ke=Ne.exports,Be=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"fslightbox-invalid-file-wrapper fslightbox-flex-centered"},[this._v("\n Invalid source\n")])};Be._withStripped=!0;var Me=se({props:{fsLightboxIndex:Number,i:Number},mounted:function(){var e=i[this.fsLightboxIndex],t=e.componentsServices.hideLoaderCollection,n=e.elements.sourcesOuters;t[this.i](),n[this.i].classList.add(p)}},Be,[],!1,null,null,null);Me.options.__file="src/components/sources/proper-sources/Invalider.vue";var Re=Me.exports,He=se({props:{fsLightboxIndex:Number,i:Number},components:{Imager:Ie,Videor:Te,Youtuber:ze,Customer:ke,Invalider:Re},data:function(){return{sourceComponent:null}},created:function(){var e=this;i[this.fsLightboxIndex].componentsServices.setSourceComponentCollection[this.i]=function(t){e.sourceComponent=t}},mounted:function(){i[this.fsLightboxIndex].elements.sourcesInners[this.i]=this.$refs.ref}},Le,[],!1,null,null,null);He.options.__file="src/components/sources/SourceInner.vue";var $e=He.exports,Pe=function(){var e=this.$createElement;this._self._c;return this._m(0)};Pe._withStripped=!0;var De=se({},Pe,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"fslightbox-loader"},[t("div"),this._v(" "),t("div"),this._v(" "),t("div"),this._v(" "),t("div")])}],!1,null,null,null);De.options.__file="src/components/helpers/Loader.vue";var Ue=De.exports,Xe=se({props:{fsLightboxIndex:Number,i:Number},components:{SourceInner:$e,Loader:Ue},data:function(){return{isSourceLoaded:!1}},created:function(){var e=this;i[this.fsLightboxIndex].componentsServices.hideLoaderCollection[this.i]=function(){return e.isSourceLoaded=!0}},mounted:function(){i[this.fsLightboxIndex].elements.sourcesOuters[this.i]=this.$refs.ref}},we,[],!1,null,null,null);Xe.options.__file="src/components/sources/SourceOuter.vue";var We=Xe.exports,je=se({props:{fsLightboxIndex:Number},components:{SourceOuter:We},data:function(){var e=i[this.fsLightboxIndex],t=e.core.slideSwipingDown.listener;return{sourcesCount:e.data.sourcesCount,listener:t}},mounted:function(){i[this.fsLightboxIndex].elements.sourcesOutersWrapper=this.$refs.ref}},Se,[],!1,null,null,null);je.options.__file="src/components/sources/SourcesOutersWrapper.vue";var Ve=je.exports,Ye=function(){var e=this.$createElement,t=this._self._c||e;return this.sourcesCount>1?t("div",[t("SlideButton",{attrs:{"on-click":this.changeToPrevious,name:"previous",d:"M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"}}),this._v(" "),t("SlideButton",{attrs:{"on-click":this.changeToNext,name:"next",d:"M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z"}})],1):this._e()};Ye._withStripped=!0;var qe=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:"fslightbox-slide-btn-container fslightbox-slide-btn-"+this.name+"-container",attrs:{title:this.title},on:{click:this.onClick}},[t("div",{staticClass:"fslightbox-slide-btn fslightbox-flex-centered"},[t("Svger",{attrs:{"view-box":"0 0 20 20",size:"20px",d:this.d}})],1)])};qe._withStripped=!0;var Je=se({components:{Svger:ce},props:{onClick:Function,name:String,d:String},data:function(){var e=this.name.charAt(0).toUpperCase()+this.name.slice(1);return{title:"".concat(e," slide")}}},qe,[],!1,null,null,null);Je.options.__file="src/components/SlideButton.vue";var Ge=Je.exports,Ze=se({props:{fsLightboxIndex:Number},components:{SlideButton:Ge},data:function(){var e=i[this.fsLightboxIndex],t=e.core.slideChangeFacade,n=t.changeToPrevious,o=t.changeToNext;return{sourcesCount:e.data.sourcesCount,changeToPrevious:n,changeToNext:o}}},Ye,[],!1,null,null,null);Ze.options.__file="src/components/SlideButtons.vue";var Ke=Ze.exports,Qe=function(){var e=this.$createElement,t=this._self._c||e;return this.isSlideSwipingHovererShown?t("div",{staticClass:"fslightbox-slide-swiping-hoverer fslightbox-full-dimension fslightbox-absoluted"}):this._e()};Qe._withStripped=!0;var et=se({props:{fsLightboxIndex:Number},data:function(){return{isSlideSwipingHovererShown:!1}},created:function(){var e=this,t=i[this.fsLightboxIndex].componentsServices.isSlideSwipingHovererShownManager;t.get=function(){return e.isSlideSwipingHovererShown},t.set=function(t){return e.isSlideSwipingHovererShown=t}}},Qe,[],!1,null,null,null);et.options.__file="src/components/SlideSwipingHoverer.vue";var tt,nt=et.exports,ot="@import url(https://fonts.googleapis.com/css?family=Roboto);.fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-fade-in{animation:fslightbox-fade-in .25s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .25s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong .25s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .25s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-cursor-grabbing{cursor:grabbing}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s}.fslightbox-container{font-family:Roboto,sans-serif;position:fixed;top:0;left:0;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);z-index:9999999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg-path{transition:fill .15s ease;fill:#ddd}.fslightbox-nav{height:45px;width:100%;position:absolute;top:0;left:0}.fslightbox-slide-number-container{height:100%;font-size:14px;color:#d7d7d7;z-index:0;max-width:55px}.fslightbox-slide-number-container div{padding:0 1.5px}.fslightbox-slash{margin-top:-1.5px;font-size:16px}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:100%;display:flex;background:rgba(35,35,35,.65)}.fslightbox-toolbar-button{height:100%;width:45px;cursor:pointer}.fslightbox-toolbar-button:hover .fslightbox-svg-path{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%)}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}}.fslightbox-slide-btn-container:hover .fslightbox-svg-path{fill:#f1f1f1}.fslightbox-slide-btn{padding:9px;font-size:26px;background:rgba(35,35,35,.65)}@media (min-width:768px){.fslightbox-slide-btn{padding:10px}}@media (min-width:1600px){.fslightbox-slide-btn{padding:11px}}.fslightbox-slide-btn-previous-container{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-previous-container{padding-left:3px}}.fslightbox-slide-btn-next-container{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-next-container{padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-next-container{padding-left:30px}}@media (min-width:476px){.fslightbox-slide-btn-next-container{padding-right:6px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-invalid-file-wrapper{font-size:22px;color:#eaebeb;margin:auto}.fslightbox-video{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightbox-loader{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightbox-loader div{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightbox-loader 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightbox-loader div:nth-child(1){animation-delay:-.45s}.fslightbox-loader div:nth-child(2){animation-delay:-.3s}.fslightbox-loader div:nth-child(3){animation-delay:-.15s}@keyframes fslightbox-loader{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-source{position:relative;margin:auto;opacity:0;z-index:2;backface-visibility:hidden;transform:translateZ(0);transition:opacity .3s;will-change:opacity}.fslightbox-source-outer{will-change:transform}";function it(){var e;document.getElementsByClassName(a).length||((e=document.createElement("style")).className=a,e.appendChild(document.createTextNode(ot)),document.head.appendChild(e))}function st(){var e=localStorage.getItem(N);if(e)return e;var t=function(){var e=document.createElement("div"),t=e.style;return t.visibility="hidden",t.width="100px",t.msOverflowStyle="scrollbar",t.overflow="scroll",e}(),n=function(){var e=document.createElement("div");return e.style.width="100%",e}();document.body.appendChild(t);var o=t.offsetWidth;t.appendChild(n);var i=n.offsetWidth;document.body.removeChild(t);var s=o-i;return localStorage.setItem(N,s.toString()),s}var rt=se({props:{toggler:Boolean,sources:Array,customSources:Array,slide:Number,source:String,sourceIndex:Number,onOpen:Function,onClose:Function,onInit:Function,onShow:Function,disableLocalStorage:Boolean,types:Array,type:String,videosPosters:Array,maxYoutubeVideoDimensions:Object,slideDistance:{type:Number,default:.3},openOnMount:Boolean},components:{SlideButtons:Ke,SourcesOutersWrapper:Ve,Nav:be,SlideSwipingHoverer:nt},data:function(){return{isOpen:this.openOnMount}},watch:{toggler:function(){i[this.fsLightboxIndex].core.lightboxUpdater.handleTogglerUpdate()},slide:function(e){i[this.fsLightboxIndex].core.lightboxUpdater.runCurrentStageIndexUpdateActionsFor(e-1)},sourceIndex:function(e){i[this.fsLightboxIndex].core.lightboxUpdater.runCurrentStageIndexUpdateActionsFor(e)},source:function(e){i[this.fsLightboxIndex].core.lightboxUpdater.runCurrentStageIndexUpdateActionsFor(this.sources.indexOf(e))}},created:function(){var e=this;this.fsLightboxIndex=i.push(new Q(this))-1;var t=i[this.fsLightboxIndex].componentsServices.isLightboxOpenManager;t.get=function(){return e.isOpen},t.set=function(t,n){e.isOpen=t,n&&(tt=n)}},mounted:function(){var e,t,n,o;i[this.fsLightboxIndex].elements.container=this.$refs.container,e=i[this.fsLightboxIndex],t=e.core.lightboxOpenActioner.runActions,n=e.data,o=e.props.openOnMount,it(),n.scrollbarWidth=st(),o&&t()},updated:function(){i[this.fsLightboxIndex].elements.container||(i[this.fsLightboxIndex].elements.container=this.$refs.container),tt&&tt(),tt=null}},o,[],!1,null,null,null);rt.options.__file="src/FsLightbox.vue";var ct=rt.exports;t.default=ct}]);
module.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var o=function(){var e=this.$createElement,t=this._self._c||e;return this.isOpen?t("div",{ref:"container",staticClass:"fslightbox-container fslightbox-full-dimension fslightbox-fade-in-strong"},[t("Nav",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}),this._v(" "),t("SourcesOutersWrapper",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}),this._v(" "),t("SlideButtons",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}),this._v(" "),t("SlideSwipingHoverer",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}})],1):this._e()};o._withStripped=!0;var i=[];function s(e){var t=e.data.sources,n=e.props,o=n.slide,i=n.sourceIndex,s=n.source,r=0;return s?r=t.indexOf(s):i?r=i:o&&(r=o-1),r}function r(e,t){var n=e.classList;n.contains(t)&&n.remove(t)}var a="fslightbox-",c="".concat(a,"styles"),l="".concat(a,"cursor-grabbing"),u=("".concat(a,"full-dimension"),"".concat(a,"flex-centered"),"".concat(a,"open")),d="".concat(a,"transform-transition"),h=("".concat(a,"absoluted"),"".concat(a,"fade-in")),f="".concat(a,"fade-out"),p=h+"-strong",g=f+"-strong",x="".concat(a,"opacity-"),v=("".concat(x,"0"),"".concat(x,"1")),m="".concat(a,"source"),b="".concat(m,"-outer");"".concat(b,"s-outers-wrapper");var S=250;function w(e){var t=this,n=e.componentsServices,o=n.isFullscreenOpenManager,i=n.isLightboxOpenManager,s=e.core,r=s.eventsDispatcher,a=s.fullscreenToggler,c=s.globalEventsController,l=s.scrollbarRecompensor,d=e.elements,h=e.slideSwipingProps;this.isLightboxFadingOut=!1,this.runActions=function(){t.isLightboxFadingOut=!0,d.container.classList.add(g),c.removeListeners(),o.get()&&a.exitFullscreen(),setTimeout((function(){t.isLightboxFadingOut=!1,h.isSwiping=!1,d.container.classList.remove(g),document.documentElement.classList.remove(u),l.removeRecompense(),i.set(!1),r.dispatch("onClose")}),S-30)}}function L(e){return e.touches?e.touches[0].clientX:e.clientX}var _="sourcesOuters",y="sourcesInners";function I(e){var t,n,o,i=e.collections.sourcesOutersTransformers,s=e.componentsServices,a=e.core,c=a.classFacade,l=a.slideIndexChanger,u=a.sourceDisplayFacade,g=a.stageManager,x=e.elements.sourcesInners,v=e.stageIndexes,m=(t=function(){c.removeFromEachElementClassIfContains(y,f)},n=S,o=[],function(){o.push(!0),setTimeout((function(){o.pop(),o.length||t()}),n)});l.changeTo=function(e){v.current=e,g.updateStageIndexes(),s.setSlideNumber(e+1),u.displayStageSourcesIfNotYet()},l.jumpTo=function(e){var t=v.current;l.changeTo(e),c.removeFromEachElementClassIfContains(_,d),r(x[t],p),r(x[t],h),x[t].classList.add(f),r(x[e],p),r(x[e],f),x[e].classList.add(h),m(),i[e].zero(),setTimeout((function(){t!==v.current&&i[t].negative()}),S-30)}}function C(e){var t=e.core,n=t.lightboxCloser,o=t.fullscreenToggler,i=t.slideChangeFacade;this.listener=function(e){switch(e.keyCode){case 27:n.close();break;case 37:i.changeToPrevious();break;case 39:i.changeToNext();break;case 122:e.preventDefault(),o.enterFullscreen()}}}function F(e){var t=e.collections.sourcesOutersTransformers,n=e.componentsServices.isSlideSwipingHovererShownManager,o=e.elements,i=e.slideSwipingProps,s=e.stageIndexes;this.runActionsForEvent=function(e){n.get()||n.set(!0),o.container.classList.add(l),i.swipedX=L(e)-i.downClientX,r(s.current,"zero"),void 0!==s.previous&&i.swipedX>0?r(s.previous,"negative"):void 0!==s.next&&i.swipedX<0&&r(s.next,"positive")};var r=function(e,n){t[e].byValue(i.swipedX)[n]()}}function T(e){var t,n=e.data,o=e.resolve,i=e.slideSwipingProps,s=o(F),r=(t=!1,function(){return!t&&(t=!0,requestAnimationFrame((function(){t=!1})),!0)});1===n.sourcesCount?this.listener=function(){i.swipedX=1}:this.listener=function(e){i.isSwiping&&r()&&s.runActionsForEvent(e)}}function O(e){var t=e.collections.sourcesOutersTransformers,n=e.core.slideIndexChanger,o=e.elements.sourcesOuters,i=e.stageIndexes;this.runPositiveSwipedXActions=function(){void 0===i.previous?s("zero"):(s("positive"),n.changeTo(i.previous),s("zero"))},this.runNegativeSwipedXActions=function(){void 0===i.next?s("zero"):(s("negative"),n.changeTo(i.next),s("zero"))};var s=function(e){o[i.current].classList.add(d),t[i.current][e]()}}function E(e){var t=e.componentsServices.isSlideSwipingHovererShownManager,n=e.core.lightboxCloser,o=e.elements,i=e.resolve,s=e.slideSwipingProps,r=i(O);this.runNoSwipeActions=function(){s.isSourceDownEventTarget||n.close(),s.isSwiping=!1},this.runActions=function(){s.swipedX>0?r.runPositiveSwipedXActions():r.runNegativeSwipedXActions(),t.set(!1),o.container.classList.remove(l),s.isSwiping=!1}}function z(e){var t=e.resolve,n=e.slideSwipingProps,o=t(E);this.listener=function(){n.isSwiping&&(n.swipedX?o.runActions():o.runNoSwipeActions())}}var N="fslightbox-types",A="fslightbox-scrollbar-width";function k(e){var t,n=e.props.disableLocalStorage,o=0,i={};this.getSourceTypeFromLocalStorageByUrl=function(e){return t[e]?t[e]:s(e)},this.handleReceivedSourceTypeForUrl=function(e,t){void 0!==i[t]&&(o--,i[t]=e,r())};var s=function(e){o++,i[e]=!1},r=function(){0===o&&(!function(e,t){for(var n in t)e[n]=t[n]}(t,i),localStorage.setItem(N,JSON.stringify(t)))};n?(this.getSourceTypeFromLocalStorageByUrl=function(){},this.handleReceivedSourceTypeForUrl=function(){}):(t=JSON.parse(localStorage.getItem(N)))||(t={},this.getSourceTypeFromLocalStorageByUrl=s)}var B="image",M="video",R="youtube",H="custom",$="invalid";function D(e,t,n,o){var i=e.data,s=e.elements.sources,r=n/o,a=0;this.styleSize=function(){if((a=i.maxSourceWidth/r)<i.maxSourceHeight)return n<i.maxSourceWidth&&(a=o),c();a=o>i.maxSourceHeight?i.maxSourceHeight:o,c()};var c=function(){var e=s[t].style;e.width=a*r+"px",e.height=a+"px"}}function P(e,t,n,o){var i=this,s=e.componentsServices.hideLoaderCollection,r=e.collections.sourcesStylers,a=e.elements,c=a.sourcesInners,l=a.sources,u=e.resolve;this.runNormalLoadActions=function(){l[t].classList.add(v),c[t].classList.add(p),s[t](),r[t].styleSize()},this.runInitialLoadActions=function(){r[t]=u(D,[t,n,o]),i.runNormalLoadActions()}}function U(e,t){var n=this,o=e.elements.sources,i=e.props.maxYoutubeVideoDimensions,s=e.resolve;this.handleImageLoad=function(e){var t=e.target,o=t.width,i=t.height;n.handleImageLoad=r(o,i)},this.handleVideoLoad=function(e){var t=e.target,o=t.videoWidth,i=t.videoHeight;n.handleVideoLoad=r(o,i)},this.handleYoutubeLoad=function(){var e=1920,t=1080;i&&(e=i.width,t=i.height),n.handleYoutubeLoad=r(e,t)},this.handleCustomLoad=function(){var e=o[t];n.handleCustomLoad=r(e.offsetWidth,e.offsetHeight)};var r=function(e,n){var o=s(P,[t,e,n]);return o.runInitialLoadActions(),o.runNormalLoadActions}}function X(e){var t=e.collections.sourcesLoadsHandlers,n=e.componentsServices,o=n.isLightboxOpenManager,i=n.updateSourceInnerCollection,s=e.elements.sourcesComponents,r=e.resolve;this.runActionsForSourceTypeAndIndex=function(e,n){var a;switch(e!==$&&(t[n]=r(U,[n])),e){case B:a="Imager";break;case M:a="Videor";break;case R:a="Youtuber";break;case H:a="Customer";break;default:a="Invalider"}s[n]=a,o.get()&&i[n]()}}function W(e){var t,n,o,i,s,r=e.collections.xhrs,a={isUrlYoutubeOne:function(e){var t=document.createElement("a");return t.href=e,"www.youtube.com"===t.hostname},getTypeFromResponseContentType:function(e){return e.slice(0,e.indexOf("/"))}};this.setUrlToCheck=function(e){t=e},this.getSourceType=function(e){if(a.isUrlYoutubeOne(t))return e(R);o=e,i=new XMLHttpRequest,r.push(i),i.open("GET",t,!0),i.onreadystatechange=c,i.send()};var c=function(){if(4===i.readyState&&0===i.status&&!s)return l();if(2===i.readyState){if(200!==i.status&&206!==i.status)return s=!0,l();s=!0,d(a.getTypeFromResponseContentType(i.getResponseHeader("content-type"))),u()}},l=function(){n=$,u()},u=function(){i.abort(),o(n)},d=function(e){switch(e){case"image":n=B;break;case"video":n=M;break;default:n=$}}}function j(e,t,n){var o=e.props,i=o.types,s=o.type,r=o.sources,a=e.resolve;this.getTypeSetByClientForIndex=function(e){var t;return i&&i[e]?t=i[e]:s&&(t=s),t},this.retrieveTypeWithXhrForIndex=function(e){var o=a(W);o.setUrlToCheck(r[e]),o.getSourceType((function(o){t.handleReceivedSourceTypeForUrl(o,r[e]),n.runActionsForSourceTypeAndIndex(o,e)}))}}function V(e){var t=e.data,n=e.core.eventsDispatcher;t.isInitialized=!0,function(e){for(var t=e.data.sourcesCount,n=e.props,o=n.sources,i=n.customSources,s=e.resolve,r=s(k),a=s(X),c=s(j,[r,a]),l=0;l<t;l++)if(i&&i[l])a.runActionsForSourceTypeAndIndex(H,l);else{var u=c.getTypeSetByClientForIndex(l);if(u)a.runActionsForSourceTypeAndIndex(u,l);else{var d=r.getSourceTypeFromLocalStorageByUrl(o[l]);d?a.runActionsForSourceTypeAndIndex(d,l):c.retrieveTypeWithXhrForIndex(l)}}}(e),n.dispatch("onInit")}function Y(e){var t,n,o;n=(t=e).core.classFacade,o=t.elements,n.removeFromEachElementClassIfContains=function(e,t){for(var n=0;n<o[e].length;n++)r(o[e][n],t)},function(e){var t=e.core.eventsDispatcher,n=e.props;t.dispatch=function(e){n[e]&&n[e]()}}(e),function(e){var t=e.componentsServices.isFullscreenOpenManager,n=e.core.fullscreenToggler;n.enterFullscreen=function(){t.set(!0);var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},n.exitFullscreen=function(){t.set(!1),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}}(e),function(e){var t=e.core,n=t.globalEventsController,o=t.windowResizeActioner,i=e.resolve,s=i(C),r=i(T),a=i(z);n.attachListeners=function(){document.addEventListener("mousemove",r.listener),document.addEventListener("touchmove",r.listener,{passive:!0}),document.addEventListener("mouseup",a.listener),document.addEventListener("touchend",a.listener,{passive:!0}),addEventListener("resize",o.runActions),document.addEventListener("keydown",s.listener)},n.removeListeners=function(){document.removeEventListener("mousemove",r.listener),document.removeEventListener("touchmove",r.listener),document.removeEventListener("mouseup",a.listener),document.removeEventListener("touchend",a.listener),removeEventListener("resize",o.runActions),document.removeEventListener("keydown",s.listener)}}(e),function(e){var t=e.core.lightboxCloser,n=(0,e.resolve)(w);t.close=function(){n.isLightboxFadingOut||n.runActions()}}(e),function(e){var t=e.componentsServices.isLightboxOpenManager,n=e.core,o=n.lightboxOpener,i=n.lightboxOpenActioner;o.open=function(){t.set(!0,i.runActions)}}(e),function(e){var t=e.collections.sourcesOutersTransformers,n=e.core,o=n.eventsDispatcher,i=n.lightboxOpenActioner,s=n.globalEventsController,r=n.scrollbarRecompensor,a=n.sourceDisplayFacade,c=n.stageManager,l=n.windowResizeActioner,d=e.data,h=e.stageIndexes;i.runActions=function(){c.updateStageIndexes(),document.documentElement.classList.add(u),l.runActions(),r.addRecompense(),s.attachListeners(),t[h.current].zero(),o.dispatch("onOpen"),d.isInitialized?(o.dispatch("onShow"),a.displayStageSourcesIfNotYet()):V(e)}}(e),function(e){var t=e.componentsServices.isLightboxOpenManager,n=e.core,o=n.lightboxUpdater,i=n.lightboxCloser,s=n.lightboxOpener,r=n.slideIndexChanger,a=e.stageIndexes;o.handleTogglerUpdate=function(){t.get()?i.close():s.open()},o.runCurrentStageIndexUpdateActionsFor=function(e){e!==a.current&&(t.get()?r.jumpTo(e):a.current=e)}}(e),function(e){var t=e.data,n=e.core.scrollbarRecompensor;n.addRecompense=function(){"complete"===document.readyState?o():window.addEventListener("load",(function(){o(),n.addRecompense=o}))};var o=function(){document.body.offsetHeight>window.innerHeight&&(document.body.style.marginRight=t.scrollbarWidth+"px")};n.removeRecompense=function(){document.body.style.removeProperty("margin-right")}}(e),function(e){var t=e.core,n=t.slideChangeFacade,o=t.slideIndexChanger,i=t.stageManager;e.data.sourcesCount>1?(n.changeToPrevious=function(){o.jumpTo(i.getPreviousSlideIndex())},n.changeToNext=function(){o.jumpTo(i.getNextSlideIndex())}):(n.changeToPrevious=function(){},n.changeToNext=function(){})}(e),I(e),function(e){var t=e.core,n=t.classFacade,o=t.slideSwipingDown,i=e.elements.sources,s=e.slideSwipingProps,r=e.stageIndexes;o.listener=function(e){s.isSwiping=!0,s.downClientX=L(e),s.swipedX=0,"VIDEO"===e.target.tagName||e.touches||e.preventDefault();var t=i[r.current];t&&t.contains(e.target)?s.isSourceDownEventTarget=!0:s.isSourceDownEventTarget=!1,n.removeFromEachElementClassIfContains(_,d)}}(e),function(e){var t=e.core.sourceDisplayFacade,n=e.componentsServices.updateSourceInnerCollection,o=e.stageIndexes;t.displayStageSourcesIfNotYet=function(){for(var e in o)n[o[e]]()}}(e),function(e){var t=e.stageIndexes,n=e.core.stageManager,o=e.data.sourcesCount-1;n.getPreviousSlideIndex=function(){return 0===t.current?o:t.current-1},n.getNextSlideIndex=function(){return t.current===o?0:t.current+1},n.updateStageIndexes=0===o?function(){}:1===o?function(){0===t.current?(t.next=1,delete t.previous):(t.previous=0,delete t.next)}:function(){t.previous=n.getPreviousSlideIndex(),t.next=n.getNextSlideIndex()},n.isSourceInStage=o<=2?function(){return!0}:function(e){var n=t.current;if(0===n&&e===o||n===o&&0===e)return!0;var i=n-e;return-1===i||0===i||1===i}}(e),function(e){var t=e.collections,n=t.sourcesOutersTransformers,o=t.sourcesStylers,i=e.core.windowResizeActioner,s=e.componentsServices.isFullscreenOpenManager,a=e.data,c=e.elements.sourcesOuters,l=e.stageIndexes;i.runActions=function(){innerWidth<992?a.maxSourceWidth=innerWidth:a.maxSourceWidth=.9*innerWidth,a.maxSourceHeight=.9*innerHeight,screen.height!==innerHeight&&s.set&&s.set(!1);for(var e=0;e<a.sourcesCount;e++)r(c[e],d),e!==l.current&&n[e].negative(),o[e]&&o[e].styleSize()}}(e)}function q(e,t){var n=this,o=e.elements.sourcesOuters,i=e.props.slideDistance+1,s=0;this.byValue=function(e){return s=e,n},this.negative=function(){r(-a())},this.zero=function(){r(0)},this.positive=function(){r(a())};var r=function(e){o[t].style.transform="translateX(".concat(e+s,"px)"),s=0},a=function(){return i*innerWidth}}function J(e){for(var t=e.data.sourcesCount,n=e.resolve,o=[],i=0;i<t;i++){var s=n(q,[i]);o.push(s)}return o}function G(e,t,n){return(G=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&Z(i,n.prototype),i}).apply(null,arguments)}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Q(e){var t,n,o,i,r=this;this.props=e,this.data={sourcesCount:(t=this,n=t.props,o=n.sources,i=n.customSources,i?o?Math.max(i.length,o.length):i.length:o.length),isInitialized:!1,maxSourceWidth:0,maxSourceHeight:0,scrollbarWidth:0},this.slideSwipingProps={isSwiping:!1,downClientX:null,isSourceDownEventTarget:!1,swipedX:0},this.stageIndexes={previous:void 0,current:s(this),next:void 0},this.componentsServices={isLightboxOpenManager:{},setSlideNumber:null,isFullscreenOpenManager:{},hideLoaderCollection:[],updateSourceInnerCollection:[],isSlideSwipingHovererShownManager:{}},this.elements={container:null,sourcesOutersWrapper:null,sources:[],sourcesOuters:[],sourcesInners:[],sourcesComponents:[]},this.resolve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.unshift(r),G(e,K(t))},this.collections={sourcesOutersTransformers:J(this),sourcesLoadsHandlers:[],sourcesStylers:[],xhrs:[]},this.core={classFacade:{},eventsDispatcher:{},fullscreenToggler:{},globalEventsController:{},lightboxCloser:{},lightboxOpener:{},lightboxOpenActioner:{},lightboxUpdater:{},scrollbarRecompensor:{},slideChangeFacade:{},slideIndexChanger:{},slideSwipingDown:{},sourceDisplayFacade:{},stageManager:{},windowResizeActioner:{}},Y(this)}var ee=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"nav",staticClass:"fslightbox-nav"},[t("Toolbar",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}),this._v(" "),this.hasMoreThanSource?t("SlideNumber",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}):this._e()],1)};ee._withStripped=!0;var te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"fslightbox-toolbar"},[t("FullscreenButton",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}}),this._v(" "),t("CloseButton",{attrs:{"fs-lightbox-index":this.fsLightboxIndex}})],1)};te._withStripped=!0;var ne=function(){var e=this.$createElement;return(this._self._c||e)("ToolbarButton",{attrs:{"on-click":this.onClick,"view-box":"0 0 24 24",size:"20px",d:"M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z",title:"Close"}})};ne._withStripped=!0;var oe=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"fslightbox-toolbar-button fslightbox-flex-centered",attrs:{title:this.title},on:{click:this.onClick}},[t("Svger",{attrs:{size:this.size,"view-box":this.viewBox,d:this.d}})],1)};oe._withStripped=!0;var ie=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{width:this.size,height:this.size,viewBox:this.viewBox,xmlns:"http://www.w3.org/2000/svg"}},[t("path",{staticClass:"fslightbox-svg-path",attrs:{d:this.d}})])};function se(e,t,n,o,i,s,r,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),r?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}ie._withStripped=!0;var re=se({props:{size:String,viewBox:String,d:String}},ie,[],!1,null,null,null);re.options.__file="src/components/helpers/Svger.vue";var ae=re.exports,ce=se({components:{Svger:ae},props:{onClick:Function,size:String,viewBox:String,d:String,title:String}},oe,[],!1,null,null,null);ce.options.__file="src/components/nav/toolbar/ToolbarButton.vue";var le=ce.exports,ue=se({components:{ToolbarButton:le},props:{fsLightboxIndex:Number},data:function(){return{onClick:i[this.fsLightboxIndex].core.lightboxCloser.close}}},ne,[],!1,null,null,null);ue.options.__file="src/components/nav/toolbar/toolbar-buttons/CloseButton.vue";var de=ue.exports,he=function(){var e=this.$createElement;return(this._self._c||e)("ToolbarButton",{attrs:{"on-click":this.getButtonData("onClick"),"view-box":this.getButtonData("viewBox"),size:this.getButtonData("size"),d:this.getButtonData("d"),title:this.getButtonData("title")}})};he._withStripped=!0;var fe=se({components:{ToolbarButton:le},props:{fsLightboxIndex:Number},data:function(){return{isFullscreenOpen:!1}},methods:{getButtonData:function(e){var t=i[this.fsLightboxIndex].core.fullscreenToggler,n=t.exitFullscreen,o=t.enterFullscreen;return(this.isFullscreenOpen?{onClick:n,viewBox:"0 0 950 1024",size:"24px",d:"M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z",title:"Exit fullscreen"}:{onClick:o,viewBox:"0 0 18 18",size:"20px",d:"M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z",title:"Enter fullscreen"})[e]}},created:function(){var e=this,t=i[this.fsLightboxIndex].componentsServices.isFullscreenOpenManager;t.get=function(){return e.isFullscreenOpen},t.set=function(t){return e.isFullscreenOpen=t}}},he,[],!1,null,null,null);fe.options.__file="src/components/nav/toolbar/toolbar-buttons/FullscreenButton.vue";var pe=se({components:{FullscreenButton:fe.exports,CloseButton:de},props:{fsLightboxIndex:Number}},te,[],!1,null,null,null);pe.options.__file="src/components/nav/toolbar/Toolbar.vue";var ge=pe.exports,xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fslightbox-slide-number-container fslightbox-flex-centered"},[n("div",[e._v(e._s(e.slide))]),e._v(" "),n("div",{staticClass:"fslightbox-slash"},[e._v("/")]),e._v(" "),n("div",[e._v(e._s(e.sourcesCount))])])};xe._withStripped=!0;var ve=se({props:{fsLightboxIndex:Number},data:function(){return{slide:i[this.fsLightboxIndex].stageIndexes.current+1,sourcesCount:i[this.fsLightboxIndex].data.sourcesCount}},created:function(){var e=this;i[this.fsLightboxIndex].componentsServices.setSlideNumber=function(t){return e.slide=t}}},xe,[],!1,null,null,null);ve.options.__file="src/components/nav/SlideNumber.vue";var me=se({components:{SlideNumber:ve.exports,Toolbar:ge},props:{fsLightboxIndex:Number},data:function(){return{hasMoreThanSource:i[this.fsLightboxIndex].data.sourcesCount>1}}},ee,[],!1,null,null,null);me.options.__file="src/components/nav/Nav.vue";var be=me.exports,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"ref",staticClass:"fslightbox-absoluted fslightbox-full-dimension",on:{mousedown:e.listener,touchstart:e.listener}},e._l(e.sourcesCount,(function(t,o){return n("SourceOuter",{key:o,attrs:{i:o,"fs-lightbox-index":e.fsLightboxIndex}})})),1)};Se._withStripped=!0;var we=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"ref",staticClass:"fslightbox-source-outer fslightbox-absoluted fslightbox-full-dimension fslightbox-flex-centered"},[t("SourceInner",{attrs:{"fs-lightbox-index":this.fsLightboxIndex,i:this.i}}),this._v(" "),this.isSourceLoaded?this._e():t("Loader")],1)};we._withStripped=!0;var Le=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"ref"},[this.sourceComponent&&this.isSourceInStage?t(this.sourceComponent,{tag:"component",attrs:{"fs-lightbox-index":this.fsLightboxIndex,i:this.i}}):this._e()],1)};Le._withStripped=!0;var _e=function(){var e=this.$createElement;return(this._self._c||e)("img",{ref:"ref",staticClass:"fslightbox-source",attrs:{src:this.src,alt:this.src},on:{load:this.onLoad}})};_e._withStripped=!0;var ye=se({props:{fsLightboxIndex:Number,i:Number},data:function(){var e=i[this.fsLightboxIndex],t=e.collections.sourcesLoadsHandlers,n=e.props.sources;return{onLoad:t[this.i].handleImageLoad,src:n[this.i]}},mounted:function(){i[this.fsLightboxIndex].elements.sources[this.i]=this.$refs.ref}},_e,[],!1,null,null,null);ye.options.__file="src/components/sources/proper-sources/Imager.vue";var Ie=ye.exports,Ce=function(){var e=this.$createElement,t=this._self._c||e;return t("video",{ref:"ref",staticClass:"fslightbox-source fslightbox-video",attrs:{poster:this.poster,controls:""},on:{loadedmetadata:this.onLoad}},[t("source",{attrs:{src:this.src}})])};Ce._withStripped=!0;var Fe=se({props:{fsLightboxIndex:Number,i:Number},data:function(){var e=i[this.fsLightboxIndex],t=e.collections.sourcesLoadsHandlers,n=e.props,o=n.sources,s=n.videosPosters;return{onLoad:t[this.i].handleVideoLoad,src:o[this.i],poster:s&&s[this.i]}},mounted:function(){i[this.fsLightboxIndex].elements.sources[this.i]=this.$refs.ref}},Ce,[],!1,null,null,null);Fe.options.__file="src/components/sources/proper-sources/Videor.vue";var Te=Fe.exports,Oe=function(){var e=this.$createElement;return(this._self._c||e)("iframe",{ref:"ref",staticClass:"fslightbox-source fslightbox-youtube-iframe",attrs:{src:this.src,allowfullscreen:""}})};Oe._withStripped=!0;var Ee=se({props:{fsLightboxIndex:Number,i:Number},data:function(){return{src:"https://www.youtube.com/embed/".concat((e=i[this.fsLightboxIndex].props.sources[this.i],e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2]))};var e},mounted:function(){var e=i[this.fsLightboxIndex],t=e.collections.sourcesLoadsHandlers;e.elements.sources[this.i]=this.$refs.ref,t[this.i].handleYoutubeLoad()}},Oe,[],!1,null,null,null);Ee.options.__file="src/components/sources/proper-sources/Youtuber.vue";var ze=Ee.exports,Ne=function(){var e=this.$createElement;return(this._self._c||e)(this.Component,{ref:"ref",tag:"component"})};Ne._withStripped=!0;var Ae=se({props:{fsLightboxIndex:Number,i:Number},data:function(){return{Component:i[this.fsLightboxIndex].props.customSources[this.i]}},mounted:function(){var e=i[this.fsLightboxIndex],t=e.collections.sourcesLoadsHandlers,n=e.elements.sources;n[this.i]=this.$refs.ref.$el,n[this.i].classList.add(m),t[this.i].handleCustomLoad()}},Ne,[],!1,null,null,null);Ae.options.__file="src/components/sources/proper-sources/Customer.vue";var ke=Ae.exports,Be=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"fslightbox-invalid-file-wrapper fslightbox-flex-centered"},[this._v("\n Invalid source\n")])};Be._withStripped=!0;var Me=se({props:{fsLightboxIndex:Number,i:Number},mounted:function(){var e=i[this.fsLightboxIndex],t=e.componentsServices.hideLoaderCollection,n=e.elements.sourcesOuters;t[this.i](),n[this.i].classList.add(p)}},Be,[],!1,null,null,null);Me.options.__file="src/components/sources/proper-sources/Invalider.vue";var Re=Me.exports,He=se({props:{fsLightboxIndex:Number,i:Number},components:{Imager:Ie,Videor:Te,Youtuber:ze,Customer:ke,Invalider:Re},data:function(){var e={};return this.attachComponentDataToObject(e),e},created:function(){var e=this;i[this.fsLightboxIndex].componentsServices.updateSourceInnerCollection[this.i]=function(){e.attachComponentDataToObject(e)}},mounted:function(){i[this.fsLightboxIndex].elements.sourcesInners[this.i]=this.$refs.ref},methods:{attachComponentDataToObject:function(e){e.sourceComponent=i[this.fsLightboxIndex].elements.sourcesComponents[this.i],e.isSourceInStage=i[this.fsLightboxIndex].core.stageManager.isSourceInStage(this.i)}}},Le,[],!1,null,null,null);He.options.__file="src/components/sources/SourceInner.vue";var $e=He.exports,De=function(){var e=this.$createElement;this._self._c;return this._m(0)};De._withStripped=!0;var Pe=se({},De,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"fslightbox-loader"},[t("div"),this._v(" "),t("div"),this._v(" "),t("div"),this._v(" "),t("div")])}],!1,null,null,null);Pe.options.__file="src/components/helpers/Loader.vue";var Ue=Pe.exports,Xe=se({props:{fsLightboxIndex:Number,i:Number},components:{SourceInner:$e,Loader:Ue},data:function(){return{isSourceLoaded:!1}},created:function(){var e=this;i[this.fsLightboxIndex].componentsServices.hideLoaderCollection[this.i]=function(){return e.isSourceLoaded=!0}},mounted:function(){i[this.fsLightboxIndex].elements.sourcesOuters[this.i]=this.$refs.ref}},we,[],!1,null,null,null);Xe.options.__file="src/components/sources/SourceOuter.vue";var We=Xe.exports,je=se({props:{fsLightboxIndex:Number},components:{SourceOuter:We},data:function(){var e=i[this.fsLightboxIndex],t=e.core.slideSwipingDown.listener;return{sourcesCount:e.data.sourcesCount,listener:t}},mounted:function(){i[this.fsLightboxIndex].elements.sourcesOutersWrapper=this.$refs.ref}},Se,[],!1,null,null,null);je.options.__file="src/components/sources/SourcesOutersWrapper.vue";var Ve=je.exports,Ye=function(){var e=this.$createElement,t=this._self._c||e;return this.sourcesCount>1?t("div",[t("SlideButton",{attrs:{"on-click":this.changeToPrevious,name:"previous",d:"M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"}}),this._v(" "),t("SlideButton",{attrs:{"on-click":this.changeToNext,name:"next",d:"M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z"}})],1):this._e()};Ye._withStripped=!0;var qe=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:"fslightbox-slide-btn-container fslightbox-slide-btn-"+this.name+"-container",attrs:{title:this.title},on:{click:this.onClick}},[t("div",{staticClass:"fslightbox-slide-btn fslightbox-flex-centered"},[t("Svger",{attrs:{"view-box":"0 0 20 20",size:"20px",d:this.d}})],1)])};qe._withStripped=!0;var Je=se({components:{Svger:ae},props:{onClick:Function,name:String,d:String},data:function(){var e=this.name.charAt(0).toUpperCase()+this.name.slice(1);return{title:"".concat(e," slide")}}},qe,[],!1,null,null,null);Je.options.__file="src/components/SlideButton.vue";var Ge=Je.exports,Ze=se({props:{fsLightboxIndex:Number},components:{SlideButton:Ge},data:function(){var e=i[this.fsLightboxIndex],t=e.core.slideChangeFacade,n=t.changeToPrevious,o=t.changeToNext;return{sourcesCount:e.data.sourcesCount,changeToPrevious:n,changeToNext:o}}},Ye,[],!1,null,null,null);Ze.options.__file="src/components/SlideButtons.vue";var Ke=Ze.exports,Qe=function(){var e=this.$createElement,t=this._self._c||e;return this.isSlideSwipingHovererShown?t("div",{staticClass:"fslightbox-slide-swiping-hoverer fslightbox-full-dimension fslightbox-absoluted"}):this._e()};Qe._withStripped=!0;var et=se({props:{fsLightboxIndex:Number},data:function(){return{isSlideSwipingHovererShown:!1}},created:function(){var e=this,t=i[this.fsLightboxIndex].componentsServices.isSlideSwipingHovererShownManager;t.get=function(){return e.isSlideSwipingHovererShown},t.set=function(t){return e.isSlideSwipingHovererShown=t}}},Qe,[],!1,null,null,null);et.options.__file="src/components/SlideSwipingHoverer.vue";var tt,nt=et.exports,ot="@import url(https://fonts.googleapis.com/css?family=Roboto);.fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-fade-in{animation:fslightbox-fade-in .25s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .25s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong .25s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .25s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-cursor-grabbing{cursor:grabbing}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s}.fslightbox-container{font-family:Roboto,sans-serif;position:fixed;top:0;left:0;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);z-index:9999999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg-path{transition:fill .15s ease;fill:#ddd}.fslightbox-nav{height:45px;width:100%;position:absolute;top:0;left:0}.fslightbox-slide-number-container{height:100%;font-size:14px;color:#d7d7d7;z-index:0;max-width:55px}.fslightbox-slide-number-container div{padding:0 1.5px}.fslightbox-slash{margin-top:-1.5px;font-size:16px}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:100%;display:flex;background:rgba(35,35,35,.65)}.fslightbox-toolbar-button{height:100%;width:45px;cursor:pointer}.fslightbox-toolbar-button:hover .fslightbox-svg-path{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%)}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}}.fslightbox-slide-btn-container:hover .fslightbox-svg-path{fill:#f1f1f1}.fslightbox-slide-btn{padding:9px;font-size:26px;background:rgba(35,35,35,.65)}@media (min-width:768px){.fslightbox-slide-btn{padding:10px}}@media (min-width:1600px){.fslightbox-slide-btn{padding:11px}}.fslightbox-slide-btn-previous-container{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-previous-container{padding-left:3px}}.fslightbox-slide-btn-next-container{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-next-container{padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-next-container{padding-left:30px}}@media (min-width:476px){.fslightbox-slide-btn-next-container{padding-right:6px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-invalid-file-wrapper{font-size:22px;color:#eaebeb;margin:auto}.fslightbox-video{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightbox-loader{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightbox-loader div{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightbox-loader 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightbox-loader div:nth-child(1){animation-delay:-.45s}.fslightbox-loader div:nth-child(2){animation-delay:-.3s}.fslightbox-loader div:nth-child(3){animation-delay:-.15s}@keyframes fslightbox-loader{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-source{position:relative;margin:auto;opacity:0;z-index:2;backface-visibility:hidden;transform:translateZ(0);transition:opacity .3s;will-change:opacity}.fslightbox-source-outer{will-change:transform}";function it(){var e;document.getElementsByClassName(c).length||((e=document.createElement("style")).className=c,e.appendChild(document.createTextNode(ot)),document.head.appendChild(e))}function st(){var e=localStorage.getItem(A);if(e)return e;var t=function(){var e=document.createElement("div"),t=e.style;return t.visibility="hidden",t.width="100px",t.msOverflowStyle="scrollbar",t.overflow="scroll",e}(),n=function(){var e=document.createElement("div");return e.style.width="100%",e}();document.body.appendChild(t);var o=t.offsetWidth;t.appendChild(n);var i=n.offsetWidth;document.body.removeChild(t);var s=o-i;return localStorage.setItem(A,s.toString()),s}var rt=se({props:{toggler:Boolean,sources:Array,customSources:Array,slide:Number,source:String,sourceIndex:Number,onOpen:Function,onClose:Function,onInit:Function,onShow:Function,disableLocalStorage:Boolean,types:Array,type:String,videosPosters:Array,maxYoutubeVideoDimensions:Object,slideDistance:{type:Number,default:.3},openOnMount:Boolean},components:{SlideButtons:Ke,SourcesOutersWrapper:Ve,Nav:be,SlideSwipingHoverer:nt},data:function(){return{isOpen:this.openOnMount}},watch:{slide:function(e){i[this.fsLightboxIndex].core.lightboxUpdater.runCurrentStageIndexUpdateActionsFor(e-1)},sourceIndex:function(e){i[this.fsLightboxIndex].core.lightboxUpdater.runCurrentStageIndexUpdateActionsFor(e)},source:function(e){i[this.fsLightboxIndex].core.lightboxUpdater.runCurrentStageIndexUpdateActionsFor(this.sources.indexOf(e))},toggler:function(){i[this.fsLightboxIndex].core.lightboxUpdater.handleTogglerUpdate()}},created:function(){var e=this;this.fsLightboxIndex=i.push(new Q(this))-1;var t=i[this.fsLightboxIndex].componentsServices.isLightboxOpenManager;t.get=function(){return e.isOpen},t.set=function(t,n){e.isOpen=t,n&&(tt=n)}},mounted:function(){var e,t,n,o;i[this.fsLightboxIndex].elements.container=this.$refs.container,e=i[this.fsLightboxIndex],t=e.core.lightboxOpenActioner.runActions,n=e.data,o=e.props.openOnMount,it(),n.scrollbarWidth=st(),o&&t()},updated:function(){i[this.fsLightboxIndex].elements.container=this.$refs.container,tt&&tt(),tt=null}},o,[],!1,null,null,null);rt.options.__file="src/FsLightbox.vue";var at=rt.exports;t.default=at}]);
{
"name": "fslightbox-vue",
"version": "0.2.0",
"version": "0.5.0",
"description": "Vue version of Fullscreen Lightbox. Modern and easy plugin for displaying images and videos in clean overlaying box. Display single source or create beautiful gallery with powerful lightbox.",

@@ -83,2 +83,3 @@ "main": "index.js",

"vue-loader": "^15.7.1",
"vue-server-renderer": "^2.6.10",
"vue-template-compiler": "^2.6.10",

@@ -85,0 +86,0 @@ "webpack": "^4.30.0",

# Vue Fullscreen Lightbox Basic
Fullscreen Lightbox is plugin for displaying images, videos and more in clean overlaying box.
Website: https://fslightbox.com
Website: https://fslightbox.com/vue
| Dependency | Version |
| --- | --- |
| vue | at least 2.6.0 |
## Basic usage
### Installation
```
npm install --save-dev fslightbox-vue
```
### Example
```vue
<template>
<div>
<button @click="toggler = !toggler">Toggle Lightbox</button>
<FsLightbox
:toggler="toggler"
:sources="[
'https://i.imgur.com/fsyrScY.jpg',
'https://www.youtube.com/watch?v=xshEZzpS4CQ',
'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4'
]"
/>
</div>
</template>
<script>
import FsLightbox from "fslightbox-vue";
export default {
components: { FsLightbox },
data() {
return {
toggler: false
}
}
}
</script>
```
## Demo
Available at: https://fslightbox.com/vue
## Documentation and props description
Available at: https://fslightbox.com/vue/documentation/basic
## Browser Compatibility
| Browser | Works? |
| --- | --- |
| Chrome | Yes |
| Firefox | Yes |
| Safari | Yes |
| Edge | Yes |
| IE 11 | Yes |
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