PageSourceSearch

https://app.flexistore.no/997.e35b16abc5e4fdde.js

js flexistore.no collected 2026-09-24 10:54:48 UTC 18,293 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[997],{997:(N,C,e)=>{e.r(C),e.d(C,{IdAndCellVerificationPageModule:()=>U});var n=e(69808),i=e(93075),o=e(58008),d=e(33548),f=e(97582),h=e(87545),a=e(34686),g=e(37556),l=e(19146),p=e(61295),t=e(5e3),u=e(22202),A=e(40520),v=e(76478),O=e(82272),P=e(95687),F=e(56145),x=e(76328),T=e(7465);function D(c,_){1&c&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&c&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VERIFY_FORM.SUBMIT_BUTTON")," "))}function L(c,_){1&c&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&c&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VERIFY.CHANGE_BUTTON")," "))}const R=[{path:"",component:(()=>{class c{constructor(r,s,m,M,E,I,B,b,K,V,Z,k){this.router=r,this.loaderSpinnerService=s,this.apiUtil=m,this.http=M,this.authService=E,this.userUtilService=I,this.navController=B,this.toasts=b,this.userUtilsService=K,this.toastMessageService=V,this.commonUtilService=Z,this.translate=k,this.needCellVefification=!1,this.phoneVerified=!1}ngOnInit(){this.createFormControls(),this.createForm()}ionViewDidEnter(){this.loadViewData(this.authService)}createForm(){this.theForm=new i.nJ({userFirstName:this.userFirstName,userLastName:this.userLastName,idNr:this.idNr,cellNr:this.cellNr,userId:this.userId})}createFormControls(){this.userFirstName=new i.p4("",[i.kI.required,i.kI.minLength(1),i.kI.maxLength(40),i.kI.pattern(l.v.getNameValidatorPattern())]),this.userLastName=new i.p4("",[i.kI.required,i.kI.minLength(1),i.kI.maxLength(40),i.kI.pattern(l.v.getNameValidatorPattern())]),this.idNr=new i.p4("",[i.kI.required,i.kI.maxLength(13),i.kI.minLength(13)]),this.userId=new i.p4({disabled:!0},[i.kI.required,i.kI.minLength(5),i.kI.maxLength(254)]),this.cellNr=new i.p4,this.cellNr.setValidators([i.kI.required,i.kI.minLength(11),i.kI.maxLength(14),i.kI.pattern(l.v.getPhoneValidatorPattern())])}loadViewData(r){r.fetchCurrentUser(this.loaderSpinnerService).then(s=>{s.subscribe(m=>{this.beforeChangeUser=m,this.userId.setValue(m.username),this.userFirstName.setValue(m.name),this.userLastName.setValue(m.lastName),this.cellNr.setValue(m.phoneNumber),this.phoneVerified=m.phoneNumberVerified,console.log(this.theForm)},m=>{this.userUtilService.handleError(m)})}).catch(s=>{console.log(s)})}updateAccount(){const r={};return this.userFirstName.value&&(r.name=this.userFirstName.value),this.userLastName.value&&(r.family_name=this.userLastName.value),this.cellNr.value&&(r.phone_number=this.cellNr.value),this.loaderSpinnerService.showSpinner(),this.authService.updateUserAttributes(r).then(()=>
1{this.loaderSpinnerService.hideSpinner(),this.authService.clearCurrentUser(),this.toastMessageService.presentToast(this.translate.instant("MESSAGES.TOAST.USER_DETAILS_UPDATED")),(this.beforeChangeUser.phoneNumber!==this.cellNr.value||!this.phoneVerified)&&this.verifyPhoneChange()}).catch(s=>{this.loaderSpinnerService.hideSpinner(),this.userUtilService.handleError(s)})}verifyPhoneChange(){this.router.navigateByUrl("verify-change",{state:{phone:this.cellNr.value}})}doManualInstead(){return(0,f.mG)(this,void 0,void 0,function*(){yield this.navController.pop(),yield this.router.navigate(["selfie-and-id-upload"])})}submit(){return(0,f.mG)(this,void 0,void 0,function*(){try{if(this.phoneVerified){let r=!0;const s={NAME:this.userFirstName.value?this.userFirstName.value:null,LAST_NAME:this.userLastName.value?this.userLastName.value:null,ID_NUMBER:this.idNr.value?this.idNr.value:null,user_id:this.userId.value?this.userId.value:null,PHONE_NUMBER:this.cellNr.value?this.cellNr.value:null};let m=Object.keys(s),M=null;if(m.forEach(E=>{null==s[E]&&(r=!1,M=E)}),r){if(this.loaderSpinnerService.showSpinner(),yield this.updateAccount(),!this.needCellVefification)return this.postForm().toPromise().then(E=>(0,f.mG)(this,void 0,void 0,function*(){yield this.loaderSpinnerService.hide
1Spinner(),this.navController.pop()}),E=>{let I;this.loaderSpinnerService.hideSpinner(),I=this.translate.instant(E.error.error_code?`VERIFY.VERIFYID.${E.error.error_code}`:"-"),this.toastMessageService.presentToast(I,!0,this.translate.instant("OK"))})}else yield this.toasts.presentToast(this.translate.instant("VERIFY_FORM.COMPLETE_ALL_FIELDS_WARNING",{field:this.translate.instant(M)}))}else yield this.updateAccount()}catch(r){console.log(r)}})}postForm(){const r=this.apiUtil.getBaseUrl(),s={nationalIDNumber:this.idNr.value};return this.apiUtil.getHeadersWithAuth().pipe((0,h.w)(m=>this.http.post(`${r}/users/verifyid-verify`,s,{headers:m})))}keyUp(r){r.target.value=r.target.value.replace(/\s/g,"")}}return c.\u0275fac=function(r){return new(r||c)(t.Y36(d.F0),t.Y36(u.Q),t.Y36(a.b),t.Y36(A.eN),t.Y36(g.e),t.Y36(p.N),t.Y36(o.SH),t.Y36(v.D),t.Y36(p.N),t.Y36(v.D),t.Y36(l.v),t.Y36(O.sK))},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-id-and-cell-verification"]],decls:50,vars:30,consts:[["slot","start"],["color","light"],[1,"verificationCardContainer"],[1,"verificationCard"],[3,"formGroup"],["position","floating"],["fsNextInputField","lastName","type","text","formControlName","userFirstName","autocorrect","off","autocapitalize","none"],["translateNameKey","NAME",3,"control"],["fsNextInputField","idNr","id","lastName","type","text","formControlName","userLastName","autocorrect","off","autocapitalize","none"],["translateNameKey","LAST_NAME",3,"control"],["id","idNr","type","text","formControlName","idNr","autocorrect","off","autocapitalize","none"],["translateNameKey","ID_NUMBER",3,"control"],["id","cellNr","type","tel","formControlName","cellNr","placeholder","+2700000000","maxlength","15",3,"keyup"],["translateNameKey","PHONE_NUMBER",3,"control"],[1,"ion-padding"],["color","primary","type","submit","expand","block","expand","block",1,"form-submit-button",3,"disabled","appDisableOnClickAsync","focus"],[4,"ngIf"],["color","primary",1,"ion-text-center"],["expand","block","fill","outline",3,"click"]],template:function(r,s){1&r&&(t.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",0),t._UZ(3,"ion-back-button",1),t.qZA()()(),t.TgZ(4,"fs-content")(5,"ion-card",2)(6,"div",3)(7,"form",4)(8,"ion-list"),t.ynx(9),t.TgZ(10,"ion-label",5),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._UZ(13,"ion-input",6),t.BQk(),t._UZ(14,"fs-form-control-feedback",7),t.ynx(15),t.TgZ(16,"ion-label",5),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._UZ(19,"ion-input",8),t.BQk(),t._UZ(20,"fs-form-control-feedback",9),t.ynx(21),t.TgZ(22,"ion-label",5),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._UZ(25,"ion-input",10),t.BQk(),t._UZ(26,"fs-form-control-feedback",11),t.ynx(27),t.TgZ(28,"ion-label",5),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"ion-input",12),t.NdJ("keyup",function(M){return s.keyUp(M)}),t.qZA(),t.BQk(),t._UZ(32,"fs-form-control-feedback",13),t.TgZ(33,"div",14)(34,"ion-button",15),t.NdJ("focus",function(){return s.commonUtilService.trimInputForm(s.theForm)}),t.YNc(35,D,3,3,"ng-container",16),t.YNc(36,L,3,3,"ng-container",16),t.qZA()()()(),t.TgZ(37,"div",14)(38,"ion-text",17)(39,"p"),t._uU(40),t.ALo(41,"translate"),t.qZA()(),t.TgZ(42,"ion-button",18),t.NdJ("click",function(){return s.doManualInstead()}),t.TgZ(43,"ion-text"),t._uU(44),t.ALo(45,"translate"),t.qZA()(),t.TgZ(46,"ion-text",17)(47,"p"),t._uU(48),t.ALo(49,"translate"),t.qZA()()()()()()),2&r&&(t.xp6(7),t.Q6J("formGroup",s.theForm),t.xp6(4),t.hij("",t.lcZ(12,16,"NAME"),"*"),t.xp6(3),t.Q6J("control",s.userFirstName),t.xp6(3),t.hij("",t.lcZ(18,18,"LAST_NAME"),"*"),t.xp6(3),t.Q6J("control",s.userLastName),t.xp6(3),t.hij("",t.lcZ(24,20,"ID_NUMBER"),"*"),t.xp6(3),t.Q6J("control",s.idNr),t.xp6(3),t.hij("",t.lcZ(30,22,"PHONE_NUMBER"),"*"),t.xp6(3),t.Q6J("control",s.cellNr),t.xp6(2),t.Q6J("disabled",!s.theForm.valid)("appDisableOnClickAsync",s.submit.bind(s)),t.xp6(1),t.Q6J("ngIf",s.phoneVerified),t.xp6(1),t.Q6J("ngIf",!s.phoneVerified),t.xp6(4),t.Oqu(t.lcZ(41,24,"OR")),t.xp6(4),t.hij(" ",t.lcZ(45,26,"MANUAL_VERIFICATION_ALTERNATIVE_BUTTON")," "),t.xp6(4),t.Oqu(t.lcZ(49,28,"MANUAL_VERIFICATION_TIME_NOTE")))},dependencies:[n.O5,i._Y,i.JJ,i.JL,i.nD,o.oU,o.YG,o.Sm,o.PM,o.Gu,o.pK,o.Q$,o.q_,o.yW,o.sr,o.j9,o.cs,i.sg,i.u,P.x,F.A,x.N,T.S,O.X$],styles:["@media screen and (min-width: 438px){ion-modal[_ngcontent-%COMP%]{--height: 50% !important;--width: 350px !important}.verificationCardContainer[_ngcontent-%COMP%]{visibility:visible;transition:.9s;padding-left:5%;padding-right:5%}.verificationCard[_ngcontent-%COMP%]{transition:.9s;padding-left:5%;padding-right:5%}}.dateTimeInputs[_ngcontent-%COMP%]{display:flex;margin:.11em 1em 1em;background:white;border-radius:8px}ion-modal[_ngcontent-%COMP%]{--height: 50% !important;--width: 80% !important}.dateModal[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:50%!important;width:80%!important}ion-datetime[_ngcontent-%COMP%]{background-color:#fff;width:100%;height:100%}
1#dob[_ngcontent-%COMP%]{padding:1.3em;background:white;border-radius:4px;border:1px solid rgba(6,2,52,.1);box-shadow:0 4px 10px #7c919e61;margin-top:.5em;width:80%;margin-left:.5em;margin-right:.5em}ion-label[_ngcontent-%COMP%]{margin-left:.5em}.verificationCardContainer[_ngcontent-%COMP%]{visibility:hidden}.verificationCard[_ngcontent-%COMP%]{visibility:visible}"]}),c})()}];let y=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=t.oAB({type:c}),c.\u0275inj=t.cJS({imports:[d.Bz.forChild(R),d.Bz]}),c})();var S=e(55274);let U=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=t.oAB({type:c}),c.\u0275inj=t.cJS({imports:[n.ez,i.u5,S.m,o.Pc,y]}),c})()},7465:(N,C,e)=>{e.d(C,{S:()=>h});var n=e(5e3),i=e(69808),o=e(58008);function d(a,g){if(1&a){const l=n.EpF();n.ynx(0),n.TgZ(1,"ion-refresher",1),n.NdJ("ionRefresh",function(t){n.CHM(l);const u=n.oxw();return n.KtG(u.refresh(t))}),n._UZ(2,"ion-refresher-content",2),n.qZA(),n.BQk()}if(2&a){const l=n.oxw();n.xp6(1),n.Q6J("pullMin",100)("pullMax",200),n.xp6(1),n.s9C("pullingText",l.refreshPullText)}}const f=["*"];let h=(()=>{class a{constructor(){this.contentRefresh=new n.vpe}refresh(l){this.contentRefresh.emit(l)}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["fs-content"]],inputs:{refreshPullText:"refreshPullText"},outputs:{contentRefresh:"contentRefresh"},ngContentSelectors:f,decls:6,vars:1,consts:[[4,"ngIf"],["slot","fixed",3,"pullMin","pullMax","ionRefresh"],["pullingIcon","chevron-down-outline","refreshingSpinner","dots",3,"pullingText"]],template:function(l,p){1&l&&(n.F$t(),n.TgZ(0,"ion-content"),n.YNc(1,d,3,3,"ng-container",0),n.TgZ(2,"ion-grid")(3,"ion-row")(4,"ion-col"),n.Hsn(5),n.qZA()()()()),2&l&&(n.xp6(1),n.Q6J("ngIf",p.refreshPullText))},dependencies:[i.O5,o.wI,o.W2,o.jY,o.nJ,o.Wo,o.Nd],styles:["[_nghost-%COMP%], ion-grid[_ngcontent-%COMP%], ion-row[_ngcontent-%COMP%]{height:100%;padding:0}[_nghost-%COMP%]   ion-col[_ngcontent-%COMP%], ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%], ion-row[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]{padding:0;margin:0 auto}@media screen and (min-width: 768px){[_nghost-%COMP%]   ion-col[_ngcontent-%COMP%], ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%], ion-row[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]{max-width:646px}}@media screen and (min-width: 1024px){[_nghost-%COMP%]   ion-col[_ngcontent-%COMP%], ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%], ion-row[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]{max-width:688px}}@media screen and (min-width: 1200px){[_nghost-%COMP%]   ion-col[_ngcontent-%COMP%], ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%], ion-row[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]{max-width:806px}}@media screen and (min-width: 1440px){[_nghost-%COMP%]   ion-col[_ngcontent-%COMP%], ion-grid[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%], ion-row[_ngcontent-%COMP%]   ion-col[_ngcontent-%COMP%]{max-width:966px}}@media screen and (min-width: 600px){ion-refresher[_ngcontent-%COMP%]{height:0px}}"]}),a})()},95687:(N,C,e)=>{e.d(C,{x:()=>g});var n=e(21837),i=e(96943),o=e(80659),d=e(5e3),f=e(82272),h=e(69808);const a=function(l,p){return{"feedback-show":l,"feedback-hide":p}};let g=(()=>{class l{constructor(t,u){this.translate=t,this.dateUtilService=u,this.control=null,this.isDate=!1,this.dateFormatMessage=`${this.translate.instant("FORM_FEEDBACK.DATE_PATTERN")} ${this.dateUtilService.datePickerDateFormat()}`}feedback(){if(this.control&&this.control.errors)return this.control.errors.required?this.requiredMessage():this.control.errors.containsDigits?this.containsDigitsMessage():this.control.errors.containsLowerCase?this.containsLowerCaseMessage():this.control.errors.containsUpperCase?this.containsUpperCaseMessage():this.control.errors.inOslo?this.inOsloMessage():this.control.errors.pattern?this.invalidPatternMessage():this.control.errors.minlength?this.minLengthMessage():this.control.errors.maxlength?this.maxLengthMessage():this.control.errors.min?this.minMessage():this.control.errors.max?this.maxMessage():this.control.errors.confirmedValidator?this.passWordMissmatchMessage():this.translate.instant("FORM_FEEDBACK.GENERAL")}name(){return this.translateNameKey?this.translate.instant(this.translateNameKey):null}requiredMessage(){return this.required?this.required:this.name()?this.translate.instant("FORM_FEEDBACK.REQUIRED_SPECIFIC",{field:this.name()}):this.translate.instant("FORM_FEEDBACK.REQUIRED")}
1minLengthMessage(){return this.minLength?this.minLength:this.isDate?this.dateFormatMessage:this.name()?this.translate.instant("FORM_FEEDBACK.MIN_LENGTH_SPECIFIC",{field:this.name(),minLength:this.control.errors.minlength.requiredLength}):this.translate.instant("FORM_FEEDBACK.MIN_LENGTH",{minLength:this.control.errors.minlength.requiredLength})}maxLengthMessage(){return this.maxLength?this.maxLength:this.isDate?this.dateFormatMessage:this.name()?this.translate.instant("FORM_FEEDBACK.MAX_LENGTH_SPECIFIC",{field:this.name(),maxLength:this.control.errors.maxlength.requiredLength+1}):this.translate.instant("FORM_FEEDBACK.MAX_LENGTH",{maxLength:this.control.errors.maxlength.requiredLength+1})}invalidPatternMessage(){if(this.pattern)return this.pattern;if(this.isDate)return this.dateFormatMessage;if(this.translateNameKey){const t=this.translateNameKey.toUpperCase();if(t.indexOf("MAIL")>=0)return this.translate.instant("FORM_FEEDBACK.PATTERN_MAIL",{field:this.name(),pattern:o.g.EMAIL_SAMPLE_TEXT});if(t.indexOf("PHONE")>=0)return this.translate.instant("FORM_FEEDBACK.PATTERN_PHONE",{field:this.name(),pattern:o.g.PHONE_SAMPLE_TEXT});if(t.indexOf("PASSWORD")>=0)return this.translate.instant("FORM_FEEDBACK.PATTERN_PASSWORD",{field:this.name()})}return this.translate.instant("FORM_FEEDBACK.PATTERN")}minMessage(){if(this.min)return this.min;if(this.isDate){const t=this.dateUtilService.defaultDateFormat(n.ou.fromISO(this.control.errors.min.min));return this.name()?this.translate.instant("FORM_FEEDBACK.MIN_DATE_SPECIFIC",{field:this.name(),date:t}):this.translate.instant("FORM_FEEDBACK.MIN_DATE",{date:t})}return this.name()?this.translate.instant("FORM_FEEDBACK.MIN_SPECIFIC",{field:this.name(),min:this.control.errors.min.min}):this.translate.instant("FORM_FEEDBACK.MIN",{min:this.control.errors.min.min})}maxMessage(){if(this.max)return this.max;if(this.isDate){const t=this.dateUtilService.defaultDateFormat(n.ou.fromISO(this.control.errors.max.max));return this.name()?this.translate.instant("FORM_FEEDBACK.MAX_DATE_SPECIFIC",{field:this.name(),date:t}):this.translate.instant("FORM_FEEDBACK.MAX_DATE",{date:t})}return this.name()?this.translate.instant("FORM_FEEDBACK.MAX_SPECIFIC",{field:this.name(),max:this.control.errors.max.max}):this.translate.instant("FORM_FEEDBACK.MAX",{max:this.control.errors.max.max})}passWordMissmatchMessage(){return this.translate.instant("FORM_FEEDBACK.PW_MISSMATCH")}containsDigitsMessage(){return this.translate.instant("FORM_FEEDBACK.NO_DIGITS")}containsUpperCaseMessage(){return this.translate.instant("FORM_FEEDBACK.NO_UPPERCASE")}containsLowerCaseMessage(){return this.translate.instant("FORM_FEEDBACK.NO_LOWERCASE")}inOsloMessage(){return this.translate.instant("EXTRAS.PICKUP.NOT_OSLO_ERROR")}}return l.\u0275fac=function(t){return new(t||l)(d.Y36(f.sK),d.Y36(i.m))},l.\u0275cmp=d.Xpm({type:l,selectors:[["fs-form-control-feedback"]],inputs:{control:"control",translateNameKey:"translateNameKey",isDate:"isDate",required:"required",minLength:"minLength",maxLength:"maxLength",min:"min",max:"max",pattern:"pattern"},decls:3,vars:5,consts:[[3,"ngClass"],[1,"ion-text-start","error-text"]],template:function(t,u){1&t&&(d.TgZ(0,"div",0)(1,"p",1),d._uU(2),d.qZA()()),2&t&&(d.Q6J("ngClass",d.WLB(2,a,(null==u.control?null:u.control.errors)&&((null==u.control?null:u.control.dirty)||(null==u.control?null:u.control.touched)),!(null!=u.control&&u.control.errors&&(null!=u.control&&u.control.dirty||null!=u.control&&u.control.touched)))),d.xp6(2),d.Oqu(u.feedback()))},dependencies:[h.mk],styles:[".error-text[_ngcontent-%COMP%]{color:var(--ion-color-danger);font-size:var(--fs-font-size-2);margin-top:3px;margin-left:15px;margin-bottom:3px;min-height:15px}.feedback-hide[_ngcontent-%COMP%]{opacity:0}.feedback-show[_ngcontent-%COMP%]{opacity:1;transition-property:opacity;transition-duration:.4s;transition-timing-function:ease-out;transition-delay:initial}"]}),l})()},76328:(N,C,e)=>{e.d(C,{N:()=>o});var n=e(5e3);let o=(()=>{class d{constructor(h){this.elementRef=h,this.input=new n.vpe,this.nextIonInputId=null}keyEvent(h){"INPUT"===h.srcElement.tagName&&13===(h.keyCode||h.which)&&(h.preventDefault(),this.onEnter(),this.input.emit(this.elementRef.nativeElement.children[0].value))}onEnter(){if(console.log("onEnter() "+this.nextIonInputId),!this.nextIonInputId){const a=document.activeElement;
1return void(a&&a.blur&&a.blur())}const h=document.getElementById(this.nextIonInputId);if(h&&"ION-DATETIME"===h.tagName&&h.children[1]){const a=h.children[1];if("BUTTON"===a.tagName){const g=document.activeElement;g&&g.blur&&g.blur(),a.click()}}else if(h&&h.children[0]){const a=h.children[0];("INPUT"===a.tagName||"TEXTAREA"===a.tagName)&&a.focus()}}}return d.\u0275fac=function(h){return new(h||d)(n.Y36(n.SBq))},d.\u0275dir=n.lG2({type:d,selectors:[["","fsNextInputField",""]],hostBindings:function(h,a){1&h&&n.NdJ("keydown",function(l){return a.keyEvent(l)})},inputs:{nextIonInputId:["fsNextInputField","nextIonInputId"]},outputs:{input:"input"}}),d})()}}]);

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.