{"version":3,"file":"application-BupKrs55.js","sources":["../../node_modules/govuk-frontend/dist/govuk/common/index.mjs","../../node_modules/govuk-frontend/dist/govuk/errors/index.mjs","../../node_modules/govuk-frontend/dist/govuk/govuk-frontend-component.mjs","../../node_modules/govuk-frontend/dist/govuk/common/configuration.mjs","../../node_modules/govuk-frontend/dist/govuk/i18n.mjs","../../node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs","../../node_modules/govuk-frontend/dist/govuk/components/button/button.mjs","../../node_modules/govuk-frontend/dist/govuk/common/closest-attribute-value.mjs","../../node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs","../../node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs","../../node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs","../../node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs","../../node_modules/govuk-frontend/dist/govuk/components/header/header.mjs","../../node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs","../../node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs","../../node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs","../../node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs","../../node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs","../../node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs","../../node_modules/govuk-frontend/dist/govuk/init.mjs","../../node_modules/dfe-autocomplete/dist/dfe-autocomplete.min.js","../../app/frontend/javascript/utils/google-analytics/index.js","../../app/frontend/javascript/utils/cookie-consent/index.js","../../app/components/cookie_banner_component/cookie-banner.js","../../app/components/cookie_consent_form_component/cookie-consent-form.js","../../app/frontend/entrypoints/application.js"],"sourcesContent":["function getFragmentFromUrl(url) {\n if (!url.includes('#')) {\n return undefined;\n }\n return url.split('#').pop();\n}\nfunction getBreakpoint(name) {\n const property = `--govuk-frontend-breakpoint-${name}`;\n const value = window.getComputedStyle(document.documentElement).getPropertyValue(property);\n return {\n property,\n value: value || undefined\n };\n}\nfunction setFocus($element, options = {}) {\n var _options$onBeforeFocu;\n const isFocusable = $element.getAttribute('tabindex');\n if (!isFocusable) {\n $element.setAttribute('tabindex', '-1');\n }\n function onFocus() {\n $element.addEventListener('blur', onBlur, {\n once: true\n });\n }\n function onBlur() {\n var _options$onBlur;\n (_options$onBlur = options.onBlur) == null || _options$onBlur.call($element);\n if (!isFocusable) {\n $element.removeAttribute('tabindex');\n }\n }\n $element.addEventListener('focus', onFocus, {\n once: true\n });\n (_options$onBeforeFocu = options.onBeforeFocus) == null || _options$onBeforeFocu.call($element);\n $element.focus();\n}\nfunction isInitialised($root, moduleName) {\n return $root instanceof HTMLElement && $root.hasAttribute(`data-${moduleName}-init`);\n}\n\n/**\n * Checks if GOV.UK Frontend is supported on this page\n *\n * Some browsers will load and run our JavaScript but GOV.UK Frontend\n * won't be supported.\n *\n * @param {HTMLElement | null} [$scope] - (internal) `` HTML element checked for browser support\n * @returns {boolean} Whether GOV.UK Frontend is supported on this page\n */\nfunction isSupported($scope = document.body) {\n if (!$scope) {\n return false;\n }\n return $scope.classList.contains('govuk-frontend-supported');\n}\nfunction isArray(option) {\n return Array.isArray(option);\n}\nfunction isObject(option) {\n return !!option && typeof option === 'object' && !isArray(option);\n}\nfunction formatErrorMessage(Component, message) {\n return `${Component.moduleName}: ${message}`;\n}\n/**\n * @typedef ComponentWithModuleName\n * @property {string} moduleName - Name of the component\n */\n\nexport { formatErrorMessage, getBreakpoint, getFragmentFromUrl, isInitialised, isObject, isSupported, setFocus };\n//# sourceMappingURL=index.mjs.map\n","import { formatErrorMessage } from '../common/index.mjs';\n\nclass GOVUKFrontendError extends Error {\n constructor(...args) {\n super(...args);\n this.name = 'GOVUKFrontendError';\n }\n}\nclass SupportError extends GOVUKFrontendError {\n /**\n * Checks if GOV.UK Frontend is supported on this page\n *\n * @param {HTMLElement | null} [$scope] - HTML element `` checked for browser support\n */\n constructor($scope = document.body) {\n const supportMessage = 'noModule' in HTMLScriptElement.prototype ? 'GOV.UK Frontend initialised without `` from template `