{"version":3,"sources":["webpack:///../WCC.UI/App/components/fancybox/youtube.html?8b97","webpack:///../WCC.UI/App/components/fancybox/youtube.scss?1d78","webpack:///../WCC.UI/App/components/fancybox/youtube.ts","webpack:///../WCC.UI/App/webpack/runtime/htmlExposer.js","webpack:///../WCC.UI/App/components/fancybox/youtube.scss","webpack:///../WCC.UI/App/components/fancybox/youtube.html"],"names":["content","expose","__esModule","default","api","module","i","options","exports","locals","components","preload","WCCFancyboxYoutubeVM","constructor","config","info","id","ko","flattenComputed","this","src","pluck","thumbnail","isReady","pureComputed","undefined","applyBindingsToNode","element","__decorate","injectable","__param","inject","wccModules","componentConfig","componentInfo","system","SystemHelpers","html","getTemplatesAndResources","forEach","node","document","head","appendChild","___CSS_LOADER_API_IMPORT___","push"],"mappings":"oIAAA,UAAO,CACC,oGACA,wDAIC,KAJyC,EAAF,SAAYA,EAASC,GAGzD,OADAA,EADAD,EAAUA,EAAQE,WAAaF,EAAQG,QAAUH,GAE1CA,GACV,4B,iECNT,IAAII,EAAM,EAAQ,gFACFJ,EAAU,EAAQ,+IAIC,iBAFvBA,EAAUA,EAAQE,WAAaF,EAAQG,QAAUH,KAG/CA,EAAU,CAAC,CAACK,EAAOC,EAAIN,EAAS,MAG9C,IAAIO,EAAU,CAEd,OAAiB,OACjB,WAAoB,GAEPH,EAAIJ,EAASO,GAI1BF,EAAOG,QAAUR,EAAQS,QAAU,I,kvBCZnCC,EAAWC,QAAQ,6BAOnB,IAAqBC,EAArB,MAMIC,YACwCC,EACFC,GAElC,MAAMC,EAAKC,EAAGC,gBAAgBJ,EAAOE,IAErCG,KAAKC,IAAMJ,EAAGK,MAAML,GAAM,iCAAiCA,GAC3DG,KAAKG,UAAYN,EAAGK,MAAML,GAAM,8BAA8BA,WAE9DG,KAAKI,QAAUN,EAAGO,aAAa,IAAcC,MAART,KAErCC,EAAGS,oBAAoBX,EAAKY,QAAS,CACjC,QAAWR,KAAKI,QAEhB,IAAO,CACH,wBAAwB,OArBnBX,EAAoBgB,EAAA,CADxCC,cAQQC,EAAA,EAAAC,YAAOC,IAAWC,kBAClBH,EAAA,EAAAC,YAAOC,IAAWE,iBARNtB,gB,4MCbrB,WAOC,KAPD,aACI,MAAMuB,EAAS,EAAQ,mCAAkBC,cAEzC,OAAO,SAAUC,GACbF,EAAOG,yBAAyBD,GAC3BE,SAAQ,SAAUC,GAAQC,SAASC,KAAKC,YAAYH,QAEhE,+B,+JCLDhC,EADkC,EAAQ,wDAChCoC,EAA4B,IAE9BC,KAAK,CAACxC,EAAOC,EAAI,uCAAwC,KAEjED,EAAOG,QAAUA,G,+GCHjBH,EAAOG,QAFI","file":"303.8ce6d502264a24039566.js","sourcesContent":["define([\n \"!!../../../node_modules/html-loader/dist/cjs.js??ref--26-1!./youtube.html\", \n \"!../../webpack/runtime/htmlExposer.js\"], function (content, expose) {\n content = content.__esModule ? content.default : content;\n expose(content);\n return content;\n });","var api = require(\"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n var content = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./youtube.scss\");\n\n content = content.__esModule ? content.default : content;\n\n if (typeof content === 'string') {\n content = [[module.id, content, '']];\n }\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nmodule.exports = content.locals || {};","import { wccModules } from 'enums/wccModules';\r\nimport { inject, injectable } from 'inversify';\r\nimport { Subscribable, SubscribableOrNullableValue } from 'knockout';\r\nimport './youtube.html';\r\nimport './youtube.scss';\r\n\r\ncomponents.preload('fancybox-video-iframe-new');\r\n\r\nexport interface WCCFancyboxYoutubeVMConfig {\n id: SubscribableOrNullableValue\r\n}\n\n@injectable()\nexport default class WCCFancyboxYoutubeVM {\n src: Subscribable\n thumbnail: Subscribable\n\n isReady: Subscribable\n\n constructor(\r\n @inject(wccModules.componentConfig) config: WCCFancyboxYoutubeVMConfig,\r\n @inject(wccModules.componentInfo) info: ko.components.ComponentInfo\r\n ) {\r\n const id = ko.flattenComputed(config.id);\n\n this.src = id.pluck(id => `https://www.youtube.com/embed/${id}`);\n this.thumbnail = id.pluck(id => `https://img.youtube.com/vi/${id}/0.jpg`);\n\n this.isReady = ko.pureComputed(() => id() != undefined);\n\n ko.applyBindingsToNode(info.element, {\n 'visible': this.isReady,\n\n 'css': {\n 'wcc-fancybox-youtube': true\n }\n });\r\n }\r\n}","define(function () {\r\n const system = require('helpers/system').SystemHelpers;\r\n\r\n return function (html) {\r\n system.getTemplatesAndResources(html)\r\n .forEach(function (node) { document.head.appendChild(node) });\r\n }\r\n});","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".wcc-fancybox-youtube{display:block}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Module\nvar code = \"\";\n// Exports\nmodule.exports = code;"],"sourceRoot":""}