1"use strict";(self.webpackChunkEtrilhasFrontend=self.webpackChunkEtrilhasFrontend||[]).push([[2716],{21521(j,S,n){n.d(S,{t:()=>l});var P=n(85802),x=n(89417),F=n(21413),C=n(70152),f=n(56977),e=n(35547),M=n(78606);const T=[[["","contentHeroLead",""]],[["","contentHeroFilters",""]]],k=["[contentHeroLead]","[contentHeroFilters]"];function t(g,p){if(1&g&&(e.j41(0,"p",4),e.EFF(1),e.k0s()),2&g){const _=e.XpG();e.R7$(),e.JRh(_.subtitle)}}function s(g,p){if(1&g){const _=e.RV6();e.j41(0,"button",12),e.bIt("click",function(){P.eBV(_);const h=e.XpG();return P.Njj(h.clearSearch())}),e.nrm(1,"svg-icon",13),e.k0s()}if(2&g){const _=e.XpG();e.BMQ("aria-label",_.clearLabel)}}let l=(()=>{class g{constructor(){this.image=null,this.title="",this.subtitle="",this.searchPlaceholder="",this.searchAriaLabel="",this.clearLabel="",this.debounce=350,this.search=new P.bkB,this.searchControl=new x.MJ(""),this.lastEmitted=null,this.destroy$=new F.B}set searchValue(_){const y=_??"";y!==(this.searchControl.value??"")&&this.searchControl.setValue(y,{emitEvent:!1})}ngOnInit(){this.searchControl.valueChanges.pipe((0,C.B)(this.debounce),(0,f.Q)(this.destroy$)).subscribe(_=>this.emit(_))}get hasValue(){return!!(this.searchControl.value??"").length}onSubmit(_){_.preventDefault(),this.emit(this.searchControl.value)}clearSearch(){this.searchControl.setValue("",{emitEvent:!1}),this.emit("")}emit(_){const y=(_??"").trim();y!==this.lastEmitted&&(this.lastEmitted=y,this.search.emit(y))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(y){return new(y||g)}}static{this.\u0275cmp=e.VBU({type:g,selectors:[["app-content-hero"]],inputs:{image:"image",title:"title",subtitle:"subtitle",searchPlaceholder:"searchPlaceholder",searchAriaLabel:"searchAriaLabel",clearLabel:"clearLabel",debounce:"debounce",searchValue:"searchValue"},outputs:{search:"search"},standalone:!1,ngContentSelectors:k,decls:15,vars:10,consts:[[1,"dsv2-hero","js-page-hero"],["aria-hidden","true",1,"dsv2-hero__scrim"],[1,"dsv2-hero__inner"],[1,"dsv2-hero__title"],[1,"dsv2-hero__sub"],[1,"dsv2-hero__lead"],["role","search",1,"dsv2-hero__controls",3,"submit"],[1,"dsv2-search"],["src","assets/new-svg/search-md.svg","aria-hidden","true",1,"dsv2-search__ico"],["type","search","autocomplete","off",1,"dsv2-search__input",3,"formControl"],["type","button",1,"dsv2-search__clear"],[1,"dsv2-hero__filters"],["type","button",1,"dsv2-search__clear",3,"click"],["src","assets/new-svg/close-02.svg","aria-hidden","true"]],template:function(y,h){1&y&&(e.NAR(T),e.j41(0,"header",0),e.nrm(1,"span",1),e.j41(2,"div",2)(3,"h1",3),e.EFF(4),e.k0s(),e.nVh(5,t,2,1,"p",4),e.j41(6,"div",5),e.SdG(7),e.k0s(),e.j41(8,"form",6),e.bIt("submit",function(E){return h.onSubmit(E)}),e.j41(9,"div",7),e.nrm(10,"svg-icon",8)(11,"input",9),e.nVh(12,s,2,1,"button",10),e.k0s(),e.j41(13,"div",11),e.SdG(14,1),e.k0s()()()()),2&y&&(e.xc7("background-image",h.image?"url("+h.image+")":null),e.AVh("dsv2-hero--has-image",!!h.image),e.R7$(4),e.JRh(h.title),e.R7$(),e.vxM(h.subtitle?5:-1),e.R7$(6),e.Y8G("formControl",h.searchControl),e.BMQ("placeholder",h.searchPlaceholder)("aria-label",h.searchAriaLabel||h.searchPlaceholder),e.R7$(),e.vxM(h.hasValue?12:-1))},dependencies:[x.qT,x.me,x.BC,x.cb,x.l_,M.DM],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.dsv2-hero[_ngcontent-%COMP%]{position:relative;display:flex;align-items:flex-end;min-height:clamp(420px,52vh,540px);overflow:hidden;font-family:var(--ds-font-sans);background-color:var(--surface-muted);background-size:cover;background-position:center;background-repeat:no-repeat}.dsv2-hero__scrim[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,rgba(0,0,0,.34) 0%,rgba(0,0,0,.06) 52%,transparent 100%),linear-gradient(180deg,#00000080,#0000001a 30%,#0000004d 62%,#000c)}.dsv2-hero__inner[_ngcontent-%COMP%]{position:relative;z-index:1;width:100%;max-width:1320px;margin:0 auto;padding:var(--ds-space-16) var(--ds-space-6) var(--ds-space-10);display:flex;flex-direction:column;align-items:flex-start;gap:var(--ds-space-4)}.dsv2-hero__title[_ngcontent-%COMP%]{margin:0;max-width:20ch;color:#fff;font-size:clamp(30px,5vw,52px);font-weight:var(--ds-weight-extrabold);line-height:1.08;letter-spacing:-.02em;text-wrap:balance;text-shadow:0 1px 3px rgba(0,0,0,.28)}.dsv2-hero__sub[_ngcontent-%COMP%]{margin:0;max-width:60ch;color:#ffffffeb;font-size:clamp(15px,1.6vw,18px);line-height:1.5;text-shadow:0 1px 2px rgba(0,0,0,.24)}.dsv2-hero__lead[_ngcontent-%COMP%]:empty, .dsv2-hero__filters[_ngcontent-%COMP%]:empty{display:none}.dsv2-hero__lead[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:var(--ds-space-2);margin-top:var(--ds-space-1)}.dsv2-hero__controls[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-space-3);width:100%;max-width:660px;margin-top:var(--ds-space-2)}.dsv2-hero__filters[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:var(--ds-space-3)}@media(prefers-reduced-motion:no-preference){.dsv2-hero__title[_ngcontent-%COMP%], .dsv2-hero__sub[_ngcontent-%COMP%], .dsv2-hero__lead[_ngcontent-%COMP%], .dsv2-hero__controls[_ngcontent-%COMP%]{animation:dsv2-hero-rise .32s cubic-bezier(.16,1,.3,1) backwards}.dsv2-hero__title[_ngcontent-%COMP%]{animation-delay:40ms}.dsv2-hero__sub[_ngcontent-%COMP%]{animation-delay:.12s}.dsv2-hero__lead[_ngcontent-%COMP%]{animation-delay:.18s}.dsv2-hero__controls[_ngcontent-%COMP%]{animation-delay:.24s}}.dsv2-search[_ngcontent-%COMP%]{position:relative;flex:1 1 240px;min-width:0;box-shadow:var(--ds-shadow-2);border-radius:var(--ds-radius-pill)}.dsv2-search__ico[_ngcontent-%COMP%]{position:absolute;top:50%;left:14px;transform:translateY(-50%);width:20px;height:20px;
1display:flex;color:var(--text-subtle);pointer-events:none}.dsv2-search__input[_ngcontent-%COMP%]{width:100%;height:50px;padding:0 50px 0 44px;border:1px solid var(--border);border-radius:var(--ds-radius-pill);background:var(--surface);color:var(--text-strong);font-family:inherit;font-size:var(--ds-text-md);transition:border-color var(--ds-motion-fast) ease,box-shadow var(--ds-motion-fast) ease}.dsv2-search__input[_ngcontent-%COMP%]::placeholder{color:var(--text-subtle)}.dsv2-search__input[_ngcontent-%COMP%]:hover{border-color:var(--color-primary)}.dsv2-search__input[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary) 22%,transparent)}.dsv2-search__input[_ngcontent-%COMP%]::-webkit-search-cancel-button{appearance:none}.dsv2-search__clear[_ngcontent-%COMP%]{position:absolute;top:50%;right:4px;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;border:none;border-radius:var(--ds-radius-pill);background:transparent;color:var(--text-muted);cursor:pointer;transition:background-color var(--ds-motion-fast) ease,color var(--ds-motion-fast) ease}.dsv2-search__clear[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%]{width:16px;height:16px;display:flex}.dsv2-search__clear[_ngcontent-%COMP%]:hover{background:var(--surface-sunken);color:var(--text-strong)}.dsv2-search__clear[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary) 28%,transparent)}svg-icon[_ngcontent-%COMP%] svg{display:block;width:100%;height:100%}@media(prefers-reduced-motion:reduce){.dsv2-hero__title[_ngcontent-%COMP%], .dsv2-hero__sub[_ngcontent-%COMP%], .dsv2-hero__lead[_ngcontent-%COMP%], .dsv2-hero__controls[_ngcontent-%COMP%], .dsv2-search__input[_ngcontent-%COMP%], .dsv2-search__clear[_ngcontent-%COMP%]{animation:none;transition:none}}@media(max-width:600px){.dsv2-hero[_ngcontent-%COMP%]{min-height:clamp(360px,70vh,460px)}.dsv2-hero__inner[_ngcontent-%COMP%]{padding:var(--ds-space-12) var(--ds-space-4) var(--ds-space-8)}.dsv2-hero__controls[_ngcontent-%COMP%]{max-width:100%}}'],changeDetection:0})}}return g})()},61460(j,S,n){n.d(S,{o:()=>e});var P=n(49769),x=n(89417),F=n(78606),C=n(35547),f=n(85802);let e=(()=>{class M{static{this.\u0275fac=function(t){return new(t||M)}}static{this.\u0275mod=C.$C({type:M})}static{this.\u0275inj=f.G2t({imports:[P.MD,x.X1,F.iu.forRoot()]})}}return M})()},70933(j,S,n){n.d(S,{u:()=>ut});var P=n(75351),x=n(25251),F=n(74480),C=n(94746),f=n(65348),e=n(21253),M=n(45312),T=n(87370),k=n(65157),t=n(35547),s=n(85802),l=n(41780),g=n(45984),p=n(70487),_=n(43881),y=n(78606);const h=["attractionChipsEl"],D=()=>[1,2,3,4,5],E=()=>[1,2,3,4],$=(a,m)=>m.value,w=(a,m)=>m.label,L=(a,m)=>m.id;function z(a,m){if(1&a&&(t.j41(0,"span",8),t.EFF(1),t.k0s()),2&a){const i=t.XpG(2);t.R7$(),t.JRh(i.activeFilterCount)}}function U(a,m){if(1&a){const i=t.RV6();t.j41(0,"button",18),t.bIt("click",function(){const d=s.eBV(i).$implicit,v=t.XpG(3);return s.Njj(v.toggleActiveDifficulty(d))}),t.EFF(1),t.k0s()}if(2&a){const i=m.$implicit;t.AVh("is-selected",i.checked),t.BMQ("aria-pressed",i.checked),t.R7$(),t.SpI(" ",i.label," ")}}function G(a,m){if(1&a){const i=t.RV6();t.j41(0,"button",18),t.bIt("click",function(){const d=s.eBV(i).$implicit,v=t.XpG(3);return s.Njj(v.selectDistanceBucket(d))}),t.EFF(1),t.k0s()}
1if(2&a){const i=m.$implicit,r=t.XpG(3);t.AVh("is-selected",r.isDistanceBucketSelected(i)),t.BMQ("aria-pressed",r.isDistanceBucketSelected(i)),t.R7$(),t.SpI(" ",i.label," ")}}function X(a,m){if(1&a){const i=t.RV6();t.j41(0,"button",18),t.bIt("click",function(){const d=s.eBV(i).$implicit,v=t.XpG(3);return s.Njj(v.selectTimeBucket(d))}),t.EFF(1),t.k0s()}if(2&a){const i=m.$implicit,r=t.XpG(3);t.AVh("is-selected",r.isTimeBucketSelected(i)),t.BMQ("aria-pressed",r.isTimeBucketSelected(i)),t.R7$(),t.SpI(" ",i.label," ")}}function I(a,m){if(1&a&&(t.j41(0,"div",10)(1,"span",11),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",12),t.nI1(5,"translate"),t.Z7z(6,U,2,4,"button",17,$),t.k0s()(),t.j41(8,"div",10)(9,"span",11),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"div",12),t.nI1(13,"translate"),t.Z7z(14,G,2,4,"button",17,w),t.k0s()(),t.j41(16,"div",10)(17,"span",11),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.j41(20,"div",12),t.nI1(21,"translate"),t.Z7z(22,X,2,4,"button",17,w),t.k0s()()),2&a){const i=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,6,"searchFilterDialog.difficulty")),t.R7$(2),t.BMQ("aria-label",t.bMT(5,8,"searchFilterDialog.difficulty")),t.R7$(2),t.Dyx(i.difficulties),t.R7$(4),t.JRh(t.bMT(11,10,"searchFilterDialog.distance")),t.R7$(2),t.BMQ("aria-label",t.bMT(13,12,"searchFilterDialog.distance")),t.R7$(2),t.Dyx(i.distanceBuckets),t.R7$(4),t.JRh(t.bMT(19,14,"searchFilterDialog.time")),t.R7$(2),t.BMQ("aria-label",t.bMT(21,16,"searchFilterDialog.time")),t.R7$(2),t.Dyx(i.timeBuckets)}}function V(a,m){1&a&&t.nrm(0,"span",19)}function c(a,m){1&a&&t.Z7z(0,V,1,0,"span",19,t.fX1),2&a&&t.Dyx(t.lJ4(0,D))}function u(a,m){if(1&a&&t.nrm(0,"img",20),2&a){const i=t.XpG().$implicit;t.Y8G("src",i.icon.path,t.B4B)}}function o(a,m){if(1&a){const i=t.RV6();t.j41(0,"button",18),t.bIt("click",function(){const d=s.eBV(i).$implicit;return s.Njj(d.checked=!d.checked)}),t.nVh(1,u,1,1,"img",20),t.EFF(2),t.k0s()}if(2&a){const i=m.$implicit;t.AVh("is-selected",i.checked),t.BMQ("aria-pressed",i.checked),t.R7$(),t.vxM(null!=i.icon&&i.icon.path?1:-1),t.R7$(),t.SpI(" ",i.name," ")}}function b(a,m){if(1&a&&t.Z7z(0,o,3,5,"button",17,L),2&a){const i=t.XpG(2);t.Dyx(i.filteredActivityTypes.data)}}function O(a,m){if(1&a&&t.nrm(0,"img",20),2&a){const i=t.XpG().$implicit;t.Y8G("src",i.icon,t.B4B)}}function R(a,m){if(1&a){const i=t.RV6();t.j41(0,"button",18),t.bIt("click",function(){const d=s.eBV(i).$implicit,v=t.XpG(3);return s.Njj(v.toggleAttraction(d.id))}),t.nVh(1,O,1,1,"img",20),t.EFF(2),t.k0s()}
1if(2&a){const i=m.$implicit,r=t.XpG(3);t.AVh("is-selected",r.isAttractionSelected(i.id)),t.BMQ("aria-pressed",r.isAttractionSelected(i.id)),t.R7$(),t.vxM(i.icon?1:-1),t.R7$(),t.SpI(" ",i.name," ")}}function B(a,m){if(1&a){const i=t.RV6();t.j41(0,"button",22),t.bIt("click",function(){s.eBV(i);const d=t.XpG(3);return s.Njj(d.toggleAttractionsExpanded())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&a){const i=t.XpG(3);t.BMQ("aria-expanded",i.attractionsExpanded),t.R7$(),t.SpI(" ",t.bMT(2,2,i.attractionsExpanded?"searchFilterDialog.showLess":"searchFilterDialog.showMore")," ")}}function K(a,m){if(1&a&&(t.j41(0,"div",10)(1,"span",11),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",12,0),t.nI1(6,"translate"),t.Z7z(7,R,3,5,"button",17,L),t.k0s(),t.nVh(9,B,3,4,"button",21),t.k0s()),2&a){const i=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,7,"searchFilterDialog.attractions")),t.R7$(2),t.xc7("max-height",i.showAttractionsToggle&&!i.attractionsExpanded?i.attractionsClampHeight:null,"px"),t.AVh("filterv2-chips--clamped",i.showAttractionsToggle&&!i.attractionsExpanded),t.BMQ("aria-label",t.bMT(6,9,"searchFilterDialog.attractions")),t.R7$(3),t.Dyx(i.attractionChips),t.R7$(2),t.vxM(i.showAttractionsToggle?9:-1)}}function H(a,m){if(1&a){const i=t.RV6();t.j41(0,"button",18),t.bIt("click",function(){const d=s.eBV(i).$implicit,v=t.XpG(3);return s.Njj(v.toggleActiveAccessability(d))}),t.EFF(1),t.k0s()}if(2&a){const i=m.$implicit;t.AVh("is-selected",i.checked),t.BMQ("aria-pressed",i.checked),t.R7$(),t.SpI(" ",i.text," ")}}function Q(a,m){if(1&a&&(t.j41(0,"div",10)(1,"span",11),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",12),t.nI1(5,"translate"),t.Z7z(6,H,2,4,"button",17,$),t.k0s()()),2&a){const i=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"searchFilterDialog.accessibility")),t.R7$(2),t.BMQ("aria-label",t.bMT(5,4,"searchFilterDialog.accessibility")),t.R7$(2),t.Dyx(i.accessability)}}function Z(a,m){1&a&&t.nrm(0,"span",19)}function Y(a,m){1&a&&t.Z7z(0,Z,1,0,"span",19,t.fX1),2&a&&t.Dyx(t.lJ4(0,E))}function J(a,m){if(1&a&&t.nrm(0,"img",20),2&a){const i=t.XpG().$implicit;t.Y8G("src",i.image.path,t.B4B)}}function q(a,m){if(1&a){const i=t.RV6();t.j41(0,"button",18),t.bIt("click",function(){const d=s.eBV(i).$implicit;return s.Njj(d.checked=!d.checked)}),t.nVh(1,J,1,1,"img",20),t.EFF(2),t.k0s()}if(2&a){const i=m.$implicit;t.AVh("is-selected",i.checked),t.BMQ("aria-pressed",i.checked),t.R7$(),t.vxM(null!=i.image&&i.image.path?1:-1),t.R7$(),t.SpI(" ",i.name," ")}}function tt(a,m){if(1&a&&t.Z7z(0,q,3,5,"button",17,L),2&a){const i=t.XpG(3);t.Dyx(i.biomes.data)}}function et(a,m){if(1&a&&(t.j41(0,"div",10)(1,"span",11),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",12),t.nI1(5,"translate"),t.nVh(6,Y,2,1)(7,tt,2,0),t.k0s()()),2&a){const i=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,3,"searchFilterDialog.biomes")),t.R7$(2),t.BMQ("aria-label",t.bMT(5,5,"searchFilterDialog.biomes")),t.R7$(2),t.vxM(i.isLoading?6:7)}}function it(a,m){if(1&a&&(t.j41(0,"span",15),t.EFF(1),t.k0s()),2&a){const i=t.XpG(2);t.R7$(),t.JRh(i.activeFilterCount)}}function nt(a,m){if(1&a){const i=t.RV6();t.j41(0,"section",3)(1,"button",4),t.nI1(2,"translate"),t.bIt("click",function(){s.eBV(i);const d=t.XpG();return s.Njj(d.onClose())}),t.nrm(3,"svg-icon",5),t.k0s(),t.j41(4,"header",6)(5,"h2",7),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.nVh(8,z,2,1,"span",8),t.k0s(),t.j41(9,"div",9),t.nVh(10,I,24,18),t.j41(11,"div",10)(12,"span",11),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"div",12),t.nI1(16,"translate"),t.nVh(17,c,2,1)(18,b,2,0),t.k0s()(),t.nVh(19,K,10,11,"div",10),t.nVh(20,Q,8,6,"div",10),t.nVh(21,et,8,7,"div",10),t.k0s(),t.j41(22,"footer",13)(23,"button",14),t.bIt("click",function(){s.eBV(i);const d=t.XpG();return s.Njj(d.clearFilters())}),t.j41(24,"span"),t.EFF(25),t.nI1(26,"translate"),t.k0s(),t.nVh(27,it,2,1,"span",15),t.k0s(),t.j41(28,"button",16),t.bIt("click",function(){s.eBV(i);const d=t.XpG();return s.Njj(d.applyFilters())}),t.EFF(29),t.nI1(30,"translate"),t.k0s()()()}if(2&a){const i=t.XpG();t.R7$(),t.BMQ("aria-label",t.bMT(2,14,"searchFilterDialog.close")),t.R7$(5),t.JRh(t.bMT(7,16,"searchFilterDialog.filters")),t.R7$(2),t.vxM(i.activeFilterCount?8:-1),t.R7$(2),t.vxM(i.data.pageType===i.valuesPageType.trails?10:-1),t.R7$(3),t.JRh(t.bMT(14,18,"searchFilterDialog.types")),t.R7$(2),t.BMQ("aria-label",t.bMT(16,20,"searchFilterDialog.types")),t.R7$(2),t.vxM(i.isLoading?17:18),t.R7$(2),t.vxM(i.attractionChips.length?19:-1),t.R7$(),t.vxM(i.data.pageType===i.valuesPageType.trails?20:-1),t.R7$(),t.vxM(i.data.pageType===i.valuesPageType.ucs?21:-1),t.R7$(2),t.Y8G("disabled",!i.activeFilterCount),t.R7$(2),t.JRh(t.bMT(26,22,"searchFilterDialog.clearFilters")),t.R7$(2),t.vxM(i.activeFilterCount?27:-1),t.R7$(2),t.SpI(" ",t.bMT(30,24,"searchFilterDialog.applyFilters")," ")}}function at(a,m){if(1&a){const i=t.RV6();t.j41(0,"div",34),t.bIt("click",function(){const d=s.eBV(i).$implicit;return s.Njj(d.checked=!d.checked)}),t.EFF(1),t.k0s()}if(2&a){const i=m.$implicit;t.AVh("active",i.checked),t.R7$(),t.SpI(" ",i.name," ")}}function ot(a,m){if(1&a&&(t.j41(0,"div",32),t.Z7z(1,at,2,3,"div",33,t.fX1),t.k0s()),2&a){const i=t.XpG(3);t.R7$(),t.Dyx(i.biomes.data)}}function st(a,m){}function rt(a,m){1&a&&(t.Z7z(0,st,0,0,null,null,t.fX1),t.nrm(2,"div",35)),2&a&&t.Dyx(t.lJ4(0,E))}function lt(a,m){if(1&a&&(t.j41(0,"span",27),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.nVh(3,ot,3,0,"div",32),t.nVh(4,rt,3,1)),2&a){const i=t.XpG(2);t.R7$(),t.SpI(" ",t.bMT(2,3,"searchFilterDialog.biomes")," "),t.R7$(2),t.vxM(i.isLoading?-1:3),t.R7$(),t.vxM(i.isLoading?4:-1)}}function ct(a,m){if(1&a){const i=t.RV6();t.j41(0,"div",34),t.bIt("click",function(){const d=s.eBV(i).$implicit;return s.Njj(d.checked=!d.checked)}),t.EFF(1),t.k0s()}if(2&a){const i=m.$implicit;t.AVh("active",i.checked),t.R7$(),t.SpI(" ",i.name," ")}}function dt(a,m){if(1&a&&(t.j41(0,"div",28),t.Z7z(1,ct,2,3,"div",33,t.fX1),t.k0s()),2&a){const i=t.XpG(2);t.R7$(),t.Dyx(i.filteredActivityTypes.data)}}function ht(a,m){}function gt(a,m){1&a&&(t.Z7z(0,ht,0,0,null,null,t.fX1),t.nrm(2,"div",35)),2&a&&t.Dyx(t.lJ4(0,E))}function pt(a,m){if(1&a){const i=t.RV6();t.j41(0,"div",34),t.bIt("click",function(){const d=s.eBV(i).$implicit,v=t.XpG(3);
1return s.Njj(v.toggleActiveDifficulty(d))}),t.EFF(1),t.k0s()}if(2&a){const i=m.$implicit;t.AVh("active",i.checked),t.R7$(),t.SpI(" ",i.label," ")}}function _t(a,m){if(1&a){const i=t.RV6();t.j41(0,"div",34),t.bIt("click",function(){const d=s.eBV(i).$implicit,v=t.XpG(3);return s.Njj(v.toggleActiveAccessability(d))}),t.EFF(1),t.k0s()}if(2&a){const i=m.$implicit;t.AVh("active",i.checked),t.R7$(),t.SpI(" ",i.text," ")}}function ft(a,m){if(1&a){const i=t.RV6();t.nrm(0,"div",36),t.j41(1,"span",27),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",37),t.Z7z(5,pt,2,3,"div",33,t.fX1),t.k0s(),t.nrm(7,"div",36),t.j41(8,"span",27),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"mat-slider",38,1),t.bIt("change",function(){s.eBV(i);const d=t.sdS(12),v=t.XpG(2);return s.Njj(v.onSliderChange(d,"distance"))}),t.nrm(13,"input",39)(14,"input",40),t.k0s(),t.nrm(15,"div",36),t.j41(16,"span",27),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"mat-slider",41,2),t.bIt("change",function(){s.eBV(i);const d=t.sdS(20),v=t.XpG(2);return s.Njj(v.onSliderChange(d,"time"))}),t.nrm(21,"input",39)(22,"input",40),t.k0s(),t.nrm(23,"div",36),t.j41(24,"div",42),t.nrm(25,"svg-icon",43),t.j41(26,"span",27),t.EFF(27),t.nI1(28,"translate"),t.k0s()(),t.j41(29,"div",37),t.Z7z(30,_t,2,3,"div",33,t.fX1),t.k0s()}if(2&a){const i=t.XpG(2);t.R7$(2),t.SpI(" ",t.bMT(3,8,"searchFilterDialog.difficulty")," "),t.R7$(3),t.Dyx(i.difficulties),t.R7$(4),t.SpI(" ",t.bMT(10,10,"searchFilterDialog.distance")," "),t.R7$(4),t.Y8G("value",(null==i.distance?null:i.distance.start)||0),t.R7$(),t.Y8G("value",(null==i.distance?null:i.distance.end)||50),t.R7$(3),t.SpI(" ",t.bMT(18,12,"searchFilterDialog.time")," "),t.R7$(4),t.Y8G("value",(null==i.time?null:i.time.start)||0),t.R7$(),t.Y8G("value",(null==i.time?null:i.time.end)||10),t.R7$(5),t.SpI(" ",t.bMT(28,14,"searchFilterDialog.accessibility")," "),t.R7$(3),t.Dyx(i.accessability)}}function mt(a,m){if(1&a){const i=t.RV6();t.j41(0,"div",23)(1,"span",24),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"img",25),t.bIt("click",function(){s.eBV(i);const d=t.XpG();return s.Njj(d.onClose())}),t.k0s()(),t.j41(5,"mat-dialog-content")(6,"div",26),t.nVh(7,lt,5,5),t.j41(8,"span",27),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.nVh(11,dt,3,0,"div",28),t.nVh(12,gt,3,1),t.nVh(13,ft,32,16),t.k0s()(),t.j41(14,"div",29)(15,"span",30),t.bIt("click",function(){s.eBV(i);const d=t.XpG();return s.Njj(d.clearFilters())}),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"div",31),t.bIt("click",function(){s.eBV(i);const d=t.XpG();return s.Njj(d.applyFilters())}),t.EFF(19),t.nI1(20,"translate"),t.k0s()()}if(2&a){const i=t.XpG();t.R7$(2),t.SpI(" ",t.bMT(3,8,"searchFilterDialog.filters")," "),t.R7$(5),t.vxM(i.data.pageType==i.valuesPageType.ucs?7:-1),t.R7$(2),t.SpI(" ",t.bMT(10,10,"searchFilterDialog.types")," "),t.R7$(2),t.vxM(i.isLoading?-1:11),t.R7$(),t.vxM(i.isLoading?12:-1),t.R7$(),t.vxM(i.data.pageType==i.valuesPageType.trails?13:-1),t.R7$(3),t.SpI(" ",t.bMT(17,12,"searchFilterDialog.clearFilters")," "),t.R7$(3),t.SpI(" ",t.bMT(20,14,"searchFilterDialog.applyFilters")," ")}}let ut=(()=>{class a{constructor(i,r,d,v,W,N,A){this.dialogRef=i,this.data=r,this.coffeeService=d,this.cdr=v,this.translate=W,this.location=N,this.themeService=A,this.attractionsExpanded=!1,this.showAttractionsToggle=!1,this.attractionsClampHeight=null,this.activityTypes=new F.ov,this.filteredActivityTypes=new F.ov,this.biomes=new F.ov,this.difficulties=new Array,this.accessability=[],this.filter=new f.ji(null),this.valuesPageType=e.g,this.hasCleanedFilters=!1,this.isLoading=!1,this.isV2=!1,this.distanceBuckets=[{label:"0\u20135 km",start:0,end:5},{label:"5\u201315 km",start:5,end:15},{label:"15\u201330 km",start:15,end:30},{label:"30+ km",start:30,end:9999}],this.timeBuckets=[{label:"0\u20132 h",start:0,end:2},{label:"2\u20134 h",start:2,end:4},{label:"4\u20138 h",start:4,end:8},{label:"8+ h",start:8,end:9999}],this.selectedDistanceBucket=null,this.selectedTimeBucket=null,this.selectedAttractionIds=[],this.env=M.c.appSettings.getAppSettings()}ngOnInit(){this.isV2=this.themeService.isV2,this.isV2&&this.isSupportedV2Page&&(this.dialogRef.addPanelClass("filter-dialog-v2"),this.dialogRef.updateSize("460px")),this.setValuesFilter(),this.isV2&&(this.syncBucketsFromFilter(),this.selectedAttractionIds=(this.data?.attractionTypes?.data??[]).filter(i=>i.checked).map(i=>i.id))}get isSupportedV2Page(){return this.data?.pageType===e.g.ucs||this.data?.pageType===e.g.trails}get activeFilterCount(){const i=this.filteredActivityTypes?.data?.f
1ilter(A=>A.checked).length??0,r=this.selectedAttractionIds.length;return this.data?.pageType===e.g.ucs?r+(this.biomes?.data?.filter(vt=>vt.checked).length??0)+i:r+i+(this.difficulties?.filter(A=>A.checked).length??0)+(this.selectedDistanceBucket?1:0)+(this.selectedTimeBucket?1:0)+(this.accessability?.some(A=>A.checked)?1:0)}get attractionChips(){return(this.data?.attractionTypes?.data??[]).filter(i=>!!i?.name).map(i=>({id:i.id,name:i.name,icon:i.icon?.path??""})).sort((i,r)=>i.name.localeCompare(r.name,"pt-BR",{sensitivity:"base"}))}isAttractionSelected(i){return this.selectedAttractionIds.includes(i)}toggleAttraction(i){const r=this.selectedAttractionIds.indexOf(i);r>=0?this.selectedAttractionIds.splice(r,1):this.selectedAttractionIds.push(i)}toggleAttractionsExpanded(){this.attractionsExpanded=!this.attractionsExpanded}ngAfterViewInit(){this.isV2&&setTimeout(()=>{const i=this.attractionChipsEl?.nativeElement;if(!i)return;const d=i.querySelector(".filterv2-chip")?.offsetHeight??36,v=parseFloat(getComputedStyle(i).rowGap)||8;this.attractionsClampHeight=4*d+3*v,this.showAttractionsToggle=i.scrollHeight>this.attractionsClampHeight+2,this.cdr.detectChanges()})}isDistanceBucketSelected(i){return this.selectedDistanceBucket===i}isTimeBucketSelected(i){return this.selectedTimeBucket===i}selectDistanceBucket(i){if(this.selectedDistanceBucket===i)return this.selectedDistanceBucket=null,void(this.filter.distance=null);this.selectedDistanceBucket=i,this.filter.distance=new f.eM({start:i.start,end:i.end})}selectTimeBucket(i){if(this.selectedTimeBucket===i)return this.selectedTimeBucket=null,void(this.filter.time=null);this.selectedTimeBucket=i,this.filter.time=new f.eM({start:i.start,end:i.end})}syncBucketsFromFilter(){const i=this.data?.filterDialog?.distance;i&&(this.selectedDistanceBucket=this.distanceBuckets.find(d=>d.start===i.start&&d.end===i.end)??null,this.selectedDistanceBucket&&(this.filter.distance=new f.eM({start:i.start,end:i.end})));const r=this.data?.filterDialog?.time;r&&(this.selectedTimeBucket=this.timeBuckets.find(d=>d.start===r.start&&d.end===r.end)??null,this.selectedTimeBucket&&(this.filter.time=new f.eM({start:r.start,end:r.end})))}clearFilters(){this.filter=new f.ji(null),this.activityTypes&&this.activityTypes.data&&this.activityTypes.data.forEach(r=>r.checked=!1),this.biomes&&this.biomes.data&&this.biomes.data.forEach(r=>r.checked=!1),this.difficulties.forEach(r=>r.checked=!1),this.accessability.forEach(r=>r.checked=!1),this.selectedDistanceBucket=null,this.selectedTimeBucket=null,this.selectedAttractionIds=[],this.data&&this.data.filterDialog&&(this.data.filterDialog.time&&(this.data.filterDialog.time.start=0,this.data.filterDialog.time.end=10),this.data.filterDialog.distance&&(this.data.filterDialog.distance.start=0,this.data.filterDialog.distance.end=50)),this.distance.start=0,this.distance.end=50,this.time.start=0,this.time.end=10;let i=new URLSearchParams(window.location.search);i.delete("act"),this.location.replaceState(window.location.pathname,i.toString()),this.hasCleanedFilters=!0,this.cdr.detectChanges()}onSliderChange(i,r){const d=parseInt(i.startValueIndicatorText),v=parseInt(i.endValueIndicatorText);this.filter[r]||(this.filter[r]=new f.eM(null)),this.filter[r].start=d,this.filter[r].end=v,this[r].start=d,this[r].end=v}applyFilters(){const i=this.getFilterValues();this.dialogRef.close(i)}onClose(){if(this.hasCleanedFilters){const i=this.getFilterValues();return void this.dialogRef.close(i)}this.dialogRef.close({cancel:!0})}disntaceLabel(i){return i+" km"}hourLabel(i){return i+" h"}toggleActiveDifficulty(i){i.checked=!i.checked}toggleActiveAccessability(i){for(let r of this.accessability)r.checked=!1;i.checked=!i.checked}getFilterValues(){this.data?.attractionTypes?.data&&this.data.attractionTypes.data.forEach(v=>{v.checked=this.selectedAttractionIds.includes(v.id)});const i=this.accessability.find(v=>!0===v.checked),r=i?i.value:null;return new f.ji({activityTypes:this.activityTypes.data.filter(v=>v.checked),biomes:this.biomes.data.filter(v=>v.checked),difficulties:this.difficulties.filter(v=>v.checked),distance:this.filter.distance,time:this.filter.time,accessibility:r})}setValuesFilter(){this.updateDifficultySelect(),this.createAccessabilityArray(),this.initRanges(),this.setFilterValuesFromDialogData(),this.getActivityTypeData(),this.getBiomeData()}updateDifficultySelect(){this.difficulties=C.k.trailDifficulty.map(r=>{let d=r.value.toLowerCase(),v=this.translate.instant(`searchFilterDialog.selectDifficulty.${d}`);return{value:r.value,label:v,checked:!1}
1})}createAccessabilityArray(){const i=this.translate.instant("searchFilterDialog.accessibilityOptions.enabled"),r=this.translate.instant("searchFilterDialog.accessibilityOptions.disabled");this.accessability=[{text:i,value:!0,checked:!1},{text:r,value:!1,checked:!1}]}initRanges(){const i={start:0,end:50},r={start:0,end:10};this.distance=this.data?.filterDialog?.distance||new f.eM(i),this.time=this.data?.filterDialog?.time||new f.eM(r),this.distance.start||(this.distance.start=i.start),this.distance.end||(this.distance.end=i.end),this.time.start||(this.time.start=r.start),this.time.end||(this.time.end=r.end),this.cdr.detectChanges()}getActivityTypeData(){this.isLoading=!0,this.coffeeService.get("/activitytype").returnPaginationListOf(x.M).subscribe({next:i=>{this.activityTypes=i,"paty"==this.env.appCode?this.filteredActivityTypes.data=this.activityTypes.data.filter(r=>"Canoagem"!==r.name&&"Escalada"!==r.name):this.filteredActivityTypes=this.activityTypes,this.setFilterValuesFromDialogData(),this.isLoading=!1},error:()=>{this.isLoading=!1}})}getBiomeData(){this.isLoading=!0,this.coffeeService.get("/biome").returnPaginationListOf(T.H).subscribe({next:i=>{this.biomes=i,this.setFilterValuesFromDialogData(),this.isLoading=!1},error:()=>{this.isLoading=!1}})}setFilterValuesFromDialogData(){if(this.data&&this.data.filterDialog){const i=this.data.filterDialog;i.biomes&&i.biomes.forEach(r=>{const d=this.biomes.data.find(v=>v.id===r.id);d&&(d.checked=!0)}),i.activityTypes&&i.activityTypes.forEach(r=>{const d=this.activityTypes.data.find(v=>v.id===r.id);d&&(d.checked=!0)}),i.difficulties&&this.difficulties.forEach(r=>{const d=i.difficulties.find(v=>v.value===r.value);d&&(r.checked=d.checked)}),i.distance&&(this.filter.distance=i.distance),i.time&&(this.filter.time=i.time),this.accessability.forEach(r=>{r.value===i.accessibility&&(r.checked=!0)})}}static{this.\u0275fac=function(r){return new(r||a)(t.rXU(P.CP),t.rXU(P.Vh),t.rXU(F.m_),t.rXU(k.gRc),t.rXU(l.c$),t.rXU(g.aZ),t.rXU(p.F))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-search-filter-dialog"]],viewQuery:function(r,d){if(1&r&&t.GBs(h,5),2&r){let v;t.mGM(v=t.lsd())&&(d.attractionChipsEl=v.first)}},standalone:!1,decls:2,vars:1,consts:[["attractionChipsEl",""],["sliderDistance",""],["sliderTime",""],[1,"filterv2"],["type","button",1,"filterv2__close",3,"click"],["src","assets/new-svg/close.svg","aria-hidden","true"],[1,"filterv2__header"],[1,"filterv2__title"],["aria-live","polite",1,"filterv2__count"],[1,"filterv2__body"],[1,"filterv2-section"],[1,"filterv2-section__label"],["role","group",1,"filterv2-chips"],[1,"filterv2__footer"],["type","button",1,"filterv2__clear",3,"click","disabled"],[1,"filterv2__clear-count"],["type","button",1,"filterv2__apply",3,"click"],["type","button",1,"filterv2-chip",3,"is-selected"],["type","button",1,"filterv2-chip",3,"click"],["aria-hidden","true",1,"filterv2-chip-skel"],["alt","","loading","lazy",1,"filterv2-chip__ico",3,"src"],["type","button",1,"filterv2-morelink"],["type","button",1,"filterv2-morelink",3,"click"],["mat-dialog-title","",1,"filter-header"],[1,"header-title"],["src","assets/images/icon/close.png","alt","Close Icon",1,"close-dialog",3,"click"],[1,"filter-body"],[1,"body-title"],[1,"grid-container"],[1,"filter-footer"],[1,"header-subtitle",3,"click"],[1,"button-add","button-footer",3,"click"],[1,"grid-container","margin-bottom-20"],[1,"button-add","body-button",3,"active"],[1,"button-add","body-button",3,"click"],[1,"fake-loading","fake-text","mb-1"],[1,"divider"],[1,"flex-container"],["min","0","max","50","showTickMarks","","discrete","",1,"mat-slider-container",3,"change"],["matSliderStartThumb","",3,"value"],["matSliderEndThumb","",3,"value"],["min","0","max","10","showTickMarks","","discrete","",1,"mat-slider-container",3,"change"],[1,"flex-container","gap"],["src","assets/images/svg/wheelchair-user.svg ","alt","Accessibility Icon",1,"image-acessability"]],template:function(r,d){1&r&&t.nVh(0,nt,31,26,"section",3)(1,mt,21,16),2&r&&t.vxM(d.isV2&&d.isSupportedV2Page?0:1)},dependencies:[P.BI,P.Yi,_.IV,_.XM,y.DM,l.D9],styles:[".filter-header[_ngcontent-%COMP%]{height:64px;display:flex;justify-content:space-between;padding:10px 20px;border-bottom:1px solid rgba(0,0,0,.15)}.filter-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-weight:700;display:flex;margin:auto;font-size:19px}.close-dialog[_ngcontent-%COMP%]{height:15px;filter:invert(1);align-self:center;cursor:pointer}.image-acessability[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:40px;height:40px;
1fill:var(--primary-color)}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:20px}.filter-footer[_ngcontent-%COMP%]{height:81px;display:flex;padding:16px 26px;justify-content:space-between;align-items:center;border-top:1px solid rgba(0,0,0,.15)}.filter-footer[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:18px;font-weight:700;text-decoration:underline;transition:all .3s ease;cursor:pointer}.filter-footer[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]:hover{opacity:60%}.filter-footer[_ngcontent-%COMP%] .button-footer[_ngcontent-%COMP%]{height:100%;padding:0 30px;box-shadow:0 0;width:180px}.filter-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:30px}.filter-body[_ngcontent-%COMP%] .mat-slider-container[_ngcontent-%COMP%]{margin-top:25px;width:80%;align-self:center}.filter-body[_ngcontent-%COMP%] .body-title[_ngcontent-%COMP%]{font-size:23px;font-weight:700;color:#000;margin-bottom:15px}.filter-body[_ngcontent-%COMP%] .body-subtitle[_ngcontent-%COMP%]{margin-bottom:25px}.filter-body[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:#0000002b;margin-top:50px;margin-bottom:30px}.filter-body[_ngcontent-%COMP%] .body-button[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;box-shadow:0 0;background-color:#fff;color:#000;height:fit-content;padding:10px 35px;border-radius:15px;border:1px solid rgba(0,0,0,.17)}.filter-body[_ngcontent-%COMP%] .body-button.active[_ngcontent-%COMP%], .filter-body[_ngcontent-%COMP%] .body-button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);color:var(--primary-text-color)}.filter-body[_ngcontent-%COMP%] .body-button[_ngcontent-%COMP%]:active{transform:scale(.9)}.filter-body[_ngcontent-%COMP%] .flex-container[_ngcontent-%COMP%]{display:flex;gap:40px;justify-content:center;align-items:center}.filter-body[_ngcontent-%COMP%] .flex-container.gap[_ngcontent-%COMP%]{gap:12px;justify-content:initial;margin-bottom:10px}.filter-body[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:25px}","@media(max-width:767px){.filter-footer[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{text-align:center;font-size:16px}.filter-body[_ngcontent-%COMP%] .flex-container[_ngcontent-%COMP%]{flex-direction:column}.filter-body[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}",'@charset "UTF-8";.filterv2[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:86vh;background:var(--surface, #fff);color:var(--text-default)}.filterv2__close[_ngcontent-%COMP%]{position:absolute;top:var(--ds-space-3);right:var(--ds-space-3);z-index:2;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:none;border-radius:var(--ds-radius-pill);background:color-mix(in srgb,var(--surface-muted, #f1f1f1) 90%,transparent);color:var(--text-default);cursor:pointer;transition:background-color var(--ds-motion-fast) ease,transform var(--ds-motion-fast) ease}.filterv2__close[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%]{width:18px;height:18px;display:flex}.filterv2__close[_ngcontent-%COMP%] svg{width:100%;height:100%;display:block}.filterv2__close[_ngcontent-%COMP%] svg [stroke]:not([stroke=none]){stroke:currentColor}.filterv2__close[_ngcontent-%COMP%]:hover{background:var(--surface-muted, #ececec)}.filterv2__close[_ngcontent-%COMP%]:active{transform:scale(.94)}.filterv2__close[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary) 28%,transparent)}.filterv2__header[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;gap:var(--ds-space-3);padding:var(--ds-space-5) var(--ds-space-6);padding-right:60px;border-bottom:1px solid var(--border-subtle)}.filterv2__title[_ngcontent-%COMP%]{margin:0;color:var(--text-strong);font-size:var(--ds-text-xl, 20px);font-weight:var(--ds-weight-bold, 700);line-height:1.25}.filterv2__count[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:var(--ds-radius-pill);background:var(--nav-selected);color:#fff;font-size:var(--ds-text-xs, 12px);font-weight:var(--ds-weight-bold, 700);line-height:1}.filterv2__body[_ngcontent-%COMP%]{flex:1 1 auto;overflow-y:auto;display:flex;flex-direction:column;gap:var(--ds-space-5);padding:var(--ds-space-6)}.filterv2__footer[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:var(--ds-space-4);padding:var(--ds-space-4) var(--ds-space-6);border-top:1px solid var(--border-subtle);background:var(--surface)}.filterv2__clear[_ngcontent-%COMP%]{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:var(--ds-space-2);height:44px;padding:0 var(--ds-space-5);border:1px solid var(--color-primary);border-radius:var(--ds-radius-pill);background:var(--surface);font:inherit;font-size:var(--ds-text-sm);font-weight:var(--ds-weight-semibold);color:var(--color-primary);cursor:pointer;transition:background-color var(--ds-motion-fast) ease,border-color var(--ds-motion-fast) ease,color var(--ds-motion-fast) ease,transform var(--ds-motion-fast) ease}.filterv2__clear[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--color-primary) 8%,var(--surface))}.filterv2__clear[_ngcontent-%COMP%]:active{transform:scale(.97)}.filterv2__clear[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary) 24%,transparent)}.filterv2__clear[_ngcontent-%COMP%]:disabled{border-color:var(--border-subtle);color:var(--text-muted);cursor:not-allowed}.filterv2__clear[_ngcontent-%COMP%]:disabled:hover{background:var(--surface)}.filterv2__clear[_ngcontent-%COMP%]:disabled:active{transform:none}.filterv2__clear-count[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:var(--ds-radius-pill);background:color-mix(in srgb,var(--color-primary) 14%,var(--surface));color:var(--color-primary);font-size:var(--ds-text-xs, 12px);font-weight:var(--ds-weight-bold, 700);line-height:1}.filterv2__apply[_ngcontent-%COMP%]{appearance:none;display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 var(--ds-space-6);border:1px solid transparent;border-radius:var(--ds-radius-pill);background:var(--color-primary);color:#fff;font:inherit;font-size:var(--ds-text-sm);font-weight:var(--ds-weight-semibold);
1cursor:pointer;transition:background-color var(--ds-motion-fast) ease,transform var(--ds-motion-fast) ease}.filterv2__apply[_ngcontent-%COMP%]:hover{background:var(--color-primary-strong, var(--color-primary))}.filterv2__apply[_ngcontent-%COMP%]:active{transform:scale(.97)}.filterv2__apply[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary) 28%,transparent)}.filterv2-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--ds-space-3)}.filterv2-section__label[_ngcontent-%COMP%]{font-size:var(--ds-text-xs, 12px);font-weight:var(--ds-weight-semibold);letter-spacing:.04em;text-transform:uppercase;color:var(--text-subtle)}.filterv2-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:var(--ds-space-2)}.filterv2-chips--clamped[_ngcontent-%COMP%]{overflow:hidden}.filterv2-morelink[_ngcontent-%COMP%]{align-self:flex-start;padding:4px 2px;border:none;background:none;color:var(--nav-selected);font:inherit;font-size:var(--ds-text-sm);font-weight:var(--ds-weight-semibold);cursor:pointer;transition:color var(--ds-motion-fast) ease}.filterv2-morelink[_ngcontent-%COMP%]:hover{text-decoration:underline}.filterv2-morelink[_ngcontent-%COMP%]:focus-visible{outline:none;border-radius:var(--ds-radius-sm);box-shadow:0 0 0 3px color-mix(in srgb,var(--nav-selected) 24%,transparent)}.filterv2-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:var(--ds-space-2);min-height:36px;padding:6px 14px;border:1px solid var(--border-subtle);border-radius:var(--ds-radius-pill);background:var(--surface);color:var(--text-default);font:inherit;font-size:var(--ds-text-sm);font-weight:var(--ds-weight-medium);cursor:pointer;transition:background-color var(--ds-motion-fast) ease,border-color var(--ds-motion-fast) ease,color var(--ds-motion-fast) ease,transform var(--ds-motion-fast) ease}.filterv2-chip[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--nav-selected) 10%,transparent);border-color:color-mix(in srgb,var(--nav-selected) 40%,var(--border-subtle))}.filterv2-chip[_ngcontent-%COMP%]:active{transform:scale(.97)}.filterv2-chip[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--nav-selected) 24%,transparent)}.filterv2-chip.is-selected[_ngcontent-%COMP%]{background:var(--nav-selected);border-color:var(--nav-selected);color:#fff}.filterv2-chip__ico[_ngcontent-%COMP%]{width:18px;height:18px;flex-shrink:0;object-fit:contain;display:block}.filterv2-chip.is-selected[_ngcontent-%COMP%] .filterv2-chip__ico[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.filterv2-chip-skel[_ngcontent-%COMP%]{position:relative;overflow:hidden;height:36px;width:110px;border-radius:var(--ds-radius-pill);background:var(--surface-muted, #eef0f2)}.filterv2-chip-skel[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);animation:_ngcontent-%COMP%_filterv2-shimmer 1.3s infinite}.filterv2-chip-skel[_ngcontent-%COMP%]:nth-child(1){width:96px}.filterv2-chip-skel[_ngcontent-%COMP%]:nth-child(2){width:124px}.filterv2-chip-skel[_ngcontent-%COMP%]:nth-child(3){width:108px}.filterv2-chip-skel[_ngcontent-%COMP%]:nth-child(4){width:140px}.filterv2-chip-skel[_ngcontent-%COMP%]:nth-child(5){width:88px}@keyframes _ngcontent-%COMP%_filterv2-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}@media(max-width:540px){.filterv2[_ngcontent-%COMP%]{max-height:92vh}.filterv2__header[_ngcontent-%COMP%]{padding:var(--ds-space-4) var(--ds-space-5);padding-right:52px}.filterv2__body[_ngcontent-%COMP%]{padding:var(--ds-space-5);gap:var(--ds-space-5)}.filterv2__footer[_ngcontent-%COMP%]{padding:var(--ds-space-4) var(--ds-space-5)}.filterv2__apply[_ngcontent-%COMP%]{flex:1}}@media(prefers-reduced-motion:reduce){.filterv2-chip-skel[_ngcontent-%COMP%]:after{animation:none}.filterv2__close[_ngcontent-%COMP%], .filterv2__apply[_ngcontent-%COMP%], .filterv2__clear[_ngcontent-%COMP%], .filterv2-chip[_ngcontent-%COMP%]{transition:none}}']})}}return a})()},99446(j,S,n){n.d(S,{n:()=>g});var P=n(49769),x=n(75351),F=n(88834),C=n(93049),f=n(70933),e=n(35547),M=n(85802);const T=[{path:"",component:f.u}];let k=(()=>{class p{static{this.\u0275fac=function(h){return new(h||p)}}static{this.\u0275mod=e.$C({type:p})}static{this.\u0275inj=M.G2t({imports:[C.iI.forChild(T),C.iI]})}}return p})();var t=n(43881),s=n(78606),l=n(41780);let g=(()=>{class p{static{this.\u0275fac=function(h){return new(h||p)}}static{this.\u0275mod=e.$C({type:p})}static{this.\u0275inj=M.G2t({imports:[P.MD,k,x.hM,F.Hl,t.Ez,s.iu.forRoot(),l.h]})}}return p})()},9649(j,S,n){n.d(S,{p:()=>X});var P=n(85802),x=n(89417),F=n(29048),C=n(21253),f=n(74480);class e extends f.Op{constructor(V){super(),this.text="",this.pageType=C.g.trails,this.class="",this.url="",this.active=!1,this.map(V)}}var M=n(45312),T=n(70933),k=n(13212),t=n(80161),s=n(35547),l=n(37702),g=n(41780),p=n(75351),_=n(48756),y=n(49769),h=n(79296),D=n(33746),E=n(21518),$=n(40995),w=n(1975),L=n(78606);const z=I=>[I];function U(I,V){if(1&I&&(s.j41(0,"span",12),s.EFF(1),s.k0s()),2&I){const c=V.$implicit;s.AVh("active",c.active),s.Y8G("ngClass",c.class)("langRouterLink",s.eq3(5,z,c.url)),s.R7$(),s.Sp
1I(" ",c.text," ")}}function G(I,V){if(1&I&&(s.j41(0,"div",3),s.Z7z(1,U,2,7,"span",11,s.fX1),s.k0s()),2&I){const c=s.XpG();s.R7$(),s.Dyx(c.trailOptions)}}let X=(()=>{class I{constructor(c,u,o,b){this.activatedRoute=c,this.translate=u,this.dialog=o,this.languageService=b,this.showSearchContainer=!1,this.searchControl=new x.MJ(""),this.trailOptions=[],this.appCodes=F.Z,this.isLoadingData=!0,this.translatedPaths=k.Z,this.countFilterDialog=0,this.countFilterServiceDialog=0,this.env=M.c.appSettings.getAppSettings(),this.isUcsPage=!1,this.isServicePage=!1,this.onSearchEvent=new P.bkB,this.onSearchDialogEvent=new P.bkB,this.onSearchServiceDialogEvent=new P.bkB}ngOnInit(){this.appCode=this.env.appCode,this.createFilterOptions(),this.setSearchPlaceholderKey(),this.activatedRoute.data.subscribe(c=>{this.pageType=c.pageType;let u=this.pageType;this.pageType==C.g.custom?u=C.g.trails:this.pageType==C.g.customUcs&&(u=C.g.customUcs),this.setActiveFilterOption(new e({pageType:u}))})}getSubtitleKey(){return this.isServicePage?`${this.appCode}.search-header.titleService`:this.isUcsPage?`${this.appCode}.search-header.titleTrail`:`${this.appCode}.search-header.titleUc`}getBackgroundImageUrl(){return this.env.appCode==F.Z.paty?this.isUcsPage?`url(${this.env.ucBgImage})`:this.isServicePage?`url(${this.env.serviceBgImage})`:`url(${this.env.trailBgImage})`:this.isUcsPage?`url(${this.env.ucBgImage})`:`url(${this.env.trailBgImage})`}setActiveFilterOption(c){this.trailOptions.forEach(u=>{u.active=u.pageType==c.pageType})}search(){this.onSearchEvent.emit(this.searchControl.value)}searchFilter(){this.isServicePage?this.dialog.open(t.n,{disableClose:!0,width:"fit-content",maxWidth:"500px",data:{filterServiceDialog:this.filterServiceDialog}}).afterClosed().subscribe({next:u=>{u.cancel||(this.filterServiceDialog=u,this.countFilterServiceDialog=this.countServiceFilters(this.filterServiceDialog),this.onSearchServiceDialogEvent.emit(this.filterServiceDialog))}}):this.dialog.open(T.u,{disableClose:!0,width:"fit-content",data:{filterDialog:this.filterDialog,pageType:this.isUcsPage?C.g.ucs:C.g.trails}}).afterClosed().subscribe({next:u=>{u.cancel||(this.filterDialog=u,this.countFilterDialog=this.countTrailFilters(this.filterDialog),this.onSearchDialogEvent.emit(this.filterDialog))}})}onInputChange(){this.searchControl.value?.trim()&&(this.searchTimeout=setTimeout(()=>{this.search()},1e3))}setSearchPlaceholderKey(){this.searchPlaceholderKey=this.isUcsPage?`${this.appCode}.search-header.searchUcPlaceholder`:this.isServicePage?`${this.appCode}.search-header.searchServicePlaceholder`:`${this.appCode}.search-header.searchTrailPlaceholder`}countServiceFilters(c){if(!c)return 0;let u=0;(c.search??"").trim()&&u++,c.companyTypeIds?.length&&u++,c.subCategoryIds?.length&&u++;const o=c.location;return o&&((o.country??"").trim()||(o.state??"").trim()||(o.city??"").trim())&&u++,u}countTrailFilters(c){if(!c)return 0;let u=0;return c.activityTypes?.length&&u++,c.biomes?.length&&u++,c.difficulties?.length&&u++,null!=c.accessibility&&u++,c.distance&&(0!==c.distance.start||50!==c.distance.end)&&u++,c.time&&(0!==c.time.start||10!==c.time.end)&&u++,u}createFilterOptions(){this.trailOptions=[new e({text:this.translate.instant("etrilhas.search-header.trail"),class:"left-radius",active:!1,url:this.languageService.getTranslatedPath(this.translatedPaths.Trails),pageType:C.g.trails}),new e({text:this.translate.instant("etrilhas.search-header.tlc"),class:"right-radius",active:!1,url:this.languageService.getTranslatedPath(this.translatedPaths.LongTrails),pageType:C.g.tlcs})],(this.pageType==C.g.custom||this.pageType==C.g.customUcs)&&this.trailOptions.splice(1,1)}static{this.\u0275fac=function(u){return new(u||I)(s.rXU(l.nX),s.rXU(g.c$),s.rXU(p.bZ),s.rXU(_.g))}}static{this.\u0275cmp=s.VBU({type:I,selectors:[["app-search-header"]],inputs:{isUcsPage:"isUcsPage",isServicePage:"isServicePage"},outputs:{onSearchEvent:"onSearchEvent",onSearchDialogEvent:"onSearchDialogEvent",onSearchServiceDialogEvent:"onSearchServiceDialogEvent"},standalone:!1,decls:16,vars:17,consts:[[1,"page-background"],[1,"background-content"],[1,"subtitle"],[1,"flex-container","margin"],[1,"standard-input-container"],["appearance","outline",1,"standard-input","no-border","background-input","search-trail-size"],["matInput","",3,"keydown.enter","input","formControl","placeholder"],["matSuffix","",1,"view-password",3,"click"],["src","assets/images/svg/search.svg",1,"svg-input-icon"],[1,"button-add","filter-buttom",3,"click","matBadge","matBadgeHidden"],["src","assets/images/icon/filter.png","alt",""],[1,"toggle-option",3,"active","ngClass","langRouterLink"],[1,"toggle-option",3,"ngClass","langRouterLink"]],template:function(u,o){1&u&&(s.j41(0,"div",0)(1,"div",1)(2,"span",2),s.EFF(3),s.nI1(4,"translate"),s.k0s(),s.nVh(5,G,3,0,"div",3),s.j41(6,"div",4)(7,"mat-form-field",5)(8,"input",6),s.nI1(9,"translate"),s.bIt("keydown.enter",function(){return o.search()})("input",function(){return o.onInputChange()}),s.k0s(),s.j41(10,"mat-icon",7),s.bIt("click",function(){return o.search()}),s.nrm(11,"svg-icon",8),s.k0s()()(),s.j41(12,"div",9),s.bIt("click",function(){return o.searchFilter()}),s.nrm(13,"img",10),s.EFF(14),s.nI1(15,"translate"),s.k0s()()()),2&u&&(s.xc7("background-image",o.getBackgroun
1dImageUrl())("height","500px"),s.R7$(3),s.SpI(" ",s.bMT(4,11,o.getSubtitleKey())," "),s.R7$(2),s.vxM(o.isUcsPage||o.isServicePage||"etrilhas"!=o.env.appCode?-1:5),s.R7$(3),s.Y8G("formControl",o.searchControl)("placeholder",s.bMT(9,13,o.searchPlaceholderKey)),s.R7$(4),s.Y8G("matBadge",o.isServicePage?o.countFilterServiceDialog:o.countFilterDialog)("matBadgeHidden",0===(o.isServicePage?o.countFilterServiceDialog:o.countFilterDialog)),s.R7$(2),s.SpI(" ",s.bMT(15,15,"trails.filters")," "))},dependencies:[y.YU,x.me,x.BC,x.l_,h.rl,h.yw,D.fg,E.An,$.H,w.k,L.DM,g.D9],styles:['.page-background[_ngcontent-%COMP%]{width:100%;background-repeat:no-repeat;background-size:cover;background-image:url(/assets/images/public-images/public-home-2.jpg);background-position:center;display:flex;height:400px;position:relative;z-index:10}.page-background[_ngcontent-%COMP%]:before{content:"";width:100%;bottom:0;height:100%;background:linear-gradient(180deg,#0000004d,#fff0);position:absolute;z-index:-1}.page-background[_ngcontent-%COMP%] .background-content[_ngcontent-%COMP%]{max-width:1000px;margin:auto;color:#fff;display:flex;flex-direction:column;align-items:center;gap:25px}.page-background[_ngcontent-%COMP%] .background-content[_ngcontent-%COMP%] .main-title[_ngcontent-%COMP%]{font-size:65px;display:flex;flex-direction:column;font-weight:bolder;text-align:center}.page-background[_ngcontent-%COMP%] .background-content[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{display:flex;max-width:700px;font-size:31px;align-self:center;font-weight:700;text-align:center}.flex-container[_ngcontent-%COMP%]{display:flex;gap:20px;justify-content:center;margin-top:35px}.flex-container.margin[_ngcontent-%COMP%]{margin-top:10px;gap:5px}.flex-container.justify-content[_ngcontent-%COMP%]{justify-content:space-between;gap:0px;align-items:baseline}.filter-buttom[_ngcontent-%COMP%]{background-color:#fff;border:1px solid rgba(0,0,0,.15);border-radius:35px;padding:0 15px;height:50px;font-weight:700;font-size:15px;width:110px;box-shadow:0 0;color:#000}.filter-buttom.custom-page[_ngcontent-%COMP%]:hover{border-color:#fddc00}.filter-buttom[_ngcontent-%COMP%]:hover{border-color:var(--primary-color)}.filter-buttom[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:15px}.toggle-option[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:flex;justify-content:center;width:215px;background-color:#fff;height:38px;align-items:center;color:#00000080;font-weight:500;cursor:pointer;transition:all .3s ease}.toggle-option.custom-page[_ngcontent-%COMP%]:hover, .toggle-option.custom-page.active[_ngcontent-%COMP%]{background-color:#fddc00;color:#000}.toggle-option[_ngcontent-%COMP%]:hover, .toggle-option.active[_ngcontent-%COMP%]{background-color:var(--primary-color);color:var(--primary-text-color)}.toggle-option.left-radius[_ngcontent-%COMP%]{border-top-left-radius:30px;border-bottom-left-radius:30px}.toggle-option.right-radius[_ngcontent-%COMP%]{border-top-right-radius:30px;border-bottom-right-radius:30px}',"@media(max-width:767px){.page-background[_ngcontent-%COMP%] .background-content[_ngcontent-%COMP%]{width:100%;padding:0 20px}.toggle-option[_ngcontent-%COMP%]{width:170px;font-size:14px}}"]})}}return I})()},10443(j,S,n){n.d(S,{E:()=>_});var P=n(49769),x=n(93049),F=n(9649),C=n(35547),f=n(85802);const e=[{path:"",component:F.p}];let M=(()=>{class y{static{this.\u0275fac=function(E){return new(E||y)}}static{this.\u0275mod=C.$C({type:y})}static{this.\u0275inj=f.G2t({imports:[x.iI.forChild(e),x.iI]})}}return y})();var T=n(23971),k=n(41780),t=n(75351),s=n(99446),l=n(1975),g=n(78606),p=n(38263);let _=(()=>{class y{static{this.\u0275fac=function(E){return new(E||y)}}static{this.\u0275mod=C.$C({type:y})}static{this.\u0275inj=f.G2t({imports:[P.MD,M,T.C,k.h,t.hM,s.n,p.M,l.Y,g.iu.forRoot()]})}}return y})()},34299(j,S,n){n.d(S,{X:()=>k});var P=n(85802),x=n(89417),F=n(74480),C=n(23294),f=n(45312),e=n(35547),M=n(91413),T=n(75767);let k=(()=>{class t{constructor(l,g){this.http=l,this.fb=g,this.states=new F.ov,this.countries=new F.ov,this.cities=new F.ov,this.isLoadingCountry=!1,this.isLoadingState=!1,this.isLoadingCity=!1,this.selectedState={id:0,name:""},this.selectedCountry={id:0,name:""},this.selectedCity={id:0,name:""},this.onChange=p=>{},this.onTouched=()=>{},this.form=this.fb.group({country:[null],state:[null],city:[null]})}ngOnInit(){this.getCountries(),this.form.get("state")?.disable({emitEvent:!1}),this.form.get("city")?.disable({emitEvent:!1}),this.form.get("country")?.valueChanges.pipe((0,C.F)()).subscribe(l=>{const g=this.findMatch(l,this.countries.data);this.selectedCountry=g||{id:0,name:""},this.states.data=[],this.cities.data=[],this.selectedState={id:0,name:""},this.selectedCity={id:0,name:""},this.form.get("state")?.reset(null,{emitEvent:!1}),this.form.get("city")?.reset(null,{emitEvent:!1}),this.form.get("city")?.disable({emitEvent:!1}),g?(this.form.get("state")?.enable({emitEvent:!1}
1),this.getStates()):this.form.get("state")?.disable({emitEvent:!1}),this.propagateChanges()}),this.form.get("state")?.valueChanges.pipe((0,C.F)()).subscribe(l=>{const g=this.findMatch(l,this.states.data);this.selectedState=g||{id:0,name:""},this.cities.data=[],this.selectedCity={id:0,name:""},this.form.get("city")?.reset(null,{emitEvent:!1}),g?(this.form.get("city")?.enable({emitEvent:!1}),this.getCities()):this.form.get("city")?.disable({emitEvent:!1}),this.propagateChanges()}),this.form.valueChanges.subscribe(()=>this.propagateChanges())}applyCascadeState(){if(this.form.disabled)return;const l=!!this.form.get("country")?.value,g=!!this.form.get("state")?.value;l?this.form.get("state")?.enable({emitEvent:!1}):this.form.get("state")?.disable({emitEvent:!1}),g?this.form.get("city")?.enable({emitEvent:!1}):this.form.get("city")?.disable({emitEvent:!1})}writeValue(l){if(null===l)return this.form.reset({country:null,state:null,city:null},{emitEvent:!1}),this.selectedCountry={id:0,name:""},this.selectedState={id:0,name:""},this.selectedCity={id:0,name:""},void this.applyCascadeState();if(!l)return;const g=(l.country??"").trim(),p=(l.state??"").trim(),_=(l.city??"").trim();this.form.patchValue({country:g||null,state:p||null,city:_||null},{emitEvent:!1}),this.selectedCountry={id:0,name:g},this.selectedState={id:0,name:p},this.selectedCity={id:0,name:_},this.ensureOptionByName(this.countries.data,g,y=>this.countries.data=y),this.ensureOptionByName(this.states.data,p,y=>this.states.data=y),this.ensureOptionByName(this.cities.data,_,y=>this.cities.data=y),queueMicrotask(()=>{g&&this.form.get("country")?.setValue(g,{emitEvent:!1}),p&&this.form.get("state")?.setValue(p,{emitEvent:!1}),_&&this.form.get("city")?.setValue(_,{emitEvent:!1})}),this.applyCascadeState(),g&&this.getStates(),p&&this.getCities()}registerOnChange(l){this.onChange=l}registerOnTouched(l){this.onTouched=l}setDisabledState(l){l?this.form.disable():(this.form.enable(),this.applyCascadeState())}getTranslated(l){const p=localStorage.getItem("language")||"en-us";return{"pt-br":{labelCountry:"Pa\xeds:",placeholderCountry:"Selecione um pa\xeds",labelState:"Estado:",placeholderState:"Selecione um estado",labelCity:"Cidade:",placeholderCity:"Selecione uma cidade",countryFirst:"Selecione um pa\xeds primeiro",stateFirst:"Selecione um estado primeiro",placeholderZipCode:"Informe o CEP",hintZipCode:"Digite o c\xf3digo postal do endere\xe7o",placeholderStreet:"Informe a rua ou avenida",hintStreet:"Digite o nome da rua ou avenida",placeholderNumber:"N\xfamero do im\xf3vel",hintNumber:"Digite o n\xfamero do im\xf3vel ou lote",placeholderNeighborhood:"Informe o bairro",hintNeighborhood:"Digite o nome do bairro",placeholderComplement:"Complemento (opcional)",hintComplement:"Ex: bloco, apartamento, refer\xeancia"},"en-us":{labelCountry:"Country:",placeholderCountry:"Select a country",labelState:"State:",placeholderState:"Select a state",labelCity:"City:",placeholderCity:"Select a city",countryFirst:"Select a country first",stateFirst:"Select a state first",placeholderZipCode:"Enter ZIP code",hintZipCode:"Enter the address ZIP/postal code",placeholderStreet:"Enter street or avenue",hintStreet:"Enter the name of the street or avenue",placeholderNumber:"Property number",hintNumber:"Enter the number of the house or lot",placeholderNeighborhood:"Enter neighborhood",hintNeighborhood:"Enter the name of the neighborhood",placeholderComplement:"Complement (optional)",hintComplement:"E.g.: block, apartment, reference"},es:{labelCountry:"Pa\xeds:",placeholderCountry:"Seleccione un pa\xeds",labelState:"Estado:",placeholderState:"Seleccione un estado",labelCity:"Ciudad:",placeholderCity:"Seleccione una ciudad",countryFirst:"Seleccione un pa\xeds primero",stateFirst:"Seleccione un estado primero",placeholderZipCode:"Ingrese el c\xf3digo postal",hintZipCode:"Escriba el c\xf3digo postal de la direcci\xf3n",placeholderStreet:"Ingrese la calle o avenida",hintStreet:"Escriba el nombre de la calle o avenida",placeholderNumber:"N\xfamero de la propiedad",hintNumber:"Ingrese el n\xfamero de la casa o lote",placeholderNeighborhood:"Ingrese el barr
1io",hintNeighborhood:"Escriba el nombre del barrio",placeholderComplement:"Complemento (opcional)",hintComplement:"Ej: bloque, apartamento, referencia"}}[p]?.[l]||l}ensureOptionByName(l,g,p){const _=(g??"").trim();if(!_)return;const y=Array.isArray(l)?l:[];y.some(D=>(D?.name??"").trim()===_)||p([{id:0,name:_},...y])}ensureOptionInListByName(l,g){g&&Array.isArray(l)&&(l.some(_=>_?.name===g)||l.unshift({id:0,name:g}))}getStates(){this.isLoadingState=!0;let l=`${f.c.wordInfoApi}states?pageSize=100000&ignoreSpecialChars=true`,g=this.form.get("location.searchState")?.value;this.selectedCountry.name&&(l=`${f.c.wordInfoApi}states/${this.selectedCountry.id}?pageSize=100000&ignoreSpecialChars=true`),g&&(l+=`?search=${g}`),this.http.get(l).subscribe({next:p=>{this.states=p;const _=this.form.get("state")?.value;this.ensureOptionByName(this.states.data,_,y=>this.states.data=y),this.isLoadingState=!1},error:()=>{this.isLoadingState=!1}})}getCountries(){this.isLoadingCountry=!0;let l=`${f.c.wordInfoApi}countries?pageSize=100000&ignoreSpecialChars=true`;const g=this.form.get("location.searchCountry")?.value;g&&(l+=`?search=${g}`),this.http.get(l).subscribe({next:p=>{this.countries=p,this.selectedCountry?.name&&!this.countries.data.some(_=>_.id==this.selectedCountry.id)&&this.countries.data.unshift(this.selectedCountry),this.isLoadingCountry=!1},error:()=>{this.isLoadingCountry=!1}})}getCities(){this.isLoadingCity=!0;let l=`${f.c.wordInfoApi}cities?pageSize=100000&ignoreSpecialChars=true`,g=this.form.get("location.searchCity")?.value;this.selectedState.name&&(l=`${f.c.wordInfoApi}cities/${this.selectedState.id}?pageSize=100000&ignoreSpecialChars=true`),g&&(l+=`?search=${g}`),this.http.get(l).subscribe({next:p=>{this.cities=p;const _=this.form.get("city")?.value;this.ensureOptionByName(this.cities.data,_,y=>this.cities.data=y),this.isLoadingCity=!1},error:()=>{this.isLoadingCity=!1}})}
1findMatch(l,g){return l?"object"==typeof l&&l.id?g.find(p=>p.id===l.id)||null:"string"==typeof l&&g.find(p=>p.name===l)||null:null}propagateChanges(){this.onChange(this.form.getRawValue()),this.onTouched()}static{this.\u0275fac=function(g){return new(g||t)(e.rXU(M.Qq),e.rXU(x.ok))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-search-location-form"]],standalone:!1,features:[e.Jv_([{provide:x.kq,useExisting:(0,P.Rfq)(()=>t),multi:!0}])],decls:4,vars:21,consts:[[1,"location-fields",3,"formGroup"],["formControlName","country","width","100%",3,"isLoading","items","labelKey","valueKey","hintText","placeholder"],["formControlName","state","width","100%",3,"isLoading","items","labelKey","valueKey","disabledTooltip","hintText","placeholder"],["formControlName","city","width","100%",3,"isLoading","items","labelKey","valueKey","disabledTooltip","hintText","placeholder"]],template:function(g,p){1&g&&(e.j41(0,"div",0),e.nrm(1,"app-standard-select",1)(2,"app-standard-select",2)(3,"app-standard-select",3),e.k0s()),2&g&&(e.Y8G("formGroup",p.form),e.R7$(),e.Y8G("isLoading",p.isLoadingCountry)("items",p.countries.data)("labelKey","name")("valueKey","name")("hintText",p.getTranslated("labelCountry"))("placeholder",p.getTranslated("placeholderCountry")),e.R7$(),e.Y8G("isLoading",p.isLoadingState)("items",p.states.data)("labelKey","name")("valueKey","name")("disabledTooltip",p.getTranslated("countryFirst"))("hintText",p.getTranslated("labelState"))("placeholder",p.getTranslated("placeholderState")),e.R7$(),e.Y8G("isLoading",p.isLoadingCity)("items",p.cities.data)("labelKey","name")("valueKey","name")("disabledTooltip",p.getTranslated("stateFirst"))("hintText",p.getTranslated("labelCity"))("placeholder",p.getTranslated("placeholderCity")))},dependencies:[T.V,x.BC,x.cb,x.j4,x.JD],styles:["[_nghost-%COMP%]{width:100%}.location-fields[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}"]})}}return t})()},47219(j,S,n){n.d(S,{k:()=>s});var P=n(49769),x=n(93049),F=n(34299),C=n(35547),f=n(85802);const e=[{path:"",component:F.X}];let M=(()=>{class l{static{this.\u0275fac=function(_){return new(_||l)}}static{this.\u0275mod=C.$C({type:l})}static{this.\u0275inj=f.G2t({imports:[x.iI.forChild(e),x.iI]})}}return l})();var T=n(435),k=n(41780),t=n(89417);let s=(()=>{class l{static{this.\u0275fac=function(_){return new(_||l)}}static{this.\u0275mod=C.$C({type:l})}static{this.\u0275inj=f.G2t({imports:[P.MD,M,T._,k.h,t.X1,t.YN]})}}return l})()},80161(j,S,n){n.d(S,{n:()=>V});var P=n(75351),x=n(68274),F=n(3263),C=n(76658),f=n(65157),e=n(35547),M=n(85802),T=n(89417),k=n(74480),t=n(70487),s=n(75767),l=n(2913),g=n(34299),p=n(78606),_=n(41780);const y=()=>[1,2,3,4,5],h=(c,u)=>u.id;function D(c,u){if(1&c&&(e.j41(0,"span",5),e.EFF(1),e.k0s()),2&c){const o=e.XpG(2);e.R7$(),e.JRh(o.activeFilterCount)}}function E(c,u){1&c&&e.nrm(0,"span",15)}function $(c,u){1&c&&e.Z7z(0,E,1,0,"span",15,e.fX1),2&c&&e.Dyx(e.lJ4(0,y))}function w(c,u){if(1&c){const o=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){const O=M.eBV(o).$implicit,R=e.XpG(3);return M.Njj(R.toggleCategory(O.id))}),e.nrm(1,"svg-icon",18),e.j41(2,"span",19),e.EFF(3),e.k0s()()}if(2&c){const o=u.$implicit,b=e.XpG(3);e.HbH("svcfilter-cat svcfilter-cat--"+o.modifier),e.AVh("is-selected",b.isCategorySelected(o.id)),e.BMQ("aria-pressed",b.isCategorySelected(o.id)),e.R7$(),e.Y8G("src",o.icon),e.R7$(2),e.JRh(o.name)}}function L(c,u){if(1&c&&e.Z7z(0,w,4,7,"button",16,h),2&c){const o=e.XpG(2);e.Dyx(o.categoryChips)}}function z(c,u){if(1&c){const o=e.RV6();e.j41(0,"button",22),e.bIt("click",function(){const O=M.eBV(o).$implicit,R=e.XpG(3);return M.Njj(R.toggleSubCategory(O.id))}),e.EFF(1),e.k0s()}if(2&c){const o=u.$implicit,b=e.XpG(3);e.AVh("is-selected",b.isSubSelected(o.id)),e.BMQ("aria-pressed",b.isSubSelected(o.id)),e.R7$(),e.SpI(" ",o.name," ")}}function U(c,u){if(1&c&&(e.j41(0,"div",10)(1,"span",8),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",20),e.nI1(5,"translate"),e.Z7z(6,z,2,4,"button",21,h),e.k0s()()),2&c){const o=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"searchFilterDialog.subcategoryLabel")),e.R7$(2),e.BMQ("aria-label",e.bMT(5,4,"searchFilterDialog.subcategoryLabel")),e.R7$(2),e.Dyx(o.filteredSubCategories)}}function G(c,u){if(1&c&&(e.j41(0,"span",13),e.EFF(1),e.k0s()),2&c){const o=e.XpG(2);e.R7$(),e.JRh(o.activeFilterCount)}}function X(c,u){if(1&c){const o=e.RV6();e.j41(0,"section",0)(1,"button",1),e.nI1(2,"translate"),e.bIt("click",function(){M.eBV(o);const O=e.XpG();return M.Njj(O.onClose())}),e.nrm(3,"svg-icon",2),e.k0s(),e.j41(4,"header",3)(5,"h2",4),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nVh(8,D,2,1,"span",5),e.k0s(),e.j41(9,"div",6)(10,"div",7)(11,"span",8),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"div",9),e.nI1(15,"translate"),e.nV
1h(16,$,2,1)(17,L,2,0),e.k0s()(),e.nVh(18,U,8,6,"div",10),e.k0s(),e.j41(19,"footer",11)(20,"button",12),e.bIt("click",function(){M.eBV(o);const O=e.XpG();return M.Njj(O.clearFilters())}),e.j41(21,"span"),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nVh(24,G,2,1,"span",13),e.k0s(),e.j41(25,"button",14),e.bIt("click",function(){M.eBV(o);const O=e.XpG();return M.Njj(O.applyFilters())}),e.EFF(26),e.nI1(27,"translate"),e.k0s()()()}if(2&c){const o=e.XpG();e.R7$(),e.BMQ("aria-label",e.bMT(2,12,"searchFilterDialog.close")),e.R7$(5),e.JRh(e.bMT(7,14,"searchFilterDialog.filters")),e.R7$(2),e.vxM(o.activeFilterCount?8:-1),e.R7$(),e.Y8G("formGroup",o.form),e.R7$(3),e.JRh(e.bMT(13,16,"searchFilterDialog.categoryLabel")),e.R7$(2),e.BMQ("aria-label",e.bMT(15,18,"searchFilterDialog.categoryLabel")),e.R7$(2),e.vxM(o.isLoading?16:17),e.R7$(2),e.vxM(o.selectedTypeIds.length&&o.filteredSubCategories.length?18:-1),e.R7$(2),e.Y8G("disabled",!o.activeFilterCount),e.R7$(2),e.JRh(e.bMT(23,20,"searchFilterDialog.clearFilters")),e.R7$(2),e.vxM(o.activeFilterCount?24:-1),e.R7$(2),e.SpI(" ",e.bMT(27,22,"searchFilterDialog.applyFilters")," ")}}function I(c,u){if(1&c){const o=e.RV6();e.j41(0,"div",23)(1,"span",24),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"img",25),e.bIt("click",function(){M.eBV(o);const O=e.XpG();return M.Njj(O.onClose())}),e.k0s()(),e.j41(5,"mat-dialog-content")(6,"div",26)(7,"span",27),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"app-standard-input",28),e.nI1(11,"translate"),e.nI1(12,"translate"),e.nrm(13,"div",29),e.j41(14,"span",27),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nrm(17,"app-standard-select",30),e.nI1(18,"translate"),e.nI1(19,"translate"),e.nrm(20,"div",29),e.j41(21,"span",27),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"app-standard-select",31),e.nI1(25,"translate"),e.nI1(26,"translate"),e.nrm(27,"div",29),e.j41(28,"span",27),e.EFF(29),e.nI1(30,"translate"),e.k0s(),e.nrm(31,"app-search-location-form",32),e.k0s()(),e.j41(32,"div",33)(33,"span",34),e.bIt("click",function(){M.eBV(o);const O=e.XpG();return M.Njj(O.clearFilters())}),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"div",35),e.bIt("click",function(){M.eBV(o);const O=e.XpG();return M.Njj(O.applyFilters())}),e.EFF(37),e.nI1(38,"translate"),e.k0s()()}if(2&c){const o=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,22,"searchFilterDialog.filters")," "),e.R7$(4),e.Y8G("formGroup",o.form),e.R7$(2),e.SpI(" ",e.bMT(9,24,"inputs-private.inputPlaceholder17")," "),e.R7$(2),e.Y8G("placeholder",e.bMT(11,26,"inputs-private.inputPlaceholder17"))("hintText",e.bMT(12,28,"inputs-private.inputHintText17")),e.R7$(5),e.SpI(" ",e.bMT(16,30,"inputs-private.inputPlaceholder18")," "),e.R7$(2),e.Y8G("isLoading",o.isLoading)("items",o.companyTypes)("labelKey","name")("valueKey","id")("placeholder",e.bMT(18,32,"inputs-private.inputPlaceholder18"))("hintText",e.bMT(19,34,"inputs-private.inputHintText18")),e.R7$(5),e.SpI(" ",e.bMT(23,36,"inputs-private.inputPlaceholder19")," "),e.R7$(2),e.Y8G("isLoading",o.isLoading)("items",o.filteredSubCategories)("labelKey","name")("valueKey","id")("placeholder",e.bMT(25,38,"inputs-private.inputPlaceholder19"))("hintText",e.bMT(26,40,"inputs-private.inputHintText19")),e.R7$(5),e.SpI(" ",e.bMT(30,42,"standard-card-content.localization")," "),e.R7$(5),e.SpI(" ",e.bMT(35,44,"searchFilterDialog.clearFilters")," "),e.R7$(3),e.SpI(" ",e.bMT(38,46,"searchFilterDialog.applyFilters")," ")}}let V=(()=>{class c{constructor(o,b,O,R,B,K){this.dialogRef=o,this.data=b,this.fb=O,this.coffeeService=R,this.cdr=B,this.themeService=K,this.isLoading=!1,this.isV2=!1,this.companyTypes=[],this.filteredSubCategories=[],this.selectedTypeIds=[],this.selectedSubIds=[],this.filter=new x.e(null)}ngOnInit(){this.isV2=this.themeService.isV2,this.isV2&&(this.dialogRef.addPanelClass("service-filter-dialog-v2"),this.dialogRef.updateSize("480px")),this.form=this.createForm(),this.data?.filterServiceDialog&&(this.filter=new x.e(this.data.filterServiceDialog),this.form.patchValue({search:this.filter.search??"",companyTypeId:this.filter.companyTypeIds[0]??null,subCategoryId:this.filter.subCategoryIds[0]??null,location:this.filter.location??null},{emitEvent:!1}),this.selectedTypeIds=[...this.filter.companyTypeIds],this.selectedSubIds=[...this.filter.subCategoryIds]),this.form.get("companyTypeId")?.valueChanges.subscribe(o=>{this.updateSubCategories(o)}),this.getCompanyTypes()}onClose(){this.dialogRef.close({cancel:!0})}clearFilters(){this.filter=new x.e(null),this.filteredSubCategories=[],this.selectedTypeIds=[],this.selectedSubIds=[],this.form.reset({search:"",companyTypeId:null,subCategoryId:null,location:null},{emitEvent:!1}),this.form.get("subCategoryId")?.disable({emitEvent:!1}),this.cdr.detectChanges()}applyFilters(){const o=this.form.getRawValue(),b=this.isV2?[...this.selectedTypeIds]:o.companyTypeId?[o.companyTypeId]:[],O=this.isV2?[...this.selectedSubIds]:o.subCategoryId?[o.subCategoryId]:[],R=this.isV2?null:o.location??null,B=new x.e({search:(o.search??"").trim(),companyTypeIds:b,subCategoryIds:O,location:R});this.dialogRef.close(B)}get categoryChips(){return(this.companyTypes||[]).filter(o=>!!o?.name).map(o=>{const b=(0,C.I)(o.name);
1return{id:o.id,name:o.name,icon:b.icon,modifier:b.modifier}})}get activeFilterCount(){let o=0;return this.selectedTypeIds.length&&o++,this.selectedSubIds.length&&o++,o}isCategorySelected(o){return this.selectedTypeIds.includes(o)}isSubSelected(o){return this.selectedSubIds.includes(o)}toggleCategory(o){const b=this.selectedTypeIds.indexOf(o);b>=0?this.selectedTypeIds.splice(b,1):this.selectedTypeIds.push(o),this.recomputeSubCategories()}toggleSubCategory(o){const b=this.selectedSubIds.indexOf(o);b>=0?this.selectedSubIds.splice(b,1):this.selectedSubIds.push(o)}recomputeSubCategories(){const o=new Map;for(const O of this.companyTypes)this.selectedTypeIds.includes(O.id)&&(O.subCategories||[]).forEach(R=>{const B=R?.subCategory;B&&o.set(B.id,B)});this.filteredSubCategories=Array.from(o.values());const b=new Set(this.filteredSubCategories.map(O=>O.id));this.selectedSubIds=this.selectedSubIds.filter(O=>b.has(O)),this.cdr.detectChanges()}getCompanyTypes(){this.isLoading=!0,this.coffeeService.get("/companytype/platform/all").returnListOf(F.c).subscribe({next:o=>{if(this.companyTypes=o??[],this.isV2)this.recomputeSubCategories();else{const b=this.form.get("companyTypeId")?.value;b&&this.updateSubCategories(b,!0)}this.isLoading=!1,this.cdr.detectChanges()},error:()=>{this.isLoading=!1,this.cdr.detectChanges()}})}updateSubCategories(o,b=!1){const O=this.form.get("subCategoryId"),R=this.companyTypes.find(B=>B.id===o);this.filteredSubCategories=R?.subCategories?.map(B=>B.subCategory)||[],b||O?.setValue(null,{emitEvent:!1}),this.filteredSubCategories.length?O?.enable({emitEvent:!1}):O?.disable({emitEvent:!1}),this.cdr.detectChanges()}createForm(){return this.fb.group({search:[""],companyTypeId:[null],subCategoryId:[{value:null,disabled:!0}],location:[null]})}static{this.\u0275fac=function(b){return new(b||c)(e.rXU(P.CP),e.rXU(P.Vh),e.rXU(T.ok),e.rXU(k.m_),e.rXU(f.gRc),e.rXU(t.F))}}static{this.\u0275cmp=e.VBU({type:c,selectors:[["app-search-service-filter-dialog"]],standalone:!1,decls:2,vars:1,consts:[[1,"svcfilter-v2"],["type","button",1,"svcfilter-v2__close",3,"click"],["src","assets/new-svg/close.svg","aria-hidden","true"],[1,"svcfilter-v2__header"],[1,"svcfilter-v2__title"],["aria-live","polite",1,"svcfilter-v2__count"],[1,"svcfilter-v2__body",3,"formGroup"],[1,"svcfilter-section"],[1,"svcfilter-section__label"],["role","group",1,"svcfilter-cats"],[1,"svcfilter-section","svcfilter-section--reveal"],[1,"svcfilter-v2__footer"],["type","button",1,"svcfilter-v2__clear",3,"click","disabled"],[1,"svcfilter-v2__clear-count"],["type","button",1,"svcfilter-v2__apply",3,"click"],["aria-hidden","true",1,"svcfilter-cat-skel"],["type","button",3,"class","is-selected"],["type","button",3,"click"],["aria-hidden","true",1,"svcfilter-cat__ico",3,"src"],[1,"svcfilter-cat__text"],["role","group",1,"svcfilter-subs"],["type","button",1,"svcfilter-sub",3,"is-selected"],["type","button",1,"svcfilter-sub",3,"click"],["mat-dialog-title","",1,"filter-header"],[1,"header-title"],["src","assets/images/icon/close.png","alt","Close Icon",1,"close-dialog",3,"click"],[1,"filter-body",3,"formGroup"],[1,"body-title"],["formControlName","search","width","370px",3,"placeholder","hintText"],[1,"divider"],["width","370px","formControlName","companyTypeId",3,"isLoading","items","labelKey","valueKey","placeholder","hintText"],["width","370px","formControlName","subCategoryId",3,"isLoading","items","labelKey","valueKey","placeholder","hintText"],["formControlName","location"],[1,"filter-footer"],[1,"header-subtitle",3,"click"],[1,"button-add","button-footer",3,"click"]],template:function(b,O){1&b&&e.nVh(0,X,28,24,"section",0)(1,I,39,48),2&b&&e.vxM(O.isV2?0:1)},dependencies:[P.BI,P.Yi,s.V,T.BC,T.cb,T.j4,T.JD,l.l,g.X,p.DM,_.D9],styles:[".filter-header[_ngcontent-%COMP%]{height:64px;display:flex;justify-content:space-between;padding:10px 20px;border-bottom:1px solid rgba(0,0,0,.15)}.filter-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-weight:700;display:flex;margin:auto;font-size:19px}.close-dialog[_ngcontent-%COMP%]{height:15px;filter:invert(1);align-self:center;cursor:pointer}.filter-footer[_ngcontent-%COMP%]{height:81px;display:flex;padding:16px 26px;justify-content:space-between;align-items:center;border-top:1px solid rgba(0,0,0,.15)}.filter-footer[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:18px;font-weight:700;text-decoration:underline;transition:all .3s ease;cursor:pointer}.filter-footer[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]:hover{opacity:60%}.filter-footer[_ngcontent-%COMP%] .button-footer[_ngcontent-%COMP%]{height:100%;padding:0 30px;box-shadow:0 0;width:180px}.filter-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:30px}.filter-body[_ngcontent-%COMP%] .body-title[_ngcontent-%COMP%]{font-size:23px;font-weight:700;color:#000;margin-bottom:15px}.filter-body[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:#0000002b;margin-top:35px;margin-bottom:25px}","@media(max-width:767px){.filter-footer[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{text-align:center;font-size:16px}.filter-body[_ngcontent-%COMP%] .flex-container[_ngcontent-%COMP%]{flex-direction:column}.filter-body[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}",'@charset "UTF-8";.svcfilter-v2[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:86vh;background:var(--surface, #fff);color:var(--text-default)}.svcfilter-v2__close[_ngcontent-%COMP%]{position:absolute;top:var(--ds-space-3);right:var(--ds-space-3);z-index:2;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:none;border-radius:var(--ds-radius-full, 999px);background:color-mix(in srgb,var(--surface-muted, #f1f1f1) 90%,transparent);color:var(--text-default);cursor:pointer;transition:background-color var(--ds-motion-fast) ease,transform var(--ds-motion-fast) ease}.svcfilter-v2__close[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%]{width:18px;height:18px;display:flex}.svcfilter-v2__close[_ngcontent-%COMP%] svg{width:100%;height:100%;display:block}.svcfilter-v2__close[_ngcontent-%COMP%] svg [stroke]:not([stroke=none]){stroke:currentColor}.svcfilter-v2__close[_ngcontent-%COMP%]:hover{background:var(--surface-muted, #ececec)}.svcfilter-v2__close[_ngcontent-%COMP%]:active{transform:scale(.94)}.svcfilter-v2__close[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary) 28%,transparent)}.svcfilter-v2__header[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;gap:var(--ds-space-3);padding:var(--ds-space-5) var(--ds-space-6);padding-right:60px;border-bottom:1px solid var(--border-subtle)}.svcfilter-v2__title[_ngcontent-%COMP%]{margin:0;color:var(--text-strong);font-size:var(--ds-text-xl, 20px);font-weight:var(--ds-weight-bold, 700);line-height:1.25}
1.svcfilter-v2__count[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:var(--ds-radius-full, 999px);background:var(--nav-selected);color:#fff;font-size:var(--ds-text-xs, 12px);font-weight:var(--ds-weight-bold, 700);line-height:1}.svcfilter-v2__body[_ngcontent-%COMP%]{flex:1 1 auto;overflow-y:auto;display:flex;flex-direction:column;gap:var(--ds-space-5);padding:var(--ds-space-6)}.svcfilter-v2__footer[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:var(--ds-space-4);padding:var(--ds-space-4) var(--ds-space-6);border-top:1px solid var(--border-subtle);background:var(--surface)}.svcfilter-v2__clear[_ngcontent-%COMP%]{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:var(--ds-space-2);height:44px;padding:0 var(--ds-space-5);border:1px solid var(--color-primary);border-radius:var(--ds-radius-full, 999px);background:var(--surface);font:inherit;font-size:var(--ds-text-sm);font-weight:var(--ds-weight-semibold);color:var(--color-primary);cursor:pointer;transition:background-color var(--ds-motion-fast) ease,border-color var(--ds-motion-fast) ease,color var(--ds-motion-fast) ease,transform var(--ds-motion-fast) ease}.svcfilter-v2__clear[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--color-primary) 8%,var(--surface))}.svcfilter-v2__clear[_ngcontent-%COMP%]:active{transform:scale(.97)}.svcfilter-v2__clear[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary) 24%,transparent)}.svcfilter-v2__clear[_ngcontent-%COMP%]:disabled{border-color:var(--border-subtle);color:var(--text-muted);cursor:not-allowed}.svcfilter-v2__clear[_ngcontent-%COMP%]:disabled:hover{background:var(--surface)}.svcfilter-v2__clear[_ngcontent-%COMP%]:disabled:active{transform:none}.svcfilter-v2__clear-count[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:var(--ds-radius-full, 999px);background:color-mix(in srgb,var(--color-primary) 14%,var(--surface));color:var(--color-primary);font-size:var(--ds-text-xs, 12px);font-weight:var(--ds-weight-bold, 700);line-height:1}.svcfilter-v2__apply[_ngcontent-%COMP%]{appearance:none;display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 var(--ds-space-6);border:1px solid transparent;border-radius:var(--ds-radius-full, 999px);background:var(--color-primary);color:#fff;font:inherit;font-size:var(--ds-text-sm);font-weight:var(--ds-weight-semibold);cursor:pointer;transition:background-color var(--ds-motion-fast) ease,transform var(--ds-motion-fast) ease}.svcfilter-v2__apply[_ngcontent-%COMP%]:hover{background:var(--color-primary-strong, var(--color-primary))}.svcfilter-v2__apply[_ngcontent-%COMP%]:active{transform:scale(.97)}.svcfilter-v2__apply[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary) 28%,transparent)}.svcfilter-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--ds-space-3)}.svcfilter-section__label[_ngcontent-%COMP%]{font-size:var(--ds-text-xs, 12px);font-weight:var(--ds-weight-semibold);letter-spacing:.04em;text-transform:uppercase;color:var(--text-subtle)}.svcfilter-section--reveal[_ngcontent-%COMP%]{animation:svcfilter-reveal .24s cubic-bezier(.2,0,0,1)}.svcfilter-cats[_ngcontent-%COMP%], .svcfilter-subs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:var(--ds-space-2)}.svcfilter-cat[_ngcontent-%COMP%]{--cat-color: var(--text-subtle);display:inline-flex;align-items:center;gap:var(--ds-space-2);min-height:40px;padding:8px 14px;border:1px solid color-mix(in srgb,var(--cat-color) 40%,var(--border-subtle));border-radius:var(--ds-radius-full, 999px);background:var(--surface);color:var(--cat-color);font:inherit;font-size:var(--ds-text-sm);font-weight:var(--ds-weight-semibold);cursor:pointer;transition:background-color var(--ds-motion-fast) ease,border-color var(--ds-motion-fast) ease,color var(--ds-motion-fast) ease,transform var(--ds-motion-fast) ease}.svcfilter-cat__ico[_ngcontent-%COMP%]{width:18px;height:18px;flex-shrink:0;display:flex}.svcfilter-cat__ico[_ngcontent-%COMP%] svg{width:100%;height:100%;display:block}.svcfilter-cat__ico[_ngcontent-%COMP%] svg [stroke]:not([stroke=none]){stroke:currentColor}.svcfilter-cat__ico[_ngcontent-%COMP%] svg [fill]:not([fill=none]):not([fill="#25D366"]){fill:currentColor}.svcfilter-cat[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--cat-color) 8%,var(--surface))}.svcfilter-cat[_ngcontent-%COMP%]:active{transform:scale(.97)}.svcfilter-cat[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--cat-color) 28%,transparent)}.svcfilter-cat.is-selected[_ngcontent-%COMP%]{background:var(--cat-color);border-color:var(--cat-color);color:#fff}.svcfilter-cat--lodging[_ngcontent-%COMP%]{--cat-color: #2f6fb0}.svcfilter-cat--guide[_ngcontent-%COMP%]{--cat-color: #0e7490}.svcfilter-cat--food[_ngcontent-%COMP%]{--cat-color: #c0492f}
1.svcfilter-cat--leisure[_ngcontent-%COMP%]{--cat-color: #6d4ac4}.svcfilter-cat--trade[_ngcontent-%COMP%]{--cat-color: #b07314}.svcfilter-cat--default[_ngcontent-%COMP%]{--cat-color: var(--text-subtle)}.svcfilter-cat-skel[_ngcontent-%COMP%]{position:relative;overflow:hidden;height:40px;width:120px;border-radius:var(--ds-radius-full, 999px);background:var(--surface-muted, #eef0f2)}.svcfilter-cat-skel[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);animation:svcfilter-shimmer 1.3s infinite}.svcfilter-cat-skel[_ngcontent-%COMP%]:nth-child(1){width:118px}.svcfilter-cat-skel[_ngcontent-%COMP%]:nth-child(2){width:132px}.svcfilter-cat-skel[_ngcontent-%COMP%]:nth-child(3){width:150px}.svcfilter-cat-skel[_ngcontent-%COMP%]:nth-child(4){width:104px}.svcfilter-cat-skel[_ngcontent-%COMP%]:nth-child(5){width:160px}.svcfilter-sub[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;border:1px solid var(--border-subtle);border-radius:var(--ds-radius-full, 999px);background:var(--surface);color:var(--text-default);font:inherit;font-size:var(--ds-text-sm);font-weight:var(--ds-weight-medium);cursor:pointer;transition:background-color var(--ds-motion-fast) ease,border-color var(--ds-motion-fast) ease,color var(--ds-motion-fast) ease,transform var(--ds-motion-fast) ease}.svcfilter-sub[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--nav-selected) 10%,transparent);border-color:color-mix(in srgb,var(--nav-selected) 40%,var(--border-subtle))}.svcfilter-sub[_ngcontent-%COMP%]:active{transform:scale(.97)}.svcfilter-sub[_ngcontent-%COMP%]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--nav-selected) 24%,transparent)}.svcfilter-sub.is-selected[_ngcontent-%COMP%]{background:var(--nav-selected);border-color:var(--nav-selected);color:#fff}@media(max-width:540px){.svcfilter-v2[_ngcontent-%COMP%]{max-height:92vh}.svcfilter-v2__header[_ngcontent-%COMP%]{padding:var(--ds-space-4) var(--ds-space-5);padding-right:52px}.svcfilter-v2__body[_ngcontent-%COMP%]{padding:var(--ds-space-5);gap:var(--ds-space-5)}.svcfilter-v2__footer[_ngcontent-%COMP%]{padding:var(--ds-space-4) var(--ds-space-5)}.svcfilter-v2__apply[_ngcontent-%COMP%]{flex:1}}@media(prefers-reduced-motion:reduce){.svcfilter-section--reveal[_ngcontent-%COMP%]{animation:none}.svcfilter-cat-skel[_ngcontent-%COMP%]:after{animation:none}.svcfilter-v2__close[_ngcontent-%COMP%], .svcfilter-v2__apply[_ngcontent-%COMP%], .svcfilter-v2__clear[_ngcontent-%COMP%], .svcfilter-cat[_ngcontent-%COMP%], .svcfilter-sub[_ngcontent-%COMP%]{transition:none}}']})}}return c})()},38263(j,S,n){n.d(S,{M:()=>y});var P=n(49769),x=n(75351),F=n(88834),C=n(93049),f=n(80161),e=n(35547),M=n(85802);const T=[{path:"",component:f.n}];let k=(()=>{class h{static{this.\u0275fac=function($){return new($||h)}}static{this.\u0275mod=e.$C({type:h})}static{this.\u0275inj=M.G2t({imports:[C.iI.forChild(T),C.iI]})}}return h})();var t=n(435),s=n(41780),l=n(96787),g=n(23971),p=n(47219),_=n(78606);let y=(()=>{class h{static{this.\u0275fac=function($){return new($||h)}}static{this.\u0275mod=e.$C({type:h})}static{this.\u0275inj=M.G2t({imports:[P.MD,k,x.hM,F.Hl,t._,s.h,g.C,l.A,p.k,_.iu]})}}return h})()},65348(j,S,n){n.d(S,{eM:()=>f,ji:()=>C});var P=n(74480),x=n(25251),F=n(87370);class C extends P.Op{constructor(T){super(),this.activityTypes=[],this.biomes=[],this.difficulties=[],this.distance=null,this.time=null,this.accessibility=!1,this.map(T).createInstance("activityTypes",x.M).createInstance("biomes",F.H).createInstance("difficulties",e).createInstance("distance",f).createInstance("time",f)}}class f extends P.Op{constructor(T){super(),this.start=0,this.end=0,this.map(T)}convertStartKmToMeters(){return 1e3*this.start}convertEndKmToMeters(){return 1e3*this.end}}class e extends P.Op{constructor(T){super(),this.label="",this.value="",this.checked=!1,this.map(T)}}},68274(j,S,n){n.d(S,{e:()=>x});var P=n(74480);class x extends P.Op{constructor(f){super(),this.search="",this.companyTypeIds=[],this.subCategoryIds=[],this.location=null,this.map(f),this.search=(this.search??"").trim(),this.companyTypeIds=Array.isArray(f?.companyTypeIds)?f.companyTypeIds.filter(e=>null!=e):[],this.subCategoryIds=Array.isArray(f?.subCategoryIds)?f.subCategoryIds.filter(e=>null!=e):[],this.location&&(this.location=new F(this.location),this.location.isEmpty()&&(this.location=null))}isEmpty(){return!(this.search||this.companyTypeIds.length||this.subCategoryIds.length||this.location)}}class F extends P.Op{constructor(f){super(),this.country="",this.state="",this.city="",this.map(f),this.country=(this.country??"").trim(),this.state=(this.state??"").trim(),this.city=(this.city??"").trim()}isEmpty(){return!this.country&&!this.state&&!this.city}}},1975(j,S,n){n.d(S,{Y:()=>p,k:()=>g});var P=n(30144),x=n(6189),F=n(93531),C=n(35547),f=n(85802),e=n(65157),M=n(49046),T=n(53293),k=n(58649),t=n(28203);const s="mat-badge-content";let l=(()=>{class _{static \u0275fac=function(D){return new(D||_)};static \u0275cmp=C.VBU({type:_,selectors:[["ng-component"]],decls:0,vars:0,template:function(D,E){},styles:[".mat-badge {\n position: relative;\n}\n.mat-badge.mat-badge {\n overflow: visible;\n}\n\n.mat-badge-content {\n position: absolute;\n text-align: center;\n display: inline-block;\n transition: transform 200ms ease-in-out;\n transform: scale(0.6);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n box-sizing: border-box;\n pointer-events: none;\n background-color: var(--mat-badge-background-color, var(--mat-sys-error));\n color: var(--mat-badge-text-color, var(--mat-sys-on-error));\n font-family: var(--mat-badge-text-font, var(--mat-sys-label-small-font));\n font-weight: var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));\n border-radius: var(--mat-badge-container-shape, var(--mat-sys-corner-full));\n}\n.mat-badge-above .mat-badge-content {\n bottom: 100%;\n}\n.mat-badge-below .mat-badge-content {\n top: 100%;\n}\n.mat-badge-before .mat-badge-content {\n right: 100%;\n}\n[dir=rtl] .mat-badge-before .mat-badge-content {\n right: auto;\n left: 100%;\n}\n.mat-badge-after .mat-badge-content {\n left: 100%;\n}\n[dir=rtl] .mat-badge-after .mat-badge-content {\n left: auto;\n right: 100%;\n}\n@media (forced-colors: active) {\n .mat-badge-content {\n outline: solid 1px;\n border-radius: 0;\n }\n}\n\n.mat-badge-disabled .mat-badge-content {\n background-color: var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));\n color: var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error));\n}\n\n.mat-badge-hidden .mat-badge-content {\n display: none;\n}\n\n.ng-animate-disabled .mat-badge-content,\n.mat-badge-content._mat-animation-noopable {\n transition: none;\n}\n\n.mat-badge-content.mat-badge-active {\n transform: none;\n}\n\n.mat-badge-small .mat-badge-content {\n width: var(--mat-badge-legacy-small-size-container-size, unset);\n height: var(--mat-badge-legacy-small-size-container-size, unset);\n min-width: var(--mat-badge-small-size-container-size, 6px);\n min-height: var(--mat-badge-small-size-container-size, 6px);\n line-height: var(--mat-badge-small-size-line-height, 6px);\n padding: var(--mat-badge-small-size-container-padding, 0);\n font-size: var(--mat-badge-small-size-text-size, 0);\n margin: var(--mat-badge-small-size-container-offset, -6px 0);\n}\n.mat-badge-small.mat-badge-overlap .mat-badge-content {\n margin: var(--mat-badge-small-size-container-overlap-offset, -6px);\n}\n\n.mat-badge-medium .mat-badge-content {\n width: var(--mat-badge-legacy-container-size, unset);\n height: var(--mat-badge-legacy-container-size, unset);\n min-width: var(--mat-badge-container-size, 16px);\n min-height: var(--mat-badge-container-size, 16px);\n line-height: var(--mat-badge-line-height, 16px);\n padding: var(--mat-badge-container-padding, 0 4px);\n font-size: var(--mat-badge-text-size, var(--mat-sys-label-small-size));\n margin: var(--mat-badge-container-offset, -12px 0);\n}\n.mat-badge-medium.mat-badge-overlap .mat-badge-content {\n margin: var(--mat-badge-container-overlap-offset, -12px);\n}\n\n.mat-badge-large .mat-badge-content {\n width: var(--mat-badge-legacy-large-size-container-size, unset);\n height: var(--mat-badge-legacy-large-size-container-size, unset);\n min-width: var(--mat-badge-large-size-container-size, 16px);\n min-height: var(--mat-badge-large-size-container-size, 16px);\n line-height: var(--mat-badge-large-size-line-height, 16px);\n padding: var(--mat-badge-large-size-container-padding, 0 4px);\n font-size: var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));\n margin: var(--mat-badge-large-size-container-offset, -12px 0);\n}\n.mat-badge-large.mat-badge-overlap .mat-badge-content {\n margin: var(--mat-badge-large-size-container-overlap-offset, -12px);\n}\n"],encapsulation:2,changeDetection:0})}return _})(),g=(()=>{class _{_ngZone=(0,f.WQX)(f.SKi);_elementRef=(0,f.WQX)(C.aKT);_ariaDescriber=(0,f.WQX)(P.vr);_renderer=(0,f.WQX)(C.sFG);_animationsDisabled=(0,k.Rc)();_idGenerator=(0,f.WQX)(F.g);get color(){return this._color}set color(h){this._setColor(h),this._color=h}_color="primary";overlap=!0;disabled=!1;position="above after";get content(){return this._content}set content(h){this._updateRenderedContent(h)}_content;get description(){return this._description}set description(h){this._updateDescription(h)}_description;size="medium";hidden=!1;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=(0,f.WQX)(x.Z7);_document=(0,f.WQX)(f.qQL);constructor(){const h=(0,f.WQX)(T.l);h.load(l),h.load(M.Yc)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngAfterViewInit(){}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){const h=this._renderer.createElement("span"),D="mat-badge-active";return h.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),h.setAttribute("aria-hidden","true"),h.classList.add(s),this._animationsDisabled&&h.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(h),"function"!=typeof requestAnimationFrame||this._animationsDisabled?h.classList.add(D):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{h.classList.add(D)})}),h}_updateRenderedContent(h){const D=`${h??""}`.trim();this._isInitialized&&D&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=D),this._content=D}_updateDescription(h){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!h||this._isHostInteractive())&&this._removeInlineDescription(),this._description=h,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,h):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(h){const D=this._elementRef.nativeElement.classList;D.remove(`mat-badge-${this._color}`),h&&D.add(`mat-badge-${h}`)}_clearExistingBadges(){const h=this._elementRef.nativeElement.querySelectorAll(`:scope > .${s}`);
1for(const D of Array.from(h))D!==this._badgeElement&&D.remove()}static \u0275fac=function(D){return new(D||_)};static \u0275dir=C.FsC({type:_,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(D,E){2&D&&C.AVh("mat-badge-overlap",E.overlap)("mat-badge-above",E.isAbove())("mat-badge-below",!E.isAbove())("mat-badge-before",!E.isAfter())("mat-badge-after",E.isAfter())("mat-badge-small","small"===E.size)("mat-badge-medium","medium"===E.size)("mat-badge-large","large"===E.size)("mat-badge-hidden",E.hidden||!E.content)("mat-badge-disabled",E.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",e.L39],disabled:[2,"matBadgeDisabled","disabled",e.L39],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",e.L39]}})}return _})(),p=(()=>{class _{static \u0275fac=function(D){return new(D||_)};static \u0275mod=C.$C({type:_});static \u0275inj=f.G2t({imports:[x.Pd,t.jI]})}return _})()}}]);
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.