@saasquatch/mint-components 2.5.5-1 → 2.5.5

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 (1068) hide show
  1. package/dist/cjs/AsYouType-5f15a922.js +4764 -0
  2. package/dist/cjs/{ErrorView-17578c10.js → ErrorView-8f6cf1cb.js} +1 -1
  3. package/dist/cjs/{GenericTableView-4c48c630.js → GenericTableView-12d35117.js} +17 -15
  4. package/dist/cjs/{JSS-8503a151.js → JSS-bf8078e9.js} +342 -338
  5. package/dist/cjs/{ShadowViewAddon-f57cb460.js → ShadowViewAddon-ee16ec1d.js} +312 -292
  6. package/dist/cjs/{copy-text-view-bb2c0ea7.js → copy-text-view-49517b2a.js} +2 -2
  7. package/dist/cjs/{data-ae38fa86.js → data-77273531.js} +5 -5
  8. package/dist/cjs/demoMerge-6f125494.js +203 -0
  9. package/dist/cjs/{dom-context-hooks.module-e7b6727c.js → dom-context-hooks.module-735c3942.js} +133 -76
  10. package/dist/cjs/{email-registration-view-306c8878.js → email-registration-view-36a74293.js} +10 -9
  11. package/dist/cjs/{global-3ba30270.js → global-973bc63c.js} +587 -583
  12. package/dist/cjs/{index.module-3221a469.js → index-8530c62f.js} +2911 -511
  13. package/dist/cjs/{index-8277cbb3.js → index-d41c2c94.js} +766 -340
  14. package/dist/cjs/{index-8c6255f5.js → index-f1dd6136.js} +47 -29
  15. package/dist/cjs/{jsonpointer-11327262.js → jsonpointer-0db21316.js} +8 -4
  16. package/dist/cjs/loader.cjs.js +6 -5
  17. package/dist/cjs/{luxon-c1ad356a.js → luxon-d3612a3d.js} +486 -299
  18. package/dist/cjs/mint-components.cjs.js +11 -7
  19. package/dist/cjs/{mockRewardData-ed603fca.js → mockRewardData-e6a0a048.js} +5 -3
  20. package/dist/cjs/{parseStates-d1effc19.js → parseStates-35013ba4.js} +3 -0
  21. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  22. package/dist/cjs/{re-render-34b36aca.js → re-render-51c48d7c.js} +5 -5
  23. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +399 -1395
  24. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +818 -2891
  25. package/dist/cjs/{sqm-close-button-view-e9f2a454.js → sqm-close-button-view-74e5e1e9.js} +2 -2
  26. package/dist/cjs/sqm-close-button.cjs.entry.js +6 -11
  27. package/dist/cjs/sqm-code-verification.cjs.entry.js +20 -47
  28. package/dist/cjs/sqm-context-router.cjs.entry.js +9 -8
  29. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +71 -182
  30. package/dist/cjs/sqm-empty_4.cjs.entry.js +21 -58
  31. package/dist/cjs/sqm-form-message_2.cjs.entry.js +7 -19
  32. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +10 -9
  33. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +11 -10
  34. package/dist/cjs/sqm-header-logo.cjs.entry.js +4 -19
  35. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +14 -89
  36. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +6 -8
  37. package/dist/cjs/{sqm-lead-checkbox-field-view-d6df81c7.js → sqm-lead-checkbox-field-view-24ac7358.js} +12 -11
  38. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +14 -30
  39. package/dist/cjs/sqm-lead-input-field-view-7dfbc714.js +52 -0
  40. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +15 -31
  41. package/dist/cjs/{sqm-leaderboard-rank-view-67fd7934.js → sqm-leaderboard-rank-view-e992762c.js} +1 -1
  42. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +25 -22
  43. package/dist/cjs/{sqm-logout-current-user-view-f330d641.js → sqm-logout-current-user-view-ebee238e.js} +2 -2
  44. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +17 -28
  45. package/dist/cjs/{sqm-navigation-sidebar-item-view-9134e64e.js → sqm-navigation-sidebar-item-view-a2cab80e.js} +4 -4
  46. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +23 -18
  47. package/dist/cjs/{sqm-navigation-sidebar-view-6616e3e0.js → sqm-navigation-sidebar-view-873e0c44.js} +2 -2
  48. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +12 -17
  49. package/dist/cjs/sqm-pagination_3.cjs.entry.js +40 -102
  50. package/dist/cjs/{sqm-partner-info-modal-view-6173c618.js → sqm-partner-info-modal-view-c8972001.js} +4 -4
  51. package/dist/cjs/sqm-password-field.cjs.entry.js +186 -86
  52. package/dist/cjs/sqm-popup-container.cjs.entry.js +12 -12
  53. package/dist/cjs/{sqm-portal-container-view-757f921b.js → sqm-portal-container-view-c0cf9af9.js} +2 -2
  54. package/dist/cjs/{sqm-portal-email-verification-view-38d8344c.js → sqm-portal-email-verification-view-92866725.js} +4 -4
  55. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +22 -52
  56. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +101 -429
  57. package/dist/cjs/sqm-portal-logout.cjs.entry.js +7 -13
  58. package/dist/cjs/{sqm-portal-profile-view-062eda68.js → sqm-portal-profile-view-60e78cdb.js} +20 -17
  59. package/dist/cjs/sqm-portal-profile.cjs.entry.js +20 -56
  60. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -24
  61. package/dist/cjs/{sqm-portal-registration-form-view-a45f7a52.js → sqm-portal-registration-form-view-5473e24d.js} +26 -21
  62. package/dist/cjs/{sqm-portal-reset-password-view-b2c546bd.js → sqm-portal-reset-password-view-7a6f55c5.js} +3 -3
  63. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +21 -89
  64. package/dist/cjs/{sqm-portal-verify-email-view-2a120d0a.js → sqm-portal-verify-email-view-7efa70c9.js} +48 -45
  65. package/dist/cjs/{sqm-qr-code-view-0d43424e.js → sqm-qr-code-view-70da70f9.js} +3 -3
  66. package/dist/cjs/sqm-qr-code.cjs.entry.js +22 -48
  67. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +37 -140
  68. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +5 -4
  69. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -7
  70. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +98 -217
  71. package/dist/cjs/sqm-route.cjs.entry.js +2 -1
  72. package/dist/cjs/sqm-scroll.cjs.entry.js +12 -8
  73. package/dist/cjs/sqm-stencilbook.cjs.entry.js +2892 -2264
  74. package/dist/cjs/sqm-tab.cjs.entry.js +5 -4
  75. package/dist/cjs/sqm-tabs.cjs.entry.js +9 -8
  76. package/dist/cjs/{sqm-text-span-view-b9e10f5d.js → sqm-text-span-view-c6938acd.js} +2 -2
  77. package/dist/cjs/sqm-text-span.cjs.entry.js +8 -4
  78. package/dist/cjs/{sqm-user-info-form-view-aedca5fe.js → sqm-user-info-form-view-e878a9a3.js} +173 -163
  79. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +6 -11
  80. package/dist/cjs/subregions-3dbacb18.js +1467 -0
  81. package/dist/cjs/{useChildElements-36f7e4bb.js → useChildElements-e5e26816.js} +3 -3
  82. package/dist/cjs/{useIndirectTaxForm-7656fc63.js → useIndirectTaxForm-691691c2.js} +42 -38
  83. package/dist/cjs/{useInstantAccessRegistration-43514e50.js → useInstantAccessRegistration-9201777d.js} +6 -6
  84. package/dist/cjs/{useLeadFormState-34f9834b.js → useLeadFormState-f5b768b9.js} +20 -20
  85. package/dist/cjs/{usePortalRegistrationForm-b18a1f6b.js → usePortalRegistrationForm-b3c0451b.js} +16 -13
  86. package/dist/cjs/{useReferralCodes-25d5320a.js → useReferralCodes-5794a177.js} +11 -11
  87. package/dist/cjs/{useReferralTable-ad86986b.js → useReferralTable-32b3541b.js} +19 -19
  88. package/dist/cjs/{useRegistrationFormState-ea81d55a.js → useRegistrationFormState-feccd2c8.js} +3 -3
  89. package/dist/cjs/{useVerificationEmail-70aad5f1.js → useVerificationEmail-f0807562.js} +17 -15
  90. package/dist/cjs/{utilities-dfc34bea.js → utilities-04345466.js} +3 -3
  91. package/dist/collection/ShadowViewAddon.js +1 -2
  92. package/dist/collection/collection-manifest.json +2 -2
  93. package/dist/collection/components/raisins-plop-target/raisins-plop-target.js +36 -34
  94. package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +3 -7
  95. package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +11 -23
  96. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +11 -27
  97. package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +2 -16
  98. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +1 -4
  99. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +294 -298
  100. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +3 -3
  101. package/dist/collection/components/sqm-brand/SqmBrand.stories.js +4 -72
  102. package/dist/collection/components/sqm-brand/sqm-brand.js +61 -58
  103. package/dist/collection/components/sqm-card-feed/CardFeed.stories.js +43 -120
  104. package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +1 -5
  105. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +55 -59
  106. package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +17 -22
  107. package/dist/collection/components/sqm-checkbox-field/UseCheckboxField.stories.js +5 -19
  108. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +18 -21
  109. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +167 -179
  110. package/dist/collection/components/sqm-close-button/CloseButton.stories.js +3 -5
  111. package/dist/collection/components/sqm-close-button/sqm-close-button-view.js +1 -5
  112. package/dist/collection/components/sqm-close-button/sqm-close-button.js +32 -35
  113. package/dist/collection/components/sqm-context-router/ContextRouter.js +4 -33
  114. package/dist/collection/components/sqm-context-router/sqm-context-router.js +39 -33
  115. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +13 -13
  116. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +1 -7
  117. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +601 -695
  118. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +10 -5
  119. package/dist/collection/components/sqm-divided-layout/DividedLayout.stories.js +19 -36
  120. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +1 -5
  121. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +129 -135
  122. package/dist/collection/components/sqm-dropdown-field/DropdownField.stories.js +7 -7
  123. package/dist/collection/components/sqm-dropdown-field/UseDropdownField.stories.js +3 -15
  124. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +13 -15
  125. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +128 -133
  126. package/dist/collection/components/sqm-edit-profile/EditProfileForm.stories.js +2 -2
  127. package/dist/collection/components/sqm-edit-profile/UseEditProfile.stories.js +9 -9
  128. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +27 -45
  129. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +272 -264
  130. package/dist/collection/components/sqm-edit-profile/useEditProfile.js +4 -3
  131. package/dist/collection/components/sqm-empty/EmptyState.stories.js +4 -7
  132. package/dist/collection/components/sqm-empty/sqm-empty-view.js +6 -12
  133. package/dist/collection/components/sqm-empty/sqm-empty.js +102 -95
  134. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +9 -27
  135. package/dist/collection/components/sqm-form-message/sqm-form-message.js +102 -108
  136. package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +61 -56
  137. package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +32 -28
  138. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +147 -161
  139. package/dist/collection/components/sqm-hero/Hero.stories.js +20 -54
  140. package/dist/collection/components/sqm-hero/sqm-hero-view.js +5 -11
  141. package/dist/collection/components/sqm-hero/sqm-hero.js +177 -202
  142. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +9 -26
  143. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +533 -590
  144. package/dist/collection/components/sqm-hook-story-container/sqm-hook-story-container.js +28 -23
  145. package/dist/collection/components/sqm-image/sqm-image-view.js +1 -6
  146. package/dist/collection/components/sqm-image/sqm-image.js +131 -131
  147. package/dist/collection/components/sqm-input-field/InputField.stories.js +17 -17
  148. package/dist/collection/components/sqm-input-field/UseInputField.stories.js +7 -22
  149. package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +14 -15
  150. package/dist/collection/components/sqm-input-field/sqm-input-field.js +156 -162
  151. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +410 -481
  152. package/dist/collection/components/sqm-invoice-table/InvoiceTable.stories.js +2 -18
  153. package/dist/collection/components/sqm-invoice-table/UseInvoiceTable.stories.js +2 -14
  154. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-data-cell.js +27 -23
  155. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-date-cell.js +44 -40
  156. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +29 -29
  157. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +85 -80
  158. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +68 -64
  159. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +40 -39
  160. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -8
  161. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +287 -310
  162. package/dist/collection/components/sqm-invoice-table/useInvoiceTable.js +1 -3
  163. package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +7 -7
  164. package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +6 -10
  165. package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +10 -10
  166. package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +7 -7
  167. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +20 -24
  168. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +167 -179
  169. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +13 -17
  170. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +174 -189
  171. package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +22 -48
  172. package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +365 -420
  173. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +13 -16
  174. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +179 -191
  175. package/dist/collection/components/sqm-lead-form/useLeadForm.js +3 -1
  176. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +23 -29
  177. package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +3 -15
  178. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +11 -35
  179. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +553 -563
  180. package/dist/collection/components/sqm-leaderboard-rank/LeaderboardRank.stories.js +3 -12
  181. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +200 -192
  182. package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +4 -3
  183. package/dist/collection/components/sqm-link-button/LinkButton.stories.js +2 -2
  184. package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +1 -6
  185. package/dist/collection/components/sqm-link-button/sqm-link-button.js +73 -77
  186. package/dist/collection/components/sqm-logout-current-user/LogoutCurrentUser.stories.js +1 -1
  187. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user-view.js +1 -9
  188. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +106 -115
  189. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +104 -109
  190. package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -2
  191. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +21 -20
  192. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +104 -109
  193. package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu-view.js +6 -9
  194. package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +92 -82
  195. package/dist/collection/components/sqm-navigation-sidebar/NavigationSidebar.stories.js +1 -3
  196. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +1 -8
  197. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +71 -73
  198. package/dist/collection/components/sqm-navigation-sidebar-item/SidebarItem.stories.js +2 -2
  199. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +1 -4
  200. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +315 -308
  201. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +1 -9
  202. package/dist/collection/components/sqm-pagination/sqm-pagination.js +94 -100
  203. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +13 -13
  204. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +22 -54
  205. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +515 -603
  206. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +3 -3
  207. package/dist/collection/components/sqm-password-field/passwordValidation.js +8 -20
  208. package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +16 -18
  209. package/dist/collection/components/sqm-password-field/sqm-password-field.js +197 -219
  210. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -7
  211. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -4
  212. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +82 -84
  213. package/dist/collection/components/sqm-popup-container/PopupContainer.stories.js +1 -2
  214. package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +1 -5
  215. package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +161 -155
  216. package/dist/collection/components/sqm-portal-change-marketing/ChangeMarketing.stories.js +5 -5
  217. package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +8 -17
  218. package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +142 -154
  219. package/dist/collection/components/sqm-portal-change-password/ChangePassword.stories.js +6 -6
  220. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -24
  221. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +380 -436
  222. package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +5 -2
  223. package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +16 -119
  224. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -5
  225. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +280 -299
  226. package/dist/collection/components/sqm-portal-email-verification/PortalEmailVerification.stories.js +5 -5
  227. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +13 -25
  228. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +216 -243
  229. package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
  230. package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +6 -6
  231. package/dist/collection/components/sqm-portal-footer/PoweredByImg.js +1 -12
  232. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -16
  233. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +317 -351
  234. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
  235. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -14
  236. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +279 -316
  237. package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -1
  238. package/dist/collection/components/sqm-portal-frame/PortalFrame.stories.js +14 -55
  239. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +1 -7
  240. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +141 -158
  241. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +295 -342
  242. package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +19 -26
  243. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +645 -749
  244. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -5
  245. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -17
  246. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +255 -292
  247. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
  248. package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +33 -36
  249. package/dist/collection/components/sqm-portal-profile/PortalProfile.stories.js +6 -6
  250. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +15 -26
  251. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +282 -314
  252. package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +72 -82
  253. package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +8 -13
  254. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +15 -28
  255. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +525 -610
  256. package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -1
  257. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +10 -15
  258. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +20 -33
  259. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +573 -663
  260. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +5 -2
  261. package/dist/collection/components/sqm-portal-reset-password/PortalResetPassword.stories.js +6 -6
  262. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +7 -29
  263. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +449 -514
  264. package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +2 -1
  265. package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +2 -2
  266. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +2 -14
  267. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +196 -222
  268. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +4 -2
  269. package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +20 -32
  270. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -7
  271. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +84 -78
  272. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -10
  273. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +231 -220
  274. package/dist/collection/components/sqm-program-menu/ProgramMenu.stories.js +8 -25
  275. package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +8 -9
  276. package/dist/collection/components/sqm-qr-code/QRCode.stories.js +8 -8
  277. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -11
  278. package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +206 -230
  279. package/dist/collection/components/sqm-radio-card/RadioCard.stories.js +2 -2
  280. package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +1 -9
  281. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +29 -86
  282. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +3 -11
  283. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +304 -335
  284. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +14 -14
  285. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +369 -410
  286. package/dist/collection/components/sqm-referral-code/useReferralCode.js +3 -3
  287. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +9 -36
  288. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +3 -14
  289. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +167 -175
  290. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +2 -4
  291. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -3
  292. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +125 -132
  293. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +9 -24
  294. package/dist/collection/components/sqm-referral-table/ReferralTableCell.stories.js +1 -1
  295. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +5 -8
  296. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +1 -1
  297. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +30 -30
  298. package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +8 -30
  299. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-cell.js +28 -23
  300. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-date-cell.js +44 -40
  301. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +219 -278
  302. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +81 -76
  303. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-user-cell.js +24 -20
  304. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +65 -61
  305. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +120 -139
  306. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +260 -300
  307. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +208 -225
  308. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +124 -133
  309. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +229 -253
  310. package/dist/collection/components/sqm-referral-table/useReferralTable.js +1 -3
  311. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +479 -557
  312. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +1 -1
  313. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +1 -0
  314. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +5 -26
  315. package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +8 -18
  316. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +26 -28
  317. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +96 -174
  318. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +618 -726
  319. package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +16 -31
  320. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +12 -15
  321. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +11 -11
  322. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +8 -30
  323. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.js +45 -40
  324. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +44 -40
  325. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +97 -103
  326. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +160 -156
  327. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +336 -332
  328. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +96 -105
  329. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +67 -66
  330. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +127 -135
  331. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +173 -197
  332. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +390 -463
  333. package/dist/collection/components/sqm-rewards-table/mockRewardData.js +4 -2
  334. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +206 -219
  335. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -3
  336. package/dist/collection/components/sqm-route/sqm-route.js +31 -26
  337. package/dist/collection/components/sqm-router/Router.stories.js +4 -33
  338. package/dist/collection/components/sqm-router/sqm-router.js +17 -14
  339. package/dist/collection/components/sqm-scroll/Scroll.stories.js +6 -89
  340. package/dist/collection/components/sqm-scroll/sqm-scroll.js +259 -255
  341. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +12 -46
  342. package/dist/collection/components/sqm-share-button/UseShareButton.stories.js +2 -7
  343. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -6
  344. package/dist/collection/components/sqm-share-button/sqm-share-button.js +509 -521
  345. package/dist/collection/components/sqm-share-code/ShareCode.stories.js +13 -13
  346. package/dist/collection/components/sqm-share-code/sqm-share-code.js +329 -360
  347. package/dist/collection/components/sqm-share-code/useShareCode.js +3 -3
  348. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +85 -86
  349. package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +17 -20
  350. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +21 -49
  351. package/dist/collection/components/sqm-share-link/sqm-share-link.js +987 -1192
  352. package/dist/collection/components/sqm-share-link/useShareLink.js +3 -3
  353. package/dist/collection/components/sqm-skeleton/sqm-skeleton.js +55 -59
  354. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +1 -5
  355. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +162 -185
  356. package/dist/collection/components/sqm-stencilbook/AutoColor.js +1 -1
  357. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +12 -15
  358. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +1 -5
  359. package/dist/collection/components/sqm-stencilbook/HookStoryAddon.js +1 -2
  360. package/dist/collection/components/sqm-stencilbook/Matrix.js +4 -13
  361. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -13
  362. package/dist/collection/components/sqm-tab/sqm-tab.js +27 -25
  363. package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +47 -49
  364. package/dist/collection/components/sqm-table-row/sqm-table-row.js +27 -30
  365. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +10 -17
  366. package/dist/collection/components/sqm-tabs/sqm-tabs.js +62 -59
  367. package/dist/collection/components/sqm-tabs/useTabs.js +1 -2
  368. package/dist/collection/components/sqm-task-card/DetailsView.js +1 -7
  369. package/dist/collection/components/sqm-task-card/SVGs.js +3 -7
  370. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +31 -277
  371. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -17
  372. package/dist/collection/components/sqm-task-card/progress-bar/ProgressBar.stories.js +1 -1
  373. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +2 -10
  374. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +10 -13
  375. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +56 -83
  376. package/dist/collection/components/sqm-task-card/sqm-task-card.js +780 -860
  377. package/dist/collection/components/sqm-text/Text.stories.js +2 -4
  378. package/dist/collection/components/sqm-text/sqm-text.js +61 -57
  379. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -5
  380. package/dist/collection/components/sqm-text-span/sqm-text-span.js +109 -101
  381. package/dist/collection/components/sqm-timeline/SVGs.js +3 -9
  382. package/dist/collection/components/sqm-timeline/Timeline.stories.js +5 -57
  383. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +1 -16
  384. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +178 -166
  385. package/dist/collection/components/sqm-timeline/sqm-timeline.js +41 -45
  386. package/dist/collection/components/sqm-titled-section/TitledSection.stories.js +5 -206
  387. package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +1 -4
  388. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +129 -148
  389. package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +4 -7
  390. package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +1 -3
  391. package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +146 -137
  392. package/dist/collection/components/sqm-user-name/sqm-user-name.js +82 -84
  393. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +6 -26
  394. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +215 -240
  395. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +12 -22
  396. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +12 -30
  397. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +177 -195
  398. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +33 -41
  399. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +776 -921
  400. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +4 -2
  401. package/dist/collection/components/tax-and-cash/SVGs.js +1 -4
  402. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -3
  403. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +188 -198
  404. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +34 -83
  405. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1864 -2210
  406. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -7
  407. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +13 -31
  408. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +26 -53
  409. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +565 -660
  410. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -3
  411. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +24 -63
  412. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +699 -816
  413. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +11 -7
  414. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +1 -4
  415. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +5 -20
  416. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +130 -147
  417. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +12 -33
  418. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +910 -1035
  419. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +1 -3
  420. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/LoadingView.js +2 -19
  421. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +4760 -5686
  422. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +89 -176
  423. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +1857 -2159
  424. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -0
  425. package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +27 -27
  426. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +5 -9
  427. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +24 -44
  428. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/SlotViews.stories.js +6 -6
  429. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +120 -157
  430. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +713 -823
  431. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -7
  432. package/dist/collection/components/views/EmailRegistration.stories.js +60 -60
  433. package/dist/collection/components/views/copy-text-view.js +6 -17
  434. package/dist/collection/components/views/email-registration-view.js +14 -28
  435. package/dist/collection/global/styles.js +8 -4
  436. package/dist/collection/stories/NewPortal.stories.js +106 -178
  437. package/dist/collection/tables/GenericTableView.js +19 -27
  438. package/dist/collection/tables/TableSlots.js +5 -19
  439. package/dist/collection/utils/DefaultTemplateView.js +6 -24
  440. package/dist/collection/utils/RequiredPropsError.js +10 -24
  441. package/dist/collection/utils/TemplateView.js +1 -3
  442. package/dist/collection/utils/demoMerge.js +10 -0
  443. package/dist/esm/AsYouType-cc09fa68.js +4746 -0
  444. package/dist/esm/{ErrorView-c6fc1d9b.js → ErrorView-19af8137.js} +1 -1
  445. package/dist/esm/{GenericTableView-471a9386.js → GenericTableView-4f7ac63d.js} +17 -15
  446. package/dist/esm/{JSS-67b5cff8.js → JSS-e97b34f4.js} +341 -337
  447. package/dist/esm/{ShadowViewAddon-e1375e0d.js → ShadowViewAddon-0c8005bd.js} +284 -264
  448. package/dist/esm/{copy-text-view-87259b11.js → copy-text-view-e1c3f2cd.js} +2 -2
  449. package/dist/esm/{data-04d2da44.js → data-510cc9b7.js} +1 -1
  450. package/dist/esm/demoMerge-a0320a8e.js +201 -0
  451. package/dist/esm/{dom-context-hooks.module-50442785.js → dom-context-hooks.module-f88a3e54.js} +129 -72
  452. package/dist/esm/{email-registration-view-4cdb4129.js → email-registration-view-7a63a912.js} +10 -9
  453. package/dist/esm/{global-f019575d.js → global-cf0cc6b1.js} +586 -582
  454. package/dist/esm/{index-38ad4957.js → index-7a8b0c0b.js} +766 -341
  455. package/dist/esm/{index.module-cc08450c.js → index-b04013cc.js} +2873 -473
  456. package/dist/esm/{index-ffa26b43.js → index-e6f5153e.js} +47 -29
  457. package/dist/esm/{jsonpointer-388a7082.js → jsonpointer-c5423376.js} +8 -4
  458. package/dist/esm/loader.js +6 -5
  459. package/dist/esm/{luxon-1be92a8e.js → luxon-40b943cb.js} +486 -299
  460. package/dist/esm/mint-components.js +8 -7
  461. package/dist/esm/{mockRewardData-9b27d6f1.js → mockRewardData-2cceba7a.js} +5 -3
  462. package/dist/esm/{parseStates-ed75e224.js → parseStates-0c27f2de.js} +3 -1
  463. package/dist/esm/polyfills/css-shim.js +1 -1
  464. package/dist/esm/raisins-plop-target.entry.js +1 -1
  465. package/dist/esm/{re-render-380499f8.js → re-render-e911a0f7.js} +5 -5
  466. package/dist/esm/sqm-banking-info-form_10.entry.js +381 -1377
  467. package/dist/esm/sqm-big-stat_47.entry.js +767 -2840
  468. package/dist/esm/{sqm-close-button-view-fd9012e7.js → sqm-close-button-view-1deb12b1.js} +2 -2
  469. package/dist/esm/sqm-close-button.entry.js +5 -10
  470. package/dist/esm/sqm-code-verification.entry.js +19 -46
  471. package/dist/esm/sqm-context-router.entry.js +6 -5
  472. package/dist/esm/sqm-email-verification_2.entry.js +43 -154
  473. package/dist/esm/sqm-empty_4.entry.js +21 -58
  474. package/dist/esm/sqm-form-message_2.entry.js +7 -19
  475. package/dist/esm/sqm-google-sign-in.entry.js +4 -3
  476. package/dist/esm/sqm-graphql-client-provider.entry.js +9 -8
  477. package/dist/esm/sqm-header-logo.entry.js +4 -19
  478. package/dist/esm/sqm-instant-access-registration.entry.js +12 -87
  479. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +6 -8
  480. package/dist/esm/{sqm-lead-checkbox-field-view-04aa32a7.js → sqm-lead-checkbox-field-view-d055e7bd.js} +12 -11
  481. package/dist/esm/sqm-lead-checkbox-field.entry.js +12 -28
  482. package/dist/esm/sqm-lead-input-field-view-b0d62f1c.js +50 -0
  483. package/dist/esm/sqm-lead-input-field.entry.js +13 -29
  484. package/dist/esm/{sqm-leaderboard-rank-view-7a682cc3.js → sqm-leaderboard-rank-view-cd52cc80.js} +1 -1
  485. package/dist/esm/sqm-leaderboard-rank.entry.js +22 -19
  486. package/dist/esm/{sqm-logout-current-user-view-376c1bf6.js → sqm-logout-current-user-view-9bda187a.js} +2 -2
  487. package/dist/esm/sqm-logout-current-user.entry.js +12 -23
  488. package/dist/esm/{sqm-navigation-sidebar-item-view-40837457.js → sqm-navigation-sidebar-item-view-754b2484.js} +4 -4
  489. package/dist/esm/sqm-navigation-sidebar-item.entry.js +21 -16
  490. package/dist/esm/{sqm-navigation-sidebar-view-2b66457a.js → sqm-navigation-sidebar-view-e2094399.js} +2 -2
  491. package/dist/esm/sqm-navigation-sidebar.entry.js +11 -16
  492. package/dist/esm/sqm-pagination_3.entry.js +35 -97
  493. package/dist/esm/{sqm-partner-info-modal-view-e02fb63a.js → sqm-partner-info-modal-view-3b59be37.js} +4 -4
  494. package/dist/esm/sqm-password-field.entry.js +185 -85
  495. package/dist/esm/sqm-popup-container.entry.js +12 -12
  496. package/dist/esm/{sqm-portal-container-view-200c9df8.js → sqm-portal-container-view-fcd53673.js} +2 -2
  497. package/dist/esm/{sqm-portal-email-verification-view-3fa9587c.js → sqm-portal-email-verification-view-88fbf496.js} +4 -4
  498. package/dist/esm/sqm-portal-email-verification.entry.js +18 -48
  499. package/dist/esm/sqm-portal-forgot-password_6.entry.js +73 -401
  500. package/dist/esm/sqm-portal-logout.entry.js +5 -11
  501. package/dist/esm/{sqm-portal-profile-view-41894261.js → sqm-portal-profile-view-f27adfba.js} +20 -17
  502. package/dist/esm/sqm-portal-profile.entry.js +16 -52
  503. package/dist/esm/sqm-portal-protected-route.entry.js +8 -21
  504. package/dist/esm/{sqm-portal-registration-form-view-79265df5.js → sqm-portal-registration-form-view-113e1969.js} +26 -21
  505. package/dist/esm/{sqm-portal-reset-password-view-c7dd1c01.js → sqm-portal-reset-password-view-f9fb6355.js} +3 -3
  506. package/dist/esm/sqm-portal-reset-password.entry.js +18 -86
  507. package/dist/esm/{sqm-portal-verify-email-view-c102aa7c.js → sqm-portal-verify-email-view-ee40e3f2.js} +48 -45
  508. package/dist/esm/{sqm-qr-code-view-dd46daa3.js → sqm-qr-code-view-f8de4606.js} +3 -3
  509. package/dist/esm/sqm-qr-code.entry.js +18 -44
  510. package/dist/esm/sqm-referral-table_11.entry.js +36 -139
  511. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +5 -4
  512. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -7
  513. package/dist/esm/sqm-rewards-table_9.entry.js +55 -174
  514. package/dist/esm/sqm-route.entry.js +2 -1
  515. package/dist/esm/sqm-scroll.entry.js +12 -8
  516. package/dist/esm/sqm-stencilbook.entry.js +4808 -4180
  517. package/dist/esm/sqm-tab.entry.js +5 -4
  518. package/dist/esm/sqm-tabs.entry.js +9 -8
  519. package/dist/esm/{sqm-text-span-view-72f43dff.js → sqm-text-span-view-ed92b3c6.js} +2 -2
  520. package/dist/esm/sqm-text-span.entry.js +8 -4
  521. package/dist/esm/{sqm-user-info-form-view-8a95c5eb.js → sqm-user-info-form-view-c044a385.js} +173 -163
  522. package/dist/esm/sqm-widget-verification-controller.entry.js +4 -9
  523. package/dist/esm/subregions-d9f177f6.js +1452 -0
  524. package/dist/esm/{useChildElements-aa9eb7c9.js → useChildElements-a69f208f.js} +3 -3
  525. package/dist/esm/{useIndirectTaxForm-8d2e873d.js → useIndirectTaxForm-64a3ca69.js} +32 -28
  526. package/dist/esm/{useInstantAccessRegistration-7b11eb02.js → useInstantAccessRegistration-8c678a5a.js} +6 -6
  527. package/dist/esm/{useLeadFormState-b67018f2.js → useLeadFormState-34e05463.js} +7 -7
  528. package/dist/esm/{usePortalRegistrationForm-91e5786d.js → usePortalRegistrationForm-c6519939.js} +14 -11
  529. package/dist/esm/{useReferralCodes-a0a271ca.js → useReferralCodes-d0a384e4.js} +9 -9
  530. package/dist/esm/{useReferralTable-670580ff.js → useReferralTable-214dff06.js} +11 -11
  531. package/dist/esm/{useRegistrationFormState-95a75c57.js → useRegistrationFormState-72b4786d.js} +3 -3
  532. package/dist/esm/{useVerificationEmail-99d9f705.js → useVerificationEmail-b2c349a3.js} +12 -10
  533. package/dist/esm/{utilities-23a276e0.js → utilities-ceab25cd.js} +2 -2
  534. package/dist/esm-es5/AsYouType-cc09fa68.js +1 -0
  535. package/dist/esm-es5/{ErrorView-c6fc1d9b.js → ErrorView-19af8137.js} +1 -1
  536. package/dist/esm-es5/GenericTableView-4f7ac63d.js +1 -0
  537. package/dist/esm-es5/JSS-e97b34f4.js +8 -0
  538. package/dist/esm-es5/ShadowViewAddon-0c8005bd.js +1 -0
  539. package/dist/esm-es5/copy-text-view-e1c3f2cd.js +1 -0
  540. package/dist/esm-es5/data-510cc9b7.js +1 -0
  541. package/dist/esm-es5/demoMerge-a0320a8e.js +1 -0
  542. package/dist/esm-es5/dom-context-hooks.module-f88a3e54.js +53 -0
  543. package/dist/esm-es5/email-registration-view-7a63a912.js +1 -0
  544. package/dist/esm-es5/global-cf0cc6b1.js +271 -0
  545. package/dist/esm-es5/imageUrl-4775f17b.js +1 -1
  546. package/dist/esm-es5/index-7a8b0c0b.js +2 -0
  547. package/dist/esm-es5/index-b04013cc.js +1 -0
  548. package/dist/esm-es5/index-e6f5153e.js +1 -0
  549. package/dist/esm-es5/jsonpointer-c5423376.js +1 -0
  550. package/dist/esm-es5/loader.js +1 -1
  551. package/dist/esm-es5/luxon-40b943cb.js +1 -0
  552. package/dist/esm-es5/mint-components.js +1 -1
  553. package/dist/esm-es5/mockRewardData-2cceba7a.js +1 -0
  554. package/dist/esm-es5/parseStates-0c27f2de.js +1 -0
  555. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  556. package/dist/esm-es5/re-render-e911a0f7.js +1 -0
  557. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  558. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  559. package/dist/esm-es5/{sqm-close-button-view-fd9012e7.js → sqm-close-button-view-1deb12b1.js} +1 -1
  560. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  561. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  562. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  563. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  564. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  565. package/dist/esm-es5/sqm-form-message_2.entry.js +1 -1
  566. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  567. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  568. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  569. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  570. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -1
  571. package/dist/esm-es5/sqm-lead-checkbox-field-view-d055e7bd.js +1 -0
  572. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  573. package/dist/esm-es5/sqm-lead-input-field-view-b0d62f1c.js +1 -0
  574. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  575. package/dist/esm-es5/{sqm-leaderboard-rank-view-7a682cc3.js → sqm-leaderboard-rank-view-cd52cc80.js} +1 -1
  576. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  577. package/dist/esm-es5/{sqm-logout-current-user-view-376c1bf6.js → sqm-logout-current-user-view-9bda187a.js} +1 -1
  578. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  579. package/dist/esm-es5/sqm-navigation-sidebar-item-view-754b2484.js +1 -0
  580. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  581. package/dist/esm-es5/sqm-navigation-sidebar-view-e2094399.js +1 -0
  582. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  583. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  584. package/dist/esm-es5/sqm-partner-info-modal-view-3b59be37.js +1 -0
  585. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  586. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  587. package/dist/esm-es5/sqm-portal-container-view-fcd53673.js +1 -0
  588. package/dist/esm-es5/{sqm-portal-email-verification-view-3fa9587c.js → sqm-portal-email-verification-view-88fbf496.js} +1 -1
  589. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  590. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  591. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  592. package/dist/esm-es5/sqm-portal-profile-view-f27adfba.js +1 -0
  593. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  594. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  595. package/dist/esm-es5/sqm-portal-registration-form-view-113e1969.js +1 -0
  596. package/dist/esm-es5/sqm-portal-reset-password-view-f9fb6355.js +1 -0
  597. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  598. package/dist/esm-es5/sqm-portal-verify-email-view-ee40e3f2.js +1 -0
  599. package/dist/esm-es5/{sqm-qr-code-view-dd46daa3.js → sqm-qr-code-view-f8de4606.js} +1 -1
  600. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  601. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  602. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  603. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  604. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  605. package/dist/esm-es5/sqm-route.entry.js +1 -1
  606. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  607. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  608. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  609. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  610. package/dist/esm-es5/sqm-text-span-view-ed92b3c6.js +1 -0
  611. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  612. package/dist/esm-es5/sqm-user-info-form-view-c044a385.js +1 -0
  613. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  614. package/dist/esm-es5/subregions-d9f177f6.js +1 -0
  615. package/dist/esm-es5/useChildElements-a69f208f.js +1 -0
  616. package/dist/esm-es5/useIndirectTaxForm-64a3ca69.js +6 -0
  617. package/dist/esm-es5/useInstantAccessRegistration-8c678a5a.js +1 -0
  618. package/dist/esm-es5/useLeadFormState-34e05463.js +1 -0
  619. package/dist/esm-es5/usePortalRegistrationForm-c6519939.js +1 -0
  620. package/dist/esm-es5/useReferralCodes-d0a384e4.js +1 -0
  621. package/dist/esm-es5/useReferralTable-214dff06.js +1 -0
  622. package/dist/esm-es5/useRegistrationFormState-72b4786d.js +1 -0
  623. package/dist/esm-es5/useVerificationEmail-b2c349a3.js +1 -0
  624. package/dist/esm-es5/utilities-ceab25cd.js +1 -0
  625. package/dist/esm-es5/utils-334c1e34.js +1 -1
  626. package/dist/loader/index.d.ts +9 -1
  627. package/dist/loader/package.json +1 -0
  628. package/dist/mint-components/mint-components.esm.js +1 -1
  629. package/dist/mint-components/mint-components.js +2 -1
  630. package/dist/mint-components/p-029ee766.system.js +1 -0
  631. package/dist/mint-components/p-04eaa3bb.system.js +1 -0
  632. package/dist/mint-components/p-056845fb.js +56 -0
  633. package/dist/mint-components/p-05715d8c.system.entry.js +1 -0
  634. package/dist/mint-components/p-0650e0f1.system.js +1 -0
  635. package/dist/mint-components/p-09a6ab1f.entry.js +1 -0
  636. package/dist/mint-components/p-0a8c9f35.system.entry.js +1 -0
  637. package/dist/mint-components/{p-11c127f5.js → p-0b77b3fe.js} +1 -1
  638. package/dist/mint-components/p-0bc61e27.system.entry.js +1 -0
  639. package/dist/mint-components/p-0bdacc2d.system.js +1 -0
  640. package/dist/mint-components/p-0c81f11f.system.entry.js +1 -0
  641. package/dist/mint-components/p-0c97293e.entry.js +1 -0
  642. package/dist/mint-components/p-0d69fc17.system.entry.js +1 -0
  643. package/dist/mint-components/p-0daa339e.entry.js +1 -0
  644. package/dist/mint-components/p-0f65e4ad.system.js +1 -0
  645. package/dist/mint-components/p-11028f98.system.js +1 -0
  646. package/dist/mint-components/p-119b9680.system.js +1 -0
  647. package/dist/mint-components/{p-ed741b3b.js → p-125c5bec.js} +6 -6
  648. package/dist/mint-components/p-12ae9c97.entry.js +1 -0
  649. package/dist/mint-components/p-139825b2.entry.js +1 -0
  650. package/dist/mint-components/p-14f0af4c.system.entry.js +1 -0
  651. package/dist/mint-components/{p-1a3a57c0.js → p-159a9368.js} +1 -1
  652. package/dist/mint-components/{p-78e98761.js → p-15f170d4.js} +4 -4
  653. package/dist/mint-components/p-162e5426.system.js +1 -0
  654. package/dist/mint-components/p-1933e4cc.system.entry.js +1 -0
  655. package/dist/mint-components/p-1aa5cdff.entry.js +1 -0
  656. package/dist/mint-components/p-1b673705.system.js +1 -0
  657. package/dist/mint-components/p-1e1543c7.entry.js +1 -0
  658. package/dist/mint-components/p-201ae45a.js +1 -0
  659. package/dist/mint-components/p-20b90db3.system.entry.js +1 -0
  660. package/dist/mint-components/p-2380b28e.system.entry.js +1 -0
  661. package/dist/mint-components/p-258152c8.system.entry.js +1 -0
  662. package/dist/mint-components/p-29be0454.system.entry.js +1 -0
  663. package/dist/mint-components/p-2af001d4.system.js +1 -0
  664. package/dist/mint-components/{p-88e16945.js → p-2b052eed.js} +1 -1
  665. package/dist/mint-components/p-2b5c577a.system.js +1 -0
  666. package/dist/mint-components/p-2ff39583.entry.js +33 -0
  667. package/dist/mint-components/p-3104b4ba.entry.js +1 -0
  668. package/dist/mint-components/p-324dd9c9.system.entry.js +1 -0
  669. package/dist/mint-components/p-32b3c92e.system.entry.js +1 -0
  670. package/dist/mint-components/{p-c813ec64.js → p-3595dbe3.js} +1 -1
  671. package/dist/mint-components/p-384d4366.system.entry.js +1 -0
  672. package/dist/mint-components/{p-a417a4c7.js → p-388fdcdc.js} +1 -1
  673. package/dist/mint-components/{p-acaf505d.entry.js → p-39e59497.entry.js} +1 -1
  674. package/dist/mint-components/p-3a8fa8df.system.entry.js +1 -0
  675. package/dist/mint-components/{p-456ccda6.system.js → p-3aab5e80.system.js} +1 -1
  676. package/dist/mint-components/p-3b7eac48.js +1 -0
  677. package/dist/mint-components/p-3f9d4025.js +254 -0
  678. package/dist/mint-components/p-4639a9ed.entry.js +1 -0
  679. package/dist/mint-components/p-483c2ce0.system.entry.js +1 -0
  680. package/dist/mint-components/p-487dac4b.system.js +271 -0
  681. package/dist/mint-components/p-49ca1533.system.entry.js +1 -0
  682. package/dist/mint-components/p-49d4188a.system.js +1 -0
  683. package/dist/mint-components/p-4be3689e.system.entry.js +1 -0
  684. package/dist/mint-components/p-4d690bf1.system.js +1 -0
  685. package/dist/mint-components/p-4ea630ba.system.js +1 -0
  686. package/dist/mint-components/p-5a1be3aa.entry.js +83 -0
  687. package/dist/mint-components/p-5a2c495f.js +1 -0
  688. package/dist/mint-components/p-5b043988.system.entry.js +1 -0
  689. package/dist/mint-components/p-5bacacba.entry.js +13 -0
  690. package/dist/mint-components/p-5e7e4e54.system.entry.js +1 -0
  691. package/dist/mint-components/p-6333265f.system.js +1 -1
  692. package/dist/mint-components/p-643a756b.system.js +53 -0
  693. package/dist/mint-components/p-647ca265.entry.js +1 -0
  694. package/dist/mint-components/p-647ffff2.entry.js +1 -0
  695. package/dist/mint-components/p-64c93b03.system.js +1 -0
  696. package/dist/mint-components/p-6708043c.entry.js +1 -0
  697. package/dist/mint-components/p-6a7c9ae4.system.entry.js +1 -0
  698. package/dist/mint-components/p-6a7cd966.system.js +1 -0
  699. package/dist/mint-components/p-6b9ff091.system.js +1 -0
  700. package/dist/mint-components/p-6be0e0a7.system.entry.js +1 -0
  701. package/dist/mint-components/p-6ccdf33a.js +1 -0
  702. package/dist/mint-components/p-6cdde5e8.system.js +1 -0
  703. package/dist/mint-components/p-6cfca206.js +1 -0
  704. package/dist/mint-components/{p-d276468c.js → p-6e00edce.js} +1 -1
  705. package/dist/mint-components/p-6eb14db9.system.entry.js +1 -0
  706. package/dist/mint-components/p-6f3ba1ad.system.js +1 -0
  707. package/dist/mint-components/p-6f66bb97.system.js +1 -0
  708. package/dist/mint-components/p-7127e360.system.entry.js +1 -0
  709. package/dist/mint-components/{p-d0559e66.js → p-71759064.js} +1 -1
  710. package/dist/mint-components/p-72f11f03.js +1 -0
  711. package/dist/mint-components/p-732ac03d.js +1 -0
  712. package/dist/mint-components/p-74f50554.js +1 -0
  713. package/dist/mint-components/p-7558fe46.js +499 -0
  714. package/dist/mint-components/{p-c43e1d3b.js → p-75b7496e.js} +1 -1
  715. package/dist/mint-components/p-76d36b05.js +1 -0
  716. package/dist/mint-components/p-7a8ed2f3.system.entry.js +1 -0
  717. package/dist/mint-components/{p-3390f1f2.system.js → p-7d992af1.system.js} +2 -2
  718. package/dist/mint-components/p-7f71b56b.system.entry.js +1 -0
  719. package/dist/mint-components/p-81b63e83.system.entry.js +1 -0
  720. package/dist/mint-components/p-83330731.system.js +1 -0
  721. package/dist/mint-components/p-834cd992.js +2 -0
  722. package/dist/mint-components/p-843c9997.system.js +1 -0
  723. package/dist/mint-components/{p-956f9479.system.js → p-8680e52b.system.js} +1 -1
  724. package/dist/mint-components/p-8740794e.system.js +2 -0
  725. package/dist/mint-components/p-885630e6.entry.js +1 -0
  726. package/dist/mint-components/p-8886a874.system.js +1 -0
  727. package/dist/mint-components/p-88b65807.system.js +1 -0
  728. package/dist/mint-components/p-89b410d5.system.entry.js +1 -0
  729. package/dist/mint-components/p-89eef397.entry.js +1 -0
  730. package/dist/mint-components/p-8aae5dba.system.entry.js +1 -0
  731. package/dist/mint-components/p-8ba39302.entry.js +1 -0
  732. package/dist/mint-components/{p-c2254b88.js → p-8d85f34c.js} +1 -1
  733. package/dist/mint-components/p-8f67c580.js +1 -0
  734. package/dist/mint-components/p-8fa1f8e3.entry.js +1 -0
  735. package/dist/mint-components/p-930cc94f.system.js +1 -0
  736. package/dist/mint-components/p-94f3e0a2.js +1 -0
  737. package/dist/mint-components/p-96e332db.entry.js +17 -0
  738. package/dist/mint-components/p-9755e82a.system.entry.js +1 -0
  739. package/dist/mint-components/p-9a7f186b.entry.js +1 -0
  740. package/dist/mint-components/p-9c2e286c.entry.js +11 -0
  741. package/dist/mint-components/{p-e30abc44.js → p-9cabd2d1.js} +1 -1
  742. package/dist/mint-components/p-9d06abb3.entry.js +13 -0
  743. package/dist/mint-components/p-9d1659c4.entry.js +308 -0
  744. package/dist/mint-components/p-9d6ef5ca.entry.js +11 -0
  745. package/dist/mint-components/p-a0e6ccbc.system.js +1 -0
  746. package/dist/mint-components/p-a35191ca.system.js +1 -0
  747. package/dist/mint-components/p-a3d1c665.system.entry.js +1 -0
  748. package/dist/mint-components/p-a43a9fa9.system.js +1 -1
  749. package/dist/mint-components/{p-04da3964.system.js → p-a6c96b8a.system.js} +1 -1
  750. package/dist/mint-components/p-a75748c4.js +13 -0
  751. package/dist/mint-components/{p-f9fcc772.js → p-a7a74002.js} +1 -1
  752. package/dist/mint-components/{p-3484f1c1.js → p-a8e2f45b.js} +1 -1
  753. package/dist/mint-components/p-a976d930.system.entry.js +1 -0
  754. package/dist/mint-components/p-aadbe44d.js +1 -0
  755. package/dist/mint-components/p-aaf15612.entry.js +1 -0
  756. package/dist/mint-components/p-ab1e96ea.system.js +1 -0
  757. package/dist/mint-components/p-abd9e52b.system.entry.js +1 -0
  758. package/dist/mint-components/{p-19aebd7d.js → p-ac32d96a.js} +1 -1
  759. package/dist/mint-components/{p-381af581.js → p-acd3e9e3.js} +1 -1
  760. package/dist/mint-components/{p-9a69f781.system.js → p-ae5f7df6.system.js} +1 -1
  761. package/dist/mint-components/p-af9d3491.js +1 -0
  762. package/dist/mint-components/p-b1f880ee.entry.js +1 -0
  763. package/dist/mint-components/p-b492fd4b.system.entry.js +1 -0
  764. package/dist/mint-components/p-b652d3b3.js +1 -0
  765. package/dist/mint-components/p-b6f5ab75.system.entry.js +1 -0
  766. package/dist/mint-components/p-b907384d.entry.js +1 -0
  767. package/dist/mint-components/p-bbb494a8.system.js +1 -0
  768. package/dist/mint-components/p-bd1a14ba.js +1 -0
  769. package/dist/mint-components/p-bd66c171.js +1 -0
  770. package/dist/mint-components/p-be38ae67.js +1 -0
  771. package/dist/mint-components/p-c30dfd5d.entry.js +92 -0
  772. package/dist/mint-components/p-c380988f.system.js +1 -0
  773. package/dist/mint-components/{p-104f6ced.entry.js → p-c3a07f51.entry.js} +1 -1
  774. package/dist/mint-components/p-c50c206e.system.js +1 -0
  775. package/dist/mint-components/p-c6d2a452.js +1 -0
  776. package/dist/mint-components/p-c7dd2eaa.system.entry.js +1 -0
  777. package/dist/mint-components/p-c8f697e4.system.js +1 -0
  778. package/dist/mint-components/p-c980e369.entry.js +1 -0
  779. package/dist/mint-components/p-cb714df1.system.js +1 -0
  780. package/dist/mint-components/p-cdf099fe.js +108 -0
  781. package/dist/mint-components/p-ce06d498.js +52 -0
  782. package/dist/mint-components/p-d08ebaa9.js +1 -0
  783. package/dist/mint-components/p-d8fac546.entry.js +1 -0
  784. package/dist/mint-components/p-d91a97d2.js +1 -0
  785. package/dist/mint-components/p-da6cb2c3.system.entry.js +1 -0
  786. package/dist/mint-components/p-dd7e8c95.system.js +8 -0
  787. package/dist/mint-components/p-dd82a675.system.entry.js +1 -0
  788. package/dist/mint-components/p-df1206f0.entry.js +1 -0
  789. package/dist/mint-components/p-df45273e.js +1 -0
  790. package/dist/mint-components/p-df531a5d.entry.js +1 -0
  791. package/dist/mint-components/p-e1c55f04.system.entry.js +1 -0
  792. package/dist/mint-components/p-e33839b3.system.js +1 -0
  793. package/dist/mint-components/p-e389aded.entry.js +1 -0
  794. package/dist/mint-components/p-e73e0fc4.system.js +1 -0
  795. package/dist/mint-components/p-e7f7b9c6.entry.js +1 -0
  796. package/dist/mint-components/{p-b47e3740.system.js → p-e9942aae.system.js} +1 -1
  797. package/dist/mint-components/p-eac100d1.system.js +1 -0
  798. package/dist/mint-components/p-eb47b174.entry.js +1 -0
  799. package/dist/mint-components/p-eba82926.js +1 -0
  800. package/dist/mint-components/p-ec00bb5f.js +1 -0
  801. package/dist/mint-components/p-edc8d9bc.system.js +1 -0
  802. package/dist/mint-components/p-f0e1d538.entry.js +147 -0
  803. package/dist/mint-components/{p-ff75998a.system.entry.js → p-f53c7a87.system.entry.js} +1 -1
  804. package/dist/mint-components/p-f686c142.system.js +1 -0
  805. package/dist/mint-components/{p-5b0de730.js → p-fa2edc58.js} +152 -152
  806. package/dist/mint-components/p-fab41ea8.system.entry.js +1 -0
  807. package/dist/mint-components/p-fd14377b.entry.js +1 -0
  808. package/dist/mint-components/p-ff1336b3.entry.js +148 -0
  809. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -1
  810. package/dist/types/components/sqm-context-router/useContextRouter.d.ts +1 -1
  811. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -1
  812. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -1
  813. package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +2 -2
  814. package/dist/types/components/sqm-lead-form/useLeadFormState.d.ts +3 -3
  815. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +2 -2
  816. package/dist/types/components/sqm-pagination/usePagination.d.ts +1 -1
  817. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +3 -3
  818. package/dist/types/components/sqm-popup-container/sqm-popup-container-view.d.ts +1 -1
  819. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
  820. package/dist/types/components/sqm-portal-footer/PoweredByImg.d.ts +1 -1
  821. package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +1 -1
  822. package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +1 -1
  823. package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -1
  824. package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +1 -1
  825. package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +3 -3
  826. package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +2 -2
  827. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -1
  828. package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +1 -1
  829. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +2 -2
  830. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +5 -5
  831. package/dist/types/components/sqm-router/useRouter.d.ts +1 -1
  832. package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +1 -1
  833. package/dist/types/components/sqm-stencilbook/Matrix.d.ts +1 -1
  834. package/dist/types/components/sqm-tab/sqm-tab-view.d.ts +1 -1
  835. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -1
  836. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +1 -1
  837. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
  838. package/dist/types/components/sqm-widget-verification/getVerificationStep.d.ts +2 -2
  839. package/dist/types/components/tax-and-cash/data.d.ts +13 -13
  840. package/dist/types/components/tax-and-cash/sqm-banking-info-form/mockData.d.ts +1 -1
  841. package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -2
  842. package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +1 -1
  843. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -5
  844. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +6 -6
  845. package/dist/types/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.d.ts +1 -1
  846. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -3
  847. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +1 -1
  848. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  849. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.d.ts +1 -1
  850. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  851. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +5 -5
  852. package/dist/types/components/tax-and-cash/subregions.d.ts +1 -1
  853. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  854. package/dist/types/components.d.ts +3771 -3
  855. package/dist/types/global/mixins.d.ts +5 -5
  856. package/dist/types/stencil-public-runtime.d.ts +275 -193
  857. package/dist/types/utils/RequiredPropsError.d.ts +1 -1
  858. package/dist/types/utils/demoMerge.d.ts +8 -0
  859. package/dist/types/utils/utils.d.ts +1 -1
  860. package/docs/docs.docx +0 -0
  861. package/docs/stats.json +120116 -0
  862. package/grapesjs/grapesjs.js +1 -1
  863. package/package.json +34 -45
  864. package/dist/cjs/AsYouType-d15caac8.js +0 -4128
  865. package/dist/cjs/cjs-1066ec21.js +0 -135
  866. package/dist/cjs/eventKeys-7af4df4d.js +0 -5
  867. package/dist/cjs/sqm-lead-input-field-view-cd3f8076.js +0 -51
  868. package/dist/cjs/subregions-36662566.js +0 -1101
  869. package/dist/esm/AsYouType-2d56519e.js +0 -4108
  870. package/dist/esm/cjs-bdfb4486.js +0 -133
  871. package/dist/esm/eventKeys-f76b6a03.js +0 -3
  872. package/dist/esm/sqm-lead-input-field-view-919dc0a9.js +0 -49
  873. package/dist/esm/subregions-16dc47a9.js +0 -1086
  874. package/dist/esm-es5/AsYouType-2d56519e.js +0 -1
  875. package/dist/esm-es5/GenericTableView-471a9386.js +0 -1
  876. package/dist/esm-es5/JSS-67b5cff8.js +0 -8
  877. package/dist/esm-es5/ShadowViewAddon-e1375e0d.js +0 -1
  878. package/dist/esm-es5/cjs-bdfb4486.js +0 -1
  879. package/dist/esm-es5/copy-text-view-87259b11.js +0 -1
  880. package/dist/esm-es5/data-04d2da44.js +0 -1
  881. package/dist/esm-es5/dom-context-hooks.module-50442785.js +0 -53
  882. package/dist/esm-es5/email-registration-view-4cdb4129.js +0 -1
  883. package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
  884. package/dist/esm-es5/global-f019575d.js +0 -271
  885. package/dist/esm-es5/index-38ad4957.js +0 -1
  886. package/dist/esm-es5/index-ffa26b43.js +0 -1
  887. package/dist/esm-es5/index.module-cc08450c.js +0 -1
  888. package/dist/esm-es5/jsonpointer-388a7082.js +0 -1
  889. package/dist/esm-es5/luxon-1be92a8e.js +0 -1
  890. package/dist/esm-es5/mockRewardData-9b27d6f1.js +0 -1
  891. package/dist/esm-es5/parseStates-ed75e224.js +0 -1
  892. package/dist/esm-es5/re-render-380499f8.js +0 -1
  893. package/dist/esm-es5/sqm-lead-checkbox-field-view-04aa32a7.js +0 -1
  894. package/dist/esm-es5/sqm-lead-input-field-view-919dc0a9.js +0 -1
  895. package/dist/esm-es5/sqm-navigation-sidebar-item-view-40837457.js +0 -1
  896. package/dist/esm-es5/sqm-navigation-sidebar-view-2b66457a.js +0 -1
  897. package/dist/esm-es5/sqm-partner-info-modal-view-e02fb63a.js +0 -1
  898. package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +0 -1
  899. package/dist/esm-es5/sqm-portal-profile-view-41894261.js +0 -1
  900. package/dist/esm-es5/sqm-portal-registration-form-view-79265df5.js +0 -1
  901. package/dist/esm-es5/sqm-portal-reset-password-view-c7dd1c01.js +0 -1
  902. package/dist/esm-es5/sqm-portal-verify-email-view-c102aa7c.js +0 -1
  903. package/dist/esm-es5/sqm-text-span-view-72f43dff.js +0 -1
  904. package/dist/esm-es5/sqm-user-info-form-view-8a95c5eb.js +0 -1
  905. package/dist/esm-es5/subregions-16dc47a9.js +0 -1
  906. package/dist/esm-es5/useChildElements-aa9eb7c9.js +0 -1
  907. package/dist/esm-es5/useIndirectTaxForm-8d2e873d.js +0 -6
  908. package/dist/esm-es5/useInstantAccessRegistration-7b11eb02.js +0 -1
  909. package/dist/esm-es5/useLeadFormState-b67018f2.js +0 -1
  910. package/dist/esm-es5/usePortalRegistrationForm-91e5786d.js +0 -1
  911. package/dist/esm-es5/useReferralCodes-a0a271ca.js +0 -1
  912. package/dist/esm-es5/useReferralTable-670580ff.js +0 -1
  913. package/dist/esm-es5/useRegistrationFormState-95a75c57.js +0 -1
  914. package/dist/esm-es5/useVerificationEmail-99d9f705.js +0 -1
  915. package/dist/esm-es5/utilities-23a276e0.js +0 -1
  916. package/dist/mint-components/p-0306ce68.js +0 -1
  917. package/dist/mint-components/p-03361685.system.entry.js +0 -1
  918. package/dist/mint-components/p-036b876f.system.js +0 -1
  919. package/dist/mint-components/p-083180bf.js +0 -1
  920. package/dist/mint-components/p-08f36275.entry.js +0 -92
  921. package/dist/mint-components/p-08f82f9e.system.entry.js +0 -1
  922. package/dist/mint-components/p-092305db.entry.js +0 -1
  923. package/dist/mint-components/p-0ac8d8f4.system.js +0 -1
  924. package/dist/mint-components/p-0b1e90fe.system.js +0 -1
  925. package/dist/mint-components/p-0dca7884.entry.js +0 -148
  926. package/dist/mint-components/p-0ec9eb9b.entry.js +0 -1
  927. package/dist/mint-components/p-115dfc03.system.js +0 -1
  928. package/dist/mint-components/p-128610fb.system.js +0 -1
  929. package/dist/mint-components/p-13d1b10d.entry.js +0 -1
  930. package/dist/mint-components/p-13f3a647.js +0 -1
  931. package/dist/mint-components/p-16bd4751.system.entry.js +0 -1
  932. package/dist/mint-components/p-1a673057.system.js +0 -8
  933. package/dist/mint-components/p-1cf59d96.system.js +0 -1
  934. package/dist/mint-components/p-1ee1dd9c.system.entry.js +0 -1
  935. package/dist/mint-components/p-1f292473.entry.js +0 -1
  936. package/dist/mint-components/p-220cd813.system.entry.js +0 -1
  937. package/dist/mint-components/p-2392aabe.entry.js +0 -1
  938. package/dist/mint-components/p-263ca1be.system.js +0 -1
  939. package/dist/mint-components/p-274816ae.entry.js +0 -1
  940. package/dist/mint-components/p-2786819c.js +0 -1
  941. package/dist/mint-components/p-28ed2ae9.js +0 -1
  942. package/dist/mint-components/p-28fa5159.entry.js +0 -1
  943. package/dist/mint-components/p-290314a6.js +0 -52
  944. package/dist/mint-components/p-2cc01e0a.system.js +0 -1
  945. package/dist/mint-components/p-319bf866.system.entry.js +0 -1
  946. package/dist/mint-components/p-31b7d861.entry.js +0 -1
  947. package/dist/mint-components/p-31c5f477.entry.js +0 -1
  948. package/dist/mint-components/p-31cfa118.system.entry.js +0 -1
  949. package/dist/mint-components/p-3268c98c.system.entry.js +0 -1
  950. package/dist/mint-components/p-34917ee4.system.js +0 -1
  951. package/dist/mint-components/p-34bea1be.system.js +0 -1
  952. package/dist/mint-components/p-3db7a3c0.system.entry.js +0 -1
  953. package/dist/mint-components/p-429fa431.js +0 -1
  954. package/dist/mint-components/p-44ce74b6.js +0 -1
  955. package/dist/mint-components/p-45be99ae.system.js +0 -1
  956. package/dist/mint-components/p-47dc2362.system.entry.js +0 -1
  957. package/dist/mint-components/p-48b25874.system.js +0 -1
  958. package/dist/mint-components/p-4bd679a7.system.js +0 -1
  959. package/dist/mint-components/p-4ca6cc3c.system.entry.js +0 -1
  960. package/dist/mint-components/p-51d06654.system.js +0 -1
  961. package/dist/mint-components/p-5218d9dd.system.entry.js +0 -1
  962. package/dist/mint-components/p-5264ea68.js +0 -1
  963. package/dist/mint-components/p-5300edb5.js +0 -1
  964. package/dist/mint-components/p-556338c3.system.js +0 -1
  965. package/dist/mint-components/p-573ea3fd.system.entry.js +0 -1
  966. package/dist/mint-components/p-57c693ef.system.entry.js +0 -1
  967. package/dist/mint-components/p-59d5f239.system.entry.js +0 -1
  968. package/dist/mint-components/p-5c3cdefe.entry.js +0 -1
  969. package/dist/mint-components/p-5cda271c.system.entry.js +0 -1
  970. package/dist/mint-components/p-5d99dbc9.js +0 -1
  971. package/dist/mint-components/p-641f968d.system.js +0 -1
  972. package/dist/mint-components/p-686dd5eb.system.js +0 -1
  973. package/dist/mint-components/p-6b5528b1.entry.js +0 -33
  974. package/dist/mint-components/p-6c3a1d86.js +0 -1
  975. package/dist/mint-components/p-6c8758ac.entry.js +0 -1
  976. package/dist/mint-components/p-6dffb326.entry.js +0 -13
  977. package/dist/mint-components/p-6e9738a4.js +0 -1
  978. package/dist/mint-components/p-6f8dde97.system.js +0 -1
  979. package/dist/mint-components/p-7010498f.js +0 -1
  980. package/dist/mint-components/p-7062154c.system.js +0 -1
  981. package/dist/mint-components/p-717fa601.js +0 -1
  982. package/dist/mint-components/p-732907b1.system.entry.js +0 -1
  983. package/dist/mint-components/p-7562cd98.system.js +0 -1
  984. package/dist/mint-components/p-7ae8fb53.system.js +0 -1
  985. package/dist/mint-components/p-808f7f22.entry.js +0 -1
  986. package/dist/mint-components/p-80cee817.system.js +0 -1
  987. package/dist/mint-components/p-8452837a.system.js +0 -1
  988. package/dist/mint-components/p-85996c52.system.entry.js +0 -1
  989. package/dist/mint-components/p-8629d0be.system.entry.js +0 -1
  990. package/dist/mint-components/p-86c430f8.system.entry.js +0 -1
  991. package/dist/mint-components/p-8707c7fb.entry.js +0 -1
  992. package/dist/mint-components/p-8899ff38.system.entry.js +0 -1
  993. package/dist/mint-components/p-88a5350b.entry.js +0 -11
  994. package/dist/mint-components/p-8d363802.js +0 -1
  995. package/dist/mint-components/p-93e4954e.entry.js +0 -308
  996. package/dist/mint-components/p-952eefec.system.js +0 -1
  997. package/dist/mint-components/p-95f82a6f.entry.js +0 -9
  998. package/dist/mint-components/p-9715be5b.entry.js +0 -1
  999. package/dist/mint-components/p-97b8073f.system.js +0 -1
  1000. package/dist/mint-components/p-99f7e6f1.js +0 -1
  1001. package/dist/mint-components/p-9f517f81.entry.js +0 -1
  1002. package/dist/mint-components/p-9f7d1197.system.entry.js +0 -1
  1003. package/dist/mint-components/p-a04be06d.system.entry.js +0 -1
  1004. package/dist/mint-components/p-a08157c4.js +0 -1
  1005. package/dist/mint-components/p-a495e3a5.entry.js +0 -1
  1006. package/dist/mint-components/p-a52a961e.entry.js +0 -1
  1007. package/dist/mint-components/p-a6920cc9.system.entry.js +0 -1
  1008. package/dist/mint-components/p-a7fc1e02.js +0 -42
  1009. package/dist/mint-components/p-ab8a551f.system.entry.js +0 -1
  1010. package/dist/mint-components/p-ac65d2c1.entry.js +0 -1
  1011. package/dist/mint-components/p-ad9ea625.system.entry.js +0 -1
  1012. package/dist/mint-components/p-b0aa9348.entry.js +0 -1
  1013. package/dist/mint-components/p-b2295bc5.system.js +0 -1
  1014. package/dist/mint-components/p-b56f3e55.js +0 -1
  1015. package/dist/mint-components/p-b61be711.entry.js +0 -1
  1016. package/dist/mint-components/p-b6504987.system.js +0 -53
  1017. package/dist/mint-components/p-b69dbed8.system.js +0 -1
  1018. package/dist/mint-components/p-b6b5fa4f.system.entry.js +0 -1
  1019. package/dist/mint-components/p-bc625793.system.js +0 -1
  1020. package/dist/mint-components/p-bee4af5d.js +0 -1
  1021. package/dist/mint-components/p-c03131dd.js +0 -1
  1022. package/dist/mint-components/p-c09ae087.system.js +0 -1
  1023. package/dist/mint-components/p-c1086930.js +0 -1
  1024. package/dist/mint-components/p-c50e77ad.entry.js +0 -1
  1025. package/dist/mint-components/p-c5698ef9.system.js +0 -1
  1026. package/dist/mint-components/p-ca872769.system.entry.js +0 -1
  1027. package/dist/mint-components/p-ca90ea64.js +0 -499
  1028. package/dist/mint-components/p-cdf5354f.entry.js +0 -1
  1029. package/dist/mint-components/p-cef45012.js +0 -1
  1030. package/dist/mint-components/p-d028db52.system.entry.js +0 -1
  1031. package/dist/mint-components/p-d0318b41.entry.js +0 -13
  1032. package/dist/mint-components/p-d0ce74bd.system.js +0 -1
  1033. package/dist/mint-components/p-d267f4bb.system.js +0 -1
  1034. package/dist/mint-components/p-d26df2da.entry.js +0 -1
  1035. package/dist/mint-components/p-d3b1ab20.system.entry.js +0 -1
  1036. package/dist/mint-components/p-d463fa82.system.js +0 -1
  1037. package/dist/mint-components/p-d46a048d.system.entry.js +0 -1
  1038. package/dist/mint-components/p-d533ff7b.system.js +0 -271
  1039. package/dist/mint-components/p-d6a7f402.entry.js +0 -1
  1040. package/dist/mint-components/p-d9dbbf22.system.entry.js +0 -1
  1041. package/dist/mint-components/p-db30fbd1.js +0 -13
  1042. package/dist/mint-components/p-de8d7e90.entry.js +0 -17
  1043. package/dist/mint-components/p-df28013f.system.entry.js +0 -1
  1044. package/dist/mint-components/p-dffad4a8.entry.js +0 -1
  1045. package/dist/mint-components/p-e006b6ad.entry.js +0 -1
  1046. package/dist/mint-components/p-e0578030.system.js +0 -1
  1047. package/dist/mint-components/p-e31c7242.system.entry.js +0 -1
  1048. package/dist/mint-components/p-e4eac70d.js +0 -108
  1049. package/dist/mint-components/p-e506bf7f.entry.js +0 -1
  1050. package/dist/mint-components/p-e66187b6.system.entry.js +0 -1
  1051. package/dist/mint-components/p-e7cf6632.js +0 -1
  1052. package/dist/mint-components/p-e7d6e1e0.entry.js +0 -11
  1053. package/dist/mint-components/p-e7e129ac.js +0 -1
  1054. package/dist/mint-components/p-eb992f94.js +0 -1
  1055. package/dist/mint-components/p-ec3e44c8.system.js +0 -1
  1056. package/dist/mint-components/p-ec58040a.system.js +0 -1
  1057. package/dist/mint-components/p-eedda43c.system.js +0 -1
  1058. package/dist/mint-components/p-f0b63c48.entry.js +0 -83
  1059. package/dist/mint-components/p-f1584abb.system.entry.js +0 -1
  1060. package/dist/mint-components/p-f381533a.js +0 -1
  1061. package/dist/mint-components/p-f45e076d.system.js +0 -1
  1062. package/dist/mint-components/p-f507b364.system.entry.js +0 -1
  1063. package/dist/mint-components/p-f69a4eb1.system.entry.js +0 -1
  1064. package/dist/mint-components/p-f89c6a57.system.js +0 -1
  1065. package/dist/mint-components/p-f982278b.entry.js +0 -1
  1066. package/dist/mint-components/p-fbdd8c2a.system.entry.js +0 -1
  1067. package/dist/mint-components/p-fdc4f293.system.entry.js +0 -1
  1068. package/dist/mint-components/p-ff1a5481.system.js +0 -1
@@ -22,6 +22,14 @@ function _interopNamespace(e) {
22
22
 
23
23
  const NAMESPACE = 'mint-components';
24
24
 
25
+ /**
26
+ * Virtual DOM patching algorithm based on Snabbdom by
27
+ * Simon Friis Vindum (@paldepind)
28
+ * Licensed under the MIT License
29
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
+ *
31
+ * Modified for Stencil's renderer and slot projection
32
+ */
25
33
  let scopeId;
26
34
  let contentRef;
27
35
  let hostTagName;
@@ -31,32 +39,10 @@ let checkSlotRelocate = false;
31
39
  let isSvgMode = false;
32
40
  let renderingRef = null;
33
41
  let queuePending = false;
34
- const win = typeof window !== 'undefined' ? window : {};
35
- const doc = win.document || { head: {} };
36
- const H = (win.HTMLElement || class {
37
- });
38
- const plt = {
39
- $flags$: 0,
40
- $resourcesUrl$: '',
41
- jmp: h => h(),
42
- raf: h => requestAnimationFrame(h),
43
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
44
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
45
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
42
+ const getAssetPath = (path) => {
43
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
44
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
46
45
  };
47
- const supportsShadow = true;
48
- const promiseResolve = (v) => Promise.resolve(v);
49
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
50
- try {
51
- new CSSStyleSheet();
52
- return typeof (new CSSStyleSheet()).replace === 'function';
53
- }
54
- catch (e) { }
55
- return false;
56
- })()
57
- ;
58
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit!important}';
59
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
60
46
  const createTime = (fnName, tagName = '') => {
61
47
  {
62
48
  return () => {
@@ -71,71 +57,8 @@ const uniqueTime = (key, measureText) => {
71
57
  };
72
58
  }
73
59
  };
74
- const rootAppliedStyles = new WeakMap();
75
- const registerStyle = (scopeId, cssText, allowCS) => {
76
- let style = styles.get(scopeId);
77
- if (supportsConstructibleStylesheets && allowCS) {
78
- style = (style || new CSSStyleSheet());
79
- style.replace(cssText);
80
- }
81
- else {
82
- style = cssText;
83
- }
84
- styles.set(scopeId, style);
85
- };
86
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
87
- let scopeId = getScopeId(cmpMeta);
88
- let style = styles.get(scopeId);
89
- // if an element is NOT connected then getRootNode() will return the wrong root node
90
- // so the fallback is to always use the document for the root node in those cases
91
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
92
- if (style) {
93
- if (typeof style === 'string') {
94
- styleContainerNode = styleContainerNode.head || styleContainerNode;
95
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
96
- let styleElm;
97
- if (!appliedStyles) {
98
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
99
- }
100
- if (!appliedStyles.has(scopeId)) {
101
- {
102
- {
103
- styleElm = doc.createElement('style');
104
- styleElm.innerHTML = style;
105
- }
106
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
107
- }
108
- if (appliedStyles) {
109
- appliedStyles.add(scopeId);
110
- }
111
- }
112
- }
113
- else if ( !styleContainerNode.adoptedStyleSheets.includes(style)) {
114
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
115
- }
116
- }
117
- return scopeId;
118
- };
119
- const attachStyles = (hostRef) => {
120
- const cmpMeta = hostRef.$cmpMeta$;
121
- const elm = hostRef.$hostElement$;
122
- const flags = cmpMeta.$flags$;
123
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
124
- const scopeId = addStyle( elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
125
- if ( flags & 10 /* needsScopedEncapsulation */) {
126
- // only required when we're NOT using native shadow dom (slot)
127
- // or this browser doesn't support native shadow dom
128
- // and this host element was NOT created with SSR
129
- // let's pick out the inner content for slot projection
130
- // create a node to represent where the original
131
- // content was first placed, which is useful later on
132
- // DOM WRITE!!
133
- elm['s-sc'] = scopeId;
134
- elm.classList.add(scopeId + '-h');
135
- }
136
- endAttachStyles();
137
- };
138
- const getScopeId = (cmp, mode) => 'sc-' + ( cmp.$tagName$);
60
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit!important}';
61
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
139
62
  /**
140
63
  * Default style mode id
141
64
  */
@@ -155,6 +78,18 @@ const isComplexType = (o) => {
155
78
  o = typeof o;
156
79
  return o === 'object' || o === 'function';
157
80
  };
81
+ /**
82
+ * Helper method for querying a `meta` tag that contains a nonce value
83
+ * out of a DOM's head.
84
+ *
85
+ * @param doc The DOM containing the `head` to query against
86
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
87
+ * exists or the tag has no content.
88
+ */
89
+ function queryNonceMetaTagContent(doc) {
90
+ var _a, _b, _c;
91
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
92
+ }
158
93
  /**
159
94
  * Production h() function based on Preact by
160
95
  * Jason Miller (@developit)
@@ -163,7 +98,6 @@ const isComplexType = (o) => {
163
98
  *
164
99
  * Modified for Stencil's compiler and vdom
165
100
  */
166
- // const stack: any[] = [];
167
101
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
168
102
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
169
103
  const h = (nodeName, vnodeData, ...children) => {
@@ -172,7 +106,7 @@ const h = (nodeName, vnodeData, ...children) => {
172
106
  let slotName = null;
173
107
  let simple = false;
174
108
  let lastSimple = false;
175
- let vNodeChildren = [];
109
+ const vNodeChildren = [];
176
110
  const walk = (c) => {
177
111
  for (let i = 0; i < c.length; i++) {
178
112
  child = c[i];
@@ -198,10 +132,10 @@ const h = (nodeName, vnodeData, ...children) => {
198
132
  walk(children);
199
133
  if (vnodeData) {
200
134
  // normalize class / classname attributes
201
- if ( vnodeData.key) {
135
+ if (vnodeData.key) {
202
136
  key = vnodeData.key;
203
137
  }
204
- if ( vnodeData.name) {
138
+ if (vnodeData.name) {
205
139
  slotName = vnodeData.name;
206
140
  }
207
141
  {
@@ -211,12 +145,12 @@ const h = (nodeName, vnodeData, ...children) => {
211
145
  typeof classData !== 'object'
212
146
  ? classData
213
147
  : Object.keys(classData)
214
- .filter(k => classData[k])
148
+ .filter((k) => classData[k])
215
149
  .join(' ');
216
150
  }
217
151
  }
218
152
  }
219
- if ( typeof nodeName === 'function') {
153
+ if (typeof nodeName === 'function') {
220
154
  // nodeName is a functional component
221
155
  return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
222
156
  }
@@ -233,6 +167,14 @@ const h = (nodeName, vnodeData, ...children) => {
233
167
  }
234
168
  return vnode;
235
169
  };
170
+ /**
171
+ * A utility function for creating a virtual DOM node from a tag and some
172
+ * possible text content.
173
+ *
174
+ * @param tag the tag for this element
175
+ * @param text possible text content for the node
176
+ * @returns a newly-minted virtual DOM node
177
+ */
236
178
  const newVNode = (tag, text) => {
237
179
  const vnode = {
238
180
  $flags$: 0,
@@ -253,11 +195,31 @@ const newVNode = (tag, text) => {
253
195
  return vnode;
254
196
  };
255
197
  const Host = {};
198
+ /**
199
+ * Check whether a given node is a Host node or not
200
+ *
201
+ * @param node the virtual DOM node to check
202
+ * @returns whether it's a Host node or not
203
+ */
256
204
  const isHost = (node) => node && node.$tag$ === Host;
205
+ /**
206
+ * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
207
+ *
208
+ * Note that these functions convert from {@link d.VNode} to
209
+ * {@link d.ChildNode} to give functional component developers a friendly
210
+ * interface.
211
+ */
257
212
  const vdomFnUtils = {
258
213
  forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
259
214
  map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
260
215
  };
216
+ /**
217
+ * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
218
+ * friendlier public interface (hence, 'convertToPublic').
219
+ *
220
+ * @param node the virtual DOM node to convert
221
+ * @returns a converted child node
222
+ */
261
223
  const convertToPublic = (node) => ({
262
224
  vattrs: node.$attrs$,
263
225
  vchildren: node.$children$,
@@ -266,6 +228,15 @@ const convertToPublic = (node) => ({
266
228
  vtag: node.$tag$,
267
229
  vtext: node.$text$,
268
230
  });
231
+ /**
232
+ * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
233
+ * order to use the resulting object in the virtual DOM. The initial object was
234
+ * likely created as part of presenting a public API, so converting it back
235
+ * involved making it 'private' again (hence, `convertToPrivate`).
236
+ *
237
+ * @param node the child node to convert
238
+ * @returns a converted virtual DOM node
239
+ */
269
240
  const convertToPrivate = (node) => {
270
241
  if (typeof node.vtag === 'function') {
271
242
  const vnodeData = Object.assign({}, node.vattrs);
@@ -284,6 +255,155 @@ const convertToPrivate = (node) => {
284
255
  vnode.$name$ = node.vname;
285
256
  return vnode;
286
257
  };
258
+ /**
259
+ * Parse a new property value for a given property type.
260
+ *
261
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
262
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
263
+ * 1. `any`, the type given to `propValue` in the function signature
264
+ * 2. the type stored from `propType`.
265
+ *
266
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
267
+ *
268
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
269
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
270
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
271
+ * ```tsx
272
+ * <my-cmp prop-val={0}></my-cmp>
273
+ * ```
274
+ *
275
+ * HTML prop values on the other hand, will always a string
276
+ *
277
+ * @param propValue the new value to coerce to some type
278
+ * @param propType the type of the prop, expressed as a binary number
279
+ * @returns the parsed/coerced value
280
+ */
281
+ const parsePropertyValue = (propValue, propType) => {
282
+ // ensure this value is of the correct prop type
283
+ if (propValue != null && !isComplexType(propValue)) {
284
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
285
+ // per the HTML spec, any string value means it is a boolean true value
286
+ // but we'll cheat here and say that the string "false" is the boolean false
287
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
288
+ }
289
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
290
+ // force it to be a number
291
+ return parseFloat(propValue);
292
+ }
293
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
294
+ // could have been passed as a number or boolean
295
+ // but we still want it as a string
296
+ return String(propValue);
297
+ }
298
+ // redundant return here for better minification
299
+ return propValue;
300
+ }
301
+ // not sure exactly what type we want
302
+ // so no need to change to a different type
303
+ return propValue;
304
+ };
305
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
306
+ const createEvent = (ref, name, flags) => {
307
+ const elm = getElement(ref);
308
+ return {
309
+ emit: (detail) => {
310
+ return emitEvent(elm, name, {
311
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
312
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
313
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
314
+ detail,
315
+ });
316
+ },
317
+ };
318
+ };
319
+ /**
320
+ * Helper function to create & dispatch a custom Event on a provided target
321
+ * @param elm the target of the Event
322
+ * @param name the name to give the custom Event
323
+ * @param opts options for configuring a custom Event
324
+ * @returns the custom Event
325
+ */
326
+ const emitEvent = (elm, name, opts) => {
327
+ const ev = plt.ce(name, opts);
328
+ elm.dispatchEvent(ev);
329
+ return ev;
330
+ };
331
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
332
+ const registerStyle = (scopeId, cssText, allowCS) => {
333
+ let style = styles.get(scopeId);
334
+ if (supportsConstructableStylesheets && allowCS) {
335
+ style = (style || new CSSStyleSheet());
336
+ if (typeof style === 'string') {
337
+ style = cssText;
338
+ }
339
+ else {
340
+ style.replaceSync(cssText);
341
+ }
342
+ }
343
+ else {
344
+ style = cssText;
345
+ }
346
+ styles.set(scopeId, style);
347
+ };
348
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
349
+ var _a;
350
+ let scopeId = getScopeId(cmpMeta);
351
+ const style = styles.get(scopeId);
352
+ // if an element is NOT connected then getRootNode() will return the wrong root node
353
+ // so the fallback is to always use the document for the root node in those cases
354
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
355
+ if (style) {
356
+ if (typeof style === 'string') {
357
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
358
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
359
+ let styleElm;
360
+ if (!appliedStyles) {
361
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
362
+ }
363
+ if (!appliedStyles.has(scopeId)) {
364
+ {
365
+ {
366
+ styleElm = doc.createElement('style');
367
+ styleElm.innerHTML = style;
368
+ }
369
+ // Apply CSP nonce to the style tag if it exists
370
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
371
+ if (nonce != null) {
372
+ styleElm.setAttribute('nonce', nonce);
373
+ }
374
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
375
+ }
376
+ if (appliedStyles) {
377
+ appliedStyles.add(scopeId);
378
+ }
379
+ }
380
+ }
381
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
382
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
383
+ }
384
+ }
385
+ return scopeId;
386
+ };
387
+ const attachStyles = (hostRef) => {
388
+ const cmpMeta = hostRef.$cmpMeta$;
389
+ const elm = hostRef.$hostElement$;
390
+ const flags = cmpMeta.$flags$;
391
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
392
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
393
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
394
+ // only required when we're NOT using native shadow dom (slot)
395
+ // or this browser doesn't support native shadow dom
396
+ // and this host element was NOT created with SSR
397
+ // let's pick out the inner content for slot projection
398
+ // create a node to represent where the original
399
+ // content was first placed, which is useful later on
400
+ // DOM WRITE!!
401
+ elm['s-sc'] = scopeId;
402
+ elm.classList.add(scopeId + '-h');
403
+ }
404
+ endAttachStyles();
405
+ };
406
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
287
407
  /**
288
408
  * Production setAccessor() function based on Preact by
289
409
  * Jason Miller (@developit)
@@ -296,19 +416,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
296
416
  if (oldValue !== newValue) {
297
417
  let isProp = isMemberInElement(elm, memberName);
298
418
  let ln = memberName.toLowerCase();
299
- if ( memberName === 'class') {
419
+ if (memberName === 'class') {
300
420
  const classList = elm.classList;
301
421
  const oldClasses = parseClassList(oldValue);
302
422
  const newClasses = parseClassList(newValue);
303
- classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
304
- classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
423
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
424
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
305
425
  }
306
- else if ( memberName === 'style') {
426
+ else if (memberName === 'style') {
307
427
  // update style attribute, css properties and values
308
428
  {
309
429
  for (const prop in oldValue) {
310
430
  if (!newValue || newValue[prop] == null) {
311
- if ( prop.includes('-')) {
431
+ if (prop.includes('-')) {
312
432
  elm.style.removeProperty(prop);
313
433
  }
314
434
  else {
@@ -319,7 +439,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
319
439
  }
320
440
  for (const prop in newValue) {
321
441
  if (!oldValue || newValue[prop] !== oldValue[prop]) {
322
- if ( prop.includes('-')) {
442
+ if (prop.includes('-')) {
323
443
  elm.style.setProperty(prop, newValue[prop]);
324
444
  }
325
445
  else {
@@ -328,15 +448,17 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
328
448
  }
329
449
  }
330
450
  }
331
- else if ( memberName === 'key')
451
+ else if (memberName === 'key')
332
452
  ;
333
- else if ( memberName === 'ref') {
453
+ else if (memberName === 'ref') {
334
454
  // minifier will clean this up
335
455
  if (newValue) {
336
456
  newValue(elm);
337
457
  }
338
458
  }
339
- else if ( ( !isProp ) && memberName[0] === 'o' && memberName[1] === 'n') {
459
+ else if ((!isProp ) &&
460
+ memberName[0] === 'o' &&
461
+ memberName[1] === 'n') {
340
462
  // Event Handlers
341
463
  // so if the member name starts with "on" and the 3rd characters is
342
464
  // a capital letter, and it's not already a member on the element,
@@ -379,11 +501,10 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
379
501
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
380
502
  try {
381
503
  if (!elm.tagName.includes('-')) {
382
- let n = newValue == null ? '' : newValue;
504
+ const n = newValue == null ? '' : newValue;
383
505
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
384
506
  if (memberName === 'list') {
385
507
  isProp = false;
386
- // tslint:disable-next-line: triple-equals
387
508
  }
388
509
  else if (oldValue == null || elm[memberName] != n) {
389
510
  elm[memberName] = n;
@@ -411,7 +532,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
411
532
  }
412
533
  if (newValue == null || newValue === false) {
413
534
  if (newValue !== false || elm.getAttribute(memberName) === '') {
414
- if ( xlink) {
535
+ if (xlink) {
415
536
  elm.removeAttributeNS(XLINK_NS, memberName);
416
537
  }
417
538
  else {
@@ -419,9 +540,9 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
419
540
  }
420
541
  }
421
542
  }
422
- else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
543
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
423
544
  newValue = newValue === true ? '' : newValue;
424
- if ( xlink) {
545
+ if (xlink) {
425
546
  elm.setAttributeNS(XLINK_NS, memberName, newValue);
426
547
  }
427
548
  else {
@@ -437,7 +558,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
437
558
  // if the element passed in is a shadow root, which is a document fragment
438
559
  // then we want to be adding attrs/props to the shadow root's "host" element
439
560
  // if it's not a shadow root, then we add attrs/props to the same element
440
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
561
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
562
+ ? newVnode.$elm$.host
563
+ : newVnode.$elm$;
441
564
  const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
442
565
  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
443
566
  {
@@ -453,14 +576,24 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
453
576
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
454
577
  }
455
578
  };
579
+ /**
580
+ * Create a DOM Node corresponding to one of the children of a given VNode.
581
+ *
582
+ * @param oldParentVNode the parent VNode from the previous render
583
+ * @param newParentVNode the parent VNode from the current render
584
+ * @param childIndex the index of the VNode, in the _new_ parent node's
585
+ * children, for which we will create a new DOM node
586
+ * @param parentElm the parent DOM node which our new node will be a child of
587
+ * @returns the newly created node
588
+ */
456
589
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
457
590
  // tslint:disable-next-line: prefer-const
458
- let newVNode = newParentVNode.$children$[childIndex];
591
+ const newVNode = newParentVNode.$children$[childIndex];
459
592
  let i = 0;
460
593
  let elm;
461
594
  let childNode;
462
595
  let oldVNode;
463
- if ( !useNativeShadowDom) {
596
+ if (!useNativeShadowDom) {
464
597
  // remember for later we need to check to relocate nodes
465
598
  checkSlotRelocate = true;
466
599
  if (newVNode.$tag$ === 'slot') {
@@ -470,34 +603,37 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
470
603
  }
471
604
  newVNode.$flags$ |= newVNode.$children$
472
605
  ? // slot element has fallback content
473
- 2 /* isSlotFallback */
606
+ 2 /* VNODE_FLAGS.isSlotFallback */
474
607
  : // slot element does not have fallback content
475
- 1 /* isSlotReference */;
608
+ 1 /* VNODE_FLAGS.isSlotReference */;
476
609
  }
477
610
  }
478
- if ( newVNode.$text$ !== null) {
611
+ if (newVNode.$text$ !== null) {
479
612
  // create text node
480
613
  elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
481
614
  }
482
- else if ( newVNode.$flags$ & 1 /* isSlotReference */) {
615
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
483
616
  // create a slot reference node
484
- elm = newVNode.$elm$ = doc.createTextNode('');
617
+ elm = newVNode.$elm$ =
618
+ doc.createTextNode('');
485
619
  }
486
620
  else {
487
- if ( !isSvgMode) {
621
+ if (!isSvgMode) {
488
622
  isSvgMode = newVNode.$tag$ === 'svg';
489
623
  }
490
624
  // create element
491
- elm = newVNode.$elm$ = ( doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$)
625
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
626
+ ? 'slot-fb'
627
+ : newVNode.$tag$)
492
628
  );
493
- if ( isSvgMode && newVNode.$tag$ === 'foreignObject') {
629
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
494
630
  isSvgMode = false;
495
631
  }
496
632
  // add css classes, attrs, props, listeners, etc.
497
633
  {
498
634
  updateElement(null, newVNode, isSvgMode);
499
635
  }
500
- if ( isDef(scopeId) && elm['s-si'] !== scopeId) {
636
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
501
637
  // if there is a scopeId and this is the initial render
502
638
  // then let's add the scopeId as a css class
503
639
  elm.classList.add((elm['s-si'] = scopeId));
@@ -526,7 +662,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
526
662
  }
527
663
  {
528
664
  elm['s-hn'] = hostTagName;
529
- if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
665
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
530
666
  // remember the content reference comment
531
667
  elm['s-sr'] = true;
532
668
  // remember the content reference comment
@@ -545,7 +681,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
545
681
  return elm;
546
682
  };
547
683
  const putBackInOriginalLocation = (parentElm, recursive) => {
548
- plt.$flags$ |= 1 /* isTmpDisconnected */;
684
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
549
685
  const oldSlotChildNodes = parentElm.childNodes;
550
686
  for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
551
687
  const childNode = oldSlotChildNodes[i];
@@ -566,12 +702,27 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
566
702
  putBackInOriginalLocation(childNode, recursive);
567
703
  }
568
704
  }
569
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
705
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
570
706
  };
707
+ /**
708
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
709
+ * add them to the DOM in the appropriate place.
710
+ *
711
+ * @param parentElm the DOM node which should be used as a parent for the new
712
+ * DOM nodes
713
+ * @param before a child of the `parentElm` which the new children should be
714
+ * inserted before (optional)
715
+ * @param parentVNode the parent virtual DOM node
716
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
717
+ * @param startIdx the index in the child virtual DOM nodes at which to start
718
+ * creating DOM nodes (inclusive)
719
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
720
+ * creating DOM nodes (inclusive)
721
+ */
571
722
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
572
- let containerElm = (( parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
723
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
573
724
  let childNode;
574
- if ( containerElm.shadowRoot && containerElm.tagName === hostTagName) {
725
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
575
726
  containerElm = containerElm.shadowRoot;
576
727
  }
577
728
  for (; startIdx <= endIdx; ++startIdx) {
@@ -579,11 +730,24 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
579
730
  childNode = createElm(null, parentVNode, startIdx, parentElm);
580
731
  if (childNode) {
581
732
  vnodes[startIdx].$elm$ = childNode;
582
- containerElm.insertBefore(childNode, referenceNode(before) );
733
+ containerElm.insertBefore(childNode, referenceNode(before) );
583
734
  }
584
735
  }
585
736
  }
586
737
  };
738
+ /**
739
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
740
+ * This can be used to, for instance, clean up after a list of children which
741
+ * should no longer be shown.
742
+ *
743
+ * This function also handles some of Stencil's slot relocation logic.
744
+ *
745
+ * @param vnodes a list of virtual DOM nodes to remove
746
+ * @param startIdx the index at which to start removing nodes (inclusive)
747
+ * @param endIdx the index at which to stop removing nodes (inclusive)
748
+ * @param vnode a VNode
749
+ * @param elm an element
750
+ */
587
751
  const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
588
752
  for (; startIdx <= endIdx; ++startIdx) {
589
753
  if ((vnode = vnodes[startIdx])) {
@@ -608,6 +772,74 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
608
772
  }
609
773
  }
610
774
  };
775
+ /**
776
+ * Reconcile the children of a new VNode with the children of an old VNode by
777
+ * traversing the two collections of children, identifying nodes that are
778
+ * conserved or changed, calling out to `patch` to make any necessary
779
+ * updates to the DOM, and rearranging DOM nodes as needed.
780
+ *
781
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
782
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
783
+ * 'windows' by storing start and end indices and references to the
784
+ * corresponding array entries. Initially the two 'windows' are basically equal
785
+ * to the entire array, but we progressively narrow the windows until there are
786
+ * no children left to update by doing the following:
787
+ *
788
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
789
+ * that if we have an initial array like the following we'll end up dealing
790
+ * only with a window bounded by the highlighted elements:
791
+ *
792
+ * [null, null, VNode1 , ... , VNode2, null, null]
793
+ * ^^^^^^ ^^^^^^
794
+ *
795
+ * 2. Check to see if the elements at the head and tail positions are equal
796
+ * across the windows. This will basically detect elements which haven't
797
+ * been added, removed, or changed position, i.e. if you had the following
798
+ * VNode elements (represented as HTML):
799
+ *
800
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
801
+ * newVNode: `<div><p><span>THERE</span></p></div>`
802
+ *
803
+ * Then when comparing the children of the `<div>` tag we check the equality
804
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
805
+ * same tag in the same position, we'd be able to avoid completely
806
+ * re-rendering the subtree under them with a new DOM element and would just
807
+ * call out to `patch` to handle reconciling their children and so on.
808
+ *
809
+ * 3. Check, for both windows, to see if the element at the beginning of the
810
+ * window corresponds to the element at the end of the other window. This is
811
+ * a heuristic which will let us identify _some_ situations in which
812
+ * elements have changed position, for instance it _should_ detect that the
813
+ * children nodes themselves have not changed but merely moved in the
814
+ * following example:
815
+ *
816
+ * oldVNode: `<div><element-one /><element-two /></div>`
817
+ * newVNode: `<div><element-two /><element-one /></div>`
818
+ *
819
+ * If we find cases like this then we also need to move the concrete DOM
820
+ * elements corresponding to the moved children to write the re-order to the
821
+ * DOM.
822
+ *
823
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
824
+ * nodes in the old children which have the same key as the first element in
825
+ * our window on the new children. If we find such a node we handle calling
826
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
827
+ * what we find.
828
+ *
829
+ * Finally, once we've narrowed our 'windows' to the point that either of them
830
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
831
+ * insertion or deletion that needs to happen to get a DOM state that correctly
832
+ * reflects the new child VNodes. If, for instance, after our window on the old
833
+ * children has collapsed we still have more nodes on the new children that
834
+ * we haven't dealt with yet then we need to add them, or if the new children
835
+ * collapse but we still have unhandled _old_ children then we need to make
836
+ * sure the corresponding DOM nodes are removed.
837
+ *
838
+ * @param parentElm the node into which the parent VNode is rendered
839
+ * @param oldCh the old children of the parent node
840
+ * @param newVNode the new VNode which will replace the parent
841
+ * @param newCh the new children of the parent node
842
+ */
611
843
  const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
612
844
  let oldStartIdx = 0;
613
845
  let newStartIdx = 0;
@@ -623,7 +855,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
623
855
  let elmToMove;
624
856
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
625
857
  if (oldStartVnode == null) {
626
- // Vnode might have been moved left
858
+ // VNode might have been moved left
627
859
  oldStartVnode = oldCh[++oldStartIdx];
628
860
  }
629
861
  else if (oldEndVnode == null) {
@@ -636,37 +868,100 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
636
868
  newEndVnode = newCh[--newEndIdx];
637
869
  }
638
870
  else if (isSameVnode(oldStartVnode, newStartVnode)) {
871
+ // if the start nodes are the same then we should patch the new VNode
872
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
873
+ // indices to reflect that. We don't need to move any DOM Nodes around
874
+ // since things are matched up in order.
639
875
  patch(oldStartVnode, newStartVnode);
640
876
  oldStartVnode = oldCh[++oldStartIdx];
641
877
  newStartVnode = newCh[++newStartIdx];
642
878
  }
643
879
  else if (isSameVnode(oldEndVnode, newEndVnode)) {
880
+ // likewise, if the end nodes are the same we patch new onto old and
881
+ // decrement our end indices, and also likewise in this case we don't
882
+ // need to move any DOM Nodes.
644
883
  patch(oldEndVnode, newEndVnode);
645
884
  oldEndVnode = oldCh[--oldEndIdx];
646
885
  newEndVnode = newCh[--newEndIdx];
647
886
  }
648
887
  else if (isSameVnode(oldStartVnode, newEndVnode)) {
649
- // Vnode moved right
650
- if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
888
+ // case: "Vnode moved right"
889
+ //
890
+ // We've found that the last node in our window on the new children is
891
+ // the same VNode as the _first_ node in our window on the old children
892
+ // we're dealing with now. Visually, this is the layout of these two
893
+ // nodes:
894
+ //
895
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
896
+ // ^^^^^^^^^^^
897
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
898
+ // ^^^^^^^^^^^^^
899
+ //
900
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
901
+ // and move the DOM element for `oldStartVnode`.
902
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
651
903
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
652
904
  }
653
905
  patch(oldStartVnode, newEndVnode);
906
+ // We need to move the element for `oldStartVnode` into a position which
907
+ // will be appropriate for `newEndVnode`. For this we can use
908
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
909
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
910
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
911
+ //
912
+ // <old-start-node />
913
+ // <some-intervening-node />
914
+ // <old-end-node />
915
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
916
+ // <next-sibling />
917
+ //
918
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
919
+ // the node for `oldStartVnode` at the end of the children of
920
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
921
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
922
+ // append it to the children of the parent element.
654
923
  parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
655
924
  oldStartVnode = oldCh[++oldStartIdx];
656
925
  newEndVnode = newCh[--newEndIdx];
657
926
  }
658
927
  else if (isSameVnode(oldEndVnode, newStartVnode)) {
659
- // Vnode moved left
660
- if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
928
+ // case: "Vnode moved left"
929
+ //
930
+ // We've found that the first node in our window on the new children is
931
+ // the same VNode as the _last_ node in our window on the old children.
932
+ // Visually, this is the layout of these two nodes:
933
+ //
934
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
935
+ // ^^^^^^^^^^^^^
936
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
937
+ // ^^^^^^^^^^^
938
+ //
939
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
940
+ // (which will handle updating any changed attributes, reconciling their
941
+ // children etc) but we also need to move the DOM node to which
942
+ // `oldEndVnode` corresponds.
943
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
661
944
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
662
945
  }
663
946
  patch(oldEndVnode, newStartVnode);
947
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
948
+ // the same node, so since we're here we know that they are not. Thus we
949
+ // can move the element for `oldEndVnode` _before_ the element for
950
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
951
+ // future.
664
952
  parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
665
953
  oldEndVnode = oldCh[--oldEndIdx];
666
954
  newStartVnode = newCh[++newStartIdx];
667
955
  }
668
956
  else {
669
- // createKeyToOldIdx
957
+ // Here we do some checks to match up old and new nodes based on the
958
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
959
+ // in the JSX for a DOM element in the implementation of a Stencil
960
+ // component.
961
+ //
962
+ // First we check to see if there are any nodes in the array of old
963
+ // children which have the same key as the first node in the new
964
+ // children.
670
965
  idxInOld = -1;
671
966
  {
672
967
  for (i = oldStartIdx; i <= oldEndIdx; ++i) {
@@ -676,24 +971,33 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
676
971
  }
677
972
  }
678
973
  }
679
- if ( idxInOld >= 0) {
974
+ if (idxInOld >= 0) {
975
+ // We found a node in the old children which matches up with the first
976
+ // node in the new children! So let's deal with that
680
977
  elmToMove = oldCh[idxInOld];
681
978
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
979
+ // the tag doesn't match so we'll need a new DOM element
682
980
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
683
981
  }
684
982
  else {
685
983
  patch(elmToMove, newStartVnode);
984
+ // invalidate the matching old node so that we won't try to update it
985
+ // again later on
686
986
  oldCh[idxInOld] = undefined;
687
987
  node = elmToMove.$elm$;
688
988
  }
689
989
  newStartVnode = newCh[++newStartIdx];
690
990
  }
691
991
  else {
692
- // new element
992
+ // We either didn't find an element in the old children that matches
993
+ // the key of the first new child OR the build is not using `key`
994
+ // attributes at all. In either case we need to create a new element
995
+ // for the new node.
693
996
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
694
997
  newStartVnode = newCh[++newStartIdx];
695
998
  }
696
999
  if (node) {
1000
+ // if we created a new node then handle inserting it to the DOM
697
1001
  {
698
1002
  parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
699
1003
  }
@@ -701,21 +1005,44 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
701
1005
  }
702
1006
  }
703
1007
  if (oldStartIdx > oldEndIdx) {
1008
+ // we have some more new nodes to add which don't match up with old nodes
704
1009
  addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
705
1010
  }
706
- else if ( newStartIdx > newEndIdx) {
1011
+ else if (newStartIdx > newEndIdx) {
1012
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
1013
+ // in the new array, so lets remove them (which entails cleaning up the
1014
+ // relevant DOM nodes)
707
1015
  removeVnodes(oldCh, oldStartIdx, oldEndIdx);
708
1016
  }
709
1017
  };
710
- const isSameVnode = (vnode1, vnode2) => {
1018
+ /**
1019
+ * Compare two VNodes to determine if they are the same
1020
+ *
1021
+ * **NB**: This function is an equality _heuristic_ based on the available
1022
+ * information set on the two VNodes and can be misleading under certain
1023
+ * circumstances. In particular, if the two nodes do not have `key` attrs
1024
+ * (available under `$key$` on VNodes) then the function falls back on merely
1025
+ * checking that they have the same tag.
1026
+ *
1027
+ * So, in other words, if `key` attrs are not set on VNodes which may be
1028
+ * changing order within a `children` array or something along those lines then
1029
+ * we could obtain a false negative and then have to do needless re-rendering
1030
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
1031
+ *
1032
+ * @param leftVNode the first VNode to check
1033
+ * @param rightVNode the second VNode to check
1034
+ * @returns whether they're equal or not
1035
+ */
1036
+ const isSameVnode = (leftVNode, rightVNode) => {
711
1037
  // compare if two vnode to see if they're "technically" the same
712
1038
  // need to have the same element tag, and same key to be the same
713
- if (vnode1.$tag$ === vnode2.$tag$) {
714
- if ( vnode1.$tag$ === 'slot') {
715
- return vnode1.$name$ === vnode2.$name$;
1039
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1040
+ if (leftVNode.$tag$ === 'slot') {
1041
+ return leftVNode.$name$ === rightVNode.$name$;
716
1042
  }
1043
+ // this will be set if components in the build have `key` attrs set on them
717
1044
  {
718
- return vnode1.$key$ === vnode2.$key$;
1045
+ return leftVNode.$key$ === rightVNode.$key$;
719
1046
  }
720
1047
  }
721
1048
  return false;
@@ -728,6 +1055,14 @@ const referenceNode = (node) => {
728
1055
  return (node && node['s-ol']) || node;
729
1056
  };
730
1057
  const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1058
+ /**
1059
+ * Handle reconciling an outdated VNode with a new one which corresponds to
1060
+ * it. This function handles flushing updates to the DOM and reconciling the
1061
+ * children of the two nodes (if any).
1062
+ *
1063
+ * @param oldVNode an old VNode whose DOM element and children we want to update
1064
+ * @param newVNode a new VNode representing an updated version of the old one
1065
+ */
731
1066
  const patch = (oldVNode, newVNode) => {
732
1067
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
733
1068
  const oldChildren = oldVNode.$children$;
@@ -735,15 +1070,14 @@ const patch = (oldVNode, newVNode) => {
735
1070
  const tag = newVNode.$tag$;
736
1071
  const text = newVNode.$text$;
737
1072
  let defaultHolder;
738
- if ( text === null) {
1073
+ if (text === null) {
739
1074
  {
740
1075
  // test if we're rendering an svg element, or still rendering nodes inside of one
741
1076
  // only add this to the when the compiler sees we're using an svg somewhere
742
1077
  isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
743
1078
  }
744
- // element node
745
1079
  {
746
- if ( tag === 'slot')
1080
+ if (tag === 'slot')
747
1081
  ;
748
1082
  else {
749
1083
  // either this is the first render of an element OR it's an update
@@ -752,32 +1086,33 @@ const patch = (oldVNode, newVNode) => {
752
1086
  updateElement(oldVNode, newVNode, isSvgMode);
753
1087
  }
754
1088
  }
755
- if ( oldChildren !== null && newChildren !== null) {
1089
+ if (oldChildren !== null && newChildren !== null) {
756
1090
  // looks like there's child vnodes for both the old and new vnodes
1091
+ // so we need to call `updateChildren` to reconcile them
757
1092
  updateChildren(elm, oldChildren, newVNode, newChildren);
758
1093
  }
759
1094
  else if (newChildren !== null) {
760
1095
  // no old child vnodes, but there are new child vnodes to add
761
- if ( oldVNode.$text$ !== null) {
1096
+ if (oldVNode.$text$ !== null) {
762
1097
  // the old vnode was text, so be sure to clear it out
763
1098
  elm.textContent = '';
764
1099
  }
765
1100
  // add the new vnode children
766
1101
  addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
767
1102
  }
768
- else if ( oldChildren !== null) {
1103
+ else if (oldChildren !== null) {
769
1104
  // no new child vnodes, but there are old child vnodes to remove
770
1105
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
771
1106
  }
772
- if ( isSvgMode && tag === 'svg') {
1107
+ if (isSvgMode && tag === 'svg') {
773
1108
  isSvgMode = false;
774
1109
  }
775
1110
  }
776
- else if ( (defaultHolder = elm['s-cr'])) {
1111
+ else if ((defaultHolder = elm['s-cr'])) {
777
1112
  // this element has slotted content
778
1113
  defaultHolder.parentNode.textContent = text;
779
1114
  }
780
- else if ( oldVNode.$text$ !== text) {
1115
+ else if (oldVNode.$text$ !== text) {
781
1116
  // update the text content for the text only vnode
782
1117
  // and also only if the text is different than before
783
1118
  elm.data = text;
@@ -785,7 +1120,7 @@ const patch = (oldVNode, newVNode) => {
785
1120
  };
786
1121
  const updateFallbackSlotVisibility = (elm) => {
787
1122
  // tslint:disable-next-line: prefer-const
788
- let childNodes = elm.childNodes;
1123
+ const childNodes = elm.childNodes;
789
1124
  let childNode;
790
1125
  let i;
791
1126
  let ilen;
@@ -794,7 +1129,7 @@ const updateFallbackSlotVisibility = (elm) => {
794
1129
  let nodeType;
795
1130
  for (i = 0, ilen = childNodes.length; i < ilen; i++) {
796
1131
  childNode = childNodes[i];
797
- if (childNode.nodeType === 1 /* ElementNode */) {
1132
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
798
1133
  if (childNode['s-sr']) {
799
1134
  // this is a slot fallback node
800
1135
  // get the slot name for this slot reference node
@@ -806,7 +1141,7 @@ const updateFallbackSlotVisibility = (elm) => {
806
1141
  nodeType = childNodes[j].nodeType;
807
1142
  if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
808
1143
  // this sibling node is from a different component OR is a named fallback slot node
809
- if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1144
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
810
1145
  childNode.hidden = true;
811
1146
  break;
812
1147
  }
@@ -815,8 +1150,8 @@ const updateFallbackSlotVisibility = (elm) => {
815
1150
  // this is a default fallback slot node
816
1151
  // any element or text node (with content)
817
1152
  // should hide the default fallback slot node
818
- if (nodeType === 1 /* ElementNode */ ||
819
- (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
1153
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1154
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
820
1155
  childNode.hidden = true;
821
1156
  break;
822
1157
  }
@@ -838,8 +1173,8 @@ const relocateSlotContent = (elm) => {
838
1173
  let relocateNodeData;
839
1174
  let j;
840
1175
  let i = 0;
841
- let childNodes = elm.childNodes;
842
- let ilen = childNodes.length;
1176
+ const childNodes = elm.childNodes;
1177
+ const ilen = childNodes.length;
843
1178
  for (; i < ilen; i++) {
844
1179
  childNode = childNodes[i];
845
1180
  if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
@@ -855,7 +1190,7 @@ const relocateSlotContent = (elm) => {
855
1190
  // that is suppose to always represent the original content location
856
1191
  if (isNodeLocatedInSlot(node, slotNameAttr)) {
857
1192
  // it's possible we've already decided to relocate this node
858
- relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
1193
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
859
1194
  // made some changes to slots
860
1195
  // let's make sure we also double check
861
1196
  // fallbacks are correctly hidden or shown
@@ -874,9 +1209,9 @@ const relocateSlotContent = (elm) => {
874
1209
  });
875
1210
  }
876
1211
  if (node['s-sr']) {
877
- relocateNodes.map(relocateNode => {
1212
+ relocateNodes.map((relocateNode) => {
878
1213
  if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
879
- relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
1214
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
880
1215
  if (relocateNodeData && !relocateNode.$slotRefNode$) {
881
1216
  relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
882
1217
  }
@@ -884,7 +1219,7 @@ const relocateSlotContent = (elm) => {
884
1219
  });
885
1220
  }
886
1221
  }
887
- else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
1222
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
888
1223
  // so far this element does not have a slot home, not setting slotRefNode on purpose
889
1224
  // if we never find a home for this element then we'll need to hide it
890
1225
  relocateNodes.push({
@@ -894,13 +1229,13 @@ const relocateSlotContent = (elm) => {
894
1229
  }
895
1230
  }
896
1231
  }
897
- if (childNode.nodeType === 1 /* ElementNode */) {
1232
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
898
1233
  relocateSlotContent(childNode);
899
1234
  }
900
1235
  }
901
1236
  };
902
1237
  const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
903
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1238
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
904
1239
  if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
905
1240
  return true;
906
1241
  }
@@ -920,6 +1255,18 @@ const callNodeRefs = (vNode) => {
920
1255
  vNode.$children$ && vNode.$children$.map(callNodeRefs);
921
1256
  }
922
1257
  };
1258
+ /**
1259
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1260
+ *
1261
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1262
+ * function will handle creating a virtual DOM tree with a single root, patching
1263
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1264
+ * relocation, and reflecting attributes.
1265
+ *
1266
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1267
+ * the DOM node into which it should be rendered.
1268
+ * @param renderFnResults the virtual DOM nodes to be rendered
1269
+ */
923
1270
  const renderVdom = (hostRef, renderFnResults) => {
924
1271
  const hostElm = hostRef.$hostElement$;
925
1272
  const cmpMeta = hostRef.$cmpMeta$;
@@ -927,15 +1274,15 @@ const renderVdom = (hostRef, renderFnResults) => {
927
1274
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
928
1275
  hostTagName = hostElm.tagName;
929
1276
  rootVnode.$tag$ = null;
930
- rootVnode.$flags$ |= 4 /* isHost */;
1277
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
931
1278
  hostRef.$vnode$ = rootVnode;
932
- rootVnode.$elm$ = oldVNode.$elm$ = ( hostElm.shadowRoot || hostElm );
1279
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
933
1280
  {
934
1281
  scopeId = hostElm['s-sc'];
935
1282
  }
936
1283
  {
937
1284
  contentRef = hostElm['s-cr'];
938
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1285
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
939
1286
  // always reset
940
1287
  checkSlotFallbackVisibility = false;
941
1288
  }
@@ -944,7 +1291,7 @@ const renderVdom = (hostRef, renderFnResults) => {
944
1291
  {
945
1292
  // while we're moving nodes around existing nodes, temporarily disable
946
1293
  // the disconnectCallback from working
947
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1294
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
948
1295
  if (checkSlotRelocate) {
949
1296
  relocateSlotContent(rootVnode.$elm$);
950
1297
  let relocateData;
@@ -960,7 +1307,8 @@ const renderVdom = (hostRef, renderFnResults) => {
960
1307
  if (!nodeToRelocate['s-ol']) {
961
1308
  // add a reference node marking this node's original location
962
1309
  // keep a reference to this node for later lookups
963
- orgLocationNode = doc.createTextNode('');
1310
+ orgLocationNode =
1311
+ doc.createTextNode('');
964
1312
  orgLocationNode['s-nr'] = nodeToRelocate;
965
1313
  nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
966
1314
  }
@@ -984,7 +1332,8 @@ const renderVdom = (hostRef, renderFnResults) => {
984
1332
  }
985
1333
  }
986
1334
  }
987
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) || nodeToRelocate.nextSibling !== insertBeforeNode) {
1335
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1336
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
988
1337
  // we've checked that it's worth while to relocate
989
1338
  // since that the node to relocate
990
1339
  // has a different next sibling or parent relocated
@@ -1000,7 +1349,7 @@ const renderVdom = (hostRef, renderFnResults) => {
1000
1349
  }
1001
1350
  else {
1002
1351
  // this node doesn't have a slot home to go to, so let's hide it
1003
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1352
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1004
1353
  nodeToRelocate.hidden = true;
1005
1354
  }
1006
1355
  }
@@ -1011,41 +1360,22 @@ const renderVdom = (hostRef, renderFnResults) => {
1011
1360
  }
1012
1361
  // done moving nodes around
1013
1362
  // allow the disconnect callback to work again
1014
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1363
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1015
1364
  // always reset
1016
1365
  relocateNodes.length = 0;
1017
1366
  }
1018
1367
  };
1019
- const getElement = (ref) => ( getHostRef(ref).$hostElement$ );
1020
- const createEvent = (ref, name, flags) => {
1021
- const elm = getElement(ref);
1022
- return {
1023
- emit: (detail) => {
1024
- return emitEvent(elm, name, {
1025
- bubbles: !!(flags & 4 /* Bubbles */),
1026
- composed: !!(flags & 2 /* Composed */),
1027
- cancelable: !!(flags & 1 /* Cancellable */),
1028
- detail,
1029
- });
1030
- },
1031
- };
1032
- };
1033
- const emitEvent = (elm, name, opts) => {
1034
- const ev = plt.ce(name, opts);
1035
- elm.dispatchEvent(ev);
1036
- return ev;
1037
- };
1038
1368
  const attachToAncestor = (hostRef, ancestorComponent) => {
1039
- if ( ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1040
- ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
1369
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1370
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1041
1371
  }
1042
1372
  };
1043
1373
  const scheduleUpdate = (hostRef, isInitialLoad) => {
1044
1374
  {
1045
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1375
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1046
1376
  }
1047
- if ( hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1048
- hostRef.$flags$ |= 512 /* needsRerender */;
1377
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1378
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1049
1379
  return;
1050
1380
  }
1051
1381
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
@@ -1053,11 +1383,11 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
1053
1383
  // has already fired off its lifecycle update then
1054
1384
  // fire off the initial update
1055
1385
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1056
- return writeTask(dispatch) ;
1386
+ return writeTask(dispatch) ;
1057
1387
  };
1058
1388
  const dispatchHooks = (hostRef, isInitialLoad) => {
1059
1389
  const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1060
- const instance = hostRef.$lazyInstance$ ;
1390
+ const instance = hostRef.$lazyInstance$ ;
1061
1391
  let promise;
1062
1392
  if (isInitialLoad) {
1063
1393
  {
@@ -1072,7 +1402,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1072
1402
  const elm = hostRef.$hostElement$;
1073
1403
  const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1074
1404
  const rc = elm['s-rc'];
1075
- if ( isInitialLoad) {
1405
+ if (isInitialLoad) {
1076
1406
  // DOM WRITE!
1077
1407
  attachStyles(hostRef);
1078
1408
  }
@@ -1080,11 +1410,11 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1080
1410
  {
1081
1411
  callRender(hostRef, instance);
1082
1412
  }
1083
- if ( rc) {
1413
+ if (rc) {
1084
1414
  // ok, so turns out there are some child host elements
1085
1415
  // waiting on this parent element to load
1086
1416
  // let's fire off all update callbacks waiting
1087
- rc.map(cb => cb());
1417
+ rc.map((cb) => cb());
1088
1418
  elm['s-rc'] = undefined;
1089
1419
  }
1090
1420
  endRender();
@@ -1097,7 +1427,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1097
1427
  }
1098
1428
  else {
1099
1429
  Promise.all(childrenPromises).then(postUpdate);
1100
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1430
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1101
1431
  childrenPromises.length = 0;
1102
1432
  }
1103
1433
  }
@@ -1105,12 +1435,12 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1105
1435
  const callRender = (hostRef, instance, elm) => {
1106
1436
  try {
1107
1437
  renderingRef = instance;
1108
- instance = instance.render() ;
1438
+ instance = instance.render() ;
1109
1439
  {
1110
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1440
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1111
1441
  }
1112
1442
  {
1113
- hostRef.$flags$ |= 2 /* hasRendered */;
1443
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1114
1444
  }
1115
1445
  {
1116
1446
  {
@@ -1134,10 +1464,10 @@ const postUpdateComponent = (hostRef) => {
1134
1464
  const tagName = hostRef.$cmpMeta$.$tagName$;
1135
1465
  const elm = hostRef.$hostElement$;
1136
1466
  const endPostUpdate = createTime('postUpdate', tagName);
1137
- const instance = hostRef.$lazyInstance$ ;
1467
+ const instance = hostRef.$lazyInstance$ ;
1138
1468
  const ancestorComponent = hostRef.$ancestorComponent$;
1139
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1140
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1469
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1470
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1141
1471
  {
1142
1472
  // DOM WRITE!
1143
1473
  addHydratedFlag(elm);
@@ -1166,10 +1496,10 @@ const postUpdateComponent = (hostRef) => {
1166
1496
  hostRef.$onRenderResolve$();
1167
1497
  hostRef.$onRenderResolve$ = undefined;
1168
1498
  }
1169
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1499
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1170
1500
  nextTick(() => scheduleUpdate(hostRef, false));
1171
1501
  }
1172
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1502
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1173
1503
  }
1174
1504
  // ( •_•)
1175
1505
  // ( •_•)>⌐■-■
@@ -1179,7 +1509,8 @@ const forceUpdate = (ref) => {
1179
1509
  {
1180
1510
  const hostRef = getHostRef(ref);
1181
1511
  const isConnected = hostRef.$hostElement$.isConnected;
1182
- if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1512
+ if (isConnected &&
1513
+ (hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1183
1514
  scheduleUpdate(hostRef, false);
1184
1515
  }
1185
1516
  // Returns "true" when the forced update was successfully scheduled
@@ -1208,45 +1539,25 @@ const safeCall = (instance, method, arg) => {
1208
1539
  const then = (promise, thenFn) => {
1209
1540
  return promise && promise.then ? promise.then(thenFn) : thenFn();
1210
1541
  };
1211
- const addHydratedFlag = (elm) => ( elm.classList.add('hydrated') );
1212
- const parsePropertyValue = (propValue, propType) => {
1213
- // ensure this value is of the correct prop type
1214
- if (propValue != null && !isComplexType(propValue)) {
1215
- if ( propType & 4 /* Boolean */) {
1216
- // per the HTML spec, any string value means it is a boolean true value
1217
- // but we'll cheat here and say that the string "false" is the boolean false
1218
- return propValue === 'false' ? false : propValue === '' || !!propValue;
1219
- }
1220
- if ( propType & 2 /* Number */) {
1221
- // force it to be a number
1222
- return parseFloat(propValue);
1223
- }
1224
- if ( propType & 1 /* String */) {
1225
- // could have been passed as a number or boolean
1226
- // but we still want it as a string
1227
- return String(propValue);
1228
- }
1229
- // redundant return here for better minification
1230
- return propValue;
1231
- }
1232
- // not sure exactly what type we want
1233
- // so no need to change to a different type
1234
- return propValue;
1235
- };
1542
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1543
+ ;
1236
1544
  const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1237
1545
  const setValue = (ref, propName, newVal, cmpMeta) => {
1238
1546
  // check our new property value against our internal value
1239
1547
  const hostRef = getHostRef(ref);
1240
1548
  const oldVal = hostRef.$instanceValues$.get(propName);
1241
1549
  const flags = hostRef.$flags$;
1242
- const instance = hostRef.$lazyInstance$ ;
1550
+ const instance = hostRef.$lazyInstance$ ;
1243
1551
  newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1244
- if (( !(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
1552
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1553
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1554
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1555
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1245
1556
  // gadzooks! the property's value has changed!!
1246
1557
  // set our new value!
1247
1558
  hostRef.$instanceValues$.set(propName, newVal);
1248
- if ( instance) {
1249
- if ( (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1559
+ if (instance) {
1560
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1250
1561
  // looks like this value actually changed, so we've got work to do!
1251
1562
  // but only if we've already rendered, otherwise just chill out
1252
1563
  // queue that we need to do an update, but don't worry about queuing
@@ -1256,13 +1567,24 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1256
1567
  }
1257
1568
  }
1258
1569
  };
1570
+ /**
1571
+ * Attach a series of runtime constructs to a compiled Stencil component
1572
+ * constructor, including getters and setters for the `@Prop` and `@State`
1573
+ * decorators, callbacks for when attributes change, and so on.
1574
+ *
1575
+ * @param Cstr the constructor for a component that we need to process
1576
+ * @param cmpMeta metadata collected previously about the component
1577
+ * @param flags a number used to store a series of bit flags
1578
+ * @returns a reference to the same constructor passed in (but now mutated)
1579
+ */
1259
1580
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1260
- if ( cmpMeta.$members$) {
1581
+ if (cmpMeta.$members$) {
1261
1582
  // It's better to have a const than two Object.entries()
1262
1583
  const members = Object.entries(cmpMeta.$members$);
1263
1584
  const prototype = Cstr.prototype;
1264
1585
  members.map(([memberName, [memberFlags]]) => {
1265
- if ( (memberFlags & 31 /* Prop */ || (( flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1586
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1587
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1266
1588
  // proxyComponent - prop
1267
1589
  Object.defineProperty(prototype, memberName, {
1268
1590
  get() {
@@ -1277,7 +1599,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1277
1599
  enumerable: true,
1278
1600
  });
1279
1601
  }
1280
- else if ( flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1602
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1603
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1281
1604
  // proxyComponent - method
1282
1605
  Object.defineProperty(prototype, memberName, {
1283
1606
  value(...args) {
@@ -1287,18 +1610,63 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1287
1610
  });
1288
1611
  }
1289
1612
  });
1290
- if ( ( flags & 1 /* isElementConstructor */)) {
1613
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1291
1614
  const attrNameToPropName = new Map();
1292
1615
  prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1293
1616
  plt.jmp(() => {
1294
1617
  const propName = attrNameToPropName.get(attrName);
1618
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1619
+ // in the case where an attribute was set inline.
1620
+ // ```html
1621
+ // <my-component some-attribute="some-value"></my-component>
1622
+ // ```
1623
+ //
1624
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1625
+ // programmatically changes it before it has been upgraded as shown below:
1626
+ //
1627
+ // ```html
1628
+ // <!-- this component has _not_ been upgraded yet -->
1629
+ // <my-component id="test" some-attribute="some-value"></my-component>
1630
+ // <script>
1631
+ // // grab non-upgraded component
1632
+ // el = document.querySelector("#test");
1633
+ // el.someAttribute = "another-value";
1634
+ // // upgrade component
1635
+ // customElements.define('my-component', MyComponent);
1636
+ // </script>
1637
+ // ```
1638
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1639
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1640
+ // to the value that was set inline i.e. "some-value" from above example. When
1641
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1642
+ //
1643
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1644
+ // by connectedCallback as this attributeChangedCallback will not fire.
1645
+ //
1646
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1647
+ //
1648
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1649
+ // properties here given that this goes against best practices outlined here
1650
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1651
+ if (this.hasOwnProperty(propName)) {
1652
+ newValue = this[propName];
1653
+ delete this[propName];
1654
+ }
1655
+ else if (prototype.hasOwnProperty(propName) &&
1656
+ typeof this[propName] === 'number' &&
1657
+ this[propName] == newValue) {
1658
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1659
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1660
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1661
+ return;
1662
+ }
1295
1663
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1296
1664
  });
1297
1665
  };
1298
1666
  // create an array of attributes to observe
1299
1667
  // and also create a map of html attribute name to js property name
1300
1668
  Cstr.observedAttributes = members
1301
- .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1669
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1302
1670
  .map(([propName, m]) => {
1303
1671
  const attrName = m[1] || propName;
1304
1672
  attrNameToPropName.set(attrName, propName);
@@ -1310,10 +1678,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1310
1678
  };
1311
1679
  const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1312
1680
  // initializeComponent
1313
- if ( (hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1681
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1314
1682
  {
1315
1683
  // we haven't initialized this element yet
1316
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1684
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1317
1685
  // lazy loaded components
1318
1686
  // request the component's implementation to be
1319
1687
  // wired up with the host element
@@ -1324,8 +1692,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1324
1692
  Cstr = await Cstr;
1325
1693
  endLoad();
1326
1694
  }
1327
- if ( !Cstr.isProxied) {
1328
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1695
+ if (!Cstr.isProxied) {
1696
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1329
1697
  Cstr.isProxied = true;
1330
1698
  }
1331
1699
  const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
@@ -1333,7 +1701,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1333
1701
  // but let's keep track of when we start and stop
1334
1702
  // so that the getters/setters don't incorrectly step on data
1335
1703
  {
1336
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1704
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1337
1705
  }
1338
1706
  // construct the lazy-loaded component implementation
1339
1707
  // passing the hostRef is very important during
@@ -1346,18 +1714,18 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1346
1714
  consoleError(e);
1347
1715
  }
1348
1716
  {
1349
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1717
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1350
1718
  }
1351
1719
  endNewInstance();
1352
1720
  fireConnectedCallback(hostRef.$lazyInstance$);
1353
1721
  }
1354
- if ( Cstr.style) {
1722
+ if (Cstr.style) {
1355
1723
  // this component has styles but we haven't registered them yet
1356
1724
  let style = Cstr.style;
1357
1725
  const scopeId = getScopeId(cmpMeta);
1358
1726
  if (!styles.has(scopeId)) {
1359
1727
  const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1360
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1728
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1361
1729
  endRegisterStyles();
1362
1730
  }
1363
1731
  }
@@ -1365,8 +1733,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1365
1733
  // we've successfully created a lazy instance
1366
1734
  const ancestorComponent = hostRef.$ancestorComponent$;
1367
1735
  const schedule = () => scheduleUpdate(hostRef, true);
1368
- if ( ancestorComponent && ancestorComponent['s-rc']) {
1369
- // this is the intial load and this component it has an ancestor component
1736
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1737
+ // this is the initial load and this component it has an ancestor component
1370
1738
  // but the ancestor component has NOT fired its will update lifecycle yet
1371
1739
  // so let's just cool our jets and wait for the ancestor to continue first
1372
1740
  // this will get fired off when the ancestor component
@@ -1384,19 +1752,19 @@ const fireConnectedCallback = (instance) => {
1384
1752
  }
1385
1753
  };
1386
1754
  const connectedCallback = (elm) => {
1387
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1755
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1388
1756
  const hostRef = getHostRef(elm);
1389
1757
  const cmpMeta = hostRef.$cmpMeta$;
1390
1758
  const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1391
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1759
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1392
1760
  // first time this component has connected
1393
- hostRef.$flags$ |= 1 /* hasConnected */;
1761
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1394
1762
  {
1395
1763
  // initUpdate
1396
1764
  // if the slot polyfill is required we'll need to put some nodes
1397
1765
  // in here to act as original content anchors as we move nodes around
1398
1766
  // host element has been connected to the DOM
1399
- if ( ( cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1767
+ if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1400
1768
  setContentReference(elm);
1401
1769
  }
1402
1770
  }
@@ -1407,8 +1775,7 @@ const connectedCallback = (elm) => {
1407
1775
  while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1408
1776
  // climb up the ancestors looking for the first
1409
1777
  // component that hasn't finished its lifecycle update yet
1410
- if (
1411
- ancestorComponent['s-p']) {
1778
+ if (ancestorComponent['s-p']) {
1412
1779
  // we found this components first ancestor component
1413
1780
  // keep a reference to this component's ancestor component
1414
1781
  attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
@@ -1418,9 +1785,9 @@ const connectedCallback = (elm) => {
1418
1785
  }
1419
1786
  // Lazy properties
1420
1787
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1421
- if ( cmpMeta.$members$) {
1788
+ if (cmpMeta.$members$) {
1422
1789
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1423
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1790
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1424
1791
  const value = elm[memberName];
1425
1792
  delete elm[memberName];
1426
1793
  elm[memberName] = value;
@@ -1445,14 +1812,14 @@ const setContentReference = (elm) => {
1445
1812
  // let's pick out the inner content for slot projection
1446
1813
  // create a node to represent where the original
1447
1814
  // content was first placed, which is useful later on
1448
- const contentRefElm = (elm['s-cr'] = doc.createComment( ''));
1815
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1449
1816
  contentRefElm['s-cn'] = true;
1450
1817
  elm.insertBefore(contentRefElm, elm.firstChild);
1451
1818
  };
1452
1819
  const disconnectedCallback = (elm) => {
1453
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1820
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1454
1821
  const hostRef = getHostRef(elm);
1455
- const instance = hostRef.$lazyInstance$ ;
1822
+ const instance = hostRef.$lazyInstance$ ;
1456
1823
  {
1457
1824
  safeCall(instance, 'disconnectedCallback');
1458
1825
  }
@@ -1462,17 +1829,31 @@ const patchCloneNode = (HostElementPrototype) => {
1462
1829
  const orgCloneNode = HostElementPrototype.cloneNode;
1463
1830
  HostElementPrototype.cloneNode = function (deep) {
1464
1831
  const srcNode = this;
1465
- const isShadowDom = srcNode.shadowRoot && supportsShadow ;
1832
+ const isShadowDom = srcNode.shadowRoot && supportsShadow ;
1466
1833
  const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
1467
- if ( !isShadowDom && deep) {
1834
+ if (!isShadowDom && deep) {
1468
1835
  let i = 0;
1469
1836
  let slotted, nonStencilNode;
1470
- let stencilPrivates = ['s-id', 's-cr', 's-lr', 's-rc', 's-sc', 's-p', 's-cn', 's-sr', 's-sn', 's-hn', 's-ol', 's-nr', 's-si'];
1837
+ const stencilPrivates = [
1838
+ 's-id',
1839
+ 's-cr',
1840
+ 's-lr',
1841
+ 's-rc',
1842
+ 's-sc',
1843
+ 's-p',
1844
+ 's-cn',
1845
+ 's-sr',
1846
+ 's-sn',
1847
+ 's-hn',
1848
+ 's-ol',
1849
+ 's-nr',
1850
+ 's-si',
1851
+ ];
1471
1852
  for (; i < srcNode.childNodes.length; i++) {
1472
1853
  slotted = srcNode.childNodes[i]['s-nr'];
1473
1854
  nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i][privateField]);
1474
1855
  if (slotted) {
1475
- if ( clonedNode.__appendChild) {
1856
+ if (clonedNode.__appendChild) {
1476
1857
  clonedNode.__appendChild(slotted.cloneNode(true));
1477
1858
  }
1478
1859
  else {
@@ -1506,7 +1887,7 @@ const patchChildSlotNodes = (elm, cmpMeta) => {
1506
1887
  return this[n];
1507
1888
  }
1508
1889
  }
1509
- if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
1890
+ if (cmpMeta.$flags$ & 8 /* CMP_FLAGS.needsShadowDomShim */) {
1510
1891
  const childNodesFn = elm.__lookupGetter__('childNodes');
1511
1892
  Object.defineProperty(elm, 'children', {
1512
1893
  get() {
@@ -1521,7 +1902,8 @@ const patchChildSlotNodes = (elm, cmpMeta) => {
1521
1902
  Object.defineProperty(elm, 'childNodes', {
1522
1903
  get() {
1523
1904
  const childNodes = childNodesFn.call(this);
1524
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
1905
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0 &&
1906
+ getHostRef(this).$flags$ & 2 /* HOST_FLAGS.hasRendered */) {
1525
1907
  const result = new FakeNodeList();
1526
1908
  for (let i = 0; i < childNodes.length; i++) {
1527
1909
  const slot = childNodes[i]['s-nr'];
@@ -1537,6 +1919,12 @@ const patchChildSlotNodes = (elm, cmpMeta) => {
1537
1919
  }
1538
1920
  };
1539
1921
  const getSlotName = (node) => node['s-sn'] || (node.nodeType === 1 && node.getAttribute('slot')) || '';
1922
+ /**
1923
+ * Recursively searches a series of child nodes for a slot with the provided name.
1924
+ * @param childNodes the nodes to search for a slot with a specific name.
1925
+ * @param slotName the name of the slot to match on.
1926
+ * @returns a reference to the slot node that matches the provided name, `null` otherwise
1927
+ */
1540
1928
  const getHostSlotNode = (childNodes, slotName) => {
1541
1929
  let i = 0;
1542
1930
  let childNode;
@@ -1560,6 +1948,7 @@ const getHostSlotChildNodes = (n, slotName) => {
1560
1948
  return childNodes;
1561
1949
  };
1562
1950
  const bootstrapLazy = (lazyBundles, options = {}) => {
1951
+ var _a;
1563
1952
  const endBootstrap = createTime();
1564
1953
  const cmpTags = [];
1565
1954
  const exclude = options.exclude || [];
@@ -1572,80 +1961,87 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1572
1961
  let isBootstrapping = true;
1573
1962
  Object.assign(plt, options);
1574
1963
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1575
- lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
1576
- const cmpMeta = {
1577
- $flags$: compactMeta[0],
1578
- $tagName$: compactMeta[1],
1579
- $members$: compactMeta[2],
1580
- $listeners$: compactMeta[3],
1581
- };
1582
- {
1583
- cmpMeta.$members$ = compactMeta[2];
1584
- }
1585
- const tagName = cmpMeta.$tagName$;
1586
- const HostElement = class extends HTMLElement {
1587
- // StencilLazyHost
1588
- constructor(self) {
1589
- // @ts-ignore
1590
- super(self);
1591
- self = this;
1592
- registerHost(self, cmpMeta);
1593
- if ( cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1594
- // this component is using shadow dom
1595
- // and this browser supports shadow dom
1596
- // add the read-only property "shadowRoot" to the host element
1597
- // adding the shadow root build conditionals to minimize runtime
1598
- {
1964
+ lazyBundles.map((lazyBundle) => {
1965
+ lazyBundle[1].map((compactMeta) => {
1966
+ const cmpMeta = {
1967
+ $flags$: compactMeta[0],
1968
+ $tagName$: compactMeta[1],
1969
+ $members$: compactMeta[2],
1970
+ $listeners$: compactMeta[3],
1971
+ };
1972
+ {
1973
+ cmpMeta.$members$ = compactMeta[2];
1974
+ }
1975
+ const tagName = cmpMeta.$tagName$;
1976
+ const HostElement = class extends HTMLElement {
1977
+ // StencilLazyHost
1978
+ constructor(self) {
1979
+ // @ts-ignore
1980
+ super(self);
1981
+ self = this;
1982
+ registerHost(self, cmpMeta);
1983
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1984
+ // this component is using shadow dom
1985
+ // and this browser supports shadow dom
1986
+ // add the read-only property "shadowRoot" to the host element
1987
+ // adding the shadow root build conditionals to minimize runtime
1599
1988
  {
1600
- self.attachShadow({ mode: 'open' });
1989
+ {
1990
+ self.attachShadow({ mode: 'open' });
1991
+ }
1601
1992
  }
1602
1993
  }
1994
+ {
1995
+ patchChildSlotNodes(self, cmpMeta);
1996
+ }
1603
1997
  }
1604
- {
1605
- patchChildSlotNodes(self, cmpMeta);
1606
- }
1607
- }
1608
- connectedCallback() {
1609
- if (appLoadFallback) {
1610
- clearTimeout(appLoadFallback);
1611
- appLoadFallback = null;
1998
+ connectedCallback() {
1999
+ if (appLoadFallback) {
2000
+ clearTimeout(appLoadFallback);
2001
+ appLoadFallback = null;
2002
+ }
2003
+ if (isBootstrapping) {
2004
+ // connectedCallback will be processed once all components have been registered
2005
+ deferredConnectedCallbacks.push(this);
2006
+ }
2007
+ else {
2008
+ plt.jmp(() => connectedCallback(this));
2009
+ }
1612
2010
  }
1613
- if (isBootstrapping) {
1614
- // connectedCallback will be processed once all components have been registered
1615
- deferredConnectedCallbacks.push(this);
2011
+ disconnectedCallback() {
2012
+ plt.jmp(() => disconnectedCallback(this));
1616
2013
  }
1617
- else {
1618
- plt.jmp(() => connectedCallback(this));
2014
+ componentOnReady() {
2015
+ return getHostRef(this).$onReadyPromise$;
1619
2016
  }
2017
+ };
2018
+ {
2019
+ patchCloneNode(HostElement.prototype);
1620
2020
  }
1621
- disconnectedCallback() {
1622
- plt.jmp(() => disconnectedCallback(this));
2021
+ {
2022
+ patchSlotAppendChild(HostElement.prototype);
1623
2023
  }
1624
- componentOnReady() {
1625
- return getHostRef(this).$onReadyPromise$;
2024
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
2025
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
2026
+ cmpTags.push(tagName);
2027
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1626
2028
  }
1627
- };
1628
- {
1629
- patchCloneNode(HostElement.prototype);
1630
- }
1631
- {
1632
- patchSlotAppendChild(HostElement.prototype);
1633
- }
1634
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1635
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1636
- cmpTags.push(tagName);
1637
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1638
- }
1639
- }));
2029
+ });
2030
+ });
1640
2031
  {
1641
2032
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1642
2033
  visibilityStyle.setAttribute('data-styles', '');
2034
+ // Apply CSP nonce to the style tag if it exists
2035
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
2036
+ if (nonce != null) {
2037
+ visibilityStyle.setAttribute('nonce', nonce);
2038
+ }
1643
2039
  head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1644
2040
  }
1645
2041
  // Process deferred connectedCallbacks now all components have been registered
1646
2042
  isBootstrapping = false;
1647
2043
  if (deferredConnectedCallbacks.length) {
1648
- deferredConnectedCallbacks.map(host => host.connectedCallback());
2044
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1649
2045
  }
1650
2046
  else {
1651
2047
  {
@@ -1655,12 +2051,15 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1655
2051
  // Fallback appLoad event
1656
2052
  endBootstrap();
1657
2053
  };
1658
- const getAssetPath = (path) => {
1659
- const assetUrl = new URL(path, plt.$resourcesUrl$);
1660
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1661
- };
1662
2054
  const Fragment = (_, children) => children;
1663
- const hostRefs = new WeakMap();
2055
+ /**
2056
+ * Assigns the given value to the nonce property on the runtime platform object.
2057
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2058
+ * @param nonce The value to be assigned to the platform nonce property.
2059
+ * @returns void
2060
+ */
2061
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
2062
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1664
2063
  const getHostRef = (ref) => hostRefs.get(ref);
1665
2064
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1666
2065
  const registerHost = (elm, cmpMeta) => {
@@ -1671,45 +2070,71 @@ const registerHost = (elm, cmpMeta) => {
1671
2070
  $instanceValues$: new Map(),
1672
2071
  };
1673
2072
  {
1674
- hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
2073
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1675
2074
  }
1676
2075
  {
1677
- hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
2076
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1678
2077
  elm['s-p'] = [];
1679
2078
  elm['s-rc'] = [];
1680
2079
  }
1681
2080
  return hostRefs.set(elm, hostRef);
1682
2081
  };
1683
2082
  const isMemberInElement = (elm, memberName) => memberName in elm;
1684
- const consoleError = (e, el) => ( 0, console.error)(e, el);
2083
+ const consoleError = (e, el) => (0, console.error)(e, el);
1685
2084
  const cmpModules = /*@__PURE__*/ new Map();
1686
2085
  const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1687
2086
  // loadModuleImport
1688
2087
  const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1689
2088
  const bundleId = cmpMeta.$lazyBundleId$;
1690
- const module = cmpModules.get(bundleId) ;
2089
+ const module = cmpModules.get(bundleId) ;
1691
2090
  if (module) {
1692
2091
  return module[exportName];
1693
2092
  }
2093
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1694
2094
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2095
+ /* @vite-ignore */
1695
2096
  /* webpackInclude: /\.entry\.js$/ */
1696
2097
  /* webpackExclude: /\.system\.entry\.js$/ */
1697
2098
  /* webpackMode: "lazy" */
1698
- `./${bundleId}.entry.js${ ''}`)); }).then(importedModule => {
2099
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
1699
2100
  {
1700
2101
  cmpModules.set(bundleId, importedModule);
1701
2102
  }
1702
2103
  return importedModule[exportName];
1703
2104
  }, consoleError);
1704
2105
  };
1705
- const styles = new Map();
2106
+ const styles = /*@__PURE__*/ new Map();
2107
+ const win = typeof window !== 'undefined' ? window : {};
2108
+ const doc = win.document || { head: {} };
2109
+ const H = (win.HTMLElement || class {
2110
+ });
2111
+ const plt = {
2112
+ $flags$: 0,
2113
+ $resourcesUrl$: '',
2114
+ jmp: (h) => h(),
2115
+ raf: (h) => requestAnimationFrame(h),
2116
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2117
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2118
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2119
+ };
2120
+ const supportsShadow = true;
2121
+ const promiseResolve = (v) => Promise.resolve(v);
2122
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2123
+ try {
2124
+ new CSSStyleSheet();
2125
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2126
+ }
2127
+ catch (e) { }
2128
+ return false;
2129
+ })()
2130
+ ;
1706
2131
  const queueDomReads = [];
1707
2132
  const queueDomWrites = [];
1708
2133
  const queueTask = (queue, write) => (cb) => {
1709
2134
  queue.push(cb);
1710
2135
  if (!queuePending) {
1711
2136
  queuePending = true;
1712
- if (write && plt.$flags$ & 4 /* queueSync */) {
2137
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1713
2138
  nextTick(flush);
1714
2139
  }
1715
2140
  else {
@@ -1758,3 +2183,4 @@ exports.getRenderingRef = getRenderingRef;
1758
2183
  exports.h = h;
1759
2184
  exports.promiseResolve = promiseResolve;
1760
2185
  exports.registerInstance = registerInstance;
2186
+ exports.setNonce = setNonce;