@appcues/web-sdk 7.22.0 → 7.23.13

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 (361) hide show
  1. package/CHANGELOG.md +115 -0
  2. package/build/actions/action-types.d.ts +46 -0
  3. package/build/actions/action-types.d.ts.map +1 -0
  4. package/build/actions/annotations-actions.d.ts +121 -0
  5. package/build/actions/annotations-actions.d.ts.map +1 -0
  6. package/build/actions/checklist-actions.d.ts +199 -0
  7. package/build/actions/checklist-actions.d.ts.map +1 -0
  8. package/build/actions/collision-mode-actions.d.ts +9 -0
  9. package/build/actions/collision-mode-actions.d.ts.map +1 -0
  10. package/build/actions/common-actions.d.ts +124 -0
  11. package/build/actions/common-actions.d.ts.map +1 -0
  12. package/build/actions/core-actions.d.ts +259 -0
  13. package/build/actions/core-actions.d.ts.map +1 -0
  14. package/build/actions/create-action.d.ts +17 -0
  15. package/build/actions/create-action.d.ts.map +1 -0
  16. package/build/actions/debugger-actions.d.ts +8 -0
  17. package/build/actions/debugger-actions.d.ts.map +1 -0
  18. package/build/actions/experience-actions.d.ts +48 -0
  19. package/build/actions/experience-actions.d.ts.map +1 -0
  20. package/build/actions/hotspots-actions.d.ts +36 -0
  21. package/build/actions/hotspots-actions.d.ts.map +1 -0
  22. package/build/actions/modal-actions.d.ts +16 -0
  23. package/build/actions/modal-actions.d.ts.map +1 -0
  24. package/build/actions/root-actions.d.ts +260 -0
  25. package/build/actions/root-actions.d.ts.map +1 -0
  26. package/build/actions/satisfaction-survey-actions.d.ts +67 -0
  27. package/build/actions/satisfaction-survey-actions.d.ts.map +1 -0
  28. package/build/actions/session-actions.d.ts +19 -0
  29. package/build/actions/session-actions.d.ts.map +1 -0
  30. package/build/actions/widget-actions.d.ts +25 -0
  31. package/build/actions/widget-actions.d.ts.map +1 -0
  32. package/build/analytics/create-checklist-event.d.ts +24 -0
  33. package/build/analytics/create-checklist-event.d.ts.map +1 -0
  34. package/build/analytics/create-events.d.ts +30 -0
  35. package/build/analytics/create-events.d.ts.map +1 -0
  36. package/build/analytics/create-flow-event.d.ts +3 -0
  37. package/build/analytics/create-flow-event.d.ts.map +1 -0
  38. package/build/analytics/create-session-event.d.ts +3 -0
  39. package/build/analytics/create-session-event.d.ts.map +1 -0
  40. package/build/analytics/create-step-events.d.ts +40 -0
  41. package/build/analytics/create-step-events.d.ts.map +1 -0
  42. package/build/analytics/transform-analytics-event.d.ts +10 -0
  43. package/build/analytics/transform-analytics-event.d.ts.map +1 -0
  44. package/build/bind-interface.d.ts +10 -0
  45. package/build/bind-interface.d.ts.map +1 -0
  46. package/build/bootstrap.npm.CvUM9SYs.js +11962 -0
  47. package/build/bootstrap.npm.d.ts +2 -0
  48. package/build/bootstrap.npm.d.ts.map +1 -0
  49. package/build/checklist.004bd22db55d851f50945b88f28d0afa81e23405.css +1 -0
  50. package/build/clickstream/generate-selector.d.ts +12 -0
  51. package/build/clickstream/generate-selector.d.ts.map +1 -0
  52. package/build/clickstream/index.d.ts +2 -0
  53. package/build/clickstream/index.d.ts.map +1 -0
  54. package/build/clickstream/pii-filter.d.ts +3 -0
  55. package/build/clickstream/pii-filter.d.ts.map +1 -0
  56. package/build/clickstream/saga.d.ts +2 -0
  57. package/build/clickstream/saga.d.ts.map +1 -0
  58. package/build/constants.CUx6hN0B.js +119 -0
  59. package/build/container.004bd22db55d851f50945b88f28d0afa81e23405.css +1 -0
  60. package/build/css-helper.d.ts +2 -0
  61. package/build/css-helper.d.ts.map +1 -0
  62. package/build/custom-events/actions.d.ts +3 -0
  63. package/build/custom-events/actions.d.ts.map +1 -0
  64. package/build/custom-events/index.d.ts +4 -0
  65. package/build/custom-events/index.d.ts.map +1 -0
  66. package/build/custom-events/listeners/click.d.ts +14 -0
  67. package/build/custom-events/listeners/click.d.ts.map +1 -0
  68. package/build/custom-events/listeners/get-composed-path.d.ts +2 -0
  69. package/build/custom-events/listeners/get-composed-path.d.ts.map +1 -0
  70. package/build/custom-events/listeners/get-matching-events.d.ts +31 -0
  71. package/build/custom-events/listeners/get-matching-events.d.ts.map +1 -0
  72. package/build/custom-events/listeners/hover.d.ts +13 -0
  73. package/build/custom-events/listeners/hover.d.ts.map +1 -0
  74. package/build/custom-events/listeners/input.d.ts +5 -0
  75. package/build/custom-events/listeners/input.d.ts.map +1 -0
  76. package/build/custom-events/saga.d.ts +11 -0
  77. package/build/custom-events/saga.d.ts.map +1 -0
  78. package/build/custom-events/transform-custom-event.d.ts +18 -0
  79. package/build/custom-events/transform-custom-event.d.ts.map +1 -0
  80. package/build/data/api.d.ts +107 -0
  81. package/build/data/api.d.ts.map +1 -0
  82. package/build/data/create-event.d.ts +10 -0
  83. package/build/data/create-event.d.ts.map +1 -0
  84. package/build/data/message-dispatcher.d.ts +11 -0
  85. package/build/data/message-dispatcher.d.ts.map +1 -0
  86. package/build/data/strip-query-params.d.ts +3 -0
  87. package/build/data/strip-query-params.d.ts.map +1 -0
  88. package/build/data/transports/http.d.ts +2 -0
  89. package/build/data/transports/http.d.ts.map +1 -0
  90. package/build/data/transports/websocket.d.ts +10 -0
  91. package/build/data/transports/websocket.d.ts.map +1 -0
  92. package/build/debugger.004bd22db55d851f50945b88f28d0afa81e23405.css +1 -0
  93. package/build/dist.BmJY3Sl-.js +85 -0
  94. package/build/dist.DrPFC3yn.js +2204 -0
  95. package/build/index.npm.js +88 -4
  96. package/build/initialize.d.ts +6 -0
  97. package/build/initialize.d.ts.map +1 -0
  98. package/build/integrations/integration-helpers.d.ts +57 -0
  99. package/build/integrations/integration-helpers.d.ts.map +1 -0
  100. package/build/integrations/integration-methods.d.ts +8 -0
  101. package/build/integrations/integration-methods.d.ts.map +1 -0
  102. package/build/lifecycle-events/create-lifecycle-events.d.ts +13 -0
  103. package/build/lifecycle-events/create-lifecycle-events.d.ts.map +1 -0
  104. package/build/main.d.ts +3 -0
  105. package/build/main.d.ts.map +1 -0
  106. package/build/modal.004bd22db55d851f50945b88f28d0afa81e23405.css +1 -0
  107. package/build/open-builder.BxCqW7tw.js +8252 -0
  108. package/build/reducers/annotations-reducers.d.ts +49 -0
  109. package/build/reducers/annotations-reducers.d.ts.map +1 -0
  110. package/build/reducers/checklist-reducers.d.ts +49 -0
  111. package/build/reducers/checklist-reducers.d.ts.map +1 -0
  112. package/build/reducers/common-reducers.d.ts +70 -0
  113. package/build/reducers/common-reducers.d.ts.map +1 -0
  114. package/build/reducers/core-reducers.d.ts +166 -0
  115. package/build/reducers/core-reducers.d.ts.map +1 -0
  116. package/build/reducers/create-root-reducer.d.ts +3 -0
  117. package/build/reducers/create-root-reducer.d.ts.map +1 -0
  118. package/build/reducers/debugger-reducers.d.ts +33 -0
  119. package/build/reducers/debugger-reducers.d.ts.map +1 -0
  120. package/build/reducers/default-reducer.d.ts +16 -0
  121. package/build/reducers/default-reducer.d.ts.map +1 -0
  122. package/build/reducers/hotspots-reducers.d.ts +17 -0
  123. package/build/reducers/hotspots-reducers.d.ts.map +1 -0
  124. package/build/reducers/modal-reducers.d.ts +13 -0
  125. package/build/reducers/modal-reducers.d.ts.map +1 -0
  126. package/build/reducers/reducer-helpers.d.ts +13 -0
  127. package/build/reducers/reducer-helpers.d.ts.map +1 -0
  128. package/build/reducers/root-reducers.d.ts +47 -0
  129. package/build/reducers/root-reducers.d.ts.map +1 -0
  130. package/build/reducers/satisfaction-survey-reducers.d.ts +41 -0
  131. package/build/reducers/satisfaction-survey-reducers.d.ts.map +1 -0
  132. package/build/reducers/session-reducers.d.ts +20 -0
  133. package/build/reducers/session-reducers.d.ts.map +1 -0
  134. package/build/reducers/test-mode-reducers.d.ts +9 -0
  135. package/build/reducers/test-mode-reducers.d.ts.map +1 -0
  136. package/build/reducers/widget-reducers.d.ts +21 -0
  137. package/build/reducers/widget-reducers.d.ts.map +1 -0
  138. package/build/sagas/action-sagas.d.ts +20 -0
  139. package/build/sagas/action-sagas.d.ts.map +1 -0
  140. package/build/sagas/annotations-sagas.d.ts +55 -0
  141. package/build/sagas/annotations-sagas.d.ts.map +1 -0
  142. package/build/sagas/checklist-sagas.d.ts +18 -0
  143. package/build/sagas/checklist-sagas.d.ts.map +1 -0
  144. package/build/sagas/collision-mode-sagas.d.ts +9 -0
  145. package/build/sagas/collision-mode-sagas.d.ts.map +1 -0
  146. package/build/sagas/common-sagas.d.ts +16 -0
  147. package/build/sagas/common-sagas.d.ts.map +1 -0
  148. package/build/sagas/conditions-sagas.d.ts +72 -0
  149. package/build/sagas/conditions-sagas.d.ts.map +1 -0
  150. package/build/sagas/debugger-sagas.d.ts +7 -0
  151. package/build/sagas/debugger-sagas.d.ts.map +1 -0
  152. package/build/sagas/experiences-sagas.d.ts +5 -0
  153. package/build/sagas/experiences-sagas.d.ts.map +1 -0
  154. package/build/sagas/experiments-sagas.d.ts +14 -0
  155. package/build/sagas/experiments-sagas.d.ts.map +1 -0
  156. package/build/sagas/flow-sagas.d.ts +64 -0
  157. package/build/sagas/flow-sagas.d.ts.map +1 -0
  158. package/build/sagas/handle-flow-lifecycle-events.d.ts +12 -0
  159. package/build/sagas/handle-flow-lifecycle-events.d.ts.map +1 -0
  160. package/build/sagas/handle-messages.d.ts +3 -0
  161. package/build/sagas/handle-messages.d.ts.map +1 -0
  162. package/build/sagas/hotspots-sagas.d.ts +30 -0
  163. package/build/sagas/hotspots-sagas.d.ts.map +1 -0
  164. package/build/sagas/knowledge-base-sagas.d.ts +2 -0
  165. package/build/sagas/knowledge-base-sagas.d.ts.map +1 -0
  166. package/build/sagas/modal-sagas.d.ts +3 -0
  167. package/build/sagas/modal-sagas.d.ts.map +1 -0
  168. package/build/sagas/open-builder-sagas.d.ts +5 -0
  169. package/build/sagas/open-builder-sagas.d.ts.map +1 -0
  170. package/build/sagas/saga-utils.d.ts +84 -0
  171. package/build/sagas/saga-utils.d.ts.map +1 -0
  172. package/build/sagas/sagas.d.ts +167 -0
  173. package/build/sagas/sagas.d.ts.map +1 -0
  174. package/build/sagas/satisfaction-survey-sagas.d.ts +8 -0
  175. package/build/sagas/satisfaction-survey-sagas.d.ts.map +1 -0
  176. package/build/sagas/session-sagas.d.ts +4 -0
  177. package/build/sagas/session-sagas.d.ts.map +1 -0
  178. package/build/sagas/test-mode-sagas.d.ts +4 -0
  179. package/build/sagas/test-mode-sagas.d.ts.map +1 -0
  180. package/build/sagas/watch-url-sagas.d.ts +3 -0
  181. package/build/sagas/watch-url-sagas.d.ts.map +1 -0
  182. package/build/sagas/widget-sagas.d.ts +4 -0
  183. package/build/sagas/widget-sagas.d.ts.map +1 -0
  184. package/build/satisfaction-survey.004bd22db55d851f50945b88f28d0afa81e23405.css +1 -0
  185. package/build/store/configure-store.d.ts +10 -0
  186. package/build/store/configure-store.d.ts.map +1 -0
  187. package/build/store/reporter-middleware.d.ts +10 -0
  188. package/build/store/reporter-middleware.d.ts.map +1 -0
  189. package/build/test-mode.004bd22db55d851f50945b88f28d0afa81e23405.css +1 -0
  190. package/build/tooltip.004bd22db55d851f50945b88f28d0afa81e23405.css +1 -0
  191. package/build/utils/accessible-tab.d.ts +2 -0
  192. package/build/utils/accessible-tab.d.ts.map +1 -0
  193. package/build/utils/array.d.ts +2 -0
  194. package/build/utils/array.d.ts.map +1 -0
  195. package/build/utils/conditions.d.ts +15 -0
  196. package/build/utils/conditions.d.ts.map +1 -0
  197. package/build/utils/create-appcues.d.ts +4 -0
  198. package/build/utils/create-appcues.d.ts.map +1 -0
  199. package/build/utils/create-reporter.d.ts +2 -0
  200. package/build/utils/create-reporter.d.ts.map +1 -0
  201. package/build/utils/data-selectors.d.ts +122 -0
  202. package/build/utils/data-selectors.d.ts.map +1 -0
  203. package/build/utils/delay.d.ts +9 -0
  204. package/build/utils/delay.d.ts.map +1 -0
  205. package/build/utils/dom.d.ts +160 -0
  206. package/build/utils/dom.d.ts.map +1 -0
  207. package/build/utils/embed-grouping.d.ts +23 -0
  208. package/build/utils/embed-grouping.d.ts.map +1 -0
  209. package/build/utils/escape.d.ts +12 -0
  210. package/build/utils/escape.d.ts.map +1 -0
  211. package/build/utils/evaluate-selector.d.ts +4 -0
  212. package/build/utils/evaluate-selector.d.ts.map +1 -0
  213. package/build/utils/flow-performance.d.ts +19 -0
  214. package/build/utils/flow-performance.d.ts.map +1 -0
  215. package/build/utils/flow-selectors.d.ts +52 -0
  216. package/build/utils/flow-selectors.d.ts.map +1 -0
  217. package/build/utils/generate-uuid.d.ts +7 -0
  218. package/build/utils/generate-uuid.d.ts.map +1 -0
  219. package/build/utils/generated-properties.d.ts +27 -0
  220. package/build/utils/generated-properties.d.ts.map +1 -0
  221. package/build/utils/handle-navigation.d.ts +2 -0
  222. package/build/utils/handle-navigation.d.ts.map +1 -0
  223. package/build/utils/humanize.d.ts +15 -0
  224. package/build/utils/humanize.d.ts.map +1 -0
  225. package/build/utils/iframes.d.ts +3 -0
  226. package/build/utils/iframes.d.ts.map +1 -0
  227. package/build/utils/is.d.ts +8 -0
  228. package/build/utils/is.d.ts.map +1 -0
  229. package/build/utils/lazy-loading.d.ts +2 -0
  230. package/build/utils/lazy-loading.d.ts.map +1 -0
  231. package/build/utils/links.d.ts +16 -0
  232. package/build/utils/links.d.ts.map +1 -0
  233. package/build/utils/location.d.ts +8 -0
  234. package/build/utils/location.d.ts.map +1 -0
  235. package/build/utils/pending-experience-events.d.ts +31 -0
  236. package/build/utils/pending-experience-events.d.ts.map +1 -0
  237. package/build/utils/query.d.ts +4 -0
  238. package/build/utils/query.d.ts.map +1 -0
  239. package/build/utils/render-contexts.d.ts +6 -0
  240. package/build/utils/render-contexts.d.ts.map +1 -0
  241. package/build/utils/selector-utils.d.ts +13 -0
  242. package/build/utils/selector-utils.d.ts.map +1 -0
  243. package/build/utils/show-powered-by.d.ts +9 -0
  244. package/build/utils/show-powered-by.d.ts.map +1 -0
  245. package/build/utils/store.d.ts +23 -0
  246. package/build/utils/store.d.ts.map +1 -0
  247. package/build/utils/temp-store.d.ts +5 -0
  248. package/build/utils/temp-store.d.ts.map +1 -0
  249. package/build/utils/test-mode.d.ts +3 -0
  250. package/build/utils/test-mode.d.ts.map +1 -0
  251. package/build/utils/time.d.ts +6 -0
  252. package/build/utils/time.d.ts.map +1 -0
  253. package/build/utils/trigger-content-changes.d.ts +20 -0
  254. package/build/utils/trigger-content-changes.d.ts.map +1 -0
  255. package/build/utils/url.d.ts +7 -0
  256. package/build/utils/url.d.ts.map +1 -0
  257. package/build/utils/validate-form-fields.d.ts +20 -0
  258. package/build/utils/validate-form-fields.d.ts.map +1 -0
  259. package/build/utils/vnode.d.ts +102 -0
  260. package/build/utils/vnode.d.ts.map +1 -0
  261. package/build/utils/widget.d.ts +10 -0
  262. package/build/utils/widget.d.ts.map +1 -0
  263. package/build/views/callbacks/checklist-callbacks.d.ts +20 -0
  264. package/build/views/callbacks/checklist-callbacks.d.ts.map +1 -0
  265. package/build/views/callbacks/common-callbacks.d.ts +45 -0
  266. package/build/views/callbacks/common-callbacks.d.ts.map +1 -0
  267. package/build/views/callbacks/debugger-callbacks.d.ts +6 -0
  268. package/build/views/callbacks/debugger-callbacks.d.ts.map +1 -0
  269. package/build/views/callbacks/hotspots-callbacks.d.ts +18 -0
  270. package/build/views/callbacks/hotspots-callbacks.d.ts.map +1 -0
  271. package/build/views/callbacks/modal-callbacks.d.ts +26 -0
  272. package/build/views/callbacks/modal-callbacks.d.ts.map +1 -0
  273. package/build/views/callbacks/sequential-hotspots-callbacks.d.ts +38 -0
  274. package/build/views/callbacks/sequential-hotspots-callbacks.d.ts.map +1 -0
  275. package/build/views/callbacks/survey-callbacks.d.ts +16 -0
  276. package/build/views/callbacks/survey-callbacks.d.ts.map +1 -0
  277. package/build/views/callbacks/test-mode-callbacks.d.ts +15 -0
  278. package/build/views/callbacks/test-mode-callbacks.d.ts.map +1 -0
  279. package/build/views/callbacks/widget-callbacks.d.ts +15 -0
  280. package/build/views/callbacks/widget-callbacks.d.ts.map +1 -0
  281. package/build/views/components/annotations.d.ts +13 -0
  282. package/build/views/components/annotations.d.ts.map +1 -0
  283. package/build/views/components/background.d.ts +6 -0
  284. package/build/views/components/background.d.ts.map +1 -0
  285. package/build/views/components/beacon-outline-styling.d.ts +3 -0
  286. package/build/views/components/beacon-outline-styling.d.ts.map +1 -0
  287. package/build/views/components/beacons.d.ts +12 -0
  288. package/build/views/components/beacons.d.ts.map +1 -0
  289. package/build/views/components/button.d.ts +11 -0
  290. package/build/views/components/button.d.ts.map +1 -0
  291. package/build/views/components/checklist-beacon.d.ts +3 -0
  292. package/build/views/components/checklist-beacon.d.ts.map +1 -0
  293. package/build/views/components/checklist-icons.d.ts +18 -0
  294. package/build/views/components/checklist-icons.d.ts.map +1 -0
  295. package/build/views/components/checklist-item.d.ts +3 -0
  296. package/build/views/components/checklist-item.d.ts.map +1 -0
  297. package/build/views/components/checklist.d.ts +3 -0
  298. package/build/views/components/checklist.d.ts.map +1 -0
  299. package/build/views/components/content-outline-styling.d.ts +3 -0
  300. package/build/views/components/content-outline-styling.d.ts.map +1 -0
  301. package/build/views/components/debugger.d.ts +14 -0
  302. package/build/views/components/debugger.d.ts.map +1 -0
  303. package/build/views/components/empty.d.ts +6 -0
  304. package/build/views/components/empty.d.ts.map +1 -0
  305. package/build/views/components/global-styling.d.ts +5 -0
  306. package/build/views/components/global-styling.d.ts.map +1 -0
  307. package/build/views/components/hotspot.d.ts +36 -0
  308. package/build/views/components/hotspot.d.ts.map +1 -0
  309. package/build/views/components/logo.d.ts +6 -0
  310. package/build/views/components/logo.d.ts.map +1 -0
  311. package/build/views/components/modal-step.d.ts +5 -0
  312. package/build/views/components/modal-step.d.ts.map +1 -0
  313. package/build/views/components/nps-survey-qualitative-question.d.ts +5 -0
  314. package/build/views/components/nps-survey-qualitative-question.d.ts.map +1 -0
  315. package/build/views/components/nps-survey-quantitative-option.d.ts +2 -0
  316. package/build/views/components/nps-survey-quantitative-option.d.ts.map +1 -0
  317. package/build/views/components/nps-survey-quantitative-question.d.ts +5 -0
  318. package/build/views/components/nps-survey-quantitative-question.d.ts.map +1 -0
  319. package/build/views/components/nps-survey-toast.d.ts +2 -0
  320. package/build/views/components/nps-survey-toast.d.ts.map +1 -0
  321. package/build/views/components/nps-survey.d.ts +2 -0
  322. package/build/views/components/nps-survey.d.ts.map +1 -0
  323. package/build/views/components/powered-by-appcues.d.ts +14 -0
  324. package/build/views/components/powered-by-appcues.d.ts.map +1 -0
  325. package/build/views/components/test-mode-banner.d.ts +3 -0
  326. package/build/views/components/test-mode-banner.d.ts.map +1 -0
  327. package/build/views/components/tooltip.d.ts +4 -0
  328. package/build/views/components/tooltip.d.ts.map +1 -0
  329. package/build/views/renderers/render-checklist.d.ts +3 -0
  330. package/build/views/renderers/render-checklist.d.ts.map +1 -0
  331. package/build/views/renderers/render-debugger.d.ts +3 -0
  332. package/build/views/renderers/render-debugger.d.ts.map +1 -0
  333. package/build/views/renderers/render-hotspots.d.ts +2 -0
  334. package/build/views/renderers/render-hotspots.d.ts.map +1 -0
  335. package/build/views/renderers/render-modal.d.ts +10 -0
  336. package/build/views/renderers/render-modal.d.ts.map +1 -0
  337. package/build/views/renderers/render-satisfaction-survey.d.ts +10 -0
  338. package/build/views/renderers/render-satisfaction-survey.d.ts.map +1 -0
  339. package/build/views/renderers/render-test-mode-banner.d.ts +2 -0
  340. package/build/views/renderers/render-test-mode-banner.d.ts.map +1 -0
  341. package/build/views/renderers/render-widget-icon.d.ts +10 -0
  342. package/build/views/renderers/render-widget-icon.d.ts.map +1 -0
  343. package/build/views/renderers/render-widget.d.ts +3 -0
  344. package/build/views/renderers/render-widget.d.ts.map +1 -0
  345. package/build/views/setup-view.d.ts +11 -0
  346. package/build/views/setup-view.d.ts.map +1 -0
  347. package/build/views/setup-widget.d.ts +11 -0
  348. package/build/views/setup-widget.d.ts.map +1 -0
  349. package/package.json +7 -6
  350. package/build/bootstrap.npm.DMq-vI0T.js +0 -15505
  351. package/build/checklist.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css +0 -1
  352. package/build/container.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css +0 -1
  353. package/build/debugger.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css +0 -1
  354. package/build/index.QI4DYuGc.js +0 -2152
  355. package/build/index.npm.CfaoL5ef.js +0 -339
  356. package/build/modal.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css +0 -1
  357. package/build/open-builder.DsYIY7WT.js +0 -10172
  358. package/build/satisfaction-survey.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css +0 -1
  359. package/build/test-mode.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css +0 -1
  360. package/build/tooltip.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css +0 -1
  361. /package/build/{modal-step-legacy-render.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css → modal-step-legacy-render.004bd22db55d851f50945b88f28d0afa81e23405.css} +0 -0
@@ -0,0 +1,2204 @@
1
+ import { d as e, h as t, l as n, r, u as i, y as a } from "./dist.BmJY3Sl-.js";
2
+ //#region ../../node_modules/@lit/reactive-element/css-tag.js
3
+ var o = window, s = o.ShadowRoot && (o.ShadyCSS === void 0 || o.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, c = Symbol(), l = /* @__PURE__ */ new WeakMap(), u = class {
4
+ constructor(e, t, n) {
5
+ if (this._$cssResult$ = !0, n !== c) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
6
+ this.cssText = e, this.t = t;
7
+ }
8
+ get styleSheet() {
9
+ let e = this.o, t = this.t;
10
+ if (s && e === void 0) {
11
+ let n = t !== void 0 && t.length === 1;
12
+ n && (e = l.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && l.set(t, e));
13
+ }
14
+ return e;
15
+ }
16
+ toString() {
17
+ return this.cssText;
18
+ }
19
+ }, d = (e) => new u(typeof e == "string" ? e : e + "", void 0, c), f = (e, ...t) => new u(e.length === 1 ? e[0] : t.reduce(((t, n, r) => t + ((e) => {
20
+ if (!0 === e._$cssResult$) return e.cssText;
21
+ if (typeof e == "number") return e;
22
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + e + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
23
+ })(n) + e[r + 1]), e[0]), e, c), ee = (e, t) => {
24
+ s ? e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet)) : t.forEach(((t) => {
25
+ let n = document.createElement("style"), r = o.litNonce;
26
+ r !== void 0 && n.setAttribute("nonce", r), n.textContent = t.cssText, e.appendChild(n);
27
+ }));
28
+ }, te = s ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
29
+ let t = "";
30
+ for (let n of e.cssRules) t += n.cssText;
31
+ return d(t);
32
+ })(e) : e, ne = window, p = ne.trustedTypes, m = p ? p.emptyScript : "", re = ne.reactiveElementPolyfillSupport, h = {
33
+ toAttribute(e, t) {
34
+ switch (t) {
35
+ case Boolean:
36
+ e = e ? m : null;
37
+ break;
38
+ case Object:
39
+ case Array: e = e == null ? e : JSON.stringify(e);
40
+ }
41
+ return e;
42
+ },
43
+ fromAttribute(e, t) {
44
+ let n = e;
45
+ switch (t) {
46
+ case Boolean:
47
+ n = e !== null;
48
+ break;
49
+ case Number:
50
+ n = e === null ? null : Number(e);
51
+ break;
52
+ case Object:
53
+ case Array: try {
54
+ n = JSON.parse(e);
55
+ } catch {
56
+ n = null;
57
+ }
58
+ }
59
+ return n;
60
+ }
61
+ }, ie = (e, t) => t !== e && (t == t || e == e), g = {
62
+ attribute: !0,
63
+ type: String,
64
+ converter: h,
65
+ reflect: !1,
66
+ hasChanged: ie
67
+ }, _ = "finalized", v = class extends HTMLElement {
68
+ constructor() {
69
+ super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
70
+ }
71
+ static addInitializer(e) {
72
+ this.finalize(), (this.h ??= []).push(e);
73
+ }
74
+ static get observedAttributes() {
75
+ this.finalize();
76
+ let e = [];
77
+ return this.elementProperties.forEach(((t, n) => {
78
+ let r = this._$Ep(n, t);
79
+ r !== void 0 && (this._$Ev.set(r, n), e.push(r));
80
+ })), e;
81
+ }
82
+ static createProperty(e, t = g) {
83
+ if (t.state && (t.attribute = !1), this.finalize(), this.elementProperties.set(e, t), !t.noAccessor && !this.prototype.hasOwnProperty(e)) {
84
+ let n = typeof e == "symbol" ? Symbol() : "__" + e, r = this.getPropertyDescriptor(e, n, t);
85
+ r !== void 0 && Object.defineProperty(this.prototype, e, r);
86
+ }
87
+ }
88
+ static getPropertyDescriptor(e, t, n) {
89
+ return {
90
+ get() {
91
+ return this[t];
92
+ },
93
+ set(r) {
94
+ let i = this[e];
95
+ this[t] = r, this.requestUpdate(e, i, n);
96
+ },
97
+ configurable: !0,
98
+ enumerable: !0
99
+ };
100
+ }
101
+ static getPropertyOptions(e) {
102
+ return this.elementProperties.get(e) || g;
103
+ }
104
+ static finalize() {
105
+ if (this.hasOwnProperty(_)) return !1;
106
+ this[_] = !0;
107
+ let e = Object.getPrototypeOf(this);
108
+ if (e.finalize(), e.h !== void 0 && (this.h = [...e.h]), this.elementProperties = new Map(e.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
109
+ let e = this.properties, t = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
110
+ for (let n of t) this.createProperty(n, e[n]);
111
+ }
112
+ return this.elementStyles = this.finalizeStyles(this.styles), !0;
113
+ }
114
+ static finalizeStyles(e) {
115
+ let t = [];
116
+ if (Array.isArray(e)) {
117
+ let n = new Set(e.flat(Infinity).reverse());
118
+ for (let e of n) t.unshift(te(e));
119
+ } else e !== void 0 && t.push(te(e));
120
+ return t;
121
+ }
122
+ static _$Ep(e, t) {
123
+ let n = t.attribute;
124
+ return !1 === n ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
125
+ }
126
+ _$Eu() {
127
+ var e;
128
+ this._$E_ = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (e = this.constructor.h) == null || e.forEach(((e) => e(this)));
129
+ }
130
+ addController(e) {
131
+ var t;
132
+ (this._$ES ??= []).push(e), this.renderRoot !== void 0 && this.isConnected && ((t = e.hostConnected) == null || t.call(e));
133
+ }
134
+ removeController(e) {
135
+ var t;
136
+ (t = this._$ES) == null || t.splice(this._$ES.indexOf(e) >>> 0, 1);
137
+ }
138
+ _$Eg() {
139
+ this.constructor.elementProperties.forEach(((e, t) => {
140
+ this.hasOwnProperty(t) && (this._$Ei.set(t, this[t]), delete this[t]);
141
+ }));
142
+ }
143
+ createRenderRoot() {
144
+ let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
145
+ return ee(e, this.constructor.elementStyles), e;
146
+ }
147
+ connectedCallback() {
148
+ var e;
149
+ this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$ES) == null || e.forEach(((e) => e.hostConnected?.call(e)));
150
+ }
151
+ enableUpdating(e) {}
152
+ disconnectedCallback() {
153
+ var e;
154
+ (e = this._$ES) == null || e.forEach(((e) => e.hostDisconnected?.call(e)));
155
+ }
156
+ attributeChangedCallback(e, t, n) {
157
+ this._$AK(e, n);
158
+ }
159
+ _$EO(e, t, n = g) {
160
+ let r = this.constructor._$Ep(e, n);
161
+ if (r !== void 0 && !0 === n.reflect) {
162
+ let i = (n.converter?.toAttribute === void 0 ? h : n.converter).toAttribute(t, n.type);
163
+ this._$El = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$El = null;
164
+ }
165
+ }
166
+ _$AK(e, t) {
167
+ let n = this.constructor, r = n._$Ev.get(e);
168
+ if (r !== void 0 && this._$El !== r) {
169
+ let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? h : e.converter;
170
+ this._$El = r, this[r] = i.fromAttribute(t, e.type), this._$El = null;
171
+ }
172
+ }
173
+ requestUpdate(e, t, n) {
174
+ let r = !0;
175
+ e !== void 0 && (((n ||= this.constructor.getPropertyOptions(e)).hasChanged || ie)(this[e], t) ? (this._$AL.has(e) || this._$AL.set(e, t), !0 === n.reflect && this._$El !== e && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(e, n))) : r = !1), !this.isUpdatePending && r && (this._$E_ = this._$Ej());
176
+ }
177
+ async _$Ej() {
178
+ this.isUpdatePending = !0;
179
+ try {
180
+ await this._$E_;
181
+ } catch (e) {
182
+ Promise.reject(e);
183
+ }
184
+ let e = this.scheduleUpdate();
185
+ return e != null && await e, !this.isUpdatePending;
186
+ }
187
+ scheduleUpdate() {
188
+ return this.performUpdate();
189
+ }
190
+ performUpdate() {
191
+ var e;
192
+ if (!this.isUpdatePending) return;
193
+ this.hasUpdated, this._$Ei &&= (this._$Ei.forEach(((e, t) => this[t] = e)), void 0);
194
+ let t = !1, n = this._$AL;
195
+ try {
196
+ t = this.shouldUpdate(n), t ? (this.willUpdate(n), (e = this._$ES) == null || e.forEach(((e) => e.hostUpdate?.call(e))), this.update(n)) : this._$Ek();
197
+ } catch (e) {
198
+ throw t = !1, this._$Ek(), e;
199
+ }
200
+ t && this._$AE(n);
201
+ }
202
+ willUpdate(e) {}
203
+ _$AE(e) {
204
+ var t;
205
+ (t = this._$ES) == null || t.forEach(((e) => e.hostUpdated?.call(e))), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
206
+ }
207
+ _$Ek() {
208
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
209
+ }
210
+ get updateComplete() {
211
+ return this.getUpdateComplete();
212
+ }
213
+ getUpdateComplete() {
214
+ return this._$E_;
215
+ }
216
+ shouldUpdate(e) {
217
+ return !0;
218
+ }
219
+ update(e) {
220
+ this._$EC !== void 0 && (this._$EC.forEach(((e, t) => this._$EO(t, this[t], e))), this._$EC = void 0), this._$Ek();
221
+ }
222
+ updated(e) {}
223
+ firstUpdated(e) {}
224
+ };
225
+ v[_] = !0, v.elementProperties = /* @__PURE__ */ new Map(), v.elementStyles = [], v.shadowRootOptions = { mode: "open" }, re?.({ ReactiveElement: v }), (ne.reactiveElementVersions ??= []).push("1.6.3");
226
+ //#endregion
227
+ //#region ../../node_modules/lit-html/lit-html.js
228
+ var y = window, b = y.trustedTypes, ae = b ? b.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, x = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, oe = "?" + S, se = `<${oe}>`, C = document, w = () => C.createComment(""), T = (e) => e === null || typeof e != "object" && typeof e != "function", ce = Array.isArray, le = (e) => ce(e) || typeof e?.[Symbol.iterator] == "function", ue = "[ \n\f\r]", E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, de = /-->/g, fe = />/g, D = RegExp(`>|${ue}(?:([^\\s"'>=/]+)(${ue}*=${ue}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), pe = /'/g, me = /"/g, he = /^(?:script|style|textarea|title)$/i, ge = (e) => (t, ...n) => ({
229
+ _$litType$: e,
230
+ strings: t,
231
+ values: n
232
+ }), O = ge(1), _e = ge(2), k = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), ve = /* @__PURE__ */ new WeakMap(), j = C.createTreeWalker(C, 129, null, !1);
233
+ function ye(e, t) {
234
+ if (!Array.isArray(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
235
+ return ae === void 0 ? t : ae.createHTML(t);
236
+ }
237
+ var be = (e, t) => {
238
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : "", o = E;
239
+ for (let t = 0; t < n; t++) {
240
+ let n = e[t], s, c, l = -1, u = 0;
241
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === E ? c[1] === "!--" ? o = de : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = D) : (he.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = D) : o = fe : o === D ? c[0] === ">" ? (o = i ?? E, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? D : c[3] === "\"" ? me : pe) : o === me || o === pe ? o = D : o === de || o === fe ? o = E : (o = D, i = void 0);
242
+ let d = o === D && e[t + 1].startsWith("/>") ? " " : "";
243
+ a += o === E ? n + se : l >= 0 ? (r.push(s), n.slice(0, l) + x + n.slice(l) + S + d) : n + S + (l === -2 ? (r.push(void 0), t) : d);
244
+ }
245
+ return [ye(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : "")), r];
246
+ }, xe = class e {
247
+ constructor({ strings: t, _$litType$: n }, r) {
248
+ let i;
249
+ this.parts = [];
250
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = be(t, n);
251
+ if (this.el = e.createElement(l, r), j.currentNode = this.el.content, n === 2) {
252
+ let e = this.el.content, t = e.firstChild;
253
+ t.remove(), e.append(...t.childNodes);
254
+ }
255
+ for (; (i = j.nextNode()) !== null && c.length < s;) {
256
+ if (i.nodeType === 1) {
257
+ if (i.hasAttributes()) {
258
+ let e = [];
259
+ for (let t of i.getAttributeNames()) if (t.endsWith(x) || t.startsWith(S)) {
260
+ let n = u[o++];
261
+ if (e.push(t), n !== void 0) {
262
+ let e = i.getAttribute(n.toLowerCase() + x).split(S), t = /([.?@])?(.*)/.exec(n);
263
+ c.push({
264
+ type: 1,
265
+ index: a,
266
+ name: t[2],
267
+ strings: e,
268
+ ctor: t[1] === "." ? Te : t[1] === "?" ? De : t[1] === "@" ? Oe : we
269
+ });
270
+ } else c.push({
271
+ type: 6,
272
+ index: a
273
+ });
274
+ }
275
+ for (let t of e) i.removeAttribute(t);
276
+ }
277
+ if (he.test(i.tagName)) {
278
+ let e = i.textContent.split(S), t = e.length - 1;
279
+ if (t > 0) {
280
+ i.textContent = b ? b.emptyScript : "";
281
+ for (let n = 0; n < t; n++) i.append(e[n], w()), j.nextNode(), c.push({
282
+ type: 2,
283
+ index: ++a
284
+ });
285
+ i.append(e[t], w());
286
+ }
287
+ }
288
+ } else if (i.nodeType === 8) if (i.data === oe) c.push({
289
+ type: 2,
290
+ index: a
291
+ });
292
+ else {
293
+ let e = -1;
294
+ for (; (e = i.data.indexOf(S, e + 1)) !== -1;) c.push({
295
+ type: 7,
296
+ index: a
297
+ }), e += S.length - 1;
298
+ }
299
+ a++;
300
+ }
301
+ }
302
+ static createElement(e, t) {
303
+ let n = C.createElement("template");
304
+ return n.innerHTML = e, n;
305
+ }
306
+ };
307
+ function M(e, t, n = e, r) {
308
+ var i, a;
309
+ if (t === k) return t;
310
+ let o = r === void 0 ? n._$Cl : n._$Co?.[r], s = T(t) ? void 0 : t._$litDirective$;
311
+ return o?.constructor !== s && ((i = o?._$AO) == null || i.call(o, !1), s === void 0 ? o = void 0 : (o = new s(e), o._$AT(e, n, r)), r === void 0 ? n._$Cl = o : ((a = n)._$Co ?? (a._$Co = []))[r] = o), o !== void 0 && (t = M(e, o._$AS(e, t.values), o, r)), t;
312
+ }
313
+ var Se = class {
314
+ constructor(e, t) {
315
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
316
+ }
317
+ get parentNode() {
318
+ return this._$AM.parentNode;
319
+ }
320
+ get _$AU() {
321
+ return this._$AM._$AU;
322
+ }
323
+ u(e) {
324
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? C).importNode(t, !0);
325
+ j.currentNode = r;
326
+ let i = j.nextNode(), a = 0, o = 0, s = n[0];
327
+ for (; s !== void 0;) {
328
+ if (a === s.index) {
329
+ let t;
330
+ s.type === 2 ? t = new Ce(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new ke(i, this, e)), this._$AV.push(t), s = n[++o];
331
+ }
332
+ a !== s?.index && (i = j.nextNode(), a++);
333
+ }
334
+ return j.currentNode = C, r;
335
+ }
336
+ v(e) {
337
+ let t = 0;
338
+ for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
339
+ }
340
+ }, Ce = class e {
341
+ constructor(e, t, n, r) {
342
+ var i;
343
+ this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cp = (i = r?.isConnected) == null || i;
344
+ }
345
+ get _$AU() {
346
+ return this._$AM?._$AU ?? this._$Cp;
347
+ }
348
+ get parentNode() {
349
+ let e = this._$AA.parentNode, t = this._$AM;
350
+ return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
351
+ }
352
+ get startNode() {
353
+ return this._$AA;
354
+ }
355
+ get endNode() {
356
+ return this._$AB;
357
+ }
358
+ _$AI(e, t = this) {
359
+ e = M(this, e, t), T(e) ? e === A || e == null || e === "" ? (this._$AH !== A && this._$AR(), this._$AH = A) : e !== this._$AH && e !== k && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? le(e) ? this.T(e) : this._(e) : this.$(e) : this.g(e);
360
+ }
361
+ k(e) {
362
+ return this._$AA.parentNode.insertBefore(e, this._$AB);
363
+ }
364
+ $(e) {
365
+ this._$AH !== e && (this._$AR(), this._$AH = this.k(e));
366
+ }
367
+ _(e) {
368
+ this._$AH !== A && T(this._$AH) ? this._$AA.nextSibling.data = e : this.$(C.createTextNode(e)), this._$AH = e;
369
+ }
370
+ g(e) {
371
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = xe.createElement(ye(n.h, n.h[0]), this.options)), n);
372
+ if (this._$AH?._$AD === r) this._$AH.v(t);
373
+ else {
374
+ let e = new Se(r, this), n = e.u(this.options);
375
+ e.v(t), this.$(n), this._$AH = e;
376
+ }
377
+ }
378
+ _$AC(e) {
379
+ let t = ve.get(e.strings);
380
+ return t === void 0 && ve.set(e.strings, t = new xe(e)), t;
381
+ }
382
+ T(t) {
383
+ ce(this._$AH) || (this._$AH = [], this._$AR());
384
+ let n = this._$AH, r, i = 0;
385
+ for (let a of t) i === n.length ? n.push(r = new e(this.k(w()), this.k(w()), this, this.options)) : r = n[i], r._$AI(a), i++;
386
+ i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
387
+ }
388
+ _$AR(e = this._$AA.nextSibling, t) {
389
+ var n;
390
+ for ((n = this._$AP) == null || n.call(this, !1, !0, t); e && e !== this._$AB;) {
391
+ let t = e.nextSibling;
392
+ e.remove(), e = t;
393
+ }
394
+ }
395
+ setConnected(e) {
396
+ var t;
397
+ this._$AM === void 0 && (this._$Cp = e, (t = this._$AP) == null || t.call(this, e));
398
+ }
399
+ }, we = class {
400
+ constructor(e, t, n, r, i) {
401
+ this.type = 1, this._$AH = A, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = A;
402
+ }
403
+ get tagName() {
404
+ return this.element.tagName;
405
+ }
406
+ get _$AU() {
407
+ return this._$AM._$AU;
408
+ }
409
+ _$AI(e, t = this, n, r) {
410
+ let i = this.strings, a = !1;
411
+ if (i === void 0) e = M(this, e, t, 0), a = !T(e) || e !== this._$AH && e !== k, a && (this._$AH = e);
412
+ else {
413
+ let r = e, o, s;
414
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = M(this, r[n + o], t, o), s === k && (s = this._$AH[o]), a ||= !T(s) || s !== this._$AH[o], s === A ? e = A : e !== A && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
415
+ }
416
+ a && !r && this.j(e);
417
+ }
418
+ j(e) {
419
+ e === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
420
+ }
421
+ }, Te = class extends we {
422
+ constructor() {
423
+ super(...arguments), this.type = 3;
424
+ }
425
+ j(e) {
426
+ this.element[this.name] = e === A ? void 0 : e;
427
+ }
428
+ }, Ee = b ? b.emptyScript : "", De = class extends we {
429
+ constructor() {
430
+ super(...arguments), this.type = 4;
431
+ }
432
+ j(e) {
433
+ e && e !== A ? this.element.setAttribute(this.name, Ee) : this.element.removeAttribute(this.name);
434
+ }
435
+ }, Oe = class extends we {
436
+ constructor(e, t, n, r, i) {
437
+ super(e, t, n, r, i), this.type = 5;
438
+ }
439
+ _$AI(e, t = this) {
440
+ if ((e = M(this, e, t, 0) ?? A) === k) return;
441
+ let n = this._$AH, r = e === A && n !== A || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== A && (n === A || r);
442
+ r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
443
+ }
444
+ handleEvent(e) {
445
+ typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
446
+ }
447
+ }, ke = class {
448
+ constructor(e, t, n) {
449
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
450
+ }
451
+ get _$AU() {
452
+ return this._$AM._$AU;
453
+ }
454
+ _$AI(e) {
455
+ M(this, e);
456
+ }
457
+ }, Ae = y.litHtmlPolyfillSupport;
458
+ Ae?.(xe, Ce), (y.litHtmlVersions ??= []).push("2.8.0");
459
+ var je = (e, t, n) => {
460
+ let r = n?.renderBefore ?? t, i = r._$litPart$;
461
+ if (i === void 0) {
462
+ let e = n?.renderBefore ?? null;
463
+ r._$litPart$ = i = new Ce(t.insertBefore(w(), e), e, void 0, n ?? {});
464
+ }
465
+ return i._$AI(e), i;
466
+ }, Me, N = class extends v {
467
+ constructor() {
468
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
469
+ }
470
+ createRenderRoot() {
471
+ var e;
472
+ let t = super.createRenderRoot();
473
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
474
+ }
475
+ update(e) {
476
+ let t = this.render();
477
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = je(t, this.renderRoot, this.renderOptions);
478
+ }
479
+ connectedCallback() {
480
+ var e;
481
+ super.connectedCallback(), (e = this._$Do) == null || e.setConnected(!0);
482
+ }
483
+ disconnectedCallback() {
484
+ var e;
485
+ super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
486
+ }
487
+ render() {
488
+ return k;
489
+ }
490
+ };
491
+ N.finalized = !0, N._$litElement$ = !0, (Me = globalThis.litElementHydrateSupport) == null || Me.call(globalThis, { LitElement: N });
492
+ var Ne = globalThis.litElementPolyfillSupport;
493
+ Ne?.({ LitElement: N }), (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("3.3.3");
494
+ //#endregion
495
+ //#region ../../node_modules/@lit/reactive-element/decorators/property.js
496
+ var Pe = (e, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? {
497
+ ...t,
498
+ finisher(n) {
499
+ n.createProperty(t.key, e);
500
+ }
501
+ } : {
502
+ kind: "field",
503
+ key: Symbol(),
504
+ placement: "own",
505
+ descriptor: {},
506
+ originalKey: t.key,
507
+ initializer() {
508
+ typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
509
+ },
510
+ finisher(n) {
511
+ n.createProperty(t.key, e);
512
+ }
513
+ }, Fe = (e, t, n) => {
514
+ t.constructor.createProperty(n, e);
515
+ };
516
+ function P(e) {
517
+ return (t, n) => n === void 0 ? Pe(e, t) : Fe(e, t, n);
518
+ }
519
+ //#endregion
520
+ //#region ../../node_modules/@lit/reactive-element/decorators/state.js
521
+ function F(e) {
522
+ return P({
523
+ ...e,
524
+ state: !0
525
+ });
526
+ }
527
+ window.HTMLSlotElement?.prototype.assignedElements;
528
+ //#endregion
529
+ //#region ../../node_modules/lit-html/directive.js
530
+ var Ie = {
531
+ ATTRIBUTE: 1,
532
+ CHILD: 2,
533
+ PROPERTY: 3,
534
+ BOOLEAN_ATTRIBUTE: 4,
535
+ EVENT: 5,
536
+ ELEMENT: 6
537
+ }, Le = (e) => (...t) => ({
538
+ _$litDirective$: e,
539
+ values: t
540
+ }), Re = class {
541
+ constructor(e) {}
542
+ get _$AU() {
543
+ return this._$AM._$AU;
544
+ }
545
+ _$AT(e, t, n) {
546
+ this._$Ct = e, this._$AM = t, this._$Ci = n;
547
+ }
548
+ _$AS(e, t) {
549
+ return this.update(e, t);
550
+ }
551
+ update(e, t) {
552
+ return this.render(...t);
553
+ }
554
+ }, ze = class extends Re {
555
+ constructor(e) {
556
+ if (super(e), this.et = A, e.type !== Ie.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
557
+ }
558
+ render(e) {
559
+ if (e === A || e == null) return this.ft = void 0, this.et = e;
560
+ if (e === k) return e;
561
+ if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
562
+ if (e === this.et) return this.ft;
563
+ this.et = e;
564
+ let t = [e];
565
+ return t.raw = t, this.ft = {
566
+ _$litType$: this.constructor.resultType,
567
+ strings: t,
568
+ values: []
569
+ };
570
+ }
571
+ };
572
+ ze.directiveName = "unsafeHTML", ze.resultType = 1;
573
+ var Be = Le(ze), Ve = Symbol(), He = class {
574
+ get taskComplete() {
575
+ return this.t || (this.i === 1 ? this.t = new Promise(((e, t) => {
576
+ this.o = e, this.h = t;
577
+ })) : this.i === 3 ? this.t = Promise.reject(this.l) : this.t = Promise.resolve(this.u)), this.t;
578
+ }
579
+ constructor(e, t, n) {
580
+ this.p = 0, this.i = 0, (this._ = e).addController(this);
581
+ let r = typeof t == "object" ? t : {
582
+ task: t,
583
+ args: n
584
+ };
585
+ this.v = r.task, this.j = r.args, this.m = r.argsEqual ?? Ue, this.k = r.onComplete, this.A = r.onError, this.autoRun = r.autoRun ?? !0, "initialValue" in r && (this.u = r.initialValue, this.i = 2, this.O = this.T?.());
586
+ }
587
+ hostUpdate() {
588
+ !0 === this.autoRun && this.S();
589
+ }
590
+ hostUpdated() {
591
+ this.autoRun === "afterUpdate" && this.S();
592
+ }
593
+ T() {
594
+ if (this.j === void 0) return;
595
+ let e = this.j();
596
+ if (!Array.isArray(e)) throw Error("The args function must return an array");
597
+ return e;
598
+ }
599
+ async S() {
600
+ let e = this.T(), t = this.O;
601
+ this.O = e, e === t || e === void 0 || t !== void 0 && this.m(t, e) || await this.run(e);
602
+ }
603
+ async run(e) {
604
+ let t, n;
605
+ e ??= this.T(), this.O = e, this.i === 1 ? this.q?.abort() : (this.t = void 0, this.o = void 0, this.h = void 0), this.i = 1, this.autoRun === "afterUpdate" ? queueMicrotask((() => this._.requestUpdate())) : this._.requestUpdate();
606
+ let r = ++this.p;
607
+ this.q = new AbortController();
608
+ let i = !1;
609
+ try {
610
+ t = await this.v(e, { signal: this.q.signal });
611
+ } catch (e) {
612
+ i = !0, n = e;
613
+ }
614
+ if (this.p === r) {
615
+ if (t === Ve) this.i = 0;
616
+ else {
617
+ if (!1 === i) {
618
+ try {
619
+ this.k?.(t);
620
+ } catch {}
621
+ this.i = 2, this.o?.(t);
622
+ } else {
623
+ try {
624
+ this.A?.(n);
625
+ } catch {}
626
+ this.i = 3, this.h?.(n);
627
+ }
628
+ this.u = t, this.l = n;
629
+ }
630
+ this._.requestUpdate();
631
+ }
632
+ }
633
+ abort(e) {
634
+ this.i === 1 && this.q?.abort(e);
635
+ }
636
+ get value() {
637
+ return this.u;
638
+ }
639
+ get error() {
640
+ return this.l;
641
+ }
642
+ get status() {
643
+ return this.i;
644
+ }
645
+ render(e) {
646
+ switch (this.i) {
647
+ case 0: return e.initial?.();
648
+ case 1: return e.pending?.();
649
+ case 2: return e.complete?.(this.value);
650
+ case 3: return e.error?.(this.error);
651
+ default: throw Error("Unexpected status: " + this.i);
652
+ }
653
+ }
654
+ }, Ue = (e, t) => e === t || e.length === t.length && e.every(((e, n) => !ie(e, t[n]))), We = /* @__PURE__ */ a((/* @__PURE__ */ t(((e, t) => {
655
+ var n = "Expected a function", r = NaN, i = "[object Symbol]", a = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, c = /^0o[0-7]+$/i, l = parseInt, u = typeof global == "object" && global && global.Object === Object && global, d = typeof self == "object" && self && self.Object === Object && self, f = u || d || Function("return this")(), ee = Object.prototype.toString, te = Math.max, ne = Math.min, p = function() {
656
+ return f.Date.now();
657
+ };
658
+ function m(e, t, r) {
659
+ var i, a, o, s, c, l, u = 0, d = !1, f = !1, ee = !0;
660
+ if (typeof e != "function") throw TypeError(n);
661
+ t = g(t) || 0, re(r) && (d = !!r.leading, f = "maxWait" in r, o = f ? te(g(r.maxWait) || 0, t) : o, ee = "trailing" in r ? !!r.trailing : ee);
662
+ function m(t) {
663
+ var n = i, r = a;
664
+ return i = a = void 0, u = t, s = e.apply(r, n), s;
665
+ }
666
+ function h(e) {
667
+ return u = e, c = setTimeout(v, t), d ? m(e) : s;
668
+ }
669
+ function ie(e) {
670
+ var n = e - l, r = e - u, i = t - n;
671
+ return f ? ne(i, o - r) : i;
672
+ }
673
+ function _(e) {
674
+ var n = e - l, r = e - u;
675
+ return l === void 0 || n >= t || n < 0 || f && r >= o;
676
+ }
677
+ function v() {
678
+ var e = p();
679
+ if (_(e)) return y(e);
680
+ c = setTimeout(v, ie(e));
681
+ }
682
+ function y(e) {
683
+ return c = void 0, ee && i ? m(e) : (i = a = void 0, s);
684
+ }
685
+ function b() {
686
+ c !== void 0 && clearTimeout(c), u = 0, i = l = a = c = void 0;
687
+ }
688
+ function ae() {
689
+ return c === void 0 ? s : y(p());
690
+ }
691
+ function x() {
692
+ var e = p(), n = _(e);
693
+ if (i = arguments, a = this, l = e, n) {
694
+ if (c === void 0) return h(l);
695
+ if (f) return c = setTimeout(v, t), m(l);
696
+ }
697
+ return c === void 0 && (c = setTimeout(v, t)), s;
698
+ }
699
+ return x.cancel = b, x.flush = ae, x;
700
+ }
701
+ function re(e) {
702
+ var t = typeof e;
703
+ return !!e && (t == "object" || t == "function");
704
+ }
705
+ function h(e) {
706
+ return !!e && typeof e == "object";
707
+ }
708
+ function ie(e) {
709
+ return typeof e == "symbol" || h(e) && ee.call(e) == i;
710
+ }
711
+ function g(e) {
712
+ if (typeof e == "number") return e;
713
+ if (ie(e)) return r;
714
+ if (re(e)) {
715
+ var t = typeof e.valueOf == "function" ? e.valueOf() : e;
716
+ e = re(t) ? t + "" : t;
717
+ }
718
+ if (typeof e != "string") return e === 0 ? e : +e;
719
+ e = e.replace(a, "");
720
+ var n = s.test(e);
721
+ return n || c.test(e) ? l(e.slice(2), n ? 2 : 8) : o.test(e) ? r : +e;
722
+ }
723
+ t.exports = m;
724
+ })))(), 1), Ge = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, I = (e, t, n, r) => {
725
+ for (var i = r > 1 ? void 0 : r ? Ke(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
726
+ return r && i && Ge(t, n, i), i;
727
+ }, L = (e = "", t) => {
728
+ customElements.get(e) || customElements.define(e, t);
729
+ }, qe = (e, t) => [...e].reduce((e, n) => t?.skip?.includes(n.name) ? e : `${e}${n.name}="${n.value}" `, ""), R = class extends N {
730
+ constructor() {
731
+ super(...arguments), this.name = "", this.fallbackTag = null, this.defaultStyle = null, this.refElement = null;
732
+ }
733
+ connectedCallback() {
734
+ super.connectedCallback();
735
+ let e = this;
736
+ for (; e.parentNode;) e = e.parentNode;
737
+ if (this.refElement = e.host.querySelector(`[refElement="${this.name}"]`), this.refElement && this.fallbackTag !== null && this.refElement.tagName.toLowerCase() !== this.fallbackTag) throw Error(`Your html tag to customize ${this.name} should be <${this.fallbackTag}></<${this.fallbackTag}>`);
738
+ }
739
+ render() {
740
+ let e = qe(this.attributes, { skip: ["name", "fallbacktag"] }), t = qe(this.refElement?.attributes ?? []);
741
+ return O`${Be(`
742
+ <style>${this.defaultStyle}</style>
743
+ <${this.fallbackTag} ${e} ${t}>
744
+ <slot></slot>
745
+ </${this.fallbackTag}>`)}`;
746
+ }
747
+ };
748
+ I([P()], R.prototype, "name", 2), I([P({ type: String || null })], R.prototype, "fallbackTag", 2), I([P({ type: String || null })], R.prototype, "defaultStyle", 2), I([P({ type: String || null })], R.prototype, "refElement", 2), L("appcues-use-ref", R);
749
+ var Je = () => {
750
+ let e = {}, t = window.AppcuesSettings?.userIdSignature;
751
+ return t && (e = { Authorization: `Bearer ${t}` }), e;
752
+ }, Ye = async (e, t) => {
753
+ let n = Je();
754
+ return await fetch(e, {
755
+ headers: n,
756
+ ...t
757
+ });
758
+ }, Xe = "https://api.appcues.net/v1/", Ze = f`
759
+ .container {
760
+ background: #fff;
761
+ box-shadow: var(--flows-list-block-shadow);
762
+ border-radius: var(--flows-list-block-radius);
763
+ padding: 8px 0;
764
+ width: 100%;
765
+ }
766
+
767
+ .container .loading,
768
+ .container .error-message {
769
+ align-items: center;
770
+ color: var(--flows-list-block-color);
771
+ display: flex;
772
+ font-size: 14px;
773
+ font-style: normal;
774
+ font-weight: 400;
775
+ justify-content: center;
776
+ line-height: 160%;
777
+ padding: 16px;
778
+ text-align: center;
779
+ }
780
+ `, Qe = f`
781
+ slot[name='empty-message'],
782
+ ::slotted(p[slot='empty-message']) {
783
+ align-items: center;
784
+ color: var(--flows-list-block-color);
785
+ display: flex;
786
+ font-style: normal;
787
+ font-weight: 400;
788
+ justify-content: center;
789
+ line-height: 160%;
790
+ padding: 16px;
791
+ text-align: center;
792
+ font-size: 14px;
793
+ }
794
+ `, $e = f`
795
+ ul {
796
+ list-style-type: square;
797
+ list-style-position: inside;
798
+ margin: 0;
799
+ padding: 0 4px;
800
+ }
801
+ `, et = f`
802
+ li {
803
+ cursor: pointer;
804
+ font-size: 14px;
805
+ font-style: normal;
806
+ font-weight: 400;
807
+ line-height: 160%;
808
+ padding: 8px 16px;
809
+ border-radius: var(--flows-list-block-item-radius);
810
+ transition: background-color 0.3s ease 0s;
811
+ }
812
+
813
+ li:hover {
814
+ background-color: var(--flows-list-block-background-hover);
815
+ }
816
+
817
+ li:focus-visible {
818
+ background-color: var(--flows-list-block-background-hover);
819
+ outline: 2px solid currentColor;
820
+ outline-offset: -2px;
821
+ }
822
+
823
+ li::marker {
824
+ color: var(--flows-list-block-marker-color);
825
+ }
826
+
827
+ li:hover > span {
828
+ background-color: var(--flows-list-block-background-hover);
829
+ }
830
+
831
+ li:focus-visible > span {
832
+ background-color: var(--flows-list-block-background-hover);
833
+ }
834
+
835
+ li > span {
836
+ color: var(--flows-list-block-color);
837
+ }
838
+
839
+ li appcues-use-ref {
840
+ display: inline-flex;
841
+ max-width: calc(100% - 20px);
842
+ }
843
+ `, tt = f`
844
+ ::slotted(h1[slot='title']),
845
+ ::slotted(h2[slot='title']),
846
+ ::slotted(h3[slot='title']) {
847
+ color: var(--flows-list-block-color);
848
+ font-size: 15px;
849
+ font-weight: 700;
850
+ line-height: 24px;
851
+ margin: 0 0 8px;
852
+ padding: 0 16px 0;
853
+
854
+ display: -webkit-box;
855
+ -webkit-box-orient: vertical;
856
+ -webkit-line-clamp: 2;
857
+ max-height: 48px;
858
+ max-width: calc(100% - 32px);
859
+ overflow: hidden;
860
+ text-overflow: ellipsis;
861
+ white-space: normal;
862
+ }
863
+ `, nt = window, z = nt.trustedTypes, rt = z ? z.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, it = "$lit$", B = `lit$${(Math.random() + "").slice(9)}$`, at = "?" + B, ot = `<${at}>`, V = document, st = () => V.createComment(""), H = (e) => e === null || typeof e != "object" && typeof e != "function", ct = Array.isArray, lt = (e) => ct(e) || typeof e?.[Symbol.iterator] == "function", ut = "[ \n\f\r]", U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, dt = /-->/g, ft = />/g, W = RegExp(`>|${ut}(?:([^\\s"'>=/]+)(${ut}*=${ut}*(?:[^
864
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), pt = /'/g, mt = /"/g, ht = /^(?:script|style|textarea|title)$/i, gt = (e) => (t, ...n) => ({
865
+ _$litType$: e,
866
+ strings: t,
867
+ values: n
868
+ }), G = gt(1), _t = gt(2), K = Symbol.for("lit-noChange"), q = Symbol.for("lit-nothing"), vt = /* @__PURE__ */ new WeakMap(), J = V.createTreeWalker(V, 129, null, !1);
869
+ function yt(e, t) {
870
+ if (!Array.isArray(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
871
+ return rt === void 0 ? t : rt.createHTML(t);
872
+ }
873
+ var bt = (e, t) => {
874
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : "", o = U;
875
+ for (let t = 0; t < n; t++) {
876
+ let n = e[t], s, c, l = -1, u = 0;
877
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === U ? c[1] === "!--" ? o = dt : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = W) : (ht.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = W) : o = ft : o === W ? c[0] === ">" ? (o = i ?? U, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? W : c[3] === "\"" ? mt : pt) : o === mt || o === pt ? o = W : o === dt || o === ft ? o = U : (o = W, i = void 0);
878
+ let d = o === W && e[t + 1].startsWith("/>") ? " " : "";
879
+ a += o === U ? n + ot : l >= 0 ? (r.push(s), n.slice(0, l) + it + n.slice(l) + B + d) : n + B + (l === -2 ? (r.push(void 0), t) : d);
880
+ }
881
+ return [yt(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : "")), r];
882
+ }, xt = class {
883
+ constructor({ strings: e, _$litType$: t }, n) {
884
+ let r;
885
+ this.parts = [];
886
+ let i = 0, a = 0, o = e.length - 1, s = this.parts, [c, l] = bt(e, t);
887
+ if (this.el = xt.createElement(c, n), J.currentNode = this.el.content, t === 2) {
888
+ let e = this.el.content, t = e.firstChild;
889
+ t.remove(), e.append(...t.childNodes);
890
+ }
891
+ for (; (r = J.nextNode()) !== null && s.length < o;) {
892
+ if (r.nodeType === 1) {
893
+ if (r.hasAttributes()) {
894
+ let e = [];
895
+ for (let t of r.getAttributeNames()) if (t.endsWith(it) || t.startsWith(B)) {
896
+ let n = l[a++];
897
+ if (e.push(t), n !== void 0) {
898
+ let e = r.getAttribute(n.toLowerCase() + it).split(B), t = /([.?@])?(.*)/.exec(n);
899
+ s.push({
900
+ type: 1,
901
+ index: i,
902
+ name: t[2],
903
+ strings: e,
904
+ ctor: t[1] === "." ? Tt : t[1] === "?" ? Dt : t[1] === "@" ? Ot : wt
905
+ });
906
+ } else s.push({
907
+ type: 6,
908
+ index: i
909
+ });
910
+ }
911
+ for (let t of e) r.removeAttribute(t);
912
+ }
913
+ if (ht.test(r.tagName)) {
914
+ let e = r.textContent.split(B), t = e.length - 1;
915
+ if (t > 0) {
916
+ r.textContent = z ? z.emptyScript : "";
917
+ for (let n = 0; n < t; n++) r.append(e[n], st()), J.nextNode(), s.push({
918
+ type: 2,
919
+ index: ++i
920
+ });
921
+ r.append(e[t], st());
922
+ }
923
+ }
924
+ } else if (r.nodeType === 8) if (r.data === at) s.push({
925
+ type: 2,
926
+ index: i
927
+ });
928
+ else {
929
+ let e = -1;
930
+ for (; (e = r.data.indexOf(B, e + 1)) !== -1;) s.push({
931
+ type: 7,
932
+ index: i
933
+ }), e += B.length - 1;
934
+ }
935
+ i++;
936
+ }
937
+ }
938
+ static createElement(e, t) {
939
+ let n = V.createElement("template");
940
+ return n.innerHTML = e, n;
941
+ }
942
+ };
943
+ function Y(e, t, n = e, r) {
944
+ var i, a;
945
+ if (t === K) return t;
946
+ let o = r === void 0 ? n._$Cl : n._$Co?.[r], s = H(t) ? void 0 : t._$litDirective$;
947
+ return o?.constructor !== s && ((i = o?._$AO) == null || i.call(o, !1), s === void 0 ? o = void 0 : (o = new s(e), o._$AT(e, n, r)), r === void 0 ? n._$Cl = o : ((a = n)._$Co ?? (a._$Co = []))[r] = o), o !== void 0 && (t = Y(e, o._$AS(e, t.values), o, r)), t;
948
+ }
949
+ var St = class {
950
+ constructor(e, t) {
951
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
952
+ }
953
+ get parentNode() {
954
+ return this._$AM.parentNode;
955
+ }
956
+ get _$AU() {
957
+ return this._$AM._$AU;
958
+ }
959
+ u(e) {
960
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? V).importNode(t, !0);
961
+ J.currentNode = r;
962
+ let i = J.nextNode(), a = 0, o = 0, s = n[0];
963
+ for (; s !== void 0;) {
964
+ if (a === s.index) {
965
+ let t;
966
+ s.type === 2 ? t = new Ct(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new kt(i, this, e)), this._$AV.push(t), s = n[++o];
967
+ }
968
+ a !== s?.index && (i = J.nextNode(), a++);
969
+ }
970
+ return J.currentNode = V, r;
971
+ }
972
+ v(e) {
973
+ let t = 0;
974
+ for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
975
+ }
976
+ }, Ct = class {
977
+ constructor(e, t, n, r) {
978
+ var i;
979
+ this.type = 2, this._$AH = q, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cp = (i = r?.isConnected) == null || i;
980
+ }
981
+ get _$AU() {
982
+ return this._$AM?._$AU ?? this._$Cp;
983
+ }
984
+ get parentNode() {
985
+ let e = this._$AA.parentNode, t = this._$AM;
986
+ return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
987
+ }
988
+ get startNode() {
989
+ return this._$AA;
990
+ }
991
+ get endNode() {
992
+ return this._$AB;
993
+ }
994
+ _$AI(e, t = this) {
995
+ e = Y(this, e, t), H(e) ? e === q || e == null || e === "" ? (this._$AH !== q && this._$AR(), this._$AH = q) : e !== this._$AH && e !== K && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? lt(e) ? this.T(e) : this._(e) : this.$(e) : this.g(e);
996
+ }
997
+ k(e) {
998
+ return this._$AA.parentNode.insertBefore(e, this._$AB);
999
+ }
1000
+ $(e) {
1001
+ this._$AH !== e && (this._$AR(), this._$AH = this.k(e));
1002
+ }
1003
+ _(e) {
1004
+ this._$AH !== q && H(this._$AH) ? this._$AA.nextSibling.data = e : this.$(V.createTextNode(e)), this._$AH = e;
1005
+ }
1006
+ g(e) {
1007
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = xt.createElement(yt(n.h, n.h[0]), this.options)), n);
1008
+ if (this._$AH?._$AD === r) this._$AH.v(t);
1009
+ else {
1010
+ let e = new St(r, this), n = e.u(this.options);
1011
+ e.v(t), this.$(n), this._$AH = e;
1012
+ }
1013
+ }
1014
+ _$AC(e) {
1015
+ let t = vt.get(e.strings);
1016
+ return t === void 0 && vt.set(e.strings, t = new xt(e)), t;
1017
+ }
1018
+ T(e) {
1019
+ ct(this._$AH) || (this._$AH = [], this._$AR());
1020
+ let t = this._$AH, n, r = 0;
1021
+ for (let i of e) r === t.length ? t.push(n = new Ct(this.k(st()), this.k(st()), this, this.options)) : n = t[r], n._$AI(i), r++;
1022
+ r < t.length && (this._$AR(n && n._$AB.nextSibling, r), t.length = r);
1023
+ }
1024
+ _$AR(e = this._$AA.nextSibling, t) {
1025
+ var n;
1026
+ for ((n = this._$AP) == null || n.call(this, !1, !0, t); e && e !== this._$AB;) {
1027
+ let t = e.nextSibling;
1028
+ e.remove(), e = t;
1029
+ }
1030
+ }
1031
+ setConnected(e) {
1032
+ var t;
1033
+ this._$AM === void 0 && (this._$Cp = e, (t = this._$AP) == null || t.call(this, e));
1034
+ }
1035
+ }, wt = class {
1036
+ constructor(e, t, n, r, i) {
1037
+ this.type = 1, this._$AH = q, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = q;
1038
+ }
1039
+ get tagName() {
1040
+ return this.element.tagName;
1041
+ }
1042
+ get _$AU() {
1043
+ return this._$AM._$AU;
1044
+ }
1045
+ _$AI(e, t = this, n, r) {
1046
+ let i = this.strings, a = !1;
1047
+ if (i === void 0) e = Y(this, e, t, 0), a = !H(e) || e !== this._$AH && e !== K, a && (this._$AH = e);
1048
+ else {
1049
+ let r = e, o, s;
1050
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = Y(this, r[n + o], t, o), s === K && (s = this._$AH[o]), a ||= !H(s) || s !== this._$AH[o], s === q ? e = q : e !== q && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
1051
+ }
1052
+ a && !r && this.j(e);
1053
+ }
1054
+ j(e) {
1055
+ e === q ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
1056
+ }
1057
+ }, Tt = class extends wt {
1058
+ constructor() {
1059
+ super(...arguments), this.type = 3;
1060
+ }
1061
+ j(e) {
1062
+ this.element[this.name] = e === q ? void 0 : e;
1063
+ }
1064
+ }, Et = z ? z.emptyScript : "", Dt = class extends wt {
1065
+ constructor() {
1066
+ super(...arguments), this.type = 4;
1067
+ }
1068
+ j(e) {
1069
+ e && e !== q ? this.element.setAttribute(this.name, Et) : this.element.removeAttribute(this.name);
1070
+ }
1071
+ }, Ot = class extends wt {
1072
+ constructor(e, t, n, r, i) {
1073
+ super(e, t, n, r, i), this.type = 5;
1074
+ }
1075
+ _$AI(e, t = this) {
1076
+ if ((e = Y(this, e, t, 0) ?? q) === K) return;
1077
+ let n = this._$AH, r = e === q && n !== q || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== q && (n === q || r);
1078
+ r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
1079
+ }
1080
+ handleEvent(e) {
1081
+ typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
1082
+ }
1083
+ }, kt = class {
1084
+ constructor(e, t, n) {
1085
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
1086
+ }
1087
+ get _$AU() {
1088
+ return this._$AM._$AU;
1089
+ }
1090
+ _$AI(e) {
1091
+ Y(this, e);
1092
+ }
1093
+ }, At = nt.litHtmlPolyfillSupport;
1094
+ At?.(xt, Ct), (nt.litHtmlVersions ??= []).push("2.8.0");
1095
+ var jt = _t`
1096
+ <svg
1097
+ version="1.1"
1098
+ xmlns="http://www.w3.org/2000/svg"
1099
+ xmlns:xlink="http://www.w3.org/1999/xlink"
1100
+ x="0px"
1101
+ y="0px"
1102
+ width="40px"
1103
+ height="40px"
1104
+ fill="#0072D6"
1105
+ viewBox="0 0 40 40"
1106
+ enable-background="new 0 0 40 40"
1107
+ xml:space="preserve"
1108
+ >
1109
+ <path
1110
+ opacity="0.2"
1111
+ fill="#0072D6"
1112
+ d="M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946
1113
+ s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634
1114
+ c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z"
1115
+ />
1116
+ <path
1117
+ fill="#0072D6"
1118
+ d="M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0
1119
+ C22.32,8.481,24.301,9.057,26.013,10.047z"
1120
+ >
1121
+ <animateTransform
1122
+ attributeType="xml"
1123
+ attributeName="transform"
1124
+ type="rotate"
1125
+ from="0 20 20"
1126
+ to="360 20 20"
1127
+ keySplines="0.17 0.27 0.8 0.65"
1128
+ calcMode="spline"
1129
+ dur="0.6s"
1130
+ repeatCount="indefinite"
1131
+ keyTimes="0;1"
1132
+ />
1133
+ </path>
1134
+ </svg>
1135
+ `, Mt = JSON.stringify([
1136
+ {
1137
+ id: "1",
1138
+ name: "Item 1",
1139
+ publicName: "Item 1 public lorem ipsum dolor lorem impsum"
1140
+ },
1141
+ {
1142
+ id: "2",
1143
+ name: "Item 2"
1144
+ },
1145
+ {
1146
+ id: "3",
1147
+ name: "Item 3"
1148
+ },
1149
+ {
1150
+ id: "4",
1151
+ name: "Item 4"
1152
+ },
1153
+ {
1154
+ id: "5",
1155
+ name: "Item 5"
1156
+ }
1157
+ ]), Nt = async ({ accountId: e, userId: t }, n) => {
1158
+ if (!e || !t) return [];
1159
+ let r = window.location.href, i = new URL(`${Xe}/accounts/${e}/users/${t}/widget`);
1160
+ return i.searchParams.set("url", r), i.searchParams.set("order_by", n), (await Ye(i.toString())).json();
1161
+ }, X = class extends N {
1162
+ constructor() {
1163
+ super(...arguments), this.listItems = [], this.orderBy = "sort_order", this.limit = 5, this.listMock = Mt, this.mode = "live", this.fetchListItems = async () => {
1164
+ if (this.mode === "preview") return this.listItems = JSON.parse(this.listMock), JSON.parse(this.listMock);
1165
+ let e = await Appcues?.user() ?? {}, { contents: t } = await Nt({
1166
+ accountId: AppcuesBundleSettings?.accountId,
1167
+ userId: e?.userId
1168
+ }, this.orderBy), n = t.map(({ id: e, name: t, public_name: n }) => ({
1169
+ id: e,
1170
+ name: t,
1171
+ publicName: n
1172
+ }));
1173
+ return this.listItems = n, n;
1174
+ }, this.getListItems = new He(this, {
1175
+ task: this.fetchListItems,
1176
+ args: () => []
1177
+ }), this.handleItemClick = (e) => () => {
1178
+ let t = new CustomEvent("flow-item-clicked", {
1179
+ detail: this.listItems.find((t) => t.id === e),
1180
+ bubbles: !0,
1181
+ composed: !0
1182
+ });
1183
+ this.dispatchEvent(t);
1184
+ }, this.handleItemKeydown = (e) => (t) => {
1185
+ (t.code === "Enter" || t.code === "Space") && (t.preventDefault(), this.handleItemClick(e)());
1186
+ }, this.handleItemHover = (e) => () => {
1187
+ let t = new CustomEvent("flow-item-hovered", {
1188
+ detail: this.listItems.find((t) => t.id === e),
1189
+ bubbles: !0,
1190
+ composed: !0
1191
+ });
1192
+ this.dispatchEvent(t);
1193
+ }, this.containerTemplate = (e) => O`
1194
+ <appcues-use-ref
1195
+ name="list-container"
1196
+ fallbackTag="ul"
1197
+ defaultStyle=${$e}
1198
+ >
1199
+ ${e.slice(0, this.limit).map(this.itemTemplate)}
1200
+ </appcues-use-ref>
1201
+ `, this.itemTemplate = (e) => O`
1202
+ <li
1203
+ tabindex="0"
1204
+ role="button"
1205
+ @click="${this.handleItemClick(e.id)}"
1206
+ @keydown="${this.handleItemKeydown(e.id)}"
1207
+ @mouseover="${this.handleItemHover(e.id)}"
1208
+ >
1209
+ <appcues-use-ref fallbackTag="span" name="list-item">
1210
+ ${e.publicName ?? e.name}
1211
+ </appcues-use-ref>
1212
+ </li>
1213
+ `, this.emptyMessageTemplate = O`
1214
+ <slot name="empty-message">
1215
+ <p>Nothing to see here at the moment</p>
1216
+ </slot>
1217
+ `;
1218
+ }
1219
+ connectedCallback() {
1220
+ super.connectedCallback(), this.mode !== "live" && new MutationObserver((e) => {
1221
+ e.forEach((e) => {
1222
+ let [t] = e.addedNodes;
1223
+ (e.type === "attributes" || t && [
1224
+ "UL",
1225
+ "LI",
1226
+ "SPAN"
1227
+ ].includes(t.nodeName)) && this.getListItems.run();
1228
+ });
1229
+ }).observe(this, {
1230
+ childList: !0,
1231
+ subtree: !0,
1232
+ attributes: !0
1233
+ });
1234
+ }
1235
+ render() {
1236
+ return O`
1237
+ <div class="container">
1238
+ <slot name="title"></slot>
1239
+ ${this.getListItems.render({
1240
+ pending: () => O`<div class="loading">${jt}</div>`,
1241
+ complete: (e) => e.slice(0, this.limit).length === 0 ? this.emptyMessageTemplate : this.containerTemplate(e),
1242
+ error: () => O`
1243
+ <div class="error-message">Nothing to see here at the moment</div>
1244
+ `
1245
+ })}
1246
+ </div>
1247
+ `;
1248
+ }
1249
+ };
1250
+ X.styles = [
1251
+ Ze,
1252
+ Qe,
1253
+ tt,
1254
+ et
1255
+ ], I([F()], X.prototype, "listItems", 2), I([P()], X.prototype, "orderBy", 2), I([P({ type: Number })], X.prototype, "limit", 2), I([P()], X.prototype, "listMock", 2), I([P({ type: String })], X.prototype, "mode", 2), L("appcues-flows-list", X);
1256
+ var Pt = f`
1257
+ .btn-wrapper {
1258
+ display: flex;
1259
+ flex-direction: row;
1260
+ flex-wrap: nowrap;
1261
+ }
1262
+
1263
+ .btn-wrapper button {
1264
+ background-color: var(--launcher-main-color, #0072d6);
1265
+ color: white;
1266
+ cursor: pointer;
1267
+ outline-color: #0072d6;
1268
+ outline-width: 2px;
1269
+ }
1270
+
1271
+ .btn-wrapper button {
1272
+ border: none;
1273
+ border-start-start-radius: 80px;
1274
+ border-end-start-radius: 80px;
1275
+ border-start-end-radius: 0;
1276
+ border-end-end-radius: 0;
1277
+ padding-inline: 16px 8px;
1278
+ padding-block: 4px;
1279
+ height: 52px;
1280
+ outline-offset: 3px;
1281
+ }
1282
+
1283
+ .btn-wrapper ::slotted(button) {
1284
+ padding: 10px 16px;
1285
+ border-radius: 80px;
1286
+ border: 2px solid transparent;
1287
+ height: 52px;
1288
+ display: flex;
1289
+ align-items: center;
1290
+ justify-content: center;
1291
+ gap: 8px;
1292
+ outline-offset: 4px;
1293
+ }
1294
+
1295
+ .btn-wrapper button:hover:not(:active):not([disabled]) {
1296
+ background-color: var(--launcher-hover-color, #4848eb) !important;
1297
+ }
1298
+
1299
+ .btn-wrapper button:active {
1300
+ background-color: var(--launcher-active-color, #8c8cff) !important;
1301
+ }
1302
+
1303
+ .btn-wrapper > .slot-wrapper {
1304
+ border: 2px solid white;
1305
+ margin-top: -2px;
1306
+ border-radius: 80px;
1307
+ width: max-content;
1308
+ }
1309
+
1310
+ .btn-wrapper > .slot-wrapper.active {
1311
+ margin-inline-start: -18px;
1312
+ }
1313
+ `, Ft = f`
1314
+ .checklist-content {
1315
+ display: flex;
1316
+ flex-direction: column;
1317
+ text-align: left;
1318
+ margin-inline-end: 18px;
1319
+ justify-content: center;
1320
+ gap: 6px;
1321
+ line-height: 1.2;
1322
+ }
1323
+ `, It = f`
1324
+ .progress-wrapper {
1325
+ display: flex;
1326
+ align-items: center;
1327
+ gap: 2px;
1328
+ border-radius: 6px;
1329
+ min-width: 100px;
1330
+ overflow: hidden;
1331
+ }
1332
+
1333
+ .progress-bar,
1334
+ progress {
1335
+ background-color: rgba(255, 255, 255, 0.4);
1336
+ height: 4px;
1337
+ flex-grow: 1;
1338
+ }
1339
+
1340
+ .progress-bar.completed {
1341
+ background-color: white;
1342
+ }
1343
+
1344
+ progress[value] {
1345
+ --color: white;
1346
+ --background: rgba(255, 255, 255, 0.4);
1347
+ appearance: none;
1348
+ background: var(--background);
1349
+ border: none;
1350
+ }
1351
+
1352
+ progress[value]::-webkit-progress-bar {
1353
+ background: var(--background);
1354
+ }
1355
+
1356
+ progress[value]::-webkit-progress-value {
1357
+ background: var(--color);
1358
+ }
1359
+
1360
+ progress[value]::-moz-progress-bar {
1361
+ background: var(--color);
1362
+ }
1363
+ `, Z = class extends N {
1364
+ constructor() {
1365
+ super(...arguments), this.title = "Checklist", this.totalItems = 0, this.completedItems = 0, this.activeColor = "#4848eb", this.hoverColor = "#4848eb", this.mainColor = "#0072d6", this.checklistId = "", this.handleSlotchange = (e) => {
1366
+ let t = (e.target?.assignedNodes({ flatten: !0 })).find((e) => e.querySelector ? e.querySelector("button") : !1)?.querySelector("button");
1367
+ if (!t) return;
1368
+ let { backgroundColor: n, background: r } = getComputedStyle(t);
1369
+ this.mainColor = n || r, this.style.setProperty("--launcher-main-color", this.mainColor);
1370
+ }, this.progressbar = () => {
1371
+ if (this.totalItems > 8) return G`<progress
1372
+ id="items"
1373
+ value="${this.completedItems}"
1374
+ max="${this.totalItems}"
1375
+ ></progress>`;
1376
+ let e = [];
1377
+ for (let t = 0; t < this.totalItems; t++) e.push(G`<div
1378
+ class="progress-bar ${t < this.completedItems && "completed"}"
1379
+ ></div>`);
1380
+ return e;
1381
+ }, this.slotElement = () => G`
1382
+ <slot @slotchange=${this.handleSlotchange}></slot>
1383
+ `;
1384
+ }
1385
+ connectedCallback() {
1386
+ super.connectedCallback(), this.totalItems = Number.parseInt(this.getAttribute("totalitems") || "0", 10), this.completedItems = Number.parseInt(this.getAttribute("completeditems") || "0", 10), this.title = this.getAttribute("title") || "Checklist", e((e) => {
1387
+ let { id: t, name: n, totalItems: i, completedItems: a } = e.detail;
1388
+ this.totalItems = i, this.completedItems = a, this.title = n, this.checklistId = t, r();
1389
+ }), i(() => {
1390
+ this.totalItems = 0, this.completedItems = 0, this.title = "Checklist", this.checklistId = "";
1391
+ });
1392
+ }
1393
+ attributeChangedCallback(e, t, n) {
1394
+ if (e === "totalitems") {
1395
+ let e = Number.parseInt(n || "0", 10);
1396
+ this.totalItems = Math.max(e, 0);
1397
+ }
1398
+ if (e === "completeditems") {
1399
+ let e = Number.parseInt(n || "0", 10);
1400
+ e > this.totalItems ? this.completedItems = this.totalItems : e < 0 ? this.completedItems = 0 : this.completedItems = e;
1401
+ }
1402
+ e === "title" && (this.title = n || "Checklist"), e === "hovercolor" && (this.hoverColor = n || "#4848eb", this.style.setProperty("--launcher-hover-color", this.hoverColor)), e === "activecolor" && (this.activeColor = n || "#8c8cff", this.style.setProperty("--launcher-active-color", this.activeColor));
1403
+ }
1404
+ render() {
1405
+ return G`
1406
+ <div class="btn-wrapper">
1407
+ ${this.totalItems === 0 ? this.slotElement() : G`
1408
+ <button @click="${() => n(this.checklistId)}">
1409
+ <div class="checklist-content">
1410
+ ${this.title}
1411
+ <div class="progress-wrapper" aria-role="progressbar">
1412
+ ${this.progressbar()}
1413
+ </div>
1414
+ </div>
1415
+ </button>
1416
+ <div
1417
+ class="slot-wrapper ${this.totalItems > 0 && "active"}"
1418
+ @click="${{
1419
+ handleEvent: () => n(this.checklistId, !0),
1420
+ capture: !0
1421
+ }}"
1422
+ >
1423
+ ${this.slotElement()}
1424
+ </div>
1425
+ `}
1426
+ </div>
1427
+ `;
1428
+ }
1429
+ };
1430
+ Z.styles = [
1431
+ Pt,
1432
+ Ft,
1433
+ It
1434
+ ], I([P()], Z.prototype, "title", 2), I([P()], Z.prototype, "totalItems", 2), I([P()], Z.prototype, "completedItems", 2), I([P()], Z.prototype, "activeColor", 2), I([P()], Z.prototype, "hoverColor", 2), I([F()], Z.prototype, "mainColor", 2), I([F()], Z.prototype, "checklistId", 2), L("appcues-checklist-wrapper", Z);
1435
+ var Lt = f`
1436
+ .page {
1437
+ display: block;
1438
+ width: 100%;
1439
+ height: 100%;
1440
+ }
1441
+
1442
+ .idle {
1443
+ display: none;
1444
+ }
1445
+
1446
+ .hidden {
1447
+ pointer-events: none;
1448
+ }
1449
+
1450
+ .animated {
1451
+ position: absolute;
1452
+ top: 0;
1453
+ left: 0;
1454
+ }
1455
+ `, Rt = f`
1456
+ .slide-in-bottom {
1457
+ animation: slide-in-bottom 0.4s cubic-bezier(0.15, 1.03, 0.8, 1.03) forwards;
1458
+ }
1459
+
1460
+ @keyframes slide-in-bottom {
1461
+ 0% {
1462
+ opacity: 0;
1463
+ transform: translateY(80%);
1464
+ }
1465
+ 20% {
1466
+ opacity: 0;
1467
+ }
1468
+ 100% {
1469
+ opacity: 1;
1470
+ transform: translateY(0);
1471
+ }
1472
+ }
1473
+ `, zt = f`
1474
+ .slide-out-bottom {
1475
+ animation: slide-out-bottom 0.4s cubic-bezier(0.7, 0, 0.57, 0.55) forwards;
1476
+ }
1477
+
1478
+ @keyframes slide-out-bottom {
1479
+ 0% {
1480
+ opacity: 1;
1481
+ transform: translateY(0);
1482
+ }
1483
+
1484
+ 80% {
1485
+ opacity: 1;
1486
+ }
1487
+
1488
+ 99% {
1489
+ transform: translateY(80%);
1490
+ opacity: 0;
1491
+ }
1492
+
1493
+ 100% {
1494
+ display: none;
1495
+ max-height: 0;
1496
+ overflow: hidden;
1497
+ }
1498
+ }
1499
+ `, Bt = class extends N {
1500
+ constructor() {
1501
+ super(...arguments), this.status = "idle", this.animation = "", this.minHeight = "auto";
1502
+ }
1503
+ show({ animation: e = "" } = {}) {
1504
+ e !== "" && (this.animation = e), this.status = "showing";
1505
+ }
1506
+ hide({ animation: e = "" } = {}) {
1507
+ e !== "" && (this.animation = e), this.status = "hidden";
1508
+ }
1509
+ render() {
1510
+ return O`
1511
+ <div
1512
+ class="page ${this.status} ${this.animation && "animated"} ${this.animation}"
1513
+ aria-hidden="${["hidden", "idle"].includes(this.status)}"
1514
+ >
1515
+ <slot></slot>
1516
+ </div>
1517
+ `;
1518
+ }
1519
+ };
1520
+ Bt.styles = [
1521
+ Lt,
1522
+ Rt,
1523
+ zt
1524
+ ], I([F()], Bt.prototype, "status", 2), I([P()], Bt.prototype, "minHeight", 2), L("appcues-page", Bt);
1525
+ var Vt = f`
1526
+ .grow {
1527
+ animation: grow-min-height 0.4s cubic-bezier(0.7, 0, 0.57, 0.55) forwards;
1528
+ min-height: auto;
1529
+ }
1530
+
1531
+ .shrink {
1532
+ animation: shrink-min-height 0.4s cubic-bezier(0.7, 0, 0.57, 0.55) forwards;
1533
+ }
1534
+ `, Q = class extends N {
1535
+ constructor() {
1536
+ super(...arguments), this.currentPage = 0, this.pages = [], this.currentHeight = "auto", this.entry = "slide-in-bottom", this.exit = "slide-out-bottom";
1537
+ }
1538
+ getChildren() {
1539
+ return this.shadowRoot ? this.shadowRoot.querySelector("slot")?.assignedElements({ flatten: !0 }) ?? [] : [];
1540
+ }
1541
+ updateHeight(e = this.currentPage) {
1542
+ let t = this.pages[e].minHeight || "auto";
1543
+ this.currentHeight = t === "auto" ? "auto" : t;
1544
+ }
1545
+ showFirstPage() {
1546
+ this.updateHeight(), this.pages[this.currentPage].show();
1547
+ }
1548
+ prev() {
1549
+ this.currentPage <= 0 || (this.updateHeight(this.currentPage - 1), this.pages[this.currentPage].hide({ animation: this.exit }), this.pages[this.currentPage - 1].show(), --this.currentPage);
1550
+ }
1551
+ next() {
1552
+ this.currentPage >= this.pages.length - 1 || (this.currentPage += 1, this.updateHeight(), this.pages[this.currentPage].show({ animation: this.entry }), this.pages[this.currentPage - 1].hide());
1553
+ }
1554
+ goTo(e = 0) {
1555
+ e !== this.currentPage && (this.pages[e].show({ animation: e === 0 ? "" : this.entry }), this.pages[this.currentPage].hide({ animation: this.currentPage === 0 ? "" : this.exit }), this.currentPage = e, this.updateHeight());
1556
+ }
1557
+ firstUpdated() {
1558
+ this.pages = this.getChildren(), this.showFirstPage();
1559
+ }
1560
+ connectedCallback() {
1561
+ super.connectedCallback();
1562
+ }
1563
+ render() {
1564
+ return O`
1565
+ <style>
1566
+ @keyframes grow-min-height {
1567
+ 0% {
1568
+ min-height: 0;
1569
+ }
1570
+
1571
+ 100% {
1572
+ min-height: ${this.currentHeight};
1573
+ }
1574
+ }
1575
+
1576
+ @keyframes shrink-min-height {
1577
+ 0% {
1578
+ min-height: ${this.currentHeight};
1579
+ }
1580
+
1581
+ 100% {
1582
+ min-height: auto;
1583
+ }
1584
+ }
1585
+ </style>
1586
+ <div
1587
+ class="${this.currentPage === 0 ? "shrink" : "grow"}"
1588
+ style="position: relative;"
1589
+ >
1590
+ <slot></slot>
1591
+ </div>
1592
+ `;
1593
+ }
1594
+ };
1595
+ Q.styles = [Vt], I([F()], Q.prototype, "currentPage", 2), I([F()], Q.prototype, "pages", 2), I([F()], Q.prototype, "currentHeight", 2), I([P()], Q.prototype, "entry", 2), I([P()], Q.prototype, "exit", 2), L("appcues-navigation-stack", Q);
1596
+ var Ht = _t`
1597
+ <svg
1598
+ version="1.1"
1599
+ xmlns="http://www.w3.org/2000/svg"
1600
+ xmlns:xlink="http://www.w3.org/1999/xlink"
1601
+ x="0px"
1602
+ y="0px"
1603
+ width="40px"
1604
+ height="40px"
1605
+ fill="#0072D6"
1606
+ viewBox="0 0 40 40"
1607
+ enable-background="new 0 0 40 40"
1608
+ xml:space="preserve"
1609
+ >
1610
+ <path
1611
+ opacity="0.2"
1612
+ fill="#0072D6"
1613
+ d="M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946
1614
+ s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634
1615
+ c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z"
1616
+ />
1617
+ <path
1618
+ fill="#0072D6"
1619
+ d="M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0
1620
+ C22.32,8.481,24.301,9.057,26.013,10.047z"
1621
+ >
1622
+ <animateTransform
1623
+ attributeType="xml"
1624
+ attributeName="transform"
1625
+ type="rotate"
1626
+ from="0 20 20"
1627
+ to="360 20 20"
1628
+ keySplines="0.17 0.27 0.8 0.65"
1629
+ calcMode="spline"
1630
+ dur="0.6s"
1631
+ repeatCount="indefinite"
1632
+ keyTimes="0;1"
1633
+ />
1634
+ </path>
1635
+ </svg>
1636
+ `, Ut = _t`
1637
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
1638
+ <g id="material-icon" clip-path="url(#clip0_19386_6120)">
1639
+ <path
1640
+ id="Vector"
1641
+ d="M6.12522 8.00305L11.9239 13.8017C12.1702 14.048 12.2953 14.3528 12.2993 14.7161C12.3033 15.0794 12.1822 15.3842 11.9359 15.6305C11.6896 15.8769 11.3828 16 11.0155 16C10.6481 16 10.3413 15.8769 10.095 15.6305L3.93523 9.47075C3.7234 9.25892 3.57007 9.02893 3.47524 8.78077C3.38042 8.53262 3.33301 8.27338 3.33301 8.00305C3.33301 7.73273 3.38042 7.47349 3.47524 7.22534C3.57007 6.97718 3.7234 6.74719 3.93523 6.53536L10.095 0.375561C10.3413 0.129259 10.6461 0.00410428 11.0094 9.62603e-05C11.3727 -0.00391176 11.6776 0.117242 11.9239 0.363558C12.1702 0.60986 12.2933 0.916664 12.2933 1.28397C12.2933 1.65128 12.1702 1.95809 11.9239 2.20441L6.12522 8.00305Z"
1642
+ fill="currentColor"
1643
+ />
1644
+ </g>
1645
+ </svg>
1646
+ `, Wt = _t`
1647
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1648
+ <path
1649
+ fill="currentColor"
1650
+ d="M8.9 17.81a8.6 8.6 0 0 1-6.31-2.59A8.6 8.6 0 0 1 0 8.91c0-2.49.86-4.6 2.59-6.32A8.6 8.6 0 0 1 8.9 0a8.6 8.6 0 0 1 6.32 2.59A8.6 8.6 0 0 1 17.8 8.9a8.39 8.39 0 0 1-1.68 5.07l7.45 7.46c.28.29.42.65.42 1.07 0 .43-.14.78-.43 1.06-.29.29-.64.43-1.07.43-.43 0-.78-.14-1.07-.43L14 16.13a8.42 8.42 0 0 1-5.09 1.68Zm0-3.05c1.63 0 3.01-.57 4.15-1.7a5.65 5.65 0 0 0 1.7-4.15c0-1.63-.56-3.02-1.7-4.15a5.64 5.64 0 0 0-4.15-1.7c-1.63 0-3 .56-4.14 1.7a5.65 5.65 0 0 0-1.7 4.15c0 1.63.56 3 1.7 4.15a5.64 5.64 0 0 0 4.14 1.7Z"
1651
+ />
1652
+ </svg>
1653
+ `, Gt = f`
1654
+ @keyframes fade-in {
1655
+ 0% {
1656
+ opacity: 0;
1657
+ display: none;
1658
+ }
1659
+
1660
+ 100% {
1661
+ opacity: 1;
1662
+ display: flex;
1663
+ }
1664
+ }
1665
+
1666
+ @keyframes fade-out {
1667
+ 0% {
1668
+ opacity: 1;
1669
+ display: flex;
1670
+ }
1671
+
1672
+ 100% {
1673
+ opacity: 0;
1674
+ display: none;
1675
+ }
1676
+ }
1677
+
1678
+ @keyframes expand {
1679
+ 0% {
1680
+ width: 0%;
1681
+ }
1682
+
1683
+ 100% {
1684
+ width: 100%;
1685
+ }
1686
+ }
1687
+
1688
+ @keyframes collapse {
1689
+ 0% {
1690
+ width: 100%;
1691
+ }
1692
+
1693
+ 100% {
1694
+ width: 0%;
1695
+ }
1696
+ }
1697
+
1698
+ @keyframes slide-in {
1699
+ 0% {
1700
+ transform: translateX(120px);
1701
+ }
1702
+
1703
+ 100% {
1704
+ transform: translateX(0);
1705
+ }
1706
+ }
1707
+
1708
+ @keyframes slide-out {
1709
+ 0% {
1710
+ transform: translateX(0);
1711
+ }
1712
+
1713
+ 100% {
1714
+ transform: translateX(120px);
1715
+ }
1716
+ }
1717
+ `, Kt = f`
1718
+ :host {
1719
+ display: flex;
1720
+ width: 100%;
1721
+ }
1722
+
1723
+ .container {
1724
+ align-items: center;
1725
+ display: flex;
1726
+ height: 40px;
1727
+ justify-content: space-between;
1728
+ position: relative;
1729
+ width: 100%;
1730
+ }
1731
+
1732
+ svg {
1733
+ height: 16px;
1734
+ }
1735
+
1736
+ button {
1737
+ align-items: center;
1738
+ color: inherit;
1739
+ cursor: pointer;
1740
+ background: transparent;
1741
+ border: none;
1742
+ display: flex;
1743
+ justify-content: center;
1744
+ padding: 12px;
1745
+ }
1746
+ `, qt = f`
1747
+ .search-container {
1748
+ align-items: center;
1749
+ display: none;
1750
+ opacity: 0;
1751
+ position: absolute;
1752
+ width: calc(100% + 12px);
1753
+ left: -12px;
1754
+ }
1755
+
1756
+ .search-container input {
1757
+ border: none;
1758
+ border-start-start-radius: 8px;
1759
+ border-end-start-radius: 8px;
1760
+ border-start-end-radius: 0;
1761
+ border-end-end-radius: 0;
1762
+ box-sizing: border-box;
1763
+ height: 40px;
1764
+ padding: 8px 12px 8px 16px;
1765
+ width: 0;
1766
+ }
1767
+
1768
+ .search-container input:focus {
1769
+ outline: none;
1770
+ }
1771
+
1772
+ .search-container .search-form {
1773
+ display: flex;
1774
+ flex: 1;
1775
+ justify-content: flex-end;
1776
+ margin-bottom: 0;
1777
+ }
1778
+
1779
+ .search-container .search-button {
1780
+ background: white;
1781
+ border-start-end-radius: 8px;
1782
+ border-end-end-radius: 8px;
1783
+ border-start-start-radius: 0;
1784
+ border-end-start-radius: 0;
1785
+ padding: 0 12px;
1786
+ }
1787
+
1788
+ .search-container .search-button svg {
1789
+ width: 16px;
1790
+ }
1791
+
1792
+ .search-container .search-button svg path {
1793
+ fill: black;
1794
+ }
1795
+
1796
+ .search-container.show {
1797
+ animation: fade-in 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;
1798
+ display: flex;
1799
+ }
1800
+
1801
+ .search-container.show input {
1802
+ animation: expand 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;
1803
+ width: 100%;
1804
+ }
1805
+
1806
+ .search-container.hide {
1807
+ animation: fade-out 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;
1808
+ }
1809
+
1810
+ .search-container.hide input {
1811
+ animation: collapse 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;
1812
+ width: 0;
1813
+ }
1814
+
1815
+ .content-container {
1816
+ align-items: center;
1817
+ display: flex;
1818
+ height: 40px;
1819
+ justify-content: space-between;
1820
+ width: 100%;
1821
+ }
1822
+
1823
+ .content-container .content {
1824
+ text-wrap: nowrap;
1825
+ }
1826
+
1827
+ .content-container.show {
1828
+ display: flex;
1829
+ animation: fade-in 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;
1830
+ }
1831
+
1832
+ .content-container.show .content {
1833
+ animation: slide-in 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;
1834
+ }
1835
+
1836
+ .content-container.hide {
1837
+ animation: fade-out 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;
1838
+ }
1839
+
1840
+ .content-container.hide .content {
1841
+ animation: slide-out 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;
1842
+ }
1843
+
1844
+ .search-bar {
1845
+ align-items: center;
1846
+ background: white;
1847
+ border: none;
1848
+ display: none;
1849
+ justify-content: flex-end;
1850
+ gap: 16px;
1851
+ width: 100%;
1852
+ }
1853
+
1854
+ .search-bar.show {
1855
+ display: flex;
1856
+ }
1857
+ `, Jt = class extends N {
1858
+ constructor() {
1859
+ super(...arguments), this.showSearchBar = null, this.loading = !1, this.handleSubmit = () => {
1860
+ let e = this.shadowRoot?.querySelector("input")?.value || "";
1861
+ this.dispatchEvent(new CustomEvent("onSearch", {
1862
+ detail: { inputValue: e },
1863
+ bubbles: !0,
1864
+ composed: !0
1865
+ })), this.requestUpdate();
1866
+ }, this.handleSearch = (0, We.default)(this.handleSubmit, 700);
1867
+ }
1868
+ setSearchMode(e) {
1869
+ this.showSearchBar = e;
1870
+ let t = this.shadowRoot?.querySelector("input");
1871
+ this.requestUpdate(), e ? setTimeout(() => {
1872
+ t?.focus();
1873
+ }, 100) : (this.dispatchEvent(new CustomEvent("onCancel", {
1874
+ bubbles: !0,
1875
+ composed: !0
1876
+ })), t && (t.value = ""));
1877
+ }
1878
+ render() {
1879
+ return O`
1880
+ <div class="container">
1881
+ <div
1882
+ class="content-container ${this.showSearchBar === null ? "" : this.showSearchBar ? "hide" : "show"}"
1883
+ >
1884
+ <div class="content" style="${this.style}">
1885
+ <slot></slot>
1886
+ </div>
1887
+ <button @click="${() => this.setSearchMode(!0)}">
1888
+ ${Wt}
1889
+ </button>
1890
+ </div>
1891
+ <div class="search-container ${this.showSearchBar ? "show" : "hide"}">
1892
+ <button
1893
+ class="return-button"
1894
+ @click="${() => this.setSearchMode(!1)}"
1895
+ >
1896
+ ${Ut}
1897
+ </button>
1898
+ <form
1899
+ class="search-form"
1900
+ @submit="${(e) => {
1901
+ e.preventDefault(), this.handleSubmit();
1902
+ }}"
1903
+ >
1904
+ <input
1905
+ type="text"
1906
+ placeholder="Type to search"
1907
+ @keyup=${this.handleSearch}
1908
+ />
1909
+ <button class="search-button" type="submit">
1910
+ ${this.loading ? Ht : Wt}
1911
+ </button>
1912
+ </form>
1913
+ </div>
1914
+ </div>
1915
+ `;
1916
+ }
1917
+ };
1918
+ Jt.styles = [
1919
+ Gt,
1920
+ Kt,
1921
+ qt
1922
+ ], I([F()], Jt.prototype, "showSearchBar", 2), I([P({ converter: (e) => e === "true" })], Jt.prototype, "loading", 2), L("appcues-search-header", Jt);
1923
+ var Yt = (e) => e && new DOMParser().parseFromString(e, "text/html").body.textContent || "", Xt = f`
1924
+ :host {
1925
+ height: 100%;
1926
+ display: block;
1927
+ }
1928
+
1929
+ * {
1930
+ margin: 0;
1931
+ padding: 0;
1932
+ box-sizing: border-box;
1933
+ }
1934
+
1935
+ .root-wrapper {
1936
+ height: 100%;
1937
+ box-shadow: var(--search-results-block-shadow);
1938
+ color: var(--search-results-block-color);
1939
+ background-color: var(--search-results-block-background-color);
1940
+ }
1941
+
1942
+ .content-wrapper {
1943
+ padding: 16px 16px 16px 16px;
1944
+ background: var(--search-results-block-content-wrapper-background-color);
1945
+ min-height: 100%;
1946
+ }
1947
+
1948
+ .content-wrapper .root-wrapper {
1949
+ height: auto;
1950
+ border-radius: var(--search-results-block-radius);
1951
+ }
1952
+
1953
+ .root-wrapper[loading='true'] {
1954
+ overflow: hidden;
1955
+ }
1956
+
1957
+ .alert-wrapper {
1958
+ display: flex;
1959
+ flex-direction: column;
1960
+ gap: 16px;
1961
+ align-items: center;
1962
+ justify-content: center;
1963
+ text-align: center;
1964
+ padding: 16px;
1965
+ }
1966
+ `, Zt = f`
1967
+ .pagination-btn {
1968
+ align-items: center;
1969
+ background: transparent;
1970
+ border-bottom-left-radius: var(--search-results-block-radius);
1971
+ border-bottom-right-radius: var(--search-results-block-radius);
1972
+ border-top: 1px solid rgba(66, 86, 120, 0.1);
1973
+ border-left: none;
1974
+ border-right: none;
1975
+ border-bottom: none;
1976
+ cursor: pointer;
1977
+ display: flex;
1978
+ font-size: 14px;
1979
+ font-weight: 500;
1980
+ justify-content: center;
1981
+ line-height: 24px;
1982
+ padding: 8px 16px;
1983
+ width: 100%;
1984
+ position: relative;
1985
+ top: 1px;
1986
+ }
1987
+
1988
+ .pagination-btn:hover {
1989
+ background: var(--search-results-block-background-color-hover);
1990
+ }
1991
+
1992
+ .pagination-btn:focus {
1993
+ outline: 2px solid var(--search-results-block-outline-color);
1994
+ background: var(--search-results-block-background-color-active);
1995
+ }
1996
+ `, Qt = f`
1997
+ .article-main-title-wrapper {
1998
+ padding: 8px 16px;
1999
+ }
2000
+
2001
+ .article-main-title {
2002
+ font-size: 15px;
2003
+ font-style: normal;
2004
+ font-weight: 700;
2005
+ }
2006
+
2007
+ .article-list {
2008
+ font-style: normal;
2009
+ display: flex;
2010
+ flex-direction: column;
2011
+ gap: 4px;
2012
+ list-style: none;
2013
+ }
2014
+
2015
+ .article-list a {
2016
+ text-decoration: none;
2017
+ display: flex;
2018
+ flex-direction: column;
2019
+ gap: 8px;
2020
+ padding: 8px 16px;
2021
+ color: currentColor;
2022
+ }
2023
+
2024
+ .article-list a[loading='false']:hover {
2025
+ background-color: var(--search-results-block-background-color-hover);
2026
+ }
2027
+
2028
+ .article-list a[loading='false']:focus {
2029
+ outline: 2px solid var(--search-results-block-outline-color);
2030
+ background: var(--search-results-block-background-color-active);
2031
+ }
2032
+
2033
+ .article-title-wrapper {
2034
+ font-size: 14px;
2035
+ font-weight: bold;
2036
+ line-height: 160%;
2037
+ display: flex;
2038
+ gap: 8px;
2039
+ align-items: center;
2040
+ justify-content: space-between;
2041
+ }
2042
+
2043
+ .article-title-wrapper p {
2044
+ text-overflow: ellipsis;
2045
+ display: -webkit-box;
2046
+ -webkit-line-clamp: 2;
2047
+ -webkit-box-orient: vertical;
2048
+ overflow: hidden;
2049
+ }
2050
+
2051
+ .article-title-wrapper svg {
2052
+ min-width: 12px;
2053
+ min-height: 12px;
2054
+ width: 12px;
2055
+ height: 12px;
2056
+ }
2057
+
2058
+ .article-title-wrapper.loading {
2059
+ width: 70%;
2060
+ }
2061
+
2062
+ .article-description {
2063
+ font-size: 13px;
2064
+ font-weight: normal;
2065
+ line-height: 160%;
2066
+ text-overflow: ellipsis;
2067
+ display: -webkit-box;
2068
+ -webkit-line-clamp: 3;
2069
+ -webkit-box-orient: vertical;
2070
+ overflow: hidden;
2071
+ }
2072
+
2073
+ .article-description.loading {
2074
+ height: 50px;
2075
+ }
2076
+ `, $t = f`
2077
+ @keyframes animatedBackgroundPosition {
2078
+ 0% {
2079
+ background-position: 0% 92%;
2080
+ }
2081
+ 100% {
2082
+ background-position: 100% 9%;
2083
+ }
2084
+ }
2085
+
2086
+ .loading {
2087
+ opacity: 0.5;
2088
+ background: linear-gradient(
2089
+ 135deg,
2090
+ rgba(211, 223, 232, 0.5) 30%,
2091
+ rgba(169, 184, 197, 0.5) 38%,
2092
+ rgba(168, 182, 193, 0.6) 41%,
2093
+ rgba(168, 182, 193, 0.6) 50%,
2094
+ rgba(168, 182, 193, 0.6) 50%,
2095
+ rgba(169, 184, 197, 0.6) 51%,
2096
+ rgba(211, 223, 232, 0.6) 57%,
2097
+ rgba(211, 223, 232, 0.6) 80%,
2098
+ rgba(211, 223, 232, 0.6) 80%
2099
+ );
2100
+ background-size: 1200% 1200%;
2101
+ animation: animatedBackgroundPosition 3s ease infinite reverse;
2102
+ color: transparent;
2103
+ }
2104
+ `, en = _e`
2105
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2106
+ <g id="Icon">
2107
+ <path id="Vector" d="M11.4752 14.475L7.8502 10.85C7.8002 10.8 7.7627 10.7458 7.7377 10.6875C7.7127 10.6292 7.7002 10.5667 7.7002 10.5C7.7002 10.3667 7.74603 10.25 7.8377 10.15C7.92936 10.05 8.0502 10 8.2002 10H15.8002C15.9502 10 16.071 10.05 16.1627 10.15C16.2544 10.25 16.3002 10.3667 16.3002 10.5C16.3002 10.5333 16.2502 10.65 16.1502 10.85L12.5252 14.475C12.4419 14.5583 12.3585 14.6167 12.2752 14.65C12.1919 14.6833 12.1002 14.7 12.0002 14.7C11.9002 14.7 11.8085 14.6833 11.7252 14.65C11.6419 14.6167 11.5585 14.5583 11.4752 14.475Z" fill="currentColor"/>
2108
+ </g>
2109
+ </svg>
2110
+ `, tn = _e`
2111
+ <svg
2112
+ xmlns="http://www.w3.org/2000/svg"
2113
+ width="12px"
2114
+ height="12px"
2115
+ viewBox="0 0 24 24"
2116
+ fill="none"
2117
+ aria-hidden
2118
+ >
2119
+ <path
2120
+ d="M3.44444 23C2.77222 23 2.19676 22.7606 1.71806 22.2819C1.23935 21.8032 1 21.2278 1 20.5556V3.44444C1 2.77222 1.23935 2.19676 1.71806 1.71806C2.19676 1.23935 2.77222 1 3.44444 1H10.7778C11.1241 1 11.4144 1.11713 11.6486 1.35139C11.8829 1.58565 12 1.87593 12 2.22222C12 2.56852 11.8829 2.8588 11.6486 3.09306C11.4144 3.32731 11.1241 3.44444 10.7778 3.44444H3.44444V20.5556H20.5556V13.2222C20.5556 12.8759 20.6727 12.5856 20.9069 12.3514C21.1412 12.1171 21.4315 12 21.7778 12C22.1241 12 22.4144 12.1171 22.6486 12.3514C22.8829 12.5856 23 12.8759 23 13.2222V20.5556C23 21.2278 22.7606 21.8032 22.2819 22.2819C21.8032 22.7606 21.2278 23 20.5556 23H3.44444ZM20.5556 5.15556L10.0444 15.6667C9.82037 15.8907 9.53518 16.0028 9.18889 16.0028C8.84259 16.0028 8.55741 15.8907 8.33333 15.6667C8.10926 15.4426 7.99722 15.1574 7.99722 14.8111C7.99722 14.4648 8.10926 14.1796 8.33333 13.9556L18.8444 3.44444H15.6667C15.3204 3.44444 15.0301 3.32731 14.7958 3.09306C14.5616 2.8588 14.4444 2.56852 14.4444 2.22222C14.4444 1.87593 14.5616 1.58565 14.7958 1.35139C15.0301 1.11713 15.3204 1 15.6667 1H21.7778C22.1241 1 22.4144 1.11713 22.6486 1.35139C22.8829 1.58565 23 1.87593 23 2.22222V8.33333C23 8.67963 22.8829 8.96991 22.6486 9.20417C22.4144 9.43843 22.1241 9.55556 21.7778 9.55556C21.4315 9.55556 21.1412 9.43843 20.9069 9.20417C20.6727 8.96991 20.5556 8.67963 20.5556 8.33333V5.15556Z"
2121
+ fill="currentColor"
2122
+ />
2123
+ </svg>
2124
+ `, $ = class extends N {
2125
+ constructor() {
2126
+ super(...arguments), this.state = "empty", this.searchTerm = "", this.hasNextPage = !1, this.pageSize = 10, this.results = [], this.handleRequestNextPage = () => {
2127
+ this.dispatchEvent(new CustomEvent("onRequestNextPage", {
2128
+ bubbles: !0,
2129
+ composed: !0
2130
+ }));
2131
+ }, this.handleLinkClicked = (e) => () => {
2132
+ this.dispatchEvent(new CustomEvent("onLinkClicked", {
2133
+ bubbles: !0,
2134
+ composed: !0,
2135
+ detail: e
2136
+ }));
2137
+ }, this.mockResultData = () => {
2138
+ this.results = Array.from({ length: this.pageSize }).map((e, t) => ({
2139
+ url: `url ${t}`,
2140
+ excerpt: `excerpt ${t}`,
2141
+ title: `title ${t}`
2142
+ }));
2143
+ };
2144
+ }
2145
+ connectedCallback() {
2146
+ super.connectedCallback(), this.state === "loading" && this.mockResultData();
2147
+ }
2148
+ attributeChangedCallback(e, t, n) {
2149
+ super.attributeChangedCallback(e, t, n), e === "state" && (n === "loading" && this.mockResultData(), this.state = n);
2150
+ }
2151
+ render() {
2152
+ return this.state === "empty" ? O`
2153
+ <div class="root-wrapper alert-wrapper">
2154
+ <p>No results for '${this.searchTerm}'</p>
2155
+ </div>
2156
+ ` : this.state === "error" ? O`
2157
+ <div class="root-wrapper alert-wrapper">
2158
+ <p>We could not load the results</p>
2159
+ <p>Try again later</p>
2160
+ </div>
2161
+ ` : O`
2162
+ <div class="content-wrapper">
2163
+ <div class="root-wrapper" loading="${this.state === "loading"}">
2164
+ <ul class="article-list">
2165
+ ${this.results.map((e) => O`
2166
+ <li @click=${this.handleLinkClicked(e)}>
2167
+ <a
2168
+ href="${e.url}"
2169
+ target="_blank"
2170
+ rel="noopener noreferrer"
2171
+ loading="${this.state === "loading"}"
2172
+ >
2173
+ <div class="article-title-wrapper ${this.state}">
2174
+ <p>${e.title}</p>
2175
+ ${tn}
2176
+ </div>
2177
+ <p class="article-description ${this.state}">
2178
+ ${Yt(e.excerpt)}
2179
+ </p>
2180
+ </a>
2181
+ </li>
2182
+ `)}
2183
+ </ul>
2184
+
2185
+ ${this.hasNextPage && this.state !== "loading" ? O`
2186
+ <button
2187
+ class="pagination-btn"
2188
+ @click=${this.handleRequestNextPage}
2189
+ >
2190
+ See more ${this.results.length} results ${en}
2191
+ </button>
2192
+ ` : O``}
2193
+ </div>
2194
+ </div>
2195
+ `;
2196
+ }
2197
+ };
2198
+ $.styles = [
2199
+ Xt,
2200
+ Qt,
2201
+ $t,
2202
+ Zt
2203
+ ], I([P()], $.prototype, "state", 2), I([P()], $.prototype, "searchTerm", 2), I([P({ converter: (e) => e === "true" })], $.prototype, "hasNextPage", 2), I([P()], $.prototype, "pageSize", 2), I([P({ type: Array })], $.prototype, "results", 2), L("appcues-search-results", $);
2204
+ //#endregion