{"version":3,"file":"header.js","sources":["../../../../../Flow.Showcase.Static.Bundler/Root/entrypoints/header.ts"],"sourcesContent":["// @ts-nocheck\n\n// Смена языка\ndocument\n .querySelectorAll(\"[data-select-language-form]\")\n .forEach((selectLanguageForm) => {\n try {\n if (!(selectLanguageForm instanceof HTMLFormElement)) {\n throw \"[data-select-language-form] is not instance of HTMLFormElement\";\n }\n const cultureSelect = /** @type {HTMLInputElement} */ (\n selectLanguageForm.querySelector(\"#culture\")\n );\n cultureSelect.addEventListener(\"change\", () => {\n selectLanguageForm.submit();\n });\n } catch (err) {\n console.error(err);\n }\n });\n\n// Смена валюты\ndocument\n .querySelectorAll(\"[data-select-currency-form]\")\n .forEach((selectCurrencyForm) => {\n try {\n if (!(selectCurrencyForm instanceof HTMLFormElement)) {\n throw \"[data-select-currency-form] is not instance of HTMLFormElement\";\n }\n const currencySelect = /** @type {HTMLInputElement} */ (\n selectCurrencyForm.querySelector(\"#currency\")\n );\n currencySelect.addEventListener(\"change\", () => {\n selectCurrencyForm.submit();\n });\n } catch (err) {\n console.error(err);\n }\n });\n"],"names":["selectLanguageForm","err","selectCurrencyForm"],"mappings":"AAGA,SACK,iBAAiB,6BAA6B,EAC9C,QAASA,GAAuB,CACzB,GAAA,CACI,GAAA,EAAEA,aAA8B,iBAC1B,KAAA,iEAGNA,EAAmB,cAAc,UAAU,EAEjC,iBAAiB,SAAU,IAAM,CAC3CA,EAAmB,OAAO,CAAA,CAC7B,QACIC,EAAK,CACV,QAAQ,MAAMA,CAAG,CAAA,CAEzB,CAAC,EAGL,SACK,iBAAiB,6BAA6B,EAC9C,QAASC,GAAuB,CACzB,GAAA,CACI,GAAA,EAAEA,aAA8B,iBAC1B,KAAA,iEAGNA,EAAmB,cAAc,WAAW,EAEjC,iBAAiB,SAAU,IAAM,CAC5CA,EAAmB,OAAO,CAAA,CAC7B,QACID,EAAK,CACV,QAAQ,MAAMA,CAAG,CAAA,CAEzB,CAAC"}