@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
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-38ad4957.js';
|
|
2
|
-
import { b as buildFontsCssUrl, i as intl } from './global-
|
|
2
|
+
import { b as buildFontsCssUrl, i as intl } from './global-75e96214.js';
|
|
3
3
|
import { n as h, f as useEffect, i as d, k as useState, m as useRef, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-50442785.js';
|
|
4
|
-
import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, b as useCallback, L, y as yn, j as jn,
|
|
4
|
+
import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, b as useCallback, L, y as yn, j as jn, o as Ue, s as setUserIdentity, Q as Qe, k as kn, M as Mn, I as In, S as Sn, p as En, X as Xe } from './index.module-02cb914c.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { g as getProps, a as getMissingProps } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import './useReferralCodes-
|
|
9
|
+
import './useReferralCodes-25f8b792.js';
|
|
10
10
|
import './mixins-f750863a.js';
|
|
11
11
|
import { C as CopyTextView } from './copy-text-view-87259b11.js';
|
|
12
12
|
import './sqm-text-span-view-72f43dff.js';
|
|
13
|
-
import { A as AsYouType, u as usePortalRegistrationForm } from './usePortalRegistrationForm-
|
|
14
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT, a as useRegistrationForm } from './useRegistrationFormState-
|
|
13
|
+
import { A as AsYouType, u as usePortalRegistrationForm } from './usePortalRegistrationForm-3a1f36a2.js';
|
|
14
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, a as useRegistrationForm } from './useRegistrationFormState-aa44cfff.js';
|
|
15
15
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-79265df5.js';
|
|
16
|
-
import { a as useRequestRerender } from './re-render-
|
|
17
|
-
import { u as useChildElements } from './useChildElements-
|
|
16
|
+
import { a as useRequestRerender } from './re-render-bf46ba54.js';
|
|
17
|
+
import { u as useChildElements } from './useChildElements-06937df7.js';
|
|
18
18
|
import { l as luxon } from './luxon-1be92a8e.js';
|
|
19
19
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
20
20
|
import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
|
|
21
21
|
import { E as EmailRegistrationView } from './email-registration-view-4cdb4129.js';
|
|
22
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
23
|
-
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-
|
|
24
|
-
import { i as isEmpty } from './utilities-
|
|
22
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-69c9ffe0.js';
|
|
23
|
+
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-332b2796.js';
|
|
24
|
+
import { i as isEmpty } from './utilities-cbd8f2eb.js';
|
|
25
25
|
import { E as ErrorView } from './ErrorView-74cb3af8.js';
|
|
26
|
-
import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
26
|
+
import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-e115fa1c.js';
|
|
27
27
|
import './sqm-portal-container-view-200c9df8.js';
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
28
|
+
import { g as getCountryObj, L as LoadingView } from './utils-4f5cd04c.js';
|
|
29
|
+
import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, g as GET_FINANCE_NETWORK_SETTINGS, h as CURRENCIES_QUERY_NAMESPACE, i as GET_CURRENCIES } from './data-8698cbc6.js';
|
|
30
|
+
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, b as SHOW_PARTNER_MODAL_NAMESPACE, P as PARTNER_CREATED_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-1054056a.js';
|
|
31
|
+
import './eventKeys-f76b6a03.js';
|
|
32
|
+
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-b2888ea5.js';
|
|
33
|
+
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
31
34
|
|
|
32
35
|
/**
|
|
33
36
|
*
|
|
@@ -6631,12 +6634,39 @@ function useTaskCardDemo(props) {
|
|
|
6631
6634
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6632
6635
|
}
|
|
6633
6636
|
|
|
6637
|
+
/**
|
|
6638
|
+
* Util function for getting just the props with a certain prefix.
|
|
6639
|
+
* @param props Text props on stencil component
|
|
6640
|
+
* @param prefix Prefix denoting which group the text prop belongs to
|
|
6641
|
+
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
6642
|
+
*/
|
|
6643
|
+
function extractProps(props, prefix) {
|
|
6644
|
+
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
6645
|
+
const formattedProps = keys.reduce((prev, k) => {
|
|
6646
|
+
const key = k.replace(prefix, "");
|
|
6647
|
+
return {
|
|
6648
|
+
...prev,
|
|
6649
|
+
[key]: props[k],
|
|
6650
|
+
};
|
|
6651
|
+
}, {});
|
|
6652
|
+
return formattedProps;
|
|
6653
|
+
}
|
|
6654
|
+
|
|
6634
6655
|
function getCurrentStep(user) {
|
|
6635
6656
|
var _a, _b;
|
|
6636
6657
|
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
6637
6658
|
return "/1";
|
|
6638
6659
|
}
|
|
6639
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
|
|
6660
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, billingAddress, billingCity, billingCountryCode, billingPostalCode, billingState, phoneNumber, phoneNumberCountryCode, } = user.impactConnection.publisher;
|
|
6661
|
+
const hasBillingInfo = billingAddress &&
|
|
6662
|
+
billingCity &&
|
|
6663
|
+
billingCountryCode &&
|
|
6664
|
+
billingPostalCode &&
|
|
6665
|
+
phoneNumberCountryCode &&
|
|
6666
|
+
phoneNumber;
|
|
6667
|
+
if (!hasBillingInfo) {
|
|
6668
|
+
return "/1";
|
|
6669
|
+
}
|
|
6640
6670
|
// If they do have a required document, look at current document
|
|
6641
6671
|
if (requiredTaxDocumentType && !currentTaxDocument) {
|
|
6642
6672
|
// Specific to custom CASH setting,
|
|
@@ -6654,6 +6684,7 @@ function useTaxAndCash() {
|
|
|
6654
6684
|
const host = _$1();
|
|
6655
6685
|
const user = J();
|
|
6656
6686
|
const locale = L();
|
|
6687
|
+
const [completeImpactPartner, { loading: completeLoading }] = $e(COMPLETE_PARTNER);
|
|
6657
6688
|
// State for current step of form
|
|
6658
6689
|
const [step, setStep] = In({
|
|
6659
6690
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
@@ -6761,16 +6792,54 @@ function useTaxAndCash() {
|
|
|
6761
6792
|
setCurrenciesContext(supportedCurrencies);
|
|
6762
6793
|
}, [supportedCurrencies]);
|
|
6763
6794
|
useEffect(() => {
|
|
6795
|
+
var _a;
|
|
6764
6796
|
if (errors) {
|
|
6765
6797
|
setStep("/error");
|
|
6766
6798
|
return;
|
|
6767
6799
|
}
|
|
6768
6800
|
if (!host || !user)
|
|
6769
6801
|
return;
|
|
6802
|
+
async function completeConnection(user) {
|
|
6803
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6804
|
+
const publisher = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
|
|
6805
|
+
const hasBillingInfo = publisher.billingAddress &&
|
|
6806
|
+
publisher.billingCity &&
|
|
6807
|
+
publisher.billingCountryCode &&
|
|
6808
|
+
publisher.billingPostalCode &&
|
|
6809
|
+
publisher.phoneNumberCountryCode &&
|
|
6810
|
+
publisher.phoneNumber;
|
|
6811
|
+
if (hasBillingInfo &&
|
|
6812
|
+
((_b = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _b === void 0 ? void 0 : _b.connectionStatus) === "STARTED") {
|
|
6813
|
+
const vars = {
|
|
6814
|
+
user: {
|
|
6815
|
+
id: (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.id,
|
|
6816
|
+
accountId: (_d = data === null || data === void 0 ? void 0 : data.user) === null || _d === void 0 ? void 0 : _d.accountId,
|
|
6817
|
+
},
|
|
6818
|
+
firstName: (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.firstName,
|
|
6819
|
+
lastName: (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.lastName,
|
|
6820
|
+
countryCode: publisher.billingCountryCode,
|
|
6821
|
+
currency: publisher.currency,
|
|
6822
|
+
address: publisher.billingAddress,
|
|
6823
|
+
city: publisher.billingCity,
|
|
6824
|
+
state: publisher.billingState,
|
|
6825
|
+
postalCode: publisher.billingPostalCode,
|
|
6826
|
+
phoneNumber: publisher.phoneNumber,
|
|
6827
|
+
phoneNumberCountryCode: publisher.phoneNumberCountryCode,
|
|
6828
|
+
};
|
|
6829
|
+
await completeImpactPartner({
|
|
6830
|
+
vars,
|
|
6831
|
+
});
|
|
6832
|
+
}
|
|
6833
|
+
}
|
|
6770
6834
|
if (data) {
|
|
6771
6835
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6772
6836
|
if (!user || step !== "/loading")
|
|
6773
6837
|
return;
|
|
6838
|
+
if (((_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) &&
|
|
6839
|
+
(user === null || user === void 0 ? void 0 : user.impactConnection.connectionStatus) === "STARTED") {
|
|
6840
|
+
completeConnection(user);
|
|
6841
|
+
refetch();
|
|
6842
|
+
}
|
|
6774
6843
|
const currentStep = getCurrentStep(user);
|
|
6775
6844
|
setStep(currentStep);
|
|
6776
6845
|
}
|
|
@@ -6865,11 +6934,6 @@ const TaxAndCashMonolith = class {
|
|
|
6865
6934
|
* @uiGroup Step 1 Properties
|
|
6866
6935
|
*/
|
|
6867
6936
|
this.step1_currency = "Currency";
|
|
6868
|
-
/**
|
|
6869
|
-
* @uiName Currency field help text
|
|
6870
|
-
* @uiGroup Step 1 Properties
|
|
6871
|
-
*/
|
|
6872
|
-
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
6873
6937
|
/**
|
|
6874
6938
|
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
6875
6939
|
* @uiName Terms and conditions checkbox
|
|
@@ -7280,12 +7344,22 @@ const TaxAndCashMonolith = class {
|
|
|
7280
7344
|
* @uiGroup Step 4 Properties
|
|
7281
7345
|
*/
|
|
7282
7346
|
this.step4_branchCodeLabel = "Branch code";
|
|
7347
|
+
/**
|
|
7348
|
+
* @uiName Branch name field label
|
|
7349
|
+
* @uiGroup Step 4 Properties
|
|
7350
|
+
*/
|
|
7351
|
+
this.step4_branchNameLabel = "Branch name";
|
|
7283
7352
|
/**
|
|
7284
7353
|
* Label text for the classification input field
|
|
7285
7354
|
* @uiName Classification field label
|
|
7286
7355
|
* @uiGroup Step 4 Properties
|
|
7287
7356
|
*/
|
|
7288
7357
|
this.step4_classificationLabel = "Classification";
|
|
7358
|
+
/**
|
|
7359
|
+
* @uiName Classification code field label
|
|
7360
|
+
* @uiGroup Step 4 Properties
|
|
7361
|
+
*/
|
|
7362
|
+
this.step4_classificationCodeLabel = "KBE code";
|
|
7289
7363
|
/**
|
|
7290
7364
|
* @uiName Taxpayer ID field label
|
|
7291
7365
|
* @uiGroup Step 4 Properties
|
|
@@ -8240,4 +8314,363 @@ function useUserNameDemo(props) {
|
|
|
8240
8314
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
8241
8315
|
}
|
|
8242
8316
|
|
|
8243
|
-
|
|
8317
|
+
const USER_LOOKUP = dist.gql `
|
|
8318
|
+
query checkUserVerification {
|
|
8319
|
+
viewer {
|
|
8320
|
+
... on User {
|
|
8321
|
+
id
|
|
8322
|
+
accountId
|
|
8323
|
+
email
|
|
8324
|
+
emailVerified
|
|
8325
|
+
managedIdentity {
|
|
8326
|
+
email
|
|
8327
|
+
emailVerified
|
|
8328
|
+
}
|
|
8329
|
+
impactConnection {
|
|
8330
|
+
connected
|
|
8331
|
+
}
|
|
8332
|
+
}
|
|
8333
|
+
}
|
|
8334
|
+
}
|
|
8335
|
+
`;
|
|
8336
|
+
function useWidgetVerification() {
|
|
8337
|
+
const [showCode] = In({
|
|
8338
|
+
namespace: SHOW_CODE_NAMESPACE,
|
|
8339
|
+
initialValue: false,
|
|
8340
|
+
});
|
|
8341
|
+
In({
|
|
8342
|
+
namespace: VERIFICATION_EMAIL_NAMESPACE,
|
|
8343
|
+
initialValue: undefined,
|
|
8344
|
+
});
|
|
8345
|
+
const setContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
8346
|
+
const [loading, setLoading] = useState(true);
|
|
8347
|
+
const [showPartnerModal, setShowPartnerModal] = In({
|
|
8348
|
+
namespace: SHOW_PARTNER_MODAL_NAMESPACE,
|
|
8349
|
+
initialValue: false,
|
|
8350
|
+
});
|
|
8351
|
+
const [partnerCreated, setPartnerCreated] = In({
|
|
8352
|
+
namespace: PARTNER_CREATED_NAMESPACE,
|
|
8353
|
+
initialValue: false,
|
|
8354
|
+
});
|
|
8355
|
+
const [fetch] = Xe(USER_LOOKUP);
|
|
8356
|
+
useEffect(() => {
|
|
8357
|
+
const checkUser = async () => {
|
|
8358
|
+
var _a, _b, _c, _d, _e;
|
|
8359
|
+
try {
|
|
8360
|
+
const res = await fetch({});
|
|
8361
|
+
if (!res || res instanceof Error)
|
|
8362
|
+
throw new Error();
|
|
8363
|
+
// Flow changed to send email -> verify code -> show early partner creation modal
|
|
8364
|
+
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);
|
|
8365
|
+
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;
|
|
8366
|
+
if (isConnected) {
|
|
8367
|
+
// Partner already created, show widget content
|
|
8368
|
+
setContext(true);
|
|
8369
|
+
}
|
|
8370
|
+
else if (emailVerified) {
|
|
8371
|
+
// Email verified but no partner yet, show partner modal
|
|
8372
|
+
setShowPartnerModal(true);
|
|
8373
|
+
}
|
|
8374
|
+
}
|
|
8375
|
+
catch (e) {
|
|
8376
|
+
console.error("Could not fetch user information:", e);
|
|
8377
|
+
}
|
|
8378
|
+
finally {
|
|
8379
|
+
setLoading(false);
|
|
8380
|
+
}
|
|
8381
|
+
};
|
|
8382
|
+
checkUser();
|
|
8383
|
+
}, []);
|
|
8384
|
+
const onVerification = () => {
|
|
8385
|
+
setShowPartnerModal(true);
|
|
8386
|
+
};
|
|
8387
|
+
const onPartnerModalComplete = () => {
|
|
8388
|
+
setShowPartnerModal(false);
|
|
8389
|
+
setPartnerCreated(false);
|
|
8390
|
+
setContext(true);
|
|
8391
|
+
};
|
|
8392
|
+
useEffect(() => {
|
|
8393
|
+
if (partnerCreated)
|
|
8394
|
+
onPartnerModalComplete();
|
|
8395
|
+
}, [partnerCreated]);
|
|
8396
|
+
return {
|
|
8397
|
+
showCode,
|
|
8398
|
+
showPartnerModal,
|
|
8399
|
+
onVerification,
|
|
8400
|
+
onPartnerModalComplete,
|
|
8401
|
+
loading,
|
|
8402
|
+
};
|
|
8403
|
+
}
|
|
8404
|
+
|
|
8405
|
+
const style$3 = {
|
|
8406
|
+
Dialog: {
|
|
8407
|
+
"&::part(panel)": {
|
|
8408
|
+
maxWidth: "480px",
|
|
8409
|
+
},
|
|
8410
|
+
"&::part(body)": {
|
|
8411
|
+
padding: "0 var(--sl-spacing-x-large)",
|
|
8412
|
+
fontSize: "var(--sl-font-size-small)",
|
|
8413
|
+
overflow: "visible",
|
|
8414
|
+
},
|
|
8415
|
+
"&::part(footer)": {
|
|
8416
|
+
display: "flex",
|
|
8417
|
+
flexDirection: "column",
|
|
8418
|
+
gap: "var(--sl-spacing-small)",
|
|
8419
|
+
},
|
|
8420
|
+
"&::part(overlay)": {
|
|
8421
|
+
background: "rgba(0, 0, 0, 0.5)",
|
|
8422
|
+
},
|
|
8423
|
+
},
|
|
8424
|
+
DialogTitle: {
|
|
8425
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
8426
|
+
fontWeight: "600",
|
|
8427
|
+
padding: "var(--sl-spacing-x-large) 0 0 0",
|
|
8428
|
+
margin: "0",
|
|
8429
|
+
},
|
|
8430
|
+
};
|
|
8431
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
8432
|
+
const styleString$3 = sheet$3.toString();
|
|
8433
|
+
const WidgetVerification = class {
|
|
8434
|
+
constructor(hostRef) {
|
|
8435
|
+
registerInstance(this, hostRef);
|
|
8436
|
+
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification AND sqm-partner-info-modal
|
|
8437
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8438
|
+
GENERAL PROPS
|
|
8439
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8440
|
+
/**
|
|
8441
|
+
* @uiName General widget header text with partner creation
|
|
8442
|
+
* @uiGroup General Text
|
|
8443
|
+
*/
|
|
8444
|
+
this.general_widgetHeaderWithPartnerCreation = "Let's get you ready for rewards";
|
|
8445
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8446
|
+
EMAIL STEP PROPS
|
|
8447
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8448
|
+
/**
|
|
8449
|
+
* @uiName Verify email widget header text
|
|
8450
|
+
* @uiGroup Email Verification Step
|
|
8451
|
+
*/
|
|
8452
|
+
this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
|
|
8453
|
+
/**
|
|
8454
|
+
* @uiName Send code to email alert header
|
|
8455
|
+
* @uiGroup Email Verification Step
|
|
8456
|
+
*/
|
|
8457
|
+
this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
|
|
8458
|
+
/**
|
|
8459
|
+
* @uiName Send code to email alert description
|
|
8460
|
+
* @uiGroup Email Verification Step
|
|
8461
|
+
*/
|
|
8462
|
+
this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
|
|
8463
|
+
/**
|
|
8464
|
+
* @uiName Email input label
|
|
8465
|
+
* @uiGroup Email Verification Step
|
|
8466
|
+
*/
|
|
8467
|
+
this.emailStep_emailLabel = "Email";
|
|
8468
|
+
/**
|
|
8469
|
+
* @uiName Send code button text
|
|
8470
|
+
* @uiGroup Email Verification Step
|
|
8471
|
+
*/
|
|
8472
|
+
this.emailStep_sendCodeText = "Send code";
|
|
8473
|
+
/**
|
|
8474
|
+
* @uiName Send code button text
|
|
8475
|
+
* @uiGroup Email Verification Step
|
|
8476
|
+
*/
|
|
8477
|
+
this.emailStep_emailValidationErrorText = "Please enter a valid email";
|
|
8478
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8479
|
+
CODE STEP PROPS
|
|
8480
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8481
|
+
/**
|
|
8482
|
+
* @uiName Verify code widget header text
|
|
8483
|
+
* @uiGroup Code Verification Step
|
|
8484
|
+
*/
|
|
8485
|
+
this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
8486
|
+
/**
|
|
8487
|
+
* @uiName Reverify code widget header text
|
|
8488
|
+
* @uiGroup Code Verification Step
|
|
8489
|
+
*/
|
|
8490
|
+
this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
8491
|
+
/**
|
|
8492
|
+
* Text displayed under verify button
|
|
8493
|
+
* @uiName Resend code text
|
|
8494
|
+
* @uiGroup Code Verification Step
|
|
8495
|
+
*/
|
|
8496
|
+
this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
8497
|
+
/**
|
|
8498
|
+
* The link that appears in the resend code link
|
|
8499
|
+
* @uiName Resend code label
|
|
8500
|
+
* @uiGroup Code Verification Step
|
|
8501
|
+
*/
|
|
8502
|
+
this.codeStep_resendCodeLabel = "Resend code";
|
|
8503
|
+
/**
|
|
8504
|
+
* Link text displayed under verify button
|
|
8505
|
+
* @uiName Resend code text
|
|
8506
|
+
* @uiGroup Code Verification Step
|
|
8507
|
+
*/
|
|
8508
|
+
this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
8509
|
+
/**
|
|
8510
|
+
* Error text displayed under verification input
|
|
8511
|
+
* @uiName Invalid code text
|
|
8512
|
+
* @uiGroup Code Verification Step
|
|
8513
|
+
*/
|
|
8514
|
+
this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
8515
|
+
/**
|
|
8516
|
+
* @uiName Verify code button text
|
|
8517
|
+
* @uiGroup Code Verification Step
|
|
8518
|
+
*/
|
|
8519
|
+
this.codeStep_verifyText = "Verify";
|
|
8520
|
+
/**
|
|
8521
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
8522
|
+
* @uiName Network error message
|
|
8523
|
+
* @uiGroup Code Verification Step
|
|
8524
|
+
*/
|
|
8525
|
+
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
8526
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8527
|
+
PARTNER CREATION STEP PROPS
|
|
8528
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8529
|
+
/**
|
|
8530
|
+
* @uiName New partner header
|
|
8531
|
+
* @uiGroup Partner Creation Step
|
|
8532
|
+
* @uiWidget textArea
|
|
8533
|
+
*/
|
|
8534
|
+
this.createPartnerStep_modalHeader = "Let's get you ready for rewards";
|
|
8535
|
+
/**
|
|
8536
|
+
* @uiName Existing partner header
|
|
8537
|
+
* @uiGroup Partner Creation Step
|
|
8538
|
+
* @uiWidget textArea
|
|
8539
|
+
*/
|
|
8540
|
+
this.createPartnerStep_modalHeaderExistingPartner = "We found an existing account";
|
|
8541
|
+
/**
|
|
8542
|
+
* @uiName New partner description
|
|
8543
|
+
* @uiGroup Partner Creation Step
|
|
8544
|
+
* @uiWidget textArea
|
|
8545
|
+
*/
|
|
8546
|
+
this.createPartnerStep_descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
|
|
8547
|
+
/**
|
|
8548
|
+
* @uiName Existing partner description
|
|
8549
|
+
* @uiGroup Partner Creation Step
|
|
8550
|
+
* @uiWidget textArea
|
|
8551
|
+
*/
|
|
8552
|
+
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.";
|
|
8553
|
+
/**
|
|
8554
|
+
* @uiName Existing partner support description
|
|
8555
|
+
* @uiGroup Partner Creation Step
|
|
8556
|
+
* @uiWidget textArea
|
|
8557
|
+
*/
|
|
8558
|
+
this.createPartnerStep_supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
|
|
8559
|
+
/**
|
|
8560
|
+
* @uiName Country label
|
|
8561
|
+
* @uiGroup Partner Creation Step
|
|
8562
|
+
*/
|
|
8563
|
+
this.createPartnerStep_countryLabel = "Country";
|
|
8564
|
+
/**
|
|
8565
|
+
* @uiName Currency label
|
|
8566
|
+
* @uiGroup Partner Creation Step
|
|
8567
|
+
*/
|
|
8568
|
+
this.createPartnerStep_currencyLabel = "Currency";
|
|
8569
|
+
/**
|
|
8570
|
+
* @uiName Submit button label
|
|
8571
|
+
* @uiGroup Partner Creation Step
|
|
8572
|
+
*/
|
|
8573
|
+
this.createPartnerStep_submitButtonLabel = "Submit";
|
|
8574
|
+
/**
|
|
8575
|
+
* @uiName Confirm button label
|
|
8576
|
+
* @uiGroup Partner Creation Step
|
|
8577
|
+
*/
|
|
8578
|
+
this.createPartnerStep_confirmButtonLabel = "Confirm";
|
|
8579
|
+
/**
|
|
8580
|
+
* @uiName Search country placeholder
|
|
8581
|
+
* @uiGroup Partner Creation Step
|
|
8582
|
+
*/
|
|
8583
|
+
this.createPartnerStep_searchCountryPlaceholder = "Search for a country";
|
|
8584
|
+
/**
|
|
8585
|
+
* @uiName Search currency placeholder
|
|
8586
|
+
* @uiGroup Partner Creation Step
|
|
8587
|
+
*/
|
|
8588
|
+
this.createPartnerStep_searchCurrencyPlaceholder = "Search for a currency";
|
|
8589
|
+
/**
|
|
8590
|
+
* @uiName Network error text
|
|
8591
|
+
* @uiGroup Partner Creation Step
|
|
8592
|
+
* @uiWidget textArea
|
|
8593
|
+
*/
|
|
8594
|
+
this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
|
|
8595
|
+
/**
|
|
8596
|
+
* @uiName Missing fields error text
|
|
8597
|
+
* @uiGroup Partner Creation Step
|
|
8598
|
+
* @uiWidget textArea
|
|
8599
|
+
*/
|
|
8600
|
+
this.createPartnerStep_missingFieldsErrorText = "Please select both a country and currency.";
|
|
8601
|
+
/**
|
|
8602
|
+
* @undocumented
|
|
8603
|
+
* @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
|
|
8604
|
+
* @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
|
|
8605
|
+
* @componentState { "title": "Step 3: Create Partner", "props": { "showPartnerModal": true }, "dependencies": ["sqm-partner-info-modal"], "uiGroup": "Partner Creation Step" }
|
|
8606
|
+
*/
|
|
8607
|
+
this.stateController = "{}";
|
|
8608
|
+
h(this);
|
|
8609
|
+
}
|
|
8610
|
+
disconnectedCallback() { }
|
|
8611
|
+
getStepTextProps(prefix) {
|
|
8612
|
+
const props = getProps(this);
|
|
8613
|
+
return extractProps(props, prefix);
|
|
8614
|
+
}
|
|
8615
|
+
render() {
|
|
8616
|
+
var _a;
|
|
8617
|
+
const props = isDemo()
|
|
8618
|
+
? useDemoWidgetVerificationInternal(this)
|
|
8619
|
+
: useWidgetVerification();
|
|
8620
|
+
if (props.loading)
|
|
8621
|
+
return h$1("sl-spinner", null);
|
|
8622
|
+
// for handling state previews in content editor
|
|
8623
|
+
const partnerState = typeof props["sqm-partner-info-modal_stateController"] === "string"
|
|
8624
|
+
? parseStates(props["sqm-partner-info-modal_stateController"])
|
|
8625
|
+
: props["sqm-partner-info-modal_stateController"];
|
|
8626
|
+
if (props.showPartnerModal && ((_a = partnerState === null || partnerState === void 0 ? void 0 : partnerState.states) === null || _a === void 0 ? void 0 : _a.open) === false) {
|
|
8627
|
+
return h$1("div", null);
|
|
8628
|
+
}
|
|
8629
|
+
const partnerText = this.getStepTextProps("createPartnerStep_");
|
|
8630
|
+
const dialogLabel = this.general_widgetHeaderWithPartnerCreation;
|
|
8631
|
+
const renderStepContent = () => {
|
|
8632
|
+
if (props.showPartnerModal) {
|
|
8633
|
+
return (h$1("sqm-partner-info-modal", Object.assign({ inModal: true }, partnerText, { stateController: props["sqm-partner-info-modal_stateController"] || "{}" })));
|
|
8634
|
+
}
|
|
8635
|
+
if (props.showCode) {
|
|
8636
|
+
return (h$1("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_"))));
|
|
8637
|
+
}
|
|
8638
|
+
return (h$1("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_"))));
|
|
8639
|
+
};
|
|
8640
|
+
return (h$1("div", null, h$1("style", { type: "text/css" }, styleString$3), h$1("sl-dialog", { class: sheet$3.classes.Dialog, noHeader: true, open: true, label: dialogLabel, "onSl-request-close": (e) => {
|
|
8641
|
+
e.preventDefault();
|
|
8642
|
+
}, "onSl-hide": (e) => {
|
|
8643
|
+
var _a;
|
|
8644
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
8645
|
+
e.preventDefault();
|
|
8646
|
+
}
|
|
8647
|
+
} }, h$1("h2", { class: sheet$3.classes.DialogTitle }, dialogLabel), renderStepContent())));
|
|
8648
|
+
}
|
|
8649
|
+
};
|
|
8650
|
+
function useDemoWidgetVerificationInternal(props) {
|
|
8651
|
+
const [showCode, setShowCode] = In({
|
|
8652
|
+
namespace: SHOW_CODE_NAMESPACE,
|
|
8653
|
+
initialValue: false,
|
|
8654
|
+
});
|
|
8655
|
+
const [email, setEmail] = In({
|
|
8656
|
+
namespace: VERIFICATION_EMAIL_NAMESPACE,
|
|
8657
|
+
initialValue: undefined,
|
|
8658
|
+
});
|
|
8659
|
+
const setContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
8660
|
+
const states = parseStates(props.stateController);
|
|
8661
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
|
|
8662
|
+
? { ...prev, ...states[key] }
|
|
8663
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
8664
|
+
const onVerification = () => {
|
|
8665
|
+
setContext(true);
|
|
8666
|
+
};
|
|
8667
|
+
return cjs({
|
|
8668
|
+
showCode,
|
|
8669
|
+
showPartnerModal: false,
|
|
8670
|
+
onVerification,
|
|
8671
|
+
onPartnerModalComplete: () => { },
|
|
8672
|
+
loading: false,
|
|
8673
|
+
}, formatted || {}, { arrayMerge: (_, a) => a });
|
|
8674
|
+
}
|
|
8675
|
+
|
|
8676
|
+
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, SqmBrandSelector as sqm_brand_selector, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, LeadDropdownField as sqm_lead_dropdown_field, LeadForm as sqm_lead_form, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, MarketingEmailsCheckbox as sqm_marketing_emails_checkbox, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PayoutButtonScroll as sqm_payout_button_scroll, PayoutStatusAlert as sqm_payout_status_alert, PortalChangeMarketing as sqm_portal_change_marketing, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalGoogleRegistrationForm as sqm_portal_google_registration_form, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, ReferredRegistration as sqm_referred_registration, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TaskCard as sqm_task_card, TaxAndCashMonolith as sqm_tax_and_cash, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserAttribute as sqm_user_attribute, UserName as sqm_user_name, WidgetVerification as sqm_widget_verification };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-38ad4957.js';
|
|
2
2
|
import { n as h } from './dom-context-hooks.module-50442785.js';
|
|
3
|
-
import { g as getEnvironmentSDK } from './index.module-
|
|
3
|
+
import { g as getEnvironmentSDK } from './index.module-02cb914c.js';
|
|
4
4
|
import './JSS-67b5cff8.js';
|
|
5
5
|
import './mixins-f750863a.js';
|
|
6
6
|
import { C as CloseButtonView } from './sqm-close-button-view-fd9012e7.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-75e96214.js';
|
|
3
3
|
import { l, k as useState, f as useEffect, n as h$1 } from './dom-context-hooks.module-50442785.js';
|
|
4
|
-
import { d as dist, q as Pn, F as Fn, i as isDemo,
|
|
4
|
+
import { d as dist, q as Pn, F as Fn, i as isDemo, p as En } from './index.module-02cb914c.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { E as ErrorStyles } from './mixins-f750863a.js';
|
|
9
9
|
import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
|
|
10
|
-
import {
|
|
11
|
-
import { u as useVerificationEmail } from './useVerificationEmail-
|
|
10
|
+
import { a as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-1054056a.js';
|
|
11
|
+
import { u as useVerificationEmail } from './useVerificationEmail-9f2c0bab.js';
|
|
12
12
|
|
|
13
13
|
const style = {
|
|
14
14
|
Wrapper: {
|
|
@@ -61,7 +61,6 @@ const style = {
|
|
|
61
61
|
},
|
|
62
62
|
ContinueButton: {
|
|
63
63
|
width: "100%",
|
|
64
|
-
maxWidth: "100px",
|
|
65
64
|
},
|
|
66
65
|
FooterContainer: {
|
|
67
66
|
display: "flex",
|
|
@@ -139,9 +138,9 @@ function WidgetCodeVerificationView(props) {
|
|
|
139
138
|
h("sl-input", { class: inputClass, name: "code" }),
|
|
140
139
|
h("sl-input", { class: inputClass, name: "code" })),
|
|
141
140
|
states.verifyFailed && (h("p", { class: sheet.classes.ErrorText }, text.invalidCodeText)),
|
|
142
|
-
h("
|
|
143
|
-
|
|
144
|
-
h(
|
|
141
|
+
h("div", { class: sheet.classes.FooterContainer },
|
|
142
|
+
h(TextSpanView, { type: "p" }, resendCodeText)),
|
|
143
|
+
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)))));
|
|
145
144
|
}
|
|
146
145
|
|
|
147
146
|
const VerifyEmailWithCodeMutation = dist.gql `
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-38ad4957.js';
|
|
2
2
|
import { b as browser, k as useState, i as d, f as useEffect, n as h } from './dom-context-hooks.module-50442785.js';
|
|
3
|
-
import { _ } from './index.module-
|
|
3
|
+
import { _ } from './index.module-02cb914c.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
6
6
|
|