@flarehr/apollo-super-selection 3.14.52544 → 3.17.52781

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 (281) hide show
  1. package/package.json +1 -1
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +0 -1
  3. package/dist/lib/apollo-super-selection/apollo-super-selection.js +0 -130
  4. package/dist/lib/apollo-super-selection/index.esm.js +0 -0
  5. package/dist/lib/apollo-super-selection/p-13573238.system.js +0 -15
  6. package/dist/lib/apollo-super-selection/p-27129f6d.system.js +0 -1
  7. package/dist/lib/apollo-super-selection/p-2bbd0732.system.entry.js +0 -1
  8. package/dist/lib/apollo-super-selection/p-2bd70644.system.entry.js +0 -1
  9. package/dist/lib/apollo-super-selection/p-30bebd30.entry.js +0 -1
  10. package/dist/lib/apollo-super-selection/p-31a3ef1a.entry.js +0 -14
  11. package/dist/lib/apollo-super-selection/p-342cee5a.js +0 -1
  12. package/dist/lib/apollo-super-selection/p-381262c1.system.js +0 -1
  13. package/dist/lib/apollo-super-selection/p-38f24f69.js +0 -1
  14. package/dist/lib/apollo-super-selection/p-48e99aba.system.js +0 -1
  15. package/dist/lib/apollo-super-selection/p-4ceefd14.system.entry.js +0 -1
  16. package/dist/lib/apollo-super-selection/p-50ea2036.system.js +0 -1
  17. package/dist/lib/apollo-super-selection/p-52cb55a8.system.entry.js +0 -1
  18. package/dist/lib/apollo-super-selection/p-55737760.entry.js +0 -1
  19. package/dist/lib/apollo-super-selection/p-59a986b0.js +0 -1
  20. package/dist/lib/apollo-super-selection/p-7b72a245.system.entry.js +0 -1
  21. package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +0 -1
  22. package/dist/lib/apollo-super-selection/p-84240b0b.entry.js +0 -1
  23. package/dist/lib/apollo-super-selection/p-943b206b.entry.js +0 -1
  24. package/dist/lib/apollo-super-selection/p-9b5fb4bc.system.js +0 -1
  25. package/dist/lib/apollo-super-selection/p-cbe37145.js +0 -1
  26. package/dist/lib/apollo-super-selection/p-cc209002.system.entry.js +0 -1
  27. package/dist/lib/apollo-super-selection/p-cc9c37a4.entry.js +0 -1
  28. package/dist/lib/apollo-super-selection/p-dd3a95d5.system.entry.js +0 -69
  29. package/dist/lib/apollo-super-selection/p-df9ce4b7.js +0 -15
  30. package/dist/lib/apollo-super-selection/p-fbcce741.entry.js +0 -1
  31. package/dist/lib/cjs/active-router-08eabf9a.js +0 -75
  32. package/dist/lib/cjs/apollo-super-selection.cjs.js +0 -23
  33. package/dist/lib/cjs/app-globals-45007120.js +0 -25
  34. package/dist/lib/cjs/context-consumer.cjs.entry.js +0 -29
  35. package/dist/lib/cjs/datorama-akita-7f4b082a.js +0 -2704
  36. package/dist/lib/cjs/delay-81aff2f1.js +0 -955
  37. package/dist/lib/cjs/fl-button_43.cjs.entry.js +0 -16969
  38. package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -90
  39. package/dist/lib/cjs/index-b2214bec.js +0 -1764
  40. package/dist/lib/cjs/index.cjs.js +0 -2
  41. package/dist/lib/cjs/loader.cjs.js +0 -25
  42. package/dist/lib/cjs/stencil-async-content.cjs.entry.js +0 -32
  43. package/dist/lib/cjs/stencil-route-title.cjs.entry.js +0 -32
  44. package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  45. package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +0 -32
  46. package/dist/lib/collection/collection-manifest.json +0 -125
  47. package/dist/lib/collection/components/app-host/loading-page.js +0 -9
  48. package/dist/lib/collection/components/app-host/services/app-configuration.query.js +0 -18
  49. package/dist/lib/collection/components/app-host/services/app-configuration.service.js +0 -25
  50. package/dist/lib/collection/components/app-host/services/appinsights.service.js +0 -43
  51. package/dist/lib/collection/components/app-host/services/authentication.query.js +0 -21
  52. package/dist/lib/collection/components/app-host/services/authentication.service.js +0 -50
  53. package/dist/lib/collection/components/app-host/services/interop/host-interop.service.js +0 -31
  54. package/dist/lib/collection/components/app-host/services/interop/iframe-interop.service.js +0 -30
  55. package/dist/lib/collection/components/app-host/services/interop/react-native-interop.service.js +0 -20
  56. package/dist/lib/collection/components/app-host/services/interop.query.js +0 -26
  57. package/dist/lib/collection/components/app-host/services/session.store.js +0 -37
  58. package/dist/lib/collection/components/app-host/super-selection-app-host.css +0 -28
  59. package/dist/lib/collection/components/app-host/super-selection-app-host.js +0 -92
  60. package/dist/lib/collection/components/super-selection-app/api/api-client.js +0 -14
  61. package/dist/lib/collection/components/super-selection-app/api/event-tracking.api.js +0 -9
  62. package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +0 -1
  63. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +0 -1
  64. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +0 -30
  65. package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +0 -31
  66. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +0 -11
  67. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +0 -29
  68. package/dist/lib/collection/components/super-selection-app/funds/constants.js +0 -13
  69. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.js +0 -1
  70. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.js +0 -31
  71. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +0 -68
  72. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +0 -53
  73. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +0 -108
  74. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +0 -93
  75. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +0 -103
  76. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.js +0 -111
  77. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +0 -153
  78. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.js +0 -1
  79. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +0 -96
  80. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.js +0 -1
  81. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.js +0 -13
  82. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +0 -37
  83. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/continueCheck.js +0 -13
  84. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/getNextRoute.js +0 -89
  85. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/resetState.js +0 -31
  86. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-header.js +0 -38
  87. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.js +0 -63
  88. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirmation.css +0 -0
  89. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.js +0 -95
  90. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.js +0 -99
  91. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.js +0 -18
  92. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-layout.js +0 -95
  93. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper.css +0 -50
  94. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question1/question1.js +0 -10
  95. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question2/question2.js +0 -10
  96. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question3/question3.js +0 -10
  97. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question4/question4.js +0 -10
  98. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question5/question5.js +0 -10
  99. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question6/question6.js +0 -10
  100. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question7/question7.js +0 -10
  101. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question8/question8.js +0 -10
  102. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.js +0 -66
  103. package/dist/lib/collection/components/super-selection-app/funds/qsuper/services/qsuper.store.js +0 -64
  104. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +0 -1
  105. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +0 -13
  106. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +0 -127
  107. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +0 -9
  108. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +0 -35
  109. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +0 -67
  110. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css +0 -0
  111. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js +0 -19
  112. package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +0 -25
  113. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +0 -22
  114. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +0 -71
  115. package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +0 -22
  116. package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +0 -37
  117. package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +0 -3
  118. package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +0 -53
  119. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +0 -42
  120. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +0 -73
  121. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +0 -11
  122. package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +0 -1
  123. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +0 -49
  124. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +0 -18
  125. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +0 -53
  126. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +0 -216
  127. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +0 -53
  128. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +0 -152
  129. package/dist/lib/collection/components/super-selection-app/super-selection-app.css +0 -15
  130. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -229
  131. package/dist/lib/collection/global/init-host.js +0 -22
  132. package/dist/lib/collection/global/main.dev.js +0 -26
  133. package/dist/lib/collection/global/main.js +0 -11
  134. package/dist/lib/collection/global/stencil-router-workaround.js +0 -12
  135. package/dist/lib/collection/index.js +0 -2
  136. package/dist/lib/collection/utils/config.js +0 -2
  137. package/dist/lib/collection/utils/gtm.js +0 -5
  138. package/dist/lib/collection/utils/iframe.js +0 -33
  139. package/dist/lib/collection/utils/index.js +0 -8
  140. package/dist/lib/collection/utils/lazy.js +0 -29
  141. package/dist/lib/collection/utils/storage.js +0 -5
  142. package/dist/lib/esm/active-router-09eb3641.js +0 -73
  143. package/dist/lib/esm/apollo-super-selection.js +0 -21
  144. package/dist/lib/esm/app-globals-7ac1ffba.js +0 -23
  145. package/dist/lib/esm/context-consumer.entry.js +0 -25
  146. package/dist/lib/esm/datorama-akita-79ce4385.js +0 -2692
  147. package/dist/lib/esm/delay-c0555599.js +0 -935
  148. package/dist/lib/esm/fl-button_43.entry.js +0 -16923
  149. package/dist/lib/esm/fl-style-guide.entry.js +0 -86
  150. package/dist/lib/esm/index-227ab0f1.js +0 -1731
  151. package/dist/lib/esm/index.js +0 -1
  152. package/dist/lib/esm/loader.js +0 -21
  153. package/dist/lib/esm/polyfills/core-js.js +0 -11
  154. package/dist/lib/esm/polyfills/css-shim.js +0 -1
  155. package/dist/lib/esm/polyfills/dom.js +0 -79
  156. package/dist/lib/esm/polyfills/es5-html-element.js +0 -1
  157. package/dist/lib/esm/polyfills/index.js +0 -34
  158. package/dist/lib/esm/polyfills/system.js +0 -6
  159. package/dist/lib/esm/stencil-async-content.entry.js +0 -28
  160. package/dist/lib/esm/stencil-route-title.entry.js +0 -28
  161. package/dist/lib/esm/stencil-router-prompt.entry.js +0 -55
  162. package/dist/lib/esm/stencil-router-redirect.entry.js +0 -28
  163. package/dist/lib/esm-es5/active-router-09eb3641.js +0 -1
  164. package/dist/lib/esm-es5/apollo-super-selection.js +0 -1
  165. package/dist/lib/esm-es5/app-globals-7ac1ffba.js +0 -1
  166. package/dist/lib/esm-es5/context-consumer.entry.js +0 -1
  167. package/dist/lib/esm-es5/datorama-akita-79ce4385.js +0 -15
  168. package/dist/lib/esm-es5/delay-c0555599.js +0 -1
  169. package/dist/lib/esm-es5/fl-button_43.entry.js +0 -69
  170. package/dist/lib/esm-es5/fl-style-guide.entry.js +0 -1
  171. package/dist/lib/esm-es5/index-227ab0f1.js +0 -1
  172. package/dist/lib/esm-es5/index.js +0 -0
  173. package/dist/lib/esm-es5/loader.js +0 -1
  174. package/dist/lib/esm-es5/stencil-async-content.entry.js +0 -1
  175. package/dist/lib/esm-es5/stencil-route-title.entry.js +0 -1
  176. package/dist/lib/esm-es5/stencil-router-prompt.entry.js +0 -1
  177. package/dist/lib/esm-es5/stencil-router-redirect.entry.js +0 -1
  178. package/dist/lib/index.cjs.js +0 -1
  179. package/dist/lib/index.js +0 -1
  180. package/dist/lib/loader/cdn.js +0 -3
  181. package/dist/lib/loader/index.cjs.js +0 -3
  182. package/dist/lib/loader/index.d.ts +0 -13
  183. package/dist/lib/loader/index.es2017.js +0 -3
  184. package/dist/lib/loader/index.js +0 -4
  185. package/dist/lib/loader/package.json +0 -10
  186. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -45
  187. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
  188. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
  189. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
  190. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
  191. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
  192. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  193. package/dist/lib/types/components/app-host/loading-page.d.ts +0 -3
  194. package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +0 -11
  195. package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +0 -9
  196. package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +0 -14
  197. package/dist/lib/types/components/app-host/services/authentication.query.d.ts +0 -13
  198. package/dist/lib/types/components/app-host/services/authentication.service.d.ts +0 -9
  199. package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +0 -7
  200. package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +0 -5
  201. package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +0 -7
  202. package/dist/lib/types/components/app-host/services/interop.query.d.ts +0 -11
  203. package/dist/lib/types/components/app-host/services/session.store.d.ts +0 -30
  204. package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -17
  205. package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +0 -2
  206. package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +0 -6
  207. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +0 -73
  208. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +0 -16
  209. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +0 -81
  210. package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +0 -4
  211. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -4
  212. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +0 -13
  213. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +0 -8
  214. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +0 -28
  215. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +0 -9
  216. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +0 -30
  217. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +0 -15
  218. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +0 -12
  219. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +0 -12
  220. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +0 -112
  221. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +0 -15
  222. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +0 -10
  223. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +0 -14
  224. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.d.ts +0 -6
  225. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +0 -21
  226. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/confirmCheck.d.ts +0 -1
  227. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/continueCheck.d.ts +0 -1
  228. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/getNextRoute.d.ts +0 -2
  229. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/resetState.d.ts +0 -1
  230. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-header.d.ts +0 -5
  231. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.d.ts +0 -6
  232. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.d.ts +0 -7
  233. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.d.ts +0 -12
  234. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.d.ts +0 -3
  235. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-layout.d.ts +0 -11
  236. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question1/question1.d.ts +0 -3
  237. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question2/question2.d.ts +0 -3
  238. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question3/question3.d.ts +0 -3
  239. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question4/question4.d.ts +0 -3
  240. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question5/question5.d.ts +0 -3
  241. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question6/question6.d.ts +0 -3
  242. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question7/question7.d.ts +0 -3
  243. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question8/question8.d.ts +0 -3
  244. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.d.ts +0 -6
  245. package/dist/lib/types/components/super-selection-app/funds/qsuper/services/qsuper.store.d.ts +0 -58
  246. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +0 -6
  247. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +0 -4
  248. package/dist/lib/types/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.d.ts +0 -13
  249. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +0 -7
  250. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-join-page.d.ts +0 -7
  251. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +0 -8
  252. package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +0 -3
  253. package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +0 -5
  254. package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +0 -8
  255. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +0 -17
  256. package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +0 -9
  257. package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +0 -15
  258. package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +0 -14
  259. package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +0 -18
  260. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +0 -21
  261. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +0 -24
  262. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +0 -13
  263. package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +0 -3
  264. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +0 -7
  265. package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +0 -5
  266. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +0 -17
  267. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +0 -13
  268. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +0 -26
  269. package/dist/lib/types/components.d.ts +0 -532
  270. package/dist/lib/types/global/init-host.d.ts +0 -1
  271. package/dist/lib/types/global/main.d.ts +0 -1
  272. package/dist/lib/types/global/main.dev.d.ts +0 -1
  273. package/dist/lib/types/global/stencil-router-workaround.d.ts +0 -1
  274. package/dist/lib/types/index.d.ts +0 -2
  275. package/dist/lib/types/stencil-public-runtime.d.ts +0 -1555
  276. package/dist/lib/types/utils/config.d.ts +0 -2
  277. package/dist/lib/types/utils/gtm.d.ts +0 -7
  278. package/dist/lib/types/utils/iframe.d.ts +0 -13
  279. package/dist/lib/types/utils/index.d.ts +0 -3
  280. package/dist/lib/types/utils/lazy.d.ts +0 -12
  281. package/dist/lib/types/utils/storage.d.ts +0 -4
@@ -1,1731 +0,0 @@
1
- const NAMESPACE = 'apollo-super-selection';
2
-
3
- let scopeId;
4
- let contentRef;
5
- let hostTagName;
6
- let customError;
7
- let useNativeShadowDom = false;
8
- let checkSlotFallbackVisibility = false;
9
- let checkSlotRelocate = false;
10
- let isSvgMode = false;
11
- let renderingRef = null;
12
- let queuePending = false;
13
- const win = typeof window !== 'undefined' ? window : {};
14
- const doc = win.document || { head: {} };
15
- const plt = {
16
- $flags$: 0,
17
- $resourcesUrl$: '',
18
- jmp: h => h(),
19
- raf: h => requestAnimationFrame(h),
20
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
21
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
22
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
23
- };
24
- const promiseResolve = (v) => Promise.resolve(v);
25
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
26
- try {
27
- new CSSStyleSheet();
28
- return true;
29
- }
30
- catch (e) { }
31
- return false;
32
- })()
33
- ;
34
- const Context = {};
35
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
36
- if ( listeners) {
37
- listeners.map(([flags, name, method]) => {
38
- const target = elm;
39
- const handler = hostListenerProxy(hostRef, method);
40
- const opts = hostListenerOpts(flags);
41
- plt.ael(target, name, handler, opts);
42
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
43
- });
44
- }
45
- };
46
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
47
- try {
48
- {
49
- if (hostRef.$flags$ & 256 /* isListenReady */) {
50
- // instance is ready, let's call it's member method for this event
51
- hostRef.$lazyInstance$[methodName](ev);
52
- }
53
- else {
54
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
55
- }
56
- }
57
- }
58
- catch (e) {
59
- consoleError(e);
60
- }
61
- };
62
- // prettier-ignore
63
- const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
64
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
65
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
66
- const createTime = (fnName, tagName = '') => {
67
- {
68
- return () => {
69
- return;
70
- };
71
- }
72
- };
73
- const uniqueTime = (key, measureText) => {
74
- {
75
- return () => {
76
- return;
77
- };
78
- }
79
- };
80
- const rootAppliedStyles = new WeakMap();
81
- const registerStyle = (scopeId, cssText, allowCS) => {
82
- let style = styles.get(scopeId);
83
- if (supportsConstructibleStylesheets && allowCS) {
84
- style = (style || new CSSStyleSheet());
85
- style.replace(cssText);
86
- }
87
- else {
88
- style = cssText;
89
- }
90
- styles.set(scopeId, style);
91
- };
92
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
93
- let scopeId = getScopeId(cmpMeta);
94
- let style = styles.get(scopeId);
95
- // if an element is NOT connected then getRootNode() will return the wrong root node
96
- // so the fallback is to always use the document for the root node in those cases
97
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
98
- if (style) {
99
- if (typeof style === 'string') {
100
- styleContainerNode = styleContainerNode.head || styleContainerNode;
101
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
102
- let styleElm;
103
- if (!appliedStyles) {
104
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
105
- }
106
- if (!appliedStyles.has(scopeId)) {
107
- {
108
- {
109
- styleElm = doc.createElement('style');
110
- styleElm.innerHTML = style;
111
- }
112
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
113
- }
114
- if (appliedStyles) {
115
- appliedStyles.add(scopeId);
116
- }
117
- }
118
- }
119
- else if ( !styleContainerNode.adoptedStyleSheets.includes(style)) {
120
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
121
- }
122
- }
123
- return scopeId;
124
- };
125
- const attachStyles = (hostRef) => {
126
- const cmpMeta = hostRef.$cmpMeta$;
127
- const elm = hostRef.$hostElement$;
128
- const flags = cmpMeta.$flags$;
129
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
130
- const scopeId = addStyle( elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
131
- if ( flags & 10 /* needsScopedEncapsulation */) {
132
- // only required when we're NOT using native shadow dom (slot)
133
- // or this browser doesn't support native shadow dom
134
- // and this host element was NOT created with SSR
135
- // let's pick out the inner content for slot projection
136
- // create a node to represent where the original
137
- // content was first placed, which is useful later on
138
- // DOM WRITE!!
139
- elm['s-sc'] = scopeId;
140
- elm.classList.add(scopeId + '-h');
141
- }
142
- endAttachStyles();
143
- };
144
- const getScopeId = (cmp, mode) => 'sc-' + ( cmp.$tagName$);
145
- /**
146
- * Default style mode id
147
- */
148
- /**
149
- * Reusable empty obj/array
150
- * Don't add values to these!!
151
- */
152
- const EMPTY_OBJ = {};
153
- /**
154
- * Namespaces
155
- */
156
- const SVG_NS = 'http://www.w3.org/2000/svg';
157
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
158
- const isDef = (v) => v != null;
159
- const isComplexType = (o) => {
160
- // https://jsperf.com/typeof-fn-object/5
161
- o = typeof o;
162
- return o === 'object' || o === 'function';
163
- };
164
- /**
165
- * Production h() function based on Preact by
166
- * Jason Miller (@developit)
167
- * Licensed under the MIT License
168
- * https://github.com/developit/preact/blob/master/LICENSE
169
- *
170
- * Modified for Stencil's compiler and vdom
171
- */
172
- // const stack: any[] = [];
173
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
174
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
175
- const h = (nodeName, vnodeData, ...children) => {
176
- let child = null;
177
- let key = null;
178
- let slotName = null;
179
- let simple = false;
180
- let lastSimple = false;
181
- let vNodeChildren = [];
182
- const walk = (c) => {
183
- for (let i = 0; i < c.length; i++) {
184
- child = c[i];
185
- if (Array.isArray(child)) {
186
- walk(child);
187
- }
188
- else if (child != null && typeof child !== 'boolean') {
189
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
190
- child = String(child);
191
- }
192
- if (simple && lastSimple) {
193
- // If the previous child was simple (string), we merge both
194
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
195
- }
196
- else {
197
- // Append a new vNode, if it's text, we create a text vNode
198
- vNodeChildren.push(simple ? newVNode(null, child) : child);
199
- }
200
- lastSimple = simple;
201
- }
202
- }
203
- };
204
- walk(children);
205
- if (vnodeData) {
206
- // normalize class / classname attributes
207
- if ( vnodeData.key) {
208
- key = vnodeData.key;
209
- }
210
- if ( vnodeData.name) {
211
- slotName = vnodeData.name;
212
- }
213
- {
214
- const classData = vnodeData.className || vnodeData.class;
215
- if (classData) {
216
- vnodeData.class =
217
- typeof classData !== 'object'
218
- ? classData
219
- : Object.keys(classData)
220
- .filter(k => classData[k])
221
- .join(' ');
222
- }
223
- }
224
- }
225
- if ( typeof nodeName === 'function') {
226
- // nodeName is a functional component
227
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
228
- }
229
- const vnode = newVNode(nodeName, null);
230
- vnode.$attrs$ = vnodeData;
231
- if (vNodeChildren.length > 0) {
232
- vnode.$children$ = vNodeChildren;
233
- }
234
- {
235
- vnode.$key$ = key;
236
- }
237
- {
238
- vnode.$name$ = slotName;
239
- }
240
- return vnode;
241
- };
242
- const newVNode = (tag, text) => {
243
- const vnode = {
244
- $flags$: 0,
245
- $tag$: tag,
246
- $text$: text,
247
- $elm$: null,
248
- $children$: null,
249
- };
250
- {
251
- vnode.$attrs$ = null;
252
- }
253
- {
254
- vnode.$key$ = null;
255
- }
256
- {
257
- vnode.$name$ = null;
258
- }
259
- return vnode;
260
- };
261
- const Host = {};
262
- const isHost = (node) => node && node.$tag$ === Host;
263
- const vdomFnUtils = {
264
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
265
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
266
- };
267
- const convertToPublic = (node) => ({
268
- vattrs: node.$attrs$,
269
- vchildren: node.$children$,
270
- vkey: node.$key$,
271
- vname: node.$name$,
272
- vtag: node.$tag$,
273
- vtext: node.$text$,
274
- });
275
- const convertToPrivate = (node) => {
276
- if (typeof node.vtag === 'function') {
277
- const vnodeData = Object.assign({}, node.vattrs);
278
- if (node.vkey) {
279
- vnodeData.key = node.vkey;
280
- }
281
- if (node.vname) {
282
- vnodeData.name = node.vname;
283
- }
284
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
285
- }
286
- const vnode = newVNode(node.vtag, node.vtext);
287
- vnode.$attrs$ = node.vattrs;
288
- vnode.$children$ = node.vchildren;
289
- vnode.$key$ = node.vkey;
290
- vnode.$name$ = node.vname;
291
- return vnode;
292
- };
293
- /**
294
- * Production setAccessor() function based on Preact by
295
- * Jason Miller (@developit)
296
- * Licensed under the MIT License
297
- * https://github.com/developit/preact/blob/master/LICENSE
298
- *
299
- * Modified for Stencil's compiler and vdom
300
- */
301
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
302
- if (oldValue !== newValue) {
303
- let isProp = isMemberInElement(elm, memberName);
304
- let ln = memberName.toLowerCase();
305
- if ( memberName === 'class') {
306
- const classList = elm.classList;
307
- const oldClasses = parseClassList(oldValue);
308
- const newClasses = parseClassList(newValue);
309
- classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
310
- classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
311
- }
312
- else if ( memberName === 'style') {
313
- // update style attribute, css properties and values
314
- {
315
- for (const prop in oldValue) {
316
- if (!newValue || newValue[prop] == null) {
317
- if ( prop.includes('-')) {
318
- elm.style.removeProperty(prop);
319
- }
320
- else {
321
- elm.style[prop] = '';
322
- }
323
- }
324
- }
325
- }
326
- for (const prop in newValue) {
327
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
328
- if ( prop.includes('-')) {
329
- elm.style.setProperty(prop, newValue[prop]);
330
- }
331
- else {
332
- elm.style[prop] = newValue[prop];
333
- }
334
- }
335
- }
336
- }
337
- else if ( memberName === 'key')
338
- ;
339
- else if ( memberName === 'ref') {
340
- // minifier will clean this up
341
- if (newValue) {
342
- newValue(elm);
343
- }
344
- }
345
- else if ( ( !isProp ) && memberName[0] === 'o' && memberName[1] === 'n') {
346
- // Event Handlers
347
- // so if the member name starts with "on" and the 3rd characters is
348
- // a capital letter, and it's not already a member on the element,
349
- // then we're assuming it's an event listener
350
- if (memberName[2] === '-') {
351
- // on- prefixed events
352
- // allows to be explicit about the dom event to listen without any magic
353
- // under the hood:
354
- // <my-cmp on-click> // listens for "click"
355
- // <my-cmp on-Click> // listens for "Click"
356
- // <my-cmp on-ionChange> // listens for "ionChange"
357
- // <my-cmp on-EVENTS> // listens for "EVENTS"
358
- memberName = memberName.slice(3);
359
- }
360
- else if (isMemberInElement(win, ln)) {
361
- // standard event
362
- // the JSX attribute could have been "onMouseOver" and the
363
- // member name "onmouseover" is on the window's prototype
364
- // so let's add the listener "mouseover", which is all lowercased
365
- memberName = ln.slice(2);
366
- }
367
- else {
368
- // custom event
369
- // the JSX attribute could have been "onMyCustomEvent"
370
- // so let's trim off the "on" prefix and lowercase the first character
371
- // and add the listener "myCustomEvent"
372
- // except for the first character, we keep the event name case
373
- memberName = ln[2] + memberName.slice(3);
374
- }
375
- if (oldValue) {
376
- plt.rel(elm, memberName, oldValue, false);
377
- }
378
- if (newValue) {
379
- plt.ael(elm, memberName, newValue, false);
380
- }
381
- }
382
- else {
383
- // Set property if it exists and it's not a SVG
384
- const isComplex = isComplexType(newValue);
385
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
386
- try {
387
- if (!elm.tagName.includes('-')) {
388
- let n = newValue == null ? '' : newValue;
389
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
390
- if (memberName === 'list') {
391
- isProp = false;
392
- // tslint:disable-next-line: triple-equals
393
- }
394
- else if (oldValue == null || elm[memberName] != n) {
395
- elm[memberName] = n;
396
- }
397
- }
398
- else {
399
- elm[memberName] = newValue;
400
- }
401
- }
402
- catch (e) { }
403
- }
404
- /**
405
- * Need to manually update attribute if:
406
- * - memberName is not an attribute
407
- * - if we are rendering the host element in order to reflect attribute
408
- * - if it's a SVG, since properties might not work in <svg>
409
- * - if the newValue is null/undefined or 'false'.
410
- */
411
- let xlink = false;
412
- {
413
- if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
414
- memberName = ln;
415
- xlink = true;
416
- }
417
- }
418
- if (newValue == null || newValue === false) {
419
- if (newValue !== false || elm.getAttribute(memberName) === '') {
420
- if ( xlink) {
421
- elm.removeAttributeNS(XLINK_NS, memberName);
422
- }
423
- else {
424
- elm.removeAttribute(memberName);
425
- }
426
- }
427
- }
428
- else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
429
- newValue = newValue === true ? '' : newValue;
430
- if ( xlink) {
431
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
432
- }
433
- else {
434
- elm.setAttribute(memberName, newValue);
435
- }
436
- }
437
- }
438
- }
439
- };
440
- const parseClassListRegex = /\s/;
441
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
442
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
443
- // if the element passed in is a shadow root, which is a document fragment
444
- // then we want to be adding attrs/props to the shadow root's "host" element
445
- // if it's not a shadow root, then we add attrs/props to the same element
446
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
447
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
448
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
449
- {
450
- // remove attributes no longer present on the vnode by setting them to undefined
451
- for (memberName in oldVnodeAttrs) {
452
- if (!(memberName in newVnodeAttrs)) {
453
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
454
- }
455
- }
456
- }
457
- // add new & update changed attributes
458
- for (memberName in newVnodeAttrs) {
459
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
460
- }
461
- };
462
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
463
- // tslint:disable-next-line: prefer-const
464
- let newVNode = newParentVNode.$children$[childIndex];
465
- let i = 0;
466
- let elm;
467
- let childNode;
468
- let oldVNode;
469
- if ( !useNativeShadowDom) {
470
- // remember for later we need to check to relocate nodes
471
- checkSlotRelocate = true;
472
- if (newVNode.$tag$ === 'slot') {
473
- if (scopeId) {
474
- // scoped css needs to add its scoped id to the parent element
475
- parentElm.classList.add(scopeId + '-s');
476
- }
477
- newVNode.$flags$ |= newVNode.$children$
478
- ? // slot element has fallback content
479
- 2 /* isSlotFallback */
480
- : // slot element does not have fallback content
481
- 1 /* isSlotReference */;
482
- }
483
- }
484
- if ( newVNode.$text$ !== null) {
485
- // create text node
486
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
487
- }
488
- else if ( newVNode.$flags$ & 1 /* isSlotReference */) {
489
- // create a slot reference node
490
- elm = newVNode.$elm$ = doc.createTextNode('');
491
- }
492
- else {
493
- if ( !isSvgMode) {
494
- isSvgMode = newVNode.$tag$ === 'svg';
495
- }
496
- // create element
497
- elm = newVNode.$elm$ = ( doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$)
498
- );
499
- if ( isSvgMode && newVNode.$tag$ === 'foreignObject') {
500
- isSvgMode = false;
501
- }
502
- // add css classes, attrs, props, listeners, etc.
503
- {
504
- updateElement(null, newVNode, isSvgMode);
505
- }
506
- if ( isDef(scopeId) && elm['s-si'] !== scopeId) {
507
- // if there is a scopeId and this is the initial render
508
- // then let's add the scopeId as a css class
509
- elm.classList.add((elm['s-si'] = scopeId));
510
- }
511
- if (newVNode.$children$) {
512
- for (i = 0; i < newVNode.$children$.length; ++i) {
513
- // create the node
514
- childNode = createElm(oldParentVNode, newVNode, i, elm);
515
- // return node could have been null
516
- if (childNode) {
517
- // append our new node
518
- elm.appendChild(childNode);
519
- }
520
- }
521
- }
522
- {
523
- if (newVNode.$tag$ === 'svg') {
524
- // Only reset the SVG context when we're exiting <svg> element
525
- isSvgMode = false;
526
- }
527
- else if (elm.tagName === 'foreignObject') {
528
- // Reenter SVG context when we're exiting <foreignObject> element
529
- isSvgMode = true;
530
- }
531
- }
532
- }
533
- {
534
- elm['s-hn'] = hostTagName;
535
- if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
536
- // remember the content reference comment
537
- elm['s-sr'] = true;
538
- // remember the content reference comment
539
- elm['s-cr'] = contentRef;
540
- // remember the slot name, or empty string for default slot
541
- elm['s-sn'] = newVNode.$name$ || '';
542
- // check if we've got an old vnode for this slot
543
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
544
- if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
545
- // we've got an old slot vnode and the wrapper is being replaced
546
- // so let's move the old slot content back to it's original location
547
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
548
- }
549
- }
550
- }
551
- return elm;
552
- };
553
- const putBackInOriginalLocation = (parentElm, recursive) => {
554
- plt.$flags$ |= 1 /* isTmpDisconnected */;
555
- const oldSlotChildNodes = parentElm.childNodes;
556
- for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
557
- const childNode = oldSlotChildNodes[i];
558
- if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
559
- // // this child node in the old element is from another component
560
- // // remove this node from the old slot's parent
561
- // childNode.remove();
562
- // and relocate it back to it's original location
563
- parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
564
- // remove the old original location comment entirely
565
- // later on the patch function will know what to do
566
- // and move this to the correct spot in need be
567
- childNode['s-ol'].remove();
568
- childNode['s-ol'] = undefined;
569
- checkSlotRelocate = true;
570
- }
571
- if (recursive) {
572
- putBackInOriginalLocation(childNode, recursive);
573
- }
574
- }
575
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
576
- };
577
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
578
- let containerElm = (( parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
579
- let childNode;
580
- if ( containerElm.shadowRoot && containerElm.tagName === hostTagName) {
581
- containerElm = containerElm.shadowRoot;
582
- }
583
- for (; startIdx <= endIdx; ++startIdx) {
584
- if (vnodes[startIdx]) {
585
- childNode = createElm(null, parentVNode, startIdx, parentElm);
586
- if (childNode) {
587
- vnodes[startIdx].$elm$ = childNode;
588
- containerElm.insertBefore(childNode, referenceNode(before) );
589
- }
590
- }
591
- }
592
- };
593
- const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
594
- for (; startIdx <= endIdx; ++startIdx) {
595
- if ((vnode = vnodes[startIdx])) {
596
- elm = vnode.$elm$;
597
- callNodeRefs(vnode);
598
- {
599
- // we're removing this element
600
- // so it's possible we need to show slot fallback content now
601
- checkSlotFallbackVisibility = true;
602
- if (elm['s-ol']) {
603
- // remove the original location comment
604
- elm['s-ol'].remove();
605
- }
606
- else {
607
- // it's possible that child nodes of the node
608
- // that's being removed are slot nodes
609
- putBackInOriginalLocation(elm, true);
610
- }
611
- }
612
- // remove the vnode's element from the dom
613
- elm.remove();
614
- }
615
- }
616
- };
617
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
618
- let oldStartIdx = 0;
619
- let newStartIdx = 0;
620
- let idxInOld = 0;
621
- let i = 0;
622
- let oldEndIdx = oldCh.length - 1;
623
- let oldStartVnode = oldCh[0];
624
- let oldEndVnode = oldCh[oldEndIdx];
625
- let newEndIdx = newCh.length - 1;
626
- let newStartVnode = newCh[0];
627
- let newEndVnode = newCh[newEndIdx];
628
- let node;
629
- let elmToMove;
630
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
631
- if (oldStartVnode == null) {
632
- // Vnode might have been moved left
633
- oldStartVnode = oldCh[++oldStartIdx];
634
- }
635
- else if (oldEndVnode == null) {
636
- oldEndVnode = oldCh[--oldEndIdx];
637
- }
638
- else if (newStartVnode == null) {
639
- newStartVnode = newCh[++newStartIdx];
640
- }
641
- else if (newEndVnode == null) {
642
- newEndVnode = newCh[--newEndIdx];
643
- }
644
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
645
- patch(oldStartVnode, newStartVnode);
646
- oldStartVnode = oldCh[++oldStartIdx];
647
- newStartVnode = newCh[++newStartIdx];
648
- }
649
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
650
- patch(oldEndVnode, newEndVnode);
651
- oldEndVnode = oldCh[--oldEndIdx];
652
- newEndVnode = newCh[--newEndIdx];
653
- }
654
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
655
- // Vnode moved right
656
- if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
657
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
658
- }
659
- patch(oldStartVnode, newEndVnode);
660
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
661
- oldStartVnode = oldCh[++oldStartIdx];
662
- newEndVnode = newCh[--newEndIdx];
663
- }
664
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
665
- // Vnode moved left
666
- if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
667
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
668
- }
669
- patch(oldEndVnode, newStartVnode);
670
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
671
- oldEndVnode = oldCh[--oldEndIdx];
672
- newStartVnode = newCh[++newStartIdx];
673
- }
674
- else {
675
- // createKeyToOldIdx
676
- idxInOld = -1;
677
- {
678
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
679
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
680
- idxInOld = i;
681
- break;
682
- }
683
- }
684
- }
685
- if ( idxInOld >= 0) {
686
- elmToMove = oldCh[idxInOld];
687
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
688
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
689
- }
690
- else {
691
- patch(elmToMove, newStartVnode);
692
- oldCh[idxInOld] = undefined;
693
- node = elmToMove.$elm$;
694
- }
695
- newStartVnode = newCh[++newStartIdx];
696
- }
697
- else {
698
- // new element
699
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
700
- newStartVnode = newCh[++newStartIdx];
701
- }
702
- if (node) {
703
- {
704
- parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
705
- }
706
- }
707
- }
708
- }
709
- if (oldStartIdx > oldEndIdx) {
710
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
711
- }
712
- else if ( newStartIdx > newEndIdx) {
713
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
714
- }
715
- };
716
- const isSameVnode = (vnode1, vnode2) => {
717
- // compare if two vnode to see if they're "technically" the same
718
- // need to have the same element tag, and same key to be the same
719
- if (vnode1.$tag$ === vnode2.$tag$) {
720
- if ( vnode1.$tag$ === 'slot') {
721
- return vnode1.$name$ === vnode2.$name$;
722
- }
723
- {
724
- return vnode1.$key$ === vnode2.$key$;
725
- }
726
- }
727
- return false;
728
- };
729
- const referenceNode = (node) => {
730
- // this node was relocated to a new location in the dom
731
- // because of some other component's slot
732
- // but we still have an html comment in place of where
733
- // it's original location was according to it's original vdom
734
- return (node && node['s-ol']) || node;
735
- };
736
- const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
737
- const patch = (oldVNode, newVNode) => {
738
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
739
- const oldChildren = oldVNode.$children$;
740
- const newChildren = newVNode.$children$;
741
- const tag = newVNode.$tag$;
742
- const text = newVNode.$text$;
743
- let defaultHolder;
744
- if ( text === null) {
745
- {
746
- // test if we're rendering an svg element, or still rendering nodes inside of one
747
- // only add this to the when the compiler sees we're using an svg somewhere
748
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
749
- }
750
- // element node
751
- {
752
- if ( tag === 'slot')
753
- ;
754
- else {
755
- // either this is the first render of an element OR it's an update
756
- // AND we already know it's possible it could have changed
757
- // this updates the element's css classes, attrs, props, listeners, etc.
758
- updateElement(oldVNode, newVNode, isSvgMode);
759
- }
760
- }
761
- if ( oldChildren !== null && newChildren !== null) {
762
- // looks like there's child vnodes for both the old and new vnodes
763
- updateChildren(elm, oldChildren, newVNode, newChildren);
764
- }
765
- else if (newChildren !== null) {
766
- // no old child vnodes, but there are new child vnodes to add
767
- if ( oldVNode.$text$ !== null) {
768
- // the old vnode was text, so be sure to clear it out
769
- elm.textContent = '';
770
- }
771
- // add the new vnode children
772
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
773
- }
774
- else if ( oldChildren !== null) {
775
- // no new child vnodes, but there are old child vnodes to remove
776
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
777
- }
778
- if ( isSvgMode && tag === 'svg') {
779
- isSvgMode = false;
780
- }
781
- }
782
- else if ( (defaultHolder = elm['s-cr'])) {
783
- // this element has slotted content
784
- defaultHolder.parentNode.textContent = text;
785
- }
786
- else if ( oldVNode.$text$ !== text) {
787
- // update the text content for the text only vnode
788
- // and also only if the text is different than before
789
- elm.data = text;
790
- }
791
- };
792
- const updateFallbackSlotVisibility = (elm) => {
793
- // tslint:disable-next-line: prefer-const
794
- let childNodes = elm.childNodes;
795
- let childNode;
796
- let i;
797
- let ilen;
798
- let j;
799
- let slotNameAttr;
800
- let nodeType;
801
- for (i = 0, ilen = childNodes.length; i < ilen; i++) {
802
- childNode = childNodes[i];
803
- if (childNode.nodeType === 1 /* ElementNode */) {
804
- if (childNode['s-sr']) {
805
- // this is a slot fallback node
806
- // get the slot name for this slot reference node
807
- slotNameAttr = childNode['s-sn'];
808
- // by default always show a fallback slot node
809
- // then hide it if there are other slots in the light dom
810
- childNode.hidden = false;
811
- for (j = 0; j < ilen; j++) {
812
- if (childNodes[j]['s-hn'] !== childNode['s-hn']) {
813
- // this sibling node is from a different component
814
- nodeType = childNodes[j].nodeType;
815
- if (slotNameAttr !== '') {
816
- // this is a named fallback slot node
817
- if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
818
- childNode.hidden = true;
819
- break;
820
- }
821
- }
822
- else {
823
- // this is a default fallback slot node
824
- // any element or text node (with content)
825
- // should hide the default fallback slot node
826
- if (nodeType === 1 /* ElementNode */ || (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
827
- childNode.hidden = true;
828
- break;
829
- }
830
- }
831
- }
832
- }
833
- }
834
- // keep drilling down
835
- updateFallbackSlotVisibility(childNode);
836
- }
837
- }
838
- };
839
- const relocateNodes = [];
840
- const relocateSlotContent = (elm) => {
841
- // tslint:disable-next-line: prefer-const
842
- let childNode;
843
- let node;
844
- let hostContentNodes;
845
- let slotNameAttr;
846
- let relocateNodeData;
847
- let j;
848
- let i = 0;
849
- let childNodes = elm.childNodes;
850
- let ilen = childNodes.length;
851
- for (; i < ilen; i++) {
852
- childNode = childNodes[i];
853
- if (childNode['s-sr'] && (node = childNode['s-cr'])) {
854
- // first got the content reference comment node
855
- // then we got it's parent, which is where all the host content is in now
856
- hostContentNodes = node.parentNode.childNodes;
857
- slotNameAttr = childNode['s-sn'];
858
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
859
- node = hostContentNodes[j];
860
- if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
861
- // let's do some relocating to its new home
862
- // but never relocate a content reference node
863
- // that is suppose to always represent the original content location
864
- if (isNodeLocatedInSlot(node, slotNameAttr)) {
865
- // it's possible we've already decided to relocate this node
866
- relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
867
- // made some changes to slots
868
- // let's make sure we also double check
869
- // fallbacks are correctly hidden or shown
870
- checkSlotFallbackVisibility = true;
871
- node['s-sn'] = node['s-sn'] || slotNameAttr;
872
- if (relocateNodeData) {
873
- // previously we never found a slot home for this node
874
- // but turns out we did, so let's remember it now
875
- relocateNodeData.$slotRefNode$ = childNode;
876
- }
877
- else {
878
- // add to our list of nodes to relocate
879
- relocateNodes.push({
880
- $slotRefNode$: childNode,
881
- $nodeToRelocate$: node,
882
- });
883
- }
884
- if (node['s-sr']) {
885
- relocateNodes.map(relocateNode => {
886
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
887
- relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
888
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
889
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
890
- }
891
- }
892
- });
893
- }
894
- }
895
- else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
896
- // so far this element does not have a slot home, not setting slotRefNode on purpose
897
- // if we never find a home for this element then we'll need to hide it
898
- relocateNodes.push({
899
- $nodeToRelocate$: node,
900
- });
901
- }
902
- }
903
- }
904
- }
905
- if (childNode.nodeType === 1 /* ElementNode */) {
906
- relocateSlotContent(childNode);
907
- }
908
- }
909
- };
910
- const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
911
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
912
- if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
913
- return true;
914
- }
915
- if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
916
- return true;
917
- }
918
- return false;
919
- }
920
- if (nodeToRelocate['s-sn'] === slotNameAttr) {
921
- return true;
922
- }
923
- return slotNameAttr === '';
924
- };
925
- const callNodeRefs = (vNode) => {
926
- {
927
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
928
- vNode.$children$ && vNode.$children$.map(callNodeRefs);
929
- }
930
- };
931
- const renderVdom = (hostRef, renderFnResults) => {
932
- const hostElm = hostRef.$hostElement$;
933
- const cmpMeta = hostRef.$cmpMeta$;
934
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
935
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
936
- hostTagName = hostElm.tagName;
937
- if ( cmpMeta.$attrsToReflect$) {
938
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
939
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
940
- }
941
- rootVnode.$tag$ = null;
942
- rootVnode.$flags$ |= 4 /* isHost */;
943
- hostRef.$vnode$ = rootVnode;
944
- rootVnode.$elm$ = oldVNode.$elm$ = ( hostElm.shadowRoot || hostElm );
945
- {
946
- scopeId = hostElm['s-sc'];
947
- }
948
- {
949
- contentRef = hostElm['s-cr'];
950
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
951
- // always reset
952
- checkSlotFallbackVisibility = false;
953
- }
954
- // synchronous patch
955
- patch(oldVNode, rootVnode);
956
- {
957
- // while we're moving nodes around existing nodes, temporarily disable
958
- // the disconnectCallback from working
959
- plt.$flags$ |= 1 /* isTmpDisconnected */;
960
- if (checkSlotRelocate) {
961
- relocateSlotContent(rootVnode.$elm$);
962
- let relocateData;
963
- let nodeToRelocate;
964
- let orgLocationNode;
965
- let parentNodeRef;
966
- let insertBeforeNode;
967
- let refNode;
968
- let i = 0;
969
- for (; i < relocateNodes.length; i++) {
970
- relocateData = relocateNodes[i];
971
- nodeToRelocate = relocateData.$nodeToRelocate$;
972
- if (!nodeToRelocate['s-ol']) {
973
- // add a reference node marking this node's original location
974
- // keep a reference to this node for later lookups
975
- orgLocationNode = doc.createTextNode('');
976
- orgLocationNode['s-nr'] = nodeToRelocate;
977
- nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
978
- }
979
- }
980
- for (i = 0; i < relocateNodes.length; i++) {
981
- relocateData = relocateNodes[i];
982
- nodeToRelocate = relocateData.$nodeToRelocate$;
983
- if (relocateData.$slotRefNode$) {
984
- // by default we're just going to insert it directly
985
- // after the slot reference node
986
- parentNodeRef = relocateData.$slotRefNode$.parentNode;
987
- insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
988
- orgLocationNode = nodeToRelocate['s-ol'];
989
- while ((orgLocationNode = orgLocationNode.previousSibling)) {
990
- refNode = orgLocationNode['s-nr'];
991
- if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
992
- refNode = refNode.nextSibling;
993
- if (!refNode || !refNode['s-nr']) {
994
- insertBeforeNode = refNode;
995
- break;
996
- }
997
- }
998
- }
999
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) || nodeToRelocate.nextSibling !== insertBeforeNode) {
1000
- // we've checked that it's worth while to relocate
1001
- // since that the node to relocate
1002
- // has a different next sibling or parent relocated
1003
- if (nodeToRelocate !== insertBeforeNode) {
1004
- if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1005
- // probably a component in the index.html that doesn't have it's hostname set
1006
- nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1007
- }
1008
- // add it back to the dom but in its new home
1009
- parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1010
- }
1011
- }
1012
- }
1013
- else {
1014
- // this node doesn't have a slot home to go to, so let's hide it
1015
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1016
- nodeToRelocate.hidden = true;
1017
- }
1018
- }
1019
- }
1020
- }
1021
- if (checkSlotFallbackVisibility) {
1022
- updateFallbackSlotVisibility(rootVnode.$elm$);
1023
- }
1024
- // done moving nodes around
1025
- // allow the disconnect callback to work again
1026
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1027
- // always reset
1028
- relocateNodes.length = 0;
1029
- }
1030
- };
1031
- const getElement = (ref) => ( getHostRef(ref).$hostElement$ );
1032
- const createEvent = (ref, name, flags) => {
1033
- const elm = getElement(ref);
1034
- return {
1035
- emit: (detail) => {
1036
- return emitEvent(elm, name, {
1037
- bubbles: !!(flags & 4 /* Bubbles */),
1038
- composed: !!(flags & 2 /* Composed */),
1039
- cancelable: !!(flags & 1 /* Cancellable */),
1040
- detail,
1041
- });
1042
- },
1043
- };
1044
- };
1045
- const emitEvent = (elm, name, opts) => {
1046
- const ev = plt.ce(name, opts);
1047
- elm.dispatchEvent(ev);
1048
- return ev;
1049
- };
1050
- const attachToAncestor = (hostRef, ancestorComponent) => {
1051
- if ( ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1052
- ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
1053
- }
1054
- };
1055
- const scheduleUpdate = (hostRef, isInitialLoad) => {
1056
- {
1057
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1058
- }
1059
- if ( hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1060
- hostRef.$flags$ |= 512 /* needsRerender */;
1061
- return;
1062
- }
1063
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1064
- // there is no ancestor component or the ancestor component
1065
- // has already fired off its lifecycle update then
1066
- // fire off the initial update
1067
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1068
- return writeTask(dispatch) ;
1069
- };
1070
- const dispatchHooks = (hostRef, isInitialLoad) => {
1071
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1072
- const instance = hostRef.$lazyInstance$ ;
1073
- let promise;
1074
- if (isInitialLoad) {
1075
- {
1076
- hostRef.$flags$ |= 256 /* isListenReady */;
1077
- if (hostRef.$queuedListeners$) {
1078
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1079
- hostRef.$queuedListeners$ = null;
1080
- }
1081
- }
1082
- {
1083
- promise = safeCall(instance, 'componentWillLoad');
1084
- }
1085
- }
1086
- endSchedule();
1087
- return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1088
- };
1089
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1090
- // updateComponent
1091
- const elm = hostRef.$hostElement$;
1092
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1093
- const rc = elm['s-rc'];
1094
- if ( isInitialLoad) {
1095
- // DOM WRITE!
1096
- attachStyles(hostRef);
1097
- }
1098
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1099
- {
1100
- {
1101
- // looks like we've got child nodes to render into this host element
1102
- // or we need to update the css class/attrs on the host element
1103
- // DOM WRITE!
1104
- {
1105
- renderVdom(hostRef, callRender(hostRef, instance));
1106
- }
1107
- }
1108
- }
1109
- if ( rc) {
1110
- // ok, so turns out there are some child host elements
1111
- // waiting on this parent element to load
1112
- // let's fire off all update callbacks waiting
1113
- rc.map(cb => cb());
1114
- elm['s-rc'] = undefined;
1115
- }
1116
- endRender();
1117
- endUpdate();
1118
- {
1119
- const childrenPromises = elm['s-p'];
1120
- const postUpdate = () => postUpdateComponent(hostRef);
1121
- if (childrenPromises.length === 0) {
1122
- postUpdate();
1123
- }
1124
- else {
1125
- Promise.all(childrenPromises).then(postUpdate);
1126
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1127
- childrenPromises.length = 0;
1128
- }
1129
- }
1130
- };
1131
- const callRender = (hostRef, instance) => {
1132
- try {
1133
- renderingRef = instance;
1134
- instance = instance.render && instance.render();
1135
- {
1136
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1137
- }
1138
- {
1139
- hostRef.$flags$ |= 2 /* hasRendered */;
1140
- }
1141
- }
1142
- catch (e) {
1143
- consoleError(e, hostRef.$hostElement$);
1144
- }
1145
- renderingRef = null;
1146
- return instance;
1147
- };
1148
- const getRenderingRef = () => renderingRef;
1149
- const postUpdateComponent = (hostRef) => {
1150
- const tagName = hostRef.$cmpMeta$.$tagName$;
1151
- const elm = hostRef.$hostElement$;
1152
- const endPostUpdate = createTime('postUpdate', tagName);
1153
- const instance = hostRef.$lazyInstance$ ;
1154
- const ancestorComponent = hostRef.$ancestorComponent$;
1155
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1156
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1157
- {
1158
- // DOM WRITE!
1159
- addHydratedFlag(elm);
1160
- }
1161
- {
1162
- safeCall(instance, 'componentDidLoad');
1163
- }
1164
- endPostUpdate();
1165
- {
1166
- hostRef.$onReadyResolve$(elm);
1167
- if (!ancestorComponent) {
1168
- appDidLoad();
1169
- }
1170
- }
1171
- }
1172
- else {
1173
- {
1174
- safeCall(instance, 'componentDidUpdate');
1175
- }
1176
- endPostUpdate();
1177
- }
1178
- // load events fire from bottom to top
1179
- // the deepest elements load first then bubbles up
1180
- {
1181
- if (hostRef.$onRenderResolve$) {
1182
- hostRef.$onRenderResolve$();
1183
- hostRef.$onRenderResolve$ = undefined;
1184
- }
1185
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1186
- nextTick(() => scheduleUpdate(hostRef, false));
1187
- }
1188
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1189
- }
1190
- // ( •_•)
1191
- // ( •_•)>⌐■-■
1192
- // (⌐■_■)
1193
- };
1194
- const forceUpdate = (ref) => {
1195
- {
1196
- const hostRef = getHostRef(ref);
1197
- const isConnected = hostRef.$hostElement$.isConnected;
1198
- if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1199
- scheduleUpdate(hostRef, false);
1200
- }
1201
- // Returns "true" when the forced update was successfully scheduled
1202
- return isConnected;
1203
- }
1204
- };
1205
- const appDidLoad = (who) => {
1206
- // on appload
1207
- // we have finish the first big initial render
1208
- {
1209
- addHydratedFlag(doc.documentElement);
1210
- }
1211
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1212
- };
1213
- const safeCall = (instance, method, arg) => {
1214
- if (instance && instance[method]) {
1215
- try {
1216
- return instance[method](arg);
1217
- }
1218
- catch (e) {
1219
- consoleError(e);
1220
- }
1221
- }
1222
- return undefined;
1223
- };
1224
- const then = (promise, thenFn) => {
1225
- return promise && promise.then ? promise.then(thenFn) : thenFn();
1226
- };
1227
- const addHydratedFlag = (elm) => ( elm.classList.add('hydrated') );
1228
- const parsePropertyValue = (propValue, propType) => {
1229
- // ensure this value is of the correct prop type
1230
- if (propValue != null && !isComplexType(propValue)) {
1231
- if ( propType & 4 /* Boolean */) {
1232
- // per the HTML spec, any string value means it is a boolean true value
1233
- // but we'll cheat here and say that the string "false" is the boolean false
1234
- return propValue === 'false' ? false : propValue === '' || !!propValue;
1235
- }
1236
- if ( propType & 2 /* Number */) {
1237
- // force it to be a number
1238
- return parseFloat(propValue);
1239
- }
1240
- if ( propType & 1 /* String */) {
1241
- // could have been passed as a number or boolean
1242
- // but we still want it as a string
1243
- return String(propValue);
1244
- }
1245
- // redundant return here for better minification
1246
- return propValue;
1247
- }
1248
- // not sure exactly what type we want
1249
- // so no need to change to a different type
1250
- return propValue;
1251
- };
1252
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1253
- const setValue = (ref, propName, newVal, cmpMeta) => {
1254
- // check our new property value against our internal value
1255
- const hostRef = getHostRef(ref);
1256
- const elm = hostRef.$hostElement$ ;
1257
- const oldVal = hostRef.$instanceValues$.get(propName);
1258
- const flags = hostRef.$flags$;
1259
- const instance = hostRef.$lazyInstance$ ;
1260
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1261
- if (( !(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
1262
- // gadzooks! the property's value has changed!!
1263
- // set our new value!
1264
- hostRef.$instanceValues$.set(propName, newVal);
1265
- if ( instance) {
1266
- // get an array of method names of watch functions to call
1267
- if ( cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1268
- const watchMethods = cmpMeta.$watchers$[propName];
1269
- if (watchMethods) {
1270
- // this instance is watching for when this property changed
1271
- watchMethods.map(watchMethodName => {
1272
- try {
1273
- // fire off each of the watch methods that are watching this property
1274
- instance[watchMethodName](newVal, oldVal, propName);
1275
- }
1276
- catch (e) {
1277
- consoleError(e, elm);
1278
- }
1279
- });
1280
- }
1281
- }
1282
- if ( (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1283
- // looks like this value actually changed, so we've got work to do!
1284
- // but only if we've already rendered, otherwise just chill out
1285
- // queue that we need to do an update, but don't worry about queuing
1286
- // up millions cuz this function ensures it only runs once
1287
- scheduleUpdate(hostRef, false);
1288
- }
1289
- }
1290
- }
1291
- };
1292
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1293
- if ( cmpMeta.$members$) {
1294
- if ( Cstr.watchers) {
1295
- cmpMeta.$watchers$ = Cstr.watchers;
1296
- }
1297
- // It's better to have a const than two Object.entries()
1298
- const members = Object.entries(cmpMeta.$members$);
1299
- const prototype = Cstr.prototype;
1300
- members.map(([memberName, [memberFlags]]) => {
1301
- if ( (memberFlags & 31 /* Prop */ || (( flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1302
- // proxyComponent - prop
1303
- Object.defineProperty(prototype, memberName, {
1304
- get() {
1305
- // proxyComponent, get value
1306
- return getValue(this, memberName);
1307
- },
1308
- set(newValue) {
1309
- // proxyComponent, set value
1310
- setValue(this, memberName, newValue, cmpMeta);
1311
- },
1312
- configurable: true,
1313
- enumerable: true,
1314
- });
1315
- }
1316
- });
1317
- if ( ( flags & 1 /* isElementConstructor */)) {
1318
- const attrNameToPropName = new Map();
1319
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1320
- plt.jmp(() => {
1321
- const propName = attrNameToPropName.get(attrName);
1322
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1323
- });
1324
- };
1325
- // create an array of attributes to observe
1326
- // and also create a map of html attribute name to js property name
1327
- Cstr.observedAttributes = members
1328
- .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1329
- .map(([propName, m]) => {
1330
- const attrName = m[1] || propName;
1331
- attrNameToPropName.set(attrName, propName);
1332
- if ( m[0] & 512 /* ReflectAttr */) {
1333
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1334
- }
1335
- return attrName;
1336
- });
1337
- }
1338
- }
1339
- return Cstr;
1340
- };
1341
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1342
- // initializeComponent
1343
- if ( (hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1344
- {
1345
- // we haven't initialized this element yet
1346
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1347
- // lazy loaded components
1348
- // request the component's implementation to be
1349
- // wired up with the host element
1350
- Cstr = loadModule(cmpMeta);
1351
- if (Cstr.then) {
1352
- // Await creates a micro-task avoid if possible
1353
- const endLoad = uniqueTime();
1354
- Cstr = await Cstr;
1355
- endLoad();
1356
- }
1357
- if ( !Cstr.isProxied) {
1358
- // we'eve never proxied this Constructor before
1359
- // let's add the getters/setters to its prototype before
1360
- // the first time we create an instance of the implementation
1361
- {
1362
- cmpMeta.$watchers$ = Cstr.watchers;
1363
- }
1364
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1365
- Cstr.isProxied = true;
1366
- }
1367
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1368
- // ok, time to construct the instance
1369
- // but let's keep track of when we start and stop
1370
- // so that the getters/setters don't incorrectly step on data
1371
- {
1372
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1373
- }
1374
- // construct the lazy-loaded component implementation
1375
- // passing the hostRef is very important during
1376
- // construction in order to directly wire together the
1377
- // host element and the lazy-loaded instance
1378
- try {
1379
- new Cstr(hostRef);
1380
- }
1381
- catch (e) {
1382
- consoleError(e);
1383
- }
1384
- {
1385
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1386
- }
1387
- {
1388
- hostRef.$flags$ |= 128 /* isWatchReady */;
1389
- }
1390
- endNewInstance();
1391
- fireConnectedCallback(hostRef.$lazyInstance$);
1392
- }
1393
- if ( Cstr.style) {
1394
- // this component has styles but we haven't registered them yet
1395
- let style = Cstr.style;
1396
- const scopeId = getScopeId(cmpMeta);
1397
- if (!styles.has(scopeId)) {
1398
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1399
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1400
- endRegisterStyles();
1401
- }
1402
- }
1403
- }
1404
- // we've successfully created a lazy instance
1405
- const ancestorComponent = hostRef.$ancestorComponent$;
1406
- const schedule = () => scheduleUpdate(hostRef, true);
1407
- if ( ancestorComponent && ancestorComponent['s-rc']) {
1408
- // this is the intial load and this component it has an ancestor component
1409
- // but the ancestor component has NOT fired its will update lifecycle yet
1410
- // so let's just cool our jets and wait for the ancestor to continue first
1411
- // this will get fired off when the ancestor component
1412
- // finally gets around to rendering its lazy self
1413
- // fire off the initial update
1414
- ancestorComponent['s-rc'].push(schedule);
1415
- }
1416
- else {
1417
- schedule();
1418
- }
1419
- };
1420
- const fireConnectedCallback = (instance) => {
1421
- {
1422
- safeCall(instance, 'connectedCallback');
1423
- }
1424
- };
1425
- const connectedCallback = (elm) => {
1426
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1427
- const hostRef = getHostRef(elm);
1428
- const cmpMeta = hostRef.$cmpMeta$;
1429
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1430
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1431
- // first time this component has connected
1432
- hostRef.$flags$ |= 1 /* hasConnected */;
1433
- {
1434
- // initUpdate
1435
- // if the slot polyfill is required we'll need to put some nodes
1436
- // in here to act as original content anchors as we move nodes around
1437
- // host element has been connected to the DOM
1438
- if ( ( cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1439
- setContentReference(elm);
1440
- }
1441
- }
1442
- {
1443
- // find the first ancestor component (if there is one) and register
1444
- // this component as one of the actively loading child components for its ancestor
1445
- let ancestorComponent = elm;
1446
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1447
- // climb up the ancestors looking for the first
1448
- // component that hasn't finished its lifecycle update yet
1449
- if (
1450
- ancestorComponent['s-p']) {
1451
- // we found this components first ancestor component
1452
- // keep a reference to this component's ancestor component
1453
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1454
- break;
1455
- }
1456
- }
1457
- }
1458
- // Lazy properties
1459
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1460
- if ( cmpMeta.$members$) {
1461
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1462
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1463
- const value = elm[memberName];
1464
- delete elm[memberName];
1465
- elm[memberName] = value;
1466
- }
1467
- });
1468
- }
1469
- {
1470
- initializeComponent(elm, hostRef, cmpMeta);
1471
- }
1472
- }
1473
- else {
1474
- // not the first time this has connected
1475
- // reattach any event listeners to the host
1476
- // since they would have been removed when disconnected
1477
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1478
- // fire off connectedCallback() on component instance
1479
- fireConnectedCallback(hostRef.$lazyInstance$);
1480
- }
1481
- endConnected();
1482
- }
1483
- };
1484
- const setContentReference = (elm) => {
1485
- // only required when we're NOT using native shadow dom (slot)
1486
- // or this browser doesn't support native shadow dom
1487
- // and this host element was NOT created with SSR
1488
- // let's pick out the inner content for slot projection
1489
- // create a node to represent where the original
1490
- // content was first placed, which is useful later on
1491
- const contentRefElm = (elm['s-cr'] = doc.createComment( ''));
1492
- contentRefElm['s-cn'] = true;
1493
- elm.insertBefore(contentRefElm, elm.firstChild);
1494
- };
1495
- const disconnectedCallback = (elm) => {
1496
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1497
- const hostRef = getHostRef(elm);
1498
- const instance = hostRef.$lazyInstance$ ;
1499
- {
1500
- if (hostRef.$rmListeners$) {
1501
- hostRef.$rmListeners$.map(rmListener => rmListener());
1502
- hostRef.$rmListeners$ = undefined;
1503
- }
1504
- }
1505
- {
1506
- safeCall(instance, 'disconnectedCallback');
1507
- }
1508
- {
1509
- safeCall(instance, 'componentDidUnload');
1510
- }
1511
- }
1512
- };
1513
- const bootstrapLazy = (lazyBundles, options = {}) => {
1514
- const endBootstrap = createTime();
1515
- const cmpTags = [];
1516
- const exclude = options.exclude || [];
1517
- const customElements = win.customElements;
1518
- const head = doc.head;
1519
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1520
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1521
- const deferredConnectedCallbacks = [];
1522
- let appLoadFallback;
1523
- let isBootstrapping = true;
1524
- Object.assign(plt, options);
1525
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1526
- lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
1527
- const cmpMeta = {
1528
- $flags$: compactMeta[0],
1529
- $tagName$: compactMeta[1],
1530
- $members$: compactMeta[2],
1531
- $listeners$: compactMeta[3],
1532
- };
1533
- {
1534
- cmpMeta.$members$ = compactMeta[2];
1535
- }
1536
- {
1537
- cmpMeta.$listeners$ = compactMeta[3];
1538
- }
1539
- {
1540
- cmpMeta.$attrsToReflect$ = [];
1541
- }
1542
- {
1543
- cmpMeta.$watchers$ = {};
1544
- }
1545
- const tagName = cmpMeta.$tagName$;
1546
- const HostElement = class extends HTMLElement {
1547
- // StencilLazyHost
1548
- constructor(self) {
1549
- // @ts-ignore
1550
- super(self);
1551
- self = this;
1552
- registerHost(self, cmpMeta);
1553
- if ( cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1554
- // this component is using shadow dom
1555
- // and this browser supports shadow dom
1556
- // add the read-only property "shadowRoot" to the host element
1557
- // adding the shadow root build conditionals to minimize runtime
1558
- {
1559
- {
1560
- self.attachShadow({ mode: 'open' });
1561
- }
1562
- }
1563
- }
1564
- }
1565
- connectedCallback() {
1566
- if (appLoadFallback) {
1567
- clearTimeout(appLoadFallback);
1568
- appLoadFallback = null;
1569
- }
1570
- if (isBootstrapping) {
1571
- // connectedCallback will be processed once all components have been registered
1572
- deferredConnectedCallbacks.push(this);
1573
- }
1574
- else {
1575
- plt.jmp(() => connectedCallback(this));
1576
- }
1577
- }
1578
- disconnectedCallback() {
1579
- plt.jmp(() => disconnectedCallback(this));
1580
- }
1581
- componentOnReady() {
1582
- return getHostRef(this).$onReadyPromise$;
1583
- }
1584
- };
1585
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1586
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1587
- cmpTags.push(tagName);
1588
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1589
- }
1590
- }));
1591
- {
1592
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1593
- visibilityStyle.setAttribute('data-styles', '');
1594
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1595
- }
1596
- // Process deferred connectedCallbacks now all components have been registered
1597
- isBootstrapping = false;
1598
- if (deferredConnectedCallbacks.length) {
1599
- deferredConnectedCallbacks.map(host => host.connectedCallback());
1600
- }
1601
- else {
1602
- {
1603
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1604
- }
1605
- }
1606
- // Fallback appLoad event
1607
- endBootstrap();
1608
- };
1609
- const getAssetPath = (path) => {
1610
- const assetUrl = new URL(path, plt.$resourcesUrl$);
1611
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1612
- };
1613
- const getContext = (_elm, context) => {
1614
- if (context in Context) {
1615
- return Context[context];
1616
- }
1617
- else if (context === 'window') {
1618
- return win;
1619
- }
1620
- else if (context === 'document') {
1621
- return doc;
1622
- }
1623
- else if (context === 'isServer' || context === 'isPrerender') {
1624
- return false;
1625
- }
1626
- else if (context === 'isClient') {
1627
- return true;
1628
- }
1629
- else if (context === 'resourcesUrl' || context === 'publicPath') {
1630
- return getAssetPath('.');
1631
- }
1632
- else if (context === 'queue') {
1633
- return {
1634
- write: writeTask,
1635
- read: readTask,
1636
- tick: {
1637
- then(cb) {
1638
- return nextTick(cb);
1639
- },
1640
- },
1641
- };
1642
- }
1643
- return undefined;
1644
- };
1645
- const hostRefs = new WeakMap();
1646
- const getHostRef = (ref) => hostRefs.get(ref);
1647
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1648
- const registerHost = (elm, cmpMeta) => {
1649
- const hostRef = {
1650
- $flags$: 0,
1651
- $hostElement$: elm,
1652
- $cmpMeta$: cmpMeta,
1653
- $instanceValues$: new Map(),
1654
- };
1655
- {
1656
- hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
1657
- elm['s-p'] = [];
1658
- elm['s-rc'] = [];
1659
- }
1660
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1661
- return hostRefs.set(elm, hostRef);
1662
- };
1663
- const isMemberInElement = (elm, memberName) => memberName in elm;
1664
- const consoleError = (e, el) => (customError || console.error)(e, el);
1665
- const setErrorHandler = (handler) => customError = handler;
1666
- const cmpModules = /*@__PURE__*/ new Map();
1667
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1668
- // loadModuleImport
1669
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1670
- const bundleId = cmpMeta.$lazyBundleId$;
1671
- const module = cmpModules.get(bundleId) ;
1672
- if (module) {
1673
- return module[exportName];
1674
- }
1675
- return import(
1676
- /* webpackInclude: /\.entry\.js$/ */
1677
- /* webpackExclude: /\.system\.entry\.js$/ */
1678
- /* webpackMode: "lazy" */
1679
- `./${bundleId}.entry.js${ ''}`).then(importedModule => {
1680
- {
1681
- cmpModules.set(bundleId, importedModule);
1682
- }
1683
- return importedModule[exportName];
1684
- }, consoleError);
1685
- };
1686
- const styles = new Map();
1687
- const queueDomReads = [];
1688
- const queueDomWrites = [];
1689
- const queueTask = (queue, write) => (cb) => {
1690
- queue.push(cb);
1691
- if (!queuePending) {
1692
- queuePending = true;
1693
- if (write && plt.$flags$ & 4 /* queueSync */) {
1694
- nextTick(flush);
1695
- }
1696
- else {
1697
- plt.raf(flush);
1698
- }
1699
- }
1700
- };
1701
- const consume = (queue) => {
1702
- for (let i = 0; i < queue.length; i++) {
1703
- try {
1704
- queue[i](performance.now());
1705
- }
1706
- catch (e) {
1707
- consoleError(e);
1708
- }
1709
- }
1710
- queue.length = 0;
1711
- };
1712
- const flush = () => {
1713
- // always force a bunch of medium callbacks to run, but still have
1714
- // a throttle on how many can run in a certain time
1715
- // DOM READS!!!
1716
- consume(queueDomReads);
1717
- // DOM WRITES!!!
1718
- {
1719
- consume(queueDomWrites);
1720
- if ((queuePending = queueDomReads.length > 0)) {
1721
- // still more to do yet, but we've run out of time
1722
- // let's let this thing cool off and try again in the next tick
1723
- plt.raf(flush);
1724
- }
1725
- }
1726
- };
1727
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1728
- const readTask = /*@__PURE__*/ queueTask(queueDomReads, false);
1729
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1730
-
1731
- export { Host as H, getAssetPath as a, bootstrapLazy as b, createEvent as c, getElement as d, getContext as e, forceUpdate as f, getRenderingRef as g, h, promiseResolve as p, registerInstance as r, setErrorHandler as s };