PageSourceSearch

https://asunnot.oikotie.fi/angular/js/3091.50db7eade877a11b.js

js oikotie.fi collected 2026-10-01 10:18:33 UTC 7,684 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkota=self.webpackChunkota||[]).push([[3091],{80171(E,l,e){e.d(l,{r:()=>c});var t=e(62552),a=e(56872),r=e(279);let c=(()=>{var f;class n{constructor(){(0,t.WQX)(a.be).bootstrap(document.documentElement,[...r.m],{strictDi:!0})}static#t=f=()=>(this.\u0275fac=function(S){return new(S||n)},this.\u0275mod=t.$C({type:n}),this.\u0275inj=t.G2t({imports:[a.be]}))}return f(),n})()},73091(E,l,e){e.r(l),e.d(l,{BASE_PATH:()=>I,SECTION_PARAM:()=>m,USER_ACCOUNT_SETTINGS_ROUTES:()=>M,default:()=>$,initialTabResolve:()=>C,sectionIsValid:()=>U});var t=e(62552),a=e(98766),r=e(21152),c=e(68754),f=e(98620),n=e(6215),o=e(5445),p=e(32479),S=e(17862),d=e(99388),T=e(75231),g=e(17713),D=e(84754),F=e(53961),h=e(17791);let R=(()=>{var u;class s{constructor(){this.http=(0,t.WQX)(D.Qq),this.resourceErrorHandlerService=(0,t.WQX)(F.O)}getPageContent(){const i=this.http.get("/api/1/privacy-settings/page-content");return(0,h.T)(i).catch(v=>(this.resourceErrorHandlerService.handleError(v),Promise.reject(null)))}getSettings(){const i=this.http.get("/api/1/privacy-settings/settings");return(0,h.T)(i).catch(v=>(this.resourceErrorHandlerService.handleError(v),Promise.reject(null)))}updateSetting(i,v){const O=this.http.put(`/api/1/privacy-settings/settings/${i}`,{allowed:v});return(0,h.T)(O).catch(x=>(this.resourceErrorHandlerService.handleError(x),Promise.reject(null)))}static#t=u=()=>(this.\u0275fac=function(v){return new(v||s)},this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}))}return u(),s})(),y=(()=>{var u;class s{constructor(){this.actions$=(0,t.WQX)(r.En),this.privacySettingsResourceService=(0,t.WQX)(R),this.loadPageContent$=(0,r.EH)(()=>this.actions$.pipe((0,r.gp)(g.D.init),(0,n.n)(()=>(0,o.H)(this.privacySettingsResourceService.getPageContent()).pipe((0,p.T)(i=>g.D.loadPageContentSuccess({pageContent:i})),(0,S.W)(()=>(0,d.of)(g.D.loadPageContentFailure({error:"Failed to load page content"}))))))),this.loadSettings$=(0,r.EH)(()=>this.actions$.pipe((0,r.gp)(g.D.init),(0,n.n)(()=>(0,o.H)(this.privacySettingsResourceService.getSettings()).pipe((0,p.T)(i=>g.D.loadSettingsSuccess({settings:i})),(0,S.W)(()=>(0,d.of)(g.D.loadSettingsFailure({error:"Failed to load settings"}))))))),this.updateSetting$=(0,r.EH)(()=>this.actions$.pipe((0,r.gp)(g.D.updateSetting),(0,T.Z)(({settingId:i,allowed:v})=>(0,o.H)(this.privacySettingsResourceService.updateSetting(i,v)).pipe((0,p.T)(O=>g.D.updateSettingSuccess({setting:O})),(0,S.W)(()=>(0,d.of)(g.D.updateSettingFailure({settingId:i,error:"Failed to update setting"})))))))}static#t=u=()=>(this.\u0275fac=function(v){return new(v||s)},this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac}))}return u(),s})();var N=e(91488),P=e(68057);let L=(()=>{var u;class s{constructor(){this.http=(0,t.WQX)(D.Qq)}getVendProfile(){const i=this.http.get("/api/1/user/vend-profile");return(0,h.T)(i)}static#t=u=()=>(this.\u0275fac=function(v){return new(v||s)},this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}))}return u(),s})();var W=e(2320);let H=(()=>{var u;class s{constructor(){this.actions$=(0,t.WQX)(r.En),this.resource=(0,t.WQX)(L),this.logger=(0,t.WQX)(W.g),this.load$=(0,r.EH)(()=>this.actions$.pipe((0,r.gp)(P.I.init),(0,n.n)(()=>(0,o.H)(this.resource.getVendProfile()).pipe((0,p.T)(i=>null===i?P.I.loadFailure({error:P.H.NoProfile}):P.I.loadSuccess({vendProfile:i})),(0,S.W)(i=>(this.logger.error("UserAccountInformation load failed",i),(0,d.of)(P.I.loadFailure({error:P.H.LoadFailed}))))))))}static#t=u=()=>(this.\u0275fac=function(v){return new(v||s)},this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac}))}return u(),s})();var B=e(91032),A=e(80557),Q=e(80171);const I="asetukset",m="section",U=u=>{const s=u.paramMap.get(m);return!(s&&!A.NR.has(s))||(0,t.WQX)(a.Ix).parseUrl("/"+I)},C=u=>{const s=u.paramMap.get(m);return null===s?A.Gt.ACCOUNT_INFORMATION:A.NR.get(s)??A.Gt.ACCOUNT_INFORMATION},M=[{path:"",providers:[(0,t.oKB)(Q.r),function V(){return(0,t.EmA)([(0,c.vQ)(f.Qi),(0,c.vQ)(N.AF),(0,r.SI
1)(y),(0,c.vQ)(B.$$),(0,r.SI)(H)])}()],children:[{path:I,loadComponent:()=>e.e(9127).then(e.bind(e,59127)).then(u=>u.UserAccountSettingsComponent),resolve:{initialTab:C}},{path:`${I}/:${m}`,loadComponent:()=>e.e(9127).then(e.bind(e,59127)).then(u=>u.UserAccountSettingsComponent),canActivate:[U],resolve:{initialTab:C}}]}],$=M},17713(E,l,e){e.d(l,{D:()=>a});var t=e(68754);const a=(0,t.EQ)({source:"PrivacySettings",events:{Init:(0,t.w5)(),"Load Page Content Success":(0,t.xk)(),"Load Page Content Failure":(0,t.xk)(),"Load Settings Success":(0,t.xk)(),"Load Settings Failure":(0,t.xk)(),"Update Setting":(0,t.xk)(),"Update Setting Success":(0,t.xk)(),"Update Setting Failure":(0,t.xk)()}})},91488(E,l,e){e.d(l,{AF:()=>f,tB:()=>r});var t=e(68754),a=e(17713);const r="PrivacySettings",f=(0,t.VG)({name:r,reducer:(0,t.vy)({pageContent:null,settings:[],pageContentLoading:!1,settingsLoading:!1,updatingSettingIds:[],pendingUpdatePreviousValues:{},error:null,updateError:null},(0,t.on)(a.D.init,n=>({...n,pageContentLoading:!0,settingsLoading:!0,error:null,updateError:null})),(0,t.on)(a.D.loadPageContentSuccess,(n,{pageContent:o})=>({...n,pageContent:o,pageContentLoading:!1})),(0,t.on)(a.D.loadPageContentFailure,(n,{error:o})=>({...n,error:o,pageContentLoading:!1})),(0,t.on)(a.D.loadSettingsSuccess,(n,{settings:o})=>({...n,settings:o,settingsLoading:!1})),(0,t.on)(a.D.loadSettingsFailure,(n,{error:o})=>({...n,error:o,settingsLoading:!1})),(0,t.on)(a.D.updateSetting,(n,{settingId:o,allowed:p})=>{const S=n.settings.find(d=>d.id===o)?.allowed??!1;return{...n,settings:n.settings.map(d=>d.id===o?{...d,allowed:p}:d),updatingSettingIds:[...n.updatingSettingIds,o],pendingUpdatePreviousValues:{...n.pendingUpdatePreviousValues,[o]:S},updateError:null}}),(0,t.on)(a.D.updateSettingSuccess,(n,{setting:o})=>{const{[o.id]:p,...S}=n.pendingUpdatePreviousValues;return{...n,settings:n.settings.map(d=>d.id===o.id?o:d),updatingSettingIds:n.updatingSettingIds.filter(d=>d!==o.id),pendingUpdatePreviousValues:S}}),(0,t.on)(a.D.updateSettingFailure,(n,{settingId:o,error:p})=>{const S=n.pendingUpdatePreviousValues[o],{[o]:d,...T}=n.pendingUpdatePreviousValues;return{...n,settings:void 0===S?n.settings:n.settings.map(g=>g.id===o?{...g,allowed:S}:g),updatingSettingIds:n.updatingSettingIds.filter(g=>g!==o),pendingUpdatePreviousValues:T,updateError:p}}))})},7021(E,l,e){e.d(l,{t:()=>a});const a=(0,e(68754).VP)("[User Account Settings] Select Tab",r=>({tab:r}))},98620(E,l,e){e.d(l,{DF:()=>c,Qi:()=>n});var t=e(68754),a=e(7021),r=e(80557);const c="UserAccountSettings",n=(0,t.VG)({name:c,reducer:(0,t.vy)({activeTab:r.Gt.ACCOUNT_INFORMATION},(0,t.on)(a.t,(o,{tab:p})=>({...o,activeTab:p})))})},68057(E,l,e){e.d(l,{H:()=>a,I:()=>r});var t=e(68754),a=function(c){return c.NoProfile="no-profile",c.LoadFailed="load-failed",c}(a||{});const r=(0,t.EQ)({source:"UserAccountInformation",events:{Init:(0,t.w5)(),"Load Success":(0,t.xk)(),"Load Failure":(0,t.xk)()}})},91032(E,l,e){e.d(l,{$$:()=>f,k8:()=>r});var t=e(68754),a=e(68057);const r="UserAccountInformation",f=(0,t.VG)({name:r,reducer:(0,t.vy)({vendProfile:null,loading:!1,error:null},(0,t.on)(a.I.init,n=>({...n,loading:!0,error:null})),(0,t.on)(a.I.loadSuccess,(n,{vendProfile:o})=>({...n,vendProfile:o,loading:!1,error:null})),(0,t.on)(a.I.loadFailure,(n,{error:o})=>({...n,vendProfile:null,error:o,loading:!1})))})},80557(E,l,e){e.d(l,{ET:()=>a,Gt:()=>t,NR:()=>r});var t=function(c){return c[c.ACCOUNT_INFORMATION=0]="ACCOUNT_INFORMATION",c[c.PRIVACY_SETTINGS=1]="PRIVACY_SETTINGS",c}(t||{});const a=[t.ACCOUNT_INFORMATION,t.PRIVACY_SETTINGS],r=new Map([["oma-tili",t.ACCOUNT_INFORMATION],["yksityisyys",t.PRIVACY_SETTINGS]])}}]);

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.