@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.
- package/dist/cjs/{ShadowViewAddon-ae3a32c3.js → ShadowViewAddon-31199cba.js} +230 -112
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_47.cjs.entry.js → sqm-big-stat_49.cjs.entry.js} +552 -13
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +1 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +108 -64
- package/dist/{esm/AsYouType-46f67d0d.js → cjs/usePortalRegistrationForm-8ed0d753.js} +215 -1
- package/dist/collection/components/sqm-portal-google-login/GoogleLoginForm.stories.js +37 -0
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +2 -1
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +0 -25
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/esm/{ShadowViewAddon-78a1c35c.js → ShadowViewAddon-49bebd13.js} +234 -118
- package/dist/esm/{data-a581119a.js → data-f2f77358.js} +2 -2
- package/dist/esm/{global-58a69018.js → global-5d501632.js} +1 -1
- package/dist/esm/{index.module-c9811a48.js → index.module-234e8f5e.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-7e22fb0d.js → re-render-b56bc163.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +8 -8
- package/dist/esm/{sqm-big-stat_47.entry.js → sqm-big-stat_49.entry.js} +559 -22
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +3 -3
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +3 -3
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-e461c8d6.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-9cf60eea.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-5a452423.js → sqm-navigation-sidebar-item-view-3d1b3be4.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-5fb1a99e.js → sqm-portal-email-verification-view-ec6d9b7e.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-36eae0a3.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-registration-form.entry.js +3 -4
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-stencilbook.entry.js +116 -72
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-user-info-form-view-9a3048d9.js → sqm-user-info-form-view-0a8999d0.js} +2 -2
- package/dist/esm/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm/sqm-widget-verification.entry.js +1 -1
- package/dist/esm/{useChildElements-3d872cef.js → useChildElements-daf489b1.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-dda1f52b.js → useInstantAccessRegistration-89e7dfc8.js} +2 -2
- package/dist/esm/{useLeadFormState-8d4b2620.js → useLeadFormState-d2f1c87d.js} +2 -2
- package/dist/esm/{usePayoutStatus-7404eb9d.js → usePayoutStatus-6be47a64.js} +1 -1
- package/dist/{cjs/AsYouType-6788393a.js → esm/usePortalRegistrationForm-fb06b600.js} +211 -2
- package/dist/esm/{useReferralCodes-c2e809cf.js → useReferralCodes-75d67509.js} +1 -1
- package/dist/esm/{useReferralTable-909ccb28.js → useReferralTable-8e0acee0.js} +3 -3
- package/dist/esm/{useRegistrationFormState-24d594ea.js → useRegistrationFormState-a9e156e6.js} +1 -1
- package/dist/esm/{useVerificationEmail-55e0e98f.js → useVerificationEmail-66b40965.js} +1 -1
- package/dist/esm/{utilities-72c07b09.js → utilities-e6f8716e.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-49bebd13.js +1 -0
- package/dist/esm-es5/{data-a581119a.js → data-f2f77358.js} +1 -1
- package/dist/esm-es5/{global-58a69018.js → global-5d501632.js} +1 -1
- package/dist/esm-es5/{index.module-c9811a48.js → index.module-234e8f5e.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-7e22fb0d.js → re-render-b56bc163.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_49.entry.js +1 -0
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-e461c8d6.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-9cf60eea.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-5a452423.js → sqm-navigation-sidebar-item-view-3d1b3be4.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-5fb1a99e.js → sqm-portal-email-verification-view-ec6d9b7e.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-36eae0a3.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-user-info-form-view-9a3048d9.js → sqm-user-info-form-view-0a8999d0.js} +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-3d872cef.js → useChildElements-daf489b1.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-dda1f52b.js → useInstantAccessRegistration-89e7dfc8.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-8d4b2620.js → useLeadFormState-d2f1c87d.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-7404eb9d.js → usePayoutStatus-6be47a64.js} +1 -1
- package/dist/esm-es5/usePortalRegistrationForm-fb06b600.js +1 -0
- package/dist/esm-es5/{useReferralCodes-c2e809cf.js → useReferralCodes-75d67509.js} +1 -1
- package/dist/esm-es5/{useReferralTable-909ccb28.js → useReferralTable-8e0acee0.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-24d594ea.js → useRegistrationFormState-a9e156e6.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-55e0e98f.js → useVerificationEmail-66b40965.js} +1 -1
- package/dist/esm-es5/{utilities-72c07b09.js → utilities-e6f8716e.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-b00e8365.entry.js → p-01aa5c0d.entry.js} +1 -1
- package/dist/mint-components/{p-26a7051d.system.entry.js → p-04603078.system.entry.js} +1 -1
- package/dist/mint-components/{p-171310d9.system.js → p-08c49143.system.js} +1 -1
- package/dist/mint-components/{p-6076dbaf.entry.js → p-0b6b03fa.entry.js} +1 -1
- package/dist/mint-components/{p-1215518e.system.js → p-0ba04831.system.js} +1 -1
- package/dist/mint-components/{p-12e6cea7.entry.js → p-0bd7de3e.entry.js} +2 -2
- package/dist/mint-components/{p-988f236f.js → p-0e1f3ce2.js} +1 -1
- package/dist/mint-components/{p-49400aab.js → p-10ad4cec.js} +2 -2
- package/dist/mint-components/{p-9eba8408.js → p-177a4691.js} +1 -1
- package/dist/mint-components/p-1830bbfb.js +1 -0
- package/dist/mint-components/{p-5b7a896e.system.entry.js → p-234d0680.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7e35f51.system.js → p-23c58c4f.system.js} +2 -2
- package/dist/mint-components/{p-17a0f310.system.js → p-23d089ee.system.js} +1 -1
- package/dist/mint-components/{p-1aa9136c.js → p-24e20ee2.js} +1 -1
- package/dist/mint-components/p-259285a8.system.entry.js +1 -0
- package/dist/mint-components/{p-40c33b6a.system.entry.js → p-26796f69.system.entry.js} +1 -1
- package/dist/mint-components/p-26fdb210.js +1 -0
- package/dist/mint-components/{p-6c82d60c.system.js → p-286aa5b9.system.js} +1 -1
- package/dist/mint-components/{p-9c79ab08.js → p-2ce4c7a3.js} +2 -2
- package/dist/mint-components/{p-4cc72a4e.system.js → p-2dcb0db6.system.js} +1 -1
- package/dist/mint-components/{p-c30ad421.js → p-323c6d02.js} +1 -1
- package/dist/mint-components/{p-720f03e2.system.js → p-33e1a29e.system.js} +1 -1
- package/dist/mint-components/{p-ba79655c.system.js → p-342921b9.system.js} +1 -1
- package/dist/mint-components/{p-a32afaaa.entry.js → p-3825831b.entry.js} +1 -1
- package/dist/mint-components/{p-2700136f.system.entry.js → p-38ed3cbd.system.entry.js} +1 -1
- package/dist/mint-components/{p-c95a437e.entry.js → p-3d02278d.entry.js} +1 -1
- package/dist/mint-components/{p-0c024cf0.system.entry.js → p-3d12a14b.system.entry.js} +1 -1
- package/dist/mint-components/{p-f5256738.system.entry.js → p-3ed269bf.system.entry.js} +1 -1
- package/dist/mint-components/{p-6a5df328.js → p-3fede0f7.js} +1 -1
- package/dist/mint-components/{p-625ca62f.entry.js → p-3ff0f231.entry.js} +1 -1
- package/dist/mint-components/{p-e1422b78.entry.js → p-4363a896.entry.js} +1 -1
- package/dist/mint-components/{p-f3613921.system.entry.js → p-476a8091.system.entry.js} +1 -1
- package/dist/mint-components/{p-7780cac1.system.entry.js → p-50eaba5b.system.entry.js} +1 -1
- package/dist/mint-components/{p-d09d3b8f.system.js → p-51e5a7da.system.js} +1 -1
- package/dist/mint-components/p-52398c8e.system.entry.js +1 -0
- package/dist/mint-components/{p-2ea3eea9.system.entry.js → p-527c0244.system.entry.js} +1 -1
- package/dist/mint-components/{p-72b914b9.system.entry.js → p-536a5aff.system.entry.js} +1 -1
- package/dist/mint-components/p-5784be79.system.entry.js +1 -0
- package/dist/mint-components/{p-e3b4e06a.system.entry.js → p-5af01051.system.entry.js} +1 -1
- package/dist/mint-components/{p-3b46fae5.entry.js → p-5d17b387.entry.js} +1 -1
- package/dist/mint-components/{p-d9780ae9.entry.js → p-5de55368.entry.js} +1 -1
- package/dist/mint-components/{p-78c754de.system.entry.js → p-612091c6.system.entry.js} +1 -1
- package/dist/mint-components/{p-c6e8086f.system.entry.js → p-62d018f0.system.entry.js} +1 -1
- package/dist/mint-components/{p-dc5bca55.entry.js → p-636a841f.entry.js} +1 -1
- package/dist/mint-components/{p-829cb9ed.system.entry.js → p-63a928e0.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7e49c12.entry.js → p-65f79e43.entry.js} +1 -1
- package/dist/mint-components/{p-9d46f87f.system.entry.js → p-6a0440ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-9ba07029.system.entry.js → p-702f3adb.system.entry.js} +1 -1
- package/dist/mint-components/{p-d399b343.system.entry.js → p-72321b06.system.entry.js} +1 -1
- package/dist/mint-components/p-72d6c425.system.js +1 -0
- package/dist/mint-components/{p-8afb47c5.system.entry.js → p-73aeefed.system.entry.js} +1 -1
- package/dist/mint-components/{p-0ec54f97.js → p-747479dc.js} +1 -1
- package/dist/mint-components/{p-101f0c41.entry.js → p-78fc0c3c.entry.js} +1 -1
- package/dist/mint-components/{p-71af93e3.js → p-7ab26f3d.js} +1 -1
- package/dist/mint-components/{p-0087ad39.system.js → p-825b39e0.system.js} +1 -1
- package/dist/mint-components/{p-8618e8f6.system.js → p-828d27ac.system.js} +1 -1
- package/dist/mint-components/{p-8d9fa981.system.js → p-844aaef2.system.js} +1 -1
- package/dist/mint-components/p-84911f08.system.js +1 -0
- package/dist/mint-components/{p-9491f5fb.system.entry.js → p-8752bcd1.system.entry.js} +1 -1
- package/dist/mint-components/{p-867b2baf.system.js → p-8901a533.system.js} +1 -1
- package/dist/mint-components/{p-5fbe6356.system.js → p-8bf8afb9.system.js} +1 -1
- package/dist/mint-components/{p-ac86903a.system.entry.js → p-8dda2a7f.system.entry.js} +1 -1
- package/dist/mint-components/{p-43ad51bc.entry.js → p-930f37bd.entry.js} +1 -1
- package/dist/mint-components/p-964b09f2.js +1 -0
- package/dist/mint-components/p-96749142.entry.js +273 -0
- package/dist/mint-components/{p-e174b704.system.js → p-96b16a48.system.js} +1 -1
- package/dist/mint-components/{p-ff0e1564.system.js → p-98e0a022.system.js} +1 -1
- package/dist/mint-components/{p-bf044217.js → p-9953648f.js} +1 -1
- package/dist/mint-components/p-9ad42a61.entry.js +1 -0
- package/dist/mint-components/{p-e19f0908.entry.js → p-9c4cac09.entry.js} +2 -2
- package/dist/mint-components/{p-f3c2074b.system.entry.js → p-9c80871f.system.entry.js} +1 -1
- package/dist/mint-components/{p-e8bda98a.system.entry.js → p-9d19a0f7.system.entry.js} +1 -1
- package/dist/mint-components/{p-8931d05e.entry.js → p-9da60671.entry.js} +1 -1
- package/dist/mint-components/p-9ef4172c.entry.js +1 -0
- package/dist/mint-components/p-a6e177d8.system.entry.js +1 -0
- package/dist/mint-components/{p-027c0b10.js → p-a82c8b60.js} +1 -1
- package/dist/mint-components/p-ab38b332.system.js +1 -0
- package/dist/mint-components/{p-58c79873.entry.js → p-ad550231.entry.js} +1 -1
- package/dist/mint-components/p-af123d2b.system.js +1 -0
- package/dist/mint-components/p-b08373f5.entry.js +9 -0
- package/dist/mint-components/{p-bb5d153f.system.js → p-b5559e34.system.js} +1 -1
- package/dist/mint-components/{p-dcc50d90.entry.js → p-bb476395.entry.js} +1 -1
- package/dist/mint-components/{p-bcac83f0.system.js → p-c09d2b35.system.js} +1 -1
- package/dist/mint-components/{p-deecffd0.system.entry.js → p-c16d9c80.system.entry.js} +1 -1
- package/dist/mint-components/p-c4e08253.js +13 -0
- package/dist/mint-components/{p-fcf8bdbc.system.entry.js → p-c7f34690.system.entry.js} +1 -1
- package/dist/mint-components/{p-29398c98.entry.js → p-c7f385d3.entry.js} +1 -1
- package/dist/mint-components/{p-ee92a728.system.entry.js → p-c8f2c3b8.system.entry.js} +1 -1
- package/dist/mint-components/{p-f6eae77c.js → p-cbeab288.js} +1 -1
- package/dist/mint-components/{p-a4e8eb33.entry.js → p-cbf3a928.entry.js} +1 -1
- package/dist/mint-components/{p-a974c549.js → p-cd3ba2b4.js} +1 -1
- package/dist/mint-components/p-d15947d0.js +448 -0
- package/dist/mint-components/{p-011c0990.system.entry.js → p-d170e29a.system.entry.js} +1 -1
- package/dist/mint-components/{p-7e323f2c.entry.js → p-d3f86ec6.entry.js} +1 -1
- package/dist/mint-components/p-d49de8ea.entry.js +11 -0
- package/dist/mint-components/{p-29ba2eaa.entry.js → p-d9f01878.entry.js} +1 -1
- package/dist/mint-components/{p-386ec00c.entry.js → p-de0566e1.entry.js} +1 -1
- package/dist/mint-components/{p-f5fff87e.js → p-e08b7435.js} +1 -1
- package/dist/mint-components/{p-36a1fa33.system.entry.js → p-e1a08323.system.entry.js} +1 -1
- package/dist/mint-components/{p-60ec0961.system.entry.js → p-e1a7d141.system.entry.js} +1 -1
- package/dist/mint-components/{p-a8c86cd8.system.entry.js → p-eacd3c8f.system.entry.js} +1 -1
- package/dist/mint-components/p-ebde83fc.entry.js +1 -0
- package/dist/mint-components/{p-621f3e30.entry.js → p-ec9027cf.entry.js} +1 -1
- package/dist/mint-components/{p-af69ee79.system.entry.js → p-ed7ab864.system.entry.js} +1 -1
- package/dist/mint-components/{p-088f082f.js → p-eff405e5.js} +1 -1
- package/dist/mint-components/{p-ee3a7577.entry.js → p-f08dd2a8.entry.js} +1 -1
- package/dist/mint-components/{p-0b9b1b36.system.entry.js → p-f237f96d.system.entry.js} +1 -1
- package/dist/mint-components/{p-ad3ebf4d.entry.js → p-f776cd83.entry.js} +1 -1
- package/dist/mint-components/p-f84706aa.entry.js +13 -0
- package/dist/mint-components/p-f862be0b.entry.js +1 -0
- package/dist/mint-components/{p-8de73da9.js → p-fb8927aa.js} +1 -1
- package/dist/mint-components/{p-30278955.entry.js → p-fc7d85c7.entry.js} +1 -1
- package/dist/mint-components/{p-75b8fd75.entry.js → p-fe14d2af.entry.js} +1 -1
- package/dist/types/components/sqm-portal-google-login/GoogleLoginForm.stories.d.ts +7 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -4
- package/dist/types/components.d.ts +0 -8
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-base-registration-form-view-69a4b615.js +0 -74
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +0 -130
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +0 -381
- package/dist/cjs/sqm-portal-login-view-bb50304c.js +0 -58
- package/dist/cjs/usePortalLogin-1c022d8d.js +0 -74
- package/dist/cjs/usePortalRegistrationForm-75b647fe.js +0 -215
- package/dist/esm/sqm-base-registration-form-view-9e97d8b4.js +0 -72
- package/dist/esm/sqm-portal-google-login.entry.js +0 -126
- package/dist/esm/sqm-portal-google-registration-form.entry.js +0 -377
- package/dist/esm/sqm-portal-login-view-7670cd86.js +0 -56
- package/dist/esm/usePortalLogin-f95bbc67.js +0 -72
- package/dist/esm/usePortalRegistrationForm-1eb3cd72.js +0 -213
- package/dist/esm-es5/AsYouType-46f67d0d.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-78a1c35c.js +0 -1
- package/dist/esm-es5/sqm-base-registration-form-view-9e97d8b4.js +0 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +0 -1
- package/dist/esm-es5/usePortalLogin-f95bbc67.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-1eb3cd72.js +0 -1
- package/dist/mint-components/p-121cdc60.js +0 -1
- package/dist/mint-components/p-125a894f.js +0 -1
- package/dist/mint-components/p-1b79b186.entry.js +0 -11
- package/dist/mint-components/p-1cd0e1e9.system.js +0 -1
- package/dist/mint-components/p-20c40fdf.system.js +0 -1
- package/dist/mint-components/p-240bec23.js +0 -1
- package/dist/mint-components/p-28e23d75.system.entry.js +0 -1
- package/dist/mint-components/p-40752a0f.entry.js +0 -1
- package/dist/mint-components/p-44fc6029.js +0 -1
- package/dist/mint-components/p-513f5d80.js +0 -1
- package/dist/mint-components/p-51a6a779.js +0 -1
- package/dist/mint-components/p-537a3894.system.js +0 -1
- package/dist/mint-components/p-6559d0b2.entry.js +0 -273
- package/dist/mint-components/p-6a0ddee0.entry.js +0 -1
- package/dist/mint-components/p-74a39425.system.entry.js +0 -1
- package/dist/mint-components/p-80569911.system.js +0 -1
- package/dist/mint-components/p-92a54b0c.entry.js +0 -1
- package/dist/mint-components/p-947bacd1.system.js +0 -1
- package/dist/mint-components/p-95b6e903.entry.js +0 -1
- package/dist/mint-components/p-976ee669.js +0 -1
- package/dist/mint-components/p-97dc6863.js +0 -13
- package/dist/mint-components/p-9d362d44.system.js +0 -1
- package/dist/mint-components/p-a470e203.entry.js +0 -13
- package/dist/mint-components/p-b3510ca0.system.entry.js +0 -1
- package/dist/mint-components/p-bd093069.system.entry.js +0 -1
- package/dist/mint-components/p-cc8ca3ff.system.entry.js +0 -1
- package/dist/mint-components/p-d08bcd88.entry.js +0 -1
- package/dist/mint-components/p-d69c0a32.system.entry.js +0 -1
- package/dist/mint-components/p-d88d8ffe.entry.js +0 -1
- package/dist/mint-components/p-e115d0a2.entry.js +0 -9
- package/dist/mint-components/p-e3ee8c37.system.js +0 -1
- package/dist/mint-components/p-ee83de0e.js +0 -448
- package/dist/mint-components/p-f5820d03.system.js +0 -1
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
4
|
-
const index_module = require('./index.module-4f54e412.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,215 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
4
|
-
const index_module = require('./index.module-4f54e412.js');
|
|
5
|
-
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
6
|
-
const useRegistrationFormState = require('./useRegistrationFormState-bbee6e7b.js');
|
|
7
|
-
const AsYouType = require('./AsYouType-6788393a.js');
|
|
8
|
-
|
|
9
|
-
const RegistrationFormQuery = index_module.dist.gql `
|
|
10
|
-
query RegistrationFormQuery($key: String!) {
|
|
11
|
-
form(key: $key) {
|
|
12
|
-
key
|
|
13
|
-
type
|
|
14
|
-
initialData {
|
|
15
|
-
initialData
|
|
16
|
-
isEnabled
|
|
17
|
-
isEnabledErrorMessage
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
function usePortalRegistrationForm(props) {
|
|
23
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
24
|
-
const formRef = domContextHooks_module.useRef(null);
|
|
25
|
-
const locale = index_module.L();
|
|
26
|
-
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
27
|
-
const [request, { loading, errors, data, formError }] = index_module.Oe();
|
|
28
|
-
const queryResponse = index_module.wn(RegistrationFormQuery, { key: props.formKey });
|
|
29
|
-
const formLoading = loading || queryResponse.loading;
|
|
30
|
-
domContextHooks_module.useEffect(() => {
|
|
31
|
-
var _a, _b, _c;
|
|
32
|
-
const initialData = (_a = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _a === void 0 ? void 0 : _a.form.initialData.initialData;
|
|
33
|
-
const disabled = ((_b = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _b === void 0 ? void 0 : _b.form.initialData.isEnabled) === false;
|
|
34
|
-
const disabledMessage = ((_c = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _c === void 0 ? void 0 : _c.form.initialData.isEnabledErrorMessage) ||
|
|
35
|
-
props.formDisabledErrorMessage;
|
|
36
|
-
const formState = {
|
|
37
|
-
loading: formLoading,
|
|
38
|
-
disabled,
|
|
39
|
-
disabledMessage,
|
|
40
|
-
initialData,
|
|
41
|
-
};
|
|
42
|
-
setRegistrationFormState(formState);
|
|
43
|
-
}, [(_a = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _a === void 0 ? void 0 : _a.form.initialData]);
|
|
44
|
-
domContextHooks_module.useEffect(() => {
|
|
45
|
-
if (!formRef.current)
|
|
46
|
-
return;
|
|
47
|
-
const form = formRef.current;
|
|
48
|
-
form.addEventListener("sl-input", inputFunction);
|
|
49
|
-
return () => {
|
|
50
|
-
form.removeEventListener("sl-input", inputFunction);
|
|
51
|
-
};
|
|
52
|
-
}, [formRef.current]);
|
|
53
|
-
const submit = async (event) => {
|
|
54
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
55
|
-
let formControls = event.target.getFormControls();
|
|
56
|
-
let formData = {};
|
|
57
|
-
let validationErrors = {};
|
|
58
|
-
formControls === null || formControls === void 0 ? void 0 : formControls.forEach((control) => {
|
|
59
|
-
if (!control.name)
|
|
60
|
-
return;
|
|
61
|
-
const key = control.name;
|
|
62
|
-
const value = control.value;
|
|
63
|
-
// control.value = initialData[key] || control.value;
|
|
64
|
-
jsonpointer.jsonpointer.set(formData, key, value);
|
|
65
|
-
// required validation
|
|
66
|
-
if (control.required && !value) {
|
|
67
|
-
jsonpointer.jsonpointer.set(validationErrors, key, props.requiredFieldErrorMessage);
|
|
68
|
-
}
|
|
69
|
-
// custom validation
|
|
70
|
-
if (typeof control.validationError === "function") {
|
|
71
|
-
const validate = control.validationError;
|
|
72
|
-
const validationError = validate({ control, key, value });
|
|
73
|
-
if (validationError)
|
|
74
|
-
jsonpointer.jsonpointer.set(validationErrors, key, validationError);
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
if ((props.confirmPassword || formData.confirmPassword) &&
|
|
78
|
-
formData.password !== formData.confirmPassword) {
|
|
79
|
-
validationErrors = {
|
|
80
|
-
...validationErrors,
|
|
81
|
-
confirmPassword: props.passwordMismatchErrorMessage,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
if (Object.keys(validationErrors).length) {
|
|
85
|
-
// early return for validation errors
|
|
86
|
-
setRegistrationFormState({
|
|
87
|
-
...registrationFormState,
|
|
88
|
-
loading: false,
|
|
89
|
-
error: "",
|
|
90
|
-
validationErrors,
|
|
91
|
-
});
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
setRegistrationFormState({
|
|
95
|
-
...registrationFormState,
|
|
96
|
-
loading: true,
|
|
97
|
-
error: "",
|
|
98
|
-
validationErrors: {},
|
|
99
|
-
});
|
|
100
|
-
const { email, password } = formData;
|
|
101
|
-
delete formData.email;
|
|
102
|
-
delete formData.password;
|
|
103
|
-
delete formData.confirmPassword;
|
|
104
|
-
const redirectPath = props.redirectPath;
|
|
105
|
-
const _googleOAuthIdToken = registrationFormState._googleOAuthIdToken;
|
|
106
|
-
const variables = {
|
|
107
|
-
key: props.formKey,
|
|
108
|
-
formData: {
|
|
109
|
-
...(_googleOAuthIdToken ? { _googleOAuthIdToken } : {}),
|
|
110
|
-
locale,
|
|
111
|
-
email,
|
|
112
|
-
password,
|
|
113
|
-
redirectPath,
|
|
114
|
-
...formData,
|
|
115
|
-
},
|
|
116
|
-
};
|
|
117
|
-
try {
|
|
118
|
-
const result = await request(variables);
|
|
119
|
-
if (result instanceof Error) {
|
|
120
|
-
throw result;
|
|
121
|
-
}
|
|
122
|
-
setRegistrationFormState({
|
|
123
|
-
...registrationFormState,
|
|
124
|
-
loading: false,
|
|
125
|
-
error: "",
|
|
126
|
-
validationErrors: {},
|
|
127
|
-
});
|
|
128
|
-
const managedIdentityResponse = (_a = result.submitForm) === null || _a === void 0 ? void 0 : _a.results.find((result) => { var _a; return ((_a = result === null || result === void 0 ? void 0 : result.formHandler) === null || _a === void 0 ? void 0 : _a.namespace) === "identity"; });
|
|
129
|
-
if (managedIdentityResponse &&
|
|
130
|
-
managedIdentityResponse.result.results.length &&
|
|
131
|
-
managedIdentityResponse.result.results[0].success &&
|
|
132
|
-
managedIdentityResponse.result.results[0].data.token) {
|
|
133
|
-
index_module.jn.push(props.nextPage);
|
|
134
|
-
}
|
|
135
|
-
else if (
|
|
136
|
-
// check for blocked email error response
|
|
137
|
-
((_b = result.submitForm) === null || _b === void 0 ? void 0 : _b.results.length) === 1 &&
|
|
138
|
-
((_f = (_e = (_d = (_c = result.submitForm) === null || _c === void 0 ? void 0 : _c.results[0]) === null || _d === void 0 ? void 0 : _d.result) === null || _e === void 0 ? void 0 : _e.results) === null || _f === void 0 ? void 0 : _f.length) === 1 &&
|
|
139
|
-
((_l = (_k = (_j = (_h = (_g = result.submitForm) === null || _g === void 0 ? void 0 : _g.results[0]) === null || _h === void 0 ? void 0 : _h.result) === null || _j === void 0 ? void 0 : _j.results) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.success) ===
|
|
140
|
-
false && ((_s = (_r = (_q = (_p = (_o = (_m = result.submitForm) === null || _m === void 0 ? void 0 : _m.results[0]) === null || _o === void 0 ? void 0 : _o.result) === null || _p === void 0 ? void 0 : _p.results) === null || _q === void 0 ? void 0 : _q[0]) === null || _r === void 0 ? void 0 : _r.message) === null || _s === void 0 ? void 0 : _s.startsWith("Blocked email"))) {
|
|
141
|
-
setRegistrationFormState({
|
|
142
|
-
...registrationFormState,
|
|
143
|
-
loading: false,
|
|
144
|
-
error: "",
|
|
145
|
-
validationErrors: {
|
|
146
|
-
email: props.invalidEmailErrorMessage,
|
|
147
|
-
},
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
catch (error) {
|
|
152
|
-
// check for invalid email
|
|
153
|
-
if ((_t = error === null || error === void 0 ? void 0 : error.message) === null || _t === void 0 ? void 0 : _t.includes("is not a valid email address")) {
|
|
154
|
-
setRegistrationFormState({
|
|
155
|
-
...registrationFormState,
|
|
156
|
-
loading: false,
|
|
157
|
-
error: "",
|
|
158
|
-
validationErrors: { email: props.invalidEmailErrorMessage },
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
setRegistrationFormState({
|
|
163
|
-
...registrationFormState,
|
|
164
|
-
loading: false,
|
|
165
|
-
error: props.networkErrorMessage,
|
|
166
|
-
validationErrors: {},
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
const inputFunction = index_module.useCallback((e) => {
|
|
172
|
-
var _a, _b;
|
|
173
|
-
const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
174
|
-
if (name !== "tel")
|
|
175
|
-
return;
|
|
176
|
-
const asYouType = new AsYouType.AsYouType("US");
|
|
177
|
-
e.target.value = asYouType.input(e.target.value);
|
|
178
|
-
}, []);
|
|
179
|
-
let errorMessage = "";
|
|
180
|
-
if (((_b = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _b === void 0 ? void 0 : _b.form.initialData.isEnabled) === false) {
|
|
181
|
-
errorMessage =
|
|
182
|
-
((_c = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _c === void 0 ? void 0 : _c.form.initialData.isEnabledErrorMessage) ||
|
|
183
|
-
props.formDisabledErrorMessage;
|
|
184
|
-
}
|
|
185
|
-
else if ((_d = errors === null || errors === void 0 ? void 0 : errors.response) === null || _d === void 0 ? void 0 : _d["error"]) {
|
|
186
|
-
errorMessage = props.networkErrorMessage;
|
|
187
|
-
}
|
|
188
|
-
else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors.length)) {
|
|
189
|
-
errorMessage = props.networkErrorMessage;
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
errorMessage =
|
|
193
|
-
formError || ((_j = (_h = (_g = (_f = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.errors) === null || _f === void 0 ? void 0 : _f.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.error);
|
|
194
|
-
}
|
|
195
|
-
return {
|
|
196
|
-
states: {
|
|
197
|
-
loading: loading || queryResponse.loading,
|
|
198
|
-
error: errorMessage,
|
|
199
|
-
registrationFormState,
|
|
200
|
-
confirmPassword: props.confirmPassword,
|
|
201
|
-
hideInputs: props.hideInputs,
|
|
202
|
-
loginPath: props.loginPath,
|
|
203
|
-
enablePasswordValidation: !props.disablePasswordValidation,
|
|
204
|
-
},
|
|
205
|
-
callbacks: {
|
|
206
|
-
submit,
|
|
207
|
-
inputFunction,
|
|
208
|
-
},
|
|
209
|
-
refs: {
|
|
210
|
-
formRef,
|
|
211
|
-
},
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
exports.usePortalRegistrationForm = usePortalRegistrationForm;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { h } from './index-b3a06de8.js';
|
|
2
|
-
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
3
|
-
import { A as AuthWrapper, a as AuthColumn, H as HostBlock, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f750863a.js';
|
|
4
|
-
import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
|
|
5
|
-
|
|
6
|
-
const style = {
|
|
7
|
-
Wrapper: AuthWrapper,
|
|
8
|
-
Column: AuthColumn,
|
|
9
|
-
HostBlock: HostBlock,
|
|
10
|
-
":host": {
|
|
11
|
-
margin: "0 auto",
|
|
12
|
-
width: "100%",
|
|
13
|
-
},
|
|
14
|
-
ButtonsContainer: {
|
|
15
|
-
...AuthButtonsContainer,
|
|
16
|
-
gap: "var(--sl-spacing-medium)",
|
|
17
|
-
"& > *": {
|
|
18
|
-
margin: "0 !important",
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
ErrorStyle: ErrorStyles,
|
|
22
|
-
};
|
|
23
|
-
const vanillaStyle = `
|
|
24
|
-
sqm-portal-register {
|
|
25
|
-
margin: 0 auto;
|
|
26
|
-
width: 100%;
|
|
27
|
-
display: block;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host{
|
|
31
|
-
display: block;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([hidden]) {
|
|
35
|
-
display: none;
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
|
-
const sheet = createStyleSheet(style);
|
|
39
|
-
const styleString = sheet.toString();
|
|
40
|
-
function BaseRegistrationFormView(props) {
|
|
41
|
-
var _a, _b;
|
|
42
|
-
const { states, content, callbacks } = props;
|
|
43
|
-
return (h("div", { class: sheet.classes.Wrapper },
|
|
44
|
-
h("style", { type: "text/css" },
|
|
45
|
-
vanillaStyle,
|
|
46
|
-
styleString),
|
|
47
|
-
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
48
|
-
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
|
|
49
|
-
content.formData,
|
|
50
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
51
|
-
if (!value) {
|
|
52
|
-
return content.requiredFieldErrorMessage;
|
|
53
|
-
}
|
|
54
|
-
// this matches shoelace validation, but could be better
|
|
55
|
-
if (!value.includes("@")) {
|
|
56
|
-
return content.invalidEmailErrorMessage;
|
|
57
|
-
}
|
|
58
|
-
} }, (((_a = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _a === void 0 ? void 0 : _a.email) ? {
|
|
59
|
-
class: sheet.classes.ErrorStyle,
|
|
60
|
-
helpText: ((_b = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ||
|
|
61
|
-
content.requiredFieldErrorMessage,
|
|
62
|
-
}
|
|
63
|
-
: []))),
|
|
64
|
-
content.terms,
|
|
65
|
-
h("div", { class: sheet.classes.ButtonsContainer },
|
|
66
|
-
h("sl-button", { submit: true, exportparts: "base: primarybutton-base", type: "primary", style: { margin: "0" } }, content.submitLabel || "Register"),
|
|
67
|
-
h("sl-menu-divider", { style: { margin: "0" } }),
|
|
68
|
-
content.googleButton,
|
|
69
|
-
content.secondaryButton))));
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export { BaseRegistrationFormView as B };
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
2
|
-
import { n as h } from './dom-context-hooks.module-63370afd.js';
|
|
3
|
-
import { i as isDemo, j as jn } from './index.module-c9811a48.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-4c17b8c9.js';
|
|
10
|
-
import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
|
|
11
|
-
import { u as usePortalLogin } from './usePortalLogin-f95bbc67.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 };
|