chordia-ui 3.3.8 → 3.3.9

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 (159) hide show
  1. package/dist/AgentLiftCard.cjs.js.map +1 -1
  2. package/dist/AgentLiftCard.es.js +5 -3
  3. package/dist/AgentLiftCard.es.js.map +1 -1
  4. package/dist/CustomFilterChips.cjs.js.map +1 -1
  5. package/dist/CustomFilterChips.es.js +2 -1
  6. package/dist/CustomFilterChips.es.js.map +1 -1
  7. package/dist/FileUploadingState.cjs.js.map +1 -1
  8. package/dist/FileUploadingState.es.js +16 -10
  9. package/dist/FileUploadingState.es.js.map +1 -1
  10. package/dist/IntegrationCard.cjs.js.map +1 -1
  11. package/dist/IntegrationCard.es.js +3 -3
  12. package/dist/IntegrationCard.es.js.map +1 -1
  13. package/dist/SectionLabel.cjs.js.map +1 -1
  14. package/dist/SectionLabel.es.js.map +1 -1
  15. package/dist/SmallButton.cjs.js.map +1 -1
  16. package/dist/SmallButton.es.js +16 -16
  17. package/dist/SmallButton.es.js.map +1 -1
  18. package/dist/SummarySection.cjs.js.map +1 -1
  19. package/dist/SummarySection.es.js +11 -9
  20. package/dist/SummarySection.es.js.map +1 -1
  21. package/dist/TextInput.cjs.js.map +1 -1
  22. package/dist/TextInput.es.js.map +1 -1
  23. package/dist/Timeline.cjs.js.map +1 -1
  24. package/dist/Timeline.es.js +14 -8
  25. package/dist/Timeline.es.js.map +1 -1
  26. package/dist/Tooltip.cjs.js +1 -1
  27. package/dist/Tooltip.cjs.js.map +1 -1
  28. package/dist/Tooltip.es.js +31 -20
  29. package/dist/Tooltip.es.js.map +1 -1
  30. package/dist/TourGuideTooltip.cjs.js.map +1 -1
  31. package/dist/TourGuideTooltip.es.js +2 -1
  32. package/dist/TourGuideTooltip.es.js.map +1 -1
  33. package/dist/UpdatedInteractionRecording.cjs.js +1 -1
  34. package/dist/UpdatedInteractionRecording.cjs.js.map +1 -1
  35. package/dist/UpdatedInteractionRecording.es.js +79 -97
  36. package/dist/UpdatedInteractionRecording.es.js.map +1 -1
  37. package/dist/UploadInteraction.cjs.js.map +1 -1
  38. package/dist/UploadInteraction.es.js.map +1 -1
  39. package/dist/colors.cjs.js +2 -0
  40. package/dist/colors.cjs.js.map +1 -0
  41. package/dist/colors.es.js +2 -0
  42. package/dist/colors.es.js.map +1 -0
  43. package/dist/components/UpdatedInteractionDetails.cjs.js +10 -1
  44. package/dist/components/UpdatedInteractionDetails.cjs.js.map +1 -1
  45. package/dist/components/UpdatedInteractionDetails.es.js +1531 -9
  46. package/dist/components/UpdatedInteractionDetails.es.js.map +1 -1
  47. package/dist/components/chat.cjs.js +30 -1
  48. package/dist/components/chat.cjs.js.map +1 -1
  49. package/dist/components/chat.es.js +2222 -7
  50. package/dist/components/chat.es.js.map +1 -1
  51. package/dist/components/common.cjs.js +1 -1
  52. package/dist/components/common.es.js +32 -25
  53. package/dist/components/common.es.js.map +1 -1
  54. package/dist/components/data.cjs.js +1 -1
  55. package/dist/components/data.cjs.js.map +1 -1
  56. package/dist/components/data.es.js +1033 -4
  57. package/dist/components/data.es.js.map +1 -1
  58. package/dist/components/layout.cjs.js +3 -1
  59. package/dist/components/layout.cjs.js.map +1 -1
  60. package/dist/components/layout.es.js +1533 -8
  61. package/dist/components/layout.es.js.map +1 -1
  62. package/dist/components/login.cjs.js +1 -1
  63. package/dist/components/login.es.js +6 -2
  64. package/dist/components/login.es.js.map +1 -1
  65. package/dist/components/media.cjs.js +1 -1
  66. package/dist/components/media.cjs.js.map +1 -1
  67. package/dist/components/media.es.js +220 -6
  68. package/dist/components/media.es.js.map +1 -1
  69. package/dist/components/models.cjs.js +1 -1
  70. package/dist/components/models.cjs.js.map +1 -1
  71. package/dist/components/models.es.js +91 -2
  72. package/dist/components/models.es.js.map +1 -1
  73. package/dist/components/navigation.cjs.js +1 -1
  74. package/dist/components/navigation.cjs.js.map +1 -1
  75. package/dist/components/navigation.es.js +766 -7
  76. package/dist/components/navigation.es.js.map +1 -1
  77. package/dist/components/notifications.cjs.js +1 -1
  78. package/dist/components/notifications.cjs.js.map +1 -1
  79. package/dist/components/notifications.es.js +368 -3
  80. package/dist/components/notifications.es.js.map +1 -1
  81. package/dist/components/onboarding.cjs.js +1 -1
  82. package/dist/components/onboarding.cjs.js.map +1 -1
  83. package/dist/components/onboarding.es.js +985 -7
  84. package/dist/components/onboarding.es.js.map +1 -1
  85. package/dist/components/primitives.cjs.js +1 -1
  86. package/dist/components/primitives.cjs.js.map +1 -1
  87. package/dist/components/primitives.es.js +635 -25
  88. package/dist/components/primitives.es.js.map +1 -1
  89. package/dist/debugger-wc.cjs.js +4 -4
  90. package/dist/debugger-wc.cjs.js.map +1 -1
  91. package/dist/debugger-wc.es.js +15 -11
  92. package/dist/debugger-wc.es.js.map +1 -1
  93. package/dist/index.cjs.js +1 -1
  94. package/dist/index.cjs2.js +2 -49
  95. package/dist/index.cjs2.js.map +1 -1
  96. package/dist/index.cjs3.js +50 -0
  97. package/dist/index.cjs3.js.map +1 -0
  98. package/dist/index.es.js +104 -99
  99. package/dist/index.es.js.map +1 -1
  100. package/dist/index.es2.js +2632 -1776
  101. package/dist/index.es2.js.map +1 -1
  102. package/dist/index.es3.js +1944 -0
  103. package/dist/index.es3.js.map +1 -0
  104. package/dist/pages/interactionDetails.cjs.js +1 -1
  105. package/dist/pages/interactionDetails.cjs.js.map +1 -1
  106. package/dist/pages/interactionDetails.es.js +70 -47
  107. package/dist/pages/interactionDetails.es.js.map +1 -1
  108. package/dist/sortable.esm.cjs.js +1 -1
  109. package/dist/sortable.esm.cjs.js.map +1 -1
  110. package/dist/sortable.esm.es.js +55 -53
  111. package/dist/sortable.esm.es.js.map +1 -1
  112. package/dist/{chordia-ui.css → style.css} +1 -1
  113. package/package.json +1 -1
  114. package/src/components/UpdatedInteractionDetails/UpdatedInteractionDetails.jsx +318 -77
  115. package/src/components/UpdatedInteractionDetails/UpdatedInteractionRecording.jsx +7 -17
  116. package/dist/ChartRenderer.cjs.js +0 -31
  117. package/dist/ChartRenderer.cjs.js.map +0 -1
  118. package/dist/ChartRenderer.es.js +0 -2210
  119. package/dist/ChartRenderer.es.js.map +0 -1
  120. package/dist/GettingStarted.cjs.js +0 -2
  121. package/dist/GettingStarted.cjs.js.map +0 -1
  122. package/dist/GettingStarted.es.js +0 -983
  123. package/dist/GettingStarted.es.js.map +0 -1
  124. package/dist/InlineConfirm.cjs.js +0 -2
  125. package/dist/InlineConfirm.cjs.js.map +0 -1
  126. package/dist/InlineConfirm.es.js +0 -618
  127. package/dist/InlineConfirm.es.js.map +0 -1
  128. package/dist/InteractionSummaryCard.cjs.js +0 -2
  129. package/dist/InteractionSummaryCard.cjs.js.map +0 -1
  130. package/dist/InteractionSummaryCard.es.js +0 -216
  131. package/dist/InteractionSummaryCard.es.js.map +0 -1
  132. package/dist/LoginPage.cjs.js +0 -3
  133. package/dist/LoginPage.cjs.js.map +0 -1
  134. package/dist/LoginPage.es.js +0 -2618
  135. package/dist/LoginPage.es.js.map +0 -1
  136. package/dist/NavigationBar.cjs.js +0 -2
  137. package/dist/NavigationBar.cjs.js.map +0 -1
  138. package/dist/NavigationBar.es.js +0 -762
  139. package/dist/NavigationBar.es.js.map +0 -1
  140. package/dist/NotificationPanel.cjs.js +0 -2
  141. package/dist/NotificationPanel.cjs.js.map +0 -1
  142. package/dist/NotificationPanel.es.js +0 -371
  143. package/dist/NotificationPanel.es.js.map +0 -1
  144. package/dist/OverlayPanel.cjs.js +0 -2
  145. package/dist/OverlayPanel.cjs.js.map +0 -1
  146. package/dist/OverlayPanel.es.js +0 -93
  147. package/dist/OverlayPanel.es.js.map +0 -1
  148. package/dist/SplitPane.cjs.js +0 -4
  149. package/dist/SplitPane.cjs.js.map +0 -1
  150. package/dist/SplitPane.es.js +0 -1531
  151. package/dist/SplitPane.es.js.map +0 -1
  152. package/dist/SummaryStatsPanel.cjs.js +0 -2
  153. package/dist/SummaryStatsPanel.cjs.js.map +0 -1
  154. package/dist/SummaryStatsPanel.es.js +0 -1027
  155. package/dist/SummaryStatsPanel.es.js.map +0 -1
  156. package/dist/UpdatedInteractionDetails.cjs.js +0 -11
  157. package/dist/UpdatedInteractionDetails.cjs.js.map +0 -1
  158. package/dist/UpdatedInteractionDetails.es.js +0 -1310
  159. package/dist/UpdatedInteractionDetails.es.js.map +0 -1
@@ -1,762 +0,0 @@
1
- import { jsxs as c, jsx as n, Fragment as G } from "react/jsx-runtime";
2
- import Q, { useState as T, useMemo as V, useEffect as E, useRef as $ } from "react";
3
- import { PanelLeft as r2, PanelLeftClose as e2, ChevronDown as _, SquareDot as W, Workflow as t2, Sliders as n2, Shield as o2, Headphones as a2, FileText as R, BarChart3 as i2, Settings as s2, Plug as l2, Bell as d2, Lightbulb as c2, Activity as D, Clock3 as j, LayoutDashboard as C2, Users as O, FolderClosed as P, Home as u2, LogOut as p2 } from "lucide-react";
4
- import { T as f2, c as g2, a as h2 } from "./Tooltip.es.js";
5
- const x2 = "data:image/svg+xml,%3csvg%20width='146'%20height='47'%20viewBox='0%200%20146%2047'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M39.7345%2023.0879C39.7345%2018.3264%2037.9562%2013.9806%2035.0265%2010.6778C31.5984%206.81303%2026.5961%204.37995%2021.0255%204.37991C15.55%204.37991%2010.626%206.73155%207.20325%2010.4815C4.16732%2013.8086%202.31752%2018.2312%202.3175%2023.0889C2.3175%2028.4704%204.58936%2033.3215%208.22864%2036.7354L8.54602%2037.0264C11.8643%2039.9919%2016.3774%2041.7969%2021.0265%2041.7969C25.8285%2041.7969%2030.2069%2039.9892%2033.5197%2037.0147C37.3363%2033.5875%2039.7345%2028.6181%2039.7345%2023.0879ZM41.0978%2023.0879C41.0978%2029.021%2038.522%2034.3537%2034.4298%2038.0284C30.8767%2041.2187%2026.1773%2043.1602%2021.0265%2043.1602C15.8732%2043.1602%2010.8875%2041.0989%207.29602%2037.7295C3.3936%2034.0688%200.954224%2028.8623%200.954224%2023.0889C0.954235%2017.8782%202.94042%2013.1308%206.19641%209.56253C9.86631%205.5418%2015.1511%203.01663%2021.0255%203.01663C27.0021%203.01666%2032.3702%205.63032%2036.046%209.77444C39.1881%2013.3168%2041.0978%2017.9806%2041.0978%2023.0879Z'%20fill='%23E8D4A3'/%3e%3cpath%20d='M37.2872%2023.0891C37.2872%2018.8698%2035.6769%2015.0268%2033.0372%2012.1418L33.0352%2012.1399C30.0667%208.87501%2025.7861%206.82644%2021.0255%206.8264C16.2546%206.8264%2011.9647%208.88061%208.98932%2012.1535C6.36338%2015.0421%204.76276%2018.878%204.76276%2023.0891C4.7628%2027.7174%207.02253%2031.472%2010.2159%2034.4739C13.1704%2037.2518%2016.8607%2039.3508%2021.0255%2039.3508C25.2429%2039.3508%2029.0852%2037.7442%2031.9737%2035.1096L32.2764%2034.8274C35.3652%2031.8686%2037.2871%2027.7034%2037.2872%2023.0891ZM38.4796%2023.0891C38.4795%2028.2015%2036.2794%2032.8019%2032.7764%2035.9914C29.677%2038.8182%2025.5513%2040.5432%2021.0255%2040.5432C16.4464%2040.5432%2012.4784%2038.2379%209.39948%2035.343C6.05168%2032.196%203.5714%2028.1479%203.57135%2023.0891C3.57135%2018.5701%205.28909%2014.4512%208.10651%2011.3518C11.2983%207.84074%2015.9047%205.63499%2021.0255%205.63499C26.135%205.63503%2030.7311%207.834%2033.9161%2011.3362C36.7493%2014.4324%2038.4796%2018.5602%2038.4796%2023.0891Z'%20fill='%23C1D89F'/%3e%3cpath%20d='M34.8411%2023.0891C34.8411%2019.4103%2033.3913%2016.0763%2031.0461%2013.6008C28.5281%2010.9427%2024.9743%209.27276%2021.0256%209.27272C16.9594%209.27272%2013.3036%2011.0285%2010.7756%2013.8245C8.5585%2016.2757%207.20923%2019.5246%207.20923%2023.0891C7.2093%2026.9684%209.4469%2029.6116%2012.2053%2032.2132C14.7815%2034.6424%2017.4826%2036.9046%2021.0256%2036.9046C24.6597%2036.9045%2027.9657%2035.4993%2030.4299%2033.2034C33.1437%2030.6832%2034.841%2027.085%2034.8411%2023.0891ZM35.8635%2023.0891C35.8635%2027.3807%2034.0383%2031.246%2031.1252%2033.9514C28.4794%2036.4165%2024.9284%2037.927%2021.0256%2037.927C17.0315%2037.927%2014.0595%2035.365%2011.5051%2032.9563H11.5042C8.72167%2030.3321%206.18782%2027.427%206.18774%2023.0891C6.18774%2019.2616%207.63735%2015.7707%2010.0178%2013.1389L10.2756%2012.8616C12.9772%2010.0221%2016.795%208.25124%2021.0256%208.25124C25.2694%208.25128%2029.0874%2010.0466%2031.7883%2012.8977C34.304%2015.5531%2035.8635%2019.1356%2035.8635%2023.0891Z'%20fill='%239BDB9C'/%3e%3cpath%20d='M32.3938%2023.088C32.3938%2019.9508%2031.1134%2017.1184%2029.0569%2015.0607C27.0004%2013.0032%2024.1649%2011.719%2021.0256%2011.7189H20.9465C17.6174%2011.7412%2014.6276%2013.1939%2012.5617%2015.4953C10.7546%2017.5092%209.65549%2020.1693%209.65549%2023.088C9.65553%2024.6571%2010.2083%2025.8214%2011.0461%2026.8664C11.9056%2027.9384%2013.0249%2028.8441%2014.1936%2029.9503C14.7288%2030.4574%2015.2521%2031.0081%2015.7639%2031.5275C16.2811%2032.0524%2016.7943%2032.5543%2017.3352%2032.9914C18.4123%2033.8616%2019.5737%2034.4582%2021.0246%2034.4582C24.0754%2034.4581%2026.8439%2033.255%2028.884%2031.298V31.297C31.0464%2029.2308%2032.3937%2026.2248%2032.3938%2023.088ZM33.2453%2023.088C33.2453%2026.3577%2031.8876%2029.4879%2029.6877%2031.7013L29.4729%2031.9123C27.2807%2034.015%2024.3039%2035.3096%2021.0246%2035.3097C19.3103%2035.3097%2017.9649%2034.5946%2016.8%2033.6535C16.22%2033.1848%2015.6792%2032.6547%2015.1574%2032.1251C14.6302%2031.59%2014.1297%2031.0622%2013.6086%2030.5685V30.5695C12.5058%2029.5256%2011.2893%2028.5314%2010.3811%2027.3986C9.45133%2026.2388%208.80397%2024.8924%208.80392%2023.088C8.80392%2019.951%209.986%2017.0899%2011.9279%2014.9259H11.9289C14.1656%2012.4345%2017.4126%2010.8664%2021.0246%2010.8664H21.2004L21.2033%2010.8703C24.5095%2010.9179%2027.4896%2012.2893%2029.6584%2014.4591L30.0627%2014.883C32.0334%2017.0499%2033.2453%2019.9242%2033.2453%2023.088Z'%20fill='%2374DF98'/%3e%3cpath%20d='M29.9485%2023.0892C29.9485%2020.4916%2028.8388%2018.1542%2027.0677%2016.5228C25.488%2015.068%2023.3836%2014.1776%2021.0696%2014.1663H21.0247C18.368%2014.1663%2015.9836%2015.3261%2014.3489%2017.1683C12.9504%2018.7437%2012.1018%2020.8168%2012.1018%2023.0892C12.1019%2024.2725%2012.629%2024.9743%2013.4055%2025.6058C13.8042%2025.93%2014.2541%2026.2238%2014.7395%2026.5579C15.218%2026.8873%2015.7196%2027.2494%2016.1829%2027.6908C16.622%2028.1089%2017.0022%2028.6035%2017.3577%2029.0941C17.7193%2029.593%2018.0503%2030.0792%2018.4124%2030.5218C19.1297%2031.3986%2019.8969%2032.012%2021.0247%2032.012C23.4912%2032.0119%2025.7232%2031.011%2027.3391%2029.3929C28.9518%2027.7781%2029.9485%2025.5503%2029.9485%2023.0892ZM30.6292%2023.0892C30.6291%2025.738%2029.5566%2028.137%2027.8216%2029.8743C26.0831%2031.6152%2023.6794%2032.6926%2021.0247%2032.6927C19.5916%2032.6927%2018.6502%2031.8887%2017.885%2030.9534C17.5061%2030.4902%2017.1516%2029.9714%2016.8059%2029.4945C16.5421%2029.1304%2016.2793%2028.7851%2015.9993%2028.4779L15.7132%2028.1839C15.2908%2027.7816%2014.8264%2027.4448%2014.3538%2027.1195C13.8884%2026.7991%2013.4023%2026.4817%2012.9759%2026.1351C12.1019%2025.4244%2011.4203%2024.5457%2011.4202%2023.0892C11.4202%2020.6439%2012.3343%2018.4115%2013.8391%2016.7161L14.178%2016.3529C15.8861%2014.6167%2018.2509%2013.5307%2020.8704%2013.4896L20.8753%2013.4837H21.0257C23.5346%2013.4838%2025.8181%2014.4465%2027.5286%2016.0218C29.434%2017.7768%2030.6292%2020.2931%2030.6292%2023.0892Z'%20fill='%234DE294'/%3e%3cpath%20d='M136.209%2032.5971C134.942%2032.5971%20133.917%2032.2887%20133.134%2031.6721C132.351%2031.0554%20131.959%2030.1721%20131.959%2029.0221C131.959%2027.8721%20132.359%2026.9637%20133.159%2026.2971C133.976%2025.6304%20135.159%2025.2971%20136.709%2025.2971H138.334C139.467%2025.2971%20140.267%2025.1471%20140.734%2024.8471C141.217%2024.5471%20141.459%2024.0971%20141.459%2023.4971C141.459%2022.9804%20141.242%2022.5304%20140.809%2022.1471C140.376%2021.7637%20139.692%2021.5721%20138.759%2021.5721C137.892%2021.5721%20137.184%2021.7887%20136.634%2022.2221C136.101%2022.6554%20135.776%2023.2804%20135.659%2024.0971H132.109C132.276%2022.4637%20132.942%2021.1887%20134.109%2020.2721C135.276%2019.3554%20136.834%2018.8971%20138.784%2018.8971C140.734%2018.8971%20142.251%2019.3137%20143.334%2020.1471C144.417%2020.9637%20144.959%2022.1137%20144.959%2023.5971V32.1971H141.509L141.459%2029.0721H141.334C141.051%2030.1054%20140.434%2030.9554%20139.484%2031.6221C138.551%2032.2721%20137.459%2032.5971%20136.209%2032.5971ZM135.559%2028.7221C135.559%2029.2221%20135.734%2029.6054%20136.084%2029.8721C136.451%2030.1387%20136.967%2030.2721%20137.634%2030.2721C138.367%2030.2721%20139.026%2030.0971%20139.609%2029.7471C140.192%2029.3971%20140.642%2028.9387%20140.959%2028.3721C141.292%2027.8054%20141.459%2027.1971%20141.459%2026.5471V25.3721H141.334C141.184%2025.9887%20140.859%2026.4471%20140.359%2026.7471C139.859%2027.0304%20139.151%2027.1721%20138.234%2027.1721H137.359C136.776%2027.1721%20136.326%2027.3137%20136.009%2027.5971C135.709%2027.8637%20135.559%2028.2387%20135.559%2028.7221Z'%20fill='%23FAF5E9'/%3e%3cpath%20d='M129.685%2019.2971V32.1971H126.11V19.2971H129.685ZM125.785%2015.5221C125.785%2014.9554%20125.993%2014.4721%20126.41%2014.0721C126.827%2013.6554%20127.318%2013.4471%20127.885%2013.4471C128.468%2013.4471%20128.96%2013.6471%20129.36%2014.0471C129.76%2014.4471%20129.96%2014.9387%20129.96%2015.5221C129.96%2016.0887%20129.76%2016.5721%20129.36%2016.9721C128.96%2017.3721%20128.468%2017.5721%20127.885%2017.5721C127.302%2017.5721%20126.802%2017.3721%20126.385%2016.9721C125.985%2016.5721%20125.785%2016.0887%20125.785%2015.5221Z'%20fill='%23FAF5E9'/%3e%3cpath%20d='M109.232%2025.7471C109.232%2024.3804%20109.457%2023.1804%20109.907%2022.1471C110.373%2021.1137%20111.032%2020.3137%20111.882%2019.7471C112.732%2019.1804%20113.723%2018.8971%20114.857%2018.8971C115.907%2018.8971%20116.84%2019.1971%20117.657%2019.7971C118.473%2020.3971%20119.073%2021.2221%20119.457%2022.2721H119.607V14.6971H123.157V32.1971H119.707L119.607%2029.2471H119.457C119.057%2030.2971%20118.448%2031.1221%20117.632%2031.7221C116.815%2032.3054%20115.89%2032.5971%20114.857%2032.5971C113.723%2032.5971%20112.732%2032.3221%20111.882%2031.7721C111.032%2031.2054%20110.373%2030.4054%20109.907%2029.3721C109.457%2028.3387%20109.232%2027.1304%20109.232%2025.7471ZM112.807%2025.7471C112.807%2027.0804%20113.115%2028.1471%20113.732%2028.9471C114.348%2029.7304%20115.173%2030.1221%20116.207%2030.1221C117.223%2030.1221%20118.04%2029.7887%20118.657%2029.1221C119.29%2028.4387%20119.607%2027.5721%20119.607%2026.5221V24.9971C119.607%2023.9304%20119.298%2023.0637%20118.682%2022.3971C118.065%2021.7137%20117.24%2021.3721%20116.207%2021.3721C115.173%2021.3721%20114.348%2021.7721%20113.732%2022.5721C113.115%2023.3554%20112.807%2024.4137%20112.807%2025.7471Z'%20fill='%23FAF5E9'/%3e%3cpath%20d='M99.5882%2019.2971H103.038L103.138%2023.3471H103.263C103.463%2022.3304%20103.755%2021.5221%20104.138%2020.9221C104.522%2020.3054%20105.063%2019.8471%20105.763%2019.5471C106.48%2019.2304%20107.422%2019.0721%20108.588%2019.0721V22.0721C106.755%2022.1387%20105.43%2022.4887%20104.613%2023.1221C104.097%2023.5054%20103.722%2024.0304%20103.488%2024.6971C103.255%2025.3637%20103.138%2026.2137%20103.138%2027.2471V32.1971H99.5882V19.2971Z'%20fill='%23FAF5E9'/%3e%3cpath%20d='M90.4743%2032.5971C89.1743%2032.5971%2087.9827%2032.3221%2086.8993%2031.7721C85.8327%2031.2054%2084.991%2030.3971%2084.3743%2029.3471C83.7577%2028.2971%2083.4493%2027.0804%2083.4493%2025.6971C83.4493%2024.3471%2083.7577%2023.1554%2084.3743%2022.1221C85.0077%2021.0887%2085.8577%2020.2971%2086.9243%2019.7471C87.991%2019.1804%2089.1743%2018.8971%2090.4743%2018.8971C91.7743%2018.8971%2092.9577%2019.1804%2094.0243%2019.7471C95.1077%2020.2971%2095.9577%2021.0887%2096.5743%2022.1221C97.2077%2023.1554%2097.5243%2024.3471%2097.5243%2025.6971C97.5243%2027.0804%2097.2077%2028.2971%2096.5743%2029.3471C95.9577%2030.3971%2095.1077%2031.2054%2094.0243%2031.7721C92.9577%2032.3221%2091.7743%2032.5971%2090.4743%2032.5971ZM87.0243%2025.6971C87.0243%2027.0637%2087.3243%2028.1054%2087.9243%2028.8221C88.541%2029.5387%2089.391%2029.8971%2090.4743%2029.8971C91.5577%2029.8971%2092.3993%2029.5387%2092.9993%2028.8221C93.616%2028.1054%2093.9243%2027.0637%2093.9243%2025.6971C93.9243%2024.3637%2093.616%2023.3471%2092.9993%2022.6471C92.3993%2021.9471%2091.5577%2021.5971%2090.4743%2021.5971C89.391%2021.5971%2088.541%2021.9471%2087.9243%2022.6471C87.3243%2023.3471%2087.0243%2024.3637%2087.0243%2025.6971Z'%20fill='%23FAF5E9'/%3e%3cpath%20d='M68.1419%2014.6971H71.6919V22.3721H71.8419C72.1919%2021.2554%2072.7752%2020.3971%2073.5919%2019.7971C74.4252%2019.1971%2075.4252%2018.8971%2076.5919%2018.8971C77.4586%2018.8971%2078.2502%2019.0971%2078.9669%2019.4971C79.7002%2019.8804%2080.2752%2020.4471%2080.6919%2021.1971C81.1252%2021.9471%2081.3419%2022.8387%2081.3419%2023.8721V32.1971H77.7919V24.8721C77.7919%2023.8221%2077.5419%2023.0304%2077.0419%2022.4971C76.5586%2021.9637%2075.8336%2021.6971%2074.8669%2021.6971C73.8836%2021.6971%2073.1086%2022.0304%2072.5419%2022.6971C71.9752%2023.3637%2071.6919%2024.2804%2071.6919%2025.4471V32.1971H68.1419V14.6971Z'%20fill='%23FAF5E9'/%3e%3cpath%20d='M57.7978%2032.597C56.0311%2032.597%2054.4894%2032.2304%2053.1728%2031.497C51.8728%2030.7637%2050.8644%2029.7054%2050.1478%2028.3221C49.4478%2026.9387%2049.0978%2025.3054%2049.0978%2023.4221C49.0978%2021.5387%2049.4478%2019.9137%2050.1478%2018.5471C50.8644%2017.1637%2051.8728%2016.1137%2053.1728%2015.397C54.4728%2014.6637%2056.0144%2014.2971%2057.7978%2014.2971C60.0644%2014.2971%2061.9144%2014.8721%2063.3478%2016.0221C64.7978%2017.1554%2065.6811%2018.7054%2065.9978%2020.6721H62.0478C61.7811%2019.6387%2061.2811%2018.8221%2060.5478%2018.2221C59.8144%2017.6221%2058.8978%2017.3221%2057.7978%2017.3221C56.3311%2017.3221%2055.1728%2017.8637%2054.3228%2018.9471C53.4894%2020.0137%2053.0728%2021.5054%2053.0728%2023.4221C53.0728%2025.3387%2053.5061%2026.8471%2054.3728%2027.9471C55.2394%2029.0304%2056.4228%2029.5721%2057.9228%2029.5721C59.1061%2029.5721%2060.0728%2029.1971%2060.8228%2028.4471C61.5894%2027.6971%2062.0478%2026.6971%2062.1978%2025.4471H66.0978C65.9644%2026.8971%2065.5478%2028.1637%2064.8478%2029.2471C64.1644%2030.3137%2063.2228%2031.1387%2062.0228%2031.722C60.8228%2032.3054%2059.4144%2032.597%2057.7978%2032.597Z'%20fill='%23FAF5E9'/%3e%3c/svg%3e", y2 = {
6
- home: u2,
7
- projects: P,
8
- folder: P,
9
- organization: O,
10
- users: O,
11
- dashboard: C2,
12
- history: j,
13
- sessions: j,
14
- monitoring: D,
15
- activity: D,
16
- insights: c2,
17
- notifications: d2,
18
- integrations: l2,
19
- settings: s2,
20
- usage: i2,
21
- docs: R,
22
- documentation: R,
23
- agents: a2,
24
- security: o2,
25
- configuration: n2,
26
- workflow: t2
27
- };
28
- function A(r) {
29
- if (r)
30
- return `sidebar-nav-${String(r)}`;
31
- }
32
- function U(r) {
33
- return r ? typeof r == "string" ? y2[r.toLowerCase()] || W : r : W;
34
- }
35
- function B2({
36
- menuItems: r = [],
37
- activeId: e,
38
- onNavigate: a,
39
- collapsed: s,
40
- onToggleCollapse: f,
41
- header: x,
42
- footer: C,
43
- width: y = 244,
44
- collapsedWidth: b = 56,
45
- expandedParentId: i = void 0,
46
- defaultExpandedParentId: g = null,
47
- onExpandedParentChange: v,
48
- singleExpand: p = !1
49
- }) {
50
- const [k, o] = T(!1), u = s !== void 0 ? s : k, q = f || (() => o(!k)), [X, J] = T(() => {
51
- const t = {};
52
- return r.forEach((l) => {
53
- var d;
54
- if ((d = l.children) != null && d.length) {
55
- const h = l.children.some((m) => m.id === e || m.active);
56
- t[l.id] = h;
57
- }
58
- }), t;
59
- }), B = V(
60
- () => new Set(r.filter((t) => {
61
- var l;
62
- return (l = t.children) == null ? void 0 : l.length;
63
- }).map((t) => t.id)),
64
- [r]
65
- ), M = V(() => {
66
- const t = r.find(
67
- (l) => {
68
- var d;
69
- return ((d = l.children) == null ? void 0 : d.length) && (l.id === e || !!l.active || l.children.some((h) => h.id === e || h.active));
70
- }
71
- );
72
- return (t == null ? void 0 : t.id) ?? null;
73
- }, [r, e]), [w, F] = T(() => {
74
- const t = new Set(
75
- r.filter((d) => {
76
- var h;
77
- return (h = d.children) == null ? void 0 : h.length;
78
- }).map((d) => d.id)
79
- );
80
- if (g != null && t.has(g))
81
- return g;
82
- const l = r.find(
83
- (d) => {
84
- var h;
85
- return ((h = d.children) == null ? void 0 : h.length) && (d.id === e || !!d.active || d.children.some((m) => m.id === e || m.active));
86
- }
87
- );
88
- return (l == null ? void 0 : l.id) ?? null;
89
- }), S = i !== void 0, L = S ? i ?? null : B.has(w) ? w : M ?? null;
90
- E(() => {
91
- if (S || !p) return;
92
- (w == null || !B.has(w)) && F(M ?? null);
93
- }, [
94
- M,
95
- S,
96
- p,
97
- w,
98
- B
99
- ]);
100
- const I = (t) => {
101
- S || F(t), v == null || v(t);
102
- }, z = (t) => {
103
- if (p) {
104
- I(L === t ? null : t);
105
- return;
106
- }
107
- J((l) => ({ ...l, [t]: !l[t] }));
108
- }, K = (t) => p ? L === t : !!X[t], N = (t) => {
109
- if (p) {
110
- L !== t.id && I(t.id), a == null || a(t.href || t.id);
111
- return;
112
- }
113
- z(t.id);
114
- }, Z = u ? b : y;
115
- return /* @__PURE__ */ c(
116
- "nav",
117
- {
118
- style: {
119
- width: Z,
120
- minWidth: Z,
121
- height: "100%",
122
- display: "flex",
123
- flexDirection: "column",
124
- alignItems: "flex-start",
125
- padding: u ? "0" : "0 0 24px 24px",
126
- gap: 24,
127
- background: "var(--Background-Inverse, #0B0B0B)",
128
- fontFamily: "var(--font-sans)",
129
- transition: "width 0.2s ease, min-width 0.2s ease",
130
- overflow: "hidden",
131
- flexShrink: 0
132
- },
133
- children: [
134
- /* @__PURE__ */ c(
135
- "div",
136
- {
137
- style: {
138
- display: "flex",
139
- alignItems: "center",
140
- justifyContent: u ? "center" : "space-between",
141
- padding: u ? "12px 0" : "12px 0 0",
142
- flexShrink: 0,
143
- width: "100%"
144
- },
145
- children: [
146
- !u && /* @__PURE__ */ n("div", { style: { flexShrink: 0 }, children: x !== void 0 ? x : /* @__PURE__ */ n("img", { src: x2, alt: "Chordia", style: { height: 28, objectFit: "contain" } }) }),
147
- /* @__PURE__ */ n(
148
- "button",
149
- {
150
- onClick: q,
151
- title: u ? "Expand sidebar" : "Collapse sidebar",
152
- style: {
153
- display: "flex",
154
- alignItems: "center",
155
- justifyContent: "center",
156
- width: 28,
157
- height: 28,
158
- borderRadius: "var(--radius-sm)",
159
- border: "none",
160
- background: "transparent",
161
- color: "rgba(255, 255, 255, 0.5)",
162
- cursor: "pointer",
163
- transition: "background 0.15s ease, color 0.15s ease",
164
- flexShrink: 0
165
- },
166
- onMouseEnter: (t) => {
167
- t.currentTarget.style.background = "rgba(255, 255, 255, 0.08)", t.currentTarget.style.color = "rgba(255, 255, 255, 0.8)";
168
- },
169
- onMouseLeave: (t) => {
170
- t.currentTarget.style.background = "transparent", t.currentTarget.style.color = "rgba(255, 255, 255, 0.5)";
171
- },
172
- children: u ? /* @__PURE__ */ n(r2, { size: 16 }) : /* @__PURE__ */ n(e2, { size: 16 })
173
- }
174
- )
175
- ]
176
- }
177
- ),
178
- /* @__PURE__ */ n(
179
- "div",
180
- {
181
- className: "custom-thin-scrollbar",
182
- style: {
183
- flex: 1,
184
- overflowY: "auto",
185
- overflowX: "hidden",
186
- padding: u ? "0 8px" : "0",
187
- width: "100%"
188
- },
189
- children: r.map((t, l) => {
190
- var d;
191
- return /* @__PURE__ */ c(Q.Fragment, { children: [
192
- t.section && !u && /* @__PURE__ */ n(
193
- "div",
194
- {
195
- style: {
196
- fontSize: "var(--text-xs)",
197
- fontWeight: 650,
198
- letterSpacing: "0.08em",
199
- textTransform: "uppercase",
200
- color: "rgba(255, 255, 255, 0.35)",
201
- padding: "16px 8px 6px",
202
- lineHeight: 1
203
- },
204
- children: t.section
205
- }
206
- ),
207
- (d = t.children) != null && d.length ? /* @__PURE__ */ n(
208
- b2,
209
- {
210
- item: t,
211
- activeId: e,
212
- expanded: K(t.id),
213
- onPrimaryClick: () => N(t),
214
- onToggleOnly: () => z(t.id),
215
- onNavigate: a,
216
- collapsed: u,
217
- singleExpand: p
218
- }
219
- ) : /* @__PURE__ */ n(
220
- Y,
221
- {
222
- item: t,
223
- active: t.id === e || t.active,
224
- onNavigate: a,
225
- collapsed: u
226
- }
227
- )
228
- ] }, t.id || l);
229
- })
230
- }
231
- ),
232
- C && !u && /* @__PURE__ */ n(
233
- "div",
234
- {
235
- style: {
236
- padding: "12px 16px",
237
- borderTop: "1px solid rgba(255, 255, 255, 0.08)",
238
- flexShrink: 0,
239
- width: "100%"
240
- },
241
- children: C
242
- }
243
- )
244
- ]
245
- }
246
- );
247
- }
248
- function Y({ item: r, active: e, onNavigate: a, collapsed: s }) {
249
- const f = U(r.icon), x = typeof r.icon != "string" && typeof r.icon < "u", C = $(null), [y, b] = T(!1);
250
- return E(() => {
251
- if (s) return;
252
- const i = () => {
253
- C.current && b(C.current.scrollWidth > C.current.clientWidth);
254
- };
255
- return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
256
- }, [r.label, s]), /* @__PURE__ */ c(
257
- "button",
258
- {
259
- id: A(r.id),
260
- onClick: () => a == null ? void 0 : a(r.href || r.id),
261
- title: s || y ? r.label : void 0,
262
- style: {
263
- display: "flex",
264
- alignItems: "center",
265
- gap: s ? 0 : 12,
266
- justifyContent: s ? "center" : "flex-start",
267
- width: "100%",
268
- padding: s ? "10px 0" : "12px 24px 12px 12px",
269
- borderRadius: e ? "4px 0 0 4px" : "4px",
270
- borderRight: e ? "2px solid #00A66E" : "2px solid transparent",
271
- borderTop: "none",
272
- borderBottom: "none",
273
- borderLeft: "none",
274
- background: e ? "var(--Background-MonoPressed, #323232)" : "transparent",
275
- color: e ? "var(--Brand-400, #33B88B)" : "var(--Content-TertiaryInverse, #B2AEA8)",
276
- fontWeight: 500,
277
- fontSize: "12px",
278
- fontStyle: "normal",
279
- lineHeight: "120%",
280
- textTransform: "uppercase",
281
- fontFamily: "var(--font-sans)",
282
- cursor: "pointer",
283
- textAlign: "left",
284
- transition: "background 0.15s ease, color 0.1s ease, border-color 0.15s ease",
285
- marginBottom: 2
286
- },
287
- onMouseEnter: (i) => {
288
- e || (i.currentTarget.style.background = "var(--Background-MonoPressed, #323232)", i.currentTarget.style.color = "var(--Brand-400, #33B88B)");
289
- },
290
- onMouseLeave: (i) => {
291
- e || (i.currentTarget.style.background = "transparent", i.currentTarget.style.color = "var(--Content-TertiaryInverse, #B2AEA8)");
292
- },
293
- children: [
294
- x ? /* @__PURE__ */ n("span", { style: { flexShrink: 0, display: "flex" }, children: r.icon }) : /* @__PURE__ */ n(
295
- f,
296
- {
297
- size: 18,
298
- style: {
299
- flexShrink: 0,
300
- color: "inherit",
301
- cursor: "pointer"
302
- },
303
- onClick: (i) => {
304
- i.stopPropagation(), onToggleOnly();
305
- }
306
- }
307
- ),
308
- !s && /* @__PURE__ */ n(
309
- "span",
310
- {
311
- ref: C,
312
- style: {
313
- overflow: "hidden",
314
- textOverflow: "ellipsis",
315
- whiteSpace: "nowrap"
316
- },
317
- children: r.label
318
- }
319
- )
320
- ]
321
- }
322
- );
323
- }
324
- function b2({
325
- item: r,
326
- activeId: e,
327
- expanded: a,
328
- onPrimaryClick: s,
329
- onToggleOnly: f,
330
- onNavigate: x,
331
- collapsed: C,
332
- singleExpand: y
333
- }) {
334
- var k;
335
- const b = U(r.icon), i = r.id === e || !!r.active || ((k = r.children) == null ? void 0 : k.some((o) => o.id === e || o.active)), g = $(null), [v, p] = T(!1);
336
- return E(() => {
337
- if (C) return;
338
- const o = () => {
339
- g.current && p(g.current.scrollWidth > g.current.clientWidth);
340
- };
341
- return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
342
- }, [r.label, C]), C ? /* @__PURE__ */ n(
343
- "button",
344
- {
345
- id: A(r.id),
346
- onClick: s,
347
- style: {
348
- display: "flex",
349
- alignItems: "center",
350
- justifyContent: "center",
351
- width: "100%",
352
- padding: "10px 0",
353
- borderRadius: "4px",
354
- border: "none",
355
- background: i ? "var(--Background-MonoPressed, #323232)" : "transparent",
356
- color: i ? "var(--Brand-400, #33B88B)" : "var(--Content-TertiaryInverse, #B2AEA8)",
357
- cursor: "pointer",
358
- marginBottom: 2,
359
- transition: "background 0.15s ease"
360
- },
361
- onMouseEnter: (o) => {
362
- i || (o.currentTarget.style.background = "var(--Background-MonoPressed, #323232)", o.currentTarget.style.color = "var(--Brand-400, #33B88B)");
363
- },
364
- onMouseLeave: (o) => {
365
- i || (o.currentTarget.style.background = "transparent", o.currentTarget.style.color = "var(--Content-TertiaryInverse, #B2AEA8)");
366
- },
367
- children: /* @__PURE__ */ n(
368
- b,
369
- {
370
- size: 18,
371
- style: { color: "inherit" }
372
- }
373
- )
374
- }
375
- ) : /* @__PURE__ */ c("div", { style: { marginBottom: 2 }, children: [
376
- /* @__PURE__ */ c(
377
- "button",
378
- {
379
- id: A(r.id),
380
- onClick: s,
381
- style: {
382
- display: "flex",
383
- alignItems: "center",
384
- gap: 12,
385
- width: "100%",
386
- padding: "12px 24px 12px 12px",
387
- borderRadius: "4px",
388
- border: "none",
389
- background: "transparent",
390
- color: i ? "var(--Brand-400, #33B88B)" : "var(--Content-TertiaryInverse, #B2AEA8)",
391
- fontWeight: 700,
392
- fontSize: "12px",
393
- fontStyle: "normal",
394
- lineHeight: "120%",
395
- textTransform: "uppercase",
396
- fontFamily: "var(--font-sans)",
397
- cursor: "pointer",
398
- textAlign: "left",
399
- transition: "background 0.15s ease, color 0.15s ease"
400
- },
401
- onMouseEnter: (o) => {
402
- o.currentTarget.style.background = "var(--Background-MonoPressed, #323232)", o.currentTarget.style.color = "var(--Brand-400, #33B88B)";
403
- },
404
- onMouseLeave: (o) => {
405
- o.currentTarget.style.background = "transparent", i ? o.currentTarget.style.color = "var(--Brand-400, #33B88B)" : o.currentTarget.style.color = "var(--Content-TertiaryInverse, #B2AEA8)";
406
- },
407
- children: [
408
- /* @__PURE__ */ n(
409
- b,
410
- {
411
- size: 18,
412
- style: {
413
- flexShrink: 0,
414
- color: "inherit"
415
- }
416
- }
417
- ),
418
- v ? /* @__PURE__ */ c(f2, { children: [
419
- /* @__PURE__ */ n(g2, { asChild: !0, children: /* @__PURE__ */ n(
420
- "span",
421
- {
422
- ref: g,
423
- style: {
424
- flex: 1,
425
- overflow: "hidden",
426
- textOverflow: "ellipsis",
427
- whiteSpace: "nowrap"
428
- },
429
- children: r.label
430
- }
431
- ) }),
432
- /* @__PURE__ */ n(h2, { side: "top", className: "max-w-[28ch] whitespace-normal break-words", children: r.label })
433
- ] }) : /* @__PURE__ */ n(
434
- "span",
435
- {
436
- ref: g,
437
- style: {
438
- flex: 1,
439
- overflow: "hidden",
440
- textOverflow: "ellipsis",
441
- whiteSpace: "nowrap"
442
- },
443
- children: r.label
444
- }
445
- ),
446
- /* @__PURE__ */ n(
447
- _,
448
- {
449
- size: 14,
450
- onClick: (o) => {
451
- o.stopPropagation(), f();
452
- },
453
- style: {
454
- flexShrink: 0,
455
- color: "inherit",
456
- opacity: 0.7,
457
- transform: a ? "rotate(0deg)" : "rotate(-90deg)",
458
- transition: "transform 0.2s ease",
459
- cursor: y ? "pointer" : "inherit"
460
- }
461
- }
462
- )
463
- ]
464
- }
465
- ),
466
- a && /* @__PURE__ */ n("div", { style: { paddingLeft: 18, marginTop: 2 }, children: r.children.map((o, u) => /* @__PURE__ */ n(
467
- Y,
468
- {
469
- item: o,
470
- active: o.id === e || o.active,
471
- onNavigate: x,
472
- collapsed: !1
473
- },
474
- o.id || u
475
- )) })
476
- ] });
477
- }
478
- const H = [
479
- "#5a8a6e",
480
- // sage green
481
- "#b07d4f",
482
- // warm amber
483
- "#7a8fa6",
484
- // slate blue
485
- "#c47a5a",
486
- // terracotta
487
- "#6a9a8a",
488
- // teal
489
- "#a0785a",
490
- // clay
491
- "#5a7a9a",
492
- // steel blue
493
- "#9a7a5a"
494
- // caramel
495
- ];
496
- function v2(r) {
497
- if (!r) return H[0];
498
- let e = 0;
499
- for (let a = 0; a < r.length; a++) e = (e << 5) - e + r.charCodeAt(a) | 0;
500
- return H[Math.abs(e) % H.length];
501
- }
502
- function M2({
503
- logo: r,
504
- title: e,
505
- userName: a,
506
- userEmail: s,
507
- userInitials: f,
508
- userRole: x,
509
- onSignOut: C,
510
- children: y,
511
- trailing: b,
512
- userMenu: i,
513
- height: g = 48,
514
- style: v
515
- }) {
516
- const p = a || s || "", k = f || k2(p);
517
- return /* @__PURE__ */ c(
518
- "header",
519
- {
520
- style: {
521
- display: "flex",
522
- alignItems: "center",
523
- justifyContent: "space-between",
524
- padding: "0 20px",
525
- height: g,
526
- borderBottom: "1px solid var(--border)",
527
- background: "var(--primary-foreground)",
528
- flexShrink: 0,
529
- fontFamily: "var(--font-sans)",
530
- position: "sticky",
531
- top: 0,
532
- zIndex: 1e3,
533
- ...v
534
- },
535
- children: [
536
- /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 10, flexShrink: 0 }, children: [
537
- r !== void 0 ? r : /* @__PURE__ */ n("span", { style: {
538
- fontSize: "var(--text-lg)",
539
- fontWeight: 700,
540
- fontFamily: "var(--font-display)",
541
- color: "var(--text-ink)",
542
- letterSpacing: "-0.01em"
543
- }, children: "Chordia" }),
544
- e && /* @__PURE__ */ c(G, { children: [
545
- /* @__PURE__ */ n("span", { style: {
546
- width: 1,
547
- height: 18,
548
- background: "var(--border)",
549
- flexShrink: 0
550
- } }),
551
- /* @__PURE__ */ n("span", { style: {
552
- fontSize: "var(--text-md)",
553
- fontWeight: 500,
554
- color: "var(--text-muted)"
555
- }, children: e })
556
- ] })
557
- ] }),
558
- y && /* @__PURE__ */ n("div", { style: {
559
- display: "flex",
560
- alignItems: "center",
561
- gap: 8,
562
- flex: 1,
563
- justifyContent: "center",
564
- minWidth: 0
565
- }, children: y }),
566
- /* @__PURE__ */ c(
567
- "div",
568
- {
569
- style: {
570
- display: "flex",
571
- alignItems: "center",
572
- gap: 10,
573
- flexShrink: 0
574
- },
575
- children: [
576
- b,
577
- i || p && /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
578
- /* @__PURE__ */ n("div", { style: {
579
- width: 30,
580
- height: 30,
581
- borderRadius: "50%",
582
- background: v2(p),
583
- display: "flex",
584
- alignItems: "center",
585
- justifyContent: "center",
586
- flexShrink: 0
587
- }, children: /* @__PURE__ */ n("span", { style: {
588
- fontSize: 11,
589
- fontWeight: 600,
590
- color: "#fff",
591
- letterSpacing: "0.02em",
592
- lineHeight: 1
593
- }, children: k }) }),
594
- /* @__PURE__ */ c("div", { style: { display: "flex", flexDirection: "column", gap: 1 }, children: [
595
- /* @__PURE__ */ n("span", { style: {
596
- fontSize: "var(--text-sm)",
597
- fontWeight: 550,
598
- color: "var(--text-strong)",
599
- lineHeight: 1.2
600
- }, children: p }),
601
- x && /* @__PURE__ */ n("span", { style: {
602
- fontSize: "var(--text-xs)",
603
- color: "var(--text-muted)",
604
- lineHeight: 1.2
605
- }, children: x })
606
- ] }),
607
- C && /* @__PURE__ */ n(
608
- "button",
609
- {
610
- onClick: C,
611
- title: "Sign out",
612
- style: {
613
- display: "flex",
614
- alignItems: "center",
615
- justifyContent: "center",
616
- width: 28,
617
- height: 28,
618
- borderRadius: "var(--radius-sm)",
619
- border: "none",
620
- background: "transparent",
621
- color: "var(--text-faint)",
622
- cursor: "pointer",
623
- transition: "background 0.15s ease, color 0.15s ease"
624
- },
625
- onMouseEnter: (o) => {
626
- o.currentTarget.style.background = "var(--hover-warm)", o.currentTarget.style.color = "var(--text-muted)";
627
- },
628
- onMouseLeave: (o) => {
629
- o.currentTarget.style.background = "transparent", o.currentTarget.style.color = "var(--text-faint)";
630
- },
631
- children: /* @__PURE__ */ n(p2, { size: 14 })
632
- }
633
- )
634
- ] })
635
- ]
636
- }
637
- )
638
- ]
639
- }
640
- );
641
- }
642
- function L2({ label: r, color: e = "var(--text-muted)", active: a, onClick: s }) {
643
- return /* @__PURE__ */ c(
644
- "button",
645
- {
646
- onClick: s,
647
- style: {
648
- display: "flex",
649
- alignItems: "center",
650
- gap: 4,
651
- fontSize: "var(--text-sm)",
652
- fontWeight: 500,
653
- fontFamily: "var(--font-sans)",
654
- padding: "4px 10px",
655
- borderRadius: "var(--radius-sm)",
656
- border: `1px solid color-mix(in srgb, ${e} 30%, transparent)`,
657
- background: `color-mix(in srgb, ${e} 10%, transparent)`,
658
- color: e,
659
- cursor: "pointer",
660
- transition: "background 0.15s ease, border-color 0.15s ease"
661
- },
662
- onMouseEnter: (f) => {
663
- f.currentTarget.style.background = `color-mix(in srgb, ${e} 18%, transparent)`;
664
- },
665
- onMouseLeave: (f) => {
666
- f.currentTarget.style.background = `color-mix(in srgb, ${e} 10%, transparent)`;
667
- },
668
- children: [
669
- r,
670
- /* @__PURE__ */ n(
671
- _,
672
- {
673
- size: 12,
674
- style: {
675
- transform: a ? "rotate(180deg)" : "rotate(0deg)",
676
- transition: "transform 0.2s ease",
677
- opacity: 0.7
678
- }
679
- }
680
- )
681
- ]
682
- }
683
- );
684
- }
685
- function H2({ open: r, onClose: e, children: a, align: s = "left" }) {
686
- return r ? /* @__PURE__ */ c(G, { children: [
687
- /* @__PURE__ */ n(
688
- "div",
689
- {
690
- onClick: e,
691
- style: { position: "fixed", inset: 0, zIndex: 99, background: "rgba(0,0,0,0.03)" }
692
- }
693
- ),
694
- /* @__PURE__ */ n("div", { style: {
695
- position: "absolute",
696
- top: "100%",
697
- [s === "right" ? "right" : "left"]: 0,
698
- marginTop: 4,
699
- zIndex: 100,
700
- background: "#fff",
701
- border: "1px solid var(--border)",
702
- borderRadius: "var(--radius)",
703
- padding: 4,
704
- minWidth: 200,
705
- maxHeight: 280,
706
- overflowY: "auto",
707
- boxShadow: "0 8px 24px rgba(0,0,0,0.12)"
708
- }, children: a })
709
- ] }) : null;
710
- }
711
- function A2({ label: r, active: e, onClick: a }) {
712
- return /* @__PURE__ */ n(
713
- "div",
714
- {
715
- onClick: a,
716
- style: {
717
- padding: "8px 10px",
718
- borderRadius: "var(--radius-sm)",
719
- cursor: "pointer",
720
- fontSize: "var(--text-sm)",
721
- color: e ? "var(--text-ink)" : "var(--text-base)",
722
- fontWeight: e ? 600 : 400,
723
- fontFamily: "var(--font-sans)",
724
- background: e ? "var(--hover-warm)" : "transparent",
725
- transition: "background 0.1s ease"
726
- },
727
- onMouseEnter: (s) => {
728
- e || (s.currentTarget.style.background = "var(--hover-warm-subtle)");
729
- },
730
- onMouseLeave: (s) => {
731
- e || (s.currentTarget.style.background = "transparent");
732
- },
733
- children: r
734
- }
735
- );
736
- }
737
- function E2({ connected: r, label: e }) {
738
- return /* @__PURE__ */ n("span", { style: {
739
- fontSize: "var(--text-xs)",
740
- fontFamily: "var(--font-sans)",
741
- padding: "3px 10px",
742
- borderRadius: 12,
743
- border: `1px solid ${r ? "var(--state-present)" : "var(--border)"}`,
744
- color: r ? "var(--state-present)" : "var(--text-faint)",
745
- background: r ? "rgba(37,163,114,0.08)" : "transparent",
746
- transition: "all 0.2s ease"
747
- }, children: e || (r ? "Connected" : "Disconnected") });
748
- }
749
- function k2(r) {
750
- if (!r) return "?";
751
- const e = r.trim().split(/\s+/);
752
- return e.length >= 2 ? (e[0][0] + e[e.length - 1][0]).toUpperCase() : r.slice(0, 2).toUpperCase();
753
- }
754
- export {
755
- H2 as N,
756
- B2 as S,
757
- A2 as a,
758
- L2 as b,
759
- M2 as c,
760
- E2 as d
761
- };
762
- //# sourceMappingURL=NavigationBar.es.js.map