@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
@@ -4,49 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
8
-
9
- function useGoogleSignIn(props) {
10
- const [loaded, setLoaded] = stencilHooks_module.useState(false);
11
- const [googleButtonDiv, setGoogleButtonDiv] = stencilHooks_module.useState(null);
12
- stencilHooks_module.useEffect(() => {
13
- const cb = () => {
14
- // @ts-expect-error
15
- window.onGoogleLibraryLoad = null;
16
- const sdk = index_module.getEnvironmentSDK();
17
- if (sdk.type !== "SquatchPortal")
18
- return;
19
- const cb = (res) => {
20
- props.initComplete.emit(res);
21
- };
22
- //@ts-expect-error
23
- google.accounts.id.initialize({
24
- //@ts-expect-error: link component-env/boilerplate for new types
25
- client_id: sdk.env.googleOAuthId,
26
- callback: cb,
27
- });
28
- setLoaded(true);
29
- };
30
- // @ts-expect-error
31
- if (window.google)
32
- cb();
33
- // @ts-expect-error
34
- window.onGoogleLibraryLoad = cb;
35
- }, []);
36
- stencilHooks_module.useEffect(() => {
37
- if (!googleButtonDiv || !loaded)
38
- return;
39
- //@ts-expect-error
40
- google.accounts.id.renderButton(googleButtonDiv, {
41
- theme: "outline",
42
- size: "large",
43
- text: props.text,
44
- });
45
- }, [googleButtonDiv, loaded]);
46
- return {
47
- setGoogleButtonDiv,
48
- };
49
- }
7
+ require('./index.module-57703088.js');
50
8
 
51
9
  const GoogleSignIn = class {
52
10
  constructor(hostRef) {
@@ -65,9 +23,8 @@ const GoogleSignIn = class {
65
23
  }
66
24
  }
67
25
  render() {
68
- const { setGoogleButtonDiv } = index_module.isDemo()
69
- ? useDemoGoogleSignIn(this)
70
- : useGoogleSignIn(this);
26
+ const { setGoogleButtonDiv } = useDemoGoogleSignIn(this)
27
+ ;
71
28
  return (index.h("div", null, index.h("div", { ref: setGoogleButtonDiv })));
72
29
  }
73
30
  };
@@ -90,8 +47,13 @@ function useDemoGoogleSignIn(props) {
90
47
  if (!googleButtonDiv || !loaded)
91
48
  return;
92
49
  const cb = () => {
93
- props.initComplete.emit({ credential: "PLACEHOLDERCREDENTIAL" });
50
+ props.initComplete.emit({ credential: null });
94
51
  };
52
+ // @ts-expect-error
53
+ google.accounts.id.initialize({
54
+ client_id: "PLACEHOLDER",
55
+ cb: () => { },
56
+ });
95
57
  //@ts-expect-error
96
58
  google.accounts.id.renderButton(googleButtonDiv, {
97
59
  theme: "outline",
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
 
9
9
  async function useGraphQLClientProvider({ domain }) {
10
- const token = index_module.J();
10
+ const token = index_module.G();
11
11
  const appDomain = domain;
12
- const tenantAlias = index_module.z();
12
+ const tenantAlias = index_module.Q();
13
13
  // Memoization is shared. One client per domain, tenant and token (or null)
14
14
  const managedIdentityClient = index_module.Ee(appDomain, tenantAlias, token);
15
15
  const [, setGraphQLClient] = stencilHooks_module.m(index_module.Pe, managedIdentityClient);
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
  require('./jsonpointer-11327262.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./JSS-8503a151.js');
11
11
  require('./mixins-f7e0377a.js');
12
12
  const emailRegistrationView = require('./email-registration-view-55b378dc.js');
13
- require('./useRegistrationFormState-2a738647.js');
14
- const useInstantAccessRegistration = require('./useInstantAccessRegistration-b732990f.js');
13
+ require('./useRegistrationFormState-986b5ea1.js');
14
+ const useInstantAccessRegistration = require('./useInstantAccessRegistration-daff8290.js');
15
15
 
16
16
  const InstantAccessRegistration = class {
17
17
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a29c60ef.js');
4
- const global = require('./global-0cb2907a.js');
4
+ const global = require('./global-19fc8a7a.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
 
7
7
  const INDIRECT_TAX_PROVINCES = [
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const global = require('./global-0cb2907a.js');
8
- const index_module = require('./index.module-3ae0c462.js');
7
+ const global = require('./global-19fc8a7a.js');
8
+ const index_module = require('./index.module-57703088.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-d39a55d8.js');
11
11
 
@@ -27,7 +27,7 @@ function useLeaderboardRank(props) {
27
27
  const programIdContext = index_module.H();
28
28
  // Default to context, overriden by props
29
29
  const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
30
- const user = index_module.Q();
30
+ const user = index_module.J();
31
31
  const rankVariables = programId
32
32
  ? {
33
33
  type: props.leaderboardType,
@@ -40,7 +40,7 @@ function useLeaderboardRank(props) {
40
40
  if (props.interval) {
41
41
  rankVariables.filter["interval"] = props.interval;
42
42
  }
43
- const { data: rankData } = index_module.yn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
43
+ const { data: rankData } = index_module.wn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
44
44
  const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? global.intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
45
45
  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],
46
46
  })
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
  const cjs = require('./cjs-1066ec21.js');
9
9
  const utils = require('./utils-6847bc06.js');
10
10
  require('./JSS-8503a151.js');
@@ -23,8 +23,8 @@ const GET_USER_DETAILS = index_module.dist.gql `
23
23
  `;
24
24
  function useLogoutCurrentUser(props) {
25
25
  var _a, _b;
26
- const user = index_module.Q();
27
- const { loading, data } = index_module.yn(GET_USER_DETAILS, {}, !user);
26
+ const user = index_module.J();
27
+ const { loading, data } = index_module.wn(GET_USER_DETAILS, {}, !user);
28
28
  const onSwitchClick = () => {
29
29
  index_module.setUserIdentity(undefined);
30
30
  };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a29c60ef.js');
4
- const index_module = require('./index.module-3ae0c462.js');
4
+ const index_module = require('./index.module-57703088.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
  const mixins = require('./mixins-f7e0377a.js');
7
7
 
@@ -35,7 +35,7 @@ function NavigationSidebarItemView(props) {
35
35
  const styleString = sheet.toString();
36
36
  return (index.h("a", { part: "sqm-link", href: data.path, onClick: (e) => {
37
37
  e.preventDefault();
38
- index_module.$n.push(data.path);
38
+ index_module.jn.push(data.path);
39
39
  }, class: sheet.classes.ItemContainer },
40
40
  index.h("style", { type: "text/css" }, styleString),
41
41
  index.h("sl-icon", { class: sheet.classes.Icon, name: data.icon }),
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
  const cjs = require('./cjs-1066ec21.js');
9
9
  const utils = require('./utils-6847bc06.js');
10
10
  require('./JSS-8503a151.js');
11
11
  require('./mixins-f7e0377a.js');
12
- const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-9691839f.js');
12
+ const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-9bba5f7e.js');
13
13
 
14
14
  function useNavigationSidebarItem(props) {
15
- const currentPage = index_module.Sn();
15
+ const currentPage = index_module.kn();
16
16
  return {
17
17
  states: {
18
18
  active: currentPage.pathname === props.path,
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
  const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-17111896.js');
9
9
 
10
10
  const NavigationSidebar = class {
@@ -20,7 +20,7 @@ const NavigationSidebar = class {
20
20
  }
21
21
  };
22
22
  function useNavigationSidebar() {
23
- const location = index_module.Sn();
23
+ const location = index_module.kn();
24
24
  const programId = index_module.H();
25
25
  const [checked, setChecked] = stencilHooks_module.useState(false);
26
26
  // Close hamburger menu after navigation
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const global = require('./global-0cb2907a.js');
8
- const index_module = require('./index.module-3ae0c462.js');
7
+ const global = require('./global-19fc8a7a.js');
8
+ const index_module = require('./index.module-57703088.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  const JSS = require('./JSS-8503a151.js');
12
- const copyTextView = require('./copy-text-view-f7a88b15.js');
12
+ const copyTextView = require('./copy-text-view-9b950efe.js');
13
13
  require('./mixins-f7e0377a.js');
14
14
 
15
15
  const style = {
@@ -45,7 +45,7 @@ function PaginationView(props) {
45
45
 
46
46
  function usePagination(props) {
47
47
  var _a;
48
- const context = index_module.In(copyTextView.REFERRAL_CODES_PAGINATION_CONTEXT);
48
+ const context = index_module.Fn(copyTextView.REFERRAL_CODES_PAGINATION_CONTEXT);
49
49
  const currentPage = context.states.currentPage + 1;
50
50
  const totalPages = (_a = context.states) === null || _a === void 0 ? void 0 : _a.pageCount;
51
51
  return {
@@ -129,10 +129,10 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
129
129
  function useReferralCode(props) {
130
130
  var _a, _b;
131
131
  const { programId = index_module.H() } = props;
132
- const user = index_module.Q();
132
+ const user = index_module.J();
133
133
  const engagementMedium = index_module.B();
134
- const contextData = index_module.In(copyTextView.REFERRAL_CODES_NAMESPACE);
135
- const { data } = index_module.yn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || (contextData === null || contextData === void 0 ? void 0 : contextData.referralCode) !== undefined);
134
+ const contextData = index_module.Fn(copyTextView.REFERRAL_CODES_NAMESPACE);
135
+ const { data } = index_module.wn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || (contextData === null || contextData === void 0 ? void 0 : contextData.referralCode) !== undefined);
136
136
  const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT);
137
137
  const [setCopied] = index_module.$e(copyTextView.SET_CODE_COPIED);
138
138
  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 :
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
  const cjs = require('./cjs-1066ec21.js');
9
9
  const utils = require('./utils-6847bc06.js');
10
10
  const JSS = require('./JSS-8503a151.js');
11
11
  const mixins = require('./mixins-f7e0377a.js');
12
- const useRegistrationFormState = require('./useRegistrationFormState-2a738647.js');
12
+ const useRegistrationFormState = require('./useRegistrationFormState-986b5ea1.js');
13
13
 
14
14
  var constants = {
15
15
  error: {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
  const utils = require('./utils-6847bc06.js');
9
9
 
10
10
  const PopupContainerView = (props) => {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a29c60ef.js');
4
- const global = require('./global-0cb2907a.js');
4
+ const global = require('./global-19fc8a7a.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
  const mixins = require('./mixins-f7e0377a.js');
7
7
  const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
@@ -4,21 +4,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- require('./global-0cb2907a.js');
8
- const index_module = require('./index.module-3ae0c462.js');
7
+ require('./global-19fc8a7a.js');
8
+ const index_module = require('./index.module-57703088.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./JSS-8503a151.js');
11
11
  require('./mixins-f7e0377a.js');
12
12
  require('./sqm-text-span-view-0aa82125.js');
13
- const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-758f11cb.js');
13
+ const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-98d84549.js');
14
14
 
15
15
  function usePortalEmailVerification(props) {
16
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
17
17
  const [request, { loading, data, errors }] = index_module.ln();
18
18
  const [getVerificationStatus, { data: user, loading: loadingVerification }] = index_module.nn();
19
- const userIdent = index_module.Q();
19
+ const userIdent = index_module.J();
20
20
  const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
21
- const urlParams = new URLSearchParams(index_module.$n.location.search);
21
+ const urlParams = new URLSearchParams(index_module.jn.location.search);
22
22
  const nextPage = urlParams.get("nextPage");
23
23
  const [success, setSuccess] = stencilHooks_module.useState(false);
24
24
  const [error, setError] = stencilHooks_module.useState("");
@@ -48,7 +48,7 @@ function usePortalEmailVerification(props) {
48
48
  const data = (await getVerificationStatus());
49
49
  if ((_a = data === null || data === void 0 ? void 0 : data.managedIdentitySession) === null || _a === void 0 ? void 0 : _a.emailVerified) {
50
50
  clearInterval(timerRef.current);
51
- return index_module.$n.push({
51
+ return index_module.jn.push({
52
52
  pathname: props.redirectPath,
53
53
  search: urlParams.toString() && "?" + urlParams.toString(),
54
54
  });
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
  const jsonpointer = require('./jsonpointer-11327262.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./JSS-8503a151.js');
@@ -17,7 +17,7 @@ function usePortalForgotPassword(props) {
17
17
  const [success, setSuccess] = stencilHooks_module.useState(false);
18
18
  const [error, setError] = stencilHooks_module.useState("");
19
19
  const [request, { loading, data, errors }] = index_module.un();
20
- const urlParams = new URLSearchParams(index_module.$n.location.search);
20
+ const urlParams = new URLSearchParams(index_module.jn.location.search);
21
21
  const nextPage = urlParams.get("nextPage");
22
22
  const submit = async (event) => {
23
23
  var _a;
@@ -106,7 +106,7 @@ const PortalForgotPassword = class {
106
106
  ? usePortalForgotPasswordDemo(this)
107
107
  : usePortalForgotPassword(this);
108
108
  const content = {
109
- secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.$n.push(states.loginPath) }, this.loginText))),
109
+ secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.jn.push(states.loginPath) }, this.loginText))),
110
110
  messageSlot: index.h("slot", { name: "messageSlot" }, this.headerText),
111
111
  emailLabel: this.emailLabel,
112
112
  submitLabel: this.submitLabel,
@@ -4,17 +4,75 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
  const jsonpointer = require('./jsonpointer-11327262.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const JSS = require('./JSS-8503a151.js');
11
11
  require('./mixins-f7e0377a.js');
12
12
  require('./sqm-text-span-view-0aa82125.js');
13
- const useRegistrationFormState = require('./useRegistrationFormState-2a738647.js');
13
+ const useRegistrationFormState = require('./useRegistrationFormState-986b5ea1.js');
14
14
  const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-d5685747.js');
15
15
  const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-e947a5b3.js');
16
16
  require('./AsYouType-6788393a.js');
17
- const usePortalRegistrationForm = require('./usePortalRegistrationForm-99ec3cc2.js');
17
+ const usePortalRegistrationForm = require('./usePortalRegistrationForm-a89d736e.js');
18
+
19
+ class InvalidTokenError extends Error {
20
+ }
21
+ InvalidTokenError.prototype.name = "InvalidTokenError";
22
+ function b64DecodeUnicode(str) {
23
+ return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {
24
+ let code = p.charCodeAt(0).toString(16).toUpperCase();
25
+ if (code.length < 2) {
26
+ code = "0" + code;
27
+ }
28
+ return "%" + code;
29
+ }));
30
+ }
31
+ function base64UrlDecode(str) {
32
+ let output = str.replace(/-/g, "+").replace(/_/g, "/");
33
+ switch (output.length % 4) {
34
+ case 0:
35
+ break;
36
+ case 2:
37
+ output += "==";
38
+ break;
39
+ case 3:
40
+ output += "=";
41
+ break;
42
+ default:
43
+ throw new Error("base64 string is not of the correct length");
44
+ }
45
+ try {
46
+ return b64DecodeUnicode(output);
47
+ }
48
+ catch (err) {
49
+ return atob(output);
50
+ }
51
+ }
52
+ function jwtDecode(token, options) {
53
+ if (typeof token !== "string") {
54
+ throw new InvalidTokenError("Invalid token specified: must be a string");
55
+ }
56
+ options || (options = {});
57
+ const pos = options.header === true ? 0 : 1;
58
+ const part = token.split(".")[pos];
59
+ if (typeof part !== "string") {
60
+ throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);
61
+ }
62
+ let decoded;
63
+ try {
64
+ decoded = base64UrlDecode(part);
65
+ }
66
+ catch (e) {
67
+ throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);
68
+ }
69
+ try {
70
+ return JSON.parse(decoded);
71
+ }
72
+ catch (e) {
73
+ throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);
74
+ }
75
+ }
18
76
 
19
77
  function usePortalGoogleRegistrationForm(props) {
20
78
  const [emailValidationError, setEmailValidationError] = stencilHooks_module.useState(null);
@@ -57,8 +115,11 @@ function usePortalGoogleRegistrationForm(props) {
57
115
  setShowRegistrationForm({ mode: "manual" });
58
116
  };
59
117
  const handleGoogleInit = (event) => {
118
+ var _a;
119
+ if (!((_a = event.detail) === null || _a === void 0 ? void 0 : _a.credential))
120
+ return;
60
121
  try {
61
- const res = index_module.o(event.detail.credential);
122
+ const res = jwtDecode(event.detail.credential);
62
123
  setRegistrationFormState({
63
124
  ...registrationFormState,
64
125
  _googleOAuthIdToken: event.detail.credential,
@@ -230,7 +291,7 @@ const PortalGoogleRegistrationForm = class {
230
291
  const content = {
231
292
  formData: index.h("slot", { name: "formData" }),
232
293
  googleButton: (index.h("sqm-google-sign-in", { text: "Register with Google", onInitComplete: handleGoogleInit })),
233
- secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("style", null, styleString), index.h("span", null, this.loginCTA, " ", index.h("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => index_module.$n.push(states.loginPath), className: sheet.classes.LoginButton }, this.loginLabel), " "))),
294
+ secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("style", null, styleString), index.h("span", null, this.loginCTA, " ", index.h("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => index_module.jn.push(states.loginPath), className: sheet.classes.LoginButton }, this.loginLabel), " "))),
234
295
  terms: index.h("slot", { name: "terms" }),
235
296
  emailLabel: this.emailLabel,
236
297
  passwordLabel: this.passwordLabel,
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
 
9
9
  function usePortalLogout({ nextPage }) {
10
10
  index_module.setUserIdentity(undefined);
11
- index_module.$n.push({ pathname: nextPage, search: "" });
11
+ index_module.jn.push({ pathname: nextPage, search: "" });
12
12
  }
13
13
 
14
14
  const PortalLogout = class {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a29c60ef.js');
4
- const global = require('./global-0cb2907a.js');
4
+ const global = require('./global-19fc8a7a.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
  const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
7
7
 
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- require('./global-0cb2907a.js');
8
- const index_module = require('./index.module-3ae0c462.js');
7
+ require('./global-19fc8a7a.js');
8
+ const index_module = require('./index.module-57703088.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  require('./JSS-8503a151.js');
12
12
  require('./sqm-text-span-view-0aa82125.js');
13
- const sqmPortalProfileView = require('./sqm-portal-profile-view-b944ddba.js');
14
- const utilities = require('./utilities-7da4d59a.js');
13
+ const sqmPortalProfileView = require('./sqm-portal-profile-view-bae28ea0.js');
14
+ const utilities = require('./utilities-c135f16f.js');
15
15
 
16
16
  const GET_USER = index_module.dist.gql `
17
17
  query {
@@ -57,11 +57,11 @@ const defaultFormState = {
57
57
  error: "",
58
58
  };
59
59
  function usePortalProfile(props) {
60
- const userIdent = index_module.Q();
60
+ const userIdent = index_module.J();
61
61
  const [success, setSuccess] = stencilHooks_module.useState(false);
62
62
  const [userData, setUserData] = stencilHooks_module.useState(undefined);
63
63
  const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
64
- const userDataResponse = index_module.yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
64
+ const userDataResponse = index_module.wn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
65
65
  const [upsertUser, upsertUserResponse] = index_module.$e(UPSERT_USER);
66
66
  stencilHooks_module.useEffect(() => {
67
67
  if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
@@ -4,25 +4,25 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
 
9
9
  function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
10
10
  var _a;
11
- const userIdent = index_module.Q();
11
+ const userIdent = index_module.J();
12
12
  const authenticated = !!(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt);
13
13
  const emailVerified = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified;
14
- const { pathname, search } = index_module.Sn();
14
+ const { pathname, search } = index_module.kn();
15
15
  const nextPageParam = new URLSearchParams();
16
16
  nextPageParam.append("nextPage", `${pathname}${search}`);
17
17
  stencilHooks_module.useEffect(() => {
18
18
  if (!authenticated) {
19
- return index_module.$n.push({
19
+ return index_module.jn.push({
20
20
  pathname: redirectTo,
21
21
  search: "?" + nextPageParam.toString(),
22
22
  });
23
23
  }
24
24
  if (requireEmailVerification && !emailVerified) {
25
- return index_module.$n.push({
25
+ return index_module.jn.push({
26
26
  pathname: redirectToUnverified || redirectTo,
27
27
  search: "?" + nextPageParam.toString(),
28
28
  });
@@ -4,16 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
  require('./jsonpointer-11327262.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./JSS-8503a151.js');
11
11
  require('./mixins-f7e0377a.js');
12
12
  require('./sqm-text-span-view-0aa82125.js');
13
- require('./useRegistrationFormState-2a738647.js');
13
+ require('./useRegistrationFormState-986b5ea1.js');
14
14
  const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-e947a5b3.js');
15
15
  require('./AsYouType-6788393a.js');
16
- const usePortalRegistrationForm = require('./usePortalRegistrationForm-99ec3cc2.js');
16
+ const usePortalRegistrationForm = require('./usePortalRegistrationForm-a89d736e.js');
17
17
 
18
18
  const PortalRegistrationForm = class {
19
19
  constructor(hostRef) {
@@ -146,7 +146,7 @@ const PortalRegistrationForm = class {
146
146
  : usePortalRegistrationForm.usePortalRegistrationForm(this);
147
147
  const content = {
148
148
  formData: index.h("slot", { name: "formData" }),
149
- secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.$n.push(states.loginPath) }, this.loginLabel))),
149
+ secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.jn.push(states.loginPath) }, this.loginLabel))),
150
150
  terms: index.h("slot", { name: "terms" }),
151
151
  emailLabel: this.emailLabel,
152
152
  passwordLabel: this.passwordLabel,
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const index_module = require('./index.module-3ae0c462.js');
7
+ const index_module = require('./index.module-57703088.js');
8
8
  const jsonpointer = require('./jsonpointer-11327262.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
@@ -17,9 +17,9 @@ function usePortalResetPassword(props) {
17
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18
18
  const [reset, setReset] = stencilHooks_module.useState(false);
19
19
  const [error, setError] = stencilHooks_module.useState("");
20
- const [verifyPasswordResetCode, verifyPasswordResetCodeState] = index_module.Qe();
20
+ const [verifyPasswordResetCode, verifyPasswordResetCodeState] = index_module.Je();
21
21
  const [resetPassword, resetPasswordState] = index_module.Te();
22
- const urlParams = new URLSearchParams(index_module.$n.location.search);
22
+ const urlParams = new URLSearchParams(index_module.jn.location.search);
23
23
  const oobCode = urlParams.get("oobCode");
24
24
  urlParams.delete("oobCode");
25
25
  const nextPageOverride = urlParams.get("nextPage");
@@ -57,10 +57,10 @@ function usePortalResetPassword(props) {
57
57
  const gotoNextPage = () => {
58
58
  urlParams.delete("nextPage");
59
59
  const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
60
- index_module.$n.push(url.href);
60
+ index_module.jn.push(url.href);
61
61
  };
62
62
  const failed = () => {
63
- index_module.$n.push({
63
+ index_module.jn.push({
64
64
  pathname: props.failedPage,
65
65
  search: urlParams.toString() && "?" + urlParams.toString(),
66
66
  });