@saasquatch/mint-components 1.6.2-10 → 1.6.2-13

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 (333) hide show
  1. package/dist/cjs/{GenericTableView-47869553.js → GenericTableView-9271483b.js} +1 -1
  2. package/dist/cjs/{JSS-97fd087e.js → JSS-8503a151.js} +35 -19
  3. package/dist/cjs/{ShadowViewAddon-0ce4871c.js → ShadowViewAddon-58ede93c.js} +17 -21
  4. package/dist/cjs/{global-4e52f274.js → global-b645d18a.js} +2 -2
  5. package/dist/cjs/{index.module-7972acac.js → index.module-93c78ac7.js} +227 -535
  6. package/dist/cjs/loader.cjs.js +2 -3
  7. package/dist/cjs/mint-components.cjs.js +2 -3
  8. package/dist/cjs/{re-render-99b2655c.js → re-render-afeabe91.js} +4 -4
  9. package/dist/cjs/{sqm-asset-card-view-3da8cac1.js → sqm-asset-card-view-59c39ed2.js} +1 -1
  10. package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -4
  11. package/dist/cjs/sqm-big-stat_35.cjs.entry.js +87 -93
  12. package/dist/cjs/sqm-empty_5.cjs.entry.js +3 -4
  13. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -6
  14. package/dist/cjs/{sqm-hero-view-bc763ed2.js → sqm-hero-view-ba78dcaf.js} +1 -1
  15. package/dist/cjs/sqm-hero.cjs.entry.js +2 -3
  16. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +4 -5
  17. package/dist/cjs/{sqm-navigation-sidebar-item-view-b3ca14b4.js → sqm-navigation-sidebar-item-view-2eda59bf.js} +3 -3
  18. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -5
  19. package/dist/cjs/{sqm-navigation-sidebar-view-969adcdc.js → sqm-navigation-sidebar-view-2ffde416.js} +1 -1
  20. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +2 -3
  21. package/dist/cjs/sqm-password-field.cjs.entry.js +3 -4
  22. package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -5
  23. package/dist/cjs/{sqm-portal-container-view-840db620.js → sqm-portal-container-view-2ddcaa12.js} +1 -1
  24. package/dist/cjs/{sqm-portal-email-verification-view-f2a35e7c.js → sqm-portal-email-verification-view-b280d0b0.js} +3 -3
  25. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +19 -23
  26. package/dist/cjs/{sqm-portal-footer-view-8eadb31d.js → sqm-portal-footer-view-5d6451ad.js} +2 -2
  27. package/dist/cjs/sqm-portal-footer.cjs.entry.js +4 -5
  28. package/dist/cjs/{sqm-portal-forgot-password-view-fed1f563.js → sqm-portal-forgot-password-view-ccaf2bd4.js} +2 -2
  29. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +18 -21
  30. package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -3
  31. package/dist/cjs/{sqm-portal-profile-view-730252e8.js → sqm-portal-profile-view-e615e2b2.js} +4 -4
  32. package/dist/cjs/sqm-portal-profile.cjs.entry.js +8 -9
  33. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -6
  34. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +28 -28
  35. package/dist/cjs/{sqm-portal-reset-password-view-f8dc0b79.js → sqm-portal-reset-password-view-4d23de69.js} +2 -2
  36. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +31 -38
  37. package/dist/cjs/{sqm-portal-section-view-854a3e9c.js → sqm-portal-section-view-1e5bbcb1.js} +1 -1
  38. package/dist/cjs/{sqm-portal-verify-email-view-cc59877c.js → sqm-portal-verify-email-view-96adafc0.js} +2 -2
  39. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -11
  40. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -9
  41. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -3
  42. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -3
  43. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +11 -12
  44. package/dist/cjs/sqm-stencilbook.cjs.entry.js +55 -56
  45. package/dist/cjs/sqm-tab.cjs.entry.js +2 -3
  46. package/dist/cjs/sqm-tabs.cjs.entry.js +4 -5
  47. package/dist/cjs/{sqm-text-span-view-2c7d94b5.js → sqm-text-span-view-b318af73.js} +1 -1
  48. package/dist/cjs/sqm-text-span.cjs.entry.js +2 -3
  49. package/dist/cjs/{useChildElements-42a97f2a.js → useChildElements-c0cc8f5d.js} +2 -2
  50. package/dist/cjs/{useReferralTable-a985ce58.js → useReferralTable-db1b33db.js} +7 -7
  51. package/dist/cjs/{useRegistrationFormState-b7598d69.js → useRegistrationFormState-d0e43ca9.js} +3 -3
  52. package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +7 -10
  53. package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +14 -17
  54. package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +14 -16
  55. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +0 -4
  56. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +13 -16
  57. package/dist/collection/components/sqm-portal-register/usePortalRegister.js +21 -20
  58. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +22 -21
  59. package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +23 -29
  60. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +1 -2
  61. package/dist/esm/{GenericTableView-10cac7d6.js → GenericTableView-ce26115f.js} +1 -1
  62. package/dist/esm/{JSS-f00f9536.js → JSS-67b5cff8.js} +17 -1
  63. package/dist/esm/{ShadowViewAddon-846aecda.js → ShadowViewAddon-6b6e9c10.js} +17 -21
  64. package/dist/esm/{global-44835899.js → global-c2d5e2fa.js} +2 -2
  65. package/dist/esm/{index.module-132e274f.js → index.module-25496635.js} +211 -519
  66. package/dist/esm/loader.js +2 -3
  67. package/dist/esm/mint-components.js +2 -3
  68. package/dist/esm/{re-render-81cd3caa.js → re-render-8ece93cd.js} +4 -4
  69. package/dist/esm/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.js} +1 -1
  70. package/dist/esm/sqm-asset-card.entry.js +3 -4
  71. package/dist/esm/sqm-big-stat_35.entry.js +87 -93
  72. package/dist/esm/sqm-empty_5.entry.js +3 -4
  73. package/dist/esm/sqm-graphql-client-provider.entry.js +5 -6
  74. package/dist/esm/{sqm-hero-view-9fb2be89.js → sqm-hero-view-b8ce1900.js} +1 -1
  75. package/dist/esm/sqm-hero.entry.js +2 -3
  76. package/dist/esm/sqm-leaderboard-rank.entry.js +4 -5
  77. package/dist/esm/{sqm-navigation-sidebar-item-view-364af025.js → sqm-navigation-sidebar-item-view-24d5f092.js} +3 -3
  78. package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -5
  79. package/dist/esm/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-aa1313e7.js} +1 -1
  80. package/dist/esm/sqm-navigation-sidebar.entry.js +2 -3
  81. package/dist/esm/sqm-password-field.entry.js +3 -4
  82. package/dist/esm/sqm-popup-container.entry.js +4 -5
  83. package/dist/esm/{sqm-portal-container-view-ca454627.js → sqm-portal-container-view-228f2b65.js} +1 -1
  84. package/dist/esm/{sqm-portal-email-verification-view-5ac21bb4.js → sqm-portal-email-verification-view-4fa01d0a.js} +3 -3
  85. package/dist/esm/sqm-portal-email-verification.entry.js +20 -24
  86. package/dist/esm/{sqm-portal-footer-view-f3a6eaed.js → sqm-portal-footer-view-c4059af8.js} +2 -2
  87. package/dist/esm/sqm-portal-footer.entry.js +4 -5
  88. package/dist/esm/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-29c2e39b.js} +2 -2
  89. package/dist/esm/sqm-portal-forgot-password.entry.js +19 -22
  90. package/dist/esm/sqm-portal-logout.entry.js +2 -3
  91. package/dist/esm/{sqm-portal-profile-view-630f05c8.js → sqm-portal-profile-view-ec58906b.js} +4 -4
  92. package/dist/esm/sqm-portal-profile.entry.js +8 -9
  93. package/dist/esm/sqm-portal-protected-route.entry.js +5 -6
  94. package/dist/esm/sqm-portal-registration-form.entry.js +28 -28
  95. package/dist/esm/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-06f6ffac.js} +2 -2
  96. package/dist/esm/sqm-portal-reset-password.entry.js +31 -38
  97. package/dist/esm/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
  98. package/dist/esm/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-833644ac.js} +2 -2
  99. package/dist/esm/sqm-portal-verify-email.entry.js +9 -11
  100. package/dist/esm/sqm-referral-table_11.entry.js +8 -9
  101. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +2 -3
  102. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -3
  103. package/dist/esm/sqm-rewards-table_9.entry.js +11 -12
  104. package/dist/esm/sqm-stencilbook.entry.js +55 -56
  105. package/dist/esm/sqm-tab.entry.js +2 -3
  106. package/dist/esm/sqm-tabs.entry.js +4 -5
  107. package/dist/esm/{sqm-text-span-view-0ba1484d.js → sqm-text-span-view-8b194920.js} +1 -1
  108. package/dist/esm/sqm-text-span.entry.js +2 -3
  109. package/dist/esm/{useChildElements-9431f3e2.js → useChildElements-d86f03c6.js} +2 -2
  110. package/dist/esm/{useReferralTable-0516b6d5.js → useReferralTable-7aeb954d.js} +7 -7
  111. package/dist/esm/{useRegistrationFormState-ebb08075.js → useRegistrationFormState-e94eec81.js} +3 -3
  112. package/dist/esm-es5/{GenericTableView-10cac7d6.js → GenericTableView-ce26115f.js} +1 -1
  113. package/dist/esm-es5/{JSS-f00f9536.js → JSS-67b5cff8.js} +1 -1
  114. package/dist/esm-es5/ShadowViewAddon-6b6e9c10.js +1 -0
  115. package/dist/esm-es5/{global-44835899.js → global-c2d5e2fa.js} +2 -2
  116. package/dist/esm-es5/index.module-25496635.js +1 -0
  117. package/dist/esm-es5/loader.js +1 -1
  118. package/dist/esm-es5/mint-components.js +1 -1
  119. package/dist/esm-es5/{re-render-81cd3caa.js → re-render-8ece93cd.js} +1 -1
  120. package/dist/esm-es5/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.js} +1 -1
  121. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  122. package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
  123. package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
  124. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  125. package/dist/esm-es5/{sqm-hero-view-9fb2be89.js → sqm-hero-view-b8ce1900.js} +1 -1
  126. package/dist/esm-es5/sqm-hero.entry.js +1 -1
  127. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  128. package/dist/esm-es5/sqm-navigation-sidebar-item-view-24d5f092.js +1 -0
  129. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  130. package/dist/esm-es5/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-aa1313e7.js} +1 -1
  131. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  132. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  133. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  134. package/dist/esm-es5/{sqm-portal-container-view-ca454627.js → sqm-portal-container-view-228f2b65.js} +1 -1
  135. package/dist/esm-es5/{sqm-portal-email-verification-view-5ac21bb4.js → sqm-portal-email-verification-view-4fa01d0a.js} +1 -1
  136. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  137. package/dist/esm-es5/{sqm-portal-footer-view-f3a6eaed.js → sqm-portal-footer-view-c4059af8.js} +1 -1
  138. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  139. package/dist/esm-es5/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-29c2e39b.js} +1 -1
  140. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  141. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  142. package/dist/esm-es5/{sqm-portal-profile-view-630f05c8.js → sqm-portal-profile-view-ec58906b.js} +1 -1
  143. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  144. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  145. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  146. package/dist/esm-es5/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-06f6ffac.js} +1 -1
  147. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  148. package/dist/esm-es5/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
  149. package/dist/esm-es5/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-833644ac.js} +1 -1
  150. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  151. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  152. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  153. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  154. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  155. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  156. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  157. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  158. package/dist/esm-es5/{sqm-text-span-view-0ba1484d.js → sqm-text-span-view-8b194920.js} +1 -1
  159. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  160. package/dist/esm-es5/{useChildElements-9431f3e2.js → useChildElements-d86f03c6.js} +1 -1
  161. package/dist/esm-es5/{useReferralTable-0516b6d5.js → useReferralTable-7aeb954d.js} +1 -1
  162. package/dist/esm-es5/{useRegistrationFormState-ebb08075.js → useRegistrationFormState-e94eec81.js} +1 -1
  163. package/dist/mint-components/mint-components.esm.js +1 -1
  164. package/dist/mint-components/mint-components.js +1 -1
  165. package/dist/mint-components/p-01016d01.entry.js +1 -0
  166. package/dist/mint-components/p-02cc2ae0.entry.js +1 -0
  167. package/dist/mint-components/{p-c627c865.js → p-0425104d.js} +2 -2
  168. package/dist/mint-components/{p-ec689579.js → p-043501b1.js} +1 -1
  169. package/dist/mint-components/p-0c98df9a.system.entry.js +1 -0
  170. package/dist/mint-components/{p-3abbc5b3.system.js → p-0e6f1340.system.js} +1 -1
  171. package/dist/mint-components/{p-242bd74b.entry.js → p-0ec88b18.entry.js} +1 -1
  172. package/dist/mint-components/{p-b7e6ce3c.system.js → p-0f20108e.system.js} +1 -1
  173. package/dist/mint-components/p-0f3c6e11.entry.js +1 -0
  174. package/dist/mint-components/{p-703f4552.entry.js → p-0f44ced1.entry.js} +4 -4
  175. package/dist/mint-components/p-11a4a003.system.js +1 -0
  176. package/dist/mint-components/{p-52a2beaf.js → p-13cfd4bd.js} +1 -1
  177. package/dist/mint-components/{p-d64a0bc1.js → p-16671c5a.js} +1 -1
  178. package/dist/mint-components/p-175ef60c.js +1 -0
  179. package/dist/mint-components/{p-0e441a14.system.js → p-177f1699.system.js} +1 -1
  180. package/dist/mint-components/{p-7dea8d9a.js → p-19deed13.js} +1 -1
  181. package/dist/mint-components/p-19f572c9.entry.js +1 -0
  182. package/dist/mint-components/p-1a673057.system.js +8 -0
  183. package/dist/mint-components/p-1cb7125b.entry.js +1 -0
  184. package/dist/mint-components/{p-4935076f.system.js → p-20268b64.system.js} +1 -1
  185. package/dist/mint-components/{p-0d482ad4.js → p-233e784a.js} +1 -1
  186. package/dist/mint-components/p-23ce9541.system.entry.js +1 -0
  187. package/dist/mint-components/{p-210cd41b.js → p-24d6c3fd.js} +1 -1
  188. package/dist/mint-components/{p-1c40d459.js → p-27d8b5e4.js} +1 -1
  189. package/dist/mint-components/{p-b0668789.system.js → p-27da3d2f.system.js} +1 -1
  190. package/dist/mint-components/{p-4778fb68.js → p-2895613d.js} +1 -1
  191. package/dist/mint-components/p-28b0cd34.entry.js +1 -0
  192. package/dist/mint-components/p-29c42c90.system.entry.js +1 -0
  193. package/dist/mint-components/{p-0f4c1e0e.entry.js → p-29d7ffd1.entry.js} +3 -3
  194. package/dist/mint-components/{p-0d49d56d.js → p-33fe169e.js} +1 -1
  195. package/dist/mint-components/p-3582d202.system.entry.js +1 -0
  196. package/dist/mint-components/p-369d00f3.system.entry.js +1 -0
  197. package/dist/mint-components/p-3aa067f0.entry.js +13 -0
  198. package/dist/mint-components/p-3c2febd2.system.entry.js +1 -0
  199. package/dist/mint-components/p-3cd4d8bb.system.entry.js +1 -0
  200. package/dist/mint-components/p-3f15986b.entry.js +1 -0
  201. package/dist/mint-components/p-40a8ea40.entry.js +1 -0
  202. package/dist/mint-components/{p-1c21b5d1.js → p-41962e08.js} +1 -1
  203. package/dist/mint-components/p-4352909d.js +1 -0
  204. package/dist/mint-components/p-4560faa8.entry.js +1 -0
  205. package/dist/mint-components/{p-2cac212f.system.js → p-486f5810.system.js} +1 -1
  206. package/dist/mint-components/p-49c7d8f5.system.entry.js +1 -0
  207. package/dist/mint-components/{p-83d4885d.entry.js → p-4a5d61fe.entry.js} +2 -2
  208. package/dist/mint-components/p-4b83d7ea.js +1 -0
  209. package/dist/mint-components/p-4cc59fed.system.entry.js +1 -0
  210. package/dist/mint-components/{p-1f6fdeda.system.entry.js → p-4d4e5ac4.system.entry.js} +1 -1
  211. package/dist/mint-components/p-528ce342.system.entry.js +1 -0
  212. package/dist/mint-components/p-5352b716.system.entry.js +1 -0
  213. package/dist/mint-components/p-54db9721.js +1 -0
  214. package/dist/mint-components/p-58c173ff.entry.js +1 -0
  215. package/dist/mint-components/{p-a53d815e.system.js → p-5d4d81bf.system.js} +1 -1
  216. package/dist/mint-components/p-5effdc5e.system.entry.js +1 -0
  217. package/dist/mint-components/p-61b954e7.entry.js +1 -0
  218. package/dist/mint-components/p-674c9b4b.system.entry.js +1 -0
  219. package/dist/mint-components/p-6a529e0e.entry.js +1 -0
  220. package/dist/mint-components/{p-986f10d2.system.js → p-6b8b7dc0.system.js} +1 -1
  221. package/dist/mint-components/{p-0148c516.js → p-6dd27a5e.js} +1 -1
  222. package/dist/mint-components/p-76f151b2.entry.js +1 -0
  223. package/dist/mint-components/{p-89fc4544.system.js → p-7850a5e5.system.js} +1 -1
  224. package/dist/mint-components/{p-1c24a18c.js → p-78dcf8ff.js} +1 -1
  225. package/dist/mint-components/p-79aa6d79.system.entry.js +1 -0
  226. package/dist/mint-components/p-7aa067b0.system.entry.js +1 -0
  227. package/dist/mint-components/p-7ab63827.entry.js +1 -0
  228. package/dist/mint-components/p-7fcb4118.system.entry.js +1 -0
  229. package/dist/mint-components/{p-afcf252c.js → p-914511f3.js} +1 -1
  230. package/dist/mint-components/{p-292857fd.system.js → p-94578d79.system.js} +1 -1
  231. package/dist/mint-components/p-986e52e2.system.entry.js +1 -0
  232. package/dist/mint-components/p-9a87d5ae.system.entry.js +1 -0
  233. package/dist/mint-components/p-9db0c9fc.system.entry.js +1 -0
  234. package/dist/mint-components/p-9fa6c616.entry.js +1 -0
  235. package/dist/mint-components/{p-275cf42f.js → p-a4505a80.js} +1 -1
  236. package/dist/mint-components/{p-3c8becd3.js → p-a46c0d32.js} +1 -1
  237. package/dist/mint-components/p-a951d772.system.entry.js +1 -0
  238. package/dist/mint-components/p-aefc2633.system.entry.js +1 -0
  239. package/dist/mint-components/{p-574ba520.system.js → p-b01e28dd.system.js} +1 -1
  240. package/dist/mint-components/{p-6b5fbbdb.js → p-b21814ac.js} +1 -1
  241. package/dist/mint-components/p-b33e0421.system.js +1 -0
  242. package/dist/mint-components/p-b7b4772a.entry.js +1 -0
  243. package/dist/mint-components/p-bd3c2e67.system.js +1 -0
  244. package/dist/mint-components/{p-446a0805.system.js → p-bef0a1f4.system.js} +1 -1
  245. package/dist/mint-components/p-bf17dc65.system.js +1 -0
  246. package/dist/mint-components/p-c869970e.system.entry.js +1 -0
  247. package/dist/mint-components/p-cdec6312.system.entry.js +1 -0
  248. package/dist/mint-components/p-cef45012.js +1 -0
  249. package/dist/mint-components/{p-519dc03b.system.js → p-d20361b8.system.js} +1 -1
  250. package/dist/mint-components/p-dd5f7670.entry.js +1 -0
  251. package/dist/mint-components/p-de2cd263.entry.js +1 -0
  252. package/dist/mint-components/p-de745531.system.entry.js +1 -0
  253. package/dist/mint-components/p-e0de4ac3.entry.js +1 -0
  254. package/dist/mint-components/p-e48269b2.system.js +1 -0
  255. package/dist/mint-components/p-e502bbcc.entry.js +13 -0
  256. package/dist/mint-components/p-e5380001.system.entry.js +1 -0
  257. package/dist/mint-components/{p-192617e7.system.js → p-e58c257b.system.js} +1 -1
  258. package/dist/mint-components/p-e58df0ff.system.entry.js +1 -0
  259. package/dist/mint-components/p-e67fc6a5.entry.js +1 -0
  260. package/dist/mint-components/p-eaa9a926.entry.js +1 -0
  261. package/dist/mint-components/{p-5d292177.system.js → p-ee5a4598.system.js} +1 -1
  262. package/dist/mint-components/{p-19b0e2b5.system.js → p-ef18a3bd.system.js} +1 -1
  263. package/dist/mint-components/{p-53aef3ba.system.js → p-fdcd2b8f.system.js} +1 -1
  264. package/docs/docs.docx +0 -0
  265. package/package.json +2 -2
  266. package/dist/cjs/extends-08099afd.js +0 -21
  267. package/dist/esm/extends-c31f1eff.js +0 -19
  268. package/dist/esm-es5/ShadowViewAddon-846aecda.js +0 -1
  269. package/dist/esm-es5/extends-c31f1eff.js +0 -1
  270. package/dist/esm-es5/index.module-132e274f.js +0 -1
  271. package/dist/esm-es5/sqm-navigation-sidebar-item-view-364af025.js +0 -1
  272. package/dist/mint-components/p-00d4636f.system.entry.js +0 -1
  273. package/dist/mint-components/p-06f56536.js +0 -1
  274. package/dist/mint-components/p-07d424a2.system.entry.js +0 -1
  275. package/dist/mint-components/p-088d3b4a.system.entry.js +0 -1
  276. package/dist/mint-components/p-0b1d703d.entry.js +0 -1
  277. package/dist/mint-components/p-136325c0.system.js +0 -1
  278. package/dist/mint-components/p-162fca19.js +0 -1
  279. package/dist/mint-components/p-1c17892a.system.js +0 -1
  280. package/dist/mint-components/p-1cc3dfe5.system.js +0 -1
  281. package/dist/mint-components/p-222e5418.entry.js +0 -1
  282. package/dist/mint-components/p-2383eadd.system.entry.js +0 -1
  283. package/dist/mint-components/p-2dce26fa.system.entry.js +0 -1
  284. package/dist/mint-components/p-3d0dc005.system.entry.js +0 -1
  285. package/dist/mint-components/p-3f43b39c.entry.js +0 -1
  286. package/dist/mint-components/p-436779be.js +0 -1
  287. package/dist/mint-components/p-4ce8e325.system.entry.js +0 -1
  288. package/dist/mint-components/p-50553269.system.entry.js +0 -1
  289. package/dist/mint-components/p-50afa774.entry.js +0 -1
  290. package/dist/mint-components/p-51102b8f.entry.js +0 -13
  291. package/dist/mint-components/p-5928afc0.js +0 -1
  292. package/dist/mint-components/p-63101d0c.entry.js +0 -1
  293. package/dist/mint-components/p-73681688.system.entry.js +0 -1
  294. package/dist/mint-components/p-7c3e3cb4.entry.js +0 -1
  295. package/dist/mint-components/p-7f4b0ba0.system.entry.js +0 -1
  296. package/dist/mint-components/p-81f34787.js +0 -1
  297. package/dist/mint-components/p-8b7a19d3.system.entry.js +0 -1
  298. package/dist/mint-components/p-8c4bcbc6.entry.js +0 -1
  299. package/dist/mint-components/p-8d6a2a61.system.entry.js +0 -1
  300. package/dist/mint-components/p-90dfce36.entry.js +0 -1
  301. package/dist/mint-components/p-9f596d8d.system.entry.js +0 -1
  302. package/dist/mint-components/p-a1acdbb4.entry.js +0 -1
  303. package/dist/mint-components/p-a395bae0.entry.js +0 -1
  304. package/dist/mint-components/p-a4335cb5.system.entry.js +0 -1
  305. package/dist/mint-components/p-af3b56d3.system.entry.js +0 -1
  306. package/dist/mint-components/p-b2e7ca31.system.entry.js +0 -1
  307. package/dist/mint-components/p-b3d7d353.entry.js +0 -1
  308. package/dist/mint-components/p-b52109dd.entry.js +0 -1
  309. package/dist/mint-components/p-b593a42e.system.entry.js +0 -1
  310. package/dist/mint-components/p-bb9dadd3.system.entry.js +0 -1
  311. package/dist/mint-components/p-bc2cf095.entry.js +0 -1
  312. package/dist/mint-components/p-bed78bee.system.entry.js +0 -1
  313. package/dist/mint-components/p-c01e754d.system.entry.js +0 -1
  314. package/dist/mint-components/p-c4e22786.system.js +0 -1
  315. package/dist/mint-components/p-ca08cf71.entry.js +0 -1
  316. package/dist/mint-components/p-cac0e237.entry.js +0 -1
  317. package/dist/mint-components/p-ce6f7e0e.entry.js +0 -1
  318. package/dist/mint-components/p-ceeeb344.entry.js +0 -1
  319. package/dist/mint-components/p-ceefa54a.system.entry.js +0 -1
  320. package/dist/mint-components/p-d08b59df.entry.js +0 -13
  321. package/dist/mint-components/p-d21ccfa1.entry.js +0 -1
  322. package/dist/mint-components/p-d307abaa.entry.js +0 -1
  323. package/dist/mint-components/p-d5c94703.entry.js +0 -1
  324. package/dist/mint-components/p-d5d32d0d.system.js +0 -8
  325. package/dist/mint-components/p-d8876d3f.js +0 -1
  326. package/dist/mint-components/p-dc37fe51.system.js +0 -1
  327. package/dist/mint-components/p-df2b4e11.system.entry.js +0 -1
  328. package/dist/mint-components/p-e0fa9595.system.js +0 -1
  329. package/dist/mint-components/p-e8d07dfa.system.entry.js +0 -1
  330. package/dist/mint-components/p-f3eaabf8.system.entry.js +0 -1
  331. package/dist/mint-components/p-f54b436e.entry.js +0 -1
  332. package/dist/mint-components/p-f5e601b0.system.entry.js +0 -1
  333. package/dist/mint-components/p-f8863064.system.entry.js +0 -1
@@ -1,14 +1,15 @@
1
1
  import jsonpointer from "jsonpointer";
2
- import { useEffect, useState } from "@saasquatch/universal-hooks";
3
- import { useRequestPasswordResetEmailMutation } from "@saasquatch/component-boilerplate";
2
+ import { useState } from "@saasquatch/universal-hooks";
3
+ import { navigation, useRequestPasswordResetEmailMutation, } from "@saasquatch/component-boilerplate";
4
4
  export function usePortalForgotPassword(props) {
5
- var _a, _b, _c, _d, _e, _f, _g, _h;
5
+ var _a, _b, _c, _d, _e, _f, _g;
6
6
  const [success, setSuccess] = useState(false);
7
7
  const [error, setError] = useState("");
8
8
  const [request, { loading, data, errors }] = useRequestPasswordResetEmailMutation();
9
- const urlParams = new URLSearchParams(window.location.search);
9
+ const urlParams = new URLSearchParams(navigation.location.search);
10
10
  const nextPage = urlParams.get("nextPage");
11
11
  const submit = async (event) => {
12
+ var _a;
12
13
  setError("");
13
14
  setSuccess(false);
14
15
  let formData = event.detail.formData;
@@ -18,23 +19,20 @@ export function usePortalForgotPassword(props) {
18
19
  const urlParams = nextPage ? { nextPage } : null;
19
20
  const redirectPath = props.redirectPath;
20
21
  const variables = { email: formData.email, urlParams, redirectPath };
21
- await request(variables);
22
- };
23
- useEffect(() => {
24
- var _a;
25
- if ((_a = data === null || data === void 0 ? void 0 : data.requestManagedIdentityPasswordResetEmail) === null || _a === void 0 ? void 0 : _a.success) {
26
- setSuccess(true);
22
+ const result = await request(variables);
23
+ if (result instanceof Error) {
24
+ if (result.message)
25
+ setError("Network request failed.");
26
+ return;
27
27
  }
28
- }, [(_a = data === null || data === void 0 ? void 0 : data.requestManagedIdentityPasswordResetEmail) === null || _a === void 0 ? void 0 : _a.success]);
29
- useEffect(() => {
30
- if (errors === null || errors === void 0 ? void 0 : errors.message) {
31
- setError("Network request failed.");
28
+ if ((_a = result.requestManagedIdentityPasswordResetEmail) === null || _a === void 0 ? void 0 : _a.success) {
29
+ setSuccess(true);
32
30
  }
33
- }, [errors]);
31
+ };
34
32
  return {
35
33
  states: {
36
34
  loading,
37
- error: ((_e = (_d = (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.extensions) === null || _e === void 0 ? void 0 : _e.message) || ((_h = (_g = (_f = errors === null || errors === void 0 ? void 0 : errors.response) === null || _f === void 0 ? void 0 : _f.errors) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.message) ||
35
+ error: ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
38
36
  error,
39
37
  success,
40
38
  loginPath: props.loginPath,
@@ -3,11 +3,7 @@ import { createStyleSheet } from "../../styling/JSS";
3
3
  import { HostBlock } from "../../global/mixins";
4
4
  const style = {
5
5
  HostBlock: HostBlock,
6
- ":host": {
7
- "min-height": "100vh",
8
- },
9
6
  Frame: {
10
- "min-height": "100vh",
11
7
  display: "flex",
12
8
  "flex-direction": "column",
13
9
  "box-sizing": "border-box",
@@ -1,37 +1,34 @@
1
1
  import jsonpointer from "jsonpointer";
2
- import { useEffect, useState } from "@saasquatch/universal-hooks";
2
+ import { useState } from "@saasquatch/universal-hooks";
3
3
  import { navigation, useAuthenticateWithEmailAndPasswordMutation, } from "@saasquatch/component-boilerplate";
4
4
  import { sanitizeUrlPath } from "../../utils/utils";
5
5
  export function usePortalLogin(props) {
6
- var _a, _b, _c, _d, _e, _f, _g, _h;
6
+ var _a, _b, _c, _d, _e, _f, _g;
7
7
  const [request, { loading, errors, data }] = useAuthenticateWithEmailAndPasswordMutation();
8
8
  const [error, setError] = useState("");
9
- const urlParams = new URLSearchParams(window.location.search);
9
+ const urlParams = new URLSearchParams(navigation.location.search);
10
10
  const nextPageOverride = urlParams.get("nextPage");
11
11
  const submit = async (event) => {
12
+ var _a, _b;
12
13
  setError("");
13
14
  let formData = event.detail.formData;
14
15
  formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
15
16
  jsonpointer.set(formData, key, value);
16
17
  });
17
18
  const variables = { email: formData.email, password: formData.password };
18
- await request(variables);
19
- };
20
- useEffect(() => {
21
- var _a;
22
- if ((_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
19
+ const result = await request(variables);
20
+ if (result instanceof Error) {
21
+ if ((result === null || result === void 0 ? void 0 : result.message) || ((_a = result === null || result === void 0 ? void 0 : result["response"]) === null || _a === void 0 ? void 0 : _a["error"]))
22
+ setError("Network request failed.");
23
+ return;
24
+ }
25
+ if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
23
26
  urlParams.delete("nextPage");
24
27
  const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
25
28
  navigation.push(url.href);
26
29
  }
27
- }, [(_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token]);
28
- useEffect(() => {
29
- var _a;
30
- if ((errors === null || errors === void 0 ? void 0 : errors.message) || ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"])) {
31
- setError("Network request failed.");
32
- }
33
- }, [errors]);
34
- const errorMessage = ((_e = (_d = (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.extensions) === null || _e === void 0 ? void 0 : _e.message) || ((_h = (_g = (_f = errors === null || errors === void 0 ? void 0 : errors.response) === null || _f === void 0 ? void 0 : _f.errors) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.message) ||
30
+ };
31
+ const errorMessage = ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
35
32
  error;
36
33
  return {
37
34
  states: {
@@ -4,11 +4,21 @@ import { navigation, useRegisterWithEmailAndPasswordMutation, } from "@saasquatc
4
4
  import { useValidationState } from "./useValidationState";
5
5
  import { AsYouType } from "libphonenumber-js";
6
6
  export function usePortalRegister(props) {
7
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
8
8
  const formRef = useRef(null);
9
9
  const { validationState, setValidationState } = useValidationState({});
10
10
  const [request, { loading, errors, data }] = useRegisterWithEmailAndPasswordMutation();
11
+ useEffect(() => {
12
+ if (!formRef.current)
13
+ return;
14
+ const form = formRef.current;
15
+ form.addEventListener("sl-input", inputFunction);
16
+ return () => {
17
+ form.removeEventListener("sl-input", inputFunction);
18
+ };
19
+ }, [formRef.current]);
11
20
  const submit = async (event) => {
21
+ var _a;
12
22
  let formControls = event.target.getFormControls();
13
23
  let formData = {};
14
24
  let validationErrors = {};
@@ -55,7 +65,13 @@ export function usePortalRegister(props) {
55
65
  redirectPath,
56
66
  };
57
67
  try {
58
- await request(variables);
68
+ const result = await request(variables);
69
+ if (result instanceof Error) {
70
+ throw result;
71
+ }
72
+ if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
73
+ navigation.push(props.nextPage);
74
+ }
59
75
  }
60
76
  catch (error) {
61
77
  setValidationState({ error: "Network request failed." });
@@ -69,31 +85,16 @@ export function usePortalRegister(props) {
69
85
  const asYouType = new AsYouType("US");
70
86
  e.target.value = asYouType.input(e.target.value);
71
87
  }, []);
72
- useEffect(() => {
73
- var _a;
74
- if ((_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
75
- navigation.push(props.nextPage);
76
- }
77
- }, [(_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token]);
78
- useEffect(() => {
79
- if (!formRef.current)
80
- return;
81
- const form = formRef.current;
82
- form.addEventListener("sl-input", inputFunction);
83
- return () => {
84
- form.removeEventListener("sl-input", inputFunction);
85
- };
86
- }, [formRef.current]);
87
88
  let errorMessage = "";
88
- if ((_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b["error"]) {
89
+ if ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"]) {
89
90
  errorMessage = "Network request failed";
90
91
  }
91
- else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors.length)) {
92
+ else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors.length)) {
92
93
  errorMessage = "Network request failed";
93
94
  }
94
95
  else {
95
96
  errorMessage =
96
- ((_g = (_f = (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.response) === null || _d === void 0 ? void 0 : _d.errors) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.extensions) === null || _g === void 0 ? void 0 : _g.message) || ((_k = (_j = (_h = errors === null || errors === void 0 ? void 0 : errors.response) === null || _h === void 0 ? void 0 : _h.errors) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.message) || (validationState === null || validationState === void 0 ? void 0 : validationState.error);
97
+ ((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (validationState === null || validationState === void 0 ? void 0 : validationState.error);
97
98
  }
98
99
  return {
99
100
  states: {
@@ -39,8 +39,18 @@ export function usePortalRegistrationForm(props) {
39
39
  initialData,
40
40
  };
41
41
  setRegistrationFormState(formState);
42
- }, [(_a = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _a === void 0 ? void 0 : _a.form.initialData, formLoading]);
42
+ }, [(_a = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _a === void 0 ? void 0 : _a.form.initialData]);
43
+ useEffect(() => {
44
+ if (!formRef.current)
45
+ return;
46
+ const form = formRef.current;
47
+ form.addEventListener("sl-input", inputFunction);
48
+ return () => {
49
+ form.removeEventListener("sl-input", inputFunction);
50
+ };
51
+ }, [formRef.current]);
43
52
  const submit = async (event) => {
53
+ var _a;
44
54
  let formControls = event.target.getFormControls();
45
55
  let formData = {};
46
56
  let validationErrors = {};
@@ -90,7 +100,17 @@ export function usePortalRegistrationForm(props) {
90
100
  },
91
101
  };
92
102
  try {
93
- await request(variables);
103
+ const result = await request(variables);
104
+ if (result instanceof Error) {
105
+ throw result;
106
+ }
107
+ const managedIdentityResponse = (_a = result.submitForm) === null || _a === void 0 ? void 0 : _a.results.find((result) => result.formHandler.namespace === "identity");
108
+ if (managedIdentityResponse &&
109
+ managedIdentityResponse.result.results.length &&
110
+ managedIdentityResponse.result.results[0].success &&
111
+ managedIdentityResponse.result.results[0].data.token) {
112
+ navigation.push(props.nextPage);
113
+ }
94
114
  }
95
115
  catch (error) {
96
116
  setValidationState({ error: "Network request failed." });
@@ -104,25 +124,6 @@ export function usePortalRegistrationForm(props) {
104
124
  const asYouType = new AsYouType("US");
105
125
  e.target.value = asYouType.input(e.target.value);
106
126
  }, []);
107
- useEffect(() => {
108
- var _a;
109
- const managedIdentityResponse = (_a = data === null || data === void 0 ? void 0 : data.submitForm) === null || _a === void 0 ? void 0 : _a.results.find((result) => result.formHandler.namespace === "identity");
110
- if (managedIdentityResponse &&
111
- managedIdentityResponse.result.results.length &&
112
- managedIdentityResponse.result.results[0].success &&
113
- managedIdentityResponse.result.results[0].data.token) {
114
- navigation.push(props.nextPage);
115
- }
116
- }, [data === null || data === void 0 ? void 0 : data.submitForm]);
117
- useEffect(() => {
118
- if (!formRef.current)
119
- return;
120
- const form = formRef.current;
121
- form.addEventListener("sl-input", inputFunction);
122
- return () => {
123
- form.removeEventListener("sl-input", inputFunction);
124
- };
125
- }, [formRef.current]);
126
127
  let errorMessage = "";
127
128
  if (((_b = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _b === void 0 ? void 0 : _b.form.initialData.isEnabled) === false) {
128
129
  errorMessage =
@@ -3,15 +3,24 @@ import { useEffect, useState } from "@saasquatch/universal-hooks";
3
3
  import { navigation, useVerifyPasswordResetCodeMutation, useResetPasswordMutation, } from "@saasquatch/component-boilerplate";
4
4
  import { sanitizeUrlPath } from "../../utils/utils";
5
5
  export function usePortalResetPassword(props) {
6
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
6
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7
7
  const [reset, setReset] = useState(false);
8
8
  const [error, setError] = useState("");
9
9
  const [verifyPasswordResetCode, verifyPasswordResetCodeState] = useVerifyPasswordResetCodeMutation();
10
10
  const [resetPassword, resetPasswordState] = useResetPasswordMutation();
11
- const urlParams = new URLSearchParams(window.location.search);
11
+ const urlParams = new URLSearchParams(navigation.location.search);
12
12
  const oobCode = urlParams.get("oobCode");
13
13
  urlParams.delete("oobCode");
14
14
  const nextPageOverride = urlParams.get("nextPage");
15
+ const verifyPasswordResetCodeAndHandleResponse = async () => {
16
+ const result = await verifyPasswordResetCode({ oobCode });
17
+ if (result instanceof Error) {
18
+ setError("Network request failed.");
19
+ }
20
+ };
21
+ useEffect(() => {
22
+ verifyPasswordResetCodeAndHandleResponse();
23
+ }, []);
15
24
  const submit = async (event) => {
16
25
  setError("");
17
26
  let formData = event.detail.formData;
@@ -23,7 +32,16 @@ export function usePortalResetPassword(props) {
23
32
  setError("Passwords do not match.");
24
33
  return;
25
34
  }
26
- await resetPassword(variables);
35
+ const result = await resetPassword(variables);
36
+ if (result instanceof Error) {
37
+ return setError("Network request failed.");
38
+ }
39
+ if (result.resetManagedIdentityPassword) {
40
+ setReset(true);
41
+ setTimeout(() => {
42
+ gotoNextPage();
43
+ }, 5000);
44
+ }
27
45
  };
28
46
  const gotoNextPage = () => {
29
47
  urlParams.delete("nextPage");
@@ -36,39 +54,15 @@ export function usePortalResetPassword(props) {
36
54
  search: urlParams.toString() && "?" + urlParams.toString(),
37
55
  });
38
56
  };
39
- useEffect(() => {
40
- var _a;
41
- if ((_a = resetPasswordState.data) === null || _a === void 0 ? void 0 : _a.resetManagedIdentityPassword) {
42
- setReset(true);
43
- setTimeout(() => {
44
- gotoNextPage();
45
- }, 5000);
46
- }
47
- }, [(_a = resetPasswordState.data) === null || _a === void 0 ? void 0 : _a.resetManagedIdentityPassword]);
48
- useEffect(() => {
49
- verifyPasswordResetCode({ oobCode });
50
- }, [oobCode]);
51
- useEffect(() => {
52
- var _a;
53
- if ((_a = verifyPasswordResetCodeState === null || verifyPasswordResetCodeState === void 0 ? void 0 : verifyPasswordResetCodeState.errors) === null || _a === void 0 ? void 0 : _a.message) {
54
- setError("Network request failed.");
55
- }
56
- }, [verifyPasswordResetCodeState === null || verifyPasswordResetCodeState === void 0 ? void 0 : verifyPasswordResetCodeState.errors]);
57
- useEffect(() => {
58
- var _a;
59
- if ((_a = resetPasswordState === null || resetPasswordState === void 0 ? void 0 : resetPasswordState.errors) === null || _a === void 0 ? void 0 : _a.message) {
60
- setError("Network request failed.");
61
- }
62
- }, [resetPasswordState === null || resetPasswordState === void 0 ? void 0 : resetPasswordState.errors]);
63
57
  return {
64
58
  states: {
65
59
  loading: resetPasswordState.loading,
66
60
  reset,
67
61
  confirmPassword: props.confirmPassword,
68
- error: ((_f = (_e = (_d = (_c = (_b = resetPasswordState.errors) === null || _b === void 0 ? void 0 : _b.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_k = (_j = (_h = (_g = resetPasswordState.errors) === null || _g === void 0 ? void 0 : _g.response) === null || _h === void 0 ? void 0 : _h.errors) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.message) ||
62
+ error: ((_e = (_d = (_c = (_b = (_a = resetPasswordState.errors) === null || _a === void 0 ? void 0 : _a.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.extensions) === null || _e === void 0 ? void 0 : _e.message) || ((_j = (_h = (_g = (_f = resetPasswordState.errors) === null || _f === void 0 ? void 0 : _f.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) ||
69
63
  error,
70
64
  oobCodeValidating: verifyPasswordResetCodeState.loading,
71
- oobCodeValid: (_l = verifyPasswordResetCodeState.data) === null || _l === void 0 ? void 0 : _l.verifyManagedIdentityPasswordResetCode.success,
65
+ oobCodeValid: (_k = verifyPasswordResetCodeState.data) === null || _k === void 0 ? void 0 : _k.verifyManagedIdentityPasswordResetCode.success,
72
66
  content: {
73
67
  passwordResetHeader: props.passwordResetHeader,
74
68
  resetPasswordHeader: props.resetPasswordHeader,
@@ -5,7 +5,7 @@ export function usePortalVerifyEmail({ nextPage, failedPage }) {
5
5
  var _a, _b, _c, _d, _e, _f, _g, _h;
6
6
  const userIdent = useUserIdentity();
7
7
  const [request, { loading, data, errors }] = useVerifyEmailMutation();
8
- const urlParams = new URLSearchParams(window.location.search);
8
+ const urlParams = new URLSearchParams(navigation.location.search);
9
9
  const oobCode = urlParams.get("oobCode");
10
10
  const nextPageOverride = urlParams.get("nextPage");
11
11
  // derived from useMutation in component boilerplate initialState
@@ -28,7 +28,6 @@ export function usePortalVerifyEmail({ nextPage, failedPage }) {
28
28
  var _a;
29
29
  if (oobCode) {
30
30
  const result = await request({ oobCode });
31
- console.log({ result });
32
31
  if ((result instanceof Error ||
33
32
  !result.verifyManagedIdentityEmail.success) &&
34
33
  !((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified)) {
@@ -1,6 +1,6 @@
1
1
  import { h } from './index-17b4da69.js';
2
2
  import { g as gap } from './mixins-f60a614c.js';
3
- import { c as createStyleSheet } from './JSS-f00f9536.js';
3
+ import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
 
5
5
  function GenericTableView(props) {
6
6
  const { states, data, callbacks, elements } = props;
@@ -1,4 +1,20 @@
1
- import { _ as _extends } from './extends-c31f1eff.js';
1
+ function _extends() {
2
+ _extends = Object.assign || function (target) {
3
+ for (var i = 1; i < arguments.length; i++) {
4
+ var source = arguments[i];
5
+
6
+ for (var key in source) {
7
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
8
+ target[key] = source[key];
9
+ }
10
+ }
11
+ }
12
+
13
+ return target;
14
+ };
15
+
16
+ return _extends.apply(this, arguments);
17
+ }
2
18
 
3
19
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4
20
 
@@ -1,16 +1,16 @@
1
1
  import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
2
2
  import { i as useState, b as browser, k as useMemo } from './stencil-hooks.module-eefa3570.js';
3
- import { i as intl } from './global-44835899.js';
4
- import { d as dist, W, _ as _$1, a as dn, I as Ie, Q, k as getEnvironmentSDK, H } from './index.module-132e274f.js';
3
+ import { i as intl } from './global-c2d5e2fa.js';
4
+ import { d as dist, O, N, a as dn, P as Pe, U, j as getEnvironmentSDK, x } from './index.module-25496635.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
7
- import { c as createStyleSheet, j as jss, a as create } from './JSS-f00f9536.js';
8
- import { u as useChildElements } from './useChildElements-9431f3e2.js';
7
+ import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
8
+ import { u as useChildElements } from './useChildElements-d86f03c6.js';
9
9
  import { l as luxon } from './luxon-5a398612.js';
10
10
  import { l as luxonLocale } from './utils-334c1e34.js';
11
- import { T as TextSpanView } from './sqm-text-span-view-0ba1484d.js';
12
- import { P as PortalContainerView } from './sqm-portal-container-view-ca454627.js';
13
- import { P as PortalSectionView } from './sqm-portal-section-view-6c249c74.js';
11
+ import { T as TextSpanView } from './sqm-text-span-view-8b194920.js';
12
+ import { P as PortalContainerView } from './sqm-portal-container-view-228f2b65.js';
13
+ import { P as PortalSectionView } from './sqm-portal-section-view-a991e019.js';
14
14
 
15
15
  const medium = {
16
16
  facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
@@ -240,11 +240,7 @@ function BigStatView(props) {
240
240
 
241
241
  const style$3 = {
242
242
  HostBlock: HostBlock,
243
- ":host": {
244
- "min-height": "100vh",
245
- },
246
243
  Frame: {
247
- "min-height": "100vh",
248
244
  display: "flex",
249
245
  "flex-direction": "column",
250
246
  "box-sizing": "border-box",
@@ -359,11 +355,11 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
359
355
  `;
360
356
  function useShareLink(props) {
361
357
  var _a, _b;
362
- const { programId = W() } = props;
363
- const user = _$1();
364
- const engagementMedium = Q();
358
+ const { programId = O() } = props;
359
+ const user = N();
360
+ const engagementMedium = U();
365
361
  const { data } = dn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
366
- const [sendLoadEvent] = Ie(WIDGET_ENGAGEMENT_EVENT);
362
+ const [sendLoadEvent] = Pe(WIDGET_ENGAGEMENT_EVENT);
367
363
  const shareString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink) !== null && _b !== void 0 ? _b :
368
364
  // Shown during loading
369
365
  "...";
@@ -448,10 +444,10 @@ function GenericShare(res) {
448
444
  function useShareButton(props) {
449
445
  var _a, _b;
450
446
  const { sharetitle, sharetext, medium } = props;
451
- const programId = props.programId ? props.programId : W();
452
- const user = _$1();
447
+ const programId = props.programId ? props.programId : O();
448
+ const user = N();
453
449
  const variables = {
454
- engagementMedium: Q(),
450
+ engagementMedium: U(),
455
451
  programId: programId,
456
452
  shareMedium: medium.toUpperCase(),
457
453
  };
@@ -1332,11 +1328,11 @@ const StatPaths = [
1332
1328
  const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
1333
1329
  function useBigStat(props) {
1334
1330
  var _a;
1335
- const { statType, flexReverse, alignment, programId = W(), } = props;
1331
+ const { statType, flexReverse, alignment, programId = O(), } = props;
1336
1332
  // triggers a re-render if the label is manually changed
1337
1333
  useChildElements();
1338
- const locale = H();
1339
- const userIdent = _$1();
1334
+ const locale = x();
1335
+ const userIdent = N();
1340
1336
  const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
1341
1337
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
1342
1338
  return {
@@ -1,5 +1,5 @@
1
1
  import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './stencil-hooks.module-eefa3570.js';
2
- import { s as src, m as memoize, O } from './index.module-132e274f.js';
2
+ import { s as src, m as memoize, V } from './index.module-25496635.js';
3
3
 
4
4
  var __assign = (undefined && undefined.__assign) || function () {
5
5
  __assign = Object.assign || function(t) {
@@ -26629,7 +26629,7 @@ sl-input::part(label){
26629
26629
 
26630
26630
  `;
26631
26631
 
26632
- O(l$1);
26632
+ V(l$1);
26633
26633
  const debug = browser("sq:global");
26634
26634
  const cache = createIntlCache();
26635
26635
  const intl = createIntl({