(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,311471,e=>{var a=e.i(843476),t=e.i(768877),n=e.i(311901),r=e.i(268863),i=e.i(206917),o=e.i(749803),s=e.i(271567),l=e.i(226091),d=e.i(584026);let c=(0,e.i(456420).f)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);var m=e.i(882303),u=e.i(290684),h=e.i(100207);let p={demo:{ariaLabel:"What your team training demo covers",heading:"What we'll cover",lede:"The workflows, reporting, and rollout path that matter to your organization, in one working session.",items:[{icon:o.f,title:"Admin visibility",description:"Reporting for learning activity, completions, playlist enrollments, and per-team training progress."},{icon:m.f,title:"Team rollout",description:"Seats, groups, SSO, manager access, and how to structure learning paths for your IT team."},{icon:s.f,title:"IT Trainerbot",description:`Every engineer on a Teams account gets unlimited answers ${u.n.onMobileAndIn} the CBT Nuggets platform, each one citing its source video.`}]},quote:{ariaLabel:"What happens after you request a quote",heading:"What happens next",lede:"Your request goes straight to the team that prices it. Here is what to expect while it is on its way.",items:[{icon:l.f,title:"Your quote, emailed",description:"A priced quote for the seats you chose, sent to you within two business days, with a copy to your billing contact if you add one."},{icon:c,title:"A rep on your account",description:"Your quote comes with a named CBT Nuggets rep who adjusts the seat count and answers procurement questions before you sign."},{icon:d.f,title:"Vendor-review documents",description:"W-9, VPAT, and security documentation are in the Trust Center, so your procurement review can start before the quote lands.",link:{label:h.X,href:h.T,location:"demo-agenda:trust-center"}}]}};var f=e.i(218963);e.s(["ContactAgenda",0,function({mobileApp:e}){let{intent:o}=(0,f.useContactIntent)(),s=p[o];return(0,a.jsx)("section",{className:"section-padding bg-background","aria-label":s.ariaLabel,"data-testid":"contact-agenda","data-intent":o,children:(0,a.jsxs)("div",{className:"mx-auto max-w-6xl px-6",children:[(0,a.jsx)(n.f,{children:(0,a.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,a.jsx)("h2",{className:"font-display text-h2",children:s.heading},o),(0,a.jsx)("p",{className:"text-body-lg mt-4 text-muted-foreground",children:s.lede})]})}),(0,a.jsx)("div",{className:"mt-10 grid gap-4 md:grid-cols-3",children:s.items.map((o,s)=>{let l=(0,u.I)(o.description,e),d=o.icon;return(0,a.jsx)(n.f,{delay:70*s,children:(0,a.jsx)("div",{className:"h-full rounded-2xl border border-cbt-100 bg-white p-5 shadow-sm",children:(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)("div",{className:"flex size-11 shrink-0 items-center justify-center rounded-xl bg-cbt-50 text-cbt-600",children:(0,a.jsx)(d,{className:"size-5"})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1",children:[(0,a.jsx)("h3",{className:"font-display text-xl",children:o.title}),(0,i.w)(o.title)&&(0,a.jsx)(i.y,{surface:"demo-agenda"}),o.link&&(0,a.jsxs)(r.TrackedLink,{href:o.link.href,location:o.link.location,external:!0,className:"inline-flex items-center gap-1 whitespace-nowrap rounded-sm align-middle font-sans text-sm font-semibold tracking-normal text-cbt-700 underline-offset-4 hover:text-cbt-900 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-700",children:[o.link.label,(0,a.jsx)(t.f,{className:"size-3.5","aria-hidden":"true"})]})]}),(0,a.jsx)("p",{className:"mt-1 text-base leading-6 text-muted-foreground",children:l})]})]})})},o.title)})},o)]})})}],311471)},828398,e=>{var a=e.i(843476),t=e.i(551757),n=e.i(100207),r=e.i(206917),i=e.i(290684);let o={demo:{headline:"See how your IT team proves progress before skills gaps become risk.",lede:"In one focused demo we show IT leaders how CBT Nuggets fits your team size, certification goals, and compliance requirements — with the admin reporting that proves progress.",chips:["Admin reporting and audit exports","Certification paths and virtual labs","SSO, groups, and playlist rollout",`IT Trainerbot ${i.n.inPlatformAndMobile}`]},quote:{headline:"Request a quote for your team.",lede:"Tell us how many seats and where to send it. Your quote — the per-seat figure IT leaders and procurement can approve — is emailed within two business days.",chips:["Quote emailed within two business days","Per-seat, billed annually","Add seats any time","W-9, VPAT, and security docs in the Trust Center"]}};var s=e.i(218963);e.s(["ContactHero",0,function({mobileApp:e}){let{intent:l}=(0,s.useContactIntent)(),d=o[l];return(0,a.jsxs)("div",{"data-testid":"contact-hero","data-intent":l,children:[(0,a.jsx)("h1",{className:"font-display text-h1 max-w-3xl text-white",children:d.headline}),(0,a.jsx)("p",{className:"text-body-lg mt-4 max-w-2xl text-cbt-100",children:d.lede}),(0,a.jsx)("div",{className:"animate-swap-fade-in mt-6 grid gap-3 sm:grid-cols-2",style:{animationDelay:"140ms"},children:d.chips.map(a=>(0,i.I)(a,e)).map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-full border border-white/15 bg-white/[0.07] px-4 py-2 text-sm font-medium text-cbt-50 backdrop-blur",children:[(0,a.jsx)(t.f,{className:"size-4 shrink-0 text-success-500"}),(0,a.jsx)("span",{children:(0,r.l)(e,{surface:"demo-hero-chip",tone:"dark"})})]},e))},l),(0,a.jsxs)("p",{className:"mt-6 text-base font-medium text-cbt-200",children:["Training IT teams since ",n.o.founded,"."]})]})}],828398)},218963,e=>{var a=e.i(843476),t=e.i(271645),n=e.i(405240),r=e.i(541872),i=e.i(896507);let o=(0,t.createContext)(null);e.s(["ContactIntentProvider",0,function({initialIntent:e,children:s}){let[l,d]=(0,t.useState)(e),c=(0,t.useRef)(new Set),m=(0,t.useRef)([]),u=(0,t.useRef)(!1),h=(0,t.useCallback)(a=>{(0,n.f)("contact_tab_view",{properties:{tab:a,landing_tab:e,page:window.location.pathname}})},[e]);(0,t.useEffect)(()=>(0,r.Z)(()=>{for(let e of(u.current=!0,m.current.splice(0)))h(e)}),[h]),(0,t.useEffect)(()=>{c.current.has(l)||(c.current.add(l),u.current?h(l):m.current.push(l))},[h,l]),(0,t.useEffect)(()=>{let e=new URL(window.location.href);e.searchParams.get(i.q)!==l&&(e.searchParams.set(i.q,l),window.history.replaceState(null,"",e.toString()))},[l]);let p=(0,t.useCallback)(a=>{d(t=>t===a?t:((0,n.f)("contact_tab_switch",{properties:{from_tab:t,to_tab:a,landing_tab:e,page:window.location.pathname}}),a))},[e]),f=(0,t.useMemo)(()=>({intent:l,initialIntent:e,switchTo:p}),[l,e,p]);return(0,a.jsx)(o.Provider,{value:f,children:s})},"useContactIntent",0,function(){let e=(0,t.useContext)(o);if(!e)throw Error("useContactIntent must be used inside — the /demo page wraps the hero column and the tab shell in one.");return e}])},715119,e=>{var a=e.i(843476),t=e.i(271645),n=e.i(975157),r=e.i(677572),i=e.i(896507),o=e.i(522016),s=e.i(456420);let l=(0,s.f)("calendar",[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]]);var d=e.i(551757),c=e.i(100207),m=e.i(570590);let u=[{id:"mmurray",name:"Matt Murray",title:"Account Executive",photoUrl:"https://lh3.googleusercontent.com/a/ACg8ocJOgD7YDsLA7lbA2fj4SlRUpV04ZiYELhgk44CC8Q3ii9fWm7s=s96-c",scheduleUrl:"https://crm.cbtnuggets.com/schedule/mmurray"},{id:"mflores",name:"Megan Flores",title:"Account Executive",photoUrl:"https://lh3.googleusercontent.com/a/ACg8ocLM13GHSzhwKbpHLQH1uL8obpDtr1dsx_Xq5LrKEMKVu_1HkKQ=s96-c",scheduleUrl:"https://crm.cbtnuggets.com/schedule/mflores"},{id:"mbillow",name:"Molly Billow",title:"Account Executive",photoUrl:"https://lh3.googleusercontent.com/a/ACg8ocJiICpySbBrbcv9cE7ebgokClmzolGFEjNlnE_v48VedxqZ2iN2=s96-c",scheduleUrl:"https://crm.cbtnuggets.com/schedule/mbillow"},{id:"sengle",name:"Sam Engle",title:"Account Executive",photoUrl:"https://lh3.googleusercontent.com/a/ACg8ocI9tHLW6SsgIjxL6jLVZ-hnfL73obOVmOoW990Z0fyGVg__NfA=s96-c",scheduleUrl:"https://crm.cbtnuggets.com/schedule/sengle"}];new Set(u.map(e=>e.id));var h=e.i(46353),p=e.i(445105);function f(){let e=(0,t.useRef)(null);return(0,t.useCallback)(a=>(e.current=function(e,a,t=function(){if("u">typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;let a=Array.from(e,e=>e.toString(16).padStart(2,"0")).join("");return`${a.slice(0,8)}-${a.slice(8,12)}-${a.slice(12,16)}-${a.slice(16,20)}-${a.slice(20)}`}){return e&&e.fingerprint===a?e:{fingerprint:a,id:t()}}(e.current,JSON.stringify(Object.keys(a).sort().reduce((e,t)=>{let n=a[t];return void 0===n||(e[t]=n),e},{}))),e.current.id),[])}let b="cf-turnstile-script",g=null;function x({siteKey:e,action:n,onReady:r}){let i=(0,t.useRef)(null),o=(0,t.useRef)(null),s=(0,t.useRef)(null),l=(0,t.useRef)([]),[d,c]=(0,t.useState)(!1),m=(0,t.useId)(),u=(0,t.useCallback)(e=>{if(s.current=e,e){let a=l.current;for(let t of(l.current=[],a))t(e)}},[]);return(0,t.useEffect)(()=>{let a=!1;return(window.turnstile?Promise.resolve():g||(g=new Promise((e,a)=>{let t=document.getElementById(b);if(t){t.addEventListener("load",()=>e(),{once:!0}),t.addEventListener("error",()=>a(Error("turnstile script failed")),{once:!0});return}let n=document.createElement("script");n.id=b,n.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",n.async=!0,n.defer=!0,n.addEventListener("load",()=>e(),{once:!0}),n.addEventListener("error",()=>a(Error("turnstile script failed")),{once:!0}),document.head.appendChild(n)}))).then(()=>{!a&&i.current&&window.turnstile&&(o.current=window.turnstile.render(i.current,{sitekey:e,action:n,appearance:"interaction-only",theme:"light",callback:e=>u(e),"expired-callback":()=>u(null),"error-callback":()=>{u(null),c(!0)}}),r({waitForToken:()=>s.current?Promise.resolve(s.current):new Promise(e=>{l.current.push(e),window.setTimeout(()=>{l.current=l.current.filter(a=>a!==e),e(s.current)},5e3)}),reset:()=>{u(null),o.current&&window.turnstile&&window.turnstile.reset(o.current)}}))}).catch(()=>{a||c(!0)}),()=>{if(a=!0,o.current&&window.turnstile)try{window.turnstile.remove(o.current)}catch{}}},[e,n,r,u]),(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)("div",{ref:i,id:`${m}-turnstile`,"data-testid":`turnstile-${n}`}),d&&(0,a.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Our bot check could not load. You can still submit; if that fails, refresh the page or call us."})]})}let y=["tier","role","industry","skill"];function N(e){let a=e.replace(/^#/,"");if(!a)return{};let t=new URLSearchParams(a),n={};for(let e of y){let a=t.get(e);a&&(n[e]=a)}return n}var v=e.i(311063),j=e.i(592970),w=e.i(19477),C=e.i(793479);let S={firstName:"",lastName:"",email:"",company:"",companyUrl:"",title:"",quantity:"",notes:"",internalTrainingInterest:!1,phone:"",marketingOptIn:!1,honeypot:""},k=new Set(["firstName","lastName","email","company","companyUrl","title","quantity","phone","notes"]),q={firstName:100,lastName:100,email:254,company:200,companyUrl:500,title:160,phone:60,notes:500},T=new Set(["firstName","lastName","email","company","companyUrl"]);function I(e){let a=e.trim();return a?/^https?:\/\//i.test(a)?a:`https://${a}`:""}function U(e){try{return!!new URL(I(e)).hostname.includes(".")}catch{return!1}}function M(e,a){return a.trim().length>q[e]}function E(e){let a,t={};if(e.firstName.trim()?M("firstName",e.firstName)&&(t.firstName=`First name must be ${q.firstName} characters or fewer`):t.firstName="First name is required",e.lastName.trim()?M("lastName",e.lastName)&&(t.lastName=`Last name must be ${q.lastName} characters or fewer`):t.lastName="Last name is required",e.email.trim()){var n;n=e.email,(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)||M("email",e.email))&&(t.email="Please enter a valid email address")}else t.email="Work email is required";return e.companyUrl.trim()?(!U(e.companyUrl)||M("companyUrl",I(e.companyUrl)))&&(t.companyUrl="Please enter a valid company website"):t.companyUrl="Company website is required",e.company.trim()?M("company",e.company)&&(t.company=`Company name must be ${q.company} characters or fewer`):t.company="Company name is required",M("title",e.title)&&(t.title=`Job title must be ${q.title} characters or fewer`),e.quantity.trim()&&(a=e.quantity.trim(),!(/^\d{1,6}$/.test(a)&&Number(a)>=1))&&(t.quantity=`Team size must be a whole number between 1 and ${z.toLocaleString("en-US")}`),M("phone",e.phone)&&(t.phone=`Phone must be ${q.phone} characters or fewer`),M("notes",e.notes)&&(t.notes=`Notes must be ${q.notes} characters or fewer`),t}let A="border-red-500 focus-visible:ring-red-500/20 aria-invalid:border-red-500",L="border-border",P="mt-0.5 size-4 rounded border-cbt-200 accent-cbt-500",z=999999;function B(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>!!e))}function $(e){return e.split(/[-_]/).filter(Boolean).map(e=>e[0]?.toUpperCase()+e.slice(1)).join(" ")}function F(){let e=new URLSearchParams(window.location.search);return B({currentUrl:window.location.href,referrer:document.referrer,utmSource:e.get("utm_source")??void 0,utmMedium:e.get("utm_medium")??void 0,utmCampaign:e.get("utm_campaign")??void 0,utmTerm:e.get("utm_term")??void 0,utmContent:e.get("utm_content")??void 0,gclid:e.get("gclid")??void 0,wbraid:e.get("wbraid")??void 0,gbraid:e.get("gbraid")??void 0})}async function R(e){let a=await fetch("/api/teams/demo/company-name",{method:"POST",headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},body:JSON.stringify({companyUrl:I(e)})});if(!a.ok)return null;let t=await a.json().catch(()=>null);return t?.companyName?.trim()||null}function O({initialContext:e={},initialIdentity:r,onIdentityChange:i,onSubmitted:s,turnstileSiteKey:b=null,unstyled:g=!1}){let{onFormFocusCapture:y,trackSubmitSuccess:M}=(0,h.f)("teams_demo"),K=f(),G=(0,t.useRef)(null),W=(0,t.useCallback)(e=>{G.current=e},[]),{captureEmail:H}=(0,j.f)(),[D,V]=(0,t.useState)(()=>({...S,...r})),[Y,_]=(0,t.useState)({}),[J,Z]=(0,t.useState)(!1),[Q,X]=(0,t.useState)(!1),[ee,ea]=(0,t.useState)(!1),[et,en]=(0,t.useState)(null),[er,ei]=(0,t.useState)(null),[eo,es]=(0,t.useState)("idle"),el=function(){let[e]=(0,t.useState)(()=>{let e=null,a=()=>(null===e&&Object.keys(N(window.location.hash)).length>0&&(e=window.location.hash),e??"");return{subscribe(t){let n=()=>{let n=e;a(),e!==n&&t()};return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},getSnapshot:a,getServerSnapshot:()=>""}});return(0,t.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot)}(),ed=(0,t.useMemo)(()=>({...N(el),...e}),[el,e]),ec=D.firstName||D.lastName||D.email||D.company||D.companyUrl||D.title||D.quantity||D.notes||D.phone;(0,t.useEffect)(()=>{let e=e=>{ec&&!ee&&e.preventDefault()};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[ec,ee]),(0,t.useEffect)(()=>{if(!J)return;let e=window.setTimeout(()=>X(!0),8e3);return()=>window.clearTimeout(e)},[J]);let em=(0,t.useCallback)(e=>{let{name:a}=e.target,t=e.target instanceof HTMLInputElement&&"checkbox"===e.target.type?e.target.checked:e.target.value;V(e=>({...e,[a]:t})),T.has(a)&&"string"==typeof t&&i?.({[a]:t}),"email"===a&&"string"==typeof t&&H(t),"companyUrl"===a&&es("idle"),_(e=>{if(e[a]){let t={...e};return delete t[a],t}return e})},[H,i]),eu=(0,t.useCallback)(async e=>{let{name:a}=e.target,t=E(D);if(t[a]&&_(e=>({...e,[a]:t[a]})),"companyUrl"===a&&!D.company.trim()&&U(D.companyUrl)){let e=D.companyUrl;es("loading");try{let a=await R(e);if(!a)return void es("not-found");V(t=>t.company.trim()||t.companyUrl!==e?t:(i?.({company:a}),{...t,company:a})),_(e=>{if(!e.company)return e;let a={...e};return delete a.company,a}),es("found")}catch{es("not-found")}}},[i,D]),eh=(0,t.useCallback)(async e=>{e.preventDefault(),en(null);let a=e.currentTarget;if(D.honeypot)return;let t=E(D);if(Object.keys(t).length>0){_(t),(0,p.f)(a);return}Z(!0),X(!1);let n=()=>{M(),(0,w.M)({email:D.email,phone:D.phone,jobTitle:D.title,company:D.company,numberOfEmployees:D.quantity})};try{let e={...D,companyUrl:I(D.companyUrl)},t=await G.current?.waitForToken()??void 0,r=await fetch("/api/teams/demo",{method:"POST",headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},body:JSON.stringify({...e,submissionId:K(e),turnstileToken:t,context:B({...ed,...F()})})}),i=await r.json().catch(()=>null);if(!r.ok){r.status>=500&&n(),G.current?.reset();let e=i?.field;if(400===r.status&&"string"==typeof e&&k.has(e)){let t={};t[e]=i?.fieldError??i?.error??"Please check this field",_(t),(0,p.f)(a);return}en(i?.error??"We couldn't send your request. Please try again or call us directly.");return}n(),ei(i?.contactId??null),ea(!0),s?.()}catch{n(),en("We couldn't send your request. Please try again or call us directly.")}finally{Z(!1),X(!1)}},[ed,s,K,D,M]),ep=[ed.tier?`Tier: ${$(ed.tier)}`:null,ed.role?`Role: ${$(ed.role)}`:null,ed.industry?`Industry: ${$(ed.industry)}`:null,ed.skill?`Skill: ${$(ed.skill)}`:null].filter(e=>!!e);return(0,a.jsx)("div",{className:(0,n.f)(!g&&"rounded-[2rem] border border-cbt-100 bg-white p-3 shadow-xl shadow-cbt-900/5 md:p-4"),children:ee?(0,a.jsxs)("div",{className:"rounded-[1.5rem] bg-green-50 p-6 text-center",role:"status","aria-live":"polite",children:[(0,a.jsx)("div",{className:"mx-auto mb-4 flex size-14 items-center justify-center rounded-full bg-white shadow-sm",children:(0,a.jsx)(d.f,{className:"size-7 text-success-600"})}),(0,a.jsx)("h2",{className:"font-display text-h3",children:"Your demo request is in."}),(0,a.jsx)("p",{className:"mt-3 text-base leading-7 text-muted-foreground",children:"We’ve created your request in our CRM. Pick a time with one of our account executives now, or we’ll follow up within one business day."}),(0,a.jsxs)("div",{className:"mt-7 rounded-2xl bg-white p-4 text-left shadow-sm",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-2 text-sm font-semibold text-cbt-800",children:[(0,a.jsx)(l,{className:"size-4 text-cbt-600"}),"Schedule your demo now"]}),(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:u.map(e=>(0,a.jsxs)("a",{href:function(e,a,t){try{let n=new URL(e);a&&n.searchParams.set("contactId",a),n.searchParams.set("meetingType","demo");let r=t.notes.trim();return r&&n.searchParams.set("demoFocus",r),t.quantity&&n.searchParams.set("teamSize",t.quantity),n.toString()}catch{return e}}(e.scheduleUrl,er,D),target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,v.p)(`demo-success-schedule:${e.id}`,window.location.pathname)},className:"group rounded-xl border border-cbt-100 bg-background-alt p-4 text-center transition-all hover:border-cbt-300 hover:bg-white hover:shadow-md focus-visible:outline-2 focus-visible:outline-cbt-500 focus-visible:outline-offset-2","aria-label":`Schedule a demo with ${e.name}`,children:[(0,a.jsx)("img",{src:e.photoUrl,alt:"",className:"mx-auto size-14 rounded-full object-cover ring-2 ring-white transition-transform group-hover:scale-105"}),(0,a.jsx)("p",{className:"mt-2 text-sm font-semibold text-foreground",children:e.name}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:e.title})]},e.id))})]}),(0,a.jsxs)("p",{className:"mt-5 text-sm text-muted-foreground",children:["Want to keep exploring first? See"," ",(0,a.jsxs)(o.default,{href:"/platform",target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-cbt-500 hover:underline",children:["platform features",(0,a.jsx)("span",{className:"sr-only",children:" (opens in a new tab)"})]})," ","or"," ",(0,a.jsxs)(o.default,{href:"/pricing",target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-cbt-500 hover:underline",children:["team pricing",(0,a.jsx)("span",{className:"sr-only",children:" (opens in a new tab)"})]}),"."]})]}):(0,a.jsxs)("div",{className:(0,n.f)(!g&&"rounded-[1.5rem] border border-cbt-100 bg-background-alt p-5 md:p-6"),children:[(0,a.jsxs)("div",{className:"mb-5",children:[(0,a.jsx)("h2",{className:"font-display text-h3",children:"Request your team training demo"}),(0,a.jsx)("p",{className:"mt-2 text-base leading-6 text-muted-foreground",children:"Share a little context so our team can tailor the walkthrough to your training goals, reporting needs, and rollout plan."}),ep.length>0&&(0,a.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:ep.map(e=>(0,a.jsx)("span",{className:"rounded-full border border-cbt-200 bg-white px-3 py-1 text-sm font-semibold text-cbt-700",children:e},e))})]}),(0,a.jsxs)("form",{"data-testid":"form-teams-demo",onFocusCapture:y,onSubmit:eh,noValidate:!0,children:[et&&(0,a.jsx)("div",{className:"mb-4 rounded-lg bg-red-50 p-3 text-sm text-red-700",role:"alert","aria-live":"polite",children:et}),(0,a.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"firstName",className:"mb-1 block text-sm font-semibold text-foreground",children:"First Name *"}),(0,a.jsx)(C.f,{id:"firstName",name:"firstName",type:"text",size:"lg",required:!0,"aria-required":"true","aria-invalid":!!Y.firstName,"aria-describedby":Y.firstName?"firstName-error":void 0,maxLength:q.firstName,autoComplete:"given-name",enterKeyHint:"next",inputMode:"text",value:D.firstName,onChange:em,onBlur:eu,className:(0,n.f)(Y.firstName?A:L)}),Y.firstName&&(0,a.jsx)("p",{id:"firstName-error",role:"alert",className:"mt-1 text-sm text-red-600",children:Y.firstName})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"lastName",className:"mb-1 block text-sm font-semibold text-foreground",children:"Last Name *"}),(0,a.jsx)(C.f,{id:"lastName",name:"lastName",type:"text",size:"lg",required:!0,"aria-required":"true","aria-invalid":!!Y.lastName,"aria-describedby":Y.lastName?"lastName-error":void 0,maxLength:q.lastName,autoComplete:"family-name",enterKeyHint:"next",inputMode:"text",value:D.lastName,onChange:em,onBlur:eu,className:(0,n.f)(Y.lastName?A:L)}),Y.lastName&&(0,a.jsx)("p",{id:"lastName-error",role:"alert",className:"mt-1 text-sm text-red-600",children:Y.lastName})]})]}),(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsx)("label",{htmlFor:"email",className:"mb-1 block text-sm font-semibold text-foreground",children:"Work Email *"}),(0,a.jsx)(C.f,{id:"email",name:"email",type:"email",size:"lg",required:!0,"aria-required":"true","aria-invalid":!!Y.email,"aria-describedby":Y.email?"email-error":void 0,maxLength:q.email,autoComplete:"email",enterKeyHint:"next",inputMode:"email",value:D.email,onChange:em,onBlur:eu,className:(0,n.f)(Y.email?A:L)}),Y.email&&(0,a.jsx)("p",{id:"email-error",role:"alert",className:"mt-1 text-sm text-red-600",children:Y.email})]}),(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsx)("label",{htmlFor:"companyUrl",className:"mb-1 block text-sm font-semibold text-foreground",children:"Company Website *"}),(0,a.jsx)(C.f,{id:"companyUrl",name:"companyUrl",type:"text",size:"lg",required:!0,"aria-required":"true","aria-invalid":!!Y.companyUrl,"aria-describedby":Y.companyUrl?"companyUrl-error":void 0,maxLength:q.companyUrl,autoComplete:"url",enterKeyHint:"next",inputMode:"url",value:D.companyUrl,onChange:em,onBlur:eu,className:(0,n.f)(Y.companyUrl?A:L)}),Y.companyUrl&&(0,a.jsx)("p",{id:"companyUrl-error",role:"alert",className:"mt-1 text-sm text-red-600",children:Y.companyUrl})]}),(0,a.jsxs)("div",{className:"mt-3 grid gap-3 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"company",className:"mb-1 block text-sm font-semibold text-foreground",children:"Company Name *"}),(0,a.jsx)(C.f,{id:"company",name:"company",type:"text",size:"lg",required:!0,"aria-required":"true","aria-invalid":!!Y.company,"aria-describedby":Y.company?"company-error":void 0,maxLength:q.company,autoComplete:"organization",enterKeyHint:"next",value:D.company,onChange:em,onBlur:eu,className:(0,n.f)(Y.company?A:L)}),Y.company&&(0,a.jsx)("p",{id:"company-error",role:"alert",className:"mt-1 text-sm text-red-600",children:Y.company}),(0,a.jsx)("p",{className:"sr-only","aria-live":"polite",children:"found"===eo?"Company name filled in from the website. Edit it if needed.":""})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"title",className:"mb-1 block text-sm font-semibold text-foreground",children:"Job Title"}),(0,a.jsx)(C.f,{id:"title",name:"title",type:"text",size:"lg",maxLength:q.title,"aria-invalid":!!Y.title,"aria-describedby":Y.title?"title-error":void 0,autoComplete:"organization-title",enterKeyHint:"next",value:D.title,onChange:em,className:(0,n.f)(Y.title?A:L)}),Y.title&&(0,a.jsx)("p",{id:"title-error",role:"alert",className:"mt-1 text-sm text-red-600",children:Y.title})]})]}),(0,a.jsxs)("div",{className:"mt-3 grid gap-3 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"quantity",className:"mb-1 block text-sm font-semibold text-foreground",children:"IT Team Size"}),(0,a.jsx)(C.f,{id:"quantity",name:"quantity",type:"number",size:"lg",min:1,max:z,step:1,inputMode:"numeric","aria-invalid":!!Y.quantity,"aria-describedby":Y.quantity?"quantity-error":void 0,autoComplete:"off",enterKeyHint:"next",value:D.quantity,onChange:em,className:(0,n.f)(Y.quantity?A:L)}),Y.quantity&&(0,a.jsx)("p",{id:"quantity-error",role:"alert",className:"mt-1 text-sm text-red-600",children:Y.quantity})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"phone",className:"mb-1 block text-sm font-semibold text-foreground",children:"Phone (optional)"}),(0,a.jsx)(C.f,{id:"phone",name:"phone",type:"tel",size:"lg",maxLength:q.phone,"aria-invalid":!!Y.phone,"aria-describedby":Y.phone?"phone-error":void 0,autoComplete:"tel",enterKeyHint:"next",inputMode:"tel",value:D.phone,onChange:em,className:(0,n.f)(Y.phone?A:L)}),Y.phone&&(0,a.jsx)("p",{id:"phone-error",role:"alert",className:"mt-1 text-sm text-red-600",children:Y.phone})]})]}),(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsxs)("label",{htmlFor:"notes",className:"mb-1 block text-sm font-semibold text-foreground",children:["Anything else we should know?",(0,a.jsx)("span",{className:"ml-1 font-normal text-muted-foreground",children:"(optional)"})]}),(0,a.jsx)("textarea",{id:"notes",name:"notes",rows:3,maxLength:q.notes,"aria-invalid":!!Y.notes,"aria-describedby":Y.notes?"notes-error":void 0,value:D.notes,onChange:em,className:(0,n.f)("w-full rounded-lg border bg-background px-3 py-2 text-base text-foreground transition-colors focus:border-cbt-500 focus:outline-none focus:ring-2 focus:ring-cbt-500/20 md:text-base",Y.notes?A:L)}),Y.notes&&(0,a.jsx)("p",{id:"notes-error",role:"alert",className:"mt-1 text-sm text-red-600",children:Y.notes})]}),(0,a.jsxs)("label",{className:"mt-4 flex items-start gap-3 text-sm text-foreground",children:[(0,a.jsx)("input",{type:"checkbox",name:"internalTrainingInterest",className:P,checked:D.internalTrainingInterest,onChange:em}),(0,a.jsxs)("span",{children:["I’m interested in"," ",(0,a.jsx)(o.default,{href:"/internal-training",target:"_blank",rel:"noopener noreferrer","aria-describedby":"internal-training-link-hint",className:"font-medium text-cbt-600 underline underline-offset-4 hover:text-cbt-700",children:"Internal Training"})]})]}),(0,a.jsx)("span",{id:"internal-training-link-hint",className:"sr-only",children:"Opens in a new tab"}),(0,a.jsxs)("div",{className:"absolute -left-[9999px] h-0 overflow-hidden opacity-0","aria-hidden":"true",children:[(0,a.jsx)("label",{htmlFor:"honeypot",children:"Do not fill this field"}),(0,a.jsx)("input",{id:"honeypot",name:"honeypot",type:"text",tabIndex:-1,autoComplete:"off",value:D.honeypot,onChange:em})]}),(0,a.jsxs)("label",{className:"mt-3 flex items-start gap-3 text-sm text-foreground",children:[(0,a.jsx)("input",{type:"checkbox",name:"marketingOptIn",className:P,checked:D.marketingOptIn,onChange:em}),(0,a.jsx)("span",{children:"Send me CBT Nuggets team training resources and product updates. Unsubscribe any time."})]}),b&&(0,a.jsx)(x,{siteKey:b,action:"demo",onReady:W}),(0,a.jsx)("button",{type:"submit",disabled:J,className:(0,n.f)("btn-gradient mt-5 min-h-12 w-full rounded-full py-3 text-base font-semibold text-white transition-opacity","focus-visible:outline-2 focus-visible:outline-cbt-500 focus-visible:outline-offset-2","disabled:cursor-not-allowed disabled:bg-muted-foreground"),children:J?"Scheduling...":"Schedule Your Demo"}),(0,a.jsxs)("p",{className:"mt-3 text-center text-base font-medium text-balance text-foreground",children:["A ",m.P,"-minute walkthrough with a training specialist, built around your team."]}),(0,a.jsx)("p",{role:"status","aria-live":"polite",className:(0,n.f)("text-center text-sm text-muted-foreground",Q&&"mt-3"),children:Q?"This is taking longer than expected. We're still sending your request — please keep this page open.":null}),(0,a.jsxs)("p",{className:"mt-3 text-base leading-6 text-muted-foreground",children:["By submitting this form, you agree to our"," ",(0,a.jsxs)(o.default,{href:"/privacy",target:"_blank",rel:"noopener noreferrer",className:"font-medium text-cbt-600 underline-offset-4 hover:underline",children:["Privacy Policy",(0,a.jsx)("span",{className:"sr-only",children:" (opens in a new tab)"})]}),". Prefer to talk now? Call"," ",(0,a.jsx)("a",{href:c.o.phoneHref,"aria-label":`Call ${c.o.name} sales, ${c.o.phone}`,className:"font-medium text-cbt-600 underline-offset-4 hover:underline",children:c.o.phone}),"."]})]})]})})}let K=(0,s.f)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var G=e.i(77071);let W=[{code:"US",name:"United States"},{code:"CA",name:"Canada"},{code:"GB",name:"United Kingdom"},{code:"AU",name:"Australia"},{code:"AF",name:"Afghanistan"},{code:"AX",name:"Åland Islands"},{code:"AL",name:"Albania"},{code:"DZ",name:"Algeria"},{code:"AS",name:"American Samoa"},{code:"AD",name:"Andorra"},{code:"AO",name:"Angola"},{code:"AI",name:"Anguilla"},{code:"AG",name:"Antigua & Barbuda"},{code:"AR",name:"Argentina"},{code:"AM",name:"Armenia"},{code:"AW",name:"Aruba"},{code:"AT",name:"Austria"},{code:"AZ",name:"Azerbaijan"},{code:"BS",name:"Bahamas"},{code:"BH",name:"Bahrain"},{code:"BD",name:"Bangladesh"},{code:"BB",name:"Barbados"},{code:"BY",name:"Belarus"},{code:"BE",name:"Belgium"},{code:"BZ",name:"Belize"},{code:"BJ",name:"Benin"},{code:"BM",name:"Bermuda"},{code:"BT",name:"Bhutan"},{code:"BO",name:"Bolivia"},{code:"BA",name:"Bosnia & Herzegovina"},{code:"BW",name:"Botswana"},{code:"BR",name:"Brazil"},{code:"IO",name:"British Indian Ocean Territory"},{code:"VG",name:"British Virgin Islands"},{code:"BN",name:"Brunei"},{code:"BG",name:"Bulgaria"},{code:"BF",name:"Burkina Faso"},{code:"BI",name:"Burundi"},{code:"KH",name:"Cambodia"},{code:"CM",name:"Cameroon"},{code:"CV",name:"Cape Verde"},{code:"BQ",name:"Caribbean Netherlands"},{code:"KY",name:"Cayman Islands"},{code:"CF",name:"Central African Republic"},{code:"TD",name:"Chad"},{code:"CL",name:"Chile"},{code:"CN",name:"China"},{code:"CX",name:"Christmas Island"},{code:"CC",name:"Cocos (Keeling) Islands"},{code:"CO",name:"Colombia"},{code:"KM",name:"Comoros"},{code:"CG",name:"Congo - Brazzaville"},{code:"CD",name:"Congo - Kinshasa"},{code:"CK",name:"Cook Islands"},{code:"CR",name:"Costa Rica"},{code:"CI",name:"Côte d'Ivoire"},{code:"HR",name:"Croatia"},{code:"CU",name:"Cuba"},{code:"CW",name:"Curaçao"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czechia"},{code:"DK",name:"Denmark"},{code:"DJ",name:"Djibouti"},{code:"DM",name:"Dominica"},{code:"DO",name:"Dominican Republic"},{code:"EC",name:"Ecuador"},{code:"EG",name:"Egypt"},{code:"SV",name:"El Salvador"},{code:"GQ",name:"Equatorial Guinea"},{code:"ER",name:"Eritrea"},{code:"EE",name:"Estonia"},{code:"SZ",name:"Eswatini"},{code:"ET",name:"Ethiopia"},{code:"FK",name:"Falkland Islands"},{code:"FO",name:"Faroe Islands"},{code:"FJ",name:"Fiji"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"GF",name:"French Guiana"},{code:"PF",name:"French Polynesia"},{code:"GA",name:"Gabon"},{code:"GM",name:"Gambia"},{code:"GE",name:"Georgia"},{code:"DE",name:"Germany"},{code:"GH",name:"Ghana"},{code:"GI",name:"Gibraltar"},{code:"GR",name:"Greece"},{code:"GL",name:"Greenland"},{code:"GD",name:"Grenada"},{code:"GP",name:"Guadeloupe"},{code:"GU",name:"Guam"},{code:"GT",name:"Guatemala"},{code:"GG",name:"Guernsey"},{code:"GN",name:"Guinea"},{code:"GW",name:"Guinea-Bissau"},{code:"GY",name:"Guyana"},{code:"HT",name:"Haiti"},{code:"HN",name:"Honduras"},{code:"HK",name:"Hong Kong SAR China"},{code:"HU",name:"Hungary"},{code:"IS",name:"Iceland"},{code:"IN",name:"India"},{code:"ID",name:"Indonesia"},{code:"IR",name:"Iran"},{code:"IQ",name:"Iraq"},{code:"IE",name:"Ireland"},{code:"IM",name:"Isle of Man"},{code:"IL",name:"Israel"},{code:"IT",name:"Italy"},{code:"JM",name:"Jamaica"},{code:"JP",name:"Japan"},{code:"JE",name:"Jersey"},{code:"JO",name:"Jordan"},{code:"KZ",name:"Kazakhstan"},{code:"KE",name:"Kenya"},{code:"KI",name:"Kiribati"},{code:"XK",name:"Kosovo"},{code:"KW",name:"Kuwait"},{code:"KG",name:"Kyrgyzstan"},{code:"LA",name:"Laos"},{code:"LV",name:"Latvia"},{code:"LB",name:"Lebanon"},{code:"LS",name:"Lesotho"},{code:"LR",name:"Liberia"},{code:"LY",name:"Libya"},{code:"LI",name:"Liechtenstein"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"MO",name:"Macao SAR China"},{code:"MG",name:"Madagascar"},{code:"MW",name:"Malawi"},{code:"MY",name:"Malaysia"},{code:"MV",name:"Maldives"},{code:"ML",name:"Mali"},{code:"MT",name:"Malta"},{code:"MH",name:"Marshall Islands"},{code:"MQ",name:"Martinique"},{code:"MR",name:"Mauritania"},{code:"MU",name:"Mauritius"},{code:"YT",name:"Mayotte"},{code:"MX",name:"Mexico"},{code:"FM",name:"Micronesia"},{code:"MD",name:"Moldova"},{code:"MC",name:"Monaco"},{code:"MN",name:"Mongolia"},{code:"ME",name:"Montenegro"},{code:"MS",name:"Montserrat"},{code:"MA",name:"Morocco"},{code:"MZ",name:"Mozambique"},{code:"MM",name:"Myanmar (Burma)"},{code:"NA",name:"Namibia"},{code:"NR",name:"Nauru"},{code:"NP",name:"Nepal"},{code:"NL",name:"Netherlands"},{code:"NC",name:"New Caledonia"},{code:"NZ",name:"New Zealand"},{code:"NI",name:"Nicaragua"},{code:"NE",name:"Niger"},{code:"NG",name:"Nigeria"},{code:"NU",name:"Niue"},{code:"NF",name:"Norfolk Island"},{code:"KP",name:"North Korea"},{code:"MK",name:"North Macedonia"},{code:"MP",name:"Northern Mariana Islands"},{code:"NO",name:"Norway"},{code:"OM",name:"Oman"},{code:"PK",name:"Pakistan"},{code:"PW",name:"Palau"},{code:"PS",name:"Palestinian Territories"},{code:"PA",name:"Panama"},{code:"PG",name:"Papua New Guinea"},{code:"PY",name:"Paraguay"},{code:"PE",name:"Peru"},{code:"PH",name:"Philippines"},{code:"PN",name:"Pitcairn Islands"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"PR",name:"Puerto Rico"},{code:"QA",name:"Qatar"},{code:"RE",name:"Réunion"},{code:"RO",name:"Romania"},{code:"RU",name:"Russia"},{code:"RW",name:"Rwanda"},{code:"WS",name:"Samoa"},{code:"SM",name:"San Marino"},{code:"ST",name:"São Tomé & Príncipe"},{code:"SA",name:"Saudi Arabia"},{code:"SN",name:"Senegal"},{code:"RS",name:"Serbia"},{code:"SC",name:"Seychelles"},{code:"SL",name:"Sierra Leone"},{code:"SG",name:"Singapore"},{code:"SX",name:"Sint Maarten"},{code:"SK",name:"Slovakia"},{code:"SI",name:"Slovenia"},{code:"SB",name:"Solomon Islands"},{code:"SO",name:"Somalia"},{code:"ZA",name:"South Africa"},{code:"KR",name:"South Korea"},{code:"SS",name:"South Sudan"},{code:"ES",name:"Spain"},{code:"LK",name:"Sri Lanka"},{code:"BL",name:"St. Barthélemy"},{code:"SH",name:"St. Helena"},{code:"KN",name:"St. Kitts & Nevis"},{code:"LC",name:"St. Lucia"},{code:"MF",name:"St. Martin"},{code:"PM",name:"St. Pierre & Miquelon"},{code:"VC",name:"St. Vincent & Grenadines"},{code:"SD",name:"Sudan"},{code:"SR",name:"Suriname"},{code:"SJ",name:"Svalbard & Jan Mayen"},{code:"SE",name:"Sweden"},{code:"CH",name:"Switzerland"},{code:"SY",name:"Syria"},{code:"TW",name:"Taiwan"},{code:"TJ",name:"Tajikistan"},{code:"TZ",name:"Tanzania"},{code:"TH",name:"Thailand"},{code:"TL",name:"Timor-Leste"},{code:"TG",name:"Togo"},{code:"TK",name:"Tokelau"},{code:"TO",name:"Tonga"},{code:"TT",name:"Trinidad & Tobago"},{code:"TN",name:"Tunisia"},{code:"TR",name:"Türkiye"},{code:"TM",name:"Turkmenistan"},{code:"TC",name:"Turks & Caicos Islands"},{code:"TV",name:"Tuvalu"},{code:"VI",name:"U.S. Virgin Islands"},{code:"UG",name:"Uganda"},{code:"UA",name:"Ukraine"},{code:"AE",name:"United Arab Emirates"},{code:"UY",name:"Uruguay"},{code:"UZ",name:"Uzbekistan"},{code:"VU",name:"Vanuatu"},{code:"VA",name:"Vatican City"},{code:"VE",name:"Venezuela"},{code:"VN",name:"Vietnam"},{code:"WF",name:"Wallis & Futuna"},{code:"EH",name:"Western Sahara"},{code:"YE",name:"Yemen"},{code:"ZM",name:"Zambia"},{code:"ZW",name:"Zimbabwe"}],H=new Set(["US","CA"]),D=[{code:"AL",name:"Alabama"},{code:"AK",name:"Alaska"},{code:"AZ",name:"Arizona"},{code:"AR",name:"Arkansas"},{code:"CA",name:"California"},{code:"CO",name:"Colorado"},{code:"CT",name:"Connecticut"},{code:"DE",name:"Delaware"},{code:"DC",name:"District of Columbia"},{code:"FL",name:"Florida"},{code:"GA",name:"Georgia"},{code:"HI",name:"Hawaii"},{code:"ID",name:"Idaho"},{code:"IL",name:"Illinois"},{code:"IN",name:"Indiana"},{code:"IA",name:"Iowa"},{code:"KS",name:"Kansas"},{code:"KY",name:"Kentucky"},{code:"LA",name:"Louisiana"},{code:"ME",name:"Maine"},{code:"MD",name:"Maryland"},{code:"MA",name:"Massachusetts"},{code:"MI",name:"Michigan"},{code:"MN",name:"Minnesota"},{code:"MS",name:"Mississippi"},{code:"MO",name:"Missouri"},{code:"MT",name:"Montana"},{code:"NE",name:"Nebraska"},{code:"NV",name:"Nevada"},{code:"NH",name:"New Hampshire"},{code:"NJ",name:"New Jersey"},{code:"NM",name:"New Mexico"},{code:"NY",name:"New York"},{code:"NC",name:"North Carolina"},{code:"ND",name:"North Dakota"},{code:"OH",name:"Ohio"},{code:"OK",name:"Oklahoma"},{code:"OR",name:"Oregon"},{code:"PA",name:"Pennsylvania"},{code:"PR",name:"Puerto Rico"},{code:"RI",name:"Rhode Island"},{code:"SC",name:"South Carolina"},{code:"SD",name:"South Dakota"},{code:"TN",name:"Tennessee"},{code:"TX",name:"Texas"},{code:"UT",name:"Utah"},{code:"VT",name:"Vermont"},{code:"VA",name:"Virginia"},{code:"WA",name:"Washington"},{code:"WV",name:"West Virginia"},{code:"WI",name:"Wisconsin"},{code:"WY",name:"Wyoming"}],V=[{code:"AB",name:"Alberta"},{code:"BC",name:"British Columbia"},{code:"MB",name:"Manitoba"},{code:"NB",name:"New Brunswick"},{code:"NL",name:"Newfoundland and Labrador"},{code:"NS",name:"Nova Scotia"},{code:"NT",name:"Northwest Territories"},{code:"NU",name:"Nunavut"},{code:"ON",name:"Ontario"},{code:"PE",name:"Prince Edward Island"},{code:"QC",name:"Quebec"},{code:"SK",name:"Saskatchewan"},{code:"YT",name:"Yukon"}],Y={firstName:100,lastName:100,email:254,company:200,companyUrl:500,billingEmail:254,notes:500,line1:255,line2:255,city:100,state:100,postalCode:20};function _(e,a){return a.trim().length>Y[e]}let J={billingEmail:"",internalTrainingInterest:!1,companySize:"",notes:"",marketingOptIn:!1,honeypot:""},Z=new Set(["firstName","lastName","email","company","companyUrl","billingEmail","companySize"]),Q={line1:"",line2:"",city:"",state:"",postalCode:"",country:"US"},X="h-11 w-full rounded-lg border border-border bg-background px-3 text-base text-foreground transition-colors focus:outline-none focus:ring-2 focus:ring-cbt-500/20 focus:border-cbt-500",ee="border-red-500 focus-visible:ring-red-500/20 aria-invalid:border-red-500",ea="border-border",et="mt-0.5 size-4 rounded border-cbt-200 accent-cbt-500";function en(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function er(e){let a=e.trim();return a?/^https?:\/\//i.test(a)?a:`https://${a}`:""}function ei(e){try{return!!new URL(er(e)).hostname.includes(".")}catch{return!1}}function eo(e,a){let t={};if(e.firstName.trim()?_("firstName",e.firstName)&&(t.firstName=`First name must be ${Y.firstName} characters or fewer`):t.firstName="First name is required",e.lastName.trim()?_("lastName",e.lastName)&&(t.lastName=`Last name must be ${Y.lastName} characters or fewer`):t.lastName="Last name is required",e.email.trim()?(!en(e.email)||_("email",e.email))&&(t.email="Please enter a valid email address"):t.email="Work email is required",e.companyUrl.trim()?(!ei(e.companyUrl)||_("companyUrl",er(e.companyUrl)))&&(t.companyUrl="Please enter a valid company website"):t.companyUrl="Company website is required",e.company.trim()?_("company",e.company)&&(t.company=`Company name must be ${Y.company} characters or fewer`):t.company="Company name is required",a.billingEmail.trim()&&(!en(a.billingEmail)||_("billingEmail",a.billingEmail))&&(t.billingEmail="Please enter a valid email address"),a.internalTrainingInterest){let e=Number(a.companySize);a.companySize.trim()&&Number.isInteger(e)&&!(e<1)||(t.companySize="Enter roughly how many employees your company has")}return t}async function es(e){let a=await fetch("/api/teams/demo/company-name",{method:"POST",headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},body:JSON.stringify({companyUrl:er(e)})});if(!a.ok)return null;let t=await a.json().catch(()=>null);return t?.companyName?.trim()||null}function el({htmlFor:e,children:t,optional:n}){return(0,a.jsxs)("label",{htmlFor:e,className:"mb-1 block text-sm font-semibold text-foreground",children:[t,n&&(0,a.jsx)("span",{className:"ml-1 font-normal text-muted-foreground",children:"(optional)"})]})}function ed({id:e,message:t}){return t?(0,a.jsx)("p",{id:e,role:"alert",className:"mt-1 text-sm text-red-600",children:t}):null}function ec({idPrefix:e,values:t,errors:r,onChange:i}){var o;let s="US"===(o=t.country)?D:"CA"===o?V:null,l=H.has(t.country),d="US"===t.country?"ZIP code":"Postal code";return(0,a.jsxs)("div",{className:"grid gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(el,{htmlFor:`${e}-line1`,children:"Street address *"}),(0,a.jsx)(C.f,{id:`${e}-line1`,name:`${e}-line1`,maxLength:Y.line1,size:"lg",required:!0,"aria-required":"true","aria-invalid":!!r.line1,"aria-describedby":r.line1?`${e}-line1-error`:void 0,autoComplete:"shipping address-line1",value:t.line1,onChange:e=>i({line1:e.target.value}),className:(0,n.f)(r.line1?ee:ea)}),(0,a.jsx)(ed,{id:`${e}-line1-error`,message:r.line1})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(el,{htmlFor:`${e}-line2`,optional:!0,children:"Suite, floor, or unit"}),(0,a.jsx)(C.f,{id:`${e}-line2`,name:`${e}-line2`,maxLength:Y.line2,size:"lg",autoComplete:"shipping address-line2","aria-invalid":!!r.line2,"aria-describedby":r.line2?`${e}-line2-error`:void 0,value:t.line2,onChange:e=>i({line2:e.target.value}),className:(0,n.f)(r.line2?ee:ea)}),(0,a.jsx)(ed,{id:`${e}-line2-error`,message:r.line2})]}),(0,a.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(el,{htmlFor:`${e}-city`,children:"City *"}),(0,a.jsx)(C.f,{id:`${e}-city`,name:`${e}-city`,maxLength:Y.city,size:"lg",required:!0,"aria-required":"true","aria-invalid":!!r.city,"aria-describedby":r.city?`${e}-city-error`:void 0,autoComplete:"shipping address-level2",value:t.city,onChange:e=>i({city:e.target.value}),className:(0,n.f)(r.city?ee:ea)}),(0,a.jsx)(ed,{id:`${e}-city-error`,message:r.city})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)(el,{htmlFor:`${e}-state`,optional:!l,children:["CA"===t.country?"Province":"US"===t.country?"State":"State / province / region",l?" *":""]}),s?(0,a.jsxs)("select",{id:`${e}-state`,name:`${e}-state`,required:!0,"aria-required":"true","aria-invalid":!!r.state,"aria-describedby":r.state?`${e}-state-error`:void 0,autoComplete:"shipping address-level1",className:(0,n.f)(X,r.state&&ee),value:t.state,onChange:e=>i({state:e.target.value}),children:[(0,a.jsx)("option",{value:"",disabled:!0,children:"Select…"}),s.map(e=>(0,a.jsx)("option",{value:e.code,children:e.name},e.code))]}):(0,a.jsx)(C.f,{id:`${e}-state`,name:`${e}-state`,size:"lg",maxLength:Y.state,"aria-invalid":!!r.state,"aria-describedby":r.state?`${e}-state-error`:void 0,autoComplete:"shipping address-level1",value:t.state,onChange:e=>i({state:e.target.value})}),(0,a.jsx)(ed,{id:`${e}-state-error`,message:r.state})]})]}),(0,a.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)(el,{htmlFor:`${e}-postalCode`,optional:!l,children:[d,l?" *":""]}),(0,a.jsx)(C.f,{id:`${e}-postalCode`,name:`${e}-postalCode`,maxLength:Y.postalCode,size:"lg","aria-invalid":!!r.postalCode,"aria-describedby":r.postalCode?`${e}-postalCode-error`:void 0,autoComplete:"shipping postal-code",value:t.postalCode,onChange:e=>i({postalCode:e.target.value}),className:(0,n.f)(r.postalCode?ee:ea)}),(0,a.jsx)(ed,{id:`${e}-postalCode-error`,message:r.postalCode})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(el,{htmlFor:`${e}-country`,children:"Country *"}),(0,a.jsx)("select",{id:`${e}-country`,name:`${e}-country`,autoComplete:"shipping country",className:X,value:t.country,onChange:e=>i({country:e.target.value,state:""}),children:W.map(e=>(0,a.jsx)("option",{value:e.code,children:e.name},e.code))})]})]})]})}function em(){return(0,a.jsx)("p",{"data-testid":"quote-enterprise-notice",className:"mt-3 rounded-lg border border-cbt-100 bg-cbt-50 px-4 py-3 text-sm leading-6 text-cbt-800",children:m.B})}function eu({identity:e,onIdentityChange:r,initialSeats:s,intentContext:l,onSubmitted:u,turnstileSiteKey:b=null}){let{onFormFocusCapture:g,trackSubmitSuccess:y}=(0,h.f)("teams_quote"),N=f(),v=(0,t.useRef)(null),S=(0,t.useCallback)(e=>{v.current=e},[]),{captureEmail:k}=(0,j.f)(),[q,T]=(0,t.useState)(()=>(0,i.m)(s)),[I,U]=(0,t.useState)(J),[M,E]=(0,t.useState)(Q),[A,L]=(0,t.useState)({}),[P,z]=(0,t.useState)({}),[$,R]=(0,t.useState)(!1),[O,W]=(0,t.useState)(!1),[D,V]=(0,t.useState)(!1),[X,en]=(0,t.useState)(null),[eh,ep]=(0,t.useState)("idle"),ef=(0,m.a)(m.R)*q,eb=m.R*q,eg=e.firstName||e.lastName||e.email||e.company||e.companyUrl||M.line1||M.city||I.billingEmail||I.companySize||I.notes;(0,t.useEffect)(()=>{let e=e=>{eg&&!D&&e.preventDefault()};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[eg,D]),(0,t.useEffect)(()=>{if(!$)return;let e=window.setTimeout(()=>W(!0),8e3);return()=>window.clearTimeout(e)},[$]);let ex=(0,t.useCallback)(e=>{L(a=>{if(!a[e])return a;let t={...a};return delete t[e],t})},[]),ey=(0,t.useCallback)((e,a)=>{r({[e]:a}),"email"===e&&k(a),"companyUrl"===e&&ep("idle"),ex(e)},[k,ex,r]),eN=(0,t.useCallback)(e=>{for(let a of(U(a=>({...a,...e})),Object.keys(e)))("billingEmail"===a||"companySize"===a)&&ex(a)},[ex]),ev=(0,t.useCallback)(async()=>{let a=eo(e,I);if(a.companyUrl)return void L(e=>({...e,companyUrl:a.companyUrl}));if(e.company.trim()||!ei(e.companyUrl))return;let t=e.companyUrl;ep("loading");try{let e=await es(t);if(!e)return void ep("not-found");r({company:e}),ep("found")}catch{ep("not-found")}},[e,r,I]),ej=(0,t.useCallback)(e=>{E(a=>({...a,...e})),z(a=>{let t={...a};for(let a of Object.keys(e))delete t[a];return t})},[]),ew=(0,t.useCallback)(async a=>{let t,n;a.preventDefault(),en(null);let r=a.currentTarget;if(I.honeypot)return;let i=eo(e,I),o=(t={},n=H.has(M.country),M.line1.trim()?_("line1",M.line1)&&(t.line1=`Street address must be ${Y.line1} characters or fewer`):t.line1="Street address is required",_("line2",M.line2)&&(t.line2=`Suite, floor, or unit must be ${Y.line2} characters or fewer`),M.city.trim()?_("city",M.city)&&(t.city=`City must be ${Y.city} characters or fewer`):t.city="City is required",n&&!M.state.trim()?t.state="CA"===M.country?"Province is required":"State is required":_("state",M.state)&&(t.state=`State or region must be ${Y.state} characters or fewer`),n&&!M.postalCode.trim()?t.postalCode="US"===M.country?"ZIP code is required":"Postal code is required":_("postalCode",M.postalCode)&&(t.postalCode=`Postal code must be ${Y.postalCode} characters or fewer`),t);if(Object.keys(i).length>0||Object.keys(o).length>0){L(i),z(o),(0,p.f)(r);return}R(!0),W(!1);let s=()=>{y(),(0,w.M)({email:e.email,phone:"",jobTitle:"",company:e.company,numberOfEmployees:String(q)})};try{let a={firstName:e.firstName,lastName:e.lastName,email:e.email,company:e.company,companyUrl:er(e.companyUrl),seats:q,address:{line1:M.line1.trim(),line2:M.line2.trim()||void 0,city:M.city.trim(),state:M.state.trim()||void 0,postalCode:M.postalCode.trim()||void 0,countryCode:M.country},billingEmail:I.billingEmail.trim()||void 0,internalTraining:I.internalTrainingInterest?{companySize:Number(I.companySize)}:void 0,notes:I.notes.trim()||void 0,marketingOptIn:I.marketingOptIn},t=await v.current?.waitForToken()??void 0,n=await fetch("/api/teams/quote",{method:"POST",headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},body:JSON.stringify({...a,submissionId:N(a),turnstileToken:t,context:B({...l,...F()})})}),i=await n.json().catch(()=>null);if(!n.ok){n.status>=500&&s(),v.current?.reset();let e=i?.field;if(400===n.status&&"string"==typeof e&&Z.has(e)){let a={};a[e]=i?.fieldError??i?.error??"Please check this field",L(a),(0,p.f)(r);return}en(i?.error??"We couldn't send your request. Please try again or call us directly.");return}s(),V(!0),u?.()}catch{s(),en("We couldn't send your request. Please try again or call us directly.")}finally{R(!1),W(!1)}},[M,e,l,u,I,q,N,y]);if(D)return(0,a.jsxs)("div",{className:"rounded-[1.5rem] bg-green-50 p-6",role:"status","aria-live":"polite",children:[(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"mx-auto mb-4 flex size-14 items-center justify-center rounded-full bg-white shadow-sm",children:(0,a.jsx)(d.f,{className:"size-7 text-success-600","aria-hidden":!0})}),(0,a.jsx)("h2",{className:"font-display text-h3",children:"Your quote request is in."}),(0,a.jsxs)("p",{className:"mt-3 text-base leading-7 text-muted-foreground",children:["We’ll email your quote for ",q," ",1===q?"seat":"seats"," to"," ",(0,a.jsx)("span",{className:"font-semibold text-foreground",children:e.email}),I.billingEmail.trim()&&(0,a.jsxs)(a.Fragment,{children:[" ","(copying"," ",(0,a.jsx)("span",{className:"font-semibold text-foreground",children:I.billingEmail.trim()}),")"]})," ","within two business days."]})]}),(0,a.jsxs)("div",{className:"mt-6 rounded-2xl bg-white p-5 text-left shadow-sm",children:[(0,a.jsx)("p",{className:"text-overline mb-3 text-cbt-500",children:"Your request"}),(0,a.jsx)("dl",{className:"divide-y divide-cbt-100 text-sm",children:[{label:`${m.C.team.web} \xb7 ${q} ${1===q?"seat":"seats"}`,value:`${(0,m.Y)(ef)}/mo`,strong:!0},{label:"Billed annually",value:(0,m.Y)(eb),strong:!0},{label:"Company",value:e.company},{label:"Company address",value:[M.line1,M.line2,M.city,M.state,M.postalCode,M.country].map(e=>e.trim()).filter(Boolean).join(", ")},...I.internalTrainingInterest?[{label:"Also interested in",value:`Internal Training (about ${Number(I.companySize).toLocaleString("en-US")} employees)`}]:[]].map(e=>(0,a.jsxs)("div",{className:"flex justify-between gap-6 py-2 first:pt-0 last:pb-0",children:[(0,a.jsx)("dt",{className:"text-muted-foreground",children:e.label}),(0,a.jsx)("dd",{className:(0,n.f)("text-right tabular-nums text-foreground","strong"in e&&e.strong&&"font-semibold"),children:e.value})]},e.label))})]}),(0,a.jsxs)("p",{className:"mt-5 text-center text-sm text-muted-foreground",children:["Need it sooner? Call"," ",(0,a.jsx)("a",{href:c.o.phoneHref,"aria-label":`Call ${c.o.name} sales, ${c.o.phone}`,className:"font-medium text-cbt-600 underline-offset-4 hover:underline",children:c.o.phone}),"."]})]});return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-5",children:[(0,a.jsx)("h2",{className:"font-display text-h3",children:"Request your quote"}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:"Tell us how many seats and where to send it. We’ll email your quote within two business days."}),l.tier===i.I&&(0,a.jsx)(em,{})]}),(0,a.jsxs)("form",{"data-testid":"form-teams-quote",onFocusCapture:g,onSubmit:ew,noValidate:!0,children:[X&&(0,a.jsx)("div",{className:"mb-4 rounded-lg bg-red-50 p-3 text-sm text-red-700",role:"alert","aria-live":"polite",children:X}),(0,a.jsx)("div",{className:"rounded-2xl border border-cbt-200 bg-white p-4",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(el,{htmlFor:"quote-seats",children:"Teams seats *"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:()=>T((0,i.m)(q-1)),className:"flex size-11 items-center justify-center rounded-lg border border-border text-foreground transition-colors hover:border-cbt-500 focus-visible:outline-2 focus-visible:outline-cbt-500 focus-visible:outline-offset-2","aria-label":"Remove one seat",children:(0,a.jsx)(K,{className:"size-4","aria-hidden":!0})}),(0,a.jsx)(C.f,{id:"quote-seats",name:"seats",type:"number",size:"lg",inputMode:"numeric",min:i._,max:i.K,value:q,onChange:e=>T((0,i.m)(Number(e.target.value))),className:"w-24 text-center"}),(0,a.jsx)("button",{type:"button",onClick:()=>T((0,i.m)(q+1)),className:"flex size-11 items-center justify-center rounded-lg border border-border text-foreground transition-colors hover:border-cbt-500 focus-visible:outline-2 focus-visible:outline-cbt-500 focus-visible:outline-offset-2","aria-label":"Add one seat",children:(0,a.jsx)(G.f,{className:"size-4","aria-hidden":!0})})]})]}),(0,a.jsxs)("div",{className:"text-right","aria-live":"polite",children:[(0,a.jsx)("p",{className:"font-display text-3xl font-medium leading-none tabular-nums text-cbt-800",children:(0,m.Y)(ef)}),(0,a.jsxs)("p",{className:"mt-1 text-sm uppercase tracking-wide text-muted-foreground",children:["per month for ",q," ",1===q?"seat":"seats"]}),(0,a.jsxs)("p",{className:"mt-0.5 text-sm tabular-nums text-muted-foreground","data-testid":"quote-annual-total",children:[(0,m.Y)(eb)," billed annually"]})]})]})}),(0,a.jsxs)("div",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(el,{htmlFor:"quote-firstName",children:"First Name *"}),(0,a.jsx)(C.f,{id:"quote-firstName",name:"firstName",maxLength:Y.firstName,size:"lg",required:!0,"aria-required":"true","aria-invalid":!!A.firstName,"aria-describedby":A.firstName?"quote-firstName-error":void 0,autoComplete:"given-name",value:e.firstName,onChange:e=>ey("firstName",e.target.value),className:(0,n.f)(A.firstName?ee:ea)}),(0,a.jsx)(ed,{id:"quote-firstName-error",message:A.firstName})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(el,{htmlFor:"quote-lastName",children:"Last Name *"}),(0,a.jsx)(C.f,{id:"quote-lastName",name:"lastName",maxLength:Y.lastName,size:"lg",required:!0,"aria-required":"true","aria-invalid":!!A.lastName,"aria-describedby":A.lastName?"quote-lastName-error":void 0,autoComplete:"family-name",value:e.lastName,onChange:e=>ey("lastName",e.target.value),className:(0,n.f)(A.lastName?ee:ea)}),(0,a.jsx)(ed,{id:"quote-lastName-error",message:A.lastName})]})]}),(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsx)(el,{htmlFor:"quote-email",children:"Work Email *"}),(0,a.jsx)(C.f,{id:"quote-email",name:"email",maxLength:Y.email,type:"email",size:"lg",required:!0,"aria-required":"true","aria-invalid":!!A.email,"aria-describedby":A.email?"quote-email-error":void 0,autoComplete:"email",value:e.email,onChange:e=>ey("email",e.target.value),className:(0,n.f)(A.email?ee:ea)}),(0,a.jsx)(ed,{id:"quote-email-error",message:A.email})]}),(0,a.jsxs)("div",{className:"mt-3 grid gap-3 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(el,{htmlFor:"quote-company",children:"Company Name *"}),(0,a.jsx)(C.f,{id:"quote-company",name:"company",maxLength:Y.company,size:"lg",required:!0,"aria-required":"true","aria-invalid":!!A.company,"aria-describedby":A.company?"quote-company-error":void 0,autoComplete:"organization",value:e.company,onChange:e=>ey("company",e.target.value),className:(0,n.f)(A.company?ee:ea)}),(0,a.jsx)(ed,{id:"quote-company-error",message:A.company}),(0,a.jsx)("p",{className:"sr-only","aria-live":"polite",children:"found"===eh?"Company name filled in from the website. Edit it if needed.":""})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(el,{htmlFor:"quote-companyUrl",children:"Company Website *"}),(0,a.jsx)(C.f,{id:"quote-companyUrl",name:"companyUrl",maxLength:Y.companyUrl,size:"lg",required:!0,"aria-required":"true","aria-invalid":!!A.companyUrl,"aria-describedby":A.companyUrl?"quote-companyUrl-error":void 0,autoComplete:"url",value:e.companyUrl,onChange:e=>ey("companyUrl",e.target.value),onBlur:ev,className:(0,n.f)(A.companyUrl?ee:ea)}),(0,a.jsx)(ed,{id:"quote-companyUrl-error",message:A.companyUrl})]})]}),(0,a.jsxs)("fieldset",{className:"mt-5 rounded-2xl border border-cbt-100 bg-white p-4",children:[(0,a.jsx)("legend",{className:"px-1 text-sm font-semibold text-foreground",children:"Company address"}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(ec,{idPrefix:"quote-address",values:M,errors:P,onChange:ej})})]}),(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)(el,{htmlFor:"quote-billingEmail",optional:!0,children:"Also send the quote to"}),(0,a.jsx)(C.f,{id:"quote-billingEmail",name:"billingEmail",maxLength:Y.billingEmail,type:"email",size:"lg",autoComplete:"billing email","aria-invalid":!!A.billingEmail,"aria-describedby":A.billingEmail?"quote-billingEmail-error":void 0,placeholder:"accounts-payable@company.com",value:I.billingEmail,onChange:e=>eN({billingEmail:e.target.value}),className:(0,n.f)(A.billingEmail?ee:ea)}),(0,a.jsx)(ed,{id:"quote-billingEmail-error",message:A.billingEmail})]}),(0,a.jsxs)("label",{className:"mt-4 flex items-start gap-3 text-sm text-foreground",children:[(0,a.jsx)("input",{type:"checkbox",name:"internalTrainingInterest",className:et,checked:I.internalTrainingInterest,onChange:e=>eN({internalTrainingInterest:e.target.checked})}),(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Also interested in Internal Training"}),(0,a.jsx)("span",{className:"mt-0.5 block text-muted-foreground",children:"Turn your existing documentation into training, or create your own."})]})]}),I.internalTrainingInterest&&(0,a.jsxs)("div",{id:"quote-internal-training",className:"mt-3 rounded-xl border border-cbt-100 bg-cbt-50/40 p-3",children:[(0,a.jsx)(el,{htmlFor:"quote-companySize",children:"Approximately how many employees does your company have? *"}),(0,a.jsx)(C.f,{id:"quote-companySize",name:"companySize",type:"number",size:"lg",inputMode:"numeric",min:1,max:1e6,step:1,required:!0,"aria-required":"true","aria-invalid":!!A.companySize,"aria-describedby":A.companySize?"quote-companySize-error":void 0,value:I.companySize,onChange:e=>eN({companySize:e.target.value}),className:(0,n.f)("w-40",A.companySize?ee:ea)}),(0,a.jsx)(ed,{id:"quote-companySize-error",message:A.companySize})]}),(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)(el,{htmlFor:"quote-notes",optional:!0,children:"Anything else we should know?"}),(0,a.jsx)("textarea",{id:"quote-notes",name:"notes",rows:2,maxLength:Y.notes,value:I.notes,onChange:e=>eN({notes:e.target.value}),className:"w-full rounded-lg border border-border bg-background px-3 py-2 text-base text-foreground transition-colors focus:border-cbt-500 focus:outline-none focus:ring-2 focus:ring-cbt-500/20"})]}),(0,a.jsxs)("div",{className:"absolute -left-[9999px] h-0 overflow-hidden opacity-0","aria-hidden":"true",children:[(0,a.jsx)("label",{htmlFor:"quote-honeypot",children:"Do not fill this field"}),(0,a.jsx)("input",{id:"quote-honeypot",name:"honeypot",type:"text",tabIndex:-1,autoComplete:"off",value:I.honeypot,onChange:e=>eN({honeypot:e.target.value})})]}),(0,a.jsxs)("label",{className:"mt-4 flex items-start gap-3 text-sm text-muted-foreground",children:[(0,a.jsx)("input",{type:"checkbox",name:"marketingOptIn",className:et,checked:I.marketingOptIn,onChange:e=>eN({marketingOptIn:e.target.checked})}),(0,a.jsx)("span",{children:"Send me CBT Nuggets team training resources and product updates. Unsubscribe any time."})]}),b&&(0,a.jsx)(x,{siteKey:b,action:"quote",onReady:S}),(0,a.jsx)("button",{type:"submit",disabled:$,className:(0,n.f)("btn-gradient mt-5 min-h-12 w-full rounded-full py-3 text-base font-semibold text-white transition-opacity","focus-visible:outline-2 focus-visible:outline-cbt-500 focus-visible:outline-offset-2","disabled:cursor-not-allowed disabled:bg-muted-foreground"),children:$?"Sending...":"Request My Quote"}),(0,a.jsx)("p",{role:"status","aria-live":"polite",className:(0,n.f)("text-center text-sm text-muted-foreground",O&&"mt-3"),children:O?"This is taking longer than expected. We're still sending your request — please keep this page open.":null}),(0,a.jsxs)("p",{className:"mt-3 text-sm leading-5 text-muted-foreground",children:["A quote is not a commitment. By submitting this form, you agree to our"," ",(0,a.jsxs)(o.default,{href:"/privacy",target:"_blank",rel:"noopener noreferrer",className:"font-medium text-cbt-600 underline-offset-4 hover:underline",children:["Privacy Policy",(0,a.jsx)("span",{className:"sr-only",children:" (opens in a new tab)"})]}),". Prefer to talk now? Call"," ",(0,a.jsx)("a",{href:c.o.phoneHref,"aria-label":`Call ${c.o.name} sales, ${c.o.phone}`,className:"font-medium text-cbt-600 underline-offset-4 hover:underline",children:c.o.phone}),"."]})]})]})}let eh={firstName:"",lastName:"",email:"",company:"",companyUrl:""};var ep=e.i(218963);e.s(["ContactTabs",0,function({initialSeats:e,demoContext:o,turnstileSiteKey:s=null}){let{intent:l,switchTo:d}=(0,ep.useContactIntent)(),[c,m]=(0,t.useState)(eh),[u,h]=(0,t.useState)(null),p=(0,t.useCallback)(e=>{m(a=>({...a,...e}))},[]),f=null!==u;return(0,a.jsx)("div",{className:"rounded-[2rem] border border-cbt-100 bg-white p-3 shadow-xl shadow-cbt-900/5 md:p-4",children:(0,a.jsx)("div",{className:"rounded-[1.5rem] border border-cbt-100 bg-background-alt p-5 md:p-6",children:(0,a.jsxs)(r.i,{value:l,onValueChange:e=>d(e),children:[(0,a.jsxs)(r.U,{className:(0,n.f)("grid h-12 w-full grid-cols-2",f&&"hidden"),children:[(0,a.jsx)(r.k,{value:"quote",className:"h-11 text-base",children:i.f.quote}),(0,a.jsx)(r.k,{value:"demo",className:"h-11 text-base",children:i.f.demo})]}),(0,a.jsx)(r.S,{value:"quote",className:(0,n.f)(!f&&"mt-6"),children:"quote"===l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eu,{identity:c,onIdentityChange:p,initialSeats:e,intentContext:o,turnstileSiteKey:s,onSubmitted:()=>h("quote")}),!f&&(0,a.jsxs)("p",{className:"mt-4 border-t border-cbt-100 pt-4 text-base text-muted-foreground",children:["Want to see the platform first?"," ",(0,a.jsx)("button",{type:"button",onClick:()=>d("demo"),className:"rounded-sm font-semibold text-cbt-500 hover:underline focus-visible:outline-2 focus-visible:outline-cbt-500 focus-visible:outline-offset-2",children:"Book a demo instead"}),"."]})]})}),(0,a.jsx)(r.S,{value:"demo",className:(0,n.f)(!f&&"mt-6"),children:"demo"===l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(O,{initialContext:o,initialIdentity:c,onIdentityChange:p,turnstileSiteKey:s,onSubmitted:()=>h("demo"),unstyled:!0}),!f&&(0,a.jsxs)("p",{className:"mt-4 border-t border-cbt-100 pt-4 text-base text-muted-foreground",children:["Already know you want it?"," ",(0,a.jsx)("button",{type:"button",onClick:()=>d("quote"),className:"rounded-sm font-semibold text-cbt-500 hover:underline focus-visible:outline-2 focus-visible:outline-cbt-500 focus-visible:outline-offset-2",children:"Get a quote instead"}),"."]})]})})]})})})}],715119)}])})();