@saasquatch/mint-components 1.8.5-33 → 1.8.5-34
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-89ba2ab0.js → ShadowViewAddon-b285d364.js} +6 -6
- package/dist/cjs/{global-468407e1.js → global-fd79514d.js} +2 -2
- package/dist/cjs/{index.module-caa31174.js → index.module-ac19badb.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{luxon-a4661470.js → luxon-c1ebc026.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{mockRewardData-8e760564.js → mockRewardData-7f84344c.js} +1 -1
- package/dist/cjs/{re-render-941b676e.js → re-render-091ef96d.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +8 -8
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +9 -9
- package/dist/cjs/sqm-close-button.cjs.entry.js +2 -2
- package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-form-message.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +2 -2
- package/dist/cjs/sqm-header-logo.cjs.entry.js +1 -1
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-invoice-table-view-501f8985.js → sqm-invoice-table-view-da07aaab.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +3 -3
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-navigation-sidebar-item-view-7f79627b.js → sqm-navigation-sidebar-item-view-acf543fc.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/sqm-password-field.cjs.entry.js +3 -3
- package/dist/cjs/sqm-popup-container.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-8f15bace.js → sqm-portal-email-verification-view-0cca3c71.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-d8697f23.js → sqm-portal-profile-view-02e392ba.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-f2952402.js → sqm-portal-verify-email-view-7ffcc0d4.js} +2 -8
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +34 -45
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -8
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +8 -8
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +14 -12
- package/dist/cjs/sqm-tab.cjs.entry.js +3 -3
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{stencil-hooks.module-faabb426.js → stencil-hooks.module-0f3e94a3.js} +1 -1
- package/dist/cjs/{useChildElements-f1923bc6.js → useChildElements-176e7212.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-fe258c50.js → useInstantAccessRegistration-665f2756.js} +3 -3
- package/dist/cjs/{useReferralTable-7244325a.js → useReferralTable-33aa6f6a.js} +4 -4
- package/dist/cjs/{useRegistrationFormState-ad3190c9.js → useRegistrationFormState-86d04ba7.js} +2 -2
- package/dist/cjs/{utilities-73df97e1.js → utilities-62a88e67.js} +2 -2
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +2 -0
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +2 -8
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +3 -1
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +29 -43
- package/dist/esm/{ShadowViewAddon-c22043d9.js → ShadowViewAddon-0c8347e5.js} +6 -6
- package/dist/esm/{global-938df634.js → global-6be71d24.js} +2 -2
- package/dist/esm/{index.module-ba0ed7a8.js → index.module-efb7f90d.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{luxon-4706d11b.js → luxon-f94e4101.js} +1 -1
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{mockRewardData-6f03c9fb.js → mockRewardData-1f5c203f.js} +1 -1
- package/dist/esm/{re-render-b61a14be.js → re-render-e48b78b0.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +8 -8
- package/dist/esm/sqm-big-stat_38.entry.js +9 -9
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +2 -2
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +4 -4
- package/dist/esm/{sqm-invoice-table-view-d00894ce.js → sqm-invoice-table-view-d1b2031f.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -3
- package/dist/esm/sqm-logout-current-user.entry.js +2 -2
- package/dist/esm/{sqm-navigation-sidebar-item-view-d3484a50.js → sqm-navigation-sidebar-item-view-512bcfd6.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-33b24b91.js → sqm-portal-email-verification-view-cddbed4e.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +2 -2
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-13f0ef79.js → sqm-portal-profile-view-c7a2c8ba.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +5 -5
- package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-2e1dabcc.js → sqm-portal-verify-email-view-d7ea2c56.js} +2 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +34 -45
- package/dist/esm/sqm-referral-table_11.entry.js +8 -8
- package/dist/esm/sqm-referred-registration.entry.js +4 -4
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +8 -8
- package/dist/esm/sqm-stencilbook.entry.js +14 -12
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-8032b139.js → stencil-hooks.module-6989e961.js} +1 -1
- package/dist/esm/{useChildElements-cd29b2fc.js → useChildElements-ebb49aad.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-0d27c474.js → useInstantAccessRegistration-bb44cdaa.js} +3 -3
- package/dist/esm/{useReferralTable-669cae58.js → useReferralTable-07610a66.js} +4 -4
- package/dist/esm/{useRegistrationFormState-0e09e2ca.js → useRegistrationFormState-b89d5b6d.js} +2 -2
- package/dist/esm/{utilities-21d8a4df.js → utilities-5bf96d46.js} +2 -2
- package/dist/esm-es5/{ShadowViewAddon-c22043d9.js → ShadowViewAddon-0c8347e5.js} +1 -1
- package/dist/esm-es5/{global-938df634.js → global-6be71d24.js} +1 -1
- package/dist/esm-es5/{index.module-ba0ed7a8.js → index.module-efb7f90d.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-4706d11b.js → luxon-f94e4101.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-6f03c9fb.js → mockRewardData-1f5c203f.js} +1 -1
- package/dist/esm-es5/{re-render-b61a14be.js → re-render-e48b78b0.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-d00894ce.js → sqm-invoice-table-view-d1b2031f.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-d3484a50.js → sqm-navigation-sidebar-item-view-512bcfd6.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-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-33b24b91.js → sqm-portal-email-verification-view-cddbed4e.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-13f0ef79.js → sqm-portal-profile-view-c7a2c8ba.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-view-d7ea2c56.js +1 -0
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.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-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-8032b139.js → stencil-hooks.module-6989e961.js} +1 -1
- package/dist/esm-es5/useChildElements-ebb49aad.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-bb44cdaa.js +1 -0
- package/dist/esm-es5/{useReferralTable-669cae58.js → useReferralTable-07610a66.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-0e09e2ca.js → useRegistrationFormState-b89d5b6d.js} +1 -1
- package/dist/esm-es5/{utilities-21d8a4df.js → utilities-5bf96d46.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-b67f5743.system.js → p-029b05cc.system.js} +1 -1
- package/dist/mint-components/{p-d5a682bf.system.js → p-0662d8ef.system.js} +1 -1
- package/dist/mint-components/{p-5532c083.system.entry.js → p-099796fc.system.entry.js} +1 -1
- package/dist/mint-components/p-0ab38d4f.system.entry.js +1 -0
- package/dist/mint-components/p-1092f6a6.js +1 -0
- package/dist/mint-components/{p-71c592d4.js → p-145baf88.js} +1 -1
- package/dist/mint-components/p-186861e8.js +1 -0
- package/dist/mint-components/{p-3539d14d.js → p-19fecb25.js} +1 -1
- package/dist/mint-components/{p-023145f0.entry.js → p-1e563828.entry.js} +1 -1
- package/dist/mint-components/{p-4bdfee88.entry.js → p-2aae5d34.entry.js} +1 -1
- package/dist/mint-components/p-2b102caf.system.js +1 -0
- package/dist/mint-components/{p-80266bc5.js → p-2cb1eddc.js} +1 -1
- package/dist/mint-components/{p-20e29ff1.system.entry.js → p-36120036.system.entry.js} +1 -1
- package/dist/mint-components/{p-70554628.system.entry.js → p-3b2f0e44.system.entry.js} +1 -1
- package/dist/mint-components/{p-c74a8f95.entry.js → p-3e581a32.entry.js} +1 -1
- package/dist/mint-components/p-3ed71bef.system.js +1 -0
- package/dist/mint-components/{p-214ad777.entry.js → p-4135fbb4.entry.js} +1 -1
- package/dist/mint-components/{p-be96cc00.system.entry.js → p-460b478c.system.entry.js} +1 -1
- package/dist/mint-components/{p-957ebdc4.system.entry.js → p-4991bcac.system.entry.js} +1 -1
- package/dist/mint-components/{p-11be93f5.entry.js → p-49edfce7.entry.js} +1 -1
- package/dist/mint-components/{p-8d6eda67.entry.js → p-4cd03c6c.entry.js} +1 -1
- package/dist/mint-components/p-4ce94912.entry.js +9 -0
- package/dist/mint-components/{p-13b2638b.entry.js → p-50a0261d.entry.js} +1 -1
- package/dist/mint-components/{p-b689baf8.system.js → p-50c7f67c.system.js} +1 -1
- package/dist/mint-components/{p-05bfb3bf.js → p-569607a6.js} +1 -1
- package/dist/mint-components/{p-65106298.js → p-5ad81258.js} +1 -1
- package/dist/mint-components/{p-eb8ed21b.entry.js → p-62880655.entry.js} +2 -2
- package/dist/mint-components/{p-9c9a46cf.entry.js → p-654e50e4.entry.js} +2 -2
- package/dist/mint-components/{p-7cf5c24c.js → p-65b8da08.js} +1 -1
- package/dist/mint-components/{p-9ae356ae.system.js → p-6c148112.system.js} +1 -1
- package/dist/mint-components/{p-fd51e80e.system.js → p-6c781f6e.system.js} +1 -1
- package/dist/mint-components/{p-dd5ca1b2.entry.js → p-70d222e0.entry.js} +2 -2
- package/dist/mint-components/{p-b388ad61.system.entry.js → p-71167fd1.system.entry.js} +1 -1
- package/dist/mint-components/p-71726735.js +1 -0
- package/dist/mint-components/{p-399d6f42.entry.js → p-71770e1b.entry.js} +1 -1
- package/dist/mint-components/{p-c2f23665.system.js → p-7f452949.system.js} +1 -1
- package/dist/mint-components/{p-fd3dacb9.system.entry.js → p-80f14f0f.system.entry.js} +1 -1
- package/dist/mint-components/{p-5b2abce0.system.js → p-82d05a9e.system.js} +1 -1
- package/dist/mint-components/{p-26192c42.system.entry.js → p-84b21cc9.system.entry.js} +1 -1
- package/dist/mint-components/{p-9fe25b2d.system.entry.js → p-84c4735b.system.entry.js} +1 -1
- package/dist/mint-components/{p-a9482c97.system.entry.js → p-856f16c4.system.entry.js} +1 -1
- package/dist/mint-components/{p-b5ee2781.js → p-8684f7b3.js} +1 -1
- package/dist/mint-components/{p-9b400b7e.system.entry.js → p-86e4e8cc.system.entry.js} +1 -1
- package/dist/mint-components/{p-1a5005fe.entry.js → p-8edd7c3e.entry.js} +1 -1
- package/dist/mint-components/{p-02e550bc.system.entry.js → p-9004e90e.system.entry.js} +1 -1
- package/dist/mint-components/{p-74872e41.entry.js → p-91e1ce49.entry.js} +1 -1
- package/dist/mint-components/p-97ed770b.entry.js +1 -0
- package/dist/mint-components/{p-7dceeaf0.entry.js → p-9b772dfc.entry.js} +1 -1
- package/dist/mint-components/{p-3a5d82b7.system.entry.js → p-9f322705.system.entry.js} +1 -1
- package/dist/mint-components/{p-44b12b2e.system.js → p-9f437acf.system.js} +1 -1
- package/dist/mint-components/{p-17cef69b.system.entry.js → p-a0c8bc63.system.entry.js} +1 -1
- package/dist/mint-components/{p-2446212d.js → p-a27103a4.js} +1 -1
- package/dist/mint-components/{p-be584089.system.entry.js → p-a35bd87e.system.entry.js} +1 -1
- package/dist/mint-components/p-a38cdb5f.system.entry.js +1 -0
- package/dist/mint-components/p-a88cd3a4.system.entry.js +1 -0
- package/dist/mint-components/{p-4e513c81.entry.js → p-aaa439ae.entry.js} +1 -1
- package/dist/mint-components/{p-9a9fc2aa.system.entry.js → p-abe49399.system.entry.js} +1 -1
- package/dist/mint-components/{p-d943d0e8.system.entry.js → p-af3643bb.system.entry.js} +1 -1
- package/dist/mint-components/{p-82f2efa4.entry.js → p-afcdcb94.entry.js} +1 -1
- package/dist/mint-components/{p-df1b9e5b.js → p-b0b54df5.js} +1 -1
- package/dist/mint-components/p-b1168c75.system.entry.js +1 -0
- package/dist/mint-components/p-b29d5aa1.entry.js +1 -0
- package/dist/mint-components/{p-f40d3edd.js → p-b502696c.js} +1 -1
- package/dist/mint-components/p-b7ec50e4.system.js +1 -0
- package/dist/mint-components/{p-6d0e3263.system.entry.js → p-baed0a98.system.entry.js} +1 -1
- package/dist/mint-components/{p-ab49b4e4.js → p-c24b1163.js} +1 -1
- package/dist/mint-components/{p-921a134c.entry.js → p-c32ab72b.entry.js} +1 -1
- package/dist/mint-components/{p-18ccb4ad.system.entry.js → p-c50b9294.system.entry.js} +1 -1
- package/dist/mint-components/{p-f3e7bdd4.system.entry.js → p-c60b0bbd.system.entry.js} +1 -1
- package/dist/mint-components/{p-d3cd5ec5.entry.js → p-c819fa1b.entry.js} +1 -1
- package/dist/mint-components/p-c8610d0c.js +1 -0
- package/dist/mint-components/{p-59e810e6.system.js → p-c91a1a35.system.js} +1 -1
- package/dist/mint-components/{p-cac769d2.entry.js → p-ca12568f.entry.js} +1 -1
- package/dist/mint-components/{p-f710f9d7.entry.js → p-d0beba2f.entry.js} +1 -1
- package/dist/mint-components/{p-da99e3c7.system.entry.js → p-d63b276b.system.entry.js} +1 -1
- package/dist/mint-components/{p-c5429a81.system.js → p-d73d9780.system.js} +1 -1
- package/dist/mint-components/p-d8d07598.entry.js +1 -0
- package/dist/mint-components/{p-67cf72f0.system.entry.js → p-d975ca97.system.entry.js} +1 -1
- package/dist/mint-components/{p-cef64e28.system.entry.js → p-dce23661.system.entry.js} +1 -1
- package/dist/mint-components/{p-cefb6938.system.entry.js → p-dd148735.system.entry.js} +1 -1
- package/dist/mint-components/{p-d8f59e94.system.entry.js → p-df405a8b.system.entry.js} +1 -1
- package/dist/mint-components/{p-2a6133dc.entry.js → p-e0583277.entry.js} +1 -1
- package/dist/mint-components/{p-cd45b39f.system.js → p-e0db1882.system.js} +1 -1
- package/dist/mint-components/p-e1204b1e.entry.js +33 -0
- package/dist/mint-components/{p-7f6a6657.system.js → p-e2060e22.system.js} +1 -1
- package/dist/mint-components/{p-598a1715.entry.js → p-e495e17c.entry.js} +1 -1
- package/dist/mint-components/{p-88eab2f3.system.js → p-e50473f8.system.js} +1 -1
- package/dist/mint-components/{p-9546c6db.entry.js → p-e6e43a73.entry.js} +1 -1
- package/dist/mint-components/{p-571b55b4.js → p-e9cbc775.js} +1 -1
- package/dist/mint-components/{p-09c7f320.entry.js → p-ebca0372.entry.js} +1 -1
- package/dist/mint-components/{p-1273b20d.entry.js → p-ec6ce583.entry.js} +1 -1
- package/dist/mint-components/{p-e5802992.system.entry.js → p-ee71de0d.system.entry.js} +1 -1
- package/dist/mint-components/{p-20e2037d.system.entry.js → p-ef33b9b0.system.entry.js} +1 -1
- package/dist/mint-components/p-ef3fc8d2.system.entry.js +1 -0
- package/dist/mint-components/{p-5e8996cd.system.js → p-f52dd061.system.js} +1 -1
- package/dist/mint-components/p-f6397cc7.system.js +1 -0
- package/dist/mint-components/p-f7795eca.entry.js +1 -0
- package/dist/mint-components/p-fa9f367e.entry.js +1 -0
- package/dist/mint-components/p-fd826643.js +1 -0
- package/dist/mint-components/{p-1a8a8795.entry.js → p-fed2ffb1.entry.js} +1 -1
- package/dist/mint-components/{p-44c46a30.system.entry.js → p-ff4d1c67.system.entry.js} +1 -1
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +2 -0
- package/docs/docs.docx +0 -0
- package/package.json +5 -4
- package/dist/esm-es5/sqm-portal-verify-email-view-2e1dabcc.js +0 -1
- package/dist/esm-es5/useChildElements-cd29b2fc.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-0d27c474.js +0 -1
- package/dist/mint-components/p-04cb0dbf.system.entry.js +0 -1
- package/dist/mint-components/p-0566ef3f.entry.js +0 -9
- package/dist/mint-components/p-1ca5dd90.system.entry.js +0 -1
- package/dist/mint-components/p-1fe0ea89.entry.js +0 -1
- package/dist/mint-components/p-2f2b220a.entry.js +0 -33
- package/dist/mint-components/p-42ca1639.js +0 -1
- package/dist/mint-components/p-499913d2.system.js +0 -1
- package/dist/mint-components/p-4ca22e1b.js +0 -1
- package/dist/mint-components/p-6217c5f3.system.entry.js +0 -1
- package/dist/mint-components/p-6a626a88.system.js +0 -1
- package/dist/mint-components/p-79bd1db8.system.js +0 -1
- package/dist/mint-components/p-90188bc1.entry.js +0 -1
- package/dist/mint-components/p-9149f891.entry.js +0 -1
- package/dist/mint-components/p-9cb1ab69.system.js +0 -1
- package/dist/mint-components/p-b4984452.js +0 -1
- package/dist/mint-components/p-c3a388cd.js +0 -1
- package/dist/mint-components/p-cd96e792.entry.js +0 -1
- package/dist/mint-components/p-d1c7aed7.js +0 -1
- package/dist/mint-components/p-d567f968.system.entry.js +0 -1
- package/dist/mint-components/p-dd2a4d31.entry.js +0 -1
- package/dist/mint-components/p-e98b8f9a.system.entry.js +0 -1
|
@@ -3,40 +3,33 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const index_module = require('./index.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
7
|
+
const index_module = require('./index.module-ac19badb.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
9
|
require('./mixins-fe9d4112.js');
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
13
|
-
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-
|
|
13
|
+
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7ffcc0d4.js');
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
function setWindowSubmitted(submitted) {
|
|
17
|
-
// using window due to dom-context getting reset on re-render
|
|
18
|
-
window[SUBMITTED_CONTEXT] = submitted;
|
|
19
|
-
}
|
|
15
|
+
let globalPromise = null;
|
|
20
16
|
function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyEmailText, verifyInvalidText, networkErrorMessage, continueText, }) {
|
|
21
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
22
|
-
const [
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
18
|
+
const [completed, setCompleted] = stencilHooks_module.useState(false);
|
|
19
|
+
const [successful, setSuccessful] = stencilHooks_module.useState(false);
|
|
23
20
|
const userIdent = index_module.Q();
|
|
24
|
-
const [verificationError, setVerificationError] = stencilHooks_module.useState(null);
|
|
25
|
-
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
26
21
|
const [request, { loading, data, errors }] = index_module.an();
|
|
27
22
|
const urlParams = new URLSearchParams(index_module.$n.location.search);
|
|
28
23
|
const oobCode = urlParams.get("oobCode");
|
|
29
24
|
const oobEmail = urlParams.get("email");
|
|
30
25
|
const nextPageOverride = urlParams.get("nextPage");
|
|
31
|
-
const syncSubmitted = (submitted) => {
|
|
32
|
-
setSubmitted(submitted);
|
|
33
|
-
setWindowSubmitted(submitted);
|
|
34
|
-
};
|
|
35
26
|
// derived from useMutation in component boilerplate initialState
|
|
36
27
|
const disableContinue = data === undefined && errors === undefined && !!oobCode;
|
|
37
28
|
// if logged out, userIdent?.managedIdentity?.emailVerified will be falsey, even if verification was successful
|
|
38
|
-
const verified = !!((
|
|
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);
|
|
39
31
|
const validEmail = ((_c = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _c === void 0 ? void 0 : _c.email) === oobEmail;
|
|
32
|
+
console.log({ userIdent, oobEmail, verified });
|
|
40
33
|
const failed = () => {
|
|
41
34
|
return index_module.$n.push({
|
|
42
35
|
pathname: failedPage,
|
|
@@ -48,50 +41,44 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
|
|
|
48
41
|
const url = utils.sanitizeUrlPath(nextPageOverride || nextPage);
|
|
49
42
|
index_module.$n.push(url.href);
|
|
50
43
|
};
|
|
51
|
-
console.log({
|
|
52
|
-
userIdent,
|
|
53
|
-
data,
|
|
54
|
-
submitted,
|
|
55
|
-
verified,
|
|
56
|
-
verificationError,
|
|
57
|
-
success,
|
|
58
|
-
});
|
|
59
44
|
const logout = () => {
|
|
60
|
-
console.log("LOGGING OUT", success, verified, verificationError);
|
|
61
45
|
setTimeout(() => {
|
|
62
46
|
index_module.setUserIdentity(undefined);
|
|
63
47
|
gotoNextPage();
|
|
64
48
|
}, 3000);
|
|
65
49
|
};
|
|
66
50
|
const login = () => {
|
|
67
|
-
console.log("LOGGING IN", success, verified, verificationError);
|
|
68
51
|
setTimeout(gotoNextPage, 3000);
|
|
69
52
|
};
|
|
70
|
-
const submit = async () => {
|
|
71
|
-
var _a;
|
|
72
|
-
syncSubmitted(true);
|
|
73
|
-
const response = await request({ oobCode });
|
|
74
|
-
if (response instanceof Error ||
|
|
75
|
-
!((_a = response === null || response === void 0 ? void 0 : response.verifyManagedIdentityEmail) === null || _a === void 0 ? void 0 : _a.success)) {
|
|
76
|
-
logout();
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
console.debug("SUBMITTED", response);
|
|
80
|
-
console.debug("window", window[SUBMITTED_CONTEXT]);
|
|
81
|
-
};
|
|
82
53
|
stencilHooks_module.useEffect(() => {
|
|
54
|
+
const verify = async () => {
|
|
55
|
+
if (!globalPromise)
|
|
56
|
+
globalPromise = request({ oobCode });
|
|
57
|
+
const result = await globalPromise;
|
|
58
|
+
if (!(result instanceof Error) &&
|
|
59
|
+
result.verifyManagedIdentityEmail.success) {
|
|
60
|
+
// Needs to be explicitly updated if multiple renders have occured
|
|
61
|
+
setSuccessful(true);
|
|
62
|
+
}
|
|
63
|
+
setCompleted(true);
|
|
64
|
+
};
|
|
65
|
+
verify();
|
|
66
|
+
}, []);
|
|
67
|
+
stencilHooks_module.useEffect(() => {
|
|
68
|
+
if (!completed)
|
|
69
|
+
return;
|
|
83
70
|
if (verified && validEmail)
|
|
84
71
|
login();
|
|
85
|
-
|
|
72
|
+
else
|
|
86
73
|
logout();
|
|
87
|
-
|
|
88
|
-
submit();
|
|
89
|
-
}, [submitted, verified, validEmail]);
|
|
74
|
+
}, [completed, verified]);
|
|
90
75
|
return {
|
|
91
76
|
states: {
|
|
92
|
-
loading: loading ||
|
|
77
|
+
loading: loading || !completed,
|
|
78
|
+
disableContinue,
|
|
93
79
|
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) ||
|
|
94
|
-
((errors === null || errors === void 0 ? void 0 : errors.message) && networkErrorMessage),
|
|
80
|
+
(((errors === null || errors === void 0 ? void 0 : errors.message) || !validEmail) && networkErrorMessage),
|
|
81
|
+
success: completed && (verified || validEmail),
|
|
95
82
|
verified,
|
|
96
83
|
},
|
|
97
84
|
data: {
|
|
@@ -110,6 +97,7 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
|
|
|
110
97
|
};
|
|
111
98
|
}
|
|
112
99
|
|
|
100
|
+
let global = 0;
|
|
113
101
|
const PortalVerifyEmail = class {
|
|
114
102
|
constructor(hostRef) {
|
|
115
103
|
index.registerInstance(this, hostRef);
|
|
@@ -152,6 +140,7 @@ const PortalVerifyEmail = class {
|
|
|
152
140
|
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
153
141
|
*/
|
|
154
142
|
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
143
|
+
console.log(global++);
|
|
155
144
|
stencilHooks_module.h$1(this);
|
|
156
145
|
}
|
|
157
146
|
disconnectedCallback() { }
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
7
|
+
const global = require('./global-fd79514d.js');
|
|
8
|
+
const index_module = require('./index.module-ac19badb.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
const GenericTableView = require('./GenericTableView-80d7642e.js');
|
|
13
|
-
const reRender = require('./re-render-
|
|
14
|
-
const useChildElements = require('./useChildElements-
|
|
15
|
-
const luxon = require('./luxon-
|
|
16
|
-
const mockRewardData = require('./mockRewardData-
|
|
17
|
-
const useReferralTable = require('./useReferralTable-
|
|
13
|
+
const reRender = require('./re-render-091ef96d.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-176e7212.js');
|
|
15
|
+
const luxon = require('./luxon-c1ebc026.js');
|
|
16
|
+
const mockRewardData = require('./mockRewardData-7f84344c.js');
|
|
17
|
+
const useReferralTable = require('./useReferralTable-33aa6f6a.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
19
|
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
20
20
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const index_module = require('./index.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
7
|
+
const index_module = require('./index.module-ac19badb.js');
|
|
8
8
|
require('./jsonpointer-11327262.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
const emailRegistrationView = require('./email-registration-view-a6b6430e.js');
|
|
13
|
-
require('./useRegistrationFormState-
|
|
14
|
-
const useInstantAccessRegistration = require('./useInstantAccessRegistration-
|
|
13
|
+
require('./useRegistrationFormState-86d04ba7.js');
|
|
14
|
+
const useInstantAccessRegistration = require('./useInstantAccessRegistration-665f2756.js');
|
|
15
15
|
|
|
16
16
|
const ReferredRegistration = class {
|
|
17
17
|
constructor(hostRef) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
7
7
|
require('./JSS-8503a151.js');
|
|
8
8
|
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
9
9
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
require('./index.module-
|
|
8
|
-
const reRender = require('./re-render-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
7
|
+
require('./index.module-ac19badb.js');
|
|
8
|
+
const reRender = require('./re-render-091ef96d.js');
|
|
9
9
|
|
|
10
10
|
const RewardTableCustomerNoteColumn = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
7
|
+
const global = require('./global-fd79514d.js');
|
|
8
|
+
const index_module = require('./index.module-ac19badb.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
const GenericTableView = require('./GenericTableView-80d7642e.js');
|
|
13
|
-
const reRender = require('./re-render-
|
|
14
|
-
const useChildElements = require('./useChildElements-
|
|
15
|
-
const luxon = require('./luxon-
|
|
16
|
-
const mockRewardData = require('./mockRewardData-
|
|
17
|
-
const useReferralTable = require('./useReferralTable-
|
|
13
|
+
const reRender = require('./re-render-091ef96d.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-176e7212.js');
|
|
15
|
+
const luxon = require('./luxon-c1ebc026.js');
|
|
16
|
+
const mockRewardData = require('./mockRewardData-7f84344c.js');
|
|
17
|
+
const useReferralTable = require('./useReferralTable-33aa6f6a.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
19
|
|
|
20
20
|
const debug = stencilHooks_module.browser("sq:useRewardsTable");
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
7
|
+
require('./global-fd79514d.js');
|
|
8
|
+
const index_module = require('./index.module-ac19badb.js');
|
|
9
9
|
require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
const GenericTableView = require('./GenericTableView-80d7642e.js');
|
|
13
|
-
require('./useChildElements-
|
|
14
|
-
const luxon = require('./luxon-
|
|
13
|
+
require('./useChildElements-176e7212.js');
|
|
14
|
+
const luxon = require('./luxon-c1ebc026.js');
|
|
15
15
|
require('./utils-6847bc06.js');
|
|
16
16
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
17
17
|
const sqmAssetCardView = require('./sqm-asset-card-view-a0e33f21.js');
|
|
@@ -21,16 +21,16 @@ const emailRegistrationView = require('./email-registration-view-a6b6430e.js');
|
|
|
21
21
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
|
|
22
22
|
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-c9f18d96.js');
|
|
23
23
|
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-dd53f947.js');
|
|
24
|
-
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-
|
|
25
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
24
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-acf543fc.js');
|
|
25
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-0cca3c71.js');
|
|
26
26
|
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-ca5f6db9.js');
|
|
27
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
28
|
-
require('./utilities-
|
|
27
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-02e392ba.js');
|
|
28
|
+
require('./utilities-62a88e67.js');
|
|
29
29
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-07a13210.js');
|
|
30
|
-
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-
|
|
31
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
30
|
+
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7ffcc0d4.js');
|
|
31
|
+
const ShadowViewAddon = require('./ShadowViewAddon-b285d364.js');
|
|
32
32
|
const sqmPortalContainerView = require('./sqm-portal-container-view-5fb2ad49.js');
|
|
33
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
33
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-da07aaab.js');
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -7618,6 +7618,7 @@ const errorProps$5 = {
|
|
|
7618
7618
|
error: "Something went wrong. Please try again.",
|
|
7619
7619
|
loading: false,
|
|
7620
7620
|
verified: false,
|
|
7621
|
+
success: false,
|
|
7621
7622
|
},
|
|
7622
7623
|
data: {
|
|
7623
7624
|
oobCode: "abc123",
|
|
@@ -7637,6 +7638,7 @@ const verifiedProps = {
|
|
|
7637
7638
|
error: "",
|
|
7638
7639
|
loading: false,
|
|
7639
7640
|
verified: true,
|
|
7641
|
+
success: true,
|
|
7640
7642
|
},
|
|
7641
7643
|
data: {
|
|
7642
7644
|
oobCode: "abc123",
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
require('./index.module-
|
|
8
|
-
const reRender = require('./re-render-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
7
|
+
require('./index.module-ac19badb.js');
|
|
8
|
+
const reRender = require('./re-render-091ef96d.js');
|
|
9
9
|
|
|
10
10
|
const TabView = ({}, children) => {
|
|
11
11
|
return index.h(index.Host, null, children);
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const index_module = require('./index.module-
|
|
8
|
-
const reRender = require('./re-render-
|
|
9
|
-
const useChildElements = require('./useChildElements-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
7
|
+
const index_module = require('./index.module-ac19badb.js');
|
|
8
|
+
const reRender = require('./re-render-091ef96d.js');
|
|
9
|
+
const useChildElements = require('./useChildElements-176e7212.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
|
|
12
12
|
const TabsView = ({ content, placement, }) => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
7
7
|
require('./JSS-8503a151.js');
|
|
8
8
|
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
9
9
|
|
|
@@ -1107,7 +1107,7 @@ formatters.j = function (v) {
|
|
|
1107
1107
|
};
|
|
1108
1108
|
});
|
|
1109
1109
|
|
|
1110
|
-
function t(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i);}}function n(n,e,i){return e&&t(n.prototype,e),i&&t(n,i),n}var s$1=function(){function t(t){var n=this,e=this;this._status="Initial",this.onChange=function(t){e.options.onChange&&e.options.onChange(t);},this.onConnect=function(t){try{return n.status="Connected",n.options.onChange&&n.options.onChange(t),Promise.resolve(new Promise(function(t){n.resolvePromise=t;}))}catch(t){return Promise.reject(t)}},this.onDisconnect=function(){e.status="Connecting",e.start();},this.options=t;}var e=t.prototype;return e.start=function(){var t=this,n=0;this.status="Connecting";var e=function(){return t.status},i=a(this.options.attempts)||10,o=function(){if("Connected"!==e()){var o=new CustomEvent(t.options.contextName,{bubbles:!0,cancelable:!0,composed:!0,detail:{onConnect:t.onConnect,onChange:t.onChange,onDisconnect:t.onDisconnect}});a(t.options.element).dispatchEvent(o),"Connected"!==e()?++n>=i&&(t._interval&&clearInterval(t._interval),t.status="Timeout"):"Connected"===e()&&t._interval&&clearInterval(t._interval);}};return (a(this.options.pollingMs)||100)>0&&i>1&&(this._interval=setInterval(o,a(this.options.pollingMs)||100)),o(),this},e.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},n(t,[{key:"status",set:function(t){this._status=t,this.options.onStatus&&this.options.onStatus(t);},get:function(){return this._status}}]),t}(),c=function(){function t(t){var n=this;this.__listeners=[],this.connectListener=function(t){try{t.stopPropagation(),n.__listeners=[].concat(n.__listeners,[t.detail]);var e=function(e,i){try{var o=Promise.resolve(t.detail.onConnect(n.__current)).then(function(){});}catch(t){return i(!0,t)}return o&&o.then?o.then(i.bind(null,!1),i.bind(null,!0)):i(!1,o)}(0,function(e,i){var o,r;if(n.__listeners=(r=(o=n.__listeners).indexOf(t.detail),o.slice(0,r).concat(o.slice(r+1,o.length))),e)throw i;return i});return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},this.options=t,this.__current=a(t.initialState);}var e=t.prototype;return e.start=function(){return a(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},e.stop=function(){return a(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map(function(t){t.onDisconnect();}),this.__listeners=[],this},n(t,[{key:"context",set:function(t){this.__current=t,this.__listeners.forEach(function(
|
|
1110
|
+
function t(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i);}}function n(n,e,i){return e&&t(n.prototype,e),i&&t(n,i),n}var s$1=function(){function t(t){var n=this,e=this;this._status="Initial",this.onChange=function(t,n){e.options.onChange&&e.options.onChange(t,n);},this.onConnect=function(t){try{return n.status="Connected",n.options.onChange&&n.options.onChange(t,void 0),Promise.resolve(new Promise(function(t){n.resolvePromise=t;}))}catch(t){return Promise.reject(t)}},this.onDisconnect=function(){e.status="Connecting",e.start();},this.options=t;}var e=t.prototype;return e.start=function(){var t=this,n=0;this.status="Connecting";var e=function(){return t.status},i=a(this.options.attempts)||10,o=function(){if("Connected"!==e()){var o=new CustomEvent(t.options.contextName,{bubbles:!0,cancelable:!0,composed:!0,detail:{onConnect:t.onConnect,onChange:t.onChange,onDisconnect:t.onDisconnect}});a(t.options.element).dispatchEvent(o),"Connected"!==e()?++n>=i&&(t._interval&&clearInterval(t._interval),t.status="Timeout"):"Connected"===e()&&t._interval&&clearInterval(t._interval);}};return (a(this.options.pollingMs)||100)>0&&i>1&&(this._interval=setInterval(o,a(this.options.pollingMs)||100)),o(),this},e.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},n(t,[{key:"status",set:function(t){this._status=t,this.options.onStatus&&this.options.onStatus(t);},get:function(){return this._status}}]),t}(),c=function(){function t(t){var n=this;this.__listeners=[],this.connectListener=function(t){try{t.stopPropagation(),n.__listeners=[].concat(n.__listeners,[t.detail]);var e=function(e,i){try{var o=Promise.resolve(t.detail.onConnect(n.__current)).then(function(){});}catch(t){return i(!0,t)}return o&&o.then?o.then(i.bind(null,!1),i.bind(null,!0)):i(!1,o)}(0,function(e,i){var o,r;if(n.__listeners=(r=(o=n.__listeners).indexOf(t.detail),o.slice(0,r).concat(o.slice(r+1,o.length))),e)throw i;return i});return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},this.options=t,this.__current=a(t.initialState);}var e=t.prototype;return e.start=function(){return a(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},e.stop=function(){return a(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map(function(t){t.onDisconnect();}),this.__listeners=[],this},n(t,[{key:"context",set:function(t){var n=this.__current;this.__current=t,this.__listeners.forEach(function(e){return e.onChange(t,n)});},get:function(){return a(this.__current)}},{key:"listeners",get:function(){return Object.freeze([].concat(this.__listeners))}}]),t}();function a(t){return "function"==typeof typeof t?t():t}
|
|
1111
1111
|
|
|
1112
1112
|
function c$1(){return (c$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var u=1e3,C=60*u,l=60*C,d$1=24*l,f=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*d$1;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*C;case"seconds":case"second":case"secs":case"sec":case"s":return n*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=d$1?g(e,t,d$1,"day"):t>=l?g(e,t,l,"hour"):t>=C?g(e,t,C,"minute"):t>=u?g(e,t,u,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=d$1?Math.round(e/d$1)+"d":t>=l?Math.round(e/l)+"h":t>=C?Math.round(e/C)+"m":t>=u?Math.round(e/u)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function g(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}var p,m$1=(function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r));}),t.splice(o,0,n);},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug");}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=function(e){function t(e){let r,o=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date);n.diff=o-(r||o),n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,o)=>{if("%%"===r)return "%";a++;const s=t.formatters[o];return "function"==typeof s&&(r=s.call(n,e[a]),e.splice(a,1),a--),r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e);}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e;}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));},t.enabled=function(e){if("*"===e[e.length-1])return !0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return !1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return !0;return !1},t.humanize=f,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(n=>{t[n]=e[n];}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(p={exports:{}},p.exports),p.exports)("useDomContext");function h$1(e,n,i){void 0===i&&(i={});var u=useRef(void 0),C=useState(void 0),l=C[0],d=C[1],f=useMemo(function(){var r;try{(r=new s$1(c$1({contextName:n,element:e,onChange:function(e){u&&(u.current=e),d(e);}},i))).start();}catch(e){m$1("Listener failed to start",e);}return m$1("Listener initialized",r),{listener:r}},[n,u]).listener;return useEffect(function(){return m$1("Listener starting (or restarting)",f),f.start(),function(){m$1("Listener stopping (or restopping)",f),f.stop();}},[f,e.isConnected]),l||(null==u?void 0:u.current)}function y$1(e,t,r){var o=useMemo(function(){var o=new c({contextName:t,element:e,initialState:r});return o.start(),m$1("Provider initialized",o),o},[t,e]);useEffect(function(){return m$1("Provider starting (or restarting)",o),o.start(),function(){m$1("Provider stopping (or re-stopping)",o),o.stop();}},[o,e.isConnected]);var c$1=useReducer(function(e,t){var n;return m$1("New context value",t),n="function"==typeof t?t(o.context):t,o.context=n,o.context},o.context);return [c$1[0],c$1[1],o]}
|
|
1113
1113
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
4
|
-
const index_module = require('./index.module-
|
|
3
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
4
|
+
const index_module = require('./index.module-ac19badb.js');
|
|
5
5
|
|
|
6
6
|
function useChildElements() {
|
|
7
7
|
const host = index_module._();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
4
|
-
const index_module = require('./index.module-
|
|
3
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
4
|
+
const index_module = require('./index.module-ac19badb.js');
|
|
5
5
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
6
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
6
|
+
const useRegistrationFormState = require('./useRegistrationFormState-86d04ba7.js');
|
|
7
7
|
|
|
8
8
|
function useInstantAccessRegistration(props) {
|
|
9
9
|
const cookie = new URLSearchParams(window.location.search);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
5
|
-
const index_module = require('./index.module-
|
|
6
|
-
const reRender = require('./re-render-
|
|
7
|
-
const useChildElements = require('./useChildElements-
|
|
4
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
5
|
+
const index_module = require('./index.module-ac19badb.js');
|
|
6
|
+
const reRender = require('./re-render-091ef96d.js');
|
|
7
|
+
const useChildElements = require('./useChildElements-176e7212.js');
|
|
8
8
|
|
|
9
9
|
const debug = stencilHooks_module.browser("sq:useReferralTable");
|
|
10
10
|
const CSS_NAMESPACE = "sqm-referral-table";
|
package/dist/cjs/{useRegistrationFormState-ad3190c9.js → useRegistrationFormState-86d04ba7.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
4
|
-
const index_module = require('./index.module-
|
|
3
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
4
|
+
const index_module = require('./index.module-ac19badb.js');
|
|
5
5
|
|
|
6
6
|
const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
|
|
7
7
|
function useRegistrationFormState(formState) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
4
|
-
const index_module = require('./index.module-
|
|
3
|
+
const stencilHooks_module = require('./stencil-hooks.module-0f3e94a3.js');
|
|
4
|
+
const index_module = require('./index.module-ac19badb.js');
|
|
5
5
|
|
|
6
6
|
// import { IntlMessageFormat } from 'intl-messageformat';
|
|
7
7
|
function isMobile(breakPoint) {
|
|
@@ -12,6 +12,7 @@ const errorProps = {
|
|
|
12
12
|
error: "Something went wrong. Please try again.",
|
|
13
13
|
loading: false,
|
|
14
14
|
verified: false,
|
|
15
|
+
success: false,
|
|
15
16
|
},
|
|
16
17
|
data: {
|
|
17
18
|
oobCode: "abc123",
|
|
@@ -31,6 +32,7 @@ const verifiedProps = {
|
|
|
31
32
|
error: "",
|
|
32
33
|
loading: false,
|
|
33
34
|
verified: true,
|
|
35
|
+
success: true,
|
|
34
36
|
},
|
|
35
37
|
data: {
|
|
36
38
|
oobCode: "abc123",
|
|
@@ -21,15 +21,9 @@ const sheet = createStyleSheet(style);
|
|
|
21
21
|
const styleString = sheet.toString();
|
|
22
22
|
export function PortalVerifyEmailView(props) {
|
|
23
23
|
const { states, data, callbacks, content } = props;
|
|
24
|
-
console.log({
|
|
25
|
-
loading: states.loading,
|
|
26
|
-
verified: states.verified,
|
|
27
|
-
error: states.error,
|
|
28
|
-
oobCode: data.oobCode,
|
|
29
|
-
});
|
|
30
24
|
if (states.loading)
|
|
31
25
|
return;
|
|
32
|
-
if (states.
|
|
26
|
+
if (states.success) {
|
|
33
27
|
return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
|
|
34
28
|
h("style", { type: "text/css" },
|
|
35
29
|
vanillaStyle,
|
|
@@ -45,6 +39,6 @@ export function PortalVerifyEmailView(props) {
|
|
|
45
39
|
h(TextSpanView, { type: "h3" }, content.verifyEmailText),
|
|
46
40
|
h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
47
41
|
h("div", { part: "erroralert-text" }, content.verifyInvalidText)),
|
|
48
|
-
h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.failed,
|
|
42
|
+
h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.failed, disabled: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.continueText)));
|
|
49
43
|
}
|
|
50
44
|
}
|
|
@@ -5,6 +5,7 @@ import deepmerge from "deepmerge";
|
|
|
5
5
|
import { PortalVerifyEmailView, } from "./sqm-portal-verify-email-view";
|
|
6
6
|
import { usePortalVerifyEmail } from "./usePortalVerifyEmail";
|
|
7
7
|
import { getProps } from "../../utils/utils";
|
|
8
|
+
let global = 0;
|
|
8
9
|
/**
|
|
9
10
|
* @uiName Microsite Verify Email
|
|
10
11
|
*/
|
|
@@ -49,6 +50,7 @@ export class PortalVerifyEmail {
|
|
|
49
50
|
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
50
51
|
*/
|
|
51
52
|
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
53
|
+
console.log(global++);
|
|
52
54
|
withHooks(this);
|
|
53
55
|
}
|
|
54
56
|
disconnectedCallback() { }
|
|
@@ -228,7 +230,7 @@ export class PortalVerifyEmail {
|
|
|
228
230
|
"mutable": false,
|
|
229
231
|
"complexType": {
|
|
230
232
|
"original": "DemoData<PortalVerifyEmailViewProps>",
|
|
231
|
-
"resolved": "{ states?: { error: string; loading: boolean; verified: boolean; }; data?: { oobCode: string; }; content?: { verifySuccessText?: string; verifyEmailText?: string; verifyInvalidText?: string; continueText?: string; }; }",
|
|
233
|
+
"resolved": "{ states?: { error: string; loading: boolean; success: boolean; verified: boolean; }; data?: { oobCode: string; }; content?: { verifySuccessText?: string; verifyEmailText?: string; verifyInvalidText?: string; continueText?: string; }; }",
|
|
232
234
|
"references": {
|
|
233
235
|
"DemoData": {
|
|
234
236
|
"location": "import",
|
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
import { navigation, setUserIdentity, useUserIdentity, useVerifyEmailMutation, } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import { useEffect, useState } from "@saasquatch/
|
|
2
|
+
import { useEffect, useState } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { sanitizeUrlPath } from "../../utils/utils";
|
|
4
|
-
|
|
5
|
-
function setWindowSubmitted(submitted) {
|
|
6
|
-
// using window due to dom-context getting reset on re-render
|
|
7
|
-
window[SUBMITTED_CONTEXT] = submitted;
|
|
8
|
-
}
|
|
4
|
+
let globalPromise = null;
|
|
9
5
|
export function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyEmailText, verifyInvalidText, networkErrorMessage, continueText, }) {
|
|
10
6
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
11
|
-
const [
|
|
7
|
+
const [completed, setCompleted] = useState(false);
|
|
8
|
+
const [successful, setSuccessful] = useState(false);
|
|
12
9
|
const userIdent = useUserIdentity();
|
|
13
|
-
const [verificationError, setVerificationError] = useState(null);
|
|
14
|
-
const [success, setSuccess] = useState(false);
|
|
15
|
-
const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
|
|
16
10
|
const [request, { loading, data, errors }] = useVerifyEmailMutation();
|
|
17
11
|
const urlParams = new URLSearchParams(navigation.location.search);
|
|
18
12
|
const oobCode = urlParams.get("oobCode");
|
|
19
13
|
const oobEmail = urlParams.get("email");
|
|
20
14
|
const nextPageOverride = urlParams.get("nextPage");
|
|
21
|
-
const syncSubmitted = (submitted) => {
|
|
22
|
-
setSubmitted(submitted);
|
|
23
|
-
setWindowSubmitted(submitted);
|
|
24
|
-
};
|
|
25
15
|
// derived from useMutation in component boilerplate initialState
|
|
26
16
|
const disableContinue = data === undefined && errors === undefined && !!oobCode;
|
|
27
17
|
// if logged out, userIdent?.managedIdentity?.emailVerified will be falsey, even if verification was successful
|
|
28
|
-
const verified = !!((
|
|
18
|
+
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) ||
|
|
19
|
+
successful);
|
|
29
20
|
const validEmail = ((_c = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _c === void 0 ? void 0 : _c.email) === oobEmail;
|
|
21
|
+
console.log({ userIdent, oobEmail, verified });
|
|
30
22
|
const failed = () => {
|
|
31
23
|
return navigation.push({
|
|
32
24
|
pathname: failedPage,
|
|
@@ -38,50 +30,44 @@ export function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText,
|
|
|
38
30
|
const url = sanitizeUrlPath(nextPageOverride || nextPage);
|
|
39
31
|
navigation.push(url.href);
|
|
40
32
|
};
|
|
41
|
-
console.log({
|
|
42
|
-
userIdent,
|
|
43
|
-
data,
|
|
44
|
-
submitted,
|
|
45
|
-
verified,
|
|
46
|
-
verificationError,
|
|
47
|
-
success,
|
|
48
|
-
});
|
|
49
33
|
const logout = () => {
|
|
50
|
-
console.log("LOGGING OUT", success, verified, verificationError);
|
|
51
34
|
setTimeout(() => {
|
|
52
35
|
setUserIdentity(undefined);
|
|
53
36
|
gotoNextPage();
|
|
54
37
|
}, 3000);
|
|
55
38
|
};
|
|
56
39
|
const login = () => {
|
|
57
|
-
console.log("LOGGING IN", success, verified, verificationError);
|
|
58
40
|
setTimeout(gotoNextPage, 3000);
|
|
59
41
|
};
|
|
60
|
-
const submit = async () => {
|
|
61
|
-
var _a;
|
|
62
|
-
syncSubmitted(true);
|
|
63
|
-
const response = await request({ oobCode });
|
|
64
|
-
if (response instanceof Error ||
|
|
65
|
-
!((_a = response === null || response === void 0 ? void 0 : response.verifyManagedIdentityEmail) === null || _a === void 0 ? void 0 : _a.success)) {
|
|
66
|
-
logout();
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
console.debug("SUBMITTED", response);
|
|
70
|
-
console.debug("window", window[SUBMITTED_CONTEXT]);
|
|
71
|
-
};
|
|
72
42
|
useEffect(() => {
|
|
43
|
+
const verify = async () => {
|
|
44
|
+
if (!globalPromise)
|
|
45
|
+
globalPromise = request({ oobCode });
|
|
46
|
+
const result = await globalPromise;
|
|
47
|
+
if (!(result instanceof Error) &&
|
|
48
|
+
result.verifyManagedIdentityEmail.success) {
|
|
49
|
+
// Needs to be explicitly updated if multiple renders have occured
|
|
50
|
+
setSuccessful(true);
|
|
51
|
+
}
|
|
52
|
+
setCompleted(true);
|
|
53
|
+
};
|
|
54
|
+
verify();
|
|
55
|
+
}, []);
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (!completed)
|
|
58
|
+
return;
|
|
73
59
|
if (verified && validEmail)
|
|
74
60
|
login();
|
|
75
|
-
|
|
61
|
+
else
|
|
76
62
|
logout();
|
|
77
|
-
|
|
78
|
-
submit();
|
|
79
|
-
}, [submitted, verified, validEmail]);
|
|
63
|
+
}, [completed, verified]);
|
|
80
64
|
return {
|
|
81
65
|
states: {
|
|
82
|
-
loading: loading ||
|
|
66
|
+
loading: loading || !completed,
|
|
67
|
+
disableContinue,
|
|
83
68
|
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) ||
|
|
84
|
-
((errors === null || errors === void 0 ? void 0 : errors.message) && networkErrorMessage),
|
|
69
|
+
(((errors === null || errors === void 0 ? void 0 : errors.message) || !validEmail) && networkErrorMessage),
|
|
70
|
+
success: completed && (verified || validEmail),
|
|
85
71
|
verified,
|
|
86
72
|
},
|
|
87
73
|
data: {
|