PageSourceSearch

https://www.tax-free.no/chunk-PQIFCJJ5.js

js tax-free.no collected 2026-10-06 15:01:59 UTC 3,765 bytes, 1 lines download raw bytes

1import{d as m,e as $,g as h}from"./chunk-N4SAKXVX.js";import"./chunk-LJH5OBMW.js";import{$e as V,Ad as T,F as j,Fd as w,Ge as k,L as I,Pa as S,Re as F,Sf as E,Ue as L,Uf as H,V as R,Ve as D,Ye as b,b as O,c as U,ga as d,lf as x,o as N,pb as a,qa as n,ra as s,rf as _,sa as f,ta as i,ua as c,vf as P,yg as p,zf as Z,zg as l}from"./chunk-PMSJWPYZ.js";import{a as C}from"./chunk-NIF3MU5U.js";var Q=new f("UserAccountNormalizer");var q=new f("VerificationTokenNormalizer"),B=new f("LoginFormSerializer"),u=class{},A=(()=>{class e{constructor(t){this.adapter=t}get(t){return this.adapter.load(t)}createVerificationToken(t){return this.adapter.createVerificationToken(t)}static{this.\u0275fac=function(r){return new(r||e)(i(u))}}static{this.\u0275prov=n({token:e,factory:e.\u0275fac})}}return e})(),g=(()=>{class e{constructor(t,r,o){this.userAccountConnector=t,this.userIdService=r,this.query=o,this.userQuery=this.query.create(()=>this.userIdService.takeUserId(!0).pipe(d(v=>this.userAccountConnector.get(v))),{reloadOn:[h],resetOn:[l,p]})}getById(t){return this.userAccountConnector.get(t)}get(){return this.userQuery.get()}static{this.\u0275fac=function(r){return new(r||e)(i(A),i(H),i(P))}}static{this.\u0275prov=n({token:e,factory:e.\u0275fac})}}return e})(),z=(()=>{class e{constructor(){this.connector=c(A),this.command=c(_),this.createVerificationTokenCommand=this.command.create(({verificationTokenCreation:t})=>this.connector.createVerificationToken(t))}createVerificationToken(t){return this.createVerificationTokenCommand.execute({verificationTokenCreation:t})}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=n({token:e,factory:e.\u0275fac})}}return e})(),Y=[g,{provide:m,useExisting:g},z,{provide:$,useExisting:z}],G=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=a({type:e})}static{this.\u0275inj=s({providers:[A,...Y]})}}return e})();var J={backend:{occ:{endpoints:{user:"users/${userId}",createVerificationToken:"users/anonymous/verificationToken"}}}},X={"Content-Type":"application/json"},ee=(()=>{class e{constructor(t,r,o){this.http=t,this.occEndpoints=r,this.converter=o,this.logger=c(V)}load(t){let r=this.occEndpoints.buildUrl("user",{urlParams:{userId:t}});return this.http.get(r).pipe(I(o=>{throw E(o,this.logger)}),this.converter.pipeable(Q))}createVerificationToken(t){let r=this.occEndpoints.buildUrl("createVerificationToken"),o=b.createHeader(D,!0,new T(C({},X)));return t=this.converter.convert(t,B),this.http.post(r,t,{headers:o}).pipe(I(v=>{throw E(v,this.logger)}),this.converter.pipeable(q))}static{this.\u0275fac=function(r){return new(r||e)(i(w),i(x),i(Z))}}static{this.\u0275prov=n({token:e,factory:e.\u0275fac})}}return e})(),K=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=a({type:e})}static{this.\u0275inj=s({providers:[k(J),{provide:u,useClass:ee}]})}}return e})();var M=(()=>{class e extends g{winRef=c(L);reload$=new U;userQuery=this.query.create(()=>this.userIdService.getUserId().pipe(R(),j(Boolean),d(t=>t===F?N(null):this.userAccountConnector.get(t))),{reloadOn:[h,this.reload$],resetOn:[l,p]});geoPosition$=new O(t=>{this.winRef.nativeWindow.navigator.geolocation.getCurrentPosition(r=>{t.next(r),t.complete()},()=>t.error())});getState(){return this.userQuery.getState()}reload(){this.reload$.next()}getGeoPosition(){return this.geoPosition$}static \u0275fac=(()=>{let t;return function(o){return(t||(t=S(e)))(o||e)}})();static \u0275prov=n({token:e,factory:e.\u0275fac})}return e})();var Se=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=a({type:e});static \u0275inj=s({providers:[M,{provide:m,useExisting:M}],imports:[G,K]})}return e})();export{Se as TrnUserAccountCoreModule};

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.