PageSourceSearch

https://asunnot.oikotie.fi/angular/js/9839.c31259570c5a2dc0.js

js oikotie.fi collected 2026-09-24 08:51:03 UTC 3,870 bytes, 1 lines download raw bytes

1(self.webpackChunkota=self.webpackChunkota||[]).push([[9839],{9839(p,G,e){"use strict";e.d(G,{PagesGuardsModule:()=>K});var l=e(62552),m=e(56872),g=e(35747);const h=[{path:"**",component:(()=>{var s;class t{static#e=s=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=l.VBU({type:t,selectors:[["ng-component"]],standalone:!1,decls:0,vars:0,template:function(r,v){},encapsulation:2}))}return s(),t})()}];let f=(()=>{var s;class t{static#e=s=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275mod=l.$C({type:t}),this.\u0275inj=l.G2t({imports:[g.iI.forChild(h),g.iI]}))}return s(),t})();var n=e(10127),i=e(52287),c=e(92740),I=e.n(c);const L={controller:(()=>{class s{constructor(a,o){this._GuardResource=a,this._ModalService=o,this.id=I()()}deleteGuard(){this.loading=!0,this._GuardResource.delete(this.guardId).then(()=>{this._ModalService.close(`deleteGuard${this.id}`),this.onDelete({guardId:this.guardId})}).catch(()=>{this.error=!0}).finally(()=>{this.loading=!1})}}return s.$inject=["GuardResource","ModalService"],s})(),templateUrl:"/template/guard/components/delete-guard",bindings:{guardId:"<",title:"<",onDelete:"&"}};var R=e(68534);const j={templateUrl:"/template/guard/components/guard",controller:class U{constructor(){this.visible=!1,this.frequency=null}$onInit(){this.guard.frequencies.map(t=>{t.type===R.GUARD_TYPE_EMAIL&&(this.frequency=t.frequency)}),this.visible=this.guard.decoratedParams.length<=4}deleteGuard(){this.onDelete({guardId:this.guard.guard_id})}},bindings:{guard:"<",onDelete:"&"}},O={controller:(()=>{class s{constructor(a,o,r,v,u){this._$q=a,this._$log=o,this._GuardResource=r,this._DecorateResource=v,this._SearchParams=u}$onInit(){this.loading=!0,this._GuardResource.getAll().then(a=>a.filter(o=>o.isValidGuard)).then(a=>this._decorateGuards(a)).then(a=>{this.guards=a}).catch(a=>{this._$log.error(a),this.error=!0}).finally(()=>{this.loading=!1})}_decorateGuards(a){return this._$q.all(a.map(o=>{const r=new this._SearchParams;return r.setParams(o.params),this._DecorateResource.searchParams(r.
1serialize()).then(v=>(o.decoratedParams=Object.values(v.reduce((u,d)=>(u[d.key]?u[d.key].values.push(d.decoratedValue):u[d.key]={key:d.translatedKey,values:[d.decoratedValue]},u),{})),o))}))}deleteGuard(a){this.guards=this.guards.filter(({guard_id:o})=>o!==a)}}return s.$inject=["$q","$log","GuardResource","DecorateResource","searchParamFactory"],s})(),templateUrl:"/template/guard/components/guards"};var x=e(62265),N=e(67099);const D="otAsunnot:resources:decorate";n.module(D,["otAsunnot:common:resources:config"]).service("DecorateResource",(0,x.f$)(N.n));const T=D;var F=e(56547),S=e(99716),B=e(62450),H=e.n(B);function A(s){return{link:function(t,a,o){const r=a[0];r.offsetHeight<r.scrollHeight&&r.classList.add(o.overflowClass),s.addEventListener("resize",H()(()=>{r.offsetHeight<r.scrollHeight?r.classList.add(o.overflowClass):r.classList.remove(o.overflowClass)},300),!1)}}}A.$inject=["$window"];const V=A,E="otAsunnot:overflowing";angular.module(E,[]).directive("overflowClass",V);const y=E,M="otAsunnot:guard:own-page";n.module(M,["otAsunnot:common:modal",F.A,T,S.A,y]).component("deleteGuard",L).component("guards",O).component("guard",j);const W=M;var z=e(60953);const $="otAsunnot:page:guard";n.module($,[i.A,W,y,z.A]);const X=$;var P=e(96311),J=e(279);let K=(()=>{var s;class t{constructor(){(0,l.WQX)(m.be).bootstrap(document.documentElement,[...J.m,X,...P.m],{strictDi:!0})}static#e=s=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275mod=l.$C({type:t}),this.\u0275inj=l.G2t({imports:[m.be,f,P.N]}))}return s(),t})()},62450(p,G,e){var l=e(88425),m=e(75905);p.exports=function C(h,f,n){var i=!0,c=!0;if("function"!=typeof h)throw new TypeError("Expected a function");return m(n)&&(i="leading"in n?!!n.leading:i,c="trailing"in n?!!n.trailing:c),l(h,f,{leading:i,maxWait:f,trailing:c})}}}]);

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.