@yccui/ui 1.0.0

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 (153) hide show
  1. package/README.md +504 -0
  2. package/dist/components/DataDisplay/Accordion.d.ts +12 -0
  3. package/dist/components/DataDisplay/Accordion.d.ts.map +1 -0
  4. package/dist/components/DataDisplay/Avatar.d.ts +9 -0
  5. package/dist/components/DataDisplay/Avatar.d.ts.map +1 -0
  6. package/dist/components/DataDisplay/Badge.d.ts +8 -0
  7. package/dist/components/DataDisplay/Badge.d.ts.map +1 -0
  8. package/dist/components/DataDisplay/Banner.d.ts +13 -0
  9. package/dist/components/DataDisplay/Banner.d.ts.map +1 -0
  10. package/dist/components/DataDisplay/Card.d.ts +27 -0
  11. package/dist/components/DataDisplay/Card.d.ts.map +1 -0
  12. package/dist/components/DataDisplay/CompareBar.d.ts +10 -0
  13. package/dist/components/DataDisplay/CompareBar.d.ts.map +1 -0
  14. package/dist/components/DataDisplay/CopyButton.d.ts +8 -0
  15. package/dist/components/DataDisplay/CopyButton.d.ts.map +1 -0
  16. package/dist/components/DataDisplay/DataList.d.ts +11 -0
  17. package/dist/components/DataDisplay/DataList.d.ts.map +1 -0
  18. package/dist/components/DataDisplay/Donut.d.ts +10 -0
  19. package/dist/components/DataDisplay/Donut.d.ts.map +1 -0
  20. package/dist/components/DataDisplay/EmptyState.d.ts +10 -0
  21. package/dist/components/DataDisplay/EmptyState.d.ts.map +1 -0
  22. package/dist/components/DataDisplay/KV.d.ts +9 -0
  23. package/dist/components/DataDisplay/KV.d.ts.map +1 -0
  24. package/dist/components/DataDisplay/Popover.d.ts +9 -0
  25. package/dist/components/DataDisplay/Popover.d.ts.map +1 -0
  26. package/dist/components/DataDisplay/ProgressBar.d.ts +10 -0
  27. package/dist/components/DataDisplay/ProgressBar.d.ts.map +1 -0
  28. package/dist/components/DataDisplay/StatCard.d.ts +13 -0
  29. package/dist/components/DataDisplay/StatCard.d.ts.map +1 -0
  30. package/dist/components/DataDisplay/Table.d.ts +23 -0
  31. package/dist/components/DataDisplay/Table.d.ts.map +1 -0
  32. package/dist/components/DataDisplay/Tag.d.ts +9 -0
  33. package/dist/components/DataDisplay/Tag.d.ts.map +1 -0
  34. package/dist/components/DataDisplay/Timeline.d.ts +12 -0
  35. package/dist/components/DataDisplay/Timeline.d.ts.map +1 -0
  36. package/dist/components/DataDisplay/Tooltip.d.ts +9 -0
  37. package/dist/components/DataDisplay/Tooltip.d.ts.map +1 -0
  38. package/dist/components/DataDisplay/TrendSpark.d.ts +9 -0
  39. package/dist/components/DataDisplay/TrendSpark.d.ts.map +1 -0
  40. package/dist/components/DataDisplay/index.d.ts +39 -0
  41. package/dist/components/DataDisplay/index.d.ts.map +1 -0
  42. package/dist/components/Feedback/Alert.d.ts +9 -0
  43. package/dist/components/Feedback/Alert.d.ts.map +1 -0
  44. package/dist/components/Feedback/ConfirmDialog.d.ts +14 -0
  45. package/dist/components/Feedback/ConfirmDialog.d.ts.map +1 -0
  46. package/dist/components/Feedback/Drawer.d.ts +12 -0
  47. package/dist/components/Feedback/Drawer.d.ts.map +1 -0
  48. package/dist/components/Feedback/Modal.d.ts +14 -0
  49. package/dist/components/Feedback/Modal.d.ts.map +1 -0
  50. package/dist/components/Feedback/Skeleton.d.ts +8 -0
  51. package/dist/components/Feedback/Skeleton.d.ts.map +1 -0
  52. package/dist/components/Feedback/Spinner.d.ts +8 -0
  53. package/dist/components/Feedback/Spinner.d.ts.map +1 -0
  54. package/dist/components/Feedback/Toast.d.ts +20 -0
  55. package/dist/components/Feedback/Toast.d.ts.map +1 -0
  56. package/dist/components/Feedback/index.d.ts +15 -0
  57. package/dist/components/Feedback/index.d.ts.map +1 -0
  58. package/dist/components/Form/Button.d.ts +16 -0
  59. package/dist/components/Form/Button.d.ts.map +1 -0
  60. package/dist/components/Form/Checkbox.d.ts +12 -0
  61. package/dist/components/Form/Checkbox.d.ts.map +1 -0
  62. package/dist/components/Form/DateInput.d.ts +12 -0
  63. package/dist/components/Form/DateInput.d.ts.map +1 -0
  64. package/dist/components/Form/FileUpload.d.ts +11 -0
  65. package/dist/components/Form/FileUpload.d.ts.map +1 -0
  66. package/dist/components/Form/FormGroup.d.ts +11 -0
  67. package/dist/components/Form/FormGroup.d.ts.map +1 -0
  68. package/dist/components/Form/Input.d.ts +17 -0
  69. package/dist/components/Form/Input.d.ts.map +1 -0
  70. package/dist/components/Form/Radio.d.ts +13 -0
  71. package/dist/components/Form/Radio.d.ts.map +1 -0
  72. package/dist/components/Form/RadioGroup.d.ts +16 -0
  73. package/dist/components/Form/RadioGroup.d.ts.map +1 -0
  74. package/dist/components/Form/ScanZone.d.ts +8 -0
  75. package/dist/components/Form/ScanZone.d.ts.map +1 -0
  76. package/dist/components/Form/SearchInput.d.ts +13 -0
  77. package/dist/components/Form/SearchInput.d.ts.map +1 -0
  78. package/dist/components/Form/Select.d.ts +18 -0
  79. package/dist/components/Form/Select.d.ts.map +1 -0
  80. package/dist/components/Form/Textarea.d.ts +14 -0
  81. package/dist/components/Form/Textarea.d.ts.map +1 -0
  82. package/dist/components/Form/Toggle.d.ts +11 -0
  83. package/dist/components/Form/Toggle.d.ts.map +1 -0
  84. package/dist/components/Form/index.d.ts +27 -0
  85. package/dist/components/Form/index.d.ts.map +1 -0
  86. package/dist/components/Icons/Icon.d.ts +10 -0
  87. package/dist/components/Icons/Icon.d.ts.map +1 -0
  88. package/dist/components/Icons/index.d.ts +3 -0
  89. package/dist/components/Icons/index.d.ts.map +1 -0
  90. package/dist/components/Layout/Col.d.ts +12 -0
  91. package/dist/components/Layout/Col.d.ts.map +1 -0
  92. package/dist/components/Layout/Container.d.ts +9 -0
  93. package/dist/components/Layout/Container.d.ts.map +1 -0
  94. package/dist/components/Layout/Divider.d.ts +7 -0
  95. package/dist/components/Layout/Divider.d.ts.map +1 -0
  96. package/dist/components/Layout/Footer.d.ts +10 -0
  97. package/dist/components/Layout/Footer.d.ts.map +1 -0
  98. package/dist/components/Layout/Grid.d.ts +10 -0
  99. package/dist/components/Layout/Grid.d.ts.map +1 -0
  100. package/dist/components/Layout/Header.d.ts +15 -0
  101. package/dist/components/Layout/Header.d.ts.map +1 -0
  102. package/dist/components/Layout/Page.d.ts +14 -0
  103. package/dist/components/Layout/Page.d.ts.map +1 -0
  104. package/dist/components/Layout/PageHeader.d.ts +9 -0
  105. package/dist/components/Layout/PageHeader.d.ts.map +1 -0
  106. package/dist/components/Layout/Row.d.ts +9 -0
  107. package/dist/components/Layout/Row.d.ts.map +1 -0
  108. package/dist/components/Layout/Sidebar.d.ts +10 -0
  109. package/dist/components/Layout/Sidebar.d.ts.map +1 -0
  110. package/dist/components/Layout/Spacer.d.ts +7 -0
  111. package/dist/components/Layout/Spacer.d.ts.map +1 -0
  112. package/dist/components/Layout/Stack.d.ts +10 -0
  113. package/dist/components/Layout/Stack.d.ts.map +1 -0
  114. package/dist/components/Layout/index.d.ts +25 -0
  115. package/dist/components/Layout/index.d.ts.map +1 -0
  116. package/dist/components/Navigation/Breadcrumb.d.ts +12 -0
  117. package/dist/components/Navigation/Breadcrumb.d.ts.map +1 -0
  118. package/dist/components/Navigation/ContextMenu.d.ts +14 -0
  119. package/dist/components/Navigation/ContextMenu.d.ts.map +1 -0
  120. package/dist/components/Navigation/Nav.d.ts +31 -0
  121. package/dist/components/Navigation/Nav.d.ts.map +1 -0
  122. package/dist/components/Navigation/Pagination.d.ts +9 -0
  123. package/dist/components/Navigation/Pagination.d.ts.map +1 -0
  124. package/dist/components/Navigation/Stepper.d.ts +10 -0
  125. package/dist/components/Navigation/Stepper.d.ts.map +1 -0
  126. package/dist/components/Navigation/Tabs.d.ts +14 -0
  127. package/dist/components/Navigation/Tabs.d.ts.map +1 -0
  128. package/dist/components/Navigation/index.d.ts +13 -0
  129. package/dist/components/Navigation/index.d.ts.map +1 -0
  130. package/dist/components/index.d.ts +7 -0
  131. package/dist/components/index.d.ts.map +1 -0
  132. package/dist/index.cjs +5 -0
  133. package/dist/index.d.ts +11 -0
  134. package/dist/index.d.ts.map +1 -0
  135. package/dist/index.js +3704 -0
  136. package/dist/pages/ComponentShowcase.d.ts +2 -0
  137. package/dist/pages/ComponentShowcase.d.ts.map +1 -0
  138. package/dist/pages/DashboardDemo.d.ts +2 -0
  139. package/dist/pages/DashboardDemo.d.ts.map +1 -0
  140. package/dist/pages/PrototypeHome.d.ts +3 -0
  141. package/dist/pages/PrototypeHome.d.ts.map +1 -0
  142. package/dist/pages/index.d.ts +4 -0
  143. package/dist/pages/index.d.ts.map +1 -0
  144. package/dist/styles.css +1 -0
  145. package/dist/tokens/colors.d.ts +259 -0
  146. package/dist/tokens/colors.d.ts.map +1 -0
  147. package/dist/tokens/index.d.ts +4 -0
  148. package/dist/tokens/index.d.ts.map +1 -0
  149. package/dist/tokens/layout.d.ts +138 -0
  150. package/dist/tokens/layout.d.ts.map +1 -0
  151. package/dist/tokens/typography.d.ts +148 -0
  152. package/dist/tokens/typography.d.ts.map +1 -0
  153. package/package.json +42 -0
package/dist/index.cjs ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),ke={Activity:[["polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"}]],AlertTriangle:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]],ArrowLeft:[["path",{d:"m12 19-7-7 7-7"}],["path",{d:"M19 12H5"}]],ArrowLeftRight:[["path",{d:"m16 3 4 4-4 4"}],["path",{d:"M20 7H4"}],["path",{d:"m8 21-4-4 4-4"}],["path",{d:"M4 17h16"}]],ArrowRight:[["path",{d:"M5 12h14"}],["path",{d:"m12 5 7 7-7 7"}]],BarChart3:[["path",{d:"M3 3v18h18"}],["path",{d:"M18 17V9"}],["path",{d:"M13 17V5"}],["path",{d:"M8 17v-3"}]],Bell:[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0"}]],BellOff:[["path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}],["path",{d:"M18.63 13A17.89 17.89 0 0 1 18 8"}],["path",{d:"M6.26 6.26A6 6 0 0 0 6 8c0 7-3 9-3 9h14"}],["path",{d:"m2 2 20 20"}]],BookOpen:[["path",{d:"M12 7v14"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"}]],Boxes:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z"}],["path",{d:"m7 16.5-4.74-2.85"}],["path",{d:"m7 16.5 5-3"}],["path",{d:"M7 16.5v5.17"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z"}],["path",{d:"m17 16.5-5-3"}],["path",{d:"m17 16.5 4.74-2.85"}],["path",{d:"M17 16.5v5.17"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0Z"}],["path",{d:"M12 8 7.26 5.15"}],["path",{d:"m12 8 4.74-2.85"}],["path",{d:"M12 13.5V8"}]],Briefcase:[["rect",{x:2,y:7,width:20,height:14,rx:2}],["path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"}]],Cable:[["path",{d:"M4 9a2 2 0 0 1-2-2V5h6v2a2 2 0 0 1-2 2Z"}],["path",{d:"M3 5V3"}],["path",{d:"M7 5V3"}],["path",{d:"M19 15a2 2 0 0 1 2 2v2h-6v-2a2 2 0 0 1 2-2Z"}],["path",{d:"M17 21v-2"}],["path",{d:"M21 21v-2"}],["path",{d:"M5 9v3a4 4 0 0 0 4 4h6a4 4 0 0 0 4-4V9"}]],Calendar:[["path",{d:"M8 2v4"}],["path",{d:"M16 2v4"}],["rect",{x:3,y:4,width:18,height:18,rx:2}],["path",{d:"M3 10h18"}]],Camera:[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"}],["circle",{cx:12,cy:13,r:3}]],Check:[["polyline",{points:"20 6 9 17 4 12"}]],CheckCircle2:[["circle",{cx:12,cy:12,r:10}],["path",{d:"m9 12 2 2 4-4"}]],ChevronDown:[["polyline",{points:"6 9 12 15 18 9"}]],ChevronRight:[["polyline",{points:"9 18 15 12 9 6"}]],ClipboardCheck:[["rect",{width:8,height:4,x:8,y:2,rx:1,ry:1}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}],["path",{d:"m9 14 2 2 4-4"}]],Clock:[["circle",{cx:12,cy:12,r:10}],["polyline",{points:"12 6 12 12 16 14"}]],Copy:[["rect",{x:8,y:8,width:12,height:12,rx:2}],["path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"}]],Cpu:[["rect",{x:4,y:4,width:16,height:16,rx:2}],["rect",{x:9,y:9,width:6,height:6}],["line",{x1:15,y1:2,x2:15,y2:4}],["line",{x1:15,y1:20,x2:15,y2:22}],["line",{x1:2,y1:15,x2:4,y2:15}],["line",{x1:2,y1:9,x2:4,y2:9}],["line",{x1:20,y1:15,x2:22,y2:15}],["line",{x1:20,y1:9,x2:22,y2:9}],["line",{x1:9,y1:2,x2:9,y2:4}],["line",{x1:9,y1:20,x2:9,y2:22}]],Database:[["ellipse",{cx:12,cy:5,rx:9,ry:3}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}],["path",{d:"M3 12A9 3 0 0 0 21 12"}]],Download:[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["polyline",{points:"7 10 12 15 17 10"}],["line",{x1:12,y1:15,x2:12,y2:3}]],Euro:[["path",{d:"M4 10h12"}],["path",{d:"M4 14h9"}],["path",{d:"M19 5a7 7 0 1 0 0 14"}]],FileCheck:[["path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}],["polyline",{points:"14 2 14 8 20 8"}],["path",{d:"m9 15 2 2 4-4"}]],FileSpreadsheet:[["path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}],["polyline",{points:"14 2 14 8 20 8"}],["path",{d:"M8 13h2"}],["path",{d:"M8 17h2"}],["path",{d:"M14 13h2"}],["path",{d:"M14 17h2"}]],FileText:[["path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}],["polyline",{points:"14 2 14 8 20 8"}],["line",{x1:16,y1:13,x2:8,y2:13}],["line",{x1:16,y1:17,x2:8,y2:17}],["line",{x1:10,y1:9,x2:8,y2:9}]],Filter:[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"}]],Gauge:[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]],Globe:[["circle",{cx:12,cy:12,r:10}],["line",{x1:2,y1:12,x2:22,y2:12}],["path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"}]],Hash:[["line",{x1:4,y1:9,x2:20,y2:9}],["line",{x1:4,y1:15,x2:20,y2:15}],["path",{d:"M10 3 8 21"}],["path",{d:"M16 3 14 21"}]],HelpCircle:[["circle",{cx:12,cy:12,r:10}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]],Home:[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}],["polyline",{points:"9 22 9 12 15 12 15 22"}]],Image:[["rect",{x:3,y:3,width:18,height:18,rx:2}],["circle",{cx:8.5,cy:8.5,r:1.5}],["path",{d:"m21 15-5-5L5 21"}]],Landmark:[["line",{x1:3,y1:22,x2:21,y2:22}],["line",{x1:6,y1:18,x2:6,y2:11}],["line",{x1:10,y1:18,x2:10,y2:11}],["line",{x1:14,y1:18,x2:14,y2:11}],["line",{x1:18,y1:18,x2:18,y2:11}],["polygon",{points:"12 2 20 7 4 7"}]],Layers:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65"}]],LayoutDashboard:[["rect",{x:3,y:3,width:7,height:9,rx:1}],["rect",{x:14,y:3,width:7,height:5,rx:1}],["rect",{x:14,y:12,width:7,height:9,rx:1}],["rect",{x:3,y:16,width:7,height:5,rx:1}]],LayoutGrid:[["rect",{x:3,y:3,width:7,height:7,rx:1}],["rect",{x:14,y:3,width:7,height:7,rx:1}],["rect",{x:14,y:14,width:7,height:7,rx:1}],["rect",{x:3,y:14,width:7,height:7,rx:1}]],Link2:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2"}],["line",{x1:8,y1:12,x2:16,y2:12}]],Lock:[["rect",{x:3,y:11,width:18,height:11,rx:2}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}]],Mail:[["rect",{x:2,y:4,width:20,height:16,rx:2}],["path",{d:"m22 7-10 7L2 7"}]],MapPin:[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"}],["circle",{cx:12,cy:10,r:3}]],Menu:[["line",{x1:4,y1:6,x2:20,y2:6}],["line",{x1:4,y1:12,x2:20,y2:12}],["line",{x1:4,y1:18,x2:20,y2:18}]],PackageCheck:[["path",{d:"m16 16 2 2 4-4"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14"}],["path",{d:"M3.3 7 12 12l8.7-5"}],["path",{d:"M12 22V12"}]],PackageOpen:[["path",{d:"M12 22v-9"}],["path",{d:"m15.17 2.21 4.83 2.8a2 2 0 0 1 1 1.73v6.54a2 2 0 0 1-1 1.73l-1 .58"}],["path",{d:"m2 8.3 10 5.8 10-5.8"}],["path",{d:"M2 17.7V8.3a2 2 0 0 1 1-1.73l4.83-2.8"}]],PackageSearch:[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l5 2.857"}],["path",{d:"M3.3 7 12 12l8.7-5"}],["path",{d:"M12 22V12"}],["circle",{cx:18.5,cy:15.5,r:2.5}],["path",{d:"M20.27 17.27 22 19"}]],Pause:[["rect",{x:6,y:4,width:4,height:16,rx:1}],["rect",{x:14,y:4,width:4,height:16,rx:1}]],Pencil:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]],Plane:[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z"}]],PlaneLanding:[["path",{d:"M2 22h20"}],["path",{d:"M3 18 21 12 19 8 11 10 6 4 3 5l4 8-4 2z"}]],PlaneTakeoff:[["path",{d:"M2 22h20"}],["path",{d:"M6.36 17.4 4 17l-2-4 1.1-.55 3.77 1 4.12-2.5L4 4l1.5-2 9.65 6.05L19 5.7a2.09 2.09 0 0 1 2.85.75 2.06 2.06 0 0 1-.74 2.83z"}]],Play:[["polygon",{points:"6 3 20 12 6 21 6 3"}]],Plug:[["path",{d:"M12 22v-5"}],["path",{d:"M9 8V2"}],["path",{d:"M15 8V2"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z"}]],Plus:[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]],Power:[["path",{d:"M12 2v10"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"}]],Printer:[["path",{d:"M6 9V2h12v7"}],["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}],["rect",{x:6,y:14,width:12,height:8}]],Radio:[["circle",{cx:12,cy:12,r:2}],["path",{d:"M4.93 19.07a10 10 0 0 1 0-14.14"}],["path",{d:"M7.76 16.24a6 6 0 0 1 0-8.49"}],["path",{d:"M16.24 7.76a6 6 0 0 1 0 8.49"}],["path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"}]],Receipt:[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"}],["path",{d:"M16 8h-6"}],["path",{d:"M16 12h-6"}]],RefreshCw:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M3 21v-5h5"}]],RotateCcw:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}]],Route:[["circle",{cx:6,cy:19,r:3}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"}],["circle",{cx:18,cy:5,r:3}]],Ruler:[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z"}],["path",{d:"m14.5 12.5 2-2"}],["path",{d:"m11.5 9.5 2-2"}],["path",{d:"m8.5 6.5 2-2"}],["path",{d:"m17.5 15.5 2-2"}]],Scale:[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z"}],["path",{d:"M7 21h10"}],["path",{d:"M12 3v18"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2"}]],ScanLine:[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"}],["path",{d:"M7 12h10"}]],ScanSearch:[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"}],["circle",{cx:11.5,cy:11.5,r:2.5}],["path",{d:"M21 21l-2.5-2.5"}]],Search:[["circle",{cx:11,cy:11,r:8}],["path",{d:"m21 21-4.3-4.3"}]],Send:[["path",{d:"m22 2-7 20-4-9-9-4Z"}],["path",{d:"M22 2 11 13"}]],Server:[["rect",{x:2,y:2,width:20,height:8,rx:2}],["rect",{x:2,y:14,width:20,height:8,rx:2}],["line",{x1:6,y1:6,x2:6.01,y2:6}],["line",{x1:6,y1:18,x2:6.01,y2:18}]],Settings:[["circle",{cx:12,cy:12,r:3}],["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}]],ShieldCheck:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"m9 12 2 2 4-4"}]],Ship:[["path",{d:"M12 10.189V14"}],["path",{d:"M12 2v3"}],["path",{d:"M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6"}],["path",{d:"M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76"}],["path",{d:"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"}]],SlidersHorizontal:[["line",{x1:21,y1:4,x2:14,y2:4}],["line",{x1:10,y1:4,x2:3,y2:4}],["line",{x1:21,y1:12,x2:12,y2:12}],["line",{x1:8,y1:12,x2:3,y2:12}],["line",{x1:21,y1:20,x2:16,y2:20}],["line",{x1:12,y1:20,x2:3,y2:20}],["line",{x1:14,y1:2,x2:14,y2:6}],["line",{x1:8,y1:10,x2:8,y2:14}],["line",{x1:16,y1:18,x2:16,y2:22}]],Split:[["path",{d:"M16 3h5v5"}],["path",{d:"M8 3H3v5"}],["path",{d:"M21 3l-7.83 7.83A4 4 0 0 0 12 13.66V22"}],["path",{d:"M3 3l7.83 7.83"}]],Square:[["rect",{x:3,y:3,width:18,height:18,rx:2}]],Tag:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:7.5,cy:7.5,r:.5}]],Tags:[["path",{d:"M3 5v6.172a2 2 0 0 0 .586 1.414L11 20l8-8-7.414-7.414A2 2 0 0 0 10.172 4H5a2 2 0 0 0-2 1z"}],["circle",{cx:7.5,cy:8.5,r:.5}]],Trash2:[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}],["line",{x1:10,y1:11,x2:10,y2:17}],["line",{x1:14,y1:11,x2:14,y2:17}]],TrendingUp:[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17"}],["polyline",{points:"16 7 22 7 22 13"}]],Truck:[["path",{d:"M10 17h4V5H2v12h3"}],["path",{d:"M20 17h2v-3.34a4 4 0 0 0-1.17-2.83L19 9h-5v8h1"}],["circle",{cx:7.5,cy:17.5,r:2.5}],["circle",{cx:17.5,cy:17.5,r:2.5}]],Upload:[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["polyline",{points:"17 8 12 3 7 8"}],["line",{x1:12,y1:3,x2:12,y2:15}]],Users:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["circle",{cx:9,cy:7,r:4}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}]],Wallet:[["path",{d:"M21 12V7H5a2 2 0 0 1 0-4h14v4"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h16v-5"}],["path",{d:"M18 12a2 2 0 0 0 0 4h4v-4Z"}]],Warehouse:[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35a2 2 0 0 1 1.18-1.82l8-3.6a2 2 0 0 1 1.64 0l8 3.6A2 2 0 0 1 22 8.35Z"}],["path",{d:"M6 18h12"}],["path",{d:"M6 14h12"}],["path",{d:"M6 22V10"}]],Workflow:[["rect",{x:3,y:3,width:8,height:8,rx:2}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4"}],["rect",{x:13,y:13,width:8,height:8,rx:2}]],XCircle:[["circle",{cx:12,cy:12,r:10}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]],Zap:[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"}]]},He=[...Object.keys(ke),"LeafMark","Barcode"].sort();function fe(...a){return a.filter(Boolean).join(" ")}function ca([a,s],t){return a==="circle"?e.jsx("circle",{...s},t):a==="rect"?e.jsx("rect",{...s},t):a==="line"?e.jsx("line",{...s},t):a==="polyline"?e.jsx("polyline",{...s},t):a==="polygon"?e.jsx("polygon",{...s},t):a==="ellipse"?e.jsx("ellipse",{...s},t):e.jsx("path",{...s},t)}function oa(a){const s=a||"YCC";return Array.from({length:11},(t,n)=>{const r=s.charCodeAt(n%s.length)+n;return{x:3+n*1.7,width:r%3===0?.9:.4,height:14+r%5}})}function c({name:a,size:s=16,color:t,className:n}){if(a==="LeafMark")return e.jsxs("svg",{className:fe("ycc-icon",n),width:s,height:s,viewBox:"0 0 24 24",fill:"none",style:{color:t},"aria-hidden":"true",children:[e.jsx("path",{d:"M5 19c0-7 5-13 14-14 0 9-5 14-12 14-1 0-2 0-2-1z",fill:"currentColor",opacity:"0.92"}),e.jsx("path",{d:"M5.5 18.5c3-5 7-8 11-9.5",stroke:"var(--ycc-card)",strokeWidth:"1.3",strokeLinecap:"round"})]});if(a==="Barcode")return e.jsx("svg",{className:fe("ycc-icon",n),width:s,height:s,viewBox:"0 0 24 24",fill:"none",style:{color:t},"aria-hidden":"true",children:oa(a).map((i,l)=>e.jsx("rect",{x:i.x,y:"4",width:i.width,height:i.height,fill:"currentColor"},l))});const r=ke[a]??ke.HelpCircle;return e.jsx("svg",{className:fe("ycc-icon",n),width:s,height:s,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",style:{color:t},"aria-hidden":"true",children:r.map(ca)})}function da(...a){return a.filter(Boolean).join(" ")}function C({variant:a="primary",size:s="md",loading:t=!1,leftIcon:n,rightIcon:r,disabled:i,onClick:l,type:o="button",children:d,className:p}){return e.jsxs("button",{type:o,disabled:i||t,onClick:l,className:da("ycc-button",`ycc-button--${a}`,`ycc-button--${s}`,t&&"ycc-button--loading",p),children:[t?e.jsx(c,{name:"RefreshCw",size:14,className:"ycc-button__spinner"}):n?e.jsx(c,{name:n,size:14}):null,t?null:d,!t&&r?e.jsx(c,{name:r,size:14}):null]})}function ha(...a){return a.filter(Boolean).join(" ")}function W({checked:a,defaultChecked:s=!1,onChange:t,disabled:n,label:r,size:i="md"}){const[l,o]=h.useState(s),d=a??l;function p(){if(n)return;const u=!d;a===void 0&&o(u),t?.(u)}return e.jsxs("label",{className:"ycc-toggle",children:[e.jsx("button",{type:"button",role:"switch","aria-checked":d,disabled:n,onClick:p,className:ha("ycc-toggle__control",`ycc-toggle__control--${i}`,d&&"ycc-toggle__control--checked"),children:e.jsx("span",{className:"ycc-toggle__knob"})}),r?e.jsx("span",{children:r}):null]})}function Le(...a){return a.filter(Boolean).join(" ")}function P({type:a="text",error:s,size:t="md",leftAddon:n,rightAddon:r,disabled:i,className:l,...o}){return e.jsxs("div",{className:Le("ycc-input-field",l),children:[e.jsxs("div",{className:Le("ycc-input-control",`ycc-input-control--${t}`,s&&"ycc-input-control--error",i&&"ycc-input-control--disabled"),children:[n?e.jsx("span",{className:"ycc-input-addon",children:n}):null,e.jsx("input",{className:"ycc-input",type:a,disabled:i,...o}),r?e.jsx("span",{className:"ycc-input-addon",children:r}):null]}),s?e.jsx("div",{className:"ycc-input-error",children:s}):null]})}function ua(...a){return a.filter(Boolean).join(" ")}function Z({options:a,placeholder:s,error:t,size:n="md",...r}){return e.jsxs("div",{className:"ycc-select-field",children:[e.jsxs("select",{className:ua("ycc-select",`ycc-select--${n}`,t&&"ycc-select--error"),...r,children:[s?e.jsx("option",{value:"",children:s}):null,a.map(i=>e.jsx("option",{value:i.value,children:i.label},i.value))]}),e.jsx(c,{name:"ChevronDown",size:14,className:"ycc-select-icon"}),t?e.jsx("div",{className:"ycc-select-error",children:t}):null]})}function ze(...a){return a.filter(Boolean).join(" ")}function ie({checked:a,defaultChecked:s,indeterminate:t,onChange:n,label:r,disabled:i}){return e.jsxs("label",{className:ze("ycc-checkbox",i&&"ycc-checkbox--disabled"),children:[e.jsx("input",{className:"ycc-checkbox__input",type:"checkbox",checked:a,defaultChecked:s,disabled:i,onChange:n}),e.jsx("span",{className:ze("ycc-checkbox__box",a&&"ycc-checkbox__box--checked",t&&"ycc-checkbox__box--indeterminate")}),r?e.jsx("span",{children:r}):null]})}function pa(...a){return a.filter(Boolean).join(" ")}function de({error:a,rows:s=4,resize:t="vertical",...n}){return e.jsxs("div",{className:"ycc-textarea-field",children:[e.jsx("textarea",{className:pa("ycc-textarea",`ycc-textarea--${t}`,a&&"ycc-textarea--error"),rows:s,...n}),a?e.jsx("div",{className:"ycc-textarea-error",children:a}):null]})}function pe({label:a,required:s,helper:t,error:n,children:r}){return e.jsxs("div",{className:"ycc-form-group",children:[a?e.jsxs("label",{className:"ycc-form-group__label",children:[a," ",s?e.jsx("span",{className:"ycc-form-group__required",children:"*"}):null]}):null,r,n?e.jsx("div",{className:"ycc-form-group__error",children:n}):t?e.jsx("div",{className:"ycc-form-group__helper",children:t}):null]})}function ma(a){return a.trim().toLowerCase().replace(/\s+/g,"-")}function se({label:a,variant:s,size:t="sm"}){const n=ma(s);return e.jsx("span",{className:`ycc-badge ycc-badge--${t} ycc-badge--${n||"fallback"}`,children:a})}function xa(a){return a.trim().split(/\s+/).filter(Boolean).slice(0,2).map(s=>s.charAt(0).toUpperCase()).join("")}function ae({src:a,name:s,size:t="md",status:n}){return e.jsxs("span",{className:`ycc-avatar ycc-avatar--${t}`,"aria-label":s,children:[a?e.jsx("img",{className:"ycc-avatar__image",src:a,alt:s}):xa(s),n?e.jsx("span",{className:`ycc-avatar__status ycc-avatar__status--${n}`}):null]})}function U({label:a,onRemove:s,color:t,size:n="sm"}){return e.jsxs("span",{className:`ycc-tag ycc-tag--${n}`,style:t?{color:t,borderColor:t}:void 0,children:[a,s?e.jsx("button",{type:"button",className:"ycc-tag__remove",onClick:s,"aria-label":`Remove ${a}`,children:"×"}):null]})}function Ve(...a){return a.filter(Boolean).join(" ")}function he({children:a,className:s,padding:t="md",shadow:n}){return e.jsx("section",{className:Ve("ycc-card",`ycc-card--padding-${t}`,n&&"ycc-card--shadow",s),children:a})}function be({title:a,subtitle:s,actions:t,icon:n}){return e.jsxs("div",{className:"ycc-card-header",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"ycc-card-header__title-row",children:[n?e.jsx(c,{name:n,size:15,className:"ycc-card-header__icon"}):null,e.jsx("h3",{className:"ycc-card-header__title",children:a})]}),s?e.jsx("p",{className:"ycc-card-header__subtitle",children:s}):null]}),t]})}function ga({children:a,className:s}){return e.jsx("div",{className:Ve("ycc-card-body",s),children:a})}function Se({children:a,align:s="right"}){return e.jsx("div",{className:`ycc-card-footer ycc-card-footer--${s}`,children:a})}function I({title:a,value:s,change:t,icon:n,iconColor:r,trend:i="flat",subtitle:l,loading:o}){const d=t===void 0||i==="flat"?"flat":t>=0?"positive":"negative",p=i==="down"?"ArrowRight":"TrendingUp";return e.jsxs("article",{className:"ycc-stat-card",children:[e.jsxs("div",{className:"ycc-stat-card__top",children:[e.jsx("div",{className:"ycc-stat-card__title",children:a}),n?e.jsx(c,{name:n,size:18,className:"ycc-stat-card__icon",color:r}):null]}),e.jsx("div",{className:"ycc-stat-card__value",children:o?e.jsx("span",{className:"ycc-stat-card__skeleton"}):s}),e.jsxs("div",{className:"ycc-stat-card__meta",children:[!o&&t!==void 0?e.jsxs("span",{className:`ycc-stat-card__change ycc-stat-card__change--${d}`,children:[i!=="flat"?e.jsx(c,{name:p,size:12}):null,t>0?"+":"",t,"%"]}):null,l?e.jsx("span",{children:l}):null]})]})}function Ae({message:a,variant:s="info",title:t,onDismiss:n,action:r}){return e.jsxs("div",{className:`ycc-banner ycc-banner--${s}`,children:[e.jsxs("span",{className:"ycc-banner__content",children:[t?e.jsx("strong",{className:"ycc-banner__title",children:t}):null,e.jsx("span",{children:a})]}),e.jsxs("span",{className:"ycc-banner__actions",children:[r?e.jsx("button",{type:"button",className:"ycc-banner__action",onClick:r.onClick,children:r.label}):null,n?e.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss banner",children:e.jsx(c,{name:"XCircle",size:16})}):null]})]})}function ue(a){return typeof a=="string"||typeof a=="number"?String(a):""}function Be(...a){return a.filter(Boolean).join(" ")}function _e({columns:a,data:s,loading:t,searchable:n,searchPlaceholder:r="Search...",striped:i,clickableRows:l,onRowClick:o,emptyMessage:d="No records found",className:p}){const[u,m]=h.useState(""),[k,F]=h.useState(null),D=h.useMemo(()=>{const y=u.toLowerCase(),L=y?s.filter(x=>Object.values(x).some(w=>ue(w).toLowerCase().includes(y))):s;return k?[...L].sort((x,w)=>{const B=ue(x[k.key]),Y=ue(w[k.key]);return k.direction==="asc"?B.localeCompare(Y,void 0,{numeric:!0}):Y.localeCompare(B,void 0,{numeric:!0})}):L},[s,u,k]);function te(y){y.sortable&&F(L=>L?.key===y.key&&L.direction==="asc"?{key:y.key,direction:"desc"}:{key:y.key,direction:"asc"})}return e.jsxs("div",{className:Be("ycc-table-wrap",p),children:[n?e.jsx("div",{className:"ycc-table-toolbar",children:e.jsx(P,{value:u,onChange:y=>m(y.target.value),placeholder:r,leftAddon:e.jsx(c,{name:"Search",size:14})})}):null,e.jsx("div",{className:"ycc-table-scroll",children:e.jsxs("table",{className:Be("ycc-table",i&&"ycc-table--striped",l&&"ycc-table--clickable"),children:[e.jsx("thead",{children:e.jsx("tr",{children:a.map(y=>e.jsx("th",{style:{width:y.width},children:y.sortable?e.jsxs("button",{type:"button",className:"ycc-table-sort",onClick:()=>te(y),children:[y.header,e.jsx(c,{name:"ChevronDown",size:12})]}):y.header},String(y.key)))})}),e.jsx("tbody",{children:t?Array.from({length:5},(y,L)=>e.jsx("tr",{children:a.map(x=>e.jsx("td",{children:e.jsx("span",{className:"ycc-table-skeleton"})},String(x.key)))},L)):D.length?D.map((y,L)=>e.jsx("tr",{onClick:()=>o?.(y),children:a.map(x=>{const w=y[x.key];return e.jsx("td",{children:x.render?x.render(w,y):ue(w)},String(x.key))})},L)):e.jsx("tr",{children:e.jsx("td",{className:"ycc-table-empty",colSpan:a.length,children:d})})})]})})]})}function ba({label:a,value:s,size:t="md"}){return e.jsxs("div",{className:`ycc-kv ycc-kv--${t}`,children:[e.jsx("span",{className:"ycc-kv__label",children:a}),e.jsx("span",{className:"ycc-kv__value",children:s})]})}function ya({icon:a="Inbox",title:s,message:t,action:n}){return e.jsxs("div",{className:"ycc-empty-state",children:[e.jsx("span",{className:"ycc-empty-state__icon",children:e.jsx(c,{name:a,size:24})}),e.jsx("h3",{children:s}),t?e.jsx("p",{children:t}):null,n?e.jsx("div",{className:"ycc-empty-state__action",children:n}):null]})}function ja(a,s){return Math.max(0,Math.min(a,s))}function va({value:a,max:s=100,size:t=52,color:n="var(--ycc-accent)",label:r}){const l=2*Math.PI*18,o=s>0?ja(a,s)/s:0,d={width:t,height:t,color:n};return e.jsxs("figure",{className:"ycc-donut",style:d,children:[e.jsxs("svg",{viewBox:"0 0 44 44","aria-label":r??`${Math.round(o*100)}%`,children:[e.jsx("circle",{className:"ycc-donut__track",cx:"22",cy:"22",r:18}),e.jsx("circle",{className:"ycc-donut__value",cx:"22",cy:"22",r:18,strokeDasharray:l,strokeDashoffset:l*(1-o)})]}),e.jsx("figcaption",{children:r??`${Math.round(o*100)}%`})]})}function fa(a,s,t){if(a.length===0)return"";const n=Math.min(...a),i=Math.max(...a)-n||1;return a.map((l,o)=>{const d=a.length===1?s/2:o/(a.length-1)*s,p=t-(l-n)/i*t;return`${o===0?"M":"L"} ${d.toFixed(2)} ${p.toFixed(2)}`}).join(" ")}function Ca({data:a,color:s="var(--ycc-accent)",width:t=120,height:n=36}){const r={color:s};return e.jsx("svg",{className:"ycc-trend-spark",viewBox:`0 0 ${t} ${n}`,width:t,height:n,style:r,role:"img","aria-label":"Trend sparkline",children:e.jsx("path",{d:fa(a,t,n)})})}function ka({labelA:a,valueA:s,labelB:t,valueB:n,color:r="var(--ycc-accent)"}){const i=Math.max(s+n,1),o={"--ycc-compare-a":`${Math.max(0,Math.min(100,s/i*100))}%`,color:r};return e.jsxs("div",{className:"ycc-compare-bar",style:o,children:[e.jsxs("div",{className:"ycc-compare-bar__meta",children:[e.jsxs("span",{children:[a," ",e.jsx("strong",{children:s})]}),e.jsxs("span",{children:[t," ",e.jsx("strong",{children:n})]})]}),e.jsx("div",{className:"ycc-compare-bar__track",children:e.jsx("span",{})})]})}function wa({content:a,children:s,position:t="top"}){return e.jsxs("span",{className:`ycc-tooltip ycc-tooltip--${t}`,children:[s,e.jsx("span",{className:"ycc-tooltip__content",role:"tooltip",children:a})]})}function Na({trigger:a,children:s,position:t="bottom"}){const[n,r]=h.useState(!1);return e.jsxs("span",{className:`ycc-popover ycc-popover--${t}`,children:[e.jsx("button",{type:"button",className:"ycc-popover__trigger",onClick:()=>r(i=>!i),"aria-expanded":n,children:a}),n?e.jsx("span",{className:"ycc-popover__panel",children:s}):null]})}function Sa({items:a,defaultOpen:s=[]}){const[t,n]=h.useState(s);function r(i){n(l=>l.includes(i)?l.filter(o=>o!==i):[...l,i])}return e.jsx("div",{className:"ycc-accordion",children:a.map(i=>{const l=t.includes(i.id);return e.jsxs("section",{className:"ycc-accordion__item",children:[e.jsxs("button",{type:"button",className:"ycc-accordion__button",onClick:()=>r(i.id),"aria-expanded":l,children:[e.jsx("span",{children:i.title}),e.jsx(c,{name:"ChevronDown",size:14,className:l?"ycc-accordion__chevron ycc-accordion__chevron--open":"ycc-accordion__chevron"})]}),l?e.jsx("div",{className:"ycc-accordion__content",children:i.content}):null]},i.id)})})}function Aa(a){return a?.trim().toLowerCase().replace(/\s+/g,"-")||"default"}function _a({events:a}){return e.jsx("ol",{className:"ycc-timeline",children:a.map((s,t)=>e.jsxs("li",{className:`ycc-timeline__event ycc-timeline__event--${Aa(s.variant)}`,children:[e.jsx("span",{className:"ycc-timeline__dot",children:s.icon?e.jsx(c,{name:s.icon,size:12}):null}),e.jsxs("div",{className:"ycc-timeline__body",children:[e.jsxs("div",{className:"ycc-timeline__head",children:[e.jsx("strong",{children:s.label}),e.jsx("time",{children:s.timestamp})]}),s.description?e.jsx("p",{children:s.description}):null]})]},`${s.label}-${t}`))})}function Ma({value:a,max:s=100,label:t,variant:n="default",showPercent:r}){const i=s>0?Math.max(0,Math.min(100,a/s*100)):0;return e.jsxs("div",{className:`ycc-progress ycc-progress--${n}`,style:{"--ycc-progress-value":`${i}%`},children:[t||r?e.jsxs("div",{className:"ycc-progress__meta",children:[e.jsx("span",{children:t}),r?e.jsxs("strong",{children:[Math.round(i),"%"]}):null]}):null,e.jsx("div",{className:"ycc-progress__track",children:e.jsx("span",{})})]})}function Ta({items:a,columns:s=2}){return e.jsx("dl",{className:"ycc-data-list",style:{"--ycc-data-list-columns":s},children:a.map(t=>e.jsxs("div",{className:"ycc-data-list__item",children:[e.jsx("dt",{children:t.label}),e.jsx("dd",{children:t.value})]},t.label))})}function Fa({value:a,label:s="Copy",copiedLabel:t="Copied"}){const[n,r]=h.useState(!1);async function i(){await navigator.clipboard?.writeText(a),r(!0),window.setTimeout(()=>r(!1),1600)}return e.jsxs("button",{type:"button",className:n?"ycc-copy-button ycc-copy-button--copied":"ycc-copy-button",onClick:i,children:[e.jsx(c,{name:n?"Check":"Copy",size:14}),n?t:s]})}function Da(...a){return a.filter(Boolean).join(" ")}function We({onFilesSelected:a,accept:s,multiple:t,maxSizeMB:n,label:r="Drop files here or click to browse",disabled:i}){const l=h.useRef(null),[o,d]=h.useState(!1),[p,u]=h.useState([]),[m,k]=h.useState("");function F(x){if(n){const w=x.find(B=>B.size>n*1024*1024);if(w)return`${w.name} exceeds ${n}MB`}return""}function D(x){const w=F(x);k(w),!w&&(u(x),a(x))}function te(x){D(Array.from(x.target.files??[]))}function y(x){x.preventDefault(),d(!1),i||D(Array.from(x.dataTransfer.files))}function L(x){u(w=>w.filter(B=>B!==x))}return e.jsxs("div",{className:"ycc-file-upload",children:[e.jsxs("label",{className:Da("ycc-file-upload__zone",o&&"ycc-file-upload__zone--drag",i&&"ycc-file-upload__zone--disabled"),onDragOver:x=>{x.preventDefault(),d(!0)},onDragLeave:()=>d(!1),onDrop:y,onClick:()=>!i&&l.current?.click(),children:[e.jsx(c,{name:"Upload",size:18}),e.jsx("span",{className:"ycc-file-upload__label",children:r}),e.jsxs("span",{className:"ycc-file-upload__hint",children:[s??"Any file",n?` · max ${n}MB`:""]}),e.jsx("input",{ref:l,className:"ycc-file-upload__input",type:"file",accept:s,multiple:t,disabled:i,onChange:te})]}),m?e.jsx("div",{className:"ycc-file-upload__error",children:m}):null,e.jsx("div",{className:"ycc-file-upload__files",children:p.map(x=>e.jsx(U,{label:x.name,onRemove:()=>L(x)},`${x.name}-${x.size}`))})]})}function La({onScan:a,placeholder:s="Scan or type barcode...",active:t}){const[n,r]=h.useState("");function i(l){l.key!=="Enter"||!n.trim()||(a(n.trim()),r(""))}return e.jsxs("label",{className:t?"ycc-scan-zone ycc-scan-zone--active":"ycc-scan-zone",children:[e.jsx(c,{name:"Barcode",size:24}),e.jsx("span",{className:"ycc-scan-zone__text",children:"Scanner ready"}),e.jsx("input",{value:n,onChange:l=>r(l.target.value),onKeyDown:i,placeholder:s})]})}function Ge({name:a,value:s,checked:t,defaultChecked:n,onChange:r,label:i,disabled:l}){return e.jsxs("label",{className:l?"ycc-radio ycc-radio--disabled":"ycc-radio",children:[e.jsx("input",{className:"ycc-radio__input",type:"radio",name:a,value:s,checked:t,defaultChecked:n,disabled:l,onChange:r}),e.jsx("span",{className:"ycc-radio__control"}),i?e.jsx("span",{children:i}):null]})}function za({name:a,options:s,value:t,defaultValue:n,onChange:r,direction:i="column",disabled:l}){function o(d){r?.(d.target.value)}return e.jsx("div",{className:`ycc-radio-group ycc-radio-group--${i}`,role:"radiogroup",children:s.map(d=>e.jsx(Ge,{name:a,value:d.value,label:d.label,checked:t===void 0?void 0:t===d.value,defaultChecked:t===void 0?n===d.value:void 0,disabled:l||d.disabled,onChange:o},d.value))})}function Ba({error:a,size:s="md",disabled:t,...n}){return e.jsxs("div",{className:"ycc-date-input-field",children:[e.jsxs("div",{className:`ycc-date-input-control ycc-date-input-control--${s}${a?" ycc-date-input-control--error":""}${t?" ycc-date-input-control--disabled":""}`,children:[e.jsx(c,{name:"Calendar",size:14}),e.jsx("input",{className:"ycc-date-input",type:"date",disabled:t,...n})]}),a?e.jsx("div",{className:"ycc-date-input-error",children:a}):null]})}function Oa({value:a,defaultValue:s,onChange:t,onClear:n,placeholder:r="Search...",disabled:i,size:l="md"}){const o=!!(a||s);return e.jsxs("div",{className:`ycc-search-input ycc-search-input--${l}${i?" ycc-search-input--disabled":""}`,children:[e.jsx(c,{name:"Search",size:14}),e.jsx("input",{value:a,defaultValue:s,onChange:t,placeholder:r,disabled:i,type:"search"}),n&&o?e.jsx("button",{type:"button",onClick:n,"aria-label":"Clear search",children:e.jsx(c,{name:"XCircle",size:14})}):null]})}const Ke=h.createContext(null);function Ra(a){const s=typeof a=="string"?{message:a}:a;return{message:s.message,duration:s.duration??4e3,position:s.position??"top-right"}}function Ue({children:a}){const[s,t]=h.useState([]),n=h.useRef(new Map),r=h.useCallback(d=>{window.clearTimeout(n.current.get(d)),n.current.delete(d),t(p=>p.filter(u=>u.id!==d))},[]),i=h.useCallback((d,p)=>{const u=Date.now()+Math.random(),m={...Ra(p),id:u,variant:d};t(k=>[...k.slice(-4),m]),n.current.set(u,window.setTimeout(()=>r(u),m.duration))},[r]),l=h.useMemo(()=>({success:d=>i("success",d),error:d=>i("error",d),warning:d=>i("warning",d),info:d=>i("info",d)}),[i]),o=s.reduce((d,p)=>(d[p.position].push(p),d),{"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]});return e.jsxs(Ke.Provider,{value:l,children:[a,Object.keys(o).map(d=>o[d].length?e.jsx("div",{className:`ycc-toast-viewport ycc-toast-viewport--${d}`,children:o[d].map(p=>e.jsxs("div",{className:`ycc-toast ycc-toast--${p.variant}`,onMouseEnter:()=>window.clearTimeout(n.current.get(p.id)),onMouseLeave:()=>n.current.set(p.id,window.setTimeout(()=>r(p.id),p.duration)),children:[e.jsx(c,{name:p.variant==="success"?"CheckCircle2":p.variant==="warning"?"AlertTriangle":p.variant==="error"?"XCircle":"HelpCircle",size:18}),e.jsx("span",{className:"ycc-toast__message",children:p.message}),e.jsx("button",{type:"button",onClick:()=>r(p.id),"aria-label":"Dismiss toast",children:e.jsx(c,{name:"XCircle",size:16})})]},p.id))},d):null)]})}function qe(){const a=h.useContext(Ke);if(!a)throw new Error("useToast must be used inside ToastProvider");return a}function Me({open:a,onClose:s,title:t,size:n="md",children:r,footer:i,closeOnOverlay:l=!0,closeOnEscape:o=!0}){const d=h.useRef(null);h.useEffect(()=>{if(!a||!o)return;const u=m=>{m.key==="Escape"&&s()};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o,s,a]);function p(u){if(u.key!=="Tab")return;const m=d.current?.querySelectorAll('a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])');if(!m?.length)return;const k=m[0],F=m[m.length-1];u.shiftKey&&document.activeElement===k?(u.preventDefault(),F.focus()):!u.shiftKey&&document.activeElement===F&&(u.preventDefault(),k.focus())}return a?e.jsx("div",{className:"ycc-modal-overlay",onMouseDown:()=>l&&s(),children:e.jsxs("div",{ref:d,role:"dialog","aria-modal":"true",className:`ycc-modal ycc-modal--${n}`,onMouseDown:u=>u.stopPropagation(),onKeyDown:p,children:[e.jsxs("div",{className:"ycc-modal__header",children:[e.jsx("h2",{className:"ycc-modal__title",children:t}),e.jsx("button",{type:"button",onClick:s,"aria-label":"Close modal",children:e.jsx(c,{name:"XCircle",size:18})})]}),e.jsx("div",{className:"ycc-modal__body",children:r}),i?e.jsx("div",{className:"ycc-modal__footer",children:i}):null]})}):null}const Ea={info:"HelpCircle",success:"CheckCircle2",warning:"AlertTriangle",danger:"XCircle"};function Ye({variant:a,title:s,message:t,onDismiss:n}){return e.jsxs("div",{className:`ycc-alert ycc-alert--${a}`,children:[e.jsx(c,{name:Ea[a],size:18,className:"ycc-alert__icon"}),e.jsxs("div",{className:"ycc-alert__body",children:[s?e.jsx("div",{className:"ycc-alert__title",children:s}):null,e.jsx("div",{className:"ycc-alert__message",children:t})]}),n?e.jsx("button",{type:"button",className:"ycc-alert__dismiss",onClick:n,"aria-label":"Dismiss alert",children:e.jsx(c,{name:"XCircle",size:16})}):null]})}function Je({size:a="md",color:s,label:t="Loading"}){return e.jsx("svg",{className:`ycc-spinner ycc-spinner--${a}`,viewBox:"0 0 24 24",fill:"none",style:{color:s},"aria-label":t,children:e.jsx("circle",{className:"ycc-spinner__circle",cx:"12",cy:"12",r:"9",strokeWidth:"3"})})}function $a({open:a,onClose:s,position:t="right",size:n="md",title:r,children:i}){return a?e.jsxs("div",{className:"ycc-drawer-overlay",children:[e.jsx("button",{type:"button",className:"ycc-drawer-backdrop","aria-label":"Close drawer",onClick:s}),e.jsxs("aside",{className:`ycc-drawer ycc-drawer--${t} ycc-drawer--${n}`,children:[e.jsxs("header",{className:"ycc-drawer__header",children:[e.jsx("h2",{children:r}),e.jsx("button",{type:"button",onClick:s,"aria-label":"Close drawer",children:e.jsx(c,{name:"XCircle",size:18})})]}),e.jsx("div",{className:"ycc-drawer__body",children:i})]})]}):null}function Pa({width:a="100%",height:s="var(--ycc-space-4)",radius:t="md"}){return e.jsx("span",{className:`ycc-skeleton ycc-skeleton--${t}`,style:{width:a,height:s}})}function Ia({open:a,onClose:s,onConfirm:t,title:n="Confirm action",message:r,confirmLabel:i="Confirm",cancelLabel:l="Cancel",danger:o}){return e.jsx(Me,{open:a,onClose:s,title:n,size:"sm",footer:e.jsxs(e.Fragment,{children:[e.jsx(C,{variant:"ghost",onClick:s,children:l}),e.jsx(C,{variant:o?"danger":"primary",onClick:t,children:i})]}),children:e.jsx("div",{className:"ycc-confirm-dialog__message",children:r})})}const ye=h.createContext({activePage:"",setActivePage:a=>{},collapsed:!1});function Te(...a){return a.filter(Boolean).join(" ")}function Fe({children:a,activePage:s,onNavigate:t,collapsed:n=!1}){const[r,i]=h.useState(s??""),l=h.useMemo(()=>({activePage:s??r,collapsed:n,setActivePage:o=>{i(o),t?.(o)}}),[s,n,r,t]);return e.jsx(ye.Provider,{value:l,children:e.jsx("nav",{className:Te("ycc-nav",n&&"ycc-nav--collapsed"),children:a})})}function q({label:a,icon:s,defaultExpanded:t=!0,children:n}){const[r,i]=h.useState(t),{collapsed:l}=h.useContext(ye);return e.jsxs("div",{className:"ycc-nav-group",children:[e.jsxs("button",{type:"button",className:"ycc-nav-group__button",onClick:()=>i(o=>!o),title:l?a:void 0,children:[s?e.jsx(c,{name:s,size:14}):null,e.jsx("span",{className:"ycc-nav-group__label",children:a}),e.jsx(c,{name:"ChevronDown",size:12,className:Te("ycc-nav-group__chevron",r&&"ycc-nav-group__chevron--expanded")})]}),r||l?e.jsx("div",{className:"ycc-nav-group__items",children:n}):null]})}function T({id:a,label:s,icon:t,badge:n,href:r,onClick:i}){const{activePage:l,setActivePage:o,collapsed:d}=h.useContext(ye),u=Te("ycc-nav-item",l===a&&"ycc-nav-item--active"),m=e.jsxs(e.Fragment,{children:[t?e.jsx(c,{name:t,size:16}):null,e.jsx("span",{className:"ycc-nav-item__label",children:s}),n!==void 0?e.jsx("span",{className:"ycc-nav-item__badge",children:e.jsx(se,{label:String(n),variant:"info"})}):null]});function k(){o(a),i?.()}return r?e.jsx("a",{href:r,className:u,title:d?s:void 0,onClick:k,children:m}):e.jsx("button",{type:"button",className:u,title:d?s:void 0,onClick:k,children:m})}function De({items:a,separator:s="/"}){return e.jsx("nav",{className:"ycc-breadcrumb","aria-label":"Breadcrumb",children:a.map((t,n)=>{const r=n===a.length-1;return e.jsxs("span",{className:"ycc-breadcrumb__item",children:[n>0?e.jsx("span",{className:"ycc-breadcrumb__separator",children:s}):null,r?e.jsx("span",{className:"ycc-breadcrumb__current",children:t.label}):t.href?e.jsx("a",{className:"ycc-breadcrumb__link",href:t.href,children:t.label}):e.jsx("button",{type:"button",className:"ycc-breadcrumb__link",onClick:t.onClick,children:t.label})]},`${t.label}-${n}`)})})}function Ha({steps:a,currentStep:s}){return e.jsx("ol",{className:"ycc-stepper",children:a.map((t,n)=>{const r=n<s?"complete":n===s?"active":"pending";return e.jsxs("li",{className:`ycc-stepper__step ycc-stepper__step--${r}`,children:[e.jsx("span",{className:"ycc-stepper__marker",children:n+1}),e.jsxs("span",{className:"ycc-stepper__text",children:[e.jsx("strong",{children:t.label}),t.description?e.jsx("small",{children:t.description}):null]})]},`${t.label}-${n}`)})})}function Va({tabs:a,activeTab:s,onChange:t,children:n}){return e.jsxs("div",{className:"ycc-tabs",children:[e.jsx("div",{className:"ycc-tabs__list",role:"tablist",children:a.map(r=>e.jsxs("button",{type:"button",role:"tab","aria-selected":s===r.id,className:s===r.id?"ycc-tabs__tab ycc-tabs__tab--active":"ycc-tabs__tab",onClick:()=>t(r.id),children:[r.icon?e.jsx(c,{name:r.icon,size:14}):null,r.label]},r.id))}),n?e.jsx("div",{className:"ycc-tabs__panel",children:n}):null]})}function Wa({items:a,trigger:s}){const[t,n]=h.useState(!1);return e.jsxs("span",{className:"ycc-context-menu",onContextMenu:r=>{r.preventDefault(),n(!0)},children:[e.jsx("button",{type:"button",className:"ycc-context-menu__trigger",onClick:()=>n(r=>!r),"aria-expanded":t,children:s}),t?e.jsx("span",{className:"ycc-context-menu__panel",role:"menu",children:a.map(r=>e.jsxs("button",{type:"button",role:"menuitem",disabled:r.disabled,className:r.danger?"ycc-context-menu__item ycc-context-menu__item--danger":"ycc-context-menu__item",onClick:()=>{r.disabled||(r.onClick(),n(!1))},children:[r.icon?e.jsx(c,{name:r.icon,size:14}):null,r.label]},r.label))}):null]})}function Ga(a,s){return Array.from({length:Math.max(s-a+1,0)},(t,n)=>a+n)}function Ka({page:a,totalPages:s,onChange:t,siblingCount:n=1}){const r=Math.max(1,a-n),i=Math.min(s,a+n),l=Ga(r,i);return e.jsxs("nav",{className:"ycc-pagination","aria-label":"Pagination",children:[e.jsx("button",{type:"button",disabled:a<=1,onClick:()=>t(a-1),"aria-label":"Previous page",children:e.jsx(c,{name:"ArrowLeft",size:14})}),r>1?e.jsx("button",{type:"button",onClick:()=>t(1),children:"1"}):null,r>2?e.jsx("span",{children:"..."}):null,l.map(o=>e.jsx("button",{type:"button","aria-current":o===a?"page":void 0,className:o===a?"ycc-pagination__page--active":void 0,onClick:()=>t(o),children:o},o)),i<s-1?e.jsx("span",{children:"..."}):null,i<s?e.jsx("button",{type:"button",onClick:()=>t(s),children:s}):null,e.jsx("button",{type:"button",disabled:a>=s,onClick:()=>t(a+1),"aria-label":"Next page",children:e.jsx(c,{name:"ArrowRight",size:14})})]})}function Qe({collapsed:a,onToggle:s,logo:t,children:n}){return e.jsxs("aside",{className:`ycc-sidebar${a?" ycc-sidebar--collapsed":""}`,children:[e.jsx("div",{className:"ycc-sidebar__logo",children:t??(a?"Y":"Your Cargo Contact")}),e.jsx("div",{className:"ycc-sidebar__body",children:n}),s?e.jsx("button",{type:"button",className:"ycc-sidebar__toggle",onClick:s,"aria-label":"Toggle sidebar",children:e.jsx(c,{name:a?"ChevronRight":"ArrowLeft",size:16})}):null]})}function Xe({onMenuToggle:a,title:s,user:t,notificationCount:n,onNotificationClick:r,onLogout:i}){const[l,o]=h.useState(!1);return e.jsxs("header",{className:"ycc-header",children:[e.jsxs("div",{className:"ycc-header__left",children:[e.jsx("button",{type:"button",className:"ycc-header__icon-button",onClick:a,"aria-label":"Toggle menu",children:e.jsx(c,{name:"Menu",size:18})}),s?e.jsx("h1",{className:"ycc-header__title",children:s}):null]}),e.jsx("div",{className:"ycc-header__search",children:e.jsx(P,{placeholder:"Search...",leftAddon:e.jsx(c,{name:"Search",size:14})})}),e.jsxs("div",{className:"ycc-header__right",children:[e.jsx(Z,{size:"sm",defaultValue:"en",options:[{value:"en",label:"EN"},{value:"nl",label:"NL"}]}),e.jsxs("button",{type:"button",className:"ycc-header__icon-button",onClick:r,"aria-label":"Notifications",children:[e.jsx(c,{name:"Bell",size:17}),n?e.jsx("span",{className:"ycc-header__counter",children:e.jsx(se,{label:String(n),variant:"info"})}):null]}),t?e.jsxs("div",{className:"ycc-header__user",children:[e.jsxs("button",{type:"button",className:"ycc-header__user-button",onClick:()=>o(d=>!d),children:[e.jsx(ae,{name:t.name,src:t.avatar}),e.jsxs("span",{className:"ycc-header__user-text",children:[e.jsx("span",{className:"ycc-header__user-name",children:t.name}),e.jsx("span",{className:"ycc-header__user-role",children:t.role})]})]}),l?e.jsx("div",{className:"ycc-header__dropdown",children:e.jsx(he,{shadow:!0,padding:"sm",children:e.jsx(C,{variant:"ghost",size:"sm",leftIcon:"Power",onClick:i,children:"Logout"})})}):null]}):null]})]})}function Ze({copyright:a=`© ${new Date().getFullYear()} Your Cargo Contact`,links:s=[]}){return e.jsxs("footer",{className:"ycc-footer",children:[e.jsx("span",{children:a}),e.jsx("span",{className:"ycc-footer__links",children:s.map(t=>e.jsx("a",{href:t.href,children:t.label},t.href))})]})}function Ua(a,s){return h.isValidElement(a)?h.cloneElement(a,{collapsed:s}):a}function ea({nav:a,user:s,notificationCount:t,onNotificationClick:n,onLogout:r,children:i,defaultCollapsed:l=!1}){const[o,d]=h.useState(l),[p,u]=h.useState(!1),k={"--ycc-shell-offset":o?"calc(var(--ycc-space-8) * 2)":"var(--ycc-sidebar-width)"},F=()=>{if(window.matchMedia("(max-width: 640px)").matches){u(D=>!D);return}d(D=>!D)};return e.jsxs("div",{className:"ycc-page",style:k,children:[e.jsx("div",{className:`ycc-page__sidebar${p?" ycc-page__sidebar--open":""}`,children:e.jsx(Qe,{collapsed:o,onToggle:()=>d(D=>!D),children:Ua(a,o)})}),p?e.jsx("button",{type:"button",className:"ycc-page__backdrop","aria-label":"Close menu",onClick:()=>u(!1)}):null,e.jsx(Xe,{onMenuToggle:F,user:s,notificationCount:t,onNotificationClick:n,onLogout:r}),e.jsxs("div",{className:"ycc-page__content",children:[e.jsx("main",{className:"ycc-page__main",children:i}),e.jsx(Ze,{})]})]})}const qa={sm:"var(--ycc-breakpoint-sm)",md:"768px",lg:"var(--ycc-breakpoint-lg)",xl:"1280px",full:"100%"};function Ya({children:a,maxWidth:s="lg",className:t}){const n={width:"100%",maxWidth:qa[s],margin:"0 auto"};return e.jsx("div",{className:t?`ycc-container ${t}`:"ycc-container",style:n,children:a})}const Ja={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function R({children:a,gap:s=3,align:t="stretch"}){const n={"--ycc-grid-gap":`calc(var(--ycc-space-1) * ${s})`,alignItems:Ja[t]};return e.jsx("div",{className:"ycc-row",style:n,children:a})}function Qa({children:a,span:s=12,sm:t,lg:n}){const r={"--ycc-col-span":s,"--ycc-col-sm":t??s,"--ycc-col-lg":n??t??s};return e.jsx("div",{className:"ycc-col",style:r,children:a})}function Xa({title:a,subtitle:s,actions:t}){return e.jsxs("header",{className:"ycc-page-header",children:[e.jsxs("div",{children:[e.jsx("h1",{children:a}),s?e.jsx("p",{children:s}):null]}),t?e.jsx("div",{className:"ycc-page-header__actions",children:t}):null]})}function Za({label:a,spacing:s="md"}){return a?e.jsx("div",{className:`ycc-divider ycc-divider--${s}`,children:e.jsx("span",{children:a})}):e.jsx("hr",{className:`ycc-divider ycc-divider--${s}`})}function es({children:a,cols:s=2,gap:t=3,className:n}){const r={"--ycc-grid-cols":s,"--ycc-grid-gap":`calc(var(--ycc-space-1) * ${t})`};return e.jsx("div",{className:n?`ycc-grid ${n}`:"ycc-grid",style:r,children:a})}const as={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function ss({children:a,gap:s=3,align:t="stretch",className:n}){const r={"--ycc-stack-gap":`calc(var(--ycc-space-1) * ${s})`,alignItems:as[t]};return e.jsx("div",{className:n?`ycc-stack ${n}`:"ycc-stack",style:r,children:a})}function ts({size:a=4,axis:s="y"}){const t={"--ycc-spacer-size":`calc(var(--ycc-space-1) * ${a})`};return e.jsx("span",{"aria-hidden":"true",className:`ycc-spacer ycc-spacer--${s}`,style:t})}const ns=[{name:"Omar Siddiqui",email:"omar.siddiqui@yourcargocontact.com",status:"delivered",role:"Broker",active:!0},{name:"Sara Malik",email:"sara.malik@yourcargocontact.com",status:"pending",role:"Agent",active:!1},{name:"Hassan Qureshi",email:"hassan.qureshi@yourcargocontact.com",status:"transit",role:"Supervisor",active:!0},{name:"Aisha Khan",email:"aisha.khan@yourcargocontact.com",status:"cleared",role:"Analyst",active:!1},{name:"Bilal Farooq",email:"bilal.farooq@yourcargocontact.com",status:"held",role:"Manager",active:!0},{name:"Mariam Sheikh",email:"mariam.sheikh@yourcargocontact.com",status:"rejected",role:"Broker",active:!1},{name:"Khalid Rahman",email:"khalid.rahman@yourcargocontact.com",status:"delivered",role:"Agent",active:!0},{name:"Nadia Hussain",email:"nadia.hussain@yourcargocontact.com",status:"transit",role:"Supervisor",active:!1},{name:"Tariq Mehmood",email:"tariq.mehmood@yourcargocontact.com",status:"cleared",role:"Analyst",active:!0},{name:"Zara Ahmed",email:"zara.ahmed@yourcargocontact.com",status:"pending",role:"Manager",active:!1}],rs=[{key:"name",header:"Agent",render:(a,s)=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(ae,{name:s.name,size:"sm"}),e.jsx("span",{children:s.name})]})},{key:"email",header:"Email"},{key:"status",header:"Status",render:(a,s)=>e.jsx(se,{label:s.status,variant:s.status})},{key:"role",header:"Role",render:(a,s)=>e.jsx(U,{label:s.role})},{key:"active",header:"Active",render:(a,s)=>e.jsx(W,{checked:s.active,onChange:()=>{},size:"sm"})},{key:"actions",header:"Actions",render:()=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(C,{variant:"ghost",size:"sm",children:"Edit"}),e.jsx(C,{variant:"danger",size:"sm",children:"Delete"})]})}];function is(){return e.jsxs(ea,{nav:e.jsxs(Fe,{activePage:"airfreight",children:[e.jsxs(q,{label:"Freight",children:[e.jsx(T,{id:"airfreight",label:"Air Freight",icon:"Plane"}),e.jsx(T,{id:"seafreight",label:"Sea Freight",icon:"Anchor"}),e.jsx(T,{id:"trucking",label:"Trucking",icon:"Truck"})]}),e.jsxs(q,{label:"Customs",children:[e.jsx(T,{id:"customs",label:"Customs",icon:"FileCheck"}),e.jsx(T,{id:"bonded",label:"Bonded",icon:"Warehouse"})]}),e.jsxs(q,{label:"Admin",children:[e.jsx(T,{id:"hr",label:"HR",icon:"Users"}),e.jsx(T,{id:"finance",label:"Finance",icon:"DollarSign"})]})]}),user:{name:"Ahmed Al-Rashid",role:"Operations Manager"},notificationCount:3,children:[e.jsx(De,{items:[{label:"Home"},{label:"Dashboard"}]}),e.jsxs(R,{gap:16,children:[e.jsx(I,{title:"Total Shipments",value:"1,284",change:8.3,icon:"Package",trend:"up"}),e.jsx(I,{title:"Revenue",value:"$94,210",change:12.1,icon:"DollarSign",trend:"up"}),e.jsx(I,{title:"Active Customers",value:"342",change:-2.4,icon:"Users",trend:"down"}),e.jsx(I,{title:"On-Time Delivery",value:"97.2%",change:.8,icon:"CheckCircle",trend:"up"})]}),e.jsx(Ae,{variant:"info",message:"System maintenance scheduled Sunday 02:00-04:00 UTC. All services will be temporarily unavailable.",onDismiss:()=>{}}),e.jsx(_e,{columns:rs,data:ns,searchable:!0,striped:!0,clickableRows:!0}),e.jsxs(he,{shadow:!0,children:[e.jsx(be,{title:"New Shipment",subtitle:"Fill in the details below"}),e.jsx(pe,{label:"Reference Number",required:!0,children:e.jsx(P,{placeholder:"e.g. SHP-2024-001"})}),e.jsx(pe,{label:"Origin Port",required:!0,children:e.jsx(Z,{options:[{value:"dxb",label:"Dubai (DXB)"},{value:"sin",label:"Singapore (SIN)"},{value:"lhr",label:"London (LHR)"},{value:"jfk",label:"New York (JFK)"},{value:"lhe",label:"Lahore (LHE)"}],placeholder:"Select origin..."})}),e.jsx(pe,{label:"Shipment Notes",children:e.jsx(de,{placeholder:"Any special handling instructions...",rows:3})}),e.jsxs(Se,{align:"right",children:[e.jsx(C,{variant:"ghost",size:"md",children:"Cancel"}),e.jsx(C,{variant:"primary",size:"md",leftIcon:"Send",children:"Submit Shipment"})]})]})]})}const ls={minHeight:"100vh",background:"#FFFFFF",padding:40},cs={maxWidth:1200,margin:"0 auto",display:"flex",flexDirection:"column",gap:24},os={display:"flex",flexDirection:"column",gap:16},S={fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace"},Ce=[{value:"dxb",label:"Dubai (DXB)"},{value:"sin",label:"Singapore (SIN)"},{value:"lhr",label:"London (LHR)"},{value:"jfk",label:"New York (JFK)"},{value:"lhe",label:"Lahore (LHE)"}];function ds(){return[{label:"Primary",swatches:Object.entries(X).map(([a,s])=>({name:a,value:s}))},{label:"Neutral",swatches:Object.entries(E).map(([a,s])=>({name:a,value:s}))},{label:"Status",swatches:Object.entries(A).flatMap(([a,s])=>[{name:`${a}.text`,value:s.text},{name:`${a}.bg`,value:s.bg}])},{label:"Milestone",swatches:Object.entries(_).flatMap(([a,s])=>[{name:`${a}.text`,value:s.text},{name:`${a}.bg`,value:s.bg}])},{label:"Clearance",swatches:Object.entries(M).flatMap(([a,s])=>[{name:`${a}.text`,value:s.text},{name:`${a}.bg`,value:s.bg}])},{label:"Semantic",swatches:[...Object.entries(N).map(([a,s])=>({name:a,value:s})),...Object.entries(G).flatMap(([a,s])=>[{name:`direction.${a}.text`,value:s.text},{name:`direction.${a}.bg`,value:s.bg}]),...Object.entries(K).flatMap(([a,s])=>[{name:`tStatus.${a}.text`,value:s.text},{name:`tStatus.${a}.bg`,value:s.bg}]),...Object.entries(O).flatMap(([a,s])=>[{name:`warehouse.${a}.text`,value:s.text},{name:`warehouse.${a}.bg`,value:s.bg}]),...Object.entries($).map(([a,s])=>({name:`branch.${a}`,value:s}))]}]}function hs(){return[{label:"STATUS",values:Object.keys(A)},{label:"MPILL",values:Object.keys(_)},{label:"CL",values:Object.keys(M)},{label:"BRANCH MODULE",values:Object.keys($)},{label:"DIRECTION",values:Object.keys(G)},{label:"T STATUS",values:Object.keys(K)}]}const us=[{name:"Omar Siddiqui",email:"omar.siddiqui@yourcargocontact.com",status:"delivered",role:"Broker",active:!0},{name:"Sara Malik",email:"sara.malik@yourcargocontact.com",status:"pending",role:"Agent",active:!1},{name:"Hassan Qureshi",email:"hassan.qureshi@yourcargocontact.com",status:"transit",role:"Supervisor",active:!0},{name:"Aisha Khan",email:"aisha.khan@yourcargocontact.com",status:"cleared",role:"Analyst",active:!1},{name:"Bilal Farooq",email:"bilal.farooq@yourcargocontact.com",status:"held",role:"Manager",active:!0}],ps=[{key:"name",header:"Agent",render:(a,s)=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(ae,{name:s.name,size:"sm"}),e.jsx("span",{children:s.name})]})},{key:"email",header:"Email"},{key:"status",header:"Status",render:(a,s)=>e.jsx(se,{label:s.status,variant:s.status})},{key:"role",header:"Role",render:(a,s)=>e.jsx(U,{label:s.role})},{key:"active",header:"Active",render:(a,s)=>e.jsx(W,{checked:s.active,onChange:()=>{},size:"sm"})},{key:"actions",header:"Actions",render:()=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(C,{variant:"ghost",size:"sm",children:"Edit"}),e.jsx(C,{variant:"danger",size:"sm",children:"Delete"})]})}];function v({title:a,children:s}){return e.jsxs(he,{shadow:!0,children:[e.jsx(be,{title:a}),e.jsx("div",{style:os,children:s})]})}function ms(a){return{fontFamily:"family"in a?a.family:void 0,fontSize:a.size,fontWeight:a.weight,letterSpacing:"spacing"in a?a.spacing:void 0,textTransform:"transform"in a?a.transform:void 0}}function xs({label:a,values:s}){return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[e.jsx("div",{style:{...S,fontSize:10,fontWeight:700,letterSpacing:"0.05em"},children:a}),e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:s.map(t=>e.jsx(se,{label:t,variant:t,size:"md"},`${a}-${t}`))})]})}function gs(){const a=qe();return e.jsxs(R,{gap:4,children:[e.jsx(C,{variant:"primary",onClick:()=>a.success("Shipment saved successfully"),children:"Success Toast"}),e.jsx(C,{variant:"danger",onClick:()=>a.error("Unable to delete shipment"),children:"Error Toast"}),e.jsx(C,{variant:"secondary",onClick:()=>a.warning("Customs documents need review"),children:"Warning Toast"}),e.jsx(C,{variant:"ghost",onClick:()=>a.info("New tracking update received"),children:"Info Toast"})]})}function bs(){const[a,s]=h.useState(!1),t=["primary","secondary","ghost","danger","link"],n=["sm","md","lg"],r=ds(),i=hs();return e.jsx("div",{style:ls,children:e.jsxs("main",{style:cs,children:[e.jsx(v,{title:"COLORS",children:r.map(l=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[e.jsx("div",{style:{...S,fontSize:11,fontWeight:700,textTransform:"uppercase"},children:l.label}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(88px, 1fr))",gap:12},children:l.swatches.map(o=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[e.jsx("div",{style:{width:48,height:48,background:o.value,border:"1px solid #E8EAF2",borderRadius:4}}),e.jsx("div",{style:{...S,fontSize:10,color:"#1B2440"},children:o.value}),e.jsx("div",{style:{...S,fontSize:9,color:"#8A93AD"},children:o.name})]},`${l.label}-${o.name}`))})]},l.label))}),e.jsx(v,{title:"TYPOGRAPHY",children:Object.entries(na).map(([l,o])=>e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"180px 1fr",gap:16,alignItems:"baseline"},children:[e.jsx("div",{style:{...S,fontSize:11,color:"#8A93AD"},children:l}),e.jsx("div",{style:ms(o),children:"The quick brown fox jumps over the lazy dog"})]},l))}),e.jsx(v,{title:"ICONS",children:e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(8, minmax(0, 1fr))",gap:12},children:He.map(l=>e.jsxs("div",{style:{display:"flex",minWidth:0,flexDirection:"column",alignItems:"center",gap:6},children:[e.jsx(c,{name:l,size:20}),e.jsx("div",{style:{...S,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",fontSize:9},children:l})]},l))})}),e.jsx(v,{title:"BUTTONS",children:e.jsx("div",{style:{overflowX:"auto"},children:e.jsxs("table",{style:{width:"100%",borderCollapse:"separate",borderSpacing:12},children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{style:{...S,textAlign:"left",fontSize:11},children:"variant"}),n.map(l=>e.jsx("th",{style:{...S,textAlign:"left",fontSize:11},children:l},l)),e.jsx("th",{style:{...S,textAlign:"left",fontSize:11},children:"loading"}),e.jsx("th",{style:{...S,textAlign:"left",fontSize:11},children:"leftIcon"}),e.jsx("th",{style:{...S,textAlign:"left",fontSize:11},children:"rightIcon"})]})}),e.jsx("tbody",{children:t.map(l=>e.jsxs("tr",{children:[e.jsx("td",{style:{...S,fontSize:11},children:l}),n.map(o=>e.jsx("td",{children:e.jsx(C,{variant:l,size:o,children:o})},`${l}-${o}`)),e.jsx("td",{children:e.jsx(C,{variant:l,loading:!0,children:"Loading"})}),e.jsx("td",{children:e.jsx(C,{variant:l,leftIcon:"Plus",children:"Create"})}),e.jsx("td",{children:e.jsx(C,{variant:l,rightIcon:"ArrowRight",children:"Next"})})]},l))})]})})}),e.jsx(v,{title:"BADGES",children:i.map(l=>e.jsx(xs,{label:l.label,values:l.values},l.label))}),e.jsx(v,{title:"AVATAR",children:e.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:20,alignItems:"center"},children:[["sm","md","lg"].map(l=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e.jsx(ae,{name:"Ahmed Al-Rashid",size:l}),e.jsxs("span",{style:{...S,fontSize:11},children:["initials ",l]})]},l)),["online","offline","away"].map(l=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e.jsx(ae,{name:"Sara Malik",status:l}),e.jsx("span",{style:{...S,fontSize:11},children:l})]},l))]})}),e.jsx(v,{title:"TOGGLE",children:e.jsxs(R,{gap:6,children:[e.jsx(W,{label:"Off",checked:!1,onChange:()=>{}}),e.jsx(W,{label:"On",checked:!0,onChange:()=>{}}),e.jsx(W,{label:"Disabled off",checked:!1,disabled:!0}),e.jsx(W,{label:"Disabled on",checked:!0,disabled:!0})]})}),e.jsx(v,{title:"TAGS",children:e.jsxs(R,{gap:4,children:[e.jsx(U,{label:"Broker"}),e.jsx(U,{label:"Removable",onRemove:()=>{}}),e.jsx(U,{label:"Custom Color",color:"#4338CA"})]})}),e.jsx(v,{title:"INPUTS",children:["sm","md","lg"].map(l=>e.jsxs(R,{gap:4,children:[e.jsx(P,{size:l,placeholder:`Default ${l}`}),e.jsx(P,{size:l,placeholder:"With error",error:"Required field"}),e.jsx(P,{size:l,placeholder:"Search",leftAddon:e.jsx(c,{name:"Search",size:14})}),e.jsx(P,{size:l,placeholder:"Weight",rightAddon:"kg"}),e.jsx(P,{size:l,placeholder:"Disabled",disabled:!0})]},l))}),e.jsx(v,{title:"SELECT",children:e.jsxs(R,{gap:4,children:[e.jsx(Z,{options:Ce,placeholder:"Select origin..."}),e.jsx(Z,{options:Ce,placeholder:"Select origin...",error:"Origin is required"}),e.jsx(Z,{options:Ce,placeholder:"Select origin...",disabled:!0})]})}),e.jsx(v,{title:"CHECKBOX",children:e.jsxs(R,{gap:6,children:[e.jsx(ie,{label:"Unchecked"}),e.jsx(ie,{label:"Checked",checked:!0,onChange:()=>{}}),e.jsx(ie,{label:"Indeterminate",indeterminate:!0,onChange:()=>{}}),e.jsx(ie,{label:"Disabled",disabled:!0})]})}),e.jsx(v,{title:"TEXTAREA",children:e.jsxs(R,{gap:4,children:[e.jsx(de,{placeholder:"Default textarea",rows:3}),e.jsx(de,{placeholder:"With error",error:"Notes are too short",rows:3}),e.jsx(de,{placeholder:"No resize",resize:"none",rows:3})]})}),e.jsx(v,{title:"FILE UPLOAD",children:e.jsx(We,{label:"Upload shipping documents",onFilesSelected:()=>{},multiple:!0,accept:".pdf,.doc,.docx,.png,.jpg"})}),e.jsx(v,{title:"CARDS",children:e.jsxs(he,{shadow:!0,children:[e.jsx(be,{title:"Shipment Summary",subtitle:"Recent operational activity",actions:e.jsx(C,{variant:"ghost",size:"sm",children:"Export"})}),e.jsx("p",{style:{margin:0,color:"#1B2440",fontSize:13},children:"Container release, customs review, and delivery notes are ready for review."}),e.jsxs(Se,{align:"between",children:[e.jsx("span",{style:{color:"#8A93AD",fontSize:12},children:"Last updated 2 min ago"}),e.jsx(C,{variant:"primary",children:"Save"})]})]})}),e.jsx(v,{title:"STAT CARDS",children:e.jsxs(R,{gap:16,children:[e.jsx(I,{title:"Total Shipments",value:"1,284",change:8.3,icon:"Package",trend:"up"}),e.jsx(I,{title:"Revenue",value:"$94,210",change:12.1,icon:"DollarSign",trend:"up"}),e.jsx(I,{title:"Active Customers",value:"342",change:-2.4,icon:"Users",trend:"down"}),e.jsx(I,{title:"On-Time Delivery",value:"97.2%",change:.8,icon:"CheckCircle",trend:"up"})]})}),e.jsx(v,{title:"BANNER",children:["info","success","warning","danger"].map(l=>e.jsx(Ae,{variant:l,message:`${l} banner message for logistics operations.`,onDismiss:()=>{}},l))}),e.jsx(v,{title:"TABLE",children:e.jsx(_e,{columns:ps,data:us,loading:!1,striped:!0})}),e.jsx(v,{title:"TOAST",children:e.jsx(gs,{})}),e.jsxs(v,{title:"MODAL",children:[e.jsx(C,{variant:"primary",onClick:()=>s(!0),children:"Open Modal"}),e.jsx(Me,{open:a,onClose:()=>s(!1),size:"md",title:"Confirm Action",footer:e.jsxs(e.Fragment,{children:[e.jsx(C,{variant:"ghost",onClick:()=>s(!1),children:"Cancel"}),e.jsx(C,{variant:"primary",onClick:()=>s(!1),children:"Confirm"})]}),children:"This action will update the selected shipment record and notify the assigned operations team."})]}),e.jsx(v,{title:"ALERT",children:["info","success","warning","danger"].map(l=>e.jsx(Ye,{variant:l,title:`${l} alert`,message:`This is a ${l} alert message.`},l))}),e.jsx(v,{title:"SPINNER",children:e.jsx(R,{gap:8,children:["sm","md","lg"].map(l=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[e.jsx(Je,{size:l}),e.jsx("span",{style:{...S,fontSize:11},children:l})]},l))})}),e.jsx(v,{title:"BREADCRUMB",children:e.jsx(De,{items:[{label:"Home"},{label:"Freight"},{label:"Air Freight"},{label:"Shipment #1284"}]})}),e.jsx(v,{title:"NAV",children:e.jsx("div",{style:{width:224,border:"1px solid #E8EAF2",borderRadius:8,padding:8},children:e.jsxs(Fe,{activePage:"airfreight",collapsed:!1,children:[e.jsxs(q,{label:"Freight",children:[e.jsx(T,{id:"airfreight",label:"Air Freight",icon:"Plane"}),e.jsx(T,{id:"seafreight",label:"Sea Freight",icon:"Anchor"}),e.jsx(T,{id:"trucking",label:"Trucking",icon:"Truck"})]}),e.jsxs(q,{label:"Customs",children:[e.jsx(T,{id:"customs",label:"Customs",icon:"FileCheck"}),e.jsx(T,{id:"bonded",label:"Bonded",icon:"Warehouse"})]}),e.jsxs(q,{label:"Admin",children:[e.jsx(T,{id:"hr",label:"HR",icon:"Users"}),e.jsx(T,{id:"finance",label:"Finance",icon:"DollarSign"})]})]})})})]})})}function ys(){return e.jsx(Ue,{children:e.jsx(bs,{})})}const je=[{id:"home",label:"Home",icon:"Home"},{id:"ceo",label:"CEO Dashboard",icon:"LayoutGrid"},{id:"coo",label:"COO Dashboard",icon:"Gauge",section:"Operations"},{id:"files",label:"All files",icon:"LayoutGrid"},{id:"air",label:"Air Freight",icon:"Plane",children:[{id:"air-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"air-quotations",label:"Quotations",icon:"FileText"},{id:"air-files",label:"Files",icon:"Plane"},{id:"air-warehouse",label:"Warehouse",icon:"Warehouse"},{id:"air-track-trace",label:"Track & trace",icon:"ScanSearch"},{id:"air-awb-stock",label:"AWB stock",icon:"Hash"},{id:"air-security",label:"Security (RA/KC)",icon:"ShieldCheck"}]},{id:"customs",label:"Customs",icon:"Landmark",children:[{id:"customs-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"customs-declarations",label:"Declarations",icon:"FileCheck"},{id:"customs-files",label:"Files",icon:"FileText"},{id:"customs-clearance",label:"Clearance",icon:"ClipboardCheck"},{id:"customs-hs-codes",label:"HS codes",icon:"Hash"},{id:"customs-security",label:"Security",icon:"ShieldCheck"}]},{id:"sea",label:"Sea Freight",icon:"Ship",children:[{id:"sea-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"sea-quotations",label:"Quotations",icon:"FileText"},{id:"sea-files",label:"Files",icon:"Ship"},{id:"sea-containers",label:"Containers",icon:"Boxes"},{id:"sea-track-trace",label:"Track & trace",icon:"ScanSearch"},{id:"sea-bl-stock",label:"B/L stock",icon:"Hash"}]},{id:"truck",label:"Trucking",icon:"Truck",children:[{id:"truck-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"truck-quotations",label:"Quotations",icon:"FileText"},{id:"truck-files",label:"Files",icon:"Truck"},{id:"truck-dispatch",label:"Dispatch",icon:"Route"},{id:"truck-track-trace",label:"Track & trace",icon:"ScanSearch"},{id:"truck-fleet",label:"Fleet",icon:"Truck"}]},{id:"warehouse",label:"Warehouse (WMS)",icon:"Warehouse",children:[{id:"warehouse-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"warehouse-receipts",label:"Receipts",icon:"PackageCheck"},{id:"warehouse-files",label:"Files",icon:"FileText"},{id:"warehouse-inventory",label:"Inventory",icon:"Boxes"},{id:"warehouse-pick-pack",label:"Pick & pack",icon:"PackageOpen"},{id:"warehouse-dispatch",label:"Dispatch",icon:"Truck"}]},{id:"cfo",label:"CFO Dashboard",icon:"Wallet",section:"Corporate Services"},{id:"backoffice",label:"Backoffice",icon:"FileText",children:[{id:"backoffice-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"backoffice-tasks",label:"Tasks",icon:"ClipboardCheck"},{id:"backoffice-files",label:"Files",icon:"FileText"},{id:"backoffice-automations",label:"Automations",icon:"Workflow"}]},{id:"finance",label:"Finance",icon:"Wallet",children:[{id:"finance-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"finance-invoices",label:"Invoices",icon:"Receipt"},{id:"finance-payments",label:"Payments",icon:"Wallet"},{id:"finance-reports",label:"Reports",icon:"BarChart3"}]},{id:"ap",label:"AP Control Tower",icon:"ClipboardCheck",children:[{id:"ap-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"ap-vendor-bills",label:"Vendor bills",icon:"Receipt"},{id:"ap-approvals",label:"Approvals",icon:"CheckCircle2"},{id:"ap-exceptions",label:"Exceptions",icon:"AlertTriangle"}]},{id:"hr",label:"Human Resources",icon:"Users",children:[{id:"hr-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"hr-employees",label:"Employees",icon:"Users"},{id:"hr-attendance",label:"Attendance",icon:"Clock"},{id:"hr-training",label:"Training",icon:"BookOpen"}]},{id:"affairs",label:"Corporate Affairs",icon:"Landmark",children:[{id:"affairs-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"affairs-licenses",label:"Licenses",icon:"ShieldCheck"},{id:"affairs-policies",label:"Policies",icon:"FileText"},{id:"affairs-cases",label:"Cases",icon:"Briefcase"}]},{id:"cco",label:"CCO Dashboard",icon:"Activity",section:"Commercial"},{id:"marketing",label:"Marketing",icon:"Globe",children:[{id:"marketing-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"marketing-campaigns",label:"Campaigns",icon:"Activity"},{id:"marketing-leads",label:"Leads",icon:"Users"},{id:"marketing-content",label:"Content",icon:"FileText"}]},{id:"sales",label:"Sales",icon:"Briefcase",children:[{id:"sales-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"sales-opportunities",label:"Opportunities",icon:"TrendingUp"},{id:"sales-quotations",label:"Quotations",icon:"FileText"},{id:"sales-customers",label:"Customers",icon:"Users"}]},{id:"admin",label:"Admin",icon:"Lock",section:"System",children:[{id:"admin-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"admin-users",label:"Users",icon:"Users"},{id:"admin-roles",label:"Roles",icon:"ShieldCheck"},{id:"admin-audit-log",label:"Audit log",icon:"FileText"}]},{id:"general",label:"General (shared)",icon:"Settings",children:[{id:"general-dashboard",label:"Dashboard",icon:"LayoutGrid"},{id:"general-master-data",label:"Master data",icon:"Database"},{id:"general-shared-files",label:"Shared files",icon:"FileText"},{id:"general-settings",label:"Settings",icon:"Settings"}]},{id:"public",label:"Public website",icon:"Globe",external:!0,promoted:!0}],Oe={"Your Cargo Contact (HQ)":je.map(a=>a.id),"YCC Colchester":["home","ceo","coo","files","air","customs","sea","cfo","hr","affairs","cco","marketing","sales","admin","general","public"],"YCC Liège":["home","ceo","coo","files","air","truck","warehouse","cfo","hr","affairs","cco","marketing","sales","admin","general","public"],"Linex UK":["home","ceo","coo","files","customs","sea","truck","cfo","hr","affairs","cco","marketing","sales","admin","general","public"],CCL:["home","ceo","coo","files","customs","sea","cfo","hr","affairs","cco","marketing","sales","admin","general","public"],"Linex France":["home","ceo","coo","files","customs","truck","cfo","hr","affairs","cco","marketing","sales","admin","general","public"],"YCC Madrid":["home","ceo","coo","files","air","truck","cfo","hr","affairs","cco","marketing","sales","admin","general","public"],"YCC Barcelona":["home","ceo","coo","files","sea","truck","cfo","hr","affairs","cco","marketing","sales","admin","general","public"]};function aa(a){const s=Oe[a]??Oe["Your Cargo Contact (HQ)"],t=a==="Your Cargo Contact (HQ)";return je.filter(n=>s.includes(n.id)).map(n=>t?n:{...n,children:void 0})}function js(a){return aa(a).flatMap(s=>[s.id,...s.children?.map(t=>t.id)??[]])}const Re=["Dubai DXB","Madrid MAD","Singapore SIN","London LHR","New York JFK"],Ee=[{name:"Mark",role:"Administrator"},{name:"Eva Bakker",role:"Customs"},{name:"Sven Mol",role:"Air Freight"},{name:"Ravi Nair",role:"Sea Freight"},{name:"Tom Visser",role:"Trucking"},{name:"Lina Roos",role:"Finance"},{name:"Nora Smit",role:"Sales"},{name:"Daan Bos",role:"Warehouse"},{name:"Iris Vos",role:"Backoffice"},{name:"Sara Vidal",role:"Marketing"},{name:"Pim de Groot",role:"Human Resources"},{name:"Hannah de Wit",role:"Corporate Affairs"}],vs={home:{title:"Your Cargo Contact",eyebrow:"Customs · Freight · Warehousing",description:"Welcome, Mark. One platform for declarations, freight files, warehousing and back-office across every department.",icon:"Home",metrics:[{label:"Open files",value:"1,284",change:"+8.3%",tone:"blue"},{label:"Released today",value:"216",change:"+12",tone:"green"},{label:"Pending reviews",value:"38",change:"-4",tone:"amber"},{label:"On-time delivery",value:"97.2%",change:"+0.8%",tone:"violet"}],work:[{ref:"SHP-1284",customer:"Atlas Foods",owner:"Sara Malik",status:"Released",due:"Today"},{ref:"SHP-1285",customer:"Nile Trading",owner:"Omar Reyes",status:"In transit",due:"Tomorrow"},{ref:"SHP-1286",customer:"Blue Harbor",owner:"Lea Santos",status:"Docs needed",due:"Jun 28"}]},ceo:{title:"CEO Dashboard",eyebrow:"Executive overview",description:"Revenue, service quality, customer movement, and cross-branch operating health.",icon:"BarChart3",metrics:[{label:"Monthly revenue",value:"$482K",change:"+14.2%",tone:"green"},{label:"Gross margin",value:"32.6%",change:"+2.1%",tone:"blue"},{label:"Key accounts",value:"84",change:"+6",tone:"violet"},{label:"Escalations",value:"7",change:"-3",tone:"amber"}],work:[{ref:"CEO-441",customer:"Board pack",owner:"Mark Jensen",status:"Ready",due:"Today"},{ref:"CEO-442",customer:"Top accounts",owner:"Lina Park",status:"Review",due:"Jun 27"},{ref:"CEO-443",customer:"Branch forecast",owner:"Ahmed Noor",status:"Draft",due:"Jul 01"}]},coo:{title:"COO Dashboard",eyebrow:"Operations control",description:"Live operational throughput across air, road, warehouse, and customs desks.",icon:"Gauge",metrics:[{label:"Throughput",value:"748",change:"+6.8%",tone:"blue"},{label:"SLA met",value:"94%",change:"+1.4%",tone:"green"},{label:"Bottlenecks",value:"11",change:"-5",tone:"amber"},{label:"Capacity",value:"81%",change:"+3%",tone:"violet"}],work:[{ref:"OPS-214",customer:"Night shift handover",owner:"Noor Ali",status:"Active",due:"Today"},{ref:"OPS-215",customer:"Warehouse dock plan",owner:"Marta Ruiz",status:"Planned",due:"Tomorrow"},{ref:"OPS-216",customer:"Customs queue",owner:"Chen Wei",status:"At risk",due:"Today"}]},files:{title:"All files",eyebrow:"Document workspace",description:"A searchable working set for declarations, invoices, airway bills, and delivery notes.",icon:"FileText",metrics:[{label:"Total files",value:"8,410",change:"+312",tone:"blue"},{label:"Missing docs",value:"26",change:"-9",tone:"amber"},{label:"Completed",value:"1,102",change:"+91",tone:"green"},{label:"Archived",value:"21K",change:"+1.1K",tone:"violet"}],work:[{ref:"DOC-771",customer:"Commercial invoice",owner:"Sara Malik",status:"Uploaded",due:"Today"},{ref:"DOC-772",customer:"AWB packet",owner:"Omar Reyes",status:"Missing stamp",due:"Today"},{ref:"DOC-773",customer:"Packing list",owner:"Lea Santos",status:"Verified",due:"Jun 29"}]},air:{title:"Air Freight",eyebrow:"Freight operations",description:"Airway bill tracking, airport handoffs, customs readiness, and delivery milestones.",icon:"Plane",metrics:[{label:"Flights tracked",value:"142",change:"+18",tone:"blue"},{label:"Arrivals today",value:"37",change:"+5",tone:"green"},{label:"Held shipments",value:"9",change:"-2",tone:"amber"},{label:"Avg clearance",value:"3.2h",change:"-0.4h",tone:"violet"}],work:[{ref:"AWB-889201",customer:"Falcon Pharma",owner:"Yusuf Khan",status:"Landed",due:"Today"},{ref:"AWB-889202",customer:"Iberia Retail",owner:"Ana Lopez",status:"Customs",due:"Today"},{ref:"AWB-889203",customer:"Pearl Devices",owner:"Mina Chen",status:"Departed",due:"Tomorrow"}]},customs:{title:"Customs",eyebrow:"Declaration control",description:"Customs declarations, inspection queues, release events, and authority messages.",icon:"Landmark",metrics:[{label:"Declarations",value:"312",change:"+27",tone:"blue"},{label:"Cleared today",value:"86",change:"+14",tone:"green"},{label:"Held",value:"12",change:"-3",tone:"amber"},{label:"Avg review",value:"2.8h",change:"-0.6h",tone:"violet"}],work:[{ref:"CUS-6201",customer:"Atlas Foods",owner:"Sara Malik",status:"Cleared",due:"Today"},{ref:"CUS-6202",customer:"Iberia Retail",owner:"Ana Lopez",status:"Inspection",due:"Today"},{ref:"CUS-6203",customer:"Falcon Pharma",owner:"Yusuf Khan",status:"Submitted",due:"Tomorrow"}]},sea:{title:"Sea Freight",eyebrow:"Ocean operations",description:"Container milestones, vessel arrivals, demurrage exposure, and port handoffs.",icon:"Ship",metrics:[{label:"Containers",value:"428",change:"+31",tone:"blue"},{label:"Arrivals",value:"19",change:"+4",tone:"green"},{label:"Demurrage risk",value:"7",change:"-2",tone:"amber"},{label:"Port dwell",value:"1.9d",change:"-0.3d",tone:"violet"}],work:[{ref:"SEA-7741",customer:"Blue Harbor",owner:"Lea Santos",status:"At port",due:"Today"},{ref:"SEA-7742",customer:"Nile Trading",owner:"Omar Reyes",status:"Sailing",due:"Jul 02"},{ref:"SEA-7743",customer:"Oceanic Parts",owner:"Nadia Karim",status:"Discharged",due:"Tomorrow"}]},truck:{title:"Trucking",eyebrow:"Road transport",description:"Fleet dispatch, delivery windows, driver assignments, and cross-dock visibility.",icon:"Truck",metrics:[{label:"Active trucks",value:"58",change:"+7",tone:"blue"},{label:"On route",value:"41",change:"+3",tone:"green"},{label:"Delayed stops",value:"6",change:"-2",tone:"amber"},{label:"Utilization",value:"88%",change:"+4%",tone:"violet"}],work:[{ref:"TRK-5401",customer:"Metro Foods",owner:"Hassan Raza",status:"On route",due:"14:30"},{ref:"TRK-5402",customer:"Delta Textiles",owner:"Victor Cruz",status:"Loading",due:"16:00"},{ref:"TRK-5403",customer:"Oceanic Parts",owner:"Nadia Karim",status:"Delivered",due:"Done"}]},warehouse:{title:"Warehouse (WMS)",eyebrow:"Warehouse management",description:"Inbound receipts, put-away, inventory movements, picks, and outbound scans.",icon:"Warehouse",metrics:[{label:"Pallets stored",value:"3,842",change:"+112",tone:"blue"},{label:"Picked today",value:"694",change:"+58",tone:"green"},{label:"Exceptions",value:"14",change:"-6",tone:"amber"},{label:"Dock usage",value:"76%",change:"+5%",tone:"violet"}],work:[{ref:"WMS-1801",customer:"Metro Foods",owner:"Marta Ruiz",status:"Receiving",due:"10:30"},{ref:"WMS-1802",customer:"Pearl Devices",owner:"Mina Chen",status:"Put-away",due:"Today"},{ref:"WMS-1803",customer:"Delta Textiles",owner:"Victor Cruz",status:"Outbound",due:"16:00"}]},cfo:{title:"CFO Dashboard",eyebrow:"Finance control",description:"Receivables, payable exposure, branch profitability, and invoice approvals.",icon:"Wallet",metrics:[{label:"Receivables",value:"$214K",change:"-8%",tone:"green"},{label:"Payables",value:"$96K",change:"+3%",tone:"blue"},{label:"Overdue",value:"$18K",change:"-$6K",tone:"amber"},{label:"Profitability",value:"24%",change:"+2%",tone:"violet"}],work:[{ref:"FIN-901",customer:"Invoice batch",owner:"Elena Rossi",status:"Approved",due:"Today"},{ref:"FIN-902",customer:"Vendor payments",owner:"Bilal Shah",status:"Queued",due:"Tomorrow"},{ref:"FIN-903",customer:"Margin report",owner:"Mark Jensen",status:"Review",due:"Jun 30"}]},backoffice:{title:"Backoffice",eyebrow:"Administrative processing",description:"Internal tasks, document cleanup, branch support, and operational follow-ups.",icon:"FileText",metrics:[{label:"Tasks open",value:"143",change:"-18",tone:"green"},{label:"Documents fixed",value:"72",change:"+21",tone:"blue"},{label:"Waiting input",value:"16",change:"-4",tone:"amber"},{label:"Automation rate",value:"64%",change:"+7%",tone:"violet"}],work:[{ref:"BKO-411",customer:"Invoice cleanup",owner:"Bilal Shah",status:"Active",due:"Today"},{ref:"BKO-412",customer:"Data validation",owner:"Priya Shah",status:"Queued",due:"Tomorrow"},{ref:"BKO-413",customer:"Branch support",owner:"Noor Ali",status:"Review",due:"Jun 29"}]},finance:{title:"Finance",eyebrow:"Finance operations",description:"Invoice issuance, payment matching, customer balances, and branch settlements.",icon:"Wallet",metrics:[{label:"Invoices",value:"516",change:"+44",tone:"blue"},{label:"Collected",value:"$148K",change:"+9%",tone:"green"},{label:"Disputes",value:"8",change:"-2",tone:"amber"},{label:"Matched",value:"92%",change:"+3%",tone:"violet"}],work:[{ref:"PAY-221",customer:"Atlas Foods",owner:"Elena Rossi",status:"Matched",due:"Today"},{ref:"PAY-222",customer:"Falcon Pharma",owner:"Bilal Shah",status:"Pending",due:"Tomorrow"},{ref:"PAY-223",customer:"Blue Harbor",owner:"Mark Jensen",status:"Disputed",due:"Jun 30"}]},ap:{title:"AP Control Tower",eyebrow:"Accounts payable",description:"Vendor bills, approval routes, payment readiness, and exception management.",icon:"ClipboardCheck",metrics:[{label:"Vendor bills",value:"238",change:"+19",tone:"blue"},{label:"Approved",value:"174",change:"+26",tone:"green"},{label:"Exceptions",value:"13",change:"-5",tone:"amber"},{label:"Cycle time",value:"1.6d",change:"-0.2d",tone:"violet"}],work:[{ref:"AP-701",customer:"Port handling bill",owner:"Elena Rossi",status:"Approved",due:"Today"},{ref:"AP-702",customer:"Carrier invoice",owner:"Bilal Shah",status:"Needs review",due:"Tomorrow"},{ref:"AP-703",customer:"Warehouse vendor",owner:"Priya Shah",status:"Queued",due:"Jun 29"}]},hr:{title:"Human Resources",eyebrow:"People operations",description:"Staffing, shift coverage, compliance training, and department onboarding.",icon:"Users",metrics:[{label:"Employees",value:"126",change:"+4",tone:"blue"},{label:"Open roles",value:"9",change:"+2",tone:"violet"},{label:"Training due",value:"17",change:"-6",tone:"amber"},{label:"Coverage",value:"98%",change:"+1%",tone:"green"}],work:[{ref:"HR-330",customer:"Broker onboarding",owner:"Fatima Noor",status:"In progress",due:"Jul 03"},{ref:"HR-331",customer:"COO shift roster",owner:"Daniel Meyer",status:"Ready",due:"Today"},{ref:"HR-332",customer:"Safety training",owner:"Priya Shah",status:"Pending",due:"Jun 28"}]},affairs:{title:"Corporate Affairs",eyebrow:"Governance",description:"Licenses, compliance renewals, legal tasks, and authority correspondence.",icon:"Landmark",metrics:[{label:"Licenses",value:"24",change:"0",tone:"blue"},{label:"Renewals",value:"5",change:"-1",tone:"amber"},{label:"Compliant",value:"100%",change:"OK",tone:"green"},{label:"Cases",value:"3",change:"-2",tone:"violet"}],work:[{ref:"CA-711",customer:"Free zone renewal",owner:"Maya Hall",status:"Submitted",due:"Jul 05"},{ref:"CA-712",customer:"Authority letter",owner:"Omar Reyes",status:"Draft",due:"Today"},{ref:"CA-713",customer:"Policy review",owner:"Ana Lopez",status:"Approved",due:"Done"}]},cco:{title:"CCO Dashboard",eyebrow:"Commercial growth",description:"Pipeline, conversion, account expansion, and commercial team performance.",icon:"TrendingUp",metrics:[{label:"Pipeline",value:"$1.8M",change:"+11%",tone:"green"},{label:"New leads",value:"64",change:"+14",tone:"blue"},{label:"Conversion",value:"28%",change:"+3%",tone:"violet"},{label:"At risk",value:"4",change:"-1",tone:"amber"}],work:[{ref:"COM-490",customer:"Global Foods RFP",owner:"Lina Park",status:"Proposal",due:"Jun 29"},{ref:"COM-491",customer:"Retail expansion",owner:"Ahmed Noor",status:"Negotiation",due:"Jul 02"},{ref:"COM-492",customer:"Renewal pack",owner:"Mark Jensen",status:"Ready",due:"Today"}]},marketing:{title:"Marketing",eyebrow:"Campaign workspace",description:"Campaign planning, website requests, lead sources, and content approvals.",icon:"Globe",metrics:[{label:"Campaigns",value:"12",change:"+2",tone:"blue"},{label:"Inbound leads",value:"138",change:"+24",tone:"green"},{label:"Approvals",value:"6",change:"-3",tone:"amber"},{label:"Traffic",value:"42K",change:"+18%",tone:"violet"}],work:[{ref:"MKT-221",customer:"Air freight landing page",owner:"Sofia Lane",status:"Review",due:"Today"},{ref:"MKT-222",customer:"LinkedIn campaign",owner:"Bilal Shah",status:"Live",due:"Active"},{ref:"MKT-223",customer:"Case study",owner:"Mina Chen",status:"Draft",due:"Jul 04"}]},sales:{title:"Sales",eyebrow:"Sales workspace",description:"Opportunities, quotes, account activities, and follow-up actions for commercial teams.",icon:"Briefcase",metrics:[{label:"Quotes sent",value:"78",change:"+17",tone:"blue"},{label:"Won deals",value:"21",change:"+6",tone:"green"},{label:"Follow-ups",value:"34",change:"-8",tone:"amber"},{label:"Win rate",value:"31%",change:"+4%",tone:"violet"}],work:[{ref:"SAL-310",customer:"Metro Foods",owner:"Lina Park",status:"Quoted",due:"Today"},{ref:"SAL-311",customer:"Global Foods RFP",owner:"Ahmed Noor",status:"Negotiation",due:"Jul 02"},{ref:"SAL-312",customer:"Pearl Devices",owner:"Sofia Lane",status:"Follow-up",due:"Tomorrow"}]},admin:{title:"Admin",eyebrow:"System administration",description:"Roles, permissions, workspace controls, audit activity, and access governance.",icon:"Lock",metrics:[{label:"Active users",value:"126",change:"+4",tone:"blue"},{label:"Roles",value:"18",change:"+1",tone:"violet"},{label:"Access alerts",value:"3",change:"-2",tone:"amber"},{label:"Healthy checks",value:"99%",change:"OK",tone:"green"}],work:[{ref:"ADM-101",customer:"Role update",owner:"Mark Jensen",status:"Applied",due:"Today"},{ref:"ADM-102",customer:"New branch user",owner:"Fatima Noor",status:"Pending",due:"Tomorrow"},{ref:"ADM-103",customer:"Audit review",owner:"Daniel Meyer",status:"Scheduled",due:"Jul 01"}]},general:{title:"General (shared)",eyebrow:"Shared settings",description:"Shared references, workspace defaults, master data, and team-level configuration.",icon:"Settings",metrics:[{label:"Shared lists",value:"42",change:"+3",tone:"blue"},{label:"Automations",value:"16",change:"+2",tone:"green"},{label:"Draft changes",value:"5",change:"-1",tone:"amber"},{label:"Sync status",value:"Live",change:"OK",tone:"violet"}],work:[{ref:"GEN-501",customer:"Port master data",owner:"Marta Ruiz",status:"Updated",due:"Today"},{ref:"GEN-502",customer:"Team defaults",owner:"Noor Ali",status:"Draft",due:"Tomorrow"},{ref:"GEN-503",customer:"Notification rules",owner:"Priya Shah",status:"Active",due:"Done"}]},public:{title:"Public website",eyebrow:"Customer portal",description:"Public-facing service pages, contact forms, quote requests, and live tracking entry points.",icon:"Globe",metrics:[{label:"Visitors",value:"18.4K",change:"+22%",tone:"green"},{label:"Quote requests",value:"94",change:"+16",tone:"blue"},{label:"Open forms",value:"11",change:"-5",tone:"amber"},{label:"Uptime",value:"99.9%",change:"OK",tone:"violet"}],work:[{ref:"WEB-801",customer:"Quote form",owner:"Sofia Lane",status:"Live",due:"Active"},{ref:"WEB-802",customer:"Tracking page",owner:"Marta Ruiz",status:"Updated",due:"Today"},{ref:"WEB-803",customer:"Service content",owner:"Lina Park",status:"Draft",due:"Jul 01"}]}},fs=je.flatMap(a=>a.children?.map(s=>({...s,parentId:a.id,parentLabel:a.label,parentIcon:a.icon}))??[]);function Cs(a){const s=fs.find(o=>o.id===a),t=je.find(o=>o.id===a),n=s?.label??t?.label??"Workspace",r=s?.parentLabel??t?.section??"Workspace",i=s?.icon??t?.icon??"LayoutGrid",l=a.toUpperCase().replace(/[^A-Z0-9]+/g,"-").slice(0,10);return{title:n,eyebrow:s?`${r} module`:"Workspace module",description:`${n} workspace for ${r.toLowerCase()} records, operational tracking, approvals, and team follow-up.`,icon:i,metrics:[{label:"Open records",value:String(42+a.length*3),change:"+8",tone:"blue"},{label:"Completed",value:String(18+a.length*2),change:"+5",tone:"green"},{label:"Needs review",value:String(3+a.length%7),change:"-2",tone:"amber"},{label:"SLA health",value:`${90+a.length%8}%`,change:"+1.2%",tone:"violet"}],work:[{ref:`${l}-101`,customer:`${n} queue`,owner:"Sara Malik",status:"Active",due:"Today"},{ref:`${l}-102`,customer:`${r} follow-up`,owner:"Omar Reyes",status:"Review",due:"Tomorrow"},{ref:`${l}-103`,customer:`${n} report`,owner:"Lea Santos",status:"Ready",due:"Jun 30"}]}}function ks(a){return vs[a]??Cs(a)}function ws(a,s){return a.id===s||!!a.children?.some(t=>t.id===s)}function sa({compact:a=!1}){return e.jsxs("svg",{className:a?"ycc-prototype-logo ycc-prototype-logo--compact":"ycc-prototype-logo",viewBox:"0 0 300 110","aria-label":"YCC logo",role:"img",children:[e.jsx("path",{className:"ycc-prototype-logo__shape",d:"M17 55C34 24 83 9 161 6C100 14 57 29 38 55C57 81 100 96 161 104C83 101 34 86 17 55Z"}),e.jsx("text",{className:"ycc-prototype-logo__letters",x:"56",y:"79",children:"YCC"})]})}function Ns({item:a,activePage:s,open:t,onSelect:n,onToggle:r}){const i=a.id===s,l=ws(a,s),o=!!a.children?.length;return e.jsxs(e.Fragment,{children:[a.section?e.jsx("div",{className:"prototype-sidebar__section",children:a.section}):null,e.jsxs("button",{type:"button",className:`prototype-sidebar__item${i?" prototype-sidebar__item--active":""}${l&&!i?" prototype-sidebar__item--expanded":""}${a.promoted?" prototype-sidebar__item--promoted":""}`,onClick:()=>{n(a.id),o&&r(a.id)},"aria-current":a.id===s?"page":void 0,"aria-expanded":o?t:void 0,children:[e.jsx(c,{name:a.icon,size:18}),e.jsx("span",{children:a.label}),o?e.jsx(c,{name:t?"ChevronDown":"ChevronRight",size:16,className:"prototype-sidebar__item-chevron"}):null,a.external?e.jsx(c,{name:"ArrowRight",size:16,className:"prototype-sidebar__item-chevron"}):null]}),o&&t?e.jsx("div",{className:"prototype-sidebar__submenu",role:"group","aria-label":`${a.label} pages`,children:a.children?.map(d=>e.jsxs("button",{type:"button",className:`prototype-sidebar__subitem${s===d.id?" prototype-sidebar__subitem--active":""}`,onClick:()=>n(d.id),"aria-current":s===d.id?"page":void 0,children:[e.jsx(c,{name:d.icon,size:18}),e.jsx("span",{children:d.label})]},d.id))}):null]})}function Ss({activePage:a,branch:s,branches:t,items:n,branchOpen:r,openMenus:i,onSelectPage:l,onToggleBranchMenu:o,onSelectBranch:d,onToggleMenu:p}){return e.jsxs("aside",{className:"prototype-sidebar",children:[e.jsx("button",{type:"button",className:"prototype-sidebar__logo",onClick:()=>l("home"),"aria-label":"Go to Home",children:e.jsx(sa,{})}),e.jsxs("div",{className:"prototype-sidebar__workspace",children:[e.jsxs("div",{className:"prototype-sidebar__workspace-pill",children:[e.jsx(c,{name:"Lock",size:15}),e.jsx("span",{children:"Administrator workspace"})]}),e.jsxs("button",{type:"button",className:"prototype-sidebar__branch",onClick:o,"aria-expanded":r,"aria-haspopup":"listbox",children:[e.jsx(c,{name:"Globe",size:15}),e.jsx("span",{children:s}),e.jsx(c,{name:"ChevronDown",size:16})]}),r?e.jsx("div",{className:"prototype-sidebar__branch-menu",role:"listbox","aria-label":"Select workspace",children:t.map(u=>e.jsxs("button",{type:"button",role:"option","aria-selected":u===s,className:"prototype-sidebar__branch-option",onClick:()=>d(u),children:[e.jsx("span",{className:"prototype-sidebar__branch-check",children:u===s?"✓":""}),e.jsx("span",{children:u})]},u))}):null]}),e.jsx("nav",{className:"prototype-sidebar__nav","aria-label":"Workspace navigation",children:n.map(u=>e.jsx(Ns,{item:u,activePage:a,open:i.includes(u.id),onSelect:l,onToggle:p},u.id))}),e.jsxs("div",{className:"prototype-sidebar__footer",children:["© Customs Gateways LLC-FZ",e.jsx("br",{}),"White-label platform"]})]})}function As({query:a,language:s,notifications:t,userMenuOpen:n,users:r,activeUser:i,onQueryChange:l,onToggleLanguage:o,onToggleNotifications:d,onToggleUserMenu:p,onSelectUser:u}){return e.jsxs("header",{className:"prototype-topbar",children:[e.jsxs("label",{className:"prototype-topbar__search",children:[e.jsx(c,{name:"Search",size:20}),e.jsx("input",{value:a,onChange:m=>l(m.target.value),placeholder:"Search here...","aria-label":"Search"})]}),e.jsxs("div",{className:"prototype-topbar__actions",children:[e.jsxs("button",{type:"button",className:"prototype-topbar__language",onClick:o,children:[e.jsx(c,{name:"Globe",size:18}),e.jsx("span",{children:s}),e.jsx(c,{name:"ChevronDown",size:16})]}),e.jsxs("button",{type:"button",className:"prototype-topbar__bell","aria-label":"Notifications",onClick:d,children:[e.jsx(c,{name:"Bell",size:20}),e.jsx("span",{})]}),e.jsxs("button",{type:"button",className:"prototype-topbar__user",onClick:p,children:[e.jsx("div",{className:"prototype-topbar__avatar",children:i.name.charAt(0)}),e.jsxs("div",{children:[e.jsx("strong",{children:i.name}),e.jsx("span",{children:i.role})]}),e.jsx(c,{name:"ChevronDown",size:16})]})]}),t?e.jsxs("div",{className:"prototype-popover prototype-popover--notifications",children:[e.jsx("strong",{children:"Notifications"}),e.jsx("p",{children:"3 shipment alerts need review."}),e.jsx("p",{children:"AWB-889202 moved to customs."}),e.jsx("p",{children:"TRK-5401 is 12 minutes ahead of schedule."})]}):null,n?e.jsxs("div",{className:"prototype-popover prototype-popover--user",children:[e.jsx("div",{className:"prototype-login-switcher__title",children:"Switch login (demo)"}),e.jsx("div",{className:"prototype-login-switcher__list",children:r.map(m=>{const k=m.name===i.name;return e.jsxs("button",{type:"button",className:`prototype-login-switcher__person${k?" prototype-login-switcher__person--selected":""}`,onClick:()=>u(m),children:[e.jsx("span",{className:"prototype-login-switcher__avatar",children:m.name.charAt(0)}),e.jsxs("span",{className:"prototype-login-switcher__identity",children:[e.jsx("strong",{children:m.name}),e.jsx("span",{children:m.role})]}),k?e.jsx(c,{name:"Check",size:18,className:"prototype-login-switcher__check"}):null]},m.name)})})]}):null]})}function _s({onOpenAir:a,onOpenFiles:s}){return e.jsxs("section",{className:"prototype-welcome","aria-labelledby":"prototype-title",children:[e.jsx("div",{className:"prototype-welcome__mark",children:e.jsx(sa,{compact:!0})}),e.jsx("h1",{id:"prototype-title",children:"Your Cargo Contact"}),e.jsx("p",{className:"prototype-welcome__kicker",children:"Customs · Freight · Warehousing"}),e.jsx("p",{className:"prototype-welcome__copy",children:"Welcome, Mark. One platform for declarations, freight files, warehousing and back-office across every department."}),e.jsxs("div",{className:"prototype-welcome__actions",children:[e.jsx("button",{type:"button",className:"prototype-action prototype-action--primary",onClick:a,children:"Open Air Freight"}),e.jsx("button",{type:"button",className:"prototype-action",onClick:s,children:"Review Files"})]}),e.jsx("p",{className:"prototype-welcome__copyright",children:"© Customs Gateways LLC-FZ · White-label platform"})]})}function Ms({metric:a}){return e.jsxs("article",{className:`prototype-metric prototype-metric--${a.tone}`,children:[e.jsx("span",{children:a.label}),e.jsx("strong",{children:a.value}),e.jsx("em",{children:a.change})]})}function Ts({rows:a,onRowAction:s}){return e.jsx("div",{className:"prototype-table-wrap",children:e.jsxs("table",{className:"prototype-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Reference"}),e.jsx("th",{children:"Customer"}),e.jsx("th",{children:"Owner"}),e.jsx("th",{children:"Status"}),e.jsx("th",{children:"Due"}),e.jsx("th",{children:"Action"})]})}),e.jsx("tbody",{children:a.map(t=>e.jsxs("tr",{children:[e.jsx("td",{children:t.ref}),e.jsx("td",{children:t.customer}),e.jsx("td",{children:t.owner}),e.jsx("td",{children:e.jsx("span",{className:"prototype-status",children:t.status})}),e.jsx("td",{children:t.due}),e.jsx("td",{children:e.jsx("button",{type:"button",className:"prototype-mini-button",onClick:()=>s(t),children:"Open"})})]},t.ref))})]})})}function Fs({data:a,activePage:s,filteredWork:t,message:n,onRowAction:r,onCreateShipment:i,onRefresh:l}){return e.jsxs("section",{className:"prototype-dashboard","aria-labelledby":"prototype-page-title",children:[e.jsxs("div",{className:"prototype-dashboard__head",children:[e.jsxs("div",{children:[e.jsx("p",{children:a.eyebrow}),e.jsx("h1",{id:"prototype-page-title",children:a.title}),e.jsx("span",{children:a.description})]}),e.jsx("div",{className:"prototype-dashboard__icon",children:e.jsx(c,{name:a.icon,size:30})})]}),n?e.jsx("div",{className:"prototype-feedback",children:n}):null,e.jsx("div",{className:"prototype-metrics",children:a.metrics.map(o=>e.jsx(Ms,{metric:o},o.label))}),e.jsxs("div",{className:"prototype-panel",children:[e.jsxs("div",{className:"prototype-panel__head",children:[e.jsxs("div",{children:[e.jsx("strong",{children:s==="files"?"Document queue":"Active work"}),e.jsxs("span",{children:[t.length," records shown"]})]}),e.jsxs("div",{className:"prototype-panel__actions",children:[e.jsxs("button",{type:"button",className:"prototype-action",onClick:l,children:[e.jsx(c,{name:"RefreshCw",size:15}),"Refresh"]}),e.jsxs("button",{type:"button",className:"prototype-action prototype-action--primary",onClick:i,children:[e.jsx(c,{name:"Plus",size:15}),"New file"]})]})]}),e.jsx(Ts,{rows:t,onRowAction:r})]})]})}function ta({kind:a}){const s=a==="ceo";return e.jsxs("div",{className:"executive-banner",children:[e.jsxs("div",{className:"executive-banner__title",children:[e.jsx(c,{name:s?"TrendingUp":"Gauge",size:15}),e.jsx("strong",{children:s?"Outcomes, not tasks":"Operations overview"}),s?null:e.jsx("span",{children:"COO-DASHBOARD"})]}),e.jsx("p",{children:s?"Volumes and margin per mode, what we move and who drives the margin - plus only the COO/CFO/CCO items that have been outstanding too long. Figures are illustrative in this prototype.":"Live parameters and to-do items across Air Freight, Customs, Sea Freight, Trucking and Warehouse (WMS)."})]})}function H({title:a,section:s}){return e.jsxs("div",{className:"executive-heading",children:[e.jsxs("div",{className:"executive-breadcrumb",children:[e.jsx("span",{children:"Home"}),s?e.jsxs(e.Fragment,{children:[e.jsx(c,{name:"ChevronRight",size:12}),e.jsx("span",{children:s})]}):null,e.jsx(c,{name:"ChevronRight",size:12}),e.jsx("span",{children:a})]}),e.jsx("h1",{children:a})]})}const Ds=[["Freight files","6","dark"],["Manifests in progress","6","blue"],["Inspections open","3","orange"],["Declarations rejected","3","red"],["WMS on hold","3","red"],["Outbound open","4","violet"]],Ls=[{title:"Air Freight",page:"air",stats:[["Files","2","dark"],["In progress","1","blue"],["Cleared","0","green"]]},{title:"Customs",page:"customs",stats:[["Manifests","6","dark"],["Inspections","3","orange"],["Rejected","3","red"]]},{title:"Sea Freight",page:"sea",stats:[["Files","2","dark"],["In progress","1","blue"],["Cleared","0","green"]]},{title:"Trucking",page:"truck",stats:[["Files","2","dark"],["In progress","0","blue"],["Cleared","1","green"]]},{title:"Warehouse (WMS)",page:"warehouse",stats:[["SKUs","8","dark"],["On hold","3","red"],["Outbound","4","violet"]]}],zs=[["1","Sea Freight: file(s) in draft to complete","sea"],["1","Trucking: file(s) in draft to complete","truck"],["2","Customs: new manifest(s) awaiting audit / compliance","customs"],["3","Customs: inspection(s) awaiting value declaration","customs"]];function Bs({onOpen:a}){return e.jsxs("section",{className:"executive-page",children:[e.jsx(H,{title:"COO Dashboard",section:"Operations"}),e.jsx(ta,{kind:"coo"}),e.jsx("div",{className:"coo-kpi-grid",children:Ds.map(([s,t,n])=>e.jsxs("article",{className:"coo-kpi",children:[e.jsx("span",{children:s}),e.jsx("strong",{className:`exec-tone-${n}`,children:t})]},s))}),e.jsx("div",{className:"coo-module-grid",children:Ls.map(s=>e.jsxs("article",{className:"coo-module-card",children:[e.jsxs("div",{className:"coo-module-card__head",children:[e.jsx("h2",{children:s.title}),e.jsxs("button",{type:"button",onClick:()=>a(s.page),children:["Open ",e.jsx(c,{name:"ArrowRight",size:13})]})]}),e.jsx("div",{className:"coo-module-card__stats",children:s.stats.map(([t,n,r])=>e.jsxs("div",{className:"coo-module-stat",children:[e.jsx("span",{children:t}),e.jsx("strong",{className:`exec-tone-${r}`,children:n})]},t))})]},s.title))}),e.jsx("h2",{className:"executive-section-title",children:"Operations to-do"}),e.jsx("div",{className:"todo-list",children:zs.map(([s,t,n])=>e.jsxs("div",{className:"todo-row",children:[e.jsx("strong",{children:s}),e.jsx("span",{children:t}),e.jsxs("button",{type:"button",onClick:()=>a(n),children:["Open ",e.jsx(c,{name:"ArrowRight",size:13})]})]},t))})]})}const Os=[{title:"Air freight",icon:"Plane",gpm:"24.6% GPM",tone:"green",inbound:"412",outbound:"388",page:"air"},{title:"Sea freight",icon:"Ship",gpm:"18.2% GPM",tone:"orange",inbound:"96",outbound:"74",page:"sea"},{title:"Trucking",icon:"Truck",gpm:"14.1% GPM",tone:"orange",inbound:"210",outbound:"240",page:"truck"}],Rs=[["COO","Customs clearance backlog not cleared","6d","hot"],["COO","Inbound shipments stuck >1 week in the loads","8d","hot"],["CFO","Supplier invoices >30 days awaiting approval","12d","danger"],["CCO","Quotations awaiting response","5d","muted"]],Es=[["Electronics & components",22],["Machinery & parts",18],["Perishables & food",15],["Pharma & healthcare",12],["Apparel & textiles",9]],$s=[["Lumitech Electronics B.V.",14.2],["Gulf Components Trading",11.8],["Pacific Foods Ltd",9.6],["NorthSea Marine BV",7.4],["Apex Robotics",6.1]];function $e({title:a,icon:s,rows:t,footer:n}){return e.jsxs("article",{className:"exec-bar-card",children:[e.jsxs("h2",{children:[e.jsx(c,{name:s,size:15})," ",a]}),t.map(([r,i])=>e.jsxs("div",{className:"exec-bar-row",children:[e.jsxs("div",{children:[e.jsx("strong",{children:r}),e.jsxs("span",{children:[i,"%"]})]}),e.jsx("div",{className:"exec-bar-track",children:e.jsx("span",{style:{width:`${Math.min(i*4,100)}%`}})})]},r)),e.jsx("p",{children:n})]})}function Ps({onOpen:a}){return e.jsxs("section",{className:"executive-page",children:[e.jsx(H,{title:"CEO Dashboard"}),e.jsx(ta,{kind:"ceo"}),e.jsx("div",{className:"ceo-mode-grid",children:Os.map(s=>e.jsxs("article",{className:"ceo-mode-card",children:[e.jsxs("div",{className:"ceo-mode-card__head",children:[e.jsx("span",{children:e.jsx(c,{name:s.icon,size:16})}),e.jsx("h2",{children:s.title}),e.jsx("em",{className:`ceo-gpm ceo-gpm--${s.tone}`,children:s.gpm})]}),e.jsxs("div",{className:"ceo-mode-card__stats",children:[e.jsxs("div",{children:[e.jsx("strong",{children:s.inbound}),e.jsx("span",{children:"Inbound"})]}),e.jsxs("div",{children:[e.jsx("strong",{children:s.outbound}),e.jsx("span",{children:"Outbound"})]})]}),e.jsxs("button",{type:"button",onClick:()=>a(s.page),children:["Open dashboard ",e.jsx(c,{name:"ArrowRight",size:13})]})]},s.title))}),e.jsxs("article",{className:"escalation-card",children:[e.jsxs("h2",{children:[e.jsx(c,{name:"AlertTriangle",size:15})," Escalations - outstanding too long on COO / CFO / CCO"]}),Rs.map(([s,t,n,r])=>e.jsxs("div",{className:"escalation-row",children:[e.jsx("strong",{className:`escalation-pill escalation-pill--${s.toLowerCase()}`,children:s}),e.jsx("span",{children:t}),e.jsxs("em",{className:`escalation-days escalation-days--${r}`,children:[e.jsx(c,{name:"Clock",size:12})," ",n]}),e.jsx(c,{name:"ArrowRight",size:14})]},t)),e.jsx("p",{children:"Only items past their threshold surface here; the CEO doesn't see the full task lists. Each row opens the owning dashboard."})]}),e.jsxs("div",{className:"exec-bottom-grid",children:[e.jsx($e,{title:"Top 5 goods categories",icon:"Boxes",rows:Es,footer:"High-level categories by share of shipments moved."}),e.jsx($e,{title:"Top 5 customers - share of GPM",icon:"Users",rows:$s,footer:"Share of total gross profit margin contributed by each customer."})]})]})}const Pe=[{file:"AF-2026-00142",service:"Air Freight",dir:"Import",customer:"TechShop BV",route:"PVG - Shanghai -> AMS - Amsterdam",status:"In progress"},{file:"AF-2026-00151",service:"Air Freight",dir:"Export",customer:"Dutch Flowers BV",route:"AMS - Amsterdam -> NRT - Tokyo",status:"Invoiced"},{file:"AF-202606044905",service:"Air Freight",dir:"Export",customer:"Uitvaart Service Nederland BV",route:"AMS - Amsterdam, Schiphol -> ASR - Kayseri",status:"Invoiced"},{file:"SF-2026-00088",service:"Sea Freight",dir:"Import",customer:"FashionHub",route:"NSA -> RTM",status:"In progress"},{file:"SF-2026-00090",service:"Sea Freight",dir:"Export",customer:"AgriExport NL",route:"RTM -> LOS",status:"Draft"},{file:"TR-2026-00210",service:"Trucking",dir:"Import",customer:"FashionHub",route:"IST -> AMS",status:"Cleared"},{file:"TR-2026-00214",service:"Trucking",dir:"Export",customer:"GlowStore",route:"TIL -> BER",status:"Draft"},{file:"CB-2026-00024",service:"Customs - Bulk",dir:"Import",customer:"GadgetHub",route:"Consolidated e-commerce",status:"In progress"},{file:"CS-2026-00017",service:"Customs - Single",dir:"Import",customer:"MediSupply",route:"-",status:"Docs ready"}],Is=["All","Air","Sea","Truck","Cust. Bulk","Cust. Single"];function Hs(a,s){return s==="All"?!0:s==="Air"?a.service==="Air Freight":s==="Sea"?a.service==="Sea Freight":s==="Truck"?a.service==="Trucking":s==="Cust. Bulk"?a.service==="Customs - Bulk":a.service==="Customs - Single"}function Vs(){const[a,s]=h.useState(""),[t,n]=h.useState("All"),r=Pe.filter(i=>{const l=a.trim().toLowerCase(),o=`${i.file} ${i.service} ${i.dir} ${i.customer} ${i.route} ${i.status}`.toLowerCase();return Hs(i,t)&&(!l||o.includes(l))});return e.jsxs("section",{className:"files-page",children:[e.jsx(H,{title:"All files",section:"Operations"}),e.jsx("h1",{className:"files-page__title",children:"All files - every modality"}),e.jsxs("div",{className:"files-banner",children:[e.jsxs("div",{children:[e.jsx(c,{name:"LayoutGrid",size:14}),e.jsx("strong",{children:"One overview across Air, Sea, Trucking & Customs"})]}),e.jsx("p",{children:"Search every file regardless of modality and open it directly - like the classic single work list, but with each type keeping its own continuous number."})]}),e.jsxs("div",{className:"files-toolbar",children:[e.jsxs("label",{className:"files-search",children:[e.jsx(c,{name:"Search",size:15}),e.jsx("input",{value:a,onChange:i=>s(i.target.value),placeholder:"Search all files..."})]}),e.jsx("div",{className:"files-tabs",children:Is.map(i=>e.jsx("button",{type:"button",className:t===i?"files-tab files-tab--active":"files-tab",onClick:()=>n(i),children:i},i))})]}),e.jsx("div",{className:"files-table-card",children:e.jsxs("table",{className:"files-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"File"}),e.jsx("th",{children:"Service"}),e.jsx("th",{children:"Dir"}),e.jsx("th",{children:"Customer"}),e.jsx("th",{children:"Route"}),e.jsx("th",{children:"Status"})]})}),e.jsx("tbody",{children:r.map(i=>e.jsxs("tr",{children:[e.jsx("td",{className:"files-table__file",children:i.file}),e.jsx("td",{children:i.service}),e.jsx("td",{children:e.jsx("span",{className:`files-pill files-pill--${i.dir.toLowerCase()}`,children:i.dir})}),e.jsx("td",{className:"files-table__customer",children:i.customer}),e.jsx("td",{children:i.route}),e.jsx("td",{children:e.jsx("span",{className:`files-status files-status--${i.status.toLowerCase().replace(/\s+/g,"-")}`,children:i.status})})]},i.file))})]})}),e.jsxs("p",{className:"files-page__meta",children:[r.length," of ",Pe.length," files across all modalities."]})]})}const Ws=[{label:"Open files",value:"12",tone:"blue"},{label:"Quotes pending",value:"4",tone:"orange"},{label:"Departures today",value:"7",tone:"green"},{label:"Security checks",value:"3",tone:"violet"}],Gs=[["AF-2026-00142","TechShop BV","PVG -> AMS","In progress"],["AF-2026-00151","Dutch Flowers BV","AMS -> NRT","Invoiced"],["AF-202606044905","Uitvaart Service Nederland BV","AMS -> ASR","Invoiced"],["AF-2026-00168","MediSupply","DXB -> AMS","Docs ready"]];function Ks({onOpen:a}){return e.jsxs("section",{className:"air-page",children:[e.jsx(H,{title:"Air Freight Dashboard",section:"Operations"}),e.jsxs("div",{className:"files-banner",children:[e.jsxs("div",{children:[e.jsx(c,{name:"Plane",size:14}),e.jsx("strong",{children:"Air Freight operations"})]}),e.jsx("p",{children:"Follow quotations, airway bill files, warehouse handoffs, track & trace updates and security checks from one dashboard."})]}),e.jsx("div",{className:"air-card-grid",children:Ws.map(s=>e.jsxs("article",{className:"air-stat-card",children:[e.jsx("span",{children:s.label}),e.jsx("strong",{className:`exec-tone-${s.tone}`,children:s.value})]},s.label))}),e.jsx("div",{className:"air-module-grid",children:[["Quotations","air-quotations","FileText"],["Files","air-files","Plane"],["Warehouse","air-warehouse","Warehouse"],["Track & trace","air-track-trace","ScanSearch"],["AWB stock","air-awb-stock","Hash"],["Security (RA/KC)","air-security","ShieldCheck"]].map(([s,t,n])=>e.jsxs("button",{type:"button",className:"air-module-button",onClick:()=>a(t),children:[e.jsx(c,{name:n,size:16}),e.jsx("span",{children:s}),e.jsx(c,{name:"ArrowRight",size:13})]},t))}),e.jsxs("article",{className:"files-table-card",children:[e.jsx("div",{className:"air-table-title",children:"Recent Air Freight files"}),e.jsxs("table",{className:"files-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"File"}),e.jsx("th",{children:"Customer"}),e.jsx("th",{children:"Route"}),e.jsx("th",{children:"Status"})]})}),e.jsx("tbody",{children:Gs.map(([s,t,n,r])=>e.jsxs("tr",{children:[e.jsx("td",{className:"files-table__file",children:s}),e.jsx("td",{className:"files-table__customer",children:t}),e.jsx("td",{children:n}),e.jsx("td",{children:e.jsx("span",{className:`files-status files-status--${r.toLowerCase().replace(/\s+/g,"-")}`,children:r})})]},s))})]})]})]})}const Us=[["Plane","Inbound: Flight arrived · 176-9001 2234 (Gulf Components Trading)"],["FileCheck","Inbound: Released (NoA) · 020-4456 7781 (NorthSea Marine BV)"],["Warehouse","Inbound: Arrived at YCC · 618-3321 0098 (Pacific Foods Ltd)"],["Truck","Outbound: Handler arrived · WH-26-0002"],["Boxes","Outbound: Loaded · WH-26-0001 (176-1234 5675)"]],qs=[{awb:"176-9001 2234",customer:"Gulf Components Trading · DXB -> EK149 · ETA 12 Jun 14:20",status:"Expected",done:1,action:"Confirm: Flight arrived",update:"Key milestones"},{awb:"020-4456 7781",customer:"NorthSea Marine BV · JFK -> LH405 · ETA 12 Jun 09:05",status:"Flight arrived",done:2,action:"Confirm: Released (NoA)",update:"All updates"},{awb:"618-3321 0098",customer:"Pacific Foods Ltd · SIN -> SQ338 · ETA 11 Jun 22:40",status:"Collected",done:4,action:"Confirm: Arrived at YCC",update:"No updates"}];function Ys(){const a=["Expected","Flight arrived","Released (NoA)","Collected","Arrived at YCC","Left YCC"];return e.jsxs("section",{className:"air-detail-page",children:[e.jsx(H,{title:"Track & trace",section:"Air Freight"}),e.jsx("div",{className:"air-summary-grid air-summary-grid--four",children:[["Inbound active","3","blue"],["Awaiting NoA","1","orange"],["Outbound in transit","2","violet"],["Open actions","5","red"]].map(([s,t,n])=>e.jsxs("article",{className:"air-summary-card",children:[e.jsx("span",{children:s}),e.jsx("strong",{className:`exec-tone-${n}`,children:t})]},s))}),e.jsxs("article",{className:"air-panel",children:[e.jsxs("h2",{children:[e.jsx(c,{name:"Activity",size:14})," Operator actions / triggers"]}),e.jsx("div",{className:"trigger-list",children:Us.map(([s,t])=>e.jsxs("button",{type:"button",className:"trigger-row",children:[e.jsx("span",{children:e.jsx(c,{name:s,size:14})}),e.jsx("strong",{children:t}),e.jsx(c,{name:"ArrowRight",size:13})]},t))}),e.jsx("p",{children:"This feed also surfaces on the Air Freight dashboard so the operator starts the day here."})]}),e.jsxs("div",{className:"track-toolbar",children:[e.jsxs("div",{className:"track-tabs",children:[e.jsx("button",{type:"button",className:"track-tab track-tab--active",children:"Inbound"}),e.jsx("button",{type:"button",className:"track-tab",children:"Outbound"}),e.jsxs("button",{type:"button",className:"track-tab",children:["NoA inbox ",e.jsx("span",{children:"3"})]})]}),e.jsxs("label",{className:"track-search",children:[e.jsx(c,{name:"Search",size:13}),e.jsx("input",{placeholder:"Search AWB / custom"})]})]}),e.jsxs("article",{className:"air-panel milestone-card",children:[e.jsx("h2",{children:"Inbound - import milestones"}),qs.map(s=>e.jsxs("div",{className:"milestone-row",children:[e.jsxs("div",{className:"milestone-head",children:[e.jsx("span",{className:"shipment-icon",children:e.jsx(c,{name:"Plane",size:17})}),e.jsxs("div",{children:[e.jsx("strong",{children:s.awb}),e.jsx("em",{children:s.status}),e.jsx("p",{children:s.customer})]}),e.jsx("small",{children:s.update})]}),e.jsx("div",{className:"milestone-line",children:a.map((t,n)=>e.jsxs("div",{className:n<s.done?"milestone-step milestone-step--done":"milestone-step",children:[e.jsx("span",{}),e.jsx("small",{children:t})]},t))}),e.jsxs("div",{className:"milestone-actions",children:[e.jsxs("button",{type:"button",className:"air-action-primary",children:[e.jsx(c,{name:"ArrowRight",size:13})," ",s.action]}),e.jsxs("button",{type:"button",className:"air-action-secondary",children:[e.jsx(c,{name:"Bell",size:13})," Notify customer"]})]})]},s.awb)),e.jsx("p",{children:'"Released (NoA)" is the Notice of Arrival. "Arrived at YCC" feeds the warehouse intake.'})]})]})}function Js(){const a=[["Turkish Airlines (TK)","136","140"],["KLM (KL)","99","100"],["Emirates SkyCargo (EK)","199","200"],["Lufthansa Cargo (LH)","10","10"]],s=[["AMS","195","200"],["LGG","40","40"],["DXB","199","200"],["Global Pool","10","10"]],t=[["TK 235 · AMS","96","0.2","480d"],["KL 074 · AMS","99","0.2","495d"],["TK 235 · LGG","40","0.2","200d"],["EK 176 · DXB","199","0.2","995d"],["LH 020 · Global Pool","10","0.2","50d"]];return e.jsxs("section",{className:"air-detail-page",children:[e.jsxs("div",{className:"air-page-titlebar",children:[e.jsx(H,{title:"AWB Stock Management",section:"Air Freight"}),e.jsx("div",{className:"awb-tabs",children:["Dashboard","Stock ranges","Allocations","Alerts","Transfers"].map((n,r)=>e.jsx("button",{type:"button",className:r===0?"awb-tab awb-tab--active":"awb-tab",children:n},n))})]}),e.jsxs("div",{className:"files-banner",children:[e.jsxs("div",{children:[e.jsx(c,{name:"Hash",size:15}),e.jsx("strong",{children:"One globally controlled AWB inventory"})]}),e.jsx("p",{children:"Register airline stock ranges, allocate the next valid AWB on booking, and track each number from allocation to invoicing. Numbers are validated against the IATA Modulo-7 check digit."})]}),e.jsx("div",{className:"air-summary-grid air-summary-grid--six",children:[["Total stock","450","violet"],["Available","444","green"],["Reserved","1","orange"],["Issued / Used","4","blue"],["Cancelled / Void","1","red"],["Active alerts","3","orange"]].map(([n,r,i])=>e.jsxs("article",{className:"air-summary-card",children:[e.jsx("span",{children:n}),e.jsx("strong",{className:`exec-tone-${i}`,children:r})]},n))}),e.jsxs("div",{className:"inventory-grid",children:[e.jsx(Ie,{title:"Available per airline",icon:"Plane",rows:a}),e.jsx(Ie,{title:"Available per branch",icon:"ArrowLeftRight",rows:s}),e.jsxs("article",{className:"air-panel",children:[e.jsxs("h2",{children:[e.jsx(c,{name:"Activity",size:15})," Forecast - days to exhaustion"]}),e.jsxs("table",{className:"inventory-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Range"}),e.jsx("th",{children:"Avail."}),e.jsx("th",{children:"Avg/day"}),e.jsx("th",{children:"Days left"})]})}),e.jsx("tbody",{children:t.map(([n,r,i,l])=>e.jsxs("tr",{children:[e.jsx("td",{children:n}),e.jsx("td",{children:r}),e.jsx("td",{children:i}),e.jsx("td",{className:"positive",children:l})]},n))})]})]}),e.jsxs("article",{className:"air-panel",children:[e.jsxs("h2",{children:[e.jsx(c,{name:"AlertTriangle",size:15})," Alerts"]}),e.jsxs("div",{className:"alert-list",children:[e.jsxs("p",{children:[e.jsx("span",{className:"dot dot--orange"})," ",e.jsx("strong",{children:"Range expiring:"})," KLM (KL) 074 @ AMS expires in 18d (28-06-2026)"]}),e.jsxs("p",{children:[e.jsx("span",{className:"dot dot--blue"})," ",e.jsx("strong",{children:"AWB gap:"})," Prefix 235: gap 3469902-3469902 unused"]}),e.jsxs("p",{children:[e.jsx("span",{className:"dot dot--blue"})," ",e.jsx("strong",{children:"AWB gap:"})," Prefix 235: gap 3469904-3469993 unused"]})]})]})]})]})}function Ie({title:a,icon:s,rows:t}){return e.jsxs("article",{className:"air-panel inventory-list",children:[e.jsxs("h2",{children:[e.jsx(c,{name:s,size:15})," ",a]}),t.map(([n,r,i])=>e.jsxs("div",{className:"inventory-list__row",children:[e.jsx("span",{children:n}),e.jsxs("strong",{children:[r," ",e.jsxs("em",{children:["/ ",i]})]})]},n))]})}function Qs(){const a=[["WH-26-0001","Lumitech Electronics B.V. · EK150 -> DXB · 6 colli · 482 kg","Import","Received","8d","A-12-03","2",!0],["WH-26-0002","Vortex Pumps NV · 3 colli · 310 kg","Export","Received","Damage","B-04-07","1",!1],["WH-26-0003","NorthSea Marine BV · LH404 -> JFK · 11 colli · 1.240 kg","Import","Expected","","-","0",!1],["WH-26-0004","Apex Robotics · EK150 -> DXB · 2 colli · 96 kg","Export","Out-scanned","","A-01-01","1",!1]];return e.jsxs("section",{className:"air-detail-page",children:[e.jsxs("div",{className:"air-page-titlebar",children:[e.jsx(H,{title:"Warehouse - loads intake",section:"Air Freight"}),e.jsxs("button",{type:"button",className:"air-action-primary",children:[e.jsx(c,{name:"Plus",size:14})," Announce new arrival"]})]}),e.jsx("div",{className:"air-summary-grid air-summary-grid--four",children:[["In loads","2","blue"],["Alerts (>1 week)","1","red"],["Damage reported","1","orange"],["Out-scanned","1","green"]].map(([s,t,n])=>e.jsxs("article",{className:"air-summary-card",children:[e.jsx("span",{children:s}),e.jsx("strong",{className:`exec-tone-${n}`,children:t})]},s))}),e.jsxs("div",{className:"warehouse-alert warehouse-alert--danger",children:[e.jsx(c,{name:"AlertTriangle",size:15})," 1 shipment(s) in the loods over 1 week without an out-scan."]}),e.jsxs("div",{className:"warehouse-alert warehouse-alert--warning",children:[e.jsx(c,{name:"AlertTriangle",size:15})," 1 shipment(s) with reported damage."]}),e.jsxs("article",{className:"air-panel",children:[e.jsxs("h2",{children:[e.jsx(c,{name:"Warehouse",size:15})," Announced shipments"]}),e.jsxs("label",{className:"files-search warehouse-search",children:[e.jsx(c,{name:"Search",size:14}),e.jsx("input",{placeholder:"Search reference / customer / AWB / flight"})]}),e.jsx("div",{className:"shipment-list",children:a.map(([s,t,n,r,i,l,o,d])=>e.jsxs("button",{type:"button",className:d?"shipment-row shipment-row--alert":"shipment-row",children:[e.jsx("span",{className:"shipment-icon",children:e.jsx(c,{name:"Plane",size:17})}),e.jsxs("span",{className:"shipment-main",children:[e.jsx("strong",{children:s}),e.jsx("span",{className:`files-pill files-pill--${n.toLowerCase()}`,children:n}),e.jsx("span",{className:`files-status files-status--${r.toLowerCase().replace(/\s+/g,"-")}`,children:r}),i?e.jsx("em",{children:i}):null,e.jsx("small",{children:t})]}),e.jsxs("span",{className:"shipment-side",children:[e.jsx(c,{name:"MapPin",size:13})," ",l," ",e.jsx(c,{name:"FileText",size:13})," ",o]})]},s))}),e.jsx("p",{children:"Open a shipment to handle it, or announce a new arrival. Out-scan marks departure and feeds Track & Trace."})]})]})}function Xs(){const a=[["Uitvaart Service Nederland BV","KC","NL/KC/00231-01","31-12-2026","AMS","Valid"],["MediSupply BV","KC","NL/KC/00488-02","30-09-2026","AMS","Valid"],["FashionHub","AC","AC-2026-114","31-07-2026","AMS","Valid"],["Dutch Flowers BV","KC","NL/KC/00120-03","28-06-2026","AMS","18d"]];return e.jsxs("section",{className:"air-detail-page",children:[e.jsx(H,{title:"Aviation Security - RA/KC validation",section:"Air Freight"}),e.jsxs("div",{className:"files-banner",children:[e.jsxs("div",{children:[e.jsx(c,{name:"ShieldCheck",size:15}),e.jsx("strong",{children:"EU aviation security compliance"})]}),e.jsx("p",{children:"As a Regulated Agent, YCC determines the security status of every consignment. Cargo from a valid Known Consignor is accepted as secure; otherwise it must be screened."})]}),e.jsxs("div",{className:"security-grid",children:[e.jsxs("article",{className:"air-panel security-status-card",children:[e.jsxs("h2",{children:[e.jsx(c,{name:"ShieldCheck",size:15})," Regulated Agent status"]}),e.jsx("span",{children:"Agent"}),e.jsx("strong",{children:"Your Cargo Contact B.V."}),e.jsx("span",{children:"RA number"}),e.jsx("strong",{children:"NL/RA/00528-00"}),e.jsx("span",{children:"Valid until"}),e.jsx("strong",{children:"31-12-2026"}),e.jsx("em",{children:"Valid"}),e.jsx("p",{children:"Set under Admin > Company details."})]}),e.jsxs("article",{className:"air-panel",children:[e.jsxs("h2",{children:[e.jsx(c,{name:"CheckCircle2",size:15})," Consignment validation tool"]}),e.jsxs("div",{className:"security-form-grid",children:[e.jsxs("label",{children:["Shipper / Consignor",e.jsxs("select",{children:[e.jsx("option",{children:"Select shipper"}),e.jsx("option",{children:"Dutch Flowers BV"})]})]}),e.jsxs("label",{children:["Screening method (if not KC)",e.jsxs("select",{children:[e.jsx("option",{children:"-"}),e.jsx("option",{children:"XRY"}),e.jsx("option",{children:"EDS"})]})]}),e.jsxs("label",{children:["Target",e.jsxs("select",{children:[e.jsx("option",{children:"SPX"}),e.jsx("option",{children:"SCO"})]})]})]}),e.jsxs("button",{type:"button",className:"air-action-primary",children:[e.jsx(c,{name:"ShieldCheck",size:14})," Validate consignment"]})]})]}),e.jsxs("article",{className:"air-panel",children:[e.jsxs("h2",{children:[e.jsx(c,{name:"AlertTriangle",size:15})," Certificate alerts"]}),e.jsxs("p",{children:[e.jsx("span",{className:"dot dot--orange"})," ",e.jsx("strong",{children:"Dutch Flowers BV"})," (KC) - expires in 18d, 28-06-2026"]})]}),e.jsxs("article",{className:"air-panel",children:[e.jsxs("h2",{children:[e.jsx(c,{name:"Users",size:15})," Known Consignor / Account Consignor register"]}),e.jsxs("table",{className:"security-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Consignor"}),e.jsx("th",{children:"Type"}),e.jsx("th",{children:"Certificate"}),e.jsx("th",{children:"Valid until"}),e.jsx("th",{children:"Station"}),e.jsx("th",{children:"Status"})]})}),e.jsx("tbody",{children:a.map(([s,t,n,r,i,l])=>e.jsxs("tr",{children:[e.jsx("td",{children:s}),e.jsx("td",{children:e.jsx("span",{className:"files-status files-status--cleared",children:t})}),e.jsx("td",{children:n}),e.jsx("td",{children:r}),e.jsx("td",{children:i}),e.jsx("td",{children:e.jsx("span",{className:l==="Valid"?"files-status files-status--cleared":"files-status files-status--invoiced",children:l})})]},n))})]}),e.jsxs("div",{className:"security-form",children:[e.jsxs("label",{children:["Consignor name",e.jsx("input",{})]}),e.jsxs("label",{children:["Type",e.jsxs("select",{children:[e.jsx("option",{children:"KC"}),e.jsx("option",{children:"AC"})]})]}),e.jsxs("label",{children:["Certificate",e.jsx("input",{})]}),e.jsxs("label",{children:["Valid until",e.jsx("input",{placeholder:"dd-mm-yyyy"})]}),e.jsxs("label",{children:["Station",e.jsxs("select",{children:[e.jsx("option",{children:"AMS"}),e.jsx("option",{children:"DXB"})]})]})]}),e.jsxs("button",{type:"button",className:"air-action-primary",children:[e.jsx(c,{name:"Plus",size:14})," Register consignor"]})]})]})}function Zs(){const[a,s]=h.useState("home"),[t,n]=h.useState(0),[r,i]=h.useState(0),[l,o]=h.useState(""),[d,p]=h.useState(!1),[u,m]=h.useState(!1),[k,F]=h.useState(!1),[D,te]=h.useState(["air"]),[y,L]=h.useState(Ee[0]),[x,w]=h.useState(""),B=["Your Cargo Contact (HQ)","YCC Colchester","YCC Liège","Linex UK","CCL","Linex France","YCC Madrid","YCC Barcelona"],Y=["Eng (US)","Esp (ES)","العربية"],ra=h.useMemo(()=>aa(B[t]),[t,B]),ne=ks(a),ia=h.useMemo(()=>{const g=l.trim().toLowerCase();return g?ne.work.filter(re=>Object.values(re).some(ve=>ve.toLowerCase().includes(g))):ne.work},[ne.work,l]);function J(g){s(g),w(""),o(""),p(!1),m(!1),F(!1)}function la(g){te(re=>re.includes(g)?re.filter(ve=>ve!==g):[...re,g])}function Q(g){w(g)}return e.jsxs("div",{className:"prototype-shell",children:[e.jsx(Ss,{activePage:a,branch:B[t],branches:B,items:ra,branchOpen:k,openMenus:D,onSelectPage:J,onToggleMenu:la,onToggleBranchMenu:()=>{F(g=>!g),p(!1),m(!1)},onSelectBranch:g=>{n(B.indexOf(g)),js(g).includes(a)||(s("home"),o("")),F(!1),Q(`Workspace switched to ${g}.`)}}),e.jsxs("div",{className:"prototype-main",children:[e.jsx(As,{query:l,language:Y[r],notifications:d,userMenuOpen:u,users:Ee,activeUser:y,onQueryChange:o,onToggleLanguage:()=>{const g=(r+1)%Y.length;i(g),Q(`Language changed to ${Y[g]}.`)},onToggleNotifications:()=>{p(g=>!g),m(!1),F(!1)},onToggleUserMenu:()=>{m(g=>!g),p(!1),F(!1)},onSelectUser:g=>{L(g),m(!1),Q(`Demo login switched to ${g.name} with ${g.role} access.`)}}),e.jsx("main",{className:"prototype-content",children:a==="home"?e.jsx(_s,{onOpenAir:()=>J("air"),onOpenFiles:()=>J("files")}):a==="ceo"?e.jsx(Ps,{onOpen:J}):a==="coo"?e.jsx(Bs,{onOpen:J}):a==="files"?e.jsx(Vs,{}):a==="air"||a==="air-dashboard"?e.jsx(Ks,{onOpen:J}):a==="air-track-trace"?e.jsx(Ys,{}):a==="air-awb-stock"?e.jsx(Js,{}):a==="air-warehouse"?e.jsx(Qs,{}):a==="air-security"?e.jsx(Xs,{}):e.jsx(Fs,{data:ne,activePage:a,filteredWork:ia,message:x,onRowAction:g=>Q(`${g.ref} opened for ${g.customer}. Assigned owner: ${g.owner}.`),onCreateShipment:()=>Q(`New ${a==="files"?"document":"shipment"} draft created from ${Re[t+1]??Re[0]}.`),onRefresh:()=>Q(`${ne.title} refreshed with latest dummy data.`)})})]})]})}const X={accent:"#5B7CE6",indigo:"#6366F1",indigoBg:"#EEF0FE",navy:"#0E1438"},E={page:"#F4F5F9",card:"#FFFFFF",soft:"#F6F7FB",border:"#E8EAF2",ink:"#1B2440",sub:"#8A93AD",faint:"#AEB4C9"},A={released:{text:"#16A34A",bg:"#DCFCE7"},review:{text:"#EA580C",bg:"#FEF3C7"},hold:{text:"#C2410C",bg:"#FFEDD5"},inspect:{text:"#B91C1C",bg:"#FEE2E2"},unknown:{text:"#6D28D9",bg:"#EDE9FE"},missing:{text:"#475569",bg:"#E2E8F0"}},_={cleared:{text:"#16A34A",bg:"#DCFCE7"},progress:{text:"#1D4ED8",bg:"#DBEAFE"},hold:{text:"#B91C1C",bg:"#FEE2E2"},pending:{text:"#EA580C",bg:"#FEF3C7"},active:{text:"#16A34A",bg:"#DCFCE7"},inactive:{text:"#64748B",bg:"#F1F5F9"}},M={ready:{text:"#64748B",bg:"#F1F5F9"},submitted:{text:"#1D4ED8",bg:"#DBEAFE"},ack:{text:"#6D28D9",bg:"#EDE9FE"},released:{text:"#16A34A",bg:"#DCFCE7"},hold:{text:"#B91C1C",bg:"#FEE2E2"},docs:{text:"#EA580C",bg:"#FEF3C7"}},N={successTextDark:"#166534",warningTextDark:"#9A3412",dangerTextDark:"#B91C1C",infoTextDeep:"#3730A3",infoTextMid:"#4338CA",success:"#16A34A",warning:"#EA580C",danger:"#B91C1C",blue:"#1D4ED8",purple:"#6D28D9",slate:"#475569",borderRed:"#FCA5A5",borderAmber:"#FCD34D",borderGreen:"#86EFAC",borderGreenSoft:"#A7F3D0"},G={import:{text:"#1D4ED8",bg:"#EFF4FF"},export:{text:"#6D28D9",bg:"#F1ECFE"}},K={T1:{text:"#1D4ED8",bg:"#EFF4FF"},T2:{text:"#6D28D9",bg:"#F1ECFE"}},O={Draft:{text:"#64748B",bg:"#F1F5F9"},Expected:{text:"#1D4ED8",bg:"#EFF4FF"},Received:{text:"#EA580C",bg:"#FEF3C7"},Located:{text:"#6D28D9",bg:"#F1ECFE"},"Out-scanned":{text:"#16A34A",bg:"#DCFCE7"}},$={air:"#4338CA",sea:"#0369A1",road:"#C2410C",customs:"#15803D",warehouse:"#7C3AED",backoffice:"#64748B"},le={VIS:"#5B7CE6",HIST:"#0EA5E9",LLM:"#8B5CF6",STAT:"#14B8A6"},et={accent:X.accent,indigo:X.indigo,"indigo-bg":X.indigoBg,navy:X.navy,page:E.page,card:E.card,soft:E.soft,border:E.border,ink:E.ink,sub:E.sub,faint:E.faint,success:N.success,warning:N.warning,danger:N.danger,blue:N.blue,purple:N.purple,slate:N.slate,"success-text":N.successTextDark,"warning-text":N.warningTextDark,"danger-text":N.dangerTextDark,"info-text-deep":N.infoTextDeep,"info-text-mid":N.infoTextMid,"border-red":N.borderRed,"border-amber":N.borderAmber,"border-green":N.borderGreen,"border-green-soft":N.borderGreenSoft,"status-released-text":A.released.text,"status-released-bg":A.released.bg,"status-review-text":A.review.text,"status-review-bg":A.review.bg,"status-hold-text":A.hold.text,"status-hold-bg":A.hold.bg,"status-inspect-text":A.inspect.text,"status-inspect-bg":A.inspect.bg,"status-unknown-text":A.unknown.text,"status-unknown-bg":A.unknown.bg,"status-missing-text":A.missing.text,"status-missing-bg":A.missing.bg,"ms-cleared-text":_.cleared.text,"ms-cleared-bg":_.cleared.bg,"ms-progress-text":_.progress.text,"ms-progress-bg":_.progress.bg,"ms-hold-text":_.hold.text,"ms-hold-bg":_.hold.bg,"ms-pending-text":_.pending.text,"ms-pending-bg":_.pending.bg,"ms-active-text":_.active.text,"ms-active-bg":_.active.bg,"ms-inactive-text":_.inactive.text,"ms-inactive-bg":_.inactive.bg,"cl-ready-text":M.ready.text,"cl-ready-bg":M.ready.bg,"cl-submitted-text":M.submitted.text,"cl-submitted-bg":M.submitted.bg,"cl-ack-text":M.ack.text,"cl-ack-bg":M.ack.bg,"cl-released-text":M.released.text,"cl-released-bg":M.released.bg,"cl-hold-text":M.hold.text,"cl-hold-bg":M.hold.bg,"cl-docs-text":M.docs.text,"cl-docs-bg":M.docs.bg,"direction-import-text":G.import.text,"direction-import-bg":G.import.bg,"direction-export-text":G.export.text,"direction-export-bg":G.export.bg,"tstatus-t1-text":K.T1.text,"tstatus-t1-bg":K.T1.bg,"tstatus-t2-text":K.T2.text,"tstatus-t2-bg":K.T2.bg,"warehouse-draft-text":O.Draft.text,"warehouse-draft-bg":O.Draft.bg,"warehouse-expected-text":O.Expected.text,"warehouse-expected-bg":O.Expected.bg,"warehouse-received-text":O.Received.text,"warehouse-received-bg":O.Received.bg,"warehouse-located-text":O.Located.text,"warehouse-located-bg":O.Located.bg,"warehouse-out-scanned-text":O["Out-scanned"].text,"warehouse-out-scanned-bg":O["Out-scanned"].bg,"branch-air":$.air,"branch-sea":$.sea,"branch-road":$.road,"branch-customs":$.customs,"branch-warehouse":$.warehouse,"branch-backoffice":$.backoffice,"bot-vis":le.VIS,"bot-hist":le.HIST,"bot-llm":le.LLM,"bot-stat":le.STAT},ge={sans:"'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace"},j={regular:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},b={xs2:"9px",xs:"10px",xs3:"10.5px",sm2:"11px",sm:"12px",sm3:"12.5px",base:"13px",md:"14px",md2:"15px",md3:"16px",lg:"18px",xl:"20px","2xl":"24px"},ce={none:"1",tight:"1.25",snug:"1.375",normal:"1.5"},ee={wide:"0.025em",wider:"0.05em"},na={navGroupLabel:{size:b.xs2,weight:j.bold,spacing:ee.wider,transform:"uppercase"},navSectionLabel:{size:b.sm3,weight:j.semibold},navItem:{size:b.sm,weight:j.medium},fieldLabel:{size:b.xs,weight:j.semibold,spacing:ee.wide,transform:"uppercase"},input:{size:b.sm,weight:j.regular},pageTitle:{size:b.xl,weight:j.bold},detailTitle:{size:b.lg,weight:j.bold},panelTitle:{size:b.md,weight:j.bold},body:{size:b.sm,weight:j.regular},meta:{size:b.sm2,weight:j.regular},footnote:{size:b.xs3,weight:j.regular},kpiValue:{size:b["2xl"],weight:j.bold},kpiLabel:{size:b.xs,weight:j.semibold,spacing:ee.wide,transform:"uppercase"},tableValue:{size:b.base,weight:j.regular},reference:{size:b.base,weight:j.bold,family:ge.mono},badge:{size:"11px",weight:j.semibold},chip:{size:"10px",weight:j.bold},btn:{size:b.xs,weight:j.semibold}},at={"font-sans":ge.sans,"font-mono":ge.mono,"size-xs2":b.xs2,"size-xs":b.xs,"size-xs3":b.xs3,"size-sm2":b.sm2,"size-sm":b.sm,"size-sm3":b.sm3,"size-base":b.base,"size-md":b.md,"size-md2":b.md2,"size-md3":b.md3,"size-lg":b.lg,"size-xl":b.xl,"size-2xl":b["2xl"],"weight-regular":String(j.regular),"weight-medium":String(j.medium),"weight-semibold":String(j.semibold),"weight-bold":String(j.bold),"weight-extrabold":String(j.extrabold),"weight-black":String(j.black),"leading-tight":ce.tight,"leading-none":ce.none,"leading-snug":ce.snug,"leading-normal":ce.normal,"tracking-wide":ee.wide,"tracking-wider":ee.wider},z={0:"0px",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",8:"32px"},f={sidebarWidth:"224px",topbarHeight:"58px",logoHeight:"46px",icon:{xs:11,sm:12,md:13,base:14,lg:15,xl:16,"2xl":17,"3xl":18},avatar:{sm:"24px",md:"28px",base:"32px",lg:"36px"},thumbnailWidth:"88px",thumbnailHeight:"64px",searchBarMax:"340px",topbarSearchMax:"max-w-md",dossierMax:"800px",donutDefault:"52px",donutLarge:"72px"},V={none:"0px",sm:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px",full:"9999px"},we={sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10)",none:"none"},Ne={sm:"640px",lg:"1024px"},oe={base:0,raised:10,dropdown:20,overlay:30},me={chevron:"transform 0.15s ease",default:"all 0.15s ease",feedPoll:4e3},xe={flpulse:{name:"flpulse",keyframes:`
2
+ 0% { opacity: 0.3; }
3
+ 50% { opacity: 1; }
4
+ 100% { opacity: 0.3; }
5
+ `,duration:"1.5s",timing:"ease-in-out",iteration:"infinite"}},st={"space-0":z[0],"space-0_5":z[.5],"space-1":z[1],"space-1_5":z[1.5],"space-2":z[2],"space-2_5":z[2.5],"space-3":z[3],"space-3_5":z[3.5],"space-4":z[4],"space-5":z[5],"space-6":z[6],"space-8":z[8],"sidebar-width":f.sidebarWidth,"topbar-height":f.topbarHeight,"logo-height":f.logoHeight,"icon-xs":String(f.icon.xs),"icon-sm":String(f.icon.sm),"icon-md":String(f.icon.md),"icon-base":String(f.icon.base),"icon-lg":String(f.icon.lg),"icon-xl":String(f.icon.xl),"icon-2xl":String(f.icon["2xl"]),"icon-3xl":String(f.icon["3xl"]),"avatar-sm":f.avatar.sm,"avatar-md":f.avatar.md,"avatar-base":f.avatar.base,"avatar-lg":f.avatar.lg,"thumbnail-width":f.thumbnailWidth,"thumbnail-height":f.thumbnailHeight,"search-bar-max":f.searchBarMax,"topbar-search-max":f.topbarSearchMax,"dossier-max":f.dossierMax,"donut-default":f.donutDefault,"donut-large":f.donutLarge,"radius-sm":V.sm,"radius-md":V.md,"radius-lg":V.lg,"radius-xl":V.xl,"radius-2xl":V["2xl"],"radius-full":V.full,"shadow-sm":we.sm,"shadow-lg":we.lg,"z-base":String(oe.base),"z-raised":String(oe.raised),"z-dropdown":String(oe.dropdown),"z-overlay":String(oe.overlay),"breakpoint-sm":Ne.sm,"breakpoint-lg":Ne.lg,"transition-chevron":me.chevron,"transition-default":me.default,"feed-poll-ms":String(me.feedPoll),"flpulse-duration":xe.flpulse.duration,"flpulse-timing":xe.flpulse.timing,"flpulse-iteration":xe.flpulse.iteration};exports.Accordion=Sa;exports.Alert=Ye;exports.Avatar=ae;exports.Badge=se;exports.Banner=Ae;exports.Breadcrumb=De;exports.Button=C;exports.Card=he;exports.CardBody=ga;exports.CardFooter=Se;exports.CardHeader=be;exports.Checkbox=ie;exports.Col=Qa;exports.CompareBar=ka;exports.ComponentShowcase=ys;exports.ConfirmDialog=Ia;exports.Container=Ya;exports.ContextMenu=Wa;exports.CopyButton=Fa;exports.DashboardDemo=is;exports.DataList=Ta;exports.DateInput=Ba;exports.Divider=Za;exports.Donut=va;exports.Drawer=$a;exports.EmptyState=ya;exports.FileUpload=We;exports.Footer=Ze;exports.FormGroup=pe;exports.Grid=es;exports.Header=Xe;exports.Icon=c;exports.Input=P;exports.KV=ba;exports.Modal=Me;exports.Nav=Fe;exports.NavContext=ye;exports.NavGroup=q;exports.NavItem=T;exports.Page=ea;exports.PageHeader=Xa;exports.Pagination=Ka;exports.Popover=Na;exports.ProgressBar=Ma;exports.PrototypeHome=Zs;exports.Radio=Ge;exports.RadioGroup=za;exports.Row=R;exports.ScanZone=La;exports.SearchInput=Oa;exports.Select=Z;exports.Sidebar=Qe;exports.Skeleton=Pa;exports.Spacer=ts;exports.Spinner=Je;exports.Stack=ss;exports.StatCard=I;exports.Stepper=Ha;exports.Table=_e;exports.Tabs=Va;exports.Tag=U;exports.Textarea=de;exports.Timeline=_a;exports.ToastProvider=Ue;exports.Toggle=W;exports.Tooltip=wa;exports.TrendSpark=Ca;exports.aiBot=le;exports.animation=xe;exports.branchModule=$;exports.breakpoint=Ne;exports.clearance=M;exports.colorTokens=et;exports.direction=G;exports.fontFamily=ge;exports.fontSize=b;exports.fontWeight=j;exports.iconNames=He;exports.layoutTokens=st;exports.letterSpacing=ee;exports.lineHeight=ce;exports.milestone=_;exports.neutral=E;exports.primary=X;exports.radius=V;exports.semantic=N;exports.shadow=we;exports.size=f;exports.spacing=z;exports.status=A;exports.tStatus=K;exports.textStyle=na;exports.transition=me;exports.typographyTokens=at;exports.useToast=qe;exports.warehouseStatus=O;exports.zIndex=oe;
@@ -0,0 +1,11 @@
1
+ import './styles/global.css';
2
+ export * from './components/Icons';
3
+ export * from './components/Form';
4
+ export * from './components/DataDisplay';
5
+ export * from './components/Feedback';
6
+ export * from './components/Navigation';
7
+ export * from './components/Layout';
8
+ export * from './components';
9
+ export * from './pages';
10
+ export * from './tokens';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAE7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}