genesys-spark-components 3.2.0 → 3.3.2

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 (313) hide show
  1. package/CHANGELOG.md +4933 -0
  2. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  3. package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-button-legacy.cjs.entry.js +2 -2
  6. package/dist/cjs/gux-action-button.cjs.entry.js +2 -2
  7. package/dist/cjs/gux-action-list-legacy.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +2 -2
  10. package/dist/cjs/gux-all-row-select.cjs.entry.js +2 -2
  11. package/dist/cjs/gux-badge-beta.cjs.entry.js +2 -2
  12. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +2 -2
  13. package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-calendar.cjs.entry.js +2 -2
  18. package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +133 -0
  24. package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +2 -2
  25. package/dist/cjs/gux-content-search.cjs.entry.js +2 -2
  26. package/dist/cjs/gux-datepicker.cjs.entry.js +2 -2
  27. package/dist/cjs/gux-disclosure-button.cjs.entry.js +2 -2
  28. package/dist/cjs/gux-dismiss-button.cjs.entry.js +2 -2
  29. package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-dropdown_3.cjs.entry.js +2 -2
  31. package/dist/cjs/gux-error-message-beta.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +2 -2
  36. package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-number.cjs.entry.js +2 -2
  38. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-input-checkbox_7.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-input-search.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-input-text-like.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-notification-toast.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-pagination-beta.cjs.entry.js +115 -0
  54. package/dist/cjs/gux-pagination-buttons-beta_3.cjs.entry.js +258 -0
  55. package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +2 -2
  57. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-popover.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-radial-loading.cjs.entry.js +2 -2
  62. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-row-select.cjs.entry.js +2 -2
  65. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +2 -2
  69. package/dist/cjs/gux-tab-advanced.cjs.entry.js +2 -2
  70. package/dist/cjs/gux-tab-list.cjs.entry.js +2 -2
  71. package/dist/cjs/gux-tab.cjs.entry.js +2 -0
  72. package/dist/cjs/gux-table-beta.cjs.entry.js +2 -2
  73. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +2 -2
  75. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-tag-beta.cjs.entry.js +2 -2
  77. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +2 -2
  80. package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
  81. package/dist/cjs/gux-tooltip_2.cjs.entry.js +3 -1
  82. package/dist/cjs/gux-visualization-beta.cjs.entry.js +2 -2
  83. package/dist/cjs/{index-608364a8.js → index-2202ad01.js} +5 -8
  84. package/dist/cjs/loader.cjs.js +1 -1
  85. package/dist/cjs/{usage-tracking-85436ff1.js → usage-tracking-1c0d27be.js} +1 -1
  86. package/dist/collection/collection-manifest.json +5 -0
  87. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.css +4 -0
  88. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +344 -0
  89. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-beta.css +39 -0
  90. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-beta.js +225 -0
  91. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-beta.types.js +1 -0
  92. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.js +91 -0
  93. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.css +77 -0
  94. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.js +154 -0
  95. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.css +9 -0
  96. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.js +102 -0
  97. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.css +25 -0
  98. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.js +85 -0
  99. package/dist/collection/components/beta/gux-table/gux-all-row-select/gux-all-row-select.js +1 -1
  100. package/dist/collection/components/beta/gux-table/gux-row-select/gux-row-select.js +1 -1
  101. package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.js +2 -0
  102. package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +1 -1
  103. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js +1 -1
  104. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +1 -1
  105. package/dist/collection/components/stable/gux-tooltip-title/gux-tooltip-title.js +2 -0
  106. package/dist/collection/i18n/index.js +5 -8
  107. package/dist/deploy-info.json +3 -3
  108. package/dist/esm/genesys-webcomponents.js +1 -1
  109. package/dist/esm/gux-accordion-legacy.entry.js +1 -1
  110. package/dist/esm/gux-accordion.entry.js +1 -1
  111. package/dist/esm/gux-action-button-legacy.entry.js +2 -2
  112. package/dist/esm/gux-action-button.entry.js +2 -2
  113. package/dist/esm/gux-action-list-legacy.entry.js +1 -1
  114. package/dist/esm/gux-action-toast.entry.js +1 -1
  115. package/dist/esm/gux-advanced-dropdown.entry.js +2 -2
  116. package/dist/esm/gux-all-row-select.entry.js +2 -2
  117. package/dist/esm/gux-badge-beta.entry.js +2 -2
  118. package/dist/esm/gux-breadcrumbs.entry.js +2 -2
  119. package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
  120. package/dist/esm/gux-button-multi.entry.js +1 -1
  121. package/dist/esm/gux-button-slot-beta.entry.js +1 -1
  122. package/dist/esm/gux-button.entry.js +1 -1
  123. package/dist/esm/gux-calendar.entry.js +2 -2
  124. package/dist/esm/gux-card-beta.entry.js +1 -1
  125. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  126. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  127. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  128. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  129. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +129 -0
  130. package/dist/esm/gux-command-palette-legacy.entry.js +2 -2
  131. package/dist/esm/gux-content-search.entry.js +2 -2
  132. package/dist/esm/gux-datepicker.entry.js +2 -2
  133. package/dist/esm/gux-disclosure-button.entry.js +2 -2
  134. package/dist/esm/gux-dismiss-button.entry.js +2 -2
  135. package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
  136. package/dist/esm/gux-dropdown_3.entry.js +2 -2
  137. package/dist/esm/gux-error-message-beta.entry.js +1 -1
  138. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  139. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  140. package/dist/esm/gux-form-field-color.entry.js +1 -1
  141. package/dist/esm/gux-form-field-input-clear-button.entry.js +2 -2
  142. package/dist/esm/gux-form-field-legacy.entry.js +1 -1
  143. package/dist/esm/gux-form-field-number.entry.js +2 -2
  144. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  145. package/dist/esm/gux-form-field-range.entry.js +1 -1
  146. package/dist/esm/gux-form-field-search.entry.js +1 -1
  147. package/dist/esm/gux-form-field-select.entry.js +1 -1
  148. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  149. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  150. package/dist/esm/gux-icon.entry.js +1 -1
  151. package/dist/esm/gux-input-checkbox_7.entry.js +1 -1
  152. package/dist/esm/gux-input-search.entry.js +1 -1
  153. package/dist/esm/gux-input-text-like.entry.js +1 -1
  154. package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
  155. package/dist/esm/gux-list.entry.js +1 -1
  156. package/dist/esm/gux-modal.entry.js +1 -1
  157. package/dist/esm/gux-notification-toast.entry.js +1 -1
  158. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  159. package/dist/esm/gux-pagination-beta.entry.js +111 -0
  160. package/dist/esm/gux-pagination-buttons-beta_3.entry.js +252 -0
  161. package/dist/esm/gux-pagination-buttons_3.entry.js +1 -1
  162. package/dist/esm/gux-pagination-cursor.entry.js +2 -2
  163. package/dist/esm/gux-pagination.entry.js +1 -1
  164. package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
  165. package/dist/esm/gux-popover-list.entry.js +1 -1
  166. package/dist/esm/gux-popover.entry.js +1 -1
  167. package/dist/esm/gux-radial-loading.entry.js +2 -2
  168. package/dist/esm/gux-radial-progress.entry.js +1 -1
  169. package/dist/esm/gux-rating.entry.js +1 -1
  170. package/dist/esm/gux-row-select.entry.js +2 -2
  171. package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
  172. package/dist/esm/gux-simple-toast.entry.js +1 -1
  173. package/dist/esm/gux-switch.entry.js +1 -1
  174. package/dist/esm/gux-tab-advanced-list.entry.js +2 -2
  175. package/dist/esm/gux-tab-advanced.entry.js +2 -2
  176. package/dist/esm/gux-tab-list.entry.js +2 -2
  177. package/dist/esm/gux-tab.entry.js +2 -0
  178. package/dist/esm/gux-table-beta.entry.js +2 -2
  179. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  180. package/dist/esm/gux-tabs-legacy.entry.js +2 -2
  181. package/dist/esm/gux-tabs.entry.js +1 -1
  182. package/dist/esm/gux-tag-beta.entry.js +2 -2
  183. package/dist/esm/gux-text-highlight.entry.js +1 -1
  184. package/dist/esm/gux-text-label-legacy.entry.js +1 -1
  185. package/dist/esm/gux-time-picker-beta.entry.js +2 -2
  186. package/dist/esm/gux-toggle.entry.js +2 -2
  187. package/dist/esm/gux-tooltip_2.entry.js +3 -1
  188. package/dist/esm/gux-visualization-beta.entry.js +2 -2
  189. package/dist/esm/{index-eb3999c5.js → index-5bfcdeb1.js} +5 -8
  190. package/dist/esm/loader.js +1 -1
  191. package/dist/esm/{usage-tracking-27c65ae8.js → usage-tracking-f006c6f1.js} +1 -1
  192. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  193. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ar.json +1 -1
  194. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -1
  195. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -1
  196. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -1
  197. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  198. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -1
  199. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -1
  200. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -1
  201. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr-ca.json +1 -1
  202. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr.json +1 -1
  203. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -1
  204. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -1
  205. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -1
  206. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -1
  207. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -1
  208. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -1
  209. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-br.json +1 -1
  210. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -1
  211. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.sv.json +1 -1
  212. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -1
  213. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -1
  214. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -1
  215. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -1
  216. package/dist/genesys-webcomponents/{p-2f9715c3.entry.js → p-029337ed.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-80ac23f3.entry.js → p-02e05dcc.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-406c1ecb.entry.js → p-0a19a218.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/{p-5594f37c.entry.js → p-0b7c65e9.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/{p-ffbb5862.entry.js → p-0c056961.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-a39c9746.entry.js → p-0caf0252.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-3b335640.entry.js → p-0edbe224.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/p-1083e07f.entry.js +1 -0
  224. package/dist/genesys-webcomponents/{p-80ab0f16.entry.js → p-124fff7a.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-890b51d6.entry.js → p-12d89212.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-9ce6088b.entry.js → p-16377f5d.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-44738ee4.entry.js → p-17e7c330.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/p-201c4e67.entry.js +1 -0
  229. package/dist/genesys-webcomponents/{p-14a51c35.js → p-2548bdad.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-14cd0c82.entry.js → p-26b2cfff.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-00c3054a.entry.js → p-2b02de07.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-e6be1cdd.entry.js → p-3a0cb71d.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-5d92c782.entry.js → p-3bd13f4e.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-abc59192.entry.js → p-3dd33b5a.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/p-421513fb.entry.js +1 -0
  236. package/dist/genesys-webcomponents/{p-82cca429.entry.js → p-42da5782.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/{p-07200fbe.entry.js → p-4338a051.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/p-4402a21b.entry.js +1 -0
  239. package/dist/genesys-webcomponents/{p-8e12c97b.entry.js → p-46eda40c.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/p-480ec6a6.entry.js +1 -0
  241. package/dist/genesys-webcomponents/{p-fcf8b41d.entry.js → p-50f34d26.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-a5558019.entry.js → p-51ae0e2d.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-aa2aa002.entry.js → p-54d12357.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-a41c00c6.entry.js → p-5a9052a5.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-93cc18db.entry.js → p-61504012.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-6f7aa738.entry.js → p-6343d101.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-f3737156.entry.js → p-668065e8.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-4636daf4.entry.js → p-68ee84bf.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-a456d7ca.entry.js → p-6f3adb70.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-8fbf07eb.entry.js → p-71fbdde7.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-cfcab586.entry.js → p-724bc744.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-0d625862.entry.js → p-77e52c95.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-eb4661f4.entry.js → p-7bbf7540.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-e2d7c903.entry.js → p-872adf75.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-33520bfe.entry.js → p-87394f1f.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-7a5f74d9.entry.js → p-8a89e64d.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-9d490492.entry.js → p-8b77e017.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/p-8bcf179a.entry.js +1 -0
  259. package/dist/genesys-webcomponents/{p-42454428.js → p-8d6a8fc1.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-69fe4ffe.entry.js → p-8df52df5.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/p-905084ef.entry.js +1 -0
  262. package/dist/genesys-webcomponents/p-947b7fe3.entry.js +1 -0
  263. package/dist/genesys-webcomponents/{p-21ed1b6f.entry.js → p-998863df.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-22ce535d.entry.js → p-999fc762.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-cc959b74.entry.js → p-a174d034.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-53e5fbc4.entry.js → p-a25d7f47.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-6bb22291.entry.js → p-a683c274.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-5b3f61b3.entry.js → p-ac50f2bc.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-bb2c9b20.entry.js → p-b3bdfcc9.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-832a8286.entry.js → p-b544df8e.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-28463de4.entry.js → p-b5caba1b.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-0aefcf19.entry.js → p-b61c9c77.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/p-c150db37.entry.js +1 -0
  274. package/dist/genesys-webcomponents/{p-dd761341.entry.js → p-c1d1abf2.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-d1d0b481.entry.js → p-ca7e69dc.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-893f0cc2.entry.js → p-ccea6901.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-de5eede1.entry.js → p-ce45cd42.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-44afce2f.entry.js → p-d07860b4.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-78184d06.entry.js → p-d2b3e17f.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-a73fa450.entry.js → p-d4c9c1ae.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-036fd850.entry.js → p-d690c62f.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-9e1fbc6e.entry.js → p-d9b2414d.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-6d93d05c.entry.js → p-dc9dd886.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-d0485040.entry.js → p-de030af3.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-de858ae0.entry.js → p-de91e9e7.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-5b6f7cc8.entry.js → p-e2736b7d.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-592506ac.entry.js → p-e4387b01.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-a0503797.entry.js → p-e49a2254.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-71438869.entry.js → p-e90d4ca5.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-f2034144.entry.js → p-e9221bb1.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-09ea55ec.entry.js → p-f00d881c.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-dd814ad8.entry.js → p-f1d97ec4.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-881f55eb.entry.js → p-f5be2690.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-f89942a1.entry.js → p-f9dc4d90.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-64ad2a25.entry.js → p-fbf17aac.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-2a624729.entry.js → p-fcc726bc.entry.js} +1 -1
  297. package/dist/stencil-wrapper.js +1 -1
  298. package/dist/types/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.d.ts +52 -0
  299. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-beta.d.ts +43 -0
  300. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-beta.types.d.ts +2 -0
  301. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.d.ts +9 -0
  302. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.d.ts +23 -0
  303. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.d.ts +13 -0
  304. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.d.ts +13 -0
  305. package/dist/types/components.d.ts +221 -0
  306. package/dist/types/i18n/index.d.ts +2 -2
  307. package/package.json +1 -1
  308. package/dist/genesys-webcomponents/p-155a1000.entry.js +0 -1
  309. package/dist/genesys-webcomponents/p-4bff75ab.entry.js +0 -1
  310. package/dist/genesys-webcomponents/p-64d6f1fa.entry.js +0 -1
  311. package/dist/genesys-webcomponents/p-9bdbd2da.entry.js +0 -1
  312. package/dist/genesys-webcomponents/p-ae53d4d6.entry.js +0 -1
  313. package/dist/genesys-webcomponents/p-c3c3c607.entry.js +0 -1
@@ -1 +1 @@
1
- import{a as t}from"./p-a085b143.js";import{g as r}from"./p-8a133b9b.js";var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])})(t,r)};function e(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var h=function(){return(h=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var h in r=arguments[n])Object.prototype.hasOwnProperty.call(r,h)&&(t[h]=r[h]);return t}).apply(this,arguments)};function i(t,r,n){if(n||2===arguments.length)for(var e,h=0,i=r.length;h<i;h++)!e&&h in r||(e||(e=Array.prototype.slice.call(r,0,h)),e[h]=r[h]);return t.concat(e||Array.prototype.slice.call(r))}var s,a,o,u=function(){return(u=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var h in r=arguments[n])Object.prototype.hasOwnProperty.call(r,h)&&(t[h]=r[h]);return t}).apply(this,arguments)};function c(t){return t.type===a.literal}function f(t){return t.type===a.argument}function l(t){return t.type===a.number}function H(t){return t.type===a.date}function B(t){return t.type===a.time}function b(t){return t.type===a.select}function v(t){return t.type===a.plural}function p(t){return t.type===a.pound}function E(t){return t.type===a.tag}function d(t){return!(!t||"object"!=typeof t||t.type!==o.number)}function g(t){return!(!t||"object"!=typeof t||t.type!==o.dateTime)}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(s||(s={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(a||(a={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(o||(o={}));var y=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,w=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function m(t){var r={};return t.replace(w,(function(t){var n=t.length;switch(t[0]){case"G":r.era=4===n?"long":5===n?"narrow":"short";break;case"y":r.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][n-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][n-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][n-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][n-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][n-1];break;case"s":r.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),r}var T=function(){return(T=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var h in r=arguments[n])Object.prototype.hasOwnProperty.call(r,h)&&(t[h]=r[h]);return t}).apply(this,arguments)},A=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,S=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_=/^(@+)?(\+|#+)?[rs]?$/g,N=/(\*)(0+)|(#+)(0+)|(0+)/g,I=/^(0+)$/;function R(t){var r={};return"r"===t[t.length-1]?r.roundingPriority="morePrecision":"s"===t[t.length-1]&&(r.roundingPriority="lessPrecision"),t.replace(_,(function(t,n,e){return"string"!=typeof e?(r.minimumSignificantDigits=n.length,r.maximumSignificantDigits=n.length):"+"===e?r.minimumSignificantDigits=n.length:"#"===n[0]?r.maximumSignificantDigits=n.length:(r.minimumSignificantDigits=n.length,r.maximumSignificantDigits=n.length+("string"==typeof e?e.length:0)),""})),r}function M(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function L(t){var r;if("E"===t[0]&&"E"===t[1]?(r={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(r={notation:"scientific"},t=t.slice(1)),r){var n=t.slice(0,2);if("+!"===n?(r.signDisplay="always",t=t.slice(2)):"+?"===n&&(r.signDisplay="exceptZero",t=t.slice(2)),!I.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function C(t){return M(t)||{}}function O(t){for(var r={},n=0,e=t;n<e.length;n++){var h=e[n];switch(h.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=h.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=h.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=T(T(T({},r),{notation:"scientific"}),h.options.reduce((function(t,r){return T(T({},t),C(r))}),{}));continue;case"engineering":r=T(T(T({},r),{notation:"engineering"}),h.options.reduce((function(t,r){return T(T({},t),C(r))}),{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(h.options[0]);continue;case"integer-width":if(h.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");h.options[0].replace(N,(function(t,n,e,h,i,s){if(n)r.minimumIntegerDigits=e.length;else{if(h&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(I.test(h.stem))r.minimumIntegerDigits=h.stem.length;else if(S.test(h.stem)){if(h.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");h.stem.replace(S,(function(t,n,e,h,i,s){return"*"===e?r.minimumFractionDigits=n.length:h&&"#"===h[0]?r.maximumFractionDigits=h.length:i&&s?(r.minimumFractionDigits=i.length,r.maximumFractionDigits=i.length+s.length):(r.minimumFractionDigits=n.length,r.maximumFractionDigits=n.length),""}));var i=h.options[0];"w"===i?r=T(T({},r),{trailingZeroDisplay:"stripIfInteger"}):i&&(r=T(T({},r),R(i)))}else if(_.test(h.stem))r=T(T({},r),R(h.stem));else{var s=M(h.stem);s&&(r=T(T({},r),s));var a=L(h.stem);a&&(r=T(T({},r),a))}}return r}var G,U={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function P(t){var r=t.hourCycle;if(void 0===r&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,e=t.language;return"root"!==e&&(n=t.maximize().region),(U[n||""]||U[e||""]||U["".concat(e,"-001")]||U["001"])[0]}var k=new RegExp("^".concat(y.source,"*")),D=new RegExp("".concat(y.source,"*$"));function F(t,r){return{start:t,end:r}}var j=!!String.prototype.startsWith,K=!!String.fromCodePoint,x=!!Object.fromEntries,V=!!String.prototype.codePointAt,Z=!!String.prototype.trimStart,X=!!String.prototype.trimEnd,Y=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},W=!0;try{W="a"===(null===(G=nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===G?void 0:G[0])}catch(t){W=!1}var z,J=j?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Q=K?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n,e="",h=t.length,i=0;h>i;){if((n=t[i++])>1114111)throw RangeError(n+" is not a valid code point");e+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return e},$=x?Object.fromEntries:function(t){for(var r={},n=0,e=t;n<e.length;n++){var h=e[n];r[h[0]]=h[1]}return r},q=V?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var e,h=t.charCodeAt(r);return h<55296||h>56319||r+1===n||(e=t.charCodeAt(r+1))<56320||e>57343?h:e-56320+(h-55296<<10)+65536}},tt=Z?function(t){return t.trimStart()}:function(t){return t.replace(k,"")},rt=X?function(t){return t.trimEnd()}:function(t){return t.replace(D,"")};function nt(t,r){return new RegExp(t,r)}if(W){var et=nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");z=function(t,r){var n;return et.lastIndex=r,null!==(n=et.exec(t)[1])&&void 0!==n?n:""}}else z=function(t,r){for(var n=[];;){var e=q(t,r);if(void 0===e||st(e)||at(e))break;n.push(e),r+=e>=65536?2:1}return Q.apply(void 0,n)};var ht=function(){function t(t,r){void 0===r&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,r,n){for(var e=[];!this.isEOF();){var h=this.char();if(123===h){if((i=this.parseArgument(t,n)).err)return i;e.push(i.val)}else{if(125===h&&t>0)break;if(35!==h||"plural"!==r&&"selectordinal"!==r){if(60===h&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(s.UNMATCHED_CLOSING_TAG,F(this.clonePosition(),this.clonePosition()))}if(60===h&&!this.ignoreTag&&it(this.peek()||0)){if((i=this.parseTag(t,r)).err)return i;e.push(i.val)}else{var i;if((i=this.parseLiteral(t,r)).err)return i;e.push(i.val)}}else{var o=this.clonePosition();this.bump(),e.push({type:a.pound,location:F(o,this.clonePosition())})}}}return{val:e,err:null}},t.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var e=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:a.literal,value:"<".concat(e,"/>"),location:F(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var h=this.parseMessage(t+1,r,!0);if(h.err)return h;var i=h.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!it(this.char()))return this.error(s.INVALID_TAG,F(o,this.clonePosition()));var u=this.clonePosition();return e!==this.parseTagName()?this.error(s.UNMATCHED_CLOSING_TAG,F(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:a.tag,value:e,children:i,location:F(n,this.clonePosition())},err:null}:this.error(s.INVALID_TAG,F(o,this.clonePosition())))}return this.error(s.UNCLOSED_TAG,F(n,this.clonePosition()))}return this.error(s.INVALID_TAG,F(n,this.clonePosition()))},t.prototype.parseTagName=function(){var t,r=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),e="";;){var h=this.tryParseQuote(r);if(h)e+=h;else{var i=this.tryParseUnquoted(t,r);if(i)e+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;e+=s}}}var o=F(n,this.clonePosition());return{val:{type:a.literal,value:e,location:o},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(it(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}r.push(39),this.bump()}else r.push(n);this.bump()}return Q.apply(void 0,r)},t.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===r||"selectordinal"===r)||125===n&&t>0?null:(this.bump(),Q(n))},t.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(s.EMPTY_ARGUMENT,F(n,this.clonePosition()));var e=this.parseIdentifierIfPossible().value;if(!e)return this.error(s.MALFORMED_ARGUMENT,F(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:a.argument,value:e,location:F(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition())):this.parseArgumentOptions(t,r,e,n);default:return this.error(s.MALFORMED_ARGUMENT,F(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=z(this.message,r);return this.bumpTo(r+n.length),{value:n,location:F(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,r,n,e){var h,i=this.clonePosition(),c=this.parseIdentifierIfPossible().value,f=this.clonePosition();switch(c){case"":return this.error(s.EXPECT_ARGUMENT_TYPE,F(i,f));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var H=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=rt(y.val)).length)return this.error(s.EXPECT_ARGUMENT_STYLE,F(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:F(H,this.clonePosition())}}if((w=this.tryParseArgumentClose(e)).err)return w;var B=F(e,this.clonePosition());if(l&&J(null==l?void 0:l.style,"::",0)){var b=tt(l.style.slice(2));if("number"===c)return(y=this.parseNumberSkeletonFromString(b,l.styleLocation)).err?y:{val:{type:a.number,value:n,location:B,style:y.val},err:null};if(0===b.length)return this.error(s.EXPECT_DATE_TIME_SKELETON,B);var v=b;this.locale&&(v=function(t,r){for(var n="",e=0;e<t.length;e++){var h=t.charAt(e);if("j"===h){for(var i=0;e+1<t.length&&t.charAt(e+1)===h;)i++,e++;var s=1+(1&i),a=i<2?1:3+(i>>1),o=P(r);for("H"!=o&&"k"!=o||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=o+n}else n+="J"===h?"H":h}return n}(b,this.locale));var p={type:o.dateTime,pattern:v,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?m(v):{}};return{val:{type:"date"===c?a.date:a.time,value:n,location:B,style:p},err:null}}return{val:{type:"number"===c?a.number:"date"===c?a.date:a.time,value:n,location:B,style:null!==(h=null==l?void 0:l.style)&&void 0!==h?h:null},err:null};case"plural":case"selectordinal":case"select":var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(s.EXPECT_SELECT_ARGUMENT_OPTIONS,F(E,u({},E)));this.bumpSpace();var d=this.parseIdentifierIfPossible(),g=0;if("select"!==c&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,s.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),d=this.parseIdentifierIfPossible(),g=y.val}var w,T=this.tryParsePluralOrSelectOptions(t,c,r,d);if(T.err)return T;if((w=this.tryParseArgumentClose(e)).err)return w;var A=F(e,this.clonePosition());return"select"===c?{val:{type:a.select,value:n,options:$(T.val),location:A},err:null}:{val:{type:a.plural,value:n,options:$(T.val),offset:g,pluralType:"plural"===c?"cardinal":"ordinal",location:A},err:null};default:return this.error(s.INVALID_ARGUMENT_TYPE,F(i,f))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,F(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(s.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,F(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(r.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(r.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var r=[],n=0,e=t.split(A).filter((function(t){return t.length>0}));n<e.length;n++){var h=e[n].split("/");if(0===h.length)throw new Error("Invalid number skeleton");for(var i=h[0],s=h.slice(1),a=0,o=s;a<o.length;a++)if(0===o[a].length)throw new Error("Invalid number skeleton");r.push({stem:i,options:s})}return r}(t)}catch(t){return this.error(s.INVALID_NUMBER_SKELETON,r)}return{val:{type:o.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?O(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,r,n,e){for(var h,i=!1,a=[],o=new Set,u=e.value,c=e.location;;){if(0===u.length){var f=this.clonePosition();if("select"===r||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_SELECTOR,s.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;c=F(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}if(o.has(u))return this.error("select"===r?s.DUPLICATE_SELECT_ARGUMENT_SELECTOR:s.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(i=!0),this.bumpSpace();var H=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===r?s.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:s.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,F(this.clonePosition(),this.clonePosition()));var B=this.parseMessage(t+1,r,n);if(B.err)return B;var b=this.tryParseArgumentClose(H);if(b.err)return b;a.push([u,{value:B.val,location:F(H,this.clonePosition())}]),o.add(u),this.bumpSpace(),u=(h=this.parseIdentifierIfPossible()).value,c=h.location}return 0===a.length?this.error("select"===r?s.EXPECT_SELECT_ARGUMENT_SELECTOR:s.EXPECT_PLURAL_ARGUMENT_SELECTOR,F(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(s.MISSING_OTHER_CLAUSE,F(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(t,r){var n=1,e=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var h=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;h=!0,i=10*i+(s-48),this.bump()}var a=F(e,this.clonePosition());return h?Y(i*=n)?{val:i,err:null}:this.error(r,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=q(this.message,t);if(void 0===r)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},t.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(J(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&st(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return null!=n?n:null},t}();function it(t){return t>=97&&t<=122||t>=65&&t<=90}function st(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function at(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function ot(t){t.forEach((function(t){if(delete t.location,b(t)||v(t))for(var r in t.options)delete t.options[r].location,ot(t.options[r].value);else l(t)&&d(t.style)||(H(t)||B(t))&&g(t.style)?delete t.style.location:E(t)&&ot(t.children)}))}function ut(t,r){void 0===r&&(r={}),r=u({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var n=new ht(t,r).parse();if(n.err){var e=SyntaxError(s[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return(null==r?void 0:r.captureLocation)||ot(n.val),n.val}function ct(t,r){return(r&&r.strategy?r.strategy:Bt)(t,{cache:r&&r.cache?r.cache:Et,serializer:r&&r.serializer?r.serializer:bt})}function ft(t,r,n,e){var h,i=null==(h=e)||"number"==typeof h||"boolean"==typeof h?e:n(e),s=r.get(i);return void 0===s&&(s=t.call(this,e),r.set(i,s)),s}function lt(t,r,n){var e=Array.prototype.slice.call(arguments,3),h=n(e),i=r.get(h);return void 0===i&&(i=t.apply(this,e),r.set(h,i)),i}function Ht(t,r,n,e,h){return n.bind(r,t,e,h)}function Bt(t,r){return Ht(t,this,1===t.length?ft:lt,r.cache.create(),r.serializer)}var bt=function(){return JSON.stringify(arguments)};function vt(){this.cache=Object.create(null)}vt.prototype.get=function(t){return this.cache[t]},vt.prototype.set=function(t,r){this.cache[t]=r};var pt,Et={create:function(){return new vt}},dt={variadic:function(t,r){return Ht(t,this,lt,r.cache.create(),r.serializer)},monadic:function(t,r){return Ht(t,this,ft,r.cache.create(),r.serializer)}};!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(pt||(pt={}));var gt,yt=function(t){function r(r,n,e){var h=t.call(this,r)||this;return h.code=n,h.originalMessage=e,h}return e(r,t),r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),wt=function(t){function r(r,n,e,h){return t.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(e).join('", "'),'"'),pt.INVALID_VALUE,h)||this}return e(r,t),r}(yt),mt=function(t){function r(r,n,e){return t.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),pt.INVALID_VALUE,e)||this}return e(r,t),r}(yt),Tt=function(t){function r(r,n){return t.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),pt.MISSING_VALUE,n)||this}return e(r,t),r}(yt);function At(t){return"function"==typeof t}function St(t,r,n,e,h,i,s){if(1===t.length&&c(t[0]))return[{type:gt.literal,value:t[0].value}];for(var a=[],o=0,u=t;o<u.length;o++){var y=u[o];if(c(y))a.push({type:gt.literal,value:y.value});else if(p(y))"number"==typeof i&&a.push({type:gt.literal,value:n.getNumberFormat(r).format(i)});else{var w=y.value;if(!h||!(w in h))throw new Tt(w,s);var m=h[w];if(f(y))m&&"string"!=typeof m&&"number"!=typeof m||(m="string"==typeof m||"number"==typeof m?String(m):""),a.push({type:"string"==typeof m?gt.literal:gt.object,value:m});else if(H(y)){var T="string"==typeof y.style?e.date[y.style]:g(y.style)?y.style.parsedOptions:void 0;a.push({type:gt.literal,value:n.getDateTimeFormat(r,T).format(m)})}else if(B(y))T="string"==typeof y.style?e.time[y.style]:g(y.style)?y.style.parsedOptions:e.time.medium,a.push({type:gt.literal,value:n.getDateTimeFormat(r,T).format(m)});else if(l(y))(T="string"==typeof y.style?e.number[y.style]:d(y.style)?y.style.parsedOptions:void 0)&&T.scale&&(m*=T.scale||1),a.push({type:gt.literal,value:n.getNumberFormat(r,T).format(m)});else{if(E(y)){var A=y.children,S=y.value,_=h[S];if(!At(_))throw new mt(S,"function",s);var N=_(St(A,r,n,e,h,i).map((function(t){return t.value})));Array.isArray(N)||(N=[N]),a.push.apply(a,N.map((function(t){return{type:"string"==typeof t?gt.literal:gt.object,value:t}})))}if(b(y)){if(!(I=y.options[m]||y.options.other))throw new wt(y.value,m,Object.keys(y.options),s);a.push.apply(a,St(I.value,r,n,e,h))}else if(v(y)){var I;if(!(I=y.options["=".concat(m)])){if(!Intl.PluralRules)throw new yt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',pt.MISSING_INTL_API,s);var R=n.getPluralRules(r,{type:y.pluralType}).select(m-(y.offset||0));I=y.options[R]||y.options.other}if(!I)throw new wt(y.value,m,Object.keys(y.options),s);a.push.apply(a,St(I.value,r,n,e,h,m-(y.offset||0)))}}}}return(M=a).length<2?M:M.reduce((function(t,r){var n=t[t.length-1];return n&&n.type===gt.literal&&r.type===gt.literal?n.value+=r.value:t.push(r),t}),[]);var M}function _t(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,n){t[r]=n}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(gt||(gt={}));var Nt=function(){function t(r,n,e,s){var a,o,u,c=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var r=c.formatToParts(t);if(1===r.length)return r[0].value;var n=r.reduce((function(t,r){return t.length&&r.type===gt.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=r.value:t.push(r.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return St(c.ast,c.locales,c.formatters,c.formats,t,void 0,c.message)},this.resolvedOptions=function(){return{locale:c.resolvedLocale.toString()}},this.getAst=function(){return c.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof r){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(r,{ignoreTag:null==s?void 0:s.ignoreTag,locale:this.resolvedLocale})}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=t.formats,(u=e)?Object.keys(o).reduce((function(t,r){var n,e;return t[r]=(n=o[r],(e=u[r])?h(h(h({},n||{}),e||{}),Object.keys(n).reduce((function(t,r){return t[r]=h(h({},n[r]),e[r]||{}),t}),{})):n),t}),h({},o)):o),this.formatters=s&&s.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ct((function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,i([void 0],r,!1)))}),{cache:_t(a.number),strategy:dt.variadic}),getDateTimeFormat:ct((function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,i([void 0],r,!1)))}),{cache:_t(a.dateTime),strategy:dt.variadic}),getPluralRules:ct((function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,i([void 0],r,!1)))}),{cache:_t(a.pluralRules),strategy:dt.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=ut,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const It={},Rt=["ar","cs","da","de","en","es-es","es","fi","fr-ca","fr","it","ja","ko","nl","no","pl","pt-br","ru","sv","th","tr","zh-cn","zh-tw"],Mt=Object.freeze({__proto__:null,ar:6,cs:1,da:1,de:1,en:0,es:1,fi:1,fr:1,it:1,ja:0,ko:0,nl:1,no:1,pl:1,ru:1,sv:1,th:0,tr:1,default:{ar:6,cs:1,da:1,de:1,en:0,"es-es":1,es:1,fi:1,"fr-ca":0,fr:1,it:1,ja:0,ko:0,nl:1,no:1,pl:1,"pt-br":0,ru:1,sv:1,th:0,tr:1,"zh-cn":1,"zh-tw":0}});async function Lt(r,n){let e=n,h="en";void 0!==r&&(h=Ct(r),e=await async function(r,n,e){const h=r.tagName.toLocaleLowerCase().replace(/-beta$/,"");let i;if(r["i18n-resources"])i=r["i18n-resources"];else if("en"!==e)try{i=await(async(r,n)=>{if(!It[n]){const r=((r="en")=>t(`i18n/genesys-webcomponents.i18n.${r}.json`))(n),e=await fetch(r),h=await e.json();It[n]=h}return It[n][r]})(h,e)}catch(t){i=null}return i||(i=n),i}(r,n,h));const i=Object.entries(e).reduce(((t,[r,n])=>(t.set(r,new Nt(n,h)),t)),new Map),s=Object.entries(n).reduce(((t,[r,n])=>(t.set(r,new Nt(n,"en")),t)),new Map);return(t,r)=>{var n,e;let a=null===(n=i.get(t))||void 0===n?void 0:n.format(r);return a||(a=null===(e=s.get(t))||void 0===e?void 0:e.format(r),console.warn(`No localized string available for "${a}" for "${h}" locale. Falling back to English translation.`)),a}}function Ct(t){const n=function(t){const n=r("[lang]",t);return n&&n.lang?n.lang.toLowerCase():(console.error("gux: No language specified on page, defaulting to 'en'",t.tagName),"en")}(t),e=n.split(/[_-]/)[0];return Rt.indexOf(n)>=0?n:Rt.indexOf(e)>=0?e:(console.error(`gux: No translation locale found for ${n}, defaulting to 'en'`),"en")}function Ot(t="en"){return Mt[t]?Mt[t]:Mt.en}export{Ot as a,Lt as b,Ct as g}
1
+ import{a as t}from"./p-a085b143.js";import{g as r}from"./p-8a133b9b.js";var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])})(t,r)};function e(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var h=function(){return(h=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var h in r=arguments[n])Object.prototype.hasOwnProperty.call(r,h)&&(t[h]=r[h]);return t}).apply(this,arguments)};function i(t,r,n){if(n||2===arguments.length)for(var e,h=0,i=r.length;h<i;h++)!e&&h in r||(e||(e=Array.prototype.slice.call(r,0,h)),e[h]=r[h]);return t.concat(e||Array.prototype.slice.call(r))}var s,a,o,u=function(){return(u=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var h in r=arguments[n])Object.prototype.hasOwnProperty.call(r,h)&&(t[h]=r[h]);return t}).apply(this,arguments)};function c(t){return t.type===a.literal}function f(t){return t.type===a.argument}function l(t){return t.type===a.number}function H(t){return t.type===a.date}function B(t){return t.type===a.time}function b(t){return t.type===a.select}function v(t){return t.type===a.plural}function p(t){return t.type===a.pound}function E(t){return t.type===a.tag}function d(t){return!(!t||"object"!=typeof t||t.type!==o.number)}function g(t){return!(!t||"object"!=typeof t||t.type!==o.dateTime)}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(s||(s={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(a||(a={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(o||(o={}));var y=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,w=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function m(t){var r={};return t.replace(w,(function(t){var n=t.length;switch(t[0]){case"G":r.era=4===n?"long":5===n?"narrow":"short";break;case"y":r.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][n-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][n-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][n-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][n-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][n-1];break;case"s":r.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),r}var T=function(){return(T=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var h in r=arguments[n])Object.prototype.hasOwnProperty.call(r,h)&&(t[h]=r[h]);return t}).apply(this,arguments)},A=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,S=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_=/^(@+)?(\+|#+)?[rs]?$/g,N=/(\*)(0+)|(#+)(0+)|(0+)/g,I=/^(0+)$/;function R(t){var r={};return"r"===t[t.length-1]?r.roundingPriority="morePrecision":"s"===t[t.length-1]&&(r.roundingPriority="lessPrecision"),t.replace(_,(function(t,n,e){return"string"!=typeof e?(r.minimumSignificantDigits=n.length,r.maximumSignificantDigits=n.length):"+"===e?r.minimumSignificantDigits=n.length:"#"===n[0]?r.maximumSignificantDigits=n.length:(r.minimumSignificantDigits=n.length,r.maximumSignificantDigits=n.length+("string"==typeof e?e.length:0)),""})),r}function M(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function L(t){var r;if("E"===t[0]&&"E"===t[1]?(r={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(r={notation:"scientific"},t=t.slice(1)),r){var n=t.slice(0,2);if("+!"===n?(r.signDisplay="always",t=t.slice(2)):"+?"===n&&(r.signDisplay="exceptZero",t=t.slice(2)),!I.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function C(t){return M(t)||{}}function O(t){for(var r={},n=0,e=t;n<e.length;n++){var h=e[n];switch(h.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=h.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=h.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=T(T(T({},r),{notation:"scientific"}),h.options.reduce((function(t,r){return T(T({},t),C(r))}),{}));continue;case"engineering":r=T(T(T({},r),{notation:"engineering"}),h.options.reduce((function(t,r){return T(T({},t),C(r))}),{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(h.options[0]);continue;case"integer-width":if(h.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");h.options[0].replace(N,(function(t,n,e,h,i,s){if(n)r.minimumIntegerDigits=e.length;else{if(h&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(I.test(h.stem))r.minimumIntegerDigits=h.stem.length;else if(S.test(h.stem)){if(h.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");h.stem.replace(S,(function(t,n,e,h,i,s){return"*"===e?r.minimumFractionDigits=n.length:h&&"#"===h[0]?r.maximumFractionDigits=h.length:i&&s?(r.minimumFractionDigits=i.length,r.maximumFractionDigits=i.length+s.length):(r.minimumFractionDigits=n.length,r.maximumFractionDigits=n.length),""}));var i=h.options[0];"w"===i?r=T(T({},r),{trailingZeroDisplay:"stripIfInteger"}):i&&(r=T(T({},r),R(i)))}else if(_.test(h.stem))r=T(T({},r),R(h.stem));else{var s=M(h.stem);s&&(r=T(T({},r),s));var a=L(h.stem);a&&(r=T(T({},r),a))}}return r}var G,U={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function P(t){var r=t.hourCycle;if(void 0===r&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,e=t.language;return"root"!==e&&(n=t.maximize().region),(U[n||""]||U[e||""]||U["".concat(e,"-001")]||U["001"])[0]}var k=new RegExp("^".concat(y.source,"*")),D=new RegExp("".concat(y.source,"*$"));function F(t,r){return{start:t,end:r}}var j=!!String.prototype.startsWith,K=!!String.fromCodePoint,V=!!Object.fromEntries,Z=!!String.prototype.codePointAt,x=!!String.prototype.trimStart,X=!!String.prototype.trimEnd,Y=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},W=!0;try{W="a"===(null===(G=nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===G?void 0:G[0])}catch(t){W=!1}var z,J=j?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Q=K?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n,e="",h=t.length,i=0;h>i;){if((n=t[i++])>1114111)throw RangeError(n+" is not a valid code point");e+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return e},$=V?Object.fromEntries:function(t){for(var r={},n=0,e=t;n<e.length;n++){var h=e[n];r[h[0]]=h[1]}return r},q=Z?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var e,h=t.charCodeAt(r);return h<55296||h>56319||r+1===n||(e=t.charCodeAt(r+1))<56320||e>57343?h:e-56320+(h-55296<<10)+65536}},tt=x?function(t){return t.trimStart()}:function(t){return t.replace(k,"")},rt=X?function(t){return t.trimEnd()}:function(t){return t.replace(D,"")};function nt(t,r){return new RegExp(t,r)}if(W){var et=nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");z=function(t,r){var n;return et.lastIndex=r,null!==(n=et.exec(t)[1])&&void 0!==n?n:""}}else z=function(t,r){for(var n=[];;){var e=q(t,r);if(void 0===e||st(e)||at(e))break;n.push(e),r+=e>=65536?2:1}return Q.apply(void 0,n)};var ht=function(){function t(t,r){void 0===r&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,r,n){for(var e=[];!this.isEOF();){var h=this.char();if(123===h){if((i=this.parseArgument(t,n)).err)return i;e.push(i.val)}else{if(125===h&&t>0)break;if(35!==h||"plural"!==r&&"selectordinal"!==r){if(60===h&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(s.UNMATCHED_CLOSING_TAG,F(this.clonePosition(),this.clonePosition()))}if(60===h&&!this.ignoreTag&&it(this.peek()||0)){if((i=this.parseTag(t,r)).err)return i;e.push(i.val)}else{var i;if((i=this.parseLiteral(t,r)).err)return i;e.push(i.val)}}else{var o=this.clonePosition();this.bump(),e.push({type:a.pound,location:F(o,this.clonePosition())})}}}return{val:e,err:null}},t.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var e=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:a.literal,value:"<".concat(e,"/>"),location:F(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var h=this.parseMessage(t+1,r,!0);if(h.err)return h;var i=h.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!it(this.char()))return this.error(s.INVALID_TAG,F(o,this.clonePosition()));var u=this.clonePosition();return e!==this.parseTagName()?this.error(s.UNMATCHED_CLOSING_TAG,F(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:a.tag,value:e,children:i,location:F(n,this.clonePosition())},err:null}:this.error(s.INVALID_TAG,F(o,this.clonePosition())))}return this.error(s.UNCLOSED_TAG,F(n,this.clonePosition()))}return this.error(s.INVALID_TAG,F(n,this.clonePosition()))},t.prototype.parseTagName=function(){var t,r=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),e="";;){var h=this.tryParseQuote(r);if(h)e+=h;else{var i=this.tryParseUnquoted(t,r);if(i)e+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;e+=s}}}var o=F(n,this.clonePosition());return{val:{type:a.literal,value:e,location:o},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(it(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}r.push(39),this.bump()}else r.push(n);this.bump()}return Q.apply(void 0,r)},t.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===r||"selectordinal"===r)||125===n&&t>0?null:(this.bump(),Q(n))},t.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(s.EMPTY_ARGUMENT,F(n,this.clonePosition()));var e=this.parseIdentifierIfPossible().value;if(!e)return this.error(s.MALFORMED_ARGUMENT,F(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:a.argument,value:e,location:F(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition())):this.parseArgumentOptions(t,r,e,n);default:return this.error(s.MALFORMED_ARGUMENT,F(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=z(this.message,r);return this.bumpTo(r+n.length),{value:n,location:F(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,r,n,e){var h,i=this.clonePosition(),c=this.parseIdentifierIfPossible().value,f=this.clonePosition();switch(c){case"":return this.error(s.EXPECT_ARGUMENT_TYPE,F(i,f));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var H=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=rt(y.val)).length)return this.error(s.EXPECT_ARGUMENT_STYLE,F(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:F(H,this.clonePosition())}}if((w=this.tryParseArgumentClose(e)).err)return w;var B=F(e,this.clonePosition());if(l&&J(null==l?void 0:l.style,"::",0)){var b=tt(l.style.slice(2));if("number"===c)return(y=this.parseNumberSkeletonFromString(b,l.styleLocation)).err?y:{val:{type:a.number,value:n,location:B,style:y.val},err:null};if(0===b.length)return this.error(s.EXPECT_DATE_TIME_SKELETON,B);var v=b;this.locale&&(v=function(t,r){for(var n="",e=0;e<t.length;e++){var h=t.charAt(e);if("j"===h){for(var i=0;e+1<t.length&&t.charAt(e+1)===h;)i++,e++;var s=1+(1&i),a=i<2?1:3+(i>>1),o=P(r);for("H"!=o&&"k"!=o||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=o+n}else n+="J"===h?"H":h}return n}(b,this.locale));var p={type:o.dateTime,pattern:v,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?m(v):{}};return{val:{type:"date"===c?a.date:a.time,value:n,location:B,style:p},err:null}}return{val:{type:"number"===c?a.number:"date"===c?a.date:a.time,value:n,location:B,style:null!==(h=null==l?void 0:l.style)&&void 0!==h?h:null},err:null};case"plural":case"selectordinal":case"select":var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(s.EXPECT_SELECT_ARGUMENT_OPTIONS,F(E,u({},E)));this.bumpSpace();var d=this.parseIdentifierIfPossible(),g=0;if("select"!==c&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,s.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),d=this.parseIdentifierIfPossible(),g=y.val}var w,T=this.tryParsePluralOrSelectOptions(t,c,r,d);if(T.err)return T;if((w=this.tryParseArgumentClose(e)).err)return w;var A=F(e,this.clonePosition());return"select"===c?{val:{type:a.select,value:n,options:$(T.val),location:A},err:null}:{val:{type:a.plural,value:n,options:$(T.val),offset:g,pluralType:"plural"===c?"cardinal":"ordinal",location:A},err:null};default:return this.error(s.INVALID_ARGUMENT_TYPE,F(i,f))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,F(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(s.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,F(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(r.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(r.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var r=[],n=0,e=t.split(A).filter((function(t){return t.length>0}));n<e.length;n++){var h=e[n].split("/");if(0===h.length)throw new Error("Invalid number skeleton");for(var i=h[0],s=h.slice(1),a=0,o=s;a<o.length;a++)if(0===o[a].length)throw new Error("Invalid number skeleton");r.push({stem:i,options:s})}return r}(t)}catch(t){return this.error(s.INVALID_NUMBER_SKELETON,r)}return{val:{type:o.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?O(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,r,n,e){for(var h,i=!1,a=[],o=new Set,u=e.value,c=e.location;;){if(0===u.length){var f=this.clonePosition();if("select"===r||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_SELECTOR,s.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;c=F(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}if(o.has(u))return this.error("select"===r?s.DUPLICATE_SELECT_ARGUMENT_SELECTOR:s.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(i=!0),this.bumpSpace();var H=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===r?s.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:s.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,F(this.clonePosition(),this.clonePosition()));var B=this.parseMessage(t+1,r,n);if(B.err)return B;var b=this.tryParseArgumentClose(H);if(b.err)return b;a.push([u,{value:B.val,location:F(H,this.clonePosition())}]),o.add(u),this.bumpSpace(),u=(h=this.parseIdentifierIfPossible()).value,c=h.location}return 0===a.length?this.error("select"===r?s.EXPECT_SELECT_ARGUMENT_SELECTOR:s.EXPECT_PLURAL_ARGUMENT_SELECTOR,F(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(s.MISSING_OTHER_CLAUSE,F(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(t,r){var n=1,e=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var h=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;h=!0,i=10*i+(s-48),this.bump()}var a=F(e,this.clonePosition());return h?Y(i*=n)?{val:i,err:null}:this.error(r,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=q(this.message,t);if(void 0===r)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},t.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(J(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&st(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return null!=n?n:null},t}();function it(t){return t>=97&&t<=122||t>=65&&t<=90}function st(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function at(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function ot(t){t.forEach((function(t){if(delete t.location,b(t)||v(t))for(var r in t.options)delete t.options[r].location,ot(t.options[r].value);else l(t)&&d(t.style)||(H(t)||B(t))&&g(t.style)?delete t.style.location:E(t)&&ot(t.children)}))}function ut(t,r){void 0===r&&(r={}),r=u({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var n=new ht(t,r).parse();if(n.err){var e=SyntaxError(s[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return(null==r?void 0:r.captureLocation)||ot(n.val),n.val}function ct(t,r){return(r&&r.strategy?r.strategy:Bt)(t,{cache:r&&r.cache?r.cache:Et,serializer:r&&r.serializer?r.serializer:bt})}function ft(t,r,n,e){var h,i=null==(h=e)||"number"==typeof h||"boolean"==typeof h?e:n(e),s=r.get(i);return void 0===s&&(s=t.call(this,e),r.set(i,s)),s}function lt(t,r,n){var e=Array.prototype.slice.call(arguments,3),h=n(e),i=r.get(h);return void 0===i&&(i=t.apply(this,e),r.set(h,i)),i}function Ht(t,r,n,e,h){return n.bind(r,t,e,h)}function Bt(t,r){return Ht(t,this,1===t.length?ft:lt,r.cache.create(),r.serializer)}var bt=function(){return JSON.stringify(arguments)};function vt(){this.cache=Object.create(null)}vt.prototype.get=function(t){return this.cache[t]},vt.prototype.set=function(t,r){this.cache[t]=r};var pt,Et={create:function(){return new vt}},dt={variadic:function(t,r){return Ht(t,this,lt,r.cache.create(),r.serializer)},monadic:function(t,r){return Ht(t,this,ft,r.cache.create(),r.serializer)}};!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(pt||(pt={}));var gt,yt=function(t){function r(r,n,e){var h=t.call(this,r)||this;return h.code=n,h.originalMessage=e,h}return e(r,t),r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),wt=function(t){function r(r,n,e,h){return t.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(e).join('", "'),'"'),pt.INVALID_VALUE,h)||this}return e(r,t),r}(yt),mt=function(t){function r(r,n,e){return t.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),pt.INVALID_VALUE,e)||this}return e(r,t),r}(yt),Tt=function(t){function r(r,n){return t.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),pt.MISSING_VALUE,n)||this}return e(r,t),r}(yt);function At(t){return"function"==typeof t}function St(t,r,n,e,h,i,s){if(1===t.length&&c(t[0]))return[{type:gt.literal,value:t[0].value}];for(var a=[],o=0,u=t;o<u.length;o++){var y=u[o];if(c(y))a.push({type:gt.literal,value:y.value});else if(p(y))"number"==typeof i&&a.push({type:gt.literal,value:n.getNumberFormat(r).format(i)});else{var w=y.value;if(!h||!(w in h))throw new Tt(w,s);var m=h[w];if(f(y))m&&"string"!=typeof m&&"number"!=typeof m||(m="string"==typeof m||"number"==typeof m?String(m):""),a.push({type:"string"==typeof m?gt.literal:gt.object,value:m});else if(H(y)){var T="string"==typeof y.style?e.date[y.style]:g(y.style)?y.style.parsedOptions:void 0;a.push({type:gt.literal,value:n.getDateTimeFormat(r,T).format(m)})}else if(B(y))T="string"==typeof y.style?e.time[y.style]:g(y.style)?y.style.parsedOptions:e.time.medium,a.push({type:gt.literal,value:n.getDateTimeFormat(r,T).format(m)});else if(l(y))(T="string"==typeof y.style?e.number[y.style]:d(y.style)?y.style.parsedOptions:void 0)&&T.scale&&(m*=T.scale||1),a.push({type:gt.literal,value:n.getNumberFormat(r,T).format(m)});else{if(E(y)){var A=y.children,S=y.value,_=h[S];if(!At(_))throw new mt(S,"function",s);var N=_(St(A,r,n,e,h,i).map((function(t){return t.value})));Array.isArray(N)||(N=[N]),a.push.apply(a,N.map((function(t){return{type:"string"==typeof t?gt.literal:gt.object,value:t}})))}if(b(y)){if(!(I=y.options[m]||y.options.other))throw new wt(y.value,m,Object.keys(y.options),s);a.push.apply(a,St(I.value,r,n,e,h))}else if(v(y)){var I;if(!(I=y.options["=".concat(m)])){if(!Intl.PluralRules)throw new yt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',pt.MISSING_INTL_API,s);var R=n.getPluralRules(r,{type:y.pluralType}).select(m-(y.offset||0));I=y.options[R]||y.options.other}if(!I)throw new wt(y.value,m,Object.keys(y.options),s);a.push.apply(a,St(I.value,r,n,e,h,m-(y.offset||0)))}}}}return(M=a).length<2?M:M.reduce((function(t,r){var n=t[t.length-1];return n&&n.type===gt.literal&&r.type===gt.literal?n.value+=r.value:t.push(r),t}),[]);var M}function _t(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,n){t[r]=n}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(gt||(gt={}));var Nt=function(){function t(r,n,e,s){var a,o,u,c=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var r=c.formatToParts(t);if(1===r.length)return r[0].value;var n=r.reduce((function(t,r){return t.length&&r.type===gt.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=r.value:t.push(r.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return St(c.ast,c.locales,c.formatters,c.formats,t,void 0,c.message)},this.resolvedOptions=function(){return{locale:c.resolvedLocale.toString()}},this.getAst=function(){return c.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof r){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(r,{ignoreTag:null==s?void 0:s.ignoreTag,locale:this.resolvedLocale})}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=t.formats,(u=e)?Object.keys(o).reduce((function(t,r){var n,e;return t[r]=(n=o[r],(e=u[r])?h(h(h({},n||{}),e||{}),Object.keys(n).reduce((function(t,r){return t[r]=h(h({},n[r]),e[r]||{}),t}),{})):n),t}),h({},o)):o),this.formatters=s&&s.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ct((function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,i([void 0],r,!1)))}),{cache:_t(a.number),strategy:dt.variadic}),getDateTimeFormat:ct((function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,i([void 0],r,!1)))}),{cache:_t(a.dateTime),strategy:dt.variadic}),getPluralRules:ct((function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,i([void 0],r,!1)))}),{cache:_t(a.pluralRules),strategy:dt.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=ut,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const It={},Rt=["ar","cs","da","de","en","es-es","es","fi","fr-ca","fr","it","ja","ko","nl","no","pl","pt-br","ru","sv","th","tr","zh-cn","zh-tw"],Mt=Object.freeze({__proto__:null,ar:6,cs:1,da:1,de:1,en:0,es:1,fi:1,fr:1,it:1,ja:0,ko:0,nl:1,no:1,pl:1,ru:1,sv:1,th:0,tr:1,default:{ar:6,cs:1,da:1,de:1,en:0,"es-es":1,es:1,fi:1,"fr-ca":0,fr:1,it:1,ja:0,ko:0,nl:1,no:1,pl:1,"pt-br":0,ru:1,sv:1,th:0,tr:1,"zh-cn":1,"zh-tw":0}});async function Lt(r,n,e){let h=n,i="en";void 0!==r&&(i=Ct(r),h=await async function(r,n,e,h){const i=h||r.tagName.toLocaleLowerCase().replace(/-beta$/,"");let s;if(r["i18n-resources"])s=r["i18n-resources"];else if("en"!==e)try{s=await(async(r,n)=>{if(!It[n]){const r=((r="en")=>t(`i18n/genesys-webcomponents.i18n.${r}.json`))(n),e=await fetch(r),h=await e.json();It[n]=h}return It[n][r]})(i,e)}catch(t){s=null}return s||(s=n),s}(r,n,i,e));const s=Object.entries(h).reduce(((t,[r,n])=>(t.set(r,new Nt(n,i)),t)),new Map),a=Object.entries(n).reduce(((t,[r,n])=>(t.set(r,new Nt(n,"en")),t)),new Map);return(t,r)=>{var n,e;let h=null===(n=s.get(t))||void 0===n?void 0:n.format(r);return h||(h=null===(e=a.get(t))||void 0===e?void 0:e.format(r),console.warn(`No localized string available for "${h}" for "${i}" locale. Falling back to English translation.`)),h}}function Ct(t){const n=function(t){const n=r("[lang]",t);return n&&n.lang?n.lang.toLowerCase():"en"}(t),e=n.split(/[_-]/)[0];return Rt.indexOf(n)>=0?n:Rt.indexOf(e)>=0?e:"en"}function Ot(t="en"){return Mt[t]?Mt[t]:Mt.en}export{Ot as a,Lt as b,Ct as g}
@@ -1 +1 @@
1
- import{r as t,h as e,H as o,g as a}from"./p-a085b143.js";import{t as n}from"./p-42454428.js";const i=class{constructor(e){t(this,e)}componentWillLoad(){n(this.root)}render(){return e(o,null,e("div",{class:"gux-header"},e("div",{class:"gux-icon"},e("slot",{name:"icon"})),e("div",{class:"gux-title"},e("slot",{name:"title"}))),e("div",{class:"gux-message"},e("slot",{name:"message"})),e("div",{class:"gux-action-buttons"},e("div",{class:"gux-positive-button"},e("slot",{name:"positive-button"})),e("div",{class:"gux-negative-button"},e("slot",{name:"negative-button"}))))}get root(){return a(this)}};i.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:flex-start;order:0;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}";export{i as gux_action_toast}
1
+ import{r as t,h as e,H as o,g as a}from"./p-a085b143.js";import{t as n}from"./p-8d6a8fc1.js";const i=class{constructor(e){t(this,e)}componentWillLoad(){n(this.root)}render(){return e(o,null,e("div",{class:"gux-header"},e("div",{class:"gux-icon"},e("slot",{name:"icon"})),e("div",{class:"gux-title"},e("slot",{name:"title"}))),e("div",{class:"gux-message"},e("slot",{name:"message"})),e("div",{class:"gux-action-buttons"},e("div",{class:"gux-positive-button"},e("slot",{name:"positive-button"})),e("div",{class:"gux-negative-button"},e("slot",{name:"negative-button"}))))}get root(){return a(this)}};i.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:flex-start;order:0;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}";export{i as gux_action_toast}
@@ -1 +1 @@
1
- import{r as t,c as s,f as e,d as i,a as o,h,H as a,g as r}from"./p-a085b143.js";import{b as l}from"./p-14a51c35.js";import{w as n}from"./p-76ff3e75.js";import{r as c}from"./p-cbcbd1bb.js";import{t as u}from"./p-42454428.js";import{t as b}from"./p-a6257c98.js";import"./p-8a133b9b.js";const g=class{constructor(i){t(this,i),this.guxselectionchanged=s(this,"guxselectionchanged",7),this.guxsortchanged=s(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>e(this))),this.tableId=c("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.isHorizontalScroll=!1,this.isScrolledToFirstCell=!0,this.isScrolledToLastCell=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1}async componentWillLoad(){u(this.root),this.i18n=await l(this.root,b)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSortableColumns(),this.prepareSelectableRows(),this.checkHorizontalScroll(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkHorizontalScroll(),this.checkVerticalScroll(),this.updateScrollState()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onScroll(){this.updateScrollState()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows()}onInternalRowSelectChange(t){t.stopPropagation(),this.handleRowSelection(t.target)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const s=this.rowCheckboxes,e=s.filter((t=>t.selected)),i=Boolean(s.length),o=e.length===s.length,h=0===e.length;t.selected=i&&o,t.setIndeterminate(i&&!o&&!h)}}handleSelectAllRows(){const t=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{s.selected=t.selected,this.updateRowSelection(s)})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const s=t.closest("tr");t.selected?s.setAttribute("data-selected-row",""):s.removeAttribute("data-selected-row")}nextColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect();let e=(t.find((t=>t.getBoundingClientRect().right>s.right))||t[t.length-1]).getBoundingClientRect().right-s.right;e>s.width&&(e=.9*s.width),this.tableContainer.scrollLeft+=Math.ceil(e),this.updateScrollState()}previousColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect(),e=(t.reverse().find((t=>t.getBoundingClientRect().left<s.left))||t[0]).getBoundingClientRect();let i=s.left-e.left;i>s.width&&(i=.9*s.width),this.tableContainer.scrollLeft+=-Math.ceil(i),this.updateScrollState()}updateScrollState(){const t=this.tableContainer.scrollLeft,s=this.tableContainer.scrollWidth-this.tableContainer.clientWidth;this.isScrolledToFirstCell=0===t,this.isScrolledToLastCell=s-t-this.tableScrollbarConstant<=0}checkHorizontalScroll(){const t=this.slottedTable.getBoundingClientRect().width,s=this.root.getBoundingClientRect().width;this.isHorizontalScroll=t>s}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}get tableScrollbarConstant(){const t=this.tableContainer;return t?t.offsetWidth-t.clientWidth:0}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t);const s=this.tableColumns;s.pop(),s.forEach((t=>{this.columnsWidths[t.dataset.columnName]=`${this.getElementComputedWidth(t)}px`})),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const s=this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX);this.columnsWidths[this.columnResizeState.resizableColumn.dataset.columnName]=`${s>1?s:1}px`,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,n("th",t,(s=>{this.tableColumns.length-1!==s.cellIndex&&this.isInResizeZone(t,s)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){n("th",t,(s=>{this.isInResizeZone(t,s)&&(this.columnResizeState={resizableColumn:s,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:this.getElementComputedWidth(s)})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,s){return s.getBoundingClientRect().right-t.clientX<3}getElementComputedWidth(t){return parseInt(window.getComputedStyle(t).getPropertyValue("width").split("px")[0],10)}prepareSortableColumns(){const t=this.tableColumns;this.prepareSortableColumnsStyles(),t.forEach((t=>{Object.prototype.hasOwnProperty.call(t.dataset,"sortable")&&(t.onclick=t=>{if(!this.columnResizeHover){const s=t.currentTarget;let e=null;switch(s.dataset.sort||""){case"":case"desc":e="asc";break;case"asc":e="desc"}this.guxsortchanged.emit({columnName:s.dataset.columnName,sortDirection:e})}})}))}prepareSortableColumnsStyles(){const t="gux-table-sortable-styles";if(null==document.getElementById(t)){const s=document.createElement("style");s.id=t;const e=o("./icons/arrow-solid-down.svg"),i=o("./icons/arrow-solid-up.svg"),h=this.i18n("sortAsc"),a=this.i18n("sortDesc");s.innerHTML=`\n th[data-sortable]:hover:after{content: "${h}";background-image: url("${e}");}\n th[data-sort="asc"]:after{background-image:url("${e}")!important;content:"${h}"!important;}\n th[data-sort="desc"]:after{background-image:url("${i}")!important;content:"${a}"!important;}\n `,document.querySelector("head").appendChild(s)}}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let s="";Object.keys(this.columnsWidths).forEach((t=>{s+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])};\n min-width:${String(this.columnsWidths[t])};\n }`})),t.innerHTML=s}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return h(a,{"gs-table-id":this.tableId,"gs-v-scroll":this.isVerticalScroll,"gs-h-scroll":this.isHorizontalScroll,"gs-obj-table":this.objectTable,"gs-compact":this.compact},h("div",{class:"gux-table"},h("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},h("slot",{name:"data"})),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary"},h("button",{class:"gux-table-scroll-left",disabled:this.isScrolledToFirstCell,onClick:!this.isScrolledToFirstCell&&this.previousColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-left","screenreader-text":this.i18n("scrollLeft")}))),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary",style:{marginRight:`${this.tableScrollbarConstant}px`}},h("button",{class:"gux-table-scroll-right",disabled:this.isScrolledToLastCell,style:{marginRight:`${this.tableScrollbarConstant}px`},onClick:!this.isScrolledToLastCell&&this.nextColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-right","screenreader-text":this.i18n("scrollRight")}))),this.isTableEmpty&&h("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return r(this)}};g.style=":host{display:block;isolation:isolate}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-scroll-left,:host .gux-table .gux-table-scroll-right{position:absolute;top:0;z-index:1;display:flex;align-items:center;justify-content:center;width:24px;min-width:0;height:40px;padding:0;color:#2e394c;cursor:pointer;border-radius:4px}:host .gux-table .gux-table-scroll-left gux-icon,:host .gux-table .gux-table-scroll-right gux-icon{width:8px;height:8px}:host .gux-table .gux-table-scroll-left{border-top-left-radius:0;border-bottom-left-radius:0}:host .gux-table .gux-table-scroll-right{right:0;border-top-right-radius:0;border-bottom-right-radius:0}:host .gux-table .gux-table-container{width:100%;max-height:100%;overflow-x:hidden;overflow-y:auto;scrollbar-color:rgba(32, 41, 55, 0.24) #fdfdfd;scrollbar-width:thin}:host .gux-table .gux-table-container::-webkit-scrollbar{width:4px}:host .gux-table .gux-table-container::-webkit-scrollbar-track{background:#fdfdfd}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb{background:rgba(32, 41, 55, 0.24)}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb:hover{background:rgba(32, 41, 55, 0.48)}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:150px;color:#596373;background:#fdfdfd;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}";export{g as gux_table_beta}
1
+ import{r as t,c as s,f as e,d as i,a as o,h,H as a,g as r}from"./p-a085b143.js";import{b as l}from"./p-2548bdad.js";import{w as n}from"./p-76ff3e75.js";import{r as c}from"./p-cbcbd1bb.js";import{t as u}from"./p-8d6a8fc1.js";import{t as b}from"./p-a6257c98.js";import"./p-8a133b9b.js";const g=class{constructor(i){t(this,i),this.guxselectionchanged=s(this,"guxselectionchanged",7),this.guxsortchanged=s(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>e(this))),this.tableId=c("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.isHorizontalScroll=!1,this.isScrolledToFirstCell=!0,this.isScrolledToLastCell=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1}async componentWillLoad(){u(this.root),this.i18n=await l(this.root,b)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSortableColumns(),this.prepareSelectableRows(),this.checkHorizontalScroll(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkHorizontalScroll(),this.checkVerticalScroll(),this.updateScrollState()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onScroll(){this.updateScrollState()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows()}onInternalRowSelectChange(t){t.stopPropagation(),this.handleRowSelection(t.target)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const s=this.rowCheckboxes,e=s.filter((t=>t.selected)),i=Boolean(s.length),o=e.length===s.length,h=0===e.length;t.selected=i&&o,t.setIndeterminate(i&&!o&&!h)}}handleSelectAllRows(){const t=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{s.selected=t.selected,this.updateRowSelection(s)})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const s=t.closest("tr");t.selected?s.setAttribute("data-selected-row",""):s.removeAttribute("data-selected-row")}nextColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect();let e=(t.find((t=>t.getBoundingClientRect().right>s.right))||t[t.length-1]).getBoundingClientRect().right-s.right;e>s.width&&(e=.9*s.width),this.tableContainer.scrollLeft+=Math.ceil(e),this.updateScrollState()}previousColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect(),e=(t.reverse().find((t=>t.getBoundingClientRect().left<s.left))||t[0]).getBoundingClientRect();let i=s.left-e.left;i>s.width&&(i=.9*s.width),this.tableContainer.scrollLeft+=-Math.ceil(i),this.updateScrollState()}updateScrollState(){const t=this.tableContainer.scrollLeft,s=this.tableContainer.scrollWidth-this.tableContainer.clientWidth;this.isScrolledToFirstCell=0===t,this.isScrolledToLastCell=s-t-this.tableScrollbarConstant<=0}checkHorizontalScroll(){const t=this.slottedTable.getBoundingClientRect().width,s=this.root.getBoundingClientRect().width;this.isHorizontalScroll=t>s}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}get tableScrollbarConstant(){const t=this.tableContainer;return t?t.offsetWidth-t.clientWidth:0}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t);const s=this.tableColumns;s.pop(),s.forEach((t=>{this.columnsWidths[t.dataset.columnName]=`${this.getElementComputedWidth(t)}px`})),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const s=this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX);this.columnsWidths[this.columnResizeState.resizableColumn.dataset.columnName]=`${s>1?s:1}px`,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,n("th",t,(s=>{this.tableColumns.length-1!==s.cellIndex&&this.isInResizeZone(t,s)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){n("th",t,(s=>{this.isInResizeZone(t,s)&&(this.columnResizeState={resizableColumn:s,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:this.getElementComputedWidth(s)})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,s){return s.getBoundingClientRect().right-t.clientX<3}getElementComputedWidth(t){return parseInt(window.getComputedStyle(t).getPropertyValue("width").split("px")[0],10)}prepareSortableColumns(){const t=this.tableColumns;this.prepareSortableColumnsStyles(),t.forEach((t=>{Object.prototype.hasOwnProperty.call(t.dataset,"sortable")&&(t.onclick=t=>{if(!this.columnResizeHover){const s=t.currentTarget;let e=null;switch(s.dataset.sort||""){case"":case"desc":e="asc";break;case"asc":e="desc"}this.guxsortchanged.emit({columnName:s.dataset.columnName,sortDirection:e})}})}))}prepareSortableColumnsStyles(){const t="gux-table-sortable-styles";if(null==document.getElementById(t)){const s=document.createElement("style");s.id=t;const e=o("./icons/arrow-solid-down.svg"),i=o("./icons/arrow-solid-up.svg"),h=this.i18n("sortAsc"),a=this.i18n("sortDesc");s.innerHTML=`\n th[data-sortable]:hover:after{content: "${h}";background-image: url("${e}");}\n th[data-sort="asc"]:after{background-image:url("${e}")!important;content:"${h}"!important;}\n th[data-sort="desc"]:after{background-image:url("${i}")!important;content:"${a}"!important;}\n `,document.querySelector("head").appendChild(s)}}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let s="";Object.keys(this.columnsWidths).forEach((t=>{s+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])};\n min-width:${String(this.columnsWidths[t])};\n }`})),t.innerHTML=s}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return h(a,{"gs-table-id":this.tableId,"gs-v-scroll":this.isVerticalScroll,"gs-h-scroll":this.isHorizontalScroll,"gs-obj-table":this.objectTable,"gs-compact":this.compact},h("div",{class:"gux-table"},h("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},h("slot",{name:"data"})),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary"},h("button",{class:"gux-table-scroll-left",disabled:this.isScrolledToFirstCell,onClick:!this.isScrolledToFirstCell&&this.previousColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-left","screenreader-text":this.i18n("scrollLeft")}))),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary",style:{marginRight:`${this.tableScrollbarConstant}px`}},h("button",{class:"gux-table-scroll-right",disabled:this.isScrolledToLastCell,style:{marginRight:`${this.tableScrollbarConstant}px`},onClick:!this.isScrolledToLastCell&&this.nextColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-right","screenreader-text":this.i18n("scrollRight")}))),this.isTableEmpty&&h("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return r(this)}};g.style=":host{display:block;isolation:isolate}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-scroll-left,:host .gux-table .gux-table-scroll-right{position:absolute;top:0;z-index:1;display:flex;align-items:center;justify-content:center;width:24px;min-width:0;height:40px;padding:0;color:#2e394c;cursor:pointer;border-radius:4px}:host .gux-table .gux-table-scroll-left gux-icon,:host .gux-table .gux-table-scroll-right gux-icon{width:8px;height:8px}:host .gux-table .gux-table-scroll-left{border-top-left-radius:0;border-bottom-left-radius:0}:host .gux-table .gux-table-scroll-right{right:0;border-top-right-radius:0;border-bottom-right-radius:0}:host .gux-table .gux-table-container{width:100%;max-height:100%;overflow-x:hidden;overflow-y:auto;scrollbar-color:rgba(32, 41, 55, 0.24) #fdfdfd;scrollbar-width:thin}:host .gux-table .gux-table-container::-webkit-scrollbar{width:4px}:host .gux-table .gux-table-container::-webkit-scrollbar-track{background:#fdfdfd}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb{background:rgba(32, 41, 55, 0.24)}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb:hover{background:rgba(32, 41, 55, 0.48)}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:150px;color:#596373;background:#fdfdfd;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}";export{g as gux_table_beta}
@@ -1 +1 @@
1
- import{r as e,h as o,g as l}from"./p-a085b143.js";import{t}from"./p-42454428.js";import{b as r}from"./p-14a51c35.js";import"./p-8a133b9b.js";const a={neutral:"badge with label: {label}, color: neutral","neutral-bold":"badge with label: {label}, color: neutral bold",green:"badge with label: {label}, color: green","green-bold":"badge with label: {label}, color: green bold",yellow:"badge with label: {label}, color: yellow","yellow-bold":"badge with label: {label}, color: yellow bold",red:"badge with label: {label}, color: red","red-bold":"badge with label: {label}, color: red bold"},g=class{constructor(o){e(this,o),this.color="neutral",this.bold=!1}onSlotChange(e){const o=e.composedPath()[0].assignedNodes();this.label=o.map((e=>e.textContent)).join("")}renderBadgeTitle(){return o("gux-tooltip-title",null,o("span",null,o("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return o("div",{class:"gux-sr-only"},this.i18n(this.getVariant(),{label:this.label}))}getVariant(){return`${this.color}${this.bold?"-bold":""}`}async componentWillLoad(){t(this.root),this.i18n=await r(this.root,a)}render(){return o("div",{class:{"gux-badge":!0,[`gux-${this.color}`]:!0,"gux-bold":this.bold}},this.renderBadgeTitle(),this.renderSrText())}get root(){return l(this)}};g.style=":host{display:inline-block}.gux-badge{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;height:20px;padding:2px 8px;color:#fdfdfd;background-color:#2e394c;border-radius:4px;font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}.gux-badge gux-tooltip-title{white-space:nowrap;cursor:default}.gux-badge gux-tooltip-title ::slotted(gux-icon){height:16px;font-size:16px}.gux-badge .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-badge.gux-neutral{color:#2e394c;background-color:#e2e6ee}.gux-badge.gux-neutral.gux-bold{color:#fdfdfd;background-color:#2e394c}.gux-badge.gux-red{color:#8f0707;background-color:#fceaea}.gux-badge.gux-red.gux-bold{color:#fdfdfd;background-color:#ea0b0b}.gux-badge.gux-yellow{color:#976700;background-color:#fdf8ec}.gux-badge.gux-yellow.gux-bold{color:#2e394c;background-color:#ffae00}.gux-badge.gux-green{color:#205a10;background-color:#eefcea}.gux-badge.gux-green.gux-bold{color:#fdfdfd;background-color:#3c8527}";export{g as gux_badge_beta}
1
+ import{r as e,h as o,g as l}from"./p-a085b143.js";import{t}from"./p-8d6a8fc1.js";import{b as a}from"./p-2548bdad.js";import"./p-8a133b9b.js";const r={neutral:"badge with label: {label}, color: neutral","neutral-bold":"badge with label: {label}, color: neutral bold",green:"badge with label: {label}, color: green","green-bold":"badge with label: {label}, color: green bold",yellow:"badge with label: {label}, color: yellow","yellow-bold":"badge with label: {label}, color: yellow bold",red:"badge with label: {label}, color: red","red-bold":"badge with label: {label}, color: red bold"},d=class{constructor(o){e(this,o),this.color="neutral",this.bold=!1}onSlotChange(e){const o=e.composedPath()[0].assignedNodes();this.label=o.map((e=>e.textContent)).join("")}renderBadgeTitle(){return o("gux-tooltip-title",null,o("span",null,o("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return o("div",{class:"gux-sr-only"},this.i18n(this.getVariant(),{label:this.label}))}getVariant(){return`${this.color}${this.bold?"-bold":""}`}async componentWillLoad(){t(this.root),this.i18n=await a(this.root,r)}render(){return o("div",{class:{"gux-badge":!0,[`gux-${this.color}`]:!0,"gux-bold":this.bold}},this.renderBadgeTitle(),this.renderSrText())}get root(){return l(this)}};d.style=":host{display:inline-block}.gux-badge{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;height:20px;padding:2px 8px;color:#fdfdfd;background-color:#2e394c;border-radius:4px;font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}.gux-badge gux-tooltip-title{white-space:nowrap;cursor:default}.gux-badge gux-tooltip-title ::slotted(gux-icon){height:16px;font-size:16px}.gux-badge .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-badge.gux-neutral{color:#2e394c;background-color:#e2e6ee}.gux-badge.gux-neutral.gux-bold{color:#fdfdfd;background-color:#2e394c}.gux-badge.gux-red{color:#8f0707;background-color:#fceaea}.gux-badge.gux-red.gux-bold{color:#fdfdfd;background-color:#ea0b0b}.gux-badge.gux-yellow{color:#976700;background-color:#fdf8ec}.gux-badge.gux-yellow.gux-bold{color:#2e394c;background-color:#ffae00}.gux-badge.gux-green{color:#205a10;background-color:#eefcea}.gux-badge.gux-green.gux-bold{color:#fdfdfd;background-color:#3c8527}";export{d as gux_badge_beta}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,g as h}from"./p-a085b143.js";import{O as e}from"./p-5ca81424.js";import{t as r}from"./p-42454428.js";import{b as o}from"./p-14a51c35.js";import"./p-8a133b9b.js";function a(t){return new Date("1978-09-23T"+t.trim()+"Z")}const n={defaultAriaLabel:"Time Picker"};const c=class{constructor(s){t(this,s),this.changed=i(this,"changed",7),this.value="",this.interval=15,this.max="23:59:59",this.min="00:00:00",this.label="",this.active=!1,this.openDropdown=!1,this.suggestion="00",this.isPressEvent=!1}watchValue(t){this.changed.emit(t)}getShadowDomEventTarget(t){return t.composedPath()[0]}onKeyDown(t){if(this.focusedField=this.getShadowDomEventTarget(t),this.focusedField===this.inputElement)switch(t.key){case"Enter":this.updateChosenValue(),this.inputElement.focus();break;case"Backspace":t.preventDefault(),this.handleBackspace();break;case"Tab":this.updateChosenValue();break;case"ArrowDown":t.preventDefault(),this.listElement&&this.listElement.guxFocusFirstItem();break;case"ArrowUp":case"ArrowRight":case"ArrowLeft":t.preventDefault();break;default:if(t.preventDefault(),"0"<=t.key&&t.key<="9"&&(this.openDropdown=!0,this.focusedField.value.length<8)){let i=this.focusedField.value+String(parseInt(t.key,10));const s=i.split(":");if(i.length>6&&Number(s[2].padEnd(2,"0"))>59)return;if(!this.canBeCompletedToAValidTime(i))return;2===s[s.length-1].length&&i.length<8&&(i+=":"),this.focusedField.value=i,this.suggestion=s[0].padEnd(2,"0")}}else switch(t.key){case"Escape":this.updateChosenValue(),this.inputElement.focus()}}canBeCompletedToAValidTime(t){const i=a(t+this.max.slice(t.length)),s=a(t+this.min.slice(t.length));return this.minTimeObj<=i&&i<=this.maxTimeObj||this.minTimeObj<=s&&s<=this.maxTimeObj}handleBackspace(){if(this.openDropdown=!0,this.focusedField.selectionStart===this.focusedField.selectionEnd){const t=this.focusedField.value.endsWith(":")?-2:-1;this.focusedField.value=this.focusedField.value.slice(0,t),this.suggestion=this.focusedField.value.split(":")[0].padEnd(2,"0")}else this.focusedField.value=""}onListItemClick(t){this.inputElement.value=t,this.updateChosenValue(),this.inputElement.focus()}onClickOutside(){this.updateChosenValue()}updateChosenValue(){this.inputElement.value=this.validateValue(this.inputElement.value),this.value=this.inputElement.value,this.active=!1,this.openDropdown=!1}onMouseUp(t){this.focusedField=this.getShadowDomEventTarget(t),this.focusedField===this.inputElement&&this.inputElement.setSelectionRange(this.focusedField.selectionEnd!==this.inputElement.value.length?0:this.inputElement.value.length,this.inputElement.value.length)}onFocusIn(t){this.focusedField=this.getShadowDomEventTarget(t),this.active=!0}isValidTime(t){const i=t.split(":"),s="23:59:59".split(":");for(let t=0;t<i.length;t++)if(Number(i[t])>Number(s[t]))return!1;return!0}validateUpperBound(){this.max=this.isInFormat(this.max)?this.max:"23:59:59",this.max=this.isValidTime(this.max)?this.max:"23:59:59"}validateLowerBound(){this.min=this.isInFormat(this.min)?this.min:"00:00:00",this.min=this.isValidTime(this.min)?this.min:"00:00:00"}validateBounds(){this.validateUpperBound(),this.validateLowerBound(),this.maxTimeObj=a(this.max),this.minTimeObj=a(this.min),this.maxTimeObj<this.minTimeObj&&(this.max="23:59:59",this.min="00:00:00",this.maxTimeObj=a(this.max),this.minTimeObj=a(this.min))}validateValue(t){let i=this.isInFormat(t)?t:"";if(i=""!==i&&this.isValidTime(i)?i:"",i){const t=a(i);i=this.minTimeObj<=t&&t<=this.maxTimeObj?i:""}return i}async componentWillLoad(){r(this.root),this.i18n=await o(this.root,n),this.validateBounds(),this.value=this.validateValue(this.value)}isInFormat(t){return/^\d{2}:\d{2}:\d{2}$/.test(t)}render(){return s("div",null,s("div",{class:"gux-input"},s("input",{type:"text",value:this.value,size:9,"aria-label":this.label||this.i18n("defaultAriaLabel"),ref:t=>this.inputElement=t})),!0===this.openDropdown&&s("div",{class:"gux-list-container"},s("gux-list",{ref:t=>this.listElement=t},this.buildDropdownOptions().map((t=>s("gux-list-item",{onClick:()=>this.onListItemClick(t)},t))))))}buildDropdownOptions(){const t=[];for(let i=0;i<60;i+=this.interval){const s=[this.suggestion.toString().padStart(2,"0"),i.toString().padStart(2,"0"),"00"].join(":"),h=a(s);this.minTimeObj<=h&&h<=this.maxTimeObj&&t.push(s)}return t}get root(){return h(this)}static get watchers(){return{value:["watchValue"]}}};(function(t,i,s,h){var e,r=arguments.length,o=r<3?i:null===h?h=Object.getOwnPropertyDescriptor(i,s):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,h);else for(var a=t.length-1;a>=0;a--)(e=t[a])&&(o=(r<3?e(o):r>3?e(i,s,o):e(i,s))||o);r>3&&o&&Object.defineProperty(i,s,o)})([e({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:inline-block}input{box-sizing:border-box;width:100%;height:32px;padding:4px 12px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#fdfdfd;background-image:none;border:1px solid #6b7585;border-radius:2px;text-align:right}input::placeholder{color:#596373}input.gux-focused,input:focus{border:1px solid #2a60c8;outline:none;box-shadow:0 0 4px rgba(170, 201, 255, 0.5)}.gux-list-container{padding:8px 0;margin:0;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{c as gux_time_picker_beta}
1
+ import{r as t,c as i,h as s,g as h}from"./p-a085b143.js";import{O as e}from"./p-5ca81424.js";import{t as r}from"./p-8d6a8fc1.js";import{b as o}from"./p-2548bdad.js";import"./p-8a133b9b.js";function a(t){return new Date("1978-09-23T"+t.trim()+"Z")}const n={defaultAriaLabel:"Time Picker"};const c=class{constructor(s){t(this,s),this.changed=i(this,"changed",7),this.value="",this.interval=15,this.max="23:59:59",this.min="00:00:00",this.label="",this.active=!1,this.openDropdown=!1,this.suggestion="00",this.isPressEvent=!1}watchValue(t){this.changed.emit(t)}getShadowDomEventTarget(t){return t.composedPath()[0]}onKeyDown(t){if(this.focusedField=this.getShadowDomEventTarget(t),this.focusedField===this.inputElement)switch(t.key){case"Enter":this.updateChosenValue(),this.inputElement.focus();break;case"Backspace":t.preventDefault(),this.handleBackspace();break;case"Tab":this.updateChosenValue();break;case"ArrowDown":t.preventDefault(),this.listElement&&this.listElement.guxFocusFirstItem();break;case"ArrowUp":case"ArrowRight":case"ArrowLeft":t.preventDefault();break;default:if(t.preventDefault(),"0"<=t.key&&t.key<="9"&&(this.openDropdown=!0,this.focusedField.value.length<8)){let i=this.focusedField.value+String(parseInt(t.key,10));const s=i.split(":");if(i.length>6&&Number(s[2].padEnd(2,"0"))>59)return;if(!this.canBeCompletedToAValidTime(i))return;2===s[s.length-1].length&&i.length<8&&(i+=":"),this.focusedField.value=i,this.suggestion=s[0].padEnd(2,"0")}}else switch(t.key){case"Escape":this.updateChosenValue(),this.inputElement.focus()}}canBeCompletedToAValidTime(t){const i=a(t+this.max.slice(t.length)),s=a(t+this.min.slice(t.length));return this.minTimeObj<=i&&i<=this.maxTimeObj||this.minTimeObj<=s&&s<=this.maxTimeObj}handleBackspace(){if(this.openDropdown=!0,this.focusedField.selectionStart===this.focusedField.selectionEnd){const t=this.focusedField.value.endsWith(":")?-2:-1;this.focusedField.value=this.focusedField.value.slice(0,t),this.suggestion=this.focusedField.value.split(":")[0].padEnd(2,"0")}else this.focusedField.value=""}onListItemClick(t){this.inputElement.value=t,this.updateChosenValue(),this.inputElement.focus()}onClickOutside(){this.updateChosenValue()}updateChosenValue(){this.inputElement.value=this.validateValue(this.inputElement.value),this.value=this.inputElement.value,this.active=!1,this.openDropdown=!1}onMouseUp(t){this.focusedField=this.getShadowDomEventTarget(t),this.focusedField===this.inputElement&&this.inputElement.setSelectionRange(this.focusedField.selectionEnd!==this.inputElement.value.length?0:this.inputElement.value.length,this.inputElement.value.length)}onFocusIn(t){this.focusedField=this.getShadowDomEventTarget(t),this.active=!0}isValidTime(t){const i=t.split(":"),s="23:59:59".split(":");for(let t=0;t<i.length;t++)if(Number(i[t])>Number(s[t]))return!1;return!0}validateUpperBound(){this.max=this.isInFormat(this.max)?this.max:"23:59:59",this.max=this.isValidTime(this.max)?this.max:"23:59:59"}validateLowerBound(){this.min=this.isInFormat(this.min)?this.min:"00:00:00",this.min=this.isValidTime(this.min)?this.min:"00:00:00"}validateBounds(){this.validateUpperBound(),this.validateLowerBound(),this.maxTimeObj=a(this.max),this.minTimeObj=a(this.min),this.maxTimeObj<this.minTimeObj&&(this.max="23:59:59",this.min="00:00:00",this.maxTimeObj=a(this.max),this.minTimeObj=a(this.min))}validateValue(t){let i=this.isInFormat(t)?t:"";if(i=""!==i&&this.isValidTime(i)?i:"",i){const t=a(i);i=this.minTimeObj<=t&&t<=this.maxTimeObj?i:""}return i}async componentWillLoad(){r(this.root),this.i18n=await o(this.root,n),this.validateBounds(),this.value=this.validateValue(this.value)}isInFormat(t){return/^\d{2}:\d{2}:\d{2}$/.test(t)}render(){return s("div",null,s("div",{class:"gux-input"},s("input",{type:"text",value:this.value,size:9,"aria-label":this.label||this.i18n("defaultAriaLabel"),ref:t=>this.inputElement=t})),!0===this.openDropdown&&s("div",{class:"gux-list-container"},s("gux-list",{ref:t=>this.listElement=t},this.buildDropdownOptions().map((t=>s("gux-list-item",{onClick:()=>this.onListItemClick(t)},t))))))}buildDropdownOptions(){const t=[];for(let i=0;i<60;i+=this.interval){const s=[this.suggestion.toString().padStart(2,"0"),i.toString().padStart(2,"0"),"00"].join(":"),h=a(s);this.minTimeObj<=h&&h<=this.maxTimeObj&&t.push(s)}return t}get root(){return h(this)}static get watchers(){return{value:["watchValue"]}}};(function(t,i,s,h){var e,r=arguments.length,o=r<3?i:null===h?h=Object.getOwnPropertyDescriptor(i,s):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,h);else for(var a=t.length-1;a>=0;a--)(e=t[a])&&(o=(r<3?e(o):r>3?e(i,s,o):e(i,s))||o);r>3&&o&&Object.defineProperty(i,s,o)})([e({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:inline-block}input{box-sizing:border-box;width:100%;height:32px;padding:4px 12px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#fdfdfd;background-image:none;border:1px solid #6b7585;border-radius:2px;text-align:right}input::placeholder{color:#596373}input.gux-focused,input:focus{border:1px solid #2a60c8;outline:none;box-shadow:0 0 4px rgba(170, 201, 255, 0.5)}.gux-list-container{padding:8px 0;margin:0;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{c as gux_time_picker_beta}
@@ -1 +1 @@
1
- import{r as t,h as o,H as s,g as e}from"./p-a085b143.js";import{t as i}from"./p-42454428.js";import{m as n,h as r}from"./p-a02c3341.js";import{c as a}from"./p-4c66f794.js";const u=class{constructor(o){t(this,o),this.isShown=!1}forceUpdate(t){t&&this.popperInstance&&this.popperInstance.update()}onKeydown(t){if(t.stopPropagation(),this.isShown)switch(t.key){case"Escape":case"ArrowLeft":case"ArrowUp":return void this.root.focus();case"ArrowDown":return t.preventDefault(),void this.focusOnMenu();case"Enter":return void(this.hideDelayTimeout=setTimeout((()=>{this.focusOnMenu()}),n))}}onKeyup(t){switch(t.stopPropagation(),t.key){case" ":return void(this.menuContentElement.contains(document.activeElement)?this.root.focus():this.hideDelayTimeout=setTimeout((()=>{this.focusOnMenu()}),n))}}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(t){0!==t.detail&&this.hide(),this.root.focus()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),r))}runPopper(){this.popperInstance=a(this.targetElement,document.querySelector("gux-menu"),{modifiers:[{name:"offset",options:{offset:[0,16]}},{name:"arrow",options:{padding:16}}],placement:"bottom-start"})}destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;const t=this.root.querySelector("gux-menu");Array.from(t.children)[0].guxFocus()}componentWillLoad(){i(this.root)}componentDidLoad(){this.runPopper()}disconnectedCallback(){this.destroyPopper()}render(){return o(s,{tabIndex:0,"aria-haspopup":"true"},o("span",{ref:t=>this.targetElement=t},o("slot",{name:"target"})),o("div",{class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:t=>this.menuContentElement=t},o("slot",{name:"menu"})))}get root(){return e(this)}static get watchers(){return{isShown:["forceUpdate"]}}};u.style=":host{z-index:2;color:#2e394c;cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-flyout-menu-content{display:none;margin:0}.gux-flyout-menu-content.gux-shown{display:flex}.gux-arrow,.gux-arrow::before{position:absolute;top:-3px;width:10px;height:10px;background:inherit}.gux-arrow::before{visibility:visible;content:'';border-top:1px solid #b4bccb;border-left:1px solid #b4bccb;transform:rotate(45deg)}";export{u as gux_flyout_menu_beta}
1
+ import{r as t,h as o,H as s,g as e}from"./p-a085b143.js";import{t as i}from"./p-8d6a8fc1.js";import{m as n,h as r}from"./p-a02c3341.js";import{c as a}from"./p-4c66f794.js";const u=class{constructor(o){t(this,o),this.isShown=!1}forceUpdate(t){t&&this.popperInstance&&this.popperInstance.update()}onKeydown(t){if(t.stopPropagation(),this.isShown)switch(t.key){case"Escape":case"ArrowLeft":case"ArrowUp":return void this.root.focus();case"ArrowDown":return t.preventDefault(),void this.focusOnMenu();case"Enter":return void(this.hideDelayTimeout=setTimeout((()=>{this.focusOnMenu()}),n))}}onKeyup(t){switch(t.stopPropagation(),t.key){case" ":return void(this.menuContentElement.contains(document.activeElement)?this.root.focus():this.hideDelayTimeout=setTimeout((()=>{this.focusOnMenu()}),n))}}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(t){0!==t.detail&&this.hide(),this.root.focus()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),r))}runPopper(){this.popperInstance=a(this.targetElement,document.querySelector("gux-menu"),{modifiers:[{name:"offset",options:{offset:[0,16]}},{name:"arrow",options:{padding:16}}],placement:"bottom-start"})}destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;const t=this.root.querySelector("gux-menu");Array.from(t.children)[0].guxFocus()}componentWillLoad(){i(this.root)}componentDidLoad(){this.runPopper()}disconnectedCallback(){this.destroyPopper()}render(){return o(s,{tabIndex:0,"aria-haspopup":"true"},o("span",{ref:t=>this.targetElement=t},o("slot",{name:"target"})),o("div",{class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:t=>this.menuContentElement=t},o("slot",{name:"menu"})))}get root(){return e(this)}static get watchers(){return{isShown:["forceUpdate"]}}};u.style=":host{z-index:2;color:#2e394c;cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-flyout-menu-content{display:none;margin:0}.gux-flyout-menu-content.gux-shown{display:flex}.gux-arrow,.gux-arrow::before{position:absolute;top:-3px;width:10px;height:10px;background:inherit}.gux-arrow::before{visibility:visible;content:'';border-top:1px solid #b4bccb;border-left:1px solid #b4bccb;transform:rotate(45deg)}";export{u as gux_flyout_menu_beta}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,g as l}from"./p-a085b143.js";import{b as o}from"./p-2548bdad.js";import{r as a}from"./p-cbcbd1bb.js";import{t as i}from"./p-a6257c98.js";import"./p-8a133b9b.js";const r=class{constructor(e){t(this,e),this.internalallrowselectchange=s(this,"internalallrowselectchange",7),this.id=a("gux-all-row-select"),this.selected=!1}onCheck(t){t.stopPropagation(),this.selected=t.target.checked,this.internalallrowselectchange.emit()}async setIndeterminate(t=!0){this.inputElement.indeterminate=t}async componentWillLoad(){this.i18n=await o(this.root,i,"gux-table")}render(){return e("gux-form-field-checkbox",null,e("input",{ref:t=>this.inputElement=t,slot:"input",id:this.id,type:"checkbox",checked:this.selected}),e("label",{slot:"label",htmlFor:this.id},"​",e("span",{class:"gux-label-text"},this.i18n("selectAllTableRows"))))}get root(){return l(this)}};r.style="gux-all-row-select .gux-label-text{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{r as gux_all_row_select}
@@ -1 +1 @@
1
- import{r as t,h as i,g as e}from"./p-a085b143.js";import{O as o}from"./p-4b7056b2.js";import{o as r,a as n}from"./p-e2bea786.js";import{p as s}from"./p-c10e41a9.js";import{t as a}from"./p-42454428.js";import{G as l,a as u}from"./p-afb54d23.js";import{h as p,c as x,G as c,a as f,v as h,g as d}from"./p-08b07a2b.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const g=class{constructor(i){t(this,i),this.computedLabelPosition="above",this.clearable=!0,this.hasContent=!1,this.hasError=!1}onMutation(){this.hasError=p(this.root)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=p(this.root),a(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){return i(u,{labelPosition:this.computedLabelPosition},i(l,{position:this.computedLabelPosition,required:this.required},i("slot",{name:"label",onSlotchange:()=>this.setLabel()})),i("div",{class:"gux-input-and-error-container"},i("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},i("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled}},i("gux-icon",{"icon-name":"search",decorative:!0}),i("slot",{name:"input"}),this.clearable&&this.hasContent&&!this.disabled&&i("gux-form-field-input-clear-button",{onClick:()=>x(this.input)}))),i(c,{hasError:this.hasError},i("slot",{name:"error"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${t}`}setInput(){this.input=this.root.querySelector('input[type="search"][slot="input"]'),this.hasContent=f(this.input),s(this.input),this.input.addEventListener("input",(()=>{this.hasContent=f(this.input)})),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=r(this.input,(t=>{this.disabled=t})),this.requiredObserver=n(this.input,(t=>{this.required=t})),h(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=d(this.label,this.labelPosition)}get root(){return e(this)}};(function(t,i,e,o){var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);n>3&&s&&Object.defineProperty(i,e,s)})([o({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-container{margin:16px 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px 8px;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container gux-icon[icon-name='search']{flex:0 0 auto;align-self:auto;order:0;width:20px;height:20px;margin-right:4px;color:#596373}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}";export{g as gux_form_field_search}
1
+ import{r as t,h as i,g as e}from"./p-a085b143.js";import{O as o}from"./p-4b7056b2.js";import{o as r,a as n}from"./p-e2bea786.js";import{p as s}from"./p-c10e41a9.js";import{t as a}from"./p-8d6a8fc1.js";import{G as l,a as u}from"./p-afb54d23.js";import{h as p,c as x,G as c,a as f,v as h,g as d}from"./p-08b07a2b.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const g=class{constructor(i){t(this,i),this.computedLabelPosition="above",this.clearable=!0,this.hasContent=!1,this.hasError=!1}onMutation(){this.hasError=p(this.root)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=p(this.root),a(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){return i(u,{labelPosition:this.computedLabelPosition},i(l,{position:this.computedLabelPosition,required:this.required},i("slot",{name:"label",onSlotchange:()=>this.setLabel()})),i("div",{class:"gux-input-and-error-container"},i("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},i("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled}},i("gux-icon",{"icon-name":"search",decorative:!0}),i("slot",{name:"input"}),this.clearable&&this.hasContent&&!this.disabled&&i("gux-form-field-input-clear-button",{onClick:()=>x(this.input)}))),i(c,{hasError:this.hasError},i("slot",{name:"error"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${t}`}setInput(){this.input=this.root.querySelector('input[type="search"][slot="input"]'),this.hasContent=f(this.input),s(this.input),this.input.addEventListener("input",(()=>{this.hasContent=f(this.input)})),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=r(this.input,(t=>{this.disabled=t})),this.requiredObserver=n(this.input,(t=>{this.required=t})),h(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=d(this.label,this.labelPosition)}get root(){return e(this)}};(function(t,i,e,o){var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);n>3&&s&&Object.defineProperty(i,e,s)})([o({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-container{margin:16px 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px 8px;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container gux-icon[icon-name='search']{flex:0 0 auto;align-self:auto;order:0;width:20px;height:20px;margin-right:4px;color:#596373}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}";export{g as gux_form_field_search}
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,g as s}from"./p-a085b143.js";import{t as n}from"./p-42454428.js";import{O as e}from"./p-5ca81424.js";import{b as a}from"./p-14a51c35.js";import"./p-8a133b9b.js";const c={actionButtonDropdown:"Dropdown for {buttonTitle}"};const r=class{constructor(o){t(this,o),this.open=i(this,"open",7),this.close=i(this,"close",7),this.actionClick=i(this,"actionClick",7),this.moveFocusDelay=100,this.type="button",this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const i=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,i.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":i.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList())}}handleKeyup(t){switch(t.key){case" ":t.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(t){null===t.relatedTarget&&(this.isOpen=!1)}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){setTimeout((()=>{this.listElement.focus&&this.listElement.focus()}),this.moveFocusDelay)}focusFirstItemInPopupList(){setTimeout((()=>{this.listElement.guxFocusFirstItem()}),this.moveFocusDelay)}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}async componentWillLoad(){n(this.root,{variant:this.type}),this.i18n=await a(this.root,c)}render(){return o("div",{class:"gux-action-button-container"},o("gux-popup",{expanded:this.isOpen,disabled:this.disabled},o("div",{slot:"target",class:"gux-action-button-container"},o("gux-button-slot-beta",{class:"gux-action-button",accent:this.accent},o("button",{type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick()},this.text)),o("gux-button-slot-beta",{class:"gux-dropdown-button",accent:this.accent},o("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("actionButtonDropdown",{buttonTitle:this.text})},o("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),o("div",{class:"gux-list-container",slot:"popup"},o("gux-list",{ref:t=>this.listElement=t},o("slot",null)))))}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,i,o,s){var n,e=arguments.length,a=e<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,s);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(e<3?n(a):e>3?n(i,o,a):n(i,o))||a);e>3&&a&&Object.defineProperty(i,o,a)})([e({triggerEvents:"click"})],r.prototype,"onClickOutside",null),r.style=":host{display:block;-webkit-user-select:none;user-select:none;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-action-button-container{min-width:128px}.gux-action-button-container>*{vertical-align:middle}.gux-action-button-container .gux-action-button{width:calc(100% - 33px);margin-right:1px}.gux-action-button-container .gux-action-button button{width:100%;max-width:none;text-align:center;border-top-right-radius:0;border-bottom-right-radius:0}.gux-action-button-container .gux-dropdown-button button{width:32px;min-width:0;padding:0;border-top-left-radius:0;border-bottom-left-radius:0}.gux-action-button-container .gux-dropdown-button button gux-icon{width:16px;height:16px}.gux-action-button-container .gux-list-container{padding:8px 0;margin:0;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{r as gux_action_button}
1
+ import{r as t,c as i,h as o,g as s}from"./p-a085b143.js";import{t as n}from"./p-8d6a8fc1.js";import{O as e}from"./p-5ca81424.js";import{b as a}from"./p-2548bdad.js";import"./p-8a133b9b.js";const c={actionButtonDropdown:"Dropdown for {buttonTitle}"};const r=class{constructor(o){t(this,o),this.open=i(this,"open",7),this.close=i(this,"close",7),this.actionClick=i(this,"actionClick",7),this.moveFocusDelay=100,this.type="button",this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const i=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,i.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":i.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList())}}handleKeyup(t){switch(t.key){case" ":t.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(t){null===t.relatedTarget&&(this.isOpen=!1)}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){setTimeout((()=>{this.listElement.focus&&this.listElement.focus()}),this.moveFocusDelay)}focusFirstItemInPopupList(){setTimeout((()=>{this.listElement.guxFocusFirstItem()}),this.moveFocusDelay)}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}async componentWillLoad(){n(this.root,{variant:this.type}),this.i18n=await a(this.root,c)}render(){return o("div",{class:"gux-action-button-container"},o("gux-popup",{expanded:this.isOpen,disabled:this.disabled},o("div",{slot:"target",class:"gux-action-button-container"},o("gux-button-slot-beta",{class:"gux-action-button",accent:this.accent},o("button",{type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick()},this.text)),o("gux-button-slot-beta",{class:"gux-dropdown-button",accent:this.accent},o("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("actionButtonDropdown",{buttonTitle:this.text})},o("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),o("div",{class:"gux-list-container",slot:"popup"},o("gux-list",{ref:t=>this.listElement=t},o("slot",null)))))}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,i,o,s){var n,e=arguments.length,a=e<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,s);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(e<3?n(a):e>3?n(i,o,a):n(i,o))||a);e>3&&a&&Object.defineProperty(i,o,a)})([e({triggerEvents:"click"})],r.prototype,"onClickOutside",null),r.style=":host{display:block;-webkit-user-select:none;user-select:none;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-action-button-container{min-width:128px}.gux-action-button-container>*{vertical-align:middle}.gux-action-button-container .gux-action-button{width:calc(100% - 33px);margin-right:1px}.gux-action-button-container .gux-action-button button{width:100%;max-width:none;text-align:center;border-top-right-radius:0;border-bottom-right-radius:0}.gux-action-button-container .gux-dropdown-button button{width:32px;min-width:0;padding:0;border-top-left-radius:0;border-bottom-left-radius:0}.gux-action-button-container .gux-dropdown-button button gux-icon{width:16px;height:16px}.gux-action-button-container .gux-list-container{padding:8px 0;margin:0;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{r as gux_action_button}
@@ -0,0 +1 @@
1
+ import{r as t,c as o,w as i,h as a,g as n}from"./p-a085b143.js";import{b as s}from"./p-2548bdad.js";import{e}from"./p-29e8b184.js";import{r as d}from"./p-cbcbd1bb.js";import{t as u}from"./p-2c3d934a.js";import"./p-8a133b9b.js";const g=class{constructor(i){t(this,i),this.internalactivatetabpanel=o(this,"internalactivatetabpanel",7),this.dropdownOptionsButtonId=d(),this.moveFocusDelay=100,this.tabTitle="",this.focusinFromClick=!1,this.active=!1,this.guxDisabled=!1,this.popoverHidden=!0,this.hasAnimated=!1}onFocusin(t){!this.focusinFromClick&&t.target.classList.contains("gux-tab-button")&&this.tooltipTitleElement.setShowTooltip()}onFocusout(t){this.root.querySelector(".gux-tab").contains(t.relatedTarget)||(this.popoverHidden=!0),t.target.classList.contains("gux-tab-button")&&this.tooltipTitleElement.setHideTooltip(),this.focusinFromClick=!1}onKeydown(t){switch(t.key){case"ArrowDown":case"Enter":e(".gux-tab-options-button",t)&&(this.popoverHidden=!1,this.focusFirstItemInPopupList());break;case"Escape":e('gux-list[slot="dropdown-options"]',t)&&(t.stopPropagation(),this.popoverHidden=!0,setTimeout((()=>{var t;null===(t=this.tabOptionsButtonElement)||void 0===t||t.focus()}),this.moveFocusDelay))}}onKeyup(t){switch(t.key){case" ":e(".gux-tab-options-button",t)&&this.focusFirstItemInPopupList()}}onClick(t){e(".gux-tab-options-button",t)||this.active||this.guxDisabled||this.internalactivatetabpanel.emit(this.tabId)}onMouseDown(){this.focusinFromClick=!0}async guxSetActive(t){this.active=t}async guxGetActive(){return this.active}async guxFocus(){this.buttonElement.focus()}get hasDropdownOptions(){return Boolean(this.root.querySelector('gux-list[slot="dropdown-options"]'))}focusFirstItemInPopupList(){const t=this.root.querySelector('gux-list[slot="dropdown-options"]');setTimeout((()=>{null==t||t.guxFocusFirstItem()}),this.moveFocusDelay)}toggleOptions(){this.popoverHidden=!this.popoverHidden}onSelectDropdownOption(t){this.popoverHidden=!0,t.stopPropagation(),setTimeout((()=>{this.tabOptionsButtonElement.focus()}),this.moveFocusDelay)}async componentWillLoad(){this.i18n=await s(this.root,u,"gux-tabs-advanced")}componentDidLoad(){this.tabTitle=this.root.querySelector("gux-tooltip-title").textContent.trim(),this.hasAnimated||i((()=>{this.root.querySelector(".gux-tab").classList.add("gux-show"),this.hasAnimated=!0}))}popoverOnClick(t){t.stopPropagation()}getDropdownOptions(){return this.hasDropdownOptions?[a("button",{id:this.dropdownOptionsButtonId,"aria-expanded":(!this.popoverHidden).toString(),type:"button",class:"gux-tab-options-button",ref:t=>this.tabOptionsButtonElement=t,onClick:()=>this.toggleOptions(),tabIndex:this.active?0:-1,disabled:this.guxDisabled},a("gux-icon",{"icon-name":"menu-kebab-vertical","screenreader-text":this.i18n("options",{tabTitle:this.tabTitle})})),a("gux-popover-list",{position:"top-end",for:this.dropdownOptionsButtonId,displayDismissButton:!1,hidden:this.popoverHidden,closeOnClickOutside:!0,onGuxdismiss:()=>this.popoverHidden=!0,onClick:t=>this.popoverOnClick(t)},a("div",{class:"gux-dropdown-option-container",onClick:t=>this.onSelectDropdownOption(t)},a("slot",{name:"dropdown-options"})))]:null}render(){return[a("div",{class:{"gux-tab":!0,"gux-selected":this.active,"gux-dropdown-options":this.hasDropdownOptions,"gux-disabled":this.guxDisabled}},a("button",{class:"gux-tab-button",type:"button",role:"tab","aria-selected":this.active.toString(),"aria-disabled":this.guxDisabled.toString(),"aria-controls":`gux-${this.tabId}-panel`,ref:t=>this.buttonElement=t,tabIndex:this.active?0:-1,id:`gux-${this.tabId}-tab`},a("gux-tooltip-title",{ref:t=>this.tooltipTitleElement=t},a("span",null,a("slot",null)))),this.getDropdownOptions())]}get root(){return n(this)}};g.style=".gux-tab-sorting :focus-within{margin-bottom:4px}gux-tab-advanced:not(:last-child) .gux-tab:not(.gux-dropdown-options) .gux-tab-button{border-right:1px solid #d7dce5}gux-tab-advanced:not(:last-child) .gux-tab:not(.gux-dropdown-options) .gux-tab-options-button gux-icon{border-right:1px solid #d7dce5}gux-tab-advanced .gux-tab{display:flex;align-items:center;width:126px;height:50px;padding-bottom:2px;overflow:hidden;border-radius:4px 4px 0 0;transition:width 0.4s ease-out}gux-tab-advanced .gux-tab .gux-tab-button{display:flex;align-items:center;width:100%;width:125px;height:50px;padding-right:0;padding-left:16px;color:#000000;background-color:#f6f7f9;border:none}gux-tab-advanced .gux-tab .gux-tab-button:focus-visible{height:90%;border:3px solid #aac9ff;border-radius:5px;outline:none}gux-tab-advanced .gux-tab.gux-show{width:160px}gux-tab-advanced .gux-tab.gux-show.gux-disabled .gux-tab-button{color:rgba(0, 0, 0, 0.5)}gux-tab-advanced .gux-tab.gux-show.gux-disabled .gux-tab-options-button{color:rgba(46, 57, 76, 0.5);pointer-events:none;cursor:default}gux-tab-advanced .gux-tab .gux-tab-options-button{z-index:1;align-items:center;justify-content:center;width:35px;height:100%;padding:0;cursor:pointer;background-color:#f6f7f9;border:none}gux-tab-advanced .gux-tab .gux-tab-options-button:focus-visible{outline:none}gux-tab-advanced .gux-tab .gux-tab-options-button:focus-visible gux-icon{padding-right:0;padding-left:0;border:3px solid #aac9ff;border-radius:5px}gux-tab-advanced .gux-tab .gux-tab-options-button gux-icon{width:16px;height:30px;padding-right:10px;padding-left:8px;transition:color 0.25s}gux-tab-advanced .gux-tab:not(.gux-dropdown-options) .gux-tab-button{width:160px;height:30px;padding-right:16px}gux-tab-advanced .gux-tab:not(.gux-dropdown-options) .gux-tab-button:focus-visible{height:90%;border:3px solid #aac9ff;border-radius:5px;outline:none}gux-tab-advanced .gux-tab .tab-icon-container{display:flex;flex:0 0 16px;align-items:center;justify-content:center;height:14px;margin-right:8px}gux-tab-advanced .gux-tab .tab-icon-container gux-icon{width:100%}gux-tab-advanced .gux-tab.gux-selected{padding-bottom:0;background-color:#fdfdfd;border-bottom:2px solid #2a60c8}gux-tab-advanced .gux-tab.gux-selected .gux-tab-button{background-color:#fdfdfd}gux-tab-advanced .gux-tab.gux-selected .gux-tab-options-button{background-color:#fdfdfd}gux-tab-advanced .gux-tab:hover:not(.gux-selected):not(.gux-disabled){padding-bottom:0;border-bottom:2px solid #8a97ad}gux-tab-advanced .gux-tab gux-tooltip-title{padding-top:2px;font-size:14px;white-space:nowrap;cursor:default}";export{g as gux_tab_advanced}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,g as e}from"./p-a085b143.js";import{t as o}from"./p-42454428.js";import{O as n}from"./p-5ca81424.js";const a=class{constructor(i){t(this,i),this.open=s(this,"open",7),this.close=s(this,"close",7),this.moveFocusDelay=100,this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const s=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,s.includes(this.listElement)&&this.dropdownButton.focus();break;case"Tab":this.isOpen=!1;break;case"Enter":case"ArrowDown":t.preventDefault(),s.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.listElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}handleKeyup(t){const s=t.composedPath();switch(t.key){case" ":t.preventDefault(),s.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.listElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(){this.isOpen=!1}toggle(){this.disabled||(this.isOpen=!this.isOpen)}componentWillLoad(){o(this.root,{variant:this.accent})}render(){return i("gux-popup",{expanded:this.isOpen,disabled:this.disabled},i("div",{slot:"target",class:"gux-button-multi-container"},i("gux-button-slot-beta",{class:"gux-dropdown-button",accent:this.accent},i("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},i("span",null,this.text),i("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),i("gux-action-list-legacy",{slot:"popup",ref:t=>this.listElement=t},i("slot",null)))}get root(){return e(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,s,i,e){var o,n=arguments.length,a=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var h=t.length-1;h>=0;h--)(o=t[h])&&(a=(n<3?o(a):n>3?o(s,i,a):o(s,i))||a);n>3&&a&&Object.defineProperty(s,i,a)})([n({triggerEvents:"mousedown"})],a.prototype,"onClickOutside",null),a.style=":host{display:block;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-button-multi-container .gux-dropdown-button button>*{vertical-align:middle}.gux-button-multi-container .gux-dropdown-button button gux-icon{width:16px;height:16px;margin-left:8px}";export{a as gux_button_multi_legacy}
1
+ import{r as t,c as s,h as i,g as e}from"./p-a085b143.js";import{t as o}from"./p-8d6a8fc1.js";import{O as n}from"./p-5ca81424.js";const a=class{constructor(i){t(this,i),this.open=s(this,"open",7),this.close=s(this,"close",7),this.moveFocusDelay=100,this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const s=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,s.includes(this.listElement)&&this.dropdownButton.focus();break;case"Tab":this.isOpen=!1;break;case"Enter":case"ArrowDown":t.preventDefault(),s.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.listElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}handleKeyup(t){const s=t.composedPath();switch(t.key){case" ":t.preventDefault(),s.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.listElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(){this.isOpen=!1}toggle(){this.disabled||(this.isOpen=!this.isOpen)}componentWillLoad(){o(this.root,{variant:this.accent})}render(){return i("gux-popup",{expanded:this.isOpen,disabled:this.disabled},i("div",{slot:"target",class:"gux-button-multi-container"},i("gux-button-slot-beta",{class:"gux-dropdown-button",accent:this.accent},i("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},i("span",null,this.text),i("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),i("gux-action-list-legacy",{slot:"popup",ref:t=>this.listElement=t},i("slot",null)))}get root(){return e(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,s,i,e){var o,n=arguments.length,a=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var h=t.length-1;h>=0;h--)(o=t[h])&&(a=(n<3?o(a):n>3?o(s,i,a):o(s,i))||a);n>3&&a&&Object.defineProperty(s,i,a)})([n({triggerEvents:"mousedown"})],a.prototype,"onClickOutside",null),a.style=":host{display:block;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-button-multi-container .gux-dropdown-button button>*{vertical-align:middle}.gux-button-multi-container .gux-dropdown-button button gux-icon{width:16px;height:16px;margin-left:8px}";export{a as gux_button_multi_legacy}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,d as a,h as n,g as e}from"./p-a085b143.js";import{t as s}from"./p-8d6a8fc1.js";const o=class{constructor(a){t(this,a),this.guxpaginationchange=i(this,"guxpaginationchange",7),this.layout="advanced",this.currentPage=1,this.totalItems=0,this.itemsPerPage=25}setPage(t){if(t<0)return void this.setPage(this.totalPages>0?1:0);const i=this.calculateTotalPages(this.totalItems,this.itemsPerPage);t>i?this.setPage(i):(this.currentPage=t,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}handleInternalitemsperpagechange(t){this.itemsPerPage=t.detail,this.setPage(1)}handleInternalcurrentpagechange(t){this.setPage(t.detail)}calculateTotalPages(t,i){return Math.ceil(t/i)}calculateCurrentPage(t,i){return Math.max(t>0?1:0,Math.min(i,t))}checkPaginationContainerWidthForLayout(){a((()=>{const t=this.root.shadowRoot.querySelector(".gux-pagination-container");this.displayedLayout=t.clientWidth<810?"simple":this.layout}))}componentWillLoad(){s(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(this.totalItems,this.itemsPerPage),this.currentPage=this.calculateCurrentPage(this.totalPages,this.currentPage)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-pagination-container"))}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkPaginationContainerWidthForLayout()))),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-pagination-container")),setTimeout((()=>{this.checkPaginationContainerWidthForLayout()}),500)}render(){return n("div",{class:"gux-pagination-container"},n("div",{class:"gux-pagination-info"},n("gux-pagination-item-counts-beta",{"total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage}),"advanced"===this.displayedLayout&&n("gux-pagination-items-per-page-beta",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),n("div",{class:"gux-pagination-change"},n("gux-pagination-buttons-beta",{layout:this.displayedLayout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return e(this)}};o.style=":host{display:block;border-top:1px solid #e2e6ee}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:space-between;height:40px;margin:12px 12px 0 12px}.gux-pagination-container .gux-pagination-info{display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:flex-start;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:1 1 auto;align-self:auto;order:0;margin-left:24px}.gux-pagination-container .gux-pagination-change:first-child{margin-left:0}";export{o as gux_pagination_beta}
@@ -1 +1 @@
1
- import{r as t,h as i,g as e}from"./p-a085b143.js";import{O as o}from"./p-4b7056b2.js";import{o as r,a}from"./p-e2bea786.js";import{p as n}from"./p-c10e41a9.js";import{t as s}from"./p-42454428.js";import{G as l,a as d}from"./p-afb54d23.js";import{h as u,G as p,v as h,g as x}from"./p-08b07a2b.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const g=class{constructor(i){t(this,i),this.computedLabelPosition="above",this.required=!0,this.hasError=!1}onMutation(){this.hasError=u(this.root)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=u(this.root),s(this.root,{variant:this.variant})}componentDidLoad(){this.updateHeight(this.textareaContainerElement,this.input,this.resize)}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){return i(d,{labelPosition:this.computedLabelPosition},i(l,{position:this.computedLabelPosition,required:this.required},i("slot",{name:"label",onSlotchange:()=>this.setLabel()})),i("div",{class:"gux-input-and-error-container"},i("div",{ref:t=>this.textareaContainerElement=t,class:{"gux-input":!0,[`gux-resize-${this.resize}`]:!0,"gux-disabled":this.disabled,"gux-input-error":this.hasError}},i("slot",{name:"input"})),i(p,{hasError:this.hasError},i("slot",{name:"error"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.resize}-${t}`}setInput(){this.input=this.root.querySelector('textarea[slot="input"]'),n(this.input),this.updateHeight(this.textareaContainerElement,this.input,this.resize),this.input.addEventListener("input",(()=>{this.updateHeight(this.textareaContainerElement,this.input,this.resize)})),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=r(this.input,(t=>{this.disabled=t})),this.requiredObserver=a(this.input,(t=>{this.required=t})),h(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=x(this.label,this.labelPosition)}updateHeight(t,i,e){"auto"===e&&t&&(t.dataset.replicatedValue=i.value,t.style.maxHeight=i.style.maxHeight)}get root(){return e(this)}};(function(t,i,e,o){var r,a=arguments.length,n=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(i,e,n):r(i,e))||n);a>3&&n&&Object.defineProperty(i,e,n)})([o({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-container{margin:16px 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(textarea){flex:1 1 auto;align-self:auto;order:0;font-family:inherit;color:#2e394c;resize:vertical;background-color:#f6f7f9;background-image:none;border:none;border-radius:4px;outline:none;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16);font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px;min-width:100%;max-width:100%;min-height:90px;padding:4px 12px;margin:0}::slotted(textarea)::placeholder{color:#596373;opacity:1}::slotted(textarea)[disabled]{opacity:0.5}::slotted(textarea)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{position:relative;display:block;border:1px solid #6b7585;border-radius:4px;outline:none}.gux-input-and-error-container .gux-input:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error{border-color:#ea0b0b}.gux-input-and-error-container .gux-input.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input.gux-resize-none ::slotted(textarea){resize:none}.gux-input-and-error-container .gux-input.gux-resize-auto{display:grid;overflow:hidden;word-break:normal;word-break:break-word;overflow-wrap:anywhere}.gux-input-and-error-container .gux-input.gux-resize-auto::after{grid-row-start:1;grid-row-end:2;grid-column-start:1;grid-column-end:2;white-space:pre-wrap;visibility:hidden;content:attr(data-replicated-value) ' ';min-width:100%;max-width:100%;min-height:90px;padding:4px 12px;margin:0}.gux-input-and-error-container .gux-input.gux-resize-auto ::slotted(textarea){grid-row-start:1;grid-row-end:2;grid-column-start:1;grid-column-end:2;overflow-x:hidden;resize:none}";export{g as gux_form_field_textarea}
1
+ import{r as t,h as i,g as e}from"./p-a085b143.js";import{O as o}from"./p-4b7056b2.js";import{o as r,a}from"./p-e2bea786.js";import{p as n}from"./p-c10e41a9.js";import{t as s}from"./p-8d6a8fc1.js";import{G as l,a as d}from"./p-afb54d23.js";import{h as u,G as p,v as h,g as x}from"./p-08b07a2b.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const g=class{constructor(i){t(this,i),this.computedLabelPosition="above",this.required=!0,this.hasError=!1}onMutation(){this.hasError=u(this.root)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=u(this.root),s(this.root,{variant:this.variant})}componentDidLoad(){this.updateHeight(this.textareaContainerElement,this.input,this.resize)}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){return i(d,{labelPosition:this.computedLabelPosition},i(l,{position:this.computedLabelPosition,required:this.required},i("slot",{name:"label",onSlotchange:()=>this.setLabel()})),i("div",{class:"gux-input-and-error-container"},i("div",{ref:t=>this.textareaContainerElement=t,class:{"gux-input":!0,[`gux-resize-${this.resize}`]:!0,"gux-disabled":this.disabled,"gux-input-error":this.hasError}},i("slot",{name:"input"})),i(p,{hasError:this.hasError},i("slot",{name:"error"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.resize}-${t}`}setInput(){this.input=this.root.querySelector('textarea[slot="input"]'),n(this.input),this.updateHeight(this.textareaContainerElement,this.input,this.resize),this.input.addEventListener("input",(()=>{this.updateHeight(this.textareaContainerElement,this.input,this.resize)})),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=r(this.input,(t=>{this.disabled=t})),this.requiredObserver=a(this.input,(t=>{this.required=t})),h(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=x(this.label,this.labelPosition)}updateHeight(t,i,e){"auto"===e&&t&&(t.dataset.replicatedValue=i.value,t.style.maxHeight=i.style.maxHeight)}get root(){return e(this)}};(function(t,i,e,o){var r,a=arguments.length,n=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(i,e,n):r(i,e))||n);a>3&&n&&Object.defineProperty(i,e,n)})([o({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-container{margin:16px 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(textarea){flex:1 1 auto;align-self:auto;order:0;font-family:inherit;color:#2e394c;resize:vertical;background-color:#f6f7f9;background-image:none;border:none;border-radius:4px;outline:none;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16);font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px;min-width:100%;max-width:100%;min-height:90px;padding:4px 12px;margin:0}::slotted(textarea)::placeholder{color:#596373;opacity:1}::slotted(textarea)[disabled]{opacity:0.5}::slotted(textarea)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{position:relative;display:block;border:1px solid #6b7585;border-radius:4px;outline:none}.gux-input-and-error-container .gux-input:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error{border-color:#ea0b0b}.gux-input-and-error-container .gux-input.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input.gux-resize-none ::slotted(textarea){resize:none}.gux-input-and-error-container .gux-input.gux-resize-auto{display:grid;overflow:hidden;word-break:normal;word-break:break-word;overflow-wrap:anywhere}.gux-input-and-error-container .gux-input.gux-resize-auto::after{grid-row-start:1;grid-row-end:2;grid-column-start:1;grid-column-end:2;white-space:pre-wrap;visibility:hidden;content:attr(data-replicated-value) ' ';min-width:100%;max-width:100%;min-height:90px;padding:4px 12px;margin:0}.gux-input-and-error-container .gux-input.gux-resize-auto ::slotted(textarea){grid-row-start:1;grid-row-end:2;grid-column-start:1;grid-column-end:2;overflow-x:hidden;resize:none}";export{g as gux_form_field_textarea}
@@ -1 +1 @@
1
- import{r as e,h as t,g as l}from"./p-a085b143.js";import{t as a}from"./p-42454428.js";let o=1;const x=class{constructor(t){e(this,t),this.position="above",this.id=this.generateId()}componentWillLoad(){a(this.root,{variant:this.position})}componentDidLoad(){const e=this.labeledComponent.querySelector("*");"function"==typeof e.componentOnReady&&"function"==typeof e.setLabelledBy?e.componentOnReady().then((()=>{e.setLabelledBy(this.id)})):e.setAttribute("aria-labelledby",this.id)}render(){return t("div",{class:`gux-text-label-container gux-${this.position}`},t("label",{class:"gux-label",id:this.id},t("slot",{name:"label"},this.label)),t("div",{class:"gux-labeled-component",ref:e=>this.labeledComponent=e},t("slot",null)))}generateId(){return"gux-text-label-"+o++}get root(){return l(this)}};x.style="gux-text-label-legacy .gux-label{margin-right:8px}gux-text-label-legacy .gux-text-label-container.gux-beside{display:flex;flex-direction:row;align-items:baseline}gux-text-label-legacy .gux-text-label-container.gux-beside .gux-labeled-component{flex:1 1 auto}.gux-text-label-dark-theme{color:#fdfdfd}.gux-dark-theme gux-text-label-legacy{color:#fdfdfd}gux-text-label-legacy.gux-dark-theme{color:#fdfdfd}.gux-text-label-light-theme{color:#2e394c}.gux-light-theme gux-text-label-legacy{color:#2e394c}gux-text-label-legacy.gux-light-theme{color:#2e394c}gux-text-label-legacy{color:#2e394c}";export{x as gux_text_label_legacy}
1
+ import{r as e,h as t,g as l}from"./p-a085b143.js";import{t as a}from"./p-8d6a8fc1.js";let o=1;const x=class{constructor(t){e(this,t),this.position="above",this.id=this.generateId()}componentWillLoad(){a(this.root,{variant:this.position})}componentDidLoad(){const e=this.labeledComponent.querySelector("*");"function"==typeof e.componentOnReady&&"function"==typeof e.setLabelledBy?e.componentOnReady().then((()=>{e.setLabelledBy(this.id)})):e.setAttribute("aria-labelledby",this.id)}render(){return t("div",{class:`gux-text-label-container gux-${this.position}`},t("label",{class:"gux-label",id:this.id},t("slot",{name:"label"},this.label)),t("div",{class:"gux-labeled-component",ref:e=>this.labeledComponent=e},t("slot",null)))}generateId(){return"gux-text-label-"+o++}get root(){return l(this)}};x.style="gux-text-label-legacy .gux-label{margin-right:8px}gux-text-label-legacy .gux-text-label-container.gux-beside{display:flex;flex-direction:row;align-items:baseline}gux-text-label-legacy .gux-text-label-container.gux-beside .gux-labeled-component{flex:1 1 auto}.gux-text-label-dark-theme{color:#fdfdfd}.gux-dark-theme gux-text-label-legacy{color:#fdfdfd}gux-text-label-legacy.gux-dark-theme{color:#fdfdfd}.gux-text-label-light-theme{color:#2e394c}.gux-light-theme gux-text-label-legacy{color:#2e394c}gux-text-label-legacy.gux-light-theme{color:#2e394c}gux-text-label-legacy{color:#2e394c}";export{x as gux_text_label_legacy}