{"version":3,"file":"js/1214.chunk.js?v=1742528680091","mappings":"gJAEMA,EAAuB,WACzB,IAAMC,EAAQC,IAAE,mBAEZD,EAAME,QAAU,GAIpBF,EAAMG,OAAM,WACR,IAAMC,EAAMH,IAAEI,MAEdL,EAAMM,YAAY,YAClBF,EAAIG,SAAS,YAEb,IAAMC,EAASJ,EAAIK,KAAK,UACxBR,IAAE,2BAA2BM,SAAS,UACtCN,IAAE,IAADS,OAAKF,IAAUF,YAAY,SAChC,GACJ,EAEAL,KAAE,WACEF,GACJ,IAEAY,OAAOZ,qBAAuBA,C","sources":["webpack://fed-boilerplate/./src/4-sections/my-clipsal-account/s-my-clipsal-account.js"],"sourcesContent":["import $ from 'jquery';\n\nconst initAccountSelection = () => {\n const $type = $('.c-account-type');\n\n if ($type.length <= 0) {\n return;\n }\n\n $type.click(function() {\n const $el = $(this);\n\n $type.removeClass('selected');\n $el.addClass('selected');\n\n const target = $el.data('target');\n $('.c-account-type-content').addClass('hidden');\n $(`#${target}`).removeClass('hidden');\n });\n};\n\n$(() => {\n initAccountSelection();\n});\n\nwindow.initAccountSelection = initAccountSelection;\n\n// JS logic added on BED side due to Kentico multi form nature not being able to read JS on subsequent pages\n// Left here for reference\n\n// GOOGLE RECAPTCHA\n// grecaptcha.ready(function () {\n// grecaptcha\n// .execute(\n// '<%# SchneiderElectric.Library.Helpers.GoogleRecaptchaHelper.GoogleRecaptcaSiteKey %>',\n// { action: 'submit' }\n// )\n// .then(function (token) {\n// hdnRecaptchaToken.value = token;\n// });\n// });\n\n// REGISTRATION SUBMISSION\n// const regoButton = document.getElementById('rego-form-submit');\n// regoButton.addEventListener('click', function (e) {\n// const bizName = document.getElementById(\n// '<%= txtBusinessName.ClientID %>'\n// ).value;\n// const taxId = document.getElementById('<%= txtTaxID.ClientID %>').value;\n// const empNumber = document.getElementById(\n// '<%= ddlEmployeeNumber.ClientID %>'\n// ).value;\n// const areaOfocus = document.getElementById(\n// '<%= ddlAreaOfFocus.ClientID %>'\n// ).value;\n// const role = document.getElementById('<%= ddlRole.ClientID %>').value;\n\n// const allRequiredDataValid =\n// bizName.trim() != '' &&\n// taxId.trim() != '' &&\n// empNumber.trim() != '' &&\n// areaOfocus.trim() != '' &&\n// role.trim() != '';\n\n// if (allRequiredDataValid) {\n// e.preventDefault();\n// const loading = document.getElementsByClassName('loading')[0];\n// loading.classList.add('show');\n// }\n\n// const btnRegistrationSubmit = document.getElementById(\n// 'btnRegistrationSubmit'\n// );\n// btnRegistrationSubmit.click();\n// });\n\n// FIRST PAGE HANDLING ADDITIONAL HTML AND FORM FIELD REMOVAL IF EXISTING EMAIL IS FOUND\n// const emailClearBtn = document.querySelector('.clear-email-btn');\n// const emailValidation = document.querySelector('.email-validation');\n// const emailField = document.querySelector('#txtEmailAddress');\n// const nextPageBtn = document.querySelector('#lbContinueToContact');\n// const emailFound = document.querySelector('#pnlEmailExist');\n\n// if (emailFound) {\n// emailClearBtn.style.display = 'block';\n// emailValidation.style.display = 'block';\n// nextPageBtn.classList.add('btn-disabled');\n// }\n\n// emailClearBtn.addEventListener('click', () => {\n// emailClearBtn.style.display = 'none';\n// emailValidation.style.display = 'none';\n// nextPageBtn.classList.remove('btn-disabled');\n// emailField.value = '';\n// });\n\n// emailField.addEventListener('keyup', () => {\n// if (emailField.value === '' && emailValidation.classList.contains('show')) {\n// emailClearBtn.style.display = 'none';\n// emailValidation.style.display = 'none';\n// nextPageBtn.classList.remove('btn-disabled');\n// emailField.value = '';\n// }\n// });\n"],"names":["initAccountSelection","$type","$","length","click","$el","this","removeClass","addClass","target","data","concat","window"],"sourceRoot":""}