@saasquatch/mint-components 1.5.0-49 → 1.5.0-52

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 (421) hide show
  1. package/dist/cjs/{AutoColor-a489ed67.js → AutoColor-db901e98.js} +101 -105
  2. package/dist/cjs/{GenericTableView-f9bd3b19.js → GenericTableView-34662639.js} +5 -6
  3. package/dist/cjs/{JSS-24a85193.js → JSS-c65a40f1.js} +39 -39
  4. package/dist/cjs/{global-32bf222f.js → global-08276663.js} +589 -589
  5. package/dist/cjs/{index-d8fa5d8e.js → index-b0129cd6.js} +104 -181
  6. package/dist/cjs/{index.module-0f10a4c4.js → index.module-54724339.js} +6392 -6392
  7. package/dist/cjs/loader.cjs.js +7 -7
  8. package/dist/cjs/{luxon-751f2e1c.js → luxon-59ca7d19.js} +2 -2
  9. package/dist/cjs/mint-components.cjs.js +9 -9
  10. package/dist/cjs/{sqm-asset-card-view-0764beab.js → sqm-asset-card-view-d9ac6a95.js} +2 -2
  11. package/dist/cjs/sqm-asset-card.cjs.entry.js +9 -9
  12. package/dist/cjs/{sqm-big-stat-view-37e341c1.js → sqm-big-stat-view-e5dc0877.js} +2 -2
  13. package/dist/cjs/sqm-big-stat.cjs.entry.js +9 -9
  14. package/dist/cjs/{sqm-brand_26.cjs.entry.js → sqm-brand_27.cjs.entry.js} +328 -251
  15. package/dist/cjs/sqm-form-message.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +10 -10
  17. package/dist/cjs/{sqm-hero-view-6706134d.js → sqm-hero-view-a13795c0.js} +4 -4
  18. package/dist/cjs/sqm-hero.cjs.entry.js +7 -7
  19. package/dist/cjs/{sqm-leaderboard-rank-view-5e2bcad9.js → sqm-leaderboard-rank-view-35015d30.js} +1 -1
  20. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +14 -15
  21. package/dist/cjs/sqm-leaderboard.cjs.entry.js +9 -9
  22. package/dist/cjs/{sqm-name-fields-view-c684114f.js → sqm-name-fields-view-c95e4768.js} +10 -12
  23. package/dist/cjs/sqm-name-fields.cjs.entry.js +9 -9
  24. package/dist/cjs/{sqm-navigation-sidebar-item-view-7f69e118.js → sqm-navigation-sidebar-item-view-da648fbc.js} +4 -4
  25. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +11 -11
  26. package/dist/cjs/{sqm-navigation-sidebar-view-b53fad32.js → sqm-navigation-sidebar-view-36632c96.js} +2 -2
  27. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
  28. package/dist/cjs/sqm-password-field.cjs.entry.js +26 -27
  29. package/dist/cjs/sqm-popup-container.cjs.entry.js +9 -9
  30. package/dist/cjs/{sqm-portal-container-view-a78ab7ca.js → sqm-portal-container-view-185b4bd0.js} +2 -2
  31. package/dist/cjs/{sqm-portal-email-verification-view-2a783b13.js → sqm-portal-email-verification-view-991a6739.js} +4 -4
  32. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +13 -13
  33. package/dist/cjs/{sqm-portal-footer-view-ff16e344.js → sqm-portal-footer-view-266e5a7d.js} +3 -3
  34. package/dist/cjs/sqm-portal-footer.cjs.entry.js +9 -9
  35. package/dist/cjs/{sqm-portal-forgot-password-view-036e5d76.js → sqm-portal-forgot-password-view-10c0b54f.js} +3 -3
  36. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +13 -13
  37. package/dist/cjs/sqm-portal-logout.cjs.entry.js +8 -8
  38. package/dist/cjs/{sqm-portal-profile-view-0c31ff46.js → sqm-portal-profile-view-fda5946f.js} +10 -13
  39. package/dist/cjs/sqm-portal-profile.cjs.entry.js +16 -16
  40. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -11
  41. package/dist/cjs/{sqm-portal-reset-password-view-c2ca03ef.js → sqm-portal-reset-password-view-1fdc957e.js} +3 -3
  42. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +15 -15
  43. package/dist/cjs/{sqm-portal-section-view-073d9dda.js → sqm-portal-section-view-3b6c990e.js} +2 -2
  44. package/dist/cjs/{sqm-portal-verify-email-view-1fa62a17.js → sqm-portal-verify-email-view-4c78e231.js} +3 -3
  45. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +14 -14
  46. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +31 -31
  47. package/dist/cjs/sqm-refresh-button.cjs.entry.js +7 -7
  48. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +26 -27
  49. package/dist/cjs/sqm-route.cjs.entry.js +2 -2
  50. package/dist/cjs/{sqm-stat-container-view-fd6e8f8d.js → sqm-stat-container-view-5b2db929.js} +2 -18
  51. package/dist/cjs/sqm-stat-container.cjs.entry.js +6 -6
  52. package/dist/cjs/sqm-stencilbook.cjs.entry.js +642 -599
  53. package/dist/cjs/sqm-table-cell_3.cjs.entry.js +5 -5
  54. package/dist/cjs/{sqm-text-span-view-dd99633a.js → sqm-text-span-view-f101dedf.js} +2 -2
  55. package/dist/cjs/sqm-text-span.cjs.entry.js +5 -5
  56. package/dist/cjs/sqm-titled-section.cjs.entry.js +6 -6
  57. package/dist/{esm/stencil-hooks.module-1bcbec4f.js → cjs/stencil-hooks.module-87a1f4f7.js} +58 -40
  58. package/dist/cjs/{use-callback-867e51f6.js → use-callback-e754042f.js} +1 -1
  59. package/dist/cjs/{useChildElements-6f8aa7de.js → useChildElements-4bc9b219.js} +3 -3
  60. package/dist/cjs/{useDemoBigStat-1fa1ca6a.js → useDemoBigStat-42fa7a69.js} +5 -5
  61. package/dist/cjs/{useLeaderboard-b712d583.js → useLeaderboard-6110cd94.js} +5 -5
  62. package/dist/collection/collection-manifest.json +4 -3
  63. package/dist/collection/components/sqm-edit-profile/useEditProfile.js +3 -4
  64. package/dist/collection/components/sqm-image/Image.stories.js +25 -0
  65. package/dist/collection/components/sqm-image/sqm-image-view.js +32 -0
  66. package/dist/collection/components/sqm-image/sqm-image.js +137 -0
  67. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +1 -1
  68. package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +3 -4
  69. package/dist/collection/components/sqm-media/HeroImage.stories.js +37 -0
  70. package/dist/collection/components/sqm-media/{sqm-media-view.js → sqm-hero-image-view.js} +26 -18
  71. package/dist/collection/components/sqm-media/{sqm-media.js → sqm-hero-image.js} +77 -38
  72. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +8 -10
  73. package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +4 -5
  74. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +5 -8
  75. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +10 -12
  76. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
  77. package/dist/collection/components/sqm-referral-card/sqm-timeline-entry.js +47 -16
  78. package/dist/collection/components/sqm-referral-card/sqm-timeline.js +21 -16
  79. package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +0 -2
  80. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
  81. package/dist/collection/components/sqm-refresh-button/sqm-refresh-button.js +1 -3
  82. package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +0 -3
  83. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -2
  84. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +0 -2
  85. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +0 -1
  86. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-view.js +3 -4
  87. package/dist/collection/components/sqm-share-button/useShareButton.js +1 -2
  88. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +0 -16
  89. package/dist/collection/components/sqm-stencilbook/AutoColor.js +1 -1
  90. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -2
  91. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +2 -2
  92. package/dist/collection/tables/GenericTableView.js +3 -4
  93. package/dist/esm/{AutoColor-9281c94b.js → AutoColor-5d891803.js} +101 -105
  94. package/dist/esm/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +5 -6
  95. package/dist/esm/{JSS-df9ea8a0.js → JSS-96eeab98.js} +39 -39
  96. package/dist/esm/{global-cc738e38.js → global-6bd9287e.js} +589 -589
  97. package/dist/esm/{index-2c5a6587.js → index-17b4da69.js} +104 -181
  98. package/dist/esm/{index.module-983975d9.js → index.module-ec3dcc82.js} +6374 -6374
  99. package/dist/esm/loader.js +7 -7
  100. package/dist/esm/{luxon-afa282c2.js → luxon-5fa22651.js} +2 -2
  101. package/dist/esm/mint-components.js +9 -9
  102. package/dist/esm/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +2 -2
  103. package/dist/esm/sqm-asset-card.entry.js +9 -9
  104. package/dist/esm/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +2 -2
  105. package/dist/esm/sqm-big-stat.entry.js +9 -9
  106. package/dist/esm/{sqm-brand_26.entry.js → sqm-brand_27.entry.js} +327 -251
  107. package/dist/esm/sqm-form-message.entry.js +3 -3
  108. package/dist/esm/sqm-graphql-client-provider.entry.js +10 -10
  109. package/dist/esm/{sqm-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +4 -4
  110. package/dist/esm/sqm-hero.entry.js +7 -7
  111. package/dist/esm/{sqm-leaderboard-rank-view-91a35c42.js → sqm-leaderboard-rank-view-da91f5f3.js} +1 -1
  112. package/dist/esm/sqm-leaderboard-rank.entry.js +14 -15
  113. package/dist/esm/sqm-leaderboard.entry.js +9 -9
  114. package/dist/esm/{sqm-name-fields-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +10 -12
  115. package/dist/esm/sqm-name-fields.entry.js +9 -9
  116. package/dist/esm/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +4 -4
  117. package/dist/esm/sqm-navigation-sidebar-item.entry.js +11 -11
  118. package/dist/esm/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +2 -2
  119. package/dist/esm/sqm-navigation-sidebar.entry.js +5 -5
  120. package/dist/esm/sqm-password-field.entry.js +26 -27
  121. package/dist/esm/sqm-popup-container.entry.js +9 -9
  122. package/dist/esm/{sqm-portal-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +2 -2
  123. package/dist/esm/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +4 -4
  124. package/dist/esm/sqm-portal-email-verification.entry.js +13 -13
  125. package/dist/esm/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +3 -3
  126. package/dist/esm/sqm-portal-footer.entry.js +9 -9
  127. package/dist/esm/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.js} +3 -3
  128. package/dist/esm/sqm-portal-forgot-password.entry.js +13 -13
  129. package/dist/esm/sqm-portal-logout.entry.js +8 -8
  130. package/dist/esm/{sqm-portal-profile-view-3da23184.js → sqm-portal-profile-view-36488558.js} +10 -13
  131. package/dist/esm/sqm-portal-profile.entry.js +16 -16
  132. package/dist/esm/sqm-portal-protected-route.entry.js +11 -11
  133. package/dist/esm/{sqm-portal-reset-password-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +3 -3
  134. package/dist/esm/sqm-portal-reset-password.entry.js +15 -15
  135. package/dist/esm/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +2 -2
  136. package/dist/esm/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.js} +3 -3
  137. package/dist/esm/sqm-portal-verify-email.entry.js +14 -14
  138. package/dist/esm/sqm-referral-table_11.entry.js +31 -31
  139. package/dist/esm/sqm-refresh-button.entry.js +7 -7
  140. package/dist/esm/sqm-rewards-table_9.entry.js +26 -27
  141. package/dist/esm/sqm-route.entry.js +2 -2
  142. package/dist/esm/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +2 -18
  143. package/dist/esm/sqm-stat-container.entry.js +6 -6
  144. package/dist/esm/sqm-stencilbook.entry.js +642 -599
  145. package/dist/esm/sqm-table-cell_3.entry.js +5 -5
  146. package/dist/esm/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +2 -2
  147. package/dist/esm/sqm-text-span.entry.js +5 -5
  148. package/dist/esm/sqm-titled-section.entry.js +6 -6
  149. package/dist/{cjs/stencil-hooks.module-23a5a83a.js → esm/stencil-hooks.module-2f159754.js} +40 -58
  150. package/dist/esm/{use-callback-cfeaefe1.js → use-callback-d8ef4b5d.js} +1 -1
  151. package/dist/esm/{useChildElements-9936fb9a.js → useChildElements-c11d6189.js} +3 -3
  152. package/dist/esm/{useDemoBigStat-5450ce4c.js → useDemoBigStat-e2295035.js} +5 -5
  153. package/dist/esm/{useLeaderboard-c0017437.js → useLeaderboard-5d875f53.js} +5 -5
  154. package/dist/esm-es5/AutoColor-5d891803.js +1 -0
  155. package/dist/esm-es5/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +1 -1
  156. package/dist/esm-es5/JSS-96eeab98.js +8 -0
  157. package/dist/esm-es5/global-6bd9287e.js +285 -0
  158. package/dist/esm-es5/index-17b4da69.js +1 -0
  159. package/dist/esm-es5/index.module-ec3dcc82.js +1 -0
  160. package/dist/esm-es5/loader.js +1 -1
  161. package/dist/esm-es5/{luxon-afa282c2.js → luxon-5fa22651.js} +1 -1
  162. package/dist/esm-es5/mint-components.js +1 -1
  163. package/dist/esm-es5/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +1 -1
  164. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  165. package/dist/esm-es5/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +1 -1
  166. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  167. package/dist/esm-es5/sqm-brand_27.entry.js +1 -0
  168. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  169. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  170. package/dist/esm-es5/{sqm-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +1 -1
  171. package/dist/esm-es5/sqm-hero.entry.js +1 -1
  172. package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +1 -0
  173. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  174. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  175. package/dist/esm-es5/{sqm-name-fields-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +1 -1
  176. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  177. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +1 -1
  178. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  179. package/dist/esm-es5/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +1 -1
  180. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  181. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  182. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  183. package/dist/esm-es5/{sqm-portal-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +1 -1
  184. package/dist/esm-es5/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +1 -1
  185. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  186. package/dist/esm-es5/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +1 -1
  187. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  188. package/dist/esm-es5/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.js} +1 -1
  189. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  190. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  191. package/dist/esm-es5/{sqm-portal-profile-view-3da23184.js → sqm-portal-profile-view-36488558.js} +1 -1
  192. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  193. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  194. package/dist/esm-es5/{sqm-portal-reset-password-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +1 -1
  195. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  196. package/dist/esm-es5/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +1 -1
  197. package/dist/esm-es5/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.js} +1 -1
  198. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  199. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  200. package/dist/esm-es5/sqm-refresh-button.entry.js +1 -1
  201. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  202. package/dist/esm-es5/sqm-route.entry.js +1 -1
  203. package/dist/esm-es5/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +1 -1
  204. package/dist/esm-es5/sqm-stat-container.entry.js +1 -1
  205. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  206. package/dist/esm-es5/sqm-table-cell_3.entry.js +1 -1
  207. package/dist/esm-es5/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +1 -1
  208. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  209. package/dist/esm-es5/sqm-titled-section.entry.js +1 -1
  210. package/dist/esm-es5/stencil-hooks.module-2f159754.js +53 -0
  211. package/dist/esm-es5/use-callback-d8ef4b5d.js +1 -0
  212. package/dist/esm-es5/useChildElements-c11d6189.js +1 -0
  213. package/dist/esm-es5/useDemoBigStat-e2295035.js +1 -0
  214. package/dist/esm-es5/useLeaderboard-5d875f53.js +1 -0
  215. package/dist/loader/index.d.ts +1 -0
  216. package/dist/mint-components/mint-components.esm.js +1 -1
  217. package/dist/mint-components/mint-components.js +1 -1
  218. package/dist/mint-components/{p-09357f10.system.entry.js → p-01748c80.system.entry.js} +1 -1
  219. package/dist/mint-components/p-023dcaee.js +1 -0
  220. package/dist/mint-components/{p-64d2bfb1.system.entry.js → p-067cf6da.system.entry.js} +1 -1
  221. package/dist/mint-components/p-0c19f830.entry.js +1 -0
  222. package/dist/mint-components/{p-0e97beb3.js → p-0e7e10b6.js} +1 -1
  223. package/dist/mint-components/p-1288be55.entry.js +1 -0
  224. package/dist/mint-components/{p-c4cedfef.system.entry.js → p-136e2028.system.entry.js} +1 -1
  225. package/dist/mint-components/{p-b138c9e4.system.js → p-16effd39.system.js} +1 -1
  226. package/dist/mint-components/{p-740a45df.js → p-179988b5.js} +1 -1
  227. package/dist/mint-components/{p-38045cb3.system.js → p-1959da16.system.js} +1 -1
  228. package/dist/mint-components/{p-408f48ec.system.entry.js → p-197d1027.system.entry.js} +1 -1
  229. package/dist/mint-components/{p-6e2e549a.js → p-1d1e9197.js} +1 -1
  230. package/dist/mint-components/p-204fd08c.js +1 -0
  231. package/dist/mint-components/p-220181cd.system.entry.js +1 -0
  232. package/dist/mint-components/p-232db563.system.entry.js +1 -0
  233. package/dist/mint-components/{p-ef4e8230.system.entry.js → p-2454f30a.system.entry.js} +1 -1
  234. package/dist/mint-components/p-24724b6b.entry.js +13 -0
  235. package/dist/mint-components/p-27e04aaf.entry.js +1 -0
  236. package/dist/mint-components/{p-96103ab1.system.js → p-2c49c7a8.system.js} +1 -1
  237. package/dist/mint-components/p-348461ec.system.entry.js +1 -0
  238. package/dist/mint-components/{p-747dc08d.js → p-373fa002.js} +1 -1
  239. package/dist/mint-components/p-3b184c32.js +1 -0
  240. package/dist/mint-components/{p-1ef9bc8f.system.js → p-3bbb90a9.system.js} +1 -1
  241. package/dist/mint-components/{p-4c5581b9.js → p-3dc2850c.js} +1 -1
  242. package/dist/mint-components/{p-e52d6c0f.js → p-3e556042.js} +1 -1
  243. package/dist/mint-components/{p-65d669e7.system.entry.js → p-4275c957.system.entry.js} +1 -1
  244. package/dist/mint-components/{p-c5d104d8.system.js → p-4279da4b.system.js} +1 -1
  245. package/dist/mint-components/{p-fc103049.system.js → p-443c133e.system.js} +1 -1
  246. package/dist/mint-components/p-48abcb89.entry.js +86 -0
  247. package/dist/mint-components/p-49c9ff69.entry.js +1 -0
  248. package/dist/mint-components/{p-eba0f8b5.js → p-4a1b7d35.js} +1 -1
  249. package/dist/mint-components/p-4c21835b.entry.js +1 -0
  250. package/dist/mint-components/p-4e0b9201.system.js +1 -0
  251. package/dist/mint-components/{p-159a0455.system.entry.js → p-4e8e99bc.system.entry.js} +1 -1
  252. package/dist/mint-components/{p-79b96b7c.js → p-509e6dc9.js} +4 -4
  253. package/dist/mint-components/p-5289072a.js +1 -0
  254. package/dist/mint-components/p-54986541.entry.js +1 -0
  255. package/dist/mint-components/{p-754c90b6.js → p-54e855a1.js} +1 -1
  256. package/dist/mint-components/{p-6d1fd7ef.js → p-591de129.js} +1 -1
  257. package/dist/mint-components/{p-2cf031e5.js → p-5c75acad.js} +1 -1
  258. package/dist/mint-components/{p-feb4ccf1.system.js → p-5df1d9ae.system.js} +1 -1
  259. package/dist/mint-components/{p-b094bf1f.system.entry.js → p-5e2b006a.system.entry.js} +1 -1
  260. package/dist/mint-components/{p-39ba54b0.js → p-61a542ec.js} +1 -1
  261. package/dist/mint-components/p-62625e22.entry.js +1 -0
  262. package/dist/mint-components/p-62e49806.system.entry.js +1 -0
  263. package/dist/mint-components/p-639d3dd3.entry.js +1 -0
  264. package/dist/mint-components/p-63a6475a.system.entry.js +1 -0
  265. package/dist/mint-components/{p-73246c5e.js → p-64c3217a.js} +1 -1
  266. package/dist/mint-components/{p-feea807c.system.js → p-6b43e4cc.system.js} +1 -1
  267. package/dist/mint-components/{p-a6940c14.system.entry.js → p-6e70be1c.system.entry.js} +1 -1
  268. package/dist/mint-components/p-6f88ea09.system.js +1 -0
  269. package/dist/mint-components/p-72a978c8.entry.js +1 -0
  270. package/dist/mint-components/{p-637a01d0.system.js → p-72c87c04.system.js} +1 -1
  271. package/dist/mint-components/{p-071fdcfa.js → p-73d5306f.js} +1 -1
  272. package/dist/mint-components/p-76325d9c.system.entry.js +1 -0
  273. package/dist/mint-components/{p-80eb9f8a.js → p-7a1ebc00.js} +15 -15
  274. package/dist/mint-components/{p-720d9f1a.system.entry.js → p-81681ebd.system.entry.js} +1 -1
  275. package/dist/mint-components/p-871536c7.entry.js +1 -0
  276. package/dist/mint-components/{p-9fa1fb4e.system.js → p-8bcaafaf.system.js} +1 -1
  277. package/dist/mint-components/{p-a6a9d6b7.system.entry.js → p-91ab2b0d.system.entry.js} +1 -1
  278. package/dist/mint-components/{p-efb82cfc.system.js → p-91d119ad.system.js} +1 -1
  279. package/dist/mint-components/p-9580888c.system.js +53 -0
  280. package/dist/mint-components/p-96c971fa.entry.js +1 -0
  281. package/dist/mint-components/p-97f843f9.system.entry.js +1 -0
  282. package/dist/mint-components/p-98393bf0.entry.js +1 -0
  283. package/dist/mint-components/{p-e46a4dc4.js → p-9b48d01e.js} +1 -1
  284. package/dist/mint-components/p-9f215c7f.entry.js +161 -0
  285. package/dist/mint-components/p-9f65904f.entry.js +1 -0
  286. package/dist/mint-components/{p-5cc0dc12.system.js → p-a09e3176.system.js} +1 -1
  287. package/dist/mint-components/p-a674c833.system.entry.js +1 -0
  288. package/dist/mint-components/p-ac5f63b1.entry.js +33 -0
  289. package/dist/mint-components/p-ac65007d.js +1 -0
  290. package/dist/mint-components/p-af5673c4.entry.js +1 -0
  291. package/dist/mint-components/p-b0c32d15.system.js +1 -0
  292. package/dist/mint-components/p-b0d6a380.system.js +1 -0
  293. package/dist/mint-components/p-b0e8c584.system.entry.js +1 -0
  294. package/dist/mint-components/p-b3201e4c.entry.js +1 -0
  295. package/dist/mint-components/p-b3735eaf.entry.js +9 -0
  296. package/dist/mint-components/p-b3af1c6f.js +1 -0
  297. package/dist/mint-components/p-b69365f5.entry.js +1 -0
  298. package/dist/mint-components/p-b77bb179.system.js +285 -0
  299. package/dist/mint-components/p-b7da9a8a.js +42 -0
  300. package/dist/mint-components/{p-e29935f9.system.js → p-b8434fc0.system.js} +1 -1
  301. package/dist/mint-components/p-b9974b87.entry.js +1 -0
  302. package/dist/mint-components/{p-86372145.system.entry.js → p-ba41fde8.system.entry.js} +1 -1
  303. package/dist/mint-components/{p-80493415.system.entry.js → p-bd0475a2.system.entry.js} +1 -1
  304. package/dist/mint-components/{p-0ef64931.system.js → p-bf055b6c.system.js} +1 -1
  305. package/dist/mint-components/{p-1b2b1ba2.js → p-c157f510.js} +3 -3
  306. package/dist/mint-components/{p-16db729c.system.entry.js → p-c1a47137.system.entry.js} +1 -1
  307. package/dist/mint-components/{p-1ca5b819.js → p-c2e84199.js} +1 -1
  308. package/dist/mint-components/p-cb93f2c8.entry.js +1 -0
  309. package/dist/mint-components/p-cd4037d1.entry.js +1 -0
  310. package/dist/mint-components/{p-d8e97fb7.system.js → p-ce0ec1c4.system.js} +1 -1
  311. package/dist/mint-components/p-d10efde1.system.js +1 -0
  312. package/dist/mint-components/p-d1520098.js +1 -0
  313. package/dist/mint-components/p-d312db42.entry.js +1 -0
  314. package/dist/mint-components/{p-d27c4eb5.js → p-d33eb961.js} +1 -1
  315. package/dist/mint-components/{p-5c4dec0c.system.entry.js → p-d6ef4765.system.entry.js} +1 -1
  316. package/dist/mint-components/p-dc17de12.entry.js +119 -0
  317. package/dist/mint-components/p-dcff1a85.entry.js +1 -0
  318. package/dist/mint-components/{p-6d6791b6.system.js → p-df466813.system.js} +1 -1
  319. package/dist/mint-components/{p-b81b4ebf.system.js → p-e00e11b1.system.js} +1 -1
  320. package/dist/mint-components/{p-35a8858e.system.js → p-e0be39d0.system.js} +1 -1
  321. package/dist/mint-components/{p-83e18382.system.entry.js → p-e1166d9b.system.entry.js} +1 -1
  322. package/dist/mint-components/{p-6353bf11.entry.js → p-e7b20665.entry.js} +1 -1
  323. package/dist/mint-components/{p-bb2bc191.system.js → p-ea110693.system.js} +1 -1
  324. package/dist/mint-components/p-ea197664.js +1 -0
  325. package/dist/mint-components/p-eb23e1b9.system.entry.js +1 -0
  326. package/dist/mint-components/{p-8c5bf8ee.system.js → p-eba2e455.system.js} +1 -1
  327. package/dist/mint-components/p-ef99c411.system.entry.js +1 -0
  328. package/dist/mint-components/p-f143117c.entry.js +1 -0
  329. package/dist/mint-components/p-f241ee8a.system.entry.js +1 -0
  330. package/dist/mint-components/p-f372c8d8.entry.js +1 -0
  331. package/dist/mint-components/p-f5cba1f7.system.entry.js +1 -0
  332. package/dist/mint-components/{p-82a02b17.system.js → p-f8d95abc.system.js} +1 -1
  333. package/dist/mint-components/{p-af859f26.js → p-f9008f86.js} +153 -153
  334. package/dist/mint-components/{p-4479f753.system.entry.js → p-fb8a587b.system.entry.js} +1 -1
  335. package/dist/mint-components/p-fe4d9531.system.js +1 -0
  336. package/dist/mint-components/p-ff17b3a4.system.js +1 -0
  337. package/dist/types/components/sqm-image/Image.stories.d.ts +11 -0
  338. package/dist/types/components/sqm-image/sqm-image-view.d.ts +8 -0
  339. package/dist/types/components/sqm-image/sqm-image.d.ts +31 -0
  340. package/dist/types/components/sqm-media/HeroImage.stories.d.ts +15 -0
  341. package/dist/types/components/sqm-media/{sqm-media-view.d.ts → sqm-hero-image-view.d.ts} +6 -3
  342. package/dist/types/components/sqm-media/{sqm-media.d.ts → sqm-hero-image.d.ts} +16 -9
  343. package/dist/types/components/sqm-referral-card/sqm-timeline-entry.d.ts +4 -0
  344. package/dist/types/components.d.ts +215 -138
  345. package/dist/types/stencil-public-runtime.d.ts +182 -190
  346. package/grapesjs/grapesjs.js +1 -1
  347. package/package.json +1 -1
  348. package/dist/collection/components/sqm-media/Media.stories.js +0 -28
  349. package/dist/esm-es5/AutoColor-9281c94b.js +0 -1
  350. package/dist/esm-es5/JSS-df9ea8a0.js +0 -8
  351. package/dist/esm-es5/global-cc738e38.js +0 -285
  352. package/dist/esm-es5/index-2c5a6587.js +0 -1
  353. package/dist/esm-es5/index.module-983975d9.js +0 -1
  354. package/dist/esm-es5/sqm-brand_26.entry.js +0 -1
  355. package/dist/esm-es5/sqm-leaderboard-rank-view-91a35c42.js +0 -1
  356. package/dist/esm-es5/stencil-hooks.module-1bcbec4f.js +0 -53
  357. package/dist/esm-es5/use-callback-cfeaefe1.js +0 -1
  358. package/dist/esm-es5/useChildElements-9936fb9a.js +0 -1
  359. package/dist/esm-es5/useDemoBigStat-5450ce4c.js +0 -1
  360. package/dist/esm-es5/useLeaderboard-c0017437.js +0 -1
  361. package/dist/mint-components/p-00894968.system.js +0 -1
  362. package/dist/mint-components/p-0449904d.system.entry.js +0 -1
  363. package/dist/mint-components/p-050bd4c1.entry.js +0 -1
  364. package/dist/mint-components/p-073c0485.system.js +0 -1
  365. package/dist/mint-components/p-09ae771c.system.entry.js +0 -1
  366. package/dist/mint-components/p-12557b30.js +0 -1
  367. package/dist/mint-components/p-15932a6d.entry.js +0 -1
  368. package/dist/mint-components/p-18e9e739.system.entry.js +0 -1
  369. package/dist/mint-components/p-1c0fac18.system.js +0 -1
  370. package/dist/mint-components/p-2012b3eb.entry.js +0 -1
  371. package/dist/mint-components/p-21bf87e9.system.js +0 -1
  372. package/dist/mint-components/p-2673d322.entry.js +0 -1
  373. package/dist/mint-components/p-32ec3994.entry.js +0 -161
  374. package/dist/mint-components/p-33bd2ff9.entry.js +0 -1
  375. package/dist/mint-components/p-3beda015.js +0 -1
  376. package/dist/mint-components/p-40849586.entry.js +0 -1
  377. package/dist/mint-components/p-40b91bd2.entry.js +0 -1
  378. package/dist/mint-components/p-40d9f8f3.entry.js +0 -1
  379. package/dist/mint-components/p-425ea70b.entry.js +0 -1
  380. package/dist/mint-components/p-46adc2cf.system.entry.js +0 -1
  381. package/dist/mint-components/p-4ac07db9.system.js +0 -1
  382. package/dist/mint-components/p-673d1d37.system.entry.js +0 -1
  383. package/dist/mint-components/p-6f2ab381.system.entry.js +0 -1
  384. package/dist/mint-components/p-71775f38.entry.js +0 -1
  385. package/dist/mint-components/p-746fa1fa.entry.js +0 -1
  386. package/dist/mint-components/p-77bf2413.entry.js +0 -1
  387. package/dist/mint-components/p-79339d1d.entry.js +0 -33
  388. package/dist/mint-components/p-7a24a7a4.system.entry.js +0 -1
  389. package/dist/mint-components/p-860513de.system.js +0 -53
  390. package/dist/mint-components/p-8873b8b0.system.entry.js +0 -1
  391. package/dist/mint-components/p-8b5f9502.system.entry.js +0 -1
  392. package/dist/mint-components/p-8f900354.system.entry.js +0 -1
  393. package/dist/mint-components/p-95b5aa14.system.js +0 -1
  394. package/dist/mint-components/p-a2c12d31.system.entry.js +0 -1
  395. package/dist/mint-components/p-a716fa21.entry.js +0 -1
  396. package/dist/mint-components/p-aa926a92.entry.js +0 -86
  397. package/dist/mint-components/p-adabc223.js +0 -1
  398. package/dist/mint-components/p-ae9a75d7.entry.js +0 -1
  399. package/dist/mint-components/p-aeaf1171.js +0 -1
  400. package/dist/mint-components/p-af8a82a5.entry.js +0 -1
  401. package/dist/mint-components/p-b094b800.js +0 -1
  402. package/dist/mint-components/p-c1509151.system.entry.js +0 -1
  403. package/dist/mint-components/p-c154b16e.system.entry.js +0 -1
  404. package/dist/mint-components/p-c164d3fe.js +0 -1
  405. package/dist/mint-components/p-c358211f.js +0 -1
  406. package/dist/mint-components/p-c824c2e5.system.js +0 -285
  407. package/dist/mint-components/p-ce5a08d0.entry.js +0 -119
  408. package/dist/mint-components/p-cfe598c1.js +0 -1
  409. package/dist/mint-components/p-cfe65695.entry.js +0 -1
  410. package/dist/mint-components/p-d2a2c424.js +0 -56
  411. package/dist/mint-components/p-d4c1b8e9.entry.js +0 -1
  412. package/dist/mint-components/p-d9bf4d77.entry.js +0 -1
  413. package/dist/mint-components/p-e341556f.entry.js +0 -13
  414. package/dist/mint-components/p-e551074e.system.js +0 -1
  415. package/dist/mint-components/p-e9a8a8f3.entry.js +0 -9
  416. package/dist/mint-components/p-eb3ce654.entry.js +0 -1
  417. package/dist/mint-components/p-eb4f3c85.entry.js +0 -1
  418. package/dist/mint-components/p-f0c38e7a.entry.js +0 -1
  419. package/dist/mint-components/p-f17cd500.entry.js +0 -1
  420. package/dist/mint-components/p-f39b5f6b.entry.js +0 -1
  421. package/dist/types/components/sqm-media/Media.stories.d.ts +0 -12
@@ -1,22 +1,22 @@
1
- import { r as registerInstance, h as h$1, c as Host } from './index-2c5a6587.js';
2
- import { m as h, u as useEffect, k as useState, f as useRef, y, b as browser, e as useReducer } from './stencil-hooks.module-1bcbec4f.js';
3
- import { h as autoColorScaleCss, C as CardFeedView, E as EditProfileView, c as PortalChangePasswordView, P as PortalFrameView, d as PortalLoginView, e as PortalRegisterView, R as ReferralIframeView, g as RewardExchangeView, b as useShareButton, S as ShareButtonView, a as ShareLinkView, u as useShareLink, T as TaskCardView } from './AutoColor-9281c94b.js';
4
- import { g as getProps, a as getMissingProps } from './utils-1d345130.js';
5
- import { c as createStyleSheet } from './JSS-df9ea8a0.js';
6
- import { d as dist, i as ie, b as sn, q as qe, j as jn, r as rn, c as dn, g as $e, E as Ee, P, D as De, M, H as He, l as ln, R as Rn, A as An } from './index.module-983975d9.js';
7
- import { i as intl } from './global-cc738e38.js';
8
- import { c as cjs } from './cjs-bdfb4486.js';
9
- import { j as jsonpointer } from './jsonpointer-388a7082.js';
10
- import { P as PortalContainerView } from './sqm-portal-container-view-72c8b457.js';
11
- import { u as useCallback } from './use-callback-cfeaefe1.js';
12
- import { p as pathToRegexp, u as useDemoBigStat, a as useBigStat } from './useDemoBigStat-5450ce4c.js';
13
- import { a as useChildElements, b as useRequestRerender } from './useChildElements-9936fb9a.js';
14
- import './mixins-10353a39.js';
15
- import './sqm-portal-section-view-5a3d3829.js';
16
- import './sqm-text-span-view-be532a94.js';
17
- import './luxon-afa282c2.js';
1
+ import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
2
+ import { m as h, u as useEffect, k as useState, f as useRef, y, b as browser, e as useReducer } from './stencil-hooks.module-2f159754.js';
3
+ import { i as intl } from './global-6bd9287e.js';
4
+ import { u as useCallback } from './use-callback-d8ef4b5d.js';
5
+ import { d as dist, n as ne, b as mn, D as De, k, a as dn, p as pn, H as He, $ as $e, P, V as Ve, M, Q as Qe, h as hn, x, R } from './index.module-ec3dcc82.js';
18
6
  import './extends-c31f1eff.js';
7
+ import { j as jsonpointer } from './jsonpointer-388a7082.js';
19
8
  import './insertcss-bcaf3818.js';
9
+ import { c as cjs } from './cjs-bdfb4486.js';
10
+ import './mixins-10353a39.js';
11
+ import { c as createStyleSheet } from './JSS-96eeab98.js';
12
+ import { a as useChildElements, b as useRequestRerender } from './useChildElements-c11d6189.js';
13
+ import './luxon-5fa22651.js';
14
+ import { g as getProps, a as getMissingProps } from './utils-1d345130.js';
15
+ import './sqm-text-span-view-7e61c95c.js';
16
+ import { p as pathToRegexp, u as useDemoBigStat, a as useBigStat } from './useDemoBigStat-e2295035.js';
17
+ import { P as PortalContainerView } from './sqm-portal-container-view-cf79ed90.js';
18
+ import { h as autoColorScaleCss, C as CardFeedView, E as EditProfileView, c as PortalChangePasswordView, P as PortalFrameView, d as PortalLoginView, e as PortalRegisterView, R as ReferralIframeView, g as RewardExchangeView, b as useShareButton, S as ShareButtonView, a as ShareLinkView, u as useShareLink, T as TaskCardView } from './AutoColor-5d891803.js';
19
+ import './sqm-portal-section-view-d3098f7f.js';
20
20
 
21
21
  /**
22
22
  * Build a font CSS URL using the Google Fonts CSS API
@@ -31,7 +31,7 @@ function buildFontsCssUrl(...fonts) {
31
31
  return `https://fonts.googleapis.com/css2?${queryString}`;
32
32
  }
33
33
 
34
- let BrandComponent = class {
34
+ const BrandComponent = class {
35
35
  constructor(hostRef) {
36
36
  registerInstance(this, hostRef);
37
37
  h(this);
@@ -77,7 +77,7 @@ let BrandComponent = class {
77
77
  }
78
78
  };
79
79
 
80
- let CardFeed = class {
80
+ const CardFeed = class {
81
81
  constructor(hostRef) {
82
82
  registerInstance(this, hostRef);
83
83
  this.ignored = true;
@@ -149,7 +149,7 @@ function DividedLayoutView(props, children) {
149
149
  children));
150
150
  }
151
151
 
152
- let DividedLayout = class {
152
+ const DividedLayout = class {
153
153
  constructor(hostRef) {
154
154
  registerInstance(this, hostRef);
155
155
  /**
@@ -208,13 +208,13 @@ const defaultFormState = {
208
208
  error: "",
209
209
  };
210
210
  function useEditProfile(props) {
211
- const userIdent = ie();
211
+ const userIdent = ne();
212
212
  const [showEdit, setShowEdit] = useState(false);
213
- useState("");
213
+ const [error, setError] = useState("");
214
214
  const [userData, setUserData] = useState(undefined);
215
215
  const [formState, setFormState] = useState(defaultFormState);
216
- const userDataResponse = sn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
217
- const [upsertUser, upsertUserResponse] = qe(UPSERT_USER);
216
+ const userDataResponse = mn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
217
+ const [upsertUser, upsertUserResponse] = De(UPSERT_USER);
218
218
  useEffect(() => {
219
219
  if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
220
220
  return;
@@ -294,10 +294,9 @@ function useEditProfile(props) {
294
294
  },
295
295
  resetForm: () => {
296
296
  var _a, _b, _c, _d, _e, _f;
297
- const currentRegion = ((_b = (_a = userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.countryCode)
298
- ? intl.formatDisplayName(userDataResponse.data.viewer.countryCode, {
299
- type: "region",
300
- })
297
+ const currentRegion = ((_b = (_a = userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.countryCode) ? intl.formatDisplayName(userDataResponse.data.viewer.countryCode, {
298
+ type: "region",
299
+ })
301
300
  : "";
302
301
  setUserData({
303
302
  ...(_c = userDataResponse.data) === null || _c === void 0 ? void 0 : _c.viewer,
@@ -321,7 +320,7 @@ function useEditProfile(props) {
321
320
 
322
321
  const sqmEditProfileCss = ".ErrorStyles::part(base){background:var(--sl-color-danger-10);border-color:var(--sl-color-danger-500);outline:var(--sl-color-danger-500)}.ErrorStyles:host{--something-random:red;--focus-ring:0 0 0 var(--sl-focus-ring-width) red !important}.ErrorStyles::part(input){color:var(--sl-color-danger-500)}.ErrorStyles::part(input):-webkit-autofill,.ErrorStyles::part(input):-webkit-autofill:hover,.ErrorStyles::part(input):-webkit-autofill:focus,.ErrorStyles::part(input):-webkit-autofill:active{-webkit-box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;-webkit-text-fill-color:var(--sl-color-danger-500)}.ErrorStyles::part(help-text){color:var(--sl-color-danger-500)}:host{display:block}:host([hidden]){display:none}.FormWrapper>:not(:first-child){margin-top:54px}.FormSection{width:100%}.FormSection>:not(:first-child){margin-top:16px}.ButtonWrapper{display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-pack:end;justify-content:flex-end}.ButtonWrapper>:not(:first-child){margin-left:var(--sl-font-size-x-small)}.CardWrapper{-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--sl-color-white);padding:40px 30px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media screen and (max-width: 499px){.CardWrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}}@media screen and (max-width: 880px){.CardWrapper.ShowEdit{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}}";
323
322
 
324
- let EditProfile = class {
323
+ const EditProfile = class {
325
324
  constructor(hostRef) {
326
325
  registerInstance(this, hostRef);
327
326
  this.ignored = true;
@@ -329,7 +328,7 @@ let EditProfile = class {
329
328
  }
330
329
  disconnectedCallback() { }
331
330
  render() {
332
- const props = jn()
331
+ const props = k()
333
332
  ? useEditProfileDemo(getProps(this))
334
333
  : useEditProfile(getProps(this));
335
334
  return h$1(EditProfileView, Object.assign({}, props));
@@ -390,20 +389,7 @@ function useEditProfileDemo(props) {
390
389
  }
391
390
  EditProfile.style = sqmEditProfileCss;
392
391
 
393
- let SqmHookStoryContainer = class {
394
- constructor(hostRef) {
395
- registerInstance(this, hostRef);
396
- this.ignored = true;
397
- h(this);
398
- }
399
- disconnectedCallback() { }
400
- render() {
401
- const Story = this.hookStory;
402
- return h$1(Story, null);
403
- }
404
- };
405
-
406
- function MediaView(props) {
392
+ function HeroImageView(props, children) {
407
393
  const overlay = Boolean((props.header || props.description || props.buttonText) &&
408
394
  props.layout === "overlay");
409
395
  const style = {
@@ -426,13 +412,19 @@ function MediaView(props) {
426
412
  objectFit: "cover",
427
413
  margin: "auto",
428
414
  },
415
+ Background: {
416
+ minHeight: props.minHeight,
417
+ backgroundImage: `url(${props.imageUrl})`,
418
+ backgroundSize: "cover",
419
+ backgroundPosition: props.imagePos || "center",
420
+ display: "flex",
421
+ justifyContent: "center",
422
+ alignItems: "center",
423
+ },
429
424
  Overlay: {
430
- position: "absolute",
431
- width: "90%",
432
- top: "50%",
433
- left: "50%",
425
+ zIndex: "1",
426
+ padding: "var(--sl-spacing-" + props.padding + ")",
434
427
  textAlign: "center",
435
- transform: "translate(-50%, -50%)",
436
428
  color: props.textColor || "var(--sl-color-neutral-0)",
437
429
  lineHeight: "var(--sl-line-height-dense)",
438
430
  },
@@ -444,35 +436,37 @@ function MediaView(props) {
444
436
  color: props.textColor || "var(--sl-color-neutral-900)",
445
437
  "& .image-area": {
446
438
  width: "50%",
447
- "@media (max-width: 499px)": {
439
+ boxSizing: "border-box",
440
+ "@media (max-width: 599px)": {
448
441
  width: "100%",
449
442
  },
450
443
  },
451
444
  "& .text-area": {
452
445
  width: "50%",
453
- padding: "calc(2*var(--sl-spacing-xx-large))",
446
+ padding: "calc(2*var(--sl-spacing-" + props.padding + "))",
454
447
  alignSelf: "center",
455
- "@media (max-width: 499px)": {
456
- width: "90%",
448
+ boxSizing: "border-box",
449
+ "@media (max-width: 599px)": {
450
+ width: "100%",
457
451
  textAlign: "center",
458
- padding: "var(--sl-spacing-xx-large)",
452
+ padding: "var(--sl-spacing-" + props.padding + ")",
459
453
  },
460
454
  },
461
- "@media (max-width: 499px)": {
455
+ "@media (max-width: 599px)": {
462
456
  flexDirection: props.imageMobilePos === "bottom" ? "column-reverse" : "column",
463
457
  },
464
458
  },
465
459
  Header: {
466
460
  fontSize: "var(--sl-font-size-xxx-large)",
467
461
  fontWeight: "var(--sl-font-weight-bold)",
468
- "@media (max-width: 499px)": {
462
+ "@media (max-width: 599px)": {
469
463
  fontSize: "var(--sl-font-size-xx-large)",
470
464
  },
471
465
  },
472
466
  Description: {
473
467
  fontSize: "var(--sl-font-size-x-large)",
474
468
  margin: "var(--sl-spacing-small) 0",
475
- "@media (max-width: 499px)": {
469
+ "@media (max-width: 599px)": {
476
470
  fontSize: "var(--sl-font-size-large)",
477
471
  },
478
472
  },
@@ -481,7 +475,7 @@ function MediaView(props) {
481
475
  "&::part(base)": {
482
476
  padding: "0 var(--sl-spacing-x-large)",
483
477
  },
484
- "@media (max-width: 499px)": {
478
+ "@media (max-width: 599px)": {
485
479
  width: "100%",
486
480
  },
487
481
  },
@@ -499,14 +493,14 @@ function MediaView(props) {
499
493
  props.layout === "overlay" && OverlayView(),
500
494
  props.layout === "columns" && ColumnView()));
501
495
  function OverlayView() {
502
- return (h$1("div", null,
503
- props.imageUrl && (h$1("img", { class: sheet.classes.Image, src: props.imageUrl })),
496
+ return (h$1("div", { class: sheet.classes.Background },
504
497
  h$1("div", { class: sheet.classes.Overlay },
505
498
  props.header && (h$1("div", { class: sheet.classes.Header }, props.header)),
506
499
  props.description && (h$1("div", { class: sheet.classes.Description }, props.description)),
507
500
  props.buttonText && (h$1("sl-button", { class: sheet.classes.Button, type: "primary", onClick: () => props.buttonNewTab
508
501
  ? window.open(props.buttonLink)
509
- : window.open(props.buttonLink, "_parent") }, props.buttonText)))));
502
+ : window.open(props.buttonLink, "_parent") }, props.buttonText)),
503
+ children && children)));
510
504
  }
511
505
  function ColumnView() {
512
506
  return (h$1("div", null,
@@ -522,9 +516,13 @@ function MediaView(props) {
522
516
  }
523
517
  }
524
518
 
525
- let Media = class {
519
+ const HeroImage = class {
526
520
  constructor(hostRef) {
527
521
  registerInstance(this, hostRef);
522
+ /**
523
+ * @uiName Minimum Image Height
524
+ */
525
+ this.minHeight = "300px";
528
526
  /**
529
527
  * @uiName Overlay Color
530
528
  */
@@ -533,10 +531,6 @@ let Media = class {
533
531
  * @uiName Overlay Opacity
534
532
  */
535
533
  this.overlayOpacity = "0.75";
536
- /**
537
- * @uiName Minimum Image Height
538
- */
539
- this.minHeight = "300px";
540
534
  /**
541
535
  * @uiName Image Link
542
536
  * @uiType string
@@ -546,24 +540,92 @@ let Media = class {
546
540
  /**
547
541
  * @uiName Image Position
548
542
  * @uiType string
549
- * @uiEnum ["left", "right"]
543
+ * @uiEnum ["left", "center", "right"]
550
544
  */
551
- this.imagePos = "left";
545
+ this.imagePos = "center";
552
546
  /**
553
547
  * @uiName Image Mobile Position
554
548
  * @uiType string
555
- * @uiEnum ["top", "bottom" ]
549
+ * @uiEnum ["top", "bottom"]
556
550
  */
557
551
  this.imageMobilePos = "top";
558
552
  /**
559
553
  * @uiName CTA Button Link Open in New Tab
560
554
  */
561
555
  this.buttonNewTab = false;
556
+ /**
557
+ * @uiName Padding
558
+ * @uiType string
559
+ * @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
560
+ */
561
+ this.padding = "xx-large";
562
+ h(this);
563
+ }
564
+ disconnectedCallback() { }
565
+ render() {
566
+ return (h$1(HeroImageView, Object.assign({}, getProps(this)), h$1("slot", null)));
567
+ }
568
+ };
569
+
570
+ const SqmHookStoryContainer = class {
571
+ constructor(hostRef) {
572
+ registerInstance(this, hostRef);
573
+ this.ignored = true;
562
574
  h(this);
563
575
  }
564
576
  disconnectedCallback() { }
565
577
  render() {
566
- return h$1(MediaView, Object.assign({}, getProps(this)));
578
+ const Story = this.hookStory;
579
+ return h$1(Story, null);
580
+ }
581
+ };
582
+
583
+ function ImageView(props) {
584
+ const style = {
585
+ Container: {
586
+ display: "flex",
587
+ width: "100%",
588
+ justifyContent: props.align || "center",
589
+ background: props.backgroundColor || "",
590
+ },
591
+ Image: {
592
+ maxWidth: "100%",
593
+ objectFit: "cover",
594
+ marginLeft: props.left || "0",
595
+ marginRight: props.right || "0",
596
+ },
597
+ };
598
+ const sheet = createStyleSheet(style);
599
+ const styleString = sheet.toString();
600
+ console.log(props);
601
+ const vanillaStyle = `
602
+ :host{
603
+ display: block;
604
+ }
605
+ `;
606
+ return (h$1("div", null,
607
+ h$1("style", { type: "text/css" },
608
+ styleString,
609
+ vanillaStyle),
610
+ h$1("div", { class: sheet.classes.Container },
611
+ h$1("img", { src: props.imageUrl, class: sheet.classes.Image }))));
612
+ }
613
+
614
+ const Image = class {
615
+ constructor(hostRef) {
616
+ registerInstance(this, hostRef);
617
+ /**
618
+ * @uiName Position Alignment
619
+ * @uiType string
620
+ * @uiEnum ["left", "center", "right"]
621
+ */
622
+ this.align = "center";
623
+ this.ignored = true;
624
+ h(this);
625
+ }
626
+ disconnectedCallback() { }
627
+ render() {
628
+ return h$1(ImageView, Object.assign({}, getProps(this)));
567
629
  }
568
630
  };
569
631
 
@@ -582,12 +644,12 @@ function NavigationMenuView(props) {
582
644
  }
583
645
 
584
646
  function handleMenu(e) {
585
- dn.push(e.detail.item.value);
647
+ pn.push(e.detail.item.value);
586
648
  }
587
649
  function useNavigationMenu(props) {
588
650
  const ref = useRef();
589
- const [, rerender] = rn();
590
- const user = ie();
651
+ const [, rerender] = dn();
652
+ const user = ne();
591
653
  useEffect(() => {
592
654
  var _a;
593
655
  (_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
@@ -608,7 +670,7 @@ function useNavigationMenu(props) {
608
670
 
609
671
  const sqmNavigationMenuCss = ":host{display:block}:host([hidden]){display:none}.HeaderWrapper{width:100%;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--sl-spacing-small) var(--sl-spacing-large);-ms-flex-align:center;align-items:center;background-color:var(--sqm-header-background)}@media screen and (max-width: 499px){.HeaderWrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:end;justify-content:flex-end;padding:0 var(--sl-spacing-x-small)}}";
610
672
 
611
- let NavigationMenu = class {
673
+ const NavigationMenu = class {
612
674
  constructor(hostRef) {
613
675
  registerInstance(this, hostRef);
614
676
  this.ignored = true;
@@ -616,7 +678,7 @@ let NavigationMenu = class {
616
678
  }
617
679
  disconnectedCallback() { }
618
680
  render() {
619
- const props = jn()
681
+ const props = k()
620
682
  ? useNavigationMenuDemo(getProps(this))
621
683
  : useNavigationMenu(getProps(this));
622
684
  return (h$1(Host, { slot: "sqm-navigation-menu" }, h$1(NavigationMenuView, Object.assign({}, props))));
@@ -641,11 +703,11 @@ NavigationMenu.style = sqmNavigationMenuCss;
641
703
 
642
704
  function usePortalChangePassword(props) {
643
705
  var _a, _b, _c, _d;
644
- const [request, { loading, errors, data }] = $e();
706
+ const [request, { loading, errors, data }] = He();
645
707
  const [open, setOpen] = useState(false);
646
708
  const [error, setError] = useState("");
647
709
  const [success, setSuccess] = useState(false);
648
- const user = ie();
710
+ const user = ne();
649
711
  const submit = async (event) => {
650
712
  var _a;
651
713
  setSuccess(false);
@@ -698,7 +760,7 @@ function usePortalChangePassword(props) {
698
760
  };
699
761
  }
700
762
 
701
- let PortalChangePassword = class {
763
+ const PortalChangePassword = class {
702
764
  constructor(hostRef) {
703
765
  registerInstance(this, hostRef);
704
766
  this.ignored = true;
@@ -738,7 +800,7 @@ let PortalChangePassword = class {
738
800
  }
739
801
  disconnectedCallback() { }
740
802
  render() {
741
- const { states, callbacks } = jn()
803
+ const { states, callbacks } = k()
742
804
  ? usePortalChangePasswordDemo(this)
743
805
  : usePortalChangePassword(this);
744
806
  return h$1(PortalChangePasswordView, { states: states, callbacks: callbacks });
@@ -767,7 +829,7 @@ function usePortalChangePasswordDemo(props) {
767
829
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
768
830
  }
769
831
 
770
- let PortalContainer = class {
832
+ const PortalContainer = class {
771
833
  constructor(hostRef) {
772
834
  registerInstance(this, hostRef);
773
835
  this.ignored = true;
@@ -802,7 +864,7 @@ let PortalContainer = class {
802
864
  };
803
865
 
804
866
  function usePortalFrame(footerContent, headerContent) {
805
- const [, rerender] = rn();
867
+ const [, rerender] = dn();
806
868
  return {
807
869
  data: {
808
870
  footer: footerContent,
@@ -814,7 +876,7 @@ function usePortalFrame(footerContent, headerContent) {
814
876
  };
815
877
  }
816
878
 
817
- let PortalFrame = class {
879
+ const PortalFrame = class {
818
880
  constructor(hostRef) {
819
881
  registerInstance(this, hostRef);
820
882
  this.ignored = true;
@@ -824,7 +886,7 @@ let PortalFrame = class {
824
886
  render() {
825
887
  const footerContent = h$1("slot", { name: "footer" });
826
888
  const headerContent = h$1("slot", { name: "header" });
827
- const props = jn()
889
+ const props = k()
828
890
  ? usePortalFrameDemo(footerContent, headerContent, this)
829
891
  : usePortalFrame(footerContent, headerContent);
830
892
  return (h$1(PortalFrameView, Object.assign({}, props), h$1("slot", null)));
@@ -847,7 +909,7 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
847
909
 
848
910
  function usePortalLogin(props) {
849
911
  var _a, _b, _c, _d;
850
- const [request, { loading, errors, data }] = Ee();
912
+ const [request, { loading, errors, data }] = $e();
851
913
  const [error, setError] = useState("");
852
914
  const urlParams = new URLSearchParams(window.location.search);
853
915
  const nextPageOverride = urlParams.get("nextPage");
@@ -864,7 +926,7 @@ function usePortalLogin(props) {
864
926
  var _a;
865
927
  if ((_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
866
928
  urlParams.delete("nextPage");
867
- dn.push({
929
+ pn.push({
868
930
  pathname: nextPageOverride || props.nextPage,
869
931
  search: urlParams.toString() && "?" + urlParams.toString(),
870
932
  });
@@ -890,7 +952,7 @@ function usePortalLogin(props) {
890
952
  };
891
953
  }
892
954
 
893
- let PortalLogin = class {
955
+ const PortalLogin = class {
894
956
  constructor(hostRef) {
895
957
  registerInstance(this, hostRef);
896
958
  this.ignored = true;
@@ -934,12 +996,12 @@ let PortalLogin = class {
934
996
  }
935
997
  disconnectedCallback() { }
936
998
  render() {
937
- const { states, callbacks } = jn()
999
+ const { states, callbacks } = k()
938
1000
  ? useLoginDemo(this)
939
1001
  : usePortalLogin(this);
940
1002
  const content = {
941
- forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => dn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
942
- secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => dn.push(states.registerPath) }, this.registerLabel))),
1003
+ forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => pn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
1004
+ secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => pn.push(states.registerPath) }, this.registerLabel))),
943
1005
  emailLabel: this.emailLabel,
944
1006
  passwordLabel: this.passwordLabel,
945
1007
  submitLabel: this.submitLabel,
@@ -1027,13 +1089,13 @@ function compare (a, b) {
1027
1089
  return !a[1] && b[1] ? 1 : a[1] && !b[1] ? -1 : 0;
1028
1090
  }
1029
1091
 
1030
- function _typeof$1(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
1092
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1031
1093
 
1032
- function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1094
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1033
1095
 
1034
- function _defineProperties$5(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1096
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1035
1097
 
1036
- function _createClass$5(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); if (staticProps) _defineProperties$5(Constructor, staticProps); return Constructor; }
1098
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1037
1099
 
1038
1100
  var V3 = '1.2.0'; // Moved `001` country code to "nonGeographic" section of metadata.
1039
1101
 
@@ -1048,14 +1110,14 @@ var Metadata =
1048
1110
  /*#__PURE__*/
1049
1111
  function () {
1050
1112
  function Metadata(metadata) {
1051
- _classCallCheck$5(this, Metadata);
1113
+ _classCallCheck(this, Metadata);
1052
1114
 
1053
1115
  validateMetadata(metadata);
1054
1116
  this.metadata = metadata;
1055
1117
  setVersion.call(this, metadata);
1056
1118
  }
1057
1119
 
1058
- _createClass$5(Metadata, [{
1120
+ _createClass(Metadata, [{
1059
1121
  key: "getCountries",
1060
1122
  value: function getCountries() {
1061
1123
  return Object.keys(this.metadata.countries).filter(function (_) {
@@ -1295,14 +1357,14 @@ var NumberingPlan =
1295
1357
  /*#__PURE__*/
1296
1358
  function () {
1297
1359
  function NumberingPlan(metadata, globalMetadataObject) {
1298
- _classCallCheck$5(this, NumberingPlan);
1360
+ _classCallCheck(this, NumberingPlan);
1299
1361
 
1300
1362
  this.globalMetadataObject = globalMetadataObject;
1301
1363
  this.metadata = metadata;
1302
1364
  setVersion.call(this, globalMetadataObject.metadata);
1303
1365
  }
1304
1366
 
1305
- _createClass$5(NumberingPlan, [{
1367
+ _createClass(NumberingPlan, [{
1306
1368
  key: "callingCode",
1307
1369
  value: function callingCode() {
1308
1370
  return this.metadata[0];
@@ -1455,13 +1517,13 @@ var Format =
1455
1517
  /*#__PURE__*/
1456
1518
  function () {
1457
1519
  function Format(format, metadata) {
1458
- _classCallCheck$5(this, Format);
1520
+ _classCallCheck(this, Format);
1459
1521
 
1460
1522
  this._format = format;
1461
1523
  this.metadata = metadata;
1462
1524
  }
1463
1525
 
1464
- _createClass$5(Format, [{
1526
+ _createClass(Format, [{
1465
1527
  key: "pattern",
1466
1528
  value: function pattern() {
1467
1529
  return this._format[0];
@@ -1529,13 +1591,13 @@ var Type =
1529
1591
  /*#__PURE__*/
1530
1592
  function () {
1531
1593
  function Type(type, metadata) {
1532
- _classCallCheck$5(this, Type);
1594
+ _classCallCheck(this, Type);
1533
1595
 
1534
1596
  this.type = type;
1535
1597
  this.metadata = metadata;
1536
1598
  }
1537
1599
 
1538
- _createClass$5(Type, [{
1600
+ _createClass(Type, [{
1539
1601
  key: "pattern",
1540
1602
  value: function pattern() {
1541
1603
  if (this.metadata.v1) return this.type;
@@ -1602,7 +1664,7 @@ function validateMetadata(metadata) {
1602
1664
  /* istanbul ignore next */
1603
1665
 
1604
1666
  var is_object = function is_object(_) {
1605
- return _typeof$1(_) === 'object';
1667
+ return _typeof(_) === 'object';
1606
1668
  }; // Babel transforms `typeof` into some "branches"
1607
1669
  // so istanbul will show this as "branch not covered".
1608
1670
 
@@ -1610,7 +1672,7 @@ var is_object = function is_object(_) {
1610
1672
 
1611
1673
 
1612
1674
  var type_of = function type_of(_) {
1613
- return _typeof$1(_);
1675
+ return _typeof(_);
1614
1676
  };
1615
1677
  /**
1616
1678
  * Returns "country calling code" for a country.
@@ -2221,9 +2283,9 @@ function getIddPrefix(country, callingCode, metadata) {
2221
2283
  }
2222
2284
  }
2223
2285
 
2224
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } return target; }
2286
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
2225
2287
 
2226
- function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2288
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2227
2289
  var DEFAULT_OPTIONS = {
2228
2290
  formatExtension: function formatExtension(formattedNumber, extension, metadata) {
2229
2291
  return "".concat(formattedNumber).concat(metadata.ext()).concat(extension);
@@ -2245,7 +2307,7 @@ var DEFAULT_OPTIONS = {
2245
2307
  function formatNumber(input, format, options, metadata) {
2246
2308
  // Apply default options.
2247
2309
  if (options) {
2248
- options = _objectSpread$1({}, DEFAULT_OPTIONS, options);
2310
+ options = _objectSpread({}, DEFAULT_OPTIONS, options);
2249
2311
  } else {
2250
2312
  options = DEFAULT_OPTIONS;
2251
2313
  }
@@ -2277,7 +2339,7 @@ function formatNumber(input, format, options, metadata) {
2277
2339
  return '';
2278
2340
  }
2279
2341
 
2280
- number = formatNationalNumber$1(nationalNumber, input.carrierCode, 'NATIONAL', metadata, options);
2342
+ number = formatNationalNumber(nationalNumber, input.carrierCode, 'NATIONAL', metadata, options);
2281
2343
  return addExtension(number, input.ext, metadata, options.formatExtension);
2282
2344
 
2283
2345
  case 'INTERNATIONAL':
@@ -2287,7 +2349,7 @@ function formatNumber(input, format, options, metadata) {
2287
2349
  return "+".concat(countryCallingCode);
2288
2350
  }
2289
2351
 
2290
- number = formatNationalNumber$1(nationalNumber, null, 'INTERNATIONAL', metadata, options);
2352
+ number = formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata, options);
2291
2353
  number = "+".concat(countryCallingCode, " ").concat(number);
2292
2354
  return addExtension(number, input.ext, metadata, options.formatExtension);
2293
2355
 
@@ -2318,7 +2380,7 @@ function formatNumber(input, format, options, metadata) {
2318
2380
  }
2319
2381
  }
2320
2382
 
2321
- function formatNationalNumber$1(number, carrierCode, formatAs, metadata, options) {
2383
+ function formatNationalNumber(number, carrierCode, formatAs, metadata, options) {
2322
2384
  var format = chooseFormatForNumber(metadata.formats(), number);
2323
2385
 
2324
2386
  if (!format) {
@@ -2373,7 +2435,7 @@ function formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry,
2373
2435
  var fromCountryCallingCode = getCountryCallingCode(fromCountry, metadata.metadata); // When calling within the same country calling code.
2374
2436
 
2375
2437
  if (fromCountryCallingCode === countryCallingCode) {
2376
- var formattedNumber = formatNationalNumber$1(nationalNumber, carrierCode, 'NATIONAL', metadata); // For NANPA regions, return the national format for these regions
2438
+ var formattedNumber = formatNationalNumber(nationalNumber, carrierCode, 'NATIONAL', metadata); // For NANPA regions, return the national format for these regions
2377
2439
  // but prefix it with the country calling code.
2378
2440
 
2379
2441
  if (countryCallingCode === '1') {
@@ -2395,25 +2457,25 @@ function formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry,
2395
2457
  var iddPrefix = getIddPrefix(fromCountry, undefined, metadata.metadata);
2396
2458
 
2397
2459
  if (iddPrefix) {
2398
- return "".concat(iddPrefix, " ").concat(countryCallingCode, " ").concat(formatNationalNumber$1(nationalNumber, null, 'INTERNATIONAL', metadata));
2460
+ return "".concat(iddPrefix, " ").concat(countryCallingCode, " ").concat(formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata));
2399
2461
  }
2400
2462
  }
2401
2463
 
2402
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
2464
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
2403
2465
 
2404
- function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2466
+ function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2405
2467
 
2406
- function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2468
+ function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2407
2469
 
2408
- function _defineProperties$4(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2470
+ function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2409
2471
 
2410
- function _createClass$4(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); if (staticProps) _defineProperties$4(Constructor, staticProps); return Constructor; }
2472
+ function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
2411
2473
 
2412
2474
  var PhoneNumber =
2413
2475
  /*#__PURE__*/
2414
2476
  function () {
2415
2477
  function PhoneNumber(countryCallingCode, nationalNumber, metadata) {
2416
- _classCallCheck$4(this, PhoneNumber);
2478
+ _classCallCheck$1(this, PhoneNumber);
2417
2479
 
2418
2480
  if (!countryCallingCode) {
2419
2481
  throw new TypeError('`country` or `countryCallingCode` not passed');
@@ -2445,7 +2507,7 @@ function () {
2445
2507
  this.metadata = metadata;
2446
2508
  }
2447
2509
 
2448
- _createClass$4(PhoneNumber, [{
2510
+ _createClass$1(PhoneNumber, [{
2449
2511
  key: "isPossible",
2450
2512
  value: function isPossible() {
2451
2513
  return isPossiblePhoneNumber(this, {
@@ -2485,7 +2547,7 @@ function () {
2485
2547
  }, {
2486
2548
  key: "format",
2487
2549
  value: function format(_format, options) {
2488
- return formatNumber(this, _format, options ? _objectSpread({}, options, {
2550
+ return formatNumber(this, _format, options ? _objectSpread$1({}, options, {
2489
2551
  v2: true
2490
2552
  }) : {
2491
2553
  v2: true
@@ -2944,13 +3006,13 @@ function selectCountryFromList(possibleCountries, nationalPhoneNumber, metadata)
2944
3006
  }
2945
3007
  }
2946
3008
 
2947
- function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3009
+ function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2948
3010
 
2949
- function _defineProperties$3(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3011
+ function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2950
3012
 
2951
- function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); return Constructor; }
3013
+ function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); return Constructor; }
2952
3014
 
2953
- function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3015
+ function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2954
3016
 
2955
3017
  var AsYouTypeState =
2956
3018
  /*#__PURE__*/
@@ -2961,9 +3023,9 @@ function () {
2961
3023
  var onCountryChange = _ref.onCountryChange,
2962
3024
  onCallingCodeChange = _ref.onCallingCodeChange;
2963
3025
 
2964
- _classCallCheck$3(this, AsYouTypeState);
3026
+ _classCallCheck$2(this, AsYouTypeState);
2965
3027
 
2966
- _defineProperty$1(this, "update", function (properties) {
3028
+ _defineProperty$2(this, "update", function (properties) {
2967
3029
  for (var _i = 0, _Object$keys = Object.keys(properties); _i < _Object$keys.length; _i++) {
2968
3030
  var key = _Object$keys[_i];
2969
3031
  _this[key] = properties[key];
@@ -2974,7 +3036,7 @@ function () {
2974
3036
  this.onCallingCodeChange = onCallingCodeChange;
2975
3037
  }
2976
3038
 
2977
- _createClass$3(AsYouTypeState, [{
3039
+ _createClass$2(AsYouTypeState, [{
2978
3040
  key: "reset",
2979
3041
  value: function reset(defaultCountry, defaultCallingCode) {
2980
3042
  this.international = false;
@@ -3190,7 +3252,7 @@ function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, f
3190
3252
  //
3191
3253
 
3192
3254
  if (shouldTryNationalPrefixFormattingRule(format)) {
3193
- var formattedNumber = formatNationalNumber(state, format, {
3255
+ var formattedNumber = formatNationalNumber$1(state, format, {
3194
3256
  useNationalPrefixFormattingRule: true,
3195
3257
  getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,
3196
3258
  metadata: metadata
@@ -3202,14 +3264,14 @@ function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, f
3202
3264
  } // Format the number without using `national_prefix_formatting_rule`.
3203
3265
 
3204
3266
 
3205
- return formatNationalNumber(state, format, {
3267
+ return formatNationalNumber$1(state, format, {
3206
3268
  useNationalPrefixFormattingRule: false,
3207
3269
  getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,
3208
3270
  metadata: metadata
3209
3271
  });
3210
3272
  }
3211
3273
 
3212
- function formatNationalNumber(state, format, _ref3) {
3274
+ function formatNationalNumber$1(state, format, _ref3) {
3213
3275
  var metadata = _ref3.metadata,
3214
3276
  useNationalPrefixFormattingRule = _ref3.useNationalPrefixFormattingRule,
3215
3277
  getSeparatorAfterNationalPrefix = _ref3.getSeparatorAfterNationalPrefix;
@@ -3268,13 +3330,13 @@ function isValidFormattedNationalNumber(formattedNationalNumber, state) {
3268
3330
  return parseDigits(formattedNationalNumber) === state.getNationalDigits();
3269
3331
  }
3270
3332
 
3271
- function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3333
+ function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3272
3334
 
3273
- function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3335
+ function _defineProperties$3(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3274
3336
 
3275
- function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); return Constructor; }
3337
+ function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); return Constructor; }
3276
3338
 
3277
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3339
+ function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3278
3340
  // Could be any digit, I guess.
3279
3341
 
3280
3342
  var DUMMY_DIGIT = '9'; // I don't know why is it exactly `15`
@@ -3288,7 +3350,7 @@ var LONGEST_DUMMY_PHONE_NUMBER = repeat(DUMMY_DIGIT, LONGEST_NATIONAL_PHONE_NUMB
3288
3350
  var NATIONAL_PREFIX_SEPARATORS_PATTERN = /[- ]/; // Deprecated: Google has removed some formatting pattern related code from their repo.
3289
3351
  // An example of a character class is "[1-4]".
3290
3352
 
3291
- var CREATE_CHARACTER_CLASS_PATTERN = function () {
3353
+ var CREATE_CHARACTER_CLASS_PATTERN = function () {
3292
3354
  return /\[([^\[\]])*\]/g;
3293
3355
  }; // Any digit in a regular expression that actually denotes a digit. For
3294
3356
  // example, in the regular expression "80[0-2]\d{6,10}", the first 2 digits
@@ -3297,7 +3359,7 @@ var CREATE_CHARACTER_CLASS_PATTERN = function () {
3297
3359
  // two-digit number, since the phone number can be as long as 15 digits.
3298
3360
 
3299
3361
 
3300
- var CREATE_STANDALONE_DIGIT_PATTERN = function () {
3362
+ var CREATE_STANDALONE_DIGIT_PATTERN = function () {
3301
3363
  return /\d(?=[^,}][^,}])/g;
3302
3364
  }; // A regular expression that is used to determine if a `format` is
3303
3365
  // suitable to be used in the "as you type formatter".
@@ -3349,9 +3411,9 @@ function () {
3349
3411
 
3350
3412
  var metadata = _ref.metadata;
3351
3413
 
3352
- _classCallCheck$2(this, AsYouTypeFormatter);
3414
+ _classCallCheck$3(this, AsYouTypeFormatter);
3353
3415
 
3354
- _defineProperty(this, "getSeparatorAfterNationalPrefix", function (format) {
3416
+ _defineProperty$3(this, "getSeparatorAfterNationalPrefix", function (format) {
3355
3417
  // `US` metadata doesn't have a `national_prefix_formatting_rule`,
3356
3418
  // so the `if` condition below doesn't apply to `US`,
3357
3419
  // but in reality there shoudl be a separator
@@ -3375,7 +3437,7 @@ function () {
3375
3437
  return '';
3376
3438
  });
3377
3439
 
3378
- _defineProperty(this, "shouldTryNationalPrefixFormattingRule", function (format, _ref2) {
3440
+ _defineProperty$3(this, "shouldTryNationalPrefixFormattingRule", function (format, _ref2) {
3379
3441
  var international = _ref2.international,
3380
3442
  nationalPrefix = _ref2.nationalPrefix;
3381
3443
 
@@ -3395,7 +3457,7 @@ function () {
3395
3457
  this.resetFormat();
3396
3458
  }
3397
3459
 
3398
- _createClass$2(AsYouTypeFormatter, [{
3460
+ _createClass$3(AsYouTypeFormatter, [{
3399
3461
  key: "resetFormat",
3400
3462
  value: function resetFormat() {
3401
3463
  this.chosenFormat = undefined;
@@ -3719,7 +3781,7 @@ function () {
3719
3781
  // (Though there's no such format in current metadata)
3720
3782
 
3721
3783
  /* istanbul ignore if */
3722
- if (format.pattern().indexOf('|') >= 0) {
3784
+ if ( format.pattern().indexOf('|') >= 0) {
3723
3785
  return;
3724
3786
  } // Get formatting template for this phone number format
3725
3787
 
@@ -3954,19 +4016,19 @@ function () {
3954
4016
  return AsYouTypeFormatter;
3955
4017
  }();
3956
4018
 
3957
- function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1(); }
4019
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3958
4020
 
3959
- function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
4021
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3960
4022
 
3961
- function _iterableToArrayLimit$1(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
4023
+ function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
3962
4024
 
3963
- function _arrayWithHoles$1(arr) { if (Array.isArray(arr)) return arr; }
4025
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3964
4026
 
3965
- function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4027
+ function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3966
4028
 
3967
- function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
4029
+ function _defineProperties$4(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3968
4030
 
3969
- function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
4031
+ function _createClass$4(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); if (staticProps) _defineProperties$4(Constructor, staticProps); return Constructor; }
3970
4032
  var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART = '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+';
3971
4033
  var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN = new RegExp('^' + VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART + '$', 'i');
3972
4034
  var VALID_FORMATTED_PHONE_NUMBER_PART = '(?:' + '[' + PLUS_CHARS + ']' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*' + '|' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + ')';
@@ -3985,7 +4047,7 @@ function () {
3985
4047
  metadata = _ref.metadata,
3986
4048
  onNationalSignificantNumberChange = _ref.onNationalSignificantNumberChange;
3987
4049
 
3988
- _classCallCheck$1(this, AsYouTypeParser);
4050
+ _classCallCheck$4(this, AsYouTypeParser);
3989
4051
 
3990
4052
  this.defaultCountry = defaultCountry;
3991
4053
  this.defaultCallingCode = defaultCallingCode;
@@ -3993,11 +4055,11 @@ function () {
3993
4055
  this.onNationalSignificantNumberChange = onNationalSignificantNumberChange;
3994
4056
  }
3995
4057
 
3996
- _createClass$1(AsYouTypeParser, [{
4058
+ _createClass$4(AsYouTypeParser, [{
3997
4059
  key: "input",
3998
4060
  value: function input(text, state) {
3999
4061
  var _extractFormattedDigi = extractFormattedDigitsAndPlus(text),
4000
- _extractFormattedDigi2 = _slicedToArray$1(_extractFormattedDigi, 2),
4062
+ _extractFormattedDigi2 = _slicedToArray(_extractFormattedDigi, 2),
4001
4063
  formattedDigits = _extractFormattedDigi2[0],
4002
4064
  hasPlus = _extractFormattedDigi2[1];
4003
4065
 
@@ -4415,7 +4477,7 @@ function _extractFormattedDigitsAndPlus(text) {
4415
4477
 
4416
4478
  function extractFormattedDigitsAndPlus(text) {
4417
4479
  var _extractFormattedDigi3 = _extractFormattedDigitsAndPlus(text),
4418
- _extractFormattedDigi4 = _slicedToArray$1(_extractFormattedDigi3, 2),
4480
+ _extractFormattedDigi4 = _slicedToArray(_extractFormattedDigi3, 2),
4419
4481
  formattedDigits = _extractFormattedDigi4[0],
4420
4482
  hasPlus = _extractFormattedDigi4[1]; // If the extracted phone number part
4421
4483
  // can possibly be a part of some valid phone number
@@ -4429,23 +4491,23 @@ function extractFormattedDigitsAndPlus(text) {
4429
4491
  return [formattedDigits, hasPlus];
4430
4492
  }
4431
4493
 
4432
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4494
+ function _typeof$1(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
4433
4495
 
4434
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
4496
+ function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1(); }
4435
4497
 
4436
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
4498
+ function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
4437
4499
 
4438
- function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
4500
+ function _iterableToArrayLimit$1(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
4439
4501
 
4440
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
4502
+ function _arrayWithHoles$1(arr) { if (Array.isArray(arr)) return arr; }
4441
4503
 
4442
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4504
+ function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4443
4505
 
4444
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
4506
+ function _defineProperties$5(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
4445
4507
 
4446
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4508
+ function _createClass$5(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); if (staticProps) _defineProperties$5(Constructor, staticProps); return Constructor; }
4447
4509
 
4448
- var AsYouType$1 =
4510
+ var AsYouType =
4449
4511
  /*#__PURE__*/
4450
4512
  function () {
4451
4513
  /**
@@ -4453,12 +4515,12 @@ function () {
4453
4515
  * @param {Object} metadata
4454
4516
  */
4455
4517
  function AsYouType(optionsOrDefaultCountry, metadata) {
4456
- _classCallCheck(this, AsYouType);
4518
+ _classCallCheck$5(this, AsYouType);
4457
4519
 
4458
4520
  this.metadata = new Metadata(metadata);
4459
4521
 
4460
4522
  var _this$getCountryAndCa = this.getCountryAndCallingCode(optionsOrDefaultCountry),
4461
- _this$getCountryAndCa2 = _slicedToArray(_this$getCountryAndCa, 2),
4523
+ _this$getCountryAndCa2 = _slicedToArray$1(_this$getCountryAndCa, 2),
4462
4524
  defaultCountry = _this$getCountryAndCa2[0],
4463
4525
  defaultCallingCode = _this$getCountryAndCa2[1];
4464
4526
 
@@ -4467,7 +4529,7 @@ function () {
4467
4529
  this.reset();
4468
4530
  }
4469
4531
 
4470
- _createClass(AsYouType, [{
4532
+ _createClass$5(AsYouType, [{
4471
4533
  key: "getCountryAndCallingCode",
4472
4534
  value: function getCountryAndCallingCode(optionsOrDefaultCountry) {
4473
4535
  // Set `defaultCountry` and `defaultCallingCode` options.
@@ -4475,7 +4537,7 @@ function () {
4475
4537
  var defaultCallingCode; // Turns out `null` also has type "object". Weird.
4476
4538
 
4477
4539
  if (optionsOrDefaultCountry) {
4478
- if (_typeof(optionsOrDefaultCountry) === 'object') {
4540
+ if (_typeof$1(optionsOrDefaultCountry) === 'object') {
4479
4541
  defaultCountry = optionsOrDefaultCountry.defaultCountry;
4480
4542
  defaultCallingCode = optionsOrDefaultCountry.defaultCallingCode;
4481
4543
  } else {
@@ -4835,18 +4897,18 @@ function () {
4835
4897
  return AsYouType;
4836
4898
  }();
4837
4899
 
4838
- function AsYouType(country) {
4839
- return AsYouType$1.call(this, country, metadata)
4900
+ function AsYouType$1(country) {
4901
+ return AsYouType.call(this, country, metadata)
4840
4902
  }
4841
4903
 
4842
- AsYouType.prototype = Object.create(AsYouType$1.prototype, {});
4843
- AsYouType.prototype.constructor = AsYouType;
4904
+ AsYouType$1.prototype = Object.create(AsYouType.prototype, {});
4905
+ AsYouType$1.prototype.constructor = AsYouType$1;
4844
4906
 
4845
4907
  function usePortalRegister(props) {
4846
4908
  var _a, _b, _c, _d, _e, _f;
4847
4909
  const formRef = useRef(null);
4848
4910
  const { validationState, setValidationState } = useValidationState({});
4849
- const [request, { loading, errors, data }] = De();
4911
+ const [request, { loading, errors, data }] = Ve();
4850
4912
  const submit = async (event) => {
4851
4913
  let formControls = event.target.getFormControls();
4852
4914
  let formData = {};
@@ -4905,13 +4967,13 @@ function usePortalRegister(props) {
4905
4967
  const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
4906
4968
  if (name !== "tel")
4907
4969
  return;
4908
- const asYouType = new AsYouType("US");
4970
+ const asYouType = new AsYouType$1("US");
4909
4971
  e.target.value = asYouType.input(e.target.value);
4910
4972
  }, []);
4911
4973
  useEffect(() => {
4912
4974
  var _a;
4913
4975
  if ((_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
4914
- dn.push(props.nextPage);
4976
+ pn.push(props.nextPage);
4915
4977
  }
4916
4978
  }, [(_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token]);
4917
4979
  useEffect(() => {
@@ -4953,7 +5015,7 @@ function usePortalRegister(props) {
4953
5015
  };
4954
5016
  }
4955
5017
 
4956
- let PortalRegister = class {
5018
+ const PortalRegister = class {
4957
5019
  constructor(hostRef) {
4958
5020
  registerInstance(this, hostRef);
4959
5021
  this.ignored = true;
@@ -5011,12 +5073,12 @@ let PortalRegister = class {
5011
5073
  }
5012
5074
  disconnectedCallback() { }
5013
5075
  render() {
5014
- const { states, callbacks, refs } = jn()
5076
+ const { states, callbacks, refs } = k()
5015
5077
  ? useRegisterDemo(this)
5016
5078
  : usePortalRegister(this);
5017
5079
  const content = {
5018
5080
  formData: h$1("slot", { name: "formData" }),
5019
- secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => dn.push(states.loginPath) }, this.loginLabel))),
5081
+ secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => pn.push(states.loginPath) }, this.loginLabel))),
5020
5082
  terms: h$1("slot", { name: "terms" }),
5021
5083
  emailLabel: this.emailLabel,
5022
5084
  passwordLabel: this.passwordLabel,
@@ -5092,7 +5154,7 @@ function ProgramExplainerView(props, children) {
5092
5154
  h$1("div", { class: sheet.classes.Grid }, children)));
5093
5155
  }
5094
5156
 
5095
- let ProgramExplainer = class {
5157
+ const ProgramExplainer = class {
5096
5158
  constructor(hostRef) {
5097
5159
  registerInstance(this, hostRef);
5098
5160
  this.ignored = true;
@@ -5164,7 +5226,7 @@ function ProgramExplainerStepView(props) {
5164
5226
  h$1("div", { class: sheet.classes.Description }, props.description))));
5165
5227
  }
5166
5228
 
5167
- let ProgramExplainerStep = class {
5229
+ const ProgramExplainerStep = class {
5168
5230
  constructor(hostRef) {
5169
5231
  registerInstance(this, hostRef);
5170
5232
  h(this);
@@ -5175,14 +5237,14 @@ let ProgramExplainerStep = class {
5175
5237
  }
5176
5238
  };
5177
5239
 
5178
- const debug$1 = browser('sq:useProgramMenu');
5240
+ const debug = browser('sq:useProgramMenu');
5179
5241
  const UPDATE_PROGRAM_EVENT = 'sq:update-program-id';
5180
5242
  function useProgramMenu(props) {
5181
5243
  const programId = M();
5182
5244
  const host = P();
5183
- debug$1({ programId, props });
5245
+ debug({ programId, props });
5184
5246
  const ref = useRef();
5185
- const [, rerender] = rn();
5247
+ const [, rerender] = dn();
5186
5248
  useEffect(() => {
5187
5249
  var _a;
5188
5250
  (_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
@@ -5206,7 +5268,7 @@ function useProgramMenu(props) {
5206
5268
  };
5207
5269
  }
5208
5270
 
5209
- let ProgramMenu = class {
5271
+ const ProgramMenu = class {
5210
5272
  constructor(hostRef) {
5211
5273
  registerInstance(this, hostRef);
5212
5274
  this.ignored = true;
@@ -5285,7 +5347,7 @@ function ReferralCardView(props) {
5285
5347
  h$1("div", { class: "right" }, props.slots.right))));
5286
5348
  }
5287
5349
 
5288
- let ReferralCard = class {
5350
+ const ReferralCard = class {
5289
5351
  constructor(hostRef) {
5290
5352
  registerInstance(this, hostRef);
5291
5353
  this.ignored = true;
@@ -5325,8 +5387,8 @@ const GET_USER_DETAILS = dist.gql `
5325
5387
  function useReferralIframe(props) {
5326
5388
  var _a;
5327
5389
  const programId = M();
5328
- const user = ie();
5329
- const { data } = sn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
5390
+ const user = ne();
5391
+ const { data } = mn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
5330
5392
  return {
5331
5393
  states: {
5332
5394
  content: props,
@@ -5382,7 +5444,7 @@ function RequiredPropsError({ missingProps }) {
5382
5444
  h$1("strong", null, prop.attribute))))))));
5383
5445
  }
5384
5446
 
5385
- let SqmReferralIframe = class {
5447
+ const SqmReferralIframe = class {
5386
5448
  constructor(hostRef) {
5387
5449
  registerInstance(this, hostRef);
5388
5450
  this.ignored = true;
@@ -5407,7 +5469,7 @@ let SqmReferralIframe = class {
5407
5469
  if (missingProps) {
5408
5470
  return h$1(RequiredPropsError, { missingProps: missingProps });
5409
5471
  }
5410
- const { states, data } = jn()
5472
+ const { states, data } = k()
5411
5473
  ? useReferralIframeDemo(getProps(this))
5412
5474
  : useReferralIframe(getProps(this));
5413
5475
  return (h$1(Host, { style: { display: "contents" } }, h$1(ReferralIframeView, { data: data, states: states })));
@@ -6094,9 +6156,9 @@ function useRewardExchangeList(props) {
6094
6156
  });
6095
6157
  const [open, setOpen] = useState(false);
6096
6158
  const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
6097
- const user = ie();
6098
- const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = qe(EXCHANGE);
6099
- const { data, loading, refetch, errors: queryError, } = sn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
6159
+ const user = ne();
6160
+ const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = De(EXCHANGE);
6161
+ const { data, loading, refetch, errors: queryError, } = mn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
6100
6162
  useEffect(() => {
6101
6163
  var _a, _b;
6102
6164
  if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
@@ -6116,7 +6178,7 @@ function useRewardExchangeList(props) {
6116
6178
  canvas.confetti || confetti.create(canvas, { resize: true, });
6117
6179
  canvas.confetti();
6118
6180
  }, [canvasRef.current]);
6119
- const { refresh } = He();
6181
+ const { refresh } = Qe();
6120
6182
  async function exchangeReward() {
6121
6183
  if (!selectedItem)
6122
6184
  return;
@@ -6229,7 +6291,7 @@ function useRewardExchangeList(props) {
6229
6291
  };
6230
6292
  }
6231
6293
 
6232
- let SqmRewardExchangeList = class {
6294
+ const SqmRewardExchangeList = class {
6233
6295
  constructor(hostRef) {
6234
6296
  registerInstance(this, hostRef);
6235
6297
  this.ignored = true;
@@ -6354,7 +6416,7 @@ let SqmRewardExchangeList = class {
6354
6416
  // if (missingProps) {
6355
6417
  // return <RequiredPropsError missingProps={missingProps} />;
6356
6418
  // }
6357
- const { states, data, callbacks, refs } = jn()
6419
+ const { states, data, callbacks, refs } = k()
6358
6420
  ? useRewardExchangeListDemo(getProps(this))
6359
6421
  : useRewardExchangeList(getProps(this));
6360
6422
  return (h$1(Host, { style: { display: "contents" } }, h$1(RewardExchangeView, { states: states, data: data, callbacks: callbacks, refs: refs })));
@@ -6390,7 +6452,7 @@ function useRewardExchangeListDemo(props) {
6390
6452
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
6391
6453
  }
6392
6454
 
6393
- const debug = browser("sq:useRouter");
6455
+ const debug$1 = browser("sq:useRouter");
6394
6456
  function matchPath(pattern, page) {
6395
6457
  if (!pattern)
6396
6458
  return;
@@ -6398,7 +6460,7 @@ function matchPath(pattern, page) {
6398
6460
  return regexp.exec(page);
6399
6461
  }
6400
6462
  function useRouter() {
6401
- const location = ln();
6463
+ const location = hn();
6402
6464
  const host = P();
6403
6465
  const [slot, setSlot] = useState(undefined);
6404
6466
  const [container, setContainer] = useState(undefined);
@@ -6418,7 +6480,7 @@ function useRouter() {
6418
6480
  useEffect(() => {
6419
6481
  var _a, _b;
6420
6482
  if (!container || !slot) {
6421
- debug("DOM not ready for navigation rendering on:", page);
6483
+ debug$1("DOM not ready for navigation rendering on:", page);
6422
6484
  return;
6423
6485
  }
6424
6486
  // <template>
@@ -6433,7 +6495,7 @@ function useRouter() {
6433
6495
  });
6434
6496
  //@ts-ignore - can't access template attributes directly
6435
6497
  const templatePath = (_b = (_a = template === null || template === void 0 ? void 0 : template.attributes) === null || _a === void 0 ? void 0 : _a.path) === null || _b === void 0 ? void 0 : _b.nodeValue;
6436
- debug({
6498
+ debug$1({
6437
6499
  containerDatasetPage: container.dataset.page,
6438
6500
  templatePath,
6439
6501
  page,
@@ -6441,15 +6503,15 @@ function useRouter() {
6441
6503
  // if no routes found, and the old route doesn't match the new route
6442
6504
  if (!template) {
6443
6505
  // No matching page, display nothing
6444
- debug("No matching page found for ", page, ", so render nothing");
6506
+ debug$1("No matching page found for ", page, ", so render nothing");
6445
6507
  container.innerHTML = "";
6446
6508
  container.dataset.page = page;
6447
6509
  return;
6448
6510
  }
6449
- debug("Page updated to ", page, template);
6511
+ debug$1("Page updated to ", page, template);
6450
6512
  // if pathToRegexp results truthy or page is an exact match
6451
6513
  if (!!matchPath(templatePath, container.dataset.page)) {
6452
- debug("don't rerender");
6514
+ debug$1("don't rerender");
6453
6515
  // Same page, do not re-render
6454
6516
  // Reduces dom mutations, speeds up page speed
6455
6517
  }
@@ -6468,7 +6530,7 @@ function useRouter() {
6468
6530
 
6469
6531
  const sqmRouterCss = "sqm-router{display:contents}";
6470
6532
 
6471
- let SqmRouter = class {
6533
+ const SqmRouter = class {
6472
6534
  constructor(hostRef) {
6473
6535
  registerInstance(this, hostRef);
6474
6536
  this.ignored = true;
@@ -6484,7 +6546,7 @@ SqmRouter.style = sqmRouterCss;
6484
6546
 
6485
6547
  const sqmShareButtonCss = ":host{display:block}:host([hidden]){display:none}sl-button{display:block}";
6486
6548
 
6487
- let ShareButton = class {
6549
+ const ShareButton = class {
6488
6550
  constructor(hostRef) {
6489
6551
  registerInstance(this, hostRef);
6490
6552
  /**
@@ -6513,7 +6575,7 @@ let ShareButton = class {
6513
6575
  disconnectedCallback() { }
6514
6576
  render() {
6515
6577
  const thisProps = getProps(this);
6516
- const props = jn()
6578
+ const props = k()
6517
6579
  ? useDemoShareButton(thisProps)
6518
6580
  : useShareButton(thisProps);
6519
6581
  return (h$1(ShareButtonView, Object.assign({}, props), h$1("slot", null)));
@@ -6548,10 +6610,10 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
6548
6610
  function useShareCode(props) {
6549
6611
  var _a, _b;
6550
6612
  const programId = M();
6551
- const user = ie();
6552
- const engagementMedium = Rn();
6553
- const { data } = sn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
6554
- const [sendLoadEvent] = qe(WIDGET_ENGAGEMENT_EVENT);
6613
+ const user = ne();
6614
+ const engagementMedium = x();
6615
+ const { data } = mn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
6616
+ const [sendLoadEvent] = De(WIDGET_ENGAGEMENT_EVENT);
6555
6617
  const shareString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
6556
6618
  // Shown during loading
6557
6619
  "...";
@@ -6578,8 +6640,8 @@ function useShareCode(props) {
6578
6640
  return { ...props, onClick, open, shareString };
6579
6641
  }
6580
6642
 
6581
- const DEFAULT_TOOLTIP_LIFESPAN$1 = 1000;
6582
- let ShareCode = class {
6643
+ const DEFAULT_TOOLTIP_LIFESPAN = 1000;
6644
+ const ShareCode = class {
6583
6645
  constructor(hostRef) {
6584
6646
  registerInstance(this, hostRef);
6585
6647
  /**
@@ -6593,13 +6655,13 @@ let ShareCode = class {
6593
6655
  *
6594
6656
  * @uiName Tooltip lifespan
6595
6657
  */
6596
- this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN$1;
6658
+ this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN;
6597
6659
  h(this);
6598
6660
  }
6599
6661
  disconnectedCallback() { }
6600
6662
  render() {
6601
6663
  const thisProps = getProps(this);
6602
- const props = jn()
6664
+ const props = k()
6603
6665
  ? useDemoShareCode(thisProps)
6604
6666
  : useShareCode(thisProps);
6605
6667
  return h$1(ShareLinkView, Object.assign({}, props));
@@ -6622,8 +6684,8 @@ function useDemoShareCode(props) {
6622
6684
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
6623
6685
  }
6624
6686
 
6625
- const DEFAULT_TOOLTIP_LIFESPAN = 1000;
6626
- let ShareLink = class {
6687
+ const DEFAULT_TOOLTIP_LIFESPAN$1 = 1000;
6688
+ const ShareLink = class {
6627
6689
  constructor(hostRef) {
6628
6690
  registerInstance(this, hostRef);
6629
6691
  /**
@@ -6637,13 +6699,13 @@ let ShareLink = class {
6637
6699
  *
6638
6700
  * @uiName Tooltip lifespan
6639
6701
  */
6640
- this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN;
6702
+ this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN$1;
6641
6703
  h(this);
6642
6704
  }
6643
6705
  disconnectedCallback() { }
6644
6706
  render() {
6645
6707
  const thisProps = getProps(this);
6646
- const props = jn()
6708
+ const props = k()
6647
6709
  ? useDemoShareLink(thisProps)
6648
6710
  : useShareLink(thisProps);
6649
6711
  return h$1(ShareLinkView, Object.assign({}, props));
@@ -6674,10 +6736,10 @@ const SEND_EVENT = dist.gql `
6674
6736
  }
6675
6737
  `;
6676
6738
  function useTaskCard(props) {
6677
- const user = ie();
6678
- const locale = An();
6679
- const [sendUserEvent, { data, loading: loadingEvent }] = qe(SEND_EVENT);
6680
- const { refresh } = He();
6739
+ const user = ne();
6740
+ const locale = R();
6741
+ const [sendUserEvent, { data, loading: loadingEvent }] = De(SEND_EVENT);
6742
+ const { refresh } = Qe();
6681
6743
  useEffect(() => {
6682
6744
  if (data) {
6683
6745
  refresh();
@@ -6707,7 +6769,7 @@ function useTaskCard(props) {
6707
6769
  };
6708
6770
  }
6709
6771
 
6710
- let TaskCard = class {
6772
+ const TaskCard = class {
6711
6773
  constructor(hostRef) {
6712
6774
  registerInstance(this, hostRef);
6713
6775
  this.ignored = true;
@@ -6809,11 +6871,11 @@ let TaskCard = class {
6809
6871
  }
6810
6872
  disconnectedCallback() { }
6811
6873
  render() {
6812
- const { props } = jn()
6874
+ const { props } = k()
6813
6875
  ? useDemoBigStat(this)
6814
6876
  : useBigStat({ ...getProps(this), programId: this.programId });
6815
6877
  const { value, loading } = props;
6816
- const { states, callbacks } = jn()
6878
+ const { states, callbacks } = k()
6817
6879
  ? useTaskCardDemo(this)
6818
6880
  : useTaskCard(this);
6819
6881
  return (h$1(TaskCardView, { callbacks: callbacks, states: {
@@ -6834,7 +6896,7 @@ function useTaskCardDemo(props) {
6834
6896
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
6835
6897
  }
6836
6898
 
6837
- let Timeline = class {
6899
+ const Timeline = class {
6838
6900
  constructor(hostRef) {
6839
6901
  registerInstance(this, hostRef);
6840
6902
  this.ignored = true;
@@ -6850,7 +6912,12 @@ let Timeline = class {
6850
6912
  render() {
6851
6913
  //@ts-ignore
6852
6914
  const rewards = useChildElements();
6853
- rewards.forEach((reward) => (reward.icon = this.icon));
6915
+ rewards.forEach((reward, idx) => {
6916
+ if (rewards.length > 1 && idx != rewards.length - 1) {
6917
+ reward.line = true;
6918
+ }
6919
+ reward.icon = this.icon;
6920
+ });
6854
6921
  const vanillaStyle = `
6855
6922
  :host{
6856
6923
  display: block;
@@ -6859,7 +6926,7 @@ let Timeline = class {
6859
6926
  // ::slotted(*:not(:only-child):not(:last-child)) {
6860
6927
  // margin-bottom: var(--sl-spacing-xx-large);
6861
6928
  // }
6862
-
6929
+
6863
6930
  // ::slotted(*:not(:only-child):not(:last-child))::before {
6864
6931
  // display: block;
6865
6932
  // content: "";
@@ -6883,20 +6950,20 @@ let Timeline = class {
6883
6950
 
6884
6951
 
6885
6952
  // ZH: Temporary Patch fix
6886
- ::slotted(*:not(:first-child))::before {
6887
- display: block;
6888
- position: relative;
6889
- content: "";
6890
- background: var(--sl-color-primary-300);
6891
- min-height: 150px;
6892
- max-height: 300px;
6893
- width: 4px;
6894
- top: 12px;
6895
- left: 10px;
6896
- margin-top: -85px;
6897
- margin-bottom: 8px;
6898
- border-radius: 4px;
6899
- }
6953
+ // ::slotted(*:not(:first-child))::before {
6954
+ // display: block;
6955
+ // position: relative;
6956
+ // content: "";
6957
+ // background: var(--sl-color-primary-300);
6958
+ // min-height: 150px;
6959
+ // max-height: 300px;
6960
+ // width: 4px;
6961
+ // top: 12px;
6962
+ // left: 10px;
6963
+ // margin-top: -85px;
6964
+ // margin-bottom: 8px;
6965
+ // border-radius: 4px;
6966
+ // }
6900
6967
  `;
6901
6968
  return (h$1("div", null, h$1("style", { type: "text/css" }, vanillaStyle), h$1("slot", null)));
6902
6969
  }
@@ -6910,7 +6977,7 @@ const Gift = () => (h$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24"
6910
6977
  const Circle = () => (h$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
6911
6978
  h$1("circle", { cx: "12", cy: "12", r: "9", fill: "currentColor", stroke: "currentColor", "stroke-width": "2" })));
6912
6979
 
6913
- let TimelineReward = class {
6980
+ const TimelineReward = class {
6914
6981
  constructor(hostRef) {
6915
6982
  registerInstance(this, hostRef);
6916
6983
  this.ignored = true;
@@ -6928,6 +6995,21 @@ let TimelineReward = class {
6928
6995
  TimelineReward: {
6929
6996
  color: "var(--sl-color-neutral-900)",
6930
6997
  lineHeight: "var(--sl-line-height-dense)",
6998
+ "& .container": {
6999
+ display: "flex",
7000
+ },
7001
+ "& .line": {
7002
+ color: "transparent",
7003
+ userSelect: "none",
7004
+ background: "var(--sl-color-primary-300)",
7005
+ width: "4px",
7006
+ borderRadius: "4px",
7007
+ margin: "-2px",
7008
+ position: "relative",
7009
+ left: "12px",
7010
+ transform: "scaleY(0.95)",
7011
+ top: "16px",
7012
+ },
6931
7013
  "& .step": {
6932
7014
  display: "flex",
6933
7015
  minHeight: "100px",
@@ -6950,13 +7032,7 @@ let TimelineReward = class {
6950
7032
  },
6951
7033
  "& .description": {
6952
7034
  fontSize: "var(--sl-font-size-large)",
6953
- },
6954
- "& .line": {
6955
- height: "50px",
6956
- position: "relative",
6957
- left: "10px",
6958
- top: "-32px",
6959
- color: "var(--sl-color-primary-300)",
7035
+ marginBottom: "var(--sl-spacing-xx-large)",
6960
7036
  },
6961
7037
  },
6962
7038
  };
@@ -6968,7 +7044,7 @@ let TimelineReward = class {
6968
7044
  }
6969
7045
  `;
6970
7046
  useRequestRerender([this.reward]);
6971
- return (h$1("div", { class: sheet.classes.TimelineReward }, h$1("style", { type: "text/css" }, styleString, vanillaStyle), h$1("div", { class: "step" }, this.icon === "gift" && (h$1("div", { class: "icon" }, h$1(Gift, null))), this.icon === "circle" && (h$1("div", { class: "icon" }, h$1(Circle, null))), h$1("div", null, h$1("div", null, h$1("span", { class: "reward" }, this.reward), h$1("span", { class: "unit" }, this.unit)), h$1("div", { class: "description" }, this.desc)))));
7047
+ return (h$1("div", { class: sheet.classes.TimelineReward }, h$1("style", { type: "text/css" }, styleString, vanillaStyle), h$1("div", { class: "container" }, this.line && h$1("div", { class: "line" }, "."), h$1("div", { class: "step" }, this.icon === "gift" && (h$1("div", { class: "icon" }, h$1(Gift, null))), this.icon === "circle" && (h$1("div", { class: "icon" }, h$1(Circle, null))), h$1("div", null, h$1("div", null, h$1("span", { class: "reward" }, this.reward), h$1("span", { class: "unit" }, this.unit)), h$1("div", { class: "description" }, this.desc))))));
6972
7048
  }
6973
7049
  };
6974
7050
 
@@ -6988,8 +7064,8 @@ const GET_USER_NAME = dist.gql `
6988
7064
  `;
6989
7065
  function useUserName(props) {
6990
7066
  var _a, _b, _c, _d, _e, _f, _g, _h;
6991
- const user = ie();
6992
- const res = sn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
7067
+ const user = ne();
7068
+ const res = mn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
6993
7069
  const loading = res.loading;
6994
7070
  const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
6995
7071
  ? `${(_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.firstName} ${(_h = (_g = res.data) === null || _g === void 0 ? void 0 : _g.viewer) === null || _h === void 0 ? void 0 : _h.lastName}`
@@ -7001,7 +7077,7 @@ function useUserName(props) {
7001
7077
  };
7002
7078
  }
7003
7079
 
7004
- let UserName = class {
7080
+ const UserName = class {
7005
7081
  constructor(hostRef) {
7006
7082
  registerInstance(this, hostRef);
7007
7083
  this._ignored = true;
@@ -7017,7 +7093,7 @@ let UserName = class {
7017
7093
  }
7018
7094
  disconnectedCallback() { }
7019
7095
  render() {
7020
- const props = jn() ? useUserNameDemo(this) : useUserName(this);
7096
+ const props = k() ? useUserNameDemo(this) : useUserName(this);
7021
7097
  return h$1(UserNameView, Object.assign({}, props));
7022
7098
  }
7023
7099
  };
@@ -7029,4 +7105,4 @@ function useUserNameDemo(props) {
7029
7105
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
7030
7106
  }
7031
7107
 
7032
- export { BrandComponent as sqm_brand, CardFeed as sqm_card_feed, DividedLayout as sqm_divided_layout, EditProfile as sqm_edit_profile, SqmHookStoryContainer as sqm_hook_story_container, Media as sqm_media, NavigationMenu as sqm_navigation_menu, PortalChangePassword as sqm_portal_change_password, PortalContainer as sqm_portal_container, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };
7108
+ export { BrandComponent as sqm_brand, CardFeed as sqm_card_feed, DividedLayout as sqm_divided_layout, EditProfile as sqm_edit_profile, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, NavigationMenu as sqm_navigation_menu, PortalChangePassword as sqm_portal_change_password, PortalContainer as sqm_portal_container, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };