@saasquatch/mint-components 1.15.0-44 → 1.15.0-45
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/IndirectTaxDetailsView-81f1ce92.js +646 -0
- package/dist/cjs/{ShadowViewAddon-85d2eed4.js → ShadowViewAddon-bebbd4d0.js} +1014 -1014
- package/dist/cjs/data-68a42a7b.js +137 -0
- package/dist/cjs/{extractProps-fd93ba62.js → extractProps-e9c55ba8.js} +14 -0
- package/dist/cjs/{global-2298fc8b.js → global-242743b1.js} +73 -58
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +201 -1890
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +3 -3
- package/dist/cjs/sqm-code-verification.cjs.entry.js +342 -0
- 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-data-cell_5.cjs.entry.js +84 -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-0a93a148.js → sqm-portal-email-verification-view-38bfdda4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-44a83439.js → sqm-portal-profile-view-036d355e.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 +3 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +11405 -10110
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1220 -0
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -7
- package/dist/cjs/{usePayoutStatus-f26f0467.js → usePayoutStatus-3cca69e5.js} +8 -5
- package/dist/cjs/utils-a6957c85.js +105 -0
- 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 +3 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
- 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 +6 -4
- 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 +2 -1
- 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 +5 -3
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -3
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +11 -8
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +1 -1
- 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 +1 -1
- 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 +39 -5
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +42 -7
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
- 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 +26 -1
- 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 +8 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +77 -28
- 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 +19 -4
- 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 +6 -5
- 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 +73 -58
- package/dist/collection/global/styles.ts +48 -40
- package/dist/collection/utils/parseStates.js +12 -0
- package/dist/esm/IndirectTaxDetailsView-89731480.js +639 -0
- package/dist/esm/{ShadowViewAddon-d59ef625.js → ShadowViewAddon-b439f9c5.js} +1017 -1017
- package/dist/esm/data-ce8ed0ae.js +121 -0
- package/dist/esm/{extractProps-ae1afbb3.js → extractProps-54064fb0.js} +14 -1
- package/dist/esm/{global-2da1dcec.js → global-f33bb903.js} +73 -58
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +125 -1807
- package/dist/esm/sqm-big-stat_42.entry.js +3 -3
- package/dist/esm/sqm-code-verification.entry.js +338 -0
- 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-data-cell_5.entry.js +76 -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-e38ec8cc.js → sqm-portal-email-verification-view-e8661ca9.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-e594d1ee.js → sqm-portal-profile-view-70e1a345.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 +3 -4
- package/dist/esm/sqm-stencilbook.entry.js +11077 -9782
- package/dist/esm/sqm-tax-and-cash.entry.js +1216 -0
- package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
- package/dist/esm/sqm-widget-verification.entry.js +17 -7
- package/dist/esm/{usePayoutStatus-3768c8c3.js → usePayoutStatus-e92a6e43.js} +8 -5
- package/dist/esm/utils-79d81bca.js +97 -0
- package/dist/esm-es5/IndirectTaxDetailsView-89731480.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-b439f9c5.js +1 -0
- package/dist/esm-es5/data-ce8ed0ae.js +1 -0
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- package/dist/esm-es5/{global-2da1dcec.js → global-f33bb903.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_10.entry.js +1 -0
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- 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-data-cell_5.entry.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-e38ec8cc.js → sqm-portal-email-verification-view-e8661ca9.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-e594d1ee.js → sqm-portal-profile-view-70e1a345.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-tax-and-cash.entry.js +1 -0
- 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-3768c8c3.js → usePayoutStatus-e92a6e43.js} +2 -2
- package/dist/esm-es5/utils-79d81bca.js +1 -0
- package/dist/mint-components/global/styles.ts +48 -40
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-a121e5a1.system.entry.js → p-059ad130.system.entry.js} +1 -1
- package/dist/mint-components/p-0768fe1d.system.js +1 -0
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/{p-d49373b7.system.js → p-10849094.system.js} +1 -1
- package/dist/mint-components/p-169c8564.system.js +1 -0
- package/dist/mint-components/p-1e79befd.entry.js +1 -0
- package/dist/mint-components/{p-761ee9ea.entry.js → p-1f8d3b1a.entry.js} +2 -2
- package/dist/mint-components/{p-4ce7e3b1.entry.js → p-227aa136.entry.js} +1 -1
- package/dist/mint-components/p-2378a0dd.entry.js +16 -0
- package/dist/mint-components/{p-f3a52eb6.js → p-24d6cfcd.js} +1 -1
- package/dist/mint-components/{p-28aed7f7.system.entry.js → p-283848df.system.entry.js} +1 -1
- package/dist/mint-components/{p-7dac5a58.system.entry.js → p-28e4b275.system.entry.js} +1 -1
- package/dist/mint-components/{p-5125ec72.system.entry.js → p-2d730bef.system.entry.js} +1 -1
- package/dist/mint-components/p-3206d0a4.js +103 -0
- package/dist/mint-components/{p-cc5f9775.system.entry.js → p-3bdccbc9.system.entry.js} +1 -1
- package/dist/mint-components/{p-73069eba.entry.js → p-44435060.entry.js} +1 -1
- package/dist/mint-components/{p-fad1752b.system.entry.js → p-4cfd562e.system.entry.js} +1 -1
- package/dist/mint-components/{p-e70d8201.system.entry.js → p-538fe844.system.entry.js} +1 -1
- package/dist/mint-components/{p-7ae3ec51.system.js → p-5a48bf9d.system.js} +1 -1
- package/dist/mint-components/{p-9fcc7901.system.entry.js → p-5dd09973.system.entry.js} +1 -1
- package/dist/mint-components/p-6a4582eb.system.entry.js +1 -0
- package/dist/mint-components/{p-d4e49019.entry.js → p-6d23f01a.entry.js} +2 -2
- package/dist/mint-components/p-6f323a9f.entry.js +11 -0
- package/dist/mint-components/p-7274fe6e.js +1 -0
- package/dist/mint-components/p-7813a75a.js +1 -0
- package/dist/mint-components/{p-e1e96de9.entry.js → p-7aef9c53.entry.js} +1 -1
- package/dist/mint-components/{p-7953c3da.entry.js → p-7cbbca72.entry.js} +1 -1
- package/dist/mint-components/p-7dc10820.system.js +1 -0
- package/dist/mint-components/p-8c126ccb.system.entry.js +1 -0
- package/dist/mint-components/p-901358ee.system.entry.js +1 -0
- package/dist/mint-components/p-9481740a.system.entry.js +1 -0
- package/dist/mint-components/{p-232996b5.system.entry.js → p-95ff58b2.system.entry.js} +1 -1
- package/dist/mint-components/{p-7aba33e1.js → p-9d48280a.js} +1 -1
- package/dist/mint-components/{p-3466bfaa.js → p-a341ce23.js} +2 -2
- package/dist/mint-components/{p-b090bbd2.js → p-a348f9b9.js} +1 -1
- package/dist/mint-components/p-a39c3535.system.entry.js +1 -0
- package/dist/mint-components/{p-5efed40f.system.js → p-a44b7a52.system.js} +2 -2
- package/dist/mint-components/p-a86635aa.system.entry.js +1 -0
- package/dist/mint-components/p-ae0636bb.system.js +1 -0
- package/dist/mint-components/{p-0019d57c.entry.js → p-b55e454d.entry.js} +1 -1
- package/dist/mint-components/p-c25b0ff4.js +394 -0
- package/dist/mint-components/{p-f2c48bc8.entry.js → p-c2e3f0f0.entry.js} +1 -1
- package/dist/mint-components/{p-7daa731c.system.js → p-c7878ec7.system.js} +1 -1
- package/dist/mint-components/p-e228b351.system.js +1 -0
- package/dist/mint-components/p-e524056f.entry.js +1 -0
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-836d3ec7.entry.js → p-e8422f7b.entry.js} +2 -2
- package/dist/mint-components/p-ee17ee0b.entry.js +1 -0
- package/dist/mint-components/p-f2ebbbe3.system.entry.js +1 -0
- package/dist/mint-components/p-fba00613.entry.js +93 -0
- package/dist/mint-components/p-fd2ee10c.entry.js +9 -0
- 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 +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +2 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -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 +1 -0
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -3
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
- 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 +4 -0
- 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 +10 -4
- 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 +66 -22
- package/dist/types/global/styles.d.ts +2 -1
- package/dist/types/saasquatch.d.ts +106 -50
- package/dist/types/utils/parseStates.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -1
- package/dist/cjs/sqm-invoice-table-view-90b2433f.js +0 -2038
- package/dist/esm/sqm-invoice-table-view-df370e4a.js +0 -2022
- package/dist/esm-es5/ShadowViewAddon-d59ef625.js +0 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-df370e4a.js +0 -1
- package/dist/mint-components/p-04cc08e7.system.entry.js +0 -1
- package/dist/mint-components/p-097a255f.js +0 -1
- package/dist/mint-components/p-15ad1e97.entry.js +0 -16
- package/dist/mint-components/p-16c55bb4.entry.js +0 -205
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-31b8f0ca.system.js +0 -1
- package/dist/mint-components/p-62d924e6.system.entry.js +0 -1
- package/dist/mint-components/p-6bcac9ed.system.entry.js +0 -1
- package/dist/mint-components/p-7b97c0f4.system.entry.js +0 -1
- package/dist/mint-components/p-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-bfe08ca4.system.js +0 -1
- package/dist/mint-components/p-c53bd5bd.entry.js +0 -9
- package/dist/mint-components/p-e53c3c6e.system.js +0 -1
- package/dist/mint-components/p-f3558ef0.js +0 -394
- package/dist/mint-components/p-f66ccd51.entry.js +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +0 -20
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +0 -60
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +0 -7
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +0 -16
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +0 -43
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +0 -71
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +0 -43
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +0 -31
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +0 -8
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +0 -11
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +0 -24
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +0 -31
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +0 -20
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +0 -32
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +0 -50
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +0 -104
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +0 -48
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +0 -16
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
- package/shoelace/assets/icons/twitter-x.svg +0 -4
- /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js}
RENAMED
|
@@ -4,143 +4,23 @@ 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-242743b1.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
|
-
|
|
13
|
+
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
|
|
22
|
-
const extractProps = require('./extractProps-fd93ba62.js');
|
|
19
|
+
const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-81f1ce92.js');
|
|
20
|
+
const utils$1 = require('./utils-a6957c85.js');
|
|
21
|
+
const data = require('./data-68a42a7b.js');
|
|
23
22
|
const keys = require('./keys-cff24974.js');
|
|
24
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
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;
|
|
23
|
+
const usePayoutStatus = require('./usePayoutStatus-3cca69e5.js');
|
|
144
24
|
|
|
145
25
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
146
26
|
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;
|
|
@@ -841,7 +721,7 @@ const BankingInfoFormView = (props) => {
|
|
|
841
721
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
842
722
|
id: "formStep",
|
|
843
723
|
defaultMessage: text.formStep,
|
|
844
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
724
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
845
725
|
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
846
726
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
847
727
|
((_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 },
|
|
@@ -980,12 +860,12 @@ function useBankingInfoForm(props) {
|
|
|
980
860
|
const host = index_module._();
|
|
981
861
|
const locale = index_module.L();
|
|
982
862
|
const user = index_module.J();
|
|
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);
|
|
863
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
864
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
865
|
+
const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
|
|
986
866
|
const formRef = stencilHooks_module.useRef(null);
|
|
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);
|
|
867
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(data.FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
868
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
989
869
|
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
990
870
|
const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
991
871
|
const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
|
|
@@ -1654,7 +1534,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1654
1534
|
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;
|
|
1655
1535
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1656
1536
|
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;
|
|
1657
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
1537
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
1658
1538
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1659
1539
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1660
1540
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1747,331 +1627,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1747
1627
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1748
1628
|
}
|
|
1749
1629
|
|
|
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
|
-
|
|
2075
1630
|
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
2076
1631
|
mutation createImpactPublisherTaxDocument(
|
|
2077
1632
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -2100,10 +1655,10 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
|
2100
1655
|
function useDocusignForm(props) {
|
|
2101
1656
|
var _a, _b, _c;
|
|
2102
1657
|
const user = index_module.J();
|
|
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;
|
|
1658
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
1659
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
1660
|
+
const { data: data$1, loading: userLoading, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
1661
|
+
const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
2107
1662
|
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
2108
1663
|
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
2109
1664
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
@@ -2112,7 +1667,7 @@ function useDocusignForm(props) {
|
|
|
2112
1667
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
2113
1668
|
const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
|
|
2114
1669
|
// Only look at current document if it's valid (same as required type)
|
|
2115
|
-
const existingDocumentType =
|
|
1670
|
+
const existingDocumentType = utils$1.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
2116
1671
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
2117
1672
|
const actualDocumentType = existingDocumentType ||
|
|
2118
1673
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
@@ -2204,7 +1759,7 @@ function useDocusignForm(props) {
|
|
|
2204
1759
|
},
|
|
2205
1760
|
docusignStatus,
|
|
2206
1761
|
documentType: actualDocumentType,
|
|
2207
|
-
documentTypeString:
|
|
1762
|
+
documentTypeString: utils$1.taxTypeToName(actualDocumentType),
|
|
2208
1763
|
showExitButton,
|
|
2209
1764
|
},
|
|
2210
1765
|
data: {
|
|
@@ -2229,7 +1784,7 @@ function getDocumentType(p) {
|
|
|
2229
1784
|
return undefined;
|
|
2230
1785
|
}
|
|
2231
1786
|
|
|
2232
|
-
const style$
|
|
1787
|
+
const style$1 = {
|
|
2233
1788
|
DocusignStatusContainer: {
|
|
2234
1789
|
width: "100%",
|
|
2235
1790
|
minHeight: "600px",
|
|
@@ -2256,13 +1811,13 @@ const style$2 = {
|
|
|
2256
1811
|
},
|
|
2257
1812
|
},
|
|
2258
1813
|
};
|
|
2259
|
-
const sheet$
|
|
2260
|
-
const styleString$
|
|
1814
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1815
|
+
const styleString$1 = sheet$1.toString();
|
|
2261
1816
|
const DocusignExpiredView = (props) => {
|
|
2262
|
-
const { classes } = sheet$
|
|
1817
|
+
const { classes } = sheet$1;
|
|
2263
1818
|
const { text } = props;
|
|
2264
1819
|
return (index.h("div", null,
|
|
2265
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1820
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2266
1821
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2267
1822
|
index.h("sl-icon", { style: {
|
|
2268
1823
|
width: "50px",
|
|
@@ -2274,10 +1829,10 @@ const DocusignExpiredView = (props) => {
|
|
|
2274
1829
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2275
1830
|
};
|
|
2276
1831
|
const DocusignErrorView = (props) => {
|
|
2277
|
-
const { classes } = sheet$
|
|
1832
|
+
const { classes } = sheet$1;
|
|
2278
1833
|
const { text } = props;
|
|
2279
1834
|
return (index.h("div", null,
|
|
2280
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1835
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2281
1836
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2282
1837
|
index.h("sl-icon", { style: {
|
|
2283
1838
|
width: "50px",
|
|
@@ -2289,14 +1844,14 @@ const DocusignErrorView = (props) => {
|
|
|
2289
1844
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2290
1845
|
};
|
|
2291
1846
|
const DocusignLoadingView = () => {
|
|
2292
|
-
const { classes } = sheet$
|
|
1847
|
+
const { classes } = sheet$1;
|
|
2293
1848
|
return (index.h("div", null,
|
|
2294
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1849
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2295
1850
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2296
1851
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
2297
1852
|
};
|
|
2298
1853
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
2299
|
-
const { classes } = sheet$
|
|
1854
|
+
const { classes } = sheet$1;
|
|
2300
1855
|
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
2301
1856
|
const allowedDomains = [
|
|
2302
1857
|
"referralsaasquatch.com",
|
|
@@ -2329,12 +1884,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2329
1884
|
return index.h(DocusignExpiredView, { text: text });
|
|
2330
1885
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
2331
1886
|
return (index.h("div", { style: { height: iFrameHeight } },
|
|
2332
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1887
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2333
1888
|
index.h("div", { class: classes.IFrameContainer },
|
|
2334
1889
|
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
2335
1890
|
};
|
|
2336
1891
|
|
|
2337
|
-
const style$
|
|
1892
|
+
const style$2 = {
|
|
2338
1893
|
FormWrapper: {
|
|
2339
1894
|
display: "flex",
|
|
2340
1895
|
justifyContent: "flex-start",
|
|
@@ -2424,9 +1979,9 @@ const style$3 = {
|
|
|
2424
1979
|
fontSize: "var(--sl-font-size-medium)",
|
|
2425
1980
|
},
|
|
2426
1981
|
};
|
|
2427
|
-
const sheet$
|
|
2428
|
-
const styleString$
|
|
2429
|
-
const vanillaStyle$
|
|
1982
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
1983
|
+
const styleString$2 = sheet$2.toString();
|
|
1984
|
+
const vanillaStyle$1 = `
|
|
2430
1985
|
:host{
|
|
2431
1986
|
display: block;
|
|
2432
1987
|
}
|
|
@@ -2447,21 +2002,21 @@ const vanillaStyle$2 = `
|
|
|
2447
2002
|
const DocusignFormView = (props) => {
|
|
2448
2003
|
var _a;
|
|
2449
2004
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2450
|
-
const { classes } = sheet$
|
|
2005
|
+
const { classes } = sheet$2;
|
|
2451
2006
|
return (index.h("div", { class: classes.Container },
|
|
2452
2007
|
index.h("style", { type: "text/css" },
|
|
2453
|
-
styleString$
|
|
2454
|
-
vanillaStyle$
|
|
2008
|
+
styleString$2,
|
|
2009
|
+
vanillaStyle$1),
|
|
2455
2010
|
index.h("div", { class: classes.TextContainer },
|
|
2456
2011
|
index.h("div", null,
|
|
2457
2012
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2458
2013
|
id: "formStep",
|
|
2459
2014
|
defaultMessage: text.formStep,
|
|
2460
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
2015
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
2461
2016
|
index.h("h3", null, text.taxForm),
|
|
2462
2017
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2463
2018
|
states.loadingError && (index.h("div", null,
|
|
2464
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2019
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2465
2020
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2466
2021
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2467
2022
|
index.h("br", null),
|
|
@@ -2471,7 +2026,7 @@ const DocusignFormView = (props) => {
|
|
|
2471
2026
|
}, {
|
|
2472
2027
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2473
2028
|
})))),
|
|
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$
|
|
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$2.classes.ErrorAlertContainer },
|
|
2475
2030
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2476
2031
|
index.h("strong", null, text.error.generalTitle),
|
|
2477
2032
|
index.h("br", null),
|
|
@@ -2642,7 +2197,7 @@ const DocusignForm = class {
|
|
|
2642
2197
|
get el() { return index.getElement(this); }
|
|
2643
2198
|
};
|
|
2644
2199
|
function useDocusignFormDemo(props) {
|
|
2645
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2200
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
2646
2201
|
return cjs.cjs({
|
|
2647
2202
|
text: props.getTextProps(),
|
|
2648
2203
|
states: {
|
|
@@ -2691,7 +2246,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2691
2246
|
} }, 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")))));
|
|
2692
2247
|
};
|
|
2693
2248
|
|
|
2694
|
-
const style$
|
|
2249
|
+
const style$3 = {
|
|
2695
2250
|
FormWrapper: {
|
|
2696
2251
|
display: "flex",
|
|
2697
2252
|
justifyContent: "flex-start",
|
|
@@ -2823,9 +2378,9 @@ const style$4 = {
|
|
|
2823
2378
|
},
|
|
2824
2379
|
},
|
|
2825
2380
|
};
|
|
2826
|
-
const sheet$
|
|
2827
|
-
const styleString$
|
|
2828
|
-
const vanillaStyle$
|
|
2381
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2382
|
+
const styleString$3 = sheet$3.toString();
|
|
2383
|
+
const vanillaStyle$2 = `
|
|
2829
2384
|
:host{
|
|
2830
2385
|
display: block;
|
|
2831
2386
|
}
|
|
@@ -2852,11 +2407,11 @@ const vanillaStyle$3 = `
|
|
|
2852
2407
|
const IndirectTaxFormView = (props) => {
|
|
2853
2408
|
var _a;
|
|
2854
2409
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2855
|
-
const { classes } = sheet$
|
|
2410
|
+
const { classes } = sheet$3;
|
|
2856
2411
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2857
2412
|
index.h("style", { type: "text/css" },
|
|
2858
|
-
styleString$
|
|
2859
|
-
vanillaStyle$
|
|
2413
|
+
styleString$3,
|
|
2414
|
+
vanillaStyle$2),
|
|
2860
2415
|
index.h("div", { class: classes.TextContainer },
|
|
2861
2416
|
index.h("div", null,
|
|
2862
2417
|
!states.hideSteps && (index.h("p", null,
|
|
@@ -2864,12 +2419,12 @@ const IndirectTaxFormView = (props) => {
|
|
|
2864
2419
|
global.intl.formatMessage({
|
|
2865
2420
|
id: "formStep",
|
|
2866
2421
|
defaultMessage: text.formStep,
|
|
2867
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
2422
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
2868
2423
|
index.h("h3", null, text.indirectTax),
|
|
2869
2424
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2870
2425
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2871
2426
|
states.loadingError && (index.h("div", null,
|
|
2872
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2427
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
|
|
2873
2428
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2874
2429
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2875
2430
|
index.h("br", null),
|
|
@@ -2879,7 +2434,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2879
2434
|
}, {
|
|
2880
2435
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2881
2436
|
})))),
|
|
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$
|
|
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$3.classes.AlertContainer },
|
|
2883
2438
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2884
2439
|
index.h("strong", null, text.error.generalTitle),
|
|
2885
2440
|
index.h("br", null),
|
|
@@ -2889,7 +2444,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2889
2444
|
}, {
|
|
2890
2445
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2891
2446
|
}))),
|
|
2892
|
-
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
2447
|
+
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2893
2448
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2894
2449
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2895
2450
|
index.h("br", null),
|
|
@@ -2967,14 +2522,14 @@ function useIndirectTaxForm(props) {
|
|
|
2967
2522
|
const user = index_module.J();
|
|
2968
2523
|
const locale = index_module.L();
|
|
2969
2524
|
const formRef = stencilHooks_module.useRef(null);
|
|
2970
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2971
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2525
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
2526
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
2972
2527
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
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);
|
|
2528
|
+
const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
|
|
2529
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
2530
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
|
|
2976
2531
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
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) =>
|
|
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) => utils$1.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2978
2533
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
2979
2534
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
2980
2535
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
@@ -3089,7 +2644,7 @@ function useIndirectTaxForm(props) {
|
|
|
3089
2644
|
await refetch();
|
|
3090
2645
|
const resultPublisher = (_e = (_d = (_c = result
|
|
3091
2646
|
.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;
|
|
3092
|
-
const hasValidCurrentDocument =
|
|
2647
|
+
const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3093
2648
|
// Fire form change event
|
|
3094
2649
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
3095
2650
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
@@ -3144,10 +2699,10 @@ function useIndirectTaxForm(props) {
|
|
|
3144
2699
|
})),
|
|
3145
2700
|
},
|
|
3146
2701
|
data: {
|
|
3147
|
-
esRegions:
|
|
2702
|
+
esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3148
2703
|
countries: filteredCountries,
|
|
3149
2704
|
allCountries: _countries,
|
|
3150
|
-
provinces:
|
|
2705
|
+
provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
|
|
3151
2706
|
},
|
|
3152
2707
|
text: props.getTextProps(),
|
|
3153
2708
|
refs: {
|
|
@@ -3349,7 +2904,7 @@ const IndirectTaxForm = class {
|
|
|
3349
2904
|
const props = index_module.isDemo()
|
|
3350
2905
|
? useDemoIndirectTaxForm(this)
|
|
3351
2906
|
: useIndirectTaxForm(this);
|
|
3352
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(
|
|
2907
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
|
|
3353
2908
|
hide: props.states.formState.checked !== "otherRegion",
|
|
3354
2909
|
disabled: props.states.disabled || props.states.isPartner,
|
|
3355
2910
|
formState: props.slotProps.formState,
|
|
@@ -3367,8 +2922,8 @@ const IndirectTaxForm = class {
|
|
|
3367
2922
|
}
|
|
3368
2923
|
};
|
|
3369
2924
|
function useDemoIndirectTaxForm(props) {
|
|
3370
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
3371
|
-
const [option, setOption] = stencilHooks_module.useState(
|
|
2925
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
2926
|
+
const [option, setOption] = stencilHooks_module.useState("otherRegion");
|
|
3372
2927
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
3373
2928
|
return cjs.cjs({
|
|
3374
2929
|
states: {
|
|
@@ -3408,7 +2963,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3408
2963
|
setCountrySearch: (c) => console.log(c),
|
|
3409
2964
|
},
|
|
3410
2965
|
data: {
|
|
3411
|
-
esRegions:
|
|
2966
|
+
esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3412
2967
|
countries: [
|
|
3413
2968
|
{
|
|
3414
2969
|
countryCode: "CA",
|
|
@@ -3427,7 +2982,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3427
2982
|
displayName: "United States",
|
|
3428
2983
|
},
|
|
3429
2984
|
],
|
|
3430
|
-
provinces:
|
|
2985
|
+
provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
|
|
3431
2986
|
},
|
|
3432
2987
|
text: props.getTextProps(),
|
|
3433
2988
|
refs: {
|
|
@@ -3660,7 +3215,7 @@ const InvoiceTable = class {
|
|
|
3660
3215
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3661
3216
|
: useInvoiceTable(this, empty, loading);
|
|
3662
3217
|
reRender.useRequestRerender([this.perPage]);
|
|
3663
|
-
return (index.h(
|
|
3218
|
+
return (index.h(IndirectTaxDetailsView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3664
3219
|
}
|
|
3665
3220
|
};
|
|
3666
3221
|
function EmptySlot(props) {
|
|
@@ -3762,18 +3317,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3762
3317
|
return demoProps;
|
|
3763
3318
|
}
|
|
3764
3319
|
|
|
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
|
-
|
|
3777
3320
|
const InvoiceTableDataColumn = class {
|
|
3778
3321
|
constructor(hostRef) {
|
|
3779
3322
|
index.registerInstance(this, hostRef);
|
|
@@ -3792,23 +3335,6 @@ const InvoiceTableDataColumn = class {
|
|
|
3792
3335
|
}
|
|
3793
3336
|
};
|
|
3794
3337
|
|
|
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
|
-
|
|
3812
3338
|
const InvoiceTableDateColumn = class {
|
|
3813
3339
|
constructor(hostRef) {
|
|
3814
3340
|
index.registerInstance(this, hostRef);
|
|
@@ -3827,21 +3353,6 @@ const InvoiceTableDateColumn = class {
|
|
|
3827
3353
|
}
|
|
3828
3354
|
};
|
|
3829
3355
|
|
|
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
|
-
|
|
3845
3356
|
const InvoiceTableGenericColumn = class {
|
|
3846
3357
|
constructor(hostRef) {
|
|
3847
3358
|
index.registerInstance(this, hostRef);
|
|
@@ -3864,7 +3375,7 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
3864
3375
|
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" }),
|
|
3865
3376
|
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" })));
|
|
3866
3377
|
|
|
3867
|
-
const style$
|
|
3378
|
+
const style$4 = {
|
|
3868
3379
|
CardContainer: {
|
|
3869
3380
|
display: "grid",
|
|
3870
3381
|
gridTemplateColumns: "1fr",
|
|
@@ -4014,7 +3525,7 @@ const style$5 = {
|
|
|
4014
3525
|
},
|
|
4015
3526
|
};
|
|
4016
3527
|
function PayoutDetailsCardView(props) {
|
|
4017
|
-
const sheet = JSS.createStyleSheet(style$
|
|
3528
|
+
const sheet = JSS.createStyleSheet(style$4);
|
|
4018
3529
|
const styleString = sheet.toString();
|
|
4019
3530
|
const { classes } = sheet;
|
|
4020
3531
|
const { states, text } = props;
|
|
@@ -4066,8 +3577,8 @@ function PayoutDetailsCardView(props) {
|
|
|
4066
3577
|
|
|
4067
3578
|
function usePayoutDetailsCard(props) {
|
|
4068
3579
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
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;
|
|
3580
|
+
const { data: data$1, loading } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
3581
|
+
const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
4071
3582
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
4072
3583
|
var _a;
|
|
4073
3584
|
const currentDay = luxon.luxon.DateTime.now().day;
|
|
@@ -4145,6 +3656,10 @@ const PayoutDetailsCard = class {
|
|
|
4145
3656
|
* @uiName Payout missing information subtext
|
|
4146
3657
|
*/
|
|
4147
3658
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3659
|
+
/**
|
|
3660
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
3661
|
+
*/
|
|
3662
|
+
this.stateController = "{}";
|
|
4148
3663
|
stencilHooks_module.h$1(this);
|
|
4149
3664
|
}
|
|
4150
3665
|
disconnectedCallback() { }
|
|
@@ -4182,1220 +3697,7 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
4182
3697
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4183
3698
|
}
|
|
4184
3699
|
|
|
4185
|
-
const
|
|
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 = {
|
|
3700
|
+
const style$5 = {
|
|
5399
3701
|
ErrorAlertContainer: {
|
|
5400
3702
|
"&::part(base)": {
|
|
5401
3703
|
backgroundColor: "var(--sqm-danger-color-background)",
|
|
@@ -5586,8 +3888,8 @@ const style$6 = {
|
|
|
5586
3888
|
},
|
|
5587
3889
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5588
3890
|
};
|
|
5589
|
-
const sheet$
|
|
5590
|
-
const styleString$
|
|
3891
|
+
const sheet$4 = JSS.createStyleSheet(style$5);
|
|
3892
|
+
const styleString$4 = sheet$4.toString();
|
|
5591
3893
|
const TaxAndCashDashboardView = (props) => {
|
|
5592
3894
|
var _a, _b, _c, _d;
|
|
5593
3895
|
const { states, text, callbacks, slots } = props;
|
|
@@ -5605,7 +3907,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5605
3907
|
buttonText: text.verificationRequiredButtonText,
|
|
5606
3908
|
alertType: "warning",
|
|
5607
3909
|
icon: "exclamation-triangle",
|
|
5608
|
-
class: sheet$
|
|
3910
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5609
3911
|
};
|
|
5610
3912
|
case "VERIFICATION:INTERNAL":
|
|
5611
3913
|
return {
|
|
@@ -5618,7 +3920,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5618
3920
|
}),
|
|
5619
3921
|
alertType: "warning",
|
|
5620
3922
|
icon: "exclamation-triangle",
|
|
5621
|
-
class: sheet$
|
|
3923
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5622
3924
|
};
|
|
5623
3925
|
case "VERIFICATION:REVIEW":
|
|
5624
3926
|
return {
|
|
@@ -5631,7 +3933,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5631
3933
|
}),
|
|
5632
3934
|
alertType: "warning",
|
|
5633
3935
|
icon: "exclamation-triangle",
|
|
5634
|
-
class: sheet$
|
|
3936
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5635
3937
|
};
|
|
5636
3938
|
case "VERIFICATION:FAILED":
|
|
5637
3939
|
return {
|
|
@@ -5644,7 +3946,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5644
3946
|
}),
|
|
5645
3947
|
alertType: "critical",
|
|
5646
3948
|
icon: "exclamation-octagon",
|
|
5647
|
-
class: sheet$
|
|
3949
|
+
class: sheet$4.classes.ErrorHoldAlertContainer,
|
|
5648
3950
|
};
|
|
5649
3951
|
case "HOLD":
|
|
5650
3952
|
return {
|
|
@@ -5658,14 +3960,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5658
3960
|
buttonText: null,
|
|
5659
3961
|
alertType: "warning",
|
|
5660
3962
|
icon: "exclamation-triangle",
|
|
5661
|
-
class: sheet$
|
|
3963
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5662
3964
|
};
|
|
5663
3965
|
default:
|
|
5664
3966
|
return;
|
|
5665
3967
|
}
|
|
5666
3968
|
}
|
|
5667
3969
|
const statusMap = {
|
|
5668
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$
|
|
3970
|
+
NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5669
3971
|
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5670
3972
|
index.h("p", null, global.intl.formatMessage({
|
|
5671
3973
|
id: `badgeTextAwaitingReview`,
|
|
@@ -5673,7 +3975,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5673
3975
|
}, {
|
|
5674
3976
|
dateSubmitted: states.dateSubmitted,
|
|
5675
3977
|
})))),
|
|
5676
|
-
ACTIVE: (index.h("div", { class: sheet$
|
|
3978
|
+
ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5677
3979
|
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5678
3980
|
index.h("p", null, global.intl.formatMessage({
|
|
5679
3981
|
id: `badgeTextSubmittedOn`,
|
|
@@ -5683,12 +3985,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5683
3985
|
}, {
|
|
5684
3986
|
dateSubmitted: states.dateSubmitted,
|
|
5685
3987
|
})))),
|
|
5686
|
-
INACTIVE: (index.h("div", { class: sheet$
|
|
3988
|
+
INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5687
3989
|
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5688
3990
|
index.h("p", null, text.invalidForm))),
|
|
5689
3991
|
};
|
|
5690
3992
|
const alertMap = {
|
|
5691
|
-
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
3993
|
+
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5692
3994
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5693
3995
|
index.h("strong", null, global.intl.formatMessage({
|
|
5694
3996
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5738,9 +4040,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5738
4040
|
};
|
|
5739
4041
|
return (index.h("div", null,
|
|
5740
4042
|
index.h("div", null,
|
|
5741
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
4043
|
+
index.h("style", { type: "text/css" }, styleString$4),
|
|
5742
4044
|
states.loadingError && (index.h("div", null,
|
|
5743
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
4045
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5744
4046
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5745
4047
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5746
4048
|
index.h("br", null),
|
|
@@ -5750,7 +4052,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5750
4052
|
}, {
|
|
5751
4053
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5752
4054
|
})))),
|
|
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$
|
|
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$4.classes.ErrorAlertContainer },
|
|
5754
4056
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5755
4057
|
index.h("strong", null, text.error.generalTitle),
|
|
5756
4058
|
index.h("br", null),
|
|
@@ -5765,49 +4067,49 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5765
4067
|
index.h("strong", null, getAlert(states.payoutStatus).header),
|
|
5766
4068
|
index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
5767
4069
|
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)))),
|
|
5768
|
-
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$
|
|
4070
|
+
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5769
4071
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5770
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5771
|
-
index.h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
4072
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
4073
|
+
index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5772
4074
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5773
4075
|
index.h("div", null,
|
|
5774
4076
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5775
|
-
index.h("p", { class: sheet$
|
|
5776
|
-
index.h("div", { class: sheet$
|
|
4077
|
+
index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
4078
|
+
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5777
4079
|
slots.payoutDetailsCardSlot,
|
|
5778
|
-
!states.loading && (index.h("p", { class: sheet$
|
|
5779
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
5780
|
-
index.h("div", { class: sheet$
|
|
5781
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$
|
|
5782
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5783
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5784
|
-
index.h("h3", { class: sheet$
|
|
5785
|
-
index.h("p", { class: sheet$
|
|
5786
|
-
index.h("span", { class: sheet$
|
|
5787
|
-
index.h("div", { class: sheet$
|
|
4080
|
+
!states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4081
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4082
|
+
index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4083
|
+
index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4084
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4085
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
4086
|
+
index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
4087
|
+
index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
4088
|
+
index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4089
|
+
index.h("div", { class: sheet$4.classes.StatusContainer },
|
|
5788
4090
|
index.h("h3", null, global.intl.formatMessage({
|
|
5789
4091
|
id: "section-subheader",
|
|
5790
4092
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5791
4093
|
}, {
|
|
5792
4094
|
documentType: states.documentTypeString,
|
|
5793
4095
|
})),
|
|
5794
|
-
index.h("span", { class: sheet$
|
|
5795
|
-
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
5796
|
-
index.h("div", { class: sheet$
|
|
5797
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5798
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5799
|
-
index.h("h3", { class: sheet$
|
|
4096
|
+
index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
4097
|
+
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
4098
|
+
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4099
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4100
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
4101
|
+
index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5800
4102
|
text.indirectTaxInfoSectionHeader,
|
|
5801
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
5802
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$
|
|
5803
|
-
index.h("div", { class: sheet$
|
|
5804
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$
|
|
4103
|
+
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
4104
|
+
index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
4105
|
+
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
4106
|
+
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
|
|
5805
4107
|
id: "notRegisteredForTax",
|
|
5806
4108
|
defaultMessage: text.notRegisteredForTax,
|
|
5807
4109
|
}, {
|
|
5808
4110
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5809
4111
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
5810
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
4112
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5811
4113
|
index.h("span", null, global.intl.formatMessage({
|
|
5812
4114
|
id: `indirectTaxDetails`,
|
|
5813
4115
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5830,7 +4132,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5830
4132
|
}, {
|
|
5831
4133
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5832
4134
|
})))),
|
|
5833
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
4135
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5834
4136
|
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 },
|
|
5835
4137
|
index.h("sqm-invoice-table-download-column", null),
|
|
5836
4138
|
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -5854,12 +4156,12 @@ function getSubRegionName(regionCode) {
|
|
|
5854
4156
|
return "";
|
|
5855
4157
|
// Impact adds an underscore to some regions
|
|
5856
4158
|
const standardCode = regionCode.replace("_", "");
|
|
5857
|
-
const regions = [...
|
|
4159
|
+
const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5858
4160
|
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
5859
4161
|
}
|
|
5860
4162
|
function getIndirectTaxType(taxInformation) {
|
|
5861
4163
|
var _a;
|
|
5862
|
-
const regions = [...
|
|
4164
|
+
const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5863
4165
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
5864
4166
|
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
5865
4167
|
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
@@ -5870,14 +4172,14 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5870
4172
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
5871
4173
|
return "VAT";
|
|
5872
4174
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
5873
|
-
return
|
|
4175
|
+
return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
5874
4176
|
}
|
|
5875
4177
|
return "Indirect Tax";
|
|
5876
4178
|
}
|
|
5877
4179
|
const useTaxAndCashDashboard = (props) => {
|
|
5878
4180
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5879
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
5880
|
-
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
4181
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
4182
|
+
const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
5881
4183
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
5882
4184
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
5883
4185
|
const locale = index_module.L();
|
|
@@ -5885,8 +4187,8 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5885
4187
|
// Clear override context once on submitted
|
|
5886
4188
|
setContext({});
|
|
5887
4189
|
}, []);
|
|
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;
|
|
4190
|
+
const { data: data$1, loading, errors: userError, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
4191
|
+
const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
5890
4192
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5891
4193
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
5892
4194
|
const dateSubmitted = submissionDate
|
|
@@ -5909,8 +4211,8 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5909
4211
|
});
|
|
5910
4212
|
setStep("/3");
|
|
5911
4213
|
};
|
|
5912
|
-
const provinceName = (_d =
|
|
5913
|
-
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
4214
|
+
const provinceName = (_d = IndirectTaxDetailsView.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;
|
|
4215
|
+
const payoutStatus = data$1 ? usePayoutStatus.getStatus(data$1) : null;
|
|
5914
4216
|
stencilHooks_module.useEffect(() => {
|
|
5915
4217
|
const cb = () => refetch();
|
|
5916
4218
|
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
@@ -5923,7 +4225,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5923
4225
|
dateSubmitted,
|
|
5924
4226
|
documentType,
|
|
5925
4227
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
5926
|
-
documentTypeString:
|
|
4228
|
+
documentTypeString: utils$1.taxTypeToName(documentType),
|
|
5927
4229
|
status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
|
|
5928
4230
|
subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
|
|
5929
4231
|
subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
|
|
@@ -6286,23 +4588,31 @@ const TaxAndCashDashboard = class {
|
|
|
6286
4588
|
}
|
|
6287
4589
|
};
|
|
6288
4590
|
function useDemoTaxAndCashDashboard(props) {
|
|
4591
|
+
// const states = parseStates(props.stateController);
|
|
6289
4592
|
return cjs.cjs({
|
|
6290
4593
|
states: {
|
|
6291
4594
|
dateSubmitted: "today",
|
|
6292
4595
|
documentType: "W9",
|
|
6293
4596
|
documentTypeString: "W9",
|
|
6294
|
-
status: "ACTIVE",
|
|
6295
4597
|
country: "United States",
|
|
6296
|
-
indirectTaxNumber: 55555555,
|
|
4598
|
+
indirectTaxNumber: "55555555",
|
|
6297
4599
|
indirectTaxType: "Indirect Tax",
|
|
6298
|
-
noFormNeeded:
|
|
4600
|
+
noFormNeeded: false,
|
|
6299
4601
|
disabled: false,
|
|
6300
4602
|
loading: false,
|
|
6301
4603
|
showNewFormDialog: false,
|
|
6302
4604
|
hasHold: false,
|
|
6303
|
-
|
|
4605
|
+
subRegion: "CA",
|
|
4606
|
+
subRegionTaxNumber: undefined,
|
|
4607
|
+
qstNumber: undefined,
|
|
4608
|
+
isBusinessEntity: false,
|
|
4609
|
+
province: undefined,
|
|
4610
|
+
notRegistered: true,
|
|
4611
|
+
loadingError: false,
|
|
6304
4612
|
payoutStatus: "DONE",
|
|
6305
4613
|
veriffLoading: false,
|
|
4614
|
+
canEditPayoutInfo: true,
|
|
4615
|
+
status: "ACTIVE",
|
|
6306
4616
|
},
|
|
6307
4617
|
callbacks: {
|
|
6308
4618
|
onClick: () => console.debug("check step"),
|
|
@@ -6312,6 +4622,13 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6312
4622
|
onVerifyClick: () => console.log("verify"),
|
|
6313
4623
|
},
|
|
6314
4624
|
text: props.getTextProps(),
|
|
4625
|
+
slots: {
|
|
4626
|
+
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
|
|
4627
|
+
states: {
|
|
4628
|
+
badgeStatus: "nextPayout",
|
|
4629
|
+
},
|
|
4630
|
+
} })),
|
|
4631
|
+
},
|
|
6315
4632
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6316
4633
|
}
|
|
6317
4634
|
|
|
@@ -7286,7 +5603,7 @@ const PHONE_EXTENSIONS = {
|
|
|
7286
5603
|
},
|
|
7287
5604
|
};
|
|
7288
5605
|
|
|
7289
|
-
const style$
|
|
5606
|
+
const style$6 = {
|
|
7290
5607
|
FormWrapper: {},
|
|
7291
5608
|
ErrorInput: {
|
|
7292
5609
|
"&::part(base)": {
|
|
@@ -7386,9 +5703,9 @@ const style$7 = {
|
|
|
7386
5703
|
},
|
|
7387
5704
|
},
|
|
7388
5705
|
};
|
|
7389
|
-
const sheet$
|
|
7390
|
-
const styleString$
|
|
7391
|
-
const vanillaStyle$
|
|
5706
|
+
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5707
|
+
const styleString$5 = sheet$5.toString();
|
|
5708
|
+
const vanillaStyle$3 = `
|
|
7392
5709
|
:host{
|
|
7393
5710
|
display: block;
|
|
7394
5711
|
}
|
|
@@ -7508,7 +5825,7 @@ const vanillaStyle$4 = `
|
|
|
7508
5825
|
background-color: var(--sqm-input-background, #fff);
|
|
7509
5826
|
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
7510
5827
|
color: var(--sqm-input-color, white);
|
|
7511
|
-
border-width: var(--sqm-border-
|
|
5828
|
+
border-width: var(--sqm-border-thickness, 1px);
|
|
7512
5829
|
border-style: solid;
|
|
7513
5830
|
border-color: var(--sqm-input-border-color, #ccc);
|
|
7514
5831
|
}
|
|
@@ -7565,8 +5882,8 @@ const vanillaStyle$4 = `
|
|
|
7565
5882
|
`;
|
|
7566
5883
|
const UserInfoFormView = (props) => {
|
|
7567
5884
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
7568
|
-
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7569
|
-
const { classes } = sheet$
|
|
5885
|
+
const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
|
|
5886
|
+
const { classes } = sheet$5;
|
|
7570
5887
|
const bankingCollectionText = global.intl.formatMessage({
|
|
7571
5888
|
id: "bankingCollectionText",
|
|
7572
5889
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -7574,7 +5891,7 @@ const UserInfoFormView = (props) => {
|
|
|
7574
5891
|
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
7575
5892
|
});
|
|
7576
5893
|
let regionLabel = undefined;
|
|
7577
|
-
switch (data.regionLabelEnum) {
|
|
5894
|
+
switch (data$1.regionLabelEnum) {
|
|
7578
5895
|
case "STATE":
|
|
7579
5896
|
regionLabel = text.state;
|
|
7580
5897
|
break;
|
|
@@ -7589,10 +5906,10 @@ const UserInfoFormView = (props) => {
|
|
|
7589
5906
|
}
|
|
7590
5907
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
7591
5908
|
index.h("style", { type: "text/css" },
|
|
7592
|
-
styleString$
|
|
7593
|
-
vanillaStyle$
|
|
5909
|
+
styleString$5,
|
|
5910
|
+
vanillaStyle$3),
|
|
7594
5911
|
states.loadingError && (index.h("div", null,
|
|
7595
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5912
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
|
|
7596
5913
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7597
5914
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
7598
5915
|
index.h("br", null),
|
|
@@ -7603,16 +5920,16 @@ const UserInfoFormView = (props) => {
|
|
|
7603
5920
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7604
5921
|
})),
|
|
7605
5922
|
index.h("br", null))),
|
|
7606
|
-
states.loading ? (index.h(
|
|
5923
|
+
states.loading ? (index.h(utils$1.LoadingView, null)) : (index.h("div", null,
|
|
7607
5924
|
index.h("div", { class: classes.TextContainer },
|
|
7608
5925
|
index.h("div", null,
|
|
7609
5926
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
7610
5927
|
id: "formStep",
|
|
7611
5928
|
defaultMessage: text.formStep,
|
|
7612
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
5929
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
7613
5930
|
index.h("h3", null, text.personalInformation),
|
|
7614
5931
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
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$
|
|
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$5.classes.AlertContainer },
|
|
7616
5933
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7617
5934
|
index.h("strong", null, text.error.generalTitle),
|
|
7618
5935
|
index.h("br", null),
|
|
@@ -7622,7 +5939,7 @@ const UserInfoFormView = (props) => {
|
|
|
7622
5939
|
}, {
|
|
7623
5940
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7624
5941
|
}))),
|
|
7625
|
-
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
5942
|
+
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
7626
5943
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
7627
5944
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
7628
5945
|
index.h("br", null),
|
|
@@ -7636,18 +5953,18 @@ const UserInfoFormView = (props) => {
|
|
|
7636
5953
|
index.h("div", { class: classes.InputContainer },
|
|
7637
5954
|
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) ? {
|
|
7638
5955
|
class: classes.ErrorInput,
|
|
7639
|
-
helpText:
|
|
5956
|
+
helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
7640
5957
|
}
|
|
7641
5958
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
7642
5959
|
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) ? {
|
|
7643
5960
|
class: classes.ErrorInput,
|
|
7644
|
-
helpText:
|
|
5961
|
+
helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
7645
5962
|
}
|
|
7646
5963
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
7647
5964
|
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 }),
|
|
7648
5965
|
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) ? {
|
|
7649
5966
|
class: classes.ErrorInput,
|
|
7650
|
-
helpText:
|
|
5967
|
+
helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
7651
5968
|
}
|
|
7652
5969
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
7653
5970
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
@@ -7655,8 +5972,8 @@ const UserInfoFormView = (props) => {
|
|
|
7655
5972
|
e.stopPropagation();
|
|
7656
5973
|
}, "onSl-input": (e) => {
|
|
7657
5974
|
callbacks.setCountrySearch(e.target.value);
|
|
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 :
|
|
5975
|
+
} }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
|
|
5976
|
+
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _f === void 0 ? void 0 :
|
|
7660
5977
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
7661
5978
|
index.h("div", { class: classes.PhoneInputsSection },
|
|
7662
5979
|
index.h("p", null, text.phoneNumber),
|
|
@@ -7670,13 +5987,13 @@ const UserInfoFormView = (props) => {
|
|
|
7670
5987
|
e.stopPropagation();
|
|
7671
5988
|
}, "onSl-input": (e) => {
|
|
7672
5989
|
callbacks.setPhoneCountrySearch(e.target.value);
|
|
7673
|
-
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
5990
|
+
} }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
7674
5991
|
_h.map((c) => {
|
|
7675
5992
|
var _a, _b;
|
|
7676
5993
|
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
7677
5994
|
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 :
|
|
7678
5995
|
_b.dial_code));
|
|
7679
|
-
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
5996
|
+
}), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
|
|
7680
5997
|
_j.map((c) => {
|
|
7681
5998
|
var _a, _b;
|
|
7682
5999
|
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
@@ -7685,42 +6002,42 @@ const UserInfoFormView = (props) => {
|
|
|
7685
6002
|
})),
|
|
7686
6003
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
7687
6004
|
// Naive phone number validation
|
|
7688
|
-
|
|
7689
|
-
|
|
6005
|
+
utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
6006
|
+
utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
7690
6007
|
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
7691
6008
|
class: classes.ErrorInput,
|
|
7692
|
-
helpText:
|
|
6009
|
+
helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
7693
6010
|
}
|
|
7694
6011
|
: {}), { required: true })))),
|
|
7695
6012
|
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 }) =>
|
|
7696
6013
|
// Checks for non-ASCII characters
|
|
7697
|
-
!
|
|
7698
|
-
|
|
6014
|
+
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6015
|
+
utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
7699
6016
|
class: classes.ErrorInput,
|
|
7700
|
-
helpText:
|
|
6017
|
+
helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
|
|
7701
6018
|
}
|
|
7702
6019
|
: {}), { required: true })),
|
|
7703
6020
|
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 }) =>
|
|
7704
6021
|
// Checks for non-ASCII characters
|
|
7705
|
-
!
|
|
7706
|
-
|
|
6022
|
+
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6023
|
+
utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
7707
6024
|
class: classes.ErrorInput,
|
|
7708
|
-
helpText:
|
|
6025
|
+
helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
|
|
7709
6026
|
}
|
|
7710
6027
|
: {}), { required: true })),
|
|
7711
6028
|
!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) ? {
|
|
7712
6029
|
class: classes.ErrorInput,
|
|
7713
|
-
helpText:
|
|
6030
|
+
helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
|
|
7714
6031
|
}
|
|
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))))),
|
|
6032
|
+
: {}), { required: true }), (_p = data$1.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
7716
6033
|
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) ? {
|
|
7717
6034
|
class: classes.ErrorInput,
|
|
7718
|
-
helpText:
|
|
6035
|
+
helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
7719
6036
|
}
|
|
7720
6037
|
: {}), { required: true })),
|
|
7721
6038
|
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) ? {
|
|
7722
6039
|
class: classes.ErrorInput,
|
|
7723
|
-
helpText:
|
|
6040
|
+
helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
|
|
7724
6041
|
}
|
|
7725
6042
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
7726
6043
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
@@ -7728,11 +6045,11 @@ const UserInfoFormView = (props) => {
|
|
|
7728
6045
|
e.stopPropagation();
|
|
7729
6046
|
}, "onSl-input": (e) => {
|
|
7730
6047
|
callbacks.setCurrencySearch(e.target.value);
|
|
7731
|
-
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6048
|
+
} }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
|
|
7732
6049
|
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
7733
6050
|
c.currencyCode,
|
|
7734
6051
|
" - ",
|
|
7735
|
-
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6052
|
+
c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
7736
6053
|
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
7737
6054
|
c.currencyCode,
|
|
7738
6055
|
" - ",
|
|
@@ -7741,7 +6058,7 @@ const UserInfoFormView = (props) => {
|
|
|
7741
6058
|
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
7742
6059
|
e.target.value = e.target.checked;
|
|
7743
6060
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
7744
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText },
|
|
6061
|
+
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, utils$1.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
7745
6062
|
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
7746
6063
|
};
|
|
7747
6064
|
|
|
@@ -7750,12 +6067,12 @@ function useUserInfoForm(props) {
|
|
|
7750
6067
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
7751
6068
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
7752
6069
|
const formRef = stencilHooks_module.useRef(null);
|
|
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);
|
|
6070
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
6071
|
+
const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
|
|
6072
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
6073
|
+
const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
|
|
6074
|
+
const { data: data$1, loading, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
6075
|
+
const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
|
|
7759
6076
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
7760
6077
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
7761
6078
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -7766,11 +6083,11 @@ function useUserInfoForm(props) {
|
|
|
7766
6083
|
const [formErrors, setErrors] = stencilHooks_module.useState({});
|
|
7767
6084
|
stencilHooks_module.useEffect(() => {
|
|
7768
6085
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7769
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6086
|
+
const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
|
|
7770
6087
|
if (!user || step !== "/1")
|
|
7771
6088
|
return;
|
|
7772
6089
|
// If form already filled out, skip initialising it
|
|
7773
|
-
if (
|
|
6090
|
+
if (utils$1.objectIsFull(userFormContext))
|
|
7774
6091
|
return;
|
|
7775
6092
|
// Prefer MI email if it was verified before this
|
|
7776
6093
|
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
@@ -7807,7 +6124,7 @@ function useUserInfoForm(props) {
|
|
|
7807
6124
|
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
7808
6125
|
});
|
|
7809
6126
|
}
|
|
7810
|
-
}, [data, step, userFormContext]);
|
|
6127
|
+
}, [data$1, step, userFormContext]);
|
|
7811
6128
|
const onFormChange = (field, e) => {
|
|
7812
6129
|
var _a, _b;
|
|
7813
6130
|
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
@@ -7899,7 +6216,7 @@ function useUserInfoForm(props) {
|
|
|
7899
6216
|
}
|
|
7900
6217
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
7901
6218
|
const regionObj = hasStates
|
|
7902
|
-
?
|
|
6219
|
+
? IndirectTaxDetailsView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
7903
6220
|
: {};
|
|
7904
6221
|
return {
|
|
7905
6222
|
setStep: setStep,
|
|
@@ -7932,8 +6249,8 @@ function useUserInfoForm(props) {
|
|
|
7932
6249
|
disabled: loading,
|
|
7933
6250
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
7934
6251
|
loading: loading,
|
|
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),
|
|
6252
|
+
isPartner: !!((_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
|
|
6253
|
+
isUser: !!((_d = (_c = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
|
|
7937
6254
|
formState: {
|
|
7938
6255
|
...userFormContext,
|
|
7939
6256
|
errors: formErrors,
|
|
@@ -8116,19 +6433,20 @@ const TaxForm = class {
|
|
|
8116
6433
|
}
|
|
8117
6434
|
render() {
|
|
8118
6435
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
8119
|
-
return (index.h(
|
|
6436
|
+
return (index.h(UserInfoFormView, { data: props.data,
|
|
8120
6437
|
// @ts-ignore
|
|
8121
6438
|
states: props.states, callbacks: {
|
|
8122
6439
|
...props.callbacks,
|
|
8123
6440
|
onSubmit: props.onSubmit,
|
|
8124
|
-
}, text: props.text, refs: props.refs }))
|
|
6441
|
+
}, text: props.text, refs: props.refs }));
|
|
8125
6442
|
}
|
|
8126
6443
|
};
|
|
8127
6444
|
function useDemoUserInfoForm(props) {
|
|
8128
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6445
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
6446
|
+
// @ts-ignore
|
|
8129
6447
|
return cjs.cjs({
|
|
8130
6448
|
setStep,
|
|
8131
|
-
onSubmit: () => {
|
|
6449
|
+
onSubmit: async () => {
|
|
8132
6450
|
setStep("/2");
|
|
8133
6451
|
},
|
|
8134
6452
|
onRadioClick: () => { },
|
|
@@ -8172,19 +6490,12 @@ function useDemoUserInfoForm(props) {
|
|
|
8172
6490
|
}
|
|
8173
6491
|
|
|
8174
6492
|
exports.sqm_banking_info_form = BankingInfoForm;
|
|
8175
|
-
exports.sqm_code_verification = WidgetCodeVerification;
|
|
8176
6493
|
exports.sqm_docusign_form = DocusignForm;
|
|
8177
6494
|
exports.sqm_indirect_tax_form = IndirectTaxForm;
|
|
8178
6495
|
exports.sqm_invoice_table = InvoiceTable;
|
|
8179
|
-
exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
|
|
8180
6496
|
exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
|
|
8181
|
-
exports.sqm_invoice_table_date_cell = RewardTableDateCell;
|
|
8182
6497
|
exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
|
|
8183
|
-
exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
|
|
8184
6498
|
exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
|
|
8185
6499
|
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;
|
|
8189
6500
|
exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
|
|
8190
6501
|
exports.sqm_user_info_form = TaxForm;
|