@saasquatch/mint-components 1.7.4 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/dist/cjs/{ShadowViewAddon-25025125.js → ShadowViewAddon-54e29788.js} +39 -52
  2. package/dist/cjs/{global-be9af765.js → global-a8fd1f10.js} +3 -3
  3. package/dist/cjs/{index.module-8562f350.js → index.module-7c0deb52.js} +24 -26
  4. package/dist/cjs/loader.cjs.js +4 -4
  5. package/dist/cjs/{luxon-53e983a6.js → luxon-a4661470.js} +1 -1
  6. package/dist/cjs/mint-components.cjs.js +4 -4
  7. package/dist/cjs/{re-render-9a91bde6.js → re-render-e77c897d.js} +5 -5
  8. package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
  9. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +172 -68
  10. package/dist/cjs/sqm-close-button.cjs.entry.js +2 -2
  11. package/dist/cjs/sqm-empty_5.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-form-message.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
  14. package/dist/cjs/sqm-header-logo.cjs.entry.js +1 -1
  15. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +4 -4
  16. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +6 -6
  17. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +4 -4
  18. package/dist/cjs/{sqm-navigation-sidebar-item-view-28578dce.js → sqm-navigation-sidebar-item-view-84128b9f.js} +2 -2
  19. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
  20. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +4 -4
  21. package/dist/cjs/sqm-password-field.cjs.entry.js +44 -19
  22. package/dist/cjs/sqm-popup-container.cjs.entry.js +13 -6
  23. package/dist/cjs/{sqm-portal-email-verification-view-077c12f7.js → sqm-portal-email-verification-view-b7cafe0c.js} +3 -3
  24. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +20 -9
  25. package/dist/cjs/{sqm-portal-forgot-password-view-0142350f.js → sqm-portal-forgot-password-view-ca5f6db9.js} +1 -1
  26. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +19 -9
  27. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  28. package/dist/cjs/{sqm-portal-profile-view-b3d1e0f7.js → sqm-portal-profile-view-f092a4ef.js} +4 -4
  29. package/dist/cjs/sqm-portal-profile.cjs.entry.js +32 -12
  30. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +6 -6
  31. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +40 -8
  32. package/dist/cjs/{sqm-portal-reset-password-view-d5bc7afc.js → sqm-portal-reset-password-view-07a13210.js} +3 -3
  33. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +71 -11
  34. package/dist/cjs/{sqm-portal-verify-email-view-f6c7287e.js → sqm-portal-verify-email-view-ce552bbc.js} +7 -7
  35. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +49 -14
  36. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +7 -7
  37. package/dist/cjs/sqm-referred-registration.cjs.entry.js +4 -4
  38. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  39. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +3 -3
  40. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +11 -11
  41. package/dist/cjs/sqm-stencilbook.cjs.entry.js +62 -55
  42. package/dist/cjs/sqm-tab.cjs.entry.js +3 -3
  43. package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
  44. package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
  45. package/dist/cjs/{stencil-hooks.module-e4bf7f2d.js → stencil-hooks.module-faabb426.js} +1 -1
  46. package/dist/cjs/{useChildElements-be4e0841.js → useChildElements-410453fc.js} +3 -3
  47. package/dist/cjs/{useInstantAccessRegistration-27a20410.js → useInstantAccessRegistration-42b320b3.js} +4 -4
  48. package/dist/cjs/{useReferralTable-ca564dcb.js → useReferralTable-28fff5b8.js} +10 -10
  49. package/dist/cjs/{useRegistrationFormState-7b557a04.js → useRegistrationFormState-58ce55f2.js} +3 -3
  50. package/dist/cjs/utilities-d2d257c7.js +25 -0
  51. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +2 -2
  52. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +77 -1
  53. package/dist/collection/components/sqm-edit-profile/useEditProfile.js +7 -5
  54. package/dist/collection/components/sqm-password-field/passwordValidation.js +11 -11
  55. package/dist/collection/components/sqm-password-field/sqm-password-field.js +155 -4
  56. package/dist/collection/components/sqm-password-field/usePasswordField.js +1 -1
  57. package/dist/collection/components/sqm-popup-container/PopupContainer.stories.js +18 -0
  58. package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +1 -1
  59. package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +27 -0
  60. package/dist/collection/components/sqm-popup-container/usePopupContainer.js +1 -0
  61. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +1 -1
  62. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +207 -1
  63. package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +8 -2
  64. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +2 -2
  65. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +57 -1
  66. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -1
  67. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +61 -6
  68. package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +1 -1
  69. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +26 -0
  70. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +1 -1
  71. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +3 -3
  72. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +104 -1
  73. package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +6 -5
  74. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +1 -1
  75. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +157 -1
  76. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
  77. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +157 -1
  78. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +3 -1
  79. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +4 -4
  80. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +262 -1
  81. package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +12 -3
  82. package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +6 -0
  83. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +7 -7
  84. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +150 -5
  85. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +7 -2
  86. package/dist/collection/components/sqm-share-button/sqm-share-button.js +52 -0
  87. package/dist/collection/components/sqm-share-button/useShareButton.js +11 -11
  88. package/dist/collection/utilities.js +3 -0
  89. package/dist/esm/{ShadowViewAddon-53810b62.js → ShadowViewAddon-be3c7698.js} +36 -49
  90. package/dist/esm/{global-179b13db.js → global-0268f7bb.js} +3 -3
  91. package/dist/esm/{index.module-9469b28f.js → index.module-cbe33f2d.js} +6 -8
  92. package/dist/esm/loader.js +4 -4
  93. package/dist/esm/{luxon-f01e85fe.js → luxon-5ca0a018.js} +1 -1
  94. package/dist/esm/mint-components.js +4 -4
  95. package/dist/esm/{re-render-1048d024.js → re-render-4e10b5ac.js} +5 -5
  96. package/dist/esm/sqm-asset-card.entry.js +2 -2
  97. package/dist/esm/sqm-big-stat_39.entry.js +172 -68
  98. package/dist/esm/sqm-close-button.entry.js +2 -2
  99. package/dist/esm/sqm-empty_5.entry.js +1 -1
  100. package/dist/esm/sqm-form-message.entry.js +1 -1
  101. package/dist/esm/sqm-graphql-client-provider.entry.js +6 -6
  102. package/dist/esm/sqm-header-logo.entry.js +1 -1
  103. package/dist/esm/sqm-instant-access-registration.entry.js +4 -4
  104. package/dist/esm/sqm-leaderboard-rank.entry.js +6 -6
  105. package/dist/esm/sqm-logout-current-user.entry.js +4 -4
  106. package/dist/esm/{sqm-navigation-sidebar-item-view-d2e0fdb1.js → sqm-navigation-sidebar-item-view-67fc08d3.js} +2 -2
  107. package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
  108. package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
  109. package/dist/esm/sqm-password-field.entry.js +44 -19
  110. package/dist/esm/sqm-popup-container.entry.js +13 -6
  111. package/dist/esm/{sqm-portal-email-verification-view-79ef6c2f.js → sqm-portal-email-verification-view-12fc1bd4.js} +3 -3
  112. package/dist/esm/sqm-portal-email-verification.entry.js +20 -9
  113. package/dist/esm/{sqm-portal-forgot-password-view-41afcace.js → sqm-portal-forgot-password-view-a764ad67.js} +1 -1
  114. package/dist/esm/sqm-portal-forgot-password.entry.js +19 -9
  115. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  116. package/dist/esm/{sqm-portal-profile-view-6068a0f8.js → sqm-portal-profile-view-87730d84.js} +4 -4
  117. package/dist/esm/sqm-portal-profile.entry.js +32 -12
  118. package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
  119. package/dist/esm/sqm-portal-registration-form.entry.js +40 -8
  120. package/dist/esm/{sqm-portal-reset-password-view-0df781f6.js → sqm-portal-reset-password-view-d3e726a9.js} +3 -3
  121. package/dist/esm/sqm-portal-reset-password.entry.js +73 -13
  122. package/dist/esm/{sqm-portal-verify-email-view-1db4fae6.js → sqm-portal-verify-email-view-283bf637.js} +7 -7
  123. package/dist/esm/sqm-portal-verify-email.entry.js +50 -15
  124. package/dist/esm/sqm-referral-table_11.entry.js +7 -7
  125. package/dist/esm/sqm-referred-registration.entry.js +4 -4
  126. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  127. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
  128. package/dist/esm/sqm-rewards-table_9.entry.js +11 -11
  129. package/dist/esm/sqm-stencilbook.entry.js +62 -55
  130. package/dist/esm/sqm-tab.entry.js +3 -3
  131. package/dist/esm/sqm-tabs.entry.js +5 -5
  132. package/dist/esm/sqm-text-span.entry.js +1 -1
  133. package/dist/esm/{stencil-hooks.module-14b87f98.js → stencil-hooks.module-9ad75b88.js} +1 -1
  134. package/dist/esm/{useChildElements-1338b131.js → useChildElements-f6672214.js} +3 -3
  135. package/dist/esm/{useInstantAccessRegistration-53c43a63.js → useInstantAccessRegistration-c9d75808.js} +4 -4
  136. package/dist/esm/{useReferralTable-ada01642.js → useReferralTable-16e5c27f.js} +10 -10
  137. package/dist/esm/{useRegistrationFormState-49dfc8e0.js → useRegistrationFormState-424e2af2.js} +3 -3
  138. package/dist/esm/utilities-a6f1de33.js +21 -0
  139. package/dist/esm-es5/ShadowViewAddon-be3c7698.js +1 -0
  140. package/dist/esm-es5/{global-179b13db.js → global-0268f7bb.js} +2 -2
  141. package/dist/esm-es5/index.module-cbe33f2d.js +1 -0
  142. package/dist/esm-es5/loader.js +1 -1
  143. package/dist/esm-es5/{luxon-f01e85fe.js → luxon-5ca0a018.js} +1 -1
  144. package/dist/esm-es5/mint-components.js +1 -1
  145. package/dist/esm-es5/{re-render-1048d024.js → re-render-4e10b5ac.js} +1 -1
  146. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  147. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  148. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  149. package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
  150. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  151. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  152. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  153. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  154. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  155. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  156. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-d2e0fdb1.js → sqm-navigation-sidebar-item-view-67fc08d3.js} +1 -1
  157. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  158. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  159. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  160. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  161. package/dist/esm-es5/{sqm-portal-email-verification-view-79ef6c2f.js → sqm-portal-email-verification-view-12fc1bd4.js} +1 -1
  162. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  163. package/dist/esm-es5/{sqm-portal-forgot-password-view-41afcace.js → sqm-portal-forgot-password-view-a764ad67.js} +1 -1
  164. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  165. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  166. package/dist/esm-es5/sqm-portal-profile-view-87730d84.js +1 -0
  167. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  168. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  169. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  170. package/dist/esm-es5/sqm-portal-reset-password-view-d3e726a9.js +1 -0
  171. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  172. package/dist/esm-es5/sqm-portal-verify-email-view-283bf637.js +1 -0
  173. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  174. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  175. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  176. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  177. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  178. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  179. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  180. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  181. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  182. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  183. package/dist/esm-es5/{stencil-hooks.module-14b87f98.js → stencil-hooks.module-9ad75b88.js} +1 -1
  184. package/dist/esm-es5/{useChildElements-1338b131.js → useChildElements-f6672214.js} +1 -1
  185. package/dist/esm-es5/{useInstantAccessRegistration-53c43a63.js → useInstantAccessRegistration-c9d75808.js} +1 -1
  186. package/dist/esm-es5/{useReferralTable-ada01642.js → useReferralTable-16e5c27f.js} +1 -1
  187. package/dist/esm-es5/useRegistrationFormState-424e2af2.js +1 -0
  188. package/dist/esm-es5/utilities-a6f1de33.js +1 -0
  189. package/dist/mint-components/mint-components.esm.js +1 -1
  190. package/dist/mint-components/mint-components.js +1 -1
  191. package/dist/mint-components/{p-583b1a0e.entry.js → p-048cb5a0.entry.js} +1 -1
  192. package/dist/mint-components/p-059b2db4.system.js +1 -0
  193. package/dist/mint-components/p-05d9a1c3.system.entry.js +1 -0
  194. package/dist/mint-components/p-0be7a34f.entry.js +187 -0
  195. package/dist/mint-components/p-0c3c573c.entry.js +1 -0
  196. package/dist/mint-components/{p-2b6c19e0.system.js → p-0e0bcf17.system.js} +1 -1
  197. package/dist/mint-components/p-0f48f5c4.entry.js +1 -0
  198. package/dist/mint-components/{p-330314f9.entry.js → p-11c2ddd5.entry.js} +1 -1
  199. package/dist/mint-components/p-126ef540.entry.js +1 -0
  200. package/dist/mint-components/p-158302b4.system.entry.js +1 -0
  201. package/dist/mint-components/p-16c4c0e6.system.entry.js +1 -0
  202. package/dist/mint-components/p-19078b96.system.entry.js +1 -0
  203. package/dist/mint-components/p-1be14c58.system.entry.js +1 -0
  204. package/dist/mint-components/{p-ee457000.system.js → p-21a152c9.system.js} +1 -1
  205. package/dist/mint-components/{p-fe721800.system.entry.js → p-25014681.system.entry.js} +1 -1
  206. package/dist/mint-components/p-2639d623.entry.js +33 -0
  207. package/dist/mint-components/p-29f83317.system.entry.js +1 -0
  208. package/dist/mint-components/p-2b03b921.entry.js +1 -0
  209. package/dist/mint-components/{p-c24079c2.js → p-2b3e1737.js} +1 -1
  210. package/dist/mint-components/{p-9ecfc085.system.js → p-2bd322a2.system.js} +1 -1
  211. package/dist/mint-components/p-2be08bc1.system.entry.js +1 -0
  212. package/dist/mint-components/{p-8ff83f3b.system.entry.js → p-2eacd22e.system.entry.js} +1 -1
  213. package/dist/mint-components/{p-8d767d9d.js → p-3056e5df.js} +1 -1
  214. package/dist/mint-components/p-349b9603.system.js +1 -0
  215. package/dist/mint-components/{p-6dac42fc.system.js → p-34b61e2c.system.js} +1 -1
  216. package/dist/mint-components/{p-d3f6b6b4.entry.js → p-3884e029.entry.js} +1 -1
  217. package/dist/mint-components/p-3a306a99.system.entry.js +1 -0
  218. package/dist/mint-components/{p-d576140e.js → p-4086ea93.js} +1 -1
  219. package/dist/mint-components/p-40dde690.js +1 -0
  220. package/dist/mint-components/p-4251a664.entry.js +13 -0
  221. package/dist/mint-components/{p-901f5b80.js → p-42c43cc2.js} +1 -1
  222. package/dist/mint-components/p-43b92142.system.entry.js +1 -0
  223. package/dist/mint-components/p-46ef82ed.js +1 -0
  224. package/dist/mint-components/p-4d9744bf.js +1 -0
  225. package/dist/mint-components/{p-3cc28285.system.js → p-4eb96878.system.js} +1 -1
  226. package/dist/mint-components/p-5097066c.entry.js +1 -0
  227. package/dist/mint-components/p-5cba80eb.entry.js +1 -0
  228. package/dist/mint-components/{p-55eb6616.system.js → p-5f084d62.system.js} +1 -1
  229. package/dist/mint-components/p-6dc5988e.entry.js +1 -0
  230. package/dist/mint-components/p-702db9d3.entry.js +1 -0
  231. package/dist/mint-components/{p-b668aa0b.system.entry.js → p-71f1256c.system.entry.js} +1 -1
  232. package/dist/mint-components/p-7487f23c.system.js +1 -0
  233. package/dist/mint-components/{p-5ae4911c.entry.js → p-78348fd6.entry.js} +2 -2
  234. package/dist/mint-components/p-7cdc3d59.system.entry.js +1 -0
  235. package/dist/mint-components/{p-ef3bcec4.system.entry.js → p-7dcd091c.system.entry.js} +1 -1
  236. package/dist/mint-components/p-7f950006.entry.js +13 -0
  237. package/dist/mint-components/{p-747912c5.system.entry.js → p-7f9953fc.system.entry.js} +1 -1
  238. package/dist/mint-components/p-8756e3ae.system.entry.js +1 -0
  239. package/dist/mint-components/p-8930ca8e.system.entry.js +1 -0
  240. package/dist/mint-components/p-8be37b05.system.entry.js +1 -0
  241. package/dist/mint-components/p-8f4bf5e3.system.js +1 -0
  242. package/dist/mint-components/{p-7e1af11d.entry.js → p-9522cf59.entry.js} +1 -1
  243. package/dist/mint-components/{p-9fc8505c.entry.js → p-995117b1.entry.js} +1 -1
  244. package/dist/mint-components/{p-5ddfa30d.entry.js → p-9a67f0b2.entry.js} +1 -1
  245. package/dist/mint-components/{p-68e5a4a6.system.entry.js → p-9bb762f8.system.entry.js} +1 -1
  246. package/dist/mint-components/p-9f0aca0e.system.js +1 -0
  247. package/dist/mint-components/p-9f472ce9.entry.js +9 -0
  248. package/dist/mint-components/p-aac1d82a.system.js +1 -0
  249. package/dist/mint-components/p-adb1f996.js +1 -0
  250. package/dist/mint-components/p-b2d41729.js +1 -0
  251. package/dist/mint-components/{p-540a24e6.system.entry.js → p-b4779d76.system.entry.js} +1 -1
  252. package/dist/mint-components/{p-71a4e272.entry.js → p-b6713eac.entry.js} +1 -1
  253. package/dist/mint-components/{p-f6456854.js → p-bc64b988.js} +1 -1
  254. package/dist/mint-components/p-bcc9f143.js +379 -0
  255. package/dist/mint-components/p-bcd04c27.js +1 -0
  256. package/dist/mint-components/{p-97e758fd.system.entry.js → p-c51de4f4.system.entry.js} +1 -1
  257. package/dist/mint-components/p-c58a09e4.js +1 -0
  258. package/dist/mint-components/{p-21a1d705.js → p-c9818f06.js} +1 -1
  259. package/dist/mint-components/p-ca6e1a47.system.js +1 -0
  260. package/dist/mint-components/{p-ee469a91.entry.js → p-cfcb517b.entry.js} +1 -1
  261. package/dist/mint-components/p-d0f2d5e3.system.entry.js +1 -0
  262. package/dist/mint-components/p-d2bd3b4b.system.entry.js +1 -0
  263. package/dist/mint-components/{p-9e9dcd9c.entry.js → p-d3c26e65.entry.js} +1 -1
  264. package/dist/mint-components/p-d4b174e1.system.js +1 -0
  265. package/dist/mint-components/p-d4f8aa26.entry.js +1 -0
  266. package/dist/mint-components/{p-a8f6d72c.system.entry.js → p-d86c3c45.system.entry.js} +1 -1
  267. package/dist/mint-components/p-d88ed63d.entry.js +1 -0
  268. package/dist/mint-components/{p-c8d74710.entry.js → p-da31e785.entry.js} +1 -1
  269. package/dist/mint-components/{p-16394ed3.system.entry.js → p-da8bdb5e.system.entry.js} +1 -1
  270. package/dist/mint-components/p-dc59a463.entry.js +1 -0
  271. package/dist/mint-components/{p-0bf5a9b8.system.entry.js → p-dce5e97a.system.entry.js} +1 -1
  272. package/dist/mint-components/{p-2d592364.system.entry.js → p-debd47d0.system.entry.js} +1 -1
  273. package/dist/mint-components/{p-f2260971.system.js → p-df15da1e.system.js} +1 -1
  274. package/dist/mint-components/{p-76cfebb1.system.js → p-df1af170.system.js} +1 -1
  275. package/dist/mint-components/p-e231860a.entry.js +1 -0
  276. package/dist/mint-components/p-e4b12586.system.entry.js +1 -0
  277. package/dist/mint-components/p-ea6a7135.js +1 -0
  278. package/dist/mint-components/p-ebccb162.js +1 -0
  279. package/dist/mint-components/{p-7fc020f4.entry.js → p-eccd2792.entry.js} +1 -1
  280. package/dist/mint-components/p-eea49084.entry.js +1 -0
  281. package/dist/mint-components/p-f11c9bb1.system.js +1 -0
  282. package/dist/mint-components/{p-6034522a.js → p-f6743fbe.js} +1 -1
  283. package/dist/mint-components/{p-a38baa99.system.entry.js → p-fa376627.system.entry.js} +1 -1
  284. package/dist/mint-components/{p-a223a8dc.entry.js → p-fabf03c8.entry.js} +1 -1
  285. package/dist/mint-components/{p-a87d66ac.system.entry.js → p-fc468ef7.system.entry.js} +1 -1
  286. package/dist/mint-components/p-fca0dc98.system.js +1 -0
  287. package/dist/mint-components/{p-e341e670.system.entry.js → p-fe276517.system.entry.js} +1 -1
  288. package/dist/types/components/sqm-edit-profile/sqm-edit-profile-view.d.ts +1 -0
  289. package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +12 -0
  290. package/dist/types/components/sqm-edit-profile/useEditProfile.d.ts +2 -11
  291. package/dist/types/components/sqm-password-field/passwordValidation.d.ts +1 -1
  292. package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +24 -0
  293. package/dist/types/components/sqm-popup-container/PopupContainer.stories.d.ts +5 -0
  294. package/dist/types/components/sqm-popup-container/sqm-popup-container-view.d.ts +1 -1
  295. package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +6 -0
  296. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -0
  297. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +6 -0
  298. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +32 -0
  299. package/dist/types/components/sqm-portal-change-password/usePortalChangePassword.d.ts +6 -0
  300. package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification-view.d.ts +1 -0
  301. package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +10 -0
  302. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -0
  303. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +10 -1
  304. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +5 -0
  305. package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +4 -3
  306. package/dist/types/components/sqm-portal-profile/sqm-portal-profile-view.d.ts +2 -0
  307. package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +17 -0
  308. package/dist/types/components/sqm-portal-profile/usePortalProfile.d.ts +2 -1
  309. package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +6 -0
  310. package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +24 -0
  311. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +6 -0
  312. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +24 -0
  313. package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password-view.d.ts +9 -0
  314. package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +42 -0
  315. package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +6 -0
  316. package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +24 -0
  317. package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +11 -2
  318. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +10 -0
  319. package/dist/types/components/sqm-share-button/useShareButton.d.ts +2 -0
  320. package/dist/types/components.d.ts +464 -2
  321. package/dist/types/utilities.d.ts +3 -0
  322. package/docs/docs.docx +0 -0
  323. package/docs/raisins.json +1 -1
  324. package/grapesjs/grapesjs.js +1 -1
  325. package/package.json +3 -3
  326. package/dist/esm-es5/ShadowViewAddon-53810b62.js +0 -1
  327. package/dist/esm-es5/index.module-9469b28f.js +0 -1
  328. package/dist/esm-es5/sqm-portal-profile-view-6068a0f8.js +0 -1
  329. package/dist/esm-es5/sqm-portal-reset-password-view-0df781f6.js +0 -1
  330. package/dist/esm-es5/sqm-portal-verify-email-view-1db4fae6.js +0 -1
  331. package/dist/esm-es5/useRegistrationFormState-49dfc8e0.js +0 -1
  332. package/dist/mint-components/p-0714bae2.entry.js +0 -33
  333. package/dist/mint-components/p-1437b793.system.js +0 -1
  334. package/dist/mint-components/p-1912f988.entry.js +0 -1
  335. package/dist/mint-components/p-19e46b11.entry.js +0 -1
  336. package/dist/mint-components/p-1c9d83b4.entry.js +0 -1
  337. package/dist/mint-components/p-228163a1.system.js +0 -1
  338. package/dist/mint-components/p-29e67994.entry.js +0 -9
  339. package/dist/mint-components/p-2aca0eae.js +0 -1
  340. package/dist/mint-components/p-2d39cf50.system.entry.js +0 -1
  341. package/dist/mint-components/p-3409e9a0.system.entry.js +0 -1
  342. package/dist/mint-components/p-39341b0c.entry.js +0 -187
  343. package/dist/mint-components/p-3b7c1be8.entry.js +0 -1
  344. package/dist/mint-components/p-42f1a044.system.entry.js +0 -1
  345. package/dist/mint-components/p-46be1518.system.js +0 -1
  346. package/dist/mint-components/p-509af914.system.entry.js +0 -1
  347. package/dist/mint-components/p-519bb212.js +0 -1
  348. package/dist/mint-components/p-56525896.system.js +0 -1
  349. package/dist/mint-components/p-571f6923.entry.js +0 -1
  350. package/dist/mint-components/p-58196113.system.entry.js +0 -1
  351. package/dist/mint-components/p-5b9195d7.system.entry.js +0 -1
  352. package/dist/mint-components/p-657659e8.entry.js +0 -13
  353. package/dist/mint-components/p-68db543e.system.entry.js +0 -1
  354. package/dist/mint-components/p-718cf151.js +0 -1
  355. package/dist/mint-components/p-75ddf3ca.js +0 -1
  356. package/dist/mint-components/p-76d4eb55.system.js +0 -1
  357. package/dist/mint-components/p-78066f92.entry.js +0 -13
  358. package/dist/mint-components/p-7862ab7d.entry.js +0 -1
  359. package/dist/mint-components/p-7ced669d.entry.js +0 -1
  360. package/dist/mint-components/p-82180848.js +0 -379
  361. package/dist/mint-components/p-8827fabe.system.entry.js +0 -1
  362. package/dist/mint-components/p-8d593b5e.system.entry.js +0 -1
  363. package/dist/mint-components/p-9551f888.system.entry.js +0 -1
  364. package/dist/mint-components/p-961998b6.system.entry.js +0 -1
  365. package/dist/mint-components/p-97b03f80.entry.js +0 -1
  366. package/dist/mint-components/p-9aa1bd46.system.js +0 -1
  367. package/dist/mint-components/p-a217deee.js +0 -1
  368. package/dist/mint-components/p-ae191f8c.js +0 -1
  369. package/dist/mint-components/p-af24b899.entry.js +0 -1
  370. package/dist/mint-components/p-ba42b92c.system.entry.js +0 -1
  371. package/dist/mint-components/p-bf0719b7.system.js +0 -1
  372. package/dist/mint-components/p-c3be93c7.system.entry.js +0 -1
  373. package/dist/mint-components/p-c5b61ade.system.js +0 -1
  374. package/dist/mint-components/p-cc391fac.js +0 -1
  375. package/dist/mint-components/p-d3de337c.system.entry.js +0 -1
  376. package/dist/mint-components/p-d9787e31.system.entry.js +0 -1
  377. package/dist/mint-components/p-e8f720b9.entry.js +0 -1
  378. package/dist/mint-components/p-efd129de.js +0 -1
  379. package/dist/mint-components/p-f7b7d395.system.js +0 -1
  380. package/dist/mint-components/p-f82bb604.entry.js +0 -1
  381. package/dist/mint-components/p-f9bfbfa2.entry.js +0 -1
  382. package/dist/mint-components/p-fe13762b.entry.js +0 -1
  383. package/dist/mint-components/p-ff3b0ece.system.entry.js +0 -1
  384. package/dist/types/global/android.d.ts +0 -7
  385. package/dist/types/global/demo.d.ts +0 -1
  386. package/dist/types/stories/features.d.ts +0 -4
  387. package/dist/types/stories/templates.d.ts +0 -4
@@ -1 +0,0 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-4f775e84.system.js"],(function(e){"use strict";var t,s,r,a,n;return{setters:[function(e){t=e.h},function(e){s=e.A;r=e.a},function(e){a=e.c},function(e){n=e.T}],execute:function(){e("P",l);var i={Wrapper:s,Column:r,ContinueButton:{width:"100%"}};var o="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var p=a(i);var c=p.toString();function l(e){var s=e.states,r=e.data,a=e.callbacks;if(s.verified){return t("div",{class:p.classes.Wrapper,part:"sqm-base"},t("style",{type:"text/css"},o,c),t(n,{type:"h3"},"Verify your email"),t("sqm-form-message",{exportparts:"success-icon"},t("div",{part:"successalert-text"},"Your email has been verified and you are being redirected. If you are not redirected, please click Continue.")),t("sl-button",{class:p.classes.ContinueButton,onClick:a.gotoNextPage,loading:s.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue"))}if(s.error||!r.oobCode){return t("div",{class:p.classes.Wrapper,part:"sqm-base"},t("style",{type:"text/css"},c),t(n,{type:"h3"},"Verify your email"),t("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},t("div",{part:"erroralert-text"},"The email verification code is invalid or has expired, please try again.")),t("sl-button",{class:p.classes.ContinueButton,onClick:a.failed,loading:s.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue"))}}}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-bf0719b7.system.js"],(function(e){"use strict";var t,r,i,n,a,o,s,c,u;return{setters:[function(e){t=e.r;r=e.h;i=e.c},function(e){n=e.f;a=e.m},function(e){o=e.U;s=e.f;c=e.p;u=e.i}],execute:function(){function f(e){var t=e.requireEmailVerification,r=e.redirectTo,i=e.redirectToUnverified;var a;var u=o();var f=!!(u===null||u===void 0?void 0:u.jwt);var d=(a=u===null||u===void 0?void 0:u.managedIdentity)===null||a===void 0?void 0:a.emailVerified;var l=s(),p=l.pathname,v=l.search;var h=new URLSearchParams;h.append("nextPage",""+p+v);n((function(){if(!f){return c.push({pathname:r,search:"?"+h.toString()})}if(t&&!d){return c.push({pathname:i||r,search:"?"+h.toString()})}}),[]);return!!u}var d=e("sqm_portal_protected_route",function(){function e(e){t(this,e);this.ignored=true;this.redirectTo="/";this.requireEmailVerification=false;this.redirectToUnverified="/emailVerification";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=u()?l():f(this);return r(i,{style:{display:e?"contents":"none"}},r("slot",null))};return e}());function l(e){return true}}}}));
@@ -1 +0,0 @@
1
- import{j as r,u as t}from"./p-901f5b80.js";import{x as o}from"./p-cc391fac.js";function s(){const s=o(),n=s.children.length?Array.from(s.children):[],[a,c]=r(n);let e;return t((()=>{e=new MutationObserver((()=>{const r=Array.from(s.children);c([...r])}))}),[]),t((()=>{if(e)return e.observe(s,{childList:!0}),()=>{e.disconnect()}}),[s]),a}export{s as u}
@@ -1 +0,0 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-4f775e84.system.js"],(function(e){"use strict";var s,t,r,a,o,n;return{setters:[function(e){s=e.h},function(e){t=e.A;r=e.a;a=e.b},function(e){o=e.c},function(e){n=e.T}],execute:function(){e("P",d);var l={Wrapper:t,Column:r,ButtonsContainer:a,Banner:{"&::part(erroralert-base)":{margin:"15px 0px"}},CodeError:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},CodeSuccess:{"&::part(successalert-base)":{"margin-bottom":"15px"}},ContinueButton:{width:"100%"}};var i="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var c=o(l);var p=c.toString();function d(e){var t=e.states,r=e.callbacks;if(t.reset){return s("div",{class:c.classes.Wrapper+" "+c.classes.Column},s("style",{type:"text/css"},p),s(n,{type:"h3"},t.content.resetPasswordHeader),s("sqm-form-message",{class:c.classes.CodeSuccess,exportparts:"success-icon"},s("div",{part:"successalert-text"},"Your password has been reset and you are being redirected. If you are not redirected, please click Continue.")),s("div",null,s("sl-button",{class:c.classes.ContinueButton,onClick:r.gotoNextPage,loading:t.loading,exportparts:"base: primarybutton-base",type:"primary"},t.content.continueButtonText)))}if(t.oobCodeValidating){return s("div",null)}if(!t.oobCodeValid){return s("div",{class:c.classes.Wrapper+" "+c.classes.Column},s("style",{type:"text/css"},p),s("sqm-form-message",{class:c.classes.CodeError,type:"error",exportparts:"erroralert-icon"},s("div",{part:"erroralert-text"},"The password reset code is invalid or has expired, please try again.")),s("div",null,s("sl-button",{class:c.classes.ContinueButton,onClick:r.failed,exportparts:"base: primarybutton-base",type:"primary"},t.content.continueButtonText)))}return s("div",{class:c.classes.Wrapper},s("style",{type:"text/css"},i,p),s(n,{type:"h2"},t.reset?t.content.passwordResetHeader:t.content.resetPasswordHeader),s("sl-form",{class:c.classes.Column,"onSl-submit":r.submit},e.states.error&&s("sqm-form-message",{type:"error",class:c.classes.Banner,exportparts:"erroralert-icon"},s("div",{part:"erroralert-text"},e.states.error)),!t.reset&&s("sqm-password-field",{fieldLabel:t.content.passwordFieldLabel,demoData:t.passwordDemoData}),!t.reset&&t.confirmPassword&&s("sl-input",{exportparts:"label: input-label",type:"password",name:"/confirmPassword",label:t.content.confirmPasswordFieldLabel,disabled:t.loading,required:true}),s("div",{class:c.classes.ButtonsContainer},s("sl-button",{class:c.classes.ContinueButton,submit:true,loading:t.loading,exportparts:"base: primarybutton-base",type:"primary"},t.reset?t.content.continueButtonText:t.content.resetPasswordButtonText))))}}}}));
@@ -1 +0,0 @@
1
- import{r as o,h as a}from"./p-64c3217a.js";import{f as i,m as e}from"./p-901f5b80.js";import{U as s,k as t,p as d,i as r}from"./p-cc391fac.js";import{c as l}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-cef45012.js";import{s as n}from"./p-9ec99ced.js";import"./p-5d0c9424.js";import{P as c}from"./p-75ddf3ca.js";const v=class{constructor(a){o(this,a),this.ignored=!0,this.nextPage="/",this.failedPage="/",e(this)}disconnectedCallback(){}render(){const{states:o,data:e,callbacks:v}=r()?l({states:{error:"",loading:!1,verified:!0},data:{oobCode:"code"},callbacks:{failed:()=>{console.log("failed")},gotoNextPage:()=>{}}},this.demoData||{},{arrayMerge:(o,a)=>a}):function({nextPage:o,failedPage:a}){var e,r,l,c,v,f,u,m;const p=s(),[g,{loading:b,data:h,errors:j}]=t(),P=new URLSearchParams(d.location.search),k=P.get("oobCode"),x=P.get("nextPage"),C=void 0===h&&void 0===j&&!!k,w=!(!(null===(e=null==p?void 0:p.managedIdentity)||void 0===e?void 0:e.emailVerified)&&!(null==h?void 0:h.verifyManagedIdentityEmail.success)),y=()=>{P.delete("nextPage");const a=n(x||o);d.push(a.href)};return i((()=>{w&&setTimeout((()=>{y()}),3e3),!h&&(async()=>{var o;if(k){const a=await g({oobCode:k});if((a instanceof Error||!a.verifyManagedIdentityEmail.success)&&!(null===(o=null==p?void 0:p.managedIdentity)||void 0===o?void 0:o.emailVerified))return;setTimeout((()=>{y()}),3e3)}})()}),[w]),{states:{loading:b||C,error:(null===(v=null===(c=null===(l=null===(r=null==j?void 0:j.response)||void 0===r?void 0:r.errors)||void 0===l?void 0:l[0])||void 0===c?void 0:c.extensions)||void 0===v?void 0:v.message)||(null===(m=null===(u=null===(f=null==j?void 0:j.response)||void 0===f?void 0:f.errors)||void 0===u?void 0:u[0])||void 0===m?void 0:m.message)||(null==j?void 0:j.message)&&"Network request failed.",verified:w},data:{oobCode:k},callbacks:{failed:()=>d.push({pathname:a,search:P.toString()&&"?"+P.toString()}),gotoNextPage:y}}}(this);return a(c,{states:o,data:e,callbacks:v})}};export{v as sqm_portal_verify_email}
@@ -1 +0,0 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-bf0719b7.system.js","./p-c5b61ade.system.js"],(function(t){"use strict";var n,e,s,r,c;return{setters:[function(t){n=t.h;e=t.c;s=t.r},function(t){r=t.m},function(){},function(t){c=t.a}],execute:function(){var u=function(t,s){return n(e,null,s)};var i=t("sqm_tab",function(){function t(t){s(this,t);r(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){c([this.header]);return n(u,null,n("slot",null))};return t}())}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-bf0719b7.system.js","./p-c06048c9.system.js"],(function(t){"use strict";var n,e,s,c,r,i,o,u;return{setters:[function(t){n=t.r;e=t.h},function(t){s=t.m;c=t.j;r=t.f},function(t){i=t.f;o=t.N},function(t){u=t.N}],execute:function(){var f=t("sqm_navigation_sidebar",function(){function t(t){n(this,t);this.ignored=true;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=a();return e(u,Object.assign({},t),e("slot",null))};return t}());function a(){var t=i();var n=o();var e=c(false),s=e[0],u=e[1];r((function(){u(false)}),[t.pathname,n]);function f(t){u(t.target.checked)}return{checked:s,onClick:f}}}}}));
@@ -1,13 +0,0 @@
1
- import{h as i,r as o}from"./p-64c3217a.js";import{k as l,f as r,m as s}from"./p-901f5b80.js";import{d as t,R as a,v as e,p as n,u as d,i as v}from"./p-cc391fac.js";import{j as u}from"./p-e7e129ac.js";import{c as m}from"./p-c1086930.js";import{A as c,a as p,H as f,b as h,E as b}from"./p-02be1a88.js";import{c as g}from"./p-cef45012.js";import{T as y}from"./p-5d0c9424.js";import{u as w}from"./p-718cf151.js";import{A as E}from"./p-121cdc60.js";const k=g({Wrapper:{...c,"max-width":"600px"},Column:p,HostBlock:f,":host":{margin:"0 auto",width:"100%"},ButtonsContainer:h,ErrorStyle:b}),j=k.toString();function x(o){var l,r,s,t,a,e,n,d,v,u,m,c,p,f,h,b,g,w,E,x;const{states:P,refs:q,callbacks:M,content:F}=o;return P.error&&window.scrollTo({top:0,left:0,behavior:"smooth"}),i("div",{class:k.classes.Wrapper,part:"sqm-base"},i("style",{type:"text/css"},"\nsqm-portal-register {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n:host{\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n",j),i(y,{type:"h3"},F.pageLabel),i("sl-form",{class:k.classes.Column,"onSl-submit":M.submit,ref:i=>q.formRef.current=i,novalidate:!0},(null===(l=P.registrationFormState)||void 0===l?void 0:l.disabled)?i("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},i("div",{part:"erroralert-text"},P.registrationFormState.disabledMessage)):P.error&&i("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},i("div",{part:"erroralert-text"},o.states.error)),F.formData,!P.hideInputs&&i("sl-input",Object.assign({exportparts:"label: input-label",type:"email",name:"/email",label:F.emailLabel||"Email",disabled:P.loading||(null===(r=P.registrationFormState)||void 0===r?void 0:r.disabled),required:!0,validationError:({value:i})=>i?i.includes("@")?void 0:F.invalidEmailErrorMessage:F.requiredFieldErrorMessage},(null===(t=null===(s=P.registrationFormState)||void 0===s?void 0:s.initialData)||void 0===t?void 0:t.email)?{value:null===(e=null===(a=P.registrationFormState)||void 0===a?void 0:a.initialData)||void 0===e?void 0:e.email}:{},(null===(d=null===(n=P.registrationFormState)||void 0===n?void 0:n.validationErrors)||void 0===d?void 0:d.email)?{class:k.classes.ErrorStyle,helpText:(null===(u=null===(v=P.registrationFormState)||void 0===v?void 0:v.validationErrors)||void 0===u?void 0:u.email)||F.requiredFieldErrorMessage}:[])),!P.hideInputs&&i("sqm-password-field",{fieldLabel:F.passwordLabel,"disable-validation":!P.enablePasswordValidation}),F.passwordField,!P.hideInputs&&P.confirmPassword&&i("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/confirmPassword",label:F.confirmPasswordLabel,disabled:P.loading||(null===(m=P.registrationFormState)||void 0===m?void 0:m.disabled),required:!0},(null===(p=null===(c=P.registrationFormState)||void 0===c?void 0:c.initialData)||void 0===p?void 0:p.confirmPassword)?{value:null===(h=null===(f=P.registrationFormState)||void 0===f?void 0:f.initialData)||void 0===h?void 0:h.confirmPassword}:{},(null===(g=null===(b=P.registrationFormState)||void 0===b?void 0:b.validationErrors)||void 0===g?void 0:g.confirmPassword)?{class:k.classes.ErrorStyle,helpText:(null===(E=null===(w=P.registrationFormState)||void 0===w?void 0:w.validationErrors)||void 0===E?void 0:E.confirmPassword)||F.requiredFieldErrorMessage}:[])),F.terms,i("div",{class:k.classes.ButtonsContainer},i("sl-button",{submit:!0,loading:P.loading,disabled:null===(x=P.registrationFormState)||void 0===x?void 0:x.disabled,exportparts:"base: primarybutton-base",type:"primary"},F.submitLabel||"Register"),F.secondaryButton)))}const P=t.gql`
2
- query RegistrationFormQuery($key: String!) {
3
- form(key: $key) {
4
- key
5
- type
6
- initialData {
7
- initialData
8
- isEnabled
9
- isEnabledErrorMessage
10
- }
11
- }
12
- }
13
- `,q=class{constructor(i){o(this,i),this.ignored=!0,this.nextPage="/",this.redirectPath="/verifyEmail",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Register",this.loginLabel="Sign in",this.confirmPasswordLabel="Confirm Password",this.confirmPassword=!1,this.disablePasswordValidation=!1,this.hideInputs=!1,this.pageLabel="Register",this.loginPath="/login",this.requiredFieldErrorMessage="Cannot be empty",this.networkErrorMessage="Network request failed.",this.passwordMismatchErrorMessage="Passwords do not match.",this.invalidEmailErrorMessage="Must be a valid email address",this.formDisabledErrorMessage="The registration form is currently disabled.",s(this)}disconnectedCallback(){}render(){const{states:o,callbacks:s,refs:t}=v()?m({states:{error:"",loading:!1,confirmPassword:this.confirmPassword,hideInputs:this.hideInputs||!1,customPasswordField:!1,loginPath:"/login"},callbacks:{submit:async()=>{console.log("submit")},inputFunction:()=>{}},refs:{formRef:{}}},this.demoData||{},{arrayMerge:(i,o)=>o}):function(i){var o,s,t,v,m,c,p,f,h;const b=l(null),{registrationFormState:g,setRegistrationFormState:y}=w({}),[k,{loading:j,errors:x,formError:q}]=a(),M=e(P,{key:i.formKey}),F=j||M.loading;r((()=>{var o,l,r;const s=null===(o=null==M?void 0:M.data)||void 0===o?void 0:o.form.initialData.initialData,t=!1===(null===(l=null==M?void 0:M.data)||void 0===l?void 0:l.form.initialData.isEnabled),a=(null===(r=null==M?void 0:M.data)||void 0===r?void 0:r.form.initialData.isEnabledErrorMessage)||i.formDisabledErrorMessage;y({loading:F,disabled:t,disabledMessage:a,initialData:s})}),[null===(o=null==M?void 0:M.data)||void 0===o?void 0:o.form.initialData]),r((()=>{if(!b.current)return;const i=b.current;return i.addEventListener("sl-input",R),()=>{i.removeEventListener("sl-input",R)}}),[b.current]);const R=d((i=>{var o,l;if("tel"!==(null===(l=null===(o=i.target)||void 0===o?void 0:o.type)||void 0===l?void 0:l.toLowerCase()))return;const r=new E("US");i.target.value=r.input(i.target.value)}),[]);let S="";return S=!1===(null===(s=null==M?void 0:M.data)||void 0===s?void 0:s.form.initialData.isEnabled)?(null===(t=null==M?void 0:M.data)||void 0===t?void 0:t.form.initialData.isEnabledErrorMessage)||i.formDisabledErrorMessage:(null===(v=null==x?void 0:x.response)||void 0===v?void 0:v.error)||(null==x?void 0:x.message)&&!(null===(m=null==x?void 0:x.response)||void 0===m?void 0:m.errors.length)?i.networkErrorMessage:q||(null===(h=null===(f=null===(p=null===(c=null==M?void 0:M.errors)||void 0===c?void 0:c.response)||void 0===p?void 0:p.errors)||void 0===f?void 0:f[0])||void 0===h?void 0:h.message)||(null==g?void 0:g.error),{states:{loading:j||M.loading,error:S,registrationFormState:g,confirmPassword:i.confirmPassword,hideInputs:i.hideInputs,loginPath:i.loginPath,enablePasswordValidation:!i.disablePasswordValidation},callbacks:{submit:async o=>{var l,r,s,t,a,e,d,v,m,c,p,f,h,b,w,E,j,x;let P=o.target.getFormControls(),q={},M={};if(null==P||P.forEach((o=>{if(!o.name)return;const l=o.name,r=o.value;if(u.set(q,l,r),o.required&&!r&&u.set(M,l,i.requiredFieldErrorMessage),"function"==typeof o.validationError){const i=(0,o.validationError)({control:o,key:l,value:r});i&&u.set(M,l,i)}})),(i.confirmPassword||q.confirmPassword)&&q.password!==q.confirmPassword&&(M={...M,confirmPassword:i.passwordMismatchErrorMessage}),Object.keys(M).length)return void y({...g,loading:!1,error:"",validationErrors:M});y({...g,loading:!0,error:"",validationErrors:{}});const{email:F,password:R}=q;delete q.email,delete q.password,delete q.confirmPassword;const S={key:i.formKey,formData:{email:F,password:R,redirectPath:i.redirectPath,...q}};try{const o=await k(S);if(o instanceof Error)throw o;y({...g,loading:!1,error:"",validationErrors:{}});const u=null===(l=o.submitForm)||void 0===l?void 0:l.results.find((i=>{var o;return"identity"===(null===(o=null==i?void 0:i.formHandler)||void 0===o?void 0:o.namespace)}));u&&u.result.results.length&&u.result.results[0].success&&u.result.results[0].data.token?n.push(i.nextPage):1===(null===(r=o.submitForm)||void 0===r?void 0:r.results.length)&&1===(null===(e=null===(a=null===(t=null===(s=o.submitForm)||void 0===s?void 0:s.results[0])||void 0===t?void 0:t.result)||void 0===a?void 0:a.results)||void 0===e?void 0:e.length)&&!1===(null===(p=null===(c=null===(m=null===(v=null===(d=o.submitForm)||void 0===d?void 0:d.results[0])||void 0===v?void 0:v.result)||void 0===m?void 0:m.results)||void 0===c?void 0:c[0])||void 0===p?void 0:p.success)&&(null===(j=null===(E=null===(w=null===(b=null===(h=null===(f=o.submitForm)||void 0===f?void 0:f.results[0])||void 0===h?void 0:h.result)||void 0===b?void 0:b.results)||void 0===w?void 0:w[0])||void 0===E?void 0:E.message)||void 0===j?void 0:j.startsWith("Blocked email"))&&y({...g,loading:!1,error:"",validationErrors:{email:i.invalidEmailErrorMessage}})}catch(o){(null===(x=null==o?void 0:o.message)||void 0===x?void 0:x.includes("is not a valid email address"))?y({...g,loading:!1,error:"",validationErrors:{email:i.invalidEmailErrorMessage}}):y({...g,loading:!1,error:i.networkErrorMessage,validationErrors:{}})}},inputFunction:R},refs:{formRef:b}}}(this);const c={formData:i("slot",{name:"formData"}),secondaryButton:i("slot",{name:"secondaryButton"},i("sl-button",{type:"text",disabled:o.loading,onClick:()=>n.push(o.loginPath)},this.loginLabel)),terms:i("slot",{name:"terms"}),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel,networkErrorMessage:this.networkErrorMessage,passwordMismatchErrorMessage:this.passwordMismatchErrorMessage,invalidEmailErrorMessage:this.invalidEmailErrorMessage,formDisabledErrorMessage:this.formDisabledErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage};return i(x,{states:o,callbacks:s,content:c,refs:t})}};export{q as sqm_portal_registration_form}
@@ -1 +0,0 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-9ecfc085.system.js","./p-bf0719b7.system.js","./p-4bd679a7.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-4f775e84.system.js","./p-76d4eb55.system.js"],(function(e){"use strict";var t,n,i,r,a,s,o,u,l,d,m,f,c;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.j;r=e.f;a=e.m},function(){},function(e){s=e.d;o=e.U;u=e.v;l=e.E;d=e.i},function(e){m=e.c},function(){},function(e){f=e.g},function(){},function(e){c=e.P}],execute:function(){var v=s.gql(__makeTemplateObject(["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"],["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"]));var g=s.gql(__makeTemplateObject(["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"],["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"]));var _={country:"",email:"",firstName:"",lastName:"",errors:{},error:""};function y(e){var t=o();var n=i(false),a=n[0],s=n[1];var d=i(undefined),m=d[0],f=d[1];var c=i(_),y=c[0],N=c[1];var h=u(v,{},!(t===null||t===void 0?void 0:t.jwt));var p=l(g),b=p[0],x=p[1];r((function(){if(x===null||x===void 0?void 0:x.loading)return;if(x===null||x===void 0?void 0:x.errors){N((function(e){var t,n,i;return __assign(__assign({},e),{error:(i=(n=(t=x===null||x===void 0?void 0:x.errors)===null||t===void 0?void 0:t.response)===null||n===void 0?void 0:n.errors)===null||i===void 0?void 0:i[0].message})}))}else{f((function(e){var t;return __assign(__assign({},e),(t=x===null||x===void 0?void 0:x.data)===null||t===void 0?void 0:t.upsertUser)}));if(x===null||x===void 0?void 0:x.data)s(true)}}),[x===null||x===void 0?void 0:x.loading]);r((function(){var e,t;f((function(e){var t;return __assign(__assign({},e),(t=h===null||h===void 0?void 0:h.data)===null||t===void 0?void 0:t.viewer)}));N(__assign(__assign(__assign({},_),(e=h.data)===null||e===void 0?void 0:e.viewer),(t=x.data)===null||t===void 0?void 0:t.upsertUser))}),[h===null||h===void 0?void 0:h.data]);r((function(){var e,t;if((e=x===null||x===void 0?void 0:x.errors)===null||e===void 0?void 0:e.message){N(__assign(__assign({},(t=h.data)===null||t===void 0?void 0:t.viewer),{error:"Network request failed."}))}}),[x===null||x===void 0?void 0:x.errors]);var j=function(){s(false);if(y.firstName&&y.lastName){b({id:t===null||t===void 0?void 0:t.id,accountId:t===null||t===void 0?void 0:t.accountId,firstName:y.firstName,lastName:y.lastName});N((function(e){return __assign(__assign({},e),{errors:{},error:""})}));return}var e={};if(!y.firstName){e["firstName"]={message:"Field can't be empty"}}if(!y.lastName){e["lastName"]={message:"Field can't be empty"}}if(e!=={}){N((function(e){return __assign(__assign({},e),{error:"Please correct the errors below to update your profile."})}))}N((function(t){return __assign(__assign({},t),{errors:e})}))};return{states:{success:a,loading:(h===null||h===void 0?void 0:h.loading)||x.loading,submitDisabled:false,showCountry:!e.hideCountry,formState:y,user:m,text:{firstnametext:e.firstnametext,lastnametext:e.lastnametext,countrytext:e.countrytext,emailtext:e.emailtext,editProfileHeader:e.editProfileHeader,editProfileSubHeader:e.editProfileSubHeader,submitChangeButtonText:e.submitChangeButtonText}},callbacks:{onSubmit:j,onChange:function(e){var t=e.target,n=t.name,i=t.value;N((function(e){var t;return __assign(__assign({},e),(t={},t[n]=i,t))}))}}}}var N=e("sqm_portal_profile",function(){function e(e){t(this,e);this.ignored=true;this.firstnametext="First Name";this.lastnametext="Last Name";this.emailtext="Email";this.countrytext="Country";this.editProfileHeader="Edit your profile";this.editProfileSubHeader="Personal Information";this.submitChangeButtonText="Submit Changes";this.hideCountry=false;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=d()?h(f(this)):y(f(this));return n(c,Object.assign({},e))};return e}());function h(e){return m({states:{success:false,loading:false,submitDisabled:false,showCountry:!e.hideCountry,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"CA"},text:{firstnametext:e.firstnametext,lastnametext:e.lastnametext,emailtext:e.emailtext,countrytext:e.countrytext,editProfileHeader:e.editProfileHeader,editProfileSubHeader:e.editProfileSubHeader,submitChangeButtonText:e.submitChangeButtonText},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:function(e){return console.log(e)},onChange:function(e){return console.log(e)}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1 +0,0 @@
1
- import{y as t}from"./p-901f5b80.js";import{x as r}from"./p-cc391fac.js";const o="sq:registration-form-state";function s(o){const s=r(),[a,e]=t(s,"sq:registration-form-state",o);return{registrationFormState:a,setRegistrationFormState:e}}export{o as R,s as u}
@@ -1 +0,0 @@
1
- import{h as e}from"./p-64c3217a.js";import{A as t,a as r}from"./p-02be1a88.js";import{c as s}from"./p-cef45012.js";import{T as a}from"./p-5d0c9424.js";const o=s({Wrapper:t,Column:r,ContinueButton:{width:"100%"}}),i=o.toString();function n(t){const{states:r,data:s,callbacks:n}=t;return r.verified?e("div",{class:o.classes.Wrapper,part:"sqm-base"},e("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",i),e(a,{type:"h3"},"Verify your email"),e("sqm-form-message",{exportparts:"success-icon"},e("div",{part:"successalert-text"},"Your email has been verified and you are being redirected. If you are not redirected, please click Continue.")),e("sl-button",{class:o.classes.ContinueButton,onClick:n.gotoNextPage,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue")):r.error||!s.oobCode?e("div",{class:o.classes.Wrapper,part:"sqm-base"},e("style",{type:"text/css"},i),e(a,{type:"h3"},"Verify your email"),e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},"The email verification code is invalid or has expired, please try again.")),e("sl-button",{class:o.classes.ContinueButton,onClick:n.failed,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue")):void 0}export{n as P}
@@ -1 +0,0 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-9ecfc085.system.js","./p-1a673057.system.js","./p-4f775e84.system.js"],(function(e){"use strict";var t,s,a,l;return{setters:[function(e){t=e.h},function(e){s=e.i},function(e){a=e.c},function(e){l=e.T}],execute:function(){e("P",i);function i(e){var i,r,n,o,d;var u=e.states,m=e.callbacks;var c=u.text,p=u.formState;var v=p.errors,b=p.error;var x={Container:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-xxx-large)",padding:"var(--sl-spacing-xxx-large)"},FormStyle:{width:"100%",minWidth:"700px","& >*:not(:last-child)":{"margin-bottom":"32px"},"@media screen and (max-width: 1100px)":{minWidth:"100%"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"32px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"32px"}},NameInputStyle:{width:"50%","@media screen and (max-width: 860px)":{width:"100%","margin-right":"0"}},NameInputContainer:{display:"flex",gap:"32px",width:"100%","@media screen and (max-width: 860px)":{flexDirection:"column"}}};var f=a(x);var g=f.toString();var y=((i=u.user)===null||i===void 0?void 0:i.countryCode)?s.formatDisplayName((r=u.user)===null||r===void 0?void 0:r.countryCode,{type:"region"}):"";return t("div",{class:f.classes.Container,part:"sqm-base"},t("style",{type:"text/css"},g),t(l,Object.assign({},{type:"h1"}),c.editProfileHeader),t(l,Object.assign({},{type:"h2"}),c.editProfileSubHeader),t("form",{class:f.classes.FormStyle,onSubmit:m.onSubmit},u.success&&t("sqm-form-message",{class:f.classes.Success,exportparts:"success-icon"},t("div",{part:"successalert-text"},"Your profile has been successfully updated.")),b&&t("sqm-form-message",{class:f.classes.Error,type:"error",exportparts:"erroralert-icon"},t("div",{part:"erroralert-text"},b)),t("div",{class:f.classes.NameInputContainer},t("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label",value:(n=u.user)===null||n===void 0?void 0:n.firstName,onInput:m.onChange,label:c.firstnametext,disabled:u.loading},(v===null||v===void 0?void 0:v.firstName)&&(v===null||v===void 0?void 0:v.firstName.status)!=="valid"?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{id:"firstName",name:"firstName",error:(v===null||v===void 0?void 0:v.firstName)&&(v===null||v===void 0?void 0:v.firstName.status)!=="valid"?v===null||v===void 0?void 0:v.firstName.message:undefined})),t("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label",value:(o=u.user)===null||o===void 0?void 0:o.lastName,onInput:m.onChange,label:c.lastnametext,disabled:u.loading,id:"lastName",name:"lastName"},(v===null||v===void 0?void 0:v.lastName)&&(v===null||v===void 0?void 0:v.lastName.status)!=="valid"?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{error:(v===null||v===void 0?void 0:v.lastName)&&(v===null||v===void 0?void 0:v.lastName.status)!=="valid"?v===null||v===void 0?void 0:v.lastName.message:undefined}))),t("sl-input",{label:c.emailtext,value:(d=u.user)===null||d===void 0?void 0:d.email,exportparts:"label: input-label",disabled:true}),u.showCountry&&t("sl-input",{label:c.countrytext,value:y,exportparts:"label: input-label",disabled:true}),t("sl-button",{type:"primary",loading:u.loading,disabled:u.submitDisabled,onClick:function(e){m.onSubmit(e)},submit:true},c.submitChangeButtonText)))}}}}));
@@ -1,13 +0,0 @@
1
- import{r,h as a}from"./p-64c3217a.js";import{m as t}from"./p-901f5b80.js";import{i as e}from"./p-f6456854.js";import{d as o,N as n,U as s,v as i,i as l}from"./p-cc391fac.js";import{c as d}from"./p-c1086930.js";import{L as c}from"./p-0a898ab1.js";const p=o.gql`
2
- query ($type: String!, $filter: UserLeaderboardFilterInput) {
3
- viewer {
4
- ... on User {
5
- leaderboardRank(type: $type, filter: $filter) {
6
- rowNumber
7
- rank
8
- denseRank
9
- }
10
- }
11
- }
12
- }
13
- `,u=class{constructor(a){r(this,a),this.rankText="You are currently in {rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th} } place!",t(this)}disconnectedCallback(){}render(){const r=l()?function(r){const a=e.formatMessage({id:"rankText",defaultMessage:r.rankText},{rank:1})||"1st";return d({data:{rank:a}},r.demoData||{},{arrayMerge:(r,a)=>a})}(this):function(r){var a,t,o,l;const d=n(),c=null!==(a=r.programId)&&void 0!==a?a:d,u=s(),f=c?{type:r.leaderboardType,filter:{programId_eq:c}}:{type:r.leaderboardType,filter:{}};r.interval&&(f.filter.interval=r.interval);const{data:m}=i(p,f,!(null==u?void 0:u.jwt));return{data:{rank:(null===(t=null==m?void 0:m.viewer)||void 0===t?void 0:t.leaderboardRank)?e.formatMessage({id:"rankText",defaultMessage:r.rankText},{rank:null===(l=null===(o=null==m?void 0:m.viewer)||void 0===o?void 0:o.leaderboardRank)||void 0===l?void 0:l[r.rankType]}):r.unrankedText||"unranked"}}}(this);return a(c,Object.assign({},r))}};u.style="p,.P{font-size:var(--sl-font-size-small);color:var(--sl-color-gray-800);margin-top:0px}p.Subtitle,.P.Subtitle{color:var(--sl-color-gray-500);margin:0px}";export{u as sqm_leaderboard_rank}
@@ -1 +0,0 @@
1
- import{r as s,h as t,c as a}from"./p-64c3217a.js";import{n as c,f as o,m as r}from"./p-901f5b80.js";import{H as n,b as i,L as e,a as l}from"./p-cc391fac.js";const p=class{constructor(t){s(this,t),this.ignored=!0,r(this)}disconnectedCallback(){}render(){return async function({domain:s}){const t=n(),a=s,r=e(),p=i(a,r,t),[,m]=c(l,p);o((()=>{m(p)}),[p])}(this),t(a,{style:{display:"contents"}},t("slot",null))}};export{p as sqm_graphql_client_provider}
@@ -1 +0,0 @@
1
- import{r as s,h as o}from"./p-64c3217a.js";import{j as e,f as t,m as a}from"./p-901f5b80.js";import{j as r,_ as i,p as d,i as n}from"./p-cc391fac.js";import{j as l}from"./p-e7e129ac.js";import{c}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-cef45012.js";import{s as m}from"./p-9ec99ced.js";import"./p-5d0c9424.js";import{P as p}from"./p-efd129de.js";const u=class{constructor(o){s(this,o),this.ignored=!0,this.nextPage="/",this.failedPage="/",this.confirmPassword=!1,this.resetPasswordHeader="Reset your password",this.passwordResetHeader="Password reset",this.resetPasswordButtonText="Reset Password",this.continueButtonText="Continue",this.confirmPasswordFieldLabel="Confirm Password",this.passwordFieldLabel="New Password",a(this)}disconnectedCallback(){}render(){const{states:s,callbacks:a}=n()?c({states:{error:"",loading:!1,reset:!1,confirmPassword:(u=this).confirmPassword,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:u.passwordResetHeader,resetPasswordHeader:u.resetPasswordHeader,continueButtonText:u.continueButtonText,resetPasswordButtonText:u.resetPasswordButtonText,confirmPasswordFieldLabel:u.confirmPasswordFieldLabel,passwordFieldLabel:u.passwordFieldLabel}},callbacks:{submit:async()=>{console.log("submit")},failed:()=>{},gotoNextPage:()=>{}}},u.demoData||{},{arrayMerge:(s,o)=>o}):function(s){var o,a,n,c,p,u,f,w,v,b;const[h,P]=e(!1),[j,g]=e(""),[C,x]=r(),[k,y]=i(),L=new URLSearchParams(d.location.search),N=L.get("oobCode");L.delete("oobCode");const R=L.get("nextPage");t((()=>{(async()=>{await C({oobCode:N})instanceof Error&&g("Network request failed.")})()}),[]);const T=()=>{L.delete("nextPage");const o=m(R||s.nextPage);d.push(o.href)};return{states:{loading:y.loading,reset:h,confirmPassword:s.confirmPassword,error:(null===(p=null===(c=null===(n=null===(a=null===(o=y.errors)||void 0===o?void 0:o.response)||void 0===a?void 0:a.errors)||void 0===n?void 0:n[0])||void 0===c?void 0:c.extensions)||void 0===p?void 0:p.message)||(null===(v=null===(w=null===(f=null===(u=y.errors)||void 0===u?void 0:u.response)||void 0===f?void 0:f.errors)||void 0===w?void 0:w[0])||void 0===v?void 0:v.message)||j,oobCodeValidating:x.loading,oobCodeValid:null===(b=x.data)||void 0===b?void 0:b.verifyManagedIdentityPasswordResetCode.success,content:{passwordResetHeader:s.passwordResetHeader,resetPasswordHeader:s.resetPasswordHeader,continueButtonText:s.continueButtonText,resetPasswordButtonText:s.resetPasswordButtonText,confirmPasswordFieldLabel:s.confirmPasswordFieldLabel,passwordFieldLabel:s.passwordFieldLabel}},callbacks:{submit:async s=>{g("");let o=s.detail.formData;null==o||o.forEach(((s,e)=>{l.set(o,e,s)}));const e={oobCode:N,password:o.password};if(o.password!==o.confirmPassword)return void g("Passwords do not match.");const t=await k(e);if(t instanceof Error)return g("Network request failed.");t.resetManagedIdentityPassword&&(P(!0),setTimeout((()=>{T()}),5e3))},failed:()=>{d.push({pathname:s.failedPage,search:L.toString()&&"?"+L.toString()})},gotoNextPage:T}}}(this);var u;return o(p,{states:s,callbacks:a})}};export{u as sqm_portal_reset_password}