@saasquatch/mint-components 1.13.0-1 → 1.13.0-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/dist/cjs/{ShadowViewAddon-c195102f.js → ShadowViewAddon-44cb1a98.js} +15 -15
  2. package/dist/cjs/{copy-text-view-f7a88b15.js → copy-text-view-9b950efe.js} +6 -6
  3. package/dist/cjs/{global-0cb2907a.js → global-19fc8a7a.js} +1 -1
  4. package/dist/cjs/{index.module-3ae0c462.js → index.module-57703088.js} +13 -11
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/mint-components.cjs.js +2 -2
  7. package/dist/cjs/{re-render-5bfdb0d3.js → re-render-35b016ed.js} +2 -2
  8. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +51 -51
  10. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +68 -48
  11. package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +9 -47
  15. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  17. package/dist/cjs/{sqm-invoice-table-view-1c270db0.js → sqm-invoice-table-view-9dfa2a16.js} +1 -1
  18. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +4 -4
  19. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +3 -3
  20. package/dist/cjs/{sqm-navigation-sidebar-item-view-9691839f.js → sqm-navigation-sidebar-item-view-9bba5f7e.js} +2 -2
  21. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
  22. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +2 -2
  23. package/dist/cjs/sqm-pagination_3.cjs.entry.js +7 -7
  24. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  25. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  26. package/dist/cjs/{sqm-portal-email-verification-view-758f11cb.js → sqm-portal-email-verification-view-98d84549.js} +1 -1
  27. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -6
  28. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +3 -3
  29. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +66 -5
  30. package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
  31. package/dist/cjs/{sqm-portal-profile-view-b944ddba.js → sqm-portal-profile-view-bae28ea0.js} +1 -1
  32. package/dist/cjs/sqm-portal-profile.cjs.entry.js +6 -6
  33. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  34. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +4 -4
  35. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +5 -5
  36. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
  37. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
  38. package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
  39. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  40. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +8 -8
  41. package/dist/cjs/sqm-stencilbook.cjs.entry.js +48 -45
  42. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  43. package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
  44. package/dist/cjs/{useChildElements-4e04d4a0.js → useChildElements-854cd1e5.js} +1 -1
  45. package/dist/cjs/{useInstantAccessRegistration-b732990f.js → useInstantAccessRegistration-daff8290.js} +3 -3
  46. package/dist/cjs/{usePortalRegistrationForm-99ec3cc2.js → usePortalRegistrationForm-a89d736e.js} +5 -5
  47. package/dist/cjs/{useReferralTable-56d6576f.js → useReferralTable-283d2316.js} +7 -7
  48. package/dist/cjs/{useRegistrationFormState-2a738647.js → useRegistrationFormState-986b5ea1.js} +1 -1
  49. package/dist/cjs/{utilities-7da4d59a.js → utilities-c135f16f.js} +1 -1
  50. package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +8 -3
  51. package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +5 -2
  52. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +3 -0
  53. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +5 -12
  54. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +24 -4
  55. package/dist/esm/{ShadowViewAddon-fb9d29e1.js → ShadowViewAddon-eba44767.js} +15 -15
  56. package/dist/esm/{copy-text-view-d79ce112.js → copy-text-view-b060162f.js} +6 -6
  57. package/dist/esm/{global-29e5c68b.js → global-bedc4329.js} +1 -1
  58. package/dist/esm/{index.module-bc8dd3be.js → index.module-a2989d3c.js} +4 -2
  59. package/dist/esm/loader.js +2 -2
  60. package/dist/esm/mint-components.js +2 -2
  61. package/dist/esm/{re-render-2a185c6d.js → re-render-268bb9c8.js} +2 -2
  62. package/dist/esm/sqm-asset-card.entry.js +1 -1
  63. package/dist/esm/sqm-banking-info-form_16.entry.js +51 -51
  64. package/dist/esm/sqm-big-stat_38.entry.js +68 -48
  65. package/dist/esm/sqm-close-button.entry.js +1 -1
  66. package/dist/esm/sqm-context-router.entry.js +1 -1
  67. package/dist/esm/sqm-empty_4.entry.js +2 -2
  68. package/dist/esm/sqm-google-sign-in.entry.js +10 -48
  69. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  70. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  71. package/dist/esm/{sqm-invoice-table-view-79fd00be.js → sqm-invoice-table-view-8e2bb54a.js} +1 -1
  72. package/dist/esm/sqm-leaderboard-rank.entry.js +4 -4
  73. package/dist/esm/sqm-logout-current-user.entry.js +3 -3
  74. package/dist/esm/{sqm-navigation-sidebar-item-view-700e2c99.js → sqm-navigation-sidebar-item-view-56da6bca.js} +2 -2
  75. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  76. package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
  77. package/dist/esm/sqm-pagination_3.entry.js +7 -7
  78. package/dist/esm/sqm-password-field.entry.js +2 -2
  79. package/dist/esm/sqm-popup-container.entry.js +1 -1
  80. package/dist/esm/{sqm-portal-email-verification-view-e2f6cd82.js → sqm-portal-email-verification-view-44c8970f.js} +1 -1
  81. package/dist/esm/sqm-portal-email-verification.entry.js +6 -6
  82. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  83. package/dist/esm/sqm-portal-google-registration-form.entry.js +66 -5
  84. package/dist/esm/sqm-portal-logout.entry.js +2 -2
  85. package/dist/esm/{sqm-portal-profile-view-a52abf17.js → sqm-portal-profile-view-39039274.js} +1 -1
  86. package/dist/esm/sqm-portal-profile.entry.js +6 -6
  87. package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
  88. package/dist/esm/sqm-portal-registration-form.entry.js +4 -4
  89. package/dist/esm/sqm-portal-reset-password.entry.js +5 -5
  90. package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
  91. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  92. package/dist/esm/sqm-referred-registration.entry.js +3 -3
  93. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  94. package/dist/esm/sqm-rewards-table_9.entry.js +8 -8
  95. package/dist/esm/sqm-stencilbook.entry.js +48 -45
  96. package/dist/esm/sqm-tab.entry.js +2 -2
  97. package/dist/esm/sqm-tabs.entry.js +3 -3
  98. package/dist/esm/{useChildElements-9d6edd4a.js → useChildElements-38c11321.js} +1 -1
  99. package/dist/esm/{useInstantAccessRegistration-031d4454.js → useInstantAccessRegistration-7255b0ca.js} +3 -3
  100. package/dist/esm/{usePortalRegistrationForm-475d3959.js → usePortalRegistrationForm-5715c7a5.js} +5 -5
  101. package/dist/esm/{useReferralTable-ccbc4934.js → useReferralTable-d77b11f5.js} +7 -7
  102. package/dist/esm/{useRegistrationFormState-34651ee4.js → useRegistrationFormState-01cdd8c7.js} +1 -1
  103. package/dist/esm/{utilities-fe487ceb.js → utilities-863d06d1.js} +1 -1
  104. package/dist/esm-es5/{ShadowViewAddon-fb9d29e1.js → ShadowViewAddon-eba44767.js} +1 -1
  105. package/dist/esm-es5/{copy-text-view-d79ce112.js → copy-text-view-b060162f.js} +1 -1
  106. package/dist/esm-es5/{global-29e5c68b.js → global-bedc4329.js} +1 -1
  107. package/dist/esm-es5/index.module-a2989d3c.js +1 -0
  108. package/dist/esm-es5/loader.js +1 -1
  109. package/dist/esm-es5/mint-components.js +1 -1
  110. package/dist/esm-es5/{re-render-2a185c6d.js → re-render-268bb9c8.js} +1 -1
  111. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  112. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  113. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  114. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  115. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  116. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  117. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  118. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  119. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  120. package/dist/esm-es5/{sqm-invoice-table-view-79fd00be.js → sqm-invoice-table-view-8e2bb54a.js} +1 -1
  121. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  122. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  123. package/dist/esm-es5/sqm-navigation-sidebar-item-view-56da6bca.js +1 -0
  124. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  125. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  126. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  127. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  128. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  129. package/dist/esm-es5/{sqm-portal-email-verification-view-e2f6cd82.js → sqm-portal-email-verification-view-44c8970f.js} +1 -1
  130. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  131. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  132. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  133. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  134. package/dist/esm-es5/{sqm-portal-profile-view-a52abf17.js → sqm-portal-profile-view-39039274.js} +1 -1
  135. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  136. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  137. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  138. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  139. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  140. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  141. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  142. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  143. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  144. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  145. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  146. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  147. package/dist/esm-es5/useChildElements-38c11321.js +1 -0
  148. package/dist/esm-es5/{useInstantAccessRegistration-031d4454.js → useInstantAccessRegistration-7255b0ca.js} +1 -1
  149. package/dist/esm-es5/{usePortalRegistrationForm-475d3959.js → usePortalRegistrationForm-5715c7a5.js} +1 -1
  150. package/dist/esm-es5/{useReferralTable-ccbc4934.js → useReferralTable-d77b11f5.js} +1 -1
  151. package/dist/esm-es5/{useRegistrationFormState-34651ee4.js → useRegistrationFormState-01cdd8c7.js} +1 -1
  152. package/dist/esm-es5/{utilities-fe487ceb.js → utilities-863d06d1.js} +1 -1
  153. package/dist/mint-components/mint-components.esm.js +1 -1
  154. package/dist/mint-components/mint-components.js +1 -1
  155. package/dist/mint-components/{p-6487e6bf.entry.js → p-0323586f.entry.js} +16 -16
  156. package/dist/mint-components/{p-0ae73dd2.system.js → p-046f4631.system.js} +1 -1
  157. package/dist/mint-components/{p-28353152.entry.js → p-0873eaa8.entry.js} +1 -1
  158. package/dist/mint-components/{p-a8d088cd.system.js → p-09c5e3ee.system.js} +1 -1
  159. package/dist/mint-components/{p-a3b972e6.entry.js → p-0aa62b64.entry.js} +1 -1
  160. package/dist/mint-components/p-0e53c59e.system.js +1 -0
  161. package/dist/mint-components/{p-e2639e1f.js → p-16c7bfda.js} +1 -1
  162. package/dist/mint-components/{p-a12351b8.js → p-1833c4f5.js} +1 -1
  163. package/dist/mint-components/{p-55885404.system.entry.js → p-1b0c58bc.system.entry.js} +1 -1
  164. package/dist/mint-components/{p-13c1fe04.js → p-1c5cffae.js} +1 -1
  165. package/dist/mint-components/{p-3aa09019.js → p-1ef299d7.js} +2 -2
  166. package/dist/mint-components/{p-482729cf.entry.js → p-2126e1e6.entry.js} +1 -1
  167. package/dist/mint-components/{p-37bb8a23.system.entry.js → p-24c4e0b8.system.entry.js} +1 -1
  168. package/dist/mint-components/p-26ec2894.entry.js +1 -0
  169. package/dist/mint-components/{p-ec4dff25.entry.js → p-28042d23.entry.js} +1 -1
  170. package/dist/mint-components/{p-859954f7.js → p-2ab3b8d6.js} +1 -1
  171. package/dist/mint-components/{p-d419afab.entry.js → p-2dc5e60a.entry.js} +1 -1
  172. package/dist/mint-components/{p-a1b09b0d.js → p-30108c0e.js} +1 -1
  173. package/dist/mint-components/p-31a691af.js +1 -0
  174. package/dist/mint-components/{p-84add09b.system.js → p-35698aaa.system.js} +1 -1
  175. package/dist/mint-components/p-3972037c.system.entry.js +1 -0
  176. package/dist/mint-components/p-39b1a7fe.js +1 -0
  177. package/dist/mint-components/p-3bdd338c.system.js +1 -0
  178. package/dist/mint-components/{p-84d54a69.entry.js → p-3e1b7fb4.entry.js} +1 -1
  179. package/dist/mint-components/p-3ec660e9.js +1 -0
  180. package/dist/mint-components/{p-2564c732.js → p-40e99b24.js} +1 -1
  181. package/dist/mint-components/p-4448febd.entry.js +1 -0
  182. package/dist/mint-components/{p-b54f56c0.entry.js → p-45436d5a.entry.js} +1 -1
  183. package/dist/mint-components/{p-e44a0794.system.js → p-46ab5f80.system.js} +1 -1
  184. package/dist/mint-components/{p-f8d3bb77.js → p-492fdaf9.js} +1 -1
  185. package/dist/mint-components/{p-f34449e7.entry.js → p-4ae54b04.entry.js} +1 -1
  186. package/dist/mint-components/{p-1544a0f1.system.entry.js → p-4bcb04aa.system.entry.js} +1 -1
  187. package/dist/mint-components/p-4daa3f8a.system.entry.js +1 -0
  188. package/dist/mint-components/{p-6f78f2f4.system.js → p-4f45be94.system.js} +1 -1
  189. package/dist/mint-components/{p-2e4a0990.js → p-506679e9.js} +1 -1
  190. package/dist/mint-components/p-53aaa0a4.entry.js +1 -0
  191. package/dist/mint-components/{p-660ac5ad.js → p-550ef977.js} +2 -2
  192. package/dist/mint-components/{p-c60f1c6d.entry.js → p-571c451e.entry.js} +1 -1
  193. package/dist/mint-components/{p-2c01a479.entry.js → p-618e1342.entry.js} +1 -1
  194. package/dist/mint-components/{p-f9881658.system.entry.js → p-635aaf11.system.entry.js} +1 -1
  195. package/dist/mint-components/{p-18fdfaff.js → p-6de85677.js} +1 -1
  196. package/dist/mint-components/{p-edafa368.system.js → p-7166caa6.system.js} +1 -1
  197. package/dist/mint-components/{p-6e209200.system.entry.js → p-731aa5c6.system.entry.js} +1 -1
  198. package/dist/mint-components/p-749c7c9c.system.js +1 -0
  199. package/dist/mint-components/{p-57bb1a14.entry.js → p-75f50e5a.entry.js} +1 -1
  200. package/dist/mint-components/{p-f07ce541.system.entry.js → p-7989a098.system.entry.js} +1 -1
  201. package/dist/mint-components/{p-b39f7ba2.system.entry.js → p-79ea1597.system.entry.js} +1 -1
  202. package/dist/mint-components/{p-120495ed.system.entry.js → p-7bcf4467.system.entry.js} +1 -1
  203. package/dist/mint-components/{p-d3aa845e.system.entry.js → p-7cb919d4.system.entry.js} +1 -1
  204. package/dist/mint-components/{p-502f1135.system.entry.js → p-8056fd5b.system.entry.js} +1 -1
  205. package/dist/mint-components/p-80fc549b.entry.js +1 -0
  206. package/dist/mint-components/{p-cabcb677.system.entry.js → p-81665df6.system.entry.js} +1 -1
  207. package/dist/mint-components/{p-3d5530b7.system.entry.js → p-857947fa.system.entry.js} +1 -1
  208. package/dist/mint-components/p-868f176e.entry.js +1 -0
  209. package/dist/mint-components/{p-78f3e403.entry.js → p-8975c2be.entry.js} +2 -2
  210. package/dist/mint-components/p-8987607b.system.entry.js +1 -0
  211. package/dist/mint-components/{p-67269167.js → p-8d77feee.js} +1 -1
  212. package/dist/mint-components/{p-1d3d2a7b.system.entry.js → p-92a25556.system.entry.js} +1 -1
  213. package/dist/mint-components/p-95c64cfd.system.js +1 -0
  214. package/dist/mint-components/{p-8280da48.system.entry.js → p-988ea164.system.entry.js} +1 -1
  215. package/dist/mint-components/{p-ce72ea82.system.entry.js → p-9a0c3ed9.system.entry.js} +1 -1
  216. package/dist/mint-components/{p-9b90dae2.system.entry.js → p-9a16a3d8.system.entry.js} +1 -1
  217. package/dist/mint-components/{p-d1a32dab.entry.js → p-9b779add.entry.js} +1 -1
  218. package/dist/mint-components/{p-3f35e499.entry.js → p-9e49479a.entry.js} +1 -1
  219. package/dist/mint-components/{p-625141de.system.entry.js → p-9f231a48.system.entry.js} +1 -1
  220. package/dist/mint-components/p-a1f40614.system.entry.js +1 -0
  221. package/dist/mint-components/{p-dc383779.system.entry.js → p-a21d1a30.system.entry.js} +1 -1
  222. package/dist/mint-components/{p-f2d931b4.system.entry.js → p-a4a5beb5.system.entry.js} +1 -1
  223. package/dist/mint-components/{p-ea58b97c.system.js → p-a8524459.system.js} +1 -1
  224. package/dist/mint-components/{p-7dec07a0.system.entry.js → p-aaeaff1a.system.entry.js} +1 -1
  225. package/dist/mint-components/p-ac2b7eb8.system.js +1 -0
  226. package/dist/mint-components/{p-269c7fcf.entry.js → p-b114e746.entry.js} +1 -1
  227. package/dist/mint-components/{p-bcbaf408.entry.js → p-b611eefd.entry.js} +1 -1
  228. package/dist/mint-components/{p-ebf8b913.entry.js → p-b9d17fa1.entry.js} +2 -2
  229. package/dist/mint-components/{p-c43b22fc.system.entry.js → p-bd4810c7.system.entry.js} +1 -1
  230. package/dist/mint-components/p-be0c205a.system.entry.js +1 -0
  231. package/dist/mint-components/{p-102ecd33.entry.js → p-c470caf6.entry.js} +2 -2
  232. package/dist/mint-components/p-c4b21562.system.entry.js +1 -0
  233. package/dist/mint-components/{p-74d2611a.entry.js → p-ca04737a.entry.js} +1 -1
  234. package/dist/mint-components/{p-7503adda.system.entry.js → p-ca740238.system.entry.js} +1 -1
  235. package/dist/mint-components/{p-0feca7a7.entry.js → p-cd480e3f.entry.js} +1 -1
  236. package/dist/mint-components/p-cf505e92.system.js +1 -0
  237. package/dist/mint-components/{p-08bd17ec.system.js → p-d671e44e.system.js} +1 -1
  238. package/dist/mint-components/p-de6d3392.entry.js +1 -0
  239. package/dist/mint-components/{p-b2fe992e.system.entry.js → p-de9afac2.system.entry.js} +1 -1
  240. package/dist/mint-components/{p-3f1d9ec1.entry.js → p-e0b344fb.entry.js} +1 -1
  241. package/dist/mint-components/{p-51f712d3.entry.js → p-e544bb9a.entry.js} +1 -1
  242. package/dist/mint-components/p-ea9fd654.entry.js +9 -0
  243. package/dist/mint-components/p-ebdcea27.system.entry.js +1 -0
  244. package/dist/mint-components/p-f0c23e81.system.entry.js +1 -0
  245. package/dist/mint-components/{p-076ef8f4.system.js → p-f2fd1910.system.js} +1 -1
  246. package/dist/mint-components/{p-e7460ad7.entry.js → p-f32c8cb5.entry.js} +1 -1
  247. package/dist/mint-components/{p-f110c14d.entry.js → p-f4a1dc19.entry.js} +1 -1
  248. package/dist/mint-components/{p-4e138f8c.system.js → p-f9de8a59.system.js} +1 -1
  249. package/dist/mint-components/{p-1713fcc2.system.entry.js → p-fe4a9dfe.system.entry.js} +1 -1
  250. package/dist/types/components/sqm-google-sign-in/sqm-google-sign-in.d.ts +1 -0
  251. package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +1 -0
  252. package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +1 -0
  253. package/docs/docs.docx +0 -0
  254. package/package.json +3 -2
  255. package/dist/esm-es5/index.module-bc8dd3be.js +0 -1
  256. package/dist/esm-es5/sqm-navigation-sidebar-item-view-700e2c99.js +0 -1
  257. package/dist/esm-es5/useChildElements-9d6edd4a.js +0 -1
  258. package/dist/mint-components/p-053746b0.entry.js +0 -1
  259. package/dist/mint-components/p-05f952b4.js +0 -1
  260. package/dist/mint-components/p-1a99fc5a.entry.js +0 -1
  261. package/dist/mint-components/p-1f0c1adb.entry.js +0 -1
  262. package/dist/mint-components/p-376eeb6c.system.entry.js +0 -1
  263. package/dist/mint-components/p-3dc91b3e.system.js +0 -1
  264. package/dist/mint-components/p-3f633736.entry.js +0 -1
  265. package/dist/mint-components/p-533ccb5b.entry.js +0 -1
  266. package/dist/mint-components/p-548df223.system.js +0 -1
  267. package/dist/mint-components/p-5b2b106c.system.entry.js +0 -1
  268. package/dist/mint-components/p-5cdd1ac8.system.js +0 -1
  269. package/dist/mint-components/p-7bdac1cb.system.entry.js +0 -1
  270. package/dist/mint-components/p-7c83f973.system.entry.js +0 -1
  271. package/dist/mint-components/p-82b4d2c5.entry.js +0 -9
  272. package/dist/mint-components/p-a37bc542.system.entry.js +0 -1
  273. package/dist/mint-components/p-a496f781.system.js +0 -1
  274. package/dist/mint-components/p-af6cc283.system.entry.js +0 -1
  275. package/dist/mint-components/p-b0b220a2.js +0 -1
  276. package/dist/mint-components/p-b2b447dc.system.js +0 -1
  277. package/dist/mint-components/p-c2f1fb15.system.entry.js +0 -1
  278. package/dist/mint-components/p-cb008ff3.js +0 -1
  279. package/dist/mint-components/p-e5996773.entry.js +0 -1
  280. package/dist/mint-components/p-eaa75e41.system.entry.js +0 -1
  281. package/dist/mint-components/p-fee4859d.system.js +0 -1
@@ -1,48 +1,6 @@
1
1
  import { r as registerInstance, e as createEvent, h as h$1 } from './index-91e7729f.js';
2
- import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { a as getEnvironmentSDK, i as isDemo } from './index.module-bc8dd3be.js';
4
-
5
- function useGoogleSignIn(props) {
6
- const [loaded, setLoaded] = useState(false);
7
- const [googleButtonDiv, setGoogleButtonDiv] = useState(null);
8
- useEffect(() => {
9
- const cb = () => {
10
- // @ts-expect-error
11
- window.onGoogleLibraryLoad = null;
12
- const sdk = getEnvironmentSDK();
13
- if (sdk.type !== "SquatchPortal")
14
- return;
15
- const cb = (res) => {
16
- props.initComplete.emit(res);
17
- };
18
- //@ts-expect-error
19
- google.accounts.id.initialize({
20
- //@ts-expect-error: link component-env/boilerplate for new types
21
- client_id: sdk.env.googleOAuthId,
22
- callback: cb,
23
- });
24
- setLoaded(true);
25
- };
26
- // @ts-expect-error
27
- if (window.google)
28
- cb();
29
- // @ts-expect-error
30
- window.onGoogleLibraryLoad = cb;
31
- }, []);
32
- useEffect(() => {
33
- if (!googleButtonDiv || !loaded)
34
- return;
35
- //@ts-expect-error
36
- google.accounts.id.renderButton(googleButtonDiv, {
37
- theme: "outline",
38
- size: "large",
39
- text: props.text,
40
- });
41
- }, [googleButtonDiv, loaded]);
42
- return {
43
- setGoogleButtonDiv,
44
- };
45
- }
2
+ import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-4bc38af4.js';
3
+ import './index.module-a2989d3c.js';
46
4
 
47
5
  const GoogleSignIn = class {
48
6
  constructor(hostRef) {
@@ -61,9 +19,8 @@ const GoogleSignIn = class {
61
19
  }
62
20
  }
63
21
  render() {
64
- const { setGoogleButtonDiv } = isDemo()
65
- ? useDemoGoogleSignIn(this)
66
- : useGoogleSignIn(this);
22
+ const { setGoogleButtonDiv } = useDemoGoogleSignIn(this)
23
+ ;
67
24
  return (h$1("div", null, h$1("div", { ref: setGoogleButtonDiv })));
68
25
  }
69
26
  };
@@ -86,8 +43,13 @@ function useDemoGoogleSignIn(props) {
86
43
  if (!googleButtonDiv || !loaded)
87
44
  return;
88
45
  const cb = () => {
89
- props.initComplete.emit({ credential: "PLACEHOLDERCREDENTIAL" });
46
+ props.initComplete.emit({ credential: null });
90
47
  };
48
+ // @ts-expect-error
49
+ google.accounts.id.initialize({
50
+ client_id: "PLACEHOLDER",
51
+ cb: () => { },
52
+ });
91
53
  //@ts-expect-error
92
54
  google.accounts.id.renderButton(googleButtonDiv, {
93
55
  theme: "outline",
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, h as h$1, c as Host } from './index-91e7729f.js';
2
2
  import { o as m, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { J, E as Ee, b as z, P as Pe } from './index.module-bc8dd3be.js';
3
+ import { G, E as Ee, a as Q, P as Pe } from './index.module-a2989d3c.js';
4
4
 
5
5
  async function useGraphQLClientProvider({ domain }) {
6
- const token = J();
6
+ const token = G();
7
7
  const appDomain = domain;
8
- const tenantAlias = z();
8
+ const tenantAlias = Q();
9
9
  // Memoization is shared. One client per domain, tenant and token (or null)
10
10
  const managedIdentityClient = Ee(appDomain, tenantAlias, token);
11
11
  const [, setGraphQLClient] = m(Pe, managedIdentityClient);
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { i as isDemo, c as setUserIdentity } from './index.module-bc8dd3be.js';
3
+ import { i as isDemo, b as setUserIdentity } from './index.module-a2989d3c.js';
4
4
  import './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import './mixins-83f90fa1.js';
8
8
  import { E as EmailRegistrationView } from './email-registration-view-a7818cf2.js';
9
- import './useRegistrationFormState-34651ee4.js';
10
- import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-031d4454.js';
9
+ import './useRegistrationFormState-01cdd8c7.js';
10
+ import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-7255b0ca.js';
11
11
 
12
12
  const InstantAccessRegistration = class {
13
13
  constructor(hostRef) {
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-91e7729f.js';
2
- import { i as intl } from './global-29e5c68b.js';
2
+ import { i as intl } from './global-bedc4329.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
 
5
5
  const INDIRECT_TAX_PROVINCES = [
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { i as intl } from './global-29e5c68b.js';
4
- import { d as dist, H, Q, y as yn, i as isDemo } from './index.module-bc8dd3be.js';
3
+ import { i as intl } from './global-bedc4329.js';
4
+ import { d as dist, H, J, w as wn, i as isDemo } from './index.module-a2989d3c.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-753c8d4a.js';
7
7
 
@@ -23,7 +23,7 @@ function useLeaderboardRank(props) {
23
23
  const programIdContext = H();
24
24
  // Default to context, overriden by props
25
25
  const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
26
- const user = Q();
26
+ const user = J();
27
27
  const rankVariables = programId
28
28
  ? {
29
29
  type: props.leaderboardType,
@@ -36,7 +36,7 @@ function useLeaderboardRank(props) {
36
36
  if (props.interval) {
37
37
  rankVariables.filter["interval"] = props.interval;
38
38
  }
39
- const { data: rankData } = yn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
39
+ const { data: rankData } = wn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
40
40
  const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
41
41
  rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
42
42
  })
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { d as dist, Q, y as yn, c as setUserIdentity, i as isDemo } from './index.module-bc8dd3be.js';
3
+ import { d as dist, J, w as wn, b as setUserIdentity, i as isDemo } from './index.module-a2989d3c.js';
4
4
  import { c as cjs } from './cjs-bdfb4486.js';
5
5
  import { g as getProps } from './utils-334c1e34.js';
6
6
  import './JSS-67b5cff8.js';
@@ -19,8 +19,8 @@ const GET_USER_DETAILS = dist.gql `
19
19
  `;
20
20
  function useLogoutCurrentUser(props) {
21
21
  var _a, _b;
22
- const user = Q();
23
- const { loading, data } = yn(GET_USER_DETAILS, {}, !user);
22
+ const user = J();
23
+ const { loading, data } = wn(GET_USER_DETAILS, {}, !user);
24
24
  const onSwitchClick = () => {
25
25
  setUserIdentity(undefined);
26
26
  };
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-91e7729f.js';
2
- import { f as $n } from './index.module-bc8dd3be.js';
2
+ import { j as jn } from './index.module-a2989d3c.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
  import { g as gap } from './mixins-83f90fa1.js';
5
5
 
@@ -33,7 +33,7 @@ function NavigationSidebarItemView(props) {
33
33
  const styleString = sheet.toString();
34
34
  return (h("a", { part: "sqm-link", href: data.path, onClick: (e) => {
35
35
  e.preventDefault();
36
- $n.push(data.path);
36
+ jn.push(data.path);
37
37
  }, class: sheet.classes.ItemContainer },
38
38
  h("style", { type: "text/css" }, styleString),
39
39
  h("sl-icon", { class: sheet.classes.Icon, name: data.icon }),
@@ -1,14 +1,14 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { S as Sn, i as isDemo } from './index.module-bc8dd3be.js';
3
+ import { k as kn, i as isDemo } from './index.module-a2989d3c.js';
4
4
  import { c as cjs } from './cjs-bdfb4486.js';
5
5
  import { g as getProps } from './utils-334c1e34.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import './mixins-83f90fa1.js';
8
- import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-700e2c99.js';
8
+ import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-56da6bca.js';
9
9
 
10
10
  function useNavigationSidebarItem(props) {
11
- const currentPage = Sn();
11
+ const currentPage = kn();
12
12
  return {
13
13
  states: {
14
14
  active: currentPage.pathname === props.path,
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-4bc38af4.js';
3
- import { S as Sn, H } from './index.module-bc8dd3be.js';
3
+ import { k as kn, H } from './index.module-a2989d3c.js';
4
4
  import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-9d802b78.js';
5
5
 
6
6
  const NavigationSidebar = class {
@@ -16,7 +16,7 @@ const NavigationSidebar = class {
16
16
  }
17
17
  };
18
18
  function useNavigationSidebar() {
19
- const location = Sn();
19
+ const location = kn();
20
20
  const programId = H();
21
21
  const [checked, setChecked] = useState(false);
22
22
  // Close hamburger menu after navigation
@@ -1,11 +1,11 @@
1
1
  import { h, F as Fragment, r as registerInstance } from './index-91e7729f.js';
2
2
  import { n as h$1, k as useState } from './stencil-hooks.module-4bc38af4.js';
3
- import { i as intl } from './global-29e5c68b.js';
4
- import { I as In, i as isDemo, d as dist, H, Q, y as yn, $ as $e, B } from './index.module-bc8dd3be.js';
3
+ import { i as intl } from './global-bedc4329.js';
4
+ import { F as Fn, i as isDemo, d as dist, H, J, w as wn, $ as $e, B } from './index.module-a2989d3c.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { g as getProps } from './utils-334c1e34.js';
7
7
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
- import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-d79ce112.js';
8
+ import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-b060162f.js';
9
9
  import './mixins-83f90fa1.js';
10
10
 
11
11
  const style = {
@@ -41,7 +41,7 @@ function PaginationView(props) {
41
41
 
42
42
  function usePagination(props) {
43
43
  var _a;
44
- const context = In(REFERRAL_CODES_PAGINATION_CONTEXT);
44
+ const context = Fn(REFERRAL_CODES_PAGINATION_CONTEXT);
45
45
  const currentPage = context.states.currentPage + 1;
46
46
  const totalPages = (_a = context.states) === null || _a === void 0 ? void 0 : _a.pageCount;
47
47
  return {
@@ -125,10 +125,10 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
125
125
  function useReferralCode(props) {
126
126
  var _a, _b;
127
127
  const { programId = H() } = props;
128
- const user = Q();
128
+ const user = J();
129
129
  const engagementMedium = B();
130
- const contextData = In(REFERRAL_CODES_NAMESPACE);
131
- const { data } = yn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || (contextData === null || contextData === void 0 ? void 0 : contextData.referralCode) !== undefined);
130
+ const contextData = Fn(REFERRAL_CODES_NAMESPACE);
131
+ const { data } = wn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || (contextData === null || contextData === void 0 ? void 0 : contextData.referralCode) !== undefined);
132
132
  const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
133
133
  const [setCopied] = $e(SET_CODE_COPIED);
134
134
  const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.referralCode) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode))) !== null && _b !== void 0 ? _b :
@@ -1,11 +1,11 @@
1
1
  import { h, r as registerInstance } from './index-91e7729f.js';
2
2
  import { i as d, k as useState, n as h$1 } from './stencil-hooks.module-4bc38af4.js';
3
- import { i as isDemo } from './index.module-bc8dd3be.js';
3
+ import { i as isDemo } from './index.module-a2989d3c.js';
4
4
  import { c as cjs } from './cjs-bdfb4486.js';
5
5
  import { g as getProps } from './utils-334c1e34.js';
6
6
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
7
7
  import { E as ErrorStyles } from './mixins-83f90fa1.js';
8
- import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-34651ee4.js';
8
+ import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-01cdd8c7.js';
9
9
 
10
10
  var constants = {
11
11
  error: {
@@ -1,6 +1,6 @@
1
1
  import { h, c as Host, r as registerInstance } from './index-91e7729f.js';
2
2
  import { n as h$1 } from './stencil-hooks.module-4bc38af4.js';
3
- import { B } from './index.module-bc8dd3be.js';
3
+ import { B } from './index.module-a2989d3c.js';
4
4
  import { g as getProps } from './utils-334c1e34.js';
5
5
 
6
6
  const PopupContainerView = (props) => {
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-91e7729f.js';
2
- import { i as intl } from './global-29e5c68b.js';
2
+ import { i as intl } from './global-bedc4329.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
  import { A as AuthWrapper, a as AuthColumn } from './mixins-83f90fa1.js';
5
5
  import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
@@ -1,20 +1,20 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { k as useState, m as useRef, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import './global-29e5c68b.js';
4
- import { l as ln, n as nn, Q, f as $n, u as useCallback, i as isDemo } from './index.module-bc8dd3be.js';
3
+ import './global-bedc4329.js';
4
+ import { l as ln, n as nn, J, j as jn, u as useCallback, i as isDemo } from './index.module-a2989d3c.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import './mixins-83f90fa1.js';
8
8
  import './sqm-text-span-view-ca32495e.js';
9
- import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-e2f6cd82.js';
9
+ import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-44c8970f.js';
10
10
 
11
11
  function usePortalEmailVerification(props) {
12
12
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13
13
  const [request, { loading, data, errors }] = ln();
14
14
  const [getVerificationStatus, { data: user, loading: loadingVerification }] = nn();
15
- const userIdent = Q();
15
+ const userIdent = J();
16
16
  const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
17
- const urlParams = new URLSearchParams($n.location.search);
17
+ const urlParams = new URLSearchParams(jn.location.search);
18
18
  const nextPage = urlParams.get("nextPage");
19
19
  const [success, setSuccess] = useState(false);
20
20
  const [error, setError] = useState("");
@@ -44,7 +44,7 @@ function usePortalEmailVerification(props) {
44
44
  const data = (await getVerificationStatus());
45
45
  if ((_a = data === null || data === void 0 ? void 0 : data.managedIdentitySession) === null || _a === void 0 ? void 0 : _a.emailVerified) {
46
46
  clearInterval(timerRef.current);
47
- return $n.push({
47
+ return jn.push({
48
48
  pathname: props.redirectPath,
49
49
  search: urlParams.toString() && "?" + urlParams.toString(),
50
50
  });
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { k as useState, n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { h as un, f as $n, i as isDemo } from './index.module-bc8dd3be.js';
3
+ import { c as un, j as jn, i as isDemo } from './index.module-a2989d3c.js';
4
4
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './JSS-67b5cff8.js';
@@ -13,7 +13,7 @@ function usePortalForgotPassword(props) {
13
13
  const [success, setSuccess] = useState(false);
14
14
  const [error, setError] = useState("");
15
15
  const [request, { loading, data, errors }] = un();
16
- const urlParams = new URLSearchParams($n.location.search);
16
+ const urlParams = new URLSearchParams(jn.location.search);
17
17
  const nextPage = urlParams.get("nextPage");
18
18
  const submit = async (event) => {
19
19
  var _a;
@@ -102,7 +102,7 @@ const PortalForgotPassword = class {
102
102
  ? usePortalForgotPasswordDemo(this)
103
103
  : usePortalForgotPassword(this);
104
104
  const content = {
105
- secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.loginPath) }, this.loginText))),
105
+ secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => jn.push(states.loginPath) }, this.loginText))),
106
106
  messageSlot: h$1("slot", { name: "messageSlot" }, this.headerText),
107
107
  emailLabel: this.emailLabel,
108
108
  submitLabel: this.submitLabel,
@@ -1,16 +1,74 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { k as useState, n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { o, i as isDemo, f as $n } from './index.module-bc8dd3be.js';
3
+ import { i as isDemo, j as jn } from './index.module-a2989d3c.js';
4
4
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
7
7
  import './mixins-83f90fa1.js';
8
8
  import './sqm-text-span-view-ca32495e.js';
9
- import { a as useRegistrationForm } from './useRegistrationFormState-34651ee4.js';
9
+ import { a as useRegistrationForm } from './useRegistrationFormState-01cdd8c7.js';
10
10
  import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-98c4db70.js';
11
11
  import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-90e2bfd5.js';
12
12
  import './AsYouType-46f67d0d.js';
13
- import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-475d3959.js';
13
+ import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-5715c7a5.js';
14
+
15
+ class InvalidTokenError extends Error {
16
+ }
17
+ InvalidTokenError.prototype.name = "InvalidTokenError";
18
+ function b64DecodeUnicode(str) {
19
+ return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {
20
+ let code = p.charCodeAt(0).toString(16).toUpperCase();
21
+ if (code.length < 2) {
22
+ code = "0" + code;
23
+ }
24
+ return "%" + code;
25
+ }));
26
+ }
27
+ function base64UrlDecode(str) {
28
+ let output = str.replace(/-/g, "+").replace(/_/g, "/");
29
+ switch (output.length % 4) {
30
+ case 0:
31
+ break;
32
+ case 2:
33
+ output += "==";
34
+ break;
35
+ case 3:
36
+ output += "=";
37
+ break;
38
+ default:
39
+ throw new Error("base64 string is not of the correct length");
40
+ }
41
+ try {
42
+ return b64DecodeUnicode(output);
43
+ }
44
+ catch (err) {
45
+ return atob(output);
46
+ }
47
+ }
48
+ function jwtDecode(token, options) {
49
+ if (typeof token !== "string") {
50
+ throw new InvalidTokenError("Invalid token specified: must be a string");
51
+ }
52
+ options || (options = {});
53
+ const pos = options.header === true ? 0 : 1;
54
+ const part = token.split(".")[pos];
55
+ if (typeof part !== "string") {
56
+ throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);
57
+ }
58
+ let decoded;
59
+ try {
60
+ decoded = base64UrlDecode(part);
61
+ }
62
+ catch (e) {
63
+ throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);
64
+ }
65
+ try {
66
+ return JSON.parse(decoded);
67
+ }
68
+ catch (e) {
69
+ throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);
70
+ }
71
+ }
14
72
 
15
73
  function usePortalGoogleRegistrationForm(props) {
16
74
  const [emailValidationError, setEmailValidationError] = useState(null);
@@ -53,8 +111,11 @@ function usePortalGoogleRegistrationForm(props) {
53
111
  setShowRegistrationForm({ mode: "manual" });
54
112
  };
55
113
  const handleGoogleInit = (event) => {
114
+ var _a;
115
+ if (!((_a = event.detail) === null || _a === void 0 ? void 0 : _a.credential))
116
+ return;
56
117
  try {
57
- const res = o(event.detail.credential);
118
+ const res = jwtDecode(event.detail.credential);
58
119
  setRegistrationFormState({
59
120
  ...registrationFormState,
60
121
  _googleOAuthIdToken: event.detail.credential,
@@ -226,7 +287,7 @@ const PortalGoogleRegistrationForm = class {
226
287
  const content = {
227
288
  formData: h$1("slot", { name: "formData" }),
228
289
  googleButton: (h$1("sqm-google-sign-in", { text: "Register with Google", onInitComplete: handleGoogleInit })),
229
- secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("style", null, styleString), h$1("span", null, this.loginCTA, " ", h$1("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => $n.push(states.loginPath), className: sheet.classes.LoginButton }, this.loginLabel), " "))),
290
+ secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("style", null, styleString), h$1("span", null, this.loginCTA, " ", h$1("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => jn.push(states.loginPath), className: sheet.classes.LoginButton }, this.loginLabel), " "))),
230
291
  terms: h$1("slot", { name: "terms" }),
231
292
  emailLabel: this.emailLabel,
232
293
  passwordLabel: this.passwordLabel,
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance } from './index-91e7729f.js';
2
2
  import { n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { c as setUserIdentity, f as $n, i as isDemo } from './index.module-bc8dd3be.js';
3
+ import { b as setUserIdentity, j as jn, i as isDemo } from './index.module-a2989d3c.js';
4
4
 
5
5
  function usePortalLogout({ nextPage }) {
6
6
  setUserIdentity(undefined);
7
- $n.push({ pathname: nextPage, search: "" });
7
+ jn.push({ pathname: nextPage, search: "" });
8
8
  }
9
9
 
10
10
  const PortalLogout = class {
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-91e7729f.js';
2
- import { i as intl } from './global-29e5c68b.js';
2
+ import { i as intl } from './global-bedc4329.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
  import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
5
5
 
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import './global-29e5c68b.js';
4
- import { d as dist, Q, y as yn, $ as $e, i as isDemo } from './index.module-bc8dd3be.js';
3
+ import './global-bedc4329.js';
4
+ import { d as dist, J, w as wn, $ as $e, i as isDemo } from './index.module-a2989d3c.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { g as getProps } from './utils-334c1e34.js';
7
7
  import './JSS-67b5cff8.js';
8
8
  import './sqm-text-span-view-ca32495e.js';
9
- import { P as PortalProfileView } from './sqm-portal-profile-view-a52abf17.js';
10
- import { i as isEmpty } from './utilities-fe487ceb.js';
9
+ import { P as PortalProfileView } from './sqm-portal-profile-view-39039274.js';
10
+ import { i as isEmpty } from './utilities-863d06d1.js';
11
11
 
12
12
  const GET_USER = dist.gql `
13
13
  query {
@@ -53,11 +53,11 @@ const defaultFormState = {
53
53
  error: "",
54
54
  };
55
55
  function usePortalProfile(props) {
56
- const userIdent = Q();
56
+ const userIdent = J();
57
57
  const [success, setSuccess] = useState(false);
58
58
  const [userData, setUserData] = useState(undefined);
59
59
  const [formState, setFormState] = useState(defaultFormState);
60
- const userDataResponse = yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
60
+ const userDataResponse = wn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
61
61
  const [upsertUser, upsertUserResponse] = $e(UPSERT_USER);
62
62
  useEffect(() => {
63
63
  if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
@@ -1,24 +1,24 @@
1
1
  import { r as registerInstance, h as h$1, c as Host } from './index-91e7729f.js';
2
2
  import { f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { Q, S as Sn, f as $n, i as isDemo } from './index.module-bc8dd3be.js';
3
+ import { J, k as kn, j as jn, i as isDemo } from './index.module-a2989d3c.js';
4
4
 
5
5
  function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
6
6
  var _a;
7
- const userIdent = Q();
7
+ const userIdent = J();
8
8
  const authenticated = !!(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt);
9
9
  const emailVerified = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified;
10
- const { pathname, search } = Sn();
10
+ const { pathname, search } = kn();
11
11
  const nextPageParam = new URLSearchParams();
12
12
  nextPageParam.append("nextPage", `${pathname}${search}`);
13
13
  useEffect(() => {
14
14
  if (!authenticated) {
15
- return $n.push({
15
+ return jn.push({
16
16
  pathname: redirectTo,
17
17
  search: "?" + nextPageParam.toString(),
18
18
  });
19
19
  }
20
20
  if (requireEmailVerification && !emailVerified) {
21
- return $n.push({
21
+ return jn.push({
22
22
  pathname: redirectToUnverified || redirectTo,
23
23
  search: "?" + nextPageParam.toString(),
24
24
  });
@@ -1,15 +1,15 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { i as isDemo, f as $n } from './index.module-bc8dd3be.js';
3
+ import { i as isDemo, j as jn } from './index.module-a2989d3c.js';
4
4
  import './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import './mixins-83f90fa1.js';
8
8
  import './sqm-text-span-view-ca32495e.js';
9
- import './useRegistrationFormState-34651ee4.js';
9
+ import './useRegistrationFormState-01cdd8c7.js';
10
10
  import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-90e2bfd5.js';
11
11
  import './AsYouType-46f67d0d.js';
12
- import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-475d3959.js';
12
+ import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-5715c7a5.js';
13
13
 
14
14
  const PortalRegistrationForm = class {
15
15
  constructor(hostRef) {
@@ -142,7 +142,7 @@ const PortalRegistrationForm = class {
142
142
  : usePortalRegistrationForm(this);
143
143
  const content = {
144
144
  formData: h$1("slot", { name: "formData" }),
145
- secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.loginPath) }, this.loginLabel))),
145
+ secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => jn.push(states.loginPath) }, this.loginLabel))),
146
146
  terms: h$1("slot", { name: "terms" }),
147
147
  emailLabel: this.emailLabel,
148
148
  passwordLabel: this.passwordLabel,
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { j as Qe, T as Te, f as $n, i as isDemo } from './index.module-bc8dd3be.js';
3
+ import { e as Je, T as Te, j as jn, i as isDemo } from './index.module-a2989d3c.js';
4
4
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { s as sanitizeUrlPath } from './utils-334c1e34.js';
@@ -13,9 +13,9 @@ function usePortalResetPassword(props) {
13
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
14
14
  const [reset, setReset] = useState(false);
15
15
  const [error, setError] = useState("");
16
- const [verifyPasswordResetCode, verifyPasswordResetCodeState] = Qe();
16
+ const [verifyPasswordResetCode, verifyPasswordResetCodeState] = Je();
17
17
  const [resetPassword, resetPasswordState] = Te();
18
- const urlParams = new URLSearchParams($n.location.search);
18
+ const urlParams = new URLSearchParams(jn.location.search);
19
19
  const oobCode = urlParams.get("oobCode");
20
20
  urlParams.delete("oobCode");
21
21
  const nextPageOverride = urlParams.get("nextPage");
@@ -53,10 +53,10 @@ function usePortalResetPassword(props) {
53
53
  const gotoNextPage = () => {
54
54
  urlParams.delete("nextPage");
55
55
  const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
56
- $n.push(url.href);
56
+ jn.push(url.href);
57
57
  };
58
58
  const failed = () => {
59
- $n.push({
59
+ jn.push({
60
60
  pathname: props.failedPage,
61
61
  search: urlParams.toString() && "?" + urlParams.toString(),
62
62
  });
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
2
  import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
3
- import { Q, p as an, f as $n, c as setUserIdentity, i as isDemo } from './index.module-bc8dd3be.js';
3
+ import { J, f as an, j as jn, b as setUserIdentity, i as isDemo } from './index.module-a2989d3c.js';
4
4
  import { c as cjs } from './cjs-bdfb4486.js';
5
5
  import { s as sanitizeUrlPath, g as getProps } from './utils-334c1e34.js';
6
6
  import './JSS-67b5cff8.js';
@@ -13,9 +13,9 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
13
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
14
14
  const [completed, setCompleted] = useState(false);
15
15
  const [successful, setSuccessful] = useState(false);
16
- const userIdent = Q();
16
+ const userIdent = J();
17
17
  const [request, { loading, data, errors }] = an();
18
- const urlParams = new URLSearchParams($n.location.search);
18
+ const urlParams = new URLSearchParams(jn.location.search);
19
19
  const oobCode = urlParams.get("oobCode");
20
20
  const oobEmail = urlParams.get("email");
21
21
  const nextPageOverride = urlParams.get("nextPage");
@@ -26,7 +26,7 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
26
26
  successful);
27
27
  const validEmail = ((_c = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _c === void 0 ? void 0 : _c.email) === oobEmail;
28
28
  const failed = () => {
29
- return $n.push({
29
+ return jn.push({
30
30
  pathname: failedPage,
31
31
  search: urlParams.toString() && "?" + urlParams.toString(),
32
32
  });
@@ -34,7 +34,7 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
34
34
  const gotoNextPage = () => {
35
35
  urlParams.delete("nextPage");
36
36
  const url = sanitizeUrlPath(nextPageOverride || nextPage);
37
- $n.push(url.href);
37
+ jn.push(url.href);
38
38
  };
39
39
  const logout = () => {
40
40
  setTimeout(() => {