@adyen/bento-vue3 1.27.0 → 1.28.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 (578) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/vue2/src/components/dashed-underline/dashed-underline.vue.d.ts +91 -0
  3. package/dist/@types/packages/vue2/src/components/dashed-underline/index.d.ts +1 -0
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.d.ts +2 -0
  5. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.types.d.ts +1 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.vue.d.ts +65 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/index.d.ts +1 -0
  9. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +38 -42
  10. package/dist/@types/packages/vue2/src/components/internal/radio-input/index.d.ts +2 -2
  11. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
  12. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +59 -85
  13. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.types.d.ts +3 -0
  14. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +48 -80
  15. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +19 -16
  16. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  17. package/dist/accordion.js +3 -125
  18. package/dist/accordion.js.map +1 -1
  19. package/dist/action-bar.js +2 -186
  20. package/dist/action-bar.js.map +1 -1
  21. package/dist/alert.js +5 -181
  22. package/dist/alert.js.map +1 -1
  23. package/dist/assets/{index2.css → accordion-item.css} +1 -1
  24. package/dist/assets/{index5.css → action-bar.css} +1 -1
  25. package/dist/assets/base-modal.css +1 -1
  26. package/dist/assets/button.css +1 -1
  27. package/dist/assets/{index18.css → card.css} +1 -1
  28. package/dist/assets/checkbox-input.css +1 -1
  29. package/dist/assets/{index39.css → dashboard-section.css} +1 -1
  30. package/dist/assets/dashed-underline.css +1 -0
  31. package/dist/assets/{index49.css → data-grid-template.css} +1 -1
  32. package/dist/assets/{index21.css → data-grid.css} +1 -1
  33. package/dist/assets/dialog-page.css +1 -1
  34. package/dist/assets/dropdown-default-textbox.css +1 -1
  35. package/dist/assets/dropdown.css +1 -1
  36. package/dist/assets/filter-bar.css +1 -0
  37. package/dist/assets/link.css +1 -0
  38. package/dist/assets/listbox-option-tag.css +1 -1
  39. package/dist/assets/{index10.css → menu.css} +1 -1
  40. package/dist/assets/{index11.css → modal-fullscreen.css} +1 -1
  41. package/dist/assets/{index17.css → popover.css} +1 -1
  42. package/dist/assets/radio-input.css +1 -1
  43. package/dist/assets/segmented-control.css +1 -0
  44. package/dist/assets/selection-card-group.css +1 -0
  45. package/dist/assets/{index38.css → sidepanel.css} +1 -1
  46. package/dist/assets/status.css +1 -0
  47. package/dist/assets/toggle.css +1 -0
  48. package/dist/assets/tutorial.css +1 -0
  49. package/dist/avatar-image.js +1 -1
  50. package/dist/badge.js +13 -14
  51. package/dist/badge.js.map +1 -1
  52. package/dist/button.js +14 -89
  53. package/dist/button.js.map +1 -1
  54. package/dist/card.js +4 -203
  55. package/dist/card.js.map +1 -1
  56. package/dist/checkbox.js +8 -194
  57. package/dist/checkbox.js.map +1 -1
  58. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  59. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  60. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  61. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  62. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  63. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  64. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  65. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  66. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  67. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  68. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  69. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  70. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  71. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  72. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  73. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  74. package/dist/chunks/{_plugin-vue_export-helper.dad06003.js → _plugin-vue_export-helper.CHgC5LLL.js} +1 -1
  75. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +1 -0
  76. package/dist/chunks/accordion-item.BcfGYvjn.js +126 -0
  77. package/dist/chunks/accordion-item.BcfGYvjn.js.map +1 -0
  78. package/dist/chunks/action-bar.BvAtk-jI.js +188 -0
  79. package/dist/chunks/action-bar.BvAtk-jI.js.map +1 -0
  80. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  81. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  82. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  83. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  84. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  85. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  86. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  87. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  88. package/dist/chunks/alert.C0gIf7Ka.js +162 -0
  89. package/dist/chunks/alert.C0gIf7Ka.js.map +1 -0
  90. package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
  91. package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
  92. package/dist/chunks/avatar-image.DO4w_loj.js +61 -0
  93. package/dist/chunks/avatar-image.DO4w_loj.js.map +1 -0
  94. package/dist/chunks/{base-button.a0140a4c.js → base-button.ewkxHD6W.js} +24 -25
  95. package/dist/chunks/{base-button.a0140a4c.js.map → base-button.ewkxHD6W.js.map} +1 -1
  96. package/dist/chunks/{base-modal.4102f69d.js → base-modal.BgYlnM_Q.js} +81 -83
  97. package/dist/chunks/{base-modal.4102f69d.js.map → base-modal.BgYlnM_Q.js.map} +1 -1
  98. package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
  99. package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
  100. package/dist/chunks/{button-actions-with-menu.4f311411.js → button-actions-with-menu.C14zvgVo.js} +14 -15
  101. package/dist/chunks/{button-actions-with-menu.4f311411.js.map → button-actions-with-menu.C14zvgVo.js.map} +1 -1
  102. package/dist/chunks/{button-actions.82163994.js → button-actions.hGhRdgC2.js} +32 -33
  103. package/dist/chunks/{button-actions.82163994.js.map → button-actions.hGhRdgC2.js.map} +1 -1
  104. package/dist/chunks/{button.ae4760cd.js → button.DoqHEvPh.js} +34 -35
  105. package/dist/chunks/{button.ae4760cd.js.map → button.DoqHEvPh.js.map} +1 -1
  106. package/dist/chunks/{calendar.a9c5a68c.js → calendar.CwULNbSL.js} +285 -326
  107. package/dist/chunks/{calendar.a9c5a68c.js.map → calendar.CwULNbSL.js.map} +1 -1
  108. package/dist/chunks/card.C7zLKdcy.js +205 -0
  109. package/dist/chunks/card.C7zLKdcy.js.map +1 -0
  110. package/dist/chunks/checkbox-group.BcT-eZ2p.js +192 -0
  111. package/dist/chunks/checkbox-group.BcT-eZ2p.js.map +1 -0
  112. package/dist/chunks/{checkbox-input.99336948.js → checkbox-input.CR1lHf7f.js} +43 -43
  113. package/dist/chunks/{checkbox-input.99336948.js.map → checkbox-input.CR1lHf7f.js.map} +1 -1
  114. package/dist/chunks/{checkbox.9c30c07b.js → checkbox.xjIFibII.js} +38 -39
  115. package/dist/chunks/{checkbox.9c30c07b.js.map → checkbox.xjIFibII.js.map} +1 -1
  116. package/dist/chunks/checkmark-circle-fill.D29b-JWj.js +44 -0
  117. package/dist/chunks/{checkmark-circle-fill.c45a999d.js.map → checkmark-circle-fill.D29b-JWj.js.map} +1 -1
  118. package/dist/chunks/{checkmark-small.c79220d9.js → checkmark-small.BCeGkayS.js} +9 -9
  119. package/dist/chunks/{checkmark-small.c79220d9.js.map → checkmark-small.BCeGkayS.js.map} +1 -1
  120. package/dist/chunks/{chevron-left.4ee92950.js → chevron-left.4JHuWe7i.js} +17 -17
  121. package/dist/chunks/{chevron-left.4ee92950.js.map → chevron-left.4JHuWe7i.js.map} +1 -1
  122. package/dist/chunks/{chevron-up.638a9f34.js → chevron-up.5-KtIp8i.js} +18 -18
  123. package/dist/chunks/{chevron-up.638a9f34.js.map → chevron-up.5-KtIp8i.js.map} +1 -1
  124. package/dist/chunks/click-outside.DABh6NLr.js +23 -0
  125. package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
  126. package/dist/chunks/code-snippet.e8bxDBCO.js +1052 -0
  127. package/dist/chunks/code-snippet.e8bxDBCO.js.map +1 -0
  128. package/dist/chunks/{controls-group.8357e3fd.js → controls-group.DWu8NqKL.js} +17 -18
  129. package/dist/chunks/{controls-group.8357e3fd.js.map → controls-group.DWu8NqKL.js.map} +1 -1
  130. package/dist/chunks/{copy.60ee6ac3.js → copy.BhO7oRgC.js} +39 -40
  131. package/dist/chunks/{copy.60ee6ac3.js.map → copy.BhO7oRgC.js.map} +1 -1
  132. package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
  133. package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
  134. package/dist/chunks/country.vX94O3uR.js +98 -0
  135. package/dist/chunks/country.vX94O3uR.js.map +1 -0
  136. package/dist/chunks/{cross-circle-fill.1abec1a2.js → cross-circle-fill.vLaelNTN.js} +11 -11
  137. package/dist/chunks/{cross-circle-fill.1abec1a2.js.map → cross-circle-fill.vLaelNTN.js.map} +1 -1
  138. package/dist/chunks/cross-small.48UCoOqB.js +29 -0
  139. package/dist/chunks/{cross-small.b85406fe.js.map → cross-small.48UCoOqB.js.map} +1 -1
  140. package/dist/chunks/cross.BlL0FyHo.js +29 -0
  141. package/dist/chunks/{cross.26509efc.js.map → cross.BlL0FyHo.js.map} +1 -1
  142. package/dist/chunks/currency.CgVd9fQN.js +121 -0
  143. package/dist/chunks/currency.CgVd9fQN.js.map +1 -0
  144. package/dist/chunks/dashboard-section.DKeDjvkB.js +167 -0
  145. package/dist/chunks/dashboard-section.DKeDjvkB.js.map +1 -0
  146. package/dist/chunks/dashed-underline.DGTW7Y_-.js +79 -0
  147. package/dist/chunks/dashed-underline.DGTW7Y_-.js.map +1 -0
  148. package/dist/chunks/data-grid-template.6Nls-D4o.js +89 -0
  149. package/dist/chunks/data-grid-template.6Nls-D4o.js.map +1 -0
  150. package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
  151. package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
  152. package/dist/chunks/data-grid.BwfZhc09.js +2733 -0
  153. package/dist/chunks/data-grid.BwfZhc09.js.map +1 -0
  154. package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
  155. package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
  156. package/dist/chunks/date-picker.CoPmllNh.js +273 -0
  157. package/dist/chunks/date-picker.CoPmllNh.js.map +1 -0
  158. package/dist/chunks/{index.2d7b4511.js → date-range-picker.CiwDo2jW.js} +217 -219
  159. package/dist/chunks/date-range-picker.CiwDo2jW.js.map +1 -0
  160. package/dist/chunks/{index.f9d081d2.js → date.2ndGvIGE.js} +36 -41
  161. package/dist/chunks/date.2ndGvIGE.js.map +1 -0
  162. package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
  163. package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
  164. package/dist/chunks/{dialog-page.cb6ce9b6.js → dialog-page.BLqqR73w.js} +48 -49
  165. package/dist/chunks/{dialog-page.cb6ce9b6.js.map → dialog-page.BLqqR73w.js.map} +1 -1
  166. package/dist/chunks/divider.CnwfddJD.js +22 -0
  167. package/dist/chunks/divider.CnwfddJD.js.map +1 -0
  168. package/dist/chunks/{dropdown-default-textbox.cda0798f.js → dropdown-default-textbox.-Oy2eT40.js} +75 -77
  169. package/dist/chunks/{dropdown-default-textbox.cda0798f.js.map → dropdown-default-textbox.-Oy2eT40.js.map} +1 -1
  170. package/dist/chunks/dropdown-tag.C-LxVWlt.js +201 -0
  171. package/dist/chunks/dropdown-tag.C-LxVWlt.js.map +1 -0
  172. package/dist/chunks/{dropdown.0ae3b842.js → dropdown.CxBlK83Q.js} +237 -239
  173. package/dist/chunks/dropdown.CxBlK83Q.js.map +1 -0
  174. package/dist/chunks/empty-state.BBxgpI-D.js +185 -0
  175. package/dist/chunks/empty-state.BBxgpI-D.js.map +1 -0
  176. package/dist/chunks/{error-message.d2bdeb80.js → error-message.DyjHMyEZ.js} +30 -32
  177. package/dist/chunks/{error-message.d2bdeb80.js.map → error-message.DyjHMyEZ.js.map} +1 -1
  178. package/dist/chunks/events.CMzGybJJ.js +47 -0
  179. package/dist/chunks/{events.f14a214b.js.map → events.CMzGybJJ.js.map} +1 -1
  180. package/dist/chunks/filter-bar.U2ZcPmSU.js +2775 -0
  181. package/dist/chunks/filter-bar.U2ZcPmSU.js.map +1 -0
  182. package/dist/chunks/{fixed-scroller.7b42cb1e.js → fixed-scroller.DV7HtKDr.js} +20 -21
  183. package/dist/chunks/{fixed-scroller.7b42cb1e.js.map → fixed-scroller.DV7HtKDr.js.map} +1 -1
  184. package/dist/chunks/{index.9d7fb316.js → focus-trap.CwkbHfT8.js} +20 -20
  185. package/dist/chunks/focus-trap.CwkbHfT8.js.map +1 -0
  186. package/dist/chunks/{footer-actions.64f6f5d8.js → footer-actions.D9nQFagi.js} +20 -21
  187. package/dist/chunks/{footer-actions.64f6f5d8.js.map → footer-actions.D9nQFagi.js.map} +1 -1
  188. package/dist/chunks/form-layout-title.4Gz8-dJv.js +204 -0
  189. package/dist/chunks/form-layout-title.4Gz8-dJv.js.map +1 -0
  190. package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
  191. package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
  192. package/dist/chunks/{get-slot-text.bead058f.js → get-slot-text.D5WBGjic.js} +1 -1
  193. package/dist/chunks/{get-slot-text.bead058f.js.map → get-slot-text.D5WBGjic.js.map} +1 -1
  194. package/dist/chunks/{grid-layout.c2fe3057.js → grid-layout.CqLbbEzI.js} +15 -15
  195. package/dist/chunks/{grid-layout.c2fe3057.js.map → grid-layout.CqLbbEzI.js.map} +1 -1
  196. package/dist/chunks/header.Cr7115vM.js +307 -0
  197. package/dist/chunks/header.Cr7115vM.js.map +1 -0
  198. package/dist/chunks/{i18n.f7e6533e.js → i18n.DY5YXG5f.js} +46 -89
  199. package/dist/chunks/{i18n.f7e6533e.js.map → i18n.DY5YXG5f.js.map} +1 -1
  200. package/dist/chunks/image.0KzfycGE.js +78 -0
  201. package/dist/chunks/image.0KzfycGE.js.map +1 -0
  202. package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
  203. package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
  204. package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
  205. package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
  206. package/dist/chunks/{index.fedbb4c2.js → index.Dytpif0G.js} +2 -2
  207. package/dist/chunks/{index.fedbb4c2.js.map → index.Dytpif0G.js.map} +1 -1
  208. package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
  209. package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
  210. package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
  211. package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
  212. package/dist/chunks/info-icon.DvL1e5Iu.js +45 -0
  213. package/dist/chunks/info-icon.DvL1e5Iu.js.map +1 -0
  214. package/dist/chunks/{info.550f9511.js → info.CNegCnli.js} +16 -16
  215. package/dist/chunks/{info.550f9511.js.map → info.CNegCnli.js.map} +1 -1
  216. package/dist/chunks/input-field.iH1ICJkQ.js +344 -0
  217. package/dist/chunks/input-field.iH1ICJkQ.js.map +1 -0
  218. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  219. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  220. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  221. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  222. package/dist/chunks/{keyboard-navigation.bbc3d15c.js → keyboard-navigation.Clz1jOaA.js} +2 -2
  223. package/dist/chunks/{keyboard-navigation.bbc3d15c.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
  224. package/dist/chunks/link.DeNN3Amu.js +111 -0
  225. package/dist/chunks/link.DeNN3Amu.js.map +1 -0
  226. package/dist/chunks/listbox-option-tag.Bv4-hXnG.js +94 -0
  227. package/dist/chunks/listbox-option-tag.Bv4-hXnG.js.map +1 -0
  228. package/dist/chunks/{loading-button.6b81b546.js → loading-button.BI32pZiW.js} +19 -20
  229. package/dist/chunks/{loading-button.6b81b546.js.map → loading-button.BI32pZiW.js.map} +1 -1
  230. package/dist/chunks/loading-indicator.BFMEf39U.js +44 -0
  231. package/dist/chunks/loading-indicator.BFMEf39U.js.map +1 -0
  232. package/dist/chunks/{index.6bb6f38c.js → menu.DN-xhDQU.js} +80 -82
  233. package/dist/chunks/menu.DN-xhDQU.js.map +1 -0
  234. package/dist/chunks/modal-fullscreen.CeogBGfr.js +264 -0
  235. package/dist/chunks/modal-fullscreen.CeogBGfr.js.map +1 -0
  236. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
  237. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
  238. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js +495 -0
  239. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js.map +1 -0
  240. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  241. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  242. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  243. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  244. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  245. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  246. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  247. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  248. package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
  249. package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
  250. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  251. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  252. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  253. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  254. package/dist/chunks/pagination.BwG1MF4j.js +633 -0
  255. package/dist/chunks/pagination.BwG1MF4j.js.map +1 -0
  256. package/dist/chunks/{payment-method.d5595a7c.js → payment-method.NCItxw1D.js} +26 -27
  257. package/dist/chunks/{payment-method.d5595a7c.js.map → payment-method.NCItxw1D.js.map} +1 -1
  258. package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
  259. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
  260. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  261. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  262. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  263. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  264. package/dist/chunks/{index.a001a0a8.js → popover.DRb2GW7t.js} +48 -49
  265. package/dist/chunks/popover.DRb2GW7t.js.map +1 -0
  266. package/dist/chunks/{index.6295e754.js → popper-container.B76aE-3-.js} +180 -182
  267. package/dist/chunks/popper-container.B76aE-3-.js.map +1 -0
  268. package/dist/chunks/radio-group.B9HCffiZ.js +296 -0
  269. package/dist/chunks/radio-group.B9HCffiZ.js.map +1 -0
  270. package/dist/chunks/{radio-input.1dd15424.js → radio-input.BEzK-fgR.js} +13 -14
  271. package/dist/chunks/radio-input.BEzK-fgR.js.map +1 -0
  272. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  273. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  274. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  275. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  276. package/dist/chunks/{refresh.bd60f6a8.js → refresh.BfxRdaQb.js} +12 -12
  277. package/dist/chunks/{refresh.bd60f6a8.js.map → refresh.BfxRdaQb.js.map} +1 -1
  278. package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
  279. package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
  280. package/dist/chunks/search-bar.DxskyM4e.js +107 -0
  281. package/dist/chunks/search-bar.DxskyM4e.js.map +1 -0
  282. package/dist/chunks/{search.ade93bda.js → search.0lh99z1F.js} +15 -15
  283. package/dist/chunks/{search.ade93bda.js.map → search.0lh99z1F.js.map} +1 -1
  284. package/dist/chunks/secondary-nav.D66nxbU-.js +112 -0
  285. package/dist/chunks/secondary-nav.D66nxbU-.js.map +1 -0
  286. package/dist/chunks/segmented-control.NnFfAdTq.js +142 -0
  287. package/dist/chunks/segmented-control.NnFfAdTq.js.map +1 -0
  288. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  289. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  290. package/dist/chunks/selection-card-group.C-YLePO4.js +385 -0
  291. package/dist/chunks/selection-card-group.C-YLePO4.js.map +1 -0
  292. package/dist/chunks/sidepanel.B-LtA15e.js +230 -0
  293. package/dist/chunks/sidepanel.B-LtA15e.js.map +1 -0
  294. package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
  295. package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
  296. package/dist/chunks/status.types.Bqdcr1WO.js +42 -0
  297. package/dist/chunks/status.types.Bqdcr1WO.js.map +1 -0
  298. package/dist/chunks/step.CVoaYmVZ.js +284 -0
  299. package/dist/chunks/step.CVoaYmVZ.js.map +1 -0
  300. package/dist/chunks/structured-list-item.DQiPKhOI.js +101 -0
  301. package/dist/chunks/structured-list-item.DQiPKhOI.js.map +1 -0
  302. package/dist/chunks/success.DhioLvPD.js +5 -0
  303. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  304. package/dist/chunks/success.nNwxJRBS.js +5 -0
  305. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  306. package/dist/chunks/summary-grid-item-custom.B941Kdvq.js +720 -0
  307. package/dist/chunks/summary-grid-item-custom.B941Kdvq.js.map +1 -0
  308. package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
  309. package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
  310. package/dist/chunks/tabs.TNKpNgTM.js +185 -0
  311. package/dist/chunks/tabs.TNKpNgTM.js.map +1 -0
  312. package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
  313. package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
  314. package/dist/chunks/tag.CPhtHjDD.js +75 -0
  315. package/dist/chunks/tag.CPhtHjDD.js.map +1 -0
  316. package/dist/chunks/{teleport.afeb4c3b.js → teleport.L8qFCYpr.js} +20 -21
  317. package/dist/chunks/{teleport.afeb4c3b.js.map → teleport.L8qFCYpr.js.map} +1 -1
  318. package/dist/chunks/textarea.CJ8xiMjv.js +288 -0
  319. package/dist/chunks/textarea.CJ8xiMjv.js.map +1 -0
  320. package/dist/chunks/timeline-item.Cap9MXkH.js +531 -0
  321. package/dist/chunks/timeline-item.Cap9MXkH.js.map +1 -0
  322. package/dist/chunks/toast.Bwo57uNy.js +215 -0
  323. package/dist/chunks/toast.Bwo57uNy.js.map +1 -0
  324. package/dist/chunks/toggle-button.q9F2dsIi.js +79 -0
  325. package/dist/chunks/toggle-button.q9F2dsIi.js.map +1 -0
  326. package/dist/chunks/toggle.DmTjGY0a.js +161 -0
  327. package/dist/chunks/toggle.DmTjGY0a.js.map +1 -0
  328. package/dist/chunks/{tooltip.36172265.js → tooltip.CTR3s-Rm.js} +60 -61
  329. package/dist/chunks/tooltip.CTR3s-Rm.js.map +1 -0
  330. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js +408 -0
  331. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js.map +1 -0
  332. package/dist/chunks/typography.D7onlQ9v.js +73 -0
  333. package/dist/chunks/typography.D7onlQ9v.js.map +1 -0
  334. package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
  335. package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
  336. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  337. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  338. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  339. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  340. package/dist/chunks/{use-bento-toast-controller.3dc4e113.js → use-bento-toast-controller.C0A5tZgd.js} +3 -3
  341. package/dist/chunks/{use-bento-toast-controller.3dc4e113.js.map → use-bento-toast-controller.C0A5tZgd.js.map} +1 -1
  342. package/dist/chunks/{use-cached-selected-values.3c312296.js → use-cached-selected-values.BQBWFTvi.js} +271 -278
  343. package/dist/chunks/{use-cached-selected-values.3c312296.js.map → use-cached-selected-values.BQBWFTvi.js.map} +1 -1
  344. package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
  345. package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
  346. package/dist/chunks/{use-country-items.32e30471.js → use-country-items.CongYNiX.js} +4 -4
  347. package/dist/chunks/{use-country-items.32e30471.js.map → use-country-items.CongYNiX.js.map} +1 -1
  348. package/dist/chunks/{use-default-slot-validator.1169c221.js → use-default-slot-validator.O02rzsob.js} +1 -1
  349. package/dist/chunks/{use-default-slot-validator.1169c221.js.map → use-default-slot-validator.O02rzsob.js.map} +1 -1
  350. package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
  351. package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
  352. package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
  353. package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
  354. package/dist/chunks/{use-has-slot.4d98bf29.js → use-has-slot.B7eQSabc.js} +1 -1
  355. package/dist/chunks/{use-has-slot.4d98bf29.js.map → use-has-slot.B7eQSabc.js.map} +1 -1
  356. package/dist/chunks/warning-filled.DHw1rVWs.js +29 -0
  357. package/dist/chunks/warning-filled.DHw1rVWs.js.map +1 -0
  358. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  359. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  360. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  361. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  362. package/dist/click-outside.js +2 -20
  363. package/dist/click-outside.js.map +1 -1
  364. package/dist/code-snippet.js +5 -2133
  365. package/dist/code-snippet.js.map +1 -1
  366. package/dist/country.js +8 -101
  367. package/dist/country.js.map +1 -1
  368. package/dist/currency.js +3 -118
  369. package/dist/currency.js.map +1 -1
  370. package/dist/dashboard-template.js +3 -166
  371. package/dist/dashboard-template.js.map +1 -1
  372. package/dist/dashed-underline.js +5 -0
  373. package/dist/dashed-underline.js.map +1 -0
  374. package/dist/data-grid-template.js +2 -87
  375. package/dist/data-grid-template.js.map +1 -1
  376. package/dist/data-grid.js +8 -2651
  377. package/dist/data-grid.js.map +1 -1
  378. package/dist/date-picker.js +5 -272
  379. package/dist/date-picker.js.map +1 -1
  380. package/dist/date-range-picker.js +2 -2
  381. package/dist/date.js +1 -1
  382. package/dist/divider.js +1 -1
  383. package/dist/dropdown.js +12 -205
  384. package/dist/dropdown.js.map +1 -1
  385. package/dist/empty-state.js +5 -176
  386. package/dist/empty-state.js.map +1 -1
  387. package/dist/filter-bar.js +5 -2780
  388. package/dist/filter-bar.js.map +1 -1
  389. package/dist/focus-trap.js +1 -1
  390. package/dist/form-layout.js +5 -205
  391. package/dist/form-layout.js.map +1 -1
  392. package/dist/header.js +2 -306
  393. package/dist/header.js.map +1 -1
  394. package/dist/image.js +4 -75
  395. package/dist/image.js.map +1 -1
  396. package/dist/index.js +263 -259
  397. package/dist/index.js.map +1 -1
  398. package/dist/info-icon.js +2 -43
  399. package/dist/info-icon.js.map +1 -1
  400. package/dist/input-field.js +7 -342
  401. package/dist/input-field.js.map +1 -1
  402. package/dist/internal.js +15 -15
  403. package/dist/link.js +1 -1
  404. package/dist/loading-indicator.js +3 -41
  405. package/dist/loading-indicator.js.map +1 -1
  406. package/dist/menu.js +1 -1
  407. package/dist/modal-fullscreen.js +3 -263
  408. package/dist/modal-fullscreen.js.map +1 -1
  409. package/dist/modal.js +11 -501
  410. package/dist/modal.js.map +1 -1
  411. package/dist/pagination.js +2 -634
  412. package/dist/pagination.js.map +1 -1
  413. package/dist/payment-method.js +4 -4
  414. package/dist/payment-method.js.map +1 -1
  415. package/dist/popover.js +1 -1
  416. package/dist/popper-container.js +1 -1
  417. package/dist/radio-group.js +6 -296
  418. package/dist/radio-group.js.map +1 -1
  419. package/dist/search-bar.js +6 -107
  420. package/dist/search-bar.js.map +1 -1
  421. package/dist/secondary-nav.js +2 -112
  422. package/dist/secondary-nav.js.map +1 -1
  423. package/dist/segmented-control.js +4 -249
  424. package/dist/segmented-control.js.map +1 -1
  425. package/dist/selection-card.js +4 -384
  426. package/dist/selection-card.js.map +1 -1
  427. package/dist/sidepanel.js +4 -229
  428. package/dist/sidepanel.js.map +1 -1
  429. package/dist/status.js +3 -50
  430. package/dist/status.js.map +1 -1
  431. package/dist/stepper.js +5 -283
  432. package/dist/stepper.js.map +1 -1
  433. package/dist/structured-list.js +1 -1
  434. package/dist/summary-grid.js +9 -720
  435. package/dist/summary-grid.js.map +1 -1
  436. package/dist/tabs.js +3 -184
  437. package/dist/tabs.js.map +1 -1
  438. package/dist/tag.js +3 -73
  439. package/dist/tag.js.map +1 -1
  440. package/dist/textarea.js +2 -286
  441. package/dist/textarea.js.map +1 -1
  442. package/dist/timeline.js +7 -530
  443. package/dist/timeline.js.map +1 -1
  444. package/dist/toast.js +2 -215
  445. package/dist/toast.js.map +1 -1
  446. package/dist/toggle.js +4 -159
  447. package/dist/toggle.js.map +1 -1
  448. package/dist/tutorial.js +2 -407
  449. package/dist/tutorial.js.map +1 -1
  450. package/dist/typography.js +1 -1
  451. package/dist/web-types.json +1 -1
  452. package/package.json +4 -6
  453. package/dist/assets/index.css +0 -1
  454. package/dist/assets/index26.css +0 -1
  455. package/dist/assets/index30.css +0 -1
  456. package/dist/assets/index34.css +0 -1
  457. package/dist/assets/index37.css +0 -1
  458. package/dist/assets/index40.css +0 -1
  459. package/dist/assets/index6.css +0 -1
  460. package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
  461. package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
  462. package/dist/chunks/1-generic-use.ccca5813.js +0 -5
  463. package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
  464. package/dist/chunks/2-generic-use.443db127.js +0 -5
  465. package/dist/chunks/2-generic-use.443db127.js.map +0 -1
  466. package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
  467. package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
  468. package/dist/chunks/3-generic-use.9f74667f.js +0 -5
  469. package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
  470. package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
  471. package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
  472. package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
  473. package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
  474. package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
  475. package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
  476. package/dist/chunks/_plugin-vue_export-helper.dad06003.js.map +0 -1
  477. package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
  478. package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
  479. package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
  480. package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
  481. package/dist/chunks/adyen-giving.480913b5.js +0 -5
  482. package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
  483. package/dist/chunks/adyen-giving.54ed984c.js +0 -5
  484. package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
  485. package/dist/chunks/checkmark-circle-fill.c45a999d.js +0 -44
  486. package/dist/chunks/cross-small.b85406fe.js +0 -29
  487. package/dist/chunks/cross.26509efc.js +0 -29
  488. package/dist/chunks/dropdown.0ae3b842.js.map +0 -1
  489. package/dist/chunks/events.f14a214b.js +0 -50
  490. package/dist/chunks/index.2d7b4511.js.map +0 -1
  491. package/dist/chunks/index.2fcd1233.js +0 -103
  492. package/dist/chunks/index.2fcd1233.js.map +0 -1
  493. package/dist/chunks/index.6295e754.js.map +0 -1
  494. package/dist/chunks/index.6bb6f38c.js.map +0 -1
  495. package/dist/chunks/index.8aa536a8.js +0 -62
  496. package/dist/chunks/index.8aa536a8.js.map +0 -1
  497. package/dist/chunks/index.9d7fb316.js.map +0 -1
  498. package/dist/chunks/index.a001a0a8.js.map +0 -1
  499. package/dist/chunks/index.b18c78d6.js +0 -23
  500. package/dist/chunks/index.b18c78d6.js.map +0 -1
  501. package/dist/chunks/index.eb38a6c4.js +0 -118
  502. package/dist/chunks/index.eb38a6c4.js.map +0 -1
  503. package/dist/chunks/index.ee15db35.js +0 -74
  504. package/dist/chunks/index.ee15db35.js.map +0 -1
  505. package/dist/chunks/index.f9d081d2.js.map +0 -1
  506. package/dist/chunks/internal-error.35cbb071.js +0 -5
  507. package/dist/chunks/internal-error.35cbb071.js.map +0 -1
  508. package/dist/chunks/internal-error.9a4823ed.js +0 -5
  509. package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
  510. package/dist/chunks/listbox-option-tag.2aea037c.js +0 -129
  511. package/dist/chunks/listbox-option-tag.2aea037c.js.map +0 -1
  512. package/dist/chunks/no-results-found.58856d70.js +0 -5
  513. package/dist/chunks/no-results-found.58856d70.js.map +0 -1
  514. package/dist/chunks/no-results-found.cbb12f78.js +0 -5
  515. package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
  516. package/dist/chunks/notifications-cleared.71025c22.js +0 -5
  517. package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
  518. package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
  519. package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
  520. package/dist/chunks/page-not-found.a500440d.js +0 -5
  521. package/dist/chunks/page-not-found.a500440d.js.map +0 -1
  522. package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
  523. package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
  524. package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
  525. package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
  526. package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
  527. package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
  528. package/dist/chunks/radio-input.1dd15424.js.map +0 -1
  529. package/dist/chunks/referrals.178ce0eb.js +0 -5
  530. package/dist/chunks/referrals.178ce0eb.js.map +0 -1
  531. package/dist/chunks/referrals.599047da.js +0 -5
  532. package/dist/chunks/referrals.599047da.js.map +0 -1
  533. package/dist/chunks/success.41981fe8.js +0 -5
  534. package/dist/chunks/success.41981fe8.js.map +0 -1
  535. package/dist/chunks/success.77fac78b.js +0 -5
  536. package/dist/chunks/success.77fac78b.js.map +0 -1
  537. package/dist/chunks/tooltip.36172265.js.map +0 -1
  538. package/dist/chunks/upload-files.2708eca7.js +0 -5
  539. package/dist/chunks/upload-files.2708eca7.js.map +0 -1
  540. package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
  541. package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
  542. package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
  543. package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
  544. package/dist/chunks/wrong-environment.f890a237.js +0 -5
  545. package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
  546. /package/dist/@types/packages/{vue2/src/components/internal → core/src/components}/radio-input/radio-input.types.d.ts +0 -0
  547. /package/dist/assets/{index44.css → alert.css} +0 -0
  548. /package/dist/assets/{index15.css → avatar-image.css} +0 -0
  549. /package/dist/assets/{index3.css → badge.css} +0 -0
  550. /package/dist/assets/{index16.css → checkbox-group.css} +0 -0
  551. /package/dist/assets/{index46.css → code-snippet.css} +0 -0
  552. /package/dist/assets/{index19.css → country.css} +0 -0
  553. /package/dist/assets/{index22.css → date-picker.css} +0 -0
  554. /package/dist/assets/{index42.css → date-range-picker.css} +0 -0
  555. /package/dist/assets/{index14.css → divider.css} +0 -0
  556. /package/dist/assets/{index47.css → dropdown-tag.css} +0 -0
  557. /package/dist/assets/{index43.css → empty-state.css} +0 -0
  558. /package/dist/assets/{index7.css → focus-trap.css} +0 -0
  559. /package/dist/assets/{index45.css → form-layout-title.css} +0 -0
  560. /package/dist/assets/{index20.css → header.css} +0 -0
  561. /package/dist/assets/{index8.css → info-icon.css} +0 -0
  562. /package/dist/assets/{index41.css → input-field.css} +0 -0
  563. /package/dist/assets/{index9.css → loading-indicator.css} +0 -0
  564. /package/dist/assets/{index13.css → pagination.css} +0 -0
  565. /package/dist/assets/{index4.css → popper-container.css} +0 -0
  566. /package/dist/assets/{index23.css → radio-group.css} +0 -0
  567. /package/dist/assets/{index24.css → search-bar.css} +0 -0
  568. /package/dist/assets/{index25.css → secondary-nav.css} +0 -0
  569. /package/dist/assets/{index27.css → step.css} +0 -0
  570. /package/dist/assets/{index31.css → structured-list-item.css} +0 -0
  571. /package/dist/assets/{index33.css → summary-grid-item-custom.css} +0 -0
  572. /package/dist/assets/{index29.css → tabs.css} +0 -0
  573. /package/dist/assets/{index35.css → tag.css} +0 -0
  574. /package/dist/assets/{index28.css → textarea.css} +0 -0
  575. /package/dist/assets/{index32.css → timeline-item.css} +0 -0
  576. /package/dist/assets/{index36.css → toast.css} +0 -0
  577. /package/dist/assets/{index12.css → toggle-button.css} +0 -0
  578. /package/dist/assets/{index48.css → typography.css} +0 -0
@@ -1,2136 +1,8 @@
1
- import { openBlock as O, createElementBlock as le, mergeProps as Fe, toDisplayString as Ae, createCommentVNode as F, createElementVNode as ae, defineComponent as Qe, ref as ge, computed as ue, shallowRef as Pe, onMounted as et, watch as tt, watchEffect as nt, resolveComponent as K, normalizeClass as He, createBlock as oe, createVNode as me, withCtx as he, createTextVNode as $e, renderSlot as rt, normalizeProps as it, guardReactiveProps as st, pushScopeId as ot, popScopeId as lt } from "vue";
2
- import { highlightActiveLine as at, keymap as ut, EditorView as Ve, lineNumbers as ht } from "@codemirror/view";
3
- import { EditorSelection as ft, Compartment as Ne, EditorState as je } from "@codemirror/state";
4
- import { indentWithTab as ct, history as dt } from "@codemirror/commands";
5
- import { syntaxHighlighting as pt, HighlightStyle as gt } from "@codemirror/language";
6
- import { B as mt } from "./chunks/dropdown.0ae3b842.js";
7
- import { a as bt } from "./chunks/button.ae4760cd.js";
8
- import { B as yt } from "./chunks/index.ee15db35.js";
9
- import { b as xt } from "./chunks/tooltip.36172265.js";
10
- import { BentoLoadingIndicator as kt } from "./loading-indicator.js";
11
- import { u as _t } from "./chunks/i18n.f7e6533e.js";
12
- import { _ as qe } from "./chunks/_plugin-vue_export-helper.dad06003.js";
13
- import { h as vt } from "./chunks/base-modal.4102f69d.js";
14
- import { C as wt } from "./chunks/copy.60ee6ac3.js";
15
- import { json as Ct } from "@codemirror/lang-json";
16
- import { xml as Nt } from "@codemirror/lang-xml";
17
- import { javascript as St } from "@codemirror/lang-javascript";
18
- import { java as At } from "@codemirror/lang-java";
19
- import { python as It } from "@codemirror/lang-python";
20
- import "./assets/index46.css";
21
- const Lt = 1024;
22
- let Bt = 0;
23
- class v {
24
- /**
25
- Create a new node prop type.
26
- */
27
- constructor(e = {}) {
28
- this.id = Bt++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
29
- throw new Error("This node type doesn't define a deserialize function");
30
- });
31
- }
32
- /**
33
- This is meant to be used with
34
- [`NodeSet.extend`](#common.NodeSet.extend) or
35
- [`LRParser.configure`](#lr.ParserConfig.props) to compute
36
- prop values for each node type in the set. Takes a [match
37
- object](#common.NodeType^match) or function that returns undefined
38
- if the node type doesn't get this prop, and the prop's value if
39
- it does.
40
- */
41
- add(e) {
42
- if (this.perNode)
43
- throw new RangeError("Can't add per-node props to node types");
44
- return typeof e != "function" && (e = G.match(e)), (t) => {
45
- let n = e(t);
46
- return n === void 0 ? null : [this, n];
47
- };
48
- }
49
- }
50
- v.closedBy = new v({ deserialize: (r) => r.split(" ") });
51
- v.openedBy = new v({ deserialize: (r) => r.split(" ") });
52
- v.group = new v({ deserialize: (r) => r.split(" ") });
53
- v.isolate = new v({ deserialize: (r) => {
54
- if (r && r != "rtl" && r != "ltr" && r != "auto")
55
- throw new RangeError("Invalid value for isolate: " + r);
56
- return r || "auto";
57
- } });
58
- v.contextHash = new v({ perNode: !0 });
59
- v.lookAhead = new v({ perNode: !0 });
60
- v.mounted = new v({ perNode: !0 });
61
- class we {
62
- constructor(e, t, n) {
63
- this.tree = e, this.overlay = t, this.parser = n;
64
- }
65
- /**
66
- @internal
67
- */
68
- static get(e) {
69
- return e && e.props && e.props[v.mounted.id];
70
- }
71
- }
72
- const Et = /* @__PURE__ */ Object.create(null);
73
- class G {
74
- /**
75
- @internal
76
- */
77
- constructor(e, t, n, i = 0) {
78
- this.name = e, this.props = t, this.id = n, this.flags = i;
79
- }
80
- /**
81
- Define a node type.
82
- */
83
- static define(e) {
84
- let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : Et, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new G(e.name || "", t, e.id, n);
85
- if (e.props) {
86
- for (let s of e.props)
87
- if (Array.isArray(s) || (s = s(i)), s) {
88
- if (s[0].perNode)
89
- throw new RangeError("Can't store a per-node prop on a node type");
90
- t[s[0].id] = s[1];
91
- }
92
- }
93
- return i;
94
- }
95
- /**
96
- Retrieves a node prop for this type. Will return `undefined` if
97
- the prop isn't present on this node.
98
- */
99
- prop(e) {
100
- return this.props[e.id];
101
- }
102
- /**
103
- True when this is the top node of a grammar.
104
- */
105
- get isTop() {
106
- return (this.flags & 1) > 0;
107
- }
108
- /**
109
- True when this node is produced by a skip rule.
110
- */
111
- get isSkipped() {
112
- return (this.flags & 2) > 0;
113
- }
114
- /**
115
- Indicates whether this is an error node.
116
- */
117
- get isError() {
118
- return (this.flags & 4) > 0;
119
- }
120
- /**
121
- When true, this node type doesn't correspond to a user-declared
122
- named node, for example because it is used to cache repetition.
123
- */
124
- get isAnonymous() {
125
- return (this.flags & 8) > 0;
126
- }
127
- /**
128
- Returns true when this node's name or one of its
129
- [groups](#common.NodeProp^group) matches the given string.
130
- */
131
- is(e) {
132
- if (typeof e == "string") {
133
- if (this.name == e)
134
- return !0;
135
- let t = this.prop(v.group);
136
- return t ? t.indexOf(e) > -1 : !1;
137
- }
138
- return this.id == e;
139
- }
140
- /**
141
- Create a function from node types to arbitrary values by
142
- specifying an object whose property names are node or
143
- [group](#common.NodeProp^group) names. Often useful with
144
- [`NodeProp.add`](#common.NodeProp.add). You can put multiple
145
- names, separated by spaces, in a single property name to map
146
- multiple node names to a single value.
147
- */
148
- static match(e) {
149
- let t = /* @__PURE__ */ Object.create(null);
150
- for (let n in e)
151
- for (let i of n.split(" "))
152
- t[i] = e[n];
153
- return (n) => {
154
- for (let i = n.prop(v.group), s = -1; s < (i ? i.length : 0); s++) {
155
- let o = t[s < 0 ? n.name : i[s]];
156
- if (o)
157
- return o;
158
- }
159
- };
160
- }
161
- }
162
- G.none = new G(
163
- "",
164
- /* @__PURE__ */ Object.create(null),
165
- 0,
166
- 8
167
- /* NodeFlag.Anonymous */
168
- );
169
- const be = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap();
170
- var I;
171
- (function(r) {
172
- r[r.ExcludeBuffers = 1] = "ExcludeBuffers", r[r.IncludeAnonymous = 2] = "IncludeAnonymous", r[r.IgnoreMounts = 4] = "IgnoreMounts", r[r.IgnoreOverlays = 8] = "IgnoreOverlays";
173
- })(I || (I = {}));
174
- class R {
175
- /**
176
- Construct a new tree. See also [`Tree.build`](#common.Tree^build).
177
- */
178
- constructor(e, t, n, i, s) {
179
- if (this.type = e, this.children = t, this.positions = n, this.length = i, this.props = null, s && s.length) {
180
- this.props = /* @__PURE__ */ Object.create(null);
181
- for (let [o, u] of s)
182
- this.props[typeof o == "number" ? o : o.id] = u;
183
- }
184
- }
185
- /**
186
- @internal
187
- */
188
- toString() {
189
- let e = we.get(this);
190
- if (e && !e.overlay)
191
- return e.tree.toString();
192
- let t = "";
193
- for (let n of this.children) {
194
- let i = n.toString();
195
- i && (t && (t += ","), t += i);
196
- }
197
- return this.type.name ? (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (t.length ? "(" + t + ")" : "") : t;
198
- }
199
- /**
200
- Get a [tree cursor](#common.TreeCursor) positioned at the top of
201
- the tree. Mode can be used to [control](#common.IterMode) which
202
- nodes the cursor visits.
203
- */
204
- cursor(e = 0) {
205
- return new Le(this.topNode, e);
206
- }
207
- /**
208
- Get a [tree cursor](#common.TreeCursor) pointing into this tree
209
- at the given position and side (see
210
- [`moveTo`](#common.TreeCursor.moveTo).
211
- */
212
- cursorAt(e, t = 0, n = 0) {
213
- let i = be.get(this) || this.topNode, s = new Le(i);
214
- return s.moveTo(e, t), be.set(this, s._tree), s;
215
- }
216
- /**
217
- Get a [syntax node](#common.SyntaxNode) object for the top of the
218
- tree.
219
- */
220
- get topNode() {
221
- return new z(this, 0, 0, null);
222
- }
223
- /**
224
- Get the [syntax node](#common.SyntaxNode) at the given position.
225
- If `side` is -1, this will move into nodes that end at the
226
- position. If 1, it'll move into nodes that start at the
227
- position. With 0, it'll only enter nodes that cover the position
228
- from both sides.
229
-
230
- Note that this will not enter
231
- [overlays](#common.MountedTree.overlay), and you often want
232
- [`resolveInner`](#common.Tree.resolveInner) instead.
233
- */
234
- resolve(e, t = 0) {
235
- let n = de(be.get(this) || this.topNode, e, t, !1);
236
- return be.set(this, n), n;
237
- }
238
- /**
239
- Like [`resolve`](#common.Tree.resolve), but will enter
240
- [overlaid](#common.MountedTree.overlay) nodes, producing a syntax node
241
- pointing into the innermost overlaid tree at the given position
242
- (with parent links going through all parent structure, including
243
- the host trees).
244
- */
245
- resolveInner(e, t = 0) {
246
- let n = de(Re.get(this) || this.topNode, e, t, !0);
247
- return Re.set(this, n), n;
248
- }
249
- /**
250
- In some situations, it can be useful to iterate through all
251
- nodes around a position, including those in overlays that don't
252
- directly cover the position. This method gives you an iterator
253
- that will produce all nodes, from small to big, around the given
254
- position.
255
- */
256
- resolveStack(e, t = 0) {
257
- return Mt(this, e, t);
258
- }
259
- /**
260
- Iterate over the tree and its children, calling `enter` for any
261
- node that touches the `from`/`to` region (if given) before
262
- running over such a node's children, and `leave` (if given) when
263
- leaving the node. When `enter` returns `false`, that node will
264
- not have its children iterated over (or `leave` called).
265
- */
266
- iterate(e) {
267
- let { enter: t, leave: n, from: i = 0, to: s = this.length } = e, o = e.mode || 0, u = (o & I.IncludeAnonymous) > 0;
268
- for (let f = this.cursor(o | I.IncludeAnonymous); ; ) {
269
- let x = !1;
270
- if (f.from <= s && f.to >= i && (!u && f.type.isAnonymous || t(f) !== !1)) {
271
- if (f.firstChild())
272
- continue;
273
- x = !0;
274
- }
275
- for (; x && n && (u || !f.type.isAnonymous) && n(f), !f.nextSibling(); ) {
276
- if (!f.parent())
277
- return;
278
- x = !0;
279
- }
280
- }
281
- }
282
- /**
283
- Get the value of the given [node prop](#common.NodeProp) for this
284
- node. Works with both per-node and per-type props.
285
- */
286
- prop(e) {
287
- return e.perNode ? this.props ? this.props[e.id] : void 0 : this.type.prop(e);
288
- }
289
- /**
290
- Returns the node's [per-node props](#common.NodeProp.perNode) in a
291
- format that can be passed to the [`Tree`](#common.Tree)
292
- constructor.
293
- */
294
- get propValues() {
295
- let e = [];
296
- if (this.props)
297
- for (let t in this.props)
298
- e.push([+t, this.props[t]]);
299
- return e;
300
- }
301
- /**
302
- Balance the direct children of this tree, producing a copy of
303
- which may have children grouped into subtrees with type
304
- [`NodeType.none`](#common.NodeType^none).
305
- */
306
- balance(e = {}) {
307
- return this.children.length <= 8 ? this : ze(G.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, i) => new R(this.type, t, n, i, this.propValues), e.makeTree || ((t, n, i) => new R(G.none, t, n, i)));
308
- }
309
- /**
310
- Build a tree from a postfix-ordered buffer of node information,
311
- or a cursor over such a buffer.
312
- */
313
- static build(e) {
314
- return Tt(e);
315
- }
316
- }
317
- R.empty = new R(G.none, [], [], 0);
318
- class Ee {
319
- constructor(e, t) {
320
- this.buffer = e, this.index = t;
321
- }
322
- get id() {
323
- return this.buffer[this.index - 4];
324
- }
325
- get start() {
326
- return this.buffer[this.index - 3];
327
- }
328
- get end() {
329
- return this.buffer[this.index - 2];
330
- }
331
- get size() {
332
- return this.buffer[this.index - 1];
333
- }
334
- get pos() {
335
- return this.index;
336
- }
337
- next() {
338
- this.index -= 4;
339
- }
340
- fork() {
341
- return new Ee(this.buffer, this.index);
342
- }
343
- }
344
- class Q {
345
- /**
346
- Create a tree buffer.
347
- */
348
- constructor(e, t, n) {
349
- this.buffer = e, this.length = t, this.set = n;
350
- }
351
- /**
352
- @internal
353
- */
354
- get type() {
355
- return G.none;
356
- }
357
- /**
358
- @internal
359
- */
360
- toString() {
361
- let e = [];
362
- for (let t = 0; t < this.buffer.length; )
363
- e.push(this.childString(t)), t = this.buffer[t + 3];
364
- return e.join(",");
365
- }
366
- /**
367
- @internal
368
- */
369
- childString(e) {
370
- let t = this.buffer[e], n = this.buffer[e + 3], i = this.set.types[t], s = i.name;
371
- if (/\W/.test(s) && !i.isError && (s = JSON.stringify(s)), e += 4, n == e)
372
- return s;
373
- let o = [];
374
- for (; e < n; )
375
- o.push(this.childString(e)), e = this.buffer[e + 3];
376
- return s + "(" + o.join(",") + ")";
377
- }
378
- /**
379
- @internal
380
- */
381
- findChild(e, t, n, i, s) {
382
- let { buffer: o } = this, u = -1;
383
- for (let f = e; f != t && !(Xe(s, i, o[f + 1], o[f + 2]) && (u = f, n > 0)); f = o[f + 3])
384
- ;
385
- return u;
386
- }
387
- /**
388
- @internal
389
- */
390
- slice(e, t, n) {
391
- let i = this.buffer, s = new Uint16Array(t - e), o = 0;
392
- for (let u = e, f = 0; u < t; ) {
393
- s[f++] = i[u++], s[f++] = i[u++] - n;
394
- let x = s[f++] = i[u++] - n;
395
- s[f++] = i[u++] - e, o = Math.max(o, x);
396
- }
397
- return new Q(s, o, this.set);
398
- }
399
- }
400
- function Xe(r, e, t, n) {
401
- switch (r) {
402
- case -2:
403
- return t < e;
404
- case -1:
405
- return n >= e && t < e;
406
- case 0:
407
- return t < e && n > e;
408
- case 1:
409
- return t <= e && n > e;
410
- case 2:
411
- return n > e;
412
- case 4:
413
- return !0;
414
- }
415
- }
416
- function de(r, e, t, n) {
417
- for (var i; r.from == r.to || (t < 1 ? r.from >= e : r.from > e) || (t > -1 ? r.to <= e : r.to < e); ) {
418
- let o = !n && r instanceof z && r.index < 0 ? null : r.parent;
419
- if (!o)
420
- return r;
421
- r = o;
422
- }
423
- let s = n ? 0 : I.IgnoreOverlays;
424
- if (n)
425
- for (let o = r, u = o.parent; u; o = u, u = o.parent)
426
- o instanceof z && o.index < 0 && ((i = u.enter(e, t, s)) === null || i === void 0 ? void 0 : i.from) != o.from && (r = u);
427
- for (; ; ) {
428
- let o = r.enter(e, t, s);
429
- if (!o)
430
- return r;
431
- r = o;
432
- }
433
- }
434
- class Ye {
435
- cursor(e = 0) {
436
- return new Le(this, e);
437
- }
438
- getChild(e, t = null, n = null) {
439
- let i = De(this, e, t, n);
440
- return i.length ? i[0] : null;
441
- }
442
- getChildren(e, t = null, n = null) {
443
- return De(this, e, t, n);
444
- }
445
- resolve(e, t = 0) {
446
- return de(this, e, t, !1);
447
- }
448
- resolveInner(e, t = 0) {
449
- return de(this, e, t, !0);
450
- }
451
- matchContext(e) {
452
- return Ie(this, e);
453
- }
454
- enterUnfinishedNodesBefore(e) {
455
- let t = this.childBefore(e), n = this;
456
- for (; t; ) {
457
- let i = t.lastChild;
458
- if (!i || i.to != t.to)
459
- break;
460
- i.type.isError && i.from == i.to ? (n = t, t = i.prevSibling) : t = i;
461
- }
462
- return n;
463
- }
464
- get node() {
465
- return this;
466
- }
467
- get next() {
468
- return this.parent;
469
- }
470
- }
471
- class z extends Ye {
472
- constructor(e, t, n, i) {
473
- super(), this._tree = e, this.from = t, this.index = n, this._parent = i;
474
- }
475
- get type() {
476
- return this._tree.type;
477
- }
478
- get name() {
479
- return this._tree.type.name;
480
- }
481
- get to() {
482
- return this.from + this._tree.length;
483
- }
484
- nextChild(e, t, n, i, s = 0) {
485
- for (let o = this; ; ) {
486
- for (let { children: u, positions: f } = o._tree, x = t > 0 ? u.length : -1; e != x; e += t) {
487
- let w = u[e], C = f[e] + o.from;
488
- if (Xe(i, n, C, C + w.length)) {
489
- if (w instanceof Q) {
490
- if (s & I.ExcludeBuffers)
491
- continue;
492
- let A = w.findChild(0, w.buffer.length, t, n - C, i);
493
- if (A > -1)
494
- return new Z(new Ot(o, w, e, C), null, A);
495
- } else if (s & I.IncludeAnonymous || !w.type.isAnonymous || Oe(w)) {
496
- let A;
497
- if (!(s & I.IgnoreMounts) && (A = we.get(w)) && !A.overlay)
498
- return new z(A.tree, C, e, o);
499
- let B = new z(w, C, e, o);
500
- return s & I.IncludeAnonymous || !B.type.isAnonymous ? B : B.nextChild(t < 0 ? w.children.length - 1 : 0, t, n, i);
501
- }
502
- }
503
- }
504
- if (s & I.IncludeAnonymous || !o.type.isAnonymous || (o.index >= 0 ? e = o.index + t : e = t < 0 ? -1 : o._parent._tree.children.length, o = o._parent, !o))
505
- return null;
506
- }
507
- }
508
- get firstChild() {
509
- return this.nextChild(
510
- 0,
511
- 1,
512
- 0,
513
- 4
514
- /* Side.DontCare */
515
- );
516
- }
517
- get lastChild() {
518
- return this.nextChild(
519
- this._tree.children.length - 1,
520
- -1,
521
- 0,
522
- 4
523
- /* Side.DontCare */
524
- );
525
- }
526
- childAfter(e) {
527
- return this.nextChild(
528
- 0,
529
- 1,
530
- e,
531
- 2
532
- /* Side.After */
533
- );
534
- }
535
- childBefore(e) {
536
- return this.nextChild(
537
- this._tree.children.length - 1,
538
- -1,
539
- e,
540
- -2
541
- /* Side.Before */
542
- );
543
- }
544
- enter(e, t, n = 0) {
545
- let i;
546
- if (!(n & I.IgnoreOverlays) && (i = we.get(this._tree)) && i.overlay) {
547
- let s = e - this.from;
548
- for (let { from: o, to: u } of i.overlay)
549
- if ((t > 0 ? o <= s : o < s) && (t < 0 ? u >= s : u > s))
550
- return new z(i.tree, i.overlay[0].from + this.from, -1, this);
551
- }
552
- return this.nextChild(0, 1, e, t, n);
553
- }
554
- nextSignificantParent() {
555
- let e = this;
556
- for (; e.type.isAnonymous && e._parent; )
557
- e = e._parent;
558
- return e;
559
- }
560
- get parent() {
561
- return this._parent ? this._parent.nextSignificantParent() : null;
562
- }
563
- get nextSibling() {
564
- return this._parent && this.index >= 0 ? this._parent.nextChild(
565
- this.index + 1,
566
- 1,
567
- 0,
568
- 4
569
- /* Side.DontCare */
570
- ) : null;
571
- }
572
- get prevSibling() {
573
- return this._parent && this.index >= 0 ? this._parent.nextChild(
574
- this.index - 1,
575
- -1,
576
- 0,
577
- 4
578
- /* Side.DontCare */
579
- ) : null;
580
- }
581
- get tree() {
582
- return this._tree;
583
- }
584
- toTree() {
585
- return this._tree;
586
- }
587
- /**
588
- @internal
589
- */
590
- toString() {
591
- return this._tree.toString();
592
- }
593
- }
594
- function De(r, e, t, n) {
595
- let i = r.cursor(), s = [];
596
- if (!i.firstChild())
597
- return s;
598
- if (t != null) {
599
- for (let o = !1; !o; )
600
- if (o = i.type.is(t), !i.nextSibling())
601
- return s;
602
- }
603
- for (; ; ) {
604
- if (n != null && i.type.is(n))
605
- return s;
606
- if (i.type.is(e) && s.push(i.node), !i.nextSibling())
607
- return n == null ? s : [];
608
- }
609
- }
610
- function Ie(r, e, t = e.length - 1) {
611
- for (let n = r.parent; t >= 0; n = n.parent) {
612
- if (!n)
613
- return !1;
614
- if (!n.type.isAnonymous) {
615
- if (e[t] && e[t] != n.name)
616
- return !1;
617
- t--;
618
- }
619
- }
620
- return !0;
621
- }
622
- class Ot {
623
- constructor(e, t, n, i) {
624
- this.parent = e, this.buffer = t, this.index = n, this.start = i;
625
- }
626
- }
627
- class Z extends Ye {
628
- get name() {
629
- return this.type.name;
630
- }
631
- get from() {
632
- return this.context.start + this.context.buffer.buffer[this.index + 1];
633
- }
634
- get to() {
635
- return this.context.start + this.context.buffer.buffer[this.index + 2];
636
- }
637
- constructor(e, t, n) {
638
- super(), this.context = e, this._parent = t, this.index = n, this.type = e.buffer.set.types[e.buffer.buffer[n]];
639
- }
640
- child(e, t, n) {
641
- let { buffer: i } = this.context, s = i.findChild(this.index + 4, i.buffer[this.index + 3], e, t - this.context.start, n);
642
- return s < 0 ? null : new Z(this.context, this, s);
643
- }
644
- get firstChild() {
645
- return this.child(
646
- 1,
647
- 0,
648
- 4
649
- /* Side.DontCare */
650
- );
651
- }
652
- get lastChild() {
653
- return this.child(
654
- -1,
655
- 0,
656
- 4
657
- /* Side.DontCare */
658
- );
659
- }
660
- childAfter(e) {
661
- return this.child(
662
- 1,
663
- e,
664
- 2
665
- /* Side.After */
666
- );
667
- }
668
- childBefore(e) {
669
- return this.child(
670
- -1,
671
- e,
672
- -2
673
- /* Side.Before */
674
- );
675
- }
676
- enter(e, t, n = 0) {
677
- if (n & I.ExcludeBuffers)
678
- return null;
679
- let { buffer: i } = this.context, s = i.findChild(this.index + 4, i.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
680
- return s < 0 ? null : new Z(this.context, this, s);
681
- }
682
- get parent() {
683
- return this._parent || this.context.parent.nextSignificantParent();
684
- }
685
- externalSibling(e) {
686
- return this._parent ? null : this.context.parent.nextChild(
687
- this.context.index + e,
688
- e,
689
- 0,
690
- 4
691
- /* Side.DontCare */
692
- );
693
- }
694
- get nextSibling() {
695
- let { buffer: e } = this.context, t = e.buffer[this.index + 3];
696
- return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new Z(this.context, this._parent, t) : this.externalSibling(1);
697
- }
698
- get prevSibling() {
699
- let { buffer: e } = this.context, t = this._parent ? this._parent.index + 4 : 0;
700
- return this.index == t ? this.externalSibling(-1) : new Z(this.context, this._parent, e.findChild(
701
- t,
702
- this.index,
703
- -1,
704
- 0,
705
- 4
706
- /* Side.DontCare */
707
- ));
708
- }
709
- get tree() {
710
- return null;
711
- }
712
- toTree() {
713
- let e = [], t = [], { buffer: n } = this.context, i = this.index + 4, s = n.buffer[this.index + 3];
714
- if (s > i) {
715
- let o = n.buffer[this.index + 1];
716
- e.push(n.slice(i, s, o)), t.push(0);
717
- }
718
- return new R(this.type, e, t, this.to - this.from);
719
- }
720
- /**
721
- @internal
722
- */
723
- toString() {
724
- return this.context.buffer.childString(this.index);
725
- }
726
- }
727
- function Ze(r) {
728
- if (!r.length)
729
- return null;
730
- let e = 0, t = r[0];
731
- for (let s = 1; s < r.length; s++) {
732
- let o = r[s];
733
- (o.from > t.from || o.to < t.to) && (t = o, e = s);
734
- }
735
- let n = t instanceof z && t.index < 0 ? null : t.parent, i = r.slice();
736
- return n ? i[e] = n : i.splice(e, 1), new zt(i, t);
737
- }
738
- class zt {
739
- constructor(e, t) {
740
- this.heads = e, this.node = t;
741
- }
742
- get next() {
743
- return Ze(this.heads);
744
- }
745
- }
746
- function Mt(r, e, t) {
747
- let n = r.resolveInner(e, t), i = null;
748
- for (let s = n instanceof z ? n : n.context.parent; s; s = s.parent)
749
- if (s.index < 0) {
750
- let o = s.parent;
751
- (i || (i = [n])).push(o.resolve(e, t)), s = o;
752
- } else {
753
- let o = we.get(s.tree);
754
- if (o && o.overlay && o.overlay[0].from <= e && o.overlay[o.overlay.length - 1].to >= e) {
755
- let u = new z(o.tree, o.overlay[0].from + s.from, -1, s);
756
- (i || (i = [n])).push(de(u, e, t, !1));
757
- }
758
- }
759
- return i ? Ze(i) : n;
760
- }
761
- class Le {
762
- /**
763
- Shorthand for `.type.name`.
764
- */
765
- get name() {
766
- return this.type.name;
767
- }
768
- /**
769
- @internal
770
- */
771
- constructor(e, t = 0) {
772
- if (this.mode = t, this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, e instanceof z)
773
- this.yieldNode(e);
774
- else {
775
- this._tree = e.context.parent, this.buffer = e.context;
776
- for (let n = e._parent; n; n = n._parent)
777
- this.stack.unshift(n.index);
778
- this.bufferNode = e, this.yieldBuf(e.index);
779
- }
780
- }
781
- yieldNode(e) {
782
- return e ? (this._tree = e, this.type = e.type, this.from = e.from, this.to = e.to, !0) : !1;
783
- }
784
- yieldBuf(e, t) {
785
- this.index = e;
786
- let { start: n, buffer: i } = this.buffer;
787
- return this.type = t || i.set.types[i.buffer[e]], this.from = n + i.buffer[e + 1], this.to = n + i.buffer[e + 2], !0;
788
- }
789
- /**
790
- @internal
791
- */
792
- yield(e) {
793
- return e ? e instanceof z ? (this.buffer = null, this.yieldNode(e)) : (this.buffer = e.context, this.yieldBuf(e.index, e.type)) : !1;
794
- }
795
- /**
796
- @internal
797
- */
798
- toString() {
799
- return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString();
800
- }
801
- /**
802
- @internal
803
- */
804
- enterChild(e, t, n) {
805
- if (!this.buffer)
806
- return this.yield(this._tree.nextChild(e < 0 ? this._tree._tree.children.length - 1 : 0, e, t, n, this.mode));
807
- let { buffer: i } = this.buffer, s = i.findChild(this.index + 4, i.buffer[this.index + 3], e, t - this.buffer.start, n);
808
- return s < 0 ? !1 : (this.stack.push(this.index), this.yieldBuf(s));
809
- }
810
- /**
811
- Move the cursor to this node's first child. When this returns
812
- false, the node has no child, and the cursor has not been moved.
813
- */
814
- firstChild() {
815
- return this.enterChild(
816
- 1,
817
- 0,
818
- 4
819
- /* Side.DontCare */
820
- );
821
- }
822
- /**
823
- Move the cursor to this node's last child.
824
- */
825
- lastChild() {
826
- return this.enterChild(
827
- -1,
828
- 0,
829
- 4
830
- /* Side.DontCare */
831
- );
832
- }
833
- /**
834
- Move the cursor to the first child that ends after `pos`.
835
- */
836
- childAfter(e) {
837
- return this.enterChild(
838
- 1,
839
- e,
840
- 2
841
- /* Side.After */
842
- );
843
- }
844
- /**
845
- Move to the last child that starts before `pos`.
846
- */
847
- childBefore(e) {
848
- return this.enterChild(
849
- -1,
850
- e,
851
- -2
852
- /* Side.Before */
853
- );
854
- }
855
- /**
856
- Move the cursor to the child around `pos`. If side is -1 the
857
- child may end at that position, when 1 it may start there. This
858
- will also enter [overlaid](#common.MountedTree.overlay)
859
- [mounted](#common.NodeProp^mounted) trees unless `overlays` is
860
- set to false.
861
- */
862
- enter(e, t, n = this.mode) {
863
- return this.buffer ? n & I.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
864
- }
865
- /**
866
- Move to the node's parent node, if this isn't the top node.
867
- */
868
- parent() {
869
- if (!this.buffer)
870
- return this.yieldNode(this.mode & I.IncludeAnonymous ? this._tree._parent : this._tree.parent);
871
- if (this.stack.length)
872
- return this.yieldBuf(this.stack.pop());
873
- let e = this.mode & I.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
874
- return this.buffer = null, this.yieldNode(e);
875
- }
876
- /**
877
- @internal
878
- */
879
- sibling(e) {
880
- if (!this.buffer)
881
- return this._tree._parent ? this.yield(this._tree.index < 0 ? null : this._tree._parent.nextChild(this._tree.index + e, e, 0, 4, this.mode)) : !1;
882
- let { buffer: t } = this.buffer, n = this.stack.length - 1;
883
- if (e < 0) {
884
- let i = n < 0 ? 0 : this.stack[n] + 4;
885
- if (this.index != i)
886
- return this.yieldBuf(t.findChild(
887
- i,
888
- this.index,
889
- -1,
890
- 0,
891
- 4
892
- /* Side.DontCare */
893
- ));
894
- } else {
895
- let i = t.buffer[this.index + 3];
896
- if (i < (n < 0 ? t.buffer.length : t.buffer[this.stack[n] + 3]))
897
- return this.yieldBuf(i);
898
- }
899
- return n < 0 ? this.yield(this.buffer.parent.nextChild(this.buffer.index + e, e, 0, 4, this.mode)) : !1;
900
- }
901
- /**
902
- Move to this node's next sibling, if any.
903
- */
904
- nextSibling() {
905
- return this.sibling(1);
906
- }
907
- /**
908
- Move to this node's previous sibling, if any.
909
- */
910
- prevSibling() {
911
- return this.sibling(-1);
912
- }
913
- atLastNode(e) {
914
- let t, n, { buffer: i } = this;
915
- if (i) {
916
- if (e > 0) {
917
- if (this.index < i.buffer.buffer.length)
918
- return !1;
919
- } else
920
- for (let s = 0; s < this.index; s++)
921
- if (i.buffer.buffer[s + 3] < this.index)
922
- return !1;
923
- ({ index: t, parent: n } = i);
924
- } else
925
- ({ index: t, _parent: n } = this._tree);
926
- for (; n; { index: t, _parent: n } = n)
927
- if (t > -1)
928
- for (let s = t + e, o = e < 0 ? -1 : n._tree.children.length; s != o; s += e) {
929
- let u = n._tree.children[s];
930
- if (this.mode & I.IncludeAnonymous || u instanceof Q || !u.type.isAnonymous || Oe(u))
931
- return !1;
932
- }
933
- return !0;
934
- }
935
- move(e, t) {
936
- if (t && this.enterChild(
937
- e,
938
- 0,
939
- 4
940
- /* Side.DontCare */
941
- ))
942
- return !0;
943
- for (; ; ) {
944
- if (this.sibling(e))
945
- return !0;
946
- if (this.atLastNode(e) || !this.parent())
947
- return !1;
948
- }
949
- }
950
- /**
951
- Move to the next node in a
952
- [pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR)
953
- traversal, going from a node to its first child or, if the
954
- current node is empty or `enter` is false, its next sibling or
955
- the next sibling of the first parent node that has one.
956
- */
957
- next(e = !0) {
958
- return this.move(1, e);
959
- }
960
- /**
961
- Move to the next node in a last-to-first pre-order traveral. A
962
- node is followed by its last child or, if it has none, its
963
- previous sibling or the previous sibling of the first parent
964
- node that has one.
965
- */
966
- prev(e = !0) {
967
- return this.move(-1, e);
968
- }
969
- /**
970
- Move the cursor to the innermost node that covers `pos`. If
971
- `side` is -1, it will enter nodes that end at `pos`. If it is 1,
972
- it will enter nodes that start at `pos`.
973
- */
974
- moveTo(e, t = 0) {
975
- for (; (this.from == this.to || (t < 1 ? this.from >= e : this.from > e) || (t > -1 ? this.to <= e : this.to < e)) && this.parent(); )
976
- ;
977
- for (; this.enterChild(1, e, t); )
978
- ;
979
- return this;
980
- }
981
- /**
982
- Get a [syntax node](#common.SyntaxNode) at the cursor's current
983
- position.
984
- */
985
- get node() {
986
- if (!this.buffer)
987
- return this._tree;
988
- let e = this.bufferNode, t = null, n = 0;
989
- if (e && e.context == this.buffer)
990
- e:
991
- for (let i = this.index, s = this.stack.length; s >= 0; ) {
992
- for (let o = e; o; o = o._parent)
993
- if (o.index == i) {
994
- if (i == this.index)
995
- return o;
996
- t = o, n = s + 1;
997
- break e;
998
- }
999
- i = this.stack[--s];
1000
- }
1001
- for (let i = n; i < this.stack.length; i++)
1002
- t = new Z(this.buffer, t, this.stack[i]);
1003
- return this.bufferNode = new Z(this.buffer, t, this.index);
1004
- }
1005
- /**
1006
- Get the [tree](#common.Tree) that represents the current node, if
1007
- any. Will return null when the node is in a [tree
1008
- buffer](#common.TreeBuffer).
1009
- */
1010
- get tree() {
1011
- return this.buffer ? null : this._tree._tree;
1012
- }
1013
- /**
1014
- Iterate over the current node and all its descendants, calling
1015
- `enter` when entering a node and `leave`, if given, when leaving
1016
- one. When `enter` returns `false`, any children of that node are
1017
- skipped, and `leave` isn't called for it.
1018
- */
1019
- iterate(e, t) {
1020
- for (let n = 0; ; ) {
1021
- let i = !1;
1022
- if (this.type.isAnonymous || e(this) !== !1) {
1023
- if (this.firstChild()) {
1024
- n++;
1025
- continue;
1026
- }
1027
- this.type.isAnonymous || (i = !0);
1028
- }
1029
- for (; i && t && t(this), i = this.type.isAnonymous, !this.nextSibling(); ) {
1030
- if (!n)
1031
- return;
1032
- this.parent(), n--, i = !0;
1033
- }
1034
- }
1035
- }
1036
- /**
1037
- Test whether the current node matches a given context—a sequence
1038
- of direct parent node names. Empty strings in the context array
1039
- are treated as wildcards.
1040
- */
1041
- matchContext(e) {
1042
- if (!this.buffer)
1043
- return Ie(this.node, e);
1044
- let { buffer: t } = this.buffer, { types: n } = t.set;
1045
- for (let i = e.length - 1, s = this.stack.length - 1; i >= 0; s--) {
1046
- if (s < 0)
1047
- return Ie(this.node, e, i);
1048
- let o = n[t.buffer[this.stack[s]]];
1049
- if (!o.isAnonymous) {
1050
- if (e[i] && e[i] != o.name)
1051
- return !1;
1052
- i--;
1053
- }
1054
- }
1055
- return !0;
1056
- }
1057
- }
1058
- function Oe(r) {
1059
- return r.children.some((e) => e instanceof Q || !e.type.isAnonymous || Oe(e));
1060
- }
1061
- function Tt(r) {
1062
- var e;
1063
- let { buffer: t, nodeSet: n, maxBufferLength: i = Lt, reused: s = [], minRepeatType: o = n.types.length } = r, u = Array.isArray(t) ? new Ee(t, t.length) : t, f = n.types, x = 0, w = 0;
1064
- function C(g, b, h, y, p, m) {
1065
- let { id: c, start: d, end: _, size: k } = u, L = w;
1066
- for (; k < 0; )
1067
- if (u.next(), k == -1) {
1068
- let W = s[c];
1069
- h.push(W), y.push(d - g);
1070
- return;
1071
- } else if (k == -3) {
1072
- x = c;
1073
- return;
1074
- } else if (k == -4) {
1075
- w = c;
1076
- return;
1077
- } else
1078
- throw new RangeError(`Unrecognized record size: ${k}`);
1079
- let ee = f[c], ie, te, Me = d - g;
1080
- if (_ - d <= i && (te = M(u.pos - b, p))) {
1081
- let W = new Uint16Array(te.size - te.skip), E = u.pos - te.size, P = W.length;
1082
- for (; u.pos > E; )
1083
- P = D(te.start, W, P);
1084
- ie = new Q(W, _ - te.start, n), Me = te.start - g;
1085
- } else {
1086
- let W = u.pos - k;
1087
- u.next();
1088
- let E = [], P = [], ne = c >= o ? c : -1, se = 0, pe = _;
1089
- for (; u.pos > W; )
1090
- ne >= 0 && u.id == ne && u.size >= 0 ? (u.end <= pe - i && (N(E, P, d, se, u.end, pe, ne, L), se = E.length, pe = u.end), u.next()) : m > 2500 ? A(d, W, E, P) : C(d, W, E, P, ne, m + 1);
1091
- if (ne >= 0 && se > 0 && se < E.length && N(E, P, d, se, d, pe, ne, L), E.reverse(), P.reverse(), ne > -1 && se > 0) {
1092
- let Te = B(ee);
1093
- ie = ze(ee, E, P, 0, E.length, 0, _ - d, Te, Te);
1094
- } else
1095
- ie = T(ee, E, P, _ - d, L - _);
1096
- }
1097
- h.push(ie), y.push(Me);
1098
- }
1099
- function A(g, b, h, y) {
1100
- let p = [], m = 0, c = -1;
1101
- for (; u.pos > b; ) {
1102
- let { id: d, start: _, end: k, size: L } = u;
1103
- if (L > 4)
1104
- u.next();
1105
- else {
1106
- if (c > -1 && _ < c)
1107
- break;
1108
- c < 0 && (c = k - i), p.push(d, _, k), m++, u.next();
1109
- }
1110
- }
1111
- if (m) {
1112
- let d = new Uint16Array(m * 4), _ = p[p.length - 2];
1113
- for (let k = p.length - 3, L = 0; k >= 0; k -= 3)
1114
- d[L++] = p[k], d[L++] = p[k + 1] - _, d[L++] = p[k + 2] - _, d[L++] = L;
1115
- h.push(new Q(d, p[2] - _, n)), y.push(_ - g);
1116
- }
1117
- }
1118
- function B(g) {
1119
- return (b, h, y) => {
1120
- let p = 0, m = b.length - 1, c, d;
1121
- if (m >= 0 && (c = b[m]) instanceof R) {
1122
- if (!m && c.type == g && c.length == y)
1123
- return c;
1124
- (d = c.prop(v.lookAhead)) && (p = h[m] + c.length + d);
1125
- }
1126
- return T(g, b, h, y, p);
1127
- };
1128
- }
1129
- function N(g, b, h, y, p, m, c, d) {
1130
- let _ = [], k = [];
1131
- for (; g.length > y; )
1132
- _.push(g.pop()), k.push(b.pop() + h - p);
1133
- g.push(T(n.types[c], _, k, m - p, d - m)), b.push(p - h);
1134
- }
1135
- function T(g, b, h, y, p = 0, m) {
1136
- if (x) {
1137
- let c = [v.contextHash, x];
1138
- m = m ? [c].concat(m) : [c];
1139
- }
1140
- if (p > 25) {
1141
- let c = [v.lookAhead, p];
1142
- m = m ? [c].concat(m) : [c];
1143
- }
1144
- return new R(g, b, h, y, m);
1145
- }
1146
- function M(g, b) {
1147
- let h = u.fork(), y = 0, p = 0, m = 0, c = h.end - i, d = { size: 0, start: 0, skip: 0 };
1148
- e:
1149
- for (let _ = h.pos - g; h.pos > _; ) {
1150
- let k = h.size;
1151
- if (h.id == b && k >= 0) {
1152
- d.size = y, d.start = p, d.skip = m, m += 4, y += 4, h.next();
1153
- continue;
1154
- }
1155
- let L = h.pos - k;
1156
- if (k < 0 || L < _ || h.start < c)
1157
- break;
1158
- let ee = h.id >= o ? 4 : 0, ie = h.start;
1159
- for (h.next(); h.pos > L; ) {
1160
- if (h.size < 0)
1161
- if (h.size == -3)
1162
- ee += 4;
1163
- else
1164
- break e;
1165
- else
1166
- h.id >= o && (ee += 4);
1167
- h.next();
1168
- }
1169
- p = ie, y += k, m += ee;
1170
- }
1171
- return (b < 0 || y == g) && (d.size = y, d.start = p, d.skip = m), d.size > 4 ? d : void 0;
1172
- }
1173
- function D(g, b, h) {
1174
- let { id: y, start: p, end: m, size: c } = u;
1175
- if (u.next(), c >= 0 && y < o) {
1176
- let d = h;
1177
- if (c > 4) {
1178
- let _ = u.pos - (c - 4);
1179
- for (; u.pos > _; )
1180
- h = D(g, b, h);
1181
- }
1182
- b[--h] = d, b[--h] = m - g, b[--h] = p - g, b[--h] = y;
1183
- } else
1184
- c == -3 ? x = y : c == -4 && (w = y);
1185
- return h;
1186
- }
1187
- let U = [], S = [];
1188
- for (; u.pos > 0; )
1189
- C(r.start || 0, r.bufferStart || 0, U, S, -1, 0);
1190
- let J = (e = r.length) !== null && e !== void 0 ? e : U.length ? S[0] + U[0].length : 0;
1191
- return new R(f[r.topID], U.reverse(), S.reverse(), J);
1192
- }
1193
- const Ue = /* @__PURE__ */ new WeakMap();
1194
- function _e(r, e) {
1195
- if (!r.isAnonymous || e instanceof Q || e.type != r)
1196
- return 1;
1197
- let t = Ue.get(e);
1198
- if (t == null) {
1199
- t = 1;
1200
- for (let n of e.children) {
1201
- if (n.type != r || !(n instanceof R)) {
1202
- t = 1;
1203
- break;
1204
- }
1205
- t += _e(r, n);
1206
- }
1207
- Ue.set(e, t);
1208
- }
1209
- return t;
1210
- }
1211
- function ze(r, e, t, n, i, s, o, u, f) {
1212
- let x = 0;
1213
- for (let N = n; N < i; N++)
1214
- x += _e(r, e[N]);
1215
- let w = Math.ceil(
1216
- x * 1.5 / 8
1217
- /* Balance.BranchFactor */
1218
- ), C = [], A = [];
1219
- function B(N, T, M, D, U) {
1220
- for (let S = M; S < D; ) {
1221
- let J = S, g = T[S], b = _e(r, N[S]);
1222
- for (S++; S < D; S++) {
1223
- let h = _e(r, N[S]);
1224
- if (b + h >= w)
1225
- break;
1226
- b += h;
1227
- }
1228
- if (S == J + 1) {
1229
- if (b > w) {
1230
- let h = N[J];
1231
- B(h.children, h.positions, 0, h.children.length, T[J] + U);
1232
- continue;
1233
- }
1234
- C.push(N[J]);
1235
- } else {
1236
- let h = T[S - 1] + N[S - 1].length - g;
1237
- C.push(ze(r, N, T, J, S, g, h, null, f));
1238
- }
1239
- A.push(g + U - s);
1240
- }
1241
- }
1242
- return B(e, t, n, i, 0), (u || f)(C, A, o);
1243
- }
1244
- new v({ perNode: !0 });
1245
- let Pt = 0;
1246
- class j {
1247
- /**
1248
- @internal
1249
- */
1250
- constructor(e, t, n) {
1251
- this.set = e, this.base = t, this.modified = n, this.id = Pt++;
1252
- }
1253
- /**
1254
- Define a new tag. If `parent` is given, the tag is treated as a
1255
- sub-tag of that parent, and
1256
- [highlighters](#highlight.tagHighlighter) that don't mention
1257
- this tag will try to fall back to the parent tag (or grandparent
1258
- tag, etc).
1259
- */
1260
- static define(e) {
1261
- if (e != null && e.base)
1262
- throw new Error("Can not derive from a modified tag");
1263
- let t = new j([], null, []);
1264
- if (t.set.push(t), e)
1265
- for (let n of e.set)
1266
- t.set.push(n);
1267
- return t;
1268
- }
1269
- /**
1270
- Define a tag _modifier_, which is a function that, given a tag,
1271
- will return a tag that is a subtag of the original. Applying the
1272
- same modifier to a twice tag will return the same value (`m1(t1)
1273
- == m1(t1)`) and applying multiple modifiers will, regardless or
1274
- order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).
1275
-
1276
- When multiple modifiers are applied to a given base tag, each
1277
- smaller set of modifiers is registered as a parent, so that for
1278
- example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
1279
- `m1(m3(t1)`, and so on.
1280
- */
1281
- static defineModifier() {
1282
- let e = new Ce();
1283
- return (t) => t.modified.indexOf(e) > -1 ? t : Ce.get(t.base || t, t.modified.concat(e).sort((n, i) => n.id - i.id));
1284
- }
1285
- }
1286
- let Ht = 0;
1287
- class Ce {
1288
- constructor() {
1289
- this.instances = [], this.id = Ht++;
1290
- }
1291
- static get(e, t) {
1292
- if (!t.length)
1293
- return e;
1294
- let n = t[0].instances.find((u) => u.base == e && $t(t, u.modified));
1295
- if (n)
1296
- return n;
1297
- let i = [], s = new j(i, e, t);
1298
- for (let u of t)
1299
- u.instances.push(s);
1300
- let o = Vt(t);
1301
- for (let u of e.set)
1302
- if (!u.modified.length)
1303
- for (let f of o)
1304
- i.push(Ce.get(u, f));
1305
- return s;
1306
- }
1307
- }
1308
- function $t(r, e) {
1309
- return r.length == e.length && r.every((t, n) => t == e[n]);
1310
- }
1311
- function Vt(r) {
1312
- let e = [[]];
1313
- for (let t = 0; t < r.length; t++)
1314
- for (let n = 0, i = e.length; n < i; n++)
1315
- e.push(e[n].concat(r[t]));
1316
- return e.sort((t, n) => n.length - t.length);
1317
- }
1318
- new v();
1319
- function jt(r, e) {
1320
- let t = /* @__PURE__ */ Object.create(null);
1321
- for (let s of r)
1322
- if (!Array.isArray(s.tag))
1323
- t[s.tag.id] = s.class;
1324
- else
1325
- for (let o of s.tag)
1326
- t[o.id] = s.class;
1327
- let { scope: n, all: i = null } = e || {};
1328
- return {
1329
- style: (s) => {
1330
- let o = i;
1331
- for (let u of s)
1332
- for (let f of u.set) {
1333
- let x = t[f.id];
1334
- if (x) {
1335
- o = o ? o + " " + x : x;
1336
- break;
1337
- }
1338
- }
1339
- return o;
1340
- },
1341
- scope: n
1342
- };
1343
- }
1344
- const a = j.define, ye = a(), q = a(), Je = a(q), We = a(q), X = a(), xe = a(X), Se = a(X), V = a(), re = a(V), H = a(), $ = a(), Be = a(), fe = a(Be), ke = a(), l = {
1345
- /**
1346
- A comment.
1347
- */
1348
- comment: ye,
1349
- /**
1350
- A line [comment](#highlight.tags.comment).
1351
- */
1352
- lineComment: a(ye),
1353
- /**
1354
- A block [comment](#highlight.tags.comment).
1355
- */
1356
- blockComment: a(ye),
1357
- /**
1358
- A documentation [comment](#highlight.tags.comment).
1359
- */
1360
- docComment: a(ye),
1361
- /**
1362
- Any kind of identifier.
1363
- */
1364
- name: q,
1365
- /**
1366
- The [name](#highlight.tags.name) of a variable.
1367
- */
1368
- variableName: a(q),
1369
- /**
1370
- A type [name](#highlight.tags.name).
1371
- */
1372
- typeName: Je,
1373
- /**
1374
- A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
1375
- */
1376
- tagName: a(Je),
1377
- /**
1378
- A property or field [name](#highlight.tags.name).
1379
- */
1380
- propertyName: We,
1381
- /**
1382
- An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
1383
- */
1384
- attributeName: a(We),
1385
- /**
1386
- The [name](#highlight.tags.name) of a class.
1387
- */
1388
- className: a(q),
1389
- /**
1390
- A label [name](#highlight.tags.name).
1391
- */
1392
- labelName: a(q),
1393
- /**
1394
- A namespace [name](#highlight.tags.name).
1395
- */
1396
- namespace: a(q),
1397
- /**
1398
- The [name](#highlight.tags.name) of a macro.
1399
- */
1400
- macroName: a(q),
1401
- /**
1402
- A literal value.
1403
- */
1404
- literal: X,
1405
- /**
1406
- A string [literal](#highlight.tags.literal).
1407
- */
1408
- string: xe,
1409
- /**
1410
- A documentation [string](#highlight.tags.string).
1411
- */
1412
- docString: a(xe),
1413
- /**
1414
- A character literal (subtag of [string](#highlight.tags.string)).
1415
- */
1416
- character: a(xe),
1417
- /**
1418
- An attribute value (subtag of [string](#highlight.tags.string)).
1419
- */
1420
- attributeValue: a(xe),
1421
- /**
1422
- A number [literal](#highlight.tags.literal).
1423
- */
1424
- number: Se,
1425
- /**
1426
- An integer [number](#highlight.tags.number) literal.
1427
- */
1428
- integer: a(Se),
1429
- /**
1430
- A floating-point [number](#highlight.tags.number) literal.
1431
- */
1432
- float: a(Se),
1433
- /**
1434
- A boolean [literal](#highlight.tags.literal).
1435
- */
1436
- bool: a(X),
1437
- /**
1438
- Regular expression [literal](#highlight.tags.literal).
1439
- */
1440
- regexp: a(X),
1441
- /**
1442
- An escape [literal](#highlight.tags.literal), for example a
1443
- backslash escape in a string.
1444
- */
1445
- escape: a(X),
1446
- /**
1447
- A color [literal](#highlight.tags.literal).
1448
- */
1449
- color: a(X),
1450
- /**
1451
- A URL [literal](#highlight.tags.literal).
1452
- */
1453
- url: a(X),
1454
- /**
1455
- A language keyword.
1456
- */
1457
- keyword: H,
1458
- /**
1459
- The [keyword](#highlight.tags.keyword) for the self or this
1460
- object.
1461
- */
1462
- self: a(H),
1463
- /**
1464
- The [keyword](#highlight.tags.keyword) for null.
1465
- */
1466
- null: a(H),
1467
- /**
1468
- A [keyword](#highlight.tags.keyword) denoting some atomic value.
1469
- */
1470
- atom: a(H),
1471
- /**
1472
- A [keyword](#highlight.tags.keyword) that represents a unit.
1473
- */
1474
- unit: a(H),
1475
- /**
1476
- A modifier [keyword](#highlight.tags.keyword).
1477
- */
1478
- modifier: a(H),
1479
- /**
1480
- A [keyword](#highlight.tags.keyword) that acts as an operator.
1481
- */
1482
- operatorKeyword: a(H),
1483
- /**
1484
- A control-flow related [keyword](#highlight.tags.keyword).
1485
- */
1486
- controlKeyword: a(H),
1487
- /**
1488
- A [keyword](#highlight.tags.keyword) that defines something.
1489
- */
1490
- definitionKeyword: a(H),
1491
- /**
1492
- A [keyword](#highlight.tags.keyword) related to defining or
1493
- interfacing with modules.
1494
- */
1495
- moduleKeyword: a(H),
1496
- /**
1497
- An operator.
1498
- */
1499
- operator: $,
1500
- /**
1501
- An [operator](#highlight.tags.operator) that dereferences something.
1502
- */
1503
- derefOperator: a($),
1504
- /**
1505
- Arithmetic-related [operator](#highlight.tags.operator).
1506
- */
1507
- arithmeticOperator: a($),
1508
- /**
1509
- Logical [operator](#highlight.tags.operator).
1510
- */
1511
- logicOperator: a($),
1512
- /**
1513
- Bit [operator](#highlight.tags.operator).
1514
- */
1515
- bitwiseOperator: a($),
1516
- /**
1517
- Comparison [operator](#highlight.tags.operator).
1518
- */
1519
- compareOperator: a($),
1520
- /**
1521
- [Operator](#highlight.tags.operator) that updates its operand.
1522
- */
1523
- updateOperator: a($),
1524
- /**
1525
- [Operator](#highlight.tags.operator) that defines something.
1526
- */
1527
- definitionOperator: a($),
1528
- /**
1529
- Type-related [operator](#highlight.tags.operator).
1530
- */
1531
- typeOperator: a($),
1532
- /**
1533
- Control-flow [operator](#highlight.tags.operator).
1534
- */
1535
- controlOperator: a($),
1536
- /**
1537
- Program or markup punctuation.
1538
- */
1539
- punctuation: Be,
1540
- /**
1541
- [Punctuation](#highlight.tags.punctuation) that separates
1542
- things.
1543
- */
1544
- separator: a(Be),
1545
- /**
1546
- Bracket-style [punctuation](#highlight.tags.punctuation).
1547
- */
1548
- bracket: fe,
1549
- /**
1550
- Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
1551
- tokens).
1552
- */
1553
- angleBracket: a(fe),
1554
- /**
1555
- Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
1556
- tokens).
1557
- */
1558
- squareBracket: a(fe),
1559
- /**
1560
- Parentheses (usually `(` and `)` tokens). Subtag of
1561
- [bracket](#highlight.tags.bracket).
1562
- */
1563
- paren: a(fe),
1564
- /**
1565
- Braces (usually `{` and `}` tokens). Subtag of
1566
- [bracket](#highlight.tags.bracket).
1567
- */
1568
- brace: a(fe),
1569
- /**
1570
- Content, for example plain text in XML or markup documents.
1571
- */
1572
- content: V,
1573
- /**
1574
- [Content](#highlight.tags.content) that represents a heading.
1575
- */
1576
- heading: re,
1577
- /**
1578
- A level 1 [heading](#highlight.tags.heading).
1579
- */
1580
- heading1: a(re),
1581
- /**
1582
- A level 2 [heading](#highlight.tags.heading).
1583
- */
1584
- heading2: a(re),
1585
- /**
1586
- A level 3 [heading](#highlight.tags.heading).
1587
- */
1588
- heading3: a(re),
1589
- /**
1590
- A level 4 [heading](#highlight.tags.heading).
1591
- */
1592
- heading4: a(re),
1593
- /**
1594
- A level 5 [heading](#highlight.tags.heading).
1595
- */
1596
- heading5: a(re),
1597
- /**
1598
- A level 6 [heading](#highlight.tags.heading).
1599
- */
1600
- heading6: a(re),
1601
- /**
1602
- A prose separator (such as a horizontal rule).
1603
- */
1604
- contentSeparator: a(V),
1605
- /**
1606
- [Content](#highlight.tags.content) that represents a list.
1607
- */
1608
- list: a(V),
1609
- /**
1610
- [Content](#highlight.tags.content) that represents a quote.
1611
- */
1612
- quote: a(V),
1613
- /**
1614
- [Content](#highlight.tags.content) that is emphasized.
1615
- */
1616
- emphasis: a(V),
1617
- /**
1618
- [Content](#highlight.tags.content) that is styled strong.
1619
- */
1620
- strong: a(V),
1621
- /**
1622
- [Content](#highlight.tags.content) that is part of a link.
1623
- */
1624
- link: a(V),
1625
- /**
1626
- [Content](#highlight.tags.content) that is styled as code or
1627
- monospace.
1628
- */
1629
- monospace: a(V),
1630
- /**
1631
- [Content](#highlight.tags.content) that has a strike-through
1632
- style.
1633
- */
1634
- strikethrough: a(V),
1635
- /**
1636
- Inserted text in a change-tracking format.
1637
- */
1638
- inserted: a(),
1639
- /**
1640
- Deleted text.
1641
- */
1642
- deleted: a(),
1643
- /**
1644
- Changed text.
1645
- */
1646
- changed: a(),
1647
- /**
1648
- An invalid or unsyntactic element.
1649
- */
1650
- invalid: a(),
1651
- /**
1652
- Metadata or meta-instruction.
1653
- */
1654
- meta: ke,
1655
- /**
1656
- [Metadata](#highlight.tags.meta) that applies to the entire
1657
- document.
1658
- */
1659
- documentMeta: a(ke),
1660
- /**
1661
- [Metadata](#highlight.tags.meta) that annotates or adds
1662
- attributes to a given syntactic element.
1663
- */
1664
- annotation: a(ke),
1665
- /**
1666
- Processing instruction or preprocessor directive. Subtag of
1667
- [meta](#highlight.tags.meta).
1668
- */
1669
- processingInstruction: a(ke),
1670
- /**
1671
- [Modifier](#highlight.Tag^defineModifier) that indicates that a
1672
- given element is being defined. Expected to be used with the
1673
- various [name](#highlight.tags.name) tags.
1674
- */
1675
- definition: j.defineModifier(),
1676
- /**
1677
- [Modifier](#highlight.Tag^defineModifier) that indicates that
1678
- something is constant. Mostly expected to be used with
1679
- [variable names](#highlight.tags.variableName).
1680
- */
1681
- constant: j.defineModifier(),
1682
- /**
1683
- [Modifier](#highlight.Tag^defineModifier) used to indicate that
1684
- a [variable](#highlight.tags.variableName) or [property
1685
- name](#highlight.tags.propertyName) is being called or defined
1686
- as a function.
1687
- */
1688
- function: j.defineModifier(),
1689
- /**
1690
- [Modifier](#highlight.Tag^defineModifier) that can be applied to
1691
- [names](#highlight.tags.name) to indicate that they belong to
1692
- the language's standard environment.
1693
- */
1694
- standard: j.defineModifier(),
1695
- /**
1696
- [Modifier](#highlight.Tag^defineModifier) that indicates a given
1697
- [names](#highlight.tags.name) is local to some scope.
1698
- */
1699
- local: j.defineModifier(),
1700
- /**
1701
- A generic variant [modifier](#highlight.Tag^defineModifier) that
1702
- can be used to tag language-specific alternative variants of
1703
- some common tag. It is recommended for themes to define special
1704
- forms of at least the [string](#highlight.tags.string) and
1705
- [variable name](#highlight.tags.variableName) tags, since those
1706
- come up a lot.
1707
- */
1708
- special: j.defineModifier()
1709
- };
1710
- jt([
1711
- { tag: l.link, class: "tok-link" },
1712
- { tag: l.heading, class: "tok-heading" },
1713
- { tag: l.emphasis, class: "tok-emphasis" },
1714
- { tag: l.strong, class: "tok-strong" },
1715
- { tag: l.keyword, class: "tok-keyword" },
1716
- { tag: l.atom, class: "tok-atom" },
1717
- { tag: l.bool, class: "tok-bool" },
1718
- { tag: l.url, class: "tok-url" },
1719
- { tag: l.labelName, class: "tok-labelName" },
1720
- { tag: l.inserted, class: "tok-inserted" },
1721
- { tag: l.deleted, class: "tok-deleted" },
1722
- { tag: l.literal, class: "tok-literal" },
1723
- { tag: l.string, class: "tok-string" },
1724
- { tag: l.number, class: "tok-number" },
1725
- { tag: [l.regexp, l.escape, l.special(l.string)], class: "tok-string2" },
1726
- { tag: l.variableName, class: "tok-variableName" },
1727
- { tag: l.local(l.variableName), class: "tok-variableName tok-local" },
1728
- { tag: l.definition(l.variableName), class: "tok-variableName tok-definition" },
1729
- { tag: l.special(l.variableName), class: "tok-variableName2" },
1730
- { tag: l.definition(l.propertyName), class: "tok-propertyName tok-definition" },
1731
- { tag: l.typeName, class: "tok-typeName" },
1732
- { tag: l.namespace, class: "tok-namespace" },
1733
- { tag: l.className, class: "tok-className" },
1734
- { tag: l.macroName, class: "tok-macroName" },
1735
- { tag: l.propertyName, class: "tok-propertyName" },
1736
- { tag: l.operator, class: "tok-operator" },
1737
- { tag: l.comment, class: "tok-comment" },
1738
- { tag: l.meta, class: "tok-meta" },
1739
- { tag: l.invalid, class: "tok-invalid" },
1740
- { tag: l.punctuation, class: "tok-punctuation" }
1741
- ]);
1742
- const Rt = "#c72727", Dt = "#9b5700", Ut = "#067934", Jt = "#0063d7", Wt = {
1743
- red: Rt,
1744
- orange: Dt,
1745
- green: Ut,
1746
- blue: Jt,
1747
- invalid: "#ffffff"
1748
- }, Gt = (r) => gt.define([
1749
- {
1750
- tag: l.keyword,
1751
- color: r.red
1752
- },
1753
- {
1754
- tag: [l.name, l.deleted, l.character, l.propertyName, l.macroName],
1755
- color: r.green
1756
- },
1757
- {
1758
- tag: [l.function(l.variableName), l.labelName],
1759
- color: r.blue
1760
- },
1761
- {
1762
- tag: [l.color, l.constant(l.name), l.standard(l.name)],
1763
- color: r.red
1764
- },
1765
- {
1766
- tag: [l.definition(l.name), l.separator],
1767
- color: r.red
1768
- },
1769
- {
1770
- tag: [l.typeName, l.className, l.number, l.changed, l.annotation, l.modifier, l.self, l.namespace],
1771
- color: r.orange
1772
- },
1773
- {
1774
- tag: [l.operator, l.operatorKeyword, l.url, l.escape, l.regexp, l.link, l.special(l.string)],
1775
- color: r.blue
1776
- },
1777
- {
1778
- tag: [l.meta, l.comment],
1779
- color: r.orange
1780
- },
1781
- {
1782
- tag: l.strong,
1783
- fontWeight: "bold"
1784
- },
1785
- {
1786
- tag: l.emphasis,
1787
- fontStyle: "italic"
1788
- },
1789
- {
1790
- tag: l.strikethrough,
1791
- textDecoration: "line-through"
1792
- },
1793
- {
1794
- tag: l.link,
1795
- color: r.orange,
1796
- textDecoration: "underline"
1797
- },
1798
- {
1799
- tag: l.heading,
1800
- fontWeight: "bold",
1801
- color: r.blue
1802
- },
1803
- {
1804
- tag: [l.atom, l.bool, l.special(l.variableName)],
1805
- color: r.red
1806
- },
1807
- {
1808
- tag: [l.processingInstruction, l.string, l.inserted],
1809
- color: r.blue
1810
- },
1811
- {
1812
- tag: l.invalid,
1813
- color: r.invalid
1814
- }
1815
- ]), Kt = pt(Gt(Wt));
1816
- var ve = /* @__PURE__ */ ((r) => (r.INLINE = "inline", r.SINGLELINE = "singleline", r.MULTILINE = "multiline", r))(ve || {}), Y = /* @__PURE__ */ ((r) => (r.JSON = "json", r.XML = "xml", r.JAVA = "java", r.JAVASCRIPT = "javascript", r.PYTHON = "python", r))(Y || {}), ce = /* @__PURE__ */ ((r) => (r.ACTION = "action", r.CHANGE = "change", r))(ce || {});
1817
- const Ft = {
1818
- [Y.JSON]: Ct,
1819
- [Y.XML]: Nt,
1820
- [Y.JAVASCRIPT]: St,
1821
- [Y.JAVA]: At,
1822
- [Y.PYTHON]: It
1823
- }, qt = (r) => async () => Ft[r], Xt = (r, e) => {
1824
- const t = r.doc.lineAt(e.from), n = /^\s*/.exec(t.text);
1825
- return n ? n[0] : "";
1826
- }, Yt = {
1827
- key: "Enter",
1828
- run: ({ state: r, dispatch: e }) => {
1829
- const t = r.changeByRange((n) => {
1830
- const s = `
1831
- ${Xt(r, n)}`;
1832
- return {
1833
- changes: { from: n.from, to: n.to, insert: s },
1834
- range: ft.cursor(n.from + s.length)
1835
- };
1836
- });
1837
- return e(r.update(t, { scrollIntoView: !0, userEvent: "input" })), !0;
1838
- }
1839
- };
1840
- let Ge = 0;
1841
- const Zt = {
1842
- beforeCreate() {
1843
- this.uuid = Ge.toString(), Ge += 1;
1844
- }
1845
- }, Qt = { key: 0 }, en = /* @__PURE__ */ ae("path", {
1846
- fill: "#00112C",
1847
- d: "M14.75 1.25V6.75H13.25V3.81083L10.0001 7.06072L8.93945 6.00006L12.1895 2.75H9.25V1.25H14.75Z"
1848
- }, null, -1), tn = /* @__PURE__ */ ae("path", {
1849
- fill: "#00112C",
1850
- d: "M2.75 12.1895V9.25H1.25V14.75H6.75V13.25H3.81083L7.06072 10.0001L6.00006 8.93945L2.75 12.1895Z"
1851
- }, null, -1);
1852
- function nn(r, e, t, n, i, s) {
1853
- return O(), le("svg", Fe({ role: "img" }, r.$attrs, {
1854
- class: "ui-assets-icons-16",
1855
- xmlns: "http://www.w3.org/2000/svg",
1856
- width: "16",
1857
- height: "16",
1858
- fill: "none"
1859
- }), [
1860
- r.$attrs["svg-title"] ? (O(), le("title", Qt, Ae(r.$attrs["svg-title"]), 1)) : F("", !0),
1861
- en,
1862
- tn
1863
- ], 16);
1864
- }
1865
- const rn = /* @__PURE__ */ qe(Zt, [["render", nn]]), Ke = {
1866
- "en-US": {
1867
- run: "Run",
1868
- expand: "Expand"
1869
- }
1870
- }, sn = Qe({
1871
- i18n: { messages: Ke },
1872
- name: "bento-code-snippet",
1873
- components: {
1874
- BentoTypography: yt,
1875
- BentoButton: bt,
1876
- BentoDropdown: mt,
1877
- Copy: wt,
1878
- BaseModal: vt,
1879
- BentoLoadingIndicator: kt,
1880
- ExpandIcon: rn
1881
- },
1882
- directives: { BentoTooltipDirective: xt },
1883
- props: {
1884
- /**
1885
- * Defines the variant of code-snippet
1886
- */
1887
- variant: {
1888
- type: String,
1889
- default: ve.MULTILINE,
1890
- validator: (r) => Object.values(ve).includes(r)
1891
- },
1892
- /**
1893
- * Language name for syntax highlighting rules
1894
- */
1895
- lang: {
1896
- type: String,
1897
- default: Y.JSON,
1898
- validator: (r) => Object.values(Y).includes(r)
1899
- },
1900
- /**
1901
- * Label to show in the action-bar, describing the language
1902
- */
1903
- langLabel: {
1904
- type: String,
1905
- default: null
1906
- },
1907
- /**
1908
- * The code content
1909
- */
1910
- content: {
1911
- type: String,
1912
- default: ""
1913
- },
1914
- /**
1915
- * Allows editing of the code-snippet content by the user
1916
- */
1917
- editable: {
1918
- type: Boolean,
1919
- default: !1
1920
- },
1921
- /**
1922
- * Displays a button that when clicked will emit an action event
1923
- * Leaves to the parent component the logic of what to do with it
1924
- */
1925
- actionable: {
1926
- type: Boolean,
1927
- default: !1
1928
- },
1929
- /**
1930
- * Displays a button that can expand the codeblock into a modal to easily
1931
- * view large blocks of code.
1932
- */
1933
- expandable: {
1934
- type: Boolean,
1935
- default: !1
1936
- },
1937
- /**
1938
- * Displays a button that when clicked will emit a run event
1939
- * Leaves to the parent component the logic of what to do with it
1940
- */
1941
- actionableText: {
1942
- type: String,
1943
- default: "run"
1944
- },
1945
- /**
1946
- * Toggles the loading indicator within the action bar
1947
- */
1948
- loading: {
1949
- type: Boolean,
1950
- default: !1
1951
- }
1952
- },
1953
- emits: [ce.ACTION, ce.CHANGE],
1954
- setup(r, { emit: e }) {
1955
- const { t } = _t({ messages: Ke }), n = ge(null), i = [], s = () => {
1956
- }, o = ue(() => r.langLabel ?? r.lang.toUpperCase()), u = ue(() => r.variant === ve.INLINE), f = ue(() => ({
1957
- "b-code-snippet--inline": u.value,
1958
- "b-code-snippet--scrollable": !u.value
1959
- })), x = ue(() => ({
1960
- "b-code-snippet__code-area-content--editable": r.editable
1961
- })), w = qt(r.lang), C = Pe(), A = Pe(), B = new Ne(), N = new Ne(), T = new Ne(), M = ge(null), D = ge(0);
1962
- et(async () => {
1963
- const g = await w();
1964
- M.value = r.content;
1965
- const b = ({ state: p }) => {
1966
- M.value = p.doc.toString();
1967
- }, h = [
1968
- at(),
1969
- ut.of([ct, Yt]),
1970
- B.of(g()),
1971
- N.of(Kt),
1972
- T.of(je.readOnly.of(!r.editable)),
1973
- Ve.updateListener.of((p) => b(p))
1974
- ];
1975
- r.variant === "multiline" && h.push([ht(), dt()]);
1976
- const y = je.create({
1977
- doc: r.content,
1978
- extensions: [...h]
1979
- });
1980
- D.value = y.doc.length, A.value = new Ve({
1981
- state: y,
1982
- parent: C.value
1983
- });
1984
- }), tt(
1985
- () => r.content,
1986
- () => {
1987
- if (r.content !== M.value) {
1988
- const g = r.content.length;
1989
- A.value.dispatch({
1990
- changes: {
1991
- from: 0,
1992
- to: D.value,
1993
- insert: r.content
1994
- }
1995
- }), D.value = g;
1996
- }
1997
- }
1998
- );
1999
- const U = ue(() => t(r.actionableText)), S = () => {
2000
- e(ce.ACTION, M.value);
2001
- };
2002
- nt(() => {
2003
- M.value !== null && e(ce.CHANGE, M.value);
2004
- });
2005
- const J = ge(!1);
2006
- return {
2007
- // Values
2008
- availableLanguages: i,
2009
- codeAreaContentConditionalClasses: x,
2010
- conditionalClasses: f,
2011
- container: C,
2012
- currentContents: M,
2013
- displayedLang: o,
2014
- editor: A,
2015
- selectedLanguage: n,
2016
- showModal: J,
2017
- isInlineVariant: u,
2018
- // Methods
2019
- handleChangeLanguage: s,
2020
- onActionClicked: S,
2021
- runText: U,
2022
- // Translations
2023
- t
2024
- };
2025
- }
2026
- });
2027
- const on = (r) => (ot("data-v-5eb6a936"), r = r(), lt(), r), ln = {
2028
- key: 0,
2029
- class: "b-code-snippet__action-bar"
2030
- }, an = { class: "b-code-snippet__action-bar--start" }, un = { class: "b-code-snippet__action-bar--end" }, hn = {
2031
- key: 1,
2032
- class: "b-code-snippet__code-area"
2033
- }, fn = { key: 2 }, cn = /* @__PURE__ */ on(() => /* @__PURE__ */ ae("div", { class: "b-code-snippet__empty-state" }, "Nothing to show", -1));
2034
- function dn(r, e, t, n, i, s) {
2035
- const o = K("bento-dropdown"), u = K("bento-typography"), f = K("bento-loading-indicator"), x = K("copy"), w = K("expand-icon"), C = K("bento-button"), A = K("bento-code-snippet"), B = K("base-modal");
2036
- return O(), le("div", {
2037
- class: He(["b-code-snippet", r.conditionalClasses])
2038
- }, [
2039
- r.isInlineVariant ? F("", !0) : (O(), le("section", ln, [
2040
- ae("div", an, [
2041
- r.availableLanguages.length > 0 ? (O(), oe(o, Fe({
2042
- key: 0,
2043
- modelValue: r.selectedLanguage,
2044
- "onUpdate:modelValue": e[0] || (e[0] = (N) => r.selectedLanguage = N)
2045
- }, r.$props, {
2046
- disabled: r.availableLanguages.length === 1,
2047
- items: r.availableLanguages,
2048
- class: "b-code-snippet__language-picker",
2049
- onInput: r.handleChangeLanguage
2050
- }), null, 16, ["modelValue", "disabled", "items", "onInput"])) : F("", !0),
2051
- me(u, {
2052
- el: "span",
2053
- stronger: ""
2054
- }, {
2055
- default: he(() => [
2056
- $e(Ae(r.displayedLang), 1)
2057
- ]),
2058
- _: 1
2059
- })
2060
- ]),
2061
- ae("div", un, [
2062
- r.loading ? (O(), oe(f, { key: 0 })) : F("", !0),
2063
- r.currentContents !== null ? (O(), oe(x, {
2064
- key: 1,
2065
- class: "b-structured-list__icon",
2066
- text: r.currentContents
2067
- }, null, 8, ["text"])) : F("", !0),
2068
- r.expandable ? (O(), oe(C, {
2069
- key: 2,
2070
- variant: "tertiary",
2071
- condensed: "",
2072
- "aria-label": r.t("expand"),
2073
- onClick: e[1] || (e[1] = (N) => r.showModal = !0)
2074
- }, {
2075
- iconLeft: he(() => [
2076
- me(w)
2077
- ]),
2078
- _: 1
2079
- }, 8, ["aria-label"])) : F("", !0),
2080
- r.actionable ? (O(), oe(C, {
2081
- key: 3,
2082
- variant: "primary",
2083
- tertiary: "",
2084
- condensed: "",
2085
- onClick: r.onActionClicked
2086
- }, {
2087
- iconLeft: he(() => [
2088
- me(u, {
2089
- el: "span",
2090
- class: "b-code-snippet__action-button"
2091
- }, {
2092
- default: he(() => [
2093
- $e(Ae(r.runText), 1)
2094
- ]),
2095
- _: 1
2096
- })
2097
- ]),
2098
- _: 1
2099
- }, 8, ["onClick"])) : F("", !0)
2100
- ])
2101
- ])),
2102
- r.content || r.editable ? (O(), le("code", hn, [
2103
- ae("div", {
2104
- ref: "container",
2105
- class: He(["b-code-snippet__code-area-content", r.codeAreaContentConditionalClasses])
2106
- }, null, 2)
2107
- ])) : (O(), le("section", fn, [
2108
- rt(r.$slots, "empty-state", {}, () => [
2109
- cn
2110
- ], !0)
2111
- ])),
2112
- r.expandable ? (O(), oe(B, {
2113
- key: 3,
2114
- class: "b-code-snippet__modal",
2115
- "hide-close-button": !0,
2116
- "custom-padding": "0px",
2117
- "is-dismissible": !0,
2118
- "is-open": r.showModal,
2119
- size: "large",
2120
- onCloseModal: e[2] || (e[2] = (N) => r.showModal = !1)
2121
- }, {
2122
- content: he(() => [
2123
- me(A, it(st({ ...r.$props, expandable: !1 })), null, 16)
2124
- ]),
2125
- _: 1
2126
- }, 8, ["is-open"])) : F("", !0)
2127
- ], 2);
2128
- }
2129
- const zn = /* @__PURE__ */ qe(sn, [["render", dn], ["__scopeId", "data-v-5eb6a936"]]);
1
+ import { c as n, b as o, a as p, B as a } from "./chunks/code-snippet.e8bxDBCO.js";
2130
2
  export {
2131
- zn as BentoCodeSnippet,
2132
- ce as BentoCodeSnippetEvent,
2133
- Y as BentoCodeSnippetSupportedLanguage,
2134
- ve as BentoCodeSnippetVariant
3
+ n as BentoCodeSnippet,
4
+ o as BentoCodeSnippetEvent,
5
+ p as BentoCodeSnippetSupportedLanguage,
6
+ a as BentoCodeSnippetVariant
2135
7
  };
2136
8
  //# sourceMappingURL=code-snippet.js.map