themelia-react-ui 2.0.0 → 2.0.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 (625) hide show
  1. package/CHANGELOG.md +351 -0
  2. package/README.md +26 -13
  3. package/dist/{accordion-CQXVcd7Q.js → accordion-B6a3vVgA.js} +84 -82
  4. package/dist/accordion-B6a3vVgA.js.map +1 -0
  5. package/dist/action-menu-TzCoSlwL.js +280 -0
  6. package/dist/action-menu-TzCoSlwL.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-CCIXb2A1.js → affordance-geometry.generated-B5iu-Mkr.js} +3 -2
  8. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
  9. package/dist/{ai-artifact-2PQ2fItc.js → ai-artifact-BMJdv-6q.js} +379 -376
  10. package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
  11. package/dist/{app-shell-BE_j8-AT.js → app-shell-ZK5RWdo6.js} +4 -4
  12. package/dist/{app-shell-BE_j8-AT.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
  13. package/dist/attachment-BtfhGm8i.js +245 -0
  14. package/dist/attachment-BtfhGm8i.js.map +1 -0
  15. package/dist/{auth-M3vGMgDR.js → auth-CYxKfo69.js} +237 -235
  16. package/dist/auth-CYxKfo69.js.map +1 -0
  17. package/dist/{avatar-djdaaQ_s.js → avatar-BBnEJIx8.js} +66 -65
  18. package/dist/avatar-BBnEJIx8.js.map +1 -0
  19. package/dist/badge-MrKVNzW9.js +93 -0
  20. package/dist/badge-MrKVNzW9.js.map +1 -0
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/batch-action-bar.js +3 -0
  27. package/dist/base/buttons.js +2 -3
  28. package/dist/base/cards.js +2 -2
  29. package/dist/base/carousel.js +13 -13
  30. package/dist/base/carousel.js.map +1 -1
  31. package/dist/base/cascader.js +103 -115
  32. package/dist/base/cascader.js.map +1 -1
  33. package/dist/base/chart.js +1 -1
  34. package/dist/base/choice-inputs.js +3 -3
  35. package/dist/base/code-block.js +1 -1
  36. package/dist/base/combobox.js +1 -1
  37. package/dist/base/command.js +1 -1
  38. package/dist/base/copyable.js +1 -1
  39. package/dist/base/date-pickers.js +2 -2
  40. package/dist/base/display.js +7 -7
  41. package/dist/base/feedback.js +3 -3
  42. package/dist/base/forms-numeric.js +1 -1
  43. package/dist/base/forms.js +2 -2
  44. package/dist/base/inline-edit.js +17 -17
  45. package/dist/base/inline-edit.js.map +1 -1
  46. package/dist/base/item.js +1 -1
  47. package/dist/base/media-gallery.js +1 -1
  48. package/dist/base/metadata-list.js +3 -0
  49. package/dist/base/navigation.js +7 -7
  50. package/dist/base/popover-menu.js +1 -1
  51. package/dist/base/popover.js +1 -1
  52. package/dist/base/qr-code.js +1 -1
  53. package/dist/base/repeaters.js +171 -170
  54. package/dist/base/repeaters.js.map +1 -1
  55. package/dist/base/sheet.js +1 -1
  56. package/dist/base/sidebar.js +1 -1
  57. package/dist/base/signature-pad.js +147 -137
  58. package/dist/base/signature-pad.js.map +1 -1
  59. package/dist/base/skeleton.js +1 -1
  60. package/dist/base/spinner.js +1 -1
  61. package/dist/base/structure.js +1 -1
  62. package/dist/base/table.js +1 -1
  63. package/dist/base/text-inputs.js +2 -2
  64. package/dist/base/toaster.js +2 -2
  65. package/dist/base/tree.js +1 -1
  66. package/dist/base/upload-queue.js +1 -1
  67. package/dist/base/upload.js +3 -3
  68. package/dist/base/value-inputs.js +2 -2
  69. package/dist/batch-action-bar-BZGDG-Si.js +104 -0
  70. package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
  71. package/dist/blocks/admin.js +173 -171
  72. package/dist/blocks/admin.js.map +1 -1
  73. package/dist/blocks/ai.js +266 -263
  74. package/dist/blocks/ai.js.map +1 -1
  75. package/dist/blocks/analytics/usage-card.js +1 -1
  76. package/dist/blocks/analytics.js +440 -438
  77. package/dist/blocks/analytics.js.map +1 -1
  78. package/dist/blocks/collaboration.js +1 -1
  79. package/dist/blocks/commerce/receipt.js +1 -1
  80. package/dist/blocks/commerce.js +1945 -1266
  81. package/dist/blocks/commerce.js.map +1 -1
  82. package/dist/blocks/data-display.js +3 -2
  83. package/dist/blocks/onboarding.js +50 -49
  84. package/dist/blocks/onboarding.js.map +1 -1
  85. package/dist/blocks/planning.js +25 -25
  86. package/dist/blocks/planning.js.map +1 -1
  87. package/dist/blocks/timelines.js +1 -1
  88. package/dist/breadcrumbs-D5t7I023.js +129 -0
  89. package/dist/breadcrumbs-D5t7I023.js.map +1 -0
  90. package/dist/{button-R9CCoH7A.js → button-QYwiyhD2.js} +15 -14
  91. package/dist/button-QYwiyhD2.js.map +1 -0
  92. package/dist/{button-BS3KDg00.js → buttons-SbIcm1HJ.js} +200 -213
  93. package/dist/buttons-SbIcm1HJ.js.map +1 -0
  94. package/dist/{cards-QoJ4syG9.js → cards-CiiHpKYd.js} +8 -8
  95. package/dist/cards-CiiHpKYd.js.map +1 -0
  96. package/dist/{chart-DwYRKKc-.js → chart-QfrARkXl.js} +5 -5
  97. package/dist/{chart-DwYRKKc-.js.map → chart-QfrARkXl.js.map} +1 -1
  98. package/dist/checkbox-DhB6K0bK.js +36 -0
  99. package/dist/checkbox-DhB6K0bK.js.map +1 -0
  100. package/dist/choice-inputs-t6w3ATNz.js +766 -0
  101. package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
  102. package/dist/code-block-Dgbu-CU3.js +185 -0
  103. package/dist/code-block-Dgbu-CU3.js.map +1 -0
  104. package/dist/{collapsible-oMUGM4tr.js → collapsible-D8AEGU1-.js} +4 -4
  105. package/dist/{collapsible-oMUGM4tr.js.map → collapsible-D8AEGU1-.js.map} +1 -1
  106. package/dist/{collection-content-Ys-OZOkY.js → collection-content-uK16Grv0.js} +3 -3
  107. package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-uK16Grv0.js.map} +1 -1
  108. package/dist/{combobox-6dvVny2q.js → combobox-2Ic8N9bL.js} +74 -68
  109. package/dist/combobox-2Ic8N9bL.js.map +1 -0
  110. package/dist/{combobox-CB7039j7.js → combobox-DLl0bfiq.js} +307 -305
  111. package/dist/combobox-DLl0bfiq.js.map +1 -0
  112. package/dist/{command-kPMPjIxJ.js → command-kNR20o7x.js} +7 -7
  113. package/dist/{command-kPMPjIxJ.js.map → command-kNR20o7x.js.map} +1 -1
  114. package/dist/{comments-You0Bzbr.js → comments-BpDuCUUu.js} +341 -339
  115. package/dist/comments-BpDuCUUu.js.map +1 -0
  116. package/dist/components/base/action-menu/action-menu.d.ts +21 -4
  117. package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
  118. package/dist/components/base/action-menu/index.d.ts +1 -0
  119. package/dist/components/base/badge/badge.recipes.d.ts +4 -4
  120. package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
  121. package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
  122. package/dist/components/base/batch-action-bar/index.d.ts +8 -0
  123. package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
  124. package/dist/components/base/buttons/button.recipes.d.ts +2 -2
  125. package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
  126. package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
  127. package/dist/components/base/display/alert-dialog.d.ts +6 -5
  128. package/dist/components/base/display/dialog.d.ts +4 -8
  129. package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
  130. package/dist/components/base/forms/form-sizing.d.ts +15 -12
  131. package/dist/components/base/metadata-list/index.d.ts +12 -0
  132. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
  133. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
  134. package/dist/components/base/navigation/index.d.ts +1 -1
  135. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  136. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
  137. package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
  138. package/dist/components/base/sheet/sheet.d.ts +4 -8
  139. package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
  140. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
  141. package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
  142. package/dist/components/base/upload/upload.recipes.d.ts +25 -3
  143. package/dist/components/base/value-inputs/index.d.ts +5 -5
  144. package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
  145. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  146. package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
  147. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
  148. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
  149. package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
  150. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
  151. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
  152. package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
  153. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
  154. package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
  155. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
  156. package/dist/components/blocks/commerce/index.d.ts +13 -5
  157. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  158. package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
  159. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
  160. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
  161. package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
  162. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
  163. package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
  164. package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
  165. package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
  166. package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
  167. package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
  168. package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
  169. package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
  170. package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
  171. package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
  172. package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
  173. package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
  174. package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
  175. package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
  176. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
  177. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
  178. package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
  179. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
  180. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
  181. package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
  182. package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
  183. package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
  184. package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
  185. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  186. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
  187. package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
  188. package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
  189. package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
  190. package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
  191. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  192. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
  193. package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
  194. package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
  195. package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
  196. package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
  197. package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
  198. package/dist/components/features/kanban/kanban.d.ts +1 -1
  199. package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
  200. package/dist/components/features/kanban/kanban.types.d.ts +2 -2
  201. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  202. package/dist/components/features/media-library/index.d.ts +1 -1
  203. package/dist/components/features/media-library/media-library.d.ts +1 -1
  204. package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
  205. package/dist/components/features/media-library/media-library.types.d.ts +74 -1
  206. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  207. package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
  208. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  209. package/dist/components/features/overlays/dialog.d.ts +1 -1
  210. package/dist/components/features/overlays/index.d.ts +1 -1
  211. package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
  212. package/dist/components/features/overlays/overlays.types.d.ts +20 -0
  213. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  214. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  215. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  216. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  217. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  218. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  219. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  220. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  221. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  222. package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
  223. package/dist/components/features/products/products.types.d.ts +9 -2
  224. package/dist/components/features/resource/index.d.ts +1 -1
  225. package/dist/components/features/resource/resource.d.ts +1 -1
  226. package/dist/components/features/resource/resource.types.d.ts +34 -6
  227. package/dist/components/features/rich-text-editor/index.d.ts +2 -1
  228. package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
  229. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
  230. package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
  231. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
  232. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
  233. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
  234. package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
  235. package/dist/components/features/sync/index.d.ts +26 -3
  236. package/dist/components/features/table/data-table.d.ts +1 -1
  237. package/dist/components/features/table/table.types.d.ts +32 -7
  238. package/dist/components/layout/page/index.d.ts +1 -1
  239. package/dist/components/layout/page/page.types.d.ts +33 -36
  240. package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
  241. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  242. package/dist/components/layout/settings/settings.d.ts +16 -2
  243. package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
  244. package/dist/components/typography/rich-text/index.d.ts +1 -1
  245. package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
  246. package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
  247. package/dist/components/typography/text-link.d.ts +4 -3
  248. package/dist/components/ui/checkbox.d.ts +4 -3
  249. package/dist/components/ui/overlay.recipes.d.ts +0 -9
  250. package/dist/components/ui/switch.d.ts +2 -2
  251. package/dist/{containers-D_L4mTVb.js → containers-DmWiJa2I.js} +36 -35
  252. package/dist/containers-DmWiJa2I.js.map +1 -0
  253. package/dist/{copyable-DDjTeW_j.js → copyable-B3Gwgdqc.js} +6 -6
  254. package/dist/{copyable-DDjTeW_j.js.map → copyable-B3Gwgdqc.js.map} +1 -1
  255. package/dist/data-display-DafIvCl5.js +960 -0
  256. package/dist/data-display-DafIvCl5.js.map +1 -0
  257. package/dist/{date-uf3z37Nm.js → date-BgK3bTdo.js} +5 -5
  258. package/dist/{date-uf3z37Nm.js.map → date-BgK3bTdo.js.map} +1 -1
  259. package/dist/date-picker-CF-DtUpF.js +1529 -0
  260. package/dist/date-picker-CF-DtUpF.js.map +1 -0
  261. package/dist/{date-pickers-CnFCb0n2.js → date-pickers-BmzxJl5l.js} +19 -19
  262. package/dist/{date-pickers-CnFCb0n2.js.map → date-pickers-BmzxJl5l.js.map} +1 -1
  263. package/dist/{display-DrdvPwF0.js → display-DsQTVzMz.js} +88 -87
  264. package/dist/display-DsQTVzMz.js.map +1 -0
  265. package/dist/{dropdown-menu-CURh59jb.js → dropdown-menu-E2qmdC7o.js} +7 -7
  266. package/dist/{dropdown-menu-CURh59jb.js.map → dropdown-menu-E2qmdC7o.js.map} +1 -1
  267. package/dist/features/activities.js +414 -501
  268. package/dist/features/activities.js.map +1 -1
  269. package/dist/features/ai-chat.js +170 -169
  270. package/dist/features/ai-chat.js.map +1 -1
  271. package/dist/features/async-preview.js +8 -8
  272. package/dist/features/async-preview.js.map +1 -1
  273. package/dist/features/combobox.js +1 -1
  274. package/dist/features/comments.js +1 -1
  275. package/dist/features/data-view.js +139 -138
  276. package/dist/features/data-view.js.map +1 -1
  277. package/dist/features/email-composer/engine.js +1 -1
  278. package/dist/features/email-composer.js +73 -71
  279. package/dist/features/email-composer.js.map +1 -1
  280. package/dist/features/event-calendar.js +278 -275
  281. package/dist/features/event-calendar.js.map +1 -1
  282. package/dist/features/filters.js +1 -1
  283. package/dist/features/global-search.js +307 -310
  284. package/dist/features/global-search.js.map +1 -1
  285. package/dist/features/kanban.js +95 -97
  286. package/dist/features/kanban.js.map +1 -1
  287. package/dist/features/map.js +56 -57
  288. package/dist/features/map.js.map +1 -1
  289. package/dist/features/media-library.js +918 -825
  290. package/dist/features/media-library.js.map +1 -1
  291. package/dist/features/mentions.js +1 -1
  292. package/dist/features/overlays.js +1 -1
  293. package/dist/features/products.js +1115 -1122
  294. package/dist/features/products.js.map +1 -1
  295. package/dist/features/questionnaire.js +202 -194
  296. package/dist/features/questionnaire.js.map +1 -1
  297. package/dist/features/resource-assignment.js +25 -25
  298. package/dist/features/resource-assignment.js.map +1 -1
  299. package/dist/features/resource.js +77 -69
  300. package/dist/features/resource.js.map +1 -1
  301. package/dist/features/rich-text-editor.js +30 -11
  302. package/dist/features/rich-text-editor.js.map +1 -1
  303. package/dist/features/schema-form.js +33 -33
  304. package/dist/features/schema-form.js.map +1 -1
  305. package/dist/features/suggestions.js +3 -3
  306. package/dist/features/sync.js +3 -3
  307. package/dist/features/table.js +1 -1
  308. package/dist/features/theme-tweaker.js +397 -396
  309. package/dist/features/theme-tweaker.js.map +1 -1
  310. package/dist/{feedback-C7nR0UtT.js → feedback-qNuMBtRH.js} +84 -83
  311. package/dist/feedback-qNuMBtRH.js.map +1 -0
  312. package/dist/{field-affordance-recipes-CkOCdE2y.js → field-affordance-recipes-qQeIf4lG.js} +8 -6
  313. package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
  314. package/dist/field-state-recipes-BVA2CWHo.js +12 -0
  315. package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
  316. package/dist/{filters-Da-gNPsE.js → filters-BkHH53uv.js} +565 -563
  317. package/dist/filters-BkHH53uv.js.map +1 -0
  318. package/dist/focus-recipes-B653VaLq.js +12 -0
  319. package/dist/focus-recipes-B653VaLq.js.map +1 -0
  320. package/dist/{form-field-VZRULhUK.js → form-field-DUt4UxSV.js} +4 -4
  321. package/dist/{form-field-VZRULhUK.js.map → form-field-DUt4UxSV.js.map} +1 -1
  322. package/dist/{form-sizing-uWP4lzVh.js → form-sizing-By94KzXE.js} +19 -15
  323. package/dist/form-sizing-By94KzXE.js.map +1 -0
  324. package/dist/{forms-DDeEnXSY.js → forms-Bzha-Y3B.js} +22 -22
  325. package/dist/{forms-DDeEnXSY.js.map → forms-Bzha-Y3B.js.map} +1 -1
  326. package/dist/{forms-numeric-D3CO60IF.js → forms-numeric-C0bvjRPZ.js} +265 -264
  327. package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
  328. package/dist/{header-2ycNqGOR.js → header-BOefOKd1.js} +47 -51
  329. package/dist/header-BOefOKd1.js.map +1 -0
  330. package/dist/{hooks-DQ5SPwZw.js → hooks-9k_TtmKh.js} +2 -2
  331. package/dist/{hooks-DQ5SPwZw.js.map → hooks-9k_TtmKh.js.map} +1 -1
  332. package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
  333. package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
  334. package/dist/icon-badge-CAuKupo9.js +55 -0
  335. package/dist/icon-badge-CAuKupo9.js.map +1 -0
  336. package/dist/index.js +7 -7
  337. package/dist/input-DWhBBBww.js +262 -0
  338. package/dist/input-DWhBBBww.js.map +1 -0
  339. package/dist/{input-BoLm9Hks.js → input-Ddi_LSYv.js} +3 -3
  340. package/dist/{input-BoLm9Hks.js.map → input-Ddi_LSYv.js.map} +1 -1
  341. package/dist/interaction-recipes-CHr0dJUs.js +24 -0
  342. package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
  343. package/dist/{item-xzh8Df65.js → item-DEmDiTlD.js} +98 -97
  344. package/dist/item-DEmDiTlD.js.map +1 -0
  345. package/dist/layer-recipes-CCpklYME.js +13 -0
  346. package/dist/layer-recipes-CCpklYME.js.map +1 -0
  347. package/dist/layout/app-shell.js +1 -1
  348. package/dist/layout/auth.js +1 -1
  349. package/dist/layout/containers.js +1 -1
  350. package/dist/layout/header.js +1 -1
  351. package/dist/layout/hooks.js +1 -1
  352. package/dist/layout/navigation.js +1 -1
  353. package/dist/layout/page.js +1 -1
  354. package/dist/layout/settings.js +1 -1
  355. package/dist/layout/sidebar.js +2 -2
  356. package/dist/layout/workspace.js +1 -1
  357. package/dist/layout.js +10 -10
  358. package/dist/lib/affordance-geometry.generated.d.ts +1 -0
  359. package/dist/lib/field-affordance-recipes.d.ts +6 -1
  360. package/dist/lib/field-state-recipes.d.ts +9 -8
  361. package/dist/lib/focus-recipes.d.ts +24 -0
  362. package/dist/lib/interaction-recipes.d.ts +35 -0
  363. package/dist/lib/layer-recipes.d.ts +19 -0
  364. package/dist/lib/motion-recipes.d.ts +1 -0
  365. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
  366. package/dist/lib/safe-image-src.d.ts +10 -0
  367. package/dist/lib/sanitize-html.d.ts +15 -3
  368. package/dist/lib/surface-recipes.d.ts +47 -7
  369. package/dist/lib/token-merge.generated.d.ts +9 -6
  370. package/dist/lib/tone-recipes.d.ts +79 -0
  371. package/dist/lib/ui-provider/hooks.d.ts +2 -1
  372. package/dist/lib/ui-provider/index.d.ts +2 -2
  373. package/dist/lib/ui-provider/types.d.ts +9 -0
  374. package/dist/lib/utils.js +1 -1
  375. package/dist/media-gallery-DcTtAaeC.js +203 -0
  376. package/dist/media-gallery-DcTtAaeC.js.map +1 -0
  377. package/dist/mentions-D-uyCh01.js +568 -0
  378. package/dist/mentions-D-uyCh01.js.map +1 -0
  379. package/dist/{message-YfFmbXNP.js → message-CdHgIWKf.js} +5 -5
  380. package/dist/{message-YfFmbXNP.js.map → message-CdHgIWKf.js.map} +1 -1
  381. package/dist/metadata-list-X5rYAKSB.js +394 -0
  382. package/dist/metadata-list-X5rYAKSB.js.map +1 -0
  383. package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
  384. package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
  385. package/dist/navigation-D3KwXmaq.js +145 -0
  386. package/dist/navigation-D3KwXmaq.js.map +1 -0
  387. package/dist/navigation-HJf5zxlH.js +268 -0
  388. package/dist/navigation-HJf5zxlH.js.map +1 -0
  389. package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BVowojQw.js} +2 -2
  390. package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
  391. package/dist/{number-CKRBYmZK.js → number-DMhe-Vsk.js} +5 -5
  392. package/dist/{number-CKRBYmZK.js.map → number-DMhe-Vsk.js.map} +1 -1
  393. package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
  394. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
  395. package/dist/overlay.recipes-8GHqmlb4.js +6 -0
  396. package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
  397. package/dist/overlays-I0axtYA6.js +999 -0
  398. package/dist/overlays-I0axtYA6.js.map +1 -0
  399. package/dist/page-B5dTH9gE.js +224 -0
  400. package/dist/page-B5dTH9gE.js.map +1 -0
  401. package/dist/page-header-commands-DjzFEq3E.js +126 -0
  402. package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
  403. package/dist/{pagination-Cm0jqa3I.js → pagination-3bPA_a6K.js} +15 -15
  404. package/dist/{pagination-Cm0jqa3I.js.map → pagination-3bPA_a6K.js.map} +1 -1
  405. package/dist/{popover-Dcv_9jxr.js → popover-Di55PyAI.js} +8 -8
  406. package/dist/popover-Di55PyAI.js.map +1 -0
  407. package/dist/{popover-menu-DnRFKnHP.js → popover-menu-B71Tn2Qz.js} +6 -6
  408. package/dist/{popover-menu-DnRFKnHP.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
  409. package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-Bdyhj2db.js} +2 -2
  410. package/dist/{popover.recipes-wmbvL8Ah.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
  411. package/dist/{primitives-BHrwQXFC.js → primitives-B-CkiEMU.js} +5 -5
  412. package/dist/{primitives-BHrwQXFC.js.map → primitives-B-CkiEMU.js.map} +1 -1
  413. package/dist/primitives.js +4 -4
  414. package/dist/{progress-Br9WTFya.js → progress-rnS8-uAW.js} +9 -9
  415. package/dist/{progress-Br9WTFya.js.map → progress-rnS8-uAW.js.map} +1 -1
  416. package/dist/{receipt-CV89q1fs.js → receipt-D0oswZ0p.js} +6 -6
  417. package/dist/{receipt-CV89q1fs.js.map → receipt-D0oswZ0p.js.map} +1 -1
  418. package/dist/rich-text-DvGulsNJ.js +78 -0
  419. package/dist/rich-text-DvGulsNJ.js.map +1 -0
  420. package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
  421. package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
  422. package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
  423. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
  424. package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
  425. package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
  426. package/dist/safe-image-src-C6kQSMBZ.js +17 -0
  427. package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
  428. package/dist/sanitize-html-DsQmI48u.js +92 -0
  429. package/dist/sanitize-html-DsQmI48u.js.map +1 -0
  430. package/dist/scroll-area-Bt_vXY2b.js +48 -0
  431. package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
  432. package/dist/{separator-Do5GWDYi.js → separator-C8DlRGwF.js} +3 -3
  433. package/dist/{separator-Do5GWDYi.js.map → separator-C8DlRGwF.js.map} +1 -1
  434. package/dist/{separator-BMEvwnSX.js → separator-CYHnjsAb.js} +2 -2
  435. package/dist/{separator-BMEvwnSX.js.map → separator-CYHnjsAb.js.map} +1 -1
  436. package/dist/services/actions/action-adapters.d.ts +18 -0
  437. package/dist/services/actions/index.d.ts +1 -1
  438. package/dist/services/actions.js +16 -4
  439. package/dist/services/actions.js.map +1 -1
  440. package/dist/settings-CQW3b-Cu.js +170 -0
  441. package/dist/settings-CQW3b-Cu.js.map +1 -0
  442. package/dist/sheet-4SEvVYzA.js +210 -0
  443. package/dist/sheet-4SEvVYzA.js.map +1 -0
  444. package/dist/{sidebar-Crc9M9JV.js → sidebar-C7WWR29L.js} +180 -179
  445. package/dist/sidebar-C7WWR29L.js.map +1 -0
  446. package/dist/{sidebar-Cb8WzOvE.js → sidebar-d7Dg80ln.js} +16 -16
  447. package/dist/sidebar-d7Dg80ln.js.map +1 -0
  448. package/dist/{skeleton-DVMXr15h.js → skeleton-Cz890JZF.js} +9 -9
  449. package/dist/{skeleton-DVMXr15h.js.map → skeleton-Cz890JZF.js.map} +1 -1
  450. package/dist/smart-card-lFKxn5Hu.js +595 -0
  451. package/dist/smart-card-lFKxn5Hu.js.map +1 -0
  452. package/dist/{spinner-CmTAbEp0.js → spinner-fa3h1Aif.js} +7 -7
  453. package/dist/{spinner-CmTAbEp0.js.map → spinner-fa3h1Aif.js.map} +1 -1
  454. package/dist/{structure-hzCW-XsV.js → structure-DC2dygdA.js} +2 -2
  455. package/dist/{structure-hzCW-XsV.js.map → structure-DC2dygdA.js.map} +1 -1
  456. package/dist/style.css +1 -1
  457. package/dist/surface-recipes-BKRVW8Os.js +43 -0
  458. package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
  459. package/dist/{table-D6zKeYQX.js → table-CIKyLUsy.js} +59 -58
  460. package/dist/table-CIKyLUsy.js.map +1 -0
  461. package/dist/table-CrcLN9Io.js +1458 -0
  462. package/dist/table-CrcLN9Io.js.map +1 -0
  463. package/dist/{tabs-Dk8E_knt.js → tabs-DwBJfjxX.js} +58 -57
  464. package/dist/tabs-DwBJfjxX.js.map +1 -0
  465. package/dist/{text-inputs-BFpku0Qd.js → text-inputs-aaK9wcDT.js} +74 -79
  466. package/dist/text-inputs-aaK9wcDT.js.map +1 -0
  467. package/dist/theme.css +3 -3
  468. package/dist/{timelines-CxuAFIc2.js → timelines-C_SBwHNP.js} +153 -150
  469. package/dist/timelines-C_SBwHNP.js.map +1 -0
  470. package/dist/tone-recipes-CPoExcTE.js +70 -0
  471. package/dist/tone-recipes-CPoExcTE.js.map +1 -0
  472. package/dist/tooltip-CsfgrfS7.js +111 -0
  473. package/dist/tooltip-CsfgrfS7.js.map +1 -0
  474. package/dist/{tree-BotPlyiD.js → tree-BiKhg8AY.js} +68 -66
  475. package/dist/tree-BiKhg8AY.js.map +1 -0
  476. package/dist/typography/rich-text.js +1 -1
  477. package/dist/typography-DTRkE9zL.js +117 -0
  478. package/dist/typography-DTRkE9zL.js.map +1 -0
  479. package/dist/typography.js +1 -1
  480. package/dist/{ui-provider-D2_TeLqw.js → ui-provider-1D_NSYzO.js} +11 -3
  481. package/dist/ui-provider-1D_NSYzO.js.map +1 -0
  482. package/dist/ui-provider.js +3 -3
  483. package/dist/{upload-B0WHW7ak.js → upload-BO8-CLN6.js} +209 -209
  484. package/dist/upload-BO8-CLN6.js.map +1 -0
  485. package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-EOC8g1gf.js} +109 -111
  486. package/dist/upload-queue-EOC8g1gf.js.map +1 -0
  487. package/dist/upload.recipes-BbxTqrCT.js +61 -0
  488. package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
  489. package/dist/{usage-card-U0YBLTNT.js → usage-card-obRaBskq.js} +46 -46
  490. package/dist/{usage-card-U0YBLTNT.js.map → usage-card-obRaBskq.js.map} +1 -1
  491. package/dist/{utils-Cospvlj1.js → utils-l5LpDw2z.js} +56 -24
  492. package/dist/utils-l5LpDw2z.js.map +1 -0
  493. package/dist/value-inputs-TAYMX111.js +947 -0
  494. package/dist/value-inputs-TAYMX111.js.map +1 -0
  495. package/dist/{value-typography-Deb3yQZg.js → value-typography-b8wpz1eX.js} +2 -2
  496. package/dist/{value-typography-Deb3yQZg.js.map → value-typography-b8wpz1eX.js.map} +1 -1
  497. package/dist/workspace-DH0v0KcB.js +407 -0
  498. package/dist/workspace-DH0v0KcB.js.map +1 -0
  499. package/docs/consumer-skill/SKILL.md +19 -20
  500. package/docs/consumer-skill/examples/app-layout.tsx +1 -1
  501. package/docs/consumer-skill/examples/composition.tsx +3 -3
  502. package/docs/consumer-skill/examples/detail.tsx +59 -12
  503. package/docs/consumer-skill/examples/edit.tsx +1 -1
  504. package/docs/consumer-skill/examples/receipt.tsx +2 -2
  505. package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
  506. package/docs/consumer-skill/examples/website.tsx +1 -1
  507. package/docs/consumer-skill/references/agents-md.md +33 -0
  508. package/docs/consumer-skill/references/analytics.md +1 -1
  509. package/docs/consumer-skill/references/composition.md +51 -8
  510. package/docs/consumer-skill/references/design-contract.md +12 -3
  511. package/docs/consumer-skill/references/installation.md +11 -1
  512. package/docs/consumer-skill/references/public-api.json +847 -447
  513. package/docs/consumer-skill/references/review.md +25 -5
  514. package/docs/consumer-skill/references/theming.md +8 -4
  515. package/docs/consumer-skill/references/tokens.json +1 -1
  516. package/docs/consumer-skill/references/workflows.md +29 -10
  517. package/docs/consumer-skill/scripts/composition-policy.mjs +41 -11
  518. package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
  519. package/package.json +10 -2
  520. package/dist/accordion-CQXVcd7Q.js.map +0 -1
  521. package/dist/action-menu-BTpyPWJ2.js +0 -264
  522. package/dist/action-menu-BTpyPWJ2.js.map +0 -1
  523. package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
  524. package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
  525. package/dist/attachment-q69dlt5Y.js +0 -244
  526. package/dist/attachment-q69dlt5Y.js.map +0 -1
  527. package/dist/auth-M3vGMgDR.js.map +0 -1
  528. package/dist/avatar-djdaaQ_s.js.map +0 -1
  529. package/dist/badge-0tATj-tW.js +0 -92
  530. package/dist/badge-0tATj-tW.js.map +0 -1
  531. package/dist/breadcrumbs-BG_FfMK4.js +0 -128
  532. package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
  533. package/dist/button-BS3KDg00.js.map +0 -1
  534. package/dist/button-R9CCoH7A.js.map +0 -1
  535. package/dist/buttons-DS0ZIwJ_.js +0 -99
  536. package/dist/buttons-DS0ZIwJ_.js.map +0 -1
  537. package/dist/cards-QoJ4syG9.js.map +0 -1
  538. package/dist/checkbox-B7ygNTYp.js +0 -35
  539. package/dist/checkbox-B7ygNTYp.js.map +0 -1
  540. package/dist/choice-inputs-DrJ17tpL.js +0 -752
  541. package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
  542. package/dist/code-block-CD0B7M93.js +0 -183
  543. package/dist/code-block-CD0B7M93.js.map +0 -1
  544. package/dist/combobox-6dvVny2q.js.map +0 -1
  545. package/dist/combobox-CB7039j7.js.map +0 -1
  546. package/dist/comments-You0Bzbr.js.map +0 -1
  547. package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
  548. package/dist/containers-D_L4mTVb.js.map +0 -1
  549. package/dist/data-display-3xWQUnMA.js +0 -1335
  550. package/dist/data-display-3xWQUnMA.js.map +0 -1
  551. package/dist/date-picker-DrDFj8Lo.js +0 -1527
  552. package/dist/date-picker-DrDFj8Lo.js.map +0 -1
  553. package/dist/display-DrdvPwF0.js.map +0 -1
  554. package/dist/feedback-C7nR0UtT.js.map +0 -1
  555. package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
  556. package/dist/field-state-recipes-C-MFBX_8.js +0 -11
  557. package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
  558. package/dist/filters-Da-gNPsE.js.map +0 -1
  559. package/dist/form-sizing-uWP4lzVh.js.map +0 -1
  560. package/dist/forms-numeric-D3CO60IF.js.map +0 -1
  561. package/dist/header-2ycNqGOR.js.map +0 -1
  562. package/dist/icon-badge-DKlaKXoo.js +0 -53
  563. package/dist/icon-badge-DKlaKXoo.js.map +0 -1
  564. package/dist/input-DhQdBnV3.js +0 -255
  565. package/dist/input-DhQdBnV3.js.map +0 -1
  566. package/dist/item-xzh8Df65.js.map +0 -1
  567. package/dist/media-gallery-DQUQ0m3O.js +0 -201
  568. package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
  569. package/dist/mentions-DwnO1hh4.js +0 -564
  570. package/dist/mentions-DwnO1hh4.js.map +0 -1
  571. package/dist/navigation-Cbp5V8gG.js +0 -264
  572. package/dist/navigation-Cbp5V8gG.js.map +0 -1
  573. package/dist/navigation-Cs1npsPm.js +0 -300
  574. package/dist/navigation-Cs1npsPm.js.map +0 -1
  575. package/dist/overlay.recipes-CNO2S9V6.js +0 -34
  576. package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
  577. package/dist/overlays-DhZO7N-I.js +0 -994
  578. package/dist/overlays-DhZO7N-I.js.map +0 -1
  579. package/dist/page-C6R_8jFt.js +0 -325
  580. package/dist/page-C6R_8jFt.js.map +0 -1
  581. package/dist/page-header-hUTzcRZX.js +0 -112
  582. package/dist/page-header-hUTzcRZX.js.map +0 -1
  583. package/dist/popover-Dcv_9jxr.js.map +0 -1
  584. package/dist/rich-text-editor-CF8QYt5p.js +0 -574
  585. package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
  586. package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
  587. package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
  588. package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
  589. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
  590. package/dist/rich-text-j-FGAeZW.js +0 -32
  591. package/dist/rich-text-j-FGAeZW.js.map +0 -1
  592. package/dist/sanitize-html-BG9FGe-j.js +0 -64
  593. package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
  594. package/dist/scroll-area-DRdr16Pt.js +0 -47
  595. package/dist/scroll-area-DRdr16Pt.js.map +0 -1
  596. package/dist/settings-DHk0L2MF.js +0 -161
  597. package/dist/settings-DHk0L2MF.js.map +0 -1
  598. package/dist/sheet-DRFNY1_D.js +0 -207
  599. package/dist/sheet-DRFNY1_D.js.map +0 -1
  600. package/dist/sidebar-Cb8WzOvE.js.map +0 -1
  601. package/dist/sidebar-Crc9M9JV.js.map +0 -1
  602. package/dist/smart-card-Bek-TwUp.js +0 -599
  603. package/dist/smart-card-Bek-TwUp.js.map +0 -1
  604. package/dist/surface-recipes-DOdoBXGm.js +0 -28
  605. package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
  606. package/dist/table-D6zKeYQX.js.map +0 -1
  607. package/dist/table-Dn4XSrSB.js +0 -1444
  608. package/dist/table-Dn4XSrSB.js.map +0 -1
  609. package/dist/tabs-Dk8E_knt.js.map +0 -1
  610. package/dist/text-inputs-BFpku0Qd.js.map +0 -1
  611. package/dist/timelines-CxuAFIc2.js.map +0 -1
  612. package/dist/tree-BotPlyiD.js.map +0 -1
  613. package/dist/typography-CAr3dQhX.js +0 -116
  614. package/dist/typography-CAr3dQhX.js.map +0 -1
  615. package/dist/ui-provider-D2_TeLqw.js.map +0 -1
  616. package/dist/upload-B0WHW7ak.js.map +0 -1
  617. package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
  618. package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
  619. package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
  620. package/dist/utils-Cospvlj1.js.map +0 -1
  621. package/dist/value-inputs-CjfzGMsN.js +0 -854
  622. package/dist/value-inputs-CjfzGMsN.js.map +0 -1
  623. package/dist/workspace-YoFjXi6i.js +0 -394
  624. package/dist/workspace-YoFjXi6i.js.map +0 -1
  625. /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
@@ -1,32 +1,34 @@
1
1
  "use client";
2
- import { _ as e, s as t } from "./ui-provider-D2_TeLqw.js";
2
+ import { s as e, v as t } from "./ui-provider-1D_NSYzO.js";
3
3
  import { useStrings as n } from "./lib/strings.js";
4
- import { t as r } from "./utils-Cospvlj1.js";
5
- import { a as i, i as a, s as o } from "./typography-CAr3dQhX.js";
6
- import { t as s } from "./button-BS3KDg00.js";
7
- import { r as c, t as l } from "./structure-hzCW-XsV.js";
8
- import { n as u, t as d } from "./feedback-C7nR0UtT.js";
9
- import { _ as f, g as p, m } from "./primitives-BHrwQXFC.js";
10
- import { t as h } from "./number-CKRBYmZK.js";
11
- import { n as g, t as _ } from "./date-uf3z37Nm.js";
12
- import { t as v } from "./badge-0tATj-tW.js";
13
- import { t as y } from "./field-affordance-recipes-CkOCdE2y.js";
14
- import { a as b, i as x, n as S, o as C, r as w, s as T, t as E } from "./command-kPMPjIxJ.js";
15
- import { d as D, g as O, u as k } from "./form-sizing-uWP4lzVh.js";
16
- import { t as A } from "./input-DhQdBnV3.js";
17
- import { t as j } from "./date-picker-DrDFj8Lo.js";
18
- import { a as M, c as N, i as P, o as F, r as I, t as ee } from "./popover-Dcv_9jxr.js";
19
- import { n as L, r as R, t as te } from "./control-group-recipes-DBXmfh2E.js";
20
- import { i as z, r as B, t as ne } from "./tabs-Dk8E_knt.js";
21
- import { t as re } from "./popover-menu-DnRFKnHP.js";
22
- import { t as ie } from "./use-debounced-callback-Cx1h-hdv.js";
23
- import { t as ae } from "./use-debounce-DZ_1ZBPa.js";
24
- import V, { Component as oe, createContext as se, useCallback as H, useContext as ce, useEffect as U, useId as le, useMemo as W, useRef as G, useState as K } from "react";
25
- import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
26
- import { CalendarIcon as ue, Check as de, ChevronDown as fe, ChevronLeft as pe, ChevronsUpDown as me, Filter as he, Loader2 as ge, Plus as _e, X as ve } from "lucide-react";
27
- import { format as ye, isValid as be, parse as xe } from "date-fns";
4
+ import { t as r } from "./utils-l5LpDw2z.js";
5
+ import { n as i } from "./buttons-SbIcm1HJ.js";
6
+ import { a, i as o, s } from "./typography-DTRkE9zL.js";
7
+ import { r as c, t as l } from "./structure-DC2dygdA.js";
8
+ import { r as u } from "./tone-recipes-CPoExcTE.js";
9
+ import { n as d, t as f } from "./feedback-qNuMBtRH.js";
10
+ import { t as p } from "./interaction-recipes-CHr0dJUs.js";
11
+ import { _ as m, g as h, m as g } from "./primitives-B-CkiEMU.js";
12
+ import { t as _ } from "./number-DMhe-Vsk.js";
13
+ import { n as v, t as y } from "./date-BgK3bTdo.js";
14
+ import { t as b } from "./badge-MrKVNzW9.js";
15
+ import { n as x } from "./field-affordance-recipes-qQeIf4lG.js";
16
+ import { a as S, i as C, n as w, o as T, r as E, s as D, t as O } from "./command-kNR20o7x.js";
17
+ import { _ as k, f as A, u as j } from "./form-sizing-By94KzXE.js";
18
+ import { t as M } from "./input-DWhBBBww.js";
19
+ import { t as N } from "./date-picker-CF-DtUpF.js";
20
+ import { a as P, c as ee, i as F, o as I, r as L, t as te } from "./popover-Di55PyAI.js";
21
+ import { n as ne, r as R, t as z } from "./control-group-recipes-DBXmfh2E.js";
22
+ import { i as re, r as ie, t as ae } from "./tabs-DwBJfjxX.js";
23
+ import { t as oe } from "./popover-menu-B71Tn2Qz.js";
24
+ import { t as se } from "./use-debounced-callback-Cx1h-hdv.js";
25
+ import { t as ce } from "./use-debounce-DZ_1ZBPa.js";
26
+ import B, { Component as le, createContext as ue, useCallback as V, useContext as de, useEffect as H, useId as fe, useMemo as U, useRef as W, useState as G } from "react";
27
+ import { Fragment as pe, jsx as K, jsxs as q } from "react/jsx-runtime";
28
+ import { CalendarIcon as me, Check as he, ChevronDown as ge, ChevronLeft as _e, ChevronsUpDown as ve, Filter as ye, Loader2 as be, Plus as xe, X as Se } from "lucide-react";
29
+ import { format as Ce, isValid as J, parse as we } from "date-fns";
28
30
  //#region src/components/features/filters/filters.strings.ts
29
- var Se = {
31
+ var Te = {
30
32
  loading: "Loading",
31
33
  loadingOptions: "Loading {filterLabel} options...",
32
34
  addFilter: "Add filter",
@@ -105,20 +107,20 @@ var Se = {
105
107
  invalidFormat: "Invalid format"
106
108
  }
107
109
  };
108
- function X(e, t) {
110
+ function Y(e, t) {
109
111
  return e.replace(/{(\w+)}/g, (e, n) => String(t[n] ?? e)).replace(/:(\w+)/g, (e, n) => t[n] === void 0 ? e : String(t[n]));
110
112
  }
111
- function Ce(e, t, n) {
113
+ function Ee(e, t, n) {
112
114
  let r = t.split("."), i = e;
113
115
  for (let e of r) {
114
116
  if (typeof i != "object" || !i) return t;
115
117
  i = i[e];
116
118
  }
117
- return typeof i == "string" ? n ? X(i, n) : i : t;
119
+ return typeof i == "string" ? n ? Y(i, n) : i : t;
118
120
  }
119
121
  //#endregion
120
122
  //#region src/components/features/filters/filters.types.ts
121
- var Z = {
123
+ var X = {
122
124
  SELECT: "select",
123
125
  MULTI_SELECT: "multi_select",
124
126
  ASYNC_SELECT: "async_select",
@@ -126,7 +128,7 @@ var Z = {
126
128
  RANGE: "range",
127
129
  DATE: "date",
128
130
  TAGS: "tags"
129
- }, Q = {
131
+ }, Z = {
130
132
  EQUALS: "equals",
131
133
  CONTAINS: "contains",
132
134
  IN: "in",
@@ -143,112 +145,112 @@ var Z = {
143
145
  HAS_ANY: "has_any",
144
146
  HAS_ALL: "has_all"
145
147
  };
146
- function we(e) {
148
+ function De(e) {
147
149
  return e;
148
150
  }
149
151
  //#endregion
150
152
  //#region src/components/features/filters/operator-options.ts
151
- function Te(e) {
153
+ function Oe(e) {
152
154
  return [
153
155
  {
154
156
  label: e.contains,
155
- value: Q.CONTAINS
157
+ value: Z.CONTAINS
156
158
  },
157
159
  {
158
160
  label: e.equals,
159
- value: Q.EQUALS
161
+ value: Z.EQUALS
160
162
  },
161
163
  {
162
164
  label: e.notContains,
163
- value: Q.NOT
165
+ value: Z.NOT
164
166
  }
165
167
  ];
166
168
  }
167
- function Ee(e) {
169
+ function ke(e) {
168
170
  return [{
169
171
  label: e.is,
170
- value: Q.EQUALS
172
+ value: Z.EQUALS
171
173
  }, {
172
174
  label: e.isNot,
173
- value: Q.NOT
175
+ value: Z.NOT
174
176
  }];
175
177
  }
176
- function De(e) {
178
+ function Ae(e) {
177
179
  return [
178
180
  {
179
181
  label: e.equals,
180
- value: Q.EQUALS
182
+ value: Z.EQUALS
181
183
  },
182
184
  {
183
185
  label: e.greaterThan,
184
- value: Q.GT
186
+ value: Z.GT
185
187
  },
186
188
  {
187
189
  label: e.lessThan,
188
- value: Q.LT
190
+ value: Z.LT
189
191
  }
190
192
  ];
191
193
  }
192
- function Oe(e) {
194
+ function je(e) {
193
195
  return [
194
196
  {
195
197
  label: e.before,
196
- value: Q.BEFORE
198
+ value: Z.BEFORE
197
199
  },
198
200
  {
199
201
  label: e.after,
200
- value: Q.AFTER
202
+ value: Z.AFTER
201
203
  },
202
204
  {
203
205
  label: e.between,
204
- value: Q.BETWEEN
206
+ value: Z.BETWEEN
205
207
  }
206
208
  ];
207
209
  }
208
- function ke(e) {
210
+ function Me(e) {
209
211
  return [{
210
212
  label: e.equals,
211
- value: Q.EQUALS
213
+ value: Z.EQUALS
212
214
  }];
213
215
  }
214
- function Ae(e, t) {
216
+ function Ne(e, t) {
215
217
  switch (e) {
216
- case Z.SEARCH: return Te(t);
217
- case Z.TAGS: return [
218
+ case X.SEARCH: return Oe(t);
219
+ case X.TAGS: return [
218
220
  {
219
221
  label: t.has,
220
- value: Q.HAS
222
+ value: Z.HAS
221
223
  },
222
224
  {
223
225
  label: t.hasAny,
224
- value: Q.HAS_ANY
226
+ value: Z.HAS_ANY
225
227
  },
226
228
  {
227
229
  label: t.hasAll,
228
- value: Q.HAS_ALL
230
+ value: Z.HAS_ALL
229
231
  }
230
232
  ];
231
- case Z.SELECT:
232
- case Z.ASYNC_SELECT: return Ee(t);
233
- case Z.RANGE: return De(t);
234
- case Z.DATE: return Oe(t);
235
- default: return Te(t);
233
+ case X.SELECT:
234
+ case X.ASYNC_SELECT: return ke(t);
235
+ case X.RANGE: return Ae(t);
236
+ case X.DATE: return je(t);
237
+ default: return Oe(t);
236
238
  }
237
239
  }
238
- function je(e) {
240
+ function Pe(e) {
239
241
  switch (e) {
240
- case Z.SEARCH: return Q.CONTAINS;
241
- case Z.TAGS: return Q.HAS;
242
- case Z.SELECT:
243
- case Z.ASYNC_SELECT: return Q.EQUALS;
244
- case Z.RANGE: return Q.EQUALS;
245
- case Z.DATE: return Q.BEFORE;
246
- default: return Q.EQUALS;
242
+ case X.SEARCH: return Z.CONTAINS;
243
+ case X.TAGS: return Z.HAS;
244
+ case X.SELECT:
245
+ case X.ASYNC_SELECT: return Z.EQUALS;
246
+ case X.RANGE: return Z.EQUALS;
247
+ case X.DATE: return Z.BEFORE;
248
+ default: return Z.EQUALS;
247
249
  }
248
250
  }
249
251
  //#endregion
250
252
  //#region src/components/features/filters/utils/filter-utils.ts
251
- function Me(e, t, n) {
253
+ function Fe(e, t, n) {
252
254
  if (e.type === "date" && Array.isArray(t) && t.every((e) => typeof e == "string")) return !0;
253
255
  if (e.validation?.required && (!t || Array.isArray(t) && t.length === 0)) return n("validation.required");
254
256
  if (typeof t == "number") {
@@ -264,14 +266,14 @@ function Me(e, t, n) {
264
266
  }
265
267
  //#endregion
266
268
  //#region src/components/features/filters/filter-context.tsx
267
- var Ne = se(void 0);
268
- function Pe({ children: e, filters: t, activeFilters: r, onFilterChange: i, navigating: a = !1, strings: o, onError: s }) {
269
- let c = G(t), l = G(i), u = G(s);
269
+ var Ie = ue(void 0);
270
+ function Le({ children: e, filters: t, activeFilters: r, onFilterChange: i, navigating: a = !1, strings: o, onError: s }) {
271
+ let c = W(t), l = W(i), u = W(s);
270
272
  u.current = s;
271
- let [d, f] = K(0), p = G(/* @__PURE__ */ new Map()), m = W(() => {
273
+ let [d, f] = G(0), p = W(/* @__PURE__ */ new Map()), m = U(() => {
272
274
  let e = /* @__PURE__ */ new Map();
273
275
  for (let n of t) {
274
- if (n.type !== Z.ASYNC_SELECT) continue;
276
+ if (n.type !== X.ASYNC_SELECT) continue;
275
277
  let t = n.asyncConfig?.fetcher, r = n.asyncConfig?.mapToOption, i = n.asyncConfig?.limit ?? 10, a = p.current.get(n.key), o = a && a.fetcher === t && a.mapToOption === r;
276
278
  e.set(n.key, o && a.limit === i ? a : {
277
279
  fetcher: t,
@@ -281,34 +283,34 @@ function Pe({ children: e, filters: t, activeFilters: r, onFilterChange: i, navi
281
283
  });
282
284
  }
283
285
  return e.size === p.current.size && [...e].every(([e, t]) => p.current.get(e) === t) ? p.current : (p.current = e, e);
284
- }, [t]), h = JSON.stringify(r.filter((e) => m.has(e.key)).map(({ key: e, value: t }) => [e, t])), g = n(Se, o);
285
- U(() => {
286
+ }, [t]), h = JSON.stringify(r.filter((e) => m.has(e.key)).map(({ key: e, value: t }) => [e, t])), g = n(Te, o);
287
+ H(() => {
286
288
  c.current = t;
287
- }, [t]), U(() => {
289
+ }, [t]), H(() => {
288
290
  l.current = i;
289
291
  }, [i]);
290
- let _ = H((e) => {
292
+ let _ = V((e) => {
291
293
  let t = [...r, e];
292
294
  l.current(t);
293
- }, [r]), v = H((e) => {
295
+ }, [r]), v = V((e) => {
294
296
  let t = r.filter((t) => t.id !== e && t.key !== e);
295
297
  l.current(t);
296
- }, [r]), y = H((e, t) => {
298
+ }, [r]), y = V((e, t) => {
297
299
  let n = r.map((n) => n.id === e || n.key === e ? {
298
300
  ...n,
299
301
  ...t
300
302
  } : n);
301
303
  l.current(n);
302
- }, [r]), b = H(() => {
304
+ }, [r]), b = V(() => {
303
305
  l.current([]);
304
- }, []), x = H((e) => {
306
+ }, []), x = V((e) => {
305
307
  l.current(e);
306
- }, []), S = H((e) => c.current.find((t) => t.key === e), []), C = H((e) => r.find((t) => t.key === e)?.value || [], [r]), w = H((e, t) => {
308
+ }, []), S = V((e) => c.current.find((t) => t.key === e), []), C = V((e) => r.find((t) => t.key === e)?.value || [], [r]), w = V((e, t) => {
307
309
  let n = r.find((t) => t.key === e);
308
310
  if (t.length === 0) n && v(e);
309
311
  else if (n) y(e, { value: t });
310
312
  else {
311
- let n = c.current.find((t) => t.key === e), r = n?.operator ?? n?.operators?.[0]?.value ?? (n ? je(n.type) : "equals");
313
+ let n = c.current.find((t) => t.key === e), r = n?.operator ?? n?.operators?.[0]?.value ?? (n ? Pe(n.type) : "equals");
312
314
  _({
313
315
  id: e,
314
316
  key: e,
@@ -321,21 +323,21 @@ function Pe({ children: e, filters: t, activeFilters: r, onFilterChange: i, navi
321
323
  _,
322
324
  v,
323
325
  y
324
- ]), T = H((e) => r.some((t) => t.key === e && t.value.length > 0), [r]), E = H((e) => r.find((t) => t.key === e)?.operator || "equals", [r]), D = H((e, t) => {
326
+ ]), T = V((e) => r.some((t) => t.key === e && t.value.length > 0), [r]), E = V((e) => r.find((t) => t.key === e)?.operator || "equals", [r]), D = V((e, t) => {
325
327
  r.find((t) => t.key === e) && y(e, { operator: t });
326
- }, [r, y]), O = H((e, t) => {
328
+ }, [r, y]), O = V((e, t) => {
327
329
  let n = c.current.find((t) => t.key === e);
328
- return n ? Me(n, t, (e) => Ce(g, e)) : !1;
329
- }, [g]), k = H((e) => c.current.filter((t) => t.dependencies?.some((t) => t.key === e)), []), A = H((e, t) => {
330
+ return n ? Fe(n, t, (e) => Ee(g, e)) : !1;
331
+ }, [g]), k = V((e) => c.current.filter((t) => t.dependencies?.some((t) => t.key === e)), []), A = V((e, t) => {
330
332
  let n = m.get(e)?.options;
331
333
  if (!n) return;
332
334
  let r = !1;
333
335
  for (let e of t) n.get(e.value)?.label !== e.label && (r = !0), n.set(e.value, e);
334
336
  r && f((e) => e + 1);
335
- }, [m]), j = H((e, t) => m.get(e)?.options.get(t)?.label, [m, d]), M = H((e, t) => {
337
+ }, [m]), j = V((e, t) => m.get(e)?.options.get(t)?.label, [m, d]), M = V((e, t) => {
336
338
  u.current?.(e, t);
337
339
  }, []);
338
- U(() => {
340
+ H(() => {
339
341
  let e = new AbortController(), t = (t, n) => {
340
342
  e.signal.aborted || t && t.name === "AbortError" || u.current?.(t, {
341
343
  phase: "fetch-options",
@@ -360,7 +362,7 @@ function Pe({ children: e, filters: t, activeFilters: r, onFilterChange: i, navi
360
362
  m,
361
363
  A
362
364
  ]);
363
- let N = W(() => ({
365
+ let N = U(() => ({
364
366
  activeFilters: r,
365
367
  filters: t,
366
368
  addFilter: _,
@@ -403,28 +405,28 @@ function Pe({ children: e, filters: t, activeFilters: r, onFilterChange: i, navi
403
405
  j,
404
406
  M
405
407
  ]);
406
- return /* @__PURE__ */ J(Ne.Provider, {
408
+ return /* @__PURE__ */ K(Ie.Provider, {
407
409
  value: N,
408
410
  children: e
409
411
  });
410
412
  }
411
- function $() {
412
- let e = ce(Ne);
413
+ function Q() {
414
+ let e = de(Ie);
413
415
  if (!e) throw Error("useFilters must be used within a FilterProvider");
414
416
  return e;
415
417
  }
416
418
  //#endregion
417
419
  //#region src/components/features/filters/hooks/use-filter-groups.ts
418
- function Fe(e = {}) {
419
- let { dynamicFilterOptions: t } = e, { filters: n, isFilterActive: r } = $(), i = W(() => t ? n.map((e) => {
420
+ function Re(e = {}) {
421
+ let { dynamicFilterOptions: t } = e, { filters: n, isFilterActive: r } = Q(), i = U(() => t ? n.map((e) => {
420
422
  let n = t[e.key];
421
423
  return Array.isArray(n) ? {
422
424
  ...e,
423
425
  options: n
424
426
  } : e;
425
427
  }) : n, [n, t]);
426
- return W(() => {
427
- let e = i.filter((e) => e.type === Z.SEARCH), t = i.filter((e) => !e.displayConfig?.hidden && e.displayConfig?.display !== "hidden"), n = i.filter((e) => e.type !== Z.SEARCH && !e.displayConfig?.hidden && e.displayConfig?.display !== "hidden" && r(e.key)), a = t.filter((e) => e.type !== Z.SEARCH && !r(e.key) && e.displayConfig?.display === "always"), o = t.filter((e) => e.type !== Z.SEARCH && !r(e.key) && e.displayConfig?.display !== "always"), s = n.map((e) => e.key);
428
+ return U(() => {
429
+ let e = i.filter((e) => e.type === X.SEARCH), t = i.filter((e) => !e.displayConfig?.hidden && e.displayConfig?.display !== "hidden"), n = i.filter((e) => e.type !== X.SEARCH && !e.displayConfig?.hidden && e.displayConfig?.display !== "hidden" && r(e.key)), a = t.filter((e) => e.type !== X.SEARCH && !r(e.key) && e.displayConfig?.display === "always"), o = t.filter((e) => e.type !== X.SEARCH && !r(e.key) && e.displayConfig?.display !== "always"), s = n.map((e) => e.key);
428
430
  return {
429
431
  processedFilters: i,
430
432
  searchFilters: e,
@@ -438,28 +440,28 @@ function Fe(e = {}) {
438
440
  }
439
441
  //#endregion
440
442
  //#region src/components/features/filters/partials/filter-operator-select.tsx
441
- function Ie({ operator: e, operators: t, onOperatorChange: n, segmentResetClass: a }) {
442
- let [c, l] = K(!1), { strings: u } = $(), d = t.find((t) => t.value === e)?.label || e;
443
- return /* @__PURE__ */ J(re, {
443
+ function ze({ operator: e, operators: t, onOperatorChange: n, segmentResetClass: o }) {
444
+ let [c, l] = G(!1), { strings: u } = Q(), d = t.find((t) => t.value === e)?.label || e;
445
+ return /* @__PURE__ */ K(oe, {
444
446
  open: c,
445
447
  onOpenChange: l,
446
448
  search: !1,
447
449
  contentLabel: u.operator,
448
- trigger: /* @__PURE__ */ J(s, {
450
+ trigger: /* @__PURE__ */ K(i, {
449
451
  tone: "secondary",
450
452
  buttonStyle: "ghost",
451
- className: r("filter-operator-select--component", a, "h-full min-h-0 px-control text-muted-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground"),
453
+ className: r("filter-operator-select--component", o, "h-full min-h-0 px-control text-muted-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground"),
452
454
  onClick: (e) => {
453
455
  e.stopPropagation();
454
456
  },
455
457
  type: "button",
456
- children: /* @__PURE__ */ J(o, {
458
+ children: /* @__PURE__ */ K(s, {
457
459
  tag: "span",
458
460
  type: "secondary",
459
461
  children: d
460
462
  })
461
463
  }),
462
- header: /* @__PURE__ */ J(i, {
464
+ header: /* @__PURE__ */ K(a, {
463
465
  tag: "span",
464
466
  children: u.operator
465
467
  }),
@@ -476,132 +478,132 @@ function Ie({ operator: e, operators: t, onOperatorChange: n, segmentResetClass:
476
478
  }
477
479
  //#endregion
478
480
  //#region src/components/features/filters/partials/filter-value-display.tsx
479
- function Le({ filter: e, value: t }) {
480
- let { strings: n } = $();
481
- return t.length === 0 && e.type !== Z.DATE ? /* @__PURE__ */ J(o, {
481
+ function Be({ filter: e, value: t }) {
482
+ let { strings: n } = Q();
483
+ return t.length === 0 && e.type !== X.DATE ? /* @__PURE__ */ K(s, {
482
484
  tag: "span",
483
485
  type: "secondary",
484
486
  className: "filter-value-display--component leading-none",
485
487
  children: n.nothingSelected
486
- }) : e.type === Z.ASYNC_SELECT && !e.options?.length ? /* @__PURE__ */ J(o, {
488
+ }) : e.type === X.ASYNC_SELECT && !e.options?.length ? /* @__PURE__ */ K(s, {
487
489
  tag: "span",
488
490
  weight: "semibold",
489
491
  className: "filter-value-display--component leading-none",
490
- children: ze(e, t, n)
491
- }) : e.options && e.type !== Z.DATE ? /* @__PURE__ */ Y(l, {
492
+ children: He(e, t, n)
493
+ }) : e.options && e.type !== X.DATE ? /* @__PURE__ */ q(l, {
492
494
  direction: "horizontal",
493
495
  gap: "xs",
494
496
  wrap: !1,
495
497
  className: "filter-value-display--component",
496
- children: [/* @__PURE__ */ Y("div", {
498
+ children: [/* @__PURE__ */ q("div", {
497
499
  className: "relative flex",
498
500
  children: [t.slice(0, 2).map((t, n) => {
499
501
  let r = e.options?.find((e) => e.value === t);
500
- return r?.icon ? /* @__PURE__ */ J("div", {
502
+ return r?.icon ? /* @__PURE__ */ K("div", {
501
503
  className: `${n > 0 ? "-ml-space-sm" : ""} border-background bg-background relative rounded-full border`,
502
504
  style: { zIndex: 10 - n },
503
505
  children: r.icon
504
506
  }, t) : null;
505
- }), t.length > 2 && /* @__PURE__ */ J("div", {
507
+ }), t.length > 2 && /* @__PURE__ */ K("div", {
506
508
  className: "bg-muted border-background relative -ml-space-sm flex size-icon items-center justify-center rounded-full border",
507
- children: /* @__PURE__ */ Y(o, {
509
+ children: /* @__PURE__ */ q(s, {
508
510
  tag: "span",
509
511
  size: "xs",
510
512
  weight: "medium",
511
- children: ["+", /* @__PURE__ */ J(h, {
513
+ children: ["+", /* @__PURE__ */ K(_, {
512
514
  value: t.length - 2,
513
515
  size: "inherit",
514
516
  align: "center"
515
517
  })]
516
518
  })
517
519
  })]
518
- }), /* @__PURE__ */ J(o, {
520
+ }), /* @__PURE__ */ K(s, {
519
521
  tag: "span",
520
522
  weight: "semibold",
521
523
  className: "truncate leading-none",
522
- children: Be(e, t, n)
524
+ children: Ue(e, t, n)
523
525
  })]
524
- }) : e.type === Z.DATE ? /* @__PURE__ */ Y(l, {
526
+ }) : e.type === X.DATE ? /* @__PURE__ */ q(l, {
525
527
  direction: "horizontal",
526
528
  gap: "xs",
527
529
  wrap: !1,
528
530
  className: "filter-value-display--component",
529
- children: [/* @__PURE__ */ J(ue, { className: "text-muted-foreground size-icon-sm" }), Re(e, t, n)]
530
- }) : /* @__PURE__ */ J(o, {
531
+ children: [/* @__PURE__ */ K(me, { className: "text-muted-foreground size-icon-sm" }), Ve(e, t, n)]
532
+ }) : /* @__PURE__ */ K(s, {
531
533
  tag: "span",
532
534
  weight: "semibold",
533
535
  className: "filter-value-display--component truncate leading-none",
534
- children: Be(e, t, n)
536
+ children: Ue(e, t, n)
535
537
  });
536
538
  }
537
- function Re(e, t, n) {
538
- return e.operator === "between" && t.length === 2 ? Ue(t[0], t[1], e.dateFormat?.display) : t.length === 1 ? He(t[0], e.dateFormat?.display) : t.length === 2 ? Ue(t[0], t[1], e.dateFormat?.display) : /* @__PURE__ */ J(f, {
539
+ function Ve(e, t, n) {
540
+ return e.operator === "between" && t.length === 2 ? Ke(t[0], t[1], e.dateFormat?.display) : t.length === 1 ? Ge(t[0], e.dateFormat?.display) : t.length === 2 ? Ke(t[0], t[1], e.dateFormat?.display) : /* @__PURE__ */ K(m, {
539
541
  weight: "semibold",
540
542
  className: "truncate leading-none",
541
543
  children: e.datePickerConfig?.noDatePlaceholder || n.calendar.notDateSelected
542
544
  });
543
545
  }
544
- function ze(e, t, n) {
545
- return t.length === 0 ? "" : X(n.selected, {
546
+ function He(e, t, n) {
547
+ return t.length === 0 ? "" : Y(n.selected, {
546
548
  count: t.length,
547
549
  filterLabel: (t.length > 1 ? e.pluralLabel : e.label) ?? e.label
548
550
  });
549
551
  }
550
- function Be(e, t, n) {
551
- return t.length > 1 ? X(n.selected, {
552
+ function Ue(e, t, n) {
553
+ return t.length > 1 ? Y(n.selected, {
552
554
  count: t.length,
553
555
  filterLabel: e.pluralLabel ?? e.label
554
556
  }) : t.map((t) => e.options?.find((e) => e.value === t)?.label || t).join(", ");
555
557
  }
556
- function Ve(e) {
558
+ function We(e) {
557
559
  let t = new Date(e);
558
560
  return !Number.isNaN(t.getTime());
559
561
  }
560
- function He(e, t) {
561
- return Ve(e) ? /* @__PURE__ */ J(_, {
562
+ function Ge(e, t) {
563
+ return We(e) ? /* @__PURE__ */ K(y, {
562
564
  value: e,
563
565
  format: t,
564
566
  weight: "semibold",
565
567
  className: "truncate leading-none"
566
- }) : /* @__PURE__ */ J(f, {
568
+ }) : /* @__PURE__ */ K(m, {
567
569
  weight: "semibold",
568
570
  className: "truncate leading-none",
569
571
  children: e
570
572
  });
571
573
  }
572
- function Ue(e, t, n) {
573
- return Ve(e) && Ve(t) ? /* @__PURE__ */ J(g, {
574
+ function Ke(e, t, n) {
575
+ return We(e) && We(t) ? /* @__PURE__ */ K(v, {
574
576
  from: e,
575
577
  to: t,
576
578
  format: n,
577
579
  weight: "semibold",
578
580
  className: "truncate leading-none"
579
- }) : /* @__PURE__ */ Y("span", {
581
+ }) : /* @__PURE__ */ q("span", {
580
582
  className: "inline-flex min-w-0 items-center gap-space-xs truncate leading-none",
581
583
  children: [
582
- He(e, n),
583
- /* @__PURE__ */ J(f, {
584
+ Ge(e, n),
585
+ /* @__PURE__ */ K(m, {
584
586
  weight: "semibold",
585
587
  children: "–"
586
588
  }),
587
- He(t, n)
589
+ Ge(t, n)
588
590
  ]
589
591
  });
590
592
  }
591
593
  //#endregion
592
594
  //#region src/components/features/filters/partials/active-filter-item.tsx
593
- function We({ filter: n, value: i, active: a, popoverOpen: c, triggerRef: l, operators: u, operator: d, onOperatorChange: f, onFilterClear: p, onFilterClick: m }) {
594
- let { defaultScale: h } = t(), g = e(void 0, h), { strings: _ } = $(), v = V.useId(), y = V.useId(), b = `${R.joinedItem} !border-0 !rounded-none !shadow-none focus-visible:!ring-0 focus-visible:!border-transparent`, x = () => /* @__PURE__ */ J("div", {
595
+ function qe({ filter: n, value: a, active: o, popoverOpen: c, triggerRef: l, operators: u, operator: d, onOperatorChange: f, onFilterClear: p, onFilterClick: m }) {
596
+ let { defaultScale: h } = e(), g = t(void 0, h), { strings: _ } = Q(), v = B.useId(), y = B.useId(), b = `${R.joinedItem} !border-0 !rounded-none !shadow-none focus-visible:!ring-0 focus-visible:!border-transparent`, x = () => /* @__PURE__ */ K("div", {
595
597
  "aria-hidden": !0,
596
598
  className: "w-px self-stretch bg-border"
597
599
  });
598
- return /* @__PURE__ */ Y("div", {
600
+ return /* @__PURE__ */ q("div", {
599
601
  role: "group",
600
602
  "aria-label": n.label,
601
- "data-active": a || void 0,
602
- className: r("active-filter-item--component", R.joinedFrame, te[g], "bg-background", n.displayConfig?.className),
603
+ "data-active": o || void 0,
604
+ className: r("active-filter-item--component", R.joinedFrame, z[g], "bg-background", n.displayConfig?.className),
603
605
  children: [
604
- /* @__PURE__ */ Y(s, {
606
+ /* @__PURE__ */ q(i, {
605
607
  type: "button",
606
608
  tone: "secondary",
607
609
  buttonStyle: "ghost",
@@ -611,28 +613,28 @@ function We({ filter: n, value: i, active: a, popoverOpen: c, triggerRef: l, ope
611
613
  "aria-expanded": c,
612
614
  onClick: m,
613
615
  children: [
614
- !!n.icon && /* @__PURE__ */ J("span", {
616
+ !!n.icon && /* @__PURE__ */ K("span", {
615
617
  className: "flex items-center text-muted-foreground",
616
618
  children: n.icon
617
619
  }),
618
- /* @__PURE__ */ J(o, {
620
+ /* @__PURE__ */ K(s, {
619
621
  id: v,
620
622
  tag: "span",
621
623
  weight: "semibold",
622
624
  children: n.label
623
625
  }),
624
- /* @__PURE__ */ J(fe, { className: "size-icon-sm" })
626
+ /* @__PURE__ */ K(ge, { className: "size-icon-sm" })
625
627
  ]
626
628
  }),
627
- /* @__PURE__ */ J(x, {}),
628
- /* @__PURE__ */ J(Ie, {
629
+ /* @__PURE__ */ K(x, {}),
630
+ /* @__PURE__ */ K(ze, {
629
631
  operator: d,
630
632
  operators: u,
631
633
  onOperatorChange: f,
632
634
  segmentResetClass: b
633
635
  }),
634
- /* @__PURE__ */ J(x, {}),
635
- /* @__PURE__ */ J(s, {
636
+ /* @__PURE__ */ K(x, {}),
637
+ /* @__PURE__ */ K(i, {
636
638
  type: "button",
637
639
  tone: "secondary",
638
640
  buttonStyle: "ghost",
@@ -641,16 +643,16 @@ function We({ filter: n, value: i, active: a, popoverOpen: c, triggerRef: l, ope
641
643
  "aria-expanded": c,
642
644
  onClick: m,
643
645
  className: r(b, "flex h-full min-h-0 min-w-0 flex-1 items-center justify-start px-control hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground"),
644
- children: /* @__PURE__ */ J("span", {
646
+ children: /* @__PURE__ */ K("span", {
645
647
  id: y,
646
648
  className: "min-w-0",
647
- children: /* @__PURE__ */ J(Le, {
649
+ children: /* @__PURE__ */ K(Be, {
648
650
  filter: n,
649
- value: i
651
+ value: a
650
652
  })
651
653
  })
652
654
  }),
653
- !!a && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(x, {}), /* @__PURE__ */ Y(s, {
655
+ !!o && /* @__PURE__ */ q(pe, { children: [/* @__PURE__ */ K(x, {}), /* @__PURE__ */ q(i, {
654
656
  type: "button",
655
657
  tone: "secondary",
656
658
  buttonStyle: "ghost",
@@ -658,10 +660,10 @@ function We({ filter: n, value: i, active: a, popoverOpen: c, triggerRef: l, ope
658
660
  onClick: (e) => {
659
661
  e.stopPropagation(), e.preventDefault(), p();
660
662
  },
661
- children: [/* @__PURE__ */ J(ve, {
663
+ children: [/* @__PURE__ */ K(Se, {
662
664
  "aria-hidden": "true",
663
665
  className: "size-icon"
664
- }), /* @__PURE__ */ J(o, {
666
+ }), /* @__PURE__ */ K(s, {
665
667
  tag: "span",
666
668
  className: "sr-only",
667
669
  children: _.clear
@@ -672,18 +674,18 @@ function We({ filter: n, value: i, active: a, popoverOpen: c, triggerRef: l, ope
672
674
  }
673
675
  //#endregion
674
676
  //#region src/components/features/filters/hooks/use-async-options.ts
675
- function Ge(e, t, n) {
677
+ function Je(e, t, n) {
676
678
  for (let [t, r] of e) Date.now() - r.timestamp > n && e.delete(t);
677
679
  return e.get(t);
678
680
  }
679
- function Ke(e, t, n, r = {}) {
680
- let { asyncConfig: i } = e, a = i?.fetcher, o = i?.mapToOption, s = W(() => /* @__PURE__ */ new Map(), [
681
+ function Ye(e, t, n, r = {}) {
682
+ let { asyncConfig: i } = e, a = i?.fetcher, o = i?.mapToOption, s = U(() => /* @__PURE__ */ new Map(), [
681
683
  e.key,
682
684
  a,
683
685
  o
684
- ]), c = G(r.onError);
686
+ ]), c = W(r.onError);
685
687
  c.current = r.onError;
686
- let l = i?.debounceMs ?? e.delay ?? 300, u = (ae(t, l) ?? "").trim(), d = i?.limit ?? 10, f = i?.minQueryLength ?? 0, p = i?.preload ?? !0, m = i?.staleTime ?? 6e4, h = i?.gcTime ?? 3e5, g = u.length === 0 && p, _ = u.length >= f, v = !!i?.fetcher && n && (g || u.length > 0 && _), y = n && !g && u.length > 0 && u.length < f, b = W(() => i?.queryKey ? JSON.stringify(i.queryKey({
688
+ let l = i?.debounceMs ?? e.delay ?? 300, u = (ce(t, l) ?? "").trim(), d = i?.limit ?? 10, f = i?.minQueryLength ?? 0, p = i?.preload ?? !0, m = i?.staleTime ?? 6e4, h = i?.gcTime ?? 3e5, g = u.length === 0 && p, _ = u.length >= f, v = !!i?.fetcher && n && (g || u.length > 0 && _), y = n && !g && u.length > 0 && u.length < f, b = U(() => i?.queryKey ? JSON.stringify(i.queryKey({
687
689
  query: u,
688
690
  limit: d
689
691
  })) : JSON.stringify([
@@ -696,7 +698,7 @@ function Ke(e, t, n, r = {}) {
696
698
  e.key,
697
699
  u,
698
700
  d
699
- ]), x = H(async (e) => a && o ? (await a({
701
+ ]), x = V(async (e) => a && o ? (await a({
700
702
  query: u,
701
703
  limit: d,
702
704
  signal: e
@@ -705,8 +707,8 @@ function Ke(e, t, n, r = {}) {
705
707
  o,
706
708
  u,
707
709
  d
708
- ]), [S, C] = K(() => {
709
- let e = Ge(s, b, h);
710
+ ]), [S, C] = G(() => {
711
+ let e = Je(s, b, h);
710
712
  return {
711
713
  cache: s,
712
714
  data: e?.data ?? [],
@@ -714,11 +716,11 @@ function Ke(e, t, n, r = {}) {
714
716
  fetching: !1,
715
717
  error: !1
716
718
  };
717
- }), [w, T] = K(0), E = H(() => T((e) => e + 1), []), D = G(0);
718
- return U(() => {
719
+ }), [w, T] = G(0), E = V(() => T((e) => e + 1), []), D = W(0);
720
+ return H(() => {
719
721
  let t = D.current !== w;
720
722
  if (D.current = w, !v) return;
721
- let n = Ge(s, b, h), r = n !== void 0 && Date.now() - n.timestamp < m, i = new AbortController();
723
+ let n = Je(s, b, h), r = n !== void 0 && Date.now() - n.timestamp < m, i = new AbortController();
722
724
  if (r && !t) return C({
723
725
  cache: s,
724
726
  data: n.data,
@@ -780,22 +782,22 @@ function Ke(e, t, n, r = {}) {
780
782
  }
781
783
  //#endregion
782
784
  //#region src/components/features/filters/partials/async-filter-content.tsx
783
- function qe({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onClose: i, triggerSource: a = "chip" }) {
784
- let { strings: c, cacheAsyncOptions: f, getAsyncOptionLabel: p, reportError: m } = $(), [h, g] = K(""), [_, v] = K(t ?? []), y = G(t);
785
+ function Xe({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onClose: a, triggerSource: o = "chip" }) {
786
+ let { strings: c, cacheAsyncOptions: u, getAsyncOptionLabel: p, reportError: m } = Q(), [h, g] = G(""), [_, v] = G(t ?? []), y = W(t);
785
787
  if (t !== y.current) {
786
788
  let e = y.current ?? [], n = t ?? [];
787
789
  y.current = t, (n.length !== e.length || n.some((t, n) => t !== e[n])) && v(n);
788
790
  }
789
- let { options: T, isLoading: D, isFetching: O, isError: k, refetch: A, isBelowMinQuery: j, minQueryLength: M } = Ke(e, h, !0, { onError: m });
790
- U(() => {
791
- T.length > 0 && f(e.key, T);
791
+ let { options: b, isLoading: x, isFetching: D, isError: k, refetch: A, isBelowMinQuery: j, minQueryLength: M } = Ye(e, h, !0, { onError: m });
792
+ H(() => {
793
+ b.length > 0 && u(e.key, b);
792
794
  }, [
793
- f,
795
+ u,
794
796
  e.key,
795
- T
797
+ b
796
798
  ]);
797
- let N = e.multiple !== !1, F = e.maxSelected, ee = a === "toolbar", L = _.length !== t.length || _.some((e) => !t.includes(e)), R = W(() => {
798
- let t = new Set(_), n = new Set(T.map((e) => e.value)), r = [];
799
+ let N = e.multiple !== !1, P = e.maxSelected, ee = o === "toolbar", I = _.length !== t.length || _.some((e) => !t.includes(e)), te = U(() => {
800
+ let t = new Set(_), n = new Set(b.map((e) => e.value)), r = [];
799
801
  for (let t of _) if (!n.has(t)) {
800
802
  let n = p(e.key, t);
801
803
  n && r.push({
@@ -804,27 +806,27 @@ function qe({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onC
804
806
  icon: e.icon
805
807
  });
806
808
  }
807
- return [...r, ...T].sort((e, n) => +!t.has(e.value) - !t.has(n.value));
809
+ return [...r, ...b].sort((e, n) => +!t.has(e.value) - !t.has(n.value));
808
810
  }, [
809
- T,
811
+ b,
810
812
  _,
811
813
  e.key,
812
814
  e.icon,
813
815
  p
814
- ]), te = (t) => {
816
+ ]), ne = (t) => {
815
817
  if (N) {
816
818
  if (_.includes(t)) v(_.filter((e) => e !== t));
817
819
  else {
818
- if (F && _.length >= F) return;
820
+ if (P && _.length >= P) return;
819
821
  v([..._, t]);
820
822
  }
821
- } else v([t]), e.closeOnSelect === !0 && (n([t]), i());
822
- }, z = () => {
823
- n(_), i();
824
- }, B = W(() => D || O ? /* @__PURE__ */ J(u, { label: c.searching }) : k ? /* @__PURE__ */ J(d, {
823
+ } else v([t]), e.closeOnSelect === !0 && (n([t]), a());
824
+ }, R = () => {
825
+ n(_), a();
826
+ }, z = U(() => x || D ? /* @__PURE__ */ K(d, { label: c.searching }) : k ? /* @__PURE__ */ K(f, {
825
827
  variant: "inline",
826
828
  title: c.fetchError,
827
- action: /* @__PURE__ */ J(s, {
829
+ action: /* @__PURE__ */ K(i, {
828
830
  tone: "secondary",
829
831
  buttonStyle: "outline",
830
832
  size: "sm",
@@ -833,26 +835,26 @@ function qe({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onC
833
835
  },
834
836
  children: c.retryFetch
835
837
  })
836
- }) : j ? /* @__PURE__ */ J("div", {
838
+ }) : j ? /* @__PURE__ */ K("div", {
837
839
  className: "text-muted-foreground flex items-center justify-center py-space-xl",
838
- children: /* @__PURE__ */ J(o, {
840
+ children: /* @__PURE__ */ K(s, {
839
841
  tag: "span",
840
842
  size: "xs",
841
843
  type: "secondary",
842
- children: X(c.minQueryHint, { min: M })
844
+ children: Y(c.minQueryHint, { min: M })
843
845
  })
844
846
  }) : c.noOptionsFound, [
847
+ x,
845
848
  D,
846
- O,
847
849
  k,
848
850
  j,
849
851
  M,
850
852
  c,
851
853
  A
852
854
  ]);
853
- return /* @__PURE__ */ Y(q, { children: [
854
- /* @__PURE__ */ Y(P, {
855
- start: ee ? /* @__PURE__ */ J(s, {
855
+ return /* @__PURE__ */ q(pe, { children: [
856
+ /* @__PURE__ */ q(F, {
857
+ start: ee ? /* @__PURE__ */ K(i, {
856
858
  tone: "secondary",
857
859
  buttonStyle: "ghost",
858
860
  size: "sm",
@@ -860,62 +862,62 @@ function qe({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onC
860
862
  className: "shrink-0",
861
863
  onClick: r,
862
864
  "aria-label": c.backToFilters,
863
- children: /* @__PURE__ */ J(pe, {
865
+ children: /* @__PURE__ */ K(_e, {
864
866
  "aria-hidden": "true",
865
867
  className: "size-icon-sm rtl:rotate-180"
866
868
  })
867
869
  }) : void 0,
868
- children: [/* @__PURE__ */ J(o, {
870
+ children: [/* @__PURE__ */ K(s, {
869
871
  tag: "span",
870
872
  weight: "semibold",
871
873
  children: e.label
872
- }), /* @__PURE__ */ J(o, {
874
+ }), /* @__PURE__ */ K(s, {
873
875
  tag: "span",
874
876
  size: "xs",
875
877
  type: "secondary",
876
878
  children: c.selectValues
877
879
  })]
878
880
  }),
879
- /* @__PURE__ */ Y(E, {
881
+ /* @__PURE__ */ q(O, {
880
882
  shouldFilter: !1,
881
883
  inset: "flush",
882
884
  className: "rounded-none",
883
- children: [/* @__PURE__ */ J(x, {
884
- placeholder: X(c.searchPlaceholder, { filterLabel: e.label.toLowerCase() }),
885
+ children: [/* @__PURE__ */ K(C, {
886
+ placeholder: Y(c.searchPlaceholder, { filterLabel: e.label.toLowerCase() }),
885
887
  value: h,
886
888
  onValueChange: g
887
- }), /* @__PURE__ */ J(C, { children: R.length === 0 ? /* @__PURE__ */ J(S, { children: B }) : /* @__PURE__ */ Y(w, { children: [!(!O || D) && /* @__PURE__ */ Y(l, {
889
+ }), /* @__PURE__ */ K(T, { children: te.length === 0 ? /* @__PURE__ */ K(w, { children: z }) : /* @__PURE__ */ q(E, { children: [!(!D || x) && /* @__PURE__ */ q(l, {
888
890
  direction: "horizontal",
889
891
  gap: "sm",
890
892
  wrap: !1,
891
893
  className: "px-control-sm py-space-xs",
892
- children: [/* @__PURE__ */ J(ge, { className: "text-muted-foreground size-icon-sm animate-spin" }), /* @__PURE__ */ J(o, {
894
+ children: [/* @__PURE__ */ K(be, { className: "text-muted-foreground size-icon-sm animate-spin" }), /* @__PURE__ */ K(s, {
893
895
  tag: "span",
894
896
  size: "xs",
895
897
  type: "secondary",
896
898
  children: c.searching
897
899
  })]
898
- }), R.map((e) => /* @__PURE__ */ Y(b, {
899
- onSelect: () => te(e.value),
900
+ }), te.map((e) => /* @__PURE__ */ q(S, {
901
+ onSelect: () => ne(e.value),
900
902
  "data-checked": _.includes(e.value) || void 0,
901
- disabled: e.disabled || !!F && _.length >= F && !_.includes(e.value),
903
+ disabled: e.disabled || !!P && _.length >= P && !_.includes(e.value),
902
904
  className: "flex items-center gap-space-sm",
903
- children: [e.icon, /* @__PURE__ */ J(o, {
905
+ children: [e.icon, /* @__PURE__ */ K(s, {
904
906
  tag: "span",
905
907
  lineHeight: "tight",
906
908
  children: e.label
907
909
  })]
908
910
  }, e.value))] }) })]
909
911
  }),
910
- L && /* @__PURE__ */ J(I, {
911
- caption: X(c.selected, {
912
+ I && /* @__PURE__ */ K(L, {
913
+ caption: Y(c.selected, {
912
914
  count: _.length,
913
915
  filterLabel: (_.length > 1 ? e.pluralLabel : e.label) ?? e.label
914
916
  }),
915
- children: /* @__PURE__ */ J(s, {
917
+ children: /* @__PURE__ */ K(i, {
916
918
  tone: "primary",
917
919
  size: "sm",
918
- onClick: z,
920
+ onClick: R,
919
921
  children: c.confirm
920
922
  })
921
923
  })
@@ -923,12 +925,12 @@ function qe({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onC
923
925
  }
924
926
  //#endregion
925
927
  //#region src/components/features/filters/facets/date-facet.tsx
926
- var Je = [];
927
- function Ye({ filter: e, value: t, onValueChange: n, className: i }) {
928
- let { strings: a } = $(), o = e.operators?.some((e) => e.value === "between") || e.operator === "between" || e.key.toLowerCase().includes("range") || e.key.toLowerCase().includes("between"), s = e.dateFormat?.param ?? "yyyy-MM-dd", c = e.dateFormat?.display ?? "PPP", l = o ? e.datePickerConfig?.noRangePlaceholder ?? e.placeholder ?? a.calendar.notDateRangeSelected : e.datePickerConfig?.noDatePlaceholder ?? e.placeholder ?? a.calendar.notDateSelected, u = !!e.datePickerConfig?.showConfirmButton, d = e.datePickerConfig?.autoApply ?? !u, f = e.datePickerConfig?.showShortcuts ?? !0, p = o && (t.start || t.end) ? {
928
+ var Ze = [];
929
+ function Qe({ filter: e, value: t, onValueChange: n, className: i }) {
930
+ let { strings: a } = Q(), o = e.operators?.some((e) => e.value === "between") || e.operator === "between" || e.key.toLowerCase().includes("range") || e.key.toLowerCase().includes("between"), s = e.dateFormat?.param ?? "yyyy-MM-dd", c = e.dateFormat?.display ?? "PPP", l = o ? e.datePickerConfig?.noRangePlaceholder ?? e.placeholder ?? a.calendar.notDateRangeSelected : e.datePickerConfig?.noDatePlaceholder ?? e.placeholder ?? a.calendar.notDateSelected, u = !!e.datePickerConfig?.showConfirmButton, d = e.datePickerConfig?.autoApply ?? !u, f = e.datePickerConfig?.showShortcuts ?? !0, p = o && (t.start || t.end) ? {
929
931
  from: t.start,
930
932
  to: t.end
931
- } : void 0, m = !o && t.start && be(t.start) ? t.start : void 0, h = {
933
+ } : void 0, m = !o && t.start && J(t.start) ? t.start : void 0, h = {
932
934
  format: s,
933
935
  readableFormat: c,
934
936
  placeholder: l,
@@ -936,7 +938,7 @@ function Ye({ filter: e, value: t, onValueChange: n, className: i }) {
936
938
  numberOfMonths: 1,
937
939
  className: r("date-facet--component", "w-full", i)
938
940
  };
939
- return o ? /* @__PURE__ */ J(j, {
941
+ return o ? /* @__PURE__ */ K(N, {
940
942
  mode: "range",
941
943
  value: p,
942
944
  onValueChange: (e) => {
@@ -947,9 +949,9 @@ function Ye({ filter: e, value: t, onValueChange: n, className: i }) {
947
949
  },
948
950
  withConfirm: u,
949
951
  closeOnSelect: d,
950
- presets: f ? void 0 : Je,
952
+ presets: f ? void 0 : Ze,
951
953
  ...h
952
- }) : /* @__PURE__ */ J(j, {
954
+ }) : /* @__PURE__ */ K(N, {
953
955
  mode: "single",
954
956
  value: m,
955
957
  onValueChange: (e) => {
@@ -964,28 +966,28 @@ function Ye({ filter: e, value: t, onValueChange: n, className: i }) {
964
966
  }
965
967
  //#endregion
966
968
  //#region src/components/features/filters/partials/date-filter-content.tsx
967
- function Xe({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, triggerSource: i = "chip" }) {
968
- let { strings: a } = $(), o = (t) => {
969
+ function $e({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, triggerSource: a = "chip" }) {
970
+ let { strings: o } = Q(), s = (t) => {
969
971
  if (!t) return;
970
972
  if (e.dateFormat?.param) {
971
- let n = xe(t, e.dateFormat.param, /* @__PURE__ */ new Date());
972
- return be(n) ? n : void 0;
973
+ let n = we(t, e.dateFormat.param, /* @__PURE__ */ new Date());
974
+ return J(n) ? n : void 0;
973
975
  }
974
976
  let n = new Date(t);
975
- return be(n) ? n : void 0;
976
- }, c = o(t[0]), l = o(t[1]), u = (t) => {
977
- if (t && be(t)) return ye(t, e.dateFormat?.param ?? "yyyy-MM-dd");
977
+ return J(n) ? n : void 0;
978
+ }, c = s(t[0]), l = s(t[1]), u = (t) => {
979
+ if (t && J(t)) return Ce(t, e.dateFormat?.param ?? "yyyy-MM-dd");
978
980
  }, d = ({ start: e, end: t }) => {
979
981
  let r = [], i = u(e), a = u(t);
980
982
  i && r.push(i), a && r.push(a), n(r);
981
- }, f = i === "toolbar", p = {
983
+ }, f = a === "toolbar", p = {
982
984
  start: c,
983
985
  end: l
984
986
  };
985
- return /* @__PURE__ */ Y("div", {
987
+ return /* @__PURE__ */ q("div", {
986
988
  className: "flex flex-col",
987
- children: [/* @__PURE__ */ J(P, {
988
- start: f ? /* @__PURE__ */ J(s, {
989
+ children: [/* @__PURE__ */ K(F, {
990
+ start: f ? /* @__PURE__ */ K(i, {
989
991
  type: "button",
990
992
  tone: "secondary",
991
993
  buttonStyle: "ghost",
@@ -993,16 +995,16 @@ function Xe({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, tri
993
995
  iconOnly: !0,
994
996
  onClick: r,
995
997
  className: "shrink-0",
996
- "aria-label": a.backToFilters,
997
- children: /* @__PURE__ */ J(pe, {
998
+ "aria-label": o.backToFilters,
999
+ children: /* @__PURE__ */ K(_e, {
998
1000
  "aria-hidden": "true",
999
1001
  className: "size-icon-sm rtl:rotate-180"
1000
1002
  })
1001
1003
  }) : void 0,
1002
- children: /* @__PURE__ */ J(M, { children: e.label })
1003
- }), /* @__PURE__ */ J("div", {
1004
+ children: /* @__PURE__ */ K(P, { children: e.label })
1005
+ }), /* @__PURE__ */ K("div", {
1004
1006
  className: "p-surface",
1005
- children: /* @__PURE__ */ J(Ye, {
1007
+ children: /* @__PURE__ */ K(Qe, {
1006
1008
  filter: e,
1007
1009
  value: p,
1008
1010
  onValueChange: d
@@ -1012,7 +1014,7 @@ function Xe({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, tri
1012
1014
  }
1013
1015
  //#endregion
1014
1016
  //#region src/components/features/filters/partials/filter-error-boundary.tsx
1015
- var Ze = class extends oe {
1017
+ var et = class extends le {
1016
1018
  state = {
1017
1019
  hasError: !1,
1018
1020
  error: null
@@ -1038,19 +1040,19 @@ var Ze = class extends oe {
1038
1040
  render() {
1039
1041
  if (this.state.hasError) {
1040
1042
  let { fallback: e, filterKey: t, labels: n } = this.props;
1041
- return e ? /* @__PURE__ */ J("div", {
1043
+ return e ? /* @__PURE__ */ K("div", {
1042
1044
  className: "filter-error-boundary--component contents",
1043
1045
  children: e
1044
- }) : /* @__PURE__ */ Y("div", {
1045
- className: "filter-error-boundary--component rounded-radius border border-destructive/30 bg-destructive/10 p-surface-xs text-destructive",
1046
+ }) : /* @__PURE__ */ q("div", {
1047
+ className: r("filter-error-boundary--component rounded-radius border p-surface-xs", u.destructive.edge, u.destructive.wash, u.destructive.ink),
1046
1048
  children: [
1047
- /* @__PURE__ */ Y("div", {
1049
+ /* @__PURE__ */ q("div", {
1048
1050
  className: "mb-space-xs flex items-center justify-between",
1049
- children: [/* @__PURE__ */ J(o, {
1051
+ children: [/* @__PURE__ */ K(s, {
1050
1052
  tag: "span",
1051
1053
  weight: "semibold",
1052
1054
  children: n.title
1053
- }), /* @__PURE__ */ J(s, {
1055
+ }), /* @__PURE__ */ K(i, {
1054
1056
  type: "button",
1055
1057
  tone: "destructive",
1056
1058
  buttonStyle: "ghost",
@@ -1058,11 +1060,11 @@ var Ze = class extends oe {
1058
1060
  iconOnly: !0,
1059
1061
  onClick: this.handleReset,
1060
1062
  "aria-label": n.reset,
1061
- children: /* @__PURE__ */ J(ve, { className: "size-icon-sm" })
1063
+ children: /* @__PURE__ */ K(Se, { className: "size-icon-sm" })
1062
1064
  })]
1063
1065
  }),
1064
- /* @__PURE__ */ J(o, { children: n.getDescription(t) }),
1065
- /* @__PURE__ */ J(m, {
1066
+ /* @__PURE__ */ K(s, { children: n.getDescription(t) }),
1067
+ /* @__PURE__ */ K(g, {
1066
1068
  size: "xs",
1067
1069
  className: "mt-space-xs text-destructive",
1068
1070
  children: this.state.error?.message || n.unknownError
@@ -1070,20 +1072,20 @@ var Ze = class extends oe {
1070
1072
  ]
1071
1073
  });
1072
1074
  }
1073
- return /* @__PURE__ */ J("div", {
1075
+ return /* @__PURE__ */ K("div", {
1074
1076
  className: "filter-error-boundary--component contents",
1075
1077
  children: this.props.children
1076
1078
  });
1077
1079
  }
1078
1080
  };
1079
- function Qe(e) {
1080
- let { strings: t, reportError: n } = $(), r = W(() => ({
1081
+ function tt(e) {
1082
+ let { strings: t, reportError: n } = Q(), r = U(() => ({
1081
1083
  title: t.error.title,
1082
1084
  reset: t.clear,
1083
- getDescription: (e) => e ? X(t.error.descriptionWithKey, { filterKey: e }) : t.error.generic,
1085
+ getDescription: (e) => e ? Y(t.error.descriptionWithKey, { filterKey: e }) : t.error.generic,
1084
1086
  unknownError: t.error.unknown
1085
1087
  }), [t]);
1086
- return /* @__PURE__ */ J(Ze, {
1088
+ return /* @__PURE__ */ K(et, {
1087
1089
  ...e,
1088
1090
  labels: r,
1089
1091
  onError: n
@@ -1091,22 +1093,22 @@ function Qe(e) {
1091
1093
  }
1092
1094
  //#endregion
1093
1095
  //#region src/components/features/filters/partials/filter-list-item.tsx
1094
- function $e({ filter: e, onSelect: t }) {
1095
- let { strings: n } = $(), r = e.type === Z.DATE ? e.operator === "between" ? n?.selectDateRange : n?.selectDate : e.options ? `${e.options.length} ${n?.options ?? ""}`.trim() : null;
1096
- return /* @__PURE__ */ Y(b, {
1096
+ function nt({ filter: e, onSelect: t }) {
1097
+ let { strings: n } = Q(), r = e.type === X.DATE ? e.operator === "between" ? n?.selectDateRange : n?.selectDate : e.options ? `${e.options.length} ${n?.options ?? ""}`.trim() : null;
1098
+ return /* @__PURE__ */ q(S, {
1097
1099
  onSelect: t,
1098
- children: [!!e.icon && /* @__PURE__ */ J("span", {
1100
+ children: [!!e.icon && /* @__PURE__ */ K("span", {
1099
1101
  className: "shrink-0 text-muted-foreground [&_svg]:size-icon",
1100
1102
  children: e.icon
1101
- }), /* @__PURE__ */ Y("div", {
1103
+ }), /* @__PURE__ */ q("div", {
1102
1104
  className: "flex min-w-0 flex-col gap-dense leading-tight",
1103
- children: [/* @__PURE__ */ J(o, {
1105
+ children: [/* @__PURE__ */ K(s, {
1104
1106
  tag: "span",
1105
1107
  lineHeight: "tight",
1106
1108
  weight: "medium",
1107
1109
  className: "truncate",
1108
1110
  children: e.label
1109
- }), !!r && /* @__PURE__ */ J(o, {
1111
+ }), !!r && /* @__PURE__ */ K(s, {
1110
1112
  tag: "span",
1111
1113
  lineHeight: "tight",
1112
1114
  size: "xs",
@@ -1119,25 +1121,25 @@ function $e({ filter: e, onSelect: t }) {
1119
1121
  }
1120
1122
  //#endregion
1121
1123
  //#region src/components/features/filters/partials/filter-list-content.tsx
1122
- function et({ availableFilters: e, activeFilters: t, onFilterSelect: n }) {
1123
- let { strings: r } = $(), i = (e) => {
1124
+ function rt({ availableFilters: e, activeFilters: t, onFilterSelect: n }) {
1125
+ let { strings: r } = Q(), i = (e) => {
1124
1126
  n(e);
1125
1127
  };
1126
- return /* @__PURE__ */ Y(E, {
1128
+ return /* @__PURE__ */ q(O, {
1127
1129
  inset: "compact",
1128
1130
  className: "rounded-none",
1129
- children: [/* @__PURE__ */ J(x, { placeholder: r.searchFilters }), /* @__PURE__ */ Y(C, { children: [
1130
- /* @__PURE__ */ J(S, { children: r.noFiltersAvailable }),
1131
- e.length > 0 && /* @__PURE__ */ J(w, {
1131
+ children: [/* @__PURE__ */ K(C, { placeholder: r.searchFilters }), /* @__PURE__ */ q(T, { children: [
1132
+ /* @__PURE__ */ K(w, { children: r.noFiltersAvailable }),
1133
+ e.length > 0 && /* @__PURE__ */ K(E, {
1132
1134
  heading: r.availableFilters,
1133
- children: e.map((e) => /* @__PURE__ */ J($e, {
1135
+ children: e.map((e) => /* @__PURE__ */ K(nt, {
1134
1136
  filter: e,
1135
1137
  onSelect: () => i(e)
1136
1138
  }, e.key))
1137
1139
  }),
1138
- t.length > 0 && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(T, {}), /* @__PURE__ */ J(w, {
1140
+ t.length > 0 && /* @__PURE__ */ q(pe, { children: [/* @__PURE__ */ K(D, {}), /* @__PURE__ */ K(E, {
1139
1141
  heading: r.activeFilters,
1140
- children: t.map((e) => /* @__PURE__ */ J($e, {
1142
+ children: t.map((e) => /* @__PURE__ */ K(nt, {
1141
1143
  filter: e,
1142
1144
  onSelect: () => i(e)
1143
1145
  }, e.key))
@@ -1147,19 +1149,19 @@ function et({ availableFilters: e, activeFilters: t, onFilterSelect: n }) {
1147
1149
  }
1148
1150
  //#endregion
1149
1151
  //#region src/components/features/filters/partials/regular-filter-content.tsx
1150
- function tt({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onClose: i, triggerSource: a = "chip" }) {
1151
- let { strings: c, reportError: u } = $(), d = e.multiple === !0 || e.type === Z.MULTI_SELECT, f = a === "toolbar", [p, m] = K(t || []);
1152
- U(() => {
1152
+ function it({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onClose: a, triggerSource: o = "chip" }) {
1153
+ let { strings: c, reportError: u } = Q(), d = e.multiple === !0 || e.type === X.MULTI_SELECT, f = o === "toolbar", [p, m] = G(t || []);
1154
+ H(() => {
1153
1155
  m(t || []);
1154
1156
  }, [t]);
1155
1157
  let h = (t) => {
1156
1158
  if (d) {
1157
1159
  let e = p.includes(t) ? p.filter((e) => e !== t) : [...p, t];
1158
1160
  m(e);
1159
- } else m([t]), e.closeOnSelect === !0 && (n([t]), i());
1161
+ } else m([t]), e.closeOnSelect === !0 && (n([t]), a());
1160
1162
  }, g = () => {
1161
1163
  try {
1162
- n(p), i();
1164
+ n(p), a();
1163
1165
  } catch (t) {
1164
1166
  u(t, {
1165
1167
  phase: "apply",
@@ -1167,11 +1169,11 @@ function tt({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onC
1167
1169
  });
1168
1170
  }
1169
1171
  }, _ = JSON.stringify(p.slice().sort()) !== JSON.stringify((t ?? []).slice().sort());
1170
- return /* @__PURE__ */ Y("div", {
1172
+ return /* @__PURE__ */ q("div", {
1171
1173
  className: "flex flex-col",
1172
1174
  children: [
1173
- /* @__PURE__ */ J(P, {
1174
- start: f ? /* @__PURE__ */ J(s, {
1175
+ /* @__PURE__ */ K(F, {
1176
+ start: f ? /* @__PURE__ */ K(i, {
1175
1177
  type: "button",
1176
1178
  tone: "secondary",
1177
1179
  buttonStyle: "ghost",
@@ -1180,47 +1182,47 @@ function tt({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onC
1180
1182
  onClick: r,
1181
1183
  className: "shrink-0",
1182
1184
  "aria-label": c.backToFilters,
1183
- children: /* @__PURE__ */ J(pe, {
1185
+ children: /* @__PURE__ */ K(_e, {
1184
1186
  "aria-hidden": "true",
1185
1187
  className: "size-icon-sm rtl:rotate-180"
1186
1188
  })
1187
1189
  }) : void 0,
1188
- children: /* @__PURE__ */ J(o, {
1190
+ children: /* @__PURE__ */ K(s, {
1189
1191
  tag: "span",
1190
1192
  weight: "semibold",
1191
1193
  children: e.label
1192
1194
  })
1193
1195
  }),
1194
- /* @__PURE__ */ Y(E, {
1196
+ /* @__PURE__ */ q(O, {
1195
1197
  inset: "flush",
1196
1198
  className: "rounded-none",
1197
- children: [/* @__PURE__ */ J(x, { placeholder: X(c.searchPlaceholder, { filterLabel: e.label.toLowerCase() }) }), /* @__PURE__ */ Y(C, {
1199
+ children: [/* @__PURE__ */ K(C, { placeholder: Y(c.searchPlaceholder, { filterLabel: e.label.toLowerCase() }) }), /* @__PURE__ */ q(T, {
1198
1200
  className: "max-h-64",
1199
- children: [/* @__PURE__ */ J(S, { children: /* @__PURE__ */ J(o, {
1201
+ children: [/* @__PURE__ */ K(w, { children: /* @__PURE__ */ K(s, {
1200
1202
  type: "secondary",
1201
1203
  align: "center",
1202
1204
  className: "py-space-xl",
1203
1205
  children: c.noOptionsFound
1204
- }) }), /* @__PURE__ */ J(w, { children: e.options?.map((e) => {
1206
+ }) }), /* @__PURE__ */ K(E, { children: e.options?.map((e) => {
1205
1207
  let t = p.includes(e.value);
1206
- return /* @__PURE__ */ Y(b, {
1208
+ return /* @__PURE__ */ q(S, {
1207
1209
  onSelect: () => h(e.value),
1208
1210
  "data-checked": t || void 0,
1209
1211
  disabled: e.disabled,
1210
1212
  className: "data-[checked=true]:**:[svg]:text-primary-accent",
1211
- children: [!!e.icon && /* @__PURE__ */ J("span", {
1213
+ children: [!!e.icon && /* @__PURE__ */ K("span", {
1212
1214
  className: "shrink-0 text-muted-foreground [&_svg]:size-icon",
1213
1215
  children: e.icon
1214
- }), /* @__PURE__ */ Y(l, {
1216
+ }), /* @__PURE__ */ q(l, {
1215
1217
  gap: "dense",
1216
1218
  className: "flex min-w-0 flex-1 flex-col leading-tight",
1217
- children: [/* @__PURE__ */ J(o, {
1219
+ children: [/* @__PURE__ */ K(s, {
1218
1220
  tag: "span",
1219
1221
  lineHeight: "tight",
1220
1222
  weight: t ? "medium" : "regular",
1221
1223
  className: "truncate",
1222
1224
  children: e.label
1223
- }), !!e.description && /* @__PURE__ */ J(o, {
1225
+ }), !!e.description && /* @__PURE__ */ K(s, {
1224
1226
  tag: "span",
1225
1227
  size: "xs",
1226
1228
  lineHeight: "tight",
@@ -1233,12 +1235,12 @@ function tt({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onC
1233
1235
  }) })]
1234
1236
  })]
1235
1237
  }),
1236
- !!_ && /* @__PURE__ */ J(I, {
1237
- caption: X(c.selected, {
1238
+ !!_ && /* @__PURE__ */ K(L, {
1239
+ caption: Y(c.selected, {
1238
1240
  count: p.length,
1239
1241
  filterLabel: (p.length > 1 ? e.pluralLabel : e.label) ?? e.label
1240
1242
  }),
1241
- children: /* @__PURE__ */ J(s, {
1243
+ children: /* @__PURE__ */ K(i, {
1242
1244
  tone: "primary",
1243
1245
  size: "sm",
1244
1246
  onClick: g,
@@ -1250,38 +1252,38 @@ function tt({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onC
1250
1252
  }
1251
1253
  //#endregion
1252
1254
  //#region src/components/features/filters/facets/tags-facet.tsx
1253
- function nt({ filter: e, value: n, onValueChange: i, className: a }) {
1254
- let { defaultScale: c } = t(), u = O(void 0, c), { strings: d } = $(), [f, p] = K(""), m = H(() => {
1255
+ function at({ filter: t, value: n, onValueChange: a, className: o }) {
1256
+ let { defaultScale: c } = e(), u = k(void 0, c), { strings: d } = Q(), [f, p] = G(""), m = V(() => {
1255
1257
  let e = f.trim();
1256
- e && !n.includes(e) && (i([...n, e]), p(""));
1258
+ e && !n.includes(e) && (a([...n, e]), p(""));
1257
1259
  }, [
1258
1260
  f,
1259
1261
  n,
1260
- i
1261
- ]), h = H((e) => {
1262
- i(n.filter((t) => t !== e));
1263
- }, [n, i]), g = (e) => {
1262
+ a
1263
+ ]), h = V((e) => {
1264
+ a(n.filter((t) => t !== e));
1265
+ }, [n, a]), g = (e) => {
1264
1266
  e.key === "Enter" && (e.preventDefault(), m());
1265
- }, _ = H(() => {
1266
- i([]), p("");
1267
- }, [i]), b = n.length > 0, x = n.length === 1 ? d.tag : d.tags, S = b ? /* @__PURE__ */ Y(l, {
1267
+ }, _ = V(() => {
1268
+ a([]), p("");
1269
+ }, [a]), v = n.length > 0, y = n.length === 1 ? d.tag : d.tags, S = v ? /* @__PURE__ */ q(l, {
1268
1270
  gap: "md",
1269
1271
  className: "tags-facet--summary",
1270
- children: [/* @__PURE__ */ Y(l, {
1272
+ children: [/* @__PURE__ */ q(l, {
1271
1273
  direction: "horizontal",
1272
1274
  gap: "sm",
1273
1275
  justify: "between",
1274
1276
  wrap: !1,
1275
- children: [/* @__PURE__ */ Y(o, {
1277
+ children: [/* @__PURE__ */ q(s, {
1276
1278
  tag: "span",
1277
1279
  size: "xs",
1278
1280
  type: "secondary",
1279
1281
  children: [
1280
1282
  n.length,
1281
1283
  " ",
1282
- x
1284
+ y
1283
1285
  ]
1284
- }), /* @__PURE__ */ J(s, {
1286
+ }), /* @__PURE__ */ K(i, {
1285
1287
  onClick: _,
1286
1288
  tone: "secondary",
1287
1289
  buttonStyle: "ghost",
@@ -1291,54 +1293,54 @@ function nt({ filter: e, value: n, onValueChange: i, className: a }) {
1291
1293
  "aria-label": d.clearAll,
1292
1294
  children: d.clearAll
1293
1295
  })]
1294
- }), /* @__PURE__ */ J(l, {
1296
+ }), /* @__PURE__ */ K(l, {
1295
1297
  direction: "horizontal",
1296
1298
  gap: "md",
1297
- children: n.map((e) => /* @__PURE__ */ Y(v, {
1299
+ children: n.map((e) => /* @__PURE__ */ q(b, {
1298
1300
  tone: "secondary",
1299
1301
  className: "flex items-center gap-space-sm py-space-2xs pl-space-md pr-space-sm",
1300
- children: [/* @__PURE__ */ J(o, {
1302
+ children: [/* @__PURE__ */ K(s, {
1301
1303
  tag: "span",
1302
1304
  size: "xs",
1303
1305
  children: e
1304
- }), /* @__PURE__ */ J("button", {
1306
+ }), /* @__PURE__ */ K("button", {
1305
1307
  onClick: () => h(e),
1306
- className: r(y.target, y.focus, y.toggle),
1308
+ className: r(x.target, x.focus, x.toggle),
1307
1309
  type: "button",
1308
1310
  "aria-label": `${d.removeTag} ${e}`,
1309
- children: /* @__PURE__ */ J(ve, {
1310
- className: y.icon,
1311
+ children: /* @__PURE__ */ K(Se, {
1312
+ className: x.icon,
1311
1313
  "aria-hidden": "true"
1312
1314
  })
1313
1315
  })]
1314
1316
  }, e))
1315
1317
  })]
1316
1318
  }) : null;
1317
- return /* @__PURE__ */ Y(l, {
1319
+ return /* @__PURE__ */ q(l, {
1318
1320
  gap: "lg",
1319
- className: r("tags-facet--component", a),
1320
- children: [/* @__PURE__ */ Y(l, {
1321
+ className: r("tags-facet--component", o),
1322
+ children: [/* @__PURE__ */ q(l, {
1321
1323
  direction: "horizontal",
1322
1324
  gap: "md",
1323
1325
  wrap: !1,
1324
- children: [/* @__PURE__ */ J("div", {
1326
+ children: [/* @__PURE__ */ K("div", {
1325
1327
  className: "relative flex-1",
1326
- children: /* @__PURE__ */ J(A, {
1328
+ children: /* @__PURE__ */ K(M, {
1327
1329
  type: "text",
1328
1330
  value: f,
1329
1331
  onChange: (e) => p(e.target.value),
1330
1332
  onKeyDown: g,
1331
- placeholder: e.placeholder ?? d.enterTag
1333
+ placeholder: t.placeholder ?? d.enterTag
1332
1334
  })
1333
- }), /* @__PURE__ */ Y(s, {
1335
+ }), /* @__PURE__ */ q(i, {
1334
1336
  tone: "primary",
1335
1337
  onClick: m,
1336
1338
  disabled: !f.trim(),
1337
1339
  size: u,
1338
1340
  iconOnly: !0,
1339
- className: r(k[u], L[u]),
1341
+ className: r(j[u], ne[u]),
1340
1342
  type: "button",
1341
- children: [/* @__PURE__ */ J(_e, { className: "size-icon" }), /* @__PURE__ */ J(o, {
1343
+ children: [/* @__PURE__ */ K(xe, { className: "size-icon" }), /* @__PURE__ */ K(s, {
1342
1344
  tag: "span",
1343
1345
  size: "pxs",
1344
1346
  className: "sr-only",
@@ -1348,30 +1350,30 @@ function nt({ filter: e, value: n, onValueChange: i, className: a }) {
1348
1350
  }), S]
1349
1351
  });
1350
1352
  }
1351
- var rt = V.memo(nt);
1352
- rt.displayName = "TagsFacet";
1353
+ var ot = B.memo(at);
1354
+ ot.displayName = "TagsFacet";
1353
1355
  //#endregion
1354
1356
  //#region src/components/features/filters/partials/tags-filter-content.tsx
1355
- function it({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onClose: i, triggerSource: a = "chip" }) {
1356
- let { strings: o, reportError: c } = $(), [l, u] = K(t || []), d = a === "toolbar", f = l.length === 1 ? o.tag : o.tags;
1357
- U(() => {
1357
+ function st({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onClose: a, triggerSource: o = "chip" }) {
1358
+ let { strings: s, reportError: c } = Q(), [l, u] = G(t || []), d = o === "toolbar", f = l.length === 1 ? s.tag : s.tags;
1359
+ H(() => {
1358
1360
  u(t || []);
1359
1361
  }, [t]);
1360
- let m = () => {
1362
+ let p = () => {
1361
1363
  try {
1362
- n(l), i();
1364
+ n(l), a();
1363
1365
  } catch (t) {
1364
1366
  c(t, {
1365
1367
  phase: "apply",
1366
1368
  filterKey: e.key
1367
1369
  });
1368
1370
  }
1369
- }, h = JSON.stringify(l.slice().sort()) !== JSON.stringify((t ?? []).slice().sort());
1370
- return /* @__PURE__ */ Y("div", {
1371
+ }, m = JSON.stringify(l.slice().sort()) !== JSON.stringify((t ?? []).slice().sort());
1372
+ return /* @__PURE__ */ q("div", {
1371
1373
  className: "flex flex-col",
1372
1374
  children: [
1373
- /* @__PURE__ */ J(P, {
1374
- start: d ? /* @__PURE__ */ J(s, {
1375
+ /* @__PURE__ */ K(F, {
1376
+ start: d ? /* @__PURE__ */ K(i, {
1375
1377
  type: "button",
1376
1378
  tone: "secondary",
1377
1379
  buttonStyle: "ghost",
@@ -1379,24 +1381,24 @@ function it({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onC
1379
1381
  iconOnly: !0,
1380
1382
  onClick: r,
1381
1383
  className: "shrink-0",
1382
- "aria-label": o.backToFilters,
1383
- children: /* @__PURE__ */ J(pe, {
1384
+ "aria-label": s.backToFilters,
1385
+ children: /* @__PURE__ */ K(_e, {
1384
1386
  "aria-hidden": "true",
1385
1387
  className: "size-icon-sm rtl:rotate-180"
1386
1388
  })
1387
1389
  }) : void 0,
1388
- children: /* @__PURE__ */ J(M, { children: e.label })
1390
+ children: /* @__PURE__ */ K(P, { children: e.label })
1389
1391
  }),
1390
- /* @__PURE__ */ J("div", {
1392
+ /* @__PURE__ */ K("div", {
1391
1393
  className: "p-surface",
1392
- children: /* @__PURE__ */ J(rt, {
1394
+ children: /* @__PURE__ */ K(ot, {
1393
1395
  filter: e,
1394
1396
  value: l,
1395
1397
  onValueChange: u
1396
1398
  })
1397
1399
  }),
1398
- !!h && /* @__PURE__ */ J(I, {
1399
- caption: /* @__PURE__ */ Y(p, {
1400
+ !!m && /* @__PURE__ */ K(L, {
1401
+ caption: /* @__PURE__ */ q(h, {
1400
1402
  size: "xs",
1401
1403
  className: "tabular-nums",
1402
1404
  children: [
@@ -1405,11 +1407,11 @@ function it({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onC
1405
1407
  f
1406
1408
  ]
1407
1409
  }),
1408
- children: /* @__PURE__ */ J(s, {
1410
+ children: /* @__PURE__ */ K(i, {
1409
1411
  tone: "primary",
1410
1412
  size: "sm",
1411
- onClick: m,
1412
- children: o.confirm
1413
+ onClick: p,
1414
+ children: s.confirm
1413
1415
  })
1414
1416
  })
1415
1417
  ]
@@ -1417,45 +1419,45 @@ function it({ filter: e, value: t, onFilterChange: n, onBackToFilterList: r, onC
1417
1419
  }
1418
1420
  //#endregion
1419
1421
  //#region src/components/features/filters/partials/filter-popover-content.tsx
1420
- function at({ activeFilterInPopover: e, availableFilters: t, activeFilters: n, getFilterValue: i, setFilterValue: a, onFilterSelect: o, onBackToFilterList: s, onClose: c, triggerSource: l = "chip", finalFocus: u }) {
1421
- let { strings: d } = $(), f = e?.type === Z.DATE || e?.type === Z.TAGS ? "w-auto min-w-80 gap-0 overflow-hidden" : e?.type === Z.ASYNC_SELECT ? "w-72 gap-0 overflow-hidden" : "w-64 gap-0 overflow-hidden", p = (e, t) => {
1422
+ function ct({ activeFilterInPopover: e, availableFilters: t, activeFilters: n, getFilterValue: i, setFilterValue: a, onFilterSelect: o, onBackToFilterList: s, onClose: c, triggerSource: l = "chip", finalFocus: u }) {
1423
+ let { strings: d } = Q(), f = e?.type === X.DATE || e?.type === X.TAGS ? "w-auto min-w-80 gap-0 overflow-hidden" : e?.type === X.ASYNC_SELECT ? "w-72 gap-0 overflow-hidden" : "w-64 gap-0 overflow-hidden", p = (e, t) => {
1422
1424
  a(e, t);
1423
1425
  };
1424
- return /* @__PURE__ */ J(ee, {
1426
+ return /* @__PURE__ */ K(te, {
1425
1427
  finalFocus: u,
1426
- type: e?.type === Z.DATE || e?.type === Z.TAGS ? "display" : "menu",
1428
+ type: e?.type === X.DATE || e?.type === X.TAGS ? "display" : "menu",
1427
1429
  "aria-label": e?.label ?? d.addFilter,
1428
1430
  inset: "flush",
1429
1431
  className: r("filter-popover-content--component", f),
1430
1432
  align: "start",
1431
- children: e ? e.type === Z.DATE ? /* @__PURE__ */ J(Xe, {
1433
+ children: e ? e.type === X.DATE ? /* @__PURE__ */ K($e, {
1432
1434
  filter: e,
1433
1435
  value: i(e.key),
1434
1436
  onFilterChange: (t) => p(e.key, t),
1435
1437
  onBackToFilterList: s,
1436
1438
  triggerSource: l
1437
- }) : e.type === Z.TAGS ? /* @__PURE__ */ J(it, {
1439
+ }) : e.type === X.TAGS ? /* @__PURE__ */ K(st, {
1438
1440
  filter: e,
1439
1441
  value: i(e.key),
1440
1442
  onFilterChange: (t) => p(e.key, t),
1441
1443
  onBackToFilterList: s,
1442
1444
  onClose: c,
1443
1445
  triggerSource: l
1444
- }) : e.type === Z.ASYNC_SELECT ? /* @__PURE__ */ J(qe, {
1446
+ }) : e.type === X.ASYNC_SELECT ? /* @__PURE__ */ K(Xe, {
1445
1447
  filter: e,
1446
1448
  value: i(e.key),
1447
1449
  onFilterChange: (t) => p(e.key, t),
1448
1450
  onBackToFilterList: s,
1449
1451
  onClose: c,
1450
1452
  triggerSource: l
1451
- }) : /* @__PURE__ */ J(tt, {
1453
+ }) : /* @__PURE__ */ K(it, {
1452
1454
  filter: e,
1453
1455
  value: i(e.key),
1454
1456
  onFilterChange: (t) => p(e.key, t),
1455
1457
  onBackToFilterList: s,
1456
1458
  onClose: c,
1457
1459
  triggerSource: l
1458
- }) : /* @__PURE__ */ J(et, {
1460
+ }) : /* @__PURE__ */ K(rt, {
1459
1461
  availableFilters: t,
1460
1462
  activeFilters: n,
1461
1463
  onFilterSelect: o
@@ -1464,24 +1466,24 @@ function at({ activeFilterInPopover: e, availableFilters: t, activeFilters: n, g
1464
1466
  }
1465
1467
  //#endregion
1466
1468
  //#region src/components/features/filters/partials/filter-pill.tsx
1467
- function ot({ filter: e, value: t, active: n, operator: r, operators: i, onOperatorChange: a, onValueChange: o, onClear: s, availableFilters: c, activeFilters: l, operatorChangeRef: u }) {
1468
- let d = G(!1), f = u ?? d, [p, m] = K(!1), h = G(null), g = G(null);
1469
- return /* @__PURE__ */ J(Qe, {
1469
+ function lt({ filter: e, value: t, active: n, operator: r, operators: i, onOperatorChange: a, onValueChange: o, onClear: s, availableFilters: c, activeFilters: l, operatorChangeRef: u }) {
1470
+ let d = W(!1), f = u ?? d, [p, m] = G(!1), h = W(null), g = W(null);
1471
+ return /* @__PURE__ */ K(tt, {
1470
1472
  filterKey: e.key,
1471
- children: /* @__PURE__ */ Y(F, {
1473
+ children: /* @__PURE__ */ q(I, {
1472
1474
  open: p,
1473
1475
  onOpenChange: (e) => {
1474
1476
  e && f.current || m(e);
1475
1477
  },
1476
- children: [/* @__PURE__ */ Y("div", {
1478
+ children: [/* @__PURE__ */ q("div", {
1477
1479
  className: "filter-pill--component filter-pill--anchor relative",
1478
- children: [/* @__PURE__ */ J(N, {
1479
- render: /* @__PURE__ */ J("span", {}),
1480
+ children: [/* @__PURE__ */ K(ee, {
1481
+ render: /* @__PURE__ */ K("span", {}),
1480
1482
  nativeButton: !1,
1481
1483
  tabIndex: -1,
1482
1484
  "aria-hidden": "true",
1483
1485
  className: "pointer-events-none absolute inset-0"
1484
- }), /* @__PURE__ */ J(We, {
1486
+ }), /* @__PURE__ */ K(qe, {
1485
1487
  filter: e,
1486
1488
  popoverOpen: p,
1487
1489
  triggerRef: h,
@@ -1501,7 +1503,7 @@ function ot({ filter: e, value: t, active: n, operator: r, operators: i, onOpera
1501
1503
  f.current || (g.current = e?.currentTarget ?? h.current, m(!0));
1502
1504
  }
1503
1505
  })]
1504
- }), /* @__PURE__ */ J(at, {
1506
+ }), /* @__PURE__ */ K(ct, {
1505
1507
  finalFocus: g,
1506
1508
  activeFilterInPopover: e,
1507
1509
  availableFilters: c,
@@ -1516,33 +1518,33 @@ function ot({ filter: e, value: t, active: n, operator: r, operators: i, onOpera
1516
1518
  })
1517
1519
  });
1518
1520
  }
1519
- ot.displayName = "FilterPill";
1521
+ lt.displayName = "FilterPill";
1520
1522
  //#endregion
1521
1523
  //#region src/components/features/filters/partials/filters-button.tsx
1522
- function st({ triggerRef: e, availableFilters: n, activeFilters: i, activeFilterInPopover: a, getFilterValue: o, setFilterValue: c, setActiveFilterInPopover: l }) {
1523
- let { defaultScale: u } = t(), d = O(void 0, u), [f, p] = K(!1), { strings: m } = $();
1524
- return U(() => {
1524
+ function ut({ triggerRef: t, availableFilters: n, activeFilters: a, activeFilterInPopover: o, getFilterValue: s, setFilterValue: c, setActiveFilterInPopover: l }) {
1525
+ let { defaultScale: u } = e(), d = k(void 0, u), [f, p] = G(!1), { strings: m } = Q();
1526
+ return H(() => {
1525
1527
  f || l(null);
1526
- }, [f, l]), /* @__PURE__ */ Y(F, {
1528
+ }, [f, l]), /* @__PURE__ */ q(I, {
1527
1529
  open: f,
1528
1530
  onOpenChange: p,
1529
- children: [/* @__PURE__ */ J(N, {
1531
+ children: [/* @__PURE__ */ K(ee, {
1530
1532
  asChild: !0,
1531
- children: /* @__PURE__ */ J(s, {
1532
- ref: e,
1533
+ children: /* @__PURE__ */ K(i, {
1534
+ ref: t,
1533
1535
  tone: "secondary",
1534
1536
  buttonStyle: "outline",
1535
1537
  size: d,
1536
1538
  iconOnly: !0,
1537
1539
  "aria-label": m.addFilter,
1538
- className: r("filters-button--component shrink-0", k[d], L[d]),
1539
- children: /* @__PURE__ */ J(he, { className: "size-icon-sm" })
1540
+ className: r("filters-button--component shrink-0", j[d], ne[d]),
1541
+ children: /* @__PURE__ */ K(ye, { className: "size-icon-sm" })
1540
1542
  })
1541
- }), /* @__PURE__ */ J(at, {
1542
- activeFilterInPopover: a,
1543
+ }), /* @__PURE__ */ K(ct, {
1544
+ activeFilterInPopover: o,
1543
1545
  availableFilters: n,
1544
- activeFilters: i,
1545
- getFilterValue: o,
1546
+ activeFilters: a,
1547
+ getFilterValue: s,
1546
1548
  setFilterValue: c,
1547
1549
  onFilterSelect: (e) => {
1548
1550
  l(e);
@@ -1559,8 +1561,8 @@ function st({ triggerRef: e, availableFilters: n, activeFilters: i, activeFilter
1559
1561
  }
1560
1562
  //#endregion
1561
1563
  //#region src/components/features/filters/partials/filter-tabs.tsx
1562
- function ct({ tabs: e }) {
1563
- let { activeFilters: t, filters: n, replaceFilters: i } = $(), a = W(() => t.filter((e) => n.find((t) => t.key === e.key)?.type !== Z.SEARCH), [t, n]), s = W(() => t.filter((e) => n.find((t) => t.key === e.key)?.type === Z.SEARCH), [t, n]), c = W(() => {
1564
+ function dt({ tabs: e }) {
1565
+ let { activeFilters: t, filters: n, replaceFilters: i } = Q(), a = U(() => t.filter((e) => n.find((t) => t.key === e.key)?.type !== X.SEARCH), [t, n]), o = U(() => t.filter((e) => n.find((t) => t.key === e.key)?.type === X.SEARCH), [t, n]), c = U(() => {
1564
1566
  for (let t of e) {
1565
1567
  if (t.presets.length === 0) {
1566
1568
  if (a.length === 0) return t.id;
@@ -1574,13 +1576,13 @@ function ct({ tabs: e }) {
1574
1576
  })) return t.id;
1575
1577
  }
1576
1578
  return null;
1577
- }, [e, a]), l = H((e) => {
1579
+ }, [e, a]), l = V((e) => {
1578
1580
  if (e.presets.length === 0) {
1579
- i([...s]);
1581
+ i([...o]);
1580
1582
  return;
1581
1583
  }
1582
1584
  let t = e.presets.map((e) => {
1583
- let t = n.find((t) => t.key === e.key), r = e.operator ?? t?.operator ?? (t ? je(t.type) : "equals");
1585
+ let t = n.find((t) => t.key === e.key), r = e.operator ?? t?.operator ?? (t ? Pe(t.type) : "equals");
1584
1586
  return {
1585
1587
  id: e.key,
1586
1588
  key: e.key,
@@ -1588,39 +1590,39 @@ function ct({ tabs: e }) {
1588
1590
  operator: r
1589
1591
  };
1590
1592
  });
1591
- i([...s, ...t]);
1593
+ i([...o, ...t]);
1592
1594
  }, [
1593
1595
  n,
1594
- s,
1596
+ o,
1595
1597
  i
1596
1598
  ]);
1597
- return e.length === 0 ? null : /* @__PURE__ */ J(ne, {
1599
+ return e.length === 0 ? null : /* @__PURE__ */ K(ae, {
1598
1600
  value: c,
1599
1601
  onValueChange: (t) => {
1600
1602
  let n = e.find((e) => e.id === t);
1601
1603
  n && l(n);
1602
1604
  },
1603
1605
  className: "filter-tabs--component",
1604
- children: /* @__PURE__ */ J(B, {
1606
+ children: /* @__PURE__ */ K(ie, {
1605
1607
  role: "group",
1606
1608
  "aria-orientation": void 0,
1607
1609
  activateOnFocus: !0,
1608
1610
  className: "h-auto! flex-wrap justify-start gap-space-md bg-transparent p-0",
1609
1611
  children: e.map((e) => {
1610
1612
  let t = c === e.id;
1611
- return /* @__PURE__ */ Y(z, {
1613
+ return /* @__PURE__ */ q(re, {
1612
1614
  value: e.id,
1613
1615
  role: "button",
1614
1616
  "aria-selected": void 0,
1615
1617
  "aria-controls": void 0,
1616
1618
  "aria-pressed": t,
1617
- className: r("h-action-sm flex-none gap-space-sm rounded-inner px-control-sm py-0 transition-colors after:hidden data-active:bg-secondary data-active:text-secondary-foreground data-active:hover:bg-secondary data-active:hover:text-secondary-foreground", t ? "bg-secondary text-secondary-foreground" : "text-muted-foreground hover:bg-accent hover:text-accent-foreground"),
1618
- children: [/* @__PURE__ */ J(o, {
1619
+ className: r("h-action-sm flex-none gap-space-sm rounded-inner px-control-sm py-0 transition-colors after:hidden data-active:bg-accent data-active:text-accent-foreground data-active:hover:bg-accent data-active:hover:text-accent-foreground", t ? p.togglePressed : `text-muted-foreground ${p.toggleHover}`),
1620
+ children: [/* @__PURE__ */ K(s, {
1619
1621
  tag: "span",
1620
1622
  weight: "medium",
1621
1623
  className: "text-inherit",
1622
1624
  children: e.label
1623
- }), e.count !== void 0 && /* @__PURE__ */ J(o, {
1625
+ }), e.count !== void 0 && /* @__PURE__ */ K(s, {
1624
1626
  tag: "span",
1625
1627
  size: "xs",
1626
1628
  type: "secondary",
@@ -1634,20 +1636,20 @@ function ct({ tabs: e }) {
1634
1636
  }
1635
1637
  //#endregion
1636
1638
  //#region src/components/features/filters/facets/search-facet.tsx
1637
- var lt = V.forwardRef(function(e, t) {
1638
- return /* @__PURE__ */ J(ge, {
1639
+ var ft = B.forwardRef(function(e, t) {
1640
+ return /* @__PURE__ */ K(be, {
1639
1641
  ...e,
1640
1642
  ref: t,
1641
1643
  className: r("animate-spin", e.className)
1642
1644
  });
1643
1645
  });
1644
- function ut({ filter: e, value: t, onValueChange: n, className: i }) {
1645
- let { strings: a, isNavigating: o } = $(), [s, c] = K(t[0] || ""), l = G(s);
1646
- U(() => {
1646
+ function pt({ filter: e, value: t, onValueChange: n, className: i }) {
1647
+ let { strings: a, isNavigating: o } = Q(), [s, c] = G(t[0] || ""), l = W(s);
1648
+ H(() => {
1647
1649
  l.current = s;
1648
1650
  }, [s]);
1649
- let u = G(t[0] || null), d = G(!1);
1650
- U(() => {
1651
+ let u = W(t[0] || null), d = W(!1);
1652
+ H(() => {
1651
1653
  if (d.current || o) return;
1652
1654
  let e = l.current;
1653
1655
  if (!t.length || t[0] === "") {
@@ -1656,14 +1658,14 @@ function ut({ filter: e, value: t, onValueChange: n, className: i }) {
1656
1658
  }
1657
1659
  t[0] !== void 0 && t[0] !== e && t[0] !== u.current && (c(t[0]), u.current = t[0]);
1658
1660
  }, [t, o]);
1659
- let f = ie((e) => {
1661
+ let f = se((e) => {
1660
1662
  u.current = e, d.current = !1, n([e]);
1661
1663
  }, e.delay ?? 300), p = (e) => {
1662
1664
  u.current !== e && f(e);
1663
1665
  };
1664
- return /* @__PURE__ */ J("div", {
1666
+ return /* @__PURE__ */ K("div", {
1665
1667
  className: r("search-facet--component", "search-facet relative w-full min-w-0 rounded-inner bg-background", i),
1666
- children: /* @__PURE__ */ J(A, {
1668
+ children: /* @__PURE__ */ K(M, {
1667
1669
  type: "text",
1668
1670
  "aria-label": e.label,
1669
1671
  value: s,
@@ -1682,27 +1684,27 @@ function ut({ filter: e, value: t, onValueChange: n, className: i }) {
1682
1684
  },
1683
1685
  placeholder: e.placeholder ?? (() => {
1684
1686
  let t = e.label.trim().toLowerCase();
1685
- return !t || t === "search" ? X(a.searchPlaceholder, { filterLabel: "" }).replace(/\s+([….?!])/g, "$1").replace(/\s{2,}/g, " ").trim() : X(a.searchPlaceholder, { filterLabel: t });
1687
+ return !t || t === "search" ? Y(a.searchPlaceholder, { filterLabel: "" }).replace(/\s+([….?!])/g, "$1").replace(/\s{2,}/g, " ").trim() : Y(a.searchPlaceholder, { filterLabel: t });
1686
1688
  })(),
1687
1689
  clearable: s.trim() !== "" && !o,
1688
- endIcon: o ? lt : void 0,
1690
+ endIcon: o ? ft : void 0,
1689
1691
  strings: { clear: a.clearSearch }
1690
1692
  })
1691
1693
  });
1692
1694
  }
1693
- var dt = V.memo(ut);
1694
- dt.displayName = "SearchFacet";
1695
+ var mt = B.memo(pt);
1696
+ mt.displayName = "SearchFacet";
1695
1697
  //#endregion
1696
1698
  //#region src/components/features/filters/partials/search-filters-list.tsx
1697
- function ft({ filters: e, getFilterValue: t, setFilterValue: n, className: i }) {
1698
- return /* @__PURE__ */ J(q, { children: e.map((e) => /* @__PURE__ */ Y(l, {
1699
+ function ht({ filters: e, getFilterValue: t, setFilterValue: n, className: i }) {
1700
+ return /* @__PURE__ */ K(pe, { children: e.map((e) => /* @__PURE__ */ q(l, {
1699
1701
  gap: "lg",
1700
1702
  className: r("search-filters-list--component", "w-full min-w-0 sm:w-64 sm:flex-none", e.displayConfig.className, i),
1701
- children: [/* @__PURE__ */ J(dt, {
1703
+ children: [/* @__PURE__ */ K(mt, {
1702
1704
  filter: e,
1703
1705
  value: t(e.key),
1704
1706
  onValueChange: (t) => n(e.key, t)
1705
- }), !!e.description && /* @__PURE__ */ J(o, {
1707
+ }), !!e.description && /* @__PURE__ */ K(s, {
1706
1708
  size: "xs",
1707
1709
  type: "secondary",
1708
1710
  children: e.description
@@ -1711,66 +1713,66 @@ function ft({ filters: e, getFilterValue: t, setFilterValue: n, className: i })
1711
1713
  }
1712
1714
  //#endregion
1713
1715
  //#region src/components/features/filters/filter-layout.tsx
1714
- var pt = {
1716
+ var gt = {
1715
1717
  compact: "lg",
1716
1718
  default: "xl"
1717
- }, mt = {
1719
+ }, _t = {
1718
1720
  compact: "sm",
1719
1721
  default: "md"
1720
1722
  };
1721
- function ht({ className: e, dynamicFilterOptions: t = {}, loadingFilters: n = {}, variant: i = "default", showClearFilters: a = !1, tabs: c }) {
1722
- let { getFilterValue: u, setFilterValue: d, isFilterActive: f, clearFilters: p, getFilterOperator: m, setFilterOperator: h, isNavigating: g, strings: _ } = $(), { processedFilters: v, searchFilters: y, alwaysVisibleFilters: b, activeRegularFilters: x, popoverFilters: S, hasActive: C } = Fe({ dynamicFilterOptions: t }), [w, T] = K(null), E = v.find((e) => e.key === w) ?? null, D = H((e) => {
1723
+ function vt({ className: e, dynamicFilterOptions: t = {}, loadingFilters: n = {}, variant: a = "default", showClearFilters: o = !1, tabs: c }) {
1724
+ let { getFilterValue: u, setFilterValue: d, isFilterActive: f, clearFilters: p, getFilterOperator: m, setFilterOperator: h, isNavigating: g, strings: _ } = Q(), { processedFilters: v, searchFilters: y, alwaysVisibleFilters: b, activeRegularFilters: x, popoverFilters: S, hasActive: C } = Re({ dynamicFilterOptions: t }), [w, T] = G(null), E = v.find((e) => e.key === w) ?? null, D = V((e) => {
1723
1725
  T(e?.key ?? null);
1724
1726
  }, []);
1725
- U(() => {
1727
+ H(() => {
1726
1728
  w !== null && E === null && T(null);
1727
1729
  }, [w, E]);
1728
- let O = G(null), k = G(null);
1730
+ let O = W(null), k = W(null);
1729
1731
  function A(e, t) {
1730
1732
  t.length === 0 && e.displayConfig?.display !== "always" && (k.current = e.key), d(e.key, t);
1731
1733
  }
1732
- U(() => {
1734
+ H(() => {
1733
1735
  let e = k.current;
1734
1736
  e !== null && !f(e) && (O.current?.focus(), k.current = null);
1735
1737
  }, [f]);
1736
1738
  function j(e) {
1737
- return e.operators && e.operators.length > 0 ? e.operators : Ae(e.type, _.operators);
1739
+ return e.operators && e.operators.length > 0 ? e.operators : Ne(e.type, _.operators);
1738
1740
  }
1739
1741
  function M(e, t) {
1740
1742
  h(e, t);
1741
1743
  }
1742
- return /* @__PURE__ */ Y(l, {
1743
- gap: pt[i],
1744
+ return /* @__PURE__ */ q(l, {
1745
+ gap: gt[a],
1744
1746
  className: r("filter-layout--component", e),
1745
- children: [!!c && c.length > 0 && /* @__PURE__ */ J(ct, { tabs: c }), /* @__PURE__ */ Y(l, {
1747
+ children: [!!c && c.length > 0 && /* @__PURE__ */ K(dt, { tabs: c }), /* @__PURE__ */ q(l, {
1746
1748
  direction: "horizontal",
1747
1749
  align: "center",
1748
- gap: mt[i],
1749
- children: [/* @__PURE__ */ J(Qe, {
1750
+ gap: _t[a],
1751
+ children: [/* @__PURE__ */ K(tt, {
1750
1752
  filterKey: "search-filters",
1751
- children: /* @__PURE__ */ J(ft, {
1753
+ children: /* @__PURE__ */ K(ht, {
1752
1754
  filters: y,
1753
1755
  getFilterValue: u,
1754
1756
  setFilterValue: d
1755
1757
  })
1756
- }), /* @__PURE__ */ Y("div", {
1758
+ }), /* @__PURE__ */ q("div", {
1757
1759
  className: r("contents", g && "pointer-events-none opacity-60"),
1758
1760
  children: [
1759
1761
  Object.entries(n).filter(([, e]) => e).map(([e]) => {
1760
1762
  let t = v.find((t) => t.key === e)?.label || e;
1761
- return /* @__PURE__ */ Y(l, {
1763
+ return /* @__PURE__ */ q(l, {
1762
1764
  direction: "horizontal",
1763
1765
  gap: "sm",
1764
1766
  wrap: !1,
1765
1767
  className: "rounded-radius bg-muted/50 px-control-sm py-space-xs",
1766
- children: [/* @__PURE__ */ J("div", { className: "border-muted-foreground/30 border-t-primary size-icon-sm animate-spin rounded-full border-2" }), /* @__PURE__ */ J(o, {
1768
+ children: [/* @__PURE__ */ K("div", { className: "border-muted-foreground/30 border-t-primary size-icon-sm animate-spin rounded-full border-2" }), /* @__PURE__ */ K(s, {
1767
1769
  tag: "span",
1768
1770
  type: "secondary",
1769
- children: X(_.loadingOptions, { filterLabel: t })
1771
+ children: Y(_.loadingOptions, { filterLabel: t })
1770
1772
  })]
1771
1773
  }, `loading-${e}`);
1772
1774
  }),
1773
- [...b, ...x].map((e) => /* @__PURE__ */ J(ot, {
1775
+ [...b, ...x].map((e) => /* @__PURE__ */ K(lt, {
1774
1776
  filter: e,
1775
1777
  value: u(e.key) ?? [],
1776
1778
  active: f(e.key),
@@ -1782,9 +1784,9 @@ function ht({ className: e, dynamicFilterOptions: t = {}, loadingFilters: n = {}
1782
1784
  availableFilters: S,
1783
1785
  activeFilters: [...x, ...b]
1784
1786
  }, e.key)),
1785
- S.length > 0 && /* @__PURE__ */ J(Qe, {
1787
+ S.length > 0 && /* @__PURE__ */ K(tt, {
1786
1788
  filterKey: "filters-button",
1787
- children: /* @__PURE__ */ J(st, {
1789
+ children: /* @__PURE__ */ K(ut, {
1788
1790
  triggerRef: O,
1789
1791
  availableFilters: S,
1790
1792
  activeFilters: x,
@@ -1794,7 +1796,7 @@ function ht({ className: e, dynamicFilterOptions: t = {}, loadingFilters: n = {}
1794
1796
  setActiveFilterInPopover: D
1795
1797
  })
1796
1798
  }),
1797
- !!a && C && /* @__PURE__ */ J(s, {
1799
+ !!o && C && /* @__PURE__ */ K(i, {
1798
1800
  tone: "secondary",
1799
1801
  buttonStyle: "ghost",
1800
1802
  onClick: p,
@@ -1808,8 +1810,8 @@ function ht({ className: e, dynamicFilterOptions: t = {}, loadingFilters: n = {}
1808
1810
  }
1809
1811
  //#endregion
1810
1812
  //#region src/components/features/filters/filter-query.ts
1811
- var gt = "__op", _t = ["page"], vt = new Set(Object.values(Q));
1812
- function yt(e) {
1813
+ var yt = "__op", bt = ["page"], xt = new Set(Object.values(Z));
1814
+ function $(e) {
1813
1815
  let t = {};
1814
1816
  if (!e) return t;
1815
1817
  if (e instanceof URLSearchParams) return e.forEach((e, n) => {
@@ -1821,90 +1823,90 @@ function yt(e) {
1821
1823
  }
1822
1824
  return t;
1823
1825
  }
1824
- function bt(e) {
1826
+ function St(e) {
1825
1827
  let t = {};
1826
1828
  for (let [n, r] of Object.entries(e)) r.length !== 0 && (t[n] = r.length === 1 ? r[0] : r);
1827
1829
  return t;
1828
1830
  }
1829
- function xt(e, t, n) {
1831
+ function Ct(e, t, n) {
1830
1832
  let r = e[t] ?? [];
1831
1833
  return n === "comma" ? r.flatMap((e) => e.split(",")) : r;
1832
1834
  }
1833
- function St(e, t) {
1835
+ function wt(e, t) {
1834
1836
  return t.map((e) => e.trim()).filter((e) => e.length > 0).map((t) => {
1835
1837
  if (!e.parse) return t;
1836
1838
  let n = e.parse(t);
1837
1839
  return n == null ? "" : String(n);
1838
1840
  }).filter((e) => e.length > 0);
1839
1841
  }
1840
- function Ct(e, t) {
1842
+ function Tt(e, t) {
1841
1843
  return t.map((t) => {
1842
1844
  let n = e.transform ? e.transform(t) : t, r = e.format ? e.format(n) : n;
1843
1845
  return r == null ? "" : String(r);
1844
1846
  }).filter((e) => e.length > 0);
1845
1847
  }
1846
- function wt(e) {
1847
- return e.operator ?? e.operators?.[0]?.value ?? je(e.type);
1848
+ function Et(e) {
1849
+ return e.operator ?? e.operators?.[0]?.value ?? Pe(e.type);
1848
1850
  }
1849
- function Tt(e, t, n) {
1851
+ function Dt(e, t, n) {
1850
1852
  let [r] = t[`${e.key}${n}`] ?? [];
1851
- return r && vt.has(r) ? r : wt(e);
1853
+ return r && xt.has(r) ? r : Et(e);
1852
1854
  }
1853
- function Et(e, t, n) {
1855
+ function Ot(e, t, n) {
1854
1856
  return e === "always" || e !== "never" && t !== n;
1855
1857
  }
1856
- function Dt(e) {
1857
- return e.type === Z.MULTI_SELECT || e.type === Z.TAGS || e.multiple === !0;
1858
+ function kt(e) {
1859
+ return e.type === X.MULTI_SELECT || e.type === X.TAGS || e.multiple === !0;
1858
1860
  }
1859
- function Ot(e, t, n = {}) {
1860
- let r = n.operatorSuffix ?? gt, i = n.arrayFormat ?? "repeat", a = yt(t);
1861
+ function At(e, t, n = {}) {
1862
+ let r = n.operatorSuffix ?? yt, i = n.arrayFormat ?? "repeat", a = $(t);
1861
1863
  return e.flatMap((e) => {
1862
- let t = St(e, xt(a, e.key, i));
1864
+ let t = wt(e, Ct(a, e.key, i));
1863
1865
  return t.length === 0 ? [] : [{
1864
1866
  id: e.key,
1865
1867
  key: e.key,
1866
- operator: Tt(e, a, r),
1867
- value: Dt(e) ? t : [t[0]]
1868
+ operator: Dt(e, a, r),
1869
+ value: kt(e) ? t : [t[0]]
1868
1870
  }];
1869
1871
  });
1870
1872
  }
1871
- function kt(e, t, n, r = {}) {
1872
- let i = r.operatorSuffix ?? gt, a = r.arrayFormat ?? "repeat", o = r.preserveUnrelated ?? !0, s = r.includeOperators ?? "changed", c = r.resetPageKeys ?? _t, l = o ? yt(n) : {}, u = new Map(e.map((e) => [e.key, e]));
1873
+ function jt(e, t, n, r = {}) {
1874
+ let i = r.operatorSuffix ?? yt, a = r.arrayFormat ?? "repeat", o = r.preserveUnrelated ?? !0, s = r.includeOperators ?? "changed", c = r.resetPageKeys ?? bt, l = o ? $(n) : {}, u = new Map(e.map((e) => [e.key, e]));
1873
1875
  for (let t of e) delete l[t.key], delete l[`${t.key}${i}`];
1874
1876
  for (let e of c) delete l[e];
1875
1877
  for (let e of t) {
1876
1878
  let t = u.get(e.key);
1877
1879
  if (!t) continue;
1878
- let n = Ct(t, e.value);
1880
+ let n = Tt(t, e.value);
1879
1881
  if (n.length === 0) continue;
1880
1882
  l[e.key] = a === "comma" ? [n.join(",")] : n;
1881
- let r = wt(t);
1882
- Et(s, e.operator, r) && (l[`${e.key}${i}`] = [e.operator]);
1883
+ let r = Et(t);
1884
+ Ot(s, e.operator, r) && (l[`${e.key}${i}`] = [e.operator]);
1883
1885
  }
1884
- return bt(l);
1886
+ return St(l);
1885
1887
  }
1886
- function At(e, t, n = {}) {
1887
- let r = n.preserveUnrelated ?? !0, i = n.resetPageKeys ?? _t, a = r ? yt(e) : {}, o = yt(t);
1888
+ function Mt(e, t, n = {}) {
1889
+ let r = n.preserveUnrelated ?? !0, i = n.resetPageKeys ?? bt, a = r ? $(e) : {}, o = $(t);
1888
1890
  for (let e of i) delete a[e];
1889
1891
  for (let [e, t] of Object.entries(o)) t.length === 0 ? delete a[e] : a[e] = t;
1890
- return bt(a);
1892
+ return St(a);
1891
1893
  }
1892
1894
  //#endregion
1893
1895
  //#region src/components/features/filters/facets/select-facet.tsx
1894
- function jt({ filter: e, value: n, onValueChange: i, className: a }) {
1895
- let { defaultScale: c } = t(), l = O(void 0, c), { strings: u } = $(), [d, f] = K(!1), [p, m] = K(""), h = n.length > 0, g = e.options, _ = (t) => {
1896
- e.multiple ? n.includes(t) ? i(n.filter((e) => e !== t)) : i([...n, t]) : (i([t]), e.closeOnSelect !== !1 && f(!1));
1897
- }, v = (e) => g?.find((t) => t.value === e)?.label ?? e, y = W(() => (g ?? []).map((e) => ({
1896
+ function Nt({ filter: t, value: n, onValueChange: a, className: o }) {
1897
+ let { defaultScale: c } = e(), l = k(void 0, c), { strings: u } = Q(), [d, f] = G(!1), [p, m] = G(""), h = n.length > 0, g = t.options, _ = (e) => {
1898
+ t.multiple ? n.includes(e) ? a(n.filter((t) => t !== e)) : a([...n, e]) : (a([e]), t.closeOnSelect !== !1 && f(!1));
1899
+ }, v = (e) => g?.find((t) => t.value === e)?.label ?? e, y = U(() => (g ?? []).map((e) => ({
1898
1900
  value: e.value,
1899
1901
  label: e.label,
1900
1902
  description: e.description,
1901
1903
  icon: e.icon,
1902
1904
  selected: n.includes(e.value),
1903
1905
  disabled: e.disabled
1904
- })), [g, n]), b = X(u.searchPlaceholder, { filterLabel: e.label.toLowerCase() });
1905
- return /* @__PURE__ */ J("div", {
1906
- className: r("select-facet--component", "relative", a),
1907
- children: /* @__PURE__ */ J(re, {
1906
+ })), [g, n]), b = Y(u.searchPlaceholder, { filterLabel: t.label.toLowerCase() });
1907
+ return /* @__PURE__ */ K("div", {
1908
+ className: r("select-facet--component", "relative", o),
1909
+ children: /* @__PURE__ */ K(oe, {
1908
1910
  open: d,
1909
1911
  onOpenChange: f,
1910
1912
  search: !0,
@@ -1915,30 +1917,30 @@ function jt({ filter: e, value: n, onValueChange: i, className: a }) {
1915
1917
  empty: u.noOptionsFound
1916
1918
  },
1917
1919
  contentClassName: "w-(--anchor-width) min-w-56",
1918
- trigger: /* @__PURE__ */ Y(s, {
1920
+ trigger: /* @__PURE__ */ q(i, {
1919
1921
  tone: "secondary",
1920
1922
  buttonStyle: "outline",
1921
1923
  size: l,
1922
1924
  role: "combobox",
1923
1925
  "aria-expanded": d,
1924
- className: D(l),
1925
- children: [h ? n.length === 1 ? /* @__PURE__ */ J(o, {
1926
+ className: A(l),
1927
+ children: [h ? n.length === 1 ? /* @__PURE__ */ K(s, {
1926
1928
  tag: "span",
1927
1929
  weight: "semibold",
1928
1930
  className: "truncate",
1929
1931
  children: v(n[0])
1930
- }) : /* @__PURE__ */ J(o, {
1932
+ }) : /* @__PURE__ */ K(s, {
1931
1933
  tag: "span",
1932
1934
  weight: "semibold",
1933
- children: X(u.selected, {
1935
+ children: Y(u.selected, {
1934
1936
  count: n.length,
1935
- filterLabel: (n.length > 1 ? e.pluralLabel : e.label) ?? e.label
1937
+ filterLabel: (n.length > 1 ? t.pluralLabel : t.label) ?? t.label
1936
1938
  })
1937
- }) : /* @__PURE__ */ J(o, {
1939
+ }) : /* @__PURE__ */ K(s, {
1938
1940
  tag: "span",
1939
1941
  type: "secondary",
1940
- children: e.placeholder ?? u.select
1941
- }), /* @__PURE__ */ J(me, { className: "ml-control-gap-small size-icon-sm shrink-0 opacity-50" })]
1942
+ children: t.placeholder ?? u.select
1943
+ }), /* @__PURE__ */ K(ve, { className: "ml-control-gap-small size-icon-sm shrink-0 opacity-50" })]
1942
1944
  }),
1943
1945
  items: y,
1944
1946
  onSelect: (e) => _(e.value)
@@ -1947,171 +1949,171 @@ function jt({ filter: e, value: n, onValueChange: i, className: a }) {
1947
1949
  }
1948
1950
  //#endregion
1949
1951
  //#region src/components/features/filters/facets/async-select-facet.tsx
1950
- function Mt({ filter: e, value: n, onValueChange: i, className: a }) {
1951
- let { defaultScale: c } = t(), f = O(void 0, c), { strings: p, cacheAsyncOptions: m, getAsyncOptionLabel: h, reportError: g } = $(), [_, v] = K(!1), [y, T] = K(""), k = W(() => /* @__PURE__ */ new Map(), [
1952
- e.key,
1953
- e.asyncConfig?.fetcher,
1954
- e.asyncConfig?.mapToOption
1955
- ]), { options: A, isLoading: j, isFetching: M, isError: P, refetch: I, isBelowMinQuery: L, minQueryLength: R } = Ke(e, y, _, { onError: g });
1956
- U(() => {
1957
- if (A.length !== 0) {
1958
- for (let e of A) k.set(e.value, e);
1959
- m(e.key, A);
1952
+ function Pt({ filter: t, value: n, onValueChange: a, className: o }) {
1953
+ let { defaultScale: c } = e(), u = k(void 0, c), { strings: p, cacheAsyncOptions: m, getAsyncOptionLabel: h, reportError: g } = Q(), [_, v] = G(!1), [y, b] = G(""), x = U(() => /* @__PURE__ */ new Map(), [
1954
+ t.key,
1955
+ t.asyncConfig?.fetcher,
1956
+ t.asyncConfig?.mapToOption
1957
+ ]), { options: D, isLoading: j, isFetching: M, isError: N, refetch: P, isBelowMinQuery: F, minQueryLength: L } = Ye(t, y, _, { onError: g });
1958
+ H(() => {
1959
+ if (D.length !== 0) {
1960
+ for (let e of D) x.set(e.value, e);
1961
+ m(t.key, D);
1960
1962
  }
1961
1963
  }, [
1962
1964
  m,
1963
- e.key,
1964
- k,
1965
- A
1965
+ t.key,
1966
+ x,
1967
+ D
1966
1968
  ]);
1967
- let te = e.multiple !== !1, z = e.maxSelected, B = W(() => e.options ?? [], [e.options]), ne = W(() => {
1968
- let t = new Set(n), r = new Set([...B, ...A].map((e) => e.value)), i = [];
1969
- for (let t of n) if (!r.has(t)) {
1970
- let n = k.get(t);
1969
+ let ne = t.multiple !== !1, R = t.maxSelected, z = U(() => t.options ?? [], [t.options]), re = U(() => {
1970
+ let e = new Set(n), r = new Set([...z, ...D].map((e) => e.value)), i = [];
1971
+ for (let e of n) if (!r.has(e)) {
1972
+ let n = x.get(e);
1971
1973
  if (n) i.push(n);
1972
1974
  else {
1973
- let n = B.find((e) => e.value === t);
1975
+ let n = z.find((t) => t.value === e);
1974
1976
  if (n) {
1975
1977
  i.push(n);
1976
1978
  continue;
1977
1979
  }
1978
- let r = h(e.key, t);
1980
+ let r = h(t.key, e);
1979
1981
  r && i.push({
1980
- value: t,
1982
+ value: e,
1981
1983
  label: r,
1982
- icon: e.icon
1984
+ icon: t.icon
1983
1985
  });
1984
1986
  }
1985
1987
  }
1986
1988
  return [
1987
1989
  ...i,
1988
- ...B,
1989
- ...A
1990
- ].sort((e, n) => +!t.has(e.value) - !t.has(n.value));
1990
+ ...z,
1991
+ ...D
1992
+ ].sort((t, n) => +!e.has(t.value) - !e.has(n.value));
1991
1993
  }, [
1992
- B,
1993
- A,
1994
+ z,
1995
+ D,
1994
1996
  n,
1995
- e.key,
1996
- e.icon,
1997
- k,
1997
+ t.key,
1998
+ t.icon,
1999
+ x,
1998
2000
  h
1999
- ]), re = (t) => {
2000
- if (te) {
2001
- if (n.includes(t)) i(n.filter((e) => e !== t));
2001
+ ]), ie = (e) => {
2002
+ if (ne) {
2003
+ if (n.includes(e)) a(n.filter((t) => t !== e));
2002
2004
  else {
2003
- if (z && n.length >= z) return;
2004
- i([...n, t]);
2005
+ if (R && n.length >= R) return;
2006
+ a([...n, e]);
2005
2007
  }
2006
- } else i([t]), e.closeOnSelect !== !1 && v(!1);
2007
- }, ie = (t) => {
2008
- let n = A.find((e) => e.value === t);
2008
+ } else a([e]), t.closeOnSelect !== !1 && v(!1);
2009
+ }, ae = (e) => {
2010
+ let n = D.find((t) => t.value === e);
2009
2011
  if (n) return n.label;
2010
- let r = B.find((e) => e.value === t);
2012
+ let r = z.find((t) => t.value === e);
2011
2013
  if (r) return r.label;
2012
- let i = k.get(t);
2013
- return i ? i.label : h(e.key, t) ?? t;
2014
- }, ae = n.length > 0, V = W(() => j || M ? /* @__PURE__ */ J(u, {
2014
+ let i = x.get(e);
2015
+ return i ? i.label : h(t.key, e) ?? e;
2016
+ }, oe = n.length > 0, se = U(() => j || M ? /* @__PURE__ */ K(d, {
2015
2017
  className: "async-select-facet--component",
2016
2018
  label: p.searching
2017
- }) : P ? /* @__PURE__ */ J(d, {
2019
+ }) : N ? /* @__PURE__ */ K(f, {
2018
2020
  variant: "inline",
2019
2021
  title: p.fetchError,
2020
- action: /* @__PURE__ */ J(s, {
2022
+ action: /* @__PURE__ */ K(i, {
2021
2023
  tone: "secondary",
2022
2024
  buttonStyle: "outline",
2023
2025
  size: "sm",
2024
2026
  onClick: (e) => {
2025
- e.stopPropagation(), I();
2027
+ e.stopPropagation(), P();
2026
2028
  },
2027
2029
  children: p.retryFetch
2028
2030
  })
2029
- }) : L ? /* @__PURE__ */ J("div", {
2031
+ }) : F ? /* @__PURE__ */ K("div", {
2030
2032
  className: "text-muted-foreground flex items-center justify-center py-space-xl",
2031
- children: /* @__PURE__ */ J(o, {
2033
+ children: /* @__PURE__ */ K(s, {
2032
2034
  tag: "span",
2033
2035
  size: "xs",
2034
2036
  type: "secondary",
2035
- children: X(p.minQueryHint, { min: R })
2037
+ children: Y(p.minQueryHint, { min: L })
2036
2038
  })
2037
- }) : /* @__PURE__ */ J(o, {
2039
+ }) : /* @__PURE__ */ K(s, {
2038
2040
  tag: "span",
2039
2041
  type: "secondary",
2040
2042
  children: p.noOptionsFound
2041
2043
  }), [
2042
2044
  j,
2043
2045
  M,
2044
- P,
2046
+ N,
2047
+ F,
2045
2048
  L,
2046
- R,
2047
2049
  p,
2048
- I
2050
+ P
2049
2051
  ]);
2050
- return /* @__PURE__ */ J("div", {
2051
- className: r("async-select-facet--component relative", a),
2052
- children: /* @__PURE__ */ Y(F, {
2052
+ return /* @__PURE__ */ K("div", {
2053
+ className: r("async-select-facet--component relative", o),
2054
+ children: /* @__PURE__ */ q(I, {
2053
2055
  open: _,
2054
2056
  onOpenChange: (e) => {
2055
- v(e), e || T("");
2057
+ v(e), e || b("");
2056
2058
  },
2057
- children: [/* @__PURE__ */ J(N, { render: /* @__PURE__ */ Y(s, {
2059
+ children: [/* @__PURE__ */ K(ee, { render: /* @__PURE__ */ q(i, {
2058
2060
  tone: "secondary",
2059
2061
  buttonStyle: "outline",
2060
- size: f,
2062
+ size: u,
2061
2063
  role: "combobox",
2062
2064
  "aria-expanded": _,
2063
- className: D(f),
2064
- children: [ae ? n.length === 1 ? /* @__PURE__ */ J(o, {
2065
+ className: A(u),
2066
+ children: [oe ? n.length === 1 ? /* @__PURE__ */ K(s, {
2065
2067
  tag: "span",
2066
2068
  weight: "semibold",
2067
2069
  className: "truncate",
2068
- children: ie(n[0])
2069
- }) : /* @__PURE__ */ J(o, {
2070
+ children: ae(n[0])
2071
+ }) : /* @__PURE__ */ K(s, {
2070
2072
  tag: "span",
2071
2073
  weight: "semibold",
2072
- children: X(p.selected, {
2074
+ children: Y(p.selected, {
2073
2075
  count: n.length,
2074
- filterLabel: (n.length > 1 ? e.pluralLabel : e.label) ?? e.label
2076
+ filterLabel: (n.length > 1 ? t.pluralLabel : t.label) ?? t.label
2075
2077
  })
2076
- }) : /* @__PURE__ */ J(o, {
2078
+ }) : /* @__PURE__ */ K(s, {
2077
2079
  tag: "span",
2078
2080
  type: "secondary",
2079
- children: e.placeholder ?? p.select
2080
- }), /* @__PURE__ */ J(me, { className: "ml-control-gap-small size-icon-sm shrink-0 opacity-50" })]
2081
- }) }), /* @__PURE__ */ J(ee, {
2081
+ children: t.placeholder ?? p.select
2082
+ }), /* @__PURE__ */ K(ve, { className: "ml-control-gap-small size-icon-sm shrink-0 opacity-50" })]
2083
+ }) }), /* @__PURE__ */ K(te, {
2082
2084
  type: "menu",
2083
2085
  inset: "flush",
2084
2086
  className: "w-full min-w-70 gap-0",
2085
- children: /* @__PURE__ */ Y(E, {
2087
+ children: /* @__PURE__ */ q(O, {
2086
2088
  shouldFilter: !1,
2087
2089
  inset: "flush",
2088
2090
  className: "rounded-none",
2089
- children: [/* @__PURE__ */ J(x, {
2090
- placeholder: X(p.searchPlaceholder, { filterLabel: e.label }),
2091
+ children: [/* @__PURE__ */ K(C, {
2092
+ placeholder: Y(p.searchPlaceholder, { filterLabel: t.label }),
2091
2093
  value: y,
2092
- onValueChange: T
2093
- }), /* @__PURE__ */ J(C, { children: ne.length === 0 ? /* @__PURE__ */ J(S, { children: V }) : /* @__PURE__ */ Y(w, { children: [!(!M || j) && /* @__PURE__ */ Y(l, {
2094
+ onValueChange: b
2095
+ }), /* @__PURE__ */ K(T, { children: re.length === 0 ? /* @__PURE__ */ K(w, { children: se }) : /* @__PURE__ */ q(E, { children: [!(!M || j) && /* @__PURE__ */ q(l, {
2094
2096
  direction: "horizontal",
2095
2097
  gap: "sm",
2096
2098
  wrap: !1,
2097
2099
  className: "px-control-sm py-space-xs",
2098
- children: [/* @__PURE__ */ J(ge, { className: "text-muted-foreground size-icon-sm animate-spin" }), /* @__PURE__ */ J(o, {
2100
+ children: [/* @__PURE__ */ K(be, { className: "text-muted-foreground size-icon-sm animate-spin" }), /* @__PURE__ */ K(s, {
2099
2101
  tag: "span",
2100
2102
  size: "xs",
2101
2103
  type: "secondary",
2102
2104
  children: p.searching
2103
2105
  })]
2104
- }), ne.map((e) => /* @__PURE__ */ Y(b, {
2106
+ }), re.map((e) => /* @__PURE__ */ q(S, {
2105
2107
  value: e.value,
2106
- onSelect: () => re(e.value),
2107
- disabled: e.disabled || !!z && n.length >= z && !n.includes(e.value),
2108
+ onSelect: () => ie(e.value),
2109
+ disabled: e.disabled || !!R && n.length >= R && !n.includes(e.value),
2108
2110
  children: [
2109
- /* @__PURE__ */ J(de, { className: r("mr-control-gap size-icon-sm", n.includes(e.value) ? "opacity-100" : "opacity-0") }),
2110
- !!e.icon && /* @__PURE__ */ J("span", {
2111
+ /* @__PURE__ */ K(he, { className: r("mr-control-gap size-icon-sm", n.includes(e.value) ? "opacity-100" : "opacity-0") }),
2112
+ !!e.icon && /* @__PURE__ */ K("span", {
2111
2113
  className: "mr-1.5",
2112
2114
  children: e.icon
2113
2115
  }),
2114
- /* @__PURE__ */ J(o, {
2116
+ /* @__PURE__ */ K(s, {
2115
2117
  tag: "span",
2116
2118
  children: e.label
2117
2119
  })
@@ -2124,32 +2126,32 @@ function Mt({ filter: e, value: n, onValueChange: i, className: a }) {
2124
2126
  }
2125
2127
  //#endregion
2126
2128
  //#region src/components/features/filters/facets/range-facet.tsx
2127
- function Nt({ filter: e, value: t, onValueChange: n, className: i }) {
2128
- let { strings: o } = $(), [s, u] = K(t.min?.toString() ?? ""), [d, f] = K(t.max?.toString() ?? ""), p = le(), m = ie((e) => {
2129
+ function Ft({ filter: e, value: t, onValueChange: n, className: i }) {
2130
+ let { strings: a } = Q(), [s, u] = G(t.min?.toString() ?? ""), [d, f] = G(t.max?.toString() ?? ""), p = fe(), m = se((e) => {
2129
2131
  (e.min !== t.min || e.max !== t.max) && n(e);
2130
2132
  }, e.delay ?? 300);
2131
- return U(() => (m({
2133
+ return H(() => (m({
2132
2134
  min: s ? Number(s) : void 0,
2133
2135
  max: d ? Number(d) : void 0
2134
2136
  }), m.cancel), [
2135
2137
  s,
2136
2138
  d,
2137
2139
  m
2138
- ]), /* @__PURE__ */ J(l, {
2140
+ ]), /* @__PURE__ */ K(l, {
2139
2141
  gap: "md",
2140
2142
  className: r("range-facet--component", i),
2141
- children: /* @__PURE__ */ Y(c, {
2143
+ children: /* @__PURE__ */ q(c, {
2142
2144
  columns: {
2143
2145
  base: 1,
2144
2146
  sm: 2
2145
2147
  },
2146
2148
  gap: "md",
2147
- children: [/* @__PURE__ */ Y(l, {
2149
+ children: [/* @__PURE__ */ q(l, {
2148
2150
  gap: "xs",
2149
- children: [/* @__PURE__ */ J(a, {
2151
+ children: [/* @__PURE__ */ K(o, {
2150
2152
  htmlFor: `${p}-min`,
2151
- children: o.min
2152
- }), /* @__PURE__ */ J(A, {
2153
+ children: a.min
2154
+ }), /* @__PURE__ */ K(M, {
2153
2155
  id: `${p}-min`,
2154
2156
  type: "text",
2155
2157
  value: s,
@@ -2157,15 +2159,15 @@ function Nt({ filter: e, value: t, onValueChange: n, className: i }) {
2157
2159
  let t = e.target.value;
2158
2160
  (t === "" || /^\d*\.?\d*$/.test(t)) && u(t);
2159
2161
  },
2160
- placeholder: o.min,
2162
+ placeholder: a.min,
2161
2163
  className: "w-full"
2162
2164
  })]
2163
- }), /* @__PURE__ */ Y(l, {
2165
+ }), /* @__PURE__ */ q(l, {
2164
2166
  gap: "xs",
2165
- children: [/* @__PURE__ */ J(a, {
2167
+ children: [/* @__PURE__ */ K(o, {
2166
2168
  htmlFor: `${p}-max`,
2167
- children: o.max
2168
- }), /* @__PURE__ */ J(A, {
2169
+ children: a.max
2170
+ }), /* @__PURE__ */ K(M, {
2169
2171
  id: `${p}-max`,
2170
2172
  type: "text",
2171
2173
  value: d,
@@ -2173,7 +2175,7 @@ function Nt({ filter: e, value: t, onValueChange: n, className: i }) {
2173
2175
  let t = e.target.value;
2174
2176
  (t === "" || /^\d*\.?\d*$/.test(t)) && f(t);
2175
2177
  },
2176
- placeholder: o.max,
2178
+ placeholder: a.max,
2177
2179
  className: "w-full"
2178
2180
  })]
2179
2181
  })]
@@ -2182,17 +2184,17 @@ function Nt({ filter: e, value: t, onValueChange: n, className: i }) {
2182
2184
  }
2183
2185
  //#endregion
2184
2186
  //#region src/components/features/filters/validators.ts
2185
- function Pt(e) {
2187
+ function It(e) {
2186
2188
  return (t) => {
2187
2189
  if (t == null || typeof t == "string" && t.length === 0) return !0;
2188
2190
  let n = e.safeParse(t);
2189
2191
  return n.success ? !0 : n.error?.issues?.[0]?.message ?? n.error?.message ?? !1;
2190
2192
  };
2191
2193
  }
2192
- function Ft(e, t) {
2194
+ function Lt(e, t) {
2193
2195
  return (n) => e(n) ? !0 : t;
2194
2196
  }
2195
2197
  //#endregion
2196
- export { Ae as A, Fe as C, Oe as D, ke as E, we as F, Se as I, Ce as L, Te as M, Q as N, je as O, Z as P, X as R, Ie as S, $ as T, Qe as _, jt as a, We as b, kt as c, dt as d, ct as f, rt as g, at as h, Mt as i, Ee as j, De as k, ht as l, ot as m, Pt as n, At as o, st as p, Nt as r, Ot as s, Ft as t, ft as u, Ye as v, Pe as w, Le as x, Ke as y };
2198
+ export { Ne as A, Re as C, je as D, Me as E, De as F, Te as I, Ee as L, Oe as M, Z as N, Pe as O, X as P, Y as R, ze as S, Q as T, tt as _, Nt as a, qe as b, jt as c, mt as d, dt as f, ot as g, ct as h, Pt as i, ke as j, Ae as k, vt as l, lt as m, It as n, Mt as o, ut as p, Ft as r, At as s, Lt as t, ht as u, Qe as v, Le as w, Be as x, Ye as y };
2197
2199
 
2198
- //# sourceMappingURL=filters-Da-gNPsE.js.map
2200
+ //# sourceMappingURL=filters-BkHH53uv.js.map