PageSourceSearch

https://leuk.ch/chunk-WXE2OD7X.js

js leuk.ch collected 2026-10-02 12:30:18 UTC 6,438 bytes, 1 lines download raw bytes

1import{a as y}from"./chunk-3UASSENF.js";import{a as Y}from"./chunk-4OEAZMH6.js";import{a as _,b as P,c as v}from"./chunk-KOS7ONBV.js";import{a as M}from"./chunk-DMWEYSJJ.js";import{a as C}from"./chunk-MQJVS6YN.js";import{d as K,k as Q}from"./chunk-U2NOKKVY.js";import{$,$a as A,$b as U,Cc as W,Da as a,Ge as G,I as F,Ia as s,Kf as X,La as j,Ma as h,Mf as x,Qa as B,Rb as V,Sb as N,W as k,We as H,_a as L,aa as d,ac as u,bb as E,bc as f,bf as J,cb as R,db as D,eb as c,fb as l,gb as m,h as g,hb as b,qa as T,qb as O,sb as I,sc as z,yc as q}from"./chunk-JJXGM4WM.js";var S=(()=>{class t extends J{init(){return new Promise(e=>g(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(n){return(e||(e=T(t)))(n||t)}})()}static{this.\u0275prov=$({token:t,factory:t.\u0275fac})}}return t})();var oe=()=>({fullscreenControl:!0}),re=(t,p,e,i,n,o,r,te,ie)=>({id:t,published:p,canEdit:e,thumbnail:i,type:null,categories:n,title:o,subtitle:r,openings:te,accessibility:ie,button:"MORE_DETAILS"});function ae(t,p){if(t&1&&b(0,"mega-day-status-fragment",8),t&2){let e=I().$implicit;c("openings",e.openings[0])}}function se(t,p){if(t&1&&(l(0,"megaCMS-list-card-component",5),u(1,"megaAddress"),L(2,ae,1,1,"mega-day-status-fragment",8),m()),t&2){let e=p.$implicit,i=I();c("attributes",U(4,re,[e.id,e.published,e.canEdit,(e.thumbnail==null?null:e.thumbnail.optimizedPath)||(e.thumbnail==null?null:e.thumbnail.path),e.categories,e.title,f(1,2,e.addressComponents),(e.openings==null?null:e.openings.length)>0?e.openings:null,i.showAccessibility?e.accessibility:null])),a(2),A((e.openings==null?null:e.openings.length)>0&&(e.openings[0].days==null?null:e.openings[0].days.length)>0?2:-1)}}var Z=(()=>{class t extends H{openMap(e){window.open(`http://maps.google.com/?q=${e}`)}constructor(e,i,n,o){super(),this.service=e,this._megaCategoriesService=i,this._router=n,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 g(this,null,function*(){let e=yield this._megaCategoriesService.getPopulatedCategories();this._setCategories(e)})}_doSubscription(){this._megaCategoriesService.apiParameters$.pipe(F(e=>!!e),k(this._unsubscribe$)).subscribe(e=>{this.service.apiParameters.categories=e.categories,this.service.apiParameters.filters=e.filters,this.showAccessibility=e.filters.some(o=>o.parameter==="accessibility"),this.service.init();let i=e.categories?.length>0?`?categories=${e.categories.concat(",")}`:"",n=this._actualUrl+i;this._location.go(n),window.parent.postMessage({type:"navigate",value:n},"*")})}navigateToTargetId(e){this._router.navigate([`/places/${e.id}`])}searchItem(e){this.service.searchItem(e),this._megaCategoriesService.getPopulatedCategories(`&search_items=${e}`)}_setCategories(e){let i=decodeURIComponent(this._router.url),n=[];if(!i.includes("categories=")){this.service.init();return}i.includes("?categories=")&&(n=i.split("?categories=")),i.includes("&categories=")&&(n=i.split("&categories=")),this._actualUrl=n.shift();let o=n[0].split(",");this._setSelected(e,o),this._megaCategoriesService.setTargetCategories(e)}_setSelected(e,i){e.map(n=>{if(i.includes(n.id.toString()))return n.selected=!0,!0;n.children?.length>0&&this._setSelected(n.children,i)})}static{this.\u0275fac=function(i){return new(i||t)(s(S),s(_),s(X),s(z))}}static{this.\u0275cmp=j({type:t,selectors:[["page-places"]],standalone:!1,features:[V([_]),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",3,"emitMarkerClick","emitVisibleMarkers","items","options","haveVisibleMarkersLogic"],["position-top","",1,"listRow-openings",3,"openings"]],template:function(i,n){i&1&&(l(0,"main",0)(1,"section",1)(2,"div",2)(3,"div",3),b(4,"categories-filter-button-fragment"),l(5,"megaCMS-plugin-search-fragment",4),u(6,"async"),O("emitSearch",function(r){return n.searchItem(r)}),m()(),R(7,se,3,14,"megaCMS-list-card-component",5,E),m(),l(9,"div",6)(10,"mega-places-map-component",7),u(11,"async"),O("emitMarkerClick",function(r){return n.navigateToTargetId(r)})("emitVisibleMarkers",function(r){return n.items=r}),m()()()()),i&2&&(a(5),c("loading",f(6,4,n.service.loading$)),a(2),D(n.items),a(3),c("items",f(11,6,n.allItems$))("options",N(8,oe))("haveVisibleMarkersLogic",!0))},dependencies:[v,P,y,M,C,q,Q],styles:["[_nghost-%COMP%]{--search-width: calc(100% - var(--space) - var(--space))}[_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}
1[_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 ce=[{path:"",component:Z}],ee=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=h({type:t})}static{this.\u0275inj=d({imports:[x.forChild(ce),x]})}}return t})();var Ne=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=h({type:t})}static{this.\u0275inj=d({providers:[{provide:G,useValue:"/places"},S],imports:[W,ee,Y,v,P,y,M,C,K]})}}return t})();export{Ne as a};

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.