1import{a as bt,b as yt,c as Mt,d as vt,e as wt}from"./chunk-KU3ARGOW.js";import{a as xt,b as _t}from"./chunk-4CJ3ULS4.js";import{b as K}from"./chunk-3X2ZZT77.js";import"./chunk-A5GJSKUV.js";import"./chunk-DLV6MNKH.js";import{a as ft,b as Ct}from"./chunk-Z4I66M6R.js";import{a as it}from"./chunk-D4OYPL24.js";import"./chunk-3WF5SYYU.js";import{c as Xe}from"./chunk-5E5ZKL7N.js";import"./chunk-BSLW7WTK.js";import"./chunk-PHAWBFVK.js";import"./chunk-5O5NIXWS.js";import"./chunk-H4KIND33.js";import"./chunk-JIBDOOIA.js";import"./chunk-RWA2K4MA.js";import{d as me,e as ge,f as st,g as lt,i as gt,k as ut}from"./chunk-6UKT23SY.js";import{a as et,b as tt,c as ae}from"./chunk-D6AZISQF.js";import"./chunk-F5IUR55I.js";import{c as dt,d as pt}from"./chunk-X6HAAVKS.js";import{f as at,i as rt}from"./chunk-AV2JT57I.js";import"./chunk-HTBPCXLZ.js";import"./chunk-RKL6TCXR.js";import"./chunk-ILMPKDPO.js";import"./chunk-52HMIMKF.js";import"./chunk-CYFGZIPU.js";import{c as nt,f as ot}from"./chunk-AVSRGUC2.js";import{a as Je,b as Ze}from"./chunk-3QLKVZXJ.js";import"./chunk-MM6VDKCE.js";import{a as ht,b as mt}from"./chunk-IXQRQ74W.js";import{l as ct}from"./chunk-CNR54HEZ.js";import{a as Ne,b as Be}from"./chunk-WN765FHW.js";import"./chunk-PV3YTI2I.js";import"./chunk-K2IZWQDZ.js";import"./chunk-MYX5MIQ6.js";import"./chunk-D2WELXJL.js";import{a as te,b as ie}from"./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 We}from"./chunk-TG6HCYT2.js";import{g as qe}from"./chunk-V2IBHSN7.js";import{b as Ye}from"./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 Ge}from"./chunk-SDO3MRP3.js";import"./chunk-VM73DPZ7.js";import"./chunk-IER57G7O.js";import"./chunk-KOKBGFQW.js";import"./chunk-OTQWNMEK.js";import{b as he,d as q,e as W}from"./chunk-VXGORKY4.js";import{D as je,E as He,b as Re,g as De,m as Le,o as Ae,y as Ve}from"./chunk-MM7BIOB4.js";import{B as ze,M as Ke}from"./chunk-JQQGEMVA.js";import{$b as g,$c as ee,Ca as z,Cb as l,Db as d,Eb as T,Fb as ne,Ga as ce,Gb as oe,Hd as Ue,Ib as P,Lb as m,Ld as Qe,Mb as C,Od as $e,Pb as Te,Qc as J,Ra as Oe,Rc as Z,Ub as V,V as Se,Vb as j,Wa as de,Wb as H,Xa as s,Zb as Fe,a as Pe,ab as y,ac as O,ad as ye,bc as L,cd as A,ec as Ce,fb as R,fc as xe,ga as E,gb as D,gc as _e,kb as w,kc as Ie,oc as _,pc as M,qc as be,ra as le,rb as h,sa as u,sb as pe,ta as f,tb as Y,tc as Ee,zc as X}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"./chunk-2MAMQ4EB.js";import"./chunk-3B2PFBSR.js";import"./chunk-DWS2YTZI.js";import"./chunk-LPMUQ4CI.js";import"./chunk-3CZKGTBE.js";import"./chunk-AHZBSAHG.js";import"./chunk-23O5OMCA.js";import"./chunk-FYY5KCDU.js";import"./chunk-CCU54JA7.js";import"./chunk-G5ACWW7D.js";import"./chunk-MAZIA75J.js";import"./chunk-BTT4E5OZ.js";import"./chunk-MJAIJ6WZ.js";import"./chunk-JVL7V5XU.js";import"./chunk-TB6CE767.js";import"./chunk-ZDHG7D7B.js";import"./chunk-PFZXIQHO.js";import"./chunk-AVOGIDTV.js";import"./chunk-MRFWZAEG.js";import{a as se,b as we,e as ke,k as I}from"./chunk-Q762RTV7.js";var kt=(()=>{let n=class n{constructor(){this.close=new z}onClose(){this.close.emit()}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=R({type:n,selectors:[["app-chip"]],inputs:{label:"label"},outputs:{close:"close"},standalone:!1,decls:4,vars:1,consts:[[1,"formControl"],[1,"label"],[1,"closeButton","icon-close_chip",3,"click"]],template:function(e,i){e&1&&(l(0,"div",0)(1,"span",1),g(2),d(),l(3,"span",2),m("click",function(){return i.onClose()}),d()()),e&2&&(s(2),O(i.label))},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;
1--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;--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}
1body.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}.formControl[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:4px;padding:5px 9px;border-radius:5px;font-size:14px}.formControl[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:400;line-height:18px;letter-spacing:.25px}@media (max-width: 699px){.formControl[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;max-width:calc(100vw - 81px)}}.formControl[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{cursor:pointer}"]});let a=n;return a})();var Pt=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=D({type:n}),n.\u0275inj=E({imports:[A]});let a=n;return a})();function jt(a,n){a&1&&T(0,"span",5)}var St=(()=>{let n=class n{constructor(){this.checked=!1,this.disabled=!1,this.isFocused=!1}onFocus(){this.isFocused=!0}onBlur(){this.isFocused=!1}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=R({type:n,selectors:[["app-checkbox"]],inputs:{name:"name",label:"label",checked:"checked",disabled:"disabled"},standalone:!1,decls:7,vars:11,consts:[[1,"formControl"],[1,"checkboxContainer"],["class","checkboxCheckmark icon-checkbox_check",4,"ngIf"],[1,"checkboxRipple"],["type","checkbox",3,"change","focus","blur","name","checked","disabled"],[1,"checkboxCheckmark","icon-checkbox_check"]],template:function(e,i){e&1&&(l(0,"span",0)(1,"label")(2,"div",1),w(3,jt,1,0,"span",2),T(4,"div",3),l(5,"input",4),m("change",function(){return i.checked=!i.checked})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()}),d()(),g(6),d()()),e&2&&(Y("disabled",i.disabled)("checked",i.checked)("focused",i.isFocused),s(3),h("ngIf",i.checked),s(2),h("name",i.name)("checked",i.checked)("disabled",i.disabled),s(),L(" ",i.label," "))},dependencies:[Z],styles:[".formControl[_ngcontent-%COMP%]{display:inline-block;font-size:14px;font-weight:400;line-height:24px;letter-spacing:.5px}.formControl[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:grid;align-items:center;grid-template-columns:16.8px auto;gap:8px}.formControl[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .formControl[_ngcontent-%COMP%] .checkboxContainer[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{cursor:pointer}.formControl.disabled[_ngcontent-%COMP%]{opacity:.5}.formControl.disabled[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .formControl.disabled[_ngcontent-%COMP%] .checkboxContainer[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{cursor:not-allowed}.formControl.disabled[_ngcontent-%COMP%] .checkboxRipple[_ngcontent-%COMP%]{display:none}.formControl[_ngcontent-%COMP%]:not(.focused) .checkboxContainer[_ngcontent-%COMP%]:hover .checkboxRipple[_ngcontent-%COMP%]{opacity:.15}.formControl.focused[_ngcontent-%COMP%] .checkboxRipple[_ngcontent-%COMP%]{opacity:.3}.formControl[_ngcontent-%COMP%] .checkboxContainer[_ngcontent-%COMP%]:hover .checkboxRipple[_ngcontent-%COMP%], .formControl.focused[_ngcontent-%COMP%] .checkboxRipple[_ngcontent-%COMP%]{background-color:gray;width:100%;height:100%;transform:scale(1.8);border-radius:50%}.checkboxContainer[_ngcontent-%COMP%]{display:inline-block;position:relative;width:100%;aspect-ratio:1;cursor:pointer}.checkboxCheckmark[_ngcontent-%COMP%]{position:absolute;font-size:9.2666666667px;color:#fff;z-index:1;top:55%;left:50%;transform:translate(-50%,-50%)}input[type=checkbox][_ngcontent-%COMP%]{position:absolute;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:100%;width:100%;padding:0;top:0;border-radius:30%;aspect-ratio:1;margin:0}input[type=checkbox][_ngcontent-%COMP%]:checked{transition:all .15s 0ms cubic-bezier(.4,0,.2,1)}"]});let a=n;return a})();var Ot=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=D({type:n}),n.\u0275inj=E({imports:[A]});let a=n;return a})();var Nt=["sliderTrack"],Tt=(()=>{let n=class n{get sliderTrackDOMRect(){var t,e;return(e=(t=this.sliderTrack)==null?void 0:t.nativeElement)==null?void 0:e.getBoundingClientRect()}get sliderTrackLength(){return this.sliderTrackDOMRect.width}constructor(t){this.changeDetectorRef=t,this.step=1,this.change=new z,this.activeThumb=null,this.isDragging=!1,this.isRecentlyDragging=!1,this.afterViewInitCompleted=!1}ngOnInit(){this.boundMouseMoveHandler=this.onMouseMove.bind(this),this.boundMouseUpHandler=this.onMouseUp.bind(this),this.boundTouchMoveHandler=this.onTouchMove.bind(this),this.boundTouchEndHandler=this.onTouchEnd.bind(this)}ngOnChanges(t){this.initStartAndEnd(),this.afterViewInitCompleted&&this.calculateThumbPositions()}ngAfterViewInit(){this.calculateThumbPositions(),this.afterViewInitCompleted=!0}ngOnDestroy(){window.removeEventListener("mousemove",this.boundMouseMoveHandler),window.removeEventListener("mouseup",this.boundMouseUpHandler),window.removeEventListener("touchmove",this.boundTouchMoveHandler),window.removeEventListener("touchend",this.boundTouchEndHandler)}initStartAndEnd(){this.start==null&&(this.start=this.min),this.end==null&&(this.end=this.max)}calculateThumbPositions(){this.sliderTrackDOMRect&&(this.startPosition=this.valueToPosition(this.start),this.endPosition=this.valueToPosition(this.end)),this.changeDetectorRef.detectChanges()}valueToPosition(t){if(this.sliderTrackDOMRect)return(t-this.min)/(this.max-this.min)*this.sliderTrackLength}positionToValue(t){if(this.sliderTrackDOMRect)return Math.round(t/this.sliderTrackLength*(this.max-this.min)+this.min)}snapToStep(t){let e=this.positionToValue(t),i=Math.floor(e/this.step)*this.step,r=i+this.step;return e-i>r-e?r:i}onSliderClick(t){this.activeThumb="end";let e=Math.max(0,t.clientX);this.handleMove(e)}onSliderThumbMouseDown(t){this.activeThumb=t,window.addEventListener("mousemove",this.boundMouseMoveHandler),window.addEventListener("mouseup",this.boundMouseUpHandler)}onSliderThumbTouchStart(t){this.activeThumb=t,window.addEventListener("touchmove",this.boundTouchMoveHandler),window.addEventListener("touchend",this.boundTouchEndHandler)}onMouseMove(t){this.isDragging=!0,this.isRecentlyDragging=!0,this.handleMove(t.clientX)}onTouchMove(t){this.isDragging=!0,this.isRecentlyDragging=!0,this.handleMove(t.touches[0].clientX)}handleMove(t){let e=this.snapToStep(Math.max(0,Math.min(t-this.sliderTrackDOMRect.left,this.sliderTrackLength))),i=this.valueToPosition(e);this.activeThumb==="start"?(i<this.endPosition?this.startPosition=i:this.startPosition=this.endPosition,this.start=this.positionToValue(this.startPosition)):this.activeThumb==="end"&&(i>this.startPosition?this.endPosition=i:this.endPosition=this.startPosition,this.end=this.positionToValue(this.endPosition)),this.changeDetectorRef.detectChanges()}onMouseUp(t){this.isDragging=!1,this.activeThumb=null,this.emitChange(),window.removeEventListener("mousemove",this.boundMouseMoveHandler),window.removeEventListener("mouseup",this.boundMouseUpHandler),setTimeout(()=>{this.isRecentlyDragging=!1},100)}onTouchEnd(t){this.isDragging=!1,this.activeThumb=null,this.emitChange(),window.removeEventListener("touchmove",this.boundTouchMoveHandler),window.removeEventListener("touchend",this.boundTouchEndHandler),setTimeout(()=>{this.isRecentlyDragging=!1},100)}handleInputChange(t,e){var r;e.stopPropagation();let i=parseInt((r=e==null?void 0:e.target)==null?void 0:r.value);t==="min"?this.start=i>=0?i:0:t==="max"&&(this.end=i>=0?i:0),this.emitChange()}emitChange(){this.change.emit({min:this.min,max:this.max,start:this.start,end:this.end,step:this.step,unit:this.unit})}};n.\u0275fac=function(e){return new(e||n)(y(X))},n.\u0275cmp=R({type:n,selectors:[["app-range-slider"]],viewQuery:function(e,i){if(e&1&&V(Nt,5),e&2){let r;j(r=H())&&(i.sliderTrack=r.first)}},inputs:{min:"min",max:"max",start:"start",end:"end",unit:"unit",step:"step"},outputs:{change:"change"},standalone:!1,features:[le],decls:32,vars:22,consts:[["sliderTrack",""],[1,"sliderContainer"],[1,"legend"],[1,"min"],[1,"max"],[1,"formControl"],[1,"sliderTrack",3,"click"],[1,"sliderTrackInactive"],[1,"sliderTrackActive"],[1,"sliderThumb","sliderThumbStart",3,"mousedown","touchstart"],[1,"sliderThumbFocusIndicator"],[1,"sliderThumbKnob"],[1,"sliderThumb","sliderThumbEnd",3,"mousedown","touchstart"],[1,"currentValues"],["matInput","","type","number","min","0",3,"ngModelChange","change","ngModel"],["matSuffix","",2,"padding-right","5px"]],template:function(e,i){if(e&1){let r=P();l(0,"div",1)(1,"div",2)(2,"span",3),g(3),_(4,"number"),d(),l(5,"span",4),g(6),_(7,"number"),d()(),l(8,"div",5)(9,"div",6,0),m("click",function(p){return u(r),f(i.onSliderClick(p))}),T(11,"div",7)(12,"div",8),d(),l(13,"div",9),m("mousedown",function(){return u(r),f(i.onSliderThumbMouseDown("start"))})("touchstart",function(){return u(r),f(i.onSliderThumbTouchStart("start"))}),T(14,"div",10)(15,"div",11),d(),l(16,"div",12),m("mousedown",function(){return u(r),f(i.onSliderThumbMouseDown("end"))})("touchstart",function(){return u(r),f(i.onSliderThumbTouchStart("end"))}
1),T(17,"div",10)(18,"div",11),d()(),l(19,"div",13)(20,"mat-form-field")(21,"input",14),_e("ngModelChange",function(p){return u(r),xe(i.start,p)||(i.start=p),f(p)}),m("change",function(p){return u(r),f(i.handleInputChange("min",p))}),d(),l(22,"span",15),g(23),_(24,"translate"),d()(),l(25,"span"),g(26,"-"),d(),l(27,"mat-form-field")(28,"input",14),_e("ngModelChange",function(p){return u(r),xe(i.end,p)||(i.end=p),f(p)}),m("change",function(p){return u(r),f(i.handleInputChange("max",p))}),d(),l(29,"span",15),g(30),_(31,"translate"),d()()()()}e&2&&(s(3),O(M(4,14,i.min)),s(3),O(M(7,16,i.max)),s(6),pe("left",i.startPosition+"px")("width",i.endPosition-i.startPosition+"px"),s(),pe("left",i.startPosition+"px"),s(3),pe("left",i.endPosition+"px"),s(5),Ce("ngModel",i.start),s(2),O(M(24,18,"MARKETPLACE.FILTERS.UNITS."+i.unit)),s(5),Ce("ngModel",i.end),s(2),O(M(31,20,"MARKETPLACE.FILTERS.UNITS."+i.unit)))},dependencies:[dt,rt,at,Re,Ae,De,Ve,Le,ee,q],styles:["[_nghost-%COMP%]{display:inline-block;font-size:14px;font-weight:400;line-height:12px}.sliderContainer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.sliderContainer[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.sliderContainer[_ngcontent-%COMP%] .formControl[_ngcontent-%COMP%]{position:relative;height:24px}.sliderContainer[_ngcontent-%COMP%] .formControl[_ngcontent-%COMP%] .sliderTrack[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;cursor:pointer;height:4px;width:100%;top:calc(50% - 2px)}.sliderContainer[_ngcontent-%COMP%] .formControl[_ngcontent-%COMP%] .sliderTrack[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{height:100%}.sliderContainer[_ngcontent-%COMP%] .formControl[_ngcontent-%COMP%] .sliderTrack[_ngcontent-%COMP%] .sliderTrackInactive[_ngcontent-%COMP%]{position:absolute;width:100%}.sliderContainer[_ngcontent-%COMP%] .formControl[_ngcontent-%COMP%] .sliderTrack[_ngcontent-%COMP%] .sliderTrackActive[_ngcontent-%COMP%]{position:relative}.sliderContainer[_ngcontent-%COMP%] .formControl[_ngcontent-%COMP%] .sliderThumb[_ngcontent-%COMP%]{position:absolute;height:24px;width:24px;cursor:grabbing;transform:translate(-12px)}.sliderContainer[_ngcontent-%COMP%] .formControl[_ngcontent-%COMP%] .sliderThumb[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{border-radius:50%}.sliderContainer[_ngcontent-%COMP%] .formControl[_ngcontent-%COMP%] .sliderThumb[_ngcontent-%COMP%] .sliderThumbKnob[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-width:1px;border-style:solid;height:12px;width:12px}.sliderContainer[_ngcontent-%COMP%] .formControl[_ngcontent-%COMP%] .sliderThumb[_ngcontent-%COMP%] .sliderThumbFocusIndicator[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;opacity:0}.sliderContainer[_ngcontent-%COMP%] .formControl[_ngcontent-%COMP%] .sliderThumb[_ngcontent-%COMP%]:hover .sliderThumbFocusIndicator[_ngcontent-%COMP%]{opacity:.15}.sliderContainer[_ngcontent-%COMP%] .formControl[_ngcontent-%COMP%] .sliderThumb[_ngcontent-%COMP%]:focus .sliderThumbFocusIndicator[_ngcontent-%COMP%]{opacity:.3}.sliderContainer[_ngcontent-%COMP%] .currentValues[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.sliderContainer[_ngcontent-%COMP%] .currentValues[_ngcontent-%COMP%] .mat-mdc-form-field-infix{display:flex}.sliderContainer[_ngcontent-%COMP%] .currentValues[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}"]});let a=n;return a})();var Ft=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=D({type:n}),n.\u0275inj=E({imports:[A,pt,He,je,W]});let a=n;return a})();var Qt=["formControl"],$t=["menu"],zt=["search"],qt=["checkboxes"],Wt=["rangeSlider"];function Kt(a,n){if(a&1){let o=P();l(0,"div",15)(1,"span",16),m("click",function(){u(o);let e=C();return f(e.clearSearch())}),d(),l(2,"input",17,3),m("change",function(e){return u(o),f(e.stopPropagation())})("input",function(e){u(o);let i=C();return f(i.searchChanged(e))})("focus",function(){u(o);let e=C();return f(e.onSearchFocus())}),d()()}if(a&2){let o=C();s(),h("hidden",!(o.searchText&&o.searchText.length>0)),s(),h("placeholder",o.searchPlaceholder)}}function Gt(a,n){if(a&1){let o=P();l(0,"li",18),m("click",function(){let e=u(o).$implicit;return f(e.checked=!e.checked)}),T(1,"app-checkbox",19),_(2,"translate"),l(3,"span",20),g(4),d()()}if(a&2){let o=n.$implicit;s(),Te("label",M(2,3,o.label)),h("checked",o.checked),s(3),O(o.amount)}}function Yt(a,n){a&1&&(l(0,"div",21),g(1),_(2,"translate"),d()),a&2&&(s(),L(" ",M(2,1,"MARKETPLACE.FILTERS.SEARCH.NO_RESULTS"),""))}function Xt(a,n){if(a&1){let o=P();l(0,"app-range-slider",22,4),m("change",function(e){u(o);let i=C();return f(i.onRangeSliderChange(e))}),d()}if(a&2){let o=C();h("min",o.tempRangeConfig.min)("max",o.tempRangeConfig.max)("start",o.tempRangeConfig.start)("end",o.tempRangeConfig.end)("step",o.tempRangeConfig.step)("unit",o.tempRangeConfig.unit)}}var Et=(()=>{let n=class n{onClick(t){if(!this.expanded)return;this.elRef.nativeElement.contains(t.target)||this.formControl&&this.formControl.nativeElement.contains(t.target)||this.onCollapse()}get expanded(){return this._expanded}set expanded(t){this._expanded=t,this.calculateMaxHeight()}constructor(t,e,i){this.elRef=t,this.changeDetectorRef=e,this.translate=i,this.searchIncluded=!1,this.change=new z,this._expanded=!1,this.expandUp=!1,this.hasRangeSliderTempChanged=!1,this.isNative=!1,setInterval(()=>{this.changeDetectorRef.detectChanges()},1e3)}ngOnChanges(t){var e,i,r,c;if(((e=t.items)==null?void 0:e.currentValue)!=null&&this.resetItems(),((i=t.rangeConfig)==null?void 0:i.currentValue)!=null&&(this.tempRangeConfig=K(this.rangeConfig)),((r=t.label)==null?void 0:r.previousValue)!=((c=t.label)==null?void 0:c.currentValue)){let p=t.label.currentValue,F=p.substring(0,p.lastIndexOf("."))+".SEARCH_PLACEHOLDER";this.searchPlaceholder=this.translate.instant(F)}}ngOnInit(){this.isNative=Ke.isNative,this.type==="range"?this.tempRangeConfig=K(this.rangeConfig):(this.type==="checkboxes"||this.type==="checkboxesWithSearchbar")&&this.resetItems()}resetItems(){this.tempItems=K(this.items),this.searchItems=[]}toggleMore(){this.expanded=!this.expanded,this.expanded?this.updateSearchItems(this.tempItems):this.onCollapse()}onItemClick(t,e){let i=e.querySelector('input[type="checkbox"]');i&&i.click()}onSubmit(){this.expanded=!1,this.type==="range"?this.rangeConfig=K(this.tempRangeConfig):(this.type==="checkboxes"||this.type==="checkboxesWithSearchbar")&&(this.items=K(this.tempItems)),this.change.emit({items:this.items,rangeConfig:this.rangeConfig})}onRangeSliderChange(t){this.tempRangeConfig=t,this.hasRangeSliderTempChanged=!0}onCollapse(){var t;
1if(this.type==="range"){if((t=this.rangeSlider)!=null&&t.isRecentlyDragging)return;this.expanded=!1,this.onRangeSliderCollapse()}else(this.type==="checkboxes"||this.type==="checkboxesWithSearchbar")&&(this.expanded=!1,this.onCheckboxCollapse())}onRangeSliderCollapse(){this.rangeConfig&&this.hasRangeSliderTempChanged&&(setTimeout(()=>{this.tempRangeConfig=null,this.changeDetectorRef.detectChanges(),this.tempRangeConfig=K(this.rangeConfig),this.changeDetectorRef.detectChanges()},200),this.hasRangeSliderTempChanged=!1)}onCheckboxCollapse(){setTimeout(()=>{this.resetItems()},200)}searchChanged(t){this.searchText=t.target.value,this.searchText.length===0?this.resetItems():this.updateSearchItems(this.tempItems)}updateSearchItems(t){this.searchItems=t==null?void 0:t.filter(e=>{var i,r;return(r=e.label)==null?void 0:r.toLowerCase().includes((i=this.searchText)==null?void 0:i.toLowerCase())})}onSearchFocus(){this.isNative&&this.search.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}clearSearch(){this.search.nativeElement.value="",this.search.nativeElement.dispatchEvent(new Event("input",{bubbles:!0})),setTimeout(()=>{this.calculateMaxHeight()})}calculateMaxHeight(){let t=this.menu.nativeElement,e=this.checkboxes.nativeElement;if(this.expanded){let i=t.scrollHeight,r=e.scrollHeight,c=i+r;t.style.maxHeight=`${c}px`}else t.style.maxHeight="0px"}};n.\u0275fac=function(e){return new(e||n)(y(ce),y(X),y(he))},n.\u0275cmp=R({type:n,selectors:[["app-marketplace-filter"]],viewQuery:function(e,i){if(e&1&&(V(Qt,5),V($t,5),V(zt,5),V(qt,5),V(Wt,5)),e&2){let r;j(r=H())&&(i.formControl=r.first),j(r=H())&&(i.menu=r.first),j(r=H())&&(i.search=r.first),j(r=H())&&(i.checkboxes=r.first),j(r=H())&&(i.rangeSlider=r.first)}},hostBindings:function(e,i){e&1&&m("click",function(c){return i.onClick(c)},!1,de)},inputs:{type:"type",label:"label",items:"items",searchIncluded:"searchIncluded",rangeConfig:"rangeConfig"},outputs:{change:"change"},standalone:!1,features:[le],decls:18,vars:13,consts:[["formControl",""],["menu",""],["checkboxes",""],["search",""],["rangeSlider",""],[1,"formControl"],[1,"label",3,"click"],["aria-hidden","false","aria-label","expand","inline","true",1,"expandIcon"],[1,"menu"],["class","searchContainer",4,"ngIf"],[1,"checkboxes"],[3,"click",4,"ngFor","ngForOf"],["class","noResults",4,"ngIf"],[3,"min","max","start","end","step","unit","change",4,"ngIf"],[1,"submitFilters",3,"click","disabled"],[1,"searchContainer"],[1,"icon-close_chip","searchClear",3,"click","hidden"],["type","search",1,"filterSearch",3,"change","input","focus","placeholder"],[3,"click"],["name","checkbox",3,"label","checked"],[1,"numberOfEntries"],[1,"noResults"],[3,"change","min","max","start","end","step","unit"]],template:function(e,i){if(e&1){let r=P();l(0,"div",5,0)(2,"div",6),m("click",function(){return u(r),f(i.toggleMore())}),g(3),_(4,"translate"),l(5,"mat-icon",7),g(6," expand_more "),d()(),l(7,"div",8,1),w(9,Kt,4,2,"div",9),l(10,"ul",10,2),w(12,Gt,5,5,"li",11)(13,Yt,3,3,"div",12),d(),w(14,Xt,2,6,"app-range-slider",13),l(15,"app-marketplace-button",14),m("click",function(){return u(r),f(i.onSubmit())}),g(16),_(17,"translate"),d()()()}e&2&&(Y("expanded",i.expanded),s(3),L(" ",M(4,9,i.label)," "),s(6),h("ngIf",i.searchIncluded),s(3),h("ngForOf",i.searchText&&i.searchText.length>0&&i.searchItems?i.searchItems:i.tempItems),s(),h("ngIf",(i.searchText==null?null:i.searchText.length)>0&&(i.searchItems==null?null:i.searchItems.length)===0),s(),h("ngIf",i.tempRangeConfig!=null),s(),h("disabled",(i.searchText==null?null:i.searchText.length)>0&&(i.searchItems==null?null:i.searchItems.length)===0),s(),L(" ",M(17,11,"CLASSIFIEDS.BUTTON.FILTER_NOW")," "))},dependencies:[J,Z,te,me,St,Tt,q],styles:["[_nghost-%COMP%]{display:inline-block}.formControl[_ngcontent-%COMP%]{position:relative;width:100%;font-size:14px;font-weight:400;line-height:16.41px}.formControl[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px;border-width:2px;border-style:solid;border-radius:5px;cursor:pointer;transition:background-color .2s ease-in-out 0ms}.formControl[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .expandIcon[_ngcontent-%COMP%]{font-size:22px;transition:transform .2s ease-in-out 0s}.formControl.expanded[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{padding:15px}.formControl.expanded[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .expandIcon[_ngcontent-%COMP%]{transform:rotate(180deg)}.formControl.expanded[_ngcontent-%COMP%]:not(.expandUp) .label[_ngcontent-%COMP%]{border-bottom-color:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.formControl.expanded[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{visibility:visible;transition-delay:0s;max-height:400px;transition:max-height .3s ease-in-out,transform .3s ease-in-out,visibility 0s linear 0s;transform:translateY(0)}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;padding:5px 0;border-width:2px;border-style:solid;border-radius:0 0 5px 5px;border-top-width:0;z-index:2;width:calc(100% - 4px);left:0;overflow:hidden;max-height:0;transform:translateY(-20px);visibility:hidden;transition:max-height .3s ease-in-out,transform .3s ease-in-out,visibility 0s ease-in-out .3s}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] .searchContainer[_ngcontent-%COMP%]{position:relative}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] .searchContainer[_ngcontent-%COMP%] .searchClear[_ngcontent-%COMP%]{position:absolute;top:15px;right:20px;font-size:14px;cursor:pointer}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] .filterSearch[_ngcontent-%COMP%]{box-sizing:border-box;margin:0 15px 5px;padding:10px 15px;border:none;background-color:transparent;border-bottom-width:1px;border-bottom-style:solid;border-bottom-right-radius:0;border-bottom-left-radius:0;height:38px;flex:0 1 auto;font-size:16px;font-weight:400;line-height:20px;letter-spacing:.5px;scroll-margin:calc(var(--header-top-height) + var(--header-middle-height) + var(--header-bottom-height) + 70px);width:calc(100% - 35px)}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] .filterSearch[_ngcontent-%COMP%]::-moz-placeholder{opacity:1}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] .filterSearch[_ngcontent-%COMP%]::-webkit-search-cancel-button{-webkit-appearance:none}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] ul.checkboxes[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;max-height:287px;overflow-y:scroll}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] ul.checkboxes[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:4px 15px;line-height:24px;
1cursor:pointer}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] ul.checkboxes[_ngcontent-%COMP%] li[_ngcontent-%COMP%] app-checkbox[_ngcontent-%COMP%]{pointer-events:none}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] ul.checkboxes[_ngcontent-%COMP%] .noResults[_ngcontent-%COMP%]{margin:15px 15px 0}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] app-range-slider[_ngcontent-%COMP%]{margin:10px 15px 0}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] .submitFilters[_ngcontent-%COMP%]{display:block;margin:15px 15px 10px}"]});let a=n;return a})();var Rt=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=D({type:n}),n.\u0275inj=E({imports:[A,W,ie,ge,Ot,Ft]});let a=n;return a})();var Zt=["formControl"],ei=["menu"];function ti(a,n){if(a&1){let o=P();l(0,"li",8),m("click",function(){let e=u(o),i=e.$implicit,r=e.index,c=C();return f(c.onItemClick(r,i.value))}),g(1),_(2,"translate"),d()}if(a&2){let o=n.$implicit;s(),O(M(2,1,o==null?null:o.label))}}var Dt=(()=>{let n=class n{onClick(t){!(this.elRef.nativeElement.contains(t.target)||this.formControl&&this.formControl.nativeElement.contains(t.target))&&this.expanded&&(this.expanded=!1)}get expanded(){return this._expanded}set expanded(t){this._expanded=t;let e=this.menu.nativeElement;if(this.expanded){let i=e.scrollHeight;e.style.maxHeight=`${i}px`}else e.style.maxHeight="0px"}constructor(t){this.elRef=t,this.items=[],this.change=new z,this.activeIndex=1,this._expanded=!1,this.expandUp=!1}ngOnInit(){this.activeIndex=this.items.findIndex(t=>t.value===this.selectedSort)}toggleMore(){this.expanded=!this.expanded}onItemClick(t,e){this.activeIndex!==t&&(this.activeIndex=t,this.change.emit(e)),this.expanded=!1}};n.\u0275fac=function(e){return new(e||n)(y(ce))},n.\u0275cmp=R({type:n,selectors:[["app-marketplace-sort"]],viewQuery:function(e,i){if(e&1&&(V(Zt,5),V(ei,5)),e&2){let r;j(r=H())&&(i.formControl=r.first),j(r=H())&&(i.menu=r.first)}},hostBindings:function(e,i){e&1&&m("click",function(c){return i.onClick(c)},!1,de)},inputs:{items:"items",selectedSort:"selectedSort"},outputs:{change:"change"},standalone:!1,decls:14,vars:11,consts:[["formControl",""],["menu",""],[1,"formControl"],[1,"activeSort",3,"click"],[1,"labelPrefix"],["aria-hidden","false","aria-label","expand","inline","true",1,"expandIcon"],[1,"menu"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(e,i){if(e&1){let r=P();l(0,"div",2,0)(2,"div",3),m("click",function(){return u(r),f(i.toggleMore())}),l(3,"span")(4,"span",4),g(5),_(6,"translate"),d(),g(7),_(8,"translate"),d(),l(9,"mat-icon",5),g(10," expand_more "),d()(),l(11,"ul",6,1),w(13,ti,3,3,"li",7),d()()}e&2&&(Y("expanded",i.expanded)("expandUp",i.expandUp),s(5),L("",M(6,7,"CLASSIFIEDS.BUTTON.SORTING"),":\xA0"),s(2),L("",M(8,9,i.items==null||i.items[i.activeIndex]==null?null:i.items[i.activeIndex].label)," "),s(6),h("ngForOf",i.items))},dependencies:[J,te,q],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;
1--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;--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}
1body.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}[_nghost-%COMP%]{display:inline-block}.formControl[_ngcontent-%COMP%]{position:relative;min-width:222px;font-size:14px;font-weight:400;line-height:16.41px}.formControl[_ngcontent-%COMP%] .activeSort[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px;border-width:2px;border-style:solid;border-radius:5px;cursor:pointer;transition:background-color .2s ease-in-out 0ms}@media (max-width: 699px){.formControl[_ngcontent-%COMP%] .activeSort[_ngcontent-%COMP%] .labelPrefix[_ngcontent-%COMP%]{display:none}}.formControl[_ngcontent-%COMP%] .activeSort[_ngcontent-%COMP%] .expandIcon[_ngcontent-%COMP%]{font-size:22px;transition:transform .2s ease-in-out 0s}.formControl.expanded[_ngcontent-%COMP%] .activeSort[_ngcontent-%COMP%]{padding:15px}.formControl.expanded[_ngcontent-%COMP%] .activeSort[_ngcontent-%COMP%] .expandIcon[_ngcontent-%COMP%]{transform:rotate(180deg)}.formControl.expanded[_ngcontent-%COMP%]:not(.expandUp) .activeSort[_ngcontent-%COMP%]{border-bottom-color:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.formControl.expanded[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{visibility:visible;transition-delay:0s}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{position:absolute;padding:0 0 5px;list-style:none;border-width:2px;border-style:solid;border-radius:0 0 5px 5px;border-top-width:0;z-index:2;width:calc(100% - 4px);left:0;margin:0;transition:max-height .2s ease-in-out 0s,visibility 0s ease-in-out .2s,translateY .2s ease-in-out .2s;max-height:0px;overflow:hidden;visibility:hidden;transform:translateY(-6px)}.formControl[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:4px 15px;line-height:24px;cursor:pointer}"]});let a=n;return a})();var Lt=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=D({type:n}),n.\u0275inj=E({imports:[A,ie,W]});let a=n;return a})();var ni=a=>({numberOfResults:a});function oi(a,n){a&1&&(T(0,"h1",9),_(1,"translate")),a&2&&h("innerHTML",M(1,1,"JOBMARKET.TITLE"),Oe)}function ai(a,n){if(a&1&&T(0,"app-main-cat-nav",10),a&2){let o=C();h("mainCategories",o.mainCategories)("onCategoryClick",o.goCategoryPage.bind(o))}}function ri(a,n){if(a&1){let o=P();ne(0),l(1,"app-marketplace-filter",17),m("change",function(e){let i=u(o).$implicit,r=C(3);return f(r.onFiltersChange(i.filter,e))}),d(),oe()}if(a&2){let o=n.$implicit;s(),h("label",o.label)("items",o.items)("searchIncluded",o.searchIncluded)("type",o.type)("rangeConfig",o.rangeConfig)}}function si(a,n){if(a&1&&(l(0,"mat-accordion",14)(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h2"),g(5),_(6,"translate"),d()()(),l(7,"div",15),w(8,ri,2,5,"ng-container",16),d()()()),a&2){let o=C(2);s(5),O(M(6,2,"MARKETPLACE.SEARCH.FILTER")),s(3),h("ngForOf",o.filters)}}function li(a,n){if(a&1){let o=P();ne(0),l(1,"app-marketplace-filter",17),m("change",function(e){let i=u(o).$implicit,r=C(3);return f(r.onFiltersChange(i.filter,e))}),d(),oe()}if(a&2){let o=n.$implicit;s(),h("label",o.label)("items",o.items)("searchIncluded",o.searchIncluded)("type",o.type)("rangeConfig",o.rangeConfig)}}function ci(a,n){if(a&1&&(l(0,"div")(1,"h2"),g(2),_(3,"translate"),d(),l(4,"div",15),w(5,li,2,5,"ng-container",16),d()()),a&2){let o=C(2);s(2),O(M(3,2,"MARKETPLACE.SEARCH.FILTER")),s(3),h("ngForOf",o.filters)}}function di(a,n){if(a&1){let o=P();l(0,"app-chip",21),m("close",function(){let e=u(o).$implicit,i=C(3);return f(i.onChipClose(e))}),d()}if(a&2){let o=n.$implicit;h("label",o.label)}}function pi(a,n){if(a&1){let o=P();l(0,"div",18),w(1,di,1,1,"app-chip",19),l(2,"app-marketplace-button",20),m("click",function(){u(o);let e=C(2);return f(e.resetChips())}),g(3),_(4,"translate"),d()()}if(a&2){let o=C(2);s(),h("ngForOf",o.chips),s(),h("disabled",o.chips.length===0),s(),L(" ",M(4,3,"MARKETPLACE.SEARCH.RESET_FILTER")," ")}}function hi(a,n){if(a&1&&(l(0,"section",11),w(1,si,9,4,"mat-accordion",12),ne(2),w(3,ci,6,4,"div",7)(4,pi,5,5,"div",13),oe(),d()),a&2){let o=C();s(),h("ngIf",o.isMobile),s(2),h("ngIf",!o.isMobile),s(),h("ngIf",o.chips.length>0)}}function mi(a,n){if(a&1&&T(0,"advertisement",30),a&2){let o=C().index,t=C(3);h("adConfig",t.adPageConfig)("index",t.getAdCounter(o))}}function gi(a,n){if(a&1){let o=P();ne(0),l(1,"app-marketplace-card",28),_(2,"currency"),_(3,"translate"),m("click",function(){let e=u(o).$implicit,i=C(3);return f(i.openClassifieds(e==null||e._source==null?null:e._source.title,e==null||e._source==null?null:e._source.id))}),d(),w(4,mi,1,2,"advertisement",29),oe()}if(a&2){let o=n.$implicit,t=n.index,e=C(3);s(),h("id",o==null||o._source==null?null:o._source.id)("type",e.pageType==="jobmarket"?"jobmarket":o==null||o._source==null?null:o._source.type)("location",o==null||o._source==null?null:o._source.location)("title",o==null||o._source==null?null:o._source.title)("subtitle",(o==null||o._source==null?null:o._source.htmlDescription)||(o==null||o._source==null?null:o._source.description))("timestamp",(o==null||o._source==null?null:o._source.createdAt)*1e3)("image",o==null||o._source==null||o._source.images==null?null:o._source.images[0])("highlight",e.isHighlightAd(o))("top",e.isTopAd(o))("bottomRight",o._source.priceType==="fixed"||!o._source.priceType?be(2,11,o==null||o._source==null?null:o._source.price,"CHF "):M(3,14,"CLASSIFIEDS.PRICE."+o._source.priceType)),s(3),h("ngIf",(t+1)%3===0)}}function ui(a,n){if(a&1){let o=P();l(0,"div",27),m("scrolled",function(){u(o);let e=C(2);return f(e.onScrollDown())}),w(1,gi,5,16,"ng-container",16),d()}if(a&2){let o=C(2);h("infiniteScrollDistance",1)("infiniteScrollThrottle",150)("infiniteScrollDisabled",o.apiRequestPending),s(),h("ngForOf",o.adsList)}}function fi(a,n){a&1&&(l(0,"div",31)(1,"mat-icon"),g(2,"sentiment_dissatisfied"),d(),l(3,"span"),g(4),_(5,"translate"),d()()),a&2&&(s(4),O(M(5,1,"CLASSIFIEDS.SEARCH.NO_RESULTS")))}function Ci(a,n){a&1&&(l(0,"div",32),T(1,"mat-spinner",33),d())}function xi(a,n){if(a&1){let o=P();l(0,"section")(1,"div",22)(2,"h2"),g(3),_(4,"translate"),l(5,"span",23),g(6),d()(),l(7,"app-marketplace-sort",24),m("change",function(e){u(o);let i=C();return f(i.onSortIndexChanged(e))}),d()(),w(8,ui,2,4,"div",25)(9,fi,6,3,"ng-template",null,0,Ee)(11,Ci,2,0,"div",26),d()}if(a&2){let o=Fe(10),t=C();s(3),L(" ",be(4,7,"MARKETPLACE.SEARCH.RESULTS",Ie(10,ni,t.totalResult))," "),s(3),O(t.searchTerm),s(),h("items",t.sortOptions)("selectedSort",t.sortBy),s(),h("ngIf",t.totalResult>=1)("ngIfElse",o),s(3),h("ngIf",t.apiRequestPending)}}function _i(a,n){if(a&1&&(l(0,"div",34),T(1,"app-loading-animation",35),d()),a&2){let o=C();s(),h("showLoading",o.initialLoadHappened)}}var At=(()=>{let n=class n{constructor(t,e,i,r,c,p,F,B,$,U,v,k,S){this.elasticSearchService=t,this.route=e,this.router=i,this.routingService=r,this.scrollService=c,this.paginationService=p,this.session=F,this.classifiedsService=B,this.translate=$,this.changeDetectorRef=U,this.currencyPipe=v,this.decimalPipe=k,this.layoutService=S,this.totalResult=0,this.take=3,this.chips=[],this.mainCategories=[],this.searchTerm="",this.selectedSubCategories=[],this.sortObject={_score:"desc"},this.adsList=[],this.useSortTiebreaker=!1,this.apiRequestPending=!1,this.initialLoadHappened=!0,this.allResultsLoaded=!1,this.autoSuggestion="",this.allFilter={},this.currentLang="de",this.subCategoryList=[],this.subCategoryLabels=[],this.breakpointSubscription=new Pe,this.adPageConfig=qe.marketplace.inFeed,this.sortBy="_score",this.sortOptions=[{label:"CLASSIFIEDS.SEARCH.SORTING_RELEVANCE",value:"_score"},{label:"CLASSIFIEDS.SEARCH.SORTING_POPULAR",value:"viewCount"},{label:"CLASSIFIEDS.SEARCH.SORTING_NEWEST",value:"newest"},{label:"CLASSIFIEDS.SEARCH.SORTING_OLDEST",value:"oldest"},{label:"CLASSIFIEDS.SEARCH.SORTING_PRICE_ASC",value:"priceAsc"},{label:"CLASSIFIEDS.SEARCH.SORTING_PRICE_DESC",value:"priceDesc"}],this.filters=[],this.selectedFilters=[];
1let b=this.route.snapshot.data;this.pageType=b.pageType,this.availableFilters=this.pageType==="jobmarket"?[{label:"contract-type",type:"checkboxes"},{label:"working-hours",type:"checkboxes"},{label:"location",type:"checkboxesWithSearchbar"}]:[{label:"type",type:"checkboxes"},{label:"location",type:"checkboxesWithSearchbar"},{label:"price",type:"range"}],this.mainCategories=this.pageType==="jobmarket"?["general"]:[]}ngOnInit(){this.currentLang=this.session.activeLanguage,this.currentUrl=window.location.pathname;let t=0;this.getMainCategories(),this.routingService.currentNavigationTrigger==="popstate"&&(this.handleBackNavigationData(),t=1),this.routerSubscription=this.route.queryParams.pipe(Se(t)).subscribe(e=>I(this,null,function*(){try{let i=e,{q:r,category:c,subcategory:p,take:F,sortby:B="_score",sort:$}=i,U=ke(i,["q","category","subcategory","take","sortby","sort"]);this.searchTerm=r,this.category=c,this.category==null&&(this.category=this.pageType==="jobmarket"?"job":void 0),this.setAdditionalFilterTypes(),this.sortBy=B,this.setSortObject(B),this.selectedSubCategories=p==null?void 0:p.split(","),Object.entries(se({subCategories:p},U)).filter(([v,k])=>k!==void 0).forEach(([v,k])=>{let S=v==="price"||v==="kilometer"||v==="rooms",b={fieldName:v};S?(b.type="range",b.values=k.split(",")):(b.type="checkboxes",b.values=k.split(",")),this.selectedFilters.push(b)}),yield this.search({updateQueryParams:!1,isScrollDown:!1,initialTake:F}),this.category&&this.pageType==="marketplace"&&(yield this.getSubCategories()),yield this.updateFilters(),this.updateChips()}catch(r){console.log("error in query params subscription",r)}})),this.breakpointSubscription=this.layoutService.breakpoint$.subscribe(e=>{this.isMobile=e==="Mobile"})}getSubCategory(t){var i,r;let e=this.subCategoryList.find(c=>c.id===t);return(r=(i=e==null?void 0:e.data)==null?void 0:i.translation)==null?void 0:r[this.currentLang]}updateFilters(){return I(this,null,function*(){var i,r,c,p,F,B,$,U;let t=[],e=yield this.classifiedsService.getFilterValues({category:this.category,subCategories:(i=this.selectedSubCategories)==null?void 0:i.join(","),pageType:this.pageType,selectedFilters:this.selectedFilters,availableFilters:this.availableFilters,searchTerm:this.searchTerm,filterToExcludes:["price","roomsCount"]});for(let v of this.availableFilters){let k=v.label,S={filter:v.label,type:v.type,label:`${this.pageType.toUpperCase()}.FILTERS.${k.toUpperCase()}.LABEL`,searchIncluded:v.type==="checkboxesWithSearchbar"};if(v.type==="range"){if((r=e==null?void 0:e.aggregations)!=null&&r[v.label]){let x=(c=e==null?void 0:e.aggregations)==null?void 0:c[v.label];if(x.max===0||x.min==null||x.max==null||x.min===x.max)continue;S.rangeConfig={min:k==="roomsCount"?1:x.min,max:k==="roomsCount"?8:x.max,step:k==="roomsCount"?.5:x.max/100,unit:this.getFilterUnit(k)}}let b=this.selectedFilters.find(x=>x.fieldName===k);b&&(S.rangeConfig.start=parseInt((p=b.values)==null?void 0:p[0]),S.rangeConfig.end=parseInt((F=b.values)==null?void 0:F[1]))}else{let b=this.selectedFilters.find(x=>x.fieldName===k);S.items=($=(B=e==null?void 0:e.aggregations)==null?void 0:B[v.label])==null?void 0:$.buckets.map((x,ve)=>{var G;return{id:x==null?void 0:x.key,label:this.getFilterLabel(k,x),amount:x.doc_count,checked:(G=b==null?void 0:b.values)==null?void 0:G.includes(x==null?void 0:x.key)}})}(S.type==="range"&&S.rangeConfig||(S.type==="checkboxes"||S.type==="checkboxesWithSearchbar")&&((U=S.items)==null?void 0:U.length)>0)&&t.push(S)}this.filters=t})}getFilterLabel(t,e){var i;return t==="subCategories"?this.getSubCategory(e==null?void 0:e.key):t==="location"||t==="brand"?e==null?void 0:e.key:`${this.pageType.toUpperCase()}.FILTERS.${t==null?void 0:t.toUpperCase()}.${(i=e==null?void 0:e.key)==null?void 0:i.toUpperCase()}`}getFilterUnit(t){if(t==="roomsCount")return"ROOMS";if(t==="price")return"CHF"}setAdditionalFilterTypes(){this.category!=null&&(this.category==="car"&&(this.availableFilters.push({label:"brand",type:"checkboxes"}),this.availableFilters.push({label:"kilometer",type:"range"})),this.category==="realestate"&&(this.availableFilters.unshift({label:"propertyType",type:"checkboxes"}),this.availableFilters.push({label:"roomsCount",type:"range"})))}search(r){return I(this,arguments,function*({updateQueryParams:t=!0,isScrollDown:e=!1,initialTake:i}){var c,p,F,B,$,U,v,k,S;try{t&&(yield this.setAllFilterQueryParams());let b=[{term:{status:et.active}}],x;this.pageType!=="jobmarket"&&(x={terms:{category:["job"]}}),this.category&&b.push({term:{category:this.category}}),(c=this.selectedSubCategories)!=null&&c.length&&b.push({terms:{subCategories:this.selectedSubCategories}});let ve=this.classifiedsService.createFilterValues(this.selectedFilters);b=b.concat(ve);let G;this.searchTerm?G={query_string:{fields:["title^2","description"],query:`*${this.searchTerm}*`}}:G={match_all:{}};let re={query:{bool:{must:G,must_not:x,filter:b}},sort:[{topClassifieds:{order:"desc"}},se({},this.sortObject)],size:i||this.take,track_scores:!0,suggest:{autoSuggestion:{text:this.searchTerm||"",term:{field:"title"}}}};this.useSortTiebreaker&&re.sort.push({createdAt:"desc"}),this.adsList.length>0&&e&&(re.search_after=this.adsList[this.adsList.length-1].sort),this.body=re;let Q=yield this.elasticSearchService.search(re);this.autoSuggestion=(U=($=(B=(F=(p=Q==null?void 0:Q.suggest)==null?void 0:p.autoSuggestion)==null?void 0:F[0])==null?void 0:B.options)==null?void 0:$[0])==null?void 0:U.text;let fe=((v=Q==null?void 0:Q.hits)==null?void 0:v.hits)||[];fe.length<this.take?this.allResultsLoaded=!0:this.allResultsLoaded=!1,e?this.adsList=[...this.adsList,...fe]:this.adsList=fe,this.totalResult=((S=(k=Q==null?void 0:Q.hits)==null?void 0:k.total)==null?void 0:S.value)||0,this.paginationService.setPaginationDataForSite(this.currentUrl,this.adsList),this.paginationService.setPaginationForSite(this.currentUrl,this.totalResult),this.paginationService.addAdditionalDataForSite(this.currentUrl,"filters",this.filters),this.paginationService.addAdditionalDataForSite(this.currentUrl,"selectedFilters",this.selectedFilters),this.paginationService.addAdditionalDataForSite(this.currentUrl,"searchTerm",this.searchTerm),this.paginationService.addAdditionalDataForSite(this.currentUrl,"category",this.category),this.paginationService.addAdditionalDataForSite(this.currentUrl,"selectedSubCategories",this.selectedSubCategories),this.paginationService.addAdditionalDataForSite(this.currentUrl,"sortBy",this.sortBy),this.paginationService.addAdditionalDataForSite(this.currentUrl,"useSortTiebreaker",this.useSortTiebreaker),this.paginationService.addAdditionalDataForSite(this.currentUrl,"allResultsLoaded",this.allResultsLoaded),this.initialLoadHappened=!1,this.paginationService.addAdditionalDataForSite(this.currentUrl,"initialLoadHappened",this.initialLoadHappened)}catch(b){console.log("search has failed",b)}finally{this.initialLoadHappened=!1}})}setAllFilterQueryParams(){return I(this,null,function*(){var r,c;let t={};if(this.category&&(t.category=this.category),this.sortBy&&(t.sortby=this.sortBy),this.searchTerm&&(t.q=this.searchTerm),((r=this.selectedFilters)==null?void 0:r.length)>0)for(let p of this.selectedFilters){let F=p.fieldName==="subCategories"?"subcategory":p.fieldName;t[F]=(c=p.values)==null?void 0:c.join(",")}this.adsList.length>5&&(t.take=this.adsList.length);let e=new URLSearchParams;for(let p in t)t.hasOwnProperty(p)&&t[p]&&e.set(p,t[p]);let i=window.location.pathname+"?"+e.toString();history.replaceState({},"",i)})}onScrollDown(){return I(this,null,function*(){try{if(this.apiRequestPending||this.allResultsLoaded)return;this.apiRequestPending=!0,yield this.search({updateQueryParams:!0,isScrollDown:!0})}catch(t){console.log("onScrollDown has failed",t)}finally{this.apiRequestPending=!1}})}onChipClose(t){return I(this,null,function*(){this.chips=this.chips.filter(r=>r.id!==t.id),this.chips.find(r=>r.filterCategory==="subCategories")||(this.selectedSubCategories=[]);let i=this.selectedFilters.findIndex(r=>r.fieldName===t.filterCategory);if(i!==-1){let r=this.selectedFilters[i];if(r.type==="checkboxes"){let c=r.values.filter(p=>p!==t.id);c.length===0?this.selectedFilters.splice(i,1):r.values=c}else r.type==="range"&&this.selectedFilters.splice(i,1)}yield this.updateFilters(),yield this.search({updateQueryParams:!0,isScrollDown:!1})})}resetChips(){return I(this,null,function*(){this.chips=[],this.selectedFilters=[],this.selectedSubCategories=[],yield this.updateFilters(),yield this.search({updateQueryParams:!0,isScrollDown:!1})})}handleNavigationBack(){history.back()}handleBackNavigationData(){let t=this.paginationService.getPaginationDataForSite(this.currentUrl);if(t.length>0){this.adsList=t,this.totalResult=this.paginationService.getPaginationForSite(this.currentUrl);let e=this.scrollService.getScrollPosition(this.currentUrl);this.pageType==="marketplace"&&(this.mainCategories=this.paginationService.getAdditionalDataForSite(this.currentUrl,"mainCategories")),setTimeout(()=>{this.scrollService.scrollToWithRetry(e,5,500)},0),this.sortBy=this.paginationService.getAdditionalDataForSite(this.currentUrl,"sortBy")||"_score",this.useSortTiebreaker=this.paginationService.getAdditionalDataForSite(this.currentUrl,"useSortTiebreaker")||!1,this.setSortObject(this.sortBy),this.filters=this.paginationService.getAdditionalDataForSite(this.currentUrl,"filters")||[],this.selectedFilters=this.paginationService.getAdditionalDataForSite(this.currentUrl,"selectedFilters")||[],this.searchTerm=this.paginationService.getAdditionalDataForSite(this.currentUrl,"searchTerm"),this.category=this.paginationService.getAdditionalDataForSite(this.currentUrl,"category"),this.category==null&&(this.category=this.pageType==="jobmarket"?"job":void 0),this.setAdditionalFilterTypes(),this.selectedSubCategories=this.paginationService.getAdditionalDataForSite(this.currentUrl,"selectedSubCategories"),this.allResultsLoaded=this.paginationService.getAdditionalDataForSite(this.currentUrl,"allResultsLoaded"),this.initialLoadHappened=this.paginationService.getAdditionalDataForSite(this.currentUrl,"initialLoadHappened"),this.updateChips()}}openClassifieds(t,e){return I(this,null,function*(){let i=this.classifiedsService.sanitizeClassifiedTitle(t);this.router.navigate([`${ae.classifiedsRootPage}/`+i+"/"+e])})}
1setSortObject(t){this.useSortTiebreaker=!1,this.sortBy=t,t==="_score"?(this.sortObject={_score:"desc"},this.useSortTiebreaker=!0):t==="newest"?this.sortObject={createdAt:"desc"}:t==="oldest"?this.sortObject={createdAt:"asc"}:t==="viewCount"?(this.sortObject={viewCount:"desc"},this.useSortTiebreaker=!0):t==="priceAsc"?this.sortObject={price:"asc"}:t==="priceDesc"&&(this.sortObject={price:"desc"})}onSortIndexChanged(t){return I(this,null,function*(){this.setSortObject(t),yield this.search({updateQueryParams:!0,isScrollDown:!1})})}ngOnDestroy(){var e,i,r;let t=window.scrollY;this.scrollService.saveScrollPosition(this.currentUrl,t),(e=this.routerSubscription)==null||e.unsubscribe(),(i=this.mainCategorySubscription)==null||i.unsubscribe(),(r=this.breakpointSubscription)==null||r.unsubscribe()}updateChips(){this.chips=[];for(let t of this.filters)if(t.type==="checkboxes"||t.type==="checkboxesWithSearchbar"){let e=t.items.filter(i=>i.checked===!0);e=e.map(i=>({id:i.id,label:t.filter==="location"?i.label:this.translate.instant(i.label),filterCategory:t.filter})),this.chips.push(...e)}else if(t.type==="range"){let e=t.rangeConfig,i=e.start!==void 0?e.start:e.min,r=e.end!==void 0?e.end:e.max;if(i===e.min&&r===e.max)continue;let c,p;t.filter==="price"?(c=this.currencyPipe.transform(i,"CHF "),p=this.currencyPipe.transform(r,"CHF ")):t.filter==="kilometer"?(c=`${this.decimalPipe.transform(i)}`,p=`${this.decimalPipe.transform(r)} ${this.translate.instant("MARKETPLACE.FILTERS.UNITS.KILOMETER")}`):t.filter==="roomsCount"&&(c=`${i}`,p=`${r} ${this.translate.instant("MARKETPLACE.FILTERS.UNITS.ROOMS")}`);let F=`${c} - ${p}`;this.chips.push({id:t.filter,filterCategory:t.filter,label:F})}}onFiltersChange(t,e){return I(this,null,function*(){var r;t==="subCategories"&&e.items.every(c=>c.checked===!1)&&(this.selectedSubCategories=[]);let i=this.filters.find(c=>c.filter===t);if(i){if(i.type==="range"&&(i.rangeConfig=e.rangeConfig,this.updateSelectedFilters(i.type,t,null,e.rangeConfig)),i.type==="checkboxesWithSearchbar"||i.type==="checkboxes"){i.items=e.items;let c=(r=e.items)==null?void 0:r.filter(p=>p.checked===!0);this.updateSelectedFilters(i.type,t,c,null)}yield this.updateFilters(),this.updateChips(),yield this.search({updateQueryParams:!0,isScrollDown:!1})}})}updateSelectedFilters(t,e,i,r){let c=this.selectedFilters.findIndex(p=>p.fieldName===e);c!==-1?t==="range"?this.selectedFilters[c].values=[r.start,r.end]:this.selectedFilters[c].values=i.map(p=>p.id):t==="range"?this.selectedFilters.push({fieldName:e,values:[r.start,r.end],type:"range"}):this.selectedFilters.push({fieldName:e,values:i.map(p=>p.id),type:"checkboxes"})}getMainCategories(){return I(this,null,function*(){let t=yield this.classifiedsService.getClassifiedsCategories();t&&(this.mainCategories=t.filter(e=>{var i;return(i=e==null?void 0:e.data)==null?void 0:i.inNavigation}).map(e=>we(se({},e.data),{id:e.id})),this.paginationService.addAdditionalDataForSite(this.currentUrl,"mainCategories",this.mainCategories))})}getSubCategories(){return I(this,null,function*(){var e;let t=this.category?this.category.toString():"";try{let i=yield this.classifiedsService.getClassifiedsSubCategoriesPromise(t);i?(this.subCategoryList=i,((e=this.availableFilters)==null?void 0:e.findIndex(c=>c.label==="subCategories"))===-1&&this.availableFilters.push({label:"subCategories",type:"checkboxes"})):this.subCategoryList=[]}catch(i){console.error(i),this.subCategoryList=[]}})}goCategoryPage(t){this.category=t,this.router.navigate([`/${ae.classifiedsRootPage}/category/${this.category}`],{})}isTopAd(t){var e;return(e=t._source)==null?void 0:e.topClassifieds}isHighlightAd(t){var e;return(e=t._source)==null?void 0:e.highlightClassifieds}getAdCounter(t){return Math.floor(t/3)%6+1}};n.\u0275fac=function(e){return new(e||n)(y(tt),y(Ue),y(Qe),y(Xe),y(it),y(We),y(Ge),y(ae),y(he),y(X),y(ye),y(ee),y(Ye))},n.\u0275cmp=R({type:n,selectors:[["app-marketplace-search"]],standalone:!1,decls:15,vars:8,consts:[["noResults",""],[1,"contentContainer"],[1,"content-wrapper"],["class","headline",3,"innerHTML",4,"ngIf"],["class","classifieds",3,"mainCategories","onCategoryClick",4,"ngIf"],["mat-button","","aria-label","navigate back",1,"highlight","back-button",3,"click"],["class","filter-section",4,"ngIf"],[4,"ngIf"],["class","searchLoading-wrapper",4,"ngIf"],[1,"headline",3,"innerHTML"],[1,"classifieds",3,"mainCategories","onCategoryClick"],[1,"filter-section"],["container-background-color","transparent",4,"ngIf"],["class","chips",4,"ngIf"],["container-background-color","transparent"],[1,"filterContainer"],[4,"ngFor","ngForOf"],[3,"change","label","items","searchIncluded","type","rangeConfig"],[1,"chips"],[3,"label","close",4,"ngFor","ngForOf"],[1,"filterReset",3,"click","disabled"],[3,"close","label"],[1,"results-section"],[1,"highlight"],[3,"change","items","selectedSort"],["class","searchResultContainer","infinite-scroll","",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled","scrolled",4,"ngIf","ngIfElse"],["class","spinner-container",4,"ngIf"],["infinite-scroll","",1,"searchResultContainer",3,"scrolled","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled"],["orientation","horizontal",3,"click","id","type","location","title","subtitle","timestamp","image","highlight","top","bottomRight"],[3,"adConfig","index",4,"ngIf"],[3,"adConfig","index"],[1,"n
1o-results"],[1,"spinner-container"],["diameter","100","strokeWidth","4"],[1,"searchLoading-wrapper"],["withBackground","true",3,"showLoading"]],template:function(e,i){e&1&&(l(0,"div",1)(1,"div",2),w(2,oi,2,3,"h1",3)(3,ai,1,2,"app-main-cat-nav",4),T(4,"app-marketplace-search-bar"),d(),l(5,"div",2)(6,"button",5),m("click",function(){return i.handleNavigationBack()}),l(7,"mat-icon"),g(8,"keyboard_arrow_left"),d(),l(9,"span"),g(10),_(11,"translate"),d()(),w(12,hi,5,3,"section",6)(13,xi,12,12,"section",7)(14,_i,2,1,"div",8),d()()),e&2&&(s(2),h("ngIf",i.pageType==="jobmarket"),s(),h("ngIf",i.pageType==="marketplace"),s(7),O(M(11,6,"MARKETPLACE.SEARCH.NAVIGATE_BACK")),s(2),h("ngIf",i.filters.length>0),s(),h("ngIf",!i.initialLoadHappened),s(),h("ngIf",i.initialLoadHappened))},dependencies:[J,Z,xt,Et,kt,me,Dt,nt,te,st,Je,Ne,gt,vt,bt,yt,Mt,ft,ht,ye,q],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}.contentContainer[_ngcontent-%COMP%]{padding:20px 60px}@media (min-width: 700px) and (max-width: 1200px){.contentContainer[_ngcontent-%COMP%]{padding:20px}}@media (max-width: 699px){.contentContainer[_ngcontent-%COMP%]{padding:15px}}.contentContainer.native[_ngcontent-%COMP%]{min-height:calc(100vh - var(--header-settings-height) - var(--tabbar-height))}.contentContainer[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%]{max-width:740px}@media (max-width: 699px){.contentContainer[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:none}}.contentContainer[_ngcontent-%COMP%] .results-section[_ngcontent-%COMP%]{display:flex;margin-top:50px;justify-content:space-between;align-items:center}@media (max-width: 699px){.contentContainer[_ngcontent-%COMP%] .results-section[_ngcontent-%COMP%]{margin-top:25px;display:block}}.contentContainer[_ngcontent-%COMP%] .filter-section[_ngcontent-%COMP%]{margin-top:50px}@media (max-width: 699px){.contentContainer[_ngcontent-%COMP%] .filter-section[_ngcontent-%COMP%]{margin-top:15px}}.contentContainer[_ngcontent-%COMP%] .filterContainer[_ngcontent-%COMP%]{display:flex;grid-template-columns:repeat(2,1fr);gap:15px;flex-wrap:wrap}@media (max-width: 699px){.contentContainer[_ngcontent-%COMP%] .filterContainer[_ngcontent-%COMP%]{flex-direction:column;width:100%}}.contentContainer[_ngcontent-%COMP%] .filterContainer[_ngcontent-%COMP%] app-marketplace-filter[_ngcontent-%COMP%]{width:calc(50% - 7.5px)}@media (max-width: 699px){.contentContainer[_ngcontent-%COMP%] .filterContainer[_ngcontent-%COMP%] app-marketplace-filter[_ngcontent-%COMP%]{width:100%}}.contentContainer[_ngcontent-%COMP%] .chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:15px;margin-top:15px}.contentContainer[_ngcontent-%COMP%] .chips[_ngcontent-%COMP%] app-marketplace-button button{height:28px;max-height:28px;min-height:28px;padding:4px 8px;border-radius:5px;font-size:14px;font-weight:400;line-height:18px;letter-spacing:.25px;min-width:unset}.contentContainer[_ngcontent-%COMP%] .spinner-container[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:20px}.contentContainer[_ngcontent-%COMP%] app-marketplace-card[_ngcontent-%COMP%]{display:block;margin-bottom:50px}@media (max-width: 699px){.contentContainer[_ngcontent-%COMP%] app-marketplace-card[_ngcontent-%COMP%]{margin-bottom:15px}}.contentContainer[_ngcontent-%COMP%] app-marketplace-card[_ngcontent-%COMP%]:hover{cursor:pointer} app-marketplace-search-bar #searchbarWrapper{margin-bottom:0!important}.no-results[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:15px;padding:50px 0}.searchResultContainer[_ngcontent-%COMP%]{margin-top:30px}h2[_ngcontent-%COMP%]{font-size:28px;font-weight:700;line-height:32.81px}@media (max-width: 699px){h2[_ngcontent-%COMP%]{font-size:24px}}"]});let a=n;return a})();var mo=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=D({type:n}),n.\u0275inj=E({providers:[ee],imports:[A,$e.forChild([{path:"",pathMatch:"full",component:At}]),W,_t,Rt,Pt,ge,ze,ct,Lt,ot,ie,lt,Ze,Be,ut,wt,Ct,mt]});let a=n;return a})();export{mo as MarketplaceSearchModule};
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.