!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="819b61b7-14d3-4899-9761-6c31338718ad",e._sentryDebugIdIdentifier="sentry-dbid-819b61b7-14d3-4899-9761-6c31338718ad")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2585],{43597:function(e,n,t){t.d(n,{c:function(){return v}});var r=t(57437),a=t(2265),l=t(99485),i=t(97632),s=t(32500),o=t(13966),d=t(70986),c=t(13023),u=t(25820),m=t(29),f=t(75330),h=t(29930),g=t(30072),p=t(417);let x={disclaimer:{en:"By creating an account, you consent to receive communications from Vouch. You can opt-out at anytime.",no:"Ved \xe5 opprette bruker samtykker du til \xe5 motta kommunikasjon fra Vouch. Du kan melde deg av n\xe5r som helst.",dk:"Ved at oprette en bruger giver du samtykke til at modtage kommunikation fra Vouch. Du kan til enhver tid frav\xe6lge dette."},continueWithEmail:{en:"Continue with email",no:"Fortsett med epost",dk:"Forts\xe6t med e-mail"},email:{en:"Email",no:"Epost",dk:"E-mail"},firstName:{en:"First name",no:"Fornavn",dk:"Fornavn"},lastName:{en:"Last name",no:"Etternavn",dk:"Efternavn"},terms:{terms:{en:"Terms and conditions",no:"Vilk\xe5r og betingelser",dk:"Betingelser og vilk\xe5r"},privacy:{en:"privacy policy",no:"personvernerkl\xe6ring",dk:"privatlivspolitik"},and:{en:"and",no:"og",dk:"og"}}},v=e=>{let{onSignUpClicked:n,disabled:t,onVerifyOpen:v,includeNameForEmail:k,variant:b="purple",emailContext:y={}}=e,{lang:w}=(0,i.p)(),[j,N]=(0,a.useState)(!1),[S,I]=(0,a.useState)(""),[V,C]=(0,a.useState)(""),[P,z]=(0,a.useState)(""),T=(0,a.useCallback)(e=>{let n=new URL("".concat("https://vouch.careers","/signin/callback?url=").concat(btoa(e||window.location.pathname))),t=new URLSearchParams(n.search);return k&&(t.append(s.XU,V),t.append(s.XO,P)),n.toString()},[V,k,P]),[D,E]=(0,a.useState)(!1),O=m.z.string().email().safeParse(S).success,A=(0,u.cI)(),L=A.handleSubmit(async()=>{if(k){if(!V)return A.setError("firstName",{type:"required"});if(!P)return A.setError("lastName",{type:"required"})}if(O){let{abort:e,callbackUrl:t}=n?await n(S,V,P):{abort:!1,callbackUrl:void 0};e||(E(!0),(0,c.signIn)("email",{callbackUrl:T(t),email:S,redirect:!1},{first_name:V,last_name:P,...(0,o.Z)(y,d.Z)}).then(()=>{null==v||v({email:S,firstName:V,lastName:P},()=>(0,c.signIn)("email",{callbackUrl:T(t),email:S,redirect:!1},{first_name:V,last_name:P,...(0,o.Z)(y,d.Z)})),E(!1)}).catch(console.error))}});return(0,r.jsxs)("div",{className:"space-y-4","data-sentry-component":"SignIn","data-sentry-source-file":"SignIn.tsx",children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsxs)(f.zx,{variant:"ghost",bordered:!0,className:"h-16 w-full border-border",disabled:t||D,onClick:async()=>{if(D||t)return;let{abort:e,callbackUrl:r}=n?await n(S,V,P):{abort:!1,callbackUrl:void 0};e||(E(!0),(0,c.signIn)("linkedin",{callbackUrl:T(r)}).catch(console.error))},"data-sentry-element":"Button","data-sentry-source-file":"SignIn.tsx",children:[(0,r.jsx)("picture",{className:"relative h-10 w-10 object-contain pl-2.5 pr-1.5","data-sentry-element":"picture","data-sentry-source-file":"SignIn.tsx",children:(0,r.jsx)("img",{src:"/img/login/linkedin.png",alt:"",className:"h-full w-full object-contain"})}),(0,r.jsx)(p.x.P,{className:"flex-1 text-start","data-sentry-element":"unknown","data-sentry-source-file":"SignIn.tsx",children:"LinkedIn"}),(0,r.jsx)(h.JO,{icon:"upRightArrow",variant:"gray","data-sentry-element":"Icon","data-sentry-source-file":"SignIn.tsx"})]}),(0,r.jsxs)(f.zx,{variant:"ghost",bordered:!0,className:"h-16 w-full border-border",disabled:t||D,onClick:async()=>{if(D||t)return;let{abort:e,callbackUrl:r}=n?await n(S,V,P):{abort:!1,callbackUrl:void 0};e||(E(!0),(0,c.signIn)("google",{callbackUrl:T(r)}).catch(console.error))},"data-sentry-element":"Button","data-sentry-source-file":"SignIn.tsx",children:[(0,r.jsx)("picture",{className:"relative h-10 w-10 object-contain","data-sentry-element":"picture","data-sentry-source-file":"SignIn.tsx",children:(0,r.jsx)("img",{src:"/img/login/google.svg",alt:"",className:"h-full w-full object-contain"})}),(0,r.jsx)(p.x.P,{className:"flex-1 text-start","data-sentry-element":"unknown","data-sentry-source-file":"SignIn.tsx",children:"Google"}),(0,r.jsx)(h.JO,{icon:"upRightArrow",variant:"gray","data-sentry-element":"Icon","data-sentry-source-file":"SignIn.tsx"})]}),(0,r.jsxs)(f.zx,{variant:"ghost",bordered:!0,className:"h-16 w-full border-border",disabled:t||D,onClick:async()=>{if(D||t)return;let{abort:e,callbackUrl:r}=n?await n(S,V,P):{abort:!1,callbackUrl:void 0};e||(E(!0),(0,c.signIn)("github",{callbackUrl:T(r)}).catch(console.error))},"data-sentry-element":"Button","data-sentry-source-file":"SignIn.tsx",children:[(0,r.jsx)("picture",{className:"relative h-6 w-10 object-contain","data-sentry-element":"picture","data-sentry-source-file":"SignIn.tsx",children:(0,r.jsx)("img",{src:"/img/login/github.svg",alt:"",className:"h-full w-full object-contain"})}),(0,r.jsx)(p.x.P,{className:"flex-1 text-start","data-sentry-element":"unknown","data-sentry-source-file":"SignIn.tsx",children:"Github"}),(0,r.jsx)(h.JO,{icon:"upRightArrow",variant:"gray","data-sentry-element":"Icon","data-sentry-source-file":"SignIn.tsx"})]})]}),j?(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-2",children:[k&&(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(g.I,{className:"w-0 flex-1",placeholder:x.firstName[w],value:V,onChange:e=>C(e.target.value),autoCapitalize:"sentences"}),(0,r.jsx)(g.I,{className:"w-0 flex-1",placeholder:x.lastName[w],value:P,onChange:e=>z(e.target.value),autoCapitalize:"sentences"})]}),(0,r.jsx)(g.I,{type:"email",placeholder:x.email[w],value:S,disabled:D||t,onChange:e=>{I(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&L()}}),(0,r.jsx)(f.zx,{className:"w-full",disabled:!O||!!k&&(!V||!P)||D||t,variant:b,rounded:!1,bordered:!1,icon:"rightArrow",onClick:L,children:x.continueWithEmail[w]})]}):(0,r.jsx)("div",{className:"flex w-full justify-center",children:(0,r.jsx)(f.zx,{variant:"ghost",className:"mx-auto underline opacity-60",onClick:()=>N(!0),disabled:D||t,children:x.continueWithEmail[w]})}),(0,r.jsxs)(p.x.P,{level:4,muted:!0,"data-sentry-element":"unknown","data-sentry-source-file":"SignIn.tsx",children:[(0,r.jsx)(l.default,{target:"_blank",className:"underline",href:"https://vouchcareers.notion.site/Terms-Conditions-7e875afef3584f62abab8eb72c58d75a?pvs=4","data-sentry-element":"Link","data-sentry-source-file":"SignIn.tsx",children:x.terms.terms[w]})," ".concat(x.terms.and[w]," "),(0,r.jsx)(l.default,{href:"https://vouchcLinkreers.notion.site/Privacy-Policy-cdca4246ab3748bb979669c09adf5132?pvs=4",className:"underline",target:"_blank","data-sentry-element":"Link","data-sentry-source-file":"SignIn.tsx",children:x.terms.privacy[w]}),". ",x.disclaimer[w]]})]})}},22585:function(e,n,t){t.d(n,{a:function(){return k},t:function(){return v}});var r=t(57437),a=t(2265),l=t(99485),i=t(72301),s=t(97632),o=t(32500),d=t(87144),c=t(13023),u=t(48446),m=t(29930),f=t(417),h=t(43597),g=t(84205);let p={logInOrSignUp:{no:"Logg inn eller registrer deg",en:"Log in or sign up",dk:"Log ind eller opret en konto"},default:{1:{en:"Help 10x the candidate experience for your network",no:"Hjelp 10x kandidatopplevelsen for nettverket ditt",dk:"Hj\xe6lp 10x kandidatoplevelsen for dit netv\xe6rk",subtitle:{en:"Imagine getting a testimonial instead of writing cover letters ❤️",no:"Forestill deg \xe5 f\xe5 en anbefaling i stedet for \xe5 skrive s\xf8knad ❤️",dk:"Forestil dig at f\xe5 en anbefaling i stedet for at skrive ans\xf8gning ❤️"}},2:{en:"Earn a reward for a successful hire - if you want to",no:"Tjen en bel\xf8nning for en vellykket ansettelse - hvis du vil",dk:"Tjen en bel\xf8nning for en vellykket ansettelse - hvis du vil",subtitle:{en:"We have paid millions in referral rewards, but some also opt out",no:"Vi har betalt millioner i henvisnings, men noen velger ogs\xe5 \xe5 melde seg ut",dk:"Vi har betalt millioner i henvisnings, men noen velger ogs\xe5 \xe5 melde seg ut"}},3:{en:"Trusted by companies across various industries and roles",no:"Stolt samarbeidspartner med selskaper innenfor en rekke bransjer og roller",dk:"Stolt partner med virksomheder inden for en r\xe6kke brancher og roller",subtitle:{en:"Sopra Steria, Ignite, Wilhelmsen, PwC, Br\xf8drene Dahl. We have help fill roles from office managers to healthcare specialist, and even CTOs.",no:"Sopra Steria, Ignite, Wilhelmsen, PwC, Br\xf8drene Dahl. Vi har hjulpet med \xe5 fylle roller fra kontorledere til helsepersonell og til og med CTOer.",dk:"Sopra Steria, Ignite, Wilhelmsen, PwC, Br\xf8drene Dahl. Vi har hjulpet med at udfylde roller fra kontorledere til sundhedspersonale og endda CTOer."}}},acceptVouch:{1:{en:"Don't worry, no long forms and cover letters required",no:"Slapp av, det kreves ingen s\xf8knadsbrev",dk:"Slap af, ingen lange formularer og ans\xf8gninger kr\xe6ves",subtitle:{en:"All you have to do is to confirm interest and add your LinkedIn or CV",no:"Alt du trenger \xe5 gj\xf8re er \xe5 bekrefte interesse og legge til LinkedIn eller CV",dk:"Alt, hvad du skal g\xf8re, er at bekr\xe6fte interesse og tilf\xf8je din LinkedIn eller CV"}},2:{en:"We take privacy seriously",no:"Vi tar personvern p\xe5 alvor",dk:"Vi tager privatliv alvorligt",subtitle:{en:"We only update the voucher when you are hired or out of process, and we won't tell them why. We also have a strict data policy",no:"Vi gir ikke detaljert informasjon om prosessen til tipser eller noen andre.",dk:"Vi opdaterer kun voucheren, n\xe5r du er ansat eller ude af processen, og vi vil ikke fort\xe6lle dem hvorfor. Vi har ogs\xe5 en streng databeskyttelsespolitik"}},3:{en:"The first vouch you accept for a role may be eligble for a reward",no:"Den f\xf8rste anbefalingen du godtar for en rolle kan gi bel\xf8nning til tipser",dk:"Den f\xf8rste anbefaling, du accepterer til en rolle, kan v\xe6re berettiget til en bel\xf8nning",subtitle:{en:"We see it as a win-win-win. Everyone is rewarded, especially the voucher.",no:"Men er det flere som anbefaler deg, s\xe5 vil kun den f\xf8rste du godtar f\xe5 bel\xf8nning.",dk:"Vi ser det som en win-win-win. Alle bliver bel\xf8nnet, is\xe6r voucheren."}}},business:{1:{en:"Attract passive talents and hire focused on quality, not just quantity",no:"Tiltrekk passive talenter og ansett fokusert p\xe5 kvalitet, ikke bare kvantitet",dk:"Tiltr\xe6k passive talenter og ans\xe6t fokuseret p\xe5 kvalitet, ikke kun kvantitet",subtitle:{en:"Did you know 7 in 10 talents don't actively apply? We will teach you to use your network better to capture those hidden talent. ",no:"Visste du at 7 av 10 talenter ikke aktivt s\xf8ker? Vi vil l\xe6re deg \xe5 bruke nettverket ditt bedre for \xe5 fange opp disse skjulte talentene.",dk:"Vidste du, at 7 ud af 10 talenter ikke aktivt ans\xf8ger? Vi vil l\xe6re dig at bruge dit netv\xe6rk bedre til at fange disse skjulte talenter."}},2:{en:"Trusted by companies across various industries and roles",no:"Stolt samarbeidspartner med selskaper innenfor en rekke bransjer og roller",dk:"Stolt partner med virksomheder inden for en r\xe6kke brancher og roller",subtitle:{en:"Sopra Steria, Ignite, Wilhelmsen, PwC, Br\xf8drene Dahl. We have help fill roles from office managers to healthcare specialist, and even CTOs.",no:"Sopra Steria, Ignite, Wilhelmsen, PwC, Br\xf8drene Dahl. Vi har hjulpet med \xe5 fylle roller fra kontorledere til helsepersonell og til og med CTOer.",dk:"Sopra Steria, Ignite, Wilhelmsen, PwC, Br\xf8drene Dahl. Vi har hjulpet med at udfylde roller fra kontorledere til sundhedspersonale og endda CTOer."}},3:{en:"Handle your entire referral program end-to-end.",no:"H\xe5ndter hele henvisningsprogrammet ditt fra start til slutt.",dk:"H\xe5ndter hele dit henvisningsprogram fra ende til anden.",subtitle:{en:"Share with your network, and get high-quality referrals.",no:"Del med nettverket ditt, og f\xe5 h\xf8ykvalitets henvisninger.",dk:"Del med dit netv\xe6rk, og f\xe5 henvisninger af h\xf8j kvalitet."}}},whyJoinVouch:{en:"Why join Vouch?",no:"Hvorfor bli med Vouch?",dk:"Hvorfor blive med Vouch?"},learnMore:{en:"Learn more about Vouch",no:"L\xe6r mer om Vouch",dk:"L\xe6r mere om Vouch"}},x=a.createContext({});function v(e){let{children:n}=e,[t,v]=(0,a.useState)(),[k,b]=(0,a.useState)(),[y,w]=(0,a.useState)(),[j,N]=(0,a.useState)({}),S=(0,c.useSession)(),I=(0,i.usePathname)(),{lang:V}=(0,s.p)(),{mutate:C}=d.d.user.edit.useMutation(),P=a.useMemo(()=>{switch(t){case"business":return"business";case"acceptVouch":return"acceptVouch";default:return"default"}},[t]);(0,a.useEffect)(()=>{if("authenticated"===S.status&&S.data.user){let e=new URLSearchParams(window.location.search);if(e.has(o.ni)){C({optOutNewsletter:!0,firstName:S.data.user.firstName,lastName:S.data.user.lastName});let n=new URLSearchParams([...(null==e?void 0:e.entries())||[]]);n.delete(o.ni),window.history.replaceState({},"",I+"?"+n.toString())}}},[I,S,C]);let z=a.useCallback(e=>{let{type:n,redirectUrl:t,onClose:r,emailContext:a}=e;b(t),v(n),w(()=>r),N((null==a?void 0:a.voucherVouchId)?{voucherVouchId:a.voucherVouchId}:(null==a?void 0:a.candidateVouchId)?{candidateVouchId:a.candidateVouchId}:{})},[b,v]),[T,D]=(0,a.useState)(),[E,O]=(0,a.useState)();return(0,r.jsxs)(x.Provider,{value:{showAuth:t,setShowAuth:z},"data-sentry-element":"unknown","data-sentry-component":"SignInProvider","data-sentry-source-file":"SignInProvider.tsx",children:[(0,r.jsx)(u.o,{open:!!t,onClose:()=>{null==y||y(),D(void 0),z({type:void 0})},transparent:!0,wrapperClassName:"md:max-w-4xl bg-background",className:"scroll-smooth",children:(0,r.jsxs)("div",{className:"flex w-full gap-8 py-4 max-md:flex-col-reverse",children:[(0,r.jsx)("div",{className:"flex flex-1 items-center max-md:h-dvh",id:"why",children:(0,r.jsxs)("div",{className:"flex w-full flex-col justify-center gap-8 max-md:h-dvh max-md:px-8",children:[(0,r.jsx)("picture",{className:"max-md:hidden",children:(0,r.jsx)("img",{src:"/logo.svg",alt:"",className:"h-6 w-auto"})}),(0,r.jsx)(f.x.H5,{className:"md:hidden",children:p.whyJoinVouch[V]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(m.JO,{icon:"check-circle",size:"small"}),(0,r.jsxs)("div",{className:"w-0 flex-1",children:[(0,r.jsx)(f.x.P,{strong:!0,children:p[P][1][V]}),(0,r.jsx)(f.x.P,{muted:!0,children:p[P][1].subtitle[V]})]})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(m.JO,{icon:"check-circle",size:"small"}),(0,r.jsxs)("div",{className:"w-0 flex-1",children:[(0,r.jsx)(f.x.P,{strong:!0,children:p[P][2][V]}),(0,r.jsx)(f.x.P,{muted:!0,children:p[P][2].subtitle[V]})]})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(m.JO,{icon:"check-circle",size:"small"}),(0,r.jsxs)("div",{className:"w-0 flex-1",children:[(0,r.jsx)(f.x.P,{strong:!0,children:p[P][3][V]}),(0,r.jsx)(f.x.P,{muted:!0,children:p[P][3].subtitle[V]})]})]})]})}),(0,r.jsxs)("div",{className:"flex w-full flex-col justify-start max-md:h-[calc(100vh-100px)] max-md:justify-center md:max-w-sm",children:[(0,r.jsx)("div",{className:"w-full rounded-xl bg-white p-8",children:T?(0,r.jsx)(g.z,{user:T,lang:V,retry:E}):(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("picture",{className:"md:hidden",children:(0,r.jsx)("img",{src:"/logo.svg",alt:"",className:"h-6 w-auto"})}),(0,r.jsx)(f.x.H5,{children:p.logInOrSignUp[V]}),(0,r.jsx)(h.c,{onVerifyOpen:(e,n)=>{D(e),O(()=>n)},emailContext:j,onSignUpClicked:()=>Promise.resolve({callbackUrl:k,abort:!1})})]})}),(0,r.jsxs)(l.default,{href:"#why",className:"ml-8 mt-4 flex items-center md:hidden",children:[(0,r.jsx)(f.x.P,{muted:!0,children:p.learnMore[V]}),(0,r.jsx)(m.JO,{size:"x-small",icon:"downChevron",variant:"gray"})]})]})]})}),n]})}let k=()=>a.useContext(x)},84205:function(e,n,t){t.d(n,{z:function(){return m}});var r=t(57437),a=t(2265),l=t(99485),i=t(3025),s=t(75330),o=t(63848),d=t(29930),c=t(417);let u={title:{no:"Sjekk innboksen",en:"Check your inbox",dk:"Tjek din indbakke"},description:{no:"Vi har sendt en bekreftelsesmail til eposten din, g\xe5 til innboksen for \xe5 bekrefte at vi har riktig epost.",en:"We have sent a confirmation email to your email, go to your inbox to confirm that we have the correct email.",dk:"Vi har sendt en bekr\xe6ftelsesmail til din e-mail, g\xe5 til din indbakke for at bekr\xe6fte, at vi har den korrekte e-mail."},missing:{en:"Can't find your email? Make sure to check spam or junk folder.",no:"Finner ikke eposten din? Sjekk s\xf8ppelpostmappen.",dk:"Kan ikke finde din e-mail? S\xf8rg for at tjekke spam- eller junk-mappen."},inXSections:{en:e=>"Retry in ".concat(e," seconds"),no:e=>"Pr\xf8v igjen om ".concat(e," sekunder"),dk:e=>"Pr\xf8v igen om ".concat(e," sekunder")},retryNow:{en:"Send new link",no:"Send ny link",dk:"Send nyt link"},gmail:{no:"\xc5pne Gmail",en:"Open Gmail",dk:"\xc5bn Gmail"},outlook:{no:"\xc5pne Outlook",en:"Open Outlook",dk:"\xc5bn Outlook"}},m=e=>{let{user:n,retry:t,lang:m,variant:f="purple",className:h}=e,[g,p]=(0,a.useState)(30);return(0,a.useEffect)(()=>{if(g>0){let e=setTimeout(()=>{p(e=>e-1)},1e3);return()=>clearTimeout(e)}},[g]),(0,r.jsxs)("div",{className:(0,i.cn)("relative flex flex-col items-center gap-4",h),"data-sentry-component":"VerifyingAuthScreen","data-sentry-source-file":"VerifyingAuthScreen.tsx",children:[(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(d.JO,{icon:"email",size:"x-large","data-sentry-element":"Icon","data-sentry-source-file":"VerifyingAuthScreen.tsx"})}),(0,r.jsx)(c.x.H5,{"data-sentry-element":"unknown","data-sentry-source-file":"VerifyingAuthScreen.tsx",children:u.title[m]}),(0,r.jsx)(c.x.P,{"data-sentry-element":"unknown","data-sentry-source-file":"VerifyingAuthScreen.tsx",children:u.description[m]}),t&&(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,r.jsx)(o.Divider,{}),(0,r.jsx)(c.x.P,{muted:!0,children:u.missing[m]}),(0,r.jsx)(s.zx,{size:"lg",variant:"".concat(f,"-light"),onClick:()=>{t(),p(30)},disabled:g>0,children:g>0?u.inXSections[m]("".concat(g)):u.retryNow[m]}),(0,r.jsx)(o.Divider,{})]}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)(l.default,{href:"https://mail.google.com/mail/u/".concat(n.email,"/#search/from%3A%40vouch.careers+in%3Aanywhere+newer_than%3A1d"),target:"_blank","data-sentry-element":"Link","data-sentry-source-file":"VerifyingAuthScreen.tsx",children:(0,r.jsx)(s.zx,{size:"lg",variant:f,"data-sentry-element":"Button","data-sentry-source-file":"VerifyingAuthScreen.tsx",children:u.gmail[m]})}),(0,r.jsx)(l.default,{href:"https://outlook.live.com/mail/?login_hint=".concat(encodeURIComponent(n.email)),target:"_blank","data-sentry-element":"Link","data-sentry-source-file":"VerifyingAuthScreen.tsx",children:(0,r.jsx)(s.zx,{size:"lg",variant:f,"data-sentry-element":"Button","data-sentry-source-file":"VerifyingAuthScreen.tsx",children:u.outlook[m]})})]})]})}},63848:function(e,n,t){t.d(n,{Divider:function(){return l}});var r=t(57437),a=t(3025);let l=e=>e.vertical?(0,r.jsx)("div",{className:(0,a.cn)("w-[1px] grow-0 self-stretch border-r border-black/5",{"border-black":"black"===e.variant},e.className)}):(0,r.jsxs)("div",{className:(0,a.cn)("relative my-4 flex w-full items-center",{"border-black":"black"===e.variant},e.className),"data-sentry-component":"Divider","data-sentry-source-file":"Divider.tsx",children:[(0,r.jsx)("div",{className:(0,a.cn)("h-[1px] flex-1 bg-black/5",e.className)}),e.children,(0,r.jsx)("div",{className:(0,a.cn)("h-[1px] flex-1 bg-black/5",e.className)})]})},30072:function(e,n,t){t.d(n,{I:function(){return s},t:function(){return i}});var r=t(57437),a=t(2265),l=t(3025);let i=a.forwardRef((e,n)=>{let{className:t,type:a,...i}=e;return(0,r.jsx)("input",{type:a,className:(0,l.cn)("flex h-12 w-full rounded-md border border-border bg-white px-3 py-2 font-normal ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:n,...i})});i.displayName="PureInput";let s=a.forwardRef((e,n)=>{let{className:t,type:i,prefix:s,postfix:o,inputClassName:d,disabled:c,onChange:u,value:m,defaultValue:f,...h}=e,[g,p]=a.useState(m||f||""),x=a.useCallback(e=>{p(e.target.value),c||null==u||u(e)},[u,c]);return a.useEffect(()=>{p(f||"")},[f]),a.useEffect(()=>{p(m||"")},[m]),(0,r.jsxs)("div",{className:(0,l.cn)("flex h-12 w-full items-center gap-2 rounded-md border border-stroke-gray bg-white px-4 py-1 font-normal text-black ring-offset-background file:border-0 file:bg-transparent file:text-base file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 aria-disabled:cursor-not-allowed aria-disabled:bg-stroke-gray/20",t),"aria-disabled":c,children:[s,(0,r.jsx)("input",{type:i,ref:n,className:(0,l.cn)("w-full flex-1 bg-transparent text-base focus-visible:outline-none disabled:cursor-not-allowed disabled:bg-transparent",d),...h,disabled:c,onChange:x,value:g||""}),o]})});s.displayName="Input"},48446:function(e,n,t){t.d(n,{M:function(){return u},o:function(){return c}});var r=t(57437),a=t(2265),l=t(3025),i=t(13062),s=t(24648),o=t(57256),d=t(75330);let c=e=>{let{open:n=!1,onClose:t,children:c,className:u,wrapperClassName:m,transparent:f=!1,title:h}=e;a.useEffect(()=>{let e=document.getElementsByTagName("html")[0];if(document&&e)return n?e.style.overflow="hidden":e.style.overflow="",()=>{e.style.overflow=""}},[n]);let g=a.useRef(null);return(0,r.jsx)(i.u,{show:n,as:a.Fragment,"data-sentry-element":"Transition","data-sentry-component":"SimpleDialog","data-sentry-source-file":"dialog.tsx",children:(0,r.jsxs)(s.Vq,{ref:g,open:n,onClose:o.Z,className:"relative z-40",onClick:e=>{var n;n=g.current,e.target.contains(n)&&(null==t||t())},"data-sentry-element":"Dialog2","data-sentry-source-file":"dialog.tsx",children:[(0,r.jsx)(i.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0","data-sentry-element":"unknown","data-sentry-source-file":"dialog.tsx",children:(0,r.jsx)("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","aria-hidden":"true",style:{}})}),(0,r.jsx)("div",{className:(0,l.cn)("fixed bottom-0 left-[50%] top-auto z-50 grid h-auto w-full translate-x-[-50%] translate-y-0 gap-4 overflow-auto duration-200 md:bottom-auto md:top-[50%] md:w-full md:max-w-4xl md:translate-y-[-50%] md:rounded-lg",m),children:(0,r.jsx)(i.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-40 bg-white/10",enterTo:(0,l.cn)("scale-100 opacity-100",f?"":"bg-white"),leave:"ease-in duration-200",leaveFrom:(0,l.cn)("scale-100 opacity-100",f?"":"bg-white"),leaveTo:"opacity-0 scale-40 bg-white/10","data-sentry-element":"unknown","data-sentry-source-file":"dialog.tsx",children:(0,r.jsxs)(s.Vq.Panel,{className:(0,l.cn)("relative mx-0 flex h-dvh w-full flex-col justify-center overflow-y-auto rounded border shadow-lg transition-all md:h-auto md:max-h-dvh",f?"":"bg-white"),style:{},"data-sentry-element":"unknown","data-sentry-source-file":"dialog.tsx",children:[(h||t)&&(0,r.jsxs)("div",{className:"flex w-full px-4 pt-4 md:px-8 md:pt-8",children:[(0,r.jsx)("div",{className:"flex flex-1 items-center",children:h}),t?(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(d.zx,{icon:"close",variant:"outline-muted",size:"sm",onClick:()=>t()}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]}):null]}),(0,r.jsx)("div",{className:(0,l.cn)("flex flex-col gap-2 overflow-y-auto px-4 pb-4 pt-2 md:px-8 md:pb-8",u),children:c})]})})})]})})},u=e=>{let{children:n,breakpoint:t,open:i,className:s}=e,[o,d]=a.useState(!1);return(a.useEffect(()=>{let e=()=>{window.innerWidth<t?d(!0):d(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[t]),o)?i?(0,r.jsx)(c,{open:i,className:(0,l.cn)("relative h-full w-full pb-0 pl-0 pr-0 pt-0",s),children:n}):null:(0,r.jsx)(r.Fragment,{children:n})}},87144:function(e,n,t){t.d(n,{TrpcProvider:function(){return m},d:function(){return c}});var r=t(57437),a=t(2265),l=t(60268),i=t(76701),s=t(72797),o=t(73248),d=t(11292);let c=(0,o.ec)(),u=()=>"/api/trpc/",m=e=>{let{children:n,hideDevtools:t}=e,o=u(),[m]=(0,a.useState)(()=>c.createClient({links:[(0,s.gb)({enabled:e=>"down"===e.direction&&e.result instanceof Error}),(0,s.N8)({url:o,fetch:async(e,n)=>(0,s.wY)()(e,{...n,credentials:"include"})})],transformer:d.ZP})),f=(0,l.NL)();return(0,r.jsxs)(c.Provider,{client:m,queryClient:f,"data-sentry-element":"unknown","data-sentry-component":"TrpcProvider","data-sentry-source-file":"TrpcProvider.tsx",children:[n,!t&&(0,r.jsx)(i.t,{})]})}},32500:function(e,n,t){t.d(n,{A7:function(){return c},Dv:function(){return N},E6:function(){return y},SH:function(){return g},SJ:function(){return d},SX:function(){return k},UU:function(){return i},XO:function(){return m},XU:function(){return u},YU:function(){return j},c4:function(){return o},eA:function(){return w},f8:function(){return l},fc:function(){return h},g2:function(){return s},hP:function(){return S},kZ:function(){return b},ne:function(){return f},ni:function(){return a},tT:function(){return x},vv:function(){return p},xh:function(){return v},xy:function(){return r}});let r="showGiven",a="newsletterOptOut",l="acceptVouch",i="preview",s="sort",o="query",d="filter",c="tab",u="first_name",m="last_name",f="pending_company_id",h="plan",g="period",p="currency",x="url",v="pending",k="success",b="requestVouch",y="showForm",w="vouchSelf",j="draftId",N="collapsed",S="selected"}}]);
//# sourceMappingURL=2585-c4ed7b3435615f2b.js.map