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