@hanzo/ui 5.3.39 → 5.3.40
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/navigation/hanzo-shell.js +3 -0
- package/dist/navigation/hanzo-shell.mjs +3 -0
- package/dist/navigation/index.js +2 -2
- package/dist/navigation/index.mjs +2 -2
- package/dist/tailwind/index.js +1 -2
- package/dist/types/index.js +1 -2
- package/dist/util/index.js +1 -80
- package/package.json +11 -1
- package/dist/assets/ai-icons.d.ts +0 -28
- package/dist/assets/ai-icons.d.ts.map +0 -1
- package/dist/assets/ai-icons.js +0 -60
- package/dist/assets/crypto.d.ts +0 -7
- package/dist/assets/crypto.d.ts.map +0 -1
- package/dist/assets/crypto.js +0 -4
- package/dist/assets/file-type-icon.d.ts +0 -7
- package/dist/assets/file-type-icon.d.ts.map +0 -1
- package/dist/assets/file-type-icon.js +0 -36
- package/dist/assets/file.d.ts +0 -5
- package/dist/assets/file.d.ts.map +0 -1
- package/dist/assets/file.js +0 -29
- package/dist/assets/general.d.ts +0 -220
- package/dist/assets/general.d.ts.map +0 -1
- package/dist/assets/general.js +0 -136
- package/dist/assets/hanzo-logo.d.ts +0 -4
- package/dist/assets/hanzo-logo.d.ts.map +0 -1
- package/dist/assets/hanzo-logo.js +0 -3
- package/dist/assets/index.d.ts +0 -7
- package/dist/assets/index.d.ts.map +0 -1
- package/dist/assets/index.js +0 -23
- package/dist/assets/llm-provider.d.ts +0 -64
- package/dist/assets/llm-provider.d.ts.map +0 -1
- package/dist/assets/llm-provider.js +0 -90
- package/dist/components/cal-embed.d.ts +0 -11
- package/dist/components/cal-embed.d.ts.map +0 -1
- package/dist/components/cal-embed.js +0 -38
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js +0 -7
- package/dist/frameworks/core/index.d.ts +0 -4
- package/dist/frameworks/core/index.d.ts.map +0 -1
- package/dist/frameworks/core/index.js +0 -5
- package/dist/frameworks/core/styles.d.ts +0 -12
- package/dist/frameworks/core/styles.d.ts.map +0 -1
- package/dist/frameworks/core/styles.js +0 -11
- package/dist/frameworks/core/types.d.ts +0 -17
- package/dist/frameworks/core/types.d.ts.map +0 -1
- package/dist/frameworks/core/types.js +0 -11
- package/dist/frameworks/core/utils/index.d.ts +0 -19
- package/dist/frameworks/core/utils/index.d.ts.map +0 -1
- package/dist/frameworks/core/utils/index.js +0 -49
- package/dist/frameworks/react/components/button.d.ts +0 -8
- package/dist/frameworks/react/components/button.d.ts.map +0 -1
- package/dist/frameworks/react/components/button.js +0 -8
- package/dist/frameworks/react/components/index.d.ts +0 -2
- package/dist/frameworks/react/components/index.d.ts.map +0 -1
- package/dist/frameworks/react/components/index.js +0 -4
- package/dist/frameworks/react/hooks/index.d.ts +0 -2
- package/dist/frameworks/react/hooks/index.d.ts.map +0 -1
- package/dist/frameworks/react/hooks/index.js +0 -5
- package/dist/frameworks/react/index.d.ts +0 -5
- package/dist/frameworks/react/index.d.ts.map +0 -1
- package/dist/frameworks/react/index.js +0 -7
- package/dist/frameworks/react/utils/index.d.ts +0 -2
- package/dist/frameworks/react/utils/index.d.ts.map +0 -1
- package/dist/frameworks/react/utils/index.js +0 -2
- package/dist/frameworks/react-native/components.d.ts +0 -17
- package/dist/frameworks/react-native/components.d.ts.map +0 -1
- package/dist/frameworks/react-native/components.js +0 -17
- package/dist/frameworks/react-native/hooks.d.ts +0 -10
- package/dist/frameworks/react-native/hooks.d.ts.map +0 -1
- package/dist/frameworks/react-native/hooks.js +0 -9
- package/dist/frameworks/react-native/index.d.ts +0 -5
- package/dist/frameworks/react-native/index.d.ts.map +0 -1
- package/dist/frameworks/react-native/index.js +0 -7
- package/dist/frameworks/react-native/utils.d.ts +0 -7
- package/dist/frameworks/react-native/utils.d.ts.map +0 -1
- package/dist/frameworks/react-native/utils.js +0 -9
- package/dist/frameworks/svelte/components.d.ts +0 -15
- package/dist/frameworks/svelte/components.d.ts.map +0 -1
- package/dist/frameworks/svelte/components.js +0 -16
- package/dist/frameworks/svelte/index.d.ts +0 -5
- package/dist/frameworks/svelte/index.d.ts.map +0 -1
- package/dist/frameworks/svelte/index.js +0 -7
- package/dist/frameworks/svelte/stores.d.ts +0 -13
- package/dist/frameworks/svelte/stores.d.ts.map +0 -1
- package/dist/frameworks/svelte/stores.js +0 -9
- package/dist/frameworks/svelte/utils.d.ts +0 -7
- package/dist/frameworks/svelte/utils.d.ts.map +0 -1
- package/dist/frameworks/svelte/utils.js +0 -8
- package/dist/frameworks/vue/components.d.ts +0 -15
- package/dist/frameworks/vue/components.d.ts.map +0 -1
- package/dist/frameworks/vue/components.js +0 -16
- package/dist/frameworks/vue/composables.d.ts +0 -16
- package/dist/frameworks/vue/composables.d.ts.map +0 -1
- package/dist/frameworks/vue/composables.js +0 -14
- package/dist/frameworks/vue/index.d.ts +0 -5
- package/dist/frameworks/vue/index.d.ts.map +0 -1
- package/dist/frameworks/vue/index.js +0 -7
- package/dist/frameworks/vue/utils.d.ts +0 -7
- package/dist/frameworks/vue/utils.d.ts.map +0 -1
- package/dist/frameworks/vue/utils.js +0 -8
- package/dist/helpers/file.d.ts +0 -7
- package/dist/helpers/file.d.ts.map +0 -1
- package/dist/helpers/file.js +0 -30
- package/dist/helpers/memoization.d.ts +0 -9
- package/dist/helpers/memoization.d.ts.map +0 -1
- package/dist/helpers/memoization.js +0 -24
- package/dist/primitives/accordion.d.ts +0 -27
- package/dist/primitives/accordion.d.ts.map +0 -1
- package/dist/primitives/accordion.js +0 -12
- package/dist/primitives/action-button.d.ts +0 -10
- package/dist/primitives/action-button.d.ts.map +0 -1
- package/dist/primitives/action-button.js +0 -14
- package/dist/primitives/alert-dialog.d.ts +0 -57
- package/dist/primitives/alert-dialog.d.ts.map +0 -1
- package/dist/primitives/alert-dialog.js +0 -25
- package/dist/primitives/alert.d.ts +0 -11
- package/dist/primitives/alert.d.ts.map +0 -1
- package/dist/primitives/alert.js +0 -32
- package/dist/primitives/apply-typography.d.ts +0 -8
- package/dist/primitives/apply-typography.d.ts.map +0 -1
- package/dist/primitives/apply-typography.js +0 -36
- package/dist/primitives/aspect-ratio.d.ts +0 -4
- package/dist/primitives/aspect-ratio.d.ts.map +0 -1
- package/dist/primitives/aspect-ratio.js +0 -4
- package/dist/primitives/avatar.d.ts +0 -25
- package/dist/primitives/avatar.d.ts.map +0 -1
- package/dist/primitives/avatar.js +0 -10
- package/dist/primitives/badge.d.ts +0 -11
- package/dist/primitives/badge.d.ts.map +0 -1
- package/dist/primitives/badge.js +0 -28
- package/dist/primitives/breadcrumb.d.ts +0 -51
- package/dist/primitives/breadcrumb.d.ts.map +0 -1
- package/dist/primitives/breadcrumb.js +0 -22
- package/dist/primitives/breakpoint-indicator.d.ts +0 -4
- package/dist/primitives/breakpoint-indicator.d.ts.map +0 -1
- package/dist/primitives/breakpoint-indicator.js +0 -7
- package/dist/primitives/button-group.d.ts +0 -12
- package/dist/primitives/button-group.d.ts.map +0 -1
- package/dist/primitives/button-group.js +0 -28
- package/dist/primitives/button.d.ts +0 -14
- package/dist/primitives/button.d.ts.map +0 -1
- package/dist/primitives/button.js +0 -41
- package/dist/primitives/cal-embed.d.ts +0 -11
- package/dist/primitives/cal-embed.d.ts.map +0 -1
- package/dist/primitives/cal-embed.js +0 -38
- package/dist/primitives/calendar.d.ts +0 -11
- package/dist/primitives/calendar.d.ts.map +0 -1
- package/dist/primitives/calendar.js +0 -58
- package/dist/primitives/card.d.ts +0 -10
- package/dist/primitives/card.d.ts.map +0 -1
- package/dist/primitives/card.js +0 -24
- package/dist/primitives/carousel.d.ts +0 -19
- package/dist/primitives/carousel.d.ts.map +0 -1
- package/dist/primitives/carousel.js +0 -95
- package/dist/primitives/chart.d.ts +0 -41
- package/dist/primitives/chart.d.ts.map +0 -1
- package/dist/primitives/chart.js +0 -128
- package/dist/primitives/charts/area/chart-area-axes.d.ts +0 -3
- package/dist/primitives/charts/area/chart-area-axes.d.ts.map +0 -1
- package/dist/primitives/charts/area/chart-area-axes.js +0 -31
- package/dist/primitives/charts/area/chart-area-default.d.ts +0 -3
- package/dist/primitives/charts/area/chart-area-default.d.ts.map +0 -1
- package/dist/primitives/charts/area/chart-area-default.js +0 -27
- package/dist/primitives/charts/area/chart-area-gradient.d.ts +0 -3
- package/dist/primitives/charts/area/chart-area-gradient.d.ts.map +0 -1
- package/dist/primitives/charts/area/chart-area-gradient.js +0 -31
- package/dist/primitives/charts/area/chart-area-icons.d.ts +0 -3
- package/dist/primitives/charts/area/chart-area-icons.d.ts.map +0 -1
- package/dist/primitives/charts/area/chart-area-icons.js +0 -33
- package/dist/primitives/charts/area/chart-area-interactive.d.ts +0 -3
- package/dist/primitives/charts/area/chart-area-interactive.d.ts.map +0 -1
- package/dist/primitives/charts/area/chart-area-interactive.js +0 -143
- package/dist/primitives/charts/area/chart-area-legend.d.ts +0 -3
- package/dist/primitives/charts/area/chart-area-legend.d.ts.map +0 -1
- package/dist/primitives/charts/area/chart-area-legend.js +0 -31
- package/dist/primitives/charts/area/chart-area-linear.d.ts +0 -3
- package/dist/primitives/charts/area/chart-area-linear.d.ts.map +0 -1
- package/dist/primitives/charts/area/chart-area-linear.js +0 -27
- package/dist/primitives/charts/area/chart-area-stacked-expand.d.ts +0 -3
- package/dist/primitives/charts/area/chart-area-stacked-expand.d.ts.map +0 -1
- package/dist/primitives/charts/area/chart-area-stacked-expand.js +0 -36
- package/dist/primitives/charts/area/chart-area-stacked.d.ts +0 -3
- package/dist/primitives/charts/area/chart-area-stacked.d.ts.map +0 -1
- package/dist/primitives/charts/area/chart-area-stacked.js +0 -31
- package/dist/primitives/charts/area/chart-area-step.d.ts +0 -3
- package/dist/primitives/charts/area/chart-area-step.d.ts.map +0 -1
- package/dist/primitives/charts/area/chart-area-step.js +0 -28
- package/dist/primitives/charts/area/index.d.ts +0 -11
- package/dist/primitives/charts/area/index.d.ts.map +0 -1
- package/dist/primitives/charts/area/index.js +0 -11
- package/dist/primitives/charts/bar/chart-bar-active.d.ts +0 -3
- package/dist/primitives/charts/bar/chart-bar-active.d.ts.map +0 -1
- package/dist/primitives/charts/bar/chart-bar-active.js +0 -44
- package/dist/primitives/charts/bar/chart-bar-default.d.ts +0 -3
- package/dist/primitives/charts/bar/chart-bar-default.d.ts.map +0 -1
- package/dist/primitives/charts/bar/chart-bar-default.js +0 -24
- package/dist/primitives/charts/bar/chart-bar-horizontal.d.ts +0 -3
- package/dist/primitives/charts/bar/chart-bar-horizontal.d.ts.map +0 -1
- package/dist/primitives/charts/bar/chart-bar-horizontal.js +0 -26
- package/dist/primitives/charts/bar/chart-bar-interactive.d.ts +0 -3
- package/dist/primitives/charts/bar/chart-bar-interactive.d.ts.map +0 -1
- package/dist/primitives/charts/bar/chart-bar-interactive.js +0 -139
- package/dist/primitives/charts/bar/chart-bar-label-custom.d.ts +0 -3
- package/dist/primitives/charts/bar/chart-bar-label-custom.d.ts.map +0 -1
- package/dist/primitives/charts/bar/chart-bar-label-custom.js +0 -33
- package/dist/primitives/charts/bar/chart-bar-label.d.ts +0 -3
- package/dist/primitives/charts/bar/chart-bar-label.d.ts.map +0 -1
- package/dist/primitives/charts/bar/chart-bar-label.js +0 -26
- package/dist/primitives/charts/bar/chart-bar-mixed.d.ts +0 -3
- package/dist/primitives/charts/bar/chart-bar-mixed.d.ts.map +0 -1
- package/dist/primitives/charts/bar/chart-bar-mixed.js +0 -44
- package/dist/primitives/charts/bar/chart-bar-multiple.d.ts +0 -3
- package/dist/primitives/charts/bar/chart-bar-multiple.d.ts.map +0 -1
- package/dist/primitives/charts/bar/chart-bar-multiple.js +0 -28
- package/dist/primitives/charts/bar/chart-bar-negative.d.ts +0 -3
- package/dist/primitives/charts/bar/chart-bar-negative.d.ts.map +0 -1
- package/dist/primitives/charts/bar/chart-bar-negative.js +0 -25
- package/dist/primitives/charts/bar/chart-bar-stacked.d.ts +0 -3
- package/dist/primitives/charts/bar/chart-bar-stacked.d.ts.map +0 -1
- package/dist/primitives/charts/bar/chart-bar-stacked.js +0 -28
- package/dist/primitives/charts/bar/index.d.ts +0 -11
- package/dist/primitives/charts/bar/index.d.ts.map +0 -1
- package/dist/primitives/charts/bar/index.js +0 -11
- package/dist/primitives/charts/index.d.ts +0 -8
- package/dist/primitives/charts/index.d.ts.map +0 -1
- package/dist/primitives/charts/index.js +0 -11
- package/dist/primitives/charts/line/chart-line-default.d.ts +0 -3
- package/dist/primitives/charts/line/chart-line-default.d.ts.map +0 -1
- package/dist/primitives/charts/line/chart-line-default.js +0 -27
- package/dist/primitives/charts/line/chart-line-dots-colors.d.ts +0 -3
- package/dist/primitives/charts/line/chart-line-dots-colors.d.ts.map +0 -1
- package/dist/primitives/charts/line/chart-line-dots-colors.js +0 -49
- package/dist/primitives/charts/line/chart-line-dots-custom.d.ts +0 -3
- package/dist/primitives/charts/line/chart-line-dots-custom.d.ts.map +0 -1
- package/dist/primitives/charts/line/chart-line-dots-custom.js +0 -34
- package/dist/primitives/charts/line/chart-line-dots.d.ts +0 -3
- package/dist/primitives/charts/line/chart-line-dots.d.ts.map +0 -1
- package/dist/primitives/charts/line/chart-line-dots.js +0 -35
- package/dist/primitives/charts/line/chart-line-interactive.d.ts +0 -3
- package/dist/primitives/charts/line/chart-line-interactive.d.ts.map +0 -1
- package/dist/primitives/charts/line/chart-line-interactive.js +0 -139
- package/dist/primitives/charts/line/chart-line-label-custom.d.ts +0 -3
- package/dist/primitives/charts/line/chart-line-label-custom.d.ts.map +0 -1
- package/dist/primitives/charts/line/chart-line-label-custom.js +0 -51
- package/dist/primitives/charts/line/chart-line-label.d.ts +0 -3
- package/dist/primitives/charts/line/chart-line-label.d.ts.map +0 -1
- package/dist/primitives/charts/line/chart-line-label.js +0 -36
- package/dist/primitives/charts/line/chart-line-linear.d.ts +0 -3
- package/dist/primitives/charts/line/chart-line-linear.d.ts.map +0 -1
- package/dist/primitives/charts/line/chart-line-linear.js +0 -27
- package/dist/primitives/charts/line/chart-line-multiple.d.ts +0 -3
- package/dist/primitives/charts/line/chart-line-multiple.d.ts.map +0 -1
- package/dist/primitives/charts/line/chart-line-multiple.js +0 -31
- package/dist/primitives/charts/line/chart-line-step.d.ts +0 -3
- package/dist/primitives/charts/line/chart-line-step.d.ts.map +0 -1
- package/dist/primitives/charts/line/chart-line-step.js +0 -27
- package/dist/primitives/charts/line/index.d.ts +0 -11
- package/dist/primitives/charts/line/index.d.ts.map +0 -1
- package/dist/primitives/charts/line/index.js +0 -11
- package/dist/primitives/charts/pie/chart-pie-donut-active.d.ts +0 -3
- package/dist/primitives/charts/pie/chart-pie-donut-active.d.ts.map +0 -1
- package/dist/primitives/charts/pie/chart-pie-donut-active.js +0 -42
- package/dist/primitives/charts/pie/chart-pie-donut-text.d.ts +0 -3
- package/dist/primitives/charts/pie/chart-pie-donut-text.d.ts.map +0 -1
- package/dist/primitives/charts/pie/chart-pie-donut-text.js +0 -50
- package/dist/primitives/charts/pie/chart-pie-donut.d.ts +0 -3
- package/dist/primitives/charts/pie/chart-pie-donut.d.ts.map +0 -1
- package/dist/primitives/charts/pie/chart-pie-donut.js +0 -42
- package/dist/primitives/charts/pie/chart-pie-interactive.d.ts +0 -3
- package/dist/primitives/charts/pie/chart-pie-interactive.d.ts.map +0 -1
- package/dist/primitives/charts/pie/chart-pie-interactive.js +0 -65
- package/dist/primitives/charts/pie/chart-pie-label-custom.d.ts +0 -3
- package/dist/primitives/charts/pie/chart-pie-label-custom.d.ts.map +0 -1
- package/dist/primitives/charts/pie/chart-pie-label-custom.js +0 -44
- package/dist/primitives/charts/pie/chart-pie-label-list.d.ts +0 -3
- package/dist/primitives/charts/pie/chart-pie-label-list.d.ts.map +0 -1
- package/dist/primitives/charts/pie/chart-pie-label-list.js +0 -42
- package/dist/primitives/charts/pie/chart-pie-label.d.ts +0 -3
- package/dist/primitives/charts/pie/chart-pie-label.d.ts.map +0 -1
- package/dist/primitives/charts/pie/chart-pie-label.js +0 -42
- package/dist/primitives/charts/pie/chart-pie-legend.d.ts +0 -3
- package/dist/primitives/charts/pie/chart-pie-legend.d.ts.map +0 -1
- package/dist/primitives/charts/pie/chart-pie-legend.js +0 -41
- package/dist/primitives/charts/pie/chart-pie-separator-none.d.ts +0 -3
- package/dist/primitives/charts/pie/chart-pie-separator-none.d.ts.map +0 -1
- package/dist/primitives/charts/pie/chart-pie-separator-none.js +0 -42
- package/dist/primitives/charts/pie/index.d.ts +0 -10
- package/dist/primitives/charts/pie/index.d.ts.map +0 -1
- package/dist/primitives/charts/pie/index.js +0 -10
- package/dist/primitives/charts/radar/chart-radar-default.d.ts +0 -3
- package/dist/primitives/charts/radar/chart-radar-default.d.ts.map +0 -1
- package/dist/primitives/charts/radar/chart-radar-default.js +0 -24
- package/dist/primitives/charts/radar/chart-radar-dots.d.ts +0 -3
- package/dist/primitives/charts/radar/chart-radar-dots.d.ts.map +0 -1
- package/dist/primitives/charts/radar/chart-radar-dots.js +0 -27
- package/dist/primitives/charts/radar/chart-radar-grid-circle-fill.d.ts +0 -3
- package/dist/primitives/charts/radar/chart-radar-grid-circle-fill.d.ts.map +0 -1
- package/dist/primitives/charts/radar/chart-radar-grid-circle-fill.js +0 -24
- package/dist/primitives/charts/radar/chart-radar-grid-circle-no-lines.d.ts +0 -3
- package/dist/primitives/charts/radar/chart-radar-grid-circle-no-lines.d.ts.map +0 -1
- package/dist/primitives/charts/radar/chart-radar-grid-circle-no-lines.js +0 -27
- package/dist/primitives/charts/radar/chart-radar-grid-circle.d.ts +0 -3
- package/dist/primitives/charts/radar/chart-radar-grid-circle.d.ts.map +0 -1
- package/dist/primitives/charts/radar/chart-radar-grid-circle.js +0 -27
- package/dist/primitives/charts/radar/chart-radar-grid-custom.d.ts +0 -3
- package/dist/primitives/charts/radar/chart-radar-grid-custom.d.ts.map +0 -1
- package/dist/primitives/charts/radar/chart-radar-grid-custom.js +0 -24
- package/dist/primitives/charts/radar/chart-radar-grid-fill.d.ts +0 -3
- package/dist/primitives/charts/radar/chart-radar-grid-fill.d.ts.map +0 -1
- package/dist/primitives/charts/radar/chart-radar-grid-fill.js +0 -24
- package/dist/primitives/charts/radar/chart-radar-grid-none.d.ts +0 -3
- package/dist/primitives/charts/radar/chart-radar-grid-none.d.ts.map +0 -1
- package/dist/primitives/charts/radar/chart-radar-grid-none.js +0 -27
- package/dist/primitives/charts/radar/chart-radar-icons.d.ts +0 -3
- package/dist/primitives/charts/radar/chart-radar-icons.d.ts.map +0 -1
- package/dist/primitives/charts/radar/chart-radar-icons.js +0 -33
- package/dist/primitives/charts/radar/index.d.ts +0 -10
- package/dist/primitives/charts/radar/index.d.ts.map +0 -1
- package/dist/primitives/charts/radar/index.js +0 -10
- package/dist/primitives/charts/radial/chart-radial-grid.d.ts +0 -3
- package/dist/primitives/charts/radial/chart-radial-grid.d.ts.map +0 -1
- package/dist/primitives/charts/radial/chart-radial-grid.js +0 -42
- package/dist/primitives/charts/radial/chart-radial-label.d.ts +0 -3
- package/dist/primitives/charts/radial/chart-radial-label.d.ts.map +0 -1
- package/dist/primitives/charts/radial/chart-radial-label.js +0 -42
- package/dist/primitives/charts/radial/chart-radial-shape.d.ts +0 -3
- package/dist/primitives/charts/radial/chart-radial-shape.d.ts.map +0 -1
- package/dist/primitives/charts/radial/chart-radial-shape.js +0 -26
- package/dist/primitives/charts/radial/chart-radial-simple.d.ts +0 -3
- package/dist/primitives/charts/radial/chart-radial-simple.d.ts.map +0 -1
- package/dist/primitives/charts/radial/chart-radial-simple.js +0 -42
- package/dist/primitives/charts/radial/chart-radial-stacked.d.ts +0 -3
- package/dist/primitives/charts/radial/chart-radial-stacked.d.ts.map +0 -1
- package/dist/primitives/charts/radial/chart-radial-stacked.js +0 -26
- package/dist/primitives/charts/radial/chart-radial-text.d.ts +0 -3
- package/dist/primitives/charts/radial/chart-radial-text.d.ts.map +0 -1
- package/dist/primitives/charts/radial/chart-radial-text.js +0 -26
- package/dist/primitives/charts/radial/index.d.ts +0 -7
- package/dist/primitives/charts/radial/index.d.ts.map +0 -1
- package/dist/primitives/charts/radial/index.js +0 -7
- package/dist/primitives/charts/tooltip/chart-tooltip-advanced.d.ts +0 -3
- package/dist/primitives/charts/tooltip/chart-tooltip-advanced.d.ts.map +0 -1
- package/dist/primitives/charts/tooltip/chart-tooltip-advanced.js +0 -34
- package/dist/primitives/charts/tooltip/chart-tooltip-default.d.ts +0 -5
- package/dist/primitives/charts/tooltip/chart-tooltip-default.d.ts.map +0 -1
- package/dist/primitives/charts/tooltip/chart-tooltip-default.js +0 -33
- package/dist/primitives/charts/tooltip/chart-tooltip-formatter.d.ts +0 -3
- package/dist/primitives/charts/tooltip/chart-tooltip-formatter.d.ts.map +0 -1
- package/dist/primitives/charts/tooltip/chart-tooltip-formatter.js +0 -32
- package/dist/primitives/charts/tooltip/chart-tooltip-icons.d.ts +0 -3
- package/dist/primitives/charts/tooltip/chart-tooltip-icons.d.ts.map +0 -1
- package/dist/primitives/charts/tooltip/chart-tooltip-icons.js +0 -34
- package/dist/primitives/charts/tooltip/chart-tooltip-indicator-line.d.ts +0 -5
- package/dist/primitives/charts/tooltip/chart-tooltip-indicator-line.d.ts.map +0 -1
- package/dist/primitives/charts/tooltip/chart-tooltip-indicator-line.js +0 -33
- package/dist/primitives/charts/tooltip/chart-tooltip-indicator-none.d.ts +0 -3
- package/dist/primitives/charts/tooltip/chart-tooltip-indicator-none.d.ts.map +0 -1
- package/dist/primitives/charts/tooltip/chart-tooltip-indicator-none.js +0 -31
- package/dist/primitives/charts/tooltip/chart-tooltip-label-custom.d.ts +0 -3
- package/dist/primitives/charts/tooltip/chart-tooltip-label-custom.d.ts.map +0 -1
- package/dist/primitives/charts/tooltip/chart-tooltip-label-custom.js +0 -34
- package/dist/primitives/charts/tooltip/chart-tooltip-label-formatter.d.ts +0 -3
- package/dist/primitives/charts/tooltip/chart-tooltip-label-formatter.d.ts.map +0 -1
- package/dist/primitives/charts/tooltip/chart-tooltip-label-formatter.js +0 -37
- package/dist/primitives/charts/tooltip/chart-tooltip-label-none.d.ts +0 -3
- package/dist/primitives/charts/tooltip/chart-tooltip-label-none.d.ts.map +0 -1
- package/dist/primitives/charts/tooltip/chart-tooltip-label-none.js +0 -31
- package/dist/primitives/charts/tooltip/index.d.ts +0 -10
- package/dist/primitives/charts/tooltip/index.d.ts.map +0 -1
- package/dist/primitives/charts/tooltip/index.js +0 -10
- package/dist/primitives/chat/chat-input-area.d.ts +0 -24
- package/dist/primitives/chat/chat-input-area.d.ts.map +0 -1
- package/dist/primitives/chat/chat-input-area.js +0 -23
- package/dist/primitives/chat/chat-input.d.ts +0 -13
- package/dist/primitives/chat/chat-input.d.ts.map +0 -1
- package/dist/primitives/chat/chat-input.js +0 -33
- package/dist/primitives/chat/json-form.d.ts +0 -4
- package/dist/primitives/chat/json-form.d.ts.map +0 -1
- package/dist/primitives/chat/json-form.js +0 -6
- package/dist/primitives/checkbox.d.ts +0 -12
- package/dist/primitives/checkbox.d.ts.map +0 -1
- package/dist/primitives/checkbox.js +0 -8
- package/dist/primitives/collapsible.d.ts +0 -6
- package/dist/primitives/collapsible.d.ts.map +0 -1
- package/dist/primitives/collapsible.js +0 -5
- package/dist/primitives/combobox.d.ts +0 -42
- package/dist/primitives/combobox.d.ts.map +0 -1
- package/dist/primitives/combobox.js +0 -49
- package/dist/primitives/command.d.ts +0 -39
- package/dist/primitives/command.d.ts.map +0 -1
- package/dist/primitives/command.js +0 -28
- package/dist/primitives/context-menu.d.ts +0 -54
- package/dist/primitives/context-menu.d.ts.map +0 -1
- package/dist/primitives/context-menu.js +0 -32
- package/dist/primitives/copy-to-clipboard-icon.d.ts +0 -15
- package/dist/primitives/copy-to-clipboard-icon.d.ts.map +0 -1
- package/dist/primitives/copy-to-clipboard-icon.js +0 -21
- package/dist/primitives/dialog-video-controller.d.ts +0 -4
- package/dist/primitives/dialog-video-controller.d.ts.map +0 -1
- package/dist/primitives/dialog-video-controller.js +0 -23
- package/dist/primitives/dialog.d.ts +0 -18
- package/dist/primitives/dialog.d.ts.map +0 -1
- package/dist/primitives/dialog.js +0 -37
- package/dist/primitives/dot-pattern.d.ts +0 -14
- package/dist/primitives/dot-pattern.d.ts.map +0 -1
- package/dist/primitives/dot-pattern.js +0 -8
- package/dist/primitives/dots-loader.d.ts +0 -5
- package/dist/primitives/dots-loader.d.ts.map +0 -1
- package/dist/primitives/dots-loader.js +0 -5
- package/dist/primitives/drawer.d.ts +0 -38
- package/dist/primitives/drawer.d.ts.map +0 -1
- package/dist/primitives/drawer.js +0 -22
- package/dist/primitives/dropdown-menu.d.ts +0 -52
- package/dist/primitives/dropdown-menu.d.ts.map +0 -1
- package/dist/primitives/dropdown-menu.js +0 -34
- package/dist/primitives/empty.d.ts +0 -12
- package/dist/primitives/empty.d.ts.map +0 -1
- package/dist/primitives/empty.js +0 -33
- package/dist/primitives/error-message.d.ts +0 -7
- package/dist/primitives/error-message.d.ts.map +0 -1
- package/dist/primitives/error-message.js +0 -5
- package/dist/primitives/field.d.ts +0 -10
- package/dist/primitives/field.d.ts.map +0 -1
- package/dist/primitives/field.js +0 -16
- package/dist/primitives/file-uploader.d.ts +0 -20
- package/dist/primitives/file-uploader.d.ts.map +0 -1
- package/dist/primitives/file-uploader.js +0 -68
- package/dist/primitives/form.d.ts +0 -40
- package/dist/primitives/form.d.ts.map +0 -1
- package/dist/primitives/form.js +0 -67
- package/dist/primitives/hover-card.d.ts +0 -10
- package/dist/primitives/hover-card.d.ts.map +0 -1
- package/dist/primitives/hover-card.js +0 -8
- package/dist/primitives/icons/github.d.ts +0 -5
- package/dist/primitives/icons/github.d.ts.map +0 -1
- package/dist/primitives/icons/github.js +0 -3
- package/dist/primitives/icons/index.d.ts +0 -5
- package/dist/primitives/icons/index.d.ts.map +0 -1
- package/dist/primitives/icons/index.js +0 -4
- package/dist/primitives/icons/youtube-logo.d.ts +0 -5
- package/dist/primitives/icons/youtube-logo.d.ts.map +0 -1
- package/dist/primitives/icons/youtube-logo.js +0 -33
- package/dist/primitives/index-blocks.d.ts +0 -5
- package/dist/primitives/index-blocks.d.ts.map +0 -1
- package/dist/primitives/index-blocks.js +0 -6
- package/dist/primitives/index-common.d.ts +0 -75
- package/dist/primitives/index-common.d.ts.map +0 -1
- package/dist/primitives/index-common.js +0 -82
- package/dist/primitives/index-core.d.ts +0 -29
- package/dist/primitives/index-core.d.ts.map +0 -1
- package/dist/primitives/index-core.js +0 -30
- package/dist/primitives/index-next.d.ts +0 -3
- package/dist/primitives/index-next.d.ts.map +0 -1
- package/dist/primitives/index-next.js +0 -4
- package/dist/primitives/index-standard.d.ts +0 -79
- package/dist/primitives/index-standard.d.ts.map +0 -1
- package/dist/primitives/index-standard.js +0 -98
- package/dist/primitives/input-group.d.ts +0 -17
- package/dist/primitives/input-group.d.ts.map +0 -1
- package/dist/primitives/input-group.js +0 -61
- package/dist/primitives/input-otp.d.ts +0 -35
- package/dist/primitives/input-otp.d.ts.map +0 -1
- package/dist/primitives/input-otp.js +0 -19
- package/dist/primitives/input.d.ts +0 -15
- package/dist/primitives/input.d.ts.map +0 -1
- package/dist/primitives/input.js +0 -43
- package/dist/primitives/item.d.ts +0 -24
- package/dist/primitives/item.d.ts.map +0 -1
- package/dist/primitives/item.js +0 -67
- package/dist/primitives/kbd.d.ts +0 -5
- package/dist/primitives/kbd.d.ts.map +0 -1
- package/dist/primitives/kbd.js +0 -9
- package/dist/primitives/label.d.ts +0 -11
- package/dist/primitives/label.d.ts.map +0 -1
- package/dist/primitives/label.js +0 -9
- package/dist/primitives/list-adaptor.d.ts +0 -10
- package/dist/primitives/list-adaptor.d.ts.map +0 -1
- package/dist/primitives/list-adaptor.js +0 -1
- package/dist/primitives/list-box.d.ts +0 -12
- package/dist/primitives/list-box.d.ts.map +0 -1
- package/dist/primitives/list-box.js +0 -10
- package/dist/primitives/loading-spinner.d.ts +0 -6
- package/dist/primitives/loading-spinner.d.ts.map +0 -1
- package/dist/primitives/loading-spinner.js +0 -7
- package/dist/primitives/markdown-preview.d.ts +0 -129
- package/dist/primitives/markdown-preview.d.ts.map +0 -1
- package/dist/primitives/markdown-preview.js +0 -165
- package/dist/primitives/menubar.d.ts +0 -29
- package/dist/primitives/menubar.d.ts.map +0 -1
- package/dist/primitives/menubar.js +0 -46
- package/dist/primitives/mermaid.d.ts +0 -8
- package/dist/primitives/mermaid.d.ts.map +0 -1
- package/dist/primitives/mermaid.js +0 -112
- package/dist/primitives/native-select.d.ts +0 -9
- package/dist/primitives/native-select.d.ts.map +0 -1
- package/dist/primitives/native-select.js +0 -14
- package/dist/primitives/navigation-menu.d.ts +0 -13
- package/dist/primitives/navigation-menu.d.ts.map +0 -1
- package/dist/primitives/navigation-menu.js +0 -29
- package/dist/primitives/next/image.d.ts +0 -12
- package/dist/primitives/next/image.d.ts.map +0 -1
- package/dist/primitives/next/image.js +0 -40
- package/dist/primitives/next/index.d.ts +0 -8
- package/dist/primitives/next/index.d.ts.map +0 -1
- package/dist/primitives/next/index.js +0 -7
- package/dist/primitives/next/inline-icon.d.ts +0 -14
- package/dist/primitives/next/inline-icon.d.ts.map +0 -1
- package/dist/primitives/next/inline-icon.js +0 -13
- package/dist/primitives/next/link-element.d.ts +0 -24
- package/dist/primitives/next/link-element.d.ts.map +0 -1
- package/dist/primitives/next/link-element.js +0 -47
- package/dist/primitives/next/mdx-link.d.ts +0 -4
- package/dist/primitives/next/mdx-link.d.ts.map +0 -1
- package/dist/primitives/next/mdx-link.js +0 -10
- package/dist/primitives/next/media-stack.d.ts +0 -9
- package/dist/primitives/next/media-stack.d.ts.map +0 -1
- package/dist/primitives/next/media-stack.js +0 -20
- package/dist/primitives/next/nav-items.d.ts +0 -11
- package/dist/primitives/next/nav-items.d.ts.map +0 -1
- package/dist/primitives/next/nav-items.js +0 -22
- package/dist/primitives/next/youtube-embed.d.ts +0 -12
- package/dist/primitives/next/youtube-embed.d.ts.map +0 -1
- package/dist/primitives/next/youtube-embed.js +0 -16
- package/dist/primitives/popover.d.ts +0 -12
- package/dist/primitives/popover.d.ts.map +0 -1
- package/dist/primitives/popover.js +0 -10
- package/dist/primitives/pretty-json-print.d.ts +0 -5
- package/dist/primitives/pretty-json-print.d.ts.map +0 -1
- package/dist/primitives/pretty-json-print.js +0 -22
- package/dist/primitives/progress.d.ts +0 -9
- package/dist/primitives/progress.d.ts.map +0 -1
- package/dist/primitives/progress.js +0 -7
- package/dist/primitives/prompt-textarea.d.ts +0 -19
- package/dist/primitives/prompt-textarea.d.ts.map +0 -1
- package/dist/primitives/prompt-textarea.js +0 -30
- package/dist/primitives/radio-group.d.ts +0 -12
- package/dist/primitives/radio-group.d.ts.map +0 -1
- package/dist/primitives/radio-group.js +0 -14
- package/dist/primitives/resizable.d.ts +0 -8
- package/dist/primitives/resizable.d.ts.map +0 -1
- package/dist/primitives/resizable.js +0 -8
- package/dist/primitives/scroll-area.d.ts +0 -14
- package/dist/primitives/scroll-area.d.ts.map +0 -1
- package/dist/primitives/scroll-area.js +0 -10
- package/dist/primitives/search-input.d.ts +0 -14
- package/dist/primitives/search-input.d.ts.map +0 -1
- package/dist/primitives/search-input.js +0 -16
- package/dist/primitives/select.d.ts +0 -27
- package/dist/primitives/select.d.ts.map +0 -1
- package/dist/primitives/select.js +0 -21
- package/dist/primitives/separator.d.ts +0 -9
- package/dist/primitives/separator.d.ts.map +0 -1
- package/dist/primitives/separator.js +0 -7
- package/dist/primitives/sheet.d.ts +0 -41
- package/dist/primitives/sheet.d.ts.map +0 -1
- package/dist/primitives/sheet.js +0 -35
- package/dist/primitives/skeleton.d.ts +0 -5
- package/dist/primitives/skeleton.d.ts.map +0 -1
- package/dist/primitives/skeleton.js +0 -7
- package/dist/primitives/slider.d.ts +0 -6
- package/dist/primitives/slider.d.ts.map +0 -1
- package/dist/primitives/slider.js +0 -15
- package/dist/primitives/sonner.d.ts +0 -6
- package/dist/primitives/sonner.d.ts.map +0 -1
- package/dist/primitives/sonner.js +0 -17
- package/dist/primitives/spinner.d.ts +0 -3
- package/dist/primitives/spinner.d.ts.map +0 -1
- package/dist/primitives/spinner.js +0 -7
- package/dist/primitives/step-indicator.d.ts +0 -10
- package/dist/primitives/step-indicator.d.ts.map +0 -1
- package/dist/primitives/step-indicator.js +0 -13
- package/dist/primitives/stepper.d.ts +0 -49
- package/dist/primitives/stepper.d.ts.map +0 -1
- package/dist/primitives/stepper.js +0 -75
- package/dist/primitives/switch.d.ts +0 -9
- package/dist/primitives/switch.d.ts.map +0 -1
- package/dist/primitives/switch.js +0 -7
- package/dist/primitives/table.d.ts +0 -35
- package/dist/primitives/table.d.ts.map +0 -1
- package/dist/primitives/table.js +0 -19
- package/dist/primitives/tabs.d.ts +0 -12
- package/dist/primitives/tabs.d.ts.map +0 -1
- package/dist/primitives/tabs.js +0 -35
- package/dist/primitives/text-area.d.ts +0 -6
- package/dist/primitives/text-area.d.ts.map +0 -1
- package/dist/primitives/text-area.js +0 -10
- package/dist/primitives/text-link.d.ts +0 -6
- package/dist/primitives/text-link.d.ts.map +0 -1
- package/dist/primitives/text-link.js +0 -5
- package/dist/primitives/textarea.d.ts +0 -13
- package/dist/primitives/textarea.d.ts.map +0 -1
- package/dist/primitives/textarea.js +0 -28
- package/dist/primitives/textfield.d.ts +0 -33
- package/dist/primitives/textfield.d.ts.map +0 -1
- package/dist/primitives/textfield.js +0 -9
- package/dist/primitives/toast.d.ts +0 -6
- package/dist/primitives/toast.d.ts.map +0 -1
- package/dist/primitives/toast.js +0 -13
- package/dist/primitives/toggle-group.d.ts +0 -14
- package/dist/primitives/toggle-group.d.ts.map +0 -1
- package/dist/primitives/toggle-group.js +0 -20
- package/dist/primitives/toggle.d.ts +0 -13
- package/dist/primitives/toggle.d.ts.map +0 -1
- package/dist/primitives/toggle.js +0 -24
- package/dist/primitives/tooltip.d.ts +0 -15
- package/dist/primitives/tooltip.d.ts.map +0 -1
- package/dist/primitives/tooltip.js +0 -11
- package/dist/primitives/video-player.d.ts +0 -7
- package/dist/primitives/video-player.d.ts.map +0 -1
- package/dist/primitives/video-player.js +0 -7
- package/dist/primitives/youtube-pip-player.d.ts +0 -33
- package/dist/primitives/youtube-pip-player.d.ts.map +0 -1
- package/dist/primitives/youtube-pip-player.js +0 -253
- package/dist/src/3d/button.d.ts +0 -27
- package/dist/src/3d/button.d.ts.map +0 -1
- package/dist/src/3d/button.js +0 -181
- package/dist/src/3d/card.d.ts +0 -29
- package/dist/src/3d/card.d.ts.map +0 -1
- package/dist/src/3d/card.js +0 -117
- package/dist/src/3d/carousel.d.ts +0 -26
- package/dist/src/3d/carousel.d.ts.map +0 -1
- package/dist/src/3d/carousel.js +0 -171
- package/dist/src/3d/grid.d.ts +0 -49
- package/dist/src/3d/grid.d.ts.map +0 -1
- package/dist/src/3d/grid.js +0 -126
- package/dist/src/3d/index.d.ts +0 -7
- package/dist/src/3d/index.d.ts.map +0 -1
- package/dist/src/3d/index.js +0 -7
- package/dist/src/3d/marquee.d.ts +0 -37
- package/dist/src/3d/marquee.d.ts.map +0 -1
- package/dist/src/3d/marquee.js +0 -208
- package/dist/src/3d/pin.d.ts +0 -8
- package/dist/src/3d/pin.d.ts.map +0 -1
- package/dist/src/3d/pin.js +0 -9
- package/dist/src/avatar.d.ts +0 -2
- package/dist/src/avatar.d.ts.map +0 -1
- package/dist/src/avatar.js +0 -1
- package/dist/src/badge.d.ts +0 -2
- package/dist/src/badge.d.ts.map +0 -1
- package/dist/src/badge.js +0 -1
- package/dist/src/billing/components/account-members.d.ts +0 -10
- package/dist/src/billing/components/account-members.d.ts.map +0 -1
- package/dist/src/billing/components/account-members.js +0 -63
- package/dist/src/billing/components/account-switcher.d.ts +0 -9
- package/dist/src/billing/components/account-switcher.d.ts.map +0 -1
- package/dist/src/billing/components/account-switcher.js +0 -52
- package/dist/src/billing/components/animated-card.d.ts +0 -9
- package/dist/src/billing/components/animated-card.d.ts.map +0 -1
- package/dist/src/billing/components/animated-card.js +0 -161
- package/dist/src/billing/components/billing-settings.d.ts +0 -26
- package/dist/src/billing/components/billing-settings.d.ts.map +0 -1
- package/dist/src/billing/components/billing-settings.js +0 -23
- package/dist/src/billing/components/billing-workspace.d.ts +0 -28
- package/dist/src/billing/components/billing-workspace.d.ts.map +0 -1
- package/dist/src/billing/components/billing-workspace.js +0 -22
- package/dist/src/billing/components/business-profile-panel.d.ts +0 -7
- package/dist/src/billing/components/business-profile-panel.d.ts.map +0 -1
- package/dist/src/billing/components/business-profile-panel.js +0 -45
- package/dist/src/billing/components/card-form.d.ts +0 -18
- package/dist/src/billing/components/card-form.d.ts.map +0 -1
- package/dist/src/billing/components/card-form.js +0 -139
- package/dist/src/billing/components/cost-explorer.d.ts +0 -7
- package/dist/src/billing/components/cost-explorer.d.ts.map +0 -1
- package/dist/src/billing/components/cost-explorer.js +0 -73
- package/dist/src/billing/components/credits-panel.d.ts +0 -8
- package/dist/src/billing/components/credits-panel.d.ts.map +0 -1
- package/dist/src/billing/components/credits-panel.js +0 -58
- package/dist/src/billing/components/guided-setup.d.ts +0 -13
- package/dist/src/billing/components/guided-setup.d.ts.map +0 -1
- package/dist/src/billing/components/guided-setup.js +0 -44
- package/dist/src/billing/components/index.d.ts +0 -47
- package/dist/src/billing/components/index.d.ts.map +0 -1
- package/dist/src/billing/components/index.js +0 -23
- package/dist/src/billing/components/invoice-manager.d.ts +0 -10
- package/dist/src/billing/components/invoice-manager.d.ts.map +0 -1
- package/dist/src/billing/components/invoice-manager.js +0 -131
- package/dist/src/billing/components/invoices-payments.d.ts +0 -7
- package/dist/src/billing/components/invoices-payments.d.ts.map +0 -1
- package/dist/src/billing/components/invoices-payments.js +0 -44
- package/dist/src/billing/components/overview-dashboard.d.ts +0 -31
- package/dist/src/billing/components/overview-dashboard.d.ts.map +0 -1
- package/dist/src/billing/components/overview-dashboard.js +0 -105
- package/dist/src/billing/components/payment-manager.d.ts +0 -13
- package/dist/src/billing/components/payment-manager.d.ts.map +0 -1
- package/dist/src/billing/components/payment-manager.js +0 -330
- package/dist/src/billing/components/promotions-panel.d.ts +0 -7
- package/dist/src/billing/components/promotions-panel.d.ts.map +0 -1
- package/dist/src/billing/components/promotions-panel.js +0 -48
- package/dist/src/billing/components/spend-alerts.d.ts +0 -9
- package/dist/src/billing/components/spend-alerts.d.ts.map +0 -1
- package/dist/src/billing/components/spend-alerts.js +0 -99
- package/dist/src/billing/components/square-card-form.d.ts +0 -32
- package/dist/src/billing/components/square-card-form.d.ts.map +0 -1
- package/dist/src/billing/components/square-card-form.js +0 -179
- package/dist/src/billing/components/status-bar.d.ts +0 -12
- package/dist/src/billing/components/status-bar.d.ts.map +0 -1
- package/dist/src/billing/components/status-bar.js +0 -32
- package/dist/src/billing/components/subscription-portal.d.ts +0 -17
- package/dist/src/billing/components/subscription-portal.d.ts.map +0 -1
- package/dist/src/billing/components/subscription-portal.js +0 -185
- package/dist/src/billing/components/support-tiers-panel.d.ts +0 -6
- package/dist/src/billing/components/support-tiers-panel.d.ts.map +0 -1
- package/dist/src/billing/components/support-tiers-panel.js +0 -90
- package/dist/src/billing/components/tax-compliance-panel.d.ts +0 -8
- package/dist/src/billing/components/tax-compliance-panel.d.ts.map +0 -1
- package/dist/src/billing/components/tax-compliance-panel.js +0 -41
- package/dist/src/billing/components/transactions-panel.d.ts +0 -8
- package/dist/src/billing/components/transactions-panel.d.ts.map +0 -1
- package/dist/src/billing/components/transactions-panel.js +0 -64
- package/dist/src/billing/components/usage-panel.d.ts +0 -7
- package/dist/src/billing/components/usage-panel.d.ts.map +0 -1
- package/dist/src/billing/components/usage-panel.js +0 -64
- package/dist/src/billing/index.d.ts +0 -7
- package/dist/src/billing/index.d.ts.map +0 -1
- package/dist/src/billing/index.js +0 -8
- package/dist/src/billing/types/index.d.ts +0 -312
- package/dist/src/billing/types/index.d.ts.map +0 -1
- package/dist/src/billing/types/index.js +0 -1
- package/dist/src/button.d.ts +0 -2
- package/dist/src/button.d.ts.map +0 -1
- package/dist/src/button.js +0 -1
- package/dist/src/calendar-ext/index.d.ts +0 -4
- package/dist/src/calendar-ext/index.d.ts.map +0 -1
- package/dist/src/calendar-ext/index.js +0 -7
- package/dist/src/charts/index.d.ts +0 -65
- package/dist/src/charts/index.d.ts.map +0 -1
- package/dist/src/charts/index.js +0 -76
- package/dist/src/desktop/hooks.d.ts +0 -75
- package/dist/src/desktop/hooks.d.ts.map +0 -1
- package/dist/src/desktop/hooks.js +0 -194
- package/dist/src/desktop/index.d.ts +0 -7
- package/dist/src/desktop/index.d.ts.map +0 -1
- package/dist/src/desktop/index.js +0 -8
- package/dist/src/desktop/spotlight.d.ts +0 -24
- package/dist/src/desktop/spotlight.d.ts.map +0 -1
- package/dist/src/desktop/spotlight.js +0 -126
- package/dist/src/desktop/window.d.ts +0 -34
- package/dist/src/desktop/window.d.ts.map +0 -1
- package/dist/src/desktop/window.js +0 -114
- package/dist/src/device/index.d.ts +0 -2
- package/dist/src/device/index.d.ts.map +0 -1
- package/dist/src/device/index.js +0 -1
- package/dist/src/dock/basic.d.ts +0 -20
- package/dist/src/dock/basic.d.ts.map +0 -1
- package/dist/src/dock/basic.js +0 -50
- package/dist/src/dock/index.d.ts +0 -6
- package/dist/src/dock/index.d.ts.map +0 -1
- package/dist/src/dock/index.js +0 -6
- package/dist/src/dock/limelight-nav.d.ts +0 -10
- package/dist/src/dock/limelight-nav.d.ts.map +0 -1
- package/dist/src/dock/limelight-nav.js +0 -25
- package/dist/src/dock/macos.d.ts +0 -17
- package/dist/src/dock/macos.d.ts.map +0 -1
- package/dist/src/dock/macos.js +0 -38
- package/dist/src/dock/menu.d.ts +0 -14
- package/dist/src/dock/menu.d.ts.map +0 -1
- package/dist/src/dock/menu.js +0 -10
- package/dist/src/dock/message.d.ts +0 -15
- package/dist/src/dock/message.d.ts.map +0 -1
- package/dist/src/dock/message.js +0 -21
- package/dist/src/form/form.d.ts +0 -24
- package/dist/src/form/form.d.ts.map +0 -1
- package/dist/src/form/form.js +0 -66
- package/dist/src/form/index.d.ts +0 -2
- package/dist/src/form/index.d.ts.map +0 -1
- package/dist/src/form/index.js +0 -2
- package/dist/src/hooks/index.d.ts +0 -8
- package/dist/src/hooks/index.d.ts.map +0 -1
- package/dist/src/hooks/index.js +0 -7
- package/dist/src/hooks/use-click-away.d.ts +0 -3
- package/dist/src/hooks/use-click-away.d.ts.map +0 -1
- package/dist/src/hooks/use-click-away.js +0 -23
- package/dist/src/hooks/use-combined-refs.d.ts +0 -4
- package/dist/src/hooks/use-combined-refs.d.ts.map +0 -1
- package/dist/src/hooks/use-combined-refs.js +0 -18
- package/dist/src/hooks/use-copy-clipboard.d.ts +0 -10
- package/dist/src/hooks/use-copy-clipboard.d.ts.map +0 -1
- package/dist/src/hooks/use-copy-clipboard.js +0 -21
- package/dist/src/hooks/use-debounce.d.ts +0 -2
- package/dist/src/hooks/use-debounce.d.ts.map +0 -1
- package/dist/src/hooks/use-debounce.js +0 -13
- package/dist/src/hooks/use-fill-ids.d.ts +0 -9
- package/dist/src/hooks/use-fill-ids.d.ts.map +0 -1
- package/dist/src/hooks/use-fill-ids.js +0 -20
- package/dist/src/hooks/use-map.d.ts +0 -2
- package/dist/src/hooks/use-map.d.ts.map +0 -1
- package/dist/src/hooks/use-map.js +0 -20
- package/dist/src/hooks/use-measure.d.ts +0 -9
- package/dist/src/hooks/use-measure.d.ts.map +0 -1
- package/dist/src/hooks/use-measure.js +0 -25
- package/dist/src/hooks/use-reverse-video-playback.d.ts +0 -2
- package/dist/src/hooks/use-reverse-video-playback.d.ts.map +0 -1
- package/dist/src/hooks/use-reverse-video-playback.js +0 -41
- package/dist/src/hooks/use-scroll-restoration.d.ts +0 -9
- package/dist/src/hooks/use-scroll-restoration.d.ts.map +0 -1
- package/dist/src/hooks/use-scroll-restoration.js +0 -36
- package/dist/src/kanban/index.d.ts +0 -3
- package/dist/src/kanban/index.d.ts.map +0 -1
- package/dist/src/kanban/index.js +0 -4
- package/dist/src/mcp/enhanced-server.d.ts +0 -41
- package/dist/src/mcp/enhanced-server.d.ts.map +0 -1
- package/dist/src/mcp/enhanced-server.js +0 -1128
- package/dist/src/mcp/index.d.ts +0 -40
- package/dist/src/mcp/index.d.ts.map +0 -1
- package/dist/src/mcp/index.js +0 -436
- package/dist/src/mermaid/index.d.ts +0 -3
- package/dist/src/mermaid/index.d.ts.map +0 -1
- package/dist/src/mermaid/index.js +0 -3
- package/dist/src/models/ModelCard.d.ts +0 -25
- package/dist/src/models/ModelCard.d.ts.map +0 -1
- package/dist/src/models/ModelCard.js +0 -73
- package/dist/src/models/ModelLibrary.d.ts +0 -41
- package/dist/src/models/ModelLibrary.d.ts.map +0 -1
- package/dist/src/models/ModelLibrary.js +0 -63
- package/dist/src/models/ModelTable.d.ts +0 -17
- package/dist/src/models/ModelTable.d.ts.map +0 -1
- package/dist/src/models/ModelTable.js +0 -35
- package/dist/src/models/ZenEnso.d.ts +0 -17
- package/dist/src/models/ZenEnso.d.ts.map +0 -1
- package/dist/src/models/ZenEnso.js +0 -50
- package/dist/src/models/index.d.ts +0 -23
- package/dist/src/models/index.d.ts.map +0 -1
- package/dist/src/models/index.js +0 -18
- package/dist/src/models/types.d.ts +0 -40
- package/dist/src/models/types.d.ts.map +0 -1
- package/dist/src/models/types.js +0 -7
- package/dist/src/navigation/advanced-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/advanced-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/advanced-navigation-bar.js +0 -4
- package/dist/src/navigation/ai-model-selector-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/ai-model-selector-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/ai-model-selector-navigation-bar.js +0 -4
- package/dist/src/navigation/app-switcher-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/app-switcher-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/app-switcher-navigation-bar.js +0 -4
- package/dist/src/navigation/breadcrumb-and-filters-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/breadcrumb-and-filters-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/breadcrumb-and-filters-navigation-bar.js +0 -4
- package/dist/src/navigation/breadcrumb-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/breadcrumb-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/breadcrumb-navigation-bar.js +0 -4
- package/dist/src/navigation/centered-logo-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/centered-logo-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/centered-logo-navigation-bar.js +0 -4
- package/dist/src/navigation/collaboration-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/collaboration-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/collaboration-navigation-bar.js +0 -4
- package/dist/src/navigation/communication-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/communication-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/communication-navigation-bar.js +0 -4
- package/dist/src/navigation/context-switcher-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/context-switcher-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/context-switcher-navigation-bar.js +0 -4
- package/dist/src/navigation/dashboard-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/dashboard-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/dashboard-navigation-bar.js +0 -4
- package/dist/src/navigation/e-commerce-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/e-commerce-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/e-commerce-navigation-bar.js +0 -4
- package/dist/src/navigation/hanzo-shell/AppSwitcher.d.ts +0 -8
- package/dist/src/navigation/hanzo-shell/AppSwitcher.d.ts.map +0 -1
- package/dist/src/navigation/hanzo-shell/AppSwitcher.js +0 -19
- package/dist/src/navigation/hanzo-shell/BeamAvatar.d.ts +0 -9
- package/dist/src/navigation/hanzo-shell/BeamAvatar.d.ts.map +0 -1
- package/dist/src/navigation/hanzo-shell/BeamAvatar.js +0 -38
- package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.d.ts +0 -28
- package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.d.ts.map +0 -1
- package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.js +0 -124
- package/dist/src/navigation/hanzo-shell/HanzoHeader.d.ts +0 -37
- package/dist/src/navigation/hanzo-shell/HanzoHeader.d.ts.map +0 -1
- package/dist/src/navigation/hanzo-shell/HanzoHeader.js +0 -43
- package/dist/src/navigation/hanzo-shell/HanzoMark.d.ts +0 -17
- package/dist/src/navigation/hanzo-shell/HanzoMark.d.ts.map +0 -1
- package/dist/src/navigation/hanzo-shell/HanzoMark.js +0 -57
- package/dist/src/navigation/hanzo-shell/UserAvatar.d.ts +0 -15
- package/dist/src/navigation/hanzo-shell/UserAvatar.d.ts.map +0 -1
- package/dist/src/navigation/hanzo-shell/UserAvatar.js +0 -44
- package/dist/src/navigation/hanzo-shell/UserOrgDropdown.d.ts +0 -11
- package/dist/src/navigation/hanzo-shell/UserOrgDropdown.d.ts.map +0 -1
- package/dist/src/navigation/hanzo-shell/UserOrgDropdown.js +0 -26
- package/dist/src/navigation/hanzo-shell/index.d.ts +0 -14
- package/dist/src/navigation/hanzo-shell/index.d.ts.map +0 -1
- package/dist/src/navigation/hanzo-shell/index.js +0 -9
- package/dist/src/navigation/hanzo-shell/types.d.ts +0 -49
- package/dist/src/navigation/hanzo-shell/types.d.ts.map +0 -1
- package/dist/src/navigation/hanzo-shell/types.js +0 -32
- package/dist/src/navigation/hanzo-shell/useHanzoAuth.d.ts +0 -16
- package/dist/src/navigation/hanzo-shell/useHanzoAuth.d.ts.map +0 -1
- package/dist/src/navigation/hanzo-shell/useHanzoAuth.js +0 -93
- package/dist/src/navigation/icon-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/icon-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/icon-navigation-bar.js +0 -4
- package/dist/src/navigation/index.d.ts +0 -21
- package/dist/src/navigation/index.d.ts.map +0 -1
- package/dist/src/navigation/index.js +0 -21
- package/dist/src/navigation/search-and-toggle-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/search-and-toggle-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/search-and-toggle-navigation-bar.js +0 -4
- package/dist/src/navigation/simple-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/simple-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/simple-navigation-bar.js +0 -4
- package/dist/src/navigation/status-dashboard-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/status-dashboard-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/status-dashboard-navigation-bar.js +0 -4
- package/dist/src/navigation/team-switcher-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/team-switcher-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/team-switcher-navigation-bar.js +0 -4
- package/dist/src/navigation/two-tier-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/two-tier-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/two-tier-navigation-bar.js +0 -4
- package/dist/src/navigation/underline-navigation-bar.d.ts +0 -2
- package/dist/src/navigation/underline-navigation-bar.d.ts.map +0 -1
- package/dist/src/navigation/underline-navigation-bar.js +0 -4
- package/dist/src/pattern/grid.d.ts +0 -111
- package/dist/src/pattern/grid.d.ts.map +0 -1
- package/dist/src/pattern/grid.js +0 -126
- package/dist/src/pattern/index.d.ts +0 -3
- package/dist/src/pattern/index.d.ts.map +0 -1
- package/dist/src/pattern/index.js +0 -2
- package/dist/src/project/gantt.d.ts +0 -13
- package/dist/src/project/gantt.d.ts.map +0 -1
- package/dist/src/project/gantt.js +0 -9
- package/dist/src/project/index.d.ts +0 -4
- package/dist/src/project/index.d.ts.map +0 -1
- package/dist/src/project/index.js +0 -7
- package/dist/src/project/kanban.d.ts +0 -36
- package/dist/src/project/kanban.d.ts.map +0 -1
- package/dist/src/project/kanban.js +0 -259
- package/dist/src/project/list.d.ts +0 -5
- package/dist/src/project/list.d.ts.map +0 -1
- package/dist/src/project/list.js +0 -8
- package/dist/src/registry/api.d.ts +0 -38
- package/dist/src/registry/api.d.ts.map +0 -1
- package/dist/src/registry/api.js +0 -129
- package/dist/src/registry/index.d.ts +0 -354
- package/dist/src/registry/index.d.ts.map +0 -1
- package/dist/src/registry/index.js +0 -45
- package/dist/src/spline/index.d.ts +0 -3
- package/dist/src/spline/index.d.ts.map +0 -1
- package/dist/src/spline/index.js +0 -4
- package/dist/src/spline/media-stack.d.ts +0 -15
- package/dist/src/spline/media-stack.d.ts.map +0 -1
- package/dist/src/spline/media-stack.js +0 -33
- package/dist/src/spline/player.d.ts +0 -15
- package/dist/src/spline/player.d.ts.map +0 -1
- package/dist/src/spline/player.js +0 -12
- package/dist/src/ui/announcement.d.ts +0 -9
- package/dist/src/ui/announcement.d.ts.map +0 -1
- package/dist/src/ui/announcement.js +0 -18
- package/dist/src/ui/avatar-group.d.ts +0 -12
- package/dist/src/ui/avatar-group.d.ts.map +0 -1
- package/dist/src/ui/avatar-group.js +0 -12
- package/dist/src/ui/banner.d.ts +0 -11
- package/dist/src/ui/banner.d.ts.map +0 -1
- package/dist/src/ui/banner.js +0 -25
- package/dist/src/ui/cursor.d.ts +0 -9
- package/dist/src/ui/cursor.d.ts.map +0 -1
- package/dist/src/ui/cursor.js +0 -24
- package/dist/src/ui/index.d.ts +0 -18
- package/dist/src/ui/index.d.ts.map +0 -1
- package/dist/src/ui/index.js +0 -10
- package/dist/src/ui/marquee.d.ts +0 -10
- package/dist/src/ui/marquee.d.ts.map +0 -1
- package/dist/src/ui/marquee.js +0 -14
- package/dist/src/ui/pill.d.ts +0 -11
- package/dist/src/ui/pill.d.ts.map +0 -1
- package/dist/src/ui/pill.js +0 -25
- package/dist/src/ui/spinner.d.ts +0 -3
- package/dist/src/ui/spinner.d.ts.map +0 -1
- package/dist/src/ui/spinner.js +0 -7
- package/dist/src/ui/tags.d.ts +0 -13
- package/dist/src/ui/tags.d.ts.map +0 -1
- package/dist/src/ui/tags.js +0 -11
- package/dist/src/ui/ticker.d.ts +0 -10
- package/dist/src/ui/ticker.d.ts.map +0 -1
- package/dist/src/ui/ticker.js +0 -12
- package/dist/src/utils.d.ts +0 -5
- package/dist/src/utils.d.ts.map +0 -1
- package/dist/src/utils.js +0 -16
- package/dist/style/theme-provider.d.ts +0 -5
- package/dist/style/theme-provider.d.ts.map +0 -1
- package/dist/style/theme-provider.js +0 -8
- package/dist/tailwind/colors.tailwind.d.ts +0 -53
- package/dist/tailwind/colors.tailwind.d.ts.map +0 -1
- package/dist/tailwind/colors.tailwind.js +0 -52
- package/dist/tailwind/fontFamily.tailwind.d.ts +0 -9
- package/dist/tailwind/fontFamily.tailwind.d.ts.map +0 -1
- package/dist/tailwind/fontFamily.tailwind.js +0 -7
- package/dist/tailwind/fontSize.tailwind.d.ts +0 -37
- package/dist/tailwind/fontSize.tailwind.d.ts.map +0 -1
- package/dist/tailwind/fontSize.tailwind.js +0 -13
- package/dist/tailwind/index.d.ts +0 -4
- package/dist/tailwind/index.d.ts.map +0 -1
- package/dist/tailwind/safelist.tailwind.d.ts +0 -9
- package/dist/tailwind/safelist.tailwind.d.ts.map +0 -1
- package/dist/tailwind/safelist.tailwind.js +0 -25
- package/dist/tailwind/screens.tailwind.d.ts +0 -10
- package/dist/tailwind/screens.tailwind.d.ts.map +0 -1
- package/dist/tailwind/screens.tailwind.js +0 -8
- package/dist/tailwind/spacing.tailwind.d.ts +0 -59
- package/dist/tailwind/spacing.tailwind.d.ts.map +0 -1
- package/dist/tailwind/spacing.tailwind.js +0 -62
- package/dist/tailwind/tailwind.config.hanzo-preset.d.ts +0 -1299
- package/dist/tailwind/tailwind.config.hanzo-preset.d.ts.map +0 -1
- package/dist/tailwind/tailwind.config.hanzo-preset.js +0 -911
- package/dist/tailwind/tw-font-desc.d.ts +0 -7
- package/dist/tailwind/tw-font-desc.d.ts.map +0 -1
- package/dist/tailwind/tw-font-desc.js +0 -6
- package/dist/tailwind/z-index.tailwind.d.ts +0 -51
- package/dist/tailwind/z-index.tailwind.d.ts.map +0 -1
- package/dist/tailwind/z-index.tailwind.js +0 -67
- package/dist/types/animation-def.d.ts +0 -3
- package/dist/types/animation-def.d.ts.map +0 -1
- package/dist/types/animation-def.js +0 -1
- package/dist/types/breakpoints.d.ts +0 -5
- package/dist/types/breakpoints.d.ts.map +0 -1
- package/dist/types/breakpoints.js +0 -4
- package/dist/types/bullet-item.d.ts +0 -7
- package/dist/types/bullet-item.d.ts.map +0 -1
- package/dist/types/bullet-item.js +0 -1
- package/dist/types/button-def.d.ts +0 -30
- package/dist/types/button-def.d.ts.map +0 -1
- package/dist/types/button-def.js +0 -1
- package/dist/types/dimensions.d.ts +0 -6
- package/dist/types/dimensions.d.ts.map +0 -1
- package/dist/types/dimensions.js +0 -1
- package/dist/types/grid-def.d.ts +0 -37
- package/dist/types/grid-def.d.ts.map +0 -1
- package/dist/types/grid-def.js +0 -33
- package/dist/types/image-def.d.ts +0 -28
- package/dist/types/image-def.d.ts.map +0 -1
- package/dist/types/image-def.js +0 -1
- package/dist/types/index.d.ts +0 -15
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/link-def.d.ts +0 -45
- package/dist/types/link-def.d.ts.map +0 -1
- package/dist/types/link-def.js +0 -1
- package/dist/types/media-stack-def.d.ts +0 -26
- package/dist/types/media-stack-def.d.ts.map +0 -1
- package/dist/types/media-stack-def.js +0 -1
- package/dist/types/t-shirt-size.d.ts +0 -3
- package/dist/types/t-shirt-size.d.ts.map +0 -1
- package/dist/types/t-shirt-size.js +0 -1
- package/dist/types/tshirt-dimensions.d.ts +0 -13
- package/dist/types/tshirt-dimensions.d.ts.map +0 -1
- package/dist/types/tshirt-dimensions.js +0 -1
- package/dist/types/video-def.d.ts +0 -10
- package/dist/types/video-def.d.ts.map +0 -1
- package/dist/types/video-def.js +0 -1
- package/dist/util/blob.d.ts +0 -3
- package/dist/util/blob.d.ts.map +0 -1
- package/dist/util/blob.js +0 -23
- package/dist/util/copy-to-clipboard.d.ts +0 -2
- package/dist/util/copy-to-clipboard.d.ts.map +0 -1
- package/dist/util/copy-to-clipboard.js +0 -18
- package/dist/util/create-shadow-root.d.ts +0 -8
- package/dist/util/create-shadow-root.d.ts.map +0 -1
- package/dist/util/create-shadow-root.js +0 -18
- package/dist/util/date.d.ts +0 -29
- package/dist/util/date.d.ts.map +0 -1
- package/dist/util/date.js +0 -60
- package/dist/util/debounce.d.ts +0 -2
- package/dist/util/debounce.d.ts.map +0 -1
- package/dist/util/debounce.js +0 -11
- package/dist/util/file.d.ts +0 -4
- package/dist/util/file.d.ts.map +0 -1
- package/dist/util/file.js +0 -13
- package/dist/util/format-and-abbreviate-as-currency.d.ts +0 -18
- package/dist/util/format-and-abbreviate-as-currency.d.ts.map +0 -1
- package/dist/util/format-and-abbreviate-as-currency.js +0 -91
- package/dist/util/format-text.d.ts +0 -8
- package/dist/util/format-text.d.ts.map +0 -1
- package/dist/util/format-text.js +0 -26
- package/dist/util/format-to-max-char.d.ts +0 -12
- package/dist/util/format-to-max-char.d.ts.map +0 -1
- package/dist/util/format-to-max-char.js +0 -57
- package/dist/util/index-client.d.ts +0 -3
- package/dist/util/index-client.d.ts.map +0 -1
- package/dist/util/index-client.js +0 -3
- package/dist/util/index.d.ts +0 -37
- package/dist/util/index.d.ts.map +0 -1
- package/dist/util/number-abbreviate.d.ts +0 -10
- package/dist/util/number-abbreviate.d.ts.map +0 -1
- package/dist/util/number-abbreviate.js +0 -30
- package/dist/util/specifier.d.ts +0 -8
- package/dist/util/specifier.d.ts.map +0 -1
- package/dist/util/specifier.js +0 -31
- package/dist/util/spread-to-transform.d.ts +0 -8
- package/dist/util/spread-to-transform.d.ts.map +0 -1
- package/dist/util/spread-to-transform.js +0 -19
- package/dist/util/step-animation.d.ts +0 -6
- package/dist/util/step-animation.d.ts.map +0 -1
- package/dist/util/step-animation.js +0 -60
- package/dist/util/timing.d.ts +0 -2
- package/dist/util/timing.d.ts.map +0 -1
- package/dist/util/timing.js +0 -3
- package/dist/util/toasts.d.ts +0 -3
- package/dist/util/toasts.d.ts.map +0 -1
- package/dist/util/toasts.js +0 -10
- package/dist/util/two-way-map.d.ts +0 -9
- package/dist/util/two-way-map.d.ts.map +0 -1
- package/dist/util/two-way-map.js +0 -16
- package/dist/util/use-mobile.d.ts +0 -2
- package/dist/util/use-mobile.d.ts.map +0 -1
- package/dist/util/use-mobile.js +0 -15
- package/dist/utils.d.ts +0 -4
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -7
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var he=Object.defineProperty;var s=(t,e)=>he(t,"name",{value:e,configurable:true});function ge({x:t,y:e,onClose:n}){let r=react.useRef(null);react.useEffect(()=>{let i=s(d=>{r.current&&!r.current.contains(d.target)&&n();},"handler"),h=s(d=>{d.key==="Escape"&&n();},"escape");return document.addEventListener("mousedown",i),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",h);}},[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"}],o='<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:r,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:e,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(o).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))]})}s(ge,"BrandContextMenu");function G({size:t=22,className:e="",brandMenu:n=true,animate:r=true}){let[l,o]=react.useState(null),[i,h]=react.useState(false),d=react.useCallback(p=>{n&&(p.preventDefault(),o({x:p.clientX,y:p.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:e,style:r?{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:()=>h(true),onMouseLeave:()=>h(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(ge,{x:l.x,y:l.y,onClose:()=>o(null)})]})}s(G,"HanzoMark");var U=[{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://hanzo.chat",description:"AI chat & models"},{id:"platform",label:"Platform",href:"https://platform.hanzo.ai",description:"Deploy & scale services"},{id:"storage",label:"Storage",href:"https://hanzo.space",description:"S3 object storage"}],S={hanzo:{id:"hanzo",iam:"https://hanzo.id",billing:"https://billing.hanzo.ai",console:"https://console.hanzo.ai",chat:"https://hanzo.chat",platform:"https://platform.hanzo.ai",storage:"https://hanzo.space",s3:"https://s3.hanzo.ai"},lux:{id:"lux",iam:"https://lux.id",billing:"https://billing.lux.network",console:"https://console.lux.network",chat:"https://chat.lux.network",platform:"https://platform.lux.network",storage:"https://storage.lux.network",s3:"https://s3.lux.network"},zoo:{id:"zoo",iam:"https://zoo.id",billing:"https://billing.zoo.ngo",console:"https://console.zoo.ngo",chat:"https://chat.zoo.ngo",platform:"https://platform.zoo.ngo",storage:"https://storage.zoo.ngo",s3:"https://s3.zoo.ngo"},pars:{id:"pars",iam:"https://pars.id",billing:"https://billing.pars.ai",console:"https://console.pars.ai",chat:"https://chat.pars.ai",platform:"https://platform.pars.ai",storage:"https://storage.pars.ai",s3:"https://s3.pars.ai"}};function K(t){let e=S[t]||S.hanzo;return [{id:"account",label:"Account",href:`${e.iam}/account`,description:"Profile, orgs & referrals"},{id:"billing",label:"Billing",href:e.billing,description:"Subscriptions & usage"},{id:"console",label:"Console",href:e.console,description:"API keys & projects"},{id:"chat",label:"Chat",href:e.chat,description:"AI chat & models"},{id:"platform",label:"Platform",href:e.platform,description:"Deploy & scale services"},{id:"storage",label:"Storage",href:e.storage,description:"S3 object storage"}]}s(K,"getAppsForOrg");function W({apps:t=U,currentAppId:e}){let[n,r]=react.useState(false),l=react.useRef(null);return react.useEffect(()=>{let o=s(i=>{l.current&&!l.current.contains(i.target)&&r(false);},"handler");return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[]),jsxRuntime.jsxs("div",{ref:l,className:"relative",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>r(o=>!o),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(o=>o.id!==e).map(o=>jsxRuntime.jsxs("a",{href:o.href,className:"flex flex-col gap-0.5 rounded-lg px-3 py-2.5 hover:bg-white/[0.06] transition-colors",onClick:()=>r(false),children:[jsxRuntime.jsx("span",{className:"text-[13px] font-medium text-white/80",children:o.label}),o.description&&jsxRuntime.jsx("span",{className:"text-[11px] text-white/30",children:o.description})]},o.id))]})]})}s(W,"AppSwitcher");var ye=["#0A0310","#49007E","#FF005B","#FF7D10","#FFB238"];function ke(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return Math.abs(e)}s(ke,"hashStr");function M(t,e,n){return t%(e*(n+1))%e}s(M,"getUnit");function ze(t,e){return M(t,2,e)===0}s(ze,"getBoolean");function ie(t,e,n){return n[M(t,n.length,e)]}s(ie,"getRandomColor");function Ne(t){let e=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),r=parseInt(t.slice(5,7),16);return e*.299+n*.587+r*.114>128?"#000":"#fff"}s(Ne,"getContrast");function q({name:t,size:e=40,colors:n=ye,className:r,square:l=false}){let o=ke(t),i=ie(o,0,n),h=Ne(i),d=ze(o,2),f=M(o,3,7),p=M(o,5,8),c=M(o,10,9),u=c>6?c-10:c,g=M(o,5,10)>3?M(o,5,10)-5:M(o,5,10);return jsxRuntime.jsxs("svg",{viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,className:r,style:l?void 0:{borderRadius:"50%"},children:[jsxRuntime.jsx("mask",{id:`beam-${o}`,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-${o})`,children:[jsxRuntime.jsx("rect",{width:36,height:36,fill:i}),jsxRuntime.jsx("rect",{x:0,y:0,width:36,height:36,transform:`translate(${u} ${g}) rotate(${c} 18 18)`,fill:ie(o,1,n),rx:6}),jsxRuntime.jsxs("g",{transform:`translate(${u} ${g}) rotate(${c} 18 18)`,children:[d?jsxRuntime.jsx("path",{d:`M15 ${19+f}c2 1 4 1 6 0`,stroke:h,fill:"none",strokeLinecap:"round"}):jsxRuntime.jsx("path",{d:`M13 ${19+f}a1 .75 0 0 0 10 0`,fill:h}),jsxRuntime.jsx("rect",{x:14-p,y:14,width:1.5,height:2,rx:1,fill:h}),jsxRuntime.jsx("rect",{x:20+p,y:14,width:1.5,height:2,rx:1,fill:h})]})]})]})}s(q,"BeamAvatar");async function Ae(t){let n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(r)).map(l=>l.toString(16).padStart(2,"0")).join("")}s(Ae,"sha256");function Se(t,e){let[n,r]=react.useState(null);return react.useMemo(()=>{if(!t){r(null);return}let l=t.trim().toLowerCase();Ae(l).then(o=>{r(`https://www.gravatar.com/avatar/${o}?s=${e||80}&d=404`);});},[t,e]),n}s(Se,"useGravatarUrl");function Q({src:t,email:e,name:n,size:r=40,colors:l,className:o}){let[i,h]=react.useState(false),[d,f]=react.useState(false),p=Se(e,r*2),c=`rounded-full object-cover ${o||""}`,u={width:r,height:r};return t&&!i?jsxRuntime.jsx("img",{src:t,alt:n||e||"avatar",className:c,style:u,onError:()=>h(true)}):p&&!d?jsxRuntime.jsx("img",{src:p,alt:n||e||"avatar",className:c,style:u,onError:()=>f(true)}):jsxRuntime.jsx(q,{name:n||e||"user",size:r,colors:l,className:o})}s(Q,"UserAvatar");function ee({user:t,organizations:e=[],currentOrgId:n,onOrgSwitch:r,onSignOut:l}){let[o,i]=react.useState(false),h=react.useRef(null);if(react.useEffect(()=>{let c=s(u=>{h.current&&!h.current.contains(u.target)&&i(false);},"handler");return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),!t)return null;let d=e.find(c=>c.id===n),f=d?.slug||"hanzo",p=S[f]||S.hanzo;return jsxRuntime.jsxs("div",{ref:h,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>i(c=>!c),className:"flex items-center gap-2 rounded-lg px-2 py-1.5 hover:bg-white/[0.06] transition-colors",children:[jsxRuntime.jsx(Q,{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"})})]}),o&&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}),d&&jsxRuntime.jsx("p",{className:"mt-0.5 text-[10px] font-medium text-white/25 uppercase tracking-wider",children:d.name})]}),e.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"}),e.map(c=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>{r?.(c.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.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:"text-[13px] text-white/70",children:c.name}),c.role&&jsxRuntime.jsx("span",{className:"text-[10px] text-white/25 capitalize",children:c.role})]}),c.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"})})]},c.id))]}),jsxRuntime.jsxs("div",{className:"p-2",children:[jsxRuntime.jsx("a",{href:`${p.iam}/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:p.billing,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"})]})]})]})}s(ee,"UserOrgDropdown");function Pe({className:t}){return jsxRuntime.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[jsxRuntime.jsx("path",{d:"M21 2v6h-6"}),jsxRuntime.jsx("path",{d:"M3 12a9 9 0 0 1 15-6.7L21 8"}),jsxRuntime.jsx("path",{d:"M3 22v-6h6"}),jsxRuntime.jsx("path",{d:"M21 12a9 9 0 0 1-15 6.7L3 16"})]})}s(Pe,"HardRefreshIcon");function Le({className:t}){return jsxRuntime.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[jsxRuntime.jsx("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}s(Le,"SettingsIcon");async function Ee(){try{if(localStorage.clear(),sessionStorage.clear(),document.cookie.split(";").forEach(t=>{let e=t.split("=")[0].trim();if(e){document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`,document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${location.hostname}`;let n=location.hostname.split(".");if(n.length>2){let r="."+n.slice(-2).join(".");document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${r}`;}}}),"caches"in window){let t=await caches.keys();await Promise.all(t.map(e=>caches.delete(e)));}if("serviceWorker"in navigator){let t=await navigator.serviceWorker.getRegistrations();await Promise.all(t.map(e=>e.unregister()));}if("indexedDB"in window&&indexedDB.databases)try{(await indexedDB.databases()).forEach(e=>{e.name&&indexedDB.deleteDatabase(e.name);});}catch{}}catch{}location.reload();}s(Ee,"hardRefresh");function Ie({currentApp:t,currentAppId:e,user:n,organizations:r,currentOrgId:l,onOrgSwitch:o,onSignOut:i,apps:h,headerRight:d,settingsHref:f,onSettingsClick:p,hideHardRefresh:c,hideSettings:u}){let[g,P]=react.useState(false),L=r?.find(k=>k.id===l)?.slug||"hanzo",m=h||K(L),H=S[L]||S.hanzo,V=react.useCallback(()=>{P(true),Ee();},[]),y=react.useCallback(()=>{p?p():window.location.href=f||`${H.iam}/account`;},[p,f,H.iam]);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:`${H.iam}/account`,className:"flex-shrink-0 rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Account",children:jsxRuntime.jsx(G,{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(W,{apps:m,currentAppId:e})]}),jsxRuntime.jsxs("div",{className:"flex flex-shrink-0 items-center gap-1",children:[d,!c&&jsxRuntime.jsx("button",{type:"button",onClick:V,className:"flex items-center justify-center rounded-lg p-2 text-white/30 hover:bg-white/[0.06] hover:text-white/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Hard refresh \u2014 clear all storage, cookies, cache and reload",title:"Hard refresh",children:jsxRuntime.jsx(Pe,{className:g?"animate-spin":""})}),!u&&jsxRuntime.jsx("button",{type:"button",onClick:y,className:"flex items-center justify-center rounded-lg p-2 text-white/30 hover:bg-white/[0.06] hover:text-white/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Settings",title:"Settings",children:jsxRuntime.jsx(Le,{})}),jsxRuntime.jsx(ee,{user:n,organizations:r,currentOrgId:l,onOrgSwitch:o,onSignOut:i})]})]})}s(Ie,"HanzoHeader");var ce="hanzo-auth-token",ne="hanzo-user",pe="hanzo-auth-expires",Ue="https://iam.hanzo.ai",Be={hanzo:{name:"Hanzo AI",slug:"hanzo"},lux:{name:"Lux Network",slug:"lux"},zoo:{name:"Zoo Labs",slug:"zoo"},pars:{name:"Pars",slug:"pars"}};function $e(){let[t,e]=react.useState(void 0),[n,r]=react.useState([]),[l,o]=react.useState(void 0),[i,h]=react.useState(null),[d,f]=react.useState(true),p=react.useCallback(async()=>{try{let g=localStorage.getItem(ce),P=localStorage.getItem(pe);if(!g||P&&Date.now()>Number(P)){f(!1);return}h(g);let E=localStorage.getItem(ne);if(E)try{let m=JSON.parse(E);m?.email&&e({id:m.id,name:m.displayName||m.name,email:m.email,avatar:m.avatar});}catch{}let L=await fetch(`${Ue}/api/userinfo`,{headers:{Authorization:`Bearer ${g}`}});if(L.ok){let m=await L.json(),H={id:m.sub||m.id,name:m.name||m.displayName,email:m.email,avatar:m.picture||m.avatar};e(H),localStorage.setItem(ne,JSON.stringify(m));let y=(m.groups||[]).map(k=>{let I=k.toLowerCase().replace(/^\//,""),R=Be[I];return R?{id:I,name:R.name,slug:R.slug}:null}).filter(Boolean);y.length===0&&H.email&&y.push({id:"personal",name:"Personal",slug:"personal"}),r(y),o(y[0]?.id);}}catch{}finally{f(false);}},[]);react.useEffect(()=>{p();},[p]);let c=react.useCallback(()=>{localStorage.removeItem(ce),localStorage.removeItem(ne),localStorage.removeItem(pe),window.location.href="https://hanzo.id";},[]),u=react.useCallback(g=>{o(g);},[]);return {user:t,organizations:n,currentOrgId:l,token:i,loading:d,signOut:c,switchOrg:u}}s($e,"useHanzoAuth");function Ve(t,e){return t.filter(n=>n.id!==e).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()]}))}s(Ve,"buildCrossAppCommands");function Te({commands:t=[],apps:e,currentAppId:n,open:r,onOpenChange:l,onNavigate:o}){var ae;let[i,h]=react.useState(false),d=r??i,f=react.useCallback(a=>{l?l(a):h(a);},[l]),[p,c]=react.useState(""),[u,g]=react.useState(0),P=react.useRef(null),E=react.useRef(null),L=Ve(e??U,n),m=[...t,...L],H=p.toLowerCase(),V=H?m.filter(a=>a.title.toLowerCase().includes(H)||a.description?.toLowerCase().includes(H)||a.keywords?.some(z=>z.includes(H))):m,y={};for(let a of V)(y[ae=a.category]??(y[ae]=[])).push(a);let k=Object.values(y).flat();react.useEffect(()=>g(0),[p]),react.useEffect(()=>{d&&(c(""),g(0),requestAnimationFrame(()=>P.current?.focus()));},[d]),react.useEffect(()=>{let a=s(z=>{(z.metaKey||z.ctrlKey)&&z.key==="k"&&(z.preventDefault(),f(!d));},"handler");return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[d,f]);let I=react.useCallback(a=>{a.action?a.action():a.href&&(o?o(a.href,a.external):a.external?window.open(a.href,"_blank"):window.location.href=a.href),f(false);},[o,f]),R=react.useCallback(a=>{a.key==="ArrowDown"?(a.preventDefault(),g(z=>(z+1)%(k.length||1))):a.key==="ArrowUp"?(a.preventDefault(),g(z=>(z-1+(k.length||1))%(k.length||1))):a.key==="Enter"&&k[u]?(a.preventDefault(),I(k[u])):a.key==="Escape"&&f(false);},[k,u,I,f]);return react.useEffect(()=>{E.current?.querySelector(`[data-idx="${u}"]`)?.scrollIntoView({block:"nearest"});},[u]),d?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[100]",onClick:()=>f(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:P,type:"text",value:p,onChange:a=>c(a.target.value),onKeyDown:R,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:E,className:"max-h-[400px] overflow-y-auto py-1",children:k.length===0?jsxRuntime.jsxs("div",{className:"px-4 py-8 text-center text-white/30 text-[13px]",children:["No results for \u201C",p,"\u201D"]}):Object.entries(y).map(([a,z])=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"px-4 py-2 text-[10px] font-semibold text-white/25 uppercase tracking-widest",children:a}),z.map(D=>{let Z=k.indexOf(D),F=Z===u;return jsxRuntime.jsxs("button",{"data-idx":Z,onClick:()=>I(D),onMouseEnter:()=>g(Z),className:`w-full flex items-center gap-3 px-4 py-2 text-left transition-colors ${F?"bg-white/[0.06] text-white":"text-white/50 hover:bg-white/[0.03]"}`,children:[D.icon&&jsxRuntime.jsx("span",{className:`w-5 h-5 flex items-center justify-center ${F?"text-white/70":"text-white/25"}`,children:D.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("span",{className:"text-[13px] font-medium truncate block",children:D.title}),D.description&&jsxRuntime.jsx("span",{className:"text-[11px] text-white/25 truncate block",children:D.description})]}),F&&jsxRuntime.jsx("span",{className:"text-white/25 text-[11px]",children:"\u21B5"})]},D.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}s(Te,"HanzoCommandPalette");
|
|
3
|
+
exports.AppSwitcher=W;exports.BeamAvatar=q;exports.DEFAULT_HANZO_APPS=U;exports.HanzoCommandPalette=Te;exports.HanzoHeader=Ie;exports.HanzoMark=G;exports.ORG_DOMAINS=S;exports.UserAvatar=Q;exports.UserOrgDropdown=ee;exports.getAppsForOrg=K;exports.useHanzoAuth=$e;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {useState,useCallback,useRef,useEffect,useMemo}from'react';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var he=Object.defineProperty;var s=(t,e)=>he(t,"name",{value:e,configurable:true});function ge({x:t,y:e,onClose:n}){let r=useRef(null);useEffect(()=>{let i=s(d=>{r.current&&!r.current.contains(d.target)&&n();},"handler"),h=s(d=>{d.key==="Escape"&&n();},"escape");return document.addEventListener("mousedown",i),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",h);}},[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"}],o='<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:r,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:e,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(o).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))]})}s(ge,"BrandContextMenu");function G({size:t=22,className:e="",brandMenu:n=true,animate:r=true}){let[l,o]=useState(null),[i,h]=useState(false),d=useCallback(p=>{n&&(p.preventDefault(),o({x:p.clientX,y:p.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:e,style:r?{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:()=>h(true),onMouseLeave:()=>h(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(ge,{x:l.x,y:l.y,onClose:()=>o(null)})]})}s(G,"HanzoMark");var U=[{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://hanzo.chat",description:"AI chat & models"},{id:"platform",label:"Platform",href:"https://platform.hanzo.ai",description:"Deploy & scale services"},{id:"storage",label:"Storage",href:"https://hanzo.space",description:"S3 object storage"}],S={hanzo:{id:"hanzo",iam:"https://hanzo.id",billing:"https://billing.hanzo.ai",console:"https://console.hanzo.ai",chat:"https://hanzo.chat",platform:"https://platform.hanzo.ai",storage:"https://hanzo.space",s3:"https://s3.hanzo.ai"},lux:{id:"lux",iam:"https://lux.id",billing:"https://billing.lux.network",console:"https://console.lux.network",chat:"https://chat.lux.network",platform:"https://platform.lux.network",storage:"https://storage.lux.network",s3:"https://s3.lux.network"},zoo:{id:"zoo",iam:"https://zoo.id",billing:"https://billing.zoo.ngo",console:"https://console.zoo.ngo",chat:"https://chat.zoo.ngo",platform:"https://platform.zoo.ngo",storage:"https://storage.zoo.ngo",s3:"https://s3.zoo.ngo"},pars:{id:"pars",iam:"https://pars.id",billing:"https://billing.pars.ai",console:"https://console.pars.ai",chat:"https://chat.pars.ai",platform:"https://platform.pars.ai",storage:"https://storage.pars.ai",s3:"https://s3.pars.ai"}};function K(t){let e=S[t]||S.hanzo;return [{id:"account",label:"Account",href:`${e.iam}/account`,description:"Profile, orgs & referrals"},{id:"billing",label:"Billing",href:e.billing,description:"Subscriptions & usage"},{id:"console",label:"Console",href:e.console,description:"API keys & projects"},{id:"chat",label:"Chat",href:e.chat,description:"AI chat & models"},{id:"platform",label:"Platform",href:e.platform,description:"Deploy & scale services"},{id:"storage",label:"Storage",href:e.storage,description:"S3 object storage"}]}s(K,"getAppsForOrg");function W({apps:t=U,currentAppId:e}){let[n,r]=useState(false),l=useRef(null);return useEffect(()=>{let o=s(i=>{l.current&&!l.current.contains(i.target)&&r(false);},"handler");return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[]),jsxs("div",{ref:l,className:"relative",children:[jsx("button",{type:"button",onClick:()=>r(o=>!o),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(o=>o.id!==e).map(o=>jsxs("a",{href:o.href,className:"flex flex-col gap-0.5 rounded-lg px-3 py-2.5 hover:bg-white/[0.06] transition-colors",onClick:()=>r(false),children:[jsx("span",{className:"text-[13px] font-medium text-white/80",children:o.label}),o.description&&jsx("span",{className:"text-[11px] text-white/30",children:o.description})]},o.id))]})]})}s(W,"AppSwitcher");var ye=["#0A0310","#49007E","#FF005B","#FF7D10","#FFB238"];function ke(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return Math.abs(e)}s(ke,"hashStr");function M(t,e,n){return t%(e*(n+1))%e}s(M,"getUnit");function ze(t,e){return M(t,2,e)===0}s(ze,"getBoolean");function ie(t,e,n){return n[M(t,n.length,e)]}s(ie,"getRandomColor");function Ne(t){let e=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),r=parseInt(t.slice(5,7),16);return e*.299+n*.587+r*.114>128?"#000":"#fff"}s(Ne,"getContrast");function q({name:t,size:e=40,colors:n=ye,className:r,square:l=false}){let o=ke(t),i=ie(o,0,n),h=Ne(i),d=ze(o,2),f=M(o,3,7),p=M(o,5,8),c=M(o,10,9),u=c>6?c-10:c,g=M(o,5,10)>3?M(o,5,10)-5:M(o,5,10);return jsxs("svg",{viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,className:r,style:l?void 0:{borderRadius:"50%"},children:[jsx("mask",{id:`beam-${o}`,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-${o})`,children:[jsx("rect",{width:36,height:36,fill:i}),jsx("rect",{x:0,y:0,width:36,height:36,transform:`translate(${u} ${g}) rotate(${c} 18 18)`,fill:ie(o,1,n),rx:6}),jsxs("g",{transform:`translate(${u} ${g}) rotate(${c} 18 18)`,children:[d?jsx("path",{d:`M15 ${19+f}c2 1 4 1 6 0`,stroke:h,fill:"none",strokeLinecap:"round"}):jsx("path",{d:`M13 ${19+f}a1 .75 0 0 0 10 0`,fill:h}),jsx("rect",{x:14-p,y:14,width:1.5,height:2,rx:1,fill:h}),jsx("rect",{x:20+p,y:14,width:1.5,height:2,rx:1,fill:h})]})]})]})}s(q,"BeamAvatar");async function Ae(t){let n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(r)).map(l=>l.toString(16).padStart(2,"0")).join("")}s(Ae,"sha256");function Se(t,e){let[n,r]=useState(null);return useMemo(()=>{if(!t){r(null);return}let l=t.trim().toLowerCase();Ae(l).then(o=>{r(`https://www.gravatar.com/avatar/${o}?s=${e||80}&d=404`);});},[t,e]),n}s(Se,"useGravatarUrl");function Q({src:t,email:e,name:n,size:r=40,colors:l,className:o}){let[i,h]=useState(false),[d,f]=useState(false),p=Se(e,r*2),c=`rounded-full object-cover ${o||""}`,u={width:r,height:r};return t&&!i?jsx("img",{src:t,alt:n||e||"avatar",className:c,style:u,onError:()=>h(true)}):p&&!d?jsx("img",{src:p,alt:n||e||"avatar",className:c,style:u,onError:()=>f(true)}):jsx(q,{name:n||e||"user",size:r,colors:l,className:o})}s(Q,"UserAvatar");function ee({user:t,organizations:e=[],currentOrgId:n,onOrgSwitch:r,onSignOut:l}){let[o,i]=useState(false),h=useRef(null);if(useEffect(()=>{let c=s(u=>{h.current&&!h.current.contains(u.target)&&i(false);},"handler");return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),!t)return null;let d=e.find(c=>c.id===n),f=d?.slug||"hanzo",p=S[f]||S.hanzo;return jsxs("div",{ref:h,className:"relative",children:[jsxs("button",{type:"button",onClick:()=>i(c=>!c),className:"flex items-center gap-2 rounded-lg px-2 py-1.5 hover:bg-white/[0.06] transition-colors",children:[jsx(Q,{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"})})]}),o&&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}),d&&jsx("p",{className:"mt-0.5 text-[10px] font-medium text-white/25 uppercase tracking-wider",children:d.name})]}),e.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"}),e.map(c=>jsxs("button",{type:"button",onClick:()=>{r?.(c.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:[jsxs("div",{className:"flex flex-col",children:[jsx("span",{className:"text-[13px] text-white/70",children:c.name}),c.role&&jsx("span",{className:"text-[10px] text-white/25 capitalize",children:c.role})]}),c.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"})})]},c.id))]}),jsxs("div",{className:"p-2",children:[jsx("a",{href:`${p.iam}/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:p.billing,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"})]})]})]})}s(ee,"UserOrgDropdown");function Pe({className:t}){return jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[jsx("path",{d:"M21 2v6h-6"}),jsx("path",{d:"M3 12a9 9 0 0 1 15-6.7L21 8"}),jsx("path",{d:"M3 22v-6h6"}),jsx("path",{d:"M21 12a9 9 0 0 1-15 6.7L3 16"})]})}s(Pe,"HardRefreshIcon");function Le({className:t}){return jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[jsx("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),jsx("circle",{cx:"12",cy:"12",r:"3"})]})}s(Le,"SettingsIcon");async function Ee(){try{if(localStorage.clear(),sessionStorage.clear(),document.cookie.split(";").forEach(t=>{let e=t.split("=")[0].trim();if(e){document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`,document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${location.hostname}`;let n=location.hostname.split(".");if(n.length>2){let r="."+n.slice(-2).join(".");document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${r}`;}}}),"caches"in window){let t=await caches.keys();await Promise.all(t.map(e=>caches.delete(e)));}if("serviceWorker"in navigator){let t=await navigator.serviceWorker.getRegistrations();await Promise.all(t.map(e=>e.unregister()));}if("indexedDB"in window&&indexedDB.databases)try{(await indexedDB.databases()).forEach(e=>{e.name&&indexedDB.deleteDatabase(e.name);});}catch{}}catch{}location.reload();}s(Ee,"hardRefresh");function Ie({currentApp:t,currentAppId:e,user:n,organizations:r,currentOrgId:l,onOrgSwitch:o,onSignOut:i,apps:h,headerRight:d,settingsHref:f,onSettingsClick:p,hideHardRefresh:c,hideSettings:u}){let[g,P]=useState(false),L=r?.find(k=>k.id===l)?.slug||"hanzo",m=h||K(L),H=S[L]||S.hanzo,V=useCallback(()=>{P(true),Ee();},[]),y=useCallback(()=>{p?p():window.location.href=f||`${H.iam}/account`;},[p,f,H.iam]);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:`${H.iam}/account`,className:"flex-shrink-0 rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Account",children:jsx(G,{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(W,{apps:m,currentAppId:e})]}),jsxs("div",{className:"flex flex-shrink-0 items-center gap-1",children:[d,!c&&jsx("button",{type:"button",onClick:V,className:"flex items-center justify-center rounded-lg p-2 text-white/30 hover:bg-white/[0.06] hover:text-white/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Hard refresh \u2014 clear all storage, cookies, cache and reload",title:"Hard refresh",children:jsx(Pe,{className:g?"animate-spin":""})}),!u&&jsx("button",{type:"button",onClick:y,className:"flex items-center justify-center rounded-lg p-2 text-white/30 hover:bg-white/[0.06] hover:text-white/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Settings",title:"Settings",children:jsx(Le,{})}),jsx(ee,{user:n,organizations:r,currentOrgId:l,onOrgSwitch:o,onSignOut:i})]})]})}s(Ie,"HanzoHeader");var ce="hanzo-auth-token",ne="hanzo-user",pe="hanzo-auth-expires",Ue="https://iam.hanzo.ai",Be={hanzo:{name:"Hanzo AI",slug:"hanzo"},lux:{name:"Lux Network",slug:"lux"},zoo:{name:"Zoo Labs",slug:"zoo"},pars:{name:"Pars",slug:"pars"}};function $e(){let[t,e]=useState(void 0),[n,r]=useState([]),[l,o]=useState(void 0),[i,h]=useState(null),[d,f]=useState(true),p=useCallback(async()=>{try{let g=localStorage.getItem(ce),P=localStorage.getItem(pe);if(!g||P&&Date.now()>Number(P)){f(!1);return}h(g);let E=localStorage.getItem(ne);if(E)try{let m=JSON.parse(E);m?.email&&e({id:m.id,name:m.displayName||m.name,email:m.email,avatar:m.avatar});}catch{}let L=await fetch(`${Ue}/api/userinfo`,{headers:{Authorization:`Bearer ${g}`}});if(L.ok){let m=await L.json(),H={id:m.sub||m.id,name:m.name||m.displayName,email:m.email,avatar:m.picture||m.avatar};e(H),localStorage.setItem(ne,JSON.stringify(m));let y=(m.groups||[]).map(k=>{let I=k.toLowerCase().replace(/^\//,""),R=Be[I];return R?{id:I,name:R.name,slug:R.slug}:null}).filter(Boolean);y.length===0&&H.email&&y.push({id:"personal",name:"Personal",slug:"personal"}),r(y),o(y[0]?.id);}}catch{}finally{f(false);}},[]);useEffect(()=>{p();},[p]);let c=useCallback(()=>{localStorage.removeItem(ce),localStorage.removeItem(ne),localStorage.removeItem(pe),window.location.href="https://hanzo.id";},[]),u=useCallback(g=>{o(g);},[]);return {user:t,organizations:n,currentOrgId:l,token:i,loading:d,signOut:c,switchOrg:u}}s($e,"useHanzoAuth");function Ve(t,e){return t.filter(n=>n.id!==e).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()]}))}s(Ve,"buildCrossAppCommands");function Te({commands:t=[],apps:e,currentAppId:n,open:r,onOpenChange:l,onNavigate:o}){var ae;let[i,h]=useState(false),d=r??i,f=useCallback(a=>{l?l(a):h(a);},[l]),[p,c]=useState(""),[u,g]=useState(0),P=useRef(null),E=useRef(null),L=Ve(e??U,n),m=[...t,...L],H=p.toLowerCase(),V=H?m.filter(a=>a.title.toLowerCase().includes(H)||a.description?.toLowerCase().includes(H)||a.keywords?.some(z=>z.includes(H))):m,y={};for(let a of V)(y[ae=a.category]??(y[ae]=[])).push(a);let k=Object.values(y).flat();useEffect(()=>g(0),[p]),useEffect(()=>{d&&(c(""),g(0),requestAnimationFrame(()=>P.current?.focus()));},[d]),useEffect(()=>{let a=s(z=>{(z.metaKey||z.ctrlKey)&&z.key==="k"&&(z.preventDefault(),f(!d));},"handler");return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[d,f]);let I=useCallback(a=>{a.action?a.action():a.href&&(o?o(a.href,a.external):a.external?window.open(a.href,"_blank"):window.location.href=a.href),f(false);},[o,f]),R=useCallback(a=>{a.key==="ArrowDown"?(a.preventDefault(),g(z=>(z+1)%(k.length||1))):a.key==="ArrowUp"?(a.preventDefault(),g(z=>(z-1+(k.length||1))%(k.length||1))):a.key==="Enter"&&k[u]?(a.preventDefault(),I(k[u])):a.key==="Escape"&&f(false);},[k,u,I,f]);return useEffect(()=>{E.current?.querySelector(`[data-idx="${u}"]`)?.scrollIntoView({block:"nearest"});},[u]),d?jsxs(Fragment,{children:[jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[100]",onClick:()=>f(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:P,type:"text",value:p,onChange:a=>c(a.target.value),onKeyDown:R,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:E,className:"max-h-[400px] overflow-y-auto py-1",children:k.length===0?jsxs("div",{className:"px-4 py-8 text-center text-white/30 text-[13px]",children:["No results for \u201C",p,"\u201D"]}):Object.entries(y).map(([a,z])=>jsxs("div",{children:[jsx("div",{className:"px-4 py-2 text-[10px] font-semibold text-white/25 uppercase tracking-widest",children:a}),z.map(D=>{let Z=k.indexOf(D),F=Z===u;return jsxs("button",{"data-idx":Z,onClick:()=>I(D),onMouseEnter:()=>g(Z),className:`w-full flex items-center gap-3 px-4 py-2 text-left transition-colors ${F?"bg-white/[0.06] text-white":"text-white/50 hover:bg-white/[0.03]"}`,children:[D.icon&&jsx("span",{className:`w-5 h-5 flex items-center justify-center ${F?"text-white/70":"text-white/25"}`,children:D.icon}),jsxs("div",{className:"flex-1 min-w-0",children:[jsx("span",{className:"text-[13px] font-medium truncate block",children:D.title}),D.description&&jsx("span",{className:"text-[11px] text-white/25 truncate block",children:D.description})]}),F&&jsx("span",{className:"text-white/25 text-[11px]",children:"\u21B5"})]},D.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}s(Te,"HanzoCommandPalette");
|
|
3
|
+
export{W as AppSwitcher,q as BeamAvatar,U as DEFAULT_HANZO_APPS,Te as HanzoCommandPalette,Ie as HanzoHeader,G as HanzoMark,S as ORG_DOMAINS,Q as UserAvatar,ee as UserOrgDropdown,K as getAppsForOrg,$e as useHanzoAuth};
|
package/dist/navigation/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
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=
|
|
2
|
+
'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var Je=Object.defineProperty;var e=(o,t)=>Je(o,"name",{value:t,configurable:true});function tt({x:o,y:t,onClose:n}){let r=react.useRef(null);react.useEffect(()=>{let i=e(d=>{r.current&&!r.current.contains(d.target)&&n();},"handler"),f=e(d=>{d.key==="Escape"&&n();},"escape");return document.addEventListener("mousedown",i),document.addEventListener("keydown",f),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",f);}},[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"}],a='<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:r,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:t,left:o},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(a).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(tt,"BrandContextMenu");function ae({size:o=22,className:t="",brandMenu:n=true,animate:r=true}){let[l,a]=react.useState(null),[i,f]=react.useState(false),d=react.useCallback(p=>{n&&(p.preventDefault(),a({x:p.clientX,y:p.clientY}));},[n]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("svg",{width:o,height:o,viewBox:"0 0 67 67",xmlns:"http://www.w3.org/2000/svg","aria-label":"Hanzo",className:t,style:r?{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:()=>f(true),onMouseLeave:()=>f(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(tt,{x:l.x,y:l.y,onClose:()=>a(null)})]})}e(ae,"HanzoMark");var I=[{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://hanzo.chat",description:"AI chat & models"},{id:"platform",label:"Platform",href:"https://platform.hanzo.ai",description:"Deploy & scale services"},{id:"storage",label:"Storage",href:"https://hanzo.space",description:"S3 object storage"}],A={hanzo:{id:"hanzo",iam:"https://hanzo.id",billing:"https://billing.hanzo.ai",console:"https://console.hanzo.ai",chat:"https://hanzo.chat",platform:"https://platform.hanzo.ai",storage:"https://hanzo.space",s3:"https://s3.hanzo.ai"},lux:{id:"lux",iam:"https://lux.id",billing:"https://billing.lux.network",console:"https://console.lux.network",chat:"https://chat.lux.network",platform:"https://platform.lux.network",storage:"https://storage.lux.network",s3:"https://s3.lux.network"},zoo:{id:"zoo",iam:"https://zoo.id",billing:"https://billing.zoo.ngo",console:"https://console.zoo.ngo",chat:"https://chat.zoo.ngo",platform:"https://platform.zoo.ngo",storage:"https://storage.zoo.ngo",s3:"https://s3.zoo.ngo"},pars:{id:"pars",iam:"https://pars.id",billing:"https://billing.pars.ai",console:"https://console.pars.ai",chat:"https://chat.pars.ai",platform:"https://platform.pars.ai",storage:"https://storage.pars.ai",s3:"https://s3.pars.ai"}};function W(o){let t=A[o]||A.hanzo;return [{id:"account",label:"Account",href:`${t.iam}/account`,description:"Profile, orgs & referrals"},{id:"billing",label:"Billing",href:t.billing,description:"Subscriptions & usage"},{id:"console",label:"Console",href:t.console,description:"API keys & projects"},{id:"chat",label:"Chat",href:t.chat,description:"AI chat & models"},{id:"platform",label:"Platform",href:t.platform,description:"Deploy & scale services"},{id:"storage",label:"Storage",href:t.storage,description:"S3 object storage"}]}e(W,"getAppsForOrg");function _({apps:o=I,currentAppId:t}){let[n,r]=react.useState(false),l=react.useRef(null);return react.useEffect(()=>{let a=e(i=>{l.current&&!l.current.contains(i.target)&&r(false);},"handler");return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]),jsxRuntime.jsxs("div",{ref:l,className:"relative",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>r(a=>!a),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"}),o.filter(a=>a.id!==t).map(a=>jsxRuntime.jsxs("a",{href:a.href,className:"flex flex-col gap-0.5 rounded-lg px-3 py-2.5 hover:bg-white/[0.06] transition-colors",onClick:()=>r(false),children:[jsxRuntime.jsx("span",{className:"text-[13px] font-medium text-white/80",children:a.label}),a.description&&jsxRuntime.jsx("span",{className:"text-[11px] text-white/30",children:a.description})]},a.id))]})]})}e(_,"AppSwitcher");var st=["#0A0310","#49007E","#FF005B","#FF7D10","#FFB238"];function it(o){let t=0;for(let n=0;n<o.length;n++)t=(t<<5)-t+o.charCodeAt(n)|0;return Math.abs(t)}e(it,"hashStr");function M(o,t,n){return o%(t*(n+1))%t}e(M,"getUnit");function lt(o,t){return M(o,2,t)===0}e(lt,"getBoolean");function re(o,t,n){return n[M(o,n.length,t)]}e(re,"getRandomColor");function ct(o){let t=parseInt(o.slice(1,3),16),n=parseInt(o.slice(3,5),16),r=parseInt(o.slice(5,7),16);return t*.299+n*.587+r*.114>128?"#000":"#fff"}e(ct,"getContrast");function se({name:o,size:t=40,colors:n=st,className:r,square:l=false}){let a=it(o),i=re(a,0,n),f=ct(i),d=lt(a,2),m=M(a,3,7),p=M(a,5,8),c=M(a,10,9),h=c>6?c-10:c,g=M(a,5,10)>3?M(a,5,10)-5:M(a,5,10);return jsxRuntime.jsxs("svg",{viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:r,style:l?void 0:{borderRadius:"50%"},children:[jsxRuntime.jsx("mask",{id:`beam-${a}`,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-${a})`,children:[jsxRuntime.jsx("rect",{width:36,height:36,fill:i}),jsxRuntime.jsx("rect",{x:0,y:0,width:36,height:36,transform:`translate(${h} ${g}) rotate(${c} 18 18)`,fill:re(a,1,n),rx:6}),jsxRuntime.jsxs("g",{transform:`translate(${h} ${g}) rotate(${c} 18 18)`,children:[d?jsxRuntime.jsx("path",{d:`M15 ${19+m}c2 1 4 1 6 0`,stroke:f,fill:"none",strokeLinecap:"round"}):jsxRuntime.jsx("path",{d:`M13 ${19+m}a1 .75 0 0 0 10 0`,fill:f}),jsxRuntime.jsx("rect",{x:14-p,y:14,width:1.5,height:2,rx:1,fill:f}),jsxRuntime.jsx("rect",{x:20+p,y:14,width:1.5,height:2,rx:1,fill:f})]})]})]})}e(se,"BeamAvatar");async function dt(o){let n=new TextEncoder().encode(o),r=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(r)).map(l=>l.toString(16).padStart(2,"0")).join("")}e(dt,"sha256");function ft(o,t){let[n,r]=react.useState(null);return react.useMemo(()=>{if(!o){r(null);return}let l=o.trim().toLowerCase();dt(l).then(a=>{r(`https://www.gravatar.com/avatar/${a}?s=${t||80}&d=404`);});},[o,t]),n}e(ft,"useGravatarUrl");function ie({src:o,email:t,name:n,size:r=40,colors:l,className:a}){let[i,f]=react.useState(false),[d,m]=react.useState(false),p=ft(t,r*2),c=`rounded-full object-cover ${a||""}`,h={width:r,height:r};return o&&!i?jsxRuntime.jsx("img",{src:o,alt:n||t||"avatar",className:c,style:h,onError:()=>f(true)}):p&&!d?jsxRuntime.jsx("img",{src:p,alt:n||t||"avatar",className:c,style:h,onError:()=>m(true)}):jsxRuntime.jsx(se,{name:n||t||"user",size:r,colors:l,className:a})}e(ie,"UserAvatar");function F({user:o,organizations:t=[],currentOrgId:n,onOrgSwitch:r,onSignOut:l}){let[a,i]=react.useState(false),f=react.useRef(null);if(react.useEffect(()=>{let c=e(h=>{f.current&&!f.current.contains(h.target)&&i(false);},"handler");return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),!o)return null;let d=t.find(c=>c.id===n),m=d?.slug||"hanzo",p=A[m]||A.hanzo;return jsxRuntime.jsxs("div",{ref:f,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>i(c=>!c),className:"flex items-center gap-2 rounded-lg px-2 py-1.5 hover:bg-white/[0.06] transition-colors",children:[jsxRuntime.jsx(ie,{src:o.avatar,email:o.email,name:o.name,size:28}),jsxRuntime.jsxs("div",{className:"hidden flex-col items-start sm:flex",children:[o.name&&jsxRuntime.jsx("span",{className:"text-[12px] font-medium text-white/70 leading-none",children:o.name}),jsxRuntime.jsx("span",{className:"text-[11px] text-white/30 leading-none mt-0.5",children:o.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"})})]}),a&&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:o.name||"User"}),jsxRuntime.jsx("p",{className:"text-[11px] text-white/40",children:o.email}),d&&jsxRuntime.jsx("p",{className:"mt-0.5 text-[10px] font-medium text-white/25 uppercase tracking-wider",children:d.name})]}),t.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"}),t.map(c=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>{r?.(c.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.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:"text-[13px] text-white/70",children:c.name}),c.role&&jsxRuntime.jsx("span",{className:"text-[10px] text-white/25 capitalize",children:c.role})]}),c.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"})})]},c.id))]}),jsxRuntime.jsxs("div",{className:"p-2",children:[jsxRuntime.jsx("a",{href:`${p.iam}/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:p.billing,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(F,"UserOrgDropdown");function xt({className:o}){return jsxRuntime.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:o,children:[jsxRuntime.jsx("path",{d:"M21 2v6h-6"}),jsxRuntime.jsx("path",{d:"M3 12a9 9 0 0 1 15-6.7L21 8"}),jsxRuntime.jsx("path",{d:"M3 22v-6h6"}),jsxRuntime.jsx("path",{d:"M21 12a9 9 0 0 1-15 6.7L3 16"})]})}e(xt,"HardRefreshIcon");function vt({className:o}){return jsxRuntime.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:o,children:[jsxRuntime.jsx("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}e(vt,"SettingsIcon");async function wt(){try{if(localStorage.clear(),sessionStorage.clear(),document.cookie.split(";").forEach(o=>{let t=o.split("=")[0].trim();if(t){document.cookie=`${t}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`,document.cookie=`${t}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${location.hostname}`;let n=location.hostname.split(".");if(n.length>2){let r="."+n.slice(-2).join(".");document.cookie=`${t}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${r}`;}}}),"caches"in window){let o=await caches.keys();await Promise.all(o.map(t=>caches.delete(t)));}if("serviceWorker"in navigator){let o=await navigator.serviceWorker.getRegistrations();await Promise.all(o.map(t=>t.unregister()));}if("indexedDB"in window&&indexedDB.databases)try{(await indexedDB.databases()).forEach(t=>{t.name&&indexedDB.deleteDatabase(t.name);});}catch{}}catch{}location.reload();}e(wt,"hardRefresh");function ce({currentApp:o,currentAppId:t,user:n,organizations:r,currentOrgId:l,onOrgSwitch:a,onSignOut:i,apps:f,headerRight:d,settingsHref:m,onSettingsClick:p,hideHardRefresh:c,hideSettings:h}){let[g,P]=react.useState(false),L=r?.find(N=>N.id===l)?.slug||"hanzo",u=f||W(L),H=A[L]||A.hanzo,$=react.useCallback(()=>{P(true),wt();},[]),y=react.useCallback(()=>{p?p():window.location.href=m||`${H.iam}/account`;},[p,m,H.iam]);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:`${H.iam}/account`,className:"flex-shrink-0 rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Account",children:jsxRuntime.jsx(ae,{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:o}),jsxRuntime.jsx(_,{apps:u,currentAppId:t})]}),jsxRuntime.jsxs("div",{className:"flex flex-shrink-0 items-center gap-1",children:[d,!c&&jsxRuntime.jsx("button",{type:"button",onClick:$,className:"flex items-center justify-center rounded-lg p-2 text-white/30 hover:bg-white/[0.06] hover:text-white/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Hard refresh \u2014 clear all storage, cookies, cache and reload",title:"Hard refresh",children:jsxRuntime.jsx(xt,{className:g?"animate-spin":""})}),!h&&jsxRuntime.jsx("button",{type:"button",onClick:y,className:"flex items-center justify-center rounded-lg p-2 text-white/30 hover:bg-white/[0.06] hover:text-white/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Settings",title:"Settings",children:jsxRuntime.jsx(vt,{})}),jsxRuntime.jsx(F,{user:n,organizations:r,currentOrgId:l,onOrgSwitch:a,onSignOut:i})]})]})}e(ce,"HanzoHeader");var pe="hanzo-auth-token",Q="hanzo-user",de="hanzo-auth-expires",yt="https://iam.hanzo.ai",Nt={hanzo:{name:"Hanzo AI",slug:"hanzo"},lux:{name:"Lux Network",slug:"lux"},zoo:{name:"Zoo Labs",slug:"zoo"},pars:{name:"Pars",slug:"pars"}};function fe(){let[o,t]=react.useState(void 0),[n,r]=react.useState([]),[l,a]=react.useState(void 0),[i,f]=react.useState(null),[d,m]=react.useState(true),p=react.useCallback(async()=>{try{let g=localStorage.getItem(pe),P=localStorage.getItem(de);if(!g||P&&Date.now()>Number(P)){m(!1);return}f(g);let B=localStorage.getItem(Q);if(B)try{let u=JSON.parse(B);u?.email&&t({id:u.id,name:u.displayName||u.name,email:u.email,avatar:u.avatar});}catch{}let L=await fetch(`${yt}/api/userinfo`,{headers:{Authorization:`Bearer ${g}`}});if(L.ok){let u=await L.json(),H={id:u.sub||u.id,name:u.name||u.displayName,email:u.email,avatar:u.picture||u.avatar};t(H),localStorage.setItem(Q,JSON.stringify(u));let y=(u.groups||[]).map(N=>{let E=N.toLowerCase().replace(/^\//,""),R=Nt[E];return R?{id:E,name:R.name,slug:R.slug}:null}).filter(Boolean);y.length===0&&H.email&&y.push({id:"personal",name:"Personal",slug:"personal"}),r(y),a(y[0]?.id);}}catch{}finally{m(false);}},[]);react.useEffect(()=>{p();},[p]);let c=react.useCallback(()=>{localStorage.removeItem(pe),localStorage.removeItem(Q),localStorage.removeItem(de),window.location.href="https://hanzo.id";},[]),h=react.useCallback(g=>{a(g);},[]);return {user:o,organizations:n,currentOrgId:l,token:i,loading:d,signOut:c,switchOrg:h}}e(fe,"useHanzoAuth");function zt(o,t){return o.filter(n=>n.id!==t).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(zt,"buildCrossAppCommands");function ue({commands:o=[],apps:t,currentAppId:n,open:r,onOpenChange:l,onNavigate:a}){var oe;let[i,f]=react.useState(false),d=r??i,m=react.useCallback(s=>{l?l(s):f(s);},[l]),[p,c]=react.useState(""),[h,g]=react.useState(0),P=react.useRef(null),B=react.useRef(null),L=zt(t??I,n),u=[...o,...L],H=p.toLowerCase(),$=H?u.filter(s=>s.title.toLowerCase().includes(H)||s.description?.toLowerCase().includes(H)||s.keywords?.some(z=>z.includes(H))):u,y={};for(let s of $)(y[oe=s.category]??(y[oe]=[])).push(s);let N=Object.values(y).flat();react.useEffect(()=>g(0),[p]),react.useEffect(()=>{d&&(c(""),g(0),requestAnimationFrame(()=>P.current?.focus()));},[d]),react.useEffect(()=>{let s=e(z=>{(z.metaKey||z.ctrlKey)&&z.key==="k"&&(z.preventDefault(),m(!d));},"handler");return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[d,m]);let E=react.useCallback(s=>{s.action?s.action():s.href&&(a?a(s.href,s.external):s.external?window.open(s.href,"_blank"):window.location.href=s.href),m(false);},[a,m]),R=react.useCallback(s=>{s.key==="ArrowDown"?(s.preventDefault(),g(z=>(z+1)%(N.length||1))):s.key==="ArrowUp"?(s.preventDefault(),g(z=>(z-1+(N.length||1))%(N.length||1))):s.key==="Enter"&&N[h]?(s.preventDefault(),E(N[h])):s.key==="Escape"&&m(false);},[N,h,E,m]);return react.useEffect(()=>{B.current?.querySelector(`[data-idx="${h}"]`)?.scrollIntoView({block:"nearest"});},[h]),d?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[100]",onClick:()=>m(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:P,type:"text",value:p,onChange:s=>c(s.target.value),onKeyDown:R,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:B,className:"max-h-[400px] overflow-y-auto py-1",children:N.length===0?jsxRuntime.jsxs("div",{className:"px-4 py-8 text-center text-white/30 text-[13px]",children:["No results for \u201C",p,"\u201D"]}):Object.entries(y).map(([s,z])=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"px-4 py-2 text-[10px] font-semibold text-white/25 uppercase tracking-widest",children:s}),z.map(O=>{let j=N.indexOf(O),G=j===h;return jsxRuntime.jsxs("button",{"data-idx":j,onClick:()=>E(O),onMouseEnter:()=>g(j),className:`w-full flex items-center gap-3 px-4 py-2 text-left transition-colors ${G?"bg-white/[0.06] text-white":"text-white/50 hover:bg-white/[0.03]"}`,children:[O.icon&&jsxRuntime.jsx("span",{className:`w-5 h-5 flex items-center justify-center ${G?"text-white/70":"text-white/25"}`,children:O.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("span",{className:"text-[13px] font-medium truncate block",children:O.title}),O.description&&jsxRuntime.jsx("span",{className:"text-[11px] text-white/25 truncate block",children:O.description})]}),G&&jsxRuntime.jsx("span",{className:"text-white/25 text-[11px]",children:"\u21B5"})]},O.id)})]},s))}),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(ue,"HanzoCommandPalette");function ge(){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(ge,"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 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 Ne(){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(Ne,"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 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 Se(){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(Se,"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 Pe(){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(Pe,"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 Ie(){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(Ie,"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 $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 _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 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 Ge(){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(Ge,"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 qe(){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(qe,"Component");
|
|
3
|
+
exports.AIModelSelectorNavigationBar=ve;exports.AdvancedNavigationBar=ge;exports.AppSwitcher=_;exports.AppSwitcherNavigationBar=be;exports.BreadcrumbAndFiltersNavigationBar=Ne;exports.BreadcrumbNavigationBar=ke;exports.CenteredLogoNavigationBar=Ce;exports.CollaborationNavigationBar=Se;exports.CommunicationNavigationBar=De;exports.ContextSwitcherNavigationBar=Pe;exports.DEFAULT_HANZO_APPS=I;exports.DashboardNavigationBar=Be;exports.ECommerceNavigationBar=Ie;exports.HanzoCommandPalette=ue;exports.HanzoHeader=ce;exports.IconNavigationBar=Ue;exports.SearchAndToggleNavigationBar=$e;exports.SimpleNavigationBar=_e;exports.StatusDashboardNavigationBar=Ze;exports.TeamSwitcherNavigationBar=Ge;exports.TwoTierNavigationBar=We;exports.UnderlineNavigationBar=qe;exports.UserOrgDropdown=F;exports.useHanzoAuth=fe;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
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{
|
|
2
|
+
import {useState,useRef,useEffect,useCallback,useMemo}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var Je=Object.defineProperty;var e=(o,t)=>Je(o,"name",{value:t,configurable:true});function tt({x:o,y:t,onClose:n}){let r=useRef(null);useEffect(()=>{let i=e(d=>{r.current&&!r.current.contains(d.target)&&n();},"handler"),f=e(d=>{d.key==="Escape"&&n();},"escape");return document.addEventListener("mousedown",i),document.addEventListener("keydown",f),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",f);}},[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"}],a='<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:r,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:t,left:o},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(a).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(tt,"BrandContextMenu");function ae({size:o=22,className:t="",brandMenu:n=true,animate:r=true}){let[l,a]=useState(null),[i,f]=useState(false),d=useCallback(p=>{n&&(p.preventDefault(),a({x:p.clientX,y:p.clientY}));},[n]);return jsxs(Fragment,{children:[jsxs("svg",{width:o,height:o,viewBox:"0 0 67 67",xmlns:"http://www.w3.org/2000/svg","aria-label":"Hanzo",className:t,style:r?{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:()=>f(true),onMouseLeave:()=>f(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(tt,{x:l.x,y:l.y,onClose:()=>a(null)})]})}e(ae,"HanzoMark");var I=[{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://hanzo.chat",description:"AI chat & models"},{id:"platform",label:"Platform",href:"https://platform.hanzo.ai",description:"Deploy & scale services"},{id:"storage",label:"Storage",href:"https://hanzo.space",description:"S3 object storage"}],A={hanzo:{id:"hanzo",iam:"https://hanzo.id",billing:"https://billing.hanzo.ai",console:"https://console.hanzo.ai",chat:"https://hanzo.chat",platform:"https://platform.hanzo.ai",storage:"https://hanzo.space",s3:"https://s3.hanzo.ai"},lux:{id:"lux",iam:"https://lux.id",billing:"https://billing.lux.network",console:"https://console.lux.network",chat:"https://chat.lux.network",platform:"https://platform.lux.network",storage:"https://storage.lux.network",s3:"https://s3.lux.network"},zoo:{id:"zoo",iam:"https://zoo.id",billing:"https://billing.zoo.ngo",console:"https://console.zoo.ngo",chat:"https://chat.zoo.ngo",platform:"https://platform.zoo.ngo",storage:"https://storage.zoo.ngo",s3:"https://s3.zoo.ngo"},pars:{id:"pars",iam:"https://pars.id",billing:"https://billing.pars.ai",console:"https://console.pars.ai",chat:"https://chat.pars.ai",platform:"https://platform.pars.ai",storage:"https://storage.pars.ai",s3:"https://s3.pars.ai"}};function W(o){let t=A[o]||A.hanzo;return [{id:"account",label:"Account",href:`${t.iam}/account`,description:"Profile, orgs & referrals"},{id:"billing",label:"Billing",href:t.billing,description:"Subscriptions & usage"},{id:"console",label:"Console",href:t.console,description:"API keys & projects"},{id:"chat",label:"Chat",href:t.chat,description:"AI chat & models"},{id:"platform",label:"Platform",href:t.platform,description:"Deploy & scale services"},{id:"storage",label:"Storage",href:t.storage,description:"S3 object storage"}]}e(W,"getAppsForOrg");function _({apps:o=I,currentAppId:t}){let[n,r]=useState(false),l=useRef(null);return useEffect(()=>{let a=e(i=>{l.current&&!l.current.contains(i.target)&&r(false);},"handler");return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]),jsxs("div",{ref:l,className:"relative",children:[jsx("button",{type:"button",onClick:()=>r(a=>!a),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"}),o.filter(a=>a.id!==t).map(a=>jsxs("a",{href:a.href,className:"flex flex-col gap-0.5 rounded-lg px-3 py-2.5 hover:bg-white/[0.06] transition-colors",onClick:()=>r(false),children:[jsx("span",{className:"text-[13px] font-medium text-white/80",children:a.label}),a.description&&jsx("span",{className:"text-[11px] text-white/30",children:a.description})]},a.id))]})]})}e(_,"AppSwitcher");var st=["#0A0310","#49007E","#FF005B","#FF7D10","#FFB238"];function it(o){let t=0;for(let n=0;n<o.length;n++)t=(t<<5)-t+o.charCodeAt(n)|0;return Math.abs(t)}e(it,"hashStr");function M(o,t,n){return o%(t*(n+1))%t}e(M,"getUnit");function lt(o,t){return M(o,2,t)===0}e(lt,"getBoolean");function re(o,t,n){return n[M(o,n.length,t)]}e(re,"getRandomColor");function ct(o){let t=parseInt(o.slice(1,3),16),n=parseInt(o.slice(3,5),16),r=parseInt(o.slice(5,7),16);return t*.299+n*.587+r*.114>128?"#000":"#fff"}e(ct,"getContrast");function se({name:o,size:t=40,colors:n=st,className:r,square:l=false}){let a=it(o),i=re(a,0,n),f=ct(i),d=lt(a,2),m=M(a,3,7),p=M(a,5,8),c=M(a,10,9),h=c>6?c-10:c,g=M(a,5,10)>3?M(a,5,10)-5:M(a,5,10);return jsxs("svg",{viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:r,style:l?void 0:{borderRadius:"50%"},children:[jsx("mask",{id:`beam-${a}`,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-${a})`,children:[jsx("rect",{width:36,height:36,fill:i}),jsx("rect",{x:0,y:0,width:36,height:36,transform:`translate(${h} ${g}) rotate(${c} 18 18)`,fill:re(a,1,n),rx:6}),jsxs("g",{transform:`translate(${h} ${g}) rotate(${c} 18 18)`,children:[d?jsx("path",{d:`M15 ${19+m}c2 1 4 1 6 0`,stroke:f,fill:"none",strokeLinecap:"round"}):jsx("path",{d:`M13 ${19+m}a1 .75 0 0 0 10 0`,fill:f}),jsx("rect",{x:14-p,y:14,width:1.5,height:2,rx:1,fill:f}),jsx("rect",{x:20+p,y:14,width:1.5,height:2,rx:1,fill:f})]})]})]})}e(se,"BeamAvatar");async function dt(o){let n=new TextEncoder().encode(o),r=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(r)).map(l=>l.toString(16).padStart(2,"0")).join("")}e(dt,"sha256");function ft(o,t){let[n,r]=useState(null);return useMemo(()=>{if(!o){r(null);return}let l=o.trim().toLowerCase();dt(l).then(a=>{r(`https://www.gravatar.com/avatar/${a}?s=${t||80}&d=404`);});},[o,t]),n}e(ft,"useGravatarUrl");function ie({src:o,email:t,name:n,size:r=40,colors:l,className:a}){let[i,f]=useState(false),[d,m]=useState(false),p=ft(t,r*2),c=`rounded-full object-cover ${a||""}`,h={width:r,height:r};return o&&!i?jsx("img",{src:o,alt:n||t||"avatar",className:c,style:h,onError:()=>f(true)}):p&&!d?jsx("img",{src:p,alt:n||t||"avatar",className:c,style:h,onError:()=>m(true)}):jsx(se,{name:n||t||"user",size:r,colors:l,className:a})}e(ie,"UserAvatar");function F({user:o,organizations:t=[],currentOrgId:n,onOrgSwitch:r,onSignOut:l}){let[a,i]=useState(false),f=useRef(null);if(useEffect(()=>{let c=e(h=>{f.current&&!f.current.contains(h.target)&&i(false);},"handler");return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),!o)return null;let d=t.find(c=>c.id===n),m=d?.slug||"hanzo",p=A[m]||A.hanzo;return jsxs("div",{ref:f,className:"relative",children:[jsxs("button",{type:"button",onClick:()=>i(c=>!c),className:"flex items-center gap-2 rounded-lg px-2 py-1.5 hover:bg-white/[0.06] transition-colors",children:[jsx(ie,{src:o.avatar,email:o.email,name:o.name,size:28}),jsxs("div",{className:"hidden flex-col items-start sm:flex",children:[o.name&&jsx("span",{className:"text-[12px] font-medium text-white/70 leading-none",children:o.name}),jsx("span",{className:"text-[11px] text-white/30 leading-none mt-0.5",children:o.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"})})]}),a&&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:o.name||"User"}),jsx("p",{className:"text-[11px] text-white/40",children:o.email}),d&&jsx("p",{className:"mt-0.5 text-[10px] font-medium text-white/25 uppercase tracking-wider",children:d.name})]}),t.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"}),t.map(c=>jsxs("button",{type:"button",onClick:()=>{r?.(c.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:[jsxs("div",{className:"flex flex-col",children:[jsx("span",{className:"text-[13px] text-white/70",children:c.name}),c.role&&jsx("span",{className:"text-[10px] text-white/25 capitalize",children:c.role})]}),c.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"})})]},c.id))]}),jsxs("div",{className:"p-2",children:[jsx("a",{href:`${p.iam}/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:p.billing,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(F,"UserOrgDropdown");function xt({className:o}){return jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:o,children:[jsx("path",{d:"M21 2v6h-6"}),jsx("path",{d:"M3 12a9 9 0 0 1 15-6.7L21 8"}),jsx("path",{d:"M3 22v-6h6"}),jsx("path",{d:"M21 12a9 9 0 0 1-15 6.7L3 16"})]})}e(xt,"HardRefreshIcon");function vt({className:o}){return jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:o,children:[jsx("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),jsx("circle",{cx:"12",cy:"12",r:"3"})]})}e(vt,"SettingsIcon");async function wt(){try{if(localStorage.clear(),sessionStorage.clear(),document.cookie.split(";").forEach(o=>{let t=o.split("=")[0].trim();if(t){document.cookie=`${t}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`,document.cookie=`${t}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${location.hostname}`;let n=location.hostname.split(".");if(n.length>2){let r="."+n.slice(-2).join(".");document.cookie=`${t}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${r}`;}}}),"caches"in window){let o=await caches.keys();await Promise.all(o.map(t=>caches.delete(t)));}if("serviceWorker"in navigator){let o=await navigator.serviceWorker.getRegistrations();await Promise.all(o.map(t=>t.unregister()));}if("indexedDB"in window&&indexedDB.databases)try{(await indexedDB.databases()).forEach(t=>{t.name&&indexedDB.deleteDatabase(t.name);});}catch{}}catch{}location.reload();}e(wt,"hardRefresh");function ce({currentApp:o,currentAppId:t,user:n,organizations:r,currentOrgId:l,onOrgSwitch:a,onSignOut:i,apps:f,headerRight:d,settingsHref:m,onSettingsClick:p,hideHardRefresh:c,hideSettings:h}){let[g,P]=useState(false),L=r?.find(N=>N.id===l)?.slug||"hanzo",u=f||W(L),H=A[L]||A.hanzo,$=useCallback(()=>{P(true),wt();},[]),y=useCallback(()=>{p?p():window.location.href=m||`${H.iam}/account`;},[p,m,H.iam]);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:`${H.iam}/account`,className:"flex-shrink-0 rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Account",children:jsx(ae,{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:o}),jsx(_,{apps:u,currentAppId:t})]}),jsxs("div",{className:"flex flex-shrink-0 items-center gap-1",children:[d,!c&&jsx("button",{type:"button",onClick:$,className:"flex items-center justify-center rounded-lg p-2 text-white/30 hover:bg-white/[0.06] hover:text-white/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Hard refresh \u2014 clear all storage, cookies, cache and reload",title:"Hard refresh",children:jsx(xt,{className:g?"animate-spin":""})}),!h&&jsx("button",{type:"button",onClick:y,className:"flex items-center justify-center rounded-lg p-2 text-white/30 hover:bg-white/[0.06] hover:text-white/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20","aria-label":"Settings",title:"Settings",children:jsx(vt,{})}),jsx(F,{user:n,organizations:r,currentOrgId:l,onOrgSwitch:a,onSignOut:i})]})]})}e(ce,"HanzoHeader");var pe="hanzo-auth-token",Q="hanzo-user",de="hanzo-auth-expires",yt="https://iam.hanzo.ai",Nt={hanzo:{name:"Hanzo AI",slug:"hanzo"},lux:{name:"Lux Network",slug:"lux"},zoo:{name:"Zoo Labs",slug:"zoo"},pars:{name:"Pars",slug:"pars"}};function fe(){let[o,t]=useState(void 0),[n,r]=useState([]),[l,a]=useState(void 0),[i,f]=useState(null),[d,m]=useState(true),p=useCallback(async()=>{try{let g=localStorage.getItem(pe),P=localStorage.getItem(de);if(!g||P&&Date.now()>Number(P)){m(!1);return}f(g);let B=localStorage.getItem(Q);if(B)try{let u=JSON.parse(B);u?.email&&t({id:u.id,name:u.displayName||u.name,email:u.email,avatar:u.avatar});}catch{}let L=await fetch(`${yt}/api/userinfo`,{headers:{Authorization:`Bearer ${g}`}});if(L.ok){let u=await L.json(),H={id:u.sub||u.id,name:u.name||u.displayName,email:u.email,avatar:u.picture||u.avatar};t(H),localStorage.setItem(Q,JSON.stringify(u));let y=(u.groups||[]).map(N=>{let E=N.toLowerCase().replace(/^\//,""),R=Nt[E];return R?{id:E,name:R.name,slug:R.slug}:null}).filter(Boolean);y.length===0&&H.email&&y.push({id:"personal",name:"Personal",slug:"personal"}),r(y),a(y[0]?.id);}}catch{}finally{m(false);}},[]);useEffect(()=>{p();},[p]);let c=useCallback(()=>{localStorage.removeItem(pe),localStorage.removeItem(Q),localStorage.removeItem(de),window.location.href="https://hanzo.id";},[]),h=useCallback(g=>{a(g);},[]);return {user:o,organizations:n,currentOrgId:l,token:i,loading:d,signOut:c,switchOrg:h}}e(fe,"useHanzoAuth");function zt(o,t){return o.filter(n=>n.id!==t).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(zt,"buildCrossAppCommands");function ue({commands:o=[],apps:t,currentAppId:n,open:r,onOpenChange:l,onNavigate:a}){var oe;let[i,f]=useState(false),d=r??i,m=useCallback(s=>{l?l(s):f(s);},[l]),[p,c]=useState(""),[h,g]=useState(0),P=useRef(null),B=useRef(null),L=zt(t??I,n),u=[...o,...L],H=p.toLowerCase(),$=H?u.filter(s=>s.title.toLowerCase().includes(H)||s.description?.toLowerCase().includes(H)||s.keywords?.some(z=>z.includes(H))):u,y={};for(let s of $)(y[oe=s.category]??(y[oe]=[])).push(s);let N=Object.values(y).flat();useEffect(()=>g(0),[p]),useEffect(()=>{d&&(c(""),g(0),requestAnimationFrame(()=>P.current?.focus()));},[d]),useEffect(()=>{let s=e(z=>{(z.metaKey||z.ctrlKey)&&z.key==="k"&&(z.preventDefault(),m(!d));},"handler");return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[d,m]);let E=useCallback(s=>{s.action?s.action():s.href&&(a?a(s.href,s.external):s.external?window.open(s.href,"_blank"):window.location.href=s.href),m(false);},[a,m]),R=useCallback(s=>{s.key==="ArrowDown"?(s.preventDefault(),g(z=>(z+1)%(N.length||1))):s.key==="ArrowUp"?(s.preventDefault(),g(z=>(z-1+(N.length||1))%(N.length||1))):s.key==="Enter"&&N[h]?(s.preventDefault(),E(N[h])):s.key==="Escape"&&m(false);},[N,h,E,m]);return useEffect(()=>{B.current?.querySelector(`[data-idx="${h}"]`)?.scrollIntoView({block:"nearest"});},[h]),d?jsxs(Fragment,{children:[jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[100]",onClick:()=>m(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:P,type:"text",value:p,onChange:s=>c(s.target.value),onKeyDown:R,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:B,className:"max-h-[400px] overflow-y-auto py-1",children:N.length===0?jsxs("div",{className:"px-4 py-8 text-center text-white/30 text-[13px]",children:["No results for \u201C",p,"\u201D"]}):Object.entries(y).map(([s,z])=>jsxs("div",{children:[jsx("div",{className:"px-4 py-2 text-[10px] font-semibold text-white/25 uppercase tracking-widest",children:s}),z.map(O=>{let j=N.indexOf(O),G=j===h;return jsxs("button",{"data-idx":j,onClick:()=>E(O),onMouseEnter:()=>g(j),className:`w-full flex items-center gap-3 px-4 py-2 text-left transition-colors ${G?"bg-white/[0.06] text-white":"text-white/50 hover:bg-white/[0.03]"}`,children:[O.icon&&jsx("span",{className:`w-5 h-5 flex items-center justify-center ${G?"text-white/70":"text-white/25"}`,children:O.icon}),jsxs("div",{className:"flex-1 min-w-0",children:[jsx("span",{className:"text-[13px] font-medium truncate block",children:O.title}),O.description&&jsx("span",{className:"text-[11px] text-white/25 truncate block",children:O.description})]}),G&&jsx("span",{className:"text-white/25 text-[11px]",children:"\u21B5"})]},O.id)})]},s))}),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(ue,"HanzoCommandPalette");function ge(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(ge,"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 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 Ne(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ne,"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 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 Se(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Se,"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 Pe(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Pe,"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 Ie(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ie,"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 $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 _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 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 Ge(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(Ge,"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 qe(){return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-muted-foreground",children:"Component coming soon"})})}e(qe,"Component");
|
|
3
|
+
export{ve as AIModelSelectorNavigationBar,ge as AdvancedNavigationBar,_ as AppSwitcher,be as AppSwitcherNavigationBar,Ne as BreadcrumbAndFiltersNavigationBar,ke as BreadcrumbNavigationBar,Ce as CenteredLogoNavigationBar,Se as CollaborationNavigationBar,De as CommunicationNavigationBar,Pe as ContextSwitcherNavigationBar,I as DEFAULT_HANZO_APPS,Be as DashboardNavigationBar,Ie as ECommerceNavigationBar,ue as HanzoCommandPalette,ce as HanzoHeader,Ue as IconNavigationBar,$e as SearchAndToggleNavigationBar,_e as SimpleNavigationBar,Ze as StatusDashboardNavigationBar,Ge as TeamSwitcherNavigationBar,We as TwoTierNavigationBar,qe as UnderlineNavigationBar,F as UserOrgDropdown,fe as useHanzoAuth};
|
package/dist/tailwind/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import preset from './tailwind.config.hanzo-preset';
|
|
2
|
-
export { preset };
|
|
1
|
+
'use strict';var G=require('tailwindcss-animate'),Q=require('@tailwindcss/container-queries'),V=require('tailwindcss-interaction-media'),j=require('tailwindcss/plugin'),P=require('lodash.merge'),I=require('lodash.castarray');require('lodash.isplainobject');var D=require('postcss-selector-parser');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var G__default=/*#__PURE__*/_interopDefault(G);var Q__default=/*#__PURE__*/_interopDefault(Q);var V__default=/*#__PURE__*/_interopDefault(V);var j__default=/*#__PURE__*/_interopDefault(j);var P__default=/*#__PURE__*/_interopDefault(P);var I__default=/*#__PURE__*/_interopDefault(I);var D__default=/*#__PURE__*/_interopDefault(D);var B=Object.defineProperty;var e=(t,n)=>B(t,"name",{value:n,configurable:true});var y=e(({colors:t})=>({inherit:t.inherit,current:t.current,transparent:t.transparent,ring:"var(--hz-ui-ring)",background:"var(--hz-ui-bg-0)",overlay:"var(--hz-ui-bg-overlay)",level:{DEFAULT:"var(--hz-ui-bg-0)",0:"var(--hz-ui-bg-0)",1:"var(--hz-ui-bg-1)",2:"var(--hz-ui-bg-2)",3:"var(--hz-ui-bg-3)"},accent:"var(--hz-ui-fg-0)",foreground:"var(--hz-ui-fg-body)",muted:{DEFAULT:"var(--hz-ui-fg-2)",1:"var(--hz-ui-fg-2)",2:"var(--hz-ui-fg-3)",3:"var(--hz-ui-fg-4)",4:"var(--hz-ui-fg-5)"},primary:{DEFAULT:"var(--hz-ui-primary)",lux:"var(--hz-ui-primary)",hover:"var(--hz-ui-primary-hover)",fg:"var(--hz-ui-primary-fg)"},secondary:{DEFAULT:"var(--hz-ui-secondary)",lux:"var(--hz-ui-secondary)",hover:"var(--hz-ui-secondary-hover)",fg:"var(--hz-ui-secondary-fg)",0:"var(--hz-ui-secondary-0)",1:"var(--hz-ui-secondary-1)",2:"var(--hz-ui-secondary-2)",3:"var(--hz-ui-secondary-3)"},destructive:{DEFAULT:"var(--hz-ui-destructive)",fg:"var(--hz-ui-destructive-fg)"},nav:{DEFAULT:"var(--hz-ui-nav)",hover:"var(--hz-ui-nav-hover)",current:"var(--hz-ui-nav-current)"}}),"default");var v=["font-sans",{pattern:/grid-cols-[1-6]/,variants:["xs","sm","md","lg","xl","2xl"]},{pattern:/h-([0-9]|[1-3][0-9]|40)/,variants:["xs","sm","md","lg","xl","2xl"]},{pattern:/order-[0-6]/},{pattern:/mb-([1-9]|1[0-2])/},"md:text-left","md:text-center","md:text-right","md:self-start","md:self-center","md:self-end"];var w={xs:"0px",sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1500px"};var z={};for(let t=0;t<=100;t++)z[`pr-${t}`]=`${t}%`;var l={...z,px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",13:"3.25rem",14:"3.5rem",15:"3.75rem",16:"4rem",17:"4.25rem",18:"4.5rem",19:"4.75rem",20:"5rem",21:"5.25rem",22:"5.5rem",23:"5.75rem",24:"6rem",25:"5.25rem",26:"5.5rem",27:"5.75rem",28:"7rem",29:"7.25rem",30:"7.5rem",31:"7.75rem",32:"8rem",33:"8.25rem",34:"8.5rem",35:"8.75rem",36:"9rem",37:"9.25rem",38:"9.5rem",39:"9.75rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"};var T={xxs:["0.65rem",{lineHeight:"0.8rem"}],xs:["0.8rem",{lineHeight:"1rem"}],sm:["0.9rem",{lineHeight:"1.2rem"}],base:["1rem",{lineHeight:1.4}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}]};var k={sans:["sans-serif"],heading:["serif"],nav:["serif"],serif:["serif"],mono:["monospace"]};var S={auto:"auto",unset:"unset","below-content-3":"-3","below-content-2":"-2","below-content-1":"-1","below-content":"-1",content:"0","above-content":"1","above-content-1":"1","above-content-2":"2","above-content-3":"3","below-popup-3":"7","below-popup-2":"8","below-popup-1":"9","below-popup":"9",popup:"10","above-popup":"11","above-popup-1":"11","above-popup-2":"12","above-popup-3":"13","below-header-3":"17","below-header-2":"18","below-header-1":"19","below-header":"19",header:"20","above-header":"21","above-header-1":"21","above-header-2":"22","above-header-3":"23","below-modal-3":"27","below-modal-2":"28","below-modal-1":"29","below-modal":"29",modal:"30","above-modal":"31","above-modal-1":"31","above-modal-2":"32","above-modal-3":"33","below-floating-3":"37","below-floating-2":"38","below-floating-1":"39","below-floating":"39",floating:"40","above-floating":"41","above-floating-1":"41","above-floating-2":"42","above-floating-3":"43"};for(let t=0;t<=50;t++)S[`${t}`]=`${t}`;var A=S;function h(t){return Math.round(t*100)/100}e(h,"round");function o(t,n=16){return `${t/n}rem`}e(o,"pxToRem");function r(t,n=16){return `${t/n}em`}e(r,"pxToEm");var q={"--tw-typo-plugin-body":"var(--hz-ui-fg-body)","--tw-typo-plugin-headings":"var(--hz-ui-fg-0)","--tw-typo-plugin-links":"var(--hz-ui-fg-0)","--tw-typo-plugin-links-hover":"var(--hz-ui-fg-2)","--tw-typo-plugin-bold":"var(--hz-ui-fg-0)","--tw-typo-plugin-counters":"var(--hz-ui-fg-4)","--tw-typo-plugin-bullets":"var(--hz-ui-fg-2)","--tw-typo-plugin-hr":"var(--hz-ui-fg-2)","--tw-typo-plugin-quotes":"var(--hz-ui-fg-body)","--tw-typo-plugin-quote-borders":"var(--hz-ui-fg-3)","--tw-typo-plugin-captions":"var(--hz-ui-fg-2)","--tw-typo-plugin-kbd":"var(--hz-ui-fg-0)","--tw-typo-plugin-kbd-shadows":"var(--hz-ui-fg-1)","--tw-typo-plugin-code":"var(--hz-ui-fg-0)","--tw-typo-plugin-pre-code":"var(--hz-ui-fg-1)","--tw-typo-plugin-pre-bg":"var(--hz-ui-bg-1)","--tw-typo-plugin-th-borders":"var(--hz-ui-fg-2)","--tw-typo-plugin-td-borders":"var(--hz-ui-fg-3)"},$={color:"var(--tw-typo-plugin-body)",p:{textAlign:"inherit"},"p:first-child":{},"p:last-child":{},a:{color:"var(--tw-typo-plugin-links)",textDecoration:"underline",fontWeight:"400"},"a:hover":{color:"var(--tw-typo-plugin-links-hover)"},blockquote:{fontWeight:"400",fontStyle:"italic",color:"var(--tw-typo-plugin-quotes)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},"blockquote strong":{color:"inherit"},cite:{display:"block",fontStyle:"normal",textAlign:"right",color:"var(--tw-typo-plugin-quotes)"},ol:{listStyleType:"decimal"},ul:{},"ol > li::marker":{fontWeight:"400",color:"var(--tw-typo-plugin-counters)"},"ul > li::marker":{color:"var(--tw-typo-plugin-bullets)"},"ul > li::before":{},hr:{borderColor:"var(--tw-typo-plugin-hr)",borderTopWidth:1},h1:{color:"var(--tw-typo-plugin-headings)",fontWeight:"800",textAlign:"inherit",textTransform:"uppercase"},h2:{color:"var(--tw-typo-plugin-headings)",fontWeight:"700",textAlign:"inherit",textTransform:"uppercase"},h3:{color:"var(--tw-typo-plugin-headings)",fontWeight:"600",textAlign:"inherit",textTransform:"uppercase"},h4:{color:"var(--tw-typo-plugin-headings)",fontWeight:"600",textAlign:"inherit"},h5:{color:"var(--tw-typo-plugin-headings)",fontWeight:"600",textAlign:"inherit"},h6:{color:"var(--tw-typo-plugin-headings)",textAlign:"inherit"},img:{},"img:first-child":{},"img:last-child":{},picture:{display:"block"},strong:{color:"var(--tw-typo-plugin-bold)",fontWeight:"600"},video:{},kbd:{fontWeight:"500",fontFamily:"inherit",color:"var(--tw-typo-plugin-kbd)",boxShadow:"0 0 0 1px rgb(var(--tw-typo-plugin-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-typo-plugin-kbd-shadows) / 10%)"},code:{color:"var(--tw-typo-plugin-code)",fontWeight:"500"},"code::before":{content:'"`"'},"code::after":{content:'"`"'},"a code":{color:"inherit"},"h1 code":{color:"inherit"},"h2 code":{color:"inherit"},"h3 code":{color:"inherit"},"h4 code":{color:"inherit"},"h5 code":{color:"inherit"},"h6 code":{color:"inherit"},"blockquote code":{color:"inherit"},"thead th code":{color:"inherit"},pre:{color:"var(--tw-typo-plugin-pre-code)",backgroundColor:"var(--tw-typo-plugin-pre-bg)",overflowX:"auto",fontWeight:"400"},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"left"},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-typo-plugin-th-borders)"},"thead th":{color:"var(--tw-typo-plugin-headings)",fontWeight:"600",verticalAlign:"bottom"},"tbody tr":{},"tbody tr:last-child":{},"tbody td":{verticalAlign:"baseline"},tfoot:{borderTopWidth:"1px",borderTopColor:"var(--tw-typo-plugin-th-borders)"},"tfoot td":{verticalAlign:"top"}},u=e(t=>({base:{css:[{fontSize:"1rem",lineHeight:1.4,p:{marginTop:"0.33rem",marginBottom:"0.33rem"},"p:first-child":{marginTop:0},"p:last-child":{marginBottom:0},a:{},"a:hover":{},blockquote:{},"blockquote p:first-of-type::before":{},"blockquote p:last-of-type::after":{},cite:{},ol:{fontSize:"1rem",paddingLeft:"1.5rem",margin:0,marginLeft:"-5px"},ul:{fontSize:"1rem",paddingLeft:"1.5rem",margin:0,marginLeft:"-0.6rem",listStylePosition:"outside",listStyleType:"'\u25BC'"},li:{},"ol > li":{paddingLeft:"0.4rem"},"ul > li":{paddingLeft:"0.75rem",marginBottom:"0.75rem"},"ul > li:last-child":{marginBottom:0},"> ul > li p":{margin:0,display:"inline"},hr:{},h1:{fontSize:o(40,t),lineHeight:1.2},h2:{fontSize:o(36,t),lineHeight:1.2},h3:{fontSize:"1.4rem",lineHeight:1.2},h4:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"1.3rem",lineHeight:1.2},h5:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"1.2rem",lineHeight:1.4},h6:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"1.15rem",lineHeight:1.3},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},img:{marginTop:"0.5rem",marginBottom:"0.5rem"},"img:first-child":{marginTop:0},"img:last-child":{marginBottom:0},picture:{marginTop:o(20,t),marginBottom:o(20,t)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:o(20,t),marginBottom:o(20,t)},kbd:{fontSize:r(14,16),borderRadius:o(5,t),paddingTop:r(3,16),paddingRight:r(6,16),paddingBottom:r(3,16),paddingLeft:r(6,16)},code:{fontSize:r(14,16)},"h2 code":{fontSize:r(21,24)},"h3 code":{fontSize:r(18,20)},pre:{fontSize:o(14,16),lineHeight:h(24/14),marginTop:r(24,14),marginBottom:r(24,14),borderRadius:o(6,t),paddingTop:r(12,14),paddingRight:r(16,14),paddingBottom:r(12,14),paddingLeft:r(16,14)},"ul ul, ul ol, ol ul, ol ol":{marginTop:o(12,t),marginBottom:o(12,t)},dl:{marginTop:r(20,16),marginBottom:r(20,t)},dt:{marginTop:r(20,t)},dd:{marginTop:r(8,t),paddingLeft:r(26,t)},table:{fontSize:r(14,t),lineHeight:h(24/14)},"thead th":{paddingRight:r(8,14),paddingBottom:r(8,14),paddingLeft:r(8,14)},"thead th:first-child":{paddingLeft:"0"},"thead th:last-child":{paddingRight:"0"},"tbody td, tfoot td":{paddingTop:r(8,14),paddingRight:r(8,14),paddingBottom:r(8,14),paddingLeft:r(8,14)},"tbody td:first-child, tfoot td:first-child":{paddingLeft:"0"},"tbody td:last-child, tfoot td:last-child":{paddingRight:"0"}}]},sm:{css:[{p:{},"p:first-child":{},"p:last-child":{},a:{},"a:hover":{},blockquote:{},"blockquote p:first-of-type::before":{},"blockquote p:last-of-type::after":{},cite:{},ol:{},ul:{},li:{},"ol > li":{},"ul > li":{},"ul > li:last-child":{},"> ul > li p":{},hr:{},h1:{fontSize:o(24,t)},h2:{fontSize:o(20,t)},h3:{fontSize:r(18,t)},h4:{},h5:{},h6:{},"hr + *":{},"h2 + *":{},"h3 + *":{},"h4 + *":{},img:{},"img:first-child":{},"img:last-child":{},picture:{},"picture > img":{},video:{},kbd:{},code:{},"h2 code":{},"h3 code":{},pre:{},"ul ul, ul ol, ol ul, ol ol":{},dl:{},dt:{},dd:{},table:{},"thead th":{},"thead th:first-child":{},"thead th:last-child":{},"tbody td, tfoot td":{},"tbody td:first-child, tfoot td:first-child":{},"tbody td:last-child, tfoot td:last-child":{}}]},lg:{css:[{p:{},"p:first-child":{},"p:last-child":{},a:{},"a:hover":{},blockquote:{},"blockquote p:first-of-type::before":{},"blockquote p:last-of-type::after":{},cite:{},ol:{},ul:{},li:{},"ol > li":{},"ul > li":{},"ul > li:last-child":{},"> ul > li p":{},hr:{},h1:{fontSize:o(45,t),lineHeight:1.1},h2:{fontSize:o(40,t),lineHeight:1.1},h3:{fontSize:o(32,t),lineHeight:1.1},h4:{fontSize:o(26,t),marginTop:o(13,t),marginBottom:o(13,t)},h5:{fontSize:o(22,t),marginTop:o(11,t),marginBottom:o(11,t)},h6:{},"hr + *":{},"h2 + *":{},"h3 + *":{},"h4 + *":{},img:{},"img:first-child":{},"img:last-child":{},picture:{},"picture > img":{},video:{},kbd:{},code:{},"h2 code":{},"h3 code":{},pre:{},"ul ul, ul ol, ol ul, ol ol":{},dl:{},dt:{},dd:{},table:{},"thead th":{},"thead th:first-child":{},"thead th:last-child":{},"tbody td, tfoot td":{},"tbody td:first-child, tfoot td:first-child":{},"tbody td:last-child, tfoot td:last-child":{}}]},xl:{css:[{p:{},"p:first-child":{},"p:last-child":{},a:{},"a:hover":{},blockquote:{},"blockquote p:first-of-type::before":{},"blockquote p:last-of-type::after":{},cite:{},ol:{},ul:{},li:{},"ol > li":{},"ul > li":{},"ul > li:last-child":{},"> ul > li p":{},hr:{},h1:{fontSize:o(52,t),lineHeight:1.1},h2:{fontSize:o(45,t),lineHeight:1.1},h3:{fontSize:o(40,t),lineHeight:1.1},h4:{fontSize:o(28,t),marginTop:o(13,t),marginBottom:o(13,t)},h5:{fontSize:o(22,t),marginTop:o(11,t),marginBottom:o(11,t)},h6:{},"hr + *":{},"h2 + *":{},"h3 + *":{},"h4 + *":{},img:{},"img:first-child":{},"img:last-child":{},picture:{},"picture > img":{},video:{},kbd:{},code:{},"h2 code":{},"h3 code":{},pre:{},"ul ul, ul ol, ol ul, ol ol":{},dl:{},dt:{},dd:{},table:{},"thead th":{},"thead th:first-child":{},"thead th:last-child":{},"tbody td, tfoot td":{},"tbody td:first-child, tfoot td:first-child":{},"tbody td:last-child, tfoot td:last-child":{}}]}}),"defaultModifiers"),R=e(t=>({DEFAULT:{css:[$,q,...u(t).base.css]},sm:u(t).sm,lg:u(t).lg,xl:u(t).xl}),"getStyles"),L=R;var O=D__default.default();function C(t){let n=O.astSync(t),m=[];for(let[p,d]of n.nodes.entries())for(let[i,a]of [...d.nodes].reverse().entries()){if(a.type!=="pseudo"||!a.value.startsWith("::"))break;m[i]=m[i]||[],m[i][p]=a;}let s=D__default.default.selector();for(let p of m){if(!p)continue;if(new Set([...p.map(i=>i.value)]).size>1)break;p.forEach(i=>i.remove()),s.prepend(p[0]);}return s.nodes.length?[s.toString(),n.toString()]:[null,t]}e(C,"commonTrailingPseudos");var E=16,F={};function f(t,{className:n,modifier:m,prefix:s}){let p=s(`.not-${n}`).slice(1),d=t.startsWith(">")?`${m==="DEFAULT"?`.${n}`:`.${n}-${m}`} `:"",[i,a]=C(t);return i?`:where(${d}${a}):not(:where([class~="${p}"],[class~="${p}"] *))${i}`:`:where(${d}${t}):not(:where([class~="${p}"],[class~="${p}"] *))`}e(f,"inWhere");function H(t){return typeof t=="object"&&t!==null}e(H,"isObject");function M(t={},{target:n,className:m,modifier:s,prefix:p}){function d(i,a){return n==="legacy"?[i,a]:Array.isArray(a)?[i,a]:H(a)?Object.values(a).some(H)?[f(i,{className:m,modifier:s,prefix:p}),a,Object.fromEntries(Object.entries(a).map(([c,g])=>d(c,g)))]:[f(i,{className:m,modifier:s,prefix:p}),a]:[i,a]}return e(d,"updateSelector"),Object.fromEntries(Object.entries(P__default.default({},...Object.keys(t).filter(i=>F[i]).map(i=>F[i](t[i])),...I__default.default(t.css||{}))).map(([i,a])=>d(i,a)))}e(M,"configToCss");var W=j__default.default.withOptions(({className:t="prose",target:n="modern",base:m=16}={})=>(E=m,function({addVariant:s,addComponents:p,theme:d,prefix:i}){let a=d("typography"),x={className:t,prefix:i};for(let[c,...g]of [["headings","h1","h2","h3"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"]]){g=g.length===0?[c]:g;let b=n==="legacy"?g.map(U=>`& ${U}`):g.join(", ");s(`${t}-${c}`,n==="legacy"?b:`& :is(${f(b,x)})`);}p(Object.keys(a).map(c=>({[c==="DEFAULT"?`.${t}`:`.${t}-${c}`]:M(a[c],{target:n,className:t,modifier:c,prefix:i})})));}),()=>({theme:{typography:L(E)}}));var X={darkMode:["class"],content:[],safelist:v,plugins:[G__default.default,W({className:"typography",base:16}),Q__default.default,V__default.default],theme:{accentColor:e(({theme:t})=>({...t("colors"),auto:"auto"}),"accentColor"),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s linear(0, 1) infinite",pulsereverse:"pulse 2s linear(1, 0) infinite",bounce:"bounce 1s infinite","accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out","mobile-menu-open":"opacity-in 300ms ease-in"},aria:{checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:e(({theme:t})=>t("blur"),"backdropBlur"),backdropBrightness:e(({theme:t})=>t("brightness"),"backdropBrightness"),backdropContrast:e(({theme:t})=>t("contrast"),"backdropContrast"),backdropGrayscale:e(({theme:t})=>t("grayscale"),"backdropGrayscale"),backdropHueRotate:e(({theme:t})=>t("hueRotate"),"backdropHueRotate"),backdropInvert:e(({theme:t})=>t("invert"),"backdropInvert"),backdropOpacity:e(({theme:t})=>t("opacity"),"backdropOpacity"),backdropSaturate:e(({theme:t})=>t("saturate"),"backdropSaturate"),backdropSepia:e(({theme:t})=>t("sepia"),"backdropSepia"),backgroundColor:e(({theme:t})=>t("colors"),"backgroundColor"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:e(({theme:t})=>t("opacity"),"backgroundOpacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:e(({theme:t})=>({...t("colors"),DEFAULT:t("colors.muted.3")}),"borderColor"),borderOpacity:e(({theme:t})=>t("opacity"),"borderOpacity"),borderRadius:{none:"0px",sm:"0.25rem",DEFAULT:"0.5rem",md:"0.5rem",lg:"0.75rem",xl:"1rem","2xl":"1.5rem","3xl":"2rem",full:"9999px"},borderSpacing:l,borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:e(({theme:t})=>t("colors"),"boxShadowColor"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:e(({theme:t})=>t("colors"),"caretColor"),colors:y,columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{center:true,padding:"2rem"},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:e(({theme:t})=>t("borderColor"),"divideColor"),divideOpacity:e(({theme:t})=>t("borderOpacity"),"divideOpacity"),divideWidth:e(({theme:t})=>t("borderWidth"),"divideWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:e(({theme:t})=>({none:"none",...t("colors")}),"fill"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:{auto:"auto",...l,"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"},flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:k,fontSize:T,fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:l,gradientColorStops:e(({theme:t})=>t("colors"),"gradientColorStops"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:{auto:"auto",...l,"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:{auto:"auto",...l,"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"},invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"accordion-down":{from:{height:0},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:0}},"opacity-in":{from:{opacity:"0"},to:{opacity:"1"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:{auto:"auto",...l},lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:{...l,none:"none",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},maxWidth:e(({theme:t,breakpoints:n})=>({...l,none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...n(t("screens"))}),"maxWidth"),minHeight:{...l,0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:e(({theme:t,breakpoints:n})=>({...l,0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...n(t("screens"))}),"minWidth"),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:e(({theme:t})=>t("colors"),"outlineColor"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:l,placeholderColor:e(({theme:t})=>t("colors"),"placeholderColor"),placeholderOpacity:e(({theme:t})=>t("opacity"),"placeholderOpacity"),ringColor:e(({theme:t})=>({DEFAULT:t("colors.blue.500","#3b82f6"),...t("colors")}),"ringColor"),ringOffsetColor:e(({theme:t})=>t("colors"),"ringOffsetColor"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:e(({theme:t})=>({DEFAULT:"0.5",...t("opacity")}),"ringOpacity"),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:w,scrollMargin:l,scrollPadding:l,sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:l,spacing:l,stroke:e(({theme:t})=>({none:"none",...t("colors")}),"stroke"),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{on:'state~="on"',off:'state~="off"'},textColor:e(({theme:t})=>t("colors"),"textColor"),textDecorationColor:e(({theme:t})=>t("colors"),"textDecorationColor"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:l,textOpacity:e(({theme:t})=>t("opacity"),"textOpacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform",height:"height",spacing:"margin, padding"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:{...l,"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"},width:e(({theme:t,breakpoints:n})=>({auto:"auto",...l,"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content",...n(t("screens"))}),"width"),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:A}};exports.preset=X;
|
package/dist/types/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { COMMON_GRID_1_COL, COMMON_GRID_2_COL, COMMON_GRID_3_COL, COMMON_GRID_4_COL } from './grid-def';
|
|
1
|
+
'use strict';var e={xs:"0px",sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1500px"};var o=Object.keys(e);var t={at:{xs:{columns:1,gap:2},md:{columns:1,gap:3},lg:{columns:1,gap:6}},mobile:{columns:1,gap:2}},p={at:{xs:{columns:1,gap:2},md:{columns:2,gap:3},lg:{columns:2,gap:6}},mobile:{columns:1,gap:2}},a={at:{xs:{columns:1,gap:2},md:{columns:3,gap:3},lg:{columns:3,gap:6}},mobile:{columns:1,gap:2}},r={at:{xs:{columns:1,gap:2},md:{columns:2,gap:3},lg:{columns:4,gap:6}},mobile:{columns:1,gap:2}};exports.Breakpoints=o;exports.COMMON_GRID_1_COL=t;exports.COMMON_GRID_2_COL=p;exports.COMMON_GRID_3_COL=a;exports.COMMON_GRID_4_COL=r;
|