@hanzo/ui 5.3.36 → 5.3.39
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/assets/crypto.d.ts.map +1 -1
- package/dist/assets/file.d.ts.map +1 -1
- package/dist/assets/general.d.ts.map +1 -1
- package/dist/assets/hanzo-logo.d.ts.map +1 -1
- package/dist/assets/llm-provider.d.ts.map +1 -1
- package/dist/components/cal-embed.d.ts.map +1 -1
- package/dist/frameworks/react/hooks/index.d.ts.map +1 -1
- package/dist/frameworks/react-native/utils.d.ts.map +1 -1
- package/dist/frameworks/svelte/utils.d.ts.map +1 -1
- package/dist/frameworks/vue/utils.d.ts.map +1 -1
- package/dist/helpers/file.d.ts.map +1 -1
- package/dist/helpers/memoization.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/models/index.js +35 -0
- package/dist/models/index.mjs +35 -0
- package/dist/navigation/index.js +2 -1
- package/dist/navigation/index.mjs +2 -1
- package/dist/primitives/alert.d.ts +1 -1
- package/dist/primitives/cal-embed.d.ts.map +1 -1
- package/dist/primitives/chart.d.ts.map +1 -1
- package/dist/primitives/chat/chat-input.d.ts.map +1 -1
- package/dist/primitives/combobox.d.ts.map +1 -1
- package/dist/primitives/command.d.ts.map +1 -1
- package/dist/primitives/copy-to-clipboard-icon.d.ts.map +1 -1
- package/dist/primitives/dots-loader.d.ts.map +1 -1
- package/dist/primitives/error-message.d.ts.map +1 -1
- package/dist/primitives/file-uploader.d.ts.map +1 -1
- package/dist/primitives/form.d.ts.map +1 -1
- package/dist/primitives/input-otp.d.ts.map +1 -1
- package/dist/primitives/markdown-preview.d.ts.map +1 -1
- package/dist/primitives/pretty-json-print.d.ts.map +1 -1
- package/dist/primitives/resizable.d.ts +4 -20
- package/dist/primitives/resizable.d.ts.map +1 -1
- package/dist/primitives/resizable.js +4 -4
- package/dist/primitives/sonner.d.ts.map +1 -1
- package/dist/primitives/text-link.d.ts.map +1 -1
- package/dist/primitives/textfield.d.ts.map +1 -1
- package/dist/primitives/toast.d.ts.map +1 -1
- package/dist/resizable.js +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/src/billing/components/account-members.d.ts +10 -0
- package/dist/src/billing/components/account-members.d.ts.map +1 -0
- package/dist/src/billing/components/account-members.js +63 -0
- package/dist/src/billing/components/account-switcher.d.ts +9 -0
- package/dist/src/billing/components/account-switcher.d.ts.map +1 -0
- package/dist/src/billing/components/account-switcher.js +52 -0
- package/dist/src/billing/components/animated-card.d.ts +9 -0
- package/dist/src/billing/components/animated-card.d.ts.map +1 -0
- package/dist/src/billing/components/animated-card.js +161 -0
- package/dist/src/billing/components/billing-settings.d.ts +26 -0
- package/dist/src/billing/components/billing-settings.d.ts.map +1 -0
- package/dist/src/billing/components/billing-settings.js +23 -0
- package/dist/src/billing/components/business-profile-panel.d.ts.map +1 -1
- package/dist/src/billing/components/business-profile-panel.js +9 -8
- package/dist/src/billing/components/card-form.d.ts +18 -0
- package/dist/src/billing/components/card-form.d.ts.map +1 -0
- package/dist/src/billing/components/card-form.js +139 -0
- package/dist/src/billing/components/cost-explorer.d.ts +7 -0
- package/dist/src/billing/components/cost-explorer.d.ts.map +1 -0
- package/dist/src/billing/components/cost-explorer.js +73 -0
- package/dist/src/billing/components/credits-panel.d.ts +8 -0
- package/dist/src/billing/components/credits-panel.d.ts.map +1 -0
- package/dist/src/billing/components/credits-panel.js +58 -0
- package/dist/src/billing/components/guided-setup.d.ts +13 -0
- package/dist/src/billing/components/guided-setup.d.ts.map +1 -0
- package/dist/src/billing/components/guided-setup.js +44 -0
- package/dist/src/billing/components/index.d.ts +34 -0
- package/dist/src/billing/components/index.d.ts.map +1 -1
- package/dist/src/billing/components/index.js +17 -0
- package/dist/src/billing/components/invoice-manager.js +13 -13
- package/dist/src/billing/components/invoices-payments.d.ts +7 -0
- package/dist/src/billing/components/invoices-payments.d.ts.map +1 -0
- package/dist/src/billing/components/invoices-payments.js +44 -0
- package/dist/src/billing/components/overview-dashboard.d.ts +31 -0
- package/dist/src/billing/components/overview-dashboard.d.ts.map +1 -0
- package/dist/src/billing/components/overview-dashboard.js +105 -0
- package/dist/src/billing/components/payment-manager.d.ts.map +1 -1
- package/dist/src/billing/components/payment-manager.js +267 -83
- package/dist/src/billing/components/promotions-panel.d.ts +7 -0
- package/dist/src/billing/components/promotions-panel.d.ts.map +1 -0
- package/dist/src/billing/components/promotions-panel.js +48 -0
- package/dist/src/billing/components/spend-alerts.d.ts +9 -0
- package/dist/src/billing/components/spend-alerts.d.ts.map +1 -0
- package/dist/src/billing/components/spend-alerts.js +99 -0
- package/dist/src/billing/components/square-card-form.d.ts +32 -0
- package/dist/src/billing/components/square-card-form.d.ts.map +1 -0
- package/dist/src/billing/components/square-card-form.js +179 -0
- package/dist/src/billing/components/status-bar.d.ts +12 -0
- package/dist/src/billing/components/status-bar.d.ts.map +1 -0
- package/dist/src/billing/components/status-bar.js +32 -0
- package/dist/src/billing/components/subscription-portal.d.ts +2 -1
- package/dist/src/billing/components/subscription-portal.d.ts.map +1 -1
- package/dist/src/billing/components/subscription-portal.js +123 -26
- package/dist/src/billing/components/support-tiers-panel.d.ts +6 -0
- package/dist/src/billing/components/support-tiers-panel.d.ts.map +1 -0
- package/dist/src/billing/components/support-tiers-panel.js +90 -0
- package/dist/src/billing/components/tax-compliance-panel.js +5 -5
- package/dist/src/billing/components/transactions-panel.d.ts +8 -0
- package/dist/src/billing/components/transactions-panel.d.ts.map +1 -0
- package/dist/src/billing/components/transactions-panel.js +64 -0
- package/dist/src/billing/components/usage-panel.d.ts +7 -0
- package/dist/src/billing/components/usage-panel.d.ts.map +1 -0
- package/dist/src/billing/components/usage-panel.js +64 -0
- package/dist/src/billing/types/index.d.ts +136 -1
- package/dist/src/billing/types/index.d.ts.map +1 -1
- package/dist/src/form/form.d.ts.map +1 -1
- package/dist/src/hooks/use-copy-clipboard.d.ts.map +1 -1
- package/dist/src/hooks/use-fill-ids.d.ts.map +1 -1
- package/dist/src/hooks/use-scroll-restoration.d.ts.map +1 -1
- package/dist/src/models/ModelCard.d.ts +25 -0
- package/dist/src/models/ModelCard.d.ts.map +1 -0
- package/dist/src/models/ModelCard.js +73 -0
- package/dist/src/models/ModelLibrary.d.ts +41 -0
- package/dist/src/models/ModelLibrary.d.ts.map +1 -0
- package/dist/src/models/ModelLibrary.js +63 -0
- package/dist/src/models/ModelTable.d.ts +17 -0
- package/dist/src/models/ModelTable.d.ts.map +1 -0
- package/dist/src/models/ModelTable.js +35 -0
- package/dist/src/models/ZenEnso.d.ts +17 -0
- package/dist/src/models/ZenEnso.d.ts.map +1 -0
- package/dist/src/models/ZenEnso.js +50 -0
- package/dist/src/models/index.d.ts +23 -0
- package/dist/src/models/index.d.ts.map +1 -0
- package/dist/src/models/index.js +18 -0
- package/dist/src/models/types.d.ts +40 -0
- package/dist/src/models/types.d.ts.map +1 -0
- package/dist/src/models/types.js +7 -0
- package/dist/src/navigation/hanzo-shell/AppSwitcher.d.ts +8 -0
- package/dist/src/navigation/hanzo-shell/AppSwitcher.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/AppSwitcher.js +19 -0
- package/dist/src/navigation/hanzo-shell/BeamAvatar.d.ts +9 -0
- package/dist/src/navigation/hanzo-shell/BeamAvatar.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/BeamAvatar.js +38 -0
- package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.d.ts +28 -0
- package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.js +124 -0
- package/dist/src/navigation/hanzo-shell/HanzoHeader.d.ts +37 -0
- package/dist/src/navigation/hanzo-shell/HanzoHeader.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/HanzoHeader.js +43 -0
- package/dist/src/navigation/hanzo-shell/HanzoMark.d.ts +17 -0
- package/dist/src/navigation/hanzo-shell/HanzoMark.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/HanzoMark.js +57 -0
- package/dist/src/navigation/hanzo-shell/UserAvatar.d.ts +15 -0
- package/dist/src/navigation/hanzo-shell/UserAvatar.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/UserAvatar.js +44 -0
- package/dist/src/navigation/hanzo-shell/UserOrgDropdown.d.ts +11 -0
- package/dist/src/navigation/hanzo-shell/UserOrgDropdown.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/UserOrgDropdown.js +26 -0
- package/dist/src/navigation/hanzo-shell/index.d.ts +14 -0
- package/dist/src/navigation/hanzo-shell/index.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/index.js +9 -0
- package/dist/src/navigation/hanzo-shell/types.d.ts +49 -0
- package/dist/src/navigation/hanzo-shell/types.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/types.js +32 -0
- package/dist/src/navigation/hanzo-shell/useHanzoAuth.d.ts +16 -0
- package/dist/src/navigation/hanzo-shell/useHanzoAuth.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/useHanzoAuth.js +93 -0
- package/dist/src/navigation/index.d.ts +2 -0
- package/dist/src/navigation/index.d.ts.map +1 -1
- package/dist/src/navigation/index.js +2 -0
- package/dist/src/ui/banner.d.ts +1 -1
- package/dist/util/blob.d.ts.map +1 -1
- package/dist/util/blob.js +1 -1
- package/dist/util/date.d.ts.map +1 -1
- package/dist/util/debounce.d.ts.map +1 -1
- package/dist/util/file.d.ts.map +1 -1
- package/dist/util/format-and-abbreviate-as-currency.d.ts +7 -1
- package/dist/util/format-and-abbreviate-as-currency.d.ts.map +1 -1
- package/dist/util/format-text.d.ts.map +1 -1
- package/dist/util/format-to-max-char.d.ts +7 -1
- package/dist/util/format-to-max-char.d.ts.map +1 -1
- package/dist/util/index.mjs +1 -1
- package/dist/util/number-abbreviate.d.ts.map +1 -1
- package/dist/util/specifier.d.ts.map +1 -1
- package/dist/util/step-animation.d.ts.map +1 -1
- package/package.json +20 -7
- package/dist/tailwind/typo-plugin/get-plugin-styles.d.ts +0 -595
- package/dist/tailwind/typo-plugin/get-plugin-styles.d.ts.map +0 -1
- package/dist/tailwind/typo-plugin/get-plugin-styles.js +0 -661
- package/dist/tailwind/typo-plugin/index.d.ts +0 -3
- package/dist/tailwind/typo-plugin/index.d.ts.map +0 -1
- package/dist/tailwind/typo-plugin/index.js +0 -102
- package/dist/tailwind/typo-plugin/utils.d.ts +0 -6
- package/dist/tailwind/typo-plugin/utils.d.ts.map +0 -1
- package/dist/tailwind/typo-plugin/utils.js +0 -47
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime'),react=require('react'),navigation=require('next/navigation');var I=Object.defineProperty;var a=(e,s)=>I(e,"name",{value:s,configurable:true});function q(e){return e?e>=1e6?`${(e/1e6).toFixed(e%1e6===0?0:1)}M ctx`:e>=1e3?`${Math.round(e/1e3)}K ctx`:`${e} ctx`:""}a(q,"fmtCtx");function D(e){switch(e){case "preview":return {label:"PREVIEW",className:"bg-amber-500/20 text-amber-600 dark:text-amber-400"};case "coming-soon":return {label:"SOON",className:"bg-muted text-muted-foreground"};case "contact-sales":return {label:"EARLY ACCESS",className:"bg-purple-500/20 text-purple-600 dark:text-purple-400"};default:return null}}a(D,"statusInfo");function O(e,s){return s?s.includes(e):["zen4-max","zen-max","zen5","zen4"].includes(e)}a(O,"isFeaturedModel");function P({model:e,onNavigate:s,linkPrefix:o="/docs/models/",chatBaseUrl:d="https://hanzo.chat",requestAccessUrl:p="https://hanzo.ai/contact",featuredIds:c}){let t=e.status,g=O(e.id,c),b=D(t),y=[e.spec.params&&e.spec.params!=="N/A"&&e.spec.params!=="TBA"&&e.spec.params!=="TBD"?e.spec.params:null,e.spec.activeParams?`(${e.spec.activeParams} active)`:null,e.spec.arch??null].filter(Boolean).join(" "),$=q(e.spec.context),M=[y,$].filter(Boolean).join(" \xB7 "),C=g?"border-primary/30 bg-primary/5":t==="coming-soon"?"border-border bg-muted/30 opacity-75":t==="contact-sales"?"border-purple-500/20 bg-purple-500/5":"border-border bg-background",h=!!s,N=a(()=>s?.(e.id),"handleClick");return jsxRuntime.jsxs("div",{role:h?"link":void 0,tabIndex:h?0:void 0,onClick:h?N:void 0,onKeyDown:h?a(l=>{(l.key==="Enter"||l.key===" ")&&N();},"handleKey"):void 0,className:`rounded-lg border p-4 transition hover:border-primary/40 ${C} ${h?"cursor-pointer":""}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[jsxRuntime.jsx("span",{className:"font-semibold text-sm",children:e.id}),b&&jsxRuntime.jsx("span",{className:`text-[9px] font-semibold tracking-wider uppercase px-1.5 py-0.5 rounded-full ${b.className}`,children:b.label})]}),M&&jsxRuntime.jsx("div",{className:"text-xs font-mono text-muted-foreground mb-2",children:M}),jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:e.description}),jsxRuntime.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-auto",children:[t==="contact-sales"&&jsxRuntime.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",onClick:l=>{l.stopPropagation();},className:"inline-flex items-center gap-1 text-xs bg-purple-500/20 text-purple-400 border border-purple-500/30 px-2 py-0.5 rounded hover:bg-purple-500/30 transition",children:[jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-2.5 w-2.5"})," Request Access"]}),(t==="available"||t==="preview"||t==="cloud-only")&&jsxRuntime.jsxs("a",{href:`${d}?model=${e.id}`,target:"_blank",rel:"noopener noreferrer",onClick:l=>{l.stopPropagation();},className:"inline-flex items-center gap-1 text-xs bg-primary text-primary-foreground px-2 py-0.5 rounded hover:opacity-90 transition",children:[jsxRuntime.jsx(lucideReact.MessageSquare,{className:"h-2.5 w-2.5"})," Chat"]}),e.huggingface&&jsxRuntime.jsxs("a",{href:e.huggingface,target:"_blank",rel:"noopener noreferrer",onClick:l=>{l.stopPropagation();},className:"inline-flex items-center gap-1 text-xs text-primary hover:underline",children:[jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-2.5 w-2.5"})," Weights"]}),e.github&&jsxRuntime.jsxs("a",{href:e.github,target:"_blank",rel:"noopener noreferrer",onClick:l=>{l.stopPropagation();},className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:underline",children:[jsxRuntime.jsx(lucideReact.Github,{className:"h-2.5 w-2.5"})," Repo"]}),e.paper&&jsxRuntime.jsxs("a",{href:e.paper,target:"_blank",rel:"noopener noreferrer",onClick:l=>{l.stopPropagation();},className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:underline",children:[jsxRuntime.jsx(lucideReact.FileText,{className:"h-2.5 w-2.5"})," Paper"]})]})]})}a(P,"ModelCard");function K(e){return e?e>=1e6?`${(e/1e6).toFixed(e%1e6===0?0:1)}M`:e>=1e3?`${Math.round(e/1e3)}K`:`${e}`:"\u2014"}a(K,"fmtCtx");function A(e){return e==null?"\u2014":`$${e.toFixed(2)}`}a(A,"fmtPrice");function W({status:e}){return e==="preview"||e==="coming-soon"?jsxRuntime.jsx("span",{className:"ml-1 text-[9px] font-semibold tracking-wider uppercase bg-amber-500/20 text-amber-600 dark:text-amber-400 px-1.5 py-0.5 rounded-full align-middle",children:e==="preview"?"PREVIEW":"SOON"}):e==="contact-sales"?jsxRuntime.jsx("span",{className:"ml-1 text-[9px] font-semibold tracking-wider uppercase bg-purple-500/20 text-purple-600 dark:text-purple-400 px-1.5 py-0.5 rounded-full align-middle",children:"EARLY ACCESS"}):null}a(W,"StatusBadge");function V({models:e,linkPrefix:s="/docs/models/",showParams:o=true,showArch:d=false,showContext:p=true,showPricing:c=true}){return jsxRuntime.jsx("div",{className:"overflow-x-auto my-4",children:jsxRuntime.jsxs("table",{className:"w-full text-sm",children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{className:"border-b border-border text-left",children:[jsxRuntime.jsx("th",{className:"pb-2 pr-4 font-medium",children:"Model"}),o&&jsxRuntime.jsx("th",{className:"pb-2 pr-4 font-medium",children:"Parameters"}),d&&jsxRuntime.jsx("th",{className:"pb-2 pr-4 font-medium",children:"Architecture"}),p&&jsxRuntime.jsx("th",{className:"pb-2 pr-4 font-medium",children:"Context"}),c&&jsxRuntime.jsx("th",{className:"pb-2 pr-4 font-medium text-right",children:"Input $/1M"}),c&&jsxRuntime.jsx("th",{className:"pb-2 font-medium text-right",children:"Output $/1M"})]})}),jsxRuntime.jsx("tbody",{className:"divide-y divide-border",children:e.map(t=>jsxRuntime.jsxs("tr",{children:[jsxRuntime.jsxs("td",{className:"py-2 pr-4",children:[jsxRuntime.jsx("a",{href:`${s}${t.id}`,className:"font-mono text-primary hover:underline text-sm",children:t.id}),jsxRuntime.jsx(W,{status:t.status})]}),o&&jsxRuntime.jsxs("td",{className:"py-2 pr-4 text-sm text-muted-foreground",children:[t.spec.params&&!["N/A","TBA","TBD"].includes(t.spec.params)?t.spec.params:"\u2014",t.spec.activeParams?` (${t.spec.activeParams} active)`:""]}),d&&jsxRuntime.jsx("td",{className:"py-2 pr-4 text-sm text-muted-foreground",children:t.spec.arch??"\u2014"}),p&&jsxRuntime.jsx("td",{className:"py-2 pr-4 text-sm text-muted-foreground",children:K(t.spec.context)}),c&&jsxRuntime.jsx("td",{className:"py-2 pr-4 text-sm text-right font-mono",children:A(t.pricing?.input)}),c&&jsxRuntime.jsx("td",{className:"py-2 text-sm text-right font-mono",children:A(t.pricing?.output)})]},t.id))})]})})}a(V,"ModelTable");var ce={Sparkles:jsxRuntime.jsx(lucideReact.Sparkles,{className:"h-5 w-5"}),Rocket:jsxRuntime.jsx(lucideReact.Rocket,{className:"h-5 w-5"}),Eye:jsxRuntime.jsx(lucideReact.Eye,{className:"h-5 w-5"}),Code:jsxRuntime.jsx(lucideReact.Code,{className:"h-5 w-5"}),Search:jsxRuntime.jsx(lucideReact.Search,{className:"h-5 w-5"}),Image:jsxRuntime.jsx(lucideReact.Image,{className:"h-5 w-5"}),Mic:jsxRuntime.jsx(lucideReact.Mic,{className:"h-5 w-5"}),Brain:jsxRuntime.jsx(lucideReact.Brain,{className:"h-5 w-5"}),Shield:jsxRuntime.jsx(lucideReact.Shield,{className:"h-5 w-5"}),Network:jsxRuntime.jsx(lucideReact.Network,{className:"h-5 w-5"}),Box:jsxRuntime.jsx(lucideReact.Box,{className:"h-5 w-5"}),Video:jsxRuntime.jsx(lucideReact.Video,{className:"h-5 w-5"}),Atom:jsxRuntime.jsx(lucideReact.Atom,{className:"h-5 w-5"}),Cpu:jsxRuntime.jsx(lucideReact.Cpu,{className:"h-5 w-5"}),Zap:jsxRuntime.jsx(lucideReact.Zap,{className:"h-5 w-5"})};function E(e){return e==="available"||e==="contact-sales"||e==="cloud-only"}a(E,"isActiveStatus");function F({family:e,models:s,onNavigate:o,chatBaseUrl:d,requestAccessUrl:p,featuredIds:c}){let t=(e.icon&&ce[e.icon])??jsxRuntime.jsx(lucideReact.Atom,{className:"h-5 w-5"});return jsxRuntime.jsxs("div",{className:"mb-12",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[jsxRuntime.jsx("div",{className:"rounded-lg bg-muted p-2 text-primary",children:t}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("h3",{className:"text-xl font-semibold",children:e.name}),jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]}),jsxRuntime.jsxs("span",{className:"ml-auto text-xs text-muted-foreground bg-muted px-2 py-1 rounded-full",children:[s.length," model",s.length!==1?"s":""]})]}),jsxRuntime.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-3 mt-4",children:s.map(g=>jsxRuntime.jsx(P,{model:g,onNavigate:o,chatBaseUrl:d,requestAccessUrl:p,featuredIds:c},g.id))})]})}a(F,"ModelFamilySection");function pe({families:e,allModels:s,linkPrefix:o="/docs/models/",chatBaseUrl:d="https://hanzo.chat",requestAccessUrl:p="https://hanzo.ai/contact",featuredIds:c,showAllLabel:t="Show All Models",showCurrentLabel:g="Show Current Only",onNavigate:b}){let[m,y]=react.useState(false),$=navigation.useRouter(),M=new Map(s.map(i=>[i.id,i])),C=a(i=>{b?b(i):$.push(`${o}${i}`);},"handleNavigate"),h=e.map(i=>{let Z=i.models.map(k=>M.get(k)).filter(k=>k!==void 0).filter(k=>m||E(k.status));return {...i,resolvedModels:Z}}).filter(i=>i.resolvedModels.length>0),N=s.filter(i=>E(i.status)).length,S=s.length,l=S-N;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-8",children:[jsxRuntime.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing ",jsxRuntime.jsx("strong",{children:m?S:N})," models",!m&&l>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[" \xB7 ",l," legacy/upcoming hidden"]})]}),jsxRuntime.jsxs("button",{onClick:()=>y(!m),className:"inline-flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-1.5 text-sm font-medium hover:bg-muted transition",children:[jsxRuntime.jsx(lucideReact.Filter,{className:"h-3.5 w-3.5"}),m?g:t]})]}),h.map(i=>jsxRuntime.jsx(F,{family:i,models:i.resolvedModels,onNavigate:C,chatBaseUrl:d,requestAccessUrl:p,featuredIds:c},i.id))]})}a(pe,"ModelLibrary");function me({size:e=64,color:s="#A855F7",animate:o=true,loop:d=false,asLoader:p=false,className:c=""}){let t=Math.random().toString(36).slice(2,7),g=d?"1.35s":"1.25s",b=d?"0.60s":"0.55s",m=d?"infinite":"1",y=p?{animation:`zenEnsoSpin-${t} 1.2s linear infinite`}:{};return jsxRuntime.jsxs("span",{className:`inline-flex items-center justify-center ${c}`,style:{width:e,height:e},"aria-label":"Zen LM",children:[jsxRuntime.jsx("style",{children:`
|
|
3
|
+
@keyframes zenEnsoDraw-${t} {
|
|
4
|
+
to { stroke-dashoffset: 0; }
|
|
5
|
+
}
|
|
6
|
+
@keyframes zenEnsoFill-${t} {
|
|
7
|
+
0% { opacity: 0; transform: scale(0.92); filter: blur(6px); }
|
|
8
|
+
60% { opacity: 1; transform: scale(1.02); filter: blur(1px); }
|
|
9
|
+
100% { opacity: 1; transform: scale(1.00); filter: blur(0px); }
|
|
10
|
+
}
|
|
11
|
+
@keyframes zenEnsoCut-${t} {
|
|
12
|
+
to { opacity: 1; }
|
|
13
|
+
}
|
|
14
|
+
@keyframes zenEnsoSpin-${t} {
|
|
15
|
+
to { transform: rotate(360deg); }
|
|
16
|
+
}
|
|
17
|
+
.zen-enso-stroke-${t} {
|
|
18
|
+
stroke-dasharray: 1200;
|
|
19
|
+
stroke-dashoffset: ${o?"1200":"0"};
|
|
20
|
+
animation: ${o?`zenEnsoDraw-${t} ${g} cubic-bezier(.2,.9,.25,1) ${m} forwards`:"none"};
|
|
21
|
+
}
|
|
22
|
+
.zen-enso-fill-${t} {
|
|
23
|
+
opacity: ${o?"0":"1"};
|
|
24
|
+
transform-origin: 256px 256px;
|
|
25
|
+
transform: scale(${o?"0.92":"1"});
|
|
26
|
+
animation: ${o?`zenEnsoFill-${t} ${b} cubic-bezier(.2,.9,.2,1) ${m} forwards`:"none"};
|
|
27
|
+
animation-delay: ${o?"1.05s":"0s"};
|
|
28
|
+
}
|
|
29
|
+
.zen-enso-cut-${t} {
|
|
30
|
+
opacity: ${o?"0":"1"};
|
|
31
|
+
animation: ${o?`zenEnsoCut-${t} 0.01s linear ${m} forwards`:"none"};
|
|
32
|
+
animation-delay: ${o?"1.05s":"0s"};
|
|
33
|
+
}
|
|
34
|
+
`}),jsxRuntime.jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,style:y,children:[jsxRuntime.jsx("circle",{className:`zen-enso-fill-${t}`,cx:"256",cy:"256",r:"172",fill:s}),jsxRuntime.jsx("path",{className:`zen-enso-stroke-${t}`,d:"M256 74 C154 74 78 160 78 258 C78 352 150 432 250 438 C345 444 434 374 438 276 C441 210 406 150 348 118 C305 94 280 86 256 74",stroke:s,strokeWidth:"26",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{className:`zen-enso-cut-${t}`,d:"M410 148 C392 126 366 106 340 94",stroke:"currentColor",strokeWidth:"34",strokeLinecap:"round"})]})]})}a(me,"ZenEnso");
|
|
35
|
+
exports.ModelCard=P;exports.ModelFamilySection=F;exports.ModelLibrary=pe;exports.ModelTable=V;exports.ZenEnso=me;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {Zap,Cpu,Atom,Video,Box,Network,Shield,Brain,Mic,Image,Search,Code,Eye,Rocket,Sparkles,ExternalLink,MessageSquare,Github,FileText,Filter}from'lucide-react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useState}from'react';import {useRouter}from'next/navigation';var I=Object.defineProperty;var a=(e,s)=>I(e,"name",{value:s,configurable:true});function q(e){return e?e>=1e6?`${(e/1e6).toFixed(e%1e6===0?0:1)}M ctx`:e>=1e3?`${Math.round(e/1e3)}K ctx`:`${e} ctx`:""}a(q,"fmtCtx");function D(e){switch(e){case "preview":return {label:"PREVIEW",className:"bg-amber-500/20 text-amber-600 dark:text-amber-400"};case "coming-soon":return {label:"SOON",className:"bg-muted text-muted-foreground"};case "contact-sales":return {label:"EARLY ACCESS",className:"bg-purple-500/20 text-purple-600 dark:text-purple-400"};default:return null}}a(D,"statusInfo");function O(e,s){return s?s.includes(e):["zen4-max","zen-max","zen5","zen4"].includes(e)}a(O,"isFeaturedModel");function P({model:e,onNavigate:s,linkPrefix:o="/docs/models/",chatBaseUrl:d="https://hanzo.chat",requestAccessUrl:p="https://hanzo.ai/contact",featuredIds:c}){let t=e.status,g=O(e.id,c),b=D(t),y=[e.spec.params&&e.spec.params!=="N/A"&&e.spec.params!=="TBA"&&e.spec.params!=="TBD"?e.spec.params:null,e.spec.activeParams?`(${e.spec.activeParams} active)`:null,e.spec.arch??null].filter(Boolean).join(" "),$=q(e.spec.context),M=[y,$].filter(Boolean).join(" \xB7 "),C=g?"border-primary/30 bg-primary/5":t==="coming-soon"?"border-border bg-muted/30 opacity-75":t==="contact-sales"?"border-purple-500/20 bg-purple-500/5":"border-border bg-background",h=!!s,N=a(()=>s?.(e.id),"handleClick");return jsxs("div",{role:h?"link":void 0,tabIndex:h?0:void 0,onClick:h?N:void 0,onKeyDown:h?a(l=>{(l.key==="Enter"||l.key===" ")&&N();},"handleKey"):void 0,className:`rounded-lg border p-4 transition hover:border-primary/40 ${C} ${h?"cursor-pointer":""}`,children:[jsxs("div",{className:"flex items-center gap-2 mb-1",children:[jsx("span",{className:"font-semibold text-sm",children:e.id}),b&&jsx("span",{className:`text-[9px] font-semibold tracking-wider uppercase px-1.5 py-0.5 rounded-full ${b.className}`,children:b.label})]}),M&&jsx("div",{className:"text-xs font-mono text-muted-foreground mb-2",children:M}),jsx("p",{className:"text-xs text-muted-foreground mb-3",children:e.description}),jsxs("div",{className:"flex flex-wrap gap-1.5 mt-auto",children:[t==="contact-sales"&&jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",onClick:l=>{l.stopPropagation();},className:"inline-flex items-center gap-1 text-xs bg-purple-500/20 text-purple-400 border border-purple-500/30 px-2 py-0.5 rounded hover:bg-purple-500/30 transition",children:[jsx(ExternalLink,{className:"h-2.5 w-2.5"})," Request Access"]}),(t==="available"||t==="preview"||t==="cloud-only")&&jsxs("a",{href:`${d}?model=${e.id}`,target:"_blank",rel:"noopener noreferrer",onClick:l=>{l.stopPropagation();},className:"inline-flex items-center gap-1 text-xs bg-primary text-primary-foreground px-2 py-0.5 rounded hover:opacity-90 transition",children:[jsx(MessageSquare,{className:"h-2.5 w-2.5"})," Chat"]}),e.huggingface&&jsxs("a",{href:e.huggingface,target:"_blank",rel:"noopener noreferrer",onClick:l=>{l.stopPropagation();},className:"inline-flex items-center gap-1 text-xs text-primary hover:underline",children:[jsx(ExternalLink,{className:"h-2.5 w-2.5"})," Weights"]}),e.github&&jsxs("a",{href:e.github,target:"_blank",rel:"noopener noreferrer",onClick:l=>{l.stopPropagation();},className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:underline",children:[jsx(Github,{className:"h-2.5 w-2.5"})," Repo"]}),e.paper&&jsxs("a",{href:e.paper,target:"_blank",rel:"noopener noreferrer",onClick:l=>{l.stopPropagation();},className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:underline",children:[jsx(FileText,{className:"h-2.5 w-2.5"})," Paper"]})]})]})}a(P,"ModelCard");function K(e){return e?e>=1e6?`${(e/1e6).toFixed(e%1e6===0?0:1)}M`:e>=1e3?`${Math.round(e/1e3)}K`:`${e}`:"\u2014"}a(K,"fmtCtx");function A(e){return e==null?"\u2014":`$${e.toFixed(2)}`}a(A,"fmtPrice");function W({status:e}){return e==="preview"||e==="coming-soon"?jsx("span",{className:"ml-1 text-[9px] font-semibold tracking-wider uppercase bg-amber-500/20 text-amber-600 dark:text-amber-400 px-1.5 py-0.5 rounded-full align-middle",children:e==="preview"?"PREVIEW":"SOON"}):e==="contact-sales"?jsx("span",{className:"ml-1 text-[9px] font-semibold tracking-wider uppercase bg-purple-500/20 text-purple-600 dark:text-purple-400 px-1.5 py-0.5 rounded-full align-middle",children:"EARLY ACCESS"}):null}a(W,"StatusBadge");function V({models:e,linkPrefix:s="/docs/models/",showParams:o=true,showArch:d=false,showContext:p=true,showPricing:c=true}){return jsx("div",{className:"overflow-x-auto my-4",children:jsxs("table",{className:"w-full text-sm",children:[jsx("thead",{children:jsxs("tr",{className:"border-b border-border text-left",children:[jsx("th",{className:"pb-2 pr-4 font-medium",children:"Model"}),o&&jsx("th",{className:"pb-2 pr-4 font-medium",children:"Parameters"}),d&&jsx("th",{className:"pb-2 pr-4 font-medium",children:"Architecture"}),p&&jsx("th",{className:"pb-2 pr-4 font-medium",children:"Context"}),c&&jsx("th",{className:"pb-2 pr-4 font-medium text-right",children:"Input $/1M"}),c&&jsx("th",{className:"pb-2 font-medium text-right",children:"Output $/1M"})]})}),jsx("tbody",{className:"divide-y divide-border",children:e.map(t=>jsxs("tr",{children:[jsxs("td",{className:"py-2 pr-4",children:[jsx("a",{href:`${s}${t.id}`,className:"font-mono text-primary hover:underline text-sm",children:t.id}),jsx(W,{status:t.status})]}),o&&jsxs("td",{className:"py-2 pr-4 text-sm text-muted-foreground",children:[t.spec.params&&!["N/A","TBA","TBD"].includes(t.spec.params)?t.spec.params:"\u2014",t.spec.activeParams?` (${t.spec.activeParams} active)`:""]}),d&&jsx("td",{className:"py-2 pr-4 text-sm text-muted-foreground",children:t.spec.arch??"\u2014"}),p&&jsx("td",{className:"py-2 pr-4 text-sm text-muted-foreground",children:K(t.spec.context)}),c&&jsx("td",{className:"py-2 pr-4 text-sm text-right font-mono",children:A(t.pricing?.input)}),c&&jsx("td",{className:"py-2 text-sm text-right font-mono",children:A(t.pricing?.output)})]},t.id))})]})})}a(V,"ModelTable");var ce={Sparkles:jsx(Sparkles,{className:"h-5 w-5"}),Rocket:jsx(Rocket,{className:"h-5 w-5"}),Eye:jsx(Eye,{className:"h-5 w-5"}),Code:jsx(Code,{className:"h-5 w-5"}),Search:jsx(Search,{className:"h-5 w-5"}),Image:jsx(Image,{className:"h-5 w-5"}),Mic:jsx(Mic,{className:"h-5 w-5"}),Brain:jsx(Brain,{className:"h-5 w-5"}),Shield:jsx(Shield,{className:"h-5 w-5"}),Network:jsx(Network,{className:"h-5 w-5"}),Box:jsx(Box,{className:"h-5 w-5"}),Video:jsx(Video,{className:"h-5 w-5"}),Atom:jsx(Atom,{className:"h-5 w-5"}),Cpu:jsx(Cpu,{className:"h-5 w-5"}),Zap:jsx(Zap,{className:"h-5 w-5"})};function E(e){return e==="available"||e==="contact-sales"||e==="cloud-only"}a(E,"isActiveStatus");function F({family:e,models:s,onNavigate:o,chatBaseUrl:d,requestAccessUrl:p,featuredIds:c}){let t=(e.icon&&ce[e.icon])??jsx(Atom,{className:"h-5 w-5"});return jsxs("div",{className:"mb-12",children:[jsxs("div",{className:"flex items-center gap-3 mb-2",children:[jsx("div",{className:"rounded-lg bg-muted p-2 text-primary",children:t}),jsxs("div",{children:[jsx("h3",{className:"text-xl font-semibold",children:e.name}),jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]}),jsxs("span",{className:"ml-auto text-xs text-muted-foreground bg-muted px-2 py-1 rounded-full",children:[s.length," model",s.length!==1?"s":""]})]}),jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-3 mt-4",children:s.map(g=>jsx(P,{model:g,onNavigate:o,chatBaseUrl:d,requestAccessUrl:p,featuredIds:c},g.id))})]})}a(F,"ModelFamilySection");function pe({families:e,allModels:s,linkPrefix:o="/docs/models/",chatBaseUrl:d="https://hanzo.chat",requestAccessUrl:p="https://hanzo.ai/contact",featuredIds:c,showAllLabel:t="Show All Models",showCurrentLabel:g="Show Current Only",onNavigate:b}){let[m,y]=useState(false),$=useRouter(),M=new Map(s.map(i=>[i.id,i])),C=a(i=>{b?b(i):$.push(`${o}${i}`);},"handleNavigate"),h=e.map(i=>{let Z=i.models.map(k=>M.get(k)).filter(k=>k!==void 0).filter(k=>m||E(k.status));return {...i,resolvedModels:Z}}).filter(i=>i.resolvedModels.length>0),N=s.filter(i=>E(i.status)).length,S=s.length,l=S-N;return jsxs(Fragment,{children:[jsxs("div",{className:"flex items-center justify-between mb-8",children:[jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing ",jsx("strong",{children:m?S:N})," models",!m&&l>0&&jsxs(Fragment,{children:[" \xB7 ",l," legacy/upcoming hidden"]})]}),jsxs("button",{onClick:()=>y(!m),className:"inline-flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-1.5 text-sm font-medium hover:bg-muted transition",children:[jsx(Filter,{className:"h-3.5 w-3.5"}),m?g:t]})]}),h.map(i=>jsx(F,{family:i,models:i.resolvedModels,onNavigate:C,chatBaseUrl:d,requestAccessUrl:p,featuredIds:c},i.id))]})}a(pe,"ModelLibrary");function me({size:e=64,color:s="#A855F7",animate:o=true,loop:d=false,asLoader:p=false,className:c=""}){let t=Math.random().toString(36).slice(2,7),g=d?"1.35s":"1.25s",b=d?"0.60s":"0.55s",m=d?"infinite":"1",y=p?{animation:`zenEnsoSpin-${t} 1.2s linear infinite`}:{};return jsxs("span",{className:`inline-flex items-center justify-center ${c}`,style:{width:e,height:e},"aria-label":"Zen LM",children:[jsx("style",{children:`
|
|
3
|
+
@keyframes zenEnsoDraw-${t} {
|
|
4
|
+
to { stroke-dashoffset: 0; }
|
|
5
|
+
}
|
|
6
|
+
@keyframes zenEnsoFill-${t} {
|
|
7
|
+
0% { opacity: 0; transform: scale(0.92); filter: blur(6px); }
|
|
8
|
+
60% { opacity: 1; transform: scale(1.02); filter: blur(1px); }
|
|
9
|
+
100% { opacity: 1; transform: scale(1.00); filter: blur(0px); }
|
|
10
|
+
}
|
|
11
|
+
@keyframes zenEnsoCut-${t} {
|
|
12
|
+
to { opacity: 1; }
|
|
13
|
+
}
|
|
14
|
+
@keyframes zenEnsoSpin-${t} {
|
|
15
|
+
to { transform: rotate(360deg); }
|
|
16
|
+
}
|
|
17
|
+
.zen-enso-stroke-${t} {
|
|
18
|
+
stroke-dasharray: 1200;
|
|
19
|
+
stroke-dashoffset: ${o?"1200":"0"};
|
|
20
|
+
animation: ${o?`zenEnsoDraw-${t} ${g} cubic-bezier(.2,.9,.25,1) ${m} forwards`:"none"};
|
|
21
|
+
}
|
|
22
|
+
.zen-enso-fill-${t} {
|
|
23
|
+
opacity: ${o?"0":"1"};
|
|
24
|
+
transform-origin: 256px 256px;
|
|
25
|
+
transform: scale(${o?"0.92":"1"});
|
|
26
|
+
animation: ${o?`zenEnsoFill-${t} ${b} cubic-bezier(.2,.9,.2,1) ${m} forwards`:"none"};
|
|
27
|
+
animation-delay: ${o?"1.05s":"0s"};
|
|
28
|
+
}
|
|
29
|
+
.zen-enso-cut-${t} {
|
|
30
|
+
opacity: ${o?"0":"1"};
|
|
31
|
+
animation: ${o?`zenEnsoCut-${t} 0.01s linear ${m} forwards`:"none"};
|
|
32
|
+
animation-delay: ${o?"1.05s":"0s"};
|
|
33
|
+
}
|
|
34
|
+
`}),jsxs("svg",{viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,style:y,children:[jsx("circle",{className:`zen-enso-fill-${t}`,cx:"256",cy:"256",r:"172",fill:s}),jsx("path",{className:`zen-enso-stroke-${t}`,d:"M256 74 C154 74 78 160 78 258 C78 352 150 432 250 438 C345 444 434 374 438 276 C441 210 406 150 348 118 C305 94 280 86 256 74",stroke:s,strokeWidth:"26",strokeLinecap:"round",strokeLinejoin:"round"}),jsx("path",{className:`zen-enso-cut-${t}`,d:"M410 148 C392 126 366 106 340 94",stroke:"currentColor",strokeWidth:"34",strokeLinecap:"round"})]})]})}a(me,"ZenEnso");
|
|
35
|
+
export{P as ModelCard,F as ModelFamilySection,pe as ModelLibrary,V as ModelTable,me as ZenEnso};
|
package/dist/navigation/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';var jsxRuntime=require('react/jsx-runtime');var G=Object.defineProperty;var e=(q,z)=>G(q,"name",{value:z,configurable:true});function t(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(t,"Component");function a(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(a,"Component");function i(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(i,"Component");function s(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(s,"Component");function f(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(f,"Component");function u(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(u,"Component");function l(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(l,"Component");function v(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(v,"Component");function N(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(N,"Component");function B(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(B,"Component");function S(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(S,"Component");function b(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(b,"Component");function w(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(w,"Component");function D(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(D,"Component");function E(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(E,"Component");function L(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(L,"Component");function U(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(U,"Component");function k(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(k,"Component");exports.AIModelSelectorNavigationBar=a;exports.AdvancedNavigationBar=t;exports.AppSwitcherNavigationBar=i;exports.BreadcrumbAndFiltersNavigationBar=s;exports.BreadcrumbNavigationBar=f;exports.CenteredLogoNavigationBar=u;exports.CollaborationNavigationBar=l;exports.CommunicationNavigationBar=v;exports.ContextSwitcherNavigationBar=N;exports.DashboardNavigationBar=B;exports.ECommerceNavigationBar=S;exports.IconNavigationBar=b;exports.SearchAndToggleNavigationBar=w;exports.SimpleNavigationBar=D;exports.StatusDashboardNavigationBar=E;exports.TeamSwitcherNavigationBar=L;exports.TwoTierNavigationBar=U;exports.UnderlineNavigationBar=k;
|
|
2
|
+
'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var Ye=Object.defineProperty;var e=(t,o)=>Ye(t,"name",{value:o,configurable:true});function Je({x:t,y:o,onClose:n}){let s=react.useRef(null);react.useEffect(()=>{let i=e(d=>{s.current&&!s.current.contains(d.target)&&n();},"handler"),c=e(d=>{d.key==="Escape"&&n();},"escape");return document.addEventListener("mousedown",i),document.addEventListener("keydown",c),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",c);}},[n]);let l=[{label:"Brand Guidelines",href:"https://hanzo.ai/brand"},{label:"Press Kit",href:"https://hanzo.ai/press"},{label:"Download Logo",href:"https://hanzo.ai/brand#download"},{label:"Copy SVG",action:"copy-svg"},{label:"hanzo.ai \u2192",href:"https://hanzo.ai"}],r='<svg viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg"><path d="M22.21 67V44.6369H0V67H22.21Z" fill="#ffffff"/><path d="M0 44.6369L22.21 46.8285V44.6369H0Z" fill="#DDDDDD"/><path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="#ffffff"/><path d="M22.21 0H0V22.3184H22.21V0Z" fill="#ffffff"/><path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="#ffffff"/><path d="M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z" fill="#DDDDDD"/><path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="#ffffff"/></svg>';return jsxRuntime.jsxs("div",{ref:s,role:"menu",className:"fixed z-[9999] min-w-[180px] rounded-xl border border-white/[0.08] bg-[#111113] py-1.5 shadow-2xl shadow-black/60",style:{top:o,left:t},children:[jsxRuntime.jsx("div",{className:"border-b border-white/[0.06] px-3 pb-2 pt-1",children:jsxRuntime.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-widest text-white/30",children:"Hanzo Brand"})}),l.map(i=>i.action==="copy-svg"?jsxRuntime.jsx("button",{type:"button",role:"menuitem",onClick:()=>{navigator.clipboard.writeText(r).catch(()=>{}),n();},className:"flex w-full items-center px-3 py-2 text-[13px] text-white/60 hover:bg-white/[0.05] hover:text-white/90 transition-colors text-left",children:"Copy SVG"},"copy"):jsxRuntime.jsx("a",{href:i.href,role:"menuitem",target:i.href?.startsWith("https")?"_blank":void 0,rel:"noopener noreferrer",onClick:n,className:"flex items-center px-3 py-2 text-[13px] text-white/60 hover:bg-white/[0.05] hover:text-white/90 transition-colors",children:i.label},i.label))]})}e(Je,"BrandContextMenu");function ne({size:t=22,className:o="",brandMenu:n=true,animate:s=true}){let[l,r]=react.useState(null),[i,c]=react.useState(false),d=react.useCallback(f=>{n&&(f.preventDefault(),r({x:f.clientX,y:f.clientY}));},[n]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("svg",{width:t,height:t,viewBox:"0 0 67 67",xmlns:"http://www.w3.org/2000/svg","aria-label":"Hanzo",className:o,style:s?{transition:"transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease",transform:i?"scale(1.12) perspective(80px) rotateY(-6deg)":"scale(1) perspective(80px) rotateY(0deg)",transformOrigin:"center center"}:{},onMouseEnter:()=>c(true),onMouseLeave:()=>c(false),onContextMenu:d,children:[jsxRuntime.jsx("path",{d:"M22.21 67V44.6369H0V67H22.21Z",fill:"#ffffff"}),jsxRuntime.jsx("path",{d:"M0 44.6369L22.21 46.8285V44.6369H0Z",fill:"#DDDDDD"}),jsxRuntime.jsx("path",{d:"M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z",fill:"#ffffff"}),jsxRuntime.jsx("path",{d:"M22.21 0H0V22.3184H22.21V0Z",fill:"#ffffff"}),jsxRuntime.jsx("path",{d:"M66.7198 0H44.5098V22.3184H66.7198V0Z",fill:"#ffffff"}),jsxRuntime.jsx("path",{d:"M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z",fill:"#DDDDDD"}),jsxRuntime.jsx("path",{d:"M66.7198 67V44.6369H44.5098V67H66.7198Z",fill:"#ffffff"})]}),l&&jsxRuntime.jsx(Je,{x:l.x,y:l.y,onClose:()=>r(null)})]})}e(ne,"HanzoMark");var k=[{id:"account",label:"Account",href:"https://hanzo.id/account",description:"Profile, orgs & referrals"},{id:"billing",label:"Billing",href:"https://billing.hanzo.ai",description:"Subscriptions & usage"},{id:"console",label:"Console",href:"https://console.hanzo.ai",description:"API keys & projects"},{id:"chat",label:"Chat",href:"https://chat.hanzo.ai",description:"AI chat & models"},{id:"platform",label:"Platform",href:"https://platform.hanzo.ai",description:"Deploy & scale services"}];function V({apps:t=k,currentAppId:o}){let[n,s]=react.useState(false),l=react.useRef(null);return react.useEffect(()=>{let r=e(i=>{l.current&&!l.current.contains(i.target)&&s(false);},"handler");return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[]),jsxRuntime.jsxs("div",{ref:l,className:"relative",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>s(r=>!r),className:"flex h-8 w-8 items-center justify-center rounded-lg text-white/40 hover:bg-white/[0.06] hover:text-white/70 transition-colors","aria-label":"Switch app",title:"Switch app",children:jsxRuntime.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[jsxRuntime.jsx("rect",{x:"1",y:"1",width:"4",height:"4",rx:"1"}),jsxRuntime.jsx("rect",{x:"6",y:"1",width:"4",height:"4",rx:"1"}),jsxRuntime.jsx("rect",{x:"11",y:"1",width:"4",height:"4",rx:"1"}),jsxRuntime.jsx("rect",{x:"1",y:"6",width:"4",height:"4",rx:"1"}),jsxRuntime.jsx("rect",{x:"6",y:"6",width:"4",height:"4",rx:"1"}),jsxRuntime.jsx("rect",{x:"11",y:"6",width:"4",height:"4",rx:"1"}),jsxRuntime.jsx("rect",{x:"1",y:"11",width:"4",height:"4",rx:"1"}),jsxRuntime.jsx("rect",{x:"6",y:"11",width:"4",height:"4",rx:"1"}),jsxRuntime.jsx("rect",{x:"11",y:"11",width:"4",height:"4",rx:"1"})]})}),n&&jsxRuntime.jsxs("div",{className:"absolute left-0 top-10 z-50 w-64 rounded-xl border border-white/[0.08] bg-[#0e0e13] p-2 shadow-2xl",children:[jsxRuntime.jsx("p",{className:"px-2 pb-1.5 pt-0.5 text-[10px] font-medium uppercase tracking-wider text-white/30",children:"Hanzo Apps"}),t.filter(r=>r.id!==o).map(r=>jsxRuntime.jsxs("a",{href:r.href,className:"flex flex-col gap-0.5 rounded-lg px-3 py-2.5 hover:bg-white/[0.06] transition-colors",onClick:()=>s(false),children:[jsxRuntime.jsx("span",{className:"text-[13px] font-medium text-white/80",children:r.label}),r.description&&jsxRuntime.jsx("span",{className:"text-[11px] text-white/30",children:r.description})]},r.id))]})]})}e(V,"AppSwitcher");var ot=["#0A0310","#49007E","#FF005B","#FF7D10","#FFB238"];function rt(t){let o=0;for(let n=0;n<t.length;n++)o=(o<<5)-o+t.charCodeAt(n)|0;return Math.abs(o)}e(rt,"hashStr");function S(t,o,n){return t%(o*(n+1))%o}e(S,"getUnit");function at(t,o){return S(t,2,o)===0}e(at,"getBoolean");function oe(t,o,n){return n[S(t,n.length,o)]}e(oe,"getRandomColor");function st(t){let o=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),s=parseInt(t.slice(5,7),16);return o*.299+n*.587+s*.114>128?"#000":"#fff"}e(st,"getContrast");function re({name:t,size:o=40,colors:n=ot,className:s,square:l=false}){let r=rt(t),i=oe(r,0,n),c=st(i),d=at(r,2),p=S(r,3,7),f=S(r,5,8),v=S(r,10,9),g=v>6?v-10:v,h=S(r,5,10)>3?S(r,5,10)-5:S(r,5,10);return jsxRuntime.jsxs("svg",{viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,className:s,style:l?void 0:{borderRadius:"50%"},children:[jsxRuntime.jsx("mask",{id:`beam-${r}`,maskUnits:"userSpaceOnUse",x:0,y:0,width:36,height:36,children:jsxRuntime.jsx("rect",{width:36,height:36,rx:l?void 0:72,fill:"#fff"})}),jsxRuntime.jsxs("g",{mask:`url(#beam-${r})`,children:[jsxRuntime.jsx("rect",{width:36,height:36,fill:i}),jsxRuntime.jsx("rect",{x:0,y:0,width:36,height:36,transform:`translate(${g} ${h}) rotate(${v} 18 18)`,fill:oe(r,1,n),rx:6}),jsxRuntime.jsxs("g",{transform:`translate(${g} ${h}) rotate(${v} 18 18)`,children:[d?jsxRuntime.jsx("path",{d:`M15 ${19+p}c2 1 4 1 6 0`,stroke:c,fill:"none",strokeLinecap:"round"}):jsxRuntime.jsx("path",{d:`M13 ${19+p}a1 .75 0 0 0 10 0`,fill:c}),jsxRuntime.jsx("rect",{x:14-f,y:14,width:1.5,height:2,rx:1,fill:c}),jsxRuntime.jsx("rect",{x:20+f,y:14,width:1.5,height:2,rx:1,fill:c})]})]})]})}e(re,"BeamAvatar");async function lt(t){let n=new TextEncoder().encode(t),s=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(s)).map(l=>l.toString(16).padStart(2,"0")).join("")}e(lt,"sha256");function pt(t,o){let[n,s]=react.useState(null);return react.useMemo(()=>{if(!t){s(null);return}let l=t.trim().toLowerCase();lt(l).then(r=>{s(`https://www.gravatar.com/avatar/${r}?s=${o||80}&d=404`);});},[t,o]),n}e(pt,"useGravatarUrl");function ae({src:t,email:o,name:n,size:s=40,colors:l,className:r}){let[i,c]=react.useState(false),[d,p]=react.useState(false),f=pt(o,s*2),v=`rounded-full object-cover ${r||""}`,g={width:s,height:s};return t&&!i?jsxRuntime.jsx("img",{src:t,alt:n||o||"avatar",className:v,style:g,onError:()=>c(true)}):f&&!d?jsxRuntime.jsx("img",{src:f,alt:n||o||"avatar",className:v,style:g,onError:()=>p(true)}):jsxRuntime.jsx(re,{name:n||o||"user",size:s,colors:l,className:r})}e(ae,"UserAvatar");function T({user:t,organizations:o=[],currentOrgId:n,onOrgSwitch:s,onSignOut:l}){let[r,i]=react.useState(false),c=react.useRef(null);if(react.useEffect(()=>{let p=e(f=>{c.current&&!c.current.contains(f.target)&&i(false);},"handler");return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]),!t)return null;o.find(p=>p.id===n);return jsxRuntime.jsxs("div",{ref:c,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>i(p=>!p),className:"flex items-center gap-2 rounded-lg px-2 py-1.5 hover:bg-white/[0.06] transition-colors",children:[jsxRuntime.jsx(ae,{src:t.avatar,email:t.email,name:t.name,size:28}),jsxRuntime.jsxs("div",{className:"hidden flex-col items-start sm:flex",children:[t.name&&jsxRuntime.jsx("span",{className:"text-[12px] font-medium text-white/70 leading-none",children:t.name}),jsxRuntime.jsx("span",{className:"text-[11px] text-white/30 leading-none mt-0.5",children:t.email})]}),jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white/30 hidden sm:block",children:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})]}),r&&jsxRuntime.jsxs("div",{className:"absolute right-0 top-10 z-50 w-64 rounded-xl border border-white/[0.08] bg-[#0e0e13] shadow-2xl",children:[jsxRuntime.jsxs("div",{className:"border-b border-white/[0.06] px-4 py-3",children:[jsxRuntime.jsx("p",{className:"text-[13px] font-medium text-white/80",children:t.name||"User"}),jsxRuntime.jsx("p",{className:"text-[11px] text-white/40",children:t.email})]}),o.length>0&&jsxRuntime.jsxs("div",{className:"border-b border-white/[0.06] p-2",children:[jsxRuntime.jsx("p",{className:"px-2 pb-1 pt-0.5 text-[10px] font-medium uppercase tracking-wider text-white/30",children:"Organizations"}),o.map(p=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>{s?.(p.id),i(false);},className:"flex w-full items-center justify-between rounded-lg px-3 py-2 text-left hover:bg-white/[0.06] transition-colors",children:[jsxRuntime.jsx("span",{className:"text-[13px] text-white/70",children:p.name}),p.id===n&&jsxRuntime.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white/50",children:jsxRuntime.jsx("polyline",{points:"20 6 9 17 4 12"})})]},p.id))]}),jsxRuntime.jsxs("div",{className:"p-2",children:[jsxRuntime.jsx("a",{href:"https://hanzo.id/account",className:"flex items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] text-white/60 hover:bg-white/[0.06] hover:text-white/80 transition-colors",onClick:()=>i(false),children:"Account settings"}),jsxRuntime.jsx("a",{href:"https://billing.hanzo.ai",className:"flex items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] text-white/60 hover:bg-white/[0.06] hover:text-white/80 transition-colors",onClick:()=>i(false),children:"Billing"}),jsxRuntime.jsx("button",{type:"button",onClick:()=>{i(false),l?.();},className:"flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] text-white/40 hover:bg-white/[0.06] hover:text-red-400/70 transition-colors",children:"Sign out"})]})]})]})}e(T,"UserOrgDropdown");function se({currentApp:t,currentAppId:o,user:n,organizations:s,currentOrgId:l,onOrgSwitch:r,onSignOut:i,apps:c=k,headerRight:d}){return jsxRuntime.jsxs("header",{className:"sticky top-0 z-50 flex h-14 w-full items-center justify-between border-b border-white/[0.07] bg-[#09090b]/90 px-4 backdrop-blur-xl",role:"banner",children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[jsxRuntime.jsx("a",{href:"https://hanzo.id/account",className:"flex-shrink-0 rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Hanzo Account",children:jsxRuntime.jsx(ne,{size:22,brandMenu:true,animate:true})}),jsxRuntime.jsx("span",{className:"select-none text-white/[0.15]",children:"/"}),jsxRuntime.jsx("span",{className:"truncate text-[13px] font-medium text-white/50",children:t}),jsxRuntime.jsx(V,{apps:c,currentAppId:o})]}),jsxRuntime.jsxs("div",{className:"flex flex-shrink-0 items-center gap-2",children:[d,jsxRuntime.jsx(T,{user:n,organizations:s,currentOrgId:l,onOrgSwitch:r,onSignOut:i})]})]})}e(se,"HanzoHeader");var ie="hanzo-auth-token",W="hanzo-user",le="hanzo-auth-expires",ut="https://iam.hanzo.ai",ht={hanzo:{name:"Hanzo AI",slug:"hanzo"},lux:{name:"Lux Network",slug:"lux"},zoo:{name:"Zoo Labs",slug:"zoo"},pars:{name:"Pars",slug:"pars"}};function pe(){let[t,o]=react.useState(void 0),[n,s]=react.useState([]),[l,r]=react.useState(void 0),[i,c]=react.useState(null),[d,p]=react.useState(true),f=react.useCallback(async()=>{try{let h=localStorage.getItem(ie),L=localStorage.getItem(le);if(!h||L&&Date.now()>Number(L)){p(!1);return}c(h);let M=localStorage.getItem(W);if(M)try{let m=JSON.parse(M);m?.email&&o({id:m.id,name:m.displayName||m.name,email:m.email,avatar:m.avatar});}catch{}let U=await fetch(`${ut}/api/userinfo`,{headers:{Authorization:`Bearer ${h}`}});if(U.ok){let m=await U.json(),P={id:m.sub||m.id,name:m.name||m.displayName,email:m.email,avatar:m.picture||m.avatar};o(P),localStorage.setItem(W,JSON.stringify(m));let H=(m.groups||[]).map(z=>{let D=z.toLowerCase().replace(/^\//,""),B=ht[D];return B?{id:D,name:B.name,slug:B.slug}:null}).filter(Boolean);H.length===0&&P.email&&H.push({id:"personal",name:"Personal",slug:"personal"}),s(H),r(H[0]?.id);}}catch{}finally{p(false);}},[]);react.useEffect(()=>{f();},[f]);let v=react.useCallback(()=>{localStorage.removeItem(ie),localStorage.removeItem(W),localStorage.removeItem(le),window.location.href="https://hanzo.id";},[]),g=react.useCallback(h=>{r(h);},[]);return {user:t,organizations:n,currentOrgId:l,token:i,loading:d,signOut:v,switchOrg:g}}e(pe,"useHanzoAuth");function gt(t,o){return t.filter(n=>n.id!==o).map(n=>({id:`app-${n.id}`,title:n.label,description:n.description,href:n.href,category:"Hanzo Apps",external:true,keywords:[n.id,n.label.toLowerCase()]}))}e(gt,"buildCrossAppCommands");function de({commands:t=[],apps:o,currentAppId:n,open:s,onOpenChange:l,onNavigate:r}){var ee;let[i,c]=react.useState(false),d=s??i,p=react.useCallback(a=>{l?l(a):c(a);},[l]),[f,v]=react.useState(""),[g,h]=react.useState(0),L=react.useRef(null),M=react.useRef(null),U=gt(o??k,n),m=[...t,...U],P=f.toLowerCase(),Q=P?m.filter(a=>a.title.toLowerCase().includes(P)||a.description?.toLowerCase().includes(P)||a.keywords?.some(b=>b.includes(P))):m,H={};for(let a of Q)(H[ee=a.category]??(H[ee]=[])).push(a);let z=Object.values(H).flat();react.useEffect(()=>h(0),[f]),react.useEffect(()=>{d&&(v(""),h(0),requestAnimationFrame(()=>L.current?.focus()));},[d]),react.useEffect(()=>{let a=e(b=>{(b.metaKey||b.ctrlKey)&&b.key==="k"&&(b.preventDefault(),p(!d));},"handler");return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[d,p]);let D=react.useCallback(a=>{a.action?a.action():a.href&&(r?r(a.href,a.external):a.external?window.open(a.href,"_blank"):window.location.href=a.href),p(false);},[r,p]),B=react.useCallback(a=>{a.key==="ArrowDown"?(a.preventDefault(),h(b=>(b+1)%(z.length||1))):a.key==="ArrowUp"?(a.preventDefault(),h(b=>(b-1+(z.length||1))%(z.length||1))):a.key==="Enter"&&z[g]?(a.preventDefault(),D(z[g])):a.key==="Escape"&&p(false);},[z,g,D,p]);return react.useEffect(()=>{M.current?.querySelector(`[data-idx="${g}"]`)?.scrollIntoView({block:"nearest"});},[g]),d?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[100]",onClick:()=>p(false)}),jsxRuntime.jsx("div",{className:"fixed top-[15%] left-1/2 -translate-x-1/2 w-full max-w-xl z-[101]",children:jsxRuntime.jsxs("div",{className:"bg-[#111113] border border-white/[0.08] rounded-xl shadow-2xl overflow-hidden",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-white/[0.07]",children:[jsxRuntime.jsx("svg",{className:"w-4 h-4 text-white/30",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),jsxRuntime.jsx("input",{ref:L,type:"text",value:f,onChange:a=>v(a.target.value),onKeyDown:B,placeholder:"Search commands...",className:"flex-1 bg-transparent text-white text-[13px] placeholder-white/30 outline-none"}),jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono bg-white/[0.06] rounded text-white/30",children:"ESC"})]}),jsxRuntime.jsx("div",{ref:M,className:"max-h-[400px] overflow-y-auto py-1",children:z.length===0?jsxRuntime.jsxs("div",{className:"px-4 py-8 text-center text-white/30 text-[13px]",children:["No results for \u201C",f,"\u201D"]}):Object.entries(H).map(([a,b])=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"px-4 py-2 text-[10px] font-semibold text-white/25 uppercase tracking-widest",children:a}),b.map(C=>{let _=z.indexOf(C),$=_===g;return jsxRuntime.jsxs("button",{"data-idx":_,onClick:()=>D(C),onMouseEnter:()=>h(_),className:`w-full flex items-center gap-3 px-4 py-2 text-left transition-colors ${$?"bg-white/[0.06] text-white":"text-white/50 hover:bg-white/[0.03]"}`,children:[C.icon&&jsxRuntime.jsx("span",{className:`w-5 h-5 flex items-center justify-center ${$?"text-white/70":"text-white/25"}`,children:C.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("span",{className:"text-[13px] font-medium truncate block",children:C.title}),C.description&&jsxRuntime.jsx("span",{className:"text-[11px] text-white/25 truncate block",children:C.description})]}),$&&jsxRuntime.jsx("span",{className:"text-white/25 text-[11px]",children:"\u21B5"})]},C.id)})]},a))}),jsxRuntime.jsxs("div",{className:"px-4 py-2 border-t border-white/[0.07] flex items-center justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4 text-[10px] text-white/20",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"px-1 py-0.5 bg-white/[0.06] rounded text-[9px]",children:"\u2191"}),jsxRuntime.jsx("kbd",{className:"px-1 py-0.5 bg-white/[0.06] rounded text-[9px]",children:"\u2193"}),"navigate"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"px-1 py-0.5 bg-white/[0.06] rounded text-[9px]",children:"\u21B5"}),"select"]})]}),jsxRuntime.jsx("span",{className:"text-[10px] text-white/20",children:"\u2318K"})]})]})})]}):null}e(de,"HanzoCommandPalette");function me(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(me,"Component");function he(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(he,"Component");function xe(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(xe,"Component");function we(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(we,"Component");function ye(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(ye,"Component");function He(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(He,"Component");function Ce(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ce,"Component");function Ae(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ae,"Component");function Oe(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Oe,"Component");function De(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(De,"Component");function Le(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Le,"Component");function Be(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Be,"Component");function Ue(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ue,"Component");function Ve(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ve,"Component");function Ze(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ze,"Component");function $e(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e($e,"Component");function Ke(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ke,"Component");function je(){return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(je,"Component");
|
|
3
|
+
exports.AIModelSelectorNavigationBar=he;exports.AdvancedNavigationBar=me;exports.AppSwitcher=V;exports.AppSwitcherNavigationBar=xe;exports.BreadcrumbAndFiltersNavigationBar=we;exports.BreadcrumbNavigationBar=ye;exports.CenteredLogoNavigationBar=He;exports.CollaborationNavigationBar=Ce;exports.CommunicationNavigationBar=Ae;exports.ContextSwitcherNavigationBar=Oe;exports.DEFAULT_HANZO_APPS=k;exports.DashboardNavigationBar=De;exports.ECommerceNavigationBar=Le;exports.HanzoCommandPalette=de;exports.HanzoHeader=se;exports.IconNavigationBar=Be;exports.SearchAndToggleNavigationBar=Ue;exports.SimpleNavigationBar=Ve;exports.StatusDashboardNavigationBar=Ze;exports.TeamSwitcherNavigationBar=$e;exports.TwoTierNavigationBar=Ke;exports.UnderlineNavigationBar=je;exports.UserOrgDropdown=T;exports.useHanzoAuth=pe;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {jsx}from'react/jsx-runtime';var G=Object.defineProperty;var e=(q,z)=>G(q,"name",{value:z,configurable:true});function t(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(t,"Component");function a(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(a,"Component");function i(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(i,"Component");function s(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(s,"Component");function f(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(f,"Component");function u(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(u,"Component");function l(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(l,"Component");function v(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(v,"Component");function N(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(N,"Component");function B(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(B,"Component");function S(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(S,"Component");function b(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(b,"Component");function w(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(w,"Component");function D(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(D,"Component");function E(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(E,"Component");function L(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(L,"Component");function U(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(U,"Component");function k(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(k,"Component");export{a as AIModelSelectorNavigationBar,t as AdvancedNavigationBar,i as AppSwitcherNavigationBar,s as BreadcrumbAndFiltersNavigationBar,f as BreadcrumbNavigationBar,u as CenteredLogoNavigationBar,l as CollaborationNavigationBar,v as CommunicationNavigationBar,N as ContextSwitcherNavigationBar,B as DashboardNavigationBar,S as ECommerceNavigationBar,b as IconNavigationBar,w as SearchAndToggleNavigationBar,D as SimpleNavigationBar,E as StatusDashboardNavigationBar,L as TeamSwitcherNavigationBar,U as TwoTierNavigationBar,k as UnderlineNavigationBar};
|
|
2
|
+
import {useState,useRef,useEffect,useCallback,useMemo}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var Ye=Object.defineProperty;var e=(t,o)=>Ye(t,"name",{value:o,configurable:true});function Je({x:t,y:o,onClose:n}){let s=useRef(null);useEffect(()=>{let i=e(d=>{s.current&&!s.current.contains(d.target)&&n();},"handler"),c=e(d=>{d.key==="Escape"&&n();},"escape");return document.addEventListener("mousedown",i),document.addEventListener("keydown",c),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",c);}},[n]);let l=[{label:"Brand Guidelines",href:"https://hanzo.ai/brand"},{label:"Press Kit",href:"https://hanzo.ai/press"},{label:"Download Logo",href:"https://hanzo.ai/brand#download"},{label:"Copy SVG",action:"copy-svg"},{label:"hanzo.ai \u2192",href:"https://hanzo.ai"}],r='<svg viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg"><path d="M22.21 67V44.6369H0V67H22.21Z" fill="#ffffff"/><path d="M0 44.6369L22.21 46.8285V44.6369H0Z" fill="#DDDDDD"/><path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="#ffffff"/><path d="M22.21 0H0V22.3184H22.21V0Z" fill="#ffffff"/><path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="#ffffff"/><path d="M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z" fill="#DDDDDD"/><path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="#ffffff"/></svg>';return jsxs("div",{ref:s,role:"menu",className:"fixed z-[9999] min-w-[180px] rounded-xl border border-white/[0.08] bg-[#111113] py-1.5 shadow-2xl shadow-black/60",style:{top:o,left:t},children:[jsx("div",{className:"border-b border-white/[0.06] px-3 pb-2 pt-1",children:jsx("p",{className:"text-[10px] font-semibold uppercase tracking-widest text-white/30",children:"Hanzo Brand"})}),l.map(i=>i.action==="copy-svg"?jsx("button",{type:"button",role:"menuitem",onClick:()=>{navigator.clipboard.writeText(r).catch(()=>{}),n();},className:"flex w-full items-center px-3 py-2 text-[13px] text-white/60 hover:bg-white/[0.05] hover:text-white/90 transition-colors text-left",children:"Copy SVG"},"copy"):jsx("a",{href:i.href,role:"menuitem",target:i.href?.startsWith("https")?"_blank":void 0,rel:"noopener noreferrer",onClick:n,className:"flex items-center px-3 py-2 text-[13px] text-white/60 hover:bg-white/[0.05] hover:text-white/90 transition-colors",children:i.label},i.label))]})}e(Je,"BrandContextMenu");function ne({size:t=22,className:o="",brandMenu:n=true,animate:s=true}){let[l,r]=useState(null),[i,c]=useState(false),d=useCallback(f=>{n&&(f.preventDefault(),r({x:f.clientX,y:f.clientY}));},[n]);return jsxs(Fragment,{children:[jsxs("svg",{width:t,height:t,viewBox:"0 0 67 67",xmlns:"http://www.w3.org/2000/svg","aria-label":"Hanzo",className:o,style:s?{transition:"transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease",transform:i?"scale(1.12) perspective(80px) rotateY(-6deg)":"scale(1) perspective(80px) rotateY(0deg)",transformOrigin:"center center"}:{},onMouseEnter:()=>c(true),onMouseLeave:()=>c(false),onContextMenu:d,children:[jsx("path",{d:"M22.21 67V44.6369H0V67H22.21Z",fill:"#ffffff"}),jsx("path",{d:"M0 44.6369L22.21 46.8285V44.6369H0Z",fill:"#DDDDDD"}),jsx("path",{d:"M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z",fill:"#ffffff"}),jsx("path",{d:"M22.21 0H0V22.3184H22.21V0Z",fill:"#ffffff"}),jsx("path",{d:"M66.7198 0H44.5098V22.3184H66.7198V0Z",fill:"#ffffff"}),jsx("path",{d:"M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z",fill:"#DDDDDD"}),jsx("path",{d:"M66.7198 67V44.6369H44.5098V67H66.7198Z",fill:"#ffffff"})]}),l&&jsx(Je,{x:l.x,y:l.y,onClose:()=>r(null)})]})}e(ne,"HanzoMark");var k=[{id:"account",label:"Account",href:"https://hanzo.id/account",description:"Profile, orgs & referrals"},{id:"billing",label:"Billing",href:"https://billing.hanzo.ai",description:"Subscriptions & usage"},{id:"console",label:"Console",href:"https://console.hanzo.ai",description:"API keys & projects"},{id:"chat",label:"Chat",href:"https://chat.hanzo.ai",description:"AI chat & models"},{id:"platform",label:"Platform",href:"https://platform.hanzo.ai",description:"Deploy & scale services"}];function V({apps:t=k,currentAppId:o}){let[n,s]=useState(false),l=useRef(null);return useEffect(()=>{let r=e(i=>{l.current&&!l.current.contains(i.target)&&s(false);},"handler");return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[]),jsxs("div",{ref:l,className:"relative",children:[jsx("button",{type:"button",onClick:()=>s(r=>!r),className:"flex h-8 w-8 items-center justify-center rounded-lg text-white/40 hover:bg-white/[0.06] hover:text-white/70 transition-colors","aria-label":"Switch app",title:"Switch app",children:jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[jsx("rect",{x:"1",y:"1",width:"4",height:"4",rx:"1"}),jsx("rect",{x:"6",y:"1",width:"4",height:"4",rx:"1"}),jsx("rect",{x:"11",y:"1",width:"4",height:"4",rx:"1"}),jsx("rect",{x:"1",y:"6",width:"4",height:"4",rx:"1"}),jsx("rect",{x:"6",y:"6",width:"4",height:"4",rx:"1"}),jsx("rect",{x:"11",y:"6",width:"4",height:"4",rx:"1"}),jsx("rect",{x:"1",y:"11",width:"4",height:"4",rx:"1"}),jsx("rect",{x:"6",y:"11",width:"4",height:"4",rx:"1"}),jsx("rect",{x:"11",y:"11",width:"4",height:"4",rx:"1"})]})}),n&&jsxs("div",{className:"absolute left-0 top-10 z-50 w-64 rounded-xl border border-white/[0.08] bg-[#0e0e13] p-2 shadow-2xl",children:[jsx("p",{className:"px-2 pb-1.5 pt-0.5 text-[10px] font-medium uppercase tracking-wider text-white/30",children:"Hanzo Apps"}),t.filter(r=>r.id!==o).map(r=>jsxs("a",{href:r.href,className:"flex flex-col gap-0.5 rounded-lg px-3 py-2.5 hover:bg-white/[0.06] transition-colors",onClick:()=>s(false),children:[jsx("span",{className:"text-[13px] font-medium text-white/80",children:r.label}),r.description&&jsx("span",{className:"text-[11px] text-white/30",children:r.description})]},r.id))]})]})}e(V,"AppSwitcher");var ot=["#0A0310","#49007E","#FF005B","#FF7D10","#FFB238"];function rt(t){let o=0;for(let n=0;n<t.length;n++)o=(o<<5)-o+t.charCodeAt(n)|0;return Math.abs(o)}e(rt,"hashStr");function S(t,o,n){return t%(o*(n+1))%o}e(S,"getUnit");function at(t,o){return S(t,2,o)===0}e(at,"getBoolean");function oe(t,o,n){return n[S(t,n.length,o)]}e(oe,"getRandomColor");function st(t){let o=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),s=parseInt(t.slice(5,7),16);return o*.299+n*.587+s*.114>128?"#000":"#fff"}e(st,"getContrast");function re({name:t,size:o=40,colors:n=ot,className:s,square:l=false}){let r=rt(t),i=oe(r,0,n),c=st(i),d=at(r,2),p=S(r,3,7),f=S(r,5,8),v=S(r,10,9),g=v>6?v-10:v,h=S(r,5,10)>3?S(r,5,10)-5:S(r,5,10);return jsxs("svg",{viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,className:s,style:l?void 0:{borderRadius:"50%"},children:[jsx("mask",{id:`beam-${r}`,maskUnits:"userSpaceOnUse",x:0,y:0,width:36,height:36,children:jsx("rect",{width:36,height:36,rx:l?void 0:72,fill:"#fff"})}),jsxs("g",{mask:`url(#beam-${r})`,children:[jsx("rect",{width:36,height:36,fill:i}),jsx("rect",{x:0,y:0,width:36,height:36,transform:`translate(${g} ${h}) rotate(${v} 18 18)`,fill:oe(r,1,n),rx:6}),jsxs("g",{transform:`translate(${g} ${h}) rotate(${v} 18 18)`,children:[d?jsx("path",{d:`M15 ${19+p}c2 1 4 1 6 0`,stroke:c,fill:"none",strokeLinecap:"round"}):jsx("path",{d:`M13 ${19+p}a1 .75 0 0 0 10 0`,fill:c}),jsx("rect",{x:14-f,y:14,width:1.5,height:2,rx:1,fill:c}),jsx("rect",{x:20+f,y:14,width:1.5,height:2,rx:1,fill:c})]})]})]})}e(re,"BeamAvatar");async function lt(t){let n=new TextEncoder().encode(t),s=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(s)).map(l=>l.toString(16).padStart(2,"0")).join("")}e(lt,"sha256");function pt(t,o){let[n,s]=useState(null);return useMemo(()=>{if(!t){s(null);return}let l=t.trim().toLowerCase();lt(l).then(r=>{s(`https://www.gravatar.com/avatar/${r}?s=${o||80}&d=404`);});},[t,o]),n}e(pt,"useGravatarUrl");function ae({src:t,email:o,name:n,size:s=40,colors:l,className:r}){let[i,c]=useState(false),[d,p]=useState(false),f=pt(o,s*2),v=`rounded-full object-cover ${r||""}`,g={width:s,height:s};return t&&!i?jsx("img",{src:t,alt:n||o||"avatar",className:v,style:g,onError:()=>c(true)}):f&&!d?jsx("img",{src:f,alt:n||o||"avatar",className:v,style:g,onError:()=>p(true)}):jsx(re,{name:n||o||"user",size:s,colors:l,className:r})}e(ae,"UserAvatar");function T({user:t,organizations:o=[],currentOrgId:n,onOrgSwitch:s,onSignOut:l}){let[r,i]=useState(false),c=useRef(null);if(useEffect(()=>{let p=e(f=>{c.current&&!c.current.contains(f.target)&&i(false);},"handler");return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]),!t)return null;o.find(p=>p.id===n);return jsxs("div",{ref:c,className:"relative",children:[jsxs("button",{type:"button",onClick:()=>i(p=>!p),className:"flex items-center gap-2 rounded-lg px-2 py-1.5 hover:bg-white/[0.06] transition-colors",children:[jsx(ae,{src:t.avatar,email:t.email,name:t.name,size:28}),jsxs("div",{className:"hidden flex-col items-start sm:flex",children:[t.name&&jsx("span",{className:"text-[12px] font-medium text-white/70 leading-none",children:t.name}),jsx("span",{className:"text-[11px] text-white/30 leading-none mt-0.5",children:t.email})]}),jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white/30 hidden sm:block",children:jsx("path",{d:"M6 9l6 6 6-6"})})]}),r&&jsxs("div",{className:"absolute right-0 top-10 z-50 w-64 rounded-xl border border-white/[0.08] bg-[#0e0e13] shadow-2xl",children:[jsxs("div",{className:"border-b border-white/[0.06] px-4 py-3",children:[jsx("p",{className:"text-[13px] font-medium text-white/80",children:t.name||"User"}),jsx("p",{className:"text-[11px] text-white/40",children:t.email})]}),o.length>0&&jsxs("div",{className:"border-b border-white/[0.06] p-2",children:[jsx("p",{className:"px-2 pb-1 pt-0.5 text-[10px] font-medium uppercase tracking-wider text-white/30",children:"Organizations"}),o.map(p=>jsxs("button",{type:"button",onClick:()=>{s?.(p.id),i(false);},className:"flex w-full items-center justify-between rounded-lg px-3 py-2 text-left hover:bg-white/[0.06] transition-colors",children:[jsx("span",{className:"text-[13px] text-white/70",children:p.name}),p.id===n&&jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white/50",children:jsx("polyline",{points:"20 6 9 17 4 12"})})]},p.id))]}),jsxs("div",{className:"p-2",children:[jsx("a",{href:"https://hanzo.id/account",className:"flex items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] text-white/60 hover:bg-white/[0.06] hover:text-white/80 transition-colors",onClick:()=>i(false),children:"Account settings"}),jsx("a",{href:"https://billing.hanzo.ai",className:"flex items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] text-white/60 hover:bg-white/[0.06] hover:text-white/80 transition-colors",onClick:()=>i(false),children:"Billing"}),jsx("button",{type:"button",onClick:()=>{i(false),l?.();},className:"flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] text-white/40 hover:bg-white/[0.06] hover:text-red-400/70 transition-colors",children:"Sign out"})]})]})]})}e(T,"UserOrgDropdown");function se({currentApp:t,currentAppId:o,user:n,organizations:s,currentOrgId:l,onOrgSwitch:r,onSignOut:i,apps:c=k,headerRight:d}){return jsxs("header",{className:"sticky top-0 z-50 flex h-14 w-full items-center justify-between border-b border-white/[0.07] bg-[#09090b]/90 px-4 backdrop-blur-xl",role:"banner",children:[jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[jsx("a",{href:"https://hanzo.id/account",className:"flex-shrink-0 rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Hanzo Account",children:jsx(ne,{size:22,brandMenu:true,animate:true})}),jsx("span",{className:"select-none text-white/[0.15]",children:"/"}),jsx("span",{className:"truncate text-[13px] font-medium text-white/50",children:t}),jsx(V,{apps:c,currentAppId:o})]}),jsxs("div",{className:"flex flex-shrink-0 items-center gap-2",children:[d,jsx(T,{user:n,organizations:s,currentOrgId:l,onOrgSwitch:r,onSignOut:i})]})]})}e(se,"HanzoHeader");var ie="hanzo-auth-token",W="hanzo-user",le="hanzo-auth-expires",ut="https://iam.hanzo.ai",ht={hanzo:{name:"Hanzo AI",slug:"hanzo"},lux:{name:"Lux Network",slug:"lux"},zoo:{name:"Zoo Labs",slug:"zoo"},pars:{name:"Pars",slug:"pars"}};function pe(){let[t,o]=useState(void 0),[n,s]=useState([]),[l,r]=useState(void 0),[i,c]=useState(null),[d,p]=useState(true),f=useCallback(async()=>{try{let h=localStorage.getItem(ie),L=localStorage.getItem(le);if(!h||L&&Date.now()>Number(L)){p(!1);return}c(h);let M=localStorage.getItem(W);if(M)try{let m=JSON.parse(M);m?.email&&o({id:m.id,name:m.displayName||m.name,email:m.email,avatar:m.avatar});}catch{}let U=await fetch(`${ut}/api/userinfo`,{headers:{Authorization:`Bearer ${h}`}});if(U.ok){let m=await U.json(),P={id:m.sub||m.id,name:m.name||m.displayName,email:m.email,avatar:m.picture||m.avatar};o(P),localStorage.setItem(W,JSON.stringify(m));let H=(m.groups||[]).map(z=>{let D=z.toLowerCase().replace(/^\//,""),B=ht[D];return B?{id:D,name:B.name,slug:B.slug}:null}).filter(Boolean);H.length===0&&P.email&&H.push({id:"personal",name:"Personal",slug:"personal"}),s(H),r(H[0]?.id);}}catch{}finally{p(false);}},[]);useEffect(()=>{f();},[f]);let v=useCallback(()=>{localStorage.removeItem(ie),localStorage.removeItem(W),localStorage.removeItem(le),window.location.href="https://hanzo.id";},[]),g=useCallback(h=>{r(h);},[]);return {user:t,organizations:n,currentOrgId:l,token:i,loading:d,signOut:v,switchOrg:g}}e(pe,"useHanzoAuth");function gt(t,o){return t.filter(n=>n.id!==o).map(n=>({id:`app-${n.id}`,title:n.label,description:n.description,href:n.href,category:"Hanzo Apps",external:true,keywords:[n.id,n.label.toLowerCase()]}))}e(gt,"buildCrossAppCommands");function de({commands:t=[],apps:o,currentAppId:n,open:s,onOpenChange:l,onNavigate:r}){var ee;let[i,c]=useState(false),d=s??i,p=useCallback(a=>{l?l(a):c(a);},[l]),[f,v]=useState(""),[g,h]=useState(0),L=useRef(null),M=useRef(null),U=gt(o??k,n),m=[...t,...U],P=f.toLowerCase(),Q=P?m.filter(a=>a.title.toLowerCase().includes(P)||a.description?.toLowerCase().includes(P)||a.keywords?.some(b=>b.includes(P))):m,H={};for(let a of Q)(H[ee=a.category]??(H[ee]=[])).push(a);let z=Object.values(H).flat();useEffect(()=>h(0),[f]),useEffect(()=>{d&&(v(""),h(0),requestAnimationFrame(()=>L.current?.focus()));},[d]),useEffect(()=>{let a=e(b=>{(b.metaKey||b.ctrlKey)&&b.key==="k"&&(b.preventDefault(),p(!d));},"handler");return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[d,p]);let D=useCallback(a=>{a.action?a.action():a.href&&(r?r(a.href,a.external):a.external?window.open(a.href,"_blank"):window.location.href=a.href),p(false);},[r,p]),B=useCallback(a=>{a.key==="ArrowDown"?(a.preventDefault(),h(b=>(b+1)%(z.length||1))):a.key==="ArrowUp"?(a.preventDefault(),h(b=>(b-1+(z.length||1))%(z.length||1))):a.key==="Enter"&&z[g]?(a.preventDefault(),D(z[g])):a.key==="Escape"&&p(false);},[z,g,D,p]);return useEffect(()=>{M.current?.querySelector(`[data-idx="${g}"]`)?.scrollIntoView({block:"nearest"});},[g]),d?jsxs(Fragment,{children:[jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[100]",onClick:()=>p(false)}),jsx("div",{className:"fixed top-[15%] left-1/2 -translate-x-1/2 w-full max-w-xl z-[101]",children:jsxs("div",{className:"bg-[#111113] border border-white/[0.08] rounded-xl shadow-2xl overflow-hidden",children:[jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-white/[0.07]",children:[jsx("svg",{className:"w-4 h-4 text-white/30",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),jsx("input",{ref:L,type:"text",value:f,onChange:a=>v(a.target.value),onKeyDown:B,placeholder:"Search commands...",className:"flex-1 bg-transparent text-white text-[13px] placeholder-white/30 outline-none"}),jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono bg-white/[0.06] rounded text-white/30",children:"ESC"})]}),jsx("div",{ref:M,className:"max-h-[400px] overflow-y-auto py-1",children:z.length===0?jsxs("div",{className:"px-4 py-8 text-center text-white/30 text-[13px]",children:["No results for \u201C",f,"\u201D"]}):Object.entries(H).map(([a,b])=>jsxs("div",{children:[jsx("div",{className:"px-4 py-2 text-[10px] font-semibold text-white/25 uppercase tracking-widest",children:a}),b.map(C=>{let _=z.indexOf(C),$=_===g;return jsxs("button",{"data-idx":_,onClick:()=>D(C),onMouseEnter:()=>h(_),className:`w-full flex items-center gap-3 px-4 py-2 text-left transition-colors ${$?"bg-white/[0.06] text-white":"text-white/50 hover:bg-white/[0.03]"}`,children:[C.icon&&jsx("span",{className:`w-5 h-5 flex items-center justify-center ${$?"text-white/70":"text-white/25"}`,children:C.icon}),jsxs("div",{className:"flex-1 min-w-0",children:[jsx("span",{className:"text-[13px] font-medium truncate block",children:C.title}),C.description&&jsx("span",{className:"text-[11px] text-white/25 truncate block",children:C.description})]}),$&&jsx("span",{className:"text-white/25 text-[11px]",children:"\u21B5"})]},C.id)})]},a))}),jsxs("div",{className:"px-4 py-2 border-t border-white/[0.07] flex items-center justify-between",children:[jsxs("div",{className:"flex items-center gap-4 text-[10px] text-white/20",children:[jsxs("span",{className:"flex items-center gap-1",children:[jsx("kbd",{className:"px-1 py-0.5 bg-white/[0.06] rounded text-[9px]",children:"\u2191"}),jsx("kbd",{className:"px-1 py-0.5 bg-white/[0.06] rounded text-[9px]",children:"\u2193"}),"navigate"]}),jsxs("span",{className:"flex items-center gap-1",children:[jsx("kbd",{className:"px-1 py-0.5 bg-white/[0.06] rounded text-[9px]",children:"\u21B5"}),"select"]})]}),jsx("span",{className:"text-[10px] text-white/20",children:"\u2318K"})]})]})})]}):null}e(de,"HanzoCommandPalette");function me(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(me,"Component");function he(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(he,"Component");function xe(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(xe,"Component");function we(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(we,"Component");function ye(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(ye,"Component");function He(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(He,"Component");function Ce(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ce,"Component");function Ae(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ae,"Component");function Oe(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Oe,"Component");function De(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(De,"Component");function Le(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Le,"Component");function Be(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Be,"Component");function Ue(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ue,"Component");function Ve(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ve,"Component");function Ze(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ze,"Component");function $e(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e($e,"Component");function Ke(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ke,"Component");function je(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(je,"Component");
|
|
3
|
+
export{he as AIModelSelectorNavigationBar,me as AdvancedNavigationBar,V as AppSwitcher,xe as AppSwitcherNavigationBar,we as BreadcrumbAndFiltersNavigationBar,ye as BreadcrumbNavigationBar,He as CenteredLogoNavigationBar,Ce as CollaborationNavigationBar,Ae as CommunicationNavigationBar,Oe as ContextSwitcherNavigationBar,k as DEFAULT_HANZO_APPS,De as DashboardNavigationBar,Le as ECommerceNavigationBar,de as HanzoCommandPalette,se as HanzoHeader,Be as IconNavigationBar,Ue as SearchAndToggleNavigationBar,Ve as SimpleNavigationBar,Ze as StatusDashboardNavigationBar,$e as TeamSwitcherNavigationBar,Ke as TwoTierNavigationBar,je as UnderlineNavigationBar,T as UserOrgDropdown,pe as useHanzoAuth};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const alertVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "
|
|
4
|
+
variant?: "default" | "destructive" | "success" | "info" | "warning" | "download" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cal-embed.d.ts","sourceRoot":"","sources":["../../primitives/cal-embed.tsx"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"cal-embed.d.ts","sourceRoot":"","sources":["../../primitives/cal-embed.tsx"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,GAAI,0DAOzB,gBAAgB,4CAoDlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../primitives/chart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAA;AAK7C,QAAA,MAAM,MAAM;;;CAAwC,CAAA;AAEpD,MAAM,MAAM,WAAW,GAAG;KACvB,CAAC,IAAI,MAAM,GAAG;QACb,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;QACvB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;KAC3B,GAAG,CACA;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GACjC;QAAE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,OAAO,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAChE;CACF,CAAA;AAkBD,iBAAS,cAAc,CAAC,EACtB,EAAE,EACF,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,MAAM,EAAE,WAA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AAmB,GAAG,IAAI,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"chat-input.d.ts","sourceRoot":"","sources":["../../../primitives/chat/chat-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,cACf,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;IACzD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,qBAAqB,GAChC,KAAK,KAAK,CAAC,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,EAChD,OAAO,MAAM,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,EACtD,oBAAiB;;CAwBlB,CAAC;AAiCF,eAAO,MAAM,SAAS;sDAzBnB,cAAc;;EAyBiC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../primitives/combobox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAqBvC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAA;AAI7C,UAAU,oBAAoB,CAAC,CAAC;IAC9B,OAAO,EAAE,CAAC,GAAG,IAAI,CAAA;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;C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E,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAA;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IACxB;mCAC+B;IACjC,YAAY,EAAE,CAAC,CAAA;IACf,OAAO,CAAC,EACN,CAAC,GAAC,EAAE,GAAC,EAAE,KAAK,EAAE,GAAC,GAAG;QAAE,GAAG,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAA;CACxF,4CAmGA,CAAA;AAED,OAAO,EACL,QAAQ,IAAI,OAAO,EACnB,KAAK,oBAAoB,EAC1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../primitives/command.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,QAAA,MAAM,OAAO;8BAGV,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC;;CAS/C,CAAC;AAGF,KAAK,kBAAkB,GAAG,WAAW,CAAC;AAEtC,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../primitives/command.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAEnD,O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AC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,KAAK,wBAAwB,GAAG;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,YAAY,CAAC;QACtB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC,CAAC;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,QAAA,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"copy-to-clipboard-icon.d.ts","sourceRoot":"","sources":["../../primitives/copy-to-clipboard-icon.tsx"],"names":[],"mappings":"AACA,OAAc,EAAgB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,KAAK,wBAAwB,GAAG;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,YAAY,CAAC;QACtB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC,CAAC;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,QAAA,MAAM,mBAAmB,GAAI,4DAM1B,wBAAwB,4CAiC1B,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dots-loader.d.ts","sourceRoot":"","sources":["../../primitives/dots-loader.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"dots-loader.d.ts","sourceRoot":"","sources":["../../primitives/dots-loader.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU,GAAI,eAAe;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,4CAUxD,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-message.d.ts","sourceRoot":"","sources":["../../primitives/error-message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"error-message.d.ts","sourceRoot":"","sources":["../../primitives/error-message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,YAAY,GAAI,uBAAuB,iBAAiB,4CAU7D,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-uploader.d.ts","sourceRoot":"","sources":["../../primitives/file-uploader.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAenD,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"file-uploader.d.ts","sourceRoot":"","sources":["../../primitives/file-uploader.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAenD,eAAO,MAAM,QAAQ,GAAI,oBAGtB;IACD,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;QACtB,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;KAC/B,EAAE,CAAC;CACL,4CAwDA,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,0GAS1B;IACD,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,4CAqEA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../primitives/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAGjB,MAAM,iBAAiB,CAAC;AAKzB,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../primitives/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAGjB,MAAM,iBAAiB,CAAC;AAKzB,QAAA,MAAM,IAAI,4MAAe,CAAC;AAa1B,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAUF,QAAA,MAAM,QAAQ;8BAGX,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,SAAS;8BAGZ,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC;;CAqBlD,CAAC;AAGF,QAAA,MAAM,WAAW;mBAAkB,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC;;CAcnE,CAAC;AAGF,QAAA,MAAM,eAAe;8BAGlB,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;;CAU5C,CAAC;AAGF,QAAA,MAAM,WAAW;wCAId,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;;CAoB5C,CAAC;AAGF,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../primitives/input-otp.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,QAAA,MAAM,QAAQ;;;;;kBAWV,GAAG
|
|
1
|
+
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../primitives/input-otp.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,QAAA,MAAM,QAAQ;;;;;kBAWV,GAAG;;;;;;;;;;;;;kBAAH,GAAG;;;;;;;;2FAEL,CAAA;AAGF,QAAA,MAAM,aAAa,mKAKjB,CAAA;AAGF,QAAA,MAAM,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":[],"mappings":"AAGA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"pretty-json-print.d.ts","sourceRoot":"","sources":["../../primitives/pretty-json-print.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,GAAI,sBAG7B;IACD,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,4CAkBA,CAAC"}
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof
|
|
3
|
-
declare const ResizablePanel:
|
|
4
|
-
|
|
5
|
-
collapsedSize?: number | undefined;
|
|
6
|
-
collapsible?: boolean | undefined;
|
|
7
|
-
defaultSize?: number | undefined;
|
|
8
|
-
id?: string | undefined;
|
|
9
|
-
maxSize?: number | undefined;
|
|
10
|
-
minSize?: number | undefined;
|
|
11
|
-
onCollapse?: ResizablePrimitive.PanelOnCollapse | undefined;
|
|
12
|
-
onExpand?: ResizablePrimitive.PanelOnExpand | undefined;
|
|
13
|
-
onResize?: ResizablePrimitive.PanelOnResize | undefined;
|
|
14
|
-
order?: number | undefined;
|
|
15
|
-
style?: object | undefined;
|
|
16
|
-
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
17
|
-
} & {
|
|
18
|
-
children?: import("react").ReactNode;
|
|
19
|
-
} & import("react").RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
20
|
-
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
1
|
+
import { Group as PanelGroup, Panel, Separator as PanelResizeHandle } from 'react-resizable-panels';
|
|
2
|
+
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const ResizablePanel: typeof Panel;
|
|
4
|
+
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof PanelResizeHandle> & {
|
|
21
5
|
withHandle?: boolean;
|
|
22
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
7
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../primitives/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../primitives/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,IAAI,UAAU,EACnB,KAAK,EACL,SAAS,IAAI,iBAAiB,EAC/B,MAAM,wBAAwB,CAAC;AAIhC,QAAA,MAAM,mBAAmB,GAAI,yBAG1B,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,4CAQzC,CAAC;AAEF,QAAA,MAAM,cAAc,cAAQ,CAAC;AAE7B,QAAA,MAAM,eAAe,GAAI,qCAItB,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,GAAG;IAClD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,4CAkBA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { GripVertical } from 'lucide-react';
|
|
3
|
-
import
|
|
3
|
+
import { Group as PanelGroup, Panel, Separator as PanelResizeHandle, } from 'react-resizable-panels';
|
|
4
4
|
import { cn } from '../src/utils';
|
|
5
|
-
const ResizablePanelGroup = ({ className, ...props }) => (_jsx(
|
|
6
|
-
const ResizablePanel =
|
|
7
|
-
const ResizableHandle = ({ withHandle, className, ...props }) => (_jsx(
|
|
5
|
+
const ResizablePanelGroup = ({ className, ...props }) => (_jsx(PanelGroup, { className: cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className), ...props }));
|
|
6
|
+
const ResizablePanel = Panel;
|
|
7
|
+
const ResizableHandle = ({ withHandle, className, ...props }) => (_jsx(PanelResizeHandle, { className: cn('focus-visible:ring-ring relative flex w-px items-center justify-center bg-gray-100 after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden', 'data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90', 'data-[resize-handle-state=drag]:after:bg-bg-secondary', 'data-[resize-handle-state=hover]:after:bg-bg-secondary', 'after:w-[1px] data-[panel-group-direction=vertical]:after:h-[1px]', className), ...props, children: withHandle && (_jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-gray-200", children: _jsx(GripVertical, { className: "h-2.5 w-2.5" }) })) }));
|
|
8
8
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../primitives/sonner.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE9B,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAA;AAEvD,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../primitives/sonner.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE9B,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAA;AAEvD,QAAA,MAAM,OAAO,GAAI,cAAc,YAAY,4CAqB1C,CAAA;AAED,OAAO,EACL,KAAK,EACL,OAAO,EACR,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-link.d.ts","sourceRoot":"","sources":["../../primitives/text-link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"text-link.d.ts","sourceRoot":"","sources":["../../primitives/text-link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,QAAQ,GAAI,qCAKtB;IACD,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb,GAAG,KAAK,CAAC,oBAAoB,CAAC,eAAe,CAAC,4CAY9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../../primitives/textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAWnD,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../../primitives/textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAWnD,QAAA,MAAM,SAAS,GAAI,oGAWhB;IACD,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,aAAa,CAAC,EAAE,MAAM,CAAC;K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K,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../primitives/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE3C,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,QAAA,MAAM,OAAO,GAAI,cAAc,YAAY,4CAsB1C,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
package/dist/resizable.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';var lucideReact=require('lucide-react'),
|
|
2
|
+
'use strict';var lucideReact=require('lucide-react'),reactResizablePanels=require('react-resizable-panels'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');var i=Object.defineProperty;var t=(e,a)=>i(e,"name",{value:a,configurable:true});function n(...e){return tailwindMerge.twMerge(clsx.clsx(e))}t(n,"cn");var h=t(({className:e,...a})=>jsxRuntime.jsx(reactResizablePanels.Group,{className:n("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...a}),"ResizablePanelGroup"),w=reactResizablePanels.Panel,z=t(({withHandle:e,className:a,...l})=>jsxRuntime.jsx(reactResizablePanels.Separator,{className:n("focus-visible:ring-ring relative flex w-px items-center justify-center bg-gray-100 after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden","data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90","data-[resize-handle-state=drag]:after:bg-bg-secondary","data-[resize-handle-state=hover]:after:bg-bg-secondary","after:w-[1px] data-[panel-group-direction=vertical]:after:h-[1px]",a),...l,children:e&&jsxRuntime.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-gray-200",children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-2.5 w-2.5"})})}),"ResizableHandle");exports.ResizableHandle=z;exports.ResizablePanel=w;exports.ResizablePanelGroup=h;
|
package/dist/resizable.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {GripVertical}from'lucide-react';import
|
|
2
|
+
import {GripVertical}from'lucide-react';import {Panel,Group,Separator}from'react-resizable-panels';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx}from'react/jsx-runtime';var i=Object.defineProperty;var t=(e,a)=>i(e,"name",{value:a,configurable:true});function n(...e){return twMerge(clsx(e))}t(n,"cn");var h=t(({className:e,...a})=>jsx(Group,{className:n("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...a}),"ResizablePanelGroup"),w=Panel,z=t(({withHandle:e,className:a,...l})=>jsx(Separator,{className:n("focus-visible:ring-ring relative flex w-px items-center justify-center bg-gray-100 after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden","data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90","data-[resize-handle-state=drag]:after:bg-bg-secondary","data-[resize-handle-state=hover]:after:bg-bg-secondary","after:w-[1px] data-[panel-group-direction=vertical]:after:h-[1px]",a),...l,children:e&&jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-gray-200",children:jsx(GripVertical,{className:"h-2.5 w-2.5"})})}),"ResizableHandle");export{z as ResizableHandle,w as ResizablePanel,h as ResizablePanelGroup};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BillingAccountMember, BillingRole } from '../types';
|
|
2
|
+
export interface AccountMembersProps {
|
|
3
|
+
members: BillingAccountMember[];
|
|
4
|
+
userRole: BillingRole;
|
|
5
|
+
onInvite?: (email: string, role: BillingRole) => Promise<void>;
|
|
6
|
+
onChangeRole?: (memberId: string, role: BillingRole) => Promise<void>;
|
|
7
|
+
onRemove?: (memberId: string) => Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare function AccountMembers({ members, userRole, onInvite, onChangeRole, onRemove }: AccountMembersProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=account-members.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-members.d.ts","sourceRoot":"","sources":["../../../../src/billing/components/account-members.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEjE,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,oBAAoB,EAAE,CAAA;IAC/B,QAAQ,EAAE,WAAW,CAAA;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC9D,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACrE,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC/C;AAiBD,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,mBAAmB,2CA8I1G"}
|