@talogic/react 0.0.0-stage → 0.6.2

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.
Files changed (130) hide show
  1. package/README.md +106 -2
  2. package/app/app-shell.component.d.ts +66 -0
  3. package/app/command-shortcut.hook.d.ts +21 -0
  4. package/app/filter-bar.component.d.ts +38 -0
  5. package/app/form-section.component.d.ts +21 -0
  6. package/app/index.d.ts +14 -0
  7. package/app/page-header.component.d.ts +20 -0
  8. package/app/records-table.component.d.ts +38 -0
  9. package/app/sparkline.algorithm.d.ts +11 -0
  10. package/app/stat-card.component.d.ts +28 -0
  11. package/class-names/class-names.algorithm.d.ts +8 -0
  12. package/class-names/index.d.ts +1 -0
  13. package/desktop/flow-node.component.d.ts +25 -0
  14. package/desktop/index.d.ts +12 -0
  15. package/desktop/inspector.component.d.ts +29 -0
  16. package/desktop/status-bar.component.d.ts +17 -0
  17. package/desktop/timeline-lanes.component.d.ts +43 -0
  18. package/desktop/timeline.algorithm.d.ts +22 -0
  19. package/desktop/title-bar.component.d.ts +24 -0
  20. package/fonts.css +4 -0
  21. package/index.d.ts +17 -0
  22. package/index.js +3495 -0
  23. package/index.js.map +1 -0
  24. package/mobile/bottom-nav.component.d.ts +23 -0
  25. package/mobile/capture-frame.component.d.ts +30 -0
  26. package/mobile/index.d.ts +6 -0
  27. package/mobile/record-button.component.d.ts +24 -0
  28. package/package.json +63 -4
  29. package/product/index.d.ts +8 -0
  30. package/product/product-catalogue.content.d.ts +16 -0
  31. package/product/product-logo.component.d.ts +17 -0
  32. package/product/product-switcher.component.d.ts +21 -0
  33. package/product/sidebar-brand.component.d.ts +18 -0
  34. package/status/index.d.ts +6 -0
  35. package/status/run-status.contract.d.ts +7 -0
  36. package/status/run-status.mapper.d.ts +18 -0
  37. package/status/status-badge.component.d.ts +14 -0
  38. package/talogic-react.css +2 -0
  39. package/timecode/index.d.ts +1 -0
  40. package/timecode/timecode.mapper.d.ts +17 -0
  41. package/tokens/apca-contrast.algorithm.d.ts +23 -0
  42. package/tokens/hue-fill.style.d.ts +6 -0
  43. package/tokens/index.d.ts +12 -0
  44. package/tokens/logo-color.algorithm.d.ts +21 -0
  45. package/tokens/palette.style.d.ts +6 -0
  46. package/tokens/product-hue.policy.d.ts +15 -0
  47. package/tokens/theme-attributes.mapper.d.ts +18 -0
  48. package/tokens/theme-root.component.d.ts +15 -0
  49. package/tokens/theme.contract.d.ts +34 -0
  50. package/tokens.css +949 -0
  51. package/ui/active-indicator/active-indicator.hook.d.ts +11 -0
  52. package/ui/active-indicator/active-indicator.recipe.d.ts +5 -0
  53. package/ui/active-indicator/index.d.ts +2 -0
  54. package/ui/avatar/avatar.component.d.ts +23 -0
  55. package/ui/avatar/index.d.ts +1 -0
  56. package/ui/badge/badge.component.d.ts +14 -0
  57. package/ui/badge/badge.recipe.d.ts +12 -0
  58. package/ui/badge/index.d.ts +4 -0
  59. package/ui/button/button.component.d.ts +16 -0
  60. package/ui/button/button.recipe.d.ts +11 -0
  61. package/ui/button/index.d.ts +4 -0
  62. package/ui/choice/checkbox.component.d.ts +11 -0
  63. package/ui/choice/index.d.ts +5 -0
  64. package/ui/choice/radio-group.component.d.ts +17 -0
  65. package/ui/choice/slider.component.d.ts +10 -0
  66. package/ui/choice/switch.component.d.ts +9 -0
  67. package/ui/choice/toggle-group.component.d.ts +17 -0
  68. package/ui/feedback/alert.component.d.ts +41 -0
  69. package/ui/feedback/empty-state.component.d.ts +19 -0
  70. package/ui/feedback/index.d.ts +8 -0
  71. package/ui/feedback/progress.component.d.ts +9 -0
  72. package/ui/feedback/skeleton.component.d.ts +8 -0
  73. package/ui/feedback/spinner.component.d.ts +10 -0
  74. package/ui/feedback/toaster.component.d.ts +10 -0
  75. package/ui/field/control.recipe.d.ts +5 -0
  76. package/ui/field/field-control.hook.d.ts +26 -0
  77. package/ui/field/field.component.d.ts +22 -0
  78. package/ui/field/index.d.ts +10 -0
  79. package/ui/field/input.component.d.ts +13 -0
  80. package/ui/field/label.component.d.ts +9 -0
  81. package/ui/field/select.component.d.ts +43 -0
  82. package/ui/field/textarea.component.d.ts +8 -0
  83. package/ui/index.d.ts +11 -0
  84. package/ui/layout/accordion.component.d.ts +30 -0
  85. package/ui/layout/card.component.d.ts +43 -0
  86. package/ui/layout/index.d.ts +7 -0
  87. package/ui/layout/kbd.component.d.ts +8 -0
  88. package/ui/layout/resizable.component.d.ts +23 -0
  89. package/ui/layout/scroll-area.component.d.ts +16 -0
  90. package/ui/layout/separator.component.d.ts +9 -0
  91. package/ui/layout/table.component.d.ts +50 -0
  92. package/ui/menu/command.component.d.ts +72 -0
  93. package/ui/menu/context-menu.component.d.ts +39 -0
  94. package/ui/menu/dropdown-menu.component.d.ts +57 -0
  95. package/ui/menu/index.d.ts +6 -0
  96. package/ui/menu/menu.recipe.d.ts +13 -0
  97. package/ui/navigation/breadcrumb.component.d.ts +45 -0
  98. package/ui/navigation/index.d.ts +11 -0
  99. package/ui/navigation/menu-icon.component.d.ts +18 -0
  100. package/ui/navigation/menubar.component.d.ts +48 -0
  101. package/ui/navigation/navigation-menu.component.d.ts +39 -0
  102. package/ui/navigation/pagination.component.d.ts +20 -0
  103. package/ui/navigation/stepper.component.d.ts +28 -0
  104. package/ui/navigation/tabs.component.d.ts +39 -0
  105. package/ui/overlay/alert-dialog.component.d.ts +42 -0
  106. package/ui/overlay/dialog.component.d.ts +48 -0
  107. package/ui/overlay/drawer.component.d.ts +29 -0
  108. package/ui/overlay/index.d.ts +9 -0
  109. package/ui/overlay/overlay.recipe.d.ts +18 -0
  110. package/ui/overlay/popover.component.d.ts +15 -0
  111. package/ui/overlay/sheet.component.d.ts +31 -0
  112. package/ui/overlay/tooltip.component.d.ts +20 -0
  113. package/ui/sidebar/index.d.ts +11 -0
  114. package/ui/sidebar/sidebar-context.hook.d.ts +29 -0
  115. package/ui/sidebar/sidebar-group.component.d.ts +26 -0
  116. package/ui/sidebar/sidebar-item.component.d.ts +35 -0
  117. package/ui/sidebar/sidebar-sheet.component.d.ts +25 -0
  118. package/ui/sidebar/sidebar.component.d.ts +80 -0
  119. package/ui/sidebar/sidebar.recipe.d.ts +8 -0
  120. package/web/cta-band.component.d.ts +20 -0
  121. package/web/faq.component.d.ts +19 -0
  122. package/web/feature-grid.component.d.ts +22 -0
  123. package/web/hero.component.d.ts +20 -0
  124. package/web/how-it-works.component.d.ts +22 -0
  125. package/web/index.d.ts +20 -0
  126. package/web/mobile-menu.component.d.ts +25 -0
  127. package/web/pricing-table.component.d.ts +37 -0
  128. package/web/product-card.component.d.ts +20 -0
  129. package/web/site-footer.component.d.ts +25 -0
  130. package/web/site-header.component.d.ts +32 -0
package/index.js ADDED
@@ -0,0 +1,3495 @@
1
+ import { clsx as e } from "clsx";
2
+ import { twMerge as t } from "tailwind-merge";
3
+ import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ import { Accordion as a, AlertDialog as o, Avatar as s, Checkbox as c, Collapsible as l, ContextMenu as u, Dialog as d, DropdownMenu as f, Label as p, Menubar as m, NavigationMenu as h, Popover as g, Progress as _, RadioGroup as v, ScrollArea as y, Select as b, Separator as ee, Slider as x, Slot as S, Switch as te, Tabs as C, ToggleGroup as ne, Tooltip as w } from "radix-ui";
5
+ import { cva as re } from "class-variance-authority";
6
+ import { Bookmark as ie, Check as T, ChevronDown as ae, ChevronRight as oe, ChevronsLeft as se, ChevronsRight as ce, ChevronsUpDown as le, CircleCheck as ue, Ellipsis as de, Info as fe, LoaderCircle as pe, Mic as me, Minus as he, PanelLeft as ge, Pause as _e, Play as ve, Plus as ye, Search as E, Square as be, TriangleAlert as xe, X as D } from "lucide-react";
7
+ import { cloneElement as Se, createContext as Ce, isValidElement as we, useCallback as Te, useContext as Ee, useEffect as O, useId as De, useRef as Oe, useState as k, useSyncExternalStore as ke } from "react";
8
+ import { Toaster as Ae } from "sonner";
9
+ import { Group as je, Panel as Me, Separator as Ne } from "react-resizable-panels";
10
+ import { Drawer as A } from "vaul";
11
+ import { Command as j } from "cmdk";
12
+ // src/class-names/class-names.algorithm.ts
13
+ function M(...n) {
14
+ return t(e(n));
15
+ }
16
+ // src/product/product-catalogue.content.ts
17
+ var N = {
18
+ talogic: {
19
+ name: "Talogic",
20
+ tagline: "Human focused automations.",
21
+ stage: "Company",
22
+ logoColor: "#753edd"
23
+ },
24
+ pargic: {
25
+ name: "pargic",
26
+ tagline: "Turns websites and documents into clean, checked records on a schedule.",
27
+ stage: "In use",
28
+ logoColor: "#dd773e"
29
+ },
30
+ daygic: {
31
+ name: "daygic",
32
+ tagline: "A wearable that listens through the day and writes your summary and to-dos.",
33
+ stage: "Concept",
34
+ logoColor: "#c8902e",
35
+ logoAccents: ["#9a6a1c"]
36
+ },
37
+ ingic: {
38
+ name: "ingic",
39
+ tagline: "Checks a returned scan against the PDF you sent, field by field.",
40
+ stage: "Preview",
41
+ logoColor: "#3e63dd",
42
+ logoAccents: ["#e5484d", "#979797"]
43
+ },
44
+ loregic: {
45
+ name: "loregic",
46
+ tagline: "Publishes repo Markdown to Confluence, Pages and wikis, with a plan first.",
47
+ stage: "Preview",
48
+ logoColor: "#30a46c"
49
+ },
50
+ loomgic: {
51
+ name: "loomgic",
52
+ tagline: "Pulls speech, speakers, text and objects out of video and audio.",
53
+ stage: "Early",
54
+ logoColor: "#3e63dd",
55
+ logoAccents: ["#e5484d", "#30a46c"]
56
+ }
57
+ }, Pe = {
58
+ talogic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3ccircle%20cx='4266.667'%20cy='4266.667'%20r='4266.667'%20fill='%23753edd'/%3e%3cpath%20d='M6239.492,7179.279c-587.992,403.439%20-1284.858,619.682%20-1998.46,619.682c-1937.781,0%20-3532.333,-1594.553%20-3532.333,-3532.333c0,-1937.781%201594.553,-3532.333%203532.333,-3532.333c1593.826,-0%202999.58,1078.727%203412.017,2618.266c53.557,199.918%20-65.269,405.709%20-265.188,459.266c-199.918,53.557%20-405.709,-65.269%20-459.266,-265.188c-324.867,-1212.657%20-1432.145,-2062.344%20-2687.563,-2062.344c-1526.343,-0%20-2782.333,1255.99%20-2782.333,2782.333c0,1526.343%201255.99,2782.333%202782.333,2782.333c559.652,0%201106.236,-168.857%201568.116,-483.988l-249.007,-355.451l1686.002,-207.645l-771.521,1513.043l-235.13,-335.642Zm-3156.366,-3334.215c39.357,-108.037%20159.021,-163.797%20267.058,-124.44c108.037,39.357%20163.797,159.021%20124.44,267.058c-32.594,89.472%20-49.269,183.965%20-49.269,279.189c0,447.461%20368.205,815.667%20815.667,815.667c447.461,0%20815.667,-368.205%20815.667,-815.667c0,-291.052%20-155.783,-560.872%20-407.844,-706.394c-99.578,-57.49%20-133.749,-185.009%20-76.26,-284.587c57.49,-99.578%20185.009,-133.749%20284.587,-76.26c380.821,219.859%20616.183,627.511%20616.183,1067.242c0,676.038%20-556.295,1232.333%20-1232.333,1232.333c-676.038,0%20-1232.333,-556.295%20-1232.333,-1232.333c0,-143.867%2025.193,-286.63%2074.437,-421.807Zm3319.934,1203.659c-55.039,151.274%20-222.539,229.404%20-373.813,174.364c-151.274,-55.039%20-229.404,-222.539%20-174.364,-373.813c68.47,-188.186%20103.497,-386.907%20103.497,-587.163c0,-942.081%20-775.215,-1717.296%20-1717.296,-1717.296c-942.081,0%20-1717.296,775.215%20-1717.296,1717.296c0,612.741%20327.944,1180.786%20858.578,1487.182c139.405,80.494%20187.233,259.024%20106.739,398.429c-80.494,139.405%20-259.024,187.233%20-398.429,106.739c-710.881,-410.472%20-1150.221,-1171.472%20-1150.221,-1992.349c0,-1262.088%201038.541,-2300.629%202300.629,-2300.629c1262.088,0%202300.629,1038.541%202300.629,2300.629c0,268.278%20-46.926,534.501%20-138.654,786.611Zm-2172.051,-1208.724c229.965,0%20416.667,186.702%20416.667,416.667c0,229.965%20-186.702,416.667%20-416.667,416.667c-229.965,0%20-416.667,-186.702%20-416.667,-416.667c0,-229.965%20186.702,-416.667%20416.667,-416.667Z'%20fill='%23fff'/%3e%3c/svg%3e" },
59
+ pargic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M8350.618,5542.197c-16.744,53.324%20-34,106.427%20-51.758,159.296c-44.706,128.857%20-95.419,254.916%20-151.804,377.842l-1503.884,-488.642l-256.17,788.41l-1812.022,-1974.821l2626.74,-532.622l-256.169,788.407l1504.03,488.689c-26.854,133.499%20-59.948,264.752%20-98.963,393.441Zm-8116.145,159.296c-17.758,-52.869%20-35.014,-105.971%20-51.758,-159.296c-39.015,-128.688%20-72.108,-259.939%20-98.962,-393.437l1504.031,-488.689l-256.17,-788.41l2626.728,532.584l-1812.01,1974.86l-256.169,-788.407l-1503.884,488.641c-56.385,-122.927%20-107.099,-248.988%20-151.806,-377.846Zm1936.602,-5114.117l929.208,1278.945l670.662,-487.264l305.186,2662.744l-2438.145,-1113.059l670.659,-487.262l-928.662,-1278.193c239.997,-220.72%20505.322,-414.318%20791.092,-575.911Zm4982.272,575.908l-928.662,1278.194l670.662,487.264l-2438.112,1113.082l305.153,-2662.768l670.659,487.262l929.208,-1278.945c285.77,161.593%20551.095,355.19%20791.092,575.91Zm-3375.938,7379.666l0,-1581.091l-828.984,0l1318.221,-2333.589l1318.261,2333.589l-828.98,0l0,1581.091c-160.561,18.364%20-323.818,27.801%20-489.261,27.801c-165.442,0%20-328.698,-9.437%20-489.257,-27.801Z'%20fill='%23dd773e'/%3e%3c/svg%3e" },
60
+ daygic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M4266.667,0c513.234,0%20929.915,416.681%20929.915,929.915l0,1969.231c0,513.234%20-416.681,929.915%20-929.915,929.915c-513.234,0%20-929.915,-416.681%20-929.915,-929.915l0,-1969.231c0,-513.234%20416.681,-929.915%20929.915,-929.915Zm3884.531,2899.145c256.617,444.474%20104.101,1013.67%20-340.372,1270.287l-1136.936,656.41c-444.474,256.617%20-1013.67,104.101%20-1270.287,-340.372c-256.617,-444.474%20-104.101,-1013.67%20340.372,-1270.287l1136.936,-656.41c444.474,-256.617%201013.67,-104.101%201270.287,340.372Zm-568.468,4157.265c-256.617,444.474%20-825.813,596.989%20-1270.287,340.372l-568.468,-328.205c-444.474,-256.617%20-596.989,-825.813%20-340.372,-1270.287c256.617,-444.474%20825.813,-596.989%201270.287,-340.372l568.468,328.205c444.474,256.617%20596.989,825.813%20340.372,1270.287Zm-3316.063,1476.923c-513.234,0%20-929.915,-416.681%20-929.915,-929.915l0,-218.803c0,-513.234%20416.681,-929.915%20929.915,-929.915c513.234,0%20929.915,416.681%20929.915,929.915l0,218.803c0,513.234%20-416.681,929.915%20-929.915,929.915Zm-3316.063,-1476.923c-256.617,-444.474%20-104.101,-1013.67%20340.372,-1270.287l568.468,-328.205c444.474,-256.617%201013.67,-104.101%201270.287,340.372c256.617,444.474%20104.101,1013.67%20-340.372,1270.287l-568.468,328.205c-444.474,256.617%20-1013.67,104.101%20-1270.287,-340.372Zm-568.468,-4157.265c256.617,-444.474%20825.813,-596.989%201270.287,-340.372l1136.936,656.41c444.474,256.617%20596.989,825.813%20340.372,1270.287c-256.617,444.474%20-825.813,596.989%20-1270.287,340.372l-1136.936,-656.41c-444.474,-256.617%20-596.989,-825.813%20-340.372,-1270.287Z'%20fill='%23c8902e'/%3e%3ccircle%20cx='4266.667'%20cy='5141.88'%20r='984.615'%20fill='%239a6a1c'/%3e%3c/svg%3e" },
61
+ ingic: { light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M1870.136,527.514l-516.654,3372.973l-26.886,3736.744l2489.307,396.496l2838.27,-3.58l571.349,-3510.969l-131.073,-3631.49l-2827.783,-356.798l-2396.531,-3.376Z'%20fill='%23979797'/%3e%3cpath%20d='M1240.537,380.878l6052.26,0c9.199,0%2016.667,7.468%2016.667,16.667l0,7742.078c0,9.199%20-7.468,16.667%20-16.667,16.667l-6052.26,0c-9.199,0%20-16.667,-7.468%20-16.667,-16.667l0,-7742.078c0,-9.199%207.468,-16.667%2016.667,-16.667Zm467.975,7290.77l5116.31,0l0,-6806.128l-5116.31,-0.001l0,6806.13Z'%20fill='%233e63dd'/%3e%3cpath%20d='M1814.457,0.19l5993.356,837.045c9.11,1.272%2015.461,9.7%2014.173,18.808l-1084.269,7666.737c-1.288,9.108%20-9.73,15.469%20-18.84,14.197l-5993.356,-837.045c-9.11,-1.272%20-15.461,-9.7%20-14.173,-18.808l1084.269,-7666.737c1.288,-9.108%209.73,-15.469%2018.84,-14.197Zm-557.633,7284.634l5066.469,707.594l953.216,-6740.075l-5066.469,-707.594l-953.216,6740.075Z'%20fill='%23e5484d'/%3e%3c/svg%3e" },
62
+ loregic: {
63
+ light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M200,1817.369l991.669,-130.102l0,-1331.039c0,-0%202479.01,718.161%203145.659,1721.344c571.186,-776.837%201880.339,-1562.02%203458.782,-1551.211c19.714,785.684%20125.622,1140.891%20125.622,1140.891l528.268,170.133l-347.435,6274.901c0,0%20-1670.55,-711.336%20-3652.563,160.125c-1293.666,-392.459%20-4208.337,-160.125%20-4208.337,-160.125l-41.666,-6294.916Z'%20fill='%2330a46c'/%3e%3cpath%20d='M674.053,1753.604l-381.14,68.97l180.888,6061.772c1790.647,-649.186%203707.865,142.105%203943.712,247.896c2171.146,-536.339%202945.382,-379.138%204115.821,169.724c-1223.981,-530.825%20-2472.208,-692.399%20-4120.272,121.102c-10.122,-2.112%20-2135.639,-643.387%20-4151.222,94.749c-10.036,3.675%20-19.989,8.122%20-30.296,10.694c-11.963,2.985%20-81.54,20.347%20-149.695,-36.391c-9.916,-8.255%20-67.591,-56.269%20-79.76,-153.367c-1.522,-12.144%20-2.207,-24.479%20-2.071,-36.759c1.103,-99.663%203.277,-199.308%205.787,-298.934l160.292,-6198.949c0.068,-2.502%205.737,-16.793%2016.867,-17.103c4.938,-0.14%204.742,1.071%205.16,1.041l485.925,-34.939c-3.235,-393.18%20-6.254,-1176.405%20-8.182,-1516.972c-0.558,-98.517%2052.936,-157.763%2062.187,-168.011c7.507,-8.316%2049.37,-54.683%20118.281,-65.962c4.06,-0.661%2017.77,-2.162%2051.262,-2.162c2867.999,-0%203522.562,1848.714%203522.562,1848.714c0,0%20529.013,-1771.603%203517.591,-1771.223c25.394,0%2043.815,6.275%2047.467,7.586c56.503,20.326%2078.9,70.675%2082.776,79.402c2.342,5.264%2014.976,33.666%2014.456,71.656c-4.54,327.986%20-9.52,1156.353%20-15.299,1484.309c-12.275,695.753%20-255.794,4862.887%20-257.418,4960.884l-0.063,19.295c0,0%20-252.133,-4787.608%20-273.255,-5794.505c-3067.146,0.02%20-3106.062,2469.368%20-3106.062,2469.368c0,0%20-189.672,-2388.105%20-3166.109,-2388.075l-102.167,5508.351c1142.417,-317.188%202499.89,213.557%203247.925,864.435c-609.581,-521.407%20-2358.969,-1288.246%20-3454.726,-521.707c-41.644,29.133%20-48.158,10.858%20-52.384,11.519c-7.265,1.141%20-14.482,2.862%20-21.807,3.313c-8.629,0.52%20-58.517,3.563%20-101.525,-41.162c-6.4,-6.655%20-42.716,-44.415%20-44.323,-111.537c-1.672,-69.845%20-2.519,-139.699%20-3.453,-209.554l-57.119,-4668.295c-0.205,-21.38%20-0.409,-44.506%20-0.612,-69.17Zm177.819,4796.951l-4.067,-3.713l2.642,3.993l1.425,-0.28Z'%20fill='%23333'/%3e%3c/svg%3e",
64
+ dark: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%208534%208534'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:affinity='https://www.affinity.studio/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3crect%20id='loregic-symbol-dark'%20x='0'%20y='0'%20width='8533.333'%20height='8533.333'%20style='fill:none;'/%3e%3cclipPath%20id='_clip1'%3e%3crect%20x='0'%20y='0'%20width='8533.333'%20height='8533.333'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23_clip1)'%3e%3cpath%20d='M200,1817.369l991.669,-130.102l0,-1331.039c0,-0%202479.01,718.161%203145.659,1721.344c571.186,-776.837%201880.339,-1562.02%203458.782,-1551.211c19.714,785.684%20125.622,1140.891%20125.622,1140.891l528.268,170.133l-347.435,6274.901c0,0%20-1670.55,-711.336%20-3652.563,160.125c-1293.666,-392.459%20-4208.337,-160.125%20-4208.337,-160.125l-41.666,-6294.916Z'%20style='fill:%2330a46c;'/%3e%3cpath%20d='M674.053,1753.604l-381.14,68.97l180.888,6061.772c1790.647,-649.186%203707.865,142.105%203943.712,247.896c2171.146,-536.339%202945.382,-379.138%204115.821,169.724c-1223.981,-530.825%20-2472.208,-692.399%20-4120.272,121.102c-10.122,-2.112%20-2135.639,-643.387%20-4151.222,94.749c-10.036,3.675%20-19.989,8.122%20-30.296,10.694c-11.963,2.985%20-81.54,20.347%20-149.695,-36.391c-9.916,-8.255%20-67.591,-56.269%20-79.76,-153.367c-1.522,-12.144%20-2.207,-24.479%20-2.071,-36.759c1.103,-99.663%203.277,-199.308%205.787,-298.934l160.292,-6198.949c0.068,-2.502%205.737,-16.793%2016.867,-17.103c4.938,-0.14%204.742,1.071%205.16,1.041l485.925,-34.939c-3.235,-393.18%20-6.254,-1176.405%20-8.182,-1516.972c-0.558,-98.517%2052.936,-157.763%2062.187,-168.011c7.507,-8.316%2049.37,-54.683%20118.281,-65.962c4.06,-0.661%2017.77,-2.162%2051.262,-2.162c2867.999,-0%203522.562,1848.714%203522.562,1848.714c0,0%20529.013,-1771.603%203517.591,-1771.223c25.394,0%2043.815,6.275%2047.467,7.586c56.503,20.326%2078.9,70.675%2082.776,79.402c2.342,5.264%2014.976,33.666%2014.456,71.656c-4.54,327.986%20-9.52,1156.353%20-15.299,1484.309c-12.275,695.753%20-255.794,4862.887%20-257.418,4960.884l-0.063,19.295c0,0%20-252.133,-4787.608%20-273.255,-5794.505c-3067.146,0.02%20-3106.062,2469.368%20-3106.062,2469.368c0,0%20-189.672,-2388.105%20-3166.109,-2388.075l-102.167,5508.351c1142.417,-317.188%202499.89,213.557%203247.925,864.435c-609.581,-521.407%20-2358.969,-1288.246%20-3454.726,-521.707c-41.644,29.133%20-48.158,10.858%20-52.384,11.519c-7.265,1.141%20-14.482,2.862%20-21.807,3.313c-8.629,0.52%20-58.517,3.563%20-101.525,-41.162c-6.4,-6.655%20-42.716,-44.415%20-44.323,-111.537c-1.672,-69.845%20-2.519,-139.699%20-3.453,-209.554l-57.119,-4668.295c-0.205,-21.38%20-0.409,-44.506%20-0.612,-69.17Zm177.819,4796.951l-4.067,-3.713l2.642,3.993l1.425,-0.28Z'%20style='fill:%23979797;'/%3e%3c/g%3e%3c/svg%3e"
65
+ },
66
+ loomgic: {
67
+ light: "data:image/svg+xml,%3csvg%20viewBox='0%200%208534%208534'%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M7950,3683.287c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-7366.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l7366.667,0Z'%20fill='%23333'/%3e%3cpath%20d='M6062.5,474.953c321.95,0%20583.333,261.383%20583.333,583.333l0,6416.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l-0,-6416.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20fill='%233e63dd'/%3e%3cpath%20d='M2470.833,474.953c321.95,0%20583.333,261.383%20583.333,583.333l0,6416.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l-0,-6416.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20fill='%23e5484d'/%3e%3cpath%20d='M7475,1887.453c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-6416.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l6416.667,0Z'%20fill='%23333'/%3e%3cpath%20d='M7475,5479.12c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-6416.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l6416.667,0Z'%20fill='%23333'/%3e%3cpath%20d='M4266.667,-0.047c321.95,0%20583.333,261.383%20583.333,583.333l0,7366.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l0,-7366.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20fill='%2330a46c'/%3e%3crect%20x='3365.106'%20y='3683.287'%20width='1799.257'%20height='1166.667'%20fill='%23333'/%3e%3c/svg%3e",
68
+ dark: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%208534%208534'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:affinity='https://www.affinity.studio/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3crect%20id='loomgic-symbol-dark'%20x='0'%20y='0'%20width='8533.333'%20height='8533.333'%20style='fill:none;'/%3e%3cclipPath%20id='_clip1'%3e%3crect%20x='0'%20y='0'%20width='8533.333'%20height='8533.333'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23_clip1)'%3e%3cpath%20d='M7950,3683.287c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-7366.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l7366.667,0Z'%20style='fill:%23979797;'/%3e%3cpath%20d='M6062.5,474.953c321.95,0%20583.333,261.383%20583.333,583.333l0,6416.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l-0,-6416.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20style='fill:%233e63dd;'/%3e%3cpath%20d='M2470.833,474.953c321.95,0%20583.333,261.383%20583.333,583.333l0,6416.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l-0,-6416.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20style='fill:%23e5484d;'/%3e%3cpath%20d='M7475,1887.453c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-6416.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l6416.667,0Z'%20style='fill:%23979797;'/%3e%3cpath%20d='M7475,5479.12c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-6416.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l6416.667,0Z'%20style='fill:%23979797;'/%3e%3cpath%20d='M4266.667,-0.047c321.95,0%20583.333,261.383%20583.333,583.333l0,7366.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l0,-7366.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20style='fill:%2330a46c;'/%3e%3crect%20x='3365.106'%20y='3683.287'%20width='1799.257'%20height='1166.667'%20style='fill:%23979797;'/%3e%3c/g%3e%3c/svg%3e"
69
+ }
70
+ };
71
+ function P({ product: e, alt: t = N[e].name, className: a, ...o }) {
72
+ let { light: s, dark: c } = Pe[e], l = M("size-6 shrink-0 object-contain", a);
73
+ return c ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("img", {
74
+ "data-slot": "product-logo",
75
+ src: s,
76
+ alt: t,
77
+ className: M(l, "dark:hidden"),
78
+ ...o
79
+ }), /* @__PURE__ */ r("img", {
80
+ "data-slot": "product-logo",
81
+ src: c,
82
+ alt: t,
83
+ className: M(l, "hidden dark:block"),
84
+ ...o
85
+ })] }) : /* @__PURE__ */ r("img", {
86
+ "data-slot": "product-logo",
87
+ src: s,
88
+ alt: t,
89
+ className: l,
90
+ ...o
91
+ });
92
+ }
93
+ // src/tokens/apca-contrast.algorithm.ts
94
+ var F = {
95
+ mainTrc: 2.4,
96
+ red: .2126729,
97
+ green: .7151522,
98
+ blue: .072175,
99
+ normBg: .56,
100
+ normText: .57,
101
+ revText: .62,
102
+ revBg: .65,
103
+ blackThresh: .022,
104
+ blackClamp: 1.414,
105
+ scale: 1.14,
106
+ lowOffset: .027,
107
+ deltaYMin: 5e-4,
108
+ lowClip: .1
109
+ }, Fe = ["#14121a", "#ffffff"];
110
+ function Ie(e) {
111
+ let t = e.replace("#", "").trim(), n = t.length === 3 ? [...t].map((e) => e.repeat(2)).join("") : t;
112
+ if (!/^[\da-f]{6}$/i.test(n)) throw RangeError(`Not a hex colour: ${e}`);
113
+ return [
114
+ 0,
115
+ 2,
116
+ 4
117
+ ].map((e) => Number.parseInt(n.slice(e, e + 2), 16));
118
+ }
119
+ function Le(e) {
120
+ let [t, n, r] = Ie(e).map((e) => (e / 255) ** F.mainTrc), i = F.red * t + F.green * n + F.blue * r;
121
+ return i < F.blackThresh ? i + (F.blackThresh - i) ** F.blackClamp : i;
122
+ }
123
+ function Re(e, t) {
124
+ let n = Le(e), r = Le(t);
125
+ if (Math.abs(r - n) < F.deltaYMin) return 0;
126
+ if (r > n) {
127
+ let e = (r ** F.normBg - n ** F.normText) * F.scale;
128
+ return e < F.lowClip ? 0 : (e - F.lowOffset) * 100;
129
+ }
130
+ let i = (r ** F.revBg - n ** F.revText) * F.scale;
131
+ return i > -F.lowClip ? 0 : (i + F.lowOffset) * 100;
132
+ }
133
+ function ze(e, t = Fe) {
134
+ let n = t[0];
135
+ if (n === void 0) throw RangeError("No label colour to choose from");
136
+ let r = Math.abs(Re(n, e));
137
+ for (let i of t.slice(1)) {
138
+ let t = Math.abs(Re(i, e));
139
+ t > r && (n = i, r = t);
140
+ }
141
+ return n;
142
+ }
143
+ // src/tokens/hue-fill.style.ts
144
+ var I = {
145
+ red: "bg-red-500",
146
+ orange: "bg-orange-500",
147
+ amber: "bg-amber-500",
148
+ lime: "bg-lime-500",
149
+ green: "bg-green-500",
150
+ teal: "bg-teal-500",
151
+ cyan: "bg-cyan-500",
152
+ sky: "bg-sky-500",
153
+ blue: "bg-blue-500",
154
+ violet: "bg-violet-500",
155
+ purple: "bg-purple-500",
156
+ pink: "bg-pink-500"
157
+ }, Be = {
158
+ red: {
159
+ 50: "#fef4f3",
160
+ 100: "#fee9e7",
161
+ 200: "#fed2cd",
162
+ 300: "#ffb0a9",
163
+ 400: "#fb817a",
164
+ 500: "#e15955",
165
+ 600: "#c43f3e",
166
+ 700: "#a12f2f",
167
+ 800: "#7c2524",
168
+ 900: "#581b1a",
169
+ 950: "#371210"
170
+ },
171
+ orange: {
172
+ 50: "#fff4ef",
173
+ 100: "#feeadf",
174
+ 200: "#ffd4bc",
175
+ 300: "#ffb48a",
176
+ 400: "#f58b4b",
177
+ 500: "#d96604",
178
+ 600: "#b65400",
179
+ 700: "#934302",
180
+ 800: "#723302",
181
+ 900: "#532301",
182
+ 950: "#351502"
183
+ },
184
+ amber: {
185
+ 50: "#fcf6ec",
186
+ 100: "#fcecd5",
187
+ 200: "#f8d9aa",
188
+ 300: "#efbe72",
189
+ 400: "#de9d16",
190
+ 500: "#b78006",
191
+ 600: "#996a03",
192
+ 700: "#7c5500",
193
+ 800: "#604102",
194
+ 900: "#452e01",
195
+ 950: "#2c1c00"
196
+ },
197
+ lime: {
198
+ 50: "#f4f9ee",
199
+ 100: "#e9f3da",
200
+ 200: "#d3e7b4",
201
+ 300: "#b7d484",
202
+ 400: "#95bb46",
203
+ 500: "#769c03",
204
+ 600: "#628202",
205
+ 700: "#4e6801",
206
+ 800: "#3b5001",
207
+ 900: "#2a3900",
208
+ 950: "#192400"
209
+ },
210
+ green: {
211
+ 50: "#effaf2",
212
+ 100: "#ddf6e4",
213
+ 200: "#baecca",
214
+ 300: "#8bdda8",
215
+ 400: "#4bc680",
216
+ 500: "#01a760",
217
+ 600: "#028b4f",
218
+ 700: "#02703f",
219
+ 800: "#02572f",
220
+ 900: "#013e20",
221
+ 950: "#012712"
222
+ },
223
+ teal: {
224
+ 50: "#edfaf7",
225
+ 100: "#d6f7ef",
226
+ 200: "#abeee0",
227
+ 300: "#6bdfca",
228
+ 400: "#02c6ae",
229
+ 500: "#01a38f",
230
+ 600: "#098777",
231
+ 700: "#046d5f",
232
+ 800: "#025449",
233
+ 900: "#003c34",
234
+ 950: "#022620"
235
+ },
236
+ cyan: {
237
+ 50: "#ecfafc",
238
+ 100: "#d5f5fc",
239
+ 200: "#a7ebf8",
240
+ 300: "#63dbef",
241
+ 400: "#00c0d7",
242
+ 500: "#059eb1",
243
+ 600: "#058393",
244
+ 700: "#046a77",
245
+ 800: "#03515c",
246
+ 900: "#023a42",
247
+ 950: "#02242a"
248
+ },
249
+ sky: {
250
+ 50: "#eff8ff",
251
+ 100: "#def2ff",
252
+ 200: "#bde4fe",
253
+ 300: "#89d1fe",
254
+ 400: "#2cb7fd",
255
+ 500: "#0997d5",
256
+ 600: "#017db2",
257
+ 700: "#026590",
258
+ 800: "#034d70",
259
+ 900: "#003752",
260
+ 950: "#002235"
261
+ },
262
+ blue: {
263
+ 50: "#f3f7ff",
264
+ 100: "#e7efff",
265
+ 200: "#cfdeff",
266
+ 300: "#adc7ff",
267
+ 400: "#82a8fe",
268
+ 500: "#5886f2",
269
+ 600: "#426dd7",
270
+ 700: "#3357b1",
271
+ 800: "#274387",
272
+ 900: "#1c3060",
273
+ 950: "#111e3b"
274
+ },
275
+ violet: {
276
+ 50: "#f7f6fe",
277
+ 100: "#efecfe",
278
+ 200: "#dfd8fe",
279
+ 300: "#c9bdfe",
280
+ 400: "#af98fe",
281
+ 500: "#9274e8",
282
+ 600: "#7b5bcd",
283
+ 700: "#6347a9",
284
+ 800: "#4c3781",
285
+ 900: "#36285c",
286
+ 950: "#211939"
287
+ },
288
+ purple: {
289
+ 50: "#fbf4fe",
290
+ 100: "#f9e8fe",
291
+ 200: "#f2d0fd",
292
+ 300: "#e5b1f6",
293
+ 400: "#d28ae8",
294
+ 500: "#b666ce",
295
+ 600: "#9c4db4",
296
+ 700: "#7f3c93",
297
+ 800: "#622e71",
298
+ 900: "#452150",
299
+ 950: "#2b1531"
300
+ },
301
+ pink: {
302
+ 50: "#fef3f8",
303
+ 100: "#ffe7f1",
304
+ 200: "#fecee4",
305
+ 300: "#feaad1",
306
+ 400: "#f080b8",
307
+ 500: "#d4599b",
308
+ 600: "#b94082",
309
+ 700: "#973069",
310
+ 800: "#742651",
311
+ 900: "#531b39",
312
+ 950: "#331123"
313
+ }
314
+ }, L = {
315
+ saturation: .7,
316
+ lightness: .55,
317
+ maxOklchLightness: .7,
318
+ lightnessStep: .005
319
+ };
320
+ function Ve(e) {
321
+ return [
322
+ 1,
323
+ 3,
324
+ 5
325
+ ].map((t) => Number.parseInt(e.slice(t, t + 2), 16) / 255);
326
+ }
327
+ function He(e) {
328
+ let [t, n, r] = Ve(e), i = Math.max(t, n, r), a = i - Math.min(t, n, r);
329
+ return a === 0 ? 0 : ((i === t ? (n - r) / a % 6 : i === n ? (r - t) / a + 2 : (t - n) / a + 4) * 60 + 360) % 360;
330
+ }
331
+ function Ue(e, t, n) {
332
+ let r = (1 - Math.abs(2 * n - 1)) * t, i = r * (1 - Math.abs(e / 60 % 2 - 1)), a = n - r / 2, o = Math.floor(e / 60) % 6;
333
+ return `#${([
334
+ [
335
+ r,
336
+ i,
337
+ 0
338
+ ],
339
+ [
340
+ i,
341
+ r,
342
+ 0
343
+ ],
344
+ [
345
+ 0,
346
+ r,
347
+ i
348
+ ],
349
+ [
350
+ 0,
351
+ i,
352
+ r
353
+ ],
354
+ [
355
+ i,
356
+ 0,
357
+ r
358
+ ],
359
+ [
360
+ r,
361
+ 0,
362
+ i
363
+ ]
364
+ ][o] ?? [
365
+ 0,
366
+ 0,
367
+ 0
368
+ ]).map((e) => Math.round((e + a) * 255).toString(16).padStart(2, "0")).join("")}`;
369
+ }
370
+ function We(e) {
371
+ let [t, n, r] = Ve(e).map((e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4), i = Math.cbrt(.4122214708 * t + .5363325363 * n + .0514459929 * r), a = Math.cbrt(.2119034982 * t + .6806995451 * n + .1073969566 * r), o = Math.cbrt(.0883024619 * t + .2817188376 * n + .6299787005 * r);
372
+ return .2104542553 * i + .793617785 * a - .0040720468 * o;
373
+ }
374
+ function Ge(e) {
375
+ let t = He(Be[e][500]), n = L.lightness, r = Ue(t, L.saturation, n);
376
+ for (; We(r) > L.maxOklchLightness;) n -= L.lightnessStep, r = Ue(t, L.saturation, n);
377
+ return r;
378
+ }
379
+ // src/tokens/product-hue.policy.ts
380
+ var Ke = {
381
+ talogic: "violet",
382
+ pargic: "orange",
383
+ daygic: "amber",
384
+ ingic: "blue",
385
+ loregic: "green",
386
+ loomgic: "blue"
387
+ }, qe = [
388
+ "lime",
389
+ "teal",
390
+ "cyan",
391
+ "sky",
392
+ "purple",
393
+ "pink"
394
+ ];
395
+ function Je(e) {
396
+ return Ke[e];
397
+ }
398
+ // src/tokens/theme.contract.ts
399
+ var Ye = [
400
+ "talogic",
401
+ "pargic",
402
+ "daygic",
403
+ "ingic",
404
+ "loregic",
405
+ "loomgic"
406
+ ], Xe = [
407
+ "red",
408
+ "orange",
409
+ "amber",
410
+ "lime",
411
+ "green",
412
+ "teal",
413
+ "cyan",
414
+ "sky",
415
+ "blue",
416
+ "violet",
417
+ "purple",
418
+ "pink"
419
+ ], Ze = [
420
+ "50",
421
+ "100",
422
+ "200",
423
+ "300",
424
+ "400",
425
+ "500",
426
+ "600",
427
+ "700",
428
+ "800",
429
+ "900",
430
+ "950"
431
+ ], Qe = [
432
+ "web",
433
+ "app",
434
+ "desk",
435
+ "mob"
436
+ ], $e = ["light", "dark"];
437
+ // src/tokens/theme-attributes.mapper.ts
438
+ function et(e) {
439
+ let t = { className: [e.scheme === "dark" ? "dark" : "", e.density ? `d-${e.density}` : ""].filter(Boolean).join(" ") };
440
+ return e.product && (t["data-product"] = e.product), e.hue && (t["data-hue"] = e.hue), t;
441
+ }
442
+ // src/tokens/theme-root.component.tsx
443
+ function tt({ product: e, hue: t, scheme: n, density: i, asChild: a = !1, className: o, ...s }) {
444
+ let { className: c, ...l } = et({
445
+ product: e,
446
+ hue: t,
447
+ scheme: n,
448
+ density: i
449
+ }), u = a ? S.Root : "div";
450
+ return /* @__PURE__ */ r(u, {
451
+ "data-slot": "theme-root",
452
+ className: M(c, o),
453
+ ...l,
454
+ ...s
455
+ });
456
+ }
457
+ // src/ui/avatar/avatar.component.tsx
458
+ function nt({ className: e, ...t }) {
459
+ return /* @__PURE__ */ r(s.Root, {
460
+ "data-slot": "avatar",
461
+ className: M("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
462
+ ...t
463
+ });
464
+ }
465
+ function rt({ className: e, ...t }) {
466
+ return /* @__PURE__ */ r(s.Image, {
467
+ "data-slot": "avatar-image",
468
+ className: M("aspect-square size-full object-cover", e),
469
+ ...t
470
+ });
471
+ }
472
+ function it({ className: e, ...t }) {
473
+ return /* @__PURE__ */ r(s.Fallback, {
474
+ "data-slot": "avatar-fallback",
475
+ className: M("flex size-full items-center justify-center rounded-full bg-brand-soft text-xs font-semibold text-brand-text", e),
476
+ ...t
477
+ });
478
+ }
479
+ // src/ui/badge/badge.recipe.ts
480
+ var at = re("inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-nowrap rounded-full border border-transparent px-2 text-xs font-medium [&_svg]:size-3", {
481
+ variants: { variant: {
482
+ default: "bg-primary text-primary-foreground",
483
+ secondary: "bg-secondary text-secondary-foreground",
484
+ outline: "border-border text-foreground",
485
+ brand: "bg-brand-soft text-brand-text",
486
+ success: "bg-success-soft text-success",
487
+ warning: "bg-warning-soft text-warning",
488
+ danger: "bg-destructive-soft text-destructive",
489
+ info: "bg-info-soft text-info"
490
+ } },
491
+ defaultVariants: { variant: "default" }
492
+ });
493
+ // src/ui/badge/badge.component.tsx
494
+ function R({ className: e, variant: t, dot: n = !1, children: a, ...o }) {
495
+ return /* @__PURE__ */ i("span", {
496
+ "data-slot": "badge",
497
+ className: M(at({ variant: t }), e),
498
+ ...o,
499
+ children: [n && /* @__PURE__ */ r("span", {
500
+ "aria-hidden": "true",
501
+ className: "size-1.5 shrink-0 rounded-full bg-current"
502
+ }), a]
503
+ });
504
+ }
505
+ // src/ui/button/button.recipe.ts
506
+ var z = re([
507
+ "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent font-medium no-underline",
508
+ "transition-[background-color,border-color,box-shadow,color] duration-150 ease-out outline-none motion-reduce:transition-none",
509
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
510
+ "disabled:pointer-events-none disabled:opacity-50 aria-busy:cursor-progress",
511
+ "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
512
+ ], {
513
+ variants: {
514
+ variant: {
515
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-[color-mix(in_oklab,var(--primary)_88%,var(--foreground))]",
516
+ secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
517
+ outline: "border-input bg-background text-foreground shadow-xs hover:bg-accent",
518
+ ghost: "bg-transparent text-foreground hover:bg-accent",
519
+ destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-[color-mix(in_oklab,var(--destructive)_88%,var(--foreground))]",
520
+ link: "bg-transparent text-brand-text underline underline-offset-3"
521
+ },
522
+ size: {
523
+ default: "h-(--control-h) px-(--control-px) text-(length:--control-fs)",
524
+ sm: "h-[calc(var(--control-h)-6px)] px-[calc(var(--control-px)-4px)] text-[13px]",
525
+ lg: "h-[calc(var(--control-h)+8px)] px-[calc(var(--control-px)+6px)] text-base",
526
+ icon: "size-(--control-h)",
527
+ "icon-sm": "size-[calc(var(--control-h)-6px)]"
528
+ }
529
+ },
530
+ compoundVariants: [{
531
+ variant: "link",
532
+ class: "h-auto px-0"
533
+ }],
534
+ defaultVariants: {
535
+ variant: "default",
536
+ size: "default"
537
+ }
538
+ });
539
+ // src/ui/button/button.component.tsx
540
+ function B({ className: e, variant: t, size: a, asChild: o = !1, loading: s = !1, disabled: c = s, children: l, ...u }) {
541
+ let d = o ? S.Root : "button";
542
+ return /* @__PURE__ */ r(d, {
543
+ "data-slot": "button",
544
+ className: M(z({
545
+ variant: t,
546
+ size: a
547
+ }), e),
548
+ disabled: o ? void 0 : c,
549
+ "aria-busy": s || void 0,
550
+ ...u,
551
+ children: s && !o ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(pe, {
552
+ className: "animate-spin",
553
+ "aria-hidden": "true"
554
+ }), l] }) : l
555
+ });
556
+ }
557
+ // src/ui/choice/checkbox.component.tsx
558
+ var ot = "fill-none stroke-current [stroke-dasharray:1] [stroke-linecap:round] [stroke-linejoin:round] [stroke-width:2.4] transition-[stroke-dashoffset] ease-emphasised motion-reduce:transition-none";
559
+ function st({ className: e, ...t }) {
560
+ return /* @__PURE__ */ r(c.Root, {
561
+ "data-slot": "checkbox",
562
+ className: M("peer group/checkbox grid size-4 shrink-0 cursor-pointer place-content-center rounded-[4px] border border-input bg-background text-primary-foreground shadow-xs outline-none", "transition-[background-color,border-color] duration-150 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary", e),
563
+ ...t,
564
+ children: /* @__PURE__ */ r(c.Indicator, {
565
+ forceMount: !0,
566
+ className: "grid place-content-center",
567
+ children: /* @__PURE__ */ i("svg", {
568
+ viewBox: "0 0 16 16",
569
+ "aria-hidden": "true",
570
+ className: "size-3",
571
+ children: [/* @__PURE__ */ r("path", {
572
+ d: "M3.5 8.5 L6.5 11.5 L12.5 4.5",
573
+ pathLength: 1,
574
+ className: M(ot, "duration-200 [stroke-dashoffset:1] group-data-[state=checked]/checkbox:[stroke-dashoffset:0]")
575
+ }), /* @__PURE__ */ r("path", {
576
+ d: "M4 8 L12 8",
577
+ pathLength: 1,
578
+ className: M(ot, "duration-200 [stroke-dashoffset:1] group-data-[state=indeterminate]/checkbox:[stroke-dashoffset:0] group-data-[state=indeterminate]/checkbox:delay-75")
579
+ })]
580
+ })
581
+ })
582
+ });
583
+ }
584
+ // src/ui/choice/radio-group.component.tsx
585
+ function ct({ className: e, ...t }) {
586
+ return /* @__PURE__ */ r(v.Root, {
587
+ "data-slot": "radio-group",
588
+ className: M("grid gap-2.5", e),
589
+ ...t
590
+ });
591
+ }
592
+ function lt({ className: e, ...t }) {
593
+ return /* @__PURE__ */ r(v.Item, {
594
+ "data-slot": "radio-group-item",
595
+ className: M("peer group/radio grid size-4 shrink-0 cursor-pointer place-content-center rounded-full border border-input bg-background shadow-xs outline-none", "transition-[background-color,border-color] duration-200 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:border-primary data-[state=checked]:bg-primary", e),
596
+ ...t,
597
+ children: /* @__PURE__ */ r(v.Indicator, {
598
+ forceMount: !0,
599
+ className: "size-1.5 scale-0 rounded-full bg-primary-foreground opacity-0 transition-[opacity,scale] duration-200 ease-emphasised group-data-[state=checked]/radio:scale-100 group-data-[state=checked]/radio:opacity-100 motion-reduce:transition-none"
600
+ })
601
+ });
602
+ }
603
+ // src/ui/choice/slider.component.tsx
604
+ function ut({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100, onPointerDown: s, onPointerMove: c, onPointerUp: l, ...u }) {
605
+ let [d, f] = k(!1), p = (t ?? n ?? [a]).length, m = u["aria-label"];
606
+ return /* @__PURE__ */ i(x.Root, {
607
+ "data-slot": "slider",
608
+ value: t,
609
+ defaultValue: n,
610
+ min: a,
611
+ max: o,
612
+ "data-dragging": d || void 0,
613
+ onPointerDown: (e) => {
614
+ f(!1), s?.(e);
615
+ },
616
+ onPointerMove: (e) => {
617
+ e.buttons > 0 && f(!0), c?.(e);
618
+ },
619
+ onPointerUp: (e) => {
620
+ f(!1), l?.(e);
621
+ },
622
+ className: M("group/slider relative flex w-full touch-none select-none items-center data-disabled:opacity-50", "not-data-dragging:[&>span:has([role=slider])]:transition-[left] not-data-dragging:[&>span:has([role=slider])]:duration-200 not-data-dragging:[&>span:has([role=slider])]:ease-emphasised", "motion-reduce:[&>span:has([role=slider])]:transition-none", e),
623
+ ...u,
624
+ children: [/* @__PURE__ */ r(x.Track, {
625
+ className: "relative h-1.5 grow overflow-hidden rounded-full bg-muted",
626
+ children: /* @__PURE__ */ r(x.Range, { className: "absolute h-full bg-primary transition-[left,right] duration-200 ease-emphasised group-data-dragging/slider:transition-none motion-reduce:transition-none" })
627
+ }), Array.from({ length: p }, (e, t) => /* @__PURE__ */ r(x.Thumb, {
628
+ "aria-label": m,
629
+ className: "block size-4 cursor-grab rounded-full border border-primary bg-background shadow-xs outline-none focus-visible:ring-3 focus-visible:ring-ring/25"
630
+ }, t))]
631
+ });
632
+ }
633
+ // src/ui/choice/switch.component.tsx
634
+ function dt({ className: e, ...t }) {
635
+ return /* @__PURE__ */ r(te.Root, {
636
+ "data-slot": "switch",
637
+ className: M("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full bg-input p-0.5 outline-none transition-colors duration-200 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary", e),
638
+ ...t,
639
+ children: /* @__PURE__ */ r(te.Thumb, { className: "block size-4 rounded-full bg-white shadow-xs transition-transform duration-200 ease-emphasised data-[state=checked]:translate-x-4 motion-reduce:transition-none" })
640
+ });
641
+ }
642
+ // src/ui/active-indicator/active-indicator.hook.ts
643
+ function ft(e) {
644
+ let t = Oe(null), n = Oe(void 0), r = Te((r) => {
645
+ if (n.current?.(), n.current = void 0, t.current = r, !r) return;
646
+ function i() {
647
+ if (!r) return;
648
+ let t = r.querySelector(e);
649
+ t ? (r.style.setProperty("--indicator-left", `${t.offsetLeft}px`), r.style.setProperty("--indicator-top", `${t.offsetTop}px`), r.style.setProperty("--indicator-width", `${t.offsetWidth}px`), r.style.setProperty("--indicator-height", `${t.offsetHeight}px`), r.dataset.indicator !== "ready" && (r.dataset.indicator = "placed", requestAnimationFrame(() => {
650
+ r.dataset.indicator === "placed" && (r.dataset.indicator = "ready");
651
+ }))) : r.dataset.indicator = "none";
652
+ }
653
+ i();
654
+ let a = new MutationObserver(i);
655
+ a.observe(r, {
656
+ subtree: !0,
657
+ attributes: !0,
658
+ attributeFilter: ["data-state"],
659
+ childList: !0
660
+ });
661
+ let o = new ResizeObserver(i);
662
+ o.observe(r), n.current = () => {
663
+ a.disconnect(), o.disconnect();
664
+ };
665
+ }, [e]);
666
+ return O(() => () => n.current?.(), []), r;
667
+ }
668
+ // src/ui/active-indicator/active-indicator.recipe.ts
669
+ var pt = "pointer-events-none absolute left-(--indicator-left) top-(--indicator-top) h-(--indicator-height) w-(--indicator-width) group-data-[indicator=ready]/indicator:transition-[left,top,width,height] group-data-[indicator=ready]/indicator:duration-250 group-data-[indicator=ready]/indicator:ease-emphasised group-data-[indicator=none]/indicator:opacity-0 group-not-data-indicator/indicator:opacity-0 motion-reduce:transition-none";
670
+ // src/ui/choice/toggle-group.component.tsx
671
+ function mt({ className: e, children: t, ...n }) {
672
+ let a = ft("[data-state=on]"), o = n.type === "single";
673
+ return /* @__PURE__ */ i(ne.Root, {
674
+ ref: o ? a : void 0,
675
+ "data-slot": "toggle-group",
676
+ "data-mode": n.type,
677
+ className: M("group/indicator relative inline-flex w-fit items-center gap-0.5 rounded-md bg-muted p-[3px]", e),
678
+ ...n,
679
+ children: [o && /* @__PURE__ */ r("span", {
680
+ "aria-hidden": "true",
681
+ "data-slot": "toggle-group-indicator",
682
+ className: M(pt, "rounded-sm bg-background shadow-xs")
683
+ }), t]
684
+ });
685
+ }
686
+ function ht({ className: e, ...t }) {
687
+ return /* @__PURE__ */ r(ne.Item, {
688
+ "data-slot": "toggle-group-item",
689
+ className: M("inline-flex h-[calc(var(--control-h)-6px)] cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-sm px-3 text-[13px] font-medium text-muted-foreground outline-none", "hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 [&_svg]:size-4", "relative transition-colors duration-150 data-[state=on]:text-foreground motion-reduce:transition-none", "in-data-[mode=multiple]:data-[state=on]:bg-background in-data-[mode=multiple]:data-[state=on]:shadow-xs", e),
690
+ ...t
691
+ });
692
+ }
693
+ // src/ui/feedback/alert.component.tsx
694
+ var gt = {
695
+ info: {
696
+ box: "border-border bg-card",
697
+ icon: "text-info",
698
+ Icon: fe
699
+ },
700
+ success: {
701
+ box: "border-border bg-card",
702
+ icon: "text-success",
703
+ Icon: ue
704
+ },
705
+ warning: {
706
+ box: "border-[color-mix(in_oklab,var(--warning)_35%,var(--border))] bg-warning-soft",
707
+ icon: "text-warning",
708
+ Icon: xe
709
+ },
710
+ danger: {
711
+ box: "border-[color-mix(in_oklab,var(--destructive)_40%,var(--border))] bg-destructive-soft",
712
+ icon: "text-destructive",
713
+ Icon: xe
714
+ }
715
+ };
716
+ function _t({ tone: e = "info", title: t, icon: n, children: a, className: o, ...s }) {
717
+ let { box: c, icon: l, Icon: u } = gt[e];
718
+ return /* @__PURE__ */ i("div", {
719
+ "data-slot": "alert",
720
+ role: e === "danger" || e === "warning" ? "alert" : "status",
721
+ className: M("flex gap-3 rounded-lg border px-4 py-3.5", c, o),
722
+ ...s,
723
+ children: [/* @__PURE__ */ r("span", {
724
+ "aria-hidden": "true",
725
+ className: M("mt-px flex shrink-0 [&_svg]:size-[18px]", l),
726
+ children: n ?? /* @__PURE__ */ r(u, {})
727
+ }), /* @__PURE__ */ i("div", {
728
+ className: "flex flex-col gap-0.5",
729
+ children: [/* @__PURE__ */ r("p", {
730
+ className: "m-0 type-h4",
731
+ children: t
732
+ }), a && /* @__PURE__ */ r("div", {
733
+ className: "text-[13px] text-muted-foreground",
734
+ children: a
735
+ })]
736
+ })]
737
+ });
738
+ }
739
+ // src/ui/feedback/empty-state.component.tsx
740
+ function vt({ title: e, description: t, icon: n, action: a, className: o, ...s }) {
741
+ return /* @__PURE__ */ i("div", {
742
+ "data-slot": "empty-state",
743
+ className: M("flex flex-col items-center gap-2 rounded-xl border-[1.5px] border-dashed border-input p-6 text-center", o),
744
+ ...s,
745
+ children: [
746
+ /* @__PURE__ */ r("span", {
747
+ "aria-hidden": "true",
748
+ className: "grid size-10 place-items-center rounded-[10px] bg-brand-soft text-brand-text [&_svg]:size-5",
749
+ children: n ?? /* @__PURE__ */ r(ye, {})
750
+ }),
751
+ /* @__PURE__ */ r("p", {
752
+ className: "m-0 type-h4",
753
+ children: e
754
+ }),
755
+ t && /* @__PURE__ */ r("p", {
756
+ className: "m-0 max-w-sm text-[13px] text-muted-foreground",
757
+ children: t
758
+ }),
759
+ a && /* @__PURE__ */ r("div", {
760
+ className: "mt-1",
761
+ children: a
762
+ })
763
+ ]
764
+ });
765
+ }
766
+ // src/ui/feedback/progress.component.tsx
767
+ function yt({ className: e, value: t, max: n = 100, ...i }) {
768
+ let a = t == null ? 0 : Math.min(100, Math.max(0, t / n * 100));
769
+ return /* @__PURE__ */ r(_.Root, {
770
+ "data-slot": "progress",
771
+ value: t,
772
+ max: n,
773
+ className: M("relative h-1.5 w-full overflow-hidden rounded-full bg-muted", e),
774
+ ...i,
775
+ children: /* @__PURE__ */ r(_.Indicator, {
776
+ className: "h-full rounded-full bg-brand transition-[width]",
777
+ style: { width: `${a}%` }
778
+ })
779
+ });
780
+ }
781
+ // src/ui/feedback/skeleton.component.tsx
782
+ function bt({ className: e, ...t }) {
783
+ return /* @__PURE__ */ r("div", {
784
+ "data-slot": "skeleton",
785
+ "aria-hidden": "true",
786
+ className: M("animate-pulse rounded-sm bg-muted", e),
787
+ ...t
788
+ });
789
+ }
790
+ // src/ui/feedback/spinner.component.tsx
791
+ function xt({ className: e, label: t = "Loading", ...n }) {
792
+ return /* @__PURE__ */ r(pe, {
793
+ "data-slot": "spinner",
794
+ role: "status",
795
+ "aria-label": t,
796
+ className: M("size-4 animate-spin text-muted-foreground", e),
797
+ ...n
798
+ });
799
+ }
800
+ // src/ui/feedback/toaster.component.tsx
801
+ function St(e) {
802
+ return /* @__PURE__ */ r(Ae, {
803
+ className: "toaster group",
804
+ toastOptions: { classNames: {
805
+ toast: "group flex w-[360px] items-start gap-3 rounded-lg border bg-popover px-4 py-3.5 font-sans text-popover-foreground shadow-lg",
806
+ title: "text-[15px] font-semibold",
807
+ description: "text-[13px] text-muted-foreground",
808
+ success: "[&_[data-icon]]:text-success",
809
+ error: "[&_[data-icon]]:text-destructive",
810
+ info: "[&_[data-icon]]:text-info",
811
+ warning: "[&_[data-icon]]:text-warning"
812
+ } },
813
+ ...e
814
+ });
815
+ }
816
+ // src/ui/field/control.recipe.ts
817
+ var V = "w-full min-w-0 rounded-md border border-input bg-background text-(length:--control-fs) text-foreground shadow-xs outline-none transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/25 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 disabled:cursor-not-allowed disabled:opacity-50", Ct = Ce(null);
818
+ function H(e = {}) {
819
+ let t = Ee(Ct);
820
+ return t ? {
821
+ id: e.id ?? t.id,
822
+ "aria-describedby": e["aria-describedby"] ?? (t.describedBy || void 0),
823
+ "aria-invalid": e["aria-invalid"] ?? (t.invalid || void 0)
824
+ } : e;
825
+ }
826
+ // src/ui/field/label.component.tsx
827
+ function wt({ className: e, ...t }) {
828
+ return /* @__PURE__ */ r(p.Root, {
829
+ "data-slot": "label",
830
+ className: M("flex select-none items-center gap-2 text-[13px] font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
831
+ ...t
832
+ });
833
+ }
834
+ // src/ui/field/field.component.tsx
835
+ function Tt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
836
+ let c = De(), l = a ?? c, u = t ? `${l}-hint` : "", d = n ? `${l}-error` : "", f = [u, d].filter(Boolean).join(" ");
837
+ return /* @__PURE__ */ r(Ct, {
838
+ value: {
839
+ id: l,
840
+ describedBy: f,
841
+ invalid: !!n
842
+ },
843
+ children: /* @__PURE__ */ i("div", {
844
+ "data-slot": "field",
845
+ className: M("flex flex-col gap-1.5", s),
846
+ children: [
847
+ /* @__PURE__ */ r(wt, {
848
+ htmlFor: l,
849
+ children: e
850
+ }),
851
+ o,
852
+ t && /* @__PURE__ */ r("p", {
853
+ id: u,
854
+ className: "m-0 text-xs text-muted-foreground",
855
+ children: t
856
+ }),
857
+ n && /* @__PURE__ */ r("p", {
858
+ id: d,
859
+ className: "m-0 text-xs text-destructive",
860
+ children: n
861
+ })
862
+ ]
863
+ })
864
+ });
865
+ }
866
+ // src/ui/field/input.component.tsx
867
+ function U({ className: e, startIcon: t, type: n = "text", ...a }) {
868
+ let o = H(a), s = /* @__PURE__ */ r("input", {
869
+ "data-slot": "input",
870
+ type: n,
871
+ className: M(V, "h-(--control-h) px-3 file:border-0 file:bg-transparent file:text-sm file:font-medium", t ? "ps-[34px]" : "", e),
872
+ ...a,
873
+ ...o
874
+ });
875
+ return t ? /* @__PURE__ */ i("span", {
876
+ className: "relative flex w-full items-center",
877
+ children: [/* @__PURE__ */ r("span", {
878
+ "aria-hidden": "true",
879
+ className: "pointer-events-none absolute start-[11px] flex text-muted-foreground [&_svg]:size-4",
880
+ children: t
881
+ }), s]
882
+ }) : s;
883
+ }
884
+ // src/ui/field/select.component.tsx
885
+ var Et = b.Root, Dt = b.Group, Ot = b.Value;
886
+ function kt({ className: e, children: t, ...n }) {
887
+ let a = H(n);
888
+ return /* @__PURE__ */ i(b.Trigger, {
889
+ "data-slot": "select-trigger",
890
+ className: M(V, "flex h-(--control-h) cursor-pointer items-center justify-between gap-2 px-3 text-start data-placeholder:text-muted-foreground [&>span]:truncate", e),
891
+ ...n,
892
+ ...a,
893
+ children: [t, /* @__PURE__ */ r(b.Icon, {
894
+ asChild: !0,
895
+ children: /* @__PURE__ */ r(ae, {
896
+ className: "size-4 shrink-0 text-muted-foreground",
897
+ "aria-hidden": "true"
898
+ })
899
+ })]
900
+ });
901
+ }
902
+ function At({ className: e, children: t, position: n = "popper", ...i }) {
903
+ return /* @__PURE__ */ r(b.Portal, { children: /* @__PURE__ */ r(b.Content, {
904
+ "data-slot": "select-content",
905
+ position: n,
906
+ className: M("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-md", "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", n === "popper" && "w-full min-w-(--radix-select-trigger-width) data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1", e),
907
+ ...i,
908
+ children: /* @__PURE__ */ r(b.Viewport, {
909
+ className: "p-1",
910
+ children: t
911
+ })
912
+ }) });
913
+ }
914
+ function jt({ className: e, ...t }) {
915
+ return /* @__PURE__ */ r(b.Label, {
916
+ "data-slot": "select-label",
917
+ className: M("px-2.5 py-1.5 text-xs font-medium text-muted-foreground", e),
918
+ ...t
919
+ });
920
+ }
921
+ function Mt({ className: e, children: t, ...n }) {
922
+ return /* @__PURE__ */ i(b.Item, {
923
+ "data-slot": "select-item",
924
+ className: M("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 ps-2.5 pe-8 text-[13.5px] outline-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50", e),
925
+ ...n,
926
+ children: [/* @__PURE__ */ r(b.ItemText, { children: t }), /* @__PURE__ */ r("span", {
927
+ className: "absolute end-2 flex size-4 items-center justify-center",
928
+ children: /* @__PURE__ */ r(b.ItemIndicator, { children: /* @__PURE__ */ r(T, {
929
+ className: "size-4",
930
+ "aria-hidden": "true"
931
+ }) })
932
+ })]
933
+ });
934
+ }
935
+ function Nt({ className: e, ...t }) {
936
+ return /* @__PURE__ */ r(b.Separator, {
937
+ "data-slot": "select-separator",
938
+ className: M("-mx-1 my-1 h-px bg-border", e),
939
+ ...t
940
+ });
941
+ }
942
+ // src/ui/field/textarea.component.tsx
943
+ function Pt({ className: e, ...t }) {
944
+ let n = H(t);
945
+ return /* @__PURE__ */ r("textarea", {
946
+ "data-slot": "textarea",
947
+ className: M(V, "min-h-20 resize-y px-3 py-2.5 leading-normal", e),
948
+ ...t,
949
+ ...n
950
+ });
951
+ }
952
+ // src/ui/layout/accordion.component.tsx
953
+ function Ft({ className: e, ...t }) {
954
+ return /* @__PURE__ */ r(a.Root, {
955
+ "data-slot": "accordion",
956
+ className: M("border-t", e),
957
+ ...t
958
+ });
959
+ }
960
+ function It({ className: e, ...t }) {
961
+ return /* @__PURE__ */ r(a.Item, {
962
+ "data-slot": "accordion-item",
963
+ className: M("border-b", e),
964
+ ...t
965
+ });
966
+ }
967
+ function Lt({ className: e, children: t, ...n }) {
968
+ return /* @__PURE__ */ r(a.Header, {
969
+ className: "m-0 flex",
970
+ children: /* @__PURE__ */ i(a.Trigger, {
971
+ "data-slot": "accordion-trigger",
972
+ className: M("group flex flex-1 cursor-pointer items-center justify-between gap-4 py-3 text-start type-h4 outline-none transition-colors duration-150 hover:text-brand-text focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none", e),
973
+ ...n,
974
+ children: [t, /* @__PURE__ */ i("svg", {
975
+ viewBox: "0 0 16 16",
976
+ "aria-hidden": "true",
977
+ className: "size-4 shrink-0 text-muted-foreground transition-transform duration-300 ease-emphasised group-data-[state=open]:rotate-180 motion-reduce:transition-none",
978
+ children: [/* @__PURE__ */ r("rect", {
979
+ x: "3",
980
+ y: "7.25",
981
+ width: "10",
982
+ height: "1.5",
983
+ rx: "0.75",
984
+ fill: "currentColor"
985
+ }), /* @__PURE__ */ r("rect", {
986
+ x: "7.25",
987
+ y: "3",
988
+ width: "1.5",
989
+ height: "10",
990
+ rx: "0.75",
991
+ fill: "currentColor",
992
+ className: "origin-center transition-[scale] duration-300 ease-emphasised [transform-box:fill-box] group-data-[state=open]:scale-y-0 motion-reduce:transition-none"
993
+ })]
994
+ })]
995
+ })
996
+ });
997
+ }
998
+ function Rt({ className: e, children: t, ...n }) {
999
+ return /* @__PURE__ */ r(a.Content, {
1000
+ "data-slot": "accordion-content",
1001
+ className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down motion-reduce:animate-none",
1002
+ ...n,
1003
+ children: /* @__PURE__ */ r("div", {
1004
+ className: M("pb-3", e),
1005
+ children: t
1006
+ })
1007
+ });
1008
+ }
1009
+ // src/ui/layout/card.component.tsx
1010
+ function zt({ className: e, ...t }) {
1011
+ return /* @__PURE__ */ r("div", {
1012
+ "data-slot": "card",
1013
+ className: M("flex flex-col overflow-hidden rounded-xl border bg-card text-card-foreground shadow-xs", e),
1014
+ ...t
1015
+ });
1016
+ }
1017
+ function Bt({ className: e, ...t }) {
1018
+ return /* @__PURE__ */ r("div", {
1019
+ "data-slot": "card-header",
1020
+ className: M("flex flex-col gap-1 px-5 pt-5", e),
1021
+ ...t
1022
+ });
1023
+ }
1024
+ function Vt({ className: e, children: t, ...n }) {
1025
+ return /* @__PURE__ */ r("h3", {
1026
+ "data-slot": "card-title",
1027
+ className: M("m-0 type-h4", e),
1028
+ ...n,
1029
+ children: t
1030
+ });
1031
+ }
1032
+ function Ht({ className: e, ...t }) {
1033
+ return /* @__PURE__ */ r("p", {
1034
+ "data-slot": "card-description",
1035
+ className: M("m-0 text-[13px] text-muted-foreground", e),
1036
+ ...t
1037
+ });
1038
+ }
1039
+ function Ut({ className: e, ...t }) {
1040
+ return /* @__PURE__ */ r("div", {
1041
+ "data-slot": "card-content",
1042
+ className: M("px-5 py-4", e),
1043
+ ...t
1044
+ });
1045
+ }
1046
+ function Wt({ className: e, ...t }) {
1047
+ return /* @__PURE__ */ r("div", {
1048
+ "data-slot": "card-footer",
1049
+ className: M("mt-auto flex items-center justify-between gap-3 border-t bg-muted px-5 py-3", e),
1050
+ ...t
1051
+ });
1052
+ }
1053
+ // src/ui/layout/kbd.component.tsx
1054
+ function Gt({ className: e, ...t }) {
1055
+ return /* @__PURE__ */ r("kbd", {
1056
+ "data-slot": "kbd",
1057
+ className: M("inline-flex h-5 min-w-5 items-center justify-center rounded-[5px] border border-b-2 bg-muted px-1.5 font-mono text-[11px] text-muted-foreground", e),
1058
+ ...t
1059
+ });
1060
+ }
1061
+ // src/ui/layout/resizable.component.tsx
1062
+ function Kt({ className: e, ...t }) {
1063
+ return /* @__PURE__ */ r(je, {
1064
+ "data-slot": "resizable-panel-group",
1065
+ className: M("flex size-full", e),
1066
+ ...t
1067
+ });
1068
+ }
1069
+ function qt(e) {
1070
+ return /* @__PURE__ */ r(Me, {
1071
+ "data-slot": "resizable-panel",
1072
+ ...e
1073
+ });
1074
+ }
1075
+ function Jt({ className: e, ...t }) {
1076
+ return /* @__PURE__ */ r(Ne, {
1077
+ "data-slot": "resizable-handle",
1078
+ className: M("relative flex w-px shrink-0 items-center justify-center bg-border outline-none after:absolute after:inset-y-0 after:start-1/2 after:w-2 after:-translate-x-1/2", "hover:bg-ring focus-visible:bg-ring aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full", e),
1079
+ ...t
1080
+ });
1081
+ }
1082
+ // src/ui/layout/scroll-area.component.tsx
1083
+ function Yt({ className: e, children: t, ...n }) {
1084
+ return /* @__PURE__ */ i(y.Root, {
1085
+ "data-slot": "scroll-area",
1086
+ className: M("relative overflow-hidden", e),
1087
+ ...n,
1088
+ children: [
1089
+ /* @__PURE__ */ r(y.Viewport, {
1090
+ className: "size-full rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-ring",
1091
+ children: t
1092
+ }),
1093
+ /* @__PURE__ */ r(Xt, {}),
1094
+ /* @__PURE__ */ r(Xt, { orientation: "horizontal" }),
1095
+ /* @__PURE__ */ r(y.Corner, {})
1096
+ ]
1097
+ });
1098
+ }
1099
+ function Xt({ className: e, orientation: t = "vertical", ...n }) {
1100
+ return /* @__PURE__ */ r(y.Scrollbar, {
1101
+ "data-slot": "scroll-area-scrollbar",
1102
+ orientation: t,
1103
+ className: M("flex touch-none select-none p-px", t === "vertical" ? "h-full w-2" : "h-2 flex-col", e),
1104
+ ...n,
1105
+ children: /* @__PURE__ */ r(y.Thumb, { className: "relative flex-1 rounded-full bg-input" })
1106
+ });
1107
+ }
1108
+ // src/ui/layout/separator.component.tsx
1109
+ function Zt({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
1110
+ return /* @__PURE__ */ r(ee.Root, {
1111
+ "data-slot": "separator",
1112
+ orientation: t,
1113
+ decorative: n,
1114
+ className: M("shrink-0 bg-border", t === "horizontal" ? "h-px w-full" : "w-px self-stretch", e),
1115
+ ...i
1116
+ });
1117
+ }
1118
+ // src/ui/layout/table.component.tsx
1119
+ function Qt({ className: e, ...t }) {
1120
+ return /* @__PURE__ */ r("div", {
1121
+ "data-slot": "table-container",
1122
+ className: "relative w-full overflow-x-auto",
1123
+ children: /* @__PURE__ */ r("table", {
1124
+ "data-slot": "table",
1125
+ className: M("w-full caption-bottom border-collapse text-[13px]", e),
1126
+ ...t
1127
+ })
1128
+ });
1129
+ }
1130
+ function $t(e) {
1131
+ return /* @__PURE__ */ r("thead", {
1132
+ "data-slot": "table-header",
1133
+ ...e
1134
+ });
1135
+ }
1136
+ function en(e) {
1137
+ return /* @__PURE__ */ r("tbody", {
1138
+ "data-slot": "table-body",
1139
+ ...e
1140
+ });
1141
+ }
1142
+ function tn({ className: e, ...t }) {
1143
+ return /* @__PURE__ */ r("tr", {
1144
+ "data-slot": "table-row",
1145
+ className: M("border-b transition-colors hover:bg-muted/60 data-[state=selected]:bg-muted", e),
1146
+ ...t
1147
+ });
1148
+ }
1149
+ function W({ className: e, ...t }) {
1150
+ return /* @__PURE__ */ r("th", {
1151
+ "data-slot": "table-head",
1152
+ className: M("h-9 whitespace-nowrap px-3 text-start align-middle font-medium text-muted-foreground", e),
1153
+ ...t
1154
+ });
1155
+ }
1156
+ function G({ className: e, ...t }) {
1157
+ return /* @__PURE__ */ r("td", {
1158
+ "data-slot": "table-cell",
1159
+ className: M("px-3 py-[11px] align-middle", e),
1160
+ ...t
1161
+ });
1162
+ }
1163
+ function nn({ className: e, ...t }) {
1164
+ return /* @__PURE__ */ r("caption", {
1165
+ "data-slot": "table-caption",
1166
+ className: M("mt-3 text-xs text-muted-foreground", e),
1167
+ ...t
1168
+ });
1169
+ }
1170
+ // src/ui/overlay/overlay.recipe.ts
1171
+ var K = "fixed inset-0 z-50 backdrop-blur-[5px] backdrop-contrast-[.5] backdrop-saturate-[.3] backdrop-brightness-[1.3] dark:backdrop-brightness-[.7] data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out", q = "data-[state=open]:animate-zoom-in data-[state=delayed-open]:animate-zoom-in data-[state=instant-open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=delayed-open]:animate-fade-in motion-reduce:data-[state=instant-open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", rn = {
1172
+ start: "data-[state=open]:animate-sheet-in-start data-[state=closed]:animate-sheet-out-start motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
1173
+ end: "data-[state=open]:animate-sheet-in-end data-[state=closed]:animate-sheet-out-end motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
1174
+ top: "data-[state=open]:animate-sheet-in-top data-[state=closed]:animate-sheet-out-top motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
1175
+ bottom: "data-[state=open]:animate-sheet-in-bottom data-[state=closed]:animate-sheet-out-bottom motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out"
1176
+ }, an = o.Root, on = o.Trigger;
1177
+ function sn({ className: e, ...t }) {
1178
+ return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className: K }), /* @__PURE__ */ r(o.Content, {
1179
+ "data-slot": "alert-dialog-content",
1180
+ className: M("fixed start-1/2 top-1/2 z-50 grid w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border bg-popover p-6 text-popover-foreground shadow-lg outline-none rtl:translate-x-1/2", q, e),
1181
+ ...t
1182
+ })] });
1183
+ }
1184
+ function cn({ className: e, ...t }) {
1185
+ return /* @__PURE__ */ r(o.Title, {
1186
+ "data-slot": "alert-dialog-title",
1187
+ className: M("m-0 font-display text-lg font-bold leading-tight", e),
1188
+ ...t
1189
+ });
1190
+ }
1191
+ function ln({ className: e, ...t }) {
1192
+ return /* @__PURE__ */ r(o.Description, {
1193
+ "data-slot": "alert-dialog-description",
1194
+ className: M("m-0 text-sm text-muted-foreground", e),
1195
+ ...t
1196
+ });
1197
+ }
1198
+ function un({ className: e, variant: t = "default", ...n }) {
1199
+ return /* @__PURE__ */ r(o.Action, {
1200
+ "data-slot": "alert-dialog-action",
1201
+ className: M(z({ variant: t }), e),
1202
+ ...n
1203
+ });
1204
+ }
1205
+ function dn({ className: e, ...t }) {
1206
+ return /* @__PURE__ */ r(o.Cancel, {
1207
+ "data-slot": "alert-dialog-cancel",
1208
+ className: M(z({ variant: "outline" }), e),
1209
+ ...t
1210
+ });
1211
+ }
1212
+ // src/ui/overlay/dialog.component.tsx
1213
+ var fn = d.Root, pn = d.Trigger, mn = d.Close;
1214
+ function hn({ className: e, children: t, showClose: n = !0, ...a }) {
1215
+ return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: K }), /* @__PURE__ */ i(d.Content, {
1216
+ "data-slot": "dialog-content",
1217
+ className: M("fixed start-1/2 top-1/2 z-50 grid w-[calc(100%-2rem)] max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border bg-popover p-6 text-popover-foreground shadow-lg outline-none rtl:translate-x-1/2", q, e),
1218
+ ...a,
1219
+ children: [t, n && /* @__PURE__ */ i(d.Close, {
1220
+ className: "absolute end-4 top-4 cursor-pointer rounded-sm text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",
1221
+ children: [/* @__PURE__ */ r(D, {
1222
+ className: "size-4",
1223
+ "aria-hidden": "true"
1224
+ }), /* @__PURE__ */ r("span", {
1225
+ className: "sr-only",
1226
+ children: "Close"
1227
+ })]
1228
+ })]
1229
+ })] });
1230
+ }
1231
+ function gn({ className: e, ...t }) {
1232
+ return /* @__PURE__ */ r("div", {
1233
+ "data-slot": "dialog-header",
1234
+ className: M("flex flex-col gap-1.5 text-start", e),
1235
+ ...t
1236
+ });
1237
+ }
1238
+ function _n({ className: e, ...t }) {
1239
+ return /* @__PURE__ */ r("div", {
1240
+ "data-slot": "dialog-footer",
1241
+ className: M("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
1242
+ ...t
1243
+ });
1244
+ }
1245
+ function vn({ className: e, ...t }) {
1246
+ return /* @__PURE__ */ r(d.Title, {
1247
+ "data-slot": "dialog-title",
1248
+ className: M("m-0 font-display text-lg font-bold leading-tight", e),
1249
+ ...t
1250
+ });
1251
+ }
1252
+ function yn({ className: e, ...t }) {
1253
+ return /* @__PURE__ */ r(d.Description, {
1254
+ "data-slot": "dialog-description",
1255
+ className: M("m-0 text-sm text-muted-foreground", e),
1256
+ ...t
1257
+ });
1258
+ }
1259
+ // src/ui/overlay/drawer.component.tsx
1260
+ var bn = A.Root, xn = A.Trigger, Sn = A.Close;
1261
+ function Cn({ className: e, children: t, ...n }) {
1262
+ return /* @__PURE__ */ i(A.Portal, { children: [/* @__PURE__ */ r(A.Overlay, { className: K }), /* @__PURE__ */ i(A.Content, {
1263
+ "data-slot": "drawer-content",
1264
+ className: M("fixed inset-x-0 bottom-0 z-50 flex max-h-[85vh] flex-col gap-3.5 rounded-t-3xl border-t bg-popover px-5 pt-2.5 pb-8 text-popover-foreground outline-none", e),
1265
+ ...n,
1266
+ children: [/* @__PURE__ */ r("div", {
1267
+ "aria-hidden": "true",
1268
+ className: "mx-auto h-[5px] w-10 shrink-0 rounded-full bg-input"
1269
+ }), t]
1270
+ })] });
1271
+ }
1272
+ function wn({ className: e, ...t }) {
1273
+ return /* @__PURE__ */ r(A.Title, {
1274
+ "data-slot": "drawer-title",
1275
+ className: M("m-0 text-xl font-semibold leading-tight", e),
1276
+ ...t
1277
+ });
1278
+ }
1279
+ function Tn({ className: e, ...t }) {
1280
+ return /* @__PURE__ */ r(A.Description, {
1281
+ "data-slot": "drawer-description",
1282
+ className: M("m-0 text-sm text-muted-foreground", e),
1283
+ ...t
1284
+ });
1285
+ }
1286
+ // src/ui/overlay/popover.component.tsx
1287
+ var En = g.Root, Dn = g.Trigger, On = g.Anchor;
1288
+ function kn({ className: e, align: t = "center", sideOffset: n = 6, ...i }) {
1289
+ return /* @__PURE__ */ r(g.Portal, { children: /* @__PURE__ */ r(g.Content, {
1290
+ "data-slot": "popover-content",
1291
+ align: t,
1292
+ sideOffset: n,
1293
+ className: M("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg border bg-popover p-4 text-popover-foreground shadow-md outline-none", q, e),
1294
+ ...i
1295
+ }) });
1296
+ }
1297
+ // src/ui/overlay/sheet.component.tsx
1298
+ var An = d.Root, jn = d.Trigger, Mn = d.Close, Nn = d.Title, Pn = d.Description, Fn = {
1299
+ start: "inset-y-0 start-0 h-full w-3/4 max-w-sm border-e",
1300
+ end: "inset-y-0 end-0 h-full w-3/4 max-w-sm border-s",
1301
+ top: "inset-x-0 top-0 border-b",
1302
+ bottom: "inset-x-0 bottom-0 border-t"
1303
+ };
1304
+ function In({ className: e, children: t, side: n = "end", ...a }) {
1305
+ return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: K }), /* @__PURE__ */ i(d.Content, {
1306
+ "data-slot": "sheet-content",
1307
+ className: M("fixed z-50 flex flex-col gap-4 bg-popover p-6 text-popover-foreground shadow-lg outline-none", Fn[n], rn[n], e),
1308
+ ...a,
1309
+ children: [t, /* @__PURE__ */ i(d.Close, {
1310
+ className: "absolute end-4 top-4 cursor-pointer rounded-sm text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",
1311
+ children: [/* @__PURE__ */ r(D, {
1312
+ className: "size-4",
1313
+ "aria-hidden": "true"
1314
+ }), /* @__PURE__ */ r("span", {
1315
+ className: "sr-only",
1316
+ children: "Close"
1317
+ })]
1318
+ })]
1319
+ })] });
1320
+ }
1321
+ // src/ui/overlay/tooltip.component.tsx
1322
+ var Ln = w.Provider;
1323
+ function J(e) {
1324
+ return /* @__PURE__ */ r(w.Provider, {
1325
+ delayDuration: 300,
1326
+ children: /* @__PURE__ */ r(w.Root, {
1327
+ "data-slot": "tooltip",
1328
+ ...e
1329
+ })
1330
+ });
1331
+ }
1332
+ var Rn = w.Trigger;
1333
+ function zn({ className: e, sideOffset: t = 6, ...n }) {
1334
+ return /* @__PURE__ */ r(w.Portal, { children: /* @__PURE__ */ r(w.Content, {
1335
+ "data-slot": "tooltip-content",
1336
+ sideOffset: t,
1337
+ className: M("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-sm bg-foreground px-2.5 py-1.5 text-xs text-background", q, e),
1338
+ ...n
1339
+ }) });
1340
+ }
1341
+ // src/ui/menu/menu.recipe.ts
1342
+ var Bn = "z-50 min-w-48 overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", Y = "relative flex cursor-default select-none items-center gap-2.5 rounded-sm px-2.5 py-[7px] text-[13.5px] outline-none transition-colors duration-150 motion-reduce:transition-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-muted-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:[&_svg]:text-destructive", Vn = "ms-auto text-xs tracking-wide text-muted-foreground", Hn = "-mx-1 my-1 h-px bg-border", Un = "px-2.5 py-1.5 text-xs font-medium text-muted-foreground";
1343
+ // src/ui/menu/command.component.tsx
1344
+ function Wn({ className: e, ...t }) {
1345
+ return /* @__PURE__ */ r(j, {
1346
+ "data-slot": "command",
1347
+ className: M("flex size-full flex-col overflow-hidden rounded-lg bg-popover text-popover-foreground", e),
1348
+ ...t
1349
+ });
1350
+ }
1351
+ function Gn({ title: e = "Search", children: t, ...n }) {
1352
+ return /* @__PURE__ */ r(d.Root, {
1353
+ ...n,
1354
+ children: /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: K }), /* @__PURE__ */ i(d.Content, {
1355
+ className: M("fixed start-1/2 top-[18%] z-50 w-[calc(100%-2rem)] max-w-xl -translate-x-1/2 overflow-hidden rounded-xl border bg-popover shadow-lg outline-none rtl:translate-x-1/2", q),
1356
+ children: [
1357
+ /* @__PURE__ */ r(d.Title, {
1358
+ className: "sr-only",
1359
+ children: e
1360
+ }),
1361
+ /* @__PURE__ */ r(d.Description, {
1362
+ className: "sr-only",
1363
+ children: "Type to filter the commands."
1364
+ }),
1365
+ /* @__PURE__ */ r(Wn, { children: t })
1366
+ ]
1367
+ })] })
1368
+ });
1369
+ }
1370
+ function Kn({ className: e, ...t }) {
1371
+ return /* @__PURE__ */ i("div", {
1372
+ "data-slot": "command-input-wrapper",
1373
+ className: "flex h-11 items-center gap-2 border-b px-3",
1374
+ children: [/* @__PURE__ */ r(E, {
1375
+ className: "size-4 shrink-0 text-muted-foreground",
1376
+ "aria-hidden": "true"
1377
+ }), /* @__PURE__ */ r(j.Input, {
1378
+ "data-slot": "command-input",
1379
+ className: M("h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground", e),
1380
+ ...t
1381
+ })]
1382
+ });
1383
+ }
1384
+ function qn({ className: e, ...t }) {
1385
+ return /* @__PURE__ */ r(j.List, {
1386
+ "data-slot": "command-list",
1387
+ className: M("max-h-80 overflow-y-auto p-1", e),
1388
+ ...t
1389
+ });
1390
+ }
1391
+ function Jn({ className: e, ...t }) {
1392
+ return /* @__PURE__ */ r(j.Empty, {
1393
+ "data-slot": "command-empty",
1394
+ className: M("py-6 text-center text-sm text-muted-foreground", e),
1395
+ ...t
1396
+ });
1397
+ }
1398
+ function Yn({ className: e, ...t }) {
1399
+ return /* @__PURE__ */ r(j.Group, {
1400
+ "data-slot": "command-group",
1401
+ className: M("[&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", e),
1402
+ ...t
1403
+ });
1404
+ }
1405
+ function Xn({ className: e, ...t }) {
1406
+ return /* @__PURE__ */ r(j.Item, {
1407
+ "data-slot": "command-item",
1408
+ className: M(Y, "data-[selected=true]:bg-accent", e),
1409
+ ...t
1410
+ });
1411
+ }
1412
+ function Zn({ className: e, ...t }) {
1413
+ return /* @__PURE__ */ r(j.Separator, {
1414
+ "data-slot": "command-separator",
1415
+ className: M(Hn, e),
1416
+ ...t
1417
+ });
1418
+ }
1419
+ function Qn({ className: e, ...t }) {
1420
+ return /* @__PURE__ */ r("span", {
1421
+ "data-slot": "command-shortcut",
1422
+ className: M(Vn, e),
1423
+ ...t
1424
+ });
1425
+ }
1426
+ // src/ui/menu/context-menu.component.tsx
1427
+ var $n = u.Root, er = u.Trigger;
1428
+ function tr({ className: e, ...t }) {
1429
+ return /* @__PURE__ */ r(u.Portal, { children: /* @__PURE__ */ r(u.Content, {
1430
+ "data-slot": "context-menu-content",
1431
+ className: M(Bn, "origin-(--radix-context-menu-content-transform-origin)", e),
1432
+ ...t
1433
+ }) });
1434
+ }
1435
+ function nr({ className: e, variant: t = "default", ...n }) {
1436
+ return /* @__PURE__ */ r(u.Item, {
1437
+ "data-slot": "context-menu-item",
1438
+ "data-variant": t,
1439
+ className: M(Y, e),
1440
+ ...n
1441
+ });
1442
+ }
1443
+ function rr({ className: e, ...t }) {
1444
+ return /* @__PURE__ */ r(u.Separator, {
1445
+ "data-slot": "context-menu-separator",
1446
+ className: M(Hn, e),
1447
+ ...t
1448
+ });
1449
+ }
1450
+ function ir({ className: e, ...t }) {
1451
+ return /* @__PURE__ */ r("span", {
1452
+ "data-slot": "context-menu-shortcut",
1453
+ className: M(Vn, e),
1454
+ ...t
1455
+ });
1456
+ }
1457
+ // src/ui/menu/dropdown-menu.component.tsx
1458
+ var ar = f.Root, or = f.Trigger, sr = f.Group, cr = f.RadioGroup;
1459
+ function lr({ className: e, sideOffset: t = 6, ...n }) {
1460
+ return /* @__PURE__ */ r(f.Portal, { children: /* @__PURE__ */ r(f.Content, {
1461
+ "data-slot": "dropdown-menu-content",
1462
+ sideOffset: t,
1463
+ className: M(Bn, "origin-(--radix-dropdown-menu-content-transform-origin)", e),
1464
+ ...n
1465
+ }) });
1466
+ }
1467
+ function ur({ className: e, variant: t = "default", ...n }) {
1468
+ return /* @__PURE__ */ r(f.Item, {
1469
+ "data-slot": "dropdown-menu-item",
1470
+ "data-variant": t,
1471
+ className: M(Y, e),
1472
+ ...n
1473
+ });
1474
+ }
1475
+ function dr({ className: e, children: t, ...n }) {
1476
+ return /* @__PURE__ */ i(f.RadioItem, {
1477
+ "data-slot": "dropdown-menu-radio-item",
1478
+ className: M(Y, "ps-7", e),
1479
+ ...n,
1480
+ children: [/* @__PURE__ */ r("span", {
1481
+ className: "absolute start-2.5 flex size-2 items-center justify-center",
1482
+ children: /* @__PURE__ */ r(f.ItemIndicator, { children: /* @__PURE__ */ r("span", { className: "block size-2 rounded-full bg-brand" }) })
1483
+ }), t]
1484
+ });
1485
+ }
1486
+ function fr({ className: e, ...t }) {
1487
+ return /* @__PURE__ */ r(f.Label, {
1488
+ "data-slot": "dropdown-menu-label",
1489
+ className: M(Un, e),
1490
+ ...t
1491
+ });
1492
+ }
1493
+ function pr({ className: e, ...t }) {
1494
+ return /* @__PURE__ */ r(f.Separator, {
1495
+ "data-slot": "dropdown-menu-separator",
1496
+ className: M(Hn, e),
1497
+ ...t
1498
+ });
1499
+ }
1500
+ function mr({ className: e, ...t }) {
1501
+ return /* @__PURE__ */ r("span", {
1502
+ "data-slot": "dropdown-menu-shortcut",
1503
+ className: M(Vn, e),
1504
+ ...t
1505
+ });
1506
+ }
1507
+ // src/ui/navigation/breadcrumb.component.tsx
1508
+ function hr({ "aria-label": e = "Breadcrumb", ...t }) {
1509
+ return /* @__PURE__ */ r("nav", {
1510
+ "data-slot": "breadcrumb",
1511
+ "aria-label": e,
1512
+ ...t
1513
+ });
1514
+ }
1515
+ function gr({ className: e, ...t }) {
1516
+ return /* @__PURE__ */ r("ol", {
1517
+ "data-slot": "breadcrumb-list",
1518
+ className: M("m-0 flex list-none flex-wrap items-center gap-2 p-0 text-[13px] text-muted-foreground", e),
1519
+ ...t
1520
+ });
1521
+ }
1522
+ function _r({ className: e, ...t }) {
1523
+ return /* @__PURE__ */ r("li", {
1524
+ "data-slot": "breadcrumb-item",
1525
+ className: M("inline-flex items-center gap-2", e),
1526
+ ...t
1527
+ });
1528
+ }
1529
+ function vr({ asChild: e = !1, className: t, ...n }) {
1530
+ let i = e ? S.Root : "a";
1531
+ return /* @__PURE__ */ r(i, {
1532
+ "data-slot": "breadcrumb-link",
1533
+ className: M("text-inherit no-underline transition-colors hover:text-foreground", t),
1534
+ ...n
1535
+ });
1536
+ }
1537
+ function yr({ className: e, ...t }) {
1538
+ return /* @__PURE__ */ r("span", {
1539
+ "data-slot": "breadcrumb-page",
1540
+ "aria-current": "page",
1541
+ className: M("font-medium text-foreground", e),
1542
+ ...t
1543
+ });
1544
+ }
1545
+ function br({ children: e = "/", ...t }) {
1546
+ return /* @__PURE__ */ r("li", {
1547
+ "data-slot": "breadcrumb-separator",
1548
+ role: "presentation",
1549
+ "aria-hidden": "true",
1550
+ ...t,
1551
+ children: e
1552
+ });
1553
+ }
1554
+ // src/ui/navigation/menu-icon.component.tsx
1555
+ var xr = "origin-center [transform-box:fill-box] motion-reduce:[animation-duration:1ms]";
1556
+ function Sr({ open: e, className: t, ...n }) {
1557
+ return /* @__PURE__ */ i("svg", {
1558
+ "data-slot": "menu-icon",
1559
+ "data-state": e === void 0 ? void 0 : e ? "open" : "closed",
1560
+ viewBox: "0 0 24 24",
1561
+ fill: "currentColor",
1562
+ "aria-hidden": "true",
1563
+ className: M("group/menu-icon size-5", t),
1564
+ ...n,
1565
+ children: [
1566
+ /* @__PURE__ */ r("rect", {
1567
+ x: "4",
1568
+ y: "6",
1569
+ width: "16",
1570
+ height: "2",
1571
+ rx: "1",
1572
+ className: M(xr, "group-data-[state=open]/menu-icon:animate-menu-line-top-open group-data-[state=closed]/menu-icon:animate-menu-line-top-close")
1573
+ }),
1574
+ /* @__PURE__ */ r("rect", {
1575
+ x: "4",
1576
+ y: "11",
1577
+ width: "16",
1578
+ height: "2",
1579
+ rx: "1",
1580
+ className: M(xr, "group-data-[state=open]/menu-icon:animate-menu-line-middle-open group-data-[state=closed]/menu-icon:animate-menu-line-middle-close")
1581
+ }),
1582
+ /* @__PURE__ */ r("rect", {
1583
+ x: "4",
1584
+ y: "16",
1585
+ width: "16",
1586
+ height: "2",
1587
+ rx: "1",
1588
+ className: M(xr, "group-data-[state=open]/menu-icon:animate-menu-line-bottom-open group-data-[state=closed]/menu-icon:animate-menu-line-bottom-close")
1589
+ })
1590
+ ]
1591
+ });
1592
+ }
1593
+ // src/ui/navigation/menubar.component.tsx
1594
+ function Cr({ className: e, ...t }) {
1595
+ return /* @__PURE__ */ r(m.Root, {
1596
+ "data-slot": "menubar",
1597
+ className: M("flex items-center gap-0.5", e),
1598
+ ...t
1599
+ });
1600
+ }
1601
+ var wr = m.Menu;
1602
+ function Tr({ className: e, ...t }) {
1603
+ return /* @__PURE__ */ r(m.Trigger, {
1604
+ "data-slot": "menubar-trigger",
1605
+ className: M("flex h-[26px] cursor-default select-none items-center rounded-sm px-2 text-[13px] outline-none hover:bg-accent focus:bg-accent data-[state=open]:bg-accent", e),
1606
+ ...t
1607
+ });
1608
+ }
1609
+ function Er({ className: e, align: t = "start", sideOffset: n = 6, ...i }) {
1610
+ return /* @__PURE__ */ r(m.Portal, { children: /* @__PURE__ */ r(m.Content, {
1611
+ "data-slot": "menubar-content",
1612
+ align: t,
1613
+ sideOffset: n,
1614
+ className: M("z-50 min-w-48 origin-(--radix-menubar-content-transform-origin) rounded-lg border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", e),
1615
+ ...i
1616
+ }) });
1617
+ }
1618
+ function Dr({ className: e, ...t }) {
1619
+ return /* @__PURE__ */ r(m.Item, {
1620
+ "data-slot": "menubar-item",
1621
+ className: M("relative flex cursor-default select-none items-center gap-2.5 rounded-sm px-2.5 py-1.5 text-[13px] outline-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50", e),
1622
+ ...t
1623
+ });
1624
+ }
1625
+ function Or({ className: e, ...t }) {
1626
+ return /* @__PURE__ */ r("span", {
1627
+ "data-slot": "menubar-shortcut",
1628
+ className: M("ms-auto text-xs text-muted-foreground", e),
1629
+ ...t
1630
+ });
1631
+ }
1632
+ function kr({ className: e, ...t }) {
1633
+ return /* @__PURE__ */ r(m.Separator, {
1634
+ "data-slot": "menubar-separator",
1635
+ className: M("-mx-1 my-1 h-px bg-border", e),
1636
+ ...t
1637
+ });
1638
+ }
1639
+ // src/ui/navigation/navigation-menu.component.tsx
1640
+ function Ar({ className: e, children: t, ...n }) {
1641
+ return /* @__PURE__ */ i(h.Root, {
1642
+ "data-slot": "navigation-menu",
1643
+ className: M("relative flex items-center", e),
1644
+ ...n,
1645
+ children: [t, /* @__PURE__ */ r("div", {
1646
+ className: "absolute start-0 top-full flex justify-center",
1647
+ children: /* @__PURE__ */ r(h.Viewport, { className: "relative mt-2 h-(--radix-navigation-menu-viewport-height) w-full origin-top overflow-hidden rounded-xl border bg-popover text-popover-foreground transition-[width,height] duration-200 motion-reduce:transition-none shadow-lg md:w-(--radix-navigation-menu-viewport-width)" })
1648
+ })]
1649
+ });
1650
+ }
1651
+ function jr({ className: e, ...t }) {
1652
+ return /* @__PURE__ */ r(h.List, {
1653
+ "data-slot": "navigation-menu-list",
1654
+ className: M("m-0 flex list-none items-center gap-1 p-0", e),
1655
+ ...t
1656
+ });
1657
+ }
1658
+ var Mr = h.Item, Nr = "inline-flex h-[calc(var(--control-h)-6px)] cursor-pointer items-center gap-1 rounded-md bg-transparent px-3 text-[15px] font-medium text-foreground no-underline outline-none transition-colors duration-150 motion-reduce:transition-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring data-[state=open]:bg-accent";
1659
+ function Pr({ className: e, children: t, ...n }) {
1660
+ return /* @__PURE__ */ i(h.Trigger, {
1661
+ "data-slot": "navigation-menu-trigger",
1662
+ className: M(Nr, "group", e),
1663
+ ...n,
1664
+ children: [t, /* @__PURE__ */ r(ae, {
1665
+ className: "size-4 transition-transform duration-200 ease-emphasised group-data-[state=open]:rotate-180 motion-reduce:transition-none",
1666
+ "aria-hidden": "true"
1667
+ })]
1668
+ });
1669
+ }
1670
+ function Fr({ className: e, ...t }) {
1671
+ return /* @__PURE__ */ r(h.Content, {
1672
+ "data-slot": "navigation-menu-content",
1673
+ className: M("top-0 start-0 w-full origin-top p-2 md:absolute md:w-auto", "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", e),
1674
+ ...t
1675
+ });
1676
+ }
1677
+ function Ir({ className: e, ...t }) {
1678
+ return /* @__PURE__ */ r(h.Link, {
1679
+ "data-slot": "navigation-menu-link",
1680
+ className: M(Nr, e),
1681
+ ...t
1682
+ });
1683
+ }
1684
+ // src/ui/navigation/pagination.component.tsx
1685
+ function Lr({ page: e, pageCount: t, onPageChange: n, window: a = 3, className: o }) {
1686
+ let s = Math.max(1, Math.min(e - Math.floor(a / 2), t - a + 1)), c = Array.from({ length: Math.min(a, t) }, (e, t) => s + t);
1687
+ return /* @__PURE__ */ i("nav", {
1688
+ "data-slot": "pagination",
1689
+ "aria-label": "Pagination",
1690
+ className: M("flex items-center gap-1", o),
1691
+ children: [
1692
+ /* @__PURE__ */ r("button", {
1693
+ type: "button",
1694
+ className: z({
1695
+ variant: "ghost",
1696
+ size: "sm"
1697
+ }),
1698
+ disabled: e <= 1,
1699
+ onClick: () => n(e - 1),
1700
+ children: "Previous"
1701
+ }),
1702
+ c.map((t) => /* @__PURE__ */ r("button", {
1703
+ type: "button",
1704
+ "aria-current": t === e ? "page" : void 0,
1705
+ "aria-label": `Page ${t}`,
1706
+ className: z({
1707
+ variant: t === e ? "outline" : "ghost",
1708
+ size: "icon-sm"
1709
+ }),
1710
+ onClick: () => n(t),
1711
+ children: t
1712
+ }, t)),
1713
+ /* @__PURE__ */ r("button", {
1714
+ type: "button",
1715
+ className: z({
1716
+ variant: "ghost",
1717
+ size: "sm"
1718
+ }),
1719
+ disabled: e >= t,
1720
+ onClick: () => n(e + 1),
1721
+ children: "Next"
1722
+ })
1723
+ ]
1724
+ });
1725
+ }
1726
+ // src/ui/navigation/tabs.component.tsx
1727
+ function Rr({ className: e, ...t }) {
1728
+ return /* @__PURE__ */ r(C.Root, {
1729
+ "data-slot": "tabs",
1730
+ className: M("flex flex-col gap-3", e),
1731
+ ...t
1732
+ });
1733
+ }
1734
+ function zr({ className: e, variant: t = "pill", children: n, ...a }) {
1735
+ let o = ft("[data-state=active]");
1736
+ return /* @__PURE__ */ i(C.List, {
1737
+ ref: o,
1738
+ "data-slot": "tabs-list",
1739
+ "data-variant": t,
1740
+ className: M("group/tabs-list group/indicator relative inline-flex w-fit items-center", t === "pill" ? "gap-0.5 rounded-md bg-muted p-[3px]" : "w-full gap-5 border-b", e),
1741
+ ...a,
1742
+ children: [/* @__PURE__ */ r("span", {
1743
+ "aria-hidden": "true",
1744
+ "data-slot": "tabs-indicator",
1745
+ className: M(pt, t === "pill" ? "rounded-sm bg-background shadow-xs" : "top-auto -bottom-px h-0.5 bg-brand")
1746
+ }), n]
1747
+ });
1748
+ }
1749
+ function Br({ className: e, ...t }) {
1750
+ return /* @__PURE__ */ r(C.Trigger, {
1751
+ "data-slot": "tabs-trigger",
1752
+ className: M("inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap font-medium text-muted-foreground outline-none", "hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4", "group-data-[variant=pill]/tabs-list:h-[calc(var(--control-h)-6px)] group-data-[variant=pill]/tabs-list:rounded-sm group-data-[variant=pill]/tabs-list:px-3 group-data-[variant=pill]/tabs-list:text-[13px]", "relative transition-colors duration-150 data-[state=active]:text-foreground motion-reduce:transition-none", "group-data-[variant=underline]/tabs-list:-mb-px group-data-[variant=underline]/tabs-list:border-b-2 group-data-[variant=underline]/tabs-list:border-transparent group-data-[variant=underline]/tabs-list:py-2.5 group-data-[variant=underline]/tabs-list:text-sm", e),
1753
+ ...t
1754
+ });
1755
+ }
1756
+ function Vr({ className: e, ...t }) {
1757
+ return /* @__PURE__ */ r(C.Content, {
1758
+ "data-slot": "tabs-content",
1759
+ className: M("flex-1 outline-none", e),
1760
+ ...t
1761
+ });
1762
+ }
1763
+ // src/ui/navigation/stepper.component.tsx
1764
+ var Hr = {
1765
+ done: "bg-primary text-primary-foreground",
1766
+ current: "border-2 border-primary text-brand-text",
1767
+ upcoming: "bg-muted text-muted-foreground"
1768
+ };
1769
+ function Ur({ steps: e, current: t, orientation: n = "horizontal", onStepSelect: a, className: o, "aria-label": s = "Progress", ...c }) {
1770
+ let l = n === "vertical";
1771
+ return /* @__PURE__ */ r("ol", {
1772
+ "data-slot": "stepper",
1773
+ "data-orientation": n,
1774
+ "aria-label": s,
1775
+ className: M("m-0 flex list-none p-0", l ? "flex-col" : "items-start", o),
1776
+ ...c,
1777
+ children: e.map((n, o) => {
1778
+ let s = o < t ? "done" : o === t ? "current" : "upcoming", c = o === e.length - 1, u = /* @__PURE__ */ r("span", {
1779
+ "aria-hidden": "true",
1780
+ className: M("grid size-7 shrink-0 place-items-center rounded-full text-xs font-semibold transition-colors duration-200 motion-reduce:transition-none", Hr[s]),
1781
+ children: s === "done" ? /* @__PURE__ */ r(T, {
1782
+ className: "size-3.5",
1783
+ strokeWidth: 2.5
1784
+ }) : o + 1
1785
+ }), d = /* @__PURE__ */ i("span", {
1786
+ className: "flex min-w-0 flex-col",
1787
+ children: [/* @__PURE__ */ i("span", {
1788
+ className: M("text-[13px] font-medium", s === "upcoming" && "text-muted-foreground"),
1789
+ children: [n.title, s === "done" && /* @__PURE__ */ r("span", {
1790
+ className: "sr-only",
1791
+ children: ", done"
1792
+ })]
1793
+ }), n.description && /* @__PURE__ */ r("span", {
1794
+ className: "text-xs text-muted-foreground",
1795
+ children: n.description
1796
+ })]
1797
+ }), f = a && s === "done" ? /* @__PURE__ */ i("button", {
1798
+ type: "button",
1799
+ onClick: () => a(o),
1800
+ className: "flex cursor-pointer items-center gap-2 rounded-md text-start outline-none focus-visible:ring-2 focus-visible:ring-ring",
1801
+ children: [u, d]
1802
+ }) : /* @__PURE__ */ i("span", {
1803
+ className: "flex items-center gap-2",
1804
+ children: [u, d]
1805
+ });
1806
+ return /* @__PURE__ */ i("li", {
1807
+ "data-state": s,
1808
+ "aria-current": s === "current" ? "step" : void 0,
1809
+ className: M("flex", l ? "flex-col" : "items-center gap-2", !c && !l && "flex-1"),
1810
+ children: [f, !c && /* @__PURE__ */ r("span", {
1811
+ "aria-hidden": "true",
1812
+ className: M("shrink-0 bg-border transition-colors duration-200 motion-reduce:transition-none", l ? "my-1 ms-[13px] h-5 w-0.5" : "h-0.5 min-w-4 flex-1", s === "done" && "bg-primary")
1813
+ })]
1814
+ }, n.title);
1815
+ })
1816
+ });
1817
+ }
1818
+ // src/ui/sidebar/sidebar-context.hook.ts
1819
+ var Wr = Ce(null);
1820
+ function X() {
1821
+ let e = Ee(Wr);
1822
+ if (!e) throw Error("A sidebar part must be inside a Sidebar.");
1823
+ return e;
1824
+ }
1825
+ // src/ui/sidebar/sidebar.recipe.ts
1826
+ var Z = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] duration-150 ease-out motion-reduce:transition-none group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 in-data-[slot=sidebar-sheet]:animate-sidebar-label-in motion-reduce:in-data-[slot=sidebar-sheet]:animate-none", Q = "flex h-9 w-full shrink-0 cursor-pointer items-center gap-3 rounded-md px-3 text-[13.5px] font-medium text-muted-foreground no-underline outline-none transition-colors duration-150 motion-reduce:transition-none hover:bg-sidebar-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring [&_svg]:size-4 [&_svg]:shrink-0 aria-[current]:bg-brand-soft aria-[current]:text-brand-text", Gr = {
1827
+ panel: {
1828
+ open: "w-64 gap-2 px-1.5 py-2.5",
1829
+ collapsed: "w-12 gap-2 px-1.5 pt-2.5 pb-24"
1830
+ },
1831
+ nav: {
1832
+ open: "w-60 gap-4 px-2 py-3",
1833
+ collapsed: "w-14 gap-4 px-2 py-3"
1834
+ }
1835
+ };
1836
+ function Kr({ label: e, variant: t = "panel", side: n = "start", collapsed: a, defaultCollapsed: o = !1, onCollapsedChange: s, className: c, children: l, ...u }) {
1837
+ let [d, f] = k(o), p = a ?? d;
1838
+ function m(e) {
1839
+ a === void 0 && f(e), s?.(e);
1840
+ }
1841
+ return /* @__PURE__ */ r(Wr, {
1842
+ value: {
1843
+ collapsed: p,
1844
+ setCollapsed: m,
1845
+ label: e,
1846
+ side: n,
1847
+ variant: t
1848
+ },
1849
+ children: /* @__PURE__ */ i("aside", {
1850
+ "data-slot": "sidebar",
1851
+ "data-variant": t,
1852
+ "data-collapsed": p || void 0,
1853
+ "aria-label": e,
1854
+ className: M("group/sidebar flex h-full min-h-0 shrink-0 flex-col overflow-hidden bg-sidebar text-[13px] text-sidebar-foreground", n === "start" ? "border-e border-sidebar-border" : "border-s border-sidebar-border", "relative transition-[width] duration-150 ease-out motion-reduce:transition-none", p ? Gr[t].collapsed : Gr[t].open, c),
1855
+ ...u,
1856
+ children: [l, t === "panel" && /* @__PURE__ */ r("span", {
1857
+ "aria-hidden": "true",
1858
+ className: "pointer-events-none absolute bottom-3 left-1/2 -translate-x-1/2 text-xs font-semibold tracking-[0.06em] text-muted-foreground uppercase opacity-0 transition-opacity duration-150 [writing-mode:vertical-rl] group-data-[collapsed]/sidebar:opacity-100 group-data-[collapsed]/sidebar:delay-100 motion-reduce:transition-none",
1859
+ children: e
1860
+ })]
1861
+ })
1862
+ });
1863
+ }
1864
+ function qr({ label: e, children: t }) {
1865
+ let { collapsed: n, side: a } = X();
1866
+ return n ? /* @__PURE__ */ i(J, { children: [/* @__PURE__ */ r(Rn, {
1867
+ asChild: !0,
1868
+ children: t
1869
+ }), /* @__PURE__ */ r(zn, {
1870
+ side: a === "start" ? "right" : "left",
1871
+ children: e
1872
+ })] }) : t;
1873
+ }
1874
+ function Jr({ className: e, ...t }) {
1875
+ let { collapsed: n, setCollapsed: a, label: o, side: s, variant: c } = X(), l = c === "nav" ? `${n ? "Expand" : "Collapse"} sidebar` : `${n ? "Show" : "Hide"} ${o.toLowerCase()}`;
1876
+ if (c === "nav") return /* @__PURE__ */ r(qr, {
1877
+ label: l,
1878
+ children: /* @__PURE__ */ i("button", {
1879
+ type: "button",
1880
+ "aria-label": l,
1881
+ "aria-expanded": !n,
1882
+ onClick: () => a(!n),
1883
+ className: M(Q, e),
1884
+ ...t,
1885
+ children: [/* @__PURE__ */ r(ge, { "aria-hidden": "true" }), /* @__PURE__ */ r("span", {
1886
+ "aria-hidden": "true",
1887
+ className: Z,
1888
+ children: "Collapse"
1889
+ })]
1890
+ })
1891
+ });
1892
+ let u = s === "start" !== n;
1893
+ return /* @__PURE__ */ r(B, {
1894
+ variant: "ghost",
1895
+ size: "icon-sm",
1896
+ "aria-label": l,
1897
+ "aria-expanded": !n,
1898
+ title: l,
1899
+ onClick: () => a(!n),
1900
+ className: M("shrink-0 text-muted-foreground", e),
1901
+ ...t,
1902
+ children: r(u ? se : ce, {})
1903
+ });
1904
+ }
1905
+ function Yr({ query: e = "", onQueryChange: t, searchLabel: n, children: a, className: o }) {
1906
+ let { collapsed: s, label: c, variant: l } = X();
1907
+ if (l === "nav") return /* @__PURE__ */ r("div", {
1908
+ "data-slot": "sidebar-header",
1909
+ className: M("flex h-8 items-center", o),
1910
+ children: a
1911
+ });
1912
+ let u = n ?? `Search ${c.toLowerCase()}`;
1913
+ return /* @__PURE__ */ i("div", {
1914
+ "data-slot": "sidebar-header",
1915
+ className: M("flex items-center gap-1", o),
1916
+ children: [/* @__PURE__ */ i("div", {
1917
+ inert: s,
1918
+ className: "flex min-w-0 flex-1 items-center gap-1 transition-opacity duration-150 group-data-[collapsed]/sidebar:opacity-0 motion-reduce:transition-none",
1919
+ children: [t && /* @__PURE__ */ r(U, {
1920
+ type: "search",
1921
+ value: e,
1922
+ onChange: (e) => t(e.target.value),
1923
+ placeholder: u,
1924
+ "aria-label": u,
1925
+ startIcon: /* @__PURE__ */ r(E, {})
1926
+ }), a]
1927
+ }), /* @__PURE__ */ r(Jr, { className: "ms-auto" })]
1928
+ });
1929
+ }
1930
+ function Xr({ className: e, ...t }) {
1931
+ let { label: n, variant: i } = X(), a = M("flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto [scrollbar-width:thin]", "group-data-[collapsed]/sidebar:[scrollbar-width:none] group-data-[collapsed]/sidebar:[&::-webkit-scrollbar]:hidden", i === "panel" ? "gap-3" : "gap-4", e);
1932
+ return i === "nav" ? /* @__PURE__ */ r("nav", {
1933
+ "data-slot": "sidebar-content",
1934
+ "aria-label": n,
1935
+ className: a,
1936
+ ...t
1937
+ }) : /* @__PURE__ */ r("div", {
1938
+ "data-slot": "sidebar-content",
1939
+ className: a,
1940
+ ...t
1941
+ });
1942
+ }
1943
+ function Zr({ className: e, ...t }) {
1944
+ let { collapsed: n, variant: i } = X();
1945
+ return i === "panel" && n ? null : /* @__PURE__ */ r("div", {
1946
+ "data-slot": "sidebar-footer",
1947
+ className: M("mt-auto flex flex-col gap-2", i === "nav" && "border-t border-sidebar-border pt-3", e),
1948
+ ...t
1949
+ });
1950
+ }
1951
+ // src/ui/sidebar/sidebar-group.component.tsx
1952
+ function Qr({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collapsible: o, className: s, children: c }) {
1953
+ let { collapsed: u, variant: d } = X(), [f, p] = k(a), m = o ?? d === "panel", h = "text-xs font-semibold tracking-[0.04em] text-muted-foreground uppercase";
1954
+ return m ? /* @__PURE__ */ i(l.Root, {
1955
+ "data-slot": "sidebar-group",
1956
+ open: n || u || f,
1957
+ onOpenChange: p,
1958
+ className: M("flex flex-col gap-1", s),
1959
+ children: [/* @__PURE__ */ i(l.Trigger, {
1960
+ disabled: n,
1961
+ inert: u,
1962
+ className: M("group/trigger flex w-full cursor-pointer items-center gap-1.5 rounded-sm px-[13px] py-0.5 text-start outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-default", "whitespace-nowrap transition-[translate,opacity] duration-150 ease-out group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 motion-reduce:transition-none"),
1963
+ children: [
1964
+ /* @__PURE__ */ r(oe, {
1965
+ "aria-hidden": "true",
1966
+ className: "size-3.5 shrink-0 text-muted-foreground transition-transform duration-150 group-data-[state=open]/trigger:rotate-90 motion-reduce:transition-none"
1967
+ }),
1968
+ /* @__PURE__ */ r("span", {
1969
+ className: h,
1970
+ children: e
1971
+ }),
1972
+ t !== void 0 && /* @__PURE__ */ r("span", {
1973
+ className: "ms-auto text-[11px] text-muted-foreground tabular-nums",
1974
+ children: t
1975
+ })
1976
+ ]
1977
+ }), /* @__PURE__ */ r(l.Content, {
1978
+ className: "flex flex-col gap-1",
1979
+ role: "group",
1980
+ "aria-label": e,
1981
+ children: c
1982
+ })]
1983
+ }) : /* @__PURE__ */ i("div", {
1984
+ role: "group",
1985
+ "aria-label": e,
1986
+ "data-slot": "sidebar-group",
1987
+ className: M("flex flex-col gap-0.5", s),
1988
+ children: [/* @__PURE__ */ r("span", {
1989
+ "aria-hidden": "true",
1990
+ className: M("flex h-6 items-center px-3", h, Z),
1991
+ children: e
1992
+ }), c]
1993
+ });
1994
+ }
1995
+ // src/ui/sidebar/sidebar-item.component.tsx
1996
+ function $r({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foreground)", badge: c, active: l = !1, asChild: u = !1, className: d, children: f, ...p }) {
1997
+ let { collapsed: m, variant: h } = X(), g = l ? h === "nav" ? "page" : "true" : void 0, _ = h === "nav" ? /* @__PURE__ */ i(n, { children: [
1998
+ /* @__PURE__ */ r("span", {
1999
+ "aria-hidden": "true",
2000
+ className: "flex",
2001
+ children: a
2002
+ }),
2003
+ /* @__PURE__ */ r("span", {
2004
+ className: Z,
2005
+ children: e
2006
+ }),
2007
+ c !== void 0 && /* @__PURE__ */ r("span", {
2008
+ className: M("ms-auto rounded-full bg-secondary px-1.5 text-xs text-secondary-foreground tabular-nums", Z),
2009
+ children: c
2010
+ })
2011
+ ] }) : /* @__PURE__ */ i(n, { children: [
2012
+ a ? /* @__PURE__ */ r("span", {
2013
+ "aria-hidden": "true",
2014
+ className: "flex w-2.5 shrink-0 justify-center text-muted-foreground group-aria-[current]/item:text-brand-text [&_svg]:size-4",
2015
+ children: a
2016
+ }) : /* @__PURE__ */ r("span", {
2017
+ "aria-hidden": "true",
2018
+ className: M("h-6 w-2.5 shrink-0 rounded-[3px]", o ? I[o] : ""),
2019
+ style: o ? void 0 : { background: s }
2020
+ }),
2021
+ /* @__PURE__ */ i("span", {
2022
+ className: M("flex flex-col", Z),
2023
+ children: [/* @__PURE__ */ r("span", {
2024
+ className: "truncate text-[13px] font-medium",
2025
+ children: e
2026
+ }), t && /* @__PURE__ */ r("span", {
2027
+ className: "truncate font-mono text-[10.5px] leading-tight text-muted-foreground",
2028
+ children: t
2029
+ })]
2030
+ }),
2031
+ c !== void 0 && /* @__PURE__ */ r("span", {
2032
+ className: M("ms-auto text-[11px] text-muted-foreground tabular-nums", Z),
2033
+ children: c
2034
+ })
2035
+ ] }), v = h === "nav" ? M(Q, d) : M("group/item flex cursor-pointer items-center rounded-md border border-transparent text-start text-sidebar-foreground no-underline outline-none transition-colors duration-150 motion-reduce:transition-none", "hover:border-sidebar-border hover:bg-background focus-visible:ring-2 focus-visible:ring-sidebar-ring disabled:cursor-not-allowed disabled:opacity-50", "aria-[current]:border-transparent aria-[current]:bg-brand-soft aria-[current]:text-brand-text", "w-full gap-2 px-[13px] py-1.5", d), y = {
2036
+ "data-slot": "sidebar-item",
2037
+ "aria-current": g,
2038
+ "aria-label": m ? e : void 0,
2039
+ className: v
2040
+ }, b = u && we(f) ? /* @__PURE__ */ r(S.Root, {
2041
+ ...y,
2042
+ ...p,
2043
+ children: ei(f, _)
2044
+ }) : /* @__PURE__ */ r("button", {
2045
+ type: "button",
2046
+ ...y,
2047
+ ...p,
2048
+ children: _
2049
+ });
2050
+ return /* @__PURE__ */ r(qr, {
2051
+ label: e,
2052
+ children: b
2053
+ });
2054
+ }
2055
+ function ei(e, t) {
2056
+ return Se(e, void 0, t);
2057
+ }
2058
+ // src/ui/sidebar/sidebar-sheet.component.tsx
2059
+ function ti({ label: e, children: t, side: n = "start", open: a, onOpenChange: o, className: s }) {
2060
+ return /* @__PURE__ */ i(An, {
2061
+ open: a,
2062
+ onOpenChange: o,
2063
+ children: [/* @__PURE__ */ r(jn, {
2064
+ asChild: !0,
2065
+ children: /* @__PURE__ */ r(B, {
2066
+ variant: "ghost",
2067
+ size: "icon",
2068
+ "aria-label": `Show ${e.toLowerCase()}`,
2069
+ className: s,
2070
+ children: /* @__PURE__ */ r(ge, {})
2071
+ })
2072
+ }), /* @__PURE__ */ i(In, {
2073
+ "data-slot": "sidebar-sheet",
2074
+ side: n,
2075
+ className: "d-mob w-[min(320px,86vw)] gap-0 p-0 [&>[data-slot=sidebar]]:border-0",
2076
+ children: [/* @__PURE__ */ r(Nn, {
2077
+ className: "sr-only",
2078
+ children: e
2079
+ }), t]
2080
+ })]
2081
+ });
2082
+ }
2083
+ // src/product/product-switcher.component.tsx
2084
+ function ni({ product: e, workspace: t, products: n = Ye, onProductChange: a, className: o }) {
2085
+ return /* @__PURE__ */ i(ar, { children: [/* @__PURE__ */ r(or, {
2086
+ asChild: !0,
2087
+ children: /* @__PURE__ */ i(B, {
2088
+ variant: "ghost",
2089
+ className: M("h-12 w-full justify-start gap-2.5 px-2", o),
2090
+ "aria-label": `${N[e].name}, switch product`,
2091
+ children: [
2092
+ /* @__PURE__ */ r(P, {
2093
+ product: e,
2094
+ alt: "",
2095
+ className: "size-7"
2096
+ }),
2097
+ /* @__PURE__ */ i("span", {
2098
+ className: "flex min-w-0 flex-col items-start leading-tight",
2099
+ children: [/* @__PURE__ */ r("span", {
2100
+ className: "font-display text-[17px] font-extrabold italic text-brand-text",
2101
+ children: N[e].name
2102
+ }), t && /* @__PURE__ */ r("span", {
2103
+ className: "truncate text-xs font-normal text-muted-foreground",
2104
+ children: t
2105
+ })]
2106
+ }),
2107
+ /* @__PURE__ */ r(le, {
2108
+ className: "ms-auto text-muted-foreground",
2109
+ "aria-hidden": "true"
2110
+ })
2111
+ ]
2112
+ })
2113
+ }), /* @__PURE__ */ i(lr, {
2114
+ align: "start",
2115
+ className: "w-60",
2116
+ children: [/* @__PURE__ */ r(fr, { children: "Products" }), /* @__PURE__ */ r(cr, {
2117
+ value: e,
2118
+ onValueChange: (e) => a?.(e),
2119
+ children: n.map((e) => /* @__PURE__ */ i(dr, {
2120
+ value: e,
2121
+ children: [/* @__PURE__ */ r(P, {
2122
+ product: e,
2123
+ alt: "",
2124
+ className: "size-4"
2125
+ }), N[e].name]
2126
+ }, e))
2127
+ })]
2128
+ })] });
2129
+ }
2130
+ // src/product/sidebar-brand.component.tsx
2131
+ function ri({ product: e, badge: t, className: n }) {
2132
+ let { collapsed: a, setCollapsed: o } = X(), s = N[e].name;
2133
+ return /* @__PURE__ */ i("div", {
2134
+ "data-slot": "sidebar-brand",
2135
+ className: M("flex h-8 items-center", n),
2136
+ children: [
2137
+ /* @__PURE__ */ r("button", {
2138
+ type: "button",
2139
+ "aria-label": `${s}: ${a ? "expand" : "collapse"} sidebar`,
2140
+ "aria-expanded": !a,
2141
+ onClick: () => o(!a),
2142
+ className: "grid size-10 shrink-0 cursor-pointer place-items-center rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
2143
+ children: /* @__PURE__ */ r(P, {
2144
+ product: e,
2145
+ alt: "",
2146
+ className: M("size-6 transition-transform duration-300 ease-emphasised motion-reduce:transition-none", a && "rotate-120")
2147
+ })
2148
+ }),
2149
+ /* @__PURE__ */ r("span", {
2150
+ className: M("ms-1 font-display text-lg font-extrabold text-brand-text italic", Z),
2151
+ children: s
2152
+ }),
2153
+ t && /* @__PURE__ */ r("span", {
2154
+ className: M("ms-2 rounded-full bg-warning-soft px-2 text-xs font-medium text-warning", Z),
2155
+ children: t
2156
+ })
2157
+ ]
2158
+ });
2159
+ }
2160
+ // src/app/command-shortcut.hook.ts
2161
+ function ii(e, t = !0) {
2162
+ O(() => {
2163
+ if (!t) return;
2164
+ function n(t) {
2165
+ t.key.toLowerCase() === "k" && (t.metaKey || t.ctrlKey) && (t.preventDefault(), e());
2166
+ }
2167
+ return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
2168
+ }, [e, t]);
2169
+ }
2170
+ function ai(e) {
2171
+ return /mac|iphone|ipad|ipod/i.test(e) ? "⌘K" : "Ctrl+K";
2172
+ }
2173
+ function oi() {}
2174
+ function si() {
2175
+ return oi;
2176
+ }
2177
+ function ci() {
2178
+ return navigator.userAgentData?.platform ?? navigator.platform;
2179
+ }
2180
+ function li() {
2181
+ return "";
2182
+ }
2183
+ function ui() {
2184
+ return ai(ke(si, ci, li));
2185
+ }
2186
+ // src/app/app-shell.component.tsx
2187
+ function di({ product: e, brand: t = "switcher", workspace: a, onProductChange: o, nav: s, secondaryNav: c, sidebarFooter: l, user: u, breadcrumb: d, topActions: f, commands: p, children: m, className: h }) {
2188
+ let [g, _] = k(!1), v = Te(() => _(!0), []);
2189
+ ii(v, !!p?.length);
2190
+ let y = ui(), b = [...new Set(p?.map((e) => e.group))], ee = (e) => /* @__PURE__ */ r($r, {
2191
+ asChild: !0,
2192
+ title: e.label,
2193
+ icon: e.icon,
2194
+ badge: e.count,
2195
+ active: e.current,
2196
+ children: /* @__PURE__ */ r("a", {
2197
+ href: e.href,
2198
+ children: e.label
2199
+ })
2200
+ }, e.href), x = /* @__PURE__ */ i(n, { children: [
2201
+ /* @__PURE__ */ r(Yr, {
2202
+ className: "h-12",
2203
+ children: t === "logo" ? /* @__PURE__ */ r(ri, { product: e }) : /* @__PURE__ */ r(ni, {
2204
+ product: e,
2205
+ workspace: a,
2206
+ onProductChange: o,
2207
+ className: "px-2.5"
2208
+ })
2209
+ }),
2210
+ /* @__PURE__ */ i(Xr, { children: [
2211
+ p?.length ? /* @__PURE__ */ r($r, {
2212
+ title: "Search",
2213
+ icon: /* @__PURE__ */ r(E, {}),
2214
+ badge: /* @__PURE__ */ r(Gt, {
2215
+ className: "border-0 bg-transparent",
2216
+ children: y
2217
+ }),
2218
+ onClick: v
2219
+ }) : null,
2220
+ /* @__PURE__ */ r("div", {
2221
+ className: "flex flex-col gap-0.5",
2222
+ children: s.map((e) => ee(e))
2223
+ }),
2224
+ c && /* @__PURE__ */ r(Qr, {
2225
+ title: c.title,
2226
+ children: c.items.map((e) => ee(e))
2227
+ })
2228
+ ] }),
2229
+ /* @__PURE__ */ i(Zr, { children: [
2230
+ l && /* @__PURE__ */ r("div", {
2231
+ className: Z,
2232
+ children: l
2233
+ }),
2234
+ u && /* @__PURE__ */ i("div", {
2235
+ className: "flex items-center gap-2.5 px-1",
2236
+ children: [/* @__PURE__ */ r(nt, { children: /* @__PURE__ */ r(it, { children: u.initials }) }), /* @__PURE__ */ i("span", {
2237
+ className: M("flex flex-col leading-tight", Z),
2238
+ children: [/* @__PURE__ */ r("span", {
2239
+ className: "text-[13px] font-semibold",
2240
+ children: u.name
2241
+ }), u.role && /* @__PURE__ */ r("span", {
2242
+ className: "text-xs text-muted-foreground",
2243
+ children: u.role
2244
+ })]
2245
+ })]
2246
+ }),
2247
+ /* @__PURE__ */ r(Jr, {})
2248
+ ] })
2249
+ ] });
2250
+ return /* @__PURE__ */ i("div", {
2251
+ "data-slot": "app-shell",
2252
+ className: M("flex min-h-screen flex-wrap bg-background", h),
2253
+ children: [
2254
+ /* @__PURE__ */ r(Kr, {
2255
+ variant: "nav",
2256
+ label: "Workspace",
2257
+ className: "sticky top-0 h-screen max-md:hidden",
2258
+ children: x
2259
+ }),
2260
+ /* @__PURE__ */ i("div", {
2261
+ className: "relative flex min-w-0 flex-[999_1_560px] flex-col",
2262
+ children: [/* @__PURE__ */ i("div", {
2263
+ className: "flex h-14 flex-wrap items-center gap-3 border-b px-6",
2264
+ children: [
2265
+ /* @__PURE__ */ r(ti, {
2266
+ label: "Workspace",
2267
+ className: "-ms-2 md:hidden",
2268
+ children: /* @__PURE__ */ r(Kr, {
2269
+ variant: "nav",
2270
+ label: "Workspace",
2271
+ collapsed: !1,
2272
+ className: "w-full",
2273
+ children: x
2274
+ })
2275
+ }),
2276
+ d,
2277
+ f && /* @__PURE__ */ r("div", {
2278
+ className: "ms-auto flex items-center gap-1.5",
2279
+ children: f
2280
+ })
2281
+ ]
2282
+ }), /* @__PURE__ */ r("main", {
2283
+ className: "flex flex-col gap-5 p-6",
2284
+ children: m
2285
+ })]
2286
+ }),
2287
+ p?.length ? /* @__PURE__ */ i(Gn, {
2288
+ open: g,
2289
+ onOpenChange: _,
2290
+ children: [/* @__PURE__ */ r(Kn, { placeholder: "Search recipes, runs and settings" }), /* @__PURE__ */ i(qn, { children: [/* @__PURE__ */ r(Jn, { children: "No results." }), b.map((e) => /* @__PURE__ */ r(Yn, {
2291
+ heading: e,
2292
+ children: p.filter((t) => t.group === e).map((e) => /* @__PURE__ */ r(Xn, {
2293
+ onSelect: () => {
2294
+ _(!1), e.onSelect();
2295
+ },
2296
+ children: e.label
2297
+ }, e.label))
2298
+ }, e))] })]
2299
+ }) : null
2300
+ ]
2301
+ });
2302
+ }
2303
+ // src/app/filter-bar.component.tsx
2304
+ function fi({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
2305
+ return /* @__PURE__ */ i("div", {
2306
+ "data-slot": "filter-bar",
2307
+ role: "search",
2308
+ className: M("flex flex-wrap items-center gap-2 border-b p-3", s),
2309
+ children: [
2310
+ /* @__PURE__ */ r("div", {
2311
+ className: "max-w-80 flex-[1_1_220px]",
2312
+ children: /* @__PURE__ */ r(U, {
2313
+ type: "search",
2314
+ value: e,
2315
+ onChange: (e) => t(e.target.value),
2316
+ placeholder: n,
2317
+ "aria-label": n,
2318
+ startIcon: /* @__PURE__ */ r(E, {})
2319
+ })
2320
+ }),
2321
+ a,
2322
+ o && /* @__PURE__ */ r("div", {
2323
+ className: "ms-auto",
2324
+ children: o
2325
+ })
2326
+ ]
2327
+ });
2328
+ }
2329
+ function pi({ label: e, count: t = 0, icon: n, className: a, ...o }) {
2330
+ return /* @__PURE__ */ i(B, {
2331
+ variant: "outline",
2332
+ size: "sm",
2333
+ className: M("border-dashed", a),
2334
+ ...o,
2335
+ children: [
2336
+ n ?? /* @__PURE__ */ r(ye, {}),
2337
+ e,
2338
+ t > 0 && /* @__PURE__ */ r(R, {
2339
+ variant: "brand",
2340
+ className: "h-[18px]",
2341
+ "aria-label": `${t} selected`,
2342
+ children: t
2343
+ })
2344
+ ]
2345
+ });
2346
+ }
2347
+ // src/app/form-section.component.tsx
2348
+ function mi({ title: e, description: t, children: n, actions: a, className: o }) {
2349
+ return /* @__PURE__ */ i("section", {
2350
+ "data-slot": "form-section",
2351
+ className: M("grid gap-6 md:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]", o),
2352
+ children: [/* @__PURE__ */ i("div", {
2353
+ className: "flex flex-col gap-1",
2354
+ children: [/* @__PURE__ */ r("h2", {
2355
+ className: "m-0 type-h4",
2356
+ children: e
2357
+ }), t && /* @__PURE__ */ r("p", {
2358
+ className: "m-0 text-[13px] text-muted-foreground",
2359
+ children: t
2360
+ })]
2361
+ }), /* @__PURE__ */ i("div", {
2362
+ className: "flex flex-col overflow-hidden rounded-xl border bg-card shadow-xs",
2363
+ children: [/* @__PURE__ */ r("div", {
2364
+ className: "flex flex-col gap-4 p-5",
2365
+ children: n
2366
+ }), a && /* @__PURE__ */ r("div", {
2367
+ className: "flex justify-end gap-2 border-t bg-muted px-5 py-3",
2368
+ children: a
2369
+ })]
2370
+ })]
2371
+ });
2372
+ }
2373
+ // src/app/page-header.component.tsx
2374
+ function hi({ title: e, description: t, actions: n, tabs: a, className: o }) {
2375
+ return /* @__PURE__ */ i("div", {
2376
+ "data-slot": "page-header",
2377
+ className: M("flex flex-col gap-4", o),
2378
+ children: [/* @__PURE__ */ i("div", {
2379
+ className: "flex flex-wrap items-end gap-4",
2380
+ children: [/* @__PURE__ */ i("div", {
2381
+ className: "flex flex-col gap-1",
2382
+ children: [/* @__PURE__ */ r("h1", {
2383
+ className: "m-0 text-[22px] font-semibold tracking-tight",
2384
+ children: e
2385
+ }), t && /* @__PURE__ */ r("p", {
2386
+ className: "m-0 text-[13px] text-muted-foreground",
2387
+ children: t
2388
+ })]
2389
+ }), n && /* @__PURE__ */ r("div", {
2390
+ className: "ms-auto flex flex-wrap gap-2",
2391
+ children: n
2392
+ })]
2393
+ }), a]
2394
+ });
2395
+ }
2396
+ // src/app/records-table.component.tsx
2397
+ function gi({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
2398
+ let u = a !== void 0, d = e.map((e) => n(e)), f = d.filter((e) => a?.has(e)).length, p = f === 0 ? !1 : f === d.length || "indeterminate";
2399
+ function m(e, t) {
2400
+ let n = new Set(a);
2401
+ t ? n.add(e) : n.delete(e), o?.(n);
2402
+ }
2403
+ function h(e) {
2404
+ let t = new Set(a);
2405
+ for (let n of d) e ? t.add(n) : t.delete(n);
2406
+ o?.(t);
2407
+ }
2408
+ return /* @__PURE__ */ i(Qt, {
2409
+ "data-slot": "records-table",
2410
+ "aria-label": c,
2411
+ className: M("min-w-[760px]", l),
2412
+ children: [/* @__PURE__ */ r($t, { children: /* @__PURE__ */ i(tn, {
2413
+ className: "hover:bg-transparent",
2414
+ children: [
2415
+ u && /* @__PURE__ */ r(W, {
2416
+ className: "w-9",
2417
+ children: /* @__PURE__ */ r(st, {
2418
+ "aria-label": "Select all rows",
2419
+ checked: p,
2420
+ onCheckedChange: (e) => h(e === !0)
2421
+ })
2422
+ }),
2423
+ t.map((e) => /* @__PURE__ */ r(W, {
2424
+ className: M(e.align === "end" && "text-end", e.className),
2425
+ children: e.header
2426
+ }, e.key)),
2427
+ s && /* @__PURE__ */ r(W, {
2428
+ className: "w-11",
2429
+ children: /* @__PURE__ */ r("span", {
2430
+ className: "sr-only",
2431
+ children: "Actions"
2432
+ })
2433
+ })
2434
+ ]
2435
+ }) }), /* @__PURE__ */ r(en, { children: e.map((e) => {
2436
+ let o = n(e), c = a?.has(o) ?? !1;
2437
+ return /* @__PURE__ */ i(tn, {
2438
+ "data-state": c ? "selected" : void 0,
2439
+ children: [
2440
+ u && /* @__PURE__ */ r(G, { children: /* @__PURE__ */ r(st, {
2441
+ "aria-label": `Select ${o}`,
2442
+ checked: c,
2443
+ onCheckedChange: (e) => m(o, e === !0)
2444
+ }) }),
2445
+ t.map((t) => /* @__PURE__ */ r(G, {
2446
+ className: M(t.align === "end" && "text-end tabular-nums", t.className),
2447
+ children: t.cell(e)
2448
+ }, t.key)),
2449
+ s && /* @__PURE__ */ r(G, { children: /* @__PURE__ */ i(ar, { children: [/* @__PURE__ */ r(or, {
2450
+ asChild: !0,
2451
+ children: /* @__PURE__ */ r(B, {
2452
+ variant: "ghost",
2453
+ size: "icon-sm",
2454
+ "aria-label": `Actions for ${o}`,
2455
+ children: /* @__PURE__ */ r(de, {})
2456
+ })
2457
+ }), /* @__PURE__ */ r(lr, {
2458
+ align: "end",
2459
+ children: s(e)
2460
+ })] }) })
2461
+ ]
2462
+ }, o);
2463
+ }) })]
2464
+ });
2465
+ }
2466
+ // src/app/sparkline.algorithm.ts
2467
+ function _i(e, t, n, r = 2) {
2468
+ if (e.length < 2) return "";
2469
+ let i = Math.min(...e), a = Math.max(...e) - i, o = n - r * 2, s = t / (e.length - 1);
2470
+ return e.map((e, t) => {
2471
+ let c = a === 0 ? n / 2 : r + o - (e - i) / a * o;
2472
+ return `${t === 0 ? "M" : "L"}${(t * s).toFixed(1)},${c.toFixed(1)}`;
2473
+ }).join(" ");
2474
+ }
2475
+ // src/app/stat-card.component.tsx
2476
+ var vi = {
2477
+ positive: "text-success",
2478
+ negative: "text-destructive",
2479
+ neutral: "text-muted-foreground"
2480
+ };
2481
+ function yi({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
2482
+ let c = o ? _i(o, 100, 32) : "";
2483
+ return /* @__PURE__ */ i(zt, {
2484
+ "data-slot": "stat-card",
2485
+ className: M("gap-1.5 p-4", s),
2486
+ children: [
2487
+ /* @__PURE__ */ r("span", {
2488
+ className: "text-[13px] text-muted-foreground",
2489
+ children: e
2490
+ }),
2491
+ /* @__PURE__ */ i("div", {
2492
+ className: "flex items-end justify-between gap-2",
2493
+ children: [/* @__PURE__ */ r("span", {
2494
+ className: "text-[26px] font-semibold tracking-tight tabular-nums",
2495
+ children: t
2496
+ }), c && /* @__PURE__ */ r("svg", {
2497
+ viewBox: "0 0 100 32",
2498
+ width: "100",
2499
+ height: "32",
2500
+ preserveAspectRatio: "none",
2501
+ "aria-hidden": "true",
2502
+ className: "overflow-visible",
2503
+ children: /* @__PURE__ */ r("path", {
2504
+ d: c,
2505
+ fill: "none",
2506
+ stroke: "var(--brand)",
2507
+ strokeWidth: "2",
2508
+ strokeLinejoin: "round",
2509
+ vectorEffect: "non-scaling-stroke"
2510
+ })
2511
+ })]
2512
+ }),
2513
+ n && /* @__PURE__ */ r("span", {
2514
+ className: M("text-xs", vi[a]),
2515
+ children: n
2516
+ })
2517
+ ]
2518
+ });
2519
+ }
2520
+ // src/status/run-status.contract.ts
2521
+ var bi = [
2522
+ "queued",
2523
+ "waiting",
2524
+ "running",
2525
+ "completed",
2526
+ "no-records",
2527
+ "failed",
2528
+ "off"
2529
+ ], xi = {
2530
+ queued: {
2531
+ label: "Queued",
2532
+ variant: "secondary",
2533
+ live: !1
2534
+ },
2535
+ waiting: {
2536
+ label: "Waiting",
2537
+ variant: "secondary",
2538
+ live: !1
2539
+ },
2540
+ running: {
2541
+ label: "Running",
2542
+ variant: "info",
2543
+ live: !0
2544
+ },
2545
+ completed: {
2546
+ label: "Completed",
2547
+ variant: "success",
2548
+ live: !0
2549
+ },
2550
+ "no-records": {
2551
+ label: "No records",
2552
+ variant: "warning",
2553
+ live: !0
2554
+ },
2555
+ failed: {
2556
+ label: "Failed",
2557
+ variant: "danger",
2558
+ live: !0
2559
+ },
2560
+ off: {
2561
+ label: "Off",
2562
+ variant: "outline",
2563
+ live: !1
2564
+ }
2565
+ };
2566
+ function Si(e) {
2567
+ return xi[e];
2568
+ }
2569
+ // src/status/status-badge.component.tsx
2570
+ function Ci({ status: e, ...t }) {
2571
+ let { label: n, variant: i, live: a } = Si(e);
2572
+ return /* @__PURE__ */ r(R, {
2573
+ variant: i,
2574
+ dot: a,
2575
+ "data-status": e,
2576
+ ...t,
2577
+ children: n
2578
+ });
2579
+ }
2580
+ // src/desktop/flow-node.component.tsx
2581
+ function wi({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
2582
+ return /* @__PURE__ */ i("button", {
2583
+ type: "button",
2584
+ "data-slot": "flow-node",
2585
+ "aria-pressed": o,
2586
+ onClick: s,
2587
+ className: M("flex w-[200px] cursor-pointer flex-col rounded-lg bg-card text-start text-[13px] text-card-foreground shadow-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", o ? "border-2 border-brand" : "border", c),
2588
+ children: [/* @__PURE__ */ i("span", {
2589
+ className: "flex items-center gap-2 border-b px-2.5 py-2",
2590
+ children: [
2591
+ /* @__PURE__ */ r("span", {
2592
+ "aria-hidden": "true",
2593
+ className: M("size-2 shrink-0 rounded-[2px]", a ? I[a] : "bg-muted-foreground")
2594
+ }),
2595
+ /* @__PURE__ */ r("span", {
2596
+ className: "font-semibold",
2597
+ children: e
2598
+ }),
2599
+ /* @__PURE__ */ r(Ci, {
2600
+ status: n,
2601
+ className: "ms-auto h-[18px] text-[11px]"
2602
+ })
2603
+ ]
2604
+ }), /* @__PURE__ */ r("span", {
2605
+ className: "px-2.5 py-2 text-xs leading-snug text-muted-foreground",
2606
+ children: t
2607
+ })]
2608
+ });
2609
+ }
2610
+ // src/desktop/inspector.component.tsx
2611
+ function Ti({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
2612
+ return /* @__PURE__ */ i("aside", {
2613
+ "data-slot": "inspector",
2614
+ "aria-label": "Inspector",
2615
+ className: M("flex h-full flex-col text-[13px]", s),
2616
+ children: [
2617
+ /* @__PURE__ */ i("div", {
2618
+ className: "flex items-center gap-2 border-b p-3",
2619
+ children: [
2620
+ n && /* @__PURE__ */ r("span", {
2621
+ "aria-hidden": "true",
2622
+ className: M("size-2.5 shrink-0 rounded-[3px]", I[n])
2623
+ }),
2624
+ /* @__PURE__ */ r("h2", {
2625
+ className: "m-0 type-h4",
2626
+ children: e
2627
+ }),
2628
+ t && /* @__PURE__ */ r("span", {
2629
+ className: "truncate text-xs text-muted-foreground",
2630
+ children: t
2631
+ })
2632
+ ]
2633
+ }),
2634
+ /* @__PURE__ */ i(Rr, {
2635
+ defaultValue: a[0]?.value,
2636
+ className: "min-h-0 flex-1 gap-0",
2637
+ children: [/* @__PURE__ */ r(zr, {
2638
+ variant: "underline",
2639
+ className: "gap-4 px-3",
2640
+ children: a.map((e) => /* @__PURE__ */ r(Br, {
2641
+ value: e.value,
2642
+ className: "text-[13px] group-data-[variant=underline]/tabs-list:py-2",
2643
+ children: e.label
2644
+ }, e.value))
2645
+ }), a.map((e) => /* @__PURE__ */ r(Vr, {
2646
+ value: e.value,
2647
+ className: "flex flex-col gap-3 overflow-y-auto p-3",
2648
+ children: e.content
2649
+ }, e.value))]
2650
+ }),
2651
+ o && /* @__PURE__ */ r("div", {
2652
+ className: "m-3 mt-auto rounded-md bg-muted p-2.5",
2653
+ children: o
2654
+ })
2655
+ ]
2656
+ });
2657
+ }
2658
+ // src/desktop/status-bar.component.tsx
2659
+ function Ei({ start: e, end: t, className: n }) {
2660
+ return /* @__PURE__ */ i("div", {
2661
+ "data-slot": "status-bar",
2662
+ role: "status",
2663
+ className: M("flex h-6 shrink-0 items-center gap-3.5 border-t bg-sidebar px-2.5 text-xs text-muted-foreground", n),
2664
+ children: [e, t && /* @__PURE__ */ r("div", {
2665
+ className: "ms-auto flex items-center gap-3.5",
2666
+ children: t
2667
+ })]
2668
+ });
2669
+ }
2670
+ // src/desktop/timeline.algorithm.ts
2671
+ function Di(e, t, n) {
2672
+ if (n <= 0) return {
2673
+ left: 0,
2674
+ width: 0
2675
+ };
2676
+ let r = (e) => Math.min(100, Math.max(0, e / n * 100)), i = r(e);
2677
+ return {
2678
+ left: i,
2679
+ width: Math.max(0, r(t) - i)
2680
+ };
2681
+ }
2682
+ function Oi(e, t) {
2683
+ let n = Math.max(2, t);
2684
+ return Array.from({ length: n }, (t, r) => Math.round(e * r / (n - 1)));
2685
+ }
2686
+ // src/timecode/timecode.mapper.ts
2687
+ function $(e) {
2688
+ return String(e).padStart(2, "0");
2689
+ }
2690
+ function ki(e, t = !1) {
2691
+ let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = n % 60;
2692
+ return t || r > 0 ? `${$(r)}:${$(i)}:${$(a)}` : `${$(i)}:${$(a)}`;
2693
+ }
2694
+ function Ai(e, t) {
2695
+ let n = new Date(e.getTime() + t * 1e3);
2696
+ return `${$(n.getHours())}:${$(n.getMinutes())}`;
2697
+ }
2698
+ // src/desktop/timeline-lanes.component.tsx
2699
+ function ji({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
2700
+ let c = (e) => o ? Ai(o, e) : ki(e), l = n === void 0 ? void 0 : Di(0, n, e).width;
2701
+ return /* @__PURE__ */ i("div", {
2702
+ "data-slot": "timeline-lanes",
2703
+ role: "group",
2704
+ "aria-label": "Timeline",
2705
+ className: M("relative flex flex-col text-[13px]", s),
2706
+ children: [
2707
+ /* @__PURE__ */ r("div", {
2708
+ className: "flex h-[26px] items-center border-b ps-[118px] pe-2.5",
2709
+ "aria-hidden": "true",
2710
+ children: Oi(e, a).map((e) => /* @__PURE__ */ r("span", {
2711
+ className: "flex-1 text-xs tabular-nums text-muted-foreground",
2712
+ children: c(e)
2713
+ }, e))
2714
+ }),
2715
+ t.map((t) => /* @__PURE__ */ i("div", {
2716
+ className: "flex h-[46px] items-center border-b",
2717
+ children: [/* @__PURE__ */ i("span", {
2718
+ className: "flex w-[108px] shrink-0 items-center gap-1.5 px-2.5 font-medium",
2719
+ children: [/* @__PURE__ */ r("span", {
2720
+ "aria-hidden": "true",
2721
+ className: M("size-2 shrink-0 rounded-[2px]", I[t.hue])
2722
+ }), t.name]
2723
+ }), /* @__PURE__ */ r("div", {
2724
+ className: "relative me-2.5 h-[26px] flex-1",
2725
+ children: t.segments.map((n) => {
2726
+ let a = Di(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
2727
+ return /* @__PURE__ */ i(J, { children: [/* @__PURE__ */ r(Rn, {
2728
+ asChild: !0,
2729
+ children: /* @__PURE__ */ r("button", {
2730
+ type: "button",
2731
+ "aria-label": o,
2732
+ className: M("absolute inset-y-0 cursor-pointer rounded-[5px] outline-none focus-visible:ring-2 focus-visible:ring-ring", I[t.hue], n.faint ? "opacity-35" : "opacity-85"),
2733
+ style: {
2734
+ left: `${a.left}%`,
2735
+ width: `${a.width}%`
2736
+ }
2737
+ })
2738
+ }), /* @__PURE__ */ r(zn, { children: o })] }, `${n.start}-${n.end}`);
2739
+ })
2740
+ })]
2741
+ }, t.name)),
2742
+ l !== void 0 && /* @__PURE__ */ r("span", {
2743
+ "aria-hidden": "true",
2744
+ className: "pointer-events-none absolute inset-y-0 w-0.5 bg-foreground",
2745
+ style: { left: `calc(108px + (100% - 118px) * ${l / 100})` }
2746
+ })
2747
+ ]
2748
+ });
2749
+ }
2750
+ // src/desktop/title-bar.component.tsx
2751
+ function Mi({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
2752
+ let l = [
2753
+ {
2754
+ label: "Minimise",
2755
+ icon: /* @__PURE__ */ r(he, {}),
2756
+ onClick: a
2757
+ },
2758
+ {
2759
+ label: "Maximise",
2760
+ icon: /* @__PURE__ */ r(be, {}),
2761
+ onClick: o
2762
+ },
2763
+ {
2764
+ label: "Close window",
2765
+ icon: /* @__PURE__ */ r(D, {}),
2766
+ onClick: s
2767
+ }
2768
+ ].filter((e) => e.onClick);
2769
+ return /* @__PURE__ */ i("div", {
2770
+ "data-slot": "title-bar",
2771
+ "data-tauri-drag-region": "",
2772
+ className: M("flex h-9 shrink-0 items-center gap-3 border-b bg-sidebar ps-3 text-[13px]", c),
2773
+ children: [
2774
+ /* @__PURE__ */ r(P, {
2775
+ product: e,
2776
+ alt: "",
2777
+ className: "size-[18px]"
2778
+ }),
2779
+ t && /* @__PURE__ */ r(Cr, { children: t }),
2780
+ /* @__PURE__ */ r("span", {
2781
+ "data-tauri-drag-region": "",
2782
+ className: "flex-1 truncate text-center text-[12.5px] text-muted-foreground",
2783
+ children: n
2784
+ }),
2785
+ l.length > 0 && /* @__PURE__ */ r("div", {
2786
+ className: "flex h-full",
2787
+ children: l.map((e) => /* @__PURE__ */ r(B, {
2788
+ variant: "ghost",
2789
+ "aria-label": e.label,
2790
+ onClick: e.onClick,
2791
+ className: M("h-full w-[46px] rounded-none px-0 [&_svg]:size-3.5", e.label === "Close window" && "hover:bg-destructive hover:text-destructive-foreground"),
2792
+ children: e.icon
2793
+ }, e.label))
2794
+ })
2795
+ ]
2796
+ });
2797
+ }
2798
+ // src/mobile/bottom-nav.component.tsx
2799
+ function Ni({ items: e, className: t }) {
2800
+ return /* @__PURE__ */ r("nav", {
2801
+ "data-slot": "bottom-nav",
2802
+ "aria-label": "Tabs",
2803
+ className: M("grid shrink-0 border-t bg-background px-2 pt-1.5 pb-[max(env(safe-area-inset-bottom),8px)]", t),
2804
+ style: { gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))` },
2805
+ children: e.map((e) => /* @__PURE__ */ i("a", {
2806
+ href: e.href,
2807
+ "aria-current": e.current ? "page" : void 0,
2808
+ className: "flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl text-muted-foreground no-underline outline-none focus-visible:ring-2 focus-visible:ring-ring aria-[current=page]:text-brand-text [&_svg]:size-[22px]",
2809
+ children: [/* @__PURE__ */ r("span", {
2810
+ "aria-hidden": "true",
2811
+ className: "flex",
2812
+ children: e.icon
2813
+ }), /* @__PURE__ */ r("span", {
2814
+ className: "text-[11px] font-medium",
2815
+ children: e.label
2816
+ })]
2817
+ }, e.href))
2818
+ });
2819
+ }
2820
+ // src/mobile/capture-frame.component.tsx
2821
+ function Pi({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
2822
+ let l = a.filter((e) => !e.passed).length;
2823
+ return /* @__PURE__ */ i("div", {
2824
+ "data-slot": "capture-frame",
2825
+ className: M("flex h-full flex-col bg-[#0e0d12]", c),
2826
+ children: [/* @__PURE__ */ i("div", {
2827
+ className: "relative grid min-h-[440px] flex-1 place-items-center overflow-hidden",
2828
+ children: [/* @__PURE__ */ i("div", {
2829
+ className: "absolute inset-x-4 top-[max(env(safe-area-inset-top),16px)] z-10 flex items-center justify-between",
2830
+ children: [
2831
+ /* @__PURE__ */ r(B, {
2832
+ size: "icon",
2833
+ "aria-label": "Close camera",
2834
+ onClick: o,
2835
+ className: "rounded-full bg-white/14 text-white hover:bg-white/24",
2836
+ children: /* @__PURE__ */ r(D, {})
2837
+ }),
2838
+ /* @__PURE__ */ r("span", {
2839
+ className: "text-sm font-semibold text-white",
2840
+ children: e
2841
+ }),
2842
+ /* @__PURE__ */ r("span", {
2843
+ className: "size-(--control-h)",
2844
+ "aria-hidden": "true"
2845
+ })
2846
+ ]
2847
+ }), t]
2848
+ }), /* @__PURE__ */ i("section", {
2849
+ "aria-label": "Checks",
2850
+ className: "flex flex-col gap-3 rounded-t-3xl bg-background px-5 pt-5 pb-[max(env(safe-area-inset-bottom),24px)]",
2851
+ children: [
2852
+ /* @__PURE__ */ i("div", {
2853
+ className: "flex items-center gap-2.5",
2854
+ children: [/* @__PURE__ */ r("h2", {
2855
+ className: "m-0 type-h3 text-[19px]",
2856
+ children: n
2857
+ }), l > 0 ? /* @__PURE__ */ i(R, {
2858
+ variant: "danger",
2859
+ dot: !0,
2860
+ className: "ms-auto",
2861
+ children: [l, " failed"]
2862
+ }) : /* @__PURE__ */ r(R, {
2863
+ variant: "success",
2864
+ dot: !0,
2865
+ className: "ms-auto",
2866
+ children: "All passed"
2867
+ })]
2868
+ }),
2869
+ /* @__PURE__ */ r("ul", {
2870
+ className: "m-0 flex list-none flex-col p-0",
2871
+ children: a.map((e) => /* @__PURE__ */ i("li", {
2872
+ className: "flex min-h-10 items-center gap-3 border-b",
2873
+ children: [
2874
+ /* @__PURE__ */ r("span", {
2875
+ className: M("grid size-6 shrink-0 place-items-center rounded-full [&_svg]:size-3.5", e.passed ? "bg-success-soft text-success" : "bg-destructive-soft text-destructive"),
2876
+ children: e.passed ? /* @__PURE__ */ r(T, {
2877
+ strokeWidth: 3,
2878
+ "aria-label": "Passed"
2879
+ }) : /* @__PURE__ */ r(D, {
2880
+ strokeWidth: 3,
2881
+ "aria-label": "Failed"
2882
+ })
2883
+ }),
2884
+ /* @__PURE__ */ r("span", {
2885
+ className: "flex-1 text-[15px]",
2886
+ children: e.label
2887
+ }),
2888
+ /* @__PURE__ */ r("span", {
2889
+ className: "text-xs text-muted-foreground",
2890
+ children: e.detail
2891
+ })
2892
+ ]
2893
+ }, e.label))
2894
+ }),
2895
+ /* @__PURE__ */ r("div", {
2896
+ className: "mt-1 flex gap-2.5 [&>*]:flex-1",
2897
+ children: s
2898
+ })
2899
+ ]
2900
+ })]
2901
+ });
2902
+ }
2903
+ // src/mobile/record-button.component.tsx
2904
+ function Fi({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
2905
+ let u = {
2906
+ idle: {
2907
+ label: "Start recording",
2908
+ icon: /* @__PURE__ */ r(me, {}),
2909
+ onClick: a
2910
+ },
2911
+ recording: {
2912
+ label: "Pause",
2913
+ icon: /* @__PURE__ */ r(_e, {}),
2914
+ onClick: o
2915
+ },
2916
+ paused: {
2917
+ label: "Resume",
2918
+ icon: /* @__PURE__ */ r(ve, {}),
2919
+ onClick: s
2920
+ }
2921
+ }[e];
2922
+ return /* @__PURE__ */ i("div", {
2923
+ "data-slot": "record-button",
2924
+ className: M("flex flex-col gap-3.5 rounded-[20px] bg-brand-soft p-4", l),
2925
+ children: [
2926
+ /* @__PURE__ */ i("div", {
2927
+ className: "flex items-center gap-2",
2928
+ children: [
2929
+ e === "recording" && /* @__PURE__ */ r(R, {
2930
+ variant: "danger",
2931
+ dot: !0,
2932
+ className: "bg-card",
2933
+ children: "Recording"
2934
+ }),
2935
+ e === "paused" && /* @__PURE__ */ r(R, {
2936
+ variant: "warning",
2937
+ className: "bg-card",
2938
+ children: "Paused"
2939
+ }),
2940
+ e === "idle" && /* @__PURE__ */ r(R, {
2941
+ variant: "outline",
2942
+ className: "bg-card",
2943
+ children: "Not recording"
2944
+ }),
2945
+ /* @__PURE__ */ r("span", {
2946
+ className: "ms-auto text-[13px] font-semibold tabular-nums",
2947
+ "aria-label": "Recorded time",
2948
+ children: ki(t, !0)
2949
+ })
2950
+ ]
2951
+ }),
2952
+ n.length > 0 && /* @__PURE__ */ r("div", {
2953
+ "aria-hidden": "true",
2954
+ className: "flex h-10 items-center gap-[3px]",
2955
+ children: n.map((t, n) => /* @__PURE__ */ r("span", {
2956
+ className: M("block w-1 rounded-full bg-brand", e !== "recording" && "opacity-45"),
2957
+ style: { height: `${Math.round(6 + Math.min(1, Math.max(0, t)) * 30)}px` }
2958
+ }, n))
2959
+ }),
2960
+ /* @__PURE__ */ i("div", {
2961
+ className: "flex gap-2.5",
2962
+ children: [/* @__PURE__ */ i(B, {
2963
+ className: "flex-1",
2964
+ onClick: u.onClick,
2965
+ children: [u.icon, u.label]
2966
+ }), e === "recording" && c && /* @__PURE__ */ r(B, {
2967
+ variant: "outline",
2968
+ size: "icon",
2969
+ className: "bg-card",
2970
+ "aria-label": "Add a marker",
2971
+ onClick: c,
2972
+ children: /* @__PURE__ */ r(ie, {})
2973
+ })]
2974
+ })
2975
+ ]
2976
+ });
2977
+ }
2978
+ // src/web/cta-band.component.tsx
2979
+ function Ii({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
2980
+ let c = De();
2981
+ function l(e) {
2982
+ e.preventDefault();
2983
+ let t = new FormData(e.currentTarget).get("email");
2984
+ typeof t == "string" && t.trim() && n(t.trim());
2985
+ }
2986
+ return /* @__PURE__ */ r("section", {
2987
+ "data-slot": "cta-band",
2988
+ className: M("py-22", s),
2989
+ children: /* @__PURE__ */ r("div", {
2990
+ className: "mx-auto max-w-[1200px] px-6",
2991
+ children: /* @__PURE__ */ i("div", {
2992
+ className: "grid grid-cols-[repeat(auto-fit,minmax(320px,1fr))] items-center gap-8 rounded-[28px] bg-primary p-[clamp(28px,5vw,56px)] text-primary-foreground",
2993
+ children: [/* @__PURE__ */ i("div", {
2994
+ className: "flex flex-col gap-2.5",
2995
+ children: [/* @__PURE__ */ r("h2", {
2996
+ className: "m-0 type-h2 text-4xl text-inherit",
2997
+ children: e
2998
+ }), t && /* @__PURE__ */ r("p", {
2999
+ className: "m-0 text-[17px] opacity-90",
3000
+ children: t
3001
+ })]
3002
+ }), /* @__PURE__ */ i("form", {
3003
+ onSubmit: l,
3004
+ className: "flex flex-wrap gap-2.5",
3005
+ children: [
3006
+ /* @__PURE__ */ r("label", {
3007
+ htmlFor: c,
3008
+ className: "sr-only",
3009
+ children: a
3010
+ }),
3011
+ /* @__PURE__ */ r(U, {
3012
+ id: c,
3013
+ name: "email",
3014
+ type: "email",
3015
+ required: !0,
3016
+ autoComplete: "email",
3017
+ placeholder: a,
3018
+ className: "flex-[1_1_220px] border-transparent"
3019
+ }),
3020
+ /* @__PURE__ */ r(B, {
3021
+ type: "submit",
3022
+ className: "bg-foreground text-background hover:bg-foreground/90",
3023
+ children: o
3024
+ })
3025
+ ]
3026
+ })]
3027
+ })
3028
+ })
3029
+ });
3030
+ }
3031
+ // src/web/faq.component.tsx
3032
+ function Li({ title: e, items: t, className: n }) {
3033
+ return /* @__PURE__ */ r("section", {
3034
+ "data-slot": "faq",
3035
+ className: M("py-22", n),
3036
+ children: /* @__PURE__ */ i("div", {
3037
+ className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
3038
+ children: [/* @__PURE__ */ r("h2", {
3039
+ className: "m-0 type-h2 text-4xl",
3040
+ children: e
3041
+ }), /* @__PURE__ */ r(Ft, {
3042
+ type: "single",
3043
+ collapsible: !0,
3044
+ children: t.map((e) => /* @__PURE__ */ i(It, {
3045
+ value: e.question,
3046
+ children: [/* @__PURE__ */ r(Lt, { children: e.question }), /* @__PURE__ */ r(Rt, {
3047
+ className: "text-[15px]",
3048
+ children: e.answer
3049
+ })]
3050
+ }, e.question))
3051
+ })]
3052
+ })
3053
+ });
3054
+ }
3055
+ // src/web/feature-grid.component.tsx
3056
+ function Ri({ title: e, lead: t, features: n, className: a }) {
3057
+ return /* @__PURE__ */ r("section", {
3058
+ "data-slot": "feature-grid",
3059
+ className: M("border-y bg-canvas py-22", a),
3060
+ children: /* @__PURE__ */ i("div", {
3061
+ className: "mx-auto flex max-w-[1200px] flex-col gap-10 px-6",
3062
+ children: [(e || t) && /* @__PURE__ */ i("div", {
3063
+ className: "flex max-w-[720px] flex-col gap-2.5",
3064
+ children: [e && /* @__PURE__ */ r("h2", {
3065
+ className: "m-0 type-h2 text-4xl",
3066
+ children: e
3067
+ }), t && /* @__PURE__ */ r("p", {
3068
+ className: "m-0 type-lead",
3069
+ children: t
3070
+ })]
3071
+ }), /* @__PURE__ */ r("ul", {
3072
+ className: "m-0 grid list-none grid-cols-[repeat(auto-fit,minmax(300px,1fr))] gap-4 p-0",
3073
+ children: n.map((e) => /* @__PURE__ */ i("li", {
3074
+ className: "flex flex-col gap-3 rounded-2xl border bg-card p-6 shadow-xs",
3075
+ children: [
3076
+ /* @__PURE__ */ r("span", {
3077
+ "aria-hidden": "true",
3078
+ className: "grid size-11 place-items-center rounded-xl bg-brand-soft text-brand-text [&_svg]:size-6",
3079
+ children: e.icon
3080
+ }),
3081
+ /* @__PURE__ */ r("h3", {
3082
+ className: "m-0 type-h3",
3083
+ children: e.title
3084
+ }),
3085
+ /* @__PURE__ */ r("p", {
3086
+ className: "m-0 text-[15px] text-muted-foreground",
3087
+ children: e.body
3088
+ })
3089
+ ]
3090
+ }, e.title))
3091
+ })]
3092
+ })
3093
+ });
3094
+ }
3095
+ // src/web/hero.component.tsx
3096
+ function zi({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
3097
+ return /* @__PURE__ */ r("section", {
3098
+ "data-slot": "hero",
3099
+ className: M("pt-22 pb-14", o),
3100
+ children: /* @__PURE__ */ i("div", {
3101
+ className: "mx-auto flex max-w-[1200px] flex-col items-start gap-5.5 px-6",
3102
+ children: [
3103
+ e && /* @__PURE__ */ r(R, {
3104
+ variant: "brand",
3105
+ className: "h-7 px-3 text-[13px]",
3106
+ children: e
3107
+ }),
3108
+ /* @__PURE__ */ r("h1", {
3109
+ className: "m-0 max-w-[980px] type-display text-[clamp(40px,6vw,72px)]",
3110
+ children: t
3111
+ }),
3112
+ n && /* @__PURE__ */ r("p", {
3113
+ className: "m-0 max-w-[680px] type-lead text-[19px]",
3114
+ children: n
3115
+ }),
3116
+ a && /* @__PURE__ */ r("div", {
3117
+ className: "flex flex-wrap gap-3",
3118
+ children: a
3119
+ })
3120
+ ]
3121
+ })
3122
+ });
3123
+ }
3124
+ // src/web/how-it-works.component.tsx
3125
+ function Bi({ title: e, lead: t, link: n, steps: a, className: o }) {
3126
+ return /* @__PURE__ */ r("section", {
3127
+ "data-slot": "how-it-works",
3128
+ className: M("py-22", o),
3129
+ children: /* @__PURE__ */ i("div", {
3130
+ className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
3131
+ children: [/* @__PURE__ */ i("div", {
3132
+ className: "flex flex-col gap-3.5",
3133
+ children: [
3134
+ /* @__PURE__ */ r("h2", {
3135
+ className: "m-0 type-h2 text-4xl",
3136
+ children: e
3137
+ }),
3138
+ t && /* @__PURE__ */ r("p", {
3139
+ className: "m-0 type-lead",
3140
+ children: t
3141
+ }),
3142
+ n
3143
+ ]
3144
+ }), /* @__PURE__ */ r("ol", {
3145
+ className: "m-0 flex list-none flex-col p-0",
3146
+ children: a.map((e, t) => /* @__PURE__ */ i("li", {
3147
+ className: "grid grid-cols-[44px_minmax(0,1fr)] gap-4.5 border-b py-4.5",
3148
+ children: [/* @__PURE__ */ r("span", {
3149
+ "aria-hidden": "true",
3150
+ className: "grid size-11 place-items-center rounded-full border-[1.5px] border-brand font-bold text-brand-text",
3151
+ children: t + 1
3152
+ }), /* @__PURE__ */ i("span", {
3153
+ className: "flex flex-col gap-1",
3154
+ children: [/* @__PURE__ */ r("span", {
3155
+ className: "type-h3",
3156
+ children: e.title
3157
+ }), /* @__PURE__ */ r("span", {
3158
+ className: "text-[15px] text-muted-foreground",
3159
+ children: e.body
3160
+ })]
3161
+ })]
3162
+ }, e.title))
3163
+ })]
3164
+ })
3165
+ });
3166
+ }
3167
+ // src/web/mobile-menu.component.tsx
3168
+ var Vi = 400;
3169
+ function Hi({ links: e, actions: t, label: n = "Main", className: a }) {
3170
+ let [o, s] = k(!1), [c, l] = k(), [u, f] = k(!1), p = Oe(null);
3171
+ O(() => {
3172
+ if (o) return;
3173
+ let e = setTimeout(() => f(!1), Vi);
3174
+ return () => clearTimeout(e);
3175
+ }, [o]), O(() => {
3176
+ if (!o) return;
3177
+ let e = new ResizeObserver(() => m());
3178
+ return e.observe(document.documentElement), () => e.disconnect();
3179
+ }, [o]);
3180
+ function m() {
3181
+ let e = p.current?.getBoundingClientRect();
3182
+ e && l({
3183
+ left: e.left,
3184
+ top: e.top,
3185
+ width: e.width,
3186
+ height: e.height
3187
+ });
3188
+ }
3189
+ function h(e) {
3190
+ e && m(), e && f(!0), s(e);
3191
+ }
3192
+ let g = c ? {
3193
+ "--menu-origin-x": `${c.left + c.width / 2}px`,
3194
+ "--menu-origin-y": `${c.top + c.height / 2}px`
3195
+ } : void 0;
3196
+ return /* @__PURE__ */ i(d.Root, {
3197
+ open: o,
3198
+ onOpenChange: h,
3199
+ children: [/* @__PURE__ */ r(d.Trigger, {
3200
+ asChild: !0,
3201
+ children: /* @__PURE__ */ r(B, {
3202
+ ref: p,
3203
+ variant: "ghost",
3204
+ size: "icon",
3205
+ "aria-label": "Open menu",
3206
+ className: a,
3207
+ children: /* @__PURE__ */ r(Sr, { className: u ? "invisible" : void 0 })
3208
+ })
3209
+ }), /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, {
3210
+ "data-slot": "mobile-menu-backdrop",
3211
+ className: "fixed inset-0 z-50 backdrop-blur-[5px] backdrop-contrast-[.5] backdrop-saturate-[.3] backdrop-brightness-[1.3] dark:backdrop-brightness-[.7] data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in data-[state=closed]:[animation-duration:340ms] data-[state=open]:[animation-duration:420ms]"
3212
+ }), /* @__PURE__ */ i(d.Content, {
3213
+ "data-slot": "mobile-menu",
3214
+ "aria-describedby": void 0,
3215
+ style: g,
3216
+ className: "group/menu d-mob pointer-events-none fixed inset-0 z-50 outline-none data-[state=closed]:animate-[menu-hold_400ms_both]",
3217
+ children: [
3218
+ /* @__PURE__ */ r(d.Title, {
3219
+ className: "sr-only",
3220
+ children: "Menu"
3221
+ }),
3222
+ /* @__PURE__ */ r("div", {
3223
+ className: "fixed inset-0 [filter:drop-shadow(0_0_1px_rgb(20_18_26/0.4))_drop-shadow(-12px_16px_36px_rgb(20_18_26/0.4))] dark:[filter:drop-shadow(0_0_1px_rgb(255_255_255/0.45))_drop-shadow(-12px_16px_36px_rgb(0_0_0/0.7))]",
3224
+ children: /* @__PURE__ */ r("div", {
3225
+ className: M("fixed inset-0 animate-menu-reveal group-data-[state=closed]/menu:animate-menu-conceal", "motion-reduce:animate-fade-in motion-reduce:group-data-[state=closed]/menu:animate-fade-out"),
3226
+ children: /* @__PURE__ */ i("div", {
3227
+ className: "pointer-events-auto absolute inset-y-0 end-0 flex w-[min(340px,86vw)] flex-col gap-1 border-s bg-popover px-5 pt-21 pb-8 text-popover-foreground",
3228
+ children: [/* @__PURE__ */ r("nav", {
3229
+ "aria-label": n,
3230
+ className: "flex flex-col gap-1",
3231
+ children: e.map((e, t) => /* @__PURE__ */ r("a", {
3232
+ href: e.href,
3233
+ onClick: () => h(!1),
3234
+ style: { animationDelay: `${120 + t * 45}ms` },
3235
+ className: "animate-menu-item-in rounded-md px-2 py-3 text-base font-medium text-foreground no-underline outline-none transition-colors duration-150 hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring motion-reduce:animate-fade-in",
3236
+ children: e.label
3237
+ }, e.href))
3238
+ }), t && /* @__PURE__ */ r("div", {
3239
+ className: "mt-auto flex animate-menu-item-in flex-col gap-2 [animation-delay:320ms] motion-reduce:animate-fade-in",
3240
+ children: t
3241
+ })]
3242
+ })
3243
+ })
3244
+ }),
3245
+ /* @__PURE__ */ r(d.Close, {
3246
+ asChild: !0,
3247
+ children: /* @__PURE__ */ r(B, {
3248
+ variant: "ghost",
3249
+ size: "icon",
3250
+ "aria-label": "Close menu",
3251
+ className: "pointer-events-auto fixed",
3252
+ style: c ? {
3253
+ left: c.left,
3254
+ top: c.top,
3255
+ width: c.width,
3256
+ height: c.height
3257
+ } : {
3258
+ right: 24,
3259
+ top: 12
3260
+ },
3261
+ children: /* @__PURE__ */ r(Sr, { open: o })
3262
+ })
3263
+ })
3264
+ ]
3265
+ })] })]
3266
+ });
3267
+ }
3268
+ // src/web/pricing-table.component.tsx
3269
+ function Ui({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
3270
+ let [l, u] = k(a);
3271
+ return /* @__PURE__ */ r("section", {
3272
+ "data-slot": "pricing-table",
3273
+ className: M("border-y bg-canvas py-22", c),
3274
+ children: /* @__PURE__ */ i("div", {
3275
+ className: "mx-auto flex max-w-[1200px] flex-col gap-8 px-6",
3276
+ children: [
3277
+ /* @__PURE__ */ i("div", {
3278
+ className: "flex flex-wrap items-end justify-between gap-5",
3279
+ children: [/* @__PURE__ */ i("div", {
3280
+ className: "flex flex-col gap-2.5",
3281
+ children: [/* @__PURE__ */ r("h2", {
3282
+ className: "m-0 type-h2 text-4xl",
3283
+ children: e
3284
+ }), t && /* @__PURE__ */ r("p", {
3285
+ className: "m-0 type-lead",
3286
+ children: t
3287
+ })]
3288
+ }), /* @__PURE__ */ i(mt, {
3289
+ type: "single",
3290
+ value: l,
3291
+ onValueChange: (e) => e && u(e),
3292
+ "aria-label": "Billing",
3293
+ children: [/* @__PURE__ */ r(ht, {
3294
+ value: "monthly",
3295
+ children: "Monthly"
3296
+ }), /* @__PURE__ */ r(ht, {
3297
+ value: "yearly",
3298
+ children: "Yearly"
3299
+ })]
3300
+ })]
3301
+ }),
3302
+ /* @__PURE__ */ r("ul", {
3303
+ className: "m-0 grid list-none grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-4 p-0",
3304
+ children: n.map((e) => /* @__PURE__ */ i("li", {
3305
+ "aria-label": e.name,
3306
+ className: M("flex flex-col gap-3.5 rounded-2xl border bg-card p-7 shadow-xs", e.featured && "border-brand shadow-[0_0_0_1px_var(--brand),var(--elevation-md)]"),
3307
+ children: [
3308
+ /* @__PURE__ */ i("div", {
3309
+ className: "flex items-center justify-between",
3310
+ children: [/* @__PURE__ */ r("h3", {
3311
+ className: "m-0 type-h3",
3312
+ children: e.name
3313
+ }), e.featured && /* @__PURE__ */ r(R, { children: s })]
3314
+ }),
3315
+ /* @__PURE__ */ r("span", {
3316
+ className: "font-display text-[34px] font-extrabold tracking-tight",
3317
+ children: typeof e.price == "string" ? e.price : e.price[l]
3318
+ }),
3319
+ /* @__PURE__ */ r("p", {
3320
+ className: "m-0 text-[15px] text-muted-foreground",
3321
+ children: e.blurb
3322
+ }),
3323
+ /* @__PURE__ */ r("hr", { className: "m-0 h-px border-0 bg-border" }),
3324
+ /* @__PURE__ */ r("ul", {
3325
+ className: "m-0 flex list-none flex-col gap-2.5 p-0 text-[15px]",
3326
+ children: e.features.map((e) => /* @__PURE__ */ i("li", {
3327
+ className: "flex gap-2.5",
3328
+ children: [/* @__PURE__ */ r(T, {
3329
+ className: "mt-0.5 size-4.5 shrink-0 text-brand-text",
3330
+ strokeWidth: 2,
3331
+ "aria-hidden": "true"
3332
+ }), e]
3333
+ }, e))
3334
+ }),
3335
+ /* @__PURE__ */ r(B, {
3336
+ asChild: !0,
3337
+ variant: e.featured ? "default" : "outline",
3338
+ className: "mt-auto",
3339
+ children: /* @__PURE__ */ r("a", {
3340
+ href: e.cta.href,
3341
+ children: e.cta.label
3342
+ })
3343
+ })
3344
+ ]
3345
+ }, e.name))
3346
+ }),
3347
+ o && /* @__PURE__ */ r("p", {
3348
+ className: "m-0 text-xs text-muted-foreground",
3349
+ children: o
3350
+ })
3351
+ ]
3352
+ })
3353
+ });
3354
+ }
3355
+ // src/web/product-card.component.tsx
3356
+ function Wi({ product: e, href: t, description: n, stage: a, className: o }) {
3357
+ let s = N[e];
3358
+ return /* @__PURE__ */ i("a", {
3359
+ "data-slot": "product-card",
3360
+ "data-product": e,
3361
+ href: t,
3362
+ className: M("flex flex-col overflow-hidden rounded-2xl border bg-card text-card-foreground no-underline shadow-xs transition-shadow hover:shadow-sm focus-visible:outline-2 focus-visible:outline-ring", o),
3363
+ children: [/* @__PURE__ */ r("span", {
3364
+ "aria-hidden": "true",
3365
+ className: "block h-1.5 bg-brand"
3366
+ }), /* @__PURE__ */ i("span", {
3367
+ className: "flex flex-col gap-3.5 p-5.5",
3368
+ children: [
3369
+ /* @__PURE__ */ r(P, {
3370
+ product: e,
3371
+ alt: "",
3372
+ className: "size-11"
3373
+ }),
3374
+ /* @__PURE__ */ i("span", {
3375
+ className: "flex flex-col gap-1",
3376
+ children: [/* @__PURE__ */ r("span", {
3377
+ className: "font-display text-2xl font-extrabold italic text-brand-text",
3378
+ children: s.name
3379
+ }), /* @__PURE__ */ r("span", {
3380
+ className: "text-[13px] leading-normal text-muted-foreground",
3381
+ children: n ?? s.tagline
3382
+ })]
3383
+ }),
3384
+ /* @__PURE__ */ r(R, {
3385
+ variant: "outline",
3386
+ className: "self-start",
3387
+ children: a ?? s.stage
3388
+ })
3389
+ ]
3390
+ })]
3391
+ });
3392
+ }
3393
+ // src/web/site-footer.component.tsx
3394
+ function Gi({ tagline: e, columns: t, legal: n, className: a }) {
3395
+ return /* @__PURE__ */ i("footer", {
3396
+ "data-slot": "site-footer",
3397
+ className: M("border-t pt-14 pb-10", a),
3398
+ children: [/* @__PURE__ */ i("div", {
3399
+ className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(160px,1fr))] gap-8 px-6",
3400
+ children: [/* @__PURE__ */ i("div", {
3401
+ className: "col-span-2 flex flex-col gap-3",
3402
+ children: [/* @__PURE__ */ i("span", {
3403
+ className: "flex items-center gap-2",
3404
+ children: [/* @__PURE__ */ r(P, {
3405
+ product: "talogic",
3406
+ alt: "",
3407
+ className: "size-7"
3408
+ }), /* @__PURE__ */ r("span", {
3409
+ className: "font-display text-xl font-extrabold tracking-tight",
3410
+ children: "Talogic"
3411
+ })]
3412
+ }), e && /* @__PURE__ */ r("p", {
3413
+ className: "m-0 max-w-[300px] text-[13px] text-muted-foreground",
3414
+ children: e
3415
+ })]
3416
+ }), t.map((e) => /* @__PURE__ */ i("nav", {
3417
+ "aria-label": e.title,
3418
+ className: "flex flex-col gap-2 text-[13px]",
3419
+ children: [/* @__PURE__ */ r("h2", {
3420
+ className: "m-0 type-h4",
3421
+ children: e.title
3422
+ }), e.links.map((e) => /* @__PURE__ */ r("a", {
3423
+ href: e.href,
3424
+ className: "text-muted-foreground no-underline hover:text-foreground",
3425
+ children: e.label
3426
+ }, e.href))]
3427
+ }, e.title))]
3428
+ }), n && /* @__PURE__ */ r("div", {
3429
+ className: "mx-auto mt-10 flex max-w-[1200px] flex-wrap justify-between gap-3 px-6 text-xs text-muted-foreground",
3430
+ children: n
3431
+ })]
3432
+ });
3433
+ }
3434
+ // src/web/site-header.component.tsx
3435
+ function Ki({ nav: e, actions: t, brand: a, className: o }) {
3436
+ let s = a ?? /* @__PURE__ */ i("a", {
3437
+ href: "/",
3438
+ className: "flex items-center gap-2 no-underline",
3439
+ "aria-label": "Talogic home",
3440
+ children: [/* @__PURE__ */ r(P, {
3441
+ product: "talogic",
3442
+ alt: "",
3443
+ className: "size-7"
3444
+ }), /* @__PURE__ */ r("span", {
3445
+ className: "font-display text-xl font-extrabold tracking-tight text-foreground",
3446
+ children: "Talogic"
3447
+ })]
3448
+ });
3449
+ return /* @__PURE__ */ r("header", {
3450
+ "data-slot": "site-header",
3451
+ className: M("sticky top-0 z-40 border-b bg-background/88 backdrop-blur-md", o),
3452
+ children: /* @__PURE__ */ i("div", {
3453
+ className: "mx-auto flex h-[68px] max-w-[1200px] items-center gap-7 px-6",
3454
+ children: [
3455
+ s,
3456
+ /* @__PURE__ */ r(Ar, {
3457
+ className: "hidden md:flex",
3458
+ "aria-label": "Main",
3459
+ children: /* @__PURE__ */ r(jr, { children: e.map((e) => /* @__PURE__ */ r(Mr, { children: e.links ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(Pr, { children: e.label }), /* @__PURE__ */ r(Fr, { children: /* @__PURE__ */ r("ul", {
3460
+ className: "m-0 grid w-[420px] list-none gap-1 p-0",
3461
+ children: e.links.map((e) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ i(Ir, {
3462
+ href: e.href,
3463
+ className: "flex h-auto flex-col items-start gap-0.5 py-2",
3464
+ children: [/* @__PURE__ */ r("span", {
3465
+ className: "text-sm font-semibold",
3466
+ children: e.label
3467
+ }), e.description && /* @__PURE__ */ r("span", {
3468
+ className: "text-[13px] font-normal text-muted-foreground",
3469
+ children: e.description
3470
+ })]
3471
+ }) }, e.href))
3472
+ }) })] }) : /* @__PURE__ */ r(Ir, {
3473
+ href: e.href,
3474
+ children: e.label
3475
+ }) }, e.label)) })
3476
+ }),
3477
+ /* @__PURE__ */ r("div", {
3478
+ className: "ms-auto hidden items-center gap-2 md:flex",
3479
+ children: t
3480
+ }),
3481
+ /* @__PURE__ */ r(Hi, {
3482
+ className: "ms-auto md:hidden",
3483
+ links: e.flatMap((e) => e.links ?? [{
3484
+ label: e.label,
3485
+ href: e.href ?? "#"
3486
+ }]),
3487
+ actions: t
3488
+ })
3489
+ ]
3490
+ })
3491
+ });
3492
+ }
3493
+ export { Ft as Accordion, Rt as AccordionContent, It as AccordionItem, Lt as AccordionTrigger, _t as Alert, an as AlertDialog, un as AlertDialogAction, dn as AlertDialogCancel, sn as AlertDialogContent, ln as AlertDialogDescription, cn as AlertDialogTitle, on as AlertDialogTrigger, di as AppShell, nt as Avatar, it as AvatarFallback, rt as AvatarImage, R as Badge, Ni as BottomNav, hr as Breadcrumb, _r as BreadcrumbItem, vr as BreadcrumbLink, gr as BreadcrumbList, yr as BreadcrumbPage, br as BreadcrumbSeparator, B as Button, $e as COLOUR_SCHEMES, Pi as CaptureFrame, zt as Card, Ut as CardContent, Ht as CardDescription, Wt as CardFooter, Bt as CardHeader, Vt as CardTitle, st as Checkbox, Wn as Command, Gn as CommandDialog, Jn as CommandEmpty, Yn as CommandGroup, Kn as CommandInput, Xn as CommandItem, qn as CommandList, Zn as CommandSeparator, Qn as CommandShortcut, $n as ContextMenu, tr as ContextMenuContent, nr as ContextMenuItem, rr as ContextMenuSeparator, ir as ContextMenuShortcut, er as ContextMenuTrigger, Ii as CtaBand, Qe as DENSITIES, fn as Dialog, mn as DialogClose, hn as DialogContent, yn as DialogDescription, _n as DialogFooter, gn as DialogHeader, vn as DialogTitle, pn as DialogTrigger, bn as Drawer, Sn as DrawerClose, Cn as DrawerContent, Tn as DrawerDescription, wn as DrawerTitle, xn as DrawerTrigger, ar as DropdownMenu, lr as DropdownMenuContent, sr as DropdownMenuGroup, ur as DropdownMenuItem, fr as DropdownMenuLabel, cr as DropdownMenuRadioGroup, dr as DropdownMenuRadioItem, pr as DropdownMenuSeparator, mr as DropdownMenuShortcut, or as DropdownMenuTrigger, vt as EmptyState, Be as FAMILY_PALETTE, qe as FREE_HUES, Li as Faq, Ri as FeatureGrid, Tt as Field, fi as FilterBar, pi as FilterChip, wi as FlowNode, mi as FormSection, Xe as HUES, I as HUE_FILL, zi as Hero, Bi as HowItWorks, U as Input, Ti as Inspector, Gt as Kbd, Fe as LABEL_COLORS, L as LOGO_RULE, wt as Label, Sr as MenuIcon, Cr as Menubar, Er as MenubarContent, Dr as MenubarItem, wr as MenubarMenu, kr as MenubarSeparator, Or as MenubarShortcut, Tr as MenubarTrigger, Hi as MobileMenu, Ar as NavigationMenu, Fr as NavigationMenuContent, Mr as NavigationMenuItem, Ir as NavigationMenuLink, jr as NavigationMenuList, Pr as NavigationMenuTrigger, Ze as PALETTE_STEPS, Ye as PRODUCTS, N as PRODUCT_CATALOGUE, Ke as PRODUCT_HUES, hi as PageHeader, Lr as Pagination, En as Popover, On as PopoverAnchor, kn as PopoverContent, Dn as PopoverTrigger, Ui as PricingTable, Wi as ProductCard, P as ProductLogo, ni as ProductSwitcher, yt as Progress, bi as RUN_STATUSES, ct as RadioGroup, lt as RadioGroupItem, Fi as RecordButton, gi as RecordsTable, Jt as ResizableHandle, qt as ResizablePanel, Kt as ResizablePanelGroup, Yt as ScrollArea, Xt as ScrollBar, Et as Select, At as SelectContent, Dt as SelectGroup, Mt as SelectItem, jt as SelectLabel, Nt as SelectSeparator, kt as SelectTrigger, Ot as SelectValue, Zt as Separator, An as Sheet, Mn as SheetClose, In as SheetContent, Pn as SheetDescription, Nn as SheetTitle, jn as SheetTrigger, Kr as Sidebar, ri as SidebarBrand, Jr as SidebarCollapseButton, Xr as SidebarContent, Zr as SidebarFooter, Qr as SidebarGroup, Yr as SidebarHeader, $r as SidebarItem, ti as SidebarSheet, qr as SidebarTooltip, Gi as SiteFooter, Ki as SiteHeader, bt as Skeleton, ut as Slider, xt as Spinner, yi as StatCard, Ci as StatusBadge, Ei as StatusBar, Ur as Stepper, dt as Switch, Qt as Table, en as TableBody, nn as TableCaption, G as TableCell, W as TableHead, $t as TableHeader, tn as TableRow, Rr as Tabs, Vr as TabsContent, zr as TabsList, Br as TabsTrigger, Pt as Textarea, tt as ThemeRoot, ji as TimelineLanes, Mi as TitleBar, St as Toaster, mt as ToggleGroup, ht as ToggleGroupItem, J as Tooltip, zn as TooltipContent, Ln as TooltipProvider, Rn as TooltipTrigger, Re as apcaContrast, at as badgeVariants, z as buttonVariants, M as cn, ai as commandShortcutLabel, V as controlClassName, Z as fadingLabelClassName, q as floatingMotionClassName, Ai as formatClockTime, ki as formatTimecode, Je as hueForProduct, Ge as logoColorForHue, Q as navRowClassName, K as overlayClassName, ze as readableLabel, Si as runStatusDisplay, rn as sheetMotionClassName, _i as sparklinePath, et as themeAttributes, Di as timelineBox, Oi as timelineTicks, ii as useCommandShortcut, ui as useCommandShortcutLabel, H as useFieldControl, X as useSidebar };
3494
+
3495
+ //# sourceMappingURL=index.js.map