PageSourceSearch

https://celevend.com/_next/static/chunks/4338.cf6fbbad6da90c58.js

js celevend.com collected 2026-10-02 00:30:31 UTC 35,749 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4338],{84338:(e,t,a)=>{a.r(t),a.d(t,{default:()=>v});var n=a(51385),s=a(90306),i=a(47752),r=a(48269),l=a(95838),o=a(2545),c=a(20190),d=a(53699),m=a(46603);let p={bg:"var(--invite-background, #FBFBF9)",card:"#FFFFFF",ink:"var(--invite-primary, #26222A)",inkSoft:"var(--invite-ink-soft, #5D5762)",crimson:"var(--invite-accent, #A6273A)",rose:"#D96C80",teal:"#1E6E66",tealSoft:"#3FA396",gold:"#B08A2E",hairline:"#E8E4E0"},h="'Fraunces', Georgia, serif",x="'IBM Plex Mono', monospace",u="'Jost', system-ui, -apple-system, sans-serif",f={bg:p.bg,card:p.card,text:p.ink,muted:p.inkSoft,headline:p.ink,accent:p.crimson,borderSubtle:p.hairline,fontDisplay:h,fontBody:u},g="M 0 40 ".concat(Array.from({length:8},()=>"l 10 0 l 3 -6 l 3 6 l 5 0 l 3 -24 l 5 38 l 4 -14 l 6 0 l 11 0").join(" ")),y="M50 82 C 22 62, 6 42, 14 24 C 20 11, 38 9, 47 22 L 50 27 L 53 22 C 62 9, 80 11, 86 24 C 94 42, 78 62, 50 82 Z";function b(e){let{children:t,delay:a=0,y:s=18}=e,{ref:i,vis:l}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.15,t=(0,r.useRef)(null),[a,n]=(0,r.useState)(!1);return(0,r.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:i,style:{opacity:+!!l,transform:l?"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 j(e){switch(e){case"wedding":return{kicker:"Two hearts, one rhythm",invite:"request your presence at the joining of two hearts",countdown:"Until the vows",past:"Two hearts, one rhythm, always",success:"Your appointment is confirmed. See you there."};case"birthday":return{kicker:"A heart full of years",invite:"invites you to celebrate a heart full of years",countdown:"Until the celebration",past:"What a celebration it was",success:"Your appointment is confirmed. See you there."};case"naming":return{kicker:"A brand new heartbeat",invite:"invite you to meet the newest heartbeat in the family",countdown:"Until we meet them",past:"Welcomed with love",success:"Your appointment is confirmed. We will be honoured to have you."};case"graduation":return{kicker:"The residency is over",invite:"invites you to celebrate a hard-earned milestone",countdown:"Until the caps fly",past:"Onward, doctor",success:"Your appointment is confirmed. See you there."};default:return{kicker:"Still in rhythm",invite:"invite you to celebrate hearts still in perfect rhythm",countdown:"Until the celebration",past:"Still in rhythm, always",success:"Your appointment is confirmed. See you there."}}}function v(e){var t,a;let{invite:s}=e,i=(0,r.useMemo)(()=>B(s.date),[s.date]),o=s.hosts.map(e=>e.name).filter(Boolean),[c,d]=(0,r.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S,{names:2===o.length?"".concat(o[0]," & ").concat(o[1]):o.join(" & "),onOpen:()=>d(!0)}),(0,n.jsxs)("main",{className:"min-h-screen",style:{background:p.bg,color:p.ink,fontFamily:u},children:[(0,n.jsx)("style",{children:"\n          @import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=IBM+Plex+Mono:wght@400;500;600&family=Jost:wght@300;400;500;600&display=swap');\n          @keyframes hbRise {\n            from { opacity: 0; transform: translateY(0.5em); }\n            to   { opacity: 1; transform: translateY(0); }\n          }\n          @keyframes hbScrollHint {\n            0%       { transform: translateY(-100%); }\n            65%,100% { transform: translateY(220%); }\n          }\n          @keyframes hbSweep { to { stroke-dashoffset: -1; } }\n          @keyframes hbPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }\n          @keyframes hbBeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }\n          @media (prefers-reduced-motion: reduce) {\n            .hb-scrollhint { display: none !important; }\n            .hb-sweep { animation: none !important; stroke-dasharray: none !important; }\n            .hb-pulse, .hb-beat { animation: none !important; }\n            .hb-kinetic span { opacity: 1 !important; animation: none !important; }\n          }\n        "}),s.sections.map(e=>{if(e.hidden)return null;switch(e.type){case"hero":return(0,n.jsx)(W,{invite:s,data:e.data,begin:c},e.id);case"countdown":return(0,n.jsx)(T,{eventDate:i,copy:j(s.eventType)},e.id);case"event_detail":return(0,n.jsx)(D,{data:e.data,invite:s},e.id);case"schedule":return(0,n.jsx)(z,{data:e.data},e.id);case"dress_code":return(0,n.jsx)(C,{data:e.data},e.id);case"gallery":return(0,n.jsx)(L,{data:e.data},e.id);case"hashtag":return(0,n.jsx)(R,{data:e.data},e.id);case"contact":return(0,n.jsx)(A,{data:e.data},e.id);case"rsvp":return(0,n.jsx)(_,{invite:s,data:e.data},e.id);case"quote":return(0,n.jsx)(l.Pk,{data:e.data,palette:f},e.id);case"speech":return(0,n.jsx)(E,{data:e.data},e.id);case"hotels":return(0,n.jsx)(l.qn,{data:e.data,palette:f},e.id);case"faq":return(0,n.jsx)(l.l5,{data:e.data,palette:f},e.id);case"gift_registry":return(0,n.jsx)(l.W0,{data:e.data,palette:f},e.id);case"wedding_party":return(0,n.jsx)(l.Lr,{data:e.data,palette:f},e.id);case"story":return(0,n.jsx)(M,{data:e.data},e.id);case"thank_you":return(0,n.jsx)(l.MW,{data:e.data,palette:f,eventDate:i},e.id);case"live_stream":return(0,n.jsx)(l.Bl,{data:e.data,palette:f,eventDate:i},e.id);case"family_intro":return(0,n.jsx)(l.Gz,{data:e.data,palette:f},e.id);case"color_palette":return(0,n.jsx)(l.S6,{data:e.data,palette:f},e.id);case"rich_text":return(0,n.jsx)(l.rZ,{data:e.data,palette:f},e.id);case"media":return(0,n.jsx)(l.A$,{data:e.data,palette:f},e.id);case"policies":return(0,n.jsx)(l.gJ,{data:e.data,palette:f},e.id);case"gift_items":return(0,n.jsx)(l.Kf,{data:e.data,palette:f},e.id);default:return null}}),s.hasFooter&&(0,n.jsx)(Y,{invite:s}),(0,n.jsx)(l.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")})]})]})}function k(e){let{className:t="",animate:a=!0}=e;
1return(0,n.jsxs)("svg",{viewBox:"0 0 400 80","aria-hidden":!0,className:t,style:{pointerEvents:"none"},preserveAspectRatio:"none",children:[(0,n.jsx)("path",{d:g,stroke:"".concat(p.gold,"59"),strokeWidth:"1.5",fill:"none"}),a&&(0,n.jsx)("path",{className:"hb-sweep",d:g,stroke:p.gold,strokeWidth:"1.5",fill:"none",pathLength:1,strokeDasharray:"0.22 0.78",style:{animation:"hbSweep 3.2s linear infinite"}})]})}function w(e){let{children:t}=e;return(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"flex items-center justify-center mb-2","aria-hidden":!0,children:(0,n.jsx)(k,{className:"w-40 h-8",animate:!1})}),(0,n.jsx)("p",{className:"text-[11px] tracking-[0.45em] uppercase",style:{color:p.crimson,fontWeight:600,fontFamily:x},children:t})]})}function N(e){let{color:t,size:a=14}=e,s=a/3;return(0,n.jsxs)("span",{"aria-hidden":!0,className:"relative block pointer-events-none",style:{width:a,height:a},children:[(0,n.jsx)("span",{className:"absolute",style:{left:s,top:0,width:s,height:a,background:t,borderRadius:1.5}}),(0,n.jsx)("span",{className:"absolute",style:{left:0,top:s,width:a,height:s,background:t,borderRadius:1.5}})]})}function S(e){let{names:t,onOpen:a}=e,s=function(){let[e,t]=(0,r.useState)(!1);return(0,r.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}(),[i,l]=(0,r.useState)("closed"),o=()=>
1{if("closed"===i){if(s){l("opening"),window.setTimeout(()=>null==a?void 0:a(),250),window.setTimeout(()=>l("gone"),700);return}l("opening"),window.setTimeout(()=>null==a?void 0:a(),1200),window.setTimeout(()=>l("gone"),2100)}};if("gone"===i)return null;let c="opening"===i;return(0,n.jsxs)("div",{onClick:o,role:"button",tabIndex:0,"aria-label":"Tap to take our pulse and open your invitation",onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),o())},style:{position:"fixed",inset:0,zIndex:200,background:p.bg,overflow:"hidden",cursor:"closed"===i?"pointer":"default",pointerEvents:"closed"===i?"auto":"none",opacity:+!c,transition:s?"opacity 400ms ease":"opacity 800ms ease 1100ms",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:26,padding:24,textAlign:"center"},children:[(0,n.jsx)("p",{className:"relative text-[10px] tracking-[0.45em] uppercase",style:{fontFamily:x,color:p.teal,fontWeight:600,margin:0},children:"BPM 72 \xb7 In love"}),(0,n.jsxs)("div",{className:"relative w-full",style:{maxWidth:420,height:130},children:[(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",style:{opacity:c&&!s?0:1,transition:"opacity 500ms ease"},children:(0,n.jsx)(k,{className:"w-full h-20"})}),(0,n.jsx)("svg",{viewBox:"0 0 100 90","aria-hidden":!0,className:"absolute left-1/2 top-1/2 pointer-events-none",style:{width:96,height:86,transform:c&&!s?"translate(-50%, -50%) scale(1.15)":"translate(-50%, -50%) scale(0.6)",opacity:c&&!s?1:0,transition:"opacity 700ms ease 200ms, transform 700ms cubic-bezier(.16,1,.3,1) 200ms"},children:(0,n.jsx)("path",{d:y,fill:"".concat(p.rose,"26"),stroke:p.crimson,strokeWidth:"2.5",strokeLinejoin:"round"})})]}),t&&(0,n.jsx)("p",{className:"relative",style:{fontFamily:h,fontWeight:500,color:p.ink,fontSize:"clamp(1.5rem, 5.5vw, 2.2rem)",fontStyle:"italic",margin:0},children:t}),(0,n.jsx)("p",{className:"hb-pulse relative text-[11px] tracking-[0.4em] uppercase",style:{fontFamily:x,color:p.inkSoft,fontWeight:600,animation:"hbPulse 2.2s ease-in-out infinite",opacity:c?0:void 0,transition:"opacity 300ms"},children:"Tap to take our pulse"}),(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to top, ".concat(p.card," 55%, ").concat(p.card,"00)"),transform:c&&!s?"translateY(0)":"translateY(101%)",transition:"transform 900ms cubic-bezier(.3,.6,.3,1) 300ms"}})]})}function F(e){let{text:t,size:a,begin:s,delay:i=0}=e,r=t.split(" ").filter(Boolean),l=0;return(0,n.jsxs)("span",{className:"relative block",style:{fontSize:a,lineHeight:1.12},children:[(0,n.jsx)("span",{className:"sr-only",children:t}),(0,n.jsx)("span",{className:"hb-kinetic block","aria-hidden":!0,style:{color:p.ink},children:r.map((e,t)=>(0,n.jsxs)("span",{children:[t>0&&" ",(0,n.jsx)("span",{style:{display:"inline-block",whiteSpace:"pre"},children:Array.from(e).map((e,t)=>{let a=l++;return(0,n.jsx)("span",{style:{display:"inline-block",opacity:s?void 0:0,animation:s?"hbRise 900ms cubic-bezier(.16,1,.3,1) ".concat(i+50*a,"ms both"):"none"},children:e},t)})})]},t))})]})}function W(e){var t,a;let{invite:s,data:i,begin:r}=e,l=j(s.eventType),o=350+(null!=(a=null==(t=s.hosts[0])?void 0:t.name.length)?a:6)*50+350,c=2===s.hosts.length;return(0,n.jsxs)("section",{className:"relative flex flex-col items-center justify-center text-center px-6 overflow-hidden",style:{minHeight:"100svh",background:p.card},children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute left-0 right-0 pointer-events-none",style:{top:"50%",transform:"translateY(-50%)"},children:(0,n.jsx)(k,{className:"w-full h-24"})}),(0,n.jsxs)("div",{className:"relative max-w-2xl mx-auto py-[10svh] w-full",children:[(0,n.jsx)(b,{delay:100,children:(0,n.jsx)("p",{className:"text-[11px] tracking-[0.5em] uppercase",style:{fontFamily:x,color:p.crimson,fontWeight:600},children:i.subtitle||l.kicker})}),(0,n.jsx)("div",{className:"mt-6",children:(0,n.jsx)("h1",{style:{fontFamily:h,fontWeight:500,margin:0},children:(0,n.jsx)(F,{text:c?s.hosts[0].name:s.hosts.map(e=>e.name).join(" & ")||"Celebration",size:c?"clamp(2.4rem, 9.5vw, 4.4rem)":"clamp(2.3rem, 9vw, 4.2rem)",begin:r})})}),(0,n.jsx)("div",{className:"relative mx-auto mt-2 mb-2",style:{maxWidth:"min(74vw, 380px)"},children:(0,n.jsx)("img",{src:"/images/invite-art/heartbeat-heart-v2.webp",alt:"","aria-hidden":!0,
1className:"hb-beat w-full h-auto",style:{animation:"hbBeat 4.5s ease-in-out infinite"}})}),c&&(0,n.jsxs)("h1",{style:{fontFamily:h,fontWeight:500,margin:0},children:[(0,n.jsx)("span",{className:"block italic","aria-hidden":!0,style:{fontFamily:h,color:p.crimson,fontSize:"clamp(1.4rem, 5vw, 2.1rem)",margin:"0 0 0.1em",opacity:+!!r,transition:"opacity 700ms ease 800ms"},children:"&"}),(0,n.jsx)(F,{text:s.hosts[1].name,size:"clamp(2.4rem, 9.5vw, 4.4rem)",begin:r,delay:o})]}),(0,n.jsxs)(b,{delay:450,children:[(0,n.jsx)("p",{className:"italic mt-6",style:{fontFamily:h,color:p.inkSoft,fontSize:"clamp(1.05rem, 3.6vw, 1.3rem)"},children:l.invite}),(0,n.jsx)("p",{className:"mt-7 inline-block px-5 py-2.5 text-[11px] tracking-[0.28em] uppercase",style:{fontFamily:x,color:p.teal,fontWeight:600,background:p.bg,border:"1px solid ".concat(p.teal,"55"),borderRadius:999},children:s.dateDisplay}),s.hashtag&&(0,n.jsx)("p",{className:"mt-4 italic",style:{fontFamily:h,color:p.crimson,fontSize:"1.1rem"},children:s.hashtag})]})]}),(0,n.jsxs)("div",{"aria-hidden":!0,className:"absolute bottom-6 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 pointer-events-none",children:[(0,n.jsx)("span",{className:"text-[9px] tracking-[0.4em] uppercase",style:{color:p.inkSoft},children:"Scroll"}),(0,n.jsx)("span",{className:"relative block overflow-hidden",style:{width:1,height:36,background:p.hairline},children:(0,n.jsx)("span",{className:"hb-scrollhint absolute left-0 top-0 block",style:{width:1,height:15,background:p.crimson,animation:"hbScrollHint 2.4s ease-in-out infinite"}})})]})]})}function T(e){let{eventDate:t,copy:a}=e,s=(0,r.useMemo)(()=>null!=t?t:new Date,[t]).getTime(),[i,l]=(0,r.useState)({d:0,h:0,m:0,s:0,isPast:!1});(0,r.useEffect)(()=>{let e=()=>{let e=s-Date.now(),t=Math.abs(e);l({d:Math.floor(t/864e5),h:Math.floor(t/36e5%24),m:Math.floor(t/6e4%60),s:Math.floor(t/1e3%60),isPast:e<0})};e();let t=setInterval(e,1e3);return()=>clearInterval(t)},[s]);let o=[{v:i.d,l:"Days"},{v:i.h,l:"Hours"},{v:i.m,l:"Minutes"},{v:i.s,l:"Seconds"}];return(0,n.jsx)("section",{className:"px-6 py-20 text-center",style:{background:p.bg},children:(0,n.jsxs)(b,{children:[(0,n.jsx)(w,{children:i.isPast?a.past:a.countdown}),(0,n.jsx)("div",{className:"mt-10 mx-auto grid grid-cols-4 gap-1.5 sm:gap-4",style:{maxWidth:560},children:o.map(e=>{let{v:t,l:a}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"px-1 py-4 sm:px-5 sm:py-6",style:{background:p.card,border:"1px solid ".concat(p.hairline),borderTop:"2px solid ".concat(p.crimson),borderRadius:8,boxShadow:"0 16px 34px -20px rgba(38, 34, 42, 0.3)"},children:(0,n.jsx)("p",{className:"tabular-nums",style:{fontFamily:h,fontWeight:500,color:p.ink,fontSize:"clamp(1.5rem, 7.5vw, 3rem)",lineHeight:1,fontVariantNumeric:"tabular-nums"},children:String(t).padStart(2,"0")})}),(0,n.jsx)("p",{className:"mt-2.5 text-[10px] tracking-[0.22em] sm:tracking-[0.32em] uppercase",style:{fontFamily:x,color:p.inkSoft,fontWeight:600},children:a})]},a)})})]})})}function D(e){let{data:t,invite:a}=e,s=function(e,t,a,n,s){let i;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())),o=null==a?void 0:a.match(/(\d{1,2})(?::(\d{2}))?\s*(a\.?m\.?|p\.?m\.?)/i);if(o){let e=parseInt(o[1],10)%12;/^p/i.test(o[3])&&(e+=12);let a=o[2]?parseInt(o[2],10):0,n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,a),s=new Date(n.getTime()+144e5),c=e=>"".concat(l(e),"T").concat(r(e.getHours())).concat(r(e.getMinutes()),"00");i="".concat(c(n),"/").concat(c(s))}else{let e=new Date(t.getFullYear(),t.getMonth(),t.getDate()+1);i="".concat(l(t),"/").concat(l(e))}let c=new URLSearchParams({action:"TEMPLATE",text:e,dates:i});return n&&c.set("location",n),s&&c.set("details",s),"https://calendar.google.com/calendar/render?".concat(c.toString())}("".concat(a.hosts.map(e=>e.name).join(" & "),": ").concat(t.label),B(a.date),t.time,"".concat(t.venueName,", ").concat(t.location),t.note||void 0);return(0,n.jsx)("section",{className:"px-6 py-12",style:{background:p.card},children:(0,n.jsx)(b,{children:(0,n.jsxs)("div",{className:"relative max-w-md mx-auto text-center px-7 py-12 overflow-hidden",style:{background:p.card,border:"1px solid ".concat(p.hairline),borderRadius:10,boxShadow:"0 26px 60px -28px rgba(38, 34, 42, 0.25)"}
1,children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute left-0 right-0 top-0 pointer-events-none",style:{height:3,background:"linear-gradient(to right, ".concat(p.teal,", ").concat(p.gold,", ").concat(p.crimson,")")}}),(0,n.jsx)("p",{className:"text-[10px] tracking-[0.45em] uppercase",style:{fontFamily:x,color:p.crimson,fontWeight:600},children:t.label}),(0,n.jsx)("h2",{className:"mt-5",style:{fontFamily:h,fontWeight:500,color:p.ink,fontSize:"clamp(1.6rem, 5.2vw, 2.2rem)",lineHeight:1.16},children:t.venueName}),(0,n.jsx)("div",{className:"flex items-center justify-center my-3","aria-hidden":!0,children:(0,n.jsx)(k,{className:"w-32 h-7",animate:!1})}),(0,n.jsx)("p",{className:"text-sm",style:{color:p.inkSoft},children:t.location}),(0,n.jsx)("p",{className:"mt-2 text-xs tracking-[0.28em] uppercase",style:{fontFamily:x,color:p.teal,fontWeight:600},children:t.time}),t.note&&(0,n.jsx)("p",{className:"mt-4 text-sm italic",style:{fontFamily:h,color:p.inkSoft,fontSize:"1.02rem"},children:t.note}),t.image&&(0,n.jsx)("img",{src:t.image,alt:t.venueName,loading:"lazy",className:"mt-7 w-full object-cover",style:{aspectRatio:"4/3",border:"1px solid ".concat(p.hairline),borderRadius:8}}),(0,n.jsxs)("div",{className:"mt-7 flex flex-wrap justify-center gap-3",children:[t.mapUrl&&(0,n.jsx)("a",{href:t.mapUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-block text-[10px] tracking-[0.3em] uppercase px-7 py-3 cursor-pointer transition-colors duration-300",style:{color:"#FDF9F9",background:p.crimson,fontWeight:600,borderRadius:999,fontFamily:x},onMouseEnter:e=>{e.currentTarget.style.background="#8C1F30"},onMouseLeave:e=>{e.currentTarget.style.background=p.crimson},children:"Open Maps"}),s&&(0,n.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"inline-block text-[10px] tracking-[0.3em] uppercase px-7 py-3 cursor-pointer transition-colors duration-300",style:{color:p.teal,background:"transparent",border:"1px solid ".concat(p.teal,"88"),fontWeight:600,borderRadius:999,fontFamily:x},onMouseEnter:e=>{e.currentTarget.style.background="".concat(p.teal,"10")},onMouseLeave:e=>{e.currentTarget.style.background="transparent"},children:"Add to Calendar"})]})]})})})}function z(e){var t;let{data:a}=e;return(null==(t=a.items)?void 0:t.length)?(0,n.jsx)("section",{className:"px-6 py-20",style:{background:p.bg},children:(0,n.jsxs)("div",{className:"max-w-lg mx-auto",children:[(0,n.jsx)(b,{children:(0,n.jsx)("div",{className:"mb-12",children:(0,n.jsx)(w,{children:"Ward rounds"})})}),(0,n.jsx)("div",{style:{background:p.card,border:"1px solid ".concat(p.hairline),borderRadius:10,boxShadow:"0 24px 50px -28px rgba(38, 34, 42, 0.25)"},children:a.items.map((e,t)=>(0,n.jsx)(b,{delay:120*t,children:(0,n.jsxs)("div",{className:"grid items-start gap-4 px-5 py-5 sm:px-7",style:{gridTemplateColumns:"auto minmax(64px, auto) 1fr",borderBottom:t<a.items.length-1?"1px solid ".concat(p.hairline):void 0},children:[(0,n.jsx)("div",{className:"pt-1",children:(0,n.jsx)(N,{color:0===t?p.crimson:p.tealSoft})}),(0,n.jsx)("p",{className:"pt-0.5 tabular-nums text-[12px] tracking-[0.08em] uppercase",style:{fontFamily:x,color:p.teal,fontWeight:600},children:e.time}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{style:{fontFamily:h,fontWeight:500,color:p.ink,fontSize:"1.2rem",lineHeight:1.25},children:e.title}),e.note&&(0,n.jsx)("p",{className:"mt-1 text-sm",style:{color:p.inkSoft},children:e.note})]})]})},t))})]})}):null}function M(e){var t;let{data:a}=e;return(null==(t=a.chapters)?void 0:t.length)?(0,n.jsx)("section",{className:"px-6 py-20",style:{background:p.card},children:(0,n.jsxs)("div",{className:"max-w-lg mx-auto",children:[(0,n.jsxs)(b,{children:[(0,n.jsx)(w,{children:"Case history"}),a.intro&&(0,n.jsx)("p",{className:"mt-4 text-sm text-center max-w-sm mx-auto",style:{color:p.inkSoft},children:a.intro})]}),(0,n.jsx)("div",{className:"mt-12",children:a.chapters.map((e,t)=>(0,n.jsx)(b,{delay:130*t,children:(0,n.jsxs)("div",{className:"relative pl-11 pb-10",style:{borderLeft:t<a.chapters.length-1?"1.5px solid ".concat(p.hairline):"1.5px solid transparent"}
1,children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"absolute flex items-center justify-center pointer-events-none rounded-full",style:{left:-13,top:0,width:26,height:26,background:p.bg,border:"1.5px solid ".concat((0,s.fu)(p.crimson,"66"))},children:(0,n.jsx)(N,{color:0===t?p.crimson:p.tealSoft,size:10})}),e.date&&(0,n.jsx)("p",{className:"text-[10px] tracking-[0.3em] uppercase mb-1.5",style:{fontFamily:x,color:p.teal,fontWeight:600},children:e.date}),(0,n.jsx)("h3",{style:{fontFamily:h,fontWeight:500,color:p.ink,fontSize:"1.35rem",lineHeight:1.25},children:e.title}),e.text&&(0,n.jsx)("p",{className:"mt-2 text-sm leading-relaxed",style:{color:p.inkSoft},children:e.text}),e.photo&&(0,n.jsx)("img",{src:e.photo,alt:e.title,loading:"lazy",className:"mt-4 w-full max-w-xs object-cover",style:{aspectRatio:"4/3",borderRadius:8,border:"1px solid ".concat(p.hairline)}})]})},t))})]})}):null}function E(e){let{data:t}=e;return(0,n.jsx)("section",{className:"px-6 py-16",style:{background:p.bg},children:(0,n.jsx)(b,{children:(0,n.jsxs)("div",{className:"relative max-w-md mx-auto px-8 py-9 sm:px-10",style:{background:p.card,border:"1px solid ".concat(p.hairline),borderTop:"4px solid ".concat(p.teal),borderRadius:6,boxShadow:"0 26px 60px -28px rgba(38, 34, 42, 0.3)",transform:"rotate(-0.5deg)"},children:[(0,n.jsxs)("div",{className:"flex items-end justify-between gap-4",children:[(0,n.jsx)("span",{"aria-hidden":!0,style:{fontFamily:h,fontWeight:600,color:p.teal,fontSize:"2.3rem",lineHeight:.9},children:"℞"}),(0,n.jsx)("p",{className:"text-[10px] tracking-[0.4em] uppercase text-right",style:{fontFamily:x,color:p.inkSoft,fontWeight:600,margin:0},children:t.title||"Doctor's note"})]}),(0,n.jsx)("div",{"aria-hidden":!0,className:"mt-4",style:{height:1,background:p.hairline}}),(0,n.jsx)("p",{className:"mt-5 italic",style:{fontFamily:h,color:p.ink,fontSize:"1.08rem",lineHeight:"32px",backgroundImage:"repeating-linear-gradient(to bottom, transparent 0 31px, ".concat(p.hairline," 31px 32px)")},children:t.text}),(0,n.jsxs)("div",{className:"mt-8 flex items-end justify-between gap-4",children:[(0,n.jsx)("p",{className:"text-[9px] tracking-[0.28em] uppercase",style:{fontFamily:x,color:p.inkSoft,fontWeight:500,margin:0},children:"Take with love, daily"}),(0,n.jsxs)("div",{className:"text-right",children:[(0,n.jsx)("p",{className:"italic",style:{fontFamily:h,fontWeight:500,color:p.crimson,fontSize:"1.3rem",margin:0,lineHeight:1.2},children:t.speaker}),(0,n.jsx)("p",{className:"mt-1 text-[9px] tracking-[0.3em] uppercase",style:{fontFamily:x,color:p.inkSoft,fontWeight:600,borderTop:"1px solid ".concat((0,s.fu)(p.ink,"55")),paddingTop:5},children:"Signed"})]})]})]})})})}function C(e){let{data:t}=e,a=(0,o.M)(t.colors,t.note,t.receptionNote);return(0,n.jsx)("section",{className:"px-6 py-20 text-center",style:{background:p.card},children:(0,n.jsxs)(b,{children:[(0,n.jsx)(w,{children:a.length?"The prescription \xb7 colours":"The dress code"}),(0,n.jsx)("p",{className:"mt-7 max-w-md mx-auto italic",style:{fontFamily:h,fontWeight:500,color:p.ink,fontSize:"clamp(1.35rem, 4.5vw, 1.8rem)",lineHeight:1.45},children:t.note}),a.length>0&&(0,n.jsx)("div",{className:"mt-10 flex justify-center gap-x-4 gap-y-6 flex-wrap max-w-lg mx-auto",children:a.map((e,t)=>(0,n.jsxs)("div",{className:"flex flex-col items-center gap-2.5",style:{width:88},children:[(0,n.jsxs)("span",{"aria-hidden":!0,className:"pointer-events-none relative block overflow-hidden",style:{width:76,height:30,borderRadius:999,background:"linear-gradient(".concat(t%2==0?"90deg":"270deg",", ").concat(e.hex," 0 50%, #FFFFFF 50% 100%)"),border:e.light?"1px solid ".concat(p.hairline):"1px solid rgba(0,0,0,0.08)",boxShadow:"0 10px 20px -10px rgba(38, 34, 42, 0.35)"},children:[(0,n.jsx)("span",{className:"absolute",style:{left:"50%",top:0,bottom:0,width:1,background:"rgba(0,0,0,0.12)"}}),(0,n.jsx)("span",{className:"absolute rounded-full",style:{left:8,top:5,width:18,height:6,background:"rgba(255,255,255,0.45)"}})]}),(0,n.jsx)("span",{className:"text-[9px] tracking-[0.14em] uppercase leading-snug",style:{fontFamily:x,color:p.ink,fontWeight:600},children:e.name})]},e.hex))}),t.receptionNote&&(0,n.jsxs)("div",{className:"mt-9 max-w-md mx-auto",children:[(0,n.jsx)("p",{className:"text-[10px] tracking-[0.4em] uppercase mb-2",style:{fontFamily:x,color:p.inkSoft,fontWeight:600},children:"Reception"}),(0,n.jsxs)("p",{style:{fontFamily:h,fontWeight:500,color:p.ink,fontSize:"1.15rem"},children:[t.receptionAccent?"".concat(t.receptionAccent," "):"",t.receptionNote]}),t.receptionSubNote&&(0,n.jsx)("p",{className:"mt-2 text-sm",style:{color:p.inkSoft},children:t.receptionSubNote})]})]})})}function L(e){var t,a,s;let{data:i}=e,{ref:l,loop:o}=function(e){let t=(0,r.useRef)(null),[a,n]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let s=t.current;if(!s||e<2||a)return;let i=()=>{s.scrollWidth>s.clientWidth+8&&n(!0)};return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[e,a]),(0,r.useEffect)(()=>{let n=t.current;if(!a||!n||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let s=0,i=!1,r=0,l=0,o=n.scrollLeft,c=-1,d=()=>{r=Date.now()+2500},m=()=>{Math.abs(n.scrollLeft-c)>1.5&&(d(),o=n.scrollLeft)},p=t=>{if(s=requestAnimationFrame(p),!i||Date.now()<r){l=t,o=n.scrollLeft;return}let a=Math.min(t-l,48);l=t;let d=n.children;if(d.length<2*e)return;let m=d[e].offsetLeft-d[0].offsetLeft;m<=0||n.scrollWidth<=n.clientWidth||((o+=.028*a)>=m&&(o-=m),c=o,n.scrollLeft=o)},h=new IntersectionObserver(e=>{let[t]=e;i=t.isIntersecting},{threshold:.2});return h.observe(n),n.addEventListener("pointerdown",d,{passive:!0}),n.addEventListener("touchstart",d,{passive:!0}),n.addEventListener("wheel",d,{passive:!0}),n.addEventListener("scroll",m,{passive:!0}),s=requestAnimationFrame(e=>{l=e,p(e)}),()=>{cancelAnimationFrame(s),h.disconnect(),n.removeEventListener("pointerdown",d),n.removeEventListener("touchstart",d),n.removeEventListener("wheel",d),n.removeEventListener("scroll",m)}},[a,e]),{ref:t,loop:a}}(null!=(s=null==(t=i.photos)?void 0:t.length)?s:0);if(!(null==(a=i.photos)?void 0:a.length))return null;
1let c=o?[...i.photos,...i.photos]:i.photos;return(0,n.jsx)("section",{className:"py-16 overflow-hidden",style:{background:p.bg},children:(0,n.jsxs)(b,{children:[(0,n.jsx)("div",{className:"mb-10 px-6",children:(0,n.jsx)(w,{children:"Patient records"})}),(0,n.jsx)("div",{ref:l,className:"flex overflow-x-auto pt-5 pb-6 px-6",style:{scrollbarWidth:"none"},children:c.map((e,t)=>{var a;let s=t%((null==(a=i.photos)?void 0:a.length)||1),r=[-2,1.5,2.5][s%3];return(0,n.jsx)("figure",{className:"flex-shrink-0 mx-2 first:ml-6 last:mr-6 m-0",style:{width:"min(60vw, 250px)",transform:"translateY(".concat(14*(s%2!=0),"px)")},children:(0,n.jsxs)("div",{className:"relative",style:{background:p.card,padding:"18px 9px 10px",border:"1px solid ".concat(p.hairline),borderRadius:8,boxShadow:"0 20px 44px -22px rgba(38, 34, 42, 0.35)",transform:"rotate(".concat(r,"deg)")},children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"absolute pointer-events-none block",style:{top:-9,left:"50%",transform:"translateX(-50%)",width:58,height:18,background:"linear-gradient(#D9DDE3, #9AA1AB)",borderRadius:"6px 6px 3px 3px",boxShadow:"0 3px 6px -2px rgba(38, 34, 42, 0.4)"},children:(0,n.jsx)("span",{className:"absolute rounded-full",style:{left:"50%",top:5,transform:"translateX(-50%)",width:14,height:7,background:p.bg,boxShadow:"inset 0 1px 2px rgba(0,0,0,0.3)"}})}),(0,n.jsx)("img",{src:e.url,alt:e.caption||"",loading:"lazy",className:"w-full object-cover",style:{...(0,m.MD)(e),aspectRatio:e.aspect||"3/4",borderRadius:4}}),(0,n.jsxs)("figcaption",{className:"pt-2 pb-0.5 flex items-center justify-between gap-2",children:[(0,n.jsxs)("span",{className:"text-[9px] tracking-[0.18em]",style:{fontFamily:x,color:p.teal,fontWeight:600},"aria-hidden":!0,children:["CHART ",String(s+1).padStart(2,"0")]}),e.caption&&(0,n.jsx)("span",{className:"text-[10px] italic truncate",style:{fontFamily:h,color:p.inkSoft},children:e.caption})]})]})},t)})})]})})}function R(e){let{data:t}=e;return(0,n.jsx)("section",{className:"px-6 py-16 text-center",style:{background:p.card},children:(0,n.jsxs)(b,{children:[(0,n.jsx)(w,{children:"Spread the love"}),(0,n.jsx)("p",{className:"mt-4 italic",style:{fontFamily:h,fontWeight:500,color:p.crimson,fontSize:"clamp(1.6rem, 5.5vw, 2.1rem)"},children:t.hashtag}),t.intro&&(0,n.jsx)("p",{className:"mt-3 text-sm max-w-sm mx-auto",style:{color:p.inkSoft},children:t.intro})]})})}function A(e){var t;let{data:a}=e;return(null==(t=a.people)?void 0:t.length)?(0,n.jsx)("section",{className:"px-6 py-20",style:{background:p.bg},children:(0,n.jsxs)("div",{className:"max-w-md mx-auto text-center",children:[(0,n.jsxs)(b,{children:[(0,n.jsx)(w,{children:"The on-call team"}),a.intro&&(0,n.jsx)("p",{className:"mt-4 text-sm",style:{color:p.inkSoft},children:a.intro})]}),(0,n.jsx)("ul",{className:"space-y-4 mt-9 list-none p-0",children:a.people.map((e,t)=>(0,n.jsx)(b,{delay:120*t,children:(0,n.jsxs)("li",{className:"px-6 py-5",style:{background:p.card,border:"1px solid ".concat(p.hairline),borderLeft:"3px solid ".concat(p.teal),borderRadius:8},children:[(0,n.jsx)("p",{style:{fontFamily:h,fontWeight:500,color:p.ink,fontSize:"1.2rem"},children:e.name}),e.role&&(0,n.jsx)("p",{className:"text-[10px] tracking-[0.3em] uppercase mt-1",style:{fontFamily:x,color:p.crimson,fontWeight:600},children:e.role}),(0,n.jsx)("a",{href:e.whatsapp?"https://wa.me/".concat(e.phone.replace(/\D/g,"")):"tel:".concat(e.phone),className:"mt-2 inline-block text-sm cursor-pointer",style:{fontFamily:x,color:p.teal,fontWeight:500},children:e.phone})]})},t))})]})}):null}function _(e){let{invite:t,data:a}=e,s=(0,r.useMemo)(()=>{var e;return null!=(e=B(t.endDate))?e:B(t.date)},[t.endDate,t.date]),l=!!s&&Date.now()>s.getTime()+864e5,o=(0,c.V)(t.rsvpToken),{name:m,setName:f,email:g,setEmail:v,phone:k,setPhone:w,message:N,setMessage:S,status:F,setStatus:W,submitting:T,done:D,error:z,submit:M}=o,E={background:p.bg,color:p.ink,border:"1px solid ".concat(p.hairline),borderRadius:8,fontFamily:u,fontSize:"1rem"};return(0,n.jsx)("section",{className:"px-6 py-24",id:"rsvp",style:{background:p.card},children:(0,n.jsx)(b,{children:(0,n.jsxs)("div",{className:"relative max-w-md mx-auto px-7 py-12 sm:px-10 overflow-hidden",style:{background:p.card,border:"1px solid ".concat(p.hairline),borderRadius:10,boxShadow:"0 30px 70px -32px rgba(38, 34, 42, 0.3)"}
1,children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute left-0 right-0 top-0 pointer-events-none",style:{height:3,background:"linear-gradient(to right, ".concat(p.teal,", ").concat(p.gold,", ").concat(p.crimson,")")}}),(0,n.jsx)("div",{className:"text-center mb-3",children:(0,n.jsx)("p",{className:"text-[10px] tracking-[0.45em] uppercase",style:{fontFamily:x,color:p.crimson,fontWeight:600},children:l?"Clinic closed":"Confirm your appointment"})}),(0,n.jsx)("p",{className:"text-center mb-9",style:{fontFamily:h,fontWeight:500,color:p.ink,fontSize:"clamp(1.6rem, 5vw, 2rem)"},children:l?"Thank you for celebrating with us":a.ctaText||"Will you join us?"}),l?(0,n.jsx)("p",{className:"text-sm text-center",style:{color:p.inkSoft},children:a.closedNote||"Thank you for celebrating with us."}):D?(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("svg",{viewBox:"0 0 100 90","aria-hidden":!0,className:"mx-auto mb-4",style:{width:62,height:56},children:(0,n.jsx)("path",{d:y,fill:"".concat(p.rose,"26"),stroke:p.crimson,strokeWidth:"3",strokeLinejoin:"round"})}),(0,n.jsx)("p",{className:"italic",style:{fontFamily:h,fontWeight:500,color:p.ink,fontSize:"1.25rem",lineHeight:1.5},children:"attending"===F?o.confirmationCopy(j(t.eventType).success):"maybe"===F?"Noted. We will keep a chair on standby for you.":"Understood. You will be missed."}),g.trim()?(0,n.jsxs)("p",{className:"mt-4 text-center text-[13px]",style:{color:p.ink,opacity:.75},children:["We will send updates to ",g.trim(),"."]}):null]}):(0,n.jsxs)("div",{className:"space-y-5 text-left",children:[(0,n.jsx)("input",{type:"text",value:m,onChange:e=>f(e.target.value),placeholder:"Your full name",className:"w-full px-3.5 py-3 outline-none",style:E}),(0,n.jsx)("input",{type:"email",autoComplete:"email",inputMode:"email",autoCapitalize:"none",spellCheck:!1,value:g,onChange:e=>v(e.target.value),placeholder:"Email",className:"w-full px-3.5 py-3 outline-none",style:E}),(0,n.jsx)("input",{type:"tel","aria-label":"Phone number",maxLength:20,autoComplete:"tel",inputMode:"tel",value:k,onChange:e=>w(e.target.value),placeholder:"Phone number (optional)",className:"mt-3 w-full px-3.5 py-3 outline-none",style:E}),(0,n.jsx)(i.A,{value:g,onApply:e=>v(e),accentColor:p.crimson}),(0,n.jsx)(d.q,{rsvp:o,inputStyle:E}),(0,n.jsx)("textarea",{value:N,onChange:e=>S(e.target.value),placeholder:"A note for your hosts (optional)",rows:2,className:"w-full px-3.5 py-3 outline-none resize-none",style:E}),(0,n.jsx)("div",{className:"grid grid-cols-3 gap-2 pt-1",children:["attending","maybe","declined"].map(e=>{let t="attending"===e?"Attending":"maybe"===e?"On call":"Unavailable",a=F===e;return(0,n.jsx)("button",{type:"button",onClick:()=>W(e),className:"py-2.5 text-[10px] tracking-[0.12em] uppercase cursor-pointer transition-colors duration-300",style:{background:a?p.crimson:p.bg,color:a?"#FDF9F9":p.inkSoft,border:"1px solid ".concat(a?p.crimson:p.hairline),borderRadius:999,fontWeight:600,fontFamily:x},children:t},e)})}),z&&(0,n.jsx)("p",{className:"text-sm",style:{color:"#A33A32",fontWeight:600},children:z}),(0,n.jsx)("button",{type:"button",onClick:M,disabled:T,className:"w-full text-[11px] tracking-[0.32em] uppercase py-4 cursor-pointer transition-all duration-300",style:{color:"#FDF9F9",background:"linear-gradient(120deg, #8C1F30, ".concat(p.crimson,")"),fontWeight:600,fontFamily:x,borderRadius:999,opacity:T?.7:1,boxShadow:"0 14px 34px -14px rgba(166, 39, 58, 0.55)"},children:T?"Sending…":"Send RSVP"})]})]})})})}function Y(e){let{invite:t}=e,a=t.hosts.map(e=>e.name).filter(Boolean);return(0,n.jsx)("footer",{className:"pt-12 pb-14 px-6",style:{background:p.bg},children:(0,n.jsxs)("div",{className:"max-w-md mx-auto text-center",children:[(0,n.jsx)("div",{className:"flex justify-center","aria-hidden":!0,children:(0,n.jsx)(k,{className:"w-44 h-9",animate:!1})}),(0,n.jsx)("p",{className:"mt-5 text-[11px] tracking-[0.35em] uppercase",style:{fontFamily:x,color:p.crimson,fontWeight:600},children:"Two hearts, one rhythm"}),a.length>0&&(0,n.jsx)("p",{className:"mt-4 italic",style:{fontFamily:h,fontWeight:500,color:p.ink,fontSize:"1.25rem"},children:a.join(" & ")}),(0,n.jsx)("p",{className:"text-[11px] tracking-[0.2em] uppercase mt-1 mb-9",style:{color:p.inkSoft},children:t.dateDisplay}),(0,n.jsx)(l.UV,{accent:p.crimson,ink:p.ink,inkSoft:p.inkSoft,card:p.card,hairline:p.hairline,sans:u,logo:"light"})]})})}function B(e){return e?e instanceof Date?e:"function"==typeof e.toDate?e.toDate():"number"==typeof e.seconds?new Date(1e3*e.seconds):null:null}}}]);

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.