PageSourceSearch

https://app.coachaa.ai/_next/static/chunks/610-ed7546c53eada18d.js

js coachaa.ai collected 2026-10-05 15:30:24 UTC 15,861 bytes, 1 lines download raw bytes

1try{!function(){var 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]="4bab6f74-3813-4aa7-b0d1-204f5be8d998",e._sentryDebugIdIdentifier="sentry-dbid-4bab6f74-3813-4aa7-b0d1-204f5be8d998")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[610],{5873:(e,t,r)=>{r.d(t,{y:()=>i});var a=r(89676),n=r(10372),s=r(81215);class o{async signIn(e){let{email:t,password:r}=e,{data:n,error:s}=await a.N.auth.signInWithPassword({email:t,password:r});if(s&&!(null==n?void 0:n.session))throw null!=s?s:Error();return n.session}async signInWithGoogle(e){let t=window.location.origin;if(!t)throw Error("Unable to resolve application origin for Google sign-in.");let r=new URL(n.LV.oauthCallback,t);r.searchParams.set("flow",e);let{error:s}=await a.N.auth.signInWithOAuth({provider:"google",options:{redirectTo:r.toString()}});if(s)throw Error(s.message)}async signUpTrial(e){let{error:t}=await s.u.Post("users/trial-signup",e);if(t)throw Error("string"==typeof t?t:"Unable to sign up")}async signOut(){let{error:e}=await a.N.auth.signOut();if(e)throw Error(e.message)}}let i=new o},6004:(e,t,r)=>{r.d(t,{C5:()=>b,MJ:()=>m,eI:()=>f,lR:()=>h,lV:()=>d,zB:()=>u});var a=r(58556),n=r(50128),s=r(40358),o=r(17118),i=r(63347),c=r(67140);let d=o.Op,l=n.createContext({}),u=e=>{let{...t}=e;return(0,a.jsx)(l.Provider,{value:{name:t.name},children:(0,a.jsx)(o.xI,{...t})})},p=()=>{let e=n.useContext(l),t=n.useContext(g),{getFieldState:r}=(0,o.xW)(),a=(0,o.lN)({name:e.name}),s=r(e.name,a);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:"".concat(i,"-form-item"),formDescriptionId:"".concat(i,"-form-item-description"),formMessageId:"".concat(i,"-form-item-message"),...s}},g=n.createContext({});function f(e){let{className:t,...r}=e,s=n.useId();return(0,a.jsx)(g.Provider,{value:{id:s},children:(0,a.jsx)("div",{"data-slot":"form-item",className:(0,i.cn)("grid gap-2",t),...r})})}function h(e){let{className:t,children:r,...s}=e,{error:o,formItemId:d}=p(),l=n.useMemo(()=>r?n.Children.toArray(r).flatMap((e,t)=>{if("string"!=typeof e||!e.includes("*"))return e;let r=e.split("*");return r.flatMap((e,n)=>{let s=[];return e?s.push(e):0===n&&s.push(""),n<r.length-1&&s.push((0,a.jsx)("span",{className:"text-destructive",children:"*"},"asterisk-".concat(t,"-").concat(n))),s})}):r,[r]);return(0,a.jsx)(c.J,{"data-slot":"form-label","data-error":!!o,className:(0,i.cn)("data-[error=true]:text-destructive",t),htmlFor:d,...s,children:l})}function m(e){let{...t}=e,{error:r,formItemId:n,formDescriptionId:o,formMessageId:i}=p();return(0,a.jsx)(s.DX,{"data-slot":"form-control",id:n,"aria-describedby":r?"".concat(o," ").concat(i):"".concat(o),"aria-invalid":!!r,...t})}function b(e){var t;let{className:r,...n}=e,{error:s,formMessageId:o}=p(),c=s?String(null!=(t=null==s?void 0:s.message)?t:""):n.children;return c?(0,a.jsx)("p",{"data-slot":"form-message",id:o,className:(0,i.cn)("text-destructive text-sm",r),...n,children:c}):null}},10372:(e,t,r)=>{r.d(t,{Cc:()=>i,LV:()=>a,OR:()=>c,VJ:()=>l,YU:()=>p,c4:()=>s,e_:()=>u,ot:()=>d,rF:()=>n,xn:()=>o});let a={singIn:"/sign-in",signUp:"/trial/sign-up",oauthCallback:"/auth/callback",forgotPassword:"/forgot-password",resetPassword:"/reset-password",firstLogIn:"/first-log-in"},n={analyzedCall:"/trial/analyzed-call"}
1,s="/workspaces",o="/workspaces/{id}",i="/workspaces/{id}/dashboard",c="/workspaces/{id}/kanban",d={analyzedCalls:"/workspaces/{id}/platform/analyzed-calls",callPreparation:"/workspaces/{id}/platform/call-preparation",reportsEod:"/workspaces/{id}/platform/reports-eod",createReportsEod:"/workspaces/{id}/platform/reports-eod/create",editReportsEod:"/workspaces/{id}/platform/reports-eod/{eodId}/edit"},l={products:"/workspaces/{id}/configuration/products",scripts:"/workspaces/{id}/configuration/scripts",pitches:"/workspaces/{id}/configuration/pitches",avatars:"/workspaces/{id}/configuration/avatars",onboarding:"/workspaces/{id}/configuration/onboarding",businessDescription:"/workspaces/{id}/configuration/business-description",playbook:"/workspaces/{id}/configuration/playbook",eod:"/workspaces/{id}/configuration/eod",createEod:"/workspaces/{id}/configuration/eod/create"},u={mbti:"/workspaces/{id}/environment/mbti",discProfile:"/workspaces/{id}/environment/profil-disc"},p={main:"/settings",profile:"/settings/profile",accountPlanRoute:"/settings/account-plan",preferences:"/settings/preferences",workspaces:"/settings/workspaces",workspacesCreate:"/settings/workspaces/create",workspacesManageUsers:"/settings/workspaces/manage-users",users:"/settings/users",usersCreate:"/settings/users/create",usersEdit:"/settings/users/{id}/edit",usersUpdatePassword:"/settings/users/{id}/reset-password"}},11428:(e,t,r)=>{r.d(t,{C:()=>h});var a=r(38856),n=r(57319),s=r(17925),o=r(17118),i=r(53123),c=r(4030),d=r(50128),l=r(41462),u=r(46784),p=r(5873),g=r(76008),f=r(10372);function h(){let e=(0,n.useRouter)(),t=(0,s.c3)("auth"),{signIn:r,isLoading:h}=function(){let e=(0,s.c3)("auth"),{showSucessToast:t,showErrorToast:r}=(0,u.d)(),{mutateAsync:a,isPending:n}=(0,c.useMutation)({mutationKey:["signInService"],mutationFn:e=>p.y.signIn(e),onSuccess:r=>{(null==r?void 0:r.access_token)?(0,g.Ur)(null==r?void 0:r.access_token):t(e("signIn.toast.error.title"),{description:e("signIn.toast.error.description")})},onError:t=>{let a=t.message||e("signIn.toast.error.description");r(e("signIn.toast.error.title"),{description:a})}});return{signIn:a,isLoading:n}}(),{showErrorToast:m}=(0,u.d)(),[b,w]=(0,d.useState)(!1),v=a.z.object({email:a.z.string({required_error:t("signIn.formValidation.email.required")}).email({message:t("signIn.formValidation.email.invalid")}).trim(),password:a.z.string({required_error:t("signIn.formValidation.password.required")}).trim().min(8,{message:t("signIn.formValidation.password.minLength")}).regex(/[A-Z]/,{message:t("signIn.formValidation.password.uppercase")}).regex(/\d/,{message:t("signIn.formValidation.password.number")}).regex(/[@#*]/,{message:t("signIn.formValidation.password.specialCharacter")})}),y=(0,o.mN)({resolver:(0,i.u)(v),mode:"onTouched",defaultValues:{email:"",password:""}}),{mutateAsync:x}=(0,c.useMutation)({mutationKey:["signOutService"],mutationFn:async()=>await p.y.signOut()});return{form:y,onSubmit:async t=>{let a={email:t.email,password:t.password},n=await r(a);(null==n?void 0:n.access_token)?(l.q.invalidateQueries({queryKey:["signInService"]}),e.replace(f.c4)):await x()},isLoading:h,onGoogleSignIn:async()=>{w(!0);try{await p.y.signInWithGoogle("signin")}catch(e){m("Connexion Google \xe9chou\xe9e",{description:e instanceof Error?e.message:"Impossible de se connecter avec Google."})}finally{w(!1)}},isGoogleLoading:b}}},29822:(e,t,r)=>{r.d(t,{p:()=>s});var a=r(58556);r(50128);var n=r(63347);function s(e){let{className:t,type:r,...s}=e;return(0,a.jsx)("input",{type:r,"data-slot":"input",className:(0,n.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...s})}},41462:(e,t,r)=>{r.d(t,{q:()=>a});let a=new(r(48391)).E({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}})},46784:(e,t,r)=>{r.d(t,{d:()=>s});var a=r(50128),n=r(27035);let s=()=>{let e=(0,a.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.oR)(e,{description:t.description,action:t.action})},[]),t=(0,a.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.oR.error(e,{description:t.description,action:t.action,style:{background:"#d85b5d",color:"#fafafa",border:"none"}})},[]),r=(0,a.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.oR.success(e,{description:t.description,action:t.action})},[]);return(0,a.useMemo)(()=>({showToast:e,showSucessToast:r,showErrorToast:t}),[e,r,t])}},65948:(e,t,r)=>{r.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>i,Zp:()=>s,aR:()=>o,wL:()=>l});var a=r(58556);r(50128);var n=r(63347);function s(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6 border shadow-[0_3px_12px_0_rgba(0,0,0,0.08)] transition-shadow border-[#F0EFED]",t),...r})}function o(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...r})}function i(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-title",className:(0,n.cn)("leading-none font-semibold",t),...r})}function c(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-description",className:(0,n.cn)("text-muted-foreground text-sm",t),...r})}function d(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",t),...r})}function l(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-footer",className:(0,n.cn)("flex items-center px-6 [.border-t]:pt-6",t),...r})}},67140:(e,t,r)=>{r.d(t,{J:()=>
1o});var a=r(58556);r(50128);var n=r(68849),s=r(63347);function o(e){let{className:t,...r}=e;return(0,a.jsx)(n.b,{"data-slot":"label",className:(0,s.cn)("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",t),...r})}},76008:(e,t,r)=>{r.d(t,{Hp:()=>l,IH:()=>u,Ur:()=>i});var a=r(50683),n=r(74531),s=r(89676);let o="";function i(e){o=e}async function c(){let{data:e}=await s.N.auth.getSession();return null!==e&&null!==e.session?(o=e.session.access_token,e.session.access_token):null}let d=(0,a.UU)({url:"".concat("https://api.coachaa.ai","/graphql"),exchanges:[a.WG,(0,n.K)(async e=>(await c(),{addAuthToOperation:t=>o?e.appendHeaders(t,{Authorization:"Bearer ".concat(o)}):t,didAuthError:(e,t)=>e.graphQLErrors.some(e=>e.message.includes("Authorization")||e.message.includes("Unauthorized")),async refreshAuth(){var e,t;let{data:r}=await s.N.auth.refreshSession(),a=null!=(t=null==r||null==(e=r.session)?void 0:e.access_token)?t:null;o=a?a:""}})),a.cI],preferGetMethod:!1,fetchOptions:{method:"POST",headers:{"Content-Type":"application/json"}}});function l(e,t,r){return d.query(e,null!=t?t:{},{requestPolicy:"network-only"}).toPromise().then(e=>{if(e.error){if((null==r?void 0:r.allowPartialData)&&e.data&&!e.error.networkError)return e.data;throw e.error}return e.data})}function u(e,t){return d.mutation(e,null!=t?t:{}).toPromise().then(e=>{if(e.error)throw e.error.graphQLErrors.reduce((e,t)=>{var r;return"".concat(e," ").concat(null==(r=t.originalError)?void 0:r.message)},"").trim()||e.error;return e.data})}},81215:(e,t,r)=>{r.d(t,{u:()=>o});var a=r(89676);let n=async()=>{let{data:e}=await a.N.auth.getSession();return null!==e&&null!==e.session?e.session.access_token:null},s=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;try{let o=await fetch(e,t);if(401===o.status&&0===r){var n;let{data:o}=await a.N.auth.getSession();if(!(null==o?void 0:o.session))return{data:null,error:"Session expir\xe9e"};let{data:i,error:c}=await a.N.auth.refreshSession();if(c||!(null==i||null==(n=i.session)?void 0:n.access_token))return{data:null,error:"Session expir\xe9e"};let d={...t.headers,Authorization:"Bearer ".concat(i.session.access_token)};return s(e,{...t,headers:d},r+1)}if(!o.ok){let e=await o.json().catch(()=>o.statusText);return{data:null,error:e}}return{data:await o.json(),error:null}}catch(e){return{data:null,error:e}}},o={Get:async e=>{let t=await n(),r="".concat("https://api.coachaa.ai","/").concat(e),{data:a,error:o}=await s(r,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t),"x-client-platform":"web"}});return o?{data:null,error:o}:{data:(null==a?void 0:a.data)||a,total:null==a?void 0:a.total,page:null==a?void 0:a.page,error:null}},Post:async(e,t)=>{let r=await n(),a=t instanceof FormData,o={Authorization:"Bearer ".concat(r),"x-client-platform":"web"};a||(o["Content-Type"]="application/json");let i=e.includes("https")?e:"".concat("https://api.coachaa.ai","/").concat(e),{data:c,error:d}=await s(i,{method:"POST",headers:o,body:a?t:JSON.stringify(t)});return{data:c,error:d}},Put:async(e,t)=>{let r=await n(),a="".concat("https://api.coachaa.ai","/").concat(e),{data:o,error:i}=await s(a,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r),"x-client-platform":"web"},body:JSON.stringify(t)});return{data:o,error:i}},Delete:async(e,t)=>{let r=await n(),a="".concat("https://api.coachaa.ai","/").concat(e),{data:o,error:i}=await s(a,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)},body:t?JSON.stringify(t):void 0});return{data:o,error:i}},Patch:async(e,t)=>{let r=await n(),a="".concat("https://api.coachaa.ai","/").concat(e),{data:o,error:i}=await s(a,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r),"x-client-platform":"web"},body:JSON.stringify(t)});return{data:o,error:i}}}},82710:(e,t,r)=>{r.d(t,{$:()=>c,r:()=>i});var a=r(58556);r(50128);var n=r(40358),s=r(78895),o=r(63347);let i=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",transparant:"bg-primary/10 text-primary shadow-xs hover:bg-primary/15",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function c(e){let{className:t,variant:r,size:s,asChild:c=!1,...d}=e,l=c?n.DX:"button";return(0,a.jsx)(l,{"data-slot":"button",className:(0,o.cn)(i({variant:r,size:s,className:t})),...d})}},89676:(e,t,r)=>{r.d(t,{N:()=>a});let a=(0,r(34123).createBrowserClient)("https://tzwucnunnzjferiflhbc.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InR6d3VjbnVubnpqZmVyaWZsaGJjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzE4Mjc0NTQsImV4cCI6MjA4NzQwMzQ1NH0.QcO-NiBcu9CwBezySjx6pqW
1jMK03DCZhXldXMrX_msM")}}]);

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.