1(self.webpackChunk=self.webpackChunk||[]).push([[937],{5853:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var s=i(5931);const n="js-hook-confirm-box",a="js-hook-confirm-box-confirm",o="js-hook-confirm-box-decline";const r=new class ConfirmBox{constructor(){this.confirmBoxActive=!1}buildTemplateFragment(e){let{classes:t,title:i,description:r,confirmLabel:l,declineLabel:d}=e;const c=t?` ${t}`:"";return document.createRange().createContextualFragment(`\n <div class="c-confirm-box${c}" ${n}>\n <div class="confirm-box__content-wrapper">\n <button class="confirm-box__button-decline" type="button" ${o}>${s.xv}</button>\n\n <h2 class="confirm-box__title">${i}</h2>\n ${r?`<p class="confirm-box__description">${r}</p>`:""}\n\n <div class="confirm-box__actions-wrapper">\n <button class="btn btn-primary btn-outline" type="button" ${o}>${d}</button>\n <button class="btn btn-primary" type="button" ${a}>${l}</button>\n </div>\n </div>\n </div>\n `)}async show(e){return new Promise(((t,i)=>{if(this.confirmBoxActive)return i();const{targetElement:s}=e||{},r=this.buildTemplateFragment(e);if(s){const e=s instanceof HTMLElement?s:document.querySelector(s);e&&e.appendChild(r)}else document.body.appendChild(r);const l=document.querySelector(`[${n}]`);if(l){l.focus();const e=[...l.querySelectorAll(`[${a}]`)],s=[...l.querySelectorAll(`[${o}]`)],successCallback=()=>{l.remove(),this.confirmBoxActive=!1,t("confirmed")},cancelCallback=()=>{l.remove(),this.confirmBoxActive=!1,i("cancelled")};e.forEach((e=>e.addEventListener("click",(()=>successCallback())))),s.forEach((e=>e.addEventListener("click",(()=>cancelCallback())))),this.confirmBoxActive=!0}}))}}},2111:(e,t,i)=>{"use strict";i.r(t),i.d(t,{JS_HOOK_OPENDAY_FORM:()=>c,default:()=>x,getErrorContainer:()=>getErrorContainer,resetFormItem:()=>resetFormItem,showErrorMessage:()=>showErrorMessage,showInputError:()=>showInputError,showInputSuccess:()=>showInputSuccess,validateFieldError:()=>validateFieldError,validateFieldSuccess:()=>validateFieldSuccess});var s=i(8022),n=i(9034),a=i.n(n),o=i(5824);function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach((function(t){_defineProperty(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function _defineProperty(e,t,i){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const capitalize=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.charAt(0).toUpperCase()+e.slice(1)};var r=i(5931);function renderTimeSlotsFiltersTemplate(e,t){return`\n <div class="c-checkbox form__item checkbox--filled checkbox--inline">\n <div class="checkbox__wrapper">\n ${e.map((e=>function render_timeslots_filters_template_checkboxHtml(e,t){const i=`timeslot-filter-${e.value}`;return`\n <input class="checkbox__input u-sr-only"\n type="checkbox"\n name="timeslot-filter-${t}"\n value="${e.value}"\n ${e.checked?"checked":""}\n id="${i}">\n <label class="checkbox__label" for="${i}" role="button">\n ${e.label}\n </label>`}(e,t))).join("")}\n </div>\n </div>`}var l=i(5853),d=i(5975);function openday_form_ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function openday_form_objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?openday_form_ownKeys(Object(i),!0).forEach((function(t){openday_form_defineProperty(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):openday_form_ownKeys(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function openday_form_defineProperty(e,t,i){return(t=function openday_form_toPropertyKey(e){var t=function openday_form_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const c="[js-hook-openday-form]",u="[js-hook-count]",m="[js-hook-openday-form-button-prefill-skip]",h="hidden",p='input[name]:not([type="hidden"]), textarea[name], select[name]',y=["change","paste","keyup"],f=".form__item",v="form__item--error",b="aria-invalid",g="aria-describedby",S="form__item--success",showInputError=(e,t)=>{const i=e.closest(f);resetFormItem(i,e),showErrorMessage(i,e,t)},showErrorMessage=(e,t,i)=>{const s=getErrorContainer(t);t.setAttribute(b,"true"),t.setAttribute(g,s.id),s&&(e.classList.add(v),s.textContent=i,s.classList.remove(h))},showInputSuccess=e=>{const t=e.closest(f);resetFormItem(t,e),e.hasAttribute("required")&&t.classList.add(S)},validateFieldError=(e,t)=>{showInputError(e,t)},validateFieldSuccess=e=>{showInputSuccess(e)},getErrorContainer=e=>e.closest(f).querySelector(".form__item-error")||document.getElementById(`${e.name}_error`),resetFormItem=(e,t)=>{const i=getErrorContainer(t);e.classList.remove(v),e.classList.remove(S),t.removeAttribute(b),t.removeAttribute(g),i&&(i.textContent="",i.classList.add(h))};const x=class OpendayForm{constructor(e){this.currentIndex=0,this.element=e,this.elementScrollTop=this.element.getBoundingClientRect().top,this.form=this.element.querySelector("form"),this.returnUrlInput=this.element.querySelector("[js-hook-openday-form-return-url]"),this.disableTimeslotValidation="true"===this.element.dataset.disableTimeslotValidation,this.parentsConsentContainer=document.getElementById("has-parents-or-guardian-consent-wrapper"),this.ui={navigation:this.element.querySelector("[js-hook-openday-navigation]"),stepIndicator:{wrapper:this.element.querySelector("[js-hook-openday-form-step-indicator]"),progress:this.element.querySelector("[js-hook-openday-form-step-indicator-progress]"),text:this.element.querySelector("[js-hook-openday-form-step-indicator-text]")},prevButton:this.element.querySelector("[js-hook-openday-prev-button]"),nextButton:this.element.querySelector("[js-hook-openday-next-button]"),prefillSkipButton:[...this.element.querySelectorAll(m)],educationsContainer:this.element.querySelector("[js-hook-educations-container]"),timeslots:{container:this.element.querySelector("[js-hook-time-slots-container]"),filters:{container:this.element.querySelector("[js-hook-time-slots-filters-container]"),options:[...this.element.querySelectorAll("[js-hook-time-slots-filters-item]")],type:this.element.querySelector("[js-hook-time-slots-filters-type]"),variant:this.element.querySelector("[js-hook-time-slots-filters-variant]")}},summaryContainer:this.element.querySelector("[js-hook-summary-container]"),educationsSelectionIndicator:this.element.querySelector("[js-hook-openday-form-education-selection-indicator]"),warning:{multipleLocations:[...this.element.querySelectorAll("[js-hook-openday-form-warning-multiple-locations]")],waitingList:[...this.element.querySelectorAll("[js-hook-openday-form-warning-waiting-list]")]},ageParentConsent:this.element.querySelector("[js-hook-age-parent-consent]")},this.translations={educations:this.element.dataset.translationEducations,hrWideSectionTitle:this.element.dataset.translationHrWideSectionTitle,cancelTimeslotLabel:this.element.dataset.translationCancelTimeslotLabel,nextButton:this.element.dataset.translationNextButton,summaryButton:this.element.dataset.translationSummaryButton,submitButton:this.element.dataset.translationSubmitButton,noResultsFound:this.element.dataset.translationNoResultsFound,noTimeSlotsFound:this.element.dataset.translationNoTimeSlotsFound,summary:{timeslotsTitle:this.element.dataset.translationSummaryTimeslotsTitle,personalInfoTitle:this.element.dataset.translationSummaryPer
1sonalInfoTitle,preliminaryEducation:this.element.dataset.translationSummaryPreliminaryEducation},studyType:{Bachelor:this.element.dataset.translationStudytypeBachelor,PostHbo:this.element.dataset.translationStudytypePosthbo,AssociateDegree:this.element.dataset.translationStudytypeAssociatedegree,Master:this.element.dataset.translationStudytypeMaster},studyVariant:{FullTime:this.element.dataset.translationStudyvariantFulltime,PartTime:this.element.dataset.translationStudyvariantParttime,Dual:this.element.dataset.translationStudyvariantDual},confirmBoxDelete:{title:this.element.dataset.translationConfirmBoxDeleteTitle,description:this.element.dataset.translationConfirmBoxDeleteDescription,confirmLabel:this.element.dataset.translationConfirmBoxDeleteConfirmLabel,declineLabel:this.element.dataset.translationConfirmBoxDeleteDeclineLabel},timeslot:{overlap:this.element.dataset.translationTimeslotOverlap,timeslotWaitinglist:this.element.dataset.translationTimeslotWaitinglist,full:this.element.dataset.translationTimeslotFull},warning:{waitinglist:this.element.dataset.translationWarningWaitinglist,multiSession:this.element.dataset.translationWarningMultiSession}},this.validationMessages={checkbox:this.element.dataset.translationValidationMessageCheckbox,radio:this.element.dataset.translationValidationMessageRadio,required:this.element.dataset.translationValidationMessageRequired,email:this.element.dataset.translationValidationMessageEmail,dateOfBirth:this.element.dataset.translationValidationMessageDateOfBirth,phone:this.element.dataset.translationValidationMessagePhone},this.activeFilters={variants:[],types:[]},this.educations=this.prepareEducations(this.element.dataset.educations&&JSON.parse(this.element.dataset.educations)),this.prefilledEducation=this.element.dataset.prefilledEducation&&JSON.parse(this.element.dataset.prefilledEducation),this.hasPrefilledEducation=!!this.prefilledEducation,this.stepOffset=this.hasPrefilledEducation?-1:0,this.hasPrefilledEducation&&this.prefillSelectedEducationFields(),this.steps=[...this.form.querySelectorAll("fieldset")].map((e=>{const t=parseInt(e.dataset.stepIndex,10);return{index:t,name:e.dataset.stepName,id:e.id,completionError:document.querySelector(`[js-hook-openday-form-completion-error][data-step-index="${t}"]`),isCompleted:!1,fieldset:e,formElements:[...e.querySelectorAll(p)]}})),this.isMobile=window.innerWidth<=756,this.bindEvents(),this.validateFieldset(this.step),this.updateStepIndicator(),this.setReturnUrl()}get step(){return this.steps[this.currentIndex]}get index(){return this.currentIndex+this.stepOffset}getFieldsetInputs(e){return[...this.steps[e].fieldset.querySelectorAll(p)]}bindStepFormElements(e){this.steps[e].formElements=this.getFieldsetInputs(e)}hideAllSteps(){this.steps.forEach((e=>{this.step!==e&&(e.fieldset.setAttribute("hidden",!0),e.completionError&&e.completionError.classList.add(h))}))}goToStep(e){if(this.currentIndex=e,this.updateStepIndicator(),(0===this.index||this.hasPrefilledEducation&&this.index<5)&&(this.ui.prevButton.classList.add("hidden"),this.ui.prevButton.setAttribute("disabled",!0)),(!this.hasPrefilledEducation&&this.index>0||this.hasPrefilledEducation&&this.index>4)&&(this.ui.prevButton.classList.remove("hidden"),this.ui.prevButton.removeAttribute("disabled")),this.index<6&&(this.ui.nextButton.textContent=this.translations.nextButton),3!==this.index&&this.ui.educationsSelectionIndicator.classList.add("hidden"),5===this.index&&(this.ui.nextButton.textContent=this.translations.summaryButton),6===this.index&&(this.ui.nextButton.textContent=this.translations.submitButton),7===this.index)return this.ui.nextButton.classList.add("loading"),void this.ui.nextButton.setAttribute("disabled",!0);this.hideAllSteps();this.step.fieldset.removeAttribute("hidden")}updateStepIndicator(){this.ui.navigation.classList[this.hasPrefilledEducation&&0===this.currentIndex?"add":"remove"](h);const e=this.steps.length+this.stepOffset+(this.disableTimeslotValidation?-1:0)+(this.hasPrefilledEducation?-4:0),t=this.currentIndex+this.stepOffset+(this.disableTimeslotValidation&&this.currentIndex>=5?0:1)+(this.hasPrefilledEducation?-4:0);this.ui.stepIndicator.wrapper.style.setProperty("--step-indicator-size",t/e*100+"%"),this.ui.stepIndicator.progress.max=e,this.ui.stepIndicator.progress.value=t,this.ui.stepIndicator.text.textContent=`${t}/${e}`}validateField(e){const t=e.getAttribute("data-validate");return t?e.disabled?[]:t.split(",").map((e=>e.trim())).filter((t=>!o.Z[t].method(e))).map((t=>
1this.validationMessages[o.Z[t].message(e)])).filter(Boolean):[]}fieldSetIsComplete(e){return!this.getFieldsetInputs(e.index).filter((e=>!e.disabled)).map((e=>this.validateField(e))).some((e=>!!e&&!!e.length))}validateFieldset(e){const t=(()=>{var t;return!(4!==this.index||e.formElements.length&&null!==(t=e.formElements.filter((e=>!e.dataset.sessionFull)))&&void 0!==t&&t.length)})();4===this.index&&this.handleTimeslotChange(),4!==this.index&&5!==this.index||this.checkMultipleLocations(),e.index===this.currentIndex&&this.fieldSetIsComplete(e)&&!t?(this.ui.nextButton.removeAttribute("disabled",!0),this.ui.nextButton.removeAttribute("aria-describedby"),e.completionError&&(e.completionError.setAttribute("aria-hidden",!0),e.completionError.classList.add(h))):(this.ui.nextButton.setAttribute("disabled",!0),e.completionError&&(this.ui.nextButton.setAttribute("aria-describedby",e.completionError.id),e.completionError.setAttribute("aria-hidden",!1),e.completionError.classList.remove(h)))}handleInputChange(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=this.validateField(e);if(this.validateFieldset(t),s&&s.length){if(i)return;return validateFieldError(e,s.join(", "))}validateFieldSuccess(e)}renderFieldsetContent(e,t){const i=(new DOMParser).parseFromString(e,"text/html").body.children;t.replaceChildren(...i),this.bindStepFormElements(this.currentIndex),this.bindFormElementEvents(this.step)}prefillSelectedEducationFields(){const e=this.educations.findIndex((e=>e.id===this.prefilledEducation.id));-1!==e&&(this.educations[e].checked=!0),this.prefilledEducation.educationSector.forEach((e=>{const t=this.element.querySelector(`input[name="educationSector"][value="${e}"]`);t&&(t.checked=!0)}));const t=this.element.querySelector(`input[name="studyVariant"][value="${this.prefilledEducation.studyVariant}"]`);t&&(t.checked=!0);const i=this.element.querySelector(`input[name="studyType"][value="${this.prefilledEducation.studyType}"]`);i&&(i.checked=!0)}skipPrefillSelectionFlow(){this.hasPrefilledEducation=!1,this.goToStep(1),this.validateFieldset(this.steps[1])}updateStudyVariantEducationCount(){const e=this.getSelectedBaseValues();if(!e.educationSector)return;const t=this.educations.filter((t=>e.educationSector.some((e=>{let{value:i}=e;return t.educationSector.includes(i)})))).reduce(((t,i)=>i.studyVariant?(t[i.studyVariant]||(t[i.studyVariant]=0),i.studyVariant&&(t[i.studyVariant]+=i.educationSector.filter((t=>e.educationSector.find((e=>{let{value:i}=e;return i===t})))).length),t):t),{});[...this.element.querySelectorAll('input[name="studyVariant"]')].forEach((e=>{const i=t[e.value],s=document.querySelector(`.checkbox__label[for=${e.id}] ${u}`);s&&("number"==typeof i&&0!==i?(s.textContent=`(${i})`,e.disabled=!1):(s.textContent="(0)",e.disabled=!0))}))}updateStudyTypeEducationCount(){const e=this.getSelectedBaseValues();if(!e.educationSector)return;const t=this.educations.filter((t=>e.educationSector.some((e=>{let{value:i}=e;return t.educationSector.includes(i)}))&&e.studyVariants.some((e=>{let{value:i}=e;return i===t.studyVariant})))).reduce(((t,i)=>i.studyType?(t[i.studyType]||(t[i.studyType]=0),i.studyType&&(t[i.studyType]+=i.educationSector.filter((t=>e.educationSector.find((e=>{let{value:i}=e;return i===t})))).length),t):t),{});[...this.element.querySelectorAll('input[name="studyType"]')].forEach((e=>{const i=t[e.value],s=document.querySelector(`.checkbox__label[for=${e.id}] ${u}`);s&&("number"==typeof i&&0!==i?(s.textContent=`(${i})`,e.disabled=!1):(s.textContent="(0)",e.disabled=!0))}))}prepareEducations(e){return e.forEach((e=>{e.id||(e.id=(0,s.v4)()),e.timeSlots.sort(((e,t)=>a().utc(e.sessionStart).diff(a().utc(t.sessionStart))))})),e}renderEducations(){const e=function buildEducationData(e,t,i){const n=e.educationSector.map((s=>({label:s.label,id:s.value,studyVariantTypes:e.studyVariants.flatMap((n=>e.studyTypes.map((e=>{const a=t.filter((t=>t.educationSector.includes(s.value)&&t.studyVariant===n.value&&t.studyType===e.value)).sort(((e,t)=>e.name>t.name?1:-1));return{label:`${n.label} - ${e.label}`,count:`${a.length} ${i.educations}`,educations:a}}))))}
1))),a=t.filter((e=>e.isHRWideSession&&e.timeSlots.length));if(a.length){const e={label:i.hrWideSectionTitle,id:(0,s.v4)(),studyVariantTypes:[{label:void 0,count:void 0,educations:a}]};n.unshift(e)}return n.map((e=>_objectSpread(_objectSpread({},e),{},{studyVariantTypes:e.studyVariantTypes.filter((e=>Boolean(e.educations.length)))}))).filter((e=>Boolean(e.studyVariantTypes.length))).sort(((e,t)=>e.label>t.label?1:-1))}(this.getSelectedBaseValues(),this.educations,this.translations);this.step.fieldset.querySelector(".openday-form__text").classList[e.length?"remove":"add"]("hidden");const t=e.length?function renderEducationTemplate(e,t){return`\n ${e.map(((i,s)=>`\n <div class="openday-form__education-sector">\n ${i.studyVariantTypes.map((e=>`<div class="openday-form__education-variant">\n <h3 class="openday-form__subtitle">\n <span class="openday-form__subtitle-icon">${r.Ck}</span>\n <span class="openday-form__subtitle-label">\n ${capitalize(i.label)} ${e.label&&""!==e.label?`- ${e.label}`:""}\n </span>\n ${void 0!==e.count?`<span class="openday-form__subtitle-count">\n ${e.count}\n </span>`:""}\n </h3>\n <div class="c-checkbox form__item checkbox--outline">\n <div class="checkbox__wrapper">\n ${e.educations.map((e=>function checkboxHtml(e,t,i){const s=`${t}-${e.studyType}-${e.studyVariant}`,n=`${s}:${e.id}`,a=["required"];return e.isMultiSession&&a.push("multiSession"),`\n <input class="checkbox__input u-sr-only"\n type="checkbox"\n name="education"\n value="${s}:${e.id}"\n ${e.checked?"checked":""}\n id="${n}"\n ${e.isMultiSession?'data-multi-session="true"':""}\n ${e.isHRWideSession?'data-hr-wide-session="true"':""}\n data-validate="${a.join(",")}"\n required="required">\n <label class="checkbox__label" for="${n}" role="button">\n <span class="checkbox__education">\n <span class="checkbox__education-meta">\n ${e.name}\n </span>\n ${e.isMultiSession?` <span class="checkbox__education-warning" js-hook-education-checkbox-warning>\n ${i.warning.multiSession} <span></span>\n </span>`:""}\n </span>\n </label>\n`}(e,i.id,t))).join("")}\n </div>\n </div>\n </div>`)).join("")}\n ${e.length>1&&s!==e.length-1?"<hr/>":""}\n </div>`)).join("")}\n <div id="education_error" class="form__item-error hidden"></div>\n `}(e,this.translations):`<p>${this.translations.noResultsFound}</p>`;this.renderFieldsetContent(t,this.ui.educationsContainer)}renderTimeslotsFilters(){const{studyTypes:e,studyVariants:t}=this.getSelectedBaseValues();this.getTimeSlotOptions().forEach((i=>{const s=t.find((e=>{let{value:t}=e;return t===i.studyVariant}));s&&(s.count=(s.count||0)+1);const n=e.find((e=>{let{value:t}=e;return t===i.studyType}));n&&(n.count=(n.count||0)+1)})),this.state={},this.state.variants=t.filter((e=>!!e.count)).map((e=>e)),this.state.types=e.filter((e=>!!e.count)).map((e=>e));const i=this.state.variants.length>1||this.state.types.length>1;this.activeFilters.types=[],this.activeFilters.variants=[],this.ui.timeslots.filters.container.classList[i?"remove":"add"](h),this.ui.timeslots.filters.variant.innerHTML=renderTimeSlotsFiltersTemplate(this.state.variants,"variant"),this.ui.timeslots.filters.variant.parentNode.classList[this.state.variants.length>1?"remove":"add"](h),this.ui.timeslots.filters.type.innerHTML=renderTimeSlotsFiltersTemplate(this.state.types,"type"),this.ui.timeslots.filters.type.parentNode.classList[this.state.types.length>1?"remove":"add"](h);const s=[...this.ui.timeslots.filters.variant.querySelectorAll('input[name="timeslot-filter-variant"]')];[...this.ui.timeslots.filters.type.querySelectorAll('input[name="timeslot-filter-type"]')].forEac
1h((e=>e.addEventListener("change",(()=>{this.activeFilters.types=this.formData["timeslot-filter-type"]||[],this.renderTimeSlots()})))),s.forEach((e=>e.addEventListener("change",(()=>{this.activeFilters.variants=this.formData["timeslot-filter-variant"]||[],this.renderTimeSlots()}))))}getTimeSlotOptions(){const e=[...this.element.querySelectorAll('input[name="education"]:checked')].map((e=>{var t;return{label:e.labels[0].textContent,value:null===(t=e.value.split(":"))||void 0===t?void 0:t[1]}}));return[...new Set(e.map((e=>this.educations.find((t=>t.id===e.value)))))]}renderTimeSlots(e){const t=this.getTimeSlotOptions().filter((e=>{const t=!this.activeFilters.types.length||this.activeFilters.types.some((t=>t===e.studyType)),i=!this.activeFilters.variants.length||this.activeFilters.variants.some((t=>t===e.studyVariant));return!!t&&!!i})),i=t.some((e=>Boolean(e.timeSlots.length))),s=i?function renderTimeSlotsTemplate(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0;return`\n ${e.sort(((e,t)=>e.name>t.name?1:-1)).sort(((e,t)=>Number(t.isHRWideSession||0)-Number(e.isHRWideSession||0))).map((e=>`\n <div class="openday-form__timeslot-header" data-education-id="${e.id}">\n <h3 class="openday-form__subtitle openday-form__subtitle--column">\n <span class="openday-form__subtitle-icon">${r.Ck}</span>\n <span class="openday-form__subtitle-label">\n ${capitalize(e.name)}${e.isMultiSession||e.isHRWideSession?"":` - ${i.studyVariant[e.studyVariant]} - ${capitalize(i.studyType[e.studyType])}`}\n </span>\n ${e.location?`<span class="openday-form__subtitle-location">${e.location}</span>`:""}\n </h3>\n <button class="openday-form__button-delete" title="${i.cancelTimeslotLabel}" type="button" data-education-id="${e.id}" js-hook-openday-form-button-delete-entry>\n ${r.Ly}\n </button>\n </div>\n <div class="c-radio radio--outline form__item" data-education-id="${e.id}">\n <div class="radio__wrapper">\n ${e.timeSlots.map((s=>function radioHtml(e,t,i,s){const n=["required"];return i||n.push("customTimeSlotValidation"),`\n <input class="radio__input u-sr-only"\n type="radio"\n name="${t.id}"\n value="${e.value}"\n id="${e.value}:${t.id}"\n data-validate="${n.join(",")}"\n required="required"\n data-session-start="${e.sessionStart?e.sessionStart:""}"\n data-session-end="${e.sessionEnd?e.sessionEnd:""}"\n data-session-wait-time="${e.sessionWaitTime?e.sessionWaitTime:""}"\n data-education="${t.name}"\n ${"full"===e.waitingList?'data-session-full="true" disabled':""}\n js-hook-timeslot-radio>\n <label class="radio__label" for="${e.value}:${t.id}" role="button">\n <span class="radio__timeslot">\n <span class="radio__timeslot-meta">\n <span class="radio__timeslot-date">${e.sessionDate}</span>\n <span class="radio__timeslot-range">${e.sessionRange}</span>\n </span>\n <span class="radio__timeslot-warning">\n <span class="radio__timeslot-warning-overlap">${s.timeslot.overlap}</span>\n ${"available"===e.waitingList?`<span>${s.timeslot.timeslotWaitinglist}</span>`:""}\n ${"full"===e.waitingList?`<span>${s.timeslot.full}</span>`:""}\n </span>\n </span>\n </label>\n`}(s,e,t,i))).join("")}\n ${e.timeSlots.length?"":`<p>${i.noTimeSlotsFound}</p>`}\n </div>\n <div id="${e.id}_error" class="form__item-error hidden"></div>\n </div>\n `)).join("")}\n `}(t,this.disableTimeslotValidation,this.translations):`<p>${this.translations.noResultsFound}</p>`;this.renderFieldsetContent(s,this.ui.timeslots.container);const n=this.step.fieldset.querySelector(m);if(!i)return this.ui.nextButton.setAttribute("disabled",!0),void(n&&n.classList.remove("hidden"));n&&n.classList.add("hidden"),this.disableTimeslotValidation?(t.forEach((e=>{const t=[...this.element.querySelectorAll(`[js-hook-timeslot-radio][name="${e.id}"]`)][0];t&&(t.checked=!0,t.setAttribute("checked",!0))})),this.handleNextButtonClick()):(this.bindTimeslotEvents(),e&&e.map((e=>
1{const t=this.element.querySelector(`[js-hook-timeslot-radio][value="${e}"]`);t&&(t.checked=!0,t.setAttribute("checked",!0))})))}bindTimeslotEvents(){const e=this.step.fieldset;if(e){[...e.querySelectorAll("[js-hook-timeslot-radio]")].forEach((e=>e.addEventListener("click",(()=>{if(!e.disabled){const t="true"===e.dataset.lastValue;e.checked&&e.checked===t?(e.checked=!1,e.dataset.lastValue=0,this.handleInputChange(e,this.step)):e.dataset.lastValue=e.checked}}))));[...e.querySelectorAll("[js-hook-openday-form-button-delete-entry]")].forEach((e=>{e.addEventListener("click",(()=>this.handleDeleteEntry(e.dataset.educationId)))}))}}async handleDeleteEntry(e){l.Z.show({title:this.translations.confirmBoxDelete.title,description:this.translations.confirmBoxDelete.description,confirmLabel:this.translations.confirmBoxDelete.confirmLabel,declineLabel:this.translations.confirmBoxDelete.declineLabel}).then((async()=>{const t=[...document.querySelectorAll(`input[name="education"][value="${e}"]`)];if(t.length){const e=[...this.element.querySelectorAll("[js-hook-timeslot-radio]:checked")].map((e=>e.value));t.forEach((e=>{e.checked=!1,e.removeAttribute("checked")})),this.renderTimeslotsFilters(),this.renderTimeSlots(e),this.validateFieldset(this.step)}})).catch((()=>{}))}getSelectedTimeSlotValues(){return[...this.element.querySelectorAll("[js-hook-timeslot-radio]:checked")].filter((e=>"false"!==e.value)).map((e=>{const t=this.educations.find((t=>t.id===e.name)),i=t.timeSlots.find((t=>t.value===e.value)),{name:s,studyType:n,studyVariant:a,location:o,isMultiSession:r,isHRWideSession:l}=t;return openday_form_objectSpread(openday_form_objectSpread({},i),{},{name:s,studyType:n,studyVariant:a,location:o,isMultiSession:r,isHRWideSession:l})}))}escapeHTML(){return String((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")??"").replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}renderSummary(){var e;const t=this.getSelectedTimeSlotValues(),i=this.formData,s=document.querySelector('select[name="preliminaryeducation"]').selectedOptions[0].textContent.trim(),n=function render
1SummaryTemplate(e,t,i,s){return`\n ${e?`<div class="openday__summary-card openday__summary-card--timeline">\n <h3 class="openday__summary-card-title text-weight--medium text-size--md text-color--primary">\n ${r.YN}\n ${i.timeslotsTitle}\n </h3>\n <div class="openday__summary-card-content">\n ${e.map((e=>`\n <div class="openday__summary-card-row">\n <h4 class="text-size--sm text-weight--medium text-color--secondary">\n ${e.name}${e.isMultiSession||e.isHRWideSession?"":` - ${i.studyVariant[e.studyVariant]} - ${i.studyType[e.studyType]}`}\n </h4>\n ${s?"":`<h5 class="text-size--sm text-weight--regular text-color--secondary">\n ${e.sessionDate}\n </h6>`}\n <p class="text-size--sm text-color--mid-blue">\n ${e.sessionRange}\n </p>\n ${e.location?`<p class="text-size--sm text-color--mid-blue">\n ${e.location}\n </p>`:""}\n\n </div>\n `)).join("")}\n </div>\n </div>`:""}\n ${t?`<div class="openday__summary-card">\n <h3 class="openday__summary-card-title text-weight--medium text-size--md text-color--primary">\n ${r.N5}\n ${i.personalInfoTitle}\n </h3>\n <div class="openday__summary-card-content">\n <div class="openday__summary-card-row">\n <h4 class="text-size--sm text-weight--medium text-color--secondary">\n ${t.name}\n </h4>\n <p class="text-size--sm text-weight--regular text-color--secondary">\n ${t.emailAddress}<br/>\n ${t.phoneNumber?`${t.phoneNumber} <br/>`:""}\n ${i.preliminaryEducation}: ${t.preliminaryEducation}\n </p>\n </div>\n </div>\n </div>`:""}\n `}(t,{name:this.escapeHTML(`${i.firstname[0]?`${i.firstname[0]} `:""}${i.insertion[0]?`${i.insertion[0]} `:""}${i.lastname[0]||""}`),emailAddress:this.escapeHTML(i.email[0]),phoneNumber:this.escapeHTML(null===(e=i.phoneNumber)||void 0===e?void 0:e[0]),preliminaryEducation:this.escapeHTML(s)},openday_form_objectSpread(openday_form_objectSpread({},this.translations.summary),{},{timeslotsTitle:this.disableTimeslotValidation?t[0].sessionDate:this.translations.summary.timeslotsTitle,studyType:this.translations.studyType,studyVariant:this.translations.studyVariant}),this.disableTimeslotValidation);this.renderFieldsetContent(n,this.ui.summaryContainer)}submitForm(){d.Z.$trigger("loader::show",{data:{targetElement:this.form,message:window.EnvironmentSettings.translations.longFormProcessingMessage}}),this.form.submit()}handleNextButtonClick(){if(this.ui.nextButton.setAttribute("disabled",!0),this.hasPrefilledEducation&&0===this.currentIndex)this.goToStep(this.currentIndex+=5),this.updateStudyVariantEducationCount(),this.updateStudyTypeEducationCount(),this.renderEducations(),this.renderTimeslotsFilters(),this.renderTimeSlots();else if(this.goToStep(++this.currentIndex),1===this.index&&this.updateStudyVariantEducationCount(),2===this.index&&this.updateStudyTypeEducationCount(),3===this.index&&this.renderEducations(),4===this.index&&(this.renderTimeslotsFilters(),this.renderTimeSlots()),6===this.index&&this.renderSummary(),7===this.index)return void this.submitForm();5===this.index&&this.updateAgeParentConsentVisibility();const e=this.step.formElements[0];e&&e.focus(),this.validateFieldset(this.step),this.scrollToTop()}handlePrevButtonClick(){const e=5===this.currentIndex&&this.disableTimeslotValidation?2:1;this.goToStep(this.currentIndex-=e),this.validateFieldset(this.step),this.scrollToTop()}
1bindFormElementEvents(e){e.formElements.forEach((t=>y.forEach((i=>t.addEventListener(i,(()=>this.handleInputChange(t,e)))))))}handleEducationsChange(){const e=this.formData.education?[...new Set(this.formData.education)].map((e=>`input[type="checkbox"][value="${e}"]`)).join(","):void 0,t=[...document.querySelectorAll(e)].map((e=>{var t;return null===(t=e.labels[0])||void 0===t||null===(t=t.firstChild)||void 0===t?void 0:t.textContent.trim()})).filter(Boolean),i=t.pop(),s=t.length?`${t.join(", ")} & ${i}`:i;this.ui.educationsSelectionIndicator.innerText=s,this.ui.educationsSelectionIndicator.classList[s?"remove":"add"]("hidden")}handleAgeConsentChange(){var e;const t=!(null===(e=this.step.formElements.find((e=>"person-is-under-16"===e.id)))||void 0===e||!e.checked),i=this.step.formElements.find((e=>"has-parents-or-guardian-consent"===e.id));this.parentsConsentContainer.classList[t?"remove":"add"]("hidden"),i&&(i.disabled=!t,!t&&i.checked&&(i.checked=!1),this.handleInputChange(i,this.step,!0))}updateAgeParentConsentVisibility(){var e;const t=[...this.element.querySelectorAll('input[name="studyType"]:checked')].map((e=>e.value)),i=1===t.length&&"Master"===t[0],s=[...this.element.querySelectorAll('input[name="ageParentConsent"]'),...this.element.querySelectorAll('input[name="age-consent"]'),...this.element.querySelectorAll('[id="16-or-older"], [id="parent-or-guardian"], [id="person-is-under-16"]')].filter(((e,t,i)=>i.indexOf(e)===t)),n=this.ui.ageParentConsent||(null===(e=s[0])||void 0===e?void 0:e.closest(f));
1n&&(n.hidden=i),s.forEach((e=>{e.disabled=i,i&&(e.checked=!1,e.removeAttribute("checked"))}));const a=this.element.querySelector("#has-parents-or-guardian-consent");a&&(a.checked=!1,a.disabled=i),this.parentsConsentContainer&&this.parentsConsentContainer.classList[i?"add":"remove"](h)}handleMultipleEducationCheckboxes(e){if("checkbox"===e.target.type&&"education"===e.target.name){[...this.element.querySelectorAll(`input[name="education"][value="${e.target.value}"]`)].forEach((t=>t.checked=e.target.checked))}}checkMultipleLocations(){const e=this.getSelectedTimeSlotValues(),t=e.filter((t=>{let{sessionStart:i,sessionEnd:s,value:n}=t;return e.some((e=>n!==e.value&&(a()(i).isSame(e.sessionStart,"day")||a()(i).isSame(e.sessionEnd,"day")||a()(s).isSame(e.sessionStart,"day")||a()(s).isSame(e.sessionEnd,"day"))))})),i=new Set(t.map((e=>e.location)).filter(Boolean)).size>1;this.ui.warning.multipleLocations.forEach((e=>{e.classList[i?"remove":"add"](h)}))}handleTimeslotChange(){const e=this.getSelectedTimeSlotValues().filter((e=>"available"===e.waitingList));if(e.length){const t=this.translations.warning.waitinglist.replace("{Sessies}",`<strong>${e.map((e=>`${e.name}${e.studyType?` - ${this.translations.studyType[e.studyType]}`:""}${e.studyVariant?` - ${this.translations.studyVariant[e.studyVariant]}`:""}${e.sessionRange?` (${e.sessionRange})`:""}`)).join(", ")}</strong>`);this.ui.warning.waitingList.forEach((e=>{e.querySelector("[js-hook-form-warning-waiting-list-text]").innerHTML=t,e.classList.remove(h)}))}else this.ui.warning.waitingList.forEach((e=>{e.classList.add(h)}))}scrollToTop(){this.isMobile&&window.scroll({top:this.elementScrollTop,behavior:"smooth"})}bindEvents(){this.ui.prefillSkipButton.length&&this.ui.prefillSkipButton.forEach((e=>e.addEventListener("click",(()=>this.skipPrefillSelectionFlow())))),this.ui.prevButton.addEventListener("click",(()=>this.handlePrevButtonClick())),this.ui.nextButton.addEventListener("click",(()=>this.handleNextButtonClick())),this.steps.forEach((e=>{this.bindFormElementEvents(e)})),this.form.addEventListener("change",(e=>{this.handleMultipleEducationCheckboxes(e),5===this.index&&this.handleAgeConsentChange(),3===this.index&&this.handleEducationsChange()}))}getSelectedBaseValues(){return{educationSector:[...this.element.querySelectorAll('input[name="educationSector"]:checked')].map((e=>({label:e.labels[0].firstChild.textContent.trim(),value:e.value}))),studyVariants:[...this.element.querySelectorAll('input[name="studyVariant"]:checked')].map((e=>({label:e.labels[0].firstChild.textContent.trim(),value:e.value}))),studyTypes:[...this.element.querySelectorAll('input[name="studyType"]:checked')].map((e=>({label:e.labels[0].firstChild.textContent.trim(),value:e.value})))}}setReturnUrl(){if(document.referrer)try{const e=new URL(document.referrer);if(e.origin!==window.location.origin)return;this.returnUrlInput.value=e.pathname}catch(e){}}get formData(){return(e=>[...e].reduce(((e,t)=>{const i=t[0],s=t[1];return e[i]||(e[i]=[]),s&&e[i].push(s),e}),{}))(new FormData(this.form))}}},5824:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var s=i(2111);var n=i(9034),a=i.n(n);const o={required:{message:e=>"checkbox"===e.type&&document.querySelectorAll(`input[name="${e.name}"]`).length>1||"radio"===e.type?e.type:"required",method:e=>!!e.disabled||("checkbox"===e.type?[...document.querySelectorAll(`input[name="${e.name}"]:checked`)].length>0:"radio"===e.type?e.parentNode.querySelectorAll(`input[name="${e.name}"]:checked`).length>0:""!==e.value)},email:{message:()=>"email",method:e=>""===e.value||function isValidEmail(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,10}))$/.test(e)}(e.value)},phone:{message:()=>"phone",method:e=>""===e.value||/^(\+[0-9]{1,3}[- ]?)?\(?[0-9]{3}\)?[- ]?[0-9]{3}[- ]?[0-9]{4}$/.test(e.value)},multiSession:{message:()=>"",method:e=>{var t,i;if(e.disabled)return!0;const n=e.checked,a=null===(t=e.closest(".openday-form__education-variant"))||void 0===t?void 0:t.querySelector(".openday-form__subtitle-label"),o=null==a||null===(i=a.textContent)||void 0===i?void 0:i.trim(),r
1=e.id.split(":").pop(),l=[...document.querySelectorAll(`input[type="checkbox"][name="education"][data-multi-session][id$="${r}"]`)],d=l.filter((t=>t!==e&&!t.checked)),c=d.some((t=>n&&t!==e&&!t.checked));return(d.length?d:l).forEach((e=>{if(c&&l.length!==d.length){var t;const i=(null===(t=e.labels)||void 0===t?void 0:t[0].querySelector("span")).querySelector("[js-hook-education-checkbox-warning] span");e.setAttribute("disabled",!0),o&&i&&(i.textContent=o)}else e.removeAttribute("disabled");(0,s.validateFieldSuccess)(e)})),!!d.length}},customTimeSlotValidation:{message:()=>"",method:e=>{const t=e.id,i=[...document.querySelectorAll('input[type="radio"][data-session-start]')].map((e=>{const t=parseInt(e.dataset.sessionWaitTime,10);return{el:e,startTime:a()(e.dataset.sessionStart),endTime:a()(e.dataset.sessionEnd).add(isNaN(t)?0:t,"minutes"),sessionFull:!!e.dataset.sessionFull}})),n=i.filter((e=>{let{el:t,startTime:i,endTime:s}=e;return t.checked&&i.isValid()&&s.isValid()})).map((e=>{let{startTime:t,endTime:i}=e;return{startTime:t,endTime:i}}));return i.forEach((e=>{let{el:i,startTime:a,endTime:o,sessionFull:r}=e;if(i.id===t||i.checked)i.removeAttribute("disabled"),i.dataset.overlap=!1,(0,s.validateFieldSuccess)(i);else{if(r)return i.setAttribute("disabled",!0),(0,s.validateFieldSuccess)(i),void(i.dataset.lastValue=0);if(!n.length)return i.removeAttribute("disabled"),(0,s.validateFieldSuccess)(i),void(i.dataset.lastValue=0);if(n.some((e=>a.isSame(e.startTime,"day")||a.isSame(e.endTime,"day")||o.isSame(e.startTime,"day")||o.isSame(e.endTime,"day")))){const e=n.some((e=>e.startTime.isBetween(a,o,void 0,"[)")||a.isBetween(e.startTime,e.endTime,void 0,"[)"))),t=n.some((e=>e.endTime.isBetween(a,o,void 0,"(]")||o.isBetween(e.startTime,e.endTime,void 0,"(]")));(e||t)&&(i.setAttribute("disabled",!0),i.dataset.overlap=!0,(0,s.validateFieldSuccess)(i))}else i.removeAttribute("disabled"),i.dataset.overlap=!1,(0,s.validateFieldSuccess)(i);i.dataset.lastValue=0}})),!!n.length}},crmDateTime:{message:()=>"crmDateTime",method:e=>{const t=e.value;return a()(t,"YYYY-MM-DD").isSameOrAfter(a()("01-01-1753","MM-DD-YYYY"))}},dateOfBirth:{message:()=>"dateOfBirth",method:e=>{const t=e.value,i=a()(t,"YYYY-MM-DD");return i.isSameOrAfter(a()("01-01-1753","MM-DD-YYYY"))&&i.isBefore()}}}},5931:(e,t,i)=>{"use strict";i.d(t,{Ck:()=>n,Ly:()=>s,N5:()=>o,YN:()=>r,xv:()=>a});const s=i(2375),n=i(2027),a=i(3131),o=i(8439),r=i(589)},2375:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16 1a1 1 0 011 1v3h5v2h-2v15a1 1 0 01-1 1H5a1 1 0 01-1-1V7H2V5h5V2a1 1 0 011-1zm2 6H6v14h12zm-7 2v10H9V9zm4 0v10h-2V9zm0-6H9v2h6z"></path></svg>'},589:e=>{e.exports='<svg viewBox="0 0 24 22" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5 2V1C5 0.447715 5.44772 0 6 0C6.55228 0 7 0.447715 7 1V2H17V1C17 0.447715 17.4477 0 18 0C18.5523 0 19 0.447715 19 1V2H23C23.5523 2 24 2.44772 24 3V21C24 21.5523 23.5523 22 23 22H1C0.447715 22 0 21.5523 0 21V3C0 2.44772 0.447715 2 1 2H5ZM7 4H17V5C17 5.55228 17.4477 6 18 6C18.5523 6 19 5.55228 19 5V4H22V10H2V4H5V5C5 5.55228 5.44772 6 6 6C6.55228 6 7 5.55228 7 5V4ZM2 12V20H22V12H2Z"></path></svg>'},3131:e=>{e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 6.586L2.343.929.93 2.343 6.586 8 .929 13.657l1.414 1.414L8 9.414l5.657 5.657 1.414-1.414L9.414 8l5.657-5.657L13.657.93 8 6.586z" fill="#D20020" fill-rule="evenodd"></path></svg>'},8439:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 13c5.2 0 8.5 3.4 10 9.8.1.6-.3 1.2-1 1.2H3c-.6 0-1.1-.6-1-1.2C3.5 16.4 6.8 13 12 13zm0 2c-3.7 0-6.2 2.1-7.6 6.7l-.1.3h15.4c-1.4-4.7-3.9-7-7.7-7zm0-15c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6 2.7-6 6-6zm0 2C9.8 2 8 3.8 8 6s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4z"></path><path d="M12 13c5.2 0 8.5 3.4 10 9.8.1.6-.3 1.2-1 1.2H3c-.6 0-1.1-.6-1-1.2C3.5 16.4 6.8 13 12 13zm0 2c-3.7 0-6.2 2.1-7.6 6.7l-.1.3h15.4c-1.4-4.7-3.9-7-7.7-7zm0-15c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6 2.7-6 6-6zm0 2C9.8 2 8 3.8 8 6s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4z"></path></svg>'},2027:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 22"><path d="M11.5.1c.3-.2.7-.2 1 0l11 6c.7.4.7 1.4 0 1.8L20 9.8v8.4l-.2.3C18.2 20.8 15.5 22 12 22s-6.2-1.2-7.8-3.5l-.2-.3V9.8L2 8.7V15c0 .6-.4 1-1 1s-1-.4-1-1V6.9c0-.3.2-.6.5-.8l11-6zM18 10.9l-5.5 3c-.3.2-.7.2-1 0l-5.5-3v6.7c1.2 1.6 3.1 2.4 5.7 2.4h.3c2.8 0 4.7-.8 6-2.4v-6.7zm-6-8.8L3.1 7l8.9 4.9L20.9 7 12 2.1z"></path></svg>'},8022:(e,t,i)=>{var s=i(4481),n=i(6426),a=n;a.v1=s,a.v4=n,e.exports=a},8725:e=>{for(var t=[],i=0;i<256;++i)t[i]=(i+256).toString(16).substr(1);e.exports=function bytesToUuid(e,i){var s=i||0,n=t;return[n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var i=new Uint8Array(16);e.exports=function whatwgRNG(){return t(i),i}}else{var s=new Array(16);e.exports=function mathRNG(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),s[t]=e>>>((3&t)<<3)&255;return s}}},4481:(e,t,i)=>{var s,n,a=i(9157),o=i(8725),r=0,l=0;e.exports=function v1(e,t,i){var d=t&&i||0,c=t||[],u=(e=e||{}).node||s,m=void 0!==e.clockseq?e.clockseq:n;if(null==u||null==m){var h=a();null==u&&(u=s=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==m&&(m=n=16383&(h[6]<<8|h[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),y=void 0!==e.nsecs?e.nsecs:l+1,f=p-r+(y-l)/1e4;if(f<0&&void 0===e.clockseq&&(m=m+1&16383),(f<0||p>r)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r=p,l=y,n=m;var v=(1e4*(268435455&(p+=122192928e5))+y)%4294967296;c[d++]=v>>>24&255,c[d++]=v>>>16&255,c[d++]=v>>>8&255,c[d++]=255&v;var b=p/4294967296*1e4&268435455;c[d++]=b>>>8&255,c[d++]=255&b,c[d++]=b>>>24&15|16,c[d++]=b>>>16&255,c[d++]=m>>>8|128,c[d++]=255&m;for(var g=0;g<6;++g)c[d+g]=u[g];return t||o(c)}},6426:(e,t,i)=>{var s=i(9157),n=i(8725);e.exports=function v4(e,t,i){var a=t&&i||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||s)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var r=0;r<16;++r)t[a+r]=o[r];return t||n(o)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.