@saasquatch/mint-components 2.2.0 → 2.3.0-10
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 +480 -1059
- 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 +879 -0
- package/dist/cjs/sqm-partner-info-modal-view-2b6fee0f.js +155 -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 +940 -357
- package/dist/cjs/sqm-user-info-form-view-374a3f01.js +1427 -0
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
- package/dist/cjs/subregions-984e30d7.js +1505 -0
- package/dist/cjs/{usePayoutStatus-0192fccd.js → useIndirectTaxForm-112914a0.js} +294 -5
- 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 +149 -0
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +671 -0
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +261 -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 +6 -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/sqm-indirect-tax-form-view.js +2 -10
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +51 -12
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +6 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +13 -2
- 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-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +151 -0
- 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 +26 -23
- 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 +39 -19
- package/dist/collection/components/tax-and-cash/utils.js +55 -0
- 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 +466 -1045
- 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 +874 -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-bc843d7d.js +152 -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 +916 -333
- 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-5322525c.js +1421 -0
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm/subregions-7c9778d0.js +1492 -0
- package/dist/esm/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
- package/dist/esm/{usePayoutStatus-46c0c289.js → useIndirectTaxForm-a6ac7e7e.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-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-bc843d7d.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-5322525c.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/subregions-7c9778d0.js +1 -0
- package/dist/esm-es5/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
- package/dist/esm-es5/useIndirectTaxForm-a6ac7e7e.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/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-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-13e439bc.js +1 -0
- 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-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-24a867ab.system.js +1 -0
- 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-2bc6ac74.system.entry.js +1 -0
- package/dist/mint-components/{p-738dce27.system.entry.js → p-2d3f7b76.system.entry.js} +1 -1
- package/dist/mint-components/p-2d4132fb.js +99 -0
- 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-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-5623f1e0.js +1 -0
- package/dist/mint-components/p-5bc707cf.entry.js +299 -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-6ef373ed.system.js +6 -0
- 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-7f29622d.js +1 -0
- 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-85ecc0aa.entry.js +83 -0
- 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-8a08cec6.system.entry.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-a49d9288.entry.js +1 -0
- package/dist/mint-components/p-a8cfa8fd.entry.js +9 -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-ae2f610e.system.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-b3e1f2fa.entry.js +91 -0
- package/dist/mint-components/p-b7188d47.system.entry.js +1 -0
- package/dist/mint-components/{p-8962e023.js → p-b871d158.js} +1 -1
- package/dist/mint-components/p-b9509a55.system.entry.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-bd03efe0.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-c13c20b2.system.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-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-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/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 +51 -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 +16 -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-payout-details-card/PayoutDetailsCard.stories.d.ts +1 -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-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +19 -0
- 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/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
- package/dist/types/components/tax-and-cash/utils.d.ts +5 -0
- 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-user-info-form-view-53306f6e.js +0 -2074
- 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-user-info-form-view-19d81a2b.js +0 -2066
- 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,214 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-8277cbb3.js');
|
|
6
|
-
const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
|
|
7
|
-
const index_module = require('./index.module-f8c8495f.js');
|
|
8
|
-
const cjs = require('./cjs-1066ec21.js');
|
|
9
|
-
const utils = require('./utils-6847bc06.js');
|
|
10
|
-
const extractProps = require('./extractProps-e9c55ba8.js');
|
|
11
|
-
const keys = require('./keys-cff24974.js');
|
|
12
|
-
|
|
13
|
-
const USER_LOOKUP = index_module.dist.gql `
|
|
14
|
-
query checkUserVerification {
|
|
15
|
-
viewer {
|
|
16
|
-
... on User {
|
|
17
|
-
id
|
|
18
|
-
accountId
|
|
19
|
-
email
|
|
20
|
-
emailVerified
|
|
21
|
-
managedIdentity {
|
|
22
|
-
email
|
|
23
|
-
emailVerified
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
29
|
-
function useWidgetVerification() {
|
|
30
|
-
const userIdentity = index_module.J();
|
|
31
|
-
const [showCode, setShowCode] = index_module.In({
|
|
32
|
-
namespace: keys.SHOW_CODE_NAMESPACE,
|
|
33
|
-
initialValue: false,
|
|
34
|
-
});
|
|
35
|
-
const [email, setEmail] = index_module.In({
|
|
36
|
-
namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
|
|
37
|
-
initialValue: userIdentity === null || userIdentity === void 0 ? void 0 : userIdentity.email,
|
|
38
|
-
});
|
|
39
|
-
const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
40
|
-
const [loading, setLoading] = domContextHooks_module.useState(true);
|
|
41
|
-
const [fetch] = index_module.Xe(USER_LOOKUP);
|
|
42
|
-
domContextHooks_module.useEffect(() => {
|
|
43
|
-
const checkUser = async () => {
|
|
44
|
-
var _a, _b, _c;
|
|
45
|
-
try {
|
|
46
|
-
const res = await fetch({});
|
|
47
|
-
if (!res || res instanceof Error)
|
|
48
|
-
throw new Error();
|
|
49
|
-
if ((_a = res === null || res === void 0 ? void 0 : res.viewer) === null || _a === void 0 ? void 0 : _a.emailVerified)
|
|
50
|
-
setContext(true);
|
|
51
|
-
else if ((_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)
|
|
52
|
-
setContext(true);
|
|
53
|
-
}
|
|
54
|
-
catch (e) {
|
|
55
|
-
console.error("Could not fetch user information:", e);
|
|
56
|
-
}
|
|
57
|
-
finally {
|
|
58
|
-
setLoading(false);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
checkUser();
|
|
62
|
-
}, []);
|
|
63
|
-
const onVerification = () => {
|
|
64
|
-
setContext(true);
|
|
65
|
-
};
|
|
66
|
-
return { showCode, onVerification, loading };
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const WidgetVerification = class {
|
|
70
|
-
constructor(hostRef) {
|
|
71
|
-
index.registerInstance(this, hostRef);
|
|
72
|
-
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification
|
|
73
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
74
|
-
GENERAL PROPS
|
|
75
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
76
|
-
/**
|
|
77
|
-
* @uiName General verify widget header text
|
|
78
|
-
* @uiGroup General Text
|
|
79
|
-
*/
|
|
80
|
-
this.general_verifyEmailHeader = "Verify your email";
|
|
81
|
-
/**
|
|
82
|
-
* @uiName General verify widget description text
|
|
83
|
-
* @uiGroup General Text
|
|
84
|
-
*/
|
|
85
|
-
this.general_verifyEmailDescription = "To get your cash paid out directly to your bank account, please complete your account setup";
|
|
86
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
87
|
-
EMAIL STEP PROPS
|
|
88
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
89
|
-
/**
|
|
90
|
-
* @uiName Verify email widget header text
|
|
91
|
-
* @uiGroup Email Verification Step
|
|
92
|
-
*/
|
|
93
|
-
this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
|
|
94
|
-
/**
|
|
95
|
-
* @uiName Send code to email alert header
|
|
96
|
-
* @uiGroup Email Verification Step
|
|
97
|
-
*/
|
|
98
|
-
this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
|
|
99
|
-
/**
|
|
100
|
-
* @uiName Send code to email alert description
|
|
101
|
-
* @uiGroup Email Verification Step
|
|
102
|
-
*/
|
|
103
|
-
this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
|
|
104
|
-
/**
|
|
105
|
-
* @uiName Email input label
|
|
106
|
-
* @uiGroup Email Verification Step
|
|
107
|
-
*/
|
|
108
|
-
this.emailStep_emailLabel = "Email";
|
|
109
|
-
/**
|
|
110
|
-
* @uiName Send code button text
|
|
111
|
-
* @uiGroup Email Verification Step
|
|
112
|
-
*/
|
|
113
|
-
this.emailStep_sendCodeText = "Send code";
|
|
114
|
-
/**
|
|
115
|
-
* @uiName Send code button text
|
|
116
|
-
* @uiGroup Email Verification Step
|
|
117
|
-
*/
|
|
118
|
-
this.emailStep_emailValidationErrorText = "Please enter a valid email";
|
|
119
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
120
|
-
EMAIL STEP PROPS
|
|
121
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
122
|
-
/**
|
|
123
|
-
* @uiName Verify code widget header text
|
|
124
|
-
* @uiGroup Code Verification Step
|
|
125
|
-
*/
|
|
126
|
-
this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
127
|
-
/**
|
|
128
|
-
* @uiName Reverify code widget header text
|
|
129
|
-
* @uiGroup Code Verification Step
|
|
130
|
-
*/
|
|
131
|
-
this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
132
|
-
/**
|
|
133
|
-
* Text displayed under verify button
|
|
134
|
-
* @uiName Resend code text
|
|
135
|
-
* @uiGroup Code Verification Step
|
|
136
|
-
*/
|
|
137
|
-
this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
138
|
-
/**
|
|
139
|
-
* The link that appears in the resend code link
|
|
140
|
-
* @uiName Resend code label
|
|
141
|
-
* @uiGroup Code Verification Step
|
|
142
|
-
*/
|
|
143
|
-
this.codeStep_resendCodeLabel = "Resend code";
|
|
144
|
-
/**
|
|
145
|
-
* Link text displayed under verify button
|
|
146
|
-
* @uiName Resend code text
|
|
147
|
-
* @uiGroup Code Verification Step
|
|
148
|
-
*/
|
|
149
|
-
this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
150
|
-
/**
|
|
151
|
-
* Error text displayed under verification input
|
|
152
|
-
* @uiName Invalid code text
|
|
153
|
-
* @uiGroup Code Verification Step
|
|
154
|
-
*/
|
|
155
|
-
this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
156
|
-
/**
|
|
157
|
-
* @uiName Verify code button text
|
|
158
|
-
* @uiGroup Code Verification Step
|
|
159
|
-
*/
|
|
160
|
-
this.codeStep_verifyText = "Verify";
|
|
161
|
-
/**
|
|
162
|
-
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
163
|
-
* @uiName Network error message
|
|
164
|
-
* @uiGroup Code Verification Step
|
|
165
|
-
*/
|
|
166
|
-
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
167
|
-
/**
|
|
168
|
-
* @undocumented
|
|
169
|
-
* @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
|
|
170
|
-
* @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
|
|
171
|
-
*/
|
|
172
|
-
this.stateController = "{}";
|
|
173
|
-
domContextHooks_module.h$1(this);
|
|
174
|
-
}
|
|
175
|
-
disconnectedCallback() { }
|
|
176
|
-
getStepTextProps(prefix) {
|
|
177
|
-
const props = utils.getProps(this);
|
|
178
|
-
return extractProps.extractProps(props, prefix);
|
|
179
|
-
}
|
|
180
|
-
render() {
|
|
181
|
-
const props = index_module.isDemo()
|
|
182
|
-
? useDemoWidgetVerificationInternal(this)
|
|
183
|
-
: useWidgetVerification();
|
|
184
|
-
if (props.loading)
|
|
185
|
-
return index.h("sl-spinner", null);
|
|
186
|
-
const generalText = this.getStepTextProps("general_");
|
|
187
|
-
return (index.h("div", null, index.h("h3", { style: { fontSize: "24px", margin: "0" } }, generalText.verifyEmailHeader), index.h("p", { style: {
|
|
188
|
-
color: "var(--sl-color-neutral-500)",
|
|
189
|
-
fontSize: "var(--sl-font-size-medium)",
|
|
190
|
-
margin: "0",
|
|
191
|
-
} }, generalText.verifyEmailDescription), props.showCode ? (index.h("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps.extractProps(props, "sqm-code-verification_")))) : (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps.extractProps(props, "sqm-email-verification_"))))));
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
function useDemoWidgetVerificationInternal(props) {
|
|
195
|
-
const [showCode, setShowCode] = index_module.In({
|
|
196
|
-
namespace: keys.SHOW_CODE_NAMESPACE,
|
|
197
|
-
initialValue: false,
|
|
198
|
-
});
|
|
199
|
-
const [email, setEmail] = index_module.In({
|
|
200
|
-
namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
|
|
201
|
-
initialValue: undefined,
|
|
202
|
-
});
|
|
203
|
-
const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
204
|
-
const states = extractProps.parseStates(props.stateController);
|
|
205
|
-
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
|
|
206
|
-
? { ...prev, ...states[key] }
|
|
207
|
-
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
208
|
-
const onVerification = () => {
|
|
209
|
-
setContext(true);
|
|
210
|
-
};
|
|
211
|
-
return cjs.cjs({ showCode, onVerification, loading: false }, formatted || {}, { arrayMerge: (_, a) => a });
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
exports.sqm_widget_verification = WidgetVerification;
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { h } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-96c14d63.js';
|
|
3
|
-
import { d as dist } from './index.module-b23fdad8.js';
|
|
4
|
-
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
|
-
|
|
6
|
-
const style = {
|
|
7
|
-
Container: {
|
|
8
|
-
display: "flex",
|
|
9
|
-
flexDirection: "column",
|
|
10
|
-
gap: "35px",
|
|
11
|
-
},
|
|
12
|
-
HeaderContainer: {
|
|
13
|
-
display: "flex",
|
|
14
|
-
flexDirection: "column",
|
|
15
|
-
gap: "10px",
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
const sheet = createStyleSheet(style);
|
|
19
|
-
const styleString = sheet.toString();
|
|
20
|
-
const LoadingView = () => {
|
|
21
|
-
return (h("div", { class: sheet.classes.Container },
|
|
22
|
-
h("style", { type: "text/css" }, styleString),
|
|
23
|
-
h("sqm-skeleton", { width: "45%", height: "40px !important" }),
|
|
24
|
-
h("div", { class: sheet.classes.HeaderContainer },
|
|
25
|
-
h("sqm-skeleton", { width: "15%" }),
|
|
26
|
-
h("sqm-skeleton", { width: "25%", height: "30px !important" })),
|
|
27
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
28
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
29
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
30
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
31
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
32
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
33
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
34
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
35
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
36
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
37
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
38
|
-
h("sqm-skeleton", { width: "15%" }),
|
|
39
|
-
h("sqm-skeleton", { width: "80px", height: "30px !important" })));
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
function validTaxDocument(requiredType) {
|
|
43
|
-
const validTypes = ["W9", "W8BENE", "W8BEN"];
|
|
44
|
-
if (validTypes.includes(requiredType))
|
|
45
|
-
return true;
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
const objectIsFull = (obj) => {
|
|
49
|
-
return !Object.keys(obj).find((k) => obj[k] == undefined);
|
|
50
|
-
};
|
|
51
|
-
const taxTypeToName = (taxType) => {
|
|
52
|
-
switch (taxType) {
|
|
53
|
-
case "W9":
|
|
54
|
-
return "W-9";
|
|
55
|
-
case "W8BEN":
|
|
56
|
-
case "W8BENE":
|
|
57
|
-
return "W-8";
|
|
58
|
-
default:
|
|
59
|
-
return "";
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
function validateBillingField(regex, value) {
|
|
63
|
-
const trimmed = value.trim();
|
|
64
|
-
const idx = trimmed.search(regex);
|
|
65
|
-
return idx > -1;
|
|
66
|
-
}
|
|
67
|
-
const formatErrorMessage = (fieldName, errorMessage) => {
|
|
68
|
-
return intl.formatMessage({
|
|
69
|
-
id: fieldName,
|
|
70
|
-
defaultMessage: errorMessage,
|
|
71
|
-
}, {
|
|
72
|
-
fieldName,
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
function getCountryObj({ countryCode, locale, }) {
|
|
76
|
-
// @ts-ignore DisplayNames not in Intl type
|
|
77
|
-
const displayName = new Intl.DisplayNames([locale], {
|
|
78
|
-
type: "region",
|
|
79
|
-
}).of(countryCode);
|
|
80
|
-
return {
|
|
81
|
-
countryCode,
|
|
82
|
-
displayName,
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
87
|
-
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
88
|
-
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
89
|
-
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
90
|
-
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
91
|
-
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
92
|
-
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
93
|
-
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
94
|
-
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
95
|
-
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
96
|
-
const GET_USER = dist.gql `
|
|
97
|
-
query getUserTaxInfo {
|
|
98
|
-
user: viewer {
|
|
99
|
-
... on User {
|
|
100
|
-
id
|
|
101
|
-
firstName
|
|
102
|
-
lastName
|
|
103
|
-
email
|
|
104
|
-
countryCode
|
|
105
|
-
customFields
|
|
106
|
-
rewards(limit: 1000) {
|
|
107
|
-
data {
|
|
108
|
-
statuses
|
|
109
|
-
partnerFundsTransfer {
|
|
110
|
-
id
|
|
111
|
-
status
|
|
112
|
-
dateScheduled
|
|
113
|
-
dateCreated
|
|
114
|
-
dateTransferred
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
managedIdentity {
|
|
119
|
-
uid
|
|
120
|
-
email
|
|
121
|
-
emailVerified
|
|
122
|
-
}
|
|
123
|
-
impactConnection {
|
|
124
|
-
connected
|
|
125
|
-
user {
|
|
126
|
-
firstName
|
|
127
|
-
lastName
|
|
128
|
-
}
|
|
129
|
-
publisher {
|
|
130
|
-
id
|
|
131
|
-
brandedSignup
|
|
132
|
-
countryCode
|
|
133
|
-
currency
|
|
134
|
-
billingAddress
|
|
135
|
-
billingCity
|
|
136
|
-
billingState
|
|
137
|
-
billingCountryCode
|
|
138
|
-
billingPostalCode
|
|
139
|
-
phoneNumberCountryCode
|
|
140
|
-
phoneNumber
|
|
141
|
-
taxInformation {
|
|
142
|
-
indirectTaxId
|
|
143
|
-
indirectTaxCountryCode
|
|
144
|
-
indirectTaxRegion
|
|
145
|
-
additionalTaxId
|
|
146
|
-
withholdingTaxId
|
|
147
|
-
withholdingTaxCountryCode
|
|
148
|
-
}
|
|
149
|
-
requiredTaxDocumentType
|
|
150
|
-
currentTaxDocument {
|
|
151
|
-
status
|
|
152
|
-
type
|
|
153
|
-
dateCreated
|
|
154
|
-
}
|
|
155
|
-
withdrawalSettings {
|
|
156
|
-
paymentMethod
|
|
157
|
-
paypalEmailAddress
|
|
158
|
-
bankCountry
|
|
159
|
-
bankAccountNumber
|
|
160
|
-
paymentSchedulingType
|
|
161
|
-
paymentThreshold
|
|
162
|
-
paymentDay
|
|
163
|
-
}
|
|
164
|
-
payoutsAccount {
|
|
165
|
-
hold
|
|
166
|
-
holdReasons
|
|
167
|
-
balance
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
`;
|
|
175
|
-
const GET_COUNTRIES = dist.gql `
|
|
176
|
-
query getCountries {
|
|
177
|
-
impactPayoutCountries(limit: 1000) {
|
|
178
|
-
data {
|
|
179
|
-
countryCode
|
|
180
|
-
displayName
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
`;
|
|
185
|
-
const GET_CURRENCIES = dist.gql `
|
|
186
|
-
query currencies($locale: RSLocale) {
|
|
187
|
-
currencies(limit: 300) {
|
|
188
|
-
data {
|
|
189
|
-
displayName(locale: $locale)
|
|
190
|
-
currencyCode
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
`;
|
|
195
|
-
const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
|
|
196
|
-
query impactFinanceNetworkSettings(
|
|
197
|
-
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
198
|
-
) {
|
|
199
|
-
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
200
|
-
data {
|
|
201
|
-
countryCode
|
|
202
|
-
currency
|
|
203
|
-
defaultFinancePaymentMethodId
|
|
204
|
-
thresholdOptions
|
|
205
|
-
withdrawalSettingId
|
|
206
|
-
internationalEftFee
|
|
207
|
-
foreignFxFee
|
|
208
|
-
defaultFxFee
|
|
209
|
-
}
|
|
210
|
-
totalCount
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
`;
|
|
214
|
-
const FORM_STEPS = 4;
|
|
215
|
-
|
|
216
|
-
export { CURRENCIES_NAMESPACE as C, FORM_STEPS as F, GET_USER as G, LoadingView as L, SORTED_COUNTRIES_NAMESPACE as S, TAX_CONTEXT_NAMESPACE as T, USER_FORM_CONTEXT_NAMESPACE as U, TAX_FORM_CONTEXT_NAMESPACE as a, COUNTRIES_NAMESPACE as b, USER_QUERY_NAMESPACE as c, COUNTRIES_QUERY_NAMESPACE as d, GET_COUNTRIES as e, formatErrorMessage as f, getCountryObj as g, FINANCE_NETWORK_SETTINGS_NAMESPACE as h, GET_FINANCE_NETWORK_SETTINGS as i, CURRENCIES_QUERY_NAMESPACE as j, GET_CURRENCIES as k, validTaxDocument as l, objectIsFull as o, taxTypeToName as t, validateBillingField as v };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
function parseStates(states) {
|
|
2
|
-
if (typeof states === "string") {
|
|
3
|
-
try {
|
|
4
|
-
return JSON.parse(states);
|
|
5
|
-
}
|
|
6
|
-
catch (e) {
|
|
7
|
-
return undefined;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
if (typeof states === "object")
|
|
11
|
-
return states;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Util function for getting just the props with a certain prefix.
|
|
16
|
-
* @param props Text props on stencil component
|
|
17
|
-
* @param prefix Prefix denoting which group the text prop belongs to
|
|
18
|
-
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
19
|
-
*/
|
|
20
|
-
function extractProps(props, prefix) {
|
|
21
|
-
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
22
|
-
const formattedProps = keys.reduce((prev, k) => {
|
|
23
|
-
const key = k.replace(prefix, "");
|
|
24
|
-
return {
|
|
25
|
-
...prev,
|
|
26
|
-
[key]: props[k],
|
|
27
|
-
};
|
|
28
|
-
}, {});
|
|
29
|
-
return formattedProps;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export { extractProps as e, parseStates as p };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const SHOW_CODE_NAMESPACE = "sq:code-verification";
|
|
2
|
-
const VERIFICATION_EMAIL_NAMESPACE = "sq:verification-email";
|
|
3
|
-
const VERIFICATION_PARENT_NAMESPACE = "sq:verification-context";
|
|
4
|
-
const VERIFICATION_EVENT_KEY = "sq:code-verified";
|
|
5
|
-
|
|
6
|
-
export { SHOW_CODE_NAMESPACE as S, VERIFICATION_EMAIL_NAMESPACE as V, VERIFICATION_PARENT_NAMESPACE as a, VERIFICATION_EVENT_KEY as b };
|