@appcues/web-sdk 7.22.2 → 7.24.0

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