1/*! For license information please see 2642.682bdc4d.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[2642],{3675(e,t,a){a.d(t,{A:()=>l});var r=a(56099),s=a(70579);function l(e){let{label:t="Copilot Prep",heading:a,items:l=[],children:n,right:i,className:d="",testId:o}=e;return(0,s.jsxs)("div",{className:"ai-card ".concat(d),"data-testid":o,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,s.jsxs)("span",{className:"ai-chip",children:[(0,s.jsx)(r.A,{className:"h-3.5 w-3.5"})," ",t]}),i]}),a&&(0,s.jsx)("p",{className:"ai-text font-display text-lg sm:text-xl leading-snug mt-4",children:a}),l.length>0&&(0,s.jsx)("ul",{className:"mt-3 space-y-1.5 text-sm text-foreground/85",children:l.map((e,t)=>(0,s.jsxs)("li",{className:"leading-relaxed","data-testid":o?"".concat(o,"-item-").concat(t):void 0,children:["\xb7 ",e]},t))}),n]})}},10629(e,t,a){a.d(t,{A:()=>r});const r=(0,a(81074).A)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]])},19647(e,t,a){a.d(t,{A:()=>r});const r=(0,a(81074).A)("users-round",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]])},20073(e,t,a){a.d(t,{A:()=>r});const r=(0,a(81074).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},29447(e,t,a){a.d(t,{A:()=>c,y:()=>o});var r=a(71792),s=a(70579);const l=["b","strong","i","em","u","s","del","p","br","ul","ol","li","a","h1","h2","h3","h4","h5","h6","span","code","pre","blockquote","mark","hr","div"],n=["href","target","rel","style"],i=e=>r.Ay.sanitize((e=>(e||"").replace(/<p[^>]*>\s*(<br\s*\/?>| |\u00a0)?\s*<\/p>/gi,"").replace(/<div[^>]*>\s*(<br\s*\/?>| |\u00a0)?\s*<\/div>/gi,"").replace(/(<br\s*\/?>\s*){2,}/gi,"<br>"))(e),{ALLOWED_TAGS:l,ALLOWED_ATTR:n}),d=e=>{const t=String(e);if(!/&[a-zA-Z#0-9]+;/.test(t))return t;try{return(new DOMParser).parseFromString(t,"text/html").body.textContent||t}catch(a){return t}},o=e=>{if(!e)return"";try{return((new DOMParser).parseFromString(String(e),"text/html").body.textContent||"").replace(/\s+/g," ").trim()}catch(t){return String(e).replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim()}},c=e=>{let{value:t,className:a="",testid:r}=e;if(!t)return null;var l;return"string"===typeof(l=t)&&/<[a-z][\s\S]*>/i.test(l)?(0,s.jsx)("div",{className:"prose-reading text-sm sm:text-base text-foreground/85 leading-relaxed ".concat(a),"data-testid":r,dangerouslySetInnerHTML:{__html:i(t)}}):(0,s.jsx)("p",{className:"prose-reading text-sm sm:text-base text-foreground/85 leading-relaxed whitespace-pre-line ".concat(a),"data-testid":r,children:d(t)})}},31555(e,t,a){a.d(t,{E:()=>d});var r=a(22555),s=a(53986),l=a(99766),n=a(70579);const i=["className"];function d(e){let{className:t}=e,a=(0,s.A)(e,i);return(0,n.jsx)("div",(0,r.A)({className:(0,l.cn)("animate-pulse rounded-md bg-primary/10",t)},a))}},42681(e,t,a){a.d(t,{A:()=>r});const r=(0,a(81074).A)("qr-code",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]])},45144(e,t,a){a.d(t,{m:()=>l});var r=a(65043),s=a(84553);const l=(e,t)=>{const a=(0,s.g)(),[l,n]=(0,r.useState)(null),[i,d]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{if(!t)return void d(!1);let r=!0;return d(!0),a.get("/api/directory/".concat(e,"/").concat(t)).then(e=>{r&&n((null===e||void 0===e?void 0:e.item)||e||null)}
2).catch(()=>{r&&n(null)}).finally(()=>{r&&d(!1)}),()=>{r=!1}},[e,t]),{item:l,loading:i}}},63466(e,t,a){a.d(t,{q:()=>p});var r=a(65043),s=a(19647),l=a(36210),n=a(58487),i=a(28814),d=a(42574),o=a(88306),c=a(24405),m=a(13390),x=a(27583),h=a(70579);const p=e=>{let{title:t,className:a="",url:p,embed:u=null,hideCommunityShare:g=!1}=e;const[f,b]=(0,r.useState)(!1),[v,j]=(0,r.useState)(!1),k=p||("undefined"!==typeof window?window.location.href:""),w='Check out "'.concat(t,'" on Bower'),y=encodeURIComponent,N=[{id:"whatsapp",label:"WhatsApp",icon:d.A,href:"https://wa.me/?text=".concat(y("".concat(w," ").concat(k)))},{id:"x",label:"X",icon:c.A,href:"https://twitter.com/intent/tweet?text=".concat(y(w),"&url=").concat(y(k))},{id:"linkedin",label:"LinkedIn",icon:i.A,href:"https://www.linkedin.com/sharing/share-offsite/?url=".concat(y(k))}],_=async()=>{try{await navigator.clipboard.writeText(k),b(!0),setTimeout(()=>b(!1),1800)}catch(e){}};return(0,h.jsxs)("div",{className:"flex flex-wrap items-center gap-2 ".concat(a),"data-testid":"event-share",children:[navigator.share&&(0,h.jsxs)(m.$,{variant:"outline",size:"sm",className:"rounded-full gap-1.5",onClick:async()=>{try{navigator.share?await navigator.share({title:t,text:w,url:k}):_()}catch(e){}},"data-testid":"share-native",children:[(0,h.jsx)(o.A,{className:"h-3.5 w-3.5"})," Share"]}),!g&&(0,h.jsxs)(m.$,{variant:"outline",size:"sm",className:"rounded-full gap-1.5",onClick:()=>j(!0),"data-testid":"share-feed",children:[(0,h.jsx)(s.A,{className:"h-3.5 w-3.5"})," Share to community"]}),N.map(e=>(0,h.jsx)(m.$,{variant:"outline",size:"icon",className:"rounded-full h-9 w-9",asChild:!0,"data-testid":"share-".concat(e.id),title:"Share on ".concat(e.label),children:(0,h.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",children:(0,h.jsx)(e.icon,{className:"h-4 w-4"})})},e.id)),(0,h.jsx)(m.$,{variant:"outline",size:"sm",className:"rounded-full gap-1.5",onClick:_,"data-testid":"share-copy",children:f?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(l.A,{className:"h-3.5 w-3.5 text-success"})," Copied"]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(n.A,{className:"h-3.5 w-3.5"})," Copy link"]})}),(0,h.jsx)(x.d,{open:v,onOpenChange:j,title:"Share this in B-Cafe?",description:"Give your fellow founders a heads-up.",defaultText:"",tag:"Update",embed:u,testid:"event-share-feed-dialog"})]})}},67010(e,t,a){a.d(t,{A:()=>r});const r=(0,a(81074).A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},69477(e,t,a){a.d(t,{A:()=>r});const r=(0,a(81074).A)("search-x",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},78350(e,t,a){a.d(t,{F:()=>c,P:()=>o});var r=a(44125),s=a(65469),l=a(69477),n=a(13390),i=a(31555),d=a(70579);const o=()=>(0,d.jsxs)("div",{className:"px-4 sm:px-5 lg:px-8 py-6 sm:py-8 lg:py-10 max-w-5xl mx-auto","data-testid":"detail-loading",children:[(0,d.jsx)(i.E,{className:"h-5 w-32 mb-6"}),(0,d.jsx)(i.E,{className:"h-44 rounded-3xl"}),(0,d.jsxs)("div",{className:"grid sm:grid-cols-3 gap-4 mt-6",children:[(0,d.jsx)(i.E,{className:"h-28 rounded-2xl"}),(0,d.jsx)(i.E,{className:"h-28 rounded-2xl"}),(0,d.jsx)(i.E,{className:"h-28 rounded-2xl"})]}),(0,d.jsx)(i.E,{className:"h-40 rounded-2xl mt-6"})]}),c=e=>{let{backTo:t="/app",label:a="Back"}=e;return(0,d.jsxs)("div",{className:"px-4 sm:px-5 lg:px-8 py-20 max-w-xl mx-auto text-center","data-testid":"detail-not-found",children:[(0,d.jsx)("div",{className:"h-14 w-14 rounded-2xl bg-secondary grid place-items-center mx-auto mb-5 text-muted-foreground",children:(0,d.jsx)(l.A,{className:"h-6 w-6"})}),(0,d.jsx)("h1",{className:"font-display text-3xl",children:"Not found."}),(0,d.jsx)("p",{className:"text-muted-foreground mt-2",children:"This item doesn\u2019t exist or was removed."}),(0,d.jsx)(n.$,{asChild:!0,variant:"outline",className:"mt-6 rounded-full",children:(0,d.jsxs)(r.N_,{to:t,children:[(0,d.jsx)(s.A,{className:"h-4 w-4 mr-2"})," ",a]})})]})}},82706(e,t,a){a.d(t,{A:()=>r});const r=(0,a(81074).A)("navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]])},85453(e,t,a){a.d(t,{Y$:()=>p,nC:()=>h});var r=a(22555),s=a(76833),l=a(56099),n=a(20073),i=a(70579);const d={label:"Excellent Fit",pillBorder:"border-emerald-400/70 dark:border-emerald-400/50",pillBg:"bg-gradient-to-r from-emerald-50 via-emerald-50 to-green-50 dark:from-emerald-900/40 dark:via-emerald-900/40 dark:to-green-900/40",pillText:"text-emerald-800 dark:text-emerald-200",pillIcon:"fill-emerald-500 text-emerald-500 dark:fill-emerald-300 dark:text-emerald-300",cardBorder:"border-emerald-300 dark:border-emerald-500/40",cardBg:"bg-gradient-to-br from-emerald-50 via-green-50/60 to-white dark:from-emerald-900/30 dark:via-emerald-900/20 dark:to-transparent",cardShadow:"shadow-[inset_0_1px_0_rgba(16,185,129,0.18)] dark:shadow-[inset_0_1px_0_rgba(16,185,129,0.35)]",scoreGradient:"from-emerald-600 via-green-500 to-emerald-500 dark:from-emerald-300 dark:via-green-300 dark:to-emerald-200",cardText:"text-emerald-900 dark:text-emerald-100",cardMutedText:"text-emerald-800/70 dark:text-emerald-200/70",reasonIcon:"text-emerald-600 dark:text-emerald-300",pillCopilot:"from-emerald-500 to-green-500",zap:"fill-emerald-500 text-emerald-500 dark:fill-emerald-300 dark:text-emerald-300"},o={label:"Strong Fit",pillBorder:"border-teal-400/70 dark:border-teal-400/50",pillBg:"bg-gradient-to-r from-teal-50 to-cyan-50 dark:from-teal-900/40 dark:to-cyan-900/40",pillText:"text-teal-800 dark:text-teal-200",pillIcon:"fill-teal-500 text-teal-500 dark:fill-teal-300 dark:text-teal-300",cardBorder:"border-teal-300 dark:border-teal-500/40",cardBg:"bg-gradient-to-br from-teal-50 via-cyan-50/60 to-white dark:from-teal-900/30 dark:via-cyan-900/20 dark:to-transparent",cardShadow:"shadow-[inset_0_1px_0_rgba(20,184,166,0.18)] dark:shadow-[inset_0_1px_0_rgba(20,184,166,0.35)]",scoreGradient:"from-teal-600 via-cyan-500 to-teal-500 dark:from-teal-300 dark:via-cyan-300 dark:to-teal-200",cardText:"text-teal-900 dark:text-teal-100",cardMutedText:"text-teal-800/70 dark:text-teal-200/70",reasonIcon:"text-teal-600 dar
2k:text-teal-300",pillCopilot:"from-teal-500 to-cyan-500",zap:"fill-teal-500 text-teal-500 dark:fill-teal-300 dark:text-teal-300"},c={label:"Moderate Fit",pillBorder:"border-amber-400/70 dark:border-amber-400/50",pillBg:"bg-gradient-to-r from-amber-50 to-orange-50 dark:from-amber-900/40 dark:to-orange-900/40",pillText:"text-amber-800 dark:text-amber-200",pillIcon:"fill-amber-500 text-amber-500 dark:fill-amber-300 dark:text-amber-300",cardBorder:"border-amber-300 dark:border-amber-500/40",cardBg:"bg-gradient-to-br from-amber-50 via-orange-50/60 to-white dark:from-amber-900/30 dark:via-orange-900/20 dark:to-transparent",cardShadow:"shadow-[inset_0_1px_0_rgba(245,158,11,0.18)] dark:shadow-[inset_0_1px_0_rgba(245,158,11,0.35)]",scoreGradient:"from-orange-600 via-amber-500 to-orange-500 dark:from-orange-300 dark:via-amber-300 dark:to-orange-200",cardText:"text-amber-900 dark:text-amber-100",cardMutedText:"text-amber-800/70 dark:text-amber-200/70",reasonIcon:"text-orange-600 dark:text-orange-300",pillCopilot:"from-orange-500 to-amber-500",zap:"fill-amber-500 text-amber-500 dark:fill-amber-300 dark:text-amber-300"},m={label:"Light Match",pillBorder:"border-rose-300/70 dark:border-rose-400/50",pillBg:"bg-rose-50/70 dark:bg-rose-900/30",pillText:"text-rose-700 dark:text-rose-200",pillIcon:"fill-rose-400 text-rose-400 dark:fill-rose-300 dark:text-rose-300",cardBorder:"border-rose-300 dark:border-rose-500/40",cardBg:"bg-gradient-to-br from-rose-50 via-orange-50/50 to-white dark:from-rose-900/25 dark:via-orange-900/15 dark:to-transparent",cardShadow:"shadow-[inset_0_1px_0_rgba(244,63,94,0.14)] dark:shadow-[inset_0_1px_0_rgba(244,63,94,0.32)]",scoreGradient:"from-rose-500 via-orange-400 to-rose-400 dark:from-rose-300 dark:via-orange-300 dark:to-rose-200",cardText:"text-rose-900 dark:text-rose-100",cardMutedText:"text-rose-800/70 dark:text-rose-200/70",reasonIcon:"text-rose-500 dark:text-rose-300",pillCopilot:"from-rose-500 to-orange-500",zap:"fill-rose-400 text-rose-400 dark:fill-rose-300 dark:text-rose-300"};function x(e){return e>=80?(0,r.A)({key:"excellent"},d):e>=65?(0,r.A)({key:"strong"},o):e>=45?(0,r.A)({key:"moderate"},c):(0,r.A)({key:"light"},m)}function h(e){let{fit:t,className:a="",testId:r="fit-badge"}=e;if(!t||"number"!==typeof t.score)return null;const{score:s,reasons:l=[],is_baseline:d}=t,o=x(s),c=d?"Complete your venture profile so Copilot can score this precisely.":l.join(" \xb7 ")||"".concat(o.label," \xb7 ").concat(s,"%");return(0,i.jsxs)("div",{className:"inline-flex items-center gap-1 rounded-full border px-2.5 py-1 text-[11px] font-bold ".concat(o.pillBorder," ").concat(o.pillBg," ").concat(o.pillText," ").concat(a),"data-testid":r,title:c,children:[(0,i.jsx)(n.A,{className:"h-3 w-3 ".concat(o.pillIcon)}),s,"% match"]})}function p(e){let{fit:t,title:a="Fit Score",className:r="",testId:d="fit-score-card"}=e;if(!t||"number"!==typeof t.score)return null;const{score:o,reasons:c=[],is_baseline:m}=t,h=x(o);return(0,i.jsxs)("div",{className:r,"data-testid":d,children:[(0,i.jsx)("p",{className:"text-[11px] font-grotesk uppercase tracking-[0.2em] text-muted-foreground mb-2",children:a}),(0,i.jsx)("div",{className:"rounded-2xl border ".concat(h.cardBorder," ").concat(h.cardBg," p-5 ").concat(h.cardShadow),children:(0,i.jsxs)("div",{className:"flex items-start gap-5",children:[(0,i.jsxs)("div",{className:"text-center shrink-0",children:[(0,i.jsx)("div",{className:"font-display text-5xl leading-none bg-gradient-to-br ".concat(h.scoreGradient," bg-clip-text text-transparent"),"data-testid":"".concat(d,"-value"),children:o}),(0,i.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] ".concat(h.cardMutedText," mt-1.5 font-grotesk font-semibold"),children:"out of 100"})]}),(0,i.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[(0,i.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] font-grotesk font-bold uppercase tracking-widest rounded-full px-2 py-0.5 bg-gradient-to-r ".concat(h.pillCopilot," text-white"),children:[(0,i.jsx)(l.A,{className:"h-3 w-3"})," Copilot"]}),(0,i.jsxs)("p",{className:"text-base font-bold ".concat(h.cardText," flex items-center gap-1.5"),"data-testid":"".concat(d,"-band"),children:[(0,i.jsx)(n.A,{className:"h-4 w-4 ".concat(h.zap)})," ",h.label]})]}),m?(0,i.jsx)("p",{className:"text-xs ".concat(h.cardMutedText),children:"Complete your venture profile so Copilot can score this precisely for you."}):(0,i.jsx)("ul",{className:"mt-2 space-y-1.5 text-sm ".concat(h.cardText),children:c.slice(0,6).map((e,t)=>(0,i.jsxs)("li",{className:"flex items-start gap-2",children:[(0,i.jsx)(s.A,{className:"h-3.5 w-3.5 mt-0.5 shrink-0 ".concat(h.reasonIcon)}),(0,i.jsx)("span",{className:"leading-snug",children:e})]},t))})]})]})})]})}},88306(e,t,a){a.d(t,{A:()=>r});const r=(0,a(81074).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},92642(e,t,a){a.r(t),a.d(t,{default:()=>D});
2var r=a(22555),s=a(44125),l=a(65043),n=a(17200),i=a(76833),d=a(22024),o=a(65469),c=a(67010),m=a(19233),x=a(28646),h=a(75088),p=a(28814),u=a(65727),g=a(28006),f=a(10629),b=a(82706),v=a(42681),j=a(7118),k=a(9333),w=a(13390),y=a(74415),N=a(45144),_=a(84553),A=a(85453),C=a(56328),S=a(26823),T=a(80643),M=a(63466),B=a(78350),I=a(3675),q=a(29447),z=a(70579);const P=e=>{let{start:t}=e;const{status:a,label:r}=(0,T.L4)(t,null);return"soon"!==a&&"upcoming"!==a?null:(0,z.jsxs)("p",{className:"text-xs text-muted-foreground text-center inline-flex items-center justify-center gap-1.5 w-full -mt-1","data-testid":"event-join-countdown",children:[(0,z.jsx)(k.A,{className:"h-3.5 w-3.5"})," Join opens 15 min before start \xb7 ",(0,z.jsx)("span",{className:"tabular-nums font-semibold text-foreground",children:r})]})},F={hidden:{opacity:0,y:16},show:function(){return{opacity:1,y:0,transition:{duration:.5,delay:.08*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),ease:[.22,1,.36,1]}}}},R=e=>{let{children:t}=e;return(0,z.jsx)("p",{className:"text-[11px] tracking-[0.22em] uppercase font-bold text-muted-foreground",children:t})},E=e=>{var t;let{p:a,isHost:r}=e;return(0,z.jsxs)("div",{className:"group relative rounded-2xl border border-border bg-card overflow-hidden hover:shadow-elevated hover:border-foreground
2/30 transition-all","data-testid":r?"speaker-host":"speaker-guest",children:[(0,z.jsxs)("div",{className:"relative aspect-square overflow-hidden bg-secondary",children:[a.avatar?(0,z.jsx)("img",{src:a.avatar,alt:a.name,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}):(0,z.jsx)("div",{className:"w-full h-full grid place-items-center text-3xl font-display text-muted-foreground",children:((null===(t=a.name)||void 0===t?void 0:t[0])||"?").toUpperCase()}),r&&(0,z.jsx)("span",{className:"absolute top-2.5 left-2.5 text-[10px] uppercase tracking-wider font-bold text-white bg-foreground/80 backdrop-blur px-2 py-0.5 rounded-full",children:"Host"}),(a.bio||a.linkedin)&&(0,z.jsxs)("div",{className:"absolute inset-0 bg-foreground/92 text-background p-4 flex flex-col justify-end opacity-0 group-hover:opacity-100 transition-opacity duration-300","data-testid":"speaker-hover",children:[a.bio&&(0,z.jsx)("p",{className:"text-xs leading-relaxed line-clamp-6",children:a.bio}),a.linkedin&&(0,z.jsxs)("a",{href:a.linkedin,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"inline-flex items-center gap-1.5 mt-3 text-xs font-semibold text-background hover:underline","data-testid":"speaker-linkedin",children:[(0,z.jsx)(p.A,{className:"h-3.5 w-3.5"})," View LinkedIn"]})]})]}),(0,z.jsxs)("div",{className:"p-3",children:[(0,z.jsx)("p",{className:"text-sm font-bold text-foreground truncate",children:a.name}),a.role&&(0,z.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:a.role})]})]})},$=e=>{let{label:t,value:a,variant:r}=e;const s={blue:"bg-blue-500 text-white",purple:"bg-violet-500 text-white",dark:"bg-zinc-900 text-white"}[r];return(0,z.jsxs)("div",{className:"rounded-2xl p-4 ".concat(s),children:[(0,z.jsx)("p",{className:"text-[10px] uppercase tracking-[0.18em] font-bold opacity-70",children:t}),(0,z.jsx)("p",{className:"text-xl font-bold mt-1.5 leading-tight",children:a})]})},D=()=>{var e;const{eventId:t}=(0,s.g)(),a=(0,_.g)(),{item:p,loading:D}=(0,N.m)("events",t),[L,Y]=(0,l.useState)(null),[O,V]=(0,l.useState)(!1),[G,H]=(0,l.useState)(null);(0,l.useEffect)(()=>{t&&(a.get("/api/events/".concat(t,"/rsvp/me")).then(Y).catch(()=>{}),a.get("/api/event/".concat(t,"/fit-score")).then(H).catch(()=>H(null)))},[t]);const[J,U]=(0,l.useState)(!1),[W,Z]=(0,l.useState)({}),K=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(((null===p||void 0===p?void 0:p.rsvp_form)||[]).length&&null===e)U(!0);else{V(!0);try{const s=await a.post("/api/events/".concat(t,"/rsvp"),{answers:e||{}});Y(e=>(0,r.A)((0,r.A)({},e),{},{going:"going"===s.status,waitlisted:"waitlisted"===s.status,status:s.status,registered:s.registered})),U(!1),C.oR.success(s.waitlisted?"You're on the waitlist":"You're going!",{description:s.waitlisted?"We'll notify you if a seat opens up.":void 0})}catch(s){C.oR.error("Could not RSVP",{description:s.message})}finally{V(!1)}}},X=async()=>{V(!0);try{const e=await a.del("/api/events/".concat(t,"/rsvp"));Y(t=>(0,r.A)((0,r.A)({},t),{},{going:!1,waitlisted:!1,status:null,checked_in:!1,registered:e.registered})),(0,C.oR)("RSVP cancelled")}catch(e){C.oR.error("Could not cancel",{description:e.message})}finally{V(!1)}},[Q,ee]=(0,l.useState)(Date.now());if((0,l.useEffect)(()=>{const e=setInterval(()=>ee(Date.now()),5e3);return()=>clearInterval(e)},[]),D)return(0,z.jsx)(B.P,{});if(!p)return(0,z.jsx)(B.F,{backTo:"/app/events",label:"Back to Events"});const te=(0,S.GF)(p.start_at,p.end_at,p.date)||"Date to be announced",ae=Array.isArray(p.guests)?p.guests.filter(e=>null===e||void 0===e?void 0:e.name):[],re=Array.isArray(p.agenda)?p.agenda.filter(e=>null===e||void 0===e?void 0:e.title):[],se=Array.isArray(p.copilot_questions)?p.copilot_questions.filter(Boolean):[],le=(e=>{const t=[e.location_name,e.location_address,e.location_city].filter(Boolean).join(", ")||e.location;return t?"https://www.google.com/maps/search/?api=1&query=".concat(encodeURIComponent(t)):null})(p),ne="Online"===p.mode,ie="Hybrid"===p.mode,de=ne||ie,oe="daily"===p.meeting_provider,ce=!!p.meeting_link||oe,me=p.location_name||p.location,xe=[p.location_address,p.location_city].filter(
2Boolean).join(", "),he=(e=>{if(!e)return null;const t=(0,S.Dw)(e);if(!t)return null;const a=new Date,r=Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(a.getFullYear(),a.getMonth(),a.getDate()))/864e5);return 0===r?{live:!0,label:"Live \xb7 Today"}:1===r?{live:!1,label:"Tomorrow"}:r>1&&r<=14?{live:!1,label:"In ".concat(r," days")}:null})(p.start_at),pe=Number(p.capacity)||0,ue=L&&"number"===typeof L.registered?L.registered:Number(p.registered)||0,ge=pe?Math.min(100,Math.round(ue/pe*100)):0,fe=((e,t)=>{if(!e||!t)return null;const a=(0,S.Dw)(e),r=(0,S.Dw)(t);if(!a||!r)return null;const s=Math.round((r-a)/6e4);return s>0?s:null})(p.start_at,p.end_at),be=(()=>{const e=p.closing_in;return e?"Closed"===e?" Registration closed.":"Today"===e?" Closing today.":" Closing in ".concat(e,"."):""})(),ve=p.host?{name:p.host,role:p.host_role||(p.kind?"".concat(p.kind," host"):""),avatar:p.host_avatar,bio:p.host_bio,linkedin:p.host_linkedin}:null,je=[p.location_name,p.location_address,p.location_city].filter(Boolean).join(", ")||p.location||"",ke=!ne&&je?"https://maps.google.com/maps?q=".concat(encodeURIComponent(je),"&z=15&output=embed"):null,we="undefined"!==typeof window?"".concat(window.location.origin,"/api/share/e/").concat(t):"",ye=(null===L||void 0===L?void 0:L.sold_out)&&!(null!==L&&void 0!==L&&L.going)&&!(null!==L&&void 0!==L&&L.waitlisted),Ne=!!(null!==L&&void 0!==L&&L.past||null!==p&&void 0!==p&&p.past),_e=!(null===L||void 0===L||!L.is_host),Ae=p.start_at&&(null===(e=(0,S.Dw)(p.start_at))||void 0===e?void 0:e.getTime())||0,Ce=(0,T.Zp)(p.start_at,p.end_at,72e5)||0,Se=de&&(!(null===L||void 0===L||!L.going)||_e)&&ce&&!Ne&&!!Ae&&Q>=Ae-9e5&&Q<=Ce,Te=(null===L||void 0===L?void 0:L.waitlist)||0;return(0,z.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 lg:py-8","data-testid":"event-detail",children:[(0,z.jsxs)(s.N_,{to:"/app/events",className:"inline-flex items-center gap-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors mb-6","data-testid":"event-back",children:[(0,z.jsx)(o.A,{className:"h-4 w-4"})," Back to Events"]}),(0,z.jsxs)(n.P.div,{variants:F,initial:"hidden",animate:"show",custom:0,className:"rounded-3xl overflow-hidden bg-zinc-950",children:[(0,z.jsx)("div",{className:"relative w-full aspect-video bg-zinc-950","data-testid":"event-cover-wrap",children:(0,z.jsx)("img",{src:p.cover_image||"https://images.unsplash.com/photo-1540575467063-178a50c2df87?crop=entropy&cs=srgb&fm=jpg&w=1800&q=80",alt:p.title,className:"absolute inset-0 w-full h-full object-contain","data-testid":"event-cover"})}),(0,z.jsxs)("div",{className:"p-6 sm:p-10 bg-zinc-900 text-white",children:[(0,z.jsxs)("div",{className:"flex flex-wrap gap-2 mb-5",children:[he&&(0,z.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-bold ".concat(he.live?"bg-red-500 text-white":"bg-white/15 text-white backdrop-blur"),"data-testid":"event-day-badge",children:[he.live&&(0,z.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-white animate-pulse"}),he.label]}),p.kind&&(0,z.jsx)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold bg-white/15 text-white backdrop-blur","data-testid":"event-kind",children:p.kind}),"internal"===p.audience&&(0,z.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-semibold bg-amber-400/20 text-amber-200 backdrop-blur","data-testid":"event-internal-badge",children:[(0,z.jsx)(u.A,{className:"h-3 w-3"})," Invite only"]})]}),(0,z.jsx)("h1",{className:"font-display text-4xl sm:text-5xl lg:text-6xl text-white leading-[0.98] tracking-tight max-w-4xl",children:p.title}),(0,z.jsxs)("div",{className:"mt-6 flex flex-wrap items-center gap-x-7 gap-y-2 text-sm text-white/85 font-medium",children:[(0,z.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,z.jsx)(x.A,{className:"h-4 w-4 opacity-70"})," ",te]}
2),(me||ne)&&(0,z.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,z.jsx)(g.A,{className:"h-4 w-4 opacity-70"})," ",ne?"Online":me]}),(0,z.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,z.jsx)(j.A,{className:"h-4 w-4 opacity-70"})," ",pe?"".concat(ue," / ").concat(pe," registered"):"Open to all"]})]})]})]}),(0,z.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 mt-6",children:[(0,z.jsxs)("main",{className:"order-2 lg:order-none lg:col-span-8 space-y-6 min-w-0",children:[(0,z.jsxs)(n.P.section,{variants:F,initial:"hidden",animate:"show",custom:1,className:"rounded-3xl border border-border bg-card p-6 sm:p-8",children:[(0,z.jsx)(R,{children:"About this event"}),(0,z.jsx)("h2",{className:"font-display text-3xl sm:text-4xl mt-2 tracking-tight",children:p.takeaway_heading||"What you'll take away."}),p.description?(0,z.jsx)(q.A,{value:p.description,className:"mt-4",testid:"event-description"}):(0,z.jsx)("p",{className:"text-muted-foreground mt-4 text-base leading-relaxed","data-testid":"event-description",children:"No description has been added for this event yet."}),(0,z.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 mt-6",children:[(0,z.jsx)($,{label:"Event type",value:p.kind||"Event",variant:"blue"}),(0,z.jsx)($,{label:"Format",value:p.mode||"TBD",variant:"purple"}),(0,z.jsx)($,{label:"Capacity",value:pe||"\u221e",variant:"dark"})]})]}),re.length>0&&(0,z.jsxs)(n.P.section,{variants:F,initial:"hidden",animate:"show",custom:2,className:"rounded-3xl border border-border bg-card p-6 sm:p-8","data-testid":"event-agenda",children:[(0,z.jsxs)("div",{className:"flex items-start justify-between",children:[(0,z.jsxs)("div",{children:[(0,z.jsx)(R,{children:"Agenda"}),(0,z.jsxs)("h2",{className:"font-display text-2xl sm:text-3xl mt-2 tracking-tight",children:[fe?"".concat(fe," minutes"):"Schedule"," \xb7 ",re.length," block",re.length>1?"s":""]})]}),(0,z.jsx)(f.A,{className:"h-5 w-5 text-muted-foreground shrink-0"})]}),(0,z.jsx)("ol",{className:"relative border-l border-border ml-1.5 mt-7 space-y-7",children:re.map((e,t)=>(0,z.jsxs)("li",{className:"relative pl-7 flex items-start justify-between gap-4","data-testid":"agenda-row-".concat(t),children:[(0,z.jsx)("span",{className:"absolute -left-[5px] top-1 w-2.5 h-2.5 rounded-full ring-4 ring-card ".concat(0===t?"bg-primary":"bg-foreground")}),(0,z.jsxs)("div",{className:"min-w-0",children:[e.time&&(0,z.jsx)("p",{className:"text-sm font-mono text-muted-foreground",children:e.time}),(0,z.jsx)("p",{className:"text-base font-semibold text-foreground mt-0.5",children:e.title})]}),e.duration&&(0,z.jsx)("span",{className:"text-xs font-mono uppercase tracking-wider text-muted-foreground shrink-0 pt-1",children:e.duration})]},t))})]}),(ve||ae.length>0)&&(0,z.jsxs)(n.P.section,{variants:F,initial:"hidden",animate:"show",custom:3,className:"rounded-3xl border border-border bg-card p-6 sm:p-8","data-testid":"event-speakers",children:[(0,z.jsx)(R,{children:"Speakers & hosts"}),(0,z.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Hover a card for their intro & LinkedIn."}),(0,z.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4 mt-5",children:[ve&&(0,z.jsx)(E,{p:ve,isHost:!0}),ae.map((e,t)=>(0,z.jsx)(E,{p:e},t))]})]}),se.length>0&&(0,z.jsx)(n.P.div,{variants:F,initial:"hidden",animate:"show",custom:4,children:(0,z.jsx)(I.A,{heading:"".concat(se.length," questions to ask ").concat(p.host||"the host",":"),items:se,testId:"event-copilot-prep"})})]}),(0,z.jsxs)("aside",{className:"order-1 lg:order-none lg:col-span-4",children:[G&&(0,z.jsx)("div",{className:"mb-4",children:(0,z.jsx)(A.Y$,{fit:G,title:"Copilot fit for you",testId:"event-fit-card"})}),(0,z.jsxs)(n.P.div,{variants:F,initial:"hidden",animate:"show",custom:1,className:"lg:sticky lg:top-8 rounded-3xl border border-border bg-card p-6 sm:p-7 shadow-sm",children:[(0,z.jsx)(R,{children:"Reserve your seat"}),(0,z.jsx)("p",{className:"font-display text-3xl font-bold mt-2",children:p.price?p.price:"It's free."}),(0,z.jsxs)("p",{className:"text-sm text-muted-foreground mt-1",children:[pe?"".concat(ue," / ").concat(pe," seats taken."):"Open to all Bower members.",be,Te>0?" \xb7 ".concat(Te," on waitlist"):""]}),pe>0&&(0,z.jsx)("div",{className:"mt-4 h-2 w-full rounded-full bg-secondary overflow-hidden","data-testid":"seats-progress",children:(0,z.jsx)("div",{className:"h-full rounded-full bg-primary transition-all",style:{width:"".concat(ge,"%")}})}),(0,z.jsxs)("div",{className:"mt-5 flex flex-col gap-3",children:[Ne&&oe?(0,z.jsx)(w.$,{asChild:!0,className:"w-full h-12 rounded-xl font-bold gap-2","data-testid":"event-view-recording",children:(0,z.jsxs)(s.N_,{to:"/app/meet/event/".concat(p.id,"/recordings"),children:[(0,z.jsx)(k.A,{className:"h-4 w-4"})," View recording & AI summary"]})}):_e&&!Ne?(0,z.jsxs)(z.Fragment,{children:[Se?(0,z.jsx)(w.$,{asChild:!0,className:"w-full h-12 rounded-xl font-bold gap-2 bg-destructive text-destructive-foreground hover:bg-destructive/90 active:scale-[0.98] transition-all","data-testid":"event-host-join",children:oe?(0,z.jsxs)(s.N_,{to:"/app/meet/event/".concat(p.id),children:[(0,z.jsx)("span",{className:"h-2 w-2 rounded-full bg-white live-dot"})," Start as host \u2014 Live"]}):(0,z.jsxs)("a",{href:p.meeting_link,target:"_blank",rel:"noopener noreferrer",children:[(0,z.jsx)("span",{className:"h-2 w-2 rounded-full bg-white live-dot"})," Join now \u2014 Live"]})}):(0,z.jsxs)("div",{className:"flex items-center justify-center gap-2 h-12 rounded-xl bg-primary/10 text-primary font-bold border border-primary/20","data-testid":"event-hosting-badge",children:[(0,z.jsx)(f.A,{className:"h-5 w-5"})," You're hosting this event"]}),!Se&&ce&&(0,z.jsx)(P,{start:p.start_at})]}):null!==L&&void 0!==L&&L.waitlisted?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("div",{className:"flex items-center justify-center gap-2 h-12 rounded-xl bg-amber-500/10 text-amber-600 font-bold border border-amber-500/20","data-testid":"rsvp-waitlisted",children:[(0,z.jsx)(h.A,{className:"h-5 w-5"})," You're on the waitlist"]}),(0,z.jsx)(w.$,{variant:"ghost",onClick:X,disabled:O,className:"w-full h-9 rounded-xl text-muted-foreground hover:text-destructive text-sm","data-testid":"event-cancel-rsvp",children:"Leave waitlist"})]}):null!==L&&void 0!==L&&L.going?(0,z.jsxs)(z.Fragment,{children:[Se?(0,z.jsx)(w.$,{asChild:!0,className:"w-full h-12 rounded-xl font-bold gap-2 bg-destructive text-destructive-foreground hover:bg-destructive/90 active:scale-[0.98] transition-all","data-testid":"event-join-live",children:oe?(0,z.jsxs)(s.N_,{to:"/app/meet/event/".concat(p.id),children:[(0,z.jsx)("span",{className:"h-2 w-2 rounded-full bg-white live-dot"})," Join now \u2014 Live"]}):(0,z.jsxs)("a",{href:p.meeting_link,target:"_blank",rel:"noopener noreferrer",children:[(0,z.jsx)("span",{className:"h-2 w-2 rounded-full bg-white live-dot"})," Join now \u2014 Live"]})}):(0,z.jsxs)("div",{className:"flex items-center justify-center gap-2 h-12 rounded-xl bg-success/10 text-success font-bold border border-success/20","data-testid":"rsvp-confirmed",children:[(0,z.jsx)(i.A,{className:"h-5 w-5"})," ",L.checked_in?"You're checked in":"You're going"]}),!Se&&de&&ce&&!Ne&&(0,z.jsx)(P,{start:p.start_at}),L.can_check_in&&!L.checked_in&&!oe&&(0,z.jsxs)(w.$,{onClick:async()=>{V(!0);try{await a.post("/api/events/".concat(t,"/checkin")),Y(e=>(0,r.A)((0,r.A)({},e),{},{checked_in:!0})),C.oR.success("Checked in \u2713")}catch(e){C.oR.error("Check-in failed",{description:e.message})}finally{V(!1)}},disabled:O,className:"w-full h-11 rounded-xl gap-2 font-bold active:scale-[0.98] transition-all","data-testid":"event-self-checkin",children:[O?(0,z.jsx)(d.A,{className:"h-4 w-4 animate-spin"}):(0,z.jsx)(v.A,{className:"h-4 w-4"})," Check in now"]}),(0,z.jsx)(w.$,{variant:"ghost",onClick:X,disabled:O,className:"w-full h-9 rounded-xl text-muted-foreground hover:text-destructive text-sm","data-testid":"event-cancel-rsvp",children:"Cancel my RSVP"})]}
2):Ne?(0,z.jsxs)(w.$,{disabled:!0,className:"w-full h-12 rounded-xl font-bold gap-2 bg-muted text-muted-foreground cursor-not-allowed","data-testid":"rsvp-submit-button",children:[(0,z.jsx)(h.A,{className:"h-4 w-4"})," Registration closed"]}):(0,z.jsx)(w.$,{onClick:()=>K(),disabled:O,className:"w-full h-12 rounded-xl font-bold gap-2 active:scale-[0.98] transition-all ".concat(ye?"bg-amber-500 text-white hover:bg-amber-600":"bg-foreground text-background hover:bg-foreground/90"),"data-testid":"rsvp-submit-button",children:O?(0,z.jsx)(d.A,{className:"h-4 w-4 animate-spin"}):ye?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(h.A,{className:"h-4 w-4"})," Join the waitlist"]}):(0,z.jsxs)(z.Fragment,{children:["RSVP now ",(0,z.jsx)(c.A,{className:"h-4 w-4"})]})}),ye&&!(null!==L&&void 0!==L&&L.waitlisted)&&(0,z.jsx)("p",{className:"text-xs text-amber-600 text-center -mt-1","data-testid":"sold-out-note",children:"This event is full \u2014 join the waitlist and we'll notify you."}),de&&!(null!==L&&void 0!==L&&L.going)&&!_e&&!Ne&&(0,z.jsx)("p",{className:"text-xs text-muted-foreground text-center -mt-1","data-testid":"event-join-locked-note",children:"Join link unlocks after you RSVP."}),(0,z.jsxs)(w.$,{variant:"ghost",className:"w-full h-10 rounded-xl gap-2 text-muted-foreground hover:text-foreground","data-testid":"event-notify-button",children:[(0,z.jsx)(m.A,{className:"h-4 w-4"})," Notify me 1 hour before"]})]}),(0,z.jsxs)("div",{className:"mt-5 pt-5 border-t border-border","data-testid":"event-share-cta",children:[(0,z.jsx)("p",{className:"text-xs uppercase tracking-wider font-bold text-muted-foreground mb-2.5",children:"Invite others"}),(0,z.jsx)(M.q,{title:p.title,url:we,embed:{type:"event",ref_id:p.id,title:p.title,subtitle:(p.description||"").replace(/<[^>]+>/g,"").slice(0,160),org:p.host,cover_url:p.cover_image,url:"/app/events/".concat(p.id),meta:{start_at:p.start_at,end_at:p.end_at,location:me||p.location_city,vertical:p.vertical}}})]}),!ne&&me&&(0,z.jsxs)("div",{className:"mt-6 pt-5 border-t border-border",children:[(0,z.jsxs)("div",{className:"flex items-start gap-3",children:[(0,z.jsx)(g.A,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),(0,z.jsxs)("div",{className:"min-w-0",children:[(0,z.jsx)("p",{className:"text-sm font-medium break-words",children:me}),xe&&(0,z.jsx)("p",{className:"text-xs text-muted-foreground break-words",children:xe}),le&&(0,z.jsxs)("a",{href:le,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-foreground text-xs font-medium mt-1 underline underline-offset-4","data-testid":"event-directions",children:[(0,z.jsx)(b.A,{className:"h-3 w-3"})," View directions"]})]})]}),ke&&(0,z.jsx)("div",{className:"mt-3 rounded-xl overflow-hidden border border-border","data-testid":"event-map",children:(0,z.jsx)("iframe",{title:"Event location map",src:ke,className:"w-full h-40 border-0",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})]}),ve&&(0,z.jsxs)("div",{className:"mt-6 pt-5 border-t border-border","data-testid":"event-host-card",children:[(0,z.jsx)(R,{children:"Hosted by"}),(0,z.jsxs)("div",{className:"mt-3 flex items-center gap-3",children:[(0,z.jsxs)(y.eu,{className:"h-11 w-11",children:[(0,z.jsx)(y.BK,{src:ve.avatar,className:"object-cover"}),(0,z.jsx)(y.q5,{children:(ve.name[0]||"?").toUpperCase()})]}),(0,z.jsxs)("div",{className:"min-w-0",children:[(0,z.jsx)("p",{className:"font-bold text-sm truncate",children:ve.name}),ve.role&&(0,z.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:ve.role})]})]})]})]})]})]}),J&&(0,z.jsx)("div",{className:"fixed inset-0 z-50 grid place-items-center bg-black/50 p-4","data-testid":"rsvp-form-dialog",onClick:()=>U(!1),children:(0,z.jsxs)("div",{className:"w-full max-w-md rounded-2xl bg-card border border-border p-6 space-y-4 max-h-[85vh] overflow-y-auto",onClick:e=>e.stopPropagation(),children:[(0,z.jsxs)("div",{children:[(0,z.jsx)("p",{className:"font-display text-xl",children:"A few quick details"}),(0,z.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"The organiser needs this to confirm your spot."})]}),(p.rsvp_form||[]).map(e=>(0,z.jsx)("div",{"data-testid":"rsvp-form-field-".concat(e.id),children:"checkbox"===e.type?(0,z.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,z.jsx)("input",{type:"checkbox",checked:!!W[e.id],onChange:t=>Z(a=>(0,r.A)((0,r.A)({},a),{},{[e.id]:t.target.checked})),className:"h-4 w-4 accent-primary","data-testid":"rsvp-form-input-".concat(e.id)}),e.label,e.required&&(0,z.jsx)("span",{className:"text-destructive",children:"*"})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("label",{className:"text-xs font-medium text-muted-foreground",children:[e.label,e.required&&(0,z.jsx)("span",{className:"text-destructive",children:" *"})]}),"textarea"===e.type?(0,z.jsx)("textarea",{rows:3,value:W[e.id]||"",onChange:t=>Z(a=>(0,r.A)((0,r.A)({},a),{},{[e.id]:t.target.value})),className:"mt-1.5 w-full rounded-md border border-input bg-background px-3 py-2 text-sm","data-testid":"rsvp-form-input-".concat(e.id)}):"select"===e.type?(0,z.jsxs)("select",{value:W[e.id]||"",onChange:t=>Z(a=>(0,r.A)((0,r.A)({},a),{},{[e.id]:t.target.value})),className:"mt-1.5 w-full h-10 rounded-md border border-input bg-background px-3 text-sm","data-testid":"rsvp-form-input-".concat(e.id),children:[(0,z.jsx)("option",{value:"",children:"Select\u2026"}),(e.options||[]).map(e=>(0,z.jsx)("option",{value:e,children:e},e))]}):(0,z.jsx)("input",{type:"number"===e.type?"number":"text",value:W[e.id]||"",onChange:t=>Z(a=>(0,r.A)((0,r.A)({},a),{},{[e.id]:t.target.value})),className:"mt-1.5 w-full h-10 rounded-md border border-input bg-background px-3 text-sm","data-testid":"rsvp-form-input-".concat(e.id)})]})},e.id)),(0,z.jsxs)("div",{className:"flex gap-2 justify-end pt-1",children:[(0,z.jsx)(w.$,{variant:"outline",className:"rounded-full",onClick:()=>U(!1),"data-testid":"rsvp-form-cancel",children:"Cancel"}),(0,z.jsx)(w.$,{className:"rounded-full",disabled:O,onClick:()=>{const e=(p.rsvp_form||[]).filter(e=>{var t;return e.required&&("checkbox"===e.type?!W[e.id]:!String(null!==(t=W[e.id])&&void 0!==t?t:"").trim())});e.length?C.oR.error("Please fill in: ".concat(e.map(e=>e.label).join(", "))):K(W)},"data-testid":"rsvp-form-submit",children:O?(0,z.jsx)(d.A,{className:"h-4 w-4 animate-spin"}):"Confirm RSVP"})]})]})})]})}}}]); 3//# sourceMappingURL=2642.682bdc4d.chunk.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.