PageSourceSearch

https://www.thuiscursus.nl/9446.a891022ffc7d68ac.js

js thuiscursus.nl collected 2026-10-07 21:25:39 UTC 70,423 bytes, 2 lines download raw bytes

1(self.webpackChunkangular_io_example=self.webpackChunkangular_io_example||[]).push([[9446],{85763:(B,S,c)=>{"use strict";c.d(S,{t:()=>I});var t=c(90954),D=c(87912),i=c(68559),P=c(87941),A=c(11624),m=c(48503),R=c(84205),M=c(70271),U=c(33900),g=c(61318),b=c(59452),F=c(36647),N=c(61873),T=c(51360),$=c(48384),j=c(21675),l=c(75433),a=c(66643),s=c(82571),e=c(60316),n=c(4419),o=c(8432),u=c(55731),_=c(19168),v=c(51731),C=c(19603);const y=r=>({"alert-primary mb-0":r}),L=r=>({"alert-primary":r}),w=r=>({course:r}),k=r=>({group:r}),x=()=>["teacher/preferences"];function K(r,p){1&r&&(i.j41(0,"h5",2),i.EFF(1),i.nI1(2,"translate"),i.nI1(3,"titleCaseFirstWord"),i.k0s()),2&r&&(i.R7$(),i.SpI(" ",i.bMT(3,3,i.bMT(2,1,"selectCourseModal"))," "))}function J(r,p){1&r&&i.nrm(0,"app-inner-loader",5)}function G(r,p){if(1&r){const d=i.RV6();i.j41(0,"a",9),i.bIt("click",function(){i.eBV(d);const E=i.XpG().$implicit,O=i.XpG(2);return i.Njj(O.openCourseBook(E.courseCode))}),i.eu8(1,10),i.k0s()}if(2&r){const d=i.XpG().$implicit;i.XpG(2);const f=i.sdS(8);i.R7$(),i.Y8G("ngTemplateOutlet",f)("ngTemplateOutletContext",i.eq3(2,w,d))}}function V(r,p){if(1&r){const d=i.RV6();i.j41(0,"a",11),i.bIt("click",function(){i.eBV(d);const E=i.XpG().$implicit,O=i.XpG(2);return i.Njj(O.handleChoice(E.id))}),i.eu8(1,10),i.k0s()}if(2&r){const d=i.XpG().$implicit;i.XpG(2);const f=i.sdS(8);i.R7$(),i.Y8G("ngTemplateOutlet",f)("ngTemplateOutletContext",i.eq3(2,w,d))}}function z(r,p){if(1&r&&i.DNE(0,G,2,4,"a",7)(1,V,2,4,"a",8),2&r){const d=i.XpG(2);i.vxM(d.isCourseBook?0:1)}}function Y(r,p){if(1&r&&i.Z7z(0,z,2,1,null,null,i.Vm6),2&r){const d=i.XpG();i.Dyx(d.courses)}}function Z(r,p){if(1&r&&(i.j41(0,"div",14),i.nrm(1,"p",16),i.nI1(2,"translate"),i.k0s()),2&r){const d=i.XpG(2);i.R7$(),i.Y8G("innerHTML",i.bMT(2,1,d.showWarningNoMaterials?"noCoursesWithMaterialsFound":"dontHaveActiveCourses"),i.npT)}}function q(r,p){if(1&r&&(i.j41(0,"div",15),i.EFF(1),i.nI1(2,"translate"),i.nI1(3,"translate"),i.j41(4,"a",17),i.EFF(5),i.nI1(6,"translate"),i.nI1(7,"titleCaseFirstWord"),i.k0s(),i.EFF(8),i.nI1(9,"translate"),i.k0s()),2&r){const d=i.XpG(2);i.R7$(),i.SpI(" ",i.i5U(3,6,"teacherDontHaveActiveCourses",i.eq3(15,k,i.bMT(2,4,d.teacherGroupCourse)))," "),i.R7$(3),i.Y8G("routerLink",i.lJ4(17,x)),i.R7$(),i.JRh(i.bMT(7,11,i.bMT(6,9,"clickHere"))),i.R7$(3),i.SpI(" ",i.bMT(9,13,"teacherDontHaveActiveCoursesTwo")," ")}}function tt(r,p){if(1&r&&(i.j41(0,"div",6)(1,"div",12),i.nrm(2,"i",13),i.k0s(),i.DNE(3,Z,3,3,"div",14)(4,q,10,18,"div",15),i.k0s()),2&r){const d=i.XpG();i.R7$(3),i.vxM(d.isStudent||d.showWarningNoMaterials?3:4)}}function et(r,p){if(1&r&&(i.j41(0,"strong",21),i.EFF(1),i.k0s()),2&r){const d=i.XpG().course;i.R7$(),i.JRh(d.courseName)}}function it(r,p){if(1&r&&(i.j41(0,"p",22)(1,"strong"),i.EFF(2),i.nI1(3,"translate"),i.nI1(4,"translate"),i.k0s(),i.j41(5,"span",23),i.EFF(6),i.k0s()()),2&r){const d=i.XpG(2).course;i.R7$(2),i.Lme("",i.bMT(3,3,"language"),"",i.bMT(4,5,"typography.colon"),""),i.R7$(4),i.JRh(d.language)}}function nt(r,p){if(1&r&&(i.j41(0,"p",22)(1,"strong"),i.EFF(2),i.nI1(3,"translate"),i.nI1(4,"translate"),i.k0s(),i.j41(5,"span",23),i.EFF(6),i.nI1(7,"dateformat"),i.k0s()()),2&r){const d=i.XpG(2).course;i.R7$(2),i.Lme("",i.bMT(3,3,"startingDateLabel"),"",i.bMT(4,5,"typography.colon"),""),i.R7$(4),i.JRh(i.bMT(7,7,d.startDate))}}function ot(r,p){if(1&r&&(i.j41(0,"p",22)(1,"strong"),i.EFF(2),i.nI1(3,"translate"),i.nI1(4,"translate"),i.k0s(),i.j41(5,"span"),i.EFF(6),i.nI1(7,"translate"),i.k0s()()),2&r){const d=i.XpG(2).course;i.R7$(2),i.Lme("",i.bMT(3,5,"address"),"",i.bMT(4,7,"typography.colon"),""),i.R7$(4),i.E5c("",d.campusCity,"",i.bMT(7,9,"typography.comma"),"",d.companyName,"")}}function st(r,p){if(1&r&&(i.j41(0,"p",22)(1,"strong"),i.EFF(2),i.nI1(3,"translate"),i.nI1(4,"titlecase"),i.nI1(5,"translate"),i.k0s(),i.j41(6,"span"),i.EFF(7),i.k0s()()),2&r){const d=i.XpG(2).course;i.R7$(2),i.Lme("",i.bMT(4,5,i.bMT(3,3,"students")),"",i.bMT(5,7,"typography.colon"),""),i.R7$(5),i.JRh(d.numberOfStudents)}}function at(r,p){if(1&r&&(i.j41(0,"strong"),i.EFF(1),i.k0s(),i.DNE(2,it,7,7,"p",22)(3,nt,8,9,"p",22)(4,ot,8,11,"p",22)(
15,st,8,9,"p",22)),2&r){const d=i.XpG().course;i.R7$(),i.JRh(d.title),i.R7$(),i.vxM(d.language?2:-1),i.R7$(),i.vxM(d.startDate?3:-1),i.R7$(),i.vxM("groep"===d.type&&d.campusCity?4:-1),i.R7$(),i.vxM("thuis"===d.type?5:-1)}}function h(r,p){if(1&r&&(i.j41(0,"div",18),i.nrm(1,"img",19),i.nI1(2,"generateFastImage"),i.nI1(3,"generateImage"),i.k0s(),i.j41(4,"div",20),i.DNE(5,et,2,1,"strong",21)(6,at,6,5),i.k0s()),2&r){const d=p.course,f=i.XpG();i.R7$(),i.Y8G("src",i.bMT(2,3,null==d?null:d.imgPath)||i.bMT(3,5,d),i.B4B),i.R7$(3),i.Y8G("ngClass",f.isStudent?"flex-row":"flex-column"),i.R7$(),i.vxM(f.isStudent?5:6)}}let I=(()=>{var r;class p{constructor(){this.router=(0,i.WQX)(A.Ix),this.data=(0,i.WQX)(j.y2),this.coursesService=(0,i.WQX)($._),this.eCampusService=(0,i.WQX)(l.u),this.teacherService=(0,i.WQX)(a.O),this.translateService=(0,i.WQX)(m.c$),this.breakpointObserver=(0,i.WQX)(D.QP),this.dialogRef=(0,i.WQX)(P.CP),this.courses=[],this.hasCourses=!0,this.isCourseBook=!1,this.isStudent=!1,this.isLoading=!0,this.showWarningNoMaterials=!1,this.teacherGroupCourse="",this.BASE_ROUTE="teacher/ecampus",this.destroy$=new R.B,this.DESKTOP_WIDTH="500px",this.MOBILE_WIDTH="90vw",this.BASE_STUDENT_ROUTE="/student/ecampus/course/"}ngOnInit(){const{page:f,entity:E,from:O}=this.data;this.page=f,this.isCourseBook="book"===this.page,(E===T.Ed.student||"home"===O)&&(this.isStudent=!0,this.BASE_ROUTE=this.BASE_STUDENT_ROUTE),this.isStudent?this.requestStudentData():this.requestTeacherData(),this.breakpointObserver.observe(["(max-width: 500px)"]).pipe((0,M.T)(W=>W.matches),(0,U.Q)(this.destroy$)).subscribe(W=>{const Q=new P.ru;Q.width=W?this.MOBILE_WIDTH:this.DESKTOP_WIDTH,this.data.dialogRef.updateSize(Q.width)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}openCourseBook(f){this.data.dialogRef.close(),this.coursesService.openCourseBookOrChapter(f)}handleChoice(f){this.isStudent?(this.router.navigate([this.BASE_ROUTE,f,this.page]),this.dialogRef.close()):this.teacherService.getTeacherCourseDetails(f).pipe((0,M.T)(E=>{var O;return null==E||null===(O=E.body)||void 0===O?void 0:O.data}),(0,U.Q)(this.destroy$)).subscribe(E=>{this.teacherService.setCurrentCourse(E),this.router.navigate("course"===this.page?[this.BASE_ROUTE,f]:[this.BASE_ROUTE,this.page,f]),this.dialogRef.close()})}requestStudentData(){this.eCampusService.getEloUserCourses().pipe((0,M.T)(f=>{var E;const O=(null==f||null===(E=f.body)||void 0===E?void 0:E.data)||[];switch(this.page){case"virtual-room":return O.filter(W=>W.zoomUrl);case"book":return O.filter(W=>!!+W.courseBook);default:return O}}),(0,g.W)(f=>(0,b.of)([])),(0,U.Q)(this.destroy$)).subscribe(f=>this.handleCourses(f))}requestTeacherData(){this.teacherService.getTeacherCourses().pipe((0,F.n)(f=>{var E;const O=(null==f||null===(E=f.body)||void 0===E?void 0:E.data)||[];switch(this.page){case"virtual-room":const W=O.filter(H=>"virtual"===H.subtype||1==+H.activeOnline);return(0,b.of)(W);case"attend":const Q=O.filter(H=>"groep"===H.type);return(0,b.of)(Q);case"materials":const lt=O.map(H=>this.teacherService.getCourseMaterials(H.id).pipe((0,M.T)(X=>{var rt;return(null==X||null===(rt=X.body)||void 0===rt?void 0:rt.data)||null}),(0,M.T)(X=>{if(X)return(0,t.A)((0,t.A)({},H),{},{materials:X})}),(0,g.W)(X=>(0,b.of)(null))));return(0,N.p)(lt);default:return(0,b.of)(O)}}),(0,M.T)(f=>f.filter(Boolean)),(0,g.W)(f=>(0,b.of)([])),(0,U.Q)(this.destroy$)).subscribe(f=>this.handleCourses(f))}handleCourses(f){f.length?(this.courses=this.isStudent?f:this.createCourseTitle(f),this.isLoading=!1):this.handleNoCourses()}handleNoCourses(){this.courses=[],this.hasCourses=!1,this.setHeaderClass(),this.isLoading=!1,"virtual-room"===this.page&&(this.isStudent?this.router.navigate([s.Hm.CUR]):this.teacherGroupCourse="courseTypeVirtual"),this.isStudent||("attend"===this.page&&(this.teacherGroupCourse="groupOrVirtual"),"materials"===this.page&&(this.showWarningNoMaterials=!0))}createCourseTitle(f){return f.map(E=>
1{let O="virtual";return E.type===T.q1.home&&(O="cpHomeCourseType"),E.type===T.q1.group&&E.subtype!==T.q1.virtual&&0==+E.activeOnline&&(O="cpGroupCourseType"),(0,t.A)((0,t.A)({},E),{},{title:"".concat(E.courseName," (").concat(this.translateService.instant(O),")")})})}setHeaderClass(){const{dialogOptions:f}=this.data.dialogRef.componentInstance;f.header="",f.headerClasses="alert-primary mb-0"}}return(r=p).\u0275fac=function(f){return new(f||r)},r.\u0275cmp=i.VBU({type:r,selectors:[["app-select-course-dialog"]],decls:9,vars:9,consts:[["courseCard",""],["mat-dialog-title","",3,"ngClass"],[1,"text-left"],["matDialogClose","",1,"text-color","fa-solid","fa-xmark"],["mat-dialog-content","",1,"select-course-container",3,"ngClass"],[1,"position-relative"],["mat-dialog-content","",1,"d-flex","flex-row","align-center","py-4","px-2"],["matDialogClose","",1,"course-box","my-3","mat-elevation-z3"],[1,"course-box","my-3","mat-elevation-z3"],["matDialogClose","",1,"course-box","my-3","mat-elevation-z3",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"course-box","my-3","mat-elevation-z3",3,"click"],[1,"d-flex","justify-content-center","align-items-center"],[1,"fa","fa-exclamation-triangle"],[1,"d-flex","flex-column","justify-content-center","align-items-center","w-100","text-center"],[1,"text-center","px-2"],[1,"m-0",3,"innerHTML"],["matDialogClose","",1,"underline",3,"routerLink"],[1,"image-container"],["alt","","appOnErrorImage","",3,"src"],[1,"col-9","d-flex","pt-1",3,"ngClass"],[1,"align-self-center"],[1,"p-line"],[1,"text-info"]],template:function(f,E){1&f&&(i.j41(0,"div",1),i.DNE(1,K,4,5,"h5",2),i.nrm(2,"i",3),i.k0s(),i.j41(3,"div",4),i.DNE(4,J,1,0,"app-inner-loader",5)(5,Y,2,0)(6,tt,5,1,"div",6),i.k0s(),i.DNE(7,h,7,7,"ng-template",null,0,i.C5r)),2&f&&(i.Y8G("ngClass",i.eq3(5,y,!E.hasCourses)),i.R7$(),i.vxM(E.hasCourses?1:-1),i.R7$(2),i.Y8G("ngClass",i.eq3(7,L,!E.hasCourses)),i.R7$(),i.vxM(E.isLoading?4:-1),i.R7$(),i.vxM(E.hasCourses?5:6))},dependencies:[e.YU,e.T3,A.Wk,P.tx,P.BI,P.Yi,n.H,o.e,e.PV,m.D9,u.z,_.l,v.p,C.O],styles:[".select-course-container[_ngcontent-%COMP%]{width:var(--size-100-percent);padding:var(--space-0) var(--space-15px);min-height:var(--size-80px)}.course-box[_ngcontent-%COMP%]{display:flex;flex-direction:row;color:var(--color-text)}.course-box[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:var(--size-100px);height:var(--size-100px);display:inline-block;margin-right:var(--space-5px);border:var(--border-xxs-solid-tint-4);object-fit:cover}.course-box[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:var(--space-0);font-size:var(--font-size-81)}.p-line[_ngcontent-%COMP%]{margin-bottom:var(--space-2px)}\n\n/*# sourceMappingURL=select-course-dialog.component.css.map*/"]}),p})()},39096:(B,S,c)=>{"use strict";c.d(S,{H:()=>at});var t=c(68559),D=c(48503),i=c(84205),P=c(63037),A=c(70271),m=c(98764),R=c(33900),M=c(32496),U=c(40982),g=c(60316),b=c(34456),F=c(84175),N=c(95541),T=c(24950),$=c(25175),j=c(85060),l=c(79771),a=c(61977),s=c(79975),e=c(2238),n=c(27583);const o=h=>({height:h});function u(h,I){1&h&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&h&&(t.R7$(),t.JRh(t.bMT(2,1,"formValidation.dateValidationUsers")))}function _(h,I){if(1&h&&t.nrm(0,"i",7),2&h){const r=t.XpG(2);t.Mz_("ngClass","fa-",r.icon(),"")}}function v(h,I){if(1&h){const r=t.RV6();t.j41(0,"button",9),t.bIt("click",function(){t.eBV(r);const d=t.XpG(2);return t.Njj(d.onClear())}),t.nrm(1,"i",10),t.k0s()}}function C(h,I){if(1&h){const r=t.RV6();t.j41(0,"mat-form-field")(1,"mat-label"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"input",4,0),t.bIt("focus",function(){t.eBV(r);const d=t.sdS(10);return t.Njj(null==d?null:d.open())}),t.k0s(),t.j41(6,"mat-hint"),t.EFF(7),t.k0s(),t.nrm(8,"mat-datepicker-toggle",5)(9,"mat-datepicker",6,1),t.DNE(11,u,3,3,"mat-error")(12,_,1,2,"i",7)(13,v,2,0,"button",8),t.k0s()}if(2&h){const r=t.sdS(10),p=t.XpG();t.R7$(2),t.JRh(t.bMT(3,11,p.label())),t.R7$(2),t.Y8G("matDatepicker",r)("formControlName",p.control())("min",p.dateOptions().minSelectableDate)("max",p.dateOptions().maxSelectableDate),t.R7$(3),t.JRh(p.DATEFORMATS.display.date),t.R7$(),t.Y8G("for",r),t.R7$(),t.Y8G("touchUi",p.dateOptions().enableTouchUI),t.R7$(2),t.vxM(null!=p.formControl.errors&&p.formControl.errors.dateValidation?11:-1),t.R7$(),t.vxM(p.icon()?12:-1),t.R7$(),t.vxM(p.canClear()&&p.formControl.value?13:-1)}}function y(h,I){if(1&h&&(t.j41(0,"mat-option",13),t.EFF(1),t.k0s()),2&h){const r=I.$implicit;t.Y8G("value",r.value),t.R7$(),t.SpI(" ",r.label," ")}}function L(h,I){if(1&h&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&h){const r=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,1,r.validationText))}}function w(h,I){if(1&h&&t.nrm(0,"i",7),2&h){const r=t.XpG(2);t.Mz_("ngClass","fa-",r.icon(),"")}}function k(h,I){if(1&h){const r=t.RV6();t.j41(0,"button",9),t.bIt("click",function(){t.eBV(r);const d=t.XpG(2);return t.Njj(d.onClear())}),t.nrm(1,"i",10),t.k0s()}}function x(h,I){if(1&h&&(t.j41(0,"mat-form-field")(1,"mat-label",11),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"mat-select",12),t.Z7z(5,y,2,2,"mat-option",13,t.fX1),t.k0s(),t.DNE(7,L,3,3,"mat-error")(8,w,1,2,"i",7)(9,k,2,0,"button",8),t.k0s()),2&h){const r=t.XpG();t.R7$(2),t.JRh(t.bMT(3,6,r.label())),t.R7$(2),t.Y8G("formControlName",r.control())("name",r.label()),t.R7$(),t.Dyx(r.selectOptions()),t.R7$(2),t.vxM(r.validationError?7:-1),t.R7$(),t.vxM(r.icon()?8:-1),t.R7$(),t.vxM(r.canClear()&&r.formControl.value?9:-1)}}function K(h,I){if(1&h&&(t.j41(0,"mat-option",13)(1,"span"),t.EFF(2),t.k0s()()),2&h){const r=I.$implicit;t.Y8G("value",r),t.R7$(2),t.JRh(r.label)}}function J(h,I){1&h&&(t.j41(0,"mat-option",18),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&h&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"noResultsFound")," "))}function G(h,I){if(1&h&&(t.DNE(0,K,3,2,"mat-option",17),t.nI1(1,"trackBy"),t.DNE(2,J,3,3,"mat-option",18)),2&h){const r=I;t.Y8G("cdkVirtualForOf",r)("cdkVirtualForTrackBy",t.bMT(1,3,null)),t.R7$(2),t.vxM(null!=r&&r.length?-1:2)}}function V(h,I){if(1&h&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&h){const r=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,1,r.validationText))}}function z(h,I){if(1&h&&t.nrm(0,"i",7),2&h){const r=t.XpG(2);t.Mz_("ngClass","fa-",r.icon(),"")}}function Y(h,I){if(1&h){const r=t.RV6();t.j41(0,"button",9),t.bIt("click",function(){t.eBV(r);const d=t.XpG(2);return t.Njj(d.onClear())}),t.nrm(1,"i",10),t.k0s()}}function Z(h,I){if(1&h&&(t.j41(0,"mat-form-field")(1,"mat-label"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"input",14),t.nI1(5,"translate"),t.j41(6,"mat-autocomplete",15,2)(8,"cdk-virtual-scroll-viewport",16),t.DNE(9,G,3,5),t.nI1(10,"async"),t.k0s()(),t.DNE(11,V,3,3,"mat-error")(12,z,1,2,"i",7)(13,Y,2,0,"button",8),t.k0s()),2&h){let r;const p=t.sdS(7),d=t.XpG();t.R7$(2),t.JRh(t.bMT(3,10,d.label())),t.R7$(2),t.FS9("placeholder",t.bMT(5,12,"searchLabel")),t.Y8G("formControlName",d.control())("matAutocomplete",p),t.R7$(2),t.Y8G("displayWith",d.onDisplayValue),t.R7$(2),t.Y8G("ngStyle",t.eq3(16,o,d.height)),t.R7$(),t.vxM((r=t.bMT(10,14,d.results$))?9:-1,r),t.R7$(2),t.vxM(d.val
1idationError?11:-1),t.R7$(),t.vxM(d.icon()?12:-1),t.R7$(),t.vxM(d.canClear()&&d.formControl.value?13:-1)}}function q(h,I){if(1&h&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&h){const r=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,1,r.validationText))}}function tt(h,I){1&h&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&h&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"formValidation.noStartingSpaces")," "))}function et(h,I){1&h&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&h&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"formValidation.consecSpaces")," "))}function it(h,I){if(1&h&&(t.j41(0,"mat-error"),t.DNE(1,tt,3,3,"span")(2,et,3,3,"span"),t.k0s()),2&h){const r=t.XpG(2);t.R7$(),t.vxM(r.formControl.errors.noStartingSpaces?1:-1),t.R7$(),t.vxM(r.formControl.errors.consecutiveSpaces?2:-1)}}function nt(h,I){if(1&h&&t.nrm(0,"i",7),2&h){const r=t.XpG(2);t.Mz_("ngClass","fa-",r.icon(),"")}}function ot(h,I){if(1&h){const r=t.RV6();t.j41(0,"button",9),t.bIt("click",function(){t.eBV(r);const d=t.XpG(2);return t.Njj(d.onClear())}),t.nrm(1,"i",10),t.k0s()}}function st(h,I){if(1&h&&(t.j41(0,"mat-form-field")(1,"mat-label"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"input",19),t.DNE(5,q,3,3,"mat-error")(6,it,3,2,"mat-error")(7,nt,1,2,"i",7)(8,ot,2,0,"button",8),t.k0s()),2&h){const r=t.XpG();t.R7$(2),t.JRh(t.bMT(3,7,r.label())),t.R7$(2),t.Y8G("type",r.type())("formControlName",r.control())("id",r.label()),t.R7$(),t.vxM(r.validationError?5:r.formControl.errors?6:-1),t.R7$(2),t.vxM(r.icon()?7:-1),t.R7$(),t.vxM(r.canClear()&&r.formControl.value?8:-1)}}let at=(()=>{var h;class I{constructor(){this.translateService=(0,t.WQX)(D.c$),this.helperService=(0,t.WQX)(U.w),this.icon=(0,t.hFB)(),this.label=(0,t.hFB)(),this.control=(0,t.hFB)(),this.type=(0,t.hFB)("text"),this.validation=(0,t.hFB)(),this.form=(0,t.hFB)(),this.dateOptions=(0,t.hFB)(),this.selectOptions=(0,t.hFB)(),this.visible=(0,t.hFB)(),this.disabled=(0,t.hFB)(),this.canClear=(0,t.hFB)(!1),this.DATEFORMATS=M.x,this.validationError=!1,this.destroy$=new i.B}ngOnInit(){"auto-complete"===this.type()&&(this.results$=this.formControl.valueChanges.pipe((0,P.Z)(""),(0,A.T)(p=>"string"==typeof p?p:p.label),(0,A.T)(p=>p?this.filter(p):this.selectOptions().slice()),(0,m.M)(p=>{this.height=this.helperService.calculateOptionListHeight(p.length)}),(0,R.Q)(this.destroy$))),this.checkValidation(),this.formControl.valueChanges.pipe((0,R.Q)(this.destroy$)).subscribe(p=>{this.checkValidation()})}get formControl(){return this.form().get(this.control())}onDisplayValue(p){return(null==p?void 0:p.label)||""}filter(p){const d=p.toLowerCase();return this.selectOptions().filter(f=>f.label.toLowerCase().includes(d))}checkValidation(){const p=this.formControl;if(this.validationError=!0,p.invalid&&p.errors){const{errors:d}=p;if(d.required)return this.validationText=this.translateService.instant(this.validation()||"formValidation.required"),void p.markAsTouched();if(p.errors.maxlength)return void(this.validationText=this.translateService.instant("formValidation.tooLong",{max:p.errors.maxlength.requiredLength}));if(d.minlength)return void(this.validationText="formValidation.tooShort");if(d.pattern)return void(this.validationText="formValidation.specialCharacter");if(d.foundCountry)return void(this.validationText="formValidation.countryNotFound")}this.validationError=!1}onClear(){this.formControl.patchValue("")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(h=I).\u0275fac=function(p){return new(p||h)},h.\u0275cmp=t.VBU({type:h,selectors:[["app-custom-input"]],inputs:{icon:[1,"icon"],label:[1,"label"],control:[1,"control"],type:[1,"type"],validation:[1,"validation"],form:[1,"form"],dateOptions:[1,"dateOptions"],selectOptions:[1,"selectOptions"],visible:[1,"visible"],disabled:[1,"disabled"],canClear:[1,"canClear"]},decls:5,vars:2,consts:[["dateValue",""],["picker",""],["auto","matAutocomplete"],[3,"formGroup"],["matInput","","readonly","",3,"focus","matDatepicker","formControlName","min","max"],["matIconSuffix","",3,"for"],[3,"touchUi"],["matPrefix","",1,"fas","fa-fw",3,"ngClass"],["type","button","input-action","","matSuffix","","mat-icon-button","","aria-label","Clear"],["type","button","input-action","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[1,"fas","fa-xmark","text-color"],["appRemoveAriaOwns",""],[3,"formControlName","name"],[3,"value"],["matInput","","type","text",3,"formControlName","placeholder","matAutocomplete"],["hideSingleSelectionIndicator","true",3,"displayWith"],["itemSize","48","minBufferPx","240","maxBufferPx","480",3,"ngStyle"],[3,"value",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],["disabled","",1,"autocomplete-option","no-results"],["matInput","",3,"type","formControlName","id"]],template:function(p,d){if(1&p&&(t.qex(0,3),t.DNE(1,C,14,13,"mat-form-field")(2,x,10,8,"mat-form-field")(3,Z,14,18,"mat-form-field")(4,st,9,9,"mat-form-field"),t.bVm()),2&p){let f;t.Y8G("formGroup",d.form()),t.R7$(),t.vxM("date"===(f=d.type())?1:"select"===f?2:"auto-complete"===f?3:4)}},dependencies:[g.YU,g.B3,b.me,b.BC,b.cb,b.j4,b.JD,F.iY,N.fg,T.rl,T.nJ,T.MV,T.TL,T.JW,T.yw,$.VO,j.wT,l.$3,l.pN,a.Vh,a.bZ,a.b
1U,s.yg,s.E$,s.d6,e.K,g.Jj,D.D9,n.t],styles:[".no-icon[_ngcontent-%COMP%]{grid-template-columns:1fr}  .privacy-text p,   .privacy-text span,   .privacy-text strong,   .privacy-text li{color:var(--color-text)!important}\n\n/*# sourceMappingURL=custom-input.component.css.map*/"]}),I})()},20075:(B,S,c)=>{"use strict";c.d(S,{D:()=>l});var t=c(34456),D=c(18695),i=c.n(D),P=c(84205),A=c(33900),m=c(68559),R=c(48503),M=c(60316),U=c(95541),g=c(24950);const b=["telInput"],F=a=>({"no-icon":a});function N(a,s){1&a&&(m.j41(0,"span"),m.EFF(1),m.nI1(2,"translate"),m.k0s()),2&a&&(m.R7$(),m.SpI(" ",m.bMT(2,1,"formValidation.phone")," "))}function T(a,s){1&a&&(m.j41(0,"span"),m.EFF(1),m.nI1(2,"translate"),m.k0s()),2&a&&(m.R7$(),m.SpI(" ",m.bMT(2,1,"formValidation.phoneNumber")," "))}function $(a,s){if(1&a&&(m.j41(0,"mat-error"),m.DNE(1,N,3,3,"span",4)(2,T,3,3,"span",4),m.k0s()),2&a){const e=m.XpG();m.R7$(),m.Y8G("ngIf",e.formControl.errors.required),m.R7$(),m.Y8G("ngIf",e.formControl.errors.phoneNumber)}}function j(a,s){if(1&a&&m.nrm(0,"i",6),2&a){const e=m.XpG();m.Mz_("ngClass","fa-",e.icon,"")}}let l=(()=>{var a;class s{constructor(n){this.translateService=n,this.destroy$=new P.B}ngOnInit(){this.isRequired=this.formControl.hasValidator(t.k0.required)?"*":null,this.formControl.valueChanges.pipe((0,A.Q)(this.destroy$)).subscribe(n=>{this.checkValidation()})}ngAfterViewInit(){const[n]=this.translateService.getDefaultLang().split("_"),o=n.toLocaleLowerCase(),u="en"===o?"gb":o;this.iti=i()(this.telInput.nativeElement,{utilsScript:"assets/scripts/utils.js",initialCountry:u,preferredCountries:["be","fr","nl","gb","bg"],nationalMode:!1,formatOnDisplay:!1,dropdownContainer:document.body}),this.formatIntlTelInput(),this.telInput.nativeElement.addEventListener("countrychange",this.onCountryChange.bind(this)),this.checkValidation()}get formControl(){return this.form.get(this.controlName)}checkValidation(){if(this.iti){if(!this.iti.isValidNumber())return this.formControl.setErrors({phoneNumber:!0});if(this.formatIntlTelInput(),this.iti.isValidNumber()){const n=this.getPhoneNumberFormat();this.iti.setNumber(n),this.formControl.patchValue(n,{emitEvent:!1})}}}formatIntlTelInput(){this.iti.setNumber(this.getPhoneNumberFormat())}getPhoneNumberFormat(){if(typeof intlTelInputUtils<"u"){const n=this.iti.getNumber(intlTelInputUtils.numberFormat.E164);return"string"==typeof n?n:""}}onCountryChange(){this.checkValidation()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.telInput&&this.telInput.nativeElement.removeEventListener("countrychange",this.onCountryChange.bind(this))}}return(a=s).\u0275fac=function(n){return new(n||a)(m.rXU(R.c$))},a.\u0275cmp=m.VBU({type:a,selectors:[["app-phone-number"]],viewQuery:function(n,o){if(1&n&&m.GBs(b,5),2&n){let u;m.mGM(u=m.lsd())&&(o.telInput=u.first)}},inputs:{form:"form",controlName:"controlName",label:"label",icon:"icon"},decls:9,vars:10,consts:[["telInput",""],[1,"phone-input",3,"formGroup","ngClass"],["floatLabel","always"],["type","tel","matInput","","id","phoneNumber",3,"formControlName"],[4,"ngIf"],["matPrefix","","class","fas fa-fw",3,"ngClass",4,"ngIf"],["matPrefix","",1,"fas","fa-fw",3,"ngClass"]],template:function(n,o){1&n&&(m.j41(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),m.EFF(3),m.nI1(4,"translate"),m.k0s(),m.nrm(5,"input",3,0),m.DNE(7,$,3,2,"mat-error",4)(8,j,1,2,"i",5),m.k0s()()),2&n&&(m.Y8G("formGroup",o.form)("ngClass",m.eq3(8,F,!o.icon)),m.R7$(3),m.JRh(m.bMT(4,6,o.label)),m.R7$(2),m.Y8G("formControlName",o.controlName),m.R7$(2),m.Y8G("ngIf",o.formControl.errors),m.R7$(),m.Y8G("ngIf",o.icon))},dependencies:[M.YU,M.bT,t.me,t.BC,t.cb,t.j4,t.JD,U.fg,g.rl,g.nJ,g.TL,g.JW,R.D9],styles:[".no-icon[_ngcontent-%COMP%]{grid-template-columns:1fr}.iti__flag[_ngcontent-%COMP%]{background-image:url(flags.f0b93e1814fdd027.png)}@media (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){.iti__flag[_ngcontent-%COMP%]{background-image:url([email protected])}}  .iti{display:block}#phoneNumber[_ngcontent-%COMP%]{width:var(--size-100-percent)}\n\n/*# sourceMappingURL=phone-number.component.css.map*/"]}),s})()},16453:(B,S,c)=>{"use strict";c.d(S,{B:()=>m});var t=c(46443),D=c(45312),i=c(68559),P=c(28404),A=c(55327);let m=(()=>{var R;class M{constructor(g,b,F){this.http=g,this.configService=b,this.websiteService=F,this.siteId=D.M.websiteId,this.CDO_URL=this.configService.getCdoUrl(),this.COMPANY_URL="".concat(this.CDO_URL,"company")}getCompanyId(){const g="".concat(this.COMPANY_URL,"/get_company_id_by_site_id/").concat(this.siteId);return this.http.get(g)}getCompanyFaq(){const g="".concat(this.COMPANY_URL,"/get_company_faq/").concat(this.siteId);return this.http.get(g)}getCompanyFaqWithCategories(g){const b="".concat(this.CDO_URL,"api/faq/all/company/").concat(g);return this.http.get(b)}getCompanyLegalInfo(g){const b="".concat(this.COMPANY_URL,"/get_company_legal_info/").concat(this.siteId,"/").concat(g);return this.http.get(b)}getCompanyCommercialInfo(g){const b="".concat(this.COMPANY_URL,"/get_company_commercial_info/").concat(this.siteId,"/").concat(g);return this.http.get(b)}getCompanyContact(){const g="".concat(this.COMPANY_URL,"/get_company_contact/").concat(this.siteId);return this.http.get(g)}getCertificate(g){const b="".concat(this.COMPANY_URL,"/get_certificates/").concat(g);return this.http.get(b)}getCompanyDataBySiteId(){const g="".concat(this.COMPANY_URL,"/get_company_data_by_site_id/").concat(this.siteId);return this.http.get(g)}getCompanyMovies(){const g="".concat(this.CDO_URL,"api/company/movies?website=").concat(this.siteId,"&language=").concat(this.websiteService.getLang());return this.http.get(g,{observe:"response"})}getCompanyTypes(){const g=new t.Lr({"Accept-Language":this.websiteService.getLang()}),b="".concat(this.COMPANY_URL,"/get_company_types");return this.http.get(b,{headers:g,observe:"response"})}}return(R=M).\u0275fac=function(g){return new(g||R)(i.KVO(t.Qq),i.KVO(P.w),i.KVO(A.j))},R.\u0275prov=i.jDH({token:R,factory:R.\u0275fac,providedIn:"root"}),M})()},66643:(B,S,c)=>{"use strict";c.d(S,{O:()=>N});var t=c(90954),D=c(46443),i=c(75797),P=c(59452),A=c(98764),m=c(61318),R=c(32496),M=c(62849),U=c(45312),g=c(68559),b=c(28404),F=c(55327);let N=(()=>{var T;class ${constructor(l,a,s){this.http=l,this.configService=a,this.websiteService=s,this.courseSubject=ne
1w i.t(null),this.fullscreenSubject=new i.t(!1),this.backBtnTextSubject=new i.t(""),this.backBtnRouteSubject=new i.t(null),this.backBtnClickedSubject=new i.t(!1),this.assignmentPreviewIsolation=new i.t(!1),this.getImportMessageUrl=e=>"".concat(this.ELO_COURSE_URL,"/").concat(e,"/message"),this.CDO_URL=this.configService.getCdoUrl(),this.CDO_TEACHER_URL="".concat(this.CDO_URL,"teacher"),this.ELO_URL="".concat(this.CDO_URL,"api"),this.ELO_COURSE_URL="".concat(this.ELO_URL,"/course"),this.ELO_MEDIA_URL="".concat(this.ELO_URL,"/media"),this.ELO_TEACHER_URL="".concat(this.ELO_URL,"/teacher"),this.siteId=U.M.websiteId}setBackBtnText(l){this.backBtnTextSubject.next(l)}getBackBtnText(){return this.backBtnTextSubject.asObservable()}setBackBtnClicked(l){this.backBtnClickedSubject.next(l)}getBackBtnClicked(){return this.backBtnClickedSubject.asObservable()}setBackBtnRoute(l){this.backBtnRouteSubject.next(l)}getBackBtnRoute(){return this.backBtnRouteSubject.asObservable()}getAssignmentPreviewIsolation(){return this.assignmentPreviewIsolation.asObservable()}setAssignmentPreviewIsolation(l){this.assignmentPreviewIsolation.next(l)}setCurrentCourse(l){this.courseSubject.next(l)}resetCurrentCourse(){this.courseSubject.next(null)}getCurrentCourse(){return this.courseSubject.asObservable()}getCurrentCourseId(){var l;return null===(l=this.courseSubject.getValue())||void 0===l?void 0:l.id}getCurrentCourseType(){var l;return null===(l=this.courseSubject.getValue())||void 0===l?void 0:l.type}setFullScreen(l){this.fullscreenSubject.next(l)}getFullScreen(){return this.fullscreenSubject.asObservable()}setCourses(l){this.courses=l}getCourses(){return this.courses}getTeacher(l){const a="".concat(this.CDO_TEACHER_URL,"/get_teacher/").concat(this.siteId,"/").concat(l,"/").concat(this.websiteService.getLang());return this.http.get(a,{observe:"response"})}getEloLoginLink(){const l="".concat(this.ELO_TEACHER_URL,"/elo_token?websiteId=").concat(this.siteId);return this.http.get(l)}getTeacherCourses(){const l="".concat(this.ELO_TEACHER_URL,"/courses");return this.http.get(l,{observe:"response"})}getTeacherCourseDetails(l){const a="".concat(this.ELO_COURSE_URL,"/details/").concat(l),s=new D.Lr({Version:"3"});return this.http.get(a,{headers:s,observe:"response"})}getCourseMaterials(l){const a="".concat(this.ELO_URL,"/material/list?courseId=").concat(l);return this.http.get(a,{observe:"response"})}getTeacherPreferences(){const l="".concat(this.ELO_TEACHER_URL,"/preferences"),a=new D.Lr({"Accept-Language":this.websiteService.getLang()});return this.http.get(l,{headers:a,observe:"response"})}getTeacherCompanyInfo(){const l="".concat(this.ELO_TEACHER_URL,"/company"),a=new D.Lr({Version:"2"});return this.http.get(l,{headers:a,observe:"response"})}patchTeacherCompanyInfo(l){const a="".concat(this.ELO_TEACHER_URL,"/company"),s=new D.Lr({Version:"2"});return this.http.patch(a,l,{headers:s})}getCVTab(l,a,s){let e=new D.Lr({"Accept-Language":this.websiteService.getLang()}),n="";1===l?n="entrepreneurial":2===l?n="work_experience":3===l?n="education":4===l?(n="availability",e=e.append("Version","2")):5===l?n="presentation":6===l&&(n="entrepreneurial/files");const o="".concat(this.ELO_TEACHER_URL,"/").concat(n);return"get"===a?this.http.get(o,{headers:e,observe:"response"}):"put"===a?this.http.put(o,JSON.stringify(s),{headers:e,observe:"response"}):"post"===a?this.http.post(o,s,{headers:e,observe:"response"}):void 0}getTeacherFolderContents(l,a,s){a=a||0;const e="".concat(this.ELO_COURSE_URL,"/").concat(l,"/document-folder/").concat(a,"/content?type=").concat(s);return this.http.get(e,{observe:"response"})}getTeacherFolders(l,a){const s="".concat(this.ELO_COURSE_URL,"/").concat(l,"/document-folder?type=").concat(a);return this.http.get(s,{observe:"response"})}addTeacherMedia(l,a){const s="".concat(this.ELO_COURSE_URL,"/").concat(l,"/weblink");return this.http.post(s,a,{observe:"response"})}patchTeacherMedia(l,a,s){const e="".concat(this.ELO_COURSE_URL,"/").concat(l,"/weblink/").concat(a);return this.http.patch(e,s,{observe:"response"})}removeTeacherMedia(l,a){const s="".concat(this.ELO_COURSE_URL,"/").concat(l,"/weblink/").concat(a);return this.http.delete(s,{observe:"response"})}addTeacherFolder(l,a){const s="".concat(this.ELO_COURSE_URL,"/").concat(l,"/document-folder");return this.http.post(s,a,{observe:"response"})}patchTeacherFolder(l,a,s){const e="".concat(this.ELO_COURSE_URL,"/").concat(l,"/document-folder/").concat(a);return this.http.patch(e,s,{observe:"response"})}removeTeacherFolder(l,a){const s="".concat(this.ELO_COURSE_URL,"/").concat(l,"/document-folder/").concat(a);return this.http.delete(s,{observe:"response"})}getTeacherTutorials(l){const a="".concat(this.ELO_COURSE_URL,"/").concat(l,"/media");return this.http.get(a,{observe:"response"})}getTeacherTutorial(l,a){const s="".concat(this.ELO_MEDIA_URL,"/").concat(l,"/").concat(a);return this.http.get(s,{observe:"response"})}addTeacherTutorial(l,a){const s="".concat(this.ELO_MEDIA_URL,"/").concat(l);return this.http.post(s,a,{observe:"response"})}patchTeacherTutorial(l,a,s){const e="".concat(this.ELO_MEDIA_URL,"/").concat(l,"/").concat(a);return this.http.patch(e,s,{observe:"response"})}removeTeacherTutorial(l,a){const s="".concat(this.ELO_MEDIA_URL,"/").concat(l,"/").concat(a);return this.http.delete(s,{observe:"response"})}
1getTeacherStatus(l){const a="".concat(this.ELO_TEACHER_URL,"/").concat(l,"/statuses");return this.http.get(a,{observe:"response"})}getTeacherPresenceList(l){const a="".concat(this.ELO_COURSE_URL,"/attendance"),s=(new D.Nl).set("courseAgendaId","".concat(l)),e=new D.Lr({"Accept-Language":this.websiteService.getLang()});return this.http.get(a,{headers:e,observe:"response",params:s})}patchAttendancy(l,a,s){const e="".concat(this.ELO_COURSE_URL,"/attendance");return this.http.patch(e,{courseAgendaId:l,studentId:a,status:s})}getImportantMessage(l,a){const s="".concat(this.getImportMessageUrl(l),"/").concat(a);return this.http.get(s)}postImportantMessage(l,a){const s="".concat(this.getImportMessageUrl(l));return this.http.post(s,{message:a}).pipe((0,A.M)(e=>{const{message:n,courseId:o,id:u}=e.data;this.courseSubject.next((0,t.A)((0,t.A)({},this.courseSubject.value),{},{importantMessages:[{message:n,courseId:o,id:u,dateCreated:(0,M.I1)().format(R.x.iso.date)},...this.courseSubject.value.importantMessages]}))}),(0,m.W)(e=>(0,P.of)(e)))}patchImportantMessage(l,a,s){const e="".concat(this.getImportMessageUrl(l),"/").concat(a);return this.http.patch(e,{message:s}).pipe((0,A.M)(()=>{this.courseSubject.next((0,t.A)((0,t.A)({},this.courseSubject.value),{},{importantMessages:this.courseSubject.value.importantMessages.map(n=>n.id===a?(0,t.A)((0,t.A)({},n),{},{message:s}):n)}))}),(0,m.W)(n=>(0,P.of)(n)))}deleteImportantMessage(l,a){const s="".concat(this.getImportMessageUrl(l),"/").concat(a);return this.http.delete(s).pipe((0,A.M)(e=>{const{success:n}=e;n&&this.courseSubject.next((0,t.A)((0,t.A)({},this.courseSubject.value),{},{importantMessages:this.courseSubject.value.importantMessages.filter(o=>o.id!==a)}))}),(0,m.W)(e=>(0,P.of)(e)))}postDocument(l,a){let s="".concat(this.ELO_COURSE_URL,"/").concat(a,"/document");const e=l.get("id");return e&&(s="".concat(s,"/").concat(e)),this.http.post(s,l,{observe:"response"})}deleteDocument(l,a){const s="".concat(this.ELO_COURSE_URL,"/").concat(l,"/document/").concat(a);return this.http.delete(s)}copyRecordToCourse(l,a){const s="".concat(this.ELO_URL,"/copies"),e=new D.Lr({"Resource-Type":"course_".concat(l),"Accept-Language":this.websiteService.getLang()});return this.http.post(s,a,{headers:e})}}return(T=$).\u0275fac=function(l){return new(l||T)(g.KVO(D.Qq),g.KVO(b.w),g.KVO(F.j))},T.\u0275prov=g.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),$})()},95352:B=>{var S;S=function(S){"use strict";return function(){for(var c=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua & Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus","by","375"],["Belgium","be","32"],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia & Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros","km","269"],["Congo - Brazzaville","cg","242"],["Congo - Kinshasa","cd","243"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["C\xf4te d\u2019Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Cura\xe7ao","cw","599",0],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]
1],["Dominican Republic","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",0],["France","fr","33"],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong","hk","852"],["Hungary","hu","36"],["Iceland","is","354"],["India","in","91"],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel","il","972"],["Italy","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan","jo","962"],["Kazakhstan","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco","ma","212",0],["Mozambique","mz","258"],["Myanmar (Burma)","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31"],["New Caledonia","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["North Macedonia","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway","no","47",0],["Oman","om","968"],["Pakistan","pk","92"],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63"],["Poland","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar","qa","974"],["R\xe9union","re","262",0],["Romania","ro","40"],["Russia","ru","7",0],["Rwanda","rw","250"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xe3o Tom\xe9 & Pr\xedncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34"],["Sri Lanka","lk","94"],["St Barth\xe9lemy","bl","590",1],["St Helena","sh","290"],["St Kitts & Nevis","kn","1",18,["869"]],["St Lucia","lc","1",19,["758"]],["St Martin","mf","590",2],["St Pierre & Miquelon","pm","508"],["St Vincent & Grenadines","vc","1",20,["784"]],["Sudan","sd","249"],["Suriname","sr","597"],["Svalbard & Jan Mayen","sj","47",1,["79"]],["Sweden","se","46"],["Switzerland","ch","41"],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad & Tobago","tt","1",22,["868"]],["Tunisia","tn","216"],["Turkey","tr","90"],["Turkmenistan","tm","993"],["Turks & Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["US Virgin Islands","vi","1",24,["340"]],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681"],["Western Sahara","eh","212",1,["5288","5289"]],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["\xc5land Islands","ax","358",1,["18"]]],t=0;t<c.length;t++){var D=c[t];c[t]={name:D[0],iso2:D[1],dialCode:D[2],priority:D[3]||0,areaCodes:D[4]||null}}function P(a,s,e){return(s=M(s))in a?Object.defineProperty(a,s,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[s]=e,a}function m(a,s){for(var e=0;e<s.length;e++){var n=s[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,M(n.key),n)}}function M(a){var s=function U(a,s){if("object"!=typeof a||null===a)return a;var e=a[Symbol.toPrimitive];if(e!==S){var n=e.call(a,s||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(a)}(a,"string");return"symbol"==typeof s?s:String(s)}var g={getInstance:function(s){var e=s.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[e]},instances:{},documentReady:function(){return"complete"===document.readyState}};"object"==typeof window&&(window.intlTelInputGlobals=g);var b=0,F={allowDropdown:!0,autoInsertDialCode:!1,autoPlaceholder:"polite",countrySearch:!1,customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!1,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,showFlags:!0,useFullscreenPopup:typeof navigator<"u"&&typeof window<"u"&&(/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500),utilsScript:""},N=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],T=function(s,e){for(var n=Object.keys(s),o=0;o<n.length;o++)e(n[o],s[n[o]])},$=function(s){T(window.intlTelInputGlobals.instances,function(e){window.intlTelInputGlobals.instances[e][s]()})},j=function(){function a(s,e){var n=this;(function A(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")})(this,a),this.id=b++,this.telInput=s,this.activeItem=null,this.highlightedItem=null;var o=e||{};this.options={},T(F,function(u,_){n.options[u]=o.hasOwnProperty(u)?o[u]:_}),this.hadInitialPlaceholder=!!s.getAttribute("placeholder")}return function R(a,s,e){s&&m(a.prototype,s),e&&m(a,e),Object.defineProperty(a,"prototype",{writable:!1})}(a,[{key:"_init",value:function(){var e=this;if(this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),this.options.countrySearch&&!this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!0),this.options.nationalMode&&(this.options.autoInsertDialCode=!1),this.options.separateDialCode&&(this.options.autoInsertDialCode=!1),!this.options.showFlags&&this.options.allowDropdown&&!this.options.separateDialCode&&(this.options.showFlags=!0),this.options.useFullscreenPopup&&!this.options.dropdownContainer&&(this.options.dropdownContainer=document.body),this.isRTL=!!this.telInput.closest("[dir=rtl]"),typeof Promise<"u"){var o=new Promise(function(_,v){e.resolveAutoCountryPromise=_,e.rejectAutoCountryPromise=v}),u=new Promise(function(_,v){e.resolveUtilsScriptPromise=_,e.rejectUtilsScriptPromise=v});this.promise=Promise.all([o,u])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this.options.localizedCountries&&this._translateCountriesByLocale(),(this.options.onlyCountries.length||this.options.localizedCountries)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(e,n,o){n.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=n.length),this.countryCodes.hasOwnProperty(n)||(this.countryCodes[n]=[]);for(var u=0;u<this.countryCodes[n].length;u++)if(this.countryCodes[n][u]===e)return;this.countryCodes[n][o!==S?o:this.countryCodes[n].length]=e}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var e=this.options.onlyCountries.map(function(o){return o.toLowerCase()});this.countries=c.filter(function(o){return e.indexOf(o.iso2)>-1})}else if(this.options.excludeCountries.length){var n=this.options.excludeCountries.map(function(o){return o.toLowerCase()});this.countries=c.filter(function(o){return-1===n.indexOf(o.iso2)})}else this.countries=c}},{key:"_translateCountriesByLocale",value:function(){for(var e=0;e<this.countries.length;e++){var n=this.countries[e].iso2.toLowerCase();this.options.localizedCountries.hasOwnProperty(n)&&(this.countries[e].name=this.options.localizedCountries[n])}}},{key:"_countryNameSort",value:function(e,n){return e.name<n.name?-1:e.name>n.name?1:0}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var e=0;e<this.countries.length;e++){var n=this.countries[e];this.dialCodes[n.dialCode]||(this.dialCodes[n.dialCode]=!0),this._addCountryCode(n.iso2,n.dialCode,n.priority)}for(var o=0;o<this.countries.length;o++){var u=this.countries[o];if(u.areaCodes)for(var _=this.countryCodes[u.dialCode][0],v=0;v<u.areaCodes.length;v++){for(var C=u.areaCodes[v],y=1;y<C.length;y++){var L=u.dialCode+C.substr(0,y);this._addCountryCode(_,L),this._addCountryCode(u.iso2,L)}this._addCountryCode(u.iso2,u.dialCode+C)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var e=0;e<this.options.preferredCountries.length;e++){var n=this.options.preferredCountries[e].toLowerCase(),o=this._getCountryData(n,!1,!0);o&&this.preferredCountries.push(o)}}},{key:"_createEl",value:function(e,n,o){var u=document.createElement(e);return n&&T(n,function(_,v){return u.setAttribute(_,v)}),o&&o.appendChild(u),u}},{key:"_generateMarkup",value:function(){this.telInput.classList.add("iti__tel-input"),!this.telInput.hasAttribute("autocomplete")&&(!this.telInput.form||!this.telInput.form.hasAttribute("autocomplete"))&&this.telInput.setAttribute("autocomplete","off");var e=this.options,n=e.allowDropdown,o=e.separateDialCode,u=e.showFlags,_=e.customContainer,v=e.hiddenInput,C=e.dropdownContainer,y=e.fixDropdownWidth,L=e.useFullscreenPopup,w=e.countrySearch,k="iti";n&&(k+=" iti--allow-dropdown"),o&&(k+=" iti--separate-dial-code"),u&&(k+=" iti--show-flags"),_&&(k+=" ".concat(_));var x=this._createEl("div",{class:k});this.telInput.parentNode.insertBefore(x,this.telInput);var K=n||u||o;if(K&&(this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},x)),x.appendChild(this.telInput),K&&(this.selectedFlag=this._createEl("div",function i(a){for(var s=1;s<arguments.length;s++){var e=null!=arguments[s]?Object(arguments[s]):{},n=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e).filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}
1)),n.forEach(function(o){P(a,o,e[o])})}return a}({class:"iti__selected-flag"},n&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":"Telephone country code"}),this.flagsContainer)),u&&(this.selectedFlagInner=this._createEl("div",{class:"iti__flag"},this.selectedFlag)),this.selectedFlag&&this.telInput.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),o&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),n)if(this.telInput.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag),this.dropdownContent=this._createEl("div",{class:"iti__dropdown-content iti__hide ".concat(y?"":"iti--flexible-dropdown-width")}),w&&(this.searchInput=this._createEl("input",{type:"text",class:"iti__search-input",placeholder:"Search"},this.dropdownContent)),this.countryList=this._createEl("ul",{class:"iti__country-list",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"},this.dropdownContent),this.preferredCountries.length&&!w&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider","aria-hidden":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),C){var G="iti iti--container";L&&(G+=" iti--fullscreen-popup"),w&&(G+=" iti--country-search"),this.dropdown=this._createEl("div",{class:G}),this.dropdown.appendChild(this.dropdownContent)}else this.flagsContainer.appendChild(this.dropdownContent);if(v){var V=v,z=this.telInput.getAttribute("name");if(z){var Y=z.lastIndexOf("[");-1!==Y&&(V="".concat(z.substr(0,Y),"[").concat(V,"]"))}this.hiddenInput=this._createEl("input",{type:"hidden",name:V}),x.appendChild(this.hiddenInput)}}},{key:"_appendListItems",value:function(e,n,o){for(var u=0;u<e.length;u++){var _=e[u],v=o?"-preferred":"",C=this._createEl("li",{id:"iti-".concat(this.id,"__item-").concat(_.iso2).concat(v),class:"iti__country ".concat(n),tabindex:"-1",role:"option","data-dial-code":_.dialCode,"data-country-code":_.iso2,"aria-selected":"false"},this.countryList);_.node=C;var y="";this.options.showFlags&&(y+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(_.iso2,"'></div></div>")),y+="<span class='iti__country-name'>".concat(_.name,"</span>"),y+="<span class='iti__dial-code'>+".concat(_.dialCode,"</span>"),C.insertAdjacentHTML("beforeend",y)}}},{key:"_setInitialState",value:function(){var e=this.telInput.getAttribute("value"),n=this.telInput.value,u=!e||"+"!==e.charAt(0)||n&&"+"===n.charAt(0)?n:e,_=this._getDialCode(u),v=this._isRegionlessNanp(u),C=this.options,y=C.initialCountry,L=C.autoInsertDialCode;_&&!v?this._updateFlagFromNumber(u):"auto"!==y&&(y&&this._getCountryData(y,!1,!0)?this._setFlag(y.toLowerCase()):_&&v?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,u||this._setFlag(this.defaultCountry)),!u&&L&&(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),u&&this._updateValFromNumber(u)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoInsertDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var e=this;this._handleHiddenInputSubmit=function(){e.hiddenInput.value=e.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var e=this.telInput;e&&"LABEL"!==e.tagName;)e=e.parentNode;return e}},{key:"_initDropdownListeners",value:function(){var e=this;this._handleLabelClick=function(o){e.dropdownContent.classList.contains("iti__hide")?e.telInput.focus():o.preventDefault()};var n=this._getClosestLabel();n&&n.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){e.dropdownContent.classList.contains("iti__hide")&&!e.telInput.disabled&&!e.telInput.readOnly&&e._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(o){e.dropdownContent.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(o.key)&&(o.preventDefault(),o.stopPropagation(),e._showDropdown()),"Tab"===o.key&&e._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var e=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(e.options.utilsScript)}):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup(function(e){window.intlTelInputGlobals.autoCountry=e.toLowerCase(),setTimeout(function(){return $("handleAutoCountry")})},function(){return $("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var e=this;this._handleKeyupEvent=function(){e._updateFlagFromNumber(e.telInput.value)&&e._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(e._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(e){var n=this.telInput.getAttribute("maxlength");return n&&e.length>n?e.substr(0,n):e}},{key:"_initBlurListeners",value:function(){var e=this;this._handleSubmitOrBlurEvent=function(){e._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if("+"===this.telInput.value.charAt(0)){var e=this._getNumeric(this.telInput.value);(!e||this.selectedCountryData.dialCode===e)&&(this.telInput.value="")}}},{key:"_getNumeric",value:function(e){return e.replace(/\D/g,"")}},{key:"_trigger",value:function(e){var n=document.createEvent("Event");n.initEvent(e,!0,!0),this.telInput.dispatchEvent(n)}},{key:"_showDropdown",value:function(){this.options.fixDropdownWidth&&(this.dropdownContent.style.width="".concat(this.telInput.offsetWidth,"px")),this.dropdownContent.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.options.countrySearch?(this._highlightListItem(this.countryList.firstElementChild,!1),this.searchInput.focus()):this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(e,n,o){o&&!e.classList.contains(n)?e.classList.add(n):!o&&e.classList.contains(n)&&e.classList.remove(n)}},{key:"_setDropdownPosition",value:function(){var e=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){var n=this.telInput.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,u=n.top+o,_=this.dropdownContent.offsetHeight,v=u+this.telInput.offsetHeight+_<o+window.innerHeight,y=!this.options.countrySearch&&!v&&u-_>o;this._toggleClass(this.dropdownContent,"iti__dropdown-content--dropup",y),this.options.dropdownContainer&&(this.dropdown.style.top="".concat(u+(y?0:this.telInput.offsetHeight),"px"),this.dropdown.style.left="".concat(n.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return e._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll))}}},{key:"_getClosestListItem",value:function(e){for(var n=e;n&&n!==this.countryList&&!n.classList.contains("iti__country");)n=n.parentNode;return n===this.countryList?null:n}},{key:"_bindDropdownListeners",value:function(){var e=this;this._handleMouseoverCountryList=function(C){var y=e._getClosestListItem(C.target);y&&e._highlightListItem(y,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(C){var y=e._getClosestListItem(C.target);y&&e._selectListItem(y)},this.countryList.addEventListener("click",this._handleClickCountryList);var n=!0;
1this._handleClickOffToClose=function(){n||e._closeDropdown(),n=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var o="",u=null;if(this._handleKeydownOnDropdown=function(C){["ArrowUp","ArrowDown","Enter","Escape"].includes(C.key)&&(C.preventDefault(),C.stopPropagation(),"ArrowUp"===C.key||"ArrowDown"===C.key?e._handleUpDownKey(C.key):"Enter"===C.key?e._handleEnterKey():"Escape"===C.key&&e._closeDropdown()),!e.options.countrySearch&&/^[a-zA-Z\xc0-\xff\u0430-\u044f\u0410-\u042f ]$/.test(C.key)&&(C.stopPropagation(),u&&clearTimeout(u),o+=C.key.toLowerCase(),e._searchForCountry(o),u=setTimeout(function(){o=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch){var v=null;this._handleSearchChange=function(){v&&clearTimeout(v),v=setTimeout(function(){var y;(y=e.searchInput.value.trim())?e._filterCountries(y.toLowerCase()):e._filterCountries(null,!0),v=null},100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",function(C){return C.stopPropagation()})}}},{key:"_filterCountries",value:function(e){var n=arguments.length>1&&arguments[1]!==S&&arguments[1],o=!0;this.countryList.innerHTML="";for(var u=0;u<this.countries.length;u++){var _=this.countries[u],v=_.name.toLowerCase(),C="+".concat(_.dialCode);(n||v.includes(e)||C.includes(e))&&(this.countryList.appendChild(_.node),o&&(this._highlightListItem(_.node,!1),o=!1))}}},{key:"_handleUpDownKey",value:function(e){var n="ArrowUp"===e?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;n?n.classList.contains("iti__divider")&&(n="ArrowUp"===e?n.previousElementSibling:n.nextElementSibling):this.countryList.childElementCount>1&&(n="ArrowUp"===e?this.countryList.lastElementChild:this.countryList.firstElementChild),n&&(this._highlightListItem(n,!this.options.countrySearch),this.options.countrySearch&&this._scrollTo(n,!1))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(e){for(var n=0;n<this.countries.length;n++)if(this._startsWith(this.countries[n].name,e)){var o=this.countries[n].node;this._highlightListItem(o,!1),this._scrollTo(o,!0);break}}},{key:"_startsWith",value:function(e,n){return e.substr(0,n.length).toLowerCase()===n}},{key:"_updateValFromNumber",value:function(e){var n=e;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var o=this.options.nationalMode||"+"!==n.charAt(0)&&!this.options.separateDialCode,u=intlTelInputUtils.numberFormat;n=intlTelInputUtils.formatNumber(n,this.selectedCountryData.iso2,o?u.NATIONAL:u.INTERNATIONAL)}n=this._beforeSetNumber(n),this.telInput.value=n}},{key:"_updateFlagFromNumber",value:function(e){var n=e.indexOf("+"),o=n?e.substring(n):e,u=this.selectedCountryData.dialCode;o&&"1"===u&&"+"!==o.charAt(0)&&("1"!==o.charAt(0)&&(o="1".concat(o)),o="+".concat(o)),this.options.separateDialCode&&u&&"+"!==o.charAt(0)&&(o="+".concat(u).concat(o));var v=this._getDialCode(o,!0),C=this._getNumeric(o),y=null;if(v){var L=this.countryCodes[this._getNumeric(v)],w=-1!==L.indexOf(this.selectedCountryData.iso2)&&C.length<=v.length-1;if(!("1"===u&&this._isRegionlessNanp(C)||w))for(var x=0;x<L.length;x++)if(L[x]){y=L[x];break}}else"+"===o.charAt(0)&&C.length?y="":(!o||"+"===o)&&(y=this.defaultCountry);return null!==y&&this._setFlag(y)}},{key:"_isRegionlessNanp",value:function(e){var n=this._getNumeric(e);if("1"===n.charAt(0)){var o=n.substr(1,3);return-1!==N.indexOf(o)}return!1}},{key:"_highlightListItem",value:function(e,n){var o=this.highlightedItem;o&&o.classList.remove("iti__highlight"),this.highlightedItem=e,this.highlightedItem.classList.add("iti__highlight"),this.selectedFlag.setAttribute("aria-activedescendant",e.getAttribute("id")),n&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(e,n,o){for(var u=n?c:this.countries,_=0;_<u.length;_++)if(u[_].iso2===e)return u[_];if(o)return null;throw new Error("No country data for '".concat(e,"'"))}},{key:"_setFlag",value:function(e){var n=this.options,o=n.allowDropdown,u=n.separateDialCode,_=n.showFlags,v=this.selectedCountryData.iso2?this.selectedCountryData:{};if(this.selectedCountryData=e?this._getCountryData(e,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),_&&this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(e)),this._setSelectedCountryFlagTitleAttribute(e,u),u){var C=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=C;var y=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.isRTL?this.telInput.style.paddingRight="".concat(y+6,"px"):this.telInput.style.paddingLeft="".concat(y+6,"px")}if(this._updatePlaceholder(),o){var L=this.activeItem;if(L&&(L.classList.remove("iti__active"),L.setAttribute("aria-selected","false")),e){var w=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e));w.setAttribute("aria-selected","true"),w.classList.add("iti__active"),this.activeItem=w}}return v.iso2!==e}},{key:"_setSelectedCountryFlagTitleAttribute",value:function(e,n){var o;this.selectedFlag&&(o=e&&!n?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):e?this.selectedCountryData.name:"Unknown",this.selectedFlag.setAttribute("title",o))}},{key:"_getHiddenSelectedFlagWidth",value:function(){var e=this.telInput.parentNode.cloneNode();e.style.visibility="hidden",document.body.appendChild(e);var n=this.flagsContainer.cloneNode();e.appendChild(n);var o=this.selectedFlag.cloneNode(!0);n.appendChild(o);var u=o.offsetWidth;return e.parentNode.removeChild(e),u}},{key:"_updatePlaceholder",value:function(){if(window.intlTelInputUtils&&("aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&"polite"===this.options.autoPlaceholder)){var n=intlTelInputUtils.numberType[this.options.placeholderNumberType],o=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,n):"";o=this._beforeSetNumber(o),"function"==typeof this.options.customPlaceholder&&(o=this.options.customPlaceholder(o,this.selectedCountryData)),this.telInput.setAttribute("placeholder",o)}}},{key:"_selectListItem",value:function(e){var n=this._setFlag(e.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(e.getAttribute("data-dial-code")),this.telInput.focus();var o=this.telInput.value.length;this.telInput.setSelectionRange(o,o),n&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","fal
1se"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch&&this.searchInput.removeEventListener("input",this._handleSearchChange),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.options.useFullscreenPopup||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(e,n){var o=this.dropdownContent,u=window.pageYOffset||document.documentElement.scrollTop,_=o.offsetHeight,v=o.getBoundingClientRect().top+u,C=v+_,y=e.offsetHeight,L=e.getBoundingClientRect().top+u,w=L+y,k=L-v+o.scrollTop,x=_/2-y/2;L<v?(n&&(k-=x),o.scrollTop=k):w>C&&(n&&(k+=x),o.scrollTop=k-(_-y))}},{key:"_updateDialCode",value:function(e){var u,n=this.telInput.value,o="+".concat(e);if("+"===n.charAt(0)){var _=this._getDialCode(n);u=_?n.replace(_,o):o,this.telInput.value=u}else this.options.autoInsertDialCode&&(this.telInput.value=u=n?o+n:o)}},{key:"_getDialCode",value:function(e,n){var o="";if("+"===e.charAt(0))for(var u="",_=0;_<e.length;_++){var v=e.charAt(_);if(!isNaN(parseInt(v,10))){if(u+=v,n)this.countryCodes[u]&&(o=e.substr(0,_+1));else if(this.dialCodes[u]){o=e.substr(0,_+1);break}if(u.length===this.countryCodeMaxLen)break}}return o}},{key:"_getFullNumber",value:function(){var e=this.telInput.value.trim(),n=this.selectedCountryData.dialCode,u=this._getNumeric(e);return(this.options.separateDialCode&&"+"!==e.charAt(0)&&n&&u?"+".concat(n):"")+e}},{key:"_beforeSetNumber",value:function(e){var n=e;if(this.options.separateDialCode){var o=this._getDialCode(n);o&&(o="+".concat(this.selectedCountryData.dialCode),n=n.substr(" "===n[o.length]||"-"===n[o.length]?o.length+1:o.length))}return this._cap(n)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var e=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var n=this._getClosestLabel();n&&n.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&e&&e.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoInsertDialCode&&(e&&e.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("keyup",this._handleKeyupEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var o=this.telInput.parentNode;o.parentNode.insertBefore(this.telInput,o),o.parentNode.removeChild(o),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(e){if(window.intlTelInputUtils){var n=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),n,e)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),e)}return-99}},{key:"isValidNumber",value:function(){var e=this._getFullNumber().trim();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,this.selectedCountryData.iso2):null}},{key:"isPossibleNumber",value:function(){var e=this._getFullNumber().trim();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(e,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function(e){var n=e.toLowerCase();this.selectedCountryData.iso2!==n&&(this._setFlag(n),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}},{key:"setNumber",value:function(e){var n=this._updateFlagFromNumber(e);
1this._updateValFromNumber(e),n&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(e){this.options.placeholderNumberType=e,this._updatePlaceholder()}}]),a}();g.getCountryData=function(){return c};var l=function(s,e,n){var o=document.createElement("script");o.onload=function(){$("handleUtils"),e&&e()},o.onerror=function(){$("rejectUtilsScriptPromise"),n&&n()},o.className="iti-load-utils",o.async=!0,o.src=s,document.body.appendChild(o)};return g.loadUtils=function(a){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,typeof Promise<"u")return new Promise(function(s,e){return l(a,s,e)});l(a)}return null},g.defaults=F,g.version="18.5.3",function(a,s){var e=new j(a,s);return e._init(),a.setAttribute("data-intl-tel-input-id",e.id),window.intlTelInputGlobals.instances[e.id]=e,e}}()},B.exports?B.exports=S():window.intlTelInput=S()},18695:(B,S,c)=>{B.exports=c(95352)}}]);
2//# sourceMappingURL=9446.a891022ffc7d68ac.js.map

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.