genesys-spark-components 4.0.0-beta.37 → 4.0.0-beta.39

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 (330) hide show
  1. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-breadcrumb-item.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-button-slot.cjs.entry.js +2 -2
  13. package/dist/cjs/gux-button.cjs.entry.js +2 -2
  14. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-flyout-menu.cjs.entry.js +72 -38
  28. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +2 -2
  29. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-form-field-number_3.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-menu.cjs.entry.js +2 -2
  47. package/dist/cjs/gux-modal.cjs.entry.js +2 -2
  48. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-region-icon.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-submenu.cjs.entry.js +8 -3
  66. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +3038 -19
  68. package/dist/cjs/gux-table-select-popover.cjs.entry.js +1792 -2
  69. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  84. package/dist/cjs/index-39160f18.js +4 -20
  85. package/dist/cjs/loader.cjs.js +1 -1
  86. package/dist/cjs/{usage-dea328c9.js → usage-2ce57ba4.js} +1 -1
  87. package/dist/collection/collection-manifest.json +0 -4
  88. package/dist/collection/components/stable/gux-breadcrumbs/breadcrumb-item/gux-breadcrumb-item.css +31 -31
  89. package/dist/collection/components/stable/gux-button/gux-button.css +4 -4
  90. package/dist/collection/components/stable/gux-button-slot/gux-button-slot.css +4 -4
  91. package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.css +11 -17
  92. package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.js +70 -39
  93. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.css +0 -15
  94. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.js +1 -1
  95. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.css +7 -2
  96. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +8 -3
  97. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.css +42 -13
  98. package/dist/collection/components/stable/gux-icon/gux-icon.js +1 -1
  99. package/dist/collection/components/stable/gux-icon/icons/fa/eye-regular.svg +1 -0
  100. package/dist/collection/components/stable/gux-icon/icons/fa/eye-slash-regular.svg +1 -0
  101. package/dist/collection/components/stable/gux-icon/icons/fa/laptop-slash-regular.svg +1 -0
  102. package/dist/collection/components/stable/gux-icon/icons/fa/message-bot-regular.svg +1 -0
  103. package/dist/collection/components/stable/gux-modal/gux-modal.css +1 -1
  104. package/dist/component-specs.json +4 -9
  105. package/dist/deploy-info.json +3 -3
  106. package/dist/esm/genesys-webcomponents.js +1 -1
  107. package/dist/esm/gux-accordion.entry.js +1 -1
  108. package/dist/esm/gux-action-button.entry.js +1 -1
  109. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  110. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  111. package/dist/esm/gux-announce-beta.entry.js +1 -1
  112. package/dist/esm/gux-badge.entry.js +1 -1
  113. package/dist/esm/gux-blank-state.entry.js +1 -1
  114. package/dist/esm/gux-breadcrumb-item.entry.js +1 -1
  115. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  116. package/dist/esm/gux-button-multi.entry.js +1 -1
  117. package/dist/esm/gux-button-slot.entry.js +2 -2
  118. package/dist/esm/gux-button.entry.js +2 -2
  119. package/dist/esm/gux-calendar.entry.js +1 -1
  120. package/dist/esm/gux-card.entry.js +1 -1
  121. package/dist/esm/gux-column-manager.entry.js +1 -1
  122. package/dist/esm/gux-content-search.entry.js +1 -1
  123. package/dist/esm/gux-context-menu.entry.js +1 -1
  124. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  125. package/dist/esm/gux-date-beta.entry.js +1 -1
  126. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  127. package/dist/esm/gux-datepicker.entry.js +1 -1
  128. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  129. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  130. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  131. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  132. package/dist/esm/gux-flyout-menu.entry.js +72 -38
  133. package/dist/esm/gux-form-field-checkbox.entry.js +2 -2
  134. package/dist/esm/gux-form-field-color.entry.js +1 -1
  135. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  136. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  137. package/dist/esm/gux-form-field-number_3.entry.js +1 -1
  138. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  139. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  140. package/dist/esm/gux-form-field-range.entry.js +1 -1
  141. package/dist/esm/gux-form-field-search.entry.js +1 -1
  142. package/dist/esm/gux-form-field-select.entry.js +1 -1
  143. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  144. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  145. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  146. package/dist/esm/gux-icon.entry.js +1 -1
  147. package/dist/esm/gux-inline-alert.entry.js +1 -1
  148. package/dist/esm/gux-list.entry.js +1 -1
  149. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  150. package/dist/esm/gux-loading-message.entry.js +1 -1
  151. package/dist/esm/gux-menu.entry.js +2 -2
  152. package/dist/esm/gux-modal.entry.js +2 -2
  153. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  154. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  155. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  156. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  157. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  158. package/dist/esm/gux-pagination.entry.js +1 -1
  159. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  160. package/dist/esm/gux-popover-list.entry.js +1 -1
  161. package/dist/esm/gux-radial-loading.entry.js +1 -1
  162. package/dist/esm/gux-radial-progress.entry.js +1 -1
  163. package/dist/esm/gux-rating.entry.js +1 -1
  164. package/dist/esm/gux-region-icon.entry.js +1 -1
  165. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  166. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  167. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  168. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  169. package/dist/esm/gux-sort-control.entry.js +1 -1
  170. package/dist/esm/gux-submenu.entry.js +9 -4
  171. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  172. package/dist/esm/gux-tab-advanced-list.entry.js +3020 -1
  173. package/dist/esm/gux-table-select-popover.entry.js +1791 -1
  174. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  175. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  176. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  177. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  178. package/dist/esm/gux-table.entry.js +1 -1
  179. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  180. package/dist/esm/gux-tabs.entry.js +1 -1
  181. package/dist/esm/gux-tag.entry.js +1 -1
  182. package/dist/esm/gux-text-highlight.entry.js +1 -1
  183. package/dist/esm/gux-time-beta.entry.js +1 -1
  184. package/dist/esm/gux-time-picker.entry.js +1 -1
  185. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  186. package/dist/esm/gux-toast.entry.js +1 -1
  187. package/dist/esm/gux-toggle.entry.js +1 -1
  188. package/dist/esm/gux-tooltip.entry.js +1 -1
  189. package/dist/esm/index-a0eec33a.js +4 -20
  190. package/dist/esm/loader.js +1 -1
  191. package/dist/esm/{usage-9db89e81.js → usage-b87fd180.js} +1 -1
  192. package/dist/genesys-webcomponents/genesys-webcomponents.css +1 -1
  193. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  194. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  195. package/dist/genesys-webcomponents/icons/fa/eye-regular.svg +1 -0
  196. package/dist/genesys-webcomponents/icons/fa/eye-slash-regular.svg +1 -0
  197. package/dist/genesys-webcomponents/icons/fa/laptop-slash-regular.svg +1 -0
  198. package/dist/genesys-webcomponents/icons/fa/message-bot-regular.svg +1 -0
  199. package/dist/genesys-webcomponents/{p-275190eb.entry.js → p-004e23db.entry.js} +1 -1
  200. package/dist/genesys-webcomponents/{p-82ff960a.entry.js → p-05ef8928.entry.js} +1 -1
  201. package/dist/genesys-webcomponents/{p-aa66df62.entry.js → p-06126ae7.entry.js} +1 -1
  202. package/dist/genesys-webcomponents/{p-bf3640cf.entry.js → p-06a66c14.entry.js} +1 -1
  203. package/dist/genesys-webcomponents/{p-64f97f86.entry.js → p-12328ac7.entry.js} +1 -1
  204. package/dist/genesys-webcomponents/{p-3aa647fd.entry.js → p-13469f27.entry.js} +1 -1
  205. package/dist/genesys-webcomponents/{p-a110a467.entry.js → p-15e2b136.entry.js} +1 -1
  206. package/dist/genesys-webcomponents/{p-53a1d44e.entry.js → p-16e3230c.entry.js} +1 -1
  207. package/dist/genesys-webcomponents/{p-170e10d8.entry.js → p-17a69995.entry.js} +1 -1
  208. package/dist/genesys-webcomponents/{p-48d0d172.entry.js → p-182557c0.entry.js} +1 -1
  209. package/dist/genesys-webcomponents/{p-645bf22d.entry.js → p-1fe5cedc.entry.js} +1 -1
  210. package/dist/genesys-webcomponents/{p-c2352a62.entry.js → p-20fcaa12.entry.js} +1 -1
  211. package/dist/genesys-webcomponents/p-21e688a3.entry.js +1 -0
  212. package/dist/genesys-webcomponents/{p-0e9b22e4.entry.js → p-2730f018.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-77b466cc.entry.js → p-2858df24.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/{p-96a2defd.entry.js → p-28665401.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-04e7b0a5.entry.js → p-2910e18c.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/{p-947008c7.entry.js → p-2ac021cd.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-71ea12be.entry.js → p-2bf6faa3.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-bb8382c8.entry.js → p-2e05dde3.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/p-347abe5b.entry.js +1 -0
  220. package/dist/genesys-webcomponents/{p-8e2f5120.entry.js → p-3a2cebaa.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-f0ad551b.entry.js → p-3cc54e8e.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-80e52443.entry.js → p-3d91f060.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-adecb65e.entry.js → p-43f34ba2.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/{p-20e0415d.entry.js → p-46e1ce79.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-4ef7f5b0.entry.js → p-4c398f43.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-e93b4a73.entry.js → p-4d58d798.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-2c325bd9.entry.js → p-4d5aae91.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-23e0e71f.entry.js → p-4df3d0fa.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-2d2f6a98.entry.js → p-53e47d10.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-7e0bec76.entry.js → p-561a63aa.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-a6dbce60.entry.js → p-575c6d23.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-0fb8a131.entry.js → p-5b4a402d.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-ea3298b3.entry.js → p-6114bb74.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-07abb8df.entry.js → p-633f03b7.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/p-65cf4c58.entry.js +7 -0
  236. package/dist/genesys-webcomponents/{p-22590862.entry.js → p-664266fc.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/{p-3c951a20.entry.js → p-679f1b15.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/p-69153f39.entry.js +1 -0
  239. package/dist/genesys-webcomponents/{p-03c3a43a.entry.js → p-6aee4b77.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-478e3b1c.entry.js → p-6de4fd79.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-74330868.entry.js → p-6ea8918f.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-6c5bcc19.entry.js → p-76d70fe8.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-f1d85fd3.entry.js → p-78a234a5.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-801d58d0.entry.js → p-7bca36b4.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-0443695b.entry.js → p-7c073ff3.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-23fdc919.entry.js → p-81a95b8a.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-e9803c6d.entry.js → p-82fc4cbf.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-cefecb77.entry.js → p-88cff9d7.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-24aaca86.entry.js → p-8d6256cc.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-9b14db2e.entry.js → p-8d8500ef.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-9c7f235d.entry.js → p-8f731a36.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-eba5e8e8.entry.js → p-8fd503b6.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-49fa664f.entry.js → p-91a50e2f.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-2e88df19.entry.js → p-91be3acf.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-75c18eb2.entry.js → p-98cf7f13.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-b4a578d1.entry.js → p-9bf98889.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/p-9d684bc6.entry.js +1 -0
  258. package/dist/genesys-webcomponents/p-a1c693e2.entry.js +1 -0
  259. package/dist/genesys-webcomponents/p-abc49c2f.entry.js +1 -0
  260. package/dist/genesys-webcomponents/{p-7c4e5b42.entry.js → p-ade08f16.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-18901baf.entry.js → p-b5293bdb.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-16101c87.entry.js → p-b8c97d62.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/p-b9bd1aa0.entry.js +1 -0
  264. package/dist/genesys-webcomponents/{p-88ebf763.entry.js → p-c027647a.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-ca39b814.entry.js → p-c39b6dd3.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-9c69a37d.entry.js → p-c56b2a96.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-8897f0c8.entry.js → p-c963637a.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-354af9aa.entry.js → p-ca2bc125.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-7293caff.entry.js → p-ce09a0c1.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-c1253f5b.entry.js → p-ced0ce28.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-6eaaa7d4.entry.js → p-d0913f6c.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-3c614740.js → p-d12602d6.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-b4e0bdda.entry.js → p-d7b3bc8d.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-290db8e8.entry.js → p-e36a3384.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-cae769d3.entry.js → p-e4a50387.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-2339dbe7.entry.js → p-e8ef27c7.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-47417e1a.entry.js → p-ec0814f2.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-b14af97c.entry.js → p-ecfb44b0.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-4303e91c.entry.js → p-f7e75e45.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-581afbbd.entry.js → p-f9c135c9.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-67bf8797.entry.js → p-fb91923a.entry.js} +1 -1
  282. package/dist/stencil-wrapper.js +1 -1
  283. package/dist/types/components/stable/gux-flyout-menu/gux-flyout-menu.d.ts +5 -4
  284. package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
  285. package/dist/types/components.d.ts +0 -132
  286. package/dist/types/stencil-wrapper.d.ts +1 -1
  287. package/package.json +1 -1
  288. package/dist/cjs/en-5507bf0d.js +0 -24
  289. package/dist/cjs/gux-tab-advanced-legacy.cjs.entry.js +0 -157
  290. package/dist/cjs/gux-tab-advanced-list-legacy.cjs.entry.js +0 -470
  291. package/dist/cjs/gux-tab-advanced-panel-legacy.cjs.entry.js +0 -34
  292. package/dist/cjs/gux-tabs-advanced-legacy.cjs.entry.js +0 -63
  293. package/dist/cjs/popper-9a6aec9e.js +0 -1794
  294. package/dist/cjs/sortable.esm-73cf219b.js +0 -3023
  295. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced/gux-tab-advanced.css +0 -117
  296. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced/gux-tab-advanced.js +0 -320
  297. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-list/gux-tab-advanced-list.css +0 -127
  298. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-list/gux-tab-advanced-list.js +0 -624
  299. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-panel/gux-tab-advanced-panel.css +0 -7
  300. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-panel/gux-tab-advanced-panel.js +0 -107
  301. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tabs-advanced.css +0 -3
  302. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tabs-advanced.js +0 -148
  303. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/tests/gux-tabs-advanced.e2e.js +0 -216
  304. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/tests/gux-tabs-advanced.spec.js +0 -73
  305. package/dist/esm/en-b0526f2a.js +0 -22
  306. package/dist/esm/gux-tab-advanced-legacy.entry.js +0 -153
  307. package/dist/esm/gux-tab-advanced-list-legacy.entry.js +0 -466
  308. package/dist/esm/gux-tab-advanced-panel-legacy.entry.js +0 -30
  309. package/dist/esm/gux-tabs-advanced-legacy.entry.js +0 -59
  310. package/dist/esm/popper-1604923e.js +0 -1792
  311. package/dist/esm/sortable.esm-8c3d5856.js +0 -3021
  312. package/dist/genesys-webcomponents/p-0e1a0eef.entry.js +0 -1
  313. package/dist/genesys-webcomponents/p-1486d7ea.js +0 -7
  314. package/dist/genesys-webcomponents/p-2187b61f.entry.js +0 -1
  315. package/dist/genesys-webcomponents/p-38c797a5.entry.js +0 -1
  316. package/dist/genesys-webcomponents/p-5844e8c2.js +0 -1
  317. package/dist/genesys-webcomponents/p-741109b2.entry.js +0 -1
  318. package/dist/genesys-webcomponents/p-77db656b.entry.js +0 -1
  319. package/dist/genesys-webcomponents/p-9cc0c717.entry.js +0 -1
  320. package/dist/genesys-webcomponents/p-b3fd4623.entry.js +0 -1
  321. package/dist/genesys-webcomponents/p-c4a77eda.entry.js +0 -1
  322. package/dist/genesys-webcomponents/p-c7a90b16.entry.js +0 -1
  323. package/dist/genesys-webcomponents/p-c88906c4.entry.js +0 -1
  324. package/dist/genesys-webcomponents/p-e459974a.js +0 -1
  325. package/dist/genesys-webcomponents/p-f34da37c.entry.js +0 -1
  326. package/dist/genesys-webcomponents/p-f3ac7576.entry.js +0 -1
  327. package/dist/types/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced/gux-tab-advanced.d.ts +0 -45
  328. package/dist/types/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-list/gux-tab-advanced-list.d.ts +0 -82
  329. package/dist/types/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-panel/gux-tab-advanced-panel.d.ts +0 -12
  330. package/dist/types/components/legacy/gux-tabs-advanced-legacy/gux-tabs-advanced.d.ts +0 -25
@@ -1,7 +1,1797 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a0eec33a.js';
2
2
  import { O as OnClickOutside } from './on-click-outside-e696f632.js';
3
3
  import { b as onHiddenChange } from './on-attribute-change-b91132e6.js';
4
- import { c as createPopper } from './popper-1604923e.js';
4
+
5
+ var top = 'top';
6
+ var bottom = 'bottom';
7
+ var right = 'right';
8
+ var left = 'left';
9
+ var auto = 'auto';
10
+ var basePlacements = [top, bottom, right, left];
11
+ var start = 'start';
12
+ var end = 'end';
13
+ var clippingParents = 'clippingParents';
14
+ var viewport = 'viewport';
15
+ var popper = 'popper';
16
+ var reference = 'reference';
17
+ var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
18
+ return acc.concat([placement + "-" + start, placement + "-" + end]);
19
+ }, []);
20
+ var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
21
+ return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
22
+ }, []); // modifiers that need to read the DOM
23
+
24
+ var beforeRead = 'beforeRead';
25
+ var read = 'read';
26
+ var afterRead = 'afterRead'; // pure-logic modifiers
27
+
28
+ var beforeMain = 'beforeMain';
29
+ var main = 'main';
30
+ var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
31
+
32
+ var beforeWrite = 'beforeWrite';
33
+ var write = 'write';
34
+ var afterWrite = 'afterWrite';
35
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
36
+
37
+ function getNodeName(element) {
38
+ return element ? (element.nodeName || '').toLowerCase() : null;
39
+ }
40
+
41
+ function getWindow(node) {
42
+ if (node == null) {
43
+ return window;
44
+ }
45
+
46
+ if (node.toString() !== '[object Window]') {
47
+ var ownerDocument = node.ownerDocument;
48
+ return ownerDocument ? ownerDocument.defaultView || window : window;
49
+ }
50
+
51
+ return node;
52
+ }
53
+
54
+ function isElement(node) {
55
+ var OwnElement = getWindow(node).Element;
56
+ return node instanceof OwnElement || node instanceof Element;
57
+ }
58
+
59
+ function isHTMLElement(node) {
60
+ var OwnElement = getWindow(node).HTMLElement;
61
+ return node instanceof OwnElement || node instanceof HTMLElement;
62
+ }
63
+
64
+ function isShadowRoot(node) {
65
+ // IE 11 has no ShadowRoot
66
+ if (typeof ShadowRoot === 'undefined') {
67
+ return false;
68
+ }
69
+
70
+ var OwnElement = getWindow(node).ShadowRoot;
71
+ return node instanceof OwnElement || node instanceof ShadowRoot;
72
+ }
73
+
74
+ // and applies them to the HTMLElements such as popper and arrow
75
+
76
+ function applyStyles(_ref) {
77
+ var state = _ref.state;
78
+ Object.keys(state.elements).forEach(function (name) {
79
+ var style = state.styles[name] || {};
80
+ var attributes = state.attributes[name] || {};
81
+ var element = state.elements[name]; // arrow is optional + virtual elements
82
+
83
+ if (!isHTMLElement(element) || !getNodeName(element)) {
84
+ return;
85
+ } // Flow doesn't support to extend this property, but it's the most
86
+ // effective way to apply styles to an HTMLElement
87
+ // $FlowFixMe[cannot-write]
88
+
89
+
90
+ Object.assign(element.style, style);
91
+ Object.keys(attributes).forEach(function (name) {
92
+ var value = attributes[name];
93
+
94
+ if (value === false) {
95
+ element.removeAttribute(name);
96
+ } else {
97
+ element.setAttribute(name, value === true ? '' : value);
98
+ }
99
+ });
100
+ });
101
+ }
102
+
103
+ function effect$2(_ref2) {
104
+ var state = _ref2.state;
105
+ var initialStyles = {
106
+ popper: {
107
+ position: state.options.strategy,
108
+ left: '0',
109
+ top: '0',
110
+ margin: '0'
111
+ },
112
+ arrow: {
113
+ position: 'absolute'
114
+ },
115
+ reference: {}
116
+ };
117
+ Object.assign(state.elements.popper.style, initialStyles.popper);
118
+ state.styles = initialStyles;
119
+
120
+ if (state.elements.arrow) {
121
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
122
+ }
123
+
124
+ return function () {
125
+ Object.keys(state.elements).forEach(function (name) {
126
+ var element = state.elements[name];
127
+ var attributes = state.attributes[name] || {};
128
+ var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
129
+
130
+ var style = styleProperties.reduce(function (style, property) {
131
+ style[property] = '';
132
+ return style;
133
+ }, {}); // arrow is optional + virtual elements
134
+
135
+ if (!isHTMLElement(element) || !getNodeName(element)) {
136
+ return;
137
+ }
138
+
139
+ Object.assign(element.style, style);
140
+ Object.keys(attributes).forEach(function (attribute) {
141
+ element.removeAttribute(attribute);
142
+ });
143
+ });
144
+ };
145
+ } // eslint-disable-next-line import/no-unused-modules
146
+
147
+
148
+ const applyStyles$1 = {
149
+ name: 'applyStyles',
150
+ enabled: true,
151
+ phase: 'write',
152
+ fn: applyStyles,
153
+ effect: effect$2,
154
+ requires: ['computeStyles']
155
+ };
156
+
157
+ function getBasePlacement(placement) {
158
+ return placement.split('-')[0];
159
+ }
160
+
161
+ var max = Math.max;
162
+ var min = Math.min;
163
+ var round = Math.round;
164
+
165
+ function getUAString() {
166
+ var uaData = navigator.userAgentData;
167
+
168
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
169
+ return uaData.brands.map(function (item) {
170
+ return item.brand + "/" + item.version;
171
+ }).join(' ');
172
+ }
173
+
174
+ return navigator.userAgent;
175
+ }
176
+
177
+ function isLayoutViewport() {
178
+ return !/^((?!chrome|android).)*safari/i.test(getUAString());
179
+ }
180
+
181
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
182
+ if (includeScale === void 0) {
183
+ includeScale = false;
184
+ }
185
+
186
+ if (isFixedStrategy === void 0) {
187
+ isFixedStrategy = false;
188
+ }
189
+
190
+ var clientRect = element.getBoundingClientRect();
191
+ var scaleX = 1;
192
+ var scaleY = 1;
193
+
194
+ if (includeScale && isHTMLElement(element)) {
195
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
196
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
197
+ }
198
+
199
+ var _ref = isElement(element) ? getWindow(element) : window,
200
+ visualViewport = _ref.visualViewport;
201
+
202
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
203
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
204
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
205
+ var width = clientRect.width / scaleX;
206
+ var height = clientRect.height / scaleY;
207
+ return {
208
+ width: width,
209
+ height: height,
210
+ top: y,
211
+ right: x + width,
212
+ bottom: y + height,
213
+ left: x,
214
+ x: x,
215
+ y: y
216
+ };
217
+ }
218
+
219
+ // means it doesn't take into account transforms.
220
+
221
+ function getLayoutRect(element) {
222
+ var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
223
+ // Fixes https://github.com/popperjs/popper-core/issues/1223
224
+
225
+ var width = element.offsetWidth;
226
+ var height = element.offsetHeight;
227
+
228
+ if (Math.abs(clientRect.width - width) <= 1) {
229
+ width = clientRect.width;
230
+ }
231
+
232
+ if (Math.abs(clientRect.height - height) <= 1) {
233
+ height = clientRect.height;
234
+ }
235
+
236
+ return {
237
+ x: element.offsetLeft,
238
+ y: element.offsetTop,
239
+ width: width,
240
+ height: height
241
+ };
242
+ }
243
+
244
+ function contains(parent, child) {
245
+ var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
246
+
247
+ if (parent.contains(child)) {
248
+ return true;
249
+ } // then fallback to custom implementation with Shadow DOM support
250
+ else if (rootNode && isShadowRoot(rootNode)) {
251
+ var next = child;
252
+
253
+ do {
254
+ if (next && parent.isSameNode(next)) {
255
+ return true;
256
+ } // $FlowFixMe[prop-missing]: need a better way to handle this...
257
+
258
+
259
+ next = next.parentNode || next.host;
260
+ } while (next);
261
+ } // Give up, the result is false
262
+
263
+
264
+ return false;
265
+ }
266
+
267
+ function getComputedStyle(element) {
268
+ return getWindow(element).getComputedStyle(element);
269
+ }
270
+
271
+ function isTableElement(element) {
272
+ return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
273
+ }
274
+
275
+ function getDocumentElement(element) {
276
+ // $FlowFixMe[incompatible-return]: assume body is always available
277
+ return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
278
+ element.document) || window.document).documentElement;
279
+ }
280
+
281
+ function getParentNode(element) {
282
+ if (getNodeName(element) === 'html') {
283
+ return element;
284
+ }
285
+
286
+ return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
287
+ // $FlowFixMe[incompatible-return]
288
+ // $FlowFixMe[prop-missing]
289
+ element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
290
+ element.parentNode || ( // DOM Element detected
291
+ isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
292
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
293
+ getDocumentElement(element) // fallback
294
+
295
+ );
296
+ }
297
+
298
+ function getTrueOffsetParent(element) {
299
+ if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
300
+ getComputedStyle(element).position === 'fixed') {
301
+ return null;
302
+ }
303
+
304
+ return element.offsetParent;
305
+ } // `.offsetParent` reports `null` for fixed elements, while absolute elements
306
+ // return the containing block
307
+
308
+
309
+ function getContainingBlock(element) {
310
+ var isFirefox = /firefox/i.test(getUAString());
311
+ var isIE = /Trident/i.test(getUAString());
312
+
313
+ if (isIE && isHTMLElement(element)) {
314
+ // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
315
+ var elementCss = getComputedStyle(element);
316
+
317
+ if (elementCss.position === 'fixed') {
318
+ return null;
319
+ }
320
+ }
321
+
322
+ var currentNode = getParentNode(element);
323
+
324
+ if (isShadowRoot(currentNode)) {
325
+ currentNode = currentNode.host;
326
+ }
327
+
328
+ while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
329
+ var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
330
+ // create a containing block.
331
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
332
+
333
+ if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
334
+ return currentNode;
335
+ } else {
336
+ currentNode = currentNode.parentNode;
337
+ }
338
+ }
339
+
340
+ return null;
341
+ } // Gets the closest ancestor positioned element. Handles some edge cases,
342
+ // such as table ancestors and cross browser bugs.
343
+
344
+
345
+ function getOffsetParent(element) {
346
+ var window = getWindow(element);
347
+ var offsetParent = getTrueOffsetParent(element);
348
+
349
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
350
+ offsetParent = getTrueOffsetParent(offsetParent);
351
+ }
352
+
353
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
354
+ return window;
355
+ }
356
+
357
+ return offsetParent || getContainingBlock(element) || window;
358
+ }
359
+
360
+ function getMainAxisFromPlacement(placement) {
361
+ return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
362
+ }
363
+
364
+ function within(min$1, value, max$1) {
365
+ return max(min$1, min(value, max$1));
366
+ }
367
+ function withinMaxClamp(min, value, max) {
368
+ var v = within(min, value, max);
369
+ return v > max ? max : v;
370
+ }
371
+
372
+ function getFreshSideObject() {
373
+ return {
374
+ top: 0,
375
+ right: 0,
376
+ bottom: 0,
377
+ left: 0
378
+ };
379
+ }
380
+
381
+ function mergePaddingObject(paddingObject) {
382
+ return Object.assign({}, getFreshSideObject(), paddingObject);
383
+ }
384
+
385
+ function expandToHashMap(value, keys) {
386
+ return keys.reduce(function (hashMap, key) {
387
+ hashMap[key] = value;
388
+ return hashMap;
389
+ }, {});
390
+ }
391
+
392
+ var toPaddingObject = function toPaddingObject(padding, state) {
393
+ padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
394
+ placement: state.placement
395
+ })) : padding;
396
+ return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
397
+ };
398
+
399
+ function arrow(_ref) {
400
+ var _state$modifiersData$;
401
+
402
+ var state = _ref.state,
403
+ name = _ref.name,
404
+ options = _ref.options;
405
+ var arrowElement = state.elements.arrow;
406
+ var popperOffsets = state.modifiersData.popperOffsets;
407
+ var basePlacement = getBasePlacement(state.placement);
408
+ var axis = getMainAxisFromPlacement(basePlacement);
409
+ var isVertical = [left, right].indexOf(basePlacement) >= 0;
410
+ var len = isVertical ? 'height' : 'width';
411
+
412
+ if (!arrowElement || !popperOffsets) {
413
+ return;
414
+ }
415
+
416
+ var paddingObject = toPaddingObject(options.padding, state);
417
+ var arrowRect = getLayoutRect(arrowElement);
418
+ var minProp = axis === 'y' ? top : left;
419
+ var maxProp = axis === 'y' ? bottom : right;
420
+ var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
421
+ var startDiff = popperOffsets[axis] - state.rects.reference[axis];
422
+ var arrowOffsetParent = getOffsetParent(arrowElement);
423
+ var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
424
+ var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
425
+ // outside of the popper bounds
426
+
427
+ var min = paddingObject[minProp];
428
+ var max = clientSize - arrowRect[len] - paddingObject[maxProp];
429
+ var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
430
+ var offset = within(min, center, max); // Prevents breaking syntax highlighting...
431
+
432
+ var axisProp = axis;
433
+ state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
434
+ }
435
+
436
+ function effect$1(_ref2) {
437
+ var state = _ref2.state,
438
+ options = _ref2.options;
439
+ var _options$element = options.element,
440
+ arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
441
+
442
+ if (arrowElement == null) {
443
+ return;
444
+ } // CSS selector
445
+
446
+
447
+ if (typeof arrowElement === 'string') {
448
+ arrowElement = state.elements.popper.querySelector(arrowElement);
449
+
450
+ if (!arrowElement) {
451
+ return;
452
+ }
453
+ }
454
+
455
+ if (!contains(state.elements.popper, arrowElement)) {
456
+ return;
457
+ }
458
+
459
+ state.elements.arrow = arrowElement;
460
+ } // eslint-disable-next-line import/no-unused-modules
461
+
462
+
463
+ const arrow$1 = {
464
+ name: 'arrow',
465
+ enabled: true,
466
+ phase: 'main',
467
+ fn: arrow,
468
+ effect: effect$1,
469
+ requires: ['popperOffsets'],
470
+ requiresIfExists: ['preventOverflow']
471
+ };
472
+
473
+ function getVariation(placement) {
474
+ return placement.split('-')[1];
475
+ }
476
+
477
+ var unsetSides = {
478
+ top: 'auto',
479
+ right: 'auto',
480
+ bottom: 'auto',
481
+ left: 'auto'
482
+ }; // Round the offsets to the nearest suitable subpixel based on the DPR.
483
+ // Zooming can change the DPR, but it seems to report a value that will
484
+ // cleanly divide the values into the appropriate subpixels.
485
+
486
+ function roundOffsetsByDPR(_ref, win) {
487
+ var x = _ref.x,
488
+ y = _ref.y;
489
+ var dpr = win.devicePixelRatio || 1;
490
+ return {
491
+ x: round(x * dpr) / dpr || 0,
492
+ y: round(y * dpr) / dpr || 0
493
+ };
494
+ }
495
+
496
+ function mapToStyles(_ref2) {
497
+ var _Object$assign2;
498
+
499
+ var popper = _ref2.popper,
500
+ popperRect = _ref2.popperRect,
501
+ placement = _ref2.placement,
502
+ variation = _ref2.variation,
503
+ offsets = _ref2.offsets,
504
+ position = _ref2.position,
505
+ gpuAcceleration = _ref2.gpuAcceleration,
506
+ adaptive = _ref2.adaptive,
507
+ roundOffsets = _ref2.roundOffsets,
508
+ isFixed = _ref2.isFixed;
509
+ var _offsets$x = offsets.x,
510
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
511
+ _offsets$y = offsets.y,
512
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
513
+
514
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
515
+ x: x,
516
+ y: y
517
+ }) : {
518
+ x: x,
519
+ y: y
520
+ };
521
+
522
+ x = _ref3.x;
523
+ y = _ref3.y;
524
+ var hasX = offsets.hasOwnProperty('x');
525
+ var hasY = offsets.hasOwnProperty('y');
526
+ var sideX = left;
527
+ var sideY = top;
528
+ var win = window;
529
+
530
+ if (adaptive) {
531
+ var offsetParent = getOffsetParent(popper);
532
+ var heightProp = 'clientHeight';
533
+ var widthProp = 'clientWidth';
534
+
535
+ if (offsetParent === getWindow(popper)) {
536
+ offsetParent = getDocumentElement(popper);
537
+
538
+ if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
539
+ heightProp = 'scrollHeight';
540
+ widthProp = 'scrollWidth';
541
+ }
542
+ } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
543
+
544
+
545
+ offsetParent = offsetParent;
546
+
547
+ if (placement === top || (placement === left || placement === right) && variation === end) {
548
+ sideY = bottom;
549
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
550
+ offsetParent[heightProp];
551
+ y -= offsetY - popperRect.height;
552
+ y *= gpuAcceleration ? 1 : -1;
553
+ }
554
+
555
+ if (placement === left || (placement === top || placement === bottom) && variation === end) {
556
+ sideX = right;
557
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
558
+ offsetParent[widthProp];
559
+ x -= offsetX - popperRect.width;
560
+ x *= gpuAcceleration ? 1 : -1;
561
+ }
562
+ }
563
+
564
+ var commonStyles = Object.assign({
565
+ position: position
566
+ }, adaptive && unsetSides);
567
+
568
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
569
+ x: x,
570
+ y: y
571
+ }, getWindow(popper)) : {
572
+ x: x,
573
+ y: y
574
+ };
575
+
576
+ x = _ref4.x;
577
+ y = _ref4.y;
578
+
579
+ if (gpuAcceleration) {
580
+ var _Object$assign;
581
+
582
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
583
+ }
584
+
585
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
586
+ }
587
+
588
+ function computeStyles(_ref5) {
589
+ var state = _ref5.state,
590
+ options = _ref5.options;
591
+ var _options$gpuAccelerat = options.gpuAcceleration,
592
+ gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
593
+ _options$adaptive = options.adaptive,
594
+ adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
595
+ _options$roundOffsets = options.roundOffsets,
596
+ roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
597
+ var commonStyles = {
598
+ placement: getBasePlacement(state.placement),
599
+ variation: getVariation(state.placement),
600
+ popper: state.elements.popper,
601
+ popperRect: state.rects.popper,
602
+ gpuAcceleration: gpuAcceleration,
603
+ isFixed: state.options.strategy === 'fixed'
604
+ };
605
+
606
+ if (state.modifiersData.popperOffsets != null) {
607
+ state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
608
+ offsets: state.modifiersData.popperOffsets,
609
+ position: state.options.strategy,
610
+ adaptive: adaptive,
611
+ roundOffsets: roundOffsets
612
+ })));
613
+ }
614
+
615
+ if (state.modifiersData.arrow != null) {
616
+ state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
617
+ offsets: state.modifiersData.arrow,
618
+ position: 'absolute',
619
+ adaptive: false,
620
+ roundOffsets: roundOffsets
621
+ })));
622
+ }
623
+
624
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
625
+ 'data-popper-placement': state.placement
626
+ });
627
+ } // eslint-disable-next-line import/no-unused-modules
628
+
629
+
630
+ const computeStyles$1 = {
631
+ name: 'computeStyles',
632
+ enabled: true,
633
+ phase: 'beforeWrite',
634
+ fn: computeStyles,
635
+ data: {}
636
+ };
637
+
638
+ var passive = {
639
+ passive: true
640
+ };
641
+
642
+ function effect(_ref) {
643
+ var state = _ref.state,
644
+ instance = _ref.instance,
645
+ options = _ref.options;
646
+ var _options$scroll = options.scroll,
647
+ scroll = _options$scroll === void 0 ? true : _options$scroll,
648
+ _options$resize = options.resize,
649
+ resize = _options$resize === void 0 ? true : _options$resize;
650
+ var window = getWindow(state.elements.popper);
651
+ var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
652
+
653
+ if (scroll) {
654
+ scrollParents.forEach(function (scrollParent) {
655
+ scrollParent.addEventListener('scroll', instance.update, passive);
656
+ });
657
+ }
658
+
659
+ if (resize) {
660
+ window.addEventListener('resize', instance.update, passive);
661
+ }
662
+
663
+ return function () {
664
+ if (scroll) {
665
+ scrollParents.forEach(function (scrollParent) {
666
+ scrollParent.removeEventListener('scroll', instance.update, passive);
667
+ });
668
+ }
669
+
670
+ if (resize) {
671
+ window.removeEventListener('resize', instance.update, passive);
672
+ }
673
+ };
674
+ } // eslint-disable-next-line import/no-unused-modules
675
+
676
+
677
+ const eventListeners = {
678
+ name: 'eventListeners',
679
+ enabled: true,
680
+ phase: 'write',
681
+ fn: function fn() {},
682
+ effect: effect,
683
+ data: {}
684
+ };
685
+
686
+ var hash$1 = {
687
+ left: 'right',
688
+ right: 'left',
689
+ bottom: 'top',
690
+ top: 'bottom'
691
+ };
692
+ function getOppositePlacement(placement) {
693
+ return placement.replace(/left|right|bottom|top/g, function (matched) {
694
+ return hash$1[matched];
695
+ });
696
+ }
697
+
698
+ var hash = {
699
+ start: 'end',
700
+ end: 'start'
701
+ };
702
+ function getOppositeVariationPlacement(placement) {
703
+ return placement.replace(/start|end/g, function (matched) {
704
+ return hash[matched];
705
+ });
706
+ }
707
+
708
+ function getWindowScroll(node) {
709
+ var win = getWindow(node);
710
+ var scrollLeft = win.pageXOffset;
711
+ var scrollTop = win.pageYOffset;
712
+ return {
713
+ scrollLeft: scrollLeft,
714
+ scrollTop: scrollTop
715
+ };
716
+ }
717
+
718
+ function getWindowScrollBarX(element) {
719
+ // If <html> has a CSS width greater than the viewport, then this will be
720
+ // incorrect for RTL.
721
+ // Popper 1 is broken in this case and never had a bug report so let's assume
722
+ // it's not an issue. I don't think anyone ever specifies width on <html>
723
+ // anyway.
724
+ // Browsers where the left scrollbar doesn't cause an issue report `0` for
725
+ // this (e.g. Edge 2019, IE11, Safari)
726
+ return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
727
+ }
728
+
729
+ function getViewportRect(element, strategy) {
730
+ var win = getWindow(element);
731
+ var html = getDocumentElement(element);
732
+ var visualViewport = win.visualViewport;
733
+ var width = html.clientWidth;
734
+ var height = html.clientHeight;
735
+ var x = 0;
736
+ var y = 0;
737
+
738
+ if (visualViewport) {
739
+ width = visualViewport.width;
740
+ height = visualViewport.height;
741
+ var layoutViewport = isLayoutViewport();
742
+
743
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
744
+ x = visualViewport.offsetLeft;
745
+ y = visualViewport.offsetTop;
746
+ }
747
+ }
748
+
749
+ return {
750
+ width: width,
751
+ height: height,
752
+ x: x + getWindowScrollBarX(element),
753
+ y: y
754
+ };
755
+ }
756
+
757
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable
758
+
759
+ function getDocumentRect(element) {
760
+ var _element$ownerDocumen;
761
+
762
+ var html = getDocumentElement(element);
763
+ var winScroll = getWindowScroll(element);
764
+ var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
765
+ var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
766
+ var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
767
+ var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
768
+ var y = -winScroll.scrollTop;
769
+
770
+ if (getComputedStyle(body || html).direction === 'rtl') {
771
+ x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
772
+ }
773
+
774
+ return {
775
+ width: width,
776
+ height: height,
777
+ x: x,
778
+ y: y
779
+ };
780
+ }
781
+
782
+ function isScrollParent(element) {
783
+ // Firefox wants us to check `-x` and `-y` variations as well
784
+ var _getComputedStyle = getComputedStyle(element),
785
+ overflow = _getComputedStyle.overflow,
786
+ overflowX = _getComputedStyle.overflowX,
787
+ overflowY = _getComputedStyle.overflowY;
788
+
789
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
790
+ }
791
+
792
+ function getScrollParent(node) {
793
+ if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
794
+ // $FlowFixMe[incompatible-return]: assume body is always available
795
+ return node.ownerDocument.body;
796
+ }
797
+
798
+ if (isHTMLElement(node) && isScrollParent(node)) {
799
+ return node;
800
+ }
801
+
802
+ return getScrollParent(getParentNode(node));
803
+ }
804
+
805
+ /*
806
+ given a DOM element, return the list of all scroll parents, up the list of ancesors
807
+ until we get to the top window object. This list is what we attach scroll listeners
808
+ to, because if any of these parent elements scroll, we'll need to re-calculate the
809
+ reference element's position.
810
+ */
811
+
812
+ function listScrollParents(element, list) {
813
+ var _element$ownerDocumen;
814
+
815
+ if (list === void 0) {
816
+ list = [];
817
+ }
818
+
819
+ var scrollParent = getScrollParent(element);
820
+ var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
821
+ var win = getWindow(scrollParent);
822
+ var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
823
+ var updatedList = list.concat(target);
824
+ return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
825
+ updatedList.concat(listScrollParents(getParentNode(target)));
826
+ }
827
+
828
+ function rectToClientRect(rect) {
829
+ return Object.assign({}, rect, {
830
+ left: rect.x,
831
+ top: rect.y,
832
+ right: rect.x + rect.width,
833
+ bottom: rect.y + rect.height
834
+ });
835
+ }
836
+
837
+ function getInnerBoundingClientRect(element, strategy) {
838
+ var rect = getBoundingClientRect(element, false, strategy === 'fixed');
839
+ rect.top = rect.top + element.clientTop;
840
+ rect.left = rect.left + element.clientLeft;
841
+ rect.bottom = rect.top + element.clientHeight;
842
+ rect.right = rect.left + element.clientWidth;
843
+ rect.width = element.clientWidth;
844
+ rect.height = element.clientHeight;
845
+ rect.x = rect.left;
846
+ rect.y = rect.top;
847
+ return rect;
848
+ }
849
+
850
+ function getClientRectFromMixedType(element, clippingParent, strategy) {
851
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
852
+ } // A "clipping parent" is an overflowable container with the characteristic of
853
+ // clipping (or hiding) overflowing elements with a position different from
854
+ // `initial`
855
+
856
+
857
+ function getClippingParents(element) {
858
+ var clippingParents = listScrollParents(getParentNode(element));
859
+ var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
860
+ var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
861
+
862
+ if (!isElement(clipperElement)) {
863
+ return [];
864
+ } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
865
+
866
+
867
+ return clippingParents.filter(function (clippingParent) {
868
+ return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
869
+ });
870
+ } // Gets the maximum area that the element is visible in due to any number of
871
+ // clipping parents
872
+
873
+
874
+ function getClippingRect(element, boundary, rootBoundary, strategy) {
875
+ var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
876
+ var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
877
+ var firstClippingParent = clippingParents[0];
878
+ var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
879
+ var rect = getClientRectFromMixedType(element, clippingParent, strategy);
880
+ accRect.top = max(rect.top, accRect.top);
881
+ accRect.right = min(rect.right, accRect.right);
882
+ accRect.bottom = min(rect.bottom, accRect.bottom);
883
+ accRect.left = max(rect.left, accRect.left);
884
+ return accRect;
885
+ }, getClientRectFromMixedType(element, firstClippingParent, strategy));
886
+ clippingRect.width = clippingRect.right - clippingRect.left;
887
+ clippingRect.height = clippingRect.bottom - clippingRect.top;
888
+ clippingRect.x = clippingRect.left;
889
+ clippingRect.y = clippingRect.top;
890
+ return clippingRect;
891
+ }
892
+
893
+ function computeOffsets(_ref) {
894
+ var reference = _ref.reference,
895
+ element = _ref.element,
896
+ placement = _ref.placement;
897
+ var basePlacement = placement ? getBasePlacement(placement) : null;
898
+ var variation = placement ? getVariation(placement) : null;
899
+ var commonX = reference.x + reference.width / 2 - element.width / 2;
900
+ var commonY = reference.y + reference.height / 2 - element.height / 2;
901
+ var offsets;
902
+
903
+ switch (basePlacement) {
904
+ case top:
905
+ offsets = {
906
+ x: commonX,
907
+ y: reference.y - element.height
908
+ };
909
+ break;
910
+
911
+ case bottom:
912
+ offsets = {
913
+ x: commonX,
914
+ y: reference.y + reference.height
915
+ };
916
+ break;
917
+
918
+ case right:
919
+ offsets = {
920
+ x: reference.x + reference.width,
921
+ y: commonY
922
+ };
923
+ break;
924
+
925
+ case left:
926
+ offsets = {
927
+ x: reference.x - element.width,
928
+ y: commonY
929
+ };
930
+ break;
931
+
932
+ default:
933
+ offsets = {
934
+ x: reference.x,
935
+ y: reference.y
936
+ };
937
+ }
938
+
939
+ var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
940
+
941
+ if (mainAxis != null) {
942
+ var len = mainAxis === 'y' ? 'height' : 'width';
943
+
944
+ switch (variation) {
945
+ case start:
946
+ offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
947
+ break;
948
+
949
+ case end:
950
+ offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
951
+ break;
952
+ }
953
+ }
954
+
955
+ return offsets;
956
+ }
957
+
958
+ function detectOverflow(state, options) {
959
+ if (options === void 0) {
960
+ options = {};
961
+ }
962
+
963
+ var _options = options,
964
+ _options$placement = _options.placement,
965
+ placement = _options$placement === void 0 ? state.placement : _options$placement,
966
+ _options$strategy = _options.strategy,
967
+ strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
968
+ _options$boundary = _options.boundary,
969
+ boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
970
+ _options$rootBoundary = _options.rootBoundary,
971
+ rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
972
+ _options$elementConte = _options.elementContext,
973
+ elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
974
+ _options$altBoundary = _options.altBoundary,
975
+ altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
976
+ _options$padding = _options.padding,
977
+ padding = _options$padding === void 0 ? 0 : _options$padding;
978
+ var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
979
+ var altContext = elementContext === popper ? reference : popper;
980
+ var popperRect = state.rects.popper;
981
+ var element = state.elements[altBoundary ? altContext : elementContext];
982
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
983
+ var referenceClientRect = getBoundingClientRect(state.elements.reference);
984
+ var popperOffsets = computeOffsets({
985
+ reference: referenceClientRect,
986
+ element: popperRect,
987
+ strategy: 'absolute',
988
+ placement: placement
989
+ });
990
+ var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
991
+ var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
992
+ // 0 or negative = within the clipping rect
993
+
994
+ var overflowOffsets = {
995
+ top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
996
+ bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
997
+ left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
998
+ right: elementClientRect.right - clippingClientRect.right + paddingObject.right
999
+ };
1000
+ var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
1001
+
1002
+ if (elementContext === popper && offsetData) {
1003
+ var offset = offsetData[placement];
1004
+ Object.keys(overflowOffsets).forEach(function (key) {
1005
+ var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
1006
+ var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
1007
+ overflowOffsets[key] += offset[axis] * multiply;
1008
+ });
1009
+ }
1010
+
1011
+ return overflowOffsets;
1012
+ }
1013
+
1014
+ function computeAutoPlacement(state, options) {
1015
+ if (options === void 0) {
1016
+ options = {};
1017
+ }
1018
+
1019
+ var _options = options,
1020
+ placement = _options.placement,
1021
+ boundary = _options.boundary,
1022
+ rootBoundary = _options.rootBoundary,
1023
+ padding = _options.padding,
1024
+ flipVariations = _options.flipVariations,
1025
+ _options$allowedAutoP = _options.allowedAutoPlacements,
1026
+ allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
1027
+ var variation = getVariation(placement);
1028
+ var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
1029
+ return getVariation(placement) === variation;
1030
+ }) : basePlacements;
1031
+ var allowedPlacements = placements$1.filter(function (placement) {
1032
+ return allowedAutoPlacements.indexOf(placement) >= 0;
1033
+ });
1034
+
1035
+ if (allowedPlacements.length === 0) {
1036
+ allowedPlacements = placements$1;
1037
+ } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
1038
+
1039
+
1040
+ var overflows = allowedPlacements.reduce(function (acc, placement) {
1041
+ acc[placement] = detectOverflow(state, {
1042
+ placement: placement,
1043
+ boundary: boundary,
1044
+ rootBoundary: rootBoundary,
1045
+ padding: padding
1046
+ })[getBasePlacement(placement)];
1047
+ return acc;
1048
+ }, {});
1049
+ return Object.keys(overflows).sort(function (a, b) {
1050
+ return overflows[a] - overflows[b];
1051
+ });
1052
+ }
1053
+
1054
+ function getExpandedFallbackPlacements(placement) {
1055
+ if (getBasePlacement(placement) === auto) {
1056
+ return [];
1057
+ }
1058
+
1059
+ var oppositePlacement = getOppositePlacement(placement);
1060
+ return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
1061
+ }
1062
+
1063
+ function flip(_ref) {
1064
+ var state = _ref.state,
1065
+ options = _ref.options,
1066
+ name = _ref.name;
1067
+
1068
+ if (state.modifiersData[name]._skip) {
1069
+ return;
1070
+ }
1071
+
1072
+ var _options$mainAxis = options.mainAxis,
1073
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1074
+ _options$altAxis = options.altAxis,
1075
+ checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
1076
+ specifiedFallbackPlacements = options.fallbackPlacements,
1077
+ padding = options.padding,
1078
+ boundary = options.boundary,
1079
+ rootBoundary = options.rootBoundary,
1080
+ altBoundary = options.altBoundary,
1081
+ _options$flipVariatio = options.flipVariations,
1082
+ flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
1083
+ allowedAutoPlacements = options.allowedAutoPlacements;
1084
+ var preferredPlacement = state.options.placement;
1085
+ var basePlacement = getBasePlacement(preferredPlacement);
1086
+ var isBasePlacement = basePlacement === preferredPlacement;
1087
+ var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
1088
+ var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
1089
+ return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
1090
+ placement: placement,
1091
+ boundary: boundary,
1092
+ rootBoundary: rootBoundary,
1093
+ padding: padding,
1094
+ flipVariations: flipVariations,
1095
+ allowedAutoPlacements: allowedAutoPlacements
1096
+ }) : placement);
1097
+ }, []);
1098
+ var referenceRect = state.rects.reference;
1099
+ var popperRect = state.rects.popper;
1100
+ var checksMap = new Map();
1101
+ var makeFallbackChecks = true;
1102
+ var firstFittingPlacement = placements[0];
1103
+
1104
+ for (var i = 0; i < placements.length; i++) {
1105
+ var placement = placements[i];
1106
+
1107
+ var _basePlacement = getBasePlacement(placement);
1108
+
1109
+ var isStartVariation = getVariation(placement) === start;
1110
+ var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
1111
+ var len = isVertical ? 'width' : 'height';
1112
+ var overflow = detectOverflow(state, {
1113
+ placement: placement,
1114
+ boundary: boundary,
1115
+ rootBoundary: rootBoundary,
1116
+ altBoundary: altBoundary,
1117
+ padding: padding
1118
+ });
1119
+ var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
1120
+
1121
+ if (referenceRect[len] > popperRect[len]) {
1122
+ mainVariationSide = getOppositePlacement(mainVariationSide);
1123
+ }
1124
+
1125
+ var altVariationSide = getOppositePlacement(mainVariationSide);
1126
+ var checks = [];
1127
+
1128
+ if (checkMainAxis) {
1129
+ checks.push(overflow[_basePlacement] <= 0);
1130
+ }
1131
+
1132
+ if (checkAltAxis) {
1133
+ checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
1134
+ }
1135
+
1136
+ if (checks.every(function (check) {
1137
+ return check;
1138
+ })) {
1139
+ firstFittingPlacement = placement;
1140
+ makeFallbackChecks = false;
1141
+ break;
1142
+ }
1143
+
1144
+ checksMap.set(placement, checks);
1145
+ }
1146
+
1147
+ if (makeFallbackChecks) {
1148
+ // `2` may be desired in some cases – research later
1149
+ var numberOfChecks = flipVariations ? 3 : 1;
1150
+
1151
+ var _loop = function _loop(_i) {
1152
+ var fittingPlacement = placements.find(function (placement) {
1153
+ var checks = checksMap.get(placement);
1154
+
1155
+ if (checks) {
1156
+ return checks.slice(0, _i).every(function (check) {
1157
+ return check;
1158
+ });
1159
+ }
1160
+ });
1161
+
1162
+ if (fittingPlacement) {
1163
+ firstFittingPlacement = fittingPlacement;
1164
+ return "break";
1165
+ }
1166
+ };
1167
+
1168
+ for (var _i = numberOfChecks; _i > 0; _i--) {
1169
+ var _ret = _loop(_i);
1170
+
1171
+ if (_ret === "break") break;
1172
+ }
1173
+ }
1174
+
1175
+ if (state.placement !== firstFittingPlacement) {
1176
+ state.modifiersData[name]._skip = true;
1177
+ state.placement = firstFittingPlacement;
1178
+ state.reset = true;
1179
+ }
1180
+ } // eslint-disable-next-line import/no-unused-modules
1181
+
1182
+
1183
+ const flip$1 = {
1184
+ name: 'flip',
1185
+ enabled: true,
1186
+ phase: 'main',
1187
+ fn: flip,
1188
+ requiresIfExists: ['offset'],
1189
+ data: {
1190
+ _skip: false
1191
+ }
1192
+ };
1193
+
1194
+ function getSideOffsets(overflow, rect, preventedOffsets) {
1195
+ if (preventedOffsets === void 0) {
1196
+ preventedOffsets = {
1197
+ x: 0,
1198
+ y: 0
1199
+ };
1200
+ }
1201
+
1202
+ return {
1203
+ top: overflow.top - rect.height - preventedOffsets.y,
1204
+ right: overflow.right - rect.width + preventedOffsets.x,
1205
+ bottom: overflow.bottom - rect.height + preventedOffsets.y,
1206
+ left: overflow.left - rect.width - preventedOffsets.x
1207
+ };
1208
+ }
1209
+
1210
+ function isAnySideFullyClipped(overflow) {
1211
+ return [top, right, bottom, left].some(function (side) {
1212
+ return overflow[side] >= 0;
1213
+ });
1214
+ }
1215
+
1216
+ function hide(_ref) {
1217
+ var state = _ref.state,
1218
+ name = _ref.name;
1219
+ var referenceRect = state.rects.reference;
1220
+ var popperRect = state.rects.popper;
1221
+ var preventedOffsets = state.modifiersData.preventOverflow;
1222
+ var referenceOverflow = detectOverflow(state, {
1223
+ elementContext: 'reference'
1224
+ });
1225
+ var popperAltOverflow = detectOverflow(state, {
1226
+ altBoundary: true
1227
+ });
1228
+ var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
1229
+ var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
1230
+ var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
1231
+ var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
1232
+ state.modifiersData[name] = {
1233
+ referenceClippingOffsets: referenceClippingOffsets,
1234
+ popperEscapeOffsets: popperEscapeOffsets,
1235
+ isReferenceHidden: isReferenceHidden,
1236
+ hasPopperEscaped: hasPopperEscaped
1237
+ };
1238
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
1239
+ 'data-popper-reference-hidden': isReferenceHidden,
1240
+ 'data-popper-escaped': hasPopperEscaped
1241
+ });
1242
+ } // eslint-disable-next-line import/no-unused-modules
1243
+
1244
+
1245
+ const hide$1 = {
1246
+ name: 'hide',
1247
+ enabled: true,
1248
+ phase: 'main',
1249
+ requiresIfExists: ['preventOverflow'],
1250
+ fn: hide
1251
+ };
1252
+
1253
+ function distanceAndSkiddingToXY(placement, rects, offset) {
1254
+ var basePlacement = getBasePlacement(placement);
1255
+ var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
1256
+
1257
+ var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
1258
+ placement: placement
1259
+ })) : offset,
1260
+ skidding = _ref[0],
1261
+ distance = _ref[1];
1262
+
1263
+ skidding = skidding || 0;
1264
+ distance = (distance || 0) * invertDistance;
1265
+ return [left, right].indexOf(basePlacement) >= 0 ? {
1266
+ x: distance,
1267
+ y: skidding
1268
+ } : {
1269
+ x: skidding,
1270
+ y: distance
1271
+ };
1272
+ }
1273
+
1274
+ function offset(_ref2) {
1275
+ var state = _ref2.state,
1276
+ options = _ref2.options,
1277
+ name = _ref2.name;
1278
+ var _options$offset = options.offset,
1279
+ offset = _options$offset === void 0 ? [0, 0] : _options$offset;
1280
+ var data = placements.reduce(function (acc, placement) {
1281
+ acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
1282
+ return acc;
1283
+ }, {});
1284
+ var _data$state$placement = data[state.placement],
1285
+ x = _data$state$placement.x,
1286
+ y = _data$state$placement.y;
1287
+
1288
+ if (state.modifiersData.popperOffsets != null) {
1289
+ state.modifiersData.popperOffsets.x += x;
1290
+ state.modifiersData.popperOffsets.y += y;
1291
+ }
1292
+
1293
+ state.modifiersData[name] = data;
1294
+ } // eslint-disable-next-line import/no-unused-modules
1295
+
1296
+
1297
+ const offset$1 = {
1298
+ name: 'offset',
1299
+ enabled: true,
1300
+ phase: 'main',
1301
+ requires: ['popperOffsets'],
1302
+ fn: offset
1303
+ };
1304
+
1305
+ function popperOffsets(_ref) {
1306
+ var state = _ref.state,
1307
+ name = _ref.name;
1308
+ // Offsets are the actual position the popper needs to have to be
1309
+ // properly positioned near its reference element
1310
+ // This is the most basic placement, and will be adjusted by
1311
+ // the modifiers in the next step
1312
+ state.modifiersData[name] = computeOffsets({
1313
+ reference: state.rects.reference,
1314
+ element: state.rects.popper,
1315
+ strategy: 'absolute',
1316
+ placement: state.placement
1317
+ });
1318
+ } // eslint-disable-next-line import/no-unused-modules
1319
+
1320
+
1321
+ const popperOffsets$1 = {
1322
+ name: 'popperOffsets',
1323
+ enabled: true,
1324
+ phase: 'read',
1325
+ fn: popperOffsets,
1326
+ data: {}
1327
+ };
1328
+
1329
+ function getAltAxis(axis) {
1330
+ return axis === 'x' ? 'y' : 'x';
1331
+ }
1332
+
1333
+ function preventOverflow(_ref) {
1334
+ var state = _ref.state,
1335
+ options = _ref.options,
1336
+ name = _ref.name;
1337
+ var _options$mainAxis = options.mainAxis,
1338
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1339
+ _options$altAxis = options.altAxis,
1340
+ checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
1341
+ boundary = options.boundary,
1342
+ rootBoundary = options.rootBoundary,
1343
+ altBoundary = options.altBoundary,
1344
+ padding = options.padding,
1345
+ _options$tether = options.tether,
1346
+ tether = _options$tether === void 0 ? true : _options$tether,
1347
+ _options$tetherOffset = options.tetherOffset,
1348
+ tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
1349
+ var overflow = detectOverflow(state, {
1350
+ boundary: boundary,
1351
+ rootBoundary: rootBoundary,
1352
+ padding: padding,
1353
+ altBoundary: altBoundary
1354
+ });
1355
+ var basePlacement = getBasePlacement(state.placement);
1356
+ var variation = getVariation(state.placement);
1357
+ var isBasePlacement = !variation;
1358
+ var mainAxis = getMainAxisFromPlacement(basePlacement);
1359
+ var altAxis = getAltAxis(mainAxis);
1360
+ var popperOffsets = state.modifiersData.popperOffsets;
1361
+ var referenceRect = state.rects.reference;
1362
+ var popperRect = state.rects.popper;
1363
+ var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
1364
+ placement: state.placement
1365
+ })) : tetherOffset;
1366
+ var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
1367
+ mainAxis: tetherOffsetValue,
1368
+ altAxis: tetherOffsetValue
1369
+ } : Object.assign({
1370
+ mainAxis: 0,
1371
+ altAxis: 0
1372
+ }, tetherOffsetValue);
1373
+ var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
1374
+ var data = {
1375
+ x: 0,
1376
+ y: 0
1377
+ };
1378
+
1379
+ if (!popperOffsets) {
1380
+ return;
1381
+ }
1382
+
1383
+ if (checkMainAxis) {
1384
+ var _offsetModifierState$;
1385
+
1386
+ var mainSide = mainAxis === 'y' ? top : left;
1387
+ var altSide = mainAxis === 'y' ? bottom : right;
1388
+ var len = mainAxis === 'y' ? 'height' : 'width';
1389
+ var offset = popperOffsets[mainAxis];
1390
+ var min$1 = offset + overflow[mainSide];
1391
+ var max$1 = offset - overflow[altSide];
1392
+ var additive = tether ? -popperRect[len] / 2 : 0;
1393
+ var minLen = variation === start ? referenceRect[len] : popperRect[len];
1394
+ var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
1395
+ // outside the reference bounds
1396
+
1397
+ var arrowElement = state.elements.arrow;
1398
+ var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
1399
+ width: 0,
1400
+ height: 0
1401
+ };
1402
+ var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
1403
+ var arrowPaddingMin = arrowPaddingObject[mainSide];
1404
+ var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
1405
+ // to include its full size in the calculation. If the reference is small
1406
+ // and near the edge of a boundary, the popper can overflow even if the
1407
+ // reference is not overflowing as well (e.g. virtual elements with no
1408
+ // width or height)
1409
+
1410
+ var arrowLen = within(0, referenceRect[len], arrowRect[len]);
1411
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
1412
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
1413
+ var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
1414
+ var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
1415
+ var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
1416
+ var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
1417
+ var tetherMax = offset + maxOffset - offsetModifierValue;
1418
+ var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
1419
+ popperOffsets[mainAxis] = preventedOffset;
1420
+ data[mainAxis] = preventedOffset - offset;
1421
+ }
1422
+
1423
+ if (checkAltAxis) {
1424
+ var _offsetModifierState$2;
1425
+
1426
+ var _mainSide = mainAxis === 'x' ? top : left;
1427
+
1428
+ var _altSide = mainAxis === 'x' ? bottom : right;
1429
+
1430
+ var _offset = popperOffsets[altAxis];
1431
+
1432
+ var _len = altAxis === 'y' ? 'height' : 'width';
1433
+
1434
+ var _min = _offset + overflow[_mainSide];
1435
+
1436
+ var _max = _offset - overflow[_altSide];
1437
+
1438
+ var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
1439
+
1440
+ var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
1441
+
1442
+ var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
1443
+
1444
+ var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
1445
+
1446
+ var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
1447
+
1448
+ popperOffsets[altAxis] = _preventedOffset;
1449
+ data[altAxis] = _preventedOffset - _offset;
1450
+ }
1451
+
1452
+ state.modifiersData[name] = data;
1453
+ } // eslint-disable-next-line import/no-unused-modules
1454
+
1455
+
1456
+ const preventOverflow$1 = {
1457
+ name: 'preventOverflow',
1458
+ enabled: true,
1459
+ phase: 'main',
1460
+ fn: preventOverflow,
1461
+ requiresIfExists: ['offset']
1462
+ };
1463
+
1464
+ function getHTMLElementScroll(element) {
1465
+ return {
1466
+ scrollLeft: element.scrollLeft,
1467
+ scrollTop: element.scrollTop
1468
+ };
1469
+ }
1470
+
1471
+ function getNodeScroll(node) {
1472
+ if (node === getWindow(node) || !isHTMLElement(node)) {
1473
+ return getWindowScroll(node);
1474
+ } else {
1475
+ return getHTMLElementScroll(node);
1476
+ }
1477
+ }
1478
+
1479
+ function isElementScaled(element) {
1480
+ var rect = element.getBoundingClientRect();
1481
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
1482
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
1483
+ return scaleX !== 1 || scaleY !== 1;
1484
+ } // Returns the composite rect of an element relative to its offsetParent.
1485
+ // Composite means it takes into account transforms as well as layout.
1486
+
1487
+
1488
+ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
1489
+ if (isFixed === void 0) {
1490
+ isFixed = false;
1491
+ }
1492
+
1493
+ var isOffsetParentAnElement = isHTMLElement(offsetParent);
1494
+ var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
1495
+ var documentElement = getDocumentElement(offsetParent);
1496
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
1497
+ var scroll = {
1498
+ scrollLeft: 0,
1499
+ scrollTop: 0
1500
+ };
1501
+ var offsets = {
1502
+ x: 0,
1503
+ y: 0
1504
+ };
1505
+
1506
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1507
+ if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
1508
+ isScrollParent(documentElement)) {
1509
+ scroll = getNodeScroll(offsetParent);
1510
+ }
1511
+
1512
+ if (isHTMLElement(offsetParent)) {
1513
+ offsets = getBoundingClientRect(offsetParent, true);
1514
+ offsets.x += offsetParent.clientLeft;
1515
+ offsets.y += offsetParent.clientTop;
1516
+ } else if (documentElement) {
1517
+ offsets.x = getWindowScrollBarX(documentElement);
1518
+ }
1519
+ }
1520
+
1521
+ return {
1522
+ x: rect.left + scroll.scrollLeft - offsets.x,
1523
+ y: rect.top + scroll.scrollTop - offsets.y,
1524
+ width: rect.width,
1525
+ height: rect.height
1526
+ };
1527
+ }
1528
+
1529
+ function order(modifiers) {
1530
+ var map = new Map();
1531
+ var visited = new Set();
1532
+ var result = [];
1533
+ modifiers.forEach(function (modifier) {
1534
+ map.set(modifier.name, modifier);
1535
+ }); // On visiting object, check for its dependencies and visit them recursively
1536
+
1537
+ function sort(modifier) {
1538
+ visited.add(modifier.name);
1539
+ var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
1540
+ requires.forEach(function (dep) {
1541
+ if (!visited.has(dep)) {
1542
+ var depModifier = map.get(dep);
1543
+
1544
+ if (depModifier) {
1545
+ sort(depModifier);
1546
+ }
1547
+ }
1548
+ });
1549
+ result.push(modifier);
1550
+ }
1551
+
1552
+ modifiers.forEach(function (modifier) {
1553
+ if (!visited.has(modifier.name)) {
1554
+ // check for visited object
1555
+ sort(modifier);
1556
+ }
1557
+ });
1558
+ return result;
1559
+ }
1560
+
1561
+ function orderModifiers(modifiers) {
1562
+ // order based on dependencies
1563
+ var orderedModifiers = order(modifiers); // order based on phase
1564
+
1565
+ return modifierPhases.reduce(function (acc, phase) {
1566
+ return acc.concat(orderedModifiers.filter(function (modifier) {
1567
+ return modifier.phase === phase;
1568
+ }));
1569
+ }, []);
1570
+ }
1571
+
1572
+ function debounce(fn) {
1573
+ var pending;
1574
+ return function () {
1575
+ if (!pending) {
1576
+ pending = new Promise(function (resolve) {
1577
+ Promise.resolve().then(function () {
1578
+ pending = undefined;
1579
+ resolve(fn());
1580
+ });
1581
+ });
1582
+ }
1583
+
1584
+ return pending;
1585
+ };
1586
+ }
1587
+
1588
+ function mergeByName(modifiers) {
1589
+ var merged = modifiers.reduce(function (merged, current) {
1590
+ var existing = merged[current.name];
1591
+ merged[current.name] = existing ? Object.assign({}, existing, current, {
1592
+ options: Object.assign({}, existing.options, current.options),
1593
+ data: Object.assign({}, existing.data, current.data)
1594
+ }) : current;
1595
+ return merged;
1596
+ }, {}); // IE11 does not support Object.values
1597
+
1598
+ return Object.keys(merged).map(function (key) {
1599
+ return merged[key];
1600
+ });
1601
+ }
1602
+
1603
+ var DEFAULT_OPTIONS = {
1604
+ placement: 'bottom',
1605
+ modifiers: [],
1606
+ strategy: 'absolute'
1607
+ };
1608
+
1609
+ function areValidElements() {
1610
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1611
+ args[_key] = arguments[_key];
1612
+ }
1613
+
1614
+ return !args.some(function (element) {
1615
+ return !(element && typeof element.getBoundingClientRect === 'function');
1616
+ });
1617
+ }
1618
+
1619
+ function popperGenerator(generatorOptions) {
1620
+ if (generatorOptions === void 0) {
1621
+ generatorOptions = {};
1622
+ }
1623
+
1624
+ var _generatorOptions = generatorOptions,
1625
+ _generatorOptions$def = _generatorOptions.defaultModifiers,
1626
+ defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
1627
+ _generatorOptions$def2 = _generatorOptions.defaultOptions,
1628
+ defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
1629
+ return function createPopper(reference, popper, options) {
1630
+ if (options === void 0) {
1631
+ options = defaultOptions;
1632
+ }
1633
+
1634
+ var state = {
1635
+ placement: 'bottom',
1636
+ orderedModifiers: [],
1637
+ options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
1638
+ modifiersData: {},
1639
+ elements: {
1640
+ reference: reference,
1641
+ popper: popper
1642
+ },
1643
+ attributes: {},
1644
+ styles: {}
1645
+ };
1646
+ var effectCleanupFns = [];
1647
+ var isDestroyed = false;
1648
+ var instance = {
1649
+ state: state,
1650
+ setOptions: function setOptions(setOptionsAction) {
1651
+ var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
1652
+ cleanupModifierEffects();
1653
+ state.options = Object.assign({}, defaultOptions, state.options, options);
1654
+ state.scrollParents = {
1655
+ reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
1656
+ popper: listScrollParents(popper)
1657
+ }; // Orders the modifiers based on their dependencies and `phase`
1658
+ // properties
1659
+
1660
+ var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
1661
+
1662
+ state.orderedModifiers = orderedModifiers.filter(function (m) {
1663
+ return m.enabled;
1664
+ });
1665
+ runModifierEffects();
1666
+ return instance.update();
1667
+ },
1668
+ // Sync update – it will always be executed, even if not necessary. This
1669
+ // is useful for low frequency updates where sync behavior simplifies the
1670
+ // logic.
1671
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
1672
+ // prefer the async Popper#update method
1673
+ forceUpdate: function forceUpdate() {
1674
+ if (isDestroyed) {
1675
+ return;
1676
+ }
1677
+
1678
+ var _state$elements = state.elements,
1679
+ reference = _state$elements.reference,
1680
+ popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
1681
+ // anymore
1682
+
1683
+ if (!areValidElements(reference, popper)) {
1684
+ return;
1685
+ } // Store the reference and popper rects to be read by modifiers
1686
+
1687
+
1688
+ state.rects = {
1689
+ reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
1690
+ popper: getLayoutRect(popper)
1691
+ }; // Modifiers have the ability to reset the current update cycle. The
1692
+ // most common use case for this is the `flip` modifier changing the
1693
+ // placement, which then needs to re-run all the modifiers, because the
1694
+ // logic was previously ran for the previous placement and is therefore
1695
+ // stale/incorrect
1696
+
1697
+ state.reset = false;
1698
+ state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
1699
+ // is filled with the initial data specified by the modifier. This means
1700
+ // it doesn't persist and is fresh on each update.
1701
+ // To ensure persistent data, use `${name}#persistent`
1702
+
1703
+ state.orderedModifiers.forEach(function (modifier) {
1704
+ return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
1705
+ });
1706
+
1707
+ for (var index = 0; index < state.orderedModifiers.length; index++) {
1708
+ if (state.reset === true) {
1709
+ state.reset = false;
1710
+ index = -1;
1711
+ continue;
1712
+ }
1713
+
1714
+ var _state$orderedModifie = state.orderedModifiers[index],
1715
+ fn = _state$orderedModifie.fn,
1716
+ _state$orderedModifie2 = _state$orderedModifie.options,
1717
+ _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
1718
+ name = _state$orderedModifie.name;
1719
+
1720
+ if (typeof fn === 'function') {
1721
+ state = fn({
1722
+ state: state,
1723
+ options: _options,
1724
+ name: name,
1725
+ instance: instance
1726
+ }) || state;
1727
+ }
1728
+ }
1729
+ },
1730
+ // Async and optimistically optimized update – it will not be executed if
1731
+ // not necessary (debounced to run at most once-per-tick)
1732
+ update: debounce(function () {
1733
+ return new Promise(function (resolve) {
1734
+ instance.forceUpdate();
1735
+ resolve(state);
1736
+ });
1737
+ }),
1738
+ destroy: function destroy() {
1739
+ cleanupModifierEffects();
1740
+ isDestroyed = true;
1741
+ }
1742
+ };
1743
+
1744
+ if (!areValidElements(reference, popper)) {
1745
+ return instance;
1746
+ }
1747
+
1748
+ instance.setOptions(options).then(function (state) {
1749
+ if (!isDestroyed && options.onFirstUpdate) {
1750
+ options.onFirstUpdate(state);
1751
+ }
1752
+ }); // Modifiers have the ability to execute arbitrary code before the first
1753
+ // update cycle runs. They will be executed in the same order as the update
1754
+ // cycle. This is useful when a modifier adds some persistent data that
1755
+ // other modifiers need to use, but the modifier is run after the dependent
1756
+ // one.
1757
+
1758
+ function runModifierEffects() {
1759
+ state.orderedModifiers.forEach(function (_ref) {
1760
+ var name = _ref.name,
1761
+ _ref$options = _ref.options,
1762
+ options = _ref$options === void 0 ? {} : _ref$options,
1763
+ effect = _ref.effect;
1764
+
1765
+ if (typeof effect === 'function') {
1766
+ var cleanupFn = effect({
1767
+ state: state,
1768
+ name: name,
1769
+ instance: instance,
1770
+ options: options
1771
+ });
1772
+
1773
+ var noopFn = function noopFn() {};
1774
+
1775
+ effectCleanupFns.push(cleanupFn || noopFn);
1776
+ }
1777
+ });
1778
+ }
1779
+
1780
+ function cleanupModifierEffects() {
1781
+ effectCleanupFns.forEach(function (fn) {
1782
+ return fn();
1783
+ });
1784
+ effectCleanupFns = [];
1785
+ }
1786
+
1787
+ return instance;
1788
+ };
1789
+ }
1790
+
1791
+ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
1792
+ var createPopper = /*#__PURE__*/popperGenerator({
1793
+ defaultModifiers: defaultModifiers
1794
+ }); // eslint-disable-next-line import/no-unused-modules
5
1795
 
6
1796
  const guxTableSelectPopoverCss = ":host{color:var(--gse-ui-popover-headerColor)}.gux-popover-wrapper{z-index:2;display:inline-block;padding:var(--gse-ui-popover-gap) 0;background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow-x) var(--gse-ui-popover-boxShadow-y) var(--gse-ui-popover-boxShadow-blur) var(--gse-ui-popover-boxShadow-spread) var(--gse-ui-popover-boxShadow-color)}";
7
1797