@nubisco/ui 5.46.1 → 5.47.1

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 (345) hide show
  1. package/dist/{AccordionItem-C4_5XDlJ.js → AccordionItem-BybHChPs.js} +2 -2
  2. package/dist/{AccordionItem-CvdHihy_.cjs → AccordionItem-D6mruuMX.cjs} +1 -1
  3. package/dist/{ActionGroup-PgnAwRgJ.cjs → ActionGroup-BW4jTdT0.cjs} +1 -1
  4. package/dist/{ActionGroup-DVzC7pb-.js → ActionGroup-D3Gl1-JX.js} +2 -2
  5. package/dist/{AiLabel-CPINOrQd.js → AiLabel-DSiCpLvM.js} +2 -2
  6. package/dist/{AiLabel-BK3oecvT.cjs → AiLabel-G7b92e7Q.cjs} +1 -1
  7. package/dist/{AiProvider-Dfl-y2Wy.cjs → AiProvider-CXIEBABi.cjs} +1 -1
  8. package/dist/{AiProvider-rvV85R7w.js → AiProvider-HhveBBc_.js} +6 -6
  9. package/dist/{AiUsage-D1xgxa2C.js → AiUsage-CFdp1EMH.js} +2 -2
  10. package/dist/{AiUsage-62kxTT8F.cjs → AiUsage-DFo022zD.cjs} +1 -1
  11. package/dist/{BackToTop-Bgq4txNz.js → BackToTop-BAyTy5SN.js} +1 -1
  12. package/dist/{BackToTop-FeQ4kykw.cjs → BackToTop-DvNNsQcS.cjs} +1 -1
  13. package/dist/{Badge-Ce3NRrp_.cjs → Badge-BC7sqGRj.cjs} +1 -1
  14. package/dist/{Badge-D37sr-14.js → Badge-DVujzLka.js} +2 -2
  15. package/dist/{Banner-C6t1fbs0.cjs → Banner-BWfbWQjt.cjs} +1 -1
  16. package/dist/{Banner-Cb3GrxMM.js → Banner-CsxChQ3U.js} +1 -1
  17. package/dist/{BlueprintControls-HuvP3JgD.cjs → BlueprintControls-BwZeMwyC.cjs} +1 -1
  18. package/dist/{BlueprintControls-B9TveRQm.js → BlueprintControls-bMZ4hJTJ.js} +1 -1
  19. package/dist/{Board-CpSPRwYK.cjs → Board-BVpQ2OAm.cjs} +1 -1
  20. package/dist/{Board-m5s6Dtby.js → Board-CovoTYff.js} +2 -2
  21. package/dist/Breadcrumbs-BievPitp.js +184 -0
  22. package/dist/Breadcrumbs-BxhAEegP.cjs +1 -0
  23. package/dist/{Briefing-DH_mh7fN.js → Briefing-DOKq89AG.js} +3 -3
  24. package/dist/{Briefing-DUhMbdSV.cjs → Briefing-DVkZ2qDG.cjs} +1 -1
  25. package/dist/{BriefingDestination-D2_W_n7J.js → BriefingDestination-Bt07cVas.js} +2 -2
  26. package/dist/{BriefingDestination-LfgeTUzh.cjs → BriefingDestination-DymsWBLL.cjs} +1 -1
  27. package/dist/{Button-C-OsrbBY.js → Button-Cepcs335.js} +2 -2
  28. package/dist/{Button-Cjtw1CkB.cjs → Button-tmwLbryG.cjs} +1 -1
  29. package/dist/{Card-B1Snkf7r.cjs → Card-BNmkM0Cr.cjs} +1 -1
  30. package/dist/{Card-__tew6aW.js → Card-D5brHuVU.js} +2 -2
  31. package/dist/{CheckboxGroup-CUIlWTqZ.js → CheckboxGroup-B2GnAaDG.js} +3 -3
  32. package/dist/{CheckboxGroup-DZYMcUYF.cjs → CheckboxGroup-DJs_1dDP.cjs} +1 -1
  33. package/dist/{ColorStrip-ms8u4-on.js → ColorStrip-BSzZPdsl.js} +3 -3
  34. package/dist/{ColorStrip-oYITobr0.cjs → ColorStrip-CeQebn7z.cjs} +1 -1
  35. package/dist/{CommandPalette-CsFZYJBG.cjs → CommandPalette--Xg6G2hP.cjs} +1 -1
  36. package/dist/{CommandPalette-DTl9rvF0.js → CommandPalette-C-Hz6lEX.js} +1 -1
  37. package/dist/{Confirm-BVTBZR2b.js → Confirm-BZizwCO1.js} +5 -5
  38. package/dist/{Confirm-19CDmfES.cjs → Confirm-CquZnoj-.cjs} +1 -1
  39. package/dist/{CopyButton-CetR7hHC.cjs → CopyButton-Bctl1-xC.cjs} +1 -1
  40. package/dist/{CopyButton-Dgt2DbUH.js → CopyButton-Bm1kmCNv.js} +1 -1
  41. package/dist/{DataTable-CaJYOtLk.js → DataTable-Bm6OM1uz.js} +3 -3
  42. package/dist/{DataTable-6Z8IZeHf.cjs → DataTable-DrWZCe55.cjs} +1 -1
  43. package/dist/{DatePicker-DN_5RDB8.js → DatePicker-On8SAmN4.js} +4 -4
  44. package/dist/{DatePicker-BXZaGWsS.cjs → DatePicker-wMeO_BAn.cjs} +1 -1
  45. package/dist/{DragHandle-B673DaN2.cjs → DragHandle-BiRZHXXV.cjs} +1 -1
  46. package/dist/{DragHandle-CaK-4YhE.js → DragHandle-CCsaiV6I.js} +1 -1
  47. package/dist/{EmptyState-CpRnEfbE.js → EmptyState-CAEo8pSi.js} +1 -1
  48. package/dist/{EmptyState-DmBAVLu8.cjs → EmptyState-DNIDvUi9.cjs} +1 -1
  49. package/dist/{FileUploader-3vqReJ1p.cjs → FileUploader-CrtHrF9n.cjs} +1 -1
  50. package/dist/{FileUploader-DbkSKQbb.js → FileUploader-D9H4klul.js} +3 -3
  51. package/dist/{Form-CTlKzud3.cjs → Form-DLQDzw3T.cjs} +1 -1
  52. package/dist/{Form-CU8I3tRi.js → Form-KF4-rBll.js} +1 -1
  53. package/dist/Grid-BEezjVdC.cjs +1 -0
  54. package/dist/{Grid-CJFQvcko.js → Grid-CVFkhOfa.js} +14 -5
  55. package/dist/Icon-Bwec1Nfv.cjs +1 -0
  56. package/dist/{Icon-rREAqsu0.js → Icon-DwhI2DFK.js} +12 -10
  57. package/dist/{ImageCropper-DsPY_FK-.cjs → ImageCropper-B6aiAxIi.cjs} +1 -1
  58. package/dist/{ImageCropper-DJdFeFEa.js → ImageCropper-xicq_NFy.js} +2 -2
  59. package/dist/{ImagePicker-BGSGBibF.cjs → ImagePicker-CTfZfaq9.cjs} +1 -1
  60. package/dist/{ImagePicker-BX28wROp.js → ImagePicker-DNtBcBbo.js} +2 -2
  61. package/dist/{InfoHint-CyuBCIgq.cjs → InfoHint-DaBGsnrK.cjs} +1 -1
  62. package/dist/{InfoHint-CC4cvFsD.js → InfoHint-KtTzQk1z.js} +1 -1
  63. package/dist/{InlineEdit-CBeh3e_w.js → InlineEdit-CqMv5XBG.js} +1 -1
  64. package/dist/{InlineEdit-_fLd4ZNk.cjs → InlineEdit-JuytHnWO.cjs} +1 -1
  65. package/dist/{InlineLoading-DTni8I9v.cjs → InlineLoading-CUycVgGa.cjs} +1 -1
  66. package/dist/{InlineLoading-Cs5QZd9l.js → InlineLoading-D7ku7ugr.js} +1 -1
  67. package/dist/{Label-71QAuWf4.cjs → Label-B9x4-i1C.cjs} +1 -1
  68. package/dist/{Label-BEW_5nYq.js → Label-D1_MfuTA.js} +1 -1
  69. package/dist/MenuItem-D6hIjWBm.cjs +1 -0
  70. package/dist/MenuItem-DSFh9Akf.js +94 -0
  71. package/dist/{Message-BpDOzu5W.cjs → Message-COxRTtqI.cjs} +1 -1
  72. package/dist/{Message-CqVP4y4Y.js → Message-DlluDLCZ.js} +1 -1
  73. package/dist/{Modal-wtlHUSSo.js → Modal-C75Kf4t7.js} +3 -3
  74. package/dist/{Modal-CMF77gQX.cjs → Modal-F7rA1EFq.cjs} +1 -1
  75. package/dist/{NotificationCenter-CGNa7MoB.cjs → NotificationCenter-C3D55kLa.cjs} +1 -1
  76. package/dist/{NotificationCenter-DtsfXKrM.js → NotificationCenter-bGbvX-iA.js} +4 -4
  77. package/dist/{NotificationCenterItem-DOEvOsiy.js → NotificationCenterItem-BIhM59Xh.js} +1 -1
  78. package/dist/{NotificationCenterItem-hSxc82yG.cjs → NotificationCenterItem-Dpj3jDEN.cjs} +1 -1
  79. package/dist/{NumberInput-ggLG8zsa.js → NumberInput-DZ2JIarM.js} +3 -3
  80. package/dist/{NumberInput-x1lY-01L.cjs → NumberInput-Daauv-mS.cjs} +1 -1
  81. package/dist/{Pagination-6FLCG39u.cjs → Pagination-BiXAAS94.cjs} +1 -1
  82. package/dist/{Pagination-gc-SNeLt.js → Pagination-oWMOC9Qw.js} +2 -2
  83. package/dist/{ProgressBar-RCt7Y6mi.js → ProgressBar-B26wk0nU.js} +4 -4
  84. package/dist/{ProgressBar-CHyFQlL4.cjs → ProgressBar-DukxUvmt.cjs} +1 -1
  85. package/dist/{Radio-BSl4W12s.cjs → Radio-DuW0s5JD.cjs} +1 -1
  86. package/dist/{Radio-DHmTMvjM.js → Radio-LrqGD0NJ.js} +3 -3
  87. package/dist/{ReorderList-JLX01ViS.cjs → ReorderList-97H8hsPW.cjs} +1 -1
  88. package/dist/{ReorderList-BgowtiZj.js → ReorderList-BMIf_x8B.js} +1 -1
  89. package/dist/{Select-DPrncZll.js → Select-Dah-tYeb.js} +4 -4
  90. package/dist/{Select-cRjKYI2t.cjs → Select-Z6XKZwgn.cjs} +1 -1
  91. package/dist/{Shell-B-kBO9pJ.cjs → Shell-BCBzgwZl.cjs} +1 -1
  92. package/dist/{Shell-Da_Updzh.js → Shell-DSY0rcWY.js} +1 -1
  93. package/dist/{ShellPanel-BaJQxg3h.cjs → ShellPanel-CB_Rn_JF.cjs} +1 -1
  94. package/dist/{ShellPanel-CoP2tWLo.js → ShellPanel-DAOuAPdn.js} +1 -1
  95. package/dist/{SidebarBrand-DgGfdnZE.cjs → SidebarBrand-DLKszSpJ.cjs} +1 -1
  96. package/dist/{SidebarBrand-Bvfoqveo.js → SidebarBrand-ZZknryCa.js} +1 -1
  97. package/dist/{SidebarCollapseToggle-BYTXsEKz.cjs → SidebarCollapseToggle-CCNVQPFh.cjs} +1 -1
  98. package/dist/{SidebarCollapseToggle-CjRALrn2.js → SidebarCollapseToggle-Dq-A6NAJ.js} +1 -1
  99. package/dist/{SidebarHeaderToggle-BwnXdcrB.js → SidebarHeaderToggle-8K_NrpBm.js} +1 -1
  100. package/dist/{SidebarHeaderToggle-BeLPv1dU.cjs → SidebarHeaderToggle-CRsdm90m.cjs} +1 -1
  101. package/dist/{SidebarMenuGroup-ByeTvkHJ.cjs → SidebarMenuGroup-D1jYkspC.cjs} +1 -1
  102. package/dist/{SidebarMenuGroup-BTVsBDts.js → SidebarMenuGroup-RczOdr4t.js} +2 -2
  103. package/dist/{SidebarMenuItem-CA1dBftp.js → SidebarMenuItem-D8eFyD7l.js} +6 -6
  104. package/dist/{SidebarMenuItem-BhRePtWB.cjs → SidebarMenuItem-r_TpdHsD.cjs} +1 -1
  105. package/dist/{Slider-56pPcL_E.js → Slider-CM-YIOPa.js} +4 -4
  106. package/dist/{Slider-TlwhliL1.cjs → Slider-CNqWXBhw.cjs} +1 -1
  107. package/dist/{Stat-BfDK9HRp.js → Stat-BHuShwuo.js} +2 -2
  108. package/dist/{Stat-x01dwM0g.cjs → Stat-DmdfVU4X.cjs} +1 -1
  109. package/dist/{StepperStep-CsrrJfwu.js → StepperStep-BMts1ePk.js} +1 -1
  110. package/dist/{StepperStep-C-uCJroV.cjs → StepperStep-DM__K4sj.cjs} +1 -1
  111. package/dist/{Submenu-DS2s0NYW.js → Submenu-D3kcN7Qm.js} +1 -1
  112. package/dist/{Submenu-Dqgk6Bu2.cjs → Submenu-DTqj37HQ.cjs} +1 -1
  113. package/dist/SuggestionList--DXpfDSJ.cjs +1 -0
  114. package/dist/SuggestionList-CNtaiJFb.js +189 -0
  115. package/dist/{Switch-B40hMlXu.js → Switch-Bhn_b5ue.js} +3 -3
  116. package/dist/{Switch-D7eHiXw1.cjs → Switch-DPxYeU1r.cjs} +1 -1
  117. package/dist/{TableOfContents-B72I_ReR.js → TableOfContents-DvsufeVY.js} +1 -1
  118. package/dist/{TableOfContents-CNxzC_6Z.cjs → TableOfContents-pJY07qUd.cjs} +1 -1
  119. package/dist/{Tabs-DCoou72c.cjs → Tabs-DPd-CKi1.cjs} +1 -1
  120. package/dist/{Tabs-C9nc4fvQ.js → Tabs-S3I4uaTq.js} +39 -39
  121. package/dist/{TextInput-DssK3wB2.js → TextInput-CMNHASTy.js} +4 -4
  122. package/dist/{TextInput-gA5Fp8Y7.cjs → TextInput-Dim1RJ1e.cjs} +1 -1
  123. package/dist/{Toast-DNtON_wR.cjs → Toast-BZZgBE9V.cjs} +1 -1
  124. package/dist/{Toast-CkZ1teg6.js → Toast-CHqiHiKq.js} +1 -1
  125. package/dist/{Toaster-B1SyGLyl.js → Toaster-6tdIn4we.js} +1 -1
  126. package/dist/{Toaster-C6GwLIeR.cjs → Toaster-CwLeMxh_.cjs} +1 -1
  127. package/dist/{TreeNode-CSHd1PSy.cjs → TreeNode-BjqvPxI6.cjs} +1 -1
  128. package/dist/{TreeNode-4bbso5nG.js → TreeNode-Bnlm_eRb.js} +1 -1
  129. package/dist/{UserMenu-Cn_zwZyJ.cjs → UserMenu-BtS4CcwB.cjs} +1 -1
  130. package/dist/{UserMenu-BD6uLDXp.js → UserMenu-SokwKvM0.js} +2 -2
  131. package/dist/{Video-B8TFsoLx.cjs → Video-CfRR9Ire.cjs} +1 -1
  132. package/dist/{Video-CTeSlgd1.js → Video-CvpT9tlK.js} +1 -1
  133. package/dist/{Walkthrough-BIN8ZCbA.cjs → Walkthrough-9SbBr6ig.cjs} +1 -1
  134. package/dist/{Walkthrough-Cy136LvZ.js → Walkthrough-BX3cVdLo.js} +1 -1
  135. package/dist/all.cjs +1 -1
  136. package/dist/all.mjs +205 -205
  137. package/dist/component-styles.json +5 -0
  138. package/dist/components/AccordionItem.cjs +1 -1
  139. package/dist/components/AccordionItem.mjs +1 -1
  140. package/dist/components/ActionGroup.cjs +1 -1
  141. package/dist/components/ActionGroup.mjs +1 -1
  142. package/dist/components/AiLabel.cjs +1 -1
  143. package/dist/components/AiLabel.mjs +1 -1
  144. package/dist/components/AiProvider.cjs +1 -1
  145. package/dist/components/AiProvider.mjs +1 -1
  146. package/dist/components/AiUsage.cjs +1 -1
  147. package/dist/components/AiUsage.mjs +1 -1
  148. package/dist/components/Avatar.cjs +1 -1
  149. package/dist/components/Avatar.mjs +1 -1
  150. package/dist/components/BackToTop.cjs +1 -1
  151. package/dist/components/BackToTop.mjs +1 -1
  152. package/dist/components/Badge.cjs +1 -1
  153. package/dist/components/Badge.mjs +1 -1
  154. package/dist/components/Banner.cjs +1 -1
  155. package/dist/components/Banner.mjs +1 -1
  156. package/dist/components/BlueprintControls.cjs +1 -1
  157. package/dist/components/BlueprintControls.mjs +1 -1
  158. package/dist/components/Board.cjs +1 -1
  159. package/dist/components/Board.mjs +1 -1
  160. package/dist/components/Board.vue.d.ts.map +1 -1
  161. package/dist/components/Breadcrumbs.cjs +1 -1
  162. package/dist/components/Breadcrumbs.d.ts +5 -0
  163. package/dist/components/Breadcrumbs.mjs +1 -1
  164. package/dist/components/Breadcrumbs.vue.d.ts.map +1 -1
  165. package/dist/components/Briefing.cjs +1 -1
  166. package/dist/components/Briefing.mjs +1 -1
  167. package/dist/components/BriefingDestination.cjs +1 -1
  168. package/dist/components/BriefingDestination.mjs +1 -1
  169. package/dist/components/Button.cjs +1 -1
  170. package/dist/components/Button.mjs +1 -1
  171. package/dist/components/Card.cjs +1 -1
  172. package/dist/components/Card.mjs +1 -1
  173. package/dist/components/CardGrid.cjs +1 -1
  174. package/dist/components/CardGrid.mjs +1 -1
  175. package/dist/components/CheckboxGroup.cjs +1 -1
  176. package/dist/components/CheckboxGroup.mjs +1 -1
  177. package/dist/components/ColorStrip.cjs +1 -1
  178. package/dist/components/ColorStrip.mjs +1 -1
  179. package/dist/components/CommandPalette.cjs +1 -1
  180. package/dist/components/CommandPalette.mjs +1 -1
  181. package/dist/components/Confirm.cjs +1 -1
  182. package/dist/components/Confirm.mjs +1 -1
  183. package/dist/components/CopyButton.cjs +1 -1
  184. package/dist/components/CopyButton.mjs +1 -1
  185. package/dist/components/DataTable.cjs +1 -1
  186. package/dist/components/DataTable.mjs +1 -1
  187. package/dist/components/DatePicker.cjs +1 -1
  188. package/dist/components/DatePicker.mjs +1 -1
  189. package/dist/components/DefinitionList.cjs +1 -1
  190. package/dist/components/DefinitionList.mjs +1 -1
  191. package/dist/components/DefinitionListItem.cjs +1 -1
  192. package/dist/components/DefinitionListItem.mjs +1 -1
  193. package/dist/components/DragHandle.cjs +1 -1
  194. package/dist/components/DragHandle.mjs +1 -1
  195. package/dist/components/EmptyState.cjs +1 -1
  196. package/dist/components/EmptyState.mjs +1 -1
  197. package/dist/components/Field.cjs +1 -1
  198. package/dist/components/Field.mjs +1 -1
  199. package/dist/components/FileUploader.cjs +1 -1
  200. package/dist/components/FileUploader.mjs +1 -1
  201. package/dist/components/Form.cjs +1 -1
  202. package/dist/components/Form.mjs +1 -1
  203. package/dist/components/Grid.cjs +1 -1
  204. package/dist/components/Grid.d.ts +28 -3
  205. package/dist/components/Grid.mjs +1 -1
  206. package/dist/components/Grid.vue.d.ts.map +1 -1
  207. package/dist/components/Icon.cjs +1 -1
  208. package/dist/components/Icon.mjs +1 -1
  209. package/dist/components/ImageCropper.cjs +1 -1
  210. package/dist/components/ImageCropper.mjs +1 -1
  211. package/dist/components/ImagePicker.cjs +1 -1
  212. package/dist/components/ImagePicker.mjs +1 -1
  213. package/dist/components/InfoHint.cjs +1 -1
  214. package/dist/components/InfoHint.mjs +1 -1
  215. package/dist/components/InlineEdit.cjs +1 -1
  216. package/dist/components/InlineEdit.mjs +1 -1
  217. package/dist/components/InlineLoading.cjs +1 -1
  218. package/dist/components/InlineLoading.mjs +1 -1
  219. package/dist/components/Label.cjs +1 -1
  220. package/dist/components/Label.mjs +1 -1
  221. package/dist/components/Menu.d.ts +7 -0
  222. package/dist/components/MenuItem.cjs +1 -1
  223. package/dist/components/MenuItem.mjs +1 -1
  224. package/dist/components/MenuItem.vue.d.ts +5 -2
  225. package/dist/components/MenuItem.vue.d.ts.map +1 -1
  226. package/dist/components/Message.cjs +1 -1
  227. package/dist/components/Message.mjs +1 -1
  228. package/dist/components/Modal.cjs +1 -1
  229. package/dist/components/Modal.mjs +1 -1
  230. package/dist/components/NotificationCenter.cjs +1 -1
  231. package/dist/components/NotificationCenter.mjs +1 -1
  232. package/dist/components/NotificationCenterItem.cjs +1 -1
  233. package/dist/components/NotificationCenterItem.mjs +1 -1
  234. package/dist/components/NumberInput.cjs +1 -1
  235. package/dist/components/NumberInput.mjs +1 -1
  236. package/dist/components/Pagination.cjs +1 -1
  237. package/dist/components/Pagination.mjs +1 -1
  238. package/dist/components/Panel.cjs +1 -1
  239. package/dist/components/Panel.mjs +1 -1
  240. package/dist/components/ProgressBar.cjs +1 -1
  241. package/dist/components/ProgressBar.mjs +1 -1
  242. package/dist/components/Radio.cjs +1 -1
  243. package/dist/components/Radio.mjs +1 -1
  244. package/dist/components/ReorderList.cjs +1 -1
  245. package/dist/components/ReorderList.mjs +1 -1
  246. package/dist/components/Select.cjs +1 -1
  247. package/dist/components/Select.mjs +1 -1
  248. package/dist/components/Shell.cjs +1 -1
  249. package/dist/components/Shell.mjs +1 -1
  250. package/dist/components/Shell.vue.d.ts.map +1 -1
  251. package/dist/components/ShellPanel.cjs +1 -1
  252. package/dist/components/ShellPanel.mjs +1 -1
  253. package/dist/components/ShellPanel.vue.d.ts.map +1 -1
  254. package/dist/components/SidebarBrand.cjs +1 -1
  255. package/dist/components/SidebarBrand.mjs +1 -1
  256. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  257. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  258. package/dist/components/SidebarHeaderToggle.cjs +1 -1
  259. package/dist/components/SidebarHeaderToggle.mjs +1 -1
  260. package/dist/components/SidebarMenuGroup.cjs +1 -1
  261. package/dist/components/SidebarMenuGroup.mjs +1 -1
  262. package/dist/components/SidebarMenuItem.cjs +1 -1
  263. package/dist/components/SidebarMenuItem.mjs +1 -1
  264. package/dist/components/Slider.cjs +1 -1
  265. package/dist/components/Slider.mjs +1 -1
  266. package/dist/components/Stat.cjs +1 -1
  267. package/dist/components/Stat.mjs +1 -1
  268. package/dist/components/StepperStep.cjs +1 -1
  269. package/dist/components/StepperStep.mjs +1 -1
  270. package/dist/components/Submenu.cjs +1 -1
  271. package/dist/components/Submenu.mjs +1 -1
  272. package/dist/components/SuggestionList.cjs +1 -1
  273. package/dist/components/SuggestionList.d.ts +10 -0
  274. package/dist/components/SuggestionList.mjs +1 -1
  275. package/dist/components/SuggestionList.vue.d.ts +1 -0
  276. package/dist/components/SuggestionList.vue.d.ts.map +1 -1
  277. package/dist/components/Switch.cjs +1 -1
  278. package/dist/components/Switch.mjs +1 -1
  279. package/dist/components/TableOfContents.cjs +1 -1
  280. package/dist/components/TableOfContents.mjs +1 -1
  281. package/dist/components/Tabs.cjs +1 -1
  282. package/dist/components/Tabs.mjs +1 -1
  283. package/dist/components/TextInput.cjs +1 -1
  284. package/dist/components/TextInput.mjs +1 -1
  285. package/dist/components/Toast.cjs +1 -1
  286. package/dist/components/Toast.mjs +1 -1
  287. package/dist/components/Toaster.cjs +1 -1
  288. package/dist/components/Toaster.mjs +1 -1
  289. package/dist/components/TreeNode.cjs +1 -1
  290. package/dist/components/TreeNode.mjs +1 -1
  291. package/dist/components/UserMenu.cjs +1 -1
  292. package/dist/components/UserMenu.mjs +1 -1
  293. package/dist/components/Video.cjs +1 -1
  294. package/dist/components/Video.mjs +1 -1
  295. package/dist/components/Walkthrough.cjs +1 -1
  296. package/dist/components/Walkthrough.mjs +1 -1
  297. package/dist/composables/useConfirm.composable.cjs +1 -1
  298. package/dist/composables/useConfirm.composable.mjs +4 -4
  299. package/dist/index.cjs +1 -1
  300. package/dist/index.mjs +134 -134
  301. package/dist/{main-Dw1kBHgQ.cjs → main-R1TM8Ptt.cjs} +2 -2
  302. package/dist/{main-Bp4F8LhP.js → main-TRQw3oqC.js} +22 -20
  303. package/dist/main.d.ts +45 -3
  304. package/dist/main.d.ts.map +1 -1
  305. package/dist/plugins/vite/imports.d.ts +15 -0
  306. package/dist/plugins/vite/imports.d.ts.map +1 -1
  307. package/dist/plugins/vite/imports.js +77 -4
  308. package/dist/plugins/vite/index.d.ts.map +1 -1
  309. package/dist/plugins/vite/index.js +2 -1
  310. package/dist/styles/Board.css +1 -1
  311. package/dist/styles/Breadcrumbs.css +1 -1
  312. package/dist/styles/MenuItem.css +1 -1
  313. package/dist/styles/Shell.css +1 -1
  314. package/dist/styles/ShellPanel.css +1 -1
  315. package/dist/styles/SuggestionList.css +1 -1
  316. package/dist/ui.css +7 -7
  317. package/package.json +1 -1
  318. package/src/plugins/vite/imports.ts +64 -4
  319. package/src/plugins/vite/index.ts +2 -1
  320. package/src/styles/_reset.scss +55 -53
  321. package/src/styles/grid/_mixins.scss +21 -0
  322. package/dist/Breadcrumbs-Cmr5dHB3.js +0 -175
  323. package/dist/Breadcrumbs-DGJEdKOS.cjs +0 -1
  324. package/dist/Grid-CXE0B85G.cjs +0 -1
  325. package/dist/Icon-C8R_r_In.cjs +0 -1
  326. package/dist/MenuItem-BDLX2QWw.js +0 -85
  327. package/dist/MenuItem-ZQcFYe4m.cjs +0 -1
  328. package/dist/SuggestionList-C6LGxP-U.cjs +0 -1
  329. package/dist/SuggestionList-IAeZl5eK.js +0 -170
  330. /package/dist/{Avatar-BpPczEa8.cjs → Avatar-BtPUauIn.cjs} +0 -0
  331. /package/dist/{Avatar-BibgBZuN.js → Avatar-DqZ-eYb8.js} +0 -0
  332. /package/dist/{Card.link--Qj8i8fT.cjs → Card.link-crO1EgJA.cjs} +0 -0
  333. /package/dist/{Card.link-gVhJkbHq.js → Card.link-dJAabUqe.js} +0 -0
  334. /package/dist/{CardGrid-MzpKRH7W.js → CardGrid-BXFxfmlA.js} +0 -0
  335. /package/dist/{CardGrid-DYF5LaKh.cjs → CardGrid-q_Zz_Ip_.cjs} +0 -0
  336. /package/dist/{DefinitionList-DQja72sQ.cjs → DefinitionList-BH2HAPr3.cjs} +0 -0
  337. /package/dist/{DefinitionList-DbIcRjHH.js → DefinitionList-CCWqE3Kh.js} +0 -0
  338. /package/dist/{DefinitionListItem-Ci0YYnKM.js → DefinitionListItem-Cg8BggyX.js} +0 -0
  339. /package/dist/{DefinitionListItem-Cre5iJWK.cjs → DefinitionListItem-DnFxxXWI.cjs} +0 -0
  340. /package/dist/{Field-C7JxGz6g.cjs → Field-3zUVZEMG.cjs} +0 -0
  341. /package/dist/{Field-6haRtm1-.js → Field-BCzaQlaY.js} +0 -0
  342. /package/dist/{Panel-B3kJkm_w.js → Panel-CWBZ-kgD.js} +0 -0
  343. /package/dist/{Panel-DKp-aPUn.cjs → Panel-ap8JYHvL.cjs} +0 -0
  344. /package/dist/{TextInput.context-BrDuawa9.cjs → TextInput.context-C0YTT4zw.cjs} +0 -0
  345. /package/dist/{TextInput.context-CR-Svohb.js → TextInput.context-DvCbZUx_.js} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./Accordion.context-Wz0ugH_k.js";
2
2
  import { t } from "./_plugin-vue_export-helper-O4QQSku4.js";
3
- import { t as n } from "./Icon-rREAqsu0.js";
3
+ import { t as n } from "./Icon-DwhI2DFK.js";
4
4
  import { useStableId as r } from "./composables/useStableId.composable.mjs";
5
- import { t as i } from "./InfoHint-CC4cvFsD.js";
5
+ import { t as i } from "./InfoHint-KtTzQk1z.js";
6
6
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, normalizeClass as h, onBeforeUnmount as g, openBlock as _, ref as v, renderSlot as y, toDisplayString as b, unref as x, useSlots as S } from "vue";
7
7
  import { regular as C } from "@nubisco/ui/icons/caret-down";
8
8
  //#region src/components/AccordionItem.vue?vue&type=script&setup=true&lang.ts
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Accordion.context-D0CjtbPU.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./InfoHint-CyuBCIgq.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/caret-down`);var s=[`aria-level`],c=[`id`,`aria-expanded`,`aria-controls`,`aria-describedby`,`disabled`],l={class:`nb-accordion-item__title`},u={key:1,class:`nb-accordion-item__meta`},d=[`id`],f={key:2,class:`nb-accordion-item__actions`},p=[`id`,`aria-labelledby`,`hidden`,`inert`],m={class:`nb-accordion-item__body`},h=(0,a.defineComponent)({__name:`AccordionItem`,props:{id:{default:void 0},title:{default:``},icon:{default:void 0},meta:{default:``},info:{default:void 0},disabled:{type:Boolean,default:!1}},setup(t){let h=t,g=(0,a.useSlots)(),_=(0,a.computed)(()=>!!h.meta||!!g.meta),v=(0,a.computed)(()=>!!h.info||!!g.actions),y=(0,a.inject)(e.t,null),b=r.useStableId(h),x=(0,a.computed)(()=>y?.headingLevel?.value??3),S=(0,a.computed)(()=>b),C=(0,a.ref)(null),w=(0,a.computed)(()=>y?.open.value.includes(S.value)??!1);y&&(0,a.onBeforeUnmount)(y.register(S.value,()=>C.value));function T(){h.disabled||y?.toggle(S.value)}let E={ArrowUp:`prev`,ArrowDown:`next`,Home:`first`,End:`last`};function D(e){let t=E[e.key];!t||!y||(e.preventDefault(),y.focusSibling(S.value,t))}return(e,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-accordion-item`,{"nb-accordion-item--open":w.value,"nb-accordion-item--disabled":t.disabled}])},[(0,a.createElementVNode)(`div`,{class:(0,a.normalizeClass)([`nb-accordion-item__heading`,{"nb-accordion-item__heading--aside":v.value}]),role:`heading`,"aria-level":x.value},[(0,a.createElementVNode)(`button`,{id:`${S.value}-header`,ref_key:`headerRef`,ref:C,type:`button`,class:`nb-accordion-item__header`,"aria-expanded":w.value,"aria-controls":`${S.value}-panel`,"aria-describedby":v.value&&_.value?`${S.value}-meta`:void 0,disabled:t.disabled,onClick:T,onKeydown:D},[(0,a.createVNode)(n.t,{class:`nb-accordion-item__chevron`,name:(0,a.unref)(o.regular),size:16,"aria-hidden":`true`},null,8,[`name`]),t.icon?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:t.icon,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`span`,l,[(0,a.renderSlot)(e.$slots,`title`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.title),1)],!0)]),!v.value&&_.value?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,u,[(0,a.renderSlot)(e.$slots,`meta`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.meta),1)],!0)])):(0,a.createCommentVNode)(``,!0)],40,c),v.value?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[t.info?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:0,class:`nb-accordion-item__info`,text:t.info,size:14,label:`About ${t.title||`this section`}`},null,8,[`text`,`label`])):(0,a.createCommentVNode)(``,!0),r[0]||=(0,a.createElementVNode)(`span`,{class:`nb-accordion-item__spacer`,"aria-hidden":`true`},null,-1),_.value?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,{key:1,id:`${S.value}-meta`,class:`nb-accordion-item__meta nb-accordion-item__meta--raised`,onClick:T},[(0,a.renderSlot)(e.$slots,`meta`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.meta),1)],!0)],8,d)):(0,a.createCommentVNode)(``,!0),e.$slots.actions?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,f,[(0,a.renderSlot)(e.$slots,`actions`,{},void 0,!0)])):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0)],10,s),(0,a.createElementVNode)(`div`,{id:`${S.value}-panel`,class:`nb-accordion-item__panel`,role:`region`,"aria-labelledby":`${S.value}-header`,hidden:!w.value,inert:!w.value||void 0},[(0,a.createElementVNode)(`div`,m,[(0,a.renderSlot)(e.$slots,`default`,{},void 0,!0)])],8,p)],2))}}),g=t.t(h,[[`__scopeId`,`data-v-a515b424`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Accordion.context-D0CjtbPU.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-Bwec1Nfv.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./InfoHint-DaBGsnrK.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/caret-down`);var s=[`aria-level`],c=[`id`,`aria-expanded`,`aria-controls`,`aria-describedby`,`disabled`],l={class:`nb-accordion-item__title`},u={key:1,class:`nb-accordion-item__meta`},d=[`id`],f={key:2,class:`nb-accordion-item__actions`},p=[`id`,`aria-labelledby`,`hidden`,`inert`],m={class:`nb-accordion-item__body`},h=(0,a.defineComponent)({__name:`AccordionItem`,props:{id:{default:void 0},title:{default:``},icon:{default:void 0},meta:{default:``},info:{default:void 0},disabled:{type:Boolean,default:!1}},setup(t){let h=t,g=(0,a.useSlots)(),_=(0,a.computed)(()=>!!h.meta||!!g.meta),v=(0,a.computed)(()=>!!h.info||!!g.actions),y=(0,a.inject)(e.t,null),b=r.useStableId(h),x=(0,a.computed)(()=>y?.headingLevel?.value??3),S=(0,a.computed)(()=>b),C=(0,a.ref)(null),w=(0,a.computed)(()=>y?.open.value.includes(S.value)??!1);y&&(0,a.onBeforeUnmount)(y.register(S.value,()=>C.value));function T(){h.disabled||y?.toggle(S.value)}let E={ArrowUp:`prev`,ArrowDown:`next`,Home:`first`,End:`last`};function D(e){let t=E[e.key];!t||!y||(e.preventDefault(),y.focusSibling(S.value,t))}return(e,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-accordion-item`,{"nb-accordion-item--open":w.value,"nb-accordion-item--disabled":t.disabled}])},[(0,a.createElementVNode)(`div`,{class:(0,a.normalizeClass)([`nb-accordion-item__heading`,{"nb-accordion-item__heading--aside":v.value}]),role:`heading`,"aria-level":x.value},[(0,a.createElementVNode)(`button`,{id:`${S.value}-header`,ref_key:`headerRef`,ref:C,type:`button`,class:`nb-accordion-item__header`,"aria-expanded":w.value,"aria-controls":`${S.value}-panel`,"aria-describedby":v.value&&_.value?`${S.value}-meta`:void 0,disabled:t.disabled,onClick:T,onKeydown:D},[(0,a.createVNode)(n.t,{class:`nb-accordion-item__chevron`,name:(0,a.unref)(o.regular),size:16,"aria-hidden":`true`},null,8,[`name`]),t.icon?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:t.icon,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`span`,l,[(0,a.renderSlot)(e.$slots,`title`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.title),1)],!0)]),!v.value&&_.value?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,u,[(0,a.renderSlot)(e.$slots,`meta`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.meta),1)],!0)])):(0,a.createCommentVNode)(``,!0)],40,c),v.value?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[t.info?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:0,class:`nb-accordion-item__info`,text:t.info,size:14,label:`About ${t.title||`this section`}`},null,8,[`text`,`label`])):(0,a.createCommentVNode)(``,!0),r[0]||=(0,a.createElementVNode)(`span`,{class:`nb-accordion-item__spacer`,"aria-hidden":`true`},null,-1),_.value?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,{key:1,id:`${S.value}-meta`,class:`nb-accordion-item__meta nb-accordion-item__meta--raised`,onClick:T},[(0,a.renderSlot)(e.$slots,`meta`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.meta),1)],!0)],8,d)):(0,a.createCommentVNode)(``,!0),e.$slots.actions?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,f,[(0,a.renderSlot)(e.$slots,`actions`,{},void 0,!0)])):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0)],10,s),(0,a.createElementVNode)(`div`,{id:`${S.value}-panel`,class:`nb-accordion-item__panel`,role:`region`,"aria-labelledby":`${S.value}-header`,hidden:!w.value,inert:!w.value||void 0},[(0,a.createElementVNode)(`div`,m,[(0,a.renderSlot)(e.$slots,`default`,{},void 0,!0)])],8,p)],2))}}),g=t.t(h,[[`__scopeId`,`data-v-a515b424`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
@@ -1 +1 @@
1
- const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./composables/usePhoneLayout.composable.cjs`),n=require(`./Button-Cjtw1CkB.cjs`),r=require(`./Menu-CAZmNx60.cjs`),i=require(`./MenuItem-ZQcFYe4m.cjs`),a=require(`./utils/slotContent.helper.cjs`);let o=require(`vue`),s=require(`@nubisco/ui/icons/dots-three`);s=e.n(s);var c={class:`nb-action-group`},l=(0,o.defineComponent)({__name:`ActionGroup`,props:{items:{},size:{default:`sm`},overflow:{default:`never`},overflowLabel:{default:`More actions`},phoneVisible:{default:1}},emits:[`select`],setup(e,{emit:l}){let u=e,d=l,f=(0,o.useSlots)(),{phone:p}=t.usePhoneLayout(),m=(0,o.computed)(()=>u.overflow===`never`?!1:u.overflow===`always`?!0:p.value),h=(0,o.computed)(()=>{let e=Math.max(0,u.phoneVisible),t=u.items.filter(e=>e.priority===`primary`);return(t.length?t:u.items).slice(0,e)}),g=(0,o.computed)(()=>u.items.filter(e=>!h.value.includes(e))),_=(0,o.computed)(()=>g.value.length>0||a.hasSlotContent(f,`menu`));function v(e){return p.value&&!!e.icon}function y(e){return e.variant??(e.danger?`danger`:void 0)}function b(e){e.disabled||e.loading||(e.onSelect?.(),d(`select`,e.id))}let x=(0,o.ref)(!1),S=(0,o.ref)(null),C=(0,o.ref)(null);function w(){return C.value?.$el??null}let T=!1;function E(){T=x.value}function D(){if(T||x.value){T=!1,x.value=!1;return}let e=w()?.getBoundingClientRect();e&&S.value?.setPosition(e),x.value=!0}function O(e){if(x.value=e,e)return;let t=document.activeElement;(!t||t===document.body||!t.isConnected)&&(0,o.nextTick)(()=>w()?.focus())}return(t,a)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,c,[m.value?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(h.value,t=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:t.id},[v(t)?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:0,variant:y(t),outlined:t.outlined,size:e.size,disabled:t.disabled,loading:t.loading,icon:t.icon,"aria-label":t.label,"aria-pressed":t.pressed,onClick:e=>b(t)},null,8,[`variant`,`outlined`,`size`,`disabled`,`loading`,`icon`,`aria-label`,`aria-pressed`,`onClick`])):((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:1,variant:y(t),outlined:t.outlined,size:e.size,disabled:t.disabled,loading:t.loading,icon:t.icon,"aria-pressed":t.pressed,onClick:e=>b(t)},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(t.label),1)]),_:2},1032,[`variant`,`outlined`,`size`,`disabled`,`loading`,`icon`,`aria-pressed`,`onClick`]))],64))),128)),_.value?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:0,ref_key:`triggerRef`,ref:C,class:`nb-action-group__more`,variant:`ghost`,size:e.size,icon:s,"aria-label":e.overflowLabel,"aria-haspopup":`menu`,"aria-expanded":x.value,onMousedown:E,onClick:D},null,8,[`size`,`aria-label`,`aria-expanded`])):(0,o.createCommentVNode)(``,!0),_.value?((0,o.openBlock)(),(0,o.createBlock)(r.t,{key:1,ref_key:`menuRef`,ref:S,open:x.value,"onUpdate:open":O},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(g.value,e=>((0,o.openBlock)(),(0,o.createBlock)(i.t,{key:e.id,label:e.label,icon:e.icon,disabled:e.disabled||e.loading,danger:e.danger,selectable:e.pressed!==void 0,selected:e.pressed,onSelect:t=>b(e)},null,8,[`label`,`icon`,`disabled`,`danger`,`selectable`,`selected`,`onSelect`]))),128)),(0,o.renderSlot)(t.$slots,`menu`)]),_:3},8,[`open`])):(0,o.createCommentVNode)(``,!0)],64)):((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:0},(0,o.renderList)(e.items,t=>((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:t.id,variant:y(t),outlined:t.outlined,size:e.size,disabled:t.disabled,loading:t.loading,icon:t.icon,"aria-pressed":t.pressed,onClick:e=>b(t)},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(t.label),1)]),_:2},1032,[`variant`,`outlined`,`size`,`disabled`,`loading`,`icon`,`aria-pressed`,`onClick`]))),128))]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./composables/usePhoneLayout.composable.cjs`),n=require(`./Button-tmwLbryG.cjs`),r=require(`./Menu-CAZmNx60.cjs`),i=require(`./MenuItem-D6hIjWBm.cjs`),a=require(`./utils/slotContent.helper.cjs`);let o=require(`vue`),s=require(`@nubisco/ui/icons/dots-three`);s=e.n(s);var c={class:`nb-action-group`},l=(0,o.defineComponent)({__name:`ActionGroup`,props:{items:{},size:{default:`sm`},overflow:{default:`never`},overflowLabel:{default:`More actions`},phoneVisible:{default:1}},emits:[`select`],setup(e,{emit:l}){let u=e,d=l,f=(0,o.useSlots)(),{phone:p}=t.usePhoneLayout(),m=(0,o.computed)(()=>u.overflow===`never`?!1:u.overflow===`always`?!0:p.value),h=(0,o.computed)(()=>{let e=Math.max(0,u.phoneVisible),t=u.items.filter(e=>e.priority===`primary`);return(t.length?t:u.items).slice(0,e)}),g=(0,o.computed)(()=>u.items.filter(e=>!h.value.includes(e))),_=(0,o.computed)(()=>g.value.length>0||a.hasSlotContent(f,`menu`));function v(e){return p.value&&!!e.icon}function y(e){return e.variant??(e.danger?`danger`:void 0)}function b(e){e.disabled||e.loading||(e.onSelect?.(),d(`select`,e.id))}let x=(0,o.ref)(!1),S=(0,o.ref)(null),C=(0,o.ref)(null);function w(){return C.value?.$el??null}let T=!1;function E(){T=x.value}function D(){if(T||x.value){T=!1,x.value=!1;return}let e=w()?.getBoundingClientRect();e&&S.value?.setPosition(e),x.value=!0}function O(e){if(x.value=e,e)return;let t=document.activeElement;(!t||t===document.body||!t.isConnected)&&(0,o.nextTick)(()=>w()?.focus())}return(t,a)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,c,[m.value?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(h.value,t=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:t.id},[v(t)?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:0,variant:y(t),outlined:t.outlined,size:e.size,disabled:t.disabled,loading:t.loading,icon:t.icon,"aria-label":t.label,"aria-pressed":t.pressed,onClick:e=>b(t)},null,8,[`variant`,`outlined`,`size`,`disabled`,`loading`,`icon`,`aria-label`,`aria-pressed`,`onClick`])):((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:1,variant:y(t),outlined:t.outlined,size:e.size,disabled:t.disabled,loading:t.loading,icon:t.icon,"aria-pressed":t.pressed,onClick:e=>b(t)},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(t.label),1)]),_:2},1032,[`variant`,`outlined`,`size`,`disabled`,`loading`,`icon`,`aria-pressed`,`onClick`]))],64))),128)),_.value?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:0,ref_key:`triggerRef`,ref:C,class:`nb-action-group__more`,variant:`ghost`,size:e.size,icon:s,"aria-label":e.overflowLabel,"aria-haspopup":`menu`,"aria-expanded":x.value,onMousedown:E,onClick:D},null,8,[`size`,`aria-label`,`aria-expanded`])):(0,o.createCommentVNode)(``,!0),_.value?((0,o.openBlock)(),(0,o.createBlock)(r.t,{key:1,ref_key:`menuRef`,ref:S,open:x.value,"onUpdate:open":O},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(g.value,e=>((0,o.openBlock)(),(0,o.createBlock)(i.t,{key:e.id,label:e.label,icon:e.icon,disabled:e.disabled||e.loading,danger:e.danger,selectable:e.pressed!==void 0,selected:e.pressed,onSelect:t=>b(e)},null,8,[`label`,`icon`,`disabled`,`danger`,`selectable`,`selected`,`onSelect`]))),128)),(0,o.renderSlot)(t.$slots,`menu`)]),_:3},8,[`open`])):(0,o.createCommentVNode)(``,!0)],64)):((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:0},(0,o.renderList)(e.items,t=>((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:t.id,variant:y(t),outlined:t.outlined,size:e.size,disabled:t.disabled,loading:t.loading,icon:t.icon,"aria-pressed":t.pressed,onClick:e=>b(t)},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(t.label),1)]),_:2},1032,[`variant`,`outlined`,`size`,`disabled`,`loading`,`icon`,`aria-pressed`,`onClick`]))),128))]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
@@ -1,7 +1,7 @@
1
1
  import { usePhoneLayout as e } from "./composables/usePhoneLayout.composable.mjs";
2
- import { t } from "./Button-C-OsrbBY.js";
2
+ import { t } from "./Button-Cepcs335.js";
3
3
  import { t as n } from "./Menu-2Se8F81Q.js";
4
- import { t as r } from "./MenuItem-BDLX2QWw.js";
4
+ import { t as r } from "./MenuItem-DSFh9Akf.js";
5
5
  import { hasSlotContent as i } from "./utils/slotContent.helper.mjs";
6
6
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createTextVNode as u, defineComponent as d, nextTick as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, useSlots as v, withCtx as y } from "vue";
7
7
  import * as b from "@nubisco/ui/icons/dots-three";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
- import { t } from "./Grid-CJFQvcko.js";
2
+ import { t } from "./Grid-CVFkhOfa.js";
3
3
  import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, mergeProps as c, openBlock as l, unref as u, withCtx as d } from "vue";
4
4
  //#region src/components/AiLabel.d.ts
5
5
  var f = /* @__PURE__ */ function(e) {
@@ -53,4 +53,4 @@ var f = /* @__PURE__ */ function(e) {
53
53
  }
54
54
  }), [["__scopeId", "data-v-7134baab"]]);
55
55
  //#endregion
56
- export { h as t };
56
+ export { p as n, f as r, h as t };
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Grid-CXE0B85G.cjs`);let n=require(`vue`);var r=function(e){return e.Default=`default`,e.Inline=`inline`,e}(r||{}),i=function(e){return e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(i||{}),a={key:0,class:`nb-ai-label--dot`},o=(0,n.defineComponent)({__name:`AiLabel`,props:{variant:{default:r.Default},size:{default:i.Medium},static:{type:Boolean,default:!1},label:{default:`Written by AI`}},setup(e){let i=e,o=(0,n.computed)(()=>({"nb-ai-label":!0,[`nb-ai-label__${i.variant}`]:!0,[`nb-ai-label__${i.size}`]:!0,"nb-ai-label__static":i.static}));return(s,c)=>((0,n.openBlock)(),(0,n.createBlock)(t.t,(0,n.mergeProps)({is:i.static?`span`:`button`,align:`center`},{...e.variant===(0,n.unref)(r).Inline&&{gap:`sm`},...i.static&&{role:`img`,"aria-label":e.label}},{justify:`center`,class:o.value}),{default:(0,n.withCtx)(()=>[e.variant===(0,n.unref)(r).Inline?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,a)):(0,n.createCommentVNode)(``,!0),c[0]||=(0,n.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,"aria-hidden":`true`},[(0,n.createElementVNode)(`path`,{d:`M 104.301 197.8 L 94.501 162.4 L 53.101 162.4 L 43.501 197.8 L 17.101 197.8 L 56.301 58.2 L 92.701 58.2 L 132.101 197.8 L 104.301 197.8 Z M 74.701 84 L 73.101 84 L 57.701 141 L 90.101 141 L 74.701 84 Z M 150.099 197.8 L 150.099 178.2 L 181.499 178.2 L 181.499 77.8 L 150.099 77.8 L 150.099 58.2 L 238.899 58.2 L 238.899 77.8 L 207.499 77.8 L 207.499 178.2 L 238.899 178.2 L 238.899 197.8 L 150.099 197.8 Z`,fill:`currentColor`})],-1)]),_:1},16,[`is`,`class`]))}}),s=e.t(o,[[`__scopeId`,`data-v-7134baab`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Grid-BEezjVdC.cjs`);let n=require(`vue`);var r=function(e){return e.Default=`default`,e.Inline=`inline`,e}(r||{}),i=function(e){return e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(i||{}),a={key:0,class:`nb-ai-label--dot`},o=(0,n.defineComponent)({__name:`AiLabel`,props:{variant:{default:r.Default},size:{default:i.Medium},static:{type:Boolean,default:!1},label:{default:`Written by AI`}},setup(e){let i=e,o=(0,n.computed)(()=>({"nb-ai-label":!0,[`nb-ai-label__${i.variant}`]:!0,[`nb-ai-label__${i.size}`]:!0,"nb-ai-label__static":i.static}));return(s,c)=>((0,n.openBlock)(),(0,n.createBlock)(t.t,(0,n.mergeProps)({is:i.static?`span`:`button`,align:`center`},{...e.variant===(0,n.unref)(r).Inline&&{gap:`sm`},...i.static&&{role:`img`,"aria-label":e.label}},{justify:`center`,class:o.value}),{default:(0,n.withCtx)(()=>[e.variant===(0,n.unref)(r).Inline?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,a)):(0,n.createCommentVNode)(``,!0),c[0]||=(0,n.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,"aria-hidden":`true`},[(0,n.createElementVNode)(`path`,{d:`M 104.301 197.8 L 94.501 162.4 L 53.101 162.4 L 43.501 197.8 L 17.101 197.8 L 56.301 58.2 L 92.701 58.2 L 132.101 197.8 L 104.301 197.8 Z M 74.701 84 L 73.101 84 L 57.701 141 L 90.101 141 L 74.701 84 Z M 150.099 197.8 L 150.099 178.2 L 181.499 178.2 L 181.499 77.8 L 150.099 77.8 L 150.099 58.2 L 238.899 58.2 L 238.899 77.8 L 207.499 77.8 L 207.499 178.2 L 238.899 178.2 L 238.899 197.8 L 150.099 197.8 Z`,fill:`currentColor`})],-1)]),_:1},16,[`is`,`class`]))}}),s=e.t(o,[[`__scopeId`,`data-v-7134baab`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-Cjtw1CkB.cjs`),t=require(`./AiLabel-BK3oecvT.cjs`),n=require(`./Field-C7JxGz6g.cjs`),r=require(`./Panel-DKp-aPUn.cjs`),i=require(`./Select-cRjKYI2t.cjs`),a=require(`./TextInput-gA5Fp8Y7.cjs`);let o=require(`vue`);var s={class:`nb-ai-provider__header`},c={class:`nb-ai-provider__title`},l={key:0,class:`nb-ai-provider__description`},u={class:`nb-ai-provider__row`},d={class:`nb-ai-provider__actions`},f=(0,o.defineComponent)({__name:`AiProvider`,props:{title:{default:`AI briefings`},providers:{default:()=>[{label:`Anthropic (Claude)`,value:`anthropic`},{label:`OpenAI`,value:`openai`},{label:`Google Gemini`,value:`gemini`}]},provider:{default:`anthropic`},model:{default:``},apiKey:{default:``},defaultModels:{default:()=>({})},hasKey:{type:Boolean,default:!1},busy:{type:Boolean,default:!1}},emits:[`update:provider`,`update:model`,`update:apiKey`,`save`,`remove`],setup(f,{emit:p}){let m=p;return(p,h)=>((0,o.openBlock)(),(0,o.createBlock)(r.t,{class:`nb-ai-provider`},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`header`,s,[(0,o.createElementVNode)(`h2`,c,[(0,o.createTextVNode)((0,o.toDisplayString)(f.title)+` `,1),(0,o.createVNode)(t.t,{static:``,size:`sm`})]),p.$slots.default?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,l,[(0,o.renderSlot)(p.$slots,`default`)])):(0,o.createCommentVNode)(``,!0)]),(0,o.createElementVNode)(`div`,u,[(0,o.createVNode)(n.t,{label:`Provider`,orientation:`stack`},{default:(0,o.withCtx)(({id:e})=>[(0,o.createVNode)(i.t,{id:e,"model-value":f.provider,options:f.providers,disabled:f.busy,"onUpdate:modelValue":h[0]||=e=>m(`update:provider`,String(e))},null,8,[`id`,`model-value`,`options`,`disabled`])]),_:1}),(0,o.createVNode)(n.t,{label:`Model`,hint:`Empty uses the provider's default.`,orientation:`stack`},{default:(0,o.withCtx)(({id:e})=>[(0,o.createVNode)(a.t,{id:e,"model-value":f.model,placeholder:f.defaultModels[f.provider]??``,disabled:f.busy,"onUpdate:modelValue":h[1]||=e=>m(`update:model`,String(e??``))},null,8,[`id`,`model-value`,`placeholder`,`disabled`])]),_:1})]),(0,o.createVNode)(n.t,{label:`API key`,hint:`Encrypted at rest and never sent back to the browser, so this field is always empty when the page loads.`,orientation:`stack`},{default:(0,o.withCtx)(({id:e})=>[(0,o.createVNode)(a.t,{id:e,"model-value":f.apiKey,type:`password`,autocomplete:`off`,placeholder:f.hasKey?`Stored. Type a new key to replace it.`:`sk-...`,disabled:f.busy,"onUpdate:modelValue":h[2]||=e=>m(`update:apiKey`,String(e??``))},null,8,[`id`,`model-value`,`placeholder`,`disabled`])]),_:1}),(0,o.createElementVNode)(`div`,d,[(0,o.createVNode)(e.t,{variant:`primary`,loading:f.busy,onClick:h[3]||=e=>m(`save`)},{default:(0,o.withCtx)(()=>[...h[5]||=[(0,o.createTextVNode)(` Save AI settings `,-1)]]),_:1},8,[`loading`]),f.hasKey?((0,o.openBlock)(),(0,o.createBlock)(e.t,{key:0,variant:`ghost`,disabled:f.busy,onClick:h[4]||=e=>m(`remove`)},{default:(0,o.withCtx)(()=>[...h[6]||=[(0,o.createTextVNode)(` Remove key `,-1)]]),_:1},8,[`disabled`])):(0,o.createCommentVNode)(``,!0)])]),_:3}))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-tmwLbryG.cjs`),t=require(`./AiLabel-G7b92e7Q.cjs`),n=require(`./Field-3zUVZEMG.cjs`),r=require(`./Panel-ap8JYHvL.cjs`),i=require(`./Select-Z6XKZwgn.cjs`),a=require(`./TextInput-Dim1RJ1e.cjs`);let o=require(`vue`);var s={class:`nb-ai-provider__header`},c={class:`nb-ai-provider__title`},l={key:0,class:`nb-ai-provider__description`},u={class:`nb-ai-provider__row`},d={class:`nb-ai-provider__actions`},f=(0,o.defineComponent)({__name:`AiProvider`,props:{title:{default:`AI briefings`},providers:{default:()=>[{label:`Anthropic (Claude)`,value:`anthropic`},{label:`OpenAI`,value:`openai`},{label:`Google Gemini`,value:`gemini`}]},provider:{default:`anthropic`},model:{default:``},apiKey:{default:``},defaultModels:{default:()=>({})},hasKey:{type:Boolean,default:!1},busy:{type:Boolean,default:!1}},emits:[`update:provider`,`update:model`,`update:apiKey`,`save`,`remove`],setup(f,{emit:p}){let m=p;return(p,h)=>((0,o.openBlock)(),(0,o.createBlock)(r.t,{class:`nb-ai-provider`},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`header`,s,[(0,o.createElementVNode)(`h2`,c,[(0,o.createTextVNode)((0,o.toDisplayString)(f.title)+` `,1),(0,o.createVNode)(t.t,{static:``,size:`sm`})]),p.$slots.default?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,l,[(0,o.renderSlot)(p.$slots,`default`)])):(0,o.createCommentVNode)(``,!0)]),(0,o.createElementVNode)(`div`,u,[(0,o.createVNode)(n.t,{label:`Provider`,orientation:`stack`},{default:(0,o.withCtx)(({id:e})=>[(0,o.createVNode)(i.t,{id:e,"model-value":f.provider,options:f.providers,disabled:f.busy,"onUpdate:modelValue":h[0]||=e=>m(`update:provider`,String(e))},null,8,[`id`,`model-value`,`options`,`disabled`])]),_:1}),(0,o.createVNode)(n.t,{label:`Model`,hint:`Empty uses the provider's default.`,orientation:`stack`},{default:(0,o.withCtx)(({id:e})=>[(0,o.createVNode)(a.t,{id:e,"model-value":f.model,placeholder:f.defaultModels[f.provider]??``,disabled:f.busy,"onUpdate:modelValue":h[1]||=e=>m(`update:model`,String(e??``))},null,8,[`id`,`model-value`,`placeholder`,`disabled`])]),_:1})]),(0,o.createVNode)(n.t,{label:`API key`,hint:`Encrypted at rest and never sent back to the browser, so this field is always empty when the page loads.`,orientation:`stack`},{default:(0,o.withCtx)(({id:e})=>[(0,o.createVNode)(a.t,{id:e,"model-value":f.apiKey,type:`password`,autocomplete:`off`,placeholder:f.hasKey?`Stored. Type a new key to replace it.`:`sk-...`,disabled:f.busy,"onUpdate:modelValue":h[2]||=e=>m(`update:apiKey`,String(e??``))},null,8,[`id`,`model-value`,`placeholder`,`disabled`])]),_:1}),(0,o.createElementVNode)(`div`,d,[(0,o.createVNode)(e.t,{variant:`primary`,loading:f.busy,onClick:h[3]||=e=>m(`save`)},{default:(0,o.withCtx)(()=>[...h[5]||=[(0,o.createTextVNode)(` Save AI settings `,-1)]]),_:1},8,[`loading`]),f.hasKey?((0,o.openBlock)(),(0,o.createBlock)(e.t,{key:0,variant:`ghost`,disabled:f.busy,onClick:h[4]||=e=>m(`remove`)},{default:(0,o.withCtx)(()=>[...h[6]||=[(0,o.createTextVNode)(` Remove key `,-1)]]),_:1},8,[`disabled`])):(0,o.createCommentVNode)(``,!0)])]),_:3}))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
@@ -1,9 +1,9 @@
1
- import { t as e } from "./Button-C-OsrbBY.js";
2
- import { t } from "./AiLabel-CPINOrQd.js";
3
- import { t as n } from "./Field-6haRtm1-.js";
4
- import { t as r } from "./Panel-B3kJkm_w.js";
5
- import { t as i } from "./Select-DPrncZll.js";
6
- import { t as a } from "./TextInput-DssK3wB2.js";
1
+ import { t as e } from "./Button-Cepcs335.js";
2
+ import { t } from "./AiLabel-DSiCpLvM.js";
3
+ import { t as n } from "./Field-BCzaQlaY.js";
4
+ import { t as r } from "./Panel-CWBZ-kgD.js";
5
+ import { t as i } from "./Select-Dah-tYeb.js";
6
+ import { t as a } from "./TextInput-CMNHASTy.js";
7
7
  import { createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, openBlock as p, renderSlot as m, toDisplayString as h, withCtx as g } from "vue";
8
8
  //#region src/components/AiProvider.vue?vue&type=script&setup=true&lang.ts
9
9
  var _ = { class: "nb-ai-provider__header" }, v = { class: "nb-ai-provider__title" }, y = {
@@ -1,5 +1,5 @@
1
- import { t as e } from "./Panel-B3kJkm_w.js";
2
- import { t } from "./DefinitionList-DbIcRjHH.js";
1
+ import { t as e } from "./Panel-CWBZ-kgD.js";
2
+ import { t } from "./DefinitionList-CCWqE3Kh.js";
3
3
  import { computed as n, createBlock as r, createElementBlock as i, createElementVNode as a, defineComponent as o, openBlock as s, renderSlot as c, toDisplayString as l, withCtx as u } from "vue";
4
4
  //#region src/components/AiUsage.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = { class: "nb-ai-usage__header" }, f = { class: "nb-ai-usage__title" }, p = { class: "nb-ai-usage__description" }, m = {
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Panel-DKp-aPUn.cjs`),t=require(`./DefinitionList-DQja72sQ.cjs`);let n=require(`vue`);var r={class:`nb-ai-usage__header`},i={class:`nb-ai-usage__title`},a={class:`nb-ai-usage__description`},o={key:0,class:`nb-ai-usage__empty`},s={key:1,class:`nb-ai-usage__empty`},c=(0,n.defineComponent)({__name:`AiUsage`,props:{title:{default:`Usage and cost`},days:{default:30},hasKey:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},requests:{default:0},requestsLabel:{default:`Requests`},cacheHits:{default:null},inputTokens:{default:0},outputTokens:{default:0},estimatedCostUsd:{default:null},unpricedModels:{default:()=>[]},pricingVerifiedOn:{default:``}},setup(c){let l=c;function u(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function d(e){return e>0&&e<.01?`<$0.01`:`$${e.toFixed(2)}`}let f=(0,n.computed)(()=>[{term:l.requestsLabel,value:`${l.requests.toLocaleString()} (requests that reached your provider)`},...l.cacheHits===null?[]:[{term:`Served from cache`,value:`${l.cacheHits.toLocaleString()} (free: a question already answered)`}],{term:`Tokens`,value:`${u(l.inputTokens+l.outputTokens)} (${u(l.inputTokens)} in, ${u(l.outputTokens)} out)`},{term:`Estimated cost`,value:l.estimatedCostUsd===null?`n/a: no published price on file for ${l.unpricedModels.join(`, `)||`this model`}`:`${d(l.estimatedCostUsd)} at list prices${l.pricingVerifiedOn?` as of ${l.pricingVerifiedOn}`:``}`}]);return(l,u)=>((0,n.openBlock)(),(0,n.createBlock)(e.t,{class:`nb-ai-usage`},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`header`,r,[(0,n.createElementVNode)(`h2`,i,(0,n.toDisplayString)(c.title),1),(0,n.createElementVNode)(`p`,a,` What has been asked of your provider over the last `+(0,n.toDisplayString)(c.days)+` days. Your provider bills you directly, so these are our records, not an invoice: check the provider console for the authoritative figure. `,1)]),c.hasKey?c.loading?((0,n.openBlock)(),(0,n.createElementBlock)(`p`,s,`Loading usage...`)):((0,n.openBlock)(),(0,n.createBlock)(t.t,{key:2,items:f.value,dividers:``},null,8,[`items`])):((0,n.openBlock)(),(0,n.createElementBlock)(`p`,o,` No key yet, so nothing has been sent to a provider. `)),(0,n.renderSlot)(l.$slots,`default`)]),_:3}))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Panel-ap8JYHvL.cjs`),t=require(`./DefinitionList-BH2HAPr3.cjs`);let n=require(`vue`);var r={class:`nb-ai-usage__header`},i={class:`nb-ai-usage__title`},a={class:`nb-ai-usage__description`},o={key:0,class:`nb-ai-usage__empty`},s={key:1,class:`nb-ai-usage__empty`},c=(0,n.defineComponent)({__name:`AiUsage`,props:{title:{default:`Usage and cost`},days:{default:30},hasKey:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},requests:{default:0},requestsLabel:{default:`Requests`},cacheHits:{default:null},inputTokens:{default:0},outputTokens:{default:0},estimatedCostUsd:{default:null},unpricedModels:{default:()=>[]},pricingVerifiedOn:{default:``}},setup(c){let l=c;function u(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function d(e){return e>0&&e<.01?`<$0.01`:`$${e.toFixed(2)}`}let f=(0,n.computed)(()=>[{term:l.requestsLabel,value:`${l.requests.toLocaleString()} (requests that reached your provider)`},...l.cacheHits===null?[]:[{term:`Served from cache`,value:`${l.cacheHits.toLocaleString()} (free: a question already answered)`}],{term:`Tokens`,value:`${u(l.inputTokens+l.outputTokens)} (${u(l.inputTokens)} in, ${u(l.outputTokens)} out)`},{term:`Estimated cost`,value:l.estimatedCostUsd===null?`n/a: no published price on file for ${l.unpricedModels.join(`, `)||`this model`}`:`${d(l.estimatedCostUsd)} at list prices${l.pricingVerifiedOn?` as of ${l.pricingVerifiedOn}`:``}`}]);return(l,u)=>((0,n.openBlock)(),(0,n.createBlock)(e.t,{class:`nb-ai-usage`},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`header`,r,[(0,n.createElementVNode)(`h2`,i,(0,n.toDisplayString)(c.title),1),(0,n.createElementVNode)(`p`,a,` What has been asked of your provider over the last `+(0,n.toDisplayString)(c.days)+` days. Your provider bills you directly, so these are our records, not an invoice: check the provider console for the authoritative figure. `,1)]),c.hasKey?c.loading?((0,n.openBlock)(),(0,n.createElementBlock)(`p`,s,`Loading usage...`)):((0,n.openBlock)(),(0,n.createBlock)(t.t,{key:2,items:f.value,dividers:``},null,8,[`items`])):((0,n.openBlock)(),(0,n.createElementBlock)(`p`,o,` No key yet, so nothing has been sent to a provider. `)),(0,n.renderSlot)(l.$slots,`default`)]),_:3}))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
@@ -1,4 +1,4 @@
1
- import { t as e } from "./Button-C-OsrbBY.js";
1
+ import { t as e } from "./Button-Cepcs335.js";
2
2
  import { Transition as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, onBeforeUnmount as s, onMounted as c, openBlock as l, ref as u, resolveDirective as d, withCtx as f, withDirectives as p } from "vue";
3
3
  import * as m from "@nubisco/ui/icons/arrow-up";
4
4
  //#region src/components/BackToTop.vue?vue&type=script&setup=true&lang.ts
@@ -1 +1 @@
1
- const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Button-Cjtw1CkB.cjs`);let n=require(`vue`),r=require(`@nubisco/ui/icons/arrow-up`);r=e.n(r);var i={key:0,class:`nb-back-to-top`},a=(0,n.defineComponent)({__name:`BackToTop`,props:{threshold:{default:void 0},label:{default:`Back to top`}},setup(e){let a=e,o=(0,n.ref)(!1),s=0;function c(){s=0;let e=a.threshold??window.innerHeight;o.value=window.scrollY>e}function l(){s||=requestAnimationFrame(c)}function u(e){let t=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;window.scrollTo({top:0,behavior:t?`instant`:`smooth`}),e.detail===0&&document.querySelector(`a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`)?.focus({preventScroll:!0})}return(0,n.onMounted)(()=>{c(),window.addEventListener(`scroll`,l,{passive:!0}),window.addEventListener(`resize`,l,{passive:!0})}),(0,n.onBeforeUnmount)(()=>{window.removeEventListener(`scroll`,l),window.removeEventListener(`resize`,l),s&&cancelAnimationFrame(s)}),(a,s)=>{let c=(0,n.resolveDirective)(`nb-tooltip`);return(0,n.openBlock)(),(0,n.createBlock)(n.Transition,{name:`nb-back-to-top`},{default:(0,n.withCtx)(()=>[o.value?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,i,[(0,n.withDirectives)((0,n.createVNode)(t.t,{"aria-label":e.label,class:`nb-back-to-top__button`,variant:`secondary`,icon:r,onClick:u},null,8,[`aria-label`]),[[c,{body:e.label,aria:`none`,position:`left`}]])])):(0,n.createCommentVNode)(``,!0)]),_:1})}}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Button-tmwLbryG.cjs`);let n=require(`vue`),r=require(`@nubisco/ui/icons/arrow-up`);r=e.n(r);var i={key:0,class:`nb-back-to-top`},a=(0,n.defineComponent)({__name:`BackToTop`,props:{threshold:{default:void 0},label:{default:`Back to top`}},setup(e){let a=e,o=(0,n.ref)(!1),s=0;function c(){s=0;let e=a.threshold??window.innerHeight;o.value=window.scrollY>e}function l(){s||=requestAnimationFrame(c)}function u(e){let t=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;window.scrollTo({top:0,behavior:t?`instant`:`smooth`}),e.detail===0&&document.querySelector(`a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`)?.focus({preventScroll:!0})}return(0,n.onMounted)(()=>{c(),window.addEventListener(`scroll`,l,{passive:!0}),window.addEventListener(`resize`,l,{passive:!0})}),(0,n.onBeforeUnmount)(()=>{window.removeEventListener(`scroll`,l),window.removeEventListener(`resize`,l),s&&cancelAnimationFrame(s)}),(a,s)=>{let c=(0,n.resolveDirective)(`nb-tooltip`);return(0,n.openBlock)(),(0,n.createBlock)(n.Transition,{name:`nb-back-to-top`},{default:(0,n.withCtx)(()=>[o.value?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,i,[(0,n.withDirectives)((0,n.createVNode)(t.t,{"aria-label":e.label,class:`nb-back-to-top__button`,variant:`secondary`,icon:r,onClick:u},null,8,[`aria-label`]),[[c,{body:e.label,aria:`none`,position:`left`}]])])):(0,n.createCommentVNode)(``,!0)]),_:1})}}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-C8R_r_In.cjs`);let n=require(`vue`);var r=function(e){return e.Grey=`grey`,e.Blue=`blue`,e.Orange=`orange`,e.Green=`green`,e.Red=`red`,e.Purple=`purple`,e.Primary=`primary`,e}(r||{}),i=function(e){return e.Small=`sm`,e.Medium=`md`,e}(i||{}),a={key:0,class:`nb-badge__dot`},o=(0,n.defineComponent)({__name:`Badge`,props:{variant:{default:r.Grey},size:{default:i.Medium},dot:{type:Boolean,default:!1},icon:{default:void 0},placeholder:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1}},setup(e){return(r,i)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.interactive?`button`:`span`),{type:e.interactive?`button`:void 0,class:(0,n.normalizeClass)([`nb-badge`,`nb-badge--${e.variant}`,`nb-badge--${e.size}`,{"nb-badge--placeholder":e.placeholder,"nb-badge--interactive":e.interactive}])},{default:(0,n.withCtx)(()=>[e.dot?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,a)):(0,n.createCommentVNode)(``,!0),e.icon?((0,n.openBlock)(),(0,n.createBlock)(t.t,{key:1,name:e.icon,size:e.size===`sm`?11:12,class:`nb-badge__icon`},null,8,[`name`,`size`])):(0,n.createCommentVNode)(``,!0),(0,n.renderSlot)(r.$slots,`default`,{},void 0,!0)]),_:3},8,[`type`,`class`]))}}),s=e.t(o,[[`__scopeId`,`data-v-aa5af746`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-Bwec1Nfv.cjs`);let n=require(`vue`);var r=function(e){return e.Grey=`grey`,e.Blue=`blue`,e.Orange=`orange`,e.Green=`green`,e.Red=`red`,e.Purple=`purple`,e.Primary=`primary`,e}(r||{}),i=function(e){return e.Small=`sm`,e.Medium=`md`,e}(i||{}),a={key:0,class:`nb-badge__dot`},o=(0,n.defineComponent)({__name:`Badge`,props:{variant:{default:r.Grey},size:{default:i.Medium},dot:{type:Boolean,default:!1},icon:{default:void 0},placeholder:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1}},setup(e){return(r,i)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.interactive?`button`:`span`),{type:e.interactive?`button`:void 0,class:(0,n.normalizeClass)([`nb-badge`,`nb-badge--${e.variant}`,`nb-badge--${e.size}`,{"nb-badge--placeholder":e.placeholder,"nb-badge--interactive":e.interactive}])},{default:(0,n.withCtx)(()=>[e.dot?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,a)):(0,n.createCommentVNode)(``,!0),e.icon?((0,n.openBlock)(),(0,n.createBlock)(t.t,{key:1,name:e.icon,size:e.size===`sm`?11:12,class:`nb-badge__icon`},null,8,[`name`,`size`])):(0,n.createCommentVNode)(``,!0),(0,n.renderSlot)(r.$slots,`default`,{},void 0,!0)]),_:3},8,[`type`,`class`]))}}),s=e.t(o,[[`__scopeId`,`data-v-aa5af746`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
- import { t } from "./Icon-rREAqsu0.js";
2
+ import { t } from "./Icon-DwhI2DFK.js";
3
3
  import { createBlock as n, createCommentVNode as r, createElementBlock as i, defineComponent as a, normalizeClass as o, openBlock as s, renderSlot as c, resolveDynamicComponent as l, withCtx as u } from "vue";
4
4
  //#region src/components/Badge.d.ts
5
5
  var d = /* @__PURE__ */ function(e) {
@@ -56,4 +56,4 @@ var d = /* @__PURE__ */ function(e) {
56
56
  }
57
57
  }), [["__scopeId", "data-v-aa5af746"]]);
58
58
  //#endregion
59
- export { m as t };
59
+ export { f as n, d as r, m as t };
@@ -1 +1 @@
1
- const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`);let r=require(`vue`),i=require(`@nubisco/ui/icons/info`);i=e.n(i);let a=require(`@nubisco/ui/icons/x`),o=require(`@nubisco/ui/icons/warning`);o=e.n(o);let s=require(`@nubisco/ui/icons/check-circle`);s=e.n(s);let c=require(`@nubisco/ui/icons/x-circle`);c=e.n(c);let l=require(`@nubisco/ui/icons/note`);l=e.n(l);var u=function(e){return e.Info=`info`,e.Success=`success`,e.Warning=`warning`,e.Error=`error`,e.Neutral=`neutral`,e}(u||{}),d=function(e){return e.Inline=`inline`,e.Callout=`callout`,e}(d||{}),f=[`role`,`aria-live`],p={class:`nb-banner__body`},m={key:0,class:`nb-banner__title`},h={key:1,class:`nb-banner__text`},g={key:1,class:`nb-banner__actions`},_=[`aria-label`],v=(0,r.defineComponent)({__name:`Banner`,props:{status:{default:u.Info},variant:{default:d.Inline},title:{},dismissible:{type:Boolean,default:!1},icon:{},hideIcon:{type:Boolean,default:!1},flush:{type:Boolean,default:!1},closeLabel:{default:`Dismiss`}},emits:[`dismiss`],setup(e,{emit:t}){let v=e,y=t,b=(0,r.useSlots)(),x=(0,r.computed)(()=>!!b.default),S=(0,r.computed)(()=>!!b.action),C=(0,r.computed)(()=>v.dismissible&&v.variant!==d.Callout),w=(0,r.computed)(()=>v.status===u.Error),T=(0,r.ref)(!1);function E(){T.value=!0,y(`dismiss`)}let D={info:i,success:s,warning:o,error:c,neutral:l};return(e,t)=>T.value?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:(0,r.normalizeClass)([`nb-banner`,`nb-banner--${v.status}`,`nb-banner--${v.variant}`,{"nb-banner--flush":v.flush}]),role:w.value?`alert`:`status`,"aria-live":w.value?`assertive`:`polite`},[v.hideIcon?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:0,name:v.icon??D[v.status],size:18,weight:`fill`,class:`nb-banner__icon`,"aria-hidden":`true`},null,8,[`name`])),(0,r.createElementVNode)(`p`,p,[v.title?((0,r.openBlock)(),(0,r.createElementBlock)(`strong`,m,(0,r.toDisplayString)(v.title),1)):(0,r.createCommentVNode)(``,!0),x.value?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,h,[(0,r.renderSlot)(e.$slots,`default`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0)]),S.value?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,g,[(0,r.renderSlot)(e.$slots,`action`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0),C.value?((0,r.openBlock)(),(0,r.createElementBlock)(`button`,{key:2,type:`button`,class:`nb-banner__close`,"aria-label":v.closeLabel,onClick:E},[(0,r.createVNode)(n.t,{name:(0,r.unref)(a.regular),size:14},null,8,[`name`])],8,_)):(0,r.createCommentVNode)(``,!0)],10,f))}}),y=t.t(v,[[`__scopeId`,`data-v-291ff455`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return y}});
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-Bwec1Nfv.cjs`);let r=require(`vue`),i=require(`@nubisco/ui/icons/info`);i=e.n(i);let a=require(`@nubisco/ui/icons/x`),o=require(`@nubisco/ui/icons/warning`);o=e.n(o);let s=require(`@nubisco/ui/icons/check-circle`);s=e.n(s);let c=require(`@nubisco/ui/icons/x-circle`);c=e.n(c);let l=require(`@nubisco/ui/icons/note`);l=e.n(l);var u=function(e){return e.Info=`info`,e.Success=`success`,e.Warning=`warning`,e.Error=`error`,e.Neutral=`neutral`,e}(u||{}),d=function(e){return e.Inline=`inline`,e.Callout=`callout`,e}(d||{}),f=[`role`,`aria-live`],p={class:`nb-banner__body`},m={key:0,class:`nb-banner__title`},h={key:1,class:`nb-banner__text`},g={key:1,class:`nb-banner__actions`},_=[`aria-label`],v=(0,r.defineComponent)({__name:`Banner`,props:{status:{default:u.Info},variant:{default:d.Inline},title:{},dismissible:{type:Boolean,default:!1},icon:{},hideIcon:{type:Boolean,default:!1},flush:{type:Boolean,default:!1},closeLabel:{default:`Dismiss`}},emits:[`dismiss`],setup(e,{emit:t}){let v=e,y=t,b=(0,r.useSlots)(),x=(0,r.computed)(()=>!!b.default),S=(0,r.computed)(()=>!!b.action),C=(0,r.computed)(()=>v.dismissible&&v.variant!==d.Callout),w=(0,r.computed)(()=>v.status===u.Error),T=(0,r.ref)(!1);function E(){T.value=!0,y(`dismiss`)}let D={info:i,success:s,warning:o,error:c,neutral:l};return(e,t)=>T.value?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:(0,r.normalizeClass)([`nb-banner`,`nb-banner--${v.status}`,`nb-banner--${v.variant}`,{"nb-banner--flush":v.flush}]),role:w.value?`alert`:`status`,"aria-live":w.value?`assertive`:`polite`},[v.hideIcon?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:0,name:v.icon??D[v.status],size:18,weight:`fill`,class:`nb-banner__icon`,"aria-hidden":`true`},null,8,[`name`])),(0,r.createElementVNode)(`p`,p,[v.title?((0,r.openBlock)(),(0,r.createElementBlock)(`strong`,m,(0,r.toDisplayString)(v.title),1)):(0,r.createCommentVNode)(``,!0),x.value?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,h,[(0,r.renderSlot)(e.$slots,`default`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0)]),S.value?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,g,[(0,r.renderSlot)(e.$slots,`action`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0),C.value?((0,r.openBlock)(),(0,r.createElementBlock)(`button`,{key:2,type:`button`,class:`nb-banner__close`,"aria-label":v.closeLabel,onClick:E},[(0,r.createVNode)(n.t,{name:(0,r.unref)(a.regular),size:14},null,8,[`name`])],8,_)):(0,r.createCommentVNode)(``,!0)],10,f))}}),y=t.t(v,[[`__scopeId`,`data-v-291ff455`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return y}});
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
- import { t } from "./Icon-rREAqsu0.js";
2
+ import { t } from "./Icon-DwhI2DFK.js";
3
3
  import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, ref as d, renderSlot as f, toDisplayString as p, unref as m, useSlots as h } from "vue";
4
4
  import * as g from "@nubisco/ui/icons/info";
5
5
  import { regular as _ } from "@nubisco/ui/icons/x";
@@ -1 +1 @@
1
- const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Size.d-GBIblj2D.cjs`),r=require(`./Button-Cjtw1CkB.cjs`),i=require(`./composables/useBlueprint.composable.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/magnifying-glass-plus`);o=e.n(o);let s=require(`@nubisco/ui/icons/magnifying-glass-minus`);s=e.n(s);let c=require(`@nubisco/ui/icons/frame-corners`);c=e.n(c);let l=require(`@nubisco/ui/icons/crosshair`);l=e.n(l);let u=require(`@nubisco/ui/icons/tree-structure`);u=e.n(u);let d=require(`@nubisco/ui/icons/align-left`);d=e.n(d);let f=require(`@nubisco/ui/icons/align-center-horizontal`);f=e.n(f);let p=require(`@nubisco/ui/icons/align-right`);p=e.n(p);let m=require(`@nubisco/ui/icons/align-top`);m=e.n(m);let h=require(`@nubisco/ui/icons/align-center-vertical`);h=e.n(h);let g=require(`@nubisco/ui/icons/align-bottom`);g=e.n(g);let _=require(`@nubisco/ui/icons/arrows-out-line-horizontal`);_=e.n(_);let v=require(`@nubisco/ui/icons/arrows-out-line-vertical`);v=e.n(v);var y={class:`nb-blueprint-controls__group`},b={key:0,class:`nb-blueprint-controls__group`},x=(0,a.defineComponent)({__name:`BlueprintControls`,props:{position:{default:`bottom-right`},orientation:{default:`vertical`},show:{default:`always`},autoLayout:{type:Boolean,default:!0},alignment:{type:Boolean,default:!0}},setup(e){let t=n.r.Small,x=e,S=i.useBlueprint(),C=(0,a.computed)(()=>x.show===`always`||S.isEditMode.value),w=(0,a.computed)(()=>x.alignment&&S.selectedIds.value.size>=2);return(n,i)=>C.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:(0,a.normalizeClass)([`nb-blueprint-controls`,[`nb-blueprint-controls--${e.position}`,`is-${e.orientation}`]]),role:`toolbar`,"aria-label":`Blueprint controls`},[(0,a.createElementVNode)(`div`,y,[(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:o,title:`Zoom in`,"aria-label":`Zoom in`,onClick:i[0]||=e=>(0,a.unref)(S).zoomIn()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:s,title:`Zoom out`,"aria-label":`Zoom out`,onClick:i[1]||=e=>(0,a.unref)(S).zoomOut()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:c,title:`Fit to view`,"aria-label":`Fit to view`,onClick:i[2]||=e=>(0,a.unref)(S).fitToView()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:l,title:`Center`,"aria-label":`Center`,onClick:i[3]||=e=>(0,a.unref)(S).centerView()},null,8,[`size`]),e.autoLayout?((0,a.openBlock)(),(0,a.createBlock)(r.t,{key:0,variant:`ghost`,size:(0,a.unref)(t),icon:u,title:`Auto layout`,"aria-label":`Auto layout`,onClick:i[4]||=e=>(0,a.unref)(S).autoLayout()},null,8,[`size`])):(0,a.createCommentVNode)(``,!0)]),w.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,b,[(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:d,title:`Align left`,"aria-label":`Align left`,onClick:i[5]||=e=>(0,a.unref)(S).alignLeft()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:f,title:`Align horizontal center`,"aria-label":`Align horizontal center`,onClick:i[6]||=e=>(0,a.unref)(S).alignCenter()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:p,title:`Align right`,"aria-label":`Align right`,onClick:i[7]||=e=>(0,a.unref)(S).alignRight()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:m,title:`Align top`,"aria-label":`Align top`,onClick:i[8]||=e=>(0,a.unref)(S).alignTop()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:h,title:`Align vertical center`,"aria-label":`Align vertical center`,onClick:i[9]||=e=>(0,a.unref)(S).alignMiddle()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:g,title:`Align bottom`,"aria-label":`Align bottom`,onClick:i[10]||=e=>(0,a.unref)(S).alignBottom()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:_,title:`Distribute horizontally`,"aria-label":`Distribute horizontally`,onClick:i[11]||=e=>(0,a.unref)(S).distributeHorizontally()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:v,title:`Distribute vertically`,"aria-label":`Distribute vertically`,onClick:i[12]||=e=>(0,a.unref)(S).distributeVertically()},null,8,[`size`])])):(0,a.createCommentVNode)(``,!0)],2)):(0,a.createCommentVNode)(``,!0)}}),S=t.t(x,[[`__scopeId`,`data-v-5b86517c`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return S}});
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Size.d-GBIblj2D.cjs`),r=require(`./Button-tmwLbryG.cjs`),i=require(`./composables/useBlueprint.composable.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/magnifying-glass-plus`);o=e.n(o);let s=require(`@nubisco/ui/icons/magnifying-glass-minus`);s=e.n(s);let c=require(`@nubisco/ui/icons/frame-corners`);c=e.n(c);let l=require(`@nubisco/ui/icons/crosshair`);l=e.n(l);let u=require(`@nubisco/ui/icons/tree-structure`);u=e.n(u);let d=require(`@nubisco/ui/icons/align-left`);d=e.n(d);let f=require(`@nubisco/ui/icons/align-center-horizontal`);f=e.n(f);let p=require(`@nubisco/ui/icons/align-right`);p=e.n(p);let m=require(`@nubisco/ui/icons/align-top`);m=e.n(m);let h=require(`@nubisco/ui/icons/align-center-vertical`);h=e.n(h);let g=require(`@nubisco/ui/icons/align-bottom`);g=e.n(g);let _=require(`@nubisco/ui/icons/arrows-out-line-horizontal`);_=e.n(_);let v=require(`@nubisco/ui/icons/arrows-out-line-vertical`);v=e.n(v);var y={class:`nb-blueprint-controls__group`},b={key:0,class:`nb-blueprint-controls__group`},x=(0,a.defineComponent)({__name:`BlueprintControls`,props:{position:{default:`bottom-right`},orientation:{default:`vertical`},show:{default:`always`},autoLayout:{type:Boolean,default:!0},alignment:{type:Boolean,default:!0}},setup(e){let t=n.r.Small,x=e,S=i.useBlueprint(),C=(0,a.computed)(()=>x.show===`always`||S.isEditMode.value),w=(0,a.computed)(()=>x.alignment&&S.selectedIds.value.size>=2);return(n,i)=>C.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:(0,a.normalizeClass)([`nb-blueprint-controls`,[`nb-blueprint-controls--${e.position}`,`is-${e.orientation}`]]),role:`toolbar`,"aria-label":`Blueprint controls`},[(0,a.createElementVNode)(`div`,y,[(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:o,title:`Zoom in`,"aria-label":`Zoom in`,onClick:i[0]||=e=>(0,a.unref)(S).zoomIn()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:s,title:`Zoom out`,"aria-label":`Zoom out`,onClick:i[1]||=e=>(0,a.unref)(S).zoomOut()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:c,title:`Fit to view`,"aria-label":`Fit to view`,onClick:i[2]||=e=>(0,a.unref)(S).fitToView()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:l,title:`Center`,"aria-label":`Center`,onClick:i[3]||=e=>(0,a.unref)(S).centerView()},null,8,[`size`]),e.autoLayout?((0,a.openBlock)(),(0,a.createBlock)(r.t,{key:0,variant:`ghost`,size:(0,a.unref)(t),icon:u,title:`Auto layout`,"aria-label":`Auto layout`,onClick:i[4]||=e=>(0,a.unref)(S).autoLayout()},null,8,[`size`])):(0,a.createCommentVNode)(``,!0)]),w.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,b,[(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:d,title:`Align left`,"aria-label":`Align left`,onClick:i[5]||=e=>(0,a.unref)(S).alignLeft()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:f,title:`Align horizontal center`,"aria-label":`Align horizontal center`,onClick:i[6]||=e=>(0,a.unref)(S).alignCenter()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:p,title:`Align right`,"aria-label":`Align right`,onClick:i[7]||=e=>(0,a.unref)(S).alignRight()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:m,title:`Align top`,"aria-label":`Align top`,onClick:i[8]||=e=>(0,a.unref)(S).alignTop()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:h,title:`Align vertical center`,"aria-label":`Align vertical center`,onClick:i[9]||=e=>(0,a.unref)(S).alignMiddle()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:g,title:`Align bottom`,"aria-label":`Align bottom`,onClick:i[10]||=e=>(0,a.unref)(S).alignBottom()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:_,title:`Distribute horizontally`,"aria-label":`Distribute horizontally`,onClick:i[11]||=e=>(0,a.unref)(S).distributeHorizontally()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:v,title:`Distribute vertically`,"aria-label":`Distribute vertically`,onClick:i[12]||=e=>(0,a.unref)(S).distributeVertically()},null,8,[`size`])])):(0,a.createCommentVNode)(``,!0)],2)):(0,a.createCommentVNode)(``,!0)}}),S=t.t(x,[[`__scopeId`,`data-v-5b86517c`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return S}});
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
2
  import { r as t } from "./Size.d-Bah6vMl3.js";
3
- import { t as n } from "./Button-C-OsrbBY.js";
3
+ import { t as n } from "./Button-Cepcs335.js";
4
4
  import { useBlueprint as r } from "./composables/useBlueprint.composable.mjs";
5
5
  import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, unref as p } from "vue";
6
6
  import * as m from "@nubisco/ui/icons/magnifying-glass-plus";
@@ -1 +1 @@
1
- const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./composables/useSurfaceLayer.composable.cjs`),r=require(`./composables/usePhoneLayout.composable.cjs`),i=require(`./Button-Cjtw1CkB.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/x`);o=e.n(o);var s=[`draggable`,`onDragstart`,`onDragover`],c={class:`nb-board__col-title`},l={class:`nb-board__col-count`},ee=[`onClick`],te=[`aria-label`],ne={class:`nb-board__lane-label`},re={class:`nb-board__lane-count`},ie=[`onDragover`,`onDrop`],ae=[`aria-label`],oe=[`data-item-id`,`aria-selected`,`aria-label`,`aria-describedby`,`onDragstart`,`onDragover`,`onKeydown`,`onClickCapture`,`onBlur`],se={key:0,class:`nb-board__empty-cell`,"aria-hidden":`true`},ce={key:0,class:`nb-board__cell-footer`},u={key:0,class:`nb-board__batch`,role:`region`,"aria-label":`Actions for the selected cards`},le={class:`nb-board__batch-count`},ue={class:`nb-board__batch-actions`},de=[`id`],fe={class:`nb-board__sr`,"aria-live":`assertive`},pe=.5,me=44,d=(0,a.defineComponent)({__name:`Board`,props:{columns:{},items:{},lanes:{default:void 0},reorderableColumns:{type:Boolean,default:!1},nestable:{type:Boolean,default:!1},selectable:{type:Boolean,default:!1},selected:{default:void 0},selectMode:{type:Boolean,default:!1}},emits:[`move`,`nest`,`column-move`,`move-many`,`update:selected`,`update:selectMode`],setup(e,{emit:d}){let f=e,{phone:p}=r.usePhoneLayout(),he=(0,a.useSlots)(),{layerProps:ge}=n.useSurfaceLayer(),m=d,h=(0,a.computed)(()=>f.selectable?f.selected??[]:[]),_e=(0,a.computed)(()=>new Set(h.value)),g=null;function _(e){return _e.value.has(e)}function v(e){m(`update:selected`,e),z.value=e.length===0?`Selection cleared`:`${e.length} ${e.length===1?`card`:`cards`} selected`}function y(){g=null,v([]),x.value&&m(`update:selectMode`,!1)}let b=(0,a.computed)(()=>f.selectable&&h.value.length>0&&!!he[`batch-actions`]),x=(0,a.computed)(()=>f.selectable&&f.selectMode);function S(e){g=e,v(_(e)?h.value.filter(t=>t!==e):[...h.value,e])}function ve(e,t,n){let r=N(t,n),i=g?r.findIndex(e=>e.id===g):-1,a=r.findIndex(t=>t.id===e.id);if(i===-1||a===-1)return S(e.id);let o=r.slice(Math.min(i,a),Math.max(i,a)+1).map(e=>e.id);v([...new Set([...h.value,...o])])}function ye(e,t,n,r){f.selectable&&(!x.value&&!(e.metaKey||e.ctrlKey||e.shiftKey)||(e.preventDefault(),e.stopPropagation(),e.shiftKey?ve(t,O(n),r):S(t.id)))}function C(){let e=[];for(let t of f.columns)for(let n of D.value)for(let r of N(O(n),t.id))_(r.id)&&!e.includes(r.id)&&e.push(r.id);return e}function w(e,t,n,r,i){let a=new Set(e),o=N(n,r).filter(e=>e.id!==t),s=null;for(let e=Math.min(i,o.length)-1;e>=0;e--)if(!a.has(o[e].id)){s=o[e].id;break}let c=null;for(let e=Math.max(i,0);e<o.length;e++)if(!a.has(o[e].id)){c=o[e].id;break}m(`move-many`,{itemIds:e,toColumnId:r,...f.lanes?{toLaneId:n}:{},beforeItemId:s,afterItemId:c});let l=P(r);z.value=`${e.length} cards moved to ${l?.label??r}`}let T=t.useStableId({}),E=(0,a.ref)(null),be=(0,a.computed)(()=>({gridTemplateColumns:`repeat(${f.columns.length}, var(--nb-board-column-track, minmax(200px, 1fr)))`,...p.value?{"--nb-board-cols":String(f.columns.length)}:{}})),D=(0,a.computed)(()=>f.lanes&&f.lanes.length>0?f.lanes:[null]);function O(e){return e?e.id??null:null}function k(e){return e?j(e.id):`__flat__`}function A(e){return f.items.filter(t=>t.columnId===e).length}function j(e){return e??`__none__`}function M(e){return f.lanes?f.items.filter(t=>(t.laneId??null)===e).length:0}function N(e,t){return!f.lanes||f.lanes.length===0?f.items.filter(e=>e.columnId===t):f.items.filter(n=>n.columnId===t&&(n.laneId??null)===e)}function P(e){return f.columns.find(t=>t.id===e)}let F=(0,a.ref)(new Set);function xe(e){let t=j(e),n=new Set(F.value);n.has(t)?n.delete(t):n.add(t),F.value=n}function I(e){return F.value.has(j(e))}function L(e){let t=e.label??e.name??e.title;return typeof t==`string`?t:`Item ${e.id}`}function R(e,t){return e?`${t.label}, ${e.label}`:t.label}function Se(e,t){return R(e,t)}function Ce(e,t,n){let r=N(O(t),n.id),i=r.findIndex(t=>t.id===e.id),a=`${L(e)}, ${i+1} of ${r.length} in ${R(t,n)}`;return K.value?.item.id===e.id?`${a}, picked up`:a}let z=(0,a.ref)(``);function B(e,t,n,r){let i=N(t,n).filter(t=>t.id!==e.item.id),a=Math.max(0,Math.min(r,i.length));return e.fromColumnId===n&&e.fromLaneId===t&&a===N(t,n).findIndex(t=>t.id===e.item.id)?!1:(m(`move`,{itemId:e.item.id,fromColumnId:e.fromColumnId,toColumnId:n,fromLaneId:e.fromLaneId,toLaneId:t,toIndex:a,beforeItemId:i[a-1]?.id??null,afterItemId:i[a]?.id??null}),!0)}let V=(0,a.ref)(null),H=(0,a.ref)(null),U=(0,a.ref)(null);function we(e,t,n){K.value=null;let r=_(e.id)&&h.value.length>1?C():void 0;V.value={item:e,fromLaneId:O(t),fromColumnId:n,group:r},r&&(z.value=`Moving ${r.length} cards`)}function Te(e,t,n,r,i){if(!V.value)return;let a=e.currentTarget.getBoundingClientRect();if(f.nestable&&!V.value.group&&a.height>=me){let r=(e.clientY-a.top)/a.height,o=(1-pe)/2;if(r>o&&r<1-o&&i.id!==V.value.item.id){U.value={laneId:O(t),colId:n,itemId:i.id},H.value=null;return}}U.value=null;let o=e.clientY>=a.top+a.height/2;H.value={laneId:O(t),colId:n,index:r+(o?1:0)}}function W(e,t){if(!V.value)return;let n=O(e);H.value={laneId:n,colId:t,index:N(n,t).length}}function Ee(){H.value=null,U.value=null}function De(){V.value=null,H.value=null,U.value=null}function Oe(e,t){return G(e,t)!==null}function G(e,t){let n=O(e),r=H.value;if(V.value&&r&&r.laneId===n&&r.colId===t)return r.index;let i=K.value;if(i&&i.laneId===n&&i.colId===t){let e=N(n,t).findIndex(e=>e.id===i.item.id);return e!==-1&&e<=i.index?i.index+1:i.index}return null}function ke(e,t,n){let r=U.value;return r!==null&&r.laneId===O(e)&&r.colId===t&&r.itemId===n.id}function Ae(e,t,n){return n===N(O(e),t).length-1&&G(e,t)===n+1}function je(e,t){if(Z.value!==null)return;let n=H.value,r=U.value;H.value=null,U.value=null;let i=V.value;if(V.value=null,!i)return;if(r){m(`nest`,{itemId:i.item.id,ontoItemId:r.itemId,fromColumnId:i.fromColumnId,...f.lanes?{fromLaneId:i.fromLaneId}:{}}),z.value=`${L(i.item)} dropped onto ${L(f.items.find(e=>e.id===r.itemId)??i.item)}`;return}let a=O(e),o=N(a,t),s=n&&n.laneId===a&&n.colId===t?n.index:o.length,c=o.findIndex(e=>e.id===i.item.id),l=c!==-1&&c<s?s-1:s;if(i.group){w(i.group,i.item.id,a,t,l);return}B(i,a,t,l)}let K=(0,a.ref)(null);function Me(e,t,n,r){let i=O(n);if(f.selectable&&(e.key===`x`||e.key===`X`)&&!K.value){e.preventDefault(),S(t.id);return}if(e.key===`Escape`){if(!K.value){f.selectable&&h.value.length>0&&(e.preventDefault(),y());return}e.preventDefault(),K.value=null,z.value=`Move cancelled`;return}if(e.key===` `||e.key===`Enter`){if(e.preventDefault(),K.value?.item.id!==t.id){Ne(t,i,r);return}if(f.nestable&&e.shiftKey&&J()){Ie();return}Le();return}[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(e.key)&&(e.preventDefault(),K.value?.item.id===t.id?Fe(e.key):Re(e.key,t,i,r))}function Ne(e,t,n){K.value={item:e,fromLaneId:t,fromColumnId:n,laneId:t,colId:n,index:N(t,n).findIndex(t=>t.id===e.id)},z.value=`${L(e)} picked up, ${q()}`}function q(){let e=K.value;if(!e)return``;let t=N(e.laneId,e.colId).filter(t=>t.id!==e.item.id),n=P(e.colId),r=f.lanes?.find(t=>(t.id??null)===e.laneId)??null,i=n?R(r,n):e.colId;return`position ${e.index+1} of ${t.length+1} in ${i}`}function Pe(){return!f.lanes||f.lanes.length===0?[null]:f.lanes.filter(e=>!I(e.id)).map(e=>e.id??null)}function Fe(e){let t=K.value;if(!t)return;let n=N(t.laneId,t.colId).filter(e=>e.id!==t.item.id);if(e===`ArrowUp`||e===`ArrowDown`){let r=e===`ArrowUp`?-1:1,i=t.index+r;if(i>=0&&i<=n.length)t.index=i;else{let e=Pe(),n=e.indexOf(t.laneId),i=n+r;if(n===-1||i<0||i>=e.length)return;let a=e[i];t.laneId=a,t.index=r===1?0:N(a,t.colId).filter(e=>e.id!==t.item.id).length}}else{let n=e===`ArrowLeft`?-1:1,r=f.columns.findIndex(e=>e.id===t.colId),i=f.columns[r+n];if(r===-1||!i)return;t.colId=i.id;let a=N(t.laneId,t.colId).filter(e=>e.id!==t.item.id);t.index=Math.min(t.index,a.length)}z.value=`${L(t.item)}, ${q()}`}function J(){let e=K.value;if(!e)return null;let t=N(e.laneId,e.colId).filter(t=>t.id!==e.item.id);return t.length===0?null:t[Math.min(e.index,t.length-1)]??null}function Ie(){let e=K.value,t=J();!e||!t||(K.value=null,m(`nest`,{itemId:e.item.id,ontoItemId:t.id,fromColumnId:e.fromColumnId,...f.lanes?{fromLaneId:e.fromLaneId}:{}}),z.value=`${L(e.item)} dropped onto ${L(t)}`)}function Le(){let e=K.value;if(!e)return;if(K.value=null,_(e.item.id)&&h.value.length>1){w(C(),e.item.id,e.laneId,e.colId,e.index),X(e.item.id);return}let t=B({item:e.item,fromLaneId:e.fromLaneId,fromColumnId:e.fromColumnId},e.laneId,e.colId,e.index),n=P(e.colId),r=f.lanes?.find(t=>(t.id??null)===e.laneId)??null,i=n?R(r,n):e.colId;z.value=t?`${L(e.item)} dropped, position ${e.index+1} in ${i}`:`${L(e.item)} dropped`,X(e.item.id)}function Re(e,t,n,r){let i=N(n,r),a=i.findIndex(e=>e.id===t.id);if(e===`ArrowUp`||e===`ArrowDown`){let t=a+(e===`ArrowDown`?1:-1);t>=0&&t<i.length&&Y(i[t].id)}else{let t=f.columns.findIndex(e=>e.id===r),i=f.columns[t+(e===`ArrowRight`?1:-1)];if(t===-1||!i)return;let o=N(n,i.id);if(o.length===0)return;Y(o[Math.min(a,o.length-1)].id)}}function Y(e){let t=E.value?.querySelectorAll(`[data-item-id]`);if(t){for(let n of t)if(n.dataset.itemId===e){n.focus();return}}}async function X(e){await(0,a.nextTick)(),await(0,a.nextTick)(),Y(e)}function ze(e){K.value?.item.id===e.id&&(K.value=null)}let Z=(0,a.ref)(null),Q=(0,a.ref)(null);function Be(e,t){if(!f.reorderableColumns){t.preventDefault();return}Z.value=e,Q.value=e}function Ve(e,t){if(Z.value===null)return;t.preventDefault();let n=t.currentTarget.getBoundingClientRect();Q.value=t.clientX<n.left+n.width/2?e:e+1}function He(e){let t=Z.value,n=Q.value;if($(),t===null||n===null)return;e.preventDefault();let r=n>t?n-1:n;r!==t&&m(`column-move`,{columnId:f.columns[t].id,toIndex:r})}function $(){Z.value=null,Q.value=null}return(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,(0,a.mergeProps)({ref_key:`boardRef`,ref:E,class:[`nb-board`,{"nb-board--flat":(0,a.unref)(p)&&D.value[0]===null,"nb-board--batching":(0,a.unref)(p)&&b.value,"nb-board--select-mode":x.value}]},(0,a.unref)(ge)),[(0,a.createElementVNode)(`div`,{class:`nb-board__grid`,style:(0,a.normalizeStyle)(be.value)},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.columns,(n,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:n.id,class:(0,a.normalizeClass)([`nb-board__col-header`,{"nb-board__col-header--reorderable":e.reorderableColumns,"nb-board__col-header--dragging":Z.value===r,"nb-board__col-header--drop-before":Q.value===r,"nb-board__col-header--drop-after":Q.value===r+1&&r===e.columns.length-1}]),style:(0,a.normalizeStyle)(n.color?{borderTopColor:n.color}:void 0),draggable:e.reorderableColumns||void 0,onDragstart:e=>Be(r,e),onDragover:e=>Ve(r,e),onDrop:He,onDragend:$},[(0,a.renderSlot)(t.$slots,`column-header`,{column:n,count:A(n.id)},()=>[(0,a.createElementVNode)(`span`,c,(0,a.toDisplayString)(n.label),1),(0,a.createElementVNode)(`span`,l,(0,a.toDisplayString)(A(n.id)),1)])],46,s))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(D.value,n=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:k(n)},[n?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:`nb-board__lane-header`,onClick:e=>xe(n.id)},[(0,a.createElementVNode)(`button`,{class:`nb-board__collapse-btn`,"aria-label":I(n.id)?`Expand`:`Collapse`},(0,a.toDisplayString)(I(n.id)?`▶`:`▼`),9,te),(0,a.renderSlot)(t.$slots,`lane-header`,{lane:n},()=>[(0,a.createElementVNode)(`span`,ne,(0,a.toDisplayString)(n.label),1)]),(0,a.createElementVNode)(`span`,re,(0,a.toDisplayString)(M(n.id)),1)],8,ee)):(0,a.createCommentVNode)(``,!0),!n||!I(n.id)?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:1},(0,a.renderList)(e.columns,r=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:k(n)+`-`+r.id,class:(0,a.normalizeClass)([`nb-board__cell`,{"nb-board__cell--drag-over":Oe(n,r.id)}]),onDragover:(0,a.withModifiers)(e=>W(n,r.id),[`prevent`]),onDragleave:Ee,onDrop:(0,a.withModifiers)(e=>je(n,r.id),[`prevent`])},[(0,a.createElementVNode)(`div`,{class:`nb-board__cell-items`,role:`list`,"aria-label":Se(n,r)},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(N(O(n),r.id),(i,o)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:i.id,class:(0,a.normalizeClass)([`nb-board__card`,{"nb-board__card--lifted":K.value?.item.id===i.id,"nb-board__card--selected":_(i.id),"nb-board__card--carried":!!V.value?.group&&_(i.id),"nb-board__card--drop-before":G(n,r.id)===o,"nb-board__card--drop-after":Ae(n,r.id,o),"nb-board__card--drop-into":ke(n,r.id,i)}]),role:`listitem`,tabindex:`0`,"data-item-id":i.id,"aria-selected":e.selectable?_(i.id):void 0,"aria-label":Ce(i,n,r),"aria-describedby":`${(0,a.unref)(T)}-hint`,draggable:`true`,onDragstart:e=>we(i,n,r.id),onDragover:(0,a.withModifiers)(e=>Te(e,n,r.id,o,i),[`prevent`,`stop`]),onDragend:De,onKeydown:e=>Me(e,i,n,r.id),onClickCapture:e=>ye(e,i,n,r.id),onBlur:e=>ze(i)},[(0,a.renderSlot)(t.$slots,`card`,{item:i,column:r,lane:n??void 0})],42,oe))),128)),N(O(n),r.id).length===0?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,se)):(0,a.createCommentVNode)(``,!0)],8,ae),t.$slots[`column-footer`]?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,ce,[(0,a.renderSlot)(t.$slots,`column-footer`,{column:r,lane:n??void 0})])):(0,a.createCommentVNode)(``,!0)],42,ie))),128)):(0,a.createCommentVNode)(``,!0)],64))),128))],4),((0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:`body`,disabled:!(0,a.unref)(p)},[b.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,u,[(0,a.createElementVNode)(`span`,le,(0,a.toDisplayString)(h.value.length)+` selected `,1),(0,a.createElementVNode)(`div`,ue,[(0,a.renderSlot)(t.$slots,`batch-actions`,{selected:h.value,clear:y,phone:(0,a.unref)(p)})]),(0,a.unref)(p)?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:0,class:`nb-board__batch-cancel`,variant:`ghost`,size:`sm`,icon:o,"aria-label":`Clear selection`,onClick:y})):((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:1,class:`nb-board__batch-cancel`,variant:`ghost`,size:`sm`,onClick:y},{default:(0,a.withCtx)(()=>[...n[0]||=[(0,a.createTextVNode)(` Clear selection `,-1)]]),_:1}))])):(0,a.createCommentVNode)(``,!0)],8,[`disabled`])),(0,a.createElementVNode)(`span`,{id:`${(0,a.unref)(T)}-hint`,class:`nb-board__sr`},[n[1]||=(0,a.createTextVNode)(` Press Space or Enter to pick up, arrow keys to move, Space or Enter to drop, Escape to cancel.`,-1),e.nestable?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createTextVNode)(` Shift with Space or Enter drops onto the card below instead, putting this one inside it.`)],64)):(0,a.createCommentVNode)(``,!0),e.selectable?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createTextVNode)(` X selects the card, or removes it from the selection. Picking up a selected card moves every selected card. Escape clears the selection.`)],64)):(0,a.createCommentVNode)(``,!0),x.value?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createTextVNode)(` Selecting: activating a card selects it, or removes it from the selection.`)],64)):(0,a.createCommentVNode)(``,!0)],8,de),(0,a.createElementVNode)(`span`,fe,(0,a.toDisplayString)(z.value),1)],16))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./composables/useSurfaceLayer.composable.cjs`),r=require(`./composables/usePhoneLayout.composable.cjs`),i=require(`./Button-tmwLbryG.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/x`);o=e.n(o);var s=[`draggable`,`onDragstart`,`onDragover`],c={class:`nb-board__col-title`},l={class:`nb-board__col-count`},ee=[`onClick`],te=[`aria-label`],ne={class:`nb-board__lane-label`},re={class:`nb-board__lane-count`},ie=[`onDragover`,`onDrop`],ae=[`aria-label`],oe=[`data-item-id`,`aria-selected`,`aria-label`,`aria-describedby`,`onDragstart`,`onDragover`,`onKeydown`,`onClickCapture`,`onBlur`],se={key:0,class:`nb-board__empty-cell`,"aria-hidden":`true`},ce={key:0,class:`nb-board__cell-footer`},u={key:0,class:`nb-board__batch`,role:`region`,"aria-label":`Actions for the selected cards`},le={class:`nb-board__batch-count`},ue={class:`nb-board__batch-actions`},de=[`id`],fe={class:`nb-board__sr`,"aria-live":`assertive`},pe=.5,me=44,d=(0,a.defineComponent)({__name:`Board`,props:{columns:{},items:{},lanes:{default:void 0},reorderableColumns:{type:Boolean,default:!1},nestable:{type:Boolean,default:!1},selectable:{type:Boolean,default:!1},selected:{default:void 0},selectMode:{type:Boolean,default:!1}},emits:[`move`,`nest`,`column-move`,`move-many`,`update:selected`,`update:selectMode`],setup(e,{emit:d}){let f=e,{phone:p}=r.usePhoneLayout(),he=(0,a.useSlots)(),{layerProps:ge}=n.useSurfaceLayer(),m=d,h=(0,a.computed)(()=>f.selectable?f.selected??[]:[]),_e=(0,a.computed)(()=>new Set(h.value)),g=null;function _(e){return _e.value.has(e)}function v(e){m(`update:selected`,e),z.value=e.length===0?`Selection cleared`:`${e.length} ${e.length===1?`card`:`cards`} selected`}function y(){g=null,v([]),x.value&&m(`update:selectMode`,!1)}let b=(0,a.computed)(()=>f.selectable&&h.value.length>0&&!!he[`batch-actions`]),x=(0,a.computed)(()=>f.selectable&&f.selectMode);function S(e){g=e,v(_(e)?h.value.filter(t=>t!==e):[...h.value,e])}function ve(e,t,n){let r=N(t,n),i=g?r.findIndex(e=>e.id===g):-1,a=r.findIndex(t=>t.id===e.id);if(i===-1||a===-1)return S(e.id);let o=r.slice(Math.min(i,a),Math.max(i,a)+1).map(e=>e.id);v([...new Set([...h.value,...o])])}function ye(e,t,n,r){f.selectable&&(!x.value&&!(e.metaKey||e.ctrlKey||e.shiftKey)||(e.preventDefault(),e.stopPropagation(),e.shiftKey?ve(t,O(n),r):S(t.id)))}function C(){let e=[];for(let t of f.columns)for(let n of D.value)for(let r of N(O(n),t.id))_(r.id)&&!e.includes(r.id)&&e.push(r.id);return e}function w(e,t,n,r,i){let a=new Set(e),o=N(n,r).filter(e=>e.id!==t),s=null;for(let e=Math.min(i,o.length)-1;e>=0;e--)if(!a.has(o[e].id)){s=o[e].id;break}let c=null;for(let e=Math.max(i,0);e<o.length;e++)if(!a.has(o[e].id)){c=o[e].id;break}m(`move-many`,{itemIds:e,toColumnId:r,...f.lanes?{toLaneId:n}:{},beforeItemId:s,afterItemId:c});let l=P(r);z.value=`${e.length} cards moved to ${l?.label??r}`}let T=t.useStableId({}),E=(0,a.ref)(null),be=(0,a.computed)(()=>({gridTemplateColumns:`repeat(${f.columns.length}, var(--nb-board-column-track, minmax(200px, 1fr)))`,...p.value?{"--nb-board-cols":String(f.columns.length)}:{}})),D=(0,a.computed)(()=>f.lanes&&f.lanes.length>0?f.lanes:[null]);function O(e){return e?e.id??null:null}function k(e){return e?j(e.id):`__flat__`}function A(e){return f.items.filter(t=>t.columnId===e).length}function j(e){return e??`__none__`}function M(e){return f.lanes?f.items.filter(t=>(t.laneId??null)===e).length:0}function N(e,t){return!f.lanes||f.lanes.length===0?f.items.filter(e=>e.columnId===t):f.items.filter(n=>n.columnId===t&&(n.laneId??null)===e)}function P(e){return f.columns.find(t=>t.id===e)}let F=(0,a.ref)(new Set);function xe(e){let t=j(e),n=new Set(F.value);n.has(t)?n.delete(t):n.add(t),F.value=n}function I(e){return F.value.has(j(e))}function L(e){let t=e.label??e.name??e.title;return typeof t==`string`?t:`Item ${e.id}`}function R(e,t){return e?`${t.label}, ${e.label}`:t.label}function Se(e,t){return R(e,t)}function Ce(e,t,n){let r=N(O(t),n.id),i=r.findIndex(t=>t.id===e.id),a=`${L(e)}, ${i+1} of ${r.length} in ${R(t,n)}`;return K.value?.item.id===e.id?`${a}, picked up`:a}let z=(0,a.ref)(``);function B(e,t,n,r){let i=N(t,n).filter(t=>t.id!==e.item.id),a=Math.max(0,Math.min(r,i.length));return e.fromColumnId===n&&e.fromLaneId===t&&a===N(t,n).findIndex(t=>t.id===e.item.id)?!1:(m(`move`,{itemId:e.item.id,fromColumnId:e.fromColumnId,toColumnId:n,fromLaneId:e.fromLaneId,toLaneId:t,toIndex:a,beforeItemId:i[a-1]?.id??null,afterItemId:i[a]?.id??null}),!0)}let V=(0,a.ref)(null),H=(0,a.ref)(null),U=(0,a.ref)(null);function we(e,t,n){K.value=null;let r=_(e.id)&&h.value.length>1?C():void 0;V.value={item:e,fromLaneId:O(t),fromColumnId:n,group:r},r&&(z.value=`Moving ${r.length} cards`)}function Te(e,t,n,r,i){if(!V.value)return;let a=e.currentTarget.getBoundingClientRect();if(f.nestable&&!V.value.group&&a.height>=me){let r=(e.clientY-a.top)/a.height,o=(1-pe)/2;if(r>o&&r<1-o&&i.id!==V.value.item.id){U.value={laneId:O(t),colId:n,itemId:i.id},H.value=null;return}}U.value=null;let o=e.clientY>=a.top+a.height/2;H.value={laneId:O(t),colId:n,index:r+(o?1:0)}}function W(e,t){if(!V.value)return;let n=O(e);H.value={laneId:n,colId:t,index:N(n,t).length}}function Ee(){H.value=null,U.value=null}function De(){V.value=null,H.value=null,U.value=null}function Oe(e,t){return G(e,t)!==null}function G(e,t){let n=O(e),r=H.value;if(V.value&&r&&r.laneId===n&&r.colId===t)return r.index;let i=K.value;if(i&&i.laneId===n&&i.colId===t){let e=N(n,t).findIndex(e=>e.id===i.item.id);return e!==-1&&e<=i.index?i.index+1:i.index}return null}function ke(e,t,n){let r=U.value;return r!==null&&r.laneId===O(e)&&r.colId===t&&r.itemId===n.id}function Ae(e,t,n){return n===N(O(e),t).length-1&&G(e,t)===n+1}function je(e,t){if(Z.value!==null)return;let n=H.value,r=U.value;H.value=null,U.value=null;let i=V.value;if(V.value=null,!i)return;if(r){m(`nest`,{itemId:i.item.id,ontoItemId:r.itemId,fromColumnId:i.fromColumnId,...f.lanes?{fromLaneId:i.fromLaneId}:{}}),z.value=`${L(i.item)} dropped onto ${L(f.items.find(e=>e.id===r.itemId)??i.item)}`;return}let a=O(e),o=N(a,t),s=n&&n.laneId===a&&n.colId===t?n.index:o.length,c=o.findIndex(e=>e.id===i.item.id),l=c!==-1&&c<s?s-1:s;if(i.group){w(i.group,i.item.id,a,t,l);return}B(i,a,t,l)}let K=(0,a.ref)(null);function Me(e,t,n,r){let i=O(n);if(f.selectable&&(e.key===`x`||e.key===`X`)&&!K.value){e.preventDefault(),S(t.id);return}if(e.key===`Escape`){if(!K.value){f.selectable&&h.value.length>0&&(e.preventDefault(),y());return}e.preventDefault(),K.value=null,z.value=`Move cancelled`;return}if(e.key===` `||e.key===`Enter`){if(e.preventDefault(),K.value?.item.id!==t.id){Ne(t,i,r);return}if(f.nestable&&e.shiftKey&&J()){Ie();return}Le();return}[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(e.key)&&(e.preventDefault(),K.value?.item.id===t.id?Fe(e.key):Re(e.key,t,i,r))}function Ne(e,t,n){K.value={item:e,fromLaneId:t,fromColumnId:n,laneId:t,colId:n,index:N(t,n).findIndex(t=>t.id===e.id)},z.value=`${L(e)} picked up, ${q()}`}function q(){let e=K.value;if(!e)return``;let t=N(e.laneId,e.colId).filter(t=>t.id!==e.item.id),n=P(e.colId),r=f.lanes?.find(t=>(t.id??null)===e.laneId)??null,i=n?R(r,n):e.colId;return`position ${e.index+1} of ${t.length+1} in ${i}`}function Pe(){return!f.lanes||f.lanes.length===0?[null]:f.lanes.filter(e=>!I(e.id)).map(e=>e.id??null)}function Fe(e){let t=K.value;if(!t)return;let n=N(t.laneId,t.colId).filter(e=>e.id!==t.item.id);if(e===`ArrowUp`||e===`ArrowDown`){let r=e===`ArrowUp`?-1:1,i=t.index+r;if(i>=0&&i<=n.length)t.index=i;else{let e=Pe(),n=e.indexOf(t.laneId),i=n+r;if(n===-1||i<0||i>=e.length)return;let a=e[i];t.laneId=a,t.index=r===1?0:N(a,t.colId).filter(e=>e.id!==t.item.id).length}}else{let n=e===`ArrowLeft`?-1:1,r=f.columns.findIndex(e=>e.id===t.colId),i=f.columns[r+n];if(r===-1||!i)return;t.colId=i.id;let a=N(t.laneId,t.colId).filter(e=>e.id!==t.item.id);t.index=Math.min(t.index,a.length)}z.value=`${L(t.item)}, ${q()}`}function J(){let e=K.value;if(!e)return null;let t=N(e.laneId,e.colId).filter(t=>t.id!==e.item.id);return t.length===0?null:t[Math.min(e.index,t.length-1)]??null}function Ie(){let e=K.value,t=J();!e||!t||(K.value=null,m(`nest`,{itemId:e.item.id,ontoItemId:t.id,fromColumnId:e.fromColumnId,...f.lanes?{fromLaneId:e.fromLaneId}:{}}),z.value=`${L(e.item)} dropped onto ${L(t)}`)}function Le(){let e=K.value;if(!e)return;if(K.value=null,_(e.item.id)&&h.value.length>1){w(C(),e.item.id,e.laneId,e.colId,e.index),X(e.item.id);return}let t=B({item:e.item,fromLaneId:e.fromLaneId,fromColumnId:e.fromColumnId},e.laneId,e.colId,e.index),n=P(e.colId),r=f.lanes?.find(t=>(t.id??null)===e.laneId)??null,i=n?R(r,n):e.colId;z.value=t?`${L(e.item)} dropped, position ${e.index+1} in ${i}`:`${L(e.item)} dropped`,X(e.item.id)}function Re(e,t,n,r){let i=N(n,r),a=i.findIndex(e=>e.id===t.id);if(e===`ArrowUp`||e===`ArrowDown`){let t=a+(e===`ArrowDown`?1:-1);t>=0&&t<i.length&&Y(i[t].id)}else{let t=f.columns.findIndex(e=>e.id===r),i=f.columns[t+(e===`ArrowRight`?1:-1)];if(t===-1||!i)return;let o=N(n,i.id);if(o.length===0)return;Y(o[Math.min(a,o.length-1)].id)}}function Y(e){let t=E.value?.querySelectorAll(`[data-item-id]`);if(t){for(let n of t)if(n.dataset.itemId===e){n.focus();return}}}async function X(e){await(0,a.nextTick)(),await(0,a.nextTick)(),Y(e)}function ze(e){K.value?.item.id===e.id&&(K.value=null)}let Z=(0,a.ref)(null),Q=(0,a.ref)(null);function Be(e,t){if(!f.reorderableColumns){t.preventDefault();return}Z.value=e,Q.value=e}function Ve(e,t){if(Z.value===null)return;t.preventDefault();let n=t.currentTarget.getBoundingClientRect();Q.value=t.clientX<n.left+n.width/2?e:e+1}function He(e){let t=Z.value,n=Q.value;if($(),t===null||n===null)return;e.preventDefault();let r=n>t?n-1:n;r!==t&&m(`column-move`,{columnId:f.columns[t].id,toIndex:r})}function $(){Z.value=null,Q.value=null}return(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,(0,a.mergeProps)({ref_key:`boardRef`,ref:E,class:[`nb-board`,{"nb-board--flat":(0,a.unref)(p)&&D.value[0]===null,"nb-board--batching":(0,a.unref)(p)&&b.value,"nb-board--select-mode":x.value}]},(0,a.unref)(ge)),[(0,a.createElementVNode)(`div`,{class:`nb-board__grid`,style:(0,a.normalizeStyle)(be.value)},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.columns,(n,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:n.id,class:(0,a.normalizeClass)([`nb-board__col-header`,{"nb-board__col-header--reorderable":e.reorderableColumns,"nb-board__col-header--dragging":Z.value===r,"nb-board__col-header--drop-before":Q.value===r,"nb-board__col-header--drop-after":Q.value===r+1&&r===e.columns.length-1}]),style:(0,a.normalizeStyle)(n.color?{borderTopColor:n.color}:void 0),draggable:e.reorderableColumns||void 0,onDragstart:e=>Be(r,e),onDragover:e=>Ve(r,e),onDrop:He,onDragend:$},[(0,a.renderSlot)(t.$slots,`column-header`,{column:n,count:A(n.id)},()=>[(0,a.createElementVNode)(`span`,c,(0,a.toDisplayString)(n.label),1),(0,a.createElementVNode)(`span`,l,(0,a.toDisplayString)(A(n.id)),1)])],46,s))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(D.value,n=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:k(n)},[n?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:`nb-board__lane-header`,onClick:e=>xe(n.id)},[(0,a.createElementVNode)(`button`,{class:`nb-board__collapse-btn`,"aria-label":I(n.id)?`Expand`:`Collapse`},(0,a.toDisplayString)(I(n.id)?`▶`:`▼`),9,te),(0,a.createElementVNode)(`span`,ne,[(0,a.renderSlot)(t.$slots,`lane-header`,{lane:n},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.label),1)])]),(0,a.createElementVNode)(`span`,re,(0,a.toDisplayString)(M(n.id)),1)],8,ee)):(0,a.createCommentVNode)(``,!0),!n||!I(n.id)?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:1},(0,a.renderList)(e.columns,r=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:k(n)+`-`+r.id,class:(0,a.normalizeClass)([`nb-board__cell`,{"nb-board__cell--drag-over":Oe(n,r.id)}]),onDragover:(0,a.withModifiers)(e=>W(n,r.id),[`prevent`]),onDragleave:Ee,onDrop:(0,a.withModifiers)(e=>je(n,r.id),[`prevent`])},[(0,a.createElementVNode)(`div`,{class:`nb-board__cell-items`,role:`list`,"aria-label":Se(n,r)},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(N(O(n),r.id),(i,o)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:i.id,class:(0,a.normalizeClass)([`nb-board__card`,{"nb-board__card--lifted":K.value?.item.id===i.id,"nb-board__card--selected":_(i.id),"nb-board__card--carried":!!V.value?.group&&_(i.id),"nb-board__card--drop-before":G(n,r.id)===o,"nb-board__card--drop-after":Ae(n,r.id,o),"nb-board__card--drop-into":ke(n,r.id,i)}]),role:`listitem`,tabindex:`0`,"data-item-id":i.id,"aria-selected":e.selectable?_(i.id):void 0,"aria-label":Ce(i,n,r),"aria-describedby":`${(0,a.unref)(T)}-hint`,draggable:`true`,onDragstart:e=>we(i,n,r.id),onDragover:(0,a.withModifiers)(e=>Te(e,n,r.id,o,i),[`prevent`,`stop`]),onDragend:De,onKeydown:e=>Me(e,i,n,r.id),onClickCapture:e=>ye(e,i,n,r.id),onBlur:e=>ze(i)},[(0,a.renderSlot)(t.$slots,`card`,{item:i,column:r,lane:n??void 0})],42,oe))),128)),N(O(n),r.id).length===0?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,se)):(0,a.createCommentVNode)(``,!0)],8,ae),t.$slots[`column-footer`]?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,ce,[(0,a.renderSlot)(t.$slots,`column-footer`,{column:r,lane:n??void 0})])):(0,a.createCommentVNode)(``,!0)],42,ie))),128)):(0,a.createCommentVNode)(``,!0)],64))),128))],4),((0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:`body`,disabled:!(0,a.unref)(p)},[b.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,u,[(0,a.createElementVNode)(`span`,le,(0,a.toDisplayString)(h.value.length)+` selected `,1),(0,a.createElementVNode)(`div`,ue,[(0,a.renderSlot)(t.$slots,`batch-actions`,{selected:h.value,clear:y,phone:(0,a.unref)(p)})]),(0,a.unref)(p)?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:0,class:`nb-board__batch-cancel`,variant:`ghost`,size:`sm`,icon:o,"aria-label":`Clear selection`,onClick:y})):((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:1,class:`nb-board__batch-cancel`,variant:`ghost`,size:`sm`,onClick:y},{default:(0,a.withCtx)(()=>[...n[0]||=[(0,a.createTextVNode)(` Clear selection `,-1)]]),_:1}))])):(0,a.createCommentVNode)(``,!0)],8,[`disabled`])),(0,a.createElementVNode)(`span`,{id:`${(0,a.unref)(T)}-hint`,class:`nb-board__sr`},[n[1]||=(0,a.createTextVNode)(` Press Space or Enter to pick up, arrow keys to move, Space or Enter to drop, Escape to cancel.`,-1),e.nestable?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createTextVNode)(` Shift with Space or Enter drops onto the card below instead, putting this one inside it.`)],64)):(0,a.createCommentVNode)(``,!0),e.selectable?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createTextVNode)(` X selects the card, or removes it from the selection. Picking up a selected card moves every selected card. Escape clears the selection.`)],64)):(0,a.createCommentVNode)(``,!0),x.value?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createTextVNode)(` Selecting: activating a card selects it, or removes it from the selection.`)],64)):(0,a.createCommentVNode)(``,!0)],8,de),(0,a.createElementVNode)(`span`,fe,(0,a.toDisplayString)(z.value),1)],16))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
@@ -1,7 +1,7 @@
1
1
  import { useStableId as e } from "./composables/useStableId.composable.mjs";
2
2
  import { useSurfaceLayer as t } from "./composables/useSurfaceLayer.composable.mjs";
3
3
  import { usePhoneLayout as n } from "./composables/usePhoneLayout.composable.mjs";
4
- import { t as r } from "./Button-C-OsrbBY.js";
4
+ import { t as r } from "./Button-Cepcs335.js";
5
5
  import { Fragment as i, Teleport as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, mergeProps as ee, nextTick as p, normalizeClass as m, normalizeStyle as h, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as x, useSlots as te, withCtx as ne, withModifiers as S } from "vue";
6
6
  import * as re from "@nubisco/ui/icons/x";
7
7
  //#region src/components/Board.vue?vue&type=script&setup=true&lang.ts
@@ -464,7 +464,7 @@ var ie = [
464
464
  class: "nb-board__collapse-btn",
465
465
  "aria-label": V(t.id) ? "Expand" : "Collapse"
466
466
  }, b(V(t.id) ? "▶" : "▼"), 9, ce),
467
- y(e.$slots, "lane-header", { lane: t }, () => [u("span", le, b(t.label), 1)]),
467
+ u("span", le, [y(e.$slots, "lane-header", { lane: t }, () => [d(b(t.label), 1)])]),
468
468
  u("span", ue, b(Fe(t.id)), 1)
469
469
  ], 8, se)) : c("", !0), !t || !V(t.id) ? (g(!0), l(i, { key: 1 }, v(f.columns, (n) => (g(), l("div", {
470
470
  key: Ne(t) + "-" + n.id,
@@ -0,0 +1,184 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
+ import { t } from "./Icon-DwhI2DFK.js";
3
+ import { usePhoneLayout as n } from "./composables/usePhoneLayout.composable.mjs";
4
+ import { t as r } from "./Button-Cepcs335.js";
5
+ import { t as i } from "./Avatar-DqZ-eYb8.js";
6
+ import { t as a } from "./Select-Dah-tYeb.js";
7
+ import { Comment as o, Fragment as s, Text as ee, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, defineComponent as g, getCurrentInstance as te, mergeProps as _, normalizeClass as v, openBlock as y, renderList as b, renderSlot as ne, toDisplayString as x, unref as re, useSlots as ie, withCtx as S } from "vue";
8
+ import { regular as C } from "@nubisco/ui/icons/caret-right";
9
+ import * as w from "@nubisco/ui/icons/caret-up-down";
10
+ //#region src/components/Breadcrumbs.vue?vue&type=script&setup=true&lang.ts
11
+ var T = {
12
+ key: 0,
13
+ class: "nb-breadcrumbs__brand"
14
+ }, E = {
15
+ key: 0,
16
+ class: "nb-breadcrumbs__title"
17
+ }, D = {
18
+ key: 1,
19
+ class: "nb-breadcrumbs__subtitle"
20
+ }, O = {
21
+ key: 2,
22
+ class: "nb-breadcrumbs__crumbs"
23
+ }, k = {
24
+ key: 1,
25
+ class: "nb-breadcrumbs__current",
26
+ "aria-current": "page"
27
+ }, A = {
28
+ key: 0,
29
+ class: "nb-breadcrumbs__code"
30
+ }, j = {
31
+ key: 0,
32
+ class: "nb-breadcrumbs__code"
33
+ }, M = {
34
+ key: 3,
35
+ class: "nb-breadcrumbs__parent"
36
+ }, N = {
37
+ key: 0,
38
+ class: "nb-breadcrumbs__code"
39
+ }, P = { class: "nb-breadcrumbs__option" }, F = { class: "nb-breadcrumbs__option-label" }, I = ["aria-label"], L = /* @__PURE__ */ e(/* @__PURE__ */ g({
40
+ __name: "Breadcrumbs",
41
+ props: {
42
+ title: { default: void 0 },
43
+ subtitle: { default: void 0 },
44
+ collapse: { default: "none" },
45
+ items: { default: void 0 }
46
+ },
47
+ emits: ["select", "switch"],
48
+ setup(e, { emit: g }) {
49
+ let L = e, R = g, z = te(), B = c(() => !!z?.vnode.props?.onSelect), V = c(() => {
50
+ let e = L.items ?? [], t = e.findIndex((e) => e.current);
51
+ return t === -1 ? e.length - 1 : t;
52
+ });
53
+ function H(e) {
54
+ return e === V.value;
55
+ }
56
+ function U(e) {
57
+ return e.to != null || !!e.href || !!e.onClick || B.value;
58
+ }
59
+ function W(e, t, n) {
60
+ e.onClick?.(n), R("select", e, t, n);
61
+ }
62
+ let G = [], K = (e, t) => e.value ?? t;
63
+ function q(e) {
64
+ return (e.options ?? []).map((e, t) => ({
65
+ label: e.label,
66
+ value: K(e, t),
67
+ icon: e.picture === void 0 ? e.icon : void 0
68
+ }));
69
+ }
70
+ function J(e) {
71
+ return (e.options ?? []).some((e) => e.picture !== void 0);
72
+ }
73
+ function Y(e, t) {
74
+ let n = e.options ?? [], r = n.findIndex((e, n) => K(e, n) === t);
75
+ return r === -1 ? void 0 : n[r].picture;
76
+ }
77
+ function X(e) {
78
+ if (e.value != null) return e.value;
79
+ let t = e.options ?? [], n = t.findIndex((t) => t.label === e.label);
80
+ return n === -1 ? null : K(t[n], n);
81
+ }
82
+ function ae(e, t, n) {
83
+ let r = e.options ?? [], i = r.findIndex((e, t) => K(e, t) === n);
84
+ if (i === -1 || n === X(e)) return;
85
+ let a = r[i];
86
+ R("switch", e, a, t), oe(a);
87
+ }
88
+ function oe(e) {
89
+ let t = z?.appContext.config.globalProperties.$router;
90
+ e.to == null ? e.href && window.location.assign(e.href) : t ? t.push(e.to) : typeof e.to == "string" && window.location.assign(e.to);
91
+ }
92
+ let se = ie();
93
+ function Z(e) {
94
+ return e.some((e) => e.type === o ? !1 : e.type === ee ? String(e.children ?? "").trim() !== "" : e.type === s ? Z(e.children ?? []) : !0);
95
+ }
96
+ let Q = c(() => Z(se.default?.() ?? [])), $ = c(() => !!L.items?.length || Q.value), { phone: ce } = n(), le = c(() => L.collapse === "phone" && ce.value && $.value);
97
+ return (n, o) => (y(), d("nav", {
98
+ class: v(["nb-breadcrumbs", { "nb-breadcrumbs--collapsed": le.value }]),
99
+ "aria-label": "breadcrumb"
100
+ }, [
101
+ e.title || e.subtitle ? (y(), d("span", T, [e.title ? (y(), d("span", E, x(e.title), 1)) : u("", !0), e.subtitle ? (y(), d("span", D, x(e.subtitle), 1)) : u("", !0)])) : u("", !0),
102
+ (e.title || e.subtitle) && $.value ? (y(), l(t, {
103
+ key: 1,
104
+ name: re(C),
105
+ size: "sm",
106
+ class: "nb-breadcrumbs__sep"
107
+ }, null, 8, ["name"])) : u("", !0),
108
+ $.value ? (y(), d("span", O, [e.items?.length ? (y(!0), d(s, { key: 0 }, b(e.items, (e, n) => (y(), d("span", {
109
+ key: n,
110
+ ref_for: !0,
111
+ ref: (e) => G[n] = e,
112
+ class: "nb-breadcrumbs__item"
113
+ }, [
114
+ e.picture === void 0 ? u("", !0) : (y(), l(i, {
115
+ key: 0,
116
+ class: "nb-breadcrumbs__picture",
117
+ name: e.label,
118
+ picture: e.picture,
119
+ size: 16,
120
+ decorative: ""
121
+ }, null, 8, ["name", "picture"])),
122
+ H(n) ? (y(), d("span", k, [e.code ? (y(), d("code", A, x(e.label), 1)) : (y(), d(s, { key: 1 }, [m(x(e.label), 1)], 64))])) : U(e) ? (y(), l(r, {
123
+ key: 2,
124
+ class: "nb-breadcrumbs__link",
125
+ variant: "link",
126
+ to: e.to,
127
+ href: e.href,
128
+ target: e.target,
129
+ onClick: (t) => W(e, n, t)
130
+ }, {
131
+ default: S(() => [e.code ? (y(), d("code", j, x(e.label), 1)) : (y(), d(s, { key: 1 }, [m(x(e.label), 1)], 64))]),
132
+ _: 2
133
+ }, 1032, [
134
+ "to",
135
+ "href",
136
+ "target",
137
+ "onClick"
138
+ ])) : (y(), d("span", M, [e.code ? (y(), d("code", N, x(e.label), 1)) : (y(), d(s, { key: 1 }, [m(x(e.label), 1)], 64))])),
139
+ e.options?.length ? (y(), l(a, {
140
+ key: 4,
141
+ class: "nb-breadcrumbs__switcher",
142
+ searchable: "",
143
+ "selected-mark": "check",
144
+ anchor: () => G[n],
145
+ "model-value": X(e),
146
+ options: q(e),
147
+ "search-placeholder": e.searchPlaceholder ?? "Find",
148
+ "no-results-label": e.noResultsLabel ?? "No results",
149
+ onChange: (t) => ae(e, n, t)
150
+ }, p({
151
+ trigger: S(({ attrs: n }) => [f("button", _({
152
+ type: "button",
153
+ class: "nb-breadcrumbs__switch"
154
+ }, { ref_for: !0 }, n, { "aria-label": e.switchLabel ?? `Switch ${e.label}` }), [h(t, {
155
+ name: w,
156
+ size: 14,
157
+ "aria-hidden": "true"
158
+ })], 16, I)]),
159
+ _: 2
160
+ }, [J(e) ? {
161
+ name: "option",
162
+ fn: S(({ option: t }) => [f("span", P, [Y(e, t.value) === void 0 ? u("", !0) : (y(), l(i, {
163
+ key: 0,
164
+ class: "nb-breadcrumbs__option-picture",
165
+ name: t.label,
166
+ picture: Y(e, t.value),
167
+ size: 16,
168
+ decorative: ""
169
+ }, null, 8, ["name", "picture"])), f("span", F, x(t.label), 1)])]),
170
+ key: "0"
171
+ } : void 0]), 1032, [
172
+ "anchor",
173
+ "model-value",
174
+ "options",
175
+ "search-placeholder",
176
+ "no-results-label",
177
+ "onChange"
178
+ ])) : u("", !0)
179
+ ]))), 128)) : ne(n.$slots, "default", { key: 1 }, void 0, !0)])) : u("", !0)
180
+ ], 2));
181
+ }
182
+ }), [["__scopeId", "data-v-6e4b14fc"]]);
183
+ //#endregion
184
+ export { L as t };
@@ -0,0 +1 @@
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-Bwec1Nfv.cjs`),r=require(`./composables/usePhoneLayout.composable.cjs`),i=require(`./Button-tmwLbryG.cjs`),a=require(`./Avatar-BtPUauIn.cjs`),o=require(`./Select-Z6XKZwgn.cjs`);let s=require(`vue`),c=require(`@nubisco/ui/icons/caret-right`),l=require(`@nubisco/ui/icons/caret-up-down`);l=e.n(l);var u={key:0,class:`nb-breadcrumbs__brand`},d={key:0,class:`nb-breadcrumbs__title`},f={key:1,class:`nb-breadcrumbs__subtitle`},p={key:2,class:`nb-breadcrumbs__crumbs`},m={key:1,class:`nb-breadcrumbs__current`,"aria-current":`page`},h={key:0,class:`nb-breadcrumbs__code`},g={key:0,class:`nb-breadcrumbs__code`},_={key:3,class:`nb-breadcrumbs__parent`},v={key:0,class:`nb-breadcrumbs__code`},y={class:`nb-breadcrumbs__option`},b={class:`nb-breadcrumbs__option-label`},x=[`aria-label`],S=(0,s.defineComponent)({__name:`Breadcrumbs`,props:{title:{default:void 0},subtitle:{default:void 0},collapse:{default:`none`},items:{default:void 0}},emits:[`select`,`switch`],setup(e,{emit:t}){let S=e,C=t,w=(0,s.getCurrentInstance)(),T=(0,s.computed)(()=>!!w?.vnode.props?.onSelect),E=(0,s.computed)(()=>{let e=S.items??[],t=e.findIndex(e=>e.current);return t===-1?e.length-1:t});function D(e){return e===E.value}function O(e){return e.to!=null||!!e.href||!!e.onClick||T.value}function k(e,t,n){e.onClick?.(n),C(`select`,e,t,n)}let A=[],j=(e,t)=>e.value??t;function M(e){return(e.options??[]).map((e,t)=>({label:e.label,value:j(e,t),icon:e.picture===void 0?e.icon:void 0}))}function N(e){return(e.options??[]).some(e=>e.picture!==void 0)}function P(e,t){let n=e.options??[],r=n.findIndex((e,n)=>j(e,n)===t);return r===-1?void 0:n[r].picture}function F(e){if(e.value!=null)return e.value;let t=e.options??[],n=t.findIndex(t=>t.label===e.label);return n===-1?null:j(t[n],n)}function I(e,t,n){let r=e.options??[],i=r.findIndex((e,t)=>j(e,t)===n);if(i===-1||n===F(e))return;let a=r[i];C(`switch`,e,a,t),L(a)}function L(e){let t=w?.appContext.config.globalProperties.$router;e.to==null?e.href&&window.location.assign(e.href):t?t.push(e.to):typeof e.to==`string`&&window.location.assign(e.to)}let R=(0,s.useSlots)();function z(e){return e.some(e=>e.type===s.Comment?!1:e.type===s.Text?String(e.children??``).trim()!==``:e.type===s.Fragment?z(e.children??[]):!0)}let B=(0,s.computed)(()=>z(R.default?.()??[])),V=(0,s.computed)(()=>!!S.items?.length||B.value),{phone:H}=r.usePhoneLayout(),U=(0,s.computed)(()=>S.collapse===`phone`&&H.value&&V.value);return(t,r)=>((0,s.openBlock)(),(0,s.createElementBlock)(`nav`,{class:(0,s.normalizeClass)([`nb-breadcrumbs`,{"nb-breadcrumbs--collapsed":U.value}]),"aria-label":`breadcrumb`},[e.title||e.subtitle?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,u,[e.title?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,d,(0,s.toDisplayString)(e.title),1)):(0,s.createCommentVNode)(``,!0),e.subtitle?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,f,(0,s.toDisplayString)(e.subtitle),1)):(0,s.createCommentVNode)(``,!0)])):(0,s.createCommentVNode)(``,!0),(e.title||e.subtitle)&&V.value?((0,s.openBlock)(),(0,s.createBlock)(n.t,{key:1,name:(0,s.unref)(c.regular),size:`sm`,class:`nb-breadcrumbs__sep`},null,8,[`name`])):(0,s.createCommentVNode)(``,!0),V.value?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,p,[e.items?.length?((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,{key:0},(0,s.renderList)(e.items,(e,t)=>((0,s.openBlock)(),(0,s.createElementBlock)(`span`,{key:t,ref_for:!0,ref:e=>A[t]=e,class:`nb-breadcrumbs__item`},[e.picture===void 0?(0,s.createCommentVNode)(``,!0):((0,s.openBlock)(),(0,s.createBlock)(a.t,{key:0,class:`nb-breadcrumbs__picture`,name:e.label,picture:e.picture,size:16,decorative:``},null,8,[`name`,`picture`])),D(t)?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,m,[e.code?((0,s.openBlock)(),(0,s.createElementBlock)(`code`,h,(0,s.toDisplayString)(e.label),1)):((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:1},[(0,s.createTextVNode)((0,s.toDisplayString)(e.label),1)],64))])):O(e)?((0,s.openBlock)(),(0,s.createBlock)(i.t,{key:2,class:`nb-breadcrumbs__link`,variant:`link`,to:e.to,href:e.href,target:e.target,onClick:n=>k(e,t,n)},{default:(0,s.withCtx)(()=>[e.code?((0,s.openBlock)(),(0,s.createElementBlock)(`code`,g,(0,s.toDisplayString)(e.label),1)):((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:1},[(0,s.createTextVNode)((0,s.toDisplayString)(e.label),1)],64))]),_:2},1032,[`to`,`href`,`target`,`onClick`])):((0,s.openBlock)(),(0,s.createElementBlock)(`span`,_,[e.code?((0,s.openBlock)(),(0,s.createElementBlock)(`code`,v,(0,s.toDisplayString)(e.label),1)):((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:1},[(0,s.createTextVNode)((0,s.toDisplayString)(e.label),1)],64))])),e.options?.length?((0,s.openBlock)(),(0,s.createBlock)(o.t,{key:4,class:`nb-breadcrumbs__switcher`,searchable:``,"selected-mark":`check`,anchor:()=>A[t],"model-value":F(e),options:M(e),"search-placeholder":e.searchPlaceholder??`Find`,"no-results-label":e.noResultsLabel??`No results`,onChange:n=>I(e,t,n)},(0,s.createSlots)({trigger:(0,s.withCtx)(({attrs:t})=>[(0,s.createElementVNode)(`button`,(0,s.mergeProps)({type:`button`,class:`nb-breadcrumbs__switch`},{ref_for:!0},t,{"aria-label":e.switchLabel??`Switch ${e.label}`}),[(0,s.createVNode)(n.t,{name:l,size:14,"aria-hidden":`true`})],16,x)]),_:2},[N(e)?{name:`option`,fn:(0,s.withCtx)(({option:t})=>[(0,s.createElementVNode)(`span`,y,[P(e,t.value)===void 0?(0,s.createCommentVNode)(``,!0):((0,s.openBlock)(),(0,s.createBlock)(a.t,{key:0,class:`nb-breadcrumbs__option-picture`,name:t.label,picture:P(e,t.value),size:16,decorative:``},null,8,[`name`,`picture`])),(0,s.createElementVNode)(`span`,b,(0,s.toDisplayString)(t.label),1)])]),key:`0`}:void 0]),1032,[`anchor`,`model-value`,`options`,`search-placeholder`,`no-results-label`,`onChange`])):(0,s.createCommentVNode)(``,!0)]))),128)):(0,s.renderSlot)(t.$slots,`default`,{key:1},void 0,!0)])):(0,s.createCommentVNode)(``,!0)],2))}}),C=t.t(S,[[`__scopeId`,`data-v-6e4b14fc`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return C}});
@@ -1,6 +1,6 @@
1
- import { t as e } from "./AiLabel-CPINOrQd.js";
2
- import { t } from "./Panel-B3kJkm_w.js";
3
- import { t as n } from "./Switch-B40hMlXu.js";
1
+ import { t as e } from "./AiLabel-DSiCpLvM.js";
2
+ import { t } from "./Panel-CWBZ-kgD.js";
3
+ import { t as n } from "./Switch-Bhn_b5ue.js";
4
4
  import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderSlot as p, toDisplayString as m, unref as h, useId as g, useSlots as _, withCtx as v } from "vue";
5
5
  //#region src/components/Briefing.vue?vue&type=script&setup=true&lang.ts
6
6
  var y = { class: "nb-briefing__header" }, b = { class: "nb-briefing__heading" }, x = { class: "nb-briefing__title" }, S = {
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./AiLabel-BK3oecvT.cjs`),t=require(`./Panel-DKp-aPUn.cjs`),n=require(`./Switch-D7eHiXw1.cjs`);let r=require(`vue`);var i={class:`nb-briefing__header`},a={class:`nb-briefing__heading`},o={class:`nb-briefing__title`},s={key:0,class:`nb-briefing__status`},c={class:`nb-briefing__body`},l={class:`nb-briefing__main`},u={key:0,class:`nb-briefing__description`},d={key:1,class:`nb-briefing__ai`},f={class:`nb-briefing__ai-text`},p={key:2,class:`nb-briefing__destinations`},m={key:3,class:`nb-briefing__actions`},h={key:0,class:`nb-briefing__aside`},g=(0,r.defineComponent)({__name:`Briefing`,props:{title:{},enabled:{type:Boolean,default:void 0},aiWriting:{type:Boolean,default:void 0},status:{default:``},busy:{type:Boolean,default:!1}},emits:[`update:enabled`,`update:aiWriting`],setup(g,{emit:_}){let v=_,y=(0,r.useSlots)(),b=(0,r.useId)(),x=(0,r.computed)(()=>!!(y.preview||y.runs));return(_,y)=>((0,r.openBlock)(),(0,r.createBlock)(t.t,{class:(0,r.normalizeClass)([`nb-briefing`,{"nb-briefing--with-preview":x.value}])},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)(`header`,i,[(0,r.createElementVNode)(`div`,a,[(0,r.createElementVNode)(`h3`,o,(0,r.toDisplayString)(g.title),1),g.status?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,s,(0,r.toDisplayString)(g.status),1)):(0,r.createCommentVNode)(``,!0)]),g.enabled===void 0?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:0,"model-value":g.enabled,name:`${(0,r.unref)(b)}-enabled`,label:`Run ${g.title}`,"hide-label":``,disabled:g.busy,"onUpdate:modelValue":y[0]||=e=>v(`update:enabled`,!!e)},null,8,[`model-value`,`name`,`label`,`disabled`]))]),(0,r.createElementVNode)(`div`,c,[(0,r.createElementVNode)(`div`,l,[_.$slots.description?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,u,[(0,r.renderSlot)(_.$slots,`description`)])):(0,r.createCommentVNode)(``,!0),g.aiWriting===void 0?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`div`,d,[(0,r.createVNode)(n.t,{"model-value":g.aiWriting,name:`${(0,r.unref)(b)}-ai`,label:`Written by AI`,"hide-label":``,disabled:g.busy,"onUpdate:modelValue":y[1]||=e=>v(`update:aiWriting`,!!e)},null,8,[`model-value`,`name`,`disabled`]),(0,r.createElementVNode)(`span`,f,[y[2]||=(0,r.createElementVNode)(`strong`,null,`Written by AI`,-1),y[3]||=(0,r.createTextVNode)(),(0,r.createVNode)(e.t,{static:``,size:`sm`}),y[4]||=(0,r.createElementVNode)(`span`,{class:`nb-briefing__ai-hint`},` Off, it is the plain version built from the facts. `,-1)])])),(0,r.renderSlot)(_.$slots,`default`),_.$slots.destinations?((0,r.openBlock)(),(0,r.createElementBlock)(`section`,p,[y[5]||=(0,r.createElementVNode)(`h4`,{class:`nb-briefing__subtitle`},`Destinations`,-1),(0,r.renderSlot)(_.$slots,`destinations`)])):(0,r.createCommentVNode)(``,!0),_.$slots.actions?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,m,[(0,r.renderSlot)(_.$slots,`actions`)])):(0,r.createCommentVNode)(``,!0)]),x.value?((0,r.openBlock)(),(0,r.createElementBlock)(`aside`,h,[(0,r.renderSlot)(_.$slots,`preview`),(0,r.renderSlot)(_.$slots,`runs`)])):(0,r.createCommentVNode)(``,!0)])]),_:3},8,[`class`]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./AiLabel-G7b92e7Q.cjs`),t=require(`./Panel-ap8JYHvL.cjs`),n=require(`./Switch-DPxYeU1r.cjs`);let r=require(`vue`);var i={class:`nb-briefing__header`},a={class:`nb-briefing__heading`},o={class:`nb-briefing__title`},s={key:0,class:`nb-briefing__status`},c={class:`nb-briefing__body`},l={class:`nb-briefing__main`},u={key:0,class:`nb-briefing__description`},d={key:1,class:`nb-briefing__ai`},f={class:`nb-briefing__ai-text`},p={key:2,class:`nb-briefing__destinations`},m={key:3,class:`nb-briefing__actions`},h={key:0,class:`nb-briefing__aside`},g=(0,r.defineComponent)({__name:`Briefing`,props:{title:{},enabled:{type:Boolean,default:void 0},aiWriting:{type:Boolean,default:void 0},status:{default:``},busy:{type:Boolean,default:!1}},emits:[`update:enabled`,`update:aiWriting`],setup(g,{emit:_}){let v=_,y=(0,r.useSlots)(),b=(0,r.useId)(),x=(0,r.computed)(()=>!!(y.preview||y.runs));return(_,y)=>((0,r.openBlock)(),(0,r.createBlock)(t.t,{class:(0,r.normalizeClass)([`nb-briefing`,{"nb-briefing--with-preview":x.value}])},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)(`header`,i,[(0,r.createElementVNode)(`div`,a,[(0,r.createElementVNode)(`h3`,o,(0,r.toDisplayString)(g.title),1),g.status?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,s,(0,r.toDisplayString)(g.status),1)):(0,r.createCommentVNode)(``,!0)]),g.enabled===void 0?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:0,"model-value":g.enabled,name:`${(0,r.unref)(b)}-enabled`,label:`Run ${g.title}`,"hide-label":``,disabled:g.busy,"onUpdate:modelValue":y[0]||=e=>v(`update:enabled`,!!e)},null,8,[`model-value`,`name`,`label`,`disabled`]))]),(0,r.createElementVNode)(`div`,c,[(0,r.createElementVNode)(`div`,l,[_.$slots.description?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,u,[(0,r.renderSlot)(_.$slots,`description`)])):(0,r.createCommentVNode)(``,!0),g.aiWriting===void 0?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`div`,d,[(0,r.createVNode)(n.t,{"model-value":g.aiWriting,name:`${(0,r.unref)(b)}-ai`,label:`Written by AI`,"hide-label":``,disabled:g.busy,"onUpdate:modelValue":y[1]||=e=>v(`update:aiWriting`,!!e)},null,8,[`model-value`,`name`,`disabled`]),(0,r.createElementVNode)(`span`,f,[y[2]||=(0,r.createElementVNode)(`strong`,null,`Written by AI`,-1),y[3]||=(0,r.createTextVNode)(),(0,r.createVNode)(e.t,{static:``,size:`sm`}),y[4]||=(0,r.createElementVNode)(`span`,{class:`nb-briefing__ai-hint`},` Off, it is the plain version built from the facts. `,-1)])])),(0,r.renderSlot)(_.$slots,`default`),_.$slots.destinations?((0,r.openBlock)(),(0,r.createElementBlock)(`section`,p,[y[5]||=(0,r.createElementVNode)(`h4`,{class:`nb-briefing__subtitle`},`Destinations`,-1),(0,r.renderSlot)(_.$slots,`destinations`)])):(0,r.createCommentVNode)(``,!0),_.$slots.actions?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,m,[(0,r.renderSlot)(_.$slots,`actions`)])):(0,r.createCommentVNode)(``,!0)]),x.value?((0,r.openBlock)(),(0,r.createElementBlock)(`aside`,h,[(0,r.renderSlot)(_.$slots,`preview`),(0,r.renderSlot)(_.$slots,`runs`)])):(0,r.createCommentVNode)(``,!0)])]),_:3},8,[`class`]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
@@ -1,5 +1,5 @@
1
- import { t as e } from "./Icon-rREAqsu0.js";
2
- import { t } from "./Button-C-OsrbBY.js";
1
+ import { t as e } from "./Icon-DwhI2DFK.js";
2
+ import { t } from "./Button-Cepcs335.js";
3
3
  import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, openBlock as l, renderSlot as u, toDisplayString as d, withCtx as f } from "vue";
4
4
  import * as p from "@nubisco/ui/icons/envelope";
5
5
  import * as m from "@nubisco/ui/icons/slack-logo";
@@ -1 +1 @@
1
- const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Icon-C8R_r_In.cjs`),n=require(`./Button-Cjtw1CkB.cjs`);let r=require(`vue`),i=require(`@nubisco/ui/icons/envelope`);i=e.n(i);let a=require(`@nubisco/ui/icons/slack-logo`);a=e.n(a);let o=require(`@nubisco/ui/icons/webhooks-logo`);o=e.n(o);var s={class:`nb-briefing-destination`},c={class:`nb-briefing-destination__head`},l={class:`nb-briefing-destination__label`},u={key:0,class:`nb-briefing-destination__summary`},d={key:1,class:`nb-briefing-destination__summary`},f={key:0,class:`nb-briefing-destination__body`},p=(0,r.defineComponent)({__name:`BriefingDestination`,props:{kind:{},label:{default:``},summary:{default:``},configured:{type:Boolean,default:!1},testing:{type:Boolean,default:!1},testLabel:{default:`Send a test`}},emits:[`test`],setup(e,{emit:p}){let m=p,h={slack:a,email:i,webhook:o},g={slack:`Slack`,email:`Email`,webhook:`Webhook`};return(i,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,s,[(0,r.createElementVNode)(`div`,c,[(0,r.createVNode)(t.t,{class:`nb-briefing-destination__icon`,icon:h[e.kind],size:20,"aria-hidden":`true`},null,8,[`icon`]),(0,r.createElementVNode)(`span`,l,[(0,r.createElementVNode)(`strong`,null,(0,r.toDisplayString)(e.label||g[e.kind]),1),e.summary?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,u,(0,r.toDisplayString)(e.summary),1)):((0,r.openBlock)(),(0,r.createElementBlock)(`span`,d,` Not set up `))]),e.testLabel?((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:0,variant:`ghost`,size:`sm`,loading:e.testing,disabled:!e.configured,onClick:a[0]||=e=>m(`test`)},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.testLabel),1)]),_:1},8,[`loading`,`disabled`])):(0,r.createCommentVNode)(``,!0)]),i.$slots.default?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,f,[(0,r.renderSlot)(i.$slots,`default`)])):(0,r.createCommentVNode)(``,!0)]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Icon-Bwec1Nfv.cjs`),n=require(`./Button-tmwLbryG.cjs`);let r=require(`vue`),i=require(`@nubisco/ui/icons/envelope`);i=e.n(i);let a=require(`@nubisco/ui/icons/slack-logo`);a=e.n(a);let o=require(`@nubisco/ui/icons/webhooks-logo`);o=e.n(o);var s={class:`nb-briefing-destination`},c={class:`nb-briefing-destination__head`},l={class:`nb-briefing-destination__label`},u={key:0,class:`nb-briefing-destination__summary`},d={key:1,class:`nb-briefing-destination__summary`},f={key:0,class:`nb-briefing-destination__body`},p=(0,r.defineComponent)({__name:`BriefingDestination`,props:{kind:{},label:{default:``},summary:{default:``},configured:{type:Boolean,default:!1},testing:{type:Boolean,default:!1},testLabel:{default:`Send a test`}},emits:[`test`],setup(e,{emit:p}){let m=p,h={slack:a,email:i,webhook:o},g={slack:`Slack`,email:`Email`,webhook:`Webhook`};return(i,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,s,[(0,r.createElementVNode)(`div`,c,[(0,r.createVNode)(t.t,{class:`nb-briefing-destination__icon`,icon:h[e.kind],size:20,"aria-hidden":`true`},null,8,[`icon`]),(0,r.createElementVNode)(`span`,l,[(0,r.createElementVNode)(`strong`,null,(0,r.toDisplayString)(e.label||g[e.kind]),1),e.summary?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,u,(0,r.toDisplayString)(e.summary),1)):((0,r.openBlock)(),(0,r.createElementBlock)(`span`,d,` Not set up `))]),e.testLabel?((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:0,variant:`ghost`,size:`sm`,loading:e.testing,disabled:!e.configured,onClick:a[0]||=e=>m(`test`)},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.testLabel),1)]),_:1},8,[`loading`,`disabled`])):(0,r.createCommentVNode)(``,!0)]),i.$slots.default?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,f,[(0,r.renderSlot)(i.$slots,`default`)])):(0,r.createCommentVNode)(``,!0)]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});