PageSourceSearch

https://www.cloudybay.com/component---src-templates-modular-page-js-264a3a761266b0e927fd.js

js cloudybay.com collected 2026-10-03 21:32:11 UTC 17,408 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcloudy_bay=self.webpackChunkcloudy_bay||[]).push([[7992],{5528:function(t,e,i){i.r(e),i.d(e,{default:function(){return it}});var l=i(6540),n=i(5176),o=i(1997),a=i(8154),d=i(4616),r=i(1399),u=i(226),s=i(66),c=i(9423),m=i(423),f=i(644),y=i(4583),p=i(9347),g=i(7389),v=i(3967);const x=(0,f.A)("div",{target:"efc11yc11"})({name:"1no53jm",styles:"position:relative;width:80%;margin-top:4rem;display:flex;flex-direction:column;align-items:center"}),h=(0,f.A)("div",{target:"efc11yc10"})({name:"1o99uxt",styles:"display:flex;justify-content:space-between;flex-direction:column;width:100%;align-items:center"}),j=(0,f.A)("div",{target:"efc11yc9"})("margin-top:6rem;display:flex;justify-content:center;position:",t=>"initial"===t.position?"absolute":"fixed",";top:",t=>{let e=t.position;t.offsetTop;return"initial"===e?"auto":"100px"},";transform:translateY(",t=>{let e=t.position,i=t.offsetTop;return"bottom"===e?"-"+i+"px":0},");margin-left:3rem;left:",t=>{let e=t.position,i=t.offsetLeft;return"initial"===e?0:i+"px"},";z-index:5;",g.ju.md,"{visibility:hidden;width:0;height:0;margin:0;}"),b=(0,f.A)(y.A,{target:"efc11yc8"})({name:"1wbgrkf",styles:"transform:scale(1.2)"}),w=(0,f.A)("a",{target:"efc11yc7"})((0,g.u2)()," position:absolute;right:0;background:none;border:none;outline:none;height:min-content;display:flex;align-items:center;justify-content:center;gap:1.2rem;margin-top:",t=>t.theme.spacing.medium,";text-decoration:none;cursor:pointer;",g.ju.lg,"{flex-direction:row-reverse;}",g.ju.md,"{visibility:hidden;width:0;height:0;}&.small{margin-top:0;",g.ju.md,"{visibility:visible;width:auto;height:auto;}",g.ju.xs,"{position:inherit;}}"),k=(0,f.A)("p",{target:"efc11yc6"})((0,g.u2)()," ",g.ju.md,"{color:",t=>t.theme.colors.brown,";}",g.ju.xs,"{font-size:",t=>t.theme.fontSizes.paragraph.xs,";}"),C=(0,f.A)("div",{target:"efc11yc5"})("display:flex;align-items:center;justify-content:space-between;visibility:hidden;width:0;height:0;",g.ju.md,"{visibility:visible;width:90%;height:auto;margin-bottom:",t=>t.theme.spacing.medium,";}",g.ju.xs,"{flex-direction:column;align-items:flex-start;gap:2rem;}"),S=(0,f.A)(v.A,{target:"efc11yc4"})((0,g.u2)()," display:flex;align-items:center;gap:1.2rem;cursor:pointer;text-decoration:none;color:inherit;",g.ju.md,"{color:",t=>t.theme.colors.brown,";}",g.ju.xs,"{font-size:",t=>t.theme.fontSizes.paragraph.xs,";}"),A=(0,f.A)("div",{target:"efc11yc3"})("width:65%;",g.ju.md,"{margin-top:",t=>t.theme.spacing.medium,";width:80%;}",g.ju.xs,"{width:95%;margin-top:",t=>t.theme.spacing.xsmall,";}"),B=(0,f.A)("div",{target:"efc11yc2"})((0,g.u2)()," margin-bottom:",t=>t.theme.spacing.xsmall,";"),I=(0,f.A)("h1",{target:"efc11yc1"})("font-size:3.5rem;font-family:",t=>t.theme.fonts.serif,";color:",t=>t.theme.colors.brown,";font-weight:bold;margin-bottom:",t=>t.theme.spacing.small,";",g.ju.xs,"{word-wrap:break-word;}"),T=(0,f.A)(p.A,{target:"efc11yc0"})("font-weight:bold;color:",t=>t.theme.colors.green,";line-height:1.875rem;margin-bottom:",t=>t.theme.spacing.small,";width:60%;&.uppercase{line-height:1.625rem;text-transform:uppercase;margin-bottom:1.5rem;",g.ju.xs,"{line-height:3.0rem;}",g.ju.md,"{margin-bottom:",t=>t.theme.spacing.small,";}}",g.ju.md,"{width:80%;}",g.ju.xs,"{width:95%;}");var M=i(7437);var _=t=>{let e=t.infos,i=void 0===e?"":e,n=t.title,o=void 0===n?"":n,a=t.shareURL,d=void 0===a?"":a,r=t.hideBackButton,f=void 0!==r&&r,y=t.cta,p=t.ctaLabel,g=t.introduction,v=void 0===g?"":g,_=t.event,P=void 0!==_&&_;const N=(0,c.Mq)(),D=(0,l.useRef)(null),L=(0,l.useState)("initial"),W=L[0],H=L[1],V=(0,l.useState)(0),z=V[0],G=V[1],Q=(0,l.useState)(0),U=Q[0],q=Q[1];(0,l.useEffect)(()=>{if(!f){var t,e,i;const o=(null===(t=D.current)||void 0===t?void 0:t.parentNode.offsetTop)+(null===(e=D.current)||void 0===e?void 0:e.parentNode.clientHeight)-window.innerHeight-300;var l;if(N>=(null===(i=D.current)||void 0===i?void 0:i.offsetTop)-100&&N<o)H("fixed"),G(null===(l=D.current)||void 0===l?void 0:l.offsetLeft);else if(N>=o){var n;H("bottom"),G(null===(n=D.current)||void 0===n?void 0:n.offsetLeft),q(N-o)}else H("initial")}},[N]);const R=i.split(" ").pop(),E=(0,l.useState)("article"),F=E[0],O=E[1];return(0,l.useEffect)(()=>{"Recipes"===R&&O("recipe")},[R]),(0,M.jsx)(x,{ref:D},(0,M.jsx)(C,null,(0,M.jsx)(S,{to:"/journal"},(0,M.jsx)(u.A,{color:s.Ay.colors.brown,name:"arrow-left",size:32}),"Back"),d&&(0,M.jsx)(w,{className:"small",href:"mailto:?subject="+o+"&body="+d},(0,M.jsx)(u.A,{color:s.Ay.colors.brown,name:"share"}),(0,M.jsx)(k,null,"Share this ",P?"Event":F))),(0,M.jsx)(h,null,!f&&(0,M.jsx)(j,{position:W,offsetLeft:z,offsetTop:U},(0,M.jsx)(b,{id:"textcercle",icon:"arrow-left",label:p,color:"blue",nbLabels:9,to:y,target:(0,m.A)(y)?"_blank":"_self"})),(0,M.jsx)(A,null,i&&(0,M.jsx)(B,null,i),o&&(0,M.jsx)(I,null,o)),v&&(0,M.jsx)(T,null,v),d&&(0,M.jsx)(w,{href:"mailto:?subject="+o+"&body="+d},(0,M.jsx)(u.A,{color:s.Ay.colors.green,name:"share"}),(0,M.jsx)(k,null,"Share this ",P?"Event":F))))},P=i(3945),N=i(7109),D=i(1393),L=i(168),W=i(4849),H=i(9024),V=i(6279),z=i(3530),G=i(6799),Q=i(7251);const U=(0,f.A)("div",{target:"eg6o1fw5"})("width:50%;display:flex;flex-direction:column;justify-content:center;",Q.eM,"{max-width:240px;margin-top:24px;}",g.ju.xs,"{width:100%;}"),q=(0,f.A)("div",{target:"eg6o1fw4"})("position:relative;width:80%;margin:0 auto;display:flex;flex-direction:row;gap:2rem;margin-top:7rem;margin-bottom:7rem;",g.ju.xs,"{width:90%;flex-direction:column-reverse;}&.image-text{flex-direction:row-reverse;gap:5rem;",g.ju.xs,"{flex-direction:column-reverse;}}"),R=(0,f.A)("img",{target:"eg6o1fw3"})({name:"1d3w5wq",styles:"width:100%"}),E=(0,f.A)("h3",{target:"eg6o1fw2"})((0,g.u2)(),";"),F=(0,f.A)("h3",{target:"eg6o1fw1"})((0,g.Gf)()," width:100%;color:",t=>t.theme.colors.brown,";margin-bottom:4rem;margin-top:2rem;"),O=(0,f.A)(p.A,{target:"eg6o1fw0"})("p{color:",t=>t.theme.colors.grey,";",g.ju.xs,"{width:100%;}}");var Y=t=>
1{let e=t.src,i=t.alt,l=t.subtitle,n=t.title,o=t.content,a=t.direction,d=void 0===a?"image-text":a,r=t.to,u=t.label;return(0,M.jsx)(q,{className:d},(0,M.jsx)(U,null,(0,M.jsx)(E,null,l),(0,M.jsx)(F,null,n),(0,M.jsx)(O,null,o),u&&(0,M.jsx)(z.A,{className:"productCardRetailersBtn",to:r,ctaTracking:!1,target:(0,m.A)(r)?"_blank":"_self"},u)),(0,M.jsx)(U,null,(0,M.jsx)(R,{loading:"lazy",src:(0,G.A)(e),alt:i})))},J=i(9200),K=i(7048),X=i(3574);const Z=(0,f.A)("div",{target:"e5c8jch3"})({name:"2y83vy",styles:"width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;padding-top:5rem;gap:5rem"}),$=(0,f.A)("h1",{target:"e5c8jch2"})((0,g.Gf)(),";max-width:80rem;text-align:left;width:100%;",g.ju.xs,"{padding:0 5vw;}"),tt=(0,f.A)(p.A,{target:"e5c8jch1"})("max-width:80rem;p{color:",t=>t.theme.colors.grey,";",g.ju.xs,"{width:100%;}}"),et=(0,f.A)("div",{target:"e5c8jch0"})("width:80%;",g.ju.xs,"{width:100%;}",q,"{flex-direction:column-reverse!important;}&.one-column{",q,"{width:100%;}",U,"{width:100%;margin:0 auto;",g.ju.xs,"{width:90%;}}}&.two-column{display:flex;justify-content:center;align-items:flex-start;gap:3.5rem;",U,"{width:100%;}",q,"{justify-content:column-reverse!important;}",g.ju.xs,"{flex-direction:column;}}&.three-column{display:flex;justify-content:space-between;gap:2rem;",q,"{justify-content:flex-end!important;}",U,"{width:100%;}",g.ju.xs,"{flex-direction:column;",q,"{justify-content:center;margin-top:3rem;margin-bottom:3rem;}}}");var it=t=>{var e,i,l,u,s,c,m,f,y,p,g,v,x,h,j,b,w,k,C,S,A,B,I,T,z,G,Q;let U=t.data,q=t.pageContext,R=q.requireAgeGate,E=q.pagePath,F=q.marketCode;const O=(0,n.vc)(o.YH),it=U.drupal.nodeById.fieldModularPageLayers;return(0,M.jsx)(d.A,{entityBundle:"modular_page",path:E,requireAgeGate:R,plainHeader:!0,pageType:"our-certifications"===U.drupal.nodeById.fieldModularPageMetaTags.entity.fieldMetaSlugUrl?"Legal":"",pageMarketCode:F},(0,M.jsx)(a.m,null,(0,M.jsx)("title",null,U.drupal.nodeById.fieldModularPageMetaTags.entity.fieldMetaTitle),(0,M.jsx)("meta",{name:"description",content:U.drupal.nodeById.fieldModularPageMetaTags.entity.fieldMetaDescription}),(0,M.jsx)("meta",{property:"og:title",content:U.drupal.nodeById.fieldModularPageMetaTags.entity.fieldMetaTitle}),(0,M.jsx)("meta",{property:"og:description",content:U.drupal.nodeById.fieldModularPageMetaTags.entity.fieldMetaDescription}),(0,M.jsx)("meta",{property:"og:url",content:""+({}.URL||"https://www.cloudybay.com")+E}),(0,M.jsx)("meta",{property:"og:site_name",content:"Cloudy Bay"}),(0,M.jsx)("meta",{property:"og:type",content:"website"}),U.drupal.nodeById.fieldModularPageMetaTags.entity.fieldMetaOpenGraphImage&&(0,M.jsx)("meta",{property:"og:image",content:U.drupal.nodeById.fieldModularPageMetaTags.entity.fieldMetaOpenGraphImage.url})),(0,M.jsx)(r.A,{img:O?null===(e=U.drupal.nodeById.fieldNewsCoverMobile)||void 0===e?void 0:e.url:null===(i=U.drupal.nodeById.fieldNewsCover)||void 0===i?void 0:i.url,hideBackButton:"back"!==(null===(l=it[0])||void 0===l||null===(u=l.entity)||void 0===u||null===(s=u.fieldCtaBlockCta)||void 0===s?void 0:s.title),title:U.drupal.nodeById.fieldNewsTitle,introduction:U.drupal.nodeById.fieldNewsIntroduction,ctaLabel:"back"===(null===(c=it[0])||void 0===c||null===(m=c.entity)||void 0===m||null===(f=m.fieldCtaBlockCta)||void 0===f?void 0:f.title)?null===(y=it[0])||void 0===y||null===(p=y.entity)||void 0===p||null===(g=p.fieldCtaBlockCta)||void 0===g?void 0:g.title:"",cta:"back"===(null===(v=it[0])||void 0===v||null===(x=v.entity)||void 0===x||null===(h=x.fieldCtaBlockCta)||void 0===h?void 0:h.title)?null===(j=it[0])||void 0===j||null===(b=j.entity)||void 0===b||null===(w=b.fieldCtaBlockCta)||void 0===w?void 0:w.url.path:""}),it&&it.length>0&&(0,M.jsx)(_,{hideBackButton:"back"!==(null===(k=it[0].entity)||void 0===k||null===(C=k.fieldCtaBlockCta)||void 0===C?void 0:C.title),ctaLabel:"back"===(null===(S=it[0].entity)||void 0===S||null===(A=S.fieldCtaBlockCta)||void 0===A?void 0:A.title)?null===(B=it[0].entity)||void 0===B||null===(I=B.fieldCtaBlockCta)||void 0===I?void 0:I.title:"",cta:"back"===(null===(T=it[0].entity)||void 0===T||null===(z=T.fieldCtaBlockCta)||void 0===z?void 0:z.title)?null===(G=it[0].entity)||void 0===G||null===(Q=G.fieldCtaBlockCta)||void 0===Q?void 0:Q.url.path:""}),it.map(t=>{var e,i,l,n,o,a,d,u,s,c,m,f,y,p,g,v,x,h,j,b,w,k,C,S,A,B,I,T;switch(t.entity.type.targetId){case"simple_caps_section":return(0,M.jsx)(D.A,{key:t.entity.id,text:t.entity.fieldSimpleCapsSectContent});case"headline":return(0,M.jsx)(L.A,{key:t.entity.id,text:t.entity.fieldHeadlineContent,alignment:t.entity.fieldTextAlignment});case"simple_text_1_column":return(0,M.jsx)(N.A,{key:t.entity.id,text1:t.entity.fieldSimpTxt1colSectContent});case"simple_text_2_columns":return(0,M.jsx)(N.A,{key:t.entity.id,text1:t.entity.fieldSimpTxt2colTxtColumn1,text2:t.entity.fieldSimpTxt2colTxtColumn2});case"simple_image":return(0,M.jsx)(P.A,{key:t.entity.id,src:O?null===(e=t.entity.fieldSimpleImageMobile)||void 0===e?void 0:e.url:null===(i=t.entity.fieldSimpleImageDesktop)||void 0===i?void 0:i.url});case"standard_quote_with_author":return t.entity.fieldStandardQuoteAuthorImgd?(0,M.jsx)(J.A,{key:t.entity.id,img:O?null===(l=t.entity.fieldStandardQuoteAuthorImgm)||void 0===l?void 0:l.url:null===(n=t.entity.fieldStandardQuoteAuthorImgd)||void 0===n?void 0:n.url,author:t.entity.fieldStandardQuoteAuthorName,content:t.entity.fieldStandardQuoteAuthorText}):(0,M.jsx)(W.A,{key:t.entity.id,author:t.entity.fieldStandardQuoteAuthorName,quote:t.entity.fieldStandardQuoteAuthorText});case"cta_block":return"back"===(null===(o=t.entity.fieldCtaBlockCta)||void 0===o?void 0:o.title)?"":(0,M.jsx)(H.A,{key:t.entity.id,to:null===(a=t.entity.fieldCtaBlockCta)||void 0===a||null===(d=a.url)||void 0===d?void 0:d.path,label:null===(u=t.entity.fieldCtaBlockCta)||void 0===u?void 0:u.title,action:()=>{var e;"SIGN UP"===(null===(e=t.entity.fieldCtaBlockCta)||void 0===e?void 0:e.title)&&window.dataLayer.push({event:"sauvignon_sign_up"})},tracking:"SIGN UP"!==(null===(s=t.entity.fieldCtaBlockCta)||void 0===s?void 0:s.title)});case"file_linik":return(0,M.jsx)(H.A,{key:t.entity.id,to:null===(c=t.entity.fieldStandardFile)||void 0===c||null===(m=c.entity)||void 0===m?void 0:m.url,label:null===(f=t.entity.fieldStandardFile)||void 0===f?void 0:f.description,target:"_blank"});case"standard_single_video":return(0,M.jsx)(V.A,{key:t.entity.id,url:null===(y=t.entity.fieldStandardSingleVimeoLink)||void 0===y?void 0:y.uri,manifestUrl:null===(p=t.entity.fieldStandardSingleVideoMani)||void 0===p?void 0:p.uri,posterUrl:null===(g=t.entity.fieldStandardSingleVideoPost)||void 0===g?void 0:g.uri,orientation:t.entity.fieldStandardSingleVideoOrie,title:U.drupal.nodeById.fieldNewsTitle});case"hero_block":return(0,M.jsx)(r.A,{key:t.entity.id,img:O?t.entity.fieldBackgroun
1dMobile.url:t.entity.fieldBackgroundDesktop.url,hideBackButton:!0,button:(null===(v=t.entity.fieldHeroCta)||void 0===v?void 0:v.title)&&(null===(x=t.entity.fieldHeroCta)||void 0===x||null===(h=x.url)||void 0===h?void 0:h.path),title:t.entity.fieldHeroTitle,introduction:t.entity.fieldHeroDescription,ctaLabel:null===(j=t.entity.fieldHeroCta)||void 0===j?void 0:j.title,cta:null===(b=t.entity.fieldHeroCta)||void 0===b||null===(w=b.url)||void 0===w?void 0:w.path});case"card_with_image":return(0,M.jsx)(Y,{key:t.entity.id,content:t.entity.fieldStandardDescription,title:t.entity.fieldTitle,subtitle:t.entity.fieldSubtitle,src:O?null===(k=t.entity.fieldSimpleImageMobile)||void 0===k?void 0:k.url:null===(C=t.entity.fieldSimpleImageDesktop)||void 0===C?void 0:C.url,alt:O?null===(S=t.entity.fieldSimpleImageMobile)||void 0===S?void 0:S.alt:null===(A=t.entity.fieldSimpleImageDesktop)||void 0===A?void 0:A.alt,direction:t.entity.fieldCardWithImageLayout,label:null===(B=t.entity.fieldStandardCta)||void 0===B?void 0:B.title,to:null===(I=t.entity.fieldStandardCta)||void 0===I||null===(T=I.url)||void 0===T?void 0:T.path});case"product_widget":{const e=t.entity.fieldWineList.map(t=>({cat:t.entity.fieldWineProductCategoryName})),i=(U.drupal.productsQuery.entities||[]).filter(t=>e.find(e=>e.cat===t.name)).map(t=>({img:t.fieldWineCatPrimaryVintage.entity.fieldWineProdPackshotShadow.url,art:t.fieldWineCatPrimaryVintage.entity.fieldWineProductBackillustrat.url,name:t.name,price:t.fieldWineCategoryFromPrice,colorBg:t.fieldWineCatPrimaryVintage.entity.fieldWineProductBackcolor,colorCta:t.fieldWineCatPrimaryVintage.entity.fieldProductDiscoverColorCta,title:t.fieldWineCatPrimaryVintage.entity.fieldCategoryProductName,text:t.fieldWineCatPrimaryVintage.entity.fieldWineProductShortDesc,path:t.fieldWineCatPrimaryVintage.entity.path.alias}));return(0,M.jsx)(K.A,{key:t.entity.id,id:"textcercle1",title:t.entity.fieldTitle,items:i,label:t.entity.fieldStandardCta.title,to:t.entity.fieldStandardCta.url.path})}case"modular_newsletter":return(0,M.jsx)(Z,{key:t.entity.id},(0,M.jsx)($,null,t.entity.fieldNewsletterTitle),t.entity.fieldNewsletterText&&t.entity.fieldNewsletterText.length>0&&(0,M.jsx)(tt,null,t.entity.fieldNewsletterText),(0,M.jsx)(X.A,{modular:!0,source:t.entity.fieldNewsletterOrigin,type:parseFloat(t.entity.fieldNewsletterType||0),conditions:t.entity.fieldNewsletterConditions||[],confirmationText:t.entity.fieldNewsletterConfirmation||null}));case"modular_column_cards":{const e=t.entity.fieldColumnCard||[];return 3===e.length?(0,M.jsx)(et,{key:t.entity.id,className:"three-column"},e.map(t=>{var e,i,l,n,o,a;return(0,M.jsx)(Y,{key:t.entity.id,content:t.entity.fieldDescription,title:t.entity.fieldTitle,subtitle:t.entity.fieldSubtitle,src:O?null===(e=t.entity.fieldSimpleImageMobile)||void 0===e?void 0:e.url:null===(i=t.entity.fieldSimpleImageDesktop)||void 0===i?void 0:i.url,alt:O?null===(l=t.entity.fieldSimpleImageMobile)||void 0===l?void 0:l.alt:null===(n=t.entity.fieldSimpleImageDesktop)||void 0===n?void 0:n.alt,label:null===(o=t.entity.fieldStandardCta)||void 0===o?void 0:o.title,to:null===(a=t.entity.fieldStandardCta)||void 0===a?void 0:a.url.path,custom:!0})})):2===e.length?(0,M.jsx)(et,{key:t.entity.id,className:"two-column"},e.map(t=>{var e,i,l,n,o,a;return(0,M.jsx)(Y,{key:t.entity.id,content:t.entity.fieldDescription,title:t.entity.fieldTitle,subtitle:t.entity.fieldSubtitle,src:O?null===(e=t.entity.fieldSimpleImageMobile)||void 0===e?void 0:e.url:null===(i=t.entity.fieldSimpleImageDesktop)||void 0===i?void 0:i.url,alt:O?null===(l=t.entity.fieldSimpleImageMobile)||void 0===l?void 0:l.alt:null===(n=t.entity.fieldSimpleImageDesktop)||void 0===n?void 0:n.alt,label:null===(o=t.entity.fieldStandardCta)||void 0===o?void 0:o.title,to:null===(a=t.entity.fieldStandardCta)||void 0===a?void 0:a.url.path,custom:!0})})):1===e.length?(0,M.jsx)(et,{key:t.entity.id,className:"one-column"},(0,M.jsx)(Y,{content:e[0].entity.fieldDescription,title:e[0].entity.fieldTitle,subtitle:e[0].entity.fieldSubtitle,src:O?null===(_=e[0].entity.fieldSimpleImageMobile)||void 0===_?void 0:_.url:null===(z=e[0].entity.fieldSimpleImageDesktop)||void 0===z?void 0:z.url,alt:O?null===(G=e[0].entity.fieldSimpleImageMobile)||void 0===G?void 0:G.alt:null===(Q=e[0].entity.fieldSimpleImageDesktop)||void 0===Q?void 0:Q.alt,label:null===(q=e[0].entity.fieldStandardCta)||void 0===q?void 0:q.title,to:null===(R=e[0].entity.fieldStandardCta)||void 0===R?void 0:R.url.path,custom:!0})):null;var _,z,G,Q,q,R}default:return null}}))}}}]);
2//# sourceMappingURL=component---src-templates-modular-page-js-264a3a761266b0e927fd.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.