@hanzo/team 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/404.html +1 -1
- package/dist/admin/index.html +1 -1
- package/dist/agents/algo/index.html +1 -1
- package/dist/agents/art/index.html +1 -1
- package/dist/agents/biz/index.html +1 -1
- package/dist/agents/cal/index.html +1 -1
- package/dist/agents/core/index.html +1 -1
- package/dist/agents/cyber/index.html +1 -1
- package/dist/agents/data/index.html +1 -1
- package/dist/agents/db/index.html +1 -1
- package/dist/agents/des/index.html +1 -1
- package/dist/agents/dev/index.html +1 -1
- package/dist/agents/doc/index.html +1 -1
- package/dist/agents/ed/index.html +1 -1
- package/dist/agents/fin/index.html +1 -1
- package/dist/agents/gov/index.html +1 -1
- package/dist/agents/huma/index.html +1 -1
- package/dist/agents/index.html +1 -1
- package/dist/agents/lang/index.html +1 -1
- package/dist/agents/law/index.html +1 -1
- package/dist/agents/mana/index.html +1 -1
- package/dist/agents/mark/index.html +1 -1
- package/dist/agents/mo/index.html +1 -1
- package/dist/agents/mu/index.html +1 -1
- package/dist/agents/opera/index.html +1 -1
- package/dist/agents/rev/index.html +1 -1
- package/dist/agents/sal/index.html +1 -1
- package/dist/agents/sci/index.html +1 -1
- package/dist/agents/sec/index.html +1 -1
- package/dist/agents/su/index.html +1 -1
- package/dist/agents/vi/index.html +1 -1
- package/dist/apps/ads/index.html +1 -1
- package/dist/apps/ai-chat/index.html +1 -1
- package/dist/apps/analytics/index.html +1 -1
- package/dist/apps/billing/index.html +1 -1
- package/dist/apps/bots/index.html +1 -1
- package/dist/apps/cal/index.html +1 -1
- package/dist/apps/chat/index.html +1 -1
- package/dist/apps/cms/index.html +1 -1
- package/dist/apps/commerce/index.html +1 -1
- package/dist/apps/console/index.html +1 -1
- package/dist/apps/crm/index.html +1 -1
- package/dist/apps/dataroom/index.html +1 -1
- package/dist/apps/dev/index.html +1 -1
- package/dist/apps/email/index.html +1 -1
- package/dist/apps/index.html +1 -1
- package/dist/apps/meet/index.html +1 -1
- package/dist/apps/platform/index.html +1 -1
- package/dist/apps/sign/index.html +1 -1
- package/dist/apps/social/index.html +1 -1
- package/dist/apps/tracker/index.html +1 -1
- package/dist/assets/{ThemeToggleNext-CtrURIRH.js → ThemeToggleNext-DqJCaF9Y.js} +2 -2
- package/dist/assets/{ThemeToggleNext-CtrURIRH.js.map → ThemeToggleNext-DqJCaF9Y.js.map} +1 -1
- package/dist/assets/{index-C0jioIdp.js → index-3NIWj3zD.js} +3 -3
- package/dist/assets/{index-C0jioIdp.js.map → index-3NIWj3zD.js.map} +1 -1
- package/dist/auth/callback/index.html +1 -1
- package/dist/auth/index.html +1 -1
- package/dist/bots/index.html +1 -1
- package/dist/cal/index.html +1 -1
- package/dist/calendar/index.html +1 -1
- package/dist/chat/c-design/index.html +1 -1
- package/dist/chat/c-general/index.html +1 -1
- package/dist/chat/c-lux-bank/index.html +1 -1
- package/dist/chat/c-lux-bridge/index.html +1 -1
- package/dist/chat/c-revenue/index.html +1 -1
- package/dist/chat/c-support/index.html +1 -1
- package/dist/chat/c-tracker/index.html +1 -1
- package/dist/chat/c-ui/index.html +1 -1
- package/dist/chat/c-video/index.html +1 -1
- package/dist/chat/dm-algo/index.html +1 -1
- package/dist/chat/dm-art/index.html +1 -1
- package/dist/chat/dm-biz/index.html +1 -1
- package/dist/chat/dm-cal/index.html +1 -1
- package/dist/chat/dm-core/index.html +1 -1
- package/dist/chat/dm-cyber/index.html +1 -1
- package/dist/chat/dm-data/index.html +1 -1
- package/dist/chat/dm-db/index.html +1 -1
- package/dist/chat/dm-des/index.html +1 -1
- package/dist/chat/dm-dev/index.html +1 -1
- package/dist/chat/dm-doc/index.html +1 -1
- package/dist/chat/dm-ed/index.html +1 -1
- package/dist/chat/dm-fin/index.html +1 -1
- package/dist/chat/dm-gov/index.html +1 -1
- package/dist/chat/dm-huma/index.html +1 -1
- package/dist/chat/dm-lang/index.html +1 -1
- package/dist/chat/dm-law/index.html +1 -1
- package/dist/chat/dm-mana/index.html +1 -1
- package/dist/chat/dm-mark/index.html +1 -1
- package/dist/chat/dm-mo/index.html +1 -1
- package/dist/chat/dm-mu/index.html +1 -1
- package/dist/chat/dm-opera/index.html +1 -1
- package/dist/chat/dm-rev/index.html +1 -1
- package/dist/chat/dm-sal/index.html +1 -1
- package/dist/chat/dm-sci/index.html +1 -1
- package/dist/chat/dm-sec/index.html +1 -1
- package/dist/chat/dm-su/index.html +1 -1
- package/dist/chat/dm-vi/index.html +1 -1
- package/dist/chat/index.html +1 -1
- package/dist/crm/analytics/index.html +1 -1
- package/dist/crm/automations/index.html +1 -1
- package/dist/crm/campaigns/index.html +1 -1
- package/dist/crm/companies/index.html +1 -1
- package/dist/crm/contacts/index.html +1 -1
- package/dist/crm/customers/index.html +1 -1
- package/dist/crm/deliverability/index.html +1 -1
- package/dist/crm/forms/index.html +1 -1
- package/dist/crm/funds/index.html +1 -1
- package/dist/crm/index.html +1 -1
- package/dist/crm/investors/index.html +1 -1
- package/dist/crm/journeys/index.html +1 -1
- package/dist/crm/leads/index.html +1 -1
- package/dist/crm/lists/index.html +1 -1
- package/dist/crm/opportunities/index.html +1 -1
- package/dist/crm/segments/index.html +1 -1
- package/dist/crm/settings/index.html +1 -1
- package/dist/crm/templates/index.html +1 -1
- package/dist/crm/webhooks/index.html +1 -1
- package/dist/docs/index.html +1 -1
- package/dist/files/index.html +1 -1
- package/dist/inbox/index.html +1 -1
- package/dist/index.html +1 -1
- package/dist/issues/index.html +1 -1
- package/dist/issues/kanban/index.html +1 -1
- package/dist/issues/list/index.html +1 -1
- package/dist/login/index.html +1 -1
- package/dist/mail/index.html +1 -1
- package/dist/meet/index.html +1 -1
- package/dist/mine/index.html +1 -1
- package/dist/people/index.html +1 -1
- package/dist/projects/index.html +1 -1
- package/dist/projects/proj-crm/components/index.html +1 -1
- package/dist/projects/proj-crm/index.html +1 -1
- package/dist/projects/proj-crm/issues/index.html +1 -1
- package/dist/projects/proj-crm/issues/kanban/index.html +1 -1
- package/dist/projects/proj-crm/issues/list/index.html +1 -1
- package/dist/projects/proj-crm/milestones/index.html +1 -1
- package/dist/projects/proj-crm/templates/index.html +1 -1
- package/dist/projects/proj-dev/components/index.html +1 -1
- package/dist/projects/proj-dev/index.html +1 -1
- package/dist/projects/proj-dev/issues/index.html +1 -1
- package/dist/projects/proj-dev/issues/kanban/index.html +1 -1
- package/dist/projects/proj-dev/issues/list/index.html +1 -1
- package/dist/projects/proj-dev/milestones/index.html +1 -1
- package/dist/projects/proj-dev/templates/index.html +1 -1
- package/dist/projects/proj-mkt/components/index.html +1 -1
- package/dist/projects/proj-mkt/index.html +1 -1
- package/dist/projects/proj-mkt/issues/index.html +1 -1
- package/dist/projects/proj-mkt/issues/kanban/index.html +1 -1
- package/dist/projects/proj-mkt/issues/list/index.html +1 -1
- package/dist/projects/proj-mkt/milestones/index.html +1 -1
- package/dist/projects/proj-mkt/templates/index.html +1 -1
- package/dist/projects/proj-next/components/index.html +1 -1
- package/dist/projects/proj-next/index.html +1 -1
- package/dist/projects/proj-next/issues/index.html +1 -1
- package/dist/projects/proj-next/issues/kanban/index.html +1 -1
- package/dist/projects/proj-next/issues/list/index.html +1 -1
- package/dist/projects/proj-next/milestones/index.html +1 -1
- package/dist/projects/proj-next/templates/index.html +1 -1
- package/dist/settings/index.html +1 -1
- package/dist/time/index.html +1 -1
- package/package.json +2 -2
|
@@ -165,7 +165,7 @@ ${Rme(`class="rim"`,`class="core"`)}
|
|
|
165
165
|
@keyframes hanzo-flip{from{opacity:0;transform:perspective(320px) rotateY(180deg) scale(.6)}to{opacity:1;transform:none}}
|
|
166
166
|
@keyframes hanzo-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
|
|
167
167
|
@keyframes hanzo-word{0%,40%{transform:translateX(-102%)}55%,82%{transform:translateX(0)}100%{transform:translateX(-102%)}}
|
|
168
|
-
@media (prefers-reduced-motion:reduce){.hanzo-motion .hanzo-mark,.hanzo-motion .hanzo-word>span{animation:none!important}.hanzo-motion .hanzo-word>span{transition:none}}`,Hme=({variant:e=`current`,size:t=64,className:n,style:r,animated:i=!1,wordmark:a=`Hanzo`})=>{if(i)return(0,L.jsxs)(`span`,{className:n,style:r,children:[(0,L.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Vme}}),(0,L.jsxs)(`span`,{className:`hanzo-motion`,children:[(0,L.jsx)(`span`,{className:`hanzo-mark`,style:{width:t,height:t},dangerouslySetInnerHTML:{__html:X3()}}),(0,L.jsx)(`span`,{className:`hanzo-word`,children:(0,L.jsx)(`span`,{children:a})})]})]});let o=``;switch(e){case`mono`:o=q3();break;case`white`:o=J3();break;case`light`:o=Y3();break;case`current`:o=X3();break;case`favicon`:o=e6();break;case`animated`:o=zme();break;case`color`:o=K3();break;default:o=X3()}return(0,L.jsx)(`div`,{className:n,style:{width:t,height:t,...r},dangerouslySetInnerHTML:{__html:o}})},n6={viewBox:Pme,content:Fme},r6={hanzo:n6,lux:{viewBox:`0 0 100 100`,content:`<path d="M50 85 L15 25 L85 25 Z"/>`},zoo:{viewBox:`0 0 1024 1024`,colored:!0,content:`<defs><clipPath id="zooClip"><circle cx="512" cy="511" r="270"/></clipPath><clipPath id="zooGClip"><circle cx="513" cy="369" r="234"/></clipPath><clipPath id="zooRClip"><circle cx="365" cy="595" r="234"/></clipPath></defs><g clip-path="url(#zooClip)"><circle cx="513" cy="369" r="234" fill="#00A652"/><circle cx="365" cy="595" r="234" fill="#ED1C24"/><circle cx="643" cy="595" r="234" fill="#2E3192"/><g clip-path="url(#zooGClip)"><circle cx="365" cy="595" r="234" fill="#FCF006"/><circle cx="643" cy="595" r="234" fill="#01ACF1"/></g><g clip-path="url(#zooRClip)"><circle cx="643" cy="595" r="234" fill="#EA018E"/></g><g clip-path="url(#zooGClip)"><g clip-path="url(#zooRClip)"><circle cx="643" cy="595" r="234" fill="#FFFFFF"/></g></g></g>`},pars:{viewBox:`-120 -120 240 240`,content:`<path d="M0,-100 L30,-60 L100,-40 L60,0 L100,40 L30,60 L0,100 L-30,60 L-100,40 L-60,0 L-100,-40 L-30,-60 Z" fill="none" stroke="currentColor" stroke-width="4" stroke-linejoin="round"/><path d="M0,-70 L22,-42 L70,-28 L42,0 L70,28 L22,42 L0,70 L-22,42 L-70,28 L-42,0 L-70,-28 L-22,-42 Z" fill="currentColor" fill-opacity="0.15" stroke="currentColor" stroke-width="3" stroke-linejoin="round"/><circle r="55" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.4"/><circle r="35" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.4"/><circle r="8" fill="currentColor"/>`},"7stars":n6,yotoda:n6},i6={accent1:`#000000`,surface1:`#FFFFFF`,surface2:`#FAFAFA`,neutral1:`#0A0A0A`,neutral2:`rgba(10, 10, 10, 0.6)`},a6={accent1:`#FFFFFF`,surface1:`#000000`,surface2:`#111111`,neutral1:`#FAFAFA`,neutral2:`rgba(250, 250, 250, 0.6)`},o6=(e,t)=>`https://cdn.jsdelivr.net/npm/${e}/${t}`,s6={id:`hanzo`,name:`Hanzo`,title:`Hanzo AI`,tagline:`Enterprise AI infrastructure and frontier models`,legalName:`Hanzo AI Inc.`,domain:`hanzo.ai`,docsDomain:`docs.hanzo.ai`,adminDomain:`hanzo.ai`,accentColor:`#FFFFFF`,theme:{light:i6,dark:a6},social:{twitter:`https://x.com/hanzoai`,github:`https://github.com/hanzoai`,discord:`https://discord.gg/CJCyAsm9Vr`,linkedin:`https://linkedin.com/company/hanzoai`},mark:r6.hanzo,logoUrl:o6(`@hanzo/brand@1.4.7`,`assets/logo/logo.svg`),faviconUrl:o6(`@hanzo/brand@1.4.7`,`assets/logo/favicon.svg`)},c6={hanzo:s6,lux:{id:`lux`,name:`Lux`,title:`Lux Network`,tagline:`High-performance, post-quantum blockchain infrastructure`,legalName:`Lux Industries Inc.`,domain:`lux.network`,docsDomain:`docs.lux.network`,adminDomain:`lux.network`,accentColor:`#FFFFFF`,theme:{light:i6,dark:a6},social:{twitter:`https://x.com/luxdefi`,github:`https://github.com/luxfi`,discord:`https://discord.gg/lux`},mark:r6.lux,logoUrl:o6(`@luxfi/logo@1.0.8`,`svg/lux-icon-white.svg`),faviconUrl:o6(`@luxfi/logo@1.0.8`,`svg/lux-favicon.svg`)},zoo:{id:`zoo`,name:`Zoo`,title:`Zoo`,tagline:`Open, decentralized AI & science research network`,legalName:`Zoo Labs Foundation`,domain:`zoo.ngo`,docsDomain:`docs.zoo.ngo`,adminDomain:`zoo.ngo`,accentColor:`#01ACF1`,theme:{light:{...i6,accent1:`#01ACF1`},dark:{...a6,accent1:`#01ACF1`}},social:{twitter:`https://x.com/zoo_labs`,github:`https://github.com/zooai`,discord:`https://discord.gg/zoo`},mark:r6.zoo,logoUrl:o6(`@zooai/brand@1.4.1`,`assets/logo/logo.svg`),faviconUrl:o6(`@zooai/brand@1.4.1`,`assets/logo/logo.svg`)},pars:{id:`pars`,name:`Pars`,title:`Pars Network`,tagline:`A sovereign, verifiable identity layer for the Pars community`,legalName:`Parsis Foundation`,domain:`pars.network`,docsDomain:`docs.pars.network`,adminDomain:`pars.network`,accentColor:`#caa24a`,theme:{light:{...i6,accent1:`#caa24a`},dark:{...a6,accent1:`#caa24a`}},social:{twitter:`https://x.com/parsnetwork`,github:`https://github.com/parsdao`},mark:r6.pars,logoUrl:o6(`@parsdao/brand@1.0.1`,`assets/logo/logo.svg`),faviconUrl:o6(`@parsdao/brand@1.0.1`,`assets/logo/logo.svg`)},"7stars":{id:`7stars`,name:`7Stars`,title:`7Stars`,tagline:`Cloud, powered by Hanzo`,legalName:`7Stars`,domain:`7stars.dev`,docsDomain:`docs.7stars.dev`,adminDomain:`7stars.dev`,accentColor:`#FFFFFF`,theme:{light:i6,dark:a6},social:{},mark:r6[`7stars`],logoUrl:s6.logoUrl,faviconUrl:s6.faviconUrl},yotoda:{id:`yotoda`,name:`Yotoda`,title:`Yotoda`,tagline:`Cloud, powered by Hanzo`,legalName:`Yotoda`,domain:`yotoda.tech`,docsDomain:`docs.yotoda.tech`,adminDomain:`yotoda.tech`,accentColor:`#FFFFFF`,theme:{light:i6,dark:a6},social:{},mark:r6.yotoda,logoUrl:s6.logoUrl,faviconUrl:s6.faviconUrl}},Ume=()=>typeof window>`u`?H3:Nme(window.location.hostname);function Wme({size:e=20,brand:t,wordmark:n,animated:r=!0,color:i=`currentColor`}){let a=t??Ume(),o=r6[a]??r6.hanzo,s=c6[a]?.name??c6.hanzo.name,c=n===!1?s:n??s;if(typeof r==`function`){let t=r().replace(`<svg `,`<svg width="100%" height="100%" `);return(0,L.jsx)(`span`,{role:`img`,"aria-label":c,style:{width:e,height:e,display:`inline-flex`,flexShrink:0},dangerouslySetInnerHTML:{__html:t}})}return r&&a===`hanzo`?(0,L.jsx)(Hme,{animated:!0,size:e,wordmark:n===!1?void 0:c}):(0,L.jsx)(`svg`,{width:e,height:e,viewBox:o.viewBox,role:`img`,"aria-label":c,...o.colored?null:{fill:i},style:{display:`block`,flexShrink:0},dangerouslySetInnerHTML:{__html:o.content}})}function Gme(e){let t=e.trim();if(!t||/^(https?:|data:|\/)/.test(t)||!/[\p{Extended_Pictographic}\p{Regional_Indicator}]/u.test(t))return!1;let n=Intl.Segmenter;return(n?[...new n().segment(t)].length:[...t].length)<=3}function Kme(e){return(e.trim().split(/[\s._/-]+/).filter(Boolean).slice(0,2).map(e=>e[0]??``).join(``)||e.trim().slice(0,2)).toUpperCase()}var qme=e=>e<26?`$1`:e<34?`$2`:e<44?`$4`:`$6`;function l6({org:e,size:t=22,maxW:n}){let[r,i]=(0,b.useState)(!1);return(0,b.useEffect)(()=>i(!1),[e.logo]),e.logo&&Gme(e.logo)?(0,L.jsx)(z,{width:t,height:t,items:`center`,justify:`center`,style:{flexShrink:0},children:(0,L.jsx)(H,{fontSize:Math.round(t*.72),lineHeight:t,children:e.logo.trim()})}):e.logo&&!r?(0,L.jsx)(`img`,{src:e.logo,alt:``,onError:()=>i(!0),style:{height:t,width:n?`auto`:t,maxWidth:n??t,objectFit:`contain`,display:`block`,borderRadius:6,flexShrink:0}}):(0,L.jsx)(z,{width:t,height:t,rounded:`$3`,bg:`$edge`,items:`center`,justify:`center`,style:{flexShrink:0},children:(0,L.jsx)(H,{fontSize:qme(t),fontWeight:`800`,color:`$ink`,children:Kme(e.displayName||e.name)})})}var u6=`theme`;function Jme(){if(typeof document>`u`)return;let e=document.documentElement;if(e.classList.contains(`dark`))return`dark`;if(e.classList.contains(`light`))return`light`;try{let e=window.localStorage.getItem(u6);if(e===`light`||e===`dark`)return e}catch{}}function Yme(e){if(typeof document>`u`)return;let t=document.documentElement;t.classList.toggle(`dark`,e===`dark`),t.classList.toggle(`light`,e===`light`),t.style.colorScheme=e;try{window.localStorage.setItem(u6,e)}catch{}}function d6({theme:e,defaultTheme:t,onToggle:n,onThemeChange:r,size:i=`$2`,label:a}){let o=e!==void 0,[s,c]=(0,b.useState)(()=>e??t??Jme()??`dark`),l=(o?e:s)===`dark`,u=V3(),{t:d}=YM();return(0,L.jsx)(bS,{size:i,chromeless:!0,icon:l?(0,L.jsx)(tse,{size:16}):(0,L.jsx)(lM,{size:16}),onPress:()=>{let e=l?`light`:`dark`;u({component:`ThemeToggle`,action:`change`,value:e}),o||(c(e),Yme(e)),n?.(e),r?.(e)},"aria-label":a??d(l?`Switch to light theme`:`Switch to dark theme`)})}var Xme=(0,b.lazy)(()=>Va(()=>import(`./ThemeToggleNext-CtrURIRH.js`),[])),Zme=class extends b.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};function f6(e){if(e.theme!==void 0||e.onToggle!==void 0||e.onThemeChange!==void 0)return(0,L.jsx)(d6,{...e});let t=(0,L.jsx)(d6,{...e});return(0,L.jsx)(Zme,{fallback:t,children:(0,L.jsx)(b.Suspense,{fallback:t,children:(0,L.jsx)(Xme,{size:e.size,label:e.label})})})}var Qme=(0,b.createContext)({}),$me=()=>(0,b.useContext)(Qme);function ehe(e){let t=typeof e?.status==`number`?e.status:0,n=e instanceof Error?e.message:String(e);return t===503?{kind:`not-initialized`,message:n}:t===404||t===405?{kind:`unavailable`,message:n}:t===501?{kind:`not-implemented`,message:n}:t===402?{kind:`billing`,message:n}:t===401?{kind:`signin`,message:n}:t===403?{kind:`access`,message:n}:{kind:`error`,message:n}}var the={"not-initialized":KM(`Backend not initialized`),unavailable:KM(`Not available on this deployment yet`),"not-implemented":KM(`Not yet available`),access:KM(`Not enabled for your account`),signin:KM(`Your session expired`),billing:KM(`Add credits to continue`),error:KM(`Could not reach the backend`)},p6={"not-initialized":KM(`The /v1 route is mounted but its runtime (or the console API key it proxies to) is not configured on this deployment yet. Real data appears here once it is — no placeholder data is shown.`),unavailable:KM(`This endpoint is not mounted at the gateway on this host yet. The view lights up automatically once the route is live.`),"not-implemented":KM(`This capability is planned but not wired yet. The backend answers honestly rather than pretending it worked — nothing here is fabricated, and the view lights up automatically once it ships.`),access:KM(`You're signed in, but this isn't enabled for your organization on this deployment, or it's an admin-only surface. It appears here automatically once your account has access — nothing is fabricated.`),signin:KM(`Your session has expired or isn’t recognized here. Sign in again to continue where you left off.`),billing:``,error:``};function nhe({state:e,onRetry:t,hint:n}){let{signIn:r,addCredits:i}=$me(),{t:a}=YM();return(0,L.jsxs)(z3,{borderWidth:1,borderColor:`$borderColor`,p:`$4`,gap:`$2`,maxW:640,children:[(0,L.jsxs)(B,{gap:`$2`,items:`center`,children:[(0,L.jsx)(EM,{size:16}),(0,L.jsx)(H,{fontSize:`$4`,fontWeight:`700`,children:a(the[e.kind])})]}),(0,L.jsx)(H,{fontSize:`$3`,color:`$quiet`,children:p6[e.kind]?a(p6[e.kind]):e.message}),n?(0,L.jsx)(H,{fontSize:`$2`,color:`$soft`,children:n}):null,e.kind===`signin`&&r?(0,L.jsx)(bS,{size:`$2`,theme:`light`,self:`flex-start`,onPress:r,children:a(`Sign in again`)}):e.kind===`billing`&&i?(0,L.jsxs)(B,{gap:`$2`,items:`center`,flexWrap:`wrap`,children:[(0,L.jsx)(bS,{size:`$2`,theme:`light`,self:`flex-start`,icon:(0,L.jsx)(Bj,{size:14}),onPress:i,children:a(`Add credits`)}),t?(0,L.jsx)(bS,{size:`$2`,self:`flex-start`,onPress:t,children:a(`Retry`)}):null]}):t?(0,L.jsx)(bS,{size:`$2`,self:`flex-start`,onPress:t,children:a(`Retry`)}):null]})}var rhe={fontWeight:`600`,px:`$3`};function ihe({onPress:e,...t}){let n=V3(),r=NN()===`compact`;return(0,L.jsx)(bS,{bg:`var(--primary)`,color:`var(--primary-foreground)`,borderColor:`var(--primary)`,hoverStyle:{bg:`var(--primary-hover)`,borderColor:`var(--primary-hover)`},pressStyle:{bg:`var(--primary-hover)`,borderColor:`var(--primary-hover)`},onPress:r=>{n({component:`PrimaryButton`,action:`click`,id:Ame(t.children)??t[`aria-label`]}),e?.(r)},...r?rhe:null,...t})}function m6(e){typeof window<`u`&&window.open(e,`_blank`,`noopener`)}function h6({icon:e,title:t,description:n,bullets:r,primary:i,secondary:a}){let o=V3();return(0,L.jsxs)(z3,{borderWidth:1,borderColor:`$borderColor`,borderStyle:`dashed`,p:`$6`,gap:`$4`,items:`center`,maxW:640,self:`center`,width:`100%`,children:[(0,L.jsx)(z,{width:48,height:48,items:`center`,justify:`center`,rounded:`$4`,bg:`$hover`,children:(0,L.jsx)(e,{size:24})}),(0,L.jsxs)(z,{gap:`$2`,items:`center`,maxW:480,children:[(0,L.jsx)(H,{fontSize:`$6`,fontWeight:`500`,text:`center`,letterSpacing:-.3,children:t}),(0,L.jsx)(H,{fontSize:`$3`,color:`$quiet`,text:`center`,children:n})]}),r&&r.length?(0,L.jsx)(z,{gap:`$2`,self:`stretch`,maxW:420,mx:`auto`,children:r.map(e=>(0,L.jsxs)(B,{gap:`$2`,items:`flex-start`,children:[(0,L.jsx)(z,{pt:`$1`,children:(0,L.jsx)(Dj,{size:14,color:`$soft`})}),(0,L.jsx)(H,{fontSize:`$3`,color:`$quiet`,flex:1,children:e})]},e))}):null,i||a?(0,L.jsxs)(B,{gap:`$2`,items:`center`,flexWrap:`wrap`,justify:`center`,children:[i?(0,L.jsx)(ihe,{icon:i.icon,iconAfter:i.href?(0,L.jsx)(Uj,{size:16}):(0,L.jsx)(vj,{...qN,size:16}),onPress:()=>{o({component:`EmptyState`,action:`click`,id:t,value:i.label}),i.href?m6(i.href):i.onPress?.()},children:i.label}):null,a?(0,L.jsx)(bS,{chromeless:!0,icon:a.icon,iconAfter:a.href?(0,L.jsx)(Uj,{size:14}):void 0,onPress:()=>{o({component:`EmptyState`,action:`click`,id:t,value:a.label}),a.href?m6(a.href):a.onPress?.()},children:a.label}):null]}):null]})}var g6=new Map;function _6(e,t){g6.set(e,t)}function v6(e){return g6.get(e)}var y6={AC:`247`,AD:`376`,AE:`971`,AF:`93`,AG:`1`,AI:`1`,AL:`355`,AM:`374`,AO:`244`,AR:`54`,AS:`1`,AT:`43`,AU:`61`,AW:`297`,AX:`358`,AZ:`994`,BA:`387`,BB:`1`,BD:`880`,BE:`32`,BF:`226`,BG:`359`,BH:`973`,BI:`257`,BJ:`229`,BL:`590`,BM:`1`,BN:`673`,BO:`591`,BQ:`599`,BR:`55`,BS:`1`,BT:`975`,BW:`267`,BY:`375`,BZ:`501`,CA:`1`,CC:`61`,CD:`243`,CF:`236`,CG:`242`,CH:`41`,CI:`225`,CK:`682`,CL:`56`,CM:`237`,CN:`86`,CO:`57`,CR:`506`,CU:`53`,CV:`238`,CW:`599`,CX:`61`,CY:`357`,CZ:`420`,DE:`49`,DJ:`253`,DK:`45`,DM:`1`,DO:`1`,DZ:`213`,EC:`593`,EE:`372`,EG:`20`,EH:`212`,ER:`291`,ES:`34`,ET:`251`,FI:`358`,FJ:`679`,FK:`500`,FM:`691`,FO:`298`,FR:`33`,GA:`241`,GB:`44`,GD:`1`,GE:`995`,GF:`594`,GG:`44`,GH:`233`,GI:`350`,GL:`299`,GM:`220`,GN:`224`,GP:`590`,GQ:`240`,GR:`30`,GT:`502`,GU:`1`,GW:`245`,GY:`592`,HK:`852`,HN:`504`,HR:`385`,HT:`509`,HU:`36`,ID:`62`,IE:`353`,IL:`972`,IM:`44`,IN:`91`,IO:`246`,IQ:`964`,IR:`98`,IS:`354`,IT:`39`,JE:`44`,JM:`1`,JO:`962`,JP:`81`,KE:`254`,KG:`996`,KH:`855`,KI:`686`,KM:`269`,KN:`1`,KP:`850`,KR:`82`,KW:`965`,KY:`1`,KZ:`7`,LA:`856`,LB:`961`,LC:`1`,LI:`423`,LK:`94`,LR:`231`,LS:`266`,LT:`370`,LU:`352`,LV:`371`,LY:`218`,MA:`212`,MC:`377`,MD:`373`,ME:`382`,MF:`590`,MG:`261`,MH:`692`,MK:`389`,ML:`223`,MM:`95`,MN:`976`,MO:`853`,MP:`1`,MQ:`596`,MR:`222`,MS:`1`,MT:`356`,MU:`230`,MV:`960`,MW:`265`,MX:`52`,MY:`60`,MZ:`258`,NA:`264`,NC:`687`,NE:`227`,NF:`672`,NG:`234`,NI:`505`,NL:`31`,NO:`47`,NP:`977`,NR:`674`,NU:`683`,NZ:`64`,OM:`968`,PA:`507`,PE:`51`,PF:`689`,PG:`675`,PH:`63`,PK:`92`,PL:`48`,PM:`508`,PR:`1`,PS:`970`,PT:`351`,PW:`680`,PY:`595`,QA:`974`,RE:`262`,RO:`40`,RS:`381`,RU:`7`,RW:`250`,SA:`966`,SB:`677`,SC:`248`,SD:`249`,SE:`46`,SG:`65`,SH:`290`,SI:`386`,SJ:`47`,SK:`421`,SL:`232`,SM:`378`,SN:`221`,SO:`252`,SR:`597`,SS:`211`,ST:`239`,SV:`503`,SX:`1`,SY:`963`,SZ:`268`,TA:`290`,TC:`1`,TD:`235`,TG:`228`,TH:`66`,TJ:`992`,TK:`690`,TL:`670`,TM:`993`,TN:`216`,TO:`676`,TR:`90`,TT:`1`,TV:`688`,TW:`886`,TZ:`255`,UA:`380`,UG:`256`,US:`1`,UY:`598`,UZ:`998`,VA:`39`,VC:`1`,VE:`58`,VG:`1`,VI:`1`,VN:`84`,VU:`678`,WF:`681`,WS:`685`,XK:`383`,YE:`967`,YT:`262`,ZA:`27`,ZM:`260`,ZW:`263`},b6=e=>e==null?``:String(e),x6=e=>{if(e==null||e===``)return null;let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t:null},S6=e=>Array.isArray(e)?e:e==null||e===``?[]:[e],C6=e=>{if(e==null||e===``)return``;if(e instanceof Date)return Number.isNaN(e.getTime())?``:e.toISOString().slice(0,10);let t=String(e),n=t.match(/^(\d{4}-\d{2}-\d{2})/);if(n)return n[1];let r=new Date(t);return Number.isNaN(r.getTime())?``:r.toISOString().slice(0,10)},ahe=e=>{if(e==null||e===``)return null;let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t},w6=e=>{if(e==null||e===``)return{};if(typeof e==`string`){let t=e.trim(),n=t.indexOf(` `);return n<0?{first:t}:{first:t.slice(0,n),last:t.slice(n+1).trim()}}if(typeof e!=`object`)return{first:String(e)};let t=e;return{first:b6(t.first??t.firstName).trim()||void 0,last:b6(t.last??t.lastName).trim()||void 0}},T6=e=>{let t=w6(e);return[t.first,t.last].filter(Boolean).join(` `)},E6=[`street1`,`street2`,`city`,`state`,`postcode`,`country`],D6=e=>{if(e==null||e===``)return{};if(typeof e==`string`)return{street1:e};let t=e,n={},r={street1:`addressStreet1`,street2:`addressStreet2`,city:`addressCity`,state:`addressState`,postcode:`addressPostcode`,country:`addressCountry`};for(let e of E6){let i=b6(t[e]??t[r[e]]).trim();i&&(n[e]=i)}return n},ohe=(e,t)=>{if(!e)return``;if(!/^[A-Za-z]{2}$/.test(e))return e;try{return new Intl.DisplayNames(t?[t]:void 0,{type:`region`}).of(e.toUpperCase())??e}catch{return e}},O6=(e,t)=>{let n=D6(e);return E6.map(e=>e===`country`?ohe(n.country,t):n[e]).filter(Boolean).join(`, `)},k6=e=>S6(e).map(e=>typeof e==`string`?{url:e}:e).filter(e=>!!e&&typeof e.url==`string`&&e.url.trim()!==``),A6=e=>{let t=e.trim();try{let e=new URL(/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`);return e.host.replace(/^www\./,``)+(e.pathname===`/`?``:e.pathname.replace(/\/$/,``))}catch{return t}},j6=e=>{let t=e.trim();if(!t)return;let n=/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`;try{let e=new URL(n);return[`http:`,`https:`,`mailto:`,`tel:`].includes(e.protocol)?e.href:void 0}catch{return}},M6=e=>{if(e&&typeof e==`object`&&!Array.isArray(e)){let t=e;return[b6(t.primaryEmail),...S6(t.additionalEmails).map(b6)].map(e=>e.trim()).filter(Boolean)}return S6(e).flatMap(e=>b6(e).split(/[,;]/)).map(e=>e.trim()).filter(Boolean)},she=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),che=(()=>{let e={};for(let[t,n]of Object.entries(y6))(e[n]??=[]).push(t);for(let[t,n]of Object.entries({1:`US`,7:`RU`,44:`GB`,47:`NO`,61:`AU`,212:`MA`,262:`RE`,290:`SH`,358:`FI`,590:`GP`,599:`CW`})){let r=e[t];r?.includes(n)&&(e[t]=[n,...r.filter(e=>e!==n)])}return e})(),N6=(e,t)=>{if(e&&typeof e==`object`){let t=e,n=b6(t.number??t.primaryPhoneNumber).trim(),r=b6(t.country??t.countryCode??t.primaryPhoneCountryCode).trim().toUpperCase()||void 0;return{country:r,callingCode:b6(t.callingCode??t.primaryPhoneCallingCode).replace(/^\+/,``).trim()||(r?y6[r]:void 0),number:n}}let n=b6(e).trim();if(!n.startsWith(`+`)){let e=t?.toUpperCase();return{country:e,callingCode:e?y6[e]:void 0,number:n}}let r=n.slice(1).replace(/[^\d]/g,``);for(let e=Math.min(4,r.length);e>0;e--){let i=r.slice(0,e),a=che[i];if(a)return{country:t&&a.includes(t.toUpperCase())?t.toUpperCase():a[0],callingCode:i,number:lhe(n.slice(1),e)}}return{number:n}},lhe=(e,t)=>{let n=0,r=0;for(;r<e.length&&n<t;)/\d/.test(e[r++])&&n++;return e.slice(r).replace(/^[\s.()-]+/,``).trim()},P6=e=>{let t=e.number.trim();return t?e.callingCode?`+${e.callingCode} ${t.replace(/^0+(?=\d)/,``)}`:t:``},uhe=e=>{let t=e.number.replace(/[^\d]/g,``).replace(/^0+(?=\d)/,``);if(t)return`tel:${e.callingCode?`+${e.callingCode}`:``}${t}`},F6=e=>{if(e==null||e===``)return null;if(typeof e==`string`)return{name:e};let t=e,n=b6(t.name??t.workspaceMemberName??t.label).trim();return n?{name:n,source:b6(t.source).toLowerCase()||void 0,avatarUrl:b6(t.avatarUrl).trim()||void 0}:null},I6=e=>{if(e==null||e===``)return``;if(typeof e==`object`){let t=e;return typeof t.markdown==`string`&&t.markdown.trim()?I6(t.markdown):`blocknote`in t||`content`in t||`type`in t||Array.isArray(e)?I6(L6(e).join(`
|
|
168
|
+
@media (prefers-reduced-motion:reduce){.hanzo-motion .hanzo-mark,.hanzo-motion .hanzo-word>span{animation:none!important}.hanzo-motion .hanzo-word>span{transition:none}}`,Hme=({variant:e=`current`,size:t=64,className:n,style:r,animated:i=!1,wordmark:a=`Hanzo`})=>{if(i)return(0,L.jsxs)(`span`,{className:n,style:r,children:[(0,L.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Vme}}),(0,L.jsxs)(`span`,{className:`hanzo-motion`,children:[(0,L.jsx)(`span`,{className:`hanzo-mark`,style:{width:t,height:t},dangerouslySetInnerHTML:{__html:X3()}}),(0,L.jsx)(`span`,{className:`hanzo-word`,children:(0,L.jsx)(`span`,{children:a})})]})]});let o=``;switch(e){case`mono`:o=q3();break;case`white`:o=J3();break;case`light`:o=Y3();break;case`current`:o=X3();break;case`favicon`:o=e6();break;case`animated`:o=zme();break;case`color`:o=K3();break;default:o=X3()}return(0,L.jsx)(`div`,{className:n,style:{width:t,height:t,...r},dangerouslySetInnerHTML:{__html:o}})},n6={viewBox:Pme,content:Fme},r6={hanzo:n6,lux:{viewBox:`0 0 100 100`,content:`<path d="M50 85 L15 25 L85 25 Z"/>`},zoo:{viewBox:`0 0 1024 1024`,colored:!0,content:`<defs><clipPath id="zooClip"><circle cx="512" cy="511" r="270"/></clipPath><clipPath id="zooGClip"><circle cx="513" cy="369" r="234"/></clipPath><clipPath id="zooRClip"><circle cx="365" cy="595" r="234"/></clipPath></defs><g clip-path="url(#zooClip)"><circle cx="513" cy="369" r="234" fill="#00A652"/><circle cx="365" cy="595" r="234" fill="#ED1C24"/><circle cx="643" cy="595" r="234" fill="#2E3192"/><g clip-path="url(#zooGClip)"><circle cx="365" cy="595" r="234" fill="#FCF006"/><circle cx="643" cy="595" r="234" fill="#01ACF1"/></g><g clip-path="url(#zooRClip)"><circle cx="643" cy="595" r="234" fill="#EA018E"/></g><g clip-path="url(#zooGClip)"><g clip-path="url(#zooRClip)"><circle cx="643" cy="595" r="234" fill="#FFFFFF"/></g></g></g>`},pars:{viewBox:`-120 -120 240 240`,content:`<path d="M0,-100 L30,-60 L100,-40 L60,0 L100,40 L30,60 L0,100 L-30,60 L-100,40 L-60,0 L-100,-40 L-30,-60 Z" fill="none" stroke="currentColor" stroke-width="4" stroke-linejoin="round"/><path d="M0,-70 L22,-42 L70,-28 L42,0 L70,28 L22,42 L0,70 L-22,42 L-70,28 L-42,0 L-70,-28 L-22,-42 Z" fill="currentColor" fill-opacity="0.15" stroke="currentColor" stroke-width="3" stroke-linejoin="round"/><circle r="55" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.4"/><circle r="35" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.4"/><circle r="8" fill="currentColor"/>`},"7stars":n6,yotoda:n6},i6={accent1:`#000000`,surface1:`#FFFFFF`,surface2:`#FAFAFA`,neutral1:`#0A0A0A`,neutral2:`rgba(10, 10, 10, 0.6)`},a6={accent1:`#FFFFFF`,surface1:`#000000`,surface2:`#111111`,neutral1:`#FAFAFA`,neutral2:`rgba(250, 250, 250, 0.6)`},o6=(e,t)=>`https://cdn.jsdelivr.net/npm/${e}/${t}`,s6={id:`hanzo`,name:`Hanzo`,title:`Hanzo AI`,tagline:`Enterprise AI infrastructure and frontier models`,legalName:`Hanzo AI Inc.`,domain:`hanzo.ai`,docsDomain:`docs.hanzo.ai`,adminDomain:`hanzo.ai`,accentColor:`#FFFFFF`,theme:{light:i6,dark:a6},social:{twitter:`https://x.com/hanzoai`,github:`https://github.com/hanzoai`,discord:`https://discord.gg/CJCyAsm9Vr`,linkedin:`https://linkedin.com/company/hanzoai`},mark:r6.hanzo,logoUrl:o6(`@hanzo/brand@1.4.7`,`assets/logo/logo.svg`),faviconUrl:o6(`@hanzo/brand@1.4.7`,`assets/logo/favicon.svg`)},c6={hanzo:s6,lux:{id:`lux`,name:`Lux`,title:`Lux Network`,tagline:`High-performance, post-quantum blockchain infrastructure`,legalName:`Lux Industries Inc.`,domain:`lux.network`,docsDomain:`docs.lux.network`,adminDomain:`lux.network`,accentColor:`#FFFFFF`,theme:{light:i6,dark:a6},social:{twitter:`https://x.com/luxdefi`,github:`https://github.com/luxfi`,discord:`https://discord.gg/lux`},mark:r6.lux,logoUrl:o6(`@luxfi/logo@1.0.8`,`svg/lux-icon-white.svg`),faviconUrl:o6(`@luxfi/logo@1.0.8`,`svg/lux-favicon.svg`)},zoo:{id:`zoo`,name:`Zoo`,title:`Zoo`,tagline:`Open, decentralized AI & science research network`,legalName:`Zoo Labs Foundation`,domain:`zoo.ngo`,docsDomain:`docs.zoo.ngo`,adminDomain:`zoo.ngo`,accentColor:`#01ACF1`,theme:{light:{...i6,accent1:`#01ACF1`},dark:{...a6,accent1:`#01ACF1`}},social:{twitter:`https://x.com/zoo_labs`,github:`https://github.com/zooai`,discord:`https://discord.gg/zoo`},mark:r6.zoo,logoUrl:o6(`@zooai/brand@1.4.1`,`assets/logo/logo.svg`),faviconUrl:o6(`@zooai/brand@1.4.1`,`assets/logo/logo.svg`)},pars:{id:`pars`,name:`Pars`,title:`Pars Network`,tagline:`A sovereign, verifiable identity layer for the Pars community`,legalName:`Parsis Foundation`,domain:`pars.network`,docsDomain:`docs.pars.network`,adminDomain:`pars.network`,accentColor:`#caa24a`,theme:{light:{...i6,accent1:`#caa24a`},dark:{...a6,accent1:`#caa24a`}},social:{twitter:`https://x.com/parsnetwork`,github:`https://github.com/parsdao`},mark:r6.pars,logoUrl:o6(`@parsdao/brand@1.0.1`,`assets/logo/logo.svg`),faviconUrl:o6(`@parsdao/brand@1.0.1`,`assets/logo/logo.svg`)},"7stars":{id:`7stars`,name:`7Stars`,title:`7Stars`,tagline:`Cloud, powered by Hanzo`,legalName:`7Stars`,domain:`7stars.dev`,docsDomain:`docs.7stars.dev`,adminDomain:`7stars.dev`,accentColor:`#FFFFFF`,theme:{light:i6,dark:a6},social:{},mark:r6[`7stars`],logoUrl:s6.logoUrl,faviconUrl:s6.faviconUrl},yotoda:{id:`yotoda`,name:`Yotoda`,title:`Yotoda`,tagline:`Cloud, powered by Hanzo`,legalName:`Yotoda`,domain:`yotoda.tech`,docsDomain:`docs.yotoda.tech`,adminDomain:`yotoda.tech`,accentColor:`#FFFFFF`,theme:{light:i6,dark:a6},social:{},mark:r6.yotoda,logoUrl:s6.logoUrl,faviconUrl:s6.faviconUrl}},Ume=()=>typeof window>`u`?H3:Nme(window.location.hostname);function Wme({size:e=20,brand:t,wordmark:n,animated:r=!0,color:i=`currentColor`}){let a=t??Ume(),o=r6[a]??r6.hanzo,s=c6[a]?.name??c6.hanzo.name,c=n===!1?s:n??s;if(typeof r==`function`){let t=r().replace(`<svg `,`<svg width="100%" height="100%" `);return(0,L.jsx)(`span`,{role:`img`,"aria-label":c,style:{width:e,height:e,display:`inline-flex`,flexShrink:0},dangerouslySetInnerHTML:{__html:t}})}return r&&a===`hanzo`?(0,L.jsx)(Hme,{animated:!0,size:e,wordmark:n===!1?void 0:c}):(0,L.jsx)(`svg`,{width:e,height:e,viewBox:o.viewBox,role:`img`,"aria-label":c,...o.colored?null:{fill:i},style:{display:`block`,flexShrink:0},dangerouslySetInnerHTML:{__html:o.content}})}function Gme(e){let t=e.trim();if(!t||/^(https?:|data:|\/)/.test(t)||!/[\p{Extended_Pictographic}\p{Regional_Indicator}]/u.test(t))return!1;let n=Intl.Segmenter;return(n?[...new n().segment(t)].length:[...t].length)<=3}function Kme(e){return(e.trim().split(/[\s._/-]+/).filter(Boolean).slice(0,2).map(e=>e[0]??``).join(``)||e.trim().slice(0,2)).toUpperCase()}var qme=e=>e<26?`$1`:e<34?`$2`:e<44?`$4`:`$6`;function l6({org:e,size:t=22,maxW:n}){let[r,i]=(0,b.useState)(!1);return(0,b.useEffect)(()=>i(!1),[e.logo]),e.logo&&Gme(e.logo)?(0,L.jsx)(z,{width:t,height:t,items:`center`,justify:`center`,style:{flexShrink:0},children:(0,L.jsx)(H,{fontSize:Math.round(t*.72),lineHeight:t,children:e.logo.trim()})}):e.logo&&!r?(0,L.jsx)(`img`,{src:e.logo,alt:``,onError:()=>i(!0),style:{height:t,width:n?`auto`:t,maxWidth:n??t,objectFit:`contain`,display:`block`,borderRadius:6,flexShrink:0}}):(0,L.jsx)(z,{width:t,height:t,rounded:`$3`,bg:`$edge`,items:`center`,justify:`center`,style:{flexShrink:0},children:(0,L.jsx)(H,{fontSize:qme(t),fontWeight:`800`,color:`$ink`,children:Kme(e.displayName||e.name)})})}var u6=`theme`;function Jme(){if(typeof document>`u`)return;let e=document.documentElement;if(e.classList.contains(`dark`))return`dark`;if(e.classList.contains(`light`))return`light`;try{let e=window.localStorage.getItem(u6);if(e===`light`||e===`dark`)return e}catch{}}function Yme(e){if(typeof document>`u`)return;let t=document.documentElement;t.classList.toggle(`dark`,e===`dark`),t.classList.toggle(`light`,e===`light`),t.style.colorScheme=e;try{window.localStorage.setItem(u6,e)}catch{}}function d6({theme:e,defaultTheme:t,onToggle:n,onThemeChange:r,size:i=`$2`,label:a}){let o=e!==void 0,[s,c]=(0,b.useState)(()=>e??t??Jme()??`dark`),l=(o?e:s)===`dark`,u=V3(),{t:d}=YM();return(0,L.jsx)(bS,{size:i,chromeless:!0,icon:l?(0,L.jsx)(tse,{size:16}):(0,L.jsx)(lM,{size:16}),onPress:()=>{let e=l?`light`:`dark`;u({component:`ThemeToggle`,action:`change`,value:e}),o||(c(e),Yme(e)),n?.(e),r?.(e)},"aria-label":a??d(l?`Switch to light theme`:`Switch to dark theme`)})}var Xme=(0,b.lazy)(()=>Va(()=>import(`./ThemeToggleNext-DqJCaF9Y.js`),[])),Zme=class extends b.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};function f6(e){if(e.theme!==void 0||e.onToggle!==void 0||e.onThemeChange!==void 0)return(0,L.jsx)(d6,{...e});let t=(0,L.jsx)(d6,{...e});return(0,L.jsx)(Zme,{fallback:t,children:(0,L.jsx)(b.Suspense,{fallback:t,children:(0,L.jsx)(Xme,{size:e.size,label:e.label})})})}var Qme=(0,b.createContext)({}),$me=()=>(0,b.useContext)(Qme);function ehe(e){let t=typeof e?.status==`number`?e.status:0,n=e instanceof Error?e.message:String(e);return t===503?{kind:`not-initialized`,message:n}:t===404||t===405?{kind:`unavailable`,message:n}:t===501?{kind:`not-implemented`,message:n}:t===402?{kind:`billing`,message:n}:t===401?{kind:`signin`,message:n}:t===403?{kind:`access`,message:n}:{kind:`error`,message:n}}var the={"not-initialized":KM(`Backend not initialized`),unavailable:KM(`Not available on this deployment yet`),"not-implemented":KM(`Not yet available`),access:KM(`Not enabled for your account`),signin:KM(`Your session expired`),billing:KM(`Add credits to continue`),error:KM(`Could not reach the backend`)},p6={"not-initialized":KM(`The /v1 route is mounted but its runtime (or the console API key it proxies to) is not configured on this deployment yet. Real data appears here once it is — no placeholder data is shown.`),unavailable:KM(`This endpoint is not mounted at the gateway on this host yet. The view lights up automatically once the route is live.`),"not-implemented":KM(`This capability is planned but not wired yet. The backend answers honestly rather than pretending it worked — nothing here is fabricated, and the view lights up automatically once it ships.`),access:KM(`You're signed in, but this isn't enabled for your organization on this deployment, or it's an admin-only surface. It appears here automatically once your account has access — nothing is fabricated.`),signin:KM(`Your session has expired or isn’t recognized here. Sign in again to continue where you left off.`),billing:``,error:``};function nhe({state:e,onRetry:t,hint:n}){let{signIn:r,addCredits:i}=$me(),{t:a}=YM();return(0,L.jsxs)(z3,{borderWidth:1,borderColor:`$borderColor`,p:`$4`,gap:`$2`,maxW:640,children:[(0,L.jsxs)(B,{gap:`$2`,items:`center`,children:[(0,L.jsx)(EM,{size:16}),(0,L.jsx)(H,{fontSize:`$4`,fontWeight:`700`,children:a(the[e.kind])})]}),(0,L.jsx)(H,{fontSize:`$3`,color:`$quiet`,children:p6[e.kind]?a(p6[e.kind]):e.message}),n?(0,L.jsx)(H,{fontSize:`$2`,color:`$soft`,children:n}):null,e.kind===`signin`&&r?(0,L.jsx)(bS,{size:`$2`,theme:`light`,self:`flex-start`,onPress:r,children:a(`Sign in again`)}):e.kind===`billing`&&i?(0,L.jsxs)(B,{gap:`$2`,items:`center`,flexWrap:`wrap`,children:[(0,L.jsx)(bS,{size:`$2`,theme:`light`,self:`flex-start`,icon:(0,L.jsx)(Bj,{size:14}),onPress:i,children:a(`Add credits`)}),t?(0,L.jsx)(bS,{size:`$2`,self:`flex-start`,onPress:t,children:a(`Retry`)}):null]}):t?(0,L.jsx)(bS,{size:`$2`,self:`flex-start`,onPress:t,children:a(`Retry`)}):null]})}var rhe={fontWeight:`600`,px:`$3`};function ihe({onPress:e,...t}){let n=V3(),r=NN()===`compact`;return(0,L.jsx)(bS,{bg:`var(--primary)`,color:`var(--primary-foreground)`,borderColor:`var(--primary)`,hoverStyle:{bg:`var(--primary-hover)`,borderColor:`var(--primary-hover)`},pressStyle:{bg:`var(--primary-hover)`,borderColor:`var(--primary-hover)`},onPress:r=>{n({component:`PrimaryButton`,action:`click`,id:Ame(t.children)??t[`aria-label`]}),e?.(r)},...r?rhe:null,...t})}function m6(e){typeof window<`u`&&window.open(e,`_blank`,`noopener`)}function h6({icon:e,title:t,description:n,bullets:r,primary:i,secondary:a}){let o=V3();return(0,L.jsxs)(z3,{borderWidth:1,borderColor:`$borderColor`,borderStyle:`dashed`,p:`$6`,gap:`$4`,items:`center`,maxW:640,self:`center`,width:`100%`,children:[(0,L.jsx)(z,{width:48,height:48,items:`center`,justify:`center`,rounded:`$4`,bg:`$hover`,children:(0,L.jsx)(e,{size:24})}),(0,L.jsxs)(z,{gap:`$2`,items:`center`,maxW:480,children:[(0,L.jsx)(H,{fontSize:`$6`,fontWeight:`500`,text:`center`,letterSpacing:-.3,children:t}),(0,L.jsx)(H,{fontSize:`$3`,color:`$quiet`,text:`center`,children:n})]}),r&&r.length?(0,L.jsx)(z,{gap:`$2`,self:`stretch`,maxW:420,mx:`auto`,children:r.map(e=>(0,L.jsxs)(B,{gap:`$2`,items:`flex-start`,children:[(0,L.jsx)(z,{pt:`$1`,children:(0,L.jsx)(Dj,{size:14,color:`$soft`})}),(0,L.jsx)(H,{fontSize:`$3`,color:`$quiet`,flex:1,children:e})]},e))}):null,i||a?(0,L.jsxs)(B,{gap:`$2`,items:`center`,flexWrap:`wrap`,justify:`center`,children:[i?(0,L.jsx)(ihe,{icon:i.icon,iconAfter:i.href?(0,L.jsx)(Uj,{size:16}):(0,L.jsx)(vj,{...qN,size:16}),onPress:()=>{o({component:`EmptyState`,action:`click`,id:t,value:i.label}),i.href?m6(i.href):i.onPress?.()},children:i.label}):null,a?(0,L.jsx)(bS,{chromeless:!0,icon:a.icon,iconAfter:a.href?(0,L.jsx)(Uj,{size:14}):void 0,onPress:()=>{o({component:`EmptyState`,action:`click`,id:t,value:a.label}),a.href?m6(a.href):a.onPress?.()},children:a.label}):null]}):null]})}var g6=new Map;function _6(e,t){g6.set(e,t)}function v6(e){return g6.get(e)}var y6={AC:`247`,AD:`376`,AE:`971`,AF:`93`,AG:`1`,AI:`1`,AL:`355`,AM:`374`,AO:`244`,AR:`54`,AS:`1`,AT:`43`,AU:`61`,AW:`297`,AX:`358`,AZ:`994`,BA:`387`,BB:`1`,BD:`880`,BE:`32`,BF:`226`,BG:`359`,BH:`973`,BI:`257`,BJ:`229`,BL:`590`,BM:`1`,BN:`673`,BO:`591`,BQ:`599`,BR:`55`,BS:`1`,BT:`975`,BW:`267`,BY:`375`,BZ:`501`,CA:`1`,CC:`61`,CD:`243`,CF:`236`,CG:`242`,CH:`41`,CI:`225`,CK:`682`,CL:`56`,CM:`237`,CN:`86`,CO:`57`,CR:`506`,CU:`53`,CV:`238`,CW:`599`,CX:`61`,CY:`357`,CZ:`420`,DE:`49`,DJ:`253`,DK:`45`,DM:`1`,DO:`1`,DZ:`213`,EC:`593`,EE:`372`,EG:`20`,EH:`212`,ER:`291`,ES:`34`,ET:`251`,FI:`358`,FJ:`679`,FK:`500`,FM:`691`,FO:`298`,FR:`33`,GA:`241`,GB:`44`,GD:`1`,GE:`995`,GF:`594`,GG:`44`,GH:`233`,GI:`350`,GL:`299`,GM:`220`,GN:`224`,GP:`590`,GQ:`240`,GR:`30`,GT:`502`,GU:`1`,GW:`245`,GY:`592`,HK:`852`,HN:`504`,HR:`385`,HT:`509`,HU:`36`,ID:`62`,IE:`353`,IL:`972`,IM:`44`,IN:`91`,IO:`246`,IQ:`964`,IR:`98`,IS:`354`,IT:`39`,JE:`44`,JM:`1`,JO:`962`,JP:`81`,KE:`254`,KG:`996`,KH:`855`,KI:`686`,KM:`269`,KN:`1`,KP:`850`,KR:`82`,KW:`965`,KY:`1`,KZ:`7`,LA:`856`,LB:`961`,LC:`1`,LI:`423`,LK:`94`,LR:`231`,LS:`266`,LT:`370`,LU:`352`,LV:`371`,LY:`218`,MA:`212`,MC:`377`,MD:`373`,ME:`382`,MF:`590`,MG:`261`,MH:`692`,MK:`389`,ML:`223`,MM:`95`,MN:`976`,MO:`853`,MP:`1`,MQ:`596`,MR:`222`,MS:`1`,MT:`356`,MU:`230`,MV:`960`,MW:`265`,MX:`52`,MY:`60`,MZ:`258`,NA:`264`,NC:`687`,NE:`227`,NF:`672`,NG:`234`,NI:`505`,NL:`31`,NO:`47`,NP:`977`,NR:`674`,NU:`683`,NZ:`64`,OM:`968`,PA:`507`,PE:`51`,PF:`689`,PG:`675`,PH:`63`,PK:`92`,PL:`48`,PM:`508`,PR:`1`,PS:`970`,PT:`351`,PW:`680`,PY:`595`,QA:`974`,RE:`262`,RO:`40`,RS:`381`,RU:`7`,RW:`250`,SA:`966`,SB:`677`,SC:`248`,SD:`249`,SE:`46`,SG:`65`,SH:`290`,SI:`386`,SJ:`47`,SK:`421`,SL:`232`,SM:`378`,SN:`221`,SO:`252`,SR:`597`,SS:`211`,ST:`239`,SV:`503`,SX:`1`,SY:`963`,SZ:`268`,TA:`290`,TC:`1`,TD:`235`,TG:`228`,TH:`66`,TJ:`992`,TK:`690`,TL:`670`,TM:`993`,TN:`216`,TO:`676`,TR:`90`,TT:`1`,TV:`688`,TW:`886`,TZ:`255`,UA:`380`,UG:`256`,US:`1`,UY:`598`,UZ:`998`,VA:`39`,VC:`1`,VE:`58`,VG:`1`,VI:`1`,VN:`84`,VU:`678`,WF:`681`,WS:`685`,XK:`383`,YE:`967`,YT:`262`,ZA:`27`,ZM:`260`,ZW:`263`},b6=e=>e==null?``:String(e),x6=e=>{if(e==null||e===``)return null;let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t:null},S6=e=>Array.isArray(e)?e:e==null||e===``?[]:[e],C6=e=>{if(e==null||e===``)return``;if(e instanceof Date)return Number.isNaN(e.getTime())?``:e.toISOString().slice(0,10);let t=String(e),n=t.match(/^(\d{4}-\d{2}-\d{2})/);if(n)return n[1];let r=new Date(t);return Number.isNaN(r.getTime())?``:r.toISOString().slice(0,10)},ahe=e=>{if(e==null||e===``)return null;let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t},w6=e=>{if(e==null||e===``)return{};if(typeof e==`string`){let t=e.trim(),n=t.indexOf(` `);return n<0?{first:t}:{first:t.slice(0,n),last:t.slice(n+1).trim()}}if(typeof e!=`object`)return{first:String(e)};let t=e;return{first:b6(t.first??t.firstName).trim()||void 0,last:b6(t.last??t.lastName).trim()||void 0}},T6=e=>{let t=w6(e);return[t.first,t.last].filter(Boolean).join(` `)},E6=[`street1`,`street2`,`city`,`state`,`postcode`,`country`],D6=e=>{if(e==null||e===``)return{};if(typeof e==`string`)return{street1:e};let t=e,n={},r={street1:`addressStreet1`,street2:`addressStreet2`,city:`addressCity`,state:`addressState`,postcode:`addressPostcode`,country:`addressCountry`};for(let e of E6){let i=b6(t[e]??t[r[e]]).trim();i&&(n[e]=i)}return n},ohe=(e,t)=>{if(!e)return``;if(!/^[A-Za-z]{2}$/.test(e))return e;try{return new Intl.DisplayNames(t?[t]:void 0,{type:`region`}).of(e.toUpperCase())??e}catch{return e}},O6=(e,t)=>{let n=D6(e);return E6.map(e=>e===`country`?ohe(n.country,t):n[e]).filter(Boolean).join(`, `)},k6=e=>S6(e).map(e=>typeof e==`string`?{url:e}:e).filter(e=>!!e&&typeof e.url==`string`&&e.url.trim()!==``),A6=e=>{let t=e.trim();try{let e=new URL(/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`);return e.host.replace(/^www\./,``)+(e.pathname===`/`?``:e.pathname.replace(/\/$/,``))}catch{return t}},j6=e=>{let t=e.trim();if(!t)return;let n=/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`;try{let e=new URL(n);return[`http:`,`https:`,`mailto:`,`tel:`].includes(e.protocol)?e.href:void 0}catch{return}},M6=e=>{if(e&&typeof e==`object`&&!Array.isArray(e)){let t=e;return[b6(t.primaryEmail),...S6(t.additionalEmails).map(b6)].map(e=>e.trim()).filter(Boolean)}return S6(e).flatMap(e=>b6(e).split(/[,;]/)).map(e=>e.trim()).filter(Boolean)},she=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),che=(()=>{let e={};for(let[t,n]of Object.entries(y6))(e[n]??=[]).push(t);for(let[t,n]of Object.entries({1:`US`,7:`RU`,44:`GB`,47:`NO`,61:`AU`,212:`MA`,262:`RE`,290:`SH`,358:`FI`,590:`GP`,599:`CW`})){let r=e[t];r?.includes(n)&&(e[t]=[n,...r.filter(e=>e!==n)])}return e})(),N6=(e,t)=>{if(e&&typeof e==`object`){let t=e,n=b6(t.number??t.primaryPhoneNumber).trim(),r=b6(t.country??t.countryCode??t.primaryPhoneCountryCode).trim().toUpperCase()||void 0;return{country:r,callingCode:b6(t.callingCode??t.primaryPhoneCallingCode).replace(/^\+/,``).trim()||(r?y6[r]:void 0),number:n}}let n=b6(e).trim();if(!n.startsWith(`+`)){let e=t?.toUpperCase();return{country:e,callingCode:e?y6[e]:void 0,number:n}}let r=n.slice(1).replace(/[^\d]/g,``);for(let e=Math.min(4,r.length);e>0;e--){let i=r.slice(0,e),a=che[i];if(a)return{country:t&&a.includes(t.toUpperCase())?t.toUpperCase():a[0],callingCode:i,number:lhe(n.slice(1),e)}}return{number:n}},lhe=(e,t)=>{let n=0,r=0;for(;r<e.length&&n<t;)/\d/.test(e[r++])&&n++;return e.slice(r).replace(/^[\s.()-]+/,``).trim()},P6=e=>{let t=e.number.trim();return t?e.callingCode?`+${e.callingCode} ${t.replace(/^0+(?=\d)/,``)}`:t:``},uhe=e=>{let t=e.number.replace(/[^\d]/g,``).replace(/^0+(?=\d)/,``);if(t)return`tel:${e.callingCode?`+${e.callingCode}`:``}${t}`},F6=e=>{if(e==null||e===``)return null;if(typeof e==`string`)return{name:e};let t=e,n=b6(t.name??t.workspaceMemberName??t.label).trim();return n?{name:n,source:b6(t.source).toLowerCase()||void 0,avatarUrl:b6(t.avatarUrl).trim()||void 0}:null},I6=e=>{if(e==null||e===``)return``;if(typeof e==`object`){let t=e;return typeof t.markdown==`string`&&t.markdown.trim()?I6(t.markdown):`blocknote`in t||`content`in t||`type`in t||Array.isArray(e)?I6(L6(e).join(`
|
|
169
169
|
`)):``}for(let t of String(e).split(`
|
|
170
170
|
`)){let e=t.replace(/^\s{0,3}(#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+|-\s\[[ x]\]\s+)/i,``).replace(/!\[[^\]]*\]\([^)]*\)/g,``).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/(\*\*|__|\*|_|~~|`)/g,``).trim();if(e)return e}return``},L6=e=>{if(typeof e==`string`)try{return L6(JSON.parse(e))}catch{return[e]}if(Array.isArray(e))return e.flatMap(L6);if(e&&typeof e==`object`){let t=e,n=typeof t.text==`string`?[t.text]:[],r=[t.content,t.children,t.blocknote].flatMap(e=>e==null?[]:L6(e));return t.type&&r.length?[[...n,...r].join(``)]:[...n,...r]}return[]},dhe=(e,t)=>{if(typeof t==`string`)return t;if(t&&typeof t==`object`){let n=t;return b6(n[e]??n.label??n.name??n.id)}return``};function R6(){return(0,L.jsx)(H,{fontSize:`$2`,color:`var(--text-faint)`,"aria-label":`Empty`,children:`—`})}var z6=({text:e,color:t=`$ink`,mono:n})=>(0,L.jsx)(J1,{text:e,size:`$2`,color:t,...n?{fontFamily:`$mono`}:null}),B6={target:`_blank`,rel:`noopener noreferrer`};function V6({label:e,color:t}){return(0,L.jsx)(Y1,{color:t??`gray`,children:e})}var H6=(e,t)=>e?.find(e=>e.value===t)??{value:t,label:t};function fhe({value:e}){let t=b6(e).trim();return t?(0,L.jsx)(z6,{text:t}):(0,L.jsx)(R6,{})}function phe({value:e}){let t=b6(e).trim();return t?(0,L.jsx)(J1,{text:t,lineClamp:2,size:`$2`,color:`$ink`,isTooltipMultiline:!0}):(0,L.jsx)(R6,{})}function mhe({value:e}){let t=I6(e);return t?(0,L.jsx)(z6,{text:t,color:`$aside`}):(0,L.jsx)(R6,{})}function hhe({value:e}){let t=M6(e);return t.length===0?(0,L.jsx)(R6,{}):(0,L.jsx)(Y6,{children:t.map((e,t)=>(0,L.jsx)(Z1,{shape:`round`,variant:`soft`,label:e,href:`mailto:${e}`},`${e}-${t}`))})}var U6=({url:e,label:t})=>{let n=j6(e);return(0,L.jsx)(Z1,{shape:`round`,variant:`soft`,label:t?.trim()||A6(e),tooltipContent:e,...n?{href:n,...B6}:null})};function ghe({value:e}){let t=k6(e);return t.length===0?(0,L.jsx)(R6,{}):t.length===1?(0,L.jsx)(U6,{url:t[0].url,label:t[0].label}):(0,L.jsx)(Y6,{children:t.map((e,t)=>(0,L.jsx)(U6,{url:e.url,label:e.label},`${e.url}-${t}`))})}function _he({value:e}){let t=k6(e);return t.length===0?(0,L.jsx)(R6,{}):(0,L.jsx)(Y6,{children:t.map((e,t)=>(0,L.jsx)(U6,{url:e.url,label:e.label},`${e.url}-${t}`))})}function vhe({field:e,value:t}){let n=e.metadata?.defaultCountry,r=(Array.isArray(t)?t:[t]).map(e=>N6(e,n)).filter(e=>e.number);return r.length===0?(0,L.jsx)(R6,{}):(0,L.jsx)(Y6,{children:r.map((e,t)=>{let n=uhe(e);return(0,L.jsx)(Z1,{shape:`round`,variant:`soft`,label:P6(e),...n?{href:n}:null},`${e.number}-${t}`)})})}var yhe={fontVariant:[`tabular-nums`]},W6=({text:e})=>(0,L.jsx)(H,{fontSize:`$2`,color:`$ink`,numberOfLines:1,...yhe,children:e});function G6({field:e,value:t}){let n=x6(t);if(n==null)return(0,L.jsx)(R6,{});let r=e.metadata??{},i=r.decimals==null?n.toLocaleString():n.toLocaleString(void 0,{minimumFractionDigits:r.decimals,maximumFractionDigits:r.decimals});return(0,L.jsx)(W6,{text:`${r.prefix??``}${i}${r.suffix??``}`})}function bhe({field:e,value:t}){let n=x6(t);if(n==null)return(0,L.jsx)(R6,{});let r=(e.metadata??{}).decimals??0;return(0,L.jsx)(W6,{text:`${n.toLocaleString(void 0,{minimumFractionDigits:r,maximumFractionDigits:r})}%`})}function xhe({field:e,value:t}){let n=e.metadata??{},r=t??{},i=x6(typeof r==`object`&&r?r.amount:t);if(i==null)return(0,L.jsx)(R6,{});let a=typeof r==`object`&&r?.currencyCode||n.currencyCode||`USD`,o;try{o=new Intl.NumberFormat(void 0,{style:`currency`,currency:a,maximumFractionDigits:n.decimals??2}).format(i)}catch{o=`${i} ${a}`}return(0,L.jsx)(W6,{text:o})}function K6({value:e,max:t,hover:n}){let r=kl().aside?.get?.()??`currentColor`,i=n??e;return(0,L.jsx)(B,{items:`center`,gap:2,"aria-hidden":!0,children:Array.from({length:t},(e,t)=>t+1).map(e=>(0,L.jsx)(xM,{size:16,color:e<=i?`$aside`:`$raised`,fill:e<=i?r:`none`},e))})}function She({field:e,value:t}){let n=(e.metadata??{}).max??5,r=Math.max(0,Math.min(n,Math.round(x6(t)??0)));return(0,L.jsx)(B,{role:`img`,"aria-label":`${r} of ${n}`,children:(0,L.jsx)(K6,{value:r,max:n})})}function Che({field:e,value:t}){if(t==null||t===``)return(0,L.jsx)(R6,{});let n=e.metadata??{},r=t===!0||t===`true`||t===1;return(0,L.jsxs)(B,{items:`center`,gap:`$1`,height:20,children:[(0,L.jsx)(r?Dj:MM,{size:14,color:`$aside`}),(0,L.jsx)(H,{fontSize:`$2`,color:`$aside`,children:r?n.trueLabel??`Yes`:n.falseLabel??`No`})]})}function whe({field:e,value:t}){let n=b6(t);if(!n)return(0,L.jsx)(R6,{});let r=e.metadata?.options,i=H6(r,n);return(0,L.jsx)(V6,{label:i.label,color:i.color})}function The({field:e,value:t}){let n=S6(t).map(b6).filter(Boolean);if(n.length===0)return(0,L.jsx)(R6,{});let r=e.metadata?.options;return(0,L.jsx)(Y6,{children:n.map(e=>{let t=H6(r,e);return(0,L.jsx)(V6,{label:t.label,color:t.color},e)})})}var Ehe=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]],q6=(e,t=Date.now())=>{let n=(e.getTime()-t)/1e3,r=new Intl.RelativeTimeFormat(void 0,{numeric:`auto`});for(let[e,t]of Ehe)if(Math.abs(n)>=t)return r.format(Math.round(n/t),e);return r.format(Math.round(n),`second`)};function Dhe({field:e,value:t}){let n=C6(t);if(!n)return(0,L.jsx)(R6,{});let r=new Date(`${n}T00:00:00Z`);if(e.metadata?.display===`relative`){let e=new Date(new Date().toISOString().slice(0,10)+`T00:00:00Z`);return(0,L.jsx)(z6,{text:q6(r,e.getTime())})}return(0,L.jsx)(z6,{text:r.toLocaleDateString(void 0,{timeZone:`UTC`,year:`numeric`,month:`short`,day:`numeric`})})}function Ohe({field:e,value:t}){let n=ahe(t);if(!n)return(0,L.jsx)(R6,{});let r=e.metadata?.display===`relative`;return(0,L.jsx)(z6,{text:r?q6(n):n.toLocaleString(void 0,{year:`numeric`,month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`,timeZoneName:`short`})})}function khe({label:e,seed:t,src:n,shape:r=`square`,href:i,onPress:a}){return(0,L.jsx)(Z1,{label:e,startElement:(0,L.jsx)(RP,{size:`md`,shape:r===`circle`?`circle`:`square`,name:e,colorSeed:t??e,src:n??null}),...i?{href:i}:null,...a?{onPress:a}:null})}function Ahe({field:e,value:t}){let n=e.metadata??{},r=n.labelField??`name`,i=S6(t).map(e=>{let t=dhe(r,e),i=e&&typeof e==`object`?e:null,a=i&&b6(i[n.avatarField??`avatarUrl`]).trim()||void 0;return{label:t,seed:i&&b6(i.id)||t,src:a}}).filter(e=>e.label);if(i.length===0)return(0,L.jsx)(R6,{});let a=i.map((e,t)=>(0,L.jsx)(khe,{label:e.label,seed:e.seed,src:e.src,shape:n.shape},`${e.seed}-${t}`));return i.length===1?a[0]:(0,L.jsx)(Y6,{children:a})}var jhe={api:Lj,import:DM,email:nM,calendar:Ej,workflow:cse,webhook:sse,system:xj,manual:Hj};function Mhe({value:e}){let t=F6(e);if(!t)return(0,L.jsx)(R6,{});let n=t.source&&t.source!==`member`?jhe[t.source]:void 0;return(0,L.jsx)(Z1,{label:t.name,startElement:n?(0,L.jsx)(n,{size:14,color:`$hint`}):(0,L.jsx)(RP,{size:`md`,shape:`circle`,name:t.name,src:t.avatarUrl??null})})}function Nhe({value:e}){let t=T6(e);return t?(0,L.jsx)(z6,{text:t}):(0,L.jsx)(R6,{})}function Phe({value:e}){let t=O6(e);return t?(0,L.jsx)(z6,{text:t}):(0,L.jsx)(R6,{})}function Fhe({value:e}){let t=b6(e);return t?(0,L.jsx)(z6,{text:t,color:`$hint`,mono:!0}):(0,L.jsx)(R6,{})}function Ihe({value:e}){let t=S6(e).map(e=>typeof e==`string`?{name:e}:e).map(e=>({name:b6(e?.label??e?.name).trim()||`file`,url:b6(e?.url).trim()}));return t.length===0?(0,L.jsx)(R6,{}):(0,L.jsx)(Y6,{children:t.map((e,t)=>{let n=e.url?j6(e.url):void 0;return(0,L.jsx)(Z1,{variant:`soft`,label:e.name,maxW:120,startElement:(0,L.jsx)(uM,{size:14,color:`$hint`}),...n?{href:n,...B6}:null},`${e.name}-${t}`)})})}function J6({value:e}){if(e==null)return(0,L.jsx)(R6,{});let t;try{t=JSON.stringify(e)}catch{t=String(e)}return(0,L.jsx)(z6,{text:t,color:`$hint`,mono:!0})}function Lhe({value:e}){if(typeof e==`object`&&e)return(0,L.jsx)(J6,{field:{name:``,label:``,type:`json`},value:e});let t=b6(e);return t?(0,L.jsx)(z6,{text:t}):(0,L.jsx)(R6,{})}function Y6({children:e}){return(0,L.jsx)(Fde,{flex:1,minW:0,children:e})}var X6=e=>{let t=new Map;return n=>{let r=n??``,i=t.get(r);return i===void 0&&t.set(r,i=e(n)),i}},Z6=(e,t)=>{try{return new Intl.DisplayNames(e?[e]:void 0,{type:t})}catch{return null}},Q6=X6(e=>{let t=Z6(e,`region`),n=new Intl.Collator(e);return Object.entries(y6).map(([e,n])=>{let r=e;try{r=t?.of(e)??e}catch{r=e}return{value:e,label:r,callingCode:n}}).sort((e,t)=>n.compare(e.label,t.label))}),Rhe=(e,t)=>{try{let n=new Intl.NumberFormat(t,{style:`currency`,currency:e,currencyDisplay:`narrowSymbol`}).formatToParts(0).find(e=>e.type===`currency`)?.value;return n&&n!==e?n:void 0}catch{return}},zhe=X6(e=>{let t=Intl.supportedValuesOf,n=t?t(`currency`):[`USD`,`EUR`,`GBP`,`JPY`,`CNY`,`CAD`,`AUD`,`CHF`,`INR`,`BRL`],r=Z6(e,`currency`);return n.map(t=>{let n=t;try{n=r?.of(t)??t}catch{n=t}return{code:t,name:n,symbol:Rhe(t,e)}})}),$6=e=>e.field.metadata?.options??[],e8=(e,t)=>{let n=e=>e.normalize(`NFD`).replace(/\p{M}/gu,``).toLowerCase(),r=n(t.trim());return r?e.filter(e=>n(e.label).includes(r)||n(e.value).includes(r)):e};function t8({onSubmit:e,onCancel:t,multiline:n,children:r}){return(0,L.jsx)(z,{width:`100%`,minW:0,onKeyDown:r=>{r.nativeEvent?.isComposing||(r.key===`Enter`&&!(n&&r.shiftKey)?(r.preventDefault?.(),e?.()):r.key===`Escape`&&(r.preventDefault?.(),t?.()))},children:r})}var n8=e=>e.field.label;function Bhe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.metadata?.placeholder;return(0,L.jsx)(t8,{onSubmit:r,onCancel:i,children:(0,L.jsx)(NI,{"aria-label":e.label,value:b6(t),onChangeText:e=>n(e),placeholder:o,autoFocus:a})})}function Vhe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=b6(Array.isArray(t)?t[0]:t),s=e.metadata?.placeholder??`name@example.com`;return(0,L.jsx)(t8,{onSubmit:r,onCancel:i,children:(0,L.jsx)(NI,{"aria-label":e.label,type:`email`,inputMode:`email`,autoComplete:`email`,value:o,onChangeText:e=>n(e.trim()),placeholder:s,autoFocus:a,"aria-invalid":o!==``&&!she(o)||void 0})})}function Hhe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=b6(typeof t==`object`&&t&&!Array.isArray(t)?t.url:t),s=e.metadata?.placeholder??`https://`;return(0,L.jsx)(t8,{onSubmit:r,onCancel:i,children:(0,L.jsx)(NI,{"aria-label":e.label,type:`url`,inputMode:`url`,value:o,onChangeText:e=>n(e.trim()),placeholder:s,autoFocus:a})})}function Uhe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.metadata??{},s=N6(t,o.defaultCountry),[c,l]=(0,b.useState)(s.country??o.defaultCountry?.toUpperCase()),u=(0,b.useMemo)(()=>Q6(),[]),d=(e,r)=>{let i=e?y6[e]:void 0;n(typeof t==`object`&&t&&!Array.isArray(t)?{...t,number:r,countryCode:e,callingCode:i?`+${i}`:void 0}:r.trim()?i?`+${i} ${r.trim()}`:r.trim():null)};return(0,L.jsx)(t8,{onSubmit:r,onCancel:i,children:(0,L.jsxs)(kI,{children:[(0,L.jsx)(Ude,{countries:u,value:c??null,onValueChange:e=>{l(e??void 0),d(e??void 0,s.number)}}),(0,L.jsx)(NI,{"aria-label":e.label,type:`tel`,inputMode:`tel`,autoComplete:`tel`,value:s.number,onChangeText:e=>d(c,e),placeholder:o.placeholder??`Phone number`,autoFocus:a})]})})}function r8({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.metadata??{};return(0,L.jsx)(t8,{onSubmit:r,onCancel:i,multiline:!0,children:(0,L.jsx)(yL,{"aria-label":e.label,value:b6(t),onChangeText:e=>n(e),placeholder:o.placeholder,autoFocus:a,rows:o.rows??3,maxRows:o.rows&&o.rows>10?o.rows:10})})}function Whe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.metadata??{};return(0,L.jsx)(t8,{onSubmit:r,onCancel:i,children:(0,L.jsx)(i0,{"aria-label":e.label,value:x6(t),onValueChange:e=>n(e),placeholder:o.placeholder,autoFocus:a,allowOutOfRange:!0,...o.decimals==null?null:{format:{maximumFractionDigits:o.decimals}}})})}function Ghe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=(e.metadata??{}).decimals;return(0,L.jsx)(t8,{onSubmit:r,onCancel:i,children:(0,L.jsx)(kI,{end:(0,L.jsx)(H,{fontSize:`$2`,color:`$hint`,children:`%`}),children:(0,L.jsx)(i0,{"aria-label":e.label,value:x6(t),onValueChange:e=>n(e),autoFocus:a,allowOutOfRange:!0,...o==null?null:{format:{maximumFractionDigits:o}}})})})}function Khe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.metadata??{},s=t??{},c=x6(typeof s==`object`&&s?s.amount:t),l=typeof s==`object`&&s?.currencyCode||o.currencyCode||`USD`,u=(0,b.useMemo)(()=>zhe(),[]);return(0,L.jsx)(t8,{onSubmit:r,onCancel:i,children:(0,L.jsxs)(kI,{children:[(0,L.jsx)(Hde,{currencies:u,value:l,onValueChange:e=>n({amount:c,currencyCode:e??l}),selectedFirst:!0}),(0,L.jsx)(i0,{"aria-label":e.label,value:c,onValueChange:e=>n({amount:e,currencyCode:l}),autoFocus:a,allowOutOfRange:!0,format:{maximumFractionDigits:o.decimals??2}})]})})}function qhe({field:e,value:t,onChange:n}){let r=(e.metadata??{}).max??5,i=Math.max(0,Math.min(r,Math.round(x6(t)??0))),[a,o]=(0,b.useState)(null),s=e=>n(Math.max(0,Math.min(r,e)));return(0,L.jsx)(B,{role:`slider`,tabIndex:0,onKeyDown:e=>{let t=e.key===`ArrowRight`||e.key===`ArrowUp`?i+1:e.key===`ArrowLeft`||e.key===`ArrowDown`?i-1:e.key===`Home`?0:e.key===`End`?r:null;t!=null&&(e.preventDefault?.(),s(t))},"aria-label":e.label,"aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":i,"aria-valuetext":`${i} of ${r}`,items:`center`,height:20,rounded:`$xs`,focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},onHoverOut:()=>o(null),children:(0,L.jsxs)(B,{position:`relative`,children:[(0,L.jsx)(K6,{value:i,max:r,hover:a}),(0,L.jsx)(B,{position:`absolute`,t:0,l:0,r:0,b:0,children:Array.from({length:r},(e,t)=>t+1).map(e=>(0,L.jsx)(B,{flex:1,cursor:`pointer`,onHoverIn:()=>o(e),onPress:()=>s(e===i?0:e),"data-star":e},e))})]})})}function Jhe({field:e,value:t,onChange:n}){let r=e.metadata??{},i=t===!0||t===`true`||t===1;return(0,L.jsxs)(B,{items:`center`,gap:`$2`,children:[(0,L.jsx)(sL,{"aria-label":e.label,checked:i,onCheckedChange:e=>n(e)}),(0,L.jsx)(H,{fontSize:`$2`,color:`$aside`,children:i?r.trueLabel??`Yes`:r.falseLabel??`No`})]})}function i8({children:e,...t}){return(0,L.jsx)(q,{variant:`outline`,width:`100%`,justify:`space-between`,endIcon:(0,L.jsx)(Oj,{color:`$hint`}),...t,children:(0,L.jsx)(B,{flex:1,minW:0,items:`center`,gap:`$1`,overflow:`hidden`,children:e})})}var a8=({text:e})=>(0,L.jsx)(H,{fontSize:`$2`,color:`$hush`,numberOfLines:1,children:e}),o8=e=>(0,b.useState)(!!e);function Yhe(e){let{value:t,onChange:n,autoFocus:r}=e,i=$6(e),[a,o]=o8(r),[s,c]=(0,b.useState)(``),l=b6(t),u=i.find(e=>e.value===l),d=e8(i,s);return(0,L.jsxs)(IF,{open:a,onOpenChange:e=>{o(e),e||c(``)},children:[(0,L.jsx)(RF,{asChild:!0,children:(0,L.jsx)(i8,{"aria-label":n8(e),children:u?(0,L.jsx)(V6,{label:u.label,color:u.color}):(0,L.jsx)(a8,{text:`Select…`})})}),(0,L.jsxs)(HF,{minW:240,children:[(0,L.jsx)($F,{value:s,onValueChange:c,placeholder:`Search options`,"aria-label":`Search ${n8(e)}`}),l?(0,L.jsx)(KF,{onSelect:()=>n(null),children:`No ${n8(e)}`}):null,(0,L.jsx)(XF,{value:l||null,onValueChange:e=>n(e??null),children:(0,L.jsx)(eI,{scrollable:!0,children:d.map(e=>(0,L.jsx)(QF,{value:e.value,children:(0,L.jsx)(V6,{label:e.label,color:e.color})},e.value))})}),d.length===0?(0,L.jsx)(sI,{children:`No options`}):null]})]})}function Xhe(e){let{value:t,onChange:n,autoFocus:r}=e,i=$6(e),[a,o]=o8(r),[s,c]=(0,b.useState)(``),l=S6(t).map(b6).filter(Boolean),u=e8(i,s);return(0,L.jsxs)(IF,{open:a,onOpenChange:e=>{o(e),e||c(``)},children:[(0,L.jsx)(RF,{asChild:!0,children:(0,L.jsx)(i8,{"aria-label":n8(e),children:l.length>0?l.map(e=>{let t=i.find(t=>t.value===e)??{value:e,label:e};return(0,L.jsx)(V6,{label:t.label,color:t.color},e)}):(0,L.jsx)(a8,{text:`Select…`})})}),(0,L.jsxs)(HF,{minW:240,children:[(0,L.jsx)($F,{value:s,onValueChange:c,placeholder:`Search options`,"aria-label":`Search ${n8(e)}`}),(0,L.jsx)(XF,{multiple:!0,value:l,onValueChange:e=>n(S6(e).map(b6)),children:(0,L.jsx)(eI,{scrollable:!0,children:u.map(e=>(0,L.jsx)(QF,{value:e.value,children:(0,L.jsx)(V6,{label:e.label,color:e.color})},e.value))})}),u.length===0?(0,L.jsx)(sI,{children:`No options`}):null]})]})}function Zhe(e){let{field:t,value:n,onChange:r,onSubmit:i,onCancel:a,autoFocus:o}=e,s=$6(e),c=(t.metadata??{}).shape??`square`,[l,u]=o8(o),[d,f]=(0,b.useState)(``);if(s.length===0){let e=b6(typeof n==`object`&&n?n.name??n.id:n);return(0,L.jsx)(t8,{onSubmit:i,onCancel:a,children:(0,L.jsx)(NI,{"aria-label":t.label,value:e,onChangeText:e=>r(e),placeholder:`Related record id…`,autoFocus:o})})}let p=b6(typeof n==`object`&&n?n.id??n.value:n),m=s.find(e=>e.value===p),h=e8(s,d),g=e=>(0,L.jsxs)(B,{items:`center`,gap:`$2`,minW:0,children:[(0,L.jsx)(RP,{size:`md`,shape:c,name:e.label,colorSeed:e.value,src:e.avatarUrl??null}),(0,L.jsx)(H,{fontSize:`$2`,color:`$ink`,numberOfLines:1,children:e.label})]});return(0,L.jsxs)(IF,{open:l,onOpenChange:e=>{u(e),e||f(``)},children:[(0,L.jsx)(RF,{asChild:!0,children:(0,L.jsx)(i8,{"aria-label":t.label,children:m?g(m):(0,L.jsx)(a8,{text:`Link a record…`})})}),(0,L.jsxs)(HF,{minW:280,children:[(0,L.jsx)($F,{value:d,onValueChange:f,placeholder:`Search records`,"aria-label":`Search ${t.label}`}),p?(0,L.jsx)(KF,{onSelect:()=>r(null),children:`No ${t.label}`}):null,(0,L.jsx)(XF,{value:p||null,onValueChange:e=>r(e??null),children:(0,L.jsx)(eI,{scrollable:!0,children:h.map(e=>(0,L.jsx)(QF,{value:e.value,children:g(e)},e.value))})}),h.length===0?(0,L.jsx)(sI,{children:`No record found`}):null]})]})}var s8=e=>String(e).padStart(2,`0`),c8=e=>{let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r)},l8=e=>`${e.getFullYear()}-${s8(e.getMonth()+1)}-${s8(e.getDate())}`;function u8({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.type===`dateTime`,[s,c]=o8(a),l=o&&t!=null&&t!==``?new Date(t):null,u=o&&l&&!Number.isNaN(l.getTime())?l8(l):C6(t),d=l&&!Number.isNaN(l.getTime())?`${s8(l.getHours())}:${s8(l.getMinutes())}`:``,[f,p]=(0,b.useState)(null),m=(e,t=d)=>{if(!e)return n(null);if(!o)return n(e);let r=new Date(`${e}T${/^\d{2}:\d{2}$/.test(t)?t:`00:00`}`);n(Number.isNaN(r.getTime())?null:r.toISOString())},h=u?c8(u).toLocaleDateString(void 0,{year:`numeric`,month:`short`,day:`numeric`})+(o&&d?` ${d}`:``):``;return(0,L.jsxs)(RI,{open:s,onOpenChange:c,placement:`bottom-start`,children:[(0,L.jsx)(zI,{asChild:!0,children:(0,L.jsxs)(i8,{"aria-label":e.label,children:[(0,L.jsx)(Ej,{size:14,color:`$hint`}),h?(0,L.jsx)(H,{fontSize:`$2`,color:`$ink`,numberOfLines:1,children:h}):(0,L.jsx)(a8,{text:`Pick a date…`})]})}),(0,L.jsx)(BI,{size:`sm`,width:280,children:(0,L.jsx)(t8,{onSubmit:r,onCancel:i,children:(0,L.jsxs)(z,{gap:`$2`,children:[(0,L.jsxs)(B,{gap:`$1`,children:[(0,L.jsx)(NI,{"aria-label":`${e.label}, as YYYY-MM-DD`,size:`sm`,flex:1,value:f??u,placeholder:`YYYY-MM-DD`,onChangeText:e=>{p(e),/^\d{4}-\d{2}-\d{2}$/.test(e)&&!Number.isNaN(c8(e).getTime())?m(e):e===``&&m(``)},onBlur:()=>p(null)}),o?(0,L.jsx)(NI,{"aria-label":`${e.label}, time`,size:`sm`,width:72,value:d,placeholder:`HH:mm`,onChangeText:e=>{/^\d{2}:\d{2}$/.test(e)&&m(u||l8(new Date),e)}}):null]}),(0,L.jsx)(Ile,{mode:`single`,selected:u?c8(u):void 0,defaultMonth:u?c8(u):void 0,onSelect:e=>{m(e?l8(e):``),o||c(!1)}}),u?(0,L.jsx)(q,{size:`xs`,variant:`ghost`,emphasis:`subtle`,onPress:()=>{m(``),c(!1)},children:`Clear`}):null]})})})]})}function Qhe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=k6(t),[s,c]=(0,b.useState)(``);return(0,L.jsxs)(z,{gap:`$1`,width:`100%`,minW:0,children:[o.map((e,t)=>(0,L.jsxs)(B,{items:`center`,gap:`$2`,minH:24,children:[(0,L.jsx)(H,{flex:1,minW:0,fontSize:`$2`,color:`$ink`,numberOfLines:1,children:e.label?.trim()||A6(e.url)}),(0,L.jsx)(q,{size:`icon-2xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Remove ${e.label?.trim()||A6(e.url)}`,onPress:()=>n(o.filter((e,n)=>n!==t)),children:(0,L.jsx)(MM,{})})]},`${e.url}-${t}`)),(0,L.jsx)(t8,{onSubmit:()=>{let e=s.trim();if(!e)return r?.();n([...o,{url:e}]),c(``)},onCancel:i,children:(0,L.jsx)(NI,{"aria-label":`Add to ${e.label}`,type:`url`,inputMode:`url`,value:s,onChangeText:c,placeholder:`Add a link`,autoFocus:a})})]})}function $he({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=w6(t),s=(e,t)=>n(!e?.trim()&&!t?.trim()?null:{first:e??``,last:t??``});return(0,L.jsx)(t8,{onSubmit:r,onCancel:i,children:(0,L.jsxs)(B,{gap:`$1`,children:[(0,L.jsx)(NI,{"aria-label":`${e.label}, first name`,flex:1,value:o.first??``,placeholder:`First name`,autoFocus:a,onChangeText:e=>{let t=w6(e);t.last&&!o.last&&e.includes(` `)?s(t.first,t.last):s(e,o.last)}}),(0,L.jsx)(NI,{"aria-label":`${e.label}, last name`,flex:1,value:o.last??``,placeholder:`Last name`,onChangeText:e=>s(o.first,e)})]})})}var d8={street1:`Address 1`,street2:`Address 2`,city:`City`,state:`State`,postcode:`Post code`,country:`Country`};function ege({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=(e.metadata??{}).defaultCountry,s=D6(t),c=(0,b.useMemo)(()=>Q6().map(e=>({value:e.value,label:e.label})),[]),l=(e,t)=>{let r={...s,[e]:t??void 0};t||delete r[e],n(Object.keys(r).length?r:null)};return(0,L.jsx)(t8,{onSubmit:r,onCancel:i,children:(0,L.jsxs)(z,{gap:`$1`,width:344,maxW:`100%`,children:[[`street1`,`street2`].map((e,t)=>(0,L.jsx)(NI,{"aria-label":d8[e],placeholder:d8[e],value:s[e]??``,autoFocus:a&&t===0,onChangeText:t=>l(e,t)},e)),(0,L.jsxs)(B,{gap:`$1`,children:[(0,L.jsx)(NI,{"aria-label":d8.city,placeholder:d8.city,flex:1,value:s.city??``,onChangeText:e=>l(`city`,e)}),(0,L.jsx)(NI,{"aria-label":d8.state,placeholder:d8.state,flex:1,value:s.state??``,onChangeText:e=>l(`state`,e)})]}),(0,L.jsxs)(B,{gap:`$1`,children:[(0,L.jsx)(NI,{"aria-label":d8.postcode,placeholder:d8.postcode,flex:1,value:s.postcode??``,onChangeText:e=>l(`postcode`,e)}),(0,L.jsx)(z,{flex:1,minW:0,children:(0,L.jsx)(Wde,{"aria-label":d8.country,countries:c,value:(s.country&&/^[A-Za-z]{2}$/.test(s.country)?s.country.toUpperCase():null)??o?.toUpperCase()??null,onValueChange:e=>l(`country`,e)})})]})]})})}function tge({value:e,onChange:t}){let n=S6(e),r=e=>typeof e==`string`?e:b6(e?.label??e?.name??`file`);return(0,L.jsxs)(z,{gap:`$2`,children:[typeof document<`u`?(0,L.jsx)(q,{size:`sm`,variant:`outline`,startIcon:(0,L.jsx)(DM,{}),onPress:()=>{if(typeof document>`u`)return;let e=document.createElement(`input`);e.type=`file`,e.multiple=!0,e.onchange=()=>t(e.files?[...n,...Array.from(e.files)]:n),e.click()},self:`flex-start`,children:`Choose files`}):(0,L.jsx)(H,{fontSize:`$2`,color:`$hint`,children:`File upload is available on the web.`}),n.length>0?(0,L.jsx)(B,{gap:`$1`,flexWrap:`wrap`,children:n.map((e,i)=>(0,L.jsxs)(B,{items:`center`,gap:`$1`,height:24,pl:`$2`,pr:`$1`,rounded:`$xs`,bg:`$hover`,children:[(0,L.jsx)(H,{fontSize:`$2`,color:`$ink`,numberOfLines:1,maxW:160,children:r(e)}),(0,L.jsx)(q,{size:`icon-2xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Remove ${r(e)}`,onPress:()=>t(n.filter((e,t)=>t!==i)),children:(0,L.jsx)(MM,{})})]},`${r(e)}-${i}`))}):null]})}function nge(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function rge({field:e,value:t,onChange:n,onCancel:r}){let[i,a]=(0,b.useState)(()=>t==null?``:typeof t==`string`?t:nge(t));return(0,L.jsx)(z,{gap:`$1`,width:400,maxW:`100%`,onKeyDown:e=>e.key===`Escape`&&r?.(),children:(0,L.jsx)(cde,{label:e.label,language:`json`,value:i,minHeight:120,maxHeight:300,onChange:e=>{a(e);let t=P1(e);t.kind===`empty`?n(null):t.kind===`json`&&n(t.value)}})})}var f8=!1;function p8(){f8||(f8=!0,_6(`text`,{Display:fhe,Input:Bhe}),_6(`longText`,{Display:phe,Input:r8}),_6(`richText`,{Display:mhe,Input:r8}),_6(`number`,{Display:G6,Input:Whe}),_6(`percent`,{Display:bhe,Input:Ghe}),_6(`currency`,{Display:xhe,Input:Khe}),_6(`boolean`,{Display:Che,Input:Jhe}),_6(`select`,{Display:whe,Input:Yhe}),_6(`multiSelect`,{Display:The,Input:Xhe}),_6(`date`,{Display:Dhe,Input:u8}),_6(`dateTime`,{Display:Ohe,Input:u8}),_6(`email`,{Display:hhe,Input:Vhe}),_6(`url`,{Display:ghe,Input:Hhe}),_6(`phone`,{Display:vhe,Input:Uhe}),_6(`rating`,{Display:She,Input:qhe}),_6(`links`,{Display:_he,Input:Qhe}),_6(`relation`,{Display:Ahe,Input:Zhe}),_6(`json`,{Display:J6,Input:rge}),_6(`files`,{Display:Ihe,Input:tge}),_6(`uuid`,{Display:Fhe}),_6(`fullName`,{Display:Nhe,Input:$he}),_6(`address`,{Display:Phe,Input:ege}),_6(`position`,{Display:G6}),_6(`actor`,{Display:Mhe}))}p8();function m8(e){let t=v6(e.field.type)?.Display??Lhe;return(0,L.jsx)(t,{...e})}function h8(e){let t=v6(e.field.type)?.Input;return t?(0,L.jsx)(t,{...e}):null}function g8(e){return!!v6(e)?.Input}function _8({trigger:e,children:t,open:n,onOpenChange:r,placement:i=`bottom-start`,width:a=240,maxHeight:o=320,header:s}){return(0,L.jsxs)(RI,{placement:i,open:n,onOpenChange:r,allowFlip:!0,children:[(0,L.jsx)(zI,{asChild:!0,children:e}),(0,L.jsxs)(BI,{size:`sm`,p:0,gap:0,width:a,overflow:`hidden`,children:[s?(0,L.jsx)(z,{p:`$1`,borderBottomWidth:1,borderColor:`$borderColor`,children:s}):null,(0,L.jsx)(GE,{style:{maxHeight:o},children:(0,L.jsx)(z,{p:`$1`,gap:2,children:t})})]})]})}function v8({children:e,onPress:t,active:n,icon:r,trailing:i,tone:a=`default`}){return(0,L.jsxs)(B,{role:`menuitem`,tabIndex:0,onPress:t,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault?.(),t?.())},cursor:`pointer`,items:`center`,gap:`$2`,minH:32,px:`$2`,rounded:`$xs`,bg:n?`$hover`:`transparent`,hoverStyle:{bg:a===`danger`?`var(--state-error-bg)`:`$hover`},focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},children:[r?(0,L.jsx)(B,{items:`center`,justify:`center`,shrink:0,children:r}):null,(0,L.jsx)(z,{flex:1,minW:0,children:typeof e==`string`?(0,L.jsx)(H,{fontSize:`$2`,color:a===`danger`?`$bad`:`$aside`,numberOfLines:1,children:e}):e}),i??null]})}function y8({checked:e,indeterminate:t,onChange:n,size:r=16,label:i}){return(0,L.jsx)(eF,{size:r>16?`md`:`sm`,variant:`solid`,hoverable:!0,checked:t?`indeterminate`:!!e,onCheckedChange:()=>n?.(t?!0:!e),"aria-label":i??(t?`Select all`:`Select`)})}var b8=e=>e==null?``:String(e),x8=e=>{if(e==null||e===``)return null;if(typeof e==`object`&&!Array.isArray(e)&&`amount`in e)return x8(e.amount);let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t:null},S8=e=>Array.isArray(e)?e:e==null?[]:[e],ige=864e5,age=e=>typeof e==`string`&&/^\d{4}-\d{2}-\d{2}$/.test(e.trim()),C8=e=>{if(e==null||e===``)return null;let t=(e instanceof Date?e:new Date(e)).getTime();return Number.isNaN(t)?null:t},w8=(e,t)=>(e?.metadata?.options)?.find(e=>e.value===t)?.label??t;function oge(e,t){let n=e?.metadata?.labelField??`name`;if(typeof t==`string`)return t;if(t&&typeof t==`object`){let e=t;return b8(e[n]??e.label??e.name??e.id)}return``}function T8(e,t){switch(e?.type){case`number`:case`percent`:case`rating`:case`position`:return x8(t);case`currency`:{let e=t??{};return x8(typeof e==`object`&&e?e.amount:t)}case`boolean`:return+(t===!0||t===`true`||t===1);case`date`:case`dateTime`:return C8(t);case`select`:return t==null||t===``?null:w8(e,b8(t)).toLowerCase();case`multiSelect`:return S8(t).map(t=>w8(e,b8(t))).join(`, `).toLowerCase()||null;case`relation`:return oge(e,t).toLowerCase()||null;case`links`:return S8(t).map(e=>typeof e==`string`?e:e?.url??``).join(`, `).toLowerCase()||null;case`fullName`:return T6(t).toLowerCase()||null;case`address`:return O6(t).toLowerCase()||null;case`phone`:return P6(N6(t)).toLowerCase()||null;case`email`:return M6(t).join(`, `).toLowerCase()||null;case`actor`:return F6(t)?.name.toLowerCase()||null;case`richText`:return I6(t).toLowerCase()||null;default:{let e=b8(t);return e===``?null:e.toLowerCase()}}}var E8=(e,t)=>e.find(e=>e.name===t);function sge(e,t){return typeof e==`number`&&typeof t==`number`?e-t:String(e).localeCompare(String(t))}function cge(e,t,n){return t.length===0?e.slice():e.map((e,t)=>[e,t]).sort(([e,r],[i,a])=>{for(let r of t){let t=E8(n,r.field),a=T8(t,e[r.field]),o=T8(t,i[r.field]);if(a===null&&o===null)continue;if(a===null)return 1;if(o===null)return-1;let s=sge(a,o);if(s!==0)return r.dir===`asc`?s:-s}return r-a}).map(([e])=>e)}function lge(e,t){let n=e.length===1&&e[0].field===t?e[0]:void 0;return n?n.dir===`asc`?[{field:t,dir:`desc`}]:[]:[{field:t,dir:`asc`}]}function uge(e,t){return e.find(e=>e.field===t)?.dir}function D8(e){let t=Array.isArray(e)?e:[],n=e=>e==null||e===``?void 0:e;return[n(t[0]),n(t[1])]}function O8(e){return e.op===`isEmpty`||e.op===`isNotEmpty`?!0:e.op===`between`?D8(e.value).some(e=>e!==void 0):e.op===`isAnyOf`?Array.isArray(e.value)&&e.value.length>0:e.value!=null&&e.value!==``}var k8={contains:`contains`,notContains:`does not contain`,is:`is`,isNot:`is not`,gt:`is greater than`,gte:`is at least`,lt:`is less than`,lte:`is at most`,isEmpty:`is empty`,isNotEmpty:`is not empty`,isAnyOf:`is any of`,between:`is between`},dge=[`contains`,`notContains`,`is`,`isNot`,`isEmpty`,`isNotEmpty`],fge=[`is`,`isNot`,`between`,`gt`,`gte`,`lt`,`lte`,`isEmpty`,`isNotEmpty`],pge=[`is`,`isNot`,`isAnyOf`,`isEmpty`,`isNotEmpty`],mge=[`is`];function A8(e){switch(e){case`number`:case`percent`:case`currency`:case`rating`:case`date`:case`dateTime`:return fge;case`select`:case`multiSelect`:case`relation`:return pge;case`boolean`:return mge;default:return dge}}var j8=(e,t)=>t==null||t===``?!0:Array.isArray(t)?t.length===0:e?.type===`currency`&&x8(t?.amount)==null,hge=e=>e===`number`||e===`percent`||e===`currency`||e===`rating`||e===`date`||e===`dateTime`;function gge(e,t){if(e?.type===`multiSelect`)return S8(t).map(b8).filter(e=>e!==``);if(e?.type===`relation`){let e=_ge(t);return e?[e]:[]}let n=b8(t);return n===``?[]:[n]}var _ge=e=>{if(typeof e==`string`)return e;if(e&&typeof e==`object`){let t=e;return b8(t.id??t.value??``)}return``};function vge(e,t,n){if(n.op===`isEmpty`)return j8(e,t);if(n.op===`isNotEmpty`)return!j8(e,t);let r=e?.type;if(r===`boolean`){let e=t===!0||t===`true`||t===1,r=n.value===!0||n.value===`true`||n.value===1;return n.op===`isNot`?e!==r:e===r}if(r===`select`||r===`multiSelect`||r===`relation`){let r=new Set(gge(e,t));if(n.op===`isAnyOf`){let e=new Set((Array.isArray(n.value)?n.value:[]).map(b8));return e.size===0||[...r].some(t=>e.has(t))}let i=b8(n.value);return n.op===`is`?r.has(i):n.op!==`isNot`||!r.has(i)}if(hge(r)){let i=T8(e,t),a=typeof i==`number`?i:null,o=r===`date`||r===`dateTime`,s=e=>o?C8(e):x8(e);if(n.op===`between`){let[e,t]=D8(n.value),r=e===void 0?null:s(e),i=t===void 0?null:s(t);if(a==null)return!1;let c=i!=null&&o&&age(t)?i+ige-1:i;return(r==null||a>=r)&&(c==null||a<=c)}let c=s(n.value);if(a==null||c==null)return n.op===`isNot`;switch(n.op){case`is`:return a===c;case`isNot`:return a!==c;case`gt`:return a>c;case`gte`:return a>=c;case`lt`:return a<c;case`lte`:return a<=c;default:return!0}}let i=b8(T8(e,t)),a=b8(n.value).toLowerCase();switch(n.op){case`contains`:return i.includes(a);case`notContains`:return!i.includes(a);case`is`:return i===a;case`isNot`:return i!==a;default:return!0}}function yge(e,t,n,r=`and`){let i=t.filter(O8);if(i.length===0)return e.slice();let a=e=>t=>vge(E8(n,t.field),e[t.field],t);return e.filter(e=>r===`or`?i.some(a(e)):i.every(a(e)))}function bge(e,t,n){let r=t.trim().toLowerCase();return r?e.filter(e=>n.some(t=>{let n=T8(t,e[t.name]);return n!=null&&String(n).toLowerCase().includes(r)})):e.slice()}function xge(e,t,n){let r=e.length,i=Math.max(1,Math.ceil(r/n)),a=Math.min(Math.max(1,t),i),o=(a-1)*n,s=e.slice(o,o+n);return{items:s,page:a,pageCount:i,total:r,from:r===0?0:o+1,to:o+s.length}}function Sge(e,t,n){let r=e.filter(e=>!n?.has(e.name));if(!t||t.length===0)return r;let i=new Map(r.map(e=>[e.name,e])),a=[];for(let e of t){let t=i.get(e);t&&(a.push(t),i.delete(e))}for(let e of r)i.has(e.name)&&a.push(e);return a}var Cge=new Set([`boolean`,`select`,`multiSelect`,`date`,`dateTime`,`relation`,`rating`,`files`]),M8=80,wge={regular:{row:44,pad:12,select:44},compact:{row:32,pad:8,select:28}};function Tge(e){let{fields:t,records:n,getRowKey:r,loading:i,empty:a=`No records yet.`,sorts:o=[],onSortChange:s,onOpen:c,selectable:l,onSelectionChange:u,bulkActions:d,editable:f,onEditCommit:p,fieldOptions:m,columnOrder:h,onColumnOrderChange:g,hiddenFields:_,pageSize:v=25,remote:y}=e,x=wge[NN()],S=e.rowHeight??x.row,C=x.select,w=(0,b.useMemo)(()=>new Set(_??[]),[_]),[T,E]=(0,b.useState)(h);(0,b.useEffect)(()=>{h&&E(h)},[h]);let D=(0,b.useMemo)(()=>Sge(t,T,w),[t,T,w]),[O,k]=(0,b.useState)({}),[A,j]=(0,b.useState)(new Set),[ee,M]=(0,b.useState)(null),[te,ne]=(0,b.useState)(void 0),[N,P]=(0,b.useState)(null),[re,ie]=(0,b.useState)(1),ae=(0,b.useCallback)((e,t)=>r?r(e,t):e.id==null?String(t):String(e.id),[r]),oe=(0,b.useMemo)(()=>{if(y){let e=v>0?v:Math.max(1,n.length),t=y.total===0||n.length===0?0:(y.page-1)*e+1;return{items:n,page:y.page,pageCount:Math.max(1,Math.ceil(y.total/e)),total:y.total,from:t,to:t===0?0:t+n.length-1}}return v>0?xge(n,re,v):{items:n,page:1,pageCount:1,total:n.length,from:+!!n.length,to:n.length}},[n,re,v,y]);(0,b.useEffect)(()=>{!y&&re>oe.pageCount&&ie(oe.pageCount)},[y,re,oe.pageCount]);let se=e=>{let t=Math.min(Math.max(1,e),oe.pageCount);y?y.onPage(t):ie(t)},ce=(0,b.useCallback)(e=>{j(e),u?.([...e])},[u]),le=oe.items.map((e,t)=>ae(e,t)),ue=le.length>0&&le.every(e=>A.has(e)),de=le.some(e=>A.has(e)),fe=()=>{let e=new Set(A);ue?le.forEach(t=>e.delete(t)):le.forEach(t=>e.add(t)),ce(e)},pe=e=>{let t=new Set(A);t.has(e)?t.delete(e):t.add(e),ce(t)},me=e=>s?.(lge(o,e)),he=(0,b.useRef)([]),[ge,F]=(0,b.useState)(null),_e=(e,t)=>n=>{let r=n.clientX??n.nativeEvent?.clientX??0,i=t?.getBoundingClientRect().width??M8,a=t=>k(n=>({...n,[e]:Math.max(M8,i+(t.clientX-r))})),o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o)};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)},I=e=>t=>{if(!g&&h)return;let n=he.current.map(e=>e?.getBoundingClientRect()??null),r=t.clientX??t.nativeEvent?.clientX??0;F({from:e,x:r,target:e});let i=t=>{let r=n.length-1;for(let e=0;e<n.length;e++){let i=n[e];if(i&&t.clientX<i.left+i.width/2){r=e;break}}F({from:e,x:t.clientX,target:r})},a=()=>{window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a),F(e=>{if(e&&e.target!==e.from){let t=D.map(e=>e.name),[n]=t.splice(e.from,1);t.splice(e.target,0,n),E(t),g?.(t)}return null})};window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a)},ve=(e,t,n)=>{f&&!t.readOnly&&g8(t.type)&&(M({key:e,field:t.name}),ne(n))},ye=()=>{M(null),ne(void 0)},be=(0,b.useCallback)(async(e,t,n)=>{let r=`${ee?.key}:${t.name}`;if(M(null),ne(void 0),p)try{P(r),await p(e,t,n)}finally{P(null)}},[ee,p]),xe=!f&&!!c,Se=(l?C:0)+D.reduce((e,t)=>e+(O[t.name]??t.width??160),0),Ce=e=>{let t=O[e.name]??e.width;return t?{width:t}:{flex:1,minW:140}},we={borderBottomWidth:1,borderColor:`$borderColor`};return(0,L.jsxs)(z,{"data-slot":`data-table`,rounded:`$3`,overflow:`hidden`,borderWidth:1,borderColor:`$borderColor`,bg:`$background`,children:[l&&A.size>0?(0,L.jsxs)(B,{items:`center`,justify:`space-between`,px:x.pad,py:`$2`,bg:`$panel`,...we,children:[(0,L.jsx)(H,{fontSize:`$2`,fontWeight:`600`,color:`$ink`,children:`${A.size} selected`}),(0,L.jsxs)(B,{items:`center`,gap:`$2`,children:[d?.([...A]),(0,L.jsx)(q,{size:`xs`,variant:`ghost`,emphasis:`subtle`,onPress:()=>ce(new Set),children:`Clear`})]})]}):null,(0,L.jsxs)(z,{role:`table`,"aria-rowcount":oe.total+1,style:{minWidth:Se},children:[(0,L.jsxs)(B,{bg:`$panel`,minH:S,...we,role:`row`,children:[l?(0,L.jsx)(B,{width:C,items:`center`,justify:`center`,shrink:0,role:`columnheader`,children:(0,L.jsx)(y8,{checked:ue,indeterminate:!ue&&de,onChange:fe,label:`Select all rows`})}):null,D.map((e,t)=>{let n=uge(o,e.name),r=ge&&ge.target===t&&ge.from!==t;return(0,L.jsxs)(B,{...Ce(e),role:`columnheader`,"aria-sort":n===`asc`?`ascending`:n===`desc`?`descending`:void 0,items:`center`,gap:`$1`,px:x.pad,borderLeftWidth:r?2:0,borderLeftColor:`var(--primary)`,opacity:ge?.from===t?.5:1,ref:e=>{he.current[t]=e},style:{position:`relative`},children:[(0,L.jsxs)(B,{items:`center`,gap:`$1`,flex:1,minW:0,cursor:`pointer`,onPress:()=>me(e.name),onPointerDown:I(t),children:[(0,L.jsx)(H,{fontSize:`$2`,fontWeight:`500`,numberOfLines:1,color:`$aside`,children:e.label}),n===`asc`?(0,L.jsx)(yj,{size:12,color:`$hint`}):n===`desc`?(0,L.jsx)(gj,{size:12,color:`$hint`}):s?(0,L.jsx)(Mj,{size:12,color:`$hush`}):null]}),(0,L.jsx)(z,{width:8,height:`100%`,cursor:`col-resize`,onPointerDown:_e(e.name,he.current[t]),style:{position:`absolute`,right:-4,top:0,zIndex:2}})]},e.name)})]}),i?(0,L.jsx)(B,{role:`row`,children:(0,L.jsxs)(B,{flex:1,px:`$4`,py:`$6`,items:`center`,justify:`center`,gap:`$2`,role:`cell`,"aria-live":`polite`,children:[(0,L.jsx)(vA,{size:`small`,"aria-hidden":!0}),(0,L.jsx)(H,{fontSize:`$2`,color:`$hint`,children:`Loading…`})]})}):oe.items.length===0?(0,L.jsx)(B,{role:`row`,children:(0,L.jsx)(z,{flex:1,px:`$4`,py:`$7`,items:`center`,gap:`$1`,role:`cell`,children:typeof a==`string`?(0,L.jsx)(H,{fontSize:`$2`,color:`$hint`,children:a}):a})}):oe.items.map((e,t)=>{let n=ae(e,t),r=A.has(n);return(0,L.jsxs)(B,{group:!0,role:`row`,"aria-selected":l?r:void 0,items:`stretch`,cursor:xe?`pointer`:void 0,onPress:xe?()=>c?.(e):void 0,bg:r?`$hover`:`transparent`,hoverStyle:{bg:`$hover`},minH:S,...we,children:[l?(0,L.jsx)(B,{width:C,items:`center`,justify:`center`,shrink:0,role:`cell`,children:(0,L.jsx)(y8,{checked:r,onChange:()=>pe(n),label:`Select row ${oe.from+t}`})}):null,D.map((t,r)=>{let i=f&&ee?.key===n&&ee.field===t.name,a=f&&!t.readOnly&&g8(t.type),o=`${n}:${t.name}`,s=m?.(t)?{...t,metadata:{...t.metadata,options:m(t)}}:t;return(0,L.jsxs)(B,{...Ce(t),role:`cell`,items:`center`,px:x.pad,minW:0,style:{position:`relative`},children:[i?(0,L.jsx)(z,{flex:1,minW:0,py:`$1`,onPress:e=>e.stopPropagation?.(),children:(0,L.jsx)(h8,{field:s,value:te,autoFocus:!0,onChange:n=>Cge.has(t.type)?void be(e,t,n):ne(n),onSubmit:()=>void be(e,t,te),onCancel:ye})}):(0,L.jsxs)(B,{flex:1,minW:0,items:`center`,gap:`$1`,minH:S-8,cursor:a?`text`:void 0,onPress:a?()=>ve(n,t,e[t.name]):void 0,hoverStyle:a?{bg:`$raised`}:void 0,rounded:`$xs`,px:a?`$1`:0,mx:a?-4:0,overflow:`hidden`,children:[(0,L.jsx)(m8,{field:t,value:e[t.name]}),N===o?(0,L.jsx)(vA,{size:`small`,"aria-hidden":!0}):null]}),r===0&&c&&f&&!i?(0,L.jsx)(B,{position:`absolute`,r:x.pad/2,opacity:0,"$group-hover":{opacity:1},focusWithinStyle:{opacity:1},children:(0,L.jsx)(LN,{framed:!0,size:`icon-2xs`,variant:`ghost`,children:(0,L.jsx)(q,{size:`icon-2xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Open record`,onPress:()=>c(e),children:(0,L.jsx)(Goe,{})})})}):null]},t.name)})]},n)})]}),!i&&v>0&&oe.total>0?(0,L.jsxs)(B,{items:`center`,justify:`space-between`,px:x.pad,py:`$1`,bg:`$panel`,borderTopWidth:1,borderColor:`$borderColor`,children:[(0,L.jsx)(H,{fontSize:`$1`,color:`$hint`,children:`${oe.from.toLocaleString()}–${oe.to.toLocaleString()} of ${oe.total.toLocaleString()}`}),(0,L.jsxs)(B,{items:`center`,gap:`$1`,children:[(0,L.jsx)(q,{size:`icon-xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Previous page`,disabled:oe.page<=1,onPress:()=>se(oe.page-1),children:(0,L.jsx)(kj,{})}),(0,L.jsx)(H,{fontSize:`$1`,px:`$1`,color:`$hint`,children:`${oe.page.toLocaleString()} / ${oe.pageCount.toLocaleString()}`}),(0,L.jsx)(q,{size:`icon-xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Next page`,disabled:oe.page>=oe.pageCount,onPress:()=>se(oe.page+1),children:(0,L.jsx)(Aj,{})})]})]}):null]})}var Ege=`red.ruby.crimson.tomato.orange.amber.yellow.lime.grass.green.jade.mint.teal.cyan.sky.blue.iris.violet.purple.plum.pink.bronze.gold.brown.gray.mauve.olive.sage.sand.slate`.split(`.`),Dge=e=>({bg:`var(--data-${e}-3)`,fg:`var(--data-${e}-11)`,border:`var(--data-${e}-6)`});Object.fromEntries(Ege.map(e=>[e,Dge(e)]));var N8={text:`#f4f4f5`,textMuted:`#a1a1aa`,textFaint:`#71717a`,surface:`#09090b`,surfaceRaised:`#0a0a0a`,border:`#27272a`,hover:`#18181b`,accent:`#60a5fa`,danger:`#fca5a5`},Oge=R(z,{name:`Card`,backgroundColor:`$background`,position:`relative`,borderRadius:`$true`}),P8={header:32,check:24,value:156,icon:16,rows:2};function F8(e){return NN()===`compact`?(0,L.jsx)(Age,{...e}):(0,L.jsx)(jge,{...e})}var I8=(e,t,n)=>{let r=e??t[0]?.name,i=r==null?void 0:n[r];return{name:r,text:i==null||i===``?`Untitled`:String(i)}},kge=e=>{let t=e?.target;return!!(t instanceof Element&&t.closest(`button, a, [role="button"], [role="checkbox"], [role="link"]`))};function Age({titleField:e,fields:t,record:n,onPress:r,selected:i=!1,onSelectedChange:a,active:o=!1,fieldIcons:s,imageField:c,drag:l}){let[u,d]=(0,b.useState)(!1),[f,p]=(0,b.useState)(!1),m=I8(e,t,n),h=t.filter(e=>e.name!==m.name&&e.name!==c),g=n.id==null?m.text:String(n.id),_=c?n[c]:void 0,v=r?()=>r(n):void 0,y=a&&(u||i);return(0,L.jsxs)(z,{"data-slot":`record-card`,"data-selected":i?``:void 0,"data-active":o?``:void 0,bg:i||o||f?`$hover`:`$panel`,borderWidth:1,borderColor:o?`$rim`:`$borderColor`,hoverStyle:{borderColor:`$rim`},rounded:`$xs`,overflow:`hidden`,cursor:v?`pointer`:void 0,opacity:l===`source`?.3:1,scale:l===`preview`?1.02:1,onHoverIn:()=>d(!0),onHoverOut:()=>d(!1),onFocus:()=>p(!0),onBlur:()=>p(!1),onPress:v?e=>kge(e)?void 0:v():void 0,children:[(0,L.jsxs)(B,{"data-slot":`record-card-header`,minH:P8.header,items:`center`,pt:`$2`,pr:`$2`,pb:`$1`,pl:`$2`,children:[(0,L.jsx)(B,{flex:1,minW:0,children:(0,L.jsx)(Z1,{size:`sm`,weight:`medium`,label:m.text,startElement:(0,L.jsx)(RP,{size:`sm`,shape:`rounded`,name:m.text,colorSeed:g,src:_??null}),...v?{onPress:v}:null})}),a?(0,L.jsx)(B,{"data-slot":`record-card-check`,height:20,width:y?P8.check:0,$touchable:{width:P8.check},overflow:`hidden`,justify:`flex-end`,items:`center`,shrink:0,style:{transition:`width 160ms var(--ease-out, ease)`},children:(0,L.jsx)(eF,{variant:`outline`,checked:i,onCheckedChange:e=>a(e===!0),"aria-label":`Select ${m.text}`})}):null]}),h.length?(0,L.jsx)(z,{"data-slot":`record-card-body`,gap:P8.rows,pt:0,pr:`$2`,pb:`$2`,pl:10,children:h.map(e=>(0,L.jsxs)(B,{items:`center`,gap:`$2`,minH:24,children:[s?.[e.name]?(0,L.jsx)(B,{width:P8.icon,height:P8.icon,items:`center`,justify:`center`,shrink:0,children:s[e.name]}):(0,L.jsx)(H,{fontSize:`$1`,color:`$hint`,numberOfLines:1,shrink:0,children:e.label}),(0,L.jsx)(z,{flex:1,minW:0,maxW:P8.value,children:(0,L.jsx)(m8,{field:e,value:n[e.name]})})]},e.name))}):null]})}function jge({titleField:e,fields:t,record:n,onPress:r}){let i=I8(e,t,n),a=t.filter(e=>e.name!==i.name);return(0,L.jsxs)(Oge,{p:12,gap:8,borderWidth:1,rounded:8,cursor:r?`pointer`:void 0,hoverStyle:r?{bg:N8.hover}:void 0,onPress:r?()=>r(n):void 0,style:{backgroundColor:N8.surface,borderColor:N8.border},children:[(0,L.jsx)(H,{fontSize:14,fontWeight:`700`,numberOfLines:1,style:{color:N8.text},children:i.text}),a.map(e=>(0,L.jsxs)(B,{gap:8,items:`center`,children:[(0,L.jsx)(H,{fontSize:11,numberOfLines:1,width:84,style:{color:N8.textFaint},children:e.label}),(0,L.jsx)(z,{flex:1,children:(0,L.jsx)(m8,{field:e,value:n[e.name]})})]},e.name))]})}var L8=e=>e==null?``:String(e),Mge=new Set([`select`,`boolean`,`relation`]);function R8(e){return e.filter(e=>Mge.has(e.type))}function z8(e){let t=e.filter(e=>e.type===`select`);return t.length>0?t[0].name:R8(e)[0]?.name}function B8(e,t){if(e.type===`boolean`)return t==null||t===``?``:t===!0||t===`true`||t===1?`true`:`false`;if(e.type===`relation`){if(t&&typeof t==`object`){let e=t;return L8(e.id??e.value??``)}return L8(t)}return L8(t)}function Nge(e){if(e.type===`boolean`){let t=e.metadata??{};return[{key:`true`,label:t.trueLabel??`Yes`,color:`green`},{key:`false`,label:t.falseLabel??`No`,color:`gray`}]}return(e.metadata?.options??[]).map(e=>({key:e.value,label:e.label,color:e.color}))}function Pge(e,t,n={}){let r=n.includeEmpty??!0,i=Nge(t),a=[],o=new Map,s=new Map,c=(e,t,n)=>{s.has(e)||(s.set(e,[]),a.push(e),o.set(e,{label:t,color:n}))};r&&c(``,n.emptyLabel??`No ${t.label.toLowerCase()}`);for(let e of i)c(e.key,e.label,e.color);for(let i of e){let e=B8(t,i[t.name]);(e!==``||r)&&(s.has(e)||c(e,e||(n.emptyLabel??`No ${t.label.toLowerCase()}`)),s.get(e).push(i))}return a.filter(e=>!(e===``&&(s.get(e)?.length??0)===0&&i.length>0)).map(e=>({key:e,...o.get(e),records:s.get(e)??[]}))}function Fge(e,t){return e.type===`boolean`?{[e.name]:t===`true`}:{[e.name]:t===``?null:t}}var Ige=300,Lge=200;function Rge(e){let{fields:t,records:n,groupField:r,titleField:i,cardFields:a,onOpen:o,onRecordChange:s,onCreate:c,getRowKey:l}=e,{selectedIds:u,onSelectedChange:d,activeId:f,fieldIcons:p}=e,m=e=>l?l(e):String(e.id??``),h=NN()===`compact`,g=h?Lge:Ige,_=(e,t)=>h?{selected:u?.has(m(e))??!1,onSelectedChange:d?t=>d(e,t):void 0,active:f!=null&&f===m(e),fieldIcons:p,drag:t}:null,v=t.find(e=>e.name===r),[y,x]=(0,b.useState)({});(0,b.useEffect)(()=>{x({})},[n]);let S=(0,b.useRef)(null),C=(0,b.useRef)([]),[w,T]=(0,b.useState)(null),E=(0,b.useMemo)(()=>v?n.map(e=>y[m(e)]==null?e:{...e,[v.name]:y[m(e)]===``?null:y[m(e)]}):n,[n,y,v]),D=(0,b.useMemo)(()=>v?Pge(E,v):[],[E,v]);if(!v)return h?(0,L.jsx)(z,{p:`$5`,items:`center`,borderWidth:1,rounded:`$xs`,borderColor:`$borderColor`,bg:`$panel`,children:(0,L.jsx)(H,{fontSize:`$2`,color:`$hint`,children:`Pick a select or status field to group the board by.`})}):(0,L.jsx)(z,{p:24,items:`center`,borderWidth:1,rounded:10,style:{borderColor:N8.border,backgroundColor:N8.surface},children:(0,L.jsx)(H,{style:{color:N8.textFaint},children:`Pick a select or status field to group the board by.`})});let O=e=>t=>{if(!s)return;let n=m(e),r=B8(v,e[v.name]),i=C.current.map(e=>e?.getBoundingClientRect()??null),a=t.clientX??t.nativeEvent?.clientX??0,o=t.clientY??t.nativeEvent?.clientY??0;T({id:n,from:r,x:a,y:o,target:r});let c=e=>{let t=r;for(let n=0;n<i.length;n++){let a=i[n];if(a&&e.clientX>=a.left&&e.clientX<=a.right){t=D[n]?.key??r;break}}T({id:n,from:r,x:e.clientX,y:e.clientY,target:t})},l=()=>{window.removeEventListener(`pointermove`,c),window.removeEventListener(`pointerup`,l),T(t=>(t&&t.target!==t.from&&(x(e=>({...e,[t.id]:t.target})),Promise.resolve(s(e,Fge(v,t.target))).catch(()=>x(e=>{let n={...e};return delete n[t.id],n}))),null))};window.addEventListener(`pointermove`,c),window.addEventListener(`pointerup`,l)},k=w?E.find(e=>m(e)===w.id):void 0,A=()=>S.current?.getBoundingClientRect();return(0,L.jsxs)(z,{ref:e=>{S.current=e},style:{position:`relative`},children:[(0,L.jsx)(GE,{horizontal:!0,showsHorizontalScrollIndicator:!1,children:(0,L.jsx)(B,{gap:h?8:12,py:2,items:`flex-start`,children:D.map((e,n)=>{let r=w&&w.target===e.key&&w.from!==e.key,l=h?{gap:8,p:4,rounded:`$xs`,bg:r?`$hover`:`transparent`}:{gap:8,p:8,rounded:12,style:{backgroundColor:N8.surfaceRaised,borderWidth:1,borderColor:r?N8.accent:N8.border}};return(0,L.jsxs)(z,{"data-slot":`board-column`,width:g,ref:e=>{C.current[n]=e},...l,children:[h?(0,L.jsxs)(B,{items:`center`,justify:`space-between`,minH:24,px:4,children:[(0,L.jsxs)(B,{items:`center`,gap:`$2`,minW:0,children:[e.key===``?(0,L.jsx)(Y1,{variant:`outline`,borderStyle:`dashed`,color:`transparent`,children:e.label}):(0,L.jsx)(Y1,{color:e.color??`gray`,children:e.label}),(0,L.jsx)(H,{fontSize:`$1`,color:`$hint`,children:e.records.length})]}),c?(0,L.jsx)(q,{size:`icon-xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Add to ${e.label}`,onPress:()=>c(e.key),children:(0,L.jsx)(fM,{})}):null]}):(0,L.jsxs)(B,{items:`center`,justify:`space-between`,px:4,py:2,children:[(0,L.jsxs)(B,{items:`center`,gap:8,children:[e.key===``?(0,L.jsx)(H,{fontSize:13,fontWeight:`700`,style:{color:N8.textMuted},children:e.label}):(0,L.jsx)(V6,{label:e.label,color:e.color}),(0,L.jsx)(H,{fontSize:12,style:{color:N8.textFaint},children:e.records.length})]}),c?(0,L.jsx)(z,{cursor:`pointer`,p:3,rounded:6,hoverStyle:{bg:N8.hover},onPress:()=>c(e.key),children:(0,L.jsx)(fM,{size:14,color:N8.textMuted})}):null]}),(0,L.jsxs)(z,{gap:8,style:{minHeight:40},children:[e.records.map(e=>{let n=w?.id===m(e);return(0,L.jsx)(z,{onPointerDown:O(e),style:{opacity:n&&!h?.35:1,cursor:s?`grab`:void 0},children:(0,L.jsx)(F8,{titleField:i,fields:a??t.filter(e=>e.name!==v.name),record:e,onPress:o,..._(e,n?`source`:void 0)})},m(e))}),e.records.length===0?h?(0,L.jsx)(z,{items:`center`,justify:`center`,py:`$4`,rounded:`$xs`,borderWidth:1,borderStyle:`dashed`,borderColor:`$borderColor`,children:(0,L.jsx)(H,{fontSize:`$1`,color:`$hint`,children:`Drop here`})}):(0,L.jsx)(z,{items:`center`,justify:`center`,py:16,rounded:8,style:{borderWidth:1,borderColor:N8.border,borderStyle:`dashed`},children:(0,L.jsx)(H,{fontSize:12,style:{color:N8.textFaint},children:`Drop here`})}):null]})]},e.key||`∅`)})})}),w&&k?(0,L.jsx)(z,{width:g-(h?8:20),style:{position:`absolute`,left:w.x-(A()?.left??0)-(g-(h?8:20))/2,top:w.y-(A()?.top??0)-20,pointerEvents:`none`,zIndex:50,...h?null:{transform:[{rotate:`2deg`}],boxShadow:`0 12px 32px rgba(0,0,0,0.4)`}},...h?{className:`elevation-2`}:null,children:(0,L.jsx)(F8,{titleField:i,fields:a??t.filter(e=>e.name!==v.name),record:k,..._(k,`preview`)})}):null]})}var zge=new Set([`boolean`,`select`,`multiSelect`,`date`,`dateTime`,`relation`,`rating`,`files`]),Bge=({children:e})=>(0,L.jsx)(H,{fontSize:`$1`,fontWeight:`500`,color:`$hint`,numberOfLines:1,children:e});function Vge({field:e,value:t,editable:n,onCommit:r,options:i}){let[a,o]=(0,b.useState)(!1),[s,c]=(0,b.useState)(t),l=n&&!e.readOnly&&g8(e.type)&&!!r,u=i?{...e,metadata:{...e.metadata,options:i}}:e,d=e=>{o(!1),r?.(e)};return(0,L.jsxs)(z,{gap:`$1`,py:`$2`,borderBottomWidth:1,borderColor:`$borderColor`,children:[(0,L.jsx)(Bge,{children:e.label}),a?(0,L.jsx)(h8,{field:u,value:s,autoFocus:!0,onChange:t=>zge.has(e.type)?d(t):c(t),onSubmit:()=>d(s),onCancel:()=>{c(t),o(!1)}}):(0,L.jsx)(B,{items:`center`,minH:24,minW:0,cursor:l?`text`:void 0,rounded:`$xs`,px:l?`$1`:0,mx:l?-4:0,hoverStyle:l?{bg:`$hover`}:void 0,...l?{role:`button`,tabIndex:0,"aria-label":`Edit ${e.label}`}:null,onKeyDown:l?e=>{e.key===`Enter`&&(e.preventDefault?.(),c(t),o(!0))}:void 0,onPress:l?()=>{c(t),o(!0)}:void 0,children:(0,L.jsx)(m8,{field:e,value:t})})]})}function Hge({fields:e,record:t,title:n,editable:r,onEditCommit:i,fieldOptions:a,related:o}){return(0,L.jsxs)(z,{gap:2,children:[n?(0,L.jsx)(z,{pb:`$3`,mb:`$1`,borderBottomWidth:1,borderColor:`$borderColor`,children:(0,L.jsx)(H,{fontSize:`$7`,fontWeight:`600`,numberOfLines:2,color:`$ink`,children:n})}):null,e.map(e=>(0,L.jsx)(Vge,{field:e,value:t[e.name],editable:r,onCommit:i?t=>i(e,t):void 0,options:a?.(e)},e.name)),o?(0,L.jsx)(z,{pt:`$4`,gap:`$2`,children:o}):null]})}function Uge(e,t=`default`,n=e===`board`?`Board`:`All records`){return{id:t,name:n,kind:e,filters:[],sorts:[]}}function Wge(e,t,n){let r=e;return t.search&&t.search.trim()&&(r=bge(r,t.search,n)),r=yge(r,t.filters,n,t.match),r=cge(r,t.sorts,n),r}function V8(e){let t=A8(e.type);return{field:e.name,op:t[0]??`contains`}}function H8(e,t){return{...e,filters:[...e.filters,t]}}function U8(e,t,n){return{...e,filters:e.filters.map((e,r)=>r===t?{...e,...n}:e)}}function W8(e,t){return{...e,filters:e.filters.filter((e,n)=>n!==t)}}function G8(e,t){return{...e,match:t}}var K8=e=>e===`or`?`and`:`or`;function q8(e,t){return{...e,sorts:t}}function J8(e,t){return{...e,search:t}}function Y8(e,t){return{...e,kind:t}}function X8(e,t){return{...e,groupField:t}}function Gge(e,t){let n=new Set(e.hiddenFields??[]);return n.has(t)?n.delete(t):n.add(t),{...e,hiddenFields:[...n]}}var Kge=new Set([`text`,`longText`,`email`,`url`]),qge=new Set([`contains`,`notContains`,`is`,`isNot`]);function Jge(e,t,n){let r=e.type===`currency`||e.type===`percent`||e.type===`rating`,i=qge.has(t.op)&&!Kge.has(e.type)&&e.type!==`select`&&e.type!==`multiSelect`&&e.type!==`relation`&&e.type!==`boolean`&&!r&&e.type!==`date`&&e.type!==`dateTime`&&e.type!==`number`,a=t.op===`isAnyOf`?{...e,type:`multiSelect`}:r?{...e,type:`number`}:i?{...e,type:`text`,metadata:void 0}:e;return n?{...a,metadata:{...a.metadata,options:n}}:a}function Yge(e,t){let n=t?.metadata?.options,r=e=>n?.find(t=>t.value===e)?.label??String(e);if(e.op===`between`){let[t,n]=D8(e.value);return t!==void 0&&n!==void 0?`${r(t)} to ${r(n)}`:t===void 0?n===void 0?``:`to ${r(n)}`:`from ${r(t)}`}return e.value==null||e.value===``?``:Array.isArray(e.value)?e.value.map(r).join(`, `):r(e.value)}var Z8=e=>e.op!==`isEmpty`&&e.op!==`isNotEmpty`;function Q8({field:e,rule:t,onChange:n,fieldOptions:r}){let i=r?.(e),a=(0,b.useMemo)(()=>Jge(e,t,i),[e,t,i]);if(t.op!==`between`)return(0,L.jsx)(h8,{field:a,value:t.value,onChange:n});let[o,s]=D8(t.value);return(0,L.jsxs)(B,{items:`center`,gap:6,flex:1,children:[(0,L.jsx)(B,{flex:1,minW:90,"aria-label":`From`,children:(0,L.jsx)(h8,{field:a,value:o,onChange:e=>n([e,s])})}),(0,L.jsx)(H,{fontSize:12,style:{color:N8.textFaint},children:`to`}),(0,L.jsx)(B,{flex:1,minW:90,"aria-label":`To`,children:(0,L.jsx)(h8,{field:a,value:s,onChange:e=>n([o,e])})})]})}var $8={top:39,details:32,chip:24,remove:20,name:130,menu:200,wide:240},e5=(e,t)=>e.find(e=>e.name===t),t5=(e,t)=>e.filter(e=>e.label.toLowerCase().includes(t.trim().toLowerCase()));function n5({open:e,icon:t,children:n,...r}){return(0,L.jsx)(q,{size:`xs`,variant:`ghost`,color:`$aside`,startIcon:t,bg:e?`$hover`:void 0,...r,children:n})}function Xge(e){let{fields:t,view:n,onView:r,extra:i,onCreate:a,createLabel:o=`New`,boardDisabled:s}=e,{savedViews:c,dirty:l=!1,onResetView:u,onSaveView:d,onSaveAsView:f}=e,[p,m]=(0,b.useState)(!1),h=n.sorts.length>0||n.filters.length>0||l&&(u||d);return(0,L.jsxs)(z,{"data-slot":`view-bar`,children:[(0,L.jsxs)(B,{"data-slot":`view-bar-top`,minH:$8.top+1,items:`center`,justify:`space-between`,gap:`$2`,ml:`$1`,pr:`$2`,borderBottomWidth:1,borderColor:`$borderColor`,children:[(0,L.jsx)(Zge,{...e}),(0,L.jsxs)(B,{items:`center`,gap:`$0.5`,shrink:1,minW:0,children:[(0,L.jsx)(kI,{size:`xs`,start:(0,L.jsx)(mM,{size:14}),width:180,shrink:1,children:(0,L.jsx)(NI,{value:n.search??``,onChangeText:e=>r(J8(n,e)),placeholder:`Search…`,"aria-label":`Search records`})}),(0,L.jsx)(Qge,{fields:t,view:n,onView:r,open:p,onOpenChange:m,children:(0,L.jsx)(n5,{open:p,icon:(0,L.jsx)($j,{}),children:`Filter`})}),(0,L.jsx)(e_e,{fields:t,view:n,onView:r}),(0,L.jsx)(t_e,{fields:t,view:n,onView:r,boardDisabled:s}),i,a?(0,L.jsx)(q,{size:`xs`,variant:`primary`,startIcon:(0,L.jsx)(fM,{}),onPress:a,children:o}):null]})]}),h?(0,L.jsxs)(B,{"data-slot":`view-bar-details`,minH:$8.details,items:`center`,gap:`$2`,py:`$1`,px:`$2`,borderTopWidth:1,borderColor:`$borderColor`,flexWrap:`wrap`,children:[n.sorts.map(e=>(0,L.jsx)(n_e,{rule:e,fields:t,view:n,onView:r},`sort-${e.field}`)),n.sorts.length>0&&n.filters.length>0?(0,L.jsx)(z,{"data-slot":`view-bar-rule`,width:1,height:16,bg:`$raised`}):null,n.filters.map((t,i)=>(0,L.jsxs)(b.Fragment,{children:[i>0?(0,L.jsx)(q,{size:`xs`,variant:`ghost`,color:`$aside`,fontWeight:`400`,"aria-label":`Rules combine by ${n.match===`or`?`or`:`and`}; press for ${K8(n.match)}`,onPress:()=>r(G8(n,K8(n.match))),children:n.match===`or`?`or`:`and`}):null,(0,L.jsx)(r_e,{index:i,rule:t,...e})]},`filter-${i}`)),(0,L.jsx)(q,{size:`xs`,variant:`ghost`,color:`$aside`,fontWeight:`400`,startIcon:(0,L.jsx)(fM,{}),onPress:()=>m(!0),children:`Add filter`}),(0,L.jsx)(B,{flex:1}),l&&u?(0,L.jsx)(q,{size:`xs`,variant:`ghost`,color:`$aside`,fontWeight:`400`,onPress:u,children:`Reset`}):null,l&&d?(0,L.jsxs)(LN,{size:`xs`,variant:`outline`,"aria-label":`Update view`,children:[(0,L.jsx)(q,{onPress:d,children:`Update view`}),f?(0,L.jsxs)(IF,{children:[(0,L.jsx)(RF,{asChild:!0,children:(0,L.jsx)(q,{size:`icon-xs`,"aria-label":`More ways to save the view`,children:(0,L.jsx)(Oj,{})})}),(0,L.jsx)(HF,{align:`end`,minW:$8.menu,children:(0,L.jsx)(KF,{onSelect:f,children:`Save as new view`})})]}):null]}):null]}):null]})}function Zge({view:e,onView:t,count:n,savedViews:r,boardDisabled:i}){let[a,o]=(0,b.useState)(!1),s=e.kind===`board`?Zj:SM;return(0,L.jsxs)(IF,{open:a,onOpenChange:o,children:[(0,L.jsx)(RF,{asChild:!0,children:(0,L.jsxs)(q,{size:`xs`,variant:`ghost`,color:`$aside`,pl:`$1`,startIcon:(0,L.jsx)(s,{size:16}),endIcon:(0,L.jsx)(Oj,{size:14,color:`$hush`}),bg:a?`$hover`:void 0,"aria-label":`View: ${e.name}`,children:[(0,L.jsx)(J1,{text:e.name,maxW:$8.name,fontSize:`$2`,fontWeight:`500`,color:`$aside`}),n==null?null:(0,L.jsx)(H,{fontSize:`$2`,color:`$hint`,children:`· ${n}`})]})}),(0,L.jsxs)(HF,{minW:$8.menu,children:[r&&r.views.length?(0,L.jsx)(XF,{value:r.activeId??e.id,onValueChange:e=>{let n=r?.views.find(t=>t.id===e);n&&r&&(r.onSelect(n.id),t(n))},children:(0,L.jsx)(eI,{label:`Views`,children:r.views.map(e=>(0,L.jsx)(QF,{value:e.id,children:e.name},e.id))})}):null,i?null:(0,L.jsxs)(XF,{value:e.kind,onValueChange:n=>n===`table`||n===`board`?t(Y8(e,n)):void 0,children:[(0,L.jsx)(lI,{variant:`band`,children:`Layout`}),(0,L.jsx)(QF,{value:`table`,children:`Table`}),(0,L.jsx)(QF,{value:`board`,children:`Board`})]})]})]})}function Qge({fields:e,view:t,onView:n,open:r,onOpenChange:i,children:a}){let[o,s]=(0,b.useState)(``),c=t5(e,o);return(0,L.jsxs)(IF,{open:r,onOpenChange:e=>{i(e),e||s(``)},children:[(0,L.jsx)(RF,{asChild:!0,children:a}),(0,L.jsxs)(HF,{minW:$8.menu,children:[(0,L.jsx)($F,{value:o,onValueChange:s,placeholder:`Search fields`}),(0,L.jsx)(eI,{scrollable:!0,children:c.map(e=>(0,L.jsx)(KF,{onSelect:()=>n(H8(t,V8(e))),children:e.label},e.name))}),c.length===0?(0,L.jsx)(sI,{children:`No field matches`}):null]})]})}var $ge=(e,t)=>{let n=e.find(e=>e.field===t);return n?n.dir===`asc`?e.map(e=>e.field===t?{...e,dir:`desc`}:e):e.filter(e=>e.field!==t):[...e,{field:t,dir:`asc`}]};function e_e({fields:e,view:t,onView:n}){let[r,i]=(0,b.useState)(!1),[a,o]=(0,b.useState)(``),s=t5(e,a);return(0,L.jsxs)(IF,{open:r,onOpenChange:e=>{i(e),e||o(``)},children:[(0,L.jsx)(RF,{asChild:!0,children:(0,L.jsx)(n5,{open:r,icon:(0,L.jsx)(hj,{}),children:`Sort`})}),(0,L.jsxs)(HF,{minW:$8.menu,children:[(0,L.jsx)($F,{value:a,onValueChange:o,placeholder:`Search fields`}),(0,L.jsx)(eI,{scrollable:!0,children:s.map(e=>{let r=t.sorts.find(t=>t.field===e.name)?.dir;return(0,L.jsx)(KF,{onSelect:()=>n(q8(t,$ge(t.sorts,e.name))),children:(0,L.jsxs)(B,{flex:1,items:`center`,justify:`space-between`,gap:`$2`,children:[(0,L.jsx)(H,{fontSize:`$2`,color:`$aside`,numberOfLines:1,children:e.label}),r===`asc`?(0,L.jsx)(yj,{size:14,color:`$aside`}):r===`desc`?(0,L.jsx)(gj,{size:14,color:`$aside`}):null]})},e.name)})}),s.length===0?(0,L.jsx)(sI,{children:`No field matches`}):null]})]})}function t_e({fields:e,view:t,onView:n,boardDisabled:r}){let[i,a]=(0,b.useState)(!1),o=new Set(t.hiddenFields??[]),s=e.filter(e=>!o.has(e.name)).map(e=>e.name),c=R8(e);return(0,L.jsxs)(IF,{open:i,onOpenChange:a,defaultPage:`options`,children:[(0,L.jsx)(RF,{asChild:!0,children:(0,L.jsx)(n5,{open:i,icon:(0,L.jsx)(vM,{}),children:`Options`})}),(0,L.jsxs)(HF,{align:`end`,minW:$8.wide,children:[(0,L.jsxs)(tI,{id:`options`,children:[(0,L.jsx)(rI,{children:(0,L.jsx)(iI,{children:`View options`})}),(0,L.jsx)(KF,{page:`fields`,children:`Fields`}),t.kind===`board`&&c.length?(0,L.jsx)(KF,{page:`group`,children:`Group by`}):null,r?null:(0,L.jsxs)(XF,{value:t.kind,onValueChange:e=>e===`table`||e===`board`?n(Y8(t,e)):void 0,children:[(0,L.jsx)(lI,{variant:`band`,children:`Layout`}),(0,L.jsx)(QF,{value:`table`,children:`Table`}),(0,L.jsx)(QF,{value:`board`,children:`Board`})]})]}),(0,L.jsxs)(tI,{id:`fields`,children:[(0,L.jsx)(aI,{children:`Fields`}),(0,L.jsx)(XF,{multiple:!0,value:s,onValueChange:r=>{let i=new Set(Array.isArray(r)?r:r?[r]:[]),a=t;for(let t of e)i.has(t.name)===o.has(t.name)&&(a=Gge(a,t.name));n(a)},children:(0,L.jsx)(eI,{scrollable:!0,children:e.map(e=>(0,L.jsx)(QF,{value:e.name,children:e.label},e.name))})})]}),(0,L.jsxs)(tI,{id:`group`,children:[(0,L.jsx)(aI,{children:`Group by`}),(0,L.jsx)(XF,{value:t.groupField??null,onValueChange:e=>n(X8(t,typeof e==`string`?e:void 0)),children:c.map(e=>(0,L.jsx)(QF,{value:e.name,children:e.label},e.name))})]})]})]})}function r5({label:e,onRemove:t,children:n}){return(0,L.jsxs)(B,{"data-slot":`view-chip`,height:$8.chip,items:`center`,gap:`$1`,p:`$0.5`,pl:`$1`,rounded:`$xs`,bg:`$hover`,borderWidth:1,borderColor:`$borderColor`,children:[n,(0,L.jsx)(q,{size:`icon-2xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Remove ${e}`,onPress:t,children:(0,L.jsx)(MM,{})})]})}var i5=(e,t,n={})=>(0,L.jsxs)(B,{role:`button`,tabIndex:0,"data-slot":`view-chip-body`,items:`center`,gap:`$1`,cursor:`pointer`,rounded:`$2xs`,focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},...n,children:[(0,L.jsx)(H,{fontSize:`$1`,fontWeight:`500`,color:`$ink`,numberOfLines:1,children:e}),t]});function n_e({rule:e,fields:t,view:n,onView:r}){let i=e5(t,e.field)?.label??e.field,a=()=>r(q8(n,n.sorts.map(t=>t.field===e.field?{...t,dir:t.dir===`asc`?`desc`:`asc`}:t)));return(0,L.jsx)(r5,{label:`sort by ${i}`,onRemove:()=>r(q8(n,n.sorts.filter(t=>t.field!==e.field))),children:i5(i,e.dir===`asc`?(0,L.jsx)(yj,{size:14,color:`$ink`}):(0,L.jsx)(gj,{size:14,color:`$ink`}),{"aria-label":`Sort by ${i}, ${e.dir===`asc`?`ascending`:`descending`}`,onPress:a,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault?.(),a())}})})}function r_e({index:e,rule:t,fields:n,view:r,onView:i,fieldOptions:a}){let[o,s]=(0,b.useState)(!1),c=e5(n,t.field)??n[0],l=A8(c.type),u=Yge(t,c);return(0,L.jsx)(r5,{label:`filter on ${c.label}`,onRemove:()=>i(W8(r,e)),children:(0,L.jsxs)(IF,{open:o,onOpenChange:s,children:[(0,L.jsx)(RF,{asChild:!0,children:i5(c.label,(0,L.jsx)(H,{fontSize:`$1`,color:`$ink`,numberOfLines:1,children:`: ${k8[t.op]}${u?` ${u}`:``}`}),{"aria-label":`Filter: ${c.label} ${k8[t.op]} ${u}`.trim()})}),(0,L.jsxs)(HF,{minW:$8.wide,children:[(0,L.jsxs)(XF,{value:t.op,closeOnSelect:!1,onValueChange:n=>{if(typeof n!=`string`)return;let a=n;i(U8(r,e,a===`between`||t.op===`between`?{op:a,value:void 0}:{op:a}))},children:[(0,L.jsx)(lI,{variant:`band`,children:c.label}),l.map(e=>(0,L.jsx)(QF,{value:e,children:k8[e]},e))]}),Z8(t)?(0,L.jsx)(z,{p:`$1`,children:(0,L.jsx)(Q8,{field:c,rule:t,fieldOptions:a,onChange:t=>i(U8(r,e,{value:t}))})}):null]})]})})}var a5=(e,t)=>e.find(e=>e.name===t);function o5({icon:e,label:t,count:n,active:r,style:i,...a}){return(0,L.jsxs)(B,{role:`button`,tabIndex:0,"aria-label":t,...a,items:`center`,gap:6,px:10,py:7,rounded:8,borderWidth:1,cursor:`pointer`,hoverStyle:{borderColor:N8.textMuted},style:{...i,borderColor:r?N8.accent:N8.border,backgroundColor:r?N8.hover:`transparent`},children:[e,(0,L.jsx)(H,{fontSize:13,fontWeight:`600`,style:{color:r?N8.text:N8.textMuted},children:t}),n?(0,L.jsx)(B,{items:`center`,justify:`center`,width:18,height:18,rounded:9,style:{backgroundColor:N8.accent},children:(0,L.jsx)(H,{fontSize:11,fontWeight:`700`,style:{color:`#0b1220`},children:n})}):null]})}function i_e({view:e,onView:t,boardDisabled:n}){let r=(n,r,i)=>{let a=e.kind===n;return(0,L.jsxs)(B,{items:`center`,gap:6,px:10,py:6,rounded:7,cursor:`pointer`,onPress:()=>t(Y8(e,n)),style:{backgroundColor:a?N8.surface:`transparent`},hoverStyle:a?void 0:{bg:N8.hover},children:[r,(0,L.jsx)(H,{fontSize:13,fontWeight:`600`,style:{color:a?N8.text:N8.textFaint},children:i})]})};return(0,L.jsxs)(B,{p:3,gap:2,rounded:9,borderWidth:1,style:{borderColor:N8.border,backgroundColor:N8.surfaceRaised},children:[r(`table`,(0,L.jsx)(SM,{size:14,color:e.kind===`table`?N8.text:N8.textFaint}),`Table`),n?null:r(`board`,(0,L.jsx)(Zj,{size:14,color:e.kind===`board`?N8.text:N8.textFaint}),`Board`)]})}function a_e({fields:e,value:t,onPick:n,trigger:r}){let[i,a]=(0,b.useState)(!1);return(0,L.jsx)(_8,{open:i,onOpenChange:a,width:220,trigger:r,children:e.map(e=>(0,L.jsx)(v8,{active:e.name===t,onPress:()=>{n(e.name),a(!1)},children:(0,L.jsx)(H,{fontSize:13,style:{color:N8.text},children:e.label})},e.name))})}function o_e({ops:e,value:t,onPick:n}){let[r,i]=(0,b.useState)(!1);return(0,L.jsx)(_8,{open:r,onOpenChange:i,width:200,trigger:(0,L.jsx)(s5,{text:k8[t]}),children:e.map(e=>(0,L.jsx)(v8,{active:e===t,onPress:()=>{n(e),i(!1)},children:(0,L.jsx)(H,{fontSize:13,style:{color:N8.text},children:k8[e]})},e))})}function s5({text:e,style:t,...n}){return(0,L.jsx)(B,{role:`button`,tabIndex:0,...n,items:`center`,px:8,py:5,rounded:7,borderWidth:1,cursor:`pointer`,hoverStyle:{borderColor:N8.textMuted},style:{...t,borderColor:N8.border,backgroundColor:N8.surface},children:(0,L.jsx)(H,{fontSize:12,numberOfLines:1,style:{color:N8.text},children:e})})}function s_e({fields:e,view:t,onView:n,fieldOptions:r}){let[i,a]=(0,b.useState)(!1),o=t.filters.filter(O8).length;return(0,L.jsx)(_8,{open:i,onOpenChange:a,width:420,trigger:(0,L.jsx)(o5,{icon:(0,L.jsx)($j,{size:14,color:N8.textMuted}),label:`Filter`,count:o,active:o>0}),children:(0,L.jsxs)(z,{gap:8,p:4,children:[t.filters.length===0?(0,L.jsx)(H,{px:6,py:4,fontSize:12,style:{color:N8.textFaint},children:`No filters yet.`}):null,t.filters.map((i,a)=>{let o=a5(e,i.field)??e[0],s=A8(o.type);return(0,L.jsxs)(B,{items:`center`,gap:6,children:[a===0?(0,L.jsx)(H,{fontSize:12,width:36,style:{color:N8.textFaint},children:`Where`}):(0,L.jsx)(B,{width:36,cursor:`pointer`,onPress:()=>n(G8(t,K8(t.match))),role:`button`,"aria-label":`Rules combine by ${t.match===`or`?`or`:`and`}; press for ${K8(t.match)}`,children:(0,L.jsx)(H,{fontSize:12,fontWeight:`600`,style:{color:N8.accent},children:t.match===`or`?`or`:`and`})}),(0,L.jsx)(a_e,{fields:e,value:i.field,onPick:r=>{n(U8(t,a,{field:r,op:A8(a5(e,r).type)[0],value:void 0}))},trigger:(0,L.jsx)(s5,{text:o.label})}),(0,L.jsx)(o_e,{ops:s,value:i.op,onPick:e=>n(U8(t,a,e===`between`||i.op===`between`?{op:e,value:void 0}:{op:e}))}),Z8(i)?(0,L.jsx)(B,{flex:1,minW:120,children:(0,L.jsx)(Q8,{field:o,rule:i,fieldOptions:r,onChange:e=>n(U8(t,a,{value:e}))})}):(0,L.jsx)(B,{flex:1}),(0,L.jsx)(z,{cursor:`pointer`,p:4,rounded:6,hoverStyle:{bg:N8.hover},onPress:()=>n(W8(t,a)),children:(0,L.jsx)(MM,{size:14,color:N8.textFaint})})]},a)}),(0,L.jsx)(B,{children:(0,L.jsx)(bS,{size:`$2`,icon:(0,L.jsx)(fM,{size:14}),onPress:()=>n(H8(t,V8(e[0]))),children:`Add filter`})})]})})}function c_e({fields:e,view:t,onView:n}){let[r,i]=(0,b.useState)(!1),a=e=>t.sorts.find(t=>t.field===e)?.dir,o=e=>{let r=t.sorts.find(t=>t.field===e),i;i=r?r.dir===`asc`?t.sorts.map(t=>t.field===e?{...t,dir:`desc`}:t):t.sorts.filter(t=>t.field!==e):[...t.sorts,{field:e,dir:`asc`}],n(q8(t,i))};return(0,L.jsx)(_8,{open:r,onOpenChange:i,width:240,trigger:(0,L.jsx)(o5,{icon:(0,L.jsx)(hj,{size:14,color:N8.textMuted}),label:`Sort`,count:t.sorts.length,active:t.sorts.length>0}),children:e.map(e=>{let t=a(e.name);return(0,L.jsx)(v8,{active:!!t,onPress:()=>o(e.name),trailing:t===`asc`?(0,L.jsx)(yj,{size:13,color:N8.accent}):t===`desc`?(0,L.jsx)(gj,{size:13,color:N8.accent}):null,children:(0,L.jsx)(H,{fontSize:13,style:{color:N8.text},children:e.label})},e.name)})})}function l_e({fields:e,view:t,onView:n}){let[r,i]=(0,b.useState)(!1),a=R8(e),o=a5(e,t.groupField??``);return(0,L.jsxs)(_8,{open:r,onOpenChange:i,width:220,trigger:(0,L.jsx)(o5,{icon:(0,L.jsx)(Rj,{size:14,color:N8.textMuted}),label:o?`Group: ${o.label}`:`Group by`,active:!!o}),children:[a.length===0?(0,L.jsx)(H,{px:10,py:6,fontSize:12,style:{color:N8.textFaint},children:`No groupable fields`}):null,a.map(e=>(0,L.jsx)(v8,{active:e.name===t.groupField,onPress:()=>{n(X8(t,e.name)),i(!1)},children:(0,L.jsx)(H,{fontSize:13,style:{color:N8.text},children:e.label})},e.name))]})}function u_e(e){return NN()===`compact`?(0,L.jsx)(Xge,{...e}):(0,L.jsx)(d_e,{...e})}function d_e(e){let{fields:t,view:n,onView:r,onCreate:i,createLabel:a=`New`,extra:o,boardDisabled:s}=e;return(0,L.jsxs)(B,{items:`center`,gap:8,style:{flexWrap:`wrap`},children:[(0,L.jsx)(i_e,{view:n,onView:r,boardDisabled:s}),(0,L.jsx)(s_e,{...e}),(0,L.jsx)(c_e,{fields:t,view:n,onView:r}),n.kind===`board`?(0,L.jsx)(l_e,{fields:t,view:n,onView:r}):null,(0,L.jsxs)(B,{flex:1,minW:160,items:`center`,gap:6,px:10,py:6,rounded:8,borderWidth:1,style:{borderColor:N8.border,backgroundColor:N8.surface},children:[(0,L.jsx)(mM,{size:14,color:N8.textFaint}),(0,L.jsx)(gA,{flex:1,size:`$2`,value:n.search??``,onChangeText:e=>r(J8(n,e)),placeholder:`Search…`,style:{borderWidth:0,backgroundColor:`transparent`,paddingLeft:0,paddingRight:0}})]}),o?(0,L.jsx)(b.Fragment,{children:o}):null,i?(0,L.jsx)(bS,{size:`$3`,icon:(0,L.jsx)(fM,{size:16}),theme:`blue`,onPress:i,children:a}):null]})}function f_e(e){let{fields:t,records:n,loading:r,empty:i,view:a,onViewChange:o,defaultKind:s=`table`,savedViews:c,title:l,onOpen:u,onCreate:d,createLabel:f,onEditCommit:p,onRecordChange:m,fieldOptions:h,selectable:g=!0,editable:_=!0,bulkActions:v,toolbarExtra:y,boardDisabled:x,titleField:S,cardFields:C,remote:w}=e,[T,E]=(0,b.useState)(()=>{let e=Uge(s);return s===`board`?{...e,groupField:z8(t)}:e}),D=a??T,O=e=>{let n=e.kind===`board`&&!e.groupField?{...e,groupField:z8(t)}:e;o?o(n):E(n)},k=(0,b.useMemo)(()=>w?n:Wge(n,D,t),[w,n,D,t]),A=NN()===`compact`,j=c?.views.find(e=>e.id===(c.activeId??D.id)),ee=!!j&&JSON.stringify(j)!==JSON.stringify(D),M=A&&c?{savedViews:{views:c.views,activeId:c.activeId,onSelect:c.onSelect},dirty:ee,onResetView:j?()=>O(j):void 0,onSaveView:()=>c.onSave(D),onSaveAsView:()=>c.onSave({...D,id:`view-${Date.now()}`,name:`View ${c.views.length+1}`})}:null,te=m??(p?(e,n)=>{let[r]=Object.keys(n),i=t.find(e=>e.name===r);if(i)return p(e,i,n[r])}:void 0);return(0,L.jsxs)(z,{gap:12,children:[l?typeof l==`string`?(0,L.jsx)(H,{fontSize:20,fontWeight:`800`,style:{color:N8.text},children:l}):l:null,c&&!A?(0,L.jsx)(p_e,{saved:c,current:D,onLoad:O}):null,(0,L.jsx)(u_e,{fields:t,view:D,onView:O,onCreate:d,createLabel:f,fieldOptions:h,extra:y,boardDisabled:x,...A?{count:w?w.total:k.length}:null,...M}),D.kind===`board`?(0,L.jsx)(Rge,{fields:t,records:k,groupField:D.groupField??z8(t)??``,titleField:S,cardFields:C,onOpen:u,onRecordChange:te,onCreate:d?()=>d():void 0}):(0,L.jsx)(Tge,{fields:t,records:k,loading:r,empty:i,sorts:D.sorts,onSortChange:e=>O(q8(D,e)),onOpen:u,selectable:g,bulkActions:v,editable:_,onEditCommit:p,fieldOptions:h,hiddenFields:D.hiddenFields,columnOrder:D.columnOrder,onColumnOrderChange:e=>O({...D,columnOrder:e}),pageSize:D.pageSize??25,remote:w})]})}function p_e({saved:e,current:t,onLoad:n}){return(0,L.jsxs)(B,{items:`center`,gap:4,style:{flexWrap:`wrap`},children:[e.views.map(r=>{let i=r.id===(e.activeId??t.id);return(0,L.jsxs)(B,{items:`center`,gap:6,px:10,py:6,rounded:8,cursor:`pointer`,onPress:()=>{e.onSelect(r.id),n(r)},style:{backgroundColor:i?N8.hover:`transparent`,borderBottomWidth:2,borderBottomColor:i?N8.accent:`transparent`},hoverStyle:i?void 0:{bg:N8.surfaceRaised},children:[(0,L.jsx)(H,{fontSize:13,fontWeight:i?`700`:`500`,style:{color:i?N8.text:N8.textMuted},children:r.name}),e.onDelete&&e.views.length>1&&(e.deletable?.(r.id)??!0)?(0,L.jsx)(z,{role:`button`,tabIndex:0,"aria-label":`Delete view ${r.name}`,cursor:`pointer`,onPress:t=>{t?.stopPropagation?.(),e.onDelete?.(r.id)},children:(0,L.jsx)(MM,{size:12,color:N8.textFaint})}):null]},r.id)}),(0,L.jsxs)(B,{items:`center`,gap:4,px:10,py:6,rounded:8,cursor:`pointer`,hoverStyle:{bg:N8.surfaceRaised},onPress:()=>e.onSave({...t,id:`view-${Date.now()}`,name:`View ${e.views.length+1}`}),children:[(0,L.jsx)(fM,{size:13,color:N8.textFaint}),(0,L.jsx)(H,{fontSize:13,style:{color:N8.textFaint},children:`New view`})]})]})}var c5=e=>`var(--team-${e})`,X={ground:c5(`ground`),panel:c5(`panel`),card:c5(`card`),rule:c5(`rule`),ink:c5(`ink`),mute:c5(`mute`),dim:c5(`dim`),accent:c5(`accent`),alert:c5(`alert`)},l5={backlog:c5(`backlog`),todo:c5(`todo`),doing:c5(`doing`),done:c5(`done`)},m_e=6,u5=e=>{let t=e.toLowerCase(),n=0;for(let e=0;e<t.length;e++)n=n*31+t.charCodeAt(e)|0;return Math.abs(n)%m_e+1},d5=e=>({background:`var(--team-hue-${u5(e)})`,color:`var(--team-chip-ink)`}),f5=e=>`var(--team-hue-${u5(e)})`,h_e=e=>e===1||e===2,p5=e=>h_e(e)?{background:`var(--team-urgent)`,color:`var(--team-chip-ink)`}:{background:`var(--team-quiet)`,color:X.ink},Z={title:`$7`,row:`$4`,body:`$3`,small:`$2`,chip:`$1`,figure:`$7`},m5={tight:`$2`,inset:`$3`,wide:`$4`,edge:`$5`},Q={card:`$1`,panel:`$1`,field:`$1`,pill:`$10`},h5={textTransform:`uppercase`,letterSpacing:.08},g5={outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`};function g_e(e,t){return e?.trim()?e.trim():(t?.split(`@`)[0])?.trim()||``}var __e=[{id:`crm`,label:`CRM`,productTitle:`Hanzo CRM`,description:`Pipeline, contacts, investors & deals`,href:`https://crm.hanzo.ai`,supportsFreshAuth:!0},{id:`team`,label:`Work`,productTitle:`Hanzo Team`,description:`Shared workspace, docs, tasks & drive`,href:`https://hanzo.team`,supportsFreshAuth:!1},{id:`cms`,label:`CMS`,productTitle:`Hanzo CMS`,description:`Content, pages, collections & media`,href:`https://cms.hanzo.ai/admin`,supportsFreshAuth:!1},{id:`email`,label:`Email`,productTitle:`Hanzo Email`,description:`Campaigns, journeys & broadcasts`,href:`https://marketing.hanzo.ai`,supportsFreshAuth:!0},{id:`ads`,label:`Ads`,productTitle:`Hanzo Ads`,description:`Ad spend, ROAS & attribution`,href:`https://ads.hanzo.ai`,supportsFreshAuth:!0},{id:`cal`,label:`Cal`,productTitle:`Hanzo Cal`,description:`Scheduling, bookings & availability`,href:`https://hanzo.team/cal`,supportsFreshAuth:!1},{id:`bots`,label:`Bots`,productTitle:`Hanzo Bots`,description:`Autonomous AI agents & workflows`,href:`https://hanzo.bot`,supportsFreshAuth:!1},{id:`post`,label:`Post`,productTitle:`Hanzo Post`,description:`AI social & blog publishing across 28+ channels`,href:`https://post.hanzo.ai`,supportsFreshAuth:!1},{id:`social`,label:`Social`,productTitle:`Hanzo Publish`,description:`Social scheduling, inbox & listening`,href:`https://social.hanzo.ai`,supportsFreshAuth:!0},{id:`chat`,label:`Chat`,productTitle:`Hanzo Chat`,description:`AI assistant, models & playground`,href:`https://hanzo.ai/chat`,supportsFreshAuth:!1},{id:`dev`,label:`Dev`,productTitle:`Hanzo Dev`,description:`Coding agents & cloud workspaces`,href:`https://hanzo.ai/dev`,supportsFreshAuth:!1},{id:`commerce`,label:`Commerce`,productTitle:`Hanzo Commerce`,description:`Store, products, orders & subscriptions`,href:`https://commerce-admin.hanzo.ai/admin/`,supportsFreshAuth:!1},{id:`analytics`,label:`Analytics`,productTitle:`Hanzo Analytics`,description:`Web traffic, funnels & retention`,href:`https://analytics.hanzo.ai`,supportsFreshAuth:!1},{id:`dataroom`,label:`Data Room`,productTitle:`Hanzo Data Room`,description:`Secure investor & deal data rooms`,href:`https://dataroom.hanzo.ai`,supportsFreshAuth:!1},{id:`sign`,label:`Sign`,productTitle:`Hanzo Sign`,description:`Document e-signatures & agreements`,href:`https://esign.hanzo.ai`,supportsFreshAuth:!1},{id:`billing`,label:`Billing`,productTitle:`Hanzo Billing`,description:`Usage, balance, invoices & payment methods`,href:`https://billing.hanzo.ai`,supportsFreshAuth:!1},{id:`console`,label:`Console`,productTitle:`Hanzo Console`,description:`Cloud, AI infrastructure & IAM`,href:`https://console.hanzo.ai`,supportsFreshAuth:!0},{id:`platform`,label:`Platform`,productTitle:`Hanzo Platform`,description:`PaaS deployments, clusters & containers`,href:`https://platform.hanzo.ai`,supportsFreshAuth:!0}];function v_e({id:e,size:t=16}){switch(e){case`crm`:return(0,L.jsx)(Cj,{size:t});case`team`:case`work`:return(0,L.jsx)(kM,{size:t});case`cms`:return(0,L.jsx)(Jj,{size:t});case`email`:case`marketing`:return(0,L.jsx)(nM,{size:t});case`ads`:return(0,L.jsx)(iM,{size:t});case`cal`:return(0,L.jsx)(Ej,{size:t});case`bots`:return(0,L.jsx)(xj,{size:t});case`post`:case`social`:return(0,L.jsx)(gM,{size:t});case`chat`:return(0,L.jsx)(qoe,{size:t});case`dev`:return(0,L.jsx)(wM,{size:t});case`commerce`:return(0,L.jsx)(_M,{size:t});case`analytics`:return(0,L.jsx)(cj,{size:t});case`dataroom`:return(0,L.jsx)(Kj,{size:t});case`sign`:return(0,L.jsx)(aj,{size:t});case`billing`:return(0,L.jsx)(Bj,{size:t});case`console`:return(0,L.jsx)(yM,{size:t});case`platform`:return(0,L.jsx)(Zj,{size:t});default:return(0,L.jsx)(pj,{size:t})}}function y_e(e,t){try{let n=new URL(e.href);if(e.supportsFreshAuth&&t?.who){let e=t?.org?`/?org=${encodeURIComponent(t.org)}`:`/`;return`${n.origin}/auth/fresh?next=${encodeURIComponent(e)}&who=${encodeURIComponent(t.who)}`}return t?.org&&!n.searchParams.has(`org`)&&n.searchParams.set(`org`,t.org),n.toString()}catch{return e.href}}var b_e=[{id:`c-general`,label:`#general`,desc:`Company-wide announcements & updates`,path:`/chat/c-general`},{id:`c-hanzo-revenue`,label:`#hanzo-revenue`,desc:`Live checkouts, orders, subscriptions & deals`,path:`/chat/c-hanzo-revenue`},{id:`c-feedback`,label:`#feedback`,desc:`Inbound leads, form submits, feedback & bug reports`,path:`/chat/c-feedback`},{id:`c-hanzo-support`,label:`#hanzo-support`,desc:`Customer support & triage`,path:`/chat/c-hanzo-support`},{id:`c-errors`,label:`#errors`,desc:`Runtime faults, Sentry exceptions & CLI errors`,path:`/chat/c-errors`},{id:`c-hanzo-ui`,label:`#hanzo-ui`,desc:`Design system & GUI components`,path:`/chat/c-hanzo-ui`}],x_e=[{id:`overview`,label:`AI Cockpit — Live Business Command Center`,desc:`24/7 AI C-Suite + realtime checkouts, leads, form submits & telemetry`,path:`/overview`},{id:`issues`,label:`Tracker — All issues`,desc:`Kanban board, list & project issues`,path:`/issues`},{id:`crm-opp`,label:`CRM — Opportunities`,desc:`Pipeline deals & revenue stages`,path:`/crm/opportunities`},{id:`crm-inv`,label:`CRM — Investors (346K)`,desc:`Institutional VCs, angels & funds`,path:`/crm/investors`},{id:`crm-leads`,label:`CRM — Developer Leads (13.48M)`,desc:`GitHub developer cohorts by stars`,path:`/crm/leads`},{id:`bots`,label:`Bots — 24/7 Autonomous Agents`,desc:`Configure schedules, models & triggers`,path:`/bots`},{id:`apps`,label:`Apps — Hanzo Business Suite`,desc:`All connected Hanzo applications`,path:`/apps`}];function S_e({appId:e=`team`,appTitle:t,showAppTitle:n=!1,apps:r=__e,onSelectApp:i,brandMark:a,currentOrg:o,orgs:s=[],onSelectOrg:c,onAllOrgs:l,onCreateOrg:u,leftSlot:d,children:f,rightSlot:p,onNavigate:m,user:h}){let[g,_]=(0,b.useState)(!1),[v,y]=(0,b.useState)(!1),[x,S]=(0,b.useState)(!1),[C,w]=(0,b.useState)(``),T=r.find(t=>t.id===e)??r[0],E=t||T?.productTitle||`Hanzo Team`,D=o?.displayName?.trim()||o?.name||`Hanzo AI`,O=h?.sub||``;(0,b.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`&&(e.preventDefault(),S(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let k=(0,b.useMemo)(()=>{let e=C.trim().toLowerCase(),t=d4.map(e=>({id:`bot-${e.id}`,kind:`bot`,label:`${e.name} — ${e.role}`,desc:e.status,path:`/chat/dm-${e.id}`})),n=b_e.map(e=>({...e,kind:`channel`})),r=[...x_e.map(e=>({...e,kind:`surface`})),...n,...t];return e?r.filter(t=>t.label.toLowerCase().includes(e)||t.desc.toLowerCase().includes(e)).slice(0,14):r.slice(0,12)},[C]),A=e=>{if(_(!1),i){i(e);return}if(typeof window<`u`){let t=y_e(e,{who:O||void 0,org:o?.name||void 0});window.location.assign(t)}},j=e=>{S(!1),w(``),m?m(e):typeof window<`u`&&window.location.assign(e)};return(0,L.jsxs)(B,{render:`header`,height:40,px:`$2.5`,gap:`$2`,items:`center`,justify:`space-between`,borderBottomWidth:1,borderColor:`$borderColor`,bg:`$background`,shrink:0,"data-testid":`hanzo-business-header`,children:[(0,L.jsxs)(B,{items:`center`,gap:`$1.5`,minW:0,shrink:0,children:[d,(0,L.jsxs)(dD,{open:g,onOpenChange:_,placement:`bottom-start`,allowFlip:!0,stayInFrame:!0,children:[(0,L.jsx)(dD.Trigger,{asChild:!0,children:(0,L.jsxs)(B,{role:`button`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$1`,height:30,px:`$2`,rounded:`$3`,hoverStyle:{bg:`$color3`},"aria-label":`${E} — Switch application`,"aria-haspopup":`menu`,"aria-expanded":g,"data-testid":`business-app-switcher-trigger`,children:[(0,L.jsx)(z,{items:`center`,justify:`center`,width:20,height:20,shrink:0,children:a??(0,L.jsx)(Wme,{size:17,wordmark:``})}),n?(0,L.jsx)(H,{fontSize:`$2`,fontWeight:`700`,color:`$color12`,numberOfLines:1,children:E}):null,(0,L.jsx)(Oj,{size:12,color:`$color10`})]})}),(0,L.jsx)(dD.Content,{role:`menu`,"aria-label":`Hanzo Business Applications`,borderWidth:1,elevation:`$4`,p:`$2.5`,width:350,bg:`$background`,borderColor:`$borderColor`,rounded:`$4`,style:{zIndex:1e5},children:(0,L.jsxs)(z,{gap:`$2`,width:`100%`,children:[(0,L.jsxs)(B,{items:`center`,justify:`space-between`,px:`$2`,pt:`$1`,children:[(0,L.jsx)(H,{fontSize:`$1`,fontWeight:`700`,color:`$color10`,textTransform:`uppercase`,letterSpacing:.6,children:`Hanzo Business Suite`}),(0,L.jsx)(H,{fontSize:`$1`,color:`$color10`,children:D})]}),(0,L.jsx)(z,{gap:`$0.5`,maxH:420,style:{overflowY:`auto`},children:r.map(t=>{let n=t.id===e;return(0,L.jsxs)(B,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2.5`,py:`$2`,rounded:`$3`,bg:n?`$color3`:`transparent`,hoverStyle:{bg:`$color3`},onPress:()=>A(t),"data-testid":`app-switcher-item-${t.id}`,children:[(0,L.jsx)(z,{width:30,height:30,rounded:`$3`,bg:n?`$color4`:`$color2`,items:`center`,justify:`center`,shrink:0,children:(0,L.jsx)(v_e,{id:t.id,size:15})}),(0,L.jsxs)(z,{flex:1,minW:0,gap:1,children:[(0,L.jsxs)(B,{items:`center`,gap:`$1.5`,children:[(0,L.jsx)(H,{fontSize:`$2`,fontWeight:`600`,color:`$color12`,numberOfLines:1,children:t.label}),n?(0,L.jsx)(H,{fontSize:10,fontWeight:`600`,color:`$color10`,px:`$1.5`,py:1,rounded:`$2`,bg:`$color4`,children:`Current`}):null]}),(0,L.jsx)(H,{fontSize:`$1`,color:`$color10`,numberOfLines:1,children:t.description})]}),n?(0,L.jsx)(Dj,{size:14,color:`$color12`}):null]},t.id)})})]})})]}),(0,L.jsxs)(dD,{open:v,onOpenChange:y,placement:`bottom-start`,allowFlip:!0,stayInFrame:!0,children:[(0,L.jsx)(dD.Trigger,{asChild:!0,children:(0,L.jsxs)(B,{role:`button`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$1.5`,height:30,px:`$2`,rounded:`$3`,hoverStyle:{bg:`$color3`},"aria-label":`Current organization: ${D}. Click to switch organization.`,"data-testid":`business-org-subtitle-trigger`,children:[(0,L.jsx)(l6,{org:{name:D,logo:o?.logo},size:20}),(0,L.jsx)(H,{fontSize:`$2`,fontWeight:`600`,color:`$color12`,numberOfLines:1,maxW:180,children:D}),(0,L.jsx)(Oj,{size:12,color:`$color10`})]})}),(0,L.jsx)(dD.Content,{role:`menu`,"aria-label":`Switch organization`,borderWidth:1,elevation:`$4`,p:`$2`,width:260,bg:`$background`,borderColor:`$borderColor`,rounded:`$4`,style:{zIndex:1e5},children:(0,L.jsxs)(z,{gap:`$1`,width:`100%`,children:[(0,L.jsx)(B,{px:`$2`,py:`$1`,items:`center`,justify:`space-between`,children:(0,L.jsx)(H,{fontSize:`$1`,fontWeight:`700`,color:`$color10`,textTransform:`uppercase`,letterSpacing:.5,children:`Switch organization`})}),s.map(e=>{let t=e.name===o?.name,n=e.displayName?.trim()||e.name;return(0,L.jsxs)(B,{role:`menuitem`,"aria-checked":t,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,bg:t?`$color3`:`transparent`,hoverStyle:{bg:`$color3`},onPress:()=>{y(!1),c?.(e.name)},children:[(0,L.jsx)(l6,{org:{name:n,logo:e.logo},size:20}),(0,L.jsx)(H,{flex:1,fontSize:`$2`,fontWeight:t?`600`:`500`,color:`$color12`,numberOfLines:1,children:n}),t?(0,L.jsx)(Dj,{size:14,color:`$color12`}):null]},e.name)}),l||u?(0,L.jsx)(pD,{borderColor:`$borderColor`,my:`$1`}):null,l?(0,L.jsxs)(B,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{y(!1),l()},children:[(0,L.jsx)(wj,{size:14,color:`$color10`}),(0,L.jsx)(H,{fontSize:`$2`,color:`$color12`,children:`All organizations…`})]}):null,u?(0,L.jsxs)(B,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{y(!1),u()},children:[(0,L.jsx)(fM,{size:14,color:`$color10`}),(0,L.jsx)(H,{fontSize:`$2`,color:`$color12`,children:`Create organization`})]}):null]})})]})]}),(0,L.jsx)(B,{flex:1,items:`center`,justify:`center`,gap:`$1.5`,minW:0,px:`$2`,children:f??(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(B,{items:`center`,gap:2,shrink:0,children:[(0,L.jsx)(B,{role:`button`,tabIndex:0,cursor:`pointer`,width:26,height:26,rounded:`$2`,items:`center`,justify:`center`,hoverStyle:{bg:`$color3`},"aria-label":`Go back`,onPress:()=>{typeof window<`u`&&window.history.back()},children:(0,L.jsx)(_j,{size:14,color:`$color10`})}),(0,L.jsx)(B,{role:`button`,tabIndex:0,cursor:`pointer`,width:26,height:26,rounded:`$2`,items:`center`,justify:`center`,hoverStyle:{bg:`$color3`},"aria-label":`Go forward`,onPress:()=>{typeof window<`u`&&window.history.forward()},children:(0,L.jsx)(vj,{size:14,color:`$color10`})}),(0,L.jsx)(B,{role:`button`,tabIndex:0,cursor:`pointer`,width:26,height:26,rounded:`$2`,items:`center`,justify:`center`,hoverStyle:{bg:`$color3`},"aria-label":`Recent activity`,onPress:()=>S(!0),children:(0,L.jsx)(Ij,{size:13,color:`$color10`})})]}),(0,L.jsxs)(dD,{open:x,onOpenChange:S,placement:`bottom`,allowFlip:!0,stayInFrame:!0,children:[(0,L.jsx)(dD.Trigger,{asChild:!0,children:(0,L.jsxs)(B,{role:`button`,tabIndex:0,cursor:`pointer`,flex:1,maxW:460,height:28,px:`$2.5`,rounded:`$3`,bg:`$color2`,borderWidth:1,borderColor:`$borderColor`,items:`center`,justify:`space-between`,hoverStyle:{bg:`$color3`},"aria-label":`Search ${D}`,"data-testid":`slack-top-search-trigger`,children:[(0,L.jsxs)(B,{items:`center`,gap:`$2`,minW:0,flex:1,children:[(0,L.jsx)(mM,{size:13,color:`$color10`}),(0,L.jsx)(H,{fontSize:12,color:`$color10`,numberOfLines:1,children:`Search ${D}…`})]}),(0,L.jsx)(H,{fontSize:10,fontWeight:`600`,color:`$color9`,px:`$1.5`,py:1,rounded:`$2`,bg:`$color3`,children:`⌘K`})]})}),(0,L.jsx)(dD.Content,{role:`dialog`,"aria-label":`Jump to channel, bot, or surface`,borderWidth:1,elevation:`$4`,p:`$2`,width:460,bg:`$background`,borderColor:`$borderColor`,rounded:`$4`,style:{zIndex:1e5},children:(0,L.jsxs)(z,{gap:`$2`,width:`100%`,children:[(0,L.jsxs)(B,{height:34,px:`$2.5`,items:`center`,gap:`$2`,rounded:`$3`,bg:`$color2`,borderWidth:1,borderColor:`$borderColor`,children:[(0,L.jsx)(mM,{size:14,color:`$color10`}),(0,L.jsx)(gA,{flex:1,height:30,fontSize:13,borderWidth:0,bg:`transparent`,placeholder:`Jump to a channel, 24/7 bot, issue board, or CRM view…`,value:C,onChangeText:w,autoFocus:!0})]}),(0,L.jsx)(z,{gap:`$0.5`,maxH:340,style:{overflowY:`auto`},children:k.map(e=>(0,L.jsxs)(B,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2.5`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>j(e.path),children:[(0,L.jsx)(z,{width:24,height:24,rounded:`$2`,bg:`$color3`,items:`center`,justify:`center`,shrink:0,children:e.kind===`bot`?(0,L.jsx)(xj,{size:13,color:`$color11`}):e.kind===`channel`?(0,L.jsx)(Yj,{size:13,color:`$color11`}):(0,L.jsx)(bM,{size:13,color:`$color11`})}),(0,L.jsxs)(z,{flex:1,minW:0,children:[(0,L.jsx)(H,{fontSize:12,fontWeight:`600`,color:`$color12`,numberOfLines:1,children:e.label}),(0,L.jsx)(H,{fontSize:11,color:`$color10`,numberOfLines:1,children:e.desc})]})]},e.id))})]})})]})]})}),(0,L.jsx)(B,{items:`center`,gap:`$1.5`,shrink:0,children:p??(0,L.jsx)(f6,{})})]})}function C_e({user:e,currentOrg:t,orgs:n=[],onSelectOrg:r,onCreateOrg:i,onConnectOrg:a,accounts:o=[],onSwitchAccount:s,onAddAccount:c,onSettings:l,onSignOut:u}){let[d,f]=(0,b.useState)(!1),p=t?.displayName?.trim()||t?.name||`Hanzo AI`,m=g_e(e?.name,e?.email)||`Account`,h=e?.email||``,g=e?.sub||``,_=(()=>{let n=[],r=new Set;g&&(r.add(g),n.push({sub:g,owner:e?.owner||t?.name||`hanzo`,name:m,email:h||void 0,avatar:e?.avatar}));for(let e of o)e.sub&&!r.has(e.sub)&&(r.add(e.sub),n.push(e));return n})();return(0,L.jsxs)(dD,{open:d,onOpenChange:f,placement:`right-end`,allowFlip:!0,stayInFrame:!0,children:[(0,L.jsx)(dD.Trigger,{asChild:!0,children:(0,L.jsxs)(z,{role:`button`,tabIndex:0,cursor:`pointer`,width:36,height:36,rounded:Q.field,items:`center`,justify:`center`,position:`relative`,hoverStyle:{bg:`$color3`},"aria-label":`${m} · Account & settings`,"aria-haspopup":`menu`,"aria-expanded":d,"data-testid":`rail-account-menu-trigger`,onKeyDown:e=>{(e?.key===`Enter`||e?.key===` `)&&(e.preventDefault?.(),f(!d))},children:[e?.avatar||m?(0,L.jsx)(l6,{org:{name:m,logo:e?.avatar},size:30}):(0,L.jsx)(ose,{size:18}),(0,L.jsx)(z,{position:`absolute`,b:1,r:1,width:9,height:9,rounded:Q.pill,borderWidth:1.5,borderColor:`$background`,style:{backgroundColor:l5.done}})]})}),(0,L.jsx)(dD.Content,{role:`menu`,"aria-label":`Account menu`,borderWidth:1,elevation:`$4`,p:`$2`,width:300,bg:`$background`,borderColor:`$borderColor`,rounded:`$4`,style:{zIndex:1e5},children:(0,L.jsxs)(z,{gap:`$1`,width:`100%`,children:[(0,L.jsxs)(B,{items:`center`,gap:`$2.5`,px:`$2`,py:`$2`,rounded:`$3`,bg:`$color2`,children:[(0,L.jsx)(l6,{org:{name:m,logo:e?.avatar},size:36}),(0,L.jsxs)(z,{flex:1,minW:0,gap:1,children:[(0,L.jsx)(H,{fontSize:`$3`,fontWeight:`700`,color:`$color12`,numberOfLines:1,children:m}),h&&h!==m?(0,L.jsx)(H,{fontSize:`$1`,color:`$color10`,numberOfLines:1,children:h}):null,(0,L.jsxs)(B,{items:`center`,gap:`$1.5`,mt:2,children:[(0,L.jsx)(z,{width:6,height:6,rounded:Q.pill,style:{backgroundColor:l5.done}}),(0,L.jsxs)(H,{fontSize:11,fontWeight:`600`,color:`$color10`,children:[`Active · `,p]})]})]})]}),(0,L.jsx)(pD,{borderColor:`$borderColor`,my:`$1`}),(0,L.jsxs)(z,{gap:`$0.5`,children:[(0,L.jsxs)(B,{px:`$2`,py:`$1`,items:`center`,justify:`space-between`,children:[(0,L.jsx)(H,{fontSize:`$1`,fontWeight:`700`,color:`$color10`,textTransform:`uppercase`,letterSpacing:.5,children:`Switch account`}),(0,L.jsx)(H,{fontSize:11,color:`$color9`,children:`Identities`})]}),_.map(e=>{let t=!!(g&&e.sub===g),n=e.name||e.email||e.sub;return(0,L.jsxs)(B,{role:`menuitem`,"aria-checked":t,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,bg:t?`$color3`:`transparent`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),t||s?.(e)},children:[(0,L.jsx)(l6,{org:{name:n,logo:e.avatar},size:24}),(0,L.jsxs)(z,{flex:1,minW:0,children:[(0,L.jsx)(H,{fontSize:`$2`,fontWeight:t?`600`:`500`,color:`$color12`,numberOfLines:1,children:n}),(0,L.jsx)(H,{fontSize:`$1`,color:`$color10`,numberOfLines:1,children:e.email&&e.email!==n?e.email:t?`Current account`:`Identity · ${e.owner}`})]}),t?(0,L.jsx)(Dj,{size:14,color:`$color12`}):null]},e.sub)}),c?(0,L.jsxs)(B,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),c()},children:[(0,L.jsx)(z,{width:24,height:24,rounded:Q.pill,bg:`$color3`,items:`center`,justify:`center`,children:(0,L.jsx)(ase,{size:13,color:`$color11`})}),(0,L.jsx)(H,{fontSize:`$2`,fontWeight:`500`,color:`$color12`,children:`Add another account`})]}):null]}),(0,L.jsx)(pD,{borderColor:`$borderColor`,my:`$1`}),(0,L.jsxs)(z,{gap:`$0.5`,children:[(0,L.jsxs)(B,{px:`$2`,py:`$1`,items:`center`,justify:`space-between`,children:[(0,L.jsx)(H,{fontSize:`$1`,fontWeight:`700`,color:`$color10`,textTransform:`uppercase`,letterSpacing:.5,children:`Switch organization`}),(0,L.jsx)(H,{fontSize:11,color:`$color9`,children:p})]}),n.slice(0,5).map(e=>{let n=e.name===t?.name,i=e.displayName?.trim()||e.name;return(0,L.jsxs)(B,{role:`menuitem`,"aria-checked":n,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,bg:n?`$color3`:`transparent`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),n||r?.(e.name)},children:[(0,L.jsx)(l6,{org:{name:i,logo:e.logo},size:20}),(0,L.jsx)(H,{flex:1,fontSize:`$2`,fontWeight:n?`600`:`500`,color:`$color12`,numberOfLines:1,children:i}),n?(0,L.jsx)(Dj,{size:14,color:`$color12`}):null]},e.name)}),i?(0,L.jsxs)(B,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),i()},children:[(0,L.jsx)(z,{width:20,height:20,rounded:Q.field,bg:`$color3`,items:`center`,justify:`center`,children:(0,L.jsx)(fM,{size:12,color:`$color11`})}),(0,L.jsx)(H,{fontSize:`$2`,fontWeight:`500`,color:`$color12`,children:`Create new organization…`})]}):null,a?(0,L.jsxs)(B,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),a()},children:[(0,L.jsx)(z,{width:20,height:20,rounded:Q.field,bg:`$color3`,items:`center`,justify:`center`,children:(0,L.jsx)(gM,{size:12,color:`$color11`})}),(0,L.jsx)(H,{fontSize:`$2`,fontWeight:`500`,color:`$color12`,children:`Hanzo Connect (share channel)…`})]}):null]}),(0,L.jsx)(pD,{borderColor:`$borderColor`,my:`$1`}),(0,L.jsxs)(z,{gap:`$0.5`,children:[(0,L.jsxs)(B,{items:`center`,justify:`space-between`,px:`$2`,py:`$1.5`,rounded:`$3`,children:[(0,L.jsx)(H,{fontSize:`$2`,color:`$color12`,children:`Theme`}),(0,L.jsx)(f6,{})]}),l?(0,L.jsxs)(B,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),l()},children:[(0,L.jsx)(Qoe,{size:15,color:`$color10`}),(0,L.jsx)(H,{fontSize:`$2`,color:`$color12`,children:`Preferences & Bots`})]}):null]}),u?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(pD,{borderColor:`$borderColor`,my:`$1`}),(0,L.jsxs)(B,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),u()},children:[(0,L.jsx)(Woe,{size:15,color:X.alert}),(0,L.jsx)(H,{fontSize:`$2`,fontWeight:`500`,style:{color:X.alert},children:`Sign out`})]})]}):null]})})]})}var w_e=e=>e.replace(/<\/(p|div|li|h[1-6])>|<br\s*\/?>/gi,`
|
|
171
171
|
`).replace(/<[^>]*>/g,``).split(`
|
|
@@ -237,5 +237,5 @@ svg:active .hanzo-prs{transform:scale(.92)}
|
|
|
237
237
|
<path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="#ffffff"/>
|
|
238
238
|
<path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="#ffffff"/>
|
|
239
239
|
</g>
|
|
240
|
-
</svg>`}function U9(e={}){let{variant:t=`color`}=e,n=``;switch(t){case`mono`:n=Rbe();break;case`white`:n=zbe();break;case`favicon`:n=Bbe();break;default:n=Lbe()}return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(n)))}`}U9(),U9({variant:`mono`}),U9({variant:`white`}),U9({variant:`favicon`});function Vbe(){return`data:image/svg+xml;base64,`+btoa(unescape(encodeURIComponent(Ibe)))}Vbe();var W9=`hanzo_iam_`;`${W9}`;var Hbe=`${W9}code_verifier`;`${W9}`,`${W9}`,`${W9}`,`${W9}`,`${Hbe}`;var G9=(0,b.createContext)(null);G9.displayName=`IamContext`;function Ube(){let e=(0,b.useContext)(G9);if(!e)throw Error(`useIam() must be used within an <IamProvider>`);return e}var Wbe=`#181717`,Gbe=b.forwardRef(function({title:e=`GitHub`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=Wbe),(0,L.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,L.jsx)(`title`,{children:e}),(0,L.jsx)(`path`,{d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})]})}),Kbe=`#4285F4`,qbe=b.forwardRef(function({title:e=`Google`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=Kbe),(0,L.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,L.jsx)(`title`,{children:e}),(0,L.jsx)(`path`,{d:`M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z`})]})}),K9=`https://hanzo.ai`;function Jbe(e,t,n=K9){let r=new URL(e).searchParams,i=n.replace(/\/+$/,``);switch(t.kind){case`provider`:return r.set(`provider`,t.provider),`${i}/v1/iam/oauth/authorize?${r}`;case`email`:return r.set(`login_hint`,t.email),`${i}/login?${r}`;case`another`:return r.set(`prompt`,`select_account`),`${i}/login?${r}`;case`signup`:return`${i}/signup?${r}`;case`login`:return`${i}/login?${r}`}}function Ybe(e){let t=e.trim();return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?t:null}var Xbe={google:`Google`,github:`GitHub`};function Zbe(e){return e.request?(0,L.jsx)(q9,{...e,mint:e.request}):(0,L.jsx)(Qbe,{...e})}function Qbe(e){let{sdk:t}=Ube();return(0,L.jsx)(q9,{...e,mint:e=>t.getSigninUrl(e)})}function q9({title:e,line:t,providers:n=[`google`,`github`],signin:r=K9,signup:i=!0,termsHref:a=`https://hanzo.ai/terms`,privacyHref:o=`https://hanzo.ai/privacy`,authorize:s=e=>e,track:c,mint:l}){let{t:u}=YM(),[d,f]=(0,b.useState)(``),[p,m]=(0,b.useState)(null),[h,g]=(0,b.useState)(null);async function _(e,t,n){g(null),m(e),c?.(`signin_started`,{method:e});try{let e=await l(n?{additionalParams:{login_hint:n}}:void 0);window.location.assign(s(Jbe(e,t,r)))}catch(e){g(e instanceof Error&&e.message?e.message:`Signing in could not start. Try again.`),m(null)}}function v(e){e.preventDefault();let t=Ybe(d);if(!t){g(`Enter your email address.`);return}_(`email`,{kind:`email`,email:t},t)}return(0,L.jsxs)(z,{width:`100%`,maxW:400,items:`center`,gap:`$4`,children:[e?(0,L.jsx)(bh,{render:`h1`,size:`$8`,fontWeight:`500`,color:`$ink`,m:0,text:`center`,children:e}):null,t?(0,L.jsx)(yh,{size:`$3`,color:`$quiet`,m:0,text:`center`,maxW:360,children:t}):null,(0,L.jsx)(z,{width:`100%`,gap:`$2.5`,mt:e||t?`$2`:0,children:n.map(e=>(0,L.jsxs)(q,{type:`button`,variant:`secondary`,size:`lg`,rounded:`$10`,width:`100%`,disabled:p!==null,onClick:()=>void _(e,{kind:`provider`,provider:e}),children:[e===`google`?(0,L.jsx)(qbe,{size:16}):(0,L.jsx)(Gbe,{size:16}),u(`Continue with {provider}`,{provider:Xbe[e]})]},e))}),n.length?(0,L.jsx)(z,{width:`100%`,children:(0,L.jsx)(CI,{children:u(`or`)})}):null,(0,L.jsxs)(z,{render:(0,L.jsx)(`form`,{onSubmit:v,noValidate:!0}),width:`100%`,gap:`$3`,children:[(0,L.jsx)(SI,{gap:`$2`,children:(0,L.jsx)(NI,{id:`hanzo-signin-email`,type:`email`,name:`email`,autoComplete:`username`,"aria-label":u(`Email`),value:d,onChangeText:f,placeholder:`you@company.com`})}),h?(0,L.jsx)(TI,{children:u(h)}):null,(0,L.jsx)(q,{type:`submit`,size:`lg`,rounded:`$10`,width:`100%`,bg:`$ink`,color:`$background`,borderColor:`$ink`,hoverStyle:{opacity:.92},disabled:p!==null,children:u(`Continue with email`)})]}),i?(0,L.jsxs)(yh,{size:`$2`,color:`$quiet`,m:0,children:[`${u(`New to Hanzo?`)} `,(0,L.jsx)(q,{type:`button`,variant:`link`,size:`sm`,px:0,height:`auto`,disabled:p!==null,onClick:()=>void _(`signup`,{kind:`signup`}),children:u(`Create account`)})]}):null,(0,L.jsx)(yh,{size:`$1`,color:`$quiet`,m:0,text:`center`,maxW:400,children:u(`By continuing, you agree to Hanzo's {terms} and {privacy}.`,{terms:(0,L.jsx)(uA,{href:a,color:`$ink`,textDecorationLine:`underline`,children:u(`Terms`)}),privacy:(0,L.jsx)(uA,{href:o,color:`$ink`,textDecorationLine:`underline`,children:u(`Privacy Policy`)})})})]})}var $be=()=>{let{land:e}=K2(),[t,n]=(0,b.useState)(null);return(0,b.useEffect)(()=>{e().then(e=>window.location.replace(e)).catch(e=>n(e instanceof Error?e.message:String(e)))},[e]),(0,L.jsx)(z,{flex:1,items:`center`,justify:`center`,gap:m5.inset,bg:X.ground,children:t?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(V,{size:Z.body,color:X.alert,children:t}),(0,L.jsx)(V,{size:Z.small,color:X.mute,onPress:()=>window.location.replace(`/login`),children:`Try again`})]}):(0,L.jsx)(aL,{})})},exe=520,txe=[`general`,`engineering`,`revenue`,`support`],J9=`engineering`,nxe=()=>{let[e,t]=(0,b.useState)(!0);return(0,L.jsx)(`div`,{"aria-hidden":`true`,style:{width:`100%`,maxWidth:780},children:(0,L.jsxs)(z,{width:`100%`,rounded:Q.panel,bg:X.panel,borderWidth:1,borderColor:X.rule,overflow:`hidden`,onLayout:e=>t(e.nativeEvent.layout.width>=exe),children:[(0,L.jsxs)(B,{px:m5.inset,py:m5.tight,gap:m5.tight,items:`center`,borderBottomWidth:1,borderColor:X.rule,children:[[0,1,2].map(e=>(0,L.jsx)(z,{width:8,height:8,rounded:Q.pill,bg:X.rule},e)),(0,L.jsx)(V,{size:Z.chip,color:X.dim,ml:m5.tight,children:`hanzo.team`})]}),(0,L.jsxs)(B,{children:[e?(0,L.jsxs)(z,{width:168,p:m5.inset,gap:m5.tight,borderRightWidth:1,borderColor:X.rule,children:[(0,L.jsx)(V,{...h5,size:Z.chip,color:X.dim,children:`Channels`}),txe.map(e=>(0,L.jsx)(B,{px:m5.tight,py:4,rounded:Q.field,bg:e===J9?X.card:void 0,children:(0,L.jsxs)(V,{size:Z.small,color:e===J9?X.ink:X.mute,children:[`# `,e]})},e))]}):null,(0,L.jsxs)(z,{flex:1,minW:0,p:m5.inset,gap:m5.inset,children:[(0,L.jsxs)(V,{size:Z.small,color:X.ink,fontWeight:`600`,children:[`# `,J9]}),(0,L.jsx)(Y9,{who:`Ana`,text:`@dev refunds are missing from the checkout webhook. Can you take it?`}),(0,L.jsx)(Y9,{who:`Dev`,agent:!0,text:`On it. Fixed the handler and opened a pull request: 14 of 14 checks pass.`,children:(0,L.jsxs)(B,{mt:m5.tight,p:m5.tight,gap:m5.tight,items:`center`,rounded:Q.card,bg:X.card,borderWidth:1,borderColor:X.rule,children:[(0,L.jsx)(z,{width:8,height:8,rounded:Q.pill,bg:l5.doing}),(0,L.jsx)(V,{size:Z.chip,color:X.dim,children:`TEAM-142`}),(0,L.jsx)(V,{size:Z.small,color:X.ink,flex:1,minW:0,numberOfLines:1,children:`Refunds missing from checkout webhook`}),(0,L.jsx)(V,{size:Z.chip,color:X.mute,children:`In review`})]})}),(0,L.jsxs)(B,{items:`center`,gap:m5.tight,children:[(0,L.jsx)(aL,{size:16}),(0,L.jsx)(V,{size:Z.small,color:X.dim,children:`Dev is deploying the fix…`})]})]})]})]})})},Y9=({who:e,agent:t=!1,text:n,children:r})=>(0,L.jsxs)(B,{gap:m5.tight,items:`flex-start`,children:[(0,L.jsx)(z,{width:26,height:26,rounded:Q.pill,items:`center`,justify:`center`,style:d5(e),shrink:0,children:(0,L.jsx)(V,{size:Z.chip,fontWeight:`700`,style:{color:d5(e).color},children:e[0]})}),(0,L.jsxs)(z,{flex:1,minW:0,gap:2,children:[(0,L.jsxs)(B,{items:`center`,gap:m5.tight,children:[(0,L.jsx)(V,{size:Z.small,color:X.ink,fontWeight:`600`,children:e}),t?(0,L.jsx)(B,{px:6,py:1,rounded:Q.field,borderWidth:1,borderColor:X.rule,children:(0,L.jsx)(V,{size:Z.chip,color:X.mute,children:`Agent`})}):null]}),(0,L.jsx)(V,{size:Z.small,color:X.mute,children:n}),r]})]}),rxe=[[`Channels`,`Your people and your agents, in one conversation.`],[`Agents`,`Hand an agent the work; it reports back when it is done.`],[`Issue boards`,`Every task from backlog to done, on one board.`]],ixe=()=>(0,L.jsx)(B,{width:`100%`,maxW:780,gap:m5.wide,flexWrap:`wrap`,children:rxe.map(([e,t])=>(0,L.jsxs)(z,{flex:1,minW:200,gap:4,children:[(0,L.jsx)(V,{size:Z.body,color:X.ink,fontWeight:`600`,children:e}),(0,L.jsx)(V,{size:Z.small,color:X.mute,children:t})]},e))}),axe=`https://pay.hanzo.ai/cart`,oxe=(e,t)=>{let n=new URL(axe);return new URLSearchParams(e).forEach((e,t)=>n.searchParams.set(t,e)),n.searchParams.get(`plan`)||n.searchParams.set(`plan`,`team`),n.searchParams.set(`returnUrl`,`${t}/`),n.toString()},sxe=`/auth/callback`,$=`https://hanzo.ai`,X9=`https://docs.hanzo.ai`,cxe=`https://github.com/hanzoai`,lxe=`https://status.hanzo.ai`,uxe=`https://hanzo.agency`,dxe=`https://hanzo.university`,fxe=[{label:`Features`,href:`https://hanzo.ai/team`},{label:`Docs`,href:`https://docs.hanzo.ai`},{label:`Hanzo Bot`,href:`https://hanzo.bot`},{label:`Hanzo App`,href:`https://hanzo.app`},{label:`API Platform`,href:`https://platform.hanzo.ai`},{label:`Hanzo AI`,href:`https://hanzo.ai`}],pxe=[{id:`damon`,name:`Damon Motorcycles`,logo:`/logos/customers/damon-motorcycles.svg`,href:`${$}/customers/damon-motorcycles`},{id:`kanoa`,name:`KANOA`,logo:`/logos/customers/kanoa.png`,href:`${$}/customers/kanoa`},{id:`skully`,name:`SKULLY`,logo:`/logos/customers/skully.png`,href:`${$}/customers#skully`},{id:`bellabeat`,name:`Bellabeat`,logo:`/logos/customers/bellabeat.svg`,href:`${$}/customers#bellabeat`},{id:`stoned`,name:`STONED Audio`,logo:`/logos/customers/stoned.svg`,href:`${$}/customers#stoned`},{id:`unikrn`,name:`Unikrn`,logo:`/logos/customers/unikoin-gold.svg`,href:`${$}/customers#unikoin-gold`},{id:`arca`,name:`Arca`,logo:`/logos/customers/arca.png`,href:`${$}/customers#arca`},{id:`casper`,name:`Casper Labs`,logo:`/logos/customers/casper-blockchain.svg`,href:`${$}/customers#casper-blockchain`},{id:`triller`,name:`Triller`,logo:`/logos/customers/trillerfest.png`,href:`${$}/customers#trillerfest`},{id:`cover`,name:`Cover Build`,logo:`/logos/customers/cover-build.svg`,href:`${$}/customers#cover-build`},{id:`myle`,name:`Myle Tap`,logo:`/logos/customers/myle-tap.png`,href:`${$}/customers#myle-tap`},{id:`keek`,name:`Personas Social`,logo:`/logos/customers/keek-social.svg`,href:`${$}/customers#keek-social`}],mxe=[[{title:`Products`,href:`${$}/products`,links:[{label:`Hanzo App`,href:`https://hanzo.app`},{label:`Hanzo Dev`,href:`${$}/dev`},{label:`Hanzo Bot`,href:`https://hanzo.bot`},{label:`Hanzo Team`,href:`https://hanzo.team`},{label:`Hanzo Science`,href:`${$}/science`},{label:`Hanzo Security`,href:`${$}/security`},{label:`Download app`,href:`${$}/download`},{label:`Pricing`,href:`${$}/pricing`},{label:`Log in`,href:`/login`}]},{title:`Capabilities`,links:[{label:`Hanzo Design`,href:`${$}/design`},{label:`MCP`,href:`${$}/mcp`},{label:`Skills`,href:`${$}/skills`},{label:`Integrations`,href:`${$}/integrations`},{label:`Hanzo CLI`,href:`${$}/cli`}]},{title:`Extensions`,links:[{label:`Hanzo in Chrome`,href:`${$}/extension`},{label:`Desktop app`,href:`${$}/desktop`},{label:`Hanzo IDE`,href:`${$}/ide`}]},{title:`Models`,href:`${$}/models`,links:[{label:`All models`,href:`${$}/models`},{label:`Zen`,href:`${$}/zen`},{label:`Enso`,href:`${$}/enso`},{label:`Kai`,href:`${$}/kai`},{label:`Video · Koma`,href:`${$}/koma`},{label:`Images · Iro`,href:`${$}/iro`},{label:`3D · Mori`,href:`${$}/mori`},{label:`Voice · Koe`,href:`${$}/koe`},{label:`Benchmarks`,href:`${$}/benchmarks`}]}],[{title:`Enterprise`,href:`${$}/enterprise`,links:[{label:`Overview`,href:`${$}/enterprise`},{label:`All solutions`,href:`${$}/solutions`},{label:`Customer stories`,href:`${$}/customers`},{label:`Contact sales`,href:`${$}/contact-sales`}]},{title:`Teams`,href:`${$}/solutions`,links:[{label:`Engineering`,href:`${$}/solutions/engineering`},{label:`Operations`,href:`${$}/solutions/operations`},{label:`Finance`,href:`${$}/solutions/finance`},{label:`Data`,href:`${$}/solutions/data`},{label:`Sales`,href:`${$}/solutions/sales`},{label:`Marketing`,href:`${$}/solutions/marketing`},{label:`Design`,href:`${$}/solutions/design`}]},{title:`Industries`,href:`${$}/solutions`,links:[{label:`Cybersecurity`,href:`${$}/solutions/cybersecurity`},{label:`Financial services`,href:`${$}/solutions/financial-services`},{label:`Government`,href:`${$}/solutions/government`},{label:`Healthcare`,href:`${$}/solutions/healthcare`},{label:`Education`,href:`${$}/solutions/education`},{label:`Law`,href:`${$}/solutions/law`},{label:`Retail`,href:`${$}/solutions/retail`}]},{title:`Programs`,href:`${$}/startups`,links:[{label:`Startups`,href:`${$}/startups`},{label:`Affiliate program`,href:`${$}/affiliate`},{label:`Referral program`,href:`${$}/referral`},{label:`Reserved tier`,href:`${$}/solutions/reserved`},{label:`OSS grants`,href:`${$}/open-source`}]}],[{title:`Developers`,href:X9,links:[{label:`Developer docs`,href:X9},{label:`API reference`,href:`${X9}/docs/openapi/`},{label:`Quickstart`,href:`${X9}/docs/quickstart/`},{label:`SDKs`,href:`${$}/sdks`},{label:`Console`,href:`https://platform.hanzo.ai`},{label:`GitHub`,href:cxe}]},{title:`API Platform`,href:`${$}/platform`,links:[{label:`Overview`,href:`${$}/platform`},{label:`API keys`,href:`https://platform.hanzo.ai/settings/organization/keys`},{label:`Gateway`,href:`${$}/gateway`},{label:`Agents`,href:`${$}/agents`},{label:`Playground`,href:`${$}/playground`}]},{title:`Cloud`,href:`${$}/products`,links:[{label:`Base`,href:`${$}/base`},{label:`Machines`,href:`${$}/machines`},{label:`Search`,href:`${$}/search`},{label:`Datastore`,href:`${$}/datastore`},{label:`Memory`,href:`${$}/products/memory`},{label:`Realtime`,href:`${$}/realtime`},{label:`Observability`,href:`${$}/o11y`},{label:`Insights`,href:`${$}/insights`},{label:`Commerce`,href:`${$}/commerce`}]},{title:`Help and security`,links:[{label:`Availability`,href:lxe},{label:`Help center`,href:`${$}/support`},{label:`Security and compliance`,href:`${$}/security`},{label:`Trust & transparency`,href:`${$}/trust`}]}],[{title:`Company`,href:`${$}/about`,links:[{label:`Hanzo AI`,href:`${$}/about`},{label:`Careers`,href:`${$}/careers`},{label:`Philosophy`,href:`${$}/philosophy`},{label:`Research`,href:`${$}/research`},{label:`News`,href:`${$}/press`},{label:`Investors`,href:`${$}/investors`},{label:`Brand`,href:`${$}/brand`},{label:`Open source`,href:`${$}/open-source`},{label:`Contact`,href:`${$}/contact`}]},{title:`Resources`,href:`${$}/learn`,links:[{label:`Blog`,href:`${$}/blog`},{label:`Guides`,href:`${X9}/docs/guides/`},{label:`Cookbook`,href:`${X9}/docs/guides/cookbook/`},{label:`Hanzo University`,href:dxe},{label:`Hanzo Agency`,href:uxe},{label:`Cost calculator`,href:`${$}/calculator`}]},{title:`Terms and policies`,href:`${$}/legal`,links:[{label:`Privacy choices`,href:`${$}/privacy#choices`},{label:`Privacy policy`,href:`${$}/privacy`},{label:`Terms of service`,href:`${$}/terms`},{label:`Usage policy`,href:`${$}/aup`},{label:`Cookie policy`,href:`${$}/cookies`},{label:`Other policies`,href:`${$}/legal`}]}]],hxe=[{label:`Discord`,href:`https://discord.gg/XthHQQj`},{label:`Telegram`,href:`https://t.me/hanzoai`},{label:`X`,href:`https://x.com/hanzoai`},{label:`GitHub`,href:`https://github.com/hanzoai`},{label:`LinkedIn`,href:`https://linkedin.com/company/hanzo-ai`},{label:`Facebook`,href:`https://facebook.com/hanzoinc`},{label:`Bluesky`,href:`https://bsky.app/profile/hanzoai.bsky.social`},{label:`Reddit`,href:`https://www.reddit.com/r/HanzoAI/`},{label:`TikTok`,href:`https://www.tiktok.com/@hanzoinc`},{label:`Instagram`,href:`https://www.instagram.com/hanzoinc`}];function gxe(){let e=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let t=e.current,n=t?.parentElement;if(!t||!n)return;let r=t.getContext(`2d`);if(!r)return;let i=.14,a=0,o=0,s=1,c=0,l={x:-9999,y:-9999},u={x:-9999,y:-9999},d=()=>{let e=n.getBoundingClientRect();s=Math.min(window.devicePixelRatio||1,2),a=e.width,o=e.height,t.width=Math.max(1,Math.round(a*s)),t.height=Math.max(1,Math.round(o*s)),r.setTransform(s,0,0,s,0,0)},f=e=>{let n=(e||0)*.001;r.clearRect(0,0,a,o),r.fillStyle=getComputedStyle(t).color;let i=Math.ceil(a/14),s=Math.ceil(o/14),c=(a-(i-1)*14)*.5,u=(o-(s-1)*14)*.5,d=a*.5,f=o*.45,p=a*.56,m=o*.58,h=l.x,g=l.y,_=h>-999,v=a*(.5+.28*Math.cos(n*.42)),y=o*(.45+.22*Math.sin(n*.31)),b=a*(.5+.32*Math.sin(n*.27+1.8)),x=o*(.48+.24*Math.cos(n*.36+.9)),S=Math.max(a,o)*.28,C=1/(S*S);for(let e=0;e<s;e++){let t=u+e*14,a=(t-f)/m;for(let o=0;o<i;o++){let i=c+o*14,s=(i-d)/p,l=Math.hypot(s,a),u=Math.max(0,Math.min(1,(l-.16)/.88)),f=Math.max(0,1-Math.max(0,l-.72)*1.45),m=.5+.5*Math.sin(o*.18+e*.14-n*1.15+Math.cos(o*.09-e*.11+n*.65)*1.3),S=(i-v)*(i-v)+(t-y)*(t-y),w=(i-b)*(i-b)+(t-x)*(t-x),T=Math.exp(-S*C)*.65+Math.exp(-w*C)*.55,E=(.7+u*2.1+m*.42+T*.95)*(.45+f*.55),D=(.045+u*.18+m*.035+T*.11)*f;if(_){let e=i-h,n=t-g,r=e*e+n*n;if(r<36100){let e=1-Math.sqrt(r)/190,t=e*e*(3-2*e);E+=t*1.9,D=Math.min(.68,D+t*.34)}}D<.01||E<.3||(r.globalAlpha=D,r.beginPath(),r.arc(i,t,E,0,Math.PI*2),r.fill())}}r.globalAlpha=1},p=e=>{l.x+=(u.x-l.x)*i,l.y+=(u.y-l.y)*i,f(e),c=requestAnimationFrame(p)},m=e=>{let t=n.getBoundingClientRect();u.x=e.clientX-t.left,u.y=e.clientY-t.top,l.x<-999&&(l.x=u.x,l.y=u.y)},h=()=>{u.x=-9999,u.y=-9999};d(),c=requestAnimationFrame(p);let g=new ResizeObserver(()=>d());return g.observe(n),n.addEventListener(`pointermove`,m,{passive:!0}),n.addEventListener(`pointerleave`,h,{passive:!0}),()=>{cancelAnimationFrame(c),g.disconnect(),n.removeEventListener(`pointermove`,m),n.removeEventListener(`pointerleave`,h)}},[]),(0,L.jsx)(`canvas`,{ref:e,"aria-hidden":`true`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,pointerEvents:`none`,zIndex:0,color:`var(--foreground)`}})}var _xe=()=>{let{standing:e,depart:t,request:n}=K2(),[r,i]=(0,b.useState)(null);if(e===`in`)return null;let a=(e,n)=>{i(e),t(n).catch(()=>i(null))},o=r!==null;return(0,L.jsxs)(z,{flex:1,bg:X.ground,overflow:`scroll`,children:[(0,L.jsxs)(B,{width:`100%`,minH:68,px:m5.wide,py:m5.tight,items:`center`,justify:`space-between`,borderBottomWidth:1,borderColor:X.rule,bg:X.panel,style:{position:`sticky`,top:0,zIndex:40},children:[(0,L.jsx)(B,{items:`center`,gap:m5.tight,cursor:`pointer`,onPress:()=>window.location.assign(`/`),children:(0,L.jsx)(V,{size:Z.row,color:X.ink,fontWeight:`600`,children:c2.title})}),(0,L.jsxs)(B,{items:`center`,gap:m5.tight,flexWrap:`wrap`,children:[fxe.map(e=>(0,L.jsx)(q,{size:`sm`,chromeless:!0,rounded:Q.pill,onPress:()=>window.location.assign(e.href),children:(0,L.jsx)(V,{size:Z.small,color:X.mute,children:e.label})},e.label)),(0,L.jsx)(q,{size:`sm`,variant:`outline`,rounded:Q.field,onPress:()=>window.location.assign(`https://hanzo.ai/contact-sales`),children:(0,L.jsx)(V,{size:Z.small,color:X.ink,children:`Contact sales`})}),(0,L.jsx)(q,{size:`sm`,chromeless:!0,rounded:Q.field,disabled:o,onPress:()=>a(`nav`,`login`),children:(0,L.jsx)(V,{size:Z.small,color:X.ink,children:`Log in`})}),(0,L.jsx)(q,{size:`sm`,rounded:Q.field,disabled:o,onPress:()=>a(`open`,`login`),children:(0,L.jsx)(V,{size:Z.small,color:X.ink,fontWeight:`600`,children:((e,t)=>r===e?`One moment…`:t)(`open`,`Open Hanzo Team`)})})]})]}),(0,L.jsxs)(`main`,{className:`hz-signin`,children:[(0,L.jsx)(gxe,{}),(0,L.jsxs)(`div`,{className:`hz-signin-row`,children:[(0,L.jsx)(`div`,{className:`hz-signin-copy`,children:(0,L.jsx)(Zbe,{title:`Sign in to Hanzo ${c2.title}`,line:`AI cockpit, live streams, issue boards, channels, and bots for your team.`,request:n,termsHref:`${$}/terms`,privacyHref:`${$}/privacy`})}),(0,L.jsxs)(`div`,{className:`hz-signin-figure`,children:[(0,L.jsx)(nxe,{}),(0,L.jsx)(ixe,{})]})]})]}),(0,L.jsxs)(z,{width:`100%`,items:`center`,px:m5.wide,py:m5.edge,gap:m5.inset,bg:X.ground,children:[(0,L.jsx)(V,{size:Z.small,color:X.mute,fontWeight:`500`,style:{textAlign:`center`},children:`Companies building with the Hanzo API`}),(0,L.jsx)(`div`,{className:`hz-mq-view`,children:(0,L.jsx)(`div`,{className:`hz-mq-track`,children:[0,1].map(e=>pxe.map(t=>{let n=e>0;return(0,L.jsx)(`a`,{href:t.href,className:`hz-logo`,"aria-label":n?void 0:t.name,"aria-hidden":n||void 0,tabIndex:n?-1:void 0,target:`_blank`,rel:`noopener noreferrer`,title:t.name,children:(0,L.jsx)(`img`,{src:t.logo,alt:n?``:t.name,loading:`lazy`})},`${e}-${t.id}`)}))})})]}),(0,L.jsx)(z,{width:`100%`,borderTopWidth:1,borderColor:X.rule,bg:X.panel,px:m5.wide,py:m5.edge,children:(0,L.jsxs)(z,{width:`100%`,maxW:1240,mx:`auto`,gap:m5.edge,children:[(0,L.jsxs)(B,{justify:`space-between`,items:`flex-start`,gap:m5.edge,flexWrap:`wrap`,children:[(0,L.jsx)(z,{minW:160,gap:m5.tight,children:(0,L.jsxs)(B,{items:`center`,gap:m5.tight,cursor:`pointer`,onPress:()=>window.location.assign($),children:[(0,L.jsx)(z,{width:22,height:22,rounded:Q.field,bg:X.ink,items:`center`,justify:`center`,children:(0,L.jsx)(V,{size:Z.small,color:X.ground,fontWeight:`700`,children:`H`})}),(0,L.jsx)(V,{size:Z.row,color:X.ink,fontWeight:`600`,children:`Hanzo`})]})}),(0,L.jsx)(B,{gap:m5.edge,flexWrap:`wrap`,grow:1,justify:`space-between`,children:mxe.map((e,t)=>(0,L.jsx)(z,{minW:150,gap:m5.inset,children:e.map(e=>(0,L.jsxs)(z,{gap:m5.tight,children:[(0,L.jsx)(V,{size:Z.small,color:X.ink,fontWeight:`600`,cursor:e.href?`pointer`:void 0,onPress:e.href?()=>window.location.assign(e.href):void 0,style:{lineHeight:`1.35`},children:e.title}),(0,L.jsx)(z,{style:{gap:`2.5px`},children:e.links.map(e=>(0,L.jsx)(V,{size:Z.small,color:X.mute,cursor:`pointer`,onPress:()=>window.location.assign(e.href),style:{lineHeight:`1.32`},children:e.label},e.href+e.label))})]},e.title))},t))})]}),(0,L.jsx)(B,{pt:m5.inset,borderTopWidth:1,borderColor:X.rule,items:`center`,flexWrap:`wrap`,style:{columnGap:`24px`,rowGap:`8px`},children:hxe.map(e=>(0,L.jsxs)(V,{size:Z.small,color:X.mute,cursor:`pointer`,onPress:()=>window.location.assign(e.href),style:{lineHeight:`1.35`},children:[e.label,` ↗`]},e.label))}),(0,L.jsxs)(B,{pt:m5.inset,borderTopWidth:1,borderColor:X.rule,items:`center`,justify:`space-between`,flexWrap:`wrap`,gap:m5.tight,children:[(0,L.jsx)(V,{size:Z.chip,color:X.dim,children:`© 2026 Hanzo AI, Inc. All rights reserved.`}),(0,L.jsx)(B,{gap:m5.inset,flexWrap:`wrap`,children:[[`Terms`,`${$}/terms`],[`Privacy`,`${$}/privacy`],[`Usage policy`,`${$}/aup`],[`Privacy choices`,`${$}/privacy#choices`]].map(([e,t])=>(0,L.jsx)(V,{size:Z.chip,color:X.dim,cursor:`pointer`,onPress:()=>window.location.assign(t),children:e},e))})]})]})})]})},vxe=({children:e})=>{let{standing:t}=K2(),{standing:n,refusal:r,enrolment:i}=B4();return window.location.pathname===sxe?(0,L.jsx)($be,{}):window.location.pathname===`/start`?(0,L.jsx)(yxe,{to:oxe(window.location.search,window.location.origin)}):L4.on?(0,L.jsx)(L.Fragment,{children:e}):t===`unknown`?(0,L.jsx)(Z9,{}):t===`out`?(0,L.jsx)(_xe,{}):n===`stranger`?(0,L.jsx)(Q9,{title:`One more step`,body:`Set up your workspace to see your projects.`,children:(0,L.jsx)(q,{onPress:()=>window.location.assign(i),children:`Set up`})}):n===`refused`?(0,L.jsx)(Q9,{title:`Your workspace is not answering`,body:r?.message??``,children:(0,L.jsx)(q,{onPress:()=>window.location.reload(),children:`Try again`})}):n===`unknown`?(0,L.jsx)(Z9,{}):(0,L.jsx)(L.Fragment,{children:e})},yxe=({to:e})=>((0,b.useEffect)(()=>window.location.replace(e),[e]),(0,L.jsx)(Z9,{})),Z9=()=>(0,L.jsx)(z,{flex:1,items:`center`,justify:`center`,bg:X.ground,children:(0,L.jsx)(aL,{})}),Q9=({title:e,body:t,children:n})=>(0,L.jsxs)(z,{flex:1,items:`center`,justify:`center`,gap:m5.inset,bg:X.ground,p:m5.wide,children:[(0,L.jsx)(V,{size:Z.title,color:X.ink,children:e}),t?(0,L.jsx)(V,{size:Z.body,color:X.mute,children:t}):null,n]}),bxe=()=>na(Fbe),xxe=200,Sxe=()=>(0,L.jsxs)(Yfe,{children:[(0,L.jsx)(GN,{delay:xxe,children:(0,L.jsx)(kpe,{children:(0,L.jsxs)(dme,{children:[(0,L.jsx)(fve,{}),(0,L.jsx)(vxe,{children:(0,L.jsx)(lo,{children:(0,L.jsx)(bxe,{})})})]})})}),(0,L.jsx)(Qse,{theme:`dark`,position:`top-center`}),(0,L.jsx)(ope,{floating:!1})]});yr({token:()=>P2().getAccessToken()??void 0});var $9=document.getElementById(`root`);if(!$9)throw Error(`no #root`);(0,x.createRoot)($9).render((0,L.jsx)(b.StrictMode,{children:(0,L.jsx)(Sxe,{})}));export{_ as a,u as c,Co as i,Yp as n,p as o,Uo as r,s,d6 as t};
|
|
241
|
-
//# sourceMappingURL=index-
|
|
240
|
+
</svg>`}function U9(e={}){let{variant:t=`color`}=e,n=``;switch(t){case`mono`:n=Rbe();break;case`white`:n=zbe();break;case`favicon`:n=Bbe();break;default:n=Lbe()}return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(n)))}`}U9(),U9({variant:`mono`}),U9({variant:`white`}),U9({variant:`favicon`});function Vbe(){return`data:image/svg+xml;base64,`+btoa(unescape(encodeURIComponent(Ibe)))}Vbe();var W9=`hanzo_iam_`;`${W9}`;var Hbe=`${W9}code_verifier`;`${W9}`,`${W9}`,`${W9}`,`${W9}`,`${Hbe}`;var G9=(0,b.createContext)(null);G9.displayName=`IamContext`;function Ube(){let e=(0,b.useContext)(G9);if(!e)throw Error(`useIam() must be used within an <IamProvider>`);return e}var Wbe=`#181717`,Gbe=b.forwardRef(function({title:e=`GitHub`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=Wbe),(0,L.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,L.jsx)(`title`,{children:e}),(0,L.jsx)(`path`,{d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})]})}),Kbe=`#4285F4`,qbe=b.forwardRef(function({title:e=`Google`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=Kbe),(0,L.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,L.jsx)(`title`,{children:e}),(0,L.jsx)(`path`,{d:`M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z`})]})}),K9=`https://hanzo.ai`;function Jbe(e,t,n=K9){let r=new URL(e).searchParams,i=n.replace(/\/+$/,``);switch(t.kind){case`provider`:return r.set(`provider`,t.provider),`${i}/v1/iam/oauth/authorize?${r}`;case`email`:return r.set(`login_hint`,t.email),`${i}/login?${r}`;case`another`:return r.set(`prompt`,`select_account`),`${i}/login?${r}`;case`signup`:return`${i}/signup?${r}`;case`login`:return`${i}/login?${r}`}}function Ybe(e){let t=e.trim();return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?t:null}var Xbe={google:`Google`,github:`GitHub`};function Zbe(e){return e.request?(0,L.jsx)(q9,{...e,mint:e.request}):(0,L.jsx)(Qbe,{...e})}function Qbe(e){let{sdk:t}=Ube();return(0,L.jsx)(q9,{...e,mint:e=>t.getSigninUrl(e)})}function q9({title:e,line:t,providers:n=[`google`,`github`],signin:r=K9,signup:i=!0,termsHref:a=`https://hanzo.ai/terms`,privacyHref:o=`https://hanzo.ai/privacy`,authorize:s=e=>e,track:c,mint:l,background:u=`$background`,borderColor:d=`$borderColor`,bare:f=!1}){let{t:p}=YM(),[m,h]=(0,b.useState)(``),[g,_]=(0,b.useState)(null),[v,y]=(0,b.useState)(null);async function x(e,t,n){y(null),_(e),c?.(`signin_started`,{method:e});try{let e=await l(n?{additionalParams:{login_hint:n}}:void 0);window.location.assign(s(Jbe(e,t,r)))}catch(e){y(e instanceof Error&&e.message?e.message:`Signing in could not start. Try again.`),_(null)}}function S(e){e.preventDefault();let t=Ybe(m);if(!t){y(`Enter your email address.`);return}x(`email`,{kind:`email`,email:t},t)}return(0,L.jsxs)(z,{"data-slot":`signin-panel`,"data-surface":f?`bare`:`card`,width:`100%`,maxW:f?400:448,items:`center`,gap:`$4`,...f?{}:{bg:u,borderWidth:1,borderColor:d,rounded:`$6`,p:`$6`},children:[e?(0,L.jsx)(bh,{render:`h1`,size:`$8`,fontWeight:`500`,color:`$ink`,m:0,text:`center`,children:e}):null,t?(0,L.jsx)(yh,{size:`$3`,color:`$quiet`,m:0,text:`center`,maxW:360,children:t}):null,(0,L.jsx)(z,{width:`100%`,gap:`$2.5`,mt:e||t?`$2`:0,children:n.map(e=>(0,L.jsxs)(q,{type:`button`,variant:`secondary`,size:`lg`,rounded:`$10`,width:`100%`,disabled:g!==null,onClick:()=>void x(e,{kind:`provider`,provider:e}),children:[e===`google`?(0,L.jsx)(qbe,{size:16}):(0,L.jsx)(Gbe,{size:16}),p(`Continue with {provider}`,{provider:Xbe[e]})]},e))}),n.length?(0,L.jsx)(z,{width:`100%`,children:(0,L.jsx)(CI,{children:p(`or`)})}):null,(0,L.jsxs)(z,{render:(0,L.jsx)(`form`,{onSubmit:S,noValidate:!0}),width:`100%`,gap:`$3`,children:[(0,L.jsx)(SI,{gap:`$2`,children:(0,L.jsx)(NI,{id:`hanzo-signin-email`,type:`email`,name:`email`,autoComplete:`username`,"aria-label":p(`Email`),value:m,onChangeText:h,placeholder:`you@company.com`})}),v?(0,L.jsx)(TI,{children:p(v)}):null,(0,L.jsx)(q,{type:`submit`,size:`lg`,rounded:`$10`,width:`100%`,bg:`$ink`,color:`$background`,borderColor:`$ink`,hoverStyle:{opacity:.92},disabled:g!==null,children:p(`Continue with email`)})]}),i?(0,L.jsxs)(yh,{size:`$2`,color:`$quiet`,m:0,children:[`${p(`New to Hanzo?`)} `,(0,L.jsx)(q,{type:`button`,variant:`link`,size:`sm`,px:0,height:`auto`,disabled:g!==null,onClick:()=>void x(`signup`,{kind:`signup`}),children:p(`Create account`)})]}):null,(0,L.jsx)(yh,{size:`$1`,color:`$quiet`,m:0,text:`center`,maxW:400,children:p(`By continuing, you agree to Hanzo's {terms} and {privacy}.`,{terms:(0,L.jsx)(uA,{href:a,color:`$ink`,textDecorationLine:`underline`,children:p(`Terms`)}),privacy:(0,L.jsx)(uA,{href:o,color:`$ink`,textDecorationLine:`underline`,children:p(`Privacy Policy`)})})})]})}var $be=()=>{let{land:e}=K2(),[t,n]=(0,b.useState)(null);return(0,b.useEffect)(()=>{e().then(e=>window.location.replace(e)).catch(e=>n(e instanceof Error?e.message:String(e)))},[e]),(0,L.jsx)(z,{flex:1,items:`center`,justify:`center`,gap:m5.inset,bg:X.ground,children:t?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(V,{size:Z.body,color:X.alert,children:t}),(0,L.jsx)(V,{size:Z.small,color:X.mute,onPress:()=>window.location.replace(`/login`),children:`Try again`})]}):(0,L.jsx)(aL,{})})},exe=520,txe=[`general`,`engineering`,`revenue`,`support`],J9=`engineering`,nxe=()=>{let[e,t]=(0,b.useState)(!0);return(0,L.jsx)(`div`,{"aria-hidden":`true`,style:{width:`100%`,maxWidth:780},children:(0,L.jsxs)(z,{width:`100%`,rounded:Q.panel,bg:X.panel,borderWidth:1,borderColor:X.rule,overflow:`hidden`,onLayout:e=>t(e.nativeEvent.layout.width>=exe),children:[(0,L.jsxs)(B,{px:m5.inset,py:m5.tight,gap:m5.tight,items:`center`,borderBottomWidth:1,borderColor:X.rule,children:[[0,1,2].map(e=>(0,L.jsx)(z,{width:8,height:8,rounded:Q.pill,bg:X.rule},e)),(0,L.jsx)(V,{size:Z.chip,color:X.dim,ml:m5.tight,children:`hanzo.team`})]}),(0,L.jsxs)(B,{children:[e?(0,L.jsxs)(z,{width:168,p:m5.inset,gap:m5.tight,borderRightWidth:1,borderColor:X.rule,children:[(0,L.jsx)(V,{...h5,size:Z.chip,color:X.dim,children:`Channels`}),txe.map(e=>(0,L.jsx)(B,{px:m5.tight,py:4,rounded:Q.field,bg:e===J9?X.card:void 0,children:(0,L.jsxs)(V,{size:Z.small,color:e===J9?X.ink:X.mute,children:[`# `,e]})},e))]}):null,(0,L.jsxs)(z,{flex:1,minW:0,p:m5.inset,gap:m5.inset,children:[(0,L.jsxs)(V,{size:Z.small,color:X.ink,fontWeight:`600`,children:[`# `,J9]}),(0,L.jsx)(Y9,{who:`Ana`,text:`@dev refunds are missing from the checkout webhook. Can you take it?`}),(0,L.jsx)(Y9,{who:`Dev`,agent:!0,text:`On it. Fixed the handler and opened a pull request: 14 of 14 checks pass.`,children:(0,L.jsxs)(B,{mt:m5.tight,p:m5.tight,gap:m5.tight,items:`center`,rounded:Q.card,bg:X.card,borderWidth:1,borderColor:X.rule,children:[(0,L.jsx)(z,{width:8,height:8,rounded:Q.pill,bg:l5.doing}),(0,L.jsx)(V,{size:Z.chip,color:X.dim,children:`TEAM-142`}),(0,L.jsx)(V,{size:Z.small,color:X.ink,flex:1,minW:0,numberOfLines:1,children:`Refunds missing from checkout webhook`}),(0,L.jsx)(V,{size:Z.chip,color:X.mute,children:`In review`})]})}),(0,L.jsxs)(B,{items:`center`,gap:m5.tight,children:[(0,L.jsx)(aL,{size:16}),(0,L.jsx)(V,{size:Z.small,color:X.dim,children:`Dev is deploying the fix…`})]})]})]})]})})},Y9=({who:e,agent:t=!1,text:n,children:r})=>(0,L.jsxs)(B,{gap:m5.tight,items:`flex-start`,children:[(0,L.jsx)(z,{width:26,height:26,rounded:Q.pill,items:`center`,justify:`center`,style:d5(e),shrink:0,children:(0,L.jsx)(V,{size:Z.chip,fontWeight:`700`,style:{color:d5(e).color},children:e[0]})}),(0,L.jsxs)(z,{flex:1,minW:0,gap:2,children:[(0,L.jsxs)(B,{items:`center`,gap:m5.tight,children:[(0,L.jsx)(V,{size:Z.small,color:X.ink,fontWeight:`600`,children:e}),t?(0,L.jsx)(B,{px:6,py:1,rounded:Q.field,borderWidth:1,borderColor:X.rule,children:(0,L.jsx)(V,{size:Z.chip,color:X.mute,children:`Agent`})}):null]}),(0,L.jsx)(V,{size:Z.small,color:X.mute,children:n}),r]})]}),rxe=[[`Channels`,`Your people and your agents, in one conversation.`],[`Agents`,`Hand an agent the work; it reports back when it is done.`],[`Issue boards`,`Every task from backlog to done, on one board.`]],ixe=()=>(0,L.jsx)(B,{width:`100%`,maxW:780,gap:m5.wide,flexWrap:`wrap`,children:rxe.map(([e,t])=>(0,L.jsxs)(z,{flex:1,minW:200,gap:4,children:[(0,L.jsx)(V,{size:Z.body,color:X.ink,fontWeight:`600`,children:e}),(0,L.jsx)(V,{size:Z.small,color:X.mute,children:t})]},e))}),axe=`https://pay.hanzo.ai/cart`,oxe=(e,t)=>{let n=new URL(axe);return new URLSearchParams(e).forEach((e,t)=>n.searchParams.set(t,e)),n.searchParams.get(`plan`)||n.searchParams.set(`plan`,`team`),n.searchParams.set(`returnUrl`,`${t}/`),n.toString()},sxe=`/auth/callback`,$=`https://hanzo.ai`,X9=`https://docs.hanzo.ai`,cxe=`https://github.com/hanzoai`,lxe=`https://status.hanzo.ai`,uxe=`https://hanzo.agency`,dxe=`https://hanzo.university`,fxe=[{label:`Features`,href:`https://hanzo.ai/team`},{label:`Docs`,href:`https://docs.hanzo.ai`},{label:`Hanzo Bot`,href:`https://hanzo.bot`},{label:`Hanzo App`,href:`https://hanzo.app`},{label:`API Platform`,href:`https://platform.hanzo.ai`},{label:`Hanzo AI`,href:`https://hanzo.ai`}],pxe=[{id:`damon`,name:`Damon Motorcycles`,logo:`/logos/customers/damon-motorcycles.svg`,href:`${$}/customers/damon-motorcycles`},{id:`kanoa`,name:`KANOA`,logo:`/logos/customers/kanoa.png`,href:`${$}/customers/kanoa`},{id:`skully`,name:`SKULLY`,logo:`/logos/customers/skully.png`,href:`${$}/customers#skully`},{id:`bellabeat`,name:`Bellabeat`,logo:`/logos/customers/bellabeat.svg`,href:`${$}/customers#bellabeat`},{id:`stoned`,name:`STONED Audio`,logo:`/logos/customers/stoned.svg`,href:`${$}/customers#stoned`},{id:`unikrn`,name:`Unikrn`,logo:`/logos/customers/unikoin-gold.svg`,href:`${$}/customers#unikoin-gold`},{id:`arca`,name:`Arca`,logo:`/logos/customers/arca.png`,href:`${$}/customers#arca`},{id:`casper`,name:`Casper Labs`,logo:`/logos/customers/casper-blockchain.svg`,href:`${$}/customers#casper-blockchain`},{id:`triller`,name:`Triller`,logo:`/logos/customers/trillerfest.png`,href:`${$}/customers#trillerfest`},{id:`cover`,name:`Cover Build`,logo:`/logos/customers/cover-build.svg`,href:`${$}/customers#cover-build`},{id:`myle`,name:`Myle Tap`,logo:`/logos/customers/myle-tap.png`,href:`${$}/customers#myle-tap`},{id:`keek`,name:`Personas Social`,logo:`/logos/customers/keek-social.svg`,href:`${$}/customers#keek-social`}],mxe=[[{title:`Products`,href:`${$}/products`,links:[{label:`Hanzo App`,href:`https://hanzo.app`},{label:`Hanzo Dev`,href:`${$}/dev`},{label:`Hanzo Bot`,href:`https://hanzo.bot`},{label:`Hanzo Team`,href:`https://hanzo.team`},{label:`Hanzo Science`,href:`${$}/science`},{label:`Hanzo Security`,href:`${$}/security`},{label:`Download app`,href:`${$}/download`},{label:`Pricing`,href:`${$}/pricing`},{label:`Log in`,href:`/login`}]},{title:`Capabilities`,links:[{label:`Hanzo Design`,href:`${$}/design`},{label:`MCP`,href:`${$}/mcp`},{label:`Skills`,href:`${$}/skills`},{label:`Integrations`,href:`${$}/integrations`},{label:`Hanzo CLI`,href:`${$}/cli`}]},{title:`Extensions`,links:[{label:`Hanzo in Chrome`,href:`${$}/extension`},{label:`Desktop app`,href:`${$}/desktop`},{label:`Hanzo IDE`,href:`${$}/ide`}]},{title:`Models`,href:`${$}/models`,links:[{label:`All models`,href:`${$}/models`},{label:`Zen`,href:`${$}/zen`},{label:`Enso`,href:`${$}/enso`},{label:`Kai`,href:`${$}/kai`},{label:`Video · Koma`,href:`${$}/koma`},{label:`Images · Iro`,href:`${$}/iro`},{label:`3D · Mori`,href:`${$}/mori`},{label:`Voice · Koe`,href:`${$}/koe`},{label:`Benchmarks`,href:`${$}/benchmarks`}]}],[{title:`Enterprise`,href:`${$}/enterprise`,links:[{label:`Overview`,href:`${$}/enterprise`},{label:`All solutions`,href:`${$}/solutions`},{label:`Customer stories`,href:`${$}/customers`},{label:`Contact sales`,href:`${$}/contact-sales`}]},{title:`Teams`,href:`${$}/solutions`,links:[{label:`Engineering`,href:`${$}/solutions/engineering`},{label:`Operations`,href:`${$}/solutions/operations`},{label:`Finance`,href:`${$}/solutions/finance`},{label:`Data`,href:`${$}/solutions/data`},{label:`Sales`,href:`${$}/solutions/sales`},{label:`Marketing`,href:`${$}/solutions/marketing`},{label:`Design`,href:`${$}/solutions/design`}]},{title:`Industries`,href:`${$}/solutions`,links:[{label:`Cybersecurity`,href:`${$}/solutions/cybersecurity`},{label:`Financial services`,href:`${$}/solutions/financial-services`},{label:`Government`,href:`${$}/solutions/government`},{label:`Healthcare`,href:`${$}/solutions/healthcare`},{label:`Education`,href:`${$}/solutions/education`},{label:`Law`,href:`${$}/solutions/law`},{label:`Retail`,href:`${$}/solutions/retail`}]},{title:`Programs`,href:`${$}/startups`,links:[{label:`Startups`,href:`${$}/startups`},{label:`Affiliate program`,href:`${$}/affiliate`},{label:`Referral program`,href:`${$}/referral`},{label:`Reserved tier`,href:`${$}/solutions/reserved`},{label:`OSS grants`,href:`${$}/open-source`}]}],[{title:`Developers`,href:X9,links:[{label:`Developer docs`,href:X9},{label:`API reference`,href:`${X9}/docs/openapi/`},{label:`Quickstart`,href:`${X9}/docs/quickstart/`},{label:`SDKs`,href:`${$}/sdks`},{label:`Console`,href:`https://platform.hanzo.ai`},{label:`GitHub`,href:cxe}]},{title:`API Platform`,href:`${$}/platform`,links:[{label:`Overview`,href:`${$}/platform`},{label:`API keys`,href:`https://platform.hanzo.ai/settings/organization/keys`},{label:`Gateway`,href:`${$}/gateway`},{label:`Agents`,href:`${$}/agents`},{label:`Playground`,href:`${$}/playground`}]},{title:`Cloud`,href:`${$}/products`,links:[{label:`Base`,href:`${$}/base`},{label:`Machines`,href:`${$}/machines`},{label:`Search`,href:`${$}/search`},{label:`Datastore`,href:`${$}/datastore`},{label:`Memory`,href:`${$}/products/memory`},{label:`Realtime`,href:`${$}/realtime`},{label:`Observability`,href:`${$}/o11y`},{label:`Insights`,href:`${$}/insights`},{label:`Commerce`,href:`${$}/commerce`}]},{title:`Help and security`,links:[{label:`Availability`,href:lxe},{label:`Help center`,href:`${$}/support`},{label:`Security and compliance`,href:`${$}/security`},{label:`Trust & transparency`,href:`${$}/trust`}]}],[{title:`Company`,href:`${$}/about`,links:[{label:`Hanzo AI`,href:`${$}/about`},{label:`Careers`,href:`${$}/careers`},{label:`Philosophy`,href:`${$}/philosophy`},{label:`Research`,href:`${$}/research`},{label:`News`,href:`${$}/press`},{label:`Investors`,href:`${$}/investors`},{label:`Brand`,href:`${$}/brand`},{label:`Open source`,href:`${$}/open-source`},{label:`Contact`,href:`${$}/contact`}]},{title:`Resources`,href:`${$}/learn`,links:[{label:`Blog`,href:`${$}/blog`},{label:`Guides`,href:`${X9}/docs/guides/`},{label:`Cookbook`,href:`${X9}/docs/guides/cookbook/`},{label:`Hanzo University`,href:dxe},{label:`Hanzo Agency`,href:uxe},{label:`Cost calculator`,href:`${$}/calculator`}]},{title:`Terms and policies`,href:`${$}/legal`,links:[{label:`Privacy choices`,href:`${$}/privacy#choices`},{label:`Privacy policy`,href:`${$}/privacy`},{label:`Terms of service`,href:`${$}/terms`},{label:`Usage policy`,href:`${$}/aup`},{label:`Cookie policy`,href:`${$}/cookies`},{label:`Other policies`,href:`${$}/legal`}]}]],hxe=[{label:`Discord`,href:`https://discord.gg/XthHQQj`},{label:`Telegram`,href:`https://t.me/hanzoai`},{label:`X`,href:`https://x.com/hanzoai`},{label:`GitHub`,href:`https://github.com/hanzoai`},{label:`LinkedIn`,href:`https://linkedin.com/company/hanzo-ai`},{label:`Facebook`,href:`https://facebook.com/hanzoinc`},{label:`Bluesky`,href:`https://bsky.app/profile/hanzoai.bsky.social`},{label:`Reddit`,href:`https://www.reddit.com/r/HanzoAI/`},{label:`TikTok`,href:`https://www.tiktok.com/@hanzoinc`},{label:`Instagram`,href:`https://www.instagram.com/hanzoinc`}];function gxe(){let e=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let t=e.current,n=t?.parentElement;if(!t||!n)return;let r=t.getContext(`2d`);if(!r)return;let i=.14,a=0,o=0,s=1,c=0,l={x:-9999,y:-9999},u={x:-9999,y:-9999},d=()=>{let e=n.getBoundingClientRect();s=Math.min(window.devicePixelRatio||1,2),a=e.width,o=e.height,t.width=Math.max(1,Math.round(a*s)),t.height=Math.max(1,Math.round(o*s)),r.setTransform(s,0,0,s,0,0)},f=e=>{let n=(e||0)*.001;r.clearRect(0,0,a,o),r.fillStyle=getComputedStyle(t).color;let i=Math.ceil(a/14),s=Math.ceil(o/14),c=(a-(i-1)*14)*.5,u=(o-(s-1)*14)*.5,d=a*.5,f=o*.45,p=a*.56,m=o*.58,h=l.x,g=l.y,_=h>-999,v=a*(.5+.28*Math.cos(n*.42)),y=o*(.45+.22*Math.sin(n*.31)),b=a*(.5+.32*Math.sin(n*.27+1.8)),x=o*(.48+.24*Math.cos(n*.36+.9)),S=Math.max(a,o)*.28,C=1/(S*S);for(let e=0;e<s;e++){let t=u+e*14,a=(t-f)/m;for(let o=0;o<i;o++){let i=c+o*14,s=(i-d)/p,l=Math.hypot(s,a),u=Math.max(0,Math.min(1,(l-.16)/.88)),f=Math.max(0,1-Math.max(0,l-.72)*1.45),m=.5+.5*Math.sin(o*.18+e*.14-n*1.15+Math.cos(o*.09-e*.11+n*.65)*1.3),S=(i-v)*(i-v)+(t-y)*(t-y),w=(i-b)*(i-b)+(t-x)*(t-x),T=Math.exp(-S*C)*.65+Math.exp(-w*C)*.55,E=(.7+u*2.1+m*.42+T*.95)*(.45+f*.55),D=(.045+u*.18+m*.035+T*.11)*f;if(_){let e=i-h,n=t-g,r=e*e+n*n;if(r<36100){let e=1-Math.sqrt(r)/190,t=e*e*(3-2*e);E+=t*1.9,D=Math.min(.68,D+t*.34)}}D<.01||E<.3||(r.globalAlpha=D,r.beginPath(),r.arc(i,t,E,0,Math.PI*2),r.fill())}}r.globalAlpha=1},p=e=>{l.x+=(u.x-l.x)*i,l.y+=(u.y-l.y)*i,f(e),c=requestAnimationFrame(p)},m=e=>{let t=n.getBoundingClientRect();u.x=e.clientX-t.left,u.y=e.clientY-t.top,l.x<-999&&(l.x=u.x,l.y=u.y)},h=()=>{u.x=-9999,u.y=-9999};d(),c=requestAnimationFrame(p);let g=new ResizeObserver(()=>d());return g.observe(n),n.addEventListener(`pointermove`,m,{passive:!0}),n.addEventListener(`pointerleave`,h,{passive:!0}),()=>{cancelAnimationFrame(c),g.disconnect(),n.removeEventListener(`pointermove`,m),n.removeEventListener(`pointerleave`,h)}},[]),(0,L.jsx)(`canvas`,{ref:e,"aria-hidden":`true`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,pointerEvents:`none`,zIndex:0,color:`var(--foreground)`}})}var _xe=()=>{let{standing:e,depart:t,request:n}=K2(),[r,i]=(0,b.useState)(null);if(e===`in`)return null;let a=(e,n)=>{i(e),t(n).catch(()=>i(null))},o=r!==null;return(0,L.jsxs)(z,{flex:1,bg:X.ground,overflow:`scroll`,children:[(0,L.jsxs)(B,{width:`100%`,minH:68,px:m5.wide,py:m5.tight,items:`center`,justify:`space-between`,borderBottomWidth:1,borderColor:X.rule,bg:X.panel,style:{position:`sticky`,top:0,zIndex:40},children:[(0,L.jsx)(B,{items:`center`,gap:m5.tight,cursor:`pointer`,onPress:()=>window.location.assign(`/`),children:(0,L.jsx)(V,{size:Z.row,color:X.ink,fontWeight:`600`,children:c2.title})}),(0,L.jsxs)(B,{items:`center`,gap:m5.tight,flexWrap:`wrap`,children:[fxe.map(e=>(0,L.jsx)(q,{size:`sm`,chromeless:!0,rounded:Q.pill,onPress:()=>window.location.assign(e.href),children:(0,L.jsx)(V,{size:Z.small,color:X.mute,children:e.label})},e.label)),(0,L.jsx)(q,{size:`sm`,variant:`outline`,rounded:Q.field,onPress:()=>window.location.assign(`https://hanzo.ai/contact-sales`),children:(0,L.jsx)(V,{size:Z.small,color:X.ink,children:`Contact sales`})}),(0,L.jsx)(q,{size:`sm`,chromeless:!0,rounded:Q.field,disabled:o,onPress:()=>a(`nav`,`login`),children:(0,L.jsx)(V,{size:Z.small,color:X.ink,children:`Log in`})}),(0,L.jsx)(q,{size:`sm`,rounded:Q.field,disabled:o,onPress:()=>a(`open`,`login`),children:(0,L.jsx)(V,{size:Z.small,color:X.ink,fontWeight:`600`,children:((e,t)=>r===e?`One moment…`:t)(`open`,`Open Hanzo Team`)})})]})]}),(0,L.jsxs)(`main`,{className:`hz-signin`,children:[(0,L.jsx)(gxe,{}),(0,L.jsxs)(`div`,{className:`hz-signin-row`,children:[(0,L.jsx)(`div`,{className:`hz-signin-copy`,children:(0,L.jsx)(Zbe,{title:`Sign in to Hanzo ${c2.title}`,line:`AI cockpit, live streams, issue boards, channels, and bots for your team.`,request:n,termsHref:`${$}/terms`,privacyHref:`${$}/privacy`})}),(0,L.jsxs)(`div`,{className:`hz-signin-figure`,children:[(0,L.jsx)(nxe,{}),(0,L.jsx)(ixe,{})]})]})]}),(0,L.jsxs)(z,{width:`100%`,items:`center`,px:m5.wide,py:m5.edge,gap:m5.inset,bg:X.ground,children:[(0,L.jsx)(V,{size:Z.small,color:X.mute,fontWeight:`500`,style:{textAlign:`center`},children:`Companies building with the Hanzo API`}),(0,L.jsx)(`div`,{className:`hz-mq-view`,children:(0,L.jsx)(`div`,{className:`hz-mq-track`,children:[0,1].map(e=>pxe.map(t=>{let n=e>0;return(0,L.jsx)(`a`,{href:t.href,className:`hz-logo`,"aria-label":n?void 0:t.name,"aria-hidden":n||void 0,tabIndex:n?-1:void 0,target:`_blank`,rel:`noopener noreferrer`,title:t.name,children:(0,L.jsx)(`img`,{src:t.logo,alt:n?``:t.name,loading:`lazy`})},`${e}-${t.id}`)}))})})]}),(0,L.jsx)(z,{width:`100%`,borderTopWidth:1,borderColor:X.rule,bg:X.panel,px:m5.wide,py:m5.edge,children:(0,L.jsxs)(z,{width:`100%`,maxW:1240,mx:`auto`,gap:m5.edge,children:[(0,L.jsxs)(B,{justify:`space-between`,items:`flex-start`,gap:m5.edge,flexWrap:`wrap`,children:[(0,L.jsx)(z,{minW:160,gap:m5.tight,children:(0,L.jsxs)(B,{items:`center`,gap:m5.tight,cursor:`pointer`,onPress:()=>window.location.assign($),children:[(0,L.jsx)(z,{width:22,height:22,rounded:Q.field,bg:X.ink,items:`center`,justify:`center`,children:(0,L.jsx)(V,{size:Z.small,color:X.ground,fontWeight:`700`,children:`H`})}),(0,L.jsx)(V,{size:Z.row,color:X.ink,fontWeight:`600`,children:`Hanzo`})]})}),(0,L.jsx)(B,{gap:m5.edge,flexWrap:`wrap`,grow:1,justify:`space-between`,children:mxe.map((e,t)=>(0,L.jsx)(z,{minW:150,gap:m5.inset,children:e.map(e=>(0,L.jsxs)(z,{gap:m5.tight,children:[(0,L.jsx)(V,{size:Z.small,color:X.ink,fontWeight:`600`,cursor:e.href?`pointer`:void 0,onPress:e.href?()=>window.location.assign(e.href):void 0,style:{lineHeight:`1.35`},children:e.title}),(0,L.jsx)(z,{style:{gap:`2.5px`},children:e.links.map(e=>(0,L.jsx)(V,{size:Z.small,color:X.mute,cursor:`pointer`,onPress:()=>window.location.assign(e.href),style:{lineHeight:`1.32`},children:e.label},e.href+e.label))})]},e.title))},t))})]}),(0,L.jsx)(B,{pt:m5.inset,borderTopWidth:1,borderColor:X.rule,items:`center`,flexWrap:`wrap`,style:{columnGap:`24px`,rowGap:`8px`},children:hxe.map(e=>(0,L.jsxs)(V,{size:Z.small,color:X.mute,cursor:`pointer`,onPress:()=>window.location.assign(e.href),style:{lineHeight:`1.35`},children:[e.label,` ↗`]},e.label))}),(0,L.jsxs)(B,{pt:m5.inset,borderTopWidth:1,borderColor:X.rule,items:`center`,justify:`space-between`,flexWrap:`wrap`,gap:m5.tight,children:[(0,L.jsx)(V,{size:Z.chip,color:X.dim,children:`© 2026 Hanzo AI, Inc. All rights reserved.`}),(0,L.jsx)(B,{gap:m5.inset,flexWrap:`wrap`,children:[[`Terms`,`${$}/terms`],[`Privacy`,`${$}/privacy`],[`Usage policy`,`${$}/aup`],[`Privacy choices`,`${$}/privacy#choices`]].map(([e,t])=>(0,L.jsx)(V,{size:Z.chip,color:X.dim,cursor:`pointer`,onPress:()=>window.location.assign(t),children:e},e))})]})]})})]})},vxe=({children:e})=>{let{standing:t}=K2(),{standing:n,refusal:r,enrolment:i}=B4();return window.location.pathname===sxe?(0,L.jsx)($be,{}):window.location.pathname===`/start`?(0,L.jsx)(yxe,{to:oxe(window.location.search,window.location.origin)}):L4.on?(0,L.jsx)(L.Fragment,{children:e}):t===`unknown`?(0,L.jsx)(Z9,{}):t===`out`?(0,L.jsx)(_xe,{}):n===`stranger`?(0,L.jsx)(Q9,{title:`One more step`,body:`Set up your workspace to see your projects.`,children:(0,L.jsx)(q,{onPress:()=>window.location.assign(i),children:`Set up`})}):n===`refused`?(0,L.jsx)(Q9,{title:`Your workspace is not answering`,body:r?.message??``,children:(0,L.jsx)(q,{onPress:()=>window.location.reload(),children:`Try again`})}):n===`unknown`?(0,L.jsx)(Z9,{}):(0,L.jsx)(L.Fragment,{children:e})},yxe=({to:e})=>((0,b.useEffect)(()=>window.location.replace(e),[e]),(0,L.jsx)(Z9,{})),Z9=()=>(0,L.jsx)(z,{flex:1,items:`center`,justify:`center`,bg:X.ground,children:(0,L.jsx)(aL,{})}),Q9=({title:e,body:t,children:n})=>(0,L.jsxs)(z,{flex:1,items:`center`,justify:`center`,gap:m5.inset,bg:X.ground,p:m5.wide,children:[(0,L.jsx)(V,{size:Z.title,color:X.ink,children:e}),t?(0,L.jsx)(V,{size:Z.body,color:X.mute,children:t}):null,n]}),bxe=()=>na(Fbe),xxe=200,Sxe=()=>(0,L.jsxs)(Yfe,{children:[(0,L.jsx)(GN,{delay:xxe,children:(0,L.jsx)(kpe,{children:(0,L.jsxs)(dme,{children:[(0,L.jsx)(fve,{}),(0,L.jsx)(vxe,{children:(0,L.jsx)(lo,{children:(0,L.jsx)(bxe,{})})})]})})}),(0,L.jsx)(Qse,{theme:`dark`,position:`top-center`}),(0,L.jsx)(ope,{floating:!1})]});yr({token:()=>P2().getAccessToken()??void 0});var $9=document.getElementById(`root`);if(!$9)throw Error(`no #root`);(0,x.createRoot)($9).render((0,L.jsx)(b.StrictMode,{children:(0,L.jsx)(Sxe,{})}));export{_ as a,u as c,Co as i,Yp as n,p as o,Uo as r,s,d6 as t};
|
|
241
|
+
//# sourceMappingURL=index-3NIWj3zD.js.map
|