@aquera/nile-elements 1.4.4-beta-1.1 → 1.4.4-beta-1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. package/demo/index.html +31 -65
  2. package/dist/axe.min-140df6c2.cjs.js +2 -0
  3. package/dist/axe.min-140df6c2.cjs.js.map +1 -0
  4. package/dist/axe.min-591c52c3.esm.js +1 -0
  5. package/dist/{fixture-54600b35.cjs.js → fixture-1c49c014.cjs.js} +2 -2
  6. package/dist/{fixture-73855806.cjs.js.map → fixture-1c49c014.cjs.js.map} +1 -1
  7. package/dist/{fixture-9871e8a9.esm.js → fixture-985bba12.esm.js} +1 -1
  8. package/dist/{fixture-73855806.cjs.js → fixture-dff65c89.cjs.js} +2 -2
  9. package/dist/{fixture-54600b35.cjs.js.map → fixture-dff65c89.cjs.js.map} +1 -1
  10. package/dist/{fixture-cf7bfcf5.esm.js → fixture-eddab1c0.esm.js} +2 -2
  11. package/dist/{fixture-5b79f853.cjs.js → fixture-f575d0df.cjs.js} +4 -4
  12. package/dist/fixture-f575d0df.cjs.js.map +1 -0
  13. package/dist/floating-ui.dom-70d5643f.esm.js +1 -0
  14. package/dist/floating-ui.dom-f19772dc.cjs.js +2 -0
  15. package/dist/floating-ui.dom-f19772dc.cjs.js.map +1 -0
  16. package/dist/flow-3e83b6f4.esm.js +17 -0
  17. package/dist/flow-ca47f938.cjs.js +14 -0
  18. package/dist/flow-ca47f938.cjs.js.map +1 -0
  19. package/dist/index.js +5 -3
  20. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  21. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  22. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  23. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  24. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  25. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  26. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  27. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  28. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  29. package/dist/nile-button/nile-button.test.esm.js +1 -1
  30. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  31. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  32. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  33. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  34. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  35. package/dist/nile-card/nile-card.test.esm.js +1 -1
  36. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  37. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  38. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  39. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  40. package/dist/nile-chip/nile-chip.esm.js +11 -9
  41. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  42. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  43. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  44. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  45. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  46. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  47. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  48. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  49. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  50. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  51. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  52. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  53. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  54. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  55. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  56. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  57. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  58. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  59. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  60. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  61. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  62. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  63. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  64. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  65. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  66. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  67. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  68. package/dist/nile-input/nile-input.test.esm.js +1 -1
  69. package/dist/nile-light-tooltip/index.cjs.js +2 -0
  70. package/dist/nile-light-tooltip/index.esm.js +1 -0
  71. package/dist/nile-light-tooltip/nile-light-tooltip.cjs.js +2 -0
  72. package/dist/nile-light-tooltip/nile-light-tooltip.cjs.js.map +1 -0
  73. package/dist/nile-light-tooltip/nile-light-tooltip.css.cjs.js +2 -0
  74. package/dist/nile-light-tooltip/nile-light-tooltip.css.cjs.js.map +1 -0
  75. package/dist/nile-light-tooltip/nile-light-tooltip.css.esm.js +5 -0
  76. package/dist/nile-light-tooltip/nile-light-tooltip.esm.js +1 -0
  77. package/dist/nile-light-tooltip/utils.cjs.js +2 -0
  78. package/dist/nile-light-tooltip/utils.cjs.js.map +1 -0
  79. package/dist/nile-light-tooltip/utils.esm.js +1 -0
  80. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  81. package/dist/nile-link/nile-link.test.esm.js +1 -1
  82. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  83. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  84. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  85. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  86. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  87. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  88. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  89. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  90. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  91. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  92. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  93. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  94. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  95. package/dist/nile-select/nile-select.test.esm.js +1 -1
  96. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  97. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  98. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  99. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  100. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  101. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  102. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
  103. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
  104. package/dist/scopedElementsWrapper-067597d2.cjs.js +6 -0
  105. package/dist/scopedElementsWrapper-067597d2.cjs.js.map +1 -0
  106. package/dist/scopedElementsWrapper-4374e962.esm.js +7 -0
  107. package/dist/sinon-esm-283dcc9b.cjs.js +2 -0
  108. package/dist/sinon-esm-283dcc9b.cjs.js.map +1 -0
  109. package/dist/sinon-esm-abe9b0ec.esm.js +1 -0
  110. package/dist/src/internal/accessibility/a11y.custom-value.enum.d.ts +45 -0
  111. package/dist/src/internal/accessibility/a11y.custom-value.enum.js +47 -0
  112. package/dist/src/internal/accessibility/a11y.custom-value.enum.js.map +1 -0
  113. package/dist/src/internal/accessibility/a11y.property.enum.d.ts +31 -0
  114. package/dist/src/internal/accessibility/a11y.property.enum.js +33 -0
  115. package/dist/src/internal/accessibility/a11y.property.enum.js.map +1 -0
  116. package/dist/src/internal/accessibility/a11y.role.enum.d.ts +41 -0
  117. package/dist/src/internal/accessibility/a11y.role.enum.js +43 -0
  118. package/dist/src/internal/accessibility/a11y.role.enum.js.map +1 -0
  119. package/dist/src/internal/accessibility/a11y.state.enum.d.ts +16 -0
  120. package/dist/src/internal/accessibility/a11y.state.enum.js +18 -0
  121. package/dist/src/internal/accessibility/a11y.state.enum.js.map +1 -0
  122. package/dist/src/internal/accessibility/accessibility.const.d.ts +8 -0
  123. package/dist/src/internal/accessibility/accessibility.const.js +9 -0
  124. package/dist/src/internal/accessibility/accessibility.const.js.map +1 -0
  125. package/dist/src/internal/accessibility/role.enum.d.ts +3 -0
  126. package/dist/src/internal/accessibility/role.enum.js +5 -0
  127. package/dist/src/internal/accessibility/role.enum.js.map +1 -0
  128. package/dist/src/nile-chip/nile-chip.d.ts +3 -0
  129. package/dist/src/nile-chip/nile-chip.js +19 -0
  130. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  131. package/dist/src/nile-css-tooltip/index.d.ts +1 -0
  132. package/dist/src/nile-css-tooltip/index.js +2 -0
  133. package/dist/src/nile-css-tooltip/index.js.map +1 -0
  134. package/dist/src/nile-css-tooltip/nile-css-tooltip.css.d.ts +12 -0
  135. package/dist/src/nile-css-tooltip/nile-css-tooltip.css.js +76 -0
  136. package/dist/src/nile-css-tooltip/nile-css-tooltip.css.js.map +1 -0
  137. package/dist/src/nile-css-tooltip/nile-css-tooltip.d.ts +12 -0
  138. package/dist/src/nile-css-tooltip/nile-css-tooltip.js +31 -0
  139. package/dist/src/nile-css-tooltip/nile-css-tooltip.js.map +1 -0
  140. package/dist/src/nile-light-tooltip/index.d.ts +1 -0
  141. package/dist/src/nile-light-tooltip/index.js +2 -0
  142. package/dist/src/nile-light-tooltip/index.js.map +1 -0
  143. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.d.ts +12 -0
  144. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.js +17 -0
  145. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.js.map +1 -0
  146. package/dist/src/nile-light-tooltip/nile-light-tooltip.d.ts +79 -0
  147. package/dist/src/nile-light-tooltip/nile-light-tooltip.js +350 -0
  148. package/dist/src/nile-light-tooltip/nile-light-tooltip.js.map +1 -0
  149. package/dist/src/nile-light-tooltip/nile-lite-tooltip.css.d.ts +12 -0
  150. package/dist/src/nile-light-tooltip/nile-lite-tooltip.css.js +17 -0
  151. package/dist/src/nile-light-tooltip/nile-lite-tooltip.css.js.map +1 -0
  152. package/dist/src/nile-light-tooltip/nile-lite-tooltip.d.ts +79 -0
  153. package/dist/src/nile-light-tooltip/nile-lite-tooltip.js +350 -0
  154. package/dist/src/nile-light-tooltip/nile-lite-tooltip.js.map +1 -0
  155. package/dist/src/nile-light-tooltip/utils.d.ts +2 -0
  156. package/dist/src/nile-light-tooltip/utils.js +29 -0
  157. package/dist/src/nile-light-tooltip/utils.js.map +1 -0
  158. package/dist/src/version.js +1 -1
  159. package/dist/src/version.js.map +1 -1
  160. package/dist/tsconfig.tsbuildinfo +1 -1
  161. package/dist/virtualize-73f68d08.esm.js +22 -0
  162. package/dist/virtualize-eb33a9a0.cjs.js +18 -0
  163. package/dist/virtualize-eb33a9a0.cjs.js.map +1 -0
  164. package/package.json +1 -1
  165. package/src/nile-chip/nile-chip.ts +30 -1
  166. package/vscode-html-custom-data.json +1 -1
  167. package/dist/fixture-5b79f853.cjs.js.map +0 -1
  168. package/dist/fixture-90b199c4.esm.js +0 -569
  169. package/dist/fixture-c1d78368.cjs.js +0 -395
  170. package/dist/fixture-c1d78368.cjs.js.map +0 -1
  171. package/dist/fixture-dbd66009.cjs.js +0 -395
  172. package/dist/fixture-dbd66009.cjs.js.map +0 -1
  173. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js +0 -2
  174. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js.map +0 -1
  175. package/dist/nile-code-editor/backup_nile-code-editor copy.esm.js +0 -1
  176. package/dist/nile-grid-body/index.cjs.js +0 -2
  177. package/dist/nile-grid-body/index.esm.js +0 -1
  178. package/dist/nile-grid-body/nile-grid-body.cjs.js +0 -2
  179. package/dist/nile-grid-body/nile-grid-body.cjs.js.map +0 -1
  180. package/dist/nile-grid-body/nile-grid-body.css.cjs.js +0 -2
  181. package/dist/nile-grid-body/nile-grid-body.css.cjs.js.map +0 -1
  182. package/dist/nile-grid-body/nile-grid-body.css.esm.js +0 -10
  183. package/dist/nile-grid-body/nile-grid-body.esm.js +0 -5
  184. package/dist/nile-grid-cell-item/index.cjs.js +0 -2
  185. package/dist/nile-grid-cell-item/index.cjs.js.map +0 -1
  186. package/dist/nile-grid-cell-item/index.esm.js +0 -1
  187. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js +0 -2
  188. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +0 -1
  189. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +0 -2
  190. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +0 -1
  191. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +0 -35
  192. package/dist/nile-grid-cell-item/nile-grid-cell-item.esm.js +0 -12
  193. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js +0 -2
  194. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js.map +0 -1
  195. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.esm.js +0 -1
  196. package/dist/nile-grid-head/index.cjs.js +0 -2
  197. package/dist/nile-grid-head/index.cjs.js.map +0 -1
  198. package/dist/nile-grid-head/index.esm.js +0 -1
  199. package/dist/nile-grid-head/nile-grid-head.cjs.js +0 -2
  200. package/dist/nile-grid-head/nile-grid-head.cjs.js.map +0 -1
  201. package/dist/nile-grid-head/nile-grid-head.css.cjs.js +0 -2
  202. package/dist/nile-grid-head/nile-grid-head.css.cjs.js.map +0 -1
  203. package/dist/nile-grid-head/nile-grid-head.css.esm.js +0 -7
  204. package/dist/nile-grid-head/nile-grid-head.esm.js +0 -5
  205. package/dist/nile-grid-head-item/index.cjs.js +0 -2
  206. package/dist/nile-grid-head-item/index.cjs.js.map +0 -1
  207. package/dist/nile-grid-head-item/index.esm.js +0 -1
  208. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js +0 -2
  209. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js.map +0 -1
  210. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js +0 -2
  211. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +0 -1
  212. package/dist/nile-grid-head-item/nile-grid-head-item.css.esm.js +0 -34
  213. package/dist/nile-grid-head-item/nile-grid-head-item.esm.js +0 -12
  214. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +0 -2
  215. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +0 -1
  216. package/dist/nile-grid-head-item/nile-grid-head-item.utils.esm.js +0 -1
  217. package/dist/nile-grid-row/index.cjs.js +0 -2
  218. package/dist/nile-grid-row/index.cjs.js.map +0 -1
  219. package/dist/nile-grid-row/index.esm.js +0 -1
  220. package/dist/nile-grid-row/nile-grid-row.cjs.js +0 -2
  221. package/dist/nile-grid-row/nile-grid-row.cjs.js.map +0 -1
  222. package/dist/nile-grid-row/nile-grid-row.css.cjs.js +0 -2
  223. package/dist/nile-grid-row/nile-grid-row.css.cjs.js.map +0 -1
  224. package/dist/nile-grid-row/nile-grid-row.css.esm.js +0 -15
  225. package/dist/nile-grid-row/nile-grid-row.esm.js +0 -7
  226. package/dist/nile-rich-text-editor/utils.cjs.js +0 -2
  227. package/dist/nile-rich-text-editor/utils.cjs.js.map +0 -1
  228. package/dist/nile-rich-text-editor/utils.esm.js +0 -1
  229. package/dist/nile-sidebar/index.cjs.js +0 -2
  230. package/dist/nile-sidebar/index.cjs.js.map +0 -1
  231. package/dist/nile-sidebar/index.esm.js +0 -75
  232. package/dist/nile-sidebar-menu/index.cjs.js +0 -2
  233. package/dist/nile-sidebar-menu/index.cjs.js.map +0 -1
  234. package/dist/nile-sidebar-menu/index.esm.js +0 -1
  235. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js +0 -2
  236. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js.map +0 -1
  237. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js +0 -2
  238. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js.map +0 -1
  239. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.esm.js +0 -38
  240. package/dist/nile-sidebar-menu/nile-sidebar-menu.esm.js +0 -10
  241. package/dist/nile-sidebar-menu-items/index.cjs.js +0 -2
  242. package/dist/nile-sidebar-menu-items/index.cjs.js.map +0 -1
  243. package/dist/nile-sidebar-menu-items/index.esm.js +0 -1
  244. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js +0 -2
  245. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js.map +0 -1
  246. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js +0 -2
  247. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js.map +0 -1
  248. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.esm.js +0 -36
  249. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.esm.js +0 -15
  250. package/dist/nile-sidebar-wrapper/index.cjs.js +0 -2
  251. package/dist/nile-sidebar-wrapper/index.cjs.js.map +0 -1
  252. package/dist/nile-sidebar-wrapper/index.esm.js +0 -1
  253. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js +0 -2
  254. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js.map +0 -1
  255. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js +0 -2
  256. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js.map +0 -1
  257. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.esm.js +0 -105
  258. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.esm.js +0 -16
  259. package/dist/nile-virtual-select/group-manager.cjs.js +0 -2
  260. package/dist/nile-virtual-select/group-manager.cjs.js.map +0 -1
  261. package/dist/nile-virtual-select/group-manager.esm.js +0 -1
  262. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js +0 -2
  263. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js.map +0 -1
  264. package/dist/nile-virtual-select/temp_nile-virtual-select copy.esm.js +0 -231
  265. package/dist/scopedElementsWrapper-4c29be11.esm.js +0 -7
  266. package/dist/scopedElementsWrapper-a112fc73.cjs.js +0 -6
  267. package/dist/scopedElementsWrapper-a112fc73.cjs.js.map +0 -1
  268. package/dist/scopedElementsWrapper-c815042c.cjs.js +0 -2
  269. package/dist/scopedElementsWrapper-c815042c.cjs.js.map +0 -1
  270. package/dist/src/internal/portal-manager.d.ts +0 -53
  271. package/dist/src/internal/portal-manager.js +0 -196
  272. package/dist/src/internal/portal-manager.js.map +0 -1
  273. package/dist/src/internal/portal.d.ts +0 -60
  274. package/dist/src/internal/portal.js +0 -199
  275. package/dist/src/internal/portal.js.map +0 -1
  276. package/dist/src/internal/resizable-helper.d.ts +0 -59
  277. package/dist/src/internal/resizable-helper.js +0 -115
  278. package/dist/src/internal/resizable-helper.js.map +0 -1
  279. package/dist/src/internal/resizable-styles.d.ts +0 -16
  280. package/dist/src/internal/resizable-styles.js +0 -144
  281. package/dist/src/internal/resizable-styles.js.map +0 -1
  282. package/dist/src/internal/virtualizer-error-handler.d.ts +0 -30
  283. package/dist/src/internal/virtualizer-error-handler.js +0 -82
  284. package/dist/src/internal/virtualizer-error-handler.js.map +0 -1
  285. package/dist/src/lib/index.d.ts +0 -7
  286. package/dist/src/lib/index.js +0 -8
  287. package/dist/src/lib/index.js.map +0 -1
  288. package/dist/src/lib/virtualize.d.ts +0 -32
  289. package/dist/src/lib/virtualize.js +0 -105
  290. package/dist/src/lib/virtualize.js.map +0 -1
  291. package/dist/src/lib/virtualize.test.d.ts +0 -7
  292. package/dist/src/lib/virtualize.test.js +0 -57
  293. package/dist/src/lib/virtualize.test.js.map +0 -1
  294. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
  295. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
  296. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
  297. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
  298. package/dist/src/nile-code-editor/Old_theme copy.d.ts +0 -191
  299. package/dist/src/nile-code-editor/Old_theme copy.js +0 -193
  300. package/dist/src/nile-code-editor/Old_theme copy.js.map +0 -1
  301. package/dist/src/nile-code-editor/backup_nile-code-editor copy.d.ts +0 -0
  302. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js +0 -675
  303. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js.map +0 -1
  304. package/dist/src/nile-code-editor/theme copy.d.ts +0 -191
  305. package/dist/src/nile-code-editor/theme copy.js +0 -193
  306. package/dist/src/nile-code-editor/theme copy.js.map +0 -1
  307. package/dist/src/nile-grid/data-processor.d.ts +0 -37
  308. package/dist/src/nile-grid/data-processor.js +0 -122
  309. package/dist/src/nile-grid/data-processor.js.map +0 -1
  310. package/dist/src/nile-grid/event-handlers.d.ts +0 -35
  311. package/dist/src/nile-grid/event-handlers.js +0 -158
  312. package/dist/src/nile-grid/event-handlers.js.map +0 -1
  313. package/dist/src/nile-grid/renderer.d.ts +0 -8
  314. package/dist/src/nile-grid/renderer.js +0 -78
  315. package/dist/src/nile-grid/renderer.js.map +0 -1
  316. package/dist/src/nile-grid/resize-handler.d.ts +0 -4
  317. package/dist/src/nile-grid/resize-handler.js +0 -36
  318. package/dist/src/nile-grid/resize-handler.js.map +0 -1
  319. package/dist/src/nile-grid/types.d.ts +0 -32
  320. package/dist/src/nile-grid/types.js +0 -2
  321. package/dist/src/nile-grid/types.js.map +0 -1
  322. package/dist/src/nile-grid/utils.d.ts +0 -4
  323. package/dist/src/nile-grid/utils.js +0 -32
  324. package/dist/src/nile-grid/utils.js.map +0 -1
  325. package/dist/src/nile-grid-body/index.d.ts +0 -1
  326. package/dist/src/nile-grid-body/index.js +0 -2
  327. package/dist/src/nile-grid-body/index.js.map +0 -1
  328. package/dist/src/nile-grid-body/nile-grid-body.css.d.ts +0 -12
  329. package/dist/src/nile-grid-body/nile-grid-body.css.js +0 -22
  330. package/dist/src/nile-grid-body/nile-grid-body.css.js.map +0 -1
  331. package/dist/src/nile-grid-body/nile-grid-body.d.ts +0 -29
  332. package/dist/src/nile-grid-body/nile-grid-body.js +0 -43
  333. package/dist/src/nile-grid-body/nile-grid-body.js.map +0 -1
  334. package/dist/src/nile-grid-cell-item/index.d.ts +0 -1
  335. package/dist/src/nile-grid-cell-item/index.js +0 -2
  336. package/dist/src/nile-grid-cell-item/index.js.map +0 -1
  337. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.d.ts +0 -12
  338. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js +0 -47
  339. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js.map +0 -1
  340. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.d.ts +0 -36
  341. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js +0 -93
  342. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js.map +0 -1
  343. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.d.ts +0 -10
  344. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js +0 -34
  345. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js.map +0 -1
  346. package/dist/src/nile-grid-head/index.d.ts +0 -1
  347. package/dist/src/nile-grid-head/index.js +0 -2
  348. package/dist/src/nile-grid-head/index.js.map +0 -1
  349. package/dist/src/nile-grid-head/nile-grid-head.css.d.ts +0 -12
  350. package/dist/src/nile-grid-head/nile-grid-head.css.js +0 -19
  351. package/dist/src/nile-grid-head/nile-grid-head.css.js.map +0 -1
  352. package/dist/src/nile-grid-head/nile-grid-head.d.ts +0 -28
  353. package/dist/src/nile-grid-head/nile-grid-head.js +0 -41
  354. package/dist/src/nile-grid-head/nile-grid-head.js.map +0 -1
  355. package/dist/src/nile-grid-head-item/index.d.ts +0 -1
  356. package/dist/src/nile-grid-head-item/index.js +0 -2
  357. package/dist/src/nile-grid-head-item/index.js.map +0 -1
  358. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.d.ts +0 -12
  359. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js +0 -46
  360. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js.map +0 -1
  361. package/dist/src/nile-grid-head-item/nile-grid-head-item.d.ts +0 -37
  362. package/dist/src/nile-grid-head-item/nile-grid-head-item.js +0 -100
  363. package/dist/src/nile-grid-head-item/nile-grid-head-item.js.map +0 -1
  364. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.d.ts +0 -10
  365. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js +0 -34
  366. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js.map +0 -1
  367. package/dist/src/nile-grid-row/index.d.ts +0 -1
  368. package/dist/src/nile-grid-row/index.js +0 -2
  369. package/dist/src/nile-grid-row/index.js.map +0 -1
  370. package/dist/src/nile-grid-row/nile-grid-row.css.d.ts +0 -12
  371. package/dist/src/nile-grid-row/nile-grid-row.css.js +0 -27
  372. package/dist/src/nile-grid-row/nile-grid-row.css.js.map +0 -1
  373. package/dist/src/nile-grid-row/nile-grid-row.d.ts +0 -29
  374. package/dist/src/nile-grid-row/nile-grid-row.js +0 -45
  375. package/dist/src/nile-grid-row/nile-grid-row.js.map +0 -1
  376. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
  377. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
  378. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
  379. package/dist/src/nile-menu/portal-manager.d.ts +0 -39
  380. package/dist/src/nile-menu/portal-manager.js +0 -340
  381. package/dist/src/nile-menu/portal-manager.js.map +0 -1
  382. package/dist/src/nile-menu/portal-utils.d.ts +0 -21
  383. package/dist/src/nile-menu/portal-utils.js +0 -128
  384. package/dist/src/nile-menu/portal-utils.js.map +0 -1
  385. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
  386. package/dist/src/nile-popover/popover-portal-handler.d.ts +0 -21
  387. package/dist/src/nile-popover/popover-portal-handler.js +0 -106
  388. package/dist/src/nile-popover/popover-portal-handler.js.map +0 -1
  389. package/dist/src/nile-portal-wrapper/index.d.ts +0 -1
  390. package/dist/src/nile-portal-wrapper/index.js +0 -2
  391. package/dist/src/nile-portal-wrapper/index.js.map +0 -1
  392. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.d.ts +0 -47
  393. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js +0 -451
  394. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js.map +0 -1
  395. package/dist/src/nile-rich-text-editor/utils.d.ts +0 -13
  396. package/dist/src/nile-rich-text-editor/utils.js +0 -538
  397. package/dist/src/nile-rich-text-editor/utils.js.map +0 -1
  398. package/dist/src/nile-select/body-append-manager.d.ts +0 -90
  399. package/dist/src/nile-select/body-append-manager.js +0 -298
  400. package/dist/src/nile-select/body-append-manager.js.map +0 -1
  401. package/dist/src/nile-sidebar/index.d.ts +0 -28
  402. package/dist/src/nile-sidebar/index.js +0 -116
  403. package/dist/src/nile-sidebar/index.js.map +0 -1
  404. package/dist/src/nile-sidebar-menu/index.d.ts +0 -1
  405. package/dist/src/nile-sidebar-menu/index.js +0 -2
  406. package/dist/src/nile-sidebar-menu/index.js.map +0 -1
  407. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.d.ts +0 -12
  408. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js +0 -47
  409. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js.map +0 -1
  410. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.d.ts +0 -37
  411. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js +0 -84
  412. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js.map +0 -1
  413. package/dist/src/nile-sidebar-menu-items/index.d.ts +0 -1
  414. package/dist/src/nile-sidebar-menu-items/index.js +0 -2
  415. package/dist/src/nile-sidebar-menu-items/index.js.map +0 -1
  416. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.d.ts +0 -12
  417. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js +0 -45
  418. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js.map +0 -1
  419. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.d.ts +0 -35
  420. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js +0 -78
  421. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js.map +0 -1
  422. package/dist/src/nile-sidebar-wrapper/index.d.ts +0 -1
  423. package/dist/src/nile-sidebar-wrapper/index.js +0 -2
  424. package/dist/src/nile-sidebar-wrapper/index.js.map +0 -1
  425. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.d.ts +0 -12
  426. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js +0 -114
  427. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js.map +0 -1
  428. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.d.ts +0 -35
  429. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js +0 -89
  430. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js.map +0 -1
  431. package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +0 -9
  432. package/dist/src/nile-table-body/virtual-scroll-helper.js +0 -24
  433. package/dist/src/nile-table-body/virtual-scroll-helper.js.map +0 -1
  434. package/dist/src/nile-virtual-select/body-append-helper.d.ts +0 -16
  435. package/dist/src/nile-virtual-select/body-append-helper.js +0 -95
  436. package/dist/src/nile-virtual-select/body-append-helper.js.map +0 -1
  437. package/dist/src/nile-virtual-select/group-manager.d.ts +0 -32
  438. package/dist/src/nile-virtual-select/group-manager.js +0 -134
  439. package/dist/src/nile-virtual-select/group-manager.js.map +0 -1
  440. package/dist/src/nile-virtual-select/portal-utils.d.ts +0 -65
  441. package/dist/src/nile-virtual-select/portal-utils.js +0 -376
  442. package/dist/src/nile-virtual-select/portal-utils.js.map +0 -1
  443. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.d.ts +0 -273
  444. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js +0 -1305
  445. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js.map +0 -1
  446. package/dist/src/nile-virtual-select/virtualizer-error-handler.d.ts +0 -21
  447. package/dist/src/nile-virtual-select/virtualizer-error-handler.js +0 -56
  448. package/dist/src/nile-virtual-select/virtualizer-error-handler.js.map +0 -1
  449. package/dist/src/nile-virtual-select-disabled/index.d.ts +0 -1
  450. package/dist/src/nile-virtual-select-disabled/index.js +0 -2
  451. package/dist/src/nile-virtual-select-disabled/index.js.map +0 -1
  452. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.d.ts +0 -12
  453. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js +0 -538
  454. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js.map +0 -1
  455. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.d.ts +0 -299
  456. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js +0 -1441
  457. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js.map +0 -1
  458. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.d.ts +0 -7
  459. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js +0 -631
  460. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js.map +0 -1
  461. package/dist/src/nile-virtual-select-disabled/portal-manager.d.ts +0 -45
  462. package/dist/src/nile-virtual-select-disabled/portal-manager.js +0 -333
  463. package/dist/src/nile-virtual-select-disabled/portal-manager.js.map +0 -1
  464. package/dist/src/nile-virtual-select-disabled/renderer.d.ts +0 -16
  465. package/dist/src/nile-virtual-select-disabled/renderer.js +0 -79
  466. package/dist/src/nile-virtual-select-disabled/renderer.js.map +0 -1
  467. package/dist/src/nile-virtual-select-disabled/search-manager.d.ts +0 -12
  468. package/dist/src/nile-virtual-select-disabled/search-manager.js +0 -40
  469. package/dist/src/nile-virtual-select-disabled/search-manager.js.map +0 -1
  470. package/dist/src/nile-virtual-select-disabled/selection-manager.d.ts +0 -12
  471. package/dist/src/nile-virtual-select-disabled/selection-manager.js +0 -64
  472. package/dist/src/nile-virtual-select-disabled/selection-manager.js.map +0 -1
  473. package/dist/src/nile-virtual-select-disabled/types.d.ts +0 -50
  474. package/dist/src/nile-virtual-select-disabled/types.js +0 -8
  475. package/dist/src/nile-virtual-select-disabled/types.js.map +0 -1
  476. package/dist/src/nile-virtual-table-body/index.d.ts +0 -2
  477. package/dist/src/nile-virtual-table-body/index.js +0 -3
  478. package/dist/src/nile-virtual-table-body/index.js.map +0 -1
  479. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +0 -1
  480. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +0 -44
  481. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +0 -1
  482. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +0 -50
  483. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +0 -135
  484. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +0 -1
  485. package/dist/src/nile-virtual-table-body/renderer.d.ts +0 -16
  486. package/dist/src/nile-virtual-table-body/renderer.js +0 -49
  487. package/dist/src/nile-virtual-table-body/renderer.js.map +0 -1
  488. package/dist/src/utilities/stepper-utils.d.ts +0 -71
  489. package/dist/src/utilities/stepper-utils.js +0 -108
  490. package/dist/src/utilities/stepper-utils.js.map +0 -1
  491. /package/dist/{nile-grid-body → nile-light-tooltip}/index.cjs.js.map +0 -0
@@ -0,0 +1,2 @@
1
+ System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,t;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",t=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t:host {\n\n\t}\n"]))));}};});
2
+ //# sourceMappingURL=nile-light-tooltip.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-light-tooltip.css.cjs.js","sources":["../../../src/nile-light-tooltip/nile-light-tooltip.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2025\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * LightTooltip CSS\n */\nexport const styles = css`\n\t:host {\n\n\t}\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +1,5 @@
1
+ import{css as o}from"lit";const t=o`
2
+ :host {
3
+
4
+ }
5
+ `;export{t as s};
@@ -0,0 +1 @@
1
+ import{__decorate as t}from"tslib";import{property as n,customElement as e}from"lit/decorators.js";import{s as i}from"./nile-light-tooltip.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";import{p as r,a}from"./utils.esm.js";import"lit";var u="top",c="bottom",f="right",p="left",s=[u,c,f,p],d=s.reduce((function(t,n){return t.concat([n+"-start",n+"-end"])}),[]),l=[].concat(s,["auto"]).reduce((function(t,n){return t.concat([n,n+"-start",n+"-end"])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function h(t){return t?(t.nodeName||"").toLowerCase():null}function m(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function b(t){return t instanceof m(t).Element||t instanceof Element}function y(t){return t instanceof m(t).HTMLElement||t instanceof HTMLElement}function g(t){return"undefined"!=typeof ShadowRoot&&(t instanceof m(t).ShadowRoot||t instanceof ShadowRoot)}var w={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},i=n.attributes[t]||{},o=n.elements[t];y(o)&&h(o)&&(Object.assign(o.style,e),Object.keys(i).forEach((function(t){var n=i[t];!1===n?o.removeAttribute(t):o.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var i=n.elements[t],o=n.attributes[t]||{},r=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});y(i)&&h(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function x(t){return t.split("-")[0]}var O=Math.max,j=Math.min,T=Math.round;function k(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function C(){return!/^((?!chrome|android).)*safari/i.test(k())}function S(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var i=t.getBoundingClientRect(),o=1,r=1;n&&y(t)&&(o=t.offsetWidth>0&&T(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&T(i.height)/t.offsetHeight||1);var a=(b(t)?m(t):window).visualViewport,u=!C()&&e,c=(i.left+(u&&a?a.offsetLeft:0))/o,f=(i.top+(u&&a?a.offsetTop:0))/r,p=i.width/o,s=i.height/r;return{width:p,height:s,top:f,right:c+p,bottom:f+s,left:c,x:c,y:f}}function B(t){var n=S(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}function M(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&g(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function A(t){return m(t).getComputedStyle(t)}function E(t){return["table","td","th"].indexOf(h(t))>=0}function R(t){return((b(t)?t.ownerDocument:t.document)||window.document).documentElement}function H(t){return"html"===h(t)?t:t.assignedSlot||t.parentNode||(g(t)?t.host:null)||R(t)}function z(t){return y(t)&&"fixed"!==A(t).position?t.offsetParent:null}function U(t){for(var n=m(t),e=z(t);e&&E(e)&&"static"===A(e).position;)e=z(e);return e&&("html"===h(e)||"body"===h(e)&&"static"===A(e).position)?n:e||function(t){var n=/firefox/i.test(k());if(/Trident/i.test(k())&&y(t)&&"fixed"===A(t).position)return null;var e=H(t);for(g(e)&&(e=e.host);y(e)&&["html","body"].indexOf(h(e))<0;){var i=A(e);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||n&&"filter"===i.willChange||n&&i.filter&&"none"!==i.filter)return e;e=e.parentNode}return null}(t)||n}function q(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function W(t,n,e){return O(t,j(n,e))}function L(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function P(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}var I={name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,i=t.name,o=t.options,r=e.elements.arrow,a=e.modifiersData.popperOffsets,d=x(e.placement),l=q(d),v=[p,f].indexOf(d)>=0?"height":"width";if(r&&a){var h=function(t,n){return L("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:P(t,s))}(o.padding,e),m=B(r),b="y"===l?u:p,y="y"===l?c:f,g=e.rects.reference[v]+e.rects.reference[l]-a[l]-e.rects.popper[v],w=a[l]-e.rects.reference[l],O=U(r),j=O?"y"===l?O.clientHeight||0:O.clientWidth||0:0,T=g/2-w/2,k=h[b],C=j-m[v]-h[y],S=j/2-m[v]/2+T,M=W(k,S,C),A=l;e.modifiersData[i]=((n={})[A]=M,n.centerOffset=M-S,n)}},effect:function(t){var n=t.state,e=t.options.element,i=void 0===e?"[data-popper-arrow]":e;null!=i&&("string"!=typeof i||(i=n.elements.popper.querySelector(i)))&&M(n.elements.popper,i)&&(n.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function D(t){return t.split("-")[1]}var N={top:"auto",right:"auto",bottom:"auto",left:"auto"};function F(t){var n,e=t.popper,i=t.popperRect,o=t.placement,r=t.variation,a=t.offsets,s=t.position,d=t.gpuAcceleration,l=t.adaptive,v=t.roundOffsets,h=t.isFixed,b=a.x,y=void 0===b?0:b,g=a.y,w=void 0===g?0:g,x="function"==typeof v?v({x:y,y:w}):{x:y,y:w};y=x.x,w=x.y;var O=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),k=p,C=u,S=window;if(l){var B=U(e),M="clientHeight",E="clientWidth";if(B===m(e)&&"static"!==A(B=R(e)).position&&"absolute"===s&&(M="scrollHeight",E="scrollWidth"),o===u||(o===p||o===f)&&"end"===r)C=c,w-=(h&&B===S&&S.visualViewport?S.visualViewport.height:B[M])-i.height,w*=d?1:-1;if(o===p||(o===u||o===c)&&"end"===r)k=f,y-=(h&&B===S&&S.visualViewport?S.visualViewport.width:B[E])-i.width,y*=d?1:-1}var H,z=Object.assign({position:s},l&&N),q=!0===v?function(t,n){var e=t.x,i=t.y,o=n.devicePixelRatio||1;return{x:T(e*o)/o||0,y:T(i*o)/o||0}}({x:y,y:w},m(e)):{x:y,y:w};return y=q.x,w=q.y,d?Object.assign({},z,((H={})[C]=j?"0":"",H[k]=O?"0":"",H.transform=(S.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",H)):Object.assign({},z,((n={})[C]=j?w+"px":"",n[k]=O?y+"px":"",n.transform="",n))}var $={passive:!0};var V={left:"right",right:"left",bottom:"top",top:"bottom"};function X(t){return t.replace(/left|right|bottom|top/g,(function(t){return V[t]}))}var Y={start:"end",end:"start"};function J(t){return t.replace(/start|end/g,(function(t){return Y[t]}))}function _(t){var n=m(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function G(t){return S(R(t)).left+_(t).scrollLeft}function K(t){var n=A(t),e=n.overflow,i=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(e+o+i)}function Q(t){return["html","body","#document"].indexOf(h(t))>=0?t.ownerDocument.body:y(t)&&K(t)?t:Q(H(t))}function Z(t,n){var e;void 0===n&&(n=[]);var i=Q(t),o=i===(null==(e=t.ownerDocument)?void 0:e.body),r=m(i),a=o?[r].concat(r.visualViewport||[],K(i)?i:[]):i,u=n.concat(a);return o?u:u.concat(Z(H(a)))}function tt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function nt(t,n,e){return"viewport"===n?tt(function(t,n){var e=m(t),i=R(t),o=e.visualViewport,r=i.clientWidth,a=i.clientHeight,u=0,c=0;if(o){r=o.width,a=o.height;var f=C();(f||!f&&"fixed"===n)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:r,height:a,x:u+G(t),y:c}}(t,e)):b(n)?function(t,n){var e=S(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):tt(function(t){var n,e=R(t),i=_(t),o=null==(n=t.ownerDocument)?void 0:n.body,r=O(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=O(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-i.scrollLeft+G(t),c=-i.scrollTop;return"rtl"===A(o||e).direction&&(u+=O(e.clientWidth,o?o.clientWidth:0)-r),{width:r,height:a,x:u,y:c}}(R(t)))}function et(t,n,e,i){var o="clippingParents"===n?function(t){var n=Z(H(t)),e=["absolute","fixed"].indexOf(A(t).position)>=0&&y(t)?U(t):t;return b(e)?n.filter((function(t){return b(t)&&M(t,e)&&"body"!==h(t)})):[]}(t):[].concat(n),r=[].concat(o,[e]),a=r[0],u=r.reduce((function(n,e){var o=nt(t,e,i);return n.top=O(o.top,n.top),n.right=j(o.right,n.right),n.bottom=j(o.bottom,n.bottom),n.left=O(o.left,n.left),n}),nt(t,a,i));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function it(t){var n,e=t.reference,i=t.element,o=t.placement,r=o?x(o):null,a=o?D(o):null,s=e.x+e.width/2-i.width/2,d=e.y+e.height/2-i.height/2;switch(r){case u:n={x:s,y:e.y-i.height};break;case c:n={x:s,y:e.y+e.height};break;case f:n={x:e.x+e.width,y:d};break;case p:n={x:e.x-i.width,y:d};break;default:n={x:e.x,y:e.y}}var l=r?q(r):null;if(null!=l){var v="y"===l?"height":"width";switch(a){case"start":n[l]=n[l]-(e[v]/2-i[v]/2);break;case"end":n[l]=n[l]+(e[v]/2-i[v]/2)}}return n}function ot(t,n){void 0===n&&(n={});var e=n,i=e.placement,o=void 0===i?t.placement:i,r=e.strategy,a=void 0===r?t.strategy:r,p=e.boundary,d=void 0===p?"clippingParents":p,l=e.rootBoundary,v=void 0===l?"viewport":l,h=e.elementContext,m=void 0===h?"popper":h,y=e.altBoundary,g=void 0!==y&&y,w=e.padding,x=void 0===w?0:w,O=L("number"!=typeof x?x:P(x,s)),j="popper"===m?"reference":"popper",T=t.rects.popper,k=t.elements[g?j:m],C=et(b(k)?k:k.contextElement||R(t.elements.popper),d,v,a),B=S(t.elements.reference),M=it({reference:B,element:T,strategy:"absolute",placement:o}),A=tt(Object.assign({},T,M)),E="popper"===m?A:B,H={top:C.top-E.top+O.top,bottom:E.bottom-C.bottom+O.bottom,left:C.left-E.left+O.left,right:E.right-C.right+O.right},z=t.modifiersData.offset;if("popper"===m&&z){var U=z[o];Object.keys(H).forEach((function(t){var n=[f,c].indexOf(t)>=0?1:-1,e=[u,c].indexOf(t)>=0?"y":"x";H[t]+=U[e]*n}))}return H}function rt(t,n){void 0===n&&(n={});var e=n,i=e.placement,o=e.boundary,r=e.rootBoundary,a=e.padding,u=e.flipVariations,c=e.allowedAutoPlacements,f=void 0===c?l:c,p=D(i),v=p?u?d:d.filter((function(t){return D(t)===p})):s,h=v.filter((function(t){return f.indexOf(t)>=0}));0===h.length&&(h=v);var m=h.reduce((function(n,e){return n[e]=ot(t,{placement:e,boundary:o,rootBoundary:r,padding:a})[x(e)],n}),{});return Object.keys(m).sort((function(t,n){return m[t]-m[n]}))}var at={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var o=e.mainAxis,r=void 0===o||o,a=e.altAxis,s=void 0===a||a,d=e.fallbackPlacements,l=e.padding,v=e.boundary,h=e.rootBoundary,m=e.altBoundary,b=e.flipVariations,y=void 0===b||b,g=e.allowedAutoPlacements,w=n.options.placement,O=x(w),j=d||(O===w||!y?[X(w)]:function(t){if("auto"===x(t))return[];var n=X(t);return[J(t),n,J(n)]}(w)),T=[w].concat(j).reduce((function(t,e){return t.concat("auto"===x(e)?rt(n,{placement:e,boundary:v,rootBoundary:h,padding:l,flipVariations:y,allowedAutoPlacements:g}):e)}),[]),k=n.rects.reference,C=n.rects.popper,S=new Map,B=!0,M=T[0],A=0;A<T.length;A++){var E=T[A],R=x(E),H="start"===D(E),z=[u,c].indexOf(R)>=0,U=z?"width":"height",q=ot(n,{placement:E,boundary:v,rootBoundary:h,altBoundary:m,padding:l}),W=z?H?f:p:H?c:u;k[U]>C[U]&&(W=X(W));var L=X(W),P=[];if(r&&P.push(q[R]<=0),s&&P.push(q[W]<=0,q[L]<=0),P.every((function(t){return t}))){M=E,B=!1;break}S.set(E,P)}if(B)for(var I=function(t){var n=T.find((function(n){var e=S.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return M=n,"break"},N=y?3:1;N>0;N--){if("break"===I(N))break}n.placement!==M&&(n.modifiersData[i]._skip=!0,n.placement=M,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ut(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function ct(t){return[u,f,c,p].some((function(n){return t[n]>=0}))}var ft={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,e=t.options,i=t.name,o=e.offset,r=void 0===o?[0,0]:o,a=l.reduce((function(t,e){return t[e]=function(t,n,e){var i=x(t),o=[p,u].indexOf(i)>=0?-1:1,r="function"==typeof e?e(Object.assign({},n,{placement:t})):e,a=r[0],c=r[1];return a=a||0,c=(c||0)*o,[p,f].indexOf(i)>=0?{x:c,y:a}:{x:a,y:c}}(e,n.rects,r),t}),{}),c=a[n.placement],s=c.x,d=c.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=s,n.modifiersData.popperOffsets.y+=d),n.modifiersData[i]=a}};var pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,i=t.name,o=e.mainAxis,r=void 0===o||o,a=e.altAxis,s=void 0!==a&&a,d=e.boundary,l=e.rootBoundary,v=e.altBoundary,h=e.padding,m=e.tether,b=void 0===m||m,y=e.tetherOffset,g=void 0===y?0:y,w=ot(n,{boundary:d,rootBoundary:l,padding:h,altBoundary:v}),T=x(n.placement),k=D(n.placement),C=!k,S=q(T),M="x"===S?"y":"x",A=n.modifiersData.popperOffsets,E=n.rects.reference,R=n.rects.popper,H="function"==typeof g?g(Object.assign({},n.rects,{placement:n.placement})):g,z="number"==typeof H?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),L=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,P={x:0,y:0};if(A){if(r){var I,N="y"===S?u:p,F="y"===S?c:f,$="y"===S?"height":"width",V=A[S],X=V+w[N],Y=V-w[F],J=b?-R[$]/2:0,_="start"===k?E[$]:R[$],G="start"===k?-R[$]:-E[$],K=n.elements.arrow,Q=b&&K?B(K):{width:0,height:0},Z=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tt=Z[N],nt=Z[F],et=W(0,E[$],Q[$]),it=C?E[$]/2-J-et-tt-z.mainAxis:_-et-tt-z.mainAxis,rt=C?-E[$]/2+J+et+nt+z.mainAxis:G+et+nt+z.mainAxis,at=n.elements.arrow&&U(n.elements.arrow),ut=at?"y"===S?at.clientTop||0:at.clientLeft||0:0,ct=null!=(I=null==L?void 0:L[S])?I:0,ft=V+rt-ct,pt=W(b?j(X,V+it-ct-ut):X,V,b?O(Y,ft):Y);A[S]=pt,P[S]=pt-V}if(s){var st,dt="x"===S?u:p,lt="x"===S?c:f,vt=A[M],ht="y"===M?"height":"width",mt=vt+w[dt],bt=vt-w[lt],yt=-1!==[u,p].indexOf(T),gt=null!=(st=null==L?void 0:L[M])?st:0,wt=yt?mt:vt-E[ht]-R[ht]-gt+z.altAxis,xt=yt?vt+E[ht]+R[ht]-gt-z.altAxis:bt,Ot=b&&yt?function(t,n,e){var i=W(t,n,e);return i>e?e:i}(wt,vt,xt):W(b?wt:mt,vt,b?xt:bt);A[M]=Ot,P[M]=Ot-vt}n.modifiersData[i]=P}},requiresIfExists:["offset"]};function st(t,n,e){void 0===e&&(e=!1);var i,o,r=y(n),a=y(n)&&function(t){var n=t.getBoundingClientRect(),e=T(n.width)/t.offsetWidth||1,i=T(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),u=R(n),c=S(t,a,e),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(r||!r&&!e)&&(("body"!==h(n)||K(u))&&(f=(i=n)!==m(i)&&y(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:_(i)),y(n)?((p=S(n,!0)).x+=n.clientLeft,p.y+=n.clientTop):u&&(p.x=G(u))),{x:c.left+f.scrollLeft-p.x,y:c.top+f.scrollTop-p.y,width:c.width,height:c.height}}function dt(t){var n=new Map,e=new Set,i=[];function o(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var i=n.get(t);i&&o(i)}})),i.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||o(t)})),i}var lt={placement:"bottom",modifiers:[],strategy:"absolute"};function vt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ht(t){void 0===t&&(t={});var n=t,e=n.defaultModifiers,i=void 0===e?[]:e,o=n.defaultOptions,r=void 0===o?lt:o;return function(t,n,e){void 0===e&&(e=r);var o,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},lt,r),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},c=[],f=!1,p={state:u,setOptions:function(e){var o="function"==typeof e?e(u.options):e;s(),u.options=Object.assign({},r,u.options,o),u.scrollParents={reference:b(t)?Z(t):t.contextElement?Z(t.contextElement):[],popper:Z(n)};var a,f,d=function(t){var n=dt(t);return v.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((a=[].concat(i,u.options.modifiers),f=a.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(f).map((function(t){return f[t]}))));return u.orderedModifiers=d.filter((function(t){return t.enabled})),u.orderedModifiers.forEach((function(t){var n=t.name,e=t.options,i=void 0===e?{}:e,o=t.effect;if("function"==typeof o){var r=o({state:u,name:n,instance:p,options:i}),a=function(){};c.push(r||a)}})),p.update()},forceUpdate:function(){if(!f){var t=u.elements,n=t.reference,e=t.popper;if(vt(n,e)){u.rects={reference:st(n,U(e),"fixed"===u.options.strategy),popper:B(e)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(t){return u.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<u.orderedModifiers.length;i++)if(!0!==u.reset){var o=u.orderedModifiers[i],r=o.fn,a=o.options,c=void 0===a?{}:a,s=o.name;"function"==typeof r&&(u=r({state:u,options:c,name:s,instance:p})||u)}else u.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){p.forceUpdate(),t(u)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){s(),f=!0}};if(!vt(t,n))return p;function s(){c.forEach((function(t){return t()})),c=[]}return p.setOptions(e).then((function(t){!f&&e.onFirstUpdate&&e.onFirstUpdate(t)})),p}}var mt=ht({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,a=i.resize,u=void 0===a||a,c=m(n.elements.popper),f=[].concat(n.scrollParents.reference,n.scrollParents.popper);return r&&f.forEach((function(t){t.addEventListener("scroll",e.update,$)})),u&&c.addEventListener("resize",e.update,$),function(){r&&f.forEach((function(t){t.removeEventListener("scroll",e.update,$)})),u&&c.removeEventListener("resize",e.update,$)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state,e=t.name;n.modifiersData[e]=it({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,i=e.gpuAcceleration,o=void 0===i||i,r=e.adaptive,a=void 0===r||r,u=e.roundOffsets,c=void 0===u||u,f={placement:x(n.placement),variation:D(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,F(Object.assign({},f,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:c})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,F(Object.assign({},f,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},w,ft,at,pt,I,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,i=n.rects.reference,o=n.rects.popper,r=n.modifiersData.preventOverflow,a=ot(n,{elementContext:"reference"}),u=ot(n,{altBoundary:!0}),c=ut(a,i),f=ut(u,o,r),p=ct(c),s=ct(f);n.modifiersData[e]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:s},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":s})}}]}),bt='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',yt={passive:!0,capture:!0},gt=function(){return document.body};function wt(t,n,e){if(Array.isArray(t)){var i=t[n];return null==i?Array.isArray(e)?e[n]:e:i}return t}function xt(t,n){var e={}.toString.call(t);return 0===e.indexOf("[object")&&e.indexOf(n+"]")>-1}function Ot(t,n){return"function"==typeof t?t.apply(void 0,n):t}function jt(t,n){return 0===n?t:function(i){clearTimeout(e),e=setTimeout((function(){t(i)}),n)};var e}function Tt(t){return[].concat(t)}function kt(t,n){-1===t.indexOf(n)&&t.push(n)}function Ct(t){return[].slice.call(t)}function St(t){return Object.keys(t).reduce((function(n,e){return void 0!==t[e]&&(n[e]=t[e]),n}),{})}function Bt(){return document.createElement("div")}function Mt(t){return["Element","Fragment"].some((function(n){return xt(t,n)}))}function At(t){return xt(t,"MouseEvent")}function Et(t){return Mt(t)?[t]:function(t){return xt(t,"NodeList")}(t)?Ct(t):Array.isArray(t)?t:Ct(document.querySelectorAll(t))}function Rt(t,n){t.forEach((function(t){t&&(t.style.transitionDuration=n+"ms")}))}function Ht(t,n){t.forEach((function(t){t&&t.setAttribute("data-state",n)}))}function zt(t){var n,e=Tt(t)[0];return null!=e&&null!=(n=e.ownerDocument)&&n.body?e.ownerDocument:document}function Ut(t,n,e){var i=n+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(n){t[i](n,e)}))}function qt(t,n){for(var e=n;e;){var i;if(t.contains(e))return!0;e=null==e.getRootNode||null==(i=e.getRootNode())?void 0:i.host}return!1}var Wt={isTouch:!1},Lt=0;function Pt(){Wt.isTouch||(Wt.isTouch=!0,window.performance&&document.addEventListener("mousemove",It))}function It(){var t=performance.now();t-Lt<20&&(Wt.isTouch=!1,document.removeEventListener("mousemove",It)),Lt=t}function Dt(){var t,n=document.activeElement;if((t=n)&&t._tippy&&t._tippy.reference===t){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}var Nt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Ft=Object.assign({appendTo:gt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),$t=Object.keys(Ft);function Vt(t){var n=(t.plugins||[]).reduce((function(n,e){var i,o=e.name,r=e.defaultValue;o&&(n[o]=void 0!==t[o]?t[o]:null!=(i=Ft[o])?i:r);return n}),{});return Object.assign({},t,n)}function Xt(t,n){var e=Object.assign({},n,{content:Ot(n.content,[t])},n.ignoreAttributes?{}:function(t,n){return(n?Object.keys(Vt(Object.assign({},Ft,{plugins:n}))):$t).reduce((function(n,e){var i=(t.getAttribute("data-tippy-"+e)||"").trim();if(!i)return n;if("content"===e)n[e]=i;else try{n[e]=JSON.parse(i)}catch(t){n[e]=i}return n}),{})}(t,n.plugins));return e.aria=Object.assign({},Ft.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?n.interactive:e.aria.expanded,content:"auto"===e.aria.content?n.interactive?null:"describedby":e.aria.content},e}function Yt(t,n){t.innerHTML=n}function Jt(t){var n=Bt();return!0===t?n.className="tippy-arrow":(n.className="tippy-svg-arrow",Mt(t)?n.appendChild(t):Yt(n,t)),n}function _t(t,n){Mt(n.content)?(Yt(t,""),t.appendChild(n.content)):"function"!=typeof n.content&&(n.allowHTML?Yt(t,n.content):t.textContent=n.content)}function Gt(t){var n=t.firstElementChild,e=Ct(n.children);return{box:n,content:e.find((function(t){return t.classList.contains("tippy-content")})),arrow:e.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:e.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function Kt(t){var n=Bt(),e=Bt();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var i=Bt();function o(e,i){var o=Gt(n),r=o.box,a=o.content,u=o.arrow;i.theme?r.setAttribute("data-theme",i.theme):r.removeAttribute("data-theme"),"string"==typeof i.animation?r.setAttribute("data-animation",i.animation):r.removeAttribute("data-animation"),i.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?r.setAttribute("role",i.role):r.removeAttribute("role"),e.content===i.content&&e.allowHTML===i.allowHTML||_t(a,t.props),i.arrow?u?e.arrow!==i.arrow&&(r.removeChild(u),r.appendChild(Jt(i.arrow))):r.appendChild(Jt(i.arrow)):u&&r.removeChild(u)}return i.className="tippy-content",i.setAttribute("data-state","hidden"),_t(i,t.props),n.appendChild(e),e.appendChild(i),o(t.props,t.props),{popper:n,onUpdate:o}}Kt.$$tippy=!0;var Qt=1,Zt=[],tn=[];function nn(t,n){var e,i,o,r,a,u,c,f,p=Xt(t,Object.assign({},Ft,Vt(St(n)))),s=!1,d=!1,l=!1,v=!1,h=[],m=jt(Y,p.interactiveDebounce),b=Qt++,y=(f=p.plugins).filter((function(t,n){return f.indexOf(t)===n})),g={id:b,reference:t,popper:Bt(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(e),clearTimeout(i),cancelAnimationFrame(o)},setProps:function(n){if(g.state.isDestroyed)return;H("onBeforeUpdate",[g,n]),V();var e=g.props,i=Xt(t,Object.assign({},e,St(n),{ignoreAttributes:!0}));g.props=i,$(),e.interactiveDebounce!==i.interactiveDebounce&&(q(),m=jt(Y,i.interactiveDebounce));e.triggerTarget&&!i.triggerTarget?Tt(e.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):i.triggerTarget&&t.removeAttribute("aria-expanded");U(),R(),O&&O(e,i);g.popperInstance&&(K(),Z().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));H("onAfterUpdate",[g,n])},setContent:function(t){g.setProps({content:t})},show:function(){var t=g.state.isVisible,n=g.state.isDestroyed,e=!g.state.isEnabled,i=Wt.isTouch&&!g.props.touch,o=wt(g.props.duration,0,Ft.duration);if(t||n||e||i)return;if(B().hasAttribute("disabled"))return;if(H("onShow",[g],!1),!1===g.props.onShow(g))return;g.state.isVisible=!0,S()&&(x.style.visibility="visible");R(),I(),g.state.isMounted||(x.style.transition="none");if(S()){var r=A(),a=r.box,c=r.content;Rt([a,c],0)}u=function(){var t;if(g.state.isVisible&&!v){if(v=!0,x.offsetHeight,x.style.transition=g.props.moveTransition,S()&&g.props.animation){var n=A(),e=n.box,i=n.content;Rt([e,i],o),Ht([e,i],"visible")}z(),U(),kt(tn,g),null==(t=g.popperInstance)||t.forceUpdate(),H("onMount",[g]),g.props.animation&&S()&&function(t,n){N(t,n)}(o,(function(){g.state.isShown=!0,H("onShown",[g])}))}},function(){var t,n=g.props.appendTo,e=B();t=g.props.interactive&&n===gt||"parent"===n?e.parentNode:Ot(n,[e]);t.contains(x)||t.appendChild(x);g.state.isMounted=!0,K()}()},hide:function(){var t=!g.state.isVisible,n=g.state.isDestroyed,e=!g.state.isEnabled,i=wt(g.props.duration,1,Ft.duration);if(t||n||e)return;if(H("onHide",[g],!1),!1===g.props.onHide(g))return;g.state.isVisible=!1,g.state.isShown=!1,v=!1,s=!1,S()&&(x.style.visibility="hidden");if(q(),D(),R(!0),S()){var o=A(),r=o.box,a=o.content;g.props.animation&&(Rt([r,a],i),Ht([r,a],"hidden"))}z(),U(),g.props.animation?S()&&function(t,n){N(t,(function(){!g.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&n()}))}(i,g.unmount):g.unmount()},hideWithInteractivity:function(t){M().addEventListener("mousemove",m),kt(Zt,m),m(t)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){g.state.isVisible&&g.hide();if(!g.state.isMounted)return;Q(),Z().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);tn=tn.filter((function(t){return t!==g})),g.state.isMounted=!1,H("onHidden",[g])},destroy:function(){if(g.state.isDestroyed)return;g.clearDelayTimeouts(),g.unmount(),V(),delete t._tippy,g.state.isDestroyed=!0,H("onDestroy",[g])}};if(!p.render)return g;var w=p.render(g),x=w.popper,O=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+g.id,g.popper=x,t._tippy=g,x._tippy=g;var j=y.map((function(t){return t.fn(g)})),T=t.hasAttribute("aria-expanded");return $(),U(),R(),H("onCreate",[g]),p.showOnCreate&&tt(),x.addEventListener("mouseenter",(function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&M().addEventListener("mousemove",m)})),g;function k(){var t=g.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===k()[0]}function S(){var t;return!(null==(t=g.props.render)||!t.$$tippy)}function B(){return c||t}function M(){var t=B().parentNode;return t?zt(t):document}function A(){return Gt(x)}function E(t){return g.state.isMounted&&!g.state.isVisible||Wt.isTouch||r&&"focus"===r.type?0:wt(g.props.delay,t?0:1,Ft.delay)}function R(t){void 0===t&&(t=!1),x.style.pointerEvents=g.props.interactive&&!t?"":"none",x.style.zIndex=""+g.props.zIndex}function H(t,n,e){var i;(void 0===e&&(e=!0),j.forEach((function(e){e[t]&&e[t].apply(e,n)})),e)&&(i=g.props)[t].apply(i,n)}function z(){var n=g.props.aria;if(n.content){var e="aria-"+n.content,i=x.id;Tt(g.props.triggerTarget||t).forEach((function(t){var n=t.getAttribute(e);if(g.state.isVisible)t.setAttribute(e,n?n+" "+i:i);else{var o=n&&n.replace(i,"").trim();o?t.setAttribute(e,o):t.removeAttribute(e)}}))}}function U(){!T&&g.props.aria.expanded&&Tt(g.props.triggerTarget||t).forEach((function(t){g.props.interactive?t.setAttribute("aria-expanded",g.state.isVisible&&t===B()?"true":"false"):t.removeAttribute("aria-expanded")}))}function q(){M().removeEventListener("mousemove",m),Zt=Zt.filter((function(t){return t!==m}))}function W(n){if(!Wt.isTouch||!l&&"mousedown"!==n.type){var e=n.composedPath&&n.composedPath()[0]||n.target;if(!g.props.interactive||!qt(x,e)){if(Tt(g.props.triggerTarget||t).some((function(t){return qt(t,e)}))){if(Wt.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else H("onClickOutside",[g,n]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),d=!0,setTimeout((function(){d=!1})),g.state.isMounted||D())}}}function L(){l=!0}function P(){l=!1}function I(){var t=M();t.addEventListener("mousedown",W,!0),t.addEventListener("touchend",W,yt),t.addEventListener("touchstart",P,yt),t.addEventListener("touchmove",L,yt)}function D(){var t=M();t.removeEventListener("mousedown",W,!0),t.removeEventListener("touchend",W,yt),t.removeEventListener("touchstart",P,yt),t.removeEventListener("touchmove",L,yt)}function N(t,n){var e=A().box;function i(t){t.target===e&&(Ut(e,"remove",i),n())}if(0===t)return n();Ut(e,"remove",a),Ut(e,"add",i),a=i}function F(n,e,i){void 0===i&&(i=!1),Tt(g.props.triggerTarget||t).forEach((function(t){t.addEventListener(n,e,i),h.push({node:t,eventType:n,handler:e,options:i})}))}function $(){var t;C()&&(F("touchstart",X,{passive:!0}),F("touchend",J,{passive:!0})),(t=g.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(F(t,X),t){case"mouseenter":F("mouseleave",J);break;case"focus":F(Nt?"focusout":"blur",_);break;case"focusin":F("focusout",_)}}))}function V(){h.forEach((function(t){var n=t.node,e=t.eventType,i=t.handler,o=t.options;n.removeEventListener(e,i,o)})),h=[]}function X(t){var n,e=!1;if(g.state.isEnabled&&!G(t)&&!d){var i="focus"===(null==(n=r)?void 0:n.type);r=t,c=t.currentTarget,U(),!g.state.isVisible&&At(t)&&Zt.forEach((function(n){return n(t)})),"click"===t.type&&(g.props.trigger.indexOf("mouseenter")<0||s)&&!1!==g.props.hideOnClick&&g.state.isVisible?e=!0:tt(t),"click"===t.type&&(s=!e),e&&!i&&nt(t)}}function Y(t){var n=t.target,e=B().contains(n)||x.contains(n);if("mousemove"!==t.type||!e){var i=Z().concat(x).map((function(t){var n,e=null==(n=t._tippy.popperInstance)?void 0:n.state;return e?{popperRect:t.getBoundingClientRect(),popperState:e,props:p}:null})).filter(Boolean);(function(t,n){var e=n.clientX,i=n.clientY;return t.every((function(t){var n=t.popperRect,o=t.popperState,r=t.props.interactiveBorder,a=o.placement.split("-")[0],u=o.modifiersData.offset;if(!u)return!0;var c="bottom"===a?u.top.y:0,f="top"===a?u.bottom.y:0,p="right"===a?u.left.x:0,s="left"===a?u.right.x:0,d=n.top-i+c>r,l=i-n.bottom-f>r,v=n.left-e+p>r,h=e-n.right-s>r;return d||l||v||h}))})(i,t)&&(q(),nt(t))}}function J(t){G(t)||g.props.trigger.indexOf("click")>=0&&s||(g.props.interactive?g.hideWithInteractivity(t):nt(t))}function _(t){g.props.trigger.indexOf("focusin")<0&&t.target!==B()||g.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||nt(t)}function G(t){return!!Wt.isTouch&&C()!==t.type.indexOf("touch")>=0}function K(){Q();var n=g.props,e=n.popperOptions,i=n.placement,o=n.offset,r=n.getReferenceClientRect,a=n.moveTransition,c=S()?Gt(x).arrow:null,f=r?{getBoundingClientRect:r,contextElement:r.contextElement||B()}:t,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var n=t.state;if(S()){var e=A().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?e.setAttribute("data-placement",n.placement):n.attributes.popper["data-popper-"+t]?e.setAttribute("data-"+t,""):e.removeAttribute("data-"+t)})),n.attributes.popper={}}}},s=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},p];S()&&c&&s.push({name:"arrow",options:{element:c,padding:3}}),s.push.apply(s,(null==e?void 0:e.modifiers)||[]),g.popperInstance=mt(f,x,Object.assign({},e,{placement:i,onFirstUpdate:u,modifiers:s}))}function Q(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Z(){return Ct(x.querySelectorAll("[data-tippy-root]"))}function tt(t){g.clearDelayTimeouts(),t&&H("onTrigger",[g,t]),I();var n=E(!0),i=k(),o=i[0],r=i[1];Wt.isTouch&&"hold"===o&&r&&(n=r),n?e=setTimeout((function(){g.show()}),n):g.show()}function nt(t){if(g.clearDelayTimeouts(),H("onUntrigger",[g,t]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&s)){var n=E(!1);n?i=setTimeout((function(){g.state.isVisible&&g.hide()}),n):o=requestAnimationFrame((function(){g.hide()}))}}else D()}}function en(t,n){void 0===n&&(n={});var e=Ft.plugins.concat(n.plugins||[]);document.addEventListener("touchstart",Pt,yt),window.addEventListener("blur",Dt);var i=Object.assign({},n,{plugins:e}),o=Et(t).reduce((function(t,n){var e=n&&nn(n,i);return e&&t.push(e),t}),[]);return Mt(t)?o[0]:o}en.defaultProps=Ft,en.setDefaultProps=function(t){Object.keys(t).forEach((function(n){Ft[n]=t[n]}))},en.currentInput=Wt;var on=Object.assign({},w,{effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow)}}),rn=function(t,n){var e;void 0===n&&(n={});var i,o=t,r=[],a=[],u=n.overrides,c=[],f=!1;function p(){a=o.map((function(t){return Tt(t.props.triggerTarget||t.reference)})).reduce((function(t,n){return t.concat(n)}),[])}function s(){r=o.map((function(t){return t.reference}))}function d(t){o.forEach((function(n){t?n.enable():n.disable()}))}function l(t){return o.map((function(n){var e=n.setProps;return n.setProps=function(o){e(o),n.reference===i&&t.setProps(o)},function(){n.setProps=e}}))}function v(t,n){var e=a.indexOf(n);if(n!==i){i=n;var c=(u||[]).concat("content").reduce((function(t,n){return t[n]=o[e].props[n],t}),{});t.setProps(Object.assign({},c,{getReferenceClientRect:"function"==typeof c.getReferenceClientRect?c.getReferenceClientRect:function(){var t;return null==(t=r[e])?void 0:t.getBoundingClientRect()}}))}}d(!1),s(),p();var h,m,b,y={fn:function(){return{onDestroy:function(){d(!0)},onHidden:function(){i=null},onClickOutside:function(t){t.props.showOnCreate&&!f&&(f=!0,i=null)},onShow:function(t){t.props.showOnCreate&&!f&&(f=!0,v(t,r[0]))},onTrigger:function(t,n){v(t,n.currentTarget)}}}},g=en(Bt(),Object.assign({},(h=n,m=["overrides"],b=Object.assign({},h),m.forEach((function(t){delete b[t]})),b),{plugins:[y].concat(n.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat((null==(e=n.popperOptions)?void 0:e.modifiers)||[],[on])})})),w=g.show;g.show=function(t){if(w(),!i&&null==t)return v(g,r[0]);if(!i||null!=t){if("number"==typeof t)return r[t]&&v(g,r[t]);if(o.indexOf(t)>=0){var n=t.reference;return v(g,n)}return r.indexOf(t)>=0?v(g,t):void 0}},g.showNext=function(){var t=r[0];if(!i)return g.show(0);var n=r.indexOf(i);g.show(r[n+1]||t)},g.showPrevious=function(){var t=r[r.length-1];if(!i)return g.show(t);var n=r.indexOf(i),e=r[n-1]||t;g.show(e)};var x=g.setProps;return g.setProps=function(t){u=t.overrides||u,x(t)},g.setInstances=function(t){d(!0),c.forEach((function(t){return t()})),o=t,d(!1),s(),p(),c=l(g),g.setProps({triggerTarget:a})},c=l(g),g},an={clientX:0,clientY:0},un=[];function cn(t){var n=t.clientX,e=t.clientY;an={clientX:n,clientY:e}}var fn={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,e=zt(t.props.triggerTarget||n),i=!1,o=!1,r=!0,a=t.props;function u(){return"initial"===t.props.followCursor&&t.state.isVisible}function c(){e.addEventListener("mousemove",s)}function f(){e.removeEventListener("mousemove",s)}function p(){i=!0,t.setProps({getReferenceClientRect:null}),i=!1}function s(e){var i=!e.target||n.contains(e.target),o=t.props.followCursor,r=e.clientX,a=e.clientY,u=n.getBoundingClientRect(),c=r-u.left,f=a-u.top;!i&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=n.getBoundingClientRect(),e=r,i=a;"initial"===o&&(e=t.left+c,i=t.top+f);var u="horizontal"===o?t.top:i,p="vertical"===o?t.right:e,s="horizontal"===o?t.bottom:i,d="vertical"===o?t.left:e;return{width:p-d,height:s-u,top:u,right:p,bottom:s,left:d}}})}function d(){t.props.followCursor&&(un.push({instance:t,doc:e}),function(t){t.addEventListener("mousemove",cn)}(e))}function l(){0===(un=un.filter((function(n){return n.instance!==t}))).filter((function(t){return t.doc===e})).length&&function(t){t.removeEventListener("mousemove",cn)}(e)}return{onCreate:d,onDestroy:l,onBeforeUpdate:function(){a=t.props},onAfterUpdate:function(n,e){var r=e.followCursor;i||void 0!==r&&a.followCursor!==r&&(l(),r?(d(),!t.state.isMounted||o||u()||c()):(f(),p()))},onMount:function(){t.props.followCursor&&!o&&(r&&(s(an),r=!1),u()||c())},onTrigger:function(t,n){At(n)&&(an={clientX:n.clientX,clientY:n.clientY}),o="focus"===n.type},onHidden:function(){t.props.followCursor&&(p(),f(),r=!0)}}}};en.setDefaultProps({render:Kt});let pn=class extends o{constructor(){super(),this.for=null,this.content="",this.size="small",this.duration=200,this.interactive=!1,this.placement="top",this.disabled=!1,this.distance=8,this.skidding=0,this.open=!1,this.trigger="mouseenter focus",this.hoist=!1,this.allowHTML=!1,this.followCursor=!1,this.arrow="default",this.singleton=!1,this.delay=0,this.maxWidth="auto",this.zIndex=9999,this.hideOnClick=!0,this.inertia=!1,this.interactiveBorder=2,this.injectTippyStyles()}static get styles(){return[i]}createRenderRoot(){return this}injectTippyStyles(){const t="nile-light-tooltip-styles";if(document.getElementById(t))return;const n=document.createElement("style");n.id=t,n.textContent='\n .tippy-box[data-animation=fade][data-state=hidden] { opacity: 0; }\n [data-tippy-root] { max-width: calc(100vw - 10px); }\n .tippy-box {\n position: relative;\n background-color: #333;\n color: #fff;\n border-radius: 4px;\n font-size: 14px;\n line-height: 1.4;\n white-space: normal;\n outline: 0;\n transition-property: transform, visibility, opacity;\n }\n\n /* Placement-specific arrows */\n .tippy-box[data-placement^=top] > .tippy-arrow { bottom: 0; }\n .tippy-box[data-placement^=top] > .tippy-arrow:before {\n bottom: -7px;\n border-width: 8px 8px 0;\n border-top-color: initial;\n }\n\n .tippy-box[data-placement^=bottom] > .tippy-arrow { top: 0; }\n .tippy-box[data-placement^=bottom] > .tippy-arrow:before {\n top: -7px;\n border-width: 0 8px 8px;\n border-bottom-color: initial;\n }\n\n .tippy-box[data-placement^=left] > .tippy-arrow { right: 0; }\n .tippy-box[data-placement^=left] > .tippy-arrow:before {\n right: -7px;\n border-width: 8px 0 8px 8px;\n border-left-color: initial;\n }\n\n .tippy-box[data-placement^=right] > .tippy-arrow { left: 0; }\n .tippy-box[data-placement^=right] > .tippy-arrow:before {\n left: -7px;\n border-width: 8px 8px 8px 0;\n border-right-color: initial;\n }\n\n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11);\n }\n\n .tippy-box.large { font-size: 16px; padding: 8px 12px; }\n .tippy-arrow { width: 16px; height: 16px; color: #333; }\n .tippy-arrow:before {\n content: "";\n position: absolute;\n border-color: transparent;\n border-style: solid;\n }\n\n .tippy-content {\n position: relative;\n padding: 2px 6px;\n z-index: 1;\n }\n\t\t.tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}\n ',document.head.appendChild(n)}firstUpdated(){this.attachTooltip()}attachTooltip(){if(this.destroyTooltips(),this.disabled)return;const t={content:this.content||this.getAttribute("data-tippy-content")||void 0,placement:this.placement,trigger:this.trigger,offset:[this.skidding,this.distance],theme:"light",animation:"fade",interactive:this.interactive,arrow:bt,duration:r(this.duration),allowHTML:this.allowHTML,delay:this.delay,maxWidth:this.maxWidth,zIndex:this.zIndex,hideOnClick:this.hideOnClick,inertia:this.inertia,interactiveBorder:this.interactiveBorder,appendTo:this.hoist?document.body:void 0,followCursor:a(this.followCursor),plugins:a(this.followCursor)?[fn]:[],onShow:t=>{this.open=!0,this.dispatchEvent(new CustomEvent("nile-show",{detail:{instance:t,target:t.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!0,instance:t,target:t.reference}}))},onHide:t=>{this.open=!1,this.dispatchEvent(new CustomEvent("nile-hide",{detail:{instance:t,target:t.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!1,instance:t,target:t.reference}}))}};if(this.for){if(this.targetEl=document.getElementById(this.for),!this.targetEl)return;this.id||(this.generatedId=`nile-tooltip-${Math.random().toString(36).slice(2,9)}`,this.id=this.generatedId),this.prevDescribedby=this.targetEl.getAttribute("aria-describedby");const n=this.prevDescribedby?`${this.prevDescribedby} ${this.id}`:this.id;return this.targetEl.setAttribute("aria-describedby",n),this.singleInstance=en(this.targetEl,t),this.size&&this.singleInstance.popper.querySelector(".tippy-box")?.classList.add(this.size),void(this.open&&queueMicrotask((()=>this.singleInstance?.show())))}const n=Array.from(this.querySelectorAll("*"));n.length>0&&(this.tooltipInstances=n.map((n=>{const e=n,i=e.getAttribute("content")||this.content,o=en(e,{...t,content:i});return o.popper.querySelector(".tippy-box")?.classList.add(this.size),o})),this.singleton&&this.tooltipInstances.length>1&&(this.singletonInstance=rn(this.tooltipInstances,{delay:[75,0],arrow:bt,moveTransition:"transform 0.15s ease-out"})),this.open&&(this.singletonInstance?this.singletonInstance.show():this.tooltipInstances.forEach((t=>t.show()))))}destroyTooltips(){if(this.tooltipInstances?.forEach((t=>t.destroy())),this.singleInstance?.destroy(),this.singletonInstance?.destroy(),this.tooltipInstances=void 0,this.singleInstance=void 0,this.singletonInstance=void 0,this.targetEl&&this.id){const t=this.targetEl.getAttribute("aria-describedby")?.split(" ").filter((t=>t!==this.id)).join(" ").trim();t?this.targetEl.setAttribute("aria-describedby",t):this.targetEl.removeAttribute("aria-describedby")}}disconnectedCallback(){super.disconnectedCallback(),this.destroyTooltips()}updated(t){super.updated(t),["for","content","placement","distance","skidding","trigger","disabled","hoist","size","arrow","singleton"].some((n=>t.has(n)))&&this.attachTooltip(),t.has("open")&&(this.open?(this.singleInstance?.show(),this.singletonInstance?.show(),this.tooltipInstances?.forEach((t=>t.show()))):(this.singleInstance?.hide(),this.singletonInstance?.hide(),this.tooltipInstances?.forEach((t=>t.hide()))))}};t([n({type:String,attribute:"for"})],pn.prototype,"for",void 0),t([n({type:String,reflect:!0})],pn.prototype,"content",void 0),t([n({type:String,reflect:!0})],pn.prototype,"size",void 0),t([n({type:String,reflect:!0})],pn.prototype,"duration",void 0),t([n({type:Boolean,reflect:!0})],pn.prototype,"interactive",void 0),t([n({type:String})],pn.prototype,"placement",void 0),t([n({type:Boolean})],pn.prototype,"disabled",void 0),t([n({type:Number})],pn.prototype,"distance",void 0),t([n({type:Number})],pn.prototype,"skidding",void 0),t([n({type:Boolean,reflect:!0})],pn.prototype,"open",void 0),t([n({type:String})],pn.prototype,"trigger",void 0),t([n({type:Boolean,reflect:!0})],pn.prototype,"hoist",void 0),t([n({type:Boolean,reflect:!0})],pn.prototype,"allowHTML",void 0),t([n({type:String,reflect:!0,attribute:!0})],pn.prototype,"followCursor",void 0),t([n({type:String,reflect:!0,attribute:!0})],pn.prototype,"arrow",void 0),t([n({type:Boolean,reflect:!0})],pn.prototype,"singleton",void 0),t([n({type:String,reflect:!0})],pn.prototype,"delay",void 0),t([n({type:String,reflect:!0})],pn.prototype,"maxWidth",void 0),t([n({type:Number})],pn.prototype,"zIndex",void 0),t([n({type:[Boolean,String],reflect:!0})],pn.prototype,"hideOnClick",void 0),t([n({type:Boolean,reflect:!0})],pn.prototype,"inertia",void 0),t([n({type:Number})],pn.prototype,"interactiveBorder",void 0),pn=t([e("nile-light-tooltip")],pn);export{pn as N};
@@ -0,0 +1,2 @@
1
+ System.register([],function(_export,_context){"use strict";function r(r){return!0===r||"true"===r||!1!==r&&"false"!==r&&!!["initial","horizontal","vertical"].includes(String(r))&&r;}function t(r){if(Array.isArray(r))return r;if("number"==typeof r)return r;if("string"==typeof r){if(r.includes(",")){return r.split(",").map(function(r){return parseInt(r.trim(),10);});}var _t=parseInt(r,10);if(!isNaN(_t))return _t;}return 200;}_export({a:r,p:t});return{setters:[],execute:function execute(){}};});
2
+ //# sourceMappingURL=utils.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.cjs.js","sources":["../../../src/nile-light-tooltip/utils.ts"],"sourcesContent":[" \nexport function parseFollowCursor(\n value: boolean | 'initial' | 'horizontal' | 'vertical' | 'true' | 'false'\n): boolean | 'initial' | 'horizontal' | 'vertical' {\n if (value === true || value === 'true') return true;\n if (value === false || value === 'false') return false;\n if (['initial', 'horizontal', 'vertical'].includes(String(value))) {\n return value as 'initial' | 'horizontal' | 'vertical';\n }\n return false;\n}\n\n\nexport function parseDuration(\n value: string | number | [number, number] | undefined\n ): number | [number, number] {\n if (Array.isArray(value)) return value;\n if (typeof value === 'number') return value;\n \n if (typeof value === 'string') {\n // Handle comma-separated (e.g. \"200,100\")\n if (value.includes(',')) {\n const parts = value.split(',').map(v => parseInt(v.trim(), 10));\n return parts as [number, number];\n }\n \n // Single numeric string\n const num = parseInt(value, 10);\n if (!isNaN(num)) return num;\n }\n \n return 200; // default fallback\n }"],"names":["parseFollowCursor","value","includes","String","parseDuration","Array","isArray","split","map","v","parseInt","trim","num","isNaN"],"mappings":"2DACM,QAAUA,CAAAA,CACdC,CAAAA,CAAAA,CAAAA,CAEA,MAAc,CAAA,CAAA,GAAVA,GAA4B,MAAVA,GAAAA,CAAAA,EAAAA,CACR,CAAVA,GAAAA,CAAAA,EAA6B,OAAVA,GAAAA,CAAAA,EAAAA,CAAAA,CACnB,CAAC,SAAA,CAAW,aAAc,UAAYC,CAAAA,CAAAA,QAAAA,CAASC,MAAOF,CAAAA,CAAAA,CAAAA,CAAAA,EACjDA,CAGX,EAGM,QAAUG,CAAAA,CAAAA,CACZH,GAEA,GAAII,KAAAA,CAAMC,OAAQL,CAAAA,CAAAA,CAAAA,CAAQ,MAAOA,CAAAA,CAAAA,CACjC,GAAqB,QAAA,EAAA,MAAVA,CAAAA,EAAoB,MAAOA,CAAAA,CAAAA,CAEtC,GAAqB,QAAA,EAAA,MAAVA,CAAAA,CAAoB,CAAA,CAE7B,GAAIA,CAAAA,CAAMC,SAAS,GAAM,CAAA,CAAA,CAEvB,MADcD,CAAAA,CAAAA,CAAMM,KAAM,CAAA,GAAA,CAAA,CAAKC,GAAIC,CAAAA,SAAAA,CAAAA,QAAKC,CAAAA,SAASD,CAAEE,CAAAA,IAAAA,CAAAA,CAAAA,CAAQ,EAE5D,CAAA,EAAA,CAAA,EAGD,GAAMC,CAAAA,EAAAA,CAAMF,QAAST,CAAAA,CAAAA,CAAO,IAC5B,GAAKY,CAAAA,KAAAA,CAAMD,EAAM,CAAA,CAAA,MAAOA,CAAAA,EACzB,EAED,MAAO,IACT"}
@@ -0,0 +1 @@
1
+ function r(r){return!0===r||"true"===r||!1!==r&&"false"!==r&&(!!["initial","horizontal","vertical"].includes(String(r))&&r)}function t(r){if(Array.isArray(r))return r;if("number"==typeof r)return r;if("string"==typeof r){if(r.includes(",")){return r.split(",").map((r=>parseInt(r.trim(),10)))}const t=parseInt(r,10);if(!isNaN(t))return t}return 200}export{r as a,t as p};
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-54600b35.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-link.cjs.js","tslib","lit/decorators.js","./nile-link.css.cjs.js","../slot.cjs.js","lit/directives/if-defined.js","lit/directives/class-map.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var i,t,n,e,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture005CjsJs){i=_fixture005CjsJs.f;t=_fixture005CjsJs.a;n=_fixture005CjsJs.o;e=_fixture005CjsJs.b;},function(_litStaticHtmlJs){},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){l=_lit.html;},function(_litDirectivesUnsafeHtmlJs){},function(_nileLinkCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileLinkCssCjsJs){},function(_slotCjsJs){},function(_litDirectivesIfDefinedJs){},function(_litDirectivesClassMapJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileLink",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var n;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(l(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:n=_context2.sent;t(n.shadowRoot).to.exist,t(n.shadowRoot.querySelector(".link")).to.exist;case 4:case"end":return _context2.stop();}},_callee);}))),it("should handle the disabled attribute",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var n,e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(l(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-link disabled></nile-link>"]))));case 2:n=_context3.sent;e=n.shadowRoot.querySelector(".link");t(n.disabled).to.be["true"],t(e.getAttribute("aria-disabled")).to.equal("true"),t(e.getAttribute("tabindex")).to.equal("-1");case 5:case"end":return _context3.stop();}},_callee2);}))),it("should emit custom events on focus and blur",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var e,s,a;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return i(l(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:e=_context4.sent;setTimeout(function(){return e.shadowRoot.querySelector(".link").focus();});_context4.next=6;return n(e,"nile-focus");case 6:s=_context4.sent;t(s).to.exist,setTimeout(function(){return e.shadowRoot.querySelector(".link").blur();});_context4.next=10;return n(e,"nile-blur");case 10:a=_context4.sent;t(a).to.exist;case 12:case"end":return _context4.stop();}},_callee3);}))),it("should prevent click events when disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var n,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(l(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-link disabled></nile-link>"]))));case 2:n=_context5.sent;s=!1;n.addEventListener("click",function(){s=!0;});n.shadowRoot.querySelector(".link").click();_context5.next=8;return e(100);case 8:t(s).to.be["false"];case 9:case"end":return _context5.stop();}},_callee4);}))),it("should handle button property correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var n;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(l(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-link button></nile-link>"]))));case 2:n=_context6.sent.shadowRoot.querySelector(".link");t(n.classList.contains("link__button")).to.be["true"];case 4:case"end":return _context6.stop();}},_callee5);}))),it("should have all slots rendered successfully",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var n,e,s,a;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(l(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-link><span slot=\"prefix\">Prefix</span><span>Label</span><span slot=\"suffix\">Suffix</span></nile-link>"]))));case 2:n=_context7.sent;e=n.shadowRoot.querySelector('slot[name="prefix"]');s=n.shadowRoot.querySelector("slot:not([name])");a=n.shadowRoot.querySelector('slot[name="suffix"]');t(e.assignedNodes().length).to.equal(1),t(s.assignedNodes().length).to.equal(1),t(a.assignedNodes().length).to.equal(1);case 7:case"end":return _context7.stop();}},_callee6);}))),it("should emit nile-init and nile-destroy events on connected and disconnected",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var i,n,e;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:i=document.createElement("nile-link");i.addEventListener("nile-init",function(i){return n=i;});i.addEventListener("nile-init",function(i){return e=i;});document.body.appendChild(i);_context8.next=6;return i.updateComplete;case 6:t(n).to.exist;document.body.removeChild(i);_context8.next=10;return i.updateComplete;case 10:t(e).to.exist;case 11:case"end":return _context8.stop();}},_callee7);}))),it("should reflect properties correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var n;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(l(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:n=_context9.sent;n.disabled=!0;_context9.next=6;return n.updateComplete;case 6:t(n.hasAttribute("disabled")).to.be["true"];n.disabled=!1;_context9.next=10;return n.updateComplete;case 10:t(n.hasAttribute("disabled")).to.be["false"];case 11:case"end":return _context9.stop();}},_callee8);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-1c49c014.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-link.cjs.js","tslib","lit/decorators.js","./nile-link.css.cjs.js","../slot.cjs.js","lit/directives/if-defined.js","lit/directives/class-map.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var i,t,n,e,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture005CjsJs){i=_fixture005CjsJs.f;t=_fixture005CjsJs.a;n=_fixture005CjsJs.o;e=_fixture005CjsJs.b;},function(_litStaticHtmlJs){},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){l=_lit.html;},function(_litDirectivesUnsafeHtmlJs){},function(_nileLinkCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileLinkCssCjsJs){},function(_slotCjsJs){},function(_litDirectivesIfDefinedJs){},function(_litDirectivesClassMapJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileLink",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var n;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(l(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:n=_context2.sent;t(n.shadowRoot).to.exist,t(n.shadowRoot.querySelector(".link")).to.exist;case 4:case"end":return _context2.stop();}},_callee);}))),it("should handle the disabled attribute",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var n,e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(l(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-link disabled></nile-link>"]))));case 2:n=_context3.sent;e=n.shadowRoot.querySelector(".link");t(n.disabled).to.be["true"],t(e.getAttribute("aria-disabled")).to.equal("true"),t(e.getAttribute("tabindex")).to.equal("-1");case 5:case"end":return _context3.stop();}},_callee2);}))),it("should emit custom events on focus and blur",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var e,s,a;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return i(l(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:e=_context4.sent;setTimeout(function(){return e.shadowRoot.querySelector(".link").focus();});_context4.next=6;return n(e,"nile-focus");case 6:s=_context4.sent;t(s).to.exist,setTimeout(function(){return e.shadowRoot.querySelector(".link").blur();});_context4.next=10;return n(e,"nile-blur");case 10:a=_context4.sent;t(a).to.exist;case 12:case"end":return _context4.stop();}},_callee3);}))),it("should prevent click events when disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var n,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(l(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-link disabled></nile-link>"]))));case 2:n=_context5.sent;s=!1;n.addEventListener("click",function(){s=!0;});n.shadowRoot.querySelector(".link").click();_context5.next=8;return e(100);case 8:t(s).to.be["false"];case 9:case"end":return _context5.stop();}},_callee4);}))),it("should handle button property correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var n;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(l(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-link button></nile-link>"]))));case 2:n=_context6.sent.shadowRoot.querySelector(".link");t(n.classList.contains("link__button")).to.be["true"];case 4:case"end":return _context6.stop();}},_callee5);}))),it("should have all slots rendered successfully",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var n,e,s,a;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(l(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-link><span slot=\"prefix\">Prefix</span><span>Label</span><span slot=\"suffix\">Suffix</span></nile-link>"]))));case 2:n=_context7.sent;e=n.shadowRoot.querySelector('slot[name="prefix"]');s=n.shadowRoot.querySelector("slot:not([name])");a=n.shadowRoot.querySelector('slot[name="suffix"]');t(e.assignedNodes().length).to.equal(1),t(s.assignedNodes().length).to.equal(1),t(a.assignedNodes().length).to.equal(1);case 7:case"end":return _context7.stop();}},_callee6);}))),it("should emit nile-init and nile-destroy events on connected and disconnected",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var i,n,e;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:i=document.createElement("nile-link");i.addEventListener("nile-init",function(i){return n=i;});i.addEventListener("nile-init",function(i){return e=i;});document.body.appendChild(i);_context8.next=6;return i.updateComplete;case 6:t(n).to.exist;document.body.removeChild(i);_context8.next=10;return i.updateComplete;case 10:t(e).to.exist;case 11:case"end":return _context8.stop();}},_callee7);}))),it("should reflect properties correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var n;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(l(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-link></nile-link>"]))));case 2:n=_context9.sent;n.disabled=!0;_context9.next=6;return n.updateComplete;case 6:t(n.hasAttribute("disabled")).to.be["true"];n.disabled=!1;_context9.next=10;return n.updateComplete;case 10:t(n.hasAttribute("disabled")).to.be["false"];case 11:case"end":return _context9.stop();}},_callee8);})));});}};});
2
2
  //# sourceMappingURL=nile-link.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as i,a as t,o as e,b as n}from"../fixture-9871e8a9.esm.js";import"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import{html as l}from"lit";import"lit/directives/unsafe-html.js";import"./nile-link.esm.js";import"tslib";import"lit/decorators.js";import"./nile-link.css.esm.js";import"../slot.esm.js";import"lit/directives/if-defined.js";import"lit/directives/class-map.js";import"../internal/nile-element.esm.js";describe("NileLink",(()=>{it("should render correctly",(async()=>{const e=await i(l`<nile-link></nile-link>`);t(e.shadowRoot).to.exist,t(e.shadowRoot.querySelector(".link")).to.exist})),it("should handle the disabled attribute",(async()=>{const e=await i(l`<nile-link disabled></nile-link>`),n=e.shadowRoot.querySelector(".link");t(e.disabled).to.be.true,t(n.getAttribute("aria-disabled")).to.equal("true"),t(n.getAttribute("tabindex")).to.equal("-1")})),it("should emit custom events on focus and blur",(async()=>{const n=await i(l`<nile-link></nile-link>`);setTimeout((()=>n.shadowRoot.querySelector(".link").focus()));const s=await e(n,"nile-focus");t(s).to.exist,setTimeout((()=>n.shadowRoot.querySelector(".link").blur()));const a=await e(n,"nile-blur");t(a).to.exist})),it("should prevent click events when disabled",(async()=>{const e=await i(l`<nile-link disabled></nile-link>`);let s=!1;e.addEventListener("click",(()=>{s=!0})),e.shadowRoot.querySelector(".link").click(),await n(100),t(s).to.be.false})),it("should handle button property correctly",(async()=>{const e=(await i(l`<nile-link button></nile-link>`)).shadowRoot.querySelector(".link");t(e.classList.contains("link__button")).to.be.true})),it("should have all slots rendered successfully",(async()=>{const e=await i(l`<nile-link><span slot="prefix">Prefix</span><span>Label</span><span slot="suffix">Suffix</span></nile-link>`),n=e.shadowRoot.querySelector('slot[name="prefix"]'),s=e.shadowRoot.querySelector("slot:not([name])"),a=e.shadowRoot.querySelector('slot[name="suffix"]');t(n.assignedNodes().length).to.equal(1),t(s.assignedNodes().length).to.equal(1),t(a.assignedNodes().length).to.equal(1)})),it("should emit nile-init and nile-destroy events on connected and disconnected",(async()=>{const i=document.createElement("nile-link");let e,n;i.addEventListener("nile-init",(i=>e=i)),i.addEventListener("nile-init",(i=>n=i)),document.body.appendChild(i),await i.updateComplete,t(e).to.exist,document.body.removeChild(i),await i.updateComplete,t(n).to.exist})),it("should reflect properties correctly",(async()=>{const e=await i(l`<nile-link></nile-link>`);e.disabled=!0,await e.updateComplete,t(e.hasAttribute("disabled")).to.be.true,e.disabled=!1,await e.updateComplete,t(e.hasAttribute("disabled")).to.be.false}))}));
1
+ import{f as i,a as t,o as e,b as n}from"../fixture-985bba12.esm.js";import"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import{html as l}from"lit";import"lit/directives/unsafe-html.js";import"./nile-link.esm.js";import"tslib";import"lit/decorators.js";import"./nile-link.css.esm.js";import"../slot.esm.js";import"lit/directives/if-defined.js";import"lit/directives/class-map.js";import"../internal/nile-element.esm.js";describe("NileLink",(()=>{it("should render correctly",(async()=>{const e=await i(l`<nile-link></nile-link>`);t(e.shadowRoot).to.exist,t(e.shadowRoot.querySelector(".link")).to.exist})),it("should handle the disabled attribute",(async()=>{const e=await i(l`<nile-link disabled></nile-link>`),n=e.shadowRoot.querySelector(".link");t(e.disabled).to.be.true,t(n.getAttribute("aria-disabled")).to.equal("true"),t(n.getAttribute("tabindex")).to.equal("-1")})),it("should emit custom events on focus and blur",(async()=>{const n=await i(l`<nile-link></nile-link>`);setTimeout((()=>n.shadowRoot.querySelector(".link").focus()));const s=await e(n,"nile-focus");t(s).to.exist,setTimeout((()=>n.shadowRoot.querySelector(".link").blur()));const a=await e(n,"nile-blur");t(a).to.exist})),it("should prevent click events when disabled",(async()=>{const e=await i(l`<nile-link disabled></nile-link>`);let s=!1;e.addEventListener("click",(()=>{s=!0})),e.shadowRoot.querySelector(".link").click(),await n(100),t(s).to.be.false})),it("should handle button property correctly",(async()=>{const e=(await i(l`<nile-link button></nile-link>`)).shadowRoot.querySelector(".link");t(e.classList.contains("link__button")).to.be.true})),it("should have all slots rendered successfully",(async()=>{const e=await i(l`<nile-link><span slot="prefix">Prefix</span><span>Label</span><span slot="suffix">Suffix</span></nile-link>`),n=e.shadowRoot.querySelector('slot[name="prefix"]'),s=e.shadowRoot.querySelector("slot:not([name])"),a=e.shadowRoot.querySelector('slot[name="suffix"]');t(n.assignedNodes().length).to.equal(1),t(s.assignedNodes().length).to.equal(1),t(a.assignedNodes().length).to.equal(1)})),it("should emit nile-init and nile-destroy events on connected and disconnected",(async()=>{const i=document.createElement("nile-link");let e,n;i.addEventListener("nile-init",(i=>e=i)),i.addEventListener("nile-init",(i=>n=i)),document.body.appendChild(i),await i.updateComplete,t(e).to.exist,document.body.removeChild(i),await i.updateComplete,t(n).to.exist})),it("should reflect properties correctly",(async()=>{const e=await i(l`<nile-link></nile-link>`);e.disabled=!0,await e.updateComplete,t(e.hasAttribute("disabled")).to.be.true,e.disabled=!1,await e.updateComplete,t(e.hasAttribute("disabled")).to.be.false}))}));
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-54600b35.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-loader.cjs.js","tslib","lit/decorators.js","./nile-loader.css.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var i,a,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture005CjsJs){i=_fixture005CjsJs.f;a=_fixture005CjsJs.a;},function(_litStaticHtmlJs){},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){e=_lit.html;},function(_litDirectivesUnsafeHtmlJs){},function(_nileLoaderCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileLoaderCssCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){describe("NileLoader",function(){it('should default to size "lg" if no size is provided',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(e(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context2.sent;a(l.size).to.equal("lg");case 4:case"end":return _context2.stop();}},_callee);}))),it("should apply size classes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return["sm","md","lg"].forEach(/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(l){var r;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-loader size=\"","\"></nile-loader>"])),l));case 2:r=_context3.sent.shadowRoot.querySelector(".loader__container");a(r.classList.contains("loader__container--".concat(l))).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}));return function(_x){return _ref3.apply(this,arguments);};}());case 2:case"end":return _context4.stop();}},_callee3);}))),it('should have a default variant of "v1"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var l;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context5.sent.shadowRoot.querySelector(".nile-loader__v1");a(l).to.exist;case 4:case"end":return _context5.stop();}},_callee4);}))),it("should render the correct variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var l;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-loader variant=\"v2\"></nile-loader>"]))));case 2:l=_context6.sent.shadowRoot.querySelector(".nile-loader__v2");a(l).to.exist;case 4:case"end":return _context6.stop();}},_callee5);}))),it("should display label if provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var l;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-loader label=\"Loading...\"></nile-loader>"]))));case 2:l=_context7.sent.shadowRoot.querySelector(".loader__label");a(l).to.exist,a(l===null||l===void 0?void 0:l.textContent).to.equal("Loading...");case 4:case"end":return _context7.stop();}},_callee6);}))),it("should handle margin property",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var l;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return i(e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-loader margin=\"10px\"></nile-loader>"]))));case 2:l=_context8.sent.shadowRoot.querySelector(".nile-loader__v1");a(l===null||l===void 0?void 0:l.getAttribute("style")).to.contain("margin: 10px");case 4:case"end":return _context8.stop();}},_callee7);}))),it("should render the v3 variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var l;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-loader variant=\"v3\"></nile-loader>"]))));case 2:l=_context9.sent.shadowRoot.querySelector(".nile-loader__v3");a(l).to.exist;case 4:case"end":return _context9.stop();}},_callee8);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-1c49c014.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-loader.cjs.js","tslib","lit/decorators.js","./nile-loader.css.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var i,a,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture005CjsJs){i=_fixture005CjsJs.f;a=_fixture005CjsJs.a;},function(_litStaticHtmlJs){},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){e=_lit.html;},function(_litDirectivesUnsafeHtmlJs){},function(_nileLoaderCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileLoaderCssCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){describe("NileLoader",function(){it('should default to size "lg" if no size is provided',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(e(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context2.sent;a(l.size).to.equal("lg");case 4:case"end":return _context2.stop();}},_callee);}))),it("should apply size classes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return["sm","md","lg"].forEach(/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(l){var r;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-loader size=\"","\"></nile-loader>"])),l));case 2:r=_context3.sent.shadowRoot.querySelector(".loader__container");a(r.classList.contains("loader__container--".concat(l))).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}));return function(_x){return _ref3.apply(this,arguments);};}());case 2:case"end":return _context4.stop();}},_callee3);}))),it('should have a default variant of "v1"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var l;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context5.sent.shadowRoot.querySelector(".nile-loader__v1");a(l).to.exist;case 4:case"end":return _context5.stop();}},_callee4);}))),it("should render the correct variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var l;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-loader variant=\"v2\"></nile-loader>"]))));case 2:l=_context6.sent.shadowRoot.querySelector(".nile-loader__v2");a(l).to.exist;case 4:case"end":return _context6.stop();}},_callee5);}))),it("should display label if provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var l;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-loader label=\"Loading...\"></nile-loader>"]))));case 2:l=_context7.sent.shadowRoot.querySelector(".loader__label");a(l).to.exist,a(l===null||l===void 0?void 0:l.textContent).to.equal("Loading...");case 4:case"end":return _context7.stop();}},_callee6);}))),it("should handle margin property",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var l;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return i(e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-loader margin=\"10px\"></nile-loader>"]))));case 2:l=_context8.sent.shadowRoot.querySelector(".nile-loader__v1");a(l===null||l===void 0?void 0:l.getAttribute("style")).to.contain("margin: 10px");case 4:case"end":return _context8.stop();}},_callee7);}))),it("should render the v3 variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var l;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-loader variant=\"v3\"></nile-loader>"]))));case 2:l=_context9.sent.shadowRoot.querySelector(".nile-loader__v3");a(l).to.exist;case 4:case"end":return _context9.stop();}},_callee8);})));});}};});
2
2
  //# sourceMappingURL=nile-loader.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as e,a as i}from"../fixture-9871e8a9.esm.js";import"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import{html as a}from"lit";import"lit/directives/unsafe-html.js";import"./nile-loader.esm.js";import"tslib";import"lit/decorators.js";import"./nile-loader.css.esm.js";import"lit/directives/class-map.js";describe("NileLoader",(()=>{it('should default to size "lg" if no size is provided',(async()=>{const l=await e(a`<nile-loader></nile-loader>`);i(l.size).to.equal("lg")})),it("should apply size classes correctly",(async()=>{await["sm","md","lg"].forEach((async l=>{const r=(await e(a`<nile-loader size="${l}"></nile-loader>`)).shadowRoot.querySelector(".loader__container");i(r.classList.contains(`loader__container--${l}`)).to.be.true}))})),it('should have a default variant of "v1"',(async()=>{const l=(await e(a`<nile-loader></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v1");i(l).to.exist})),it("should render the correct variant",(async()=>{const l=(await e(a`<nile-loader variant="v2"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v2");i(l).to.exist})),it("should display label if provided",(async()=>{const l=(await e(a`<nile-loader label="Loading..."></nile-loader>`)).shadowRoot.querySelector(".loader__label");i(l).to.exist,i(l?.textContent).to.equal("Loading...")})),it("should handle margin property",(async()=>{const l=(await e(a`<nile-loader margin="10px"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v1");i(l?.getAttribute("style")).to.contain("margin: 10px")})),it("should render the v3 variant",(async()=>{const l=(await e(a`<nile-loader variant="v3"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v3");i(l).to.exist}))}));
1
+ import{f as e,a as i}from"../fixture-985bba12.esm.js";import"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import{html as a}from"lit";import"lit/directives/unsafe-html.js";import"./nile-loader.esm.js";import"tslib";import"lit/decorators.js";import"./nile-loader.css.esm.js";import"lit/directives/class-map.js";describe("NileLoader",(()=>{it('should default to size "lg" if no size is provided',(async()=>{const l=await e(a`<nile-loader></nile-loader>`);i(l.size).to.equal("lg")})),it("should apply size classes correctly",(async()=>{await["sm","md","lg"].forEach((async l=>{const r=(await e(a`<nile-loader size="${l}"></nile-loader>`)).shadowRoot.querySelector(".loader__container");i(r.classList.contains(`loader__container--${l}`)).to.be.true}))})),it('should have a default variant of "v1"',(async()=>{const l=(await e(a`<nile-loader></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v1");i(l).to.exist})),it("should render the correct variant",(async()=>{const l=(await e(a`<nile-loader variant="v2"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v2");i(l).to.exist})),it("should display label if provided",(async()=>{const l=(await e(a`<nile-loader label="Loading..."></nile-loader>`)).shadowRoot.querySelector(".loader__label");i(l).to.exist,i(l?.textContent).to.equal("Loading...")})),it("should handle margin property",(async()=>{const l=(await e(a`<nile-loader margin="10px"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v1");i(l?.getAttribute("style")).to.contain("margin: 10px")})),it("should render the v3 variant",(async()=>{const l=(await e(a`<nile-loader variant="v3"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v3");i(l).to.exist}))}));
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-54600b35.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-popover.cjs.js","tslib","../css-tag-bb10c0fa.cjs.js","../lit-html-9b3af046.cjs.js","lit/decorators.js","./nile-popover.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js","./portal-manager.cjs.js","../floating-ui.dom-007bbe96.cjs.js","./portal-utils.cjs.js","../utilities/visibility-manager.cjs.js"],function(_export,_context){"use strict";var t,o,i,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture005CjsJs){t=_fixture005CjsJs.f;o=_fixture005CjsJs.a;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nilePopoverCjsJs){},function(_tslib){},function(_cssTag004CjsJs){},function(_litHtml003CjsJs){},function(_litDecoratorsJs){},function(_nilePopoverCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalWatchCjsJs){},function(_portalManagerCjsJs){},function(_floatingUiDom001CjsJs){},function(_portalUtilsCjsJs){},function(_utilitiesVisibilityManagerCjsJs){}],execute:function execute(){describe("NilePopover",function(){it("renders correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var e;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:e=_context2.sent;o(e).shadowDom.to.equalSnapshot();case 4:case"end":return _context2.stop();}},_callee);}))),it("has default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-popover></nile-popover>"]))));case 2:e=_context3.sent;o(e.placement).to.equal("top"),o(e.distance).to.equal(18),o(e.title).to.equal(""),o(e.arrowPlacement).to.equal("anchor"),o(e.hoist).to.be["false"],o(e.flip).to.be["false"];case 4:case"end":return _context3.stop();}},_callee2);}))),it("displays title when popover is shown",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var e,s,r;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return t(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:e=_context4.sent;e.querySelector("button").click();_context4.next=6;return e.updateComplete;case 6:s=e.shadowRoot.querySelector(".popover__box");o(s).to.exist;r=e.shadowRoot.querySelector('slot[name="title"]');o(r).to.exist,o(r.textContent).to.equal("Test Popover");case 10:case"end":return _context4.stop();}},_callee3);}))),it("toggles isShow state on anchor click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var e,s,r,p;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return t(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:e=_context5.sent;s=e.querySelector("button");s.click();_context5.next=7;return e.updateComplete;case 7:r=e.shadowRoot.querySelector('div[part="popover"]');o(r).to.exist;s.click();_context5.next=12;return e.updateComplete;case 12:p=e.shadowRoot.querySelector('div[part="popover"]');o(p).to["null"];case 14:case"end":return _context5.stop();}},_callee4);}))),it("hides popover on document click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e,s;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return t(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:e=_context6.sent;e.querySelector("button").click();_context6.next=6;return e.updateComplete;case 6:s=e.shadowRoot.querySelector(".popover__box");o(s).to.exist;document.body.click();_context6.next=11;return e.updateComplete;case 11:s=e.shadowRoot.querySelector(".popover__box");o(s).to.not.exist;case 13:case"end":return _context6.stop();}},_callee5);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-1c49c014.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-popover.cjs.js","tslib","../css-tag-bb10c0fa.cjs.js","../lit-html-9b3af046.cjs.js","lit/decorators.js","./nile-popover.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js","./portal-manager.cjs.js","../floating-ui.dom-007bbe96.cjs.js","./portal-utils.cjs.js","../utilities/visibility-manager.cjs.js"],function(_export,_context){"use strict";var t,o,i,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture005CjsJs){t=_fixture005CjsJs.f;o=_fixture005CjsJs.a;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nilePopoverCjsJs){},function(_tslib){},function(_cssTag004CjsJs){},function(_litHtml003CjsJs){},function(_litDecoratorsJs){},function(_nilePopoverCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalWatchCjsJs){},function(_portalManagerCjsJs){},function(_floatingUiDom001CjsJs){},function(_portalUtilsCjsJs){},function(_utilitiesVisibilityManagerCjsJs){}],execute:function execute(){describe("NilePopover",function(){it("renders correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var e;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:e=_context2.sent;o(e).shadowDom.to.equalSnapshot();case 4:case"end":return _context2.stop();}},_callee);}))),it("has default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-popover></nile-popover>"]))));case 2:e=_context3.sent;o(e.placement).to.equal("top"),o(e.distance).to.equal(18),o(e.title).to.equal(""),o(e.arrowPlacement).to.equal("anchor"),o(e.hoist).to.be["false"],o(e.flip).to.be["false"];case 4:case"end":return _context3.stop();}},_callee2);}))),it("displays title when popover is shown",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var e,s,r;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return t(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:e=_context4.sent;e.querySelector("button").click();_context4.next=6;return e.updateComplete;case 6:s=e.shadowRoot.querySelector(".popover__box");o(s).to.exist;r=e.shadowRoot.querySelector('slot[name="title"]');o(r).to.exist,o(r.textContent).to.equal("Test Popover");case 10:case"end":return _context4.stop();}},_callee3);}))),it("toggles isShow state on anchor click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var e,s,r,p;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return t(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:e=_context5.sent;s=e.querySelector("button");s.click();_context5.next=7;return e.updateComplete;case 7:r=e.shadowRoot.querySelector('div[part="popover"]');o(r).to.exist;s.click();_context5.next=12;return e.updateComplete;case 12:p=e.shadowRoot.querySelector('div[part="popover"]');o(p).to["null"];case 14:case"end":return _context5.stop();}},_callee4);}))),it("hides popover on document click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e,s;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return t(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-popover title=\"Test Popover\">\n <button slot=\"anchor\">Click me</button>\n <div>Popover Content</div>\n </nile-popover>\n "]))));case 2:e=_context6.sent;e.querySelector("button").click();_context6.next=6;return e.updateComplete;case 6:s=e.shadowRoot.querySelector(".popover__box");o(s).to.exist;document.body.click();_context6.next=11;return e.updateComplete;case 11:s=e.shadowRoot.querySelector(".popover__box");o(s).to.not.exist;case 13:case"end":return _context6.stop();}},_callee5);})));});}};});
2
2
  //# sourceMappingURL=nile-popover.test.cjs.js.map
@@ -1,4 +1,4 @@
1
- import{f as t,a as o}from"../fixture-9871e8a9.esm.js";import{html as e}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-popover.esm.js";import"tslib";import"../css-tag-dc564feb.esm.js";import"../lit-html-39a6718c.esm.js";import"lit/decorators.js";import"./nile-popover.css.esm.js";import"../internal/nile-element.esm.js";import"../internal/watch.esm.js";import"./portal-manager.esm.js";import"../floating-ui.dom-cc9126da.esm.js";import"./portal-utils.esm.js";import"../utilities/visibility-manager.esm.js";describe("NilePopover",(()=>{it("renders correctly",(async()=>{const i=await t(e`
1
+ import{f as t,a as o}from"../fixture-985bba12.esm.js";import{html as e}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-popover.esm.js";import"tslib";import"../css-tag-dc564feb.esm.js";import"../lit-html-39a6718c.esm.js";import"lit/decorators.js";import"./nile-popover.css.esm.js";import"../internal/nile-element.esm.js";import"../internal/watch.esm.js";import"./portal-manager.esm.js";import"../floating-ui.dom-cc9126da.esm.js";import"./portal-utils.esm.js";import"../utilities/visibility-manager.esm.js";describe("NilePopover",(()=>{it("renders correctly",(async()=>{const i=await t(e`
2
2
  <nile-popover title="Test Popover">
3
3
  <button slot="anchor">Click me</button>
4
4
  <div>Popover Content</div>
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-54600b35.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-popup.cjs.js","tslib","../floating-ui.dom-007bbe96.cjs.js","lit/directives/class-map.js","lit/decorators.js","../internal/nile-element.cjs.js","./nile-popup.css.cjs.js"],function(_export,_context){"use strict";var p,t,o,i,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture005CjsJs){p=_fixture005CjsJs.f;t=_fixture005CjsJs.a;o=_fixture005CjsJs.e;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nilePopupCjsJs){e=_nilePopupCjsJs.N;},function(_tslib){},function(_floatingUiDom001CjsJs){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){},function(_nilePopupCssCjsJs){}],execute:function execute(){describe("NilePopup",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return p(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context2.sent;t(o).to.be.instanceOf(e),t(o.shadowRoot).not.to.be["null"];case 4:case"end":return _context2.stop();}},_callee);}))),it("should be inactive by default",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return p(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context3.sent;t(o.active).to.be["false"];e=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".popup");t(e===null||e===void 0?void 0:e.classList.contains("popup--active")).to.be["false"];case 6:case"end":return _context3.stop();}},_callee2);}))),it("should show popup when active is set to true",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _e$shadowRoot;var e,s;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return p(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:e=_context4.sent;e.active=!0;_context4.next=6;return o(e);case 6:s=(_e$shadowRoot=e.shadowRoot)===null||_e$shadowRoot===void 0?void 0:_e$shadowRoot.querySelector(".popup");t(e.active).to.be["true"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["true"];case 8:case"end":return _context4.stop();}},_callee3);}))),it("should hide popup when active is set to false",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _e$shadowRoot2;var e,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return p(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-popup active></nile-popup>"]))));case 2:e=_context5.sent;e.active=!1;_context5.next=6;return o(e);case 6:s=(_e$shadowRoot2=e.shadowRoot)===null||_e$shadowRoot2===void 0?void 0:_e$shadowRoot2.querySelector(".popup");t(e.active).to.be["false"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["false"];case 8:case"end":return _context5.stop();}},_callee4);}))),it('should set correct placement class based on "placement" property',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return p(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-popup placement=\"bottom\"></nile-popup>"]))));case 2:e=_context6.sent;e.active=!0;_context6.next=6;return o(e);case 6:t(e.placement).to.equal("bottom");t(e.getAttribute("placement")).to.equal("bottom");case 8:case"end":return _context6.stop();}},_callee5);}))),it("should position correctly when anchor is provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _s$shadowRoot;var e,s,a,n;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:e=document.createElement("div");e.id="anchorEl",document.body.appendChild(e);_context7.next=4;return p(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-popup anchor=\"anchorEl\" active></nile-popup>"]))));case 4:s=_context7.sent;_context7.next=7;return o(s);case 7:a=(_s$shadowRoot=s.shadowRoot)===null||_s$shadowRoot===void 0?void 0:_s$shadowRoot.querySelector(".popup");t(a===null||a===void 0?void 0:a.classList.contains("popup--active")).to.be["true"];n=document.getElementById("anchorEl");t(n).to.exist,document.body.removeChild(e);case 11:case"end":return _context7.stop();}},_callee6);}))),it('should display an arrow when the "arrow" property is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _e$shadowRoot3;var e,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return p(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-popup arrow></nile-popup>"]))));case 2:e=_context8.sent;e.active=!0;_context8.next=6;return o(e);case 6:s=(_e$shadowRoot3=e.shadowRoot)===null||_e$shadowRoot3===void 0?void 0:_e$shadowRoot3.querySelector(".popup__arrow");t(s).to.exist;case 8:case"end":return _context8.stop();}},_callee7);}))),it('should apply correct strategy when "strategy" is set',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _e$shadowRoot4;var e,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return p(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-popup strategy=\"fixed\"></nile-popup>"]))));case 2:e=_context9.sent;e.active=!0;_context9.next=6;return o(e);case 6:s=(_e$shadowRoot4=e.shadowRoot)===null||_e$shadowRoot4===void 0?void 0:_e$shadowRoot4.querySelector(".popup");t(s===null||s===void 0?void 0:s.classList.contains("popup--fixed")).to.be["true"];case 8:case"end":return _context9.stop();}},_callee8);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-1c49c014.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-popup.cjs.js","tslib","../floating-ui.dom-007bbe96.cjs.js","lit/directives/class-map.js","lit/decorators.js","../internal/nile-element.cjs.js","./nile-popup.css.cjs.js"],function(_export,_context){"use strict";var p,t,o,i,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture005CjsJs){p=_fixture005CjsJs.f;t=_fixture005CjsJs.a;o=_fixture005CjsJs.e;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nilePopupCjsJs){e=_nilePopupCjsJs.N;},function(_tslib){},function(_floatingUiDom001CjsJs){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){},function(_nilePopupCssCjsJs){}],execute:function execute(){describe("NilePopup",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return p(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context2.sent;t(o).to.be.instanceOf(e),t(o.shadowRoot).not.to.be["null"];case 4:case"end":return _context2.stop();}},_callee);}))),it("should be inactive by default",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return p(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context3.sent;t(o.active).to.be["false"];e=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".popup");t(e===null||e===void 0?void 0:e.classList.contains("popup--active")).to.be["false"];case 6:case"end":return _context3.stop();}},_callee2);}))),it("should show popup when active is set to true",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _e$shadowRoot;var e,s;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return p(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:e=_context4.sent;e.active=!0;_context4.next=6;return o(e);case 6:s=(_e$shadowRoot=e.shadowRoot)===null||_e$shadowRoot===void 0?void 0:_e$shadowRoot.querySelector(".popup");t(e.active).to.be["true"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["true"];case 8:case"end":return _context4.stop();}},_callee3);}))),it("should hide popup when active is set to false",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _e$shadowRoot2;var e,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return p(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-popup active></nile-popup>"]))));case 2:e=_context5.sent;e.active=!1;_context5.next=6;return o(e);case 6:s=(_e$shadowRoot2=e.shadowRoot)===null||_e$shadowRoot2===void 0?void 0:_e$shadowRoot2.querySelector(".popup");t(e.active).to.be["false"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["false"];case 8:case"end":return _context5.stop();}},_callee4);}))),it('should set correct placement class based on "placement" property',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return p(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-popup placement=\"bottom\"></nile-popup>"]))));case 2:e=_context6.sent;e.active=!0;_context6.next=6;return o(e);case 6:t(e.placement).to.equal("bottom");t(e.getAttribute("placement")).to.equal("bottom");case 8:case"end":return _context6.stop();}},_callee5);}))),it("should position correctly when anchor is provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _s$shadowRoot;var e,s,a,n;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:e=document.createElement("div");e.id="anchorEl",document.body.appendChild(e);_context7.next=4;return p(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-popup anchor=\"anchorEl\" active></nile-popup>"]))));case 4:s=_context7.sent;_context7.next=7;return o(s);case 7:a=(_s$shadowRoot=s.shadowRoot)===null||_s$shadowRoot===void 0?void 0:_s$shadowRoot.querySelector(".popup");t(a===null||a===void 0?void 0:a.classList.contains("popup--active")).to.be["true"];n=document.getElementById("anchorEl");t(n).to.exist,document.body.removeChild(e);case 11:case"end":return _context7.stop();}},_callee6);}))),it('should display an arrow when the "arrow" property is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _e$shadowRoot3;var e,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return p(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-popup arrow></nile-popup>"]))));case 2:e=_context8.sent;e.active=!0;_context8.next=6;return o(e);case 6:s=(_e$shadowRoot3=e.shadowRoot)===null||_e$shadowRoot3===void 0?void 0:_e$shadowRoot3.querySelector(".popup__arrow");t(s).to.exist;case 8:case"end":return _context8.stop();}},_callee7);}))),it('should apply correct strategy when "strategy" is set',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _e$shadowRoot4;var e,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return p(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-popup strategy=\"fixed\"></nile-popup>"]))));case 2:e=_context9.sent;e.active=!0;_context9.next=6;return o(e);case 6:s=(_e$shadowRoot4=e.shadowRoot)===null||_e$shadowRoot4===void 0?void 0:_e$shadowRoot4.querySelector(".popup");t(s===null||s===void 0?void 0:s.classList.contains("popup--fixed")).to.be["true"];case 8:case"end":return _context9.stop();}},_callee8);})));});}};});
2
2
  //# sourceMappingURL=nile-popup.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as p,a as t,e as o}from"../fixture-9871e8a9.esm.js";import{html as i}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import{N as e}from"./nile-popup.esm.js";import"tslib";import"../floating-ui.dom-cc9126da.esm.js";import"lit/directives/class-map.js";import"lit/decorators.js";import"../internal/nile-element.esm.js";import"./nile-popup.css.esm.js";describe("NilePopup",(()=>{it("should render correctly",(async()=>{const o=await p(i`<nile-popup></nile-popup>`);t(o).to.be.instanceOf(e),t(o.shadowRoot).not.to.be.null})),it("should be inactive by default",(async()=>{const o=await p(i`<nile-popup></nile-popup>`);t(o.active).to.be.false;const e=o.shadowRoot?.querySelector(".popup");t(e?.classList.contains("popup--active")).to.be.false})),it("should show popup when active is set to true",(async()=>{const e=await p(i`<nile-popup></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(e.active).to.be.true,t(s?.classList.contains("popup--active")).to.be.true})),it("should hide popup when active is set to false",(async()=>{const e=await p(i`<nile-popup active></nile-popup>`);e.active=!1,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(e.active).to.be.false,t(s?.classList.contains("popup--active")).to.be.false})),it('should set correct placement class based on "placement" property',(async()=>{const e=await p(i`<nile-popup placement="bottom"></nile-popup>`);e.active=!0,await o(e),t(e.placement).to.equal("bottom"),t(e.getAttribute("placement")).to.equal("bottom")})),it("should position correctly when anchor is provided",(async()=>{const e=document.createElement("div");e.id="anchorEl",document.body.appendChild(e);const s=await p(i`<nile-popup anchor="anchorEl" active></nile-popup>`);await o(s);const a=s.shadowRoot?.querySelector(".popup");t(a?.classList.contains("popup--active")).to.be.true;const n=document.getElementById("anchorEl");t(n).to.exist,document.body.removeChild(e)})),it('should display an arrow when the "arrow" property is true',(async()=>{const e=await p(i`<nile-popup arrow></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup__arrow");t(s).to.exist})),it('should apply correct strategy when "strategy" is set',(async()=>{const e=await p(i`<nile-popup strategy="fixed"></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(s?.classList.contains("popup--fixed")).to.be.true}))}));
1
+ import{f as p,a as t,e as o}from"../fixture-985bba12.esm.js";import{html as i}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import{N as e}from"./nile-popup.esm.js";import"tslib";import"../floating-ui.dom-cc9126da.esm.js";import"lit/directives/class-map.js";import"lit/decorators.js";import"../internal/nile-element.esm.js";import"./nile-popup.css.esm.js";describe("NilePopup",(()=>{it("should render correctly",(async()=>{const o=await p(i`<nile-popup></nile-popup>`);t(o).to.be.instanceOf(e),t(o.shadowRoot).not.to.be.null})),it("should be inactive by default",(async()=>{const o=await p(i`<nile-popup></nile-popup>`);t(o.active).to.be.false;const e=o.shadowRoot?.querySelector(".popup");t(e?.classList.contains("popup--active")).to.be.false})),it("should show popup when active is set to true",(async()=>{const e=await p(i`<nile-popup></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(e.active).to.be.true,t(s?.classList.contains("popup--active")).to.be.true})),it("should hide popup when active is set to false",(async()=>{const e=await p(i`<nile-popup active></nile-popup>`);e.active=!1,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(e.active).to.be.false,t(s?.classList.contains("popup--active")).to.be.false})),it('should set correct placement class based on "placement" property',(async()=>{const e=await p(i`<nile-popup placement="bottom"></nile-popup>`);e.active=!0,await o(e),t(e.placement).to.equal("bottom"),t(e.getAttribute("placement")).to.equal("bottom")})),it("should position correctly when anchor is provided",(async()=>{const e=document.createElement("div");e.id="anchorEl",document.body.appendChild(e);const s=await p(i`<nile-popup anchor="anchorEl" active></nile-popup>`);await o(s);const a=s.shadowRoot?.querySelector(".popup");t(a?.classList.contains("popup--active")).to.be.true;const n=document.getElementById("anchorEl");t(n).to.exist,document.body.removeChild(e)})),it('should display an arrow when the "arrow" property is true',(async()=>{const e=await p(i`<nile-popup arrow></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup__arrow");t(s).to.exist})),it('should apply correct strategy when "strategy" is set',(async()=>{const e=await p(i`<nile-popup strategy="fixed"></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(s?.classList.contains("popup--fixed")).to.be.true}))}));