1"use strict";(self.webpackChunkwinerist=self.webpackChunkwinerist||[]).push([["src_app_pages_landing_landing_module_ts"],{64887:(P,y,c)=>{c.d(y,{Y:()=>w});var l=c(94650),h=c(28729);let w=(()=>{const u=class{constructor(){this.imagePlaceHolderUrl="https://wineristgo.blob.core.windows.net/front-end/loaction-placeholder.png",this.queryParams={},this.height=175}set imageUrl(g){this._imageUrl=g||this.imagePlaceHolderUrl}ngOnChanges(){this.routerLink=this.routerLink.map(g=>g.toLowerCase())}};let v=u;return u.\u0275fac=function(_){return new(_||u)},u.\u0275cmp=l.Xpm({type:u,selectors:[["app-image-card"]],inputs:{imageUrl:"imageUrl",title:"title",routerLink:"routerLink",queryParams:"queryParams",height:"height",alt:"alt"},features:[l.TTD],decls:5,vars:7,consts:[[1,"position-relative","d-block","border-radius-card","overflow-hidden",3,"routerLink","queryParams"],["width","100%","loading","lazy",3,"src","alt"],[1,"blackout-layer",2,"position","absolute","display","block","width","100%","top","0"],[1,"title","text-shadow","text-center","text-white","w-100","position-absolute","px-4","pb-3",2,"font-weight","600","transform","translateY(-100%)","box-sizing","border-box"]],template:function(_,d){1&_&&(l.TgZ(0,"a",0),l._UZ(1,"img",1)(2,"div",2),l.TgZ(3,"div",3),l._uU(4),l.qZA()()),2&_&&(l.Q6J("routerLink",d.routerLink)("queryParams",d.queryParams),l.xp6(1),l.Udp("height",d.height,"px"),l.Q6J("src",d._imageUrl,l.LSH)("alt",d.alt||d.title),l.xp6(3),l.hij(" ",d.title," "))},dependencies:[h.rH],styles:["[_nghost-%COMP%]{display:block;position:relative}img[_ngcontent-%COMP%]{object-fit:cover;object-position:50%}"]}),v})()},27563:(P,y,c)=>{c.r(y),c.d(y,{LandingModule:()=>Qt});var l=c(36895),h=c(28729),w=c(5013),v=c(67165),u=c(15697),I=c(460),g=c(15861),_=c(42119),d=c(11481),t=c(94650),Q=c(91008),J=c(46228),B=c(26853),N=c(6659),D=c(81750),k=c(58436),O=c(8083),Y=c(45690),q=c(64887),W=c(98088),F=c(83797);const R=["*"];let H=(()=>{const a=class{};let n=a;return a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-section-title"]],ngContentSelectors:R,decls:2,vars:0,consts:[[1,"fs-24","text-center","mt-3"]],template:function(i,r){1&i&&(t.F$t(),t.TgZ(0,"h2",0),t.Hsn(1),t.qZA())},encapsulation:2}),n})();var z=c(57126),j=c(32523);function G(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",7,8),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(1),r=t.oxw(),s=t.MAs(6),p=t.MAs(3);return t.KtG(r.showFullContent(s,p,i))}),t.TgZ(2,"u"),t._uU(3,"Read more \xbb"),t.qZA()()}}const $=function(){return{height:"9em",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":6}};let K=(()=>{const a=class{constructor(o){this.environmentService=o}set content(o){this._content=o,this.contentPreview=this.textFromHtml(o)}get content(){return this._content}showFullContent(o,i,r){const s=window.innerWidth<768;console.log({isSmallScreen:s}),s?(Object.assign(i.style,{display:"block",height:"auto"}),r.style.display="none"):o.visible=!0}textFromHtml(o){return this.environmentService.isBrowser?(new DOMParser).parseFromString(o,"text/html").body.textContent.trim():z.x.getTextFromHTML(o)}};let n=a;return a.\u0275fac=function(i){return new(i||a)(t.Y36(j.L))}
1,a.\u0275cmp=t.Xpm({type:a,selectors:[["app-info-snippet"]],inputs:{title:"title",content:"content"},decls:8,vars:12,consts:[[1,"fs-16","m-0","lh-24","text-uppercase","fw-600"],[1,"overflow-hidden","mt-2",3,"ngStyle","innerHTML"],["container",""],["class","mt-2 text-uppercase cursor-pointer font-smaller",3,"click",4,"ngIf"],["width","50vw",1,"info-popup",3,"title","visible","showTitle","dragEnabled","showCloseButton","hideOnOutsideClick"],["infoPopup",""],[2,"font-size","1rem",3,"innerHTML"],[1,"mt-2","text-uppercase","cursor-pointer","font-smaller",3,"click"],["readMore",""]],template:function(i,r){1&i&&(t.TgZ(0,"h3",0),t._uU(1),t.qZA(),t._UZ(2,"div",1,2),t.YNc(4,G,4,0,"div",3),t.TgZ(5,"dx-popup",4,5),t._UZ(7,"div",6),t.qZA()),2&i&&(t.xp6(1),t.Oqu(r.title),t.xp6(1),t.Q6J("ngStyle",t.DdM(11,$))("innerHTML",r.contentPreview||"No content",t.oJD),t.xp6(2),t.Q6J("ngIf",r.content.length>235),t.xp6(1),t.Q6J("title",r.title)("visible",!1)("showTitle",!0)("dragEnabled",!1)("showCloseButton",!0)("hideOnOutsideClick",!0),t.xp6(2),t.Q6J("innerHTML",r.content||"No data",t.oJD))},dependencies:[l.O5,l.PC,I.x],encapsulation:2}),n})();var V=c(11483);function X(n,a){1&n&&(t.TgZ(0,"span",16),t._uU(1," wine tasting tours and winery visits "),t.qZA())}function tt(n,a){1&n&&(t.TgZ(0,"span",16),t._uU(1,"wine tours and ch\xe2teaux visits"),t.qZA())}function et(n,a){if(1&n&&(t.TgZ(0,"div",17)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(2),t.hij(" ",e.locationMetadata.introduction," ")}}function nt(n,a){if(1&n&&(t.TgZ(0,"h2",21),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij("Best wine tours in ",e.locationData.name,"")}}function ot(n,a){if(1&n&&(t.TgZ(0,"h2",21),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" Best wineries in ",e.locationData.name," ")}}function it(n,a){if(1&n&&(t.TgZ(0,"div",25),t._UZ(1,"app-product-card",26),t.qZA()),2&n){const e=a.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("product",e)("currency",o.currency)}}function at(n,a){if(1&n&&(t.ynx(0,11),t.YNc(1,it,2,2,"div",22),t.TgZ(2,"div",23)(3,"a",24),t._uU(4," Browse All "),t.qZA()(),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.bestTours),t.xp6(2),t.Q6J("queryParams",e.wineToursSearchParams)}}function rt(n,a){if(1&n&&(t.TgZ(0,"div",25),t._UZ(1,"app-product-card",26),t.qZA()),2&n){const e=a.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("product",e)("currency",o.currency)}}function ct(n,a){if(1&n&&(t.ynx(0,11),t.YNc(1,rt,2,2,"div",22),t.TgZ(2,"div",23)(3,"a",24),t._uU(4," Browse All "),t.qZA()(),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.bestWineries),t.xp6(2),t.Q6J("queryParams",e.wineriesSearchParams)}}function st(n,a){if(1&n&&(t.TgZ(0,"div",4)(1,"div",18),t.YNc(2,nt,2,1,"h2",19),t.YNc(3,ot,2,1,"h2",19),t.qZA(),t.YNc(4,at,5,2,"ng-container",20),t.YNc(5,ct,5,2,"ng-container",20),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",e.areBestTours),t.xp6(1),t.Q6J("ngIf",e.areBestWineries&&!e.areBestTours),t.xp6(1),t.Q6J("ngIf",e.displayBestWineToursSection),t.xp6(1),t.Q6J("ngIf",e.displayBestWineriesSection)}}function lt(n,a){if(1&n&&t._UZ(0,"div",27),2&n){const e=t.oxw(2);t.Q6J("innerHTML",e.locationMetadata.about,t.oJD)}}function pt(n,a){if(1&n&&t._UZ(0,"app-map",37),2&n){const e=a.$implicit,o=t.oxw(3);t.Q6J("coordinates",e)("zoom","country"===o.locationType?3:6)}}function dt(n,a){if(1&n&&(t.TgZ(0,"section",28)(1,"div",11)(2,"app-section-title"),t._uU(3,"Plan Your Visit"),t.qZA()(),t.TgZ(4,"div",29)(5,"div",28)(6,"div",30),t._UZ(7,"app-info-snippet",31),t.qZA(),t.TgZ(8,"div",30),t._UZ(9,"app-info-snippet",32),t.qZA(),t.TgZ(10,"div",30),t._UZ(11,"app-info-snippet",33),t.qZA(),t.TgZ(12,"div",30),t._UZ(13,"app-info-snippet",34),t.qZA()()(),t.TgZ(14,"div",35),t.YNc(15,pt,1,2,"app-map",36),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(7),t.Q6J("content",e.locationMetadata.bestGrapes),t.xp6(2),t.Q6J("content",e.locationMetadata.whenToGo),t.xp6(2),t.Q6J("content",e.locationMetadata.howLongFor),t.xp6(2),t.Q6J("content",e.locationMetadata.airport),t.xp6(2),t.Q6J("ngIf",e.locationMetadata.coordinates)}}const gt=function(n,a){return{"col-12":!0,"p-2":!0,"col-md-3":n,"col-md-4":a}},ut=function(n,a){return["/country",n,"wine-region",a]};function mt(n,a){if(1&n&&(t.TgZ(0,"div",42),t._UZ(1,"app-image-card",43),t.ALo(2,"urlPath"),t.ALo(3,"urlPath"),t.qZA()),2&n){const e=a.$implicit,o=t.oxw(3);t.Q6J("ngClass",t.WLB(9,gt,o.locationMetadata.topRegions.length>=8,o.locationMetadata.topRegions.length<8)),t.xp6(1),t.Q6J("routerLink",t.WLB(12,ut,t.lcZ(2,5,o.locationData.name),t.lcZ(3,7,e.name)))("imageUrl",o.getCardImage(e.imageUrl))("title",e.name)("alt","A photo of "+e.name)}
1}const M=function(){return["/search"]};function ht(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",38)(2,"div",11)(3,"app-section-title"),t._uU(4),t.qZA()()(),t.TgZ(5,"div",39),t.YNc(6,mt,4,15,"div",40),t.qZA(),t.TgZ(7,"div",28)(8,"div",23)(9,"a",41),t._uU(10," Browse All "),t.qZA()()(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(4),t.AsE(" Top Wine ","country"===e.locationType?"Regions":"Cities"," in ",e.locationData.name," "),t.xp6(2),t.Q6J("ngForOf",e.locationMetadata.topRegions),t.xp6(3),t.Q6J("routerLink",t.DdM(5,M))("queryParams",e.wineRegionsSearchParams)}}const _t=function(n){return[n]},xt=function(n,a){return{experienceType:n,countryId:a}};function ft(n,a){if(1&n&&(t.TgZ(0,"div",46),t._UZ(1,"app-image-card",47),t.qZA()),2&n){const e=a.$implicit,o=t.oxw(3);t.xp6(1),t.Q6J("routerLink",t.DdM(6,M))("queryParams",t.WLB(9,xt,t.VKq(7,_t,e.id),o.locationId))("imageUrl",o.getCardImage(e.imageUrl))("title",e.name)("alt","A photo of "+e.name)("height",245)}}function vt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",28)(2,"div",44)(3,"app-section-title"),t._uU(4,"Experience Types"),t.qZA()()(),t.TgZ(5,"div",39),t.YNc(6,ft,2,12,"div",45),t.qZA(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(6),t.Q6J("ngForOf",e.locationMetadata.experienceTypes)}}const T=function(n){return{"image-title":n}};function Tt(n,a){if(1&n&&(t.TgZ(0,"div",57),t._UZ(1,"div",58),t.TgZ(2,"div",53),t._uU(3),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(1),t.Udp("background-image",e.locationMetadata.topExperiences[1]&&e.locationMetadata.topExperiences[1].imageUrl?"url("+e.locationMetadata.topExperiences[1].imageUrl+")":"url(https://wineristgo.blob.core.windows.net/front-end/loaction-placeholder.png)"),t.xp6(1),t.Q6J("ngClass",t.VKq(4,T,e.locationMetadata.topExperiences[1]&&e.locationMetadata.topExperiences[1].imageUrl)),t.xp6(1),t.hij(" ",e.locationMetadata.topExperiences[1].name," ")}}function yt(n,a){if(1&n&&(t.TgZ(0,"div",57),t._UZ(1,"div",58),t.TgZ(2,"div",53),t._uU(3),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(1),t.Udp("background-image",e.locationMetadata.topExperiences[2]&&e.locationMetadata.topExperiences[2].imageUrl?"url("+e.locationMetadata.topExperiences[2].imageUrl+")":"url(https://wineristgo.blob.core.windows.net/front-end/loaction-placeholder.png)"),t.xp6(1),t.Q6J("ngClass",t.VKq(4,T,e.locationMetadata.topExperiences[2]&&e.locationMetadata.topExperiences[2].imageUrl)),t.xp6(1),t.hij(" ",e.locationMetadata.topExperiences[2].name," ")}}function wt(n,a){if(1&n&&(t.TgZ(0,"div",57),t._UZ(1,"div",58),t.TgZ(2,"div",53),t._uU(3),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(1),t.Udp("background-image",e.locationMetadata.topExperiences[3]&&e.locationMetadata.topExperiences[3].imageUrl?"url("+e.locationMetadata.topExperiences[3].imageUrl+")":"url(https://wineristgo.blob.core.windows.net/front-end/loaction-placeholder.png)"),t.xp6(1),t.Q6J("ngClass",t.VKq(4,T,e.locationMetadata.topExperiences[3]&&e.locationMetadata.topExperiences[3].imageUrl)),t.xp6(1),t.hij(" ",e.locationMetadata.topExperiences[3].name," ")}}function Zt(n,a){if(1&n&&(t.TgZ(0,"div",57),t._UZ(1,"div",58),t.TgZ(2,"div",53),t._uU(3),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(1),t.Udp("background-image",e.locationMetadata.topExperiences[4]&&e.locationMetadata.topExperiences[4].imageUrl?"url("+e.locationMetadata.topExperiences[4].imageUrl+")":"url(https://wineristgo.blob.core.windows.net/front-end/loaction-placeholder.png)"),t.xp6(1),t.Q6J("ngClass",t.VKq(4,T,e.locationMetadata.topExperiences[4]&&e.locationMetadata.topExperiences[4].imageUrl)),t.xp6(1),t.hij(" ",e.locationMetadata.topExperiences[4].name," ")}}function Ut(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",51),t._UZ(2,"div",52),t.TgZ(3,"div",53),t._uU(4),t.qZA()(),t.TgZ(5,"div",54)(6,"div",55),t.YNc(7,Tt,4,6,"div",56),t.YNc(8,yt,4,6,"div",56),t.qZA(),t.TgZ(9,"div",28),t.YNc(10,wt,4,6,"div",56),t.YNc(11,Zt,4,6,"div",56),t.qZA()(),t.BQk()),2&n){const e=t.oxw(3);t.xp6(2),t.Udp("background-image",e.locationMetadata.topExperiences[0]&&e.locationMetadata.topExperiences[0].imageUrl?"url("+e.locationMetadata.topExperiences[0].imageUrl+")":"url(https://wineristgo.blob.core.windows.net/front-end/loaction-placeholder.png)"),t.xp6(1),t.Q6J("ngClass",t.VKq(8,T,e.locationMetadata.topExperiences[0]&&e.locationMetadata.topExperiences[0].imageUrl)),t.xp6(1),t.hij(" ",e.locationMetadata.topExperiences[0].name," "),t.xp6(3),t.Q6J("ngIf",e.locationMetadata.topExperiences[1]),t.xp6(1),t.Q6J("ngIf",e.locationMetadata.topExperiences[2]),t.xp6(2),t.Q6J("ngIf",e.locationMetadata.topExperiences[3]),t.xp6(1),t.Q6J("ngIf",e.locationMetadata.topExperiences[4])}}function It(n,a){1&n&&(t.TgZ(0,"div",59),t._uU(1,"No Top Experiences"),t.qZA())}function Mt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",48)(2,"div",44)(3,"app-section-title"),t._uU(4),t.qZA()(),t.YNc(5,Ut,12,10,"ng-container",49),t.YNc(6,It,2,0,"ng-template",null,50,t.W1O),t.qZA(),t.BQk()),2&n){const e=t.MAs(7),o=t.oxw(2);t.xp6(4),t.hij("Top Experiences in ",o.locationData.name,""),t.xp6(1),t.Q6J("ngIf",o.locationMetadata&&o.locationMetadata.topExperiences.length)("ngIfElse",e)}}function bt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"main",1)(2,"div",2),t._UZ(3,"app-hero-image",3),t.TgZ(4,"div",4)(5,"h1",5),t._uU(6),t._UZ(7,"br"),t.YNc(8,X,2,0,"span",6),t.YNc(9,tt,2,0,"span",6),t.qZA()()(),t.YNc(10,et,3,1,"div",7),t._UZ(11,"app-as-seen-in"),t.YNc(12,st,6,4,"div",8),t.TgZ(13,"div",9)(14,"section",10)(15,"div",11)(16,"app-section-title"),t._uU(17),t.qZA(),t.YNc(18,lt,1,1,"div",12),t.qZA()(),t.YNc(19,dt,16,5,"section",13),t.TgZ(20,"section",null,14),t.YNc(22,ht,11,6,"ng-container",0),t.qZA(),t.TgZ(23,"section",null,15),t.YNc(25,vt,7,1,"ng-container",0),t.qZA(),t.YNc(26,Mt,8,3,"ng-container",0),t.qZA()(),t.BQk()),2&n){const e=t.oxw();
1t.xp6(3),t.Q6J("src",e.locationMetadata.image)("alt","A photo of "+e.locationMetadata.title),t.xp6(3),t.hij(" ",e.locationName," "),t.xp6(2),t.Q6J("ngIf",12274!==e.locationData.id),t.xp6(1),t.Q6J("ngIf",12274===e.locationData.id),t.xp6(1),t.Q6J("ngIf",e.locationMetadata.introduction),t.xp6(2),t.Q6J("ngIf",e.displayBestWineToursSection||e.displayBestWineriesSection),t.xp6(5),t.hij("Why Visit ",e.locationData.name,"?"),t.xp6(1),t.Q6J("ngIf",e.locationMetadata&&e.locationMetadata.about),t.xp6(1),t.Q6J("ngIf",e.locationMetadata),t.xp6(3),t.Q6J("ngIf",e.displayTopRegionsSection),t.xp6(3),t.Q6J("ngIf",e.displayExperienceTypesSection),t.xp6(1),t.Q6J("ngIf","city"===e.locationType)}}const At=function(n){return{requestUrl:n}};function Ct(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"a",60),t._uU(2," Get in touch "),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("state",t.VKq(1,At,e.requestUrl))}}const b=(0,d.Cb)("BEST_TOURS_STATE"),A=(0,d.Cb)("LOCATION_DATA_STATE"),C=(0,d.Cb)("BEST_WINERIES_STATE"),E=(0,d.Cb)("LOCATION_TYPE_STATE"),L=(0,d.Cb)("LOCATION_ID_STATE"),S=(0,d.Cb)("LOCATION_METADATA_STATE");let Z=(()=>{const a=class{constructor(o,i,r,s,p,m,f,x,U){this._activated=o,this._router=i,this._locationProvider=r,this._seoService=s,this._imageService=p,this._trackingService=m,this._productProvider=f,this.basketService=x,this.transferState=U,this.locationType=this.transferState.get(E,null),this.locationId=this.transferState.get(L,null),this.locationData=this.transferState.get(A,null),this.locationMetadata=this.transferState.get(S,null),this.bestTours=this.transferState.get(b,[]),this.bestWineries=this.transferState.get(C,[]),this.displayGetInTouch=!1}ngOnInit(){this._activated.url.subscribe(o=>this.handleUrlChange(o)),this.basketService.currency.subscribe(o=>{this.currency=o,this.loadProductsByIds(o)})}handleUrlChange(o){var i=this;return(0,g.Z)(function*(){const r=i.getLandingPageSpecFromUrl(o),s=i.getRegionUrlSegment(o);if(i.isNonCanonical(r,s))return void i.redirectToCanonical(r);let p;i.locationType=r.type,i.transferState.set(E,i.locationType);try{p=yield i.loadLocationData(r)}catch(m){i.handleApiError(m)}p?p.generalMetadata?(i.collectData(p),i.setSeoTags(p,i.locationMetadata.image),i.trackPageView(r),i.maybeDisplayGetInTouch(r.type),i.loadProductsByIds(i.currency)):i.handleMissingMetadata(r.type,p):i._router.navigate(["/"])})()}loadProductsByIds(o){var i=this;return(0,g.Z)(function*(){const r=i.locationMetadata?.bestTours?.map(p=>p.id),s=i.locationMetadata?.bestWineries?.map(p=>p.id);i.getProductsByIds(r,s,o)})()}getProductsByIds(o,i,r){var s=this;return(0,g.Z)(function*(){let m=o,f=i;o?.length>0?(o.length>6&&(m=o.slice(0,6)),s._productProvider.getProductsByIds(m,r).subscribe(x=>{s.bestTours=x,s.transferState.get(b,s.bestTours)})):i?.length>0&&(i.length>6&&(f=i.slice(0,6)),s._productProvider.getProductsByIds(f,r).subscribe(x=>{s.bestWineries=x,s.transferState.set(C,s.bestWineries)}))})()}loadLocationData(o){var i=this;return(0,g.Z)(function*(){return i._locationProvider.getLandingMetaDataByName(o).toPromise()})()}getRegionUrlSegment(o){return o[1]}collectData(o){this.locationData=o,this.transferState.set(A,this.locationData),this.locationMetadata=o.generalMetadata,this.transferState.set(S,this.locationMetadata),this.locationId=o.id,this.transferState.set(L,this.locationId)}trackPageView(o){this._trackingService.sendEvent(`view_${o.type}_page`)}handleApiError(o){if(404!==o?.status)throw o;this._router.navigate(["/"])}isNonCanonical({type:o,name:i,country:r,region:s},p){const m="region"===p?.path,f="country"===o&&i.includes("_"),x="region"===o&&i.includes("_")||r?.includes("_"),U="city"===o&&i.includes("_")||s?.includes("_")||r?.includes("_");return f||x||U||m}redirectToCanonical(o){o.country?.replace(/_/g,"-"),o.region?.replace(/_/g,"-"),o.name.replace(/_/g,"-")}setSeoTags(o,i){this._seoService.setTags(o.generalMetadata?.title||o.name,o.generalMetadata?.description||o.name,i),this._seoService.setLocationJsonLd(o)}handleMissingMetadata(o,i){const r={};switch(o){case"country":r.countryId=i.id;break;case"region":r.countryId=i.countryId,r.regionId=i.id;break;case"city":r.countryId=i.countryId,r.regionId=i.regionId,r.cityId=i.id;break;default:throw new Error("Invalid location type: "+o)}this._router.navigate(["/search"],{queryParams:r})}getLandingPageSpecFromUrl(o){const i=o[0].path,r=o[2]?.path,s=o[4]?.path;switch(!0){case!!s:return{type:"city",name:s,region:r,country:i};case!!r:return{type:"region",name:r,country:i};case!!i:return{type:"country",name:i};default:throw new Error("Invalid URL: "+JSON.stringify(o))}}
1get displayTopRegionsSection(){return"country"==this.locationType&&this.locationMetadata?.topRegions.length>0}get displayExperienceTypesSection(){return"country"==this.locationType&&this.locationMetadata?.experienceTypes.length>0}get displayBestWineToursSection(){return"region"==this.locationType&&this.areBestTours}get displayBestWineriesSection(){return"region"==this.locationType&&this.areBestWineries&&!this.areBestTours}get areBestTours(){return this.bestTours?.length>0}get areBestWineries(){return this.bestWineries?.length>0}get heroImageCssUrl(){return"url("+this._imageService.thumborUrl(this.locationMetadata?.image,1600)+")"}get locationName(){return this.locationMetadata.alternativeName||this.locationData.name}maybeDisplayGetInTouch(o){this.displayGetInTouch="country"===o}get wineToursSearchParams(){return this.getSearchParamsByProductId(_.XM.Tour)}get wineriesSearchParams(){return this.getSearchParamsByProductId(_.XM.Winery)}get wineRegionsSearchParams(){return{country:this.locationData.countryId?void 0:this.locationData.name,countryId:this.locationId}}getCardImage(o){return this._imageService.getCardImage(o)}getSearchParamsByProductId(o){return{countryId:this.locationData.countryId,regionId:this.locationData.id,country:this.locationData.countryId?void 0:this.locationData.name,region:this.locationData.countryId?this.locationData.name:void 0,type:o}}ngOnDestroy(){this._seoService.removeAll()}get requestUrl(){return location.href}};let n=a;return a.\u0275fac=function(i){return new(i||a)(t.Y36(h.gz),t.Y36(h.F0),t.Y36(Q.v),t.Y36(J.L),t.Y36(B.A),t.Y36(N.e),t.Y36(D.G),t.Y36(k.v),t.Y36(d.ki))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-landing"]],decls:2,vars:2,consts:[[4,"ngIf"],[1,"landing-page"],[1,"landing-page-header"],[3,"src","alt"],[1,"container"],[1,"hero-name","col-12","px-0","text-shadow"],["class","fs-32 text-lowercase",4,"ngIf"],["class","container my-4",4,"ngIf"],["class","container",4,"ngIf"],[1,"container","mt-1"],[1,"why-visit","row"],[1,"col-12"],["class","prose mt-3",3,"innerHTML",4,"ngIf"],["class","row",4,"ngIf"],["topRegionsSection",""],["experienceTypesSection",""],[1,"fs-32","text-lowercase"],[1,"container","my-4"],[1,"mt-4","mb-3"],["class","fs-26 text-center",4,"ngIf"],["class","col-12",4,"ngIf"],[1,"fs-26","text-center"],["class","mb-4",4,"ngFor","ngForOf"],[1,"col-12","p-2","text-center"],["routerLink","/search",1,"button","border-radius-card",3,"queryParams"],[1,"mb-4"],[3,"product","currency"],[1,"prose","mt-3",3,"innerHTML"],[1,"row"],[1,"col-12","col-sm-8","mt-3"],[1,"col-12","col-sm-6","p-3"],["title","Best Known Grapes",3,"content"],["title","Best time to visit",3,"content"],["title","How long to stay",3,"content"],["title","How to get there",3,"content"],[1,"col-12","col-sm-4",2,"min-height","150px"],[3,"coordinates","zoom",4,"ngIf"],[3,"coordinates","zoom"],[1,"row","mt-3"],[1,"row","mt-2"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"button","border-radius-card",3,"routerLink","queryParams"],[3,"ngClass"],[3,"routerLink","imageUrl","title","alt"],[1,"col-12","mt-3"],["class","col-12 col-md-4 p-2",4,"ngFor","ngForOf"],[1,"col-12","col-md-4","p-2"],[3,"routerLink","queryParams","imageUrl","title","alt","height"],[1,"row","carousel-row"],[4,"ngIf","ngIfElse"],["noExperiences",""],[1,"col-12","col-md-6","carousel-image-container","mt-2"],[1,"exp-type-image"],[1,"bottom-centered",3,"ngClass"],[1,"col-12","col-md-6"],[1,"row","mb-3"],["class","col-6 carousel-image-container",4,"ngIf"],[1,"col-6","carousel-image-container"],[1,"carousel-image","small"],[1,"col-12","text-center"],["routerLink","/bespoke",1,"button","border-0","win-rounded","position-fixed","get-in-touch",3,"state"]],template:function(i,r){1&i&&(t.YNc(0,bt,27,13,"ng-container",0),t.YNc(1,Ct,3,3,"ng-container",0)),2&i&&(t.Q6J("ngIf",r.locationData),t.xp6(1),t.Q6J("ngIf",r.displayGetInTouch))},dependencies:[l.mk,l.sg,l.O5,h.rH,O.I,Y.Q,q.Y,W.G,F.Y,H,K,V.Y],styles:[".hero-name{font-size:2.5rem;text-transform:capitalize}@media only screen and (min-width: 576px){.hero-name{font-size:3rem}}.landing-page-header{color:#fff;height:26rem;position:relative;display:flex;align-items:center}.country-map{width:100%;height:90%;min-height:90%}.landing-page .location-image{background-repeat:no-repeat;background-position:center center;background-size:cover;height:175px;border-radius:7px}.landing-page .info-text-long{height:140px;overflow:hidden}.landing-page .exp-type-image{background-repeat:no-repeat;background-position:center center;background-size:cover;height:245px;border-radius:7px}.landing-page .location-name{font-size:15px;font-weight:600}.landing-page .carousel-row .carousel-image{background-repeat:no-repeat;background-position:center center;background-size:cover;height:100%;border-radius:7px}.landing-page .carousel-row .carousel-image-container .carousel-image.small{min-height:150px}.landing-page .carousel-row .carousel-image-container .bottom-centered{color:#000}.landing-page .carousel-row .carousel-image-container .image-title{font-size:18px;font-weight:500;color:#fff;text-align:center}.info-popup .dx-item.dx-toolbar-item.dx-toolbar-label{border-bottom:2px solid #b71540}@media only screen and (max-width: 1199px){.dx-popup-content .dx-calendar{width:320px!important;height:327.4px!important;min-width:auto!important;min-height:auto!important}}@media only screen and (max-width: 575px){.dx-popup-content .dx-calendar{width:200
1px!important;height:300px!important;min-width:auto!important;min-height:auto!important}}.why-visit blockquote{border:5px solid #b71540;padding:1rem;margin:1rem;border-radius:1rem;background:#f5ebef;color:#300}.why-visit blockquote p:last-child{margin-bottom:0}@media only screen and (min-width: 576px){.why-visit blockquote{margin:2rem;padding:2rem;border-radius:2rem}}.get-in-touch{right:3px;top:50vh;white-space:nowrap;width:auto;transform:rotate(90deg);transform-origin:top right;box-shadow:5px -2px 5px #00000080;opacity:.75;transition:opacity .5s .5s,right .5s .5s}.get-in-touch:hover{right:7px;opacity:1}\n"],encapsulation:2}),n})();const Et=[{path:"",children:[{path:":name",component:Z},{path:":name/wine-region/:name",component:Z},{path:":name/wine-region/:name/city/:name",component:Z}]}];var Lt=c(89033),St=c(21459),Pt=c(94700);let Qt=(()=>{const a=class{};let n=a;return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[l.ez,h.Bz,v.k,u.e,I.C,Lt.a,St.B,Pt.a,w.m,h.Bz.forChild(Et)]}),n})()}}]);
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.