{"version":3,"sources":["webpack:///../WCC.UI/App/components/loader/loader.html?77ad","webpack:///../WCC.UI/App/components/loader/loader.scss?ce01","webpack:///../WCC.UI/App/components/loader/loader.ts","webpack:///../WCC.UI/App/webpack/runtime/htmlExposer.js","webpack:///../WCC.UI/Images/loader.gif","webpack:///../WCC.UI/App/components/loader/loader.scss","webpack:///../WCC.UI/App/components/loader/loader.html"],"names":["content","expose","__esModule","default","api","module","i","options","exports","locals","images","loader","require","WCCLoaderVM","constructor","config","info","isVisible","ko","flattenComputed","visible","isInline","inline","isCentered","center","applyBindingsToNode","element","__decorate","injectable","__param","inject","wccModules","componentConfig","componentInfo","system","SystemHelpers","html","getTemplatesAndResources","forEach","node","document","head","appendChild","___CSS_LOADER_API_IMPORT___","push"],"mappings":"iIAAA,UAAO,CACC,iGACA,wDAIC,KAJyC,EAAF,SAAYA,EAASC,GAGzD,OADAA,EADAD,EAAUA,EAAQE,WAAaF,EAAQG,QAAUH,GAE1CA,GACV,4B,8DCNT,IAAII,EAAM,EAAQ,gFACFJ,EAAU,EAAQ,4IAIC,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,uuBCZnC,MAAMC,EAAS,CACXC,OAAQC,EAAQ,+BAAqBT,SAUzC,IAAqBU,EAArB,MAGIC,YACwCC,EACFC,GAJtC,KAAAN,OAASA,EAML,MAAMO,EAAYC,EAAGC,gBAAgBJ,EAAOK,SAAS,GAC/CC,EAAWH,EAAGC,gBAAgBJ,EAAOO,QAAQ,GAC7CC,EAAaL,EAAGC,gBAAgBJ,EAAOS,QAAQ,GAErDN,EAAGO,oBAAoBT,EAAKU,QAAS,CACjC,QAAWT,EAEX,IAAO,CACH,cAAc,EACd,qBAAsBI,EACtB,qBAAsBE,OAjBjBV,EAAWc,EAAA,CAD/BC,cAKQC,EAAA,EAAAC,YAAOC,IAAWC,kBAClBH,EAAA,EAAAC,YAAOC,IAAWE,iBALNpB,gB,sICjBrB,WAOC,KAPD,aACI,MAAMqB,EAAS,EAAQ,mCAAkBC,cAEzC,OAAO,SAAUC,GACbF,EAAOG,yBAAyBD,GAC3BE,SAAQ,SAAUC,GAAQC,SAASC,KAAKC,YAAYH,QAEhE,+B,2DCPD,OAAe,cAA0B,+C,4JCEzC/B,EADkC,EAAQ,wDAChCmC,EAA4B,IAE9BC,KAAK,CAACvC,EAAOC,EAAI,kIAAmI,KAE5JD,EAAOG,QAAUA,G,4GCHjBH,EAAOG,QAFI","file":"246.1f0eadb3429d394b4907.js","sourcesContent":["define([\n \"!!../../../node_modules/html-loader/dist/cjs.js??ref--26-1!./loader.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!./loader.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 { SubscribableOrNullableValue } from 'knockout';\r\nimport './loader.html';\r\nimport './loader.scss';\r\n\r\nconst images = {\r\n loader: require('images/loader.gif').default\r\n}\r\n\r\nexport interface WCCLoaderVMConfig {\r\n visible: SubscribableOrNullableValue\r\n inline: SubscribableOrNullableValue\r\n center: SubscribableOrNullableValue\r\n}\r\n\r\n@injectable()\r\nexport default class WCCLoaderVM {\r\n images = images;\r\n\r\n constructor(\r\n @inject(wccModules.componentConfig) config: WCCLoaderVMConfig,\r\n @inject(wccModules.componentInfo) info: ko.components.ComponentInfo \r\n ) {\r\n const isVisible = ko.flattenComputed(config.visible, true);\r\n const isInline = ko.flattenComputed(config.inline, false);\r\n const isCentered = ko.flattenComputed(config.center, false);\r\n\r\n ko.applyBindingsToNode(info.element, {\r\n 'visible': isVisible,\r\n\r\n 'css': {\r\n 'wcc-loader': true,\r\n 'wcc-loader--inline': isInline,\r\n 'wcc-loader--center': isCentered\r\n }\r\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});","export default __webpack_public_path__ + \"assets/248cd231355ea87264fb0a37762c5ea0.gif\";","// 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-loader{display:block}.wcc-loader.wcc-loader--inline{display:inline-block}.wcc-loader.wcc-loader--center{text-align:center}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Module\nvar code = \"\";\n// Exports\nmodule.exports = code;"],"sourceRoot":""}