{"version":3,"file":"scripts/5651.js","mappings":"iFAEA,SAAWA,GACP,IAAIC,GAAoB,EACpBC,EAAY,GAGhBF,EAAOG,cAAgB,SAAUC,GAC7B,GAAIH,EAEAG,SAKA,GAFAF,EAAUG,KAAKD,IAEVE,SAASC,eAAe,cAAe,CAExC,IAAIC,EAAYF,SAASG,cAAc,UACvCD,EAAUE,GAAK,aACfF,EAAUG,IAAM,+EAChBH,EAAUI,OAAQ,EAGlB,IAAIC,EAAUP,SAASG,cAAc,QACrCI,EAAQC,IAAM,aACdD,EAAQE,KAAO,+EACfF,EAAQH,GAAK,cAGbJ,SAASU,KAAKC,YAAYJ,GAG1BL,EAAUU,OAAS,WACfjB,GAAoB,EACpBC,EAAUiB,SAAQ,SAAUC,GAAMA,GAAM,IACxClB,EAAY,EAChB,EAGAI,SAASe,KAAKJ,YAAYT,EAC9B,CAER,CACH,CAzCD,CAyCGR,O","sources":["webpack://wwwroot/./src/scripts/stickyMenuChoices.js"],"sourcesContent":["// stickyMenuChoices.js\r\n\r\n(function (window) {\r\n var isChoicesJSLoaded = false;\r\n var callbacks = [];\r\n\r\n // Function to load the Choices.js script dynamically\r\n window.loadChoicesJS = function (callback) {\r\n if (isChoicesJSLoaded) {\r\n // If the API is already loaded, execute the callback immediately\r\n callback();\r\n } else {\r\n // Add the callback to the queue\r\n callbacks.push(callback);\r\n\r\n if (!document.getElementById('choices-js')) {\r\n // Create the script element if it hasn't been created\r\n var scriptTag = document.createElement('script');\r\n scriptTag.id = 'choices-js';\r\n scriptTag.src = \"https://cdn.jsdelivr.net/npm/choices.js/public/assets/scripts/choices.min.js\";\r\n scriptTag.async = true;\r\n\r\n // Load the CSS\r\n var linkTag = document.createElement('link');\r\n linkTag.rel = 'stylesheet';\r\n linkTag.href = \"https://cdn.jsdelivr.net/npm/choices.js/public/assets/styles/choices.min.css\";\r\n linkTag.id = 'choices-css';\r\n\r\n // Append the CSS to the head\r\n document.head.appendChild(linkTag);\r\n\r\n // Set up event listener to detect when Choices.js is loaded\r\n scriptTag.onload = function () {\r\n isChoicesJSLoaded = true;\r\n callbacks.forEach(function (cb) { cb(); });\r\n callbacks = [];\r\n };\r\n\r\n // Append the script to the body\r\n document.body.appendChild(scriptTag);\r\n }\r\n }\r\n };\r\n})(window);\r\n"],"names":["window","isChoicesJSLoaded","callbacks","loadChoicesJS","callback","push","document","getElementById","scriptTag","createElement","id","src","async","linkTag","rel","href","head","appendChild","onload","forEach","cb","body"],"sourceRoot":""}