(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,527930,e=>{e.i(247167);var t=e.i(271645),n=e.i(540886),r=e.i(552245);let i=t.forwardRef(function(e,t){let{render:i,className:a,disabled:o=!1,focusableWhenDisabled:l=!1,nativeButton:s=!0,style:u,...c}=e,{getButtonProps:d,buttonRef:f}=(0,n.f)({disabled:o,focusableWhenDisabled:l,native:s});return(0,r.f)("button",e,{state:{disabled:o},ref:[t,f],props:[c,d]})});e.s(["Button",0,i])},416919,809835,377570,e=>{e.s(["f",0,function(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);null!=e&&Object.assign(n,e);continue}!0===i?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}],416919),e.s(["f",0,function(e,t){return"function"==typeof e?e(t):e}],809835),e.s(["f",0,function(e,t){return"function"==typeof e?e(t):e}],377570)},540886,838452,64350,e=>{var t=e.i(271645),n=e.i(229315),r=e.i(667865),i=e.i(146376),a=e.i(176782),o=e.i(733332);let l=t.createContext(void 0);function s(e=!1){let n=t.useContext(l);if(void 0===n&&!e)throw Error((0,o.f)(16));return n}e.s(["e",0,l,"o",0,s],838452);var u=e.i(333848);function c(e,t,{detail:n=0}={}){e.dispatchEvent(new((0,u.f)(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function d(e){return(0,n.E)(e)&&"BUTTON"===e.tagName}e.s(["f",0,c],64350),e.s(["f",0,function(e={}){let{disabled:o=!1,focusableWhenDisabled:l,tabIndex:u=0,native:f=!0,composite:m}=e,p=t.useRef(null),b=s(!0),g=m??void 0!==b,{props:v}=function(e){let{focusableWhenDisabled:n,disabled:r,composite:i=!1,tabIndex:a=0,isNativeButton:o}=e,l=i&&!1!==n,s=i&&!1===n;return{props:t.useMemo(()=>{let e={onKeyDown(e){r&&n&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=a,!o&&r&&(e.tabIndex=n?a:-1)),(o&&(n||l)||!o&&r)&&(e["aria-disabled"]=r),o&&(!n||s)&&(e.disabled=r),e},[i,r,n,l,s,o,a])}}({focusableWhenDisabled:l,disabled:o,composite:g,tabIndex:u,isNativeButton:f}),h=t.useCallback(()=>{let e=p.current;d(e)&&g&&o&&void 0===v.disabled&&e.disabled&&(e.disabled=!1)},[o,v.disabled,g]);return(0,i.f)(h,[h]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:r,onKeyUp:i,onKeyDown:l,onPointerDown:s,...u}=e;return(0,a.w)({onClick(e){o?e.preventDefault():t?.(e)},onMouseDown(e){o||r?.(e)},onKeyDown(e){var t;if(o||((0,a.U)(e),l?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,i=e.currentTarget,s=d(i),u=!f&&(t=i,(0,n.E)(t)&&"A"===t.tagName&&!!t.href),m=r&&(f?s:!u),p="Enter"===e.key,b=" "===e.key,v=i.getAttribute("role"),h=v?.startsWith("menuitem")||"option"===v||"gridcell"===v;if(r&&g&&b){if(e.defaultPrevented&&h)return;e.preventDefault(),(!f||s)&&(e.preventBaseUIHandler(),c(i,e));return}if(!m||f||!b&&!p){r&&u&&b&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),p&&(e.preventBaseUIHandler(),c(i,e)))},onKeyUp(e){o||(((0,a.U)(e),i?.(e),e.target===e.currentTarget&&f&&g&&d(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||f||g||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),c(e.currentTarget,e))))},onPointerDown(e){o?e.preventDefault():s?.(e)}},f?{type:"button"}:{role:"button"},v,u)},[o,v,g,f]),buttonRef:(0,r.f)(e=>{p.current=e,h()})}}],540886)},552245,e=>{e.i(247167);var t=e.i(733332),n=e.i(271645),r=e.i(828918),i=e.i(978554),a=e.i(435241);e.i(399627);var o=e.i(956789),l=e.i(416919),s=e.i(809835),u=e.i(377570),c=e.i(176782);let d=Symbol.for("react.lazy");e.s(["f",0,function(e,f,m={}){let p=f.render,b=function(e,t={}){var n;let{className:d,style:f,render:m}=e,{state:p=o.w,ref:b,props:g,stateAttributesMapping:v,enabled:h=!0}=t,y=h?(0,s.f)(d,p):void 0,x=h?(0,u.f)(f,p):void 0,w=h?(0,l.f)(p,v):o.w,k=h&&g?Array.isArray(n=g)?(0,c.b)(n):(0,c.w)(void 0,n):void 0,j=h?(0,a.f)(w,k)??{}:o.w;return("u">typeof document&&(h?Array.isArray(b)?j.ref=(0,r.f)([j.ref,(0,i.f)(m),...b]):j.ref=(0,r.A)(j.ref,(0,i.f)(m),b):(0,r.A)(null,null)),h)?(void 0!==y&&(j.className=(0,c.c)(j.className,y)),void 0!==x&&(j.style=(0,a.f)(j.style,x)),j):o.w}(f,m);return!1===m.enabled?null:function(e,r,i,a){if(r){if("function"==typeof r)return r(i,a);let e=(0,c.w)(i,r.props);e.ref=i.ref;let t=r;return t?.$$typeof===d&&(t=n.Children.toArray(r)[0]),n.cloneElement(t,e)}if(e&&"string"==typeof e){var o,l;return o=e,l=i,"button"===o?(0,n.createElement)("button",{type:"button",...l,key:l.key}):"img"===o?(0,n.createElement)("img",{alt:"",...l,key:l.key}):n.createElement(o,l)}throw Error((0,t.f)(8))}(e,p,b,m.state??o.w)}])},176782,e=>{var t=e.i(435241);let n={};function r(e){return o(e)?{...l(e,n)}:function(e){let t={...e};for(let e in t){let n=t[e];a(e,n)&&(t[e]=s(n))}return t}(e)}function i(e,n){return o(n)?l(n,e):function(e,n){if(!n)return e;for(let r in n){let i=n[r];switch(r){case"style":e[r]=(0,t.f)(e.style,i);break;case"className":e[r]=c(e.className,i);break;default:a(r,i)?e[r]=function(e,t){return t?e?(...n)=>{let r=n[0];if(d(r)){u(r);let i=t(...n);return r.baseUIHandlerPrevented||e?.(...n),i}let i=t(...n);return e?.(...n),i}:s(t):e}(e[r],i):e[r]=i}}return e}(e,n)}function a(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return 111===n&&110===r&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function o(e){return"function"==typeof e}function l(e,t){return o(e)?e(t):e??n}function s(e){return e?(...t)=>{let n=t[0];return d(n)&&u(n),e(...t)}:e}function u(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function c(e,t){return t?e?t+" "+e:t:e}function d(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["U",0,u,"c",0,c,"w",0,function(e,t,n,a,o){if(!n&&!a&&!o&&!e)return r(t);let l=r(e);return t&&(l=i(l,t)),n&&(l=i(l,n)),a&&(l=i(l,a)),o&&(l=i(l,o)),l},"b",0,function(e){if(0===e.length)return n;if(1===e.length)return r(e[0]);let t=r(e[0]);for(let n=1;n{let t=Object.freeze([]),n=Object.freeze({});e.s(["v",0,t,"w",0,n,"x",0,function(){}])},733332,e=>{let t=function(e,...t){let n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`};e.s(["f",0,t])},978554,e=>{var t=e.i(271645),n=e.i(958321);e.s(["f",0,function(e){if(!t.isValidElement(e))return null;let r=e.props;return((0,n.f)(19)?r?.ref:e.ref)??null}])},435241,e=>{e.s(["f",0,function(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}])},958321,e=>{let t=parseInt(e.i(271645).version,10);e.s(["f",0,function(e){return t>=e}])},146376,e=>{var t=e.i(271645);let n="u">typeof document?t.useLayoutEffect:()=>{};e.s(["f",0,n])},828918,e=>{var t=e.i(388940);function n(){return{callback:null,cleanup:null,refs:[]}}function r(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;ee!==a[t]))&&r(o,e),o.callback}])},388940,e=>{var t=e.i(271645);let n={};e.s(["useRefWithInit",0,function(e,r){let i=t.useRef(n);return i.current===n&&(i.current=e(r)),i}])},667865,214553,e=>{let t={...e.i(271645)};e.s(["f",0,t],214553);var n=e.i(388940);let r=t.useInsertionEffect,i=r&&r!==t.useLayoutEffect?r:e=>e();function a(){let e={next:void 0,callback:o,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function o(){}e.s(["f",0,function(e){let t=(0,n.useRefWithInit)(a).current;return t.next=e,i(t.effect),t.trampoline}],667865)},399627,e=>{e.i(247167),e.s(["f",0,function(){}])},229315,e=>{let t;function n(){return"u">typeof window}function r(e){return o(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(o(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function o(e){return!!n()&&(e instanceof Node||e instanceof i(e).Node)}function l(e){return!!n()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!n()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!n()||"u"!!e&&"none"!==e;function b(e){let t=l(e)?h(e):e;return p(t.transform)||p(t.translate)||p(t.scale)||p(t.rotate)||p(t.perspective)||!g()&&(p(t.backdropFilter)||p(t.filter))||f.test(t.willChange||"")||m.test(t.contain||"")}function g(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function v(e){return/^(html|body|#document)$/.test(r(e))}function h(e){return i(e).getComputedStyle(e)}function y(e){if("html"===r(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||a(e);return u(t)?t.host:t}function x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["X",0,h,"f",0,function(e){let t=y(e);for(;s(t)&&!v(t);){if(b(t))return t;if(d(t))break;t=y(t)}return null},"I",0,a,"w",0,x,"A",0,r,"Q",0,function(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"G",0,function e(t,n,r){var a;void 0===n&&(n=[]),void 0===r&&(r=!0);let o=function e(t){let n=y(t);return v(n)?(t.ownerDocument||t).body:s(n)&&c(n)?n:e(n)}(t),l=o===(null==(a=t.ownerDocument)?void 0:a.body),u=i(o);if(!l)return n.concat(o,e(o,[],r));{let t=x(u);return n.concat(u,u.visualViewport||[],c(o)?o:[],t&&r?e(t):[])}},"J",0,y,"K",0,i,"e",0,b,"m",0,l,"E",0,s,"Z",0,v,"t",0,o,"B",0,c,"R",0,u,"S",0,function(e){return/^(table|td|th)$/.test(r(e))},"D",0,d,"i",0,g])},333848,e=>{var t=e.i(229315);e.s(["f",()=>t.K])},225913,e=>{var t=e.i(207670);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,r=t.f;e.s(["f",0,(e,t)=>i=>{var a;if((null==t?void 0:t.variants)==null)return r(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:o,defaultVariants:l}=t,s=Object.keys(o).map(e=>{let t=null==i?void 0:i[e],r=null==l?void 0:l[e];if(null===t)return null;let a=n(t)||n(r);return o[e][a]}),u=i&&Object.entries(i).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return r(e,s,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...u}[t]):({...l,...u})[t]===n})?[...e,n,r]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}])},632781,e=>{let t=(0,e.i(456420).f)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["f",0,t],632781)},814387,e=>{let t=(0,e.i(456420).f)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["f",0,t])},263676,e=>{var t=e.i(814387);e.s(["X",()=>t.f])},151395,e=>{var t=e.i(843476),n=e.i(271645),r=e.i(110204),i=e.i(592970),a=e.i(19477),o=e.i(311063);function l(e){let[t,r]=(0,n.useState)(""),[l,s]=(0,n.useState)(""),[u,c]=(0,n.useState)({status:"idle"}),{captureEmail:d}=(0,i.f)(),f=async n=>{if(n.preventDefault(),"submitting"!==u.status&&"done"!==u.status){c({status:"submitting"});try{let n=await fetch("/api/marketing/newsletter",{method:"POST",headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},body:JSON.stringify({email:t,company:l||void 0,..."footer_newsletter"!==e?{source:e}:{}})});if(n.ok){c({status:"done"}),(0,a.Z)("newsletter_signup",{email:t});return}let r=await n.json().catch(()=>null);c({status:"error",message:r?.error??"We couldn't sign you up right now. Please try again shortly."})}catch{c({status:"error",message:"We couldn't sign you up right now. Please try again shortly."})}}};return{email:t,honeypot:l,setHoneypot:s,state:u,onSubmit:f,onEmailFocus:()=>(0,o.H)(e,"email",window.location.pathname),onEmailChange:e=>{r(e),d(e),c(e=>"error"===e.status?{status:"idle"}:e)}}}e.s(["NewsletterBandForm",0,function(){let{email:e,honeypot:n,setHoneypot:i,state:a,onSubmit:o,onEmailFocus:s,onEmailChange:u}=l("blog_cta_newsletter");return"done"===a.status?(0,t.jsxs)("div",{role:"status",className:"mt-4 text-sm",children:[(0,t.jsx)("p",{className:"font-semibold",children:"You're subscribed."}),(0,t.jsx)("p",{className:"mt-1 text-muted-foreground",children:"Watch for training insights and new-course updates in your inbox."})]}):(0,t.jsxs)("form",{onSubmit:o,className:"mt-4","aria-label":"Email newsletter signup",children:[(0,t.jsx)("div",{className:"sr-only","aria-hidden":"true",children:(0,t.jsxs)("label",{children:["Company",(0,t.jsx)("input",{type:"text",tabIndex:-1,autoComplete:"off",value:n,onChange:e=>i(e.target.value)})]})}),(0,t.jsxs)("label",{htmlFor:"blog-cta-newsletter-email",className:"mb-1 block text-sm font-medium text-foreground",children:["Work email",(0,t.jsx)(r.RequiredMark,{})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,t.jsx)("input",{id:"blog-cta-newsletter-email",type:"email",required:!0,"aria-required":"true",placeholder:"you@company.com",autoComplete:"email",value:e,onFocus:s,onChange:e=>u(e.target.value),className:"h-11 min-w-0 flex-1 rounded-full border border-cbt-300 bg-white px-4 text-sm outline-none transition-colors placeholder:text-muted-foreground focus-visible:border-cbt-500 focus-visible:ring-2 focus-visible:ring-cbt-400/30"}),(0,t.jsx)("button",{type:"submit",disabled:"submitting"===a.status,className:"btn-gradient inline-flex h-11 shrink-0 items-center justify-center rounded-full px-6 text-sm font-semibold text-white disabled:opacity-60",children:"submitting"===a.status?"Subscribing…":"Subscribe"})]}),"error"===a.status&&(0,t.jsx)("p",{role:"alert",className:"mt-2 text-sm text-red-600",children:a.message})]})},"NewsletterSignup",0,function(){let{email:e,honeypot:n,setHoneypot:i,state:a,onSubmit:o,onEmailFocus:s,onEmailChange:u}=l("footer_newsletter");return"done"===a.status?(0,t.jsxs)("div",{role:"status",className:"border-b border-white/10 py-8 text-sm text-cbt-200",children:[(0,t.jsx)("p",{className:"font-semibold text-white",children:"You're subscribed."}),(0,t.jsx)("p",{className:"mt-1",children:"Watch for training insights and new-course updates in your inbox."})]}):(0,t.jsxs)("form",{onSubmit:o,className:"flex flex-col gap-4 border-b border-white/10 py-8 lg:flex-row lg:items-end lg:justify-between","aria-label":"Email newsletter signup",children:[(0,t.jsxs)("div",{className:"max-w-md",children:[(0,t.jsx)("h2",{className:"font-display text-base font-bold text-white",children:"Training insights for IT teams"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-cbt-300",children:"Get course releases, certification changes, and team-training strategies delivered to your inbox."})]}),(0,t.jsx)("div",{className:"sr-only","aria-hidden":"true",children:(0,t.jsxs)("label",{children:["Company",(0,t.jsx)("input",{type:"text",tabIndex:-1,autoComplete:"off",value:n,onChange:e=>i(e.target.value)})]})}),(0,t.jsxs)("div",{className:"flex w-full max-w-md flex-col gap-2",children:[(0,t.jsxs)("label",{htmlFor:"footer-newsletter-email",className:"text-sm font-medium text-cbt-200",children:["Work email",(0,t.jsx)(r.RequiredMark,{className:"text-danger-200"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("input",{id:"footer-newsletter-email",type:"email",required:!0,"aria-required":"true",placeholder:"you@company.com",autoComplete:"email",value:e,onFocus:s,onChange:e=>u(e.target.value),className:"h-11 min-w-0 flex-1 rounded-full border border-white/20 bg-white/5 px-4 text-sm text-white placeholder:text-cbt-400 outline-none transition-colors focus-visible:border-cbt-400 focus-visible:ring-2 focus-visible:ring-cbt-400/30"}),(0,t.jsx)("button",{type:"submit",disabled:"submitting"===a.status,className:"btn-gradient inline-flex h-11 shrink-0 items-center rounded-full px-6 text-sm font-semibold text-white disabled:opacity-60",children:"submitting"===a.status?"Subscribing…":"Subscribe"})]}),"error"===a.status&&(0,t.jsx)("p",{role:"alert",className:"text-sm text-red-300",children:a.message})]})]})}])},519455,e=>{var t=e.i(843476),n=e.i(527930),r=e.i(225913),i=e.i(975157);let a=(0,r.f)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-sm in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-sm in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["K",0,function({className:e,variant:r="default",size:o="default",...l}){return(0,t.jsx)(n.Button,{"data-slot":"button",className:(0,i.f)(a({variant:r,size:o,className:e})),...l})},"i",0,a])},110204,e=>{var t=e.i(843476),n=e.i(975157);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,n.f)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})},"RequiredMark",0,function({className:e,label:r="*"}){return(0,t.jsx)("span",{"aria-hidden":"true","data-slot":"required-mark",className:(0,n.f)("ml-0.5 text-danger-600",e),children:r})}])},592970,e=>{var t=e.i(271645),n=e.i(405240),r=e.i(456735);let i="cbt_email_captured:",a=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;e.s(["f",0,function(){let e=(0,t.useRef)(null);return(0,t.useEffect)(()=>()=>{e.current&&clearTimeout(e.current)},[]),{captureEmail:(0,t.useCallback)(t=>{e.current&&(clearTimeout(e.current),e.current=null);let o=t.trim().toLowerCase();a.test(o)&&(e.current=setTimeout(()=>{e.current=null,(async()=>{let e=await (0,r.f)(o);!e||function(e){try{if(sessionStorage.getItem(i+e))return!0;return sessionStorage.setItem(i+e,"1"),!1}catch{return!1}}(e)||(0,n.f)("email_captured",{properties:{email_hash:e}})})()},1500))},[])}}])},19477,e=>{var t=e.i(456735);function n(e,t={}){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,...t})}async function r(){try{let e=await fetch("/api/geo",{cache:"no-store"});if(!e.ok)return"US";let t=await e.json();return"string"==typeof t.country&&2===t.country.length?t.country:"US"}catch{return"US"}}e.s(["g",0,function(e){if(!/^GTM-[A-Z0-9]{4,12}$/.test(e))throw Error(`Invalid GTM container id: ${e}`);return` (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','${e}'); window.dataLayer.push({ event: 'cbt_initialize_data', membership: { logged_in: false, user_id: '', member_id: '', email: '' } }); `.trim()},"Z",0,n,"M",0,function(e){let i=e.email.trim();n("formSubmission",{enhanced_conversion_data:{email:i}}),Promise.all([(0,t.f)(i.toLowerCase()),r()]).then(([t,r])=>{let i=t??"";n("contact_sales_form",{contact_sales_form:{phone:e.phone,email:i,country:r,job_title:e.jobTitle,company:e.company,number_of_employees:e.numberOfEmployees},membership:{logged_in:!1,user_id:"",member_id:"",email:i}})}).catch(()=>{})}])},456735,e=>{async function t(e){if("u"e.toString(16).padStart(2,"0")).join("")}e.s(["f",0,t])}])})();