{"version":3,"file":"chunks/dc39d5adf77a99.js","mappings":"iRAeA,QAfMA,WACL,WAAYC,I,4FAAS,SACpBC,KAAKD,QAAUA,EACfC,KAAKC,O,yCAGN,WACCD,KAAKD,QAAQG,cAAc,UAAUC,iBAAiB,UAAU,SAACC,GAEhEC,SAASC,OAAS,oBAAsBF,EAAEG,OAAOC,gBAAgB,GAAGC,QAAQC,KAAO,oDACnFC,OAAOC,SAAWR,EAAEG,OAAOM,c,sEAVxBf","sources":["webpack:///./resources/js/common/language-selector.ts"],"sourcesContent":["class LanguageSelector {\n\tconstructor(domRoot) {\n\t\tthis.domRoot = domRoot;\n\t\tthis.init();\n\t}\n\n\tinit(){\n\t\tthis.domRoot.querySelector(\"select\").addEventListener(\"change\", (e) => {\n\t\t\t// Set cookie so the server can redirect to localized site of user's choice\n\t\t\tdocument.cookie = \"user_select_lang=\" + e.target.selectedOptions[0].dataset.lang + \"; max-age=31536000; path=/; domain=atlassian.com;\";\n\t\t\twindow.location = e.target.value;\n\t\t});\n\t}\n}\n\nexport default LanguageSelector;"],"names":["LanguageSelector","domRoot","this","init","querySelector","addEventListener","e","document","cookie","target","selectedOptions","dataset","lang","window","location","value"],"sourceRoot":""}