PageSourceSearch

https://nettbank.bnbank.no/ebank/web/9235/chunk-Cu48M9Zp.js

js bnbank.no collected 2026-10-01 12:08:05 UTC 5,206 bytes, 1 lines download raw bytes

1import {Z as Ze,z as ze,X as Xe}from'./chunk-iDvfS1Q9.js';import'./chunk-BebzX4yH.js';import {z as b,am as qe}from'./chunk-sloV_gFh.js';import {E as E$3}from'./main-KAAHWV4Z.js';import {L as Do,E as E$1,d as E$2,P as qT,a3 as Ms,c2 as qy,a5 as rd,cp as ct,bm as br,g as Df,w as we,eM as Sf,j as Sa,fa as $e,fY as gf,ec as aR,eQ as j$,bJ as VO,bg as m0,bG as sB,bM as Ys,bh as _e,c8 as H8,ca as Pf,cX as X3,bi as dn,cF as eR,cH as co,cI as Ch,cY as uo,cZ as Nl,bu as mn,a2 as ye,a4 as ky,aM as N_,a6 as mC,ad as c_,c3 as HC,aa as mb,a8 as Ry,bv as R_,ab as gC,ba as cv,d6 as tT,d7 as nT,b as $n,v as vM,be as na,$ as $N,h as he,p as pi,N,W,cz as bw}from'./chunk-BVUwsCyn.js';import'./chunk-DfNmovlP.js';import'./chunk-yM6K_b1X.js';import'./chunk-fRit9228.js';import'./chunk-4lR12NlP.js';$n();vM();na();$N();he();pi();vM();na();$N();function be(o,e){o&1&&(ky(0,"source-of-funds-private",5),tT()),o&2&&(Ry("isRequired",true),nT());}function ge(o,e){o&1&&(Ms(0,"ebank-information-area",6),ky(1,"ebank-information-area-custom-template",2),N_(2,"translate"),rd()),o&2&&(mb(),Ry("innerHTML",R_(2,1,"MODULE.VALIDATION.FORM.INVALID"),bw));}var g=class o{constructor(e,r,t,m){this.formBuilder=e;this.changeDetector=r;this.dialog=t;this.customerStaticDeclarationsService=m;this.formSubmitSuccess=new ct;this.formSubmitError=new ct;this.formInitError=new ct;this.submitting$=new br(false);this.loading$=new br(false);this.pending$=new br(false);}ngOnInit(){this.form=this.formBuilder.group({}),this.loading$.next(true),this.customerStaticDeclarationsService.getDeclarations().pipe(Df(),we(e=>{let r=e.find(t=>t.declarationType==="funds_origin");if(!r)throw Error("Source-of-funds declaration is required but not found");return r}),Sf(e=>{this.declaration=E$3({},e),this.form.addControl("fundsOrigins",this.formBuilder.control(null)),this.changeDetector.detectChanges(),this.form.patchValue({fundsOrigins:e.fundsOrigins});}),Sa(e=>(this.formInitError.emit(e),$e)),gf(()=>{this.loading$.next(false);})).subscribe();}onSubmit(){this.form.invalid||(this.modalRef=this.dialog.open(Ze),this.formSubmitter=new b(this.form,this.submitting$),this.formSubmitter.registerOnSubmit(()=>(this.declaration.fundsOrigins=this.form.value.fundsOrigins,this.customerStaticDeclarationsService.putDeclaration(this.declaration).pipe(gf(()=>{this.modalRef.close();})))),this.formSubmitter.submit().pipe(Df(),Sf(()=>{this.form.markAsPristine(),this.formSubmitSuccess.emit();}),Sa(e=>(this.formSubmitError.emit(e),$e))).subscribe());}static{this.\u0275fac=function(r){return new(r||o)(Do(aR),Do(j$),Do(VO),Do(ze))};}
1static{this.\u0275cmp=qT({type:o,selectors:[["source-of-funds"]],inputs:{formSubmitButtonText:"formSubmitButtonText"},outputs:{formSubmitSuccess:"formSubmitSuccess",formSubmitError:"formSubmitError",formInitError:"formInitError"},decls:15,vars:14,consts:[["declarationsForm","ngForm"],[1,"source-of-funds"],[3,"innerHTML"],[3,"loading"],["ebankScrollToError","",1,"ebank-form","ebank-form-input",3,"ngSubmit","formGroup"],["formControlName","fundsOrigins",3,"isRequired"],["level","error"],["id","submit","type","submit"]],template:function(r,t){if(r&1&&(Ms(0,"section",1)(1,"ebank-lead-block"),ky(2,"p",2),N_(3,"translate"),rd(),Ms(4,"ebank-spinner",3),N_(5,"async"),N_(6,"async"),Ms(7,"form",4,0),qy("ngSubmit",function(){return t.onSubmit()}),mC(9,be,1,1,"source-of-funds-private",5),mC(10,ge,3,3,"ebank-information-area",6),Ms(11,"ebank-action-row")(12,"ebank-button",7),c_(13),N_(14,"translate"),rd()()()()()),r&2){let m=HC(8);mb(2),Ry("innerHTML",R_(3,6,"PAGE.CUSTOMER.DECLARATIONS.NEW.FUNDS_ORIGIN.SUB.HEADER"),bw),mb(2),Ry("loading",R_(5,8,t.loading$)||R_(6,10,t.submitting$)),mb(3),Ry("formGroup",t.form),mb(2),gC(t.form.get("fundsOrigins")?9:-1),mb(),gC(m.submitted&&t.form.invalid?10:-1),mb(3),cv(R_(14,12,t.formSubmitButtonText));}},dependencies:[m0,sB,Ys,_e,H8,Pf,X3,qe,Xe,dn,eR,co,Ch,uo,Nl,mn,ye],encapsulation:2,changeDetection:1});}};vM();N();W();var E=class o{constructor(e,r){this.alert=e;this.log=r;this.onFormInitError=e=>{this.log.error("[SourceOfFundsPageComponent] Error while loading static declarations",e),this.alert.serverError(e,"PAGE.KYC.AML.GET_DECLARATIONS_ERROR");};this.onFormSubmitSuccess=()=>{this.alert.success("PAGE.CUSTOMER.DECLARATIONS.SAVE_ANSWERS.SUCCESS");};this.onFormSubmitError=e=>{this.log.error("[SourceOfFundsPageComponent] Error while updating static declarations",e),this.alert.serverError(e,"PAGE.CUSTOMER.DECLARATIONS.SAVE_ANSWERS.ERROR");};}static{this.\u0275fac=function(r){return new(r||o)(Do(E$1),Do(E$2))};}
1static{this.\u0275cmp=qT({type:o,selectors:[["ng-component"]],decls:1,vars:0,consts:[["formSubmitButtonText","PAGE.CUSTOMER.DECLARATIONS.CONFIRM",3,"formInitError","formSubmitSuccess","formSubmitError"]],template:function(r,t){r&1&&(Ms(0,"source-of-funds",0),qy("formInitError",function(C){return t.onFormInitError(C)})("formSubmitSuccess",function(){return t.onFormSubmitSuccess()})("formSubmitError",function(C){return t.onFormSubmitError(C)}),rd());},dependencies:[g],encapsulation:2,changeDetection:1});}};var Je=[{path:"",component:E,data:{name:"source-of-funds",title:"PAGE.SOURCE_OF_FUNDS.TITLE",ebankuiPage:"medium"}}];export{Je as SOURCE_OF_FUNDS_ROUTES};

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.