@infineon/infineon-design-system-stencil 31.0.0--canary.1697.e5e5c4da838c535d0e5399b759dcee2325e38b03.0 → 31.0.0--canary.1697.d182a3c648fcdb68889698ab9252e421f923fb47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/dist/cjs/ifx-accordion_2.cjs.entry.js +1 -1
  2. package/dist/cjs/ifx-alert.cjs.entry.js +1 -1
  3. package/dist/cjs/ifx-badge.cjs.entry.js +1 -1
  4. package/dist/cjs/ifx-basic-table.cjs.entry.js +1 -1
  5. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +1 -1
  6. package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js +1 -1
  7. package/dist/cjs/ifx-breadcrumb.cjs.entry.js +1 -1
  8. package/dist/cjs/ifx-button.cjs.entry.js +1 -1
  9. package/dist/cjs/ifx-card-headline.cjs.entry.js +1 -1
  10. package/dist/cjs/ifx-card-image.cjs.entry.js +1 -1
  11. package/dist/cjs/ifx-card-links.cjs.entry.js +1 -1
  12. package/dist/cjs/ifx-card-overline.cjs.entry.js +1 -1
  13. package/dist/cjs/ifx-card-text.cjs.entry.js +1 -1
  14. package/dist/cjs/ifx-card.cjs.entry.js +1 -1
  15. package/dist/cjs/ifx-checkbox.cjs.entry.js +1 -1
  16. package/dist/cjs/ifx-chip_3.cjs.entry.js +1 -1
  17. package/dist/cjs/ifx-content-switcher-item.cjs.entry.js +1 -1
  18. package/dist/cjs/ifx-content-switcher.cjs.entry.js +1 -1
  19. package/dist/cjs/ifx-date-picker.cjs.entry.js +1 -1
  20. package/dist/cjs/ifx-dropdown-header.cjs.entry.js +1 -1
  21. package/dist/cjs/ifx-dropdown-item.cjs.entry.js +1 -1
  22. package/dist/cjs/ifx-dropdown-menu.cjs.entry.js +1 -1
  23. package/dist/cjs/ifx-dropdown-separator.cjs.entry.js +1 -1
  24. package/dist/cjs/ifx-dropdown-trigger-button.cjs.entry.js +1 -1
  25. package/dist/cjs/ifx-dropdown-trigger.cjs.entry.js +1 -1
  26. package/dist/cjs/ifx-dropdown.cjs.entry.js +1 -1
  27. package/dist/cjs/ifx-faq.cjs.entry.js +1 -1
  28. package/dist/cjs/ifx-filter-accordion.cjs.entry.js +1 -1
  29. package/dist/cjs/ifx-filter-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/ifx-filter-search.cjs.entry.js +1 -1
  31. package/dist/cjs/ifx-filter-type-group.cjs.entry.js +1 -1
  32. package/dist/cjs/ifx-footer-column.cjs.entry.js +1 -1
  33. package/dist/cjs/ifx-footer.cjs.entry.js +1 -1
  34. package/dist/cjs/ifx-icon-button.cjs.entry.js +1 -1
  35. package/dist/cjs/ifx-icon.cjs.entry.js +1 -1
  36. package/dist/cjs/ifx-icons-preview.cjs.entry.js +1 -1
  37. package/dist/cjs/ifx-link.cjs.entry.js +1 -1
  38. package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
  39. package/dist/cjs/ifx-list.cjs.entry.js +1 -1
  40. package/dist/cjs/ifx-modal.cjs.entry.js +1 -1
  41. package/dist/cjs/ifx-multiselect_2.cjs.entry.js +1 -1
  42. package/dist/cjs/ifx-navbar-item.cjs.entry.js +1 -1
  43. package/dist/cjs/ifx-navbar-profile.cjs.entry.js +1 -1
  44. package/dist/cjs/ifx-navbar.cjs.entry.js +1 -1
  45. package/dist/cjs/ifx-notification.cjs.entry.js +1 -1
  46. package/dist/cjs/ifx-number-indicator.cjs.entry.js +1 -1
  47. package/dist/cjs/ifx-overview-table.cjs.entry.js +1 -1
  48. package/dist/cjs/ifx-progress-bar.cjs.entry.js +1 -1
  49. package/dist/cjs/ifx-radio-button.cjs.entry.js +1 -1
  50. package/dist/cjs/ifx-search-bar.cjs.entry.js +1 -1
  51. package/dist/cjs/ifx-search-field.cjs.entry.js +1 -1
  52. package/dist/cjs/ifx-segment.cjs.entry.js +1 -1
  53. package/dist/cjs/ifx-segmented-control.cjs.entry.js +1 -1
  54. package/dist/cjs/ifx-select.cjs.entry.js +1 -1
  55. package/dist/cjs/ifx-set-filter.cjs.entry.js +1 -1
  56. package/dist/cjs/ifx-sidebar-item.cjs.entry.js +1 -1
  57. package/dist/cjs/ifx-sidebar-title.cjs.entry.js +1 -1
  58. package/dist/cjs/ifx-sidebar.cjs.entry.js +1 -1
  59. package/dist/cjs/ifx-slider.cjs.entry.js +1 -1
  60. package/dist/cjs/ifx-spinner.cjs.entry.js +1 -1
  61. package/dist/cjs/ifx-status.cjs.entry.js +1 -1
  62. package/dist/cjs/ifx-step.cjs.entry.js +1 -1
  63. package/dist/cjs/ifx-stepper.cjs.entry.js +1 -1
  64. package/dist/cjs/ifx-switch.cjs.entry.js +1 -1
  65. package/dist/cjs/ifx-tab.cjs.entry.js +1 -1
  66. package/dist/cjs/ifx-table.cjs.entry.js +2 -2
  67. package/dist/cjs/ifx-table.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ifx-tabs.cjs.entry.js +1 -1
  69. package/dist/cjs/ifx-tag.cjs.entry.js +1 -1
  70. package/dist/cjs/ifx-textarea.cjs.entry.js +1 -1
  71. package/dist/cjs/ifx-tooltip.cjs.entry.js +1 -1
  72. package/dist/cjs/{index-e489135e.js → index-b523cbdd.js} +34 -34
  73. package/dist/cjs/index-b523cbdd.js.map +1 -0
  74. package/dist/cjs/infineon-design-system-stencil.cjs.js +2 -2
  75. package/dist/cjs/infineon-design-system-stencil.cjs.js.map +1 -1
  76. package/dist/cjs/loader.cjs.js +1 -1
  77. package/dist/collection/collection-manifest.json +1 -1
  78. package/dist/collection/components/pagination/pagination.stories.js +2 -0
  79. package/dist/collection/components/pagination/pagination.stories.js.map +1 -1
  80. package/dist/collection/components/table-advanced-version/table.js +1 -1
  81. package/dist/collection/components/table-advanced-version/table.js.map +1 -1
  82. package/dist/components/ifx-accordion-item.js +1 -1
  83. package/dist/components/ifx-accordion.js +1 -1
  84. package/dist/components/ifx-alert.js +2 -2
  85. package/dist/components/ifx-badge.js +1 -1
  86. package/dist/components/ifx-basic-table.js +1 -1
  87. package/dist/components/ifx-breadcrumb-item-label.js +2 -2
  88. package/dist/components/ifx-breadcrumb-item.js +1 -1
  89. package/dist/components/ifx-breadcrumb.js +1 -1
  90. package/dist/components/ifx-button.js +1 -1
  91. package/dist/components/ifx-card-headline.js +1 -1
  92. package/dist/components/ifx-card-image.js +1 -1
  93. package/dist/components/ifx-card-links.js +1 -1
  94. package/dist/components/ifx-card-overline.js +1 -1
  95. package/dist/components/ifx-card-text.js +1 -1
  96. package/dist/components/ifx-card.js +1 -1
  97. package/dist/components/ifx-checkbox.js +1 -1
  98. package/dist/components/ifx-chip-item.js +1 -1
  99. package/dist/components/ifx-chip.js +1 -1
  100. package/dist/components/ifx-content-switcher-item.js +1 -1
  101. package/dist/components/ifx-content-switcher.js +1 -1
  102. package/dist/components/ifx-date-picker.js +2 -2
  103. package/dist/components/ifx-dropdown-header.js +1 -1
  104. package/dist/components/ifx-dropdown-item.js +2 -2
  105. package/dist/components/ifx-dropdown-menu.js +1 -1
  106. package/dist/components/ifx-dropdown-separator.js +1 -1
  107. package/dist/components/ifx-dropdown-trigger-button.js +3 -3
  108. package/dist/components/ifx-dropdown-trigger.js +1 -1
  109. package/dist/components/ifx-dropdown.js +1 -1
  110. package/dist/components/ifx-faq.js +4 -4
  111. package/dist/components/ifx-filter-accordion.js +3 -3
  112. package/dist/components/ifx-filter-bar.js +3 -3
  113. package/dist/components/ifx-filter-search.js +3 -3
  114. package/dist/components/ifx-filter-type-group.js +1 -1
  115. package/dist/components/ifx-footer-column.js +1 -1
  116. package/dist/components/ifx-footer.js +1 -1
  117. package/dist/components/ifx-icon-button.js +1 -1
  118. package/dist/components/ifx-icon.js +1 -1
  119. package/dist/components/ifx-icons-preview.js +2 -2
  120. package/dist/components/ifx-link.js +1 -1
  121. package/dist/components/ifx-list-entry.js +4 -4
  122. package/dist/components/ifx-list.js +3 -3
  123. package/dist/components/ifx-modal.js +3 -3
  124. package/dist/components/ifx-multiselect.js +1 -1
  125. package/dist/components/ifx-navbar-item.js +2 -2
  126. package/dist/components/ifx-navbar-profile.js +1 -1
  127. package/dist/components/ifx-navbar.js +2 -2
  128. package/dist/components/ifx-notification.js +3 -3
  129. package/dist/components/ifx-number-indicator.js +1 -1
  130. package/dist/components/ifx-overview-table.js +4 -4
  131. package/dist/components/ifx-pagination.js +1 -1
  132. package/dist/components/ifx-progress-bar.js +1 -1
  133. package/dist/components/ifx-radio-button.js +1 -1
  134. package/dist/components/ifx-search-bar.js +3 -3
  135. package/dist/components/ifx-search-field.js +1 -1
  136. package/dist/components/ifx-segment.js +2 -2
  137. package/dist/components/ifx-segmented-control.js +2 -2
  138. package/dist/components/ifx-select.js +1 -1
  139. package/dist/components/ifx-set-filter.js +7 -7
  140. package/dist/components/ifx-sidebar-item.js +3 -3
  141. package/dist/components/ifx-sidebar-title.js +1 -1
  142. package/dist/components/ifx-sidebar.js +1 -1
  143. package/dist/components/ifx-slider.js +2 -2
  144. package/dist/components/ifx-spinner.js +1 -1
  145. package/dist/components/ifx-status.js +1 -1
  146. package/dist/components/ifx-step.js +2 -2
  147. package/dist/components/ifx-stepper.js +1 -1
  148. package/dist/components/ifx-switch.js +1 -1
  149. package/dist/components/ifx-tab.js +1 -1
  150. package/dist/components/ifx-table.js +11 -11
  151. package/dist/components/ifx-table.js.map +1 -1
  152. package/dist/components/ifx-tabs.js +2 -2
  153. package/dist/components/ifx-tag.js +2 -2
  154. package/dist/components/ifx-text-field.js +1 -1
  155. package/dist/components/ifx-textarea.js +1 -1
  156. package/dist/components/ifx-tooltip.js +2 -2
  157. package/dist/components/index.js +1 -1
  158. package/dist/components/{p-c194f64d.js → p-1adec526.js} +2 -2
  159. package/dist/components/{p-c194f64d.js.map → p-1adec526.js.map} +1 -1
  160. package/dist/components/{p-77dbb05d.js → p-2e55c840.js} +3 -3
  161. package/dist/components/{p-77dbb05d.js.map → p-2e55c840.js.map} +1 -1
  162. package/dist/components/{p-529e994b.js → p-2edd6903.js} +4 -4
  163. package/dist/components/{p-529e994b.js.map → p-2edd6903.js.map} +1 -1
  164. package/dist/components/{p-af1f8464.js → p-31ddb89c.js} +2 -2
  165. package/dist/components/{p-af1f8464.js.map → p-31ddb89c.js.map} +1 -1
  166. package/dist/components/{p-b2de2441.js → p-399eb409.js} +3 -3
  167. package/dist/components/{p-b2de2441.js.map → p-399eb409.js.map} +1 -1
  168. package/dist/components/{p-ff4327c2.js → p-3fa66ea9.js} +2 -2
  169. package/dist/components/{p-ff4327c2.js.map → p-3fa66ea9.js.map} +1 -1
  170. package/dist/components/{p-eea28614.js → p-407dffda.js} +5 -5
  171. package/dist/components/{p-eea28614.js.map → p-407dffda.js.map} +1 -1
  172. package/dist/components/{p-3cbe9ffe.js → p-424dd438.js} +3 -3
  173. package/dist/components/{p-3cbe9ffe.js.map → p-424dd438.js.map} +1 -1
  174. package/dist/components/{p-35713bcf.js → p-4c2d98dd.js} +12 -12
  175. package/dist/components/p-4c2d98dd.js.map +1 -0
  176. package/dist/components/{p-280ced72.js → p-652f839b.js} +4 -4
  177. package/dist/components/{p-280ced72.js.map → p-652f839b.js.map} +1 -1
  178. package/dist/components/{p-1ab9570f.js → p-6c197b25.js} +3 -3
  179. package/dist/components/{p-1ab9570f.js.map → p-6c197b25.js.map} +1 -1
  180. package/dist/components/{p-b901072e.js → p-a8b578e6.js} +5 -5
  181. package/dist/components/{p-b901072e.js.map → p-a8b578e6.js.map} +1 -1
  182. package/dist/components/{p-920ceb71.js → p-b2ba97b3.js} +2 -2
  183. package/dist/components/{p-920ceb71.js.map → p-b2ba97b3.js.map} +1 -1
  184. package/dist/components/{p-17926343.js → p-bb32334f.js} +2 -2
  185. package/dist/components/{p-17926343.js.map → p-bb32334f.js.map} +1 -1
  186. package/dist/components/{p-eab00c46.js → p-c202aba3.js} +3 -3
  187. package/dist/components/{p-eab00c46.js.map → p-c202aba3.js.map} +1 -1
  188. package/dist/components/{p-eee401ca.js → p-d5ef6c0c.js} +2 -2
  189. package/dist/components/{p-eee401ca.js.map → p-d5ef6c0c.js.map} +1 -1
  190. package/dist/components/{p-3eb62a9b.js → p-e5158972.js} +3 -3
  191. package/dist/components/{p-3eb62a9b.js.map → p-e5158972.js.map} +1 -1
  192. package/dist/components/{p-28238f7f.js → p-e6c8757c.js} +2 -2
  193. package/dist/components/{p-28238f7f.js.map → p-e6c8757c.js.map} +1 -1
  194. package/dist/esm/ifx-accordion_2.entry.js +1 -1
  195. package/dist/esm/ifx-alert.entry.js +1 -1
  196. package/dist/esm/ifx-badge.entry.js +1 -1
  197. package/dist/esm/ifx-basic-table.entry.js +1 -1
  198. package/dist/esm/ifx-breadcrumb-item-label.entry.js +1 -1
  199. package/dist/esm/ifx-breadcrumb-item.entry.js +1 -1
  200. package/dist/esm/ifx-breadcrumb.entry.js +1 -1
  201. package/dist/esm/ifx-button.entry.js +1 -1
  202. package/dist/esm/ifx-card-headline.entry.js +1 -1
  203. package/dist/esm/ifx-card-image.entry.js +1 -1
  204. package/dist/esm/ifx-card-links.entry.js +1 -1
  205. package/dist/esm/ifx-card-overline.entry.js +1 -1
  206. package/dist/esm/ifx-card-text.entry.js +1 -1
  207. package/dist/esm/ifx-card.entry.js +1 -1
  208. package/dist/esm/ifx-checkbox.entry.js +1 -1
  209. package/dist/esm/ifx-chip_3.entry.js +1 -1
  210. package/dist/esm/ifx-content-switcher-item.entry.js +1 -1
  211. package/dist/esm/ifx-content-switcher.entry.js +1 -1
  212. package/dist/esm/ifx-date-picker.entry.js +1 -1
  213. package/dist/esm/ifx-dropdown-header.entry.js +1 -1
  214. package/dist/esm/ifx-dropdown-item.entry.js +1 -1
  215. package/dist/esm/ifx-dropdown-menu.entry.js +1 -1
  216. package/dist/esm/ifx-dropdown-separator.entry.js +1 -1
  217. package/dist/esm/ifx-dropdown-trigger-button.entry.js +1 -1
  218. package/dist/esm/ifx-dropdown-trigger.entry.js +1 -1
  219. package/dist/esm/ifx-dropdown.entry.js +1 -1
  220. package/dist/esm/ifx-faq.entry.js +1 -1
  221. package/dist/esm/ifx-filter-accordion.entry.js +1 -1
  222. package/dist/esm/ifx-filter-bar.entry.js +1 -1
  223. package/dist/esm/ifx-filter-search.entry.js +1 -1
  224. package/dist/esm/ifx-filter-type-group.entry.js +1 -1
  225. package/dist/esm/ifx-footer-column.entry.js +1 -1
  226. package/dist/esm/ifx-footer.entry.js +1 -1
  227. package/dist/esm/ifx-icon-button.entry.js +1 -1
  228. package/dist/esm/ifx-icon.entry.js +1 -1
  229. package/dist/esm/ifx-icons-preview.entry.js +1 -1
  230. package/dist/esm/ifx-link.entry.js +1 -1
  231. package/dist/esm/ifx-list-entry.entry.js +1 -1
  232. package/dist/esm/ifx-list.entry.js +1 -1
  233. package/dist/esm/ifx-modal.entry.js +1 -1
  234. package/dist/esm/ifx-multiselect_2.entry.js +1 -1
  235. package/dist/esm/ifx-navbar-item.entry.js +1 -1
  236. package/dist/esm/ifx-navbar-profile.entry.js +1 -1
  237. package/dist/esm/ifx-navbar.entry.js +1 -1
  238. package/dist/esm/ifx-notification.entry.js +1 -1
  239. package/dist/esm/ifx-number-indicator.entry.js +1 -1
  240. package/dist/esm/ifx-overview-table.entry.js +1 -1
  241. package/dist/esm/ifx-progress-bar.entry.js +1 -1
  242. package/dist/esm/ifx-radio-button.entry.js +1 -1
  243. package/dist/esm/ifx-search-bar.entry.js +1 -1
  244. package/dist/esm/ifx-search-field.entry.js +1 -1
  245. package/dist/esm/ifx-segment.entry.js +1 -1
  246. package/dist/esm/ifx-segmented-control.entry.js +1 -1
  247. package/dist/esm/ifx-select.entry.js +1 -1
  248. package/dist/esm/ifx-set-filter.entry.js +1 -1
  249. package/dist/esm/ifx-sidebar-item.entry.js +1 -1
  250. package/dist/esm/ifx-sidebar-title.entry.js +1 -1
  251. package/dist/esm/ifx-sidebar.entry.js +1 -1
  252. package/dist/esm/ifx-slider.entry.js +1 -1
  253. package/dist/esm/ifx-spinner.entry.js +1 -1
  254. package/dist/esm/ifx-status.entry.js +1 -1
  255. package/dist/esm/ifx-step.entry.js +1 -1
  256. package/dist/esm/ifx-stepper.entry.js +1 -1
  257. package/dist/esm/ifx-switch.entry.js +1 -1
  258. package/dist/esm/ifx-tab.entry.js +1 -1
  259. package/dist/esm/ifx-table.entry.js +2 -2
  260. package/dist/esm/ifx-table.entry.js.map +1 -1
  261. package/dist/esm/ifx-tabs.entry.js +1 -1
  262. package/dist/esm/ifx-tag.entry.js +1 -1
  263. package/dist/esm/ifx-textarea.entry.js +1 -1
  264. package/dist/esm/ifx-tooltip.entry.js +1 -1
  265. package/dist/esm/{index-12dad3f6.js → index-2a35a1a8.js} +34 -34
  266. package/dist/esm/index-2a35a1a8.js.map +1 -0
  267. package/dist/esm/infineon-design-system-stencil.js +3 -3
  268. package/dist/esm/infineon-design-system-stencil.js.map +1 -1
  269. package/dist/esm/loader.js +2 -2
  270. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
  271. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
  272. package/dist/infineon-design-system-stencil/{p-e7e87a4a.entry.js → p-031a791b.entry.js} +2 -2
  273. package/dist/infineon-design-system-stencil/{p-14ef505d.entry.js → p-09400469.entry.js} +2 -2
  274. package/dist/infineon-design-system-stencil/{p-095df841.entry.js → p-09eac6b1.entry.js} +2 -2
  275. package/dist/infineon-design-system-stencil/{p-11580775.entry.js → p-0c964a54.entry.js} +2 -2
  276. package/dist/infineon-design-system-stencil/{p-accaa79e.entry.js → p-0de42f0b.entry.js} +2 -2
  277. package/dist/infineon-design-system-stencil/{p-0b58a27a.entry.js → p-14d61182.entry.js} +2 -2
  278. package/dist/infineon-design-system-stencil/{p-89651a48.entry.js → p-1a6210fe.entry.js} +2 -2
  279. package/dist/infineon-design-system-stencil/{p-1d2f0317.entry.js → p-26144d98.entry.js} +2 -2
  280. package/dist/infineon-design-system-stencil/{p-f36ba7ae.entry.js → p-291f3357.entry.js} +2 -2
  281. package/dist/infineon-design-system-stencil/{p-1cf0cd6c.entry.js → p-29da8380.entry.js} +2 -2
  282. package/dist/infineon-design-system-stencil/{p-ff6f111d.entry.js → p-2b217402.entry.js} +2 -2
  283. package/dist/infineon-design-system-stencil/{p-77fbff19.entry.js → p-2cd5c632.entry.js} +2 -2
  284. package/dist/infineon-design-system-stencil/{p-18490394.entry.js → p-2de97ed2.entry.js} +2 -2
  285. package/dist/infineon-design-system-stencil/{p-9adea907.entry.js → p-2fb60082.entry.js} +2 -2
  286. package/dist/infineon-design-system-stencil/{p-5916cb5c.entry.js → p-33e9584d.entry.js} +2 -2
  287. package/dist/infineon-design-system-stencil/{p-6bbc85ef.entry.js → p-3ae5fea7.entry.js} +2 -2
  288. package/dist/infineon-design-system-stencil/{p-618c5232.entry.js → p-3b5c60c9.entry.js} +2 -2
  289. package/dist/infineon-design-system-stencil/{p-dd5b5ec5.entry.js → p-40ae721a.entry.js} +2 -2
  290. package/dist/infineon-design-system-stencil/{p-9b61ae4f.entry.js → p-40b905bf.entry.js} +2 -2
  291. package/dist/infineon-design-system-stencil/{p-892ef42f.entry.js → p-46d67819.entry.js} +2 -2
  292. package/dist/infineon-design-system-stencil/{p-b27a47fe.entry.js → p-5371a750.entry.js} +2 -2
  293. package/dist/infineon-design-system-stencil/{p-452b2e42.entry.js → p-57313f08.entry.js} +2 -2
  294. package/dist/infineon-design-system-stencil/{p-d9553320.entry.js → p-5aa0c5e5.entry.js} +2 -2
  295. package/dist/infineon-design-system-stencil/{p-82992baa.entry.js → p-5bbac15b.entry.js} +2 -2
  296. package/dist/infineon-design-system-stencil/{p-4fdb13ec.entry.js → p-5f95dd76.entry.js} +2 -2
  297. package/dist/infineon-design-system-stencil/{p-c5a54d87.entry.js → p-60314d07.entry.js} +2 -2
  298. package/dist/infineon-design-system-stencil/{p-3ddd67ce.entry.js → p-6103d5a7.entry.js} +2 -2
  299. package/dist/infineon-design-system-stencil/{p-1ce3acf6.entry.js → p-644dc26e.entry.js} +2 -2
  300. package/dist/infineon-design-system-stencil/{p-da6efe6b.entry.js → p-66bff0f9.entry.js} +2 -2
  301. package/dist/infineon-design-system-stencil/{p-58a4d36f.entry.js → p-681dc4d1.entry.js} +2 -2
  302. package/dist/infineon-design-system-stencil/{p-e52d0b1a.entry.js → p-68347d1f.entry.js} +2 -2
  303. package/dist/infineon-design-system-stencil/{p-0d620279.entry.js → p-6c834216.entry.js} +2 -2
  304. package/dist/infineon-design-system-stencil/{p-49939261.entry.js → p-6c8921dd.entry.js} +2 -2
  305. package/dist/infineon-design-system-stencil/{p-7a85d6bb.entry.js → p-6e65965c.entry.js} +2 -2
  306. package/dist/infineon-design-system-stencil/{p-7dbec7ce.entry.js → p-715599c9.entry.js} +2 -2
  307. package/dist/infineon-design-system-stencil/{p-6d55468a.entry.js → p-7691d1db.entry.js} +2 -2
  308. package/dist/infineon-design-system-stencil/{p-26dfd238.entry.js → p-76b97a20.entry.js} +2 -2
  309. package/dist/infineon-design-system-stencil/{p-83d10d57.entry.js → p-791940b7.entry.js} +2 -2
  310. package/dist/infineon-design-system-stencil/{p-abb7c842.entry.js → p-7bab0964.entry.js} +2 -2
  311. package/dist/infineon-design-system-stencil/{p-45cd79e4.entry.js → p-7e9e6604.entry.js} +2 -2
  312. package/dist/infineon-design-system-stencil/{p-16390b05.entry.js → p-89725c02.entry.js} +2 -2
  313. package/dist/infineon-design-system-stencil/{p-a3c2cbe0.entry.js → p-8bfd9364.entry.js} +2 -2
  314. package/dist/infineon-design-system-stencil/{p-d93f128c.entry.js → p-8f0f043f.entry.js} +2 -2
  315. package/dist/infineon-design-system-stencil/p-8f2b1db0.js +3 -0
  316. package/dist/infineon-design-system-stencil/p-8f2b1db0.js.map +1 -0
  317. package/dist/infineon-design-system-stencil/{p-4cfae291.entry.js → p-906e69e3.entry.js} +2 -2
  318. package/dist/infineon-design-system-stencil/{p-4baf201d.entry.js → p-96c3f39e.entry.js} +2 -2
  319. package/dist/infineon-design-system-stencil/{p-85b61d98.entry.js → p-aa9d4504.entry.js} +2 -2
  320. package/dist/infineon-design-system-stencil/{p-0238f780.entry.js → p-b0650996.entry.js} +2 -2
  321. package/dist/infineon-design-system-stencil/{p-23c0b40c.entry.js → p-b20310e5.entry.js} +2 -2
  322. package/dist/infineon-design-system-stencil/{p-2bae45cd.entry.js → p-b9d7b0f6.entry.js} +2 -2
  323. package/dist/infineon-design-system-stencil/{p-1a4d8854.entry.js → p-bd9b3172.entry.js} +2 -2
  324. package/dist/infineon-design-system-stencil/{p-0acaa8e4.entry.js → p-c0bd4e9c.entry.js} +2 -2
  325. package/dist/infineon-design-system-stencil/{p-5f5ccef2.entry.js → p-c7e7d313.entry.js} +2 -2
  326. package/dist/infineon-design-system-stencil/{p-63f09820.entry.js → p-c976ed72.entry.js} +2 -2
  327. package/dist/infineon-design-system-stencil/{p-0179cb3c.entry.js → p-ca387e89.entry.js} +2 -2
  328. package/dist/infineon-design-system-stencil/{p-fdbb53b3.entry.js → p-cd8caf51.entry.js} +2 -2
  329. package/dist/infineon-design-system-stencil/{p-9a76c9c5.entry.js → p-d254d50b.entry.js} +2 -2
  330. package/dist/infineon-design-system-stencil/{p-cb2bfd10.entry.js → p-d398f16c.entry.js} +2 -2
  331. package/dist/infineon-design-system-stencil/{p-385a8dea.entry.js → p-dbce355c.entry.js} +2 -2
  332. package/dist/infineon-design-system-stencil/{p-87d2230d.entry.js → p-dccb902a.entry.js} +2 -2
  333. package/dist/infineon-design-system-stencil/{p-87d2230d.entry.js.map → p-dccb902a.entry.js.map} +1 -1
  334. package/dist/infineon-design-system-stencil/{p-9d99d0f2.entry.js → p-debe0f5d.entry.js} +2 -2
  335. package/dist/infineon-design-system-stencil/p-e5d5f0b8.entry.js +2 -0
  336. package/dist/infineon-design-system-stencil/{p-cde478c3.entry.js → p-ef3e0104.entry.js} +2 -2
  337. package/dist/infineon-design-system-stencil/{p-5729d495.entry.js → p-f0c99792.entry.js} +2 -2
  338. package/dist/infineon-design-system-stencil/{p-83ef99a2.entry.js → p-f43caa48.entry.js} +2 -2
  339. package/dist/infineon-design-system-stencil/{p-1548797e.entry.js → p-f617dd70.entry.js} +2 -2
  340. package/dist/infineon-design-system-stencil/{p-cb5f03cc.entry.js → p-f71d9786.entry.js} +2 -2
  341. package/dist/infineon-design-system-stencil/{p-f4d00e57.entry.js → p-fa4471a6.entry.js} +2 -2
  342. package/dist/infineon-design-system-stencil/{p-52b61a69.entry.js → p-fa84b7aa.entry.js} +2 -2
  343. package/dist/infineon-design-system-stencil/{p-a9c13b65.entry.js → p-fe072767.entry.js} +2 -2
  344. package/dist/infineon-design-system-stencil/{p-6777690c.entry.js → p-ffa03038.entry.js} +2 -2
  345. package/dist/types/components/pagination/pagination.stories.d.ts +1 -0
  346. package/package.json +1 -1
  347. package/dist/cjs/index-e489135e.js.map +0 -1
  348. package/dist/components/p-35713bcf.js.map +0 -1
  349. package/dist/esm/index-12dad3f6.js.map +0 -1
  350. package/dist/infineon-design-system-stencil/p-04cb8ce1.entry.js +0 -2
  351. package/dist/infineon-design-system-stencil/p-c63974da.js +0 -3
  352. package/dist/infineon-design-system-stencil/p-c63974da.js.map +0 -1
  353. /package/dist/infineon-design-system-stencil/{p-e7e87a4a.entry.js.map → p-031a791b.entry.js.map} +0 -0
  354. /package/dist/infineon-design-system-stencil/{p-14ef505d.entry.js.map → p-09400469.entry.js.map} +0 -0
  355. /package/dist/infineon-design-system-stencil/{p-095df841.entry.js.map → p-09eac6b1.entry.js.map} +0 -0
  356. /package/dist/infineon-design-system-stencil/{p-11580775.entry.js.map → p-0c964a54.entry.js.map} +0 -0
  357. /package/dist/infineon-design-system-stencil/{p-accaa79e.entry.js.map → p-0de42f0b.entry.js.map} +0 -0
  358. /package/dist/infineon-design-system-stencil/{p-0b58a27a.entry.js.map → p-14d61182.entry.js.map} +0 -0
  359. /package/dist/infineon-design-system-stencil/{p-89651a48.entry.js.map → p-1a6210fe.entry.js.map} +0 -0
  360. /package/dist/infineon-design-system-stencil/{p-1d2f0317.entry.js.map → p-26144d98.entry.js.map} +0 -0
  361. /package/dist/infineon-design-system-stencil/{p-f36ba7ae.entry.js.map → p-291f3357.entry.js.map} +0 -0
  362. /package/dist/infineon-design-system-stencil/{p-1cf0cd6c.entry.js.map → p-29da8380.entry.js.map} +0 -0
  363. /package/dist/infineon-design-system-stencil/{p-ff6f111d.entry.js.map → p-2b217402.entry.js.map} +0 -0
  364. /package/dist/infineon-design-system-stencil/{p-77fbff19.entry.js.map → p-2cd5c632.entry.js.map} +0 -0
  365. /package/dist/infineon-design-system-stencil/{p-18490394.entry.js.map → p-2de97ed2.entry.js.map} +0 -0
  366. /package/dist/infineon-design-system-stencil/{p-9adea907.entry.js.map → p-2fb60082.entry.js.map} +0 -0
  367. /package/dist/infineon-design-system-stencil/{p-5916cb5c.entry.js.map → p-33e9584d.entry.js.map} +0 -0
  368. /package/dist/infineon-design-system-stencil/{p-6bbc85ef.entry.js.map → p-3ae5fea7.entry.js.map} +0 -0
  369. /package/dist/infineon-design-system-stencil/{p-618c5232.entry.js.map → p-3b5c60c9.entry.js.map} +0 -0
  370. /package/dist/infineon-design-system-stencil/{p-dd5b5ec5.entry.js.map → p-40ae721a.entry.js.map} +0 -0
  371. /package/dist/infineon-design-system-stencil/{p-9b61ae4f.entry.js.map → p-40b905bf.entry.js.map} +0 -0
  372. /package/dist/infineon-design-system-stencil/{p-892ef42f.entry.js.map → p-46d67819.entry.js.map} +0 -0
  373. /package/dist/infineon-design-system-stencil/{p-b27a47fe.entry.js.map → p-5371a750.entry.js.map} +0 -0
  374. /package/dist/infineon-design-system-stencil/{p-452b2e42.entry.js.map → p-57313f08.entry.js.map} +0 -0
  375. /package/dist/infineon-design-system-stencil/{p-d9553320.entry.js.map → p-5aa0c5e5.entry.js.map} +0 -0
  376. /package/dist/infineon-design-system-stencil/{p-82992baa.entry.js.map → p-5bbac15b.entry.js.map} +0 -0
  377. /package/dist/infineon-design-system-stencil/{p-4fdb13ec.entry.js.map → p-5f95dd76.entry.js.map} +0 -0
  378. /package/dist/infineon-design-system-stencil/{p-c5a54d87.entry.js.map → p-60314d07.entry.js.map} +0 -0
  379. /package/dist/infineon-design-system-stencil/{p-3ddd67ce.entry.js.map → p-6103d5a7.entry.js.map} +0 -0
  380. /package/dist/infineon-design-system-stencil/{p-1ce3acf6.entry.js.map → p-644dc26e.entry.js.map} +0 -0
  381. /package/dist/infineon-design-system-stencil/{p-da6efe6b.entry.js.map → p-66bff0f9.entry.js.map} +0 -0
  382. /package/dist/infineon-design-system-stencil/{p-58a4d36f.entry.js.map → p-681dc4d1.entry.js.map} +0 -0
  383. /package/dist/infineon-design-system-stencil/{p-e52d0b1a.entry.js.map → p-68347d1f.entry.js.map} +0 -0
  384. /package/dist/infineon-design-system-stencil/{p-0d620279.entry.js.map → p-6c834216.entry.js.map} +0 -0
  385. /package/dist/infineon-design-system-stencil/{p-49939261.entry.js.map → p-6c8921dd.entry.js.map} +0 -0
  386. /package/dist/infineon-design-system-stencil/{p-7a85d6bb.entry.js.map → p-6e65965c.entry.js.map} +0 -0
  387. /package/dist/infineon-design-system-stencil/{p-7dbec7ce.entry.js.map → p-715599c9.entry.js.map} +0 -0
  388. /package/dist/infineon-design-system-stencil/{p-6d55468a.entry.js.map → p-7691d1db.entry.js.map} +0 -0
  389. /package/dist/infineon-design-system-stencil/{p-26dfd238.entry.js.map → p-76b97a20.entry.js.map} +0 -0
  390. /package/dist/infineon-design-system-stencil/{p-83d10d57.entry.js.map → p-791940b7.entry.js.map} +0 -0
  391. /package/dist/infineon-design-system-stencil/{p-abb7c842.entry.js.map → p-7bab0964.entry.js.map} +0 -0
  392. /package/dist/infineon-design-system-stencil/{p-45cd79e4.entry.js.map → p-7e9e6604.entry.js.map} +0 -0
  393. /package/dist/infineon-design-system-stencil/{p-16390b05.entry.js.map → p-89725c02.entry.js.map} +0 -0
  394. /package/dist/infineon-design-system-stencil/{p-a3c2cbe0.entry.js.map → p-8bfd9364.entry.js.map} +0 -0
  395. /package/dist/infineon-design-system-stencil/{p-d93f128c.entry.js.map → p-8f0f043f.entry.js.map} +0 -0
  396. /package/dist/infineon-design-system-stencil/{p-4cfae291.entry.js.map → p-906e69e3.entry.js.map} +0 -0
  397. /package/dist/infineon-design-system-stencil/{p-4baf201d.entry.js.map → p-96c3f39e.entry.js.map} +0 -0
  398. /package/dist/infineon-design-system-stencil/{p-85b61d98.entry.js.map → p-aa9d4504.entry.js.map} +0 -0
  399. /package/dist/infineon-design-system-stencil/{p-0238f780.entry.js.map → p-b0650996.entry.js.map} +0 -0
  400. /package/dist/infineon-design-system-stencil/{p-23c0b40c.entry.js.map → p-b20310e5.entry.js.map} +0 -0
  401. /package/dist/infineon-design-system-stencil/{p-2bae45cd.entry.js.map → p-b9d7b0f6.entry.js.map} +0 -0
  402. /package/dist/infineon-design-system-stencil/{p-1a4d8854.entry.js.map → p-bd9b3172.entry.js.map} +0 -0
  403. /package/dist/infineon-design-system-stencil/{p-0acaa8e4.entry.js.map → p-c0bd4e9c.entry.js.map} +0 -0
  404. /package/dist/infineon-design-system-stencil/{p-5f5ccef2.entry.js.map → p-c7e7d313.entry.js.map} +0 -0
  405. /package/dist/infineon-design-system-stencil/{p-63f09820.entry.js.map → p-c976ed72.entry.js.map} +0 -0
  406. /package/dist/infineon-design-system-stencil/{p-0179cb3c.entry.js.map → p-ca387e89.entry.js.map} +0 -0
  407. /package/dist/infineon-design-system-stencil/{p-fdbb53b3.entry.js.map → p-cd8caf51.entry.js.map} +0 -0
  408. /package/dist/infineon-design-system-stencil/{p-9a76c9c5.entry.js.map → p-d254d50b.entry.js.map} +0 -0
  409. /package/dist/infineon-design-system-stencil/{p-cb2bfd10.entry.js.map → p-d398f16c.entry.js.map} +0 -0
  410. /package/dist/infineon-design-system-stencil/{p-385a8dea.entry.js.map → p-dbce355c.entry.js.map} +0 -0
  411. /package/dist/infineon-design-system-stencil/{p-9d99d0f2.entry.js.map → p-debe0f5d.entry.js.map} +0 -0
  412. /package/dist/infineon-design-system-stencil/{p-04cb8ce1.entry.js.map → p-e5d5f0b8.entry.js.map} +0 -0
  413. /package/dist/infineon-design-system-stencil/{p-cde478c3.entry.js.map → p-ef3e0104.entry.js.map} +0 -0
  414. /package/dist/infineon-design-system-stencil/{p-5729d495.entry.js.map → p-f0c99792.entry.js.map} +0 -0
  415. /package/dist/infineon-design-system-stencil/{p-83ef99a2.entry.js.map → p-f43caa48.entry.js.map} +0 -0
  416. /package/dist/infineon-design-system-stencil/{p-1548797e.entry.js.map → p-f617dd70.entry.js.map} +0 -0
  417. /package/dist/infineon-design-system-stencil/{p-cb5f03cc.entry.js.map → p-f71d9786.entry.js.map} +0 -0
  418. /package/dist/infineon-design-system-stencil/{p-f4d00e57.entry.js.map → p-fa4471a6.entry.js.map} +0 -0
  419. /package/dist/infineon-design-system-stencil/{p-52b61a69.entry.js.map → p-fa84b7aa.entry.js.map} +0 -0
  420. /package/dist/infineon-design-system-stencil/{p-a9c13b65.entry.js.map → p-fe072767.entry.js.map} +0 -0
  421. /package/dist/infineon-design-system-stencil/{p-6777690c.entry.js.map → p-ffa03038.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["ButtonCellRenderer","init","params","this","createButton","getGui","eGui","refresh","updateButton","config","data","button","options","colDef","cellRendererParams","document","createElement","eButton","hasRequiredKeys","setButtonAttributes","appendChild","attachEventListener","innerHTML","detachEventListener","setAttribute","disabled","toString","variant","theme","type","size","fullWidth","target","href","textContent","text","eventListener","event","onButtonClick","addEventListener","removeEventListener","CustomNoRowsOverlay","noRowsMessageFunc","_params","CustomLoadingOverlay","tableCss","IfxTableStyle0","Table","constructor","hostRef","currentPage","rowData","colData","filterOptions","currentFilters","allRowData","rowHeight","tableHeight","pagination","paginationPageSize","filterOrientation","showSidebarFilters","matchingResultsCount","showLoading","originalRowData","handleChipChange","name","currentSelection","detail","updatedFilters","Object","assign","length","customEvent","CustomEvent","filterName","bubbles","composed","host","dispatchEvent","filterValues","map","selection","value","applyAllFilters","updateTableView","onButtonRendererOptionsChanged","getColData","gridApi","setColumnDefs","toggleSidebarFilters","updateFilterOptions","col","field","Set","row","handleSidebarFilterChange","filterGroups","forEach","filterGroup","filterGroupName","selectedItems","item","label","handleTopbarFilterChange","filters","filter","filterInfo","selectedValues","toLowerCase","textFilterMatched","property","hasOwnProperty","rowValue","String","some","filterValue","startsWith","includesUndefined","includes","startIndex","endIndex","visibleRowData","slice","setGridOption","clearAllFilters","onBtShowLoading","showLoadingOverlay","componentWillLoad","uniqueKey","Math","floor","random","getRowData","gridOptions","headerHeight","defaultColDef","resizable","suppressDragLeaveHidesColumns","enableCellTextSelection","onFirstDataRendered","bind","columnDefs","loadingOverlayComponent","noRowsOverlayComponent","noRowsOverlayComponentParams","icons","sortAscending","sortDescending","sortUnSort","rowDragManaged","dndSource","animateRows","componentDidRender","componentDidLoad","container","createGrid","sizeColumnsToFit","defaultMinWidth","paginationElement","shadowRoot","querySelector","handlePageChange","sidebarFilterElements","querySelectorAll","sidebarFilterElement","topbarFilterElements","topbarFilterElement","componentWillUnmount","sidebarFilters","sidebarFilter","topbarFilters","topbarFilter","isJSONParseable","str","JSON","parse","e","rows","undefined","Array","isArray","console","error","cols","buttonColumn","find","column","cellRenderer","valueFormatter","buttonRendererOptions","api","handleResetButtonClick","resetEvent","window","disconnectedCallback","resetButton","getTableClassNames","classNames","render","style","height","filterClass","h","Host","key","class","onClick","icon","keys","isMultiSelect","placeholder","readOnly","selected","id","ref","el","total","hasButtonCol","onDragOver","dragSupported","dataTransfer","dropEffect","preventDefault","onDrop","jsonData","getData","eJsonRow","classList","add","innerText","eJsonDisplay"],"sources":["src/components/table-advanced-version/buttonCellRenderer.ts","src/components/table-advanced-version/customNoRowsOverlay.ts","src/components/table-advanced-version/customLoadingOverlay.ts","src/components/table-advanced-version/table.scss?tag=ifx-table&encapsulation=shadow","src/components/table-advanced-version/table.tsx"],"sourcesContent":["import { ICellRendererComp, ICellRendererParams } from 'ag-grid-community';\nimport { ButtonInterface } from './interfaces';\n\nexport class ButtonCellRenderer implements ICellRendererComp {\n eGui!: HTMLDivElement;\n eButton!: HTMLElement; // Change to a generic HTMLElement to accommodate custom elements\n eventListener!: (event: Event) => void;\n\n init(params: ICellRendererParams) {\n this.createButton(params);\n }\n\n getGui() {\n return this.eGui;\n }\n\n refresh(params: ICellRendererParams) {\n this.updateButton(params);\n return true;\n }\n\n private createButton(params: ICellRendererParams) {\n const config = params.data.button;\n const options = params.colDef.cellRendererParams || {};\n \n this.eGui = document.createElement('div');\n this.eButton = document.createElement('ifx-button') as HTMLElement;\n \n if (this.hasRequiredKeys(config)) {\n this.setButtonAttributes(config);\n this.eGui.appendChild(this.eButton);\n this.attachEventListener(options, params);\n } else {\n this.eGui.innerHTML = `<span>${config}</span>`;\n }\n }\n\n private updateButton(params: ICellRendererParams) {\n const config = params.data.button;\n const options = params.colDef.cellRendererParams || {};\n \n if (this.hasRequiredKeys(config)) {\n this.setButtonAttributes(config);\n this.detachEventListener();\n this.attachEventListener(options, params);\n } else {\n this.eGui.innerHTML = `<span>${config}</span>`;\n }\n }\n\n private setButtonAttributes(config: ButtonInterface) {\n this.eButton.setAttribute('disabled', config.disabled.toString());\n this.eButton.setAttribute('variant', config.variant);\n this.eButton.setAttribute('theme', config.theme);\n this.eButton.setAttribute('type', config.type);\n this.eButton.setAttribute('size', config.size);\n this.eButton.setAttribute('full-width', config.fullWidth.toString());\n this.eButton.setAttribute('target', config.target);\n this.eButton.setAttribute('href', config.href);\n this.eButton.textContent = config.text;\n }\n\n private attachEventListener(options: any, params: ICellRendererParams) {\n this.eventListener = (event: Event) => {\n if (options.onButtonClick) {\n options.onButtonClick(params, event);\n }\n };\n this.eButton.addEventListener('click', this.eventListener);\n }\n\n private detachEventListener() {\n if (this.eventListener) {\n this.eButton.removeEventListener('click', this.eventListener);\n }\n }\n\n private hasRequiredKeys(config: ButtonInterface): boolean {\n return config && config.text !== '' && config.variant !== '' && config.size !== '' && config.type !== '';\n }\n}\n","import { ICellRendererComp, ICellRendererParams } from 'ag-grid-community';\n\nexport class CustomNoRowsOverlay implements ICellRendererComp {\n eGui!: HTMLElement;\n\n init(params: ICellRendererParams & { noRowsMessageFunc: () => string }) {\n this.eGui = document.createElement('div');\n this.eGui.innerHTML = `\n <div role=\"presentation\" class=\"ag-overlay-loading-center\" >\n ${params.noRowsMessageFunc()}\n </div>\n `;\n }\n\n getGui() {\n return this.eGui;\n }\n\n refresh(_params: ICellRendererParams): boolean {\n return false;\n }\n}","import { ICellRendererComp, ICellRendererParams } from 'ag-grid-community';\n\nexport class CustomLoadingOverlay implements ICellRendererComp {\n eGui!: HTMLElement;\n\n init(_params: ICellRendererParams & { loadingMessage: string }) {\n this.eGui = document.createElement('div');\n this.eGui.innerHTML = `<div class=\"ag-overlay-loading-center\" role=\"presentation\">\n<ifx-spinner></ifx-spinner>\n </div>`;\n }\n\n getGui() {\n return this.eGui;\n }\n\n refresh(_params: ICellRendererParams): boolean {\n return false;\n }\n}","@use \"~@infineon/design-system-tokens/dist/tokens\";\n@use \"../../global/font.scss\";\n\n@import \"~ag-grid-community/styles/ag-grid.css\";\n\n\n.table-container {\n display: block;\n}\n\n.sidebar-btn {\n margin-bottom: 24px;\n}\n\n.sidebar-container {\n margin-right: 24px;\n}\n\n.sidebar-layout {\n display: flex;\n flex-direction: row;\n}\n\n.topbar-layout {\n display: flex;\n flex-direction: column;\n}\n\n.table-pagination-wrapper {\n display: flex;\n flex-direction: column;\n align-items: stretch; // stretches items to fill the container horizontally\n width: 100%; // ensures the wrapper takes up the full width of its parent\n}\n\n#table-wrapper {\n flex: 1; // allows the table to take up the remaining space\n}\n\n\n.table-wrapper .ag-root-wrapper-body {\n height: auto !important;\n min-height: 100px !important;\n min-width: 100px;\n}\n\n.filter-chips { \n display:flex;\n gap:tokens.$ifxSpace100;\n margin-bottom: 12px;\n}\n\n.filter-chips > ifx-button { // ifx-button with icon and text has a paddingof 16 px. This is to remove the padding to align with the filter-chips container definition\n margin-left: -8px;\n}\n\n.set-filter-wrapper-sidebar {\n display: flex;\n flex-direction: column;\n margin-bottom: tokens.$ifxSpace100;\n}\n\n.set-filter-wrapper-topbar {\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n margin-bottom: tokens.$ifxSpace100;\n background: tokens.$ifxColorEngineering100;\n padding-top: 32px;\n padding-bottom: 32px;\n gap: 24px;\n }\n\n\n.ifx-ag-grid {\n display: grid;\n height: 100%;\n width: 100%;\n min-width: 100px;\n padding-bottom: tokens.$ifxSpace100;\n}\n\n\n.ifx-ag-grid .ag-header-cell::after {\n outline: none !important;\n border: none !important;\n box-shadow: none !important;\n}\n\n.ifx-ag-grid .ag-header-cell:focus {\n outline: none !important;\n}\n\n.ifx-ag-grid *:not(.ag-header-cell):focus {\n outline: none;\n}\n\n\n.ifx-ag-grid .ag-header-cell:not(:last-child)::before {\n content: '';\n position: absolute;\n right: 0;\n top: calc(50% - 12px);\n height: 24px; \n width: 1px;\n background-color: tokens.$ifxColorEngineering300; \n}\n\n\n.ag-overlay-loading-center {\n border: none;\n background: none;\n border-radius: none;\n box-shadow: none;\n}\n\n\n.ag-root-wrapper {\n border: none;\n}\n\n\n\n.ag-header {\n background-color: tokens.$ifxColorEngineering100;\n border-bottom: none;\n\n &.ag-header-active {\n outline: none !important;\n border-color: #0A8276 !important;\n }\n}\n\n.ag-header-cell {\n padding-left: 16px;\n padding-right: 16px;\n gap: 4px;\n}\n\n\n.ag-header-cell-focus {\n border: none !important;\n outline: none !important;\n}\n\n.ag-header-cell-text {\n font-size: 13px;\n font-style: normal;\n font-weight: 600;\n line-height: 20px;\n color: tokens.$ifxColorBaseBlack;\n font-family: var(--ifx-font-family);\n\n}\n\n.ag-row-focus {\n background-color: inherit !important;\n /* Reset the hover color to the row's original color */\n}\n\n.ag-row-hover {\n background-color: tokens.$ifxColorBaseWhite !important; //inherit !important;\n /* Reset the hover color to the row's original color */\n}\n\n\n.ag-cell-focus {\n border: none !important;\n outline: none !important;\n background-color: inherit !important;\n}\n\n\n\n.ag-row {\n background-color: tokens.$ifxColorBaseWhite;\n border-bottom: 1px solid tokens.$ifxColorEngineering200;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n z-index: 1; //ensure the stacking order when used inside js frameworks\n}\n\n.ag-row-odd {\n background-color: tokens.$ifxColorBaseWhite;\n}\n\n.ag-cell {\n display: flex;\n padding-left: 16px;\n padding-right: 16px;\n align-items: center;\n\n}\n\n.ag-ltr .ag-sort-indicator-icon {\n padding-left: 0px;\n vertical-align: bottom;\n line-height: 12px;\n}\n\n.ag-sort-indicator-container .ag-sort-order { \n display: none;\n}\n\n.unsort-icon-custom-color {\n color: tokens.$ifxColorEngineering400;\n}\n\n\n// Table with set filters in sidebar orientation\n\n\n.filters-title {\n font-size: 24px;\n font-weight: 600;\n}\n\n\n.matching-results-container {\n display: flex;\n gap: 4px;\n font-size: 14px;\n}\n\n.matching-results-count {\n font-weight: 600;\n}\n\n.matching-results-text {\n font-weight: 400;\n}","import { Component, h, Host, Method, Element, Prop, State, Listen, Watch } from '@stencil/core';\nimport classNames from 'classnames';\n\nimport { createGrid, FirstDataRenderedEvent, GridApi, GridOptions } from 'ag-grid-community';\nimport { ButtonCellRenderer } from './buttonCellRenderer';\nimport { CustomNoRowsOverlay } from './customNoRowsOverlay';\nimport { CustomLoadingOverlay } from './customLoadingOverlay';\n\n\n@Component({\n tag: 'ifx-table',\n styleUrl: 'table.scss',\n shadow: true\n})\nexport class Table {\n gridOptions: GridOptions;\n gridApi: GridApi;\n @State() currentPage: number = 1;\n @Prop() cols: any;\n @Prop() rows: any;\n @Prop() buttonRendererOptions?: { onButtonClick?: (params: any, event: Event) => void;}; \n @State() rowData: any[] = [];\n @State() colData: any[] = [];\n @State() filterOptions: { [key: string]: string[] } = {};\n @State() currentFilters = {};\n @State() uniqueKey: string;\n allRowData: any[] = [];\n @Prop() rowHeight: string = 'default';\n @Prop() tableHeight: string = 'auto';\n @Prop() pagination: boolean = true;\n @Prop() paginationPageSize: number = 10;\n @Prop() filterOrientation: string = 'sidebar'; // topbar / none\n @State() showSidebarFilters: boolean = true;\n @State() matchingResultsCount: number = 0;\n\n @Prop() showLoading: boolean = false;\n private container: HTMLDivElement;\n @Element() host: HTMLElement;\n originalRowData: any[] = [];\n\n @Listen('ifxChipChange')\n handleChipChange(event: CustomEvent<{ previousSelection: Array<any>, currentSelection: Array<any>, name: string }>) {\n const { name, currentSelection } = event.detail;\n\n // Clone the current filters state\n const updatedFilters = { ...this.currentFilters };\n\n if (currentSelection.length === 0) {\n // If there are no selections for this filter, delete the filter\n delete updatedFilters[name];\n\n // Emit event with specific filter name\n const customEvent = new CustomEvent('ifxUpdateSidebarFilter', { detail: { filterName: name }, bubbles: true, composed: true });\n this.host.dispatchEvent(customEvent);\n } else {\n // Otherwise, update the filter values with the current selection\n updatedFilters[name].filterValues = currentSelection.map(selection => selection.value);\n }\n\n // Update the component's filters\n this.currentFilters = updatedFilters;\n\n // Ensure table data is updated\n this.allRowData = this.applyAllFilters(this.originalRowData, this.currentFilters);\n this.updateTableView();\n }\n\n @Watch('buttonRendererOptions')\n onButtonRendererOptionsChanged() {\n this.colData = this.getColData(); // Re-fetch column data to apply new renderer options\n if (this.gridApi) {\n this.gridApi.setColumnDefs(this.colData); // Update column definitions in the grid API\n }\n }\n\n toggleSidebarFilters() {\n this.showSidebarFilters = !this.showSidebarFilters;\n }\n\n updateFilterOptions() {\n const options = {};\n for (let col of this.colData) {\n options[col.field] = [...new Set(this.rowData.map(row => row[col.field]))];\n }\n this.filterOptions = options;\n }\n\n handleSidebarFilterChange(event: CustomEvent) {\n const filterGroups = event.detail;\n const updatedFilters = {};\n\n filterGroups.forEach(filterGroup => {\n const filterName = filterGroup.filterGroupName;\n let filterValues;\n let type;\n\n if (filterGroup.selectedItems && filterGroup.selectedItems.length > 0) {\n filterValues = filterGroup.selectedItems.map(item => item.label);\n type = 'multi-select';\n } else if (filterGroup.value) {\n filterValues = [filterGroup.value];\n type = 'text';\n } else {\n filterValues = [];\n }\n\n if (!(filterValues.length === 0 || (filterValues.length === 1 && type === 'text' && filterValues[0] === ''))) {\n updatedFilters[filterName] = { filterValues, type };\n }\n });\n\n this.allRowData = this.applyAllFilters(this.originalRowData, updatedFilters);\n this.updateTableView();\n this.currentFilters = updatedFilters;\n }\n\n\n handleTopbarFilterChange(event: CustomEvent) {\n const filters = event.detail;\n\n // Start by resetting the filter conditions to a blank object\n this.currentFilters = {};\n\n // Loop through each filter group provided in the event detail\n filters.forEach(filter => {\n const filterName = filter.filterName;\n let filterValues;\n\n let type = filter.type;\n\n if (type === 'text') {\n // Search/Text filter\n filterValues = filter.filterValues\n } else {\n // Multi-select/Single-Select\n filterValues = filter.filterValues.map(item => item.label);\n }\n\n // If there are no filter values, or the filter is a text filter with an empty value, remove the filter\n if (!(filterValues.length === 0 || (filterValues.length === 1 && type === 'text' && filterValues[0] === ''))) {\n // Add or update the filter in the currentFilters object\n this.currentFilters[filterName] = { filterValues, type };\n }\n });\n\n\n // Now that the currentFilters object has been updated, apply all filters to the data\n this.allRowData = this.applyAllFilters(this.originalRowData, this.currentFilters);\n\n // After filtering, update the table view with the new filtered data\n this.updateTableView();\n }\n\n\n applyAllFilters(data, filters) {\n return data.filter(row => {\n for (const filterName in filters) {\n const filterInfo = filters[filterName];\n let selectedValues = (filterInfo.filterValues || []).map(value => {\n if (typeof value === 'string') {\n return value.toLowerCase();\n } else if (typeof value === 'number' || typeof value === 'boolean') {\n return value.toString();\n }\n return '';\n });\n\n // For text filters, check if row values start with any of the selectedValues\n if (filterInfo.type === 'text') {\n let textFilterMatched = false;\n for (let property in row) {\n if (row.hasOwnProperty(property)) {\n let rowValue = row[property] != null ? String(row[property]).toLowerCase() : '';\n if (selectedValues.some(filterValue => rowValue.startsWith(filterValue))) {\n textFilterMatched = true;\n break;\n }\n }\n }\n if (!textFilterMatched) return false;\n }\n // For multi-select filters, this remains unchanged\n else if (filterInfo.type === 'multi-select') {\n let rowValue = row[filterName] != null ? String(row[filterName]).toLowerCase() : '';\n // Check if 'undefined' is a selected value and include rows with empty values in that case\n let includesUndefined = selectedValues.includes('undefined');\n if (!selectedValues.includes(rowValue) && !(includesUndefined && rowValue === '')) {\n return false;\n }\n }\n }\n return true;\n });\n }\n\n\n\n updateTableView() {\n // Calculate the slice of data to display based on pagination\n const startIndex = (this.currentPage - 1) * this.paginationPageSize;\n const endIndex = startIndex + this.paginationPageSize;\n const visibleRowData = this.allRowData.slice(startIndex, endIndex);\n\n // Update the row data in the table\n this.rowData = visibleRowData;\n this.gridApi.setGridOption('rowData', this.rowData);\n\n // Update matching results count\n this.matchingResultsCount = this.allRowData.length;\n }\n\n\n clearAllFilters() {\n this.currentFilters = {};\n this.allRowData = [...this.originalRowData];\n }\n\n\n @Method()\n async onBtShowLoading() {\n this.gridApi.showLoadingOverlay();\n }\n\n componentWillLoad() {\n this.uniqueKey = `unique-${Math.floor(Math.random() * 1000000)}`;\n\n this.rowData = this.getRowData();\n this.colData = this.getColData();\n this.updateFilterOptions();\n\n this.gridOptions = {\n\n rowHeight: this.rowHeight === 'default' ? 40 : 32,\n headerHeight: 40,\n defaultColDef: {\n resizable: true,\n },\n suppressDragLeaveHidesColumns: true,\n enableCellTextSelection: true,\n onFirstDataRendered: this.onFirstDataRendered.bind(this),\n columnDefs: this.colData,\n rowData: this.rowData,\n loadingOverlayComponent: CustomLoadingOverlay,\n noRowsOverlayComponent: CustomNoRowsOverlay,\n noRowsOverlayComponentParams: {\n noRowsMessageFunc: () =>\n 'No rows found' //at: ' + new Date().toLocaleTimeString(),\n },\n icons: {\n sortAscending: '<ifx-icon icon=\"arrowtriangleup16\"></ifx-icon>',\n sortDescending: '<ifx-icon icon=\"arrowtriangledown16\"></ifx-icon>',\n sortUnSort: '<a class=\"unsort-icon-custom-color\"><ifx-icon icon=\"arrowtrianglevertikal16\"></ifx-icon></a>'\n },\n rowDragManaged: this.colData.some(col => col.dndSource === true) ? true : false,\n animateRows: this.colData.some(col => col.dndSource === true) ? true : false,\n };\n\n }\n\n componentDidRender() {\n if (this.gridApi) {\n this.gridApi.setGridOption('columnDefs', this.colData);\n }\n }\n\n\n\n componentDidLoad() {\n if (this.container) {\n this.gridApi = createGrid(this.container, this.gridOptions);\n if (this.gridApi) {\n this.gridApi.sizeColumnsToFit({\n defaultMinWidth: 100,\n });\n this.gridApi.setGridOption('columnDefs', this.colData);\n this.gridApi.setGridOption('rowData', this.rowData);\n\n if (this.pagination) {\n const paginationElement = this.host.shadowRoot.querySelector('ifx-pagination');\n if (paginationElement) {\n paginationElement.addEventListener('ifxPageChange', this.handlePageChange.bind(this));\n }\n }\n const sidebarFilterElements = this.host.querySelectorAll('ifx-filter-type-group');\n // Add an event listener to each SetFilter component\n sidebarFilterElements.forEach(sidebarFilterElement => {\n sidebarFilterElement.addEventListener('ifxSidebarFilterChange', this.handleSidebarFilterChange.bind(this));\n });\n const topbarFilterElements = this.host.querySelectorAll('ifx-filter-bar');\n // Add an event listener to each SetFilter component\n topbarFilterElements.forEach(topbarFilterElement => {\n topbarFilterElement.addEventListener('ifxTopbarFilterChange', this.handleTopbarFilterChange.bind(this));\n });\n }\n }\n }\n\n componentWillUnmount() {\n if (this.pagination) {\n const paginationElement = this.host.shadowRoot.querySelector('ifx-pagination');\n if (paginationElement) {\n paginationElement.removeEventListener('ifxPageChange', this.handlePageChange.bind(this));\n }\n }\n const sidebarFilters = this.host.shadowRoot.querySelectorAll('ifx-filter-type-group');\n // Remove the event listener from each SetFilter component\n sidebarFilters.forEach(sidebarFilter => {\n sidebarFilter.removeEventListener('ifxSidebarFilterChange', this.handleSidebarFilterChange.bind(this));\n });\n const topbarFilters = this.host.shadowRoot.querySelectorAll('ifx-filter-type-group');\n // Remove the event listener from each SetFilter component\n topbarFilters.forEach(topbarFilter => {\n topbarFilter.removeEventListener('ifxTopbarFilterChange', this.handleTopbarFilterChange.bind(this));\n });\n }\n\n handlePageChange(event) {\n this.currentPage = event.detail.currentPage;\n const startIndex = (this.currentPage - 1) * this.paginationPageSize;\n const endIndex = startIndex + this.paginationPageSize;\n const visibleRowData = this.allRowData.slice(startIndex, endIndex);\n // Update the data in the grid\n if (this.gridApi) {\n this.gridApi.setGridOption('rowData', visibleRowData);\n }\n }\n\n isJSONParseable(str) {\n try {\n JSON.parse(str);\n return true;\n } catch (e) {\n return false;\n }\n }\n\n\n getRowData() {\n let rows: any[] = [];\n if (this.rows === undefined || this.rows === null) {\n return rows;\n }\n \n if (this.isJSONParseable(this.rows)) {\n rows = [...JSON.parse(this.rows)];\n }\n else if (Array.isArray(this.rows) || typeof this.rows === 'object') {\n rows = [...this.rows];\n }\n else {\n console.error('Unexpected value for rows: ', this.rows);\n }\n\n this.allRowData = rows;\n this.originalRowData = [...rows]; // Deep copy the original data\n this.matchingResultsCount = this.allRowData.length;\n\n return rows.slice(0, this.paginationPageSize);\n }\n\n\n getColData() {\n let cols: any[] = [];\n if (this.cols === undefined || this.cols === null) {\n return cols;\n }\n \n if (this.isJSONParseable(this.cols)) {\n cols = [...JSON.parse(this.cols)];\n } else if (Array.isArray(this.cols) || typeof this.cols === 'object') {\n cols = [...this.cols];\n } else {\n console.error('Unexpected value for cols: ', this.cols);\n }\n \n const buttonColumn = cols.find(column => column.field === 'button');\n if (buttonColumn) {\n buttonColumn.cellRenderer = ButtonCellRenderer;\n buttonColumn.valueFormatter = params => params.value.text;\n \n // No JSON.parse needed now\n if (this.buttonRendererOptions && typeof this.buttonRendererOptions === 'object') {\n if (this.buttonRendererOptions.onButtonClick) {\n buttonColumn.cellRendererParams = {\n onButtonClick: this.buttonRendererOptions.onButtonClick\n };\n }\n }\n }\n \n return cols;\n }\n \n\n onFirstDataRendered(params: FirstDataRenderedEvent) {\n params.api.sizeColumnsToFit();\n }\n\n handleResetButtonClick() {\n const resetEvent = new CustomEvent('ifxResetFiltersEvent', { bubbles: true, composed: true });\n window.dispatchEvent(resetEvent); // Dispatch from the window object\n\n this.clearAllFilters();\n this.updateTableView(); // Update table view with the original data\n }\n\n\n disconnectedCallback() {\n if (this.pagination) {\n const paginationElement = this.host.shadowRoot.querySelector('ifx-pagination');\n if (paginationElement) {\n paginationElement.removeEventListener('ifxPageChange', this.handlePageChange);\n }\n }\n\n const resetButton = this.host.shadowRoot.querySelector('#reset-filters-button');\n if (resetButton) {\n resetButton.removeEventListener('click', this.handleResetButtonClick.bind(this));\n }\n }\n\n\n\n getTableClassNames() {\n return classNames(\n this.tableHeight === 'auto' && 'table-wrapper ag-root-wrapper-body',\n 'table-wrapper',\n );\n }\n\n\n render() {\n let style = {};\n if (this.tableHeight !== 'auto') {\n style = {\n 'height': this.tableHeight\n };\n }\n const filterClass = this.filterOrientation === 'topbar' ? 'topbar-layout' : 'sidebar-layout';\n return (\n <Host>\n <div class=\"table-container\">\n {this.filterOrientation === 'sidebar' && (\n <div class=\"sidebar-btn\">\n <ifx-button\n type=\"button\"\n disabled={false}\n variant=\"secondary\"\n size=\"m\"\n target=\"_blank\"\n theme=\"default\"\n full-width=\"false\"\n onClick={() => this.toggleSidebarFilters()}\n >\n <ifx-icon icon=\"cross-12\"></ifx-icon>{this.showSidebarFilters ? 'Hide Filters' : 'Show Filters'}\n </ifx-button>\n </div>\n )}\n\n <div class={filterClass}>\n {this.filterOrientation === 'sidebar' && this.showSidebarFilters && (\n <div class=\"sidebar-container\">\n <div class=\"filters-title-container\">\n <span class=\"filters-title\">Filters</span>\n </div>\n <div class=\"set-filter-wrapper-sidebar\">\n {(this.filterOrientation !== 'sidebar' || this.showSidebarFilters) && (\n <slot name=\"sidebar-filter\"></slot>\n )}\n </div>\n </div>\n )}\n\n {this.filterOrientation !== 'none' && this.filterOrientation !== 'sidebar' && (\n <div class=\"set-filter-wrapper-topbar\">\n {(this.filterOrientation !== 'sidebar' || this.showSidebarFilters) && (\n <slot name=\"topbar-filter\"></slot>\n )}\n </div>\n )}\n\n <div class=\"table-pagination-wrapper\">\n <div class=\"filter-chips\">\n {this.filterOrientation !== 'none' && this.filterOrientation !== 'topbar' && this.showSidebarFilters && (\n Object.keys(this.currentFilters).map(name => {\n const filter = this.currentFilters[name];\n const filterValues = filter.filterValues;\n const isMultiSelect = filter.type !== 'text';\n\n return filterValues.length > 0 ? (\n <ifx-chip\n placeholder={name}\n size=\"large\"\n variant={isMultiSelect ? \"multi\" : \"single\"}\n readOnly={true}\n value={filterValues} // Ensure value prop is set\n key={name}\n >\n {filterValues.map(filterValue => (\n <ifx-chip-item value={filterValue} selected={true} key={filterValue}>\n {filterValue}\n </ifx-chip-item>\n ))}\n </ifx-chip>\n ) : null;\n })\n )}\n\n {this.filterOrientation !== 'none' && this.filterOrientation === 'sidebar' && this.showSidebarFilters && Object.keys(this.currentFilters).length > 0 && (\n <ifx-button type=\"button\" disabled={false} variant=\"tertiary\" size=\"m\" target=\"_blank\" theme=\"default\" full-width=\"false\" onClick={() => this.handleResetButtonClick()}\n >\n <ifx-icon icon=\"curved-arrow-left-16\"></ifx-icon>Reset all\n </ifx-button>\n )}\n </div>\n\n {this.filterOrientation !== 'none' && (\n <div class=\"matching-results-container\">\n <span class=\"matching-results-count\">\n {this.matchingResultsCount}\n </span>\n <span class=\"matching-results-text\">\n matching results\n </span>\n </div>\n )}\n\n <div id=\"table-wrapper\" class={this.getTableClassNames()}>\n <div id={`ifxTable-${this.uniqueKey}`} class='ifx-ag-grid' style={style} ref={(el) => this.container = el}>\n </div>\n </div>\n {this.pagination ? <ifx-pagination total={this.allRowData.length} current-page={this.currentPage}></ifx-pagination> : null}\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n\n hasButtonCol(): boolean {\n return this.getColData().some(column => column.field === 'button');\n }\n\n onDragOver(event) {\n var dragSupported = event.dataTransfer.length;\n\n if (dragSupported) {\n event.dataTransfer.dropEffect = 'move';\n }\n\n event.preventDefault();\n }\n\n onDrop(event) {\n var jsonData = event.dataTransfer.getData('application/json');\n\n var eJsonRow = document.createElement('div');\n eJsonRow.classList.add('json-row');\n eJsonRow.innerText = jsonData;\n\n var eJsonDisplay = document.querySelector('#eJsonDisplay');\n\n eJsonDisplay.appendChild(eJsonRow);\n event.preventDefault();\n }\n\n}\n"],"mappings":"uIAGaA,EAKX,IAAAC,C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OvN,KAAKoF,aAAa4B,MAAKwE,GAAUA,EAAO9F,QAAU,U,CAG3D,UAAA8H,CAAWtL,GACT,IAAIuL,EAAgBvL,EAAMwL,aAAarJ,OAEvC,GAAIoJ,EAAe,CACjBvL,EAAMwL,aAAaC,WAAa,M,CAGlCzL,EAAM0L,gB,CAGR,MAAAC,CAAO3L,GACL,IAAI4L,EAAW5L,EAAMwL,aAAaK,QAAQ,oBAE1C,IAAIC,EAAWpN,SAASC,cAAc,OACtCmN,EAASC,UAAUC,IAAI,YACvBF,EAASG,UAAYL,EAErB,IAAIM,EAAexN,SAASkJ,cAAc,iBAE1CsE,EAAanN,YAAY+M,GACzB9L,EAAM0L,gB","ignoreList":[]}
1
+ {"version":3,"names":["ButtonCellRenderer","init","params","this","createButton","getGui","eGui","refresh","updateButton","config","data","button","options","colDef","cellRendererParams","document","createElement","eButton","hasRequiredKeys","setButtonAttributes","appendChild","attachEventListener","innerHTML","detachEventListener","setAttribute","disabled","toString","variant","theme","type","size","fullWidth","target","href","textContent","text","eventListener","event","onButtonClick","addEventListener","removeEventListener","CustomNoRowsOverlay","noRowsMessageFunc","_params","CustomLoadingOverlay","tableCss","IfxTableStyle0","Table","constructor","hostRef","currentPage","rowData","colData","filterOptions","currentFilters","allRowData","rowHeight","tableHeight","pagination","paginationPageSize","filterOrientation","showSidebarFilters","matchingResultsCount","showLoading","originalRowData","handleChipChange","name","currentSelection","detail","updatedFilters","Object","assign","length","customEvent","CustomEvent","filterName","bubbles","composed","host","dispatchEvent","filterValues","map","selection","value","applyAllFilters","updateTableView","onButtonRendererOptionsChanged","getColData","gridApi","setColumnDefs","toggleSidebarFilters","updateFilterOptions","col","field","Set","row","handleSidebarFilterChange","filterGroups","forEach","filterGroup","filterGroupName","selectedItems","item","label","handleTopbarFilterChange","filters","filter","filterInfo","selectedValues","toLowerCase","textFilterMatched","property","hasOwnProperty","rowValue","String","some","filterValue","startsWith","includesUndefined","includes","startIndex","endIndex","visibleRowData","slice","setGridOption","clearAllFilters","onBtShowLoading","showLoadingOverlay","componentWillLoad","uniqueKey","Math","floor","random","getRowData","gridOptions","headerHeight","defaultColDef","resizable","suppressDragLeaveHidesColumns","enableCellTextSelection","onFirstDataRendered","bind","columnDefs","loadingOverlayComponent","noRowsOverlayComponent","noRowsOverlayComponentParams","icons","sortAscending","sortDescending","sortUnSort","rowDragManaged","dndSource","animateRows","componentDidRender","componentDidLoad","container","createGrid","sizeColumnsToFit","defaultMinWidth","paginationElement","shadowRoot","querySelector","handlePageChange","sidebarFilterElements","querySelectorAll","sidebarFilterElement","topbarFilterElements","topbarFilterElement","componentWillUnmount","sidebarFilters","sidebarFilter","topbarFilters","topbarFilter","isJSONParseable","str","JSON","parse","e","rows","undefined","Array","isArray","console","error","cols","buttonColumn","find","column","cellRenderer","valueFormatter","buttonRendererOptions","api","handleResetButtonClick","resetEvent","window","disconnectedCallback","resetButton","getTableClassNames","classNames","render","style","height","filterClass","h","Host","key","class","onClick","icon","keys","isMultiSelect","placeholder","readOnly","selected","id","ref","el","total","hasButtonCol","onDragOver","dragSupported","dataTransfer","dropEffect","preventDefault","onDrop","jsonData","getData","eJsonRow","classList","add","innerText","eJsonDisplay"],"sources":["src/components/table-advanced-version/buttonCellRenderer.ts","src/components/table-advanced-version/customNoRowsOverlay.ts","src/components/table-advanced-version/customLoadingOverlay.ts","src/components/table-advanced-version/table.scss?tag=ifx-table&encapsulation=shadow","src/components/table-advanced-version/table.tsx"],"sourcesContent":["import { ICellRendererComp, ICellRendererParams } from 'ag-grid-community';\nimport { ButtonInterface } from './interfaces';\n\nexport class ButtonCellRenderer implements ICellRendererComp {\n eGui!: HTMLDivElement;\n eButton!: HTMLElement; // Change to a generic HTMLElement to accommodate custom elements\n eventListener!: (event: Event) => void;\n\n init(params: ICellRendererParams) {\n this.createButton(params);\n }\n\n getGui() {\n return this.eGui;\n }\n\n refresh(params: ICellRendererParams) {\n this.updateButton(params);\n return true;\n }\n\n private createButton(params: ICellRendererParams) {\n const config = params.data.button;\n const options = params.colDef.cellRendererParams || {};\n \n this.eGui = document.createElement('div');\n this.eButton = document.createElement('ifx-button') as HTMLElement;\n \n if (this.hasRequiredKeys(config)) {\n this.setButtonAttributes(config);\n this.eGui.appendChild(this.eButton);\n this.attachEventListener(options, params);\n } else {\n this.eGui.innerHTML = `<span>${config}</span>`;\n }\n }\n\n private updateButton(params: ICellRendererParams) {\n const config = params.data.button;\n const options = params.colDef.cellRendererParams || {};\n \n if (this.hasRequiredKeys(config)) {\n this.setButtonAttributes(config);\n this.detachEventListener();\n this.attachEventListener(options, params);\n } else {\n this.eGui.innerHTML = `<span>${config}</span>`;\n }\n }\n\n private setButtonAttributes(config: ButtonInterface) {\n this.eButton.setAttribute('disabled', config.disabled.toString());\n this.eButton.setAttribute('variant', config.variant);\n this.eButton.setAttribute('theme', config.theme);\n this.eButton.setAttribute('type', config.type);\n this.eButton.setAttribute('size', config.size);\n this.eButton.setAttribute('full-width', config.fullWidth.toString());\n this.eButton.setAttribute('target', config.target);\n this.eButton.setAttribute('href', config.href);\n this.eButton.textContent = config.text;\n }\n\n private attachEventListener(options: any, params: ICellRendererParams) {\n this.eventListener = (event: Event) => {\n if (options.onButtonClick) {\n options.onButtonClick(params, event);\n }\n };\n this.eButton.addEventListener('click', this.eventListener);\n }\n\n private detachEventListener() {\n if (this.eventListener) {\n this.eButton.removeEventListener('click', this.eventListener);\n }\n }\n\n private hasRequiredKeys(config: ButtonInterface): boolean {\n return config && config.text !== '' && config.variant !== '' && config.size !== '' && config.type !== '';\n }\n}\n","import { ICellRendererComp, ICellRendererParams } from 'ag-grid-community';\n\nexport class CustomNoRowsOverlay implements ICellRendererComp {\n eGui!: HTMLElement;\n\n init(params: ICellRendererParams & { noRowsMessageFunc: () => string }) {\n this.eGui = document.createElement('div');\n this.eGui.innerHTML = `\n <div role=\"presentation\" class=\"ag-overlay-loading-center\" >\n ${params.noRowsMessageFunc()}\n </div>\n `;\n }\n\n getGui() {\n return this.eGui;\n }\n\n refresh(_params: ICellRendererParams): boolean {\n return false;\n }\n}","import { ICellRendererComp, ICellRendererParams } from 'ag-grid-community';\n\nexport class CustomLoadingOverlay implements ICellRendererComp {\n eGui!: HTMLElement;\n\n init(_params: ICellRendererParams & { loadingMessage: string }) {\n this.eGui = document.createElement('div');\n this.eGui.innerHTML = `<div class=\"ag-overlay-loading-center\" role=\"presentation\">\n<ifx-spinner></ifx-spinner>\n </div>`;\n }\n\n getGui() {\n return this.eGui;\n }\n\n refresh(_params: ICellRendererParams): boolean {\n return false;\n }\n}","@use \"~@infineon/design-system-tokens/dist/tokens\";\n@use \"../../global/font.scss\";\n\n@import \"~ag-grid-community/styles/ag-grid.css\";\n\n\n.table-container {\n display: block;\n}\n\n.sidebar-btn {\n margin-bottom: 24px;\n}\n\n.sidebar-container {\n margin-right: 24px;\n}\n\n.sidebar-layout {\n display: flex;\n flex-direction: row;\n}\n\n.topbar-layout {\n display: flex;\n flex-direction: column;\n}\n\n.table-pagination-wrapper {\n display: flex;\n flex-direction: column;\n align-items: stretch; // stretches items to fill the container horizontally\n width: 100%; // ensures the wrapper takes up the full width of its parent\n}\n\n#table-wrapper {\n flex: 1; // allows the table to take up the remaining space\n}\n\n\n.table-wrapper .ag-root-wrapper-body {\n height: auto !important;\n min-height: 100px !important;\n min-width: 100px;\n}\n\n.filter-chips { \n display:flex;\n gap:tokens.$ifxSpace100;\n margin-bottom: 12px;\n}\n\n.filter-chips > ifx-button { // ifx-button with icon and text has a paddingof 16 px. This is to remove the padding to align with the filter-chips container definition\n margin-left: -8px;\n}\n\n.set-filter-wrapper-sidebar {\n display: flex;\n flex-direction: column;\n margin-bottom: tokens.$ifxSpace100;\n}\n\n.set-filter-wrapper-topbar {\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n margin-bottom: tokens.$ifxSpace100;\n background: tokens.$ifxColorEngineering100;\n padding-top: 32px;\n padding-bottom: 32px;\n gap: 24px;\n }\n\n\n.ifx-ag-grid {\n display: grid;\n height: 100%;\n width: 100%;\n min-width: 100px;\n padding-bottom: tokens.$ifxSpace100;\n}\n\n\n.ifx-ag-grid .ag-header-cell::after {\n outline: none !important;\n border: none !important;\n box-shadow: none !important;\n}\n\n.ifx-ag-grid .ag-header-cell:focus {\n outline: none !important;\n}\n\n.ifx-ag-grid *:not(.ag-header-cell):focus {\n outline: none;\n}\n\n\n.ifx-ag-grid .ag-header-cell:not(:last-child)::before {\n content: '';\n position: absolute;\n right: 0;\n top: calc(50% - 12px);\n height: 24px; \n width: 1px;\n background-color: tokens.$ifxColorEngineering300; \n}\n\n\n.ag-overlay-loading-center {\n border: none;\n background: none;\n border-radius: none;\n box-shadow: none;\n}\n\n\n.ag-root-wrapper {\n border: none;\n}\n\n\n\n.ag-header {\n background-color: tokens.$ifxColorEngineering100;\n border-bottom: none;\n\n &.ag-header-active {\n outline: none !important;\n border-color: #0A8276 !important;\n }\n}\n\n.ag-header-cell {\n padding-left: 16px;\n padding-right: 16px;\n gap: 4px;\n}\n\n\n.ag-header-cell-focus {\n border: none !important;\n outline: none !important;\n}\n\n.ag-header-cell-text {\n font-size: 13px;\n font-style: normal;\n font-weight: 600;\n line-height: 20px;\n color: tokens.$ifxColorBaseBlack;\n font-family: var(--ifx-font-family);\n\n}\n\n.ag-row-focus {\n background-color: inherit !important;\n /* Reset the hover color to the row's original color */\n}\n\n.ag-row-hover {\n background-color: tokens.$ifxColorBaseWhite !important; //inherit !important;\n /* Reset the hover color to the row's original color */\n}\n\n\n.ag-cell-focus {\n border: none !important;\n outline: none !important;\n background-color: inherit !important;\n}\n\n\n\n.ag-row {\n background-color: tokens.$ifxColorBaseWhite;\n border-bottom: 1px solid tokens.$ifxColorEngineering200;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n z-index: 1; //ensure the stacking order when used inside js frameworks\n}\n\n.ag-row-odd {\n background-color: tokens.$ifxColorBaseWhite;\n}\n\n.ag-cell {\n display: flex;\n padding-left: 16px;\n padding-right: 16px;\n align-items: center;\n\n}\n\n.ag-ltr .ag-sort-indicator-icon {\n padding-left: 0px;\n vertical-align: bottom;\n line-height: 12px;\n}\n\n.ag-sort-indicator-container .ag-sort-order { \n display: none;\n}\n\n.unsort-icon-custom-color {\n color: tokens.$ifxColorEngineering400;\n}\n\n\n// Table with set filters in sidebar orientation\n\n\n.filters-title {\n font-size: 24px;\n font-weight: 600;\n}\n\n\n.matching-results-container {\n display: flex;\n gap: 4px;\n font-size: 14px;\n}\n\n.matching-results-count {\n font-weight: 600;\n}\n\n.matching-results-text {\n font-weight: 400;\n}","import { Component, h, Host, Method, Element, Prop, State, Listen, Watch } from '@stencil/core';\nimport classNames from 'classnames';\n\nimport { createGrid, FirstDataRenderedEvent, GridApi, GridOptions } from 'ag-grid-community';\nimport { ButtonCellRenderer } from './buttonCellRenderer';\nimport { CustomNoRowsOverlay } from './customNoRowsOverlay';\nimport { CustomLoadingOverlay } from './customLoadingOverlay';\n\n\n@Component({\n tag: 'ifx-table',\n styleUrl: 'table.scss',\n shadow: true\n})\nexport class Table {\n gridOptions: GridOptions;\n gridApi: GridApi;\n @State() currentPage: number = 1;\n @Prop() cols: any;\n @Prop() rows: any;\n @Prop() buttonRendererOptions?: { onButtonClick?: (params: any, event: Event) => void;}; \n @State() rowData: any[] = [];\n @State() colData: any[] = [];\n @State() filterOptions: { [key: string]: string[] } = {};\n @State() currentFilters = {};\n @State() uniqueKey: string;\n allRowData: any[] = [];\n @Prop() rowHeight: string = 'default';\n @Prop() tableHeight: string = 'auto';\n @Prop() pagination: boolean = true;\n @Prop() paginationPageSize: number = 10;\n @Prop() filterOrientation: string = 'sidebar'; // topbar / none\n @State() showSidebarFilters: boolean = true;\n @State() matchingResultsCount: number = 0;\n\n @Prop() showLoading: boolean = false;\n private container: HTMLDivElement;\n @Element() host: HTMLElement;\n originalRowData: any[] = [];\n\n @Listen('ifxChipChange')\n handleChipChange(event: CustomEvent<{ previousSelection: Array<any>, currentSelection: Array<any>, name: string }>) {\n const { name, currentSelection } = event.detail;\n\n // Clone the current filters state\n const updatedFilters = { ...this.currentFilters };\n\n if (currentSelection.length === 0) {\n // If there are no selections for this filter, delete the filter\n delete updatedFilters[name];\n\n // Emit event with specific filter name\n const customEvent = new CustomEvent('ifxUpdateSidebarFilter', { detail: { filterName: name }, bubbles: true, composed: true });\n this.host.dispatchEvent(customEvent);\n } else {\n // Otherwise, update the filter values with the current selection\n updatedFilters[name].filterValues = currentSelection.map(selection => selection.value);\n }\n\n // Update the component's filters\n this.currentFilters = updatedFilters;\n\n // Ensure table data is updated\n this.allRowData = this.applyAllFilters(this.originalRowData, this.currentFilters);\n this.updateTableView();\n }\n\n @Watch('buttonRendererOptions')\n onButtonRendererOptionsChanged() {\n this.colData = this.getColData(); // Re-fetch column data to apply new renderer options\n if (this.gridApi) {\n this.gridApi.setColumnDefs(this.colData); // Update column definitions in the grid API\n }\n }\n\n toggleSidebarFilters() {\n this.showSidebarFilters = !this.showSidebarFilters;\n }\n\n updateFilterOptions() {\n const options = {};\n for (let col of this.colData) {\n options[col.field] = [...new Set(this.rowData.map(row => row[col.field]))];\n }\n this.filterOptions = options;\n }\n\n handleSidebarFilterChange(event: CustomEvent) {\n const filterGroups = event.detail;\n const updatedFilters = {};\n\n filterGroups.forEach(filterGroup => {\n const filterName = filterGroup.filterGroupName;\n let filterValues;\n let type;\n\n if (filterGroup.selectedItems && filterGroup.selectedItems.length > 0) {\n filterValues = filterGroup.selectedItems.map(item => item.label);\n type = 'multi-select';\n } else if (filterGroup.value) {\n filterValues = [filterGroup.value];\n type = 'text';\n } else {\n filterValues = [];\n }\n\n if (!(filterValues.length === 0 || (filterValues.length === 1 && type === 'text' && filterValues[0] === ''))) {\n updatedFilters[filterName] = { filterValues, type };\n }\n });\n\n this.allRowData = this.applyAllFilters(this.originalRowData, updatedFilters);\n this.updateTableView();\n this.currentFilters = updatedFilters;\n }\n\n\n handleTopbarFilterChange(event: CustomEvent) {\n const filters = event.detail;\n\n // Start by resetting the filter conditions to a blank object\n this.currentFilters = {};\n\n // Loop through each filter group provided in the event detail\n filters.forEach(filter => {\n const filterName = filter.filterName;\n let filterValues;\n\n let type = filter.type;\n\n if (type === 'text') {\n // Search/Text filter\n filterValues = filter.filterValues\n } else {\n // Multi-select/Single-Select\n filterValues = filter.filterValues.map(item => item.label);\n }\n\n // If there are no filter values, or the filter is a text filter with an empty value, remove the filter\n if (!(filterValues.length === 0 || (filterValues.length === 1 && type === 'text' && filterValues[0] === ''))) {\n // Add or update the filter in the currentFilters object\n this.currentFilters[filterName] = { filterValues, type };\n }\n });\n\n\n // Now that the currentFilters object has been updated, apply all filters to the data\n this.allRowData = this.applyAllFilters(this.originalRowData, this.currentFilters);\n\n // After filtering, update the table view with the new filtered data\n this.updateTableView();\n }\n\n\n applyAllFilters(data, filters) {\n return data.filter(row => {\n for (const filterName in filters) {\n const filterInfo = filters[filterName];\n let selectedValues = (filterInfo.filterValues || []).map(value => {\n if (typeof value === 'string') {\n return value.toLowerCase();\n } else if (typeof value === 'number' || typeof value === 'boolean') {\n return value.toString();\n }\n return '';\n });\n\n // For text filters, check if row values start with any of the selectedValues\n if (filterInfo.type === 'text') {\n let textFilterMatched = false;\n for (let property in row) {\n if (row.hasOwnProperty(property)) {\n let rowValue = row[property] != null ? String(row[property]).toLowerCase() : '';\n if (selectedValues.some(filterValue => rowValue.startsWith(filterValue))) {\n textFilterMatched = true;\n break;\n }\n }\n }\n if (!textFilterMatched) return false;\n }\n // For multi-select filters, this remains unchanged\n else if (filterInfo.type === 'multi-select') {\n let rowValue = row[filterName] != null ? String(row[filterName]).toLowerCase() : '';\n // Check if 'undefined' is a selected value and include rows with empty values in that case\n let includesUndefined = selectedValues.includes('undefined');\n if (!selectedValues.includes(rowValue) && !(includesUndefined && rowValue === '')) {\n return false;\n }\n }\n }\n return true;\n });\n }\n\n\n\n updateTableView() {\n // Calculate the slice of data to display based on pagination\n const startIndex = (this.currentPage - 1) * this.paginationPageSize;\n const endIndex = startIndex + this.paginationPageSize;\n const visibleRowData = this.allRowData.slice(startIndex, endIndex);\n\n // Update the row data in the table\n this.rowData = visibleRowData;\n this.gridApi.setGridOption('rowData', this.rowData);\n\n // Update matching results count\n this.matchingResultsCount = this.allRowData.length;\n }\n\n\n clearAllFilters() {\n this.currentFilters = {};\n this.allRowData = [...this.originalRowData];\n }\n\n\n @Method()\n async onBtShowLoading() {\n this.gridApi.showLoadingOverlay();\n }\n\n componentWillLoad() {\n this.uniqueKey = `unique-${Math.floor(Math.random() * 1000000)}`;\n\n this.rowData = this.getRowData();\n this.colData = this.getColData();\n this.updateFilterOptions();\n\n this.gridOptions = {\n\n rowHeight: this.rowHeight === 'default' ? 40 : 32,\n headerHeight: 40,\n defaultColDef: {\n resizable: true,\n },\n suppressDragLeaveHidesColumns: true,\n enableCellTextSelection: true,\n onFirstDataRendered: this.onFirstDataRendered.bind(this),\n columnDefs: this.colData,\n rowData: this.rowData,\n loadingOverlayComponent: CustomLoadingOverlay,\n noRowsOverlayComponent: CustomNoRowsOverlay,\n noRowsOverlayComponentParams: {\n noRowsMessageFunc: () =>\n 'No rows found' //at: ' + new Date().toLocaleTimeString(),\n },\n icons: {\n sortAscending: '<ifx-icon icon=\"arrowtriangleup16\"></ifx-icon>',\n sortDescending: '<ifx-icon icon=\"arrowtriangledown16\"></ifx-icon>',\n sortUnSort: '<a class=\"unsort-icon-custom-color\"><ifx-icon icon=\"arrowtrianglevertikal16\"></ifx-icon></a>'\n },\n rowDragManaged: this.colData.some(col => col.dndSource === true) ? true : false,\n animateRows: this.colData.some(col => col.dndSource === true) ? true : false,\n };\n\n }\n\n componentDidRender() {\n if (this.gridApi) {\n this.gridApi.setGridOption('columnDefs', this.colData);\n }\n }\n\n\n\n componentDidLoad() {\n if (this.container) {\n this.gridApi = createGrid(this.container, this.gridOptions);\n if (this.gridApi) {\n this.gridApi.sizeColumnsToFit({\n defaultMinWidth: 100,\n });\n this.gridApi.setGridOption('columnDefs', this.colData);\n this.gridApi.setGridOption('rowData', this.rowData);\n\n if (this.pagination) {\n const paginationElement = this.host.shadowRoot.querySelector('ifx-pagination');\n if (paginationElement) {\n paginationElement.addEventListener('ifxPageChange', this.handlePageChange.bind(this));\n }\n }\n const sidebarFilterElements = this.host.querySelectorAll('ifx-filter-type-group');\n // Add an event listener to each SetFilter component\n sidebarFilterElements.forEach(sidebarFilterElement => {\n sidebarFilterElement.addEventListener('ifxSidebarFilterChange', this.handleSidebarFilterChange.bind(this));\n });\n const topbarFilterElements = this.host.querySelectorAll('ifx-filter-bar');\n // Add an event listener to each SetFilter component\n topbarFilterElements.forEach(topbarFilterElement => {\n topbarFilterElement.addEventListener('ifxTopbarFilterChange', this.handleTopbarFilterChange.bind(this));\n });\n }\n }\n }\n\n componentWillUnmount() {\n if (this.pagination) {\n const paginationElement = this.host.shadowRoot.querySelector('ifx-pagination');\n if (paginationElement) {\n paginationElement.removeEventListener('ifxPageChange', this.handlePageChange.bind(this));\n }\n }\n const sidebarFilters = this.host.shadowRoot.querySelectorAll('ifx-filter-type-group');\n // Remove the event listener from each SetFilter component\n sidebarFilters.forEach(sidebarFilter => {\n sidebarFilter.removeEventListener('ifxSidebarFilterChange', this.handleSidebarFilterChange.bind(this));\n });\n const topbarFilters = this.host.shadowRoot.querySelectorAll('ifx-filter-type-group');\n // Remove the event listener from each SetFilter component\n topbarFilters.forEach(topbarFilter => {\n topbarFilter.removeEventListener('ifxTopbarFilterChange', this.handleTopbarFilterChange.bind(this));\n });\n }\n\n handlePageChange(event) {\n this.currentPage = event.detail.currentPage;\n const startIndex = (this.currentPage - 1) * this.paginationPageSize;\n const endIndex = startIndex + this.paginationPageSize;\n const visibleRowData = this.allRowData.slice(startIndex, endIndex);\n // Update the data in the grid\n if (this.gridApi) {\n this.gridApi.setGridOption('rowData', visibleRowData);\n }\n }\n\n isJSONParseable(str) {\n try {\n JSON.parse(str);\n return true;\n } catch (e) {\n return false;\n }\n }\n\n\n getRowData() {\n let rows: any[] = [];\n if (this.rows === undefined || this.rows === null) {\n return rows;\n }\n \n if (this.isJSONParseable(this.rows)) {\n rows = [...JSON.parse(this.rows)];\n }\n else if (Array.isArray(this.rows) || typeof this.rows === 'object') {\n rows = [...this.rows];\n }\n else {\n console.error('Unexpected value for rows: ', this.rows);\n }\n\n this.allRowData = rows;\n this.originalRowData = [...rows]; // Deep copy the original data\n this.matchingResultsCount = this.allRowData.length;\n\n return rows.slice(0, this.paginationPageSize);\n }\n\n\n getColData() {\n let cols: any[] = [];\n if (this.cols === undefined || this.cols === null) {\n return cols;\n }\n \n if (this.isJSONParseable(this.cols)) {\n cols = [...JSON.parse(this.cols)];\n } else if (Array.isArray(this.cols) || typeof this.cols === 'object') {\n cols = [...this.cols];\n } else {\n console.error('Unexpected value for cols: ', this.cols);\n }\n \n const buttonColumn = cols.find(column => column.field === 'button');\n if (buttonColumn) {\n buttonColumn.cellRenderer = ButtonCellRenderer;\n buttonColumn.valueFormatter = params => params.value.text;\n \n // No JSON.parse needed now\n if (this.buttonRendererOptions && typeof this.buttonRendererOptions === 'object') {\n if (this.buttonRendererOptions.onButtonClick) {\n buttonColumn.cellRendererParams = {\n onButtonClick: this.buttonRendererOptions.onButtonClick\n };\n }\n }\n }\n \n return cols;\n }\n \n\n onFirstDataRendered(params: FirstDataRenderedEvent) {\n params.api.sizeColumnsToFit();\n }\n\n handleResetButtonClick() {\n const resetEvent = new CustomEvent('ifxResetFiltersEvent', { bubbles: true, composed: true });\n window.dispatchEvent(resetEvent); // Dispatch from the window object\n\n this.clearAllFilters();\n this.updateTableView(); // Update table view with the original data\n }\n\n\n disconnectedCallback() {\n if (this.pagination) {\n const paginationElement = this.host.shadowRoot.querySelector('ifx-pagination');\n if (paginationElement) {\n paginationElement.removeEventListener('ifxPageChange', this.handlePageChange);\n }\n }\n\n const resetButton = this.host.shadowRoot.querySelector('#reset-filters-button');\n if (resetButton) {\n resetButton.removeEventListener('click', this.handleResetButtonClick.bind(this));\n }\n }\n\n\n\n getTableClassNames() {\n return classNames(\n this.tableHeight === 'auto' && 'table-wrapper ag-root-wrapper-body',\n 'table-wrapper',\n );\n }\n\n\n render() {\n let style = {};\n if (this.tableHeight !== 'auto') {\n style = {\n 'height': this.tableHeight\n };\n }\n const filterClass = this.filterOrientation === 'topbar' ? 'topbar-layout' : 'sidebar-layout';\n return (\n <Host>\n <div class=\"table-container\">\n {this.filterOrientation === 'sidebar' && (\n <div class=\"sidebar-btn\">\n <ifx-button\n type=\"button\"\n disabled={false}\n variant=\"secondary\"\n size=\"m\"\n target=\"_blank\"\n theme=\"default\"\n full-width=\"false\"\n onClick={() => this.toggleSidebarFilters()}\n >\n <ifx-icon icon=\"cross-12\"></ifx-icon>{this.showSidebarFilters ? 'Hide Filters' : 'Show Filters'}\n </ifx-button>\n </div>\n )}\n\n <div class={filterClass}>\n {this.filterOrientation === 'sidebar' && this.showSidebarFilters && (\n <div class=\"sidebar-container\">\n <div class=\"filters-title-container\">\n <span class=\"filters-title\">Filters</span>\n </div>\n <div class=\"set-filter-wrapper-sidebar\">\n {(this.filterOrientation !== 'sidebar' || this.showSidebarFilters) && (\n <slot name=\"sidebar-filter\"></slot>\n )}\n </div>\n </div>\n )}\n\n {this.filterOrientation !== 'none' && this.filterOrientation !== 'sidebar' && (\n <div class=\"set-filter-wrapper-topbar\">\n {(this.filterOrientation !== 'sidebar' || this.showSidebarFilters) && (\n <slot name=\"topbar-filter\"></slot>\n )}\n </div>\n )}\n\n <div class=\"table-pagination-wrapper\">\n <div class=\"filter-chips\">\n {this.filterOrientation !== 'none' && this.filterOrientation !== 'topbar' && this.showSidebarFilters && (\n Object.keys(this.currentFilters).map(name => {\n const filter = this.currentFilters[name];\n const filterValues = filter.filterValues;\n const isMultiSelect = filter.type !== 'text';\n\n return filterValues.length > 0 ? (\n <ifx-chip\n placeholder={name}\n size=\"large\"\n variant={isMultiSelect ? \"multi\" : \"single\"}\n readOnly={true}\n value={filterValues} // Ensure value prop is set\n key={name}\n >\n {filterValues.map(filterValue => (\n <ifx-chip-item value={filterValue} selected={true} key={filterValue}>\n {filterValue}\n </ifx-chip-item>\n ))}\n </ifx-chip>\n ) : null;\n })\n )}\n\n {this.filterOrientation !== 'none' && this.filterOrientation === 'sidebar' && this.showSidebarFilters && Object.keys(this.currentFilters).length > 0 && (\n <ifx-button type=\"button\" disabled={false} variant=\"tertiary\" size=\"m\" target=\"_blank\" theme=\"default\" full-width=\"false\" onClick={() => this.handleResetButtonClick()}\n >\n <ifx-icon icon=\"curved-arrow-left-16\"></ifx-icon>Reset all\n </ifx-button>\n )}\n </div>\n\n {this.filterOrientation !== 'none' && (\n <div class=\"matching-results-container\">\n <span class=\"matching-results-count\">\n {this.matchingResultsCount}\n </span>\n <span class=\"matching-results-text\">\n matching results\n </span>\n </div>\n )}\n\n <div id=\"table-wrapper\" class={this.getTableClassNames()}>\n <div id={`ifxTable-${this.uniqueKey}`} class='ifx-ag-grid' style={style} ref={(el) => this.container = el}>\n </div>\n </div>\n {this.pagination ? <ifx-pagination total={this.allRowData.length} current-page={this.currentPage} items-per-page='[{\"value\":\"ten\",\"label\":\"10\",\"selected\":true}, {\"value\":\"Twenty\",\"label\":\"20\",\"selected\":false}, {\"value\":\"Thirty\",\"label\":\"30\",\"selected\":false}]'></ifx-pagination> : null}\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n\n hasButtonCol(): boolean {\n return this.getColData().some(column => column.field === 'button');\n }\n\n onDragOver(event) {\n var dragSupported = event.dataTransfer.length;\n\n if (dragSupported) {\n event.dataTransfer.dropEffect = 'move';\n }\n\n event.preventDefault();\n }\n\n onDrop(event) {\n var jsonData = event.dataTransfer.getData('application/json');\n\n var eJsonRow = document.createElement('div');\n eJsonRow.classList.add('json-row');\n eJsonRow.innerText = jsonData;\n\n var eJsonDisplay = document.querySelector('#eJsonDisplay');\n\n eJsonDisplay.appendChild(eJsonRow);\n event.preventDefault();\n }\n\n}\n"],"mappings":"uIAGaA,EAKX,IAAAC,CAAKC,GACHC,KAAKC,aAAaF,E,CAGpB,MAAAG,GACE,OAAOF,KAAKG,I,CAGd,OAAA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,UAAA8H,CAAWtL,GACT,IAAIuL,EAAgBvL,EAAMwL,aAAarJ,OAEvC,GAAIoJ,EAAe,CACjBvL,EAAMwL,aAAaC,WAAa,M,CAGlCzL,EAAM0L,gB,CAGR,MAAAC,CAAO3L,GACL,IAAI4L,EAAW5L,EAAMwL,aAAaK,QAAQ,oBAE1C,IAAIC,EAAWpN,SAASC,cAAc,OACtCmN,EAASC,UAAUC,IAAI,YACvBF,EAASG,UAAYL,EAErB,IAAIM,EAAexN,SAASkJ,cAAc,iBAE1CsE,EAAanN,YAAY+M,GACzB9L,EAAM0L,gB","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as e,c as a,h as n,g as r}from"./p-c63974da.js";const i=':root{--ifx-font-family:"Source Sans 3";font-family:var(--ifx-font-family, sans-serif)}.breadcrumb-item-label-container{display:flex;align-items:center;gap:8px;text-decoration:none;color:#1D1D1D}.breadcrumb-item-label-container.margin{margin-left:16px}.breadcrumb-item-label-container ifx-icon:empty{display:none}.breadcrumb-item-label-container .label-icon-wrapper{display:inline-flex}.breadcrumb-item-label-container .menu-icon-wrapper{display:flex;justify-content:center;align-items:center;width:16px;height:16px}.breadcrumb-item-label-container .menu-icon-wrapper.hide{display:none}.breadcrumb-item-label-container .menu-icon-wrapper ifx-icon{transition:0.3s}.breadcrumb-item-label-container .menu-icon-wrapper.show ifx-icon{transition:0.3s;transform:rotate(180deg)}';const t=i;const c=class{constructor(n){e(this,n);this.breadcrumbMenuIconWrapper=a(this,"breadcrumbMenuIconWrapper",7);this.target="_self"}componentDidLoad(){const e=this.el.shadowRoot.querySelector(".breadcrumb-item-label-container");const a=e.querySelector(".menu-icon-wrapper");this.breadcrumbMenuIconWrapper.emit(a)}render(){return n("a",{key:"16ddbc6dfce781d06c5e852423d1646426c6fb04",href:this.url,target:this.target,class:"breadcrumb-item-label-container",role:"link"},n("ifx-icon",{key:"6d62e4f854b7ea735c46a3849a92c09a8d222e54",icon:this.icon,"aria-hidden":"true"}),n("span",{key:"452dc64f08a93f4872f0f033b0b7016073818aab",class:"label-wrapper"},n("slot",{key:"0a522ff8d13c3133367e62b50480af2dc970961d"})),n("span",{key:"7f5d3a5305ad187e312ae20a59610c9cfe4b13cf",class:"menu-icon-wrapper","aria-hiden":"true"},n("ifx-icon",{key:"07dc7f9912e3d87f286273e5758490f39df31d0d",icon:"chevron-down-12"})))}get el(){return r(this)}};c.style=t;export{c as ifx_breadcrumb_item_label};
2
- //# sourceMappingURL=p-9d99d0f2.entry.js.map
1
+ import{r as e,c as a,h as n,g as r}from"./p-8f2b1db0.js";const i=':root{--ifx-font-family:"Source Sans 3";font-family:var(--ifx-font-family, sans-serif)}.breadcrumb-item-label-container{display:flex;align-items:center;gap:8px;text-decoration:none;color:#1D1D1D}.breadcrumb-item-label-container.margin{margin-left:16px}.breadcrumb-item-label-container ifx-icon:empty{display:none}.breadcrumb-item-label-container .label-icon-wrapper{display:inline-flex}.breadcrumb-item-label-container .menu-icon-wrapper{display:flex;justify-content:center;align-items:center;width:16px;height:16px}.breadcrumb-item-label-container .menu-icon-wrapper.hide{display:none}.breadcrumb-item-label-container .menu-icon-wrapper ifx-icon{transition:0.3s}.breadcrumb-item-label-container .menu-icon-wrapper.show ifx-icon{transition:0.3s;transform:rotate(180deg)}';const t=i;const c=class{constructor(n){e(this,n);this.breadcrumbMenuIconWrapper=a(this,"breadcrumbMenuIconWrapper",7);this.target="_self"}componentDidLoad(){const e=this.el.shadowRoot.querySelector(".breadcrumb-item-label-container");const a=e.querySelector(".menu-icon-wrapper");this.breadcrumbMenuIconWrapper.emit(a)}render(){return n("a",{key:"16ddbc6dfce781d06c5e852423d1646426c6fb04",href:this.url,target:this.target,class:"breadcrumb-item-label-container",role:"link"},n("ifx-icon",{key:"6d62e4f854b7ea735c46a3849a92c09a8d222e54",icon:this.icon,"aria-hidden":"true"}),n("span",{key:"452dc64f08a93f4872f0f033b0b7016073818aab",class:"label-wrapper"},n("slot",{key:"0a522ff8d13c3133367e62b50480af2dc970961d"})),n("span",{key:"7f5d3a5305ad187e312ae20a59610c9cfe4b13cf",class:"menu-icon-wrapper","aria-hiden":"true"},n("ifx-icon",{key:"07dc7f9912e3d87f286273e5758490f39df31d0d",icon:"chevron-down-12"})))}get el(){return r(this)}};c.style=t;export{c as ifx_breadcrumb_item_label};
2
+ //# sourceMappingURL=p-debe0f5d.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r,h as o}from"./p-8f2b1db0.js";const s=".dropdown-separator{height:1px;background-color:#EEEDED;margin:8px 16px}";const a=s;const c=class{constructor(o){r(this,o)}render(){return o("div",{key:"2c7435f309112c640c3ff68a244d3c663ceb5b7a",class:"dropdown-separator"})}};c.style=a;export{c as ifx_dropdown_separator};
2
+ //# sourceMappingURL=p-e5d5f0b8.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as i,c as t,h as o,g as e}from"./p-c63974da.js";const s=':root{--ifx-font-family:"Source Sans 3";font-family:var(--ifx-font-family, sans-serif)}.dropdown-item{text-decoration:none;color:#1D1D1D;display:flex;align-items:center;padding:8px 16px;gap:8px;font-family:var(--ifx-font-family)}.dropdown-item.hide{display:none}.dropdown-item span{color:#1D1D1D;font-size:16px;font-style:normal;font-weight:400;line-height:24px;}.dropdown-item.small span{font-size:14px}.dropdown-item:hover{cursor:pointer;background-color:#EEEDED}.dropdown-item:active{background-color:#BFBBBB}.icon{margin-right:4px}';const n=s;const a=class{constructor(o){i(this,o);this.ifxDropdownItem=t(this,"ifxDropdownItem",7);this.href="";this.target="_self";this.hide=false;this.size="l"}handleMenuSize(i){this.size=i.detail}handleEventEmission(){this.ifxDropdownItem.emit(this.el.textContent)}render(){let i=this.href?{href:this.href,target:this.target}:{};return o("a",Object.assign({key:"d1c6f3cbd4554b1018770258e8f47419edc02352"},i,{onClick:()=>this.handleEventEmission(),class:`dropdown-item ${this.size==="s"?"small":""} ${this.hide?"hide":""}`}),this.icon&&o("ifx-icon",{key:"b814d88ad14f00b04357b5549ae5a5b24adc1b6b",class:"icon",icon:this.icon}),o("span",{key:"49587568db0c0a4f76f9fad0873a6072a698c8ad"},o("slot",{key:"ccfdb428ffa6d9053c0ff9dc3b6b39469e09f208"})))}get el(){return e(this)}};a.style=n;export{a as ifx_dropdown_item};
2
- //# sourceMappingURL=p-cde478c3.entry.js.map
1
+ import{r as i,c as t,h as o,g as e}from"./p-8f2b1db0.js";const s=':root{--ifx-font-family:"Source Sans 3";font-family:var(--ifx-font-family, sans-serif)}.dropdown-item{text-decoration:none;color:#1D1D1D;display:flex;align-items:center;padding:8px 16px;gap:8px;font-family:var(--ifx-font-family)}.dropdown-item.hide{display:none}.dropdown-item span{color:#1D1D1D;font-size:16px;font-style:normal;font-weight:400;line-height:24px;}.dropdown-item.small span{font-size:14px}.dropdown-item:hover{cursor:pointer;background-color:#EEEDED}.dropdown-item:active{background-color:#BFBBBB}.icon{margin-right:4px}';const n=s;const a=class{constructor(o){i(this,o);this.ifxDropdownItem=t(this,"ifxDropdownItem",7);this.href="";this.target="_self";this.hide=false;this.size="l"}handleMenuSize(i){this.size=i.detail}handleEventEmission(){this.ifxDropdownItem.emit(this.el.textContent)}render(){let i=this.href?{href:this.href,target:this.target}:{};return o("a",Object.assign({key:"d1c6f3cbd4554b1018770258e8f47419edc02352"},i,{onClick:()=>this.handleEventEmission(),class:`dropdown-item ${this.size==="s"?"small":""} ${this.hide?"hide":""}`}),this.icon&&o("ifx-icon",{key:"b814d88ad14f00b04357b5549ae5a5b24adc1b6b",class:"icon",icon:this.icon}),o("span",{key:"49587568db0c0a4f76f9fad0873a6072a698c8ad"},o("slot",{key:"ccfdb428ffa6d9053c0ff9dc3b6b39469e09f208"})))}get el(){return e(this)}};a.style=n;export{a as ifx_dropdown_item};
2
+ //# sourceMappingURL=p-ef3e0104.entry.js.map
@@ -1,3 +1,3 @@
1
- import{r as t,c as e,h as i,g as n}from"./p-c63974da.js";function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}var r={exports:{}};
1
+ import{r as t,c as e,h as i,g as n}from"./p-8f2b1db0.js";function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}var r={exports:{}};
2
2
  /*! choices.js v10.2.0 | © 2022 Josh Johnson | https://github.com/jshjohnson/Choices#readme */(function(t,e){(function e(i,n){t.exports=n()})(window,(function(){return function(){var t={282:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.clearChoices=e.activateChoices=e.filterChoices=e.addChoice=void 0;var n=i(883);var s=function(t){var e=t.value,i=t.label,s=t.id,r=t.groupId,o=t.disabled,c=t.elementId,a=t.customProperties,u=t.placeholder,h=t.keyCode;return{type:n.ACTION_TYPES.ADD_CHOICE,value:e,label:i,id:s,groupId:r,disabled:o,elementId:c,customProperties:a,placeholder:u,keyCode:h}};e.addChoice=s;var r=function(t){return{type:n.ACTION_TYPES.FILTER_CHOICES,results:t}};e.filterChoices=r;var o=function(t){if(t===void 0){t=true}return{type:n.ACTION_TYPES.ACTIVATE_CHOICES,active:t}};e.activateChoices=o;var c=function(){return{type:n.ACTION_TYPES.CLEAR_CHOICES}};e.clearChoices=c},783:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.addGroup=void 0;var n=i(883);var s=function(t){var e=t.value,i=t.id,s=t.active,r=t.disabled;return{type:n.ACTION_TYPES.ADD_GROUP,value:e,id:i,active:s,disabled:r}};e.addGroup=s},464:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.highlightItem=e.removeItem=e.addItem=void 0;var n=i(883);var s=function(t){var e=t.value,i=t.label,s=t.id,r=t.choiceId,o=t.groupId,c=t.customProperties,a=t.placeholder,u=t.keyCode;return{type:n.ACTION_TYPES.ADD_ITEM,value:e,label:i,id:s,choiceId:r,groupId:o,customProperties:c,placeholder:a,keyCode:u}};e.addItem=s;var r=function(t,e){return{type:n.ACTION_TYPES.REMOVE_ITEM,id:t,choiceId:e}};e.removeItem=r;var o=function(t,e){return{type:n.ACTION_TYPES.HIGHLIGHT_ITEM,id:t,highlighted:e}};e.highlightItem=o},137:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.setIsLoading=e.resetTo=e.clearAll=void 0;var n=i(883);var s=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}};e.clearAll=s;var r=function(t){return{type:n.ACTION_TYPES.RESET_TO,state:t}};e.resetTo=r;var o=function(t){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:t}};e.setIsLoading=o},373:function(t,e,i){var n=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,s=e.length,r;n<s;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};var s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var r=s(i(996));var o=s(i(221));var c=i(282);var a=i(783);var u=i(464);var h=i(137);var l=i(520);var f=i(883);var d=i(789);var v=i(799);var p=i(655);var b=s(i(744));var m=s(i(686));var _="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style;var g={};var x=function(){function t(e,i){if(e===void 0){e="[data-choice]"}if(i===void 0){i={}}var s=this;if(i.allowHTML===undefined){console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message.")}this.config=r.default.all([d.DEFAULT_CONFIG,t.defaults.options,i],{arrayMerge:function(t,e){return n([],e,true)}});var o=(0,v.diff)(this.config,d.DEFAULT_CONFIG);if(o.length){console.warn("Unknown config option(s) passed",o.join(", "))}var c=typeof e==="string"?document.querySelector(e):e;if(!(c instanceof HTMLInputElement||c instanceof HTMLSelectElement)){throw TypeError("Expected one of the following types text|select-one|select-multiple")}this._isTextElement=c.type===f.TEXT_TYPE;this._isSelectOneElement=c.type===f.SELECT_ONE_TYPE;this._isSelectMultipleElement=c.type===f.SELECT_MULTIPLE_TYPE;this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement;this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled;if(!["auto","always"].includes("".concat(this.config.renderSelectedChoices))){this.config.renderSelectedChoices="auto"}if(i.addItemFilter&&typeof i.addItemFilter!=="function"){var a=i.addItemFilter instanceof RegExp?i.addItemFilter:new RegExp(i.addItemFilter);this.config.addItemFilter=a.test.bind(a)}if(this._isTextElement){this.passedElement=new l.WrappedInput({element:c,classNames:this.config.classNames,delimiter:this.config.delimiter})}else{this.passedElement=new l.WrappedSelect({element:c,classNames:this.config.classNames,template:function(t){return s._templates.option(t)}})}this.initialised=false;this._store=new b.default;this._initialState=p.defaultState;this._currentState=p.defaultState;this._prevState=p.defaultState;this._currentValue="";this._canSearch=!!this.config.searchEnabled;this._isScrollingOnIe=false;this._highlightPosition=0;this._wasTap=true;this._placeholderValue=this._generatePlaceholderValue();this._baseId=(0,v.generateId)(this.passedElement.element,"choices-");this._direction=this.passedElement.dir;if(!this._direction){var u=window.getComputedStyle(this.passedElement.element).direction;var h=window.getComputedStyle(document.documentElement).direction;if(u!==h){this._direction=u}}this._idNames={itemChoice:"item-choice"};if(this._isSelectElement){this._presetGroups=this.passedElement.optionGroups;this._presetOptions=this.passedElement.options}this._presetChoices=this.config.choices;this._presetItems=this.config.items;if(this.passedElement.value&&this._isTextElement){var m=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(m)}if(this.passedElement.options){this.passedElement.options.forEach((function(t){s._presetChoices.push({value:t.value,label:t.innerHTML,selected:!!t.selected,disabled:t.disabled||t.parentNode.disabled,placeholder:t.value===""||t.hasAttribute("placeholder"),customProperties:(0,v.parseCustomProperties)(t.dataset.customProperties)})}))}this._render=this._render.bind(this);this._onFocus=this._onFocus.bind(this);this._onBlur=this._onBlur.bind(this);this._onKeyUp=this._onKeyUp.bind(this);this._onKeyDown=this._onKeyDown.bind(this);this._onClick=this._onClick.bind(this);this._onTouchMove=this._onTouchMove.bind(this);this._onTouchEnd=this._onTouchEnd.bind(this);this._onMouseDown=this._onMouseDown.bind(this);this._onMouseOver=this._onMouseOver.bind(this);this._onFormReset=this._onFormReset.bind(this);this._onSelectKey=this._onSelectKey.bind(this);this._onEnterKey=this._onEnterKey.bind(this);this._onEscapeKey=this._onEscapeKey.bind(this);this._onDirectionKey=this._onDirectionKey.bind(this);this._onDeleteKey=this._onDeleteKey.bind(this);if(this.passedElement.isActive){if(!this.config.silent){console.warn("Trying to initialise Choices on element already initialised",{element:e})}this.initialised=true;return}this.init()}Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return g},get templates(){return m.default}})},enumerable:false,configurable:true});t.prototype.init=function(){if(this.initialised){return}this._createTemplates();this._createElements();this._createStructure();this._store.subscribe(this._render);this._render();this._addEventListeners();var t=!this.config.addItems||this.passedElement.element.hasAttribute("disabled");if(t){this.disable()}this.initialised=true;var e=this.config.callbackOnInit;if(e&&typeof e==="function"){e.call(this)}};t.prototype.destroy=function(){if(!this.initialised){return}this._removeEventListeners();this.passedElement.reveal();this.containerOuter.unwrap(this.passedElement.element);this.clearStore();if(this._isSelectElement){this.passedElement.options=this._presetOptions}this._templates=m.default;this.initialised=false};t.prototype.enable=function(){if(this.passedElement.isDisabled){this.passedElement.enable()}if(this.containerOuter.isDisabled){this._addEventListeners();this.input.enable();this.containerOuter.enable()}return this};t.prototype.disable=function(){if(!this.passedElement.isDisabled){this.passedElement.disable()}if(!this.containerOuter.isDisabled){this._removeEventListeners();this.input.disable();this.containerOuter.disable()}return this};t.prototype.highlightItem=function(t,e){if(e===void 0){e=true}if(!t||!t.id){return this}var i=t.id,n=t.groupId,s=n===void 0?-1:n,r=t.value,o=r===void 0?"":r,c=t.label,a=c===void 0?"":c;var h=s>=0?this._store.getGroupById(s):null;this._store.dispatch((0,u.highlightItem)(i,true));if(e){this.passedElement.triggerEvent(f.EVENTS.highlightItem,{id:i,value:o,label:a,groupValue:h&&h.value?h.value:null})}return this};t.prototype.unhighlightItem=function(t){if(!t||!t.id){return this}var e=t.id,i=t.groupId,n=i===void 0?-1:i,s=t.value,r=s===void 0?"":s,o=t.label,c=o===void 0?"":o;var a=n>=0?this._store.getGroupById(n):null;this._store.dispatch((0,u.highlightItem)(e,false));this.passedElement.triggerEvent(f.EVENTS.highlightItem,{id:e,value:r,label:c,groupValue:a&&a.value?a.value:null});return this};t.prototype.highlightAll=function(){var t=this;this._store.items.forEach((function(e){return t.highlightItem(e)}));return this};t.prototype.unhighlightAll=function(){var t=this;this._store.items.forEach((function(e){return t.unhighlightItem(e)}));return this};t.prototype.removeActiveItemsByValue=function(t){var e=this;this._store.activeItems.filter((function(e){return e.value===t})).forEach((function(t){return e._removeItem(t)}));return this};t.prototype.removeActiveItems=function(t){var e=this;this._store.activeItems.filter((function(e){var i=e.id;return i!==t})).forEach((function(t){return e._removeItem(t)}));return this};t.prototype.removeHighlightedItems=function(t){var e=this;if(t===void 0){t=false}this._store.highlightedActiveItems.forEach((function(i){e._removeItem(i);if(t){e._triggerChange(i.value)}}));return this};t.prototype.showDropdown=function(t){var e=this;if(this.dropdown.isActive){return this}requestAnimationFrame((function(){e.dropdown.show();e.containerOuter.open(e.dropdown.distanceFromTopWindow);if(!t&&e._canSearch){e.input.focus()}e.passedElement.triggerEvent(f.EVENTS.showDropdown,{})}));return this};t.prototype.hideDropdown=function(t){var e=this;if(!this.dropdown.isActive){return this}requestAnimationFrame((function(){e.dropdown.hide();e.containerOuter.close();if(!t&&e._canSearch){e.input.removeActiveDescendant();e.input.blur()}e.passedElement.triggerEvent(f.EVENTS.hideDropdown,{})}));return this};t.prototype.getValue=function(t){if(t===void 0){t=false}var e=this._store.activeItems.reduce((function(e,i){var n=t?i.value:i;e.push(n);return e}),[]);return this._isSelectOneElement?e[0]:e};t.prototype.setValue=function(t){var e=this;if(!this.initialised){return this}t.forEach((function(t){return e._setChoiceOrItem(t)}));return this};t.prototype.setChoiceByValue=function(t){var e=this;if(!this.initialised||this._isTextElement){return this}var i=Array.isArray(t)?t:[t];i.forEach((function(t){return e._findAndSelectChoiceByValue(t)}));return this};t.prototype.setChoices=function(t,e,i,n){var s=this;if(t===void 0){t=[]}if(e===void 0){e="value"}if(i===void 0){i="label"}if(n===void 0){n=false}if(!this.initialised){throw new ReferenceError("setChoices was called on a non-initialized instance of Choices")}if(!this._isSelectElement){throw new TypeError("setChoices can't be used with INPUT based Choices")}if(typeof e!=="string"||!e){throw new TypeError("value parameter must be a name of 'value' field in passed objects")}if(n){this.clearChoices()}if(typeof t==="function"){var r=t(this);if(typeof Promise==="function"&&r instanceof Promise){return new Promise((function(t){return requestAnimationFrame(t)})).then((function(){return s._handleLoadingState(true)})).then((function(){return r})).then((function(t){return s.setChoices(t,e,i,n)})).catch((function(t){if(!s.config.silent){console.error(t)}})).then((function(){return s._handleLoadingState(false)})).then((function(){return s}))}if(!Array.isArray(r)){throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof r))}return this.setChoices(r,e,i,false)}if(!Array.isArray(t)){throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices")}this.containerOuter.removeLoadingState();this._startLoading();t.forEach((function(t){if(t.choices){s._addGroup({id:t.id?parseInt("".concat(t.id),10):null,group:t,valueKey:e,labelKey:i})}else{var n=t;s._addChoice({value:n[e],label:n[i],isSelected:!!n.selected,isDisabled:!!n.disabled,placeholder:!!n.placeholder,customProperties:n.customProperties})}}));this._stopLoading();return this};t.prototype.clearChoices=function(){this._store.dispatch((0,c.clearChoices)());return this};t.prototype.clearStore=function(){this._store.dispatch((0,h.clearAll)());return this};t.prototype.clearInput=function(){var t=!this._isSelectOneElement;this.input.clear(t);if(!this._isTextElement&&this._canSearch){this._isSearching=false;this._store.dispatch((0,c.activateChoices)(true))}return this};t.prototype._render=function(){if(this._store.isLoading()){return}this._currentState=this._store.state;var t=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items;var e=this._isSelectElement;var i=this._currentState.items!==this._prevState.items;if(!t){return}if(e){this._renderChoices()}if(i){this._renderItems()}this._prevState=this._currentState};t.prototype._renderChoices=function(){var t=this;var e=this._store,i=e.activeGroups,n=e.activeChoices;var s=document.createDocumentFragment();this.choiceList.clear();if(this.config.resetScrollPosition){requestAnimationFrame((function(){return t.choiceList.scrollToTop()}))}if(i.length>=1&&!this._isSearching){var r=n.filter((function(t){return t.placeholder===true&&t.groupId===-1}));if(r.length>=1){s=this._createChoicesFragment(r,s)}s=this._createGroupsFragment(i,n,s)}else if(n.length>=1){s=this._createChoicesFragment(n,s)}if(s.childNodes&&s.childNodes.length>0){var o=this._store.activeItems;var c=this._canAddItem(o,this.input.value);if(c.response){this.choiceList.append(s);this._highlightChoice()}else{var a=this._getTemplate("notice",c.notice);this.choiceList.append(a)}}else{var u=void 0;var a=void 0;if(this._isSearching){a=typeof this.config.noResultsText==="function"?this.config.noResultsText():this.config.noResultsText;u=this._getTemplate("notice",a,"no-results")}else{a=typeof this.config.noChoicesText==="function"?this.config.noChoicesText():this.config.noChoicesText;u=this._getTemplate("notice",a,"no-choices")}this.choiceList.append(u)}};t.prototype._renderItems=function(){var t=this._store.activeItems||[];this.itemList.clear();var e=this._createItemsFragment(t);if(e.childNodes){this.itemList.append(e)}};t.prototype._createGroupsFragment=function(t,e,i){var n=this;if(i===void 0){i=document.createDocumentFragment()}var s=function(t){return e.filter((function(e){if(n._isSelectOneElement){return e.groupId===t.id}return e.groupId===t.id&&(n.config.renderSelectedChoices==="always"||!e.selected)}))};if(this.config.shouldSort){t.sort(this.config.sorter)}t.forEach((function(t){var e=s(t);if(e.length>=1){var r=n._getTemplate("choiceGroup",t);i.appendChild(r);n._createChoicesFragment(e,i,true)}}));return i};t.prototype._createChoicesFragment=function(t,e,i){var s=this;if(e===void 0){e=document.createDocumentFragment()}if(i===void 0){i=false}var r=this.config,o=r.renderSelectedChoices,c=r.searchResultLimit,a=r.renderChoiceLimit;var u=this._isSearching?v.sortByScore:this.config.sorter;var h=function(t){var i=o==="auto"?s._isSelectOneElement||!t.selected:true;if(i){var n=s._getTemplate("choice",t,s.config.itemSelectText);e.appendChild(n)}};var l=t;if(o==="auto"&&!this._isSelectOneElement){l=t.filter((function(t){return!t.selected}))}var f=l.reduce((function(t,e){if(e.placeholder){t.placeholderChoices.push(e)}else{t.normalChoices.push(e)}return t}),{placeholderChoices:[],normalChoices:[]}),d=f.placeholderChoices,p=f.normalChoices;if(this.config.shouldSort||this._isSearching){p.sort(u)}var b=l.length;var m=this._isSelectOneElement?n(n([],d,true),p,true):p;if(this._isSearching){b=c}else if(a&&a>0&&!i){b=a}for(var _=0;_<b;_+=1){if(m[_]){h(m[_])}}return e};t.prototype._createItemsFragment=function(t,e){var i=this;if(e===void 0){e=document.createDocumentFragment()}var n=this.config,s=n.shouldSortItems,r=n.sorter,o=n.removeItemButton;if(s&&!this._isSelectOneElement){t.sort(r)}if(this._isTextElement){this.passedElement.value=t.map((function(t){var e=t.value;return e})).join(this.config.delimiter)}else{this.passedElement.options=t}var c=function(t){var n=i._getTemplate("item",t,o);e.appendChild(n)};t.forEach(c);return e};t.prototype._triggerChange=function(t){if(t===undefined||t===null){return}this.passedElement.triggerEvent(f.EVENTS.change,{value:t})};t.prototype._selectPlaceholderChoice=function(t){this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,placeholder:t.placeholder});this._triggerChange(t.value)};t.prototype._handleButtonAction=function(t,e){if(!t||!e||!this.config.removeItems||!this.config.removeItemButton){return}var i=e.parentNode&&e.parentNode.dataset.id;var n=i&&t.find((function(t){return t.id===parseInt(i,10)}));if(!n){return}this._removeItem(n);this._triggerChange(n.value);if(this._isSelectOneElement&&this._store.placeholderChoice){this._selectPlaceholderChoice(this._store.placeholderChoice)}};t.prototype._handleItemAction=function(t,e,i){var n=this;if(i===void 0){i=false}if(!t||!e||!this.config.removeItems||this._isSelectOneElement){return}var s=e.dataset.id;t.forEach((function(t){if(t.id===parseInt("".concat(s),10)&&!t.highlighted){n.highlightItem(t)}else if(!i&&t.highlighted){n.unhighlightItem(t)}}));this.input.focus()};t.prototype._handleChoiceAction=function(t,e){if(!t||!e){return}var i=e.dataset.id;var n=i&&this._store.getChoiceById(i);if(!n){return}var s=t[0]&&t[0].keyCode?t[0].keyCode:undefined;var r=this.dropdown.isActive;n.keyCode=s;this.passedElement.triggerEvent(f.EVENTS.choice,{choice:n});if(!n.selected&&!n.disabled){var o=this._canAddItem(t,n.value);if(o.response){this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode});this._triggerChange(n.value)}}this.clearInput();if(r&&this._isSelectOneElement){this.hideDropdown(true);this.containerOuter.focus()}};t.prototype._handleBackspace=function(t){if(!this.config.removeItems||!t){return}var e=t[t.length-1];var i=t.some((function(t){return t.highlighted}));if(this.config.editItems&&!i&&e){this.input.value=e.value;this.input.setWidth();this._removeItem(e);this._triggerChange(e.value)}else{if(!i){this.highlightItem(e,false)}this.removeHighlightedItems(true)}};t.prototype._startLoading=function(){this._store.dispatch((0,h.setIsLoading)(true))};t.prototype._stopLoading=function(){this._store.dispatch((0,h.setIsLoading)(false))};t.prototype._handleLoadingState=function(t){if(t===void 0){t=true}var e=this.itemList.getChild(".".concat(this.config.classNames.placeholder));if(t){this.disable();this.containerOuter.addLoadingState();if(this._isSelectOneElement){if(!e){e=this._getTemplate("placeholder",this.config.loadingText);if(e){this.itemList.append(e)}}else{e.innerHTML=this.config.loadingText}}else{this.input.placeholder=this.config.loadingText}}else{this.enable();this.containerOuter.removeLoadingState();if(this._isSelectOneElement){if(e){e.innerHTML=this._placeholderValue||""}}else{this.input.placeholder=this._placeholderValue||""}}};t.prototype._handleSearch=function(t){if(!this.input.isFocussed){return}var e=this._store.choices;var i=this.config,n=i.searchFloor,s=i.searchChoices;var r=e.some((function(t){return!t.active}));if(t!==null&&typeof t!=="undefined"&&t.length>=n){var o=s?this._searchChoices(t):0;this.passedElement.triggerEvent(f.EVENTS.search,{value:t,resultCount:o})}else if(r){this._isSearching=false;this._store.dispatch((0,c.activateChoices)(true))}};t.prototype._canAddItem=function(t,e){var i=true;var n=typeof this.config.addItemText==="function"?this.config.addItemText(e):this.config.addItemText;if(!this._isSelectOneElement){var s=(0,v.existsInArray)(t,e);if(this.config.maxItemCount>0&&this.config.maxItemCount<=t.length){i=false;n=typeof this.config.maxItemText==="function"?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText}if(!this.config.duplicateItemsAllowed&&s&&i){i=false;n=typeof this.config.uniqueItemText==="function"?this.config.uniqueItemText(e):this.config.uniqueItemText}if(this._isTextElement&&this.config.addItems&&i&&typeof this.config.addItemFilter==="function"&&!this.config.addItemFilter(e)){i=false;n=typeof this.config.customAddItemText==="function"?this.config.customAddItemText(e):this.config.customAddItemText}}return{response:i,notice:n}};t.prototype._searchChoices=function(t){var e=typeof t==="string"?t.trim():t;var i=typeof this._currentValue==="string"?this._currentValue.trim():this._currentValue;if(e.length<1&&e==="".concat(i," ")){return 0}var s=this._store.searchableChoices;var r=e;var a=Object.assign(this.config.fuseOptions,{keys:n([],this.config.searchFields,true),includeMatches:true});var u=new o.default(s,a);var h=u.search(r);this._currentValue=e;this._highlightPosition=0;this._isSearching=true;this._store.dispatch((0,c.filterChoices)(h));return h.length};t.prototype._addEventListeners=function(){var t=document.documentElement;t.addEventListener("touchend",this._onTouchEnd,true);this.containerOuter.element.addEventListener("keydown",this._onKeyDown,true);this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,true);t.addEventListener("click",this._onClick,{passive:true});t.addEventListener("touchmove",this._onTouchMove,{passive:true});this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:true});if(this._isSelectOneElement){this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:true});this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:true})}this.input.element.addEventListener("keyup",this._onKeyUp,{passive:true});this.input.element.addEventListener("focus",this._onFocus,{passive:true});this.input.element.addEventListener("blur",this._onBlur,{passive:true});if(this.input.element.form){this.input.element.form.addEventListener("reset",this._onFormReset,{passive:true})}this.input.addEventListeners()};t.prototype._removeEventListeners=function(){var t=document.documentElement;t.removeEventListener("touchend",this._onTouchEnd,true);this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,true);this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,true);t.removeEventListener("click",this._onClick);t.removeEventListener("touchmove",this._onTouchMove);this.dropdown.element.removeEventListener("mouseover",this._onMouseOver);if(this._isSelectOneElement){this.containerOuter.element.removeEventListener("focus",this._onFocus);this.containerOuter.element.removeEventListener("blur",this._onBlur)}this.input.element.removeEventListener("keyup",this._onKeyUp);this.input.element.removeEventListener("focus",this._onFocus);this.input.element.removeEventListener("blur",this._onBlur);if(this.input.element.form){this.input.element.form.removeEventListener("reset",this._onFormReset)}this.input.removeEventListeners()};t.prototype._onKeyDown=function(t){var e=t.keyCode;var i=this._store.activeItems;var n=this.input.isFocussed;var s=this.dropdown.isActive;var r=this.itemList.hasChildren();var o=String.fromCharCode(e);var c=/[^\x00-\x1F]/.test(o);var a=f.KEY_CODES.BACK_KEY,u=f.KEY_CODES.DELETE_KEY,h=f.KEY_CODES.ENTER_KEY,l=f.KEY_CODES.A_KEY,d=f.KEY_CODES.ESC_KEY,v=f.KEY_CODES.UP_KEY,p=f.KEY_CODES.DOWN_KEY,b=f.KEY_CODES.PAGE_UP_KEY,m=f.KEY_CODES.PAGE_DOWN_KEY;if(!this._isTextElement&&!s&&c){this.showDropdown();if(!this.input.isFocussed){this.input.value+=t.key.toLowerCase()}}switch(e){case l:return this._onSelectKey(t,r);case h:return this._onEnterKey(t,i,s);case d:return this._onEscapeKey(s);case v:case b:case p:case m:return this._onDirectionKey(t,s);case u:case a:return this._onDeleteKey(t,i,n)}};t.prototype._onKeyUp=function(t){var e=t.target,i=t.keyCode;var n=this.input.value;var s=this._store.activeItems;var r=this._canAddItem(s,n);var o=f.KEY_CODES.BACK_KEY,a=f.KEY_CODES.DELETE_KEY;if(this._isTextElement){var u=r.notice&&n;if(u){var h=this._getTemplate("notice",r.notice);this.dropdown.element.innerHTML=h.outerHTML;this.showDropdown(true)}else{this.hideDropdown(true)}}else{var l=i===o||i===a;var d=l&&e&&!e.value;var v=!this._isTextElement&&this._isSearching;var p=this._canSearch&&r.response;if(d&&v){this._isSearching=false;this._store.dispatch((0,c.activateChoices)(true))}else if(p){this._handleSearch(this.input.rawValue)}}this._canSearch=this.config.searchEnabled};t.prototype._onSelectKey=function(t,e){var i=t.ctrlKey,n=t.metaKey;var s=i||n;if(s&&e){this._canSearch=false;var r=this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement;if(r){this.highlightAll()}}};t.prototype._onEnterKey=function(t,e,i){var n=t.target;var s=f.KEY_CODES.ENTER_KEY;var r=n&&n.hasAttribute("data-button");if(this._isTextElement&&n&&n.value){var o=this.input.value;var c=this._canAddItem(e,o);if(c.response){this.hideDropdown(true);this._addItem({value:o});this._triggerChange(o);this.clearInput()}}if(r){this._handleButtonAction(e,n);t.preventDefault()}if(i){var a=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));if(a){if(e[0]){e[0].keyCode=s}this._handleChoiceAction(e,a)}t.preventDefault()}else if(this._isSelectOneElement){this.showDropdown();t.preventDefault()}};t.prototype._onEscapeKey=function(t){if(t){this.hideDropdown(true);this.containerOuter.focus()}};t.prototype._onDirectionKey=function(t,e){var i=t.keyCode,n=t.metaKey;var s=f.KEY_CODES.DOWN_KEY,r=f.KEY_CODES.PAGE_UP_KEY,o=f.KEY_CODES.PAGE_DOWN_KEY;if(e||this._isSelectOneElement){this.showDropdown();this._canSearch=false;var c=i===s||i===o?1:-1;var a=n||i===o||i===r;var u="[data-choice-selectable]";var h=void 0;if(a){if(c>0){h=this.dropdown.element.querySelector("".concat(u,":last-of-type"))}else{h=this.dropdown.element.querySelector(u)}}else{var l=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));if(l){h=(0,v.getAdjacentEl)(l,u,c)}else{h=this.dropdown.element.querySelector(u)}}if(h){if(!(0,v.isScrolledIntoView)(h,this.choiceList.element,c)){this.choiceList.scrollToChildElement(h,c)}this._highlightChoice(h)}t.preventDefault()}};t.prototype._onDeleteKey=function(t,e,i){var n=t.target;if(!this._isSelectOneElement&&!n.value&&i){this._handleBackspace(e);t.preventDefault()}};t.prototype._onTouchMove=function(){if(this._wasTap){this._wasTap=false}};t.prototype._onTouchEnd=function(t){var e=(t||t.touches[0]).target;var i=this._wasTap&&this.containerOuter.element.contains(e);if(i){var n=e===this.containerOuter.element||e===this.containerInner.element;if(n){if(this._isTextElement){this.input.focus()}else if(this._isSelectMultipleElement){this.showDropdown()}}t.stopPropagation()}this._wasTap=true};t.prototype._onMouseDown=function(t){var e=t.target;if(!(e instanceof HTMLElement)){return}if(_&&this.choiceList.element.contains(e)){var i=this.choiceList.element.firstElementChild;var n=this._direction==="ltr"?t.offsetX>=i.offsetWidth:t.offsetX<i.offsetLeft;this._isScrollingOnIe=n}if(e===this.input.element){return}var s=e.closest("[data-button],[data-item],[data-choice]");if(s instanceof HTMLElement){var r=t.shiftKey;var o=this._store.activeItems;var c=s.dataset;if("button"in c){this._handleButtonAction(o,s)}else if("item"in c){this._handleItemAction(o,s,r)}else if("choice"in c){this._handleChoiceAction(o,s)}}t.preventDefault()};t.prototype._onMouseOver=function(t){var e=t.target;if(e instanceof HTMLElement&&"choice"in e.dataset){this._highlightChoice(e)}};t.prototype._onClick=function(t){var e=t.target;var i=this.containerOuter.element.contains(e);if(i){if(!this.dropdown.isActive&&!this.containerOuter.isDisabled){if(this._isTextElement){if(document.activeElement!==this.input.element){this.input.focus()}}else{this.showDropdown();this.containerOuter.focus()}}else if(this._isSelectOneElement&&e!==this.input.element&&!this.dropdown.element.contains(e)){this.hideDropdown()}}else{var n=this._store.highlightedActiveItems.length>0;if(n){this.unhighlightAll()}this.containerOuter.removeFocusState();this.hideDropdown(true)}};t.prototype._onFocus=function(t){var e;var i=this;var n=t.target;var s=n&&this.containerOuter.element.contains(n);if(!s){return}var r=(e={},e[f.TEXT_TYPE]=function(){if(n===i.input.element){i.containerOuter.addFocusState()}},e[f.SELECT_ONE_TYPE]=function(){i.containerOuter.addFocusState();if(n===i.input.element){i.showDropdown(true)}},e[f.SELECT_MULTIPLE_TYPE]=function(){if(n===i.input.element){i.showDropdown(true);i.containerOuter.addFocusState()}},e);r[this.passedElement.element.type]()};t.prototype._onBlur=function(t){var e;var i=this;var n=t.target;var s=n&&this.containerOuter.element.contains(n);if(s&&!this._isScrollingOnIe){var r=this._store.activeItems;var o=r.some((function(t){return t.highlighted}));var c=(e={},e[f.TEXT_TYPE]=function(){if(n===i.input.element){i.containerOuter.removeFocusState();if(o){i.unhighlightAll()}i.hideDropdown(true)}},e[f.SELECT_ONE_TYPE]=function(){i.containerOuter.removeFocusState();if(n===i.input.element||n===i.containerOuter.element&&!i._canSearch){i.hideDropdown(true)}},e[f.SELECT_MULTIPLE_TYPE]=function(){if(n===i.input.element){i.containerOuter.removeFocusState();i.hideDropdown(true);if(o){i.unhighlightAll()}}},e);c[this.passedElement.element.type]()}else{this._isScrollingOnIe=false;this.input.element.focus()}};t.prototype._onFormReset=function(){this._store.dispatch((0,h.resetTo)(this._initialState))};t.prototype._highlightChoice=function(t){var e=this;if(t===void 0){t=null}var i=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(!i.length){return}var n=t;var s=Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState)));s.forEach((function(t){t.classList.remove(e.config.classNames.highlightedState);t.setAttribute("aria-selected","false")}));if(n){this._highlightPosition=i.indexOf(n)}else{if(i.length>this._highlightPosition){n=i[this._highlightPosition]}else{n=i[i.length-1]}if(!n){n=i[0]}}n.classList.add(this.config.classNames.highlightedState);n.setAttribute("aria-selected","true");this.passedElement.triggerEvent(f.EVENTS.highlightChoice,{el:n});if(this.dropdown.isActive){this.input.setActiveDescendant(n.id);this.containerOuter.setActiveDescendant(n.id)}};t.prototype._addItem=function(t){var e=t.value,i=t.label,n=i===void 0?null:i,s=t.choiceId,r=s===void 0?-1:s,o=t.groupId,c=o===void 0?-1:o,a=t.customProperties,h=a===void 0?{}:a,l=t.placeholder,d=l===void 0?false:l,v=t.keyCode,p=v===void 0?-1:v;var b=typeof e==="string"?e.trim():e;var m=this._store.items;var _=n||b;var g=r||-1;var x=c>=0?this._store.getGroupById(c):null;var y=m?m.length+1:1;if(this.config.prependValue){b=this.config.prependValue+b.toString()}if(this.config.appendValue){b+=this.config.appendValue.toString()}this._store.dispatch((0,u.addItem)({value:b,label:_,id:y,choiceId:g,groupId:c,customProperties:h,placeholder:d,keyCode:p}));if(this._isSelectOneElement){this.removeActiveItems(y)}this.passedElement.triggerEvent(f.EVENTS.addItem,{id:y,value:b,label:_,customProperties:h,groupValue:x&&x.value?x.value:null,keyCode:p})};t.prototype._removeItem=function(t){var e=t.id,i=t.value,n=t.label,s=t.customProperties,r=t.choiceId,o=t.groupId;var c=o&&o>=0?this._store.getGroupById(o):null;if(!e||!r){return}this._store.dispatch((0,u.removeItem)(e,r));this.passedElement.triggerEvent(f.EVENTS.removeItem,{id:e,value:i,label:n,customProperties:s,groupValue:c&&c.value?c.value:null})};t.prototype._addChoice=function(t){var e=t.value,i=t.label,n=i===void 0?null:i,s=t.isSelected,r=s===void 0?false:s,o=t.isDisabled,a=o===void 0?false:o,u=t.groupId,h=u===void 0?-1:u,l=t.customProperties,f=l===void 0?{}:l,d=t.placeholder,v=d===void 0?false:d,p=t.keyCode,b=p===void 0?-1:p;if(typeof e==="undefined"||e===null){return}var m=this._store.choices;var _=n||e;var g=m?m.length+1:1;var x="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(g);this._store.dispatch((0,c.addChoice)({id:g,groupId:h,elementId:x,value:e,label:_,disabled:a,customProperties:f,placeholder:v,keyCode:b}));if(r){this._addItem({value:e,label:_,choiceId:g,customProperties:f,placeholder:v,keyCode:b})}};t.prototype._addGroup=function(t){var e=this;var i=t.group,n=t.id,s=t.valueKey,r=s===void 0?"value":s,o=t.labelKey,c=o===void 0?"label":o;var u=(0,v.isType)("Object",i)?i.choices:Array.from(i.getElementsByTagName("OPTION"));var h=n||Math.floor((new Date).valueOf()*Math.random());var l=i.disabled?i.disabled:false;if(u){this._store.dispatch((0,a.addGroup)({value:i.label,id:h,active:true,disabled:l}));var f=function(t){var i=t.disabled||t.parentNode&&t.parentNode.disabled;e._addChoice({value:t[r],label:(0,v.isType)("Object",t)?t[c]:t.innerHTML,isSelected:t.selected,isDisabled:i,groupId:h,customProperties:t.customProperties,placeholder:t.placeholder})};u.forEach(f)}else{this._store.dispatch((0,a.addGroup)({value:i.label,id:i.id,active:false,disabled:i.disabled}))}};t.prototype._getTemplate=function(t){var e;var i=[];for(var s=1;s<arguments.length;s++){i[s-1]=arguments[s]}return(e=this._templates[t]).call.apply(e,n([this,this.config],i,false))};t.prototype._createTemplates=function(){var t=this.config.callbackOnCreateTemplates;var e={};if(t&&typeof t==="function"){e=t.call(this,v.strToEl)}this._templates=(0,r.default)(m.default,e)};t.prototype._createElements=function(){this.containerOuter=new l.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position});this.containerInner=new l.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position});this.input=new l.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste});this.choiceList=new l.List({element:this._getTemplate("choiceList",this._isSelectOneElement)});this.itemList=new l.List({element:this._getTemplate("itemList",this._isSelectOneElement)});this.dropdown=new l.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})};t.prototype._createStructure=function(){this.passedElement.conceal();this.containerInner.wrap(this.passedElement.element);this.containerOuter.wrap(this.containerInner.element);if(this._isSelectOneElement){this.input.placeholder=this.config.searchPlaceholderValue||""}else if(this._placeholderValue){this.input.placeholder=this._placeholderValue;this.input.setWidth()}this.containerOuter.element.appendChild(this.containerInner.element);this.containerOuter.element.appendChild(this.dropdown.element);this.containerInner.element.appendChild(this.itemList.element);if(!this._isTextElement){this.dropdown.element.appendChild(this.choiceList.element)}if(!this._isSelectOneElement){this.containerInner.element.appendChild(this.input.element)}else if(this.config.searchEnabled){this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild)}if(this._isSelectElement){this._highlightPosition=0;this._isSearching=false;this._startLoading();if(this._presetGroups.length){this._addPredefinedGroups(this._presetGroups)}else{this._addPredefinedChoices(this._presetChoices)}this._stopLoading()}if(this._isTextElement){this._addPredefinedItems(this._presetItems)}};t.prototype._addPredefinedGroups=function(t){var e=this;var i=this.passedElement.placeholderOption;if(i&&i.parentNode&&i.parentNode.tagName==="SELECT"){this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:true})}t.forEach((function(t){return e._addGroup({group:t,id:t.id||null})}))};t.prototype._addPredefinedChoices=function(t){var e=this;if(this.config.shouldSort){t.sort(this.config.sorter)}var i=t.some((function(t){return t.selected}));var n=t.findIndex((function(t){return t.disabled===undefined||!t.disabled}));t.forEach((function(t,s){var r=t.value,o=r===void 0?"":r,c=t.label,a=t.customProperties,u=t.placeholder;if(e._isSelectElement){if(t.choices){e._addGroup({group:t,id:t.id||null})}else{var h=e._isSelectOneElement&&!i&&s===n;var l=h?true:t.selected;var f=t.disabled;e._addChoice({value:o,label:c,isSelected:!!l,isDisabled:!!f,placeholder:!!u,customProperties:a})}}else{e._addChoice({value:o,label:c,isSelected:!!t.selected,isDisabled:!!t.disabled,placeholder:!!t.placeholder,customProperties:a})}}))};t.prototype._addPredefinedItems=function(t){var e=this;t.forEach((function(t){if(typeof t==="object"&&t.value){e._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder})}if(typeof t==="string"){e._addItem({value:t})}}))};t.prototype._setChoiceOrItem=function(t){var e=this;var i=(0,v.getType)(t).toLowerCase();var n={object:function(){if(!t.value){return}if(!e._isTextElement){e._addChoice({value:t.value,label:t.label,isSelected:true,isDisabled:false,customProperties:t.customProperties,placeholder:t.placeholder})}else{e._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder})}},string:function(){if(!e._isTextElement){e._addChoice({value:t,label:t,isSelected:true,isDisabled:false})}else{e._addItem({value:t})}}};n[i]()};t.prototype._findAndSelectChoiceByValue=function(t){var e=this;var i=this._store.choices;var n=i.find((function(i){return e.config.valueComparer(i.value,t)}));if(n&&!n.selected){this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode})}};t.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var t=this.passedElement.placeholderOption;return t?t.text:null}var e=this.config,i=e.placeholder,n=e.placeholderValue;var s=this.passedElement.element.dataset;if(i){if(n){return n}if(s.placeholder){return s.placeholder}}return null};return t}();e["default"]=x},613:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(799);var s=i(883);var r=function(){function t(t){var e=t.element,i=t.type,n=t.classNames,s=t.position;this.element=e;this.classNames=n;this.type=i;this.position=s;this.isOpen=false;this.isFlipped=false;this.isFocussed=false;this.isDisabled=false;this.isLoading=false;this._onFocus=this._onFocus.bind(this);this._onBlur=this._onBlur.bind(this)}t.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus);this.element.addEventListener("blur",this._onBlur)};t.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus);this.element.removeEventListener("blur",this._onBlur)};t.prototype.shouldFlip=function(t){if(typeof t!=="number"){return false}var e=false;if(this.position==="auto"){e=!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches}else if(this.position==="top"){e=true}return e};t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)};t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")};t.prototype.open=function(t){this.element.classList.add(this.classNames.openState);this.element.setAttribute("aria-expanded","true");this.isOpen=true;if(this.shouldFlip(t)){this.element.classList.add(this.classNames.flippedState);this.isFlipped=true}};t.prototype.close=function(){this.element.classList.remove(this.classNames.openState);this.element.setAttribute("aria-expanded","false");this.removeActiveDescendant();this.isOpen=false;if(this.isFlipped){this.element.classList.remove(this.classNames.flippedState);this.isFlipped=false}};t.prototype.focus=function(){if(!this.isFocussed){this.element.focus()}};t.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)};t.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)};t.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState);this.element.removeAttribute("aria-disabled");if(this.type===s.SELECT_ONE_TYPE){this.element.setAttribute("tabindex","0")}this.isDisabled=false};t.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState);this.element.setAttribute("aria-disabled","true");if(this.type===s.SELECT_ONE_TYPE){this.element.setAttribute("tabindex","-1")}this.isDisabled=true};t.prototype.wrap=function(t){(0,n.wrap)(t,this.element)};t.prototype.unwrap=function(t){if(this.element.parentNode){this.element.parentNode.insertBefore(t,this.element);this.element.parentNode.removeChild(this.element)}};t.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState);this.element.setAttribute("aria-busy","true");this.isLoading=true};t.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState);this.element.removeAttribute("aria-busy");this.isLoading=false};t.prototype._onFocus=function(){this.isFocussed=true};t.prototype._onBlur=function(){this.isFocussed=false};return t}();e["default"]=r},217:function(t,e){Object.defineProperty(e,"__esModule",{value:true});var i=function(){function t(t){var e=t.element,i=t.type,n=t.classNames;this.element=e;this.classNames=n;this.type=i;this.isActive=false}Object.defineProperty(t.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:false,configurable:true});t.prototype.getChild=function(t){return this.element.querySelector(t)};t.prototype.show=function(){this.element.classList.add(this.classNames.activeState);this.element.setAttribute("aria-expanded","true");this.isActive=true;return this};t.prototype.hide=function(){this.element.classList.remove(this.classNames.activeState);this.element.setAttribute("aria-expanded","false");this.isActive=false;return this};return t}();e["default"]=i},520:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.WrappedSelect=e.WrappedInput=e.List=e.Input=e.Container=e.Dropdown=void 0;var s=n(i(217));e.Dropdown=s.default;var r=n(i(613));e.Container=r.default;var o=n(i(11));e.Input=o.default;var c=n(i(624));e.List=c.default;var a=n(i(541));e.WrappedInput=a.default;var u=n(i(982));e.WrappedSelect=u.default},11:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(799);var s=i(883);var r=function(){function t(t){var e=t.element,i=t.type,n=t.classNames,s=t.preventPaste;this.element=e;this.type=i;this.classNames=n;this.preventPaste=s;this.isFocussed=this.element.isEqualNode(document.activeElement);this.isDisabled=e.disabled;this._onPaste=this._onPaste.bind(this);this._onInput=this._onInput.bind(this);this._onFocus=this._onFocus.bind(this);this._onBlur=this._onBlur.bind(this)}Object.defineProperty(t.prototype,"placeholder",{set:function(t){this.element.placeholder=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return(0,n.sanitise)(this.element.value)},set:function(t){this.element.value=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawValue",{get:function(){return this.element.value},enumerable:false,configurable:true});t.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste);this.element.addEventListener("input",this._onInput,{passive:true});this.element.addEventListener("focus",this._onFocus,{passive:true});this.element.addEventListener("blur",this._onBlur,{passive:true})};t.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput);this.element.removeEventListener("paste",this._onPaste);this.element.removeEventListener("focus",this._onFocus);this.element.removeEventListener("blur",this._onBlur)};t.prototype.enable=function(){this.element.removeAttribute("disabled");this.isDisabled=false};t.prototype.disable=function(){this.element.setAttribute("disabled","");this.isDisabled=true};t.prototype.focus=function(){if(!this.isFocussed){this.element.focus()}};t.prototype.blur=function(){if(this.isFocussed){this.element.blur()}};t.prototype.clear=function(t){if(t===void 0){t=true}if(this.element.value){this.element.value=""}if(t){this.setWidth()}return this};t.prototype.setWidth=function(){var t=this.element,e=t.style,i=t.value,n=t.placeholder;e.minWidth="".concat(n.length+1,"ch");e.width="".concat(i.length+1,"ch")};t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)};t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")};t.prototype._onInput=function(){if(this.type!==s.SELECT_ONE_TYPE){this.setWidth()}};t.prototype._onPaste=function(t){if(this.preventPaste){t.preventDefault()}};t.prototype._onFocus=function(){this.isFocussed=true};t.prototype._onBlur=function(){this.isFocussed=false};return t}();e["default"]=r},624:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(883);var s=function(){function t(t){var e=t.element;this.element=e;this.scrollPos=this.element.scrollTop;this.height=this.element.offsetHeight}t.prototype.clear=function(){this.element.innerHTML=""};t.prototype.append=function(t){this.element.appendChild(t)};t.prototype.getChild=function(t){return this.element.querySelector(t)};t.prototype.hasChildren=function(){return this.element.hasChildNodes()};t.prototype.scrollToTop=function(){this.element.scrollTop=0};t.prototype.scrollToChildElement=function(t,e){var i=this;if(!t){return}var n=this.element.offsetHeight;var s=this.element.scrollTop+n;var r=t.offsetHeight;var o=t.offsetTop+r;var c=e>0?this.element.scrollTop+o-s:t.offsetTop;requestAnimationFrame((function(){i._animateScroll(c,e)}))};t.prototype._scrollDown=function(t,e,i){var n=(i-t)/e;var s=n>1?n:1;this.element.scrollTop=t+s};t.prototype._scrollUp=function(t,e,i){var n=(t-i)/e;var s=n>1?n:1;this.element.scrollTop=t-s};t.prototype._animateScroll=function(t,e){var i=this;var s=n.SCROLLING_SPEED;var r=this.element.scrollTop;var o=false;if(e>0){this._scrollDown(r,s,t);if(r<t){o=true}}else{this._scrollUp(r,s,t);if(r>t){o=true}}if(o){requestAnimationFrame((function(){i._animateScroll(t,e)}))}};return t}();e["default"]=s},730:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(799);var s=function(){function t(t){var e=t.element,i=t.classNames;this.element=e;this.classNames=i;if(!(e instanceof HTMLInputElement)&&!(e instanceof HTMLSelectElement)){throw new TypeError("Invalid element passed")}this.isDisabled=false}Object.defineProperty(t.prototype,"isActive",{get:function(){return this.element.dataset.choice==="active"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"dir",{get:function(){return this.element.dir},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.value=t},enumerable:false,configurable:true});t.prototype.conceal=function(){this.element.classList.add(this.classNames.input);this.element.hidden=true;this.element.tabIndex=-1;var t=this.element.getAttribute("style");if(t){this.element.setAttribute("data-choice-orig-style",t)}this.element.setAttribute("data-choice","active")};t.prototype.reveal=function(){this.element.classList.remove(this.classNames.input);this.element.hidden=false;this.element.removeAttribute("tabindex");var t=this.element.getAttribute("data-choice-orig-style");if(t){this.element.removeAttribute("data-choice-orig-style");this.element.setAttribute("style",t)}else{this.element.removeAttribute("style")}this.element.removeAttribute("data-choice");this.element.value=this.element.value};t.prototype.enable=function(){this.element.removeAttribute("disabled");this.element.disabled=false;this.isDisabled=false};t.prototype.disable=function(){this.element.setAttribute("disabled","");this.element.disabled=true;this.isDisabled=true};t.prototype.triggerEvent=function(t,e){(0,n.dispatchEvent)(this.element,t,e)};return t}();e["default"]=s},541:function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var r=s(i(730));var o=function(t){n(e,t);function e(e){var i=e.element,n=e.classNames,s=e.delimiter;var r=t.call(this,{element:i,classNames:n})||this;r.delimiter=s;return r}Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.setAttribute("value",t);this.element.value=t},enumerable:false,configurable:true});return e}(r.default);e["default"]=o},982:function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var r=s(i(730));var o=function(t){n(e,t);function e(e){var i=e.element,n=e.classNames,s=e.template;var r=t.call(this,{element:i,classNames:n})||this;r.template=s;return r}Object.defineProperty(e.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(t){var e=this;var i=document.createDocumentFragment();var n=function(t){var n=e.template(t);i.appendChild(n)};t.forEach((function(t){return n(t)}));this.appendDocFragment(i)},enumerable:false,configurable:true});e.prototype.appendDocFragment=function(t){this.element.innerHTML="";this.element.appendChild(t)};return e}(r.default);e["default"]=o},883:function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.SCROLLING_SPEED=e.SELECT_MULTIPLE_TYPE=e.SELECT_ONE_TYPE=e.TEXT_TYPE=e.KEY_CODES=e.ACTION_TYPES=e.EVENTS=void 0;e.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"};e.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"};e.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34};e.TEXT_TYPE="text";e.SELECT_ONE_TYPE="select-one";e.SELECT_MULTIPLE_TYPE="select-multiple";e.SCROLLING_SPEED=4},789:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.DEFAULT_CONFIG=e.DEFAULT_CLASSNAMES=void 0;var n=i(799);e.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"};e.DEFAULT_CONFIG={items:[],choices:[],silent:false,renderChoiceLimit:-1,maxItemCount:-1,addItems:true,addItemFilter:null,removeItems:true,removeItemButton:false,editItems:false,allowHTML:true,duplicateItemsAllowed:true,delimiter:",",paste:true,searchEnabled:true,searchChoices:true,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:true,shouldSort:true,shouldSortItems:false,sorter:n.sortByAlpha,placeholder:true,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(t){return'Press Enter to add <b>"'.concat((0,n.sanitise)(t),'"</b>')},maxItemText:function(t){return"Only ".concat(t," values can be added")},valueComparer:function(t,e){return t===e},fuseOptions:{includeScore:true},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:e.DEFAULT_CLASSNAMES}},18:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},978:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},948:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},359:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},285:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},533:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},187:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){if(n===undefined)n=i;var s=Object.getOwnPropertyDescriptor(e,i);if(!s||("get"in s?!e.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return e[i]}}}Object.defineProperty(t,n,s)}:function(t,e,i,n){if(n===undefined)n=i;t[n]=e[i]});var s=this&&this.__exportStar||function(t,e){for(var i in t)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(e,i))n(e,t,i)};Object.defineProperty(e,"__esModule",{value:true});s(i(18),e);s(i(978),e);s(i(948),e);s(i(359),e);s(i(285),e);s(i(533),e);s(i(287),e);s(i(132),e);s(i(837),e);s(i(598),e);s(i(369),e);s(i(37),e);s(i(47),e);s(i(923),e);s(i(876),e)},287:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},132:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},837:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},598:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},37:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},369:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},47:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},923:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},876:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},799:function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.parseCustomProperties=e.diff=e.cloneObject=e.existsInArray=e.dispatchEvent=e.sortByScore=e.sortByAlpha=e.strToEl=e.sanitise=e.isScrolledIntoView=e.getAdjacentEl=e.wrap=e.isType=e.getType=e.generateId=e.generateChars=e.getRandomNumber=void 0;var i=function(t,e){return Math.floor(Math.random()*(e-t)+t)};e.getRandomNumber=i;var n=function(t){return Array.from({length:t},(function(){return(0,e.getRandomNumber)(0,36).toString(36)})).join("")};e.generateChars=n;var s=function(t,i){var n=t.id||t.name&&"".concat(t.name,"-").concat((0,e.generateChars)(2))||(0,e.generateChars)(4);n=n.replace(/(:|\.|\[|\]|,)/g,"");n="".concat(i,"-").concat(n);return n};e.generateId=s;var r=function(t){return Object.prototype.toString.call(t).slice(8,-1)};e.getType=r;var o=function(t,i){return i!==undefined&&i!==null&&(0,e.getType)(i)===t};e.isType=o;var c=function(t,e){if(e===void 0){e=document.createElement("div")}if(t.parentNode){if(t.nextSibling){t.parentNode.insertBefore(e,t.nextSibling)}else{t.parentNode.appendChild(e)}}return e.appendChild(t)};e.wrap=c;var a=function(t,e,i){if(i===void 0){i=1}var n="".concat(i>0?"next":"previous","ElementSibling");var s=t[n];while(s){if(s.matches(e)){return s}s=s[n]}return s};e.getAdjacentEl=a;var u=function(t,e,i){if(i===void 0){i=1}if(!t){return false}var n;if(i>0){n=e.scrollTop+e.offsetHeight>=t.offsetTop+t.offsetHeight}else{n=t.offsetTop>=e.scrollTop}return n};e.isScrolledIntoView=u;var h=function(t){if(typeof t!=="string"){return t}return t.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")};e.sanitise=h;e.strToEl=function(){var t=document.createElement("div");return function(e){var i=e.trim();t.innerHTML=i;var n=t.children[0];while(t.firstChild){t.removeChild(t.firstChild)}return n}}();var l=function(t,e){var i=t.value,n=t.label,s=n===void 0?i:n;var r=e.value,o=e.label,c=o===void 0?r:o;return s.localeCompare(c,[],{sensitivity:"base",ignorePunctuation:true,numeric:true})};e.sortByAlpha=l;var f=function(t,e){var i=t.score,n=i===void 0?0:i;var s=e.score,r=s===void 0?0:s;return n-r};e.sortByScore=f;var d=function(t,e,i){if(i===void 0){i=null}var n=new CustomEvent(e,{detail:i,bubbles:true,cancelable:true});return t.dispatchEvent(n)};e.dispatchEvent=d;var v=function(t,e,i){if(i===void 0){i="value"}return t.some((function(t){if(typeof e==="string"){return t[i]===e.trim()}return t[i]===e}))};e.existsInArray=v;var p=function(t){return JSON.parse(JSON.stringify(t))};e.cloneObject=p;var b=function(t,e){var i=Object.keys(t).sort();var n=Object.keys(e).sort();return i.filter((function(t){return n.indexOf(t)<0}))};e.diff=b;var m=function(t){if(typeof t!=="undefined"){try{return JSON.parse(t)}catch(e){return t}}return{}};e.parseCustomProperties=m},273:function(t,e){var i=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,s=e.length,r;n<s;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=[];function n(t,n){if(t===void 0){t=e.defaultState}if(n===void 0){n={}}switch(n.type){case"ADD_CHOICE":{var s=n;var r={id:s.id,elementId:s.elementId,groupId:s.groupId,value:s.value,label:s.label||s.value,disabled:s.disabled||false,selected:false,active:true,score:9999,customProperties:s.customProperties,placeholder:s.placeholder||false};return i(i([],t,true),[r],false)}case"ADD_ITEM":{var o=n;if(o.choiceId>-1){return t.map((function(t){var e=t;if(e.id===parseInt("".concat(o.choiceId),10)){e.selected=true}return e}))}return t}case"REMOVE_ITEM":{var c=n;if(c.choiceId&&c.choiceId>-1){return t.map((function(t){var e=t;if(e.id===parseInt("".concat(c.choiceId),10)){e.selected=false}return e}))}return t}case"FILTER_CHOICES":{var a=n;return t.map((function(t){var e=t;e.active=a.results.some((function(t){var i=t.item,n=t.score;if(i.id===e.id){e.score=n;return true}return false}));return e}))}case"ACTIVATE_CHOICES":{var u=n;return t.map((function(t){var e=t;e.active=u.active;return e}))}case"CLEAR_CHOICES":{return e.defaultState}default:{return t}}}e["default"]=n},871:function(t,e){var i=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,s=e.length,r;n<s;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=[];function n(t,n){if(t===void 0){t=e.defaultState}if(n===void 0){n={}}switch(n.type){case"ADD_GROUP":{var s=n;return i(i([],t,true),[{id:s.id,value:s.value,active:s.active,disabled:s.disabled}],false)}case"CLEAR_CHOICES":{return[]}default:{return t}}}e["default"]=n},655:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;var s=i(791);var r=n(i(52));var o=n(i(871));var c=n(i(273));var a=n(i(502));var u=i(799);e.defaultState={groups:[],items:[],choices:[],loading:false};var h=(0,s.combineReducers)({items:r.default,groups:o.default,choices:c.default,loading:a.default});var l=function(t,i){var n=t;if(i.type==="CLEAR_ALL"){n=e.defaultState}else if(i.type==="RESET_TO"){return(0,u.cloneObject)(i.state)}return h(n,i)};e["default"]=l},52:function(t,e){var i=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,s=e.length,r;n<s;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=[];function n(t,n){if(t===void 0){t=e.defaultState}if(n===void 0){n={}}switch(n.type){case"ADD_ITEM":{var s=n;var r=i(i([],t,true),[{id:s.id,choiceId:s.choiceId,groupId:s.groupId,value:s.value,label:s.label,active:true,highlighted:false,customProperties:s.customProperties,placeholder:s.placeholder||false,keyCode:null}],false);return r.map((function(t){var e=t;e.highlighted=false;return e}))}case"REMOVE_ITEM":{return t.map((function(t){var e=t;if(e.id===n.id){e.active=false}return e}))}case"HIGHLIGHT_ITEM":{var o=n;return t.map((function(t){var e=t;if(e.id===o.id){e.highlighted=o.highlighted}return e}))}default:{return t}}}e["default"]=n},502:function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=false;var i=function(t,i){if(t===void 0){t=e.defaultState}if(i===void 0){i={}}switch(i.type){case"SET_IS_LOADING":{return i.isLoading}default:{return t}}};e["default"]=i},744:function(t,e,i){var n=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,s=e.length,r;n<s;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};var s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var r=i(791);var o=s(i(655));var c=function(){function t(){this._store=(0,r.createStore)(o.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}t.prototype.subscribe=function(t){this._store.subscribe(t)};t.prototype.dispatch=function(t){this._store.dispatch(t)};Object.defineProperty(t.prototype,"state",{get:function(){return this._store.getState()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"activeItems",{get:function(){return this.items.filter((function(t){return t.active===true}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"choices",{get:function(){return this.state.choices},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choices.filter((function(t){return t.active===true}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(t){return t.disabled!==true}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(t){return t.placeholder!==true}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"placeholderChoice",{get:function(){return n([],this.choices,true).reverse().find((function(t){return t.placeholder===true}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"groups",{get:function(){return this.state.groups},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"activeGroups",{get:function(){var t=this,e=t.groups,i=t.choices;return e.filter((function(t){var e=t.active===true&&t.disabled===false;var n=i.some((function(t){return t.active===true&&t.disabled===false}));return e&&n}),[])},enumerable:false,configurable:true});t.prototype.isLoading=function(){return this.state.loading};t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(e){return e.id===parseInt(t,10)}))};t.prototype.getGroupById=function(t){return this.groups.find((function(e){return e.id===t}))};return t}();e["default"]=c},686:function(t,e){Object.defineProperty(e,"__esModule",{value:true});var i={containerOuter:function(t,e,i,n,s,r,o){var c=t.classNames.containerOuter;var a=Object.assign(document.createElement("div"),{className:c});a.dataset.type=r;if(e){a.dir=e}if(n){a.tabIndex=0}if(i){a.setAttribute("role",s?"combobox":"listbox");if(s){a.setAttribute("aria-autocomplete","list")}}a.setAttribute("aria-haspopup","true");a.setAttribute("aria-expanded","false");if(o){a.setAttribute("aria-labelledby",o)}return a},containerInner:function(t){var e=t.classNames.containerInner;return Object.assign(document.createElement("div"),{className:e})},itemList:function(t,e){var i=t.classNames,n=i.list,s=i.listSingle,r=i.listItems;return Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(e?s:r)})},placeholder:function(t,e){var i;var n=t.allowHTML,s=t.classNames.placeholder;return Object.assign(document.createElement("div"),(i={className:s},i[n?"innerHTML":"innerText"]=e,i))},item:function(t,e,i){var n,s;var r=t.allowHTML,o=t.classNames,c=o.item,a=o.button,u=o.highlightedState,h=o.itemSelectable,l=o.placeholder;var f=e.id,d=e.value,v=e.label,p=e.customProperties,b=e.active,m=e.disabled,_=e.highlighted,g=e.placeholder;var x=Object.assign(document.createElement("div"),(n={className:c},n[r?"innerHTML":"innerText"]=v,n));Object.assign(x.dataset,{item:"",id:f,value:d,customProperties:p});if(b){x.setAttribute("aria-selected","true")}if(m){x.setAttribute("aria-disabled","true")}if(g){x.classList.add(l)}x.classList.add(_?u:h);if(i){if(m){x.classList.remove(h)}x.dataset.deletable="";var y="Remove item";var w=Object.assign(document.createElement("button"),(s={type:"button",className:a},s[r?"innerHTML":"innerText"]=y,s));w.setAttribute("aria-label","".concat(y,": '").concat(d,"'"));w.dataset.button="";x.appendChild(w)}return x},choiceList:function(t,e){var i=t.classNames.list;var n=Object.assign(document.createElement("div"),{className:i});if(!e){n.setAttribute("aria-multiselectable","true")}n.setAttribute("role","listbox");return n},choiceGroup:function(t,e){var i;var n=t.allowHTML,s=t.classNames,r=s.group,o=s.groupHeading,c=s.itemDisabled;var a=e.id,u=e.value,h=e.disabled;var l=Object.assign(document.createElement("div"),{className:"".concat(r," ").concat(h?c:"")});l.setAttribute("role","group");Object.assign(l.dataset,{group:"",id:a,value:u});if(h){l.setAttribute("aria-disabled","true")}l.appendChild(Object.assign(document.createElement("div"),(i={className:o},i[n?"innerHTML":"innerText"]=u,i)));return l},choice:function(t,e,i){var n;var s=t.allowHTML,r=t.classNames,o=r.item,c=r.itemChoice,a=r.itemSelectable,u=r.selectedState,h=r.itemDisabled,l=r.placeholder;var f=e.id,d=e.value,v=e.label,p=e.groupId,b=e.elementId,m=e.disabled,_=e.selected,g=e.placeholder;var x=Object.assign(document.createElement("div"),(n={id:b},n[s?"innerHTML":"innerText"]=v,n.className="".concat(o," ").concat(c),n));if(_){x.classList.add(u)}if(g){x.classList.add(l)}x.setAttribute("role",p&&p>0?"treeitem":"option");Object.assign(x.dataset,{choice:"",id:f,value:d,selectText:i});if(m){x.classList.add(h);x.dataset.choiceDisabled="";x.setAttribute("aria-disabled","true")}else{x.classList.add(a);x.dataset.choiceSelectable=""}return x},input:function(t,e){var i=t.classNames,n=i.input,s=i.inputCloned;var r=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(n," ").concat(s),autocomplete:"off",autocapitalize:"off",spellcheck:false});r.setAttribute("role","textbox");r.setAttribute("aria-autocomplete","list");r.setAttribute("aria-label",e);return r},dropdown:function(t){var e=t.classNames,i=e.list,n=e.listDropdown;var s=document.createElement("div");s.classList.add(i,n);s.setAttribute("aria-expanded","false");return s},notice:function(t,e,i){var n;var s=t.allowHTML,r=t.classNames,o=r.item,c=r.itemChoice,a=r.noResults,u=r.noChoices;if(i===void 0){i=""}var h=[o,c];if(i==="no-choices"){h.push(u)}else if(i==="no-results"){h.push(a)}return Object.assign(document.createElement("div"),(n={},n[s?"innerHTML":"innerText"]=e,n.className=h.join(" "),n))},option:function(t){var e=t.label,i=t.value,n=t.customProperties,s=t.active,r=t.disabled;var o=new Option(e,i,false,s);if(n){o.dataset.customProperties="".concat(n)}o.disabled=!!r;return o}};e["default"]=i},996:function(t){var e=function t(e){return i(e)&&!n(e)};function i(t){return!!t&&typeof t==="object"}function n(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||o(t)}var s=typeof Symbol==="function"&&Symbol.for;var r=s?Symbol.for("react.element"):60103;function o(t){return t.$$typeof===r}function c(t){return Array.isArray(t)?[]:{}}function a(t,e){return e.clone!==false&&e.isMergeableObject(t)?b(c(t),t,e):t}function u(t,e,i){return t.concat(e).map((function(t){return a(t,i)}))}function h(t,e){if(!e.customMerge){return b}var i=e.customMerge(t);return typeof i==="function"?i:b}function l(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}function f(t){return Object.keys(t).concat(l(t))}function d(t,e){try{return e in t}catch(t){return false}}function v(t,e){return d(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function p(t,e,i){var n={};if(i.isMergeableObject(t)){f(t).forEach((function(e){n[e]=a(t[e],i)}))}f(e).forEach((function(s){if(v(t,s)){return}if(d(t,s)&&i.isMergeableObject(e[s])){n[s]=h(s,i)(t[s],e[s],i)}else{n[s]=a(e[s],i)}}));return n}function b(t,i,n){n=n||{};n.arrayMerge=n.arrayMerge||u;n.isMergeableObject=n.isMergeableObject||e;n.cloneUnlessOtherwiseSpecified=a;var s=Array.isArray(i);var r=Array.isArray(t);var o=s===r;if(!o){return a(i,n)}else if(s){return n.arrayMerge(t,i,n)}else{return p(t,i,n)}}b.all=function t(e,i){if(!Array.isArray(e)){throw new Error("first argument should be an array")}return e.reduce((function(t,e){return b(t,e,i)}),{})};var m=b;t.exports=m},221:function(t,e,i){i.r(e);i.d(e,{default:function(){return gt}});function n(t){return!Array.isArray?v(t)==="[object Array]":Array.isArray(t)}const s=1/0;function r(t){if(typeof t=="string"){return t}let e=t+"";return e=="0"&&1/t==-s?"-0":e}function o(t){return t==null?"":r(t)}function c(t){return typeof t==="string"}function a(t){return typeof t==="number"}function u(t){return t===true||t===false||l(t)&&v(t)=="[object Boolean]"}function h(t){return typeof t==="object"}function l(t){return h(t)&&t!==null}function f(t){return t!==undefined&&t!==null}function d(t){return!t.trim().length}function v(t){return t==null?t===undefined?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const p="Incorrect 'index' type";const b=t=>`Invalid value for key ${t}`;const m=t=>`Pattern length exceeds max of ${t}.`;const _=t=>`Missing ${t} property in key`;const g=t=>`Property 'weight' in key '${t}' must be a positive integer`;const x=Object.prototype.hasOwnProperty;class y{constructor(t){this._keys=[];this._keyMap={};let e=0;t.forEach((t=>{let i=w(t);e+=i.weight;this._keys.push(i);this._keyMap[i.id]=i;e+=i.weight}));this._keys.forEach((t=>{t.weight/=e}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function w(t){let e=null;let i=null;let s=null;let r=1;let o=null;if(c(t)||n(t)){s=t;e=O(t);i=j(t)}else{if(!x.call(t,"name")){throw new Error(_("name"))}const n=t.name;s=n;if(x.call(t,"weight")){r=t.weight;if(r<=0){throw new Error(g(n))}}e=O(n);i=j(n);o=t.getFn}return{path:e,id:i,weight:r,src:s,getFn:o}}function O(t){return n(t)?t:t.split(".")}function j(t){return n(t)?t.join("."):t}function I(t,e){let i=[];let s=false;const r=(t,e,h)=>{if(!f(t)){return}if(!e[h]){i.push(t)}else{let l=e[h];const d=t[l];if(!f(d)){return}if(h===e.length-1&&(c(d)||a(d)||u(d))){i.push(o(d))}else if(n(d)){s=true;for(let t=0,i=d.length;t<i;t+=1){r(d[t],e,h+1)}}else if(e.length){r(d,e,h+1)}}};r(t,c(e)?e.split("."):e,0);return s?i:i[0]}const M={includeMatches:false,findAllMatches:false,minMatchCharLength:1};const E={isCaseSensitive:false,includeScore:false,keys:[],shouldSort:true,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1};const C={location:0,threshold:.6,distance:100};const A={useExtendedSearch:false,getFn:I,ignoreLocation:false,ignoreFieldNorm:false,fieldNormWeight:1};var S={...E,...M,...C,...A};const L=/[^ ]+/g;function k(t=1,e=3){const i=new Map;const n=Math.pow(10,e);return{get(e){const s=e.match(L).length;if(i.has(s)){return i.get(s)}const r=1/Math.pow(s,.5*t);const o=parseFloat(Math.round(r*n)/n);i.set(s,o);return o},clear(){i.clear()}}}class T{constructor({getFn:t=S.getFn,fieldNormWeight:e=S.fieldNormWeight}={}){this.norm=k(e,3);this.getFn=t;this.isCreated=false;this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t;this._keysMap={};t.forEach(((t,e)=>{this._keysMap[t.id]=e}))}create(){if(this.isCreated||!this.docs.length){return}this.isCreated=true;if(c(this.docs[0])){this.docs.forEach(((t,e)=>{this._addString(t,e)}))}else{this.docs.forEach(((t,e)=>{this._addObject(t,e)}))}this.norm.clear()}add(t){const e=this.size();if(c(t)){this._addString(t,e)}else{this._addObject(t,e)}}removeAt(t){this.records.splice(t,1);for(let e=t,i=this.size();e<i;e+=1){this.records[e].i-=1}}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!f(t)||d(t)){return}let i={v:t,i:e,n:this.norm.get(t)};this.records.push(i)}_addObject(t,e){let i={i:e,$:{}};this.keys.forEach(((e,s)=>{let r=e.getFn?e.getFn(t):this.getFn(t,e.path);if(!f(r)){return}if(n(r)){let t=[];const e=[{nestedArrIndex:-1,value:r}];while(e.length){const{nestedArrIndex:i,value:s}=e.pop();if(!f(s)){continue}if(c(s)&&!d(s)){let e={v:s,i,n:this.norm.get(s)};t.push(e)}else if(n(s)){s.forEach(((t,i)=>{e.push({nestedArrIndex:i,value:t})}))}else;}i.$[s]=t}else if(c(r)&&!d(r)){let t={v:r,n:this.norm.get(r)};i.$[s]=t}}));this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function D(t,e,{getFn:i=S.getFn,fieldNormWeight:n=S.fieldNormWeight}={}){const s=new T({getFn:i,fieldNormWeight:n});s.setKeys(t.map(w));s.setSources(e);s.create();return s}function N(t,{getFn:e=S.getFn,fieldNormWeight:i=S.fieldNormWeight}={}){const{keys:n,records:s}=t;const r=new T({getFn:e,fieldNormWeight:i});r.setKeys(n);r.setIndexRecords(s);return r}function P(t,{errors:e=0,currentLocation:i=0,expectedLocation:n=0,distance:s=S.distance,ignoreLocation:r=S.ignoreLocation}={}){const o=e/t.length;if(r){return o}const c=Math.abs(n-i);if(!s){return c?1:o}return o+c/s}function R(t=[],e=S.minMatchCharLength){let i=[];let n=-1;let s=-1;let r=0;for(let o=t.length;r<o;r+=1){let o=t[r];if(o&&n===-1){n=r}else if(!o&&n!==-1){s=r-1;if(s-n+1>=e){i.push([n,s])}n=-1}}if(t[r-1]&&r-n>=e){i.push([n,r-1])}return i}const $=32;function F(t,e,i,{location:n=S.location,distance:s=S.distance,threshold:r=S.threshold,findAllMatches:o=S.findAllMatches,minMatchCharLength:c=S.minMatchCharLength,includeMatches:a=S.includeMatches,ignoreLocation:u=S.ignoreLocation}={}){if(e.length>$){throw new Error(m($))}const h=e.length;const l=t.length;const f=Math.max(0,Math.min(n,l));let d=r;let v=f;const p=c>1||a;const b=p?Array(l):[];let _;while((_=t.indexOf(e,v))>-1){let t=P(e,{currentLocation:_,expectedLocation:f,distance:s,ignoreLocation:u});d=Math.min(t,d);v=_+h;if(p){let t=0;while(t<h){b[_+t]=1;t+=1}}}v=-1;let g=[];let x=1;let y=h+l;const w=1<<h-1;for(let n=0;n<h;n+=1){let r=0;let c=y;while(r<c){const t=P(e,{errors:n,currentLocation:f+c,expectedLocation:f,distance:s,ignoreLocation:u});if(t<=d){r=c}else{y=c}c=Math.floor((y-r)/2+r)}y=c;let a=Math.max(1,f-c+1);let m=o?l:Math.min(f+c,l)+h;let _=Array(m+2);_[m+1]=(1<<n)-1;for(let r=m;r>=a;r-=1){let o=r-1;let c=i[t.charAt(o)];if(p){b[o]=+!!c}_[r]=(_[r+1]<<1|1)&c;if(n){_[r]|=(g[r+1]|g[r])<<1|1|g[r+1]}if(_[r]&w){x=P(e,{errors:n,currentLocation:o,expectedLocation:f,distance:s,ignoreLocation:u});if(x<=d){d=x;v=o;if(v<=f){break}a=Math.max(1,2*f-v)}}}const O=P(e,{errors:n+1,currentLocation:f,expectedLocation:f,distance:s,ignoreLocation:u});if(O>d){break}g=_}const O={isMatch:v>=0,score:Math.max(.001,x)};if(p){const t=R(b,c);if(!t.length){O.isMatch=false}else if(a){O.indices=t}}return O}function H(t){let e={};for(let i=0,n=t.length;i<n;i+=1){const s=t.charAt(i);e[s]=(e[s]||0)|1<<n-i-1}return e}class z{constructor(t,{location:e=S.location,threshold:i=S.threshold,distance:n=S.distance,includeMatches:s=S.includeMatches,findAllMatches:r=S.findAllMatches,minMatchCharLength:o=S.minMatchCharLength,isCaseSensitive:c=S.isCaseSensitive,ignoreLocation:a=S.ignoreLocation}={}){this.options={location:e,threshold:i,distance:n,includeMatches:s,findAllMatches:r,minMatchCharLength:o,isCaseSensitive:c,ignoreLocation:a};this.pattern=c?t:t.toLowerCase();this.chunks=[];if(!this.pattern.length){return}const u=(t,e)=>{this.chunks.push({pattern:t,alphabet:H(t),startIndex:e})};const h=this.pattern.length;if(h>$){let t=0;const e=h%$;const i=h-e;while(t<i){u(this.pattern.substr(t,$),t);t+=$}if(e){const t=h-$;u(this.pattern.substr(t),t)}}else{u(this.pattern,0)}}searchIn(t){const{isCaseSensitive:e,includeMatches:i}=this.options;if(!e){t=t.toLowerCase()}if(this.pattern===t){let e={isMatch:true,score:0};if(i){e.indices=[[0,t.length-1]]}return e}const{location:n,distance:s,threshold:r,findAllMatches:o,minMatchCharLength:c,ignoreLocation:a}=this.options;let u=[];let h=0;let l=false;this.chunks.forEach((({pattern:e,alphabet:f,startIndex:d})=>{const{isMatch:v,score:p,indices:b}=F(t,e,f,{location:n+d,distance:s,threshold:r,findAllMatches:o,minMatchCharLength:c,includeMatches:i,ignoreLocation:a});if(v){l=true}h+=p;if(v&&b){u=[...u,...b]}}));let f={isMatch:l,score:l?h/this.chunks.length:1};if(l&&i){f.indices=u}return f}}class G{constructor(t){this.pattern=t}static isMultiMatch(t){return U(t,this.multiRegex)}static isSingleMatch(t){return U(t,this.singleRegex)}search(){}}function U(t,e){const i=t.match(e);return i?i[1]:null}class V extends G{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class W extends G{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=t.indexOf(this.pattern);const i=e===-1;return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}}class J extends G{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class K extends G{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class Z extends G{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Y extends G{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class B extends G{constructor(t,{location:e=S.location,threshold:i=S.threshold,distance:n=S.distance,includeMatches:s=S.includeMatches,findAllMatches:r=S.findAllMatches,minMatchCharLength:o=S.minMatchCharLength,isCaseSensitive:c=S.isCaseSensitive,ignoreLocation:a=S.ignoreLocation}={}){super(t);this._bitapSearch=new z(t,{location:e,threshold:i,distance:n,includeMatches:s,findAllMatches:r,minMatchCharLength:o,isCaseSensitive:c,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class q extends G{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e=0;let i;const n=[];const s=this.pattern.length;while((i=t.indexOf(this.pattern,e))>-1){e=i+s;n.push([i,e-1])}const r=!!n.length;return{isMatch:r,score:r?0:1,indices:n}}}const Q=[V,q,J,K,Y,Z,W,B];const X=Q.length;const tt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const et="|";function it(t,e={}){return t.split(et).map((t=>{let i=t.trim().split(tt).filter((t=>t&&!!t.trim()));let n=[];for(let t=0,s=i.length;t<s;t+=1){const s=i[t];let r=false;let o=-1;while(!r&&++o<X){const t=Q[o];let i=t.isMultiMatch(s);if(i){n.push(new t(i,e));r=true}}if(r){continue}o=-1;while(++o<X){const t=Q[o];let i=t.isSingleMatch(s);if(i){n.push(new t(i,e));break}}}return n}))}const nt=new Set([B.type,q.type]);class st{constructor(t,{isCaseSensitive:e=S.isCaseSensitive,includeMatches:i=S.includeMatches,minMatchCharLength:n=S.minMatchCharLength,ignoreLocation:s=S.ignoreLocation,findAllMatches:r=S.findAllMatches,location:o=S.location,threshold:c=S.threshold,distance:a=S.distance}={}){this.query=null;this.options={isCaseSensitive:e,includeMatches:i,minMatchCharLength:n,findAllMatches:r,ignoreLocation:s,location:o,threshold:c,distance:a};this.pattern=e?t:t.toLowerCase();this.query=it(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e){return{isMatch:false,score:1}}const{includeMatches:i,isCaseSensitive:n}=this.options;t=n?t:t.toLowerCase();let s=0;let r=[];let o=0;for(let n=0,c=e.length;n<c;n+=1){const c=e[n];r.length=0;s=0;for(let e=0,n=c.length;e<n;e+=1){const n=c[e];const{isMatch:a,indices:u,score:h}=n.search(t);if(a){s+=1;o+=h;if(i){const t=n.constructor.type;if(nt.has(t)){r=[...r,...u]}else{r.push(u)}}}else{o=0;s=0;r.length=0;break}}if(s){let t={isMatch:true,score:o/s};if(i){t.indices=r}return t}}return{isMatch:false,score:1}}}const rt=[];function ot(...t){rt.push(...t)}function ct(t,e){for(let i=0,n=rt.length;i<n;i+=1){let n=rt[i];if(n.condition(t,e)){return new n(t,e)}}return new z(t,e)}const at={AND:"$and",OR:"$or"};const ut={PATH:"$path",PATTERN:"$val"};const ht=t=>!!(t[at.AND]||t[at.OR]);const lt=t=>!!t[ut.PATH];const ft=t=>!n(t)&&h(t)&&!ht(t);const dt=t=>({[at.AND]:Object.keys(t).map((e=>({[e]:t[e]})))});function vt(t,e,{auto:i=true}={}){const s=t=>{let r=Object.keys(t);const o=lt(t);if(!o&&r.length>1&&!ht(t)){return s(dt(t))}if(ft(t)){const n=o?t[ut.PATH]:r[0];const s=o?t[ut.PATTERN]:t[n];if(!c(s)){throw new Error(b(n))}const a={keyId:j(n),pattern:s};if(i){a.searcher=ct(s,e)}return a}let a={children:[],operator:r[0]};r.forEach((e=>{const i=t[e];if(n(i)){i.forEach((t=>{a.children.push(s(t))}))}}));return a};if(!ht(t)){t=dt(t)}return s(t)}function pt(t,{ignoreFieldNorm:e=S.ignoreFieldNorm}){t.forEach((t=>{let i=1;t.matches.forEach((({key:t,norm:n,score:s})=>{const r=t?t.weight:null;i*=Math.pow(s===0&&r?Number.EPSILON:s,(r||1)*(e?1:n))}));t.score=i}))}function bt(t,e){const i=t.matches;e.matches=[];if(!f(i)){return}i.forEach((t=>{if(!f(t.indices)||!t.indices.length){return}const{indices:i,value:n}=t;let s={indices:i,value:n};if(t.key){s.key=t.key.src}if(t.idx>-1){s.refIndex=t.idx}e.matches.push(s)}))}function mt(t,e){e.score=t.score}function _t(t,e,{includeMatches:i=S.includeMatches,includeScore:n=S.includeScore}={}){const s=[];if(i)s.push(bt);if(n)s.push(mt);return t.map((t=>{const{idx:i}=t;const n={item:e[i],refIndex:i};if(s.length){s.forEach((e=>{e(t,n)}))}return n}))}class gt{constructor(t,e={},i){this.options={...S,...e};this._keyStore=new y(this.options.keys);this.setCollection(t,i)}setCollection(t,e){this._docs=t;if(e&&!(e instanceof T)){throw new Error(p)}this._myIndex=e||D(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){if(!f(t)){return}this._docs.push(t);this._myIndex.add(t)}remove(t=(()=>false)){const e=[];for(let i=0,n=this._docs.length;i<n;i+=1){const s=this._docs[i];if(t(s,i)){this.removeAt(i);i-=1;n-=1;e.push(s)}}return e}removeAt(t){this._docs.splice(t,1);this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:i,includeScore:n,shouldSort:s,sortFn:r,ignoreFieldNorm:o}=this.options;let u=c(t)?c(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);pt(u,{ignoreFieldNorm:o});if(s){u.sort(r)}if(a(e)&&e>-1){u=u.slice(0,e)}return _t(u,this._docs,{includeMatches:i,includeScore:n})}_searchStringList(t){const e=ct(t,this.options);const{records:i}=this._myIndex;const n=[];i.forEach((({v:t,i,n:s})=>{if(!f(t)){return}const{isMatch:r,score:o,indices:c}=e.searchIn(t);if(r){n.push({item:t,idx:i,matches:[{score:o,value:t,norm:s,indices:c}]})}}));return n}_searchLogical(t){const e=vt(t,this.options);const i=(t,e,n)=>{if(!t.children){const{keyId:i,searcher:s}=t;const r=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(e,i),searcher:s});if(r&&r.length){return[{idx:n,item:e,matches:r}]}return[]}const s=[];for(let r=0,o=t.children.length;r<o;r+=1){const o=t.children[r];const c=i(o,e,n);if(c.length){s.push(...c)}else if(t.operator===at.AND){return[]}}return s};const n=this._myIndex.records;const s={};const r=[];n.forEach((({$:t,i:n})=>{if(f(t)){let o=i(e,t,n);if(o.length){if(!s[n]){s[n]={idx:n,item:t,matches:[]};r.push(s[n])}o.forEach((({matches:t})=>{s[n].matches.push(...t)}))}}}));return r}_searchObjectList(t){const e=ct(t,this.options);const{keys:i,records:n}=this._myIndex;const s=[];n.forEach((({$:t,i:n})=>{if(!f(t)){return}let r=[];i.forEach(((i,n)=>{r.push(...this._findMatches({key:i,value:t[n],searcher:e}))}));if(r.length){s.push({idx:n,item:t,matches:r})}}));return s}_findMatches({key:t,value:e,searcher:i}){if(!f(e)){return[]}let s=[];if(n(e)){e.forEach((({v:e,i:n,n:r})=>{if(!f(e)){return}const{isMatch:o,score:c,indices:a}=i.searchIn(e);if(o){s.push({score:c,key:t,value:e,idx:n,norm:r,indices:a})}}))}else{const{v:n,n:r}=e;const{isMatch:o,score:c,indices:a}=i.searchIn(n);if(o){s.push({score:c,key:t,value:n,norm:r,indices:a})}}return s}}gt.version="6.6.2";gt.createIndex=D;gt.parseIndex=N;gt.config=S;{gt.parseQuery=vt}{ot(st)}},791:function(t,e,i){i.r(e);i.d(e,{__DO_NOT_USE__ActionTypes:function(){return f},applyMiddleware:function(){return y},bindActionCreators:function(){return g},combineReducers:function(){return m},compose:function(){return x},createStore:function(){return v},legacy_createStore:function(){return p}});function n(t){"@babel/helpers - typeof";return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function s(t,e){if(n(t)!=="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==undefined){var s=i.call(t,e||"default");if(n(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function r(t){var e=s(t,"string");return n(e)==="symbol"?e:String(e)}function o(t,e,i){e=r(e);if(e in t){Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true})}else{t[e]=i}return t}function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){o(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function u(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or "+"use the non-minified dev environment for full errors. "}var h=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();var l=function t(){return Math.random().toString(36).substring(7).split("").join(".")};var f={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function t(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function d(t){if(typeof t!=="object"||t===null)return false;var e=t;while(Object.getPrototypeOf(e)!==null){e=Object.getPrototypeOf(e)}return Object.getPrototypeOf(t)===e}function v(t,e,i){var n;if(typeof e==="function"&&typeof i==="function"||typeof i==="function"&&typeof arguments[3]==="function"){throw new Error(u(0))}if(typeof e==="function"&&typeof i==="undefined"){i=e;e=undefined}if(typeof i!=="undefined"){if(typeof i!=="function"){throw new Error(u(1))}return i(v)(t,e)}if(typeof t!=="function"){throw new Error(u(2))}var s=t;var r=e;var o=[];var c=o;var a=false;function l(){if(c===o){c=o.slice()}}function p(){if(a){throw new Error(u(3))}return r}function b(t){if(typeof t!=="function"){throw new Error(u(4))}if(a){throw new Error(u(5))}var e=true;l();c.push(t);return function i(){if(!e){return}if(a){throw new Error(u(6))}e=false;l();var n=c.indexOf(t);c.splice(n,1);o=null}}function m(t){if(!d(t)){throw new Error(u(7))}if(typeof t.type==="undefined"){throw new Error(u(8))}if(a){throw new Error(u(9))}try{a=true;r=s(r,t)}finally{a=false}var e=o=c;for(var i=0;i<e.length;i++){var n=e[i];n()}return t}function _(t){if(typeof t!=="function"){throw new Error(u(10))}s=t;m({type:f.REPLACE})}function g(){var t;var e=b;return t={subscribe:function t(i){if(typeof i!=="object"||i===null){throw new Error(u(11))}function n(){if(i.next){i.next(p())}}n();var s=e(n);return{unsubscribe:s}}},t[h]=function(){return this},t}m({type:f.INIT});return n={dispatch:m,subscribe:b,getState:p,replaceReducer:_},n[h]=g,n}var p=v;function b(t){Object.keys(t).forEach((function(e){var i=t[e];var n=i(undefined,{type:f.INIT});if(typeof n==="undefined"){throw new Error(u(12))}if(typeof i(undefined,{type:f.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error(u(13))}}))}function m(t){var e=Object.keys(t);var i={};for(var n=0;n<e.length;n++){var s=e[n];if(typeof t[s]==="function"){i[s]=t[s]}}var r=Object.keys(i);var o;try{b(i)}catch(t){o=t}return function t(e,n){if(e===void 0){e={}}if(o){throw o}var s=false;var c={};for(var a=0;a<r.length;a++){var h=r[a];var l=i[h];var f=e[h];var d=l(f,n);if(typeof d==="undefined"){throw new Error(u(14))}c[h]=d;s=s||d!==f}s=s||r.length!==Object.keys(e).length;return s?c:e}}function _(t,e){return function(){return e(t.apply(this,arguments))}}function g(t,e){if(typeof t==="function"){return _(t,e)}if(typeof t!=="object"||t===null){throw new Error(u(16))}var i={};for(var n in t){var s=t[n];if(typeof s==="function"){i[n]=_(s,e)}}return i}function x(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}if(e.length===0){return function(t){return t}}if(e.length===1){return e[0]}return e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function y(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}return function(t){return function(){var i=t.apply(void 0,arguments);var n=function t(){throw new Error(u(15))};var s={getState:i.getState,dispatch:function t(){return n.apply(void 0,arguments)}};var r=e.map((function(t){return t(s)}));n=x.apply(void 0,r)(i.dispatch);return a(a({},i),{},{dispatch:n})}}}}};var e={};function i(n){var s=e[n];if(s!==undefined){return s.exports}var r=e[n]={exports:{}};t[n].call(r.exports,r,r.exports,i);return r.exports}!function(){i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};i.d(e,{a:e});return e}}();!function(){i.d=function(t,e){for(var n in e){if(i.o(e,n)&&!i.o(t,n)){Object.defineProperty(t,n,{enumerable:true,get:e[n]})}}}}();!function(){i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}();!function(){i.r=function(t){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}}();var n={};!function(){var t=i(373);var e=i.n(t);i(187);i(883);i(789);i(686);n["default"]=e()}();n=n["default"];return n}()}))})(r);const o=s(r.exports);function c(t,e){return Object.keys(t).reduce(((i,n)=>{const s=t[n];if(e(s,n,t)){i[n]=s}return i}),{})}function a(t){return typeof t!=="undefined"}function u(t){try{JSON.parse(t);return true}catch(t){return false}}const h=':root{--ifx-font-family:"Source Sans 3";font-family:var(--ifx-font-family, sans-serif)}.ifx-select-container{box-sizing:border-box;font-family:var(--ifx-font-family);}.ifx-select-container.small-select{height:36px}.ifx-select-container.medium-select{height:40px}.ifx-select-container:hover{cursor:pointer}.ifx-select-container .ifx-label-wrapper{font-size:1rem;line-height:1.5rem;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;max-width:100%;overflow:hidden}.ifx-select-container .ifx-error-message-wrapper{color:#CD002F;font-size:0.75rem;line-height:1rem;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;max-width:100%;overflow:hidden}.ifx-select-container .ifx-choices__wrapper{background-color:#FFFFFF;box-sizing:border-box;position:relative;display:flex;align-items:center;border:1px solid #8D8786;border-radius:1px;font-weight:400;font-style:normal;width:100%}.ifx-select-container .ifx-choices__wrapper .choices{flex-grow:1;overflow:hidden}.ifx-select-container .ifx-choices__wrapper .single__select-icon-container{display:flex;align-items:center;margin-left:auto}.ifx-select-container .ifx-choices__wrapper.small-select{height:36px;line-height:20px;padding:8px 12px;font-size:0.875rem;line-height:1.25rem}.ifx-select-container .ifx-choices__wrapper.medium-select{height:40px;line-height:24px;padding:8px 16px;font-size:1rem;line-height:1.5rem}.ifx-select-container .ifx-choices__wrapper.disabled{background:#EEEDED;color:#575352;border-color:#575352;cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ifx-select-container .ifx-choices__wrapper.disabled .ifx-choices__icon-wrapper-down:hover{cursor:default}.ifx-select-container .ifx-choices__wrapper.error{border-color:#CD002F}.ifx-select-container .ifx-choices__wrapper:hover:not(.focus,:focus){border-color:#575352}.ifx-select-container .ifx-choices__wrapper.active{border-color:#0A8276 !important}.ifx-select-container .ifx-choices__wrapper.active .ifx-choices__icon-wrapper-up{display:flex;align-items:center;justify-content:center;padding-left:8px}.ifx-select-container .ifx-choices__wrapper.active .ifx-choices__icon-wrapper-down{display:none}.ifx-select-container .ifx-choices__wrapper:focus-visible:not(.active):not(:active){outline:none}.ifx-select-container .ifx-choices__wrapper:focus-visible:not(.active):not(:active)::before{content:"";position:absolute;width:calc(100% + 4px);height:calc(100% + 4px);top:50%;left:50%;transform:translate(-50%, -50%);border:2px solid #0A8276;border-radius:2px}.ifx-select-container .ifx-choices__wrapper:focus:not(.active,:active):not(.disabled)::before{content:"";position:absolute;width:calc(100% + 4px);height:calc(100% + 4px);top:50%;left:50%;transform:translate(-50%, -50%)}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-up{display:none}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-up:hover{cursor:pointer}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-down{display:flex;align-items:center;justify-content:center;padding-left:8px}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-down:hover{cursor:pointer}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-delete{display:flex;align-items:center;justify-content:center}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-delete.hide{display:none}.ifx-select-container .choices{width:100%}.ifx-select-container .choices:focus{outline:none}.choices .ifx-select-container.is-focused{outline:none}.ifx-select-container .choices:last-child{margin-bottom:0}.ifx-select-container .choices.is-disabled .choices__inner,.ifx-select-container .choices.is-disabled .choices__input{cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ifx-select-container .choices.is-disabled .choices__item{cursor:default;color:#575352}.ifx-select-container .choices [hidden]{display:none !important}.ifx-select-container .choices[data-type*=select-one]{cursor:pointer}.ifx-select-container .choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:8px 16px;border-bottom:1px solid #8D8786;background-color:#ffffff;margin:0;font-style:normal;font-weight:400}.ifx-select-container .choices[data-type*=select-one] .choices__input.small-select{font-size:0.875rem;line-height:1.25rem}.ifx-select-container .choices[data-type*=select-one] .choices__input.medium-select{font-size:1rem;line-height:1.5rem}.ifx-select-container .choices[data-type*=select-one] .choices__single-button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:0.5}.ifx-select-container .choices[data-type*=select-one] .choices__single-button:hover,.ifx-select-container .choices[data-type*=select-one] .choices__single-button:focus{opacity:1}.ifx-select-container .choices[data-type*=select-one] .choices__single-button:focus{box-shadow:0px 0px 0px 2px #0A8276}.ifx-select-container .choices[data-type*=select-one] .choices__item[data-value=""] .choices__single-button{display:none}.ifx-select-container .choices[data-type*=select-one].is-open:after{margin-top:-7.5px}.ifx-select-container .choices[data-type*=select-one][dir=rtl]:after{left:11.5px;right:auto}.ifx-select-container .choices[data-type*=select-one][dir=rtl] .choices__single-button{right:auto;left:0;margin-left:25px;margin-right:0}.ifx-select-container .choices[data-type*=select-multiple]{cursor:pointer}.ifx-select-container .choices[data-type*=select-multiple] .choices__input{display:block;width:100%;margin:0}.ifx-select-container .choices[data-type*=select-multiple] .choices__inner,.ifx-select-container .choices[data-type*=text] .choices__inner{cursor:text}.ifx-select-container .choices[data-type*=select-multiple] .choices__button,.ifx-select-container .choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin-top:0;margin-right:-4px;margin-bottom:0;margin-left:8px;padding-left:16px;border-left:1px solid #0A8276;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:0.75;border-radius:0}.ifx-select-container .choices[data-type*=select-multiple] .choices__button:hover,.ifx-select-container .choices[data-type*=select-multiple] .choices__button:focus,.ifx-select-container .choices[data-type*=text] .choices__button:hover,.ifx-select-container .choices[data-type*=text] .choices__button:focus{opacity:1}.ifx-select-container .choices__inner{overflow:hidden}.ifx-select-container .choices__inner .choices__list .choices__item span{flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ifx-select-container .is-focused .choices__inner,.ifx-select-container .is-open .choices__inner{border-color:#b7b7b7}.ifx-select-container .is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.ifx-select-container .is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.ifx-select-container .choices__list{margin:0;padding-left:0;list-style:none}.ifx-select-container .choices__list--single .choices__item{width:100%;display:flex;justify-content:space-between}.ifx-select-container .disabled>.choices__list--single .choices__item[data-value=""]{color:#8D8786;}.ifx-select-container .choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:0.75rem;line-height:1rem;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#0A8276;border:1px solid #0A8276;color:#FFFFFF;word-break:break-all;box-sizing:border-box}.ifx-select-container .choices__list--multiple .choices__item[data-deletable]{padding-right:5px}.ifx-select-container [dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.ifx-select-container .choices__list--multiple .choices__item.is-highlighted{background-color:#EEEDED;border:1px solid #0A8276}.ifx-select-container .choices__list--dropdown{visibility:hidden;box-sizing:border-box;position:absolute;width:100%;background-color:#fff;top:100%;margin-top:-1px;overflow:hidden;word-break:break-all;will-change:visibility;box-shadow:0px 0px 16px rgba(29, 29, 29, 0.12);border-radius:1px;margin-top:8px;z-index:1000;left:0}.ifx-select-container .choices__list--dropdown.is-active{visibility:visible}.ifx-select-container .is-open .choices__list--dropdown{border-color:#b7b7b7}.ifx-select-container .is-flipped .choices__list--dropdown{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:0.25rem 0.25rem 0 0}.ifx-select-container .choices__list--dropdown .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.ifx-select-container .choices__list--dropdown .choices__item{position:relative;padding:8px 16px;gap:8px;align-items:center;display:flex;justify-content:space-between;font-style:normal;font-weight:400}.ifx-select-container .choices__list--dropdown .choices__item.small-select{font-size:0.875rem;line-height:1.25rem}.ifx-select-container .choices__list--dropdown .choices__item.medium-select{font-size:1rem;line-height:1.5rem}.ifx-select-container .choices__list--dropdown .choices__item.selected{color:#0A8276}.ifx-select-container [dir=rtl] .choices__list--dropdown .choices__item{text-align:right}@media (min-width: 640px){.ifx-select-container .choices__list--dropdown .choices__item--selectable:after{font-size:0.75rem;line-height:1rem;opacity:0;position:absolute;right:10px;top:50%;transform:translateY(-50%)}.ifx-select-container [dir=rtl] .choices__list--dropdown .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px}.ifx-select-container [dir=rtl] .choices__list--dropdown .choices__item--selectable:after{right:auto;left:10px}}.ifx-select-container .choices__list--dropdown .choices__item--selectable.is-highlighted{background-color:#EEEDED}.ifx-select-container .choices__list--dropdown .choices__item--selectable.is-highlighted.selected{color:#0A8276}.ifx-select-container .choices__list--dropdown .choices__item--selectable:hover{background-color:#EEEDED}.ifx-select-container .choices__list--dropdown .choices__item--selectable:hover.selected{color:#0A8276}.ifx-select-container .choices__list--dropdown .choices__item--selectable.is-highlighted:after{opacity:0.5}.ifx-select-container .choices__item{cursor:default}.ifx-select-container .choices__item--selectable{cursor:pointer}.ifx-select-container .choices__item--disabled{cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}.ifx-select-container .choices__heading{font-weight:600;font-size:0.75rem;line-height:1rem;padding:10px;border-bottom:1px solid #f7f7f7;color:#1D1D1D}.ifx-select-container .choices__button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.ifx-select-container .choices__button:focus{outline:none}.ifx-select-container .choices__single-button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer;visibility:hidden}.ifx-select-container .choices__single-button:focus{outline:none}.ifx-select-container .choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:0.875rem;line-height:1.25rem;margin-bottom:5px;border:0;border-radius:0;max-width:100%}.ifx-select-container .choices__input--cloned{background-color:transparent}.ifx-select-container .choices__input::-ms-clear{display:none;width:0;height:0}.ifx-select-container .choices__input::-ms-reveal{display:none;width:0;height:0}.ifx-select-container .choices__input::-webkit-search-decoration,.ifx-select-container .choices__input::-webkit-search-cancel-button,.ifx-select-container .choices__input::-webkit-search-results-button,.ifx-select-container .choices__input::-webkit-search-results-decoration{display:none}.ifx-select-container .choices__input:focus{outline:0}.ifx-select-container [dir=rtl] .choices__input{padding-right:2px;padding-left:0}.ifx-select-container .choices__placeholder{opacity:0.5}';const l=h;const f=class{constructor(i){t(this,i);this.ifxSelect=e(this,"ifxSelect",7);this.ifxInput=e(this,"ifxInput",7);this.error=false;this.errorMessage="Error";this.label="";this.disabled=false;this.placeholderValue="Placeholder";this.size="medium (40px)";this.selectedOption=null;this.optionIsSelected=false;this.previousOptions=[]}watchDisabled(t){if(t){this.choice.disable()}else{this.choice.enable()}}handleDeleteSelection(){this.clearInput();this.clearSelectField();this.setPreSelected(null);this.closeDropdown();this.optionIsSelected=false}clearSelectField(){this.selectedOption=null;this.ifxSelect.emit(null)}async handleChange(){this.ifxSelect.emit(this.choice.getValue());this.selectedOption=this.choice.getValue();this.setPreSelected(this.selectedOption.value);this.closeDropdown()}async highlightItem(t,e){this.choice.highlightItem(t,e);return this}async unhighlightItem(t){this.choice.unhighlightItem(t);return this}async highlightAll(){this.choice.highlightAll();return this}async unhighlightAll(){this.choice.unhighlightAll();return this}async removeActiveItemsByValue(t){this.choice.removeActiveItemsByValue(t);return this}async removeActiveItems(t){this.choice.removeActiveItems(t);return this}async removeHighlightedItems(t){this.choice.removeHighlightedItems(t);return this}async showDropdown(t){this.choice.showDropdown(t);return this}async hideDropdown(t){this.choice.hideDropdown(t);return this}async getValue(t){return this.choice.getValue(t)}async setValue(t){this.choice.setValue(t);return this}async setChoiceByValue(t){this.choice.setChoiceByValue(t);return this}async setChoices(t,e,i,n){let s;if(typeof t==="string"){try{if(!u(t)){t=t.replace(/'/g,'"').replace(/"false"/g,"false").replace(/"true"/g,"true")}s=[...JSON.parse(t)]}catch(t){console.error("Failed to parse choices:",t)}}else if(Array.isArray(t)||typeof t==="object"){s=[...t]}else{console.error("Unexpected value for choices:",this.options)}this.choice.setChoices(s,e,i,n);return this}async clearChoices(){this.choice.clearChoices();return this}async clearStore(){this.choice.clearStore();return this}async clearInput(){this.choice.clearInput();return this}async ajax(t){this.choice.ajax(t);return this}async handleDeleteIcon(){const t=this.root.offsetWidth;const e=this.root.querySelector(".ifx-choices__icon-wrapper-delete");if(e){if(t<=180){e.classList.add("hide")}else{e.classList.remove("hide")}}}handleCloseButton(){if(typeof this.options==="string"){const t=JSON.parse(this.options);const e=t.find((t=>t.selected===true));if(e){this.optionIsSelected=true}else{this.optionIsSelected=false}}else if(this.options&&Array.isArray(this.options)){const t=this.options.find((t=>t.selected===true));if(t){this.optionIsSelected=true}else{this.optionIsSelected=false}}}componentWillLoad(){this.handleCloseButton()}componentWillUpdate(){this.handleCloseButton();this.previousOptions=[...this.options];const t=this.isEqual(this.options,this.previousOptions);if(this.options&&!t){this.clearSelectField()}}isEqual(t,e){return JSON.stringify(t)===JSON.stringify(e)}addResizeObserver(){this.resizeObserver=new ResizeObserver((()=>{this.handleDeleteIcon()}));const t=this.root.querySelector(".ifx-choices__wrapper");this.resizeObserver.observe(t)}componentDidLoad(){this.init();this.addEventListenersToHandleCustomFocusAndActiveState();this.handleDeleteIcon();this.addResizeObserver()}componentDidUpdate(){this.init();this.handleDeleteIcon()}disconnectedCallback(){this.destroy();if(this.resizeObserver){this.resizeObserver.disconnect();this.resizeObserver=null}}render(){const t={"data-selector":"root",name:this.name||null};const e=`ifx-choices__wrapper ${this.getSizeClass()}`;this.destroy();return i("div",{key:"afb22e61adf2c1bbc5994d1bc2640a1f34997088",class:`ifx-select-container`},this.label?i("div",{class:"ifx-label-wrapper"},i("span",null,this.label)):null,i("div",{key:"febbedc83bd0420a136c5c4b65ede1703815bbc0",class:`${e} \n ${this.disabled?"disabled":""} \n ${this.error?"error":""}`,onClick:this.disabled?undefined:()=>this.toggleDropdown(),onKeyDown:t=>this.handleKeyDown(t)},i("select",Object.assign({key:"339771447d7fbad6d17b75c032028958196d4ae7",class:"single__select-input-field",disabled:this.disabled},t,{"data-trigger":true,onChange:()=>this.handleChange()}),this.createSelectOptions(this.options)),i("div",{key:"f6e0803771328744a9d48fd196f8bb44886268a8",class:"single__select-icon-container"},this.optionIsSelected&&i("div",{key:"eab9c3c429d74eac31c24628d86078cec12e9a43",class:"ifx-choices__icon-wrapper-delete"},i("ifx-icon",{key:"1283caadb33147058593a1fff2e08b4460edce0e",icon:"cremove16",onClick:()=>this.handleDeleteSelection()})),i("div",{key:"7fbd427273a0e6776395e44a91b495cc0f30b29c",class:"ifx-choices__icon-wrapper-up"},i("ifx-icon",{key:"icon-up",icon:"chevronup-16"})),i("div",{key:"bf571ef4fa089788f2c1a2ac44c476444cda22a7",class:"ifx-choices__icon-wrapper-down"},i("ifx-icon",{key:"icon-down",icon:"chevron-down-16"})))),this.error?i("div",{class:"ifx-error-message-wrapper"},i("span",null,this.errorMessage)):null)}toggleDropdown(){const t=this.root.querySelector(".ifx-choices__wrapper");if(t.classList.contains("active")||this.choice.dropdown.isActive){this.hideDropdown();t.classList.remove("active")}else{this.choice.showDropdown();t.classList.add("active")}const e=this.root.querySelector(".choices");e.classList.add("is-focused")}closeDropdown(){const t=this.root.querySelector(".ifx-choices__wrapper");t.classList.remove("active")}handleOutsideClick(t){const e=t.composedPath();const i=this.root.querySelector(".ifx-choices__wrapper");if(!e.includes(this.root)){i.classList.remove("active")}}handleKeyDown(t){if(this.disabled)return;const e=t.target.classList.contains("choices__input");if(e&&t.code==="Space"){return}if(t.code==="Enter"||t.code==="Space"&&!e){this.toggleDropdown()}if(t.code==="Space"&&!e){t.preventDefault()}}getSizeClass(){return`${this.size}`==="s"?"small-select":"medium-select"}init(){const t={allowHTML:true,items:this.items,choices:this.choices,renderChoiceLimit:this.renderChoiceLimit,maxItemCount:this.maxItemCount,addItems:this.addItems,removeItems:this.removeItems,removeItemButton:this.removeItemButton,editItems:this.editItems,duplicateItemsAllowed:this.duplicateItemsAllowed,delimiter:this.delimiter,paste:this.paste,searchEnabled:this.showSearch,searchChoices:this.searchChoices,searchFields:this.searchFields,searchFloor:this.searchFloor,searchResultLimit:this.searchResultLimit,position:this.position,resetScrollPosition:this.resetScrollPosition,shouldSort:false,shouldSortItems:this.shouldSortItems,sorter:this.sorter,placeholder:this.placeholder,searchPlaceholderValue:this.searchPlaceholderValue,prependValue:this.prependValue,appendValue:this.appendValue,renderSelectedChoices:this.renderSelectedChoices,loadingText:this.loadingText,noResultsText:this.noResultsText,noChoicesText:this.noChoicesText,itemSelectText:this.itemSelectText,addItemText:this.addItemText,maxItemText:this.maxItemText,uniqueItemText:this.uniqueItemText,classNames:this.classNames,fuseOptions:this.fuseOptions,callbackOnInit:this.callbackOnInit,callbackOnCreateTemplates:this.callbackOnCreateTemplates,valueComparer:this.valueComparer,addItemFilter:this.addItemFilter,customAddItemText:this.customAddItemText};const e=c(t,a);const i=this.root.querySelector('[data-selector="root"]');if(i instanceof HTMLInputElement||i instanceof HTMLSelectElement){const t=this;this.choice=new o(i,Object.assign({},e,{callbackOnCreateTemplates:function(e){return{item:({classNames:i},n)=>{var s,r,o,c,a,u,h;let l="";if(n.placeholder&&!((s=t.selectedOption)===null||s===void 0?void 0:s.value)){return e(`\n <div class="choices__placeholder" data-item data-id="${n.id}" data-value="${n.value}" ${n.disabled?'aria-disabled="true"':""}>\n ${n.label===undefined?this.placeholderValue:n.label}\n ${l}\n </div>\n `)}else{return e(`\n <div class="${i.item} ${n.highlighted?i.highlightedState:i.itemSelectable}" \n data-item \n data-id="${((r=t.selectedOption)===null||r===void 0?void 0:r.id)!==undefined?(o=t.selectedOption)===null||o===void 0?void 0:o.id:t.choice.getValue().id}" \n data-value="${((c=t.selectedOption)===null||c===void 0?void 0:c.value)!==undefined?(a=t.selectedOption)===null||a===void 0?void 0:a.value:t.choice.getValue().value}" \n ${n.disabled?'aria-disabled="true"':""}>\n <span>${((u=t.selectedOption)===null||u===void 0?void 0:u.label)!==undefined?(h=t.selectedOption)===null||h===void 0?void 0:h.label:t.choice.getValue().label}</span>\n \x3c!-- Add your remove button here if needed --\x3e\n </div>\n `)}},input:({classNames:i})=>e(`\n <input type="search"\n class="${i.input} ${i.inputCloned} ${t.getSizeClass()}"\n autocomplete="off"\n autocapitalize="off"\n spellcheck="false"\n role="textbox"\n aria-autocomplete="list"\n aria-label="${this.showSearch?this.searchPlaceholderValue:""}" > \n `),choice:({classNames:i},n)=>{var s,r,o,c;return e(`\n <div class="${i.item} ${i.itemChoice} ${t.getSizeClass()} \n ${n.selected||((s=t.selectedOption)===null||s===void 0?void 0:s.value)===n.value||((r=t.getPreSelected(t))===null||r===void 0?void 0:r.value)===n.value?"selected":""} \n ${n.placeholder?i.placeholder:""} \n ${n.disabled?i.itemDisabled:i.itemSelectable} \n role="${n.groupId&&n.groupId>0?"treeitem":"option"}"\n data-choice ${n.disabled?'data-choice-disabled aria-disabled="true"':"data-choice-selectable"} data-id="${n.id}"\n data-value="${n.value}"\n data-select-text="${this.config.itemSelectText}">\n <span>${n.label}</span>\n ${n.selected||((o=t.selectedOption)===null||o===void 0?void 0:o.value)===n.value||((c=t.getPreSelected(t))===null||c===void 0?void 0:c.value)===n.value?'<ifx-icon icon="check16"></ifx-icon>':""}\n </div>\n `)}}}}));this.setChoices(this.options,"value","label",true);t.addSearchEventListener(t,this.choice)}}addEventListenersToHandleCustomFocusAndActiveState(){const t=this.root.querySelector(".ifx-choices__wrapper");if(!t){console.error(".ifx-choices__wrapper not found");return}t.tabIndex=0;t.addEventListener("focus",(function(){if(!this.classList.contains("disabled")){this.classList.add("focus")}}));t.addEventListener("blur",(function(){this.classList.remove("focus")}))}addSearchEventListener(t,e){e.passedElement.element.addEventListener("search",(function(e){t.ifxInput.emit(e.detail.value)}),false);return e}destroy(){if(this.element){this.element=null}if(this.choice){this.choice.destroy();this.choice=null}}getPreSelected(t){const e=Array.isArray(t.options)?t.options:JSON.parse(t.options);return e.find((t=>t.selected===true))||null}setPreSelected(t){const e=Array.isArray(this.options)?this.options:JSON.parse(this.options);this.options=e.map((e=>Object.assign(Object.assign({},e),{selected:e.value===t})))}createSelectOptions(t){var e;if(this.value!=="undefined"||((e=this.selectedOption)===null||e===void 0?void 0:e.value)!==""){let e;if(u(t)){e=[...JSON.parse(t)]}else if(Array.isArray(t)||typeof t==="object"){e=[...t]}const n=e===null||e===void 0?void 0:e.find((t=>{var e;return t.value===this.value||((e=this.selectedOption)===null||e===void 0?void 0:e.value)}));if(n){return[i("option",{value:n.value},n.label)]}}return this.placeholder!=="false"?[i("option",{value:""},this.placeholderValue)]:[i("option",{value:""})]}get root(){return n(this)}static get watchers(){return{disabled:["watchDisabled"]}}};f.style=l;export{f as ifx_select};
3
- //# sourceMappingURL=p-5729d495.entry.js.map
3
+ //# sourceMappingURL=p-f0c99792.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as n,h as e}from"./p-c63974da.js";const r=':root{--ifx-font-family:"Source Sans 3";font-family:var(--ifx-font-family, sans-serif)}:host{display:inline-flex}.numberIndicator__container{display:inline-flex;padding:0px 4px;max-height:16px;justify-content:center;align-items:center;border-radius:100px;background-color:#0A8276;font-family:var(--ifx-font-family)}.numberIndicator__container span{color:#FFFFFF;text-align:center;font-size:0.875rem;font-style:normal;font-weight:600;line-height:16px}.numberIndicator__container.inverted{background-color:#FFFFFF}.numberIndicator__container.inverted span{color:#0A8276}';const a=r;const i=class{constructor(e){n(this,e);this.inverted=false}render(){return e("div",{key:"b2f7ec0f7dc9abcfa9cb12b74042f91e998c7705","aria-label":"a number indicator",class:`numberIndicator__container ${this.inverted?"inverted":""}`},e("span",{key:"460a2e68d9264f85085d1f465c0491c841773132"},e("slot",{key:"4f6b53b3eefc34c60f8663d1c42761c735aaaa23"})))}};i.style=a;export{i as ifx_number_indicator};
2
- //# sourceMappingURL=p-83ef99a2.entry.js.map
1
+ import{r as n,h as e}from"./p-8f2b1db0.js";const r=':root{--ifx-font-family:"Source Sans 3";font-family:var(--ifx-font-family, sans-serif)}:host{display:inline-flex}.numberIndicator__container{display:inline-flex;padding:0px 4px;max-height:16px;justify-content:center;align-items:center;border-radius:100px;background-color:#0A8276;font-family:var(--ifx-font-family)}.numberIndicator__container span{color:#FFFFFF;text-align:center;font-size:0.875rem;font-style:normal;font-weight:600;line-height:16px}.numberIndicator__container.inverted{background-color:#FFFFFF}.numberIndicator__container.inverted span{color:#0A8276}';const a=r;const i=class{constructor(e){n(this,e);this.inverted=false}render(){return e("div",{key:"b2f7ec0f7dc9abcfa9cb12b74042f91e998c7705","aria-label":"a number indicator",class:`numberIndicator__container ${this.inverted?"inverted":""}`},e("span",{key:"460a2e68d9264f85085d1f465c0491c841773132"},e("slot",{key:"4f6b53b3eefc34c60f8663d1c42761c735aaaa23"})))}};i.style=a;export{i as ifx_number_indicator};
2
+ //# sourceMappingURL=p-f43caa48.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,h as t,g as r}from"./p-c63974da.js";const i=':root{--ifx-font-family:"Source Sans 3";font-family:var(--ifx-font-family, sans-serif)}:host{position:relative}.sidebar__title{width:100%;height:fit-content;border-top:1px solid #EEEDED;padding:12px 0}.sidebar__title.no-top-border{border-top:none}.sidebar__title-label{height:20px;font:600 0.875rem/1.25rem "Source Sans 3";text-transform:uppercase;color:#575352;letter-spacing:3px}';const s=i;const o=class{constructor(t){e(this,t)}render(){return t("div",{key:"b663c85d4fe0e56da9dcf04c06e352ef6ac62ac5",class:"sidebar__title"},t("div",{key:"8ebfc682c5756ce08358e761085e6041d5d6513f",class:"sidebar__title-label"},t("slot",{key:"8cfa912b8cdf5bfd30113895e34375d93766dd2e"})))}get el(){return r(this)}};o.style=s;export{o as ifx_sidebar_title};
2
- //# sourceMappingURL=p-1548797e.entry.js.map
1
+ import{r as e,h as t,g as r}from"./p-8f2b1db0.js";const i=':root{--ifx-font-family:"Source Sans 3";font-family:var(--ifx-font-family, sans-serif)}:host{position:relative}.sidebar__title{width:100%;height:fit-content;border-top:1px solid #EEEDED;padding:12px 0}.sidebar__title.no-top-border{border-top:none}.sidebar__title-label{height:20px;font:600 0.875rem/1.25rem "Source Sans 3";text-transform:uppercase;color:#575352;letter-spacing:3px}';const s=i;const o=class{constructor(t){e(this,t)}render(){return t("div",{key:"b663c85d4fe0e56da9dcf04c06e352ef6ac62ac5",class:"sidebar__title"},t("div",{key:"8ebfc682c5756ce08358e761085e6041d5d6513f",class:"sidebar__title-label"},t("slot",{key:"8cfa912b8cdf5bfd30113895e34375d93766dd2e"})))}get el(){return r(this)}};o.style=s;export{o as ifx_sidebar_title};
2
+ //# sourceMappingURL=p-f617dd70.entry.js.map