@saasquatch/mint-components 1.15.0-45 → 1.15.0-46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-bebbd4d0.js → ShadowViewAddon-85d2eed4.js} +1056 -1056
- package/dist/cjs/{extractProps-e9c55ba8.js → extractProps-fd93ba62.js} +0 -14
- package/dist/cjs/{global-242743b1.js → global-2298fc8b.js} +58 -73
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +1902 -213
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +3 -3
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-invoice-table-view-90b2433f.js +2038 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-38bfdda4.js → sqm-portal-email-verification-view-0a93a148.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-036d355e.js → sqm-portal-profile-view-44a83439.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +13992 -15287
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +3 -11
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +7 -17
- package/dist/cjs/{usePayoutStatus-3cca69e5.js → usePayoutStatus-f26f0467.js} +5 -8
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +1 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +1 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -3
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +1 -1
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +3 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +4 -6
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -2
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +3 -5
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +3 -5
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +9 -11
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +3 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +78 -78
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +5 -39
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +7 -42
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +8 -12
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -26
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +5 -8
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +28 -77
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +4 -19
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -6
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/global/styles.js +58 -73
- package/dist/collection/global/styles.ts +40 -48
- package/dist/esm/{ShadowViewAddon-b439f9c5.js → ShadowViewAddon-d59ef625.js} +1059 -1059
- package/dist/esm/{extractProps-54064fb0.js → extractProps-ae1afbb3.js} +1 -14
- package/dist/esm/{global-f33bb903.js → global-2da1dcec.js} +58 -73
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{sqm-banking-info-form_10.entry.js → sqm-banking-info-form_17.entry.js} +1819 -137
- package/dist/esm/sqm-big-stat_42.entry.js +3 -3
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-invoice-table-view-df370e4a.js +2022 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-e8661ca9.js → sqm-portal-email-verification-view-e38ec8cc.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-70e1a345.js → sqm-portal-profile-view-e594d1ee.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -3
- package/dist/esm/sqm-stencilbook.entry.js +14017 -15312
- package/dist/esm/sqm-widget-verification-controller.entry.js +4 -12
- package/dist/esm/sqm-widget-verification.entry.js +7 -17
- package/dist/esm/{usePayoutStatus-e92a6e43.js → usePayoutStatus-3768c8c3.js} +5 -8
- package/dist/esm-es5/ShadowViewAddon-d59ef625.js +1 -0
- package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
- package/dist/esm-es5/{global-f33bb903.js → global-2da1dcec.js} +4 -4
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-df370e4a.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-e8661ca9.js → sqm-portal-email-verification-view-e38ec8cc.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-70e1a345.js → sqm-portal-profile-view-e594d1ee.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.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-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-e92a6e43.js → usePayoutStatus-3768c8c3.js} +2 -2
- package/dist/mint-components/global/styles.ts +40 -48
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-b55e454d.entry.js → p-0019d57c.entry.js} +1 -1
- package/dist/mint-components/p-04cc08e7.system.entry.js +1 -0
- package/dist/mint-components/p-097a255f.js +1 -0
- package/dist/mint-components/p-15ad1e97.entry.js +16 -0
- package/dist/mint-components/p-16c55bb4.entry.js +205 -0
- package/dist/mint-components/{p-95ff58b2.system.entry.js → p-232996b5.system.entry.js} +1 -1
- package/dist/mint-components/p-26468242.js +1 -0
- package/dist/mint-components/{p-283848df.system.entry.js → p-28aed7f7.system.entry.js} +1 -1
- package/dist/mint-components/p-31b8f0ca.system.js +1 -0
- package/dist/mint-components/{p-a341ce23.js → p-3466bfaa.js} +2 -2
- package/dist/mint-components/{p-227aa136.entry.js → p-4ce7e3b1.entry.js} +1 -1
- package/dist/mint-components/{p-2d730bef.system.entry.js → p-5125ec72.system.entry.js} +1 -1
- package/dist/mint-components/{p-a44b7a52.system.js → p-5efed40f.system.js} +2 -2
- package/dist/mint-components/p-62d924e6.system.entry.js +1 -0
- package/dist/mint-components/p-6bcac9ed.system.entry.js +1 -0
- package/dist/mint-components/{p-44435060.entry.js → p-73069eba.entry.js} +1 -1
- package/dist/mint-components/{p-1f8d3b1a.entry.js → p-761ee9ea.entry.js} +2 -2
- package/dist/mint-components/{p-7cbbca72.entry.js → p-7953c3da.entry.js} +1 -1
- package/dist/mint-components/{p-9d48280a.js → p-7aba33e1.js} +1 -1
- package/dist/mint-components/{p-5a48bf9d.system.js → p-7ae3ec51.system.js} +1 -1
- package/dist/mint-components/p-7b97c0f4.system.entry.js +1 -0
- package/dist/mint-components/{p-c7878ec7.system.js → p-7daa731c.system.js} +1 -1
- package/dist/mint-components/{p-28e4b275.system.entry.js → p-7dac5a58.system.entry.js} +1 -1
- package/dist/mint-components/{p-e8422f7b.entry.js → p-836d3ec7.entry.js} +2 -2
- package/dist/mint-components/{p-5dd09973.system.entry.js → p-9fcc7901.system.entry.js} +1 -1
- package/dist/mint-components/{p-059ad130.system.entry.js → p-a121e5a1.system.entry.js} +1 -1
- package/dist/mint-components/p-a8645c1b.system.js +1 -0
- package/dist/mint-components/{p-a348f9b9.js → p-b090bbd2.js} +1 -1
- package/dist/mint-components/p-bfe08ca4.system.js +1 -0
- package/dist/mint-components/p-c53bd5bd.entry.js +9 -0
- package/dist/mint-components/{p-3bdccbc9.system.entry.js → p-cc5f9775.system.entry.js} +1 -1
- package/dist/mint-components/{p-10849094.system.js → p-d49373b7.system.js} +1 -1
- package/dist/mint-components/{p-6d23f01a.entry.js → p-d4e49019.entry.js} +2 -2
- package/dist/mint-components/{p-7aef9c53.entry.js → p-e1e96de9.entry.js} +1 -1
- package/dist/mint-components/p-e53c3c6e.system.js +1 -0
- package/dist/mint-components/{p-538fe844.system.entry.js → p-e70d8201.system.entry.js} +1 -1
- package/dist/mint-components/{p-c2e3f0f0.entry.js → p-f2c48bc8.entry.js} +1 -1
- package/dist/mint-components/p-f3558ef0.js +394 -0
- package/dist/mint-components/{p-24d6cfcd.js → p-f3a52eb6.js} +1 -1
- package/dist/mint-components/p-f66ccd51.entry.js +1 -0
- package/dist/mint-components/{p-4cfd562e.system.entry.js → p-fad1752b.system.entry.js} +1 -1
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +20 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -2
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +60 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +3 -3
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +7 -0
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +16 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +43 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +71 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +43 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +31 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +0 -1
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +8 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +11 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +24 -0
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +31 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +20 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +32 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +50 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +104 -0
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +48 -0
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -3
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +16 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +0 -5
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +1 -6
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +4 -10
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components.d.ts +22 -66
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/global/styles.d.ts +1 -2
- package/dist/types/saasquatch.d.ts +50 -106
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -2
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/cjs/IndirectTaxDetailsView-81f1ce92.js +0 -646
- package/dist/cjs/data-68a42a7b.js +0 -137
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -342
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +0 -84
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1220
- package/dist/cjs/utils-a6957c85.js +0 -105
- package/dist/collection/utils/parseStates.js +0 -12
- package/dist/esm/IndirectTaxDetailsView-89731480.js +0 -639
- package/dist/esm/data-ce8ed0ae.js +0 -121
- package/dist/esm/sqm-code-verification.entry.js +0 -338
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +0 -76
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1216
- package/dist/esm/utils-79d81bca.js +0 -97
- package/dist/esm-es5/IndirectTaxDetailsView-89731480.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-b439f9c5.js +0 -1
- package/dist/esm-es5/data-ce8ed0ae.js +0 -1
- package/dist/esm-es5/extractProps-54064fb0.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/utils-79d81bca.js +0 -1
- package/dist/mint-components/p-0768fe1d.system.js +0 -1
- package/dist/mint-components/p-0797a946.js +0 -1
- package/dist/mint-components/p-169c8564.system.js +0 -1
- package/dist/mint-components/p-1e79befd.entry.js +0 -1
- package/dist/mint-components/p-2378a0dd.entry.js +0 -16
- package/dist/mint-components/p-3206d0a4.js +0 -103
- package/dist/mint-components/p-6a4582eb.system.entry.js +0 -1
- package/dist/mint-components/p-6f323a9f.entry.js +0 -11
- package/dist/mint-components/p-7274fe6e.js +0 -1
- package/dist/mint-components/p-7813a75a.js +0 -1
- package/dist/mint-components/p-7dc10820.system.js +0 -1
- package/dist/mint-components/p-8c126ccb.system.entry.js +0 -1
- package/dist/mint-components/p-901358ee.system.entry.js +0 -1
- package/dist/mint-components/p-9481740a.system.entry.js +0 -1
- package/dist/mint-components/p-a39c3535.system.entry.js +0 -1
- package/dist/mint-components/p-a86635aa.system.entry.js +0 -1
- package/dist/mint-components/p-ae0636bb.system.js +0 -1
- package/dist/mint-components/p-c25b0ff4.js +0 -394
- package/dist/mint-components/p-e228b351.system.js +0 -1
- package/dist/mint-components/p-e524056f.entry.js +0 -1
- package/dist/mint-components/p-e55aafe9.system.js +0 -1
- package/dist/mint-components/p-ee17ee0b.entry.js +0 -1
- package/dist/mint-components/p-f2ebbbe3.system.entry.js +0 -1
- package/dist/mint-components/p-fba00613.entry.js +0 -93
- package/dist/mint-components/p-fd2ee10c.entry.js +0 -9
- package/dist/types/utils/parseStates.d.ts +0 -1
- /package/dist/collection/components/tax-and-cash/{data.js → sqm-tax-and-cash/data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{data.d.ts → sqm-tax-and-cash/data.d.ts} +0 -0
package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js}
RENAMED
|
@@ -4,23 +4,143 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a43a63b4.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-62264802.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-2298fc8b.js');
|
|
8
8
|
const index_module = require('./index.module-39955732.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
require('./mixins-4761d472.js');
|
|
13
|
+
const mixins = require('./mixins-4761d472.js');
|
|
14
14
|
const GenericTableView = require('./GenericTableView-107ade89.js');
|
|
15
15
|
const reRender = require('./re-render-28fed959.js');
|
|
16
16
|
const useChildElements = require('./useChildElements-e5fa605c.js');
|
|
17
17
|
const luxon = require('./luxon-3b809948.js');
|
|
18
18
|
const useReferralTable = require('./useReferralTable-19e7523a.js');
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
19
|
+
const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
|
|
20
|
+
const ErrorView = require('./ErrorView-5504c2b6.js');
|
|
21
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-90b2433f.js');
|
|
22
|
+
const extractProps = require('./extractProps-fd93ba62.js');
|
|
22
23
|
const keys = require('./keys-cff24974.js');
|
|
23
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
24
|
+
const usePayoutStatus = require('./usePayoutStatus-f26f0467.js');
|
|
25
|
+
const useVerificationEmail = require('./useVerificationEmail-1496b993.js');
|
|
26
|
+
|
|
27
|
+
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
28
|
+
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
29
|
+
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
30
|
+
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
31
|
+
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
32
|
+
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
33
|
+
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
34
|
+
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
35
|
+
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
36
|
+
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
37
|
+
const GET_USER = index_module.dist.gql `
|
|
38
|
+
query getUserTaxInfo {
|
|
39
|
+
user: viewer {
|
|
40
|
+
... on User {
|
|
41
|
+
id
|
|
42
|
+
firstName
|
|
43
|
+
lastName
|
|
44
|
+
email
|
|
45
|
+
countryCode
|
|
46
|
+
customFields
|
|
47
|
+
managedIdentity {
|
|
48
|
+
uid
|
|
49
|
+
email
|
|
50
|
+
emailVerified
|
|
51
|
+
}
|
|
52
|
+
impactConnection {
|
|
53
|
+
connected
|
|
54
|
+
user {
|
|
55
|
+
firstName
|
|
56
|
+
lastName
|
|
57
|
+
}
|
|
58
|
+
publisher {
|
|
59
|
+
id
|
|
60
|
+
brandedSignup
|
|
61
|
+
countryCode
|
|
62
|
+
currency
|
|
63
|
+
billingAddress
|
|
64
|
+
billingCity
|
|
65
|
+
billingState
|
|
66
|
+
billingCountryCode
|
|
67
|
+
billingPostalCode
|
|
68
|
+
phoneNumberCountryCode
|
|
69
|
+
phoneNumber
|
|
70
|
+
taxInformation {
|
|
71
|
+
indirectTaxId
|
|
72
|
+
indirectTaxCountryCode
|
|
73
|
+
indirectTaxRegion
|
|
74
|
+
additionalTaxId
|
|
75
|
+
withholdingTaxId
|
|
76
|
+
withholdingTaxCountryCode
|
|
77
|
+
}
|
|
78
|
+
requiredTaxDocumentType
|
|
79
|
+
currentTaxDocument {
|
|
80
|
+
status
|
|
81
|
+
type
|
|
82
|
+
dateCreated
|
|
83
|
+
}
|
|
84
|
+
withdrawalSettings {
|
|
85
|
+
paymentMethod
|
|
86
|
+
paypalEmailAddress
|
|
87
|
+
bankCountry
|
|
88
|
+
bankAccountNumber
|
|
89
|
+
paymentSchedulingType
|
|
90
|
+
paymentThreshold
|
|
91
|
+
paymentDay
|
|
92
|
+
}
|
|
93
|
+
payoutsAccount {
|
|
94
|
+
hold
|
|
95
|
+
holdReasons
|
|
96
|
+
balance
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
const GET_COUNTRIES = index_module.dist.gql `
|
|
105
|
+
query getCountries {
|
|
106
|
+
impactPayoutCountries(limit: 1000) {
|
|
107
|
+
data {
|
|
108
|
+
countryCode
|
|
109
|
+
displayName
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
const GET_CURRENCIES = index_module.dist.gql `
|
|
115
|
+
query currencies($locale: RSLocale) {
|
|
116
|
+
currencies(limit: 300) {
|
|
117
|
+
data {
|
|
118
|
+
displayName(locale: $locale)
|
|
119
|
+
currencyCode
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
`;
|
|
124
|
+
const GET_FINANCE_NETWORK_SETTINGS = index_module.dist.gql `
|
|
125
|
+
query impactFinanceNetworkSettings(
|
|
126
|
+
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
127
|
+
) {
|
|
128
|
+
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
129
|
+
data {
|
|
130
|
+
countryCode
|
|
131
|
+
currency
|
|
132
|
+
defaultFinancePaymentMethodId
|
|
133
|
+
thresholdOptions
|
|
134
|
+
withdrawalSettingId
|
|
135
|
+
internationalEftFee
|
|
136
|
+
foreignFxFee
|
|
137
|
+
defaultFxFee
|
|
138
|
+
}
|
|
139
|
+
totalCount
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
`;
|
|
143
|
+
const FORM_STEPS = 4;
|
|
24
144
|
|
|
25
145
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
26
146
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
|
|
@@ -721,7 +841,7 @@ const BankingInfoFormView = (props) => {
|
|
|
721
841
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
722
842
|
id: "formStep",
|
|
723
843
|
defaultMessage: text.formStep,
|
|
724
|
-
}, { step: states.step, count:
|
|
844
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
725
845
|
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
726
846
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
727
847
|
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
@@ -860,12 +980,12 @@ function useBankingInfoForm(props) {
|
|
|
860
980
|
const host = index_module._();
|
|
861
981
|
const locale = index_module.L();
|
|
862
982
|
const user = index_module.J();
|
|
863
|
-
const [step, setStep] = index_module.Pn(
|
|
864
|
-
const context = index_module.Fn(
|
|
865
|
-
const countries = index_module.Fn(
|
|
983
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
984
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
985
|
+
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
866
986
|
const formRef = stencilHooks_module.useRef(null);
|
|
867
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(
|
|
868
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(
|
|
987
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
988
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
869
989
|
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
870
990
|
const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
871
991
|
const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
|
|
@@ -1534,7 +1654,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1534
1654
|
const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
|
|
1535
1655
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1536
1656
|
const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
|
|
1537
|
-
const setStep = index_module.En(
|
|
1657
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
1538
1658
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1539
1659
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1540
1660
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1627,6 +1747,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1627
1747
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1628
1748
|
}
|
|
1629
1749
|
|
|
1750
|
+
const style$1 = {
|
|
1751
|
+
Wrapper: {
|
|
1752
|
+
display: "flex",
|
|
1753
|
+
flexDirection: "column",
|
|
1754
|
+
gap: "var(--sl-spacing-medium)",
|
|
1755
|
+
maxWidth: "550px",
|
|
1756
|
+
},
|
|
1757
|
+
HeaderContainer: {
|
|
1758
|
+
display: "flex",
|
|
1759
|
+
flexDirection: "column",
|
|
1760
|
+
},
|
|
1761
|
+
InputsContainer: {
|
|
1762
|
+
display: "flex",
|
|
1763
|
+
gap: "var(--sl-spacing-medium)",
|
|
1764
|
+
position: "relative",
|
|
1765
|
+
flexDirection: "column",
|
|
1766
|
+
},
|
|
1767
|
+
CodeInputContainer: {
|
|
1768
|
+
display: "flex",
|
|
1769
|
+
gap: "var(--sl-spacing-medium)",
|
|
1770
|
+
},
|
|
1771
|
+
CodeInput: {
|
|
1772
|
+
maxWidth: "40px",
|
|
1773
|
+
"&::part(input)": {
|
|
1774
|
+
margin: "0",
|
|
1775
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1776
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1777
|
+
},
|
|
1778
|
+
},
|
|
1779
|
+
CodeInputError: {
|
|
1780
|
+
...mixins.ErrorStyles,
|
|
1781
|
+
maxWidth: "40px",
|
|
1782
|
+
"&::part(input)": {
|
|
1783
|
+
margin: "0",
|
|
1784
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1785
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1786
|
+
},
|
|
1787
|
+
},
|
|
1788
|
+
ErrorText: {
|
|
1789
|
+
color: "var(--sl-color-danger-500)",
|
|
1790
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1791
|
+
margin: "0",
|
|
1792
|
+
},
|
|
1793
|
+
ContinueButton: {
|
|
1794
|
+
width: "100%",
|
|
1795
|
+
maxWidth: "100px",
|
|
1796
|
+
},
|
|
1797
|
+
FooterContainer: {
|
|
1798
|
+
display: "flex",
|
|
1799
|
+
flexDirection: "column",
|
|
1800
|
+
},
|
|
1801
|
+
SkeletonOne: {
|
|
1802
|
+
width: "50%",
|
|
1803
|
+
height: "16px",
|
|
1804
|
+
},
|
|
1805
|
+
SkeletonTwo: {
|
|
1806
|
+
width: "30%",
|
|
1807
|
+
height: "34px",
|
|
1808
|
+
},
|
|
1809
|
+
SkeletonThree: {
|
|
1810
|
+
width: "15%",
|
|
1811
|
+
height: "24px",
|
|
1812
|
+
},
|
|
1813
|
+
};
|
|
1814
|
+
const vanillaStyle$1 = `
|
|
1815
|
+
:host {
|
|
1816
|
+
display: block;
|
|
1817
|
+
}
|
|
1818
|
+
:host([hidden]): {
|
|
1819
|
+
display: none;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
`;
|
|
1824
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1825
|
+
const styleString$1 = sheet$1.toString();
|
|
1826
|
+
function WidgetCodeVerificationView(props) {
|
|
1827
|
+
const { states, refs, callbacks, text } = props;
|
|
1828
|
+
const resendCodeText = global.intl.formatMessage({
|
|
1829
|
+
id: "resendCodeText",
|
|
1830
|
+
defaultMessage: text.resendCodeText,
|
|
1831
|
+
}, {
|
|
1832
|
+
resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1833
|
+
e.preventDefault();
|
|
1834
|
+
callbacks.resendEmail();
|
|
1835
|
+
} }, text.resendCodeLabel)),
|
|
1836
|
+
});
|
|
1837
|
+
const codeResentSuccessfully = global.intl.formatMessage({
|
|
1838
|
+
id: "codeResentSuccessfully",
|
|
1839
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
1840
|
+
}, {
|
|
1841
|
+
email: states.email,
|
|
1842
|
+
});
|
|
1843
|
+
const inputClass = states.verifyFailed
|
|
1844
|
+
? sheet$1.classes.CodeInputError
|
|
1845
|
+
: sheet$1.classes.CodeInput;
|
|
1846
|
+
return (index.h("div", { part: "sqm-base" },
|
|
1847
|
+
index.h("style", { type: "text/css" },
|
|
1848
|
+
vanillaStyle$1,
|
|
1849
|
+
styleString$1),
|
|
1850
|
+
index.h("div", { class: sheet$1.classes.Wrapper },
|
|
1851
|
+
index.h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1852
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
|
|
1853
|
+
id: `emailHeaderText`,
|
|
1854
|
+
defaultMessage: states.verifyFailed
|
|
1855
|
+
? text.reverifyCodeHeaderText
|
|
1856
|
+
: text.verifyCodeHeaderText,
|
|
1857
|
+
}, { email: states.email }))),
|
|
1858
|
+
states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1859
|
+
index.h("b", null, codeResentSuccessfully))),
|
|
1860
|
+
index.h("div", { class: sheet$1.classes.InputsContainer },
|
|
1861
|
+
index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1862
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1863
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1864
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1865
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1866
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1867
|
+
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
1868
|
+
states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1869
|
+
index.h("sl-button", { class: sheet$1.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
|
|
1870
|
+
index.h("div", { class: sheet$1.classes.FooterContainer },
|
|
1871
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|
|
1875
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
1876
|
+
$user: UserIdInput!
|
|
1877
|
+
$code: String!
|
|
1878
|
+
) {
|
|
1879
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1880
|
+
verifiedEmail
|
|
1881
|
+
accessKey
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
`;
|
|
1885
|
+
function useWidgetCodeVerification(props) {
|
|
1886
|
+
const host = stencilHooks_module.l();
|
|
1887
|
+
const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
|
|
1888
|
+
const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
|
|
1889
|
+
const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
|
|
1890
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
1891
|
+
const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
|
|
1892
|
+
const [validationError, setValidationError] = stencilHooks_module.useState(false);
|
|
1893
|
+
const [emailError, setEmailError] = stencilHooks_module.useState(false);
|
|
1894
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
|
|
1895
|
+
stencilHooks_module.useEffect(() => {
|
|
1896
|
+
if (!codeRef)
|
|
1897
|
+
return;
|
|
1898
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1899
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1900
|
+
codeElements.forEach((element, idx) => {
|
|
1901
|
+
element.addEventListener("focus", (e) => {
|
|
1902
|
+
e.target.select();
|
|
1903
|
+
});
|
|
1904
|
+
element.addEventListener("keydown", (e) => {
|
|
1905
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
1906
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1909
|
+
element.addEventListener("input", (e) => {
|
|
1910
|
+
const input = e.data;
|
|
1911
|
+
if (!input)
|
|
1912
|
+
return;
|
|
1913
|
+
if (idx === codeElements.length - 1) {
|
|
1914
|
+
e.target.value = input.slice(0, 1);
|
|
1915
|
+
return;
|
|
1916
|
+
}
|
|
1917
|
+
if (input.length > 1) {
|
|
1918
|
+
const rest = input.slice(1);
|
|
1919
|
+
e.target.value = input.slice(0, 1);
|
|
1920
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1921
|
+
inputType: "insertFromPaste",
|
|
1922
|
+
data: rest,
|
|
1923
|
+
}));
|
|
1924
|
+
}
|
|
1925
|
+
codeElements[idx + 1].focus();
|
|
1926
|
+
});
|
|
1927
|
+
});
|
|
1928
|
+
}, [codeRef]);
|
|
1929
|
+
const reset = () => {
|
|
1930
|
+
setShowCode(false);
|
|
1931
|
+
setValidationError(false);
|
|
1932
|
+
};
|
|
1933
|
+
const resendEmail = async () => {
|
|
1934
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1935
|
+
if (!initialized)
|
|
1936
|
+
return;
|
|
1937
|
+
const result = await sendEmail();
|
|
1938
|
+
if (!result) {
|
|
1939
|
+
setEmailError(true);
|
|
1940
|
+
return;
|
|
1941
|
+
}
|
|
1942
|
+
if (emailSent)
|
|
1943
|
+
setEmailResent(true);
|
|
1944
|
+
setEmailSent(true);
|
|
1945
|
+
};
|
|
1946
|
+
const submitCode = async () => {
|
|
1947
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1948
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1949
|
+
if (codeElements.find((el) => !el.value)) {
|
|
1950
|
+
setValidationError(true);
|
|
1951
|
+
return;
|
|
1952
|
+
}
|
|
1953
|
+
let code = "";
|
|
1954
|
+
codeElements.forEach((element) => {
|
|
1955
|
+
code = `${code}${element.value}`;
|
|
1956
|
+
});
|
|
1957
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1958
|
+
if (!initialized)
|
|
1959
|
+
return;
|
|
1960
|
+
setValidationError(false);
|
|
1961
|
+
const res = await verifyEmail(code);
|
|
1962
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1963
|
+
props.onVerification(res.accessKey);
|
|
1964
|
+
reset();
|
|
1965
|
+
}
|
|
1966
|
+
else {
|
|
1967
|
+
setValidationError(true);
|
|
1968
|
+
}
|
|
1969
|
+
};
|
|
1970
|
+
stencilHooks_module.useEffect(() => {
|
|
1971
|
+
// Wait for mutations to be determined from user lookup
|
|
1972
|
+
if (!initialized)
|
|
1973
|
+
return;
|
|
1974
|
+
// email should already exist if user has completed email-verification
|
|
1975
|
+
if (!email)
|
|
1976
|
+
resendEmail();
|
|
1977
|
+
else
|
|
1978
|
+
setEmailSent(true);
|
|
1979
|
+
}, [initialized]);
|
|
1980
|
+
return {
|
|
1981
|
+
refs: {
|
|
1982
|
+
codeWrapperRef: setCodeRef,
|
|
1983
|
+
},
|
|
1984
|
+
states: {
|
|
1985
|
+
email: verificationEmail,
|
|
1986
|
+
emailResent,
|
|
1987
|
+
resendError: sendErrors || verifyErrors,
|
|
1988
|
+
initialiseLoading: !initialized,
|
|
1989
|
+
loading: sendLoading || verifyLoading,
|
|
1990
|
+
verifyFailed: !!validationError,
|
|
1991
|
+
},
|
|
1992
|
+
callbacks: {
|
|
1993
|
+
resendEmail,
|
|
1994
|
+
submitCode,
|
|
1995
|
+
},
|
|
1996
|
+
text: props.getTextProps(),
|
|
1997
|
+
};
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
const WidgetCodeVerification = class {
|
|
2001
|
+
constructor(hostRef) {
|
|
2002
|
+
index.registerInstance(this, hostRef);
|
|
2003
|
+
/**
|
|
2004
|
+
* @uiName Verify code widget header text
|
|
2005
|
+
*/
|
|
2006
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2007
|
+
/**
|
|
2008
|
+
* @uiName Reverify code widget header text
|
|
2009
|
+
*/
|
|
2010
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2011
|
+
/**
|
|
2012
|
+
* Text displayed under verify button
|
|
2013
|
+
* @uiName Resend code text
|
|
2014
|
+
*/
|
|
2015
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2016
|
+
/**
|
|
2017
|
+
* The link that appears in the resend code link
|
|
2018
|
+
* @uiName Resend code label
|
|
2019
|
+
*/
|
|
2020
|
+
this.resendCodeLabel = "Resend code";
|
|
2021
|
+
/**
|
|
2022
|
+
* Link text displayed under verify button
|
|
2023
|
+
* @uiName Resend code text
|
|
2024
|
+
*/
|
|
2025
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2026
|
+
/**
|
|
2027
|
+
* Error text displayed under verification input
|
|
2028
|
+
* @uiName Invalid code text
|
|
2029
|
+
*/
|
|
2030
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2031
|
+
/**
|
|
2032
|
+
* @uiName Verify code button text
|
|
2033
|
+
*/
|
|
2034
|
+
this.verifyText = "Verify";
|
|
2035
|
+
/**
|
|
2036
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2037
|
+
* @uiName Network error message
|
|
2038
|
+
*/
|
|
2039
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2040
|
+
stencilHooks_module.h$1(this);
|
|
2041
|
+
}
|
|
2042
|
+
disconnectedCallback() { }
|
|
2043
|
+
getTextProps() {
|
|
2044
|
+
return utils.getProps(this);
|
|
2045
|
+
}
|
|
2046
|
+
render() {
|
|
2047
|
+
const props = index_module.isDemo()
|
|
2048
|
+
? useDemoWidgetCodeVerification(this)
|
|
2049
|
+
: useWidgetCodeVerification(this);
|
|
2050
|
+
return index.h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2051
|
+
}
|
|
2052
|
+
};
|
|
2053
|
+
function useDemoWidgetCodeVerification(props) {
|
|
2054
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
2055
|
+
const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
2056
|
+
return cjs.cjs({
|
|
2057
|
+
states: {
|
|
2058
|
+
loading: false,
|
|
2059
|
+
email: "test@example.com",
|
|
2060
|
+
emailResent,
|
|
2061
|
+
resendError: false,
|
|
2062
|
+
verifyFailed: false,
|
|
2063
|
+
},
|
|
2064
|
+
refs: {
|
|
2065
|
+
codeWrapperRef: () => { },
|
|
2066
|
+
},
|
|
2067
|
+
callbacks: {
|
|
2068
|
+
resendEmail: async () => setEmailResent(true),
|
|
2069
|
+
submitCode: async () => setVerifiedContext(true),
|
|
2070
|
+
},
|
|
2071
|
+
text: props.getTextProps(),
|
|
2072
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2073
|
+
}
|
|
2074
|
+
|
|
1630
2075
|
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
1631
2076
|
mutation createImpactPublisherTaxDocument(
|
|
1632
2077
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1655,10 +2100,10 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
|
1655
2100
|
function useDocusignForm(props) {
|
|
1656
2101
|
var _a, _b, _c;
|
|
1657
2102
|
const user = index_module.J();
|
|
1658
|
-
const context = index_module.Fn(
|
|
1659
|
-
const [step, setStep] = index_module.Pn(
|
|
1660
|
-
const { data
|
|
1661
|
-
const publisher = (_b = (_a = data
|
|
2103
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2104
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2105
|
+
const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2106
|
+
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
1662
2107
|
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
1663
2108
|
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
1664
2109
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
@@ -1667,7 +2112,7 @@ function useDocusignForm(props) {
|
|
|
1667
2112
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
1668
2113
|
const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
|
|
1669
2114
|
// Only look at current document if it's valid (same as required type)
|
|
1670
|
-
const existingDocumentType =
|
|
2115
|
+
const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
1671
2116
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
1672
2117
|
const actualDocumentType = existingDocumentType ||
|
|
1673
2118
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
@@ -1759,7 +2204,7 @@ function useDocusignForm(props) {
|
|
|
1759
2204
|
},
|
|
1760
2205
|
docusignStatus,
|
|
1761
2206
|
documentType: actualDocumentType,
|
|
1762
|
-
documentTypeString:
|
|
2207
|
+
documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
|
|
1763
2208
|
showExitButton,
|
|
1764
2209
|
},
|
|
1765
2210
|
data: {
|
|
@@ -1784,7 +2229,7 @@ function getDocumentType(p) {
|
|
|
1784
2229
|
return undefined;
|
|
1785
2230
|
}
|
|
1786
2231
|
|
|
1787
|
-
const style$
|
|
2232
|
+
const style$2 = {
|
|
1788
2233
|
DocusignStatusContainer: {
|
|
1789
2234
|
width: "100%",
|
|
1790
2235
|
minHeight: "600px",
|
|
@@ -1811,13 +2256,13 @@ const style$1 = {
|
|
|
1811
2256
|
},
|
|
1812
2257
|
},
|
|
1813
2258
|
};
|
|
1814
|
-
const sheet$
|
|
1815
|
-
const styleString$
|
|
2259
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
2260
|
+
const styleString$2 = sheet$2.toString();
|
|
1816
2261
|
const DocusignExpiredView = (props) => {
|
|
1817
|
-
const { classes } = sheet$
|
|
2262
|
+
const { classes } = sheet$2;
|
|
1818
2263
|
const { text } = props;
|
|
1819
2264
|
return (index.h("div", null,
|
|
1820
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2265
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1821
2266
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1822
2267
|
index.h("sl-icon", { style: {
|
|
1823
2268
|
width: "50px",
|
|
@@ -1829,10 +2274,10 @@ const DocusignExpiredView = (props) => {
|
|
|
1829
2274
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1830
2275
|
};
|
|
1831
2276
|
const DocusignErrorView = (props) => {
|
|
1832
|
-
const { classes } = sheet$
|
|
2277
|
+
const { classes } = sheet$2;
|
|
1833
2278
|
const { text } = props;
|
|
1834
2279
|
return (index.h("div", null,
|
|
1835
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2280
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1836
2281
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1837
2282
|
index.h("sl-icon", { style: {
|
|
1838
2283
|
width: "50px",
|
|
@@ -1844,14 +2289,14 @@ const DocusignErrorView = (props) => {
|
|
|
1844
2289
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1845
2290
|
};
|
|
1846
2291
|
const DocusignLoadingView = () => {
|
|
1847
|
-
const { classes } = sheet$
|
|
2292
|
+
const { classes } = sheet$2;
|
|
1848
2293
|
return (index.h("div", null,
|
|
1849
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2294
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1850
2295
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1851
2296
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1852
2297
|
};
|
|
1853
2298
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1854
|
-
const { classes } = sheet$
|
|
2299
|
+
const { classes } = sheet$2;
|
|
1855
2300
|
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
1856
2301
|
const allowedDomains = [
|
|
1857
2302
|
"referralsaasquatch.com",
|
|
@@ -1884,12 +2329,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1884
2329
|
return index.h(DocusignExpiredView, { text: text });
|
|
1885
2330
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1886
2331
|
return (index.h("div", { style: { height: iFrameHeight } },
|
|
1887
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2332
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1888
2333
|
index.h("div", { class: classes.IFrameContainer },
|
|
1889
2334
|
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1890
2335
|
};
|
|
1891
2336
|
|
|
1892
|
-
const style$
|
|
2337
|
+
const style$3 = {
|
|
1893
2338
|
FormWrapper: {
|
|
1894
2339
|
display: "flex",
|
|
1895
2340
|
justifyContent: "flex-start",
|
|
@@ -1979,9 +2424,9 @@ const style$2 = {
|
|
|
1979
2424
|
fontSize: "var(--sl-font-size-medium)",
|
|
1980
2425
|
},
|
|
1981
2426
|
};
|
|
1982
|
-
const sheet$
|
|
1983
|
-
const styleString$
|
|
1984
|
-
const vanillaStyle$
|
|
2427
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2428
|
+
const styleString$3 = sheet$3.toString();
|
|
2429
|
+
const vanillaStyle$2 = `
|
|
1985
2430
|
:host{
|
|
1986
2431
|
display: block;
|
|
1987
2432
|
}
|
|
@@ -2002,21 +2447,21 @@ const vanillaStyle$1 = `
|
|
|
2002
2447
|
const DocusignFormView = (props) => {
|
|
2003
2448
|
var _a;
|
|
2004
2449
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2005
|
-
const { classes } = sheet$
|
|
2450
|
+
const { classes } = sheet$3;
|
|
2006
2451
|
return (index.h("div", { class: classes.Container },
|
|
2007
2452
|
index.h("style", { type: "text/css" },
|
|
2008
|
-
styleString$
|
|
2009
|
-
vanillaStyle$
|
|
2453
|
+
styleString$3,
|
|
2454
|
+
vanillaStyle$2),
|
|
2010
2455
|
index.h("div", { class: classes.TextContainer },
|
|
2011
2456
|
index.h("div", null,
|
|
2012
2457
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2013
2458
|
id: "formStep",
|
|
2014
2459
|
defaultMessage: text.formStep,
|
|
2015
|
-
}, { step: states.step, count:
|
|
2460
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
2016
2461
|
index.h("h3", null, text.taxForm),
|
|
2017
2462
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2018
2463
|
states.loadingError && (index.h("div", null,
|
|
2019
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2464
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2020
2465
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2021
2466
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2022
2467
|
index.h("br", null),
|
|
@@ -2026,7 +2471,7 @@ const DocusignFormView = (props) => {
|
|
|
2026
2471
|
}, {
|
|
2027
2472
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2028
2473
|
})))),
|
|
2029
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
2474
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2030
2475
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2031
2476
|
index.h("strong", null, text.error.generalTitle),
|
|
2032
2477
|
index.h("br", null),
|
|
@@ -2197,7 +2642,7 @@ const DocusignForm = class {
|
|
|
2197
2642
|
get el() { return index.getElement(this); }
|
|
2198
2643
|
};
|
|
2199
2644
|
function useDocusignFormDemo(props) {
|
|
2200
|
-
const setStep = index_module.En(
|
|
2645
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2201
2646
|
return cjs.cjs({
|
|
2202
2647
|
text: props.getTextProps(),
|
|
2203
2648
|
states: {
|
|
@@ -2246,7 +2691,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2246
2691
|
} }, index.h("span", null, "Placeholder for docusign iframe"), index.h("div", { style: { display: "flex", gap: "8px" } }, index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2247
2692
|
};
|
|
2248
2693
|
|
|
2249
|
-
const style$
|
|
2694
|
+
const style$4 = {
|
|
2250
2695
|
FormWrapper: {
|
|
2251
2696
|
display: "flex",
|
|
2252
2697
|
justifyContent: "flex-start",
|
|
@@ -2378,9 +2823,9 @@ const style$3 = {
|
|
|
2378
2823
|
},
|
|
2379
2824
|
},
|
|
2380
2825
|
};
|
|
2381
|
-
const sheet$
|
|
2382
|
-
const styleString$
|
|
2383
|
-
const vanillaStyle$
|
|
2826
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
2827
|
+
const styleString$4 = sheet$4.toString();
|
|
2828
|
+
const vanillaStyle$3 = `
|
|
2384
2829
|
:host{
|
|
2385
2830
|
display: block;
|
|
2386
2831
|
}
|
|
@@ -2407,11 +2852,11 @@ const vanillaStyle$2 = `
|
|
|
2407
2852
|
const IndirectTaxFormView = (props) => {
|
|
2408
2853
|
var _a;
|
|
2409
2854
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2410
|
-
const { classes } = sheet$
|
|
2855
|
+
const { classes } = sheet$4;
|
|
2411
2856
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2412
2857
|
index.h("style", { type: "text/css" },
|
|
2413
|
-
styleString$
|
|
2414
|
-
vanillaStyle$
|
|
2858
|
+
styleString$4,
|
|
2859
|
+
vanillaStyle$3),
|
|
2415
2860
|
index.h("div", { class: classes.TextContainer },
|
|
2416
2861
|
index.h("div", null,
|
|
2417
2862
|
!states.hideSteps && (index.h("p", null,
|
|
@@ -2419,12 +2864,12 @@ const IndirectTaxFormView = (props) => {
|
|
|
2419
2864
|
global.intl.formatMessage({
|
|
2420
2865
|
id: "formStep",
|
|
2421
2866
|
defaultMessage: text.formStep,
|
|
2422
|
-
}, { step: states.step, count:
|
|
2867
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
2423
2868
|
index.h("h3", null, text.indirectTax),
|
|
2424
2869
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2425
2870
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2426
2871
|
states.loadingError && (index.h("div", null,
|
|
2427
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2872
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
|
|
2428
2873
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2429
2874
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2430
2875
|
index.h("br", null),
|
|
@@ -2434,7 +2879,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2434
2879
|
}, {
|
|
2435
2880
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2436
2881
|
})))),
|
|
2437
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
2882
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
|
|
2438
2883
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2439
2884
|
index.h("strong", null, text.error.generalTitle),
|
|
2440
2885
|
index.h("br", null),
|
|
@@ -2444,7 +2889,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2444
2889
|
}, {
|
|
2445
2890
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2446
2891
|
}))),
|
|
2447
|
-
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
2892
|
+
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2448
2893
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2449
2894
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2450
2895
|
index.h("br", null),
|
|
@@ -2522,14 +2967,14 @@ function useIndirectTaxForm(props) {
|
|
|
2522
2967
|
const user = index_module.J();
|
|
2523
2968
|
const locale = index_module.L();
|
|
2524
2969
|
const formRef = stencilHooks_module.useRef(null);
|
|
2525
|
-
const context = index_module.Fn(
|
|
2526
|
-
const [step, setStep] = index_module.Pn(
|
|
2970
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2971
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2527
2972
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2528
|
-
const userForm = index_module.Fn(
|
|
2529
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(
|
|
2530
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(
|
|
2973
|
+
const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
|
|
2974
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2975
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
|
|
2531
2976
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2532
|
-
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) =>
|
|
2977
|
+
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2533
2978
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
2534
2979
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
2535
2980
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
@@ -2644,7 +3089,7 @@ function useIndirectTaxForm(props) {
|
|
|
2644
3089
|
await refetch();
|
|
2645
3090
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2646
3091
|
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
2647
|
-
const hasValidCurrentDocument =
|
|
3092
|
+
const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
2648
3093
|
// Fire form change event
|
|
2649
3094
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2650
3095
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
@@ -2699,10 +3144,10 @@ function useIndirectTaxForm(props) {
|
|
|
2699
3144
|
})),
|
|
2700
3145
|
},
|
|
2701
3146
|
data: {
|
|
2702
|
-
esRegions:
|
|
3147
|
+
esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
2703
3148
|
countries: filteredCountries,
|
|
2704
3149
|
allCountries: _countries,
|
|
2705
|
-
provinces:
|
|
3150
|
+
provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
|
|
2706
3151
|
},
|
|
2707
3152
|
text: props.getTextProps(),
|
|
2708
3153
|
refs: {
|
|
@@ -2904,7 +3349,7 @@ const IndirectTaxForm = class {
|
|
|
2904
3349
|
const props = index_module.isDemo()
|
|
2905
3350
|
? useDemoIndirectTaxForm(this)
|
|
2906
3351
|
: useIndirectTaxForm(this);
|
|
2907
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(
|
|
3352
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2908
3353
|
hide: props.states.formState.checked !== "otherRegion",
|
|
2909
3354
|
disabled: props.states.disabled || props.states.isPartner,
|
|
2910
3355
|
formState: props.slotProps.formState,
|
|
@@ -2922,8 +3367,8 @@ const IndirectTaxForm = class {
|
|
|
2922
3367
|
}
|
|
2923
3368
|
};
|
|
2924
3369
|
function useDemoIndirectTaxForm(props) {
|
|
2925
|
-
const setStep = index_module.En(
|
|
2926
|
-
const [option, setOption] = stencilHooks_module.useState(
|
|
3370
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
3371
|
+
const [option, setOption] = stencilHooks_module.useState(null);
|
|
2927
3372
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2928
3373
|
return cjs.cjs({
|
|
2929
3374
|
states: {
|
|
@@ -2963,7 +3408,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2963
3408
|
setCountrySearch: (c) => console.log(c),
|
|
2964
3409
|
},
|
|
2965
3410
|
data: {
|
|
2966
|
-
esRegions:
|
|
3411
|
+
esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
2967
3412
|
countries: [
|
|
2968
3413
|
{
|
|
2969
3414
|
countryCode: "CA",
|
|
@@ -2982,7 +3427,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2982
3427
|
displayName: "United States",
|
|
2983
3428
|
},
|
|
2984
3429
|
],
|
|
2985
|
-
provinces:
|
|
3430
|
+
provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
|
|
2986
3431
|
},
|
|
2987
3432
|
text: props.getTextProps(),
|
|
2988
3433
|
refs: {
|
|
@@ -3215,7 +3660,7 @@ const InvoiceTable = class {
|
|
|
3215
3660
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3216
3661
|
: useInvoiceTable(this, empty, loading);
|
|
3217
3662
|
reRender.useRequestRerender([this.perPage]);
|
|
3218
|
-
return (index.h(
|
|
3663
|
+
return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3219
3664
|
}
|
|
3220
3665
|
};
|
|
3221
3666
|
function EmptySlot(props) {
|
|
@@ -3317,6 +3762,18 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3317
3762
|
return demoProps;
|
|
3318
3763
|
}
|
|
3319
3764
|
|
|
3765
|
+
const InvoiceTableDataCell = class {
|
|
3766
|
+
constructor(hostRef) {
|
|
3767
|
+
index.registerInstance(this, hostRef);
|
|
3768
|
+
this.ignored = true;
|
|
3769
|
+
stencilHooks_module.h$1(this);
|
|
3770
|
+
}
|
|
3771
|
+
disconnectedCallback() { }
|
|
3772
|
+
render() {
|
|
3773
|
+
return this.data;
|
|
3774
|
+
}
|
|
3775
|
+
};
|
|
3776
|
+
|
|
3320
3777
|
const InvoiceTableDataColumn = class {
|
|
3321
3778
|
constructor(hostRef) {
|
|
3322
3779
|
index.registerInstance(this, hostRef);
|
|
@@ -3335,6 +3792,23 @@ const InvoiceTableDataColumn = class {
|
|
|
3335
3792
|
}
|
|
3336
3793
|
};
|
|
3337
3794
|
|
|
3795
|
+
const RewardTableDateCell = class {
|
|
3796
|
+
constructor(hostRef) {
|
|
3797
|
+
index.registerInstance(this, hostRef);
|
|
3798
|
+
this.ignored = true;
|
|
3799
|
+
this.locale = "en";
|
|
3800
|
+
stencilHooks_module.h$1(this);
|
|
3801
|
+
}
|
|
3802
|
+
disconnectedCallback() { }
|
|
3803
|
+
render() {
|
|
3804
|
+
var _a, _b;
|
|
3805
|
+
const date = !this.date
|
|
3806
|
+
? "-"
|
|
3807
|
+
: (_b = (_a = luxon.luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(utils.luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.luxon.DateTime.DATE_MED);
|
|
3808
|
+
return date;
|
|
3809
|
+
}
|
|
3810
|
+
};
|
|
3811
|
+
|
|
3338
3812
|
const InvoiceTableDateColumn = class {
|
|
3339
3813
|
constructor(hostRef) {
|
|
3340
3814
|
index.registerInstance(this, hostRef);
|
|
@@ -3353,6 +3827,21 @@ const InvoiceTableDateColumn = class {
|
|
|
3353
3827
|
}
|
|
3354
3828
|
};
|
|
3355
3829
|
|
|
3830
|
+
const InvoiceTableDownloadCell = class {
|
|
3831
|
+
constructor(hostRef) {
|
|
3832
|
+
index.registerInstance(this, hostRef);
|
|
3833
|
+
this.ignored = true;
|
|
3834
|
+
stencilHooks_module.h$1(this);
|
|
3835
|
+
}
|
|
3836
|
+
disconnectedCallback() { }
|
|
3837
|
+
render() {
|
|
3838
|
+
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3839
|
+
cursor: pointer;
|
|
3840
|
+
}`;
|
|
3841
|
+
return (index.h(index.Host, null, index.h("style", null, vanillaStyle), !!this.downloadUrl && (index.h("a", { href: this.downloadUrl, target: "_blank" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "var(--sqm-text-subdued)" }), index.h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "var(--sqm-text-subdued)" }))))));
|
|
3842
|
+
}
|
|
3843
|
+
};
|
|
3844
|
+
|
|
3356
3845
|
const InvoiceTableGenericColumn = class {
|
|
3357
3846
|
constructor(hostRef) {
|
|
3358
3847
|
index.registerInstance(this, hostRef);
|
|
@@ -3375,7 +3864,7 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
3375
3864
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
|
|
3376
3865
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
|
|
3377
3866
|
|
|
3378
|
-
const style$
|
|
3867
|
+
const style$5 = {
|
|
3379
3868
|
CardContainer: {
|
|
3380
3869
|
display: "grid",
|
|
3381
3870
|
gridTemplateColumns: "1fr",
|
|
@@ -3525,7 +4014,7 @@ const style$4 = {
|
|
|
3525
4014
|
},
|
|
3526
4015
|
};
|
|
3527
4016
|
function PayoutDetailsCardView(props) {
|
|
3528
|
-
const sheet = JSS.createStyleSheet(style$
|
|
4017
|
+
const sheet = JSS.createStyleSheet(style$5);
|
|
3529
4018
|
const styleString = sheet.toString();
|
|
3530
4019
|
const { classes } = sheet;
|
|
3531
4020
|
const { states, text } = props;
|
|
@@ -3577,8 +4066,8 @@ function PayoutDetailsCardView(props) {
|
|
|
3577
4066
|
|
|
3578
4067
|
function usePayoutDetailsCard(props) {
|
|
3579
4068
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3580
|
-
const { data
|
|
3581
|
-
const publisher = (_b = (_a = data
|
|
4069
|
+
const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
4070
|
+
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
3582
4071
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3583
4072
|
var _a;
|
|
3584
4073
|
const currentDay = luxon.luxon.DateTime.now().day;
|
|
@@ -3656,10 +4145,6 @@ const PayoutDetailsCard = class {
|
|
|
3656
4145
|
* @uiName Payout missing information subtext
|
|
3657
4146
|
*/
|
|
3658
4147
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3659
|
-
/**
|
|
3660
|
-
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
3661
|
-
*/
|
|
3662
|
-
this.stateController = "{}";
|
|
3663
4148
|
stencilHooks_module.h$1(this);
|
|
3664
4149
|
}
|
|
3665
4150
|
disconnectedCallback() { }
|
|
@@ -3697,19 +4182,1232 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
3697
4182
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3698
4183
|
}
|
|
3699
4184
|
|
|
3700
|
-
const
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
"
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
4185
|
+
const TableCell = class {
|
|
4186
|
+
constructor(hostRef) {
|
|
4187
|
+
index.registerInstance(this, hostRef);
|
|
4188
|
+
/** @uiName Column span */
|
|
4189
|
+
this.colspan = 1;
|
|
4190
|
+
/** @uiName Padding */
|
|
4191
|
+
this.padding = "15px 10px";
|
|
4192
|
+
}
|
|
4193
|
+
render() {
|
|
4194
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
4195
|
+
}
|
|
4196
|
+
};
|
|
4197
|
+
|
|
4198
|
+
const TableRow = class {
|
|
4199
|
+
constructor(hostRef) {
|
|
4200
|
+
index.registerInstance(this, hostRef);
|
|
4201
|
+
/**
|
|
4202
|
+
* @uiName Border
|
|
4203
|
+
*/
|
|
4204
|
+
this.border = "1px solid #EAEAEA";
|
|
4205
|
+
}
|
|
4206
|
+
render() {
|
|
4207
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
4208
|
+
}
|
|
4209
|
+
};
|
|
4210
|
+
|
|
4211
|
+
function getCurrentStep(user) {
|
|
4212
|
+
var _a, _b;
|
|
4213
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4214
|
+
return "/1";
|
|
4215
|
+
}
|
|
4216
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
4217
|
+
// If they do have a required document, look at current document
|
|
4218
|
+
if (requiredTaxDocumentType && !currentTaxDocument)
|
|
4219
|
+
return "/3";
|
|
4220
|
+
if (!withdrawalSettings && brandedSignup)
|
|
4221
|
+
return "/4";
|
|
4222
|
+
return "/dashboard";
|
|
4223
|
+
}
|
|
4224
|
+
function useTaxAndCash() {
|
|
4225
|
+
var _a, _b, _c, _d, _e;
|
|
4226
|
+
const host = index_module._();
|
|
4227
|
+
const user = index_module.J();
|
|
4228
|
+
const locale = index_module.L();
|
|
4229
|
+
// State for current step of form
|
|
4230
|
+
const [step, setStep] = index_module.In({
|
|
4231
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4232
|
+
initialValue: "/loading",
|
|
4233
|
+
});
|
|
4234
|
+
// State for when to hide steps, or override certain actions
|
|
4235
|
+
const [context, _setContext] = index_module.In({
|
|
4236
|
+
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4237
|
+
initialValue: {},
|
|
4238
|
+
});
|
|
4239
|
+
// State to carry user form information into step 2
|
|
4240
|
+
const [userFormContext, _setUserFormContext] = index_module.In({
|
|
4241
|
+
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4242
|
+
initialValue: {
|
|
4243
|
+
firstName: undefined,
|
|
4244
|
+
lastName: undefined,
|
|
4245
|
+
email: undefined,
|
|
4246
|
+
countryCode: undefined,
|
|
4247
|
+
currency: undefined,
|
|
4248
|
+
},
|
|
4249
|
+
});
|
|
4250
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.In({
|
|
4251
|
+
namespace: CURRENCIES_NAMESPACE,
|
|
4252
|
+
initialValue: [],
|
|
4253
|
+
});
|
|
4254
|
+
const [_countriesContext, _setCountriesContext] = index_module.In({
|
|
4255
|
+
namespace: COUNTRIES_NAMESPACE,
|
|
4256
|
+
initialValue: [],
|
|
4257
|
+
});
|
|
4258
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
|
|
4259
|
+
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4260
|
+
initialValue: [],
|
|
4261
|
+
});
|
|
4262
|
+
const { data, errors } = index_module.Sn({
|
|
4263
|
+
namespace: USER_QUERY_NAMESPACE,
|
|
4264
|
+
query: GET_USER,
|
|
4265
|
+
skip: !user,
|
|
4266
|
+
options: {
|
|
4267
|
+
batch: false,
|
|
4268
|
+
},
|
|
4269
|
+
});
|
|
4270
|
+
const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
|
|
4271
|
+
userFormContext.countryCode;
|
|
4272
|
+
index_module.Sn({
|
|
4273
|
+
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4274
|
+
query: GET_COUNTRIES,
|
|
4275
|
+
skip: !user,
|
|
4276
|
+
});
|
|
4277
|
+
const { data: financeNetworkData, refetch } = index_module.Sn({
|
|
4278
|
+
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4279
|
+
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4280
|
+
skip: !user,
|
|
4281
|
+
variables: {
|
|
4282
|
+
filter: getFinanceNetworkFilter(),
|
|
4283
|
+
},
|
|
4284
|
+
});
|
|
4285
|
+
const { data: currenciesData } = index_module.Sn({
|
|
4286
|
+
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4287
|
+
query: GET_CURRENCIES,
|
|
4288
|
+
skip: !user,
|
|
4289
|
+
variables: {
|
|
4290
|
+
locale,
|
|
4291
|
+
},
|
|
4292
|
+
});
|
|
4293
|
+
const supportedCurrencies = stencilHooks_module.useMemo(() => {
|
|
4294
|
+
var _a, _b;
|
|
4295
|
+
// Filter out any currencies not supported by finance network settings
|
|
4296
|
+
const allValidCurrencies = (_b = (_a = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.reduce((agg, settings) => {
|
|
4297
|
+
var _a, _b;
|
|
4298
|
+
const currency = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((currency) => currency.currencyCode === settings.currency);
|
|
4299
|
+
// Currency not in supported list
|
|
4300
|
+
if (!currency)
|
|
4301
|
+
return agg;
|
|
4302
|
+
// Currency already added to list
|
|
4303
|
+
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4304
|
+
return agg;
|
|
4305
|
+
// Currency not supported by selected country
|
|
4306
|
+
if (userFormContext.countryCode &&
|
|
4307
|
+
settings.countryCode !== countryCode)
|
|
4308
|
+
return agg;
|
|
4309
|
+
return [...agg, currency];
|
|
4310
|
+
}, []);
|
|
4311
|
+
return allValidCurrencies;
|
|
4312
|
+
}, [financeNetworkData, countryCode]);
|
|
4313
|
+
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4314
|
+
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4315
|
+
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4316
|
+
// filter out any duplicate countries and null countryCode
|
|
4317
|
+
const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4318
|
+
const _topCountries = ["CA", "GB", "US"];
|
|
4319
|
+
const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
|
|
4320
|
+
.map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
|
|
4321
|
+
.sort(sortByName)
|
|
4322
|
+
.reduce((prev, countryObj) => {
|
|
4323
|
+
if (_topCountries.includes(countryObj.countryCode))
|
|
4324
|
+
return [countryObj, ...prev];
|
|
4325
|
+
return [...prev, countryObj];
|
|
4326
|
+
}, []), [availableCountries]);
|
|
4327
|
+
stencilHooks_module.useEffect(() => {
|
|
4328
|
+
if (sortedCountries)
|
|
4329
|
+
setSortedCountriesContext(sortedCountries);
|
|
4330
|
+
}, [sortedCountries]);
|
|
4331
|
+
stencilHooks_module.useEffect(() => {
|
|
4332
|
+
if (supportedCurrencies)
|
|
4333
|
+
setCurrenciesContext(supportedCurrencies);
|
|
4334
|
+
}, [supportedCurrencies]);
|
|
4335
|
+
stencilHooks_module.useEffect(() => {
|
|
4336
|
+
if (errors) {
|
|
4337
|
+
setStep("/error");
|
|
4338
|
+
return;
|
|
4339
|
+
}
|
|
4340
|
+
if (!host || !user)
|
|
4341
|
+
return;
|
|
4342
|
+
if (data) {
|
|
4343
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4344
|
+
if (!user || step !== "/loading")
|
|
4345
|
+
return;
|
|
4346
|
+
const currentStep = getCurrentStep(user);
|
|
4347
|
+
setStep(currentStep);
|
|
4348
|
+
}
|
|
4349
|
+
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4350
|
+
function getFinanceNetworkFilter() {
|
|
4351
|
+
var _a, _b, _c;
|
|
4352
|
+
if (step === "/1")
|
|
4353
|
+
return {};
|
|
4354
|
+
if (step === "/4")
|
|
4355
|
+
return { currency_eq: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency };
|
|
4356
|
+
if (countryCode)
|
|
4357
|
+
return {
|
|
4358
|
+
countryCode_eq: countryCode,
|
|
4359
|
+
};
|
|
4360
|
+
return {};
|
|
4361
|
+
}
|
|
4362
|
+
return {
|
|
4363
|
+
step,
|
|
4364
|
+
setStep,
|
|
4365
|
+
context,
|
|
4366
|
+
namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
|
|
4367
|
+
loading: step === "/loading",
|
|
4368
|
+
};
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4371
|
+
const TaxAndCashMonolith = class {
|
|
4372
|
+
constructor(hostRef) {
|
|
4373
|
+
index.registerInstance(this, hostRef);
|
|
4374
|
+
/*---------------------------------------------------------------------------------
|
|
4375
|
+
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4376
|
+
-----------------------------------------------------------------------------------*/
|
|
4377
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4378
|
+
STEP 1 PROPS:
|
|
4379
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4380
|
+
/**
|
|
4381
|
+
* @uiName First name field label
|
|
4382
|
+
* @uiGroup Step 1 Properties
|
|
4383
|
+
*/
|
|
4384
|
+
this.step1_firstName = "First name";
|
|
4385
|
+
/**
|
|
4386
|
+
* @uiName Last name field label
|
|
4387
|
+
* @uiGroup Step 1 Properties
|
|
4388
|
+
*/
|
|
4389
|
+
this.step1_lastName = "Last name";
|
|
4390
|
+
/**
|
|
4391
|
+
* @uiName Email field label
|
|
4392
|
+
* @uiGroup Step 1 Properties
|
|
4393
|
+
*/
|
|
4394
|
+
this.step1_email = "Email";
|
|
4395
|
+
/**
|
|
4396
|
+
* @uiName Country field label
|
|
4397
|
+
* @uiGroup Step 1 Properties
|
|
4398
|
+
*/
|
|
4399
|
+
this.step1_country = "Country";
|
|
4400
|
+
/**
|
|
4401
|
+
* @uiName Phone number field label
|
|
4402
|
+
* @uiGroup Step 1 Properties
|
|
4403
|
+
*/
|
|
4404
|
+
this.step1_phoneNumber = "Phone number";
|
|
4405
|
+
/**
|
|
4406
|
+
* @uiName Address field label
|
|
4407
|
+
* @uiGroup Step 1 Properties
|
|
4408
|
+
*/
|
|
4409
|
+
this.step1_address = "Address";
|
|
4410
|
+
/**
|
|
4411
|
+
* @uiName City field label
|
|
4412
|
+
* @uiGroup Step 1 Properties
|
|
4413
|
+
*/
|
|
4414
|
+
this.step1_city = "City";
|
|
4415
|
+
/**
|
|
4416
|
+
* @uiName State field label for states
|
|
4417
|
+
* @uiGroup Step 1 Properties
|
|
4418
|
+
*/
|
|
4419
|
+
this.step1_state = "State";
|
|
4420
|
+
/**
|
|
4421
|
+
* @uiName State field label for provinces
|
|
4422
|
+
* @uiGroup Step 1 Properties
|
|
4423
|
+
*/
|
|
4424
|
+
this.step1_province = "Province";
|
|
4425
|
+
/**
|
|
4426
|
+
* @uiName State field label for regions
|
|
4427
|
+
* @uiGroup Step 1 Properties
|
|
4428
|
+
*/
|
|
4429
|
+
this.step1_region = "Region";
|
|
4430
|
+
/**
|
|
4431
|
+
* @uiName Postal code field label
|
|
4432
|
+
* @uiGroup Step 1 Properties
|
|
4433
|
+
*/
|
|
4434
|
+
this.step1_postalCode = "Postal code";
|
|
4435
|
+
/**
|
|
4436
|
+
* @uiName Currency field label
|
|
4437
|
+
* @uiGroup Step 1 Properties
|
|
4438
|
+
*/
|
|
4439
|
+
this.step1_currency = "Currency";
|
|
4440
|
+
/**
|
|
4441
|
+
* @uiName Currency field help text
|
|
4442
|
+
* @uiGroup Step 1 Properties
|
|
4443
|
+
*/
|
|
4444
|
+
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4445
|
+
/**
|
|
4446
|
+
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4447
|
+
* @uiName Terms and conditions checkbox
|
|
4448
|
+
* @uiGroup Step 1 Properties
|
|
4449
|
+
*/
|
|
4450
|
+
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4451
|
+
/**
|
|
4452
|
+
* @uiName Step 1 title
|
|
4453
|
+
* @uiGroup Step 1 Properties
|
|
4454
|
+
*/
|
|
4455
|
+
this.step1_personalInformation = "Personal Information";
|
|
4456
|
+
/**
|
|
4457
|
+
* The link text that appears in the terms and conditions checkbox
|
|
4458
|
+
* @uiName Terms and conditions text
|
|
4459
|
+
* @uiGroup Step 1 Properties
|
|
4460
|
+
* @uiWidget textArea
|
|
4461
|
+
*/
|
|
4462
|
+
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4463
|
+
/**
|
|
4464
|
+
* The link that appears in the terms and conditions checkbox
|
|
4465
|
+
* @uiName Terms and conditions link
|
|
4466
|
+
* @uiGroup Step 1 Properties
|
|
4467
|
+
*/
|
|
4468
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4469
|
+
/**
|
|
4470
|
+
* Placeholder text displayed in the currency search dropdown
|
|
4471
|
+
* @uiName Currency field placeholder text
|
|
4472
|
+
* @uiGroup Step 1 Properties
|
|
4473
|
+
*/
|
|
4474
|
+
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4475
|
+
/**
|
|
4476
|
+
|
|
4477
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4478
|
+
STEP 2 PROPS:
|
|
4479
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4480
|
+
/**
|
|
4481
|
+
* @uiName Step 2 title
|
|
4482
|
+
* @uiGroup Step 2 Properties
|
|
4483
|
+
*/
|
|
4484
|
+
this.step2_indirectTax = "Indirect Tax";
|
|
4485
|
+
/**
|
|
4486
|
+
* Displayed under the title of this step.
|
|
4487
|
+
* @uiName Step 2 description
|
|
4488
|
+
* @uiGroup Step 2 Properties
|
|
4489
|
+
* @uiWidget textArea
|
|
4490
|
+
*/
|
|
4491
|
+
this.step2_indirectTaxDescription = "Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.";
|
|
4492
|
+
/**
|
|
4493
|
+
* Displayed with indirect tax registration options.
|
|
4494
|
+
* @uiName Indirect tax details section title
|
|
4495
|
+
* @uiGroup Step 2 Properties
|
|
4496
|
+
*/
|
|
4497
|
+
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4498
|
+
/**
|
|
4499
|
+
* @uiName Registered for indirect tax option
|
|
4500
|
+
* @uiGroup Step 2 Properties
|
|
4501
|
+
* @uiWidget textArea
|
|
4502
|
+
*
|
|
4503
|
+
*/
|
|
4504
|
+
this.step2_otherRegion = "Registered for indirect tax";
|
|
4505
|
+
/**
|
|
4506
|
+
* Selecting this option will display fields to enter indirect tax details.
|
|
4507
|
+
* @uiName Registered for indirect tax option description
|
|
4508
|
+
* @uiGroup Step 2 Properties
|
|
4509
|
+
*/
|
|
4510
|
+
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4511
|
+
/**
|
|
4512
|
+
* @uiName Not registered for indirect tax option
|
|
4513
|
+
* @uiGroup Step 2 Properties
|
|
4514
|
+
* @uiWidget textArea
|
|
4515
|
+
*/
|
|
4516
|
+
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4517
|
+
/**
|
|
4518
|
+
* Participants based in the US are considered not registered.
|
|
4519
|
+
* @uiName Not registered for indirect tax option description
|
|
4520
|
+
* @uiGroup Step 2 Properties
|
|
4521
|
+
*/
|
|
4522
|
+
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4523
|
+
/**
|
|
4524
|
+
* @uiName Region of indirect tax field label
|
|
4525
|
+
* @uiGroup Step 2 Properties
|
|
4526
|
+
*/
|
|
4527
|
+
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4528
|
+
/**
|
|
4529
|
+
* @uiName Indirect tax number field label
|
|
4530
|
+
* @uiGroup Step 2 Properties
|
|
4531
|
+
*/
|
|
4532
|
+
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4533
|
+
/**
|
|
4534
|
+
* @uiName Province field label
|
|
4535
|
+
* @uiGroup Step 2 Properties
|
|
4536
|
+
*/
|
|
4537
|
+
this.step2_province = "Province";
|
|
4538
|
+
/**
|
|
4539
|
+
* @uiName Missing indirect tax number error message
|
|
4540
|
+
* @uiGroup Step 2 Properties
|
|
4541
|
+
*/
|
|
4542
|
+
this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
|
|
4543
|
+
/**
|
|
4544
|
+
* Displayed to participants registered for QST.
|
|
4545
|
+
* @uiName QST number field label
|
|
4546
|
+
* @uiGroup Step 2 Properties
|
|
4547
|
+
*/
|
|
4548
|
+
this.step2_qstNumber = "QST number";
|
|
4549
|
+
/**
|
|
4550
|
+
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4551
|
+
* @uiName QST tax checkbox
|
|
4552
|
+
* @uiGroup Step 2 Properties
|
|
4553
|
+
*/
|
|
4554
|
+
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4555
|
+
/**
|
|
4556
|
+
* Displayed to participants registered for indirect tax in Spain.
|
|
4557
|
+
* @uiName Spain income tax checkbox
|
|
4558
|
+
* @uiGroup Step 2 Properties
|
|
4559
|
+
* @uiWidget textArea
|
|
4560
|
+
*/
|
|
4561
|
+
this.step2_isRegisteredSubRegionIncomeTax = "I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";
|
|
4562
|
+
/**
|
|
4563
|
+
* Displayed to participants registered in Spain.
|
|
4564
|
+
* @uiName Sub-region of indirect tax field label
|
|
4565
|
+
* @uiGroup Step 2 Properties
|
|
4566
|
+
*/
|
|
4567
|
+
this.step2_subRegion = "Sub-region";
|
|
4568
|
+
/**
|
|
4569
|
+
* @uiName Income tax field label
|
|
4570
|
+
* @uiGroup Step 2 Properties
|
|
4571
|
+
*/
|
|
4572
|
+
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4573
|
+
/**
|
|
4574
|
+
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4575
|
+
* @uiName Submission confirmation alert
|
|
4576
|
+
* @uiGroup Step 2 Properties
|
|
4577
|
+
* @uiWidget textArea
|
|
4578
|
+
*/
|
|
4579
|
+
this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";
|
|
4580
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4581
|
+
STEP 3 PROPS:
|
|
4582
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4583
|
+
/**
|
|
4584
|
+
* @uiName Step 3 title
|
|
4585
|
+
* @uiGroup Step 3 Properties
|
|
4586
|
+
*/
|
|
4587
|
+
this.step3_taxForm = "Tax form";
|
|
4588
|
+
/**
|
|
4589
|
+
* Display the type of tax form that the participant must submit.
|
|
4590
|
+
* @uiName Tax form name
|
|
4591
|
+
* @uiGroup Step 3 Properties
|
|
4592
|
+
*/
|
|
4593
|
+
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4594
|
+
/**
|
|
4595
|
+
* @uiName Participant type field label
|
|
4596
|
+
* @uiGroup Step 3 Properties
|
|
4597
|
+
*/
|
|
4598
|
+
this.step3_participantType = "Participant type";
|
|
4599
|
+
/**
|
|
4600
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4601
|
+
* @uiName Business representative participant type label
|
|
4602
|
+
* @uiGroup Step 3 Properties
|
|
4603
|
+
*/
|
|
4604
|
+
this.step3_businessEntity = "I represent a business";
|
|
4605
|
+
/**
|
|
4606
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4607
|
+
* @uiName Individual participant type label
|
|
4608
|
+
* @uiGroup Step 3 Properties
|
|
4609
|
+
*/
|
|
4610
|
+
this.step3_individualParticipant = "I am an individual participant";
|
|
4611
|
+
/**
|
|
4612
|
+
* Displayed at the top of the page to participants based in the US.
|
|
4613
|
+
* @uiName W-9 tax form description
|
|
4614
|
+
* @uiGroup Step 3 Properties
|
|
4615
|
+
* @uiWidget textArea
|
|
4616
|
+
*/
|
|
4617
|
+
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4618
|
+
/**
|
|
4619
|
+
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4620
|
+
* @uiName W-8 BEN tax form description
|
|
4621
|
+
* @uiGroup Step 3 Properties
|
|
4622
|
+
* @uiWidget textArea
|
|
4623
|
+
*/
|
|
4624
|
+
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4625
|
+
/**
|
|
4626
|
+
* Displayed at the top of the page to participants representing a business.
|
|
4627
|
+
* @uiName W-8 BEN-E tax form description
|
|
4628
|
+
* @uiGroup Step 3 Properties
|
|
4629
|
+
* @uiWidget textArea
|
|
4630
|
+
*/
|
|
4631
|
+
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4632
|
+
/**
|
|
4633
|
+
* This appears inside the Docusign frame.
|
|
4634
|
+
* @uiName Docusign session expired message
|
|
4635
|
+
* @uiGroup Step 3 Properties
|
|
4636
|
+
* @uiWidget textArea
|
|
4637
|
+
*/
|
|
4638
|
+
this.step3_docusignExpired = "For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.";
|
|
4639
|
+
/**
|
|
4640
|
+
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4641
|
+
* @uiName Docusign timed session message
|
|
4642
|
+
* @uiGroup Step 3 Properties
|
|
4643
|
+
* @uiWidget textArea
|
|
4644
|
+
*/
|
|
4645
|
+
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4646
|
+
/**
|
|
4647
|
+
* This appears inside the Docusign frame.
|
|
4648
|
+
* @uiName Docusign form error message
|
|
4649
|
+
* @uiGroup Step 3 Properties
|
|
4650
|
+
* @uiWidget textArea
|
|
4651
|
+
*/
|
|
4652
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4653
|
+
/**
|
|
4654
|
+
* @uiName Refresh page button label
|
|
4655
|
+
* @uiGroup Step 3 Properties
|
|
4656
|
+
*/
|
|
4657
|
+
this.step3_refreshButton = "Refresh Page";
|
|
4658
|
+
/**
|
|
4659
|
+
* @uiName Exit button text
|
|
4660
|
+
* @uiGroup Step 3 Properties
|
|
4661
|
+
*/
|
|
4662
|
+
this.step3_exitButton = "Exit";
|
|
4663
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4664
|
+
STEP 4 PROPS:
|
|
4665
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4666
|
+
/**
|
|
4667
|
+
* @uiName Step 4 title
|
|
4668
|
+
* @uiGroup Step 4 Properties
|
|
4669
|
+
*/
|
|
4670
|
+
this.step4_taxAndPayouts = "Payouts";
|
|
4671
|
+
/**
|
|
4672
|
+
* @uiName Direct to bank payout option
|
|
4673
|
+
* @uiGroup Step 4 Properties
|
|
4674
|
+
*/
|
|
4675
|
+
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4676
|
+
/**
|
|
4677
|
+
* @uiName PayPal payout option
|
|
4678
|
+
* @uiGroup Step 4 Properties
|
|
4679
|
+
*/
|
|
4680
|
+
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4681
|
+
/**
|
|
4682
|
+
* @uiName Threshold balance payment schedule option
|
|
4683
|
+
* @uiGroup Step 4 Properties
|
|
4684
|
+
*/
|
|
4685
|
+
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4686
|
+
/**
|
|
4687
|
+
* @uiName Fixed day payment schedule option
|
|
4688
|
+
* @uiGroup Step 4 Properties
|
|
4689
|
+
*/
|
|
4690
|
+
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4691
|
+
/**
|
|
4692
|
+
* Let the participant choose what day of the month they’ll get paid
|
|
4693
|
+
* @uiName Payment day field label
|
|
4694
|
+
* @uiGroup Step 4 Properties
|
|
4695
|
+
*/
|
|
4696
|
+
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4697
|
+
/**
|
|
4698
|
+
* Participant use this field to select the balance at which they want to be paid
|
|
4699
|
+
* @uiName Payment threshold field label
|
|
4700
|
+
* @uiGroup Step 4 Properties
|
|
4701
|
+
*/
|
|
4702
|
+
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4703
|
+
/**
|
|
4704
|
+
* One of two payment day options
|
|
4705
|
+
* @uiName First of month payday option
|
|
4706
|
+
* @uiGroup Step 4 Properties
|
|
4707
|
+
*/
|
|
4708
|
+
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4709
|
+
/**
|
|
4710
|
+
* One of two payment day options
|
|
4711
|
+
* @uiName Fifteenth of month payday option
|
|
4712
|
+
* @uiGroup Step 4 Properties
|
|
4713
|
+
*/
|
|
4714
|
+
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4715
|
+
/**
|
|
4716
|
+
* @uiName Payment method section header
|
|
4717
|
+
* @uiGroup Step 4 Properties
|
|
4718
|
+
*/
|
|
4719
|
+
this.step4_paymentMethod = "Payment method";
|
|
4720
|
+
/**
|
|
4721
|
+
* @uiName Payment schedule section header
|
|
4722
|
+
* @uiGroup Step 4 Properties
|
|
4723
|
+
*/
|
|
4724
|
+
this.step4_paymentSchedule = "Payment schedule";
|
|
4725
|
+
/**
|
|
4726
|
+
* @uiName Payment method section description
|
|
4727
|
+
* @uiGroup Step 4 Properties
|
|
4728
|
+
*/
|
|
4729
|
+
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4730
|
+
/**
|
|
4731
|
+
* Displayed to participants who choose PayPal as their payout method
|
|
4732
|
+
* @uiName PayPal email field label
|
|
4733
|
+
* @uiGroup Step 4 Properties
|
|
4734
|
+
*/
|
|
4735
|
+
this.step4_payPalInputLabel = "PayPal email";
|
|
4736
|
+
/**
|
|
4737
|
+
* @uiName Bank country field label
|
|
4738
|
+
* @uiGroup Step 4 Properties
|
|
4739
|
+
*/
|
|
4740
|
+
this.step4_bankLocationLabel = "Bank country location";
|
|
4741
|
+
/**
|
|
4742
|
+
* @uiName Beneficiary account field label
|
|
4743
|
+
* @uiGroup Step 4 Properties
|
|
4744
|
+
*/
|
|
4745
|
+
this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
4746
|
+
/**
|
|
4747
|
+
* @uiName Bank account type field label
|
|
4748
|
+
* @uiGroup Step 4 Properties
|
|
4749
|
+
*/
|
|
4750
|
+
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4751
|
+
/**
|
|
4752
|
+
* @uiName Checking account option
|
|
4753
|
+
* @uiGroup Step 4 Properties
|
|
4754
|
+
*/
|
|
4755
|
+
this.step4_checkingSelectItemLabel = "Checking";
|
|
4756
|
+
/**
|
|
4757
|
+
* Label text for the savings account type select item
|
|
4758
|
+
* @uiName Savings account options
|
|
4759
|
+
* @uiGroup Step 4 Properties
|
|
4760
|
+
*/
|
|
4761
|
+
this.step4_savingsSelectItemLabel = "Savings";
|
|
4762
|
+
/**
|
|
4763
|
+
* @uiName Bank account number field label
|
|
4764
|
+
* @uiGroup Step 4 Properties
|
|
4765
|
+
*/
|
|
4766
|
+
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4767
|
+
/**
|
|
4768
|
+
* @uiName IBAN field label
|
|
4769
|
+
* @uiGroup Step 4 Properties
|
|
4770
|
+
*/
|
|
4771
|
+
this.step4_ibanLabel = "IBAN";
|
|
4772
|
+
/**
|
|
4773
|
+
* @uiName SWIFT code field label
|
|
4774
|
+
* @uiGroup Step 4 Properties
|
|
4775
|
+
*/
|
|
4776
|
+
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4777
|
+
/**
|
|
4778
|
+
* @uiName Routing code field label
|
|
4779
|
+
* @uiGroup Step 4 Properties
|
|
4780
|
+
*/
|
|
4781
|
+
this.step4_routingCodeLabel = "{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }";
|
|
4782
|
+
/**
|
|
4783
|
+
* @uiName Bank name field label
|
|
4784
|
+
* @uiGroup Step 4 Properties
|
|
4785
|
+
*/
|
|
4786
|
+
this.step4_bankNameLabel = "Bank name";
|
|
4787
|
+
/**
|
|
4788
|
+
* @uiName Classification entity field label
|
|
4789
|
+
* @uiGroup Step 4 Properties
|
|
4790
|
+
*/
|
|
4791
|
+
this.step4_classificationEntityLabel = "Classification entity";
|
|
4792
|
+
/**
|
|
4793
|
+
* One of three options listed for the classification field
|
|
4794
|
+
* @uiName Business classification option
|
|
4795
|
+
* @uiGroup Step 4 Properties
|
|
4796
|
+
*/
|
|
4797
|
+
this.step4_businessSelectItemLabel = "Business";
|
|
4798
|
+
/**
|
|
4799
|
+
* One of three options listed for the classification field
|
|
4800
|
+
* @uiName Individual classification option
|
|
4801
|
+
* @uiGroup Step 4 Properties
|
|
4802
|
+
*/
|
|
4803
|
+
this.step4_individualSelectItemLabel = "Individual";
|
|
4804
|
+
/**
|
|
4805
|
+
* One of three options listed for the classification field
|
|
4806
|
+
* @uiName Foreign classification option
|
|
4807
|
+
* @uiGroup Step 4 Properties
|
|
4808
|
+
*/
|
|
4809
|
+
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4810
|
+
/**
|
|
4811
|
+
* @uiName Classification CPF field label
|
|
4812
|
+
* @uiGroup Step 4 Properties
|
|
4813
|
+
*/
|
|
4814
|
+
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4815
|
+
/**
|
|
4816
|
+
* @uiName Patronymic name field label
|
|
4817
|
+
* @uiGroup Step 4 Properties
|
|
4818
|
+
*/
|
|
4819
|
+
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4820
|
+
/**
|
|
4821
|
+
* @uiName VO code field label
|
|
4822
|
+
* @uiGroup Step 4 Properties
|
|
4823
|
+
*/
|
|
4824
|
+
this.step4_voCodeLabel = "VO code";
|
|
4825
|
+
/**
|
|
4826
|
+
* @uiName Agency code field label
|
|
4827
|
+
* @uiGroup Step 4 Properties
|
|
4828
|
+
*/
|
|
4829
|
+
this.step4_agencyCodeLabel = "Agency code";
|
|
4830
|
+
/**
|
|
4831
|
+
* @uiName Branch code field label
|
|
4832
|
+
* @uiGroup Step 4 Properties
|
|
4833
|
+
*/
|
|
4834
|
+
this.step4_branchCodeLabel = "Branch code";
|
|
4835
|
+
/**
|
|
4836
|
+
* Label text for the classification input field
|
|
4837
|
+
* @uiName Classification field label
|
|
4838
|
+
* @uiGroup Step 4 Properties
|
|
4839
|
+
*/
|
|
4840
|
+
this.step4_classificationLabel = "Classification";
|
|
4841
|
+
/**
|
|
4842
|
+
* @uiName Taxpayer ID field label
|
|
4843
|
+
* @uiGroup Step 4 Properties
|
|
4844
|
+
*/
|
|
4845
|
+
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4846
|
+
/**
|
|
4847
|
+
* @uiName Bank address field label
|
|
4848
|
+
* @uiGroup Step 4 Properties
|
|
4849
|
+
*/
|
|
4850
|
+
this.step4_bankAddressLabel = "Bank address";
|
|
4851
|
+
/**
|
|
4852
|
+
* @uiName Bank city field label
|
|
4853
|
+
* @uiGroup Step 4 Properties
|
|
4854
|
+
*/
|
|
4855
|
+
this.step4_bankCityLabel = "Bank city";
|
|
4856
|
+
/**
|
|
4857
|
+
* @uiName Bank province/state field label
|
|
4858
|
+
* @uiGroup Step 4 Properties
|
|
4859
|
+
*/
|
|
4860
|
+
this.step4_bankStateLabel = "Bank Province / State";
|
|
4861
|
+
/**
|
|
4862
|
+
* @uiName Bank postal code field label
|
|
4863
|
+
* @uiGroup Step 4 Properties
|
|
4864
|
+
*/
|
|
4865
|
+
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
4866
|
+
/**
|
|
4867
|
+
* Default payment method to the participants’ bank account.
|
|
4868
|
+
* @uiName EFT withdrawal payment method
|
|
4869
|
+
* @uiGroup Step 4 Properties
|
|
4870
|
+
*/
|
|
4871
|
+
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
4872
|
+
/**
|
|
4873
|
+
* @uiName FX Wire Processing fee text
|
|
4874
|
+
* @uiGroup Step 4 Properties
|
|
4875
|
+
*/
|
|
4876
|
+
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4877
|
+
/**
|
|
4878
|
+
* @uiName Text for verify email dialog
|
|
4879
|
+
* @uiGroup Step 4 Properties
|
|
4880
|
+
*/
|
|
4881
|
+
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4882
|
+
/**
|
|
4883
|
+
* @uiName Verify code widget header text
|
|
4884
|
+
* @uiGroup Step 4 Properties
|
|
4885
|
+
*/
|
|
4886
|
+
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4887
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4888
|
+
DASHBOARD PROPS:
|
|
4889
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4890
|
+
/**
|
|
4891
|
+
* @uiName Active tax form badge label
|
|
4892
|
+
* @uiGroup Dashboard Properties
|
|
4893
|
+
*/
|
|
4894
|
+
this.dashboard_statusTextActive = "Active";
|
|
4895
|
+
/**
|
|
4896
|
+
* @uiName Invalid tax form badge label
|
|
4897
|
+
* @uiGroup Dashboard Properties
|
|
4898
|
+
*/
|
|
4899
|
+
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
4900
|
+
/**
|
|
4901
|
+
* Displayed when the participant submitted their form but it is awaiting review.
|
|
4902
|
+
*
|
|
4903
|
+
* @uiName Not verified tax form badge label
|
|
4904
|
+
* @uiGroup Dashboard Properties
|
|
4905
|
+
*/
|
|
4906
|
+
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
4907
|
+
/**
|
|
4908
|
+
* Additional text displayed next to the tax form's status badge
|
|
4909
|
+
*
|
|
4910
|
+
* @uiName Active W-9 description
|
|
4911
|
+
* @uiGroup Dashboard Properties
|
|
4912
|
+
*/
|
|
4913
|
+
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
4914
|
+
/**
|
|
4915
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4916
|
+
*
|
|
4917
|
+
* @uiName Active W-8 description
|
|
4918
|
+
* @uiGroup Dashboard Properties
|
|
4919
|
+
*/
|
|
4920
|
+
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
4921
|
+
/**
|
|
4922
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4923
|
+
*
|
|
4924
|
+
* @uiName Tax form in review description
|
|
4925
|
+
* @uiGroup Dashboard Properties
|
|
4926
|
+
*/
|
|
4927
|
+
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
4928
|
+
/**
|
|
4929
|
+
* Part of the alert displayed at the top of the page.
|
|
4930
|
+
*
|
|
4931
|
+
* @uiName Inactive W-9 error message title
|
|
4932
|
+
* @uiGroup Dashboard Properties
|
|
4933
|
+
* @uiWidget textArea
|
|
4934
|
+
*/
|
|
4935
|
+
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
4936
|
+
/**
|
|
4937
|
+
* Part of the alert displayed at the top of the page.
|
|
4938
|
+
*
|
|
4939
|
+
* @uiName Inactive W-8 error message title
|
|
4940
|
+
* @uiGroup Dashboard Properties
|
|
4941
|
+
* @uiWidget textArea
|
|
4942
|
+
*/
|
|
4943
|
+
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
4944
|
+
/**
|
|
4945
|
+
* Part of the alert displayed at the top of the page.
|
|
4946
|
+
*
|
|
4947
|
+
* @uiName Inactive W-9 error message description
|
|
4948
|
+
* @uiGroup Dashboard Properties
|
|
4949
|
+
* @uiWidget textArea
|
|
4950
|
+
*/
|
|
4951
|
+
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
4952
|
+
/**
|
|
4953
|
+
* Part of the alert displayed at the top of the page.
|
|
4954
|
+
*
|
|
4955
|
+
* @uiName Inactive W-8 error message description
|
|
4956
|
+
* @uiGroup Dashboard Properties
|
|
4957
|
+
*/
|
|
4958
|
+
this.dashboard_taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
|
|
4959
|
+
/**
|
|
4960
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4961
|
+
*
|
|
4962
|
+
* @uiName Invalid tax form description
|
|
4963
|
+
* @uiGroup Dashboard Properties
|
|
4964
|
+
* @uiWidget textArea
|
|
4965
|
+
*/
|
|
4966
|
+
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
4967
|
+
/**
|
|
4968
|
+
* @uiName Payout information section header
|
|
4969
|
+
* @uiGroup Dashboard Properties
|
|
4970
|
+
*/
|
|
4971
|
+
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
4972
|
+
/**
|
|
4973
|
+
* @uiName Tax document section header
|
|
4974
|
+
* @uiGroup Dashboard Properties
|
|
4975
|
+
*/
|
|
4976
|
+
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
4977
|
+
/**
|
|
4978
|
+
* Displayed under the tax document section header.
|
|
4979
|
+
*
|
|
4980
|
+
* @uiName Tax documents section description
|
|
4981
|
+
* @uiGroup Dashboard Properties
|
|
4982
|
+
*/
|
|
4983
|
+
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4984
|
+
/**
|
|
4985
|
+
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4986
|
+
*
|
|
4987
|
+
* @uiName Tax form not required text
|
|
4988
|
+
* @uiGroup Dashboard Properties
|
|
4989
|
+
* @uiWidget textArea
|
|
4990
|
+
*/
|
|
4991
|
+
this.dashboard_noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
|
|
4992
|
+
/**
|
|
4993
|
+
*
|
|
4994
|
+
* @uiName Indirect tax section header
|
|
4995
|
+
* @uiGroup Dashboard Properties
|
|
4996
|
+
*/
|
|
4997
|
+
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
4998
|
+
/**
|
|
4999
|
+
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
5000
|
+
*
|
|
5001
|
+
* @uiName Canadian province of indirect tax
|
|
5002
|
+
* @uiGroup Dashboard Properties
|
|
5003
|
+
*/
|
|
5004
|
+
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
5005
|
+
/**
|
|
5006
|
+
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
5007
|
+
*
|
|
5008
|
+
* @uiName Indirect tax country
|
|
5009
|
+
* @uiGroup Dashboard Properties
|
|
5010
|
+
*/
|
|
5011
|
+
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
5012
|
+
/**
|
|
5013
|
+
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
5014
|
+
*
|
|
5015
|
+
* @uiName Spanish region of indirect tax
|
|
5016
|
+
* @uiGroup Dashboard Properties
|
|
5017
|
+
*/
|
|
5018
|
+
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5019
|
+
/**
|
|
5020
|
+
* @uiName Indirect tax tooltip
|
|
5021
|
+
* @uiGroup Dashboard Properties
|
|
5022
|
+
* @uiWidget textArea
|
|
5023
|
+
*/
|
|
5024
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5025
|
+
/**
|
|
5026
|
+
* Displayed to participants who have submitted their indirect tax information.
|
|
5027
|
+
*
|
|
5028
|
+
* @uiName Indirect tax details
|
|
5029
|
+
* @uiGroup Dashboard Properties
|
|
5030
|
+
*/
|
|
5031
|
+
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5032
|
+
/**
|
|
5033
|
+
* @uiName Submit new tax form button label
|
|
5034
|
+
* @uiGroup Dashboard Properties
|
|
5035
|
+
*/
|
|
5036
|
+
this.dashboard_newFormButton = "Submit new form";
|
|
5037
|
+
/**
|
|
5038
|
+
* @uiName Edit payment info button label
|
|
5039
|
+
* @uiGroup Dashboard Properties
|
|
5040
|
+
*/
|
|
5041
|
+
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5042
|
+
/**
|
|
5043
|
+
* @uiName Not registered for indirect tax text
|
|
5044
|
+
* @uiGroup Dashboard Properties
|
|
5045
|
+
* @uiWidget textArea
|
|
5046
|
+
*/
|
|
5047
|
+
this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
|
|
5048
|
+
/**
|
|
5049
|
+
* Displayed to participants registered in Quebec, Canada.
|
|
5050
|
+
* @uiName QST indirect tax details
|
|
5051
|
+
* @uiGroup Dashboard Properties
|
|
5052
|
+
*/
|
|
5053
|
+
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5054
|
+
/**
|
|
5055
|
+
* @uiName Spain sub-region indirect tax number
|
|
5056
|
+
* @uiGroup Dashboard Properties
|
|
5057
|
+
*/
|
|
5058
|
+
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5059
|
+
/**
|
|
5060
|
+
* @uiName Payout status badge
|
|
5061
|
+
* @uiGroup Dashboard Properties
|
|
5062
|
+
*/
|
|
5063
|
+
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5064
|
+
/**
|
|
5065
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5066
|
+
* @uiName Payout schedule by threshold text
|
|
5067
|
+
* @uiGroup Dashboard Properties
|
|
5068
|
+
*/
|
|
5069
|
+
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5070
|
+
/**
|
|
5071
|
+
* Shown before the participant’s bank account information.
|
|
5072
|
+
* @uiName Bank account field label
|
|
5073
|
+
* @uiGroup Dashboard Properties
|
|
5074
|
+
*/
|
|
5075
|
+
this.dashboard_accountText = "Account";
|
|
5076
|
+
/**
|
|
5077
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5078
|
+
* @uiName Invoice number column title
|
|
5079
|
+
* @uiGroup Dashboard Properties
|
|
5080
|
+
*/
|
|
5081
|
+
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5082
|
+
/**
|
|
5083
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5084
|
+
* @uiName Date column title
|
|
5085
|
+
* @uiGroup Dashboard Properties
|
|
5086
|
+
*/
|
|
5087
|
+
this.dashboard_dateColumnTitle = "Date";
|
|
5088
|
+
/**
|
|
5089
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5090
|
+
* @uiName Earnings column title
|
|
5091
|
+
* @uiGroup Dashboard Properties
|
|
5092
|
+
*/
|
|
5093
|
+
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5094
|
+
/**
|
|
5095
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5096
|
+
* @uiName Indirect tax column title
|
|
5097
|
+
* @uiGroup Dashboard Properties
|
|
5098
|
+
*/
|
|
5099
|
+
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5100
|
+
/**
|
|
5101
|
+
* Displayed under the payout details card.
|
|
5102
|
+
* @uiName Payout from impact text
|
|
5103
|
+
* @uiGroup Dashboard Properties
|
|
5104
|
+
* @uiWidget textArea
|
|
5105
|
+
*/
|
|
5106
|
+
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5107
|
+
/**
|
|
5108
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5109
|
+
* @uiName Earnings after tax column title
|
|
5110
|
+
* @uiGroup Dashboard Properties
|
|
5111
|
+
*/
|
|
5112
|
+
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5113
|
+
/**
|
|
5114
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5115
|
+
* @uiName Payout error message title
|
|
5116
|
+
* @uiGroup Dashboard Properties
|
|
5117
|
+
* @uiWidget textArea
|
|
5118
|
+
*/
|
|
5119
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5120
|
+
/**
|
|
5121
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5122
|
+
* @uiName Payout error message description
|
|
5123
|
+
* @uiGroup Dashboard Properties
|
|
5124
|
+
* @uiWidget textArea
|
|
5125
|
+
*/
|
|
5126
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5127
|
+
/**
|
|
5128
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
5129
|
+
* @uiName Payout missing information subtext
|
|
5130
|
+
* @uiGroup Dashboard Properties
|
|
5131
|
+
*/
|
|
5132
|
+
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5133
|
+
/**
|
|
5134
|
+
* @uiName Invoice table description
|
|
5135
|
+
* @uiGroup Dashboard Properties
|
|
5136
|
+
*/
|
|
5137
|
+
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5138
|
+
/**
|
|
5139
|
+
* @uiName Invoice table previous page button label
|
|
5140
|
+
* @uiGroup Dashboard Properties
|
|
5141
|
+
*/
|
|
5142
|
+
this.dashboard_invoicePrevLabel = "Prev";
|
|
5143
|
+
/**
|
|
5144
|
+
* @uiName Invoice table next page button label
|
|
5145
|
+
* @uiGroup Dashboard Properties
|
|
5146
|
+
*/
|
|
5147
|
+
this.dashboard_invoiceMoreLabel = "Next";
|
|
5148
|
+
/**
|
|
5149
|
+
* @uiName Invoice table title
|
|
5150
|
+
* @uiGroup Dashboard Properties
|
|
5151
|
+
*/
|
|
5152
|
+
this.dashboard_invoiceHeader = "Invoices";
|
|
5153
|
+
/**
|
|
5154
|
+
* @uiName Empty invoice table header
|
|
5155
|
+
* @uiGroup Dashboard Properties
|
|
5156
|
+
*/
|
|
5157
|
+
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5158
|
+
/**
|
|
5159
|
+
* @uiName Empty invoice table description
|
|
5160
|
+
* @uiGroup Dashboard Properties
|
|
5161
|
+
*/
|
|
5162
|
+
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5163
|
+
/**
|
|
5164
|
+
* @uiName Replace tax form modal header
|
|
5165
|
+
* @uiGroup Dashboard Properties
|
|
5166
|
+
*/
|
|
5167
|
+
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5168
|
+
/**
|
|
5169
|
+
* @uiName Replace tax form modal body text
|
|
5170
|
+
* @uiGroup Dashboard Properties
|
|
5171
|
+
* @uiWidget textArea
|
|
5172
|
+
*/
|
|
5173
|
+
this.dashboard_replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
|
|
5174
|
+
/**
|
|
5175
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5176
|
+
* @uiName Verification required alert message title
|
|
5177
|
+
* @uiGroup Dashboard Properties
|
|
5178
|
+
* @uiWidget textArea
|
|
5179
|
+
*/
|
|
5180
|
+
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5181
|
+
/**
|
|
5182
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5183
|
+
* @uiName Verification required alert message description
|
|
5184
|
+
* @uiGroup Dashboard Properties
|
|
5185
|
+
* @uiWidget textArea
|
|
5186
|
+
*/
|
|
5187
|
+
this.dashboard_verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
|
|
5188
|
+
/**
|
|
5189
|
+
* @uiName Verification required internal alert header
|
|
5190
|
+
* @uiGroup Dashboard Properties
|
|
5191
|
+
* @uiWidget textArea
|
|
5192
|
+
*/
|
|
5193
|
+
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5194
|
+
/**
|
|
5195
|
+
* @uiName Verification required internal alert description
|
|
5196
|
+
* @uiGroup Dashboard Properties
|
|
5197
|
+
* @uiWidget textArea
|
|
5198
|
+
*/
|
|
5199
|
+
this.dashboard_verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
|
|
5200
|
+
/**
|
|
5201
|
+
* @uiName Verification review internal alert header
|
|
5202
|
+
* @uiGroup Dashboard Properties
|
|
5203
|
+
* @uiWidget textArea
|
|
5204
|
+
*/
|
|
5205
|
+
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5206
|
+
/**
|
|
5207
|
+
* @uiName Verification review internal alert description
|
|
5208
|
+
* @uiGroup Dashboard Properties
|
|
5209
|
+
* @uiWidget textArea
|
|
5210
|
+
*/
|
|
5211
|
+
this.dashboard_verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
|
|
5212
|
+
/**
|
|
5213
|
+
* @uiName Verification failed internal alert header
|
|
5214
|
+
* @uiGroup Dashboard Properties
|
|
5215
|
+
* @uiWidget textArea
|
|
5216
|
+
*/
|
|
5217
|
+
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5218
|
+
/**
|
|
5219
|
+
* @uiName Verification failed internal alert description
|
|
5220
|
+
* @uiGroup Dashboard Properties
|
|
5221
|
+
* @uiWidget textArea
|
|
5222
|
+
*/
|
|
5223
|
+
this.dashboard_verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
|
|
5224
|
+
/**
|
|
5225
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5226
|
+
* @uiName Verification required alert button text
|
|
5227
|
+
* @uiGroup Dashboard Properties
|
|
5228
|
+
* @uiWidget textArea
|
|
5229
|
+
*/
|
|
5230
|
+
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5231
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5232
|
+
GENERAL PROPS:
|
|
5233
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5234
|
+
/**
|
|
5235
|
+
* @uiName Setup progress
|
|
5236
|
+
* @uiGroup General Form Properties
|
|
5237
|
+
*/
|
|
5238
|
+
this.formStep = "Step {step} of {count}";
|
|
5239
|
+
/**
|
|
5240
|
+
* Part of the alert displayed at the top of the page.
|
|
5241
|
+
* @uiName Form submission error message title
|
|
5242
|
+
* @uiGroup General Form Properties
|
|
5243
|
+
* @uiWidget textArea
|
|
5244
|
+
*/
|
|
5245
|
+
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5246
|
+
/**
|
|
5247
|
+
* Part of the alert displayed at the top of the page.
|
|
5248
|
+
* @uiName Form submission error message description
|
|
5249
|
+
* @uiGroup General Form Properties
|
|
5250
|
+
* @uiWidget textArea
|
|
5251
|
+
*/
|
|
5252
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5253
|
+
/**
|
|
5254
|
+
* Displayed under a field that is missing required information.
|
|
5255
|
+
* @uiName Empty form field error message
|
|
5256
|
+
* @uiGroup General Form Properties
|
|
5257
|
+
*/
|
|
5258
|
+
this.fieldRequiredError = "{fieldName} is required";
|
|
5259
|
+
/**
|
|
5260
|
+
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5261
|
+
* @uiName Invalid character error message
|
|
5262
|
+
* @uiGroup General Form Properties
|
|
5263
|
+
*/
|
|
5264
|
+
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5265
|
+
/**
|
|
5266
|
+
* Displayed under a field when it has an invalid entry.
|
|
5267
|
+
* @uiName Form field error message
|
|
5268
|
+
* @uiGroup General Form Properties
|
|
5269
|
+
*/
|
|
5270
|
+
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5271
|
+
/**
|
|
5272
|
+
* @uiName Continue button label
|
|
5273
|
+
* @uiGroup General Form Properties
|
|
5274
|
+
*/
|
|
5275
|
+
this.continueButton = "Continue";
|
|
5276
|
+
/**
|
|
5277
|
+
* @uiName Back button label
|
|
5278
|
+
* @uiGroup General Form Properties
|
|
5279
|
+
*/
|
|
5280
|
+
this.backButton = "Back";
|
|
5281
|
+
/**
|
|
5282
|
+
* @uiName Cancel button label
|
|
5283
|
+
* @uiGroup General Form Properties
|
|
5284
|
+
*/
|
|
5285
|
+
this.cancelButton = "Cancel";
|
|
5286
|
+
/**
|
|
5287
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5288
|
+
* @uiName Participant is a partner alert title
|
|
5289
|
+
* @uiGroup General Form Properties
|
|
5290
|
+
* @uiWidget textArea
|
|
5291
|
+
*/
|
|
5292
|
+
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5293
|
+
/**
|
|
5294
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5295
|
+
* @uiName Participant is a partner alert description
|
|
5296
|
+
* @uiGroup General Form Properties
|
|
5297
|
+
* @uiWidget textArea
|
|
5298
|
+
*/
|
|
5299
|
+
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
|
|
5300
|
+
/**
|
|
5301
|
+
* Placeholder text displayed in the country search dropdown
|
|
5302
|
+
* @uiName Country field placeholder text
|
|
5303
|
+
* @uiGroup General Form Properties
|
|
5304
|
+
*/
|
|
5305
|
+
this.searchForCountryText = "Search for country..";
|
|
5306
|
+
/**
|
|
5307
|
+
* Part of the alert displayed at the top of the page.
|
|
5308
|
+
* @uiName Page load error message title
|
|
5309
|
+
* @uiGroup General Form Properties
|
|
5310
|
+
* @uiWidget textArea
|
|
5311
|
+
*/
|
|
5312
|
+
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
5313
|
+
/**
|
|
5314
|
+
* Part of the alert displayed at the top of the page.
|
|
5315
|
+
* @uiName Page load error message description
|
|
5316
|
+
* @uiGroup General Form Properties
|
|
5317
|
+
* @uiWidget textArea
|
|
5318
|
+
*/
|
|
5319
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5320
|
+
/**
|
|
5321
|
+
* Displayed at the top of the page on all set up steps.
|
|
5322
|
+
* @uiName Page description
|
|
5323
|
+
* @uiGroup General Form Properties
|
|
5324
|
+
*/
|
|
5325
|
+
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5326
|
+
/**
|
|
5327
|
+
* Link text for contacting support team
|
|
5328
|
+
* @uiName Suport link text
|
|
5329
|
+
* @uiGroup General Form Properties
|
|
5330
|
+
*/
|
|
5331
|
+
this.supportLink = "support team";
|
|
5332
|
+
stencilHooks_module.h$1(this);
|
|
5333
|
+
}
|
|
5334
|
+
disconnectedCallback() { }
|
|
5335
|
+
// this field is required prop
|
|
5336
|
+
getGeneralStepTextProps(prefix) {
|
|
5337
|
+
const props = utils.getProps(this);
|
|
5338
|
+
return {
|
|
5339
|
+
...extractProps.extractProps(props, prefix),
|
|
5340
|
+
generalErrorTitle: props.generalErrorTitle,
|
|
5341
|
+
generalErrorDescription: props.generalErrorDescription,
|
|
5342
|
+
fieldRequiredError: props.fieldRequiredError,
|
|
5343
|
+
invalidCharacterError: props.invalidCharacterError,
|
|
5344
|
+
fieldInvalidError: props.fieldInvalidError,
|
|
5345
|
+
continueButton: props.continueButton,
|
|
5346
|
+
backButton: props.backButton,
|
|
5347
|
+
cancelButton: props.cancelButton,
|
|
5348
|
+
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5349
|
+
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5350
|
+
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5351
|
+
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5352
|
+
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5353
|
+
searchForCountryText: props.searchForCountryText,
|
|
5354
|
+
formStep: props.formStep,
|
|
5355
|
+
supportLink: props.supportLink,
|
|
5356
|
+
};
|
|
5357
|
+
}
|
|
5358
|
+
render() {
|
|
5359
|
+
var _a, _b;
|
|
5360
|
+
const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
5361
|
+
// @ts-ignore
|
|
5362
|
+
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
5363
|
+
const textProps = utils.getProps(this);
|
|
5364
|
+
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5365
|
+
if (prop === "demoData")
|
|
5366
|
+
return;
|
|
5367
|
+
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
5368
|
+
})));
|
|
5369
|
+
}
|
|
5370
|
+
switch (props.step) {
|
|
5371
|
+
case "/1":
|
|
5372
|
+
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5373
|
+
case "/2":
|
|
5374
|
+
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5375
|
+
case "/3":
|
|
5376
|
+
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5377
|
+
case "/4":
|
|
5378
|
+
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5379
|
+
case "/dashboard":
|
|
5380
|
+
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5381
|
+
case "/error":
|
|
5382
|
+
return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5383
|
+
}
|
|
5384
|
+
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
5385
|
+
}
|
|
5386
|
+
};
|
|
5387
|
+
function useDemoTaxAndCash(props) {
|
|
5388
|
+
const [step, setStep] = index_module.In({
|
|
5389
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5390
|
+
initialValue: "/1",
|
|
5391
|
+
});
|
|
5392
|
+
return cjs.cjs({
|
|
5393
|
+
step,
|
|
5394
|
+
setStep,
|
|
5395
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5396
|
+
}
|
|
5397
|
+
|
|
5398
|
+
const style$6 = {
|
|
5399
|
+
ErrorAlertContainer: {
|
|
5400
|
+
"&::part(base)": {
|
|
5401
|
+
backgroundColor: "var(--sqm-danger-color-background)",
|
|
5402
|
+
border: "none",
|
|
5403
|
+
},
|
|
5404
|
+
"& sl-icon::part(base)": {
|
|
5405
|
+
color: "var(--sqm-danger-color-text)",
|
|
5406
|
+
},
|
|
5407
|
+
},
|
|
5408
|
+
WarningAlertContainer: {
|
|
5409
|
+
"&::part(base)": {
|
|
5410
|
+
backgroundColor: "var(--sqm-warning-color-background)",
|
|
3713
5411
|
border: "none",
|
|
3714
5412
|
maxWidth: "600px",
|
|
3715
5413
|
},
|
|
@@ -3888,8 +5586,8 @@ const style$5 = {
|
|
|
3888
5586
|
},
|
|
3889
5587
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3890
5588
|
};
|
|
3891
|
-
const sheet$
|
|
3892
|
-
const styleString$
|
|
5589
|
+
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5590
|
+
const styleString$5 = sheet$5.toString();
|
|
3893
5591
|
const TaxAndCashDashboardView = (props) => {
|
|
3894
5592
|
var _a, _b, _c, _d;
|
|
3895
5593
|
const { states, text, callbacks, slots } = props;
|
|
@@ -3907,7 +5605,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3907
5605
|
buttonText: text.verificationRequiredButtonText,
|
|
3908
5606
|
alertType: "warning",
|
|
3909
5607
|
icon: "exclamation-triangle",
|
|
3910
|
-
class: sheet$
|
|
5608
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3911
5609
|
};
|
|
3912
5610
|
case "VERIFICATION:INTERNAL":
|
|
3913
5611
|
return {
|
|
@@ -3920,7 +5618,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3920
5618
|
}),
|
|
3921
5619
|
alertType: "warning",
|
|
3922
5620
|
icon: "exclamation-triangle",
|
|
3923
|
-
class: sheet$
|
|
5621
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3924
5622
|
};
|
|
3925
5623
|
case "VERIFICATION:REVIEW":
|
|
3926
5624
|
return {
|
|
@@ -3933,7 +5631,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3933
5631
|
}),
|
|
3934
5632
|
alertType: "warning",
|
|
3935
5633
|
icon: "exclamation-triangle",
|
|
3936
|
-
class: sheet$
|
|
5634
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3937
5635
|
};
|
|
3938
5636
|
case "VERIFICATION:FAILED":
|
|
3939
5637
|
return {
|
|
@@ -3946,7 +5644,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3946
5644
|
}),
|
|
3947
5645
|
alertType: "critical",
|
|
3948
5646
|
icon: "exclamation-octagon",
|
|
3949
|
-
class: sheet$
|
|
5647
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
3950
5648
|
};
|
|
3951
5649
|
case "HOLD":
|
|
3952
5650
|
return {
|
|
@@ -3960,14 +5658,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3960
5658
|
buttonText: null,
|
|
3961
5659
|
alertType: "warning",
|
|
3962
5660
|
icon: "exclamation-triangle",
|
|
3963
|
-
class: sheet$
|
|
5661
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3964
5662
|
};
|
|
3965
5663
|
default:
|
|
3966
5664
|
return;
|
|
3967
5665
|
}
|
|
3968
5666
|
}
|
|
3969
5667
|
const statusMap = {
|
|
3970
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$
|
|
5668
|
+
NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3971
5669
|
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
3972
5670
|
index.h("p", null, global.intl.formatMessage({
|
|
3973
5671
|
id: `badgeTextAwaitingReview`,
|
|
@@ -3975,7 +5673,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3975
5673
|
}, {
|
|
3976
5674
|
dateSubmitted: states.dateSubmitted,
|
|
3977
5675
|
})))),
|
|
3978
|
-
ACTIVE: (index.h("div", { class: sheet$
|
|
5676
|
+
ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3979
5677
|
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
3980
5678
|
index.h("p", null, global.intl.formatMessage({
|
|
3981
5679
|
id: `badgeTextSubmittedOn`,
|
|
@@ -3985,12 +5683,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3985
5683
|
}, {
|
|
3986
5684
|
dateSubmitted: states.dateSubmitted,
|
|
3987
5685
|
})))),
|
|
3988
|
-
INACTIVE: (index.h("div", { class: sheet$
|
|
5686
|
+
INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3989
5687
|
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
3990
5688
|
index.h("p", null, text.invalidForm))),
|
|
3991
5689
|
};
|
|
3992
5690
|
const alertMap = {
|
|
3993
|
-
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5691
|
+
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
3994
5692
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3995
5693
|
index.h("strong", null, global.intl.formatMessage({
|
|
3996
5694
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -4040,9 +5738,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4040
5738
|
};
|
|
4041
5739
|
return (index.h("div", null,
|
|
4042
5740
|
index.h("div", null,
|
|
4043
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
5741
|
+
index.h("style", { type: "text/css" }, styleString$5),
|
|
4044
5742
|
states.loadingError && (index.h("div", null,
|
|
4045
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5743
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
4046
5744
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4047
5745
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
4048
5746
|
index.h("br", null),
|
|
@@ -4052,7 +5750,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4052
5750
|
}, {
|
|
4053
5751
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4054
5752
|
})))),
|
|
4055
|
-
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5753
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
4056
5754
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4057
5755
|
index.h("strong", null, text.error.generalTitle),
|
|
4058
5756
|
index.h("br", null),
|
|
@@ -4067,49 +5765,49 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4067
5765
|
index.h("strong", null, getAlert(states.payoutStatus).header),
|
|
4068
5766
|
index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
4069
5767
|
getAlert(states.payoutStatus).buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
|
|
4070
|
-
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$
|
|
5768
|
+
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
4071
5769
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
4072
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
4073
|
-
index.h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
5770
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5771
|
+
index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
4074
5772
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
4075
5773
|
index.h("div", null,
|
|
4076
5774
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
4077
|
-
index.h("p", { class: sheet$
|
|
4078
|
-
index.h("div", { class: sheet$
|
|
5775
|
+
index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5776
|
+
index.h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
4079
5777
|
slots.payoutDetailsCardSlot,
|
|
4080
|
-
!states.loading && (index.h("p", { class: sheet$
|
|
4081
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
4082
|
-
index.h("div", { class: sheet$
|
|
4083
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$
|
|
4084
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4085
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4086
|
-
index.h("h3", { class: sheet$
|
|
4087
|
-
index.h("p", { class: sheet$
|
|
4088
|
-
index.h("span", { class: sheet$
|
|
4089
|
-
index.h("div", { class: sheet$
|
|
5778
|
+
!states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5779
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5780
|
+
index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
5781
|
+
index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5782
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5783
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
5784
|
+
index.h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5785
|
+
index.h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
5786
|
+
index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5787
|
+
index.h("div", { class: sheet$5.classes.StatusContainer },
|
|
4090
5788
|
index.h("h3", null, global.intl.formatMessage({
|
|
4091
5789
|
id: "section-subheader",
|
|
4092
5790
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
4093
5791
|
}, {
|
|
4094
5792
|
documentType: states.documentTypeString,
|
|
4095
5793
|
})),
|
|
4096
|
-
index.h("span", { class: sheet$
|
|
4097
|
-
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
4098
|
-
index.h("div", { class: sheet$
|
|
4099
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4100
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4101
|
-
index.h("h3", { class: sheet$
|
|
5794
|
+
index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
5795
|
+
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
5796
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5797
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5798
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
5799
|
+
index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
4102
5800
|
text.indirectTaxInfoSectionHeader,
|
|
4103
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
4104
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$
|
|
4105
|
-
index.h("div", { class: sheet$
|
|
4106
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$
|
|
5801
|
+
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
5802
|
+
index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
5803
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
5804
|
+
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
|
|
4107
5805
|
id: "notRegisteredForTax",
|
|
4108
5806
|
defaultMessage: text.notRegisteredForTax,
|
|
4109
5807
|
}, {
|
|
4110
5808
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4111
5809
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
4112
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
5810
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
4113
5811
|
index.h("span", null, global.intl.formatMessage({
|
|
4114
5812
|
id: `indirectTaxDetails`,
|
|
4115
5813
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -4132,7 +5830,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4132
5830
|
}, {
|
|
4133
5831
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
4134
5832
|
})))),
|
|
4135
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
5833
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
4136
5834
|
index.h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
|
|
4137
5835
|
index.h("sqm-invoice-table-download-column", null),
|
|
4138
5836
|
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -4156,12 +5854,12 @@ function getSubRegionName(regionCode) {
|
|
|
4156
5854
|
return "";
|
|
4157
5855
|
// Impact adds an underscore to some regions
|
|
4158
5856
|
const standardCode = regionCode.replace("_", "");
|
|
4159
|
-
const regions = [...
|
|
5857
|
+
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4160
5858
|
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
4161
5859
|
}
|
|
4162
5860
|
function getIndirectTaxType(taxInformation) {
|
|
4163
5861
|
var _a;
|
|
4164
|
-
const regions = [...
|
|
5862
|
+
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4165
5863
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
4166
5864
|
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
4167
5865
|
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
@@ -4172,14 +5870,14 @@ function getIndirectTaxType(taxInformation) {
|
|
|
4172
5870
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
4173
5871
|
return "VAT";
|
|
4174
5872
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
4175
|
-
return
|
|
5873
|
+
return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
4176
5874
|
}
|
|
4177
5875
|
return "Indirect Tax";
|
|
4178
5876
|
}
|
|
4179
5877
|
const useTaxAndCashDashboard = (props) => {
|
|
4180
5878
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
4181
|
-
const setStep = index_module.En(
|
|
4182
|
-
const setContext = index_module.En(
|
|
5879
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
5880
|
+
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
4183
5881
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
4184
5882
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
4185
5883
|
const locale = index_module.L();
|
|
@@ -4187,8 +5885,8 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4187
5885
|
// Clear override context once on submitted
|
|
4188
5886
|
setContext({});
|
|
4189
5887
|
}, []);
|
|
4190
|
-
const { data
|
|
4191
|
-
const publisher = (_b = (_a = data
|
|
5888
|
+
const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
5889
|
+
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
4192
5890
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
4193
5891
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
4194
5892
|
const dateSubmitted = submissionDate
|
|
@@ -4211,8 +5909,8 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4211
5909
|
});
|
|
4212
5910
|
setStep("/3");
|
|
4213
5911
|
};
|
|
4214
|
-
const provinceName = (_d =
|
|
4215
|
-
const payoutStatus = data
|
|
5912
|
+
const provinceName = (_d = sqmInvoiceTableView.INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
|
|
5913
|
+
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
4216
5914
|
stencilHooks_module.useEffect(() => {
|
|
4217
5915
|
const cb = () => refetch();
|
|
4218
5916
|
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
@@ -4225,7 +5923,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4225
5923
|
dateSubmitted,
|
|
4226
5924
|
documentType,
|
|
4227
5925
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
4228
|
-
documentTypeString:
|
|
5926
|
+
documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
|
|
4229
5927
|
status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
|
|
4230
5928
|
subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
|
|
4231
5929
|
subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
|
|
@@ -4588,31 +6286,23 @@ const TaxAndCashDashboard = class {
|
|
|
4588
6286
|
}
|
|
4589
6287
|
};
|
|
4590
6288
|
function useDemoTaxAndCashDashboard(props) {
|
|
4591
|
-
// const states = parseStates(props.stateController);
|
|
4592
6289
|
return cjs.cjs({
|
|
4593
6290
|
states: {
|
|
4594
6291
|
dateSubmitted: "today",
|
|
4595
6292
|
documentType: "W9",
|
|
4596
6293
|
documentTypeString: "W9",
|
|
6294
|
+
status: "ACTIVE",
|
|
4597
6295
|
country: "United States",
|
|
4598
|
-
indirectTaxNumber:
|
|
6296
|
+
indirectTaxNumber: 55555555,
|
|
4599
6297
|
indirectTaxType: "Indirect Tax",
|
|
4600
|
-
noFormNeeded:
|
|
6298
|
+
noFormNeeded: true,
|
|
4601
6299
|
disabled: false,
|
|
4602
6300
|
loading: false,
|
|
4603
6301
|
showNewFormDialog: false,
|
|
4604
6302
|
hasHold: false,
|
|
4605
|
-
|
|
4606
|
-
subRegionTaxNumber: undefined,
|
|
4607
|
-
qstNumber: undefined,
|
|
4608
|
-
isBusinessEntity: false,
|
|
4609
|
-
province: undefined,
|
|
4610
|
-
notRegistered: true,
|
|
4611
|
-
loadingError: false,
|
|
6303
|
+
showVerifyIdentity: false,
|
|
4612
6304
|
payoutStatus: "DONE",
|
|
4613
6305
|
veriffLoading: false,
|
|
4614
|
-
canEditPayoutInfo: true,
|
|
4615
|
-
status: "ACTIVE",
|
|
4616
6306
|
},
|
|
4617
6307
|
callbacks: {
|
|
4618
6308
|
onClick: () => console.debug("check step"),
|
|
@@ -4622,13 +6312,6 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4622
6312
|
onVerifyClick: () => console.log("verify"),
|
|
4623
6313
|
},
|
|
4624
6314
|
text: props.getTextProps(),
|
|
4625
|
-
slots: {
|
|
4626
|
-
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
|
|
4627
|
-
states: {
|
|
4628
|
-
badgeStatus: "nextPayout",
|
|
4629
|
-
},
|
|
4630
|
-
} })),
|
|
4631
|
-
},
|
|
4632
6315
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4633
6316
|
}
|
|
4634
6317
|
|
|
@@ -5603,7 +7286,7 @@ const PHONE_EXTENSIONS = {
|
|
|
5603
7286
|
},
|
|
5604
7287
|
};
|
|
5605
7288
|
|
|
5606
|
-
const style$
|
|
7289
|
+
const style$7 = {
|
|
5607
7290
|
FormWrapper: {},
|
|
5608
7291
|
ErrorInput: {
|
|
5609
7292
|
"&::part(base)": {
|
|
@@ -5703,9 +7386,9 @@ const style$6 = {
|
|
|
5703
7386
|
},
|
|
5704
7387
|
},
|
|
5705
7388
|
};
|
|
5706
|
-
const sheet$
|
|
5707
|
-
const styleString$
|
|
5708
|
-
const vanillaStyle$
|
|
7389
|
+
const sheet$6 = JSS.createStyleSheet(style$7);
|
|
7390
|
+
const styleString$6 = sheet$6.toString();
|
|
7391
|
+
const vanillaStyle$4 = `
|
|
5709
7392
|
:host{
|
|
5710
7393
|
display: block;
|
|
5711
7394
|
}
|
|
@@ -5825,7 +7508,7 @@ const vanillaStyle$3 = `
|
|
|
5825
7508
|
background-color: var(--sqm-input-background, #fff);
|
|
5826
7509
|
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
5827
7510
|
color: var(--sqm-input-color, white);
|
|
5828
|
-
border-width: var(--sqm-border-
|
|
7511
|
+
border-width: var(--sqm-border-width, 1px);
|
|
5829
7512
|
border-style: solid;
|
|
5830
7513
|
border-color: var(--sqm-input-border-color, #ccc);
|
|
5831
7514
|
}
|
|
@@ -5882,8 +7565,8 @@ const vanillaStyle$3 = `
|
|
|
5882
7565
|
`;
|
|
5883
7566
|
const UserInfoFormView = (props) => {
|
|
5884
7567
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
5885
|
-
const { states, states: { formState }, callbacks, text, refs, data
|
|
5886
|
-
const { classes } = sheet$
|
|
7568
|
+
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7569
|
+
const { classes } = sheet$6;
|
|
5887
7570
|
const bankingCollectionText = global.intl.formatMessage({
|
|
5888
7571
|
id: "bankingCollectionText",
|
|
5889
7572
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -5891,7 +7574,7 @@ const UserInfoFormView = (props) => {
|
|
|
5891
7574
|
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
5892
7575
|
});
|
|
5893
7576
|
let regionLabel = undefined;
|
|
5894
|
-
switch (data
|
|
7577
|
+
switch (data.regionLabelEnum) {
|
|
5895
7578
|
case "STATE":
|
|
5896
7579
|
regionLabel = text.state;
|
|
5897
7580
|
break;
|
|
@@ -5906,10 +7589,10 @@ const UserInfoFormView = (props) => {
|
|
|
5906
7589
|
}
|
|
5907
7590
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
5908
7591
|
index.h("style", { type: "text/css" },
|
|
5909
|
-
styleString$
|
|
5910
|
-
vanillaStyle$
|
|
7592
|
+
styleString$6,
|
|
7593
|
+
vanillaStyle$4),
|
|
5911
7594
|
states.loadingError && (index.h("div", null,
|
|
5912
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
7595
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
5913
7596
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5914
7597
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5915
7598
|
index.h("br", null),
|
|
@@ -5920,16 +7603,16 @@ const UserInfoFormView = (props) => {
|
|
|
5920
7603
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5921
7604
|
})),
|
|
5922
7605
|
index.h("br", null))),
|
|
5923
|
-
states.loading ? (index.h(
|
|
7606
|
+
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
5924
7607
|
index.h("div", { class: classes.TextContainer },
|
|
5925
7608
|
index.h("div", null,
|
|
5926
7609
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
5927
7610
|
id: "formStep",
|
|
5928
7611
|
defaultMessage: text.formStep,
|
|
5929
|
-
}, { step: states.step, count:
|
|
7612
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
5930
7613
|
index.h("h3", null, text.personalInformation),
|
|
5931
7614
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
5932
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
7615
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
|
|
5933
7616
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5934
7617
|
index.h("strong", null, text.error.generalTitle),
|
|
5935
7618
|
index.h("br", null),
|
|
@@ -5939,7 +7622,7 @@ const UserInfoFormView = (props) => {
|
|
|
5939
7622
|
}, {
|
|
5940
7623
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5941
7624
|
}))),
|
|
5942
|
-
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
7625
|
+
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
5943
7626
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
5944
7627
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
5945
7628
|
index.h("br", null),
|
|
@@ -5953,18 +7636,18 @@ const UserInfoFormView = (props) => {
|
|
|
5953
7636
|
index.h("div", { class: classes.InputContainer },
|
|
5954
7637
|
index.h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
5955
7638
|
class: classes.ErrorInput,
|
|
5956
|
-
helpText:
|
|
7639
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
5957
7640
|
}
|
|
5958
7641
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
5959
7642
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
5960
7643
|
class: classes.ErrorInput,
|
|
5961
|
-
helpText:
|
|
7644
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
5962
7645
|
}
|
|
5963
7646
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
5964
7647
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
5965
7648
|
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
5966
7649
|
class: classes.ErrorInput,
|
|
5967
|
-
helpText:
|
|
7650
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
5968
7651
|
}
|
|
5969
7652
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
5970
7653
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
@@ -5972,8 +7655,8 @@ const UserInfoFormView = (props) => {
|
|
|
5972
7655
|
e.stopPropagation();
|
|
5973
7656
|
}, "onSl-input": (e) => {
|
|
5974
7657
|
callbacks.setCountrySearch(e.target.value);
|
|
5975
|
-
} }), (_e = data
|
|
5976
|
-
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data
|
|
7658
|
+
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
7659
|
+
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
5977
7660
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
5978
7661
|
index.h("div", { class: classes.PhoneInputsSection },
|
|
5979
7662
|
index.h("p", null, text.phoneNumber),
|
|
@@ -5987,13 +7670,13 @@ const UserInfoFormView = (props) => {
|
|
|
5987
7670
|
e.stopPropagation();
|
|
5988
7671
|
}, "onSl-input": (e) => {
|
|
5989
7672
|
callbacks.setPhoneCountrySearch(e.target.value);
|
|
5990
|
-
} }), (_h = data
|
|
7673
|
+
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
5991
7674
|
_h.map((c) => {
|
|
5992
7675
|
var _a, _b;
|
|
5993
7676
|
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
5994
7677
|
index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
5995
7678
|
_b.dial_code));
|
|
5996
|
-
}), (_j = data
|
|
7679
|
+
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
5997
7680
|
_j.map((c) => {
|
|
5998
7681
|
var _a, _b;
|
|
5999
7682
|
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
@@ -6002,42 +7685,42 @@ const UserInfoFormView = (props) => {
|
|
|
6002
7685
|
})),
|
|
6003
7686
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
6004
7687
|
// Naive phone number validation
|
|
6005
|
-
|
|
6006
|
-
|
|
7688
|
+
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
7689
|
+
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
6007
7690
|
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
6008
7691
|
class: classes.ErrorInput,
|
|
6009
|
-
helpText:
|
|
7692
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6010
7693
|
}
|
|
6011
7694
|
: {}), { required: true })))),
|
|
6012
7695
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
6013
7696
|
// Checks for non-ASCII characters
|
|
6014
|
-
!
|
|
6015
|
-
|
|
7697
|
+
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7698
|
+
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
6016
7699
|
class: classes.ErrorInput,
|
|
6017
|
-
helpText:
|
|
7700
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
6018
7701
|
}
|
|
6019
7702
|
: {}), { required: true })),
|
|
6020
7703
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
6021
7704
|
// Checks for non-ASCII characters
|
|
6022
|
-
!
|
|
6023
|
-
|
|
7705
|
+
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7706
|
+
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
6024
7707
|
class: classes.ErrorInput,
|
|
6025
|
-
helpText:
|
|
7708
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
6026
7709
|
}
|
|
6027
7710
|
: {}), { required: true })),
|
|
6028
7711
|
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
6029
7712
|
class: classes.ErrorInput,
|
|
6030
|
-
helpText:
|
|
7713
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
6031
7714
|
}
|
|
6032
|
-
: {}), { required: true }), (_p = data
|
|
7715
|
+
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6033
7716
|
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
6034
7717
|
class: classes.ErrorInput,
|
|
6035
|
-
helpText:
|
|
7718
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
6036
7719
|
}
|
|
6037
7720
|
: {}), { required: true })),
|
|
6038
7721
|
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
|
|
6039
7722
|
class: classes.ErrorInput,
|
|
6040
|
-
helpText:
|
|
7723
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
6041
7724
|
}
|
|
6042
7725
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
6043
7726
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
@@ -6045,11 +7728,11 @@ const UserInfoFormView = (props) => {
|
|
|
6045
7728
|
e.stopPropagation();
|
|
6046
7729
|
}, "onSl-input": (e) => {
|
|
6047
7730
|
callbacks.setCurrencySearch(e.target.value);
|
|
6048
|
-
} }), (_s = data
|
|
7731
|
+
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6049
7732
|
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
6050
7733
|
c.currencyCode,
|
|
6051
7734
|
" - ",
|
|
6052
|
-
c.displayName))), (_t = data
|
|
7735
|
+
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6053
7736
|
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6054
7737
|
c.currencyCode,
|
|
6055
7738
|
" - ",
|
|
@@ -6058,7 +7741,7 @@ const UserInfoFormView = (props) => {
|
|
|
6058
7741
|
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6059
7742
|
e.target.value = e.target.checked;
|
|
6060
7743
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
6061
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText },
|
|
7744
|
+
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
6062
7745
|
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6063
7746
|
};
|
|
6064
7747
|
|
|
@@ -6067,12 +7750,12 @@ function useUserInfoForm(props) {
|
|
|
6067
7750
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
6068
7751
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
6069
7752
|
const formRef = stencilHooks_module.useRef(null);
|
|
6070
|
-
const context = index_module.Fn(
|
|
6071
|
-
const countries = index_module.Fn(
|
|
6072
|
-
const [step, setStep] = index_module.Pn(
|
|
6073
|
-
const [userFormContext, setUserFormContext] = index_module.Pn(
|
|
6074
|
-
const { data
|
|
6075
|
-
const _currencies = index_module.Fn(
|
|
7753
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
7754
|
+
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
7755
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
7756
|
+
const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
|
|
7757
|
+
const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
7758
|
+
const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
|
|
6076
7759
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6077
7760
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
6078
7761
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -6083,11 +7766,11 @@ function useUserInfoForm(props) {
|
|
|
6083
7766
|
const [formErrors, setErrors] = stencilHooks_module.useState({});
|
|
6084
7767
|
stencilHooks_module.useEffect(() => {
|
|
6085
7768
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6086
|
-
const user = data
|
|
7769
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6087
7770
|
if (!user || step !== "/1")
|
|
6088
7771
|
return;
|
|
6089
7772
|
// If form already filled out, skip initialising it
|
|
6090
|
-
if (
|
|
7773
|
+
if (sqmInvoiceTableView.objectIsFull(userFormContext))
|
|
6091
7774
|
return;
|
|
6092
7775
|
// Prefer MI email if it was verified before this
|
|
6093
7776
|
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
@@ -6124,7 +7807,7 @@ function useUserInfoForm(props) {
|
|
|
6124
7807
|
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
6125
7808
|
});
|
|
6126
7809
|
}
|
|
6127
|
-
}, [data
|
|
7810
|
+
}, [data, step, userFormContext]);
|
|
6128
7811
|
const onFormChange = (field, e) => {
|
|
6129
7812
|
var _a, _b;
|
|
6130
7813
|
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
@@ -6216,7 +7899,7 @@ function useUserInfoForm(props) {
|
|
|
6216
7899
|
}
|
|
6217
7900
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
6218
7901
|
const regionObj = hasStates
|
|
6219
|
-
?
|
|
7902
|
+
? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
6220
7903
|
: {};
|
|
6221
7904
|
return {
|
|
6222
7905
|
setStep: setStep,
|
|
@@ -6249,8 +7932,8 @@ function useUserInfoForm(props) {
|
|
|
6249
7932
|
disabled: loading,
|
|
6250
7933
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6251
7934
|
loading: loading,
|
|
6252
|
-
isPartner: !!((_b = (_a = data
|
|
6253
|
-
isUser: !!((_d = (_c = data
|
|
7935
|
+
isPartner: !!((_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
|
|
7936
|
+
isUser: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
|
|
6254
7937
|
formState: {
|
|
6255
7938
|
...userFormContext,
|
|
6256
7939
|
errors: formErrors,
|
|
@@ -6433,20 +8116,19 @@ const TaxForm = class {
|
|
|
6433
8116
|
}
|
|
6434
8117
|
render() {
|
|
6435
8118
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
6436
|
-
return (index.h(UserInfoFormView, { data: props.data,
|
|
8119
|
+
return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
|
|
6437
8120
|
// @ts-ignore
|
|
6438
8121
|
states: props.states, callbacks: {
|
|
6439
8122
|
...props.callbacks,
|
|
6440
8123
|
onSubmit: props.onSubmit,
|
|
6441
|
-
}, text: props.text, refs: props.refs }));
|
|
8124
|
+
}, text: props.text, refs: props.refs })));
|
|
6442
8125
|
}
|
|
6443
8126
|
};
|
|
6444
8127
|
function useDemoUserInfoForm(props) {
|
|
6445
|
-
const setStep = index_module.En(
|
|
6446
|
-
// @ts-ignore
|
|
8128
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6447
8129
|
return cjs.cjs({
|
|
6448
8130
|
setStep,
|
|
6449
|
-
onSubmit:
|
|
8131
|
+
onSubmit: () => {
|
|
6450
8132
|
setStep("/2");
|
|
6451
8133
|
},
|
|
6452
8134
|
onRadioClick: () => { },
|
|
@@ -6490,12 +8172,19 @@ function useDemoUserInfoForm(props) {
|
|
|
6490
8172
|
}
|
|
6491
8173
|
|
|
6492
8174
|
exports.sqm_banking_info_form = BankingInfoForm;
|
|
8175
|
+
exports.sqm_code_verification = WidgetCodeVerification;
|
|
6493
8176
|
exports.sqm_docusign_form = DocusignForm;
|
|
6494
8177
|
exports.sqm_indirect_tax_form = IndirectTaxForm;
|
|
6495
8178
|
exports.sqm_invoice_table = InvoiceTable;
|
|
8179
|
+
exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
|
|
6496
8180
|
exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
|
|
8181
|
+
exports.sqm_invoice_table_date_cell = RewardTableDateCell;
|
|
6497
8182
|
exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
|
|
8183
|
+
exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
|
|
6498
8184
|
exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
|
|
6499
8185
|
exports.sqm_payout_details_card = PayoutDetailsCard;
|
|
8186
|
+
exports.sqm_table_cell = TableCell;
|
|
8187
|
+
exports.sqm_table_row = TableRow;
|
|
8188
|
+
exports.sqm_tax_and_cash = TaxAndCashMonolith;
|
|
6500
8189
|
exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
|
|
6501
8190
|
exports.sqm_user_info_form = TaxForm;
|