frontile 0.18.10 → 0.18.12

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 (228) hide show
  1. package/declarations/components/buttons/button-group.d.ts +1 -1
  2. package/declarations/components/buttons/button-group.d.ts.map +1 -1
  3. package/declarations/components/buttons/button.d.ts +4 -2
  4. package/declarations/components/buttons/button.d.ts.map +1 -1
  5. package/declarations/components/buttons/chip.d.ts +4 -3
  6. package/declarations/components/buttons/chip.d.ts.map +1 -1
  7. package/declarations/components/buttons/icon-button.d.ts +50 -0
  8. package/declarations/components/buttons/icon-button.d.ts.map +1 -0
  9. package/declarations/components/buttons/index.d.ts +1 -0
  10. package/declarations/components/buttons/index.d.ts.map +1 -1
  11. package/declarations/components/buttons/segmented-control/segmented-control.d.ts +21 -23
  12. package/declarations/components/buttons/segmented-control/segmented-control.d.ts.map +1 -1
  13. package/declarations/components/buttons/toggle-button.d.ts +1 -1
  14. package/declarations/components/buttons/toggle-button.d.ts.map +1 -1
  15. package/declarations/components/collections/calendar/calendar.d.ts +168 -103
  16. package/declarations/components/collections/calendar/calendar.d.ts.map +1 -1
  17. package/declarations/components/collections/command/input.d.ts +70 -46
  18. package/declarations/components/collections/command/input.d.ts.map +1 -1
  19. package/declarations/components/collections/command/list.d.ts +70 -33
  20. package/declarations/components/collections/command/list.d.ts.map +1 -1
  21. package/declarations/components/collections/simple-table/body.d.ts +137 -72
  22. package/declarations/components/collections/simple-table/body.d.ts.map +1 -1
  23. package/declarations/components/collections/simple-table/cell.d.ts +137 -72
  24. package/declarations/components/collections/simple-table/cell.d.ts.map +1 -1
  25. package/declarations/components/collections/simple-table/column.d.ts +137 -72
  26. package/declarations/components/collections/simple-table/column.d.ts.map +1 -1
  27. package/declarations/components/collections/simple-table/footer.d.ts +137 -72
  28. package/declarations/components/collections/simple-table/footer.d.ts.map +1 -1
  29. package/declarations/components/collections/simple-table/header.d.ts +137 -72
  30. package/declarations/components/collections/simple-table/header.d.ts.map +1 -1
  31. package/declarations/components/collections/simple-table/index.d.ts +137 -72
  32. package/declarations/components/collections/simple-table/index.d.ts.map +1 -1
  33. package/declarations/components/collections/simple-table/row.d.ts +137 -72
  34. package/declarations/components/collections/simple-table/row.d.ts.map +1 -1
  35. package/declarations/components/collections/table/checkbox.d.ts +30 -14
  36. package/declarations/components/collections/table/checkbox.d.ts.map +1 -1
  37. package/declarations/components/collections/table/column-visibility.d.ts +137 -72
  38. package/declarations/components/collections/table/column-visibility.d.ts.map +1 -1
  39. package/declarations/components/collections/table/sort-button.d.ts +137 -72
  40. package/declarations/components/collections/table/sort-button.d.ts.map +1 -1
  41. package/declarations/components/collections/table/table.d.ts +137 -72
  42. package/declarations/components/collections/table/table.d.ts.map +1 -1
  43. package/declarations/components/disclosure/accordion/accordion.d.ts +77 -51
  44. package/declarations/components/disclosure/accordion/accordion.d.ts.map +1 -1
  45. package/declarations/components/forms/autocomplete.d.ts +112 -28
  46. package/declarations/components/forms/autocomplete.d.ts.map +1 -1
  47. package/declarations/components/forms/checkbox-group.d.ts +21 -15
  48. package/declarations/components/forms/checkbox-group.d.ts.map +1 -1
  49. package/declarations/components/forms/checkbox.d.ts +30 -14
  50. package/declarations/components/forms/checkbox.d.ts.map +1 -1
  51. package/declarations/components/forms/date-picker/date-picker.d.ts +307 -56
  52. package/declarations/components/forms/date-picker/date-picker.d.ts.map +1 -1
  53. package/declarations/components/forms/input-otp.d.ts +56 -40
  54. package/declarations/components/forms/input-otp.d.ts.map +1 -1
  55. package/declarations/components/forms/input.d.ts +35 -30
  56. package/declarations/components/forms/input.d.ts.map +1 -1
  57. package/declarations/components/forms/label.d.ts +14 -13
  58. package/declarations/components/forms/label.d.ts.map +1 -1
  59. package/declarations/components/forms/native-select.d.ts +66 -18
  60. package/declarations/components/forms/native-select.d.ts.map +1 -1
  61. package/declarations/components/forms/radio-group.d.ts +21 -15
  62. package/declarations/components/forms/radio-group.d.ts.map +1 -1
  63. package/declarations/components/forms/radio.d.ts +30 -14
  64. package/declarations/components/forms/radio.d.ts.map +1 -1
  65. package/declarations/components/forms/select/select.d.ts +186 -36
  66. package/declarations/components/forms/select/select.d.ts.map +1 -1
  67. package/declarations/components/forms/select/types.d.ts +1 -1
  68. package/declarations/components/forms/switch.d.ts +56 -39
  69. package/declarations/components/forms/switch.d.ts.map +1 -1
  70. package/declarations/components/forms/textarea.d.ts +53 -16
  71. package/declarations/components/forms/textarea.d.ts.map +1 -1
  72. package/declarations/components/layout/app-layout.d.ts +168 -118
  73. package/declarations/components/layout/app-layout.d.ts.map +1 -1
  74. package/declarations/components/layout/aside.d.ts +168 -118
  75. package/declarations/components/layout/aside.d.ts.map +1 -1
  76. package/declarations/components/layout/navbar.d.ts +168 -118
  77. package/declarations/components/layout/navbar.d.ts.map +1 -1
  78. package/declarations/components/layout/sidebar.d.ts +168 -118
  79. package/declarations/components/layout/sidebar.d.ts.map +1 -1
  80. package/declarations/components/navigation/breadcrumbs/breadcrumbs.d.ts +42 -31
  81. package/declarations/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  82. package/declarations/components/navigation/pagination/pagination.d.ts +56 -39
  83. package/declarations/components/navigation/pagination/pagination.d.ts.map +1 -1
  84. package/declarations/components/navigation/stepper/stepper.d.ts +294 -188
  85. package/declarations/components/navigation/stepper/stepper.d.ts.map +1 -1
  86. package/declarations/components/navigation/tab-nav/tab-nav.d.ts +35 -30
  87. package/declarations/components/navigation/tab-nav/tab-nav.d.ts.map +1 -1
  88. package/declarations/components/navigation/tabs/tabs.d.ts +35 -30
  89. package/declarations/components/navigation/tabs/tabs.d.ts.map +1 -1
  90. package/declarations/components/overlays/drawer.d.ts +91 -60
  91. package/declarations/components/overlays/drawer.d.ts.map +1 -1
  92. package/declarations/components/overlays/modal.d.ts +35 -26
  93. package/declarations/components/overlays/modal.d.ts.map +1 -1
  94. package/declarations/components/overlays/popover.d.ts +2 -0
  95. package/declarations/components/overlays/popover.d.ts.map +1 -1
  96. package/declarations/components/status/badge.d.ts +8 -3
  97. package/declarations/components/status/badge.d.ts.map +1 -1
  98. package/declarations/components/utilities/avatar.d.ts +21 -20
  99. package/declarations/components/utilities/avatar.d.ts.map +1 -1
  100. package/declarations/components/utilities/card.d.ts +94 -0
  101. package/declarations/components/utilities/card.d.ts.map +1 -0
  102. package/declarations/components/utilities/icon.d.ts +57 -0
  103. package/declarations/components/utilities/icon.d.ts.map +1 -0
  104. package/declarations/components/utilities/index.d.ts +2 -0
  105. package/declarations/components/utilities/index.d.ts.map +1 -1
  106. package/dist/buttons.js +1 -0
  107. package/dist/buttons.js.map +1 -1
  108. package/dist/components/buttons/button-group.js +1 -1
  109. package/dist/components/buttons/button.js +2 -2
  110. package/dist/components/buttons/button.js.map +1 -1
  111. package/dist/components/buttons/chip.js +1 -1
  112. package/dist/components/buttons/chip.js.map +1 -1
  113. package/dist/components/buttons/close-button.js +1 -1
  114. package/dist/components/buttons/icon-button.js +33 -0
  115. package/dist/components/buttons/icon-button.js.map +1 -0
  116. package/dist/components/buttons/index.js +1 -0
  117. package/dist/components/buttons/index.js.map +1 -1
  118. package/dist/components/buttons/segmented-control/segmented-control.js +1 -1
  119. package/dist/components/buttons/toggle-button.js +1 -1
  120. package/dist/components/collections/calendar/calendar.js +1 -1
  121. package/dist/components/collections/calendar/header.js +1 -1
  122. package/dist/components/collections/calendar/year-grid.js +1 -1
  123. package/dist/components/collections/command/command.js +1 -1
  124. package/dist/components/collections/command/list.js +1 -1
  125. package/dist/components/collections/dropdown/dropdown.js +2 -2
  126. package/dist/components/collections/dropdown/sub.js +1 -1
  127. package/dist/components/collections/listbox/item.js +2 -2
  128. package/dist/components/collections/listbox/listbox.js +2 -2
  129. package/dist/components/collections/table/column-visibility.js +1 -1
  130. package/dist/components/collections/table/sort-button.js +1 -1
  131. package/dist/components/collections/table/table.js +1 -1
  132. package/dist/components/disclosure/accordion/accordion.js +1 -1
  133. package/dist/components/disclosure/accordion/item.js +1 -1
  134. package/dist/components/forms/autocomplete.js +4 -4
  135. package/dist/components/forms/date-input/date-input.js +1 -1
  136. package/dist/components/forms/date-input/segment-group.js +1 -1
  137. package/dist/components/forms/date-picker/date-picker.js +2 -2
  138. package/dist/components/forms/date-picker/end-content.js +1 -1
  139. package/dist/components/forms/date-picker/time-columns.js +2 -2
  140. package/dist/components/forms/form-feedback.js +2 -2
  141. package/dist/components/forms/form.js +1 -1
  142. package/dist/components/forms/input-otp.js +1 -1
  143. package/dist/components/forms/input.js +1 -1
  144. package/dist/components/forms/native-select.js +2 -2
  145. package/dist/components/forms/select/end-content.js +1 -1
  146. package/dist/components/forms/select/select.js +4 -4
  147. package/dist/components/forms/select/select.js.map +1 -1
  148. package/dist/components/forms/switch.js +2 -2
  149. package/dist/components/layout/app-layout-state.js +1 -1
  150. package/dist/components/layout/app-layout.js +1 -1
  151. package/dist/components/layout/aside-toggle.js +1 -1
  152. package/dist/components/layout/aside.js +1 -1
  153. package/dist/components/layout/bottom-nav-more.js +2 -2
  154. package/dist/components/layout/bottom-nav.js +1 -1
  155. package/dist/components/layout/main.js +1 -1
  156. package/dist/components/layout/menu-toggle.js +1 -1
  157. package/dist/components/layout/nav-context.js +1 -1
  158. package/dist/components/layout/nav-folder.js +2 -2
  159. package/dist/components/layout/nav-item.js +1 -1
  160. package/dist/components/layout/nav-link.js +1 -1
  161. package/dist/components/layout/navbar.js +1 -1
  162. package/dist/components/layout/page-header.js +1 -1
  163. package/dist/components/layout/sidebar-group.js +1 -1
  164. package/dist/components/layout/sidebar-toggle.js +1 -1
  165. package/dist/components/layout/sidebar.js +1 -1
  166. package/dist/components/navigation/breadcrumbs/breadcrumbs.js +1 -1
  167. package/dist/components/navigation/breadcrumbs/item.js +1 -1
  168. package/dist/components/navigation/breadcrumbs/separator.js +1 -1
  169. package/dist/components/navigation/external-link.js +1 -1
  170. package/dist/components/navigation/pagination/pagination.js +2 -2
  171. package/dist/components/navigation/stepper/collapse-menu.js +1 -1
  172. package/dist/components/navigation/stepper/stepper.js +1 -1
  173. package/dist/components/navigation/tab-nav/item.js +1 -1
  174. package/dist/components/navigation/tab-nav/tab-nav.js +1 -1
  175. package/dist/components/navigation/tabs/tabs.js +1 -1
  176. package/dist/components/notifications/index.js +2 -2
  177. package/dist/components/notifications/notification-card.js +3 -3
  178. package/dist/components/notifications/notifications-container.js +2 -2
  179. package/dist/components/overlays/drawer.js +2 -2
  180. package/dist/components/overlays/modal.js +2 -2
  181. package/dist/components/overlays/overlay.js +1 -1
  182. package/dist/components/overlays/popover.js +44 -5
  183. package/dist/components/overlays/popover.js.map +1 -1
  184. package/dist/components/overlays/portal.js +1 -1
  185. package/dist/components/status/alert.js +1 -1
  186. package/dist/components/status/badge.js +4 -0
  187. package/dist/components/status/badge.js.map +1 -1
  188. package/dist/components/status/progress-bar.js +1 -1
  189. package/dist/components/utilities/avatar.js +1 -1
  190. package/dist/components/utilities/card.js +38 -0
  191. package/dist/components/utilities/card.js.map +1 -0
  192. package/dist/components/utilities/icon.js +33 -0
  193. package/dist/components/utilities/icon.js.map +1 -0
  194. package/dist/components/utilities/index.js +2 -0
  195. package/dist/components/utilities/index.js.map +1 -1
  196. package/dist/components/utilities/kbd.js +1 -1
  197. package/dist/components/utilities/spinner.js +1 -1
  198. package/dist/{control-blur-C8OnSQR5.js → control-blur-ByDW39Z2.js} +1 -1
  199. package/dist/{control-blur-C8OnSQR5.js.map → control-blur-ByDW39Z2.js.map} +1 -1
  200. package/dist/{deprecated-args-BIUjLA8y.js → deprecated-args-D6KS2fwp.js} +1 -1
  201. package/dist/{deprecated-args-BIUjLA8y.js.map → deprecated-args-D6KS2fwp.js.map} +1 -1
  202. package/dist/{dialog-CreV7aPQ.js → dialog-C5sLU1yl.js} +1 -1
  203. package/dist/{dialog-CreV7aPQ.js.map → dialog-C5sLU1yl.js.map} +1 -1
  204. package/dist/{dom-cKWVvtkd.js → dom-CbIZhRH4.js} +1 -1
  205. package/dist/{dom-cKWVvtkd.js.map → dom-CbIZhRH4.js.map} +1 -1
  206. package/dist/{icons-55dthVFk.js → icons-DqlDWFrr.js} +1 -1
  207. package/dist/{icons-55dthVFk.js.map → icons-DqlDWFrr.js.map} +1 -1
  208. package/dist/index.js +5 -2
  209. package/dist/index.js.map +1 -1
  210. package/dist/{manager-Dge4r8Vn.js → manager-DFO_x6Jr.js} +2 -2
  211. package/dist/{manager-Dge4r8Vn.js.map → manager-DFO_x6Jr.js.map} +1 -1
  212. package/dist/{notification-card-BPfDo-Gf.js → notification-card-C4mlc9Ac.js} +3 -3
  213. package/dist/{notification-card-BPfDo-Gf.js.map → notification-card-C4mlc9Ac.js.map} +1 -1
  214. package/dist/notifications.js +2 -2
  215. package/dist/{reveal-within-BcqpOmSI.js → reveal-within-BbeisIjK.js} +1 -1
  216. package/dist/{reveal-within-BcqpOmSI.js.map → reveal-within-BbeisIjK.js.map} +1 -1
  217. package/dist/{runtime--fcdnjmJ-BOdRhmsS.js → runtime--fcdnjmJ-DOFHQ2m8.js} +1 -1
  218. package/dist/{runtime--fcdnjmJ-BOdRhmsS.js.map → runtime--fcdnjmJ-DOFHQ2m8.js.map} +1 -1
  219. package/dist/services/notifications.js +1 -1
  220. package/dist/test-support.js +3 -51
  221. package/dist/test-support.js.map +1 -1
  222. package/dist/utilities.js +2 -0
  223. package/dist/utilities.js.map +1 -1
  224. package/dist/utils/keys.js +1 -1
  225. package/dist/utils/listManager.js +2 -2
  226. package/dist/utils/ref.js +1 -1
  227. package/dist/utils/toggle.js +1 -1
  228. package/package.json +16 -16
@@ -1 +1 @@
1
- {"version":3,"file":"notification-card-BPfDo-Gf.js","sources":["../src/-private/notification-stack.ts","../src/components/notifications/notification-card.gts"],"sourcesContent":["import type { containerPlacement } from './types';\n\n/**\n * How much each card behind the front of the stack shrinks, as a fraction.\n */\nconst SCALE_STEP = 0.05;\n\n/**\n * Cards are pinned to the placement edge, so a top placement stacks\n * downwards and a bottom placement stacks upwards. Exported so\n * notification-card.gts's own enter/exit slide direction can share this\n * instead of re-deriving it from the placement string.\n */\nfunction isTopPlacement(placement: containerPlacement): boolean {\n return placement.startsWith('top');\n}\n\ninterface NotificationStackInput {\n /**\n * Measured card heights in px, ordered front-first (index 0 is the newest\n * notification). A card that has not been measured yet contributes 0.\n */\n heights: number[];\n\n isExpanded: boolean;\n\n /**\n * Peek offset between collapsed cards, and the gap between expanded cards.\n */\n gap: number;\n\n /**\n * How many cards stay visible while collapsed.\n */\n visibleToasts: number;\n\n placement: containerPlacement;\n}\n\ninterface CardGeometry {\n transform: string;\n zIndex: number;\n opacity: number;\n\n /**\n * Fixed height in px while collapsed, so a taller card behind the front one\n * cannot stick out past it. `null` means the card sizes to its content.\n */\n height: number | null;\n\n transformOrigin: 'top center' | 'bottom center';\n\n /**\n * `'none'` when the card is fully transparent (collapsed beyond\n * `visibleToasts`), so it cannot swallow clicks meant for the page beneath\n * it; `'auto'` otherwise.\n */\n pointerEvents: 'auto' | 'none';\n}\n\n/**\n * Pure geometry for the notification stack: given measured card heights and\n * the current expansion state, it produces the transform for each card and\n * the height the container should animate to.\n *\n * Deliberately free of Ember and DOM dependencies so the layout maths can be\n * tested on its own.\n */\nclass NotificationStack {\n readonly heights: number[];\n readonly isExpanded: boolean;\n readonly gap: number;\n readonly visibleToasts: number;\n readonly placement: containerPlacement;\n\n constructor(input: NotificationStackInput) {\n this.heights = input.heights;\n this.isExpanded = input.isExpanded;\n this.gap = input.gap;\n this.visibleToasts = input.visibleToasts;\n this.placement = input.placement;\n }\n\n get isTopPlacement(): boolean {\n return isTopPlacement(this.placement);\n }\n\n /**\n * Cards are pinned to the placement edge, so a top placement stacks\n * downwards and a bottom placement stacks upwards.\n */\n get directionSign(): number {\n return this.isTopPlacement ? 1 : -1;\n }\n\n get transformOrigin(): CardGeometry['transformOrigin'] {\n return this.isTopPlacement ? 'top center' : 'bottom center';\n }\n\n get count(): number {\n return this.heights.length;\n }\n\n get frontHeight(): number {\n return this.heights[0] ?? 0;\n }\n\n geometryFor(index: number): CardGeometry {\n const zIndex = this.count - index;\n\n if (this.isExpanded) {\n return {\n transform: `translateY(${this.directionSign * this.offsetBefore(index)}px) scale(1)`,\n zIndex,\n opacity: 1,\n height: null,\n transformOrigin: this.transformOrigin,\n pointerEvents: 'auto'\n };\n }\n\n const offset = index * this.gap;\n const scale = Math.max(0, 1 - index * SCALE_STEP);\n const isVisible = index < this.visibleToasts;\n\n return {\n transform: `translateY(${this.directionSign * offset}px) scale(${scale})`,\n zIndex,\n opacity: isVisible ? 1 : 0,\n // The front card must size to its own content (`null`). Clamping it to\n // `frontHeight` would be self-referential — `frontHeight` *is* the\n // front card's own measurement — and would permanently lock in\n // whatever height was measured first, before content (e.g. a long\n // description) finished laying out. Only cards behind the front one\n // need clamping, so a taller card further back can't poke out past it.\n height: index === 0 ? null : this.frontHeight,\n transformOrigin: this.transformOrigin,\n // A card past `visibleToasts` is fully transparent while collapsed;\n // without this it would still sit in the fixed-position stack and\n // swallow clicks meant for the page beneath it.\n pointerEvents: isVisible ? 'auto' : 'none'\n };\n }\n\n get containerHeight(): number {\n if (this.count === 0) {\n return 0;\n }\n\n if (this.isExpanded) {\n return this.offsetBefore(this.count) - this.gap;\n }\n\n const visible = Math.min(this.count, this.visibleToasts);\n return this.frontHeight + (visible - 1) * this.gap;\n }\n\n /**\n * Distance from the placement edge to the leading edge of `index`, i.e. the\n * summed heights and gaps of every card in front of it.\n */\n private offsetBefore(index: number): number {\n let offset = 0;\n\n for (let i = 0; i < index; i++) {\n offset += (this.heights[i] ?? 0) + this.gap;\n }\n\n return offset;\n }\n}\n\nexport { NotificationStack, isTopPlacement };\nexport type { NotificationStackInput, CardGeometry };\n","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { modifier } from 'ember-modifier';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { fn } from '@ember/helper';\nimport { CloseButton } from '../buttons/close-button';\nimport { Button } from '../buttons/button';\nimport { Spinner } from '../utilities/spinner';\nimport {\n IconInfo,\n IconSuccess,\n IconWarning,\n IconDanger\n} from '../../-private/icons';\nimport { useStyles } from '@frontile/theme';\n\nimport type NotificationsService from '../../services/notifications';\nimport type Notification from '../../-private/notification';\nimport { isTopPlacement } from '../../-private/notification-stack';\nimport type { CardGeometry } from '../../-private/notification-stack';\nimport type {\n CustomAction,\n containerPlacement,\n NotificationStatus\n} from '../../-private/types';\nimport type { SafeString } from '@ember/template';\n\n/**\n * Everything that varies by `NotificationStatus`, keyed in one place so\n * adding a status means adding one row here instead of remembering to\n * touch an icon map, an action-colour map, and the `role` getter's cascade\n * separately.\n */\nconst STATUS_CONFIG = {\n neutral: {\n icon: IconInfo,\n // Button colour for the primary custom action. Also reused as the\n // loading <Spinner>'s `@color` (its colour union has the same\n // neutral/primary/success/warning/danger shape), so the spinner's arc\n // matches the same accent the card's custom action button would use.\n actionColor: 'neutral',\n // `alert` interrupts a screen reader, so it is reserved for the\n // statuses that warrant interrupting. This coupling is why the prop is\n // `@status` and not `@color`.\n role: 'status'\n },\n // Formerly `info`, which already painted `primary`'s classes. The info\n // glyph stays attached to `primary`.\n primary: {\n icon: IconInfo,\n actionColor: 'primary',\n role: 'status'\n },\n success: {\n icon: IconSuccess,\n actionColor: 'success',\n role: 'status'\n },\n warning: {\n icon: IconWarning,\n actionColor: 'warning',\n role: 'alert'\n },\n danger: {\n icon: IconDanger,\n actionColor: 'danger',\n role: 'alert'\n }\n} as const satisfies Record<\n NotificationStatus,\n {\n icon: unknown;\n actionColor: 'neutral' | 'primary' | 'success' | 'warning' | 'danger';\n role: 'status' | 'alert';\n }\n>;\n\ninterface NotificationCardSignature {\n Args: {\n notification: Notification<Record<string, unknown>>;\n placement: containerPlacement;\n\n /**\n * The visual style of the card.\n *\n * @defaultValue 'surface'\n */\n variant?: 'surface' | 'soft' | 'solid';\n\n /**\n * Position, scale, and stacking supplied by the container. When omitted\n * the card renders in place with no stack transform.\n *\n * Part of the container/card plumbing, not a consumer-facing argument.\n *\n * @internal\n */\n geometry?: CardGeometry;\n\n /**\n * Called with the card's measured height whenever it changes.\n *\n * Part of the container/card plumbing, not a consumer-facing argument.\n *\n * @internal\n */\n onMeasure?: (height: number) => void;\n };\n Element: HTMLDivElement;\n}\n\nclass NotificationCard extends Component<NotificationCardSignature> {\n @service notifications!: NotificationsService;\n\n /**\n * False for the first frame so the card can transition in from the\n * placement edge rather than appearing at its resting position.\n */\n @tracked hasEntered = false;\n\n get isTopPlacement(): boolean {\n return isTopPlacement(this.args.placement || 'bottom-right');\n }\n\n get status(): NotificationStatus {\n return this.args.notification.status;\n }\n\n get icon() {\n return STATUS_CONFIG[this.status].icon;\n }\n\n get actionColor() {\n return STATUS_CONFIG[this.status].actionColor;\n }\n\n get role(): 'status' | 'alert' {\n return STATUS_CONFIG[this.status].role;\n }\n\n get style(): SafeString {\n const { geometry, notification } = this.args;\n // The theme owns the whole `transition-duration` shorthand (and its\n // `motion-reduce:` override) so the per-property duration order can\n // never drift out of sync with `transition-[transform,opacity,height]`\n // across the component boundary — see notification-card.ts. This card\n // only supplies the one value `@transitionDuration` actually governs\n // (the enter/exit fade), as a custom property the theme's `var()` reads.\n const declarations = [\n `--frontile-toast-fade: ${notification.transitionDuration}ms`\n ];\n\n // The static edge-pinning (`position: absolute` + `left/right/top` or\n // `bottom`) lives in the `stackPlacement` theme variant (see\n // `this.classes`) rather than here, since it never varies frame to\n // frame — only the geometry-driven parts below (transform, opacity,\n // height, z-index, transform-origin) need to be inline, because a\n // `style` attribute passed through `...attributes` replaces the\n // element's own `style` outright and would drop them.\n\n if (!this.hasEntered || notification.isRemoving) {\n // Enter from, and exit to, the placement edge.\n const offset = this.isTopPlacement ? '-100%' : '100%';\n declarations.push(\n `opacity: 0`,\n `transform: translateY(${offset}) scale(0.95)`,\n // A card can be transparent-and-collapsed the instant it starts\n // exiting; keep it out of the click path either way.\n `pointer-events: none`\n );\n\n if (geometry) {\n declarations.push(\n `z-index: ${geometry.zIndex}`,\n `transform-origin: ${geometry.transformOrigin}`,\n // Preserve the collapsed height clamp through the exit\n // transition — otherwise a non-front collapsed card snaps from\n // its clamped height to `auto` for the slide-out.\n geometry.height === null\n ? `height: auto`\n : `height: ${geometry.height}px`\n );\n }\n\n return htmlSafe(declarations.join('; '));\n }\n\n if (geometry) {\n declarations.push(\n `transform: ${geometry.transform}`,\n `transform-origin: ${geometry.transformOrigin}`,\n `z-index: ${geometry.zIndex}`,\n `opacity: ${geometry.opacity}`,\n `pointer-events: ${geometry.pointerEvents}`,\n geometry.height === null\n ? `height: auto`\n : `height: ${geometry.height}px`\n );\n }\n\n return htmlSafe(declarations.join('; '));\n }\n\n /**\n * Flip to the resting position on the frame after insertion, so the browser\n * has a start value to transition from.\n */\n enter = modifier(() => {\n const frame = requestAnimationFrame(() => {\n this.hasEntered = true;\n });\n\n return () => cancelAnimationFrame(frame);\n });\n\n /**\n * Report the card's height to the container so the stack can lay itself\n * out. Also fires when promise content swaps change the height.\n *\n * `element` is the inner element (never height-constrained, so its\n * `offsetHeight` is always the content's true natural height). The border\n * lives on the outer element (`element.parentElement`), so it isn't part\n * of that number — we add it back via `outer.offsetHeight -\n * outer.clientHeight`, the outer element's vertical border width. That\n * difference is constant whether or not the outer element's height is\n * currently clamped by the collapsed-stack height, so it's safe to read\n * off the outer element even while it's clamped, and it stays correct if\n * the theme's border width ever changes.\n */\n measure = modifier((element: HTMLElement) => {\n const { onMeasure } = this.args;\n\n if (!onMeasure) {\n return;\n }\n\n const outer = element.parentElement as HTMLElement;\n\n const report = () => {\n const outerBorder = outer.offsetHeight - outer.clientHeight;\n onMeasure(element.offsetHeight + outerBorder);\n };\n\n const observer = new ResizeObserver(report);\n\n report();\n observer.observe(element);\n\n return () => observer.disconnect();\n });\n\n remove = () => {\n this.notifications.remove(this.args.notification);\n };\n\n handleClickCustomAction = (customAction: CustomAction) => {\n customAction.onClick();\n this.notifications.remove(this.args.notification);\n };\n\n get classes() {\n const { notificationCard } = useStyles();\n\n const {\n base,\n inner,\n icon,\n spinner,\n content,\n title,\n description,\n customActions,\n customActionButton,\n closeButton\n } = notificationCard({\n status: this.status,\n variant: this.args.variant || 'surface',\n hasDescription: !!this.args.notification.description,\n // Only pin the card to the placement edge once the container has\n // supplied stack geometry — see the `stackPlacement` variant's\n // comment in the theme.\n stackPlacement: this.args.geometry\n ? this.isTopPlacement\n ? 'top'\n : 'bottom'\n : 'none'\n });\n\n return {\n base: base(),\n inner: inner(),\n icon: icon(),\n spinner: spinner(),\n content: content(),\n title: title(),\n description: description(),\n customActions: customActions(),\n customActionButton: customActionButton(),\n closeButton: closeButton()\n };\n }\n\n <template>\n {{! template-lint-disable no-inline-styles style-concatenation }}\n <div\n data-component=\"notification-card\"\n data-part=\"base\"\n class={{this.classes.base}}\n style={{this.style}}\n role={{this.role}}\n data-test-notification-card\n data-test-status={{this.status}}\n {{this.enter}}\n ...attributes\n >\n {{! measure reads offsetHeight off this inner element, not the outer one above, since the outer carries the collapsed-stack height clamp. See notification-stack.ts. }}\n <div data-part=\"inner\" class={{this.classes.inner}} {{this.measure}}>\n {{#unless @notification.hideIcon}}\n {{#if @notification.isLoading}}\n <Spinner\n data-part=\"spinner\"\n @class={{this.classes.spinner}}\n @color={{this.actionColor}}\n @size=\"sm\"\n data-test-icon=\"loading\"\n />\n {{else}}\n {{#let this.icon as |Icon|}}\n <Icon data-part=\"icon\" class={{this.classes.icon}} />\n {{/let}}\n {{/if}}\n {{/unless}}\n\n <div data-part=\"content\" class={{this.classes.content}}>\n <div\n data-part=\"title\"\n class={{this.classes.title}}\n >{{@notification.title}}</div>\n\n {{#if @notification.description}}\n <div data-part=\"description\" class={{this.classes.description}}>\n {{@notification.description}}\n </div>\n {{/if}}\n </div>\n\n {{#if @notification.customActions}}\n <div data-part=\"custom-actions\" class={{this.classes.customActions}}>\n {{#each @notification.customActions as |customAction index|}}\n <Button\n data-part=\"custom-action-button\"\n @size=\"xs\"\n @color={{if index \"neutral\" this.actionColor}}\n @variant={{if index \"plain\" \"solid\"}}\n @class={{this.classes.customActionButton}}\n @onPress={{fn this.handleClickCustomAction customAction}}\n >\n {{customAction.label}}\n </Button>\n {{/each}}\n </div>\n {{/if}}\n\n {{#if @notification.allowClosing}}\n <CloseButton\n data-part=\"close-button\"\n @onPress={{this.remove}}\n @size=\"sm\"\n @class={{this.classes.closeButton}}\n />\n {{/if}}\n </div>\n </div>\n </template>\n}\n\nexport { NotificationCard, type NotificationCardSignature };\nexport default NotificationCard;\n"],"names":["SCALE_STEP","isTopPlacement","placement","startsWith","NotificationStack","heights","isExpanded","gap","visibleToasts","constructor","input","directionSign","transformOrigin","count","length","frontHeight","geometryFor","index","zIndex","transform","offsetBefore","opacity","height","pointerEvents","offset","scale","Math","max","isVisible","containerHeight","visible","min","i","STATUS_CONFIG","neutral","icon","IconInfo","actionColor","role","primary","success","IconSuccess","warning","IconWarning","danger","IconDanger","NotificationCard","Component","g","prototype","service","tracked","args","status","notification","style","geometry","declarations","transitionDuration","hasEntered","isRemoving","push","htmlSafe","join","enter","modifier","frame","requestAnimationFrame","cancelAnimationFrame","measure","element","onMeasure","outer","parentElement","report","outerBorder","offsetHeight","clientHeight","observer","ResizeObserver","observe","disconnect","remove","notifications","handleClickCustomAction","customAction","onClick","classes","notificationCard","useStyles","base","inner","spinner","content","title","description","customActions","customActionButton","closeButton","variant","hasDescription","stackPlacement","setComponentTemplate","precompileTemplate","strictMode","scope","Spinner","Button","fn","CloseButton"],"mappings":";;;;;;;;;;;;;;;AAEA;AACA;AACA;AACA,MAAMA,UAAU,GAAG,IAAI;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,cAAcA,CAACC,SAA6B,EAAW;AAC9D,EAAA,OAAOA,SAAS,CAACC,UAAU,CAAC,KAAK,CAAC;AACpC;AA6CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,iBAAiB,CAAC;EACbC,OAAO;EACPC,UAAU;EACVC,GAAG;EACHC,aAAa;EACbN,SAAS;EAElBO,WAAWA,CAACC,KAA6B,EAAE;AACzC,IAAA,IAAI,CAACL,OAAO,GAAGK,KAAK,CAAC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AI,CAACjD,IAAI,CAACI,QAAQ,GAC9B,IAAI,CAACvD,cAAc,GACjB,KAAA,GACA,QAAA,GACF;AACN,KAAA,CAAA;IAEA,OAAO;MACLyF,IAAA,EAAMA,IAAA,EAAA;MACNC,KAAA,EAAOA,KAAA,EAAA;MACPxD,IAAA,EAAMA,IAAA,EAAA;MACNyD,OAAA,EAASA,OAAA,EAAA;MACTC,OAAA,EAASA,OAAA,EAAA;MACTC,KAAA,EAAOA,KAAA,EAAA;MACPC,WAAA,EAAaA,WAAA,EAAA;MACbC,aAAA,EAAeA,aAAA,EAAA;MACfC,kBAAA,EAAoBA,kBAAA,EAAA;MACpBC,WAAA,EAAaA,WAAA;KACf;AACF,EAAA;AAEA,EAAA;IAAAI,oBAAA,CAAAC,kBAAA,CAAA,ggEAAA,EAuEA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,OAAA;QAAAC,MAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;"}
1
+ {"version":3,"file":"notification-card-C4mlc9Ac.js","sources":["../src/-private/notification-stack.ts","../src/components/notifications/notification-card.gts"],"sourcesContent":["import type { containerPlacement } from './types';\n\n/**\n * How much each card behind the front of the stack shrinks, as a fraction.\n */\nconst SCALE_STEP = 0.05;\n\n/**\n * Cards are pinned to the placement edge, so a top placement stacks\n * downwards and a bottom placement stacks upwards. Exported so\n * notification-card.gts's own enter/exit slide direction can share this\n * instead of re-deriving it from the placement string.\n */\nfunction isTopPlacement(placement: containerPlacement): boolean {\n return placement.startsWith('top');\n}\n\ninterface NotificationStackInput {\n /**\n * Measured card heights in px, ordered front-first (index 0 is the newest\n * notification). A card that has not been measured yet contributes 0.\n */\n heights: number[];\n\n isExpanded: boolean;\n\n /**\n * Peek offset between collapsed cards, and the gap between expanded cards.\n */\n gap: number;\n\n /**\n * How many cards stay visible while collapsed.\n */\n visibleToasts: number;\n\n placement: containerPlacement;\n}\n\ninterface CardGeometry {\n transform: string;\n zIndex: number;\n opacity: number;\n\n /**\n * Fixed height in px while collapsed, so a taller card behind the front one\n * cannot stick out past it. `null` means the card sizes to its content.\n */\n height: number | null;\n\n transformOrigin: 'top center' | 'bottom center';\n\n /**\n * `'none'` when the card is fully transparent (collapsed beyond\n * `visibleToasts`), so it cannot swallow clicks meant for the page beneath\n * it; `'auto'` otherwise.\n */\n pointerEvents: 'auto' | 'none';\n}\n\n/**\n * Pure geometry for the notification stack: given measured card heights and\n * the current expansion state, it produces the transform for each card and\n * the height the container should animate to.\n *\n * Deliberately free of Ember and DOM dependencies so the layout maths can be\n * tested on its own.\n */\nclass NotificationStack {\n readonly heights: number[];\n readonly isExpanded: boolean;\n readonly gap: number;\n readonly visibleToasts: number;\n readonly placement: containerPlacement;\n\n constructor(input: NotificationStackInput) {\n this.heights = input.heights;\n this.isExpanded = input.isExpanded;\n this.gap = input.gap;\n this.visibleToasts = input.visibleToasts;\n this.placement = input.placement;\n }\n\n get isTopPlacement(): boolean {\n return isTopPlacement(this.placement);\n }\n\n /**\n * Cards are pinned to the placement edge, so a top placement stacks\n * downwards and a bottom placement stacks upwards.\n */\n get directionSign(): number {\n return this.isTopPlacement ? 1 : -1;\n }\n\n get transformOrigin(): CardGeometry['transformOrigin'] {\n return this.isTopPlacement ? 'top center' : 'bottom center';\n }\n\n get count(): number {\n return this.heights.length;\n }\n\n get frontHeight(): number {\n return this.heights[0] ?? 0;\n }\n\n geometryFor(index: number): CardGeometry {\n const zIndex = this.count - index;\n\n if (this.isExpanded) {\n return {\n transform: `translateY(${this.directionSign * this.offsetBefore(index)}px) scale(1)`,\n zIndex,\n opacity: 1,\n height: null,\n transformOrigin: this.transformOrigin,\n pointerEvents: 'auto'\n };\n }\n\n const offset = index * this.gap;\n const scale = Math.max(0, 1 - index * SCALE_STEP);\n const isVisible = index < this.visibleToasts;\n\n return {\n transform: `translateY(${this.directionSign * offset}px) scale(${scale})`,\n zIndex,\n opacity: isVisible ? 1 : 0,\n // The front card must size to its own content (`null`). Clamping it to\n // `frontHeight` would be self-referential — `frontHeight` *is* the\n // front card's own measurement — and would permanently lock in\n // whatever height was measured first, before content (e.g. a long\n // description) finished laying out. Only cards behind the front one\n // need clamping, so a taller card further back can't poke out past it.\n height: index === 0 ? null : this.frontHeight,\n transformOrigin: this.transformOrigin,\n // A card past `visibleToasts` is fully transparent while collapsed;\n // without this it would still sit in the fixed-position stack and\n // swallow clicks meant for the page beneath it.\n pointerEvents: isVisible ? 'auto' : 'none'\n };\n }\n\n get containerHeight(): number {\n if (this.count === 0) {\n return 0;\n }\n\n if (this.isExpanded) {\n return this.offsetBefore(this.count) - this.gap;\n }\n\n const visible = Math.min(this.count, this.visibleToasts);\n return this.frontHeight + (visible - 1) * this.gap;\n }\n\n /**\n * Distance from the placement edge to the leading edge of `index`, i.e. the\n * summed heights and gaps of every card in front of it.\n */\n private offsetBefore(index: number): number {\n let offset = 0;\n\n for (let i = 0; i < index; i++) {\n offset += (this.heights[i] ?? 0) + this.gap;\n }\n\n return offset;\n }\n}\n\nexport { NotificationStack, isTopPlacement };\nexport type { NotificationStackInput, CardGeometry };\n","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { modifier } from 'ember-modifier';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { fn } from '@ember/helper';\nimport { CloseButton } from '../buttons/close-button';\nimport { Button } from '../buttons/button';\nimport { Spinner } from '../utilities/spinner';\nimport {\n IconInfo,\n IconSuccess,\n IconWarning,\n IconDanger\n} from '../../-private/icons';\nimport { useStyles } from '@frontile/theme';\n\nimport type NotificationsService from '../../services/notifications';\nimport type Notification from '../../-private/notification';\nimport { isTopPlacement } from '../../-private/notification-stack';\nimport type { CardGeometry } from '../../-private/notification-stack';\nimport type {\n CustomAction,\n containerPlacement,\n NotificationStatus\n} from '../../-private/types';\nimport type { SafeString } from '@ember/template';\n\n/**\n * Everything that varies by `NotificationStatus`, keyed in one place so\n * adding a status means adding one row here instead of remembering to\n * touch an icon map, an action-colour map, and the `role` getter's cascade\n * separately.\n */\nconst STATUS_CONFIG = {\n neutral: {\n icon: IconInfo,\n // Button colour for the primary custom action. Also reused as the\n // loading <Spinner>'s `@color` (its colour union has the same\n // neutral/primary/success/warning/danger shape), so the spinner's arc\n // matches the same accent the card's custom action button would use.\n actionColor: 'neutral',\n // `alert` interrupts a screen reader, so it is reserved for the\n // statuses that warrant interrupting. This coupling is why the prop is\n // `@status` and not `@color`.\n role: 'status'\n },\n // Formerly `info`, which already painted `primary`'s classes. The info\n // glyph stays attached to `primary`.\n primary: {\n icon: IconInfo,\n actionColor: 'primary',\n role: 'status'\n },\n success: {\n icon: IconSuccess,\n actionColor: 'success',\n role: 'status'\n },\n warning: {\n icon: IconWarning,\n actionColor: 'warning',\n role: 'alert'\n },\n danger: {\n icon: IconDanger,\n actionColor: 'danger',\n role: 'alert'\n }\n} as const satisfies Record<\n NotificationStatus,\n {\n icon: unknown;\n actionColor: 'neutral' | 'primary' | 'success' | 'warning' | 'danger';\n role: 'status' | 'alert';\n }\n>;\n\ninterface NotificationCardSignature {\n Args: {\n notification: Notification<Record<string, unknown>>;\n placement: containerPlacement;\n\n /**\n * The visual style of the card.\n *\n * @defaultValue 'surface'\n */\n variant?: 'surface' | 'soft' | 'solid';\n\n /**\n * Position, scale, and stacking supplied by the container. When omitted\n * the card renders in place with no stack transform.\n *\n * Part of the container/card plumbing, not a consumer-facing argument.\n *\n * @internal\n */\n geometry?: CardGeometry;\n\n /**\n * Called with the card's measured height whenever it changes.\n *\n * Part of the container/card plumbing, not a consumer-facing argument.\n *\n * @internal\n */\n onMeasure?: (height: number) => void;\n };\n Element: HTMLDivElement;\n}\n\nclass NotificationCard extends Component<NotificationCardSignature> {\n @service notifications!: NotificationsService;\n\n /**\n * False for the first frame so the card can transition in from the\n * placement edge rather than appearing at its resting position.\n */\n @tracked hasEntered = false;\n\n get isTopPlacement(): boolean {\n return isTopPlacement(this.args.placement || 'bottom-right');\n }\n\n get status(): NotificationStatus {\n return this.args.notification.status;\n }\n\n get icon() {\n return STATUS_CONFIG[this.status].icon;\n }\n\n get actionColor() {\n return STATUS_CONFIG[this.status].actionColor;\n }\n\n get role(): 'status' | 'alert' {\n return STATUS_CONFIG[this.status].role;\n }\n\n get style(): SafeString {\n const { geometry, notification } = this.args;\n // The theme owns the whole `transition-duration` shorthand (and its\n // `motion-reduce:` override) so the per-property duration order can\n // never drift out of sync with `transition-[transform,opacity,height]`\n // across the component boundary — see notification-card.ts. This card\n // only supplies the one value `@transitionDuration` actually governs\n // (the enter/exit fade), as a custom property the theme's `var()` reads.\n const declarations = [\n `--frontile-toast-fade: ${notification.transitionDuration}ms`\n ];\n\n // The static edge-pinning (`position: absolute` + `left/right/top` or\n // `bottom`) lives in the `stackPlacement` theme variant (see\n // `this.classes`) rather than here, since it never varies frame to\n // frame — only the geometry-driven parts below (transform, opacity,\n // height, z-index, transform-origin) need to be inline, because a\n // `style` attribute passed through `...attributes` replaces the\n // element's own `style` outright and would drop them.\n\n if (!this.hasEntered || notification.isRemoving) {\n // Enter from, and exit to, the placement edge.\n const offset = this.isTopPlacement ? '-100%' : '100%';\n declarations.push(\n `opacity: 0`,\n `transform: translateY(${offset}) scale(0.95)`,\n // A card can be transparent-and-collapsed the instant it starts\n // exiting; keep it out of the click path either way.\n `pointer-events: none`\n );\n\n if (geometry) {\n declarations.push(\n `z-index: ${geometry.zIndex}`,\n `transform-origin: ${geometry.transformOrigin}`,\n // Preserve the collapsed height clamp through the exit\n // transition — otherwise a non-front collapsed card snaps from\n // its clamped height to `auto` for the slide-out.\n geometry.height === null\n ? `height: auto`\n : `height: ${geometry.height}px`\n );\n }\n\n return htmlSafe(declarations.join('; '));\n }\n\n if (geometry) {\n declarations.push(\n `transform: ${geometry.transform}`,\n `transform-origin: ${geometry.transformOrigin}`,\n `z-index: ${geometry.zIndex}`,\n `opacity: ${geometry.opacity}`,\n `pointer-events: ${geometry.pointerEvents}`,\n geometry.height === null\n ? `height: auto`\n : `height: ${geometry.height}px`\n );\n }\n\n return htmlSafe(declarations.join('; '));\n }\n\n /**\n * Flip to the resting position on the frame after insertion, so the browser\n * has a start value to transition from.\n */\n enter = modifier(() => {\n const frame = requestAnimationFrame(() => {\n this.hasEntered = true;\n });\n\n return () => cancelAnimationFrame(frame);\n });\n\n /**\n * Report the card's height to the container so the stack can lay itself\n * out. Also fires when promise content swaps change the height.\n *\n * `element` is the inner element (never height-constrained, so its\n * `offsetHeight` is always the content's true natural height). The border\n * lives on the outer element (`element.parentElement`), so it isn't part\n * of that number — we add it back via `outer.offsetHeight -\n * outer.clientHeight`, the outer element's vertical border width. That\n * difference is constant whether or not the outer element's height is\n * currently clamped by the collapsed-stack height, so it's safe to read\n * off the outer element even while it's clamped, and it stays correct if\n * the theme's border width ever changes.\n */\n measure = modifier((element: HTMLElement) => {\n const { onMeasure } = this.args;\n\n if (!onMeasure) {\n return;\n }\n\n const outer = element.parentElement as HTMLElement;\n\n const report = () => {\n const outerBorder = outer.offsetHeight - outer.clientHeight;\n onMeasure(element.offsetHeight + outerBorder);\n };\n\n const observer = new ResizeObserver(report);\n\n report();\n observer.observe(element);\n\n return () => observer.disconnect();\n });\n\n remove = () => {\n this.notifications.remove(this.args.notification);\n };\n\n handleClickCustomAction = (customAction: CustomAction) => {\n customAction.onClick();\n this.notifications.remove(this.args.notification);\n };\n\n get classes() {\n const { notificationCard } = useStyles();\n\n const {\n base,\n inner,\n icon,\n spinner,\n content,\n title,\n description,\n customActions,\n customActionButton,\n closeButton\n } = notificationCard({\n status: this.status,\n variant: this.args.variant || 'surface',\n hasDescription: !!this.args.notification.description,\n // Only pin the card to the placement edge once the container has\n // supplied stack geometry — see the `stackPlacement` variant's\n // comment in the theme.\n stackPlacement: this.args.geometry\n ? this.isTopPlacement\n ? 'top'\n : 'bottom'\n : 'none'\n });\n\n return {\n base: base(),\n inner: inner(),\n icon: icon(),\n spinner: spinner(),\n content: content(),\n title: title(),\n description: description(),\n customActions: customActions(),\n customActionButton: customActionButton(),\n closeButton: closeButton()\n };\n }\n\n <template>\n {{! template-lint-disable no-inline-styles style-concatenation }}\n <div\n data-component=\"notification-card\"\n data-part=\"base\"\n class={{this.classes.base}}\n style={{this.style}}\n role={{this.role}}\n data-test-notification-card\n data-test-status={{this.status}}\n {{this.enter}}\n ...attributes\n >\n {{! measure reads offsetHeight off this inner element, not the outer one above, since the outer carries the collapsed-stack height clamp. See notification-stack.ts. }}\n <div data-part=\"inner\" class={{this.classes.inner}} {{this.measure}}>\n {{#unless @notification.hideIcon}}\n {{#if @notification.isLoading}}\n <Spinner\n data-part=\"spinner\"\n @class={{this.classes.spinner}}\n @color={{this.actionColor}}\n @size=\"sm\"\n data-test-icon=\"loading\"\n />\n {{else}}\n {{#let this.icon as |Icon|}}\n <Icon data-part=\"icon\" class={{this.classes.icon}} />\n {{/let}}\n {{/if}}\n {{/unless}}\n\n <div data-part=\"content\" class={{this.classes.content}}>\n <div\n data-part=\"title\"\n class={{this.classes.title}}\n >{{@notification.title}}</div>\n\n {{#if @notification.description}}\n <div data-part=\"description\" class={{this.classes.description}}>\n {{@notification.description}}\n </div>\n {{/if}}\n </div>\n\n {{#if @notification.customActions}}\n <div data-part=\"custom-actions\" class={{this.classes.customActions}}>\n {{#each @notification.customActions as |customAction index|}}\n <Button\n data-part=\"custom-action-button\"\n @size=\"xs\"\n @color={{if index \"neutral\" this.actionColor}}\n @variant={{if index \"plain\" \"solid\"}}\n @class={{this.classes.customActionButton}}\n @onPress={{fn this.handleClickCustomAction customAction}}\n >\n {{customAction.label}}\n </Button>\n {{/each}}\n </div>\n {{/if}}\n\n {{#if @notification.allowClosing}}\n <CloseButton\n data-part=\"close-button\"\n @onPress={{this.remove}}\n @size=\"sm\"\n @class={{this.classes.closeButton}}\n />\n {{/if}}\n </div>\n </div>\n </template>\n}\n\nexport { NotificationCard, type NotificationCardSignature };\nexport default NotificationCard;\n"],"names":["SCALE_STEP","isTopPlacement","placement","startsWith","NotificationStack","heights","isExpanded","gap","visibleToasts","constructor","input","directionSign","transformOrigin","count","length","frontHeight","geometryFor","index","zIndex","transform","offsetBefore","opacity","height","pointerEvents","offset","scale","Math","max","isVisible","containerHeight","visible","min","i","STATUS_CONFIG","neutral","icon","IconInfo","actionColor","role","primary","success","IconSuccess","warning","IconWarning","danger","IconDanger","NotificationCard","Component","g","prototype","service","tracked","args","status","notification","style","geometry","declarations","transitionDuration","hasEntered","isRemoving","push","htmlSafe","join","enter","modifier","frame","requestAnimationFrame","cancelAnimationFrame","measure","element","onMeasure","outer","parentElement","report","outerBorder","offsetHeight","clientHeight","observer","ResizeObserver","observe","disconnect","remove","notifications","handleClickCustomAction","customAction","onClick","classes","notificationCard","useStyles","base","inner","spinner","content","title","description","customActions","customActionButton","closeButton","variant","hasDescription","stackPlacement","setComponentTemplate","precompileTemplate","strictMode","scope","Spinner","Button","fn","CloseButton"],"mappings":";;;;;;;;;;;;;;;AAEA;AACA;AACA;AACA,MAAMA,UAAU,GAAG,IAAI;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,cAAcA,CAACC,SAA6B,EAAW;AAC9D,EAAA,OAAOA,SAAS,CAACC,UAAU,CAAC,KAAK,CAAC;AACpC;AA6CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,iBAAiB,CAAC;EACbC,OAAO;EACPC,UAAU;EACVC,GAAG;EACHC,aAAa;EACbN,SAAS;EAElBO,WAAWA,CAACC,KAA6B,EAAE;AACzC,IAAA,IAAI,CAACL,OAAO,GAAGK,KAAK,CAACL,OAAO;AAC5B,IAAA,IAAI,CAACC,UAAU,GAAGI,KAAK,CAACJ,UAAU;AAClC,IAAA,IAAI,CAACC,GAAG,GAAGG,KAAK,CAACH,GAAG;AACpB,IAAA,IAAI,CAACC,aAAa,GAAGE,KAAK,CAACF,aAAa;AACxC,IAAA,IAAI,CAACN,SAAS,GAAGQ,KAAK,CAACR,SAAS;AAClC,EAAA;EA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AAA,EAASA,OAAA,EAAA;MACTC,KAAA,EAAOA,KAAA,EAAA;MACPC,WAAA,EAAaA,WAAA,EAAA;MACbC,aAAA,EAAeA,aAAA,EAAA;MACfC,kBAAA,EAAoBA,kBAAA,EAAA;MACpBC,WAAA,EAAaA,WAAA;KACf;AACF,EAAA;AAEA,EAAA;IAAAI,oBAAA,CAAAC,kBAAA,CAAA,ggEAAA,EAuEA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,OAAA;QAAAC,MAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;"}
@@ -1,5 +1,5 @@
1
- export { N as Notification, T as Timer } from './manager-Dge4r8Vn.js';
1
+ export { N as Notification, T as Timer } from './manager-DFO_x6Jr.js';
2
2
  import '@ember/service';
3
- export { N as NotificationCard, a as NotificationStack } from './notification-card-BPfDo-Gf.js';
3
+ export { N as NotificationCard, a as NotificationStack } from './notification-card-C4mlc9Ac.js';
4
4
  export { NotificationsContainer } from './components/notifications/notifications-container.js';
5
5
  //# sourceMappingURL=notifications.js.map
@@ -30,4 +30,4 @@ function revealWithin(panel, target, center) {
30
30
  }
31
31
 
32
32
  export { revealWithin as r };
33
- //# sourceMappingURL=reveal-within-BcqpOmSI.js.map
33
+ //# sourceMappingURL=reveal-within-BbeisIjK.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reveal-within-BcqpOmSI.js","sources":["../src/-private/reveal-within.ts"],"sourcesContent":["/**\n * Scroll `target` into view inside `panel` and nowhere else.\n *\n * `scrollIntoView` and a plain `focus()` both scroll *every* scrollable\n * ancestor up to the document, so either one makes the host page jump when a\n * panel opens or when arrow keys walk past its edge. Adjusting `scrollTop`\n * directly keeps the movement inside the panel.\n *\n * The measurements come from `offsetTop`, not `getBoundingClientRect()`:\n * client rects are in transformed pixels, so under any ancestor `scale()` they\n * would not agree with `scrollTop`. This relies on the panel being the\n * target's `offsetParent`, so the panel has to be positioned.\n *\n * `center` places the target mid-panel, for the opening jump to a value that\n * is usually a long way down the list; otherwise the target is brought just\n * far enough into view, which is what stepping key by key wants.\n */\nexport function revealWithin(\n panel: HTMLElement,\n target: HTMLElement,\n center: boolean\n): void {\n const top = target.offsetTop;\n const bottom = top + target.offsetHeight;\n\n if (center) {\n panel.scrollTop = top - (panel.clientHeight - target.offsetHeight) / 2;\n return;\n }\n\n if (top < panel.scrollTop) {\n panel.scrollTop = top;\n } else if (bottom > panel.scrollTop + panel.clientHeight) {\n panel.scrollTop = bottom - panel.clientHeight;\n }\n}\n"],"names":["revealWithin","panel","target","center","top","offsetTop","bottom","offsetHeight","scrollTop","clientHeight"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,YAAYA,CAC1BC,KAAkB,EAClBC,MAAmB,EACnBC,MAAe,EACT;AACN,EAAA,MAAMC,GAAG,GAAGF,MAAM,CAACG,SAAS;AAC5B,EAAA,MAAMC,MAAM,GAAGF,GAAG,GAAGF,MAAM,CAACK,YAAY;AAExC,EAAA,IAAIJ,MAAM,EAAE;AACVF,IAAAA,KAAK,CAACO,SAAS,GAAGJ,GAAG,GAAG,CAACH,KAAK,CAACQ,YAAY,GAAGP,MAAM,CAACK,YAAY,IAAI,CAAC;AACtE,IAAA;AACF,EAAA;AAEA,EAAA,IAAIH,GAAG,GAAGH,KAAK,CAACO,SAAS,EAAE;IACzBP,KAAK,CAACO,SAAS,GAAGJ,GAAG;EACvB,CAAC,MAAM,IAAIE,MAAM,GAAGL,KAAK,CAACO,SAAS,GAAGP,KAAK,CAACQ,YAAY,EAAE;AACxDR,IAAAA,KAAK,CAACO,SAAS,GAAGF,MAAM,GAAGL,KAAK,CAACQ,YAAY;AAC/C,EAAA;AACF;;"}
1
+ {"version":3,"file":"reveal-within-BbeisIjK.js","sources":["../src/-private/reveal-within.ts"],"sourcesContent":["/**\n * Scroll `target` into view inside `panel` and nowhere else.\n *\n * `scrollIntoView` and a plain `focus()` both scroll *every* scrollable\n * ancestor up to the document, so either one makes the host page jump when a\n * panel opens or when arrow keys walk past its edge. Adjusting `scrollTop`\n * directly keeps the movement inside the panel.\n *\n * The measurements come from `offsetTop`, not `getBoundingClientRect()`:\n * client rects are in transformed pixels, so under any ancestor `scale()` they\n * would not agree with `scrollTop`. This relies on the panel being the\n * target's `offsetParent`, so the panel has to be positioned.\n *\n * `center` places the target mid-panel, for the opening jump to a value that\n * is usually a long way down the list; otherwise the target is brought just\n * far enough into view, which is what stepping key by key wants.\n */\nexport function revealWithin(\n panel: HTMLElement,\n target: HTMLElement,\n center: boolean\n): void {\n const top = target.offsetTop;\n const bottom = top + target.offsetHeight;\n\n if (center) {\n panel.scrollTop = top - (panel.clientHeight - target.offsetHeight) / 2;\n return;\n }\n\n if (top < panel.scrollTop) {\n panel.scrollTop = top;\n } else if (bottom > panel.scrollTop + panel.clientHeight) {\n panel.scrollTop = bottom - panel.clientHeight;\n }\n}\n"],"names":["revealWithin","panel","target","center","top","offsetTop","bottom","offsetHeight","scrollTop","clientHeight"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,YAAYA,CAC1BC,KAAkB,EAClBC,MAAmB,EACnBC,MAAe,EACT;AACN,EAAA,MAAMC,GAAG,GAAGF,MAAM,CAACG,SAAS;AAC5B,EAAA,MAAMC,MAAM,GAAGF,GAAG,GAAGF,MAAM,CAACK,YAAY;AAExC,EAAA,IAAIJ,MAAM,EAAE;AACVF,IAAAA,KAAK,CAACO,SAAS,GAAGJ,GAAG,GAAG,CAACH,KAAK,CAACQ,YAAY,GAAGP,MAAM,CAACK,YAAY,IAAI,CAAC;AACtE,IAAA;AACF,EAAA;AAEA,EAAA,IAAIH,GAAG,GAAGH,KAAK,CAACO,SAAS,EAAE;IACzBP,KAAK,CAACO,SAAS,GAAGJ,GAAG;EACvB,CAAC,MAAM,IAAIE,MAAM,GAAGL,KAAK,CAACO,SAAS,GAAGP,KAAK,CAACQ,YAAY,EAAE;AACxDR,IAAAA,KAAK,CAACO,SAAS,GAAGF,MAAM,GAAGL,KAAK,CAACQ,YAAY;AAC/C,EAAA;AACF;;"}
@@ -64,4 +64,4 @@ function initializeDeferredDecorator(target, prop) {
64
64
  }
65
65
 
66
66
  export { decorateMethodV2 as a, decorateFieldV2 as d, initializeDeferredDecorator as i };
67
- //# sourceMappingURL=runtime--fcdnjmJ-BOdRhmsS.js.map
67
+ //# sourceMappingURL=runtime--fcdnjmJ-DOFHQ2m8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime--fcdnjmJ-BOdRhmsS.js","sources":["../../../node_modules/.pnpm/decorator-transforms@2.4.0_@babel+core@7.29.7/node_modules/decorator-transforms/dist/runtime--fcdnjmJ.js"],"sourcesContent":["const deferred = /* @__PURE__ */ new WeakMap();\nfunction deferDecorator(proto, prop, desc) {\n let map = deferred.get(proto);\n if (!map) {\n map = /* @__PURE__ */ new Map();\n deferred.set(proto, map);\n }\n map.set(prop, desc);\n}\nfunction findDeferredDecorator(target, prop) {\n var _a;\n let cursor = target.prototype;\n while (cursor) {\n let desc = (_a = deferred.get(cursor)) == null ? void 0 : _a.get(prop);\n if (desc) {\n return desc;\n }\n cursor = Object.getPrototypeOf(cursor);\n }\n}\nfunction decorateFieldV1(target, prop, decorators, initializer) {\n return decorateFieldV2(target.prototype, prop, decorators, initializer);\n}\nfunction decorateFieldV2(prototype, prop, decorators, initializer) {\n let desc = {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n };\n if (initializer) {\n desc.initializer = initializer;\n }\n for (let decorator of decorators) {\n desc = decorator(prototype, prop, desc) || desc;\n }\n if (desc.initializer === void 0) {\n Object.defineProperty(prototype, prop, desc);\n } else {\n deferDecorator(prototype, prop, desc);\n }\n}\nfunction decorateMethodV1({ prototype }, prop, decorators) {\n return decorateMethodV2(prototype, prop, decorators);\n}\nfunction decorateMethodV2(prototype, prop, decorators) {\n const origDesc = Object.getOwnPropertyDescriptor(prototype, prop);\n let desc = { ...origDesc };\n for (let decorator of decorators) {\n desc = decorator(prototype, prop, desc) || desc;\n }\n if (desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(prototype) : void 0;\n desc.initializer = void 0;\n }\n Object.defineProperty(prototype, prop, desc);\n}\nfunction initializeDeferredDecorator(target, prop) {\n let desc = findDeferredDecorator(target.constructor, prop);\n if (desc) {\n Object.defineProperty(target, prop, {\n enumerable: desc.enumerable,\n configurable: desc.configurable,\n writable: desc.writable,\n value: desc.initializer ? desc.initializer.call(target) : void 0\n });\n }\n}\nfunction decorateClass(target, decorators) {\n return decorators.reduce(\n (accum, decorator) => decorator(accum) || accum,\n target\n );\n}\nfunction decoratePOJO(pojo, decorated) {\n for (let [type, prop, decorators] of decorated) {\n if (type === \"field\") {\n decoratePojoField(pojo, prop, decorators);\n } else {\n decorateMethodV2(pojo, prop, decorators);\n }\n }\n return pojo;\n}\nfunction decoratePojoField(pojo, prop, decorators) {\n let desc = {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: () => {\n var _a;\n return (_a = Object.getOwnPropertyDescriptor(pojo, prop)) == null ? void 0 : _a.value;\n }\n };\n for (let decorator of decorators) {\n desc = decorator(pojo, prop, desc) || desc;\n }\n if (desc.initializer) {\n desc.value = desc.initializer.call(pojo);\n delete desc.initializer;\n }\n Object.defineProperty(pojo, prop, desc);\n}\nconst runtime = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n c: decorateClass,\n f: decorateFieldV1,\n g: decorateFieldV2,\n i: initializeDeferredDecorator,\n m: decorateMethodV1,\n n: decorateMethodV2,\n p: decoratePOJO\n}, Symbol.toStringTag, { value: \"Module\" }));\nexport {\n decorateFieldV1 as a,\n decorateFieldV2 as b,\n decorateMethodV1 as c,\n decorateClass as d,\n decorateMethodV2 as e,\n decoratePOJO as f,\n initializeDeferredDecorator as i,\n runtime as r\n};\n//# sourceMappingURL=runtime--fcdnjmJ.js.map\n"],"names":["deferred","WeakMap","deferDecorator","proto","prop","desc","map","get","Map","set","findDeferredDecorator","target","_a","cursor","prototype","Object","getPrototypeOf","decorateFieldV2","decorators","initializer","configurable","enumerable","writable","decorator","defineProperty","decorateMethodV2","origDesc","getOwnPropertyDescriptor","value","call","initializeDeferredDecorator","constructor"],"mappings":"AAuBA,MAAMA,QAAA,sBAGEC,OAAA,EAAA;AAER,SAASC,eACPC,KAAA,EACAC,IAAA,EACAC,IAAA,EACM;AACN,EAAA,IAAIC,GAAA,GAAMN,QAAA,CAASO,GAAA,CAAIJ,KAAK,CAAA;EAC5B,IAAI,CAACG,GAAA,EAAK;AACRA,IAAAA,GAAA,sBAAUE,GAAA,EAAA;AACVR,IAAAA,QAAA,CAASS,GAAA,CAAIN,KAAA,EAAOG,GAAG,CAAA;AACzB,EAAA;AACAA,EAAAA,GAAA,CAAIG,GAAA,CAAIL,IAAA,EAAMC,IAAI,CAAA;AACpB;AAEA,SAASK,qBAAAA,CACPC,MAAA,EACAP,IAAA,EACwB;AArB1B,EAAA,IAAAQ,EAAA;AAsBE,EAAA,IAAIC,MAAA,GAAkBF,MAAA,CAAeG,SAAA;AACrC,EAAA,OAAOD,MAAA,EAAQ;AACb,IAAA,IAAIR,IAAA,GAAA,CAAOO,EAAA,GAAAZ,QAAA,CAASO,GAAA,CAAIM,MAAM,MAAnB,IAAA,GAAA,MAAA,GAAAD,EAAA,CAAsBL,GAAA,CAAIH,IAAA,CAAA;AACrC,IAAA,IAAIC,IAAA,EAAM;AACR,MAAA,OAAOA,IAAA;AACT,IAAA;AACAQ,IAAAA,MAAA,GAASE,MAAA,CAAOC,cAAA,CAAeH,MAAM,CAAA;AACvC,EAAA;AACF;AAWA,SAASI,eAAAA,CACPH,SAAA,EACAV,IAAA,EACAc,UAAA,EACAC,WAAA,EACM;AACN,EAAA,IAAId,IA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AAWV,IAAA,EAAMC,IAAI,CAAA;AAC7C;AAEA,SAASyB,2BAAAA,CACPnB,MAAA,EACAP,IAAA,EACM;EACN,IAAIC,IAAA,GAAOK,qBAAA,CAAsBC,MAAA,CAAOoB,WAAA,EAAa3B,IAAI,CAAA;AACzD,EAAA,IAAIC,IAAA,EAAM;AACRU,IAAAA,MAAA,CAAOS,cAAA,CAAeb,MAAA,EAAQP,IAAA,EAAM;MAClCiB,UAAA,EAAYhB,IAAA,CAAKgB,UAAA;MACjBD,YAAA,EAAcf,IAAA,CAAKe,YAAA;MACnBE,QAAA,EAAUjB,IAAA,CAAKiB,QAAA;AACfM,MAAAA,KAAA,EAAOvB,IAAA,CAAKc,WAAA,GAAcd,IAAA,CAAKc,WAAA,CAAYU,IAAA,CAAKlB,MAAM,CAAA,GAAI;KAC3D,CAAA;AACH,EAAA;AACF;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"runtime--fcdnjmJ-DOFHQ2m8.js","sources":["../../../node_modules/.pnpm/decorator-transforms@2.4.0_@babel+core@7.29.7/node_modules/decorator-transforms/dist/runtime--fcdnjmJ.js"],"sourcesContent":["const deferred = /* @__PURE__ */ new WeakMap();\nfunction deferDecorator(proto, prop, desc) {\n let map = deferred.get(proto);\n if (!map) {\n map = /* @__PURE__ */ new Map();\n deferred.set(proto, map);\n }\n map.set(prop, desc);\n}\nfunction findDeferredDecorator(target, prop) {\n var _a;\n let cursor = target.prototype;\n while (cursor) {\n let desc = (_a = deferred.get(cursor)) == null ? void 0 : _a.get(prop);\n if (desc) {\n return desc;\n }\n cursor = Object.getPrototypeOf(cursor);\n }\n}\nfunction decorateFieldV1(target, prop, decorators, initializer) {\n return decorateFieldV2(target.prototype, prop, decorators, initializer);\n}\nfunction decorateFieldV2(prototype, prop, decorators, initializer) {\n let desc = {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n };\n if (initializer) {\n desc.initializer = initializer;\n }\n for (let decorator of decorators) {\n desc = decorator(prototype, prop, desc) || desc;\n }\n if (desc.initializer === void 0) {\n Object.defineProperty(prototype, prop, desc);\n } else {\n deferDecorator(prototype, prop, desc);\n }\n}\nfunction decorateMethodV1({ prototype }, prop, decorators) {\n return decorateMethodV2(prototype, prop, decorators);\n}\nfunction decorateMethodV2(prototype, prop, decorators) {\n const origDesc = Object.getOwnPropertyDescriptor(prototype, prop);\n let desc = { ...origDesc };\n for (let decorator of decorators) {\n desc = decorator(prototype, prop, desc) || desc;\n }\n if (desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(prototype) : void 0;\n desc.initializer = void 0;\n }\n Object.defineProperty(prototype, prop, desc);\n}\nfunction initializeDeferredDecorator(target, prop) {\n let desc = findDeferredDecorator(target.constructor, prop);\n if (desc) {\n Object.defineProperty(target, prop, {\n enumerable: desc.enumerable,\n configurable: desc.configurable,\n writable: desc.writable,\n value: desc.initializer ? desc.initializer.call(target) : void 0\n });\n }\n}\nfunction decorateClass(target, decorators) {\n return decorators.reduce(\n (accum, decorator) => decorator(accum) || accum,\n target\n );\n}\nfunction decoratePOJO(pojo, decorated) {\n for (let [type, prop, decorators] of decorated) {\n if (type === \"field\") {\n decoratePojoField(pojo, prop, decorators);\n } else {\n decorateMethodV2(pojo, prop, decorators);\n }\n }\n return pojo;\n}\nfunction decoratePojoField(pojo, prop, decorators) {\n let desc = {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: () => {\n var _a;\n return (_a = Object.getOwnPropertyDescriptor(pojo, prop)) == null ? void 0 : _a.value;\n }\n };\n for (let decorator of decorators) {\n desc = decorator(pojo, prop, desc) || desc;\n }\n if (desc.initializer) {\n desc.value = desc.initializer.call(pojo);\n delete desc.initializer;\n }\n Object.defineProperty(pojo, prop, desc);\n}\nconst runtime = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n c: decorateClass,\n f: decorateFieldV1,\n g: decorateFieldV2,\n i: initializeDeferredDecorator,\n m: decorateMethodV1,\n n: decorateMethodV2,\n p: decoratePOJO\n}, Symbol.toStringTag, { value: \"Module\" }));\nexport {\n decorateFieldV1 as a,\n decorateFieldV2 as b,\n decorateMethodV1 as c,\n decorateClass as d,\n decorateMethodV2 as e,\n decoratePOJO as f,\n initializeDeferredDecorator as i,\n runtime as r\n};\n//# sourceMappingURL=runtime--fcdnjmJ.js.map\n"],"names":["deferred","WeakMap","deferDecorator","proto","prop","desc","map","get","Map","set","findDeferredDecorator","target","_a","cursor","prototype","Object","getPrototypeOf","decorateFieldV2","decorators","initializer","configurable","enumerable","writable","decorator","defineProperty","decorateMethodV2","origDesc","getOwnPropertyDescriptor","value","call","initializeDeferredDecorator","constructor"],"mappings":"AAuBA,MAAMA,QAAA,sBAGEC,OAAA,EAAA;AAER,SAASC,eACPC,KAAA,EACAC,IAAA,EACAC,IAAA,EACM;AACN,EAAA,IAAIC,GAAA,GAAMN,QAAA,CAASO,GAAA,CAAIJ,KAAK,CAAA;EAC5B,IAAI,CAACG,GAAA,EAAK;AACRA,IAAAA,GAAA,sBAAUE,GAAA,EAAA;AACVR,IAAAA,QAAA,CAASS,GAAA,CAAIN,KAAA,EAAOG,GAAG,CAAA;AACzB,EAAA;AACAA,EAAAA,GAAA,CAAIG,GAAA,CAAIL,IAAA,EAAMC,IAAI,CAAA;AACpB;AAEA,SAASK,qBAAAA,CACPC,MAAA,EACAP,IAAA,EACwB;AArB1B,EAAA,IAAAQ,EAAA;AAsBE,EAAA,IAAIC,MAAA,GAAkBF,MAAA,CAAeG,SAAA;AACrC,EAAA,OAAOD,MAAA,EAAQ;AACb,IAAA,IAAIR,IAAA,GAAA,CAAOO,EAAA,GAAAZ,QAAA,CAASO,GAAA,CAAIM,MAAM,MAAnB,IAAA,GAAA,MAAA,GAAAD,EAAA,CAAsBL,GAAA,CAAIH,IAAA,CAAA;AACrC,IAAA,IAAIC,IAAA,EAAM;AACR,MAAA,OAAOA,IAAA;AACT,IAAA;AACAQ,IAAAA,MAAA,GAASE,MAAA,CAAOC,cAAA,CAA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f,SAAS,CAAA,GAAI,MAAA;IACnET,IAAA,CAAKc,WAAA,GAAc,MAAA;AACrB,EAAA;AACAJ,EAAAA,MAAA,CAAOS,cAAA,CAAeV,SAAA,EAAWV,IAAA,EAAMC,IAAI,CAAA;AAC7C;AAEA,SAASyB,2BAAAA,CACPnB,MAAA,EACAP,IAAA,EACM;EACN,IAAIC,IAAA,GAAOK,qBAAA,CAAsBC,MAAA,CAAOoB,WAAA,EAAa3B,IAAI,CAAA;AACzD,EAAA,IAAIC,IAAA,EAAM;AACRU,IAAAA,MAAA,CAAOS,cAAA,CAAeb,MAAA,EAAQP,IAAA,EAAM;MAClCiB,UAAA,EAAYhB,IAAA,CAAKgB,UAAA;MACjBD,YAAA,EAAcf,IAAA,CAAKe,YAAA;MACnBE,QAAA,EAAUjB,IAAA,CAAKiB,QAAA;AACfM,MAAAA,KAAA,EAAOvB,IAAA,CAAKc,WAAA,GAAcd,IAAA,CAAKc,WAAA,CAAYU,IAAA,CAAKlB,MAAM,CAAA,GAAI;KAC3D,CAAA;AACH,EAAA;AACF;;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  import Service from '@ember/service';
2
- import { a as NotificationsManager } from '../manager-Dge4r8Vn.js';
2
+ import { a as NotificationsManager } from '../manager-DFO_x6Jr.js';
3
3
 
4
4
  class NotificationsService extends Service {
5
5
  onRemoveCallback;
@@ -1,16 +1,12 @@
1
1
  import { _backburner } from '@ember/runloop';
2
- import EmberObject from '@ember/object';
2
+ import '@ember/object';
3
3
  import '@ember/application';
4
- import '@ember/application/instance';
5
- import '@ember/-internals/container';
6
- import { RegistryProxyMixin, ContainerProxyMixin } from '@ember/-internals/runtime';
4
+ import '@ember/destroyable';
7
5
  import { Test } from 'ember-testing';
8
6
  import '@ember/-internals/error-handling';
9
7
  import { registerDeprecationHandler, registerWarnHandler } from '@ember/debug';
10
8
  import { VERSION } from '@ember/version';
11
9
  import { getPendingWaiterState, hasPendingWaiters } from '@ember/test-waiters';
12
- import '@ember/destroyable';
13
- import '@ember/-internals/views';
14
10
  import '@glimmer/manager';
15
11
  import { macroCondition, appEmberSatisfies, importSync, dependencySatisfies } from '@embroider/macros';
16
12
  import { precompileTemplate } from '@ember/template-compilation';
@@ -292,42 +288,6 @@ function isNotNullable(value) {
292
288
  return value != null;
293
289
  }
294
290
 
295
- // NOTE: this is the same as what `EngineInstance`/`ApplicationInstance`
296
- // implement, and is thus a superset of the `InternalOwner` contract from Ember
297
- // itself.
298
- // This is the same merging pattern Ember itself uses for `Engine` etc.: the
299
- // interface reflects the mixins actually applied in the `extends` clause.
300
- // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
301
-
302
- // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
303
- class Owner extends EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin) {
304
- _emberTestHelpersMockOwner = true;
305
-
306
- /* eslint-disable valid-jsdoc */
307
- /**
308
- * Unregister a factory and its instance.
309
- *
310
- * Overrides `RegistryProxy#unregister` in order to clear any cached instances
311
- * of the unregistered factory.
312
- *
313
- * @param {string} fullName Name of the factory to unregister.
314
- *
315
- * @see {@link https://github.com/emberjs/ember.js/pull/12680}
316
- * @see {@link https://github.com/emberjs/ember.js/blob/v4.5.0-alpha.5/packages/%40ember/engine/instance.ts#L152-L167}
317
- */
318
- /* eslint-enable valid-jsdoc */
319
- unregister(fullName) {
320
- // SAFETY: this is always present, but only the stable type definitions from
321
- // Ember actually preserve it, since it is private API.
322
- this['__container__'].reset(fullName);
323
-
324
- // We overwrote this method from RegistryProxyMixin.
325
- // SAFETY: this is always present, but only the stable type definitions from
326
- // Ember actually preserve it, since it is private API.
327
- this['__registry__'].unregister(fullName);
328
- }
329
- }
330
-
331
291
  // eslint-disable-next-line require-jsdoc
332
292
  function isElement(target) {
333
293
  return target !== null && typeof target === 'object' && Reflect.get(target, 'nodeType') === Node.ELEMENT_NODE;
@@ -865,15 +825,7 @@ function getRootElement() {
865
825
  if (!context || !isTestContext(context) || !context.owner) {
866
826
  throw new Error('Must setup rendering context before attempting to interact with elements.');
867
827
  }
868
- const owner = context.owner;
869
- let rootElement;
870
- // When the host app uses `setApplication` (instead of `setResolver`) the owner has
871
- // a `rootElement` set on it with the element or id to be used
872
- if (owner && owner._emberTestHelpersMockOwner === undefined) {
873
- rootElement = owner.rootElement;
874
- } else {
875
- rootElement = '#ember-testing';
876
- }
828
+ let rootElement = context.owner.rootElement;
877
829
  if (rootElement instanceof Window) {
878
830
  rootElement = rootElement.document;
879
831
  }
@@ -1 +1 @@
1
- {"version":3,"file":"test-support.js","sources":["../../../node_modules/.pnpm/@ember+test-helpers@5.7.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/-internal/deprecations.js","../../../node_modules/.pnpm/@ember+test-helpers@5.7.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/-internal/warnings.js","../../../node_modules/.pnpm/@ember+test-helpers@5.7.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/has-ember-version.js","../../../node_modules/.pnpm/@ember+test-helpers@5.7.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/-internal/debug-info-helpers.js","../../../node_modules/.pnpm/@ember+test-helpers@5.7.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/-internal/debug-info.js","../../../node_modules/.pnpm/@ember+test-helpers@5.7.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/dom/-logging.js","../src/test-support.ts"],"sourcesContent":["import { registerDeprecationHandler } from '@ember/debug';\nimport isPromise from './is-promise.js';\n\nconst DEPRECATIONS = new WeakMap();\n\n/**\n *\n * Provides the list of deprecation failures associated with a given base context;\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @return {Array<DeprecationFailure>} the Deprecation Failures associated with the corresponding BaseContext;\n */\nfunction getDeprecationsForContext(context) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get deprecations for an invalid test context: '${context}'`);\n }\n let deprecations = DEPRECATIONS.get(context);\n if (!Array.isArray(deprecations)) {\n deprecations = [];\n DEPRECATIONS.set(context, deprecations);\n }\n return deprecations;\n}\n\n/**\n *\n * Provides the list of deprecation failures associated with a given base\n * context which occur while a callback is executed. This callback can be\n * synchronous, or it can be an async function.\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @param {Function} [callback] The callback that when executed will have its DeprecationFailure recorded\n * @return {Array<DeprecationFailure>} The Deprecation Failures associated with the corresponding baseContext which occurred while the CallbackFunction was executed\n */\nfunction getDeprecationsDuringCallbackForContext(context, callback) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get deprecations for an invalid test context: '${context}'`);\n }\n const deprecations = getDeprecationsForContext(context);\n const previousLength = deprecations.length;\n const result = callback();\n if (isPromise(result)) {\n return Promise.resolve(result).then(() => {\n return deprecations.slice(previousLength); // only return deprecations created as a result of the callback\n });\n } else {\n return deprecations.slice(previousLength); // only return deprecations created as a result of the callback\n }\n}\n\n// This provides (when the environment supports) queryParam support for deprecations:\n// * squelch deprecations by name via: `/tests/index.html?disabledDeprecations=this-property-fallback,some-other-thing`\n// * enable a debuggger when a deprecation by a specific name is encountered via: `/tests/index.html?debugDeprecations=some-other-thing` when the\nif (typeof URLSearchParams !== 'undefined') {\n const queryParams = new URLSearchParams(document.location.search.substring(1));\n const disabledDeprecations = queryParams.get('disabledDeprecations');\n const debugDeprecations = queryParams.get('debugDeprecations');\n\n // When using `/tests/index.html?disabledDeprecations=this-property-fallback,some-other-thing`\n // those deprecations will be squelched\n if (disabledDeprecations) {\n registerDeprecationHandler((message, options, next) => {\n if (!options || !disabledDeprecations.includes(options.id)) {\n next.apply(null, [message, options]);\n }\n });\n }\n\n // When using `/tests/index.html?debugDeprecations=some-other-thing` when the\n // `some-other-thing` deprecation is triggered, this `debugger` will be hit`\n if (debugDeprecations) {\n registerDeprecationHandler((message, options, next) => {\n if (options && debugDeprecations.includes(options.id)) {\n debugger; // eslint-disable-line no-debugger\n }\n next.apply(null, [message, options]);\n });\n }\n}\n\nexport { getDeprecationsDuringCallbackForContext, getDeprecationsForContext };\n//# sourceMappingURL=deprecations.js.map\n","import { registerWarnHandler } from '@ember/debug';\nimport isPromise from './is-promise.js';\n\n// the WARNINGS data structure which is used to weakly associated warnings with\n// the test context their occurred within\nconst WARNINGS = new WeakMap();\n\n/**\n *\n * Provides the list of warnings associated with a given base context;\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @return {Array<Warning>} the warnings associated with the corresponding BaseContext;\n */\nfunction getWarningsForContext(context) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get warnings for an invalid test context: '${context}'`);\n }\n let warnings = WARNINGS.get(context);\n if (!Array.isArray(warnings)) {\n warnings = [];\n WARNINGS.set(context, warnings);\n }\n return warnings;\n}\n\n/**\n *\n * Provides the list of warnings associated with a given test context which\n * occurred only while a the provided callback is executed. This callback can be\n * synchronous, or it can be an async function.\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @param {Function} [callback] The callback that when executed will have its warnings recorded\n * @return {Array<Warning>} The warnings associated with the corresponding baseContext which occurred while the CallbackFunction was executed\n */\nfunction getWarningsDuringCallbackForContext(context, callback) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get warnings for an invalid test context: '${context}'`);\n }\n const warnings = getWarningsForContext(context);\n const previousLength = warnings.length;\n const result = callback();\n if (isPromise(result)) {\n return Promise.resolve(result).then(() => {\n return warnings.slice(previousLength); // only return warnings created as a result of the callback\n });\n } else {\n return warnings.slice(previousLength); // only return warnings created as a result of the callback\n }\n}\n\n// This provides (when the environment supports) queryParam support for warnings:\n// * squelch warnings by name via: `/tests/index.html?disabledWarnings=this-property-fallback,some-other-thing`\n// * enable a debuggger when a warning by a specific name is encountered via: `/tests/index.html?debugWarnings=some-other-thing` when the\nif (typeof URLSearchParams !== 'undefined') {\n const queryParams = new URLSearchParams(document.location.search.substring(1));\n const disabledWarnings = queryParams.get('disabledWarnings');\n const debugWarnings = queryParams.get('debugWarnings');\n\n // When using `/tests/index.html?disabledWarnings=this-property-fallback,some-other-thing`\n // those warnings will be squelched\n if (disabledWarnings) {\n registerWarnHandler((message, options, next) => {\n if (!options || !disabledWarnings.includes(options.id)) {\n next.apply(null, [message, options]);\n }\n });\n }\n\n // When using `/tests/index.html?debugWarnings=some-other-thing` when the\n // `some-other-thing` warning is triggered, this `debugger` will be hit`\n if (debugWarnings) {\n registerWarnHandler((message, options, next) => {\n if (options && debugWarnings.includes(options.id)) {\n debugger; // eslint-disable-line no-debugger\n }\n next.apply(null, [message, options]);\n });\n }\n}\n\nexport { getWarningsDuringCallbackForContext, getWarningsForContext };\n//# sourceMappingURL=warnings.js.map\n","import { VERSION } from '@ember/version';\n\n// @ts-ignore\n\n/**\n Checks if the currently running Ember version is greater than or equal to the\n specified major and minor version numbers.\n\n @private\n @param {number} major the major version number to compare\n @param {number} minor the minor version number to compare\n @returns {boolean} true if the Ember version is >= MAJOR.MINOR specified, false otherwise\n*/\nfunction hasEmberVersion(major, minor) {\n const numbers = VERSION.split('-')[0]?.split('.');\n if (!numbers || !numbers[0] || !numbers[1]) {\n throw new Error('`Ember.VERSION` is not set.');\n }\n const actualMajor = parseInt(numbers[0], 10);\n const actualMinor = parseInt(numbers[1], 10);\n return actualMajor > major || actualMajor === major && actualMinor >= minor;\n}\n\nexport { hasEmberVersion as default };\n//# sourceMappingURL=has-ember-version.js.map\n","const debugInfoHelpers = new Set();\n\n/**\n * Registers a custom debug info helper to augment the output for test isolation validation.\n *\n * @public\n * @param {DebugInfoHelper} debugHelper a custom debug info helper\n * @example\n *\n * import { registerDebugInfoHelper } from '@ember/test-helpers';\n *\n * registerDebugInfoHelper({\n * name: 'Date override detection',\n * log() {\n * if (dateIsOverridden()) {\n * console.log(this.name);\n * console.log('The date object has been overridden');\n * }\n * }\n * })\n */\nfunction registerDebugInfoHelper(debugHelper) {\n debugInfoHelpers.add(debugHelper);\n}\n\nexport { debugInfoHelpers, registerDebugInfoHelper as default };\n//# sourceMappingURL=debug-info-helpers.js.map\n","import { _backburner } from '@ember/runloop';\nimport { debugInfoHelpers } from './debug-info-helpers.js';\nimport { getPendingWaiterState } from '@ember/test-waiters';\n\n// @ts-ignore: this is private API. This import will work Ember 5.1+ since it\n// \"provides\" this public API, but does not for earlier versions. As a result,\n// this type will be `any`.\nconst PENDING_AJAX_REQUESTS = 'Pending AJAX requests';\nconst PENDING_TEST_WAITERS = 'Pending test waiters';\nconst SCHEDULED_ASYNC = 'Scheduled async';\nconst SCHEDULED_AUTORUN = 'Scheduled autorun';\n\n/**\n * The base functionality which may be present on the `SettledState` interface\n * in the `settled` module (**not** the one in this module).\n */\n\n/**\n * Determines if the `getDebugInfo` method is available in the\n * running verison of backburner.\n *\n * @returns {boolean} True if `getDebugInfo` is present in backburner, otherwise false.\n */\nfunction backburnerDebugInfoAvailable() {\n return typeof _backburner.getDebugInfo === 'function';\n}\n\n/**\n * Retrieves debug information from backburner's current deferred actions queue (runloop instance).\n * If the `getDebugInfo` method isn't available, it returns `null`.\n *\n * @public\n * @returns {MaybeDebugInfo | null} Backburner debugInfo or, if the getDebugInfo method is not present, null\n */\nfunction getDebugInfo() {\n return _backburner.DEBUG === true && backburnerDebugInfoAvailable() ? _backburner.getDebugInfo() : null;\n}\n\n/**\n * Encapsulates debug information for an individual test. Aggregates information\n * from:\n * - info provided by getSettledState\n * - hasPendingTimers\n * - hasRunLoop\n * - hasPendingWaiters\n * - hasPendingRequests\n * - info provided by backburner's getDebugInfo method (timers, schedules, and stack trace info)\n *\n */\nclass TestDebugInfo {\n _settledState;\n _debugInfo;\n _summaryInfo = undefined;\n constructor(settledState, debugInfo = getDebugInfo()) {\n this._settledState = settledState;\n this._debugInfo = debugInfo;\n }\n get summary() {\n if (!this._summaryInfo) {\n this._summaryInfo = {\n ...this._settledState\n };\n if (this._debugInfo) {\n this._summaryInfo.autorunStackTrace = this._debugInfo.autorun && this._debugInfo.autorun.stack;\n this._summaryInfo.pendingTimersCount = this._debugInfo.timers.length;\n this._summaryInfo.hasPendingTimers = this._settledState.hasPendingTimers && this._summaryInfo.pendingTimersCount > 0;\n this._summaryInfo.pendingTimersStackTraces = this._debugInfo.timers.map(timer => timer.stack);\n this._summaryInfo.pendingScheduledQueueItemCount = this._debugInfo.instanceStack.filter(isNotNullable).reduce((total, item) => {\n Object.values(item).forEach(queueItems => {\n // SAFETY: this cast is required for versions of Ember which do\n // not supply a correct definition of these types. It should\n // also be compatible with the version where Ember *does* supply\n // the types correctly.\n total += queueItems?.length ?? 0;\n });\n return total;\n }, 0);\n this._summaryInfo.pendingScheduledQueueItemStackTraces = this._debugInfo.instanceStack.filter(isNotNullable).reduce((stacks, deferredActionQueues) => {\n Object.values(deferredActionQueues).forEach(queueItems => {\n // SAFETY: this cast is required for versions of Ember which do\n // not supply a correct definition of these types. It should\n // also be compatible with the version where Ember *does* supply\n // the types correctly.\n queueItems?.forEach(queueItem => queueItem.stack && stacks.push(queueItem.stack));\n });\n return stacks;\n }, []);\n }\n if (this._summaryInfo.hasPendingTestWaiters) {\n this._summaryInfo.pendingTestWaiterInfo = getPendingWaiterState();\n }\n }\n return this._summaryInfo;\n }\n toConsole(_console = console) {\n const summary = this.summary;\n if (summary.hasPendingRequests) {\n _console.log(PENDING_AJAX_REQUESTS);\n }\n if (summary.hasPendingLegacyWaiters) {\n _console.log(PENDING_TEST_WAITERS);\n }\n if (summary.hasPendingTestWaiters) {\n if (!summary.hasPendingLegacyWaiters) {\n _console.log(PENDING_TEST_WAITERS);\n }\n Object.keys(summary.pendingTestWaiterInfo.waiters).forEach(waiterName => {\n const waiterDebugInfo = summary.pendingTestWaiterInfo.waiters[waiterName];\n if (Array.isArray(waiterDebugInfo)) {\n _console.group(waiterName);\n waiterDebugInfo.forEach(debugInfo => {\n _console.log(`${debugInfo.label ? debugInfo.label : 'stack'}: ${debugInfo.stack}`);\n });\n _console.groupEnd();\n } else {\n _console.log(waiterName);\n }\n });\n }\n if (summary.hasPendingTimers || summary.pendingScheduledQueueItemCount > 0) {\n _console.group(SCHEDULED_ASYNC);\n summary.pendingTimersStackTraces.forEach(timerStack => {\n _console.log(timerStack);\n });\n summary.pendingScheduledQueueItemStackTraces.forEach(scheduleQueueItemStack => {\n _console.log(scheduleQueueItemStack);\n });\n _console.groupEnd();\n }\n if (summary.hasRunLoop && summary.pendingTimersCount === 0 && summary.pendingScheduledQueueItemCount === 0) {\n _console.log(SCHEDULED_AUTORUN);\n if (summary.autorunStackTrace) {\n _console.log(summary.autorunStackTrace);\n }\n }\n debugInfoHelpers.forEach(helper => {\n helper.log();\n });\n }\n _formatCount(title, count) {\n return `${title}: ${count}`;\n }\n}\n\n// eslint-disable-next-line require-jsdoc, @typescript-eslint/no-empty-object-type\nfunction isNotNullable(value) {\n return value != null;\n}\n\nexport { TestDebugInfo, backburnerDebugInfoAvailable, getDebugInfo };\n//# sourceMappingURL=debug-info.js.map\n","/**\n * Logs a debug message to the console if the `testHelperLogging` query\n * parameter is set.\n *\n * @private\n * @param {string} helperName Name of the helper\n * @param {string|Element} target The target element or selector\n */\nfunction log(helperName, target, ...args) {\n if (loggingEnabled()) {\n // eslint-disable-next-line no-console\n console.log(`${helperName}(${[elementToString(target), ...args.filter(Boolean)].join(', ')})`);\n }\n}\n\n/**\n * Returns whether the test helper logging is enabled or not via the\n * `testHelperLogging` query parameter.\n *\n * @private\n * @returns {boolean} true if enabled\n */\nfunction loggingEnabled() {\n return typeof location !== 'undefined' && location.search.indexOf('testHelperLogging') !== -1;\n}\n\n/**\n * This generates a human-readable description to a DOM element.\n *\n * @private\n * @param {*} el The element that should be described\n * @returns {string} A human-readable description\n */\nfunction elementToString(el) {\n let desc;\n if (el instanceof NodeList) {\n if (el.length === 0) {\n return 'empty NodeList';\n }\n desc = Array.prototype.slice.call(el, 0, 5).map(elementToString).join(', ');\n return el.length > 5 ? `${desc}... (+${el.length - 5} more)` : desc;\n }\n if (!(el instanceof HTMLElement || el instanceof SVGElement)) {\n return String(el);\n }\n desc = el.tagName.toLowerCase();\n if (el.id) {\n desc += `#${el.id}`;\n }\n if (el.className && !(el.className instanceof SVGAnimatedString)) {\n desc += `.${String(el.className).replace(/\\s+/g, '.')}`;\n }\n Array.prototype.forEach.call(el.attributes, function (attr) {\n if (attr.name !== 'class' && attr.name !== 'id') {\n desc += `[${attr.name}${attr.value ? `=\"${attr.value}\"]` : ']'}`;\n }\n });\n return desc;\n}\n\nexport { elementToString, log };\n//# sourceMappingURL=-logging.js.map\n","import { triggerEvent, focus, triggerKeyEvent } from '@ember/test-helpers';\nimport { parseDate } from './components/forms/date-picker/value';\n\nexport function selectOptionByKey(\n selectSelector: string,\n key: string\n): Promise<void> {\n return changeOption('selectOptionByKey', selectSelector, key, false);\n}\n\nexport function toggleOptionByKey(\n selectSelector: string,\n key: string\n): Promise<void> {\n return changeOption('toggleOptionByKey', selectSelector, key, true);\n}\n\nfunction changeOption(\n functionName: string,\n selectSelector: string,\n key: string,\n toggle: boolean\n): Promise<void> {\n const container = document.querySelector(selectSelector);\n\n if (!container) {\n throw new Error(\n `You called \"${functionName}('${selectSelector}', '${key}')\" but no select was found using selector \"${selectSelector}\"`\n );\n }\n\n let select: Element | null = container;\n if (container.tagName !== 'SELECT') {\n // `data-component=\"native-select\"` lives on FormControl's root element,\n // not the `<select>` itself (the anatomy contract puts `data-component`\n // only on a component's outermost element, and the `<select>` is a\n // *part* of `native-select`, not its root). `data-test-id=\"native-select\"`\n // stays directly on the `<select>` tag, so it is the stable way to reach\n // it from an arbitrary ancestor container.\n select = container.querySelector('[data-test-id=\"native-select\"]');\n }\n\n if (!select) {\n throw new Error(\n `You called \"${functionName}('${selectSelector}', '${key}')\" but no select was found inside container using selector \"${selectSelector}\"`\n );\n }\n\n const option = select.querySelector(`[data-key=\"${key}\"]`) as\n HTMLOptionElement | undefined;\n if (!option) {\n // A Select with `@displayLimit` holds only the first options (and the\n // selected ones) in its hidden `<select>`, like its listbox.\n throw new Error(\n `You called \"${functionName}('${selectSelector}', '${key}')\" but no option with key \"${key}\" was found. ` +\n 'With @displayLimit, only the first options and the selected ones are there: type into the filter and click the option instead.'\n );\n }\n\n if (toggle && option.selected) {\n option.selected = false;\n } else {\n option.selected = true;\n }\n\n return triggerEvent(select, 'change');\n}\n\nexport { setPrefersReducedMotion } from './utils/prefers-reduced-motion';\n\n/**\n * Selects the elements bearing `[data-part=\"${part}\"]` whose *own* anatomy\n * root is `root` — i.e. `root` is the nearest `[data-component]` ancestor.\n *\n * `[data-component=\"X\"] [data-part=\"Y\"]` (plain CSS descendant combinator)\n * matches \"any descendant\", which is ambiguous whenever a component with a\n * part named `Y` renders a nested component that also has an element\n * carrying `data-part=\"Y\"` (its own part, or a caller-supplied one on the\n * nested component's root). CSS has no \"nearest enclosing\" combinator, so\n * this helper resolves ownership the same way behavioural code would have\n * to: walk up from the part element and confirm the nearest\n * `[data-component]` ancestor is `root`.\n *\n * The walk starts at `el.parentElement`, not `el` itself, deliberately:\n * `el` may itself be a nested component's root (e.g. `CloseButton`, which\n * carries its own `data-component=\"close-button\"` on the very element that\n * also carries a caller-supplied `data-part=\"clear-button\"` or\n * `data-part=\"close-button\"`). Starting `closest()`/the walk from `el`\n * would match `el` itself and never reach `root`, wrongly excluding a part\n * that legitimately belongs to `root`.\n */\nexport function ownParts(root: Element, part: string): Element[] {\n return [...root.querySelectorAll(`[data-part=\"${part}\"]`)].filter((el) => {\n let node = el.parentElement;\n while (node && node !== root) {\n if (node.hasAttribute('data-component')) return false;\n node = node.parentElement;\n }\n return node === root;\n });\n}\n\n/**\n * Types a date into a segmented `DateInput` or `DatePicker`.\n *\n * `fillIn` cannot do this and, worse, does not fail when you try. The segments\n * are `contenteditable`, so `fillIn` writes their text and fires `input`\n * without complaint -- but the component renders from its own segments and\n * listens only to `beforeinput`/`keydown`, so nothing reaches the value. The\n * result is a test that reads green, whose `assert.dom(...).hasText('01')`\n * even passes, while the component's value stayed `null` and the form would\n * submit empty.\n *\n * This types the digits segment by segment the way a person does, so the value\n * composes through the same commit path as real input.\n *\n * ```js\n * await fillDate('[data-test-due]', '2026-01-20');\n * await fillDate('[data-test-due]', new Date(2026, 0, 20));\n * ```\n *\n * For `@mode=\"range\"` use {@link fillDateRange}.\n */\nexport function fillDate(\n selector: string,\n value: Date | string\n): Promise<void> {\n return fillGroup('fillDate', selector, value, 0);\n}\n\n/**\n * Types both ends of a range into a segmented `DatePicker @mode=\"range\"`.\n *\n * ```js\n * await fillDateRange('[data-test-trip]', '2026-01-20', '2026-01-25');\n * ```\n */\nexport async function fillDateRange(\n selector: string,\n start: Date | string,\n end: Date | string\n): Promise<void> {\n await fillGroup('fillDateRange', selector, start, 0);\n await fillGroup('fillDateRange', selector, end, 1);\n}\n\nfunction clockHour(hours: number, segment: HTMLElement): number {\n const min = Number(segment.getAttribute('aria-valuemin'));\n const max = Number(segment.getAttribute('aria-valuemax'));\n if (max === 12) return hours % 12 || 12;\n if (max === 11) return hours % 12;\n if (min === 1) return hours || 24;\n return hours;\n}\n\n/**\n * AM/PM is typed by a letter that depends on the locale, so it is stepped\n * instead: ArrowUp fills an empty segment and toggles a filled one.\n */\nasync function setDayPeriod(segment: HTMLElement, value: 0 | 1): Promise<void> {\n await focus(segment);\n for (let i = 0; i < 2; i++) {\n if (segment.getAttribute('aria-valuenow') === String(value)) return;\n await triggerKeyEvent(segment, 'keydown', 'ArrowUp');\n }\n}\n\n/**\n * Reuses the component's own parser rather than restating the wire format, so\n * the helper cannot drift from what `@value` actually accepts -- but turns a\n * refusal into a thrown error, since a test helper handed a bad date should\n * say so rather than quietly fill nothing.\n */\nfunction asDate(functionName: string, value: Date | string): Date {\n const parsed = parseDate(value);\n if (!parsed) {\n throw new Error(\n `You called \"${functionName}\" with \"${String(value)}\", which is neither a Date nor a yyyy-MM-dd or yyyy-MM-ddTHH:mm string.`\n );\n }\n\n return parsed;\n}\n\nasync function fillGroup(\n functionName: string,\n selector: string,\n value: Date | string,\n which: 0 | 1\n): Promise<void> {\n const container = document.querySelector(selector);\n if (!container) {\n throw new Error(\n `You called \"${functionName}('${selector}', ...)\" but no element was found using selector \"${selector}\".`\n );\n }\n\n const group = container.querySelectorAll('[data-part=\"group\"]')[which];\n\n if (!group) {\n // Far and away the likeliest cause: the field is on the button-trigger\n // path, where there is nothing to type into at all.\n const hasButtonTrigger = container.querySelector('[data-part=\"input\"]');\n throw new Error(\n hasButtonTrigger\n ? `You called \"${functionName}('${selector}', ...)\" on a date field rendering its button trigger, which cannot be typed into. Drop @isEditable={{false}}, or click the trigger and pick from the calendar.`\n : `You called \"${functionName}('${selector}', ...)\" but found no date segments inside \"${selector}\".`\n );\n }\n\n const date = asDate(functionName, value);\n const pad = (n: number, width = 2): string => String(n).padStart(width, '0');\n const digits: Record<string, string> = {\n year: pad(date.getFullYear(), 4),\n month: pad(date.getMonth() + 1),\n day: pad(date.getDate()),\n minute: pad(date.getMinutes())\n };\n\n for (const segment of group.querySelectorAll('[data-part=\"segment\"]')) {\n const element = segment as HTMLElement;\n const type = element.dataset['type'];\n\n if (type === 'dayPeriod') {\n await setDayPeriod(element, date.getHours() < 12 ? 0 : 1);\n continue;\n }\n\n // The hour goes in as the field's own clock counts it, which its\n // spinbutton bounds give away: 1-12 or 0-11 for AM/PM, 0-23 or 1-24 not.\n const run =\n type === 'hour'\n ? pad(clockHour(date.getHours(), element))\n : type\n ? digits[type]\n : undefined;\n if (!run) continue;\n\n await focus(element);\n for (const digit of run) {\n await triggerKeyEvent(element, 'keydown', digit);\n }\n }\n}\n"],"names":["DEPRECATIONS","WeakMap","getDeprecationsForContext","context","TypeError","deprecations","get","Array","isArray","set","URLSearchParams","queryParams","document","location","search","substring","disabledDeprecations","debugDeprecations","registerDeprecationHandler","message","options","next","includes","id","apply","WARNINGS","getWarningsForContext","warnings","disabledWarnings","debugWarnings","registerWarnHandler","hasEmberVersion","major","minor","numbers","VERSION","split","Error","actualMajor","parseInt","actualMinor","debugInfoHelpers","Set","PENDING_AJAX_REQUESTS","PENDING_TEST_WAITERS","SCHEDULED_ASYNC","SCHEDULED_AUTORUN","backburnerDebugInfoAvailable","_backburner","getDebugInfo","DEBUG","TestDebugInfo","_settledState","_debugInfo","_summaryInfo","undefined","constructor","settledState","debugInfo","summary","autorunStackTrace","autorun","stack","pendingTimersCount","timers","length","hasPendingTimers","pendingTimersStackTraces","map","timer","pendingScheduledQueueItemCount","instanceStack","filter","isNotNullable","reduce","total","item","Object","values","forEach","queueItems","pendingScheduledQueueItemStackTraces","stacks","deferredActionQueues","queueItem","push","hasPendingTestWaiters","pendingTestWaiterInfo","getPendingWaiterState","toConsole","_console","console","hasPendingRequests","log","hasPendingLegacyWaiters","keys","waiters","waiterName","waiterDebugInfo","group","label","groupEnd","timerStack","scheduleQueueItemStack","hasRunLoop","helper","_formatCount","title","count","value","helperName","target","args","loggingEnabled","elementToString","Boolean","join","indexOf","el","desc","NodeList","prototype","slice","call","HTMLElement","SVGElement","String","tagName","toLowerCase","className","SVGAnimatedString","replace","attributes","attr","name","selectOptionByKey","selectSelector","key","changeOption","toggleOptionByKey","functionName","toggle","container","querySelector","select","option","selected","triggerEvent","ownParts","root","part","querySelectorAll","node","parentElement","hasAttribute","fillDate","selector","fillGroup","fillDateRange","start","end","clockHour","hours","segment","min","Number","getAttribute","max","setDayPeriod","focus","i","triggerKeyEvent","asDate","parsed","parseDate","which","hasButtonTrigger","date","pad","n","width","padStart","digits","year","getFullYear","month","getMonth","day","getDate","minute","getMinutes","element","type","dataset","getHours","run","digit"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkBA,MAAMA,YAAY,GAAG,IAAIC,OAAO,EAA0C;;AAE1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,yBAAyBA,CACvCC,OAAoB,EACO;EAC3B,IAAI,CAACA,OAAO,EAAE;AACZ,IAAA,MAAM,IAAIC,SAAS,CACjB,CAAA,+EAAA,EAAkFD,OAAO,GAC3F,CAAC;AACH,EAAA;AAEA,EAAA,IAAIE,YAAY,GAAGL,YAAY,CAACM,GAAG,CAACH,OAAO,CAAC;AAE5C,EAAA,IAAI,CAACI,KAAK,CAACC,OAAO,CAACH,YAAY,CA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ACa,UAAU,EAAE;GAC9B;EAED,KAAK,MAAM3B,OAAO,IAAIhE,KAAK,CAACoD,gBAAgB,CAAC,uBAAuB,CAAC,EAAE;IACrE,MAAMwC,OAAO,GAAG5B,OAAsB;AACtC,IAAA,MAAM6B,IAAI,GAAGD,OAAO,CAACE,OAAO,CAAC,MAAM,CAAC;IAEpC,IAAID,IAAI,KAAK,WAAW,EAAE;AACxB,MAAA,MAAMxB,YAAY,CAACuB,OAAO,EAAEd,IAAI,CAACiB,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;AACzD,MAAA;AACF,IAAA;;AAEA;AACA;IACA,MAAMC,GAAG,GACPH,IAAI,KAAK,MAAM,GACXd,GAAG,CAACjB,SAAS,CAACgB,IAAI,CAACiB,QAAQ,EAAE,EAAEH,OAAO,CAAC,CAAC,GACxCC,IAAI,GACFV,MAAM,CAACU,IAAI,CAAC,GACZzI,SAAS;IACjB,IAAI,CAAC4I,GAAG,EAAE;IAEV,MAAM1B,KAAK,CAACsB,OAAO,CAAC;AACpB,IAAA,KAAK,MAAMK,KAAK,IAAID,GAAG,EAAE;AACvB,MAAA,MAAMxB,eAAe,CAACoB,OAAO,EAAE,SAAS,EAAEK,KAAK,CAAC;AAClD,IAAA;AACF,EAAA;AACF;;","x_google_ignoreList":[0,1,2,3,4,5]}
1
+ {"version":3,"file":"test-support.js","sources":["../../../node_modules/.pnpm/@ember+test-helpers@5.8.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/-internal/deprecations.js","../../../node_modules/.pnpm/@ember+test-helpers@5.8.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/-internal/warnings.js","../../../node_modules/.pnpm/@ember+test-helpers@5.8.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/has-ember-version.js","../../../node_modules/.pnpm/@ember+test-helpers@5.8.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/-internal/debug-info-helpers.js","../../../node_modules/.pnpm/@ember+test-helpers@5.8.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/-internal/debug-info.js","../../../node_modules/.pnpm/@ember+test-helpers@5.8.0_@babel+core@7.29.7/node_modules/@ember/test-helpers/dist/dom/-logging.js","../src/test-support.ts"],"sourcesContent":["import { registerDeprecationHandler } from '@ember/debug';\nimport isPromise from './is-promise.js';\n\nconst DEPRECATIONS = new WeakMap();\n\n/**\n *\n * Provides the list of deprecation failures associated with a given base context;\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @return {Array<DeprecationFailure>} the Deprecation Failures associated with the corresponding BaseContext;\n */\nfunction getDeprecationsForContext(context) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get deprecations for an invalid test context: '${context}'`);\n }\n let deprecations = DEPRECATIONS.get(context);\n if (!Array.isArray(deprecations)) {\n deprecations = [];\n DEPRECATIONS.set(context, deprecations);\n }\n return deprecations;\n}\n\n/**\n *\n * Provides the list of deprecation failures associated with a given base\n * context which occur while a callback is executed. This callback can be\n * synchronous, or it can be an async function.\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @param {Function} [callback] The callback that when executed will have its DeprecationFailure recorded\n * @return {Array<DeprecationFailure>} The Deprecation Failures associated with the corresponding baseContext which occurred while the CallbackFunction was executed\n */\nfunction getDeprecationsDuringCallbackForContext(context, callback) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get deprecations for an invalid test context: '${context}'`);\n }\n const deprecations = getDeprecationsForContext(context);\n const previousLength = deprecations.length;\n const result = callback();\n if (isPromise(result)) {\n return Promise.resolve(result).then(() => {\n return deprecations.slice(previousLength); // only return deprecations created as a result of the callback\n });\n } else {\n return deprecations.slice(previousLength); // only return deprecations created as a result of the callback\n }\n}\n\n// This provides (when the environment supports) queryParam support for deprecations:\n// * squelch deprecations by name via: `/tests/index.html?disabledDeprecations=this-property-fallback,some-other-thing`\n// * enable a debuggger when a deprecation by a specific name is encountered via: `/tests/index.html?debugDeprecations=some-other-thing` when the\nif (typeof URLSearchParams !== 'undefined') {\n const queryParams = new URLSearchParams(document.location.search.substring(1));\n const disabledDeprecations = queryParams.get('disabledDeprecations');\n const debugDeprecations = queryParams.get('debugDeprecations');\n\n // When using `/tests/index.html?disabledDeprecations=this-property-fallback,some-other-thing`\n // those deprecations will be squelched\n if (disabledDeprecations) {\n registerDeprecationHandler((message, options, next) => {\n if (!options || !disabledDeprecations.includes(options.id)) {\n next.apply(null, [message, options]);\n }\n });\n }\n\n // When using `/tests/index.html?debugDeprecations=some-other-thing` when the\n // `some-other-thing` deprecation is triggered, this `debugger` will be hit`\n if (debugDeprecations) {\n registerDeprecationHandler((message, options, next) => {\n if (options && debugDeprecations.includes(options.id)) {\n debugger; // eslint-disable-line no-debugger\n }\n next.apply(null, [message, options]);\n });\n }\n}\n\nexport { getDeprecationsDuringCallbackForContext, getDeprecationsForContext };\n//# sourceMappingURL=deprecations.js.map\n","import { registerWarnHandler } from '@ember/debug';\nimport isPromise from './is-promise.js';\n\n// the WARNINGS data structure which is used to weakly associated warnings with\n// the test context their occurred within\nconst WARNINGS = new WeakMap();\n\n/**\n *\n * Provides the list of warnings associated with a given base context;\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @return {Array<Warning>} the warnings associated with the corresponding BaseContext;\n */\nfunction getWarningsForContext(context) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get warnings for an invalid test context: '${context}'`);\n }\n let warnings = WARNINGS.get(context);\n if (!Array.isArray(warnings)) {\n warnings = [];\n WARNINGS.set(context, warnings);\n }\n return warnings;\n}\n\n/**\n *\n * Provides the list of warnings associated with a given test context which\n * occurred only while a the provided callback is executed. This callback can be\n * synchronous, or it can be an async function.\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @param {Function} [callback] The callback that when executed will have its warnings recorded\n * @return {Array<Warning>} The warnings associated with the corresponding baseContext which occurred while the CallbackFunction was executed\n */\nfunction getWarningsDuringCallbackForContext(context, callback) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get warnings for an invalid test context: '${context}'`);\n }\n const warnings = getWarningsForContext(context);\n const previousLength = warnings.length;\n const result = callback();\n if (isPromise(result)) {\n return Promise.resolve(result).then(() => {\n return warnings.slice(previousLength); // only return warnings created as a result of the callback\n });\n } else {\n return warnings.slice(previousLength); // only return warnings created as a result of the callback\n }\n}\n\n// This provides (when the environment supports) queryParam support for warnings:\n// * squelch warnings by name via: `/tests/index.html?disabledWarnings=this-property-fallback,some-other-thing`\n// * enable a debuggger when a warning by a specific name is encountered via: `/tests/index.html?debugWarnings=some-other-thing` when the\nif (typeof URLSearchParams !== 'undefined') {\n const queryParams = new URLSearchParams(document.location.search.substring(1));\n const disabledWarnings = queryParams.get('disabledWarnings');\n const debugWarnings = queryParams.get('debugWarnings');\n\n // When using `/tests/index.html?disabledWarnings=this-property-fallback,some-other-thing`\n // those warnings will be squelched\n if (disabledWarnings) {\n registerWarnHandler((message, options, next) => {\n if (!options || !disabledWarnings.includes(options.id)) {\n next.apply(null, [message, options]);\n }\n });\n }\n\n // When using `/tests/index.html?debugWarnings=some-other-thing` when the\n // `some-other-thing` warning is triggered, this `debugger` will be hit`\n if (debugWarnings) {\n registerWarnHandler((message, options, next) => {\n if (options && debugWarnings.includes(options.id)) {\n debugger; // eslint-disable-line no-debugger\n }\n next.apply(null, [message, options]);\n });\n }\n}\n\nexport { getWarningsDuringCallbackForContext, getWarningsForContext };\n//# sourceMappingURL=warnings.js.map\n","import { VERSION } from '@ember/version';\n\n// @ts-ignore\n\n/**\n Checks if the currently running Ember version is greater than or equal to the\n specified major and minor version numbers.\n\n @private\n @param {number} major the major version number to compare\n @param {number} minor the minor version number to compare\n @returns {boolean} true if the Ember version is >= MAJOR.MINOR specified, false otherwise\n*/\nfunction hasEmberVersion(major, minor) {\n const numbers = VERSION.split('-')[0]?.split('.');\n if (!numbers || !numbers[0] || !numbers[1]) {\n throw new Error('`Ember.VERSION` is not set.');\n }\n const actualMajor = parseInt(numbers[0], 10);\n const actualMinor = parseInt(numbers[1], 10);\n return actualMajor > major || actualMajor === major && actualMinor >= minor;\n}\n\nexport { hasEmberVersion as default };\n//# sourceMappingURL=has-ember-version.js.map\n","const debugInfoHelpers = new Set();\n\n/**\n * Registers a custom debug info helper to augment the output for test isolation validation.\n *\n * @public\n * @param {DebugInfoHelper} debugHelper a custom debug info helper\n * @example\n *\n * import { registerDebugInfoHelper } from '@ember/test-helpers';\n *\n * registerDebugInfoHelper({\n * name: 'Date override detection',\n * log() {\n * if (dateIsOverridden()) {\n * console.log(this.name);\n * console.log('The date object has been overridden');\n * }\n * }\n * })\n */\nfunction registerDebugInfoHelper(debugHelper) {\n debugInfoHelpers.add(debugHelper);\n}\n\nexport { debugInfoHelpers, registerDebugInfoHelper as default };\n//# sourceMappingURL=debug-info-helpers.js.map\n","import { _backburner } from '@ember/runloop';\nimport { debugInfoHelpers } from './debug-info-helpers.js';\nimport { getPendingWaiterState } from '@ember/test-waiters';\n\n// @ts-ignore: this is private API. This import will work Ember 5.1+ since it\n// \"provides\" this public API, but does not for earlier versions. As a result,\n// this type will be `any`.\nconst PENDING_AJAX_REQUESTS = 'Pending AJAX requests';\nconst PENDING_TEST_WAITERS = 'Pending test waiters';\nconst SCHEDULED_ASYNC = 'Scheduled async';\nconst SCHEDULED_AUTORUN = 'Scheduled autorun';\n\n/**\n * The base functionality which may be present on the `SettledState` interface\n * in the `settled` module (**not** the one in this module).\n */\n\n/**\n * Determines if the `getDebugInfo` method is available in the\n * running verison of backburner.\n *\n * @returns {boolean} True if `getDebugInfo` is present in backburner, otherwise false.\n */\nfunction backburnerDebugInfoAvailable() {\n return typeof _backburner.getDebugInfo === 'function';\n}\n\n/**\n * Retrieves debug information from backburner's current deferred actions queue (runloop instance).\n * If the `getDebugInfo` method isn't available, it returns `null`.\n *\n * @public\n * @returns {MaybeDebugInfo | null} Backburner debugInfo or, if the getDebugInfo method is not present, null\n */\nfunction getDebugInfo() {\n return _backburner.DEBUG === true && backburnerDebugInfoAvailable() ? _backburner.getDebugInfo() : null;\n}\n\n/**\n * Encapsulates debug information for an individual test. Aggregates information\n * from:\n * - info provided by getSettledState\n * - hasPendingTimers\n * - hasRunLoop\n * - hasPendingWaiters\n * - hasPendingRequests\n * - info provided by backburner's getDebugInfo method (timers, schedules, and stack trace info)\n *\n */\nclass TestDebugInfo {\n _settledState;\n _debugInfo;\n _summaryInfo = undefined;\n constructor(settledState, debugInfo = getDebugInfo()) {\n this._settledState = settledState;\n this._debugInfo = debugInfo;\n }\n get summary() {\n if (!this._summaryInfo) {\n this._summaryInfo = {\n ...this._settledState\n };\n if (this._debugInfo) {\n this._summaryInfo.autorunStackTrace = this._debugInfo.autorun && this._debugInfo.autorun.stack;\n this._summaryInfo.pendingTimersCount = this._debugInfo.timers.length;\n this._summaryInfo.hasPendingTimers = this._settledState.hasPendingTimers && this._summaryInfo.pendingTimersCount > 0;\n this._summaryInfo.pendingTimersStackTraces = this._debugInfo.timers.map(timer => timer.stack);\n this._summaryInfo.pendingScheduledQueueItemCount = this._debugInfo.instanceStack.filter(isNotNullable).reduce((total, item) => {\n Object.values(item).forEach(queueItems => {\n // SAFETY: this cast is required for versions of Ember which do\n // not supply a correct definition of these types. It should\n // also be compatible with the version where Ember *does* supply\n // the types correctly.\n total += queueItems?.length ?? 0;\n });\n return total;\n }, 0);\n this._summaryInfo.pendingScheduledQueueItemStackTraces = this._debugInfo.instanceStack.filter(isNotNullable).reduce((stacks, deferredActionQueues) => {\n Object.values(deferredActionQueues).forEach(queueItems => {\n // SAFETY: this cast is required for versions of Ember which do\n // not supply a correct definition of these types. It should\n // also be compatible with the version where Ember *does* supply\n // the types correctly.\n queueItems?.forEach(queueItem => queueItem.stack && stacks.push(queueItem.stack));\n });\n return stacks;\n }, []);\n }\n if (this._summaryInfo.hasPendingTestWaiters) {\n this._summaryInfo.pendingTestWaiterInfo = getPendingWaiterState();\n }\n }\n return this._summaryInfo;\n }\n toConsole(_console = console) {\n const summary = this.summary;\n if (summary.hasPendingRequests) {\n _console.log(PENDING_AJAX_REQUESTS);\n }\n if (summary.hasPendingLegacyWaiters) {\n _console.log(PENDING_TEST_WAITERS);\n }\n if (summary.hasPendingTestWaiters) {\n if (!summary.hasPendingLegacyWaiters) {\n _console.log(PENDING_TEST_WAITERS);\n }\n Object.keys(summary.pendingTestWaiterInfo.waiters).forEach(waiterName => {\n const waiterDebugInfo = summary.pendingTestWaiterInfo.waiters[waiterName];\n if (Array.isArray(waiterDebugInfo)) {\n _console.group(waiterName);\n waiterDebugInfo.forEach(debugInfo => {\n _console.log(`${debugInfo.label ? debugInfo.label : 'stack'}: ${debugInfo.stack}`);\n });\n _console.groupEnd();\n } else {\n _console.log(waiterName);\n }\n });\n }\n if (summary.hasPendingTimers || summary.pendingScheduledQueueItemCount > 0) {\n _console.group(SCHEDULED_ASYNC);\n summary.pendingTimersStackTraces.forEach(timerStack => {\n _console.log(timerStack);\n });\n summary.pendingScheduledQueueItemStackTraces.forEach(scheduleQueueItemStack => {\n _console.log(scheduleQueueItemStack);\n });\n _console.groupEnd();\n }\n if (summary.hasRunLoop && summary.pendingTimersCount === 0 && summary.pendingScheduledQueueItemCount === 0) {\n _console.log(SCHEDULED_AUTORUN);\n if (summary.autorunStackTrace) {\n _console.log(summary.autorunStackTrace);\n }\n }\n debugInfoHelpers.forEach(helper => {\n helper.log();\n });\n }\n _formatCount(title, count) {\n return `${title}: ${count}`;\n }\n}\n\n// eslint-disable-next-line require-jsdoc, @typescript-eslint/no-empty-object-type\nfunction isNotNullable(value) {\n return value != null;\n}\n\nexport { TestDebugInfo, backburnerDebugInfoAvailable, getDebugInfo };\n//# sourceMappingURL=debug-info.js.map\n","/**\n * Logs a debug message to the console if the `testHelperLogging` query\n * parameter is set.\n *\n * @private\n * @param {string} helperName Name of the helper\n * @param {string|Element} target The target element or selector\n */\nfunction log(helperName, target, ...args) {\n if (loggingEnabled()) {\n // eslint-disable-next-line no-console\n console.log(`${helperName}(${[elementToString(target), ...args.filter(Boolean)].join(', ')})`);\n }\n}\n\n/**\n * Returns whether the test helper logging is enabled or not via the\n * `testHelperLogging` query parameter.\n *\n * @private\n * @returns {boolean} true if enabled\n */\nfunction loggingEnabled() {\n return typeof location !== 'undefined' && location.search.indexOf('testHelperLogging') !== -1;\n}\n\n/**\n * This generates a human-readable description to a DOM element.\n *\n * @private\n * @param {*} el The element that should be described\n * @returns {string} A human-readable description\n */\nfunction elementToString(el) {\n let desc;\n if (el instanceof NodeList) {\n if (el.length === 0) {\n return 'empty NodeList';\n }\n desc = Array.prototype.slice.call(el, 0, 5).map(elementToString).join(', ');\n return el.length > 5 ? `${desc}... (+${el.length - 5} more)` : desc;\n }\n if (!(el instanceof HTMLElement || el instanceof SVGElement)) {\n return String(el);\n }\n desc = el.tagName.toLowerCase();\n if (el.id) {\n desc += `#${el.id}`;\n }\n if (el.className && !(el.className instanceof SVGAnimatedString)) {\n desc += `.${String(el.className).replace(/\\s+/g, '.')}`;\n }\n Array.prototype.forEach.call(el.attributes, function (attr) {\n if (attr.name !== 'class' && attr.name !== 'id') {\n desc += `[${attr.name}${attr.value ? `=\"${attr.value}\"]` : ']'}`;\n }\n });\n return desc;\n}\n\nexport { elementToString, log };\n//# sourceMappingURL=-logging.js.map\n","import { triggerEvent, focus, triggerKeyEvent } from '@ember/test-helpers';\nimport { parseDate } from './components/forms/date-picker/value';\n\nexport function selectOptionByKey(\n selectSelector: string,\n key: string\n): Promise<void> {\n return changeOption('selectOptionByKey', selectSelector, key, false);\n}\n\nexport function toggleOptionByKey(\n selectSelector: string,\n key: string\n): Promise<void> {\n return changeOption('toggleOptionByKey', selectSelector, key, true);\n}\n\nfunction changeOption(\n functionName: string,\n selectSelector: string,\n key: string,\n toggle: boolean\n): Promise<void> {\n const container = document.querySelector(selectSelector);\n\n if (!container) {\n throw new Error(\n `You called \"${functionName}('${selectSelector}', '${key}')\" but no select was found using selector \"${selectSelector}\"`\n );\n }\n\n let select: Element | null = container;\n if (container.tagName !== 'SELECT') {\n // `data-component=\"native-select\"` lives on FormControl's root element,\n // not the `<select>` itself (the anatomy contract puts `data-component`\n // only on a component's outermost element, and the `<select>` is a\n // *part* of `native-select`, not its root). `data-test-id=\"native-select\"`\n // stays directly on the `<select>` tag, so it is the stable way to reach\n // it from an arbitrary ancestor container.\n select = container.querySelector('[data-test-id=\"native-select\"]');\n }\n\n if (!select) {\n throw new Error(\n `You called \"${functionName}('${selectSelector}', '${key}')\" but no select was found inside container using selector \"${selectSelector}\"`\n );\n }\n\n const option = select.querySelector(`[data-key=\"${key}\"]`) as\n HTMLOptionElement | undefined;\n if (!option) {\n // A Select with `@displayLimit` holds only the first options (and the\n // selected ones) in its hidden `<select>`, like its listbox.\n throw new Error(\n `You called \"${functionName}('${selectSelector}', '${key}')\" but no option with key \"${key}\" was found. ` +\n 'With @displayLimit, only the first options and the selected ones are there: type into the filter and click the option instead.'\n );\n }\n\n if (toggle && option.selected) {\n option.selected = false;\n } else {\n option.selected = true;\n }\n\n return triggerEvent(select, 'change');\n}\n\nexport { setPrefersReducedMotion } from './utils/prefers-reduced-motion';\n\n/**\n * Selects the elements bearing `[data-part=\"${part}\"]` whose *own* anatomy\n * root is `root` — i.e. `root` is the nearest `[data-component]` ancestor.\n *\n * `[data-component=\"X\"] [data-part=\"Y\"]` (plain CSS descendant combinator)\n * matches \"any descendant\", which is ambiguous whenever a component with a\n * part named `Y` renders a nested component that also has an element\n * carrying `data-part=\"Y\"` (its own part, or a caller-supplied one on the\n * nested component's root). CSS has no \"nearest enclosing\" combinator, so\n * this helper resolves ownership the same way behavioural code would have\n * to: walk up from the part element and confirm the nearest\n * `[data-component]` ancestor is `root`.\n *\n * The walk starts at `el.parentElement`, not `el` itself, deliberately:\n * `el` may itself be a nested component's root (e.g. `CloseButton`, which\n * carries its own `data-component=\"close-button\"` on the very element that\n * also carries a caller-supplied `data-part=\"clear-button\"` or\n * `data-part=\"close-button\"`). Starting `closest()`/the walk from `el`\n * would match `el` itself and never reach `root`, wrongly excluding a part\n * that legitimately belongs to `root`.\n */\nexport function ownParts(root: Element, part: string): Element[] {\n return [...root.querySelectorAll(`[data-part=\"${part}\"]`)].filter((el) => {\n let node = el.parentElement;\n while (node && node !== root) {\n if (node.hasAttribute('data-component')) return false;\n node = node.parentElement;\n }\n return node === root;\n });\n}\n\n/**\n * Types a date into a segmented `DateInput` or `DatePicker`.\n *\n * `fillIn` cannot do this and, worse, does not fail when you try. The segments\n * are `contenteditable`, so `fillIn` writes their text and fires `input`\n * without complaint -- but the component renders from its own segments and\n * listens only to `beforeinput`/`keydown`, so nothing reaches the value. The\n * result is a test that reads green, whose `assert.dom(...).hasText('01')`\n * even passes, while the component's value stayed `null` and the form would\n * submit empty.\n *\n * This types the digits segment by segment the way a person does, so the value\n * composes through the same commit path as real input.\n *\n * ```js\n * await fillDate('[data-test-due]', '2026-01-20');\n * await fillDate('[data-test-due]', new Date(2026, 0, 20));\n * ```\n *\n * For `@mode=\"range\"` use {@link fillDateRange}.\n */\nexport function fillDate(\n selector: string,\n value: Date | string\n): Promise<void> {\n return fillGroup('fillDate', selector, value, 0);\n}\n\n/**\n * Types both ends of a range into a segmented `DatePicker @mode=\"range\"`.\n *\n * ```js\n * await fillDateRange('[data-test-trip]', '2026-01-20', '2026-01-25');\n * ```\n */\nexport async function fillDateRange(\n selector: string,\n start: Date | string,\n end: Date | string\n): Promise<void> {\n await fillGroup('fillDateRange', selector, start, 0);\n await fillGroup('fillDateRange', selector, end, 1);\n}\n\nfunction clockHour(hours: number, segment: HTMLElement): number {\n const min = Number(segment.getAttribute('aria-valuemin'));\n const max = Number(segment.getAttribute('aria-valuemax'));\n if (max === 12) return hours % 12 || 12;\n if (max === 11) return hours % 12;\n if (min === 1) return hours || 24;\n return hours;\n}\n\n/**\n * AM/PM is typed by a letter that depends on the locale, so it is stepped\n * instead: ArrowUp fills an empty segment and toggles a filled one.\n */\nasync function setDayPeriod(segment: HTMLElement, value: 0 | 1): Promise<void> {\n await focus(segment);\n for (let i = 0; i < 2; i++) {\n if (segment.getAttribute('aria-valuenow') === String(value)) return;\n await triggerKeyEvent(segment, 'keydown', 'ArrowUp');\n }\n}\n\n/**\n * Reuses the component's own parser rather than restating the wire format, so\n * the helper cannot drift from what `@value` actually accepts -- but turns a\n * refusal into a thrown error, since a test helper handed a bad date should\n * say so rather than quietly fill nothing.\n */\nfunction asDate(functionName: string, value: Date | string): Date {\n const parsed = parseDate(value);\n if (!parsed) {\n throw new Error(\n `You called \"${functionName}\" with \"${String(value)}\", which is neither a Date nor a yyyy-MM-dd or yyyy-MM-ddTHH:mm string.`\n );\n }\n\n return parsed;\n}\n\nasync function fillGroup(\n functionName: string,\n selector: string,\n value: Date | string,\n which: 0 | 1\n): Promise<void> {\n const container = document.querySelector(selector);\n if (!container) {\n throw new Error(\n `You called \"${functionName}('${selector}', ...)\" but no element was found using selector \"${selector}\".`\n );\n }\n\n const group = container.querySelectorAll('[data-part=\"group\"]')[which];\n\n if (!group) {\n // Far and away the likeliest cause: the field is on the button-trigger\n // path, where there is nothing to type into at all.\n const hasButtonTrigger = container.querySelector('[data-part=\"input\"]');\n throw new Error(\n hasButtonTrigger\n ? `You called \"${functionName}('${selector}', ...)\" on a date field rendering its button trigger, which cannot be typed into. Drop @isEditable={{false}}, or click the trigger and pick from the calendar.`\n : `You called \"${functionName}('${selector}', ...)\" but found no date segments inside \"${selector}\".`\n );\n }\n\n const date = asDate(functionName, value);\n const pad = (n: number, width = 2): string => String(n).padStart(width, '0');\n const digits: Record<string, string> = {\n year: pad(date.getFullYear(), 4),\n month: pad(date.getMonth() + 1),\n day: pad(date.getDate()),\n minute: pad(date.getMinutes())\n };\n\n for (const segment of group.querySelectorAll('[data-part=\"segment\"]')) {\n const element = segment as HTMLElement;\n const type = element.dataset['type'];\n\n if (type === 'dayPeriod') {\n await setDayPeriod(element, date.getHours() < 12 ? 0 : 1);\n continue;\n }\n\n // The hour goes in as the field's own clock counts it, which its\n // spinbutton bounds give away: 1-12 or 0-11 for AM/PM, 0-23 or 1-24 not.\n const run =\n type === 'hour'\n ? pad(clockHour(date.getHours(), element))\n : type\n ? digits[type]\n : undefined;\n if (!run) continue;\n\n await focus(element);\n for (const digit of run) {\n await triggerKeyEvent(element, 'keydown', digit);\n }\n }\n}\n"],"names":["DEPRECATIONS","WeakMap","getDeprecationsForContext","context","TypeError","deprecations","get","Array","isArray","set","URLSearchParams","queryParams","document","location","search","substring","disabledDeprecations","debugDeprecations","registerDeprecationHandler","message","options","next","includes","id","apply","WARNINGS","getWarningsForContext","warnings","disabledWarnings","debugWarnings","registerWarnHandler","hasEmberVersion","major","minor","numbers","VERSION","split","Error","actualMajor","parseInt","actualMinor","debugInfoHelpers","Set","PENDING_AJAX_REQUESTS","PENDING_TEST_WAITERS","SCHEDULED_ASYNC","SCHEDULED_AUTORUN","backburnerDebugInfoAvailable","_backburner","getDebugInfo","DEBUG","TestDebugInfo","_settledState","_debugInfo","_summaryInfo","undefined","constructor","settledState","debugInfo","summary","autorunStackTrace","autorun","stack","pendingTimersCount","timers","length","hasPendingTimers","pendingTimersStackTraces","map","timer","pendingScheduledQueueItemCount","instanceStack","filter","isNotNullable","reduce","total","item","Object","values","forEach","queueItems","pendingScheduledQueueItemStackTraces","stacks","deferredActionQueues","queueItem","push","hasPendingTestWaiters","pendingTestWaiterInfo","getPendingWaiterState","toConsole","_console","console","hasPendingRequests","log","hasPendingLegacyWaiters","keys","waiters","waiterName","waiterDebugInfo","group","label","groupEnd","timerStack","scheduleQueueItemStack","hasRunLoop","helper","_formatCount","title","count","value","helperName","target","args","loggingEnabled","elementToString","Boolean","join","indexOf","el","desc","NodeList","prototype","slice","call","HTMLElement","SVGElement","String","tagName","toLowerCase","className","SVGAnimatedString","replace","attributes","attr","name","selectOptionByKey","selectSelector","key","changeOption","toggleOptionByKey","functionName","toggle","container","querySelector","select","option","selected","triggerEvent","ownParts","root","part","querySelectorAll","node","parentElement","hasAttribute","fillDate","selector","fillGroup","fillDateRange","start","end","clockHour","hours","segment","min","Number","getAttribute","max","setDayPeriod","focus","i","triggerKeyEvent","asDate","parsed","parseDate","which","hasButtonTrigger","date","pad","n","width","padStart","digits","year","getFullYear","month","getMonth","day","getDate","minute","getMinutes","element","type","dataset","getHours","run","digit"],"mappings":";;;;;;;;;;;;;;;;AAkBA,MAAMA,YAAY,GAAG,IAAIC,OAAO,EAA0C;;AAE1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,yBAAyBA,CACvCC,OAAoB,EACO;EAC3B,IAAI,CAACA,OAAO,EAAE;AACZ,IAAA,MAAM,IAAIC,SAAS,CACjB,CAAA,+EAAA,EAAkFD,OAAO,GAC3F,CAAC;AACH,EAAA;AAEA,EAAA,IAAIE,YAAY,GAAGL,YAAY,CAACM,GAAG,CAACH,OAAO,CAAC;AAE5C,EAAA,IAAI,CAACI,KAAK,CAACC,OAAO,CAACH,YAAY,CAAC,EAAE;AAChCA,IAAAA,YAAY,GAAG,EAAE;AACjBL,IAAAA,YAAY,CAACS,GAAG,CAACN,OAAO,EAAEE,YAAY,CAAC;AACzC,EAAA;AAEA,EAAA,OAAOA,YAAY;AACrB;;AAqCA;AACA;AACA;AACA,IAAI,OAAOK,eAAe,KAAK,WAAW,EAAE;AAC1C,EAAA,MAAMC,WAAW,GAAG,IAAID,eAAe,CACrCE,QAAQ,CAACC,QAAQ,CAACC,MAAM,CAACC,SAAS,CAAC,CAAC,CACtC,CAAC;AACD,EAAA,MAAMC,oBAAoB,GAAGL,WAAW,CAACL,GAAG,CAAC,sBAAsB,CAAC;AACpE,EAAA,MAAMW,iBAAiB,GAAGN,WAAW,CAACL,GAAG,CAAC,mBAAmB,CAAC;;AAE9D;AACA;AACA,EAAA,IAAIU,oBAAoB,EAAE;AACxBE,IAAAA,0BAA0B,CAAC,CAACC,OAAO,EAAEC,OAAO,EAAEC,IAAI,KAAK;AACrD,MAAA,IAAI,CAACD,OAAO,IAAI,CAACJ,oBAAoB,CAACM,QAAQ,CAACF,OAAO,CAACG,EAAE,CAAC,EAAE;QAC1DF,IAAI,CAACG,KAAK,CAAC,IAAI,EA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,EAAA;AACF;;","x_google_ignoreList":[0,1,2,3,4,5]}
package/dist/utilities.js CHANGED
@@ -1,8 +1,10 @@
1
1
  import 'focus-visible/dist/focus-visible.js';
2
2
  export { Avatar } from './components/utilities/avatar.js';
3
+ export { Icon } from './components/utilities/icon.js';
3
4
  export { VisuallyHidden } from './components/utilities/visually-hidden.js';
4
5
  export { Collapsible } from './components/utilities/collapsible.js';
5
6
  export { Divider } from './components/utilities/divider.js';
7
+ export { Card } from './components/utilities/card.js';
6
8
  export { Kbd } from './components/utilities/kbd.js';
7
9
  export { isApplePlatform, parseKeys, resolveKbdPlatform, setKbdPlatform } from './utils/keys.js';
8
10
  export { Skeleton } from './components/utilities/skeleton.js';
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"utilities.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { tracked } from '@glimmer/tracking';
2
- import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../runtime--fcdnjmJ-BOdRhmsS.js';
2
+ import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../runtime--fcdnjmJ-DOFHQ2m8.js';
3
3
 
4
4
  /**
5
5
  * Only `mod`, `ctrl` and `alt` differ by platform. `meta` names a specific
@@ -1,9 +1,9 @@
1
1
  import { tracked } from '@glimmer/tracking';
2
2
  import { cancel, later, debounce } from '@ember/runloop';
3
3
  import { modifier } from 'ember-modifier';
4
- import { g as getElementById } from '../dom-cKWVvtkd.js';
4
+ import { g as getElementById } from '../dom-CbIZhRH4.js';
5
5
  export { defaultFilter } from './filter.js';
6
- import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../runtime--fcdnjmJ-BOdRhmsS.js';
6
+ import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../runtime--fcdnjmJ-DOFHQ2m8.js';
7
7
 
8
8
  class ListItem {
9
9
  el;
package/dist/utils/ref.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { tracked } from '@glimmer/tracking';
2
2
  import { modifier } from 'ember-modifier';
3
- import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../runtime--fcdnjmJ-BOdRhmsS.js';
3
+ import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../runtime--fcdnjmJ-DOFHQ2m8.js';
4
4
 
5
5
  class Ref {
6
6
  static {
@@ -1,5 +1,5 @@
1
1
  import { tracked } from '@glimmer/tracking';
2
- import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../runtime--fcdnjmJ-BOdRhmsS.js';
2
+ import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../runtime--fcdnjmJ-DOFHQ2m8.js';
3
3
 
4
4
  class ToggleState {
5
5
  static {