{"version":3,"file":"js/global.js","mappings":"sBAAAA,SAASC,iBAAiB,oBAAoB,WAC1C,IAAMC,EAAaF,SAASG,eAAe,cACvCD,GACAA,EAAWD,iBAAiB,UAAU,WAClC,IAAMG,EAASF,EAAWG,MACpBC,EAAcC,OAAOC,SAASC,SAE9BC,EAAWJ,EAAYK,WAAW,OACjCL,EAAYM,MAAM,IAAM,IACzBN,EAENC,OAAOC,SAASK,MAAmB,OAAXT,EAAkB,MAAQ,IAAMM,EAAWH,OAAOC,SAASM,MACvF,GAER,G,GCbIC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCrBAJ,EAAoBO,EAAKF,IACxB,IAAIG,EAASH,GAAUA,EAAOI,WAC7B,IAAOJ,EAAiB,QACxB,IAAM,EAEP,OADAL,EAAoBU,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdR,EAAoBU,EAAI,CAACN,EAASQ,KACjC,IAAI,IAAIC,KAAOD,EACXZ,EAAoBc,EAAEF,EAAYC,KAASb,EAAoBc,EAAEV,EAASS,IAC5EE,OAAOC,eAAeZ,EAASS,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDb,EAAoBc,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,G,0BCElFI,QAAQC,IAAI,uCAAwC,iC","sources":["./Assets/js/components/language-switcher.js","webpack/bootstrap","webpack/runtime/compat get default export","webpack/runtime/define property getters","webpack/runtime/hasOwnProperty shorthand","./Assets/js/global.js"],"sourcesContent":["document.addEventListener('DOMContentLoaded', () => {\n    const langSelect = document.getElementById('langSelect');\n    if (langSelect) {\n        langSelect.addEventListener('change', () => {\n            const locale = langSelect.value;\n            const currentPath = window.location.pathname;\n\n            const basePath = currentPath.startsWith('/en')\n                ? (currentPath.slice(3) || '/')\n                : currentPath;\n\n            window.location.href = (locale === 'en' ? '/en' : '') + basePath + window.location.search;\n        });\n    }\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","import '@framework/js/components/language-switcher'\n\nconsole.log('%c[Global] JS chargé avec succès 🛠️', 'color: cyan; font-weight: bold');"],"names":["document","addEventListener","langSelect","getElementById","locale","value","currentPath","window","location","pathname","basePath","startsWith","slice","href","search","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","console","log"],"sourceRoot":""}