1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="949a19c4-9747-406a-a60e-e533564d40be",e._sentryDebugIdIdentifier="sentry-dbid-949a19c4-9747-406a-a60e-e533564d40be")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7124],{4925:(e,t,a)=>{"use strict";a.d(t,{o:()=>r});var r={PaymentAdded:"Payment Added",KYCCompleted:"KYC Completed",KYCNameSubmitted:"KYC Name Submitted",KYCNameSkipped:"KYC Name Skipped",KYCRoleSubmitted:"KYC Role Submitted",KYCRoleSkipped:"KYC Role Skipped",KYCUsesSubmitted:"KYC Uses Submitted",KYCUsesSkipped:"KYC Uses Skipped",GoToProductionSafetyAndLegalStep:"Go To Production Safety And Legal Step",GoToProductionHasUnsafeUseCasesStep:"Go To Production Has Unsafe Use Cases Step",GoToProductionPaymentStep:"Go To Production Payment Step",DefaultAPIKeyCopied:"Default API Key Copied",ApiKeyCreated:"Api Key Created",SignUpClicked:"Sign Up Clicked",UserRegistered:"User Registered",UserInvited:"User Invited",InviteLinkCreated:"Invite Link Created"}},37894:(e,t,a)=>{"use strict";a.d(t,{U:()=>l});var r=a(41695),s=a(1662);let n=new Map,o=e=>{let t=matchMedia(e),a=new Set,r=()=>{for(let e of a)e(t.matches)};return t.addEventListener?t.addEventListener("change",r,{passive:!0}):t.addListener(r),{mql:t,dispatchers:a,listener:r}};function l(e,t={}){let{initializeWithValue:a=!0}=t;s.Bd||(a=!1);let[i,c]=(0,r.useState)(()=>{if(a){let t=n.get(e);return t||(t=o(e),n.set(e,t)),t.mql.matches}});return(0,r.useEffect)(()=>{let t;return(t=n.get(e))||(t=o(e),n.set(e,t)),t.dispatchers.add(c),c(t.mql.matches),()=>{((e,t)=>{let a=n.get(e);if(a){let{mql:r,dispatchers:s,listener:o}=a;s.delete(t),0===s.size&&(n.delete(e),r.removeEventListener?r.removeEventListener("change",o):r.removeListener(o))}})(e,c)}},[e]),i}},47310:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var r=a(65752),s=a(5361),n=a(64154),o=a(37894),l=a(41695),i=a(59011),c=a(64255);let u=function(e){var t=e.step,a=void 0===t?0:t,r=(0,o.U)("(max-width: 768px)"),s=(0,l.useState)(!1),n=s[0],u=s[1];return(0,c.jsx)("div",{className:(0,i.cn)("absolute z-0 h-full w-full overflow-hidden",{"mx-auto bg-[url('/images/kycCellBackgroun
1d.png')] bg-contain bg-no-repeat lg:bg-cover":0===a||n||r}),"data-component":"ZoomingCellBackground","data-source-file":"CellBackground.tsx",children:!r&&a>0&&(0,c.jsx)("video",{preload:"auto",autoPlay:!0,muted:!0,loop:!0,className:(0,i.cn)("h-full w-full object-cover","transition-transform duration-300 ease-in-out",{"scale-100":1===a,"scale-125":2===a,"scale-175":3===a}),onError:function(){u(!0)},children:(0,c.jsx)("source",{src:"/videos/KYC_BG_5K.mp4",type:"video/mp4"})})})};var d=a(45669),m=a.n(d),f=a(5254);let p=function(e){var t=e.className,a=e.children;return(0,c.jsxs)("div",{className:(0,i.cn)("flex items-center justify-between px-7 py-6",void 0===t?"":t),"data-component":"Nav","data-source-file":"Navigation.tsx",children:[(0,c.jsx)(m(),{href:"/",className:"w-fit","data-element":"Link","data-source-file":"Navigation.tsx",children:(0,c.jsx)(f.gu,{className:"w-24","data-element":"Logo","data-source-file":"Navigation.tsx"})}),a]})},g=function(e){var t=e.children,a=e.userEmail,o=e.title,l=e.navigationAction,i=e.videoStep,d=e.showEmailInHeader,m=e.canonicalUrl,f=e.metaDescription;return(0,c.jsxs)("div",{className:"relative flex h-full min-h-screen w-full bg-green-50","data-component":"WelcomePage","data-source-file":"WelcomePage.tsx",children:[(0,c.jsx)(s.ec,{title:o,canonicalUrl:m,metaDescription:f,"data-element":"PageHead","data-source-file":"WelcomePage.tsx"}),(0,c.jsx)(u,{step:void 0===i?0:i,"data-element":"CellBackgroun
1d","data-source-file":"WelcomePage.tsx"}),(0,c.jsxs)("div",{className:"relative mx-auto flex h-full min-h-screen w-full max-w-page flex-col overflow-y-auto",children:[(0,c.jsxs)(p,{className:"top-0 w-full max-w-page md:fixed","data-element":"Navigation","data-source-file":"WelcomePage.tsx",children:[a&&(0,c.jsx)(s.X2,{userEmail:a,app:"dashboard",showEmail:d}),!a&&l&&(0,c.jsx)(n.EY,{styleAs:"p-lg",as:"span",className:"capitalize",children:(0,c.jsx)(r.nk,{action:l,className:"no-underline"})})]}),(0,c.jsx)("div",{className:"my-auto w-full px-6 pb-6 md:mx-auto md:w-fit md:px-0 md:py-4",children:(0,c.jsx)("div",{className:"flex w-full flex-col rounded-lg border border-marble-400 bg-white p-6 md:w-modal md:p-10",children:t})})]})]})}},57943:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/welcome/about-you",function(){return a(97675)}])},97675:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>_,default:()=>K});var r=a(33464),s=a(29408),n=a(16743),o=a.n(n),l=a(20674),i=a(22868),c=a(41695),u=a(1015),d=a(73614),m=a(65752),f=a(5361),p=a(64154),g=a(59011),h=a(40517),b=a(4925),x=a(64255);function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function w(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?y(Object(a),!0).forEach(function(t){(0,r.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):y(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let v=function(e){var t,a=e.kycForm,r=a.formValues,n=a.onNextStep,l=(0,g.st)().analytics,i=(0,h.mN)(),c=i.register,u=i.watch,d=i.handleSubmit,m=i.formState.errors,f=(t=(0,s.A)(o().mark(function e(t){var a,r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=t.name.trim(),r=t.lastName.trim(),null==l||l.track(b.o.KYCNameSubmitted,{name:a,lastName:r}),n({name:a,lastName:r,marketingEmailsOpted:t.marketingEmailsOpted});case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)});return(0,x.jsxs)("form",{className:"flex w-full flex-col items-center",onSubmit:d(f),"data-component":"Name","data-source-file":"Name.tsx",children:[(0,x.jsx)(p.EY,{as:"h1",styleAs:"h3",className:"mb-10 mt-6 w-full text-center lg:mb-14 lg:w-4/5","data-element":"Text","data-source-file":"Name.tsx",children:"Let's get to know you better"}),(0,x.jsxs)("div",{className:"flex w-full flex-col",children:[(0,x.jsx)(p.pd,w(w({className:"w-full",label:"First Name",placeholder:"First name",type:"text",stackPosition:"start",defaultValue:r.name,hasError:!!m.name,errorText:"Please provide your name"},c("name",{required:!0})),{},{"data-element":"Input","data-source-file":"Name.tsx"})),(0,x.jsx)(p.pd,w(w({className:"mb-10 w-full lg:mb-14",label:"Last Name",placeholder:"Last name",type:"text",stackPosition:"end",defaultValue:r.lastName,hasError:!!m.lastName,errorText:"Please provide your last name"},c("lastName",{required:!0})),{},{"data-element":"Input","data-source-file":"Name.tsx"})),(0,x.jsx)(p.Sc,w(w({},c("marketingEmailsOpted")),{},{checked:u("marketingEmailsOpted",r.marketingEmailsOpted),theme:"coral",label:"I would like to receive email updates about new products or services, newsletters and/or promotional or marketing materials from cohere. I may withdraw my consent at any time by unsubscribing.","data-element":"Checkbox","data-source-file":"Name.tsx"}))]}),(0,x.jsx)(p.$n,{label:"Continue",type:"submit",splitIcon:"arrow-right",className:"mt-6 w-full md:w-fit lg:mt-10","data-element":"Button","data-source-file":"Name.tsx"})]})};var j={usage:["Content Moderation","Text Classification","Semantic Search","User Intent Recognition","Text Generation","Entity Extraction","Text Summarization","Chat"],roles:[].concat(["Machine Learning Engineer","Software Engineer","Data Scientist","Researcher"],["Product Manager","Student"])},S="kyc_storage";function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function O(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?N(Object(a),!0).forEach(function(t){(0,r.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):N(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let k=function(e){var t=e.kycForm,a=t.formValues,r=t.onNextStep,s=(0,c.useRef)(null),n=(0,g.st)().analytics,o=(0,h.mN)({mode:"onChange",defaultValues:{role:a.role,otherRole:a.otherRole}}),l=o.register,i=o.handleSubmit,u=o.setValue,d=o.setError,m=o.clearErrors,f=o.formState.errors,y=o.watch;return(0,x.jsxs)("form",{onSubmit:i(function(e){if(e.role||e.otherRole)null==n||n.track(b.o.KYCRoleSubmitted,{role:e.role,otherRole:e.otherRole}),r({role:e.role,otherRole:e.otherRole||""});else{var t;d("role",{type:"manual",message:"Please let us know what your current role is."}),null==s||null==(t=s.current)||t.scrollIntoView()}}),className:"flex w-full flex-col","data-component":"Role","data-source-file":"Role.tsx",children:[(0,x.jsx)(p.EY,{as:"h1",styleAs:"h3",className:"mb-10 mt-6 w-full text-center lg:mb-14","data-element":"Text","data-source-file":"Role.tsx",children:"What is your role?"}),(0,x.jsx)(p.EY,{className:"mb-3","data-element":"Text","data-source-file":"Role.tsx",children:"Please select one option."}),(0,x.jsx)(p.zW,{options:j.roles,selectedOption:y("role"),className:"mb-10",onChange:function(e){m(),u("role",e),u("otherRole","")},"data-element":"RadioButtonGroup","data-source-file":"Role.tsx"}),(0,x.jsx)(p.pd,O(O({className:"w-full",label:(0,x.jsx)(p.EY,{as:"span",children:"Specify anything else below."}),kind:"default",placeholder:"eg. Marketing Specialist - Chief Wizard",type:"text",defaultValue:a.otherRole},l("otherRole",{required:!1,onChange:function(e){e.target.value.length>0&&(u("otherRole",e.target.value),u("role",""))}})),{},{"data-element":"Input","data-source-file":"Role.tsx"})),(0,x.jsx)("div",{ref:s,children:f.role&&(0,x.jsx)(p.EY,{className:"mt-4 text-danger-500",children:f.role.message})}),(0,x.jsx)(p.$n,{label:"Continue",type:"submit",splitIcon:"arrow-right",className:"mt-6 w-full self-center md:w-fit lg:mt-10","data-element":"Button","data-source-file":"Role.tsx"})]})};function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function C(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?P(Object(a),!0).forEach(function(t){(0,r.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):P(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let E=function(e){var t=e.kycForm,a=t.isSubmitting,r=t.formValues,s=t.onNextStep,n=(0,c.useRef)(null),o=(0,g.st)().analytics,l=(0,h.mN)({mode:"onChange",defaultValues:{use:[]}}),i=l.register,u=l.handleSubmit,d=l.clearErrors,m=l.setValue,f=l.setError,y=l.watch,w=l.formState.errors;return(0,x.jsxs)("form",{className:"flex w-full flex-col",onSubmit:u(function(e){if(e.use&&0!==e.use.length||e.otherUse){var t,a=e.use.join(", ");null==o||o.track(b.o.KYCUsesSubmitted,{use:a,otherUse:e.otherUse||""}),s({use:a,otherUse:e.otherUse||""})}else f("use",{type:"manual",message:"Please let us know what you plan to do with Cohere."}),null==n||null==(t=n.current)||t.scrollIntoView()}),"data-component":"Usage","data-source-file":"Usage.tsx",children:[(0,x.jsx)(p.EY,{as:"h1",styleAs:"h3",className:"mb-10 mt-6 w-full self-center text-center lg:mb-14 lg:w-4/5","data-element":"Text","data-source-file":"Usage.tsx",children:"What do you plan to do with Cohere?"}),(0,x.jsx)(p.EY,{className:"mb-3","data-element":"Text","data-source-file":"Usage.tsx",children:"Please select all options that apply."}),(0,x.jsx)(p.tk,{className:"mb-10",options:j.usage,selectedOptions:y("use"),onChange:function(e){d(),m("use",e)},"data-element":"MultiSelectButtonGroup","data-source-file":"Usage.tsx"}),(0,x.jsx)(p.pd,C(C({className:"w-full",label:(0,x.jsx)(p.EY,{as:"span",children:"Specify anything else below."}),kind:"default",placeholder:"e.g. Make Chatbots Sound Human",type:"text",defaultValue:r.otherUse},i("otherUse",{onChange:function(e){d(),e.target.value.length>0&&m("otherUse",e.target.value)}})),{},{"data-element":"Input","data-source-file":"Usage.tsx"})),(0,x.jsx)("div",{ref:n,children:w.use&&(0,x.jsx)(p.EY,{className:"mt-2 text-danger-500",children:w.use.message})}),(0,x.jsx)(p.$n,{id:"kycSubmitButton",disabled:a,type:"submit",label:a?"Submitting...":"Submit",splitIcon:"arrow-right",className:"mt-6 w-full self
1-center md:w-fit lg:mt-10","data-element":"Button","data-source-file":"Usage.tsx"})]})};var U=a(47310);function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function Y(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?R(Object(a),!0).forEach(function(t){(0,r.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):R(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var I=["1","2","3"];let A=function(){var e,t=(0,g.st)().analytics,a=(0,i.useRouter)(),r=(0,m.aw)(),n=(0,f.u)(g.$v.playgroundAfterOnboarding),h=(0,m.wV)().session,y=null==h?void 0:h.user,w=(0,c.useState)(1),j=w[0],N=w[1],O=(0,c.useState)(!1),P=O[0],C=O[1],R=(0,c.useState)(!1),A=R[0],_=R[1],K=(0,c.useState)({name:"",lastName:"",role:"",otherRole:"",use:"",otherUse:"",orgName:"",marketingEmailsOpted:!1}),D=K[0],T=K[1],L=(0,u.Q)(),V=(e=(0,s.A)(o().mark(function e(a){var r,s;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),r={agreementType:d.Z$.PROFILE_SETUP,agreementData:a},e.prev=2,e.next=5,L.agreeToOnboarding(r);case 5:s={userId:null==y?void 0:y.id,orgId:null==y?void 0:y.organization.id,email:null==y?void 0:y.email,userName:a.name,lastName:a.lastName,userOrgName:"",userRole:a.role,otherRole:a.otherRole,userInterest:a.use,otherUserInterest:a.otherUse,canCreateProductionKeys:null==y?void 0:y.organization.can_create_production_keys},null==t||t.track(b.o.KYCCompleted,s),sessionStorage.removeItem(S),B(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),console.error(e.t0);case 14:return e.prev=14,C(!1),e.finish(14);case 17:case"end":return e.stop()}},e,null,[[2,11,14,17]])})),function(t){return e.apply(this,arguments)}),B=function(){var e,t,s=l.A.get("redirect_uri");s?(l.A.remove("redirect_uri"),a.push((0,m.qt)(null!=(e=null==(t=r.login)?void 0:t.allowedRedirectUris)?e:[],s,r.baseUrl))):n?a.push("/playground"):a.push("/")},G=function(e){var t=Y(Y({},D),e);j<I.length?(N(function(e){return e+1}),T(t),sessionStorage.setItem(S,JSON.stringify(t))):j===I.length&&V(t)};return(0,c.useEffect)(function(){var e=sessionStorage.getItem(S);if(e)try{T(JSON.parse(e))}catch(e){}_(!0)},[]),(0,x.jsxs)(U.A,{title:"About You",userEmail:null==y?void 0:y.email,videoStep:j,showEmailInHeader:!0,"data-element":"WelcomePage","data-component":"AboutYou","data-source-file":"AboutYou.tsx",children:[(0,x.jsx)(p.fH,{currentStep:j-1,steps:I,labelShowState:"never","data-element":"StepTracker","data-source-file":"AboutYou.tsx"}),A&&({1:(0,x.jsx)(v,{kycForm:{isSubmitting:P,formValues:D,onNextStep:G}}),2:(0,x.jsx)(k,{kycForm:{isSubmitting:P,formValues:D,onNextStep:G}}),3:(0,x.jsx)(E,{kycForm:{isSubmitting:P,formValues:D,onNextStep:G}})})[j],j>1&&(0,x.jsxs)("div",{className:"mt-6 flex items-center justify-between lg:mt-10",children:[(0,x.jsx)(p.$n,{label:"Back",kind:"secondary",onClick:function(){N(function(e){return e-1})},className:"w-fit"}),(0,x.jsx)(p.$n,{label:(0,x.jsx)(p.EY,{className:"text-green-700",children:"Skip this step"}),type:"button",kind:"secondary",onClick:function(){2===j?(null==t||t.track(b.o.KYCRoleSkipped),G({role:"",otherRole:""})):3===j&&(null==t||t.track(b.o.KYCUsesSkipped),G({use:"",otherUse:""}))},className:"w-fit"})]})]})};var _=!0;let K=function(){return(0,x.jsx)(A,{"data-element":"AboutYou","data-component":"AboutYouPage","data-source-file":"about-you.tsx"})}}},e=>{e.O(0,[517,636,6593,8792],()=>e(e.s=57943)),_N_E=e.O()}]);
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.