1import{_ as U,c as W,u as B,e as M,t as R}from"#entry";import{_ as j}from"./DBxEMJfC.js";import{_ as z}from"./DZ0vGumW.js";import{_ as G}from"./BT4JlXLF.js";import{$ as k,a0 as J}from"./D4p6DYXH.js";import{_ as Y}from"./C40WXv1F.js";import{x as q,ai as K,ab as Q,ac as r,_ as d,$ as e,a6 as c,F as o,a4 as n,A as g,a3 as X,aj as Z,ak as tt,d as et,ad as p,b as x,l as f}from"./DpF1vKI6.js";import{u as st}from"./YL7qapiE.js";import{u as ot}from"./CjcJEY_9.js";import{u as nt}from"./D1hZJkyL.js";import{u as it}from"./hTnJp9lv.js";import"./BQiGhlJx.js";import"./CylagMfw.js";import"./Dl_knwiv.js";import"./t02Vjg29.js";const lt=k("/img/newsletter/mockup-desktop.jpg"),at=k("/img/newsletter/mockup-mobile.jpg"),rt=lt,dt={class:"w-screen min-h-[100svh] lg:h-screen flex flex-col items-center justify-center bg-[#aab52b] sticky top-0"},pt={class:"font-body text-[44px] leading-[46px] lg:text-[118px] lg:leading-[120px] text-white text-center font-normal tracking-[-0.051em] [font-feature-settings:'liga'_off]"},xt=["innerHTML"],mt={class:"lg:hidden min-h-[54px] container flex items-center justify-center bg-white absolute bottom-0 left-0 w-full",style:{"padding-bottom":"constant(safe-area-inset-bottom)"}},ut={class:"bg-white sticky top-0 pt-[60px] lg:pt-20"},ct={class:"max-w-[950px] mx-auto max-lg:container"},gt={class:"mt-[60px] lg:mt-20"},ft={class:"mt-[60px] lg:mt-40 max-w-[760px] mx-auto"},_t={class:"mt-8 lg:mt-10 grid grid-cols-1 lg:grid-cols-2 gap-y-8 gap-x-5 lg:gap-y-10 lg:gap-x-7"},ht={class:"font-body text-[12px] leading-[16px] lg:text-[15px] lg:leading-[20px] text-gray"},wt={class:"font-body text-[15px] leading-[22px] lg:text-[15px] lg:leading-[20px]"},bt={class:"mt-[60px] lg:mt-40 border-t border-lightgray flex flex-col items-center max-lg:container"},vt={key:0,class:"mt-11 lg:mt-[60px] lg:w-[563px] mx-auto"},yt={key:1,class:"mt-12 lg:mt-[68px] lg:w-[563px] mx-auto"},kt={class:"my-6 font-body text-[12px] leading-[16px] text-center"},Wt=q({__name:"newsletter",async setup(St){let _,h;const{DOCUMENTS:w,API:S}=B(),i=x(!1),l=x(""),m=x(!1),u=x(!1),T=f(()=>!!l.value),b=st(),E=async()=>{if(u.value){b.error("You have already subscribed");return}m.value=!0,(await M(S.subscribeMailing(),{method:"POST",credentials:"include",body:JSON.stringify({email:l.value})}))?.success?(u.value=!0,R("newsletter_submit",{form_name:"newsletter",form_location:"page"})):b.error("Invalid email"),m.value=!1},A=[{title:"Audience",main:">5K",sub:"Total Subscribers"},{title:"Content",main:"100%",sub:"Editorially Curated"},{title:"Special",main:"52",sub:"Issues per year"}],N=[{title:"Real Wedding Features",text:"Our favourite real wedding articles of the week â intimate stories and editorial details from celebrations around the world."},{title:"Style & Trend Reads",text:"The most-read style and beauty pieces from the magazine â bridal fashion, florals, and what's shaping the season."},{title:"Vendor Spotlights",text:"Standout vendor profiles and features we published this week â photographers, florists, planners and beyond."},{title:"Destinations & Honeymoons",text:"The week's top destination reads â venues, guides, and honeymoon escapes handpicked from our editorial team."},{title:"Planning & Advice",text:"Checklists, expert tips, and planning guides â the most useful articles published across the magazine this week."}],{resolveAndSetSeo:C}=ot();[_,h]=K(()=>C({title:"Newsletter",description:"Subscribe to THEÂ WED newsletter and stay up to date with the latest trends, weddings, and inspirations."})),await _,h();const v=nt(),H=f(()=>v.h1||"Newsletter"),P=f(()=>v.h2||"Get inspired every week"),{linkify:D}=it();return(I,t)=>{const a=W,F=j,V=z,$=G,y=J,L=Y,O=U;return d(),Q(O,{name:"main","header-without-filling-block":"","header-background-class":"bg-white"},{default:r(()=>[e("div",null,[e("div",dt,[e("h1",pt,c(o(H)),1),e("h2",{class:"max-w-[1360px] font-heading font-light text-[44px] leading-[46px] lg:text-[120px] lg:leading-[120px] text-white text-center tracking-[-0.042em] [font-feature-settings:'liga'_off]",innerHTML:o(D)(o(P))},null,8,xt),n(a,{text:"Subscribe",class:"max-lg:hidden mt-6 w-[164px] h-[46px]",onClick:t[0]||(t[0]=s=>i.value=!0)}),e("div",mt,[n(a,{text:"Subscribe",class:"w-full h-[30px]",onClick:t[1]||(t[1]=s=>i.value=!0)})])]),e("div",ut,[e("div",ct,[t[6]||(t[6]=e("div",{class:"font-heading font-light text-[24px] leading-[28px] lg:text-[32px] lg:leading-[40px] text-center"}," Each week we hand-pick the best from THEÂ WED â the articles, real weddings, vendor discoveries, and destination stories our editors loved most. One curated email, delivered straight to your inbox. ",-1)),e("div",gt,[n(F,{infoBlocks:A})]),e("div",ft,[t[5]||(t[5]=e("h2",{class:"font-heading text-[24px] leading-[28px] lg:text-[32px] lg:leading-[40px] text-center"}," What's inside ",-1)),e("div",_t,[(d(),g(X,null,Z(N,s=>e("div",{key:s.title},[e("div",ht,c(s.title),1),n(V,{class:"my-3 lg:my-4"}),e("div",wt,c(s.text),1)])),64))])])]),e("div",bt,[t[7]||(t[7]=e("h2",{class:"mt-5 lg:mt-10 font-body text-[29px] leading-[32px] lg:text-[72px] lg:leading-[76px] text-center text-[#F69D50] tracking-[-1px] lg:tracking-[-3px]"}," Join Our Newsletter ",-1)),n(a,{text:"Subscribe",class:"mt-6 lg:mt-10 mx-auto w-full lg:w-[164px] h-[30px] lg:h-[46px]",onClick:t[2]||(t[2]=s=>i.value=!0)})]),t[8]||(t[8]=e("picture",{class:"mt-6 lg:mt-10 max-w-[564px] mx-auto block w-full max-lg:container"},[e("source",{media:"(min-width: 1024px)",srcset:rt,width:"1128",height:"800"}),e("img",{src:at,alt:"THE\\u00A0WED",width:"670",height:"488",class:"w-full aspect-[670/488] lg:aspect-[564/400]"})],-1))])]),n(L,{title:"Newsletter",showPopup:o(i),width:"w-full lg:w-[817px]","onUpdate:showPopup":t[4]||(t[4]=s=>i.value=s)},{default:r(()=>[o(u)?(d(),g("div",vt,[...t[9]||(t[9]=[e("div",{class:"font-heading text-[24px] leading-[28px] lg:text-[32px] lg:leading-[40px] text-center"}
1," Thank you! ",-1),e("div",{class:"mt-8 lg:mt-10 font-body text-[15px] leading-[22px] lg:text-[19px] lg:leading-[28px] max-lg:container text-center"}," You're subscribed! Check your inbox for the latest from THE\\u00A0WED. ",-1)])])):(d(),g("div",yt,[t[14]||(t[14]=e("div",{class:"font-heading text-[24px] leading-[28px] lg:text-[32px] lg:leading-[40px] text-center"}," Get inspired every week ",-1)),e("form",{class:"mt-8 lg:mt-10 flex flex-col gap-8 lg:gap-10 max-lg:container",onSubmit:tt(E,["prevent"])},[n($,{id:"email",placeholder:"Email *","show-label-on-input":"",modelValue:o(l),"onUpdate:modelValue":t[3]||(t[3]=s=>et(l)?l.value=s:null),type:"email",required:""},null,8,["modelValue"]),n(a,{text:"Subscribe",inactive:!o(T)||o(m),class:"mt-2 w-full"},null,8,["inactive"])],32),e("div",kt,[t[12]||(t[12]=p(" I agree with the ",-1)),n(y,{to:o(w).privacyPolicy(),target:"_blank",rel:"noopener noreferrer",class:"underline"},{default:r(()=>[...t[10]||(t[10]=[p(" Privacy Policy ",-1)])]),_:1},8,["to"]),t[13]||(t[13]=p(" and ",-1)),n(y,{to:o(w).termsOfUse(),target:"_blank",rel:"noopener noreferrer",class:"underline"},{default:r(()=>[...t[11]||(t[11]=[p(" Terms of Use ",-1)])]),_:1},8,["to"])])]))]),_:1},8,["showPopup"])]),_:1})}}});
1export{Wt as default};
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.