1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0ca40-0380-7730-83f3-6de863f55845")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,241345,e=>{"use strict";var a=e.i(660747),t=e.i(299971),s=e.i(21160);let r=t.forwardRef(({className:e,type:t,...r},l)=>(0,a.jsx)("input",{type:t,className:(0,s.cn)("text-bodyPrimary flex h-9 w-full rounded-md border border-cardStroke bg-cardBackground px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-bodyPrimary placeholder:text-subtitle focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-hAccent disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:l,...r}));r.displayName="Input",e.s(["Input",0,r])},642888,e=>{"use strict";var a=e.i(660747),t=e.i(299971),s=e.i(608724),r=t.forwardRef((e,t)=>(0,a.jsx)(s.Primitive.label,{...e,ref:t,onMouseDown:a=>{a.target.closest("button, input, select, textarea")||(e.onMouseDown?.(a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));r.displayName="Label";var l=e.i(294237),i=e.i(21160);let n=(0,l.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-subtitle"),c=t.forwardRef(({className:e,...t},s)=>(0,a.jsx)(r,{ref:s,className:(0,i.cn)(n(),e),...t}));c.displayName=r.displayName,e.s(["Label",0,c],642888)},844440,e=>{"use strict";var a=e.i(660747),t=e.i(299971),s=e.i(695510);let r=(0,t.forwardRef)(function({children:e,className:t,type:r="button",hover:l=!1,disabled:i=!1,onClick:n,canHover:c=!0,variation:o,form:d},m){return(0,a.jsx)("button",{type:r,disabled:i,onClick:n,className:(0,s.twMerge)("my-3 font-secondary text-sm text-primary h-[32px] w-[145px] button-normal",t,l&&"button-hover",!c&&"button-hover-disable",i&&"button-disabled"),ref:m,form:d,children:e})});e.s(["Button",0,r])},687346,e=>{"use strict";var a=e.i(660747),t=e.i(695510);e.s(["TextArea",0,function({className:e="",id:s="",value:r="",placeholder:l="",onChange:i=()=>{},disabled:n=!1}){return(0,a.jsx)("textarea",{className:(0,t.twMerge)("hcl-form-input h-64 overflow-y-auto resize-none",e),id:s,value:r,placeholder:l,onChange:i,disabled:n})}])},365287,e=>{"use strict";let a=(0,e.i(419412).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,a])},106772,e=>{"use strict";var a=e.i(365287);e.s(["CheckCircle2",()=>a.default])},273687,e=>{"use strict";var a=e.i(614419);async function t(e){try{let a={headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(e)},t=await fetch("/api/contact",a);if(200!==t.status){let e=await t.json().catch(()=>({}));throw Error(e.message||t.statusText)}return t.json()}catch(e){throw(0,a.secureError)(e),e}}e.s(["sendForm",0,t])},849398,e=>{"use strict";var a=e.i(660747),t=e.i(299971),s=e.i(695510),r=e.i(783122),l=e.i(241345),i=e.i(642888),n=e.i(282460);e.i(112805);var c=e.i(687346),o=e.i(225384),d=e.i(213596),m=e.i(432808),h=e.i(273687),u=e.i(106772),b=e.i(692670);let x=({label:e,children:t,error:s,required:r=!1})=>(0,a.jsx)("div",{className:"space-y-1",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-4 items-start",children:[(0,a.jsxs)(i.Label,{className:"text-subtitle text-base pt-2",children:[e,r&&" *"]}),(0,a.jsxs)("div",{className:"w-full",children:[t,s&&(0,a.jsx)("p",{className:"text-sm text-salmon mt-1",children:s})]})]})});e.s(["ContactFormV2",0,function({className:e="",onSubmit:i=h.sendForm,preSelectedService:p="",preSelectedServices:g=[]}){let[f,v]=(0,t.useState)(!1),[y,N]=(0,t.useState)(!1),[w,j]=(0,t.useState)(""),k=(0,t.useRef)(null),C=(0,m.useSession)(),A=C?.data;(0,t.useEffect)(()=>{w&&k.current&&(k.current.scrollIntoView({behavior:"smooth",block:"center"}),k.current.focus())},[w]);let S=[{id:"smart-contract-assessment",label:"Smart Contract Assessment"},{id:"blockchain-layer-1-assessment",label:"Blockchain Layer 1 Assessment"},{id:"code-security-audit",label:"Code Security Audit"},{id:"web-application-penetration-testing",label:"Web Application Penetration Testing"}
1,{id:"cloud-infrastructure-penetration-testing",label:"Cloud Infrastructure Penetration Testing"},{id:"red-team-exercises",label:"Red Team Exercises"},{id:"ai-red-teaming",label:"AI Red Teaming"},{id:"ai-security-assessment",label:"AI Security Assessment"}],T=[{id:"ai-advisory",label:"AI Advisory"},{id:"blockchain-architecture-assessment",label:"Blockchain Architecture Assessment"},{id:"custody-key-management-assessment",label:"Custody and Key Management Assessment"},{id:"compliance-readiness",label:"Compliance Readiness"},{id:"risk-assessment",label:"Risk Assessment"},{id:"technical-due-diligence",label:"Technical Due Diligence"},{id:"technical-training",label:"Technical Training"}],q=Object.fromEntries([...S,...T].map(e=>[e.label.toLowerCase(),e.id])),B=(g.length>0?g:p?[p]:[]).map(e=>q[e.toLowerCase()]).filter(Boolean),E=(0,o.useFormik)({initialValues:{firstName:A?.user?.firstName||"",lastName:A?.user?.lastName||"",email:A?.user?.email||"",phone:A?.user?.phone||"",organization:A?.user?.client?.name||"",website:A?.user?.client?.website||"",services:B,whatElse:"",math:"8"},onSubmit:async e=>{try{v(!0),j("");let a={firstName:e.firstName,lastName:e.lastName,email:e.email,phone:e.phone,website:e.website,company:e.organization,services:e.services,whatElse:e.whatElse?e.whatElse:"",math:e.math};await i(a),N(!0),window.scrollTo({top:0,behavior:"smooth"})}catch(e){console.error(e),j(e.message?.includes("lead with that email already exists")?"A contact with this email has already been submitted. We'll be in touch soon.":"Something went wrong, please refresh and try again.")}finally{v(!1)}},validationSchema:d.object({firstName:d.string().required("First Name is required"),lastName:d.string().required("Last Name is required"),email:d.string().email("Invalid email address").required("Email is required"),phone:d.string(),organization:d.string().required("Organization name is required"),website:d.string().matches(/^((https?:\/\/)?(www\.)?[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\.[a-zA-Z]{2,})+([/\w\-.~:?#\[\]@!$&'()*+,;=]*)?)$/,"Please enter a valid website (e.g. halborn.com)"),services:d.array().min(1,"Please select at least one service"),whatElse:d.string(),math:d.string().required("Correct answer is required")})});return y?(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)("div",{className:"p-8 bg-cardBackground rounded-lg border border-cardStroke",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(u.CheckCircle2,{className:"h-8 w-8 text-hAccent"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-title",children:"Thank you for reaching out!"}),(0,a.jsx)("p",{className:"text-subtitle mt-1",children:"We will be in touch soon to discuss your security needs."})]})]})})}):(0,a.jsx)("div",{className:(0,s.twMerge)("w-full bg-cardBackground z-20",e),children:(0,a.jsxs)("div",{className:"rounded-lg border border-cardStroke",children:[(0,a.jsx)("div",{className:"flex justify-between items-center p-6 lg:p-8",children:(0,a.jsx)("h2",{className:"text-2xl lg:text-3xl font-bold text-title",children:"LET'S TALK"})}),w&&(0,a.jsxs)("div",{ref:k,role:"alert",tabIndex:-1,className:"mx-6 lg:mx-8 mb-2 p-4 bg-salmon/10 border border-salmon rounded-lg flex items-start justify-between gap-3",children:[(0,a.jsx)("p",{className:"text-salmon text-sm",children:w}),(0,a.jsx)("button",{type:"button",onClick:()=>j(""),className:"text-salmon hover:text-salmon/70 shrink-0","aria-label":"Dismiss error",children:(0,a.jsx)(b.X,{className:"h-4 w-4"})})]}),(0,a.jsxs)("form",{onSubmit:E.handleSubmit,className:"pt-0 lg:pt-0 p-6 lg:p-8 space-y-2",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("h3",{className:"text-hAccent font-semibold text-sm uppercase tracking-wider mb-4 text-right",children:"Personal Information"}),(0,a.jsx)(x,{label:"First name",required:!0,error:E.touched.firstName&&E.errors.firstName,children:(0,a.jsx)(l.Input,{id:"firstName",type:"text",placeholder:"John",value:E.values.firstName,onChange:E.handleChange,onBlur:E.handleBlur,className:"bg-white-black border-cardStroke focus:border-hAccent h-12 placeholder:text-placeholderText"})}),(0,a.jsx)(x,{label:"Last name",required:!0,error:E.touched.lastName&&E.errors.lastName,children:(0,a.jsx)(l.Input,{id:"lastName",type:"text",placeholder:"Doe",value:E.values.lastName,onChange:E.handleChange,onBlur:E.handleBlur,className:"bg-white-black border-cardStroke focus:border-hAccent h-12 placeholder:text-placeholderText"})}),(0,a.jsx)(x,{label:"Email",required:!0,error:E.touched.email&&E.errors.email,children:(0,a.jsx)(l.Input,{id:"email",type:"email",placeholder:"[email protected]",value:E.values.email,onChange:E.handleChange,onBlur:E.handleBlur,className:"bg-white-black border-cardStroke focus:border-hAccent h-12 placeholder:text-placeholderText"})}),(0,a.jsx)(x,{label:"Phone",error:E.touched.phone&&E.errors.phone,children:(0,a.jsx)(l.Input,{id:"phone",type:"text",placeholder:"+1 (555) 123-4567",value:E.values.phone,onChange:E.handleChange,onBlur:E.handleBlur,className:"bg-white-black border-cardStroke focus:border-hAccent h-12 placeholder:text-placeholderText"})})]}),(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("h3",{className:"text-hAccent font-semibold text-sm uppercase tracking-wider mb-4 text-right",children:"Organization"}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(x,{label:"Organization",required:!0,error:E.touched.organization&&E.errors.organization,children:(0,a.jsx)(l.Input,{id:"organization",type:"text",placeholder:"Company name",value:E.values.organization,onChange:E.handleChange,onBlur:E.handleBlur,className:"bg-white-black border-cardStroke focus:border-hAccent h-12 placeholder:text-placeholderText"})}),(0,a.jsx)(x,{label:"Website",error:E.touched.website&&E.errors.website,children:(0,a.jsx)(l.Input,{id:"website",type:"text",placeholder:"example.com",value:E.values.website,onChange:E.handleChange,onBlur:E.handleBlur,className:"bg-white-black border-cardStroke focus:border-hAccent h-12 placeholder:text-placeholderText"})}),(0,a.jsx)(x,{label:"What else can we help with?",error:E.touched.whatElse&&E.errors.whatElse,children:(0,a.jsx)(c.TextArea,{id:"whatElse",placeholder:"Tell us more about your needs...",value:E.values.whatElse,onChange:E.handleChange,className:"bg-white-black border-cardStroke focus:border-hAccent placeholder:text-placeholderText text-bodyPrimary h-28"})})]})]}),(0,a.jsxs)("div",{className:"pt-6 border-t border-cardStroke",children:[(0,a.jsx)("h3",{className:"text-hAccent font-semibold text-sm uppercase tracking-wider mb-4 text-center",children:"Interested in learning more about our services?"}),(0,a.jsx)(x,{label:"Services",error:E.touched.services&&E.errors.services,children:(0,a.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-x-6 gap-y-2",children:[(0,a.jsx)("div",{className:"space-y-2",children:S.map(e=>(0,a.jsxs)("label",{className:"flex items-center cursor-pointer hover:text-hAccent transition-colors",children:[(0,a.jsx)(n.Checkbox,{id:e.id,checked:E.values.services.includes(e.id),onCheckedChange:a=>{let t=a?[...E.values.services,e.id]:E.values.services.filter(a=>a!==e.id);E.setFieldValue("services",t)},className:"mr-3 data-[state=checked]:bg-hAccent data-[state=checked]:border-hAccent"}),(0,a.jsx)("span",{className:"text-sm text-subtitle",children:e.label})]},e.id))}),(0,a.jsx)("div",{className:"space-y-2",children:T.map(e=>(0,a.jsxs)("label",{className:"flex items-center cursor-pointer hover:text-hAccent transition-colors",children:[(0,a.jsx)(n.Checkbox,{id:e.id,checked:E.values.services.includes(e.id),onCheckedChange:a=>{let t=a?[...E.values.services,e.id]:E.values.services.filter(a=>a!==e.id);E.setFieldValue("services",t)},className:"mr-3 data-[state=checked]:bg-hAccent data-[state=checked]:border-hAccent"}),(0,a.jsx)("span",{className:"text-sm text-subtitle",children:e.label})]},e.id))})]})})]}),(0,a.jsx)("input",{type:"hidden",id:"math",name:"math",value:"8",onCh
1ange:E.handleChange}),(0,a.jsx)("div",{className:"flex justify-end pt-6",children:(0,a.jsx)(r.Button,{type:"submit",disabled:f,className:(0,s.twMerge)("px-12 py-6 bg-hAccent text-honeyDew-black font-bold text-base rounded-full hover:bg-hAccent/90 transition-all",f&&"opacity-50 cursor-not-allowed"),children:f?"SUBMITTING...":"SUBMIT"})}),E.submitCount>0&&Object.keys(E.errors).length>0&&(0,a.jsx)("div",{className:"text-salmon text-sm text-right",children:"Please fill out all required fields correctly."})]})]})})}])},264794,e=>{"use strict";var a=e.i(660747),t=e.i(299971),s=e.i(695510),r=e.i(844440);function l({id:e,name:r,label:i,className:n="",inputContainerClassName:c="",inputClassName:o="",labelClassName:d="",checkClassName:m="",onChange:h,value:u,disabled:b,initialChecked:x=!1}){let[p,g]=(0,t.useState)(x);return(0,a.jsxs)("div",{className:(0,s.twMerge)("flex mb-2",n),children:[(0,a.jsxs)("div",{className:(0,s.twMerge)("relative h-8 min-w-[32px] my-auto ",c),children:[(0,a.jsx)("input",{className:(0,s.twMerge)("block appearance-none cursor-pointer border-primary border-[3px] accent-primary w-full h-full aspect-square",b&&"border-gray cursor-default",o),id:e,name:r,type:"checkbox",checked:p,value:u,onChange:function(e){g(!p),h&&h(e)},disabled:b}),p&&(0,a.jsx)("div",{className:(0,s.twMerge)("checkbox-pulse-animation absolute w-2/5 h-2/5 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 cursor-pointer pointer-events-none",b?"bg-gray":"bg-primary",m)})]}),(0,a.jsx)("label",{className:(0,s.twMerge)("ml-3 cursor-pointer",b&&"text-gray cursor-default",d),htmlFor:e,children:i})]})}var i=e.i(955856),n=e.i(225384),c=e.i(213596),o=e.i(432808),d=e.i(273687);function m({id:e,label:t,name:r,type:l,onChange:n,value:c,className:o="",error:d}){return(0,a.jsx)(i.TextInput,{id:e,label:t,name:r,type:l,borderSize:3,className:(0,s.twMerge)("",o),onChange:n,inputClassName:"pl-3 h-[66px]",value:c,error:d,labelClassName:"text-bodyPrimary"})}e.s(["ContactForm",0,function({className:e="",onSubmit:i=d.sendForm}){let[h,u]=(0,t.useState)(!1),[b,x]=(0,t.useState)(!1),[p,g]=(0,t.useState)(!1),f=(0,o.useSession)(),v=f?.data,y=(0,n.useFormik)({initialValues:{firstName:v?.user?.firstName||"",lastName:v?.user?.lastName||"",email:v?.user?.email||"",phone:v?.user?.phone||"",website:v?.user?.client?.website||"",company:v?.user?.client?.name||"",services:[],math:"",whatElse:""},onSubmit:async e=>{try{u(!0),g(!1),await i(e)}catch(e){console.error(e),g(!0)}finally{x(!0),u(!1),window.scrollTo({top:0,behavior:"smooth"})}},validationSchema:c.object({firstName:c.string().required("First Name is required"),lastName:c.string().required("Last Name is required"),email:c.string().email("Invalid email address").required("Email is required"),phone:c.string(),website:c.string(),company:c.string(),services:c.array().min(1,"You must select at least one service").of(c.string().required()),whatElse:c.string(),math:c.number().test("math","Correct answer is required",e=>"8"===e||8===e).required("Correct answer is required")})});return b&&p?(0,a.jsx)("p",{className:"col-span-full",children:"Something went wrong, please refresh and try again."}):b?(0,a.jsxs)("div",{className:"mt-10 col-span-full flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"flex justify-center items-center min-h-[40px] min-w-[40px] rounded-full border-2 border-hAccent bg-hAccent",children:(0,a.jsx)("div",{className:"h-fit w-fit text-white-black font-bold",children:"â"})}),(0,a.jsx)("p",{className:"text-bodyPrimary",children:"Thank you for reaching out! We will be in touch soon."})]}):(0,a.jsxs)("form",{className:(0,s.twMerge)("grid lg:grid-cols-2 gap-y-5 w-full mt-10 text-bodyPrimary",e),onSubmit:y.handleSubmit,"data-attr":"contact-form",children:[(0,a.jsx)("div",{className:"col-span-full grid lg:grid-cols-2 gap-x-12 gap-y-8",children:[{label:"First Name*",name:"firstName",type:"text"},{label:"Last Name*",name:"lastName",type:"text"},{label:"Email*",name:"email",type:"email"},{label:"Phone",name:"phone",type:"text"},{label:"Website URL",name:"website",type:"text"},{label:"Company Name",name:"company",type:"text"}].map((e,t)=>(0,a.jsx)(m,{id:e.name,label:e.label,name:e.name,type:e.type,onCh
1ange:y.handleChange,value:y.values[e.name],error:y.touched[e.name]&&y.errors[e.name]},t))}),(0,a.jsxs)("div",{className:"col-span-full grid lg:grid-cols-2",children:[(0,a.jsx)("h2",{className:"col-span-full mb-4",children:"Services Interested in*"}),["Smart Contract Assessment","Blockchain Layer 1 Assessment","Code Security Audit","Web Application Penetration Testing","Cloud Infrastructure Penetration Testing","Red Team Exercise","Risk Assessment","Blockchain Architecture Assessment","Compliance Readiness","Custody and Key Management Assessment","Technical Due Diligence","Technical Training"].map((e,t)=>(0,a.jsx)(l,{id:e,label:e,name:"services",onChange:y.handleChange,value:e},t)),y.touched.services&&y.errors.services&&(0,a.jsx)("div",{className:"text-salmon col-span-full",children:y.errors.services})]}),(0,a.jsx)(m,{className:"col-span-full",id:"whatElse",label:"What else can we help with?",name:"whatElse",type:"text",onChange:y.handleChange,value:y.values.whatElse}),(0,a.jsx)(m,{className:"col-span-1",id:"math",label:"What's 3 + 5?*",name:"math",type:"number",value:y.values.math,onChange:y.handleChange,error:y.touched.math&&y.errors.math}),(0,a.jsx)(r.Button,{className:"col-span-full",type:"submit",disabled:h,children:"Submit"}),Object.values(y.errors).length>0&&(0,a.jsx)("div",{className:"col-span-full text-salmon",children:"Please fill out all required fields"})]})}],264794)}]); 2 3//# sourceMappingURL=2-z2tmnv7ck3s.js.map 4//# chunkId=01a0ca40-0380-7730-83f3-6de863f55845
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.