PageSourceSearch

https://www.revdesk.com/_next/static/immutable/chunks/1_1v3d96cj3ak.js

js revdesk.com collected 2026-10-07 20:30:46 UTC 21,943 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="4a6af07d-26bd-76c5-c8f0-89a8d3a688ea")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8900689,e=>{e.v({className:"google_sans_605b058f-module__oncXuq__className"})},1176020,e=>{e.v(t=>Promise.all(["static/immutable/chunks/33m1gff58ayve.js"].map(t=>e.l(t))).then(()=>t(8114711)))},7927108,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2lyts-_8p3eub.js"].map(t=>e.l(t))).then(()=>t(454921)))},1921639,e=>{"use strict";var t=e.i(7843476),r=e.i(5157683);let a=(0,e.i(6225913).cva)("relative grid w-full items-start gap-x-2 gap-y-0.5 rounded-xl border px-3.5 py-3 text-card-foreground text-sm has-[>svg]:has-data-[slot=alert-action]:grid-cols-[calc(var(--spacing)*4)_1fr_auto] has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-data-[slot=alert-action]:grid-cols-[1fr_auto] has-[>svg]:gap-x-2 [&>svg]:h-lh [&>svg]:w-4",{defaultVariants:{variant:"default"},variants:{variant:{default:"bg-transparent dark:bg-input/32 [&>svg]:text-muted-foreground",error:"border-destructive/32 bg-destructive/4 [&>svg]:text-destructive",info:"border-info/32 bg-info/4 [&>svg]:text-info",success:"border-success/32 bg-success/4 [&>svg]:text-success",warning:"border-warning/32 bg-warning/4 [&>svg]:text-warning"}}});e.s(["Alert",0,function({className:e,variant:s,...o}){return(0,t.jsx)("div",{className:(0,r.cn)(a({variant:s}),e),"data-slot":"alert",role:"alert",...o})},"AlertAction",0,function({className:e,...a}){return(0,t.jsx)("div",{className:(0,r.cn)("flex gap-1 max-sm:col-start-2 max-sm:mt-2 sm:row-start-1 sm:row-end-3 sm:self-center sm:[[data-slot=alert-description]~&]:col-start-2 sm:[[data-slot=alert-title]~&]:col-start-2 sm:[svg~&]:col-start-2 sm:[svg~[data-slot=alert-description]~&]:col-start-3 sm:[svg~[data-slot=alert-title]~&]:col-start-3",e),"data-slot":"alert-action",...a})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{className:(0,r.cn)("text-muted-foreground flex flex-col gap-2.5 [svg~&]:col-start-2",e),"data-slot":"alert-description",...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{className:(0,r.cn)("font-medium [svg~&]:col-start-2",e),"data-slot":"alert-title",...a})}])},2085578,e=>{"use strict";var t=e.i(7843476),r=e.i(9609278),a=e.i(1879465);e.i(7121463);var s=e.i(7129243),o=e.i(1236451);function i(e){return(0,t.jsxs)("div",{className:"ph-no-capture bg-background relative flex min-h-screen items-center justify-center px-4 py-10",children:[(0,t.jsx)(a.DottedWorldMap,{}),e.loading&&(0,t.jsx)("div",{className:"bg-background/60 absolute inset-0 z-50 flex items-center justify-center",children:(0,t.jsx)(o.default,{})}),(0,t.jsxs)(r.AuthCardReveal,{waitForContent:e.waitForContent,children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -inset-x-20 -inset-y-16 bg-[radial-gradient(closest-side,rgba(249,115,22,0.1),transparent)] blur-2xl dark:bg-[radial-gradient(closest-side,rgba(249,115,22,0.13),transparent)]"}),(0,t.jsxs)("div",{"data-auth-card":!0,className:"bg-card/95 border-border rounded-card relative flex flex-col overflow-hidden border shadow-xl ring-1 shadow-black/8 ring-black/5 backdrop-blur-md dark:shadow-black/40 dark:ring-white/5",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-[#F97316]
2/60 to-transparent"}),e.children]})]})]})}function n(e){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{hidden:!0,"data-auth-card-content":e.pending?"pending":"ready"}),(0,t.jsxs)("div",{className:"px-6 py-10 sm:px-12",children:[(e.showLogo||e.heading||e.subheading)&&(0,t.jsxs)("div",{className:"mb-8 flex flex-col items-center gap-1.5 text-center",children:[e.showLogo&&(0,t.jsx)(s.Logo,{inline:!1,className:"mb-2"}),e.heading&&(0,t.jsx)("h2",{className:"font-display text-foreground text-xl font-semibold tracking-tight",children:e.heading}),e.subheading&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.subheading})]}),e.children]}),e.footerText&&(0,t.jsx)("div",{className:"bg-muted/50 border-border flex min-h-14 flex-wrap items-center justify-center gap-x-2 gap-y-1 border-t px-6 py-3 text-center text-sm",children:e.footerText})]})}e.s(["AuthCardFrame",0,i,"AuthCardInner",0,n,"default",0,function(e){let{loading:r,...a}=e;return(0,t.jsx)(i,{loading:r,children:(0,t.jsx)(n,{...a})})}])},6657651,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1v4omwtz29qqr.js"].map(t=>e.l(t))).then(()=>t(2575678)))},7121463,7129243,e=>{"use strict";var t=e.i(7843476),r=e.i(5324445);e.s(["Logo",0,function({small:e,large:a,icon:s,inline:o=!0,className:i}){let n="RevDesk";return(0,t.jsx)("h3",{className:(0,r.default)("logo",o&&"inline",i),children:(0,t.jsx)("strong",{children:(0,t.jsx)("span",{className:(0,r.default)("font-sans font-semibold text-black dark:text-white",s?"text-base":a?"text-3xl":e?"text-sm":"text-lg"),title:n,children:n})})})}],7129243),e.s([],7121463)},1236451,e=>{"use strict";var t=e.i(7843476);e.s(["default",0,function(){return(0,t.jsx)("div",{className:"loader border-brand-default dark:border-darkmodebrand",children:(0,t.jsx)("span",{className:"loader-inner bg-brand dark:bg-darkmodebrand"})})}])},6840604,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0rmbcavzoiovj.js"].map(t=>e.l(t))).then(()=>t(6719037)))},3174115,e=>{e.v({arrow:"auth-button-module__OmzKgG__arrow","auth-spin":"auth-button-module__OmzKgG__auth-spin",chevron:"auth-button-module__OmzKgG__chevron",hiddenArrow:"auth-button-module__OmzKgG__hiddenArrow",label:"auth-button-module__OmzKgG__label",primary:"auth-button-module__OmzKgG__primary",provider:"auth-button-module__OmzKgG__provider",secondary:"auth-button-module__OmzKgG__secondary",shaft:"auth-button-module__OmzKgG__shaft",spinner:"auth-button-module__OmzKgG__spinner",spinnerSlot:"auth-button-module__OmzKgG__spinnerSlot",wrapper:"auth-button-module__OmzKgG__wrapper"})},1935838,e=>{"use strict";var t=e.i(7843476),r=e.i(5702511),a=e.i(3582050),s=e.i(5157683),o=e.i(8900689);let i={className:o.default.className,style:{fontFamily:"'Google Sans', Arial, sans-serif",fontWeight:500,fontStyle:"normal"}};null!=o.default.variable&&(i.variable=o.default.variable);var n=e.i(2657688),l=e.i(5271645),d=e.i(3174115);function c({className:e,lastUsedLabel:o,variant:i="default",showArrow:n=!1,loading:u,loadingLabel:m,...g}){let f=(0,l.useId)();return(0,t.jsxs)("div",{className:(0,s.cn)("relative w-full",d.default.wrapper),children:[(0,t.jsxs)(a.Button,{...g,variant:i,disabled:g.disabled||u,"aria-busy":u||g["aria-busy"]||void 0,"aria-label":g["aria-label"]??((0,r.actionLabel)(g.children)||void 0),"aria-describedby":[g["aria-describedby"],o?f:void 0].filter(Boolean).join(" ")||void 0,className:(0,s.cn)("rounded-control h-11 w-full px-4 text-sm sm:h-11","default"===i&&d.default.primary,"secondary"===i&&d.default.secondary,e),children:[n?(0,t.jsxs)("span",{className:d.default.label,children:[u&&m?m:g.children,(0,t.jsxs)("svg",{"aria-hidden":"true",className:(0,s.cn)(d.default.arrow,u&&d.default.hiddenArrow),viewBox:"0 0 14 13",fill:"none",children:[(0,t.jsx)("path",{className:d.default.shaft,d:"M 3 6.5 H 10"}),(0,t.jsx)("path",{className:d.default.chevron,d:"M 5 2.5 L 9 6.5 L 5 10.5"})]})]}):u&&m?m:g.children,u&&(0,t.jsx)("span",{"aria-hidden":"true",className:d.default.spinnerSlot,children:(0,t.jsx)("span",{className:d.default.spinner})})]}),o&&(0,t.jsx)("span",{id:f,className:"bg-card text-muted-foreground border-border pointer-events-none absolute end-3 -top-2 rounded-md border px-1.5 py-0.5 text-[0.625rem] leading-3 font-medium whitespace-nowrap shadow-xs",children:o})]})}e.s(["AuthButton",0,c,"AuthProviderButton",0,function({provider:e,label:r,lastUsedLabel:a,loading:o,disabled:l,className:u,...m}){return(0,t.jsxs)(c,{...m,variant:"google"===e?"default":"secondary",lastUsedLabel:a,disabled:l||o,"aria-busy":o||void 0,className:(0,s.cn)("h-auto min-h-11 py-2 sm:h-auto",d.default.provider,u),children:[(0,t.jsxs)("span",{className:"inline-flex min-w-0 items-center justify-center gap-2.5",children:[(0,t.jsx)(n.default,{src:"google"===e?"/auth/google-g.png":"/microsoft-logo.svg",alt:"",width:20,height:20,className:"size-5 shrink-0"}),(0,t.jsx)("span",{className:(0,s.cn)("whitespace-normal","google"===e&&i.className),children:r})]}),o&&(0,t.jsx)("span",{"aria-hidden":"true",className:d.default.spinnerSlot,children:(0,t.jsx)("span",{className:d.default.spinner})})]})}],1935838)},150560,e=>{"use strict";var t,r=((t={}).IncorrectEmailPassword="incorrect-email-password",t.UserNotFound="user-not-found",t.IncorrectPassword="incorrect-password",t.UserMissingPassword="missing-password",t.TwoFactorDisabled="two-factor-disabled",t.TwoFactorAlreadyEnabled="two-factor-already-enabled",t.TwoFactorSetupRequired="two-factor-setup-required",t.SecondFactorRequired="second-factor-required",t.IncorrectTwoFactorCode="incorrect-two-factor-code",t.IncorrectBackupCode="incorrect-backup-code",t.MissingBackupCodes="missing-backup-codes",t.IncorrectEmailVerificationCode="incorrect_email_verification_code",t.InternalServerError="internal-server-error",t.NewPasswordMatchesOld="new-password-matches-old",t.ThirdPartyIdentityProvi
2derEnabled="third-party-identity-provider-enabled",t.RateLimitExceeded="rate-limit-exceeded",t.SocialIdentityProviderRequired="social-identity-provider-required",t.UserAccountLocked="user-account-locked",t.OwnsTeamsWithMembers="owns-teams-with-members",t);e.s(["ErrorCode",()=>r])},1800298,e=>{"use strict";var t=e.i(7843476),r=e.i(4420100),a=e.i(5521959),s=e.i(5157683),o=e.i(5271645);e.s(["LastUsed",0,({className:e})=>{let{t:a}=(0,r.useLocale)();return(0,t.jsx)("span",{className:(0,s.cn)("text-muted-foreground absolute right-3 text-xs",e),children:a("last_used")})},"useLastUsed",0,function(){let[e,t]=(0,o.useState)();return(0,o.useEffect)(()=>{let e=a.localStorage.getItem("last_revdesk_login");e&&t(e)},[]),(0,o.useEffect)(()=>{e?a.localStorage.setItem("last_revdesk_login",e):a.localStorage.removeItem("last_revdesk_login")},[e]),[e,t]}])},2329263,e=>{"use strict";var t=e.i(3007805);e.s(["buildPostLoginUrl",0,function(e){let r=new URL("/api/auth/post-login",t.WEBAPP_URL);return e&&r.searchParams.set("callbackUrl",e),r.toString()}])},9376238,e=>{"use strict";var t=e.i(7843476),r=e.i(2085578);e.i(1166897);var a=e.i(8843373),s=e.i(150560),o=e.i(1800298),i=e.i(2329263),n=e.i(5711241),l=e.i(316984),d=e.i(4806537),c=e.i(6669876),u=e.i(3007805),m=e.i(5002225),g=e.i(6550534),f=e.i(4420100),h=e.i(7259630),p=e.i(1921639),v=e.i(3582050),b=e.i(6994814),x=e.i(9266027),_=e.i(2343794),w=e.i(6770703),j=e.i(4522016),y=e.i(669430),N=e.i(5271645),k=e.i(653145),A=e.i(9681307),E=e.i(1935838);let S=(0,w.default)(()=>e.A(1176020),{loadableGenerated:{modules:[8114711]}}),C=(0,w.default)(()=>e.A(7927108),{loadableGenerated:{modules:[454921]}}),P=(0,w.default)(()=>e.A(6840604).then(e=>({default:e.SAMLLogin})),{loadableGenerated:{modules:[6719037]}});e.s(["default",0,function({isGoogleLoginEnabled:e,isMicrosoftLoginEnabled:w,isSAMLLoginEnabled:I,samlTenantID:L,totpEmail:U}){let O=(0,h.useTRPC)(),z=(0,g.useCompatSearchParams)(),{t:R}=(0,f.useLocale)(),T=A.z.object({email:A.z.string().min(1,`${R("error_required_field")}`).regex(m.emailRegex,`${R("enter_valid_email")}`),...U?{}:{password:A.z.string().min(1,`${R("error_required_field")}`)}}).passthrough(),F=(0,k.useForm)({resolver:(0,b.zodResolver)(T)}),{register:B,formState:V}=F,[D,$]=(0,N.useState)(!!U),[G,K]=(0,N.useState)(!1),[q,M]=(0,N.useState)(null),[Z,W]=(0,o.useLastUsed)(),H={[s.ErrorCode.IncorrectEmailPassword]:R("incorrect_email_password"),[s.ErrorCode.IncorrectTwoFactorCode]:`${R("incorrect_2fa_code")} ${R("please_try_again")}`,[s.ErrorCode.InternalServerError]:`${R("something_went_wrong")} ${R("please_try_again_and_contact_us")}`,[s.ErrorCode.ThirdPartyIdentityProviderEnabled]:R("account_created_with_identity_provider"),[s.ErrorCode.UserAccountLocked]:R("account_locked_error")},X=(0,i.buildPostLoginUrl)(z?.get("callbackUrl")),Q=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(v.Button,{onClick:()=>{G?(K(!1),F.setValue("backupCode","")):($(!1),F.setValue("totpCode","")),M(null)},variant:"ghost",children:[(0,t.jsx)(n.ArrowLeft,{size:16}),R("go_back")]}),G?null:(0,t.jsxs)(v.Button,{onClick:()=>{K(!0),M(null),F.setValue("totpCode","")},variant:"ghost",children:[(0,t.jsx)(d.Lock,{size:16}),R("lost_access")]})]}),J=(0,t.jsx)(v.Button,{onClick:()=>{window.location.replace("/")},variant:"ghost",children:R("cancel")}),Y=(e,t)=>{switch(e){case"INVALID_EMAIL_OR_PASSWORD":return H[s.ErrorCode.IncorrectEmailPassword];case"USER_ACCOUNT_LOCKED":return H[s.ErrorCode.UserAccountLocked];case"INVALID_CODE":return H[s.ErrorCode.IncorrectTwoFactorCode];case"INVALID_BACKUP_CODE":return R("incorrect_backup_code");default:return t||H[s.ErrorCode.InternalServerError]}},ee=async()=>{W("credentials"),y.default.capture("login_succeeded",{method:D?"2fa":"email"}),await new Promise(e=>setTimeout(e,0)),window.location.assign(X)},et=async e=>{if(M(null),y.default.capture("login_submitted",{method:D?"2fa":"email"}),D){let{error:t}=G?await c.authClient.twoFactor.verifyBackupCode({code:e.backupCode}):await c.authClient.twoFactor.verifyTotp({code:e.totpCode});if(t){y.default.capture("login_error",{method:"2fa",error_code:t.code}),M(Y(t.code,t.message));return}await ee();return}let{data:t,error:r}
2=await c.signIn.email({email:e.email,password:e.password,callbackURL:X});if(r){y.default.capture("login_error",{method:"email",error_code:r.code}),M(Y(r.code,r.message));return}t&&"twoFactorRedirect"in t&&t.twoFactorRedirect?$(!0):await ee()},{data:er,isPending:ea,error:es}=(0,x.useQuery)(O.viewer.public.ssoConnections.queryOptions());(0,N.useEffect)(function(){es&&M(es.message)},[es]);let eo=!!u.HOSTED_FEATURES||I&&!ea&&er?.connectionExists,ei=async e=>{W(e),M(null);try{let{error:t}=await c.signIn.social({provider:e,callbackURL:X,newUserCallbackURL:`${u.WEBAPP_URL}/onboarding`});t&&M(Y(t.code,t.message))}catch{M(R("error_during_login"))}},en=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.default,{href:`${u.WEBSITE_URL}/signup`,className:"text-foreground font-medium hover:underline",children:R("create_account")}),eo&&(0,t.jsx)("span",{className:"text-muted-foreground",children:"·"}),eo&&(0,t.jsx)(P,{variant:"link",disabled:V.isSubmitting,samlTenantID:L,setErrorMessage:M})]});return(0,t.jsx)(k.FormProvider,{...F,children:(0,t.jsxs)(r.AuthCardInner,{showLogo:!0,heading:D?R("2fa_code"):R("welcome_back"),subheading:D?R("2fa_enter_six_digit_code"):R("sign_in_to_workspace"),footerText:D?
2U?J:Q:en,children:[!D&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"stack-y-4",children:[e&&(0,t.jsx)(E.AuthProviderButton,{provider:"google",label:R("continue_with_google"),lastUsedLabel:"google"===Z?R("last_used"):void 0,disabled:V.isSubmitting,"data-testid":"google",onClick:async e=>{e.preventDefault(),await ei("google")},loading:V.isSubmitting}),w&&(0,t.jsx)(E.AuthProviderButton,{provider:"microsoft",label:R("continue_with_microsoft"),lastUsedLabel:"microsoft"===Z?R("last_used"):void 0,disabled:V.isSubmitting,"data-testid":"microsoft",onClick:async e=>{e.preventDefault(),await ei("microsoft")},loading:V.isSubmitting})]}),(e||w)&&(0,t.jsx)("div",{className:"my-8",children:(0,t.jsxs)("div",{className:"relative flex items-center",children:[(0,t.jsx)("div",{className:"border-border grow border-t"}),(0,t.jsx)("span",{className:"text-muted-foreground mx-3 shrink text-xs leading-none font-normal",children:R("or_continue_with_email")}),(0,t.jsx)("div",{className:"border-border grow border-t"})]})})]}),(0,t.jsx)("form",{method:"post",action:"/api/auth/form-fallback",onSubmit:F.handleSubmit(et),noValidate:!0,"data-testid":"login-form",children:(0,t.jsxs)("div",{className:"stack-y-6",children:[(0,t.jsxs)("div",{className:(0,_.default)("stack-y-6",{hidden:D}),children:[(0,t.jsx)(a.EmailField,{id:"email",label:R("email_address"),defaultValue:U||z?.get("email"),placeholder:"[email protected]",required:!0,autoComplete:"email",...B("email")}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(a.PasswordField,{id:"password",autoComplete:"current-password",required:!U,className:"mb-0",...B("password")}),(0,t.jsx)("div",{className:"absolute -top-[2px] ltr:right-0 rtl:left-0",children:(0,t.jsx)(j.default,{href:"/auth/forgot-password",tabIndex:-1,className:"text-foreground text-sm font-medium",children:R("forgot")})})]})]}),D?G?(0,t.jsx)(S,{center:!0}):(0,t.jsx)(C,{center:!0}):null,q&&(0,t.jsxs)(p.Alert,{variant:"error",children:[(0,t.jsx)(l.CircleX,{size:16}),(0,t.jsx)(p.AlertTitle,{children:q})]}),q===H[s.ErrorCode.UserAccountLocked]&&(0,t.jsx)("a",{href:`mailto:${u.SUPPORT_MAIL_ADDRESS}`,children:(0,t.jsx)(E.AuthButton,{type:"button",variant:"outline",children:R("contact_support")})}),(0,t.jsx)(E.AuthButton,{type:"submit",showArrow:!0,lastUsedLabel:"credentials"
2!==Z||D?void 0:R("last_used"),variant:"default",disabled:V.isSubmitting,loading:V.isSubmitting,children:(0,t.jsx)("span",{children:D?R("submit"):R("continue")})})]})})]})})}])},5002225,e=>{"use strict";var t=e.i(9681307);let r=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.']*)[A-Z0-9_+'-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,a=t.z.string().max(254,{message:"Email address is too long"}).regex(r);e.s(["domainRegex",0,/^[a-zA-Z0-9\u00a1-\uffff]([a-zA-Z0-9\u00a1-\uffff-]*[a-zA-Z0-9\u00a1-\uffff])?(\.[a-zA-Z0-9\u00a1-\uffff]([a-zA-Z0-9\u00a1-\uffff-]*[a-zA-Z0-9\u00a1-\uffff])?)*$/,"emailRegex",0,r,"emailSchema",0,a])},6550534,e=>{"use strict";var t=e.i(5618566);e.s(["useCompatSearchParams",0,()=>{let e=(0,t.useSearchParams)()??new URLSearchParams,r=(0,t.useParams)()??{},a=new URLSearchParams(e.toString());return Object.getOwnPropertyNames(r).forEach(e=>{a.delete(e);let t=r[e]||"";("string"==typeof t?t.split("/"):t).forEach(t=>{a.append(e,t)})}),new t.ReadonlyURLSearchParams(a)}])},5521959,e=>{"use strict";e.s(["localStorage",0,{getItem(e){try{return window.localStorage.getItem(e)}catch{return null}},setItem(e,t){try{window.localStorage.setItem(e,t)}catch{return}},removeItem:e=>{try{window.localStorage.removeItem(e)}catch{return}}},"sessionStorage",0,{getItem(e){try{return window.sessionStorage.getItem(e)}catch{return null}},setItem(e,t){try{window.sessionStorage.setItem(e,t)}catch{return}},removeItem:e=>{try{window.sessionStorage.removeItem(e)}catch{return}}}])},6994814,e=>{"use strict";var t=e.i(653145);let r=(e,r,a)=>{if(e&&"reportValidity"in e){let s=(0,t.get)(a,r);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},a=(e,t)=>{for(let a in t.fields){let s=t.fields[a];s&&s.ref&&"reportValidity"in s.ref?r(s.ref,a,e):s&&s.refs&&s.refs.forEach(t=>r(t,a,e))}},s=(e,r)=>{r.shouldUseNativeValidation&&a(e,r);let s={};for(let a in e){let i=(0,t.get)(r.fields,a),n=Object.assign(e[a]||{},{ref:i&&i.refs?i.refs[0]:i&&i.ref});if(o(r.names||Object.keys(e),a)){let e=Object.assign({},(0,t.get)(s,a));(0,t.set)(e,"root",n),(0,t.set)(s,a,e)}else(0,t.set)(s,a,n)}return s},o=(e,t)=>{let r=i(t).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(e=>i(e).match(`^${r}\\.\\d+`))};function i(e){return e.replace(/\[(\d+)]/g,".$1").replace(/[[\]]/g,"")}function n(){return(n=Object.assign.bind()).apply(null,arguments)}function l(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}e.s(["zodResolver",0,function(e,r,o){if(void 0===o&&(o={}),"_zod"in e&&"object"==typeof e._zod)return function(i,d,c){try{return Promise.resolve(l(function(){function t(e){return c.shouldUseNativeValidation&&a({},c),{errors:{},values:o.raw?Object.assign({},i):e}}return"sync"===o.mode?t(e.parse(i,r)):Promise.resolve(e.parseAsync(i,r)).then(t)},function(e){var r;if(!(null==e||null==(r=e._zod)||null==(r=r.traits)||!r.has("$ZodError")))return{values:{},errors:s(function(e,r){for(var a=Object.create(null);e.length;)!function(){var s=e[0],o=s.code,i=s.message,l=s.path.join(".");if(!a[l])if("invalid_union"===s.code&&s.errors.length>0){var d,c,u=s.errors.reduce(function(e,t){return t.length<e.length?t:e})[0];a[l]={message:null!=(d=null==u?void 0:u.message)?d:i,type:null!=(c=null==u?void 0:u.code)?c:o}}else a[l]={message:i,type:o};if("invalid_union"===s.code&&s.errors.forEach(function(t){return t.forEach(function(t){return e.push(n({},t,{path:[].concat(s.path,t.path)}))})}),r){var m=a[l].types,g=m&&m[s.code];a[l]=(0,t.appendErrors)(l,r,a,o,g?[].concat(g,s.message):s.message)}e.shift()}();return a}(e.issues,!c.shouldUseNativeValidation&&"all"===c.criteriaMode),c)};throw e}))}catch(e){return Promise.reject(e)}};if("_def"in e&&"object"==typeof e._def)return function(i,n,d){try{return Promise.resolve(l(function(){return Promise.resolve(e["sync"===o.mode?"parse":"parseAsync"](i,r)).then(function(e){return d.shouldUseNativeValidation&&a({},d),{errors:{},values:o.raw?Object.assign({},i):e}})},function(e){if(Array.isArray(null==e?void 0:e.issues))return{values:{},errors:s(function(e,r){for(var a=Object.create(null);e.length;){var s=e[0],o=s.code,i=s.message,n=s.path.join(".");if(!a[n])if("unionErrors"in s){var l,d,c=s.unionErrors.reduce(function(e,t){return t.errors.length<e.errors.length?t:e}).errors[0];a[n]={message:null!=(l=null==c?void 0:c.message)?l:i,type:null!=(d=null==c?void 0:c.code)?d:o}}else a[n]={message:i,type:o};
2if("unionErrors"in s&&s.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),r){var u=a[n].types,m=u&&u[s.code];a[n]=(0,t.appendErrors)(n,r,a,o,m?[].concat(m,s.message):s.message)}e.shift()}return a}(e.errors,!d.shouldUseNativeValidation&&"all"===d.criteriaMode),d)};throw e}))}catch(e){return Promise.reject(e)}};throw Error("Invalid input: not a Zod schema")}],6994814)}]);
3
4//# debugId=4a6af07d-26bd-76c5-c8f0-89a8d3a688ea
5//# sourceMappingURL=0otzvz1pzpp-b.js.map

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.