PageSourceSearch

https://go.dzi.bg/123.a06a1318a3e95eb9.js

js dzi.bg collected 2026-10-08 20:45:05 UTC 6,516 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapplication=self.webpackChunkapplication||[]).push([[123],{75123:(k,b,s)=>{s.r(b),s.d(b,{AuthenticationBridgeModule:()=>v,StarterService:()=>h});var l=s(30803),d=s(66728),f=s(74523),A=s(92771),B=s(56977),C=s(96697),a=s(54438),g=s(60177),P=s(19629),D=s(77568);function w(u,t){if(1&u&&a.nrm(0,"systemcode-loader",3),2&u){const e=a.XpG();a.Y8G("loaderMesage",e.loaderMesage)}}function U(u,t){if(1&u&&a.nrm(0,"systemcode-policy-failure",4),2&u){const e=a.XpG();a.Y8G("paymentFailureData",e.invalidAuthData)}}class c{constructor(t,e,i,n,o,r){this.authBridgeService=t,this.router=e,this.route=i,this.datePipe=n,this.cityService=o,this.env=r,this.loaderMesage={loader_message:"Loading",loader_css:"big",loader_shown_css:"app-loader",showSpinner:!0},this.destroyed$=new A.m(1),this.productCode=d.D0h.MTPL,this.dateFormat="ddMMyyyy",this.showErrorScreen=!1,this.invalidAuthData={title:"Technical error",content1:"The request cannot be performed.",content2:"Please contact our support for further assistance.",primaryButtonText:"Back to dashboard",primaryButtonLink:"dashboard",secondaryButtonText:"",secondaryButtonLink:""},this.authBridgeService.setFlowFrom(d.n7n.UBB);const p=this.getCookie("platform");this.authBridgeService.setPlatform(p)}ngOnInit(){var t=this;return(0,f.A)(function*(){yield t.setAuthBridgeData()})()}setAuthBridgeData(){var t=this;return(0,f.A)(function*(){const e=t.getCookie("x-access-token");if(t.route.queryParams.pipe((0,B.Q)(t.destroyed$)).subscribe(o=>{o.pc&&(t.productCode=o.pc,console.log("UBB Mobile productCode in AuthBridgeComponent is: ",t.productCode))}),"en"===sessionStorage.getItem("lang")&&!1===t.env.UBB.enableEnglishVersion){const o=window.location.href.toString().split("/"),r=o.findIndex(p=>"en"===p);-1!=r&&(o.splice(r,1),window.location.replace(o.join("/")))}console.log("COOKIES: ",document.cookie);const n=t.getCookie("platform");if(t.authBridgeService.setPlatform(n),console.log("dis is the decoded authbridgetoken: ",e),e)try{if(sessionStorage.setItem("back_to_origin","dashboard/insurance-services"),t.isUbbProfile())yield t.initUbbProfileEntry(e);else{const o=yield t.authBridgeService.bridgeAuthApi(e).toPromise();o?(o.data.productCode=t.productCode,!o.data?.city&&o.data?.postCode&&(o.data.city=t.cityService.getCitiesByName(o.data.postCode)[0]||{id:"",postal_code:"",title:""}),t.authBridgeService.setAuthBridgeData(o.data),yield t.processVerifyTokenResponse(o)):(t.invalidAuthData.content1="Invalid response",t.showErrorScreen=!0)}}catch(o){t.invalidAuthData.content1=o instanceof Error?o.message:"",t.showErrorScreen=!0}else t.invalidAuthData.content1="Token not found",t.showErrorScreen=!0})()}initUbbProfileEntry(t){var e=this;return(0,f.A)(function*(){e.authBridgeService.bridgeAuthUbb(t).subscribe(i=>{const n=i.data?.data;if(console.log("received userdatadata : ",n),i.success){const o={success:i.success,data:e.authBridgeService.mapUserDataToAuthBridgeTokenDto(n)};console.log("mapped authbridgetokendto response: ",o),e.authBridgeService.setAuthBridgeData(o.data),e.authBridgeService.setUserData(n),e.processVerifyTokenResponse(o)}})})()}isUbbProfile(){let t=!1;return this.route.url.subscribe(e=>{"ubb-profile"===e[0].path&&(t=!0)}),t}processVerifyTokenResponse(t){var e=this;return(0,f.A)(function*(){if(t.success)if(console.log("SUCCESS [auth/ubb-authentication]",t),t.data){console.log("PROCESSING DATA");const i=t.data,n=i.birthDate,o=n?e.datePipe.transform(new Date(n),e.dateFormat):void 0;i.birthDate=o;const r={state:i},p=yield e.route.data.pipe((0,C.s)(1)).toPromise();yield e.router.navigate([p.targetPage],r)}else e.invalidAuthData.content1="Missing backend data",e.showErrorScreen=!0;else e.invalidAuthData.content1=t.error||"Authentication error",e.showErrorScreen=!0})()}getCookie(t){const e=t+"=",n=decodeURIComponent(document.cookie).split(";");for(let o=0;o<n.length;o++){let r=n[o];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(e))return r.substring(e.length,r.length)}return""}static{this.\u0275fac=function(e){return new(e||c)(a.rXU(d.r1B),a.rXU(l.Ix),a.rXU(l.nX),a.rXU(g.vh),a.rXU(d.ho_),a.rXU(d.Kmu))}}static{this.\u0275cmp=a.VBU({type:c,selectors:[["ng-component"]],decls:4,vars:2,consts:[[3,"loaderMesage",4,"ngIf"],[1,"not-found-parent-div"],[3,"paymentFailureData",4,"ngIf"],[3,"loaderMesage"],[3,"paymentFailureData"]],template:function(e,i){1&e&&(a.DNE(0,w,1,1,"systemcode-loader",0),a.j41(1,"div",1),a.DNE(2,U,1,1,"systemcode-policy-failure",2),a.k0s(),a.nrm(3,"router-outlet")),2&e&&(a.Y8G("ngIf",!i.showErrorScreen),a.R7$(2),a.Y8G("ngIf",i.invalidAuthData&&i.showErrorScreen))},dependencies:[l.n3,g.bT,P.V,D._],styles:["[_nghost-%COMP%]{display:block}.dot-spinner[_ngcontent-%COMP%]{color:#ff4500}"]})}}const E=[{path:"mtpl",component:c,data:{title:"Authentication",isHeaderVisible:!1,targetPage:"/mtpl",headerShowFlowProgress:!1}},{path:"claims",component:c,data:{title:"Authentication",isHeaderVisible:!1,targetPage:"/claims",headerShowFlowProgress:!1}},{path:"property-insurance",component:c,data:{title:"Authentication",isHeaderVisible:!1,targetPage:"/property-insurance",headerShowFlowProgress:!1}},{path:"payment-of-installment",component:c,data:{title:"Authentication",isHeaderVisible:!1,targetPage:"/policy-payment/search-policy",headerShowFlowProgress:!1}},{path:"payment-of-instalments",component:c,data:{title:"Authentication",isHeaderVisible:!1,targetPage:"/policy-payment/search-policy",headerShowFlowProgress:!1}},{path:"travel-insurance",component:c,data:{title:"Authentication",isHeaderVisible:!1,targetPage:"/travel",headerShowFlowProgress:!1}},{path:"ubb-profile",component:c,data:{title:"Authentication",isHeaderVisible:!1,targetPage:"/dashboard/home/user-info",headerShowFlowProgress:!1}},{path:"**",component:d.Q5z,data:{title:d.eWh.PAGE_NOT_FOUND_TIT
1LE,isHeaderVisible:!1,headerShowFlowProgress:!1}}];class m{static{this.\u0275fac=function(e){return new(e||m)}}static{this.\u0275mod=a.$C({type:m})}static{this.\u0275inj=a.G2t({imports:[l.iI.forChild(E),l.iI]})}}var S=s(21626);class y{static{this.\u0275fac=function(e){return new(e||y)}}static{this.\u0275mod=a.$C({type:y})}static{this.\u0275inj=a.G2t({imports:[g.MD,d.Ui,S.q1,g.MD,d.Ui,S.q1]})}}class v{static{this.\u0275fac=function(e){return new(e||v)}}static{this.\u0275mod=a.$C({type:v})}static{this.\u0275inj=a.G2t({imports:[m,y]})}}new a.nKC("BASE_ROUTE");class h{constructor(){}start(t){}static{this.\u0275fac=function(e){return new(e||h)}}static{this.\u0275prov=a.jDH({token:h,factory:h.\u0275fac})}}}}]);

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.