@adyen/bento-vue3 1.90.0 → 1.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +728 -597
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/assets/accordion-item.css +1 -1
  7. package/dist/assets/action-bar.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button-actions.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/checkbox-group.css +1 -1
  12. package/dist/assets/checkbox.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/draggable-handle.css +1 -1
  18. package/dist/assets/dropdown-tag.css +1 -1
  19. package/dist/assets/dropdown.css +1 -1
  20. package/dist/assets/error-message.css +1 -1
  21. package/dist/assets/field-label.css +1 -0
  22. package/dist/assets/file-uploader.css +1 -1
  23. package/dist/assets/filter-bar.css +1 -1
  24. package/dist/assets/form-layout-title.css +1 -1
  25. package/dist/assets/input-field-password.css +1 -1
  26. package/dist/assets/input-field-phone-number.css +1 -1
  27. package/dist/assets/input-field.css +1 -1
  28. package/dist/assets/input-time.css +1 -1
  29. package/dist/assets/inspector.css +1 -1
  30. package/dist/assets/modal-fullscreen.css +1 -1
  31. package/dist/assets/secondary-nav.css +1 -1
  32. package/dist/assets/sidepanel.css +1 -1
  33. package/dist/assets/textarea.css +1 -1
  34. package/dist/assets/toggle.css +1 -1
  35. package/dist/assets/use-cached-selected-values.css +1 -1
  36. package/dist/button.js +1 -1
  37. package/dist/card.js +1 -1
  38. package/dist/checkbox.js +2 -2
  39. package/dist/chunks/{action-bar.Pe_hvtja.js → action-bar.BxyRAZn1.js} +3 -3
  40. package/dist/chunks/{action-bar.Pe_hvtja.js.map → action-bar.BxyRAZn1.js.map} +1 -1
  41. package/dist/chunks/{ai-tag.BSlc78DU.js → ai-tag.CpeZm2Yf.js} +2 -2
  42. package/dist/chunks/{ai-tag.BSlc78DU.js.map → ai-tag.CpeZm2Yf.js.map} +1 -1
  43. package/dist/chunks/{alert.CFWN2E0b.js → alert.RD0qOLhx.js} +91 -69
  44. package/dist/chunks/alert.RD0qOLhx.js.map +1 -0
  45. package/dist/chunks/{base-modal.BjjDrx0z.js → base-modal.C8Rsc2oO.js} +4 -4
  46. package/dist/chunks/base-modal.C8Rsc2oO.js.map +1 -0
  47. package/dist/chunks/{button-actions-with-menu.DvkS16ur.js → button-actions-with-menu.KaWdHibo.js} +2 -2
  48. package/dist/chunks/{button-actions-with-menu.DvkS16ur.js.map → button-actions-with-menu.KaWdHibo.js.map} +1 -1
  49. package/dist/chunks/{button-actions.Bh_PZ_fV.js → button-actions.7Oi2Ra4p.js} +88 -94
  50. package/dist/chunks/button-actions.7Oi2Ra4p.js.map +1 -0
  51. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  52. package/dist/chunks/button.DWF7FSIw.js.map +1 -1
  53. package/dist/chunks/{calendar.CH-1Vgeb.js → calendar.DfMwuOIR.js} +503 -425
  54. package/dist/chunks/calendar.DfMwuOIR.js.map +1 -0
  55. package/dist/chunks/{card.BzCGCCzH.js → card.7q8tTfjG.js} +2 -2
  56. package/dist/chunks/card.7q8tTfjG.js.map +1 -0
  57. package/dist/chunks/{checkbox-group.D_fN6Glu.js → checkbox-group.DawPC5Go.js} +6 -6
  58. package/dist/chunks/checkbox-group.DawPC5Go.js.map +1 -0
  59. package/dist/chunks/{checkbox.BlAhQl9N.js → checkbox.CDjMTuJk.js} +4 -6
  60. package/dist/chunks/checkbox.CDjMTuJk.js.map +1 -0
  61. package/dist/chunks/{click-outside.BPylIosK.js → click-outside.B0whuTUU.js} +2 -2
  62. package/dist/chunks/{click-outside.BPylIosK.js.map → click-outside.B0whuTUU.js.map} +1 -1
  63. package/dist/chunks/{code-snippet.BePxxR3q.js → code-snippet.Dtb7CDv9.js} +3 -3
  64. package/dist/chunks/code-snippet.Dtb7CDv9.js.map +1 -0
  65. package/dist/chunks/constructNow.DyOJDyZZ.js +8 -0
  66. package/dist/chunks/{constructNow.D9uRk678.js.map → constructNow.DyOJDyZZ.js.map} +1 -1
  67. package/dist/chunks/{controls-group.Cxk-0fCy.js → controls-group.DqRpF9bh.js} +2 -2
  68. package/dist/chunks/{controls-group.Cxk-0fCy.js.map → controls-group.DqRpF9bh.js.map} +1 -1
  69. package/dist/chunks/country.types.6a7xxZIR.js.map +1 -1
  70. package/dist/chunks/{dashboard-section.CiNDItU2.js → dashboard-section.kwKlujP-.js} +2 -2
  71. package/dist/chunks/{dashboard-section.CiNDItU2.js.map → dashboard-section.kwKlujP-.js.map} +1 -1
  72. package/dist/chunks/{dashed-underline.CwdpUz76.js → dashed-underline.ADDEdamG.js} +2 -2
  73. package/dist/chunks/{dashed-underline.CwdpUz76.js.map → dashed-underline.ADDEdamG.js.map} +1 -1
  74. package/dist/chunks/{data-grid-template.nXn1dLCw.js → data-grid-template.C69yN3ZR.js} +2 -2
  75. package/dist/chunks/{data-grid-template.nXn1dLCw.js.map → data-grid-template.C69yN3ZR.js.map} +1 -1
  76. package/dist/chunks/{data-grid.CXWaoqzi.js → data-grid._kCZlpR4.js} +745 -741
  77. package/dist/chunks/data-grid._kCZlpR4.js.map +1 -0
  78. package/dist/chunks/date-picker.D08qIp2A.js +269 -0
  79. package/dist/chunks/date-picker.D08qIp2A.js.map +1 -0
  80. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  81. package/dist/chunks/date-range-picker.BXzTT4AF.js +1038 -0
  82. package/dist/chunks/date-range-picker.BXzTT4AF.js.map +1 -0
  83. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  84. package/dist/chunks/{de.DXrHnkLX.js → de.ctR_lBqr.js} +2 -2
  85. package/dist/chunks/{de.DXrHnkLX.js.map → de.ctR_lBqr.js.map} +1 -1
  86. package/dist/chunks/{differenceInMonths.s_znQQpw.js → differenceInMonths.yz4Dfe-b.js} +13 -12
  87. package/dist/chunks/{differenceInMonths.s_znQQpw.js.map → differenceInMonths.yz4Dfe-b.js.map} +1 -1
  88. package/dist/chunks/{directive.Dpivxq_t.js → directive.C8kY-ZW-.js} +2 -2
  89. package/dist/chunks/{directive.Dpivxq_t.js.map → directive.C8kY-ZW-.js.map} +1 -1
  90. package/dist/{draggable-handle.js → chunks/draggable-handle.BWHOlabB.js} +56 -47
  91. package/dist/chunks/draggable-handle.BWHOlabB.js.map +1 -0
  92. package/dist/chunks/{dropdown-tag.B7OA_Yv9.js → dropdown-tag.Sk2n9gbl.js} +6 -6
  93. package/dist/chunks/dropdown-tag.Sk2n9gbl.js.map +1 -0
  94. package/dist/chunks/dropdown.CuIBYLdy.js +1218 -0
  95. package/dist/chunks/dropdown.CuIBYLdy.js.map +1 -0
  96. package/dist/chunks/{en-GB.CBpvhDYV.js → en-GB.BsQNm5GT.js} +2 -2
  97. package/dist/chunks/{en-GB.CBpvhDYV.js.map → en-GB.BsQNm5GT.js.map} +1 -1
  98. package/dist/chunks/{en-US.CCazFVNP.js → en-US.BR6y7foR.js} +5 -5
  99. package/dist/chunks/{en-US.CCazFVNP.js.map → en-US.BR6y7foR.js.map} +1 -1
  100. package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
  101. package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
  102. package/dist/chunks/{es.CoF2PB8b.js → es.DxqH-QhP.js} +2 -2
  103. package/dist/chunks/{es.CoF2PB8b.js.map → es.DxqH-QhP.js.map} +1 -1
  104. package/dist/chunks/field-label.DZYFjFgr.js +111 -0
  105. package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
  106. package/dist/chunks/{file-uploader.BUvDU_cn.js → file-uploader.B5_l2uQO.js} +5 -5
  107. package/dist/chunks/{file-uploader.BUvDU_cn.js.map → file-uploader.B5_l2uQO.js.map} +1 -1
  108. package/dist/chunks/{filter-bar.fowl40RS.js → filter-bar.gwDFNkp5.js} +1472 -1454
  109. package/dist/chunks/filter-bar.gwDFNkp5.js.map +1 -0
  110. package/dist/chunks/{footer-actions.uoNbOGAQ.js → footer-actions.4Qj_I3cd.js} +2 -2
  111. package/dist/chunks/{footer-actions.uoNbOGAQ.js.map → footer-actions.4Qj_I3cd.js.map} +1 -1
  112. package/dist/chunks/{form-layout-title.Cr3wdpK_.js → form-layout-title.B712PesH.js} +79 -65
  113. package/dist/chunks/form-layout-title.B712PesH.js.map +1 -0
  114. package/dist/chunks/{fr.CJXL-Ief.js → fr.DJtn8ron.js} +2 -2
  115. package/dist/chunks/{fr.CJXL-Ief.js.map → fr.DJtn8ron.js.map} +1 -1
  116. package/dist/chunks/{header-meta.CmH6SnjE.js → header-meta.BJjFOcxY.js} +14 -14
  117. package/dist/chunks/{header-meta.CmH6SnjE.js.map → header-meta.BJjFOcxY.js.map} +1 -1
  118. package/dist/chunks/{header-with-views.B2pPBcTf.js → header-with-views.CMO5q6g5.js} +10 -10
  119. package/dist/chunks/{header-with-views.B2pPBcTf.js.map → header-with-views.CMO5q6g5.js.map} +1 -1
  120. package/dist/chunks/{header.BVM8Usdi.js → header.5RQulwlL.js} +3 -3
  121. package/dist/chunks/header.5RQulwlL.js.map +1 -0
  122. package/dist/chunks/{input-field-password.CHb2Ros_.js → input-field-password.DWR0liBW.js} +5 -5
  123. package/dist/chunks/input-field-password.DWR0liBW.js.map +1 -0
  124. package/dist/chunks/{input-field-phone-number.DM2rmZkQ.js → input-field-phone-number.ByjukCrO.js} +4 -4
  125. package/dist/chunks/{input-field-phone-number.DM2rmZkQ.js.map → input-field-phone-number.ByjukCrO.js.map} +1 -1
  126. package/dist/chunks/{input-field.DnYjM6yy.js → input-field.FkzBZDWS.js} +150 -135
  127. package/dist/chunks/input-field.FkzBZDWS.js.map +1 -0
  128. package/dist/chunks/input-time.DlvANG4O.js +122 -0
  129. package/dist/chunks/input-time.DlvANG4O.js.map +1 -0
  130. package/dist/chunks/isSameWeek.CieN9XgL.js +14 -0
  131. package/dist/chunks/{isSameWeek.Dj6luS8h.js.map → isSameWeek.CieN9XgL.js.map} +1 -1
  132. package/dist/chunks/{it.20Y7h-bF.js → it.keS7oN5l.js} +3 -3
  133. package/dist/chunks/{it.20Y7h-bF.js.map → it.keS7oN5l.js.map} +1 -1
  134. package/dist/chunks/{ja.DXlq0H98.js → ja.cLwacUE6.js} +2 -2
  135. package/dist/chunks/{ja.DXlq0H98.js.map → ja.cLwacUE6.js.map} +1 -1
  136. package/dist/chunks/link.D6D6YGsN.js.map +1 -1
  137. package/dist/chunks/{modal-fullscreen.9CSTqFQc.js → modal-fullscreen.CepaWyoi.js} +2 -2
  138. package/dist/chunks/{modal-fullscreen.9CSTqFQc.js.map → modal-fullscreen.CepaWyoi.js.map} +1 -1
  139. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js} +49 -47
  140. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js.map} +1 -1
  141. package/dist/chunks/on-click-outside.BgIzQ2G1.js +108 -0
  142. package/dist/chunks/on-click-outside.BgIzQ2G1.js.map +1 -0
  143. package/dist/chunks/{pagination.DL-h8OLF.js → pagination.Ch_Occwt.js} +100 -100
  144. package/dist/chunks/{pagination.DL-h8OLF.js.map → pagination.Ch_Occwt.js.map} +1 -1
  145. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  146. package/dist/chunks/popover.types.D8tHtFl3.js.map +1 -1
  147. package/dist/chunks/popper-container.DMN8n5iC.js.map +1 -1
  148. package/dist/chunks/promo-banner.-H4r_cwj.js.map +1 -1
  149. package/dist/chunks/{pt-BR.DmhmCzxE.js → pt-BR.ChPOra5s.js} +2 -2
  150. package/dist/chunks/{pt-BR.DmhmCzxE.js.map → pt-BR.ChPOra5s.js.map} +1 -1
  151. package/dist/chunks/{radio-group.DzhQgXv9.js → radio-group.CfMr1fmW.js} +3 -3
  152. package/dist/chunks/radio-group.CfMr1fmW.js.map +1 -0
  153. package/dist/chunks/{rich-text-editor.Ij2t4pyI.js → rich-text-editor.mxbLaG6q.js} +7 -6
  154. package/dist/chunks/{rich-text-editor.Ij2t4pyI.js.map → rich-text-editor.mxbLaG6q.js.map} +1 -1
  155. package/dist/chunks/{search-bar.DfNwnjes.js → search-bar.JDkxJGjF.js} +4 -4
  156. package/dist/chunks/{search-bar.DfNwnjes.js.map → search-bar.JDkxJGjF.js.map} +1 -1
  157. package/dist/chunks/{secondary-nav.CvipTDRh.js → secondary-nav.CROQNbYk.js} +2 -2
  158. package/dist/chunks/{secondary-nav.CvipTDRh.js.map → secondary-nav.CROQNbYk.js.map} +1 -1
  159. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  160. package/dist/chunks/{selection-card-group.CcOWQAUC.js → selection-card-group.DJ6FFvsA.js} +3 -3
  161. package/dist/chunks/{selection-card-group.CcOWQAUC.js.map → selection-card-group.DJ6FFvsA.js.map} +1 -1
  162. package/dist/chunks/{sidepanel.BObSv8UU.js → sidepanel.S037xghX.js} +4 -4
  163. package/dist/chunks/{sidepanel.BObSv8UU.js.map → sidepanel.S037xghX.js.map} +1 -1
  164. package/dist/chunks/{startOfWeek.Cvmo-f5J.js → startOfWeek.muMEhS7U.js} +2 -2
  165. package/dist/chunks/{startOfWeek.Cvmo-f5J.js.map → startOfWeek.muMEhS7U.js.map} +1 -1
  166. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
  167. package/dist/chunks/{summary-grid.types.DKPhtHw3.js → summary-grid.types.D1JQ_jtv.js} +2 -2
  168. package/dist/chunks/{summary-grid.types.DKPhtHw3.js.map → summary-grid.types.D1JQ_jtv.js.map} +1 -1
  169. package/dist/chunks/tag.YN2r-Pp3.js.map +1 -1
  170. package/dist/chunks/{textarea.C-sBemuo.js → textarea.-6FHesSp.js} +19 -18
  171. package/dist/chunks/textarea.-6FHesSp.js.map +1 -0
  172. package/dist/chunks/{timeline-item.CHk8wXeT.js → timeline-item.BJaFr2_Y.js} +5 -5
  173. package/dist/chunks/timeline-item.BJaFr2_Y.js.map +1 -0
  174. package/dist/chunks/{toggle.BQoprdX-.js → toggle.BdcgY15I.js} +3 -5
  175. package/dist/chunks/toggle.BdcgY15I.js.map +1 -0
  176. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -1
  177. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js} +2 -2
  178. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js.map} +1 -1
  179. package/dist/chunks/typography.B3J6_tYk.js.map +1 -1
  180. package/dist/chunks/use-cached-selected-values.DUWGSMvO.js +1740 -0
  181. package/dist/chunks/use-cached-selected-values.DUWGSMvO.js.map +1 -0
  182. package/dist/chunks/{use-date-input-formatter.BiIraXZZ.js → use-date-input-formatter.BH4hdEJW.js} +4 -4
  183. package/dist/chunks/{use-date-input-formatter.BiIraXZZ.js.map → use-date-input-formatter.BH4hdEJW.js.map} +1 -1
  184. package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
  185. package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
  186. package/dist/chunks/{zh-CN.Ce34mXsX.js → zh-CN.ZG6obniO.js} +3 -3
  187. package/dist/chunks/{zh-CN.Ce34mXsX.js.map → zh-CN.ZG6obniO.js.map} +1 -1
  188. package/dist/click-outside.js +1 -1
  189. package/dist/code-snippet.js +1 -1
  190. package/dist/dashboard-template.js +1 -1
  191. package/dist/dashed-underline.js +1 -1
  192. package/dist/data-grid-template.js +1 -1
  193. package/dist/data-grid.js +1 -1
  194. package/dist/date-picker.js +2 -2
  195. package/dist/date-range-picker.js +2 -2
  196. package/dist/draggable.js +1383 -0
  197. package/dist/draggable.js.map +1 -0
  198. package/dist/dropdown.js +10 -11
  199. package/dist/dropdown.js.map +1 -1
  200. package/dist/file-uploader.js +1 -1
  201. package/dist/filter-bar.js +1 -1
  202. package/dist/form-layout.js +1 -1
  203. package/dist/header-with-views.js +1 -1
  204. package/dist/header.js +1 -1
  205. package/dist/index.js +278 -275
  206. package/dist/index.js.map +1 -1
  207. package/dist/input-field-password.js +1 -1
  208. package/dist/input-field-phone-number.js +1 -1
  209. package/dist/input-field.js +1 -1
  210. package/dist/input-time.js +1 -1
  211. package/dist/internal.js +24 -23
  212. package/dist/internal.js.map +1 -1
  213. package/dist/menu.js +1 -1
  214. package/dist/modal-fullscreen.js +1 -1
  215. package/dist/modal.js +2 -2
  216. package/dist/pagination.js +1 -1
  217. package/dist/popover.js +1 -1
  218. package/dist/radio-group.js +1 -1
  219. package/dist/rich-text-editor.js +1 -1
  220. package/dist/search-bar.js +2 -2
  221. package/dist/secondary-nav.js +1 -1
  222. package/dist/selection-card.js +1 -1
  223. package/dist/sidepanel.js +1 -1
  224. package/dist/summary-grid.js +1 -1
  225. package/dist/textarea.js +1 -1
  226. package/dist/timeline.js +1 -1
  227. package/dist/toggle.js +1 -1
  228. package/dist/tutorial.js +1 -1
  229. package/dist/web-types.json +1 -1
  230. package/package.json +8 -11
  231. package/dist/assets/dropdown-default-textbox.css +0 -1
  232. package/dist/chunks/alert.CFWN2E0b.js.map +0 -1
  233. package/dist/chunks/base-modal.BjjDrx0z.js.map +0 -1
  234. package/dist/chunks/button-actions.Bh_PZ_fV.js.map +0 -1
  235. package/dist/chunks/calendar.CH-1Vgeb.js.map +0 -1
  236. package/dist/chunks/card.BzCGCCzH.js.map +0 -1
  237. package/dist/chunks/checkbox-group.D_fN6Glu.js.map +0 -1
  238. package/dist/chunks/checkbox.BlAhQl9N.js.map +0 -1
  239. package/dist/chunks/code-snippet.BePxxR3q.js.map +0 -1
  240. package/dist/chunks/constructNow.D9uRk678.js +0 -8
  241. package/dist/chunks/data-grid.CXWaoqzi.js.map +0 -1
  242. package/dist/chunks/date-picker.DPjCROIP.js +0 -238
  243. package/dist/chunks/date-picker.DPjCROIP.js.map +0 -1
  244. package/dist/chunks/date-range-picker.fyrfFd04.js +0 -998
  245. package/dist/chunks/date-range-picker.fyrfFd04.js.map +0 -1
  246. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  247. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  248. package/dist/chunks/dropdown-default-textbox.aYsTZDZ7.js +0 -415
  249. package/dist/chunks/dropdown-default-textbox.aYsTZDZ7.js.map +0 -1
  250. package/dist/chunks/dropdown-tag.B7OA_Yv9.js.map +0 -1
  251. package/dist/chunks/dropdown.Do-mZiI6.js +0 -813
  252. package/dist/chunks/dropdown.Do-mZiI6.js.map +0 -1
  253. package/dist/chunks/error-message.849uzpkq.js +0 -157
  254. package/dist/chunks/error-message.849uzpkq.js.map +0 -1
  255. package/dist/chunks/filter-bar.fowl40RS.js.map +0 -1
  256. package/dist/chunks/form-layout-title.Cr3wdpK_.js.map +0 -1
  257. package/dist/chunks/header.BVM8Usdi.js.map +0 -1
  258. package/dist/chunks/input-field-password.CHb2Ros_.js.map +0 -1
  259. package/dist/chunks/input-field.DnYjM6yy.js.map +0 -1
  260. package/dist/chunks/input-time.DeJ8lDio.js +0 -103
  261. package/dist/chunks/input-time.DeJ8lDio.js.map +0 -1
  262. package/dist/chunks/isSameWeek.Dj6luS8h.js +0 -14
  263. package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
  264. package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
  265. package/dist/chunks/radio-group.DzhQgXv9.js.map +0 -1
  266. package/dist/chunks/textarea.C-sBemuo.js.map +0 -1
  267. package/dist/chunks/timeline-item.CHk8wXeT.js.map +0 -1
  268. package/dist/chunks/toggle.BQoprdX-.js.map +0 -1
  269. package/dist/chunks/use-cached-selected-values.DIbfa5F1.js +0 -1652
  270. package/dist/chunks/use-cached-selected-values.DIbfa5F1.js.map +0 -1
  271. package/dist/chunks/warning-filled.BzyK_mMj.js +0 -29
  272. package/dist/chunks/warning-filled.BzyK_mMj.js.map +0 -1
  273. package/dist/draggable-handle.js.map +0 -1
@@ -1,1652 +0,0 @@
1
- import { computed as b, ref as I, onMounted as ut, onUnmounted as bt, watch as fe, defineComponent as J, resolveComponent as _, openBlock as d, createElementBlock as y, createVNode as N, withCtx as L, createTextVNode as K, toDisplayString as V, createElementVNode as G, renderSlot as W, mergeProps as w, withKeys as be, createCommentVNode as q, createBlock as A, withModifiers as ae, normalizeProps as oe, guardReactiveProps as me, withDirectives as ne, vShow as ze, nextTick as Ye, toRef as pe, resolveDirective as Ue, toHandlers as ee, Fragment as te, renderList as j, createSlots as ge, normalizeClass as ve, unref as B, useSlots as mt, useAttrs as pt } from "vue";
2
- import { B as F, a as he } from "./keyboard-navigation.DWmhelVv.js";
3
- import { B as ie } from "./typography.B3J6_tYk.js";
4
- import { B as gt } from "./loading-indicator.BPol9I84.js";
5
- import { B as vt } from "./empty-state.DT4sFyjB.js";
6
- import { u as Ie } from "./index.B875RXHM.js";
7
- import { d as ft } from "./debounce.DUTu11PS.js";
8
- import { o as yt } from "./resize.Bqks3WUm.js";
9
- import { C as Se, N as St } from "./minus-small.CnYLTuSv.js";
10
- import { C as ht } from "./checkmark-small.CRuZauJc.js";
11
- /* empty css */
12
- import { _ as H } from "./_plugin-vue_export-helper.CHgC5LLL.js";
13
- import { B as Ct } from "./chip.DFldnqfz.js";
14
- import { C as Et } from "./chevron-down.XeE-LBV_.js";
15
- import { C as Ot } from "./chevron-up.Cmgl2a3x.js";
16
- import { g as Me } from "./generate-uid.DBWe4g6T.js";
17
- import { a as Tt, b as Pe } from "./button-actions.Bh_PZ_fV.js";
18
- import "../assets/use-cached-selected-values.css";
19
- const Fe = (e, t, o, s) => {
20
- const r = b(
21
- () => !!e.value?.length && e.value?.length === t.value.length
22
- ), i = b(() => e.value == null || e.value.length === 0 ? !1 : e.value?.length !== t.value.length);
23
- return {
24
- isAllSelected: r,
25
- isIndeterminate: i,
26
- toggleSelectAll: (f) => {
27
- f ? o() : s();
28
- }
29
- };
30
- };
31
- function Lt(e, { disabled: t, itemHeight: o, overscan: s = 5, prefixHeight: r }) {
32
- const i = I(null), a = I([]), f = I(0), S = I(0), n = I(0);
33
- let u;
34
- const l = b(() => {
35
- const k = typeof o == "number" ? e.value.length * o : e.value.reduce((T, O, D) => T + o(D), 0), $ = typeof o == "number" ? f.value * o : e.value.slice(0, f.value).reduce((T, O, D) => T + o(D), 0);
36
- return {
37
- style: {
38
- marginTop: `${$}px`,
39
- height: `${k - $}px`
40
- }
41
- };
42
- }), m = () => {
43
- const k = r?.value ?? 0, $ = Math.max(i.value.scrollTop - k, 0);
44
- if (typeof o == "number")
45
- return Math.floor($ / o);
46
- let T = 0, O = 0;
47
- for (let D = 0; D < e.value.length; D += 1) {
48
- const z = o(D);
49
- if (T += z, T >= $) {
50
- O = D;
51
- break;
52
- }
53
- }
54
- return O;
55
- }, C = () => {
56
- if (n.value = i.value.clientHeight, typeof o == "number")
57
- return Math.ceil(n.value / o);
58
- const k = f.value ?? 0;
59
- let $ = 0, T = 0;
60
- for (let O = k; O < e.value.length; O += 1) {
61
- const D = o(O);
62
- if ($ += D, T = O, $ > n.value)
63
- break;
64
- }
65
- return T - k;
66
- }, h = () => {
67
- if (i.value) {
68
- const k = C();
69
- f.value = m(), S.value = Math.min(f.value + k + s, e.value.length), a.value = e.value.slice(f.value, S.value);
70
- }
71
- }, R = () => {
72
- h();
73
- };
74
- t || (ut(() => {
75
- i.value && (n.value = i.value.clientHeight, u = yt(i.value, ({ clientHeight: k }) => {
76
- n.value = k, h();
77
- }), h());
78
- }), bt(() => {
79
- u?.disconnect();
80
- }), fe(
81
- () => e.value,
82
- () => {
83
- h();
84
- }
85
- ));
86
- const x = {
87
- ref: i,
88
- style: { overflowY: "auto" }
89
- };
90
- return t ? {
91
- containerRef: i,
92
- containerProps: x,
93
- // eslint-disable-next-line @typescript-eslint/no-empty-function
94
- onScroll: () => {
95
- },
96
- list: e
97
- } : {
98
- containerRef: i,
99
- containerProps: x,
100
- onScroll: R,
101
- list: a,
102
- wrapperProps: l
103
- };
104
- }
105
- var p = /* @__PURE__ */ ((e) => (e.SELECT = "select", e.SHOW_MORE = "show-more", e.ESCAPE = "escape-pressed", e.CLICK = "click", e.ENTER = "enter-pressed", e.SPACE = "space-pressed", e.TAB = "tab-pressed", e.CLOSE_DROPDOWN = "close-dropdown", e))(p || {}), le = /* @__PURE__ */ ((e) => (e.AUTOMATIC = "automatic", e.BUTTON = "button", e.NONE = "none", e))(le || {});
106
- const It = J({
107
- name: "bento-listbox-static-category",
108
- components: {
109
- BentoTypography: ie
110
- },
111
- props: {
112
- /**
113
- * Category label text
114
- */
115
- categoryLabel: {
116
- type: String,
117
- required: !0
118
- }
119
- }
120
- }), _t = ["aria-label"];
121
- function At(e, t, o, s, r, i) {
122
- const a = _("bento-typography");
123
- return d(), y("div", {
124
- class: "b-listbox-single-select-category",
125
- role: "group",
126
- "aria-label": e.categoryLabel
127
- }, [
128
- N(a, {
129
- variant: "caption",
130
- el: "span",
131
- class: "b-listbox-single-select-category__label-text",
132
- "aria-hidden": "true"
133
- }, {
134
- default: L(() => [
135
- K(V(e.categoryLabel), 1)
136
- ]),
137
- _: 1
138
- }),
139
- G("div", null, [
140
- W(e.$slots, "default", {}, void 0, !0)
141
- ])
142
- ], 8, _t);
143
- }
144
- const kt = /* @__PURE__ */ H(It, [["render", At], ["__scopeId", "data-v-27c4e09a"]]), $t = J({
145
- name: "bento-listbox-option",
146
- props: {
147
- /**
148
- * Setting this property to true will disable the option.
149
- */
150
- disabled: { type: Boolean, default: !1 },
151
- /**
152
- * Indicates if the value is selected. Only one element can be selected at a time.
153
- */
154
- selected: { type: Boolean, default: !1 }
155
- },
156
- emits: [p.CLICK, p.ENTER, p.SPACE, p.TAB],
157
- setup(e, { emit: t }) {
158
- const o = b(() => ({
159
- "b-listbox-option--disabled": e.disabled,
160
- "b-listbox-option--selected": e.selected
161
- }));
162
- return {
163
- // Enums
164
- BentoKeyboardNavigationKeyDownEvent: F,
165
- BentoListboxEvent: p,
166
- // Values
167
- conditionalClasses: o,
168
- // Events
169
- onClick: (i) => {
170
- t(p.CLICK, i);
171
- },
172
- onOptionSelected: (i, a) => {
173
- t(i, a);
174
- }
175
- };
176
- }
177
- });
178
- function Dt(e, t, o, s, r, i) {
179
- return d(), y("div", w({
180
- class: ["b-listbox-option", e.conditionalClasses],
181
- role: "option"
182
- }, e.$attrs, {
183
- onClick: t[0] || (t[0] = (...a) => e.onClick && e.onClick(...a)),
184
- onKeydown: [
185
- t[1] || (t[1] = be((a) => e.onOptionSelected(e.BentoListboxEvent.ENTER, a), ["enter"])),
186
- t[2] || (t[2] = be((a) => e.onOptionSelected(e.BentoListboxEvent.SPACE, a), ["space"])),
187
- t[3] || (t[3] = be((a) => e.onOptionSelected(e.BentoListboxEvent.TAB, a), ["tab"]))
188
- ]
189
- }), [
190
- W(e.$slots, "default", {}, void 0, !0)
191
- ], 16);
192
- }
193
- const Ce = /* @__PURE__ */ H($t, [["render", Dt], ["__scopeId", "data-v-1495b1db"]]);
194
- let Ne = 0;
195
- const Bt = {
196
- beforeCreate() {
197
- this.uuid = Ne.toString(), Ne += 1;
198
- }
199
- }, Rt = { key: 0 };
200
- function Mt(e, t, o, s, r, i) {
201
- return d(), y("svg", w({ role: "img" }, e.$attrs, {
202
- class: "ui-assets-icons-16",
203
- xmlns: "http://www.w3.org/2000/svg",
204
- width: "16",
205
- height: "16",
206
- fill: "none"
207
- }), [
208
- e.$attrs["svg-title"] ? (d(), y("title", Rt, V(e.$attrs["svg-title"]), 1)) : q("", !0),
209
- t[0] || (t[0] = G("path", {
210
- fill: "#001222",
211
- d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z"
212
- }, null, -1))
213
- ], 16);
214
- }
215
- const Pt = /* @__PURE__ */ H(Bt, [["render", Mt]]), Nt = J({
216
- name: "bento-listbox-single-select-option",
217
- components: {
218
- BentoListboxOption: Ce,
219
- BentoTypography: ie,
220
- CheckmarkIcon: Pt
221
- },
222
- props: {
223
- /**
224
- * Setting this property to true will disable the option.
225
- */
226
- disabled: { type: Boolean, default: !1 },
227
- /**
228
- * The option item that contains all the option item's data.
229
- * @type {BentoListboxOptionItem}
230
- */
231
- option: {
232
- type: Object,
233
- required: !0
234
- },
235
- /**
236
- * Indicates if the value is selected. Only one element can be selected at a time.
237
- */
238
- selected: { type: Boolean, default: !1 }
239
- },
240
- emits: [p.ENTER, p.SELECT, p.SPACE, p.TAB],
241
- setup(e, { emit: t }) {
242
- const o = (a) => {
243
- e.disabled || t(a, e.option);
244
- }, s = b(() => e.disabled ? !0 : null), r = b(() => e.selected ? !0 : null), i = b(() => e.disabled ? -1 : 0);
245
- return {
246
- // Values
247
- ariaDisabled: s,
248
- ariaSelected: r,
249
- tabIndex: i,
250
- // Enums
251
- BentoListboxEvent: p,
252
- // Events
253
- onOptionSelected: o
254
- };
255
- }
256
- }), wt = { class: "b-listbox-single-select-option__text" }, Gt = { class: "b-listbox-single-select-option__check-icon" };
257
- function xt(e, t, o, s, r, i) {
258
- const a = _("bento-typography"), f = _("checkmark-icon"), S = _("bento-listbox-option");
259
- return d(), A(S, {
260
- class: "b-listbox-single-select-option",
261
- disabled: e.disabled,
262
- selected: e.selected,
263
- "aria-selected": e.ariaSelected,
264
- "aria-disabled": e.ariaDisabled,
265
- tabindex: e.tabIndex,
266
- onClick: t[0] || (t[0] = (n) => e.onOptionSelected(e.BentoListboxEvent.SELECT)),
267
- onEnterPressed: t[1] || (t[1] = (n) => e.onOptionSelected(e.BentoListboxEvent.ENTER)),
268
- onSpacePressed: t[2] || (t[2] = ae((n) => e.onOptionSelected(e.BentoListboxEvent.SPACE), ["prevent"])),
269
- onTabPressed: t[3] || (t[3] = (n) => e.onOptionSelected(e.BentoListboxEvent.TAB))
270
- }, {
271
- default: L(() => [
272
- W(e.$slots, "default", oe(me(e.option)), () => [
273
- G("span", wt, [
274
- N(a, { el: "span" }, {
275
- default: L(() => [
276
- K(V(e.option.label), 1)
277
- ]),
278
- _: 1
279
- }),
280
- e.option.description ? (d(), A(a, {
281
- key: 0,
282
- class: "b-listbox-single-select-option__description",
283
- el: "span"
284
- }, {
285
- default: L(() => [
286
- K(V(e.option.description), 1)
287
- ]),
288
- _: 1
289
- })) : q("", !0)
290
- ])
291
- ], !0),
292
- G("span", Gt, [
293
- ne(N(f, { "svg-title": "selected" }, null, 512), [
294
- [ze, e.selected]
295
- ])
296
- ])
297
- ]),
298
- _: 3
299
- }, 8, ["disabled", "selected", "aria-selected", "aria-disabled", "tabindex"]);
300
- }
301
- const Vt = /* @__PURE__ */ H(Nt, [["render", xt], ["__scopeId", "data-v-4f41af07"]]), Ke = ({ items: e }, t) => {
302
- const o = b(() => e.value.length - 1), s = I(0), r = (m) => {
303
- switch (m) {
304
- case "increase":
305
- s.value += 1;
306
- break;
307
- case "decrease":
308
- s.value -= 1;
309
- break;
310
- }
311
- }, i = ({ edgeCaseItem: m }, C) => {
312
- s.value !== m && (r(C), t(s.value));
313
- }, a = (m) => {
314
- l(m), i(
315
- {
316
- edgeCaseItem: o.value
317
- },
318
- "increase"
319
- /* INCREASE */
320
- );
321
- }, f = (m) => {
322
- l(m), i(
323
- {
324
- edgeCaseItem: 0
325
- },
326
- "decrease"
327
- /* DECREASE */
328
- );
329
- }, S = () => {
330
- s.value = 0, t(s.value);
331
- }, n = () => {
332
- s.value = o.value, t(s.value);
333
- }, u = (m) => {
334
- s.value = m;
335
- }, l = (m) => {
336
- m?.detail?.preventDefault();
337
- };
338
- return {
339
- moveToFirstElement: S,
340
- moveToLastElement: n,
341
- moveToNextElement: a,
342
- moveToPreviousElement: f,
343
- setListboxFocusedIndex: u,
344
- preventDefault: l,
345
- focusedIndex: s
346
- };
347
- }, We = (e, t, o = I("option"), s = !0) => {
348
- const r = I([]), i = async () => {
349
- if (!e.value || e.value.nodeType === Node.COMMENT_NODE)
350
- return;
351
- const a = Array.from(e.value.querySelectorAll(`[role="${o.value}"]`));
352
- r.value = s ? a.filter((f) => f.checkVisibility()) : a;
353
- };
354
- return fe(
355
- t,
356
- () => {
357
- Ye(() => {
358
- i();
359
- });
360
- },
361
- { immediate: !0 }
362
- ), {
363
- visibleDomOptions: r,
364
- updateVisibleDomOptions: i
365
- };
366
- }, zt = J({
367
- name: "bento-listbox-single-select",
368
- components: {
369
- BentoListboxSingleSelectCategory: kt,
370
- BentoListboxSingleSelectOption: Vt
371
- },
372
- directives: { BentoKeyboardNavigationDirective: he },
373
- inheritAttrs: !1,
374
- props: {
375
- /**
376
- * Function that allows the options to be disabled
377
- *
378
- * @type {BentoListboxIsOptionDisabled}
379
- * @param {BentoListboxOptionItem} option - listbox option object
380
- * @param {string} option.label - Option's label text
381
- * @param {string|number} option.value - Option's value
382
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
383
- */
384
- isOptionDisabled: {
385
- type: Function,
386
- default: () => !1
387
- },
388
- /**
389
- * The option elements to populate the listbox with.
390
- * It must be an array of {@see BentoListboxOptionItem }.
391
- *
392
- * @property {string} value.label - Text to be displayed in the option
393
- * @property {string,number} value.value - Value of the option
394
- */
395
- items: {
396
- type: Array,
397
- required: !0
398
- },
399
- /**
400
- * The `input` value.
401
- * Providing an empty string will select no options.
402
- * Set to an empty string `''` if you don't want any of the available options to be selected
403
- */
404
- selectedValue: {
405
- type: Array,
406
- default: void 0
407
- },
408
- /**
409
- * If enabled, dropdown will display non-selectable, static categories
410
- */
411
- staticCategories: { type: Boolean, default: !1 }
412
- },
413
- emits: [p.SELECT, p.ENTER, p.SPACE, p.TAB],
414
- setup(e, { emit: t, expose: o, slots: s, attrs: r }) {
415
- const i = I(null), a = I([]), f = b(() => !!e.selectedValue?.length && e.selectedValue.at(0)), S = b(
416
- () => ({
417
- "aria-label": r["aria-label"]?.toString(),
418
- "aria-busy": r["aria-busy"]?.toString(),
419
- "aria-atomic": r["aria-atomic"]?.toString(),
420
- "aria-live": r["aria-live"]?.toString()
421
- })
422
- ), n = b(() => !!e.items.some(({ items: O }) => !!O)), u = (O) => (D) => {
423
- t(O, [D]);
424
- }, { visibleDomOptions: l } = We(i, pe(e, "items"), I("option"), !1), m = (O) => {
425
- l.value[O]?.focus();
426
- }, {
427
- moveToNextElement: C,
428
- moveToPreviousElement: h,
429
- moveToFirstElement: R,
430
- moveToLastElement: x,
431
- setListboxFocusedIndex: k
432
- } = Ke(
433
- {
434
- items: l
435
- },
436
- m
437
- ), $ = {
438
- [F.ARROW_UP]: h,
439
- [F.ARROW_DOWN]: C,
440
- [F.HOME]: R,
441
- [F.END]: x
442
- }, T = {
443
- [p.SELECT]: u(p.SELECT),
444
- [p.SPACE]: u(p.SPACE),
445
- [p.TAB]: u(p.TAB),
446
- [p.ENTER]: u(p.ENTER)
447
- };
448
- return o({
449
- /**
450
- * Reference for a single listbox item.
451
- * Required for keyboard navigation in dropdown as $children is removed in vue@3
452
- */
453
- listboxItemRef: a,
454
- /**
455
- * Method to set the index of the item to be focused on
456
- * Used for focus management to be kept in-sync with parent e.g. dropdowns
457
- */
458
- setListboxFocusedIndex: k
459
- }), {
460
- // Enums
461
- BentoListboxEvent: p,
462
- // Values
463
- listboxRef: i,
464
- listboxItemRef: a,
465
- selectedItem: f,
466
- slots: s,
467
- ariaAttributes: S,
468
- // Computed
469
- hasCategories: n,
470
- // Methods
471
- onOptionSelected: u,
472
- // Keyboard navigation
473
- listboxListeners: $,
474
- listboxOptionListeners: T
475
- };
476
- }
477
- });
478
- function Yt(e, t, o, s, r, i) {
479
- const a = _("bento-listbox-single-select-option"), f = _("bento-listbox-single-select-category"), S = Ue("bento-keyboard-navigation-directive");
480
- return ne((d(), y("div", w({ ref: "listboxRef" }, e.ariaAttributes, { role: "listbox" }, ee(e.listboxListeners, !0)), [
481
- e.hasCategories && e.staticCategories ? (d(!0), y(te, { key: 0 }, j(e.items, (n) => (d(), A(f, {
482
- key: n.value,
483
- "category-label": n.label
484
- }, {
485
- default: L(() => [
486
- (d(!0), y(te, null, j(n.items, (u) => (d(), A(a, w({
487
- key: u.value,
488
- ref_for: !0,
489
- ref: "listboxItemRef",
490
- role: "option",
491
- option: u,
492
- disabled: e.isOptionDisabled ? e.isOptionDisabled(u) : null,
493
- selected: u.value === e.selectedItem.value
494
- }, ee(e.listboxOptionListeners)), ge({ _: 2 }, [
495
- j(e.slots, (l, m) => ({
496
- name: m,
497
- fn: L((C) => [
498
- W(e.$slots, m, w({ ref_for: !0 }, C))
499
- ])
500
- }))
501
- ]), 1040, ["option", "disabled", "selected"]))), 128))
502
- ]),
503
- _: 2
504
- }, 1032, ["category-label"]))), 128)) : (d(!0), y(te, { key: 1 }, j(e.items, (n) => (d(), A(a, w({
505
- key: n.value,
506
- ref_for: !0,
507
- ref: "listboxItemRef",
508
- role: "option",
509
- option: n,
510
- disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null,
511
- selected: n.value === e.selectedItem.value
512
- }, ee(e.listboxOptionListeners)), ge({ _: 2 }, [
513
- j(e.slots, (u, l) => ({
514
- name: l,
515
- fn: L((m) => [
516
- W(e.$slots, l, w({ ref_for: !0 }, m))
517
- ])
518
- }))
519
- ]), 1040, ["option", "disabled", "selected"]))), 128))
520
- ], 16)), [
521
- [S]
522
- ]);
523
- }
524
- const Ut = /* @__PURE__ */ H(zt, [["render", Yt]]);
525
- let we = 0;
526
- const Ft = {
527
- beforeCreate() {
528
- this.uuid = we.toString(), we += 1;
529
- }
530
- }, Kt = { key: 0 };
531
- function Wt(e, t, o, s, r, i) {
532
- return d(), y("svg", w({ role: "img" }, e.$attrs, {
533
- class: "ui-assets-icons-16",
534
- xmlns: "http://www.w3.org/2000/svg",
535
- width: "16",
536
- height: "16",
537
- fill: "none"
538
- }), [
539
- e.$attrs["svg-title"] ? (d(), y("title", Kt, V(e.$attrs["svg-title"]), 1)) : q("", !0),
540
- t[0] || (t[0] = G("path", {
541
- fill: "#001222",
542
- d: "M9.69043 5.75L4.62988 10.8105L1.56934 7.75L2.62988 6.68945L4.62988 8.68945L8.62988 4.68945L9.69043 5.75Z"
543
- }, null, -1)),
544
- t[1] || (t[1] = G("path", {
545
- fill: "#001222",
546
- d: "M13.9307 5.75L8.87012 10.8105L7.80957 9.75L12.8701 4.68945L13.9307 5.75Z"
547
- }, null, -1))
548
- ], 16);
549
- }
550
- const Ht = /* @__PURE__ */ H(Ft, [["render", Wt]]), jt = {}, qt = /* @__PURE__ */ J({
551
- ...jt,
552
- __name: "decorative-checkbox",
553
- props: {
554
- disabled: { type: Boolean, default: !1 },
555
- indeterminate: { type: Boolean, default: !1 },
556
- checked: { type: Boolean, default: !1 },
557
- allSelected: { type: Boolean, default: !1 }
558
- },
559
- setup(e) {
560
- const t = e, o = b(() => ({
561
- [`b-checkbox-input--${Se.DISABLED}`]: t.disabled
562
- })), s = b(() => ({
563
- [`b-checkbox-input__outline--${Se.UNCHECKED}`]: !t.checked && !t.indeterminate && !t.allSelected,
564
- [`b-checkbox-input__outline--${Se.CHECKED}`]: (t.checked || t.allSelected) && !t.indeterminate,
565
- [`b-checkbox-input__outline--${Se.INDETERMINATE}`]: t.indeterminate
566
- }));
567
- return (r, i) => (d(), y("div", {
568
- class: ve(["b-checkbox-input", o.value]),
569
- role: "presentation"
570
- }, [
571
- r.indeterminate ? (d(), A(B(St), {
572
- key: 0,
573
- class: "b-checkbox-input__icon",
574
- "svg-title": "",
575
- "aria-hidden": "true"
576
- })) : r.allSelected ? (d(), A(B(Ht), {
577
- key: 1,
578
- class: "b-checkbox-input__icon",
579
- "svg-title": "",
580
- "aria-hidden": "true",
581
- "data-testid": "decorative-checkbox-double-checkmark-icon"
582
- })) : r.checked ? (d(), A(B(ht), {
583
- key: 2,
584
- class: "b-checkbox-input__icon",
585
- "svg-title": "",
586
- "aria-hidden": "true"
587
- })) : q("", !0),
588
- G("div", {
589
- class: ve(["b-checkbox-input__outline", s.value])
590
- }, null, 2)
591
- ], 2));
592
- }
593
- }), _e = /* @__PURE__ */ H(qt, [["__scopeId", "data-v-08d3142e"]]);
594
- var He = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.STATIC_CATEGORY = "static-category", e))(He || {}), Q = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.UNSELECT_CATEGORY = "unselect-category", e.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", e))(Q || {});
595
- const Ge = {
596
- "de-DE": { categoryClosed: "{category} geschlossen", categoryOpened: "{category} geöffnet" },
597
- "en-GB": { categoryClosed: "{category} closed", categoryOpened: "{category} opened" },
598
- "en-US": { categoryClosed: "{category} closed", categoryOpened: "{category} opened" },
599
- "es-ES": { categoryClosed: "{category} cerrado", categoryOpened: "{category} abierto" },
600
- "es-MX": { categoryClosed: "{category} cerrado", categoryOpened: "{category} abierto" },
601
- "fr-FR": { categoryClosed: "{category} fermée", categoryOpened: "{category} ouverte" },
602
- "it-IT": { categoryClosed: "{category} chiuso", categoryOpened: "{category} aperto" },
603
- "ja-JP": { categoryClosed: "{category}を閉じました", categoryOpened: "{category}を開きました" },
604
- "pt-BR": { categoryClosed: "{category} fechada", categoryOpened: "{categoria} aberta" },
605
- "zh-CN": { categoryClosed: "{category} 已关闭", categoryOpened: "{category} 已打开" }
606
- }, Xt = J({
607
- i18n: { messages: Ge },
608
- name: "bento-listbox-multi-select-category",
609
- components: {
610
- BentoTypography: ie,
611
- BentoListboxOption: Ce,
612
- ChevronDownIcon: Et,
613
- ChevronUpIcon: Ot,
614
- DecorativeCheckbox: _e
615
- },
616
- props: {
617
- /**
618
- * The option elements to populate the listbox with.
619
- * It must be an array of {@see BentoListboxOptionItem }.
620
- *
621
- * @property {string} value.label - Text to be displayed in the option
622
- * @property {string,number} value.value - Value of the option
623
- * @property {BentoListboxOptionItem} value.items - Category items list
624
- */
625
- category: {
626
- type: Object,
627
- required: !0
628
- },
629
- /**
630
- * Function that allows the options to be disabled
631
- *
632
- * @type {BentoListboxIsOptionDisabled}
633
- * @param {BentoListboxOptionItem} option - listbox option object
634
- * @param {string} option.label - Option's label text
635
- * @param {string|number} option.value - Option's value
636
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
637
- */
638
- isOptionDisabled: {
639
- type: [Function],
640
- default: () => !1
641
- },
642
- /**
643
- * The `input` value.
644
- * Providing an empty array will select no options.
645
- */
646
- selectedItemsList: {
647
- type: Array,
648
- default: () => []
649
- },
650
- /**
651
- * If enabled, dropdown will display non-selectable, static categories
652
- */
653
- staticCategories: { type: Boolean, default: !1 },
654
- /**
655
- * Category's tabindex
656
- */
657
- tabindex: { type: Number, default: -1 }
658
- },
659
- emits: [
660
- Q.SELECT_CATEGORY,
661
- Q.UNSELECT_CATEGORY,
662
- Q.TOGGLE_CATEGORY_VISIBILITY
663
- ],
664
- setup(e, { emit: t }) {
665
- const o = I(!1), { t: s } = Ie({ messages: Ge }), r = Me("category-group"), i = Me("category-name"), a = (M) => e.isOptionDisabled ? e.isOptionDisabled(M) : !1, f = b(
666
- () => e.category.items.every((M) => a(M))
667
- ), S = pe(e, "staticCategories"), n = b(() => o.value || e.staticCategories), u = b(() => ({
668
- [`b-listbox-multi-select-category--${He.DISABLED}`]: f.value
669
- })), l = (M, Y) => {
670
- M.preventDefault(), o.value = Y !== void 0 ? Y : !o.value, t(Q.TOGGLE_CATEGORY_VISIBILITY, e.category.value);
671
- }, m = (M) => {
672
- const Y = a(M), Z = e.selectedItemsList?.includes(M.value) || !1;
673
- return { isDisabled: Y, isPreSelected: Z };
674
- }, C = b(
675
- () => e.category.items.filter((M) => {
676
- const { isDisabled: Y, isPreSelected: Z } = m(M);
677
- return Y && Z || !Y;
678
- })
679
- ), h = b(
680
- () => C.value?.filter(
681
- ({ value: M }) => e.selectedItemsList?.includes(M)
682
- )
683
- ), R = b(() => {
684
- const M = o.value ? "categoryOpened" : "categoryClosed";
685
- return s(M, { category: e.category.label });
686
- }), x = () => {
687
- t(Q.SELECT_CATEGORY);
688
- }, k = () => {
689
- t(Q.UNSELECT_CATEGORY);
690
- }, { isAllSelected: $, isIndeterminate: T, toggleSelectAll: O } = Fe(
691
- h,
692
- C,
693
- x,
694
- k
695
- ), D = b(() => T.value ? "mixed" : `${$.value}`), z = I($.value), re = () => {
696
- z.value = !z.value, O(z.value);
697
- };
698
- return fe($, () => {
699
- z.value = $.value;
700
- }), {
701
- // Values
702
- chevronTitle: R,
703
- conditionalClass: u,
704
- hasAllPropsDisabled: f,
705
- isOpen: o,
706
- isAllSelected: $,
707
- isIndeterminate: T,
708
- isStaticCategory: S,
709
- categoryGroupId: r,
710
- categoryNameId: i,
711
- // Computed
712
- showItemChildren: n,
713
- ariaCheckedComputed: D,
714
- // Methods
715
- handleSelectAll: re,
716
- toggleOpen: l,
717
- toggleSelectAll: O
718
- };
719
- }
720
- }), Jt = { class: "b-listbox-multi-select-category__label" }, Zt = {
721
- key: 1,
722
- class: "b-listbox-multi-select-category b-listbox-multi-select-category--static-category",
723
- "aria-hidden": "true"
724
- }, Qt = { class: "b-listbox-multi-select-category__label" }, es = ["id", "aria-label"];
725
- function ts(e, t, o, s, r, i) {
726
- const a = _("decorative-checkbox"), f = _("bento-typography"), S = _("chevron-up-icon"), n = _("chevron-down-icon"), u = _("bento-listbox-option");
727
- return d(), y("div", null, [
728
- e.isStaticCategory ? (d(), y("div", Zt, [
729
- G("span", Qt, [
730
- N(f, {
731
- el: "span",
732
- variant: "caption",
733
- class: "b-listbox-multi-select-category__label-text"
734
- }, {
735
- default: L(() => [
736
- K(V(e.category.label), 1)
737
- ]),
738
- _: 1
739
- })
740
- ])
741
- ])) : (d(), A(u, {
742
- key: 0,
743
- class: ve(["b-listbox-multi-select-category__option", e.conditionalClass]),
744
- tabindex: e.tabindex,
745
- "aria-selected": e.ariaCheckedComputed !== "false",
746
- "aria-checked": e.ariaCheckedComputed,
747
- "aria-disabled": e.hasAllPropsDisabled,
748
- "aria-expanded": `${e.isOpen}`,
749
- role: "treeitem",
750
- "aria-owns": e.categoryGroupId,
751
- "aria-labelledby": e.categoryNameId,
752
- onClick: e.handleSelectAll,
753
- onEnterPressed: e.handleSelectAll,
754
- onSpacePressed: ae(e.handleSelectAll, ["prevent"]),
755
- onKeydown: [
756
- t[1] || (t[1] = be((l) => e.toggleOpen(l, !1), ["arrow-left", "native"])),
757
- t[2] || (t[2] = be((l) => e.toggleOpen(l, !0), ["arrow-right", "native"]))
758
- ]
759
- }, {
760
- default: L(() => [
761
- N(a, {
762
- indeterminate: e.isIndeterminate,
763
- disabled: e.hasAllPropsDisabled,
764
- checked: e.isAllSelected
765
- }, null, 8, ["indeterminate", "disabled", "checked"]),
766
- G("span", Jt, [
767
- N(f, {
768
- id: e.categoryNameId,
769
- el: "span",
770
- class: "b-listbox-multi-select-category__label-text"
771
- }, {
772
- default: L(() => [
773
- K(V(e.category.label), 1)
774
- ]),
775
- _: 1
776
- }, 8, ["id"]),
777
- G("div", {
778
- "aria-hidden": "true",
779
- class: "b-listbox-multi-select-category__label-chevron",
780
- "data-testid": "toggle-listbox",
781
- onClickCapture: t[0] || (t[0] = ae((...l) => e.toggleOpen && e.toggleOpen(...l), ["stop"]))
782
- }, [
783
- e.isOpen ? (d(), A(S, {
784
- key: 0,
785
- "svg-title": e.chevronTitle
786
- }, null, 8, ["svg-title"])) : (d(), A(n, {
787
- key: 1,
788
- "svg-title": e.chevronTitle
789
- }, null, 8, ["svg-title"]))
790
- ], 32)
791
- ])
792
- ]),
793
- _: 1
794
- }, 8, ["class", "tabindex", "aria-selected", "aria-checked", "aria-disabled", "aria-expanded", "aria-owns", "aria-labelledby", "onClick", "onEnterPressed", "onSpacePressed"])),
795
- ne(G("div", {
796
- id: e.categoryGroupId,
797
- role: "group",
798
- "aria-label": e.category.label
799
- }, [
800
- W(e.$slots, "default", {}, void 0, !0)
801
- ], 8, es), [
802
- [ze, e.showItemChildren]
803
- ])
804
- ]);
805
- }
806
- const ss = /* @__PURE__ */ H(Xt, [["render", ts], ["__scopeId", "data-v-60c04867"]]);
807
- var X = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", e.UNSELECT_CATEGORY = "unselect-category", e.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", e))(X || {});
808
- const ls = J({
809
- name: "listbox-multi-select-options",
810
- components: {
811
- BentoListboxOption: Ce,
812
- BentoTypography: ie,
813
- ListboxMultiSelectCategory: ss,
814
- DecorativeCheckbox: _e
815
- },
816
- inheritAttrs: !1,
817
- props: {
818
- /**
819
- * Indicates if the items listed are inside a category
820
- * so they can be padded to right by one level in recursion.
821
- * Items of categories are automatically defined as "categoryItems"
822
- */
823
- categoryItems: { type: Boolean, default: !1 },
824
- /**
825
- * Current focused option index
826
- */
827
- focusedIndex: { type: Number, default: 0 },
828
- /**
829
- * Function that allows the options to be disabled
830
- *
831
- * @type {BentoListboxIsOptionDisabled}
832
- * @param {BentoListboxOptionItem} option - listbox option object
833
- * @param {string} option.label - Option's label text
834
- * @param {string|number} option.value - Option's value
835
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
836
- */
837
- isOptionDisabled: {
838
- type: Function,
839
- default: () => !1
840
- },
841
- /**
842
- * The option elements to populate the listbox with.
843
- * It must be an array of {@see BentoListboxOptionItem }.
844
- *
845
- * @property {string} value.label - Text to be displayed in the option
846
- * @property {string,number} value.value - Value of the option
847
- */
848
- items: {
849
- type: Array,
850
- required: !0
851
- },
852
- /**
853
- * Indicates if the elements options are inside a multi-level category
854
- */
855
- isMultiLevel: { type: Boolean, default: !1 },
856
- /**
857
- * Flag that indicates that an external search it's being made
858
- * to filter out the items inside the the multi-select listbox
859
- *
860
- * If enabled, hides the "Select all" checkbox in "multiple" mode.
861
- */
862
- searching: { type: Boolean, default: !1 },
863
- /**
864
- * List of selected items.
865
- * Providing an empty array will select no options.
866
- */
867
- selectedItemsList: {
868
- type: Array,
869
- default: () => []
870
- },
871
- /**
872
- * If enabled, dropdown will display non-selectable, static categories
873
- */
874
- staticCategories: { type: Boolean, default: !1 },
875
- /**
876
- * Object with the index of each item.
877
- */
878
- itemsIndex: {
879
- type: Object,
880
- default: () => ({})
881
- }
882
- },
883
- emits: [
884
- X.TOGGLE_CHECKBOX_SELECTION,
885
- X.SELECT_CATEGORY,
886
- X.UNSELECT_CATEGORY,
887
- X.TOGGLE_CATEGORY_VISIBILITY
888
- ],
889
- setup(e, { emit: t }) {
890
- const o = (n) => {
891
- e.isOptionDisabled(n) || t(X.TOGGLE_CHECKBOX_SELECTION, n);
892
- }, s = (n) => !!n.items, r = (n) => {
893
- const u = e.isMultiLevel && e.searching;
894
- return n.description && (!e.isMultiLevel || u);
895
- }, i = (n) => n.items ? !!n.items.find((u) => e.selectedItemsList.includes(u.value)) : e.selectedItemsList.includes(n.value), a = (n) => {
896
- if (s(n)) {
897
- const u = i(n) ? X.UNSELECT_CATEGORY : X.SELECT_CATEGORY;
898
- t(u, n);
899
- } else
900
- o(n);
901
- };
902
- return {
903
- // Values
904
- conditionalClasses: b(() => ({
905
- "b-listbox-multi-select-options__static-category-option": e.staticCategories,
906
- "b-listbox-multi-select-options__category-option": e.categoryItems
907
- })),
908
- // Methods
909
- isOptionSelected: i,
910
- shouldShowDescription: r,
911
- toggleCheckboxSelection: o,
912
- toggleSearchOption: a,
913
- computedTabindex: (n) => e.itemsIndex[n] === e.focusedIndex ? 0 : -1,
914
- // Enums
915
- BentoListboxEvent: p,
916
- ListboxMultiSelectOptionsEvent: X
917
- };
918
- }
919
- }), os = { class: "b-listbox-multi-select__option-text" }, as = { class: "b-listbox-multi-select__option-text" };
920
- function ns(e, t, o, s, r, i) {
921
- const a = _("decorative-checkbox"), f = _("bento-typography"), S = _("bento-listbox-option"), n = _("listbox-multi-select-options", !0), u = _("listbox-multi-select-category");
922
- return d(), y("div", null, [
923
- (d(!0), y(te, null, j(e.items, (l) => (d(), y("div", {
924
- key: `selected-${l.value}`
925
- }, [
926
- e.searching && e.isMultiLevel ? (d(), A(S, {
927
- key: 0,
928
- class: ve(["b-listbox-multi-select-options", e.conditionalClasses]),
929
- disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null,
930
- tabindex: e.computedTabindex(l.value),
931
- "aria-selected": `${e.isOptionSelected(l)}`,
932
- "aria-checked": `${e.isOptionSelected(l)}`,
933
- "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(l) : null,
934
- role: e.$attrs.role || "option",
935
- onClick: (m) => e.toggleSearchOption(l),
936
- onEnterPressed: (m) => e.toggleSearchOption(l),
937
- onSpacePressed: ae((m) => e.toggleSearchOption(l), ["prevent"])
938
- }, {
939
- default: L(() => [
940
- N(a, {
941
- disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null,
942
- checked: e.isOptionSelected(l)
943
- }, null, 8, ["disabled", "checked"]),
944
- W(e.$slots, "default", w({ ref_for: !0 }, l), () => [
945
- G("span", os, [
946
- N(f, { el: "span" }, {
947
- default: L(() => [
948
- K(V(l.label), 1)
949
- ]),
950
- _: 2
951
- }, 1024),
952
- e.shouldShowDescription(l) ? (d(), A(f, {
953
- key: 0,
954
- class: "b-listbox-multi-select__option-description",
955
- el: "span"
956
- }, {
957
- default: L(() => [
958
- K(V(l.description), 1)
959
- ]),
960
- _: 2
961
- }, 1024)) : q("", !0)
962
- ])
963
- ], !0)
964
- ]),
965
- _: 2
966
- }, 1032, ["class", "disabled", "tabindex", "aria-selected", "aria-checked", "aria-disabled", "role", "onClick", "onEnterPressed", "onSpacePressed"])) : (d(), y(te, { key: 1 }, [
967
- l.items ? (d(), A(u, {
968
- key: 0,
969
- category: l,
970
- "static-categories": e.staticCategories,
971
- "is-option-disabled": e.isOptionDisabled,
972
- "selected-items-list": e.selectedItemsList,
973
- tabindex: e.computedTabindex(l.value),
974
- onSelectCategory: (m) => e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, l),
975
- onUnselectCategory: (m) => e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, l),
976
- onToggleCategoryVisibility: t[1] || (t[1] = (m) => e.$emit(e.ListboxMultiSelectOptionsEvent.TOGGLE_CATEGORY_VISIBILITY, m))
977
- }, {
978
- default: L(() => [
979
- N(n, {
980
- "category-items": "",
981
- items: l.items,
982
- "is-option-disabled": e.isOptionDisabled,
983
- "items-index": e.itemsIndex,
984
- "focused-index": e.focusedIndex,
985
- "is-multi-level": e.isMultiLevel,
986
- "static-categories": e.staticCategories,
987
- "selected-items-list": e.selectedItemsList,
988
- searching: e.searching,
989
- role: e.$attrs.role || "option",
990
- onToggleCheckboxSelection: t[0] || (t[0] = (m) => e.toggleCheckboxSelection(m))
991
- }, null, 8, ["items", "is-option-disabled", "items-index", "focused-index", "is-multi-level", "static-categories", "selected-items-list", "searching", "role"])
992
- ]),
993
- _: 2
994
- }, 1032, ["category", "static-categories", "is-option-disabled", "selected-items-list", "tabindex", "onSelectCategory", "onUnselectCategory"])) : (d(), A(S, {
995
- key: 1,
996
- class: ve(["b-listbox-multi-select-options", e.conditionalClasses]),
997
- disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null,
998
- tabindex: e.computedTabindex(l.value),
999
- "aria-selected": `${e.isOptionSelected(l)}`,
1000
- "aria-checked": `${e.isOptionSelected(l)}`,
1001
- "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(l) : null,
1002
- role: e.$attrs.role || "option",
1003
- onClick: (m) => e.toggleCheckboxSelection(l),
1004
- onEnterPressed: (m) => e.toggleCheckboxSelection(l),
1005
- onSpacePressed: ae((m) => e.toggleCheckboxSelection(l), ["prevent"])
1006
- }, {
1007
- default: L(() => [
1008
- N(a, {
1009
- disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null,
1010
- checked: e.isOptionSelected(l)
1011
- }, null, 8, ["disabled", "checked"]),
1012
- W(e.$slots, "default", w({ ref_for: !0 }, l), () => [
1013
- G("span", as, [
1014
- N(f, { el: "span" }, {
1015
- default: L(() => [
1016
- K(V(l.label), 1)
1017
- ]),
1018
- _: 2
1019
- }, 1024),
1020
- e.shouldShowDescription(l) ? (d(), A(f, {
1021
- key: 0,
1022
- class: "b-listbox-multi-select__option-description",
1023
- el: "span"
1024
- }, {
1025
- default: L(() => [
1026
- K(V(l.description), 1)
1027
- ]),
1028
- _: 2
1029
- }, 1024)) : q("", !0)
1030
- ])
1031
- ], !0)
1032
- ]),
1033
- _: 2
1034
- }, 1032, ["class", "disabled", "tabindex", "aria-selected", "aria-checked", "aria-disabled", "role", "onClick", "onEnterPressed", "onSpacePressed"]))
1035
- ], 64))
1036
- ]))), 128))
1037
- ]);
1038
- }
1039
- const is = /* @__PURE__ */ H(ls, [["render", ns], ["__scopeId", "data-v-237dfc58"]]), rs = (e) => {
1040
- const t = b(() => !!e.value?.find(({ items: s }) => !!s)), o = b(() => t.value ? e.value?.reduce((s, r) => (r.items ? s.push(...r.items.flat()) : s.push(r), s), []) : e.value);
1041
- return {
1042
- isMultiLevelSelect: t,
1043
- flattenedItemsList: o
1044
- };
1045
- }, je = {
1046
- "de-DE": { allSelected: "Alle ausgewählt ({total})", numberOfTotalSelected: "{number} von {total} ausgewählt", numbersSelected: "{number} ausgewählt", selectAll: "Alle auswählen ({total})" },
1047
- "en-GB": { allSelected: "All selected ({total})", numberOfTotalSelected: "{number} of {total} selected", numbersSelected: "{number} selected", selectAll: "Select all ({total})" },
1048
- "en-US": { allSelected: "All selected ({total})", numberOfTotalSelected: "{number} of {total} selected", numbersSelected: "{number} selected", selectAll: "Select all ({total})" },
1049
- "es-ES": { allSelected: "Todos seleccionados ({total})", numberOfTotalSelected: "{number} de {total} seleccionados", numbersSelected: "{number} seleccionado", selectAll: "Seleccionar todo ({total})" },
1050
- "es-MX": { allSelected: "Todos seleccionados ({total})", numberOfTotalSelected: "{number} de {total} seleccionados", numbersSelected: "{número} seleccionado", selectAll: "Seleccionar todo ({total})" },
1051
- "fr-FR": { allSelected: "Tous sélectionnés ({total})", numberOfTotalSelected: "{number} sélectionné(s) sur {total}", numbersSelected: "{number} sélectionné(s)", selectAll: "Tout sélectionner ({total})" },
1052
- "it-IT": { allSelected: "Tutti i selezionati ({total})", numberOfTotalSelected: "{numero} su {totale} selezionati", numbersSelected: "{numero} selezionati", selectAll: "Seleziona tutto ({total})" },
1053
- "ja-JP": { allSelected: "すべて選択 ({total})", numberOfTotalSelected: "{number}/{total}件が選択されました", numbersSelected: "{number}件選択済み", selectAll: "すべて選択 ({total})" },
1054
- "pt-BR": { allSelected: "Todos os selecionados ({total})", numberOfTotalSelected: "{number} de {total} selecionados", numbersSelected: "{number} selecionados", selectAll: "Selecionar tudo ({total})" },
1055
- "zh-CN": { allSelected: "全部已选 ({total})", numberOfTotalSelected: "已选择 {number} 个,共 {total} 个", numbersSelected: "已选择 {number} 个", selectAll: "选择全部({total})个" }
1056
- }, cs = { key: 0 }, ds = ["role"], us = {
1057
- key: 1,
1058
- class: "b-listbox-multi-select__divider",
1059
- "aria-hidden": "true"
1060
- }, bs = { i18n: { messages: je } }, ms = /* @__PURE__ */ J({
1061
- ...bs,
1062
- __name: "listbox-multi-select",
1063
- props: {
1064
- hasMoreItems: { type: Boolean, default: !1 },
1065
- isOptionDisabled: { type: Function, default: () => !1 },
1066
- items: {},
1067
- lazyLoadType: { default: "none" },
1068
- searching: { type: Boolean, default: !1 },
1069
- selectedValues: {},
1070
- staticCategories: { type: Boolean, default: !1 }
1071
- },
1072
- emits: ["select"],
1073
- setup(e, { expose: t, emit: o }) {
1074
- const s = e, r = o, { t: i, n: a } = Ie({ messages: je }), f = mt(), S = pt(), n = b(
1075
- () => ({
1076
- "aria-label": S["aria-label"]?.toString(),
1077
- "aria-busy": S["aria-busy"]?.toString(),
1078
- "aria-atomic": S["aria-atomic"]?.toString(),
1079
- "aria-live": S["aria-live"]?.toString(),
1080
- "aria-multiselectable": !0
1081
- })
1082
- ), u = I(null), l = I(null), m = I(null), C = I(null), h = b(() => s.selectedValues.map(({ value: c }) => c)), { isMultiLevelSelect: R, flattenedItemsList: x } = rs(pe(s, "items")), k = b(() => R.value && !s.staticCategories), $ = b(() => k.value ? "tree" : "listbox"), T = b(() => k.value ? "treeitem" : "option"), O = (c) => {
1083
- const v = s.isOptionDisabled(c), g = h.value?.includes(c.value) || !1;
1084
- return { isDisabled: v, isPreSelected: g };
1085
- }, D = b(() => {
1086
- if (s.searching && R)
1087
- return s.items;
1088
- const c = x.value.filter((v) => {
1089
- const { isDisabled: g, isPreSelected: P } = O(v);
1090
- return g && P || !g;
1091
- });
1092
- return s.selectedValues.forEach((v) => {
1093
- c.find((g) => g.value === v.value) || c.push(v);
1094
- }), c;
1095
- }), z = b(
1096
- () => D.value?.filter((c) => c.items && R.value && s.searching ? c.items.filter(
1097
- (g) => (s.selectedValues ?? []).includes(g.value)
1098
- ).length === c.items.length : h.value?.includes(c.value))
1099
- ), re = () => R.value && !s.searching ? x.value.length : s.items.length, M = b(() => {
1100
- const c = D.value.length, v = re(), g = z.value?.length || 0;
1101
- return g === 0 ? i("selectAll", { total: a(c) }) : g === v ? i("allSelected", { total: a(v) }) : g <= v ? i("numberOfTotalSelected", { number: a(g), total: a(v) }) : i("numbersSelected", { number: a(g) });
1102
- }), Y = (c) => {
1103
- const v = (P) => {
1104
- const { isDisabled: E, isPreSelected: ue } = O(P);
1105
- return E && ue || !E;
1106
- }, g = c.filter(v).filter((P) => !h.value.includes(P.value));
1107
- r("select", [...s.selectedValues, ...g]);
1108
- }, Z = (c) => {
1109
- const v = (E) => {
1110
- const { isDisabled: ue, isPreSelected: dt } = O(E);
1111
- return !(ue && dt);
1112
- }, g = c.filter(v).map(({ value: E }) => E), P = s.selectedValues.filter((E) => !g?.includes(E.value));
1113
- r("select", P);
1114
- }, Ee = () => {
1115
- Y(x.value);
1116
- }, Oe = () => {
1117
- Z(x.value);
1118
- }, { isAllSelected: U, isIndeterminate: se, toggleSelectAll: qe } = Fe(
1119
- z,
1120
- D,
1121
- Ee,
1122
- Oe
1123
- ), Ae = b(() => se.value ? "mixed" : `${U.value}`), ye = I(U.value), Te = () => {
1124
- ye.value = !ye.value, qe(ye.value);
1125
- };
1126
- fe(U, () => {
1127
- ye.value = U.value;
1128
- });
1129
- const Xe = (c) => {
1130
- Y(c.items);
1131
- }, ke = (c) => {
1132
- Z(c.items);
1133
- }, ce = (c, v) => {
1134
- let g = !1;
1135
- const P = s.selectedValues.filter(({ value: E }) => v.value === E ? (g = !0, !1) : !0);
1136
- g || P.push(v), r(c, P);
1137
- }, Je = b(() => {
1138
- if (!R.value)
1139
- return s.selectedValues;
1140
- const c = (E) => h.value.includes(E.value), v = (E) => !s.staticCategories && E.every((ue) => c(ue));
1141
- return s.items.flatMap(
1142
- (E) => E.items && !v(E.items) ? E.items : E
1143
- ).filter((E) => E.items ? !0 : c(E));
1144
- }), Ze = b(() => {
1145
- const c = ["automatic", "button"].includes(s.lazyLoadType), v = s.selectedValues?.length > 0 && z.value?.length !== x.value?.length;
1146
- return c && s.hasMoreItems ? !!s.selectedValues?.length : v;
1147
- }), $e = b(() => ["automatic", "button"].includes(s.lazyLoadType) ? !s.hasMoreItems : !0), de = I([]), { visibleDomOptions: De, updateVisibleDomOptions: Qe } = We(
1148
- u,
1149
- pe(s, "items"),
1150
- T
1151
- ), et = (c) => {
1152
- de.value.includes(c) ? de.value = de.value.filter((v) => v !== c) : de.value.push(c), Ye(() => {
1153
- Qe();
1154
- });
1155
- }, tt = (c) => {
1156
- De.value[c]?.focus();
1157
- }, {
1158
- moveToNextElement: st,
1159
- moveToPreviousElement: lt,
1160
- moveToFirstElement: ot,
1161
- moveToLastElement: at,
1162
- preventDefault: Be,
1163
- focusedIndex: Re,
1164
- setListboxFocusedIndex: nt
1165
- } = Ke(
1166
- {
1167
- items: De
1168
- },
1169
- tt
1170
- ), it = {
1171
- [F.ARROW_UP]: (c) => lt(c),
1172
- [F.ARROW_DOWN]: (c) => st(c),
1173
- [F.HOME]: ot,
1174
- [F.END]: at
1175
- };
1176
- t({
1177
- /**
1178
- * Method to set the index of the item to be focused on
1179
- * Used for focus management to be kept in-sync with parent e.g. dropdowns
1180
- */
1181
- setListboxFocusedIndex: nt
1182
- });
1183
- const rt = {
1184
- [F.ARROW_UP]: Be,
1185
- [F.ARROW_DOWN]: Be
1186
- }, ct = b(() => {
1187
- let c = 1;
1188
- const v = {};
1189
- return s.items.forEach((g) => {
1190
- let P = de.value.includes(g.value);
1191
- g.items ? (s.staticCategories ? P = !0 : v[g.value] = c++, P && g.items.forEach((E) => v[E.value] = c++)) : v[g.value] = c++;
1192
- }), v;
1193
- });
1194
- return (c, v) => (d(), y("div", {
1195
- ref_key: "listboxRef",
1196
- ref: u,
1197
- class: "b-listbox-multi-select"
1198
- }, [
1199
- Ze.value ? (d(), y("div", cs, [
1200
- ne((d(), y("ul", w({ class: "b-listbox-multi-select__chips" }, ee(rt, !0)), [
1201
- (d(!0), y(te, null, j(Je.value, (g) => (d(), y("li", {
1202
- key: g.value
1203
- }, [
1204
- N(B(Ct), {
1205
- ref_for: !0,
1206
- ref_key: "selectedListboxItemsRef",
1207
- ref: m,
1208
- disabled: c.isOptionDisabled(g),
1209
- label: g.label,
1210
- condensed: "",
1211
- onClick: (P) => g.items ? ke(g) : ce("select", g)
1212
- }, null, 8, ["disabled", "label", "onClick"])
1213
- ]))), 128))
1214
- ], 16)), [
1215
- [B(he)]
1216
- ]),
1217
- v[4] || (v[4] = G("hr", {
1218
- class: "b-listbox-multi-select__divider",
1219
- "aria-hidden": "true"
1220
- }, null, -1))
1221
- ])) : q("", !0),
1222
- ne((d(), y("div", w(n.value, { role: $.value }, ee(it, !0)), [
1223
- $e.value ? (d(), A(B(Ce), {
1224
- key: 0,
1225
- ref_key: "selectAllListboxItemsRef",
1226
- ref: l,
1227
- class: "b-listbox-multi-select__option",
1228
- tabindex: B(Re) === 0 ? 0 : -1,
1229
- "aria-selected": Ae.value !== "false",
1230
- "aria-checked": Ae.value,
1231
- role: T.value,
1232
- onClick: Te,
1233
- onEnterPressed: Te,
1234
- onSpacePressed: ae(Te, ["prevent"])
1235
- }, {
1236
- default: L(() => [
1237
- N(B(_e), {
1238
- checked: B(U),
1239
- indeterminate: B(se)
1240
- }, null, 8, ["checked", "indeterminate"]),
1241
- N(B(ie), { el: "span" }, {
1242
- default: L(() => [
1243
- K(V(M.value), 1)
1244
- ]),
1245
- _: 1
1246
- })
1247
- ]),
1248
- _: 1
1249
- }, 8, ["tabindex", "aria-selected", "aria-checked", "role"])) : q("", !0),
1250
- $e.value ? (d(), y("hr", us)) : q("", !0),
1251
- N(B(is), {
1252
- ref_key: "listboxItemsRef",
1253
- ref: C,
1254
- items: c.items,
1255
- "is-option-disabled": c.isOptionDisabled,
1256
- "is-multi-level": B(R),
1257
- "static-categories": c.staticCategories,
1258
- searching: c.searching,
1259
- "selected-items-list": h.value,
1260
- "focused-index": B(Re),
1261
- "items-index": ct.value,
1262
- role: T.value,
1263
- onToggleCheckboxSelection: v[0] || (v[0] = (g) => ce("select", g)),
1264
- onSelectCategory: Xe,
1265
- onUnselectCategory: ke,
1266
- onToggleCategoryVisibility: et,
1267
- onSpacePressed: v[1] || (v[1] = (g) => ce(B(p).SPACE, g)),
1268
- onTabPressed: v[2] || (v[2] = (g) => ce(B(p).TAB, g)),
1269
- onEnterPressed: v[3] || (v[3] = (g) => ce(B(p).ENTER, g))
1270
- }, ge({ _: 2 }, [
1271
- j(B(f), (g, P) => ({
1272
- name: P,
1273
- fn: L((E) => [
1274
- W(c.$slots, P, oe(me(E)), void 0, !0)
1275
- ])
1276
- }))
1277
- ]), 1032, ["items", "is-option-disabled", "is-multi-level", "static-categories", "searching", "selected-items-list", "focused-index", "items-index", "role"])
1278
- ], 16, ds)), [
1279
- [B(he)]
1280
- ])
1281
- ], 512));
1282
- }
1283
- }), xe = /* @__PURE__ */ H(ms, [["__scopeId", "data-v-d170602c"]]), Ve = {
1284
- "de-DE": { loading: "Laden", showMore: "Mehr anzeigen" },
1285
- "en-GB": { loading: "Loading", showMore: "Show more" },
1286
- "en-US": { loading: "Loading", showMore: "Show more" },
1287
- "es-ES": { loading: "Cargando", showMore: "Mostrar más" },
1288
- "es-MX": { loading: "Cargando", showMore: "Mostrar más" },
1289
- "fr-FR": { loading: "Chargement", showMore: "Afficher plus" },
1290
- "it-IT": { loading: "Caricamento", showMore: "Mostra di più" },
1291
- "ja-JP": { loading: "読み込み中", showMore: "さらに表示" },
1292
- "pt-BR": { loading: "Carregando", showMore: "Mostrar mais" },
1293
- "zh-CN": { loading: "正在加载", showMore: "显示更多" }
1294
- }, ps = 36, gs = J({
1295
- name: "bento-listbox",
1296
- components: {
1297
- BentoEmptyState: vt,
1298
- BentoListboxSingleSelect: Ut,
1299
- BentoListboxMultiSelect: xe,
1300
- BentoTypography: ie,
1301
- BentoLoadingIndicator: gt,
1302
- BentoLoadingButton: Tt
1303
- },
1304
- directives: { BentoKeyboardNavigationDirective: he },
1305
- i18n: { messages: Ve },
1306
- props: {
1307
- /**
1308
- * Defines a string value that labels an interactive element.
1309
- */
1310
- ariaLabel: { type: String, default: null },
1311
- /**
1312
- * Empty state props that will be used with the inner empty state component to be displayed when no search results are found.
1313
- */
1314
- emptyState: {
1315
- type: Object,
1316
- default: void 0
1317
- },
1318
- /**
1319
- * Indicates whether there are more items to load
1320
- */
1321
- hasMoreItems: { type: Boolean, default: !1 },
1322
- /**
1323
- * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
1324
- */
1325
- id: { type: String, required: !0 },
1326
- /**
1327
- * Function that allows the options to be disabled
1328
- *
1329
- * @type {BentoListboxIsOptionDisabled}
1330
- * @param {BentoListboxOptionItem} option - Listbox option object
1331
- * @param {string} option.label - Option's label text
1332
- * @param {string|number} option.value - Option's value
1333
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
1334
- */
1335
- isOptionDisabled: {
1336
- type: Function,
1337
- default: () => {
1338
- }
1339
- },
1340
- /**
1341
- * The option elements to populate the listbox with.
1342
- * It must be an array of {@see BentoListboxOptionItem }
1343
- * * @property {string} value.label - Text to be displayed in the option
1344
- * * @property {string,number} value.value - Value of the option
1345
- */
1346
- items: {
1347
- type: Array,
1348
- required: !0
1349
- },
1350
- /**
1351
- * Indicates if new options are lazy loading.
1352
- */
1353
- loading: { type: Boolean, default: !1 },
1354
- /**
1355
- * The type of `Lazy Load`.
1356
- * Type "automatic" will enable infinite scrolling
1357
- * Type "button" will enable lazy loading with "Show more" button
1358
- */
1359
- lazyLoadType: {
1360
- type: String,
1361
- default: le.NONE,
1362
- validator: (e) => Object.values(le).includes(e)
1363
- },
1364
- /**
1365
- * Indicates the listbox is loading filtered items.
1366
- */
1367
- componentLoading: { type: Boolean, default: !1 },
1368
- /**
1369
- * If enabled, the user will be able to select multiple items.
1370
- */
1371
- multiple: { type: Boolean, default: !1 },
1372
- /**
1373
- * If enabled, dropdown will display non-selectable, static categories
1374
- */
1375
- staticCategories: { type: Boolean, default: !1 },
1376
- /**
1377
- * Messaged displayed when no items are listed in the listbox
1378
- */
1379
- noResultsMessage: { type: String, required: !0 },
1380
- /**
1381
- * Flag that indicates that an external search it's being made
1382
- * to filter out the items inside the the multi-select listbox
1383
- *
1384
- * If enabled, hides the "Select all" checkbox in "multiple" mode.
1385
- */
1386
- searching: xe.props.searching,
1387
- /**
1388
- * The `input` value.
1389
- * Providing an empty string or empty array will select no options.
1390
- * Set to an empty string `''` if you don't want any of the available options to be selected for single select
1391
- */
1392
- selectedValue: {
1393
- type: Array,
1394
- default: () => []
1395
- },
1396
- /**
1397
- * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
1398
- * The itemHeight function is used to calculate the height of rendered item given it's index.
1399
- */
1400
- virtualScroll: {
1401
- type: [Boolean, Object],
1402
- default: !1
1403
- }
1404
- },
1405
- emits: [
1406
- p.SELECT,
1407
- p.SPACE,
1408
- p.SHOW_MORE,
1409
- p.ENTER,
1410
- p.ESCAPE,
1411
- p.TAB
1412
- ],
1413
- setup(e, { emit: t, slots: o }) {
1414
- const s = I([]), r = pe(e, "items"), { t: i } = Ie({ messages: Ve }), a = b(() => e.lazyLoadType !== le.AUTOMATIC), f = b(() => e.lazyLoadType === le.AUTOMATIC), S = () => typeof e?.virtualScroll == "object" && e?.virtualScroll?.itemHeight ? e.virtualScroll.itemHeight : ps, {
1415
- containerRef: n,
1416
- containerProps: u,
1417
- onScroll: l,
1418
- list: m,
1419
- wrapperProps: C
1420
- } = Lt(r, {
1421
- itemHeight: S(),
1422
- // Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
1423
- disabled: e?.multiple || e?.virtualScroll === !1 || e?.lazyLoadType !== "none"
1424
- }), h = b(
1425
- () => e.componentLoading !== void 0 || a.value ? "true" : void 0
1426
- ), R = b(
1427
- () => a.value && e.loading || e.componentLoading ? "true" : "false"
1428
- ), x = b(
1429
- () => a.value || e.componentLoading !== void 0 ? "polite" : void 0
1430
- ), k = b(
1431
- () => ({
1432
- "aria-label": e.ariaLabel,
1433
- "aria-busy": R.value,
1434
- "aria-atomic": h.value,
1435
- "aria-live": x.value
1436
- })
1437
- ), $ = b(
1438
- () => e.componentLoading ? {
1439
- ...k.value,
1440
- role: "alert"
1441
- } : {}
1442
- ), T = (U) => (se) => {
1443
- t(U, se);
1444
- }, O = () => {
1445
- t(p.SHOW_MORE);
1446
- }, D = ft(() => {
1447
- const U = n.value;
1448
- if (!U)
1449
- return;
1450
- const se = Math.round(U.scrollTop) + U.clientHeight >= U.scrollHeight;
1451
- e.hasMoreItems && se && !e.loading && O();
1452
- }), z = () => {
1453
- f.value ? D() : l();
1454
- }, re = b(() => e.items?.length === 0), M = b(
1455
- () => e.lazyLoadType === le.BUTTON && e.hasMoreItems
1456
- ), Y = b(
1457
- () => e.loading ? Pe.LOADING : Pe.START
1458
- ), Z = b(() => e.loading ? i("loading") : i("showMore")), Ee = b(() => ({
1459
- ...e.emptyState,
1460
- variant: "condensed"
1461
- })), Oe = {
1462
- [p.SELECT]: T(p.SELECT),
1463
- [p.SPACE]: T(p.SPACE),
1464
- [p.TAB]: T(p.TAB),
1465
- [p.ENTER]: T(p.ENTER)
1466
- };
1467
- return {
1468
- // Refs
1469
- listboxRef: n,
1470
- listboxItemRef: s,
1471
- // a11y
1472
- ariaAttributes: k,
1473
- listboxContainerAttributes: $,
1474
- // Values
1475
- containerProps: u,
1476
- isSearchResultEmpty: re,
1477
- limitedEmptyStateProps: Ee,
1478
- loadingButtonState: Y,
1479
- slots: o,
1480
- shouldDisplayShowMoreButton: M,
1481
- showMoreButtonText: Z,
1482
- virtualisedItems: m,
1483
- wrapperProps: C,
1484
- // Enums
1485
- BentoKeyboardNavigationKeyDownEvent: F,
1486
- BentoListboxEvent: p,
1487
- // Methods
1488
- onListboxContainerScroll: z,
1489
- onOptionSelected: T,
1490
- emitShowMore: O,
1491
- listboxListeners: Oe
1492
- };
1493
- }
1494
- }), vs = ["id"], fs = {
1495
- key: 0,
1496
- class: "b-listbox__loading-filtered-items"
1497
- }, ys = {
1498
- key: 1,
1499
- class: "b-listbox__empty-search-message"
1500
- }, Ss = {
1501
- key: 2,
1502
- class: "b-listbox__lazy-load"
1503
- }, hs = {
1504
- key: 3,
1505
- class: "b-listbox__lazy-load"
1506
- };
1507
- function Cs(e, t, o, s, r, i) {
1508
- const a = _("bento-loading-indicator"), f = _("bento-empty-state"), S = _("bento-typography"), n = _("bento-listbox-multi-select"), u = _("bento-listbox-single-select"), l = _("bento-loading-button"), m = Ue("bento-keyboard-navigation-directive");
1509
- return ne((d(), y("div", w({
1510
- id: e.id,
1511
- ref: "listboxRef",
1512
- class: "b-listbox",
1513
- tabindex: "-1"
1514
- }, e.listboxContainerAttributes, {
1515
- style: e.containerProps?.style,
1516
- "data-testid": "listbox-container",
1517
- onScroll: t[0] || (t[0] = (...C) => e.onListboxContainerScroll && e.onListboxContainerScroll(...C))
1518
- }), [
1519
- G("div", oe(me(e.wrapperProps)), [
1520
- e.componentLoading ? (d(), y("div", fs, [
1521
- N(a)
1522
- ])) : e.isSearchResultEmpty ? (d(), y("div", ys, [
1523
- e.emptyState ? (d(), A(f, oe(w({ key: 0 }, e.limitedEmptyStateProps)), null, 16)) : (d(), A(S, {
1524
- key: 1,
1525
- el: "span"
1526
- }, {
1527
- default: L(() => [
1528
- K(V(e.noResultsMessage), 1)
1529
- ]),
1530
- _: 1
1531
- }))
1532
- ])) : (d(), y(te, { key: 2 }, [
1533
- e.multiple ? (d(), A(n, w({
1534
- key: 0,
1535
- ref: "listboxItemRef",
1536
- "has-more-items": e.hasMoreItems
1537
- }, e.ariaAttributes, {
1538
- items: e.items,
1539
- "lazy-load-type": e.lazyLoadType,
1540
- "static-categories": e.staticCategories,
1541
- "selected-values": e.selectedValue,
1542
- searching: e.searching,
1543
- "is-option-disabled": e.isOptionDisabled
1544
- }, ee(e.listboxListeners)), ge({ _: 2 }, [
1545
- j(e.slots, (C, h) => ({
1546
- name: h,
1547
- fn: L((R) => [
1548
- W(e.$slots, h, oe(me(R)), void 0, !0)
1549
- ])
1550
- }))
1551
- ]), 1040, ["has-more-items", "items", "lazy-load-type", "static-categories", "selected-values", "searching", "is-option-disabled"])) : (d(), A(u, w({
1552
- key: 1,
1553
- ref: "listboxItemRef",
1554
- items: e.virtualisedItems
1555
- }, e.ariaAttributes, {
1556
- "selected-value": e.selectedValue,
1557
- "static-categories": e.staticCategories,
1558
- "is-option-disabled": e.isOptionDisabled
1559
- }, ee(e.listboxListeners)), ge({ _: 2 }, [
1560
- j(e.slots, (C, h) => ({
1561
- name: h,
1562
- fn: L((R) => [
1563
- W(e.$slots, h, oe(me(R)), void 0, !0)
1564
- ])
1565
- }))
1566
- ]), 1040, ["items", "selected-value", "static-categories", "is-option-disabled"])),
1567
- e.shouldDisplayShowMoreButton ? (d(), y("div", Ss, [
1568
- N(l, {
1569
- state: e.loadingButtonState,
1570
- variant: "secondary",
1571
- onClickCapture: e.emitShowMore
1572
- }, {
1573
- default: L(() => [
1574
- K(V(e.showMoreButtonText), 1)
1575
- ]),
1576
- _: 1
1577
- }, 8, ["state", "onClickCapture"])
1578
- ])) : e.loading ? (d(), y("div", hs, [
1579
- N(a)
1580
- ])) : q("", !0)
1581
- ], 64))
1582
- ], 16)
1583
- ], 16, vs)), [
1584
- [m]
1585
- ]);
1586
- }
1587
- const Vs = /* @__PURE__ */ H(gs, [["render", Cs], ["__scopeId", "data-v-ef1c27fa"]]), Le = (e, t) => {
1588
- for (const o of e) {
1589
- if (o.value === t)
1590
- return o;
1591
- if (o.items) {
1592
- const s = Le(o.items, t);
1593
- if (s)
1594
- return s;
1595
- }
1596
- }
1597
- return null;
1598
- }, Es = (e) => typeof e == "object" && e !== null && "value" in e && "label" in e, zs = (e, t, o, s) => {
1599
- const r = I([]), i = I(), a = (u) => {
1600
- o.value ? i.value = u.map(({ value: l }) => l) : i.value = u.length > 0 ? u[0].value : null;
1601
- }, f = (u) => {
1602
- o.value ? i.value = u.map(({ value: l, label: m }) => ({ value: l, label: m })) : i.value = u.length > 0 ? { value: u[0].value, label: u[0].label } : null;
1603
- }, S = (u) => {
1604
- r.value = u, s?.value ? f(u) : a(u);
1605
- }, n = () => {
1606
- r.value = [], i.value = null;
1607
- };
1608
- return fe(
1609
- () => t.value,
1610
- () => {
1611
- if (!t.value && t.value !== 0) {
1612
- n();
1613
- return;
1614
- }
1615
- const u = !Array.isArray(t.value), l = [...r.value];
1616
- n();
1617
- const m = (C) => {
1618
- if (Es(C))
1619
- r.value.push(C);
1620
- else {
1621
- let h = Le(e.value, C);
1622
- h || (h = Le(l, C)), h || (h = { value: C, label: C.toString() }), r.value.push(h);
1623
- }
1624
- };
1625
- if (u) {
1626
- const C = t.value;
1627
- m(C), s?.value ? f(r.value) : a(r.value);
1628
- return;
1629
- }
1630
- t.value.forEach(m), s?.value ? f(r.value) : a(r.value);
1631
- },
1632
- { immediate: !0 }
1633
- ), {
1634
- // Values
1635
- cachedSelectedListboxOptions: r,
1636
- cachedListboxSelectedValues: i,
1637
- // Methods
1638
- resetCache: n,
1639
- setCachedValues: S
1640
- };
1641
- };
1642
- export {
1643
- p as B,
1644
- Pt as C,
1645
- _e as D,
1646
- le as a,
1647
- Vs as b,
1648
- rs as c,
1649
- We as d,
1650
- zs as u
1651
- };
1652
- //# sourceMappingURL=use-cached-selected-values.DIbfa5F1.js.map