PageSourceSearch

https://dashboard.bex.co/assets/index--hXc0W7V.js

js bex.co collected 2026-10-09 23:14:58 UTC 3,630 bytes, 1 lines download raw bytes

1import{j as e,r as u}from"./vendor-react-2KYUPUk0.js";import{a as f,bq as g,br as x,B as m,f2 as p,bt as v,f3 as w,bu as j,f4 as N,f5 as b,f6 as y,f7 as L,cQ as E,c9 as k,h as A,as as C}from"./index-9VkdFAcH.js";function R(){const{t:r,i18n:s}=f(),a=s.language,t=n=>{y(n),L(n)};return e.jsxs(g,{children:[e.jsx(x,{asChild:!0,children:e.jsx(m,{variant:"ghost",size:"icon-sm","aria-label":r("common.changeLanguage"),children:e.jsx(p,{className:"h-4 w-4"})})}),e.jsx(v,{align:"end",children:w.map(n=>e.jsxs(j,{onClick:()=>t(n),children:[e.jsx("span",{className:"flex-1",children:N[n]}),n===a&&e.jsx(b,{className:"h-4 w-4"})]},n))})]})}const _={login:"/auth/login",registration:"/auth/sign-up",recovery:"/auth/forgot-password",verification:"/auth/verification"},U=/^\/self-service\/(login|registration|recovery|verification)\/browser\/?$/;function S(r,s){if(!r)return;let a;try{a=new URL(r)}catch{return}if(a.origin!==s)return;const t=k(`${a.pathname}${a.search}${a.hash}`,s);return t==="/"?void 0:t}function T(r,s,a=E){let t,n;try{t=new URL(r,s),n=new URL(a,s)}catch{return null}if(t.origin!==n.origin)return null;const i=n.pathname.replace(/\/+$/,"");if(i&&!t.pathname.startsWith(`${i}/`))return null;const o=U.exec(t.pathname.slice(i.length));if(!o)return null;const d=o[1],l=t.searchParams,c=S(l.get("return_to"),s),h=l.get("login_challenge")??void 0;switch(_[d]){case"/auth/login":return{to:"/auth/login",search:{next:c,flow:void 0,login_challenge:h,aal:void 0}};case"/auth/sign-up":return{to:"/auth/sign-up",search:{next:c,flow:void 0,login_challenge:h}};case"/auth/forgot-password":return{to:"/auth/forgot-password",search:{flow:void 0}};case"/auth/verification":return{to:"/auth/verification",search:{flow:void 0,next:c}}}}function $(){const r=A();return u.useCallback(s=>{if(s.defaultPrevented||s.button!==0||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey)return;const a=s.target?.closest?.("a[href]");if(!(a instanceof HTMLAnchorElement)||a.target&&a.target!=="_self"||a.hasAttribute("download")||a.dataset.testid?.endsWith("/action/restart"))return;const t=T(a.href,window.location.origin);if(t)switch(s.preventDefault(),t.to){case"/auth/login":r({to:t.to,search:t.search});return;case"/auth/sign-up":r({to:t.to,search:t.search});return;case"/auth/forgot-password":r({to:t.to,search:t.search});return;case"/auth/verification":r({to:t.to,search:t.search});return}},[r])}function K({title:r,subtitle:s,features:a,children:t}){u.useEffect(()=>{C()},[]);const n=$();return e.jsxs("div",{className:"min-h-screen flex bg-background relative",children:[e.jsx("div",{className:"absolute top-4 right-4 z-10",children:e.jsx(R,{})}),e.jsx("div",{className:"flex-1 flex items-center justify-center py-12 px-6 lg:px-8",children:e.jsxs("div",{className:"w-full max-w-[30rem] space-y-8",onClick:n,children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground",children:r}),e.jsx("p",{className:"text-muted-foreground",children:s})]}),t]})}),a&&e.jsx("div",{className:"hidden lg:flex flex-1 items-center justify-center bg-muted/30 py-12 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"w-full max-w-md 
1space-y-8",children:a.map(i=>{const o=i.icon;return e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:`w-16 h-16 rounded-full ${i.iconBg} flex items-center justify-center`,children:e.jsx(o,{className:`w-8 h-8 ${i.iconColor}`})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-xl font-semibold text-foreground",children:i.title}),e.jsx("p",{className:"text-muted-foreground",children:i.description})]})]},i.title)})})})]})}export{K as A};

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.