genesys-spark-components 4.0.0-beta.36 → 4.0.0-beta.38

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