{"version":3,"sources":["webpack:///../WCC.UI/App/components/controls/translationCheckbox/translationCheckbox.html?67da","webpack:///../WCC.UI/App/components/controls/translationCheckbox/translationCheckbox.ts","webpack:///../WCC.UI/App/webpack/runtime/htmlExposer.js","webpack:///../WCC.UI/App/components/controls/translationCheckbox/translationCheckbox.html"],"names":["content","expose","__esModule","default","TranslationCheckbox","constructor","info","isTranslationShown","settings","ui","undefined","CookieHelpers","getCookie","WCC","Settings","NotNativeSpeaker","this","translationLanguage","translationCulture","supportedCultures","find","culture","Name","title","NativeName","ko","applyBindingsToNode","element","__decorate","injectable","__param","inject","wccModules","componentInfo","system","SystemHelpers","html","getTemplatesAndResources","forEach","node","document","head","appendChild","module","exports"],"mappings":"oKAAA,UAAO,CACC,oIACA,wDAIC,KAJ4C,EAAF,SAAYA,EAASC,GAG5D,OADAA,EADAD,EAAUA,EAAQE,WAAaF,EAAQG,QAAUH,GAE1CA,GACV,4B,uyBCAT,IAAqBI,EAArB,MAIIC,YACsCC,GAJtC,KAAAC,mBAAqBC,EAASC,GAAGF,mBAMmCG,MAA7DC,gBAAcC,UAAU,oCAAoF,IAAlCC,EAAIC,SAASC,kBACtFC,KAAKT,oBAAmB,GAG5B,MAAMU,EAAsBT,EAASS,oBAC/BC,EAAqBV,EAASW,kBAAkBC,KAAKC,GAAWA,EAAQC,OAASL,GAEvFD,KAAKO,MAA0B,MAAlBL,OAAkB,EAAlBA,EAAoBM,WAEjCC,EAAGC,oBAAoBpB,EAAKqB,QAAS,CACjC,IAAO,CACH,wBAAwB,IAE7BX,QApBUZ,EAAmBwB,EAAA,CADvCC,cAMQC,EAAA,EAAAC,YAAOC,IAAWC,iBALN7B,gB,8NCNrB,WAOC,KAPD,aACI,MAAM8B,EAAS,EAAQ,mCAAkBC,cAEzC,OAAO,SAAUC,GACbF,EAAOG,yBAAyBD,GAC3BE,SAAQ,SAAUC,GAAQC,SAASC,KAAKC,YAAYH,QAEhE,+B,+ICJDI,EAAOC,QAFI","file":"343.6d75edb258d0d9fc517a.js","sourcesContent":["define([\n \"!!../../../../node_modules/html-loader/dist/cjs.js??ref--26-1!./translationCheckbox.html\", \n \"!../../../webpack/runtime/htmlExposer.js\"], function (content, expose) {\n content = content.__esModule ? content.default : content;\n expose(content);\n return content;\n });","import { wccModules } from 'enums/wccModules';\r\nimport { inject, injectable } from 'inversify';\r\nimport './translationCheckbox.html';\r\nimport {CookieHelpers} from \"../../../helpers/cookie\";\r\n\r\n@injectable()\r\nexport default class TranslationCheckbox {\r\n isTranslationShown = settings.ui.isTranslationShown\r\n title: string | undefined\r\n\r\n constructor(\r\n @inject(wccModules.componentInfo) info: ko.components.ComponentInfo\r\n ) {\r\n if(CookieHelpers.getCookie('qzy_gui_ShowThreadsTranslation') == undefined && WCC.Settings.NotNativeSpeaker === true) {\r\n this.isTranslationShown(true);\r\n }\r\n \r\n const translationLanguage = settings.translationLanguage;\r\n const translationCulture = settings.supportedCultures.find(culture => culture.Name === translationLanguage);\r\n\r\n this.title = translationCulture?.NativeName;\r\n\r\n ko.applyBindingsToNode(info.element, {\r\n 'css': {\r\n 'translation-checkbox': true\r\n }\r\n }, this);\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});","// Module\nvar code = \"\";\n// Exports\nmodule.exports = code;"],"sourceRoot":""}