{"version":3,"file":"language.js","mappings":"mBAEe,MAAMA,EACjBC,WAAAA,CAAYC,GACUC,KACRC,SAAWC,EAAEH,GADLC,KAERG,YACd,CAEAA,UAAAA,GACI,MAEMC,EAAW,GAAGC,OAAOC,SAASC,WAAWF,OAAOC,SAASE,SAASH,OAAOC,SAASG,OAFtET,KAIRC,SAASS,GAAG,SAAS,WAC3BL,OAAOC,SAASK,KAAO,+BAAeP,GAC1C,GACJ,EAGJF,EApB2B,6BAoBLU,MAClB,CAACC,EAAOd,IAAY,IAAIF,EAAqBE,I","sources":["webpack://login.funda/./Views/Shared/Scripts/Assets/Language.js"],"sourcesContent":["const FOOTER_LANG_SWITCH = '[data-footer-lang-switch]';\n\nexport default class FooterLanguageSwitch {\n constructor(element) {\n const component = this;\n component.$element = $(element);\n component.bindEvents();\n }\n\n bindEvents() {\n const component = this;\n const urlSwitch = '/language/switch/?returnUrl=';\n const pathName = `${window.location.pathname}${window.location.search}${window.location.hash}`;\n\n component.$element.on('click', function() {\n window.location.href = `${urlSwitch}${pathName}`;\n });\n }\n}\n\n$(FOOTER_LANG_SWITCH).each(\n (index, element) => new FooterLanguageSwitch(element)\n);\n"],"names":["FooterLanguageSwitch","constructor","element","this","$element","$","bindEvents","pathName","window","location","pathname","search","hash","on","href","each","index"],"sourceRoot":""}