{"version":3,"sources":["webpack:///./Dyrefondet.Website/Scripts/Shared/lightbox/lightbox.default.js","webpack:///./Dyrefondet.Website/Scripts/Shared/lightbox/lightbox.iframe.js","webpack:///./Dyrefondet.Website/Scripts/Shared/lightbox/lightbox.video.js","webpack:///./Dyrefondet.Website/Scripts/Shared/lightbox/index.js"],"names":["scope","_jquery","default","each","elm","this","opts","Object","assign","data","padding","fancybox","_interopRequireDefault","__webpack_require__","input","defaults","lightboxClassInit","_typeof","newOpts","window","$","lightboxInit","width","height","type","iframe","scrolling","preload","autoSize","openEffect","closeEffect","helpers","media","_lightbox","_lightbox2","_lightbox3","normal","video"],"mappings":"qJAQe,SAAyBA,IACpC,EAAAC,EAAAC,SAAEF,GAAOG,KAAK,WACV,IAAMC,GAAM,EAAAH,EAAAC,SAAEG,MACRC,EAAOC,OAAOC,OAAOJ,EAAIK,QAC3BC,QAAS,KAGbN,EAAIO,SAASL,YAfrB,IAAAL,mDAAAW,CAAAC,EAAA,KACAA,EAAA,kGC6Be,SAAwBC,GACd,iBAAVA,EAhBf,SAA2Bd,IACvB,EAAAC,EAAAC,SAAEF,GAAOG,KAAK,WACV,IAAMC,GAAM,EAAAH,EAAAC,SAAEG,MACRC,EAAOC,OAAOC,OAAOJ,EAAIK,OAAQM,GAEvCX,EAAIO,SAASL,KAYbU,CAAkBF,GACM,WAAjBG,EAAOH,IATtB,SAAsBI,GAClB,IAAMZ,EAAOC,OAAOC,OAAOU,EAASH,GAEpCI,OAAOC,EAAET,SAASL,GAOde,CAAaP,sBAlCrB,IAAAb,mDAAAW,CAAAC,EAAA,0OACAA,EAAA,KAEA,IAAME,GACFO,MAAO,MACPC,OAAQ,MACRb,QAAS,GACTc,KAAM,SACNC,QACIC,UAAW,OACXC,SAAS,GAEbC,UAAU,gGCJC,SAAuB5B,IAClC,EAAAC,EAAAC,SAAEF,GAAOG,KAAK,WACV,IAAMC,GAAM,EAAAH,EAAAC,SAAEG,MACRC,EAAOC,OAAOC,OAAOJ,EAAIK,QAC3BC,QAAS,EACTmB,WAAY,OACZC,YAAa,OACbP,OAAQ,IACRQ,SACIC,YAIR5B,EAAIO,SAASL,YArBrB,IAAAL,mDAAAW,CAAAC,EAAA,KACAA,EAAA,wGCDA,IAAAoB,EAAArB,EAAAC,EAAA,MACAqB,EAAAtB,EAAAC,EAAA,MACAsB,EAAAvB,EAAAC,EAAA,gEAGIuB,iBACAX,iBACAY","file":"Dyrefondet-lightbox.49b713d43d2bdc76a282.chunk.js","sourcesContent":["import $ from 'jquery';\r\nimport '@fancyapps/fancybox';\r\n\r\n/**\r\n * Init default Lightbox\r\n *\r\n * @param {string} scope CSS selector\r\n */\r\nexport default function defaultLightbox(scope){\r\n $(scope).each(function () {\r\n const elm = $(this);\r\n const opts = Object.assign(elm.data(), {\r\n padding: 10\r\n });\r\n\r\n elm.fancybox(opts);\r\n });\r\n}\r\n","import $ from 'jquery';\r\nimport '@fancyapps/fancybox';\r\n\r\nconst defaults = {\r\n width: '75%',\r\n height: '75%',\r\n padding: 10,\r\n type: 'iframe',\r\n iframe: {\r\n scrolling: 'auto',\r\n preload: true\r\n },\r\n autoSize: false\r\n};\r\n\r\nfunction lightboxClassInit(scope) {\r\n $(scope).each(function () {\r\n const elm = $(this);\r\n const opts = Object.assign(elm.data(), defaults);\r\n\r\n elm.fancybox(opts);\r\n });\r\n}\r\n\r\nfunction lightboxInit(newOpts) {\r\n const opts = Object.assign(newOpts, defaults);\r\n\r\n window.$.fancybox(opts);\r\n}\r\n\r\nexport default function iframeLightbox(input){\r\n if (typeof input === 'string') {\r\n lightboxClassInit(input);\r\n } else if (typeof input === 'object') {\r\n lightboxInit(input);\r\n }\r\n}\r\n","import $ from 'jquery';\r\nimport '@fancyapps/fancybox';\r\n\r\n/**\r\n * Init video Lightbox\r\n *\r\n * @param {string} scope CSS selector\r\n */\r\nexport default function videoLightbox(scope){\r\n $(scope).each(function () {\r\n const elm = $(this);\r\n const opts = Object.assign(elm.data(), {\r\n padding: 0,\r\n openEffect: 'none',\r\n closeEffect: 'none',\r\n height: 455,\r\n helpers: {\r\n media: {}\r\n }\r\n });\r\n\r\n elm.fancybox(opts);\r\n });\r\n}\r\n","import normal from './lightbox.default';\r\nimport iframe from './lightbox.iframe';\r\nimport video from './lightbox.video';\r\n\r\nexport default {\r\n normal,\r\n iframe,\r\n video\r\n};\r\n"],"sourceRoot":""}