1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[350],{78707:function(e,s,t){Promise.resolve().then(t.bind(t,68251))},68251:function(e,s,t){"use strict";t.d(s,{CalculatorClient:function(){return E}});var n=t(57437),r=t(2265),a=t(99376),i=t(19255),l=t(24287),o=t(86622),c=t(59022),u=t(53459),d=t(25361),m=t(93529),p=t(37713),x=t(39702),h=t(29935),g=t(3289),f=t(36640),b=t(25692),N=t(46747),v=t(87928),j=t(91230),w=t(73756);function y(e){let{icon:s,label:t,hint:r,extracted:a,children:i}=e;return(0,n.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1.5 text-[11px] font-medium tracking-wide uppercase text-white/55",children:[(0,n.jsx)("span",{className:"text-white/45",children:s}),t,a&&(0,n.jsx)(l.Z,{size:13,className:"text-emerald-400","aria-label":"Filled from URL"})]}),i,r&&(0,n.jsx)("span",{className:"text-[11px] text-white/35 leading-snug",children:r})]})}let k="w-full rounded-lg border bg-white/[0.03] px-3 py-2 text-white text-base placeholder-white/25 focus:outline-none transition",C="border-white/[0.08] focus:border-[#7D55D2] focus:ring-1 focus:ring-[#7D55D2]/40",D="border-[#AE8BFA]/60 ring-2 ring-[#AE8BFA]/25 shadow-[0_0_18px_-2px_rgba(174,139,250,0.35)] focus:border-[#AE8BFA] focus:ring-[#AE8BFA]/50";function A(e){let{icon:s,label:t,hint:r,value:a,onChange:i,min:l=0,max:o=1e5,placeholder:c,extracted:u,needsAttention:d}=e;return(0,n.jsx)(y,{icon:s,label:t,hint:r,extracted:u,children:(0,n.jsx)("input",{type:"number",min:l,max:o,value:0===a?"":a,placeholder:c,onChange:e=>{let s=""===e.target.value?0:Number(e.target.value);Number.isNaN(s)||i(Math.min(o,Math.max(l,s)))},className:"".concat(k," ").concat(d?D:C)})})}function S(e){let{icon:s,label:t,value:r,onChange:a,maxLength:i=80,placeholder:l,extracted:o,needsAttention:c}=e;return(0,n.jsx)(y,{icon:s,label:t,extracted:o,children:(0,n.jsx)("input",{type:"text",value:r,placeholder:l,maxLength:i,onChange:e=>a(e.target.value),className:"".concat(k," ").concat(c?D:C)})})}function E(){let e=(0,a.useRouter)(),[s,t]=(0,r.useState)({eventName:"",sessions:0,speakers:0,sponsors:0,currentClips:0,currentLinkedInPosts:0,currentNewsletters:0,currentRecaps:0}),y=e=>s=>t(t=>({...t,[e]:s})),[k,C]=(0,r.useState)({value:"",status:"idle",error:"",confidence:null,notes:"",extractedFields:null}),D=async()=>{let e=k.value.trim();if(e&&"loading"!==k.status){C(e=>({...e,status:"loading",error:""}));try{let s=await fetch("/api/calculator-fetch-event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),n=await s.json();if(!s.ok||!n.success){C(e=>({...e,status:"error",error:n.error||"Extraction failed"}));return}let r=n.data,a={};r.eventName&&r.eventName.trim()&&(a.eventName=r.eventName.trim()),r.sessions>0&&(a.sessions=r.sessions),r.speakers>0&&(a.speakers=r.speakers),r.sponsors>0&&(a.sponsors=r.sponsors),t(e=>({...e,...a})),C(e=>({...e,status:"success",confidence:r.confidence,notes:r.notes,extractedFields:Object.keys(a)}))}catch(e){C(e=>({...e,status:"error",error:"Network error. Try again or fill in manually."}))}}},E="success"===k.status,z=e=>{var s;return E&&(null===(s=k.extractedFields)||void 0===s?void 0:s.includes(e))},Z=(e,s)=>{var t;return!(!E||(null===(t=k.extractedFields)||void 0===t?void 0:t.includes(e)))&&("eventName"===e?!String(s).trim():0===Number(s))},[F,M]=(0,r.useState)({email:"",honeypot:"",status:"idle",error:""}),L=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(F.email),R=L&&s.sessions>0&&s.speakers>0&&"loading"!==F.status,I=L?s.sessions<=0?"Add the number of sessions to continue.":s.speakers<=0?"Add the number of speakers to continue.":null:null,P=async()=>{if(R){M(e=>({...e,status:"loading",error:""}));try{let t=(0,w.M5)(s),n=await fetch("/api/calculator-lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:F.email,eventName:s.eventName,inputs:s,outputs:t,honeypot:F.honeypot,timestamp:new Date().toISOString()})});if(n.ok){let t=(0,w.DQ)(s);e.push("/resources/event-roi-calculator/results?".concat(t.toString()));return}429===n.status?M(e=>({...e,status:"error",error:"Too many submissions. Try again in an hour."})):M(e=>({...e,status:"error",error:"Something went wrong. Try again or email [email protected] directly."}))}catch(e){M(e=>({...e,status:"error",error:"Network error. Try again."}))}}};return(0,n.jsxs)("div",{className:"relative z-10 max-w-3xl mx-auto px-6 pb-16",children:[(0,n.jsxs)("div",{className:"rounded-2xl border border-[#AE8BFA]/[0.12] bg-[#AE8BFA]/[0.04] backdrop-blur-xl p-6 sm:p-8 mb-8",children:[(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,n.jsx)(o.Z,{size:18,className:"text-[#AE8BFA]"}),(0,n.jsx)("h3",{className:"text-base font-semibold text-white",children:"Auto-fill from your event URL"})]}),(0,n.jsx)("p",{className:"text-sm text-white/55 mb-4",children:"Paste your event website or agenda
1URL and we will extract the numbers for you. You can edit any field after."}),(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,n.jsxs)("div",{className:"relative flex-1",children:[(0,n.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-white/40 pointer-events-none",children:(0,n.jsx)(c.Z,{size:16})}),(0,n.jsx)("input",{type:"url",placeholder:"https://yourevent.com or agenda page",value:k.value,onChange:e=>C(s=>({...s,value:e.target.value,status:"idle"})),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),D())},maxLength:1e3,className:"w-full pl-9 pr-3 py-2.5 rounded-lg border border-white/[0.1] bg-white/[0.04] text-white placeholder-white/30 focus:border-[#7D55D2] focus:outline-none focus:ring-1 focus:ring-[#7D55D2]/40"})]}),(0,n.jsx)("button",{onClick:D,disabled:!k.value.trim()||"loading"===k.status,className:"inline-flex items-center justify-center gap-2 rounded-lg bg-[#7D55D2] hover:bg-[#8E68DC] disabled:bg-white/10 disabled:text-white/30 text-white font-semibold px-5 py-2.5 transition whitespace-nowrap",children:"loading"===k.status?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{size:16,className:"animate-spin"}),"Extracting..."]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Z,{size:16}),"Auto-fill"]})})]}),"success"===k.status&&(0,n.jsxs)("div",{className:"mt-3 flex items-center gap-2 text-sm text-emerald-400",children:[(0,n.jsx)(l.Z,{size:16,className:"flex-shrink-0"}),(0,n.jsxs)("span",{children:["Auto-fill complete (confidence: ",k.confidence,")"]})]}),"error"===k.status&&k.error&&(0,n.jsxs)("div",{className:"mt-3 flex items-start gap-2 text-sm text-[#EA429D]",children:[(0,n.jsx)(d.Z,{size:16,className:"flex-shrink-0 mt-0.5"}),(0,n.jsx)("span",{children:k.error})]})]}),(0,n.jsx)("div",{className:"border-t border-white/[0.06] pt-6 mb-5",children:(0,n.jsx)("div",{className:"text-[11px] font-medium uppercase tracking-wide text-white/45",children:"Or fill in manually"})}),(0,n.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[(0,n.jsx)(S,{icon:(0,n.jsx)(m.Z,{size:13}),label:"Event name",value:s.eventName,onChange:y("eventName"),placeholder:"Your conference name",extracted:z("eventName"),needsAttention:Z("eventName",s.eventName)}),(0,n.jsx)(A,{icon:(0,n.jsx)(p.Z,{size:13}),label:"Sessions per event",hint:"Keynotes + breakouts combined",value:s.sessions,onChange:y("sessions"),placeholder:"e.g. 30",extracted:z("sessions"),needsAttention:Z("sessions",s.sessions)}),(0,n.jsx)(A,{icon:(0,n.jsx)(x.Z,{size:13}),label:"Speakers",hint:"Including panelists",value:s.speakers,onChange:y("speakers"),placeholder:"e.g. 50",extracted:z("speakers"),needsAttention:Z("speakers",s.speakers)}),(0,n.jsx)(A,{icon:(0,n.jsx)(h.Z,{size:13}),label:"Sponsors",hint:"Logo sponsors + exhibitors",value:s.sponsors,onChange:y("sponsors"),placeholder:"e.g. 10",extracted:z("sponsors"),needsAttention:Z("sponsors",s.sponsors)})]}),(0,n.jsx)(i.fC,{type:"single",collapsible:!0,className:"mt-6",children:(0,n.jsxs)(i.ck,{value:"current",className:"border-t border-white/[0.06] pt-2",children:[(0,n.jsx)(i.h4,{children:(0,n.jsxs)(i.xz,{className:"group w-full flex items-center justify-between py-3 text-left",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"text-sm font-medium text-white/85",children:["Currently produced per event",(0,n.jsx)("span",{className:"ml-2 text-[11px] uppercase tracking-wide text-white/40",children:"Optional"})]}),(0,n.jsx)("div",{className:"text-xs text-white/45 mt-0.5",children:"Helps us show a more accurate gap. Skip if you do not know."})]}),(0,n.jsx)(g.Z,{size:18,className:"text-white/45 transition-transform group-data-[state=open]:rotate-180"})]})}),(0,n.jsx)(i.VY,{className:"overflow-hidden",children:(0,n.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-
15 pt-3 pb-2",children:[(0,n.jsx)(A,{icon:(0,n.jsx)(f.Z,{size:13}),label:"Clips",value:s.currentClips,onChange:y("currentClips")}),(0,n.jsx)(A,{icon:(0,n.jsx)(b.Z,{size:13}),label:"LinkedIn posts",value:s.currentLinkedInPosts,onChange:y("currentLinkedInPosts")}),(0,n.jsx)(A,{icon:(0,n.jsx)(N.Z,{size:13}),label:"Newsletter editions",value:s.currentNewsletters,onChange:y("currentNewsletters")}),(0,n.jsx)(A,{icon:(0,n.jsx)(v.Z,{size:13}),label:"Recap articles",value:s.currentRecaps,onChange:y("currentRecaps")})]})})]})})]}),(0,n.jsxs)("div",{className:"rounded-2xl border border-[#7D55D2]/30 bg-gradient-to-br from-[#7D55D2]/[0.08] to-transparent p-6 sm:p-8",children:[(0,n.jsx)("h3",{className:"text-xl font-semibold text-white mb-2",children:"See your untapped content potential"}),(0,n.jsx)("p",{className:"text-sm text-white/55 mb-5",children:"Enter your email to unlock the full breakdown. We will email you a copy and follow up within 24 hours."}),(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,n.jsx)("input",{type:"email",placeholder:"[email protected]",value:F.email,onChange:e=>M(s=>({...s,email:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&R&&(e.preventDefault(),P())},className:"flex-1 rounded-lg border border-white/[0.1] bg-white/[0.04] px-4 py-3 text-white placeholder-white/30 focus:border-[#7D55D2] focus:outline-none focus:ring-1 focus:ring-[#7D55D2]/40"}),(0,n.jsx)("input",{type:"text",name:"company_url",value:F.honeypot,onChange:e=>M(s=>({...s,honeypot:e.target.value})),tabIndex:-1,autoComplete:"off",style:{position:"absolute",left:"-9999px",height:0,width:0,opacity:0},"aria-hidden":"true"}),(0,n.jsx)("button",{onClick:P,disabled:!R,className:"inline-flex items-center justify-center gap-2 rounded-lg bg-[#EE9004] hover:bg-[#F5A52A] disabled:bg-white/10 disabled:text-white/30 text-white font-semibold px-6 py-3 transition whitespace-nowrap",children:"loading"===F.status?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{size:16,className:"animate-spin"}),"Loading..."]}):(0,n.jsxs)(n.Fragment,{children:["See my results",(0,n.jsx)(j.Z,{size:16})]})})]}),I&&L&&(0,n.jsxs)("div",{className:"mt-3 flex items-start gap-2 text-xs text-white/55",children:[(0,n.jsx)(d.Z,{size:14,className:"flex-shrink-0 mt-0.5"}),(0,n.jsx)("span",{children:I})]}),"error"===F.status&&F.error&&(0,n.jsxs)("div",{className:"mt-3 flex items-start gap-2 text-sm text-[#EA429D]",children:[(0,n.jsx)(d.Z,{size:16,className:"flex-shrink-0 mt-0.5"}),(0,n.jsx)("span",{children:F.error})]})]})]})}},73756:function(e,s,t){"use strict";t.d(s,{$C:function(){return u},DQ:function(){return c},LZ:function(){return a},M5:function(){return r},ZY:function(){return l},tX:function(){return i}});let n=e=>e>0?Math.max(1,Math.ceil(e/4)):0;function r(e){let s=Number(e.sessions)||0,t=Number(e.speakers)||0;e.sponsors;let r=Number(e.currentClips)||0,a=Number(e.currentLinkedInPosts)||0,i=Number(e.currentNewsletters)||0,l=Number(e.currentRecaps)||0,o=4*s,c=3*s,u=1*s,d=5*s,m=n(s),p=1*t,x=1*s,h=12*s,g=1*s,f=Math.max(0,d-a),b=r+l+a+i,N=o+c+u+d+m+p+x+h+g,v=1500*f,j=250*t,w=v+j;return{possibleClips:o,possibleQuoteCards:c,possibleRecaps:u,possiblePosts:d,possibleNewsletters:m,possibleSpeakerKits:p,possibleArticles:x,possibleHookTitles:h,possibleVideoPages:g,gapClips:Math.max(0,o-r),gapQuoteCards:c,gapRecaps:Math.max(0,u-l),gapPosts:f,gapNewsletters:Math.max(0,m-i),gapSpeakerKits:p,gapArticles:x,gapHookTitles:h,gapVideoPages:g,totalCurrent:b,totalPossible:N,totalGap:Math.max(0,N-b),missedLinkedInImpressions:v,missedSpeakerAmplification:j,totalReachLeftBehind:w,paidMediaEquivalent:w/1e3*8,agencyCostEstimate:50*o+30*c+400*u+500*p,inHouseAnnualCost:24e4,contentRunwayMonths:N>0?Math.max(1,Math.round(N/90)):0}}function a(e){return!e||e<1?"":"".concat(e," month").concat(1===e?"":"s")}let i=e=>new Intl.NumberFormat("en-US").format(Math.max(0,Math.round(Number(e)||0))),l=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(Math.max(0,Math.round(Number(e)||0))),o=["eventName","sessions","speakers","sponsors","currentClips","currentLinkedInPosts","currentNewsletters","currentRecaps"];function c(e){let s=new URLSearchParams;for(let t of o){let n=e[t];null!=n&&""!==n&&0!==n&&s.set(t,String(n))}return s}function u(e){let s=s=>e&&"function"==typeof e.get?e.get(s):null==e?void 0:e[s];return{eventName:s("eventName")||"",sessions:Number(s("sessions")||0),speakers:Number(s("speakers")||0),sponsors:Number(s("sponsors")||0),currentClips:Number(s("currentClips")||0),currentLinkedInPosts:Number(s("currentLinkedInPosts")||0),currentNewsletters:Number(s("currentNewsletters")||0),currentRecaps:Number(s("currentRecaps")||0)}}}},function(e){e.O(0,[4380,1978,2971,2117,1744],function(){return e(e.s=78707)}),_N_E=e.O()}]);
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.