1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4908],{4908:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var s=a(31328),r=a(29196),i=a(27480),l=a(52084),n=a(30874);let d=(0,n.A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]),o=(0,n.A)("building",[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]]);var c=a(95767),m=a(28665),x=a(38861),u=a(45341);let h=["Founder","CTO","Product Manager","VP Engineering","VP Platform","CDO","Other"],p=["Idea / MVP","Scaling Up","Established Enterprise"],g=["Launching","Scaling features","Improving infrastructure","Integrating AI","Reducing costs"],b={type:"spring",stiffness:300,damping:20},f=({rule:e,onSubmit:t,onDismiss:a,isVisible:n})=>{let f,[y,j]=(0,r.useState)({}),[v,N]=(0,r.useState)({}),[w,k]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let t=e.formConfig.fields.some(e=>["role","companyStage","focusAreas"].includes(e.id));return n&&t&&"popup"===e.formType?(document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"):(document.body.style.overflow="unset",document.body.style.position="",document.body.style.width=""),()=>{document.body.style.overflow="unset",document.body.style.position="",document.body.style.width=""}},[n,e]);let C=(e,t)=>{j(a=>({...a,[e]:t})),v[e]&&N(t=>({...t,[e]:""}))},A=async a=>{a.preventDefault(),k(!0);let s={};if(e.formConfig.fields.forEach(e=>{let t=((e,t)=>{if(e.required){if("checkbox"===e.type&&Array.isArray(t)){if(0===t.length)return`Please select at least one ${e.label.toLowerCase()}`}else if(!t||""===t.toString().trim())return`${e.label} is required`}if("email"===e.type&&t&&""!==t.toString().trim()&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))return"Please enter a valid email address";if(e.validation&&t&&""!==t.toString().trim()){if(e.validation.minLength&&t.length<e.validation.minLength)return`${e.label} must be at least ${e.validation.minLength} characters`;if(e.validation.maxLength&&t.length>e.validation.maxLength)return`${e.label} must be less than ${e.validation.maxLength} characters`;if(e.validation.pattern&&!new RegExp(e.validation.pattern).test(t))return`Please enter a valid ${e.label.toLowerCase()}`}return null})(e,y[e.id]);t&&(s[e.id]=t)}),Object.keys(s).length>0){N(s),k(!1);return}try{await t(y)}catch(e){console.error("Form submission error:",e),N({general:"Something went wrong. Please try again."})}finally{k(!1)}},S=e=>{let t="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-transparent";switch(e.type){case"select":return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("select",{id:e.id,value:y[e.id]||"",onChange:t=>C(e.id,t.target.value),className:`${t} appearance-none`,required:e.required,children:[(0,s.jsx)("option",{value:"",children:e.placeholder||`Select ${e.label}`}),e.options?.map(e=>(0,s.jsx)("option",{value:e,children:e},e))]}),(0,s.jsx)(c.A,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"}),v[e.id]&&(0,s.jsx)("p",{className:"mt-1 text-sm text-red-600",children:v[e.id]})]},e.id);case"textarea":return(0,s.jsxs)("div",{children:[(0,s.jsx)("textarea",{id:e.id,placeholder:e.placeholder,value:y[e.id]||"",onChange:t=>C(e.id,t.target.value),className:`${t} min-h-[80px] resize-y`,required:e.required}),v[e.id]&&(0,s.jsx)("p",{className:"mt-1 text-sm text-red-600",children:v[e.id]})]},e.id);case"checkbox":return(0,s.jsxs)("div",{children:[e.label&&(0,s.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:[e.label,e.required&&(0,s.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,s.jsx)("div",{className:"space-y-2",children:e.options?.map(t=>(0,s.jsxs)("label",{className:"flex items-center space-x-2",children:[(0,s.jsx)("input",{type:"checkbox",checked:(y[e.id]||[]).includes(t),onChange:a=>{let s=y[e.id]||[],r=a.target.checked?[...s,t]:s.filter(e=>e!==t);C(e.id,r)},className:"w-4 h-4 text-teal-600 border-gray-300 rounded focus:ring-teal-500"}),(0,s.jsx)("span",{className:"text-sm text-gray-700",children:t})]},t))}),v[e.id]&&(0,s.jsx)("p",{className:"mt-1 text-sm text-red-600",children:v[e.id]})]},e.id);default:return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("div",{className:"relative",children:[e.label&&(0,s.jsxs)("label",{htmlFor:e.id,className:"block text-sm font-medium text-gray-700 mb-1",children:[e.label,e.required&&(0,s.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(e=>{switch(e){case"email":return(0,s.jsx)(i.A,{className:"w-4 h-4 text-gray-400"});case"text":return(0,s.jsx)(l.A,{className:"w-4 h-4 text-gray-400"});case"phone":return(0,s.jsx)(d,{className:"w-4 h-4 text-gray-400"});default:return(0,s.jsx)(o,{className:"w-4 h-4 text-gray-400"})}})(e.type)}),(0,s.jsx)("input",{type:e.type,id:e.id,placeholder:e.placeholder,value:y[e.id]||"",onChange:t=>C(e.id,t.target.value),className:`${t} pl-10`,required:e.required})]})]}),v[e.id]&&(0,s.jsx)("p",{className:"mt-1 text-sm text-red-600",children:v[e.id]})]},e.id)}},q={container:{popup:"fixed inset-0 z-50 flex items-center justify-center p-4","slide-in":"fixed bottom-4 right-4 z-50 max-w-sm","floating-bar":"fixed bottom-0 left-0 right-0 z-50 rounded-none",inline:"w-full max-w-md mx-auto"}[e.formType],form:`bg-white rounded-lg shadow-2xl border border-gray-200 ${{light:"bg-white text-gray-900",dark:"bg-gray-900 text-white border-gray-700",brand:"bg-white text-gray-900 border-teal-200"}[e.formConfig.styling.theme]}`},P="slide"===(f=e.formConfig.styling.animation??"fade")?{initial:"slide-in"===e.formType?{x:400,opacity:0}
1:{y:100,opacity:0},animate:{x:0,y:0,opacity:1,transition:{type:"tween",duration:.3}},exit:"slide-in"===e.formType?{x:400,opacity:0,transition:{type:"tween",duration:.25}}:{y:100,opacity:0,transition:{type:"tween",duration:.25}}}:"bounce"===f?{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:b},exit:{scale:0,opacity:0,transition:{type:"tween",duration:.2}}}:{initial:{opacity:0},animate:{opacity:1,transition:{type:"tween",duration:.25}},exit:{opacity:0,transition:{type:"tween",duration:.2}}},M=e=>{switch(e.id){case"role":return(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"block text-base font-semibold text-gray-900 mb-4",children:["Your Role ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:h.map(t=>(0,s.jsxs)("label",{className:"flex items-center p-3 rounded-xl border-2 border-gray-100 hover:border-blue-200 hover:bg-blue-50/50 transition-all duration-200 cursor-pointer group",children:[(0,s.jsx)("input",{type:"radio",name:"role",value:t,checked:y[e.id]===t,onChange:t=>C(e.id,t.target.value),className:"w-5 h-5 text-blue-600 border-gray-300 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-white"}),(0,s.jsx)("span",{className:"ml-3 text-gray-700 font-medium group-hover:text-gray-900",children:t})]},t))}),v[e.id]&&(0,s.jsxs)("p",{className:"text-red-500 text-sm mt-2 flex items-center",children:[(0,s.jsx)("span",{className:"w-1 h-1 bg-red-500 rounded-full mr-2"}),v[e.id]]})]},e.id);case"companyStage":return(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"block text-base font-semibold text-gray-900 mb-4",children:["Company Stage ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsxs)("select",{value:y[e.id]||"",onChange:t=>C(e.id,t.target.value),className:"w-full px-4 py-4 border-2 border-gray-200 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all duration-200 text-base",children:[(0,s.jsx)("option",{value:"",children:"Select company stage"}),p.map(e=>(0,s.jsx)("option",{value:e,children:e},e))]}),v[e.id]&&(0,s.jsxs)("p",{className:"text-red-500 text-sm mt-2 flex items-center",children:[(0,s.jsx)("span",{className:"w-1 h-1 bg-red-500 rounded-full mr-2"}),v[e.id]]})]},e.id);case"focusAreas":return(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"block text-base font-semibold text-gray-900 mb-4",children:["What are you focusing on right now? ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:g.map(t=>(0,s.jsxs)("label",{className:"flex items-center p-3 rounded-xl border-2 border-gray-100 hover:border-blue-200 hover:bg-blue-50/50 transition-all duration-200 cursor-pointer group",children:[(0,s.jsx)("input",{type:"checkbox",checked:(y[e.id]||[]).includes(t),onChange:a=>{let s=y[e.id]||[],r=a.target.checked?[...s,t]:s.filter(e=>e!==t);C(e.id,r)},className:"w-5 h-5 text-blue-600 border-gray-300 rounded focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-white"}),(0,s.jsx)("span",{className:"ml-3 text-gray-700 font-medium group-hover:text-gray-900",children:t})]},t))}),v[e.id]&&(0,s.jsxs)("p",{className:"text-red-500 text-sm mt-2 flex items-center",children:[(0,s.jsx)("span",{className:"w-1 h-1 bg-red-500 rounded-full mr-2"}),v[e.id]]})]},e.id);case"email":return(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"block text-base font-semibold text-gray-900 mb-4",children:["Email"," ",e.required?(0,s.jsx)("span",{className:"text-red-500",children:"*"}):(0,s.jsx)("span",{className:"text-gray-500 text-sm font-normal",children:"(optional)"})]}),(0,s.jsx)("input",{type:"email",required:e.required,value:y[e.id]||"",onChange:t=>C(e.id,t.target.value),placeholder:"[email protected]",className:"w-full px-4 py-4 border-2 border-gray-200 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all duration-200 text-base"}),v[e.id]&&(0,s.jsxs)("p",{className:"text-red-500 text-sm mt-2 flex items-center",children:[(0,s.jsx)("span",{className:"w-1 h-1 bg-red-500 rounded-full mr-2"}),v[e.id]]}),(0,s.jsx)("p",{className:"text-gray-500 text-sm mt-2",children:"For follow-up or showing personalized results"})]},e.id);default:return S(e)}},_=()=>e.formConfig.fields.some(e=>["role","companyStage","focusAreas"].includes(e.id))?(0,s.jsxs)(x.P.div,{variants:P,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"bg-white rounded-3xl shadow-2xl w-full max-w-4xl mx-auto max-h-[85vh] sm:max-h-[80vh] overflow-hidden flex flex-col",children:[(0,s.jsx)("div",{className:"flex-shrink-0 bg-gradient-to-r from-blue-50 to-purple-50 border-b border-gray-100 p-4 sm:p-6 lg:p-8 rounded-3xl",children:(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{className:"flex-1 pr-4",children:[(0,s.jsx)("h2",{className:"turn-off-bottom-padding text-3xl font-bold text-gray-900 mb-2",children:e.formConfig.title}),(0,s.jsx)("p",{className:"turn-off-bottom-padding text-lg text-gray-600",children:e.formConfig.description})]}),(0,s.jsx)("button",{onClick:()=>a("close_button"),className:"flex-shrink-0 p-2 hover:bg-white/80 rounded-full transition-all duration-200 hover:scale-110",type:"button","aria-label":"Close",children:(0,s.jsx)(m.A,{className:"w-6 h-6 text-gray-500"})})]})}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,s.jsxs)("form",{onSubmit:A,className:"p-4 sm:p-6 lg:p-8 space-y-6 sm:space-y-8",children:[e.formConfig.fields.map(M),v.general&&(0,s.jsxs)("p",{className:"text-red-500 text-sm mt-2 flex items-center",children:[(0,s.jsx)("span",{className:"w-1 h-1 bg-red-500 rounded-full mr-2"}),v.general]}),(0,s.jsx)("div",{className:"pt-4",children:(0,s.jsx)("button",{type:"submit",disabled:w,className:"w-full bg-gradient-to-r from-synergy_blue to-sea_blue text-white font-semibold py-4 px-6 rounded-xl transition-all duration-200 transform hover:scale-[1.02] disabled:opacity-50 disabled:cursor-not-allowed disabled:transform-none text-base shadow-lg hover:shadow-xl",children:w?(0,s.jsxs)("span",{className:"flex items-center justify-center",children:[(0,s.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Submitting..."]}):e.formConfig.submitText})})]})})]}):(0,s.jsx)(x.P.div,{className:q.form,variants:P,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},children:(0,s.jsxs)("div",{className:"p-6",children:[(0,s.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:e.formConfig.title}),(0,s.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:e.formConfig.description})]}),(0,s.jsx)("button",{onClick:()=>a("close_button"),className:"text-gray-400 hover:text-gray-600 transition-colors",type:"button",children:(0,s.jsx)(m.A,{className:"w-5 h-5"})})]}),(0,s.jsxs)("form",{onSubmit:A,className:"space-y-4",children:[e.formConfig.fields.map(S),v.general&&(0,s.jsx)("p",{className:"text-sm text-red-600",children:v.general}),(0,s.jsx)("button",{type:"submit",disabled:w,className:"w-full bg-teal-600 hover:bg-teal-700 disabled:bg-teal-400 text-white font-medium py-2 px-4 roun
1ded-md transition-colors duration-200",children:w?"Submitting...":e.formConfig.submitText})]}),"inline"!==e.formType&&(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-4 text-center",children:"We respect your privacy. Unsubscribe at any time."})]})});return"popup"===e.formType?e.formConfig.fields.some(e=>["role","companyStage","focusAreas"].includes(e.id))?(0,s.jsx)(u.AnimatePresence,{children:n&&(0,s.jsxs)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-4 sm:p-6",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:()=>a("background_click")}),(0,s.jsx)("div",{className:"relative",children:_()})]})}):(0,s.jsx)(u.AnimatePresence,{children:n&&(0,s.jsxs)(x.P.div,{className:q.container,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:e=>{e.target===e.currentTarget&&a("background_click")},children:[(0,s.jsx)("div",{className:"bg-black bg-opacity-50 absolute inset-0"}),(0,s.jsx)("div",{className:"relative z-10 w-full max-w-md",children:_()})]})}):(0,s.jsx)(u.AnimatePresence,{children:n&&(0,s.jsx)("div",{className:q.container,children:"slide-in"===e.formType?(0,s.jsx)(x.P.div,{variants:P,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"bg-white rounded-2xl shadow-2xl border border-gray-200 max-w-sm w-full",children:(0,s.jsxs)("div",{className:"p-6",children:[(0,s.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-1",children:e.formConfig.title}),(0,s.jsx)("p",{className:"text-sm text-gray-600",children:e.formConfig.description})]}),(0,s.jsx)("button",{onClick:()=>a("close_button"),className:"text-gray-400 hover:text-gray-600 transition-colors p-1",type:"button",children:(0,s.jsx)(m.A,{className:"w-4 h-4"})})]}),(0,s.jsxs)("form",{onSubmit:A,className:"space-y-3",children:[e.formConfig.fields.map(e=>(0,s.jsxs)("div",{children:[e.label&&(0,s.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:[e.label,e.required&&(0,s.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,s.jsx)("input",{type:e.type,placeholder:e.placeholder,value:y[e.id]||"",onChange:t=>C(e.id,t.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-transparent text-sm",required:e.required}),v[e.id]&&(0,s.jsx)("p",{className:"mt-1 text-xs text-red-600",children:v[e.id]})]},e.id)),v.general&&(0,s.jsx)("p",{className:"text-xs text-red-600",children:v.general}),(0,s.jsx)("button",{type:"submit",disabled:w,className:"w-full bg-gradient-to-r from-synergy_blue to-sea_blue hover:from-synergy_blue/90 hover:to-sea_blue/90 disabled:opacity-50 text-white font-medium py-2 px-4 rounded-lg transition-all duration-200 text-sm",children:w?"Submitting...":e.formConfig.submitText})]}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-3 text-center",children:"We respect your privacy. Unsubscribe at any time."})]})}):_()})})}},27480:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(30874).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},28665:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(30874).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]);
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.