PageSourceSearch

https://decionis.com/_next/static/chunks/1298-535c7f43fa07e999.js

js decionis.com collected 2026-09-25 09:52:19 UTC 26,059 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1298],{31298:(e,t,a)=>{Promise.resolve().then(a.bind(a,35622))},33926:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});let i=(0,a(21592).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},35622:(e,t,a)=>{"use strict";a.d(t,{default:()=>_});var i=a(55694),s=a(36162),n=a.n(s),r=a(33926),o=a(17459),l=a(29703),c=a(52478),d=a(61845),u=a(62429),m=a(18726),h=a(62391);function p(e){let{children:t,clientName:a,clientDescription:s,focused:r=!1}=e;return(0,i.jsxs)("main",{className:"relative flex min-h-screen items-center justify-center overflow-hidden bg-[#0c0b12] px-4 py-8 text-slate-950 sm:px-6 sm:py-12",children:[(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute left-1/2 top-[-22rem] h-[44rem] w-[44rem] -translate-x-1/2 rounded-full bg-violet-700/20 blur-3xl"}),(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-[linear-gradient(to_right,rgba(255,255,255,0.025)_1px,transparent_1px),linear-gradient(to_bottom,rgba(255,255,255,0.025)_1px,transparent_1px)] bg-[size:48px_48px] [mask-image:linear-gradient(to_bottom,black,transparent_90%)]"}),(0,i.jsxs)("section",{"aria-labelledby":"oauth-sign-in-title",className:"relative w-full max-w-2xl overflow-hidden rounded-[28px] border border-white/10 bg-white shadow-[0_32px_100px_-36px_rgba(124,58,237,0.55)]",children:[(0,i.jsxs)("header",{className:"flex items-center justify-between gap-4 border-b border-slate-200 px-6 py-4 sm:px-8",children:[r?(0,i.jsxs)("div",{role:"img","aria-label":"Connect Decionis to Walmart",className:"inline-flex items-center gap-2.5",children:[(0,i.jsx)(m.default,{src:"/icon-192.png",alt:"",width:34,height:34,priority:!0}),(0,i.jsx)("span",{className:"text-sm font-semibold tracking-tight text-slate-950",children:"Decionis"}),(0,i.jsx)("span",{"aria-hidden":"true",className:"text-[#0071DC]",children:"→"}),(0,i.jsx)("span",{className:"grid h-[34px] w-[34px] place-items-center rounded-xl bg-[#0071DC]",children:(0,i.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 48 48",className:"h-5 w-5",fill:"none",stroke:"#FFC220",strokeLinecap:"round",strokeWidth:"5.6",children:[(0,i.jsx)("path",{d:"M24 4v9"}),(0,i.jsx)("path",{d:"m41.3 14-7.8 4.5"}),(0,i.jsx)("path",{d:"m41.3 34-7.8-4.5"}),(0,i.jsx)("path",{d:"M24 44v-9"}),(0,i.jsx)("path",{d:"m6.7 34 7.8-4.5"}),(0,i.jsx)("path",{d:"m6.7 14 7.8 4.5"})]})}),(0,i.jsx)("span",{className:"hidden text-sm font-semibold tracking-tight text-[#0071DC] sm:inline",children:"Walmart"})]}):(0,i.jsxs)(n(),{href:"/",className:"inline-flex items-center gap-2.5","aria-label":"Decionis home",children:[(0,i.jsx)(m.default,{src:"/icon-192.png",alt:"",width:34,height:34,priority:!0}),(0,i.jsx)("span",{className:"text-base font-semibold tracking-tight text-slate-950",children:"Decionis"})]}),(0,i.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-emerald-200 bg-emerald-50 px-2.5 py-1 text-[11px] font-semibold text-emerald-800",children:[(0,i.jsx)(h.A,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Secure OAuth"]})]}),(0,i.jsxs)("div",{className:"px-6 py-7 sm:px-8 sm:py-8",children:[(0,i.jsx)("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-violet-700",children:"Authorization request"}),(0,i.jsx)("h1",{id:"oauth-sign-in-title",className:"mt-2 text-3xl font-semibold tracking-[-0.035em] text-slate-950 sm:text-[2.15rem]",children:"Sign in to Decionis"}),(0,i.jsxs)("p",{className:"mt-2 text-base text-slate-600",children:["to continue to ",(0,i.jsx)("strong",{className:"font-semibold text-slate-950",children:a})]}),(0,i.jsx)("p",{className:"mt-3 max-w-xl text-sm leading-6 text-slate-500",children:s}),(0,i.jsx)("div",{className:"mt-7",children:t})]}),r?null:(0,i.jsxs)("div",{className:"flex flex-col gap-3 border-t border-slate-200 bg-slate-50 px-6 py-4 text-xs text-slate-500 sm:flex-row sm:items-center sm:justify-between sm:px-8",children:[(0,i.jsx)("p",{children:"Your verified identity opens the matching workspace or provisions one automatically."}),(0,i.jsxs)("nav",{"aria-label":"Authorization help",className:"flex shrink-0 items-center gap-4",children:[(0,i.jsx)(n(),{href:"/docs/auth",className:"font-medium hover:text-slate-950",children:"Help"}),(0,i.jsx)(n(),{href:"/privacy",className:"font-medium hover:text-slate-950",children:"Privacy"}),(0,i.jsx)(n(),{href:"/terms",className:"font-medium hover:text-slate-950",children:"Terms"})]})]})]})]})}var g=a(48453),x=a(49296);let f={name:"the requesting application",description:"Authorize a coding, chat, or automation client to use your Decionis workspace."},b={make:{name:"Make",description:"Connect Make to your Decionis workspace without copying an API key."},zapier:{name:"Zapier",description:"Connect Zapier to your Decionis workspace without copying an API key."},walmart:{name:"Walmart Marketplace",description:"Use your verified identity to select or provision a Decionis workspace, then continue to Walmart consent."}};var y=a(65755),v=a(75390),w=a(62141);let N=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}
1$/i,j=[{id:"google",label:"Google",sublabel:"Google Workspace"},{id:"github",label:"GitHub",sublabel:"Engineering teams"},{id:"microsoft-entra",label:"Microsoft Entra",sublabel:"Microsoft 365 tenants"}],S={expired:"That Decionis Account sign-in link expired or was already used. Start again.",invalid:"Decionis Account sign-in could not be completed. Start again.",unavailable:"Decionis Account sign-in is temporarily unavailable. Try again in a minute or use another method."};function _(e){var t,a,s,m,h,_;let{presentation:k="website",accountSignIn:P=!1}=e,A=(0,l.useSearchParams)(),[C,D]=(0,c.useState)(!1),[U,E]=(0,c.useState)(""),[I,O]=(0,c.useState)(""),[T,R]=(0,c.useState)(""),[L,z]=(0,c.useState)(""),[W,q]=(0,c.useState)("request"),[M,H]=(0,c.useState)(!1),[V,Y]=(0,c.useState)(null),[G,F]=(0,c.useState)(null),[J,B]=(0,c.useState)(""),[Z,$]=(0,c.useState)(null),[K,Q]=(0,c.useState)(!1),[X,ee]=(0,c.useState)(null),[et,ea]=(0,c.useState)(null),ei=null!=(s=null==(t=A.get("marketplace_target"))?void 0:t.trim().toLowerCase())?s:"",es=null!=(m=null==(a=A.get("marketplace_activation_id"))?void 0:a.trim())?m:"",en=v.r.safe(A.get("next")),er=function(e,t){let a=e.trim().toLowerCase(),i=b[a];if(i)return i;if("mcp"!==a||!t)return f;try{let e=new URL(t).searchParams.get("redirect_uri");if(!e)return f;let a=new URL(e).hostname.toLowerCase();if("claude.ai"===a||a.endsWith(".claude.ai"))return{name:"Claude",description:"Connect Claude to Decionis for policy-gated actions and signed evidence."};if("chatgpt.com"===a||a.endsWith(".chatgpt.com")||"chat.openai.com"===a)return{name:"ChatGPT",description:"Connect ChatGPT to Decionis for policy-gated actions and signed evidence."}}catch(e){return f}return{name:"your MCP client",description:"Connect an MCP client to Decionis for policy-gated actions and signed evidence."}}(ei,en),eo=N.test(J.trim()),el=null!=(_=S[null!=(h=A.get("account_handoff"))?h:""])?_:null,ec="/oauth/account/start".concat(en?"?next=".concat(encodeURIComponent(en)):"");async function ed(e){ea(null),$(e.id);try{let t=await y.o.startProviderSignIn({provider:e.id,flow:"sign-in",...eo?{orgId:J.trim()}:{},...en?{returnTo:en}:{}});window.location.href=t}catch(t){ea(function(e,t){let a=(0,g.gJ)(e);return/not configured|OAUTH_PROVIDER_NOT_CONFIGURED/i.test(a)?"".concat(t," sign-in still needs provider configuration. Use another method for now."):/OAUTH_PROVIDER_UNAVAILABLE|unable to reach/i.test(a)?"".concat(t," sign-in could not be reached. Please try again or use another method."):(0,g.lf)(e,"Unable to start sign-in flow. Please try again.")}(t,e.label))}finally{$(null)}}async function eu(e){e.preventDefault(),ee(null),Q(!0);try{var t,a,i,s,n;if(!U.trim()||!I)return void ee("Enter your username and password.");let e=await fetch("/api/proxy/v1/public/auth/password/sign-in",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({username:U.trim(),password:I,...eo?{org_id:J.trim()}:{}})}),r=await e.json().catch(()=>({})),o=null!=(n=null==(t=r.next)?void 0:t.workspace_path)?n:(null==(a=r.org)?void 0:a.id)?"/workspace?org_id=".concat(encodeURIComponent(r.org.id)):null;if(!e.ok||!o)throw Error(r.message||r.error||"Unable to sign in.");(null==(i=r.org)?void 0:i.id)&&r.org.name&&(null==(s=r.user)?void 0:s.email)&&(0,x.bH)({source:"password",org:r.org,user:r.user}),window.location.href=null!=en?en:o}catch(e){ee((0,g.lf)(e,"Unable to sign in. Please check your credentials."))}finally{Q(!1)}}async function em(e){e.preventDefault(),Y(null),F(null),H(!0);try{var t,a,i,s,n,r;if("request"===W){let e=await fetch("/api/proxy/v1/public/auth/email/start",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:T.trim(),...eo?{org_id:J.trim()}:{}})}),t=await e.json().catch(()=>({}));if(!e.ok){if((0,w.x)({status:e.status,error:t.error,message:t.message})){q("verify"),F(w.a);return}Y((0,g.lf)(Error(t.message||t.error||"API ".concat(e.status)),"Unable to send sign-in code. Please try again."));return}q("verify"),F((null==(n=t.verification)?void 0:n.debug_otp_code)?"Use code ".concat(t.verification.debug_otp_code,"."):"If this email has a Decionis account, a 6-digit code is on its way. New merchant? Create a workspace below.");return}let e=await fetch("/api/proxy/v1/public/auth/email/verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:T.trim(),otp_code:L})}),o=await e.json().catch(()=>({})),l=null!=(r=null==(t=o.next)?void 0:t.workspace_path)?r:(null==(a=o.org)?void 0:a.id)?"/workspace?org_id=".concat(encodeURIComponent(o.org.id)):null;if(!e.ok||!l)throw Error(o.message||o.error||"Unable to verify sign-in code.");(null==(i=o.org)?void 0:i.id)&&o.org.name&&(null==(s=o.user)?void 0:s.email)&&(0,x.bH)({source:"email",org:o.org,user:o.user}),window.location.href=null!=en?en:l}catch(e){"request"===W?(q("verify"),F(w.a)):Y((0,g.lf)(e,"Unable to sign in with email. Please try again."))}finally{H(!1)}}(0,c.useEffect)(()=>{var e,t;let a=[null==(e=A.get("org_id"))?void 0:e.trim(),null==(t=(0,x.WS)())?void 0:t.org.id].find(e=>!!(e&&N.test(e)));a&&B(e=>e||a)},[A]);let eh=new URLSearchParams;ei&&eh.set("marketplace_target",ei),es&&eh.set("marketplace_activation_id",es),en&&eh.set("next",en);let ep="/create-account".concat(eh.size?"?".concat(eh):""),eg=(0,i.jsxs)("form",{className:"space-y-4 rounded-2xl border border-slate-200 bg-white p-5 shadow-sm",onSubmit:eu,children:[(0,i.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900",children:[(0,i.jsx)(r.A,{className:"h-4 w-4 text-violet-700","aria-hidden":"true"}),"Username and password"]}),(0,i.jsxs)("label",{className:"flex flex-col gap-1.5 text-sm",children:[(0,i.jsx)("span",{className:"font-medium text-slate-700",children:"Username or email"}),(0,i.jsx)("input",{required:!0,value:U,onChange:e=>E(e.target.value),autoComplete:"username",placeholder:"[email protected]",className:"auth-input"})]}),(0,i.jsxs)("label",{className:"flex flex-col gap-1.5 text-sm",children:[(0,i.jsx)("span",{className:"font-medium text-slate-700",children:"Password"}
1),(0,i.jsx)("input",{type:"password",required:!0,value:I,onChange:e=>O(e.target.value),autoComplete:"current-password",placeholder:"Your password",className:"auth-input"})]}),X?(0,i.jsx)("div",{className:"text-sm text-red-600",children:X}):null,(0,i.jsx)("button",{type:"submit",disabled:K,className:"inline-flex w-full items-center justify-center rounded-xl bg-violet-700 px-6 py-3 text-sm font-semibold text-white shadow-[0_10px_24px_-10px_rgba(109,40,217,0.8)] transition-all hover:-translate-y-px hover:bg-violet-800 disabled:cursor-not-allowed disabled:opacity-60",children:K?"Checking...":"Sign in securely"})]}),ex=(0,i.jsxs)("section",{className:"rounded-2xl border border-slate-200 bg-white p-5 shadow-sm",children:[(0,i.jsx)("div",{className:"mb-4 text-sm font-semibold text-slate-900",children:"Continue with"}),(0,i.jsx)("div",{className:"grid gap-2.5 sm:grid-cols-3",children:j.map(e=>(0,i.jsxs)("button",{type:"button",onClick:()=>ed(e),disabled:null!==Z,className:"group flex min-h-12 min-w-0 items-center justify-center gap-2.5 rounded-xl border border-slate-200 bg-white px-3 py-2.5 text-slate-700 shadow-sm transition-all hover:-translate-y-px hover:border-violet-300 hover:shadow-md disabled:cursor-not-allowed disabled:opacity-60",children:[(0,i.jsx)("span",{className:"grid h-7 w-7 shrink-0 place-items-center rounded-lg bg-slate-50 text-slate-800 transition-colors group-hover:bg-violet-50",children:(0,i.jsx)(d.r,{id:e.id})}),(0,i.jsx)("span",{className:"truncate text-sm font-semibold",children:Z===e.id?"Redirecting...":"oauth"===k?"Use ".concat(e.label):e.label})]},e.id))}),et?(0,i.jsx)("div",{className:"mt-3 text-sm text-red-600",children:et}):null]}),ef=(0,i.jsxs)("form",{className:"space-y-4 rounded-2xl border border-slate-200 bg-white p-5 shadow-sm",onSubmit:em,children:[(0,i.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900",children:[(0,i.jsx)(o.A,{className:"h-4 w-4 text-violet-700","aria-hidden":"true"}),"Sign in with an email code"]}),(0,i.jsxs)("label",{className:"flex flex-col gap-1.5 text-sm",children:[(0,i.jsx)("span",{className:"font-medium text-slate-700",children:"Email"}),(0,i.jsx)("input",{type:"email",required:!0,value:T,onChange:e=>R(e.target.value),disabled:"verify"===W,autoComplete:"email",placeholder:"[email protected]",className:"auth-input"})]}),"verify"===W?(0,i.jsxs)("label",{className:"flex flex-col gap-1.5 text-sm",children:[(0,i.jsx)("span",{className:"font-medium text-slate-700",children:"6-digit code"}),(0,i.jsx)("input",{required:!0,inputMode:"numeric",pattern:"[0-9]{6}",maxLength:6,value:L,onChange:e=>z(e.target.value.replace(/\D/g,"").slice(0,6)),autoComplete:"one-time-code",placeholder:"123456",className:"auth-input text-center font-mono tracking-[0.3em]"})]}):null,G?(0,i.jsx)("div",{className:"text-sm text-emerald-700",children:G}):null,V?(0,i.jsx)("div",{className:"text-sm text-red-600",children:V}):null,(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)("button",{type:"submit",disabled:M||"verify"===W&&6!==L.length,className:"inline-flex flex-1 items-center justify-center rounded-xl bg-violet-700 px-6 py-3 text-sm font-semibold text-white transition-all hover:bg-violet-800 disabled:cursor-not-allowed disabled:opacity-60",children:M?"request"===W?"Sending...":"Verifying...":"request"===W?"Email me a code":"Verify and sign in"}),"verify"===W?(0,i.jsx)("button",{type:"button",onClick:()=>{q("request"),z(""),F(null),Y(null)},className:"rounded-xl border border-slate-200 px-4 py-3 text-sm font-semibold text-slate-600 hover:bg-slate-50",children:"Change email"}):null]})]});if("oauth"===k){let e=P?(0,i.jsxs)("section",{className:"rounded-2xl border border-slate-200 bg-white p-5 shadow-sm",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900",children:[(0,i.jsx)(r.A,{className:"h-4 w-4 text-violet-700","aria-hidden":"true"}),"Your Decionis Account"]}),(0,i.jsx)("p",{className:"mt-1.5 text-sm leading-6 text-slate-600",children:"One verified account for every Decionis product. Sign-in and account recovery happen at accounts.decionis.com; nothing is entered here."}),el?(0,i.jsx)("div",{className:"mt-3 text-sm text-red-600",children:el}):null,(0,i.jsx)("a",{href:ec,className:"mt-4 inline-flex w-full items-center justify-center rounded-xl bg-violet-700 px-6 py-3 text-sm font-semibold text-white shadow-[0_10px_24px_-10px_rgba(109,40,217,0.8)] transition-all hover:-translate-y-
1px hover:bg-violet-800",children:"Continue with your Decionis Account"})]}):ex;return(0,i.jsxs)(p,{clientName:er.name,clientDescription:er.description,focused:"walmart"===ei,children:[e,(0,i.jsx)("div",{className:"mt-5 text-center",children:(0,i.jsx)("button",{type:"button","aria-expanded":C,onClick:()=>D(e=>!e),className:"text-sm font-semibold text-violet-700 underline-offset-4 hover:underline",children:C?"Hide other ways to sign in":"Other ways to sign in"})}),C?(0,i.jsxs)("div",{className:"mt-5 space-y-5",children:[P?ex:null,eg,ef]}):null,"walmart"===ei?(0,i.jsxs)("p",{className:"mt-6 text-center text-sm text-slate-500",children:["New to Decionis?"," ",(0,i.jsx)(n(),{href:ep,className:"font-semibold text-violet-700 underline-offset-4 hover:underline",children:"Create a workspace"})]}):null]})}return(0,i.jsxs)(u.A,{active:"sign-in",mode:"sign-in",eyebrow:"Decionis account",title:"Sign in to your Decionis workspace.",description:"Review governed actions, active policy gates, and the signed evidence behind every verdict.",children:[ex,(0,i.jsxs)("div",{className:"my-6 flex items-center gap-3 text-[11px] font-semibold uppercase tracking-[0.14em] text-slate-400",children:[(0,i.jsx)("span",{className:"h-px flex-1 bg-slate-200"}),"Or continue with email",(0,i.jsx)("span",{className:"h-px flex-1 bg-slate-200"})]}),ef,(0,i.jsxs)("p",{className:"mt-6 text-center text-sm text-slate-500",children:["Need a workspace?"," ",(0,i.jsx)(n(),{href:ep,className:"font-semibold text-violet-700 underline-offset-4 hover:underline",children:"Create account"})]})]})}},48453:(e,t,a)=>{"use strict";function i(e){return e instanceof Error?e.message:"string"==typeof e?e:"Unexpected error"}a.d(t,{gJ:()=>i,gU:()=>o,lf:()=>n});let s=[[/network|fetch|ECONNREFUSED|ERR_CONNECTION/i,"We couldn't reach the server. Please check your connection and try again."],[/UPSTREAM_UNREACHABLE|could not reach the Decionis API/i,"We couldn't reach Decionis just now — this one is on us, not you. Please try again in a minute."],[/timeout|ETIMEDOUT/i,"The request timed out. Please try again in a moment."],[/401|unauthorized|forbidden/i,"Your session may have expired. Please refresh the page and try again."],[/404|not found/i,"The requested resource was not found."],[/429|rate.?limit|too many/i,"You've made too many requests. Please wait a moment and try again."],[/not configured|OAUTH_PROVIDER_NOT_CONFIGURED|provider.*unavailable|unavailable.*provider|OAUTH_PROVIDER_UNAVAILABLE|unable to reach.*sign.?in/i,"This sign-in option is not available right now. Please try again in a moment or use a different method."],[/otp_unavailable|account verification is unavailable|verification code email/i,"Account verification is temporarily unavailable. Please try again shortly."],[/5\d{2}|internal server|unexpected error/i,"Something went wrong on our end. Please try again shortly."],[/stripe|checkout|payment|billing/i,"There was a problem processing your request. Please try again or contact support."],[/SAML|SSO|sign.?in/i,"Sign-in is temporarily unavailable. Please try again or contact your admin."]];function n(e,t){let a=i(e);for(let[e,t]of s)if(e.test(a))return t;return null!=t?t:"Something went wrong. Please try again."}function r(e){switch(e){case"start":return"We had trouble starting your session. Please refresh the page and try again.";case"intake":return"Couldn’t save this step right now. Your input is still on the page. Please try again.";case"run":return"Couldn’t run the diagnostic right now. Your answers are saved on this page. Please try again.";case"pack":return"Couldn’t save the decision pack right now. Please try again.";case"outcome":return"Couldn’t submit your outcome right now. Please try again.";default:return"Something went wrong. Please try again."}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"generic",a=i(e).trim();return a?/^(Select|Tell us)\b/i.test(a)?a:/missing cycle id/i.test(a)?"Your diagnostic session expired. Please refresh and start again.":/already exists|duplicate|conflict|409/i.test(a)?"A session already exists for this email. Please refresh to continue where you left off.":/missing api key|unauthorized|forbidden|api 401/i.test(a)?"start"===t?"We had trouble starting your session. Please refresh the page and try again.":"Your diagnostic session needs a refresh. Please reload this page and try again.":r(t):r
1(t)}},49296:(e,t,a)=>{"use strict";a.d(t,{DB:()=>c,Lm:()=>s,WS:()=>r,YP:()=>d,bH:()=>o,bk:()=>l});let i="decionis:account-session:v1",s="decionis:account-session-changed";class n{static asRecord(e){return!e||"object"!=typeof e||Array.isArray(e)?{}:e}static asString(e){if("string"!=typeof e)return null;let t=e.trim();return t.length>0?t:null}static normalizeSession(e){var t;let a=n.asRecord(e),i=n.asRecord(a.user),s=n.asRecord(a.org),r=n.asString(i.email),o=n.asString(s.id),l=n.asString(s.name);if(!r||!o||!l)return null;let c=a.source;return{signed_in_at:null!=(t=n.asString(a.signed_in_at))?t:new Date().toISOString(),source:"registration"===c||"sso"===c||"email"===c?c:"password",user:{...n.asString(i.id)?{id:n.asString(i.id)}:{},email:r,name:n.asString(i.name)},org:{id:o,name:l}}}static emitAccountSessionChanged(){window.dispatchEvent(new Event(s))}static readAccountSession(){try{var e;let t=null!=(e=window.localStorage.getItem(i))?e:window.sessionStorage.getItem(i);if(!t)return null;let a=n.normalizeSession(JSON.parse(t));return a&&!window.localStorage.getItem(i)&&window.localStorage.setItem(i,JSON.stringify(a)),a}catch(e){return null}}static writeAccountSession(e){var t;let a=n.normalizeSession({...e,signed_in_at:null!=(t=e.signed_in_at)?t:new Date().toISOString()});if(a)try{window.localStorage.setItem(i,JSON.stringify(a)),window.sessionStorage.removeItem(i),n.emitAccountSessionChanged()}catch(e){}}static clearAccountSession(){try{window.localStorage.removeItem(i),window.sessionStorage.removeItem(i),n.emitAccountSessionChanged()}catch(e){}}static accountSessionDisplayName(e){var t;return(null==(t=e.user.name)?void 0:t.trim())||e.user.email}static accountSessionWorkspaceHref(e){return"/workspace?org_id=".concat(encodeURIComponent(e.org.id))}}let r=n.readAccountSession,o=n.writeAccountSession,l=n.clearAccountSession,c=n.accountSessionDisplayName,d=n.accountSessionWorkspaceHref},61845:(e,t,a)=>{"use strict";a.d(t,{r:()=>c});var i=a(55694);a(52478);var s=a(33619),n=a(51882),r=a(58016);let o={google:n.F4b,github:s.hL4,"microsoft-entra":s.cpg,okta:r.Idx},l={google:"",github:"text-slate-950","microsoft-entra":"text-[#00A4EF]",okta:"text-[#00297A]"};function c(e){let{id:t,className:a="h-5 w-5"}=e,s=o[t],n=l[t];return(0,i.jsx)(s,{"aria-hidden":"true",className:"".concat(a," ").concat(n).trim()})}},62141:(e,t,a)=>{"use strict";a.d(t,{a:()=>i,x:()=>s});let i="The confirmation response was interrupted, but your code may already be in your inbox. Enter it below if it arrived, or request another code.";function s(e){return!(e.status<500)&&"OTP_UNCONFIGURED"!==e.error&&"OTP_UNAVAILABLE"!==e.error&&"ACCOUNT_AUTHORITY_UNAVAILABLE"!==e.error&&"UPSTREAM_UNCONFIGURED"!==e.error}},62391:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});let i=(0,a(21592).A)("lock-keyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},62429:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(55694),s=a(18726),n=a(36162),r=a.n(n);function o(e){let{children:t,mode:a}=e;return(0,i.jsxs)("main",{className:"relative flex min-h-[100svh] items-start justify-center overflow-hidden bg-[#f6f7fb] px-4 py-8 text-slate-950 sm:px-6 lg:py-12",children:[(0,i.jsxs)("div",{className:"pointer-events-none absolute inset-0 overflow-hidden","aria-hidden":"true",children:[(0,i.jsx)(s.default,{src:"/decionis-logo-wordmark.png",alt:"",width:880,height:240,className:"absolute -left-48 top-[12%] w-[42rem] -rotate-12 opacity-[0.025]"}),(0,i.jsx)(s.default,{src:"/decionis-logo-wordmark.png",alt:"",width:880,height:240,className:"absolute -right-52 bottom-[10%] w-[46rem] rotate-12 opacity-[0.03]"})]}),(0,i.jsxs)("div",{className:"relative z-10 w-full ".concat("sign-in"===a?"max-w-[42rem]":"max-w-4xl"),children:[(0,i.jsx)(r(),{href:"/",className:"mx-auto mb-6 flex w-fit justify-center rounded-2xl px-4 py-2","aria-label":"Decionis home",children:(0,i.jsx)(s.default,{src:"/decionis-logo-wordmark.png",alt:"Decionis",width:440,height:120,className:"h-auto w-56 sm:w-64",priority:!0})}),(0,i.jsx)("section",{className:"rounded-3xl border border-slate-200/80 bg-white/95 p-6 shadow-xl shadow-slate-900/[0.06] backdrop-blur-sm sm:p-8",children:t})]})]})}a(52478)},65755:(e,t,a)=>{"use strict";a.d(t,{o:()=>i});
1class i{static async startProviderSignIn(e){let t=new URLSearchParams({flow:e.flow});if(e.orgId&&t.set("org_id",e.orgId),e.returnTo){let a=e.returnTo.startsWith("/")?new URL(e.returnTo,window.location.origin).toString():e.returnTo;t.set("return_to",a)}let a="/api/proxy/v1/oauth/".concat(e.provider,"/start?").concat(t);for(let e=0;e<2;e+=1){let t;try{t=await fetch(a,{method:"GET",cache:"no-store"})}catch(t){if(0===e)continue;throw t}let i=await t.json().catch(()=>({}));if(t.ok&&i.authorize_url)return i.authorize_url;let s=t.status>=500;if(0!==e||!s)throw Error(i.message||i.error||"Unable to start provider sign-in. Please try again.")}throw Error("Unable to start provider sign-in. Please try again.")}}},75390:(e,t,a)=>{"use strict";a.d(t,{r:()=>s});let i="/v1/public/auth/mcp/authorize";class s{static safe(e){var t;let a=null!=(t=null==e?void 0:e.trim())?t:"";if(!a)return null;if(a.startsWith("/")&&!a.startsWith("//"))return a;try{let e=new URL(a);if("https:"===e.protocol&&"api.decionis.com"===e.hostname.toLowerCase()&&("/v1/public/auth/zapier/authorize"===e.pathname||e.pathname===i||"/v1/public/auth/make/authorize"===e.pathname)&&"code"===e.searchParams.get("response_type")&&e.searchParams.get("client_id")&&e.searchParams.get("redirect_uri")&&e.searchParams.get("state")&&(e.pathname!==i||"S256"===e.searchParams.get("code_challenge_method")&&e.searchParams.get("code_challenge")))return e.toString()}catch(e){}return null}}}}]);

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.