@beeq/core 1.7.0 → 1.8.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/dist/beeq/beeq.esm.js +43 -1
  2. package/dist/beeq/beeq.esm.js.map +1 -1
  3. package/dist/beeq/index.esm.js +64 -1
  4. package/dist/beeq/index.esm.js.map +1 -1
  5. package/dist/beeq/p-063a3968.entry.js +388 -0
  6. package/dist/beeq/p-063a3968.entry.js.map +1 -0
  7. package/dist/beeq/p-0979fdfd.entry.js +297 -0
  8. package/dist/beeq/{p-a453d36c.entry.js.map → p-0979fdfd.entry.js.map} +1 -1
  9. package/dist/beeq/p-0ab0b58d.js +25 -1
  10. package/dist/beeq/p-0ab0b58d.js.map +1 -1
  11. package/dist/beeq/p-0c42c08a.js +1811 -0
  12. package/dist/beeq/p-0c42c08a.js.map +1 -0
  13. package/dist/beeq/p-0f48adcc.entry.js +117 -0
  14. package/dist/beeq/{p-bcf6e585.entry.js.map → p-0f48adcc.entry.js.map} +1 -1
  15. package/dist/beeq/p-115ed5b2.js +25 -1
  16. package/dist/beeq/p-115ed5b2.js.map +1 -1
  17. package/dist/beeq/p-14b44a4b.entry.js +205 -0
  18. package/dist/beeq/{p-4f8ce653.entry.js.map → p-14b44a4b.entry.js.map} +1 -1
  19. package/dist/beeq/p-1715ac80.entry.js +274 -0
  20. package/dist/beeq/{p-554d0f45.entry.js.map → p-1715ac80.entry.js.map} +1 -1
  21. package/dist/beeq/p-1c8b6eb4.js +12 -1
  22. package/dist/beeq/p-1c8b6eb4.js.map +1 -1
  23. package/dist/beeq/p-1f3a4359.js +11 -1
  24. package/dist/beeq/p-1f3a4359.js.map +1 -1
  25. package/dist/beeq/p-242ac28a.entry.js +145 -0
  26. package/dist/beeq/{p-64835973.entry.js.map → p-242ac28a.entry.js.map} +1 -1
  27. package/dist/beeq/p-297fb76b.entry.js +220 -0
  28. package/dist/beeq/{p-4291b23f.entry.js.map → p-297fb76b.entry.js.map} +1 -1
  29. package/dist/beeq/p-2bb65f53.entry.js +204 -0
  30. package/dist/beeq/p-2bb65f53.entry.js.map +1 -0
  31. package/dist/beeq/p-2e66fc4f.entry.js +434 -0
  32. package/dist/beeq/{p-bcc85103.entry.js.map → p-2e66fc4f.entry.js.map} +1 -1
  33. package/dist/beeq/p-36652891.entry.js +102 -0
  34. package/dist/beeq/{p-21a51ee0.entry.js.map → p-36652891.entry.js.map} +1 -1
  35. package/dist/beeq/p-38d4bd8a.js +1939 -0
  36. package/dist/beeq/p-38d4bd8a.js.map +1 -0
  37. package/dist/beeq/p-39b7c578.entry.js +84 -0
  38. package/dist/beeq/{p-3711298a.entry.js.map → p-39b7c578.entry.js.map} +1 -1
  39. package/dist/beeq/p-39d77ba6.entry.js +90 -0
  40. package/dist/beeq/{p-f7d3f428.entry.js.map → p-39d77ba6.entry.js.map} +1 -1
  41. package/dist/beeq/p-3fd0d92d.js +1228 -1
  42. package/dist/beeq/p-3fd0d92d.js.map +1 -1
  43. package/dist/beeq/p-4688e046.js +16 -0
  44. package/dist/beeq/{p-aee056e5.js.map → p-4688e046.js.map} +1 -1
  45. package/dist/beeq/p-49249dda.entry.js +156 -0
  46. package/dist/beeq/{p-a062b9c4.entry.js.map → p-49249dda.entry.js.map} +1 -1
  47. package/dist/beeq/p-548b45b7.entry.js +104 -0
  48. package/dist/beeq/{p-c3e33045.entry.js.map → p-548b45b7.entry.js.map} +1 -1
  49. package/dist/beeq/p-57621be1.js +9 -1
  50. package/dist/beeq/p-57621be1.js.map +1 -1
  51. package/dist/beeq/p-57a55ac5.entry.js +261 -0
  52. package/dist/beeq/{p-d4ca1283.entry.js.map → p-57a55ac5.entry.js.map} +1 -1
  53. package/dist/beeq/p-5e11b866.entry.js +102 -0
  54. package/dist/beeq/{p-39f3d9d2.entry.js.map → p-5e11b866.entry.js.map} +1 -1
  55. package/dist/beeq/p-687da041.js +20 -1
  56. package/dist/beeq/p-687da041.js.map +1 -1
  57. package/dist/beeq/p-6a4e104b.entry.js +263 -0
  58. package/dist/beeq/{p-7691bdfc.entry.js.map → p-6a4e104b.entry.js.map} +1 -1
  59. package/dist/beeq/p-6a5a79a3.entry.js +184 -0
  60. package/dist/beeq/{p-fbb780c2.entry.js.map → p-6a5a79a3.entry.js.map} +1 -1
  61. package/dist/beeq/p-7f301da8.entry.js +508 -0
  62. package/dist/beeq/p-7f301da8.entry.js.map +1 -0
  63. package/dist/beeq/p-81f1c3ba.entry.js +121 -0
  64. package/dist/beeq/{p-819acf02.entry.js.map → p-81f1c3ba.entry.js.map} +1 -1
  65. package/dist/beeq/p-822773ae.entry.js +195 -0
  66. package/dist/beeq/{p-b2c55a62.entry.js.map → p-822773ae.entry.js.map} +1 -1
  67. package/dist/beeq/p-951ba558.js +64 -1
  68. package/dist/beeq/p-951ba558.js.map +1 -1
  69. package/dist/beeq/p-99829fc7.js +8 -1
  70. package/dist/beeq/p-99829fc7.js.map +1 -1
  71. package/dist/beeq/p-9990889d.entry.js +222 -0
  72. package/dist/beeq/{p-a9ca89e7.entry.js.map → p-9990889d.entry.js.map} +1 -1
  73. package/dist/beeq/p-a1b43de6.entry.js +248 -0
  74. package/dist/beeq/{p-889e6317.entry.js.map → p-a1b43de6.entry.js.map} +1 -1
  75. package/dist/beeq/p-a5dc1c94.js +118 -1
  76. package/dist/beeq/p-a5dc1c94.js.map +1 -1
  77. package/dist/beeq/p-a6489187.entry.js +103 -0
  78. package/dist/beeq/{p-d62cad31.entry.js.map → p-a6489187.entry.js.map} +1 -1
  79. package/dist/beeq/p-a8cad5ab.js +5 -1
  80. package/dist/beeq/p-a8cad5ab.js.map +1 -1
  81. package/dist/beeq/p-ac969486.entry.js +330 -0
  82. package/dist/beeq/{p-d9a3844f.entry.js.map → p-ac969486.entry.js.map} +1 -1
  83. package/dist/beeq/p-af062402.js +12 -0
  84. package/dist/beeq/p-af062402.js.map +1 -0
  85. package/dist/beeq/p-afc9fd80.entry.js +144 -0
  86. package/dist/beeq/{p-8b870d05.entry.js.map → p-afc9fd80.entry.js.map} +1 -1
  87. package/dist/beeq/p-bef53750.js +79 -0
  88. package/dist/beeq/p-bef53750.js.map +1 -0
  89. package/dist/beeq/p-bf2320dd.entry.js +329 -0
  90. package/dist/beeq/{p-67367b7d.entry.js.map → p-bf2320dd.entry.js.map} +1 -1
  91. package/dist/beeq/p-c34e292e.entry.js +127 -0
  92. package/dist/beeq/{p-5402707e.entry.js.map → p-c34e292e.entry.js.map} +1 -1
  93. package/dist/beeq/p-d7a88b16.js +87 -1
  94. package/dist/beeq/p-d7a88b16.js.map +1 -1
  95. package/dist/beeq/p-db18eba1.entry.js +173 -0
  96. package/dist/beeq/{p-02202605.entry.js.map → p-db18eba1.entry.js.map} +1 -1
  97. package/dist/beeq/p-dd950c12.entry.js +309 -0
  98. package/dist/beeq/p-dd950c12.entry.js.map +1 -0
  99. package/dist/beeq/p-e301647a.entry.js +87 -0
  100. package/dist/beeq/{p-6b824dba.entry.js.map → p-e301647a.entry.js.map} +1 -1
  101. package/dist/beeq/p-e3aa2886.entry.js +203 -0
  102. package/dist/beeq/{p-9c3030c7.entry.js.map → p-e3aa2886.entry.js.map} +1 -1
  103. package/dist/beeq/p-e41f07ae.entry.js +173 -0
  104. package/dist/beeq/p-e41f07ae.entry.js.map +1 -0
  105. package/dist/beeq/p-e88257a8.entry.js +259 -0
  106. package/dist/beeq/p-e88257a8.entry.js.map +1 -0
  107. package/dist/beeq/p-e9a54b49.entry.js +145 -0
  108. package/dist/beeq/{p-61c97bdc.entry.js.map → p-e9a54b49.entry.js.map} +1 -1
  109. package/dist/beeq/p-ecd27cf2.js +11 -1
  110. package/dist/beeq/p-ecd27cf2.js.map +1 -1
  111. package/dist/beeq/p-f77d9b8b.entry.js +144 -0
  112. package/dist/beeq/{p-a2157e4d.entry.js.map → p-f77d9b8b.entry.js.map} +1 -1
  113. package/dist/beeq/p-fd658de1.entry.js +135 -0
  114. package/dist/beeq/{p-c88ca7e9.entry.js.map → p-fd658de1.entry.js.map} +1 -1
  115. package/dist/beeq/p-ffb48c40.entry.js +258 -0
  116. package/dist/beeq/p-ffb48c40.entry.js.map +1 -0
  117. package/dist/beeq/p-ffddc425.entry.js +149 -0
  118. package/dist/beeq/{p-2e8e7e37.entry.js.map → p-ffddc425.entry.js.map} +1 -1
  119. package/dist/cjs/app-globals-b11284b9.js.map +1 -1
  120. package/dist/cjs/assetsPath-3938a05d.js +78 -0
  121. package/dist/cjs/assetsPath-3938a05d.js.map +1 -0
  122. package/dist/cjs/beeq.cjs.js +2 -2
  123. package/dist/cjs/bq-accordion-group.cjs.entry.js +2 -2
  124. package/dist/cjs/bq-accordion.cjs.entry.js +2 -2
  125. package/dist/cjs/bq-alert.cjs.entry.js +2 -2
  126. package/dist/cjs/bq-avatar.cjs.entry.js +2 -2
  127. package/dist/cjs/bq-badge.cjs.entry.js +2 -2
  128. package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +3 -3
  129. package/dist/cjs/bq-breadcrumb.cjs.entry.js +2 -2
  130. package/dist/cjs/bq-button_2.cjs.entry.js +25 -21
  131. package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
  132. package/dist/cjs/bq-card.cjs.entry.js +2 -2
  133. package/dist/cjs/bq-checkbox.cjs.entry.js +57 -6
  134. package/dist/cjs/bq-checkbox.cjs.entry.js.map +1 -1
  135. package/dist/cjs/bq-date-picker.cjs.entry.js +3 -3
  136. package/dist/cjs/bq-dialog.cjs.entry.js +3 -3
  137. package/dist/cjs/bq-divider.cjs.entry.js +2 -2
  138. package/dist/cjs/bq-drawer.cjs.entry.js +7 -7
  139. package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
  140. package/dist/cjs/bq-dropdown_2.cjs.entry.js +2 -2
  141. package/dist/cjs/bq-empty-state.cjs.entry.js +2 -2
  142. package/dist/cjs/bq-input.cjs.entry.js +43 -16
  143. package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
  144. package/dist/cjs/bq-notification.cjs.entry.js +2 -2
  145. package/dist/cjs/bq-option-group.cjs.entry.js +1 -1
  146. package/dist/cjs/bq-option-list_2.cjs.entry.js +5 -5
  147. package/dist/cjs/bq-option.cjs.entry.js +2 -2
  148. package/dist/cjs/bq-page-title.cjs.entry.js +2 -2
  149. package/dist/cjs/bq-progress.cjs.entry.js +2 -2
  150. package/dist/cjs/bq-radio-group.cjs.entry.js +2 -2
  151. package/dist/cjs/bq-radio.cjs.entry.js +1 -1
  152. package/dist/cjs/bq-select.cjs.entry.js +78 -30
  153. package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
  154. package/dist/cjs/bq-side-menu-item.cjs.entry.js +2 -2
  155. package/dist/cjs/bq-side-menu.cjs.entry.js +2 -2
  156. package/dist/cjs/bq-slider.cjs.entry.js +2 -2
  157. package/dist/cjs/bq-spinner.cjs.entry.js +2 -2
  158. package/dist/cjs/bq-status.cjs.entry.js +2 -2
  159. package/dist/cjs/bq-step-item.cjs.entry.js +2 -2
  160. package/dist/cjs/bq-steps.cjs.entry.js +2 -2
  161. package/dist/cjs/bq-switch.cjs.entry.js +2 -2
  162. package/dist/cjs/bq-tab-group.cjs.entry.js +32 -16
  163. package/dist/cjs/bq-tab-group.cjs.entry.js.map +1 -1
  164. package/dist/cjs/bq-tab.cjs.entry.js +14 -8
  165. package/dist/cjs/bq-tab.cjs.entry.js.map +1 -1
  166. package/dist/cjs/bq-tab.types-a8b320b0.js +15 -0
  167. package/dist/cjs/bq-tab.types-a8b320b0.js.map +1 -0
  168. package/dist/cjs/bq-textarea.cjs.entry.js +5 -5
  169. package/dist/cjs/bq-toast.cjs.entry.js +3 -3
  170. package/dist/cjs/bq-tooltip.cjs.entry.js +3 -3
  171. package/dist/cjs/{index-76b0999c.js → index-1d3aac65.js} +48 -2
  172. package/dist/cjs/index-1d3aac65.js.map +1 -0
  173. package/dist/cjs/{index-a09d1c08.js → index-e4c116b6.js} +12 -9
  174. package/dist/cjs/index-e4c116b6.js.map +1 -0
  175. package/dist/cjs/index.cjs.js +2 -2
  176. package/dist/cjs/{isDefined-4f4a320b.js → isDefined-750bffc4.js} +2 -2
  177. package/dist/cjs/{isDefined-4f4a320b.js.map → isDefined-750bffc4.js.map} +1 -1
  178. package/dist/cjs/loader.cjs.js +2 -2
  179. package/dist/collection/components/checkbox/bq-checkbox.js +67 -3
  180. package/dist/collection/components/checkbox/bq-checkbox.js.map +1 -1
  181. package/dist/collection/components/dialog/scss/bq-dialog.css +1 -1
  182. package/dist/collection/components/drawer/bq-drawer.js +7 -5
  183. package/dist/collection/components/drawer/bq-drawer.js.map +1 -1
  184. package/dist/collection/components/drawer/scss/bq-drawer.css +1 -1
  185. package/dist/collection/components/icon/helper/request.js +23 -19
  186. package/dist/collection/components/icon/helper/request.js.map +1 -1
  187. package/dist/collection/components/input/bq-input.js +34 -13
  188. package/dist/collection/components/input/bq-input.js.map +1 -1
  189. package/dist/collection/components/select/bq-select.js +71 -29
  190. package/dist/collection/components/select/bq-select.js.map +1 -1
  191. package/dist/collection/components/tab/bq-tab.js +62 -4
  192. package/dist/collection/components/tab/bq-tab.js.map +1 -1
  193. package/dist/collection/components/tab/bq-tab.types.js +2 -0
  194. package/dist/collection/components/tab/bq-tab.types.js.map +1 -1
  195. package/dist/collection/components/tab/scss/bq-tab.css +1 -1
  196. package/dist/collection/components/tab-group/bq-tab-group.js +81 -14
  197. package/dist/collection/components/tab-group/bq-tab-group.js.map +1 -1
  198. package/dist/collection/components/tab-group/scss/bq-tab-group.css +1 -1
  199. package/dist/collection/components/tag/bq-tag.js +3 -3
  200. package/dist/collection/components/textarea/bq-textarea.js +3 -3
  201. package/dist/collection/components/toast/bq-toast.js +1 -1
  202. package/dist/collection/components/tooltip/bq-tooltip.js +1 -1
  203. package/dist/collection/shared/utils/assetsPath.js +52 -26
  204. package/dist/collection/shared/utils/assetsPath.js.map +1 -1
  205. package/dist/components/assetsPath.js +52 -26
  206. package/dist/components/assetsPath.js.map +1 -1
  207. package/dist/components/bq-checkbox.js +53 -6
  208. package/dist/components/bq-checkbox.js.map +1 -1
  209. package/dist/components/bq-dialog.js +1 -1
  210. package/dist/components/bq-drawer.js +5 -5
  211. package/dist/components/bq-drawer.js.map +1 -1
  212. package/dist/components/bq-icon2.js +23 -19
  213. package/dist/components/bq-icon2.js.map +1 -1
  214. package/dist/components/bq-input.js +35 -13
  215. package/dist/components/bq-input.js.map +1 -1
  216. package/dist/components/bq-select.js +71 -28
  217. package/dist/components/bq-select.js.map +1 -1
  218. package/dist/components/bq-tab-group.js +36 -16
  219. package/dist/components/bq-tab-group.js.map +1 -1
  220. package/dist/components/bq-tab.js +17 -7
  221. package/dist/components/bq-tab.js.map +1 -1
  222. package/dist/components/bq-tab.types.js +3 -1
  223. package/dist/components/bq-tab.types.js.map +1 -1
  224. package/dist/components/bq-tag2.js +3 -3
  225. package/dist/components/bq-textarea.js +3 -3
  226. package/dist/components/bq-toast.js +1 -1
  227. package/dist/components/bq-tooltip2.js +1 -1
  228. package/dist/components/index2.js +11 -8
  229. package/dist/components/index2.js.map +1 -1
  230. package/dist/esm/app-globals-de5a646b.js.map +1 -1
  231. package/dist/esm/assetsPath-a1b58980.js +75 -0
  232. package/dist/esm/assetsPath-a1b58980.js.map +1 -0
  233. package/dist/esm/beeq.js +3 -3
  234. package/dist/esm/bq-accordion-group.entry.js +2 -2
  235. package/dist/esm/bq-accordion.entry.js +2 -2
  236. package/dist/esm/bq-alert.entry.js +2 -2
  237. package/dist/esm/bq-avatar.entry.js +2 -2
  238. package/dist/esm/bq-badge.entry.js +2 -2
  239. package/dist/esm/bq-breadcrumb-item.entry.js +3 -3
  240. package/dist/esm/bq-breadcrumb.entry.js +2 -2
  241. package/dist/esm/bq-button_2.entry.js +25 -21
  242. package/dist/esm/bq-button_2.entry.js.map +1 -1
  243. package/dist/esm/bq-card.entry.js +2 -2
  244. package/dist/esm/bq-checkbox.entry.js +57 -6
  245. package/dist/esm/bq-checkbox.entry.js.map +1 -1
  246. package/dist/esm/bq-date-picker.entry.js +3 -3
  247. package/dist/esm/bq-dialog.entry.js +3 -3
  248. package/dist/esm/bq-divider.entry.js +2 -2
  249. package/dist/esm/bq-drawer.entry.js +7 -7
  250. package/dist/esm/bq-drawer.entry.js.map +1 -1
  251. package/dist/esm/bq-dropdown_2.entry.js +2 -2
  252. package/dist/esm/bq-empty-state.entry.js +2 -2
  253. package/dist/esm/bq-input.entry.js +43 -16
  254. package/dist/esm/bq-input.entry.js.map +1 -1
  255. package/dist/esm/bq-notification.entry.js +2 -2
  256. package/dist/esm/bq-option-group.entry.js +1 -1
  257. package/dist/esm/bq-option-list_2.entry.js +5 -5
  258. package/dist/esm/bq-option.entry.js +2 -2
  259. package/dist/esm/bq-page-title.entry.js +2 -2
  260. package/dist/esm/bq-progress.entry.js +2 -2
  261. package/dist/esm/bq-radio-group.entry.js +2 -2
  262. package/dist/esm/bq-radio.entry.js +1 -1
  263. package/dist/esm/bq-select.entry.js +79 -31
  264. package/dist/esm/bq-select.entry.js.map +1 -1
  265. package/dist/esm/bq-side-menu-item.entry.js +2 -2
  266. package/dist/esm/bq-side-menu.entry.js +2 -2
  267. package/dist/esm/bq-slider.entry.js +2 -2
  268. package/dist/esm/bq-spinner.entry.js +2 -2
  269. package/dist/esm/bq-status.entry.js +2 -2
  270. package/dist/esm/bq-step-item.entry.js +2 -2
  271. package/dist/esm/bq-steps.entry.js +2 -2
  272. package/dist/esm/bq-switch.entry.js +2 -2
  273. package/dist/esm/bq-tab-group.entry.js +32 -16
  274. package/dist/esm/bq-tab-group.entry.js.map +1 -1
  275. package/dist/esm/bq-tab.entry.js +14 -8
  276. package/dist/esm/bq-tab.entry.js.map +1 -1
  277. package/dist/esm/bq-tab.types-36e2666e.js +11 -0
  278. package/dist/esm/bq-tab.types-36e2666e.js.map +1 -0
  279. package/dist/esm/bq-textarea.entry.js +5 -5
  280. package/dist/esm/bq-toast.entry.js +3 -3
  281. package/dist/esm/bq-tooltip.entry.js +3 -3
  282. package/dist/esm/{index-138f308e.js → index-136429a6.js} +12 -9
  283. package/dist/esm/index-136429a6.js.map +1 -0
  284. package/dist/esm/{index-7eed7a88.js → index-f69556fe.js} +48 -2
  285. package/dist/esm/index-f69556fe.js.map +1 -0
  286. package/dist/esm/index.js +3 -3
  287. package/dist/esm/{isDefined-91ae4cd3.js → isDefined-170f3095.js} +2 -2
  288. package/dist/esm/{isDefined-91ae4cd3.js.map → isDefined-170f3095.js.map} +1 -1
  289. package/dist/esm/loader.js +3 -3
  290. package/dist/hydrate/index.js +348 -133
  291. package/dist/hydrate/index.mjs +348 -133
  292. package/dist/types/components/checkbox/bq-checkbox.d.ts +9 -0
  293. package/dist/types/components/drawer/bq-drawer.d.ts +3 -1
  294. package/dist/types/components/input/bq-input.d.ts +4 -1
  295. package/dist/types/components/select/bq-select.d.ts +18 -0
  296. package/dist/types/components/tab/bq-tab.d.ts +5 -1
  297. package/dist/types/components/tab/bq-tab.types.d.ts +4 -0
  298. package/dist/types/components/tab-group/bq-tab-group.d.ts +5 -1
  299. package/dist/types/components.d.ts +42 -2
  300. package/dist/types/home/workflows/workspace/packages/beeq/.stencil/packages/beeq/stencil.config.d.ts +2 -0
  301. package/dist/types/shared/utils/assetsPath.d.ts +18 -11
  302. package/package.json +24 -24
  303. package/dist/beeq/p-02202605.entry.js +0 -6
  304. package/dist/beeq/p-0f528ec6.js +0 -6
  305. package/dist/beeq/p-0f528ec6.js.map +0 -1
  306. package/dist/beeq/p-1d3f236b.entry.js +0 -6
  307. package/dist/beeq/p-1d3f236b.entry.js.map +0 -1
  308. package/dist/beeq/p-21a51ee0.entry.js +0 -6
  309. package/dist/beeq/p-2e8e7e37.entry.js +0 -6
  310. package/dist/beeq/p-3711298a.entry.js +0 -6
  311. package/dist/beeq/p-39f3d9d2.entry.js +0 -6
  312. package/dist/beeq/p-3a1f06e1.entry.js +0 -6
  313. package/dist/beeq/p-3a1f06e1.entry.js.map +0 -1
  314. package/dist/beeq/p-4291b23f.entry.js +0 -6
  315. package/dist/beeq/p-463a17cf.js +0 -7
  316. package/dist/beeq/p-463a17cf.js.map +0 -1
  317. package/dist/beeq/p-48b27aef.entry.js +0 -6
  318. package/dist/beeq/p-48b27aef.entry.js.map +0 -1
  319. package/dist/beeq/p-4f8ce653.entry.js +0 -6
  320. package/dist/beeq/p-5402707e.entry.js +0 -6
  321. package/dist/beeq/p-554d0f45.entry.js +0 -6
  322. package/dist/beeq/p-61c97bdc.entry.js +0 -6
  323. package/dist/beeq/p-64835973.entry.js +0 -6
  324. package/dist/beeq/p-67367b7d.entry.js +0 -6
  325. package/dist/beeq/p-68fdea6a.js +0 -6
  326. package/dist/beeq/p-68fdea6a.js.map +0 -1
  327. package/dist/beeq/p-6b824dba.entry.js +0 -6
  328. package/dist/beeq/p-6edc8a33.js +0 -6
  329. package/dist/beeq/p-6edc8a33.js.map +0 -1
  330. package/dist/beeq/p-7567ae06.entry.js +0 -6
  331. package/dist/beeq/p-7567ae06.entry.js.map +0 -1
  332. package/dist/beeq/p-7691bdfc.entry.js +0 -6
  333. package/dist/beeq/p-819acf02.entry.js +0 -6
  334. package/dist/beeq/p-889e6317.entry.js +0 -6
  335. package/dist/beeq/p-8b870d05.entry.js +0 -6
  336. package/dist/beeq/p-9c3030c7.entry.js +0 -6
  337. package/dist/beeq/p-a062b9c4.entry.js +0 -6
  338. package/dist/beeq/p-a2157e4d.entry.js +0 -6
  339. package/dist/beeq/p-a453d36c.entry.js +0 -6
  340. package/dist/beeq/p-a9ca89e7.entry.js +0 -6
  341. package/dist/beeq/p-aae41e31.entry.js +0 -6
  342. package/dist/beeq/p-aae41e31.entry.js.map +0 -1
  343. package/dist/beeq/p-aee056e5.js +0 -6
  344. package/dist/beeq/p-b2c55a62.entry.js +0 -6
  345. package/dist/beeq/p-bcc85103.entry.js +0 -6
  346. package/dist/beeq/p-bcf6e585.entry.js +0 -6
  347. package/dist/beeq/p-c3e33045.entry.js +0 -6
  348. package/dist/beeq/p-c88ca7e9.entry.js +0 -6
  349. package/dist/beeq/p-cec068b9.entry.js +0 -6
  350. package/dist/beeq/p-cec068b9.entry.js.map +0 -1
  351. package/dist/beeq/p-d4ca1283.entry.js +0 -6
  352. package/dist/beeq/p-d62cad31.entry.js +0 -6
  353. package/dist/beeq/p-d9a3844f.entry.js +0 -6
  354. package/dist/beeq/p-ec4a6d10.entry.js +0 -6
  355. package/dist/beeq/p-ec4a6d10.entry.js.map +0 -1
  356. package/dist/beeq/p-f7d3f428.entry.js +0 -6
  357. package/dist/beeq/p-fbb780c2.entry.js +0 -6
  358. package/dist/cjs/assetsPath-eac0a3bf.js +0 -52
  359. package/dist/cjs/assetsPath-eac0a3bf.js.map +0 -1
  360. package/dist/cjs/bq-tab.types-9fe0234a.js +0 -11
  361. package/dist/cjs/bq-tab.types-9fe0234a.js.map +0 -1
  362. package/dist/cjs/index-76b0999c.js.map +0 -1
  363. package/dist/cjs/index-a09d1c08.js.map +0 -1
  364. package/dist/esm/assetsPath-ae18c25e.js +0 -49
  365. package/dist/esm/assetsPath-ae18c25e.js.map +0 -1
  366. package/dist/esm/bq-tab.types-f64aa67d.js +0 -9
  367. package/dist/esm/bq-tab.types-f64aa67d.js.map +0 -1
  368. package/dist/esm/index-138f308e.js.map +0 -1
  369. package/dist/esm/index-7eed7a88.js.map +0 -1
  370. package/dist/types/home/runner/work/BEEQ/BEEQ/packages/beeq/.stencil/packages/beeq/stencil.config.d.ts +0 -2
  371. /package/dist/types/home/{runner/work/BEEQ/BEEQ → workflows/workspace}/packages/beeq/.stencil/tailwind.config.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"bq-tab-group.js","sourceRoot":"","sources":["../../../../../../src/components/tab-group/bq-tab-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEhG,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,KAAK,EAAa,iBAAiB,EAAE,MAA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AQ,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;YACzB,KAAK,YAAY,CAAC,CAAC,CAAC;gBAClB,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;gBAC9C,MAAM;YACR,CAAC;YACD,KAAK,WAAW,CAAC,CAAC,CAAC;gBACjB,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;gBAC/C,MAAM;YACR,CAAC;YACD,QAAQ;QACV,CAAC;IACH,CAAC;IAGD,QAAQ;QACN,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IA4DD,IAAY,aAAa;QACvB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxD,CAAC;IASD,oBAAoB;IACpB,oCAAoC;IACpC,sCAAsC;IAEtC,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAC,MAAM;YAC9F,4DAAK,KAAK,EAAC,8CAA8C,EAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,MAAM;gBAClF,8DAAQ,CACJ,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Listen, Prop, Watch } from '@stencil/core';\n\nimport { debounce, getNextElement, isHTMLElement, isNil, TDebounce, validatePropValue } from '../../shared/utils';\nimport { TAB_SIZE, TTabSize } from '../tab/bq-tab.types';\n\n/**\n * @part base - The HTML div wrapper inside the shadow DOM.\n * @part tabs - The HTML div used to hold the tab buttons.\n */\n@Component({\n tag: 'bq-tab-group',\n styleUrl: './scss/bq-tab-group.scss',\n shadow: true,\n})\nexport class BqTabGroup {\n // Own Properties\n // ====================\n\n private debouncedBqChange: TDebounce<{ value: string; target: HTMLBqTabElement }>;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqTabGroupElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n /** A string representing the id of the selected tab. */\n @Prop({ reflect: true, mutable: true }) value: string;\n\n /** The size of the tab */\n @Prop({ reflect: true }) size: TTabSize = 'medium';\n\n /** A number representing the delay value applied to bqChange event handler */\n @Prop({ reflect: true, mutable: true }) debounceTime = 0;\n\n /** If true, the underline divider below the tabs won't be shown */\n @Prop({ reflect: true }) disableDivider = false;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('debounceTime')\n checkDebounceChange() {\n if (this.debounceTime < 0) {\n this.debounceTime = Math.max(0, this.debounceTime);\n }\n\n if (this.debouncedBqChange) {\n this.debouncedBqChange.cancel();\n }\n\n this.debouncedBqChange = debounce((event: Parameters<typeof this.debouncedBqChange>[0]) => {\n this.bqChange.emit(event);\n }, this.debounceTime);\n }\n\n @Watch('size')\n @Watch('value')\n checkPropValues() {\n validatePropValue(TAB_SIZE, 'medium', this.el, 'size');\n\n this.bqTabElements.forEach((bqTabElement) => {\n bqTabElement.size = this.size;\n bqTabElement.active = !isNil(this.value) ? bqTabElement.tabId === this.value : false;\n });\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Handler to be called when the tab value changes */\n @Event() bqChange: EventEmitter<{ target: HTMLBqTabElement; value: string }>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.checkDebounceChange();\n this.checkPropValues();\n }\n\n componentDidLoad() {\n this.checkPropValues();\n }\n\n // Listeners\n // ==============\n\n @Listen('keyup', { target: 'body', passive: true, capture: true })\n onKeyUp(event: KeyboardEvent) {\n const { target } = event;\n if (!isHTMLElement(target, 'bq-tab')) return;\n\n this.makeTabsFocusable();\n }\n\n @Listen('bqClick', { passive: true })\n onBqClick(event: CustomEvent<HTMLBqTabElement>) {\n const { detail: target } = event;\n this.bqTabElements.forEach((bqTabElement) => (bqTabElement.active = bqTabElement === target));\n this.debouncedBqChange({ value: target.tabId, target });\n this.selectTab(target);\n }\n\n @Listen('bqKeyDown', { passive: true })\n async onBqKeyDown(event: CustomEvent<KeyboardEvent>) {\n const { target } = event;\n\n if (!isHTMLElement(target, 'bq-tab')) return;\n\n switch (event.detail.key) {\n case 'ArrowRight': {\n await this.focusTabSibling(target, 'forward');\n break;\n }\n case 'ArrowLeft': {\n await this.focusTabSibling(target, 'backward');\n break;\n }\n default:\n }\n }\n\n @Listen('bqBlur', { capture: true, passive: true })\n onBqBlur() {\n this.restoreTabsFocus();\n }\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private focusTabSibling = async (\n currentTarget: HTMLBqTabElement,\n direction: 'forward' | 'backward',\n ): Promise<void> => {\n let target: HTMLBqTabElement | null = null;\n\n this.bqTabElements.forEach((bqTabElement, index, elements) => {\n bqTabElement.active = false;\n\n if (bqTabElement === currentTarget) {\n target = getNextElement(elements, index, direction);\n }\n });\n\n if (target) {\n await target.vFocus();\n this.selectTab(target);\n }\n };\n\n private makeTabsFocusable = (): void => {\n this.bqTabElements.forEach((bqTabElement) => {\n if (bqTabElement.disabled) return;\n\n /**\n * This is a \"fire and forget\" operation. The callback itself doesn't do anything special\n * with the asynchronous code (doesn't await it or do anything with the result)\n * Details: https://stackoverflow.com/a/63488201\n */\n (async () => {\n await bqTabElement.enableFocus(true);\n })();\n });\n };\n\n private restoreTabsFocus = (): void => {\n this.bqTabElements.forEach((bqTabElement) => {\n if (bqTabElement.disabled || bqTabElement.active) return;\n\n /** @See line #173 */\n (async () => {\n await bqTabElement.enableFocus(false);\n })();\n });\n };\n\n private get bqTabElements(): HTMLBqTabElement[] {\n return Array.from(this.el.querySelectorAll('bq-tab'));\n }\n\n private selectTab = (target: HTMLBqTabElement): void => {\n const { tabId } = target;\n target.active = true;\n this.value = tabId;\n this.debouncedBqChange({ value: tabId, target });\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <div class={{ 'bq-tab-group flex w-full': true, 'no-divider': this.disableDivider }} part=\"base\">\n <div class=\"bq-tab-group--container flex overflow-x-auto\" role=\"tablist\" part=\"tabs\">\n <slot />\n </div>\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"bq-tab-group.js","sourceRoot":"","sources":["../../../../../../src/components/tab-group/bq-tab-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtG,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,KAAK,EAAa,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAClH,OAAO,EACL,eAAe,EACf,aAAa,EACb,QAAQ,GAIT,MAAM,qBAAqB,CAAC;AAE7B;;;GAGG;AAMH,MAAM,OAAO,UAAU;;QAyIrB,qBAAqB;QACrB,iDAAiD;QACjD,wBAAwB;QACxB,gCAAgC;QAChC,gDAAgD;QAChD,kDAAkD;QAElD,gBAAgB;QAChB,2BAA2B;QAC3B,wDAAwD;QACxD,0DAA0D;QAElD,oBAAe,GAAG,KAAK,EAC7B,aAA+B,EAC/B,SAAiC,EAClB,EAAE;YACjB,IAAI,MAAM,GAA4B,IAAI,CAAC;YAE3C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;gBAC3D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Watch } from '@stencil/core';\n\nimport { debounce, getNextElement, isHTMLElement, isNil, TDebounce, validatePropValue } from '../../shared/utils';\nimport {\n TAB_ORIENTATION,\n TAB_PLACEMENT,\n TAB_SIZE,\n TTabOrientation,\n TTabPlacement,\n TTabSize,\n} from '../tab/bq-tab.types';\n\n/**\n * @part base - The HTML div wrapper inside the shadow DOM.\n * @part tabs - The HTML div used to hold the tab buttons.\n */\n@Component({\n tag: 'bq-tab-group',\n styleUrl: './scss/bq-tab-group.scss',\n shadow: true,\n})\nexport class BqTabGroup {\n // Own Properties\n // ====================\n\n private debouncedBqChange: TDebounce<{ value: string; target: HTMLBqTabElement }>;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqTabGroupElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n /** A string representing the id of the selected tab. */\n @Prop({ reflect: true, mutable: true }) value: string;\n\n /** The size of the tab */\n @Prop({ reflect: true }) size: TTabSize = 'medium';\n\n /** The direction that tab should be render */\n @Prop({ reflect: true }) orientation?: TTabOrientation = 'horizontal';\n\n /** The placement that tab should be render */\n @Prop({ reflect: true }) placement?: TTabPlacement = 'start';\n\n /** A number representing the delay value applied to bqChange event handler */\n @Prop({ reflect: true, mutable: true }) debounceTime = 0;\n\n /** If true, the underline divider below the tabs won't be shown */\n @Prop({ reflect: true }) disableDivider = false;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('debounceTime')\n checkDebounceChange() {\n if (this.debounceTime < 0) {\n this.debounceTime = Math.max(0, this.debounceTime);\n }\n\n if (this.debouncedBqChange) {\n this.debouncedBqChange.cancel();\n }\n\n this.debouncedBqChange = debounce((event: Parameters<typeof this.debouncedBqChange>[0]) => {\n this.bqChange.emit(event);\n }, this.debounceTime);\n }\n\n @Watch('size')\n @Watch('value')\n @Watch('orientation')\n @Watch('placement')\n checkPropValues() {\n validatePropValue(TAB_SIZE, 'medium', this.el, 'size');\n validatePropValue(TAB_ORIENTATION, 'horizontal', this.el, 'orientation');\n validatePropValue(TAB_PLACEMENT, 'start', this.el, 'placement');\n\n this.bqTabElements.forEach((bqTabElement) => {\n bqTabElement.size = this.size;\n bqTabElement.orientation = this.orientation;\n bqTabElement.placement = this.placement;\n bqTabElement.active = !isNil(this.value) ? bqTabElement.tabId === this.value : false;\n });\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Handler to be called when the tab value changes */\n @Event() bqChange: EventEmitter<{ target: HTMLBqTabElement; value: string }>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.checkDebounceChange();\n this.checkPropValues();\n }\n\n componentDidLoad() {\n this.checkPropValues();\n }\n\n // Listeners\n // ==============\n\n @Listen('keyup', { target: 'body', passive: true, capture: true })\n onKeyUp(event: KeyboardEvent) {\n const { target } = event;\n if (!isHTMLElement(target, 'bq-tab')) return;\n\n this.makeTabsFocusable();\n }\n\n @Listen('bqClick', { passive: true })\n onBqClick(event: CustomEvent<HTMLBqTabElement>) {\n const { detail: target } = event;\n this.bqTabElements.forEach((bqTabElement) => (bqTabElement.active = bqTabElement === target));\n this.debouncedBqChange({ value: target.tabId, target });\n this.selectTab(target);\n }\n\n @Listen('bqKeyDown', { passive: true })\n async onBqKeyDown(event: CustomEvent<KeyboardEvent>) {\n const { target } = event;\n\n // NOTE: ensures the target is an HTML element with the tag name 'bq-tab'\n if (!isHTMLElement(target, 'bq-tab')) return;\n\n const keyActions: { [key: string]: 'forward' | 'backward' } = {\n ArrowDown: 'forward',\n ArrowRight: 'forward',\n ArrowUp: 'backward',\n ArrowLeft: 'backward',\n };\n\n // NOTE: gets the direction based on key pressed\n const direction = keyActions[event.detail.key];\n\n if (!direction) return;\n\n await this.focusTabSibling(target, direction);\n }\n\n @Listen('bqBlur', { capture: true, passive: true })\n onBqBlur() {\n this.restoreTabsFocus();\n }\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private focusTabSibling = async (\n currentTarget: HTMLBqTabElement,\n direction: 'forward' | 'backward',\n ): Promise<void> => {\n let target: HTMLBqTabElement | null = null;\n\n this.bqTabElements.forEach((bqTabElement, index, elements) => {\n bqTabElement.active = false;\n\n if (bqTabElement === currentTarget) {\n target = getNextElement(elements, index, direction);\n }\n });\n\n if (target) {\n await target.vFocus();\n this.selectTab(target);\n }\n };\n\n private makeTabsFocusable = (): void => {\n this.bqTabElements.forEach((bqTabElement) => {\n if (bqTabElement.disabled) return;\n\n /**\n * This is a \"fire and forget\" operation. The callback itself doesn't do anything special\n * with the asynchronous code (doesn't await it or do anything with the result)\n * Details: https://stackoverflow.com/a/63488201\n */\n (async () => {\n await bqTabElement.enableFocus(true);\n })();\n });\n };\n\n private restoreTabsFocus = (): void => {\n this.bqTabElements.forEach((bqTabElement) => {\n if (bqTabElement.disabled || bqTabElement.active) return;\n\n /** @See line #173 */\n (async () => {\n await bqTabElement.enableFocus(false);\n })();\n });\n };\n\n private get bqTabElements(): HTMLBqTabElement[] {\n return Array.from(this.el.querySelectorAll('bq-tab'));\n }\n\n private selectTab = (target: HTMLBqTabElement): void => {\n const { tabId } = target;\n target.active = true;\n this.value = tabId;\n this.debouncedBqChange({ value: tabId, target });\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <Host class={{ 'inline-block': this.orientation === 'vertical' }}>\n <div\n class={{\n [`bq-tab-group bq-tab-group--${this.orientation}-${this.placement} flex is-full`]: true,\n 'no-divider': this.disableDivider,\n }}\n part=\"base\"\n >\n <div\n class={{\n 'bq-tab-group--container flex overflow-x-auto': true,\n 'flex-col': this.orientation !== 'horizontal',\n }}\n role=\"tablist\"\n part=\"tabs\"\n >\n <slot />\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- ::backdrop,:root{--bq-blue-100:#e7f0fd;--bq-blue-200:#d0e2fb;--bq-blue-300:#a1c5f7;--bq-blue-400:#73a8f3;--bq-blue-500:#448bef;--bq-blue-600:#156eeb;--bq-blue-700:#1158bc;--bq-blue-800:#0d428d;--bq-blue-900:#082c5e;--bq-blue-1000:#04162f;--bq-corai-100:#fff2f2;--bq-corai-200:#ffe6e6;--bq-corai-300:#ffccce;--bq-corai-400:#ffb3b5;--bq-corai-500:#ff999d;--bq-corai-600:#ff8084;--bq-corai-700:#cc666a;--bq-corai-800:#994d4f;--bq-corai-900:#663335;--bq-corai-1000:#331a1a;--bq-cyan-100:#e8f7fb;--bq-cyan-200:#d2f0f8;--bq-cyan-300:#a5e1f1;--bq-cyan-400:#78d1e9;--bq-cyan-500:#4bc2e2;--bq-cyan-600:#1eb3db;--bq-cyan-700:#188faf;--bq-cyan-800:#126b83;--bq-cyan-900:#0c4858;--bq-cyan-1000:#06242c;--bq-gold-100:#fbf4ec;--bq-gold-200:#f7e9da;--bq-gold-300:#f0d3b6;--bq-gold-400:#e8bc91;--bq-gold-500:#e1a66d;--bq-gold-600:#d99048;--bq-gold-700:#ae733a;--bq-gold-800:#82562b;--bq-gold-900:#573a1d;--bq-gold-1000:#2b1d0e;--bq-green-100:#e8f8ef;--bq-green-200:#d2f1e0;--bq-green-300:#a5e3c1;--bq-green-400:#78d5a1;--bq-green-500:#4bc782;--bq-green-600:#1eb963;--bq-green-700:#18944f;--bq-green-800:#126f3b;--bq-green-900:#0c4a28;--bq-green-1000:#062514;--bq-grey-100:#f1f2f4;--bq-grey-200:#e7e8eb;--bq-grey-300:#caccd2;--bq-grey-400:#a6aab3;--bq-grey-50:#f6f6f8;--bq-grey-500:#898e99;--bq-grey-600:#646a77;--bq-grey-700:#3f4350;--bq-grey-800:#2a2c35;--bq-grey-900:#1c1d23;--bq-grey-950:#15161a;--bq-grey-1000:#0d0e11;--bq-indigo-100:#edecfc;--bq-indigo-200:#dcdafa;--bq-indigo-300:#b9b5f5;--bq-indigo-400:#9590ef;--bq-indigo-500:#726bea;--bq-indigo-600:#4f46e5;--bq-indigo-700:#3f38b7;--bq-indigo-800:#2f2a89;--bq-indigo-900:#201c5c;--bq-indigo-1000:#100e2e;--bq-iris-100:#e9f0ff;--bq-iris-200:#d6e0ff;--bq-iris-300:#b2c0fe;--bq-iris-400:#8691f8;--bq-iris-500:#6061ee;--bq-iris-600:#4f46e5;--bq-iris-700:#413abd;--bq-iris-800:#332e95;--bq-iris-900:#26216d;--bq-iris-1000:#181545;--bq-lime-100:#f5fae8;--bq-lime-200:#ecf6d2;--bq-lime-300:#d9eda5;--bq-lime-400:#c5e379;--bq-lime-500:#b2da4c;--bq-lime-600:#9fd11f;--bq-lime-700:#7fa719;--bq-lime-800:#5f7d13;--bq-lime-900:#40540c;--bq-lime-1000:#202a06;--bq-magenta-100:#fce7f4;--bq-magenta-200:#f9cfea;--bq-magenta-300:#f39fd6;--bq-magenta-400:#ee6fbf;--bq-magenta-500:#e83fab;--bq-magenta-600:#de1395;--bq-magenta-700:#b20f77;--bq-magenta-800:#850c59;--bq-magenta-900:#58083c;--bq-magenta-1000:#2c041e;--bq-neutral-white:#fbfbfc;--bq-neutral-black:#060708;--bq-orange-100:#fbf0e9;--bq-orange-200:#f8e1d4;--bq-orange-300:#f1c2a8;--bq-orange-400:#eaa47d;--bq-orange-500:#e38551;--bq-orange-600:#dc6726;--bq-orange-700:#b0521e;--bq-orange-800:#843e17;--bq-orange-900:#58290f;--bq-orange-1000:#2c1508;--bq-purple-100:#efebf8;--bq-purple-200:#e0d7f2;--bq-purple-300:#c1afe5;--bq-purple-400:#a388d8;--bq-purple-500:#8460cb;--bq-purple-600:#6538be;--bq-purple-700:#512d98;--bq-purple-800:#3d2272;--bq-purple-900:#28164c;--bq-purple-1000:#140b26;--bq-red-100:#fce7ea;--bq-red-200:#f9d1d5;--bq-red-300:#f3a2ac;--bq-red-400:#ed7482;--bq-red-500:#e74559;--bq-red-600:#e1172f;--bq-red-700:#b41226;--bq-red-800:#870e1c;--bq-red-900:#5a0913;--bq-red-1000:#2d0509;--bq-sky-100:#eff4fb;--bq-sky-200:#dfeaf8;--bq-sky-300:#bfd5f1;--bq-sky-400:#9ec1e9;--bq-sky-500:#7eace2;--bq-sky-600:#5e97db;--bq-sky-700:#4b79af;--bq-sky-800:#385b83;--bq-sky-900:#263c58;--bq-sky-1000:#131e2c;--bq-teal-100:#e5f7f5;--bq-teal-200:#ccf0eb;--bq-teal-300:#99e1d8;--bq-teal-400:#66d2c4;--bq-teal-500:#33c3b1;--bq-teal-600:#00b49d;--bq-teal-700:#00907e;--bq-teal-800:#006c5e;--bq-teal-900:#00483f;--bq-teal-1000:#00241f;--bq-volcano-100:#feede7;--bq-volcano-200:#fddbd1;--bq-volcano-300:#fbb8a3;--bq-volcano-400:#fa9474;--bq-volcano-500:#f87146;--bq-volcano-600:#f64d18;--bq-volcano-700:#c53e13;--bq-volcano-800:#942e0e;--bq-volcano-900:#621f0a;--bq-volcano-1000:#310f05;--bq-yellow-100:#fefbe7;--bq-yellow-200:#fcf6d0;--bq-yellow-300:#faeea0;--bq-yellow-400:#f7e571;--bq-yellow-500:#f5dd41;--bq-yellow-600:#f2d412;--bq-yellow-700:#c2aa0e;--bq-yellow-800:#917f0b;--bq-yellow-900:#615507;--bq-yellow-1000:#302a04;--bq-endava-grey-50:#f7f7f8;--bq-endava-grey-100:#e4e6e7;--bq-endava-grey-200:#b5babe;--bq-endava-grey-300:#949ca1;--bq-endava-grey-400:#737d84;--bq-endava-grey-500:#525f67;--bq-endava-grey-600:#30404b;--bq-endava-grey-700:#2b3942;--bq-endava-grey-800:#263139;--bq-endava-grey-900:#192b37;--bq-endava-grey-950:#151b1e;--bq-endava-grey-1000:#0f1316;--bq-endava-neutral-white:#fafbfb;--bq-endava-neutral-black:#060708;--bq-endava-orange-100:#fef3f1;--bq-endava-orange-200:#fbd6d1;--bq-endava-orange-300:#fab7af;--bq-endava-orange-400:#fa988b;--bq-endava-orange-500:#fc7866;--bq-endava-orange-600:#ff5640;--bq-endava-orange-700:#ce4a39;--bq-endava-orange-800:#a03d30;--bq-endava-orange-900:#722e25;--bq-endava-orange-1000:#471e19}*,:after,:before{box-sizing:border-box}*{font:inherit;margin:0}ol[role=list],ul[role=list]{list-style-type:none}html{font-size:var(--bq-font-size--m)}html:focus-within{scroll-behavior:smooth}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--bq-background--primary);color:var(--bq-text--primary);font-family:var(--bq-font-family);line-height:var(--bq-font-line-height--regular);min-height:100vh;text-rendering:optimizeSpeed}a:not([class]){text-decoration-skip-ink:auto}canvas,img,picture,svg,video{display:block;max-width:100%}button,input,select,textarea{font:inherit}h1,h2,h3,h4,h5,h6,p{overflow-wrap:break-word}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto;transition-duration:.01ms!important}}:root{--bq-white:#fff;--bq-black:#060708;--bq-neutral-50:var(--bq-grey-50);--bq-neutral-100:var(--bq-grey-100);--bq-neutral-200:var(--bq-grey-200);--bq-neutral-300:var(--bq-grey-300);--bq-neutral-400:var(--bq-grey-400);--bq-neutral-500:var(--bq-grey-500);--bq-neutral-600:var(--bq-grey-600);--bq-neutral-700:var(--bq-grey-700);--bq-neutral-800:var(--bq-grey-800);--bq-neutral-900:var(--bq-grey-900);--bq-neutral-950:var(--bq-grey-950);--bq-neutral-1000:var(--bq-grey-1000);--bq-brand-light:var(--bq-iris-100);--bq-brand:var(--bq-iris-600);--bq-brand-dark:var(--bq-iris-1000);--bq-accent-light:var(--bq-purple-100);--bq-accent:var(--bq-purple-600);--bq-accent-dark:var(--bq-purple-1000);--bq-success-light:var(--bq-teal-100);--bq-success:var(--bq-teal-600);--bq-success-dark:var(--bq-teal-1000);--bq-danger-light:var(--bq-red-100);--bq-danger:var(--bq-red-600);--bq-danger-dark:var(--bq-red-1000);--bq-warning-light:var(--bq-gold-100);--bq-warning:var(--bq-gold-600);--bq-warning-dark:var(--bq-gold-1000);--bq-info-light:var(--bq-iris-100);--bq-info:var(--bq-iris-600);--bq-info-dark:var(--bq-iris-1000);--bq-focus:var(--bq-iris-600);--bq-data-01:var(--bq-brand);--bq-data-02:var(--bq-purple-600);--bq-data-03:var(--bq-magenta-600);--bq-data-04:var(--bq-cyan-600);--bq-data-05:var(--bq-teal-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-yellow-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-blue-600);--bq-data-10:var(--bq-grey-600);--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white);--bq-radius--none:0;--bq-radius--xs2:0.125rem;--bq-radius--xs:0.25rem;--bq-radius--s:0.5rem;--bq-radius--m:0.75rem;--bq-radius--l:1.5rem;--bq-radius--full:9999px;--bq-box-shadow--xs:0 2px 0 rgba(0,0,0,.016);--bq-box-shadow--s:0 8px 24px rgba(0,0,0,.04);--bq-box-shadow--m:0 10px 48px -16px rgba(0,0,0,.12);--bq-box-shadow--l:0 20px 58px -16px rgba(0,0,0,.16);--bq-font-family:"Outfit",sans-serif;--bq-font-size--xs:0.75rem;--bq-font-size--s:0.875rem;--bq-font-size--m:1rem;--bq-font-size--l:1.125rem;--bq-font-size--xl:1.5rem;--bq-font-size--xxl:2rem;--bq-font-size--xxl2:2.5rem;--bq-font-size--xxl3:3rem;--bq-font-size--xxl4:3.5rem;--bq-font-size--xxl5:4rem;--bq-font-weight--thin:100;--bq-font-weight--light:300;--bq-font-weight--regular:400;--bq-font-weight--medium:500;--bq-font-weight--semibold:600;--bq-font-weight--bold:700;--bq-font-line-height--small:1.2;--bq-font-line-height--regular:1.5;--bq-font-line-height--large:1.5;--bq-spacing-xs3:0.125rem;--bq-spacing-xs2:0.25rem;--bq-spacing-xs:0.5rem;--bq-spacing-s:0.75rem;--bq-spacing-m:1rem;--bq-spacing-l:1.5rem;--bq-spacing-xl:2rem;--bq-spacing-xxl:2.5rem;--bq-spacing-xxl2:3.5rem;--bq-spacing-xxl3:4rem;--bq-spacing-xxl4:4.5rem;--bq-stroke-s:1px;--bq-stroke-m:2px;--bq-stroke-l:3px}.beeq.light,.light,:root,[bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--alt:var(--bq-white);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-200);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-light);--bq-hover:#bcbfc5;--bq-active:#444546}.beeq.dark,.dark,[bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-950);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-800);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-dark);--bq-hover:#444546;--bq-active:#1f2026}.endava,[bq-theme=endava]{--bq-font-family:"Poppins",sans-serif;--bq-white:#fafbfb;--bq-black:#030406;--bq-neutral-50:var(--bq-endava-grey-50);--bq-neutral-100:var(--bq-endava-grey-100);--bq-neutral-200:var(--bq-endava-grey-200);--bq-neutral-300:var(--bq-endava-grey-300);--bq-neutral-400:var(--bq-endava-grey-400);--bq-neutral-500:var(--bq-endava-grey-500);--bq-neutral-600:var(--bq-endava-grey-600);--bq-neutral-700:var(--bq-endava-grey-700);--bq-neutral-800:var(--bq-endava-grey-800);--bq-neutral-900:var(--bq-endava-grey-900);--bq-neutral-950:var(--bq-endava-grey-950);--bq-neutral-1000:var(--bq-endava-grey-1000);--bq-brand-light:var(--bq-endava-orange-100);--bq-brand:var(--bq-endava-orange-600);--bq-brand-dark:var(--bq-endava-orange-1000);--bq-accent-light:var(--bq-endava-orange-100);--bq-accent:var(--bq-endava-orange-600);--bq-accent-dark:var(--bq-endava-orange-1000);--bq-success-light:var(--bq-green-100);--bq-success:var(--bq-green-600);--bq-success-dark:var(--bq-green-1000);--bq-danger-light:var(--bq-corai-100);--bq-danger:var(--bq-corai-600);--bq-danger-dark:var(--bq-corai-1000);--bq-warning-light:var(--bq-yellow-100);--bq-warning:var(--bq-yellow-600);--bq-warning-dark:var(--bq-yellow-1000);--bq-info-light:var(--bq-blue-100);--bq-info:var(--bq-blue-600);--bq-info-dark:var(--bq-blue-1000);--bq-focus:var(--bq-endava-orange-600);--bq-data-01:var(--bq-brand);--bq-data-02:#af0cd8;--bq-data-03:#0ca8d8;--bq-data-04:var(--bq-teal-600);--bq-data-05:var(--bq-yellow-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-blue-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-purple-600);--bq-data-10:#394b56;--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white)}.endava.light,[bq-theme=endava][bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--brand-alt:var(--bq-brand-light);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-200);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--brand:var(--bq-brand);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-light);--bq-hover:#444546;--bq-active:#1f2026}.endava.dark,[bq-theme=endava][bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-900);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--brand-alt:var(--bq-brand-dark);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-neutral-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-800);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-dark);--bq-hover:#444546;--bq-active:#1f2026}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.block{display:block}.flex{display:flex}.hidden{display:none}.w-full{width:100%}.gap-xs2{gap:var(--bq-spacing-xs2)}.border-0{border-width:0}.border-b-s{border-bottom-width:var(--bq-stroke-s)}.border-solid{border-style:solid}.border-bg-tertiary{border-color:var(--bq-background--tertiary)}.p-xs2{padding:var(--bq-spacing-xs2)}.content-empty{--tw-content:"";content:var(--tw-content)}.content-none{--tw-content:none;content:var(--tw-content)}@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}:host{display:block}.bq-tab-group{position:relative}.bq-tab-group:after{--tw-content:"";border-width:0;border-bottom-width:var(--bq-stroke-s);border-color:var(--bq-background--tertiary);border-style:solid;bottom:0;content:var(--tw-content);display:flex;position:absolute;width:100%}.bq-tab-group.no-divider:after{--tw-content:none;content:var(--tw-content)}.bq-tab-group--container{-ms-overflow-style:none;gap:var(--bq-spacing-xs2);padding:var(--bq-spacing-xs2);scrollbar-width:none}.bq-tab-group--container::-webkit-scrollbar{display:none}.static{position:static}.overflow-x-auto{overflow-x:auto}.blur{--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.ms-\[--bq-tab--label-icon-gap\]{margin-inline-start:var(--bq-tab--label-icon-gap)}.line-clamp-1{-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;overflow:hidden}.items-center{align-items:center}.justify-center{justify-content:center}.text-text-brand{color:var(--bq-text--brand)}.text-text-primary{color:var(--bq-text--primary)}.underline{text-decoration-line:underline}.focus{outline:var(--bq-ring-width,2px) solid var(--bq-ring-color-focus,var(--bq-focus));outline-offset:var(--bq-ring-offset-width,1px)}
1
+ ::backdrop,:root{--bq-blue-100:#e7f0fd;--bq-blue-200:#d0e2fb;--bq-blue-300:#a1c5f7;--bq-blue-400:#73a8f3;--bq-blue-500:#448bef;--bq-blue-600:#156eeb;--bq-blue-700:#1158bc;--bq-blue-800:#0d428d;--bq-blue-900:#082c5e;--bq-blue-1000:#04162f;--bq-corai-100:#fff2f2;--bq-corai-200:#ffe6e6;--bq-corai-300:#ffccce;--bq-corai-400:#ffb3b5;--bq-corai-500:#ff999d;--bq-corai-600:#ff8084;--bq-corai-700:#cc666a;--bq-corai-800:#994d4f;--bq-corai-900:#663335;--bq-corai-1000:#331a1a;--bq-cyan-100:#e8f7fb;--bq-cyan-200:#d2f0f8;--bq-cyan-300:#a5e1f1;--bq-cyan-400:#78d1e9;--bq-cyan-500:#4bc2e2;--bq-cyan-600:#1eb3db;--bq-cyan-700:#188faf;--bq-cyan-800:#126b83;--bq-cyan-900:#0c4858;--bq-cyan-1000:#06242c;--bq-gold-100:#fbf4ec;--bq-gold-200:#f7e9da;--bq-gold-300:#f0d3b6;--bq-gold-400:#e8bc91;--bq-gold-500:#e1a66d;--bq-gold-600:#d99048;--bq-gold-700:#ae733a;--bq-gold-800:#82562b;--bq-gold-900:#573a1d;--bq-gold-1000:#2b1d0e;--bq-green-100:#e8f8ef;--bq-green-200:#d2f1e0;--bq-green-300:#a5e3c1;--bq-green-400:#78d5a1;--bq-green-500:#4bc782;--bq-green-600:#1eb963;--bq-green-700:#18944f;--bq-green-800:#126f3b;--bq-green-900:#0c4a28;--bq-green-1000:#062514;--bq-grey-100:#f1f2f4;--bq-grey-200:#e7e8eb;--bq-grey-300:#caccd2;--bq-grey-400:#a6aab3;--bq-grey-50:#f6f6f8;--bq-grey-500:#898e99;--bq-grey-600:#646a77;--bq-grey-700:#3f4350;--bq-grey-800:#2a2c35;--bq-grey-900:#1c1d23;--bq-grey-950:#15161a;--bq-grey-1000:#0d0e11;--bq-indigo-100:#edecfc;--bq-indigo-200:#dcdafa;--bq-indigo-300:#b9b5f5;--bq-indigo-400:#9590ef;--bq-indigo-500:#726bea;--bq-indigo-600:#4f46e5;--bq-indigo-700:#3f38b7;--bq-indigo-800:#2f2a89;--bq-indigo-900:#201c5c;--bq-indigo-1000:#100e2e;--bq-iris-100:#e9f0ff;--bq-iris-200:#d6e0ff;--bq-iris-300:#b2c0fe;--bq-iris-400:#8691f8;--bq-iris-500:#6061ee;--bq-iris-600:#4f46e5;--bq-iris-700:#413abd;--bq-iris-800:#332e95;--bq-iris-900:#26216d;--bq-iris-1000:#181545;--bq-lime-100:#f5fae8;--bq-lime-200:#ecf6d2;--bq-lime-300:#d9eda5;--bq-lime-400:#c5e379;--bq-lime-500:#b2da4c;--bq-lime-600:#9fd11f;--bq-lime-700:#7fa719;--bq-lime-800:#5f7d13;--bq-lime-900:#40540c;--bq-lime-1000:#202a06;--bq-magenta-100:#fce7f4;--bq-magenta-200:#f9cfea;--bq-magenta-300:#f39fd6;--bq-magenta-400:#ee6fbf;--bq-magenta-500:#e83fab;--bq-magenta-600:#de1395;--bq-magenta-700:#b20f77;--bq-magenta-800:#850c59;--bq-magenta-900:#58083c;--bq-magenta-1000:#2c041e;--bq-neutral-white:#fbfbfc;--bq-neutral-black:#060708;--bq-orange-100:#fbf0e9;--bq-orange-200:#f8e1d4;--bq-orange-300:#f1c2a8;--bq-orange-400:#eaa47d;--bq-orange-500:#e38551;--bq-orange-600:#dc6726;--bq-orange-700:#b0521e;--bq-orange-800:#843e17;--bq-orange-900:#58290f;--bq-orange-1000:#2c1508;--bq-purple-100:#efebf8;--bq-purple-200:#e0d7f2;--bq-purple-300:#c1afe5;--bq-purple-400:#a388d8;--bq-purple-500:#8460cb;--bq-purple-600:#6538be;--bq-purple-700:#512d98;--bq-purple-800:#3d2272;--bq-purple-900:#28164c;--bq-purple-1000:#140b26;--bq-red-100:#fce7ea;--bq-red-200:#f9d1d5;--bq-red-300:#f3a2ac;--bq-red-400:#ed7482;--bq-red-500:#e74559;--bq-red-600:#e1172f;--bq-red-700:#b41226;--bq-red-800:#870e1c;--bq-red-900:#5a0913;--bq-red-1000:#2d0509;--bq-sky-100:#eff4fb;--bq-sky-200:#dfeaf8;--bq-sky-300:#bfd5f1;--bq-sky-400:#9ec1e9;--bq-sky-500:#7eace2;--bq-sky-600:#5e97db;--bq-sky-700:#4b79af;--bq-sky-800:#385b83;--bq-sky-900:#263c58;--bq-sky-1000:#131e2c;--bq-teal-100:#e5f7f5;--bq-teal-200:#ccf0eb;--bq-teal-300:#99e1d8;--bq-teal-400:#66d2c4;--bq-teal-500:#33c3b1;--bq-teal-600:#00b49d;--bq-teal-700:#00907e;--bq-teal-800:#006c5e;--bq-teal-900:#00483f;--bq-teal-1000:#00241f;--bq-volcano-100:#feede7;--bq-volcano-200:#fddbd1;--bq-volcano-300:#fbb8a3;--bq-volcano-400:#fa9474;--bq-volcano-500:#f87146;--bq-volcano-600:#f64d18;--bq-volcano-700:#c53e13;--bq-volcano-800:#942e0e;--bq-volcano-900:#621f0a;--bq-volcano-1000:#310f05;--bq-yellow-100:#fefbe7;--bq-yellow-200:#fcf6d0;--bq-yellow-300:#faeea0;--bq-yellow-400:#f7e571;--bq-yellow-500:#f5dd41;--bq-yellow-600:#f2d412;--bq-yellow-700:#c2aa0e;--bq-yellow-800:#917f0b;--bq-yellow-900:#615507;--bq-yellow-1000:#302a04;--bq-endava-grey-50:#f7f7f8;--bq-endava-grey-100:#e4e6e7;--bq-endava-grey-200:#b5babe;--bq-endava-grey-300:#949ca1;--bq-endava-grey-400:#737d84;--bq-endava-grey-500:#525f67;--bq-endava-grey-600:#30404b;--bq-endava-grey-700:#2b3942;--bq-endava-grey-800:#263139;--bq-endava-grey-900:#192b37;--bq-endava-grey-950:#151b1e;--bq-endava-grey-1000:#0f1316;--bq-endava-neutral-white:#fafbfb;--bq-endava-neutral-black:#060708;--bq-endava-orange-100:#fef3f1;--bq-endava-orange-200:#fbd6d1;--bq-endava-orange-300:#fab7af;--bq-endava-orange-400:#fa988b;--bq-endava-orange-500:#fc7866;--bq-endava-orange-600:#ff5640;--bq-endava-orange-700:#ce4a39;--bq-endava-orange-800:#a03d30;--bq-endava-orange-900:#722e25;--bq-endava-orange-1000:#471e19}*,:after,:before{box-sizing:border-box}*{font:inherit;margin:0}ol[role=list],ul[role=list]{list-style-type:none}html{font-size:var(--bq-font-size--m)}html:focus-within{scroll-behavior:smooth}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--bq-background--primary);color:var(--bq-text--primary);font-family:var(--bq-font-family);line-height:var(--bq-font-line-height--regular);min-height:100vh;text-rendering:optimizeSpeed}a:not([class]){text-decoration-skip-ink:auto}canvas,img,picture,svg,video{display:block;max-width:100%}button,input,select,textarea{font:inherit}h1,h2,h3,h4,h5,h6,p{overflow-wrap:break-word}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto;transition-duration:.01ms!important}}:root{--bq-white:#fff;--bq-black:#060708;--bq-neutral-50:var(--bq-grey-50);--bq-neutral-100:var(--bq-grey-100);--bq-neutral-200:var(--bq-grey-200);--bq-neutral-300:var(--bq-grey-300);--bq-neutral-400:var(--bq-grey-400);--bq-neutral-500:var(--bq-grey-500);--bq-neutral-600:var(--bq-grey-600);--bq-neutral-700:var(--bq-grey-700);--bq-neutral-800:var(--bq-grey-800);--bq-neutral-900:var(--bq-grey-900);--bq-neutral-950:var(--bq-grey-950);--bq-neutral-1000:var(--bq-grey-1000);--bq-brand-light:var(--bq-iris-100);--bq-brand:var(--bq-iris-600);--bq-brand-dark:var(--bq-iris-1000);--bq-accent-light:var(--bq-purple-100);--bq-accent:var(--bq-purple-600);--bq-accent-dark:var(--bq-purple-1000);--bq-success-light:var(--bq-teal-100);--bq-success:var(--bq-teal-600);--bq-success-dark:var(--bq-teal-1000);--bq-danger-light:var(--bq-red-100);--bq-danger:var(--bq-red-600);--bq-danger-dark:var(--bq-red-1000);--bq-warning-light:var(--bq-gold-100);--bq-warning:var(--bq-gold-600);--bq-warning-dark:var(--bq-gold-1000);--bq-info-light:var(--bq-iris-100);--bq-info:var(--bq-iris-600);--bq-info-dark:var(--bq-iris-1000);--bq-focus:var(--bq-iris-600);--bq-data-01:var(--bq-brand);--bq-data-02:var(--bq-purple-600);--bq-data-03:var(--bq-magenta-600);--bq-data-04:var(--bq-cyan-600);--bq-data-05:var(--bq-teal-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-yellow-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-blue-600);--bq-data-10:var(--bq-grey-600);--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white);--bq-radius--none:0;--bq-radius--xs2:0.125rem;--bq-radius--xs:0.25rem;--bq-radius--s:0.5rem;--bq-radius--m:0.75rem;--bq-radius--l:1.5rem;--bq-radius--full:9999px;--bq-box-shadow--xs:0 2px 0 rgba(0,0,0,.016);--bq-box-shadow--s:0 8px 24px rgba(0,0,0,.04);--bq-box-shadow--m:0 10px 48px -16px rgba(0,0,0,.12);--bq-box-shadow--l:0 20px 58px -16px rgba(0,0,0,.16);--bq-font-family:"Outfit",sans-serif;--bq-font-size--xs:0.75rem;--bq-font-size--s:0.875rem;--bq-font-size--m:1rem;--bq-font-size--l:1.125rem;--bq-font-size--xl:1.5rem;--bq-font-size--xxl:2rem;--bq-font-size--xxl2:2.5rem;--bq-font-size--xxl3:3rem;--bq-font-size--xxl4:3.5rem;--bq-font-size--xxl5:4rem;--bq-font-weight--thin:100;--bq-font-weight--light:300;--bq-font-weight--regular:400;--bq-font-weight--medium:500;--bq-font-weight--semibold:600;--bq-font-weight--bold:700;--bq-font-line-height--small:1.2;--bq-font-line-height--regular:1.5;--bq-font-line-height--large:1.5;--bq-spacing-xs3:0.125rem;--bq-spacing-xs2:0.25rem;--bq-spacing-xs:0.5rem;--bq-spacing-s:0.75rem;--bq-spacing-m:1rem;--bq-spacing-l:1.5rem;--bq-spacing-xl:2rem;--bq-spacing-xxl:2.5rem;--bq-spacing-xxl2:3.5rem;--bq-spacing-xxl3:4rem;--bq-spacing-xxl4:4.5rem;--bq-stroke-s:1px;--bq-stroke-m:2px;--bq-stroke-l:3px}.beeq.light,.light,:root,[bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--alt:var(--bq-white);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-200);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-light);--bq-hover:#bcbfc5;--bq-active:#444546}.beeq.dark,.dark,[bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-950);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-800);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-dark);--bq-hover:#444546;--bq-active:#1f2026}.endava,[bq-theme=endava]{--bq-font-family:"Poppins",sans-serif;--bq-white:#fafbfb;--bq-black:#030406;--bq-neutral-50:var(--bq-endava-grey-50);--bq-neutral-100:var(--bq-endava-grey-100);--bq-neutral-200:var(--bq-endava-grey-200);--bq-neutral-300:var(--bq-endava-grey-300);--bq-neutral-400:var(--bq-endava-grey-400);--bq-neutral-500:var(--bq-endava-grey-500);--bq-neutral-600:var(--bq-endava-grey-600);--bq-neutral-700:var(--bq-endava-grey-700);--bq-neutral-800:var(--bq-endava-grey-800);--bq-neutral-900:var(--bq-endava-grey-900);--bq-neutral-950:var(--bq-endava-grey-950);--bq-neutral-1000:var(--bq-endava-grey-1000);--bq-brand-light:var(--bq-endava-orange-100);--bq-brand:var(--bq-endava-orange-600);--bq-brand-dark:var(--bq-endava-orange-1000);--bq-accent-light:var(--bq-endava-orange-100);--bq-accent:var(--bq-endava-orange-600);--bq-accent-dark:var(--bq-endava-orange-1000);--bq-success-light:var(--bq-green-100);--bq-success:var(--bq-green-600);--bq-success-dark:var(--bq-green-1000);--bq-danger-light:var(--bq-corai-100);--bq-danger:var(--bq-corai-600);--bq-danger-dark:var(--bq-corai-1000);--bq-warning-light:var(--bq-yellow-100);--bq-warning:var(--bq-yellow-600);--bq-warning-dark:var(--bq-yellow-1000);--bq-info-light:var(--bq-blue-100);--bq-info:var(--bq-blue-600);--bq-info-dark:var(--bq-blue-1000);--bq-focus:var(--bq-endava-orange-600);--bq-data-01:var(--bq-brand);--bq-data-02:#af0cd8;--bq-data-03:#0ca8d8;--bq-data-04:var(--bq-teal-600);--bq-data-05:var(--bq-yellow-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-blue-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-purple-600);--bq-data-10:#394b56;--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white)}.endava.light,[bq-theme=endava][bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--brand-alt:var(--bq-brand-light);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-200);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--brand:var(--bq-brand);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-light);--bq-hover:#444546;--bq-active:#1f2026}.endava.dark,[bq-theme=endava][bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-900);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--brand-alt:var(--bq-brand-dark);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-neutral-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-800);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-dark);--bq-hover:#444546;--bq-active:#1f2026}.absolute{position:absolute}.relative{position:relative}.end-0{inset-inline-end:0}.start-0{inset-inline-start:0}.block{display:block}.flex{display:flex}.hidden{display:none}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.gap-xs2{gap:var(--bq-spacing-xs2)}.border-0{border-width:0}.border-solid{border-style:solid}.border-bg-tertiary{border-color:var(--bq-background--tertiary)}.p-xs2{padding:var(--bq-spacing-xs2)}.content-empty{--tw-content:"";content:var(--tw-content)}.content-none{--tw-content:none;content:var(--tw-content)}.bs-full{block-size:100%}.is-0{inline-size:0}.is-full{inline-size:100%}.inset-be-0{inset-block-end:0}.\[border-block-end-width\:--bq-stroke-s\]{border-block-end-width:var(--bq-stroke-s)}.\[border-block-end-width\:0px\]{border-block-end-width:0}.\[border-inline-end-width\:--bq-stroke-s\]{border-inline-end-width:var(--bq-stroke-s)}.\[border-inline-start-width\:--bq-stroke-s\]{border-inline-start-width:var(--bq-stroke-s)}@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}:host{display:block}.bq-tab-group{position:relative}.bq-tab-group:after{--tw-content:"";border-color:var(--bq-background--tertiary);border-style:solid;border-width:0;content:var(--tw-content);display:flex;position:absolute}.bq-tab-group--horizontal-end:after,.bq-tab-group--horizontal-start:after{border-block-end-width:var(--bq-stroke-s);inline-size:100%;inset-block-end:0}.bq-tab-group--horizontal-start{justify-content:flex-start}.bq-tab-group--horizontal-end{justify-content:flex-end}.bq-tab-group--vertical-start:after{block-size:100%;border-block-end-width:0;border-inline-end-width:var(--bq-stroke-s);inline-size:0;inset-inline-end:0}.bq-tab-group--vertical-end:after{block-size:100%;border-block-end-width:0;border-inline-start-width:var(--bq-stroke-s);inline-size:0;inset-inline-start:0}.bq-tab-group.no-divider:after{--tw-content:none;content:var(--tw-content)}.bq-tab-group--container{-ms-overflow-style:none;gap:var(--bq-spacing-xs2);padding:var(--bq-spacing-xs2);scrollbar-width:none}.bq-tab-group--container::-webkit-scrollbar{display:none}.static{position:static}.inline-block{display:inline-block}.flex-col{flex-direction:column}.overflow-x-auto{overflow-x:auto}.blur{--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.ms-\[--bq-tab--label-icon-gap\]{margin-inline-start:var(--bq-tab--label-icon-gap)}.line-clamp-1{-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;overflow:hidden}.items-center{align-items:center}.justify-center{justify-content:center}.text-text-brand{color:var(--bq-text--brand)}.text-text-primary{color:var(--bq-text--primary)}.underline{text-decoration-line:underline}.focus{outline:var(--bq-ring-width,2px) solid var(--bq-ring-color-focus,var(--bq-focus));outline-offset:var(--bq-ring-offset-width,1px)}
@@ -120,7 +120,7 @@ export class BqTag {
120
120
  ...(this.color && { '--bq-tag--background-color': (_a = getColorCSSVariable(this.color)) !== null && _a !== void 0 ? _a : this.color }),
121
121
  ...(this.hasCustomColor && { '--bq-text--primary': `var(--bq-text--alt)` }),
122
122
  };
123
- return (h(Host, { key: '9ce23f939c01fc0e65455f253b82820639c9633f', style: style, "aria-hidden": this.isHidden ? 'true' : 'false', hidden: this.isHidden ? 'true' : 'false' }, h("button", { key: 'bfb0628d3efc295948f423feda0780216a91cef6', class: {
123
+ return (h(Host, { key: 'dcb43d74abc3bfc8c16cd023ffff5402c947955d', style: style, "aria-hidden": this.isHidden ? 'true' : 'false', hidden: this.isHidden ? 'true' : 'false' }, h("button", { key: '74f04f1581240a448c6802fc4752ca29ed2fe42b', class: {
124
124
  [`bq-tag bq-tag__${this.size}`]: true,
125
125
  [`bq-tag__${this.color || 'default'} bq-tag__${this.variant}`]: !this.hasCustomColor,
126
126
  'is-clickable': this.isClickable,
@@ -129,11 +129,11 @@ export class BqTag {
129
129
  active: this.isClickable && this.selected,
130
130
  // Fixed border radius
131
131
  'has-border': !!this.border,
132
- }, disabled: this.disabled, onBlur: this.handleBlur, onClick: this.handleClick, onFocus: this.handleFocus, tabindex: this.isClickable ? 0 : -1, part: "wrapper" }, h("span", { key: '4693e1ce0e20134ab914d33a30ed29e610097bcb', class: { 'bq-tag__prefix inline-flex': true, '!hidden': !this.hasPrefix }, ref: (spanElem) => (this.prefixElem = spanElem), part: "prefix" }, h("slot", { key: '9333eca26648d01345949073002f98d1424735d3', name: "prefix", onSlotchange: this.handleSlotChange })), h("div", { key: '7ec01c7352c16daad47bc4e8507f250e5c732282', class: {
132
+ }, disabled: this.disabled, onBlur: this.handleBlur, onClick: this.handleClick, onFocus: this.handleFocus, tabindex: this.isClickable ? 0 : -1, part: "wrapper" }, h("span", { key: '7fbc6457ffd3da0a0792ebf228915adf2efd39fb', class: { 'bq-tag__prefix inline-flex': true, '!hidden': !this.hasPrefix }, ref: (spanElem) => (this.prefixElem = spanElem), part: "prefix" }, h("slot", { key: '42c46b4ae6f7195a8d010035e6ae8d9f26898f99', name: "prefix", onSlotchange: this.handleSlotChange })), h("div", { key: 'b08c2697146111bf67fcb40e510732ed2048894a', class: {
133
133
  'text-xs': this.size === 'xsmall',
134
134
  'text-s': this.size === 'small',
135
135
  'text-m': this.size === 'medium',
136
- }, part: "text" }, h("slot", { key: 'af52660cfd055d35420b472597dec4b3156c4e54' })), this.isRemovable && !this.disabled && (h("bq-button", { key: 'a33b6902910dfb0df8c6cfd17b9d6e13088ce339', class: "bq-tag__close", appearance: "text", size: "small", onClick: this.handleHide, part: "btn-close" }, h("bq-icon", { key: 'e5ea407b20aafc8abbd88c1d58a420209c8dcb42', size: iconSize(this.size), name: "x-circle", color: this.color && !this.hasCustomColor ? textColor(this.color)[this.variant] : 'text--primary' }))))));
136
+ }, part: "text" }, h("slot", { key: '435130f05450a46655e8663352e5df16eaccfe15' })), this.isRemovable && !this.disabled && (h("bq-button", { key: 'e31056c019ddbd915a0dcf2e815d673da3bfc6e7', class: "bq-tag__close", appearance: "text", size: "small", onClick: this.handleHide, part: "btn-close" }, h("bq-icon", { key: '304fb99144fd2852d0d104380fbfdc19f0e826e2', size: iconSize(this.size), name: "x-circle", color: this.color && !this.hasCustomColor ? textColor(this.color)[this.variant] : 'text--primary' }))))));
137
137
  }
138
138
  static get is() { return "bq-tag"; }
139
139
  static get encapsulation() { return "shadow"; }
@@ -123,15 +123,15 @@ export class BqTextarea {
123
123
  // ===================================
124
124
  render() {
125
125
  var _a, _b;
126
- return (h("div", { key: '271e97c5ddf1cd953f7d5abdd86e8a8821867ef1', class: "bq-textarea flex flex-auto flex-col", part: "base" }, h("label", { key: 'd8d0904f1865ccdf6a11fabbc94773bd0324c772', class: { 'bq-textarea__label': true, '!hidden': !this.hasLabel }, htmlFor: (_a = this.name) !== null && _a !== void 0 ? _a : this.fallbackId, ref: (label) => (this.labelElem = label), part: "label" }, h("slot", { key: 'c01baf3da6cb299d5b958135d530c4db6a98e2c0', name: "label", onSlotchange: this.handleLabelSlotChange })), h("textarea", { key: '9fbb5c04a875de481a7281c72dbe79d52282f089', id: (_b = this.name) !== null && _b !== void 0 ? _b : this.fallbackId, class: {
126
+ return (h("div", { key: '06b0757fa073ff0bdfdf22e14b80df437f135706', class: "bq-textarea flex flex-auto flex-col", part: "base" }, h("label", { key: 'b9817a35ac4e7175a1d59f63c328d063ffb88299', class: { 'bq-textarea__label': true, '!hidden': !this.hasLabel }, htmlFor: (_a = this.name) !== null && _a !== void 0 ? _a : this.fallbackId, ref: (label) => (this.labelElem = label), part: "label" }, h("slot", { key: '52c27fdeb929ae046ce1beb29fc2b4c6566dc243', name: "label", onSlotchange: this.handleLabelSlotChange })), h("textarea", { key: '1467a427f5e1c3e015ddaf74ec11043c02ed036b', id: (_b = this.name) !== null && _b !== void 0 ? _b : this.fallbackId, class: {
127
127
  'bq-textarea__input': true,
128
128
  'resize-none': this.disableResize,
129
129
  [`validation-${this.validationStatus}`]: true,
130
- }, autocapitalize: this.autocapitalize, autocomplete: this.autocomplete, autocorrect: this.autocorrect, autofocus: this.autofocus, disabled: this.disabled, form: this.form, maxLength: this.maxlength > 0 ? this.maxlength : undefined, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, spellcheck: this.spellcheck, wrap: this.wrap, ref: (elem) => (this.textarea = elem), onBlur: this.handleBlur, onChange: this.handleChange, onFocus: this.handleFocus, onInput: this.handleInput, part: "input" }, this.value), h("div", { key: '7bb0615d30c37cc6b43022922c9abf1ffd9c7a1a', class: {
130
+ }, autocapitalize: this.autocapitalize, autocomplete: this.autocomplete, autocorrect: this.autocorrect, autofocus: this.autofocus, disabled: this.disabled, form: this.form, maxLength: this.maxlength > 0 ? this.maxlength : undefined, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, spellcheck: this.spellcheck, wrap: this.wrap, ref: (elem) => (this.textarea = elem), onBlur: this.handleBlur, onChange: this.handleChange, onFocus: this.handleFocus, onInput: this.handleInput, part: "input" }, this.value), h("div", { key: '087c1bcd722ee2cac449ed04e9600fb117df01e3', class: {
131
131
  'bq-textarea__helper flex items-center justify-between': true,
132
132
  [`validation-${this.validationStatus}`]: true,
133
133
  '!hidden': !this.hasHelperText && !this.maxlength,
134
- }, part: "helper-info" }, h("span", { key: '1e7596ec91d2c547b5f6b7c068805827f4905f5d', class: "bq-textarea__helper--text", ref: (span) => (this.helperTextElem = span), part: "helper-text" }, h("slot", { key: '8a3fd84c780705b3b900c5e142051eb991ae5bc3', name: "helper-text", onSlotchange: this.handleHelperTextSlotChange })), h("span", { key: '212c11ca1fa151370d53fd2b9ee4d75ee68740cb', class: { 'bq-textarea__helper--counter': true, '!hidden': !this.maxlength }, part: "helper-counter" }, this.numberOfCharacters, "/", this.maxlength))));
134
+ }, part: "helper-info" }, h("span", { key: 'dc19136581b13d936f27f0db98a8541a07dee914', class: "bq-textarea__helper--text", ref: (span) => (this.helperTextElem = span), part: "helper-text" }, h("slot", { key: '858cef9cf17f3d586297cd0d5795dbb4285f9730', name: "helper-text", onSlotchange: this.handleHelperTextSlotChange })), h("span", { key: 'df68252ed8bf25438fc1e442b749fc3a87ac41b5', class: { 'bq-textarea__helper--counter': true, '!hidden': !this.maxlength }, part: "helper-counter" }, this.numberOfCharacters, "/", this.maxlength))));
135
135
  }
136
136
  static get is() { return "bq-textarea"; }
137
137
  static get encapsulation() { return "shadow"; }
@@ -145,7 +145,7 @@ export class BqToast {
145
145
  const style = {
146
146
  ...(this.border && { '--bq-toast--border-radius': `var(--bq-radius--${this.border})` }),
147
147
  };
148
- return (h(Host, { key: 'c717b3e0a4c4ef33a22ccccfd485597e9e27b99f', style: style, class: { 'is-hidden': !this.open }, "aria-hidden": !this.open ? 'true' : 'false', hidden: !this.open ? 'true' : 'false', role: "status" }, h("output", { key: 'f0bc53f0f794ce27ca8c11d9878a094b8a4a29f2', class: "bq-toast", part: "wrapper" }, h("div", { key: '2da50465611cd4af193611ad1f70f147fba56807', class: { [`bq-toast--icon ${this.type}`]: true, '!hidden': this.hideIcon }, part: "icon" }, h("slot", { key: '57f09319331f147eab29c8f491c2e993fa939fcd', name: "icon" }, h("bq-icon", { key: '9579b77f0aec5af1457a8f5a76c53def0f523aa5', name: this.iconName, size: "24", weight: "bold", slot: "icon", exportparts: "base,svg" }))), h("slot", { key: '6107417d61a92e9f1c9c5905ed5e91a5177fee5e' }))));
148
+ return (h(Host, { key: '92cf08f0abf78c45ef326b73cb9547b6495e5f13', style: style, class: { 'is-hidden': !this.open }, "aria-hidden": !this.open ? 'true' : 'false', hidden: !this.open ? 'true' : 'false', role: "status" }, h("output", { key: '2aa93a90403a531eab822d41b45d38a157edd93d', class: "bq-toast", part: "wrapper" }, h("div", { key: '5c4a26b54f98fc5e1c5aa264ff6ccece8ac8a946', class: { [`bq-toast--icon ${this.type}`]: true, '!hidden': this.hideIcon }, part: "icon" }, h("slot", { key: 'd8c5f572a283a7c5cd4189d1170002fc483ba2b8', name: "icon" }, h("bq-icon", { key: 'd6d833b966813cc6a535b092e0dba10683496cc7', name: this.iconName, size: "24", weight: "bold", slot: "icon", exportparts: "base,svg" }))), h("slot", { key: 'dd723087ce352e091544775c2c5953293090b0fb' }))));
149
149
  }
150
150
  static get is() { return "bq-toast"; }
151
151
  static get encapsulation() { return "shadow"; }
@@ -125,7 +125,7 @@ export class BqTooltip {
125
125
  // Always the last one in the class.
126
126
  // ===================================
127
127
  render() {
128
- return (h("div", { key: '4f0be7cfa57d437c024cf35066a047e896a91af3', class: "bq-tooltip relative", part: "base" }, h("div", { key: '3626113203dd95a99b137d7b915e36935ece9fc8', class: "bq-tooltip--trigger", onMouseOver: this.handleTriggerMouseOver, onMouseLeave: this.handleTriggerMouseLeave, onClick: this.handleTriggerOnClick, ref: (el) => (this.trigger = el), part: "trigger" }, h("slot", { key: 'cff86552700248f8fd5de8723d9aad763c4b44ed', name: "trigger" })), h("div", { key: '46aefc8eafc65c82104f4ac261cf60200bfaf70b', class: "bq-tooltip--panel", "aria-hidden": this.isHidden, hidden: this.isHidden, role: "tooltip", ref: (el) => (this.panel = el), part: "panel" }, !this.hideArrow && h("div", { key: '10c31f173cdd14793185a906996bc37e4ccb23b5', class: "bq-tooltip--arrow", ref: (el) => (this.arrow = el) }), h("slot", { key: '9c9d6a20479efb8824e77047e0005e41e46388dc' }))));
128
+ return (h("div", { key: 'c36207e7e8155aae5a2ad3c80120b8fd908df200', class: "bq-tooltip relative", part: "base" }, h("div", { key: 'e58fbdff053581ef7f9fb10d4b6e3a557978b637', class: "bq-tooltip--trigger", onMouseOver: this.handleTriggerMouseOver, onMouseLeave: this.handleTriggerMouseLeave, onClick: this.handleTriggerOnClick, ref: (el) => (this.trigger = el), part: "trigger" }, h("slot", { key: 'b3fadd7f2fdcdc054f3d520666ab2c99d150c84a', name: "trigger" })), h("div", { key: 'c2a93ea78b434e5505c71ad1c60de953f8857f8e', class: "bq-tooltip--panel", "aria-hidden": this.isHidden, hidden: this.isHidden, role: "tooltip", ref: (el) => (this.panel = el), part: "panel" }, !this.hideArrow && h("div", { key: '0f9d3ab3e82fb0291fc1657a9d069bdec11b901a', class: "bq-tooltip--arrow", ref: (el) => (this.arrow = el) }), h("slot", { key: '94fbb85a8c8cc0fe05e73d976b4dd71cab6b4bce' }))));
129
129
  }
130
130
  static get is() { return "bq-tooltip"; }
131
131
  static get encapsulation() { return "shadow"; }
@@ -6,41 +6,67 @@
6
6
  * Inspired by Shoelace's `getBasePath` and `setBasePath` functions.
7
7
  * https://github.com/shoelace-style/shoelace/blob/next/src/utilities/base-path.ts
8
8
  */
9
- let basePath = '';
9
+ Object.defineProperty(window, 'bqSVGBasePath', {
10
+ configurable: true,
11
+ enumerable: false,
12
+ writable: true,
13
+ });
14
+ const DATA_BEEQ_ATTRIBUTE = 'data-beeq';
15
+ const DEFAULT_SVG_PATH = 'svg';
10
16
  const scripts = [...document.getElementsByTagName('script')];
11
- const findConfigScript = () => scripts.find((script) => script.hasAttribute('data-beeq'));
12
- const findFallbackScript = () => scripts.find((script) => /beeq(\.esm)?\.js($|\?)/.test(script.src));
13
- const getScriptPath = (script) => script.getAttribute('src').split('/').slice(0, -1).join('/');
14
17
  /**
15
- * Returns the base path for the Assets.
16
- * If the base path has not been set, it will attempt to find the base path using the following methods:
17
- * 1. If a script with the attribute `data-beeq` exists, the base path will be set to the value of the `src` attribute.
18
- * 2. If a script with the name `beeq.js` or `beeq.esm.js` exists, the base path will be set to the value of the `src` attribute.
19
- * 3. If the base path has not been set and no scripts are found, the base path will be set to the current directory.
18
+ * Sets the `bqSVGBasePath` in the global window object,
19
+ * which is used to determine the SVG path in the BQIcon component.
20
+ * This method is the only way to update the base path.
20
21
  *
21
- * @param subpath - An optional subpath to append to the base path.
22
- * @returns The base path of the assets.
22
+ * @param path - The new base path to set.
23
+ */
24
+ export const setBasePath = (path) => {
25
+ window.bqSVGBasePath = path;
26
+ };
27
+ /**
28
+ * Retrieves the `bqSVGBasePath`, optionally appending a subpath.
29
+ *
30
+ * @param subpath - The subpath to append to the base path.
31
+ * @returns The full base path including the subpath.
23
32
  */
24
33
  export const getBasePath = (subpath = '') => {
25
- if (!basePath) {
26
- const configScript = findConfigScript();
27
- const fallbackScript = configScript ? null : findFallbackScript();
28
- const script = configScript || fallbackScript;
29
- if (script) {
30
- const path = configScript ? script.getAttribute('data-beeq') : getScriptPath(script);
31
- setBasePath(`${path}/svg`);
32
- }
34
+ const { bqSVGBasePath } = window;
35
+ if (!bqSVGBasePath) {
36
+ initializeBasePath();
33
37
  }
34
- // Return the base path without a trailing slash. If one exists, append the subpath separated by a slash.
35
- const formattedSubpath = subpath ? `/${subpath.replace(/^\//, '')}` : '';
36
- return basePath.replace(/\/$/, '') + formattedSubpath;
38
+ return formatBasePath(subpath);
37
39
  };
38
40
  /**
39
- * Sets the base path for the Assets.
41
+ * Initializes the `bqSVGBasePath` for the BEEQ assets by finding the appropriate script and setting the base path accordingly.
42
+ * 1. If a script with the attribute `data-beeq` exists, the base path will be set to the value of the `src` attribute.
43
+ * 2. If a script with the name `beeq.js` or `beeq.esm.js` exists, the base path will be set to the value of the `src` attribute.
44
+ * 3. If no scripts are found, the base path will be set to the default value `./svg`.
45
+ */
46
+ const initializeBasePath = () => {
47
+ const configScript = findConfigScript();
48
+ const fallbackScript = configScript ? null : findFallbackScript();
49
+ const script = configScript || fallbackScript;
50
+ if (script) {
51
+ const path = configScript ? script.getAttribute(DATA_BEEQ_ATTRIBUTE) : getScriptPath(script);
52
+ setBasePath(`${path}/${DEFAULT_SVG_PATH}`);
53
+ }
54
+ else {
55
+ setBasePath(`./${DEFAULT_SVG_PATH}`);
56
+ }
57
+ };
58
+ /**
59
+ * Formats the `bqSVGBasePath` without a trailing slash.
60
+ * If one exists, append the subpath separated by a slash.
40
61
  *
41
- * @param path - The base path to set.
62
+ * @param subpath - The subpath to append to the base path.
63
+ * @returns The formatted base path.
42
64
  */
43
- export const setBasePath = (path) => {
44
- basePath = path;
65
+ const formatBasePath = (subpath) => {
66
+ const formattedSubpath = subpath ? `/${subpath.replace(/^\//, '')}` : '';
67
+ return window.bqSVGBasePath.replace(/\/$/, '') + formattedSubpath;
45
68
  };
69
+ const findConfigScript = () => scripts.find((script) => script.hasAttribute(DATA_BEEQ_ATTRIBUTE));
70
+ const findFallbackScript = () => scripts.find((script) => /beeq(\.esm)?\.js($|\?)/.test(script.src));
71
+ const getScriptPath = (script) => script.getAttribute('src').split('/').slice(0, -1).join('/');
46
72
  //# sourceMappingURL=assetsPath.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assetsPath.js","sourceRoot":"","sources":["../../../../../../src/shared/utils/assetsPath.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,IAAI,QAAQ,GAAG,EAAE,CAAC;AAElB,MAAM,OAAO,GAAG,CAAC,GAAG,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAwB,CAAC;AAEpF,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC;AAE1F,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,wBAAwB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAErG,MAAM,aAAa,GAAG,CAAC,MAAyB,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAElH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAO,GAAG,EAAE,EAAE,EAAE;IAC1C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,YAAY,GAAG,gBAAgB,EAAE,CAAC;QACxC,MAAM,cAAc,GAAG,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;QAElE,MAAM,MAAM,GAAG,YAAY,IAAI,cAAc,CAAC;QAC9C,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YACrF,WAAW,CAAC,GAAG,IAAI,MAAM,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;IAED,yGAAyG;IACzG,MAAM,gBAAgB,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACzE,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,gBAAgB,CAAC;AACxD,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,EAAE;IAC1C,QAAQ,GAAG,IAAI,CAAC;AAClB,CAAC,CAAC","sourcesContent":["/**\n * Inspired by Shoelace's `getBasePath` and `setBasePath` functions.\n * https://github.com/shoelace-style/shoelace/blob/next/src/utilities/base-path.ts\n */\n\nlet basePath = '';\n\nconst scripts = [...document.getElementsByTagName('script')] as HTMLScriptElement[];\n\nconst findConfigScript = () => scripts.find((script) => script.hasAttribute('data-beeq'));\n\nconst findFallbackScript = () => scripts.find((script) => /beeq(\\.esm)?\\.js($|\\?)/.test(script.src));\n\nconst getScriptPath = (script: HTMLScriptElement) => script.getAttribute('src').split('/').slice(0, -1).join('/');\n\n/**\n * Returns the base path for the Assets.\n * If the base path has not been set, it will attempt to find the base path using the following methods:\n * 1. If a script with the attribute `data-beeq` exists, the base path will be set to the value of the `src` attribute.\n * 2. If a script with the name `beeq.js` or `beeq.esm.js` exists, the base path will be set to the value of the `src` attribute.\n * 3. If the base path has not been set and no scripts are found, the base path will be set to the current directory.\n *\n * @param subpath - An optional subpath to append to the base path.\n * @returns The base path of the assets.\n */\nexport const getBasePath = (subpath = '') => {\n if (!basePath) {\n const configScript = findConfigScript();\n const fallbackScript = configScript ? null : findFallbackScript();\n\n const script = configScript || fallbackScript;\n if (script) {\n const path = configScript ? script.getAttribute('data-beeq') : getScriptPath(script);\n setBasePath(`${path}/svg`);\n }\n }\n\n // Return the base path without a trailing slash. If one exists, append the subpath separated by a slash.\n const formattedSubpath = subpath ? `/${subpath.replace(/^\\//, '')}` : '';\n return basePath.replace(/\\/$/, '') + formattedSubpath;\n};\n\n/**\n * Sets the base path for the Assets.\n *\n * @param path - The base path to set.\n */\nexport const setBasePath = (path: string) => {\n basePath = path;\n};\n"]}
1
+ {"version":3,"file":"assetsPath.js","sourceRoot":"","sources":["../../../../../../src/shared/utils/assetsPath.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,eAAe,EAAE;IAC7C,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,WAAW,CAAC;AACxC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAC/B,MAAM,OAAO,GAAG,CAAC,GAAG,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAwB,CAAC;AAEpF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,EAAE;IAC1C,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;AAC9B,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAO,GAAG,EAAE,EAAU,EAAE;IAClD,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,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,wBAAwB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAErG,MAAM,aAAa,GAAG,CAAC,MAAyB,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC","sourcesContent":["/**\n * Inspired by Shoelace's `getBasePath` and `setBasePath` functions.\n * https://github.com/shoelace-style/shoelace/blob/next/src/utilities/base-path.ts\n */\n\n/**\n * Extend the Window interface to include the `bqSVGBasePath` property and prevent it from being modified.\n * This is necessary to prevent the basePath from being modified by external scripts.\n */\ndeclare global {\n interface Window {\n bqSVGBasePath: string;\n }\n}\n\nObject.defineProperty(window, 'bqSVGBasePath', {\n configurable: true,\n enumerable: false,\n writable: true,\n});\n\nconst DATA_BEEQ_ATTRIBUTE = 'data-beeq';\nconst DEFAULT_SVG_PATH = 'svg';\nconst scripts = [...document.getElementsByTagName('script')] as HTMLScriptElement[];\n\n/**\n * Sets the `bqSVGBasePath` in the global window object,\n * which is used to determine the SVG path in the BQIcon component.\n * This method is the only way to update the base path.\n *\n * @param path - The new base path to set.\n */\nexport const setBasePath = (path: string) => {\n window.bqSVGBasePath = path;\n};\n\n/**\n * Retrieves the `bqSVGBasePath`, optionally appending a subpath.\n *\n * @param subpath - The subpath to append to the base path.\n * @returns The full base path including the subpath.\n */\nexport const getBasePath = (subpath = ''): string => {\n const { bqSVGBasePath } = window;\n if (!bqSVGBasePath) {\n initializeBasePath();\n }\n\n return formatBasePath(subpath);\n};\n\n/**\n * Initializes the `bqSVGBasePath` for the BEEQ assets by finding the appropriate script and setting the base path accordingly.\n * 1. If a script with the attribute `data-beeq` exists, the base path will be set to the value of the `src` attribute.\n * 2. If a script with the name `beeq.js` or `beeq.esm.js` exists, the base path will be set to the value of the `src` attribute.\n * 3. If no scripts are found, the base path will be set to the default value `./svg`.\n */\nconst initializeBasePath = (): void => {\n const configScript = findConfigScript();\n const fallbackScript = configScript ? null : findFallbackScript();\n\n const script = configScript || fallbackScript;\n if (script) {\n const path = configScript ? script.getAttribute(DATA_BEEQ_ATTRIBUTE) : getScriptPath(script);\n setBasePath(`${path}/${DEFAULT_SVG_PATH}`);\n } else {\n setBasePath(`./${DEFAULT_SVG_PATH}`);\n }\n};\n\n/**\n * Formats the `bqSVGBasePath` without a trailing slash.\n * If one exists, append the subpath separated by a slash.\n *\n * @param subpath - The subpath to append to the base path.\n * @returns The formatted base path.\n */\nconst formatBasePath = (subpath: string): string => {\n const formattedSubpath = subpath ? `/${subpath.replace(/^\\//, '')}` : '';\n return window.bqSVGBasePath.replace(/\\/$/, '') + formattedSubpath;\n};\n\nconst findConfigScript = () => scripts.find((script) => script.hasAttribute(DATA_BEEQ_ATTRIBUTE));\n\nconst findFallbackScript = () => scripts.find((script) => /beeq(\\.esm)?\\.js($|\\?)/.test(script.src));\n\nconst getScriptPath = (script: HTMLScriptElement) => script.getAttribute('src').split('/').slice(0, -1).join('/');\n"]}
@@ -6,43 +6,69 @@
6
6
  * Inspired by Shoelace's `getBasePath` and `setBasePath` functions.
7
7
  * https://github.com/shoelace-style/shoelace/blob/next/src/utilities/base-path.ts
8
8
  */
9
- let basePath = '';
9
+ Object.defineProperty(window, 'bqSVGBasePath', {
10
+ configurable: true,
11
+ enumerable: false,
12
+ writable: true,
13
+ });
14
+ const DATA_BEEQ_ATTRIBUTE = 'data-beeq';
15
+ const DEFAULT_SVG_PATH = 'svg';
10
16
  const scripts = [...document.getElementsByTagName('script')];
11
- const findConfigScript = () => scripts.find((script) => script.hasAttribute('data-beeq'));
12
- const findFallbackScript = () => scripts.find((script) => /beeq(\.esm)?\.js($|\?)/.test(script.src));
13
- const getScriptPath = (script) => script.getAttribute('src').split('/').slice(0, -1).join('/');
14
17
  /**
15
- * Returns the base path for the Assets.
16
- * If the base path has not been set, it will attempt to find the base path using the following methods:
17
- * 1. If a script with the attribute `data-beeq` exists, the base path will be set to the value of the `src` attribute.
18
- * 2. If a script with the name `beeq.js` or `beeq.esm.js` exists, the base path will be set to the value of the `src` attribute.
19
- * 3. If the base path has not been set and no scripts are found, the base path will be set to the current directory.
18
+ * Sets the `bqSVGBasePath` in the global window object,
19
+ * which is used to determine the SVG path in the BQIcon component.
20
+ * This method is the only way to update the base path.
20
21
  *
21
- * @param subpath - An optional subpath to append to the base path.
22
- * @returns The base path of the assets.
22
+ * @param path - The new base path to set.
23
+ */
24
+ const setBasePath = (path) => {
25
+ window.bqSVGBasePath = path;
26
+ };
27
+ /**
28
+ * Retrieves the `bqSVGBasePath`, optionally appending a subpath.
29
+ *
30
+ * @param subpath - The subpath to append to the base path.
31
+ * @returns The full base path including the subpath.
23
32
  */
24
33
  const getBasePath = (subpath = '') => {
25
- if (!basePath) {
26
- const configScript = findConfigScript();
27
- const fallbackScript = configScript ? null : findFallbackScript();
28
- const script = configScript || fallbackScript;
29
- if (script) {
30
- const path = configScript ? script.getAttribute('data-beeq') : getScriptPath(script);
31
- setBasePath(`${path}/svg`);
32
- }
34
+ const { bqSVGBasePath } = window;
35
+ if (!bqSVGBasePath) {
36
+ initializeBasePath();
33
37
  }
34
- // Return the base path without a trailing slash. If one exists, append the subpath separated by a slash.
35
- const formattedSubpath = subpath ? `/${subpath.replace(/^\//, '')}` : '';
36
- return basePath.replace(/\/$/, '') + formattedSubpath;
38
+ return formatBasePath(subpath);
37
39
  };
38
40
  /**
39
- * Sets the base path for the Assets.
41
+ * Initializes the `bqSVGBasePath` for the BEEQ assets by finding the appropriate script and setting the base path accordingly.
42
+ * 1. If a script with the attribute `data-beeq` exists, the base path will be set to the value of the `src` attribute.
43
+ * 2. If a script with the name `beeq.js` or `beeq.esm.js` exists, the base path will be set to the value of the `src` attribute.
44
+ * 3. If no scripts are found, the base path will be set to the default value `./svg`.
45
+ */
46
+ const initializeBasePath = () => {
47
+ const configScript = findConfigScript();
48
+ const fallbackScript = configScript ? null : findFallbackScript();
49
+ const script = configScript || fallbackScript;
50
+ if (script) {
51
+ const path = configScript ? script.getAttribute(DATA_BEEQ_ATTRIBUTE) : getScriptPath(script);
52
+ setBasePath(`${path}/${DEFAULT_SVG_PATH}`);
53
+ }
54
+ else {
55
+ setBasePath(`./${DEFAULT_SVG_PATH}`);
56
+ }
57
+ };
58
+ /**
59
+ * Formats the `bqSVGBasePath` without a trailing slash.
60
+ * If one exists, append the subpath separated by a slash.
40
61
  *
41
- * @param path - The base path to set.
62
+ * @param subpath - The subpath to append to the base path.
63
+ * @returns The formatted base path.
42
64
  */
43
- const setBasePath = (path) => {
44
- basePath = path;
65
+ const formatBasePath = (subpath) => {
66
+ const formattedSubpath = subpath ? `/${subpath.replace(/^\//, '')}` : '';
67
+ return window.bqSVGBasePath.replace(/\/$/, '') + formattedSubpath;
45
68
  };
69
+ const findConfigScript = () => scripts.find((script) => script.hasAttribute(DATA_BEEQ_ATTRIBUTE));
70
+ const findFallbackScript = () => scripts.find((script) => /beeq(\.esm)?\.js($|\?)/.test(script.src));
71
+ const getScriptPath = (script) => script.getAttribute('src').split('/').slice(0, -1).join('/');
46
72
 
47
73
  export { getBasePath as g, setBasePath as s };
48
74
 
@@ -1 +1 @@
1
- {"file":"assetsPath.js","mappings":";;;;AAAA;;;;AAKA,IAAI,QAAQ,GAAG,EAAE,CAAC;AAElB,MAAM,OAAO,GAAG,CAAC,GAAG,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAwB,CAAC;AAEpF,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC;AAE1F,MAAM,kBAAkB,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,wBAAwB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAErG,MAAM,aAAa,GAAG,CAAC,MAAyB,KAAK,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAElH;;;;;;;;;;MAUa,WAAW,GAAG,CAAC,OAAO,GAAG,EAAE;IACtC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,YAAY,GAAG,gBAAgB,EAAE,CAAC;QACxC,MAAM,cAAc,GAAG,YAAY,GAAG,IAAI,GAAG,kBAAkB,EAAE,CAAC;QAElE,MAAM,MAAM,GAAG,YAAY,IAAI,cAAc,CAAC;QAC9C,IAAI,MAAM,EAAE;YACV,MAAM,IAAI,GAAG,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;YACrF,WAAW,CAAC,GAAG,IAAI,MAAM,CAAC,CAAC;SAC5B;KACF;;IAGD,MAAM,gBAAgB,GAAG,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;IACzE,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,gBAAgB,CAAC;AACxD,EAAE;AAEF;;;;;MAKa,WAAW,GAAG,CAAC,IAAY;IACtC,QAAQ,GAAG,IAAI,CAAC;AAClB;;;;","names":[],"sources":["../../packages/beeq/src/shared/utils/assetsPath.ts"],"sourcesContent":["/**\n * Inspired by Shoelace's `getBasePath` and `setBasePath` functions.\n * https://github.com/shoelace-style/shoelace/blob/next/src/utilities/base-path.ts\n */\n\nlet basePath = '';\n\nconst scripts = [...document.getElementsByTagName('script')] as HTMLScriptElement[];\n\nconst findConfigScript = () => scripts.find((script) => script.hasAttribute('data-beeq'));\n\nconst findFallbackScript = () => scripts.find((script) => /beeq(\\.esm)?\\.js($|\\?)/.test(script.src));\n\nconst getScriptPath = (script: HTMLScriptElement) => script.getAttribute('src').split('/').slice(0, -1).join('/');\n\n/**\n * Returns the base path for the Assets.\n * If the base path has not been set, it will attempt to find the base path using the following methods:\n * 1. If a script with the attribute `data-beeq` exists, the base path will be set to the value of the `src` attribute.\n * 2. If a script with the name `beeq.js` or `beeq.esm.js` exists, the base path will be set to the value of the `src` attribute.\n * 3. If the base path has not been set and no scripts are found, the base path will be set to the current directory.\n *\n * @param subpath - An optional subpath to append to the base path.\n * @returns The base path of the assets.\n */\nexport const getBasePath = (subpath = '') => {\n if (!basePath) {\n const configScript = findConfigScript();\n const fallbackScript = configScript ? null : findFallbackScript();\n\n const script = configScript || fallbackScript;\n if (script) {\n const path = configScript ? script.getAttribute('data-beeq') : getScriptPath(script);\n setBasePath(`${path}/svg`);\n }\n }\n\n // Return the base path without a trailing slash. If one exists, append the subpath separated by a slash.\n const formattedSubpath = subpath ? `/${subpath.replace(/^\\//, '')}` : '';\n return basePath.replace(/\\/$/, '') + formattedSubpath;\n};\n\n/**\n * Sets the base path for the Assets.\n *\n * @param path - The base path to set.\n */\nexport const setBasePath = (path: string) => {\n basePath = path;\n};\n"],"version":3}
1
+ {"file":"assetsPath.js","mappings":";;;;AAAA;;;;AAeA,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,eAAe,EAAE;IAC7C,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,WAAW,CAAC;AACxC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAC/B,MAAM,OAAO,GAAG,CAAC,GAAG,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAwB,CAAC;AAEpF;;;;;;;MAOa,WAAW,GAAG,CAAC,IAAY;IACtC,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;AAC9B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AC,CAAC,CAAC;AAErG,MAAM,aAAa,GAAG,CAAC,MAAyB,KAAK,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;;;;","names":[],"sources":["../../packages/beeq/src/shared/utils/assetsPath.ts"],"sourcesContent":["/**\n * Inspired by Shoelace's `getBasePath` and `setBasePath` functions.\n * https://github.com/shoelace-style/shoelace/blob/next/src/utilities/base-path.ts\n */\n\n/**\n * Extend the Window interface to include the `bqSVGBasePath` property and prevent it from being modified.\n * This is necessary to prevent the basePath from being modified by external scripts.\n */\ndeclare global {\n interface Window {\n bqSVGBasePath: string;\n }\n}\n\nObject.defineProperty(window, 'bqSVGBasePath', {\n configurable: true,\n enumerable: false,\n writable: true,\n});\n\nconst DATA_BEEQ_ATTRIBUTE = 'data-beeq';\nconst DEFAULT_SVG_PATH = 'svg';\nconst scripts = [...document.getElementsByTagName('script')] as HTMLScriptElement[];\n\n/**\n * Sets the `bqSVGBasePath` in the global window object,\n * which is used to determine the SVG path in the BQIcon component.\n * This method is the only way to update the base path.\n *\n * @param path - The new base path to set.\n */\nexport const setBasePath = (path: string) => {\n window.bqSVGBasePath = path;\n};\n\n/**\n * Retrieves the `bqSVGBasePath`, optionally appending a subpath.\n *\n * @param subpath - The subpath to append to the base path.\n * @returns The full base path including the subpath.\n */\nexport const getBasePath = (subpath = ''): string => {\n const { bqSVGBasePath } = window;\n if (!bqSVGBasePath) {\n initializeBasePath();\n }\n\n return formatBasePath(subpath);\n};\n\n/**\n * Initializes the `bqSVGBasePath` for the BEEQ assets by finding the appropriate script and setting the base path accordingly.\n * 1. If a script with the attribute `data-beeq` exists, the base path will be set to the value of the `src` attribute.\n * 2. If a script with the name `beeq.js` or `beeq.esm.js` exists, the base path will be set to the value of the `src` attribute.\n * 3. If no scripts are found, the base path will be set to the default value `./svg`.\n */\nconst initializeBasePath = (): void => {\n const configScript = findConfigScript();\n const fallbackScript = configScript ? null : findFallbackScript();\n\n const script = configScript || fallbackScript;\n if (script) {\n const path = configScript ? script.getAttribute(DATA_BEEQ_ATTRIBUTE) : getScriptPath(script);\n setBasePath(`${path}/${DEFAULT_SVG_PATH}`);\n } else {\n setBasePath(`./${DEFAULT_SVG_PATH}`);\n }\n};\n\n/**\n * Formats the `bqSVGBasePath` without a trailing slash.\n * If one exists, append the subpath separated by a slash.\n *\n * @param subpath - The subpath to append to the base path.\n * @returns The formatted base path.\n */\nconst formatBasePath = (subpath: string): string => {\n const formattedSubpath = subpath ? `/${subpath.replace(/^\\//, '')}` : '';\n return window.bqSVGBasePath.replace(/\\/$/, '') + formattedSubpath;\n};\n\nconst findConfigScript = () => scripts.find((script) => script.hasAttribute(DATA_BEEQ_ATTRIBUTE));\n\nconst findFallbackScript = () => scripts.find((script) => /beeq(\\.esm)?\\.js($|\\?)/.test(script.src));\n\nconst getScriptPath = (script: HTMLScriptElement) => script.getAttribute('src').split('/').slice(0, -1).join('/');\n"],"version":3}