1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8979],{344:(e,t,a)=>{"use strict";a.d(t,{CatalogLeadProvider:()=>h,v:()=>p});var l=a(5494),s=a(6806),n=a(6693),i=a(7097),r=a(8659);function o(e){let{src:t,title:a,onClose:n}=e,[i,o]=(0,s.useState)(!1),[c,d]=(0,s.useState)(!1);(0,s.useEffect)(()=>o(!0),[]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n()};document.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=t}},[n]);let u=(0,l.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":a,className:"v2-theme fixed inset-0 z-[2000] flex flex-col bg-black/80",onClick:n,children:(0,l.jsxs)("div",{className:"relative mx-auto my-4 flex h-[calc(100vh-32px)] w-[min(1280px,calc(100vw-32px))] flex-col overflow-hidden rounded-lg bg-white shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between border-b border-[var(--v2-rule)] px-4 py-2",children:[(0,l.jsx)("span",{className:"text-[12px] uppercase tracking-[0.16em] text-[var(--v2-ink-mute)]",children:a}),(0,l.jsx)("button",{type:"button",onClick:n,"aria-label":"Close",className:"inline-flex h-8 w-8 items-center justify-center rounded-full text-[20px] leading-none text-[var(--v2-ink-mute)] hover:bg-[var(--v2-paper-soft)] hover:text-[var(--v2-ink)]",children:"\xd7"})]}),(0,l.jsxs)("div",{className:"relative flex-1 bg-[var(--v2-paper-soft)]",children:[!c&&(0,l.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 flex items-center justify-center text-[12px] uppercase tracking-[0.16em] text-[var(--v2-ink-mute)]",children:"Loadingâ¦"}),(0,l.jsx)("iframe",{src:t,title:a,onLoad:()=>d(!0),className:"h-full w-full border-0",allow:"clipboard-read; clipboard-write"})]})]})});return i?(0,r.createPortal)(u,document.body):null}var c=a(5450),d=a(1731),u=a(2678),v=a(7751),g=a(4570);let m=(0,s.createContext)(null);function p(){let e=(0,s.useContext)(m);if(!e)throw Error("useCatalogLead must be used inside CatalogLeadProvider");return e}function h(e){let{children:t,...a}=e,[r,p]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!1),[x,b]=(0,s.useState)(void 0),[k,w]=(0,s.useState)(!1),[y,C]=(0,s.useState)(null),[j,N]=(0,s.useState)(!1),[S,O]=(0,s.useState)({status:"loading"}),[P,T]=(0,s.useState)(!1),[U,I]=(0,s.useState)(null),[_,L]=(0,s.useState)(null),[E,F]=(0,s.use
1State)(!1),D=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(a.catalogOid)try{null!=window.localStorage.getItem(a.catalogOid)&&N(!0)}catch(e){}},[a.catalogOid]),(0,s.useEffect)(()=>{let e=!1,t=(0,v.c)(),l=async()=>{let{data:l}=await t.auth.getUser();if(e)return;if(!l.user||!l.user.email)return void O({status:"anon"});let s=l.user.email;if(!a.catalogOid)return void O({status:"signedIn",email:s,subscribed:!1});try{let t=await fetch("/api/account/catalog-status?oid=".concat(encodeURIComponent(a.catalogOid)),{cache:"no-store"}),l=await t.json();if(e)return;if(l.signedIn){var n;O({status:"signedIn",email:null!=(n=l.email)?n:s,subscribed:!!l.subscribed}),l.subscribed&&N(!0),"string"==typeof l.couponCode&&l.couponCode&&I(l.couponCode)}else O({status:"anon"})}catch(t){e||O({status:"signedIn",email:s,subscribed:!1})}};l();let s=t.auth.onAuthStateChange(()=>{l()});return()=>{e=!0,s.data.subscription.unsubscribe()}},[a.catalogOid]);let M=(0,s.useCallback)(e=>{if("reader"===e.kind)return void window.open(e.linkUrl,"_blank","noopener");a.catalogOid&&(0,d.Z5)(a.catalogOid,e.linkUrl,e.charge,{catalogTitle:a.catalogTitle,catalogClass:a.catalogClass,digital:"iframe"===e.kind}),"iframe"===e.kind?(C(e.linkUrl),(0,u.pV)({catalogTitle:a.catalogTitle,catalogOid:a.catalogOid,catalogGroup:a.catalogClass})):window.open(e.linkUrl,"_blank","noopener,nofollow")},[a.catalogOid,a.catalogTitle,a.catalogClass]),V=(0,s.useCallback)(async()=>{if("signedIn"!==S.status||!a.catalogOid)return!1;if(S.subscribed)return!0;T(!0);try{let t=await fetch("/api/account/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({catalogOid:a.catalogOid,catalogTitle:a.catalogTitle,sourceUrl:a.pagePath})}),l=await t.json();if(!l.ok)return!1;N(!0),O({status:"signedIn",email:S.email,subscribed:!0}),"string"==typeof l.couponCode&&l.couponCode&&I(l.couponCode);try{a.catalogOid&&window.localStorage.setItem(a.catalogOid,"allowed")}catch(e){}if(!l.alreadySubscribed){var e;(0,u.lc)({catalogTitle:a.catalogTitle,catalogOid:a.catalogOid,catalogGroup:a.catalogClass,charge:0===a.status?Number(null!=(e=a.leadCharge)?e:0):0,digital:"email-only"===a.leadVariant})}return!0}catch(e){return!1}finally{T(!1)}},[S,a.catalogOid,a.catalogTitle,a.pagePath,a.leadVariant]),q=(0,s.useCallback)(e=>{var t,l;if(j&&(null==e?void 0:e.followUp))return void M(e.followUp);if("signedIn"===S.status){let a=null!=(t=null==e?void 0:e.followUp)?t:null;if(S.subscribed){a&&M(a);return}L(a),F(!0);return}D.current=null!=(l=null==e?void 0:e.followUp)?l:null,f(!!(null==e?void 0:e.allowSkip)&&(0,g.dF)(a.catalogOid)>=1),b(null==e?void 0:e.surface),(null==e?void 0:e.surface)&&(0,u.kJ)({surface:e.surface,action:"shown"}),p(!0)},[j,M,S,a.catalogOid]),B=(0,s.useCallback)(e=>{var t;let l=null!=(t=null==e?void 0:e.followUp)?t:null;if("signedIn"===S.status){l&&M(l);return}if(j&&l)return void M(l);D.current=l,f(!!(null==e?void 0:e.allowSkip)&&(0,g.dF)(a.catalogOid)>=1),b(null==e?void 0:e.surface),(null==e?void 0:e.surface)&&(0,u.kJ)({surface:e.surface,action:"shown"}),p(!0)},[j,M,S.status,a.catalogOid]),G=(0,s.useCallback)(()=>w(!0),[]),J=(0,s.useCallback)(e=>C(e),[]),W=(0,s.useCallback)(e=>{if(a.catalogOid)try{window.localStorage.setItem(a.catalogOid,"allowed")}catch(e){}N(!0),(0,g.Cq)(),e&&I(e);let t=D.current;D.current=null,t&&(p(!1),M(t))},[a.catalogOid,M]),A=(0,s.useMemo)(()=>({catalog:a,isSubscribed:j,auth:S,revealedCode:U,openLeadModal:q,openCoverView:B,openNewsletterModal:G,openIframe:J,subscribeAsAccount:V,subscribing:P}),[a,j,S,U,q,B,G,J,V,P]),H="link-only"===a.leadVariant?"email-only":a.leadVariant;return(0,l.jsxs)(m.Provider,{value:A,children:[t,r&&(0,l.jsx)(n.z,{catalogId:a.catalogId,catalogOid:a.catalogOid,catalogTitle:a.catalogTitle,catalogClass:a.catalogClass,catalogStatus:a.status,leadCharge:a.leadCharge,requirePhone:!!a.requirePhone,collectFullAddress:!!a.collectFullAddress,returnTo:a.pagePath,variant:H,surface:x,onClose:()=>{D.current=null,f(!1),p(!1),x&&(0,u.kJ)({surface:x,action:"dismissed"})},onSubmitSuccess:W,onSkip:h?()=>{let e=D.current;D.current=null,f(!1),p(!1),(0,u.kJ)({surface:null!=x?x:"gate",action:"skipped"}),e&&M(e)}:void 0}
1),k&&(0,l.jsx)(i.F,{onClose:()=>w(!1)}),y&&(0,l.jsx)(o,{src:y,title:a.catalogTitle,onClose:()=>C(null)}),E&&a.catalogOid&&(0,l.jsx)(c.o,{catalogOid:a.catalogOid,catalogTitle:a.catalogTitle,sourceUrl:a.pagePath,onClose:()=>{F(!1),L(null)},onSubscribed:e=>{N(!0),(0,g.Cq)(),O(e=>"signedIn"===e.status?{...e,subscribed:!0}:e);try{a.catalogOid&&window.localStorage.setItem(a.catalogOid,"allowed")}catch(e){}e&&I(e),L(null),F(!1),_&&M(_)}})]})}},757:(e,t,a)=>{"use strict";a.d(t,{CatalogCover:()=>o});var l=a(5494),s=a(2442),n=a(415),i=a(344),r=a(1731);function o(e){let{cover:t,catalogTitle:a,isLinkOnly:o,isDigital:c,linkUrl:d,catalogOid:u,linkCharge:v,trackingCode:g,offerBurst:m,caption:p}=e,{openCoverView:h}=(0,i.v)();return(0,l.jsxs)("button",{type:"button",onClick:()=>{if(o&&d)return void h({surface:"cover",followUp:{kind:c?"iframe":"newtab",linkUrl:(0,r.P5)(d,g),charge:null!=v?v:null}});h({surface:"cover"})},className:"v2-cover block w-full cursor-pointer text-left","aria-label":o&&d?"Visit ".concat(a):"Request the ".concat(a," catalog"),children:[(0,l.jsxs)("div",{className:"v2-cover-plate",children:[t?(0,l.jsx)(s.default,{src:t,alt:"".concat(a," catalog cover"),fill:!0,sizes:"(max-width: 1024px) 80vw, 360px",priority:!0,className:"object-cover"}):(0,l.jsx)("div",{className:"flex h-full w-full items-center justify-center text-[12px] text-[var(--v2-paper-soft)]",children:"No image"}),m&&(0,l.jsx)("span",{className:"absolute right-3 top-3 v2-stamp",children:(0,n.s)(m)})]}),p&&(0,l.jsxs)("div",{className:"v2-cover-caption",children:[(0,l.jsx)("div",{className:"v2-cover-caption-title",children:p.title}),p.subtitle&&(0,l.jsx)("div",{className:"v2-cover-caption-sub",children:p.subtitle})]})]})}},1731:(e,t,a)=>{"use strict";a.d(t,{P5:()=>i,V2CatalogButtons:()=>c,Z5:()=>o});var l=a(5494),s=a(344),n=a(2678);function i(e,t){if(!t)return e;let a=t.replace(/^[?&]/,"");return a?e+(e.includes("?")?"&":"?")+a:e}function r(e,t,a){let l=!!a&&/[=&]/.test(a),s=["utm_source=catalogs.com","utm_medium=referral"];if(!l){let e=(a||t||"").trim();e&&s.push("utm_campaign=".concat(encodeURIComponent(e)))}let n=e+(e.includes("?")?"&":"?")+s.join("&");return l&&(n=i(n,a)),n}function o(e,t,a){var l;let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=JSON.stringify({catalogOid:e,charge:null!=a?a:0,link:t});try{"undefined"!=typeof navigator&&navigator.sendBeacon?navigator.sendBeacon("/api/linkout",new Blob([i],{type:"application/json"})):fetch("/api/linkout",{method:"POST",headers:{"Content-Type":"application/json"},body:i,keepalive:!0})}catch(e){}(0,n.H$)({catalogTitle:null!=(l=s.catalogTitle)?l:null,catalogOid:e,catalogGroup:s.catalogClass,linkCharge:a,digital:s.digital})}function c(e){var t,a,c,d,u;let{catalog:v,catalogOid:g,linkCharge:m}=e,{openLeadModal:p,openCoverView:h,openIframe:f,auth:x,subscribing:b}=(0,s.v)(),k=null!=(t=v.status)?t:0,w="signedIn"===x.status&&x.subscribed;if(5===k)return(0,l.jsxs)("div",{className:"v2-paper-card p-5 text-[14px] text-[var(--v2-ink-soft)]",children:[(0,l.jsx)("strong",{className:"text-[var(--v2-ink)]",children:"Out of Stock."})," ","We no longer carry the ",v.title," catalog â browse similar stores below."]});let{label:y,show:C}=(a=v.catalogClass)?a.includes("Savings Certificate only")||a.includes("Savings Certificate : name and email only")?{label:"Savings Offer",show:!0}:a.includes("Newsletter Signup: name and email only")||a.includes("Newsletter Signup")?{label:"Subscribe To Newsletter",show:!0}:a.includes("Link only (visit button)")?{label:"",show:!1}:a.includes("e-catalog: name and email only")?{label:"Get Digital Catalog",show:!0}:a.includes("e-catalog: with Savings Certificate")?{label:"Digital Coupon & Offer",show:!0}:a.includes("Catalog request and Savings Certificate")?{label:"Free Catalog & Offer",show:!0}:a.includes("Catalog request and e-catalog")?{label:"Get Digital Catalog",show:!0}:a.includes("Catalog request only")?{label:"Get catalog",show:!0}:a.includes("Brochure only")?{label:"Order Brochure",show:!0}:{label:"Order Free Catalog",show:!0}:{label:"Order Free Catalog",show:!1},j=!!v.active&&(0===k||3===k)&&C,N=!!v.active&&(0===k||3===k)&&"signedIn"===x.status,S=j||N,O=0===k&&(v.blurb||v.heading)||y,P=!!((c={isDigital:v.isDigital,catalogClass:v.catalogClass,linkUrl:v.linkUrl}).isDigital&&(null==(d=c.catalogClass)?void 0:d.includes("e-cat"))||(null==(u=c.linkUrl)?void 0:u.includes(".catalogs"))),T=v.heading||(P?"View Catalog":"Shop Now");return(0,l.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:flex-wrap",children:[S&&w&&(0,l.jsxs)("button",{type:"button","aria-disabled":"true",disabled:!0,className:"v2-btn v2-btn-paper",style:{opacity:.7,cursor:"default",color:"var(--v2-ink-soft)"},title:"Already on your Catalogs.com library shelf",children:[(0,l.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,
1children:(0,l.jsx)("path",{d:"M5 12l4 4 10-10"})}),"Subscribed"]}),S&&!w&&(0,l.jsxs)("a",{href:"#order-form",onClick:e=>{e.preventDefault(),p({surface:"cta"})},className:"v2-btn v2-btn-stamp","aria-busy":b||void 0,style:b?{opacity:.85,cursor:"progress"}:void 0,children:[b?"Addingâ¦":"signedIn"===x.status?"Subscribe to ".concat(v.title):O,(0,l.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,l.jsx)("path",{d:"M5 12h14M13 5l7 7-7 7"})})]}),v.linkUrl&&(0,l.jsx)("a",{href:2===k?"#similar-stores":i(v.linkUrl,v.trackingCode),target:2===k?void 0:"_blank",rel:2===k?void 0:"noopener nofollow",className:"v2-btn v2-btn-ghost",onClick:e=>{if(2===k){var t;e.preventDefault(),null==(t=document.getElementById("similar-stores"))||t.scrollIntoView({behavior:"smooth",block:"start"});return}let a=i(v.linkUrl,v.trackingCode);if(0===k||3===k||5===k){e.preventDefault(),p({allowSkip:!0,surface:"gate-linkout",followUp:{kind:P?"iframe":"newtab",linkUrl:a,charge:null!=m?m:0}});return}if("signedIn"!==x.status){e.preventDefault(),h({allowSkip:!0,surface:"gate-view",followUp:{kind:P?"iframe":"newtab",linkUrl:a,charge:null!=m?m:0}});return}g&&o(g,a,null!=m?m:null,{catalogTitle:v.title,catalogClass:v.catalogClass,digital:P}),P&&(e.preventDefault(),f(a),(0,n.pV)({catalogTitle:v.title,catalogOid:g,catalogGroup:v.catalogClass}))},children:T}),1===k&&P&&v.homePageUrl&&(0,l.jsx)("a",{href:r(v.homePageUrl,v.slug,v.trackingCode),target:"_blank",rel:"noopener nofollow",className:"v2-btn v2-btn-ghost",onClick:e=>{let t=r(v.homePageUrl,v.slug,v.trackingCode);if("signedIn"===x.status){g&&o(g,t,null!=m?m:null,{catalogTitle:v.title,catalogClass:v.catalogClass,digital:P});return}e.preventDefault(),p({allowSkip:!0,surface:"gate-brand",followUp:{kind:"newtab",linkUrl:t,charge:null!=m?m:0}})},children:"Visit Brand Website"})]})}},3759:(e,t,a)=>{"use strict";a.d(t,{CatalogNewsletterCard:()=>n});var l=a(5494),s=a(344);function n(){let{openNewsletterModal:e}=(0,s.v)();return(0,l.jsxs)("button",{type:"button",onClick:e,"aria-label":"Subscribe to the newsletter",className:"v2-paper-card block w-full p-6 text-left transition-shadow hover:shadow-[0_4px_18px_rgba(0,0,0,0.08)]",children:[(0,l.jsx)("div",{className:"v2-eyebrow",children:"The Mailing List"}),(0,l.jsxs)("div",{className:"mt-2 v2-display text-[28px] leading-tight",children:["The week's ",(0,l.jsx)("em",{children:"catalogs"}),"."]}),(0,l.jsx)("p",{className:"mt-3 text-[13px] text-[var(--v2-ink-soft)]",children:"Hand-picked print and digital drops, every Sunday. No spam."}),(0,l.jsxs)("div",{className:"mt-4 inline-flex items-center gap-2 text-[12px] uppercase tracking-[0.16em] text-[var(--v2-ink)]",children:[(0,l.jsx)("span",{className:"underline decoration-[var(--v2-stamp)] underline-offset-[5px]",children:"Subscribe"}),(0,l.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,l.jsx)("path",{d:"M5 12h14M13 5l7 7-7 7"})})]})]})}},3772:(e,t,a)=>{"use strict";a.d(t,{CatalogOfferPanel:()=>n});var l=a(5494),s=a(344);function n(e){let{offer:t,expiryFormatted:a}=e,{isSubscribed:n,openLeadModal:i,revealedCode:r}=(0,s.v)(),o=r||t.code||null;return n?(0,l.jsxs)("aside",{"aria-label":"Special offer",className:"v2-paper-card p-6",children:[(0,l.jsx)("div",{className:"v2-eyebrow",children:"Special offer"}),t.burst&&(0,l.jsx)("div",{className:"mt-2 v2-display cms-content text-[40px] leading-none text-[var(--v2-stamp)]",dangerouslySetInnerHTML:{__html:t.burst}}),t.value&&t.value!==t.burst&&(0,l.jsx)("div",{className:"mt-2 cms-content text-[15px] text-[var(--v2-ink-soft)]",dangerouslySetInnerHTML:{__html:t.value}}),o&&(0,l.jsxs)("div",{className:"mt-3 text-[13px] text-[var(--v2-ink-soft)]",children:["Coupon code:"," ",(0,l.jsx)("span",{className:"font-mono font-bold text-[var(--v2-ink)]",children:o})]}),a&&(0,l.jsxs)("div",{className:"mt-2 v2-meta",children:["Expires ",a]}),t.disclaimer&&(0,l.jsx)("div",{className:"mt-3 v2-meta cms-content leading-snug",dangerouslySetInnerHTML:{__html:t.disclaimer}})]}):(0,l.jsxs)("button",{type:"button",onClick:()=>i(),"aria-label":"Unlock this special offer",className:"v2-paper-card block w-full p-6 text-left transition-shadow hover:shadow-[0_4px_18px_rgba(0,0,0,0.08)]",children:[(0,l.jsx)("div",{className:"v2-eyebrow",children:"Special offer"}
1),(0,l.jsx)("div",{"aria-hidden":!0,className:"mt-2 v2-display cms-content text-[40px] leading-none text-[var(--v2-stamp)] select-none [filter:blur(6px)]",dangerouslySetInnerHTML:{__html:t.burst||"â¢â¢â¢â¢ off"}}),(0,l.jsxs)("div",{className:"mt-3 inline-flex items-center gap-2 text-[12px] uppercase tracking-[0.16em] text-[var(--v2-ink)]",children:[(0,l.jsx)("span",{className:"underline decoration-[var(--v2-stamp)] underline-offset-[5px]",children:"Tap to unlock"}),(0,l.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,l.jsx)("path",{d:"M5 12h14M13 5l7 7-7 7"})})]}),(0,l.jsx)("div",{className:"mt-2 text-[12px] text-[var(--v2-ink-mute)]",children:"Quick form, no credit card."})]})}},7097:(e,t,a)=>{"use strict";a.d(t,{F:()=>d});var l=a(5494),s=a(6806),n=a(8659),i=a(2678),r=a(997),o=a(9286),c=a(4570);function d(e){let{defaultEmail:t="",source:a="modal",onClose:d}=e,[v,g]=(0,s.useState)(!1),[m,p]=(0,s.useState)(!1),[h,f]=(0,s.useState)("idle"),[x,b]=(0,s.useState)(!1),[k,w]=(0,s.useState)(null);(0,s.useEffect)(()=>g(!0),[]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&d()};document.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=t}},[d]);let y=async e=>{if(e.preventDefault(),m)return;p(!0),f("idle"),w(null);let t=e.currentTarget,l=new FormData(t),s={};for(let[e,t]of l.entries())s[e]=String(t);s.featuredPage=window.location.href,s.sessionOid=(0,r.p)(),s.surface=a;let n=(0,o.gz)();n&&(s.attribution=JSON.stringify(n));try{let e=await fetch("/api/lead",{method:"POST",headers:{"Content-Type":"application/json","x-requested-with":"fetch"},body:JSON.stringify(s)}),l=await e.json();e.ok&&l.ok?(b(!!l.needsConfirmation),f("success"),t.reset(),(0,c.Cq)(),(0,i.N1)(a)):(f("error"),w(l.error||"Could not save your request."))}catch(e){f("error"),w("Network error. Please try again.")}finally{p(!1)}},C=(0,l.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":"Subscribe to the Catalogs.com newsletter",className:"v2-theme fixed inset-0 z-[2000] flex items-start justify-center overflow-y-auto bg-black/50 p-4 sm:items-center",onClick:d,children:(0,l.jsxs)("div",{className:"relative w-full max-w-[480px] rounded-[6px] bg-[var(--v2-paper)] p-8 shadow-xl",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("button",{type:"button","aria-label":"Close",onClick:d,className:"absolute right-4 top-4 inline-flex h-8 w-8 items-center justify-center rounded-full text-[20px] leading-none text-[var(--v2-ink-mute)] hover:bg-[var(--v2-paper-soft)] hover:text-[var(--v2-ink)]",children:"\xd7"}),"success"===h?(0,l.jsxs)("div",{className:"py-6 text-center",children:[(0,l.jsx)("span",{className:"v2-eyebrow",children:x?"One more step":"You're in"}),(0,l.jsx)("h2",{className:"v2-display mt-3 text-[32px]",children:x?(0,l.jsxs)(l.Fragment,{children:["Check your ",(0,l.jsx)("em",{children:"inbox"}),"."]}):(0,l.jsxs)(l.Fragment,{children:["See you ",(0,l.jsx)("em",{children:"Sunday"}),"."]})}),(0,l.jsx)("p",{className:"mt-4 text-[14px] text-[var(--v2-ink-soft)]",children:x?"We just sent you a confirmation link. Click it and the week's catalog drops start landing every Sunday.":"The week's catalog drops land in your inbox every Sunday."}),(0,l.jsx)("button",{type:"button",onClick:d,className:"mt-6 text-[12px] uppercase tracking-[0.16em] text-[var(--v2-ink-mute)] hover:text-[var(--v2-ink)]",children:"Close"})]}):(0,l.jsxs)("form",{onSubmit:y,noValidate:!0,children:[(0,l.jsx)("span",{className:"v2-eyebrow",children:"The Mailing List"}),(0,l.jsxs)("h2",{className:"v2-display mt-3 text-[32px]",children:["The week's ",(0,l.jsx)("em",{children:"catalogs"}),"."]}),(0,l.jsx)("p",{className:"mt-3 text-[13px] text-[var(--v2-ink-soft)]",children:"Print and digital picks, special offers, no spam. Unsubscribe in one click."}),(0,l.jsx)("input",{type:"text",name:"company_url",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute left-[-9999px] h-px w-px opacity-0"}),(0,l.jsxs)("div",{className:"mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,l.jsx)(u,{label:"First name",name:"firstName",autoComplete:"given-name"}),(0,l.jsx)(u,{label:"Last name",name:"lastName",autoComplete:"family-name"})]}),(0,l.jsx)("div",{className:"mt-3",children:(0,l.jsx)(u,{label:"Email",n
1ame:"email",type:"email",required:!0,autoComplete:"email",defaultValue:t,autoFocus:!t})}),"error"===h&&k&&(0,l.jsx)("p",{className:"mt-3 text-[13px] text-[var(--v2-stamp)]",children:k}),(0,l.jsx)("button",{type:"submit",disabled:m,className:"mt-6 inline-flex w-full items-center justify-center rounded-full bg-[var(--v2-ink)] px-6 py-3 text-[12px] uppercase tracking-[0.16em] text-[var(--v2-paper)] transition-colors hover:bg-[var(--v2-stamp-ink)] disabled:opacity-60",children:m?"Subscribingâ¦":"Subscribe"})]})]})});return v?(0,n.createPortal)(C,document.body):null}function u(e){let{label:t,name:a,type:s="text",required:n,autoComplete:i,defaultValue:r,autoFocus:o}=e;return(0,l.jsxs)("label",{className:"flex flex-col gap-1 text-[12px] uppercase tracking-[0.14em] text-[var(--v2-ink-mute)]",children:[(0,l.jsxs)("span",{children:[t,n?" *":""]}),(0,l.jsx)("input",{name:a,type:s,required:n,autoComplete:i,defaultValue:r,autoFocus:o,className:"h-11 rounded-md border border-[var(--v2-rule)] bg-white px-3 text-[14px] normal-case tracking-normal text-[var(--v2-ink)] outline-none focus:border-[var(--v2-ink)]"})]})}},7103:(e,t,a)=>{"use strict";a.d(t,{EmbedGate:()=>n});var l=a(5494),s=a(344);function n(e){let{children:t}=e,{openCoverView:a,isSubscribed:n,auth:i}=(0,s.v)();return(0,l.jsx)("div",{className:"contents",onClickCapture:e=>{var t;let l=e.target,s=null==l||null==(t=l.closest)?void 0:t.call(l,'a[aria-label="Open full catalog viewer"]');if(!s||"signedIn"===i.status||n)return;let r=s.getAttribute("href");r&&(e.preventDefault(),a({allowSkip:!0,surface:"gate-embed",followUp:{kind:"reader",linkUrl:r,charge:null}}))},children:t})}},8979:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,1462,23)),Promise.resolve().then(a.t.bind(a,8667,23)),Promise.resolve().then(a.t.bind(a,951,23)),Promise.resolve().then(a.bind(a,9260)),Promise.resolve().then(a.bind(a,1731)),Promise.resolve().then(a.bind(a,757)),Promise.resolve().then(a.bind(a,344)),Promise.resolve().then(a.bind(a,3759)),Promise.resolve().then(a.bind(a,3772)),Promise.resolve().then(a.bind(a,7103)),Promise.resolve().then(a.bind(a,9538)),Promise.resolve().then(a.bind(a,1930)),Promise.resolve().then(a.bind(a,9581)),Promise.resolve().then(a.bind(a,9682)),Promise.resolve().then(a.bind(a,6333)),Promise.resolve().then(a.bind(a,2034)),Promise.resolve().then(a.bind(a,3636)),Promise.resolve().then(a.bind(a,1933)),Promise.resolve().then(a.bind(a,7360))},9538:(e,t,a)=>{"use strict";a.d(t,{PaidLeadBody:()=>r,PaidLeadTitle:()=>i});var l=a(5494),s=a(344);function n(){let{isSubscribed:e,auth:t}=(0,s.v)();return e||"signedIn"===t.status&&t.subscribed}function i(e){let{children:t}=e;return n()?(0,l.jsx)(l.Fragment,{children:t}):null}function r(e){let{paid:t,embed:a}=e,s=n();return(0,l.jsx)(l.Fragment,{children:s?a:t})}}}]);
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.