PageSourceSearch

https://niedergesteln.ch/chunk-QYYPNJ6S.js

js niedergesteln.ch collected 2026-10-02 21:24:45 UTC 7,247 bytes, 1 lines download raw bytes

1import{a as O}from"./chunk-3UASSENF.js";import{a as me}from"./chunk-4OEAZMH6.js";import"./chunk-6ECCDRXC.js";import{a as M,b as v,c as S}from"./chunk-KOS7ONBV.js";import"./chunk-MLLYMKYM.js";import{a as P}from"./chunk-DMWEYSJJ.js";import"./chunk-56H5GETA.js";import"./chunk-HZROQJYF.js";import{a as ce}from"./chunk-MQJVS6YN.js";import"./chunk-FSHO3MDX.js";import"./chunk-Q5GFRMIJ.js";import"./chunk-GF4MUCA5.js";import"./chunk-L7CZ7KZJ.js";import"./chunk-EGEZVPFL.js";import"./chunk-XI4BVK43.js";import"./chunk-P7NT46OC.js";import"./chunk-KGVSSNKG.js";import"./chunk-SNLWLY4Z.js";import"./chunk-UWX6DGTZ.js";import{c as ie,d as ne,k as ae}from"./chunk-U2NOKKVY.js";import{$ as k,$a as j,Ac as Q,Cc as X,Da as c,Ge as Y,Hb as x,I as w,Ia as m,Jb as q,Kf as se,La as E,Ma as u,Mf as b,Qa as B,Rb as z,Sb as H,W as R,We as Z,Yb as W,_a as L,aa as h,ac as p,bb as D,bc as l,bf as ee,cb as V,cc as G,db as A,ea as F,eb as _,fa as T,fb as a,gb as s,h as d,hb as N,hf as te,ob as U,qa as $,qb as f,sb as C,sc as J,tf as re,uf as oe,yc as K}from"./chunk-JJXGM4WM.js";var y=(()=>{class t extends ee{init(){return new Promise(e=>d(this,null,function*(){return this.loading$.next(!0),this.reset(),yield this.getAllItems(),yield this.getItems(),this.loading$.next(!1),e(this.items)}))}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=$(t)))(i||t)}})()}static{this.\u0275prov=k({token:t,factory:t.\u0275fac})}}return t})();var de=()=>({fullscreenControl:!0}),he=(t,g,e,n,i,r)=>({id:t,published:g,canEdit:e,thumbnail:null,type:null,categories:n,title:i,subtitle:r,openings:null,accessibility:null,button:"MORE_DETAILS"});function ue(t,g){if(t&1){let e=U();a(0,"div",9),f("click",function(i){F(e);let r=C().$implicit;return C().megaOpenLinkService.openMap(r.address),T(i.stopPropagation())}),a(1,"mat-icon"),x(2,"location_on"),s(),x(3),p(4,"megaAddress"),s()}if(t&2){let e=C().$implicit;c(3),q("",l(4,1,e.addressComponents)," ")}}function _e(t,g){if(t&1&&(a(0,"megaCMS-list-card-component",5),p(1,"translate"),p(2,"date"),L(3,ue,5,3,"div",8),s()),t&2){let e=g.$implicit;_("attributes",W(7,he,e.id,e.published,e.canEdit,e.categories,e.title,l(1,2,"REPORTED_THE")+" "+G(2,4,e.creationDate,"dd MMMM yyyy"))),c(3),j(e.addressComponents?3:-1)}}var pe=(()=>{class t extends Z{openMap(e){window.open(`http://maps.google.com/?q=${e}`)}constructor(e,n,i,r,o){super(),this.service=e,this.megaOpenLinkService=n,this._megaCategoriesService=i,this._router=r,this._location=o,this.items=[],this.allItems$=this.service.allItems$,this.isInfinitLoadFinished$=this.service.isInfinitLoadFinished$,this.showAccessibility=!1,this._actualUrl=this._router.url}_extendedOnInit(){return d(this,null,function*(){let e=yield this._megaCategoriesService.getPopulatedCategories();this._setCategories(e)})}_doSubscription(){this._megaCategoriesService.apiParameters$.pipe(w(e=>!!e),R(this._unsubscribe$)).subscribe(e=>{this.service.apiParameters.categories=e.categories,this.service.apiParameters.filters=e.filters,this.showAccessibility=e.filters.some(r=>r.parameter==="accessibility"),this.service.init();let n=e.categories?.length>0?`?categories=${e.categories.concat(",")}`:"",i=this._actualUrl+n;this._location.go(i),window.parent.postMessage({type:"navigate",value:i},"*")})}navigateToTargetId(e){this._router.navigate([`/reports/${e.id}`])}searchItem(e){this.service.searchItem(e),this._megaCategoriesService.getPopulatedCategories(`&search_items=${e}`)}_setCategories(e){let n=decodeURIComponent(this._router.url),i=[];if(!n.includes("categories=")){this.service.init();return}n.includes("?categories=")&&(i=n.split("?categories=")),n.includes("&categories=")&&(i=n.split("&categories=")),this._actualUrl=i.shift();let r=i[0].split(",");this._setSelected(e,r),this._megaCategoriesService.setTargetCategories(e)}_setSelected(e,n){e.map(i=>{if(n.includes(i.id.toString()))return i.selected=!0,!0;i.children?.length>0&&this._setSelected(i.children,n)})}static{this.\u0275fac=function(n){return new(n||t)(m(y),m(te),m(M),m(se),m(J))}}static{this.\u0275cmp=E({type:t,selectors:[["page-reports"]],standalone:!1,features:[z([M]
1),B],decls:12,vars:9,consts:[["id","main-content",1,"main-container"],[1,"header-container"],[1,"list-container"],[1,"settings-container"],[3,"emitSearch","loading"],[3,"attributes"],[1,"map-container"],["toCenterOnWhenReady","markers","valueToBeMarker","currentStatus",3,"emitMarkerClick","emitVisibleMarkers","items","options","haveVisibleMarkersLogic"],["position-bottom","",1,"address-container"],["position-bottom","",1,"address-container",3,"click"]],template:function(n,i){n&1&&(a(0,"main",0)(1,"section",1)(2,"div",2)(3,"div",3),N(4,"categories-filter-button-fragment"),a(5,"megaCMS-plugin-search-fragment",4),p(6,"async"),f("emitSearch",function(o){return i.searchItem(o)}),s()(),V(7,_e,4,14,"megaCMS-list-card-component",5,D),s(),a(9,"div",6)(10,"mega-places-map-component",7),p(11,"async"),f("emitMarkerClick",function(o){return i.navigateToTargetId(o)})("emitVisibleMarkers",function(o){return i.items=o}),s()()()()),n&2&&(c(5),_("loading",l(6,4,i.service.loading$)),c(2),A(i.items),c(3),_("items",l(11,6,i.allItems$))("options",H(8,de))("haveVisibleMarkersLogic",!0))},dependencies:[S,v,O,P,ie,K,Q,re,ae],styles:["[_nghost-%COMP%]{--search-width: calc(100% - var(--space) - var(--space))}[_nghost-%COMP%]   .address-container[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .address-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:var(--primary);margin-right:var(--space-smallest)}[_nghost-%COMP%]   .settings-container[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .settings-container[_ngcontent-%COMP%]   megaCMS-plugin-search-fragment[_ngcontent-%COMP%]{transition:all .3s ease-in-out;flex-grow:1}[_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]   .header-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:46%;min-height:400px;flex-grow:1}@media(max-width:767px){[_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]{flex-direction:column-reverse}[_nghost-%COMP%]   .header-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}}@media(min-width:768px){[_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]{height:calc(100vh - var(--navbar-height))}[_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]{max-height:100%;overflow:auto}}[_nghost-%COMP%]   .map-container[_ngcontent-%COMP%]{display:flex;height:100%;margin-bottom:var(--space);cursor:pointer}[_nghost-%COMP%]   mega-places-map-component[_ngcontent-%COMP%]{display:block;width:100%;min-height:400px;box-sizing:border-box;flex-grow:1}"]})}}return t})();var fe=[{path:"",component:pe}],le=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=u({type:t})}static{this.\u0275inj=h({imports:[b.forChild(fe),b]})}}return t})();var Ze=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=u({type:t})}static{this.\u0275inj=h({providers:[{provide:Y,useValue:"/reports"},y],imports:[X,oe,le,me,S,v,O,P,ce,ne]})}}return t})();export{Ze as PageReportsModule};

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.