{"version":3,"sources":["webpack:///webpack/bootstrap 2ae809dba6b365cc192d","webpack:///external \"jQuery\"","webpack:///./Scripts/utils/formHelper.js","webpack:///./Scripts/main.js","webpack:///./Scripts/Search/sitesearch.js","webpack:///./Scripts/newsletter/newsletter.js","webpack:///./Scripts/newsletter/newsletterEdit.js","webpack:///./Scripts/newsletter/newsletterSearchEmail.js","webpack:///./Scripts/newsletter/newsletterSubscribe.js","webpack:///./Scripts/newsletter/newsletterPopupSubscribe.js","webpack:///./Scripts/utils/downloadTracker.js","webpack:///./Scripts/utils/accordionHelper.js","webpack:///./Scripts/utils/Analytics.js","webpack:///./Scripts/Elements/FaqboxAnchorList.js","webpack:///./Scripts/ReadSpeak/DocReaderLink.js","webpack:///./Scripts/ReadSpeak/HtoReadSpeak.js","webpack:///./Content/ch-styles.scss","webpack:///./Content/ch-wffm.scss"],"names":["on","e","preventDefault","submit","url","attr","q","val","formatQuery","location","href","query","console","log","which","getSearchQuery","replace","desktopSearchStr","document","querySelector","value","mobileSearchStr","undefined"],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;AC7DA,wB;;;;;;;;;ACAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,C;;;;;;;;;;;;;;;;;;;;;;;;;ACpBA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACTA;;;;;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CAAc,GAAd,EAAmB,KAAnB,CAAP;AACH;;AAED,SAASD,cAAT,GAA0B;AACtB,QAAIE,mBAAmBC,SAASC,aAAT,CAAuB,YAAvB,EAAqCC,KAA5D;AACA,QAAIC,kBAAkBH,SAASC,aAAT,CAAuB,WAAvB,KAAuCG,SAAvC,GAAmDJ,SAASC,aAAT,CAAuB,WAAvB,EAAoCC,KAAvF,GAA+FE,SAArH;;AAEA,QAAID,eAAJ,EACI,OAAOA,eAAP;AACJ,QAAIJ,gBAAJ,EACI,OAAOA,gBAAP;;AAEJ,WAAO,EAAP;AAEH,C;;;;;;;;;;ACnHD;AAAA;AACA;AACA;;;;;;;;;;ACFA;AAAA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,sCAAsC,uBAAuB;AAC7D,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,0CAA0C,eAAe;AACzD,aAAa;AACb;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,E;;;;;;;;;AC3EL;AAAA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,0CAA0C,eAAe,SAAS,MAAM;AACxE,aAAa;AACb;AACA;AACA,SAAS;;AAET;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,E;;;;;;;;;ACxDL;AAAA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,0CAA0C,eAAe;AACzD,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,E;;;;;;;;;ACjEL;AAAA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA,oEAAoE,IAAI;AACxE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,0CAA0C,eAAe;AACzD,aAAa;AACb;AACA;AACA;AACA;AACA,SAAS;;AAET,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,KAAK,E;;;;;;;AChHL;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,aAAa;AACb;AACA,CAAC,E;;;;;;;ACjBD;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,+B;AACA;AACA;;AAEA,CAAC;;AAED;AACA;AACA;AACA;AACA,CAAC,E;;;;;;;AChCD;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,CAAC;;;;;;;;ACzCD;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;;;;;;;;;;AC1BD;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;;;;;;;;;ACrBD;AACA;AACA;AACA,CAAC,E;;;;;;ACHD,yC;;;;;;ACAA,yC","file":"main-bundle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 7);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 2ae809dba6b365cc192d","module.exports = jQuery;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"jQuery\"\n// module id = 0\n// module chunks = 0 1 2 3","import $ from \"jquery\";\n\nexport function GetValuesArray(parentElement, selector) {\n const elements = parentElement.find(selector);\n const attributes = $.map(elements,\n function(list) {\n return [$(list).val()];\n });\n\n return attributes;\n}\n\nexport function GetDataAttributesArray(parentElement, selector, dataAttribute) {\n const elements = parentElement.find(selector);\n const attributes = $.map(elements,\n function(list) {\n return [$(list).data(dataAttribute)];\n });\n\n return attributes;\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/utils/formHelper.js\n// module id = 1\n// module chunks = 1","//JS\nimport \"./Search/sitesearch.js\";\nimport \"./newsletter/newsletter.js\";\nimport \"./utils/downloadTracker.js\";\nimport \"./utils/accordionHelper\";\nimport \"./utils/Analytics.js\";\nimport \"./Elements/FaqboxAnchorList.js\";\nimport \"./ReadSpeak/DocReaderLink.js\";\nimport \"./ReadSpeak/HtoReadSpeak.js\"\nimport \"../Content/ch-styles.scss\";\nimport \"../Content/ch-wffm.scss\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/main.js\n// module id = 7\n// module chunks = 1","import $ from \"jquery\"\n\n$(\".main-search-button\")\n .on(\"click\",\n function (e) {\n e.preventDefault();\n $(\".form\").submit();\n });\n\n$(\".main-search\")\n .on(\"submit\",\n function (e) {\n e.preventDefault();\n var url = $(this).attr('action');\n var q = $(\"[name=q]\").val();\n if (q !== '') {\n q = formatQuery(q);\n\n location.href = url + \"?q=\" + q;\n }\n });\n\n$(\".error-search-button\")\n .on(\"click\",\n function (e) {\n $(\"#errorSearchForm\").submit();\n });\n\n$(\".error-search\")\n .on(\"submit\",\n function (e) {\n e.preventDefault();\n var url = $(this).attr('action');\n var q = $(\"#query\").val();\n if (q !== '') {\n q = formatQuery(q);\n\n location.href = url + \"?q=\" + q;\n }\n });\n\n//function for Search Button on ItemNotFound.cshtml\n$(\"#searchButton\").on(\"click\",\n function (e) {\n e.preventDefault();\n let query = $(\"#query\").val();\n if (query !== \"\") {\n let url = $(\"#errorSearchForm\").attr(\"action\");\n\n query = formatQuery(query);\n\n\n location.href = url + \"?q=\" + query;\n $(\"#errorSearchForm\").submit();\n }\n });\n\n//Function for Search button on mobile-layout\n$(\"#search-mobile-button\").on(\"click\",\n function (e) {\n e.preventDefault();\n let url = $(\"#search-form-mobile\").attr(\"action\");\n let query = $(\"#input-mobile-search\").val();\n\n console.log(`url: ${url}`);\n console.log(`query: ${query}`);\n\n query = formatQuery(query);\n\n location.href = url + \"?q=\" + query;\n $(\"#search-form-mobile\").submit();\n\n });\n\n$(\"input[name='q']\").on('keypress', e => {\n if (e.which == 13) {\n e.preventDefault();\n\n var url = $(\"#searchLayer .form\").attr('action');\n var query = getSearchQuery();\n\n query = formatQuery(query);\n location.href = url + \"?q=\" + query;\n\n }\n});\n\n$(\"#searchLayer .button--search\").on(\"click\",\n function (e) {\n e.preventDefault();\n\n var url = $(\"#searchLayer .form\").attr('action');\n var query = getSearchQuery();\n\n query = formatQuery(query);\n location.href = url + \"?q=\" + query;\n\n });\n\n//Helper function for handling spaces correctly in search result page\nfunction formatQuery(query) {\n return query.replace(' ', '%20');\n}\n\nfunction getSearchQuery() {\n var desktopSearchStr = document.querySelector(\"#q-desktop\").value;\n var mobileSearchStr = document.querySelector(\"#q-mobile\") != undefined ? document.querySelector(\"#q-mobile\").value : undefined;\n\n if (mobileSearchStr)\n return mobileSearchStr;\n if (desktopSearchStr)\n return desktopSearchStr;\n\n return \"\";\n\n}\n\n\n// WEBPACK FOOTER //\n// ./Scripts/Search/sitesearch.js","import \"./newsletterEdit.js\";\nimport \"./newsletterSearchEmail.js\";\nimport \"./newsletterSubscribe.js\";\nimport \"./newsletterPopupSubscribe.js\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/newsletter/newsletter.js\n// module id = 9\n// module chunks = 1","import $ from \"jquery\";\nimport * as FormHelper from \"../utils/formHelper\"\n\nconst newsletterSubscribeSection = $(\".js--newsletter-subscribe-section\");\nconst newsletterEditSection = $(\".js--newsletter-edit-section\");\nconst emailerrorbox = newsletterSubscribeSection.find(\".email__section\");\nconst emailconsentsbox = newsletterSubscribeSection.find(\".subscriber-emailconsents-box\");\n\nlet unsubscribe = () => {\n const unsubscribeSuccessPage = $(newsletterEditSection).find(\".unsubscribe-button\").attr(\"href\");\n const email = newsletterEditSection.find(\".subscriber-email\").val();\n $.ajax({\n type: \"post\",\n url: \"/api/NewsletterApi/Unsubscribe\",\n data: {\n email: email\n },\n success: function () {\n window.location.href = `${unsubscribeSuccessPage}`;\n },\n error: function () {\n $(\"#errorMessage\").show();\n $(emailerrorbox).addClass(\"is-invalid\");\n }\n });\n};\n\nlet saveChanges = () => {\n const linkToRedirect = $(newsletterEditSection).find(\".submit-button\").attr(\"href\");\n const subscriptionListsIds =\n FormHelper.GetDataAttributesArray(newsletterEditSection, \".subscription-list\", \"subscription-list\");\n const categoriesIds = FormHelper.GetValuesArray(newsletterEditSection, \".newsletter-category:checked\");\n const email = newsletterEditSection.find(\".subscriber-email\").val();\n\n const previousEmail = $(\"#previousEmail\").val();\n if (email) {\n $.ajax({\n type: \"post\",\n url: \"/api/NewsletterApi/Edit\",\n data: {\n subscriptionListsIds: subscriptionListsIds,\n categoriesIds: categoriesIds,\n email: email,\n previousEmail: previousEmail\n },\n success: function () {\n window.location.href = `${linkToRedirect}`;\n },\n error: function () {\n $(\"#errorMessage\").show();\n $(emailerrorbox).addClass(\"is-invalid\");\n }\n });\n }\n}\n\n\n$(\".js--newsletter-edit-section\").on(\"click\",\n \".submit-button\",\n function (e) {\n e.preventDefault();\n $(emailconsentsbox).css(\"border\", \"none\");\n $(emailerrorbox).removeClass(\"is-invalid\");\n $(\"#errorMessage\").hide();\n saveChanges();\n\n });\n\n$(\".js--newsletter-edit-section\").on(\"click\",\n \".unsubscribe-button\",\n function (e) {\n e.preventDefault();\n $(emailerrorbox).removeClass(\"is-invalid\");\n $(\"#errorMessage\").hide();\n unsubscribe();\n });\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/newsletter/newsletterEdit.js\n// module id = 10\n// module chunks = 1","import $ from \"jquery\";\nimport * as FormHelper from \"../utils/formHelper\"\n\nvar SearchNewsletterForm = function(email, linkToRedirect) {\n this.email = email;\n this.linkToRedirect = linkToRedirect;\n};\n\n\nlet markEmailFieldAsError = () => {\n $(\"#notFoundError\").show();\n};\n\nlet search = function(form) {\n\n const linkToRedirect = form.linkToRedirect;\n const email = form.email;\n\n $.ajax({\n type: \"GET\",\n url: \"/api/NewsletterApi/ContactExists\",\n data: {\n email: form.email\n },\n\n success: function(contactExists) {\n if (contactExists) {\n window.location.href = `${linkToRedirect}?email=${email}`;\n } else {\n $(\"#notFoundError\").show();\n }\n },\n\n error: markEmailFieldAsError\n });\n};\n\nlet getSearchNewsletterForm = (searchNewsletterSection) => {\n if (!searchNewsletterSection.length) {\n return null;\n }\n\n var linkToRedirect = $(searchNewsletterSection).find(\".submit-button\").attr(\"href\");\n var email = FormHelper.GetValuesArray(searchNewsletterSection, \"input\")[0];\n return new SearchNewsletterForm(email, linkToRedirect);\n};\n\n$(\".js--newsletter-search-section\").on(\"click\",\n \".submit-button\",\n function(e) {\n e.preventDefault();\n const section = $(this).closest(\".js--newsletter-search-section\");\n const form = getSearchNewsletterForm(section);\n if (form !== null && typeof form !== \"undefined\") {\n search(form);\n }\n });\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/newsletter/newsletterSearchEmail.js\n// module id = 11\n// module chunks = 1","import $ from \"jquery\";\nimport * as FormHelper from \"../utils/formHelper\"\n\nconst newsletterSubscribeSection = $(\".js--newsletter-subscribe-section\");\nconst emailconsentsbox = newsletterSubscribeSection.find(\".subscriber-emailconsents-box\");\nconst emailerrorbox = newsletterSubscribeSection.find(\".email__section\");\nconst subscriptionLists = newsletterSubscribeSection.find(\".subscriptionlist__section\");\n\nlet subscribe = () => {\n var linkToRedirect = $(newsletterSubscribeSection).find(\".submit-button\").attr(\"href\");\n var subscriptionListsIds =\n FormHelper.GetDataAttributesArray(newsletterSubscribeSection,\n \".subscription-list\",\n \"subscription-list\");\n var categoriesIds = FormHelper.GetValuesArray(newsletterSubscribeSection, \".newsletter-category:checked\");\n var email = newsletterSubscribeSection.find(\".subscriber-email\").val();\n var emailconsents = newsletterSubscribeSection.find(\".subscriber-emailconsents\").prop(\"checked\");\n var categories = categoriesIds.length > 0;\n var emailaddress = email.length > 0;\n\n if (!emailconsents) {\n $(emailconsentsbox).css(\"border\", \"1px solid #d73d3d\");\n }\n\n if (!categories) {\n $(\"#errorMessageSubscriptionLists\").show();\n }\n\n if (!emailaddress) {\n $(emailerrorbox).addClass(\"is-invalid\");\n $(\"#errorMessage\").show();\n }\n\n\n if (emailconsents && categories && emailaddress) {\n $.ajax({\n type: \"post\",\n url: \"/api/NewsletterApi/Subscribe\",\n data: {\n subscriptionListsIds: subscriptionListsIds,\n categoriesIds: categoriesIds,\n email: email\n },\n success: function() {\n window.location.href = `${linkToRedirect}`;\n },\n error: function () {\n console.warn(\"error while processing registration\");\n }\n });\n }\n\n};\n\n$(\".js--newsletter-subscribe-section\").on(\"click\",\n \".submit-button\",\n function(e) {\n e.preventDefault();\n $(subscriptionLists).removeClass(\"is-invalid\");\n $(emailerrorbox).removeClass(\"is-invalid\");\n $(emailconsentsbox).css(\"border\", \"none\");\n $(subscriptionLists).removeAttr(\"style\");\n $(\"#errorMessage\").hide();\n $(\"#errorMessageSubscriptionLists\").hide();\n subscribe();\n });\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/newsletter/newsletterSubscribe.js\n// module id = 12\n// module chunks = 1","import $ from \"jquery\";\nimport * as FormHelper from \"../utils/formHelper\"\n\nconst newsletterSubscribePanel = $(\".js--subscribe-panel\");\nconst emailconsentsbox = newsletterSubscribePanel.find(\".js--subscribe-popup-consents\");\nconst emailerrorbox = newsletterSubscribePanel.find(\".email__section\");\nvar contactFormFields;\n\n\nlet checkIfFormIsValid = function () {\n const expression = /^[\\w\\-\\.\\+]+\\@[a-zA-Z0-9\\.\\-]+\\.[a-zA-z0-9]{2,4}$/;\n let isInputValid = true;\n let firstNameField = $(newsletterSubscribePanel).find(\"input[name='js--subscribe-popup-firstname']\");\n let lastNameField = $(newsletterSubscribePanel).find(\"input[name='js--subscribe-popup-lastname']\");\n let emailField = $(newsletterSubscribePanel).find(\"input[name='js--subscribe-popup-email']\");\n let consentField = $(newsletterSubscribePanel).find(\"input[name='js--subscribe-popup-consents']\");\n\n if (!firstNameField.parent().hasClass(\"is-filled\")) {\n firstNameField.parent().addClass(\"is-invalid\");\n isInputValid = false;\n } else {\n firstNameField.parent().removeClass(\"is-invalid\");\n }\n\n if (!lastNameField.parent().hasClass(\"is-filled\")) {\n lastNameField.parent().addClass(\"is-invalid\");\n isInputValid = false;\n } else {\n lastNameField.parent().removeClass(\"is-invalid\");\n }\n\n if (!emailField.parent().hasClass(\"is-filled\")) {\n emailField.parent().addClass(\"is-invalid\");\n isInputValid = false;\n } else {\n if (expression.test(emailField)) {\n emailField.parent().removeClass(\"is-invalid\");\n console.log(\"test failed\");\n } else {\n emailField.parent().addClass(\"is-invalid\");\n isInputValid = false;\n }\n }\n\n if (document.querySelector('input[name=\"js--subscribe-popup-consents\"]:checked')) {\n consentField.parent().removeClass(\"is-invalid\");\n } else {\n isInputValid = false;\n consentField.parent().addClass(\"is-invalid\");\n }\n\n return isInputValid;\n};\n\nlet subscribe = () => {\n var linkToRedirect = $(newsletterSubscribeSection).find(\".submit-button\").attr(\"href\");\n var subscriptionListsIds =\n FormHelper.GetDataAttributesArray(newsletterSubscribeSection,\n \".subscription-list:checked\",\n \"subscription-list\");\n //var categoriesIds = FormHelper.GetValuesArray(newsletterSubscribePanel, \".newsletter-category:checked\");\n var firstname = newsletterSubscribePanel.find(\".js--subscribe-popup-firstname\").val();\n var lastname = newsletterSubscribePanel.find(\".js--subscribe-popup-lastname\").val();\n var email = newsletterSubscribePanel.find(\".js--subscribe-popup-email\").val();\n var emailconsents = newsletterSubscribePanel.find(\".js--subscribe-popup-consents\").prop(\"checked\");\n\n\n if (emailconsents) {\n $.ajax({\n type: \"post\",\n url: \"/api/NewsletterApi/Subscribe\",\n data: {\n subscriptionListsIds: subscriptionListsIds,\n categoriesIds: categoriesIds,\n email: email\n },\n success: function () {\n window.location.href = `${linkToRedirect}`;\n },\n error: function () {\n $(emailerrorbox).addClass(\"is-invalid\");\n $(\"#errorMessage\").show();\n }\n });\n\n } else {\n $(emailconsentsbox).css(\"border\", \"1px solid #d73d3d\");\n }\n\n};\n\n$(newsletterSubscribePanel).on(\"click\",\n \".js--subscribe-popup-submit\",\n function (e) {\n e.preventDefault();\n\n contactFormFields = $(\".js--subscribe-panel :input\");\n console.log(contactFormFields);\n\n if (!contactFormFields) {\n return;\n }\n if (checkIfFormIsValid()) {\n console.log(\"valid\");\n $(this).parent().hide();\n // subscribe();\n }\n\n $(emailerrorbox).removeClass(\"is-invalid\");\n $(emailconsentsbox).css(\"border\", \"none\");\n $(\"#errorMessage\").hide();\n \n });\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/newsletter/newsletterPopupSubscribe.js\n// module id = 13\n// module chunks = 1","import $ from \"jquery\";\n\nconst filetypes = /\\.(pdf|doc.*|xls.*|ppt.*|ashx)$/i;\n$(\"a\").each(function() {\n var href = $(this).attr(\"href\");\n if (href && href.match(filetypes)) {\n $(this).on(\"click\",\n function () {\n ga(\"send\",\n {\n hitType: \"event\",\n eventCategory: \"download\",\n eventAction: \"click\",\n eventLabel: href\n });\n });\n }\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/utils/downloadTracker.js\n// module id = 14\n// module chunks = 1","import $ from \"jquery\";\n\nfunction scrollToAccordion() {\n var accordionSection = window.location.hash;\n if (accordionSection.length && accordionSection.startsWith(\"#accordion\")) {\n var accordionContent = document.querySelector(accordionSection);\n var accordionElement = accordionContent.previousElementSibling;\n if (accordionContent.getAttribute(\"aria-hidden\") === \"true\") {\n accordionElement.click();\n }\n window.scrollTo(0, accordionElement.offsetTop);\n }\n else if (accordionSection.length) {\n if (accordionSection !== \"#top\") {\n var contentOffset = $(accordionSection).offset();\n window.scrollTo(0, contentOffset.top - 45);\n }\n }\n}\n\nModernizr.on('csshyphens', function (result) {\n\n if (window.location.hash) { \n scrollToAccordion();\n }\n\n});\n\nwindow.addEventListener('hashchange', function () {\n if (window.location.hash) {\n scrollToAccordion();\n }\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/utils/accordionHelper.js\n// module id = 15\n// module chunks = 1","import $ from \"jquery\";\n\nlet registerPageEvent = function (endpoint) {\n $.ajax({\n type: \"GET\",\n url: endpoint,\n success: function () {\n console.log(\"Success\");\n },\n\n error: function () {\n console.log(\"Error\");\n }\n });\n};\n\n$(function () {\n $(\"a.js--accordion-trigger[data-faqtrack]\").on(\"click\",\n function () {\n //check if the element is already expanded - if not track the event.\n if (this.getAttribute(\"aria-expanded\") === \"false\") {\n console.log(this);\n var endpoint = $(this).data(\"faqtrack\");\n\n registerPageEvent(endpoint);\n }\n });\n\n $(\"a.link.js--accordion-controller-trigger[data-faqtrack]\").on(\"click\",\n function () {\n const accordion = $(this).parents(\"div.accordion__wrapper.js--accordion-controller\")[0];\n const faqs = $(accordion).find(\"a.js--accordion-trigger[data-faqtrack]\");\n $(faqs).each(function (index, faq) {\n if (faq.getAttribute(\"aria-expanded\") === \"false\") {\n //check if the element is already expanded - if not track the event.\n console.log(faq);\n var endpoint = $(faq).data(\"faqtrack\");\n registerPageEvent(endpoint);\n }\n });\n });\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/utils/Analytics.js\n// module id = 16\n// module chunks = 1","import $ from \"jquery\";\n\n$(function () {\n $.fn.FaqAnchorList = function () {\n function init(obj) {\n //get the list we have to add items to\n var anchorListContainer = $(obj).find('.button-collection ul');\n //get the template for the items we add\n var template = Handlebars.compile($(\"#FaqAnchorListItemTemplate\").html());\n //get all accordions and loop them\n $(\"div.accordion__wrapper.js--accordion-controller\").each(function (index) {\n //define a model for the template\n var anchor = {}\n //get the values\n anchor.id = $(this).attr('id');\n anchor.headline = $(this).find(\"h3.accordion__wrapper__title\").first().text();\n //append the new item.\n anchorListContainer.append(template(anchor));\n });\n }\n\n this.each(function () {\n init($(this));\n });\n }\n $(\".FaqAnchorList\").FaqAnchorList();\n});\n\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/Elements/FaqboxAnchorList.js\n// module id = 17\n// module chunks = 1","import $ from \"jquery\";\n\n$(function () {\n $.fn.DocReaderLink = function () {\n function init(obj) {\n // Find the anchor tag to couple the docreader link to\n var documentTag = obj.prev(\"a\");\n if (documentTag != undefined) {\n // document url to be used in the docReader link\n var href = documentTag.attr(\"href\");\n var docreaderUrl = \"https://docreader.readspeaker.com/docreader/?cid=cedyi&lang=da_dk&url=\" + href;\n \n obj.attr(\"href\", docreaderUrl);\n }\n }\n\n this.each(function () {\n init($(this));\n });\n }\n $(\".docreader-link\").DocReaderLink();\n});\n\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/ReadSpeak/DocReaderLink.js\n// module id = 18\n// module chunks = 1","jQuery(\"nav.main-navigation button.readspeaker-icon\").bind(\"click\", function () {\n jQuery(\"#readspeaker_button1\").removeAttr(\"style\");\n jQuery(\"#readspeaker_button1 .rsbtn_play .rsbtn_left.rsimg.rspart\").click();\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Scripts/ReadSpeak/HtoReadSpeak.js\n// module id = 19\n// module chunks = 1","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Content/ch-styles.scss\n// module id = 20\n// module chunks = 1","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Content/ch-wffm.scss\n// module id = 21\n// module chunks = 1"],"sourceRoot":""}