@saasquatch/mint-components 2.0.8 → 2.0.9-0

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 (304) hide show
  1. package/dist/cjs/{ShadowViewAddon-ae3a32c3.js → ShadowViewAddon-31199cba.js} +230 -112
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/{sqm-big-stat_47.cjs.entry.js → sqm-big-stat_49.cjs.entry.js} +552 -13
  5. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +1 -2
  6. package/dist/cjs/sqm-stencilbook.cjs.entry.js +108 -64
  7. package/dist/{esm/AsYouType-46f67d0d.js → cjs/usePortalRegistrationForm-8ed0d753.js} +215 -1
  8. package/dist/collection/components/sqm-portal-google-login/GoogleLoginForm.stories.js +37 -0
  9. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +2 -1
  10. package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -1
  11. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +0 -25
  12. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
  13. package/dist/esm/{ShadowViewAddon-78a1c35c.js → ShadowViewAddon-49bebd13.js} +234 -118
  14. package/dist/esm/{data-a581119a.js → data-f2f77358.js} +2 -2
  15. package/dist/esm/{global-58a69018.js → global-5d501632.js} +1 -1
  16. package/dist/esm/{index.module-c9811a48.js → index.module-234e8f5e.js} +1 -1
  17. package/dist/esm/loader.js +3 -3
  18. package/dist/esm/mint-components.js +3 -3
  19. package/dist/esm/{re-render-7e22fb0d.js → re-render-b56bc163.js} +1 -1
  20. package/dist/esm/sqm-banking-info-form_10.entry.js +8 -8
  21. package/dist/esm/{sqm-big-stat_47.entry.js → sqm-big-stat_49.entry.js} +559 -22
  22. package/dist/esm/sqm-close-button.entry.js +1 -1
  23. package/dist/esm/sqm-code-verification.entry.js +3 -3
  24. package/dist/esm/sqm-context-router.entry.js +1 -1
  25. package/dist/esm/sqm-email-verification.entry.js +3 -3
  26. package/dist/esm/sqm-empty_4.entry.js +2 -2
  27. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  28. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  29. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  30. package/dist/esm/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-e461c8d6.js} +1 -1
  31. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  32. package/dist/esm/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-9cf60eea.js} +1 -1
  33. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  34. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  35. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  36. package/dist/esm/{sqm-navigation-sidebar-item-view-5a452423.js → sqm-navigation-sidebar-item-view-3d1b3be4.js} +1 -1
  37. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  38. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  39. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  40. package/dist/esm/sqm-password-field.entry.js +2 -2
  41. package/dist/esm/sqm-popup-container.entry.js +1 -1
  42. package/dist/esm/{sqm-portal-email-verification-view-5fb1a99e.js → sqm-portal-email-verification-view-ec6d9b7e.js} +1 -1
  43. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  44. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  45. package/dist/esm/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-36eae0a3.js} +1 -1
  46. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  47. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  48. package/dist/esm/sqm-portal-registration-form.entry.js +3 -4
  49. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  50. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  51. package/dist/esm/sqm-qr-code.entry.js +2 -2
  52. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  53. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  54. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  55. package/dist/esm/sqm-stencilbook.entry.js +116 -72
  56. package/dist/esm/sqm-tab.entry.js +2 -2
  57. package/dist/esm/sqm-tabs.entry.js +3 -3
  58. package/dist/esm/{sqm-user-info-form-view-9a3048d9.js → sqm-user-info-form-view-0a8999d0.js} +2 -2
  59. package/dist/esm/sqm-widget-verification-controller.entry.js +1 -1
  60. package/dist/esm/sqm-widget-verification.entry.js +1 -1
  61. package/dist/esm/{useChildElements-3d872cef.js → useChildElements-daf489b1.js} +1 -1
  62. package/dist/esm/{useInstantAccessRegistration-dda1f52b.js → useInstantAccessRegistration-89e7dfc8.js} +2 -2
  63. package/dist/esm/{useLeadFormState-8d4b2620.js → useLeadFormState-d2f1c87d.js} +2 -2
  64. package/dist/esm/{usePayoutStatus-7404eb9d.js → usePayoutStatus-6be47a64.js} +1 -1
  65. package/dist/{cjs/AsYouType-6788393a.js → esm/usePortalRegistrationForm-fb06b600.js} +211 -2
  66. package/dist/esm/{useReferralCodes-c2e809cf.js → useReferralCodes-75d67509.js} +1 -1
  67. package/dist/esm/{useReferralTable-909ccb28.js → useReferralTable-8e0acee0.js} +3 -3
  68. package/dist/esm/{useRegistrationFormState-24d594ea.js → useRegistrationFormState-a9e156e6.js} +1 -1
  69. package/dist/esm/{useVerificationEmail-55e0e98f.js → useVerificationEmail-66b40965.js} +1 -1
  70. package/dist/esm/{utilities-72c07b09.js → utilities-e6f8716e.js} +1 -1
  71. package/dist/esm-es5/ShadowViewAddon-49bebd13.js +1 -0
  72. package/dist/esm-es5/{data-a581119a.js → data-f2f77358.js} +1 -1
  73. package/dist/esm-es5/{global-58a69018.js → global-5d501632.js} +1 -1
  74. package/dist/esm-es5/{index.module-c9811a48.js → index.module-234e8f5e.js} +1 -1
  75. package/dist/esm-es5/loader.js +1 -1
  76. package/dist/esm-es5/mint-components.js +1 -1
  77. package/dist/esm-es5/{re-render-7e22fb0d.js → re-render-b56bc163.js} +1 -1
  78. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  79. package/dist/esm-es5/sqm-big-stat_49.entry.js +1 -0
  80. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  81. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  82. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  83. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  84. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  85. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  86. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  87. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  88. package/dist/esm-es5/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-e461c8d6.js} +1 -1
  89. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  90. package/dist/esm-es5/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-9cf60eea.js} +1 -1
  91. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  92. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  93. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  94. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-5a452423.js → sqm-navigation-sidebar-item-view-3d1b3be4.js} +1 -1
  95. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  96. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  97. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  98. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  99. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  100. package/dist/esm-es5/{sqm-portal-email-verification-view-5fb1a99e.js → sqm-portal-email-verification-view-ec6d9b7e.js} +1 -1
  101. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  102. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  103. package/dist/esm-es5/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-36eae0a3.js} +1 -1
  104. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  105. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  106. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  107. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  108. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  109. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  110. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  111. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  112. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  113. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  114. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  115. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  116. package/dist/esm-es5/{sqm-user-info-form-view-9a3048d9.js → sqm-user-info-form-view-0a8999d0.js} +1 -1
  117. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  118. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  119. package/dist/esm-es5/{useChildElements-3d872cef.js → useChildElements-daf489b1.js} +1 -1
  120. package/dist/esm-es5/{useInstantAccessRegistration-dda1f52b.js → useInstantAccessRegistration-89e7dfc8.js} +1 -1
  121. package/dist/esm-es5/{useLeadFormState-8d4b2620.js → useLeadFormState-d2f1c87d.js} +1 -1
  122. package/dist/esm-es5/{usePayoutStatus-7404eb9d.js → usePayoutStatus-6be47a64.js} +1 -1
  123. package/dist/esm-es5/usePortalRegistrationForm-fb06b600.js +1 -0
  124. package/dist/esm-es5/{useReferralCodes-c2e809cf.js → useReferralCodes-75d67509.js} +1 -1
  125. package/dist/esm-es5/{useReferralTable-909ccb28.js → useReferralTable-8e0acee0.js} +1 -1
  126. package/dist/esm-es5/{useRegistrationFormState-24d594ea.js → useRegistrationFormState-a9e156e6.js} +1 -1
  127. package/dist/esm-es5/{useVerificationEmail-55e0e98f.js → useVerificationEmail-66b40965.js} +1 -1
  128. package/dist/esm-es5/{utilities-72c07b09.js → utilities-e6f8716e.js} +1 -1
  129. package/dist/mint-components/mint-components.esm.js +1 -1
  130. package/dist/mint-components/mint-components.js +1 -1
  131. package/dist/mint-components/{p-b00e8365.entry.js → p-01aa5c0d.entry.js} +1 -1
  132. package/dist/mint-components/{p-26a7051d.system.entry.js → p-04603078.system.entry.js} +1 -1
  133. package/dist/mint-components/{p-171310d9.system.js → p-08c49143.system.js} +1 -1
  134. package/dist/mint-components/{p-6076dbaf.entry.js → p-0b6b03fa.entry.js} +1 -1
  135. package/dist/mint-components/{p-1215518e.system.js → p-0ba04831.system.js} +1 -1
  136. package/dist/mint-components/{p-12e6cea7.entry.js → p-0bd7de3e.entry.js} +2 -2
  137. package/dist/mint-components/{p-988f236f.js → p-0e1f3ce2.js} +1 -1
  138. package/dist/mint-components/{p-49400aab.js → p-10ad4cec.js} +2 -2
  139. package/dist/mint-components/{p-9eba8408.js → p-177a4691.js} +1 -1
  140. package/dist/mint-components/p-1830bbfb.js +1 -0
  141. package/dist/mint-components/{p-5b7a896e.system.entry.js → p-234d0680.system.entry.js} +1 -1
  142. package/dist/mint-components/{p-a7e35f51.system.js → p-23c58c4f.system.js} +2 -2
  143. package/dist/mint-components/{p-17a0f310.system.js → p-23d089ee.system.js} +1 -1
  144. package/dist/mint-components/{p-1aa9136c.js → p-24e20ee2.js} +1 -1
  145. package/dist/mint-components/p-259285a8.system.entry.js +1 -0
  146. package/dist/mint-components/{p-40c33b6a.system.entry.js → p-26796f69.system.entry.js} +1 -1
  147. package/dist/mint-components/p-26fdb210.js +1 -0
  148. package/dist/mint-components/{p-6c82d60c.system.js → p-286aa5b9.system.js} +1 -1
  149. package/dist/mint-components/{p-9c79ab08.js → p-2ce4c7a3.js} +2 -2
  150. package/dist/mint-components/{p-4cc72a4e.system.js → p-2dcb0db6.system.js} +1 -1
  151. package/dist/mint-components/{p-c30ad421.js → p-323c6d02.js} +1 -1
  152. package/dist/mint-components/{p-720f03e2.system.js → p-33e1a29e.system.js} +1 -1
  153. package/dist/mint-components/{p-ba79655c.system.js → p-342921b9.system.js} +1 -1
  154. package/dist/mint-components/{p-a32afaaa.entry.js → p-3825831b.entry.js} +1 -1
  155. package/dist/mint-components/{p-2700136f.system.entry.js → p-38ed3cbd.system.entry.js} +1 -1
  156. package/dist/mint-components/{p-c95a437e.entry.js → p-3d02278d.entry.js} +1 -1
  157. package/dist/mint-components/{p-0c024cf0.system.entry.js → p-3d12a14b.system.entry.js} +1 -1
  158. package/dist/mint-components/{p-f5256738.system.entry.js → p-3ed269bf.system.entry.js} +1 -1
  159. package/dist/mint-components/{p-6a5df328.js → p-3fede0f7.js} +1 -1
  160. package/dist/mint-components/{p-625ca62f.entry.js → p-3ff0f231.entry.js} +1 -1
  161. package/dist/mint-components/{p-e1422b78.entry.js → p-4363a896.entry.js} +1 -1
  162. package/dist/mint-components/{p-f3613921.system.entry.js → p-476a8091.system.entry.js} +1 -1
  163. package/dist/mint-components/{p-7780cac1.system.entry.js → p-50eaba5b.system.entry.js} +1 -1
  164. package/dist/mint-components/{p-d09d3b8f.system.js → p-51e5a7da.system.js} +1 -1
  165. package/dist/mint-components/p-52398c8e.system.entry.js +1 -0
  166. package/dist/mint-components/{p-2ea3eea9.system.entry.js → p-527c0244.system.entry.js} +1 -1
  167. package/dist/mint-components/{p-72b914b9.system.entry.js → p-536a5aff.system.entry.js} +1 -1
  168. package/dist/mint-components/p-5784be79.system.entry.js +1 -0
  169. package/dist/mint-components/{p-e3b4e06a.system.entry.js → p-5af01051.system.entry.js} +1 -1
  170. package/dist/mint-components/{p-3b46fae5.entry.js → p-5d17b387.entry.js} +1 -1
  171. package/dist/mint-components/{p-d9780ae9.entry.js → p-5de55368.entry.js} +1 -1
  172. package/dist/mint-components/{p-78c754de.system.entry.js → p-612091c6.system.entry.js} +1 -1
  173. package/dist/mint-components/{p-c6e8086f.system.entry.js → p-62d018f0.system.entry.js} +1 -1
  174. package/dist/mint-components/{p-dc5bca55.entry.js → p-636a841f.entry.js} +1 -1
  175. package/dist/mint-components/{p-829cb9ed.system.entry.js → p-63a928e0.system.entry.js} +1 -1
  176. package/dist/mint-components/{p-f7e49c12.entry.js → p-65f79e43.entry.js} +1 -1
  177. package/dist/mint-components/{p-9d46f87f.system.entry.js → p-6a0440ed.system.entry.js} +1 -1
  178. package/dist/mint-components/{p-9ba07029.system.entry.js → p-702f3adb.system.entry.js} +1 -1
  179. package/dist/mint-components/{p-d399b343.system.entry.js → p-72321b06.system.entry.js} +1 -1
  180. package/dist/mint-components/p-72d6c425.system.js +1 -0
  181. package/dist/mint-components/{p-8afb47c5.system.entry.js → p-73aeefed.system.entry.js} +1 -1
  182. package/dist/mint-components/{p-0ec54f97.js → p-747479dc.js} +1 -1
  183. package/dist/mint-components/{p-101f0c41.entry.js → p-78fc0c3c.entry.js} +1 -1
  184. package/dist/mint-components/{p-71af93e3.js → p-7ab26f3d.js} +1 -1
  185. package/dist/mint-components/{p-0087ad39.system.js → p-825b39e0.system.js} +1 -1
  186. package/dist/mint-components/{p-8618e8f6.system.js → p-828d27ac.system.js} +1 -1
  187. package/dist/mint-components/{p-8d9fa981.system.js → p-844aaef2.system.js} +1 -1
  188. package/dist/mint-components/p-84911f08.system.js +1 -0
  189. package/dist/mint-components/{p-9491f5fb.system.entry.js → p-8752bcd1.system.entry.js} +1 -1
  190. package/dist/mint-components/{p-867b2baf.system.js → p-8901a533.system.js} +1 -1
  191. package/dist/mint-components/{p-5fbe6356.system.js → p-8bf8afb9.system.js} +1 -1
  192. package/dist/mint-components/{p-ac86903a.system.entry.js → p-8dda2a7f.system.entry.js} +1 -1
  193. package/dist/mint-components/{p-43ad51bc.entry.js → p-930f37bd.entry.js} +1 -1
  194. package/dist/mint-components/p-964b09f2.js +1 -0
  195. package/dist/mint-components/p-96749142.entry.js +273 -0
  196. package/dist/mint-components/{p-e174b704.system.js → p-96b16a48.system.js} +1 -1
  197. package/dist/mint-components/{p-ff0e1564.system.js → p-98e0a022.system.js} +1 -1
  198. package/dist/mint-components/{p-bf044217.js → p-9953648f.js} +1 -1
  199. package/dist/mint-components/p-9ad42a61.entry.js +1 -0
  200. package/dist/mint-components/{p-e19f0908.entry.js → p-9c4cac09.entry.js} +2 -2
  201. package/dist/mint-components/{p-f3c2074b.system.entry.js → p-9c80871f.system.entry.js} +1 -1
  202. package/dist/mint-components/{p-e8bda98a.system.entry.js → p-9d19a0f7.system.entry.js} +1 -1
  203. package/dist/mint-components/{p-8931d05e.entry.js → p-9da60671.entry.js} +1 -1
  204. package/dist/mint-components/p-9ef4172c.entry.js +1 -0
  205. package/dist/mint-components/p-a6e177d8.system.entry.js +1 -0
  206. package/dist/mint-components/{p-027c0b10.js → p-a82c8b60.js} +1 -1
  207. package/dist/mint-components/p-ab38b332.system.js +1 -0
  208. package/dist/mint-components/{p-58c79873.entry.js → p-ad550231.entry.js} +1 -1
  209. package/dist/mint-components/p-af123d2b.system.js +1 -0
  210. package/dist/mint-components/p-b08373f5.entry.js +9 -0
  211. package/dist/mint-components/{p-bb5d153f.system.js → p-b5559e34.system.js} +1 -1
  212. package/dist/mint-components/{p-dcc50d90.entry.js → p-bb476395.entry.js} +1 -1
  213. package/dist/mint-components/{p-bcac83f0.system.js → p-c09d2b35.system.js} +1 -1
  214. package/dist/mint-components/{p-deecffd0.system.entry.js → p-c16d9c80.system.entry.js} +1 -1
  215. package/dist/mint-components/p-c4e08253.js +13 -0
  216. package/dist/mint-components/{p-fcf8bdbc.system.entry.js → p-c7f34690.system.entry.js} +1 -1
  217. package/dist/mint-components/{p-29398c98.entry.js → p-c7f385d3.entry.js} +1 -1
  218. package/dist/mint-components/{p-ee92a728.system.entry.js → p-c8f2c3b8.system.entry.js} +1 -1
  219. package/dist/mint-components/{p-f6eae77c.js → p-cbeab288.js} +1 -1
  220. package/dist/mint-components/{p-a4e8eb33.entry.js → p-cbf3a928.entry.js} +1 -1
  221. package/dist/mint-components/{p-a974c549.js → p-cd3ba2b4.js} +1 -1
  222. package/dist/mint-components/p-d15947d0.js +448 -0
  223. package/dist/mint-components/{p-011c0990.system.entry.js → p-d170e29a.system.entry.js} +1 -1
  224. package/dist/mint-components/{p-7e323f2c.entry.js → p-d3f86ec6.entry.js} +1 -1
  225. package/dist/mint-components/p-d49de8ea.entry.js +11 -0
  226. package/dist/mint-components/{p-29ba2eaa.entry.js → p-d9f01878.entry.js} +1 -1
  227. package/dist/mint-components/{p-386ec00c.entry.js → p-de0566e1.entry.js} +1 -1
  228. package/dist/mint-components/{p-f5fff87e.js → p-e08b7435.js} +1 -1
  229. package/dist/mint-components/{p-36a1fa33.system.entry.js → p-e1a08323.system.entry.js} +1 -1
  230. package/dist/mint-components/{p-60ec0961.system.entry.js → p-e1a7d141.system.entry.js} +1 -1
  231. package/dist/mint-components/{p-a8c86cd8.system.entry.js → p-eacd3c8f.system.entry.js} +1 -1
  232. package/dist/mint-components/p-ebde83fc.entry.js +1 -0
  233. package/dist/mint-components/{p-621f3e30.entry.js → p-ec9027cf.entry.js} +1 -1
  234. package/dist/mint-components/{p-af69ee79.system.entry.js → p-ed7ab864.system.entry.js} +1 -1
  235. package/dist/mint-components/{p-088f082f.js → p-eff405e5.js} +1 -1
  236. package/dist/mint-components/{p-ee3a7577.entry.js → p-f08dd2a8.entry.js} +1 -1
  237. package/dist/mint-components/{p-0b9b1b36.system.entry.js → p-f237f96d.system.entry.js} +1 -1
  238. package/dist/mint-components/{p-ad3ebf4d.entry.js → p-f776cd83.entry.js} +1 -1
  239. package/dist/mint-components/p-f84706aa.entry.js +13 -0
  240. package/dist/mint-components/p-f862be0b.entry.js +1 -0
  241. package/dist/mint-components/{p-8de73da9.js → p-fb8927aa.js} +1 -1
  242. package/dist/mint-components/{p-30278955.entry.js → p-fc7d85c7.entry.js} +1 -1
  243. package/dist/mint-components/{p-75b8fd75.entry.js → p-fe14d2af.entry.js} +1 -1
  244. package/dist/types/components/sqm-portal-google-login/GoogleLoginForm.stories.d.ts +7 -0
  245. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -4
  246. package/dist/types/components.d.ts +0 -8
  247. package/docs/docs.docx +0 -0
  248. package/docs/raisins.json +1 -1
  249. package/grapesjs/grapesjs.js +1 -1
  250. package/package.json +1 -1
  251. package/dist/cjs/sqm-base-registration-form-view-69a4b615.js +0 -74
  252. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +0 -130
  253. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +0 -381
  254. package/dist/cjs/sqm-portal-login-view-bb50304c.js +0 -58
  255. package/dist/cjs/usePortalLogin-1c022d8d.js +0 -74
  256. package/dist/cjs/usePortalRegistrationForm-75b647fe.js +0 -215
  257. package/dist/esm/sqm-base-registration-form-view-9e97d8b4.js +0 -72
  258. package/dist/esm/sqm-portal-google-login.entry.js +0 -126
  259. package/dist/esm/sqm-portal-google-registration-form.entry.js +0 -377
  260. package/dist/esm/sqm-portal-login-view-7670cd86.js +0 -56
  261. package/dist/esm/usePortalLogin-f95bbc67.js +0 -72
  262. package/dist/esm/usePortalRegistrationForm-1eb3cd72.js +0 -213
  263. package/dist/esm-es5/AsYouType-46f67d0d.js +0 -1
  264. package/dist/esm-es5/ShadowViewAddon-78a1c35c.js +0 -1
  265. package/dist/esm-es5/sqm-base-registration-form-view-9e97d8b4.js +0 -1
  266. package/dist/esm-es5/sqm-big-stat_47.entry.js +0 -1
  267. package/dist/esm-es5/sqm-portal-google-login.entry.js +0 -1
  268. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +0 -1
  269. package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +0 -1
  270. package/dist/esm-es5/usePortalLogin-f95bbc67.js +0 -1
  271. package/dist/esm-es5/usePortalRegistrationForm-1eb3cd72.js +0 -1
  272. package/dist/mint-components/p-121cdc60.js +0 -1
  273. package/dist/mint-components/p-125a894f.js +0 -1
  274. package/dist/mint-components/p-1b79b186.entry.js +0 -11
  275. package/dist/mint-components/p-1cd0e1e9.system.js +0 -1
  276. package/dist/mint-components/p-20c40fdf.system.js +0 -1
  277. package/dist/mint-components/p-240bec23.js +0 -1
  278. package/dist/mint-components/p-28e23d75.system.entry.js +0 -1
  279. package/dist/mint-components/p-40752a0f.entry.js +0 -1
  280. package/dist/mint-components/p-44fc6029.js +0 -1
  281. package/dist/mint-components/p-513f5d80.js +0 -1
  282. package/dist/mint-components/p-51a6a779.js +0 -1
  283. package/dist/mint-components/p-537a3894.system.js +0 -1
  284. package/dist/mint-components/p-6559d0b2.entry.js +0 -273
  285. package/dist/mint-components/p-6a0ddee0.entry.js +0 -1
  286. package/dist/mint-components/p-74a39425.system.entry.js +0 -1
  287. package/dist/mint-components/p-80569911.system.js +0 -1
  288. package/dist/mint-components/p-92a54b0c.entry.js +0 -1
  289. package/dist/mint-components/p-947bacd1.system.js +0 -1
  290. package/dist/mint-components/p-95b6e903.entry.js +0 -1
  291. package/dist/mint-components/p-976ee669.js +0 -1
  292. package/dist/mint-components/p-97dc6863.js +0 -13
  293. package/dist/mint-components/p-9d362d44.system.js +0 -1
  294. package/dist/mint-components/p-a470e203.entry.js +0 -13
  295. package/dist/mint-components/p-b3510ca0.system.entry.js +0 -1
  296. package/dist/mint-components/p-bd093069.system.entry.js +0 -1
  297. package/dist/mint-components/p-cc8ca3ff.system.entry.js +0 -1
  298. package/dist/mint-components/p-d08bcd88.entry.js +0 -1
  299. package/dist/mint-components/p-d69c0a32.system.entry.js +0 -1
  300. package/dist/mint-components/p-d88d8ffe.entry.js +0 -1
  301. package/dist/mint-components/p-e115d0a2.entry.js +0 -9
  302. package/dist/mint-components/p-e3ee8c37.system.js +0 -1
  303. package/dist/mint-components/p-ee83de0e.js +0 -448
  304. package/dist/mint-components/p-f5820d03.system.js +0 -1
@@ -22,12 +22,11 @@ const emailRegistrationView = require('./email-registration-view-ace50780.js');
22
22
  const useRegistrationFormState = require('./useRegistrationFormState-bbee6e7b.js');
23
23
  const useInstantAccessRegistration = require('./useInstantAccessRegistration-08bcb487.js');
24
24
  const useLeadFormState = require('./useLeadFormState-91999606.js');
25
- const sqmPortalLoginView = require('./sqm-portal-login-view-bb50304c.js');
26
- const usePortalLogin = require('./usePortalLogin-1c022d8d.js');
27
- const AsYouType = require('./AsYouType-6788393a.js');
28
25
  const utilities = require('./utilities-9a0c5e91.js');
26
+ const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
27
+ const usePortalRegistrationForm = require('./usePortalRegistrationForm-8ed0d753.js');
29
28
  const ErrorView = require('./ErrorView-3f91e5ab.js');
30
- const ShadowViewAddon = require('./ShadowViewAddon-ae3a32c3.js');
29
+ const ShadowViewAddon = require('./ShadowViewAddon-31199cba.js');
31
30
  require('./sqm-portal-container-view-07e4343f.js');
32
31
  const data = require('./data-24028727.js');
33
32
  const extractProps = require('./extractProps-e9c55ba8.js');
@@ -2114,7 +2113,7 @@ function useLeadForm(props) {
2114
2113
  const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
2115
2114
  if (name !== "tel")
2116
2115
  return;
2117
- const asYouType = new AsYouType.AsYouType("US");
2116
+ const asYouType = new usePortalRegistrationForm.AsYouType("US");
2118
2117
  e.target.value = asYouType.input(e.target.value);
2119
2118
  }, []);
2120
2119
  function resetForm() {
@@ -4028,7 +4027,73 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
4028
4027
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
4029
4028
  }
4030
4029
 
4031
- const PortalLogin = class {
4030
+ function usePortalLogin(props) {
4031
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
4032
+ const [request, { loading, errors, data }] = index_module.je();
4033
+ const [loginWithGoogle, { loading: gLoading, errors: gErrors }] = index_module.hn();
4034
+ const [error, setError] = domContextHooks_module.useState("");
4035
+ const urlParams = new URLSearchParams(index_module.jn.location.search);
4036
+ const nextPageOverride = urlParams.get("nextPage");
4037
+ const googleSubmit = async (e) => {
4038
+ var _a, _b, _c, _d;
4039
+ if (!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.credential))
4040
+ return;
4041
+ const result = await loginWithGoogle({ idToken: e.detail.credential });
4042
+ if (result instanceof Error) {
4043
+ if ((result === null || result === void 0 ? void 0 : result.message) || ((_b = result === null || result === void 0 ? void 0 : result["response"]) === null || _b === void 0 ? void 0 : _b["error"]))
4044
+ if ((_c = result === null || result === void 0 ? void 0 : result["response"]) === null || _c === void 0 ? void 0 : _c["errors"].some((error) => { var _a; return ((_a = error === null || error === void 0 ? void 0 : error["extensions"]) === null || _a === void 0 ? void 0 : _a["message"]) === "Invalid Credentials."; })) {
4045
+ setError(props.googleUserNotRegisteredError);
4046
+ }
4047
+ else {
4048
+ setError(props.networkErrorMessage);
4049
+ }
4050
+ return;
4051
+ }
4052
+ if ((_d = result.authenticateManagedIdentityWithGoogle) === null || _d === void 0 ? void 0 : _d.token) {
4053
+ urlParams.delete("nextPage");
4054
+ const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
4055
+ index_module.jn.push(url.href);
4056
+ }
4057
+ };
4058
+ const submit = async (event) => {
4059
+ var _a, _b;
4060
+ setError("");
4061
+ let formData = event.detail.formData;
4062
+ formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
4063
+ jsonpointer.jsonpointer.set(formData, key, value);
4064
+ });
4065
+ const variables = { email: formData.email, password: formData.password };
4066
+ const result = await request(variables);
4067
+ if (result instanceof Error) {
4068
+ 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"]))
4069
+ setError(props.networkErrorMessage);
4070
+ return;
4071
+ }
4072
+ if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
4073
+ urlParams.delete("nextPage");
4074
+ const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
4075
+ index_module.jn.push(url.href);
4076
+ }
4077
+ };
4078
+ 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) ||
4079
+ error;
4080
+ const googleErrorMessage = ((_l = (_k = (_j = (_h = gErrors === null || gErrors === void 0 ? void 0 : gErrors.response) === null || _h === void 0 ? void 0 : _h.errors) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.extensions) === null || _l === void 0 ? void 0 : _l.message) || ((_p = (_o = (_m = gErrors === null || gErrors === void 0 ? void 0 : gErrors.response) === null || _m === void 0 ? void 0 : _m.errors) === null || _o === void 0 ? void 0 : _o[0]) === null || _p === void 0 ? void 0 : _p.message) ||
4081
+ error;
4082
+ return {
4083
+ states: {
4084
+ loading: loading || gLoading,
4085
+ error: errorMessage || googleErrorMessage,
4086
+ registerPath: props.registerPath,
4087
+ forgotPasswordPath: props.forgotPasswordPath,
4088
+ },
4089
+ callbacks: {
4090
+ googleSubmit,
4091
+ submit,
4092
+ },
4093
+ };
4094
+ }
4095
+
4096
+ const PortalGoogleLogin = class {
4032
4097
  constructor(hostRef) {
4033
4098
  index.registerInstance(this, hostRef);
4034
4099
  this.ignored = true;
@@ -4077,10 +4142,15 @@ const PortalLogin = class {
4077
4142
  */
4078
4143
  this.pageLabel = "Sign in to your account";
4079
4144
  /**
4080
- * Displayed when the login fails due to a network error. The participant can try refreshing the page.
4081
4145
  * @uiName Network error message
4146
+ * Displayed when the login fails due to a network error. The participant can try refreshing the page.
4082
4147
  */
4083
4148
  this.networkErrorMessage = "An error occurred while logging you in. Please refresh the page and try again.";
4149
+ /**
4150
+ * @uiName Google account error message
4151
+ * Displayed when user tries to sign in with Google account but has not registered.
4152
+ */
4153
+ this.googleUserNotRegisteredError = "Your Google account has not registered on our platform. Please complete the registration process with your Google account.";
4084
4154
  /**
4085
4155
  * @uiName Register CTA
4086
4156
  */
@@ -4091,7 +4161,474 @@ const PortalLogin = class {
4091
4161
  render() {
4092
4162
  const { states, callbacks } = index_module.isDemo()
4093
4163
  ? useLoginDemo(this)
4094
- : usePortalLogin.usePortalLogin(this);
4164
+ : usePortalLogin(this);
4165
+ const styles = {
4166
+ RegisterButton: {
4167
+ "&::part(label)": {
4168
+ padding: "0",
4169
+ },
4170
+ },
4171
+ };
4172
+ const sheet = JSS.createStyleSheet(styles);
4173
+ const styleString = sheet.toString();
4174
+ const content = {
4175
+ forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.jn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
4176
+ googleButton: (index.h("sqm-google-sign-in", { onInitComplete: callbacks.googleSubmit })),
4177
+ secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("style", null, styleString), index.h("span", null, this.registerCTA, " ", index.h("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => index_module.jn.push(states.registerPath), className: sheet.classes.RegisterButton }, this.registerLabel)))),
4178
+ emailLabel: this.emailLabel,
4179
+ passwordLabel: this.passwordLabel,
4180
+ submitLabel: this.submitLabel,
4181
+ pageLabel: this.pageLabel,
4182
+ };
4183
+ return (index.h(ShadowViewAddon.PortalLoginView, { states: states, callbacks: callbacks, content: content }));
4184
+ }
4185
+ };
4186
+ function useLoginDemo(props) {
4187
+ var _a, _b;
4188
+ return cjs.cjs({
4189
+ states: {
4190
+ error: ((_b = (_a = props.demoData) === null || _a === void 0 ? void 0 : _a.states) === null || _b === void 0 ? void 0 : _b.error) || "",
4191
+ loading: false,
4192
+ forgotPasswordPath: "/forgotPassword",
4193
+ registerPath: "/register",
4194
+ showLoginForm: "manual",
4195
+ },
4196
+ callbacks: {
4197
+ googleSubmit: async () => {
4198
+ console.log("google submit");
4199
+ },
4200
+ submit: async (_event) => {
4201
+ console.log("submit");
4202
+ },
4203
+ },
4204
+ content: {
4205
+ googleButton: null,
4206
+ },
4207
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
4208
+ }
4209
+
4210
+ class InvalidTokenError extends Error {
4211
+ }
4212
+ InvalidTokenError.prototype.name = "InvalidTokenError";
4213
+ function b64DecodeUnicode(str) {
4214
+ return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {
4215
+ let code = p.charCodeAt(0).toString(16).toUpperCase();
4216
+ if (code.length < 2) {
4217
+ code = "0" + code;
4218
+ }
4219
+ return "%" + code;
4220
+ }));
4221
+ }
4222
+ function base64UrlDecode(str) {
4223
+ let output = str.replace(/-/g, "+").replace(/_/g, "/");
4224
+ switch (output.length % 4) {
4225
+ case 0:
4226
+ break;
4227
+ case 2:
4228
+ output += "==";
4229
+ break;
4230
+ case 3:
4231
+ output += "=";
4232
+ break;
4233
+ default:
4234
+ throw new Error("base64 string is not of the correct length");
4235
+ }
4236
+ try {
4237
+ return b64DecodeUnicode(output);
4238
+ }
4239
+ catch (err) {
4240
+ return atob(output);
4241
+ }
4242
+ }
4243
+ function jwtDecode(token, options) {
4244
+ if (typeof token !== "string") {
4245
+ throw new InvalidTokenError("Invalid token specified: must be a string");
4246
+ }
4247
+ options || (options = {});
4248
+ const pos = options.header === true ? 0 : 1;
4249
+ const part = token.split(".")[pos];
4250
+ if (typeof part !== "string") {
4251
+ throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);
4252
+ }
4253
+ let decoded;
4254
+ try {
4255
+ decoded = base64UrlDecode(part);
4256
+ }
4257
+ catch (e) {
4258
+ throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);
4259
+ }
4260
+ try {
4261
+ return JSON.parse(decoded);
4262
+ }
4263
+ catch (e) {
4264
+ throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);
4265
+ }
4266
+ }
4267
+
4268
+ function usePortalGoogleRegistrationForm(props) {
4269
+ const [registrationFormState, setRegistrationFormState] = useRegistrationFormState.useRegistrationForm();
4270
+ const [showRegistrationForm, setShowRegistrationForm] = domContextHooks_module.useState({
4271
+ mode: "base",
4272
+ });
4273
+ const handleEmailSubmit = async (event) => {
4274
+ const formControls = event.target.getFormControls();
4275
+ let formData = {};
4276
+ let validationErrors = {};
4277
+ formControls.forEach((control) => {
4278
+ if (!control.name)
4279
+ return;
4280
+ const key = control.name;
4281
+ const value = control.value;
4282
+ jsonpointer.jsonpointer.set(formData, key, value);
4283
+ if (control.required && !value) {
4284
+ jsonpointer.jsonpointer.set(validationErrors, key, props.requiredFieldErrorMessage);
4285
+ }
4286
+ if (typeof control.validationError === "function") {
4287
+ const validate = control.validationError;
4288
+ const validationError = validate({
4289
+ control,
4290
+ key,
4291
+ value,
4292
+ });
4293
+ if (validationError)
4294
+ jsonpointer.jsonpointer.set(validationErrors, key, validationError);
4295
+ }
4296
+ });
4297
+ if (Object.keys(validationErrors).length) {
4298
+ // early return for validation errors
4299
+ setRegistrationFormState({
4300
+ ...registrationFormState,
4301
+ loading: false,
4302
+ error: "",
4303
+ validationErrors,
4304
+ });
4305
+ return;
4306
+ }
4307
+ setRegistrationFormState({
4308
+ ...registrationFormState,
4309
+ validationErrors: {},
4310
+ initialData: {
4311
+ ...registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData,
4312
+ ...formData,
4313
+ },
4314
+ });
4315
+ setShowRegistrationForm({ mode: "manual" });
4316
+ };
4317
+ const handleGoogleInit = (event) => {
4318
+ var _a;
4319
+ if (!((_a = event.detail) === null || _a === void 0 ? void 0 : _a.credential))
4320
+ return;
4321
+ try {
4322
+ const res = jwtDecode(event.detail.credential);
4323
+ setRegistrationFormState({
4324
+ ...registrationFormState,
4325
+ _googleOAuthIdToken: event.detail.credential,
4326
+ initialData: {
4327
+ email: res.email,
4328
+ firstName: res.given_name,
4329
+ lastName: res.family_name,
4330
+ },
4331
+ });
4332
+ setShowRegistrationForm({ mode: "google" });
4333
+ }
4334
+ catch (e) {
4335
+ console.error("Failed to decode Google Sign In credential JWT:", e);
4336
+ }
4337
+ };
4338
+ return {
4339
+ registrationFormState,
4340
+ showRegistrationForm,
4341
+ validationErrors: registrationFormState.validationErrors,
4342
+ handleGoogleInit,
4343
+ handleEmailSubmit,
4344
+ };
4345
+ }
4346
+
4347
+ const PortalGoogleRegistrationForm = class {
4348
+ constructor(hostRef) {
4349
+ index.registerInstance(this, hostRef);
4350
+ this.ignored = true;
4351
+ /**
4352
+ * Redirect participants to this page after they successfully register.
4353
+ *
4354
+ * @uiName Registration redirect
4355
+ * @uiWidget pageSelect
4356
+ */
4357
+ this.nextPage = "/";
4358
+ /**
4359
+ * Redirect participants to this page from their verification email
4360
+ *
4361
+ * @uiName Email verification redirect
4362
+ * @uiWidget pageSelect
4363
+ */
4364
+ this.redirectPath = "/verifyEmail";
4365
+ /**
4366
+ * @uiName Email field label
4367
+ */
4368
+ this.emailLabel = "Email";
4369
+ /**
4370
+ * @uiName Password field label
4371
+ */
4372
+ this.passwordLabel = "Password";
4373
+ /**
4374
+ * @uiName Submit button text
4375
+ */
4376
+ this.submitLabel = "Register";
4377
+ /**
4378
+ * @uiName Login button text
4379
+ */
4380
+ this.loginLabel = "Sign in";
4381
+ /**
4382
+ * @uiName Confirm password field label
4383
+ */
4384
+ this.confirmPasswordLabel = "Confirm Password";
4385
+ /**
4386
+ * @uiName Show confirm password field
4387
+ */
4388
+ this.confirmPassword = false;
4389
+ /**
4390
+ * @uiName Disable password validation
4391
+ */
4392
+ this.disablePasswordValidation = false;
4393
+ /**
4394
+ * Hides the email and password fields. Note: If you hide default inputs, you must add additional input fields. They must have the input name attributes "email" and "password" for this form to succeed.
4395
+ *
4396
+ * @uiName Hide default fields
4397
+ */
4398
+ this.hideInputs = false;
4399
+ /**
4400
+ * @uiName Header text
4401
+ */
4402
+ this.pageLabel = "Register";
4403
+ /**
4404
+ * Redirect participants to this page after clicking the login button.
4405
+ *
4406
+ * @uiName Login redirect
4407
+ * @uiWidget pageSelect
4408
+ */
4409
+ this.loginPath = "/login";
4410
+ /**
4411
+ * Login Call-to-action
4412
+ *
4413
+ * @uiName Login CTA
4414
+ */
4415
+ this.loginCTA = "Already have an account?";
4416
+ /**
4417
+ * The message to be displayed when a required field is not filled.
4418
+ *
4419
+ * @uiName Required field message
4420
+ * @uiWidget textArea
4421
+ */
4422
+ this.requiredFieldErrorMessage = "Cannot be empty";
4423
+ /**
4424
+ * The message to be displayed when a the form submission fails unexpectedly.
4425
+ *
4426
+ * @uiName Network error message
4427
+ * @uiWidget textArea
4428
+ */
4429
+ this.networkErrorMessage = "Network request failed.";
4430
+ /**
4431
+ * The message to be displayed when password inputs do not match.
4432
+ *
4433
+ * @uiName Password mismatch message
4434
+ * @uiWidget textArea
4435
+ */
4436
+ this.passwordMismatchErrorMessage = "Passwords do not match.";
4437
+ /**
4438
+ * The message to be displayed when the email used is invalid or blocked.
4439
+ *
4440
+ * @uiName Invalid email message
4441
+ * @uiWidget textArea
4442
+ */
4443
+ this.invalidEmailErrorMessage = "Must be a valid email address";
4444
+ /**
4445
+ * The message to be displayed when the registration form is disabled.
4446
+ *
4447
+ * @uiName Form disabled message
4448
+ * @uiWidget textArea
4449
+ */
4450
+ this.formDisabledErrorMessage = "The registration form is currently disabled.";
4451
+ /**
4452
+ * @uiName Password requirement met
4453
+ */
4454
+ this.meetsRequirementsText = "Password has met all requirements";
4455
+ /**
4456
+ * @uiName Password requirement failed
4457
+ */
4458
+ this.doesNotMeetRequirementsText = "Password must meet the following requirements:";
4459
+ /**
4460
+ * @uiName Minimum length text
4461
+ */
4462
+ this.minErrorText = "be a minimum of 8 characters";
4463
+ /**
4464
+ * @uiName Missing uppercase text
4465
+ */
4466
+ this.uppercaseErrorText = "contain at least 1 uppercase character";
4467
+ /**
4468
+ * @uiName Missing lowercase text
4469
+ */
4470
+ this.lowercaseErrorText = "contain at least 1 lowercase character";
4471
+ /**
4472
+ * @uiName Missing number or symbol text
4473
+ */
4474
+ this.hasErrorText = "contain at least 1 number or symbol";
4475
+ /**
4476
+ * Can be "signup_with", "signin_with", "continue_with", or "signin"
4477
+ *
4478
+ * @uiName Google button text
4479
+ */
4480
+ this.googleButtonText = "signup_with";
4481
+ domContextHooks_module.h$1(this);
4482
+ }
4483
+ disconnectedCallback() { }
4484
+ render() {
4485
+ const { states, callbacks, refs } = index_module.isDemo()
4486
+ ? useRegisterDemo$1(this)
4487
+ : usePortalRegistrationForm.usePortalRegistrationForm(this);
4488
+ const styles = {
4489
+ LoginButton: {
4490
+ "&::part(label)": {
4491
+ padding: "0",
4492
+ },
4493
+ },
4494
+ };
4495
+ const sheet = JSS.createStyleSheet(styles);
4496
+ const styleString = sheet.toString();
4497
+ const { handleGoogleInit, handleEmailSubmit, showRegistrationForm, validationErrors, } = index_module.isDemo() ? useGoogleDemo(this) : usePortalGoogleRegistrationForm(this);
4498
+ const content = {
4499
+ formData: index.h("slot", { name: "formData" }),
4500
+ googleButton: (index.h("sqm-google-sign-in", { text: this.googleButtonText, onInitComplete: handleGoogleInit })),
4501
+ secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("style", null, styleString), index.h("span", null, this.loginCTA, " ", index.h("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => index_module.jn.push(states.loginPath), className: sheet.classes.LoginButton }, this.loginLabel), " "))),
4502
+ terms: index.h("slot", { name: "terms" }),
4503
+ emailLabel: this.emailLabel,
4504
+ passwordLabel: this.passwordLabel,
4505
+ submitLabel: this.submitLabel,
4506
+ pageLabel: this.pageLabel,
4507
+ confirmPasswordLabel: this.confirmPasswordLabel,
4508
+ networkErrorMessage: this.networkErrorMessage,
4509
+ passwordMismatchErrorMessage: this.passwordMismatchErrorMessage,
4510
+ invalidEmailErrorMessage: this.invalidEmailErrorMessage,
4511
+ formDisabledErrorMessage: this.formDisabledErrorMessage,
4512
+ requiredFieldErrorMessage: this.requiredFieldErrorMessage,
4513
+ meetsRequirementsText: this.meetsRequirementsText,
4514
+ doesNotMeetRequirementsText: this.doesNotMeetRequirementsText,
4515
+ minErrorText: this.minErrorText,
4516
+ uppercaseErrorText: this.uppercaseErrorText,
4517
+ lowercaseErrorText: this.lowercaseErrorText,
4518
+ hasErrorText: this.hasErrorText,
4519
+ };
4520
+ if (showRegistrationForm.mode === "base") {
4521
+ return (index.h(ShadowViewAddon.BaseRegistrationFormView, { states: {
4522
+ validationErrors,
4523
+ }, callbacks: { handleEmailSubmit }, content: content }));
4524
+ }
4525
+ return (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, { states: {
4526
+ ...states,
4527
+ emailDisabled: true,
4528
+ hidePasswords: showRegistrationForm.mode === "google",
4529
+ }, callbacks: callbacks, content: content, refs: refs }));
4530
+ }
4531
+ };
4532
+ function useRegisterDemo$1(props) {
4533
+ return cjs.cjs({
4534
+ states: {
4535
+ error: "",
4536
+ loading: false,
4537
+ confirmPassword: props.confirmPassword,
4538
+ hideInputs: props.hideInputs || false,
4539
+ customPasswordField: false,
4540
+ loginPath: "/login",
4541
+ },
4542
+ callbacks: {
4543
+ handleGoogleInit: () => { },
4544
+ setShowRegistrationForm: () => { },
4545
+ submit: async (_event) => {
4546
+ console.log("submit");
4547
+ },
4548
+ inputFunction: () => { },
4549
+ },
4550
+ content: {
4551
+ pageLabel: "Register",
4552
+ formData: null,
4553
+ passwordField: null,
4554
+ },
4555
+ refs: {
4556
+ formRef: {},
4557
+ },
4558
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
4559
+ }
4560
+ function useGoogleDemo(props) {
4561
+ const [showRegistrationForm, setShowRegistrationForm] = domContextHooks_module.useState({
4562
+ mode: "base",
4563
+ });
4564
+ return cjs.cjs({
4565
+ validationErrors: {},
4566
+ handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
4567
+ showRegistrationForm,
4568
+ handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
4569
+ }, props.demoGoogleData || {}, { arrayMerge: (_, a) => a });
4570
+ }
4571
+
4572
+ const PortalLogin = class {
4573
+ constructor(hostRef) {
4574
+ index.registerInstance(this, hostRef);
4575
+ this.ignored = true;
4576
+ /**
4577
+ * Redirect participants to this page after they successfully login.
4578
+ *
4579
+ * @uiName Login redirect
4580
+ * @uiWidget pageSelect
4581
+ */
4582
+ this.nextPage = "/";
4583
+ /**
4584
+ * @uiName Email field label
4585
+ */
4586
+ this.emailLabel = "Email";
4587
+ /**
4588
+ * @uiName Password field label
4589
+ */
4590
+ this.passwordLabel = "Password";
4591
+ /**
4592
+ * @uiName Submit button text
4593
+ */
4594
+ this.submitLabel = "Sign In";
4595
+ /**
4596
+ * Redirect participants to this page to reset their password
4597
+ * @uiName Forgot password redirect
4598
+ * @uiWidget pageSelect
4599
+ */
4600
+ this.forgotPasswordPath = "/forgotPassword";
4601
+ /**
4602
+ * @uiName Forgot password text
4603
+ */
4604
+ this.forgotPasswordLabel = "Forgot Password?";
4605
+ /**
4606
+ * @uiName Register button text
4607
+ */
4608
+ this.registerLabel = "Register";
4609
+ /**
4610
+ * Redirect participants to this page to start registration.
4611
+ * @uiName Register button redirect
4612
+ * @uiWidget pageSelect
4613
+ */
4614
+ this.registerPath = "/register";
4615
+ /**
4616
+ * @uiName Heading label
4617
+ * @uiWidget textArea
4618
+ */
4619
+ this.pageLabel = "Sign in to your account";
4620
+ /**
4621
+ * Displayed when the login fails due to a network error. The participant can try refreshing the page.
4622
+ * @uiName Network error message
4623
+ */
4624
+ this.networkErrorMessage = "An error occurred while logging you in. Please refresh the page and try again.";
4625
+ domContextHooks_module.h$1(this);
4626
+ }
4627
+ disconnectedCallback() { }
4628
+ render() {
4629
+ const { states, callbacks } = index_module.isDemo()
4630
+ ? useLoginDemo$1(this)
4631
+ : usePortalLogin(this);
4095
4632
  const styles = {
4096
4633
  RegisterButton: {
4097
4634
  "&::part(label)": {
@@ -4110,10 +4647,10 @@ const PortalLogin = class {
4110
4647
  submitLabel: this.submitLabel,
4111
4648
  pageLabel: this.pageLabel,
4112
4649
  };
4113
- return (index.h(sqmPortalLoginView.PortalLoginView, { states: states, callbacks: callbacks, content: content }));
4650
+ return (index.h(ShadowViewAddon.PortalLoginView, { states: states, callbacks: callbacks, content: content }));
4114
4651
  }
4115
4652
  };
4116
- function useLoginDemo(props) {
4653
+ function useLoginDemo$1(props) {
4117
4654
  return cjs.cjs({
4118
4655
  states: {
4119
4656
  error: "",
@@ -4229,7 +4766,7 @@ function usePortalRegister(props) {
4229
4766
  const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
4230
4767
  if (name !== "tel")
4231
4768
  return;
4232
- const asYouType = new AsYouType.AsYouType("US");
4769
+ const asYouType = new usePortalRegistrationForm.AsYouType("US");
4233
4770
  e.target.value = asYouType.input(e.target.value);
4234
4771
  }, []);
4235
4772
  let errorMessage = "";
@@ -4383,7 +4920,7 @@ const PortalRegister = class {
4383
4920
  disconnectedCallback() { }
4384
4921
  render() {
4385
4922
  const { states, callbacks, refs } = index_module.isDemo()
4386
- ? useRegisterDemo$1(this)
4923
+ ? useRegisterDemo$2(this)
4387
4924
  : usePortalRegister(this);
4388
4925
  const content = {
4389
4926
  formData: index.h("slot", { name: "formData" }),
@@ -4406,7 +4943,7 @@ const PortalRegister = class {
4406
4943
  return (index.h(ShadowViewAddon.PortalRegisterView, { states: states, callbacks: callbacks, content: content, refs: refs }));
4407
4944
  }
4408
4945
  };
4409
- function useRegisterDemo$1(props) {
4946
+ function useRegisterDemo$2(props) {
4410
4947
  return cjs.cjs({
4411
4948
  states: {
4412
4949
  error: "",
@@ -8110,6 +8647,8 @@ exports.sqm_portal_change_password = PortalChangePassword;
8110
8647
  exports.sqm_portal_footer = PortalFooter;
8111
8648
  exports.sqm_portal_forgot_password = PortalForgotPassword;
8112
8649
  exports.sqm_portal_frame = PortalFrame;
8650
+ exports.sqm_portal_google_login = PortalGoogleLogin;
8651
+ exports.sqm_portal_google_registration_form = PortalGoogleRegistrationForm;
8113
8652
  exports.sqm_portal_login = PortalLogin;
8114
8653
  exports.sqm_portal_register = PortalRegister;
8115
8654
  exports.sqm_program_explainer = ProgramExplainer;
@@ -12,8 +12,7 @@ require('./mixins-4761d472.js');
12
12
  require('./sqm-text-span-view-7a61ae4c.js');
13
13
  require('./useRegistrationFormState-bbee6e7b.js');
14
14
  const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
15
- require('./AsYouType-6788393a.js');
16
- const usePortalRegistrationForm = require('./usePortalRegistrationForm-75b647fe.js');
15
+ const usePortalRegistrationForm = require('./usePortalRegistrationForm-8ed0d753.js');
17
16
 
18
17
  const PortalRegistrationForm = class {
19
18
  constructor(hostRef) {