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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/dist/cjs/{ShadowViewAddon-00e7bf6d.js → ShadowViewAddon-5a9d4a55.js} +89 -208
  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_44.cjs.entry.js} +4 -551
  5. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +1 -1
  6. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +1078 -0
  7. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +3 -3
  8. package/dist/cjs/sqm-portal-verify-email-view-6fcde0e7.js +220 -0
  9. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-stencilbook.cjs.entry.js +19 -20
  11. package/dist/collection/collection-manifest.json +10 -0
  12. package/dist/esm/{IndirectTaxDetailsView-62f67557.js → IndirectTaxDetailsView-4cf9514a.js} +2 -2
  13. package/dist/esm/{ShadowViewAddon-a470afbc.js → ShadowViewAddon-2b061a3a.js} +96 -213
  14. package/dist/esm/{data-4e42ca0f.js → data-4390ef62.js} +1 -1
  15. package/dist/esm/{global-31893424.js → global-fc653a2a.js} +1 -1
  16. package/dist/esm/{index.module-0bef7c88.js → index.module-849b7d56.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-90d2cf01.js → re-render-2a5345de.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_44.entry.js} +15 -559
  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-184561a6.js → sqm-lead-checkbox-field-view-3d012143.js} +1 -1
  31. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  32. package/dist/esm/{sqm-lead-input-field-view-66f9c1c5.js → sqm-lead-input-field-view-0199ee1e.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-55385bda.js → sqm-navigation-sidebar-item-view-5283300c.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-5dc1cbf3.js → sqm-portal-email-verification-view-03707cd9.js} +1 -1
  43. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  44. package/dist/esm/sqm-portal-forgot-password_6.entry.js +1069 -0
  45. package/dist/esm/sqm-portal-google-registration-form.entry.js +5 -5
  46. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  47. package/dist/esm/{sqm-portal-profile-view-8022ff18.js → sqm-portal-profile-view-cbef4855.js} +1 -1
  48. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  49. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  50. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  51. package/dist/esm/sqm-portal-verify-email-view-e02a49b1.js +215 -0
  52. package/dist/esm/sqm-qr-code.entry.js +2 -2
  53. package/dist/esm/sqm-referral-table_11.entry.js +6 -6
  54. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  55. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  56. package/dist/esm/sqm-stencilbook.entry.js +16 -17
  57. package/dist/esm/sqm-tab.entry.js +2 -2
  58. package/dist/esm/sqm-tabs.entry.js +3 -3
  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-3721fb0b.js → useChildElements-14eb2cd7.js} +1 -1
  62. package/dist/esm/{useInstantAccessRegistration-f12801ad.js → useInstantAccessRegistration-6685ce53.js} +2 -2
  63. package/dist/esm/{useLeadFormState-259e4b23.js → useLeadFormState-0d1c899e.js} +2 -2
  64. package/dist/esm/{usePortalRegistrationForm-b448c386.js → usePortalRegistrationForm-65765105.js} +2 -2
  65. package/dist/esm/{useReferralCodes-9287638d.js → useReferralCodes-f87eea47.js} +1 -1
  66. package/dist/esm/{useReferralTable-9db5a0ff.js → useReferralTable-bcf191be.js} +3 -3
  67. package/dist/esm/{useRegistrationFormState-90b6af96.js → useRegistrationFormState-f149c3ba.js} +1 -1
  68. package/dist/esm/{useVerificationEmail-5ce6400d.js → useVerificationEmail-ca464d15.js} +1 -1
  69. package/dist/esm/{utilities-add80719.js → utilities-8dba1079.js} +1 -1
  70. package/dist/esm/{utils-635fa4ea.js → utils-3c8913e6.js} +1 -1
  71. package/dist/esm-es5/{IndirectTaxDetailsView-62f67557.js → IndirectTaxDetailsView-4cf9514a.js} +1 -1
  72. package/dist/esm-es5/ShadowViewAddon-2b061a3a.js +1 -0
  73. package/dist/esm-es5/{data-4e42ca0f.js → data-4390ef62.js} +1 -1
  74. package/dist/esm-es5/{global-31893424.js → global-fc653a2a.js} +1 -1
  75. package/dist/esm-es5/{index.module-0bef7c88.js → index.module-849b7d56.js} +1 -1
  76. package/dist/esm-es5/loader.js +1 -1
  77. package/dist/esm-es5/mint-components.js +1 -1
  78. package/dist/esm-es5/{re-render-90d2cf01.js → re-render-2a5345de.js} +1 -1
  79. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  80. package/dist/esm-es5/sqm-big-stat_44.entry.js +1 -0
  81. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  82. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  83. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  84. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  85. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  86. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  87. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  88. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  89. package/dist/esm-es5/{sqm-lead-checkbox-field-view-184561a6.js → sqm-lead-checkbox-field-view-3d012143.js} +1 -1
  90. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  91. package/dist/esm-es5/{sqm-lead-input-field-view-66f9c1c5.js → sqm-lead-input-field-view-0199ee1e.js} +1 -1
  92. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  93. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  94. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  95. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-55385bda.js → sqm-navigation-sidebar-item-view-5283300c.js} +1 -1
  96. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  97. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  98. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  99. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  100. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  101. package/dist/esm-es5/{sqm-portal-email-verification-view-5dc1cbf3.js → sqm-portal-email-verification-view-03707cd9.js} +1 -1
  102. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  103. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -0
  104. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  105. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  106. package/dist/esm-es5/{sqm-portal-profile-view-8022ff18.js → sqm-portal-profile-view-cbef4855.js} +1 -1
  107. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  108. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  109. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  110. package/dist/esm-es5/sqm-portal-verify-email-view-e02a49b1.js +1 -0
  111. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  112. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  113. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  114. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  115. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  116. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  117. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  118. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  119. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  120. package/dist/esm-es5/{useChildElements-3721fb0b.js → useChildElements-14eb2cd7.js} +1 -1
  121. package/dist/esm-es5/{useInstantAccessRegistration-f12801ad.js → useInstantAccessRegistration-6685ce53.js} +1 -1
  122. package/dist/esm-es5/{useLeadFormState-259e4b23.js → useLeadFormState-0d1c899e.js} +1 -1
  123. package/dist/esm-es5/{usePortalRegistrationForm-b448c386.js → usePortalRegistrationForm-65765105.js} +1 -1
  124. package/dist/esm-es5/{useReferralCodes-9287638d.js → useReferralCodes-f87eea47.js} +1 -1
  125. package/dist/esm-es5/{useReferralTable-9db5a0ff.js → useReferralTable-bcf191be.js} +1 -1
  126. package/dist/esm-es5/{useRegistrationFormState-90b6af96.js → useRegistrationFormState-f149c3ba.js} +1 -1
  127. package/dist/esm-es5/{useVerificationEmail-5ce6400d.js → useVerificationEmail-ca464d15.js} +1 -1
  128. package/dist/esm-es5/{utilities-add80719.js → utilities-8dba1079.js} +1 -1
  129. package/dist/esm-es5/{utils-635fa4ea.js → utils-3c8913e6.js} +1 -1
  130. package/dist/mint-components/mint-components.esm.js +1 -1
  131. package/dist/mint-components/mint-components.js +1 -1
  132. package/dist/mint-components/p-01eab918.js +1 -0
  133. package/dist/mint-components/p-051908cf.js +1 -0
  134. package/dist/mint-components/{p-af6e09cb.entry.js → p-071b49c1.entry.js} +1 -1
  135. package/dist/mint-components/{p-985324ac.system.entry.js → p-07f47f18.system.entry.js} +1 -1
  136. package/dist/mint-components/p-080fdd32.entry.js +1 -0
  137. package/dist/mint-components/{p-456ee337.entry.js → p-0bdf0a4b.entry.js} +1 -1
  138. package/dist/mint-components/{p-289fb8c3.system.entry.js → p-0fe8d9fc.system.entry.js} +1 -1
  139. package/dist/mint-components/{p-beff34a1.system.entry.js → p-118e4a22.system.entry.js} +1 -1
  140. package/dist/mint-components/{p-cc926179.entry.js → p-128dad3d.entry.js} +1 -1
  141. package/dist/mint-components/p-191fc062.entry.js +273 -0
  142. package/dist/mint-components/{p-2fd02806.entry.js → p-1aebfc0e.entry.js} +2 -2
  143. package/dist/mint-components/p-1b50850b.entry.js +13 -0
  144. package/dist/mint-components/{p-0cb43649.system.js → p-2076f887.system.js} +1 -1
  145. package/dist/mint-components/{p-fb3e9155.system.entry.js → p-23eb911d.system.entry.js} +1 -1
  146. package/dist/mint-components/{p-1b3e8ebe.entry.js → p-256763e8.entry.js} +1 -1
  147. package/dist/mint-components/{p-d2f0816a.system.entry.js → p-266e25fd.system.entry.js} +1 -1
  148. package/dist/mint-components/{p-cf0d2ca3.system.js → p-2851c89b.system.js} +1 -1
  149. package/dist/mint-components/{p-17b90cc9.entry.js → p-287a9c63.entry.js} +1 -1
  150. package/dist/mint-components/{p-ff102740.system.entry.js → p-2c70a817.system.entry.js} +1 -1
  151. package/dist/mint-components/p-2c9dc1ff.js +1 -0
  152. package/dist/mint-components/p-2fa1f10f.entry.js +9 -0
  153. package/dist/mint-components/{p-0ecdf3b3.js → p-301b5e90.js} +1 -1
  154. package/dist/mint-components/{p-26950b0a.system.entry.js → p-3710c2e1.system.entry.js} +1 -1
  155. package/dist/mint-components/{p-0728b5d5.entry.js → p-382aa99f.entry.js} +1 -1
  156. package/dist/mint-components/{p-bd317183.entry.js → p-39599251.entry.js} +1 -1
  157. package/dist/mint-components/{p-a69d6920.js → p-39ad8f1b.js} +2 -2
  158. package/dist/mint-components/p-3c25bdb4.system.entry.js +1 -0
  159. package/dist/mint-components/p-3c27540c.js +1 -0
  160. package/dist/mint-components/{p-8ad15caa.entry.js → p-3f00929b.entry.js} +1 -1
  161. package/dist/mint-components/{p-6eb15b8b.system.entry.js → p-4308b18f.system.entry.js} +1 -1
  162. package/dist/mint-components/{p-df1f3dcb.system.entry.js → p-4320e2dc.system.entry.js} +1 -1
  163. package/dist/mint-components/{p-3bf17416.system.js → p-479202a9.system.js} +1 -1
  164. package/dist/mint-components/{p-60e6b691.system.js → p-494497c2.system.js} +1 -1
  165. package/dist/mint-components/{p-c2cd0657.system.entry.js → p-4d3c4cc5.system.entry.js} +1 -1
  166. package/dist/mint-components/{p-cf5f2a1a.entry.js → p-505f91d6.entry.js} +2 -2
  167. package/dist/mint-components/{p-ade6644e.system.js → p-51428d05.system.js} +1 -1
  168. package/dist/mint-components/{p-b7e1513f.js → p-5708d347.js} +1 -1
  169. package/dist/mint-components/p-5b542964.entry.js +1 -0
  170. package/dist/mint-components/p-5c3bb317.system.js +1 -0
  171. package/dist/mint-components/p-6306b75e.system.entry.js +1 -0
  172. package/dist/mint-components/{p-adc687d2.system.js → p-670b2ab4.system.js} +1 -1
  173. package/dist/mint-components/{p-89ca6721.entry.js → p-6890a3b2.entry.js} +1 -1
  174. package/dist/mint-components/p-7295c99c.entry.js +1 -0
  175. package/dist/mint-components/{p-186834ee.system.entry.js → p-73eaa31b.system.entry.js} +1 -1
  176. package/dist/mint-components/{p-8ae21c99.system.js → p-74141e43.system.js} +1 -1
  177. package/dist/mint-components/p-7646a6a4.entry.js +1 -0
  178. package/dist/mint-components/{p-eadf3ea0.system.entry.js → p-7a5cabc8.system.entry.js} +1 -1
  179. package/dist/mint-components/{p-f0fcab7a.system.js → p-7c74ad5c.system.js} +1 -1
  180. package/dist/mint-components/{p-d7ca8c6c.entry.js → p-7e04b813.entry.js} +1 -1
  181. package/dist/mint-components/p-80569727.system.js +1 -0
  182. package/dist/mint-components/{p-5bff2e59.js → p-831af05f.js} +4 -4
  183. package/dist/mint-components/{p-220bf9bc.system.js → p-832579bf.system.js} +1 -1
  184. package/dist/mint-components/{p-ad04c7ea.entry.js → p-8766952b.entry.js} +1 -1
  185. package/dist/mint-components/{p-bf45741a.system.js → p-8a11659b.system.js} +1 -1
  186. package/dist/mint-components/{p-165052a3.entry.js → p-8a85f8f5.entry.js} +1 -1
  187. package/dist/mint-components/{p-4d2a0a42.system.entry.js → p-8b9f6e1e.system.entry.js} +1 -1
  188. package/dist/mint-components/p-8d25a7f7.js +448 -0
  189. package/dist/mint-components/{p-e00c413e.entry.js → p-9046552e.entry.js} +1 -1
  190. package/dist/mint-components/{p-703ec717.system.entry.js → p-9191b949.system.entry.js} +1 -1
  191. package/dist/mint-components/{p-a070c828.entry.js → p-941776f2.entry.js} +1 -1
  192. package/dist/mint-components/p-95fe044b.js +1 -0
  193. package/dist/mint-components/{p-b6215a34.system.entry.js → p-9652e637.system.entry.js} +1 -1
  194. package/dist/mint-components/{p-3b4cfc7a.entry.js → p-9ba932a9.entry.js} +1 -1
  195. package/dist/mint-components/p-9bea2329.system.js +1 -0
  196. package/dist/mint-components/{p-747b0bc0.js → p-9d31def7.js} +1 -1
  197. package/dist/mint-components/{p-0ab1b421.js → p-9f44a4bd.js} +1 -1
  198. package/dist/mint-components/{p-8b1f7092.system.entry.js → p-a13d7d73.system.entry.js} +1 -1
  199. package/dist/mint-components/{p-84a467be.entry.js → p-a4290ba4.entry.js} +1 -1
  200. package/dist/mint-components/{p-d1b371d7.system.js → p-a81690ae.system.js} +1 -1
  201. package/dist/mint-components/{p-bcbede0f.system.entry.js → p-a9f72689.system.entry.js} +1 -1
  202. package/dist/mint-components/{p-a9cc3f05.system.js → p-aaa0ed28.system.js} +1 -1
  203. package/dist/mint-components/{p-1debe96f.entry.js → p-aaf290ce.entry.js} +1 -1
  204. package/dist/mint-components/{p-d7a77305.system.entry.js → p-ab927359.system.entry.js} +1 -1
  205. package/dist/mint-components/{p-d0de7b62.js → p-ae867ea6.js} +1 -1
  206. package/dist/mint-components/{p-77d24a8e.entry.js → p-aeb00548.entry.js} +1 -1
  207. package/dist/mint-components/{p-fc3bc313.system.js → p-b131b384.system.js} +1 -1
  208. package/dist/mint-components/{p-6cd2e9ac.system.js → p-b35a43d1.system.js} +1 -1
  209. package/dist/mint-components/{p-c65b0189.js → p-b4a8a34b.js} +1 -1
  210. package/dist/mint-components/p-b54da510.system.entry.js +1 -0
  211. package/dist/mint-components/{p-5de5f74c.system.entry.js → p-bbdbefce.system.entry.js} +1 -1
  212. package/dist/mint-components/{p-70d4936d.js → p-bf3e7bc8.js} +1 -1
  213. package/dist/mint-components/{p-0f47f904.entry.js → p-c23f5630.entry.js} +1 -1
  214. package/dist/mint-components/{p-4e47568a.system.entry.js → p-c4151e26.system.entry.js} +1 -1
  215. package/dist/mint-components/{p-5423baa1.js → p-c5e6c28e.js} +1 -1
  216. package/dist/mint-components/{p-2478d23c.system.entry.js → p-c7b4e749.system.entry.js} +1 -1
  217. package/dist/mint-components/{p-1fcbfc5c.system.entry.js → p-c857676d.system.entry.js} +1 -1
  218. package/dist/mint-components/{p-c6ac6625.js → p-ca3dbd51.js} +1 -1
  219. package/dist/mint-components/{p-079cf9d7.js → p-ca3f598c.js} +2 -2
  220. package/dist/mint-components/{p-11e16fe2.system.entry.js → p-ca71dfff.system.entry.js} +1 -1
  221. package/dist/mint-components/{p-e2899c78.system.entry.js → p-cb225348.system.entry.js} +1 -1
  222. package/dist/mint-components/{p-110360b9.system.js → p-ce4a36b2.system.js} +1 -1
  223. package/dist/mint-components/{p-d3449429.entry.js → p-d57bdb68.entry.js} +1 -1
  224. package/dist/mint-components/p-d9a88615.system.js +1 -0
  225. package/dist/mint-components/{p-a91ff3f7.system.js → p-dd28cd8c.system.js} +1 -1
  226. package/dist/mint-components/{p-9df20b9f.system.entry.js → p-de293f9f.system.entry.js} +1 -1
  227. package/dist/mint-components/p-e21dad58.entry.js +1 -0
  228. package/dist/mint-components/{p-f7a09923.js → p-e230562f.js} +2 -2
  229. package/dist/mint-components/{p-8055a9c7.entry.js → p-e6c7c09c.entry.js} +1 -1
  230. package/dist/mint-components/{p-369021f9.system.entry.js → p-e82ffaee.system.entry.js} +1 -1
  231. package/dist/mint-components/{p-1111eb94.js → p-e9b0160b.js} +1 -1
  232. package/dist/mint-components/{p-f38483aa.system.entry.js → p-eb123e88.system.entry.js} +1 -1
  233. package/dist/mint-components/{p-a6ef5e76.js → p-ebfaa71d.js} +2 -2
  234. package/dist/mint-components/{p-6c451c54.system.entry.js → p-ed74b25a.system.entry.js} +1 -1
  235. package/dist/mint-components/{p-4bc9f0e5.system.entry.js → p-f1cf660f.system.entry.js} +1 -1
  236. package/dist/mint-components/p-f207070d.entry.js +1 -0
  237. package/dist/mint-components/p-f32d8d19.entry.js +1 -0
  238. package/dist/mint-components/{p-59a8c3b1.system.entry.js → p-f59cf0a8.system.entry.js} +1 -1
  239. package/dist/mint-components/{p-78beaa20.system.js → p-f62aa495.system.js} +1 -1
  240. package/dist/mint-components/{p-68141f06.js → p-f72cf379.js} +1 -1
  241. package/dist/mint-components/{p-168d59d6.system.entry.js → p-f998a53a.system.entry.js} +1 -1
  242. package/dist/mint-components/{p-abf70313.system.entry.js → p-fb0ea0df.system.entry.js} +1 -1
  243. package/dist/mint-components/{p-644df4e5.entry.js → p-fbcd2ae2.entry.js} +1 -1
  244. package/dist/mint-components/p-fc66ec16.system.js +1 -0
  245. package/dist/mint-components/{p-bd74bc30.system.js → p-fc850132.system.js} +1 -1
  246. package/dist/mint-components/{p-253c0ba6.entry.js → p-ff38a567.entry.js} +1 -1
  247. package/docs/docs.docx +0 -0
  248. package/package.json +1 -1
  249. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +0 -130
  250. package/dist/cjs/sqm-portal-login-view-298425ad.js +0 -58
  251. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +0 -194
  252. package/dist/cjs/sqm-portal-verify-email-view-eb487415.js +0 -49
  253. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +0 -171
  254. package/dist/cjs/usePortalLogin-95e7c3a0.js +0 -74
  255. package/dist/esm/sqm-portal-google-login.entry.js +0 -126
  256. package/dist/esm/sqm-portal-login-view-40f4f6f1.js +0 -56
  257. package/dist/esm/sqm-portal-registration-form.entry.js +0 -190
  258. package/dist/esm/sqm-portal-verify-email-view-547bdbef.js +0 -47
  259. package/dist/esm/sqm-portal-verify-email.entry.js +0 -167
  260. package/dist/esm/usePortalLogin-9f9ea240.js +0 -72
  261. package/dist/esm-es5/ShadowViewAddon-a470afbc.js +0 -1
  262. package/dist/esm-es5/sqm-big-stat_47.entry.js +0 -1
  263. package/dist/esm-es5/sqm-portal-google-login.entry.js +0 -1
  264. package/dist/esm-es5/sqm-portal-login-view-40f4f6f1.js +0 -1
  265. package/dist/esm-es5/sqm-portal-registration-form.entry.js +0 -1
  266. package/dist/esm-es5/sqm-portal-verify-email-view-547bdbef.js +0 -1
  267. package/dist/esm-es5/sqm-portal-verify-email.entry.js +0 -1
  268. package/dist/esm-es5/usePortalLogin-9f9ea240.js +0 -1
  269. package/dist/mint-components/p-02232e0c.entry.js +0 -1
  270. package/dist/mint-components/p-0ffd3316.entry.js +0 -1
  271. package/dist/mint-components/p-1f21cb92.entry.js +0 -9
  272. package/dist/mint-components/p-23e2c5f4.js +0 -1
  273. package/dist/mint-components/p-30a281ee.entry.js +0 -1
  274. package/dist/mint-components/p-348d9e18.system.js +0 -1
  275. package/dist/mint-components/p-46172119.entry.js +0 -1
  276. package/dist/mint-components/p-47143651.system.js +0 -1
  277. package/dist/mint-components/p-4ea55134.js +0 -1
  278. package/dist/mint-components/p-5ff17d5c.system.js +0 -1
  279. package/dist/mint-components/p-60f8b8ff.js +0 -1
  280. package/dist/mint-components/p-69604a2c.entry.js +0 -1
  281. package/dist/mint-components/p-69c93d10.system.js +0 -1
  282. package/dist/mint-components/p-85dcd4a6.system.entry.js +0 -1
  283. package/dist/mint-components/p-8b202cbd.system.entry.js +0 -1
  284. package/dist/mint-components/p-8d33addb.js +0 -1
  285. package/dist/mint-components/p-95cc1859.js +0 -1
  286. package/dist/mint-components/p-9d88b86e.entry.js +0 -1
  287. package/dist/mint-components/p-a52c0604.entry.js +0 -1
  288. package/dist/mint-components/p-a625b75f.js +0 -1
  289. package/dist/mint-components/p-af4bf3fc.system.entry.js +0 -1
  290. package/dist/mint-components/p-b7a46b96.system.entry.js +0 -1
  291. package/dist/mint-components/p-b7daf892.system.js +0 -1
  292. package/dist/mint-components/p-c2f3b2f4.system.js +0 -1
  293. package/dist/mint-components/p-cfcae11a.js +0 -448
  294. package/dist/mint-components/p-da2183c2.js +0 -1
  295. package/dist/mint-components/p-eb640601.entry.js +0 -13
  296. package/dist/mint-components/p-eb644fb7.system.entry.js +0 -1
  297. package/dist/mint-components/p-f0c8d3aa.entry.js +0 -273
  298. package/dist/mint-components/p-f21e0be3.entry.js +0 -1
  299. package/dist/mint-components/p-f41af37d.entry.js +0 -1
  300. package/dist/mint-components/p-f80b1849.system.js +0 -1
  301. package/dist/cjs/{usePortalRegistrationForm-cdf6cb76.js → usePortalRegistrationForm-a0a45299.js} +1 -1
@@ -1,171 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-8277cbb3.js');
6
- const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
7
- const index_module = require('./index.module-f267fad6.js');
8
- const cjs = require('./cjs-1066ec21.js');
9
- const utils = require('./utils-6847bc06.js');
10
- require('./JSS-8503a151.js');
11
- require('./mixins-4761d472.js');
12
- require('./sqm-text-span-view-f274fdf2.js');
13
- const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-eb487415.js');
14
-
15
- let globalPromise = null;
16
- function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyEmailText, verifyInvalidText, networkErrorMessage, continueText, }) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18
- const [completed, setCompleted] = domContextHooks_module.useState(false);
19
- const [successful, setSuccessful] = domContextHooks_module.useState(false);
20
- const userIdent = index_module.J();
21
- const [request, { loading, data, errors }] = index_module.an();
22
- const urlParams = new URLSearchParams(index_module.jn.location.search);
23
- const oobCode = urlParams.get("oobCode");
24
- const oobEmail = urlParams.get("email");
25
- const nextPageOverride = urlParams.get("nextPage");
26
- // derived from useMutation in component boilerplate initialState
27
- const disableContinue = data === undefined && errors === undefined && !!oobCode;
28
- // if logged out, userIdent?.managedIdentity?.emailVerified will be falsey, even if verification was successful
29
- const verified = !!(((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) || ((_b = data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail) === null || _b === void 0 ? void 0 : _b.success) ||
30
- successful);
31
- const validEmail = ((_c = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _c === void 0 ? void 0 : _c.email) === oobEmail;
32
- const failed = () => {
33
- return index_module.jn.push({
34
- pathname: failedPage,
35
- search: urlParams.toString() && "?" + urlParams.toString(),
36
- });
37
- };
38
- const gotoNextPage = () => {
39
- urlParams.delete("nextPage");
40
- const url = utils.sanitizeUrlPath(nextPageOverride || nextPage);
41
- index_module.jn.push(url.href);
42
- };
43
- const logout = () => {
44
- setTimeout(() => {
45
- index_module.setUserIdentity(undefined);
46
- gotoNextPage();
47
- }, 3000);
48
- };
49
- const login = () => {
50
- setTimeout(gotoNextPage, 3000);
51
- };
52
- domContextHooks_module.useEffect(() => {
53
- const verify = async () => {
54
- if (!globalPromise)
55
- globalPromise = request({ oobCode });
56
- const result = await globalPromise;
57
- if (!(result instanceof Error) &&
58
- result.verifyManagedIdentityEmail.success) {
59
- // Needs to be explicitly updated if multiple renders have occured
60
- setSuccessful(true);
61
- }
62
- setCompleted(true);
63
- };
64
- verify();
65
- }, []);
66
- domContextHooks_module.useEffect(() => {
67
- if (!completed)
68
- return;
69
- if (verified && validEmail)
70
- login();
71
- else
72
- logout();
73
- }, [completed, verified]);
74
- return {
75
- states: {
76
- loading: loading || !completed,
77
- disableContinue,
78
- error: ((_g = (_f = (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.response) === null || _d === void 0 ? void 0 : _d.errors) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.extensions) === null || _g === void 0 ? void 0 : _g.message) || ((_k = (_j = (_h = errors === null || errors === void 0 ? void 0 : errors.response) === null || _h === void 0 ? void 0 : _h.errors) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.message) ||
79
- (((errors === null || errors === void 0 ? void 0 : errors.message) || !validEmail) && networkErrorMessage),
80
- success: completed && (verified || validEmail),
81
- },
82
- data: {
83
- oobCode,
84
- },
85
- callbacks: {
86
- failed,
87
- gotoNextPage,
88
- },
89
- content: {
90
- verifySuccessText,
91
- verifyEmailText,
92
- verifyInvalidText,
93
- continueText,
94
- },
95
- };
96
- }
97
-
98
- const PortalVerifyEmail = class {
99
- constructor(hostRef) {
100
- index.registerInstance(this, hostRef);
101
- this.ignored = true;
102
- /**
103
- * Redirect participants to this page when they successfully verify their email.
104
- *
105
- * @uiName Successful verification redirect
106
- * @uiWidget pageSelect
107
- */
108
- this.nextPage = "/";
109
- /**
110
- * Redirect participants to this page if verification fails due to an outdated verification attempt.
111
- *
112
- * @uiName Failed verification redirect
113
- * @uiWidget pageSelect
114
- */
115
- this.failedPage = "/";
116
- /**
117
- * @uiName Verify email text
118
- * @uiWidget textArea
119
- */
120
- this.verifyEmailText = "Verify your email";
121
- /**
122
- * @uiName Email verification success text
123
- * @uiWidget textArea
124
- */
125
- this.verifySuccessText = "Your email has been verified and you are being redirected. If you are not redirected, please click Continue.";
126
- /**
127
- * @uiName Email verification invalid text
128
- * @uiWidget textArea
129
- */
130
- this.verifyInvalidText = "The email verification code is invalid or has expired, please try again.";
131
- /**
132
- * @uiName Continue text
133
- */
134
- this.continueText = "Continue";
135
- /**
136
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
137
- * @uiName Network error message
138
- */
139
- this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
140
- domContextHooks_module.h$1(this);
141
- }
142
- disconnectedCallback() { }
143
- render() {
144
- const { states, data, callbacks, content } = index_module.isDemo()
145
- ? usePortalVerifyEmailDemo(utils.getProps(this))
146
- : usePortalVerifyEmail(utils.getProps(this));
147
- return (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, { states: states, data: data, callbacks: callbacks, content: content }));
148
- }
149
- };
150
- function usePortalVerifyEmailDemo(props) {
151
- return cjs.cjs({
152
- states: { error: "", loading: false, success: true },
153
- data: {
154
- oobCode: "code",
155
- },
156
- callbacks: {
157
- failed: () => {
158
- console.log("failed");
159
- },
160
- gotoNextPage: () => { },
161
- },
162
- content: {
163
- verifySuccessText: props.verifySuccessText,
164
- verifyEmailText: props.verifyEmailText,
165
- verifyInvalidText: props.verifyInvalidText,
166
- continueText: props.continueText,
167
- },
168
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
169
- }
170
-
171
- exports.sqm_portal_verify_email = PortalVerifyEmail;
@@ -1,74 +0,0 @@
1
- 'use strict';
2
-
3
- const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
4
- const index_module = require('./index.module-f267fad6.js');
5
- const jsonpointer = require('./jsonpointer-11327262.js');
6
- const utils = require('./utils-6847bc06.js');
7
-
8
- function usePortalLogin(props) {
9
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
10
- const [request, { loading, errors, data }] = index_module.je();
11
- const [loginWithGoogle, { loading: gLoading, errors: gErrors }] = index_module.hn();
12
- const [error, setError] = domContextHooks_module.useState("");
13
- const urlParams = new URLSearchParams(index_module.jn.location.search);
14
- const nextPageOverride = urlParams.get("nextPage");
15
- const googleSubmit = async (e) => {
16
- var _a, _b, _c, _d;
17
- if (!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.credential))
18
- return;
19
- const result = await loginWithGoogle({ idToken: e.detail.credential });
20
- if (result instanceof Error) {
21
- 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"]))
22
- 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."; })) {
23
- setError(props.googleUserNotRegisteredError);
24
- }
25
- else {
26
- setError(props.networkErrorMessage);
27
- }
28
- return;
29
- }
30
- if ((_d = result.authenticateManagedIdentityWithGoogle) === null || _d === void 0 ? void 0 : _d.token) {
31
- urlParams.delete("nextPage");
32
- const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
33
- index_module.jn.push(url.href);
34
- }
35
- };
36
- const submit = async (event) => {
37
- var _a, _b;
38
- setError("");
39
- let formData = event.detail.formData;
40
- formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
41
- jsonpointer.jsonpointer.set(formData, key, value);
42
- });
43
- const variables = { email: formData.email, password: formData.password };
44
- const result = await request(variables);
45
- if (result instanceof Error) {
46
- 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"]))
47
- setError(props.networkErrorMessage);
48
- return;
49
- }
50
- if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
51
- urlParams.delete("nextPage");
52
- const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
53
- index_module.jn.push(url.href);
54
- }
55
- };
56
- 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) ||
57
- error;
58
- 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) ||
59
- error;
60
- return {
61
- states: {
62
- loading: loading || gLoading,
63
- error: errorMessage || googleErrorMessage,
64
- registerPath: props.registerPath,
65
- forgotPasswordPath: props.forgotPasswordPath,
66
- },
67
- callbacks: {
68
- googleSubmit,
69
- submit,
70
- },
71
- };
72
- }
73
-
74
- exports.usePortalLogin = usePortalLogin;
@@ -1,126 +0,0 @@
1
- import { r as registerInstance, h as h$1 } from './index-38ad4957.js';
2
- import { n as h } from './dom-context-hooks.module-50442785.js';
3
- import { i as isDemo, j as jn } from './index.module-0bef7c88.js';
4
- import './jsonpointer-388a7082.js';
5
- import { c as cjs } from './cjs-bdfb4486.js';
6
- import './utils-334c1e34.js';
7
- import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
- import './mixins-f750863a.js';
9
- import './sqm-text-span-view-738acfb3.js';
10
- import { P as PortalLoginView } from './sqm-portal-login-view-40f4f6f1.js';
11
- import { u as usePortalLogin } from './usePortalLogin-9f9ea240.js';
12
-
13
- const PortalGoogleLogin = class {
14
- constructor(hostRef) {
15
- registerInstance(this, hostRef);
16
- this.ignored = true;
17
- /**
18
- * Redirect participants to this page after they successfully login.
19
- *
20
- * @uiName Login redirect
21
- * @uiWidget pageSelect
22
- */
23
- this.nextPage = "/";
24
- /**
25
- * @uiName Email field label
26
- */
27
- this.emailLabel = "Email";
28
- /**
29
- * @uiName Password field label
30
- */
31
- this.passwordLabel = "Password";
32
- /**
33
- * @uiName Submit button text
34
- */
35
- this.submitLabel = "Sign In";
36
- /**
37
- * Redirect participants to this page to reset their password
38
- * @uiName Forgot password redirect
39
- * @uiWidget pageSelect
40
- */
41
- this.forgotPasswordPath = "/forgotPassword";
42
- /**
43
- * @uiName Forgot password text
44
- */
45
- this.forgotPasswordLabel = "Forgot Password?";
46
- /**
47
- * @uiName Register button text
48
- */
49
- this.registerLabel = "Register";
50
- /**
51
- * Redirect participants to this page to start registration.
52
- * @uiName Register button redirect
53
- * @uiWidget pageSelect
54
- */
55
- this.registerPath = "/register";
56
- /**
57
- * @uiName Heading label
58
- * @uiWidget textArea
59
- */
60
- this.pageLabel = "Sign in to your account";
61
- /**
62
- * @uiName Network error message
63
- * Displayed when the login fails due to a network error. The participant can try refreshing the page.
64
- */
65
- this.networkErrorMessage = "An error occurred while logging you in. Please refresh the page and try again.";
66
- /**
67
- * @uiName Google account error message
68
- * Displayed when user tries to sign in with Google account but has not registered.
69
- */
70
- this.googleUserNotRegisteredError = "Your Google account has not registered on our platform. Please complete the registration process with your Google account.";
71
- /**
72
- * @uiName Register CTA
73
- */
74
- this.registerCTA = "Don't have an account?";
75
- h(this);
76
- }
77
- disconnectedCallback() { }
78
- render() {
79
- const { states, callbacks } = isDemo()
80
- ? useLoginDemo(this)
81
- : usePortalLogin(this);
82
- const styles = {
83
- RegisterButton: {
84
- "&::part(label)": {
85
- padding: "0",
86
- },
87
- },
88
- };
89
- const sheet = createStyleSheet(styles);
90
- const styleString = sheet.toString();
91
- const content = {
92
- forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => jn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
93
- googleButton: (h$1("sqm-google-sign-in", { onInitComplete: callbacks.googleSubmit })),
94
- secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("style", null, styleString), h$1("span", null, this.registerCTA, " ", h$1("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => jn.push(states.registerPath), className: sheet.classes.RegisterButton }, this.registerLabel)))),
95
- emailLabel: this.emailLabel,
96
- passwordLabel: this.passwordLabel,
97
- submitLabel: this.submitLabel,
98
- pageLabel: this.pageLabel,
99
- };
100
- return (h$1(PortalLoginView, { states: states, callbacks: callbacks, content: content }));
101
- }
102
- };
103
- function useLoginDemo(props) {
104
- return cjs({
105
- states: {
106
- error: "",
107
- loading: false,
108
- forgotPasswordPath: "/forgotPassword",
109
- registerPath: "/register",
110
- showLoginForm: "manual",
111
- },
112
- callbacks: {
113
- googleSubmit: async () => {
114
- console.log("google submit");
115
- },
116
- submit: async (_event) => {
117
- console.log("submit");
118
- },
119
- },
120
- content: {
121
- googleButton: null,
122
- },
123
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
124
- }
125
-
126
- export { PortalGoogleLogin as sqm_portal_google_login };
@@ -1,56 +0,0 @@
1
- import { h } from './index-38ad4957.js';
2
- import { c as createStyleSheet } from './JSS-67b5cff8.js';
3
- import { A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer } from './mixins-f750863a.js';
4
- import { T as TextSpanView } from './sqm-text-span-view-738acfb3.js';
5
-
6
- const style = {
7
- Wrapper: AuthWrapper,
8
- Column: AuthColumn,
9
- ForgotButtonContainer: {
10
- display: "inline",
11
- cursor: "pointer",
12
- "font-size": "13px",
13
- "font-weight": "600",
14
- color: "var(--sqm-text-subdued)",
15
- margin: "0",
16
- },
17
- ButtonsContainer: {
18
- ...AuthButtonsContainer,
19
- gap: "var(--sl-spacing-medium)",
20
- "& > *": {
21
- margin: "0 !important",
22
- },
23
- },
24
- };
25
- const vanillaStyle = `
26
- :host {
27
- display: block;
28
- }
29
- :host([hidden]): {
30
- display: none;
31
- }
32
- `;
33
- const sheet = createStyleSheet(style);
34
- const styleString = sheet.toString();
35
- function PortalLoginView(props) {
36
- const { states, callbacks, content } = props;
37
- return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
38
- h("style", { type: "text/css" },
39
- vanillaStyle,
40
- styleString),
41
- h(TextSpanView, { type: "h3" }, content.pageLabel),
42
- h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
43
- props.states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
44
- h("div", { part: "erroralert-text" }, props.states.error))),
45
- h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
46
- h("div", null,
47
- h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
48
- h("div", { class: sheet.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
49
- h("div", { class: sheet.classes.ButtonsContainer },
50
- h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
51
- content.googleButton && h("sl-menu-divider", null),
52
- content.googleButton,
53
- content.secondaryButton))));
54
- }
55
-
56
- export { PortalLoginView as P };
@@ -1,190 +0,0 @@
1
- import { r as registerInstance, h as h$1 } from './index-38ad4957.js';
2
- import { n as h } from './dom-context-hooks.module-50442785.js';
3
- import { i as isDemo, j as jn } from './index.module-0bef7c88.js';
4
- import './jsonpointer-388a7082.js';
5
- import { c as cjs } from './cjs-bdfb4486.js';
6
- import './JSS-67b5cff8.js';
7
- import './mixins-f750863a.js';
8
- import './sqm-text-span-view-738acfb3.js';
9
- import './useRegistrationFormState-90b6af96.js';
10
- import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-2f4936ef.js';
11
- import './AsYouType-46f67d0d.js';
12
- import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-b448c386.js';
13
-
14
- const PortalRegistrationForm = class {
15
- constructor(hostRef) {
16
- registerInstance(this, hostRef);
17
- this.ignored = true;
18
- /**
19
- * Redirect participants to this page after they successfully register.
20
- *
21
- * @uiName Registration redirect
22
- * @uiWidget pageSelect
23
- */
24
- this.nextPage = "/";
25
- /**
26
- * Redirect participants to this page from their verification email
27
- *
28
- * @uiName Email verification redirect
29
- * @uiWidget pageSelect
30
- */
31
- this.redirectPath = "/verifyEmail";
32
- /**
33
- * @uiName Email field label
34
- */
35
- this.emailLabel = "Email";
36
- /**
37
- * @uiName Password field label
38
- */
39
- this.passwordLabel = "Password";
40
- /**
41
- * @uiName Submit button text
42
- */
43
- this.submitLabel = "Register";
44
- /**
45
- * @uiName Login button text
46
- */
47
- this.loginLabel = "Sign in";
48
- /**
49
- * @uiName Confirm password field label
50
- */
51
- this.confirmPasswordLabel = "Confirm Password";
52
- /**
53
- * @uiName Show confirm password field
54
- */
55
- this.confirmPassword = false;
56
- /**
57
- * @uiName Disable password validation
58
- */
59
- this.disablePasswordValidation = false;
60
- /**
61
- * 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.
62
- *
63
- * @uiName Hide default fields
64
- */
65
- this.hideInputs = false;
66
- /**
67
- * @uiName Header text
68
- */
69
- this.pageLabel = "Register";
70
- /**
71
- * Redirect participants to this page after clicking the login button.
72
- *
73
- * @uiName Login redirect
74
- * @uiWidget pageSelect
75
- */
76
- this.loginPath = "/login";
77
- /**
78
- * The message to be displayed when a required field is not filled.
79
- *
80
- * @uiName Required field message
81
- * @uiWidget textArea
82
- */
83
- this.requiredFieldErrorMessage = "Cannot be empty";
84
- /**
85
- * The message to be displayed when a the form submission fails unexpectedly.
86
- *
87
- * @uiName Network error message
88
- * @uiWidget textArea
89
- */
90
- this.networkErrorMessage = "Network request failed.";
91
- /**
92
- * The message to be displayed when password inputs do not match.
93
- *
94
- * @uiName Password mismatch message
95
- * @uiWidget textArea
96
- */
97
- this.passwordMismatchErrorMessage = "Passwords do not match.";
98
- /**
99
- * The message to be displayed when the email used is invalid or blocked.
100
- *
101
- * @uiName Invalid email message
102
- * @uiWidget textArea
103
- */
104
- this.invalidEmailErrorMessage = "Must be a valid email address";
105
- /**
106
- * The message to be displayed when the registration form is disabled.
107
- *
108
- * @uiName Form disabled message
109
- * @uiWidget textArea
110
- */
111
- this.formDisabledErrorMessage = "The registration form is currently disabled.";
112
- /**
113
- * @uiName Password requirement met
114
- */
115
- this.meetsRequirementsText = "Password has met all requirements";
116
- /**
117
- * @uiName Password requirement failed
118
- */
119
- this.doesNotMeetRequirementsText = "Password must meet the following requirements:";
120
- /**
121
- * @uiName Minimum length text
122
- */
123
- this.minErrorText = "be a minimum of 8 characters";
124
- /**
125
- * @uiName Missing uppercase text
126
- */
127
- this.uppercaseErrorText = "contain at least 1 uppercase character";
128
- /**
129
- * @uiName Missing lowercase text
130
- */
131
- this.lowercaseErrorText = "contain at least 1 lowercase character";
132
- /**
133
- * @uiName Missing number or symbol text
134
- */
135
- this.hasErrorText = "contain at least 1 number or symbol";
136
- h(this);
137
- }
138
- disconnectedCallback() { }
139
- render() {
140
- const { states, callbacks, refs } = isDemo()
141
- ? useRegisterDemo(this)
142
- : usePortalRegistrationForm(this);
143
- const content = {
144
- formData: h$1("slot", { name: "formData" }),
145
- secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => jn.push(states.loginPath) }, this.loginLabel))),
146
- terms: h$1("slot", { name: "terms" }),
147
- emailOptIn: h$1("slot", { name: "emailOptIn" }),
148
- emailLabel: this.emailLabel,
149
- passwordLabel: this.passwordLabel,
150
- submitLabel: this.submitLabel,
151
- pageLabel: this.pageLabel,
152
- confirmPasswordLabel: this.confirmPasswordLabel,
153
- networkErrorMessage: this.networkErrorMessage,
154
- passwordMismatchErrorMessage: this.passwordMismatchErrorMessage,
155
- invalidEmailErrorMessage: this.invalidEmailErrorMessage,
156
- formDisabledErrorMessage: this.formDisabledErrorMessage,
157
- requiredFieldErrorMessage: this.requiredFieldErrorMessage,
158
- meetsRequirementsText: this.meetsRequirementsText,
159
- doesNotMeetRequirementsText: this.doesNotMeetRequirementsText,
160
- minErrorText: this.minErrorText,
161
- uppercaseErrorText: this.uppercaseErrorText,
162
- lowercaseErrorText: this.lowercaseErrorText,
163
- hasErrorText: this.hasErrorText,
164
- };
165
- return (h$1(PortalRegistrationFormView, { states: states, callbacks: callbacks, content: content, refs: refs }));
166
- }
167
- };
168
- function useRegisterDemo(props) {
169
- return cjs({
170
- states: {
171
- error: "",
172
- loading: false,
173
- confirmPassword: props.confirmPassword,
174
- hideInputs: props.hideInputs || false,
175
- customPasswordField: false,
176
- loginPath: "/login",
177
- },
178
- callbacks: {
179
- submit: async (_event) => {
180
- console.log("submit");
181
- },
182
- inputFunction: () => { },
183
- },
184
- refs: {
185
- formRef: {},
186
- },
187
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
188
- }
189
-
190
- export { PortalRegistrationForm as sqm_portal_registration_form };
@@ -1,47 +0,0 @@
1
- import { h } from './index-38ad4957.js';
2
- import { c as createStyleSheet } from './JSS-67b5cff8.js';
3
- import { A as AuthWrapper, a as AuthColumn } from './mixins-f750863a.js';
4
- import { T as TextSpanView } from './sqm-text-span-view-738acfb3.js';
5
-
6
- const style = {
7
- Wrapper: AuthWrapper,
8
- Column: AuthColumn,
9
- ContinueButton: {
10
- width: "100%",
11
- },
12
- };
13
- const vanillaStyle = `
14
- :host {
15
- display: block;
16
- }
17
- :host([hidden]): {
18
- display: none;
19
- }
20
- `;
21
- const sheet = createStyleSheet(style);
22
- const styleString = sheet.toString();
23
- function PortalVerifyEmailView(props) {
24
- const { states, data, callbacks, content } = props;
25
- if (states.loading)
26
- return;
27
- if (states.success) {
28
- return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
29
- h("style", { type: "text/css" },
30
- vanillaStyle,
31
- styleString),
32
- h(TextSpanView, { type: "h3" }, content.verifyEmailText),
33
- h("sqm-form-message", { exportparts: "success-icon" },
34
- h("div", { part: "successalert-text" }, content.verifySuccessText)),
35
- h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.gotoNextPage, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.continueText)));
36
- }
37
- if (states.error || !data.oobCode) {
38
- return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
39
- h("style", { type: "text/css" }, styleString),
40
- h(TextSpanView, { type: "h3" }, content.verifyEmailText),
41
- h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
42
- h("div", { part: "erroralert-text" }, content.verifyInvalidText)),
43
- h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.failed, disabled: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.continueText)));
44
- }
45
- }
46
-
47
- export { PortalVerifyEmailView as P };