PageSourceSearch

https://celevend.com/_next/static/chunks/5404.aeea85190b180b2c.js

js celevend.com collected 2026-10-02 00:30:46 UTC 45,565 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[631,3012,5404,5869,8250],{20190:(e,t,a)=>{a.d(t,{V:()=>i});var n=a(48269),s=a(46146);function r(e){return"celevend_rsvp_".concat(e)}function l(e){return e.trim().toLowerCase().replace(/\s+/g," ")}function i(e){let t=(0,s.n)(e),a=t.submit,[i,o]=(0,n.useState)(""),[c,d]=(0,n.useState)(""),[u,m]=(0,n.useState)(""),[p,x]=(0,n.useState)(""),[h,g]=(0,n.useState)(null),[f,y]=(0,n.useState)(!1),[b,j]=(0,n.useState)(!1),[v,k]=(0,n.useState)(null),[F,N]=(0,n.useState)(null),[w,S]=(0,n.useState)(null),[A,C]=(0,n.useState)(!1),[E,B]=(0,n.useState)(null),[D,W]=(0,n.useState)(0),[z,T]=(0,n.useState)(""),[M,O]=(0,n.useState)({}),[I,Y]=(0,n.useState)("legacy");(0,n.useEffect)(()=>{var t,a,n,s,l,i;if(!e)return;let c=function(e){try{let t=window.localStorage.getItem(r(e));if(!t)return null;let a=JSON.parse(t);if(!a||"string"!=typeof a.name||"attending"!==a.status&&"declined"!==a.status&&"maybe"!==a.status)return null;return{name:a.name,email:"string"==typeof a.email?a.email:"",phone:"string"==typeof a.phone?a.phone:"",message:"string"==typeof a.message?a.message:"",status:a.status,guestId:"string"==typeof a.guestId?a.guestId:null,editToken:"string"==typeof a.editToken?a.editToken:null,plusOnes:"number"==typeof a.plusOnes?a.plusOnes:0,plusOneName:"string"==typeof a.plusOneName?a.plusOneName:"",answers:a.answers&&"object"==typeof a.answers&&!Array.isArray(a.answers)?a.answers:{}}}catch(e){return null}}(e);c&&(o(c.name),d(c.email),m(null!=(t=c.phone)?t:""),x(c.message),g(c.status),N(null!=(a=c.guestId)?a:null),S(null!=(n=c.editToken)?n:null),B(c.name),W(null!=(s=c.plusOnes)?s:0),T(null!=(l=c.plusOneName)?l:""),O(null!=(i=c.answers)?i:{}),C(!0))},[e]);let _=!!(F&&w)&&null!==E&&l(E)===l(i),P=(0,n.useCallback)(async()=>{if(!i.trim()||!h)return void k("Please add your name and pick a response.");if(!c.trim())return void k("Please add your email, your response goes there.");if(!/\S+@\S+\.\S+/.test(c.trim()))return void k("Please enter a valid email address.");k(null),y(!0);try{let s=await a({name:i.trim(),email:c.trim(),phone:u.trim()||null,rsvpStatus:h,plusOnes:D,plusOneName:z.trim()||null,guestMessage:p.trim()||null,answers:M,guestId:_?F:null,editToken:_?w:null});Y(s.flow);{var t,n;let a="invite_only"===s.flow||"approval_required"===s.flow,l=a&&"maybe"===h?"attending":h,o=a?0:D,d=null!=(t=null==s?void 0:s.guestId)?t:null,m=null!=(n=null==s?void 0:s.editToken)?n:null;if(N(d),S(m),g(l),W(o),B(i.trim()),C(!0),j(!0),e)try{window.localStorage.setItem(r(e),JSON.stringify({name:i.trim(),email:c.trim(),phone:u.trim(),message:p.trim(),status:l,plusOnes:o,plusOneName:o>0?z.trim():"",answers:M,guestId:d,editToken:m}))}catch(e){}}}catch(e){console.error("RSVP submit failed:",e),k(e instanceof Error?e.message:"Network problem. Please try again.")}finally{y(!1)}},[M,w,c,F,_,a,p,i,u,z,D,e,h]),R=(0,n.useCallback)(e=>t.isPrivate?"Thank you. Your response has been received.":e,[t.isPrivate]);return{name:i,setName:o,email:c,setEmail:d,phone:u,setPhone:m,message:p,setMessage:x,status:h,setStatus:g,submitting:f,done:b,error:v,guestId:F,alreadyResponded:A,settings:t.settings,settingsLoaded:t.settingsLoaded,isPrivate:t.isPrivate,plusOneLimit:t.plusOneLimit,plusOnes:D,setPlusOnes:W,plusOneName:z,setPlusOneName:T,questions:t.questions,answers:M,setAnswers:O,lastFlow:I,confirmationCopy:R,submit:P}}},46603:(e,t,a)=>{function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,a="number"==typeof e?e:Number(e);return Number.isFinite(a)?Math.round(1e3*Math.min(1,Math.max(0,a)))/10:t}function s(e){return{objectPosition:"".concat(n(null==e?void 0:e.focalX),"% ").concat(n(null==e?void 0:e.focalY),"%")}}function r(e){return{objectPosition:"".concat(n(null==e?void 0:e.coverFocalX),"% ").concat(n(null==e?void 0:e.coverFocalY),"%")}}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"50% 50%";return(Number.isFinite(Number(null==e?void 0:e.coverFocalX))||Number.isFinite(Number(null==e?void 0:e.coverFocalY)))&&((null==e?void 0:e.coverFocalX)!=null||(null==e?void 0:e.coverFocalY)!=null)?"".concat(n(null==e?void 0:e.coverFocalX),"% ").concat(n(null==e?void 0:e.coverFocalY),"%"):t}function i(e){return!!e&&(Number.isFinite(Number(e.focalX))&&null!=e.focalX||Number.isFinite(Number(e.focalY))&&null!=e.focalY||Number.isFinite(Number(e.coverFocalX))&&null!=e.coverFocalX||Number.isFinite(Number(e.coverFocalY))&&null!=e.coverFocalY)}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"50% 50%";return e&&(null!=e.focalX||null!=e.focalY)?"".concat(n(e.focalX),"% ").concat(n(e.focalY),"%"):t}a.d(t,{Hh:()=>o,Iq:()=>l,MD:()=>s,Ok:()=>i,bt:()=>r})},53699:(e,t,a)=>{a.d(t,{q:()=>s});var n=a(51385);function s(e){let{rsvp:t,inputStyle:a,inputClassName:s="w-full px-3.5 py-3 outline-none"}=e;if(!t.settingsLoaded||"declined"===t.status)return null;let r={color:"currentColor",fontFamily:"inherit",opacity:.78},l=null!=a?a:{color:"currentColor",background:"transparent",border:"1px solid color-mix(in srgb, currentColor 30%, transparent)",borderRadius:8,fontFamily:"inherit"},i=(e,a)=>{t.setAnswers(t=>({...t,[e]:a}))};return(0,n.jsxs)("div",{className:"space-y-5","data-rsvp-managed-fields":"true",children:["attending"===t.status&&t.plusOneLimit>0?(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.16em]",style:r,children:"Additional guests"}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("button",{type:"button","aria-label":"Remove an additional guest",onClick:()=>t.setPlusOnes(e=>Math.max(0,e-1)),className:"flex min-h-11 min-w-11 items-center justify-center px-3",style:l,children:"−"}),(0,n.jsx)("output",{className:"min-w-8 text-center tabular-nums","aria-live":"polite",children:t.plusOnes}),(0,n.jsx)("button",{type:"button","aria-label":"Add an additional guest",onClick:()=>t.setPlusOnes(e=>Math.min(t.plusOneLimit,e+1)),className:"flex min-h-11 min-w-11 items-center justify-center px-3",style:l,children:"+"}),(0,n.jsxs)("span",{className:"text-sm",style:r,children:["Up to ",t.plusOneLimit]})]}),t.plusOnes>0?(0,n.jsx)("input",{type:"text",value:t.plusOneName,onChange:e=>t.setPlusOneName(e.target.value),placeholder:"Additional guest name(s)",maxLength:200,className:"mt-3 ".concat(s),style:l}):null]}):null,t.questions.map(e=>{let a=t.answers[e.id];return(0,n.jsxs)("fieldset",{className:"space-y-2",children:[(0,n.jsxs)("legend",{className:"text-xs font-semibold uppercase tracking-[0.16em]",style:r,children:[e.label,e.required?" *":""]}),"choice"===e.type?(0,n.jsxs)("select",{value:"string"==typeof a?a:"",onCh
1ange:t=>i(e.id,t.target.value),required:e.required,className:s,style:l,children:[(0,n.jsx)("option",{value:"",children:"Choose one"}),e.options.map(e=>(0,n.jsx)("option",{value:e,children:e},e))]}):"multi_choice"===e.type?(0,n.jsx)("div",{className:"space-y-2",children:e.options.map(t=>{let s=Array.isArray(a)?a:[];return(0,n.jsxs)("label",{className:"flex min-h-11 items-center gap-3 text-sm",style:r,children:[(0,n.jsx)("input",{type:"checkbox",checked:s.includes(t),onChange:a=>i(e.id,a.target.checked?[...s,t]:s.filter(e=>e!==t))}),(0,n.jsx)("span",{children:t})]},t)})}):(0,n.jsx)("input",{type:"number"===e.type?"number":"text",value:"number"==typeof a||"string"==typeof a?a:"",onChange:t=>i(e.id,"number"===e.type?""===t.target.value?"":Number(t.target.value):t.target.value),required:e.required,maxLength:"text"===e.type?300:void 0,className:s,style:l})]},e.id)})]})}},64821:(e,t,a)=>{a.r(t),a.d(t,{default:()=>P});var n=a(51385),s=a(90306),r=a(47752),l=a(48269),i=a(95838),o=a(20190),c=a(53699),d=a(46603);let u={bg:"var(--invite-background, #FAF3E7)",card:"#FFFFFF",ink:"var(--invite-primary, #33211A)",inkSoft:"var(--invite-ink-soft, #6B564C)",coral:"var(--invite-accent, #A3402A)",coralBright:"#D95B41",mahogany:"#4A2C1D",night:"#2A1811",gold:"#8A6420",goldBright:"#D4A23C",hairline:"#EADCC5"},m="'Marcellus', 'Trajan Pro', Georgia, serif",p="'Cormorant Garamond', 'Cormorant', serif",x="'Jost', system-ui, -apple-system, sans-serif",h={bg:u.bg,card:u.card,text:"#4A3A31",muted:u.inkSoft,headline:u.ink,accent:u.coral,borderSubtle:u.hairline,fontDisplay:m,fontBody:x},g="linear-gradient(to right, transparent, ".concat(u.gold,", ").concat(u.goldBright,", ").concat(u.gold,", transparent)");function f(e){let{children:t,delay:a=0,y:s=18}=e,{ref:r,vis:i}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.15,t=(0,l.useRef)(null),[a,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let a=t.current;if(!a)return;let s=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&n(!0)},{threshold:e});return s.observe(a),()=>s.disconnect()},[e]),{ref:t,vis:a}}();return(0,n.jsx)("div",{ref:r,style:{opacity:+!!i,transform:i?"translateY(0)":"translateY(".concat(s,"px)"),transition:"opacity 900ms ease ".concat(a,"ms, transform 1100ms cubic-bezier(.16,1,.3,1) ").concat(a,"ms")},children:t})}function y(){let[e,t]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)");t(e.matches);let a=e=>t(e.matches);return e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[]),e}function b(e){switch(e){case"birthday":return{lead:"The court assembles",invite:"invites you to a royal celebration",countdown:"Until the drums speak",success:"Your seat at the court is saved. Come and celebrate with us."};case"corporate":return{lead:"You are cordially invited",invite:"requests the honour of your presence",countdown:"Until the ceremony",success:"Your attendance is confirmed. We look forward to hosting you."};case"wedding":return{lead:"Two houses are joined",invite:"invite you to witness their union",countdown:"Until the drums speak",success:"Your seat at the court is saved. Come and celebrate with us."};default:return{lead:"A title is conferred",invite:"invites you to witness the honour",countdown:"Until the drums speak",success:"Your seat at the court is saved. We will be honoured to have you."}}}function j(e){return e?e instanceof Date?e:"function"==typeof e.toDate?e.toDate():"function"==typeof e.toMillis?new Date(e.toMillis()):"number"==typeof e.seconds?new Date(1e3*e.seconds):null:null}function v(e){let{height:t=12,width:a="100%"}=e;return(0,n.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none block",style:{width:a,height:t,backgroundImage:"url('".concat("/images/invite-art/chieftaincy-coral.jpg","')"),backgroundSize:"150px auto",backgroundPosition:"center",borderRadius:2,opacity:.92}})}function k(e){let{size:t=12}=e;return(0,n.jsx)("span",{"aria-hidden":!0,className:"inline-block rounded-full",style:{width:t,height:t,background:"radial-gradient(circle at 32% 28%, ".concat(u.coralBright,", ").concat(u.coral," 70%)"),boxShadow:"inset 0 -1px 2px rgba(0,0,0,0.25)"}})}function F(e){let{eyebrow:t,sub:a,dark:s}=e;return(0,n.jsxs)("div",{className:"mb-10 text-center",children:[(0,n.jsxs)("span",{"aria-hidden":!0,
1className:"mx-auto mb-3 flex items-center justify-center gap-2",children:[(0,n.jsx)("span",{style:{height:1,width:40,background:g}}),(0,n.jsx)(k,{size:9}),(0,n.jsx)(k,{size:12}),(0,n.jsx)(k,{size:9}),(0,n.jsx)("span",{style:{height:1,width:40,background:g}})]}),(0,n.jsx)("h2",{className:"text-[12px] uppercase tracking-[0.45em]",style:{color:s?u.goldBright:u.gold,fontFamily:x,fontWeight:600},children:t}),a?(0,n.jsx)("p",{className:"mx-auto mt-3 max-w-md italic",style:{fontFamily:p,color:s?"#E8D5C4":u.inkSoft,fontSize:"1.08rem"},children:a}):null]})}function N(e){let{size:t=96,beating:a}=e;return(0,n.jsxs)("svg",{width:t,height:1.25*t,viewBox:"0 0 80 100","aria-hidden":!0,fill:"none",style:{transformOrigin:"50% 60%",animation:a?"chBeat 0.5s ease-in-out 3":void 0,filter:"drop-shadow(0 8px 18px rgba(0,0,0,0.5))"},children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"chWood",x1:"0",y1:"0",x2:"1",y2:"0",children:[(0,n.jsx)("stop",{offset:"0",stopColor:"#6B4226"}),(0,n.jsx)("stop",{offset:"0.5",stopColor:"#8A5A33"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#5A3620"})]})}),(0,n.jsx)("ellipse",{cx:"40",cy:"14",rx:"26",ry:"9",fill:"#E8D3B4",stroke:"#B99B6F",strokeWidth:"2"}),(0,n.jsx)("ellipse",{cx:"40",cy:"86",rx:"26",ry:"9",fill:"#D9C2A0",stroke:"#B99B6F",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M14 14 C26 40 26 60 14 86 L66 86 C54 60 54 40 66 14 Z",fill:"url(#chWood)"}),[0,1,2,3,4,5].map(e=>(0,n.jsx)("path",{d:"M".concat(18+9*e," 16 C ").concat(28+5*e," 42, ").concat(28+5*e," 58, ").concat(18+9*e," 84"),stroke:"#3A241A",strokeWidth:"2",fill:"none",opacity:"0.85"},e)),(0,n.jsx)("path",{d:"M62 30 Q74 22 76 34",stroke:"#8A5A33",strokeWidth:"4",strokeLinecap:"round",fill:"none",style:{transformOrigin:"62px 30px",animation:a?"chBeater 0.5s ease-in-out 3":void 0}}),(0,n.jsx)("circle",{cx:"76",cy:"34",r:"5",fill:"#8A5A33"})]})}function w(e){let{names:t,lead:a,onOpen:s}=e,r=y(),[i,o]=(0,l.useState)("still"),c=()=>{if("still"===i){if(r){s(),o("gone");return}o("beating"),setTimeout(()=>s(),1600),setTimeout(()=>o("gone"),2800)}};if("gone"===i)return null;let d="beating"===i;return(0,n.jsxs)("div",{onClick:c,role:"button",tabIndex:0,"aria-label":"Tap to sound the drum and open the invitation",onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),c())},className:"fixed inset-0 z-[200] flex flex-col items-center justify-center overflow-hidden px-8 text-center",style:{cursor:"still"===i?"pointer":"default",pointerEvents:"still"===i?"auto":"none",background:u.night,opacity:+!d,transition:"opacity 1100ms ease 1600ms"},children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 top-0",children:(0,n.jsx)(v,{height:14})}),(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-0",children:(0,n.jsx)(v,{height:14})}),(0,n.jsx)("p",{className:"text-[12px] uppercase tracking-[0.5em]",style:{color:u.goldBright,fontFamily:x,fontWeight:600},children:a}),(0,n.jsx)("p",{className:"mt-4",style:{fontFamily:m,color:"#F6EBDA",fontSize:"clamp(1.8rem, 7.5vw, 2.7rem)",lineHeight:1.15},children:t}),(0,n.jsxs)("div",{className:"relative mt-8 flex flex-col items-center",children:[d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"absolute rounded-full",style:{top:24,width:130,height:130,border:"2px solid ".concat(u.coralBright),animation:"chSonar 0.9s ease-out 3"}}),(0,n.jsx)("span",{"aria-hidden":!0,className:"absolute rounded-full",style:{top:24,width:130,height:130,border:"2px solid ".concat(u.goldBright),animation:"chSonar 0.9s ease-out 0.3s 3"}})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"absolute rounded-full",style:{top:24,width:150,height:150,border:"2px solid ".concat(u.goldBright),animation:"chSonar 2.6s ease-out infinite"}}),(0,n.jsx)("span",{"aria-hidden":!0,className:"absolute rounded-full",style:{top:24,width:150,height:150,border:"2px solid ".concat(u.goldBright),animation:"chSonar 2.6s ease-out 1.3s infinite"}})]}),(0,n.jsx)(N,{size:92,beating:d}),(0,n.jsx)("p",{className:"mt-6 px-6 py-2.5 text-[12px] uppercase tracking-[0.38em]",style:{color:u.night,fontFamily:x,fontWeight:700,background:"linear-gradient(135deg, #EFD9A0, ".concat(u.goldBright,")"),boxShadow:"0 12px 30px -10px rgba(0,0,0,0.8)",animation:d?void 0:"chGlow 2.4s ease-in-out infinite"},children:d?"The drums are speaking…":"Tap to Sound the Drum"})]})]})}function S(e){let{invite:t,data:a,begin:s}=e,r=(t.hosts||[]).map(e=>
1e.name).filter(Boolean).join(" & "),l=b(t.eventType);return(0,n.jsxs)("header",{className:"relative flex min-h-[100svh] flex-col items-center justify-end overflow-hidden px-6 pb-16 pt-24 text-center",style:{background:u.night},children:[(0,n.jsx)("img",{src:a.coverImage||"/images/invite-art/chieftaincy-palace.jpg",alt:"","aria-hidden":!0,className:"absolute inset-0 h-full w-full object-cover",style:{objectPosition:a.coverImage?(0,d.Iq)(a,"center 28%"):"center 28%"}}),(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(42,24,17,0.35) 0%, rgba(42,24,17,0.02) 32%, rgba(42,24,17,0.12) 56%, rgba(42,24,17,0.9) 100%)"}}),(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute pointer-events-none",style:{inset:"0.9rem",border:"1px solid ".concat(u.goldBright,"66")}}),(0,n.jsxs)("div",{className:"relative",style:{zIndex:2,maxWidth:560},children:[(0,n.jsx)("p",{className:"text-[12px] uppercase tracking-[0.5em]",style:{color:u.goldBright,fontFamily:x,fontWeight:600,textShadow:"0 2px 14px rgba(0,0,0,0.8)",opacity:+!!s,transition:"opacity 700ms ease 200ms"},children:a.subtitle||l.lead}),(0,n.jsx)("h1",{className:"mt-5",style:{fontFamily:m,color:"#FBF2E2",fontSize:"clamp(2.4rem, 10.5vw, 3.8rem)",lineHeight:1.05,textShadow:"0 3px 22px rgba(0,0,0,0.9)",opacity:+!!s,transform:s?"translateY(0)":"translateY(0.4em)",transition:"opacity 900ms ease 400ms, transform 1000ms cubic-bezier(.2,1,.3,1) 400ms"},children:r}),(0,n.jsx)("p",{className:"mt-4 italic",style:{fontFamily:p,color:"#F0DFC8",fontSize:"1.15rem",textShadow:"0 2px 14px rgba(0,0,0,0.85)",opacity:+!!s,transition:"opacity 800ms ease 900ms"},children:l.invite}),(0,n.jsx)("span",{"aria-hidden":!0,className:"mx-auto mt-6 block",style:{height:1,width:120,background:g,opacity:+!!s,transition:"opacity 800ms ease 1100ms"}}),t.dateDisplay?(0,n.jsx)("p",{className:"mt-6 text-[12px] uppercase tracking-[0.4em]",style:{color:u.goldBright,fontFamily:x,fontWeight:600,textShadow:"0 2px 14px rgba(0,0,0,0.8)",opacity:+!!s,transition:"opacity 800ms ease 1250ms"},children:t.dateDisplay}):null,t.hashtag?(0,n.jsx)("p",{className:"mt-3 text-sm italic",style:{color:"#E8D5C4",textShadow:"0 2px 12px rgba(0,0,0,0.8)",opacity:+!!s,transition:"opacity 800ms ease 1350ms"},children:t.hashtag}):null,(0,n.jsx)("button",{type:"button",onClick:()=>{var e;return null==(e=document.getElementById("rsvp"))?void 0:e.scrollIntoView({behavior:"smooth"})},className:"mt-8 px-10 py-3.5 text-[11px] uppercase tracking-[0.3em]",style:{fontFamily:x,fontWeight:600,color:u.night,background:"linear-gradient(135deg, #EFD9A0, ".concat(u.goldBright,")"),border:"none",boxShadow:"0 14px 34px -12px rgba(0,0,0,0.8)",opacity:+!!s,transition:"opacity 800ms ease 1500ms"},children:"Take Your Seat at the Court"})]})]})}function A(e){let{dateDisplay:t}=e,a=y(),[s,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{a&&r(!0)},[a]),(0,n.jsx)("section",{className:"px-6 py-20 text-center",style:{background:u.bg},children:(0,n.jsxs)(f,{children:[(0,n.jsx)(F,{eyebrow:"Save the Date",sub:"He who brings kola brings life. The day is sealed inside."}),(0,n.jsxs)("div",{onClick:()=>r(!0),role:"button",tabIndex:0,"aria-label":"Tap to break the kola and reveal the date",onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),r(!0))},className:"mx-auto flex max-w-md flex-col items-center px-7 py-10",style:{cursor:s?"default":"pointer",background:u.card,borderRadius:14,border:"1px solid ".concat(u.hairline),boxShadow:"0 26px 60px -30px rgba(58,36,26,0.35)"},children:[(0,n.jsx)("div",{className:"relative",style:{width:150,height:96},children:(0,n.jsxs)("svg",{width:"150",height:"96",viewBox:"0 0 150 96","aria-hidden":!0,fill:"none",children:[(0,n.jsx)("ellipse",{cx:"75",cy:"84",rx:"52",ry:"8",fill:"#E9DDC7"}),(0,n.jsxs)("g",{style:{transformOrigin:"75px 60px",transform:s?"translateX(-26px) rotate(-16deg)":"none",transition:"transform 1100ms cubic-bezier(.2,1,.3,1)"},children:[(0,n.jsx)("path",{d:"M75 24 C50 24 38 42 40 60 C42 76 58 82 75 80 Z",fill:"#B4552D",stroke:"#8A3E1F",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M75 30 C58 32 48 46 50 60",stroke:"#D98A5E",strokeWidth:"2.4",fill:"none",opacity:"0.7"})]}),(0,n.jsxs)("g",{style:{transformOrigin:"75px 60px",transform:s?"translateX(26px) rotate(16deg)":"none",transition:"transform 1100ms cubic-bezier(.2,1,.3,1)"},children:[(0,n.jsx)("path",{d:"M75 24 C100 24 112 42 110 60 C108 76 92 82 75 80 Z",fill:"#A34926",stroke:"#8A3E1F",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M75 30 C92 32 102 46 100 60",stroke:"#D98A5E",strokeWidth:"2.4",fill:"none",opacity:"0.7"})]})]})}),s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"mt-3 text-[10px] uppercase tracking-[0.4em]",style:{color:u.gold,fontFamily:x,fontWeight:600},children:"The kola is broken"}),(0,n.jsx)("p",{className:"mt-2",style:{fontFamily:m,color:u.ink,fontSize:"clamp(1.4rem, 5.6vw, 1.9rem)"},children:t})]}):(0,n.jsx)("p",{className:"mt-3 text-[11px] uppercase tracking-[0.35em]",style:{color:u.gold,fontFamily:x,fontWeight:600,animation:"chGlow 2.4s ease-in-out infinite"},children:"Tap to break the kola"})]})]})})}function C(e){let{eventDate:t,label:a}=e,[s,r]=(0,l.useState)(null);if((0,l.useEffect)(()=>{r(Date.now());let e=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(e)},[]),!t)return null;let i=t.getTime(),o=Math.max(0,i-(null!=s?s:i)),c=[[Math.floor(o/864e5),"Days"],[Math.floor(o%864e5/36e5),"Hours"],[Math.floor(o%36e5/6e4),"Min"],[Math.floor(o%6e4/1e3),"Sec"]];return(0,n.jsxs)("section",{className:"relative overflow-hidden px-6 py-20 text-center",style:{background:u.night}
1,children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 top-0",children:(0,n.jsx)(v,{height:12})}),(0,n.jsx)("div",{className:"relative",style:{zIndex:2},children:(0,n.jsxs)(f,{children:[(0,n.jsx)(F,{dark:!0,eyebrow:a}),(0,n.jsx)("div",{className:"flex items-start justify-center gap-6 sm:gap-10",children:c.map((e,t)=>{let[a,s]=e;return(0,n.jsxs)("div",{className:"ch-string flex flex-col items-center",style:{transformOrigin:"top center",animation:"chSway ".concat(4.6+.6*t,"s ease-in-out ").concat(.4*t,"s infinite")},children:[(0,n.jsx)("span",{"aria-hidden":!0,style:{width:2,height:16,background:u.goldBright}}),[14,12,11].map((e,t)=>(0,n.jsx)("span",{style:{marginTop:3},children:(0,n.jsx)(k,{size:e})},t)),(0,n.jsx)("div",{className:"mt-2 flex h-12 w-14 items-center justify-center",style:{background:"linear-gradient(135deg, #EFD9A0, ".concat(u.goldBright,")"),borderRadius:8,boxShadow:"0 10px 22px -10px rgba(0,0,0,0.7)"},children:(0,n.jsx)("span",{style:{fontFamily:m,fontSize:"1.35rem",color:u.mahogany,fontVariantNumeric:"tabular-nums"},children:String(a).padStart(2,"0")})}),(0,n.jsx)("span",{className:"mt-2 text-[9px] uppercase tracking-[0.3em]",style:{color:"#E8D5C4",fontFamily:x,fontWeight:600},children:s})]},s)})})]})}),(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-0",children:(0,n.jsx)(v,{height:12})})]})}function E(e){let{data:t,invite:a}=e,r=j(a.date),l=function(e,t,a,n){let s;if(!t)return null;let r=e=>String(e).padStart(2,"0"),l=e=>"".concat(e.getFullYear()).concat(r(e.getMonth()+1)).concat(r(e.getDate())),i=null==a?void 0:a.match(/(\d{1,2})(?::(\d{2}))?\s*(a\.?m\.?|p\.?m\.?)/i);if(i){let e=parseInt(i[1],10)%12;/^p/i.test(i[3])&&(e+=12);let a=i[2]?parseInt(i[2],10):0,n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,a),o=new Date(n.getTime()+144e5),c=e=>"".concat(l(e),"T").concat(r(e.getHours())).concat(r(e.getMinutes()),"00");s="".concat(c(n),"/").concat(c(o))}else{let e=new Date(t.getFullYear(),t.getMonth(),t.getDate()+1);s="".concat(l(t),"/").concat(l(e))}let o=new URLSearchParams({action:"TEMPLATE",text:e,dates:s});return n&&o.set("location",n),"https://calendar.google.com/calendar/render?".concat(o.toString())}("".concat(t.label||"Ceremony"," — ").concat((a.hosts||[]).map(e=>e.name).join(" & ")),r,t.time,[t.venueName,t.location].filter(Boolean).join(", ")),i=t.mapUrl&&/^https?:\/\//i.test(t.mapUrl)?t.mapUrl:null;return(0,n.jsx)("section",{className:"px-6 py-12",style:{background:u.bg},children:(0,n.jsx)(f,{children:(0,n.jsxs)("div",{className:"mx-auto max-w-md overflow-hidden text-center",style:{background:u.card,borderRadius:12,border:"1px solid ".concat(u.hairline),boxShadow:"0 26px 60px -34px rgba(58,36,26,0.35)"},children:[(0,n.jsx)(v,{height:10}),(0,n.jsxs)("div",{className:"px-7 pb-10 pt-9",children:[(0,n.jsx)("p",{className:"text-[11px] uppercase tracking-[0.4em]",style:{color:u.gold,fontFamily:x,fontWeight:600},children:t.label||"The Ceremony"}),t.dateDisplay?(0,n.jsx)("p",{className:"mt-3 text-sm",style:{color:u.inkSoft},children:t.dateDisplay}):null,(0,n.jsx)("h3",{className:"mt-3",style:{fontFamily:m,fontSize:"clamp(1.4rem, 5vw, 1.75rem)",color:u.ink,lineHeight:1.25},children:t.venueName}),(0,n.jsx)("p",{className:"mt-3 text-sm leading-relaxed",style:{color:u.inkSoft},children:t.location}),t.time?(0,n.jsx)("p",{className:"mt-3 text-[12px] uppercase tracking-[0.3em]",style:{color:u.coral,fontFamily:x,fontWeight:600},children:t.time}):null,(0,n.jsxs)("div",{className:"mt-7 flex flex-wrap justify-center gap-3",children:[i?(0,n.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"inline-block px-7 py-3 text-[10px] uppercase tracking-[0.3em]",style:{color:"#FFFFFF",background:u.coral,fontFamily:x,fontWeight:600},children:"Open Maps"}):null,l?(0,n.jsx)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"inline-block px-7 py-3 text-[10px] uppercase tracking-[0.3em]",style:{color:u.coral,border:"1px solid ".concat((0,s.fu)(u.coral,"88")),fontFamily:x,fontWeight:600},children:"Add to Calendar"}):null]})]})]})})})}function B(e){var t;let{data:a}=e;return(null==(t=a.items)?void 0:t.length)?(0,n.jsxs)("section",{className:"px-6 py-16",style:{background:u.bg}
1,children:[(0,n.jsx)(f,{children:(0,n.jsx)(F,{eyebrow:"The Order of Rites"})}),(0,n.jsx)("div",{className:"mx-auto max-w-md",children:a.items.map((e,t)=>(0,n.jsx)(f,{delay:100*t,children:(0,n.jsxs)("div",{className:"grid items-start py-5",style:{gridTemplateColumns:"1fr 44px 1.6fr",borderBottom:t<a.items.length-1?"1px solid ".concat(u.hairline):void 0},children:[(0,n.jsx)("p",{className:"pt-1 text-right text-[11px] uppercase tracking-[0.2em]",style:{color:u.gold,fontFamily:x,fontWeight:600},children:e.time}),(0,n.jsx)("div",{className:"flex justify-center pt-1.5","aria-hidden":!0,children:(0,n.jsx)(k,{size:0===t?14:11})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{style:{fontFamily:m,fontSize:"1.15rem",color:u.ink,lineHeight:1.3},children:e.title}),e.note?(0,n.jsx)("p",{className:"mt-1 text-sm",style:{color:u.inkSoft},children:e.note}):null]})]})},t))})]}):null}function D(e){var t;let{data:a}=e;return(null==(t=a.colours)?void 0:t.length)?(0,n.jsx)("section",{className:"px-6 py-16 text-center",style:{background:u.bg},children:(0,n.jsxs)(f,{children:[(0,n.jsx)(F,{eyebrow:"Colours of the Day",sub:a.intro||"The court dresses in these colours."}),(0,n.jsxs)("div",{className:"mx-auto max-w-md",children:[(0,n.jsx)("div",{"aria-hidden":!0,style:{height:7,borderRadius:999,background:"linear-gradient(90deg, #6B4226, #8A5A33, #6B4226)",boxShadow:"0 2px 8px rgba(58,36,26,0.35)"}}),(0,n.jsx)("div",{className:"flex items-start justify-center gap-5",style:{marginTop:-2},children:a.colours.slice(0,5).map((e,t)=>(0,n.jsxs)("div",{className:"flex flex-col items-center",style:{width:74,transformOrigin:"top center",animation:"chSway ".concat(5+.7*t,"s ease-in-out ").concat(.5*t,"s infinite")},children:[(0,n.jsx)("div",{"aria-hidden":!0,style:{width:46,height:96,borderRadius:"3px 3px 8px 8px",background:e.hex,backgroundImage:"repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,0.25) 14px 17px, transparent 17px 30px, rgba(0,0,0,0.12) 30px 33px)",border:"1px solid rgba(58,36,26,0.2)",boxShadow:"0 14px 28px -12px rgba(58,36,26,0.45)"}}),(0,n.jsx)("div",{"aria-hidden":!0,className:"flex gap-[3px]",children:[0,1,2,3,4,5].map(t=>(0,n.jsx)("span",{style:{width:2,height:9,background:e.hex,opacity:.8}},t))}),(0,n.jsx)("p",{className:"mt-2 text-[11px] leading-tight",style:{color:u.ink,fontFamily:x,fontWeight:500},children:e.name}),e.note?(0,n.jsx)("p",{className:"text-[10px] italic",style:{color:u.inkSoft,fontFamily:p},children:e.note}):null]},t))})]})]})}):null}function W(e){let{data:t}=e;return(0,n.jsx)("section",{className:"px-6 py-12 text-center",style:{background:u.bg},children:(0,n.jsxs)(f,{children:[(0,n.jsx)(F,{eyebrow:"Dress Code"}),(0,n.jsx)("p",{className:"mx-auto max-w-md italic",style:{fontFamily:p,fontSize:"1.2rem",color:u.ink},children:t.note}),t.receptionNote?(0,n.jsxs)("p",{className:"mt-3 text-sm",style:{color:u.inkSoft},children:[t.receptionAccent||""," ",t.receptionNote]}):null]})})}function z(e){let{data:t}=e;return(0,n.jsx)("section",{className:"px-6 py-16 text-center",style:{background:u.bg},children:(0,n.jsxs)(f,{children:[(0,n.jsxs)("span",{"aria-hidden":!0,className:"mx-auto flex items-center justify-center gap-2",children:[(0,n.jsx)(k,{size:10}),(0,n.jsx)(k,{size:14}),(0,n.jsx)(k,{size:10})]}),(0,n.jsx)("p",{className:"mx-auto mt-5 max-w-md italic leading-relaxed",style:{fontFamily:p,fontSize:"clamp(1.35rem, 5vw, 1.8rem)",color:u.ink},children:t.text}),t.attribution?(0,n.jsx)("p",{className:"mt-4 text-[11px] uppercase tracking-[0.3em]",style:{color:u.gold,fontFamily:x,fontWeight:600},children:t.attribution}):null]})})}function T(e){let{data:t}=e;return(0,n.jsx)("section",{className:"px-6 py-8",style:{background:u.bg},children:(0,n.jsx)(f,{children:(0,n.jsxs)("div",{className:"mx-auto max-w-md overflow-hidden",style:{background:u.card,borderRadius:10,border:"1px solid ".concat(u.hairline),boxShadow:"0 22px 50px -26px rgba(58,36,26,0.3)"},children:[(0,n.jsx)(v,{height:8}),(0,n.jsxs)("div",{className:"px-7 py-8",children:[(0,n.jsx)("p",{className:"italic leading-relaxed",style:{fontFamily:p,fontSize:"1.12rem",color:"#4A3A31"},children:t.text}),(0,n.jsx)("p",{className:"mt-5 text-[11px] uppercase tracking-[0.3em]",style:{color:u.gold,fontFamily:x,fontWeight:600},children:t.title||t.speaker})]})]})})})}function M(e){let{data:t}=e,a=(t.photos||[]).filter(e=>null==e?void 0:e.url);return a.length?(0,n.jsxs)("section",{className:"relative overflow-hidden py-16",style:{background:u.night}
1,children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 top-0",children:(0,n.jsx)(v,{height:10})}),(0,n.jsxs)(f,{children:[(0,n.jsx)("div",{className:"px-6 pt-3",children:(0,n.jsx)(F,{dark:!0,eyebrow:"The Royal Procession",sub:"Slide along the court wall."})}),(0,n.jsx)("div",{className:"flex items-end gap-6 overflow-x-auto px-6 pb-6",style:{scrollSnapType:"x mandatory",scrollbarWidth:"none"},children:a.slice(0,10).map((e,t)=>(0,n.jsxs)("figure",{className:"m-0 shrink-0",style:{width:"min(64vw, 250px)",scrollSnapAlign:"center"},children:[(0,n.jsx)("div",{style:{padding:7,background:"linear-gradient(135deg, #EFD9A0, ".concat(u.goldBright," 55%, #EFD9A0)"),borderRadius:6,boxShadow:"0 26px 54px -22px rgba(0,0,0,0.7)"},children:(0,n.jsx)("div",{style:{padding:3,background:u.mahogany,borderRadius:3},children:(0,n.jsx)("img",{src:e.url,alt:"",loading:"lazy",className:"block w-full object-cover",style:{...(0,d.MD)(e),aspectRatio:"3/4",borderRadius:2}})})}),(0,n.jsx)("figcaption",{className:"mx-auto mt-3 w-max px-4 py-1",style:{background:"linear-gradient(135deg, #EFD9A0, ".concat(u.goldBright,")"),borderRadius:4},children:(0,n.jsxs)("span",{className:"text-[9px] uppercase tracking-[0.3em]",style:{fontFamily:x,fontWeight:700,color:u.mahogany},children:["Plate ",String(t+1).padStart(2,"0")]})})]},t))})]}),(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-0",children:(0,n.jsx)(v,{height:10})})]}):null}function O(e){let{data:t}=e,a=[t.hashtag,...t.hashtags||[]].filter(Boolean);return a.length?(0,n.jsx)("section",{className:"px-6 py-10 text-center",style:{background:u.bg},children:(0,n.jsxs)(f,{children:[(0,n.jsx)("p",{className:"text-[11px] uppercase tracking-[0.4em]",style:{color:u.gold,fontFamily:x,fontWeight:600},children:t.intro||"Share the celebration"}),(0,n.jsx)("p",{className:"mt-3",style:{fontFamily:m,fontSize:"clamp(1.4rem, 6vw, 2rem)",color:u.coral},children:a.join("  \xb7  ")})]})}):null}function I(e){var t;let{data:a}=e;return(null==(t=a.people)?void 0:t.length)?(0,n.jsx)("section",{className:"px-6 py-12 text-center",style:{background:u.bg},children:(0,n.jsxs)(f,{children:[(0,n.jsx)(F,{eyebrow:"Questions",sub:a.intro||void 0}),(0,n.jsx)("div",{className:"space-y-4",children:a.people.map((e,t)=>(0,n.jsxs)("p",{children:[(0,n.jsx)("span",{style:{fontFamily:m,fontSize:"1.12rem",color:u.ink},children:e.name}),e.role?(0,n.jsx)("span",{className:"block text-[11px] uppercase tracking-[0.2em]",style:{color:u.gold,fontFamily:x},children:e.role}):null,(0,n.jsx)("a",{href:"tel:".concat(e.phone),className:"mt-0.5 block text-sm",style:{color:u.coral},children:e.phone})]},t))})]})}):null}function Y(e){let{invite:t,data:a,successCopy:s}=e,l=(0,o.V)(t.rsvpToken),{name:i,setName:d,email:h,setEmail:g,phone:f,setPhone:y,message:b,setMessage:j,status:F,setStatus:N,submitting:w,done:S,error:A,alreadyResponded:C,submit:E}=l,B={background:u.bg,color:u.ink,WebkitTextFillColor:u.ink,border:"1px solid ".concat(u.hairline),borderRadius:8,fontFamily:x,fontSize:"1rem"};return(0,n.jsx)("section",{className:"px-6 py-20",id:"rsvp",style:{background:u.night},children:(0,n.jsx)("div",{className:"mx-auto max-w-md",children:(0,n.jsxs)("div",{className:"overflow-hidden",style:{background:u.card,borderRadius:12,boxShadow:"0 34px 80px -34px rgba(0,0,0,0.7)"},children:[(0,n.jsx)(v,{height:12}),(0,n.jsxs)("div",{className:"px-7 py-10 sm:px-9",children:[(0,n.jsxs)("div",{className:"mb-7 text-center",children:[(0,n.jsxs)("span",{"aria-hidden":!0,className:"mx-auto flex items-center justify-center gap-2",children:[(0,n.jsx)(k,{size:10}),(0,n.jsx)(k,{size:14}),(0,n.jsx)(k,{size:10})]}),(0,n.jsx)("p",{className:"mt-3 text-[11px] uppercase tracking-[0.4em]",style:{color:u.gold,fontFamily:x,fontWeight:600},children:"RSVP"}),(0,n.jsx)("p",{className:"mt-3 italic",style:{fontFamily:p,color:u.ink,fontSize:"clamp(1.35rem, 4.6vw, 1.7rem)"},children:a.ctaText||"Will you take your seat at the court?"})]}),S?(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("p",{style:{fontFamily:m,fontSize:"1.35rem",color:u.ink},children:i}),(0,n.jsx)("p",{className:"mt-3 inline-block rounded-full px-5 py-2 text-[11px] uppercase tracking-[0.24em]",style:{fontFamily:x,fontWeight:600,color:"attending"===F?"#FFFFFF":u.inkSoft,background:"attending"===F?u.coral:"transparent",border:"1px solid ".concat("attending"===F?u.coral:u.hairline)},children:"attending"===F?"Joyfully Accepts":"Regretfully Declines"}),(0,n.jsx)("p",{className:"mx-auto mt-5 max-w-xs text-[13px] italic leading-relaxed",style:{color:u.inkSoft,fontFamily:p}
1,children:"attending"===F?l.confirmationCopy(s):"Thank you for letting us know. You will be missed at the court."}),h.trim()?(0,n.jsxs)("p",{className:"mx-auto mt-2 max-w-xs text-[12px] italic leading-relaxed",style:{color:u.inkSoft,fontFamily:p},children:["We will send updates to ",h.trim(),"."]}):null]}):(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),E()},className:"space-y-5",noValidate:!0,children:[C?(0,n.jsx)("p",{className:"text-center text-[12px] italic",style:{color:u.inkSoft,fontFamily:p},children:"You have responded before. Sending again simply updates your answer."}):null,(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"ch-name",className:"mb-2 block text-[11px] uppercase tracking-[0.2em]",style:{color:u.inkSoft,fontFamily:x,fontWeight:600},children:"Full Name"}),(0,n.jsx)("input",{id:"ch-name",type:"text",value:i,maxLength:200,autoComplete:"name",onChange:e=>d(e.target.value),placeholder:"Your full name",className:"w-full px-3.5 py-3 outline-none",style:B})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"mb-2 text-[11px] uppercase tracking-[0.2em]",style:{color:u.inkSoft,fontFamily:x,fontWeight:600},children:"Will you attend?"}),(0,n.jsx)("div",{className:"grid grid-cols-2 gap-2",children:[["attending","Joyfully Accepts"],["declined","Regretfully Declines"]].map(e=>{let[t,a]=e,s=F===t;return(0,n.jsx)("button",{type:"button",onClick:()=>N(t),className:"px-2 py-3 text-[10px] uppercase tracking-[0.14em]",style:{fontFamily:x,fontWeight:600,background:s?u.coral:"#FFFFFF",color:s?"#FFFFFF":u.inkSoft,border:"1px solid ".concat(s?u.coral:u.hairline),borderRadius:8},children:a},t)})})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"ch-email",className:"mb-2 block text-[11px] uppercase tracking-[0.2em]",style:{color:u.inkSoft,fontFamily:x,fontWeight:600},children:"Email"}),(0,n.jsx)("input",{id:"ch-email",type:"email",inputMode:"email",autoCapitalize:"none",spellCheck:!1,value:h,maxLength:200,autoComplete:"email",onChange:e=>g(e.target.value),placeholder:"[email protected]",className:"w-full px-3.5 py-3 outline-none",style:B}),(0,n.jsx)("input",{id:"ch-phone",type:"tel","aria-label":"Phone number",inputMode:"tel",value:f,maxLength:20,autoComplete:"tel",onChange:e=>y(e.target.value),placeholder:"Phone number (optional)",className:"mt-3 w-full px-3.5 py-3 outline-none",style:B}),(0,n.jsx)(r.A,{value:h,onApply:e=>g(e),accentColor:u.coral})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{htmlFor:"ch-msg",className:"mb-2 block text-[11px] uppercase tracking-[0.2em]",style:{color:u.inkSoft,fontFamily:x,fontWeight:600},children:["Your goodwill message ",(0,n.jsx)("span",{style:{fontWeight:400},children:"(optional)"})]}),(0,n.jsx)(c.q,{rsvp:l,inputStyle:B}),(0,n.jsx)("textarea",{id:"ch-msg",value:b,maxLength:500,rows:3,onChange:e=>j(e.target.value),placeholder:"Your wishes for the celebrant",className:"w-full resize-none px-3.5 py-3 outline-none",style:B})]}),A?(0,n.jsx)("p",{className:"text-sm",role:"alert",style:{color:"#A33A2E",fontFamily:x,fontWeight:500},children:A}):null,(0,n.jsx)("button",{type:"submit",disabled:w,className:"w-full py-4 text-[11px] uppercase tracking-[0.3em]",style:{fontFamily:x,fontWeight:600,color:"#FFFFFF",background:w?"#B4552D":u.coral,border:"none",borderRadius:8},children:w?"Sending…":"Send RSVP"})]})]}),(0,n.jsx)(v,{height:12})]})})})}function _(e){let{invite:t}=e,a=(t.hosts||[]).map(e=>e.name).filter(Boolean);return(0,n.jsxs)("footer",{className:"px-6 py-16 text-center",style:{background:u.bg},children:[(0,n.jsxs)("span",{"aria-hidden":!0,className:"mx-auto flex items-center justify-center gap-2",children:[(0,n.jsx)(k,{size:10}),(0,n.jsx)(k,{size:15}),(0,n.jsx)(k,{size:10})]}),(0,n.jsx)("p",{className:"mt-4",style:{fontFamily:m,fontSize:"1.4rem",letterSpacing:"0.06em",color:u.coral},children:a.join(" & ")}),(0,n.jsx)("span",{"aria-hidden":!0,className:"mx-auto my-6 block",style:{height:1,width:80,background:g}}),(0,n.jsx)(i.UV,{accent:u.gold,ink:u.ink,inkSoft:u.inkSoft,card:u.card,hairline:u.hairline,sans:x,logo:"light"})]})}function P(e){var t,a;let{invite:s}=e,[r,o]=(0,l.useState)(!1),c=(s.hosts||[]).map(e=>
1e.name).filter(Boolean).join(" & "),d=b(s.eventType),m=j(s.date),p=function(e){let t=e.filter(e=>!e.hidden);return[...t.filter(e=>"faq"!==e.type),...t.filter(e=>"faq"===e.type)]}(s.sections),g=p.findIndex(e=>"hero"===e.type);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w,{names:c,lead:d.lead,onOpen:()=>o(!0)}),(0,n.jsxs)("main",{className:"min-h-screen",style:{background:u.bg,color:u.ink,fontFamily:x},children:[(0,n.jsx)("style",{children:"\n          @import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');\n          @keyframes chGlow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }\n          @keyframes chSonar { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }\n          @keyframes chSway { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }\n          @keyframes chBeat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.05) rotate(-1.5deg); } 60% { transform: scale(0.98); } }\n          @keyframes chBeater { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-24deg); } 60% { transform: rotate(4deg); } }\n          @media (prefers-reduced-motion: reduce) {\n            .ch-string { animation: none !important; }\n          }\n        "}),p.map((e,t)=>{switch(e.type){case"hero":return(0,n.jsxs)("div",{children:[(0,n.jsx)(S,{invite:s,data:e.data,begin:r}),t===g&&s.dateDisplay?(0,n.jsx)(A,{dateDisplay:s.dateDisplay}):null]},e.id);case"countdown":return(0,n.jsx)(C,{eventDate:m,label:d.countdown},e.id);case"event_detail":return(0,n.jsx)(E,{data:e.data,invite:s},e.id);case"schedule":return(0,n.jsx)(B,{data:e.data},e.id);case"dress_code":return(0,n.jsx)(W,{data:e.data},e.id);case"color_palette":return(0,n.jsx)(D,{data:e.data},e.id);case"gallery":return(0,n.jsx)(M,{data:e.data},e.id);case"hashtag":return(0,n.jsx)(O,{data:e.data},e.id);case"contact":return(0,n.jsx)(I,{data:e.data},e.id);case"rsvp":return(0,n.jsx)(Y,{invite:s,data:e.data,successCopy:d.success},e.id);case"quote":return(0,n.jsx)(z,{data:e.data},e.id);case"speech":return(0,n.jsx)(T,{data:e.data},e.id);case"hotels":return(0,n.jsx)(i.qn,{data:e.data,palette:h},e.id);case"faq":return(0,n.jsx)(i.l5,{data:e.data,palette:h},e.id);case"gift_registry":return(0,n.jsx)(i.W0,{data:e.data,palette:h},e.id);case"wedding_party":return(0,n.jsx)(i.Lr,{data:e.data,palette:h},e.id);case"story":return(0,n.jsx)(i.gG,{data:e.data,palette:h},e.id);case"thank_you":return(0,n.jsx)(i.MW,{data:e.data,palette:h,eventDate:m},e.id);case"live_stream":return(0,n.jsx)(i.Bl,{data:e.data,palette:h,eventDate:m},e.id);case"family_intro":return(0,n.jsx)(i.Gz,{data:e.data,palette:h},e.id);case"rich_text":return(0,n.jsx)(i.rZ,{data:e.data,palette:h},e.id);case"media":return(0,n.jsx)(i.A$,{data:e.data,palette:h},e.id);case"policies":return(0,n.jsx)(i.gJ,{data:e.data,palette:h},e.id);case"gift_items":return(0,n.jsx)(i.Kf,{data:e.data,palette:h},e.id);default:return null}}),s.hasFooter&&(0,n.jsx)(_,{invite:s}),(0,n.jsx)(i.kx,{url:(null==(t=s.backgroundSong)?void 0:t.url)||("wedding"===s.eventType?"/audio/Christina_Perri_-_A_Thousand_Years_CeeNaija.com_.mp3":"/audio/celevend-invite-default.mp3"),title:(null==(a=s.backgroundSong)?void 0:a.title)||("wedding"===s.eventType?"A Thousand Years":"Celevend")})]})]})}},85604:(e,t,a)=>{a.d(t,{E9:()=>i,ID:()=>o,qF:()=>l});var n=a(51385),s=a(48269);let r=(0,s.createContext)({token:null});function l(e){let{value:t,children:a}=e;return(0,n.jsx)(r.Provider,{value:t,children:a})}function i(){return(0,s.useContext)(r)}function o(e){return"https://celevend.com/album/".concat(e)}},90306:(e,t,a)=>{a.d(t,{KT:()=>p,TO:()=>d,fu:()=>m});let n=/^#[0-9a-f]{6}$/i,s={default:{primary:"#0F1210",accent:"#B8975A",background:"#F2E8D5"},champagne:{primary:"#0F1210",accent:"#B8975A",background:"#F2E8D5"},emerald:{primary:"#0B1F1A",accent:"#D4AF37",background:"#F2EBD8"},navy:{primary:"#0C1426",accent:"#C8A04B",background:"#F0EAD6"},rose:{primary:"#1A0E10",accent:"#C28E73",background:"#F5E6E0"},noir:{primary:"#0A0A0A",accent:"#C0C0C0",background:"#EFEFEF"},botanical:{primary:"#0F1A12",accent:"#A8B870",background:"#EAE3CC"},sunset:{primary:"#1F1410",accent:"#E89B66",background:"#FBE6CE"},forest:{primary:"#091912",accent:"#BFA15B",background:"#E5DDC1"},black_tie:{primary:"#0A0A0A",accent:"#D4AF37",background:"#F6E9C4"}};function r(e,t){return"string"==typeof e&&n.test(e)?e:t}function l(e){return[1,3,5].map(t=>parseInt(e.slice(t,t+2),16))}function i(e){let[t,a,n]=l(e).map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*a+.0722*n}function o(e,t,a){var n;let s=l(e),r=l(t);return n=[0,1,2].map(e=>s[e]*a+r[e]*(1-a)),"#".concat(n.map(e=>Math.round(Math.min(255,Math.max(0,e))).toString(16).padStart(2,"0")).join(""))}function c(e,t,a,n){for(let s=1;s>=0;s-=.05){let r=o(e,a,s);if(function(e,t){let a=i(e),n=i(t);return(Math.max(a,n)+.05)/(Math.min(a,n)+.05)}(r,t)>
1=n)return r}return a}function d(e,t){let a=i(t)>.4?"#000000":"#FFFFFF";return c(e,t,a,4.5)}let u={altitude:{orange:"#AC4A1A"},arbor:{blush:"#96566B",silver:"#666C78"},ascent:{terra:"#A84A24",gold:"#8A6410"},basilica:{gold:"#7E651E"},bloom:{butter:"#8A6E0B"},blush:{tangerine:"#B54E17"},carousel:{coral:"#B85C48",butter:"#8A6E2B"},coverstar:{violet:"#8A4FB0",chrome:"#66707E"},dreamhouse:{gold:"#8A6E2B"},filigree:{coral:"#C24E38",marigold:"#A96F1C",sage:"#5C7052"},halo:{peach:"#A96543",sage:"#5B6A4B"},hatchling:{teal:"#33756B",sun:"#8A6716",terra:"#A85430"},homecoming:{sky:"#33667E",gold:"#8A6512",earth:"#99462B"},iroko:{terra:"#9C4522",ochre:"#7E5E14"},jubilee:{marigold:"#9A6A0F"},kapow:{sky:"#235E9E",sunshine:"#8A6E0B"},palazzo:{gold:"#8A6C2E"},palmwine:{marigold:"#8F6712"},pearl:{blue:"#33678A",coral:"#B05A3F",sand:"#8A6E35"},porcelain:{gold:"#7D6520"},riviera:{lemon:"#A8871B"},saidyes:{blush:"#9E5844"},striker:{red:"#B03A30",gold:"#8A6E2B"},supperclub:{brass:"#7A5E20"},tiara:{lilac:"#7D5E96",gold:"#8A6E2B"},valse:{gold:"#8E6428"},veil:{powder:"#4E6C8C",butter:"#93753A"}};function m(e,t){let a=/^[0-9a-f]{2}$/i.test(t)?t:"FF";if(n.test(e))return"".concat(e).concat(a);let s=Math.round(parseInt(a,16)/255*1e4)/100;return"color-mix(in srgb, ".concat(e," ").concat(s,"%, transparent)")}function p(e){let t=e.themeOverrides||{},a=Object.values(t).some(e=>"string"==typeof e&&n.test(e)),l=e.palette||"default";if(!a&&("default"===l||"champagne"===l))return;let d=s[l]||s.default,m=r(t.primary,d.primary),p=r(t.accent,d.accent),x=r(t.cream,d.background),h=i(x)>.4?"#000000":"#FFFFFF",g=c(m,x,h,4.5),f=c(o(g,x,.68),x,g,4.5),y={};for(let[t,a]of Object.entries(u[e.templateId||""]||{}))y["--invite-ink-".concat(t)]=c(a,x,h,4.5);return{...y,"--invite-primary":g,"--invite-accent":p,"--invite-background":x,"--invite-surface":"color-mix(in srgb, ".concat(x," 94%, ").concat(g,")"),"--invite-ink-soft":f,"--invite-primary-soft":"color-mix(in srgb, ".concat(g," 88%, ").concat(x,")"),"--invite-background-soft":"color-mix(in srgb, ".concat(x," 88%, ").concat(g,")")}}}}]);

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.