1"use strict";(self.webpackChunkstep=self.webpackChunkstep||[]).push([[7498],{7498(rt,N,i){i.d(N,{FoodBrandMarcheModule:()=>et});var m=i(2881),A=i(5623),h=i(9417),R=i(9557),t=i(1360),E=i(4412),F=i(7468),w=i(4572),u=i(6977),M=i(8141),L=i(9901),v=i(5558),T=i(6354),O=i(1698),G=i(8575),$=i(259),x=i(5156),U=i(6486),k=i(9640),Y=i(9362),_=i(2681),j=i(5797),X=i(9301),z=i(4289);function H(o,r){if(1&o&&(t.qex(0),t.nrm(1,"turismo-landing-header",5),t.bVm()),2&o){const n=r.ngIf;t.R7$(),t.Y8G("title",null==n.textsDatas[0]?null:n.textsDatas[0].title)("description",null==n.textsDatas[0]?null:n.textsDatas[0].description)("contentImage",null==n.multimediaDatas[0]?null:n.multimediaDatas[0].url)("contentImageAlt",null==n.multimediaDatas[0]?null:n.multimediaDatas[0].description)}}function W(o,r){1&o&&t.nrm(0,"turismo-no-results-found")}function V(o,r){if(1&o&&(t.qex(0),t.j41(1,"div",6),t.nrm(2,"turismo-landing-card-list",7),t.k0s(),t.bVm()),2&o){const n=t.XpG().ngIf,e=t.XpG();t.R7$(2),t.Y8G("baseUrl",e.PLACES_PATH)("items",n.info)("totalCount",n.totalCount)("pageNumber",e.pageNumber)("buttonClass","btn-custom--tertiary")("entity",e.PLACES_PATH)("showButton",!1)}}function Q(o,r){if(1&o&&(t.qex(0),t.DNE(1,W,1,0,"turismo-no-results-found",1)(2,V,3,7,"ng-container",1),t.bVm()),2&o){const n=r.ngIf;t.R7$(),t.Y8G("ngIf",0===n.totalCount),t.R7$(),t.Y8G("ngIf",null==n.info?null:n.info.length)}}function J(o,r){1&o&&t.nrm(0,"turismo-no-results-found")}function K(o,r){if(1&o&&(t.j41(0,"div"),t.nrm(1,"turismo-landing-card-list",11),t.k0s()),2&o){const n=r.$implicit,e=t.XpG(2);t.R7$(),t.Y8G("baseUrl",e.getPathByType(null==n?null:n.contentType))("items",null==n?null:n.contents)("totalCount",null==n?null:n.totalCount)("pageNumber",e.pageNumber)("entity",e.getPathByType(n.contentType))("showButton",!1)}}function Z(o,r){if(1&o&&(t.qex(0),t.j41(1,"div",8),t.DNE(2,J,1,0,"turismo-no-results-found",1),t.j41(3,"div",9),t.pXf(4,0),t.k0s(),t.DNE(5,K,2,6,"div",10),t.k0s(),t.bVm()),2&o){const n=r.ngIf;t.R7$(2),t.Y8G("ngIf",!(null!=n.contents&&n.contents.length)),t.R7$(3),t.Y8G("ngForOf",null==n?null:n.contents)}}function q(o,r){1&o&&(t.qex(0),t.j41(1,"div",12),t.nrm(2,"div",13),t.k0s(),t.bVm())}let tt=(()=>{class o{constructor(n,e,a){this.turismoWebApiService=n,this.store$=e,this.socialService=a,this.poiData$=new E.t(null),this.isLoading$=new E.t(!1),this.onDestroy$=new t.bkB,this.language="",this.pageSize=0,this.pageNumber=0,this.isMapVisible=!1,this.filterForm=new h.gE({}),this.allLocations=[],this.PLACES_PATH=x.vB,this.EXPERIENCES_PATH=x.iU,this.getPathByType=$.xK,this.getNameByType=$.BW,this.store$.select(O.Ev).pipe((0,u.Q)(this.onDestroy$)).subscribe(s=>{this.language=s}),this.filtersConfig=G.nM}ngOnInit(){this.foodBrandMarche$=this.turismoWebApiService.getFoodBrandMarcheDetails().pipe((0,M.M)(e=>{const{title:a,description:s}=e.textsDatas[0];this.socialService.addSocialSeo(a,s)})),(0,F.p)({...this.filtersConfig.city}).pipe((0,L.U)(null),(0,u.Q)(this.onDestroy$),(0,M.M)(()=>{this.filtersConfig?.typology?.options?.length||delete this.filtersConfig.typology}),(0,v.n)(()=>this.getPoiData())).subscribe(e=>{this.poiData$.next(e),this.isLoading$.next(!1)}),this.experiencesData$=this.turismoWebApiService.getEventsCategoriesFilter(this.language).pipe((0,v.n)(()=>this.getExperiencesData())),(0,w.z)([this.poiData$,this.experiencesData$]).subscribe(([e,a])=>{e&&a&&(this.allLocations=[...e.locations,...a.locations])})}ngOnDestroy(){this.onDestroy$.emit(),this.onDestroy$.complete()}getExperiencesData(){return this.turismoWebApiService.getExperiencesCollection({language:"it",pageNumber:0,pageSize:0,tags:"foodbrandmarche",orderClause:{orderBy:[{field:5,direction:0}]}}).pipe((0,u.Q)(this.onDestroy$),(0,T.T)(n=>{const{items:e,totalCount:a}=n;return{totalCount:a,contents:e.map(s=>s),locations:e.reduce((s,f)=>{const{contents:l,contentType:c}=f;return[...s,...l.map(b=>{const{city:d,id:C,image:B,lat:g,lon:y,name:D,startDate:I,endDate:p,subCategoryInfo:it,seoTitle:at,externalLink:st}=b;return{id:C,name:D,seoTitle:at,image:B,isFair:!1,city:d,address:{city:d,lon:y,lat:g},lat:g,long:y,baseUrl:this.getPathByType(c),startDate:I,endDate:p,subCategoryInfo:it,externalLink:st}})]},[])}}))}getPoiData(){return this.isLoading$.next(!0),this.turismoWebApiService.getPoiList({tags:"foodbrandmarche",language:"it",pageNumber:0,pageSize:0,orderClause:{orderBy:[{field:1,direction:1}]}}).pipe((0,u.Q)(this.onDestroy$),(0,T.T)(e=>{const{totalCount:a,title:s,subTitle:f,image:l,pois:c=null}={...e};return{totalCount:a,info:c,image:l,title:s,subTitle:f,locations:c.map(P=>{const{id:b,name:d,image:C,placeInfo:B,isFair:g,startDate:y,endDate:D,externalLink:I}=P,p=this.getAddress(B);return{id:b,name:d,image:C,isFair:g,address:p,lat:p?.lat,long:p?.lon,baseUrl:this.getPathByType(2),startDate:y,endDate:D,externalLink:I}})}}))}getAddress(n){return n.inFair?n.fairInfo?.address:n.address||n.poiInfo?.address}mapTypologyToCategories(n){const e=[];return n?.split(",").forEach(a=>{const s=a.split("-")[0],f=a.split("-")[1],l=e.find(c=>+c.categoryId==+s);l?f&&l?.subCategoryIds?.push(+f):e?.push({categoryId:+s,subCategoryIds:f?[+f]:[]})}),e}static{this.\u0275fac=function(e){return new(e||o)(t.rXU(U.D),t.rXU(k.il),t.rXU(Y.l))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["turismo-food-brand-marche"]],standalone:!1,decls:11,vars:15,consts:()=>{let n;return n="Esperienze",[n,[4,"ngIf"],[1,"uk-container","uk-container-large","uk-margin-medium-bottom","uk-margin-small-top","no-margin-top-mobile"],[1,"uk-margin-medium-top"],[3,"lat","long","locations"],[3,"title","description","contentImage","contentImageAlt"],[1,"uk-container","uk-container-large","uk-margin-small-top","no-margin-top-mobile","poi-landing-cards"],[3,"baseUrl","items","totalCount","pageNumber","buttonClass","entity","showButton"],[1,"uk-container","uk-container-large","uk-margin","search--list"],[1,"uk-margin-medium-bottom","uk-text-bold","search--list__li__title"],[4,"ngFor","ngForOf"],[3,"baseUrl","items","totalCount","pageNumber","entity","showButton"],[1,"uk-container","uk-container-large","uk-margin-bottom"],["uk-spinner","ratio: 3",1,"uk-flex","uk-flex-center"]]},template:function(e,a){1&e&&(t.DNE(0,H,2,4,"ng-container",1),t.nI1(1,"async"),t.j41(2,"div",2)(3,"div",3),t.nrm(4,"turismo-geo-map",4),t.k0s()(),t.DNE(5,Q,3,2,"ng-container",1),t.nI1(6,"async"),t.DNE(7,Z,6,2,"ng-container",1),t.nI1(8,"async"),t.DNE(9,q,3,0,"ng-container",1),t.nI1(10,"async")),2&e&&(t.Y8G("ngIf",t.bMT(1,7,a.foodBrandMarche$)),t.R7$(4),t.Y8G("lat",43.8998436)("long",12.8738952)("locations",a.allLocations),t.R7$(),t.Y8G("ngIf",t.bMT(6,9,a.poiData$)),t.R7$(2),t.Y8G("ngIf",t.bMT(8,11,a.experiencesData$)),t.R7$(2),t.Y8G("ngIf",t.bMT(10,13,a.isLoading$)))},dependencies:[m.Sq,m.bT,_.d,j.j,X.s,z.T,m.Jj],styles:['@font-face{font-family:Poppins;src:url(Poppins-Thin.605324f7af12a99a.ttf) format("truetype");font-weight:100;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-ThinItalic.ef8911147e9862d8.ttf) format("truetype");font-weight:100;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-ExtraLight.9102fb8415d8f327.ttf) format("truetype");font-weight:200;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-ExtraLightItalic.2ce504459899a1d8.ttf) format("truetype");font-weight:200;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-Light.8b20023e8f811f53.ttf) format("truetype");font-weight:300;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-LightItalic.acd7f79f9e69ead8.ttf) format("truetype");font-weight:300;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-Regular.4b4ebe20759bdbf2.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-Italic.b2efb5cde74c2f1a.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-Medium.a52d0bf095c248da.ttf) format("truetype");font-weight:500;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-MediumItalic.34a634e1e94d3514.ttf) format("truetype");font-weight:500;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-SemiBold.98512bf8da1afe43.ttf) format("truetype");font-weight:600;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-SemiBoldItalic.502635913515117a.ttf) format("truetype");font-weight:600;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-Bold.8001a01b32b71ef5.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-BoldItalic.1a15c5ce3e29c0a9.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-ExtraBold.7572a9b5289f55fe.ttf) format("truetype");font-weight:800;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-ExtraBoldItalic.9656981deddb4bed.ttf) format("truetype");font-weight:800;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-Black.a7317f18e35bd6ef.ttf) format("truetype");font-weight:900;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-BlackItalic.0719401c96a043e7.ttf) format("truetype");font-weight:900;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-Thin.605324f7af12a99a.ttf) format("truetype");font-weight:100;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-ThinItalic.ef8911147e9862d8.ttf) format("truetype");font-weight:100;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-ExtraLight.9102fb8415d8f327.ttf) format("truetype");font-weight:200;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-ExtraLightItalic.2ce504459899a1d8.ttf) format("truetype");font-weight:200;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-Light.8b20023e8f811f53.ttf) format("truetype");font-weight:300;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-LightItalic.acd7f79f9e69ead8.ttf) format("truetype");font-weight:300;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-Regular.4b4ebe20759bdbf2.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-Italic.b2efb5cde74c2f1a.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-Medium.a52d0bf095c248da.ttf) format("truetype");font-weight:500;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-MediumItalic.34a634e1e94d3514.ttf) format("truetype");font-weight:500;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-SemiBold.98512bf8da1afe43.ttf) format("truetype");font-weight:600;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-SemiBoldItalic.502635913515117a.ttf) format("truetype");font-weight:600;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-Bold.8001a01b32b71ef5.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-BoldItalic.1a15c5ce3e29c0a9.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-ExtraBold.7572a9b5289f55fe.ttf) format("truetype");font-weight:800;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-ExtraBoldItalic.9656981deddb4bed.ttf) format("truetype");font-weight:800;font-style:italic}@font-face{font-family:Poppins;src:url(Poppins-Black.a7317f18e35bd6ef.ttf) format("truetype");font-weight:900;font-style:normal}@font-face{font-family:Poppins;src:url(Poppins-BlackItalic.0719401c96a043e7.ttf) format("truetype");font-weight:900;font-style:italic}body[_ngcontent-%COMP%]{font-family:Poppins,sans-serif}.search--list__li__title[_ngcontent-%COMP%]{font:700 24px/normal Poppins;line-height:120%;color:#4a3f92}.poi-landing-cards[_ngcontent-%COMP%]{margin-bottom:-3rem}']})}}return o}
1)();var S=i(9870);const nt=[{path:"",component:tt}];let ot=(()=>{class o{static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=t.G2t({imports:[S.iI.forChild(nt),S.iI]})}}return o})(),et=(()=>{class o{static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=t.G2t({imports:[m.MD,A.G,h.YN,ot,R.h,h.X1]})}}return o})()}}]);
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.