PageSourceSearch

https://www.cloudybay.com/component---src-templates-home-js-0d9ff861bcac14c32b18.js

js cloudybay.com collected 2026-10-03 21:32:02 UTC 14,327 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcloudy_bay=self.webpackChunkcloudy_bay||[]).push([[7101],{6640:function(e,l,t){t.r(l),t.d(l,{default:function(){return R}});var i=t(6540),o=t(8154),d=t(1997),n=t(8666),a=t(5176),s=t(4616),r=t(3707),u=t(5757),c=t(6799),v=t(4304),f=t(6145),m=t(7437);var y=e=>{let l=e.subtitle,t=void 0===l?"":l,i=e.title,o=void 0===i?"":i,d=e.text,n=void 0===d?"":d,a=e.ctaLabel,s=void 0===a?"":a,r=e.ctaTo,u=void 0===r?"":r,y=e.background;return(0,m.jsx)(v.mc,{background:(0,c.A)(y)},(0,m.jsx)(v.UC,null,(0,m.jsx)(v.Pd,null,t),(0,m.jsx)(v.hE,null,o),(0,m.jsx)(v.EY,null,n),(0,m.jsx)(v.$n,{onClick:()=>{return e=s,l=o,void("undefined"!=typeof window&&window.dataLayer&&window.dataLayer.push({event:f.Qf,cta_name:e,banner_name:l}));var e,l},to:u},s)))},p=t(5093),g=t.n(p),x=t(3836),S=t(297);var b=e=>{e.subtitle,e.title;let l=e.text,t=void 0===l?"":l,o=(e.ctaLabel,e.ctaTo,e.background),d=e.revealDate,n=void 0===d?"":d,s=e.standardSlideBackground,r=e.standardSlideTitle,u=e.standardSlideSubtitle,c=e.standardSlideDescription,v=e.standardSlideCtaLabel,f=e.standardSlideCtaTo;const p=(0,i.useState)("00"),b=p[0],j=p[1],h=(0,i.useState)("00"),k=h[0],w=h[1],B=(0,i.useState)("00"),I=B[0],C=B[1],L=(0,i.useState)(g()(n,"YYYY-MM-DD hh:mm:ss")),T=L[0],A=(L[1],(0,i.useState)(!0)),D=A[0],U=A[1],P=(0,a.vc)(x.M);return(0,i.useEffect)(()=>{let e;return D&&(e=setInterval(()=>{const l=g().utc(new Date).isBefore(T);if(l){const e=g().duration(T.diff(g()())),l=e.get("days"),t=e.get("hours"),i=e.get("minutes");j(l<10?"0"+l:""+l),w(t<10?"0"+t:""+t),C(i<10?"0"+i:""+i)}else U(l),clearInterval(e)},1e3)),()=>{clearInterval(e)}},[n]),(0,m.jsx)(S.nF,{className:(P?"hidden":"visible")+" "+g().utc(new Date).isBefore(g()(n,"YYYY-MM-DD hh:mm:ss"))},(0,m.jsx)(S._,{className:""+(D&&"active")},(0,m.jsx)(S.v_,{background:o},(0,m.jsx)(S.I9,null,(0,m.jsx)(S.bL,null,(0,m.jsx)(S.rg,null,(0,m.jsx)(S.Y,null,"Coming Soon"),(0,m.jsx)(S.lz,null,(0,m.jsx)(S.UZ,null,(0,m.jsx)(S.gX,null,b),(0,m.jsx)(S.sB,null,"DAYS")),(0,m.jsx)(S.UZ,null,(0,m.jsx)(S.gX,null,k),(0,m.jsx)(S.sB,null,"HOURS")),(0,m.jsx)(S.UZ,null,(0,m.jsx)(S.ON,null,":")),(0,m.jsx)(S.UZ,null,(0,m.jsx)(S.gX,null,I),(0,m.jsx)(S.sB,null,"MINUTES")))),(0,m.jsx)(S.$y,null,t))))),(0,m.jsx)(S.dm,null,(0,m.jsx)(y,{subtitle:u,title:r,text:c,ctaLabel:v,ctaTo:f,background:s})))},j=t(644),h=t(4583),k=t(7389);const w=(0,j.A)("div",{target:"e1lfs2ve1"})("position:relative;width:100%;display:flex;align-items:center;justify-content:center;.swiper{width:100%;.swiper-pagination{position:absolute;left:0;bottom:5.5rem;display:flex;align-items:flex-end;justify-content:center;gap:1.5rem;width:100%;padding-inline:11rem;",k.ju.md,"{padding-inline:5rem;}",k.ju.xs,"{bottom:3.5rem;gap:3rem;padding-inline:5rem;}.swiper-pagination-bullet{position:relative;width:100%;height:10px;flex:1;margin:0;border-radius:0;transition:all ease-out 300ms;background:transparent;overflow:hidden;",k.ju.xs,'{width:unset;margin-right:unset;}&:before{content:"";display:block;position:absolute;left:0;bottom:0;width:100%;height:2px;opacity:1;border-radius:5rem;background-color:',e=>e.theme.colors.white,';transition:all ease-out 300ms;z-index:20;}&:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;opacity:0.3;background-color:',e=>e.theme.colors.white,";transition:all ease-out 300ms;}&:hover{&:after,&:before{height:5px;}}}.swiper-pagination-bullet-active{&::before{animation:slide-progress 7.3s linear forwards;.swiper-paused &{animation-play-state:paused;}}}@keyframes slide-progress{0%{transform:translateX(-100%);}100%{transform:translateX(0);}}}}"),B=(0,j.A)(h.A,{target:"e1lfs2ve0"})("position:absolute;left:calc(50% + 60rem);bottom:",e=>e.theme.spacing.medium,";transform:translateX(-100%);z-index:2;");var I=e=>{let l=e.slides,t=e.scrollDownButton,i=void 0!==t&&t;return 1===l.length?l[0].revealDate?(0,m.jsx)(b,l[0]):(0,m.jsx)(y,l[0]):(0,m.jsx)(w,null,(0,m.jsx)(r.RC,{modules:[u.dK,u.Ij,u._R],pagination:{clickable:!0},loop:!0,shortSwipes:!1,longSwipesRatio:.2,autoplay:{disableOnInteraction:!1,delay:7e3},effect:"fade",watchSlidesProgress:!0},l.map((e,l)=>(0,m.jsx)(r.qr,{key:"slide-"+l},e.revealDate?(0,m.jsx)(b,e):(0,m.jsx)(y,e))),i&&(0,m.jsx)(B,{id:"textcercle",icon:"arrow-down",label:"Discover",color:"white",nbLabels:5,onClick:()=>{window.scroll({top:window.innerHeight,left:0,behavior:"smooth"})}})))},C=t(7048),L=t(6821),T=t(9200),A=t(9657),D=t(3781),U=t(2224),P=t(3530),H=t(8137),M=t(7259);var N=e=>{let l=e.title,t=e.slides;e.scrollDownButton;const i="/"+(0,a.vc)(n.zQ)+"/journal/";return(0,m.jsx)(H.mO,null,(0,m.jsx)(H.Nk,{href:i},(0,m.jsx)(H.cW,null,l),(0,m.jsx)(H.o$,{src:M.A})),(0,m.jsx)(r.RC,{modules:[u.dK,u.Ij,u._R],pagination:{clickable:!0},loop:!0,shortSwipes:!1,longSwipesRatio:.2,autoplay:{disableOnInteraction:!1,delay:7e3},effect:"fade",watchSlidesProgress:!0},t.map((e,l)=>{const t=e.background,i=e.categories,o=e.title,d=e.ctaTo,n=new Date(e.date.replace(" ","T").replace(" UTC","Z")).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),a=i[0];return(0,m.jsx)(r.qr,{key:"slide-"+l},(0,m.jsx)(v.mc,{background:(0,c.A)(t)},(0,m.jsx)(v.hJ,null,(0,m.jsx)(H.UC,null,(0,m.jsx)(H.Q2,null,(0,m.jsx)(H.eN,null,a)),(0,m.jsx)(H.GA,null,o),(0,m.jsx)(H.WR,null,n),(0,m.jsx)(H._3,{onClick:()=>{return e="LEARN MORE",l=o,void("undefined"!=typeof window&&window.dataLayer&&window.dataLayer.push({event:f.Qf,cta_name:e,banner_name:l}));var e,l},to:d},"Learn More")))))})))};var R=e=>{var l,t,i,r,u,c,v,f,y,p,g,x,S,b,j,k,w,B,H,M,R,_,O,V,Y,W;let z=e.data,Q=e.pageContext,E=Q.pagePath,X=Q.marketCode;if(!z)return null;const J=(0,a.vc)(d.YH),Z=(0,a.L4)(n.zQ),G=(Z[0],Z[1],{title:null===(l=z.drupal.nodeById)||void 0===l||null===(t=l.fieldHomeMetaTags)||void 0===t||null===(i=t.entity)||void 0===i?void 0:i.fieldMetaTitle,de
1scription:null===(r=z.drupal.nodeById)||void 0===r||null===(u=r.fieldHomeMetaTags)||void 0===u||null===(c=u.entity)||void 0===c?void 0:c.fieldMetaDescription,bypassAgeGate:null===(v=z.drupal.nodeById)||void 0===v||null===(f=v.fieldHomeMetaTags)||void 0===f||null===(y=f.entity)||void 0===y?void 0:y.fieldMetaTagsBypassAgeGate,slug:null===(p=z.drupal.nodeById)||void 0===p||null===(g=p.fieldHomeMetaTags)||void 0===g||null===(x=g.entity)||void 0===x?void 0:x.fieldMetaSlugUrl}),$=null===(S=z.drupal.nodeById.fieldHomeHeroSlider.entity)||void 0===S?void 0:S.fieldStandardSliderItem.map(e=>{var l,t,i,o,d,n,a,s,r,u,c,v,f,m,y,p,g,x,S,b,j,h,k,w,B,I,C,L,T,A,D,U,P,H,M,N,R,_,O,V;return{subtitle:null===(l=e.entity)||void 0===l?void 0:l.fieldHeroSubtitle,title:null===(t=e.entity)||void 0===t?void 0:t.fieldHeroTitle,text:null===(i=e.entity)||void 0===i?void 0:i.fieldHeroDescription,ctaLabel:null===(o=e.entity)||void 0===o||null===(d=o.fieldHeroCta)||void 0===d?void 0:d.title,ctaTo:null===(n=e.entity)||void 0===n||null===(a=n.fieldHeroCta)||void 0===a||null===(s=a.url)||void 0===s?void 0:s.path,background:J?null===(r=e.entity)||void 0===r||null===(u=r.fieldBackgroundMobile)||void 0===u?void 0:u.url:null===(c=e.entity)||void 0===c||null===(v=c.fieldBackgroundDesktop)||void 0===v?void 0:v.url,revealDate:null===(f=e.entity)||void 0===f||null===(m=f.fieldRevealDate)||void 0===m?void 0:m.date,standardSlideBackground:J?null===(y=e.entity)||void 0===y||null===(p=y.fieldStandardSlide)||void 0===p||null===(g=p.entity)||void 0===g||null===(x=g.fieldBackgroundMobile)||void 0===x?void 0:x.url:null===(S=e.entity)||void 0===S||null===(b=S.fieldStandardSlide)||void 0===b||null===(j=b.entity)||void 0===j||null===(h=j.fieldBackgroundDesktop)||void 0===h?void 0:h.url,standardSlideTitle:null===(k=e.entity)||void 0===k||null===(w=k.fieldStandardSlide)||void 0===w||null===(B=w.entity)||void 0===B?void 0:B.fieldHeroTitle,standardSlideSubtitle:null===(I=e.entity)||void 0===I||null===(C=I.fieldStandardSlide)||void 0===C||null===(L=C.entity)||void 0===L?void 0:L.fieldHeroSubtitle,standardSlideDescription:null===(T=e.entity)||void 0===T||null===(A=T.fieldStandardSlide)||void 0===A||null===(D=A.entity)||void 0===D?void 0:D.fieldHeroDescription,standardSlideCtaLabel:null===(U=e.entity)||void 0===U||null===(P=U.fieldStandardSlide)||void 0===P||null===(H=P.entity)||void 0===H||null===(M=H.fieldHeroCta)||void 0===M?void 0:M.title,standardSlideCtaTo:null===(N=e.entity)||void 0===N||null===(R=N.fieldStandardSlide)||void 0===R||null===(_=R.entity)||void 0===_||null===(O=_.fieldHeroCta)||void 0===O||null===(V=O.url)||void 0===V?void 0:V.path}}),q=null===(b=z.drupal.nodeById.fieldJournalPreview.entity)||void 0===b?void 0:b.fieldJournalSliderItems.map(e=>{var l,t;return{categories:e.entity.fieldNewsCategories.map(e=>e.entity.name),title:e.entity.fieldNewsTitle,date:e.entity.fieldNewsDate.date,ctaTo:e.entity.path.alias,background:J?null===(l=e.entity.fieldNewsCoverMobile)||void 0===l?void 0:l.url:null===(t=e.entity.fieldNewsCover)||void 0===t?void 0:t.url}}),F=null===(j=z.drupal.nodeById.fieldHomeJoinOurCommunity)||void 0===j?void 0:j.entity,K=z.drupal.nodeById.fieldHomeOurWinesList.map(e=>({cat:e.entity.fieldWineProductCategoryName})),ee=z.drupal.productsQuery.entities.filter(e=>K.find(l=>l.cat===e.name)).map(e=>{var l,t,i,o;const d=null===(l=e.fieldWineCatPrimaryVintage)||void 0===l?void 0:l.entity;return d?{img:null===(t=d.fieldWineProdPackshotShadow)||void 0===t?void 0:t.url,art:null===(i=d.fieldWineProductBackillustrat)||void 0===i?void 0:i.url,name:e.name,price:e.fieldWineCategoryFromPrice,colorBg:d.fieldWineProductBackcolor,colorCta:d.fieldProductDiscoverColorCta,title:d.fieldCategoryProductName,text:d.fieldWineProductShortDesc,path:null===(o=d.path)||void 0===o?void 0:o.alias}:null}).filter(Boolean),le=((null==F||null===(te=F.fieldSocialPostsList)||void 0===te||null===(ie=te.entity)||void 0===ie?void 0:ie.fieldSocialPostItem)||[]).map(e=>null==e?void 0:e.entity).filter(Boolean).map(e=>{var l,t,i,o,d,n,a,s;return{url:null===(l=e.fieldSocialPostItemLink)||void 0===l?void 0:l.uri,coverImg:null===(t=e.fieldSocialPostItemCoverImg)||void 0===t?void 0:t.url,coverAlt:null===(i=e.fieldSocialPostItemCoverImg)||void 0===i?void 0:i.alt,logo:null===(o=e.fieldSocialPostLogo)||void 0===o?void 0:o.url,logoAlt:null===(d=e.fieldSocialPostLogo)||void 0===d?void 0:d.alt,postUsername:e.fieldSocialPostItemUsername,postSocialAccount:null===(n=e.fieldSocialPostUserAccount)||void 0===n?void 0:n.title,postSocialAccountUrl:null===(a=e.fieldSocialPostUserAccount)||void 0===a||null===(s=a.url)||void 0===s?void 0:s.path}});var te,ie;
1const oe=null===(k=z.drupal.nodeById.fieldHomeVisitUsBlock.entity)||void 0===k?void 0:k.fieldVisitUsItemList.map(e=>{var l,t,i,o,d,n,a,s;return{name:e.entity.fieldVisitUsItemTitle,background:J?null===(l=e.entity.fieldVisitUsItemBackMobile)||void 0===l?void 0:l.url:null===(t=e.entity.fieldVisitUsItemBackDesk)||void 0===t?void 0:t.url,backgroundAlt:J?null===(i=e.entity.fieldVisitUsItemBackMobile)||void 0===i?void 0:i.alt:null===(o=e.entity.fieldVisitUsItemBackDesk)||void 0===o?void 0:o.alt,image:null===(d=e.entity.fieldVisitUsItemCoverImage)||void 0===d?void 0:d.url,imageAlt:null===(n=e.entity.fieldVisitUsItemCoverImage)||void 0===n?void 0:n.alt,href:null===(a=e.entity.fieldVisitUsItemCta)||void 0===a||null===(s=a.url)||void 0===s?void 0:s.path}}),de=z.drupal.nodeById.fieldHomeAboutUsBlock.entity;return(0,m.jsx)(s.A,{entityBundle:"home_page",path:E,pageType:"Home",pageMarketCode:X},(0,m.jsx)(o.m,null,(0,m.jsx)("title",null,G.title),(0,m.jsx)("meta",{name:"facebook-domain-verification",content:"6ax59ka2bfebe3bx798zzajg31ebg8"}),(0,m.jsx)("meta",{name:"description",content:G.description}),(0,m.jsx)("link",{rel:"canonical",href:""+({}.URL||"https://www.cloudybay.com")+E+"/"}),(0,m.jsx)("script",{type:"application/ld+json"},JSON.stringify({"@context":"https://schema.org/","@type":"Organization",name:"Cloudy Bay",url:"https://wwww.cloudybay.com/"}))),(0,m.jsx)(I,{slides:$}),(0,m.jsx)(C.A,{id:"textcercle1",title:z.drupal.nodeById.fieldHomeOurWinesTitle,items:ee,linkTitle:"Discover all the wines from the two Cloudy Bay wineries"}),(0,m.jsx)(T.A,{content:null===(w=z.drupal.nodeById)||void 0===w?void 0:w.fieldHomeManuscriptQuote}),(0,m.jsx)(N,{title:z.drupal.journalQuery.title,slides:q}),(0,m.jsx)(A.A,{subtitle:null==de?void 0:de.fieldStandardTextBlock.entity.fieldStandardSubtitle,title:null==de?void 0:de.fieldStandardTextBlock.entity.fieldStandardTitle,text:null==de?void 0:de.fieldStandardTextBlock.entity.fieldStandardDescription,actions:[(0,m.jsx)(P.A,{key:1,to:null==de||null===(B=de.fieldStandardTextBlock.entity.fieldStandardCta)||void 0===B||null===(H=B.url)||void 0===H?void 0:H.path},null==de||null===(M=de.fieldStandardTextBlock.entity.fieldStandardCta)||void 0===M?void 0:M.title)],display:"big",images:[null==de||null===(R=de.fieldStandard2imagesBlock.entity.fieldLeftImage)||void 0===R?void 0:R.url,null==de||null===(_=de.fieldStandard2imagesBlock.entity.fieldRightImage)||void 0===_?void 0:_.url],leftAlt:null==de||null===(O=de.fieldStandard2imagesBlock.entity.fieldLeftImage)||void 0===O?void 0:O.alt,rightAlt:null==de||null===(V=de.fieldStandard2imagesBlock.entity.fieldRightImage)||void 0===V?void 0:V.alt}),(0,m.jsx)(L.A,{id:"textcercle2a",secondId:"textcercle2b",label:z.drupal.nodeById.fieldHomeVisitUsBlock.entity.fieldVisitUsSubtitle,items:oe}),(0,m.jsx)(D.A,{title:F.fieldSocialPostsList.entity.fieldSocialListTitle,subtitle:F.fieldSocialPostsList.entity.fieldSocialListSubtitle,text:F.fieldSocialPostsList.entity.fieldSocialListDescription,action:(0,m.jsx)(h.A,{id:"textcercle3",linkTitle:"Open our Instagram page in a new tab",label:null===(Y=F.fieldSocialPostsList.entity.fieldSocialListCta)||void 0===Y?void 0:Y.title,to:null===(W=F.fieldSocialPostsList.entity.fieldSocialListCta)||void 0===W?void 0:W.url.path,target:"_blank",nbLabels:J?3:5}),items:le}),(0,m.jsx)("div",{id:"store-locator"},(0,m.jsx)(U.A,{pageType:"Home"})))}},9200:function(e,l,t){t(6540);var i=t(6612),o=t(6799),d=t(4721),n=t(7437);l.A=e=>{let l=e.content,t=e.img,a=void 0===t?null:t,s=e.subtitle,r=void 0===s?null:s,u=e.author,c=void 0===u?"":u;return(0,n.jsx)(d.mc,{className:""+(a&&a.length&&"hasImage"),img:(0,o.A)(a)},(0,n.jsx)(d.mO,null,(0,n.jsx)(d.UC,null,r&&(0,n.jsx)(d.Pd,null,r),(0,n.jsx)(d.Rp,{dangerouslySetInnerHTML:{__html:(0,i.Ay)(l)}}),c&&(0,n.jsx)(d.UM,null,c))))}}}]);
2//# sourceMappingURL=component---src-templates-home-js-0d9ff861bcac14c32b18.js.map

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.