PageSourceSearch

https://www.getinboxzero.com/_next/static/immutable/chunks/3wjzvnd5y7tv4.js

js getinboxzero.com collected 2026-09-24 10:09:00 UTC 9,793 bytes, 4 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]="d4f737a2-df8d-f51d-9d6e-c79b0cb9b842")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,264421,e=>{"use strict";var r=e.i(322106);let t={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};t.node;let i=(0,r.default)(t);e.s(["default",0,i])},449339,e=>{"use strict";var r=e.i(264421);e.s(["Loader2Icon",()=>r.default])},535998,e=>{"use strict";var r=e.i(768364);let t=(e,t,i)=>{if(e&&"reportValidity"in e){let s=(0,r.get)(i,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},i=(e,r)=>{for(let i in r.fields){let s=r.fields[i];s&&s.ref&&"reportValidity"in s.ref?t(s.ref,i,e):s&&s.refs&&s.refs.forEach(r=>t(r,i,e))}},s=(e,t)=>{t.shouldUseNativeValidation&&i(e,t);let s={};for(let i in e){let o=(0,r.get)(t.fields,i),a=Object.assign(e[i]||{},{ref:o&&o.ref});if(n(t.names||Object.keys(e),i)){let e=Object.assign({},(0,r.get)(s,i));(0,r.set)(e,"root",a),(0,r.set)(s,i,e)}else(0,r.set)(s,i,a)}return s},n=(e,r)=>{let t=o(r);return e.some(e=>o(e).match(`^${t}\\.\\d+`))};function o(e){return e.replace(/\]|\[/g,"")}e.i(352367);var a=e.i(894730),l=e.i(450926);function u(e,r){try{var t=e()}catch(e){return r(e)}return t&&t.then?t.then(void 0,r):t}e.s(["zodResolver",0,function(e,t,n){if(void 0===n&&(n={}),"_def"in e&&"object"==typeof e._def&&"typeName"in e._def)return function(o,a,l){try{return Promise.resolve(u(function(){return Promise.resolve(e["sync"===n.mode?"parse":"parseAsync"](o,t)).then(function(e){return l.shouldUseNativeValidation&&i({},l),{errors:{},values:n.raw?Object.assign({},o):e}})},function(e){if(Array.isArray(null==e?void 0:e.issues))return{values:{},errors:s(function(e,t){for(var i={};e.length;){var s=e[0],n=s.code,o=s.message,a=s.path.join(".");if(!i[a])if("unionErrors"in s){var l=s.unionErrors[0].errors[0];i[a]={message:l.message,type:l.code}}else i[a]={message:o,type:n};if("unionErrors"in s&&s.unionErrors.forEach(function(r){return r.errors.forEach(function(r){return e.push(r)})}),t){var u=i[a].types,c=u&&u[s.code];i[a]=(0,r.appendErrors)(a,t,i,n,c?[].concat(c,s.message):s.message)}e.shift()}return i}(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}};if("_zod"in e&&"object"==typeof e._zod)return function(o,c,d){try{return Promise.resolve(u(function(){return Promise.resolve(("sync"===n.mode?l.parse:l.parseAsync)(e,o,t)).then(function(e){return d.shouldUseNativeValidation&&i({},d),{errors:{},values:n.raw?Object.assign({},o):e}})},function(e){if(e instanceof a.$ZodError)return{values:{},errors:s(function(e,t){for(var i={};e.length;){var s=e[0],n=s.code,o=s.message,a=s.path.join(".");if(!i[a])if("invalid_union"===s.code&&s.errors.length>0){var l=s.errors[0][0];i[a]={message:l.message,type:l.code}}else i[a]={message:o,type:n};if("invalid_union"===s.code&&s.errors.forEach(function(r){return r.forEach(function(r){return e.push(r)})}),t){var u=i[a].types,c=u&&u[s.code];i[a]=(0,r.appendErrors)(a,t,i,n,c?[].concat(c,s.message):s.message)}e.shift()}return i}(e.issues,!d.shouldUseNativeValidation&&"all"===d.criteriaMode),d)};throw e}))}catch(e){return Promise.reject(e)}};throw Error("Invalid input: not a Zod schema")}],535998)},981741,e=>{"use strict";var r=e.i(982630),t=e.i(535998),i=e.i(310621),s=e.i(278321),n=e.i(768364),o=e.i(731534),a=e.i(633255),l=e.i(699498),u=e.i(935308),c=e.i(715554),d=e.i(806461),f=e.i(158697);let m=o.z.object({email:o.z.string().email("Please enter a valid email address"),organizationSlug:o.z.string().regex(/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/,"Please enter a valid organization slug").max(63,"Organization slug must be 63 characters or fewer")});function g(){let e=(0,s.usePostHog)(),o=(0,c.useRouter)(),g=(0,c.useSearchParams)(),p=(0,d.normalizeInternalPath)(g?.get("next"))??"/accounts",{register:h,handleSubmit:x,formState:{errors:v}}=(0,n.useForm)({resolver:(0,t.zodResolver)(m)}),[y,b]=(0,i.useState)(!1),j=(0,i.useCallback)(async r=>{b(!0),(0,f.trackAuthStarted)(e,"sso");try{let t={email:r.email,organizationSlug:r.organizationSlug},i=new URLSearchParams({...t,next:p}).toString(),s=new URL(`/api/sso/signin?${i}`,window.location.origin),n=await fetch(s.toString()),a=await n.json();if(!n.ok){(0,f.trackAuthFailure)(e,{provider:"sso",stage:"start",errorCode:"sso_start_rejected"}),(0,u.toastError)({title:"SSO Sign-in Error",description:a.error||"Failed to initiate SSO sign-in"});return}a.redirectUrl&&((0,u.toastSuccess)({description:"Redirecting to SSO provider..."}),o.push(a.redirectUrl))}catch{(0,f.trackAuthFailure)(e,{provider:"sso",stage:"start",errorCode:"network_error"}),(0,u.toastError)({title:"SSO Sign-in Error",description:"An unexpected error occurred. Please try again."})}finally{b(!1)}},[e,o,p]);return(0,r.jsx)("div",{className:"flex h-screen flex-col justify-center text-foreground",children:(0,r.jsxs)("div",{className:"mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]",children:[(0,r.jsxs)("div",{className:"flex flex-col text-center",children:[(0,r.jsx)("h1",{className:"font-title text-2xl text-foreground",children:"SSO Sign In"}),(0,r.jsx)("p",{className:"mt-4 text-muted-foreground",children:"Sign in to your organization account"})]}),(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)("div",{className:"space-y-4",children:(0,r.jsxs)("form",{className:"space-y-4",onSubmit:x(j),children:[(0,r.jsx)(l.Input,{type:"email",name:"email",label:"Email",registerProps:h("email"),error:v.email}),(0,r.jsx)(l.Input,{type:"text",name:"organizationSlug",label:"Organization Slug",placeholder:"your-org-slug",registerProps:h("organizationSlug"),error:v.organizationSlug}),(0,r.jsx)(a.Button,{type:"submit",size:"lg",full:!0,loading:y,children:"Continue with SSO"})]})})})]})})}e.s(["default",0,function(){return(0,r.jsx)(i.Suspense,{children:(0,r.jsx)(g,{})})}])},633255,e=>{"use strict";var r=e.i(982630),t=e.i(320973),i=e.i(310621),s=e.i(452799),n=e.i(850062);let o=(0,s.cva)("inline-flex items-center justify-center whitespace-nowrap text-center font-semibold transition-transform hover:scale-105 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-black disabled:cursor-default disabled:opacity-70",{variants:{size:{xs:"px-2 py-1 text-xs",sm:"px-2 py-1 text-sm",md:"px-2.5 py-1.5 text-sm",lg:"px-3 py-2 text-sm",xl:"px-3.5 py-2.5 text-sm","2xl":"px-6 py-3 text-base font-medium",circle:""},roundedSize:{md:"rounded-md",xl:"rounded-xl",full:"rounded-full py-4 shadow-lg"},color:{primary:"bg-gray-900 text-white hover:bg-gray-700 focus:ring-gray-900",red:"bg-red-100 text-primary hover:bg-red-200 focus:ring-red-500",white:"border border-muted bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-200",blue:"bg-blue-600 text-white hover:bg-blue-500 focus:ring-blue-600",transparent:""},full:{true:"w-full"},loading:{true:""}},compoundVariants:[{color:["primary","red","white","blue"],class:"border px-4 shadow-sm hover:shadow focus:outline-none focus:ring-2 focus:ring-offset-2"}],defaultVariants:{size:"lg",roundedSize:"md",color:"primary"}}),a=(0,i.forwardRef)((e,t)=>{let{color:i,size:s,roundedSize:a,full:u,loading:c,className:d,...f}=e,m=e.link?l:"button";return(0,r.jsxs)(m,{type:"button",className:o({color:i,size:s,roundedSize:a,full:u,loading:c,className:d}),...f,disabled:c||e.disabled,ref:t,children:[c&&(0,r.jsx)(n.ButtonLoader,{}),f.children]})});a.displayName="Button";let l=e=>{let{link:{href:i,target:s,rel:n},type:o,children:a,...l}=e;return(0,r.jsx)(t.default,{href:i,target:s,rel:n,...l,children:a})};e.s(["Button",0,a])},501766,e=>{"use strict";var r=e.i(982630),t=e.i(452799),i=e.i(452675);let s=(0,t.cva)("inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-[5px] border px-1 font-mono text-[10px] font-medium leading-none",{variants:{variant:{default:"border-border bg-muted text-muted-foreground",onColor:"border-white/30 bg-white/20 text-white"}},defaultVariants:{variant:"default"}});e.s(["Kbd",0,function({className:e,variant:t,...n}){return(0,r.jsx)("kbd",{className:(0,i.cn)(s({variant:t,className:e})),...n})}])},850062,e=>{"use strict";var r=e.i(982630),t=e.i(449339);e.s(["ButtonLoader",0,function(){return(0,r.jsx)(t.Loader2Icon,{className:"mr-2 size-4 animate-spin"})},"Loading",0,function(){return(0,r.jsx)("div",{className:"p-8",children:(0,r.jsx)(t.Loader2Icon,{className:"mx-auto 
2size-8 animate-spin"})})},"LoadingMiniSpinner",0,function(){return(0,r.jsx)(t.Loader2Icon,{className:"size-4 animate-spin"})}])},935308,e=>{"use strict";var r=e.i(982630),t=e.i(195955),i=e.i(501766),s=e.i(452675);let n=null;async function o(){let e=n;return!!e&&(n=null,t.toast.dismiss(e.id),await e.onUndo(),!0)}e.s(["toastError",0,function(e){return t.toast.error(e.title||e.description,{description:e.title?e.description:void 0,duration:1e4})},"toastInfo",0,function(e){return(0,t.toast)(e.title,{description:e.description,duration:e.duration})},"toastSuccess",0,function(e){return t.toast.success(e.title||e.description,{description:e.title?e.description:void 0,id:e.id})},"toastUndo",0,function(e){let o=e.id??"undo",a=e.onUndo;n={id:o,onUndo:a};let l=()=>{n?.onUndo===a&&(n=null)};return t.toast.success(e.message,{id:o,duration:e.duration,onAutoClose:l,onDismiss:l,action:{label:(0,r.jsxs)(r.Fragment,{children:["Undo",e.shortcut&&(0,r.jsx)(i.Kbd,{className:(0,s.cn)("ml-1.5","text-blue-600 dark:text-blue-400"),children:e.shortcut})]}),onClick:a}})},"undoLatestToast",0,o])}]);
3
4//# debugId=d4f737a2-df8d-f51d-9d6e-c79b0cb9b842

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.