PageSourceSearch

https://ssr-releases-cdn.paperlesspost.com/_next/static/chunks/pages/index-22a3af5040e73e59.js

js paperlesspost.com collected 2026-09-24 15:25:48 UTC 179,755 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[509,2370,3332,6220,7332,8552],{6665:e=>{e.exports={datePicker:"DatePicker_datePicker__Q3gcZ",label:"DatePicker_label__AVXGH",trigger:"DatePicker_trigger__K2mNS",value:"DatePicker_value__vazNE",placeholder:"DatePicker_placeholder__EumlZ",popover:"DatePicker_popover__j6jNs"}},15340:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a="https://ssr-releases-cdn.paperlesspost.com/_next/static/video/PaperSourceLogo-4bc7f01f80ef463f4add69419725503beabf990640446da6bf554f7d52638450.png"},16760:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(64698)}])},18193:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(88856),r=n(7584),i=n(37876);let l=function(e){var t=e.className,n=e.height,l=e.strokeColor,o=void 0===l?r.A.black:l,s=e.width;return(0,i.jsx)(a.A,{className:t,height:void 0===n?"1.5rem":n,title:"edit",viewBox:"0 0 24 24",width:void 0===s?"1.5rem":s,children:(0,i.jsx)("path",{d:"m9.7 17.8-3.5-3.5 8-8 3.5 3.5-8 8ZM5 19l.7-3.8 3.1 3.1L5 19ZM18.3 5.7c1 1 1 2.5 0 3.5l-3.5-3.5c1-1 2.6-1 3.5 0Zm.7 4.1A3.5 3.5 0 0 0 19 5a3.4 3.4 0 0 0-4.8 0l-9 9-.2.2-1 5.2c0 .3.2.6.6.6l5.1-1h.3l9-9.2Z",fill:o})})}},20517:e=>{e.exports={calendar:"Calendar_calendar__c9_cO",header:"Calendar_header__YqM_y",heading:"Calendar_heading__uXluN",navButton:"Calendar_navButton__QTrX1",row:"Calendar_row__ycvP1",cell:"Calendar_cell__daGwF",weekday:"Calendar_weekday__YdRCJ",day:"Calendar_day__34IZw",disabled:"Calendar_disabled__cg7Zs",past:"Calendar_past__xFpDj",selected:"Calendar_selected__fPNQT"}},30509:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var a=n(42969),r=n(59860),i=n(37876),l=["title"];function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let c=function(e){var t=e.title,n=(0,r.A)(e,l);return(0,i.jsxs)("svg",s(s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},n),{},{children:[t&&(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{fill:"currentColor",d:"M3.5 2h17c.28 0 .5.22.5.5s-.22.5-.5.5h-17c-.28 0-.5-.22-.5-.5s.22-.5.5-.5m3.02 9.98c.2.2.51.2.71 0l4.27-4.27V21.5c0 .28.22.5.5.5s.5-.22.5-.5V7.71l4.27 4.27c.2.2.51.2.71 0s.2-.51 0-.71l-5.13-5.13a.5.5 0 0 0-.35-.15.5.5 0 0 0-.35.15l-5.13 5.13c-.2.2-.2.51 0 .71"})]}))}},32281:e=>{e.exports={select:"Select_select__ef7UD",label:"Select_label__KiDkP",control:"Select_control__gxUXw",trigger:"Select_trigger__76RUT",sizer:"Select_sizer__M3J8t",sizerOption:"Select_sizerOption__1c1yI",sizerCaret:"Select_sizerCaret__om_JA","trigger-selected":"Select_trigger-selected__eWBrp","trigger-selected-closed":"Select_trigger-selected-closed__6XuXC",value:"Select_value__azNFf","value-right":"Select_value-right__8C4CB",placeholder:"Select_placeholder__S025E",caret:"Select_caret__FdwiD",listbox:"Select_listbox__xTsJo",listboxAbove:"Select_listboxAbove__9oz5J",listboxRight:"Select_listboxRight__s7qov",option:"Select_option__9wQx9","option-disabled":"Select_option-disabled__EPBWO","option-selected":"Select_option-selected__RhbCD","option-focused":"Select_option-focused__m_cRw"}},34618:e=>{e.exports={uyoGradient:"HomepageSinglePromoBanner_uyoGradient__ThGbw"}},35501:e=>{e.exports={overlay:"CreateReminderModal_overlay__AxJfV"}},63126:e=>{e.exports={destinationAdd:"DestinationField_destinationAdd__4Zqeb",destinationSelect:"DestinationField_destinationSelect__MTF9M",destinationInput:"DestinationField_destinationInput__WaqMy"}},64698:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>iw});var a=n(42969),r=n(14232),i=n(58216),l=n(18847),o=n.n(l),s=n(77328),c=n.n(s),d=n(19505),u=n(37876);let m=function(){return(0,u.jsx)(c(),{children:(0,u.jsx)("script",{dangerouslySetInnerHTML:{__html:'{ "@context": "https://schema.org/", "@type": "WebSite", "n
1ame": "Paperless Post", "url": "https://www.paperlesspost.com/", "potentialAction": { "@type": "SearchAction", "target": "https://www.paperlesspost.com/search?q={search_term_string}search_term_string", "query-input": "required name=search_term_string" } }'},id:"seo-search-box-script",type:"application/ld+json"},"seo-search-box-script")})};var p=n(98775),f=n(30088),h=n(49069),g=n(96399),v=n(81626),b=n(81971),x=n(15340);let y="https://ssr-releases-cdn.paperlesspost.com/_next/static/video/PaperSourceHolidayBanner-0880bcdc6bc9ae41006a677cd7f7a8e689752f5941cd56b173b7f547aa04792f.png";var w=n(53552),j=n(77400),k={seo:{title:"Paperless Post\xae: Free Invitation Templates & Premium Designs",description:"Customize online invitations, greeting cards, and Flyers that reflect your style—for weddings, holidays, birthdays, professional events, and all the moments that matter.",url:"".concat((0,j.A)()),canonicalUrl:"".concat((0,j.A)())},APP_PROMO:{className:"md:hidden mx-4 bg-dove",theme:"default",tag:"div",content:[{className:"theme-default-content",tag:"div",content:[{tag:"title_2",className:"heading-medium pt-4",children:"Get the party started faster with the app"}]},{tag:"a",href:"https://paperlesspost.app.link/wv5zGFkP8ab",tracking:{id:"mobile_home_app_promo",block_name:"app-promo",block_row:1},content:[{tag:"image",className:"theme-default-media",aspectRatioStyles:"mb-[64%]",sources:[{type:"image/png",sm:{src:"https://ssr-releases-cdn.paperlesspost.com/_next/static/video/AppPromo_Mobile-38581e4e0708698ccac072135152ea4e0312ab3fb483caaa4fc78a96d25ef6b0.png"}}]}]}]},PAPER_SOURCE_PROMO:{className:"theme-small-switch-content-left relative md:h-400px m-4 md:m-6 bg-hint-of-red overflow-hidden",tag:"div",content:[{className:"theme-default-media w-full md:h-400px lg:w-1/2",tag:"div",content:[{tag:"image",className:"w-full h-full",imageClassName:"w-full md:h-400px md:object-right",aspectRatioStyles:"mb-[66.7%] md:mb-[66.7%]",sources:[{type:"image/jpeg",sm:{src:y},md:{src:y}}],alt:"A white wedding invitation with a green vine with matching information card and response card on a background including a light pink ribbon, white flowers, and two wedding rings."}]},{className:"theme-small-switch-content slat-content-basis",tag:"div",content:[{tag:"image",className:"w-56 xl:w-56 kicker !mb-0",imageClassName:"w-full",aspectRatioStyles:"mb-[10.8%]",sources:[{type:"image/png",sm:{src:x.A}}],alt:"Paper Source logo"},{className:"heading-large lg:heading-xlarge mt-4 mb-2 lg:my-6",tag:"title_2",children:"Printed wedding invitations"},{className:"dek mb-4 lg:mb-8",tag:"p",children:"We’ve partnered with Paper\xa0Source to provide paper versions of our digital designs."},{className:"button !mt-0",tag:"button",type:w.xo,color:w.hA,as:"AppLink",children:"Shop at Paper Source",href:"https://papersource.pxf.io/enAqO6",target:"_blank",tracking:{id:"Shop at Paper Source",block_name:"paperSource",block_row:7}}]}]},BLOG_POSTS:{className:"m-4 md:m-6",title:(0,u.jsx)("h2",{className:"heading-xsmall md:heading-small 2xl:heading-medium mb-4 md:mb-6",children:"See what’s inspiring us:"}),tags:["592"],tracking:{block_name:"blogPosts",block_row:9}}},N=n(63857),O=n(27925),_=n(43081),A=n.n(_),D=n(49995),P=n(53588),T=n(49186),C=n(55972),S=n(30829),I=n(5905),E=n(51055),R=n(85977),L=n(38592),M=n(13534),F=n(85260),z=n(35501),Z=n.n(z),U=n(89099),H=n(36368),B=n(44478),V=n(66078),q=n(17708);function Y(e,t,n){var a,r,i,l,o,s,c,d,u,m,p,f=(0,q.a)(e,null==n?void 0:n.in);return isNaN(+f)?(0,V.w)((null==n?void 0:n.in)||e,NaN):(null!=t.year&&f.setFullYear(t.year),null!=t.month&&(a=f,r=t.month,l=(i=(0,q.a)(a,void 0)).getFullYear(),o=i.getDate(),(s=(0,V.w)(a,0)).setFullYear(l,r,15),s.setHours(0,0,0,0),d=(c=(0,q.a)(s,void 0)).getFullYear(),u=c.getMonth(),(m=(0,V.w)(c,0)).setFullYear(d,u+1,0),m.setHours(0,0,0,0),p=m.getDate(),i.setMonth(r,Math.min(o,p)),f=i),null!=t.date&&f.setDate(t.date),null!=t.hours&&f.setHours(t.hours),null!=t.minutes&&f.setMinutes(t.minutes),null!=t.seconds&&f.setSeconds(t.seconds),null!=t.milliseconds&&f.setMilliseconds(t.milliseconds),f)}Symbol.for("constructDateFrom");let K={},W={};function G(e,t){try{let n=(K[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];if(n in W)return W[n];return X(n,n.split(":"))}catch{if(e in W)return W[e];let t=e?.match($);if(t)return X(e,t.slice(1));return NaN}}let $=/([+-]\d\d):?(\d\d)?/;function X(e,t){let n=+(t[0]||0),a=+(t[1]||0),r=(t[2]||0)/60;return W[e]=60*n+a>0?60*n+a+r:60*n-a-r}class J extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(G(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),et(this,e)):this.setTime(Date.now())}static tz(e,...t){return t.length?new J(...t,e):new J(Date.now(),e)}
1withTimeZone(e){return new J(+this,e)}getTimezoneOffset(){let e=-G(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),ee(this),+this}[Symbol.for("constructDateFrom")](e){return new J(+new Date(e),this.timeZone)}}let Q=/^(get|set)(?!UTC)/;function ee(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-(60*G(e.timeZone,e))))}function et(e,t){var n;let a=Array.isArray(t)?Date.UTC((n=t)[0],n.length>1?n[1]:0,n.length>2?n[2]:1,...n.slice(3)):+e.internal,r=G(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),l=new Date(+e);l.setUTCHours(l.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+l).getTimezoneOffset(),c=o;if(o-s&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let a=G(e.timeZone,t);(a>0?Math.floor(a):Math.ceil(a))===i&&(c=s)}let d=c-i;d&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+d);let u=new Date(+e);u.setUTCSeconds(0);let m=o>0?u.getSeconds():(u.getSeconds()-60)%60,p=Math.round(-(60*G(e.timeZone,e)))%60;(p||m)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+m);let f=G(e.timeZone,e),h=f>0?Math.floor(f):Math.ceil(f),g=-new Date(+e).getTimezoneOffset()-h-d,v=h-i,b=v>0&&en(e)-a==60*v*1e3&&en(e,a-60*h*1e3)!==a;if(h!==i&&g&&!b){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+g);let t=G(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&g<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}ee(e);let x=(t?a:a+1e3*p)-e.internal;x&&18e5>Math.abs(x)&&(Date.prototype.setTime.call(e,+e+x),ee(e))}function en(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-(60*G(e.timeZone,n)))),+n}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Q.test(e))return;let t=e.replace(Q,"$1UTC");J.prototype[t]&&(e.startsWith("get")?J.prototype[e]=function(){return this.internal[t]()}:(J.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),et(e),+this},J.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ee(this),+this}))});class ea extends J{static tz(e,...t){return t.length?new ea(...t,e):new ea(Date.now(),e)}toISOString(){let[e,t,n]=this.tzComponents(),a=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+a}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,a]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${a}`}
1toTimeString(){let e=this.internal.toUTCString().split(" ")[4],[t,n,a]=this.tzComponents();return`${e} GMT${t}${n}${a} (${function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset(),t=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),n=String(Math.abs(e)%60).padStart(2,"0");return[e>0?"-":"+",t,n]}withTimeZone(e){return new ea(+this,e)}[Symbol.for("constructDateFrom")](e){return new ea(+new Date(e),this.timeZone)}}var er=n(37134),ei=n(76896),el=function(e){return(0,er.GP)(e,"yyyy-MM-dd")},eo=function(e){var t=e.date,n=e.timeZone;return new ea(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,n).toISOString()},es=function(e){var t,n,a=e.date,r=e.reference;return t=(0,ei.o)(a),n=(0,ei.o)(r),+(0,q.a)(t)>+(0,q.a)(n)},ec=function(e){var t=e.year,n=e.month,a=e.day,r=new Date(t,n+1,0).getDate();return new Date(t,n,Math.min(a,r))},ed=function(e){var t=e.date,n=e.from,a=void 0===n?new Date:n,r=(0,ei.o)(a),i=ec({year:r.getFullYear(),month:t.getMonth(),day:t.getDate()});return i<r?ec({year:r.getFullYear()+1,month:t.getMonth(),day:t.getDate()}):i},eu=function(e){var t=e.eventDate,n=e.timeZone,a=/^(\d{4})-(\d{2})-(\d{2})/.exec(t);if(!a)return NaN;var r=(0,O.A)(a,4),i=r[1],l=r[2],o=r[3];return new ea(Number(i),Number(l)-1,Number(o),0,0,0,n).getTime()},em=function(e){var t=e.wallClock,n=e.timeZone;return new ea(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),0,n).getTime()},ep=function(e){var t=new ea(e.instantMs,e.timeZone);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),0,0)},ef=function(e){var t=e.timeZone,n=e.at,a=new ea(void 0===n?new Date:n,t);return new Date(a.getFullYear(),a.getMonth(),a.getDate())},eh=function(e){return Y(e,{hours:9,minutes:0,seconds:0,milliseconds:0})},eg=function(e){var t=e.timeZone,n=ep({instantMs:e.now,timeZone:t});return Y(n,{hours:n.getHours()+1,minutes:0,seconds:0,milliseconds:0})},ev=function(e){var t,n,a=e.date,r=e.recursAnnually,i=e.timeZone,l=e.now,o=void 0===l?Date.now():l;if(!a)return eh((t=ep({instantMs:o,timeZone:i}),n=(0,q.a)(t,void 0),isNaN(1)?(0,V.w)(t,NaN):(n.setDate(n.getDate()+1),n)));var s=eh(r?ed({date:a,from:ep({instantMs:o,timeZone:i})}):a);return ex({draft:s,timeZone:i,now:o})?s:eg({timeZone:i,now:o})},eb=function(e){var t=e.draft,n=e.date;return Y(t,{year:n.getFullYear(),month:n.getMonth(),date:n.getDate()})},ex=function(e){var t=e.draft,n=e.timeZone,a=e.now,r=void 0===a?Date.now():a;return null!=t&&em({wallClock:t,timeZone:n})>r},ey=function(e){var t=e.draft,n=e.date;return e.recursAnnually||!n||null!=t&&!es({date:t,reference:n})},ew=n(97763),ej=function(e){var t=e.eventYmd,n=e.customTime,a=e.timeZone;return Math.round((eu({eventDate:t,timeZone:a})-em({wallClock:n,timeZone:a}))/6e4)},ek=function(e){var t=e.eventYmd,n=e.leadMinutes;return eu({eventDate:t,timeZone:e.timeZone})-6e4*n},eN=function(e){var t=e.leadMinutes,n=e.eventDate,a=e.recursAnnually,r=e.timeZone,i=e.now,l=void 0===i?Date.now():i;return!a&&!!n&&0!==t&&ek({eventYmd:el(n),leadMinutes:t,timeZone:r})<=l},eO=function(e){var t=e.leadMinutes,n=e.eventDate,a=e.recursAnnually,r=e.timeZone,i=e.now,l=void 0===i?Date.now():i;return!!a&&!!n&&ek({eventYmd:el(ed({date:n,from:ef({timeZone:r,at:new Date(l)})})),leadMinutes:t,timeZone:r})<=l},e_=function(e){var t=e.reminderOption,n=e.isCustomTime,a=e.customDateTime,r=e.eventDate,i=e.recursAnnually,l=e.timeZone,o=e.now,s=void 0===o?Date.now():o;return n?null!=a&&!ex({draft:a,timeZone:l,now:s}):null!=t&&eN({leadMinutes:Number(t),eventDate:r,recursAnnually:i,timeZone:l,now:s})},eA=[{zone:"America/New_York",label:"Eastern Time (US & Canada)"},{zone:"America/Chicago",label:"Central Time (US & Canada)"},{zone:"America/Denver",label:"Mountain Time (US & Canada)"},{zone:"America/Phoenix",label:"Arizona"},{zone:"America/Los_Angeles",label:"Pacific Time (US & Canada)"},{zone:"America/Anchorage",label:"Alaska"},{zone:"Pacific/Honolulu",label:"Hawaii"},{zone:"America/Adak",label:"Aleutian Islands"},{zone:"Pacific/Guam",label:"Guam"},{zone:"America/Halifax",label:"Atlantic Time (Canada)"},{zone:"America/Puerto_Rico",label:"Puerto Rico"},{zone:"America/St_Johns",label:"Newfoundland"}],eD=new Set(eA.map(function(e){return e.zone})),eP=function(e){var t=e.zone,n=e.at;return(0,er.GP)(new ea(n,t),"'GMT'xxx")},eT=function(e){var t,n;return null!=(t=null==(n=e.split("/").pop())?void 0:n.replace(/_/g," "))?t:e},eC=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.selectedZone,n=e.at,a=void 0===n?new Date:n,r=eA.map(function(e){var t=e.zone,n=e.label;return{value:t,label:"(".concat(eP({zone:t,at:a}),") ").concat(n)}});return t&&!eD.has(t)&&r.unshift({value:t,label:"(".concat(eP({zone:t,at:a}),") ").concat(eT(t))}),r},eS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Intl.DateTimeFormat().resolvedOptions().timeZone;
1return e||"America/New_York"},eI="custom",eE=function(e){var t=e.date,n=e.timeZone;return n?t<ef({timeZone:n}):t<(0,ei.o)(new Date)},eR=function(e){var t=(0,E.C)(e),n=t.isValid,a=t.isSupported;return!!(n&&a)},eL=function(e){var t=e.trim();return(0,ew.DT)(t)||eR(t)},eM=function(e){if(!e)return!1;var t=e.trim();return!(0,ew.DT)(t)&&eR(t)},eF=function(e){return eM(e)?"sms":"email"},ez=function(e){var t={};e.name.trim()||(t.name="Event name is required"),e.eventType||(t.eventType="Event category is required"),e.date||(t.date="Please select a date");var n="annual"===e.cadence,a=null!=(r=e.timeZone)?r:eS();if(e.reminderOption?e.isCustomTime?e.customDateTime?em({wallClock:e.customDateTime,timeZone:a})<=Date.now()?t.reminder="Please choose a future date and time":"annual"!==e.cadence&&e.date&&es({date:e.customDateTime,reference:e.date})&&(t.reminder="The reminder must be on or before the event date"):t.reminder="Please choose a date and time":e.date&&eN({leadMinutes:Number(e.reminderOption),eventDate:e.date,recursAnnually:n,timeZone:a})&&(t.reminder="That reminder time has already passed. Choose a later time."):t.reminder="Please choose when to send a reminder",e.date&&eE({date:e.date,timeZone:a})&&"annual"!==e.cadence&&(t.recurring="Reminders for past dates must repeat"),e.hasDestinationField)if(e.isEditingDestination)t.destination="Please finish entering an email or phone";else if(e.destination){var r,i,l=eF(e.destination);null!=(i=e.availableTransports)&&i.length&&!e.availableTransports.includes(l)&&(t.destination="sms"===l?"Text reminders aren’t available right now — use an email address.":"Email reminders aren’t available right now — use a phone number.")}else t.destination="Please add an email or phone";return e.requiresSmsConsent&&!e.smsConsent&&(t.smsConsent="Please check the box indicating that you agree to receive text messages from Paperless Post."),t},eZ=function(e){var t=e.config,n=e.form,a=e.locale,i=(0,r.useState)(!1),l=i[0],o=i[1],s=(0,r.useState)(null),c=s[0],d=s[1],u=(0,r.useState)(null),m=u[0],p=u[1],f=(0,r.useRef)(null),h=(0,r.useRef)(null),g=function(){return ev({date:n.date,recursAnnually:n.recursAnnually,timeZone:n.timeZone})},v=ex({draft:c,timeZone:n.timeZone}),b=ey({draft:c,date:n.date,recursAnnually:n.recursAnnually}),x=function(){var e;o(!1),null==(e=h.current)||e.focus()},y=function(){x(),n.customDateTime||n.selectReminderOption(m&&m!==eI?m:"0")},w=(0,r.useRef)(y);(0,r.useEffect)(function(){w.current=y}),(0,r.useEffect)(function(){var e;l&&(null==(e=f.current)||e.focus())},[l]),(0,r.useEffect)(function(){if(l){var e=function(e){if("Escape"===e.key){e.stopPropagation(),w.current();return}var t=e.target instanceof Element&&null!=e.target.closest("button");if("Enter"===e.key&&!t){e.preventDefault(),e.stopPropagation();return}if("Tab"===e.key){var n=f.current;if(!n)return;var a=Array.from(n.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]")).filter(function(e){return -1!==e.tabIndex}),r=a[0],i=a[a.length-1];if(!r||!i)return;var l=document.activeElement;e.shiftKey&&(l===r||l===n)?(e.preventDefault(),i.focus()):e.shiftKey||l!==i||(e.preventDefault(),r.focus())}};return document.addEventListener("keydown",e,!0),function(){return document.removeEventListener("keydown",e,!0)}}},[l]);var j=t.eventTypes.map(function(e){return{value:e.key,label:e.label}}),k=n.customDateTime?new Intl.DateTimeFormat(a,{dateStyle:"short",timeStyle:"short"}).format(n.customDateTime):"Custom time…";return{isCustomPickerOpen:l,draft:c,customPickerRef:f,leadTimeTriggerRef:h,setDraftDate:function(e){return d(function(t){return eb({draft:null!=t?t:g(),date:e})})},setDraftTime:function(e){return d(function(t){var n;return Y((n={draft:null!=t?t:g(),time:e}).draft,{hours:n.time.hours,minutes:0,seconds:0,milliseconds:0})})},isDraftFuture:v,isDraftOnOrBeforeEvent:b,isDraftValid:v&&b,handleReminderChange:function(e){if(e===eI){var t;p(n.reminderOption),n.selectReminderOption(e),d(null!=(t=n.customDateTime)?t:g()),o(!0)}else n.selectReminderOption(e),o(!1)},submitCustomDateTime:function(){c&&(n.setCustomDateTime(c),x())},cancelCustomPicker:y,eventTypeOptions:j,reminderOptions:[].concat((0,B.A)(t.leadTimeOptions.map(function(e){return{value:String(e.valueMinutes),label:e.label,disabled:eN({leadMinutes:e.valueMinutes,eventDate:n.date,recursAnnually:n.recursAnnually,timeZone:n.timeZone})}})),[{value:eI,label:k}]),selectedLeadRollsToNextYear:null!=n.reminderOption&&n.reminderOption!==eI&&eO({leadMinutes:Number(n.reminderOption),eventDate:n.date,recursAnnually:n.recursAnnually,timeZone:n.timeZone}),timeZoneOptions:eC({selectedZone:n.timeZone})}},eU=n(59860),eH=n(63893),eB=n(92370),eV=n(32281),eq=n.n(eV),eY=function(e,t){switch(t.type){case"step":var n=t.disabled.length;if(0===n)return{focusedIndex:-1};for(var a=t.delta>0?-1:0,r=e.focusedIndex<0?a:e.focusedIndex,i=1;i<=n;i++){var l=((r+t.delta*i)%n+n)%n;if(!t.disabled[l])return{focusedIndex:l}}return{focusedIndex:-1};case"reset":return{focusedIndex:-1};default:return e}},eK=function(e){var t=e.buttonRef,n=e.isItemDisabled,a=e.isOpen,i=e.itemCount,l=e.onClose,o=e.onOpen,s=e.onSelect,c=(0,r.useReducer)(eY,{focusedIndex:-1}),d=c[0],u=c[1];(0,r.useEffect)(function(){u({type:"reset"})},[a]);var m=0===i?-1:Math.min(d.focusedIndex,i-1),p=Array.from({length:i},function(e,t){return!!(null!=n&&n(t))});return{focusedIndex:m,handleKeyDown:function(e){var r;
1if(!a){("ArrowDown"===e.key||"ArrowUp"===e.key)&&(e.preventDefault(),e.stopPropagation(),null==o||o());return}switch(e.key){case"ArrowDown":e.preventDefault(),e.stopPropagation(),u({type:"step",delta:1,disabled:p});break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),u({type:"step",delta:-1,disabled:p});break;case"Enter":case" ":e.preventDefault(),e.stopPropagation(),m>=0&&!(null!=n&&n(m))&&s(m),l();break;case"Escape":e.preventDefault(),e.stopPropagation(),l(),null==(r=t.current)||r.focus();break;case"Tab":l()}}}},eW=["align","aria-labelledby","className","dataTestId","disabled","fitContent","id","label","onChange","options","placeholder","placement","ref","style","value"];function eG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function e$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eG(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eX=function(e){var t,n=e.align,a=void 0===n?"left":n,i=e["aria-labelledby"],l=e.className,o=e.dataTestId,s=e.disabled,c=e.fitContent,d=e.id,m=e.label,p=e.onChange,f=e.options,h=e.placeholder,g=void 0===h?"Select…":h,v=e.placement,b=e.ref,x=e.style,y=e.value,w=(0,eU.A)(e,eW),j=(0,r.useState)(!1),k=j[0],N=j[1],O=(0,r.useRef)(null),_=(0,r.useRef)(null),A=(0,r.useRef)(null),P=(0,r.useCallback)(function(e){_.current=e,"function"==typeof b?b(e):b&&(b.current=e)},[b]),T=function(){return N(!1)},C=eK({buttonRef:_,isItemDisabled:function(e){var t;return!!(null!=(t=f[e])&&t.disabled)},isOpen:k,itemCount:f.length,onClose:T,onOpen:function(){return N(!0)},onSelect:function(e){var t=f[e];t&&!t.disabled&&p(t.value)}}),S=C.focusedIndex,I=C.handleKeyDown;(0,r.useEffect)(function(){if(k){var e=function(e){var t;e.target instanceof Node&&!(null!=(t=O.current)&&t.contains(e.target))&&T()};return document.addEventListener("pointerdown",e),function(){return document.removeEventListener("pointerdown",e)}}},[k]),(0,r.useEffect)(function(){var e;k&&!(S<0)&&(null==(e=A.current)||null==(e=e.children[S])||e.scrollIntoView({block:"nearest"}))},[k,S]);var E=null!=(t=f.find(function(e){return e.value===y}))?t:null,R="".concat(d,"-listbox"),L=m?"".concat(d,"-label"):void 0,M=null!=i?i:L,F=[M,"".concat(d,"-value")].filter(Boolean).join(" "),z=function(e){var t;p(e),T(),null==(t=_.current)||t.focus()};return(0,u.jsxs)("div",{className:(0,D.A)(eq().select,l),ref:O,style:x,children:[m?(0,u.jsx)("label",{className:eq().label,htmlFor:d,id:L,children:(0,u.jsx)(eH.o,{variant:"ParagraphSmall",children:m})}):null,(0,u.jsxs)("span",{className:eq().control,children:[(0,u.jsx)("span",{"aria-hidden":!0,className:eq().sizer,children:void 0!==c&&c?(0,u.jsxs)("span",{className:eq().sizerOption,children:[(0,u.jsx)(eH.o,{variant:"ParagraphSmall",children:E?E.label:g}),(0,u.jsx)("span",{className:eq().sizerCaret})]}):f.map(function(e){return(0,u.jsxs)("span",{className:eq().sizerOption,children:[(0,u.jsx)(eH.o,{variant:"ParagraphSmall",children:e.label}),(0,u.jsx)("span",{className:eq().sizerCaret})]},e.value)})}),(0,u.jsxs)("button",e$(e$({},w),{},{"aria-activedescendant":k&&S>=0?"".concat(d,"-option-").concat(S):void 0,"aria-controls":k?R:void 0,"aria-expanded":k,"aria-haspopup":"listbox","aria-labelledby":F,className:(0,D.A)(eq().trigger,E&&(k?eq()["trigger-selected"]:eq()["trigger-selected-closed"])),"data-testid":o,disabled:void 0!==s&&s,id:d,onClick:function(){return N(function(e){return!e})},onKeyDown:I,ref:P,role:"combobox",type:"button",children:[(0,u.jsx)("span",{className:(0,D.A)(eq().value,"right"===a&&eq()["value-right"],!E&&eq().placeholder),id:"".concat(d,"-value"),children:(0,u.jsx)(eH.o,{variant:"ParagraphSmall",children:E?E.label:g})}),(0,u.jsx)("span",{"aria-hidden":!0,className:eq().caret,children:(0,u.jsx)(eB.default,{})})]}))]}),k?(0,u.jsx)("ul",{"aria-labelledby":M,className:(0,D.A)(eq().listbox,"top"===(void 0===v?"bottom":v)&&eq().listboxAbove,"right"===a&&eq().listboxRight),id:R,ref:A,role:"listbox",children:f.map(function(e,t){var n=e.value===y,a=t===S;return(0,u.jsx)("li",{"aria-disabled":e.disabled||void 0,"aria-selected":n,
1className:(0,D.A)(eq().option,a&&eq()["option-focused"],n&&eq()["option-selected"],e.disabled&&eq()["option-disabled"]),"data-testid":o?"".concat(o,"-option-").concat(e.value):void 0,id:"".concat(d,"-option-").concat(t),onClick:function(){e.disabled||z(e.value)},role:"option",children:(0,u.jsx)(eH.o,{variant:"ParagraphSmall",children:e.label})},e.value)})}):null]})},eJ=n(6665),eQ=n.n(eJ);function e0(e,t){var n=(0,q.a)(e,null==t?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}var e1=n(76746);function e2(e,t,n){var a=(0,e1.x)(null==n?void 0:n.in,e,t),r=(0,O.A)(a,2),i=r[0],l=r[1];return+(0,ei.o)(i)==+(0,ei.o)(l)}var e4=n(9217),e5=n(51020),e3=n(20517),e6=n.n(e3),e8=function(e){return e&&!Number.isNaN(e.getTime())?e:void 0},e7=function(e){var t=e.disabled;return e.isConnected&&!t},e9=["className","dataTestId","dimPastDates","locale","max","min","onChange","ref","style","today","value"];function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tn=function(e){var t=e.date,n=e.max,a=e.min;return a&&t<a?a:n&&t>n?n:t},ta=function(e){var t,n,a,i,l,o,s,c,d=e.className,m=e.dataTestId,p=void 0===m?"calendar":m,f=e.dimPastDates,h=void 0!==f&&f,g=e.locale,v=e.max,b=e.min,x=e.onChange,y=e.ref,w=e.style,j=e.today,k=e.value,N=(0,eU.A)(e,e9),O=e8(k),_=e8(b),A=e8(v),P=(0,r.useState)(function(){return e0(tn({date:null!=O?O:new Date,min:_,max:A}))}),T=P[0],C=P[1],S=(0,r.useState)(function(){return tn({date:null!=O?O:new Date,min:_,max:A})}),I=S[0],E=S[1],R=(0,r.useRef)(null),L=(0,r.useRef)(null),M=(0,r.useRef)(!1),F=(0,r.useRef)(!1),z="".concat((0,r.useId)(),"-heading"),Z=(0,r.useState)({value:O,min:_,max:A}),U=Z[0],H=Z[1];if((null==(n=U.value)?void 0:n.getTime())!==(null==O?void 0:O.getTime())||(null==(a=U.min)?void 0:a.getTime())!==(null==_?void 0:_.getTime())||(null==(i=U.max)?void 0:i.getTime())!==(null==A?void 0:A.getTime())){H({value:O,min:_,max:A});var B=tn({date:null!=O?O:I,min:_,max:A});C(e0(B)),E(B)}(0,r.useEffect)(function(){var e,t;M.current?(null==(e=R.current)||e.focus(),M.current=!1):F.current&&document.activeElement===document.body&&(null==(t=R.current)||t.focus())});var V=function(e){for(var t=e.max,n=e.min,a=e.month,r=e.selectedDate,i=e.today,l=a.getFullYear(),o=a.getMonth(),s=new Date(l,o+1,0).getDate(),c=new Date(l,o,1).getDay(),d=7*Math.ceil((s+c)/7),u=n?(0,ei.o)(n):null,m=t?(0,ei.o)(t):null,p=(0,ei.o)(null!=i?i:new Date),f=[],h=0;h<d;h++){var g=h-c+1;if(g<1||g>s){f.push(null);continue}var v=new Date(l,o,g),b=!!u&&v.getTime()<u.getTime()||!!m&&v.getTime()>m.getTime(),x=!!r&&e2(v,r),y=v.getTime()<p.getTime();f.push({date:v,disabled:b,selected:x,past:y})}for(var w=[],j=0;j<d/7;j++)w.push(f.slice(7*j,(j+1)*7));return w}({month:T,min:_,max:A,selectedDate:O,today:j}),q=(t=new Intl.DateTimeFormat(g,{weekday:"short",timeZone:"UTC"}),Array.from({length:7},function(e,n){return t.format(new Date(Date.UTC(2024,0,7+n))).slice(0,2)})),Y=V.flat(),K=null!=(l=null!=(o=null==(s=Y.find(function(e){return e&&!e.disabled&&e2(e.date,I)}))?void 0:s.date)?o:null==(c=Y.find(function(e){return e&&!e.disabled}))?void 0:c.date)?l:I,W=!_||e0(_)<e0(T),G=!A||e0(A)>e0(T),$=function(e){var t=new Date(T.getFullYear(),T.getMonth()+e,1);(e<0?!!_&&e0(_)>=t:!!A&&e0(A)<=t)&&(M.current=!0),C(t),E(tn({date:t,min:_,max:A}))},X=function(e){var t=tn({date:e,min:_,max:A});M.current=!0,E(t),C(function(e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()?e:e0(t)})},J=function(e,t){var n={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7}[e.key];if(void 0!==n)e.preventDefault(),X(new Date(t.getFullYear(),t.getMonth(),t.getDate()+n));else if("PageUp"===e.key||"PageDown"===e.key){e.preventDefault();var a="PageUp"===e.key?-1:1,r=t.getMonth()+a,i=new Date(t.getFullYear(),r+1,0).getDate();X(new Date(t.getFullYear(),r,Math.min(t.getDate(),i)))}},Q=function(e){e.disabled||null==x||x(e.date)},ee=new Intl.DateTimeFormat(g,{month:"long",year:"numeric"}).format(T),et=new Intl.DateTimeFormat(g,{dateStyle:"full"});return(0,u.jsxs)("div",tt(tt({},N),{},{className:(0,D.A)(e6().calendar,d),"data-testid":p,ref:y,role:"group",style:w,children:[(0,u.jsxs)("div",{className:e6().header,children:[(0,u.jsx)("button",{"aria-label":"Previous month",className:e6().navButton,"data-testid":"".concat(p,"-previous"),disabled:!W,onClick:function(){return $(-1)},type:"button",children:(0,u.jsx)(e4.default,{})}),(0,u.jsx)(eH.o,{"aria-live":"polite",className:e6().heading,dataTestId:"".concat(p,"-heading"),id:z,variant:"HeadingXSmall",children:ee}),(0,u.jsx)("button",{"aria-label":"Next month",className:e6().navButton,"data-testid":"".concat(p,"-next"),disabled:!G,onClick:function(){return $(1)},type:"button",children:(0,u.jsx)(e5.default,{})})]}),(0,u.jsxs)("div",{"aria-labelledby":z,ref:L,role:"grid",children:[(0,u.jsx)("div",{className:e6().row,role:"row",children:q.map(function(e){return(0,u.jsx)("div",{className:(0,D.A)(e6().cell,e6().weekday),role:"columnheader",children:(0,u.jsx)(eH.o,{variant:"ParagraphSmall",children:e})},e)})}),V.map(function(e){var t=e.map(function(e){var t;return null!=(t=null==e?void 0:e.date.getDate())?t:"x"}).join("-");return(0,u.jsx)("div",{className:e6().row,role:"row",children:e.map(function(e,n){return null===e?(0,u.jsx)("div",{className:e6().cell,role:"gridcell"},"".concat(t,"-").concat(n)):(0,u.jsx)("div",{"aria-selected":e.selected,className:e6().cell,role:"gridcell",children:(0,u.jsx)("button",{"aria-disabled":e.disabled,"aria-label":et.format(e.date),className:(0,D.A)(e6().day,e.disabled&&e6().disabled,h&&e.past&&!e.disabled&&e6().past,e.selected&&e6().selected),"data-testid":"".concat(p,"-day"),disabled:e.disabled,onBlur:function(e){e7(e.currentTarget)&&(F.current=!1)},onClick:function(){return Q(e)},onFocus:function(){F.current=!0},onKeyDown:function(t){return J(t,e.date)},ref:e2(e.date,K)?R:void 0,tabIndex:e2(e.date,K)?0:-1,type:"button",children:e.date.getDate()})},e.date.toISOString())})},t)})]})]}))},tr=["aria-labelledby","className","dataTestId","dimPastDates","disabled","formatDate","id","label","locale","max","min","onChange","placeholder","popoverClassName","ref","style","today","value"];function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ti(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var to=function(e){var t=e["aria-labelledby"],n=e.className,a=e.dataTestId,i=e.dimPastDates,l=e.disabled,o=e.formatDate,s=e.id,c=e.label,d=e.locale,m=e.max,p=e.min,f=e.onChange,h=e.placeholder,g=e.popoverClassName,v=e.ref,b=e.style,x=e.today,y=e.value,w=(0,eU.A)(e,tr),j=e8(y),k=(0,r.useState)(!1),N=k[0],O=k[1],_=(0,r.useRef)(null),A=(0,r.useRef)(null),P=(0,r.useRef)(null),T=(0,r.useCallback)(function(e){P.current=e,"function"==typeof v?v(e):v&&(v.current=e)},[v]),C=function(){var e;O(!1),null==(e=P.current)||e.focus()};(0,r.useEffect)(function(){if(N){var e=function(e){var t;e.target instanceof Node&&!(null!=(t=_.current)&&t.contains(e.target))&&O(!1)};return document.addEventListener("pointerdown",e),function(){return document.removeEventListener("pointerdown",e)}}},[N]),(0,r.useEffect)(function(){var e;N&&(null==(e=A.current)||e.focus())},[N]),(0,r.useEffect)(function(){if(N){var e=function(e){if("Escape"===e.key){var t;e.stopPropagation(),O(!1),null==(t=P.current)||t.focus()}};return document.addEventListener("keydown",e,!0),function(){return document.removeEventListener("keydown",e,!0)}}},[N]),(0,r.useEffect)(function(){if(N){var e=function(e){if("Tab"===e.key){var t,n,a,r,i=Array.from(null!=(t=null==(n=A.current)?void 0:n.querySelectorAll("button:not([disabled])"))?t:[]).filter(function(e){return e.tabIndex>=0});if(0!==i.length){e.preventDefault(),e.stopPropagation();var l=i.indexOf(document.activeElement);if(-1===l){null==(r=i[e.shiftKey?i.length-1:0])||r.focus();return}null==(a=i[(l+(e.shiftKey?-1:1)+i.length)%i.length])||a.focus()}}};return document.addEventListener("keydown",e,!0),function(){return document.removeEventListener("keydown",e,!0)}}},[N]);var S=null!=o?o:function(e){return new Intl.DateTimeFormat(d,{dateStyle:"medium"}).format(e)},I=j?S(j):void 0===h?"Select a date":h,E=c?"".concat(s,"-label"):void 0,R="".concat(s,"-value"),L=[null!=t?t:E,R].filter(Boolean).join(" ");return(0,u.jsxs)("div",{className:(0,D.A)(eQ().datePicker,n),ref:_,style:b,children:[c?(0,u.jsx)("label",{className:eQ().label,htmlFor:s,id:E,children:(0,u.jsx)(eH.o,{variant:"ParagraphSmall",children:c})}):null,(0,u.jsx)("button",tl(tl({},w),{},{"aria-expanded":N,"aria-haspopup":"dialog","aria-labelledby":L,className:eQ().trigger,"data-testid":a,disabled:void 0!==l&&l,id:s,onClick:function(){return O(function(e){return!e})},ref:T,type:"button",children:(0,u.jsx)("span",{className:(0,D.A)(eQ().value,!j&&eQ().placeholder),id:R,children:(0,u.jsx)(eH.o,{variant:"ParagraphMedium",children:I})})})),N?(0,u.jsx)("div",{"aria-label":null!=c?c:"Choose a date","aria-modal":!0,className:(0,D.A)(eQ().popover,g),ref:A,role:"dialog",tabIndex:-1,children:(0,u.jsx)(ta,{dataTestId:a?"".concat(a,"-calendar"):void 0,dimPastDates:void 0!==i&&i,locale:d,max:m,min:p,onChange:function(e){f(e),C()},today:x,value:j})}):null]})},ts=n(85786),tc=n.n(ts),td=function(e){var t=e.split(":"),n=(0,O.A)(t,2),a=n[0],r=n[1],i=Number(a),l=Number(r);return Number.isNaN(i)||Number.isNaN(l)?null:{hours:i,minutes:l}},tu="reminder-consent-help",tm="reminder-consent-error",tp=function(e){return"".concat(e,"-label")},tf=function(e){var t=e.htmlFor,n=e.children;return(0,u.jsx)("label",{className:"shrink-0 cursor-pointer text-sm font-medium leading-5",htmlFor:t,id:tp(t),children:n})},th=function(e){var t=e.children,n=e.dataTestId,a=e.id;return(0,u.jsx)("p",{className:"m-0 text-[13px] text-[color:var(--monaco)]","data-testid":n,id:a,role:"alert",children:t})},tg=function(e){var t,n,a,r=e.config,i=e.form,l=null!=(t=(0,U.useRouter)().locale)?t:"en",o=eZ({config:r,form:i,locale:l}),s=o.cancelCustomPicker,c=o.customPickerRef,d=o.draft,m=o.eventTypeOptions,p=o.handleReminderChange,f=o.isCustomPickerOpen,h=o.isDraftFuture,g=o.isDraftOnOrBeforeEvent,v=o.isDraftValid,b=o.leadTimeTriggerRef,x=o.reminderOptions,y=o.selectedLeadRollsToNextYear,w=o.setDraftDate,j=o.setDraftTime,k=o.submitCustomDateTime,N=o.timeZoneOptions;return(0,u.jsxs)("form",{className:"relative flex w-full flex-col",onSubmit:function(e){e.preventDefault(),i.handleSubmit()},children:[(0,u.jsxs)("div",{className:"flex flex-col gap-0 px-2 py-4",children:[(0,u.jsx)(tf,{htmlFor:"reminder-title",children:"Event name"}),(0,u.jsx)(H.A_,{className:tc().titleInput,dataTestId:"reminder-title",error:i.errors.name,id:"reminder-title",onCh
1ange:function(e){return i.setName(e.target.value)},placeholder:"Jay’s birthday, Mom & Dad’s anniversary",required:!0,value:i.name})]}),(0,u.jsxs)("div",{className:"flex flex-col gap-2 border-t border-alto px-2 py-4",children:[(0,u.jsxs)("div",{className:"flex min-h-8 items-center justify-between gap-3",children:[(0,u.jsx)(tf,{htmlFor:"reminder-event-type",children:"Event type"}),(0,u.jsx)(eX,{align:"right","aria-describedby":i.errors.eventType?"reminder-event-type-error":void 0,"aria-invalid":!!i.errors.eventType||void 0,"aria-labelledby":tp("reminder-event-type"),className:tc().borderlessSelect,dataTestId:"reminder-event-type",fitContent:!0,id:"reminder-event-type",onChange:i.setEventType,options:m,placeholder:"Select category",value:i.eventType})]}),i.errors.eventType?(0,u.jsx)(th,{id:"reminder-event-type-error",children:i.errors.eventType}):null]}),(0,u.jsxs)("div",{className:"flex flex-col gap-2 border-t border-alto px-2 py-4",children:[(0,u.jsxs)("div",{className:"relative flex min-h-12 items-center justify-between gap-3",children:[(0,u.jsx)(tf,{htmlFor:"reminder-date",children:"Event date"}),(0,u.jsx)(to,{"aria-describedby":i.errors.date?"reminder-date-error":void 0,"aria-invalid":!!i.errors.date||void 0,"aria-labelledby":tp("reminder-date"),className:tc().modalDatePicker,dataTestId:"reminder-date",dimPastDates:!0,id:"reminder-date",locale:l,today:ef({timeZone:i.timeZone}),onChange:i.setDate,popoverClassName:tc().modalDatePopover,value:null!=(n=i.date)?n:void 0})]}),i.errors.date?(0,u.jsx)(th,{id:"reminder-date-error",children:i.errors.date}):null]}),i.date?(0,u.jsxs)("div",{className:"flex flex-col gap-4 px-2 pb-4",children:[(0,u.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,u.jsx)(tf,{htmlFor:"reminder-recurring",children:"Event recurs annually"}),(0,u.jsx)(H.jF,{"aria-describedby":i.errors.recurring?"reminder-recurring-error":void 0,"aria-invalid":!!i.errors.recurring||void 0,checked:i.recursAnnually,dataTestId:"reminder-recurring",id:"reminder-recurring",onChange:function(e){return i.toggleRecursAnnually(e.target.checked)}})]}),i.errors.recurring?(0,u.jsx)(th,{id:"reminder-recurring-error",children:i.errors.recurring}):null]}):null,(0,u.jsxs)("div",{className:"flex flex-col gap-2 border-t border-alto px-2 py-4",children:[(0,u.jsxs)("div",{children:[(0,u.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,u.jsx)(tf,{htmlFor:"reminder-lead-time",children:"Reminder time"}),(0,u.jsx)(eX,{align:"right","aria-describedby":i.errors.reminder?"reminder-lead-time-error":void 0,"aria-invalid":!!i.errors.reminder||void 0,"aria-labelledby":tp("reminder-lead-time"),className:tc().borderlessSelect,dataTestId:"reminder-lead-time",fitContent:!0,id:"reminder-lead-time",onChange:p,options:x,placement:"top",placeholder:"When should we remind you?",ref:b,value:i.reminderOption})]}),y?(0,u.jsx)("p",{className:"m-0 mt-2 text-[13px] text-charcoal","data-testid":"reminder-next-year-warning",role:"status",children:"This reminder time has already passed this year, so you’ll be reminded before next year’s occurrence."}):null,f?(0,u.jsxs)("div",{"aria-label":"Choose a custom reminder time",className:tc().customPicker,"data-testid":"reminder-custom-picker",ref:c,role:"dialog",tabIndex:-1,children:[(0,u.jsx)(ta,{max:i.recursAnnually?void 0:null!=(a=i.date)?a:void 0,min:ef({timeZone:i.timeZone}),onChange:w,today:ef({timeZone:i.timeZone}),value:null!=d?d:void 0}),(0,u.jsx)("input",{"aria-label":"Reminder time",className:"".concat(tc().timeInput," relative flex h-12 w-full cursor-pointer items-center justify-center rounded-lg border border-alto bg-transparent text-center text-base text-[color:var(--black)]"),"aria-describedby":[!h?"reminder-custom-time-error":null,h&&!g?"reminder-custom-date-error":null].filter(Boolean).join(" ")||void 0,"aria-invalid":!v||void 0,"data-testid":"reminder-custom-time",id:"reminder-custom-time",onChange:function(e){var t=td(e.target.value);t&&j(t)},step:3600,type:"time",value:d?(0,er.GP)(d,"HH:mm"):""}),d&&!h?(0,u.jsx)(th,{dataTestId:"reminder-custom-time-error",id:"reminder-custom-time-error",children:"Reminder time must be in the future."}):null,d&&h&&!g?(0,u.jsx)(th,{dataTestId:"reminder-custom-date-error",id:"reminder-custom-date-error",children:"The reminder must be on or before the event date."}):null,(0,u.jsxs)("div",{className:"flex w-full justify-end gap-2",children:[(0,u.jsx)(I.$,{buttonType:"plain",color:"gatsby",dataTestId:"reminder-custom-cancel",onClick:s,size:"small",type:"button",children:"Cancel"}),(0,u.jsx)(I.$,{dataTestId:"reminder-custom-submit",disabled:!v,onClick:k,primary:!0,size:"small",type:"button",children:"Save"})]})]}):null,i.customDateTime?(0,u.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-3",children:[(0,u.jsx)(tf,{htmlFor:"reminder-timezone",children:"Time zone"}),(0,u.jsx)(eX,{align:"right","aria-labelledby":tp("reminder-timezone"),className:tc().borderlessSelect,dataTestId:"reminder-timezone",fitContent:!0,id:"reminder-timezone",onChange:i.setTimeZone,options:N,placement:"top",value:i.timeZone})]}):null]}),i.errors.reminder?(0,u.jsx)(th,{id:"reminder-lead-time-error",children:i.errors.reminder}):null]}),i.requiresSmsConsent?(0,u.jsxs)("div",{className:"flex flex-col gap-2 border-t border-alto px-2 py-4",children:[(0,u.jsx)(H.Sc,{"aria-describedby":i.errors.smsConsent?"reminder-sms-consent-error":void 0,checked:i.smsConsent,className:"checkbox-checkmark-opt-out !items-start",dataTestId:"reminder-sms-consent",error:!!i.errors.smsConsent,id:"reminder-sms-consent",label:"I agree to re
1ceive transactional text messages (invitations, reminders, and event updates) from Paperless Post.",onChange:function(e){return i.setSmsConsent(e.target.checked)}}),i.errors.smsConsent?(0,u.jsx)(th,{id:"reminder-sms-consent-error",children:i.errors.smsConsent}):null]}):null,"none"===i.consentKind||i.isEditingDestination?null:(0,u.jsxs)("div",{className:"flex flex-col gap-2 border-t border-alto px-2 py-4",children:[(0,u.jsx)(H.Sc,{"aria-describedby":["add"===i.consentKind?tu:null,i.errors.consent?tm:null].filter(Boolean).join(" ")||void 0,checked:i.consentChecked,className:"checkbox-checkmark-opt-out !items-start",dataTestId:"reminder-consent",error:!!i.errors.consent,label:"I want to add this reminder to my Paperless Post account.",onChange:function(e){return i.setConsentChecked(e.target.checked)}}),"add"===i.consentKind?(0,u.jsx)("p",{className:"m-0 ml-[30px] text-[13px] font-normal leading-4 text-charcoal",id:tu,children:"We’ll send a code to this ".concat(i.destinationIsPhone?"phone":"email"," to log you in or create a free account.")}):null,i.errors.consent?(0,u.jsx)("p",{className:"m-0 text-[13px] text-[color:var(--monaco,#d70040)]",id:tm,role:"alert",children:i.errors.consent}):null]})]})},tv=n(98552),tb=n(32885),tx=n(63126),ty=n.n(tx),tw="reminder-destination-label",tj="reminder-destination",tk="reminder-destination-error",tN=function(e){var t=e.form,n=(0,O.A)(t.destinationOptions,1)[0];return n?1===t.destinationOptions.length?(0,u.jsx)("p",{className:"mb-2 text-center text-base font-normal leading-6","data-testid":"reminder-destination",children:"We’ll send a reminder to ".concat(n.label)}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{className:"mb-2 text-center text-base font-normal leading-6",id:tw,children:"We’ll send a reminder to"}),(0,u.jsx)("div",{className:"flex justify-center",children:(0,u.jsx)(eX,{"aria-describedby":t.errors.destination?tk:void 0,"aria-invalid":!!t.errors.destination||void 0,"aria-labelledby":"".concat(tw," ").concat(tj,"-value"),className:ty().destinationSelect,dataTestId:"reminder-destination-select",fitContent:!0,id:tj,onChange:t.selectDestination,options:t.destinationOptions,value:t.destination})})]}):null},tO=function(e){var t,n=e.form;return n.canChooseDestination?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("span",{children:(0,u.jsx)(tN,{form:n})}),n.destinationOptions.length>0&&n.errors.destination?(0,u.jsx)("p",{className:"m-0 mt-2 text-center text-[13px] text-[color:var(--monaco)]","data-testid":"reminder-destination-error",id:tk,role:"alert",children:n.errors.destination}):null,(0,u.jsxs)("p",{className:"m-0 mt-2 text-center text-[13px] font-normal leading-4 text-charcoal",children:["If you would like to receive notifications via other methods, add them on the ",(0,u.jsx)(tb.A,{className:"underline",href:"/account/settings",tracking:{id:"reminder-account-settings"},children:"account settings"})," page."]})]}):n.isEditingDestination?(0,u.jsxs)("div",{className:"flex flex-col gap-0 text-left",children:[(0,u.jsxs)("div",{className:"flex items-center gap-2",children:[(0,u.jsx)("div",{className:"min-w-0 flex-1",children:(0,u.jsx)(H.A_,{"aria-label":"Email or phone for reminders",className:ty().destinationInput,dataTestId:"reminder-destination-input",error:null!=(t=n.destinationError)?t:n.errors.destination,onBlur:n.blurDestination,onChange:function(e){return n.changeDestinationDraft(e.target.value)},placeholder:"Enter email or phone (US & Canada only)",value:n.destinationDraft})}),(0,u.jsx)(I.$,{className:ty().destinationAdd,dataTestId:"reminder-destination-save",disabled:!n.isDestinationDraftValid,onClick:n.saveDestination,primary:!0,children:"Add"})]}),(0,u.jsx)(I.$,{buttonType:"plain",className:"mt-4 w-full",color:"gatsby",dataTestId:"reminder-destination-cancel",onClick:n.cancelDestinationEdit,size:"small",surface:"transparent",type:"button",children:"Cancel"})]}):(0,u.jsxs)(u.Fragment,{children:[n.destination?(0,u.jsxs)("p",{className:"mb-2 text-center text-base font-normal leading-6",children:["We’ll send a reminder to ",n.destination]}):null,n.errors.destination?(0,u.jsx)("p",{className:"mb-2 text-center text-[13px] text-[color:var(--monaco)]",role:"alert",children:n.errors.destination}):null,(0,u.jsx)(I.$,{buttonType:"plain",color:"black",dataTestId:"reminder-destination-edit",leftIcon:(0,u.jsx)(tv.default,{}),onClick:n.editDestination,size:"small",surface:"transparent",type:"button",children:n.destination?"Send to a different email or phone":"Add an email or phone"})]})},t_="reminder-confirm-contact-heading",tA=function(e){var t=e.channel,n=e.identifier,a=e.reminderName,r=e.onDismiss;return(0,u.jsx)(T.LC,{className:Z().overlay,isOpen:!0,onDismiss:r,children:(0,u.jsxs)(T.Cf,{"aria-labelledby":t_,className:"relative flex w-full max-w-[26rem] flex-col gap-4 bg-white p-6 outline-none md:rounded-2xl",children:[(0,u.jsxs)("h3",{className:"m-0 text-xl font-medium leading-7",id:t_,children:[(0,u.jsx)("span",{children:"Confirm your\xa0"}),(0,u.jsx)("span",{children:"sms"===t?"phone":"email"})]}),(0,u.jsx)("p",{className:"m-0 text-base font-normal leading-6",children:"sms"===t?"“".concat(a,"” is saved. Verify ").concat(n," and we’ll start sending reminders there."):"“".concat(a,"” is saved. We’re sending a confirmation link to ").concat(n," — open it and we’ll start sending reminders there.")}),(0,u.jsxs)("p",{className:"m-0 text-[13px] font-normal leading-4 text-charcoal",children:[(0,u.jsx)("span",{children:"email"===t?"The link can take a few minutes to arrive. ":""}),(0,u.jsx)("span",{children:"Your reminder is kept either way; it just won’t send until this is confirmed."})]}),(0,u.jsx)(I.$,{dataTestId:"reminder-confirm-contact-done",onClick:r,primary:!0,children:"Done"})]})})},tD=(0,a.A)((0,a.A)({},L.iCu.Email,"email"),L.iCu.Sms,"sms"),tP=function(e){var t,n=e.verificationRequired,a=e.reminderName;return{channel:tD[n.channel],identifier:null!=(t=n.identifier)?t:"",reminderName:a}};n(29702);var tT=L.Kfc,tC=n(84843),tS="pp_pending_reminder_v2",tI=function(e){if("object"!=typeof e||null===e||!("updatedAt"in e)||"string"!=typeof e.updatedAt||!("input"in e))return!1;var t=e.input;return"object"==typeof t&&null!==t&&"name"in t&&"string"==typeof t.name},tE=function(e){if(!(0,tC.S)())try{var t={input:e,updatedAt:new Date().toISOString()};sessionStorage.setItem(tS,JSON.stringify(t))}catch(e){}},tR=function(){if((0,tC.S)())return null;try{var e=sessionStorage.getItem(tS);if(!e)return null;var t=JSON.parse(e);if(!tI(t))return tL(),null;var n=Date.parse(t.updatedAt);if(Number.isNaN(n)||Date.now()-n>18e5)return tL(),null;return t.input}catch(e){return null}},tL=function(){if(!(0,tC.S)())try{sessionStorage.removeItem(tS)}catch(e){}},tM=function(){var e=tR();return e&&tL(),e},tF=function(e){var t=e.trim();return t?(0,E.n4)(t)||(0,E.bA)(t):""},tz=function(e){var t,n,a=e.account,r=e.destination.trim();if(!a||!r)return!1;var i=null!=(t=a.email_addresses)?t:[],l=null!=(n=a.mobile_phone_numbers)?n:[];if(0===i.length&&0===l.length)return!0;var o=r.toLowerCase();if(i.some(function(e){return e.trim().toLowerCase()===o}))return!0;var s=tF(r);return!!s&&l.some(function(e){return tF(e)===s})},tZ=n(54431),tU={availableTransports:[],eventTypes:[],leadTimeOptions:[]},tH=function(e){var t,n,a,r=e.reminderForm,i=e.toTransport;return r?{availableTransports:(null!=(t=r.availableTransports)?t:[]).map(i),eventTypes:(null!=(n=r.eventTypes)?n:[]).map(function(e){var t,n,a;return{key:null!=(t=e.key)?t:"",label:null!=(n=null!=(a=e.label)?a:e.ke
1y)?n:""}}).filter(function(e){return""!==e.key}),leadTimeOptions:(null!=(a=r.leadTimeOptions)?a:[]).map(function(e){var t,n;return{valueMinutes:null!=(t=e.valueMinutes)?t:0,label:null!=(n=e.label)?n:""}})}:tU},tB=L.E8$,tV=(0,a.A)((0,a.A)({},L.iCu.Email,"email"),L.iCu.Sms,"sms"),tq=function(e){return tV[e]},tY=new Set(["birthday","anniversary","holiday"]),tK=function(e){var t;return e.customDateTime&&e.date?ej({eventYmd:el("annual"===e.cadence?ed({date:e.date,from:e.customDateTime}):e.date),customTime:e.customDateTime,timeZone:e.timeZone}):null!=(t=e.leadTimeMinutes)?t:0},tW=function(e){if(!e.eventType||!e.date)throw Error("buildCreateMemorableDateInput requires an event type and date");return{name:e.name.trim(),date:eo({date:e.date,timeZone:e.timeZone}),timeZone:e.timeZone,eventType:e.eventType,transport:eF(e.emailOrPhone),cadence:e.cadence,leadTimeMinutes:tK(e),emailOrPhone:e.emailOrPhone,emailAddressId:null,mobilePhoneNumberId:null}};function tG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function t$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tG(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tX={annual:L.qbm.Annual,oneShot:L.qbm.OneShot},tJ={email:L.iCu.Email,sms:L.iCu.Sms};function tQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function t0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tQ(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function t1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function t2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?t1(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var t4="We couldn’t send a verification code. Please try again.",t5="reminder-no-destination",t3=function(e){var t,n,a=e.isOpen,i=e.onDismiss,l=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.enabled,a=void 0===n||n,r=(0,tZ.IT)(tB,{skip:!a}),i=r.data,l=r.error,o=r.loading,s=tH({reminderForm:null==i||null==(e=i.memorableDateReceiverAction)?void 0:e.reminderForm,toTransport:tq}),c=a&&!o&&(!!l||!s.leadTimeOptions.length||!s.eventTypes.length);return{config:s,loading:o,failed:c}}({enabled:a}),o=l.config,s=l.failed,c=l.loading,m=(0,d.hD)(),p=(0,P.n)(tT,{refetchQueries:["HomepageReceiverSaveImportantDateTile"],awaitRefetchQueries:!0}),h=(0,O.A)(p,2),g=h[0],v=h[1].loading,b=(0,d.A$)(),x=(0,r.useState)(),y=x[0],w=x[1],j=(0,r.useState)({kind:"idle"}),k=j[0],_=j[1],z=(0,r.useState)(!1),U=z[0],H=z[1],V=(0,r.useRef)(null);(0,r.useEffect)(function(){if("saved"===k.kind){var e=setTimeout(function(){return _({kind:"idle"})},5e3);return function(){return clearTimeout(e)}}},[k]);var q=(t=(0,N.A)(A().mark(function e(t){var n,a,r;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(v||"needs-confirmation"===k.kind)){e.next=2;break}return e.abrupt("return");case 2:return _({kind:"idle"}),e.prev=3,e.next=6,g({variables:{input:t}});case 6:if(!(r=null==(a=e.sent.data)||null==(n=a.CreateMemorableDate)?void 0:n.verificationRequired)){e.next=12;break}return _(t2({kind:"needs-confirmation"},tP({verificationRequired:r,reminderName:t.name}))),e.abrupt("return");case 12:_({kind:"saved",reminderName:t.name}),i(),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(3),(0,F.v)({message:"CreateMemorableDate failed",cause:e.t0,severity:"error",source:"CreateReminderModal",metadata:{eventType:t.eventType,cadence:t.cadence}}),_({kind:"error",message:"Something went wrong. Please try again."});case 20:case"end":return e.stop()}},e,null,[[3,16]])})),function(e){return t.apply(this,arguments)}),Y=(n=(0,N.A)(A().mark(function e(t){var n,a,r,i,l;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=null!=(n=t.emailOrPhone)?n:"",r=t.transport===L.iCu.Sms,_({kind:"preparing-account"}),tE(t),e.prev=4,e.next=7,(0,M.c_)({dispatch:b,payload:t2({email_or_phone:r?(0,E.n4)(a):a},r?{delivery_channel:"sms"}:{})});case 7:if("code_sent"!==(l=e.sent).type){e.next=12;break}return _({kind:"idle"}),w("VERIFY_CODE"),e.abrupt("return");case 12:tL(),_({kind:"error",message:"error"===l.type&&(null==(i=l.errors)?void 0:i[0])||t4}),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(4),(0,F.v)({message:"Failed to start auth for a reminder",cause:e.t0,severity:"error"}),tL(),_({kind:"error",message:t4});case 21:case"end":return e.stop()}},e,null,[[4,16]])})),function(e){return n.apply(this,arguments)}),K=function(e){var t,n,a,i,l=e.availableTransports,o=e.onSubmit,s=(0,d.hD)(),c="logged-in"===s.status?s.account:null,u=(null!=(t=null==c?void 0:c.email_addresses)?t:[]).filter(function(e){return e!==(null==c?void 0:c.email_address)||(null==c?void 0:c.is_confirmed)}),m=(null!=(n=null==c?void 0:c.mobile_phone_numbers)?n:[]).filter(eM),p=null!=(a=null!=(i=u[0])?i:m[0])?a:null,f="logged-in"===s.status,h=f&&0===u.length&&0===m.length,g=f?[].concat((0,B.A)(u.map(function(e){return{value:e,label:e}})),(0,B.A)(m.map(function(e){return{value:e,label:(0,E.oB)(e)}}))):[],v=(0,r.useState)(p),b=v[0],x=v[1],y=(0,r.useState)(!p),w=y[0],j=y[1],k=(0,r.useState)(null!=p?p:""),N=k[0],O=k[1],_=(0,r.useState)(!1),A=_[0],D=_[1],P=eL(N),T=(0,R.e)(function(){if(A&&""!==N.trim()&&!P)return"Enter a valid email or phone (US & Canada only)"}),C=(0,r.useState)(""),S=C[0],I=C[1],L=(0,r.useState)(null),M=L[0],F=L[1],z=(0,r.useState)(function(){return ef({timeZone:eS()})}),Z=z[0],U=z[1],H=(0,r.useState)("oneShot"),V=H[0],q=H[1],Y="annual"===V,K=(0,r.useState)(!1),W=K[0],G=K[1],$=(0,r.useState)("0"),X=$[0],J=$[1],Q=(0,r.useState)(null),ee=Q[0],et=Q[1],en=(0,r.useState)(eS()),ea=en[0],er=en[1],ei=(0,r.useState)({}),el=ei[0],eo=ei[1],es=(0,r.useState)(!1),ec=es[0],ed=es[1],eu=(0,r.useState)(0),em=eu[0],ep=eu[1],eh=eM(b),eg=(0,R.e)(function(){return"loading"!==s.status&&"logged-in"!==s.status&&b?"add":"none"}),ev=(0,r.useState)(!1),eb=ev[0],ex=ev[1],ey=(0,r.useState)(p),ew=ey[0],ej=ey[1];if(ew!==p){ej(p);var ek=f&&null!==b&&!tz({account:c,destination:b});
1p&&(null===b||ek)&&(x(p),O(p),j(!1),ed(!1),ex(!1))}var eN=X===eI,eO=X&&!eN?Number(X):null,eA=function(e){e_(t0(t0({},e),{},{reminderOption:X,customDateTime:ee,timeZone:ea}))&&(J(null),et(null))},eD=function(){var e=ez({name:S,eventType:M,date:Z,cadence:V,reminderOption:X,isCustomTime:eN,customDateTime:ee,hasDestinationField:!0,destination:b,isEditingDestination:w,requiresSmsConsent:eh,smsConsent:ec,timeZone:ea,availableTransports:l});return"none"===eg||eb||(e.consent="Please confirm adding this reminder to your account"),e};return{name:S,eventType:M,date:Z,recursAnnually:Y,reminderOption:X,customDateTime:ee,isCustomTime:eN,timeZone:ea,errors:el,refusedSubmits:em,destination:b,isEditingDestination:w,destinationDraft:N,destinationError:T,isDestinationDraftValid:P,canChooseDestination:f,hasNoUsableDestination:h,destinationOptions:g,selectDestination:function(e){ed(!1),ex(!1),x(e),O(e),eo(function(e){return t0(t0({},e),{},{destination:void 0})})},consentKind:eg,consentChecked:eb,setConsentChecked:ex,destinationIsPhone:eh,setName:I,setEventType:function(e){F(e),W||q(null!=e&&tY.has(e)?"annual":"oneShot")},setDate:function(e){U(e),eN||eA({eventDate:e,recursAnnually:Y,isCustomTime:!1})}
1,toggleRecursAnnually:function(e){q(e?"annual":"oneShot"),G(!0),eA({eventDate:Z,recursAnnually:e,isCustomTime:eN})},selectReminderOption:function(e){J(e),e!==eI&&et(null)},setCustomDateTime:et,setTimeZone:er,setDestinationDraft:O,changeDestinationDraft:function(e){O(/\d/.test(e)&&!/[a-zA-Z@]/.test(e)?(0,E.oB)(e):e),D(!1),eo(function(e){return t0(t0({},e),{},{destination:void 0})})},blurDestination:function(){return D(!0)},editDestination:function(){O(null!=b?b:""),D(!1),eo(function(e){return t0(t0({},e),{},{destination:void 0})}),j(!0)},saveDestination:function(){P?(ed(!1),ex(!1),x(N.trim()),j(!1),eo(function(e){return t0(t0({},e),{},{destination:void 0})})):D(!0)},cancelDestinationEdit:function(){O(null!=b?b:""),j(!1),b&&eo(function(e){return t0(t0({},e),{},{destination:void 0})})},smsConsent:ec,requiresSmsConsent:eh,setSmsConsent:ed,handleSubmit:function(){if(!h){var e,t=eD();if(eo(t),Object.keys(t).length>0)return void ep(function(e){return e+1});o(t$(t$({},e=tW({name:S,eventType:M,date:Z,cadence:V,leadTimeMinutes:eO,customDateTime:eN?ee:null,emailOrPhone:b,timeZone:ea})),{},{reminderAt:null,cadence:tX[e.cadence],transport:tJ[e.transport]}))}}}}({availableTransports:o.availableTransports,onSubmit:function(e){"logged-in"!==m.status?Y(e):q(e)}});return(0,r.useEffect)(function(){if(K.refusedSubmits){var e=V.current;if(e){var t=e.querySelector('[aria-invalid="true"], [role="alert"]');null==t||t.scrollIntoView({block:"center"}),null!=t&&t.matches('[aria-invalid="true"]')&&t.focus({preventScroll:!0})}}},[K.refusedSubmits]),(0,r.useEffect)(function(){if(U&&"logged-in"===m.status){H(!1);var e,t=tR();if(t){var n=null!=(e=t.emailOrPhone)?e:"";tz({account:m.account,destination:n})&&(tM(),q(t))}}},[U,m]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(T.LC,{className:Z().overlay,isOpen:a,onDismiss:i,children:(0,u.jsxs)(T.Cf,{"aria-label":"Add an important date",className:"relative flex h-full max-h-full w-full max-w-480px flex-col overflow-hidden bg-white/80 outline-none md:h-auto md:min-h-[35rem] md:max-h-[45rem] md:rounded-2xl",children:[(0,u.jsx)("div",{className:"absolute inset-x-0 top-0 z-1 p-4",children:(0,u.jsx)(C.K,{"aria-label":"Close",color:"white",dataTestId:"create-reminder-close",onClick:i,size:"large",children:(0,u.jsx)(S.default,{})})}),(0,u.jsxs)("div",{className:"flex min-h-[26.5rem] flex-1 flex-col overflow-y-auto px-4 pb-24 pt-18",ref:V,children:[(0,u.jsxs)("div",{className:"pb-6 pt-2 text-center",children:[(0,u.jsx)("h3",{className:"mb-1 text-center text-xl font-medium leading-7",children:"Add an important date"}),(0,u.jsx)(tO,{form:K})]}),(0,u.jsx)("div",{className:"rounded-2xl bg-white px-2 py-6",children:(0,R.e)(function(){return c?(0,u.jsx)("p",{className:"m-0 p-4 text-center text-[13px]",role:"status",children:"Loading reminder options…"}):s?(0,u.jsx)("p",{className:"m-0 p-4 text-center text-[13px]",role:"alert",children:"We couldn’t load the reminder options. Refresh the page to try again."}):(0,u.jsx)(tg,{config:o,form:K})})})]}),(0,u.jsxs)("div",{className:"bg-white px-4 py-6",children:[K.hasNoUsableDestination?(0,u.jsx)("p",{className:"m-0 mb-2 text-[13px] text-charcoal","data-testid":"reminder-no-destination",id:t5,children:"Confirm an email address, or a US or Canada phone number, on your account to create reminders — then refresh this page."}):null,"error"===k.kind?(0,u.jsx)("p",{className:"m-0 mb-2 text-[13px] text-[color:var(--monaco,#d70040)]",role:"alert",children:k.message}):null,(0,u.jsx)("div",{className:"flex",children:(0,u.jsx)(I.$,{"aria-describedby":K.hasNoUsableDestination?t5:void 0,"aria-disabled":K.hasNoUsableDestination||void 0,className:(0,D.A)("flex-1",K.hasNoUsableDestination&&"opacity-50"),dataTestId:"reminder-submit",disabled:v||c||s||"preparing-account"===k.kind||"needs-confirmation"===k.kind,onClick:function(){return K.handleSubmit()},primary:!0,children:"Create reminder"})})]})]})}),y?(0,u.jsx)(f.Ay,{initialAction:y,isOpen:!0,onDismiss:function(e){(w(void 0),(0,f.tP)(e)||0===e)?H(!0):tL()},redirectUrl:"/"}):null,"needs-confirmation"===k.kind?(0,u.jsx)(tA,{channel:k.channel,identifier:k.identifier,onDismiss:function(){_({kind:"idle"}),i()},reminderName:k.reminderName}
1):null,"saved"===k.kind?(0,u.jsx)("div",{className:"fixed inset-x-0 bottom-4 z-[100] flex justify-center px-4",children:(0,u.jsx)("output",{className:"m-0 max-w-sm rounded-full bg-black px-4 py-2 text-center paragraph-small text-white shadow-lg",children:"“".concat(k.reminderName,"” was added!")})}):null]})},t6=n(56942),t8=L.Cum,t7=function(e){var t=e.enabled,n=e.isLoggedIn,a=(0,t6.u)("show-memorable-dates-flow"),i=(0,O.A)(a,1)[0],l=t&&n&&i,o=(0,tZ.IT)(t8,{skip:!l,fetchPolicy:"cache-and-network",ssr:!1}),s=o.data,c=o.loading;return(0,r.useMemo)(function(){if(!l)return{visible:!1,loading:!1,copy:null,upcomingReminder:null,variant:null};if(c)return{visible:!0,loading:!0,copy:null,upcomingReminder:null,variant:null};var e,t,n,a,r,i=null==s||null==(e=s.memorableDateReceiverAction)?void 0:e.tile,o=null==i?void 0:i.copy,d=null==i?void 0:i.upcomingReminder,u=!(null!=i&&i.suppressed)&&null!=d&&d.eventType&&d.date&&null!=d.daysUntil&&d.label&&d.browsePlpUrl?{eventType:d.eventType,date:d.date,daysUntil:d.daysUntil,label:d.label,browsePlpUrl:d.browsePlpUrl}:null;return{visible:!!i&&!i.suppressed,loading:!1,copy:null!=o&&o.title||null!=o&&o.subtitle||null!=o&&o.ctaLabel?{title:null!=(t=o.title)?t:null,subtitle:null!=(n=o.subtitle)?n:null,ctaLabel:null!=(a=o.ctaLabel)?a:null}:null,upcomingReminder:u,variant:null!=(r=null==i?void 0:i.variant)?r:null}},[s,l,c])},t9=function(){var e=(0,d.hD)(),t=e.status,n="logged-in"===e.status?e.account:null,a=(0,P.n)(tT,{refetchQueries:[t8]}),i=(0,O.A)(a,1)[0],l=(0,r.useRef)(!1),o=(0,r.useState)(null),s=o[0],c=o[1];return(0,r.useEffect)(function(){if("logged-in"===t&&!l.current){var e,a=tM();if(a){if(l.current=!0,!tz({account:n,destination:null!=(e=a.emailOrPhone)?e:""}))return void(0,F.v)({message:"Discarded a pending reminder for a destination the account does not hold",severity:"warning"});i({variables:{input:a}}).then(function(e){var t,n=e.data,r=null==n||null==(t=n.CreateMemorableDate)?void 0:t.verificationRequired;r&&c(tP({verificationRequired:r,reminderName:a.name}))}).catch(function(e){(0,F.v)({message:"Failed to create a resumed pending reminder",cause:e,severity:"error"})})}}},[t,n,i]),{confirmation:s,dismissConfirmation:function(){return c(null)}}},ne=function(e){var t=e.isOpen,n=e.onDismiss,a=(0,t6.u)("show-memorable-dates-flow"),i=(0,O.A)(a,1)[0],l=t9(),o=l.confirmation,s=l.dismissConfirmation,c=(0,r.useState)(0),d=c[0],m=c[1],p=(0,r.useState)(t),f=p[0],h=p[1];f!==t&&(h(t),t&&m(function(e){return e+1}));var g=o?(0,u.jsx)(tA,{channel:o.channel,identifier:o.identifier,onDismiss:s,reminderName:o.reminderName}):null;return i?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(t3,{isOpen:t,onDismiss:n},d),g]}):g},nt=n(79248),nn=n(14e3),na=n(18549),nr=n(41928);function ni(){var e=(0,r.useState)({status:"pending"}),t=e[0],n=e[1];return(0,r.useEffect)(function(){n({status:"resolved",session:(0,nr.X)()})},[]),t}var nl=L.ByR,no=L.aC,ns=function(e){var t=e.enabled,n=e.isLoggedIn,a=e.guestTokenFromSession,i=e.pageIdFromSession,l=(null==a?void 0:a.trim())||"",o=(null==i?void 0:i.trim())||"",s=t&&!n&&!!l&&!!o,c=t&&n&&!!o,d=(0,tZ.IT)(nl,{skip:!c,fetchPolicy:"cache-and-network",ssr:!1}),u=d.data,m=d.loading,p=d.error,f=(0,tZ.IT)(no,{skip:!s,variables:{pageId:o,ppG:l},fetchPolicy:"cache-and-network",ssr:!1}),h=f.data,g=f.loading,v=f.error;return{featuredPage:(0,r.useMemo)(function(){if(!t)return null;if(s){if(v||!(null!=h&&h.page))return null;var e,n,a,r,i,d=h.page.event;return null!=d&&d.name?{pageId:o,guestToken:l,previewImageUrl:null!=(i=h.page.previewImageUrl)?i:null,event:{name:d.name,startTime:d.startTime,endTime:d.endTime,allDay:d.allDay,inviteFrom:d.inviteFrom,address:d.address}}:null}if(!c||p||!u)return null;var m=(null!=(e=null==(n=u.receivedPages)?void 0:n.edges.map(function(e){return e.node}))?e:[]).find(function(e){return e.id===o});if(!m)return null;var f=m.event,g=null==(a=m.receiver)||null==(a=a.guestToken)?void 0:a.trim();return null!=f&&f.name&&g?{pageId:m.id,guestToken:g,previewImageUrl:null!=(r=m.previewImageUrl)?r:null,event:{name:f.name,startTime:f.startTime,endTime:f.endTime,allDay:f.allDay,inviteFrom:f.inviteFrom,address:f.address}}:null},[t,s,c,h,v,u,p,o]),loading:t&&(s&&g||c&&m)}},nc=["kids_birthday","adult_birthday","pro_greeting","pro_invitation","holidays","milestone_events","baby","general_entertaining","wedding","other"],nd=function(e){var t,n=null==e?void 0:e.trim();return n&&null!=(t=nc.find(function(e){return e===n}))?t:null},nu={kids_birthday:"kids_birthday",adult_birthday:"adult_birthday",pro_greeting:"cross_bridge",pro_invitation:"cross_bridge",holidays:"cross_bridge",milestone_events:"all_other",baby:"all_other",general_entertaining:"all_other",wedding:"all_other",other:"all_other"},nm=L.kx2,np=L.EJc,nf=function(e){var t,n,a,i,l,o,s=e.enabled,c=e.isLoggedIn,d=e.accountId,u=e.guestTokenFromSession,m=e.guestIdFromSession,p=e.eventIdFromSession,f={accountId:null!=(t=null==d?void 0:d.trim())?t:"",guestToken:null!=(n=null==u?void 0:u.trim())?n:"",guestId:null!=(a=null==m?void 0:m.trim())?a:"",eventId:null!=(i=null==p?void 0:p.trim())?i:""},h=s&&c&&!!f.accountId,g=s&&!c&&!!f.guestToken&&!!f.guestId&&!!f.eventId,v=(0,tZ.IT)(nm,{skip:!h,variables:{accountId:f.accountId},ssr:!1}),b=(0,tZ.IT)(np,{skip:!g,variables:{eventId:f.eventId,guestId:f.guestId,guestToken:f.guestToken},ssr:!1}),x=null==(l=v.data)||null==(l=l.accountFeatures)?void 0:l.accountFeatures,y=null==(o=b.data)?void 0:o.guestDetails;return{data:(0,r.useMemo)(function(){var e,t=(0,R.e)(function(){return h?x:g?y:null});if(!t)return null;var n=nd(t.lastReceivedL1),a=(null==(e=t.lastReceivedEventId)?void 0:e.trim())||null;return n||a?{lastReceivedL1:n,lastReceivedEventId:a}:null},[h,g,x,y]),loading:s&&(h&&v.loading||g&&b.loading)}},nh=function(){var e,t,n,a,r,i=(0,d.hD)(),l=ni(),o="resolved"===l.status?l.session:null,s="logged-in"===i.status?String(i.account.id):null,c=null!==o,u="loading"!==i.status&&c,m=nf({enabled:u,isLoggedIn:"logged-in"===i.status,accountId:s,guestTokenFromSession:null!=(t=null==o?void 0:o.guestToken)?t:null,guestIdFromSession:null!=(n=null==o?void 0:o.guestId)?n:null,eventIdFromSession:null!=(a=null==o?void 0:o.eventId)?a:null}),p=m.data,f=m.loading;return u?f?{archetype:null,loading:!0}:{archetype:(e=null!=(r=null==p?void 0:p.lastReceivedL1)?r:null)&&nu[e]||"all_other",loading:!1}:null},ng="upcoming-reminder-home-hero",nv=function(e){return h.cL.get(ng,{userAttributes:{eventType:e}}).promise().catch(function(){return null})},nb=function(e){var t,n,a,r=(0,nt.r)({queryKey:[ng,e],queryFn:(t=(0,N.A)(A().mark(function t(){var n;return A().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,nv(e);case 4:return n=t.sent,t.abrupt("return",null!=n?n:nv("default"));case 6:case"end":return t.stop()}},t)})),function(){return t.apply(this,arguments)}),enabled:!!e,retry:!1,ssr:!1}).data,i=null==r?void 0:r.data;return i?{desktopVideoId:null!=(n=i.desktopVideoId)?n:null,mobileVideoId:null!=(a=i.mobileVideoId)?a:null}:null},nx=n(22569);function ny(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function nw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ny(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ny(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var nj=k.APP_PROMO,nk=n(77685),nN=n(12183),nO=n(64117),n_=function(e){var t=e.className,n=e.heading,a=e.testId,i=e.strategy,l=e.categories,o=e.numResults,s=e.blockName,c=e.trackScrollDepth,d=e.experimentVariant,m=(0,r.useState)(!1),p=m[0],f=m[1];return p?null:(0,u.jsxs)("div",{className:t,"data-testid":a,children:[(0,u.jsx)(nO.R,{children:n}),(0,u.jsx)("div",{className:"pt-4",children:(0,u.jsx)(nk.A,{className:"relative",children:(0,u.jsx)(nN.A,{size:"personalized-homepage-slat",strategy:i,categories:l,numResults:o,blockName:s,cardsOnly:!0,showTitle:!1,showScrollButtons:!0,onEmptyChange:f,trackScrollDepth:c,experimentVariant:d})})})]})},nA=n(44552);function nD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function nP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nD(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var nT=k.BLOG_POSTS,nC=n(88057),nS=n(66158),nI=n(92956),nE=n(41098),nR=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1];return(0,r.useEffect)(function(){if(!(0,tC.S)()){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=function(){return n(e.matches)};return(t(),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}):(e.addListener(t),function(){return e.removeListener(t)})}},[]),t},nL=n(94759),nM=n(16756),nF=n(31913),nz=n(20274),nZ={headline:"Make one-of-a-kind invitations, your way",left:{hed:"Upload your own design",body:"Already have a photo or existing design you want to use? Upload it to one of our templates, then send and manage everything in one place.",ctaLabel:"UPLOAD NOW",ctaHref:"/cards/group/upload-your-own",assetId:"p-2YPr8548qNWbK1pM1w8pzW",alt:"Customizable card templates layered in front of a maroon envelope with a gold liner"},right:{hed:"Create a Flyer in minutes",body:"Let your creativity shine! Make a free online invitation—with RSVP tracking included—using images, GIFs, stickers, and more",ctaLabel:"CREATE NOW",ctaHref:(0,nz.T_)({compId:nF.z,flow:"cover-art-images"}),assetId:"p-1nRL3Aj0HS545hvHPmWzwV",alt:"A phone displaying a Paperless Post Flyer invitation titled “Party time” with an RSVP button"}},nU="GET STARTED",nH="/cards/section/invitations",nB=[{slug:"browse",hed:"Choose a design",dek:"Explore 1,000s of beautiful invitation templates.",videoAssetId:"p-6y9aaTIQ5z3PpEsBhF5Y4",posterAssetId:"p-oi6sMOsJMqUeVlBBtmOiC"},{slug:"customize",hed:"Customize everything",dek:"Edit any invitation to make it your own.",videoAssetId:"p-2PlzSHke0NEiJAHwbxWbgj",posterAssetId:"p-3t63TnsWXohF29WnQed0YW"},{slug:"rsvp",hed:"Send instantly",dek:"Share invitations via email, text, or link, and track RSVPs.",videoAssetId:"p-1illp65h9srfD3bm2wOEUX",posterAssetId:"p-2gVs6AnbNRmwcPLuQEm3BJ"}],nV=[{id:"is-paperless-post-free",question:"Is Paperless Post free?",answer:"Paperless Post has free options, including Flyer invites that can be sent to up to 50 guests, as well as free Card templates. Adding certain elements—such as envelopes, backdrops, and liners—can increase the cost of your invitations."},{id:"what-are-coins",question:"What are Coins, and when do I need them?",answer:"Coins are Paperless Post’s virtual credits used for sending premium online invitations. Before sending, you can purchase the amount of Coins you need, or if you’re hosting multiple events per year, subscribe to Paperless Pro to pay one annual price—no Coins required."},{id:"track-rsvps-send-reminders",question:"Can I track RSVPs and send reminders?",answer:"Yes, every Paperless Post online invitation includes a free tracking page showing opens and RSVPs in real-time. Hosts can also send RSVP reminders to guests for free via email or text."},{id:"upload-own-design",question:"Can I upload my own design?",answer:"Yes, you can upload an image, GIF, video, or existing design created using sites like Canva or Corjl. Create a custom online invitation using a single or double-sided Card invitation, or design your own Flyer invite from scratch for free."},{id:"card-vs-flyer",question:"What’s the difference between a Card and a Flyer?",answer:"Cards are classic, stationery-inspired designs that resemble an invitation coming out of an envelope, along with curated elements such as a liner, stamp, and backdrop. Flyer invites are textable online event pages that you can customize with GIFs, stickers, and more. Both invitation styles support RSVP tracking and guest messaging."},{id:"share-via-text-social",question:"How do I share my invitation via text or social media?",answer:"You can send Paperless Post invitations directly to guests via email or text through our platform, or pay a flat fee and generate a Shareable Link to distribute wherever you like, such as text message, group chat, WhatsApp, or social media."},{id:"customize-after-send",question:"Can I customize my design after I send it?",answer:"Yes. You can go back and edit the text, event details, and design elements on your invitation at any time. Guests will see the updated version."},{id:"invite-group-family-couple",question:"How do I invite a group, family, or couple?",answer:"Send one combined invitation to a group, family, or couple using the ‘Add couple/family’ option on your guest list page. You can also allow guests to bring guests, providing the RSVP information for their plus-ones."},{id:"design-inspiration",question:"Where can I find invitation design inspiration?",answer:"Browse our expansive collection of digital invitation designs by occasion, style, theme, or designer. You can also favorite a design to save it for later."}],nq="The easy-to-use online invitation maker",nY=[{slug:"design",label:"One-of-a-kind design",caption:"Customize your invitation with stickers, p
1hotos, text, and colors.",assetId:"p-58vxPM5xwmlPllqbprUpFp",alt:"Adding photos and choosing a handwritten font while customizing an invitation"},{slug:"event-page",label:"An event page to match",caption:"Edit the backdrop, text, and style of your event page.",assetId:"p-6djYyekZFjaKfRdnkjq6Vv",alt:"An illustrated farm-party event page with backdrop and font style pickers"},{slug:"details",label:"All the details in one place",caption:"Provide everything guests need to know in organized sections.",assetId:"p-27vEXghshnxo3zpaUXxBiH",alt:"A wedding event page with registry links and a schedule of events"},{slug:"guest-experience",label:"The best guest experience",caption:"Collect useful planning information from your guests.",assetId:"p-1ZO9pHFrCGqBHdId1ziemy",alt:"A guest questionnaire with meal choices and event RSVP checkboxes"}],nK=function(e){var t=e.className,n=nR(),a=(0,nE.y)({count:nY.length,intervalMs:5e3,paused:n}),i=a.selectedIndex,l=a.isInView,o=a.containerRef,s=a.select,c=a.stop,d=(0,r.useRef)([]),m=function(e){var t=e.index,n=e.label;s(t),(0,nM.Ay)({name:"pbr_link_clicked",data:{id:n,block_name:"online_invitation_maker_slat",action:"click"}})},p=function(e){var t;s(e),null==(t=d.current[e])||t.focus()},f=function(e){var t=e.event,n=e.index,a=nY.length-1,r={ArrowDown:n===a?0:n+1,ArrowRight:n===a?0:n+1,ArrowUp:0===n?a:n-1,ArrowLeft:0===n?a:n-1,Home:0,End:a}[t.key];void 0!==r&&(t.preventDefault(),p(r))},h=nY[i];return h?(0,u.jsxs)("section",{ref:o,"data-testid":"value-prop-slat",className:(0,D.A)("lg:grid min-h-[500px] grid-cols-[1.4fr_0.5fr_1fr] grid-rows-1 overflow-hidden bg-[#D5DCCA] text-black",t),children:[(0,u.jsxs)("div",{className:"flex flex-col justify-center px-12 py-8 xl:px-16",children:[(0,u.jsx)("p",{className:"font-basis text-[16px] font-bold uppercase leading-[34px] tracking-[5.69px]",children:"ELEVATED AND EFFORTLESS"}),(0,u.jsx)("h2",{className:"mt-4 font-basis text-[38px] font-normal leading-14 text-black",children:nq}),(0,u.jsx)("div",{role:"tablist","aria-label":nq,"aria-orientation":"vertical",onFocus:c,className:"mt-6 flex max-w-[400px] flex-col gap-4",children:nY.map(function(e,t){return(0,u.jsx)("button",{ref:function(e){d.current[t]=e},type:"button",role:"tab",id:"value-prop-tab-".concat(t),"aria-selected":i===t,"aria-controls":"value-prop-panel",tabIndex:i===t?0:-1,"data-testid":"value-prop-pill-".concat(t),onClick:function(){return m({index:t,label:e.label})},onKeyDown:function(e){return f({event:e,index:t})},className:(0,D.A)("rounded-xl border p-4 text-left font-basis text-base font-medium transition-all duration-300",i===t?"border-black bg-white/75 text-black":"border-black/25 bg-transparent text-black/75 hover:border-black/40"),children:e.label},e.slug)})})]}),(0,u.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3 px-2",children:[(0,u.jsx)(nI.d,{animate:l&&!n,className:(0,D.A)(!l&&"opacity-0")},l?"arrow-".concat(i):"arrow-hidden"),(0,u.jsx)("p",{id:"value-prop-panel",role:"tabpanel","aria-labelledby":"value-prop-tab-".concat(i),"data-testid":"value-prop-caption",className:"max-w-[204px] font-basis text-[16px] font-normal leading-[26px] text-black",children:h.caption})]}),(0,u.jsx)("div",{"data-testid":"value-prop-image",className:"relative",children:nY.map(function(e,t){return(0,u.jsx)("div",{"aria-hidden":t!==i,className:(0,D.A)("absolute inset-0 h-full w-full",n?void 0:"transition-opacity duration-500 ease-in-out",t===i?"opacity-100":"opacity-0"),children:(0,u.jsx)(nS.K,{className:"h-full w-full object-contain object-right",mediaRenditions:[{size:"md",src:e.assetId}],transparent:!0,lazyLoad:!0,alt:e.alt,sizes:"35vw",minWidth:nL.fi.md,maxWidth:nL.fi["2xl"]})},e.slug)})})]}):null};function nW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function nG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nW(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nW(Object(n)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var n$=n(50063),nX=n(10402),nJ=n(21674),nQ=n(58068),n0=n(16933),n1=n(25931),n2=n(93023),n4=n(27724),n5=n(98053),n3=n(60513),n6=["productType"];function n8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function n7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n8(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var n9=n3.z.object({name:n3.z.string(),href:n3.z.string(),compositionId:n3.z.string(),productType:n3.z.enum(["card","flyer"]),logoAssetId:n0.BK}),ae=function(e){var t=e.className;return(0,u.jsx)("div",{className:(0,D.A)("2xl:px-6 mt-8 mb-14 lg:mt-14 lg:mb-16",t),children:(0,u.jsx)("div",{className:"grid grid-rows-2 lg:grid-rows-1 grid-flow-col auto-cols-max gap-x-2 gap-y-6 lg:gap-4 w-max max-w-full mx-auto py-4 justify-items-center pl-4 md:pl-6 2xl:pl-0",children:Array.from({length:8},function(e,t){return(0,u.jsxs)("div",{className:"flex flex-col items-center",children:[(0,u.jsx)("div",{className:"bg-panna-cotta animate-loading-pulse h-44 w-36 lg:w-72 lg:h-96",style:{animationDelay:"".concat(150*t,"ms")}}),(0,u.jsxs)("div",{className:"text-center mt-2 lg:mt-4 tracked-small lg:tracked-medium border-b border-transparent pb-1 relative",children:[(0,u.jsx)("span",{className:"invisible",children:"Designer Name"}),(0,u.jsx)("div",{className:"absolute inset-0 bg-[#E5E5E5] animate-loading-pulse rounded",style:{animationDelay:"".concat(150*t,"ms")}})]})]},t)})})})},at=function(e){var t,n,a,r,i=e.designers,l=e.className,o=i.filter(function(e){return"card"===e.productType}).map(function(e){return e.compositionId}),s=i.filter(function(e){return"flyer"===e.productType}).map(function(e){return e.compositionId}),c=(0,tZ.IT)(n5.ax,{variables:{cardIds:o,cardsPageSize:Math.max(o.length,1),flyerIds:s,flyersPageSize:Math.max(s.length,1)},ssr:!1}),d=Object.fromEntries(null!=(t=null==(n=c.data)||null==(n=n.cards)?void 0:n.edges.map(function(e){var t;return[null==(t=e.node.composition)?void 0:t.id,e.node.composition]}))?t:[]),m=Object.fromEntries(null!=(a=null==(r=c.data)||null==(r=r.flyers)?void 0:r.edges.map(function(e){var t;return[null==(t=e.node.composition)?void 0:t.id,e.node.composition]}))?a:[]),p=i.map(function(e){var t=e.productType,n=(0,eU.A)(e,n6),a=(0,R.e)(function(){return"card"===t?{productType:t,composition:d[n.compositionId]}:"flyer"===t?{productType:t,composition:m[n.compositionId]}:void(0,nX.z)(t)});return n7(n7({},n),a)});return(0,u.jsxs)("div",{className:(0,D.A)("2xl:px-6 mt-8 mb-14 lg:mt-14 lg:mb-16",l),children:[(0,u.jsx)(nO.R,{children:"Designer collections"}),(0,u.jsx)(n1.J,{children:(0,u.jsxs)("div",{className:"grid grid-rows-2 lg:grid-rows-1 grid-flow-col auto-cols-max gap-x-2 gap-y-6 lg:gap-4 w-max max-w-full mx-auto py-4 justify-items-center pl-4 md:pl-6 2xl:pl-0",children:[p.map(function(e){return c.loading||e.composition?(0,u.jsxs)(tb.A,{tracking:{id:e.name,block_name:"designer_tile"},className:"flex flex-col items-center group",href:e.href,children:[(0,u.jsx)("div",{className:(0,D.A)("bg-panna-cotta hover:bg-panna-cotta-focused transition-colors duration-200 h-44 w-36 lg:w-72 lg:h-96",{"animate-loading-pulse":c.loading}),children:(0,u.jsxs)("div",{className:"h-full w-full grid grid-rows-[1fr_4fr] gap-2 lg:gap-6",children:[(0,u.jsx)("div",{className:"flex items-center justify-center px-4 pt-2 lg:px-10 lg:pt-4 min-h-0",children:(0,u.jsx)(nS.K,{transparent:!0,mediaRenditions:[{size:"sm",src:e.logoAssetId}],minWidth:100,maxWidth:500,sizes:"50vw",alt:"Logo for ".concat(e.name),className:"max-w-full max-h-full object-contain"})}),(0,u.jsx)("div",{className:"min-h-0",children:(0,R.e)(function(){if(!e.composition)return null;if("card"===e.productType){var t,n,a,r,i,l,o,s=null==(t=e.composition)||null==(t=t.artifacts)||null==(t=t.cardFront)?void 0:t.asset,c=null==(n=e.composition)||null==(n=n.artifacts)||null==(n=n.envelopeBack)?void 0:n.asset;if(!s||!c)return null;var d=(0,R.e)(function(){var e=function(e){var t;return(0,nJ.y)((0,n0.K3)({id:c.id,type:null!=(t=c.assetTypeId)?t:"media_asset",rendition:e}))},t=function(e){var t;return(0,n0.K3)({id:s.id,type:null!=(t=s.assetTypeId)?t:"media_asset",rendition:e})};return{cardRenditions:[{type:"image/avif",sm:{src:t("avif_medium")},md:{src:t("avif_large")}},{type:"image/png",sm:{src:t("png_small")},md:{src:t("png_medium")}}],envelopeRenditions:[{type:"image/avif",sm:{src:e("avif_medium")},md:{src:e("avif_large")}},{type:"image/png",sm:{src:e("png_small")},md:{src:e("png_medium")}}]}}),m=d.cardRenditions,p=d.envelopeRenditions,f=n4.H.safeParse(null==(a=e.composition.shape)?void 0:a.name);return f.success?(0,u.jsx)("div",{className:"relative w-full flex flex-col items-center justify-end pb-2 lg:pb-4 px-4",children:(0,u.jsx)(nQ.A,{shape:f.data,cardAlt:"".concat(null!=(r=null==(i=e.composition.family)?void 0:i.name)?r:""," Card"),envelopeAlt:"".concat(null!=(l=null==(o=e.composition.family)?void 0:o.name)?l:""," Envelope"),envelopeRenditions:p,cardRenditions:m,cardClassName:"plp-card-dropshadow",compositionId:void 0})}):null}if("flyer"!==e.productType)return(0,nX.B)(e),null;var h,g,v,b,x=(0,n$.o)(null==(h=e.composition)||null==(h=h.backgroundColor)?void 0:h.solid),y=null==(g=e.composition.artifacts)||null==(g=g.pagePreviewMobile)?void 0:g.asset;return x&&y&&y.assetTypeId?(0,u.jsx)("div",{className:"h-full px-4 pb-2 lg:px-10 lg:pb-4",children:(0,u.jsx)(n2.H,{className:"h-full w-fit mx-auto",thumbnailAssetId:y.id,thumbnailAssetTypeId:y.assetTypeId,name:null!=(v=null==(b=e.composition)||null==(b=b.family)?void 0:b.name)?v:e.name,backgroundColor:x})}):null})})]})}),(0,u.jsx)("div",{className:"notranslate text-center mt-2 lg:mt-4 tracked-small lg:tracked-medium border-b border-black pb-1",children:e.name})]},e.compositionId):null}),(0,u.jsx)("div",{className:"pr-2.5 md:pr-3.5 2xl:pr-0"})]})}),(0,u.jsx)("div",{className:"text-center mt-8",children:(0,u.jsx)(w.Ay,{as:"AppLink",type:"SQUARE",color:"BLACK",href:"/partners",tracking:{id:"Browse all designers",block_name:"designer-collections"},children:"Browse all designers"})})]})},an=[{name:"Oscar de la Renta",href:"/cards/group/oscar-de-la-renta",compositionId:"f8acdf46-fccf-41fa-811d-b2080902c21f",productType:"card",logoAssetId:"p-1wBVwOX9LewE6AwlpQX9qT"},{name:"Rifle Paper co.",href:"/cards/group/rifle-paper-co",compositionId:"634a58bf-a10e-483d-97e6-f1a0141cf6d7",productType:"card",logoAssetId:"p-6ZvEzGGyJs7NWAOUPvkA1o"},{name:"Kelly Wearstler",href:"/cards/group/kelly_wearstler",compositionId:"f777be90-d66b-4dae-87b5-dcbdaf81d0c3",productType:"card",logoAssetId:"p-603CpxPRhd87Y6pO2aIJqh"},{name:"Martha Stewart",href:"/cards/group/martha-stewart",compositionId:"3c8f4cad-709a-4dcf-933d-e3abe881f52b",productType:"card",logoAssetId:"p-6amehnCvt9bXpUiE1cP4Mr"},{name:"John Derian",href:"/cards/group/john-derian",compositionId:"b1c503f4-d436-42db-8fd8-62f15e8fb93a",productType:"card",logoAssetId:"p-5u1AhdsLrfTlvBTDtK1qRX"},{name:"Liberty",href:"/cards/group/liberty-london",compositionId:"1ecc29fa-f32e-4f8
16-b910-11d390e33c4c",productType:"card",logoAssetId:"p-70QldRGrKuhBJxlZnZm1uR"},{name:"kate spade new york",href:"/cards/group/kate-spade-new-york",compositionId:"be201e58-b0f3-4ca0-ad00-8e1a5ad11099",productType:"card",logoAssetId:"p-28h4NJat1jTFvWeqHAvp8E"},{name:"Emilia Wickstead",href:"/cards/group/emilia-wickstead",compositionId:"9b73b0f4-02ac-4951-afb0-cc85e75b0acb",productType:"card",logoAssetId:"p-4vro0PaQT6FoDFjn6TEClE"}],aa=[{title:"Save the dates",href:"/cards/group/save-the-dates",productType:"card",compositionId:"79c954e5-1113-43d0-9e7a-9caabe9e7be8"},{title:"Kids' birthday",href:"/cards/category/kids-birthday-invitations?tab=flyers",productType:"flyer",compositionId:"15acd388-9331-4742-945d-6c14927a63c2"},{title:"Baby shower",href:"/cards/group/baby-shower-invitations",productType:"card",compositionId:"92d3cda5-7f4f-4dc1-9313-7ce56e635f80"},{title:"Adult birthday",href:"/cards/category/adult-birthday-invitations",productType:"card",compositionId:"d3831c9f-c54d-428e-82f4-53e9f80b7f2e"},{title:"Business events",href:"/cards/group/business-event-invitations?tab=flyers",productType:"flyer",compositionId:"ed0568f5-aca0-417e-b130-53b21c72a700"},{title:"Wedding",href:"/cards/group/wedding-invitations",productType:"card",compositionId:"f004851e-762a-4dc4-ad4a-2281e09d0be2"},{title:"Bridal shower",href:"/cards/category/bridal-shower-invitations",productType:"card",compositionId:"c02280f6-80a9-4dbd-9563-b74ca8e12f87"},{title:"Dinner party",href:"/cards/category/dinner-party-invitations?tab=flyers",productType:"flyer",compositionId:"0776dd90-0525-4ad5-b063-6e037da51824"},{title:"Engagement party",href:"/cards/category/engagement-party-invitations",productType:"card",compositionId:"74c1a631-9157-4861-81d6-88eb1fb92023"},{title:"1st birthday",href:"/cards/category/first-birthday-invitations?tab=flyers",productType:"flyer",compositionId:"60e1e4ea-1729-4675-852a-8412109baeb0"},{title:"Brunch",href:"/cards/category/brunch-invitations",productType:"card",compositionId:"3c85bd3f-4fb7-47e9-bd92-09ae566788e1"},{title:"Get-togethers",href:"/cards/group/get-togethers?tab=flyers",productType:"flyer",compositionId:"6b2b6cc3-d1e9-4efc-ad24-0f0df0dda9f6"}],ar=n(44840),ai=n(1825),al=n(18909),ao=n(7584),as=function(e){var t=e.id,n=e.question,a=e.answer,r=e.isOpen,i=e.onToggle,l=(0,al.T)(r),o=l.collapsibleContainerRef,s=l.contentRef,c=l.maxHeight,d="faq-row-".concat(t,"-toggle"),m="faq-row-".concat(t,"-content");return(0,u.jsxs)("li",{"data-testid":"faq-row-".concat(t),className:"border-b border-black py-5",children:[(0,u.jsx)("h3",{children:(0,u.jsxs)("button",{id:d,type:"button",onClick:i,"aria-expanded":r,"aria-controls":m,"data-testid":d,className:"font-basis flex w-full items-center justify-between gap-4 text-left text-[24px] font-bold not-italic leading-8 text-black focus:outline-none focus-visible:ring-2 focus-visible:ring-gatsby focus-visible:ring-offset-2",children:[n,(0,u.jsx)("span",{"aria-hidden":"true",className:(0,D.A)("shrink-0 transition-transform duration-500 ease-in-out",{"-rotate-90":!r}),children:(0,u.jsx)(ai.A,{title:"",direction:"down",width:"24",height:"24",fill:ao.A.black})})]})}),(0,u.jsx)("div",{id:m,role:"region","aria-labelledby":d,inert:!r,className:"overflow-hidden transition-all duration-500 ease-in-out",style:{maxHeight:c},ref:o,children:(0,u.jsx)("div",{ref:s,className:"pt-2",children:(0,u.jsx)("p",{className:"paragraph-medium text-black",children:a})})})]})};function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var ad=nV.slice(0,5),au=nV.slice(5),am=JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:nV.map(function(e){return{"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}})}),ap=function(e){var t=e.className,n=e.experimentVariant,i=(0,r.useState)(function(){var e=nV[0];return new Set(e?[e.id]:[])}),l=i[0],o=i[1],s=function(e){var t=!l.has(e);o(function(n){var a=new Set(n);return t?a.add(e):a.delete(e),a}),(0,nM.Ay)({name:"pbr_element_clicked",data:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ac(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({id:e,block_name:"faq_slat",action:t?"expand":"collapse"},(0,ar.Vl)(n))})},c=function(e){return(0,u.jsx)("ul",{className:"flex flex-1 flex-col",children:e.map(function(e){var t=e.id,n=e.question,a=e.answer;return(0,u.jsx)(as,{id:t,question:n,answer:a,isOpen:l.has(t),onToggle:function(){return s(t)}},t)})})};return(0,u.jsxs)("section",{"data-testid":"faq-slat",className:(0,D.A)("bg-[#F0EBDF] px-20 pb-18 pt-[74px] lg:mx-6",t),children:[(0,u.jsx)("h2",{className:"font-basis mb-6 text-[38px] font-normal not-italic leading-14 text-black",children:"Frequently asked questions"}),(0,u.jsxs)("div",{className:"flex gap-16",children:[c(ad),c(au)]}),(0,u.jsx)("script",{id:"faq-slat-schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:am.replace(/</g,"\\u003c")}})]})},af=n(48100),ah=n(3250),ag=n(99743);function av(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ab(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?av(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):av(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ax=(0,nz.T_)({compId:nF.z,flow:"cover-art-images-closed"}),ay=function(e){var t=e.className;return(0,u.jsx)(ah.a,ab(ab({},ag.P.generalEntertaining),{},{headline:"Design a free invite in\xa0minutes",ctaLabel:"Create now",href:ax,layout:"mobile",trackingId:"homepage_free_uyo_slat",className:t}))},aw=n(19533),aj=n3.z.enum(["control","single_promo","split_promo"]);function ak(){var e=(0,t6.u)("force-mw-below-hero-formats-single-promo"),t=(0,O.A)(e,1)[0],n=(0,t6.u)("force-mw-below-hero-formats-split-promo"),a=(0,O.A)(n,1)[0],r=(0,aw.$)({featureName:"2026-09-tof-mw-below-hero-formats",variantSchema:aj,controlVariant:"control",forcedDevelopmentVariant:"split_promo"});return t?"single_promo":a?"split_promo":r}var aN=n(97442),aO=n.n(aN),a_=n(87332),aA=n(49654),aD=n(94259),aP=n(60116),aT=n(30509),aC=n(16896),aS=n(12034),aI=function(e){var t=e.assetId,n=e.posterAssetId,a=e.ariaLabel,r="".concat((0,n0.hw)(t),"/").concat(t,"/flyer/media_asset_video/video");return{poster:n?"".concat((0,n0.hw)(n),"/").concat(n,"/flyer/media_asset_image/original"):"".concat((0,n0.hw)(t),"/").concat(t,"/flyer/media_asset_video/poster"),src:r,"aria-label":void 0===a?"":a}},aE={title:"Upload your own",categoryName:"Upload your own",level:"group",navNodeSlug:"upload-your-own",iconContainerColor:"rgba(251, 237, 218, 1)"},aR=function(e){var t=e.categories;return(0,u.jsx)("div",{className:"flex w-max flex-nowrap gap-2",children:t.map(function(e){return(0,u.jsx)(aC.$,{category:e,className:"w-max max-w-full shrink-0",iconOverride:e.navNodeSlug===aE.navNodeSlug?(0,u.jsx)(aT.default,{"aria-hidden":!0,className:"w-6 h-6 shrink-0"}):void 0,tracking:{id:e.title,block_name:"hero",block_row:"category-pills"}},"".concat(e.navNodeSlug,"-").concat(e.level))})})},aL=function(e){var t,n,a,r=e.card,i=az[null!=(t=r.textTheme)?t:"light"].textColor,l=ak(),o=null!=(n=null==(a=(0,aS.L)().data)||null==(a=a.data)?void 0:a.cardCategories)?n:[],s="split_promo"===l&&o.length>0,c=Math.ceil((o.length+ +!!s)/2),d=s?[].concat((0,B.A)(o.slice(0,c)),[aE],(0,B.A)(o.slice(c))):o,m=[d.slice(0,c),d.slice(c)].filter(function(e){return e.length>0});return(0,u.jsx)(aU,{children:(0,u.jsxs)("div",{className:"relative w-full h-full",children:[(0,u.jsx)(aA.K,{className:"absolute top-0 left-0 h-full w-full -z-1 object-cover object-bottom",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,crossOrigin:"anonymous","x-webkit-airplay":"deny",disableRemotePlayback:!0,fetchPriority:"high",sizes:{sm:aI({assetId:r.background.sm,ariaLabel:r.background.ariaLabel}),md:aI({assetId:r.background.md,ariaLabel:r.background.ariaLabel}),lg:aI({assetId:r.background.lg,ariaLabel:r.background.ariaLabel})}}),(0,u.jsxs)("div",{className:"relative flex flex-col gap-6 px-4 pt-10",children:[(0,u.jsx)("h1",{className:(0,D.A)("font-basis font-normal text-[1.75rem] leading-7.5 text-center text-balance",i),children:"Online invitations for every occasion"}),m.length>0&&(0,u.jsx)("div",{className:"hide-scrollbars -mx-4 min-w-0 overflow-x-auto px-4",children:(0,u.jsx)("div",{className:"inline-flex w-max max-w-none min-w-0 flex-col gap-2",children:m.map(function(e,t){return(0,u.jsx)(aR,{categories:e},t)})})})]})]})})},aM=n(40291),aF="cards",az={light:{textColor:"text-white",logoTextColor:"text-white",timerRing:{background:"rgba(255, 255, 255, 0.15)",foreground:"rgba(255, 255, 255, 0.4)"},mobileTab:{textColor:"text-white",underline:"bg-white"}},dark:{textColor:"text-black",logoTextColor:"text-black",timerRing:{background:"rgba(51, 51, 51, 0.15)",foreground:"rgba(51, 51, 51, 0.6)"},mobileTab:{textColor:"text-black",underline:"bg-black"}}},aZ={light:{buttonColor:"WHITE",timerButton:{background:"bg-white",hover:"hover:bg-dove",iconColor:"text-black"}},dark:{buttonColor:"BLACK",timerButton:{background:"bg-black",hover:"hover:bg-black",iconColor:"text-white"}}},aU=function(e){var t=e.className,n=e.children;return(0,u.jsx)("div",{className:(0,D.A)("relative h-480px lg:h-560px 2xl:px-6 w-full",t),children:n})},aH=function(){return(0,u.jsx)(aU,{children:(0,u.jsx)("div",{className:"w-full h-full bg-dove animate-loading-pulse"})})},aB=function(e){var t,n,a,i,l=e.card,o=e.flyer,s=(0,r.useState)(aF),c=s[0],d=s[1],m=(0,r.useState)(0),p=m[0],f=m[1],h=(0,r.useState)(!1),g=h[0],v=h[1],b=(0,r.useRef)(!1),x=(0,r.useRef)(null),y=(0,r.useRef)(null),j=(0,r.useRef)(null),k=(0,aP.p)(),N=null!=(t=l.textTheme)?t:"light",O=null!=(n=l.buttonTheme)?n:"light",_=null!=(a=o.textTheme)?a:"light",A=null!=(i=o.buttonTheme)?i:"light",P="cards"===c?N:_,T="cards"===c?O:A,C=az[P],S=aZ[T],I=az[N],E=aZ[O],R=az[_],L=aZ[A],M=function(e){var t="cards"===e?y:j;
1if(t.current)try{if(t.current.currentTime=0,t.current.paused){var n,a=t.current.play();a&&"object"==typeof a&&"catch"in a&&"function"==typeof a.catch&&a.catch(function(){})}}catch(a){(0,F.v)({cause:a,severity:"warning",message:"HomeHeroC: Video play failed after restart try catch",metadata:{activePane:e,videoSrc:null==(n=t.current)?void 0:n.src}})}},z=function(e){x.current&&clearTimeout(x.current),b.current||(x.current=setTimeout(function(){Z("cards"===e?"flyer":"cards")},(0,nL.Fr)((0,aD.D)())?3e3:5e3))},Z=function(e){d(e),f(function(e){return e+1}),M(e),v(!0),setTimeout(function(){return v(!1)},200),z(e)};(0,r.useEffect)(function(){return z(aF),function(){x.current&&clearTimeout(x.current)}},[]);var U=(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(aU,{children:(0,u.jsxs)("div",{className:"relative w-full h-full",children:[(0,u.jsx)(aA.K,{ref:y,className:(0,D.$)("absolute top-0 left-0 h-full w-full -z-1 object-cover object-bottom transition-opacity duration-700 ease-in-out",{"opacity-0":"cards"!==c,"opacity-100":"cards"===c}),autoPlay:!0,loop:!0,muted:!0,playsInline:!0,crossOrigin:"anonymous","x-webkit-airplay":"deny",disableRemotePlayback:!0,fetchPriority:"high",sizes:{sm:aI({assetId:l.background.sm,ariaLabel:l.background.ariaLabel}),md:aI({assetId:l.background.md,ariaLabel:l.background.ariaLabel}),lg:aI({assetId:l.background.lg,ariaLabel:l.background.ariaLabel})}}),(0,u.jsx)(aA.K,{ref:j,className:(0,D.$)("absolute top-0 left-0 h-full w-full -z-1 object-cover object-bottom transition-opacity duration-700 ease-in-out",{"opacity-0":"flyer"!==c,"opacity-100":"flyer"===c}),autoPlay:!0,loop:!0,muted:!0,playsInline:!0,crossOrigin:"anonymous","x-webkit-airplay":"deny",disableRemotePlayback:!0,sizes:{sm:aI({assetId:o.background.sm,ariaLabel:o.background.ariaLabel}),md:aI({assetId:o.background.md,ariaLabel:o.background.ariaLabel}),lg:aI({assetId:o.background.lg,ariaLabel:o.background.ariaLabel})}}),(0,u.jsxs)("div",{className:"absolute inset-y-1/2 right-16 max-lg:hidden",children:[!b.current&&!!k&&(0,u.jsxs)("svg",{className:"absolute -inset-1 w-14 h-14 -rotate-90",viewBox:"0 0 56 56",style:{"--timer-duration":"".concat(5e3,"ms")},children:[(0,u.jsx)("circle",{cx:"28",cy:"28",r:"26",fill:"none",stroke:C.timerRing.background,strokeWidth:"2",className:"opacity-30"}),(0,u.jsx)("circle",{cx:"28",cy:"28",r:"26",fill:"none",stroke:C.timerRing.foreground,strokeWidth:"2",strokeLinecap:"round",className:aO().timerProgress})]},"animation-".concat(p)),(0,u.jsx)("button",{className:(0,D.A)("relative h-12 w-12 rounded-full drop-shadow-lg z-10",S.timerButton.background,S.timerButton.hover,g&&aO().buttonBump),onClick:function(){b.current=!0,Z("cards"===c?"flyer":"cards"),null===nM.Ay||void 0===nM.Ay||(0,nM.Ay)({name:"pbr_link_clicked",data:{id:"next_arrow",block_name:"hero",active_pane:c}})},children:(0,u.jsx)(e5.default,{className:(0,D.A)("m-auto",S.timerButton.iconColor)})})]}),(0,u.jsx)("div",{className:(0,D.$)("w-full lg:w-1/2 h-1/2 lg:h-full p-4 lg:p-20 lg:pr-4"),children:(0,u.jsxs)("div",{className:"flex flex-col justify-between w-full h-full box-border",children:[(0,u.jsxs)("div",{className:"flex gap-6 mx-auto lg:hidden w-fit pb-4",style:{"--timer-duration":"".concat(3e3,"ms")},children:[(0,u.jsxs)("button",{onClick:function(){b.current=!0,Z("cards"),null===nM.Ay||void 0===nM.Ay||(0,nM.Ay)({name:"pbr_link_clicked",data:{id:"card_tab",block_name:"hero"}})},className:(0,D.$)("relative pb-2 transition-all duration-300 ease-in-out",C.mobileTab.textColor,{"opacity-100":"cards"===c,"opacity-75 hover:opacity-100":"cards"!==c}),children:["Card invitations","cards"===c?(0,u.jsx)("div",{className:(0,D.A)("absolute bottom-0 left-0 w-full h-1",C.mobileTab.underline)}):(0,u.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-1 bg-transparent"})]}),(0,u.jsxs)("button",{onClick:function(){b.current=!0,Z("flyer"),null===nM.Ay||void 0===nM.Ay||(0,nM.Ay)({name:"pbr_link_clicked",data:{id:"flyer_tab",block_name:"hero"}})},className:(0,D.$)("relative pb-2 transition-all duration-300 ease-in-out",C.mobileTab.textColor,{"opacity-100":"flyer"===c,"opacity-75 hover:opacity-100":"flyer"!==c}),children:["Flyer event pages","flyer"===c?(0,u.jsx)("div",{className:(0,D.A)("absolute bottom-0 left-0 w-full h-1",C.mobileTab.underline)}):(0,u.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-1 bg-transparent"})]})]}),(0,u.jsxs)("div",{className:"relative w-full h-full",children:[(0,u.jsxs)("div",{className:(0,D.$)("absolute top-4 lg:top-0 left-0 box-border w-full lg:h-full flex flex-col items-center lg:items-start justify-start lg:justify-center gap-4 lg:gap-10 transition-all duration-500 ease-in-out",{"opacity-0 translate-y-4 pointer-events-none":"cards"!==c,"opacity-100 translate-y-0":"cards"===c}),children:[(0,u.jsx)("h1",{className:(0,D.A)("font-basis font-normal text-2xl leading-7 lg:text-[3rem] lg:leading-14 xl:text-[3.5rem] xl:leading-16 max-lg:text-center text-balance",I.textColor),children:l.h1}
1),(0,u.jsx)(w.Ay,{as:"AppLink",color:E.buttonColor,href:l.href,tracking:{id:"browse_invitations",block_name:"hero"},children:l.cta})]}),(0,u.jsxs)("div",{className:(0,D.$)("absolute top-4 lg:top-0 left-0 box-border w-full lg:h-full flex flex-col items-center lg:items-start justify-start lg:justify-center gap-4 lg:gap-10 transition-all duration-500 ease-in-out",{"opacity-0 translate-y-4 pointer-events-none":"flyer"!==c,"opacity-100 translate-y-0":"flyer"===c}),children:[(0,u.jsx)(a_.default,{className:(0,D.A)("max-w-full",R.logoTextColor)}),(0,u.jsx)("h2",{className:(0,D.A)("font-basis font-normal text-2xl leading-7 lg:text-[3rem] lg:leading-14 xl:text-[3.5rem] xl:leading-16 max-lg:text-center text-balance",R.textColor),children:o.h1}),(0,u.jsx)(w.Ay,{as:"AppLink",color:L.buttonColor,href:o.href,tracking:{id:"browse_flyer",block_name:"hero"},children:o.cta})]})]})]})})]})})});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(aM.$U,{lessThan:"lg",children:(0,u.jsx)(aL,{card:l})}),(0,u.jsx)(aM.$U,{greaterThanOrEqual:"lg",children:U})]})},aV={h1:"Online invitations for all the moments that matter",cta:"Browse Invitations",href:"/cards/section/invitations",background:{ariaLabel:"A save the date with three black-and-white photos of a couple animates out of a black envelope, on a backdrop with a marble tabletop, wooden trivet, white plate, white crystal, and white flowers with green leaves.",sm:"p-4ZiGeQoRr3S2hKNq0o8dcZ",md:"p-t38kfX8eUC5QccCYh7DBx",lg:"p-24MtFxFdoVT14NLLKfUnUx"},textTheme:"dark",buttonTheme:"light"},aq={h1:"Shareable event pages for all the fun in between",cta:"Browse Flyer",href:"/flyer",background:{ariaLabel:"A rock-climbing birthday party event page in yellow and blue that reads 'Climbing into 12' animates up and out of the frame, while text message boxes with phrases like 'Can't wait', 'I'll be there', 'FUNNN', and 'Cute invite!' move up the side of the graphic.",sm:"p-4ykt3a9zThQXWxOWDZqPWf",md:"p-1DSc6z1ZVfRwt1JMcux3nq",lg:"p-2ZQKeEzEEXwbZrncMmCLPN"},textTheme:"dark",buttonTheme:"light"},aY=n(42881),aK=n(77977),aW=function(e){var t=e.videoAssetId,n=e.posterAssetId,a=e.showVideo,i=e.testId,l=(0,r.useRef)(null);return(0,r.useEffect)(function(){a&&l.current&&(0,aK.A)(l.current.play())},[a]),(0,u.jsxs)("div",{className:"relative aspect-[768/386] w-full overflow-hidden rounded-lg",children:[(0,u.jsx)(nS.K,{"data-testid":i,className:"absolute inset-0 block h-full w-full object-cover",srcSet:"all",sizes:"(min-width: 1024px) 33vw, 100vw",lazyLoad:!0,alt:"",mediaRenditions:[{size:"sm",src:n}]}),a?(0,u.jsx)(aA.K,{className:"absolute inset-0 block h-full w-full object-cover",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"none",crossOrigin:"anonymous",disableRemotePlayback:!0,"x-webkit-airplay":"deny",sizes:{lg:aI({assetId:t,posterAssetId:n})},ref:l}):null]})},aG=function(e){var t=e.index,n=e.card,a=e.showVideo;return(0,u.jsxs)("div",{"data-testid":"howto-card-".concat(t),className:"flex flex-col rounded-lg bg-white p-7 text-black",children:[(0,u.jsx)(aW,{videoAssetId:n.videoAssetId,posterAssetId:n.posterAssetId,showVideo:a,testId:"howto-card-".concat(t,"-media")}),(0,u.jsx)("h3",{className:"mt-5 font-basis text-[30px] font-normal leading-12 text-black",children:n.hed}),(0,u.jsx)("p",{className:"mt-2 font-basis text-[20px] font-normal leading-9 text-black",children:n.dek})]})},a$=function(e){var t=e.className,n=(0,aY.A)({triggerOnce:!0,rootMargin:"100% 0p
1x"}),a=(0,O.A)(n,2),r=a[0],i=a[1],l=nR(),o=i&&!l;return(0,u.jsxs)("section",{ref:r,"data-testid":"howto-slat",className:(0,D.A)("bg-[#eaf2fc] px-10 pb-12 pt-12 lg:mx-6",t),children:[(0,u.jsx)("h2",{className:"text-center font-basis text-[38px] font-normal leading-14 text-black",children:"How to create an online invitation with Paperless Post"}),(0,u.jsx)("div",{className:"mt-[18px] flex justify-center",children:(0,u.jsx)(tb.A,{href:nH,tracking:{name:"pbr_element_clicked",id:"homepage_howto_cta",block_name:"howto_slat"},"data-testid":"howto-cta",className:(0,D.A)("inline-block w-fit bg-black px-[23px] py-3.5 uppercase tracked-medium text-white no-underline","focus:outline-none focus-visible:ring-2 focus-visible:ring-gatsby focus-visible:ring-offset-2"),children:nU})}),(0,u.jsx)("div",{className:"mt-[53px] grid grid-cols-3 gap-5",children:nB.map(function(e,t){return(0,u.jsx)(aG,{index:t,card:e,showVideo:o},e.slug)})})]})},aX=n(47426),aJ=n(5516),aQ=n(777),a0=n(70421),a1=n(5650),a2=[{type:"image/avif",sm:"avifSmall",md:"avifMedium"},{type:"image/png",sm:"pngSmall",md:"pngMedium"}],a4=[{type:"image/avif",sm:"avifSmall",md:"avifMedium"},{type:"image/jpeg",sm:"jpegSmall",md:"jpegMedium"}],a5=function(){return(0,u.jsx)("div",{className:"absolute top-0 left-0 w-full h-full flex justify-center items-center bg-dove opacity-30",children:(0,u.jsx)(a0.A,{height:"3rem",width:"3rem"})})},a3=function(e){var t=e.artifacts,n=e.altPrefix,a=e.layout,i=(0,r.useState)(!1),l=i[0],o=i[1],s=(0,r.useState)(!1),c=s[0],d=s[1],m=(0,r.useState)(!1),p=m[0],f=m[1],h=null!=t&&t.backdropDesktop?(0,aQ.n)({artifact:t.backdropDesktop,sourcesBlueprint:a4,transformUrl:nJ.y}):null,g=null!=t&&t.envelopeBack?(0,aQ.n)({artifact:t.envelopeBack,sourcesBlueprint:a2,transformUrl:nJ.y}):null,v=null!=t&&t.cardFront?(0,aQ.n)({artifact:t.cardFront,sourcesBlueprint:a2,transformUrl:nJ.y}):null,b=(!h||l)&&(!g||c)&&(!v||p);return(0,u.jsxs)(u.Fragment,{children:[!!h&&(0,u.jsx)(aJ.A,{alt:"".concat(n," backdrop"),className:(0,D.A)("object-cover absolute w-full h-full",{"opacity-0":!b,"animate-image-loading-finished":b}),onLoad:function(){return o(!0)},sources:h}),(0,u.jsxs)("div",{className:(0,D.A)("h-full aspect-2 max-w-full flex items-end",{"justify-center":"horizontal"===a,"justify-end pr-[4.5%]":"square"===a}),children:[!!g&&(0,u.jsx)(aJ.A,{alt:"".concat(n," envelope"),className:(0,D.A)("w-full h-full object-contain object-left-bottom absolute inset-0 bottom-0 pt-1.5",{"opacity-0":!b,"animate-image-loading-finished":b}),onLoad:function(){return d(!0)},sources:g}),!!v&&(0,u.jsx)("div",{className:(0,D.A)("relative aspect-1",{"h-[92%]":"horizontal"===a,"h-[88%]":"square"===a}),children:(0,u.jsx)(aJ.A,{alt:"".concat(n," card"),className:(0,D.A)("w-full h-full object-contain drop-shadow-diagonal",{"opacity-0":!b,"animate-image-loading-finished":b,"object-bottom":"horizontal"===a,"object-right-bottom":"square"===a}),onLoad:function(){return f(!0)},sources:v})})]}),(!b||!p)&&(0,u.jsx)(a5,{})]})},a6=function(e){var t=e.artifacts,n=e.altPrefix,a=e.backgroundColor,i=(0,r.useState)(!1),l=i[0],o=i[1],s=(0,r.useState)(),c=s[0],d=s[1],m=null!=t&&t.media?(0,aQ.n)({artifact:t.media,sourcesBlueprint:a4,transformUrl:nJ.y}):null;return(0,u.jsxs)("div",{className:"w-full h-full flex justify-center bg-alto",style:{backgroundColor:null!=a?a:c},children:[!!m&&(0,u.jsx)("div",{className:"h-full aspect-square p-2",children:(0,u.jsx)(aJ.A,{alt:"".concat(n," media"),className:(0,D.A)("h-full object-contain object-center drop-shadow-soft",{"opacity-0":!l,"animate-image-loading-finished":l}),onLoad:function(e){if((null==e?void 0:e.currentTarget)instanceof HTMLImageElement&&!a){var t=(0,a1.A)({img:e.currentTarget});if(t){var n=t.r,r=t.g,i=t.b;d("rgb(".concat(n,",").concat(r,",").concat(i,")"))}}o(!0)},sources:m})}),!l&&(0,u.jsx)(a5,{})]})},a8=function(e){var t=e.className,n=e.event,a=e.href,r=e.tracking,i=e.label,l=e.altPrefix,o=e.layout,s=e.backgroundColor,c=(0,D.A)(t,"relative flex overflow-hidden"),d=(0,u.jsxs)(u.Fragment,{children:["flyer"===n.productType?(0,u.jsx)(a6,{artifacts:n.artifacts,altPrefix:l,backgroundColor:s}):(0,u.jsx)(a3,{artifacts:n.artifacts,altPrefix:l,layout:o}),!!i&&(0,u.jsx)("div",{className:"absolute left-4 top-4 px-2 py-1 paragraph-xsmall bg-white border border-alto rounded-xs",children:i})]});return a&&r?(0,u.jsx)(tb.A,{className:c,href:a,tracking:r,children:d}):(0,u.jsx)("div",{className:c,children:d})},a7=n(18193),a9=n(96301),re=function(){var e=(0,nt.r)({queryKey:["now-featured-event-tile"],queryFn:function(){return new Date().toISOString()},initialData:new Date().toISOString()});return e.data?new Date(e.data):new Date},rt=n(73785);function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?rn(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rr=function(e){var t,n,a,i=e.className,l=e.draft,o=re(),s=null!=l&&null!=(t=l.event)&&t.startTime?(0,aX.yZ)({event:{startTime:l.event.startTime,allDay:l.event.allDay}}).startDate:null,c=(null==l?void 0:l.status)==="ready"&&(!s||s>o),d=c?"/manage/".concat(l.id,"/inviteGuests"):"/create/".concat(null==l?void 0:l.id),m={tile_type:c?"ready event tile":"draft event tile",block_row:1,block_name:"personalization"},p=(0,r.useMemo)(function(){if(l)return(0,rt.Y)(l)},[l]);return(0,u.jsxs)("div",{className:(0,D.A)(i,"md:h-[475px] relative w-full md:w-[300px] flex flex-col overflow-hidden",{"border border-alto":!!l}),children:[(0,u.jsx)("div",{className:(0,D.A)("w-full h-full z-10 absolute inset-0 bg-alto pointer-events-none",{"animate-loading-pulse":!l,"animate-placeholder-loading-finished":!!l})}),!!l&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"h-full flex flex-col m-2","data-testid":"draft-tile",children:[(0,u.jsx)(a8,{className:"w-full max-h-[142px] aspect-2",event:l,href:d,tracking:ra({id:c?"invite guests":"finish editing"},m),label:"Your last draft",altPrefix:"Your last draft's",layout:"horizontal",backgroundColor:p}),(0,u.jsxs)("div",{className:"mx-2 mt-4",children:[(0,u.jsx)("h2",{className:"heading-xsmall",children:"Pick up where you left off"}),(0,u.jsx)("h3",{className:(0,D.A)("mt-2 heading-medium notranslate",!(null!=l&&null!=(n=l.event)&&n.name)&&"text-dusty-gray"),children:null!=l&&null!=(a=l.event)&&a.name?"".concat(l.event.name.slice(0,50)).concat(l.event.name.length>50?"...":""):"Untitled Event"})]}),(0,u.jsx)(tb.A,{className:(0,D.A)("mt-3 mb-2 ml-1 flex gap-1 max-w-max p-1 items-center rounded hover:bg-dove active:bg-alto transition-colors",{"px-2":c,"pr-2":!c}),href:d,tracking:ra({id:c?"invite guests":"finish editing"},m),children:c?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a9.A,{width:"1.5rem",height:"1.5rem"}),(0,u.jsx)("span",{children:"Invite guests"})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a7.A,{width:"1.5rem",height:"1.5rem",strokeColor:ao.A.black}),(0,u.jsx)("span",{children:"Finish editing"})]})})]}),(0,u.jsx)("div",{className:"justify-self-end w-full flex justify-end border-t border-alto",children:(0,u.jsxs)(tb.A,{className:"m-4 flex gap-1 py-1 pl-2 items-center rounded hover:bg-dove active:bg-alto transition-colors",href:"/manage?tab=draft",tracking:ra({id:"view drafts"},m),children:[(0,u.jsx)("span",{children:"View Drafts"}),(0,u.jsx)(ai.A,{width:"1.5rem",height:"1.5rem",title:"view drafts",direction:"right",fill:ao.A.black})]})})]})]})},ri=function(e){var t=e.className,n=e.experimentVariant,a=(0,aX.Ay)(),r=a.recentDrafts,i=a.loading,l=i?void 0:r[0],o=i||!!l;return(0,u.jsxs)("div",{className:(0,D.A)("mx-4 mb-6 mt-6 md:mx-6 flex flex-col md:flex-row gap-4 md:gap-6",t),"data-testid":"logged-in-homepage-content",children:[!!o&&(0,u.jsx)(rr,{className:"flex-shrink-0",draft:l}),(0,u.jsx)(nN.A,{className:"grow overflow-hidden",size:"personalized-homepage-slat",strategy:L.IB.UserFeatured,title:"We think you’ll like these",trackScrollDepth:!0,experimentVariant:n})]})},rl=n(17744),ro="focus:outline-none focus-visible:ring-2 focus-visible:ring-gatsby focus-visible:ring-offset-2",rs=function(e){var t,n,a,r,i,l=e.side,o=e.media,s=e.accessibleName,c=e.content,d=e.link,m=e.className,p=(0,u.jsx)(nS.K,{"data-testid":"myo-slat-".concat(l,"-media"),className:"block h-auto w-full",srcSet:"all",sizes:"(min-width: 1024px) 25vw, 50vw",lazyLoad:!0,transparent:!0,alt:o.alt,aspectRatio:o.aspectRatio,mediaRenditions:[{size:"sm",src:o.assetId}]}),f=(0,u.jsxs)("div",{className:"flex flex-1 flex-col items-start",children:[(0,u.jsx)("h3",{className:"font-basis text-[30px] font-normal leading-9 text-black",children:c.hed}),c.body?(0,u.jsx)("p",{className:"mt-5 font-basis text-[20px] font-normal leading-9 text-black",children:c.body}):null,(0,u.jsx)("span",{"data-testid":"myo-slat-".concat(l,"-cta"),className:"mt-6 inline-block w-fit bg-black px-[23px] py-3.5 tracked-medium text-white",children:c.ctaLabel})]}),h=(0,u.jsxs)(u.Fragment,{children:[f,(0,u.jsx)("div",{className:"flex-1",children:p})]}),g=(0,D.A)("flex flex-1 items-center gap-6",m);return n=(t={testid:"myo-slat-".concat(l),linkClassName:g,ariaLabel:s,children:h}).children,a=t.testid,r=t.linkClassName,i=t.ariaLabel,d.authenticated?(0,u.jsx)(rl.A,{href:d.href,"aria-label":i,tracking:d.tracking,initialAction:d.initialAction,source:d.source,allowAnonymous:d.allowAnonymous,authModalTracking:d.authModalTracking,"data-testid":a,className:(0,D.A)("no-underline",ro,r),children:n}):(0,u.jsx)(tb.A,{href:d.href,"aria-label":i,tracking:d.tracking,"data-testid":a,className:(0,D.A)("no-underline",ro,r),children:n})};function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var rd=function(e){var t=e.halves,n=e.container,r=e.backgroundClass,i=e.className;return(0,u.jsx)("div",{"data-testid":"myo-slat",className:(0,D.A)("flex",r,"contained"===n&&"rounded-lg",i),children:t.map(function(e){return(0,u.jsx)(rs,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?rc(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),e.side)})})},ru="make_your_own_slat",rm="rounded-lg bg-[#fcf4eb] p-10",rp=function(e){var t=e.className,n=[{side:"left",className:rm,media:{assetId:nZ.left.assetId,alt:nZ.left.alt},accessibleName:nZ.left.hed,content:{hed:nZ.left.hed,body:nZ.left.body,ctaLabel:nZ.left.ctaLabel},link:{href:nZ.left.ctaHref,tracking:{name:"pbr_element_clicked",id:"homepage_myo_slat_uyo",block_name:ru}}},{side:"right",className:rm,media:{assetId:nZ.right.assetId,alt:nZ.right.alt},accessibleName:nZ.right.hed,content:{hed:nZ.right.hed,body:nZ.right.body,ctaLabel:nZ.right.ctaLabel},link:{authenticated:!0,href:nZ.right.ctaHref,initialAction:"SIGN_UP",source:"flyer",allowAnonymous:!0,tracking:{name:"pbr_element_clicked",id:"homepage_myo_slat_flyer",block_name:ru},authModalTracking:{block_name:ru}}}];return(0,u.jsxs)("section",{className:(0,D.A)("mx-4 mt-10 rounded-lg bg-panna-cotta px-[26px] py-[30px] md:mx-6",t),children:[(0,u.jsx)("h2",{className:"mb-5 text-center font-basis text-[38px] font-normal leading-14 text-black",children:nZ.headline}),(0,u.jsx)(rd,{halves:n,container:"full-bleed",className:"gap-6"})]})};function rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function rh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rg=k.PAPER_SOURCE_PROMO;function rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function rb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rv(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rx=[rb({testid:"partner-slat-party-shop",trackingId:"homepage_partner_slat_party_shop"},{assetId:"p-2crxBMoE8BpcZY9xvsX2KK",href:"https://partyshop.paperlesspost.com/?utm_source=paperlesspost&utm_medium=homepage",accessibleName:"A headline that reads ‘Ghastly goods’ sits below a Paperless Post Party Shop logo and above two pieces of text that read ‘Make your home a haunted house with spooky party supplies and killer d\xe9cor’ and ‘Shop now’ against a rectangular textured orange backdrop decorated with Halloween props such as two papier-mache pumpkin and spider cups, a papier-mache cat wearing a party hat, an illustration of a witch in an ornate mirror, a white pumpkin, gummy worms, jelly beans, candy corn, confetti, spooky napkins, and a Halloween-themed cocktail."}),rb({testid:"partner-slat-paper-source",trackingId:"homepage_partner_slat_paper_source"},{assetId:"p-6cz6aK0UECkcEOG7sEjkr3",href:"https://papersource.pxf.io/enAqO6",accessibleName:"Shop Paper Source for printed versions of our digital wedding invitations (opens in a new tab)"})],ry=function(e){var t=e.className;return(0,u.jsx)("section",{"data-testid":"partner-slat",className:(0,D.A)("pb-12 lg:mx-6",t),children:(0,u.jsx)("div",{className:"flex gap-10",children:rx.map(function(e){return(0,u.jsx)(tb.A,{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.accessibleName,tracking:{name:"pbr_element_clicked",id:e.trackingId,block_name:"partner_slat"},"data-testid":e.testid,className:(0,D.A)("block flex-1 no-underline","focus:outline-none focus-visible:ring-2 focus-visible:ring-gatsby focus-visible:ring-offset-2"),children:(0,u.jsx)(nS.K,{className:"block h-auto w-full",srcSet:"all",sizes:"(min-width: 1024px) 50vw, 100vw",lazyLoad:!0,transparent:!0,alt:"",aspectRatio:960/1400,mediaRenditions:[{size:"sm",src:e.assetId}]})},e.testid)})})})},rw=function(e){var t=e.className,n=e.partyShopUrl,a=e.assets,r=a.sm,i=r.aspectRatio,l=r.assetId,o=a.md,s=o.aspectRatio,c=o.assetId,d=a.lg,m=d.aspectRatio,p=d.assetId,f=e.altText;return(0,u.jsx)("div",{className:(0,D.A)("mx-4 md:mx-6 theme-default-slat",t),children:(0,u.jsx)(tb.A,{href:"".concat(n,"?utm_source=paperlesspost&utm_medium=homepage"),target:"_blank",tracking:{id:"party_shop_banner",block_name:"party-shop-holiday",block_row:1},children:(0,u.jsx)(nS.K,{className:"w-full sm:aspect-[".concat(void 0===i?1.5:i,"] md:aspect-[").concat(void 0===s?1.5:s,"] lg:aspect-[").concat(void 0===m?5200/1750:m,"]"),srcSet:"all",sizes:"100vw",alt:f,mediaRenditions:[{size:"sm",src:l},{size:"md",src:c},{size:"lg",src:p}]})})})},rj=function(e){var t=e.className;return(0,u.jsx)("div",{className:(0,D.A)("mx-4 md:mx-6 theme-default-slat",t),children:(0,u.jsx)("div",{className:"w-full aspect-[1440/960] lg:aspect-[5200/1750] bg-panna-cotta animate-pulse rounded"})})};function rk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function rN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?rk(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rO=n(56924),r_=n(13100),rA=n(62537),rD=n(34477),rP=n(6141);function rT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var rC="popular_designs";L.UUh;var rS=L.oMI,rI=function(e){var t=e.products,n=e.popularCards,a=e.popularFlyers;return t.map(function(e){var t=e.productType,r=e.compositionId;return(0,R.e)(function(){return"card"===t?n.find(function(e){var t;return(null==(t=e.composition)?void 0:t.id)===r}):"flyer"===t?a.find(function(e){var t;return(null==(t=e.composition)?void 0:t.id)===r}):void(0,nX.z)(t)})}).filter(rA.O)},rE=function(e){var t,n,a=e.products,i=a.filter(function(e){return"card"===e.productType}).map(function(e){return e.compositionId}),l=a.filter(function(e){return"flyer"===e.productType}).map(function(e){return e.compositionId}),o=(0,tZ.IT)(rS,{variables:{cardIds:i,cardsPageSize:Math.max(i.length,1),flyerIds:l,flyersPageSize:Math.max(l.length,1)},ssr:!1}),s=o.data,c=o.loading,d=(0,rD.B)(L.nXf.Card,i),u=(0,r.useMemo)(function(){var e;return new Set(null==d||null==(e=d.data)||null==(e=e.favorites)?void 0:e.edges.map(function(e){return e.node.productId}))},[null==d?void 0:d.data]),m=(0,rD.B)(L.nXf.Flyer,l),p=(0,r.useMemo)(function(){var e;return new Set(null==m||null==(e=m.data)||null==(e=e.favorites)?void 0:e.edges.map(function(e){return e.node.productId}))},[null==m?void 0:m.data]);return{popularDesignsProducts:rI({products:a,popularCards:(null==s?void 0:s.cards)&&(null==(t=(0,rP.A)(s.cards))?void 0:t.filter(rA.O))||[],popularFlyers:(null==s?void 0:s.flyers)&&(null==(n=(0,rP.A)(s.flyers))?void 0:n.filter(rA.O))||[]}),loading:c,cardsFavoriteCompositionIdsSet:u,flyersFavoriteCompositionIdsSet:p}},rR=function(e){var t=e.className;return(0,u.jsx)("div",{className:(0,D.A)("2xl:px-6 mt-8 lg:mt-14",t),children:(0,u.jsx)("div",{className:"w-full h-[475px] z-10 pointer-events-none animate-loading-pulse bg-alto"})})};let rL=function(e){var t=e.products,n=e.className,r=e.experimentVariant,i=rE({products:t}),l=i.popularDesignsProducts,o=i.loading,s=i.cardsFavoriteCompositionIdsSet,c=i.flyersFavoriteCompositionIdsSet;return(0,u.jsxs)("div",{className:(0,D.A)("2xl:px-6 mt-8 lg:mt-14",n),children:[(0,u.jsx)("div",{className:(0,D.A)("w-full h-[475px] z-10 pointer-events-none",{"animate-loading-pulse":o,"animate-placeholder-loading-finished hidden":!o},"bg-alto")}),!o&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(nO.R,{children:"Popular designs"}),(0,u.jsxs)(n1.J,{containerClassName:"flex gap-8 md:gap-12 items-center pt-4 pb-4 pl-4 md:pl-6 2xl:pl-0",trackingBlockName:rC,trackingItemCount:l.length,trackingExperimentVariant:r,children:[l.map(function(e,t){var n,i=(null==(n=e.composition)?void 0:n.id)||"",l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rT(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({block_name:rC,block_row:t+1},(0,ar.Vl)(r));return e.productType===L.nXf.Card?(0,u.jsx)("div",{className:"flex-none max-lg:w-[272px] lg:w-60",children:(0,u.jsx)(rO.A,{card:e,favoriteCompositionIdsSet:s,priority:!0,envelopeSupportsTransparency:!0,isPhotoPreviewEnabled:!1,extraTrackingInfo:l,tooltipBounds:function(){}})},i):(0,u.jsx)("div",{className:"flex-none md:pt-8 w-[167px] md:w-[344px] lg:w-[312px]",children:(0,u.jsx)(r_.X,{flyer:e,priority:!0,isFavorited:c.has(i),hasHoverAnimation:!1,hasMobileTopBar:!1,isReducedSize:!0,hasBadges:!1,extraTrackingInfo:l})},i)}),(0,u.jsx)("div",{className:"pr-2.5 md:pr-3.5 2xl:pr-0"})]})]})]})};var rM={kids_birthday:{headline:"Online invitations for your little one’s big day",ctaLabel:"Browse kids' birthday",ctaAction:{kind:"navigate",href:"/cards/category/kids-birthday-invitations"},productType:"card",compositionId:"2bf7d669-6198-45c4-8ac0-3e1b1da3a1b7",backgroundColorClass:"bg-archetype-tile-green",altText:"Kids' birthday invitation",trackingId:"receiver_archetype_tile_kids_birthday"},adult_birthday:{headline:"Customize free Flyer for your birthday or theirs",ctaLabel:"Try it for free",ctaAction:{kind:"navigate",href:"/free-invitations"},productType:"flyer",compositionId:"eba3193a-6e68-4e46-a3d3-563714916d53",backgroundColorClass:"bg-archetype-tile-teal",altText:"Adult birthday Flyer event page",trackingId:"receiver_archetype_tile_adult_birthday"},cross_bridge:{headline:"Discover the perfect invitation or greeting for any occasion",ctaLabel:"Get started",ctaAction:{kind:"open_create_drawer",desktopHref:"/cards/section/invitations"},productType:"card",compositionId:"065090d7-ba09-4eb3-94e6-824fe5aaf69c",backgroundColorClass:"bg-archetype-tile-blue",altText:"Invitations and greetings for any occasion",trackingId:"receiver_archetype_tile_cross_bridge"},all_other:{headline:"Customize a free Flyer event page for any kind of event",ctaLabel:"Try it for free",ctaAction:{kind:"navigate",href:"/free-invitations"},productType:"flyer",compositionId:"28fb8d19-4504-4658-89c0-bcf1b639f8fd",backgroundColorClass:"bg-archetype-tile-purple",altText:"Flyer event page for any kind of event",trackingId:"receiver_archetype_tile_all_other"}},rF=L.HL8,rz=function(e){var t=e.cardAsset,n=e.envelopeAsset,a=function(e){var n;return(0,n0.K3)({id:t.id,type:null!=(n=t.assetTypeId)?n:"media_asset",rendition:e})},r=function(e){var t;return(0,nJ.y)((0,n0.K3)({id:n.id,type:null!=(t=n.assetTypeId)?t:"media_asset",rendition:e}))};return{cardRenditions:[{type:"image/avif",sm:{src:a("avif_medium")},md:{src:a("avif_large")}},{type:"image/png",sm:{src:a("png_small")},md:{src:a("png_medium")}}],envelopeRenditions:[{type:"image/avif",sm:{src:r("avif_medium")},md:{src:r("avif_large")}},{type:"image/png",sm:{src:r("png_small")},md:{src:r("png_medium")}}]}},rZ=function(e){var t=rM[e.archetype],n="card"===t.productType,a=(0,tZ.IT)(rF,{variables:{cardIds:n?[t.compositionId]:[],flyerIds:n?[]:[t.compositionId]},ssr:!1}).data;if(n){var r,i,l,o,s,c,d,m,p,f=null==a||null==(c=a.cards)||null==(c=c.edges.find(function(e){var n;return(null==(n=e.node.composition)?void 0:n.id)===t.compositionId}))?void 0:c.node.composition,h=null==f||null==(d=f.artifacts)||null==(d=d.cardFront)?void 0:d.asset,g=null==f||null==(m
1=f.artifacts)||null==(m=m.envelopeBack)?void 0:m.asset,v=n4.H.safeParse(null==f||null==(p=f.shape)?void 0:p.name);if(!h||!g||!v.success)return null;var b=rz({cardAsset:h,envelopeAsset:g}),x=b.cardRenditions,y=b.envelopeRenditions;return(0,u.jsx)("div",{className:"relative flex h-32 shrink-0 items-end justify-center md:h-full",children:(0,u.jsx)(nQ.A,{shape:v.data,cardAlt:t.altText,envelopeAlt:"".concat(t.altText," envelope"),cardRenditions:x,envelopeRenditions:y,cardClassName:"plp-card-dropshadow",hasVerticalLayout:!0,compositionId:void 0})})}var w=null==a||null==(r=a.flyers)||null==(r=r.edges.find(function(e){var n;return(null==(n=e.node.composition)?void 0:n.id)===t.compositionId}))?void 0:r.node.composition,j=null==w||null==(i=w.artifacts)||null==(i=i.pagePreviewMobile)?void 0:i.asset,k=(0,n$.o)(null==w||null==(l=w.backgroundColor)?void 0:l.solid);return j&&j.assetTypeId&&k?(0,u.jsx)("div",{className:"relative h-36 shrink-0 md:h-full",children:(0,u.jsx)(n2.H,{className:"mx-auto h-full",thumbnailAssetId:j.id,thumbnailAssetTypeId:j.assetTypeId,name:null!=(o=null==w||null==(s=w.family)?void 0:s.name)?o:t.altText,backgroundColor:k})}):null},rU=function(e){var t=e.className;if(e.loading)return(0,u.jsx)("div",{"aria-hidden":!0,className:(0,D.A)("aspect-[360/164] w-full rounded-lg bg-dove animate-loading-pulse",t)});var n=e.archetype,a=e.onOpenCreateDrawer,r=rM[n],i=r.ctaAction,l=(0,D.A)("block h-full w-full rounded-lg no-underline text-left overflow-hidden focus:outline-none focus-visible:ring-2 focus-visible:ring-gatsby focus-visible:ring-offset-2",r.backgroundColorClass),o={id:r.trackingId,block_name:"receiver_archetype_tile"},s=(0,u.jsxs)("div",{className:"flex h-full items-center gap-3 p-3 md:gap-4 md:p-4",children:[(0,u.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-2 md:gap-3",children:[(0,u.jsx)("p",{className:"paragraph-small text-ink notranslate line-clamp-2 font-medium md:paragraph-medium md:line-clamp-3",children:r.headline}),(0,u.jsx)("span",{className:"inline-flex w-fit items-center justify-center rounded-full bg-black px-3 py-1 label-xsmall text-white md:label-small md:px-4 md:py-2",children:r.ctaLabel})]}),(0,u.jsx)(rZ,{archetype:n})]});return"navigate"===i.kind?(0,u.jsx)("div",{className:(0,D.A)("h-full w-full",t),children:(0,u.jsx)(tb.A,{href:i.href,tracking:o,className:l,"aria-label":r.ctaLabel,children:s})}):(0,u.jsxs)("div",{className:(0,D.A)("h-full w-full",t),children:[(0,u.jsx)("button",{type:"button",onClick:function(){(0,nM.Ay)({name:"pbr_element_clicked",data:o}),null==a||a()},className:(0,D.A)(l,"lg:hidden"),"aria-label":r.ctaLabel,children:s}),(0,u.jsx)(tb.A,{href:i.desktopHref,tracking:o,className:(0,D.A)(l,"hidden lg:block"),"aria-label":r.ctaLabel,children:s})]})},rH="receiver_homepage",rB=function(e){var t=e.page,n=e.className,a=e.frostedGlass,r=void 0!==a&&a,i=(0,R.e)(function(){var e,n,a,r=(null==(e=t.event.inviteFrom)?void 0:e.trim())||(null==(n=t.event.address)?void 0:n.name)||(null==(a=t.event.address)?void 0:a.display);return r?"Hosted by ".concat(r):null}),l="/go/".concat(t.pageId,"?guestToken=").concat(t.guestToken),o="/go/".concat(t.pageId,"?action=rsvp&guestToken=").concat(t.guestToken),s=(0,D.A)("inline-flex items-center justify-center rounded-full px-3 py-1 label-small text-ink no-underline focus:outline-none focus-visible:ring-2 focus-visible:ring-gatsby",r?"bg-white border border-alto":"bg-dove hover:bg-dove");return(0,u.jsxs)("div",{className:(0,D.A)("flex h-full w-full flex-col justify-between rounded-lg border border-alto p-3 gap-2",r?"bg-white/60 backdrop-blur-md":"bg-white",n),children:[(0,u.jsxs)("div",{className:"flex flex-1 min-h-0 gap-3",children:[(0,u.jsx)(rl.A,{href:l,tracking:{id:"your_next_event_media",name:"pbr_element_clicked",block_name:rH},authModalTracking:{block_name:rH},"aria-label":"View ".concat(t.event.name),className:"flex h-20 w-20 shrink-0 items-center justify-center rounded-md bg-ink overflow-hidden focus:outline-none focus-visible:ring-2 focus-visible:ring-gatsby",children:t.previewImageUrl?(0,u.jsx)("img",{src:t.previewImageUrl,alt:"",className:"h-full w-full object-cover",loading:"lazy",decoding:"async",draggable:!1}):null}),(0,u.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,u.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,u.jsx)("span",{className:"inline-flex w-fit items-center rounded-md border border-alto bg-white px-2 py-1 label-xsmall text-ink",children:"Your next event"}),(0,u.jsxs)(rl.A,{href:"/manage?tab=recent",tracking:{id:"your_next_event_view_all",block_name:rH},authModalTracking:{block_name:rH},className:"inline-flex items-center gap-1 label-xsmall text-ink no-underline whitespace-nowrap focu
1s:outline-none focus-visible:ring-2 focus-visible:ring-gatsby pt-1",children:[(0,u.jsx)("span",{children:"View all"}),(0,u.jsx)(ai.A,{title:"",direction:"right",width:"0.875rem",height:"0.875rem",fill:ao.A.black})]})]}),(0,u.jsx)("p",{className:"paragraph-base font-medium truncate text-ink notranslate",children:t.event.name}),!!i&&(0,u.jsx)("p",{className:"paragraph-small truncate text-black notranslate",children:i})]})]}),(0,u.jsxs)("div",{className:"flex gap-2 items-center justify-center",children:[(0,u.jsx)(rl.A,{href:l,tracking:{id:"add_to_calendar",name:"pbr_element_clicked",block_name:rH},authModalTracking:{block_name:rH},className:s,children:"Add to calendar"}),(0,u.jsx)(rl.A,{href:o,tracking:{id:"update_rsvp",name:"pbr_element_clicked",block_name:rH},authModalTracking:{block_name:rH},className:s,children:"Update RSVP"})]})]})},rV=n(84320),rq="receiver_homepage",rY="Add a special date",rK="Set a reminder",rW=new Set,rG=function(e){var t=e.className,n=e.frostedGlass,a=void 0!==n&&n,i=e.loading,l=void 0!==i&&i,o=e.title,s=e.subtitle,c=e.ctaLabel,d=e.variant,m=e.trackImpression,p=void 0!==m&&m,f=e.onCtaClick,h=(0,aY.A)({threshold:.5,triggerOnce:!0}),g=(0,O.A)(h,2),v=g[0],b=g[1];if((0,r.useEffect)(function(){if(!l&&p&&b){var e=null!=d?d:"";rW.has(e)||(rW.add(e),(0,nM.Ay)({name:"pbr_element_impression",data:{id:"save_important_date",block_name:rq,variant:d}}))}},[l,p,b,d]),l)return(0,u.jsx)("div",{"aria-hidden":!0,className:(0,D.A)("h-full w-full rounded-lg animate-loading-pulse",a?"border border-alto bg-white/60 backdrop-blur-md":"bg-dove",t)});var x=(null==s?void 0:s.trim())||"We'll remind you to send an invite or greeting as the day gets closer",y=null==c?void 0:c.trim(),w=function(){(0,nM.Ay)({name:"pbr_element_clicked",data:{id:"save_important_date",block_name:rq,variant:d}}),null==f||f()},j=(0,D.A)("inline-flex items-center justify-center rounded-full px-3 py-1 label-small text-ink focus:outline-none focus-visible:ring-2 focus-visible:ring-gatsby",a?"bg-white border border-alto":"bg-dove hover:bg-dove");return(0,u.jsxs)("div",{ref:v,className:(0,D.A)("flex h-full w-full flex-col justify-between rounded-lg border border-alto p-4 gap-6",a?"bg-white/60 backdrop-blur-md":"bg-white",t),children:[(0,u.jsxs)("div",{className:"flex min-h-0 flex-1 items-center gap-4",children:[(0,u.jsx)("div",{className:(0,D.A)("flex h-14 w-14 shrink-0 items-center justify-center rounded-full",a?"bg-white":"bg-dove"),children:(0,u.jsx)(rV.default,{title:"",className:"h-6 w-6 text-ink"})}),(0,u.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col justify-center gap-0.5",children:[(0,u.jsx)("p",{className:"paragraph-base font-medium text-ink",children:(null==o?void 0:o.trim())||"Save the next special date"}),(0,u.jsx)("p",{className:"paragraph-small text-black",children:x})]})]}),(0,u.jsxs)("div",{className:"flex items-center justify-center",children:[(0,u.jsx)("button",{type:"button",className:(0,D.A)(j,"md:hidden"),"aria-label":null!=y?y:rY,onClick:w,children:null!=y?y:rY}),(0,u.jsx)("button",{type:"button",className:(0,D.A)(j,"hidden md:inline-flex"),"aria-label":null!=y?y:rK,onClick:w,children:null!=y?y:rK})]})]})},r$="receiver_homepage",rX=function(e){var t,n,a,r,i,l,o=e.trim().split(/\s+/).filter(Boolean);return o.length>=2?((null!=(t=null==(n=o[0])?void 0:n[0])?t:"")+(null!=(a=null==(r=o[1])?void 0:r[0])?a:"")).toUpperCase():(null!=(i=null==(l=o[0])?void 0:l.slice(0,2))?i:"").toUpperCase()},rJ=function(e){var t,n,a,r=e.data,i=e.isLoggedIn,l=e.className,o=e.frostedGlass,s=void 0!==o&&o,c=r.connections[0],d=null!=(t=null==c?void 0:c.displayName)?t:"",m=d?rX(d):"",p=null!=(n=null==c||null==(a=c.sharedFlyerEventIds)?void 0:a.filter(Boolean).length)?n:0;return(0,u.jsxs)("div",{className:(0,D.A)("flex h-full w-full flex-col justify-between rounded-lg border border-alto p-3 gap-2",s?"bg-white/60 backdrop-blur-md":"bg-white",l),children:[(0,u.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,u.jsx)("span",{className:"inline-flex w-fit items-center rounded-md border border-alto bg-white px-2 py-1 label-xsmall text-ink",children:"Your connections"}),(0,u.jsxs)(rl.A,{href:"/manage",tracking:{id:"your_connections_view_all",block_name:r$,auth_state:i?"logged_in":"logged_out"},authModalTracking:{block_name:r$},className:"inline-flex items-center gap-1 label-xsmall text-ink no-underline whitespace-nowrap pt-1 focus:outline-none focus-visible:ring-2 focus-visible:ring-gatsby",children:[(0,u.jsx)("span",{children:"View all"}),(0,u.jsx)(ai.A,{title:"",direction:"right",width:"0.875rem",he
1ight:"0.875rem",fill:ao.A.black})]})]}),(0,u.jsxs)("div",{className:"flex flex-1 min-h-0 items-center gap-3",children:[(0,u.jsx)("div",{className:(0,D.A)("flex h-14 w-14 shrink-0 items-center justify-center rounded-full",s?"bg-white":"bg-dove"),children:(0,u.jsx)("span",{className:"paragraph-small font-medium text-ink",children:m})}),(0,u.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,u.jsx)("p",{className:"paragraph-base font-medium truncate text-ink notranslate",children:d}),p>0&&(0,u.jsxs)("p",{className:"paragraph-small truncate text-black notranslate",children:["You've attended ",p," ",1===p?"event":"events"," together!"]})]})]})]})};function rQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var r0="w-[2.5%] shrink-0",r1=function(e){var t=e.className,n=e.bare,a=e.layout,i=e.archetype,l=void 0===i?null:i,o=e.upcomingEventPage,s=e.mutualConnectionsData,c=e.isLoggedIn,d=e.loading,m=void 0!==d&&d,p=e.saveImportantDateTile,f=e.trackSaveImportantDateTileImpression,h=void 0!==f&&f,g=e.onOpenCreateDrawer,v=e.onSaveImportantDate,b="desktop"===(void 0===a?"mobile":a),x=null!=p?p:{},y=x.show,w=void 0!==y&&y,j=x.loading,k=void 0!==j&&j,N=x.copy,_=void 0===N?null:N,A=x.variant,P=void 0===A?null:A,T=(0,r.useMemo)(function(){var e=[];return l&&e.push({key:"archetype-tile",kind:"archetype_tile",archetype:l}),o?e.push({key:"upcoming-event",kind:"upcoming_event",page:o}):m&&!b&&e.push({key:"upcoming-event-loading",kind:"upcoming_event_loading"}),s&&e.push({key:"mutual-connections",kind:"mutual_connections",data:s}),w&&e.push({key:"save-important-date",kind:"save_important_date"}),e},[l,b,m,s,w,o]),C=(0,r.useRef)(null),S=(0,r.useState)(0),I=S[0],E=S[1],L=(0,r.useState)(!1),M=L[0],F=L[1],z=(0,r.useState)(!1),Z=z[0],U=z[1],H=(0,r.useRef)(null),B=(0,r.useRef)([]),V=(0,aY.A)({threshold:.35}),q=(0,O.A)(V,2),Y=q[0],K=q[1];(0,r.useEffect)(function(){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=function(){return U(e.matches)};return t(),e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}},[]);var W=(0,r.useCallback)(function(e){var t=e.index,n=e.fromUser,a=C.current,r=B.current[t];if(a&&r){n&&F(!0);var i=a.getBoundingClientRect(),l=r.getBoundingClientRect(),o=l.left-i.left-(i.width-l.width)/2;a.scrollTo({left:a.scrollLeft+o,behavior:"smooth"})}},[]);(0,r.useEffect)(function(){if(!b){var e=C.current;if(e){var t=new Map;if(B.current.forEach(function(e,n){e&&t.set(e,n)}),0!==t.size){var n=new Map,a=new IntersectionObserver(function(e){var a,r=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return rQ(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?rQ(e,void 0):void 0}}(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,r=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw r}}}}(e);try{for(r.s();!(a=r.n()).done;){var i=a.value,l=t.get(i.target);void 0!==l&&n.set(l,i.intersectionRatio)}}catch(e){r.e(e)}finally{r.f()}var o=0,s=-1;n.forEach(function(e,t){e>s&&(s=e,o=t)}),E(o)},{root:e,threshold:Array.from({length:21},function(e,t){return t/20})});t.forEach(function(e,t){return a.observe(t)});var r=function(){return F(!0)};return e.addEventListener("pointerdown",r,{passive:!0}),e.addEventListener("touchstart",r,{passive:!0}),e.addEventListener("wheel",r,{passive:!0}),function(){a.disconnect(),e.removeEventListener("pointerdown",r),e.removeEventListener("touchstart",r),e.removeEventListener("wheel",r)}}}}},[T.length,b]),(0,r.useEffect)(function(){if(b||!K||M||Z||T.length<2){H.current&&clearTimeout(H.current);return}return H.current&&clearTimeout(H.current),H.current=setTimeout(function(){W({index:(I+1)%T.length,fromUser:!1})},4e3),function(){H.current&&clearTimeout(H.current)}},[b,M,K,Z,W,I,T.length]);var G=function(e){var t=T[e];return t?"archetype_tile"===t.kind?"Personalized recommendation":"mutual_connections"===t.kind?"People you've attended events with":"save_important_date"===t.kind?"Save important dates":"upcoming_event_loading"===t.kind?"Your next event":"upcoming_event"===t.kind?"Your next event: ".concat(t.page.event.name):(0,nX.z)(t):""},$=b?"relative box-border flex w-[360px] h-[164px] shrink-0 flex-col":"snap-center snap-always relative box-border flex h-full min-h-0 min-w-0 shrink-0 grow-0 basis-full max-w-[95%] flex-col aspect-[360/164]",X=(0,D.A)("h-full flex flex-col overflow-hidden",{"p-1":!b});if(0===T.length)return null;var J=T.map(function(e,t){return(0,u.jsx)("div",{ref:function(e){B.current[t]=e},className:$,children:(0,R.e)(function(){if("archetype_tile"===e.kind)return(0,u.jsx)(rU,{archetype:e.archetype,onOpenCreateDrawer:g});var t,a,r,i=!b&&!!n;return"mutual_connections"===e.kind?(0,u.jsx)("div",{className:X,children:(0,u.jsx)(rJ,{data:e.data,isLoggedIn:c,frostedGlass:i,className:"h-full"})}):"save_important_date"===e.kind?(0,u.jsx)("div",{className:X,children:(0,u.jsx)(rG,{frostedGlass:i,loading:k,title:null!=(t=null==_?void 0:_.title)?t:void 0,subtitle:null!=(a=null==_?void 0:_.subt
1itle)?a:void 0,ctaLabel:null!=(r=null==_?void 0:_.ctaLabel)?r:void 0,variant:P,trackImpression:h,onCtaClick:v,className:"h-full"})}):"upcoming_event_loading"===e.kind?(0,u.jsx)("div",{className:X,children:(0,u.jsx)("div",{"aria-hidden":!0,className:(0,D.A)("h-full w-full rounded-lg animate-loading-pulse",i?"border border-alto bg-white/60 backdrop-blur-md":"bg-dove")})}):"upcoming_event"===e.kind?(0,u.jsx)("div",{className:X,children:(0,u.jsx)(rB,{page:e.page,frostedGlass:i})}):(0,nX.z)(e)})},e.key)});return b?(0,u.jsx)("section",{ref:Y,className:(0,D.A)("hidden md:block w-full my-8 2xl:px-6",t),"aria-roledescription":"carousel","aria-label":"Personalized homepage carousel",children:(0,u.jsx)(n1.J,{className:"w-full",containerClassName:"hide-scrollbars",children:(0,u.jsxs)("div",{className:"flex w-max gap-2 pl-4 md:pl-6 lg:mx-auto lg:pl-0 2xl:pl-0",children:[J,(0,u.jsx)("div",{"aria-hidden":!0,className:"shrink-0 pr-2.5 md:pr-3.5 lg:pr-0 2xl:pr-0"})]})})}):(0,u.jsx)("section",{ref:Y,className:(0,D.A)("md:hidden w-full max-w-full min-w-0 flex justify-center",!n&&"mb-8 bg-white",t),"aria-roledescription":"carousel","aria-label":"Personalized homepage carousel",children:(0,u.jsxs)("div",{className:"w-full max-w-full min-w-0 mx-auto mt-1",children:[(0,u.jsxs)("div",{ref:C,className:"hide-scrollbars flex w-full min-w-0 max-w-full overflow-x-auto scroll-smooth snap-x snap-mandatory overscroll-x-contain",children:[(0,u.jsx)("div",{"aria-hidden":!0,className:r0}),J,(0,u.jsx)("div",{"aria-hidden":!0,className:r0})]}),T.length>1&&(0,u.jsx)("div",{className:"flex justify-center gap-2 my-2",role:"tablist","aria-label":"Carousel slides",children:T.map(function(e,t){return(0,u.jsx)("button",{type:"button",role:"tab","aria-label":"Show slide ".concat(t+1,": ").concat(G(t)),"aria-selected":I===t,className:(0,D.A)("h-1 w-1 rounded-full bg-black transition-all",I===t?"opacity-100 scale-[2] mx-0.5":"opacity-35"),onClick:function(){return W({index:t,fromUser:!0})}},e.key)})})]})})},r2="p-6eSBdwMV9RadoY6HXPAVxA",r4="https://assets.ppassets.com/".concat(r2,"/flyer/media_asset_video/video"),r5="https://assets.ppassets.com/".concat(r2,"/flyer/media_asset_video/poster"),r3="Your events,",r6="all in one place",r8="".concat(r3," ").concat(r6),r7=function(e){var t=e.children,n=e.className,a=e.hideBackdrop;return void 0!==a&&a?(0,u.jsx)("section",{className:(0,D.A)("md:hidden relative mb-8 w-full",n),children:t}):(0,u.jsxs)("section",{"aria-label":r8,className:(0,D.A)("md:hidden relative mb-8 w-full overflow-hidden bg-panna-cotta",n),children:[(0,u.jsx)("video",{src:r4,poster:r5,"aria-hidden":!0,className:"absolute inset-0 h-full w-full object-cover",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",crossOrigin:"anonymous",disableRemotePlayback:!0}),(0,u.jsxs)("div",{className:"relative flex flex-col items-center pt-6 pb-4",children:[(0,u.jsxs)("h2",{className:"paragraph-xlarge mb-4 px-6 text-center text-white",children:[(0,u.jsx)("span",{className:"inline-block",children:r3})," ",(0,u.jsx)("span",{className:"inline-block",children:r6})]}),(0,u.jsx)("div",{className:"w-full",children:t})]})]})},r9=function(e){var t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);return t?(0,er.GP)(new Date(Number(t[1]),Number(t[2])-1,Number(t[3])),"MMMM d"):""},ie=function(e){var t=e.label,n=e.daysUntil,a=e.date;if(n<=0)return'"'.concat(t,'" is coming up today!');var r=r9(a);return'"'.concat(t,'" is coming up in ').concat(n," ").concat(1===n?"day":"days").concat(r?" on ".concat(r):"","!")},it="receiver_homepage",ia=function(e){var t=e.assetId,n=e.className;return(0,u.jsx)("video",{src:"https://assets.ppassets.com/".concat(t,"/flyer/media_asset_video/video"),poster:"https://assets.ppassets.com/".concat(t,"/flyer/media_asset_video/poster"),"aria-hidden":!0,className:(0,D.A)("absolute inset-0 h-full w-full object-cover",n),autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",crossOrigin:"anonymous",disableRemotePlayback:!0})},ir=function(e){var t=e.reminder,n=e.variant,a=e.desktopVideoId,i=e.mobileVideoId,l=e.className,o=t.eventType,s=t.browsePlpUrl,c=ie(t),d=(0,r.useId)(),m=(0,aY.A)({threshold:.5,triggerOnce:!0}),p=(0,O.A)(m,2),f=p[0],h=p[1];return(0,r.useEffect)(function(){h&&(0,nM.Ay)({name:"pbr_element_impression",data:{id:"upcoming_reminder_hero",block_name:it,event_type:o,variant:n}})},[h,o,n]),(0,u.jsxs)("section",{ref:f,"aria-labelledby":d,className:(0,D.A)("relative w-full overflow-hidden bg-white aspect-[4/3] md:aspect-auto md:h-560px",l),children:[i?(0,u.jsx)(ia,{assetId:i,className:"md:hidden"}):null,a?(0,u.jsx)(ia,{assetId:a,className:"hidden md:block"}):null,(0,u.jsxs)("div",{className:"relative flex h-full flex-col items-center justify-center gap-4 px-6 text-center md:items-start md:gap-9 md:pl-10 md:text-left lg:w-3/4 lg:pl-20 xl:w-1/2",children:[(0,u.jsx)("h1",{id:d,className:"font-basis text-[1.75rem] font-normal leading-7.5 text-balance text-white md:heading-xxlarge md:font-normal xl:text-[3.5rem] xl:leading-16",children:c}),(0,u.jsxs)("div",{className:"flex flex-col items-center gap-4 md:flex-row md:gap-6",children:[(0,u.jsxs)(w.Ay,{as:"AppLink",type:"SQUARE",color:"WHITE",href:s,className:"w-fit text-center",tracking:{id:"browse_plp",name:"pbr_element_clicked",block_name:it,event_type:o,variant:n},children:["Browse ",o?o.charAt(0).toUpperCase()+o.slice(1):o]}),(0,u.jsx)(w.Ay,{as:"AuthenticatedAppLink",type:"UNDERLINE",color:"WHITE",href:"/account/settings#important-dates",className:"text-center",tracking:{id:"view_important_dates",name:"pbr_element_clicked",block_name:it,variant:n},authModalTracking:{block_name:it},children:"View all important dates"})]})]})]})},ii=n(34618),il=n.n(ii),io=function(e){var t=e.className,n=e.backgroundClassName,a=void 0===n?il().uyoGradient:n;return(0,u.jsx)("div",{className:(0,D.A)("mx-4 theme-default-slat",t),children:(0,u.jsx)(ah.a,{headline:"Start with your own design or photo",ctaLabel:"Upload your own",href:"/cards/group/upload-your-own",card:{assetId:"p-7nGCCk6eXh20THDM8X4E9f"},backgroundClassName:a,layout:"mobile",plainLinkTracking:{id:"homepage_single_promo_banner",block_name:"below-hero-formats-single-promo"}})})},is=function(e){var t=e.title,n=e.imageAssetId,a=e.backgroundClassName,r=e.imageClassName;return(0,u.jsxs)("div",{className:(0,D.A)("relative h-44 w-full overflow-hidden rounded-lg",a),children:[(0,u.jsx)("p",{className:"absolute inset-x-0 top-0 px-4 pt-4 text-center font-basis font-normal text-[15px] leading-[19px] text-black",children:t}),(0,u.jsx)(nS.K,{className:(0,D.A)("absolute left-1/2 w-auto -translate-x-1/2 object-contain",r),alt:"",transparent:!0,sizes:"160px",minWidth:64,maxWidth:256,lazyLoad:!0,mediaRenditions:[{size:"sm",src:n}]})]})},ic=[{productType:"cards",trackingId:"homepage_split_promo_banner_stationery",title:"Cho
1ose a stationery inspired design",backgroundClassName:"bg-[#F2BC9D]",imageAssetId:"p-3bu0obqedX2BjmrkdFKlgN",imageClassName:"bottom-0 h-[107px]"},{productType:"flyers",trackingId:"homepage_split_promo_banner_event_page",title:"Choose an event page design",backgroundClassName:"bg-[#C0F8D5]",imageAssetId:"p-3kQCtS0LkOsiV2c9ToQh1j",imageClassName:"bottom-0 h-[112px]"}],id=function(e){var t=e.className,n=e.onOpenFindDesign;return(0,u.jsx)("div",{className:(0,D.A)("mx-4 flex flex-row gap-3 theme-default-slat",t),children:ic.map(function(e){return(0,u.jsx)("button",{type:"button",className:"min-w-0 flex-1 rounded-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-gatsby focus-visible:ring-offset-2",onClick:function(){(0,nM.Ay)({name:"pbr_element_clicked",data:{id:e.trackingId,block_name:"below-hero-formats-split-promo"}}),n(e.productType)},children:(0,u.jsx)(is,{title:e.title,imageAssetId:e.imageAssetId,backgroundClassName:e.backgroundClassName,imageClassName:e.imageClassName})},e.trackingId)})})},iu={"home-hero":function(e){var t=e.className,n=e.heroContent,a=e.loading,r=e.reminderTakeover,i=e.receiverTreatmentState,l=e.showReceiverHeroLoading;return(0,u.jsx)("div",{className:(0,D.A)(t,r?"hidden":(i||l)&&"hidden md:block"),children:(0,R.e)(function(){return null!=n&&n.card&&n.flyer?(0,u.jsx)(aB,{card:n.card,flyer:n.flyer}):a?(0,u.jsx)(aH,{}):(0,u.jsx)(aB,{card:aV,flyer:aq})})})},"reminder-takeover-hero":function(e){var t=e.className,n=e.reminderTakeover,a=e.reminderHeroVideo,r=e.saveImportantDateTileVariant;return n?(0,u.jsx)(ir,{reminder:n,variant:r,desktopVideoId:null==a?void 0:a.desktopVideoId,mobileVideoId:null==a?void 0:a.mobileVideoId,className:(0,D.A)("mb-4 lg:mb-8",t)}):null},"promo-banner-below-hero":function(e){var t=e.className,n=e.onOpenFindDesign,a=ak();return"single_promo"===a?(0,u.jsx)(io,{className:t}):"split_promo"===a?(0,u.jsx)(id,{className:t,onOpenFindDesign:n}):null},"free-uyo-slat":function(e){var t=e.className,n=e.reminderTakeover,a=e.receiverTreatmentState,r=e.showReceiverHeroLoading,i=ak();return a||r||n||"control"===i?null:(0,u.jsx)("div",{className:(0,D.A)("md:hidden mt-4 mb-4 px-4",t),children:(0,u.jsx)(ay,{})})},"receiver-hero-loading":function(e){var t=e.className,n=e.isLoggedIn,a=e.onSaveImportantDate,r=e.reminderTakeover,i=e.saveImportantDateTile;return e.showReceiverHeroLoading?(0,u.jsx)(r7,{className:t,hideBackdrop:!!r,children:(0,u.jsx)(r1,{bare:!0,loading:!0,upcomingEventPage:null,mutualConnectionsData:null,isLoggedIn:n,saveImportantDateTile:i,onSaveImportantDate:a,trackSaveImportantDateTileImpression:!0})}):null},"receiver-hero":function(e){var t=e.className,n=e.isLoggedIn,a=e.onSaveImportantDate,r=e.receiverCarouselEventLoading,i=e.receiverCarouselFeaturedPage,l=e.reminderTakeover,o=e.saveImportantDateTile;return e.receiverTreatmentState?(0,u.jsx)(r7,{className:t,hideBackdrop:!!l,children:(0,u.jsx)(r1,{bare:!0,loading:r,upcomingEventPage:i,mutualConnectionsData:null,isLoggedIn:n,saveImportantDateTile:o,onSaveImportantDate:a,trackSaveImportantDateTileImpression:!0})}):null},"receiver-archetype-tile":function(e){var t=e.className,n=e.onOpenCreateDrawer,a=e.receiverCarouselEventLoading,r=e.showReceiverHeroLoading,i=e.receiverTreatmentState;return r||i?(0,u.jsx)("div",{className:(0,D.A)("md:hidden px-4 mb-8",t),children:!i||i.loading||a?(0,u.jsx)(rU,{loading:!0}):(0,u.jsx)(rU,{archetype:i.archetype,onOpenCreateDrawer:n})}):null},"receiver-carousel-desktop":function(e){var t=e.className,n=e.isLoggedIn,a=e.onOpenCreateDrawer,r=e.onSaveImportantDate,i=e.receiverCarouselFeaturedPage,l=e.saveImportantDateTile,o=e.receiverTreatmentState;return o?(0,u.jsx)(r1,{className:t,layout:"desktop",archetype:o.loading?null:o.archetype,upcomingEventPage:i,mutualConnectionsData:null,isLoggedIn:n,onOpenCreateDrawer:a,saveImportantDateTile:l,onSaveImportantDate:r,trackSaveImportantDateTileImpression:!0}):null},"explore-by-category":function(e){var t=e.className,n=e.exploreCategories,a=e.loading,r=e.receiverTreatmentState,i=(0,n5.kq)(n);return(0,u.jsxs)("div",{className:(0,D.A)(t,{"max-lg:hidden":!r}),children:[(0,u.jsx)(n5.VR,{}),(0,R.e)(function(){return i.length?(0,u.jsx)(n5.lJ,{categories:i}):a?(0,u.jsx)(n5.iq,{}):(0,u.jsx)(n5.lJ,{categories:aa})})]})},"logged-in-content":function(e){var t=e.className,n=e.isLoggedIn,a=e.seoHomepageVariant;return n?(0,u.jsx)(ri,{className:t,experimentVariant:a}):null},"app-promo":function(e){var t=e.className,n=e.isLoggedIn;return(0,u.jsx)(nx.A,nw(nw({},nj),{},{className:(0,D.A)(nj.className,!n&&"mt-6",t)}))},"carousel-slat":function(e){var t=e.className,n=e.carouselSlatContent,a=e.loading,r="control"!==e.seoHomepageVariant,i=(0,D.A)(r&&"lg:hidden",t),l=(0,R.e)(function(){return n?(0,u.jsx)(nC.bB,nG(nG({},n),{},{className:(0,D.A)(n.className,i),blockName:"paperless_difference",lazyLoad:r})):a?(0,u.jsx)(nC.ZZ,{className:i}):null});return r?(0,u.jsxs)(u.Fragment,{children:[l,(0,u.jsx)(nK,{className:(0,D.A)("hidden",t)})]}):l},"designer-collections":function(e){var t=e.className,n=e.designers,a=e.loading,r=null==n?void 0:n.map(function(e){return n9.safeParse(e)}).filter(function(e){return e.success}).map(function(e){return e.data});return null!=r&&r.length?(0,u.jsx)(at,{designers:r,className:t}):a?(0,u.jsx)(ae,{className:t}):(0,u.jsx)(at,{designers:an,className:t})},"features-slat":function(e){var t,n=e.className,a=e.featuresSlat,r=e.loading,i=e.featuresSlatTheme;return a?(0,u.jsx)(af.sj,{className:n,theme:i,title:a.title||"",description:a.description,features:null!=(t=a.features)?t:[],ctaText:a.ctaText,ctaHref:a.ctaHref}):r?(0,u.jsx)(af.LS,{className:n,theme:i}):null},"party-shop-banner":function(e){var t=e.className,n=e.partyShopBanner,a=e.loading;return n?(0,u.jsx)(rw,rN(rN({},n),{},{className:(0,D.A)(n.className,t)})):a?(0,u.jsx)(rj,{className:t}):null},"paper-source-promo":function(e){var t=e.className;return(0,u.jsx)(nx.A,rh(rh({},rg),{},{className:(0,D.A)(rg.className,t)}))},"best-seller-cards":function(e){var t=e.className,n=e.seoHomepageVariant,a=e.isLoggedIn;
1return!e.authLoaded||a||"control"===n?null:(0,u.jsx)(n_,{className:t,testId:"best-seller-cards",heading:"Popular designs",strategy:L.IB.BestSellers,numResults:20,blockName:"best_sellers",trackScrollDepth:!0,experimentVariant:n})},"popular-designs":function(e){var t=e.className,n=e.seoHomepageVariant,a=e.popularDesigns,r=e.loading;return null!=a&&a.length?(0,u.jsx)(rL,{products:a,className:t,experimentVariant:n}):r?(0,u.jsx)(rR,{className:t}):null},"blog-posts":function(e){var t=e.className;return(0,u.jsx)(nA.A,nP(nP({},nT),{},{className:(0,D.A)(nT.className,t)}))},"make-your-own-slat":function(e){var t=e.className;return"control"===e.seoHomepageVariant?null:(0,u.jsx)(rp,{className:t})},"how-to-slat":function(e){var t=e.className;return"control"===e.seoHomepageVariant?null:(0,u.jsx)(a$,{className:t})},"partner-slat":function(e){var t=e.className;return"control"===e.seoHomepageVariant?null:(0,u.jsx)(ry,{className:t})},"faq-slat":function(e){var t=e.className,n=e.seoHomepageVariant;return"control"===n?null:(0,u.jsx)(ap,{className:t,experimentVariant:n})},"seasonal-party-invitations":function(e){var t=e.className,n=e.seoHomepageVariant;return"variant_c"!==n?null:(0,u.jsx)("div",{className:t,"data-testid":"seasonal-party-invitations-carousel",children:(0,u.jsx)(nN.A,{size:"personalized-homepage-slat",strategy:L.IB.UserFeatured,categories:["fall-entertaining-invitations"],blockName:"fall_party_invitations",cardsOnly:!0,showTitle:!1,showScrollButtons:!0,hideWhenEmpty:!0,trackScrollDepth:!0,experimentVariant:n,heading:(0,u.jsx)(nO.R,{children:"Fall party invitations"})})})}},im=n(88161);function ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ig=o()(function(){return Promise.all([n.e(6074),n.e(8345)]).then(n.bind(n,98345)).then(function(e){return e.CreateInvitationPage})},{ssr:!1,loadableGenerated:{webpack:function(){return[98345]}}}),iv=o()(function(){return Promise.all([n.e(6074),n.e(8345)]).then(n.bind(n,98345)).then(function(e){return e.FindDesignPage})},{ssr:!1,loadableGenerated:{webpack:function(){return[98345]}}}),ib=JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:"Paperless Post",url:"https://www.paperlesspost.com/",logo:"https://p.ppassets.com/images/papers/hermes_400.png",foundingDate:"2008",founders:[{"@type":"Person",name:"James Hirschfeld"},{"@type":"Person",name:"Alexa Hirschfeld"}],address:{"@type":"PostalAddress",streetAddress:"115 Broadway",addressLocality:"New York",addressRegion:"NY",postalCode:"10006",addressCountry:"US"},contactPoint:{"@type":"ContactPoint",contactType:"customer support",url:"https://www.paperlesspost.com/contact",email:"[email protected]"},sameAs:["https://www.instagram.com/paperlesspost/","https://www.tiktok.com/@paperlesspost","https://www.pinterest.com/paperlesspost/","http://facebook.com/pages/Paperless-Post/80813793793","https://www.youtube.com/@paperlesspost","http://twitter.com/paperlesspost","https://en.wikipedia.org/wiki/Paperless_Post"]}),ix={"promo-banner-below-hero":"lg:hidden mt-4","explore-by-category":"2xl:px-6 mt-8 lg:mt-14","carousel-slat":"lg:mx-6 my-10","popular-designs":"mb-10","make-your-own-slat":"hidden lg:block","how-to-slat":"hidden lg:block","partner-slat":"hidden lg:block","faq-slat":"hidden lg:block","seasonal-party-invitations":"hidden lg:block lg:mx-6 my-10","best-seller-cards":"hidden lg:block lg:mx-6 my-10"},iy=function(){var e,t=k.seo,n=(0,ar.mZ)(),a=(0,i.r)(),l=(0,d.hD)(),o="logged-in"===l.status,s=(0,r.useState)(null),v=s[0],x=s[1],y="sign-up"===v,w=(0,r.useState)(!1),j=w[0],N=w[1],O=(0,r.useRef)(null);(0,r.useEffect)(function(){var e;!l.loaded||l.isLoggedIn?x(null):x(null!=(e=a.asPath.split("#")[1])?e:null)},[a.asPath,l.loaded,l.isLoggedIn]);var _=(0,nn.useSearchParams)(),A=ni(),P="resolved"===A.status?A.session:null,T="resolved"===A.status,C=null!=P?P:{},S=C.guestToken,I=C.pageId,E=(0,R.e)(function(){return!!l.loaded&&null!==P}),L=ns({enabled:E,isLoggedIn:"logged-in"===l.status,guestTokenFromSession:void 0===S?null:S,pageIdFromSession:void 0===I?null:I}),M=L.featuredPage,F=L.loading,z=o?!M:!F&&!M,Z="Flyer_ReceiverPage"===(0,g._)(a.query.signup_source),U=(0,r.useState)(Z
1),H=U[0],B=U[1];(0,r.useEffect)(function(){Z&&B(!0)},[Z]);var V=nh(),q=H&&E&&V&&!z?V:null,Y=l.loaded&&T&&(null===P||!F),K=H&&!q&&!Y,W=H&&E,G=t7({enabled:!!(K||W),isLoggedIn:o}),$=G.visible,X=G.loading,J=G.copy,Q=G.upcomingReminder,ee=G.variant,et=nb(W&&null!=(e=null==Q?void 0:Q.eventType)?e:null),en=W&&null!=et&&et.desktopVideoId&&null!=et&&et.mobileVideoId?Q:null,ea={show:$&&!en,loading:X,copy:J,variant:ee},er=(0,r.useMemo)(function(){return{id:"create-invitation",mode:"drawer",content:(0,u.jsx)(ig,{})}},[]),ei=function(){var e;null==(e=O.current)||e.openWithStack({stack:[er],activeIndex:0})},el=function(e){var t;null==(t=O.current)||t.openWithStack({stack:[{id:"find-design",mode:"drawer",content:(0,u.jsx)(iv,{productType:e})}],activeIndex:0})},eo={userAttributes:{urlPath:"/"}},es=(0,nt.r)({queryKey:["dynamic-builder-page","/"],queryFn:function(){return h.cL.get("home",eo).promise().catch(function(){return null})},retry:!1,ssr:!_.get("builder.preview")});return(0,u.jsx)(na.Zk,{model:"home",content:es.data,options:eo,children:function(e){var r,i,s,d=null===es.data,h=!e&&!d,g={seoHomepageVariant:n,featuresSlatTheme:"control"===n?"default":"blue",heroContent:null==e?void 0:e.hero,exploreCategories:null==e||null==(r=e.exploreByCategorySlat)?void 0:r.categories,carouselSlatContent:null==e||null==(i=e.carouselSlat)?void 0:i.content,designers:null==e||null==(s=e.designerCollectionsSlat)?void 0:s.designers,featuresSlat:null==e?void 0:e.featuresSlat,partyShopBanner:null==e?void 0:e.partyShopBanner,popularDesigns:null==e?void 0:e.popularDesigns,loading:h,isLoggedIn:o,authLoaded:l.loaded,reminderTakeover:en,reminderHeroVideo:et,saveImportantDateTile:ea,saveImportantDateTileVariant:ee,receiverTreatmentState:q,showReceiverHeroLoading:K,receiverCarouselEventLoading:F,receiverCarouselFeaturedPage:M,onOpenCreateDrawer:ei,onOpenFindDesign:el,onSaveImportantDate:function(){return N(!0)}};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(c(),{children:(0,u.jsx)("meta",{content:"dj2880i9z1ft0orfbyygj6ckrifoqc",name:"facebook-domain-verification"})}),(0,u.jsx)(p.A,ih({},t)),(0,u.jsx)(m,{}),(0,u.jsxs)("main",{"data-testid":"homepage-variant-".concat(n),className:(0,D.A)("homepage max-w-screen-2xl mx-auto overflow-hidden relative text-black","control"!==n&&im.dR),children:[(0,u.jsx)(ne,{isOpen:j,onDismiss:function(){return N(!1)}}),(0,im.gS)(n).map(function(e){var t=iu[e];return(0,u.jsx)(t,ih(ih({},g),{},{className:(0,D.A)(ix[e],(0,im.qe)({id:e,variant:n}))}),e)})]}),!!y&&(0,u.jsx)(f.Ay,{initialAction:"SIGN_UP",isOpen:y,onDismiss:function(){return a.replace(a.asPath.split("#")[0]||"/")}}),(0,u.jsx)(b.q5,{ref:O,initialPage:er,ariaLabel:"Create invitation",minHeight:508,variant:"glass"}),(0,u.jsx)("script",{id:"org-schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:ib}})]})}})};iy.getInitialProps=(0,v.ej)({cache:"public-if-logged-out"});let iw=iy},85786:e=>{e.exports={modalDatePicker:"CreateReminderForm_modalDatePicker__8uj_l",modalDatePopover:"CreateReminderForm_modalDatePopover__yCKhs",borderlessSelect:"CreateReminderForm_borderlessSelect__hbAGK",customPicker:"CreateReminderForm_customPicker__6ucwn",titleInput:"CreateReminderForm_titleInput__IK__D",timeInput:"CreateReminderForm_timeInput__H_ecx"}},87332:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var a=n(42969),r=n(59860),i=n(14232),l=n(37876),o=["title"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let d=function(e){var t=e.title,n=(0,r.A)(e,o),a=(0,i.useId)();return(0,l.jsxs)("svg",c(c({xmlns:"http://www.w3.org/2000/svg",width:300,height:16,fill:"none",viewBox:"0 0 300 16"},n),{},{children:[t&&(0,l.jsx)("title",{children:t}),(0,l.jsx)("g",{clipPath:"url(#".concat(a,"-a)"),children:(0,l.jsx)("path",{fill:"currentColor",d:"M236.82 0h-10.08v15.68h2.99c0-2.07 0-4.14-.44-6.63l.24-.2c2.61.66 4.74.66 6.89.66V6.6c-2.11 0-4.22 0-6.91.66l-.22-.2c.48-1.75.48-2.97.04-4.56l.36-.2c2.67.48 4.89.48 7.13.48zm8.42 0h-2.99v15.66h9.88v-2.77c-2.19 0-4.42 0-6.93.48l-.34-.34c.38-4.46.38-8.74.38-13.03m8.14 0c1.83 3.44 3.65 6.85 5.66 10.28-.18 1.81-.16 3.59-.16 5.38h2.97c0-1.81 0-3.57-.18-5.4 2.01-3.42 3.84-6.85 5.66-10.26h-3.21c-1.24 2.43-2.51 4.86-3.59 8h-.34c-1.08-3.14-2.33-5.55-3.59-8zm28.89 0h-10.24v15.67h10.45V12.9c-2.35 0-4.7 0-7.49.48l-.34-.34c.38-1.37.38-2.63.06-4.36l.26-.2c2.61.69 4.74.69 6.91.69V6.28c-2.15 0-4.34 0-6.95.64l-.22-.2c.33-1.61.33-2.8-.08-4.22l.36-.2c2.75.48 5.02.46 7.29.46V0zm11.91 0c1.07 0 5.44.44 5.44 5.04 0 2.93-2.23 4.12-4.38 4.24v.36c2.02 1.94 3.38 3.96 4.7 5.94l.06.09h-3.38l-3.84-5.79c-.58-.04-1.18-.2-2.03-.58.34 2.25.36 4.48.36 6.37h-2.99V0zm-3.45 2.49c.4 1.83.4 3.49.04 5.38l.32.2c.9-.46 1.77-.5 2.55-.5 1.12 0 2.85-.58 2.85-2.47s-1.71-2.39-2.81-2.39c-.78 0-1.55 0-2.59-.42zM0 .38h5.43c2.57 0 5.04 1.47 5.04 4.57 0 3.25-2.57 4.68-4.76 4.68-1.69 0-2.92 0-4.37-.41.24 2.39.25 4.45.25 6.45H0zm5.25 7.8C7.33 8.18 8.8 7.14 8.8 5S7.21 1.82 5.13 1.82c-1.16 0-2.27 0-3.59-.27l-.24.2c.25 2.21.25 4.35.04 6.55l.2.22c1.37-.33 2.55-.33 3.7-.33zM19.38.38h1.74l6.15 15.29h-1.
169c-.69-1.65-1.37-3.33-1.84-5.23l-.2-.18c-2.96.33-3.78.35-6.57 0l-.22.2c-.51 1.76-1.2 3.51-1.88 5.21H13.2zm3.59 8.9.14-.18c-1.12-2.43-1.98-4.63-2.63-7.21h-.49c-.69 2.61-1.57 4.88-2.65 7.19l.12.2c2.21-.31 3.31-.35 5.51 0m9.72-8.9h5.43c2.57 0 5.04 1.47 5.04 4.57 0 3.25-2.57 4.68-4.76 4.68-1.69 0-2.92 0-4.37-.41.24 2.39.25 4.45.25 6.45h-1.59zm5.26 7.8c2.08 0 3.55-1.04 3.55-3.18s-1.59-3.18-3.67-3.18c-1.16 0-2.27 0-3.59-.27l-.24.2c.25 2.21.25 4.35.04 6.55l.2.22c1.37-.33 2.55-.33 3.7-.33zM48.74.38h9.66v1.45c-2.59 0-5.17.08-8.11-.27l-.24.2c.25 1.8.25 3.59.04 5.43l.18.22c2.8-.31 5.25-.31 7.74-.31v1.49c-2.49 0-4.94 0-7.72-.33l-.2.22c.22 1.96.24 3.84-.02 5.8l.22.24c2.98-.31 5.64-.31 8.31-.31v1.49h-9.86zm16.12 0h5.43c2.51 0 5.04 1.47 5.04 4.59 0 2.65-1.8 4.12-4.19 4.29v.25c1.65 2 3.02 4.12 4.39 6.15h-1.78l-4.06-6.08c-1.12-.02-2.21-.06-3.49-.37.24 2.31.25 4.43.25 6.45h-1.59zm5.25 7.9c2.08 0 3.55-1.12 3.55-3.23s-1.59-3.23-3.67-3.23c-1.12 0-2.29-.02-3.59-.25l-.24.2c.25 2.33.27 4.37.04 6.61l.2.2c1.31-.25 2.55-.27 3.7-.27zM81.52.38h1.59c0 4.59 0 9.07-.25 13.88l.22.24c2.74-.31 5.25-.31 7.72-.31v1.49h-9.27V.38zm14.72 0h9.66v1.45c-2.59 0-5.17.08-8.11-.27l-.24.2c.25 1.8.25 3.59.04 5.43l.18.22c2.8-.31 5.25-.31 7.74-.31v1.49c-2.49 0-4.94 0-7.72-.33l-.2.22c.22 1.96.24 3.84-.02 5.8l.22.24c2.98-.31 5.64-.31 8.31-.31v1.49h-9.86zm14.73 11.13 1.47-.53c.65 2.41 2.39 3.55 4.33 3.55 1.67 0 3.53-.82 3.53-2.84 0-1.9-1.71-2.31-3.18-2.76l-1.41-.45c-1.51-.47-4.19-1.43-4.19-4.27s2.47-4.14 5-4.14 4.43 1.35 5.08 3.65l-1.43.59c-.55-1.69-1.88-2.78-3.78-2.78-1.78 0-3.19 1-3.19 2.55 0 1.94 2.16 2.63 3.16 2.94l1.51.49c1.69.55 4.16 1.2 4.16 3.98s-2.37 4.53-5.25 4.53c-2.35 0-4.9-1.18-5.78-4.49zm15.82 0 1.47-.53c.65 2.41 2.39 3.55 4.33 3.55 1.67 0 3.53-.82 3.53-2.84 0-1.9-1.71-2.31-3.18-2.76l-1.41-.45c-1.51-.47-4.2-1.43-4.2-4.27s2.48-4.14 5.01-4.14 4.43 1.35 5.08 3.65l-1.43.59c-.55-1.69-1.88-2.78-3.78-2.78-1.78 0-3.2 1-3.2 2.55 0 1.94 2.16 2.63 3.16 2.94l1.51.49c1.68.55 4.15 1.2 4.15 3.98s-2.37 4.53-5.25 4.53c-2.35 0-4.9-1.18-5.78-4.49zM152.9.38h5.43c2.57 0 5.04 1.47 5.04 4.57 0 3.25-2.57 4.68-4.76 4.68-1.69 0-2.92 0-4.37-.41.24 2.39.25 4.45.25 6.45h-1.59zm5.25 7.8c2.08 0 3.55-1.04 3.55-3.18s-1.59-3.18-3.67-3.18c-1.16 0-2.27 0-3.59-.27l-.24.2c.25 2.21.25 4.35.04 6.55l.2.22c1.37-.33 2.55-.33 3.7-.33zm9.59-.14c0-4.61 3.43-7.98 7.68-7.98s7.66 3.47 7.66 7.98S179.67 16 175.4 16s-7.66-3.33-7.66-7.96m13.64 0c0-3.74-2.71-6.49-5.94-6.49s-6.02 2.72-6.02 6.49 2.76 6.47 6.02 6.47 5.94-2.72 5.94-6.47m6.19 3.47 1.47-.53c.65 2.41 2.39 3.55 4.33 3.55 1.67 0 3.53-.82 3.53-2.84 0-1.9-1.7-2.31-3.17-2.76l-1.41-.45c-1.51-.47-4.19-1.43-4.19-4.27s2.46-4.14 4.99-4.14 4.43 1.35 5.08 3.65l-1.43.59c-.55-1.69-1.88-2.78-3.78-2.78-1.78 0-3.19 1-3.19 2.55 0 1.94 2.16 2.63 3.16 2.94l1.51.49c1.69.55 4.15 1.2 4.15 3.98s-2.37 4.53-5.25 4.53c-2.35 0-4.9-1.18-5.78-4.49zm20.07-9.94c-1.98.25-3.67.25-5.39.25V.38h11.88v1.45c-1.71 0-3.41 0-5.39-.25.18 3.59.25 6.98.25 10.37v3.72h-1.59v-3.72c0-3.39.06-6.78.24-10.37z"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"".concat(a,"-a"),children:(0,l.jsx)("path",{fill:"#fff",d:"M0 0h300v16H0z"})})})]}))}},92370:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var a=n(42969),r=n(59860),i=n(37876),l=["title"];function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let c=function(e){var t=e.title,n=(0,r.A)(e,l);return(0,i.jsxs)("svg",s(s({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),{},{children:[t&&(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{fill:"currentColor",d:"m8.323 10.857 4.615-5.305a.3.3 0 0 0 .061-.207c0-.19-.172-.345-.384-.345h-9.23C3.172 5 3 5.154 3 5.345a.32.32 0 0 0 .085.207L7.7 10.857A.4.4 0 0 0 8.01 11a.4.4 0 0 0 .312-.143"})]}))}},96301:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(88856),r=n(37876);let i=function(e){var t=e.className,n=e.height,i=e.width;return(0,r.jsx)(a.A,{className:t,height:void 0===n?"1.5rem":n,title:"Add guest icon",viewBox:"0 0 24 24",width:void 0===i?"1.5rem":i,children:(0,r.jsx)("path",{d:"M20.624 15.5C20.336 13.3 18.704 11.5 16.4 11.1C16.112 11.1 15.92 11.3 15.824 11.5C15.728 11.7 16.016 12 16.208 12.1C17.552 12.4 18.608 13.2 19.184 14.4C18.608 14.1 18.032 14 17.36 14C14.96 14 13.04 16 13.04 18.5C13.04 19.1 13.136 19.6 13.328 20.2H2.864C2.672 20 2.48 19.8 2.48 19.6V16.3C2.48 14.2 3.92 12.4 5.936 12C6.224 12 6.416 11.7 6.32 11.4C6.32 11.2 6.032 11 5.84 11C3.344 11.4 1.52 13.6 1.52 16.3V19.6C1.52 20.4 2.096 21 2.864 21H13.808C14.576 22.2 15.92 22.9 17.36 22.9C19.76 22.9 21.68 20.9 21.68 18.4C21.68 17.3 21.296 16.3 20.624 15.5ZM15.632 19C15.344 19 15.152 18.8 15.152 18.5C15.152 18.2 15.44 18 15.632 18H16.88V16.7C16.88 16.4 17.072 16.2 17.36 16.2C17.648 16.2 17.84 16.4 17.84 16.7V18H19.088C19.376 18 19.568 18.2 19.568 18.5C19.568 18.8 19.376 19 19.088 19H17.84V20.1V20.3C17.84 20.6 17.648 20.8 17.36 20.8C17.072 20.8 16.88 20.6 16.88 20.3V20.1V19H15.632ZM11.12 11.5C13.904 11.5 16.112 9.2 16.112 6.3C16.112 3.4 13.904 1 11.12 1C8.336 1 6.128 3.3 6.128 6.2C6.128 9.1 8.336 11.5 11.12 11.5ZM11.12 2C13.424 2 15.248 3.9 15.248 6.3C15.248 8.7 13.424 10.6 11.12 10.6C8.816 10.6 6.992 8.7 6.992 6.3C6.992 3.9 8.912 2 11.12 2Z"})})}},97442:e=>{e.exports={timerProgress:"HomeHero_timerProgress__NvaTW","timer-progress":"HomeHero_timer-progress__uyrc_",mobileProgressBar:"HomeHero_mobileProgressBar__FO4xM","mobile-progress":"HomeHero_mobile-progress__cTnYS",buttonBump:"HomeHero_buttonBump__Bc1fH","button-bump":"HomeHero_button-bump__4ERHR"}}
1,98552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var a=n(42969),r=n(59860),i=n(37876),l=["title"];function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let c=function(e){var t=e.title,n=(0,r.A)(e,l);return(0,i.jsxs)("svg",s(s({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),{},{children:[t&&(0,i.jsx)("title",{children:t}),(0,i.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.116 2.888a3.016 3.016 0 0 0-4.267 0L2.83 8.91l-.008.008-.018.018a.5.5 0 0 0-.119.254l-.679 4.23a.503.503 0 0 0 .576.577l4.235-.672a.5.5 0 0 0 .253-.12l.02-.017.008-.008 6.018-6.023a3.02 3.02 0 0 0 0-4.27m-6.045 8.895 4.6-4.603-2.844-2.847-4.601 4.603zm5.334-5.337-.022.022-2.845-2.846.022-.023a2.01 2.01 0 0 1 2.845 0c.786.786.786 2.06 0 2.847m-6.146 5.948L3.615 9.748l-.506 3.146z",clipRule:"evenodd"})]}))}},98775:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var a=n(42969),r=n(77328),i=n.n(r),l=n(41988),o=n(58216),s=n(84040),c=n(85977),d=n(84843),u=n(98712),m=n(60116),p=n(5037),f=n(37876);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var v=function(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e},b=function(e){var t=e.url,n=e.locale,a=e.defaultLocale;try{var r=new URL(t,(0,s.X)());if(r.pathname=v(r.pathname),n===a)return r.href;var i="/"===r.pathname?"":r.pathname;return r.pathname="/".concat(n).concat(i),r.href}catch(e){var l=v(t.startsWith("/")?t:"/".concat(t));if(n===a)return"".concat((0,s.X)()).concat(l);var o="/"===l?"":l;return"".concat((0,s.X)(),"/").concat(n).concat(o)}};let x=function(e){var t,n,a,r,s,h=e.canonicalUrl,v=e.excludeCanonicalUrl,x=e.description,y=e.nofollow,w=e.noindex,j=void 0!==w&&w,k=e.ogImage,N=e.title,O=(0,o.r)(),_=null!=(t=O.locale)?t:"en",A=null!=(n=O.locales)?n:["en"],D=null!=(a=O.defaultLocale)?a:"en",P=_===D,T=(0,p.o)(O.pathname)?A.filter(function(e){return e===D}):A,C=(0,m.p)(),S=(0,u.T)({strings:{title:N,description:x},enabled:!P,initialData:(0,c.e)(function(){var e,t;if(!(C||(0,d.S)()))return{title:document.title,description:null!=(e=null==(t=document.querySelector('meta[name="description"]'))?void 0:t.getAttribute("content"))?e:""}})}),I=(0,c.e)(function(){var e;return P||(0,d.S)()?N:null==(e=S.data)?void 0:e.title}),E=(0,c.e)(function(){var e;return P||(0,d.S)()?x:null==(e=S.data)?void 0:e.description}),R=b({url:O.asPath,locale:_,defaultLocale:D}),L=h?b({url:h,locale:_,defaultLocale:D}):void 0,M=g(g({title:I,description:E},L?{url:L}:{}),null!=k&&k.url?{images:[{url:k.url,width:null!=(r=k.width)?r:void 0,height:null!=(s=k.height)?s:void 0}]}:{}),F=void 0!==v&&v,z=h&&!!L&&A.length>1&&!F&&!j&&L===R;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{children:(0,l.U)({canonical:F?void 0:L,description:E,nofollow:void 0!==y&&y,noindex:!!F||j,openGraph:M,title:I})}),!!z&&(0,f.jsxs)(i(),{children:[T.map(function(e){return(0,f.jsx)("link",{rel:"alternate",hrefLang:e,href:b({url:h,locale:e,defaultLocale:D})},e)}),(0,f.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:b({url:h,locale:D,defaultLocale:D})})]})]})}}},e=>{e.O(0,[4897,8057,636,6593,8792],()=>e(e.s=16760)),_N_E=e.O()}]);
2//# sourceMappingURL=index-22a3af5040e73e59.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.