PageSourceSearch

https://www.robodebtsettlement.com.au/418.a9c6e77ae78afde9.js

js robodebtsettlement.com.au collected 2026-10-08 23:38:06 UTC 16,926 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkengagement_hub=self.webpackChunkengagement_hub||[]).push([[418],{6418(G,w,a){a.d(w,{RegistrationDetailsComponent:()=>et});var O=a(9769),B=a(3456),f=a(2129),u=a(1397),m=a(4572),M=a(7673),h=a(4343),_=a(8844),R=a(3429),T=a(7705),P=a(375),t=a(5547),F=a(8772),A=a(648),W=a(345),L=a(4244),j=a(1537),X=a(5984);const K=["actionFailed"],N=["completedPage"],V=["completionMessage"];function q(o,g){if(1&o&&(t.qex(0),t.nrm(1,"survey-container",14),t.bVm()),2&o){const l=t.XpG(3);t.R7$(),t.Y8G("model",l.survey)}}function H(o,g){if(1&o&&(t.j41(0,"div",13),t.DNE(1,q,2,1,"ng-container",10),t.k0s()),2&o){const l=t.XpG(2);t.R7$(),t.Y8G("ngIf",!l.isSurveyCompleted)}}function Z(o,g){if(1&o&&t.DNE(0,H,2,1,"div",12),2&o){const l=t.XpG();t.Y8G("ngIf",!l.isSurveyCompleted)}}function Y(o,g){if(1&o&&t.nrm(0,"div",15,4),2&o){const l=t.XpG();t.Y8G("innerHTML",l.completedHtmlContent,t.npT)}}function z(o,g){if(1&o&&(t.j41(0,"div",16)(1,"div",17),t.nrm(2,"img",18),t.j41(3,"p",19),t.EFF(4),t.k0s(),t.j41(5,"p",19)(6,"strong"),t.EFF(7),t.k0s()()()()),2&o){const l=t.XpG();t.R7$(4),t.JRh(l.loadingMessageP1),t.R7$(3),t.JRh(l.loadingMessageP2)}}function J(o,g){1&o&&(t.qex(0),t.j41(1,"div",13)(2,"article",20)(3,"div",21,5)(5,"h2"),t.EFF(6,"Information was updated successfully"),t.k0s(),t.j41(7,"p"),t.EFF(8,"Click the 'Back to details' button above to return."),t.k0s()()()(),t.bVm())}function $(o,g){if(1&o&&(t.qex(0),t.j41(1,"div",13)(2,"article",20)(3,"div",21)(4,"h2"),t.EFF(5,"Please "),t.j41(6,"a",22),t.EFF(7,"click here"),t.k0s(),t.EFF(8),t.k0s()()()(),t.bVm()),2&o){const l=t.XpG();t.R7$(6),t.Y8G("href",l.isWorkspace?"#/accounts/list":"#/page/registration",t.B4B),t.R7$(2),t.SpI(" to return to ",l.isWorkspace?"the list page":"the homepage to start a new registration")}}function Q(o,g){1&o&&(t.nrm(0,"i",23),t.j41(1,"div",24),t.EFF(2,"Error"),t.k0s())}function tt(o,g){1&o&&t.nrm(0,"div")}let et=(()=>{var o;class g extends _.b{constructor(s,e,i,n,c,d,b,E,y,C,S,k,p,v,I){var D,U;super(),this.configService=s,this.customControlsManager=e,this.contentsService=i,this.accountService=n,this.customSurveyComponentsService=c,this.router=d,this.route=b,this.sanitizer=E,this.changeDetector=y,this.title=C,this.authService=S,this.loaderService=k,this.ngZone=p,this.gaService=v,this.location=I,this.missingInitialData=!1,this.autoLoginEnabled=!0,this.REGISTRATION_SUCCESS_SLUG="registration-success",this.toastPosition={X:"Right"},this.navigateBackOnToastClose=!0;const x=this.router.getCurrentNavigation(),r=null==x?void 0:x.extras.state;(null!=r&&r.account||localStorage.getItem("account"))&&(this.account=null!==(D=null==r?void 0:r.account)&&void 0!==D?D:JSON.parse(localStorage.getItem("account"))),(null!=r&&r.formData||localStorage.getItem("formData"))&&(this.formData=null!==(U=null==r?void 0:r.formData)&&void 0!==U?U:JSON.parse(localStorage.getItem("formData"))),null!=r&&r.progressContent&&(this.progressContent=null==r?void 0:r.progressContent),null==r?(this.missingInitialData=!0,this.workspaceEditCompleted="true"===sessionStorage.getItem("workspaceEditCompleted")):sessionStorage.setItem("workspaceEditCompleted","false")}ngOnInit(){var s,e,i,n,c,d,E,y,C,S;if(this.title.setTitle("Loading registration..."),this.autoLoginEnabled=null===(s=null===(e=this.configService.configuration)||void 0===e||null===(e=e.appSettings)||void 0===e?void 0:e.autoLoginEnabled)||void 0===s||s,this.location.subscribe(p=>{this.workspaceEditCompleted&&(this.workspaceEditCompleted=!1,sessionStorage.removeItem("workspaceEditCompleted"))}),!(window.history.state&&window.history.state.navigationId>1||"true"!==sessionStorage.getItem("workspaceEditCompleted")))return this.isWorkspace=!0,void(this.workspaceEditCompleted=!0);this.workspaceEditCompleted=!1,sessionStorage.removeItem("workspaceEditCompleted"),this.formSlug=null!==(i=this.route.snapshot.paramMap.get("formSlug"))&&void 0!==i?i:"registration-form-details",this.loadingMessageP1="",this.loadingMessageP2="",this.queryParams=this.route.snapshot.queryParams,this.isClaimEnabled=null===(n=null===(c=this.formData)||void 0===c?void 0:c.isClaimEnabled)||void 0===n||n,this.queryParams.utm_source&&this.queryParams.utm_source.length>0?(this.utm_source=this.queryParams.utm_source,localStorage.setItem("utm_source",this.queryParams.utm_source)):localStorage.getItem("utm_source")&&(this.utm_source=null!==(E=localStorage.getItem("utm_source"))&&void 0!==E?E:""),this.queryParams.pc&&this.queryParams.pc.length>0?(this.participantCode=this.queryParams.pc,sessionStorage.setItem("participantCode",this.queryParams.pc)):sessionStorage.getItem("participantCode")&&(this.participantCode=null!==(y=sessionStorage.getItem("participantCode"))&&void 0!==y?y:""),this.queryParams.utm_campaign&&this.queryParams.utm_campaign.length>0?(this.utm_campaign=this.queryParams.utm_campaign,localStorage.setItem("utm_campaign",this.queryParams.utm_campaign)):localStorage.getItem("utm_campaign")&&(this.utm_campaign=null!==(C=localStorage.getItem("utm_campaign"))&&void 0!==C?C:""),this.queryParams.utm_medium&&this.queryParams.utm_medium.length>0?(this.utm_medium=this.queryParams.utm_medium,localStorage.setItem("utm_medium",this.queryParams.utm_medium)):localStorage.getItem("utm_medium")&&(this.utm_medium=null!==(S=localStorage.getItem("utm_medium"))&&void 0!==S?S:""),this.isWorkspace=null!=(null===(d=this.formData)||void 0===d?void 0:d.source)?"workspace"===this.formData.source:"true"===sessionStorage.getItem("isWorkspace"),this.isWorkspace?(sessionStorage.setItem("isWorkspace","true"),localStorage.setItem("account",JSON.stringify(this.account)),localStorage.setItem("formData",JSON.stringify(this.formData))):((0,m.z)([this.contentsService.getCommonPage("header"),this.contentsService.getCommonPage("footer")]).subscribe(([p,v])=>{this.headerData=p,this.footerData=v}),localStorage.getItem("account")&&localStorage.removeItem("account"),localStorage.getItem("formData")&&localStorage.removeItem("formData"),sessionStorage.getItem("isWorkspace")&&sessionStorage.removeItem("isWorkspace")),this.missingInitialData||(0,f.AD)().then(p=>{this.customSurveyComponentsService.createConfigurationForHub(p).pipe((0,u.Z)(v=>this.customControlsManager.initialize(v)),(0,u.Z)(()=>(0,m.z)([this.contentsService.getForm("submission-form",this.formSlug,!0),(0,M.of)(this.account)]))).subscribe(([v,I])=>{this.configureAndRenderSurvey(v,I),this.changeDetector.detectChanges()})}).catch(p=>console.error("Failed to load survey-core for RegistrationDetail
1sComponent",p))}handleBackButton(){this.isWorkspace||this.ngZone.run(()=>{this.router.navigate(["page/registration"])})}saveDetails(s){s.data=this.customSurveyComponentsService.setEmptyValues(s.data,this.survey),this.isWorkspace?(this.loaderService.show(),this.accountService.updateAccountAsync(s.data).subscribe(e=>{this.workspaceEditCompleted=!0,sessionStorage.setItem("workspaceEditCompleted","true"),localStorage.removeItem("account"),localStorage.removeItem("formData"),this.loaderService.hide(),this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{var i;null===(i=this.completionMessageDiv)||void 0===i||i.nativeElement.scrollIntoView({behavior:"smooth",block:"center"})},0)}),this.changeDetector.detectChanges()},e=>{this.loaderService.hide(),this.actionFailed.content=e,this.actionFailed.show()})):(this.ngZone.run(()=>{var e,i,n,c;this.loadingMessageP1=this.isClaimEnabled?null!==(e=null===(i=this.progressContent)||void 0===i?void 0:i.loadingMessage)&&void 0!==e?e:"Please wait while we prepare your claim.":"Please wait while we prepare your registration.",this.loadingMessageP2=this.isClaimEnabled&&null!==(n=null===(c=this.progressContent)||void 0===c?void 0:c.loadingImportantMessage)&&void 0!==n?n:"Do not close your browser."}),this.accountService.createAccountAsync(s.data).subscribe({next:e=>{if(e.identifier){const i=null!=this.survey.getValue("account_ParticipantCode")&&""!=this.survey.getValue("account_ParticipantCode");this.customSurveyComponentsService.uploadAttachments(s,e.attachments).pipe((0,u.Z)(()=>this.isClaimEnabled&&this.autoLoginEnabled&&!i?(0,M.of)(null):this.contentsService.getConfirmationPageContent(this.REGISTRATION_SUCCESS_SLUG))).subscribe(n=>{if(this.isSurveyCompleted=!0,this.autoLoginEnabled&&!i&&this.authService.setUserSession(e.authenticationResult),null!=n){const c=n.htmlContent;n.pageTitle&&(this.title.setTitle(n.pageTitle),localStorage.setItem("RegistrationConfirmationReferenceNumber",e.identifier),this.location.replaceState("/confirmation-pages/".concat(this.REGISTRATION_SUCCESS_SLUG)),this.gaService.pageView("/confirmation-pages/".concat(this.REGISTRATION_SUCCESS_SLUG),n.pageTitle));const d=this.sanitizer.bypassSecurityTrustHtml(c.replace("{{Identifier}}",(0,h._F)(e.identifier)));this.completedHtmlContent=d,this.changeDetector.detectChanges(),this.addPrintActionToConfirmationPage()}else this.ngZone.run(()=>{this.router.navigateByUrl("form/my-claim")})})}else{const i=e;if(this.hasFormDefinitionChanged(i))return this.loadingMessageP1="",this.loadingMessageP2="",this.navigateBackOnToastClose=!0,void this.handleFormMismatch(s.data);this.missingInitialData=!0,i.ErrorMessage?(this.actionFailed.content=i.ErrorMessage,this.actionFailed.show()):(this.actionFailed.content="Error occurred while submitting the form.",this.actionFailed.show())}},error:e=>{var i;this.loadingMessageP1="",this.loadingMessageP2="",this.navigateBackOnToastClose=!0,this.actionFailed.content="Error occurred while submitting the form.",this.actionFailed.show(),console.error("Observable emitted an error: "+JSON.stringify(null!==(i=null==e?void 0:e.error)&&void 0!==i?i:e))},complete:()=>{console.info("Observable emitted the complete notification"),this.loadingMessageP1="",this.loadingMessageP2=""}}))}onToastClose(){this.navigateBackOnToastClose&&this.navigateBack()}configureAndRenderSurvey(s,e,i){if(this.title.setTitle(s.pageTitle),this.survey=(new h.cS).fromForm(s).Build(),this.isWorkspace&&(this.survey.completeText="Update"),this.survey.showPrevButton=!1,this.survey.addNavigationItem({id:"survey_back_navigation_btn",title:"Cancel",innerCss:"e-btn",visibleIndex:49,action:()=>{if(this.survey.isFirstPage){const D=this.isWorkspace?{queryParams:{accountId:e.id,isWorkspace:!0}}:{queryParams:{}};this.workspaceEditCompleted=!1,sessionStorage.removeItem("workspaceEditCompleted"),this.ngZone.run(()=>{this.router.navigate("registration-form-details"===this.formSlug?["/page/registration"]:["/page/contact"],D)})}else this.survey.prevPage()}}),this.survey.focusFirstQuestionAutomatic=!1,this.survey.onComplete.add(this.saveDetails.bind(this)),this.fillForm(e),null!=i)this.survey.data={...this.survey.data&&"object"==typeof this.survey.data?this.survey.data:{},...i};else if(this.formData){var n,d,b,E,C,S,k,v,I;this.isWorkspace||(null!==(d=(n=this.formData).account_UtmSource)&&void 0!==d||(n.account_UtmSource=null!==(b=this.utm_source)&&void 0!==b?b:""),null!==(C=(E=this.formData).account_UtmCampaign)&&void 0!==C||(E.account_UtmCampaign=null!==(S=this.utm_campaign)&&void 0!==S?S:""),null!==(v=(k=this.formData).account_UtmMedium)&&void 0!==v||(k.account_UtmMedium=null!==(I=this.utm_medium)&&void 0!==I?I:"")),this.customSurveyComponentsService.fillSurveyFromFormData(this.formData,this.survey)}this.survey.onCurrentPageChanged.add(()=>{this.changeDetector.detectChanges()}),this.attachValidationScroll(this.survey,"#detailsContainer")}handleFormMismatch(s){this.navigateBackOnToastClose=!1,delete s.version,this.contentsService.getForm("submission-form",this.formSlug,!0).subscribe({next:e=>{if(!e)return this.actionFailed.content="This form was updated. Please refresh the page and try again.",void this.actionFailed.show();this.configureAndRenderSurvey(e,this.account,s),this.changeDetector.detectChanges(),this.actionFailed.content="This form has been updated since you opened it. We loaded the latest version \u2014 please review and re-submit.",this.actionFailed.show()},error:()=>{this.navigateBackOnToastClose=!0,this.actionFailed.content="This form was updated. Please refresh the page and try again.",this.actionFailed.show()}})}hasFormDefinitionChanged(s){return Array.isArray(s)&&s.some(e=>{var i;return"string"==typeof(null==e?void 0:e.text)&&(null===(i=e.text)||void 0===i?void 0:i.includes("The form definition has been changed"))})}fillForm(s){this.survey.setValue("account_id",s.id),this.customSurveyComponentsService.fillSurveyFromDynamicData(s.dynamicData,this.survey,"account")}addPrintActionToConfirmationPage(){const s=this.completedPageDiv.nativeElement.querySelector('input[name="ButtonPrint"]');null!=s&&s.addEventListener("click",()=>window.print())}navigateBack(){this.isWorkspace||this.ngZone.run(()=>{this.isWorkspace&&this.router.navigate(["#/accounts/list"]),this.router.navigate("registration-form-details"===this.formSlug?["page/registration"]:["/page/contact"])})}}return(o=g).\u0275fac=function(s){return new(s||o)(t.rXU(F._k),t.rXU(f.UY),t.rXU(F.fH),t.rXU(F.jD),t.rXU(F.Tq),t.rXU(A.Ix),t.rXU(A.nX),t.rXU(W.up),t.rXU(T.gRc),t.rXU(W.hE),t.rXU(L.uR),t.rXU(L.ZC),t.rXU(P.SKi),t.rXU(j.p),t.rXU(X.aZ))}
1,o.\u0275cmp=t.VBU({type:o,selectors:[["app-registration-details"]],viewQuery:function(s,e){if(1&s&&t.GBs(K,5)(N,5)(V,5),2&s){let i;t.mGM(i=t.lsd())&&(e.actionFailed=i.first),t.mGM(i=t.lsd())&&(e.completedPageDiv=i.first),t.mGM(i=t.lsd())&&(e.completionMessageDiv=i.first)}},features:[t.Vt3],decls:13,vars:6,consts:[["template",""],["actionFailed",""],["title",""],["content",""],["completedPage",""],["completionMessage",""],[1,"hub-container"],["class","hub-flex-confirmation",3,"innerHTML",4,"ngIf"],["class","overlay-message","style","display: flex; flex-direction: column; align-items: center; align-content: center; justify-content: center; flex-wrap: wrap; flex: 1; height: 100%; background: rgba(255,255,255,1); z-index: 99999; position: fixed; width: 100%; height: 100%; left: 0; top: 0;",4,"ngIf"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["cssClass","e-toast-danger","showProgressBar","true","timeOut","15000",3,"close","position"],["class","hub-content-wrapper",4,"ngIf"],[1,"hub-content-wrapper"],["id","detailsContainer",3,"model"],[1,"hub-flex-confirmation",3,"innerHTML"],[1,"overlay-message",2,"display","flex","flex-direction","column","align-items","center","align-content","center","justify-content","center","flex-wrap","wrap","flex","1","height","100%","background","rgba(255,255,255,1)","z-index","99999","position","fixed","width","100%","height","100%","left","0","top","0"],[2,"text-align","center"],["src","/assets/images/785.gif","loading","lazy",2,"margin","0 auto"],[1,"medium","top-margin"],[1,"hub"],[1,"completionMessage"],[3,"href"],[1,"pi","pi-check-circle",2,"font-size","36px"],[1,"toast-title"]],template:function(s,e){if(1&s){const i=t.RV6();t.j41(0,"div",6),t.DNE(1,Z,1,1,"ng-template",null,0,t.C5r)(3,Y,2,1,"div",7)(4,z,8,2,"div",8)(5,J,9,0,"ng-container",9)(6,$,9,2,"ng-container",10),t.k0s(),t.j41(7,"ejs-toast",11,1),t.bIt("close",function(){return P.eBV(i),P.Njj(e.onToastClose())}),t.DNE(9,Q,3,0,"ng-template",null,2,t.C5r)(11,tt,1,0,"ng-template",null,3,t.C5r),t.k0s()}if(2&s){const i=t.sdS(2);t.R7$(3),t.Y8G("ngIf",e.isSurveyCompleted),t.R7$(),t.Y8G("ngIf",e.loadingMessageP1&&e.loadingMessageP1.length>0),t.R7$(),t.Y8G("ngIf",e.workspaceEditCompleted)("ngIfElse",i),t.R7$(),t.Y8G("ngIf",e.missingInitialData&&!e.isWorkspace||e.missingInitialData&&e.isWorkspace&&!e.workspaceEditCompleted),t.R7$(),t.Y8G("position",e.toastPosition)}},dependencies:[O.MD,O.bT,B.MB,B.d3,R.e],styles:[".completionMessage[_ngcontent-%COMP%]{text-align:center;padding-top:15px}.page-header[_ngcontent-%COMP%]{padding-top:15px}"]}),g})()},8844(G,w,a){a.d(w,{b:()=>O});class O{attachValidationScroll(f,u,m=80,M=120){f&&(f.focusFirstQuestionAutomatic=!1,setTimeout(()=>{const h=document.querySelector(u);if(!h)return;const _=h.querySelector(".sv-footer__complete-btn");_&&(_._svScrollBound||(_._svScrollBound=!0,_.addEventListener("click",R=>{f.hasErrors()&&(R.preventDefault(),this.scrollFirstError(m,M))})))},0))}scrollFirstError(f=12,u=120){requestAnimationFrame(()=>{var m;const M=[".reg-form-input-error",".sv-question--error",'[aria-invalid="true"]'];let h=null;for(const T of M)if(h=document.querySelector(T),h)break;if(!h)return;const _=null!==(m=h.closest(".sv-question, .sv-row, .sv-page"))&&void 0!==m?m:h,R=this.computeStickyHeaderHeight();_.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{const T=_.getBoundingClientRect();T.top<R+f&&window.scrollBy({top:T.top-(R+f),behavior:"smooth"});const P=_.querySelector("input, select, textarea, button, [tabindex]");null==P||P.focus({preventScroll:!0})},u)})}computeStickyHeaderHeight(){return Array.from(document.querySelectorAll("header, .hub-header, .site-header")).filter(u=>{const m=getComputedStyle(u);return["fixed","sticky"].includes(m.position)&&u.getBoundingClientRect().top<=0&&u.offsetHeight>0}).reduce((u,m)=>u+m.getBoundingClientRect().height,0)}}}}]);

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.