@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,1764 +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
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1178
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1179
- {
1180
- // DOM WRITE!
1181
- addHydratedFlag(elm);
1182
- }
1183
- {
1184
- safeCall(instance, 'componentDidLoad');
1185
- }
1186
- endPostUpdate();
1187
- {
1188
- hostRef.$onReadyResolve$(elm);
1189
- if (!ancestorComponent) {
1190
- appDidLoad();
1191
- }
1192
- }
1193
- }
1194
- else {
1195
- {
1196
- safeCall(instance, 'componentDidUpdate');
1197
- }
1198
- endPostUpdate();
1199
- }
1200
- // load events fire from bottom to top
1201
- // the deepest elements load first then bubbles up
1202
- {
1203
- if (hostRef.$onRenderResolve$) {
1204
- hostRef.$onRenderResolve$();
1205
- hostRef.$onRenderResolve$ = undefined;
1206
- }
1207
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1208
- nextTick(() => scheduleUpdate(hostRef, false));
1209
- }
1210
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1211
- }
1212
- // ( •_•)
1213
- // ( •_•)>⌐■-■
1214
- // (⌐■_■)
1215
- };
1216
- const forceUpdate = (ref) => {
1217
- {
1218
- const hostRef = getHostRef(ref);
1219
- const isConnected = hostRef.$hostElement$.isConnected;
1220
- if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1221
- scheduleUpdate(hostRef, false);
1222
- }
1223
- // Returns "true" when the forced update was successfully scheduled
1224
- return isConnected;
1225
- }
1226
- };
1227
- const appDidLoad = (who) => {
1228
- // on appload
1229
- // we have finish the first big initial render
1230
- {
1231
- addHydratedFlag(doc.documentElement);
1232
- }
1233
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1234
- };
1235
- const safeCall = (instance, method, arg) => {
1236
- if (instance && instance[method]) {
1237
- try {
1238
- return instance[method](arg);
1239
- }
1240
- catch (e) {
1241
- consoleError(e);
1242
- }
1243
- }
1244
- return undefined;
1245
- };
1246
- const then = (promise, thenFn) => {
1247
- return promise && promise.then ? promise.then(thenFn) : thenFn();
1248
- };
1249
- const addHydratedFlag = (elm) => ( elm.classList.add('hydrated') );
1250
- const parsePropertyValue = (propValue, propType) => {
1251
- // ensure this value is of the correct prop type
1252
- if (propValue != null && !isComplexType(propValue)) {
1253
- if ( propType & 4 /* Boolean */) {
1254
- // per the HTML spec, any string value means it is a boolean true value
1255
- // but we'll cheat here and say that the string "false" is the boolean false
1256
- return propValue === 'false' ? false : propValue === '' || !!propValue;
1257
- }
1258
- if ( propType & 2 /* Number */) {
1259
- // force it to be a number
1260
- return parseFloat(propValue);
1261
- }
1262
- if ( propType & 1 /* String */) {
1263
- // could have been passed as a number or boolean
1264
- // but we still want it as a string
1265
- return String(propValue);
1266
- }
1267
- // redundant return here for better minification
1268
- return propValue;
1269
- }
1270
- // not sure exactly what type we want
1271
- // so no need to change to a different type
1272
- return propValue;
1273
- };
1274
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1275
- const setValue = (ref, propName, newVal, cmpMeta) => {
1276
- // check our new property value against our internal value
1277
- const hostRef = getHostRef(ref);
1278
- const elm = hostRef.$hostElement$ ;
1279
- const oldVal = hostRef.$instanceValues$.get(propName);
1280
- const flags = hostRef.$flags$;
1281
- const instance = hostRef.$lazyInstance$ ;
1282
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1283
- if (( !(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
1284
- // gadzooks! the property's value has changed!!
1285
- // set our new value!
1286
- hostRef.$instanceValues$.set(propName, newVal);
1287
- if ( instance) {
1288
- // get an array of method names of watch functions to call
1289
- if ( cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1290
- const watchMethods = cmpMeta.$watchers$[propName];
1291
- if (watchMethods) {
1292
- // this instance is watching for when this property changed
1293
- watchMethods.map(watchMethodName => {
1294
- try {
1295
- // fire off each of the watch methods that are watching this property
1296
- instance[watchMethodName](newVal, oldVal, propName);
1297
- }
1298
- catch (e) {
1299
- consoleError(e, elm);
1300
- }
1301
- });
1302
- }
1303
- }
1304
- if ( (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1305
- // looks like this value actually changed, so we've got work to do!
1306
- // but only if we've already rendered, otherwise just chill out
1307
- // queue that we need to do an update, but don't worry about queuing
1308
- // up millions cuz this function ensures it only runs once
1309
- scheduleUpdate(hostRef, false);
1310
- }
1311
- }
1312
- }
1313
- };
1314
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1315
- if ( cmpMeta.$members$) {
1316
- if ( Cstr.watchers) {
1317
- cmpMeta.$watchers$ = Cstr.watchers;
1318
- }
1319
- // It's better to have a const than two Object.entries()
1320
- const members = Object.entries(cmpMeta.$members$);
1321
- const prototype = Cstr.prototype;
1322
- members.map(([memberName, [memberFlags]]) => {
1323
- if ( (memberFlags & 31 /* Prop */ || (( flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1324
- // proxyComponent - prop
1325
- Object.defineProperty(prototype, memberName, {
1326
- get() {
1327
- // proxyComponent, get value
1328
- return getValue(this, memberName);
1329
- },
1330
- set(newValue) {
1331
- // proxyComponent, set value
1332
- setValue(this, memberName, newValue, cmpMeta);
1333
- },
1334
- configurable: true,
1335
- enumerable: true,
1336
- });
1337
- }
1338
- });
1339
- if ( ( flags & 1 /* isElementConstructor */)) {
1340
- const attrNameToPropName = new Map();
1341
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1342
- plt.jmp(() => {
1343
- const propName = attrNameToPropName.get(attrName);
1344
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1345
- });
1346
- };
1347
- // create an array of attributes to observe
1348
- // and also create a map of html attribute name to js property name
1349
- Cstr.observedAttributes = members
1350
- .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1351
- .map(([propName, m]) => {
1352
- const attrName = m[1] || propName;
1353
- attrNameToPropName.set(attrName, propName);
1354
- if ( m[0] & 512 /* ReflectAttr */) {
1355
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1356
- }
1357
- return attrName;
1358
- });
1359
- }
1360
- }
1361
- return Cstr;
1362
- };
1363
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1364
- // initializeComponent
1365
- if ( (hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1366
- {
1367
- // we haven't initialized this element yet
1368
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1369
- // lazy loaded components
1370
- // request the component's implementation to be
1371
- // wired up with the host element
1372
- Cstr = loadModule(cmpMeta);
1373
- if (Cstr.then) {
1374
- // Await creates a micro-task avoid if possible
1375
- const endLoad = uniqueTime();
1376
- Cstr = await Cstr;
1377
- endLoad();
1378
- }
1379
- if ( !Cstr.isProxied) {
1380
- // we'eve never proxied this Constructor before
1381
- // let's add the getters/setters to its prototype before
1382
- // the first time we create an instance of the implementation
1383
- {
1384
- cmpMeta.$watchers$ = Cstr.watchers;
1385
- }
1386
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1387
- Cstr.isProxied = true;
1388
- }
1389
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1390
- // ok, time to construct the instance
1391
- // but let's keep track of when we start and stop
1392
- // so that the getters/setters don't incorrectly step on data
1393
- {
1394
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1395
- }
1396
- // construct the lazy-loaded component implementation
1397
- // passing the hostRef is very important during
1398
- // construction in order to directly wire together the
1399
- // host element and the lazy-loaded instance
1400
- try {
1401
- new Cstr(hostRef);
1402
- }
1403
- catch (e) {
1404
- consoleError(e);
1405
- }
1406
- {
1407
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1408
- }
1409
- {
1410
- hostRef.$flags$ |= 128 /* isWatchReady */;
1411
- }
1412
- endNewInstance();
1413
- fireConnectedCallback(hostRef.$lazyInstance$);
1414
- }
1415
- if ( Cstr.style) {
1416
- // this component has styles but we haven't registered them yet
1417
- let style = Cstr.style;
1418
- const scopeId = getScopeId(cmpMeta);
1419
- if (!styles.has(scopeId)) {
1420
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1421
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1422
- endRegisterStyles();
1423
- }
1424
- }
1425
- }
1426
- // we've successfully created a lazy instance
1427
- const ancestorComponent = hostRef.$ancestorComponent$;
1428
- const schedule = () => scheduleUpdate(hostRef, true);
1429
- if ( ancestorComponent && ancestorComponent['s-rc']) {
1430
- // this is the intial load and this component it has an ancestor component
1431
- // but the ancestor component has NOT fired its will update lifecycle yet
1432
- // so let's just cool our jets and wait for the ancestor to continue first
1433
- // this will get fired off when the ancestor component
1434
- // finally gets around to rendering its lazy self
1435
- // fire off the initial update
1436
- ancestorComponent['s-rc'].push(schedule);
1437
- }
1438
- else {
1439
- schedule();
1440
- }
1441
- };
1442
- const fireConnectedCallback = (instance) => {
1443
- {
1444
- safeCall(instance, 'connectedCallback');
1445
- }
1446
- };
1447
- const connectedCallback = (elm) => {
1448
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1449
- const hostRef = getHostRef(elm);
1450
- const cmpMeta = hostRef.$cmpMeta$;
1451
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1452
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1453
- // first time this component has connected
1454
- hostRef.$flags$ |= 1 /* hasConnected */;
1455
- {
1456
- // initUpdate
1457
- // if the slot polyfill is required we'll need to put some nodes
1458
- // in here to act as original content anchors as we move nodes around
1459
- // host element has been connected to the DOM
1460
- if ( ( cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1461
- setContentReference(elm);
1462
- }
1463
- }
1464
- {
1465
- // find the first ancestor component (if there is one) and register
1466
- // this component as one of the actively loading child components for its ancestor
1467
- let ancestorComponent = elm;
1468
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1469
- // climb up the ancestors looking for the first
1470
- // component that hasn't finished its lifecycle update yet
1471
- if (
1472
- ancestorComponent['s-p']) {
1473
- // we found this components first ancestor component
1474
- // keep a reference to this component's ancestor component
1475
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1476
- break;
1477
- }
1478
- }
1479
- }
1480
- // Lazy properties
1481
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1482
- if ( cmpMeta.$members$) {
1483
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1484
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1485
- const value = elm[memberName];
1486
- delete elm[memberName];
1487
- elm[memberName] = value;
1488
- }
1489
- });
1490
- }
1491
- {
1492
- initializeComponent(elm, hostRef, cmpMeta);
1493
- }
1494
- }
1495
- else {
1496
- // not the first time this has connected
1497
- // reattach any event listeners to the host
1498
- // since they would have been removed when disconnected
1499
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1500
- // fire off connectedCallback() on component instance
1501
- fireConnectedCallback(hostRef.$lazyInstance$);
1502
- }
1503
- endConnected();
1504
- }
1505
- };
1506
- const setContentReference = (elm) => {
1507
- // only required when we're NOT using native shadow dom (slot)
1508
- // or this browser doesn't support native shadow dom
1509
- // and this host element was NOT created with SSR
1510
- // let's pick out the inner content for slot projection
1511
- // create a node to represent where the original
1512
- // content was first placed, which is useful later on
1513
- const contentRefElm = (elm['s-cr'] = doc.createComment( ''));
1514
- contentRefElm['s-cn'] = true;
1515
- elm.insertBefore(contentRefElm, elm.firstChild);
1516
- };
1517
- const disconnectedCallback = (elm) => {
1518
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1519
- const hostRef = getHostRef(elm);
1520
- const instance = hostRef.$lazyInstance$ ;
1521
- {
1522
- if (hostRef.$rmListeners$) {
1523
- hostRef.$rmListeners$.map(rmListener => rmListener());
1524
- hostRef.$rmListeners$ = undefined;
1525
- }
1526
- }
1527
- {
1528
- safeCall(instance, 'disconnectedCallback');
1529
- }
1530
- {
1531
- safeCall(instance, 'componentDidUnload');
1532
- }
1533
- }
1534
- };
1535
- const bootstrapLazy = (lazyBundles, options = {}) => {
1536
- const endBootstrap = createTime();
1537
- const cmpTags = [];
1538
- const exclude = options.exclude || [];
1539
- const customElements = win.customElements;
1540
- const head = doc.head;
1541
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1542
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1543
- const deferredConnectedCallbacks = [];
1544
- let appLoadFallback;
1545
- let isBootstrapping = true;
1546
- Object.assign(plt, options);
1547
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1548
- lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
1549
- const cmpMeta = {
1550
- $flags$: compactMeta[0],
1551
- $tagName$: compactMeta[1],
1552
- $members$: compactMeta[2],
1553
- $listeners$: compactMeta[3],
1554
- };
1555
- {
1556
- cmpMeta.$members$ = compactMeta[2];
1557
- }
1558
- {
1559
- cmpMeta.$listeners$ = compactMeta[3];
1560
- }
1561
- {
1562
- cmpMeta.$attrsToReflect$ = [];
1563
- }
1564
- {
1565
- cmpMeta.$watchers$ = {};
1566
- }
1567
- const tagName = cmpMeta.$tagName$;
1568
- const HostElement = class extends HTMLElement {
1569
- // StencilLazyHost
1570
- constructor(self) {
1571
- // @ts-ignore
1572
- super(self);
1573
- self = this;
1574
- registerHost(self, cmpMeta);
1575
- if ( cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1576
- // this component is using shadow dom
1577
- // and this browser supports shadow dom
1578
- // add the read-only property "shadowRoot" to the host element
1579
- // adding the shadow root build conditionals to minimize runtime
1580
- {
1581
- {
1582
- self.attachShadow({ mode: 'open' });
1583
- }
1584
- }
1585
- }
1586
- }
1587
- connectedCallback() {
1588
- if (appLoadFallback) {
1589
- clearTimeout(appLoadFallback);
1590
- appLoadFallback = null;
1591
- }
1592
- if (isBootstrapping) {
1593
- // connectedCallback will be processed once all components have been registered
1594
- deferredConnectedCallbacks.push(this);
1595
- }
1596
- else {
1597
- plt.jmp(() => connectedCallback(this));
1598
- }
1599
- }
1600
- disconnectedCallback() {
1601
- plt.jmp(() => disconnectedCallback(this));
1602
- }
1603
- componentOnReady() {
1604
- return getHostRef(this).$onReadyPromise$;
1605
- }
1606
- };
1607
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1608
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1609
- cmpTags.push(tagName);
1610
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1611
- }
1612
- }));
1613
- {
1614
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1615
- visibilityStyle.setAttribute('data-styles', '');
1616
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1617
- }
1618
- // Process deferred connectedCallbacks now all components have been registered
1619
- isBootstrapping = false;
1620
- if (deferredConnectedCallbacks.length) {
1621
- deferredConnectedCallbacks.map(host => host.connectedCallback());
1622
- }
1623
- else {
1624
- {
1625
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1626
- }
1627
- }
1628
- // Fallback appLoad event
1629
- endBootstrap();
1630
- };
1631
- const getAssetPath = (path) => {
1632
- const assetUrl = new URL(path, plt.$resourcesUrl$);
1633
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1634
- };
1635
- const getContext = (_elm, context) => {
1636
- if (context in Context) {
1637
- return Context[context];
1638
- }
1639
- else if (context === 'window') {
1640
- return win;
1641
- }
1642
- else if (context === 'document') {
1643
- return doc;
1644
- }
1645
- else if (context === 'isServer' || context === 'isPrerender') {
1646
- return false;
1647
- }
1648
- else if (context === 'isClient') {
1649
- return true;
1650
- }
1651
- else if (context === 'resourcesUrl' || context === 'publicPath') {
1652
- return getAssetPath('.');
1653
- }
1654
- else if (context === 'queue') {
1655
- return {
1656
- write: writeTask,
1657
- read: readTask,
1658
- tick: {
1659
- then(cb) {
1660
- return nextTick(cb);
1661
- },
1662
- },
1663
- };
1664
- }
1665
- return undefined;
1666
- };
1667
- const hostRefs = new WeakMap();
1668
- const getHostRef = (ref) => hostRefs.get(ref);
1669
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1670
- const registerHost = (elm, cmpMeta) => {
1671
- const hostRef = {
1672
- $flags$: 0,
1673
- $hostElement$: elm,
1674
- $cmpMeta$: cmpMeta,
1675
- $instanceValues$: new Map(),
1676
- };
1677
- {
1678
- hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
1679
- elm['s-p'] = [];
1680
- elm['s-rc'] = [];
1681
- }
1682
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1683
- return hostRefs.set(elm, hostRef);
1684
- };
1685
- const isMemberInElement = (elm, memberName) => memberName in elm;
1686
- const consoleError = (e, el) => (customError || console.error)(e, el);
1687
- const setErrorHandler = (handler) => customError = handler;
1688
- const cmpModules = /*@__PURE__*/ new Map();
1689
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1690
- // loadModuleImport
1691
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1692
- const bundleId = cmpMeta.$lazyBundleId$;
1693
- const module = cmpModules.get(bundleId) ;
1694
- if (module) {
1695
- return module[exportName];
1696
- }
1697
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1698
- /* webpackInclude: /\.entry\.js$/ */
1699
- /* webpackExclude: /\.system\.entry\.js$/ */
1700
- /* webpackMode: "lazy" */
1701
- `./${bundleId}.entry.js${ ''}`)); }).then(importedModule => {
1702
- {
1703
- cmpModules.set(bundleId, importedModule);
1704
- }
1705
- return importedModule[exportName];
1706
- }, consoleError);
1707
- };
1708
- const styles = new Map();
1709
- const queueDomReads = [];
1710
- const queueDomWrites = [];
1711
- const queueTask = (queue, write) => (cb) => {
1712
- queue.push(cb);
1713
- if (!queuePending) {
1714
- queuePending = true;
1715
- if (write && plt.$flags$ & 4 /* queueSync */) {
1716
- nextTick(flush);
1717
- }
1718
- else {
1719
- plt.raf(flush);
1720
- }
1721
- }
1722
- };
1723
- const consume = (queue) => {
1724
- for (let i = 0; i < queue.length; i++) {
1725
- try {
1726
- queue[i](performance.now());
1727
- }
1728
- catch (e) {
1729
- consoleError(e);
1730
- }
1731
- }
1732
- queue.length = 0;
1733
- };
1734
- const flush = () => {
1735
- // always force a bunch of medium callbacks to run, but still have
1736
- // a throttle on how many can run in a certain time
1737
- // DOM READS!!!
1738
- consume(queueDomReads);
1739
- // DOM WRITES!!!
1740
- {
1741
- consume(queueDomWrites);
1742
- if ((queuePending = queueDomReads.length > 0)) {
1743
- // still more to do yet, but we've run out of time
1744
- // let's let this thing cool off and try again in the next tick
1745
- plt.raf(flush);
1746
- }
1747
- }
1748
- };
1749
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1750
- const readTask = /*@__PURE__*/ queueTask(queueDomReads, false);
1751
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1752
-
1753
- exports.Host = Host;
1754
- exports.bootstrapLazy = bootstrapLazy;
1755
- exports.createEvent = createEvent;
1756
- exports.forceUpdate = forceUpdate;
1757
- exports.getAssetPath = getAssetPath;
1758
- exports.getContext = getContext;
1759
- exports.getElement = getElement;
1760
- exports.getRenderingRef = getRenderingRef;
1761
- exports.h = h;
1762
- exports.promiseResolve = promiseResolve;
1763
- exports.registerInstance = registerInstance;
1764
- exports.setErrorHandler = setErrorHandler;