PageSourceSearch

https://dakota.xyz/_next/static/chunks/6637.a64195d8b0c63a86.js

js dakota.xyz collected 2026-09-28 07:47:51 UTC 15,030 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ab7e919d-f97d-445b-b2e6-39bcf6267a52",e._sentryDebugIdIdentifier="sentry-dbid-ab7e919d-f97d-445b-b2e6-39bcf6267a52")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6637],{2189:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(53471).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},15370:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(37876),a=s(14232),i=s(12622);let n=(0,a.forwardRef)(({className:e,label:t,error:s,id:a,value:n,...l},o)=>{let c=a||`input-${Math.random().toString(36).substr(2,9)}`,d=null!=n&&""!==n;return(0,r.jsxs)("div",{className:"flex flex-col w-full",children:[(0,r.jsxs)("div",{className:(0,i.cn)("w-full rounded-lg border border-white/10 bg-brown-800 transition-all focus-within:border-white/20 focus-within:bg-brown-750","flex flex-col",d&&"bg-brown-750 border-white/20"),children:[t&&(0,r.jsx)("label",{htmlFor:c,className:"text-[14px] font-medium text-foreground px-4 pt-3 pb-0.5",children:t}),(0,r.jsx)("input",{ref:o,id:c,value:n,className:(0,i.cn)("w-full px-4 bg-transparent text-white/90 placeholder:text-white/55 text-[15px] font-medium focus:outline-none focus:text-white transition-colors",t?"pb-3":"py-3.5",d&&"text-white",e),...l})]}),s&&(0,r.jsx)("span",{className:"text-sm text-red-400 mt-1",children:s})]})});n.displayName="Input";let l=n},15526:(e,t,s)=>{s.d(t,{n:()=>u});var r=s(14232),a=s(15154),i=s(55640),n=s(68941),l=s(29382);class o extends l.Q{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let s=this.options;this.options=this.client.defaultMutationOptions(e),(0,a.f8)(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,i.$)(),t="loading"===e.status,s={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=s}notify(e){n.j.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,s,r,a,i,n,l,o;e.onSuccess?(null==(t=(s=this.mutateOptions).onSuccess)||t.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(a=this.mutateOptions).onSettled)||r.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(i=(n=this.mutateOptions).onError)||i.call(n,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(l=(o=this.mutateOptions).onSettled)||l.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var c=s(15379),d=s(85461),h=s(7192);function u(e,t,s){let i=(0,a.GR)(e,t,s),l=(0,d.jE)({context:i.context}),[u]=r.useState(()=>new o(l,i));r.useEffect(()=>{u.setOptions(i)},[u,i]);let x=(0,c.r)(r.useCallback(e=>u.subscribe(n.j.batchCalls(e)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),p=r.useCallback((e,t)=>{u.mutate(e,t).catch(m)},[u]);if(x.error&&(0,h.G)(u.options.useErrorBoundary,[x.error]))throw x.error;return{...x,mutate:p,mutateAsync:x.mutate}}function m(){}},18331:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(53471).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},20480:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(53471).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},23048:(e,t,s)=>{s.d(t,{z:()=>a});var r=s(37876);function a({children:e,error:t}){return(0,r.jsxs)("div",{children:[e,t&&(0,r.jsx)("p",{className:"text-xs text-red-400 mt-1.5",role:"alert",children:t})]})}},52087:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(53471).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},53471:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(14232);let a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},i=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim();var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:l="",children:o,iconNode:c,...d},h)=>(0,r.createElement)("svg",{ref:h,...n,width:t,height:t,stroke:e,strokeWidth:a?24*Number(s)/Number(t):s,className:i("lucide",l),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(o)?o:[o]])),o=(e,t)=>{let s=(0,r.forwardRef)(({className:s,...n},o)=>(0,r.createElement)(l,{ref:o,iconNode:t,className:i(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...n}));return s.displayName=a(e),s}},96637:(e,t,s)=>{s.r(t),s.d(t,{default:()=>N});var r=s(37876),a=s(90528),i=s(85461),n=s(14232),l=s(45706),o=s(15370),c=s(23048),d=s(50903),h=s(94394),u=s(15526),m=s(80817),x=s(20480),p=s(18331),b=s(52087),f=s(2189),g=s(89099);function w({onClose:e}){let t="challenge"===(0,g.useRouter)().query.type,[s,a]=(0,n.useState)(!1),[i,w]=(0,n.useState)(""),[N,j]=(0,n.useState)({}),y=(0,n.useRef)(!1),[v,A]=(0,n.useState)({name:"",firstName:"",lastName:"",email:""}),_=(0,n.useCallback)(e=>{let{name:t,value:s}=e.target;if(!y.current){let e=(0,d.gz)();(0,d.u4)(h.qY.FORM_STARTED,{form:"sandbox-signup",...e}),y.current=!0}A(e=>({...e,[t||""]:s})),t&&N[t]&&j(e=>{let{[t]:s,...r}=e;return r}),i&&w("")},[N,i]),k=(0,u.n)({mutationFn:async e=>(await m.Ay.post("/api/sandbox-signup",{name:e.name.trim(),firstName:e.firstName.trim(),lastName:e.lastName.trim(),email:e.email.trim(),isChallenge:t})).data,onSuccess:(e,s)=>{a(!0),w(""),(0,d.ls)(s.email,{name:`${s.firstName} ${s.lastName}`.trim(),first_name:s.firstName,last_name:s.lastName,company:s.name,is_agentic_build_challenge:t,...e.clientId?{sandbox_client_id:e.clientId}:{},...e.leadId?{salesforce_lead_id:e.leadId}:{}});let r=(0,d.gz)(),i={email:s.email,first_name:s.firstName,last_name:s.lastName,company:s.name,is_challenge:t,...e.clientId?{sandbox_client_id:e.clientId}:{},...e.leadId?{salesforce_lead_id:e.leadId}:{},...r};(0,d.u4)(h.qY.FORM_SUBMISSION_SUCCESS,{form:"sandbox-signup",...i}),(0,d.u4)(h.qY.SANDBOX_PROVISIONED,i),t&&(0,d.u4)(h.qY.AGENTIC_BUILD_CHALLENGE_SUBMITTED,i),window.open(h.tl.SANDBOX_PLATFORM,"_blank","noopener,noreferrer")},onError:e=>{if(m.Ay.isAxiosError(e)){let t=e.response?.status,s=e.response?.data;429===t?w("Too many requests. Please try again in a few minutes."):s?.error?w(s.error):w("Something went wrong. Please try again.")}else w("Something went wrong. Please try again.");let t=(0,d.gz)(),s=e instanceof Error?e.message:"Unknown error";(0,d.u4)(h.qY.FORM_SUBMISSION_FAILED,{form:"sandbox-signup",error:s,...t}),(0,d.u4)(h.qY.SANDBOX_PROVISION_FAILED,{error:s,...t})}});if(s){let t=k.variables?.email.trim()??v.email.trim();return(0,r.jsx)("div",{className:"w-full",style:{maxWidth:672},children:(0,r.jsxs)("div",{className:"relative backdrop-blur-2xl animate-fade-in-up border border-white/10 flex flex-col",style:{background:"rgba(6,6,8,0.75)",boxShadow:"0 40px 100px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06)"},children:[(0,r.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-white/10",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("button",{onClick:()=>{a(!1),w(""),j({}),A({name:"",firstName:"",lastName:"",email:""}),y.current=!1},className:"text-white/70 hover:text-white transition-colors cursor-pointer","aria-label":"Go back",children:(0,r.jsx)("div",{className:"border border-white/10 bg-white/[0.04] w-[26px] h-[26px] p-1.5 flex justify-center items-center",children:(0,r.jsx)(x.A,{className:"w-5 h-5 text-white"})})}),(0,r.jsx)("span",{className:"text-sm font-medium text-white/70",children:"Sandbox ready"})]}),e&&(0,r.jsx)("button",{onClick:e,className:"text-white/50 hover:text-white transition-colors cursor-pointer","aria-label":"Close",children:(0,r.jsx)(p.A,{className:"w-5 h-5 text-white/50"})})]}),(0,r.jsxs)("div",{className:"p-6 space-y-5",children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("h3",{className:"text-white text-lg font-medium leading-tight",children:"You're in"}),(0,r.jsx)("p",{className:"text-white/60 text-sm leading-relaxed",children:"Your sandbox account is provisioned. Log in to start building."})]}),(0,r.jsxs)("div",{className:"bg-white/5 border border-white/10 p-4 space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("div",{className:"border border-white/10 bg-white/[0.06] w-[26px] h-[26px] p-1.5 flex justify-center items-center flex-shrink-0 mt-0.5",children:(0,r.jsx)(b.A,{className:"w-5 h-5 text-white"})}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsx)("p",{className:"text-white text-sm font-medium leading-relaxed",children:"Sandbox account provisioned"}),(0,r.jsxs)("p",{className:"text-white/60 text-xs leading-relaxed",children:["Log in with"," ",(0,r.jsx)("span",{className:"text-white/80 font-medium",children:t})," ","to start hitting the Dakota API with test credentials. No KYB required."]})]})]}
1),(0,r.jsxs)("a",{href:h.tl.SANDBOX_PLATFORM,target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,d.u4)(h.qY.SANDBOX_CTA_CLICKED,{email:v.email,...(0,d.gz)()})},className:"flex items-center justify-between gap-2 bg-white hover:bg-white/90 transition-colors px-4 py-3 group shadow-sm",children:[(0,r.jsx)("span",{className:"text-base text-black font-semibold",children:"Try Sandbox Now"}),(0,r.jsx)("div",{className:"bg-black/10 w-[26px] h-[26px] p-1.5 flex justify-center items-center",children:(0,r.jsx)(f.A,{className:"w-5 h-5 text-black group-hover:translate-x-0.5 transition-transform"})})]})]}),(0,r.jsx)("div",{className:"space-y-3 pt-3 border-t border-white/10",children:(0,r.jsxs)("a",{href:h.tl.API_DOCS,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-white/70 hover:text-white/90 transition-colors group",children:[(0,r.jsx)("div",{className:"border border-white/10 bg-white/[0.04] w-[26px] h-[26px] p-1.5 flex justify-center items-center",children:(0,r.jsx)(f.A,{className:"w-5 h-5 text-white group-hover:translate-x-0.5 transition-transform"})}),(0,r.jsx)("span",{className:"text-base",children:"Explore the API documentation"})]})})]})]})})}return(0,r.jsx)("div",{className:"w-full",style:{maxWidth:672},children:(0,r.jsxs)("div",{className:"relative backdrop-blur-2xl border border-white/10",style:{background:"rgba(6,6,8,0.75)",boxShadow:"0 40px 100px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06)"},children:[(0,r.jsxs)("div",{className:"flex items-start justify-between px-6 pt-6 pb-5",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-[24px] font-heading text-white leading-[1.15] tracking-[-0.01em]",children:"Try the sandbox"}),(0,r.jsx)("p",{className:"text-[15px] font-medium leading-[1.5] text-white/55 mt-1.5",children:"Full API access with test keys. No KYB required."})]}),e&&(0,r.jsx)("button",{onClick:e,className:"text-white/50 hover:text-white transition-colors cursor-pointer mt-1","aria-label":"Close",children:(0,r.jsx)(p.A,{className:"w-5 h-5 text-white/50"})})]}),(0,r.jsx)("div",{className:"h-px bg-white/10"}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault();let s=function(e){let t={},s=e.name.trim();0===s.length?t.name="Company name is required":s.length<2?t.name="Company name must be at least 2 characters":s.length>100&&(t.name="Company name must be less than 100 characters"),0===e.firstName.trim().length?t.firstName="First name is required":e.firstName.trim().length>50&&(t.firstName="First name must be less than 50 characters"),0===e.lastName.trim().length?t.lastName="Last name is required":e.lastName.trim().length>50&&(t.lastName="Last name must be less than 50 characters");let r=e.email.trim();return 0===r.length?t.email="Email is required":(r.length>254||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r))&&(t.email="Please enter a valid email address"),t}(v);if(Object.keys(s).length>0)return void j(s);(0,d.u4)(h.qY.FORM_SUBMITTED,{form:"sandbox-signup",email:v.email,first_name:v.firstName,last_name:v.lastName,company:v.name,is_challenge:t,...(0,d.gz)()}),k.mutate(v)},children:[(0,r.jsxs)("div",{className:"p-4",children:[i&&(0,r.jsx)("div",{className:"mb-4 p-3 bg-red-500/10 border border-red-500/20",children:(0,r.jsx)("p",{className:"text-sm text-red-400",children:i})}),(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsx)(c.z,{error:N.name,children:(0,r.jsx)(o.A,{label:"Company name",type:"text",name:"name",value:v.name,onChange:_,placeholder:"Enter your company name",required:!0,autoFocus:!0})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[(0,r.jsx)(c.z,{error:N.firstName,children:(0,r.jsx)(o.A,{label:"First name",type:"text",name:"firstName",value:v.firstName,onChange:_,placeholder:"First name",required:!0})}),(0,r.jsx)(c.z,{error:N.lastName,children:(0,r.jsx)(o.A,{label:"Last name",type:"text",name:"lastName",value:v.lastName,onChange:_,placeholder:"Last name",required:!0})})]}),(0,r.jsx)(c.z,{error:N.email,children:(0,r.jsx)(o.A,{label:"Email",type:"email",name:"email",value:v.email,onChange:_,placeholder:"Enter your email address",required:!0})})]})]}),(0,r.jsx)("div",{className:"h-px bg-white/10"}),(0,r.jsx)("div",{className:"p-4 flex justify-end",children:(0,r.jsx)(l.A,{type:"submit",variant:"default",size:"md",isLoading:k.isPending,disabled:k.isPending,children:k.isPending?"Creating account...":"Create Sandbox Account"})})]})]})})}
1function N(){let[e]=(0,n.useState)(()=>new a.E);return(0,r.jsx)(i.Ht,{client:e,children:(0,r.jsx)(w,{})})}}}]);

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.