@saasquatch/mint-components 2.2.0 → 2.3.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{data-8c8a08f6.js → data-89ac73dd.js} +2 -90
- package/dist/cjs/eventKeys-7af4df4d.js +5 -0
- package/dist/cjs/{keys-cff24974.js → keys-5a2c9ed2.js} +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/parseStates-d1effc19.js +16 -0
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +461 -339
- package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_47.cjs.entry.js} +450 -16
- package/dist/cjs/sqm-code-verification.cjs.entry.js +4 -5
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +893 -0
- package/dist/cjs/sqm-partner-info-modal-view-f6faecf5.js +149 -0
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +27 -9
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +30 -9
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +732 -326
- package/dist/cjs/{sqm-user-info-form-view-53306f6e.js → sqm-user-info-form-view-0e1ddbe4.js} +34 -426
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
- package/dist/cjs/{usePayoutStatus-0192fccd.js → useIndirectTaxForm-c3c1ec56.js} +294 -5
- package/dist/cjs/utils-a3b3d05b.js +478 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +171 -0
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +143 -0
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +670 -0
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +276 -0
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +1 -0
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +1 -0
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +2 -2
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +209 -145
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +30 -10
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -0
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +2 -2
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +223 -137
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +30 -10
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -0
- package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +16 -0
- package/dist/collection/components/sqm-widget-verification/keys.js +2 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +3 -4
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +19 -9
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +486 -46
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +43 -11
- package/dist/collection/components/tax-and-cash/data.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +93 -37
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +738 -13
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +95 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +51 -12
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +59 -30
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +51 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +10 -18
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +0 -25
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +34 -17
- package/dist/esm/{ShadowViewAddon-0b980200.js → ShadowViewAddon-e115fa1c.js} +5 -5
- package/dist/{mint-components/p-0c0d4065.js → esm/data-8698cbc6.js} +25 -5
- package/dist/esm/eventKeys-f76b6a03.js +3 -0
- package/dist/esm/{global-96c14d63.js → global-75e96214.js} +1 -1
- package/dist/esm/{index.module-b23fdad8.js → index.module-02cb914c.js} +1 -1
- package/dist/esm/keys-1054056a.js +8 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/{re-render-f30aeb6b.js → re-render-bf46ba54.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +448 -326
- package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_47.entry.js} +454 -21
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +7 -8
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification_2.entry.js +888 -0
- 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-7928db07.js → sqm-lead-checkbox-field-view-bfafee56.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-b945edf4.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-b3beac5a.js → sqm-navigation-sidebar-item-view-8d98fcf3.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-partner-info-modal-view-d6f3a215.js +146 -0
- 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-04528277.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-b5ea620f.js → sqm-portal-profile-view-2018590a.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-reset-password.entry.js +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c61536b7.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +32 -14
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +35 -14
- package/dist/esm/sqm-stencilbook.entry.js +708 -302
- 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-19d81a2b.js → sqm-user-info-form-view-e1ba6009.js} +14 -403
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
- package/dist/esm/{usePayoutStatus-46c0c289.js → useIndirectTaxForm-b2888ea5.js} +292 -5
- package/dist/esm/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-69c9ffe0.js} +2 -2
- package/dist/esm/{useLeadFormState-dd4e8b08.js → useLeadFormState-332b2796.js} +2 -2
- package/dist/esm/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-3a1f36a2.js} +2 -2
- package/dist/esm/{useReferralCodes-52ca720f.js → useReferralCodes-25f8b792.js} +1 -1
- package/dist/esm/{useReferralTable-92af4133.js → useReferralTable-03d32c6f.js} +3 -3
- package/dist/esm/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-aa44cfff.js} +1 -1
- package/dist/esm/{useVerificationEmail-c13c3b51.js → useVerificationEmail-9f2c0bab.js} +1 -1
- package/dist/esm/{utilities-77b1e0cc.js → utilities-cbd8f2eb.js} +1 -1
- package/dist/esm/utils-4f5cd04c.js +467 -0
- package/dist/esm-es5/{ShadowViewAddon-0b980200.js → ShadowViewAddon-e115fa1c.js} +1 -1
- package/dist/esm-es5/data-8698cbc6.js +1 -0
- package/dist/esm-es5/eventKeys-f76b6a03.js +1 -0
- package/dist/esm-es5/{global-96c14d63.js → global-75e96214.js} +1 -1
- package/dist/esm-es5/{index.module-b23fdad8.js → index.module-02cb914c.js} +1 -1
- package/dist/esm-es5/keys-1054056a.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/parseStates-ed75e224.js +1 -0
- package/dist/esm-es5/{re-render-f30aeb6b.js → re-render-bf46ba54.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.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_2.entry.js +1 -0
- 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-7928db07.js → sqm-lead-checkbox-field-view-bfafee56.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-b945edf4.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-b3beac5a.js → sqm-navigation-sidebar-item-view-8d98fcf3.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-partner-info-modal-view-d6f3a215.js +1 -0
- 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-04528277.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-b5ea620f.js → sqm-portal-profile-view-2018590a.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-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c61536b7.js → sqm-portal-verify-email-view-590f964b.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-e1ba6009.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
- package/dist/esm-es5/useIndirectTaxForm-b2888ea5.js +6 -0
- package/dist/esm-es5/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-69c9ffe0.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-dd4e8b08.js → useLeadFormState-332b2796.js} +1 -1
- package/dist/esm-es5/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-3a1f36a2.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-52ca720f.js → useReferralCodes-25f8b792.js} +1 -1
- package/dist/esm-es5/{useReferralTable-92af4133.js → useReferralTable-03d32c6f.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-aa44cfff.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-c13c3b51.js → useVerificationEmail-9f2c0bab.js} +1 -1
- package/dist/esm-es5/{utilities-77b1e0cc.js → utilities-cbd8f2eb.js} +1 -1
- package/dist/esm-es5/utils-4f5cd04c.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-626b31cb.system.entry.js → p-025ddad2.system.entry.js} +1 -1
- package/dist/mint-components/{p-5b871e38.system.entry.js → p-02c0f88e.system.entry.js} +1 -1
- package/dist/mint-components/{p-f55ecf35.system.js → p-02e2b13b.system.js} +1 -1
- package/dist/mint-components/{p-a4f8abad.js → p-0766438e.js} +1 -1
- package/dist/mint-components/{p-205cfdcd.system.js → p-0815b973.system.js} +1 -1
- package/dist/mint-components/{p-db0a2afd.entry.js → p-092c2606.entry.js} +1 -1
- package/dist/mint-components/{p-fe1d3cf8.system.entry.js → p-099ce3d5.system.entry.js} +1 -1
- package/dist/mint-components/p-0a6489fa.entry.js +1 -0
- package/dist/mint-components/p-0afa6148.js +1 -0
- package/dist/mint-components/{p-fc284f91.system.entry.js → p-0b32e1d4.system.entry.js} +1 -1
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/{p-7b59e13c.system.js → p-1317cc92.system.js} +1 -1
- package/dist/mint-components/{p-2b4af8e8.system.entry.js → p-13bb56a8.system.entry.js} +1 -1
- package/dist/mint-components/{p-f8a09b0f.js → p-13d8ecad.js} +1 -1
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/{p-61897e72.entry.js → p-14183edc.entry.js} +1 -1
- package/dist/mint-components/{p-8f2d03c7.entry.js → p-1599a178.entry.js} +1 -1
- package/dist/mint-components/{p-02499e08.entry.js → p-1b0326d1.entry.js} +1 -1
- package/dist/mint-components/p-1d398dbc.entry.js +11 -0
- package/dist/mint-components/p-1d86895f.system.js +1 -0
- package/dist/mint-components/p-1e6a2945.js +1 -0
- package/dist/mint-components/{p-c8a3f3b0.js → p-1efb42e2.js} +1 -1
- package/dist/mint-components/p-1f387c7b.system.js +1 -0
- package/dist/mint-components/{p-a96c9bbb.system.entry.js → p-209157a9.system.entry.js} +1 -1
- package/dist/mint-components/{p-30c1ef36.system.js → p-2190dc73.system.js} +1 -1
- package/dist/mint-components/{p-80e116ec.system.entry.js → p-24f1d342.system.entry.js} +1 -1
- package/dist/mint-components/{p-6668f9f0.entry.js → p-27daf264.entry.js} +1 -1
- package/dist/mint-components/p-28ed2ae9.js +1 -0
- package/dist/mint-components/{p-09f7aacd.entry.js → p-29bc5f50.entry.js} +2 -2
- package/dist/mint-components/{p-738dce27.system.entry.js → p-2d3f7b76.system.entry.js} +1 -1
- package/dist/mint-components/p-2ed13619.entry.js +1 -0
- package/dist/mint-components/{p-c45a929a.system.entry.js → p-30cfe3e3.system.entry.js} +1 -1
- package/dist/mint-components/{p-d55c50af.system.js → p-31815fb6.system.js} +1 -1
- package/dist/mint-components/{p-c8bcbf8b.system.entry.js → p-3354cc75.system.entry.js} +1 -1
- package/dist/mint-components/{p-5bc5c61e.entry.js → p-335a5736.entry.js} +1 -1
- package/dist/mint-components/{p-e9485160.system.entry.js → p-33ca28ba.system.entry.js} +1 -1
- package/dist/mint-components/p-3596e241.entry.js +116 -0
- package/dist/mint-components/{p-8583ce0c.system.js → p-376c7608.system.js} +1 -1
- package/dist/mint-components/p-37e24621.system.entry.js +1 -0
- package/dist/mint-components/{p-95510f27.entry.js → p-38d04e4b.entry.js} +1 -1
- package/dist/mint-components/{p-e84b874c.js → p-3a41b39c.js} +1 -1
- package/dist/mint-components/{p-e5ea43b1.entry.js → p-3bbc0db2.entry.js} +2 -2
- package/dist/mint-components/{p-982d1f6f.entry.js → p-432a44de.entry.js} +3 -2
- package/dist/mint-components/{p-bab4929e.js → p-45230a44.js} +1 -1
- package/dist/mint-components/p-4691e9d5.system.js +1 -0
- package/dist/mint-components/{p-1d92c169.entry.js → p-4d73a616.entry.js} +1 -1
- package/dist/mint-components/{p-3bc62ca6.entry.js → p-4e3db52b.entry.js} +1 -1
- package/dist/mint-components/{p-3286ef38.js → p-4eaa3eb7.js} +1 -1
- package/dist/mint-components/{p-013564b3.entry.js → p-4eadbd5b.entry.js} +1 -1
- package/dist/mint-components/p-4f9dc974.js +1 -0
- package/dist/mint-components/{p-f7ca4cc4.system.entry.js → p-51ae6716.system.entry.js} +1 -1
- package/dist/mint-components/p-56b33268.system.entry.js +1 -0
- package/dist/mint-components/p-58c24352.system.js +6 -0
- package/dist/mint-components/p-5c52100b.js +117 -0
- package/dist/mint-components/{p-77b9cde8.system.js → p-5fdf0286.system.js} +1 -1
- package/dist/mint-components/{p-09348341.entry.js → p-60b1f3d9.entry.js} +1 -1
- package/dist/mint-components/{p-d005df28.system.entry.js → p-623a0a0b.system.entry.js} +1 -1
- package/dist/mint-components/{p-c30d0049.system.entry.js → p-6b4e5d94.system.entry.js} +1 -1
- package/dist/mint-components/{p-f4e36adf.system.entry.js → p-6f6c3ac6.system.entry.js} +1 -1
- package/dist/mint-components/p-6f8dde97.system.js +1 -0
- package/dist/mint-components/{p-43c31fd5.system.js → p-7628e56f.system.js} +1 -1
- package/dist/mint-components/{p-653db72e.entry.js → p-78e6dc8d.entry.js} +1 -1
- package/dist/mint-components/{p-f581aac7.js → p-7a091fa7.js} +1 -1
- package/dist/mint-components/{p-40bad95a.entry.js → p-7cbdf341.entry.js} +2 -2
- package/dist/mint-components/{p-044f930a.system.js → p-7d2d9ef9.system.js} +1 -1
- package/dist/mint-components/{p-5c4ba8a0.entry.js → p-7ea3f49c.entry.js} +1 -1
- package/dist/mint-components/{p-5ce78407.system.entry.js → p-81bc6dca.system.entry.js} +1 -1
- package/dist/mint-components/{p-f6528f8a.entry.js → p-84495fb8.entry.js} +1 -1
- package/dist/mint-components/{p-b96e90a2.system.entry.js → p-86d20b47.system.entry.js} +1 -1
- package/dist/mint-components/p-87f86492.js +1 -0
- package/dist/mint-components/{p-d0993bb9.js → p-8a6531d2.js} +1 -1
- package/dist/mint-components/p-8ae8968c.js +1 -0
- package/dist/mint-components/{p-7265bbcb.system.js → p-8e148cb0.system.js} +1 -1
- package/dist/mint-components/p-8f15bf17.entry.js +1 -0
- package/dist/mint-components/{p-b66f45d1.entry.js → p-921eb024.entry.js} +1 -1
- package/dist/mint-components/{p-f1374258.system.entry.js → p-925aa740.system.entry.js} +1 -1
- package/dist/mint-components/p-99eecdcb.system.entry.js +1 -0
- package/dist/mint-components/{p-e12754f5.system.entry.js → p-9a15cd5a.system.entry.js} +1 -1
- package/dist/mint-components/p-9c1f5317.system.js +1 -0
- package/dist/mint-components/{p-832aea99.js → p-9f48640d.js} +1 -1
- package/dist/mint-components/p-a38eece5.system.entry.js +1 -0
- package/dist/mint-components/p-a49d9288.entry.js +1 -0
- package/dist/mint-components/{p-90833864.system.entry.js → p-ab59c5eb.system.entry.js} +1 -1
- package/dist/mint-components/{p-e6240c72.js → p-abd717d4.js} +1 -1
- package/dist/mint-components/p-abe9f5b1.js +99 -0
- package/dist/mint-components/p-ae2f610e.system.js +1 -0
- package/dist/mint-components/p-b222bace.system.entry.js +1 -0
- package/dist/mint-components/{p-19c441b2.system.js → p-b2ad3fca.system.js} +1 -1
- package/dist/mint-components/{p-c8a8d231.entry.js → p-b3309d9b.entry.js} +2 -2
- package/dist/mint-components/p-b419f9ac.entry.js +299 -0
- package/dist/mint-components/{p-8962e023.js → p-b871d158.js} +1 -1
- package/dist/mint-components/p-b96ed8eb.js +1 -0
- package/dist/mint-components/p-badf28bb.system.js +1 -0
- package/dist/mint-components/{p-035d9b65.js → p-bb0b5e4b.js} +1 -1
- package/dist/mint-components/{p-52674798.entry.js → p-bcfdb510.entry.js} +1 -1
- package/dist/mint-components/p-be6a0dee.system.js +1 -0
- package/dist/mint-components/{p-642f2c89.js → p-bf9ab2d3.js} +1 -1
- package/dist/mint-components/{p-bc386a7b.js → p-c0a85e22.js} +1 -1
- package/dist/mint-components/p-c0f8f977.system.entry.js +1 -0
- package/dist/mint-components/p-c41d536d.entry.js +1 -0
- package/dist/mint-components/{p-a0c5631b.system.js → p-c66e5217.system.js} +1 -1
- package/dist/mint-components/p-cdabd9de.system.js +1 -0
- package/dist/mint-components/p-cfc35705.system.entry.js +1 -0
- package/dist/mint-components/{p-0d83907e.js → p-cfea215d.js} +1 -1
- package/dist/mint-components/p-d08408b3.entry.js +1 -0
- package/dist/mint-components/{p-172675ca.system.js → p-d284ae70.system.js} +1 -1
- package/dist/mint-components/{p-027fc3be.system.entry.js → p-d34564f8.system.entry.js} +1 -1
- package/dist/mint-components/{p-1021a49f.system.entry.js → p-db6bf7cf.system.entry.js} +1 -1
- package/dist/mint-components/{p-4da5a3fe.system.entry.js → p-df897432.system.entry.js} +1 -1
- package/dist/mint-components/{p-036a2617.system.js → p-e651593c.system.js} +1 -1
- package/dist/mint-components/{p-f39cf252.system.entry.js → p-e6de31a7.system.entry.js} +1 -1
- package/dist/mint-components/{p-2668335b.js → p-e8e7af06.js} +1 -1
- package/dist/mint-components/{p-85721089.system.js → p-e920c95c.system.js} +1 -1
- package/dist/mint-components/{p-3366b81e.js → p-eae44b42.js} +2 -2
- package/dist/mint-components/p-ebc519bc.system.js +1 -0
- package/dist/mint-components/{p-af407cce.entry.js → p-ef32fa8f.entry.js} +1 -1
- package/dist/mint-components/{p-7efb8782.system.js → p-f32050f6.system.js} +1 -1
- package/dist/mint-components/{p-782af7ae.system.entry.js → p-f6de2e5c.system.entry.js} +1 -1
- package/dist/mint-components/{p-9390586b.system.entry.js → p-fa85ea51.system.entry.js} +1 -1
- package/dist/mint-components/p-ff013776.entry.js +9 -0
- package/dist/mint-components/p-ffcebe78.entry.js +83 -0
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +15 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +50 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +123 -0
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +17 -0
- package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +18 -1
- package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +19 -7
- package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/keys.d.ts +2 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +75 -7
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +2 -0
- package/dist/types/components/tax-and-cash/data.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +173 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +7 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -5
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +0 -4
- package/dist/types/components.d.ts +644 -32
- package/dist/types/saasquatch.d.ts +2 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -4
- package/dist/cjs/extractProps-e9c55ba8.js +0 -35
- package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -418
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -214
- package/dist/esm/data-12e6aae1.js +0 -216
- package/dist/esm/extractProps-54064fb0.js +0 -32
- package/dist/esm/keys-406491dc.js +0 -6
- package/dist/esm/sqm-email-verification.entry.js +0 -414
- package/dist/esm/sqm-widget-verification.entry.js +0 -210
- package/dist/esm-es5/data-12e6aae1.js +0 -1
- package/dist/esm-es5/extractProps-54064fb0.js +0 -1
- package/dist/esm-es5/keys-406491dc.js +0 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +0 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
- package/dist/esm-es5/usePayoutStatus-46c0c289.js +0 -6
- package/dist/mint-components/p-00b235c5.system.entry.js +0 -1
- package/dist/mint-components/p-0706cf9e.system.entry.js +0 -1
- package/dist/mint-components/p-0797a946.js +0 -1
- package/dist/mint-components/p-13292317.entry.js +0 -11
- package/dist/mint-components/p-2d5c2bd4.system.entry.js +0 -1
- package/dist/mint-components/p-38c7775a.js +0 -1
- package/dist/mint-components/p-3adbfd0b.system.js +0 -6
- package/dist/mint-components/p-3af3e2c1.entry.js +0 -25
- package/dist/mint-components/p-5492dd51.system.entry.js +0 -1
- package/dist/mint-components/p-57dd28bd.system.js +0 -1
- package/dist/mint-components/p-5b1d2866.system.js +0 -1
- package/dist/mint-components/p-6c4ad51a.js +0 -1
- package/dist/mint-components/p-77fa2383.entry.js +0 -1
- package/dist/mint-components/p-7939e4af.entry.js +0 -1
- package/dist/mint-components/p-8285869e.entry.js +0 -9
- package/dist/mint-components/p-892797eb.system.entry.js +0 -1
- package/dist/mint-components/p-91a96e98.entry.js +0 -1
- package/dist/mint-components/p-b2b85238.entry.js +0 -1
- package/dist/mint-components/p-b395470f.entry.js +0 -16
- package/dist/mint-components/p-bba16a46.system.entry.js +0 -1
- package/dist/mint-components/p-be12607e.entry.js +0 -281
- package/dist/mint-components/p-bf188b72.system.entry.js +0 -1
- package/dist/mint-components/p-ca098be1.system.js +0 -1
- package/dist/mint-components/p-d18dedd4.js +0 -1
- package/dist/mint-components/p-d4f332a7.entry.js +0 -106
- package/dist/mint-components/p-d6193876.system.js +0 -1
- package/dist/mint-components/p-de0d6fd7.js +0 -49
- package/dist/mint-components/p-e00ec007.js +0 -1
- package/dist/mint-components/p-e55aafe9.system.js +0 -1
- package/dist/mint-components/p-ea03e50e.system.js +0 -1
- package/dist/mint-components/p-ec0b649a.entry.js +0 -1
- package/dist/mint-components/p-f8026ed6.system.js +0 -1
- package/dist/mint-components/p-fb804001.system.entry.js +0 -1
- package/dist/mint-components/p-fe70e20c.entry.js +0 -1
- package/dist/mint-components/p-ff118a19.system.js +0 -1
|
@@ -29,9 +29,12 @@ const utilities = require('./utilities-fcdb9504.js');
|
|
|
29
29
|
const ErrorView = require('./ErrorView-ee7b0f36.js');
|
|
30
30
|
const ShadowViewAddon = require('./ShadowViewAddon-3b477e58.js');
|
|
31
31
|
require('./sqm-portal-container-view-757f921b.js');
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
32
|
+
const utils$1 = require('./utils-a3b3d05b.js');
|
|
33
|
+
const data = require('./data-89ac73dd.js');
|
|
34
|
+
const keys = require('./keys-5a2c9ed2.js');
|
|
35
|
+
require('./eventKeys-7af4df4d.js');
|
|
36
|
+
const useIndirectTaxForm = require('./useIndirectTaxForm-c3c1ec56.js');
|
|
37
|
+
const parseStates = require('./parseStates-d1effc19.js');
|
|
35
38
|
|
|
36
39
|
/**
|
|
37
40
|
*
|
|
@@ -3386,12 +3389,12 @@ const PayoutStatusAlert = class {
|
|
|
3386
3389
|
render() {
|
|
3387
3390
|
const props = index_module.isDemo()
|
|
3388
3391
|
? useDemoPayoutStatusAlert(this)
|
|
3389
|
-
:
|
|
3392
|
+
: useIndirectTaxForm.usePayoutStatus(this);
|
|
3390
3393
|
return index.h(PayoutStatusAlertView, Object.assign({}, props));
|
|
3391
3394
|
}
|
|
3392
3395
|
};
|
|
3393
3396
|
function useDemoPayoutStatusAlert(props) {
|
|
3394
|
-
const states =
|
|
3397
|
+
const states = parseStates.parseStates(props.stateController);
|
|
3395
3398
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
|
|
3396
3399
|
? { ...prev, ...states[key] }
|
|
3397
3400
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
@@ -5775,7 +5778,7 @@ function EmptySlot$1() {
|
|
|
5775
5778
|
return (index.h("slot", { name: "empty" }, index.h("sqm-empty", { emptyStateImage: "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_exchange2.png", emptyStateHeader: "Redeem rewards", emptyStateText: "Use your points to redeem rewards once they become available" })));
|
|
5776
5779
|
}
|
|
5777
5780
|
function useRewardExchangeListDemo(props) {
|
|
5778
|
-
const states =
|
|
5781
|
+
const states = parseStates.parseStates(props.stateController);
|
|
5779
5782
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-reward-exchange-list"
|
|
5780
5783
|
? { ...prev, ...states[key] }
|
|
5781
5784
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
@@ -6635,12 +6638,39 @@ function useTaskCardDemo(props) {
|
|
|
6635
6638
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6636
6639
|
}
|
|
6637
6640
|
|
|
6641
|
+
/**
|
|
6642
|
+
* Util function for getting just the props with a certain prefix.
|
|
6643
|
+
* @param props Text props on stencil component
|
|
6644
|
+
* @param prefix Prefix denoting which group the text prop belongs to
|
|
6645
|
+
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
6646
|
+
*/
|
|
6647
|
+
function extractProps(props, prefix) {
|
|
6648
|
+
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
6649
|
+
const formattedProps = keys.reduce((prev, k) => {
|
|
6650
|
+
const key = k.replace(prefix, "");
|
|
6651
|
+
return {
|
|
6652
|
+
...prev,
|
|
6653
|
+
[key]: props[k],
|
|
6654
|
+
};
|
|
6655
|
+
}, {});
|
|
6656
|
+
return formattedProps;
|
|
6657
|
+
}
|
|
6658
|
+
|
|
6638
6659
|
function getCurrentStep(user) {
|
|
6639
6660
|
var _a, _b;
|
|
6640
6661
|
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
6641
6662
|
return "/1";
|
|
6642
6663
|
}
|
|
6643
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
|
|
6664
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, billingAddress, billingCity, billingCountryCode, billingPostalCode, billingState, phoneNumber, phoneNumberCountryCode, } = user.impactConnection.publisher;
|
|
6665
|
+
const hasBillingInfo = billingAddress &&
|
|
6666
|
+
billingCity &&
|
|
6667
|
+
billingCountryCode &&
|
|
6668
|
+
billingPostalCode &&
|
|
6669
|
+
phoneNumberCountryCode &&
|
|
6670
|
+
phoneNumber;
|
|
6671
|
+
if (!hasBillingInfo) {
|
|
6672
|
+
return "/1";
|
|
6673
|
+
}
|
|
6644
6674
|
// If they do have a required document, look at current document
|
|
6645
6675
|
if (requiredTaxDocumentType && !currentTaxDocument) {
|
|
6646
6676
|
// Specific to custom CASH setting,
|
|
@@ -6658,6 +6688,7 @@ function useTaxAndCash() {
|
|
|
6658
6688
|
const host = index_module._();
|
|
6659
6689
|
const user = index_module.J();
|
|
6660
6690
|
const locale = index_module.L();
|
|
6691
|
+
const [completeImpactPartner, { loading: completeLoading }] = index_module.$e(useIndirectTaxForm.COMPLETE_PARTNER);
|
|
6661
6692
|
// State for current step of form
|
|
6662
6693
|
const [step, setStep] = index_module.In({
|
|
6663
6694
|
namespace: data.TAX_CONTEXT_NAMESPACE,
|
|
@@ -6749,7 +6780,7 @@ function useTaxAndCash() {
|
|
|
6749
6780
|
const availableCountries = domContextHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
6750
6781
|
const _topCountries = ["CA", "GB", "US"];
|
|
6751
6782
|
const sortedCountries = domContextHooks_module.useMemo(() => Array.from(availableCountries)
|
|
6752
|
-
.map((countryCode) =>
|
|
6783
|
+
.map((countryCode) => utils$1.getCountryObj({ countryCode, locale: intlLocale }))
|
|
6753
6784
|
.sort(sortByName)
|
|
6754
6785
|
.reduce((prev, countryObj) => {
|
|
6755
6786
|
if (_topCountries.includes(countryObj.countryCode))
|
|
@@ -6765,16 +6796,54 @@ function useTaxAndCash() {
|
|
|
6765
6796
|
setCurrenciesContext(supportedCurrencies);
|
|
6766
6797
|
}, [supportedCurrencies]);
|
|
6767
6798
|
domContextHooks_module.useEffect(() => {
|
|
6799
|
+
var _a;
|
|
6768
6800
|
if (errors) {
|
|
6769
6801
|
setStep("/error");
|
|
6770
6802
|
return;
|
|
6771
6803
|
}
|
|
6772
6804
|
if (!host || !user)
|
|
6773
6805
|
return;
|
|
6806
|
+
async function completeConnection(user) {
|
|
6807
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6808
|
+
const publisher = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
|
|
6809
|
+
const hasBillingInfo = publisher.billingAddress &&
|
|
6810
|
+
publisher.billingCity &&
|
|
6811
|
+
publisher.billingCountryCode &&
|
|
6812
|
+
publisher.billingPostalCode &&
|
|
6813
|
+
publisher.phoneNumberCountryCode &&
|
|
6814
|
+
publisher.phoneNumber;
|
|
6815
|
+
if (hasBillingInfo &&
|
|
6816
|
+
((_b = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _b === void 0 ? void 0 : _b.connectionStatus) === "STARTED") {
|
|
6817
|
+
const vars = {
|
|
6818
|
+
user: {
|
|
6819
|
+
id: (_c = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _c === void 0 ? void 0 : _c.id,
|
|
6820
|
+
accountId: (_d = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _d === void 0 ? void 0 : _d.accountId,
|
|
6821
|
+
},
|
|
6822
|
+
firstName: (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _e === void 0 ? void 0 : _e.firstName,
|
|
6823
|
+
lastName: (_f = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _f === void 0 ? void 0 : _f.lastName,
|
|
6824
|
+
countryCode: publisher.billingCountryCode,
|
|
6825
|
+
currency: publisher.currency,
|
|
6826
|
+
address: publisher.billingAddress,
|
|
6827
|
+
city: publisher.billingCity,
|
|
6828
|
+
state: publisher.billingState,
|
|
6829
|
+
postalCode: publisher.billingPostalCode,
|
|
6830
|
+
phoneNumber: publisher.phoneNumber,
|
|
6831
|
+
phoneNumberCountryCode: publisher.phoneNumberCountryCode,
|
|
6832
|
+
};
|
|
6833
|
+
await completeImpactPartner({
|
|
6834
|
+
vars,
|
|
6835
|
+
});
|
|
6836
|
+
}
|
|
6837
|
+
}
|
|
6774
6838
|
if (data$1) {
|
|
6775
6839
|
const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
|
|
6776
6840
|
if (!user || step !== "/loading")
|
|
6777
6841
|
return;
|
|
6842
|
+
if (((_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) &&
|
|
6843
|
+
(user === null || user === void 0 ? void 0 : user.impactConnection.connectionStatus) === "STARTED") {
|
|
6844
|
+
completeConnection(user);
|
|
6845
|
+
refetch();
|
|
6846
|
+
}
|
|
6778
6847
|
const currentStep = getCurrentStep(user);
|
|
6779
6848
|
setStep(currentStep);
|
|
6780
6849
|
}
|
|
@@ -6869,11 +6938,6 @@ const TaxAndCashMonolith = class {
|
|
|
6869
6938
|
* @uiGroup Step 1 Properties
|
|
6870
6939
|
*/
|
|
6871
6940
|
this.step1_currency = "Currency";
|
|
6872
|
-
/**
|
|
6873
|
-
* @uiName Currency field help text
|
|
6874
|
-
* @uiGroup Step 1 Properties
|
|
6875
|
-
*/
|
|
6876
|
-
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
6877
6941
|
/**
|
|
6878
6942
|
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
6879
6943
|
* @uiName Terms and conditions checkbox
|
|
@@ -7284,12 +7348,22 @@ const TaxAndCashMonolith = class {
|
|
|
7284
7348
|
* @uiGroup Step 4 Properties
|
|
7285
7349
|
*/
|
|
7286
7350
|
this.step4_branchCodeLabel = "Branch code";
|
|
7351
|
+
/**
|
|
7352
|
+
* @uiName Branch name field label
|
|
7353
|
+
* @uiGroup Step 4 Properties
|
|
7354
|
+
*/
|
|
7355
|
+
this.step4_branchNameLabel = "Branch name";
|
|
7287
7356
|
/**
|
|
7288
7357
|
* Label text for the classification input field
|
|
7289
7358
|
* @uiName Classification field label
|
|
7290
7359
|
* @uiGroup Step 4 Properties
|
|
7291
7360
|
*/
|
|
7292
7361
|
this.step4_classificationLabel = "Classification";
|
|
7362
|
+
/**
|
|
7363
|
+
* @uiName Classification code field label
|
|
7364
|
+
* @uiGroup Step 4 Properties
|
|
7365
|
+
*/
|
|
7366
|
+
this.step4_classificationCodeLabel = "KBE code";
|
|
7293
7367
|
/**
|
|
7294
7368
|
* @uiName Taxpayer ID field label
|
|
7295
7369
|
* @uiGroup Step 4 Properties
|
|
@@ -7910,7 +7984,7 @@ const TaxAndCashMonolith = class {
|
|
|
7910
7984
|
getGeneralStepTextProps(prefix) {
|
|
7911
7985
|
const props = utils.getProps(this);
|
|
7912
7986
|
return {
|
|
7913
|
-
...extractProps
|
|
7987
|
+
...extractProps(props, prefix),
|
|
7914
7988
|
generalErrorTitle: props.generalErrorTitle,
|
|
7915
7989
|
generalErrorDescription: props.generalErrorDescription,
|
|
7916
7990
|
fieldRequiredError: props.fieldRequiredError,
|
|
@@ -7960,7 +8034,7 @@ const TaxAndCashMonolith = class {
|
|
|
7960
8034
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, this.supportLink)),
|
|
7961
8035
|
}) }));
|
|
7962
8036
|
}
|
|
7963
|
-
return index.h(
|
|
8037
|
+
return index.h(utils$1.LoadingView, null);
|
|
7964
8038
|
}
|
|
7965
8039
|
};
|
|
7966
8040
|
function useDemoTaxAndCash(props) {
|
|
@@ -7968,7 +8042,7 @@ function useDemoTaxAndCash(props) {
|
|
|
7968
8042
|
namespace: data.TAX_CONTEXT_NAMESPACE,
|
|
7969
8043
|
initialValue: "/1",
|
|
7970
8044
|
});
|
|
7971
|
-
const states =
|
|
8045
|
+
const states = parseStates.parseStates(props.stateController);
|
|
7972
8046
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash"
|
|
7973
8047
|
? { ...prev, ...states[key] }
|
|
7974
8048
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
@@ -8244,6 +8318,365 @@ function useUserNameDemo(props) {
|
|
|
8244
8318
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
8245
8319
|
}
|
|
8246
8320
|
|
|
8321
|
+
const USER_LOOKUP = index_module.dist.gql `
|
|
8322
|
+
query checkUserVerification {
|
|
8323
|
+
viewer {
|
|
8324
|
+
... on User {
|
|
8325
|
+
id
|
|
8326
|
+
accountId
|
|
8327
|
+
email
|
|
8328
|
+
emailVerified
|
|
8329
|
+
managedIdentity {
|
|
8330
|
+
email
|
|
8331
|
+
emailVerified
|
|
8332
|
+
}
|
|
8333
|
+
impactConnection {
|
|
8334
|
+
connected
|
|
8335
|
+
}
|
|
8336
|
+
}
|
|
8337
|
+
}
|
|
8338
|
+
}
|
|
8339
|
+
`;
|
|
8340
|
+
function useWidgetVerification() {
|
|
8341
|
+
const [showCode] = index_module.In({
|
|
8342
|
+
namespace: keys.SHOW_CODE_NAMESPACE,
|
|
8343
|
+
initialValue: false,
|
|
8344
|
+
});
|
|
8345
|
+
index_module.In({
|
|
8346
|
+
namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
|
|
8347
|
+
initialValue: undefined,
|
|
8348
|
+
});
|
|
8349
|
+
const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
8350
|
+
const [loading, setLoading] = domContextHooks_module.useState(true);
|
|
8351
|
+
const [showPartnerModal, setShowPartnerModal] = index_module.In({
|
|
8352
|
+
namespace: keys.SHOW_PARTNER_MODAL_NAMESPACE,
|
|
8353
|
+
initialValue: false,
|
|
8354
|
+
});
|
|
8355
|
+
const [partnerCreated, setPartnerCreated] = index_module.In({
|
|
8356
|
+
namespace: keys.PARTNER_CREATED_NAMESPACE,
|
|
8357
|
+
initialValue: false,
|
|
8358
|
+
});
|
|
8359
|
+
const [fetch] = index_module.Xe(USER_LOOKUP);
|
|
8360
|
+
domContextHooks_module.useEffect(() => {
|
|
8361
|
+
const checkUser = async () => {
|
|
8362
|
+
var _a, _b, _c, _d, _e;
|
|
8363
|
+
try {
|
|
8364
|
+
const res = await fetch({});
|
|
8365
|
+
if (!res || res instanceof Error)
|
|
8366
|
+
throw new Error();
|
|
8367
|
+
// Flow changed to send email -> verify code -> show early partner creation modal
|
|
8368
|
+
const emailVerified = ((_a = res === null || res === void 0 ? void 0 : res.viewer) === null || _a === void 0 ? void 0 : _a.emailVerified) || ((_c = (_b = res === null || res === void 0 ? void 0 : res.viewer) === null || _b === void 0 ? void 0 : _b.managedIdentity) === null || _c === void 0 ? void 0 : _c.emailVerified);
|
|
8369
|
+
const isConnected = (_e = (_d = res === null || res === void 0 ? void 0 : res.viewer) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.connected;
|
|
8370
|
+
if (isConnected) {
|
|
8371
|
+
// Partner already created, show widget content
|
|
8372
|
+
setContext(true);
|
|
8373
|
+
}
|
|
8374
|
+
else if (emailVerified) {
|
|
8375
|
+
// Email verified but no partner yet, show partner modal
|
|
8376
|
+
setShowPartnerModal(true);
|
|
8377
|
+
}
|
|
8378
|
+
}
|
|
8379
|
+
catch (e) {
|
|
8380
|
+
console.error("Could not fetch user information:", e);
|
|
8381
|
+
}
|
|
8382
|
+
finally {
|
|
8383
|
+
setLoading(false);
|
|
8384
|
+
}
|
|
8385
|
+
};
|
|
8386
|
+
checkUser();
|
|
8387
|
+
}, []);
|
|
8388
|
+
const onVerification = () => {
|
|
8389
|
+
setShowPartnerModal(true);
|
|
8390
|
+
};
|
|
8391
|
+
const onPartnerModalComplete = () => {
|
|
8392
|
+
setShowPartnerModal(false);
|
|
8393
|
+
setPartnerCreated(false);
|
|
8394
|
+
setContext(true);
|
|
8395
|
+
};
|
|
8396
|
+
domContextHooks_module.useEffect(() => {
|
|
8397
|
+
if (partnerCreated)
|
|
8398
|
+
onPartnerModalComplete();
|
|
8399
|
+
}, [partnerCreated]);
|
|
8400
|
+
return {
|
|
8401
|
+
showCode,
|
|
8402
|
+
showPartnerModal,
|
|
8403
|
+
onVerification,
|
|
8404
|
+
onPartnerModalComplete,
|
|
8405
|
+
loading,
|
|
8406
|
+
};
|
|
8407
|
+
}
|
|
8408
|
+
|
|
8409
|
+
const style$3 = {
|
|
8410
|
+
Dialog: {
|
|
8411
|
+
"&::part(panel)": {
|
|
8412
|
+
maxWidth: "480px",
|
|
8413
|
+
},
|
|
8414
|
+
"&::part(body)": {
|
|
8415
|
+
padding: "0 var(--sl-spacing-x-large)",
|
|
8416
|
+
fontSize: "var(--sl-font-size-small)",
|
|
8417
|
+
overflow: "visible",
|
|
8418
|
+
},
|
|
8419
|
+
"&::part(footer)": {
|
|
8420
|
+
display: "flex",
|
|
8421
|
+
flexDirection: "column",
|
|
8422
|
+
gap: "var(--sl-spacing-small)",
|
|
8423
|
+
},
|
|
8424
|
+
"&::part(overlay)": {
|
|
8425
|
+
background: "rgba(0, 0, 0, 0.5)",
|
|
8426
|
+
},
|
|
8427
|
+
},
|
|
8428
|
+
DialogTitle: {
|
|
8429
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
8430
|
+
fontWeight: "600",
|
|
8431
|
+
padding: "var(--sl-spacing-x-large) 0 0 0",
|
|
8432
|
+
margin: "0",
|
|
8433
|
+
},
|
|
8434
|
+
};
|
|
8435
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
8436
|
+
const styleString$3 = sheet$3.toString();
|
|
8437
|
+
const WidgetVerification = class {
|
|
8438
|
+
constructor(hostRef) {
|
|
8439
|
+
index.registerInstance(this, hostRef);
|
|
8440
|
+
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification AND sqm-partner-info-modal
|
|
8441
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8442
|
+
GENERAL PROPS
|
|
8443
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8444
|
+
/**
|
|
8445
|
+
* @uiName General widget header text with partner creation
|
|
8446
|
+
* @uiGroup General Text
|
|
8447
|
+
*/
|
|
8448
|
+
this.general_widgetHeaderWithPartnerCreation = "Let's get you ready for rewards";
|
|
8449
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8450
|
+
EMAIL STEP PROPS
|
|
8451
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8452
|
+
/**
|
|
8453
|
+
* @uiName Verify email widget header text
|
|
8454
|
+
* @uiGroup Email Verification Step
|
|
8455
|
+
*/
|
|
8456
|
+
this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
|
|
8457
|
+
/**
|
|
8458
|
+
* @uiName Send code to email alert header
|
|
8459
|
+
* @uiGroup Email Verification Step
|
|
8460
|
+
*/
|
|
8461
|
+
this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
|
|
8462
|
+
/**
|
|
8463
|
+
* @uiName Send code to email alert description
|
|
8464
|
+
* @uiGroup Email Verification Step
|
|
8465
|
+
*/
|
|
8466
|
+
this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
|
|
8467
|
+
/**
|
|
8468
|
+
* @uiName Email input label
|
|
8469
|
+
* @uiGroup Email Verification Step
|
|
8470
|
+
*/
|
|
8471
|
+
this.emailStep_emailLabel = "Email";
|
|
8472
|
+
/**
|
|
8473
|
+
* @uiName Send code button text
|
|
8474
|
+
* @uiGroup Email Verification Step
|
|
8475
|
+
*/
|
|
8476
|
+
this.emailStep_sendCodeText = "Send code";
|
|
8477
|
+
/**
|
|
8478
|
+
* @uiName Send code button text
|
|
8479
|
+
* @uiGroup Email Verification Step
|
|
8480
|
+
*/
|
|
8481
|
+
this.emailStep_emailValidationErrorText = "Please enter a valid email";
|
|
8482
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8483
|
+
CODE STEP PROPS
|
|
8484
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8485
|
+
/**
|
|
8486
|
+
* @uiName Verify code widget header text
|
|
8487
|
+
* @uiGroup Code Verification Step
|
|
8488
|
+
*/
|
|
8489
|
+
this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
8490
|
+
/**
|
|
8491
|
+
* @uiName Reverify code widget header text
|
|
8492
|
+
* @uiGroup Code Verification Step
|
|
8493
|
+
*/
|
|
8494
|
+
this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
8495
|
+
/**
|
|
8496
|
+
* Text displayed under verify button
|
|
8497
|
+
* @uiName Resend code text
|
|
8498
|
+
* @uiGroup Code Verification Step
|
|
8499
|
+
*/
|
|
8500
|
+
this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
8501
|
+
/**
|
|
8502
|
+
* The link that appears in the resend code link
|
|
8503
|
+
* @uiName Resend code label
|
|
8504
|
+
* @uiGroup Code Verification Step
|
|
8505
|
+
*/
|
|
8506
|
+
this.codeStep_resendCodeLabel = "Resend code";
|
|
8507
|
+
/**
|
|
8508
|
+
* Link text displayed under verify button
|
|
8509
|
+
* @uiName Resend code text
|
|
8510
|
+
* @uiGroup Code Verification Step
|
|
8511
|
+
*/
|
|
8512
|
+
this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
8513
|
+
/**
|
|
8514
|
+
* Error text displayed under verification input
|
|
8515
|
+
* @uiName Invalid code text
|
|
8516
|
+
* @uiGroup Code Verification Step
|
|
8517
|
+
*/
|
|
8518
|
+
this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
8519
|
+
/**
|
|
8520
|
+
* @uiName Verify code button text
|
|
8521
|
+
* @uiGroup Code Verification Step
|
|
8522
|
+
*/
|
|
8523
|
+
this.codeStep_verifyText = "Verify";
|
|
8524
|
+
/**
|
|
8525
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
8526
|
+
* @uiName Network error message
|
|
8527
|
+
* @uiGroup Code Verification Step
|
|
8528
|
+
*/
|
|
8529
|
+
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
8530
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8531
|
+
PARTNER CREATION STEP PROPS
|
|
8532
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8533
|
+
/**
|
|
8534
|
+
* @uiName New partner header
|
|
8535
|
+
* @uiGroup Partner Creation Step
|
|
8536
|
+
* @uiWidget textArea
|
|
8537
|
+
*/
|
|
8538
|
+
this.createPartnerStep_modalHeader = "Let's get you ready for rewards";
|
|
8539
|
+
/**
|
|
8540
|
+
* @uiName Existing partner header
|
|
8541
|
+
* @uiGroup Partner Creation Step
|
|
8542
|
+
* @uiWidget textArea
|
|
8543
|
+
*/
|
|
8544
|
+
this.createPartnerStep_modalHeaderExistingPartner = "We found an existing account";
|
|
8545
|
+
/**
|
|
8546
|
+
* @uiName New partner description
|
|
8547
|
+
* @uiGroup Partner Creation Step
|
|
8548
|
+
* @uiWidget textArea
|
|
8549
|
+
*/
|
|
8550
|
+
this.createPartnerStep_descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
|
|
8551
|
+
/**
|
|
8552
|
+
* @uiName Existing partner description
|
|
8553
|
+
* @uiGroup Partner Creation Step
|
|
8554
|
+
* @uiWidget textArea
|
|
8555
|
+
*/
|
|
8556
|
+
this.createPartnerStep_descriptionExistingPartner = "We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.";
|
|
8557
|
+
/**
|
|
8558
|
+
* @uiName Existing partner support description
|
|
8559
|
+
* @uiGroup Partner Creation Step
|
|
8560
|
+
* @uiWidget textArea
|
|
8561
|
+
*/
|
|
8562
|
+
this.createPartnerStep_supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
|
|
8563
|
+
/**
|
|
8564
|
+
* @uiName Country label
|
|
8565
|
+
* @uiGroup Partner Creation Step
|
|
8566
|
+
*/
|
|
8567
|
+
this.createPartnerStep_countryLabel = "Country";
|
|
8568
|
+
/**
|
|
8569
|
+
* @uiName Currency label
|
|
8570
|
+
* @uiGroup Partner Creation Step
|
|
8571
|
+
*/
|
|
8572
|
+
this.createPartnerStep_currencyLabel = "Currency";
|
|
8573
|
+
/**
|
|
8574
|
+
* @uiName Submit button label
|
|
8575
|
+
* @uiGroup Partner Creation Step
|
|
8576
|
+
*/
|
|
8577
|
+
this.createPartnerStep_submitButtonLabel = "Submit";
|
|
8578
|
+
/**
|
|
8579
|
+
* @uiName Confirm button label
|
|
8580
|
+
* @uiGroup Partner Creation Step
|
|
8581
|
+
*/
|
|
8582
|
+
this.createPartnerStep_confirmButtonLabel = "Confirm";
|
|
8583
|
+
/**
|
|
8584
|
+
* @uiName Search country placeholder
|
|
8585
|
+
* @uiGroup Partner Creation Step
|
|
8586
|
+
*/
|
|
8587
|
+
this.createPartnerStep_searchCountryPlaceholder = "Search for a country";
|
|
8588
|
+
/**
|
|
8589
|
+
* @uiName Search currency placeholder
|
|
8590
|
+
* @uiGroup Partner Creation Step
|
|
8591
|
+
*/
|
|
8592
|
+
this.createPartnerStep_searchCurrencyPlaceholder = "Search for a currency";
|
|
8593
|
+
/**
|
|
8594
|
+
* @uiName Network error text
|
|
8595
|
+
* @uiGroup Partner Creation Step
|
|
8596
|
+
* @uiWidget textArea
|
|
8597
|
+
*/
|
|
8598
|
+
this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
|
|
8599
|
+
/**
|
|
8600
|
+
* @uiName Missing fields error text
|
|
8601
|
+
* @uiGroup Partner Creation Step
|
|
8602
|
+
* @uiWidget textArea
|
|
8603
|
+
*/
|
|
8604
|
+
this.createPartnerStep_missingFieldsErrorText = "Please select both a country and currency.";
|
|
8605
|
+
/**
|
|
8606
|
+
* @undocumented
|
|
8607
|
+
* @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
|
|
8608
|
+
* @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
|
|
8609
|
+
* @componentState { "title": "Step 3: Create Partner", "props": { "showPartnerModal": true }, "dependencies": ["sqm-partner-info-modal"], "uiGroup": "Partner Creation Step" }
|
|
8610
|
+
*/
|
|
8611
|
+
this.stateController = "{}";
|
|
8612
|
+
domContextHooks_module.h$1(this);
|
|
8613
|
+
}
|
|
8614
|
+
disconnectedCallback() { }
|
|
8615
|
+
getStepTextProps(prefix) {
|
|
8616
|
+
const props = utils.getProps(this);
|
|
8617
|
+
return extractProps(props, prefix);
|
|
8618
|
+
}
|
|
8619
|
+
render() {
|
|
8620
|
+
var _a;
|
|
8621
|
+
const props = index_module.isDemo()
|
|
8622
|
+
? useDemoWidgetVerificationInternal(this)
|
|
8623
|
+
: useWidgetVerification();
|
|
8624
|
+
if (props.loading)
|
|
8625
|
+
return index.h("sl-spinner", null);
|
|
8626
|
+
// for handling state previews in content editor
|
|
8627
|
+
const partnerState = typeof props["sqm-partner-info-modal_stateController"] === "string"
|
|
8628
|
+
? parseStates.parseStates(props["sqm-partner-info-modal_stateController"])
|
|
8629
|
+
: props["sqm-partner-info-modal_stateController"];
|
|
8630
|
+
if (props.showPartnerModal && ((_a = partnerState === null || partnerState === void 0 ? void 0 : partnerState.states) === null || _a === void 0 ? void 0 : _a.open) === false) {
|
|
8631
|
+
return index.h("div", null);
|
|
8632
|
+
}
|
|
8633
|
+
const partnerText = this.getStepTextProps("createPartnerStep_");
|
|
8634
|
+
const dialogLabel = this.general_widgetHeaderWithPartnerCreation;
|
|
8635
|
+
const renderStepContent = () => {
|
|
8636
|
+
if (props.showPartnerModal) {
|
|
8637
|
+
return (index.h("sqm-partner-info-modal", Object.assign({ inModal: true }, partnerText, { stateController: props["sqm-partner-info-modal_stateController"] || "{}" })));
|
|
8638
|
+
}
|
|
8639
|
+
if (props.showCode) {
|
|
8640
|
+
return (index.h("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_"))));
|
|
8641
|
+
}
|
|
8642
|
+
return (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_"))));
|
|
8643
|
+
};
|
|
8644
|
+
return (index.h("div", null, index.h("style", { type: "text/css" }, styleString$3), index.h("sl-dialog", { class: sheet$3.classes.Dialog, noHeader: true, open: true, label: dialogLabel, "onSl-request-close": (e) => {
|
|
8645
|
+
e.preventDefault();
|
|
8646
|
+
}, "onSl-hide": (e) => {
|
|
8647
|
+
var _a;
|
|
8648
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
8649
|
+
e.preventDefault();
|
|
8650
|
+
}
|
|
8651
|
+
} }, index.h("h2", { class: sheet$3.classes.DialogTitle }, dialogLabel), renderStepContent())));
|
|
8652
|
+
}
|
|
8653
|
+
};
|
|
8654
|
+
function useDemoWidgetVerificationInternal(props) {
|
|
8655
|
+
const [showCode, setShowCode] = index_module.In({
|
|
8656
|
+
namespace: keys.SHOW_CODE_NAMESPACE,
|
|
8657
|
+
initialValue: false,
|
|
8658
|
+
});
|
|
8659
|
+
const [email, setEmail] = index_module.In({
|
|
8660
|
+
namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
|
|
8661
|
+
initialValue: undefined,
|
|
8662
|
+
});
|
|
8663
|
+
const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
8664
|
+
const states = parseStates.parseStates(props.stateController);
|
|
8665
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
|
|
8666
|
+
? { ...prev, ...states[key] }
|
|
8667
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
8668
|
+
const onVerification = () => {
|
|
8669
|
+
setContext(true);
|
|
8670
|
+
};
|
|
8671
|
+
return cjs.cjs({
|
|
8672
|
+
showCode,
|
|
8673
|
+
showPartnerModal: false,
|
|
8674
|
+
onVerification,
|
|
8675
|
+
onPartnerModalComplete: () => { },
|
|
8676
|
+
loading: false,
|
|
8677
|
+
}, formatted || {}, { arrayMerge: (_, a) => a });
|
|
8678
|
+
}
|
|
8679
|
+
|
|
8247
8680
|
exports.sqm_big_stat = BigStat;
|
|
8248
8681
|
exports.sqm_brand = BrandComponent;
|
|
8249
8682
|
exports.sqm_brand_selector = SqmBrandSelector;
|
|
@@ -8290,3 +8723,4 @@ exports.sqm_timeline = Timeline;
|
|
|
8290
8723
|
exports.sqm_timeline_entry = TimelineReward;
|
|
8291
8724
|
exports.sqm_user_attribute = UserAttribute;
|
|
8292
8725
|
exports.sqm_user_name = UserName;
|
|
8726
|
+
exports.sqm_widget_verification = WidgetVerification;
|
|
@@ -11,7 +11,7 @@ const utils = require('./utils-6847bc06.js');
|
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
const mixins = require('./mixins-4761d472.js');
|
|
13
13
|
const sqmTextSpanView = require('./sqm-text-span-view-b9e10f5d.js');
|
|
14
|
-
const keys = require('./keys-
|
|
14
|
+
const keys = require('./keys-5a2c9ed2.js');
|
|
15
15
|
const useVerificationEmail = require('./useVerificationEmail-5d19aa99.js');
|
|
16
16
|
|
|
17
17
|
const style = {
|
|
@@ -65,7 +65,6 @@ const style = {
|
|
|
65
65
|
},
|
|
66
66
|
ContinueButton: {
|
|
67
67
|
width: "100%",
|
|
68
|
-
maxWidth: "100px",
|
|
69
68
|
},
|
|
70
69
|
FooterContainer: {
|
|
71
70
|
display: "flex",
|
|
@@ -143,9 +142,9 @@ function WidgetCodeVerificationView(props) {
|
|
|
143
142
|
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
144
143
|
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
145
144
|
states.verifyFailed && (index.h("p", { class: sheet.classes.ErrorText }, text.invalidCodeText)),
|
|
146
|
-
index.h("
|
|
147
|
-
|
|
148
|
-
index.h(
|
|
145
|
+
index.h("div", { class: sheet.classes.FooterContainer },
|
|
146
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)),
|
|
147
|
+
index.h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)))));
|
|
149
148
|
}
|
|
150
149
|
|
|
151
150
|
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|