@coveo/atomic 3.51.0 → 3.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/custom-elements.json +947 -831
  2. package/dist/atomic/_atomic.esm.js +1 -1
  3. package/dist/atomic/atomic.esm.js.map +1 -1
  4. package/dist/atomic/components/_index.d.ts +0 -8
  5. package/dist/atomic/components/_index.js +97 -25
  6. package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +2 -2
  7. package/dist/atomic/components/components/common/atomic-facet-date-input/atomic-facet-date-input.js +1 -0
  8. package/dist/atomic/components/components/common/facets/timeframe-facet-common.js +1 -0
  9. package/dist/atomic/components/components/common/generated-answer/atomic-answer-content/atomic-answer-content.js +166 -0
  10. package/dist/atomic/components/components/common/generated-answer/atomic-generated-answer-thread-item/atomic-generated-answer-thread-item.js +155 -0
  11. package/dist/atomic/components/components/common/generated-answer/atomic-generated-answers-thread/atomic-generated-answers-thread.js +165 -0
  12. package/dist/atomic/components/components/common/generated-answer/render-follow-up-input.js +66 -0
  13. package/dist/atomic/components/components/common/generated-answer/styles/generated-answer.tw.css.js +1 -1
  14. package/dist/atomic/components/components/insight/atomic-insight-result-action/atomic-insight-result-action.js +169 -0
  15. package/dist/atomic/components/components/insight/atomic-insight-result-children/atomic-insight-result-children.js +3 -2
  16. package/dist/atomic/components/components/insight/atomic-insight-result-children-template/atomic-insight-result-children-template.js +79 -0
  17. package/dist/atomic/components/components/insight/atomic-insight-timeframe-facet/atomic-insight-timeframe-facet.js +267 -0
  18. package/dist/atomic/components/components/insight/atomic-insight-user-actions-session/atomic-insight-user-actions-session.js +1 -1
  19. package/dist/atomic/components/components/insight/atomic-insight-user-actions-timeline/atomic-insight-user-actions-timeline.js +1 -1
  20. package/dist/atomic/components/components/insight/index.js +3 -0
  21. package/dist/atomic/components/components/insight/lazy-index.js +3 -0
  22. package/dist/atomic/components/components/search/atomic-external/atomic-external.js +1 -1
  23. package/dist/atomic/components/components/search/atomic-generated-answer/atomic-generated-answer.js +96 -9
  24. package/dist/atomic/components/components/search/atomic-search-box/atomic-search-box.js +2 -2
  25. package/dist/atomic/components/decorators/bindings.js +1 -1
  26. package/dist/atomic/components/global/environment.js +1 -1
  27. package/dist/atomic/components/index.js.map +1 -1
  28. package/dist/atomic/components/mixins/bindings-mixin.js +1 -1
  29. package/dist/atomic/components/utils/custom-element-tags.js +6 -2
  30. package/dist/atomic/components/utils/tailwind.global.tw.css.js +2 -2
  31. package/dist/atomic/index.esm.js +1 -1
  32. package/dist/atomic/index.esm.js.map +1 -1
  33. package/dist/atomic/lang/cs.json +1 -1
  34. package/dist/atomic/lang/da.json +1 -1
  35. package/dist/atomic/lang/de.json +1 -1
  36. package/dist/atomic/lang/dev.json +1 -1
  37. package/dist/atomic/lang/el.json +1 -1
  38. package/dist/atomic/lang/en.json +1 -1
  39. package/dist/atomic/lang/es.json +1 -1
  40. package/dist/atomic/lang/fi.json +1 -1
  41. package/dist/atomic/lang/fr.json +1 -1
  42. package/dist/atomic/lang/hu.json +1 -1
  43. package/dist/atomic/lang/id.json +1 -1
  44. package/dist/atomic/lang/it.json +1 -1
  45. package/dist/atomic/lang/ja.json +1 -1
  46. package/dist/atomic/lang/ko.json +1 -1
  47. package/dist/atomic/lang/nl.json +1 -1
  48. package/dist/atomic/lang/no.json +1 -1
  49. package/dist/atomic/lang/pl.json +1 -1
  50. package/dist/atomic/lang/pt-BR.json +1 -1
  51. package/dist/atomic/lang/pt.json +1 -1
  52. package/dist/atomic/lang/ru.json +1 -1
  53. package/dist/atomic/lang/sv.json +1 -1
  54. package/dist/atomic/lang/th.json +1 -1
  55. package/dist/atomic/lang/tr.json +1 -1
  56. package/dist/atomic/lang/zh-CN.json +1 -1
  57. package/dist/atomic/lang/zh-TW.json +1 -1
  58. package/dist/atomic/lang/zh.json +1 -1
  59. package/dist/atomic/p-998f7983.js +3 -0
  60. package/dist/atomic/p-998f7983.js.map +1 -0
  61. package/dist/cjs/_index.cjs.js +110 -28
  62. package/dist/cjs/_loader.cjs.js +3 -4
  63. package/dist/cjs/app-globals-18f43c37.js +506 -0
  64. package/dist/cjs/app-globals-18f43c37.js.map +1 -0
  65. package/dist/cjs/atomic.cjs.js +4 -5
  66. package/dist/cjs/atomic.cjs.js.map +1 -1
  67. package/dist/cjs/index.cjs.js.map +1 -1
  68. package/dist/cjs/loader.cjs.js.map +1 -1
  69. package/dist/cjs/version.cjs.js +2 -2
  70. package/dist/esm/_index.js +97 -23
  71. package/dist/esm/_loader.js +3 -4
  72. package/dist/esm/app-globals-c5b073da.js +481 -0
  73. package/dist/esm/app-globals-c5b073da.js.map +1 -0
  74. package/dist/esm/atomic.js +3 -4
  75. package/dist/esm/atomic.js.map +1 -1
  76. package/dist/esm/index.js.map +1 -1
  77. package/dist/esm/loader.js.map +1 -1
  78. package/dist/esm/version.js +2 -2
  79. package/dist/types/components/common/context/bindings-context.d.ts +1 -1
  80. package/dist/types/components/common/facets/timeframe-facet-common.d.ts +1 -0
  81. package/dist/types/components/common/generated-answer/{answerContent/answer-content.d.ts → atomic-answer-content/atomic-answer-content.d.ts} +7 -6
  82. package/dist/types/components/common/generated-answer/{generated-answer-thread-item/generated-answer-thread-item.d.ts → atomic-generated-answer-thread-item/atomic-generated-answer-thread-item.d.ts} +3 -3
  83. package/dist/types/components/common/generated-answer/atomic-generated-answers-thread/atomic-generated-answers-thread.d.ts +42 -0
  84. package/dist/types/components/insight/atomic-insight-result-action/atomic-insight-result-action.d.ts +33 -18
  85. package/dist/types/components/insight/atomic-insight-result-children/atomic-insight-result-children.d.ts +1 -0
  86. package/dist/types/components/insight/atomic-insight-result-children-template/atomic-insight-result-children-template.d.ts +62 -0
  87. package/dist/types/components/insight/atomic-insight-timeframe-facet/atomic-insight-timeframe-facet.d.ts +47 -28
  88. package/dist/types/components/insight/index.d.ts +3 -0
  89. package/dist/types/components/search/atomic-external/atomic-external.d.ts +1 -1
  90. package/dist/types/components/search/atomic-generated-answer/atomic-generated-answer.d.ts +11 -2
  91. package/dist/types/components.d.ts +0 -298
  92. package/dist/types/decorators/bindings.d.ts +1 -1
  93. package/dist/types/index.d.ts +2 -3
  94. package/dist/types/utils/accessibility-utils.d.ts +2 -2
  95. package/dist/types/utils/init-queue.d.ts +1 -1
  96. package/docs/atomic-docs.json +2 -43
  97. package/package.json +4 -8
  98. package/dist/atomic/components/_commonjsHelpers.js +0 -5
  99. package/dist/atomic/components/_commonjsHelpers.js.map +0 -1
  100. package/dist/atomic/components/atomic-insight-result-action.d.ts +0 -11
  101. package/dist/atomic/components/atomic-insight-result-action.js +0 -272
  102. package/dist/atomic/components/atomic-insight-result-action.js.map +0 -1
  103. package/dist/atomic/components/atomic-insight-result-children-template.d.ts +0 -11
  104. package/dist/atomic/components/atomic-insight-result-children-template.js +0 -242
  105. package/dist/atomic/components/atomic-insight-result-children-template.js.map +0 -1
  106. package/dist/atomic/components/atomic-insight-timeframe-facet.d.ts +0 -11
  107. package/dist/atomic/components/atomic-insight-timeframe-facet.js +0 -816
  108. package/dist/atomic/components/atomic-insight-timeframe-facet.js.map +0 -1
  109. package/dist/atomic/components/atomic-stencil-facet-date-input.d.ts +0 -11
  110. package/dist/atomic/components/atomic-stencil-facet-date-input.js +0 -107
  111. package/dist/atomic/components/atomic-stencil-facet-date-input.js.map +0 -1
  112. package/dist/atomic/components/date-utils.js +0 -26
  113. package/dist/atomic/components/date-utils.js.map +0 -1
  114. package/dist/atomic/components/initialization-utils.js +0 -226
  115. package/dist/atomic/components/initialization-utils.js.map +0 -1
  116. package/dist/atomic/components/props-utils.js +0 -1457
  117. package/dist/atomic/components/props-utils.js.map +0 -1
  118. package/dist/atomic/components/stencil-button.js +0 -148
  119. package/dist/atomic/components/stencil-button.js.map +0 -1
  120. package/dist/atomic/p-1580513b.js +0 -2
  121. package/dist/atomic/p-1580513b.js.map +0 -1
  122. package/dist/atomic/p-1df0744f.entry.js +0 -9
  123. package/dist/atomic/p-1df0744f.entry.js.map +0 -1
  124. package/dist/atomic/p-2045a1b1.js +0 -2
  125. package/dist/atomic/p-2045a1b1.js.map +0 -1
  126. package/dist/atomic/p-4573c419.js +0 -2
  127. package/dist/atomic/p-4573c419.js.map +0 -1
  128. package/dist/atomic/p-500bf5c4.entry.js +0 -2
  129. package/dist/atomic/p-500bf5c4.entry.js.map +0 -1
  130. package/dist/atomic/p-5226a938.js +0 -3
  131. package/dist/atomic/p-5226a938.js.map +0 -1
  132. package/dist/atomic/p-720863c3.js +0 -2
  133. package/dist/atomic/p-720863c3.js.map +0 -1
  134. package/dist/atomic/p-81336626.entry.js +0 -2
  135. package/dist/atomic/p-81336626.entry.js.map +0 -1
  136. package/dist/atomic/p-81d6e743.js +0 -2
  137. package/dist/atomic/p-81d6e743.js.map +0 -1
  138. package/dist/atomic/p-aad3b4ec.js +0 -3
  139. package/dist/atomic/p-aad3b4ec.js.map +0 -1
  140. package/dist/atomic/p-b5af331b.entry.js +0 -2
  141. package/dist/atomic/p-b5af331b.entry.js.map +0 -1
  142. package/dist/atomic/p-b7209471.js +0 -2
  143. package/dist/atomic/p-b7209471.js.map +0 -1
  144. package/dist/atomic/p-dac60354.js +0 -2
  145. package/dist/atomic/p-dac60354.js.map +0 -1
  146. package/dist/atomic/p-e1255160.js +0 -2
  147. package/dist/atomic/p-e1255160.js.map +0 -1
  148. package/dist/cjs/_commonjsHelpers-68cdf74f.js +0 -7
  149. package/dist/cjs/_commonjsHelpers-68cdf74f.js.map +0 -1
  150. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  151. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  152. package/dist/cjs/atomic-insight-result-action.cjs.entry.js +0 -153
  153. package/dist/cjs/atomic-insight-result-action.cjs.entry.js.map +0 -1
  154. package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js +0 -222
  155. package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js.map +0 -1
  156. package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js +0 -790
  157. package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js.map +0 -1
  158. package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js +0 -86
  159. package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js.map +0 -1
  160. package/dist/cjs/date-utils-aae1d713.js +0 -28
  161. package/dist/cjs/date-utils-aae1d713.js.map +0 -1
  162. package/dist/cjs/event-utils-9bfcf3c5.js +0 -27
  163. package/dist/cjs/event-utils-9bfcf3c5.js.map +0 -1
  164. package/dist/cjs/index-122375df.js +0 -1394
  165. package/dist/cjs/index-122375df.js.map +0 -1
  166. package/dist/cjs/initialization-lit-stencil-common-utils-f19f74c0.js +0 -95
  167. package/dist/cjs/initialization-lit-stencil-common-utils-f19f74c0.js.map +0 -1
  168. package/dist/cjs/initialization-utils-c2821271.js +0 -148
  169. package/dist/cjs/initialization-utils-c2821271.js.map +0 -1
  170. package/dist/cjs/props-utils-e4f29f1e.js +0 -1464
  171. package/dist/cjs/props-utils-e4f29f1e.js.map +0 -1
  172. package/dist/cjs/stencil-button-bf22eea4.js +0 -130
  173. package/dist/cjs/stencil-button-bf22eea4.js.map +0 -1
  174. package/dist/cjs/stencil-result-template-decorators-96954751.js +0 -114
  175. package/dist/cjs/stencil-result-template-decorators-96954751.js.map +0 -1
  176. package/dist/esm/_commonjsHelpers-1c8beb5f.js +0 -5
  177. package/dist/esm/_commonjsHelpers-1c8beb5f.js.map +0 -1
  178. package/dist/esm/app-globals-0f993ce5.js +0 -5
  179. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  180. package/dist/esm/atomic-insight-result-action.entry.js +0 -149
  181. package/dist/esm/atomic-insight-result-action.entry.js.map +0 -1
  182. package/dist/esm/atomic-insight-result-children-template.entry.js +0 -218
  183. package/dist/esm/atomic-insight-result-children-template.entry.js.map +0 -1
  184. package/dist/esm/atomic-insight-timeframe-facet.entry.js +0 -786
  185. package/dist/esm/atomic-insight-timeframe-facet.entry.js.map +0 -1
  186. package/dist/esm/atomic-stencil-facet-date-input.entry.js +0 -82
  187. package/dist/esm/atomic-stencil-facet-date-input.entry.js.map +0 -1
  188. package/dist/esm/date-utils-3b955e79.js +0 -26
  189. package/dist/esm/date-utils-3b955e79.js.map +0 -1
  190. package/dist/esm/event-utils-8de63ec3.js +0 -24
  191. package/dist/esm/event-utils-8de63ec3.js.map +0 -1
  192. package/dist/esm/index-4d679e44.js +0 -1364
  193. package/dist/esm/index-4d679e44.js.map +0 -1
  194. package/dist/esm/initialization-lit-stencil-common-utils-e7755434.js +0 -88
  195. package/dist/esm/initialization-lit-stencil-common-utils-e7755434.js.map +0 -1
  196. package/dist/esm/initialization-utils-9ff399ff.js +0 -144
  197. package/dist/esm/initialization-utils-9ff399ff.js.map +0 -1
  198. package/dist/esm/props-utils-76043c82.js +0 -1457
  199. package/dist/esm/props-utils-76043c82.js.map +0 -1
  200. package/dist/esm/stencil-button-28de709c.js +0 -128
  201. package/dist/esm/stencil-button-28de709c.js.map +0 -1
  202. package/dist/esm/stencil-result-template-decorators-4c2e5132.js +0 -110
  203. package/dist/esm/stencil-result-template-decorators-4c2e5132.js.map +0 -1
  204. package/dist/types/components/commerce/product-template-component-utils/context/stencil-product-template-decorators.d.ts +0 -14
  205. package/dist/types/components/common/atomic-rating/stencil-rating.d.ts +0 -18
  206. package/dist/types/components/common/atomic-result-placeholder/stencil-placeholders.d.ts +0 -20
  207. package/dist/types/components/common/breadbox/stencil-breadcrumb-button.d.ts +0 -15
  208. package/dist/types/components/common/breadbox/stencil-breadcrumb-clear-all.d.ts +0 -13
  209. package/dist/types/components/common/breadbox/stencil-breadcrumb-container.d.ts +0 -11
  210. package/dist/types/components/common/breadbox/stencil-breadcrumb-content.d.ts +0 -14
  211. package/dist/types/components/common/breadbox/stencil-breadcrumb-show-less.d.ts +0 -13
  212. package/dist/types/components/common/breadbox/stencil-breadcrumb-show-more.d.ts +0 -14
  213. package/dist/types/components/common/facets/category-facet/stencil-all-categories-button.d.ts +0 -13
  214. package/dist/types/components/common/facets/category-facet/stencil-child-value-link.d.ts +0 -9
  215. package/dist/types/components/common/facets/category-facet/stencil-children-as-tree-container.d.ts +0 -9
  216. package/dist/types/components/common/facets/category-facet/stencil-parent-as-tree-container.d.ts +0 -10
  217. package/dist/types/components/common/facets/category-facet/stencil-parent-button.d.ts +0 -16
  218. package/dist/types/components/common/facets/category-facet/stencil-parent-value-link.d.ts +0 -9
  219. package/dist/types/components/common/facets/category-facet/stencil-search-results-container.d.ts +0 -5
  220. package/dist/types/components/common/facets/category-facet/stencil-search-value.d.ts +0 -19
  221. package/dist/types/components/common/facets/category-facet/stencil-value-as-tree-container.d.ts +0 -5
  222. package/dist/types/components/common/facets/category-facet/stencil-value-link.d.ts +0 -20
  223. package/dist/types/components/common/facets/facet-container/stencil-facet-container.d.ts +0 -5
  224. package/dist/types/components/common/facets/facet-header/stencil-facet-header.d.ts +0 -17
  225. package/dist/types/components/common/facets/facet-placeholder/stencil-facet-placeholder.d.ts +0 -10
  226. package/dist/types/components/common/facets/facet-search/stencil-facet-search-input-guard.d.ts +0 -11
  227. package/dist/types/components/common/facets/facet-search/stencil-facet-search-input.d.ts +0 -14
  228. package/dist/types/components/common/facets/facet-search/stencil-facet-search-matches.d.ts +0 -14
  229. package/dist/types/components/common/facets/facet-search/stencil-facet-search-value.d.ts +0 -6
  230. package/dist/types/components/common/facets/facet-show-more-less/stencil-facet-show-more-less.d.ts +0 -17
  231. package/dist/types/components/common/facets/facet-value/stencil-facet-value.d.ts +0 -22
  232. package/dist/types/components/common/facets/facet-value-box/stencil-facet-value-box.d.ts +0 -6
  233. package/dist/types/components/common/facets/facet-value-checkbox/stencil-facet-value-checkbox.d.ts +0 -11
  234. package/dist/types/components/common/facets/facet-value-exclude/stencil-facet-value-exclude.d.ts +0 -10
  235. package/dist/types/components/common/facets/facet-value-label-highlight/stencil-facet-value-label-highlight.d.ts +0 -12
  236. package/dist/types/components/common/facets/facet-value-link/stencil-facet-value-link.d.ts +0 -10
  237. package/dist/types/components/common/facets/facet-values-group/stencil-facet-values-group.d.ts +0 -12
  238. package/dist/types/components/common/facets/numeric-facet/stencil-value-link.d.ts +0 -12
  239. package/dist/types/components/common/facets/numeric-facet/stencil-values-container.d.ts +0 -11
  240. package/dist/types/components/common/facets/stencil-facet-common.d.ts +0 -43
  241. package/dist/types/components/common/facets/stencil-facet-date-input/stencil-facet-date-input.d.ts +0 -33
  242. package/dist/types/components/common/facets/stencil-facet-guard.d.ts +0 -12
  243. package/dist/types/components/common/facets/stencil-timeframe-facet-common.d.ts +0 -72
  244. package/dist/types/components/common/generated-answer/generated-answer-common.d.ts +0 -58
  245. package/dist/types/components/common/generated-answer/generated-content/stencil-generated-markdown-content.d.ts +0 -10
  246. package/dist/types/components/common/generated-answer/generated-content/stencil-generated-text-content.d.ts +0 -10
  247. package/dist/types/components/common/generated-answer/stencil-copy-button.d.ts +0 -12
  248. package/dist/types/components/common/generated-answer/stencil-feedback-button.d.ts +0 -13
  249. package/dist/types/components/common/generated-answer/stencil-generated-content-container.d.ts +0 -11
  250. package/dist/types/components/common/generated-answer/stencil-retry-prompt.d.ts +0 -11
  251. package/dist/types/components/common/generated-answer/stencil-show-button.d.ts +0 -12
  252. package/dist/types/components/common/generated-answer/stencil-source-citations.d.ts +0 -10
  253. package/dist/types/components/common/interface/interface-common-stencil.d.ts +0 -34
  254. package/dist/types/components/common/interface/stencil-i18n.d.ts +0 -11
  255. package/dist/types/components/common/item-link/stencil-item-link.d.ts +0 -30
  256. package/dist/types/components/common/item-list/item-list-decorators.d.ts +0 -17
  257. package/dist/types/components/common/item-list/stencil-display-grid.d.ts +0 -17
  258. package/dist/types/components/common/item-list/stencil-display-wrapper.d.ts +0 -11
  259. package/dist/types/components/common/item-list/stencil-item-decorators.d.ts +0 -41
  260. package/dist/types/components/common/item-list/stencil-item-display-guard.d.ts +0 -10
  261. package/dist/types/components/common/item-list/stencil-item-list-common.d.ts +0 -31
  262. package/dist/types/components/common/item-list/stencil-item-list-guard.d.ts +0 -13
  263. package/dist/types/components/common/item-text/stencil-item-text-fallback.d.ts +0 -14
  264. package/dist/types/components/common/item-text/stencil-item-text-highlighted.d.ts +0 -13
  265. package/dist/types/components/common/load-more/guard.d.ts +0 -10
  266. package/dist/types/components/common/load-more/stencil-button.d.ts +0 -13
  267. package/dist/types/components/common/load-more/stencil-container.d.ts +0 -5
  268. package/dist/types/components/common/load-more/stencil-progress-bar.d.ts +0 -10
  269. package/dist/types/components/common/load-more/stencil-summary.d.ts +0 -13
  270. package/dist/types/components/common/no-items/stencil-container.d.ts +0 -5
  271. package/dist/types/components/common/no-items/stencil-guard.d.ts +0 -11
  272. package/dist/types/components/common/no-items/stencil-magnifying-glass.d.ts +0 -5
  273. package/dist/types/components/common/no-items/stencil-no-items.d.ts +0 -12
  274. package/dist/types/components/common/no-items/stencil-tips.d.ts +0 -10
  275. package/dist/types/components/common/pager/stencil-pager-buttons.d.ts +0 -33
  276. package/dist/types/components/common/pager/stencil-pager-navigation.d.ts +0 -10
  277. package/dist/types/components/common/product-template/stencil-product-template-common.d.ts +0 -26
  278. package/dist/types/components/common/query-correction/stencil-auto-correction.d.ts +0 -12
  279. package/dist/types/components/common/query-correction/stencil-correction.d.ts +0 -12
  280. package/dist/types/components/common/query-correction/stencil-guard.d.ts +0 -9
  281. package/dist/types/components/common/query-correction/stencil-trigger-correction.d.ts +0 -13
  282. package/dist/types/components/common/query-error/stencil-container.d.ts +0 -5
  283. package/dist/types/components/common/query-error/stencil-description.d.ts +0 -13
  284. package/dist/types/components/common/query-error/stencil-details.d.ts +0 -10
  285. package/dist/types/components/common/query-error/stencil-guard.d.ts +0 -9
  286. package/dist/types/components/common/query-error/stencil-icon.d.ts +0 -9
  287. package/dist/types/components/common/query-error/stencil-link.d.ts +0 -11
  288. package/dist/types/components/common/query-error/stencil-show-more.d.ts +0 -13
  289. package/dist/types/components/common/query-error/stencil-title.d.ts +0 -12
  290. package/dist/types/components/common/query-summary/stencil-container.d.ts +0 -9
  291. package/dist/types/components/common/query-summary/stencil-guard.d.ts +0 -11
  292. package/dist/types/components/common/query-summary/stencil-utils.d.ts +0 -23
  293. package/dist/types/components/common/refine-modal/stencil-body.d.ts +0 -7
  294. package/dist/types/components/common/refine-modal/stencil-button.d.ts +0 -12
  295. package/dist/types/components/common/refine-modal/stencil-filters.d.ts +0 -20
  296. package/dist/types/components/common/refine-modal/stencil-guard.d.ts +0 -11
  297. package/dist/types/components/common/refine-modal/stencil-modal.d.ts +0 -18
  298. package/dist/types/components/common/refine-modal/stencil-sort.d.ts +0 -11
  299. package/dist/types/components/common/result-children/stencil-children-wrapper.d.ts +0 -9
  300. package/dist/types/components/common/result-children/stencil-collection-guard.d.ts +0 -16
  301. package/dist/types/components/common/result-children/stencil-guard.d.ts +0 -11
  302. package/dist/types/components/common/result-children/stencil-show-hide-button.d.ts +0 -14
  303. package/dist/types/components/common/result-templates/stencil-result-template-common.d.ts +0 -24
  304. package/dist/types/components/common/search-box/stencil-search-box-wrapper.d.ts +0 -10
  305. package/dist/types/components/common/search-box/stencil-search-text-area.d.ts +0 -22
  306. package/dist/types/components/common/search-box/stencil-submit-button.d.ts +0 -12
  307. package/dist/types/components/common/search-box/stencil-text-area-clear-button.d.ts +0 -12
  308. package/dist/types/components/common/smart-snippets/atomic-smart-snippet/stencil-smart-snippet-common.d.ts +0 -31
  309. package/dist/types/components/common/smart-snippets/atomic-smart-snippet-feedback-modal/stencil-smart-snippet-feedback-modal-common.d.ts +0 -57
  310. package/dist/types/components/common/smart-snippets/atomic-smart-snippet-suggestions/stencil-smart-snippet-suggestions-common.d.ts +0 -43
  311. package/dist/types/components/common/smart-snippets/stencil-smart-snippet-feedback-banner.d.ts +0 -18
  312. package/dist/types/components/common/stencil-button-style.d.ts +0 -11
  313. package/dist/types/components/common/stencil-button.d.ts +0 -30
  314. package/dist/types/components/common/stencil-carousel.d.ts +0 -15
  315. package/dist/types/components/common/stencil-checkbox.d.ts +0 -22
  316. package/dist/types/components/common/stencil-fieldset-group.d.ts +0 -9
  317. package/dist/types/components/common/stencil-heading.d.ts +0 -7
  318. package/dist/types/components/common/stencil-hidden.d.ts +0 -5
  319. package/dist/types/components/common/stencil-iconButton.d.ts +0 -13
  320. package/dist/types/components/common/stencil-radio-button.d.ts +0 -12
  321. package/dist/types/components/common/stencil-switch.d.ts +0 -15
  322. package/dist/types/components/common/stencil-triStateCheckbox.d.ts +0 -11
  323. package/dist/types/components/common/suggestions/stencil-instant-item.d.ts +0 -19
  324. package/dist/types/components/common/suggestions/stencil-query-suggestions.d.ts +0 -32
  325. package/dist/types/components/common/suggestions/stencil-suggestion-manager.d.ts +0 -96
  326. package/dist/types/components/insight/result-templates/atomic-insight-result-children-template/atomic-insight-result-children-template.d.ts +0 -50
  327. package/dist/types/components/search/facets/facet-segmented-value/stencil-facet-segmented-value.d.ts +0 -6
  328. package/dist/types/components/search/result-template-component-utils/context/stencil-result-template-decorators.d.ts +0 -32
  329. package/dist/types/components/search/result-template-components/quickview-iframe/stencil-quickview-iframe.d.ts +0 -14
  330. package/dist/types/utils/__mocks__/stencil-resource-url.d.ts +0 -1
  331. package/dist/types/utils/initialization-utils.d.ts +0 -70
  332. package/dist/types/utils/jsx-utils.d.ts +0 -6
  333. package/dist/types/utils/stencil-accessibility-utils.d.ts +0 -43
  334. package/dist/types/utils/stencil-asset-path-utils.d.ts +0 -1
  335. package/dist/types/utils/stencil-resource-url.d.ts +0 -1
  336. /package/dist/atomic/components/utils/{initialization-lit-stencil-common-utils.js → initialization-common-utils.js} +0 -0
  337. /package/dist/types/utils/{initialization-lit-stencil-common-utils.d.ts → initialization-common-utils.d.ts} +0 -0
@@ -1,10 +1,30 @@
1
- import { c as closest } from './initialization-lit-stencil-common-utils-e7755434.js';
2
- export { M as MissingInterfaceParentError, f as initializeBindings } from './initialization-lit-stencil-common-utils-e7755434.js';
3
- import { b as buildCustomEvent } from './event-utils-8de63ec3.js';
4
- import { i as itemContext } from './stencil-result-template-decorators-4c2e5132.js';
5
- export { r as resultContext } from './stencil-result-template-decorators-4c2e5132.js';
1
+ export * from '@coveo/atomic-legacy/item-decorators';
6
2
  import { buildInteractiveResult } from '@coveo/headless';
7
- import './index-4d679e44.js';
3
+
4
+ function closest(element, selector) {
5
+ if (!element) {
6
+ return null;
7
+ }
8
+ if (element.matches(selector)) {
9
+ return element;
10
+ }
11
+ if (element.parentNode instanceof ShadowRoot) {
12
+ return closest(element.parentNode.host, selector);
13
+ }
14
+ return closest(element.parentElement, selector);
15
+ }
16
+
17
+ function buildCustomEvent(name, detail) {
18
+ return new CustomEvent(name, {
19
+ detail,
20
+ // Event will bubble up the DOM until it is caught
21
+ bubbles: true,
22
+ // Allows to verify if event is caught (cancelled). If it's not caught, it won't be initialized.
23
+ cancelable: true,
24
+ // Allows to compose Atomic components inside one another, event will go across DOM/Shadow DOM
25
+ composed: true,
26
+ });
27
+ }
8
28
 
9
29
  class MissingParentError extends Error {
10
30
  constructor(elementName, parentName) {
@@ -39,22 +59,6 @@ function fetchProductContext(element) {
39
59
  return fetchItemContext(element, 'atomic-product');
40
60
  }
41
61
 
42
- /**
43
- * Retrieves `Product` on a rendered `atomic-product`.
44
- *
45
- * This method is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.
46
- *
47
- * You should use the method in the [`connectedCallback` lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).
48
- *
49
- * @param element - The element that the event is dispatched to, which must be the child of a rendered "atomic-product".
50
- * @returns A promise that resolves on initialization of the parent "atomic-product" element, or rejects when there is no parent "atomic-product" element.
51
- *
52
- * @deprecated should only be used for Stencil components. For Lit components, use `fetchProductContext` from \@/src/components/commerce/product-template-component-utils/context/fetch-product-context.ts
53
- */
54
- function productContext(element) {
55
- return itemContext(element, 'atomic-product');
56
- }
57
-
58
62
  /**
59
63
  * Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.
60
64
  *
@@ -108,6 +112,76 @@ function elementHasQuery(el) {
108
112
  return !!el.query && el.query.trim() !== '';
109
113
  }
110
114
 
115
+ function getWindow() {
116
+ return window;
117
+ }
118
+ function getInitQueueNamespace() {
119
+ if (!getWindow().initQueueNamespace) {
120
+ getWindow().initQueueNamespace = {
121
+ eventQueueMap: new Map(),
122
+ parentReadyMap: new Map(),
123
+ };
124
+ }
125
+ return getWindow().initQueueNamespace;
126
+ }
127
+ function getEventQueueMap() {
128
+ return getInitQueueNamespace().eventQueueMap;
129
+ }
130
+ function getParentReadyMap() {
131
+ return getInitQueueNamespace().parentReadyMap;
132
+ }
133
+ function isParentReady(parent) {
134
+ const parentReadyMap = getParentReadyMap();
135
+ return parentReadyMap.get(parent) || false;
136
+ }
137
+ function queueEventForParent(parent, event, element) {
138
+ const eventQueueMap = getEventQueueMap();
139
+ if (!eventQueueMap.has(parent)) {
140
+ eventQueueMap.set(parent, []);
141
+ }
142
+ eventQueueMap.get(parent).push({ event, element });
143
+ }
144
+ function enqueueOrDispatchInitializationEvent(parent, event, element) {
145
+ if (isParentReady(parent)) {
146
+ element.dispatchEvent(event);
147
+ }
148
+ else {
149
+ queueEventForParent(parent, event, element);
150
+ }
151
+ }
152
+
153
+ /**
154
+ * Retrieves `Bindings` or `CommerceBindings` on a configured parent interface.
155
+ * @param event - The element on which to dispatch the event, which must be the child of a configured Atomic container element.
156
+ * @returns A promise that resolves upon initialization of the parent container element, and rejects otherwise.
157
+ */
158
+ function fetchBindings(element) {
159
+ return new Promise((resolve, reject) => {
160
+ const event = buildCustomEvent(initializeEventName, (bindings) => resolve(bindings));
161
+ const parent = closest(element, initializableElements.join(', '));
162
+ if (!parent) {
163
+ reject(new MissingInterfaceParentError(element.nodeName.toLowerCase()));
164
+ return;
165
+ }
166
+ enqueueOrDispatchInitializationEvent(parent, event, element);
167
+ });
168
+ }
169
+ class MissingInterfaceParentError extends Error {
170
+ constructor(elementName) {
171
+ super(`The "${elementName}" element must be the child of the following elements: ${initializableElements.join(', ')}`);
172
+ }
173
+ }
174
+ const initializableElements = [
175
+ 'atomic-recs-interface',
176
+ 'atomic-search-interface',
177
+ 'atomic-commerce-interface',
178
+ 'atomic-commerce-recommendation-interface',
179
+ 'atomic-relevance-inspector',
180
+ 'atomic-insight-interface',
181
+ 'atomic-external',
182
+ ];
183
+ const initializeEventName = 'atomic/initializeComponent';
184
+
111
185
  /**
112
186
  * Binds the logging of document
113
187
  * @returns An unbind function for the events
@@ -139,6 +213,6 @@ function bindLogDocumentOpenOnResult(engine, result, resultElement, selector) {
139
213
  };
140
214
  }
141
215
 
142
- export { bindLogDocumentOpenOnResult, dispatchSearchBoxSuggestionsEvent, elementHasNoQuery, elementHasQuery, fetchProductContext, productContext };
216
+ export { MissingInterfaceParentError, bindLogDocumentOpenOnResult, dispatchSearchBoxSuggestionsEvent, elementHasNoQuery, elementHasQuery, fetchProductContext, fetchBindings as initializeBindings };
143
217
 
144
218
  //# sourceMappingURL=index.js.map
@@ -1,11 +1,10 @@
1
- import { b as bootstrapLazy } from './index-4d679e44.js';
2
- export { s as setNonce } from './index-4d679e44.js';
3
- import { g as globalScripts } from './app-globals-0f993ce5.js';
1
+ import { g as globalScripts, b as bootstrapLazy } from './app-globals-c5b073da.js';
2
+ export { s as setNonce } from './app-globals-c5b073da.js';
4
3
 
5
4
  const defineCustomElements = async (win, options) => {
6
5
  if (typeof window === 'undefined') return undefined;
7
6
  await globalScripts();
8
- return bootstrapLazy([["atomic-insight-result-action",[[0,"atomic-insight-result-action",{"icon":[1025],"tooltip":[1025],"tooltipOnClick":[1025,"tooltip-on-click"],"action":[1025],"error":[32]}]]],["atomic-insight-result-children-template",[[1,"atomic-insight-result-children-template",{"conditions":[16],"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["atomic-insight-timeframe-facet",[[1,"atomic-insight-timeframe-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"withDatePicker":[516,"with-date-picker"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"sortCriteria":[513,"sort-criteria"],"facetState":[32],"facetForDatePickerState":[32],"filterState":[32],"searchStatusState":[32],"error":[32]},[[0,"atomic/dateInputApply","applyDateInput"]]]]],["atomic-stencil-facet-date-input",[[0,"atomic-stencil-facet-date-input",{"bindings":[16],"rangeGetter":[16],"rangeSetter":[16],"facetId":[1,"facet-id"],"label":[1],"min":[1],"max":[1],"start":[32],"end":[32]}]]]], options);
7
+ return bootstrapLazy([], options);
9
8
  };
10
9
 
11
10
  export { defineCustomElements };
@@ -0,0 +1,481 @@
1
+ const NAMESPACE = 'atomic';
2
+ const BUILD = /* atomic */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: false, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: false, method: false, mode: false, observeAttribute: false, profile: false, prop: false, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: false, svg: false, taskQueue: true, transformTagName: false, updatable: false, vdomAttribute: false, vdomClass: false, vdomFunctional: false, vdomKey: false, vdomListener: false, vdomPropOrAttr: false, vdomRef: false, vdomRender: false, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
3
+
4
+ /*
5
+ Stencil Client Platform v4.20.0 | MIT Licensed | https://stenciljs.com
6
+ */
7
+ var __defProp = Object.defineProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var hostRefs = /* @__PURE__ */ new WeakMap();
13
+ var getHostRef = (ref) => hostRefs.get(ref);
14
+ var registerHost = (hostElement, cmpMeta) => {
15
+ const hostRef = {
16
+ $flags$: 0,
17
+ $hostElement$: hostElement,
18
+ $cmpMeta$: cmpMeta,
19
+ $instanceValues$: /* @__PURE__ */ new Map()
20
+ };
21
+ {
22
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
23
+ hostElement["s-p"] = [];
24
+ hostElement["s-rc"] = [];
25
+ }
26
+ return hostRefs.set(hostElement, hostRef);
27
+ };
28
+ var consoleError = (e, el) => (0, console.error)(e, el);
29
+
30
+ // src/client/client-load-module.ts
31
+ var cmpModules = /* @__PURE__ */ new Map();
32
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
33
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
34
+ const bundleId = cmpMeta.$lazyBundleId$;
35
+ if (!bundleId) {
36
+ return void 0;
37
+ }
38
+ const module = cmpModules.get(bundleId) ;
39
+ if (module) {
40
+ return module[exportName];
41
+ }
42
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
43
+ return import(
44
+ /* @vite-ignore */
45
+ /* webpackInclude: /\.entry\.js$/ */
46
+ /* webpackExclude: /\.system\.entry\.js$/ */
47
+ /* webpackMode: "lazy" */
48
+ `./${bundleId}.entry.js${""}`
49
+ ).then((importedModule) => {
50
+ {
51
+ cmpModules.set(bundleId, importedModule);
52
+ }
53
+ return importedModule[exportName];
54
+ }, consoleError);
55
+ };
56
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
57
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
58
+ var win = typeof window !== "undefined" ? window : {};
59
+ var doc = win.document || { head: {} };
60
+ var plt = {
61
+ $flags$: 0,
62
+ $resourcesUrl$: "",
63
+ jmp: (h2) => h2(),
64
+ raf: (h2) => requestAnimationFrame(h2),
65
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
66
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
67
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
68
+ };
69
+ var promiseResolve = (v) => Promise.resolve(v);
70
+ var queuePending = false;
71
+ var queueDomReads = [];
72
+ var queueDomWrites = [];
73
+ var queueTask = (queue, write) => (cb) => {
74
+ queue.push(cb);
75
+ if (!queuePending) {
76
+ queuePending = true;
77
+ if (write && plt.$flags$ & 4 /* queueSync */) {
78
+ nextTick(flush);
79
+ } else {
80
+ plt.raf(flush);
81
+ }
82
+ }
83
+ };
84
+ var consume = (queue) => {
85
+ for (let i2 = 0; i2 < queue.length; i2++) {
86
+ try {
87
+ queue[i2](performance.now());
88
+ } catch (e) {
89
+ consoleError(e);
90
+ }
91
+ }
92
+ queue.length = 0;
93
+ };
94
+ var flush = () => {
95
+ consume(queueDomReads);
96
+ {
97
+ consume(queueDomWrites);
98
+ if (queuePending = queueDomReads.length > 0) {
99
+ plt.raf(flush);
100
+ }
101
+ }
102
+ };
103
+ var nextTick = (cb) => promiseResolve().then(cb);
104
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
105
+
106
+ // src/utils/query-nonce-meta-tag-content.ts
107
+ function queryNonceMetaTagContent(doc2) {
108
+ var _a, _b, _c;
109
+ return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
110
+ }
111
+
112
+ // src/utils/result.ts
113
+ var result_exports = {};
114
+ __export(result_exports, {
115
+ err: () => err,
116
+ map: () => map,
117
+ ok: () => ok,
118
+ unwrap: () => unwrap,
119
+ unwrapErr: () => unwrapErr
120
+ });
121
+ var ok = (value) => ({
122
+ isOk: true,
123
+ isErr: false,
124
+ value
125
+ });
126
+ var err = (value) => ({
127
+ isOk: false,
128
+ isErr: true,
129
+ value
130
+ });
131
+ function map(result, fn) {
132
+ if (result.isOk) {
133
+ const val = fn(result.value);
134
+ if (val instanceof Promise) {
135
+ return val.then((newVal) => ok(newVal));
136
+ } else {
137
+ return ok(val);
138
+ }
139
+ }
140
+ if (result.isErr) {
141
+ const value = result.value;
142
+ return err(value);
143
+ }
144
+ throw "should never get here";
145
+ }
146
+ var unwrap = (result) => {
147
+ if (result.isOk) {
148
+ return result.value;
149
+ } else {
150
+ throw result.value;
151
+ }
152
+ };
153
+ var unwrapErr = (result) => {
154
+ if (result.isErr) {
155
+ return result.value;
156
+ } else {
157
+ throw result.value;
158
+ }
159
+ };
160
+ var createTime = (fnName, tagName = "") => {
161
+ {
162
+ return () => {
163
+ return;
164
+ };
165
+ }
166
+ };
167
+ var uniqueTime = (key, measureText) => {
168
+ {
169
+ return () => {
170
+ return;
171
+ };
172
+ }
173
+ };
174
+ var emitEvent = (elm, name, opts) => {
175
+ const ev = plt.ce(name, opts);
176
+ elm.dispatchEvent(ev);
177
+ return ev;
178
+ };
179
+
180
+ // src/runtime/update-component.ts
181
+ var attachToAncestor = (hostRef, ancestorComponent) => {
182
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
183
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
184
+ }
185
+ };
186
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
187
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
188
+ hostRef.$flags$ |= 512 /* needsRerender */;
189
+ return;
190
+ }
191
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
192
+ const dispatch = () => dispatchHooks(hostRef);
193
+ return writeTask(dispatch) ;
194
+ };
195
+ var dispatchHooks = (hostRef, isInitialLoad) => {
196
+ const elm = hostRef.$hostElement$;
197
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
198
+ const instance = hostRef.$lazyInstance$ ;
199
+ if (!instance) {
200
+ throw new Error(
201
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
202
+ );
203
+ }
204
+ let maybePromise;
205
+ endSchedule();
206
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance));
207
+ };
208
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
209
+ console.error(err2);
210
+ fn();
211
+ }) : fn();
212
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
213
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
214
+ var _a;
215
+ const elm = hostRef.$hostElement$;
216
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
217
+ const rc = elm["s-rc"];
218
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
219
+ {
220
+ callRender(hostRef, instance);
221
+ }
222
+ if (rc) {
223
+ rc.map((cb) => cb());
224
+ elm["s-rc"] = void 0;
225
+ }
226
+ endRender();
227
+ endUpdate();
228
+ {
229
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
230
+ const postUpdate = () => postUpdateComponent(hostRef);
231
+ if (childrenPromises.length === 0) {
232
+ postUpdate();
233
+ } else {
234
+ Promise.all(childrenPromises).then(postUpdate);
235
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
236
+ childrenPromises.length = 0;
237
+ }
238
+ }
239
+ };
240
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
241
+ try {
242
+ instance = instance.render() ;
243
+ {
244
+ hostRef.$flags$ |= 2 /* hasRendered */;
245
+ }
246
+ } catch (e) {
247
+ consoleError(e, hostRef.$hostElement$);
248
+ }
249
+ return null;
250
+ };
251
+ var postUpdateComponent = (hostRef) => {
252
+ const tagName = hostRef.$cmpMeta$.$tagName$;
253
+ const elm = hostRef.$hostElement$;
254
+ const endPostUpdate = createTime("postUpdate", tagName);
255
+ const ancestorComponent = hostRef.$ancestorComponent$;
256
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
257
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
258
+ {
259
+ addHydratedFlag(elm);
260
+ }
261
+ endPostUpdate();
262
+ {
263
+ hostRef.$onReadyResolve$(elm);
264
+ if (!ancestorComponent) {
265
+ appDidLoad();
266
+ }
267
+ }
268
+ } else {
269
+ endPostUpdate();
270
+ }
271
+ {
272
+ if (hostRef.$onRenderResolve$) {
273
+ hostRef.$onRenderResolve$();
274
+ hostRef.$onRenderResolve$ = void 0;
275
+ }
276
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
277
+ nextTick(() => scheduleUpdate(hostRef));
278
+ }
279
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
280
+ }
281
+ };
282
+ var appDidLoad = (who) => {
283
+ {
284
+ addHydratedFlag(doc.documentElement);
285
+ }
286
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
287
+ };
288
+ var addHydratedFlag = (elm) => {
289
+ var _a;
290
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
291
+ };
292
+
293
+ // src/runtime/proxy-component.ts
294
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
295
+ return Cstr;
296
+ };
297
+
298
+ // src/runtime/initialize-component.ts
299
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
300
+ let Cstr;
301
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
302
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
303
+ const bundleId = cmpMeta.$lazyBundleId$;
304
+ if (bundleId) {
305
+ const CstrImport = loadModule(cmpMeta);
306
+ if (CstrImport && "then" in CstrImport) {
307
+ const endLoad = uniqueTime();
308
+ Cstr = await CstrImport;
309
+ endLoad();
310
+ } else {
311
+ Cstr = CstrImport;
312
+ }
313
+ if (!Cstr) {
314
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
315
+ }
316
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
317
+ try {
318
+ new Cstr(hostRef);
319
+ } catch (e) {
320
+ consoleError(e);
321
+ }
322
+ endNewInstance();
323
+ } else {
324
+ Cstr = elm.constructor;
325
+ const cmpTag = elm.localName;
326
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
327
+ }
328
+ }
329
+ const ancestorComponent = hostRef.$ancestorComponent$;
330
+ const schedule = () => scheduleUpdate(hostRef);
331
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
332
+ ancestorComponent["s-rc"].push(schedule);
333
+ } else {
334
+ schedule();
335
+ }
336
+ };
337
+ var fireConnectedCallback = (instance) => {
338
+ };
339
+
340
+ // src/runtime/connected-callback.ts
341
+ var connectedCallback = (elm) => {
342
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
343
+ const hostRef = getHostRef(elm);
344
+ const cmpMeta = hostRef.$cmpMeta$;
345
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
346
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
347
+ hostRef.$flags$ |= 1 /* hasConnected */;
348
+ {
349
+ let ancestorComponent = elm;
350
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
351
+ if (ancestorComponent["s-p"]) {
352
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
353
+ break;
354
+ }
355
+ }
356
+ }
357
+ {
358
+ initializeComponent(elm, hostRef, cmpMeta);
359
+ }
360
+ } else {
361
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
362
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
363
+ }
364
+ }
365
+ endConnected();
366
+ }
367
+ };
368
+ var disconnectInstance = (instance) => {
369
+ };
370
+ var disconnectedCallback = async (elm) => {
371
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
372
+ const hostRef = getHostRef(elm);
373
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
374
+ hostRef.$onReadyPromise$.then(() => disconnectInstance());
375
+ }
376
+ }
377
+ };
378
+
379
+ // src/runtime/bootstrap-lazy.ts
380
+ var bootstrapLazy = (lazyBundles, options = {}) => {
381
+ var _a;
382
+ const endBootstrap = createTime();
383
+ const cmpTags = [];
384
+ const exclude = options.exclude || [];
385
+ const customElements2 = win.customElements;
386
+ const head = doc.head;
387
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
388
+ const dataStyles = /* @__PURE__ */ doc.createElement("style");
389
+ const deferredConnectedCallbacks = [];
390
+ let appLoadFallback;
391
+ let isBootstrapping = true;
392
+ Object.assign(plt, options);
393
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
394
+ let hasSlotRelocation = false;
395
+ lazyBundles.map((lazyBundle) => {
396
+ lazyBundle[1].map((compactMeta) => {
397
+ const cmpMeta = {
398
+ $flags$: compactMeta[0],
399
+ $tagName$: compactMeta[1],
400
+ $members$: compactMeta[2],
401
+ $listeners$: compactMeta[3]
402
+ };
403
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
404
+ hasSlotRelocation = true;
405
+ }
406
+ const tagName = cmpMeta.$tagName$;
407
+ const HostElement = class extends HTMLElement {
408
+ // StencilLazyHost
409
+ constructor(self) {
410
+ super(self);
411
+ this.hasRegisteredEventListeners = false;
412
+ self = this;
413
+ registerHost(self, cmpMeta);
414
+ }
415
+ connectedCallback() {
416
+ getHostRef(this);
417
+ if (!this.hasRegisteredEventListeners) {
418
+ this.hasRegisteredEventListeners = true;
419
+ }
420
+ if (appLoadFallback) {
421
+ clearTimeout(appLoadFallback);
422
+ appLoadFallback = null;
423
+ }
424
+ if (isBootstrapping) {
425
+ deferredConnectedCallbacks.push(this);
426
+ } else {
427
+ plt.jmp(() => connectedCallback(this));
428
+ }
429
+ }
430
+ disconnectedCallback() {
431
+ plt.jmp(() => disconnectedCallback(this));
432
+ }
433
+ componentOnReady() {
434
+ return getHostRef(this).$onReadyPromise$;
435
+ }
436
+ };
437
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
438
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
439
+ cmpTags.push(tagName);
440
+ customElements2.define(
441
+ tagName,
442
+ proxyComponent(HostElement)
443
+ );
444
+ }
445
+ });
446
+ });
447
+ if (cmpTags.length > 0) {
448
+ if (hasSlotRelocation) {
449
+ dataStyles.textContent += SLOT_FB_CSS;
450
+ }
451
+ {
452
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
453
+ }
454
+ if (dataStyles.innerHTML.length) {
455
+ dataStyles.setAttribute("data-styles", "");
456
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
457
+ if (nonce != null) {
458
+ dataStyles.setAttribute("nonce", nonce);
459
+ }
460
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
461
+ }
462
+ }
463
+ isBootstrapping = false;
464
+ if (deferredConnectedCallbacks.length) {
465
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
466
+ } else {
467
+ {
468
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
469
+ }
470
+ }
471
+ endBootstrap();
472
+ };
473
+
474
+ // src/runtime/nonce.ts
475
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
476
+
477
+ const globalScripts = () => {};
478
+
479
+ export { bootstrapLazy as b, globalScripts as g, promiseResolve as p, setNonce as s };
480
+
481
+ //# sourceMappingURL=app-globals-c5b073da.js.map