PageSourceSearch

https://pomona.ch/chunk-F7RHYOWK.js

js pomona.ch collected 2026-10-02 10:00:56 UTC 18,707 bytes, 1 lines download raw bytes

1import{a as he,b as le}from"./chunk-EBI5FUZ7.js";import"./chunk-BO2XXCNH.js";import{a as ce,b as pe}from"./chunk-TRZ35WGS.js";import{h as se,i as de}from"./chunk-HU7DRUW4.js";import"./chunk-RRCKCIRE.js";import"./chunk-H5NGTMRK.js";import"./chunk-PQEPGKNN.js";import"./chunk-HYFB74B2.js";import"./chunk-IDRT5H2E.js";import{j as E}from"./chunk-ZOZ7YRKF.js";import"./chunk-S2OCWN2E.js";import"./chunk-YB4UXJ6P.js";import{a as re,b as oe}from"./chunk-Z4I66M6R.js";import"./chunk-UWPGEOQW.js";import"./chunk-3WF5SYYU.js";import{c as Z}from"./chunk-5E5ZKL7N.js";import"./chunk-BSLW7WTK.js";import"./chunk-PHAWBFVK.js";import{d as X}from"./chunk-5O5NIXWS.js";import"./chunk-H4KIND33.js";import"./chunk-JIBDOOIA.js";import"./chunk-RWA2K4MA.js";import"./chunk-JURKDGMK.js";import{a as ae,b as ne}from"./chunk-RLWQZSZP.js";import{d as te}from"./chunk-WZRPOAKZ.js";import"./chunk-F5IUR55I.js";import"./chunk-X6HAAVKS.js";import{c as $,i as ee,j as ie}from"./chunk-AV2JT57I.js";import"./chunk-52HMIMKF.js";import"./chunk-CYFGZIPU.js";import"./chunk-AVSRGUC2.js";import"./chunk-HRNQ67WE.js";import"./chunk-ABZN4XOL.js";import"./chunk-MM6VDKCE.js";import"./chunk-T63RSQUJ.js";import"./chunk-CNR54HEZ.js";import"./chunk-WN765FHW.js";import"./chunk-PV3YTI2I.js";import"./chunk-K2IZWQDZ.js";import"./chunk-MYX5MIQ6.js";import"./chunk-D2WELXJL.js";import"./chunk-4DKPPME4.js";import"./chunk-54Y5TPIB.js";import"./chunk-33L6EWWW.js";import"./chunk-ZYUHUKD6.js";import"./chunk-QDQHCAS3.js";import"./chunk-K72YNCC2.js";import"./chunk-WVJCXBCU.js";import"./chunk-V4CX7NQ7.js";import"./chunk-V4LCGU5T.js";import"./chunk-DMMP5UQM.js";import"./chunk-IF2B5A7G.js";import{a as Y}from"./chunk-TG6HCYT2.js";import"./chunk-V2IBHSN7.js";import"./chunk-TPZ34VW5.js";import"./chunk-KGJC7T4D.js";import"./chunk-O5AI6HUK.js";import"./chunk-MDRFFXZM.js";import"./chunk-QYMPBRPK.js";import"./chunk-7GQDLYE4.js";import{b as K}from"./chunk-SDO3MRP3.js";import"./chunk-VM73DPZ7.js";import"./chunk-IER57G7O.js";import"./chunk-KOKBGFQW.js";import"./chunk-OTQWNMEK.js";import{d as z,e as q}from"./chunk-VXGORKY4.js";import"./chunk-MM7BIOB4.js";import{M as J}from"./chunk-JQQGEMVA.js";import{$b as u,Cb as p,Db as c,Eb as O,Fb as N,Gb as B,Hd as U,Ib as P,Lb as M,Ld as Q,Mb as g,Od as G,Qc as W,Rc as j,Xa as s,ab as C,ac as y,bc as F,cd as V,ec as R,fb as A,fc as D,ga as k,gb as L,gc as T,kb as b,oc as f,pc as _,rb as h,sa as S,ta as w,tb as H}from"./chunk-FCE7BWGT.js";import"./chunk-Z2GHHK3Z.js";import"./chunk-IE53JPBQ.js";import"./chunk-EGPBMAT7.js";import"./chunk-WGIJLE63.js";import"./chunk-TO2TOVO2.js";import"./chunk-VTNGRKUC.js";import"./chunk-4QSW3BJY.js";import"./chunk-V64TFCIA.js";import"./chunk-BUIZBFEK.js";import"./chunk-QYHS63RY.js";import"./chunk-IDAFYDKW.js";import"./chunk-PKML243M.js";import{a as I,k as v}from"./chunk-Q762RTV7.js";function xe(t,n){if(t&1){let o=P();p(0,"app-search",5),T("extendedSearchChange",function(e){S(o);let r=g();return D(r.extendedSearch,e)||(r.extendedSearch=e),w(e)}),M("extendedSearchChange",function(){S(o);let e=g();return w(e.toggleExtendedSearch())})("searchTriggered",function(e){S(o);let r=g();return w(r.searchEntries(e))}),c()}if(t&2){let o=g();R("extendedSearch",o.extendedSearch),h("searchFields",o.searchFields)("page","story-search")}}function ue(t,n){t&1&&(p(0,"section"),u(1),f(2,"translate"),c()),t&2&&(s(),F(" ",_(2,1,"GLOBAL.TECHNICAL_PROBLEMS")," "))}function fe(t,n){if(t&1&&O(0,"app-story-feed-entry",15),t&2){let o=n.$implicit;h("loadImagesLazy",!0)("storyEntry",o)("startpage",!0)("isSmallFeedVersion",!0)}}function _e(t,n){if(t&1&&(N(0),b(1,fe,1,4,"app-story-feed-entry",14),B()),t&2){let o=g(3);s(),h("ngForOf",o.searchResults)}}function Ce(t,n){if(t&1&&(p(0,"section"),b(1,_e,2,1,"ng-container",3),c()),t&2){let o=g(2);s(),h("ngIf",o.type==="news")}}function ye(t,n){t&1&&(p(0,"div",16),u(1),f(2,"translate"),c()),t&2&&(s(),F(" ",_(2,1,"GLOBAL.NO_SEARCH_RESULTS")," "))}function Se(t,n){if(t&1){let o=P();p(0,"section",6),O(1,"app-loading-animation",7),p(2,"div",8)(3,"h1"),u(4),f(5,"translate"),c(),p(6,"mat-form-field")(7,"mat-label"),u(8),f(9,"translate"),c(),p(10,"mat-select",9),M("selectionChange",function(){S(o);let e=g();return w(e.filterResults())}
1),T("valueChange",function(e){S(o);let r=g();return D(r.selectedSort,e)||(r.selectedSort=e),w(e)}),p(11,"mat-option",10),u(12),f(13,"translate"),c(),p(14,"mat-option",11),u(15),f(16,"translate"),c(),p(17,"mat-option",12),u(18),f(19,"translate"),c()()()(),b(20,Ce,2,1,"section",3)(21,ye,3,3,"div",13),c()}if(t&2){let o=g();s(),h("showLoading",o.loading),s(3),y(_(5,9,"CORE.SEARCH_FEED.SEARCH_RESULTS")),s(4),y(_(9,11,"CLASSIFIEDS.SEARCH.SORTING")),s(2),R("value",o.selectedSort),s(2),y(_(13,13,"CLASSIFIEDS.SEARCH.SORTING_RELEVANCE")),s(3),y(_(16,15,"CORE.SEARCH_FEED.NEWEST_FIRST")),s(3),y(_(19,17,"CORE.SEARCH_FEED.OLDEST_FIRST")),s(2),h("ngIf",o.searchResults.length>0),s(),h("ngIf",o.searchResults.length===0)}}function we(t,n){t&1&&O(0,"app-startpage-widget")}var me=(()=>{let n=class n{constructor(i,e,r,l,d,a,m){this.router=i,this.route=e,this.storyService=r,this.session=l,this.routing=d,this.paginationService=a,this.platformService=m,this.loading=!1,this.extendedSearch=!1,this.searchResults=[],this.searchEnabled=!0,this.showWidgets=!0,this.selectedSort="relevance",this.defaultSort="relevance",this.isResetting=!1,E.length&&(this.selectedSort=E,this.defaultSort=E)}ngOnInit(){return v(this,null,function*(){this.searchEnabled=this.route.snapshot.data.systemState.searchEnabled,this.showWidgets=this.route.snapshot.data.systemState.startpageWidgetEnabled,this.categories=this.route.snapshot.data.categories,this.currentUrl=window.location.pathname,this.queryParamsSubscription=this.route.queryParams.subscribe(i=>v(this,null,function*(){var e;if(!this.isResetting)if(this.type=(e=i==null?void 0:i.type)!=null?e:"news",this.type==="news"){this.mainColor="#E3000B";let r=this.storyService.getSavedCategories();this.newsCategories=r.map(l=>({label:l.category,value:l.categoryId,translations:l.translations})),this.consumeQueryParams(i),this.searchCategory||this.searchStartDate||this.searchEndDate?(this.extendedSearch=!0,this.setSearchFieldsNews(),yield this.searchEntries(this.searchFields,this.routing.currentNavigationTrigger)):(this.setSearchFieldsNews(),this.searchText&&(yield this.searchEntries(this.searchFields,this.routing.currentNavigationTrigger))),this.routing.viewLoaded$.next(!0)}else this.isResetting=!1}))})}consumeQueryParams(i){let e=(d,a)=>(!d||d!==a)&&!!a,r=(d,a)=>(a&&(d==="searchStartDate"||d==="searchEndDate")&&(a=new Date(+a)),a!=null?a:""),l=new Map([["searchText","text"],["searchCategory","category"],["searchStartDate","startDate"],["searchEndDate","endDate"],["selectedSort","sort"]]);for(let[d,a]of l){let m=this[d],x=i[a];e(m,x)&&(this[d]=r(d,x))}}searchEntries(i,e){return v(this,null,function*(){let r=new Date;if(this.loading=!0,i){if(this.type==="news")if(e==="popstate")this.searchResults=this.paginationService.getPaginationDataForSite(this.currentUrl);else{let d=this.selectedSort==="relevance"?null:this.selectedSort==="newestFirst"?["dateTime:desc","_score:desc"]:["dateTime:asc","_score:desc"],a=(yield this.storyService.searchEntries(i,100,d)).map(m=>this.storyService.searchStoryToFeedStory(m,this.session.activeLanguage));this.searchResults=a.filter(m=>r.getTime()>=Date.parse(m.dateTime)),this.paginationService.setPaginationDataForSite(this.currentUrl,this.searchResults)}let l=this.searchFieldsToQueryParams(i);e!=="popstate"&&this.router.navigate([],{relativeTo:this.route,queryParams:l,queryParamsHandling:"merge"})}else this.searchResults=[],this.isResetting=!0,this.router.navigate([],{relativeTo:this.route,queryParams:{category:null,endDate:null,text:null,startDate:null,sort:null},queryParamsHandling:"merge"});this.loading=!1})}searchFieldsToQueryParams(i){let e=d=>{let a=i[d],{type:m}=a!=null?a:{},{value:x}=a!=null?a:{value:void 0};return x&&(m==="minDate"||m==="maxDate")&&(x=Date.parse(x)),x!=null?x:null};return Object.fromEntries([...new Map([["fulltext","text"],["category","category"],["startDate","startDate"],["endDate","endDate"]]).entries()].map(([d,a])=>[a,e(d)]))}toggleExtendedSearch(){this.searchResults=[],this.setSearchFieldsNews()}setSearchFieldsNews(){this.searchFields=this.extendedSearch?{fulltext:{type:"text",label:"CORE.SEARCH.INPUT_PLACEHOLDER",field:"",value:this.searchText||"",halfWidth:!0},category:{type:"select",label:"CORE.SEARCH.CATEGORY",field:"categories",value:this.searchCategory,halfWidth:!0,options:this.newsCategories},startDate:{type:"minDate",label:"CORE.SEARCH.DATE_FROM",field:"dateTime",value:this.searchStartDate,halfWidth:!0},endDate:{type:"maxDate",label:"CORE.SEARCH.DATE_TO",field:"dateTime",value:this.searchEndDate,halfWidth:!0}}:{fulltext:{type:"text",label:"CORE.SEARCH.INPUT_PLACEHOLDER",field:"",value:this.searchText||""}}}filterResults(i){return v(this,null,function*(){let e=I({}
1,this.route.snapshot.queryParams);i!=="popstate"&&(this.selectedSort!==this.defaultSort?(e.sort=this.selectedSort,this.router.navigate([],{relativeTo:this.route,queryParams:e,queryParamsHandling:"merge"})):(delete e.sort,this.router.navigate([],{relativeTo:this.route,queryParams:e}))),yield this.searchEntries(this.searchFields,i)})}ngOnDestroy(){this.queryParamsSubscription!==void 0&&this.queryParamsSubscription.unsubscribe()}};n.\u0275fac=function(e){return new(e||n)(C(Q),C(U),C(X),C(K),C(Z),C(Y),C(J))},n.\u0275cmp=A({type:n,selectors:[["app-search-feed"]],standalone:!1,decls:9,vars:9,consts:[["id","searchContainer"],[1,"mobileSpacer"],[3,"extendedSearch","searchFields","page","extendedSearchChange","searchTriggered",4,"ngIf"],[4,"ngIf"],["class","searchResults",4,"ngIf"],[3,"extendedSearchChange","searchTriggered","extendedSearch","searchFields","page"],[1,"searchResults"],[3,"showLoading"],[1,"title-wrapper"],["matNativeControl","",3,"selectionChange","valueChange","value"],["value","relevance"],["value","newestFirst"],["value","oldestFirst"],["class","noResults",4,"ngIf"],[3,"loadImagesLazy","storyEntry","startpage","isSmallFeedVersion",4,"ngFor","ngForOf"],[3,"loadImagesLazy","storyEntry","startpage","isSmallFeedVersion"],[1,"noResults"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1)(2,"h1"),u(3),f(4,"translate"),c(),b(5,xe,1,3,"app-search",2)(6,ue,3,3,"section",3),c(),b(7,Se,22,19,"section",4)(8,we,1,0,"app-startpage-widget",3),c()),e&2&&(H("native",r.platformService.isNative),s(3),y(_(4,7,"CORE.SEARCH_FEED.SEARCH")),s(2),h("ngIf",r.searchFields&&r.searchEnabled===!0),s(),h("ngIf",r.searchEnabled!==!0),s(),h("ngIf",r.searchEnabled===!0),s(),h("ngIf",r.showWidgets===!0))},dependencies:[W,j,he,re,se,ce,ee,$,ae,te,z],styles:["[_ngcontent-%COMP%]:root{--safe-area-inset-top: 0px;--safe-area-inset-right: 0px;--safe-area-inset-bottom: 0px;--safe-area-inset-left: 0px}@supports (top: constant(safe-area-inset-top)){[_ngcontent-%COMP%]:root{--safe-area-inset-top: constant(safe-area-inset-top);--safe-area-inset-right: constant(safe-area-inset-right);--safe-area-inset-bottom: constant(safe-area-inset-bottom);--safe-area-inset-left: constant(safe-area-inset-left)}}@supports (top: env(safe-area-inset-top)){[_ngcontent-%COMP%]:root{--safe-area-inset-top: env(safe-area-inset-top);--safe-area-inset-right: env(safe-area-inset-right);--safe-area-inset-bottom: env(safe-area-inset-bottom);--safe-area-inset-left: env(safe-area-inset-left)}}[_ngcontent-%COMP%]:root{--tabbar-height: calc(56px + var(--safe-area-inset-bottom));--header-settings-height: calc(50px + var(--safe-area-inset-top));--ad-top-wrapper-desktop-height: 30px ;--content-container-margin-top: 15px;--header-bottom-nav-distance-item: 24px;--header-middle-padding-top: 0px;--header-middle-padding-bottom: 0px;--header-sticky-padding: 50px;--header-padding: 62px;--header-bottom-swiper-transition-width: 65px;--overlay-bottom-bottom: 0px;--audioplayer-progress-height: 5px;--audioplayer-collapsed-height: 60px;--store-padding-sides: 15px}@media (min-width: 700px){[_ngcontent-%COMP%]:root{--header-settings-height: calc(98px + var(--safe-area-inset-top))}}@media (min-width: 700px) and (max-width: 1200px){[_ngcontent-%COMP%]:root{--header-settings-height: calc(83px + var(--safe-area-inset-top))}}@media (max-width: 699px){[_ngcontent-%COMP%]:root{--header-top-height: 0px;--header-top-sticky-height: 0px;--header-middle-height: 50px;--header-middle-sticky-height: 50px;--header-bottom-height: 40px;--header-bottom-sticky-height: 40px;--header-bottom-divider-margin: 22px;--header-sticky-padding: 10px}}@media (min-width: 700px) and (max-width: 1200px){[_ngcontent-%COMP%]:root{--header-top-height: 40px;--header-top-sticky-height: 40px;--header-middle-height: 82px;--header-middle-sticky-height: 82px;--header-middle-padding-top: 0px;--header-middle-padding-bottom: 0px;--header-bottom-height: 45px;--header-bottom-sticky-height: 45px;--header-bottom-divider-margin: 22px;--header-sticky-padding: 20px}}@media (min-width: 1201px){[_ngcontent-%COMP%]:root{--header-top-height: 40px;--header-top-sticky-height: 40px;--header-middle-height: 150px;--header-middle-sticky-height: 150px;--header-middle-padding-top: 52px;--header-bottom-height: 45px;--header-bottom-sticky-height: 45px;--header-bottom-divider-margin: 22px;--store-padding-sides: 48px}}@media (min-width: 1201px){[_ngcontent-%COMP%]:root   header[_ngcontent-%COMP%]:not(.sticky){--header-bottom-swiper-transition-width: 150px}}body.native[_ngcontent-%COMP%]{--header-middle-height: 45px;--header-middle-sticky-height: 45px;--header-bottom-height: 40px;--header-bottom-sticky-height: 40px;--overlay-bottom-bottom: calc(56px + var(--safe-area-inset-bottom))}@media (max-width: 699px){body.native[_ngcontent-%COMP%]{--header-middle-height: 50px}}@media (min-width: 700px){body.native[_ngcontent-%COMP%]{--header-top-height: 0px;--header-top-sticky-height: 0px;--header-middle-padding-top: 0px;--header-middle-padding-bottom: 0px}}body.web[_ngcontent-%COMP%]{--tabbar-height: 0px;--header-middle-actions-right: -5px}@media (min-width: 700px) and (max-width: 1200px){body.web[_ngcontent-%COMP%]{--header-middle-actions-right: 0px}}@media (max-width: 840px){body.web[_ngcontent-%COMP%]{--header-middle-actions-right: -15px}}body.web.ajour[_ngcontent-%COMP%]{--header-middle-actions-right: -25px}@media (min-width: 700px) and (max-width: 1200px){body.web.ajour[_ngcontent-%COMP%]{--header-middle-actions-right: -25px}}@media (max-width: 840px){body.web.ajour[_ngcontent-%COMP%]{--header-middle-actions-right: -20px}}body.web.pomona[_ngcontent-%COMP%]{--header-middle-actions-right: -5px}@media (min-width: 700px) and (max-width: 1200px){body.web.pomona[_ngcontent-%COMP%]{--header-middle-actions-right: 0px}}@media (max-width: 840px){body.web.pomona[_ngcontent-%COMP%]{--header-middle-actions-right: -15px}}body.web.wir-Freiburg[_ngcontent-%COMP%]{--header-middle-actions-right: -5px}@media (min-width: 700px) and (max-width: 1200px){body.web.wir-Freiburg[_ngcontent-%COMP%]{--header-middle-actions-right: 0px}}@media (max-width: 840px){body.web.wir-Freiburg[_ngcontent-%COMP%]{--header-middle-actions-right: -15px}}[_ngcontent-%COMP%]:root{--color-light-bottom-sheet-divider: #DDDDDD;--color-dark-bottom-sheet-divider: #777777;--color-light-header-nav-item: #444034;--color-dark-header-nav-item: #DDDDDD;--color-light-header-item: #777777;--color-dark-header-item: #B6B6B6;--color-native-dark-header-items: #FFFFFF;--color-native-light-header-items: #000000;
1--color-audioplayer-primary: #0f0f0f;--color-audioplayer-secondary: #7f7f7f;--color-audioplayer-background: #e0e0e0;--color-audioplayer-progressbar: #b3b2b3;--color-dark-audioplayer-title: #F0F0F0;--color-dark-audioplayer-subtitle: #808080;--color-light-audioplayer-title: #0f0f0f;--color-light-audioplayer-subtitle: #7f7f7f;--color-backbutton-shadow: #e2e2e2;--story-item-shadow: 0 0 4px 0 rgb(0 0 0 / 8%), 0 0 16px 0 rgb(0 0 0 / 8%);--story-item-shadow-hover: 0 8px 16px 0 rgb(0 0 0 / 16%), 0 0 32px 0 rgb(0 0 0 / 16%);--swiper-pagination-color: #292929;--swiper-pagination-bullet-inactive-color: #c4c4c4}body.dark-mode[_ngcontent-%COMP%]{--color-audioplayer-primary: #F0F0F0;--color-audioplayer-secondary: #808080;--color-audioplayer-background: #1F1F1F;--color-audioplayer-progressbar: #4C4D4C;--color-backbutton-shadow: #222F;--swiper-pagination-color: #c4c4c4;--swiper-pagination-bullet-inactive-color: #292929}#searchContainer[_ngcontent-%COMP%]{margin:20px 63.5px 30px;max-width:1073px}@media (max-width: 1574px){#searchContainer[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}}@media (max-width: 1200px){#searchContainer[_ngcontent-%COMP%]{margin:0 auto 30px}}@media (max-width: 699px){#searchContainer[_ngcontent-%COMP%]{margin:20px auto}}@media (min-width: 1201px){#searchContainer.native[_ngcontent-%COMP%]{margin:auto!important}}section[_ngcontent-%COMP%]{display:flex;column-gap:26px;flex-wrap:wrap}@media (max-width: 1574px){section[_ngcontent-%COMP%]{column-gap:25px}}@media (min-width: 700px) and (max-width: 1200px){section[_ngcontent-%COMP%]{column-gap:2%}}@media (max-width: 699px){section[_ngcontent-%COMP%]{display:block;column-gap:0}}.searchResults[_ngcontent-%COMP%]{display:block;position:relative}@media (max-width: 1200px){.searchResults[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{margin:0 16px}.searchResults[_ngcontent-%COMP%]   section[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:32%}.searchResults[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:18px;line-height:24px;margin-bottom:13px}}@media (max-width: 699px){.searchResults[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{margin:0}.searchResults[_ngcontent-%COMP%]   section[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:auto}}.searchResults[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}div.mobileSpacer[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], div.noResults[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]{padding:0 15px;margin-bottom:41px}@media (min-width: 1201px){div.mobileSpacer[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], div.noResults[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]{padding:0}}@media (max-width: 699px){div.mobileSpacer[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], div.noResults[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]{padding:0 15px}}div.mobileSpacer[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{padding:0}@media (max-width: 699px){div.mobileSpacer[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{display:none}}"]});let t=n;return t})();var Ke=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=L({type:n}),n.\u0275inj=k({imports:[V,le,oe,de,pe,q,G.forChild([{path:"",pathMatch:"full",component:me}]),ne,ie]});let t=n;return t})();export{Ke as SearchFeedModule};

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.