1try{let e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6a59d1e7-1cd9-4736-ba36-16fb9701febc",e._sentryDebugIdIdentifier="sentry-dbid-6a59d1e7-1cd9-4736-ba36-16fb9701febc")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4909],{10043:(e,n,t)=>{"use strict";t.d(n,{IC:()=>O,Ay:()=>R,wV:()=>N});var r=t(71582),i=t(98825),o=t(35955),a=t(27974),s=t(19702),c=t(68670),u=t(85302),l=t(98926),d=t(83774),g=t(36950),f=t(9795),h=t(75265),m=t(55147),p=t(78007),k=t(91291),v=t(81654),y=t(22942),S=t(31737),A=t(37828),b=t(97632),_=t(12775),w=t(60191),L=t(52175),I={Auth:{region:"eu-west-1",userPoolId:L.Ay.userPoolId,userPoolWebClientId:L.Ay.clientId,authenticationFlowType:"CUSTOM_AUTH"}},P=!1,T=t(15340),U=t(49530),B=t(61164);function C(e){return!!(e===p.pi.login||e===p.pi.signup||e===p.pi.loginUnprotected||e===p.pi.registerUnprotected||e===p.pi.landing||e===p.Kc.onboarding||e===p.Kc.newDevice||e===p.Kc.maintenance||e.startsWith("/dashboard")||e.startsWith("/my-brand")||e.startsWith("/landing")||e.startsWith("/recording")||e.startsWith("/profile-designer")||e.startsWith("/maintenance"))}var O=(0,g.createContext)(null);function R(e){var n,R,N,E=e.children,D=(0,h.jE)(),V=(0,d.useRouter)(),x=(0,l.As)(),j=x.isLoggedIn,F=x.isLoading,q=x.auth,H=null!=(n=null==q?void 0:q.cookieToken)?n:"",M=(0,s._)((0,g.useState)({isCognitoUserAuthenticated:!1,cognitoUser:null}),2),K=M[0],Y=M[1],z=K.isCognitoUserAuthenticated,G=K.cognitoUser,Z=(0,S.f)(function(e){return e.isProtectedRoute}),W=(0,S.f)(function(e){return e.isSigningOut}),Q=(0,S.f)(function(e){return e.blockHelloTokenBackfill}),J=(0,y.n)(function(e){return e.token}),X=!!(j&&!Q),$=(0,d.usePathname)(),ee=(0,s._)((0,g.useState)(!1),2),en=ee[0],et=ee[1],er=(0,s._)((0,g.useState)(!1),2),ei=er[0],eo=er[1],ea=(0,g.useRef)(null),es=(0,m.I)(b.t.maintenance({dev:k.LQ})).data,ec=(null!=es?es:{}).maintenance,eu=(0,v.A)(),el=eu.isBasic,ed=eu.isAdvanced,eg=eu.isOrgAdmin,ef=eu.isOrgSuperAdmin,eh=eu.isOrg,em=eh||eg||ef,ep=(0,A.A)(),ek=ep.data,ev=ep.isLoading,ey=ep.isPending,eS=ep.isSuccess,eA=ep.isError,eb=ep.refetch,e_=(null!=ek?ek:{}).permissions;(0,g.useEffect)(function(){(null==ek?void 0:ek.cognitoId)&&S.f.getState().setAccountBootstrapComplete(!0)},[null==ek?void 0:ek.cognitoId]);var ew=!!(null==ek?void 0:ek.cognitoId),eL=(0,g.useMemo)(function(){return X&&H?"hello":z?"cognito":null},[X,H,z]),eI=!!(X||z||J&&!(0,B.xP)(J)),eP=(0,g.useCallback)(function(){return(0,r._)(function(){var e;return(0,c.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,t.e(8782).then(t.bind(t,98782))];case 1:return[4,n.sent().Auth.currentAuthenticatedUser()];case 2:return Y({isCognitoUserAuthenticated:!!(e=n.sent()),cognitoUser:e}),[3,4];case 3:return n.sent(),Y({isCognitoUserAuthenticated:!1,cognitoUser:null}),[3,4];case 4:return[2]}})})()},[]),eT=(0,g.useCallback)(function(e){return(0,r._)(function(){var n,i,o;return(0,c.YH)(this,function(a){switch(a.label){case 0:return[4,(0,r._)(function(){var n,r,i,o,a,s,u,l,d,g,f,h;return(0,c.YH)(this,function(c){switch(c.label){case 0:return o={grant_type:"authorization_code",client_id:L.Ay.clientId,code:e,redirect_uri:"".concat(L.Ay.dashboardURL,"/login")},[4,fetch("https://".concat(null!=(n=null===L.Ay||void 0===L.Ay||null==(i=L.Ay.awsconfig)||null==(r=i.oauth)?void 0:r.domain)?n:"","/oauth2/token"),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(o).toString()})];case 1:if((a=c.sent()).ok)return[3,3];return[4,a.json()];case 2:throw c.sent();case 3:return[4,a.json()];case 4:var m,p,k;if(!((void 0===(m=s=c.sent())?"undefined":(0,T._)(m))==="object"&&null!==m&&"string"==typeof m.id_token&&m.id_token.length>0&&"string"==typeof m.access_token&&m.access_token.length>0&&"string"==typeof m.refresh_token&&m.refresh_token.length>0))throw Error("Invalid SSO token response");return u=new U.Yw({IdToken:s.id_token}),l=new U.pD({AccessToken:s.access_token}),d=new U.c9({RefreshToken:s.refresh_token}),g=u.payload.email,f=new U.NE({UserPoolId:null!=(p=L.Ay.userPoolId)?p:"",ClientId:null!=(k=L.Ay.clientId)?k:""}),(h=new U.TU({Username:g,Pool:f}
1)).setSignInUserSession(new U.p4({AccessToken:l,IdToken:u,RefreshToken:d})),[4,t.e(8782).then(t.bind(t,98782))];case 5:return[4,c.sent().Auth.currentSession()];case 6:return[2,{idToken:c.sent().getIdToken().getJwtToken(),cognitoUser:h}]}})})()];case 1:return i=(n=a.sent()).idToken,o=n.cognitoUser,y.n.getState().setToken(i),(0,_.t_)(i),Y({isCognitoUserAuthenticated:!0,cognitoUser:o}),S.f.getState().setIsDoneFetchingToken(!0),[2]}})})()},[]),eU=(0,g.useCallback)(function(){return(0,r._)(function(){var e,n,i,o,a;return(0,c.YH)(this,function(s){switch(s.label){case 0:S.f.getState().setSigningOut(!0),S.f.getState().setAccountBootstrapComplete(!1),(0,f.flushSync)(function(){eo(!0)}),e=G,n=function(e){try{var n=new URL(L.Ay.homePageURL).hostname,t=new URL(L.Ay.dashboardURL).hostname,r=new URL(L.Ay.otuBaseWebURL).hostname,i=window.location.hostname;if(i===n&&i===t&&i===r)return!C(e);if(i===r||i===n&&i!==t)return!0;if(i===n&&i===t)return!C(e)}catch(e){}return!1}($),(0,_.KM)(),y.n.getState().setToken(null),window.localStorage.removeItem(y.K),D.clear(),S.f.getState().setIsDoneFetchingToken(!0);try{null==e||e.signOut()}catch(e){}if((0,r._)(function(){return(0,c.YH)(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),[4,t.e(8782).then(t.bind(t,98782))];case 1:return[4,e.sent().Auth.signOut()];case 2:case 3:return e.sent(),[3,4];case 4:return[2]}})})(),!n)return[3,7];if(i=!1,!(j&&1))return[3,6];i=!0,o="".concat(window.location.origin).concat(window.location.pathname).concat(window.location.search),a="/api/hellocoop?op=logout&target_uri=".concat(encodeURIComponent(o)),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(a,{credentials:"include",method:"GET",redirect:"follow"})];case 2:case 3:return s.sent(),[3,4];case 4:return[4,V.refresh()];case 5:s.sent(),S.f.getState().setBlockHelloTokenBackfill(!0),ea.current&&clearTimeout(ea.current),ea.current=setTimeout(function(){ea.current=null,S.f.getState().blockHelloTokenBackfill&&window.location.reload()},5e3),s.label=6;case 6:return i||S.f.getState().setBlockHelloTokenBackfill(!1),Y({isCognitoUserAuthenticated:!1,cognitoUser:null}),(0,f.flushSync)(function(){eo(!1)}),S.f.getState().setSigningOut(!1),eP(),[2];case 7:if(j)return window.location.replace("/api/hellocoop?op=logout&target_uri=".concat(encodeURIComponent(p.pi.login))),[2];return window.location.replace(p.pi.login),[2]}})})()},[G,j,D,$,V,eP]);(0,g.useEffect)(function(){P||(w.H.configure(I),P=!0)},[]),(0,g.useEffect)(function(){en||et(!0)},[en]),(0,g.useEffect)(function(){eP()},[eP]),(0,g.useEffect)(function(){!W&&(!J||(0,B.xP)(J))&&en&&!F&&(Q&&j&&H||(j&&H?(y.n.getState().setToken(H),(0,_.t_)(H),S.f.getState().setIsDoneFetchingToken(!0)):(0,r._)(function(){var e;return(0,c.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,4,5]),[4,t.e(8782).then(t.bind(t,98782))];case 1:return[4,n.sent().Auth.currentSession()];case 2:return e=n.sent().getIdToken().getJwtToken(),y.n.getState().setToken(e),(0,_.t_)(e),[3,5];case 3:return n.sent(),[3,5];case 4:return S.f.getState().setIsDoneFetchingToken(!0),[7];case 5:return[2]}})})()))},[Q,H,J,j,en,F,W]),(0,g.useEffect)(function(){if($===p.pi.login){S.f.getState().isSigningOut||eo(!1);return}ei&&(!en||j||z||ew||(eo(!1),S.f.getState().setSigningOut(!1)))},[ei,$,en,j,z,ew]),(0,g.useEffect)(function(){!Q||j&&H||(ea.current&&(clearTimeout(ea.current),ea.current=null),S.f.getState().setBlockHelloTokenBackfill(!1))},[Q,j,H]),(0,g.useEffect)(function(){return function(){ea.current&&clearTimeout(ea.current)}},[]);var eB=null!=e_?e_:{},eC=eB.picProfile,eO=eB.picBack,eR=eB.likesVisibility,eN=eB.phonetics,eE=eB.phoneticAI,eD=eB.pronouns,eV=eB.bioShort,ex=eB.goesByName,ej=eB.links,eF=eB.linksLinkedin,eq=eB.pageVariant,eH=eB.pageTheme,eM=eB.nameReel,eK=eB.nameSign,eY=eB.languages,ez=eB.analytics,eG=eB.AIVoice,eZ=eB.AIVoiceAuto,eW=eB.aiVoice,eQ=eB.aiVoiceAuto,eJ=["picProfile","picBack","likesVisibility","phonetics","phoneticAI","pronouns","bioShort","goesByName","links","pageVariantClassic","pageVariantModern","pageThemeLight","pageThemeDark","nameReel","nameSign","languages","analytics","AIVoice","AIVoiceAuto"],eX=["isPicProfilePermLocked","isPicBackPermLocked","isLikesVisibilityLocked","isPhoneticsLocked","isPhoneticAILocked","isPronounsLocked","isBioShortPermLocked","isGoesByNameLocked","isLinksLocked","isPageVariantClassicLocked","isPageVariantModernLocked","isPageThemeLightLocked","isPageThemeDarkLocked","isNameReelLocked","isNameSignLocked","isLanguagesLocked","isAnalyticsLocked","isAIVoiceLocked","isAIVoiceAutoLocked"],e$={picProfile:null==eC||eC,picBack:null==eO||eO,likesVisibility:null==eR||eR,phonetics:null==eN||eN,phoneticAI:null==eE||eE,pronouns:null==eD||eD,bioShort:null==eV||eV,goesByName:null==ex||ex,links:null==ej||ej,linksLinkedin:null==eF||eF,pageVariantClassic:null==eq||eq,pageVariantModern:null!=eq&&eq,pageThemeLight:null==eH||eH,pageThemeDark:em?null==eH||eH:null!=eH&&eH,nameReel:null==eM||eM,nameSign:null==eK||eK,languages:null!=eY&&eY,analytics:null!=ez&&ez,AIVoice:null!=(R=null!=eG?eG:eW)&&R,AIVoiceAuto:null!=(N=null!=eZ?eZ:eQ)&&N},e0=$===p.nB.profileDesigner,e1=(0,g.useMemo)(function(){if(e0){var e=eX.reduce(function(e,n){return e[n]=!1,e},{});return(0,a._)((0,o._)({},e),{isLinksLocked:!1,icon:"",lockMessage:"",offerNameSignVideo:!0})}var n=(0,a._)((0,o._)({},eX.map(function(e,n){if(el&&"isNameSignLocked"===e&&"nameSign"===eJ[n])return{isNameSignLocked:!0};if(el)return(0,i._)({},e,!["picProfile","phonetics","pronouns","pageVariantClassic","pageThemeLight","nameSign","phoneticAI"].includes(eJ[n]));if(ed)return"isAIVoiceAutoLocked"===e?{isAIVoiceAutoLocked:!0}:(0,i._)({},e,!1);if(em){var t=e$[eJ[n]];return"string"==typeof t?(0,i._)({},e,t):(0,i._)({},e,!t)}return(0,i._)({},e,!1)}).reduce(function(e,n){return(0,o._)({},e,n)},{}),el?{icon:"ph:crown-simple-fill",lockMessage:"Only for Professional subscriptions"}:eh||eg||ef?{icon:"fa6-solid:building-lock",lockMessage:"Your company admin has disabled this feature"}:{icon:"",lockMessage:""}),{offerNameSignVideo:em});return(0,a._)((0,o._)({},n),{isLinksLocked:!(e$.links||e$.linksLinkedin)})},[e0,el,ed,em,eh,eg,ef,e_]),e2=(0,g.useMemo)(function(){return{data:ek,refetch:eb,isInitialized:en,isLogoutLoading:ei,isLoading:ev,isPending:ey,isSuccess:eS,isError:eA,isMaintenance:!!ec,isHelloAuthLoading:F,isCognitoUserAuthenticated:z,isAuthenticated:ew,isProtectedRoute:Z,storedToken:J,logout:eU,completeCognitoSsoLogin:eT,features:e1,isHelloLoggedIn:X,isLoggedIn:eI,sessionSource:eL}},[ek,z,ew,Z,J,eA,ev,ei,ec,F,en,ey,eS,eU,eT,eb,e1,X,eI,eL]),e7=ei||W;return(0,u.jsxs)(O.Provider,{value:e2,children:[E,e7?(0,u.jsxs)("div",{className:"pointer-events-auto fixed inset-0 z-[2147483647] flex flex-col items-center justify-center gap-4 bg-background",role:"alert","aria-busy":"true","aria-live":"polite",children:[(0,u.jsx)("div",{className:"h-12 w-12 animate-spin rounded-full border-4 border-primary border-t-transparent","aria-hidden":!0}),(0,u.jsx)("p",{className:"text-sm text-muted-foreground",children:"Logging outâ¦"})]}):null]})}function N(){var e=(0,g.useContext)(O);if(!e)throw Error("useSession must be used within SessionProvider");return e}},12775:(e,n,t)=>{"use strict";t.d(n,{KM:()=>u,hQ:()=>c,t_:()=>s});var r=t(5299),i=t(52175),o="nd_cognito_token";function a(){return i.Ay.helloCookieDomain||void 0}function s(e,n){var t;"u">typeof document&&r.A.set(o,e,{domain:a(),path:"/",expires:null!=(t=null==n?void 0:n.expiresDays)?t:7,sameSite:"lax",secure:"https:"===window.location.protocol})}function c(){if("u">typeof document)return r.A.get(o)}function u(){"u">typeof document&&r.A.remove(o,{domain:a(),path:"/"})}},17780:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var r=t(54479),i={all:["auth"],account:function(){return(0,r._)(i.all).concat(["account"])},authPath:function(e){return(0,r._)(i.all).concat(["path",e])},orgSSOCheck:function(e){return(0,r._)(i.all).concat(["orgSSOCheck",e])}}},22942:(e,n,t)=>{"use strict";t.d(n,{K:()=>a,n:()=>s});var r=t(55590),i=t(12775),o=t(61164),a="nd-auth-token",s=(0,r.v)()(function(e){var n;return{token:(window.localStorage.removeItem(a),(n=(0,i.hQ)())&&!(0,o.xP)(n)?n:null),setToken:function(n){return e({token:n})}}})},24567:(e,n,t)=>{"use strict";t.d(n,{u:()=>p});var r=t(71582),i=t(40158),o=t(35955),a=t(27974),s=t(71335),c=t(68670),u=t(41615),l=t
1(52175),d=t(22942),g=new Set(["getOtuOrgAdmin","getAuthPath","uploadAudio","uploadImage","loginSSO","createGist","getBrand","brandUsernameCheck","brandPhonetics","demoBuilderAction","validateSignupInvite","getOrgInfo"]),f=new Set(["getProfile","getStories","getBrands","getBrandProfile","publicResource","brandReport","getPublishedStories"]);function h(e){return null!=e&&!!("u">typeof Blob&&(0,i._)(e,Blob)||"u">typeof FormData&&(0,i._)(e,FormData)||"u">typeof URLSearchParams&&(0,i._)(e,URLSearchParams)||(0,i._)(e,ArrayBuffer)||"u">typeof ArrayBuffer&&ArrayBuffer.isView(e))}function m(e){return(0,r._)(function(e){var n,t,r,i,m,p,k,v,y,S,A,b,_,w,L=arguments;return(0,c.YH)(this,function(c){switch(c.label){case 0:return i=void 0===(r=(n=L.length>1&&void 0!==L[1]?L[1]:{}).scope)?"dashboard":r,m=n.endpoint,p=n.body,k=(0,s._)(n,["scope","endpoint","body"]),v=function(e,n){if("otu"===e||n&&("home"===e?f:g).has(n))return{};var t=d.n.getState().token;return t?{authorization:t}:{}}(i,m),y=null!=(t=k.headers)?t:{},S=null==p||h(p)?{}:{"Content-Type":"application/json"},A=null==p?void 0:h(p)?p:JSON.stringify(p),[4,fetch(function(e,n){return/^https?:\/\//i.test(e)?e:"".concat(l.Ay.baseApiURL,"/").concat(e)}(e,0),(0,a._)((0,o._)({},k),{body:A,headers:(0,o._)({},S,v,y)}))];case 1:if((b=c.sent()).ok)return[3,3];return[4,b.text().catch(function(){return b.statusText})];case 2:throw _=c.sent(),new u.h(b.status,"[".concat(b.status,"] ").concat(_));case 3:if(204===b.status)return[2,void 0];return[4,b.text()];case 4:if(!(w=c.sent()).trim())return[2,void 0];try{return[2,JSON.parse(w)]}catch(e){return[2,w]}}})}).apply(this,arguments)}var p={get:function(e,n){return m(e,(0,o._)({method:"GET"},n))},post:function(e,n,t){return m(e,(0,o._)({method:"POST",body:n},t))},put:function(e,n,t){return m(e,(0,o._)({method:"PUT",body:n},t))},patch:function(e,n,t){return m(e,(0,o._)({method:"PATCH",body:n},t))},delete:function(e,n){return m(e,(0,o._)({method:"DELETE"},n))}}},31737:(e,n,t)=>{"use strict";t.d(n,{f:()=>s});var r=t(35955),i=t(27974),o=t(55590),a={isProtectedRoute:!1,isDoneFetchingToken:!1,isSigningOut:!1,blockHelloTokenBackfill:!1,accountBootstrapComplete:!1,isInvalidGrantError:!1,isEmailDomainSSO:null},s=(0,o.v)()(function(e){return(0,i._)((0,r._)({},a),{setIsProtectedRoute:function(n){return e({isProtectedRoute:n})},setIsDoneFetchingToken:function(n){return e({isDoneFetchingToken:n})},setSigningOut:function(n){return e({isSigningOut:n})},setBlockHelloTokenBackfill:function(n){return e({blockHelloTokenBackfill:n})},setAccountBootstrapComplete:function(n){return e({accountBootstrapComplete:n})},setIsInvalidGrantError:function(n){return e({isInvalidGrantError:n})},setIsEmailDomainSSO:function(n){return e({isEmailDomainSSO:n})},reset:function(){return e(a)}})})},35583:(e,n,t)=>{"use strict";t.d(n,{c0:()=>o});var r=["trial","active"],i=["expired","exhausted"];function o(e,n,t){var o,a,s=n||t;if(!e)return{canOrgSelfServe:!1,isStaffOversight:!1,isReadOnly:!1,status:null,org:null,showTrialStart:s,canAccessView:s};if("staff"===e.scope)return{canOrgSelfServe:!1,isStaffOversight:!0,isReadOnly:!1,status:null,org:null,showTrialStart:!1,canAccessView:!0};var c=null!=(o=e.status)?o:null,u=s&&null!==c&&r.includes(c),l=s&&null!==c&&i.includes(c);return{canOrgSelfServe:u,isStaffOversight:!1,isReadOnly:l,status:c,org:null!=(a=e.org)?a:null,showTrialStart:!1,canAccessView:u||l}}},37828:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var r=t(35955),i=t(27974),o=t(55147),a=t(63890),s=t(22942),c=t(61164);let u=function(){var e=(0,s.n)(function(e){return e.token});return(0,o.I)((0,i._)((0,r._)({},a.R.account()),{enabled:!!e&&!(0,c.xP)(e)}))}},41615:(e,n,t)=>{"use strict";t.d(n,{h:()=>a});var r=t(83714),i=t(62686),o=t(72568),a=function(e){function n(e,t){var o;return(0,i._)(this,n),(o=(0,r._)(this,n,[t])).name="ApiError",o.status=e,o}return(0,o._)(n,e),n}((0,t(70075)._)(Error))},59192:(e,n,t)=>{"use strict";t.d(n,{Q:()=>o,_:()=>i});var r=new Set(["basic","essential","advanced","professional","org","orgAdmin","orgSuperAdmin","otuAdmin","otuSuperAdmin"]);function i(e){if(!e)return!1;var n,t,i=null!=(n=e.license)?n:"";if(r.has(i))return!0;var o=null==(t=e.otu)?void 0:t.role;return"otuAdmin"===o||"otuSuperAdmin"===o}function o(e){var n;return!!e&&(null==(n=e.events)?void 0:n.status)==="active"}}
1,61164:(e,n,t)=>{"use strict";function r(e){var n,t=(null==(n=function(e){var n=e.split(".");if(n.length<2)return null;try{var t,r=(t=n[1],atob(t.replace(/-/g,"+").replace(/_/g,"/").padEnd(4*Math.ceil(t.length/4),"=")));return JSON.parse(r)}catch(e){return null}}(e))?void 0:n.exp)?1e3*n.exp:null;return null!==t&&Date.now()>=t}t.d(n,{xP:()=>r})},63890:(e,n,t)=>{"use strict";t.d(n,{R:()=>l});var r=t(71582),i=t(35955),o=t(27974),a=t(68670),s=t(62231),c=t(17780),u=t(24567),l={account:function(){return(0,s.j)({queryKey:c.Z.account(),placeholderData:function(e){return e},queryFn:function(){return(0,r._)(function(){var e,n;return(0,a.YH)(this,function(t){switch(t.label){case 0:return[4,u.u.get("account",{endpoint:"getAccount"})];case 1:var r;return[2,(n=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];var r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if("string"==typeof c&&c.trim().length>0)return c.trim()}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return null}((r=e=t.sent()).picProfile,r.picprofile,"string"==typeof r.pic_profile?r.pic_profile:void 0))?(0,o._)((0,i._)({},e),{picProfile:n}):e]}})})()}})},authPath:function(e){return(0,s.j)({queryKey:c.Z.authPath(e),queryFn:function(){return u.u.get("auth/path?email=".concat(encodeURIComponent(e)),{endpoint:"getAuthPath"})},enabled:e.length>0})},orgSSOCheck:function(e){return(0,s.j)({queryKey:c.Z.orgSSOCheck(e),queryFn:function(){var n=new URLSearchParams({email:e.email});return e.orgId&&n.set("orgId",e.orgId),u.u.get("org/sso/check?".concat(n.toString()),{endpoint:"orgSSOCheck"})},enabled:e.email.length>0})}}},68075:()=>{},74475:(e,n,t)=>{"use strict";t.d(n,{j:()=>i});var r=t(54479),i={all:["user-profile"],checkUsername:function(e){return(0,r._)(i.all).concat(["checkUsername",e])},phonetics:function(e){return(0,r._)(i.all).concat(["phonetics",e])},infoCards:function(){return(0,r._)(i.all).concat(["infoCards"])},maintenance:function(e){return(0,r._)(i.all).concat(["maintenance",e])},analytics:function(e){return(0,r._)(i.all).concat(["analytics",e])},brandLike:function(){return(0,r._)(i.all).concat(["brandLike"])},connections:function(){return(0,r._)(i.all).concat(["connections"])}}},78007:(e,n,t)=>{"use strict";function r(e,n){return"".concat(e).concat(n)}t.d(n,{Kc:()=>u,Xx:()=>s,nB:()=>l,pi:()=>c});var i="/dashboard",o="/my-brand",a="/legal",s=r(i,"/analytics"),c={root:i,login:"/login",signup:"/signup",loginUnprotected:r(i,"/login-unprotected"),registerUnprotected:r(i,"/register-unprotected"),landing:"/landing"},u={maintenance:r(i,"/maintenance"),onboarding:r("","/onboarding"),recording:r(i,"/recording"),newDevice:r(i,"/recording/new-device")},l={root:i,dashboard:i,myBrand:{root:o,myBrandDashboard:r(o,"/dashboard"),myBrandBuilder:r(o,"/brand-builder"),myBrandAnalytics:r(o,"/analytics"),myBrandSettings:{root:r(o,"/settings"),deleteYourBrand:r(o,"/settings/delete-your-brand")}},profileBuilder:r(i,"/profile-builder"),profileDesigner:r(i,"/profile-designer"),orgBuilder:r(i,"/org-builder"),brandBuilder:r(o,"/brand-builder"),org:{root:r(i,"/org"),profileBuilder:r(i,"/org/profile-builder")},orgAdmin:{root:r(i,"/org-admin"),orgBuilder:r(i,"/org-builder"),profileDesigner:r(i,"/profile-designer"),deleteUsers:r(i,"/org-admin/delete-users")},orgSuperAdmin:{root:r(i,"/org-super-admin"),createAdmin:r(i,"/org-super-admin/create-admin"),manageAdmins:r(i,"/org-super-admin/manage-admins")},otuAdmin:{root:r(i,"/otu-admin"),manageUsers:r(i,"/otu-admin/manage-users"),manageRecordings:r(i,"/otu-admin/manage-recordings")},otuSuperAdmin:{root:r(i,"/otu-super-admin"),manageAdmins:r(i,"/otu-super-admin/manage-admins"),createAdmin:r(i,"/otu-super-admin/create-admin")},user:{root:r(i,"/user"),links:r(i,"/user/links"),upgrade:r(i,"/user/upgrade"),settings:{root:r(i,"/user/settings"),notification:r(i,"/user/settings/manage-notifications"),deleteYourAccount:r(i,"/user/settings/delete-your-account"),changeEmailAddress:r(i,"/user/settings/change-email-address"),confirmChangeEmailAddress:r(i,"/user/settings/confirm-change-email-address"),changeUsername:r(i,"/user/settings/c
1hange-username"),privacy:r(i,"/user/settings/privacy")}},connections:{root:r(i,"/connections")},liked:r(i,"/liked"),events:{root:r(i,"/events"),detail:function(e){return r(i,"/events/".concat(e))},recordings:function(e){return r(i,"/events/".concat(e,"/recordings"))},participants:function(e){return r(i,"/events/".concat(e,"/participants"))},invite:function(e){return r(i,"/events/".concat(e,"/invite"))},liveGuide:function(e){return r(i,"/events/".concat(e,"/live-guide"))},demo:{root:r(i,"/events/demo"),invite:r(i,"/events/demo/invite"),participants:r(i,"/events/demo/participants"),recordings:r(i,"/events/demo/recordings"),liveGuide:r(i,"/events/demo/live-guide")}},integrations:{root:r(i,"/integrations"),share:r(i,"/integrations/share"),emailSignature:r(i,"/integrations/email-signature"),addToGoogleProfile:r(i,"/integrations/add-to-google-profile"),detail:function(e){return r(i,"/integrations/".concat(e))}},myStories:r(i,"/my-stories"),myOrganization:{root:r(i,"/my-organization"),directory:r(i,"/my-organization/directory")}};r(a,"/terms"),r(a,"/cookies"),r(a,"/privacy"),r(a,"/attributions"),r(a,"/subprocessors")},81654:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var r=t(35583),i=t(59192),o=t(37828);let a=function(){var e,n,t=(0,o.A)().data,a=(null==t?void 0:t.license)==="basic"||(null==t?void 0:t.license)==="essential",s=(null==t?void 0:t.license)==="essential"||(null==t?void 0:t.license)==="basic",c=(null==t?void 0:t.license)==="advanced"||(null==t?void 0:t.license)==="professional",u=(null==t?void 0:t.license)==="orgAdmin",l=(null==t?void 0:t.license)==="orgSuperAdmin",d=(null==t?void 0:t.license)==="org",g=d||u,f=d||u||l,h=(null==t?void 0:t.license)==="otuAdmin"||(null==t||null==(e=t.otu)?void 0:e.role)==="otuAdmin",m=(null==t?void 0:t.license)==="otuSuperAdmin"||(null==t||null==(n=t.otu)?void 0:n.role)==="otuSuperAdmin",p=(0,r.c0)(null==t?void 0:t.pronounceApi,u,l).canAccessView,k=!c&&!u&&!l&&!d&&!h&&!m;return{isBasic:a,isEssential:s,isAdvanced:c,isOrg:d,isOrgAdmin:u,isOrgSuperAdmin:l,isOrgUser:g,isOrganizationUser:f,isOtuAdmin:h,isOrgAndOtuUser:g||h,isOtuSuperAdmin:m,canAccessPronounceVie
1w:p,showUpgradeCta:k,showReferralProgram:!f&&!h&&!m,canSeeEventsNav:(0,i._)(t),canCreateEvents:(0,i.Q)(t)}}},91291:(e,n,t)=>{"use strict";t.d(n,{FZ:()=>d,LQ:()=>c,OS:()=>l,SZ:()=>g,Uo:()=>u,sV:()=>s});var r,i=t(52175),o=i.Ay.stage,a=null!=(r=i.Ay.homePageURL)?r:"",s="".concat(a,"/brands"),c="local"===o||"dev"===o,u=/^([a-zA-Z0-9._%+-]+)@([a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/,l="https://docs.namedrop.io/faq/login-and-signup/",d="https://docs.namedrop.io/faq/",g=["basic","essential","advanced","professional","org","orgAdmin","otuAdmin","otuSuperAdmin","orgSuperAdmin"];g.reduce(function(e,n){return e[n]=n,e},{})},97632:(e,n,t)=>{"use strict";t.d(n,{t:()=>a});var r=t(62231),i=t(74475),o=t(24567),a={checkUsername:function(e){return(0,r.j)({queryKey:i.j.checkUsername(e.username),queryFn:function(){return o.u.get("profile/usernameCheck?username=".concat(encodeURIComponent(e.username)),{endpoint:"checkUsername"})},enabled:e.username.length>0})},phonetics:function(e){return(0,r.j)({queryKey:i.j.phonetics(e),queryFn:function(){var n=new URLSearchParams;return e.firstName&&n.set("firstName",e.firstName),e.middleName&&n.set("middleName",e.middleName),e.lastName&&n.set("lastName",e.lastName),e.phoneticFirstNameLanguage&&n.set("phoneticFirstNameLanguage",e.phoneticFirstNameLanguage),e.phoneticMiddleNameLanguage&&n.set("phoneticMiddleNameLanguage",e.phoneticMiddleNameLanguage),e.phoneticLastNameLanguage&&n.set("phoneticLastNameLanguage",e.phoneticLastNameLanguage),o.u.get("profile/phonetics?".concat(n.toString()),{endpoint:"getProfilePhonetics"})}})},infoCards:function(){return(0,r.j)({queryKey:i.j.infoCards(),queryFn:function(){return o.u.get("account/infoCards",{endpoint:"getInfoCards"})}})},maintenance:function(e){return(0,r.j)({queryKey:i.j.maintenance(e),queryFn:function(){return o.u.get("account/maintenance?dev=".concat(e.dev),{endpoint:"checkMaintenance"})}})},analytics:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.j)({queryKey:i.j.analytics(e),queryFn:function(){var n=new URLSearchParams;e.fromDate&&n.set("from_date",e.fromDate),e.toDate&&n.set("to_date",e.toDate);var t=n.toString();return o.u.get(t?"account/analytics?".concat(t):"account/analytics",{endpoint:"getAnalytics"})}})},brandLike:function(){return(0,r.j)({queryKey:i.j.brandLike(),queryFn:function(){return o.u.get("brands/like",{endpoint:"getBrandLike"})}})},connections:function(){return(0,r.j)({queryKey:i.j.connections(),queryFn:function(){return o.u.get("profile/connections",{endpoint:"getConnections"})}})}}}}]);
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.