@saasquatch/mint-components 1.15.0-45 → 1.15.0-46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-bebbd4d0.js → ShadowViewAddon-85d2eed4.js} +1056 -1056
- package/dist/cjs/{extractProps-e9c55ba8.js → extractProps-fd93ba62.js} +0 -14
- package/dist/cjs/{global-242743b1.js → global-2298fc8b.js} +58 -73
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +1902 -213
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +3 -3
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-invoice-table-view-90b2433f.js +2038 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-38bfdda4.js → sqm-portal-email-verification-view-0a93a148.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-036d355e.js → sqm-portal-profile-view-44a83439.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +13992 -15287
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +3 -11
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +7 -17
- package/dist/cjs/{usePayoutStatus-3cca69e5.js → usePayoutStatus-f26f0467.js} +5 -8
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +1 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +1 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -3
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +1 -1
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +3 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +4 -6
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -2
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +3 -5
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +3 -5
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +9 -11
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +3 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +78 -78
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +5 -39
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +7 -42
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +8 -12
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -26
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +5 -8
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +28 -77
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +4 -19
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -6
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/global/styles.js +58 -73
- package/dist/collection/global/styles.ts +40 -48
- package/dist/esm/{ShadowViewAddon-b439f9c5.js → ShadowViewAddon-d59ef625.js} +1059 -1059
- package/dist/esm/{extractProps-54064fb0.js → extractProps-ae1afbb3.js} +1 -14
- package/dist/esm/{global-f33bb903.js → global-2da1dcec.js} +58 -73
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{sqm-banking-info-form_10.entry.js → sqm-banking-info-form_17.entry.js} +1819 -137
- package/dist/esm/sqm-big-stat_42.entry.js +3 -3
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-invoice-table-view-df370e4a.js +2022 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-e8661ca9.js → sqm-portal-email-verification-view-e38ec8cc.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-70e1a345.js → sqm-portal-profile-view-e594d1ee.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -3
- package/dist/esm/sqm-stencilbook.entry.js +14017 -15312
- package/dist/esm/sqm-widget-verification-controller.entry.js +4 -12
- package/dist/esm/sqm-widget-verification.entry.js +7 -17
- package/dist/esm/{usePayoutStatus-e92a6e43.js → usePayoutStatus-3768c8c3.js} +5 -8
- package/dist/esm-es5/ShadowViewAddon-d59ef625.js +1 -0
- package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
- package/dist/esm-es5/{global-f33bb903.js → global-2da1dcec.js} +4 -4
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-df370e4a.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-e8661ca9.js → sqm-portal-email-verification-view-e38ec8cc.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-70e1a345.js → sqm-portal-profile-view-e594d1ee.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-e92a6e43.js → usePayoutStatus-3768c8c3.js} +2 -2
- package/dist/mint-components/global/styles.ts +40 -48
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-b55e454d.entry.js → p-0019d57c.entry.js} +1 -1
- package/dist/mint-components/p-04cc08e7.system.entry.js +1 -0
- package/dist/mint-components/p-097a255f.js +1 -0
- package/dist/mint-components/p-15ad1e97.entry.js +16 -0
- package/dist/mint-components/p-16c55bb4.entry.js +205 -0
- package/dist/mint-components/{p-95ff58b2.system.entry.js → p-232996b5.system.entry.js} +1 -1
- package/dist/mint-components/p-26468242.js +1 -0
- package/dist/mint-components/{p-283848df.system.entry.js → p-28aed7f7.system.entry.js} +1 -1
- package/dist/mint-components/p-31b8f0ca.system.js +1 -0
- package/dist/mint-components/{p-a341ce23.js → p-3466bfaa.js} +2 -2
- package/dist/mint-components/{p-227aa136.entry.js → p-4ce7e3b1.entry.js} +1 -1
- package/dist/mint-components/{p-2d730bef.system.entry.js → p-5125ec72.system.entry.js} +1 -1
- package/dist/mint-components/{p-a44b7a52.system.js → p-5efed40f.system.js} +2 -2
- package/dist/mint-components/p-62d924e6.system.entry.js +1 -0
- package/dist/mint-components/p-6bcac9ed.system.entry.js +1 -0
- package/dist/mint-components/{p-44435060.entry.js → p-73069eba.entry.js} +1 -1
- package/dist/mint-components/{p-1f8d3b1a.entry.js → p-761ee9ea.entry.js} +2 -2
- package/dist/mint-components/{p-7cbbca72.entry.js → p-7953c3da.entry.js} +1 -1
- package/dist/mint-components/{p-9d48280a.js → p-7aba33e1.js} +1 -1
- package/dist/mint-components/{p-5a48bf9d.system.js → p-7ae3ec51.system.js} +1 -1
- package/dist/mint-components/p-7b97c0f4.system.entry.js +1 -0
- package/dist/mint-components/{p-c7878ec7.system.js → p-7daa731c.system.js} +1 -1
- package/dist/mint-components/{p-28e4b275.system.entry.js → p-7dac5a58.system.entry.js} +1 -1
- package/dist/mint-components/{p-e8422f7b.entry.js → p-836d3ec7.entry.js} +2 -2
- package/dist/mint-components/{p-5dd09973.system.entry.js → p-9fcc7901.system.entry.js} +1 -1
- package/dist/mint-components/{p-059ad130.system.entry.js → p-a121e5a1.system.entry.js} +1 -1
- package/dist/mint-components/p-a8645c1b.system.js +1 -0
- package/dist/mint-components/{p-a348f9b9.js → p-b090bbd2.js} +1 -1
- package/dist/mint-components/p-bfe08ca4.system.js +1 -0
- package/dist/mint-components/p-c53bd5bd.entry.js +9 -0
- package/dist/mint-components/{p-3bdccbc9.system.entry.js → p-cc5f9775.system.entry.js} +1 -1
- package/dist/mint-components/{p-10849094.system.js → p-d49373b7.system.js} +1 -1
- package/dist/mint-components/{p-6d23f01a.entry.js → p-d4e49019.entry.js} +2 -2
- package/dist/mint-components/{p-7aef9c53.entry.js → p-e1e96de9.entry.js} +1 -1
- package/dist/mint-components/p-e53c3c6e.system.js +1 -0
- package/dist/mint-components/{p-538fe844.system.entry.js → p-e70d8201.system.entry.js} +1 -1
- package/dist/mint-components/{p-c2e3f0f0.entry.js → p-f2c48bc8.entry.js} +1 -1
- package/dist/mint-components/p-f3558ef0.js +394 -0
- package/dist/mint-components/{p-24d6cfcd.js → p-f3a52eb6.js} +1 -1
- package/dist/mint-components/p-f66ccd51.entry.js +1 -0
- package/dist/mint-components/{p-4cfd562e.system.entry.js → p-fad1752b.system.entry.js} +1 -1
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +20 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -2
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +60 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +3 -3
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +7 -0
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +16 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +43 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +71 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +43 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +31 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +0 -1
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +8 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +11 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +24 -0
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +31 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +20 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +32 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +50 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +104 -0
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +48 -0
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -3
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +16 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +0 -5
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +1 -6
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +4 -10
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components.d.ts +22 -66
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/global/styles.d.ts +1 -2
- package/dist/types/saasquatch.d.ts +50 -106
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -2
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/cjs/IndirectTaxDetailsView-81f1ce92.js +0 -646
- package/dist/cjs/data-68a42a7b.js +0 -137
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -342
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +0 -84
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1220
- package/dist/cjs/utils-a6957c85.js +0 -105
- package/dist/collection/utils/parseStates.js +0 -12
- package/dist/esm/IndirectTaxDetailsView-89731480.js +0 -639
- package/dist/esm/data-ce8ed0ae.js +0 -121
- package/dist/esm/sqm-code-verification.entry.js +0 -338
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +0 -76
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1216
- package/dist/esm/utils-79d81bca.js +0 -97
- package/dist/esm-es5/IndirectTaxDetailsView-89731480.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-b439f9c5.js +0 -1
- package/dist/esm-es5/data-ce8ed0ae.js +0 -1
- package/dist/esm-es5/extractProps-54064fb0.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/utils-79d81bca.js +0 -1
- package/dist/mint-components/p-0768fe1d.system.js +0 -1
- package/dist/mint-components/p-0797a946.js +0 -1
- package/dist/mint-components/p-169c8564.system.js +0 -1
- package/dist/mint-components/p-1e79befd.entry.js +0 -1
- package/dist/mint-components/p-2378a0dd.entry.js +0 -16
- package/dist/mint-components/p-3206d0a4.js +0 -103
- package/dist/mint-components/p-6a4582eb.system.entry.js +0 -1
- package/dist/mint-components/p-6f323a9f.entry.js +0 -11
- package/dist/mint-components/p-7274fe6e.js +0 -1
- package/dist/mint-components/p-7813a75a.js +0 -1
- package/dist/mint-components/p-7dc10820.system.js +0 -1
- package/dist/mint-components/p-8c126ccb.system.entry.js +0 -1
- package/dist/mint-components/p-901358ee.system.entry.js +0 -1
- package/dist/mint-components/p-9481740a.system.entry.js +0 -1
- package/dist/mint-components/p-a39c3535.system.entry.js +0 -1
- package/dist/mint-components/p-a86635aa.system.entry.js +0 -1
- package/dist/mint-components/p-ae0636bb.system.js +0 -1
- package/dist/mint-components/p-c25b0ff4.js +0 -394
- package/dist/mint-components/p-e228b351.system.js +0 -1
- package/dist/mint-components/p-e524056f.entry.js +0 -1
- package/dist/mint-components/p-e55aafe9.system.js +0 -1
- package/dist/mint-components/p-ee17ee0b.entry.js +0 -1
- package/dist/mint-components/p-f2ebbbe3.system.entry.js +0 -1
- package/dist/mint-components/p-fba00613.entry.js +0 -93
- package/dist/mint-components/p-fd2ee10c.entry.js +0 -9
- package/dist/types/utils/parseStates.d.ts +0 -1
- /package/dist/collection/components/tax-and-cash/{data.js → sqm-tax-and-cash/data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{data.d.ts → sqm-tax-and-cash/data.d.ts} +0 -0
|
@@ -0,0 +1,2038 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-a43a63b4.js');
|
|
4
|
+
const global = require('./global-2298fc8b.js');
|
|
5
|
+
const JSS = require('./JSS-8503a151.js');
|
|
6
|
+
const ErrorView = require('./ErrorView-5504c2b6.js');
|
|
7
|
+
|
|
8
|
+
const INDIRECT_TAX_PROVINCES = [
|
|
9
|
+
{ regionCode: "ALBERTA", taxType: "GST", displayName: "Alberta" },
|
|
10
|
+
{
|
|
11
|
+
regionCode: "BRITISHCOLUMBIA",
|
|
12
|
+
taxType: "HST",
|
|
13
|
+
displayName: "British Columbia",
|
|
14
|
+
},
|
|
15
|
+
{ regionCode: "MANITOBA", taxType: "HST", displayName: "Manitoba" },
|
|
16
|
+
{
|
|
17
|
+
regionCode: "NEWBRUNSWICK",
|
|
18
|
+
taxType: "HST",
|
|
19
|
+
displayName: "New Brunswick",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
regionCode: "NEWFOUNDLANDLABRADOR",
|
|
23
|
+
taxType: "HST",
|
|
24
|
+
displayName: "Newfoundland",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
regionCode: "NORTHWESTTERRITORIES",
|
|
28
|
+
taxType: "GST",
|
|
29
|
+
displayName: "North West Territories",
|
|
30
|
+
},
|
|
31
|
+
{ regionCode: "NOVASCOTIA", taxType: "HST", displayName: "Nova Scotia" },
|
|
32
|
+
{ regionCode: "NUNAVUT", taxType: "HST", displayName: "Nunavut" },
|
|
33
|
+
{ regionCode: "ONTARIO", taxType: "HST", displayName: "Ontario" },
|
|
34
|
+
{
|
|
35
|
+
regionCode: "PRINCEEDWARDISLAND",
|
|
36
|
+
taxType: "HST",
|
|
37
|
+
displayName: "Prince Edward Island",
|
|
38
|
+
},
|
|
39
|
+
{ regionCode: "QUEBEC", taxType: "GST", displayName: "Quebec" },
|
|
40
|
+
{ regionCode: "SASKATCHEWAN", taxType: "HST", displayName: "Saskatchewan" },
|
|
41
|
+
{ regionCode: "YUKON", taxType: "GST", displayName: "Yukon" },
|
|
42
|
+
];
|
|
43
|
+
const INDIRECT_TAX_SPAIN_REGIONS = [
|
|
44
|
+
{ regionCode: "SPAINPROPER", taxType: "VAT", displayName: "Spain Proper" },
|
|
45
|
+
{
|
|
46
|
+
regionCode: "CANARYISLANDS",
|
|
47
|
+
taxType: "VAT",
|
|
48
|
+
displayName: "Canary Islands",
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
const ADDRESS_REGIONS = {
|
|
52
|
+
CA: {
|
|
53
|
+
labelEnum: "PROVINCE",
|
|
54
|
+
regions: [
|
|
55
|
+
{
|
|
56
|
+
label: "Alberta",
|
|
57
|
+
value: "ALBERTA",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "British Columbia",
|
|
61
|
+
value: "BRITISHCOLUMBIA",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "Manitoba",
|
|
65
|
+
value: "MANITOBA",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: "New Brunswick",
|
|
69
|
+
value: "NEWBRUNSWICK",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: "Newfoundland & Labrador",
|
|
73
|
+
value: "NEWFOUNDLANDANDLABRADOR",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: "Northwest Territories",
|
|
77
|
+
value: "NORTHWESTTERRITORIES",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: "Nova Scotia",
|
|
81
|
+
value: "NOVASCOTIA",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: "Nunavut",
|
|
85
|
+
value: "NUNAVUT",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: "Ontario",
|
|
89
|
+
value: "ONTARIO",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: "Prince Edward Island",
|
|
93
|
+
value: "PRINCEEDWARDISLAND",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: "Quebec",
|
|
97
|
+
value: "QUEBEC",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
label: "Saskatchewan",
|
|
101
|
+
value: "SASKATCHEWAN",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: "Yukon",
|
|
105
|
+
value: "YUKON",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
ES: {
|
|
110
|
+
labelEnum: "REGION",
|
|
111
|
+
regions: [
|
|
112
|
+
{
|
|
113
|
+
label: "Canary Islands",
|
|
114
|
+
value: "CANARYISLANDS",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
label: "Spain Proper",
|
|
118
|
+
value: "SPAINPROPER",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
AU: {
|
|
123
|
+
labelEnum: "STATE",
|
|
124
|
+
regions: [
|
|
125
|
+
{
|
|
126
|
+
label: "Australian Capital Territory",
|
|
127
|
+
value: "CAPITALTERRITORY",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: "New South Wales",
|
|
131
|
+
value: "NEWSOUTHWALES",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
label: "Northern Territory",
|
|
135
|
+
value: "NORTHERNTERRITORY",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
label: "Queensland",
|
|
139
|
+
value: "QUEENSLAND",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
label: "South Australia",
|
|
143
|
+
value: "SOUTHAUSTRALIA",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
label: "Tasmania",
|
|
147
|
+
value: "TASMANIA",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
label: "Victoria",
|
|
151
|
+
value: "VICTORIA",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
label: "Western Australia",
|
|
155
|
+
value: "WESTERNAUSTRALIA",
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
US: {
|
|
160
|
+
labelEnum: "STATE",
|
|
161
|
+
regions: [
|
|
162
|
+
{
|
|
163
|
+
label: "Alabama",
|
|
164
|
+
value: "ALABAMA",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
label: "Alaska",
|
|
168
|
+
value: "ALASKA",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
label: "Arizona",
|
|
172
|
+
value: "ARIZONA",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
label: "Arkansas",
|
|
176
|
+
value: "ARKANSAS",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
label: "California",
|
|
180
|
+
value: "CALIFORNIA",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
label: "Colorado",
|
|
184
|
+
value: "COLORADO",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
label: "Connecticut",
|
|
188
|
+
value: "CONNECTICUT",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
label: "Delaware",
|
|
192
|
+
value: "DELAWARE",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
label: "District of Columbia",
|
|
196
|
+
value: "DISTRICTOFCOLUMBIA",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: "Florida",
|
|
200
|
+
value: "FLORIDA",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
label: "Georgia",
|
|
204
|
+
value: "GEORGIA",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
label: "Hawaii",
|
|
208
|
+
value: "HAWAII",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
label: "Idaho",
|
|
212
|
+
value: "IDAHO",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
label: "Illinois",
|
|
216
|
+
value: "ILLINOIS",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
label: "Indiana",
|
|
220
|
+
value: "INDIANA",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
label: "Iowa",
|
|
224
|
+
value: "IOWA",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
label: "Kansas",
|
|
228
|
+
value: "KANSAS",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
label: "Kentucky",
|
|
232
|
+
value: "KENTUCKY",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
label: "Louisiana",
|
|
236
|
+
value: "LOUISIANA",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
label: "Maine",
|
|
240
|
+
value: "MAINE",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
label: "Maryland",
|
|
244
|
+
value: "MARYLAND",
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
label: "Massachusetts",
|
|
248
|
+
value: "MASSACHUSETTS",
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
label: "Michigan",
|
|
252
|
+
value: "MICHIGAN",
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
label: "Minnesota",
|
|
256
|
+
value: "MINNESOTA",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
label: "Mississippi",
|
|
260
|
+
value: "MISSISSIPPI",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
label: "Missouri",
|
|
264
|
+
value: "MISSOURI",
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
label: "Montana",
|
|
268
|
+
value: "MONTANA",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
label: "Nebraska",
|
|
272
|
+
value: "NEBRASKA",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
label: "Nevada",
|
|
276
|
+
value: "NEVADA",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
label: "New Hampshire",
|
|
280
|
+
value: "NEWHAMPSHIRE",
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
label: "New Jersey",
|
|
284
|
+
value: "NEWJERSEY",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
label: "New Mexico",
|
|
288
|
+
value: "NEWMEXICO",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
label: "New York",
|
|
292
|
+
value: "NEWYORK",
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
label: "North Carolina",
|
|
296
|
+
value: "NORTHCAROLINA",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
label: "North Dakota",
|
|
300
|
+
value: "NORTHDAKOTA",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
label: "Ohio",
|
|
304
|
+
value: "OHIO",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
label: "Oklahoma",
|
|
308
|
+
value: "OKLAHOMA",
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
label: "Oregon",
|
|
312
|
+
value: "OREGON",
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
label: "Pennsylvania",
|
|
316
|
+
value: "PENNSYLVANIA",
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
label: "Rhode Island",
|
|
320
|
+
value: "RHODEISLAND",
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
label: "South Carolina",
|
|
324
|
+
value: "SOUTHCAROLINA",
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
label: "South Dakota",
|
|
328
|
+
value: "SOUTHDAKOTA",
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
label: "Tennessee",
|
|
332
|
+
value: "TENNESSEE",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
label: "Texas",
|
|
336
|
+
value: "TEXAS",
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
label: "Utah",
|
|
340
|
+
value: "UTAH",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
label: "Vermont",
|
|
344
|
+
value: "VERMONT",
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
label: "Virgin Islands",
|
|
348
|
+
value: "VIRGINISLANDS",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
label: "Virginia",
|
|
352
|
+
value: "VIRGINIA",
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
label: "Washington",
|
|
356
|
+
value: "WASHINGTON",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
label: "West Virginia",
|
|
360
|
+
value: "WESTVIRGINIA",
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
label: "Wisconsin",
|
|
364
|
+
value: "WISCONSIN",
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
label: "Wyoming",
|
|
368
|
+
value: "WYOMING",
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
label: "Americas Forces",
|
|
372
|
+
value: "AAMILITARY",
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
label: "Europe, Middle East, Canada, Africa and Canada Forces",
|
|
376
|
+
value: "AEMILITARY",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
label: "Pacific Forces",
|
|
380
|
+
value: "APMILITARY",
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
label: "Other",
|
|
384
|
+
value: "OTHER",
|
|
385
|
+
},
|
|
386
|
+
],
|
|
387
|
+
},
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
const style = {
|
|
391
|
+
Container: {
|
|
392
|
+
display: "flex",
|
|
393
|
+
flexDirection: "column",
|
|
394
|
+
gap: "24px",
|
|
395
|
+
},
|
|
396
|
+
HeaderContainer: {
|
|
397
|
+
display: "flex",
|
|
398
|
+
flexDirection: "column",
|
|
399
|
+
gap: "10px",
|
|
400
|
+
},
|
|
401
|
+
TitleSkeleton: {
|
|
402
|
+
width: "45%",
|
|
403
|
+
height: "40px !important",
|
|
404
|
+
},
|
|
405
|
+
StepSkeleton: {
|
|
406
|
+
width: "15%",
|
|
407
|
+
},
|
|
408
|
+
HeaderSkeleton: {
|
|
409
|
+
width: "25%",
|
|
410
|
+
height: "30px !important",
|
|
411
|
+
},
|
|
412
|
+
InputSkeleton: {
|
|
413
|
+
width: "75%",
|
|
414
|
+
},
|
|
415
|
+
ButtonSkeleton: {
|
|
416
|
+
width: "80px",
|
|
417
|
+
height: "30px !important",
|
|
418
|
+
},
|
|
419
|
+
};
|
|
420
|
+
const sheet = JSS.createStyleSheet(style);
|
|
421
|
+
const styleString = sheet.toString();
|
|
422
|
+
const LoadingView = () => {
|
|
423
|
+
return (index.h("div", { class: sheet.classes.Container },
|
|
424
|
+
index.h("style", { type: "text/css" }, styleString),
|
|
425
|
+
index.h("sl-skeleton", { class: sheet.classes.TitleSkeleton }),
|
|
426
|
+
index.h("div", { class: sheet.classes.HeaderContainer },
|
|
427
|
+
index.h("sl-skeleton", { class: sheet.classes.StepSkeleton }),
|
|
428
|
+
index.h("sl-skeleton", { class: sheet.classes.HeaderSkeleton })),
|
|
429
|
+
index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
430
|
+
index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
431
|
+
index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
432
|
+
index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
433
|
+
index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
434
|
+
index.h("sl-skeleton", { class: sheet.classes.StepSkeleton }),
|
|
435
|
+
index.h("sl-skeleton", { class: sheet.classes.ButtonSkeleton })));
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
function validTaxDocument(requiredType) {
|
|
439
|
+
const validTypes = ["W9", "W8BENE", "W8BEN"];
|
|
440
|
+
if (validTypes.includes(requiredType))
|
|
441
|
+
return true;
|
|
442
|
+
return false;
|
|
443
|
+
}
|
|
444
|
+
const objectIsFull = (obj) => {
|
|
445
|
+
return !Object.keys(obj).find((k) => obj[k] == undefined);
|
|
446
|
+
};
|
|
447
|
+
const taxTypeToName = (taxType) => {
|
|
448
|
+
switch (taxType) {
|
|
449
|
+
case "W9":
|
|
450
|
+
return "W-9";
|
|
451
|
+
case "W8BEN":
|
|
452
|
+
case "W8BENE":
|
|
453
|
+
return "W-8";
|
|
454
|
+
default:
|
|
455
|
+
return "";
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
function validateBillingField(regex, value) {
|
|
459
|
+
const trimmed = value.trim();
|
|
460
|
+
const idx = trimmed.search(regex);
|
|
461
|
+
return idx > -1;
|
|
462
|
+
}
|
|
463
|
+
const formatErrorMessage = (fieldName, errorMessage) => {
|
|
464
|
+
return global.intl.formatMessage({
|
|
465
|
+
id: fieldName,
|
|
466
|
+
defaultMessage: errorMessage,
|
|
467
|
+
}, {
|
|
468
|
+
fieldName,
|
|
469
|
+
});
|
|
470
|
+
};
|
|
471
|
+
function getCountryObj({ countryCode, locale, }) {
|
|
472
|
+
// @ts-ignore DisplayNames not in Intl type
|
|
473
|
+
const displayName = new Intl.DisplayNames([locale], {
|
|
474
|
+
type: "region",
|
|
475
|
+
}).of(countryCode);
|
|
476
|
+
return {
|
|
477
|
+
countryCode,
|
|
478
|
+
displayName,
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
const TaxForm_stories = {
|
|
483
|
+
title: "Components/Tax Form",
|
|
484
|
+
};
|
|
485
|
+
const stepOneProps = {
|
|
486
|
+
states: {
|
|
487
|
+
step: "1",
|
|
488
|
+
hideSteps: false,
|
|
489
|
+
hideState: false,
|
|
490
|
+
loading: false,
|
|
491
|
+
disabled: false,
|
|
492
|
+
isPartner: false,
|
|
493
|
+
isUser: false,
|
|
494
|
+
loadingError: false,
|
|
495
|
+
formState: {
|
|
496
|
+
firstName: "Bob",
|
|
497
|
+
lastName: "Testerson",
|
|
498
|
+
email: "bobtesterson@example.com",
|
|
499
|
+
phoneNumberCountryCode: "US",
|
|
500
|
+
phoneNumber: "555 555 5555",
|
|
501
|
+
countryCode: "US",
|
|
502
|
+
currency: "CAD",
|
|
503
|
+
address: "2/1337 Johnson Street",
|
|
504
|
+
city: "Vancouver",
|
|
505
|
+
state: "BC",
|
|
506
|
+
postalCode: "555 555",
|
|
507
|
+
errors: {},
|
|
508
|
+
},
|
|
509
|
+
},
|
|
510
|
+
data: {
|
|
511
|
+
regionLabelEnum: "STATE",
|
|
512
|
+
regions: [],
|
|
513
|
+
phoneCountries: [
|
|
514
|
+
{
|
|
515
|
+
countryCode: "CA",
|
|
516
|
+
displayName: "Canada",
|
|
517
|
+
},
|
|
518
|
+
],
|
|
519
|
+
countries: [
|
|
520
|
+
{
|
|
521
|
+
countryCode: "CA",
|
|
522
|
+
displayName: "Canada",
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
countryCode: "ES",
|
|
526
|
+
displayName: "Spain",
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
countryCode: "UK",
|
|
530
|
+
displayName: "United Kingdom",
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
countryCode: "US",
|
|
534
|
+
displayName: "United States",
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
countryCode: "AR",
|
|
538
|
+
displayName: "Argentina",
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
countryCode: "AU",
|
|
542
|
+
displayName: "Australia",
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
countryCode: "ZW",
|
|
546
|
+
displayName: "Zimbabwe",
|
|
547
|
+
},
|
|
548
|
+
],
|
|
549
|
+
currencies: [
|
|
550
|
+
{
|
|
551
|
+
currencyCode: "CAD",
|
|
552
|
+
displayName: "CAD",
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
currencyCode: "GBP",
|
|
556
|
+
displayName: "GBP",
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
currencyCode: "USD",
|
|
560
|
+
displayName: "USD",
|
|
561
|
+
},
|
|
562
|
+
],
|
|
563
|
+
allCountries: [
|
|
564
|
+
{
|
|
565
|
+
countryCode: "CA",
|
|
566
|
+
displayName: "Canada",
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
countryCode: "ES",
|
|
570
|
+
displayName: "Spain",
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
countryCode: "UK",
|
|
574
|
+
displayName: "United Kingdom",
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
countryCode: "US",
|
|
578
|
+
displayName: "United States",
|
|
579
|
+
},
|
|
580
|
+
],
|
|
581
|
+
allCurrencies: [
|
|
582
|
+
{
|
|
583
|
+
currencyCode: "CAD",
|
|
584
|
+
displayName: "CAD",
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
currencyCode: "GBP",
|
|
588
|
+
displayName: "GBP",
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
currencyCode: "USD",
|
|
592
|
+
displayName: "USD",
|
|
593
|
+
},
|
|
594
|
+
],
|
|
595
|
+
},
|
|
596
|
+
refs: {
|
|
597
|
+
formRef: { current: null },
|
|
598
|
+
currencyRef: { current: null },
|
|
599
|
+
phoneCountryRef: { current: null },
|
|
600
|
+
},
|
|
601
|
+
};
|
|
602
|
+
const stepTwoProps = {
|
|
603
|
+
states: {
|
|
604
|
+
step: "2",
|
|
605
|
+
hideSteps: false,
|
|
606
|
+
disabled: false,
|
|
607
|
+
loading: false,
|
|
608
|
+
isPartner: false,
|
|
609
|
+
loadingError: false,
|
|
610
|
+
formState: {
|
|
611
|
+
checked: undefined,
|
|
612
|
+
errors: {},
|
|
613
|
+
},
|
|
614
|
+
},
|
|
615
|
+
callbacks: {
|
|
616
|
+
onSubmit: async () => console.log("Submit"),
|
|
617
|
+
onChange: () => console.log("Submit"),
|
|
618
|
+
onBack: () => console.log("Submit"),
|
|
619
|
+
onFormChange: (field, e) => console.log(field, e),
|
|
620
|
+
onQstToggle: () => { },
|
|
621
|
+
onSpainToggle: () => { },
|
|
622
|
+
setCountrySearch: (c) => console.log(c),
|
|
623
|
+
},
|
|
624
|
+
data: {
|
|
625
|
+
esRegions: INDIRECT_TAX_SPAIN_REGIONS,
|
|
626
|
+
countries: [
|
|
627
|
+
{
|
|
628
|
+
countryCode: "CA",
|
|
629
|
+
displayName: "Canada",
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
countryCode: "ES",
|
|
633
|
+
displayName: "Spain",
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
countryCode: "UK",
|
|
637
|
+
displayName: "United Kingdom",
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
countryCode: "US",
|
|
641
|
+
displayName: "United States",
|
|
642
|
+
},
|
|
643
|
+
],
|
|
644
|
+
allCountries: [
|
|
645
|
+
{
|
|
646
|
+
countryCode: "CA",
|
|
647
|
+
displayName: "Canada",
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
countryCode: "ES",
|
|
651
|
+
displayName: "Spain",
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
countryCode: "UK",
|
|
655
|
+
displayName: "United Kingdom",
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
countryCode: "US",
|
|
659
|
+
displayName: "United States",
|
|
660
|
+
},
|
|
661
|
+
],
|
|
662
|
+
provinces: INDIRECT_TAX_PROVINCES,
|
|
663
|
+
},
|
|
664
|
+
slotProps: {
|
|
665
|
+
formState: {
|
|
666
|
+
errors: {},
|
|
667
|
+
},
|
|
668
|
+
},
|
|
669
|
+
refs: { formRef: { current: null } },
|
|
670
|
+
};
|
|
671
|
+
const stepFourProps = {
|
|
672
|
+
states: {
|
|
673
|
+
showVerification: false,
|
|
674
|
+
step: "4",
|
|
675
|
+
hideSteps: false,
|
|
676
|
+
disabled: false,
|
|
677
|
+
loading: false,
|
|
678
|
+
hasPayPal: false,
|
|
679
|
+
isPartner: false,
|
|
680
|
+
hideBackButton: false,
|
|
681
|
+
saveDisabled: false,
|
|
682
|
+
thresholds: [],
|
|
683
|
+
loadingError: false,
|
|
684
|
+
email: "test@example.com",
|
|
685
|
+
formState: {
|
|
686
|
+
paymentMethodChecked: "toBankAccount",
|
|
687
|
+
},
|
|
688
|
+
},
|
|
689
|
+
callbacks: {
|
|
690
|
+
onVerificationHide: () => { },
|
|
691
|
+
onVerification: () => { },
|
|
692
|
+
onSubmit: async () => console.log("Submit"),
|
|
693
|
+
setPaymentMethodChecked: () => { },
|
|
694
|
+
setPaymentScheduleChecked: () => { },
|
|
695
|
+
onBack: async () => console.log("back"),
|
|
696
|
+
setCountrySearch: () => { },
|
|
697
|
+
},
|
|
698
|
+
refs: { formRef: { current: null } },
|
|
699
|
+
};
|
|
700
|
+
const docusignFormProps = {
|
|
701
|
+
states: {
|
|
702
|
+
showExitButton: true,
|
|
703
|
+
step: "3",
|
|
704
|
+
urlLoading: false,
|
|
705
|
+
docusignStatus: undefined,
|
|
706
|
+
hideSteps: false,
|
|
707
|
+
documentType: "W9",
|
|
708
|
+
documentTypeString: "W9",
|
|
709
|
+
loading: false,
|
|
710
|
+
disabled: false,
|
|
711
|
+
participantTypeDisabled: false,
|
|
712
|
+
loadingError: false,
|
|
713
|
+
formState: {
|
|
714
|
+
participantType: "individualParticipant",
|
|
715
|
+
errors: {},
|
|
716
|
+
taxFormExpired: false,
|
|
717
|
+
},
|
|
718
|
+
},
|
|
719
|
+
callbacks: {
|
|
720
|
+
onExit: () => { },
|
|
721
|
+
completeDocument: async () => { },
|
|
722
|
+
setParticipantType: (p) => console.log({ p }),
|
|
723
|
+
setDocusignStatus: (status) => console.log(status),
|
|
724
|
+
},
|
|
725
|
+
};
|
|
726
|
+
const dashboardProps = {
|
|
727
|
+
states: {
|
|
728
|
+
veriffLoading: false,
|
|
729
|
+
payoutStatus: "DONE",
|
|
730
|
+
canEditPayoutInfo: true,
|
|
731
|
+
disabled: false,
|
|
732
|
+
status: "ACTIVE",
|
|
733
|
+
documentType: "W9",
|
|
734
|
+
documentTypeString: taxTypeToName("W9"),
|
|
735
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
736
|
+
noFormNeeded: false,
|
|
737
|
+
country: "United Kingdom",
|
|
738
|
+
indirectTaxNumber: "123456",
|
|
739
|
+
indirectTaxType: "VAT",
|
|
740
|
+
showNewFormDialog: false,
|
|
741
|
+
hasHold: false,
|
|
742
|
+
},
|
|
743
|
+
slots: {
|
|
744
|
+
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
|
|
745
|
+
states: {
|
|
746
|
+
badgeStatus: "nextPayout",
|
|
747
|
+
},
|
|
748
|
+
} })),
|
|
749
|
+
},
|
|
750
|
+
};
|
|
751
|
+
const GeneralLoadingView = () => {
|
|
752
|
+
return index.h(LoadingView, null);
|
|
753
|
+
};
|
|
754
|
+
const GeneralErrorView = () => {
|
|
755
|
+
return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: "There was a problem loading your form", loadingErrorAlertDescription: "Please refresh the page and try again. If this problem continues, contact our support team." }));
|
|
756
|
+
};
|
|
757
|
+
// STEP ONE
|
|
758
|
+
const StepOne = () => {
|
|
759
|
+
return index.h("sqm-user-info-form", { demoData: stepOneProps });
|
|
760
|
+
};
|
|
761
|
+
const StepOneLoading = () => {
|
|
762
|
+
return (index.h("sqm-user-info-form", { demoData: {
|
|
763
|
+
states: { ...stepOneProps.states, loading: true },
|
|
764
|
+
} }));
|
|
765
|
+
};
|
|
766
|
+
const StepOneDisabled = () => {
|
|
767
|
+
return (index.h("sqm-user-info-form", { demoData: {
|
|
768
|
+
states: { ...stepOneProps.states, disabled: true },
|
|
769
|
+
} }));
|
|
770
|
+
};
|
|
771
|
+
const StepOneIsUser = () => {
|
|
772
|
+
return (index.h("sqm-user-info-form", { demoData: {
|
|
773
|
+
states: { ...stepOneProps.states, isUser: true },
|
|
774
|
+
} }));
|
|
775
|
+
};
|
|
776
|
+
const StepOneIsPartner = () => {
|
|
777
|
+
return (index.h("sqm-user-info-form", { demoData: {
|
|
778
|
+
states: { ...stepOneProps.states, disabled: true, isPartner: true },
|
|
779
|
+
} }));
|
|
780
|
+
};
|
|
781
|
+
const StepOneWithErrors = () => {
|
|
782
|
+
return (index.h("sqm-user-info-form", { demoData: {
|
|
783
|
+
states: {
|
|
784
|
+
...stepOneProps.states,
|
|
785
|
+
formState: {
|
|
786
|
+
...stepOneProps.states.formState,
|
|
787
|
+
errors: {
|
|
788
|
+
firstName: true,
|
|
789
|
+
lastName: true,
|
|
790
|
+
email: true,
|
|
791
|
+
countryCode: true,
|
|
792
|
+
currency: true,
|
|
793
|
+
participantType: true,
|
|
794
|
+
allowBankingCollection: true,
|
|
795
|
+
},
|
|
796
|
+
},
|
|
797
|
+
},
|
|
798
|
+
} }));
|
|
799
|
+
};
|
|
800
|
+
const StepOneWithGeneralError = () => {
|
|
801
|
+
return (index.h("sqm-user-info-form", { demoData: {
|
|
802
|
+
states: {
|
|
803
|
+
...stepOneProps.states,
|
|
804
|
+
formState: {
|
|
805
|
+
...stepOneProps.states.formState,
|
|
806
|
+
errors: {
|
|
807
|
+
general: true,
|
|
808
|
+
},
|
|
809
|
+
},
|
|
810
|
+
},
|
|
811
|
+
} }));
|
|
812
|
+
};
|
|
813
|
+
const StepOneWithLoadingError = () => {
|
|
814
|
+
return (index.h("sqm-user-info-form", { demoData: {
|
|
815
|
+
states: {
|
|
816
|
+
...stepOneProps.states,
|
|
817
|
+
loadingError: true,
|
|
818
|
+
loading: true,
|
|
819
|
+
formState: {
|
|
820
|
+
...stepOneProps.states.formState,
|
|
821
|
+
},
|
|
822
|
+
},
|
|
823
|
+
} }));
|
|
824
|
+
};
|
|
825
|
+
// STEP TWO
|
|
826
|
+
const StepTwoLoading = () => {
|
|
827
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
828
|
+
states: {
|
|
829
|
+
...stepTwoProps.states,
|
|
830
|
+
loading: true,
|
|
831
|
+
},
|
|
832
|
+
} }));
|
|
833
|
+
};
|
|
834
|
+
const StepTwoLoadingError = () => {
|
|
835
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
836
|
+
states: {
|
|
837
|
+
...stepTwoProps.states,
|
|
838
|
+
loading: true,
|
|
839
|
+
loadingError: true,
|
|
840
|
+
},
|
|
841
|
+
} }));
|
|
842
|
+
};
|
|
843
|
+
const StepTwoDisabled = () => {
|
|
844
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
845
|
+
states: {
|
|
846
|
+
...stepTwoProps.states,
|
|
847
|
+
disabled: true,
|
|
848
|
+
},
|
|
849
|
+
} }));
|
|
850
|
+
};
|
|
851
|
+
const StepTwoIsPartner = () => {
|
|
852
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
853
|
+
states: {
|
|
854
|
+
...stepTwoProps.states,
|
|
855
|
+
isPartner: true,
|
|
856
|
+
},
|
|
857
|
+
} }));
|
|
858
|
+
};
|
|
859
|
+
const StepTwoWithGeneralError = () => {
|
|
860
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
861
|
+
states: {
|
|
862
|
+
...stepTwoProps.states,
|
|
863
|
+
formState: {
|
|
864
|
+
...stepTwoProps.states.formState,
|
|
865
|
+
errors: {
|
|
866
|
+
general: true,
|
|
867
|
+
},
|
|
868
|
+
},
|
|
869
|
+
},
|
|
870
|
+
} }));
|
|
871
|
+
};
|
|
872
|
+
const StepTwoOtherRegionChecked = () => {
|
|
873
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
874
|
+
states: {
|
|
875
|
+
...stepTwoProps.states,
|
|
876
|
+
formState: {
|
|
877
|
+
...stepTwoProps.states.formState,
|
|
878
|
+
checked: "otherRegion",
|
|
879
|
+
},
|
|
880
|
+
},
|
|
881
|
+
slotProps: {
|
|
882
|
+
formState: {
|
|
883
|
+
selectedRegion: "UK",
|
|
884
|
+
indirectTaxNumber: "123456",
|
|
885
|
+
errors: {},
|
|
886
|
+
},
|
|
887
|
+
},
|
|
888
|
+
} }));
|
|
889
|
+
};
|
|
890
|
+
const StepTwoOtherRegionCheckedCanada = () => {
|
|
891
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
892
|
+
states: {
|
|
893
|
+
...stepTwoProps.states,
|
|
894
|
+
formState: {
|
|
895
|
+
...stepTwoProps.states.formState,
|
|
896
|
+
checked: "otherRegion",
|
|
897
|
+
},
|
|
898
|
+
},
|
|
899
|
+
slotProps: {
|
|
900
|
+
formState: {
|
|
901
|
+
selectedRegion: "CA",
|
|
902
|
+
province: "BRITISHCOLUMBIA",
|
|
903
|
+
indirectTaxNumber: "123456",
|
|
904
|
+
errors: {},
|
|
905
|
+
},
|
|
906
|
+
},
|
|
907
|
+
} }));
|
|
908
|
+
};
|
|
909
|
+
const StepTwoOtherRegionCheckedCanadaGST = () => {
|
|
910
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
911
|
+
states: {
|
|
912
|
+
...stepTwoProps.states,
|
|
913
|
+
formState: {
|
|
914
|
+
...stepTwoProps.states.formState,
|
|
915
|
+
checked: "otherRegion",
|
|
916
|
+
},
|
|
917
|
+
},
|
|
918
|
+
slotProps: {
|
|
919
|
+
formState: {
|
|
920
|
+
selectedRegion: "CA",
|
|
921
|
+
province: "QUEBEC",
|
|
922
|
+
indirectTaxNumber: "123456",
|
|
923
|
+
errors: {},
|
|
924
|
+
},
|
|
925
|
+
},
|
|
926
|
+
} }));
|
|
927
|
+
};
|
|
928
|
+
const StepTwoOtherRegionCheckedCanadaGSTAndQST = () => {
|
|
929
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
930
|
+
states: {
|
|
931
|
+
...stepTwoProps.states,
|
|
932
|
+
formState: {
|
|
933
|
+
...stepTwoProps.states.formState,
|
|
934
|
+
checked: "otherRegion",
|
|
935
|
+
},
|
|
936
|
+
},
|
|
937
|
+
slotProps: {
|
|
938
|
+
formState: {
|
|
939
|
+
selectedRegion: "CA",
|
|
940
|
+
province: "QUEBEC",
|
|
941
|
+
qstNumber: "654321",
|
|
942
|
+
hasQst: true,
|
|
943
|
+
errors: {},
|
|
944
|
+
},
|
|
945
|
+
},
|
|
946
|
+
} }));
|
|
947
|
+
};
|
|
948
|
+
const StepTwoOtherRegionCheckedOtherCountrySubRegion = () => {
|
|
949
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
950
|
+
states: {
|
|
951
|
+
...stepTwoProps.states,
|
|
952
|
+
formState: {
|
|
953
|
+
...stepTwoProps.states.formState,
|
|
954
|
+
checked: "otherRegion",
|
|
955
|
+
},
|
|
956
|
+
},
|
|
957
|
+
slotProps: {
|
|
958
|
+
formState: {
|
|
959
|
+
selectedRegion: "ES",
|
|
960
|
+
subRegion: "CANARYISLANDS",
|
|
961
|
+
errors: {},
|
|
962
|
+
},
|
|
963
|
+
},
|
|
964
|
+
} }));
|
|
965
|
+
};
|
|
966
|
+
const StepTwoOtherRegionCheckedOtherCountrySubRegionIncomeTax = () => {
|
|
967
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
968
|
+
states: {
|
|
969
|
+
...stepTwoProps.states,
|
|
970
|
+
formState: {
|
|
971
|
+
...stepTwoProps.states.formState,
|
|
972
|
+
checked: "otherRegion",
|
|
973
|
+
},
|
|
974
|
+
},
|
|
975
|
+
slotProps: {
|
|
976
|
+
formState: {
|
|
977
|
+
selectedRegion: "ES",
|
|
978
|
+
subRegion: "CANARYISLANDS",
|
|
979
|
+
hasSubRegionTaxNumber: true,
|
|
980
|
+
subRegionTaxNumber: "654321",
|
|
981
|
+
errors: {},
|
|
982
|
+
},
|
|
983
|
+
},
|
|
984
|
+
} }));
|
|
985
|
+
};
|
|
986
|
+
const StepTwoOtherRegionCheckedWithInputErrors = () => {
|
|
987
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
988
|
+
states: {
|
|
989
|
+
...stepTwoProps.states,
|
|
990
|
+
formState: {
|
|
991
|
+
checked: "otherRegion",
|
|
992
|
+
errors: {},
|
|
993
|
+
},
|
|
994
|
+
},
|
|
995
|
+
slotProps: {
|
|
996
|
+
formState: {
|
|
997
|
+
province: "",
|
|
998
|
+
selectedRegion: "GB",
|
|
999
|
+
errors: {
|
|
1000
|
+
selectedRegion: true,
|
|
1001
|
+
indirectTaxNumber: true,
|
|
1002
|
+
},
|
|
1003
|
+
},
|
|
1004
|
+
},
|
|
1005
|
+
} }));
|
|
1006
|
+
};
|
|
1007
|
+
const StepTwoOtherRegionCheckedCanadaWithProvinceError = () => {
|
|
1008
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
1009
|
+
states: {
|
|
1010
|
+
...stepTwoProps.states,
|
|
1011
|
+
formState: {
|
|
1012
|
+
...stepTwoProps.states.formState,
|
|
1013
|
+
checked: "otherRegion",
|
|
1014
|
+
},
|
|
1015
|
+
},
|
|
1016
|
+
slotProps: {
|
|
1017
|
+
formState: {
|
|
1018
|
+
selectedRegion: "CA",
|
|
1019
|
+
province: "BC",
|
|
1020
|
+
errors: {
|
|
1021
|
+
province: true,
|
|
1022
|
+
indirectTaxNumber: true,
|
|
1023
|
+
},
|
|
1024
|
+
},
|
|
1025
|
+
},
|
|
1026
|
+
} }));
|
|
1027
|
+
};
|
|
1028
|
+
const StepTwoOtherRegionCheckedCanadaGSTAndQSTError = () => {
|
|
1029
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
1030
|
+
states: {
|
|
1031
|
+
...stepTwoProps.states,
|
|
1032
|
+
formState: {
|
|
1033
|
+
...stepTwoProps.states.formState,
|
|
1034
|
+
checked: "otherRegion",
|
|
1035
|
+
},
|
|
1036
|
+
},
|
|
1037
|
+
slotProps: {
|
|
1038
|
+
formState: {
|
|
1039
|
+
selectedRegion: "CA",
|
|
1040
|
+
province: "QUEBEC",
|
|
1041
|
+
hasQst: true,
|
|
1042
|
+
errors: {
|
|
1043
|
+
province: true,
|
|
1044
|
+
indirectTaxNumber: true,
|
|
1045
|
+
qstNumber: true,
|
|
1046
|
+
},
|
|
1047
|
+
},
|
|
1048
|
+
},
|
|
1049
|
+
} }));
|
|
1050
|
+
};
|
|
1051
|
+
const StepTwoOtherRegionCheckedOtherCountrySubRegionErrors = () => {
|
|
1052
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
1053
|
+
states: {
|
|
1054
|
+
...stepTwoProps.states,
|
|
1055
|
+
formState: {
|
|
1056
|
+
...stepTwoProps.states.formState,
|
|
1057
|
+
checked: "otherRegion",
|
|
1058
|
+
},
|
|
1059
|
+
},
|
|
1060
|
+
slotProps: {
|
|
1061
|
+
formState: {
|
|
1062
|
+
selectedRegion: "ES",
|
|
1063
|
+
hasSubRegionTaxNumber: true,
|
|
1064
|
+
errors: {
|
|
1065
|
+
indirectTaxNumber: true,
|
|
1066
|
+
subRegionTaxNumberError: true,
|
|
1067
|
+
subRegion: true,
|
|
1068
|
+
},
|
|
1069
|
+
},
|
|
1070
|
+
},
|
|
1071
|
+
} }));
|
|
1072
|
+
};
|
|
1073
|
+
const StepTwoNotRegisteredChecked = () => {
|
|
1074
|
+
return (index.h("sqm-indirect-tax-form", { demoData: {
|
|
1075
|
+
states: {
|
|
1076
|
+
...stepTwoProps.states,
|
|
1077
|
+
formState: {
|
|
1078
|
+
...stepTwoProps.states.formState,
|
|
1079
|
+
checked: "notRegistered",
|
|
1080
|
+
},
|
|
1081
|
+
},
|
|
1082
|
+
} }));
|
|
1083
|
+
};
|
|
1084
|
+
// STEP THREE
|
|
1085
|
+
const StepThreeWithDocusign = () => {
|
|
1086
|
+
return (index.h("sqm-docusign-form", { demoData: {
|
|
1087
|
+
states: {
|
|
1088
|
+
documentType: "W9",
|
|
1089
|
+
documentTypeString: taxTypeToName("W9"),
|
|
1090
|
+
...docusignFormProps.states,
|
|
1091
|
+
},
|
|
1092
|
+
} }));
|
|
1093
|
+
};
|
|
1094
|
+
const StepThreeWithDocusignW8BEN = () => {
|
|
1095
|
+
return (index.h("sqm-docusign-form", { demoData: {
|
|
1096
|
+
states: {
|
|
1097
|
+
...docusignFormProps.states,
|
|
1098
|
+
documentType: "W8BEN",
|
|
1099
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1100
|
+
},
|
|
1101
|
+
} }));
|
|
1102
|
+
};
|
|
1103
|
+
const StepThreeWithDocusignW8BENE = () => {
|
|
1104
|
+
return (index.h("sqm-docusign-form", { demoData: {
|
|
1105
|
+
states: {
|
|
1106
|
+
...docusignFormProps.states,
|
|
1107
|
+
documentType: "W8BENE",
|
|
1108
|
+
documentTypeString: taxTypeToName("W8BENE"),
|
|
1109
|
+
formState: {
|
|
1110
|
+
taxFormExpired: false,
|
|
1111
|
+
participantType: "businessEntity",
|
|
1112
|
+
errors: {
|
|
1113
|
+
participantType: "",
|
|
1114
|
+
general: false,
|
|
1115
|
+
},
|
|
1116
|
+
},
|
|
1117
|
+
},
|
|
1118
|
+
} }));
|
|
1119
|
+
};
|
|
1120
|
+
const StepThreeWithDocusignExpired = () => {
|
|
1121
|
+
return (index.h("sqm-docusign-form", { demoData: {
|
|
1122
|
+
states: {
|
|
1123
|
+
...docusignFormProps.states,
|
|
1124
|
+
docusignStatus: "ttl_expired",
|
|
1125
|
+
formState: {
|
|
1126
|
+
participantType: "individualParticipant",
|
|
1127
|
+
taxFormExpired: true,
|
|
1128
|
+
errors: {},
|
|
1129
|
+
},
|
|
1130
|
+
},
|
|
1131
|
+
} }));
|
|
1132
|
+
};
|
|
1133
|
+
const StepThreeWithDocusignCompleted = () => {
|
|
1134
|
+
return (index.h("sqm-docusign-form", { demoData: {
|
|
1135
|
+
states: {
|
|
1136
|
+
...docusignFormProps.states,
|
|
1137
|
+
docusignStatus: "signing_complete",
|
|
1138
|
+
formState: {
|
|
1139
|
+
participantType: "individualParticipant",
|
|
1140
|
+
taxFormExpired: false,
|
|
1141
|
+
errors: {},
|
|
1142
|
+
},
|
|
1143
|
+
},
|
|
1144
|
+
} }));
|
|
1145
|
+
};
|
|
1146
|
+
const StepThreeDocusignWithError = () => {
|
|
1147
|
+
return (index.h("sqm-docusign-form", { demoData: {
|
|
1148
|
+
states: {
|
|
1149
|
+
...docusignFormProps.states,
|
|
1150
|
+
docusignStatus: "exception",
|
|
1151
|
+
formState: {
|
|
1152
|
+
...docusignFormProps.states.formState,
|
|
1153
|
+
errors: {
|
|
1154
|
+
formSubmission: true,
|
|
1155
|
+
},
|
|
1156
|
+
},
|
|
1157
|
+
},
|
|
1158
|
+
} }));
|
|
1159
|
+
};
|
|
1160
|
+
const StepThreeDocusignWithGeneralError = () => {
|
|
1161
|
+
return (index.h("sqm-docusign-form", { demoData: {
|
|
1162
|
+
states: {
|
|
1163
|
+
...docusignFormProps.states,
|
|
1164
|
+
formState: {
|
|
1165
|
+
...docusignFormProps.states.formState,
|
|
1166
|
+
errors: {
|
|
1167
|
+
general: true,
|
|
1168
|
+
},
|
|
1169
|
+
},
|
|
1170
|
+
},
|
|
1171
|
+
} }));
|
|
1172
|
+
};
|
|
1173
|
+
const StepThreeDocusignWithLoadingError = () => {
|
|
1174
|
+
return (index.h("sqm-docusign-form", { demoData: {
|
|
1175
|
+
states: {
|
|
1176
|
+
...docusignFormProps.states,
|
|
1177
|
+
loadingError: true,
|
|
1178
|
+
formState: {
|
|
1179
|
+
...docusignFormProps.states.formState,
|
|
1180
|
+
},
|
|
1181
|
+
},
|
|
1182
|
+
} }));
|
|
1183
|
+
};
|
|
1184
|
+
const StepThreeDocusignLoading = () => {
|
|
1185
|
+
return (index.h("sqm-docusign-form", { demoData: {
|
|
1186
|
+
states: {
|
|
1187
|
+
...docusignFormProps.states,
|
|
1188
|
+
loading: true,
|
|
1189
|
+
},
|
|
1190
|
+
} }));
|
|
1191
|
+
};
|
|
1192
|
+
const StepThreeDocusignDisabled = () => {
|
|
1193
|
+
return (index.h("sqm-docusign-form", { demoData: {
|
|
1194
|
+
states: {
|
|
1195
|
+
...docusignFormProps.states,
|
|
1196
|
+
disabled: true,
|
|
1197
|
+
},
|
|
1198
|
+
} }));
|
|
1199
|
+
};
|
|
1200
|
+
// STEP 4
|
|
1201
|
+
const StepFourDefault = () => {
|
|
1202
|
+
return index.h("sqm-banking-info-form", null);
|
|
1203
|
+
};
|
|
1204
|
+
const StepFourIsPartner = () => {
|
|
1205
|
+
return (index.h("sqm-banking-info-form", { demoData: {
|
|
1206
|
+
...stepFourProps,
|
|
1207
|
+
states: {
|
|
1208
|
+
...stepFourProps.states,
|
|
1209
|
+
isPartner: true,
|
|
1210
|
+
formState: {
|
|
1211
|
+
...stepFourProps.states.formState,
|
|
1212
|
+
},
|
|
1213
|
+
},
|
|
1214
|
+
} }));
|
|
1215
|
+
};
|
|
1216
|
+
const StepFourDirectToBankChecked = () => {
|
|
1217
|
+
return (index.h("sqm-banking-info-form", { demoData: {
|
|
1218
|
+
...stepFourProps,
|
|
1219
|
+
states: {
|
|
1220
|
+
...stepFourProps.states,
|
|
1221
|
+
formState: {
|
|
1222
|
+
...stepFourProps.states.formState,
|
|
1223
|
+
},
|
|
1224
|
+
},
|
|
1225
|
+
} }));
|
|
1226
|
+
};
|
|
1227
|
+
const StepFourToPaypalChecked = () => {
|
|
1228
|
+
return (index.h("sqm-banking-info-form", { demoData: {
|
|
1229
|
+
...stepFourProps,
|
|
1230
|
+
states: {
|
|
1231
|
+
...stepFourProps.states,
|
|
1232
|
+
formState: {
|
|
1233
|
+
...stepFourProps.states.formState,
|
|
1234
|
+
paymentMethodChecked: "toPayPalAccount",
|
|
1235
|
+
},
|
|
1236
|
+
},
|
|
1237
|
+
} }));
|
|
1238
|
+
};
|
|
1239
|
+
const StepFourReVerifyEmail = () => {
|
|
1240
|
+
return (index.h("sqm-banking-info-form", { demoData: {
|
|
1241
|
+
...stepFourProps,
|
|
1242
|
+
states: {
|
|
1243
|
+
...stepFourProps.states,
|
|
1244
|
+
showVerification: true,
|
|
1245
|
+
isPartner: true,
|
|
1246
|
+
formState: {
|
|
1247
|
+
...stepFourProps.states.formState,
|
|
1248
|
+
paymentMethodChecked: "toPayPalAccount",
|
|
1249
|
+
},
|
|
1250
|
+
},
|
|
1251
|
+
} }));
|
|
1252
|
+
};
|
|
1253
|
+
const TaxAndCashDashboardActiveW9Form = () => {
|
|
1254
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1255
|
+
...dashboardProps,
|
|
1256
|
+
} }));
|
|
1257
|
+
};
|
|
1258
|
+
const TaxAndCashDashboardActiveW8BENForm = () => {
|
|
1259
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1260
|
+
...dashboardProps,
|
|
1261
|
+
states: {
|
|
1262
|
+
payoutStatus: "DONE",
|
|
1263
|
+
veriffLoading: false,
|
|
1264
|
+
noFormNeeded: false,
|
|
1265
|
+
canEditPayoutInfo: true,
|
|
1266
|
+
documentType: "W8BEN",
|
|
1267
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1268
|
+
country: "United Kingdom",
|
|
1269
|
+
indirectTaxType: "VAT",
|
|
1270
|
+
indirectTaxNumber: "123456",
|
|
1271
|
+
showNewFormDialog: false,
|
|
1272
|
+
hasHold: false,
|
|
1273
|
+
},
|
|
1274
|
+
} }));
|
|
1275
|
+
};
|
|
1276
|
+
const TaxAndCashDashboardActiveW8BENEForm = () => {
|
|
1277
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1278
|
+
...dashboardProps,
|
|
1279
|
+
states: {
|
|
1280
|
+
payoutStatus: "DONE",
|
|
1281
|
+
veriffLoading: false,
|
|
1282
|
+
noFormNeeded: false,
|
|
1283
|
+
canEditPayoutInfo: true,
|
|
1284
|
+
documentType: "W8BENE",
|
|
1285
|
+
documentTypeString: taxTypeToName("W8BENE"),
|
|
1286
|
+
country: "United Kingdom",
|
|
1287
|
+
indirectTaxType: "VAT",
|
|
1288
|
+
indirectTaxNumber: "123456",
|
|
1289
|
+
showNewFormDialog: false,
|
|
1290
|
+
hasHold: false,
|
|
1291
|
+
},
|
|
1292
|
+
} }));
|
|
1293
|
+
};
|
|
1294
|
+
const TaxAndCashDashboardNotActiveW9Form = () => {
|
|
1295
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1296
|
+
...dashboardProps,
|
|
1297
|
+
states: {
|
|
1298
|
+
payoutStatus: "DONE",
|
|
1299
|
+
veriffLoading: false,
|
|
1300
|
+
noFormNeeded: false,
|
|
1301
|
+
canEditPayoutInfo: true,
|
|
1302
|
+
status: "INACTIVE",
|
|
1303
|
+
documentType: "W9",
|
|
1304
|
+
documentTypeString: taxTypeToName("W9"),
|
|
1305
|
+
country: "United Kingdom",
|
|
1306
|
+
indirectTaxType: "VAT",
|
|
1307
|
+
indirectTaxNumber: "123456",
|
|
1308
|
+
showNewFormDialog: false,
|
|
1309
|
+
hasHold: false,
|
|
1310
|
+
},
|
|
1311
|
+
} }));
|
|
1312
|
+
};
|
|
1313
|
+
const TaxAndCashDashboardNotVerifiedW9Form = () => {
|
|
1314
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1315
|
+
...dashboardProps,
|
|
1316
|
+
states: {
|
|
1317
|
+
payoutStatus: "DONE",
|
|
1318
|
+
canEditPayoutInfo: true,
|
|
1319
|
+
disabled: false,
|
|
1320
|
+
status: "NOT_VERIFIED",
|
|
1321
|
+
documentType: "W9",
|
|
1322
|
+
documentTypeString: taxTypeToName("W9"),
|
|
1323
|
+
noFormNeeded: false,
|
|
1324
|
+
country: "United States",
|
|
1325
|
+
indirectTaxType: "VAT",
|
|
1326
|
+
indirectTaxNumber: "123456",
|
|
1327
|
+
showNewFormDialog: false,
|
|
1328
|
+
hasHold: false,
|
|
1329
|
+
veriffLoading: false,
|
|
1330
|
+
},
|
|
1331
|
+
} }));
|
|
1332
|
+
};
|
|
1333
|
+
const TaxAndCashDashboardNotVerifiedW8BENForm = () => {
|
|
1334
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1335
|
+
...dashboardProps,
|
|
1336
|
+
states: {
|
|
1337
|
+
payoutStatus: "DONE",
|
|
1338
|
+
veriffLoading: false,
|
|
1339
|
+
canEditPayoutInfo: true,
|
|
1340
|
+
disabled: false,
|
|
1341
|
+
status: "NOT_VERIFIED",
|
|
1342
|
+
documentType: "W8BEN",
|
|
1343
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1344
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1345
|
+
noFormNeeded: false,
|
|
1346
|
+
country: "United Kingdom",
|
|
1347
|
+
indirectTaxType: "VAT",
|
|
1348
|
+
indirectTaxNumber: "123456",
|
|
1349
|
+
showNewFormDialog: false,
|
|
1350
|
+
hasHold: false,
|
|
1351
|
+
},
|
|
1352
|
+
} }));
|
|
1353
|
+
};
|
|
1354
|
+
const TaxAndCashDashboardNotVerifiedW8BENEForm = () => {
|
|
1355
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1356
|
+
...dashboardProps,
|
|
1357
|
+
states: {
|
|
1358
|
+
payoutStatus: "DONE",
|
|
1359
|
+
veriffLoading: false,
|
|
1360
|
+
canEditPayoutInfo: true,
|
|
1361
|
+
disabled: false,
|
|
1362
|
+
status: "NOT_VERIFIED",
|
|
1363
|
+
documentType: "W8BENE",
|
|
1364
|
+
documentTypeString: taxTypeToName("W8BENE"),
|
|
1365
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1366
|
+
noFormNeeded: false,
|
|
1367
|
+
country: "United Kingdom",
|
|
1368
|
+
indirectTaxType: "VAT",
|
|
1369
|
+
indirectTaxNumber: "123456",
|
|
1370
|
+
showNewFormDialog: false,
|
|
1371
|
+
hasHold: false,
|
|
1372
|
+
},
|
|
1373
|
+
} }));
|
|
1374
|
+
};
|
|
1375
|
+
const TaxAndCashDashboardNotActiveW8BENEForm = () => {
|
|
1376
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1377
|
+
...dashboardProps,
|
|
1378
|
+
states: {
|
|
1379
|
+
payoutStatus: "DONE",
|
|
1380
|
+
veriffLoading: false,
|
|
1381
|
+
canEditPayoutInfo: true,
|
|
1382
|
+
disabled: false,
|
|
1383
|
+
status: "NOT_ACTIVE",
|
|
1384
|
+
documentType: "W8BENE",
|
|
1385
|
+
documentTypeString: taxTypeToName("W8BENE"),
|
|
1386
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1387
|
+
noFormNeeded: false,
|
|
1388
|
+
indirectTaxNumber: "123456",
|
|
1389
|
+
indirectTaxType: "VAT",
|
|
1390
|
+
country: "United Kingdom",
|
|
1391
|
+
showNewFormDialog: false,
|
|
1392
|
+
hasHold: false,
|
|
1393
|
+
},
|
|
1394
|
+
} }));
|
|
1395
|
+
};
|
|
1396
|
+
const TaxAndCashDashboardNoFormNeeded = () => {
|
|
1397
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1398
|
+
...dashboardProps,
|
|
1399
|
+
states: {
|
|
1400
|
+
payoutStatus: "DONE",
|
|
1401
|
+
veriffLoading: false,
|
|
1402
|
+
canEditPayoutInfo: true,
|
|
1403
|
+
disabled: false,
|
|
1404
|
+
documentType: "W9",
|
|
1405
|
+
documentTypeString: taxTypeToName("W9"),
|
|
1406
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1407
|
+
noFormNeeded: true,
|
|
1408
|
+
province: "Ontario",
|
|
1409
|
+
country: "Canada",
|
|
1410
|
+
indirectTaxNumber: "123456",
|
|
1411
|
+
indirectTaxType: "GST",
|
|
1412
|
+
showNewFormDialog: false,
|
|
1413
|
+
hasHold: false,
|
|
1414
|
+
},
|
|
1415
|
+
} }));
|
|
1416
|
+
};
|
|
1417
|
+
const TaxAndCashDashboardIndirectTaxCanada = () => {
|
|
1418
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1419
|
+
...dashboardProps,
|
|
1420
|
+
states: {
|
|
1421
|
+
payoutStatus: "DONE",
|
|
1422
|
+
veriffLoading: false,
|
|
1423
|
+
canEditPayoutInfo: true,
|
|
1424
|
+
status: "ACTIVE",
|
|
1425
|
+
disabled: false,
|
|
1426
|
+
documentType: "W8BENE",
|
|
1427
|
+
documentTypeString: taxTypeToName("W8BENE"),
|
|
1428
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1429
|
+
noFormNeeded: false,
|
|
1430
|
+
province: "Ontario",
|
|
1431
|
+
country: "Canada",
|
|
1432
|
+
indirectTaxType: "GST",
|
|
1433
|
+
indirectTaxNumber: "123456",
|
|
1434
|
+
showNewFormDialog: false,
|
|
1435
|
+
hasHold: false,
|
|
1436
|
+
},
|
|
1437
|
+
} }));
|
|
1438
|
+
};
|
|
1439
|
+
const TaxAndCashDashboardIndirectTaxCanadaQuebec = () => {
|
|
1440
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1441
|
+
...dashboardProps,
|
|
1442
|
+
states: {
|
|
1443
|
+
payoutStatus: "DONE",
|
|
1444
|
+
veriffLoading: false,
|
|
1445
|
+
canEditPayoutInfo: true,
|
|
1446
|
+
status: "ACTIVE",
|
|
1447
|
+
disabled: false,
|
|
1448
|
+
documentType: "W8BENE",
|
|
1449
|
+
documentTypeString: taxTypeToName("W8BENE"),
|
|
1450
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1451
|
+
noFormNeeded: false,
|
|
1452
|
+
province: "Quebec",
|
|
1453
|
+
country: "Canada",
|
|
1454
|
+
indirectTaxType: "GST",
|
|
1455
|
+
indirectTaxNumber: "123456",
|
|
1456
|
+
qstNumber: "44212",
|
|
1457
|
+
showNewFormDialog: false,
|
|
1458
|
+
hasHold: false,
|
|
1459
|
+
},
|
|
1460
|
+
} }));
|
|
1461
|
+
};
|
|
1462
|
+
const TaxAndCashDashboardIndirectTaxSpain = () => {
|
|
1463
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1464
|
+
...dashboardProps,
|
|
1465
|
+
states: {
|
|
1466
|
+
payoutStatus: "DONE",
|
|
1467
|
+
veriffLoading: false,
|
|
1468
|
+
canEditPayoutInfo: true,
|
|
1469
|
+
status: "ACTIVE",
|
|
1470
|
+
disabled: false,
|
|
1471
|
+
documentType: "W8BENE",
|
|
1472
|
+
documentTypeString: taxTypeToName("W8BENE"),
|
|
1473
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1474
|
+
noFormNeeded: false,
|
|
1475
|
+
country: "Spain",
|
|
1476
|
+
subRegion: "Spain Proper",
|
|
1477
|
+
indirectTaxType: "VAT",
|
|
1478
|
+
indirectTaxNumber: "123456",
|
|
1479
|
+
subRegionTaxNumber: "44212",
|
|
1480
|
+
showNewFormDialog: false,
|
|
1481
|
+
hasHold: false,
|
|
1482
|
+
},
|
|
1483
|
+
} }));
|
|
1484
|
+
};
|
|
1485
|
+
const TaxAndCashDashboardIndirectTaxNotRegistered = () => {
|
|
1486
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1487
|
+
...dashboardProps,
|
|
1488
|
+
states: {
|
|
1489
|
+
payoutStatus: "DONE",
|
|
1490
|
+
veriffLoading: false,
|
|
1491
|
+
canEditPayoutInfo: true,
|
|
1492
|
+
status: "ACTIVE",
|
|
1493
|
+
documentType: "W8BEN",
|
|
1494
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1495
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1496
|
+
noFormNeeded: false,
|
|
1497
|
+
notRegistered: true,
|
|
1498
|
+
showNewFormDialog: false,
|
|
1499
|
+
hasHold: false,
|
|
1500
|
+
},
|
|
1501
|
+
} }));
|
|
1502
|
+
};
|
|
1503
|
+
const TaxAndCashDashboardIdentityVerifcationRequired = () => {
|
|
1504
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1505
|
+
...dashboardProps,
|
|
1506
|
+
states: {
|
|
1507
|
+
payoutStatus: "VERIFICATION:REQUIRED",
|
|
1508
|
+
veriffLoading: false,
|
|
1509
|
+
canEditPayoutInfo: true,
|
|
1510
|
+
status: "ACTIVE",
|
|
1511
|
+
documentType: "W8BEN",
|
|
1512
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1513
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1514
|
+
noFormNeeded: false,
|
|
1515
|
+
notRegistered: true,
|
|
1516
|
+
showNewFormDialog: false,
|
|
1517
|
+
hasHold: false,
|
|
1518
|
+
},
|
|
1519
|
+
} }));
|
|
1520
|
+
};
|
|
1521
|
+
const TaxAndCashDashboardIdentityVerifcationRequiredInternal = () => {
|
|
1522
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1523
|
+
...dashboardProps,
|
|
1524
|
+
states: {
|
|
1525
|
+
payoutStatus: "VERIFICATION:INTERNAL",
|
|
1526
|
+
veriffLoading: false,
|
|
1527
|
+
canEditPayoutInfo: true,
|
|
1528
|
+
status: "ACTIVE",
|
|
1529
|
+
documentType: "W8BEN",
|
|
1530
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1531
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1532
|
+
noFormNeeded: false,
|
|
1533
|
+
notRegistered: true,
|
|
1534
|
+
showNewFormDialog: false,
|
|
1535
|
+
hasHold: false,
|
|
1536
|
+
},
|
|
1537
|
+
} }));
|
|
1538
|
+
};
|
|
1539
|
+
const TaxAndCashDashboardIdentityVerifcationReviewInternal = () => {
|
|
1540
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1541
|
+
...dashboardProps,
|
|
1542
|
+
states: {
|
|
1543
|
+
payoutStatus: "VERIFICATION:REVIEW",
|
|
1544
|
+
veriffLoading: false,
|
|
1545
|
+
canEditPayoutInfo: true,
|
|
1546
|
+
status: "ACTIVE",
|
|
1547
|
+
documentType: "W8BEN",
|
|
1548
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1549
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1550
|
+
noFormNeeded: false,
|
|
1551
|
+
notRegistered: true,
|
|
1552
|
+
showNewFormDialog: false,
|
|
1553
|
+
hasHold: false,
|
|
1554
|
+
},
|
|
1555
|
+
} }));
|
|
1556
|
+
};
|
|
1557
|
+
const TaxAndCashDashboardIdentityVerifcationFailedInternal = () => {
|
|
1558
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1559
|
+
...dashboardProps,
|
|
1560
|
+
states: {
|
|
1561
|
+
payoutStatus: "VERIFICATION:FAILED",
|
|
1562
|
+
veriffLoading: false,
|
|
1563
|
+
canEditPayoutInfo: true,
|
|
1564
|
+
status: "ACTIVE",
|
|
1565
|
+
documentType: "W8BEN",
|
|
1566
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1567
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1568
|
+
noFormNeeded: false,
|
|
1569
|
+
notRegistered: true,
|
|
1570
|
+
showNewFormDialog: false,
|
|
1571
|
+
hasHold: false,
|
|
1572
|
+
},
|
|
1573
|
+
} }));
|
|
1574
|
+
};
|
|
1575
|
+
const TaxAndCashDashboardNewTaxForm = () => {
|
|
1576
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1577
|
+
...dashboardProps,
|
|
1578
|
+
states: {
|
|
1579
|
+
payoutStatus: "DONE",
|
|
1580
|
+
veriffLoading: false,
|
|
1581
|
+
canEditPayoutInfo: true,
|
|
1582
|
+
status: "ACTIVE",
|
|
1583
|
+
documentType: "W8BEN",
|
|
1584
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1585
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1586
|
+
noFormNeeded: false,
|
|
1587
|
+
notRegistered: true,
|
|
1588
|
+
showNewFormDialog: true,
|
|
1589
|
+
hasHold: false,
|
|
1590
|
+
},
|
|
1591
|
+
} }));
|
|
1592
|
+
};
|
|
1593
|
+
const TaxAndCashDashboardPayoutsOnHold = () => {
|
|
1594
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1595
|
+
...dashboardProps,
|
|
1596
|
+
states: {
|
|
1597
|
+
payoutStatus: "DONE",
|
|
1598
|
+
veriffLoading: false,
|
|
1599
|
+
canEditPayoutInfo: true,
|
|
1600
|
+
disabled: true,
|
|
1601
|
+
status: "ACTIVE",
|
|
1602
|
+
documentType: "W8BEN",
|
|
1603
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1604
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1605
|
+
noFormNeeded: false,
|
|
1606
|
+
indirectTaxNumber: "123456",
|
|
1607
|
+
country: "Slovania",
|
|
1608
|
+
showNewFormDialog: false,
|
|
1609
|
+
hasHold: true,
|
|
1610
|
+
},
|
|
1611
|
+
} }));
|
|
1612
|
+
};
|
|
1613
|
+
const TaxAndCashDashboardLoading = () => {
|
|
1614
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1615
|
+
...dashboardProps,
|
|
1616
|
+
states: {
|
|
1617
|
+
payoutStatus: "DONE",
|
|
1618
|
+
veriffLoading: false,
|
|
1619
|
+
canEditPayoutInfo: true,
|
|
1620
|
+
disabled: false,
|
|
1621
|
+
status: "ACTIVE",
|
|
1622
|
+
documentType: "W9",
|
|
1623
|
+
documentTypeString: taxTypeToName("W9"),
|
|
1624
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1625
|
+
noFormNeeded: false,
|
|
1626
|
+
loading: true,
|
|
1627
|
+
showNewFormDialog: false,
|
|
1628
|
+
hasHold: false,
|
|
1629
|
+
},
|
|
1630
|
+
} }));
|
|
1631
|
+
};
|
|
1632
|
+
const TaxAndCashDashboardWithLoadingError = () => {
|
|
1633
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1634
|
+
...dashboardProps,
|
|
1635
|
+
states: {
|
|
1636
|
+
payoutStatus: "DONE",
|
|
1637
|
+
veriffLoading: false,
|
|
1638
|
+
disabled: false,
|
|
1639
|
+
canEditPayoutInfo: true,
|
|
1640
|
+
status: "ACTIVE",
|
|
1641
|
+
documentType: "W9",
|
|
1642
|
+
documentTypeString: taxTypeToName("W9"),
|
|
1643
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1644
|
+
noFormNeeded: false,
|
|
1645
|
+
loading: true,
|
|
1646
|
+
loadingError: true,
|
|
1647
|
+
showNewFormDialog: false,
|
|
1648
|
+
hasHold: false,
|
|
1649
|
+
},
|
|
1650
|
+
} }));
|
|
1651
|
+
};
|
|
1652
|
+
const TaxAndCashDashboardWithGeneralError = () => {
|
|
1653
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1654
|
+
...dashboardProps,
|
|
1655
|
+
states: {
|
|
1656
|
+
payoutStatus: "DONE",
|
|
1657
|
+
veriffLoading: false,
|
|
1658
|
+
canEditPayoutInfo: true,
|
|
1659
|
+
disabled: false,
|
|
1660
|
+
status: "ACTIVE",
|
|
1661
|
+
documentType: "W9",
|
|
1662
|
+
documentTypeString: taxTypeToName("W9"),
|
|
1663
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1664
|
+
noFormNeeded: false,
|
|
1665
|
+
indirectTaxNumber: "123456",
|
|
1666
|
+
indirectTaxType: "VAT",
|
|
1667
|
+
country: "Slovania",
|
|
1668
|
+
showNewFormDialog: false,
|
|
1669
|
+
hasHold: false,
|
|
1670
|
+
errors: {
|
|
1671
|
+
general: true,
|
|
1672
|
+
},
|
|
1673
|
+
},
|
|
1674
|
+
} }));
|
|
1675
|
+
};
|
|
1676
|
+
const TaxAndCashDashboardDisabled = () => {
|
|
1677
|
+
return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1678
|
+
...dashboardProps,
|
|
1679
|
+
states: {
|
|
1680
|
+
payoutStatus: "DONE",
|
|
1681
|
+
veriffLoading: false,
|
|
1682
|
+
canEditPayoutInfo: true,
|
|
1683
|
+
disabled: true,
|
|
1684
|
+
status: "ACTIVE",
|
|
1685
|
+
documentType: "W8BEN",
|
|
1686
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1687
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1688
|
+
noFormNeeded: false,
|
|
1689
|
+
indirectTaxNumber: "123456",
|
|
1690
|
+
country: "Slovania",
|
|
1691
|
+
showNewFormDialog: false,
|
|
1692
|
+
hasHold: false,
|
|
1693
|
+
},
|
|
1694
|
+
} }));
|
|
1695
|
+
};
|
|
1696
|
+
const TaxAndCashTextProps = () => {
|
|
1697
|
+
return (index.h("sqm-tax-and-cash", { demoData: {
|
|
1698
|
+
// @ts-ignore
|
|
1699
|
+
showTextProps: true,
|
|
1700
|
+
} }));
|
|
1701
|
+
};
|
|
1702
|
+
|
|
1703
|
+
const TaxForm = /*#__PURE__*/Object.freeze({
|
|
1704
|
+
__proto__: null,
|
|
1705
|
+
'default': TaxForm_stories,
|
|
1706
|
+
GeneralLoadingView: GeneralLoadingView,
|
|
1707
|
+
GeneralErrorView: GeneralErrorView,
|
|
1708
|
+
StepOne: StepOne,
|
|
1709
|
+
StepOneLoading: StepOneLoading,
|
|
1710
|
+
StepOneDisabled: StepOneDisabled,
|
|
1711
|
+
StepOneIsUser: StepOneIsUser,
|
|
1712
|
+
StepOneIsPartner: StepOneIsPartner,
|
|
1713
|
+
StepOneWithErrors: StepOneWithErrors,
|
|
1714
|
+
StepOneWithGeneralError: StepOneWithGeneralError,
|
|
1715
|
+
StepOneWithLoadingError: StepOneWithLoadingError,
|
|
1716
|
+
StepTwoLoading: StepTwoLoading,
|
|
1717
|
+
StepTwoLoadingError: StepTwoLoadingError,
|
|
1718
|
+
StepTwoDisabled: StepTwoDisabled,
|
|
1719
|
+
StepTwoIsPartner: StepTwoIsPartner,
|
|
1720
|
+
StepTwoWithGeneralError: StepTwoWithGeneralError,
|
|
1721
|
+
StepTwoOtherRegionChecked: StepTwoOtherRegionChecked,
|
|
1722
|
+
StepTwoOtherRegionCheckedCanada: StepTwoOtherRegionCheckedCanada,
|
|
1723
|
+
StepTwoOtherRegionCheckedCanadaGST: StepTwoOtherRegionCheckedCanadaGST,
|
|
1724
|
+
StepTwoOtherRegionCheckedCanadaGSTAndQST: StepTwoOtherRegionCheckedCanadaGSTAndQST,
|
|
1725
|
+
StepTwoOtherRegionCheckedOtherCountrySubRegion: StepTwoOtherRegionCheckedOtherCountrySubRegion,
|
|
1726
|
+
StepTwoOtherRegionCheckedOtherCountrySubRegionIncomeTax: StepTwoOtherRegionCheckedOtherCountrySubRegionIncomeTax,
|
|
1727
|
+
StepTwoOtherRegionCheckedWithInputErrors: StepTwoOtherRegionCheckedWithInputErrors,
|
|
1728
|
+
StepTwoOtherRegionCheckedCanadaWithProvinceError: StepTwoOtherRegionCheckedCanadaWithProvinceError,
|
|
1729
|
+
StepTwoOtherRegionCheckedCanadaGSTAndQSTError: StepTwoOtherRegionCheckedCanadaGSTAndQSTError,
|
|
1730
|
+
StepTwoOtherRegionCheckedOtherCountrySubRegionErrors: StepTwoOtherRegionCheckedOtherCountrySubRegionErrors,
|
|
1731
|
+
StepTwoNotRegisteredChecked: StepTwoNotRegisteredChecked,
|
|
1732
|
+
StepThreeWithDocusign: StepThreeWithDocusign,
|
|
1733
|
+
StepThreeWithDocusignW8BEN: StepThreeWithDocusignW8BEN,
|
|
1734
|
+
StepThreeWithDocusignW8BENE: StepThreeWithDocusignW8BENE,
|
|
1735
|
+
StepThreeWithDocusignExpired: StepThreeWithDocusignExpired,
|
|
1736
|
+
StepThreeWithDocusignCompleted: StepThreeWithDocusignCompleted,
|
|
1737
|
+
StepThreeDocusignWithError: StepThreeDocusignWithError,
|
|
1738
|
+
StepThreeDocusignWithGeneralError: StepThreeDocusignWithGeneralError,
|
|
1739
|
+
StepThreeDocusignWithLoadingError: StepThreeDocusignWithLoadingError,
|
|
1740
|
+
StepThreeDocusignLoading: StepThreeDocusignLoading,
|
|
1741
|
+
StepThreeDocusignDisabled: StepThreeDocusignDisabled,
|
|
1742
|
+
StepFourDefault: StepFourDefault,
|
|
1743
|
+
StepFourIsPartner: StepFourIsPartner,
|
|
1744
|
+
StepFourDirectToBankChecked: StepFourDirectToBankChecked,
|
|
1745
|
+
StepFourToPaypalChecked: StepFourToPaypalChecked,
|
|
1746
|
+
StepFourReVerifyEmail: StepFourReVerifyEmail,
|
|
1747
|
+
TaxAndCashDashboardActiveW9Form: TaxAndCashDashboardActiveW9Form,
|
|
1748
|
+
TaxAndCashDashboardActiveW8BENForm: TaxAndCashDashboardActiveW8BENForm,
|
|
1749
|
+
TaxAndCashDashboardActiveW8BENEForm: TaxAndCashDashboardActiveW8BENEForm,
|
|
1750
|
+
TaxAndCashDashboardNotActiveW9Form: TaxAndCashDashboardNotActiveW9Form,
|
|
1751
|
+
TaxAndCashDashboardNotVerifiedW9Form: TaxAndCashDashboardNotVerifiedW9Form,
|
|
1752
|
+
TaxAndCashDashboardNotVerifiedW8BENForm: TaxAndCashDashboardNotVerifiedW8BENForm,
|
|
1753
|
+
TaxAndCashDashboardNotVerifiedW8BENEForm: TaxAndCashDashboardNotVerifiedW8BENEForm,
|
|
1754
|
+
TaxAndCashDashboardNotActiveW8BENEForm: TaxAndCashDashboardNotActiveW8BENEForm,
|
|
1755
|
+
TaxAndCashDashboardNoFormNeeded: TaxAndCashDashboardNoFormNeeded,
|
|
1756
|
+
TaxAndCashDashboardIndirectTaxCanada: TaxAndCashDashboardIndirectTaxCanada,
|
|
1757
|
+
TaxAndCashDashboardIndirectTaxCanadaQuebec: TaxAndCashDashboardIndirectTaxCanadaQuebec,
|
|
1758
|
+
TaxAndCashDashboardIndirectTaxSpain: TaxAndCashDashboardIndirectTaxSpain,
|
|
1759
|
+
TaxAndCashDashboardIndirectTaxNotRegistered: TaxAndCashDashboardIndirectTaxNotRegistered,
|
|
1760
|
+
TaxAndCashDashboardIdentityVerifcationRequired: TaxAndCashDashboardIdentityVerifcationRequired,
|
|
1761
|
+
TaxAndCashDashboardIdentityVerifcationRequiredInternal: TaxAndCashDashboardIdentityVerifcationRequiredInternal,
|
|
1762
|
+
TaxAndCashDashboardIdentityVerifcationReviewInternal: TaxAndCashDashboardIdentityVerifcationReviewInternal,
|
|
1763
|
+
TaxAndCashDashboardIdentityVerifcationFailedInternal: TaxAndCashDashboardIdentityVerifcationFailedInternal,
|
|
1764
|
+
TaxAndCashDashboardNewTaxForm: TaxAndCashDashboardNewTaxForm,
|
|
1765
|
+
TaxAndCashDashboardPayoutsOnHold: TaxAndCashDashboardPayoutsOnHold,
|
|
1766
|
+
TaxAndCashDashboardLoading: TaxAndCashDashboardLoading,
|
|
1767
|
+
TaxAndCashDashboardWithLoadingError: TaxAndCashDashboardWithLoadingError,
|
|
1768
|
+
TaxAndCashDashboardWithGeneralError: TaxAndCashDashboardWithGeneralError,
|
|
1769
|
+
TaxAndCashDashboardDisabled: TaxAndCashDashboardDisabled,
|
|
1770
|
+
TaxAndCashTextProps: TaxAndCashTextProps
|
|
1771
|
+
});
|
|
1772
|
+
|
|
1773
|
+
const vatLabels = {
|
|
1774
|
+
GB: "VAT",
|
|
1775
|
+
AU: "GST",
|
|
1776
|
+
NZ: "GST",
|
|
1777
|
+
CA: "HST",
|
|
1778
|
+
AT: "VAT",
|
|
1779
|
+
BE: "VAT",
|
|
1780
|
+
BG: "VAT",
|
|
1781
|
+
HR: "VAT",
|
|
1782
|
+
CY: "VAT",
|
|
1783
|
+
CZ: "VAT",
|
|
1784
|
+
DK: "VAT",
|
|
1785
|
+
EE: "VAT",
|
|
1786
|
+
FI: "VAT",
|
|
1787
|
+
FR: "VAT",
|
|
1788
|
+
DE: "VAT",
|
|
1789
|
+
GR: "VAT",
|
|
1790
|
+
HU: "VAT",
|
|
1791
|
+
IE: "VAT",
|
|
1792
|
+
IT: "VAT",
|
|
1793
|
+
LV: "VAT",
|
|
1794
|
+
LT: "VAT",
|
|
1795
|
+
LU: "VAT",
|
|
1796
|
+
MT: "VAT",
|
|
1797
|
+
NL: "VAT",
|
|
1798
|
+
PL: "VAT",
|
|
1799
|
+
PT: "VAT",
|
|
1800
|
+
RO: "VAT",
|
|
1801
|
+
SK: "VAT",
|
|
1802
|
+
SI: "VAT",
|
|
1803
|
+
ES: "VAT",
|
|
1804
|
+
SE: "VAT",
|
|
1805
|
+
IS: "VAT",
|
|
1806
|
+
IN: "GST",
|
|
1807
|
+
IL: "VAT",
|
|
1808
|
+
JP: "CT",
|
|
1809
|
+
MX: "VAT",
|
|
1810
|
+
NO: "VAT",
|
|
1811
|
+
SG: "GST",
|
|
1812
|
+
ZA: "VAT",
|
|
1813
|
+
KR: "VAT",
|
|
1814
|
+
CH: "VAT",
|
|
1815
|
+
TW: "VAT",
|
|
1816
|
+
TH: "VAT",
|
|
1817
|
+
PH: "VAT",
|
|
1818
|
+
MY: "SST",
|
|
1819
|
+
AE: "VAT",
|
|
1820
|
+
TR: "VAT",
|
|
1821
|
+
RU: "VAT",
|
|
1822
|
+
};
|
|
1823
|
+
|
|
1824
|
+
const style$1 = {
|
|
1825
|
+
Container: {
|
|
1826
|
+
width: "100%",
|
|
1827
|
+
},
|
|
1828
|
+
InputContainer: {
|
|
1829
|
+
width: "100%",
|
|
1830
|
+
display: "flex",
|
|
1831
|
+
justifyContent: "flex-start",
|
|
1832
|
+
flexDirection: "column",
|
|
1833
|
+
gap: "16px",
|
|
1834
|
+
padding: "16px",
|
|
1835
|
+
maxWidth: "450px",
|
|
1836
|
+
},
|
|
1837
|
+
ConditionalInputsContainer: {
|
|
1838
|
+
width: "100%",
|
|
1839
|
+
display: "flex",
|
|
1840
|
+
justifyContent: "flex-start",
|
|
1841
|
+
flexDirection: "column",
|
|
1842
|
+
gap: "16px",
|
|
1843
|
+
},
|
|
1844
|
+
HR: {
|
|
1845
|
+
border: "1px solid #E0E0E0",
|
|
1846
|
+
margin: "10px 0",
|
|
1847
|
+
},
|
|
1848
|
+
Input: { maxWidth: "500px" },
|
|
1849
|
+
Checkbox: {
|
|
1850
|
+
"&::part(control)": {
|
|
1851
|
+
borderRadius: "0 !important",
|
|
1852
|
+
},
|
|
1853
|
+
},
|
|
1854
|
+
SearchInput: {
|
|
1855
|
+
padding: "var(--sl-spacing-x-small)",
|
|
1856
|
+
},
|
|
1857
|
+
ErrorInput: {
|
|
1858
|
+
maxWidth: "500px",
|
|
1859
|
+
"&::part(base)": {
|
|
1860
|
+
border: "1px solid var(--sl-color-danger-500)",
|
|
1861
|
+
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
1862
|
+
},
|
|
1863
|
+
"&::part(help-text)": {
|
|
1864
|
+
color: "var(--sl-color-danger-500)",
|
|
1865
|
+
},
|
|
1866
|
+
},
|
|
1867
|
+
};
|
|
1868
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1869
|
+
const styleString$1 = sheet$1.toString();
|
|
1870
|
+
const vanillaStyle = `
|
|
1871
|
+
:host{
|
|
1872
|
+
display: block;
|
|
1873
|
+
}
|
|
1874
|
+
* {
|
|
1875
|
+
margin: 0;
|
|
1876
|
+
padding: 0;
|
|
1877
|
+
box-sizing: border-box;
|
|
1878
|
+
}
|
|
1879
|
+
`;
|
|
1880
|
+
const OtherRegionSlotView = (props) => {
|
|
1881
|
+
var _a, _b, _c;
|
|
1882
|
+
const { states, states: { formState }, callbacks, text, } = props;
|
|
1883
|
+
const { classes } = sheet$1;
|
|
1884
|
+
const getTaxFieldLabel = (taxType) => {
|
|
1885
|
+
return global.intl.formatMessage({
|
|
1886
|
+
id: `tax-field-label${taxType}`,
|
|
1887
|
+
defaultMessage: text.indirectTaxNumber,
|
|
1888
|
+
}, { taxType });
|
|
1889
|
+
};
|
|
1890
|
+
const getTaxFieldError = (taxType) => {
|
|
1891
|
+
return global.intl.formatMessage({
|
|
1892
|
+
id: `tax-field-label${taxType}`,
|
|
1893
|
+
defaultMessage: text.error.indirectTaxNumber,
|
|
1894
|
+
}, { taxType });
|
|
1895
|
+
};
|
|
1896
|
+
const IndirectTaxNumberInput = ({ label, error, name, }) => {
|
|
1897
|
+
var _a;
|
|
1898
|
+
return (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label, base: input-base", class: classes.Input, label: label, disabled: states.loading || states.disabled, value: formState[name] }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a[name]) && {
|
|
1899
|
+
class: classes.ErrorInput,
|
|
1900
|
+
helpText: error,
|
|
1901
|
+
}), { id: name, name: `/${name}` })));
|
|
1902
|
+
};
|
|
1903
|
+
const SpainFields = () => {
|
|
1904
|
+
var _a, _b;
|
|
1905
|
+
return (index.h("div", { class: classes.ConditionalInputsContainer },
|
|
1906
|
+
index.h("sl-select", Object.assign({ required: true, exportparts: "label: input-label, base: input-base", class: classes.Input, value: formState.subRegion, label: text.subRegion, disabled: states.loading || states.disabled }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.indirectTaxNumber) && {
|
|
1907
|
+
class: classes.ErrorInput,
|
|
1908
|
+
helpText: formatErrorMessage(text.subRegion, text.error.fieldRequiredError),
|
|
1909
|
+
}), { id: "subRegion", name: "/subRegion" }), props.data.esRegions.map((r) => (index.h("sl-menu-item", { value: r.regionCode }, r.displayName)))),
|
|
1910
|
+
index.h(IndirectTaxNumberInput, { name: "indirectTaxNumber", label: getTaxFieldLabel("VAT"), error: getTaxFieldError("VAT") }),
|
|
1911
|
+
index.h("sl-checkbox", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.hasSubRegionTaxNumber, "onSl-change": callbacks.onSpainToggle, disabled: states.disabled || states.isPartner }, text.isRegisteredSubRegionIncomeTax),
|
|
1912
|
+
formState.hasSubRegionTaxNumber && (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label, base: input-base", class: classes.Input, label: text.subRegionTaxNumberLabel, disabled: states.loading || states.disabled, value: formState.subRegionTaxNumber }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.subRegionTaxNumber) && {
|
|
1913
|
+
class: classes.ErrorInput,
|
|
1914
|
+
helpText: formatErrorMessage(text.subRegionTaxNumberLabel, text.error.fieldRequiredError),
|
|
1915
|
+
}), { id: "subRegionTaxNumber", name: "/subRegionTaxNumber" })))));
|
|
1916
|
+
};
|
|
1917
|
+
const CanadaFields = () => {
|
|
1918
|
+
var _a, _b;
|
|
1919
|
+
const { classes } = sheet$1;
|
|
1920
|
+
const currentTaxType = (_a = INDIRECT_TAX_PROVINCES === null || INDIRECT_TAX_PROVINCES === void 0 ? void 0 : INDIRECT_TAX_PROVINCES.find((p) => p.regionCode === formState.province)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
1921
|
+
return (index.h("div", { class: classes.ConditionalInputsContainer },
|
|
1922
|
+
index.h("sl-select", Object.assign({ required: true, value: formState.province, exportparts: "label: input-label, base: input-base", class: classes.Input, label: text.province, disabled: states.loading || states.disabled, "onSl-select": (e) => callbacks.onFormChange("province", e) }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.province) && {
|
|
1923
|
+
class: classes.ErrorInput,
|
|
1924
|
+
helpText: formatErrorMessage(text.province, text.error.fieldRequiredError),
|
|
1925
|
+
}), { id: "province", name: "/province" }), props.data.provinces.map((p) => (index.h("sl-menu-item", { value: p.regionCode }, p.displayName)))),
|
|
1926
|
+
currentTaxType === "GST" && (index.h(IndirectTaxNumberInput, { label: getTaxFieldLabel("GST"), error: getTaxFieldError("GST"), name: "indirectTaxNumber" })),
|
|
1927
|
+
currentTaxType === "HST" && (index.h(IndirectTaxNumberInput, { label: getTaxFieldLabel("HST"), error: getTaxFieldError("HST"), name: "indirectTaxNumber" })),
|
|
1928
|
+
formState.province === "QUEBEC" && (index.h("div", { class: classes.ConditionalInputsContainer },
|
|
1929
|
+
index.h("sl-checkbox", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", "onSl-change": callbacks.onQstToggle, checked: formState.hasQst, disabled: states.isPartner || states.disabled }, text.isRegisteredQST),
|
|
1930
|
+
formState.hasQst && (index.h(IndirectTaxNumberInput, { name: "qstNumber", label: text.qstNumber, error: formatErrorMessage(text.qstNumber, text.error.fieldRequiredError) }))))));
|
|
1931
|
+
};
|
|
1932
|
+
const getActiveForm = (selectedRegion) => {
|
|
1933
|
+
var _a;
|
|
1934
|
+
switch (selectedRegion) {
|
|
1935
|
+
case "CA":
|
|
1936
|
+
return index.h(CanadaFields, null);
|
|
1937
|
+
case "ES":
|
|
1938
|
+
return index.h(SpainFields, null);
|
|
1939
|
+
default:
|
|
1940
|
+
return (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label, base: input-base", class: classes.Input, value: formState.indirectTaxNumber, label: getTaxFieldLabel(vatLabels[selectedRegion] || "GENERAL"), disabled: states.loading || states.disabled }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.indirectTaxNumber) && {
|
|
1941
|
+
class: classes.ErrorInput,
|
|
1942
|
+
helpText: getTaxFieldError(vatLabels[selectedRegion] || "GENERAL"),
|
|
1943
|
+
}), { id: "indirectTaxNumber", name: "/indirectTaxNumber" })));
|
|
1944
|
+
}
|
|
1945
|
+
};
|
|
1946
|
+
const activeForm = getActiveForm(formState.selectedRegion);
|
|
1947
|
+
return (index.h("div", { style: states.hide ? { display: "none" } : {} },
|
|
1948
|
+
index.h("form", { class: classes.Container },
|
|
1949
|
+
index.h("style", { type: "text/css" },
|
|
1950
|
+
styleString$1,
|
|
1951
|
+
vanillaStyle),
|
|
1952
|
+
index.h("hr", { class: classes.HR }),
|
|
1953
|
+
index.h("div", { class: classes.InputContainer },
|
|
1954
|
+
index.h("sl-select", Object.assign({ required: true, class: classes.Input, value: formState.selectedRegion, exportparts: "label: input-label, base: input-base", label: text.selectedRegion, disabled: states.loading || states.disabled, "onSl-select": (e) => callbacks.onFormChange("selectedRegion", e) }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.selectedRegion) && {
|
|
1955
|
+
class: classes.ErrorInput,
|
|
1956
|
+
helpText: formatErrorMessage(text.selectedRegion, text.error.fieldRequiredError),
|
|
1957
|
+
}), { id: "selectedRegion", name: "/selectedRegion" }),
|
|
1958
|
+
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
1959
|
+
// Stop shoelace intercepting key presses
|
|
1960
|
+
e.stopPropagation();
|
|
1961
|
+
}, "onSl-input": (e) => {
|
|
1962
|
+
callbacks.setCountrySearch(e.target.value);
|
|
1963
|
+
} }), (_b = props.data.countries) === null || _b === void 0 ? void 0 :
|
|
1964
|
+
_b.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_c = props.data.allCountries) === null || _c === void 0 ? void 0 :
|
|
1965
|
+
_c.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
1966
|
+
activeForm),
|
|
1967
|
+
index.h("hr", { class: classes.HR }))));
|
|
1968
|
+
};
|
|
1969
|
+
|
|
1970
|
+
const style$2 = {
|
|
1971
|
+
Description: {
|
|
1972
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1973
|
+
marginTop: "var(--sl-spacing-small)",
|
|
1974
|
+
margin: "0 0 var(--sl-spacing-large)",
|
|
1975
|
+
color: "var(--sqm-text-subdued)",
|
|
1976
|
+
},
|
|
1977
|
+
Header: {
|
|
1978
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1979
|
+
fontWeight: "var(-sl-font-weight-semibold)",
|
|
1980
|
+
margin: "0 0 var(--sl-spacing-xxx-small)",
|
|
1981
|
+
},
|
|
1982
|
+
Container: {},
|
|
1983
|
+
InvoiceTableContaier: {
|
|
1984
|
+
"& sl-details::part(base)": {
|
|
1985
|
+
border: "none",
|
|
1986
|
+
},
|
|
1987
|
+
"& sl-details::part(content)": {
|
|
1988
|
+
padding: 0,
|
|
1989
|
+
},
|
|
1990
|
+
"& sl-details::part(header)": {
|
|
1991
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
1992
|
+
padding: "0px",
|
|
1993
|
+
},
|
|
1994
|
+
"& sl-details::part(summary)": {
|
|
1995
|
+
fontWeight: "var(-sl-font-weight-semibold)",
|
|
1996
|
+
},
|
|
1997
|
+
"& sl-details::part(summary-icon)": {
|
|
1998
|
+
marginRight: "100%",
|
|
1999
|
+
marginLeft: "var(--sl-spacing-x-small)",
|
|
2000
|
+
transform: "rotate(90deg)",
|
|
2001
|
+
},
|
|
2002
|
+
"& sl-details[open]::part(summary-icon)": {
|
|
2003
|
+
transform: "rotate(270deg)",
|
|
2004
|
+
},
|
|
2005
|
+
},
|
|
2006
|
+
};
|
|
2007
|
+
function InvoiceTableView(props, children) {
|
|
2008
|
+
const sheet = JSS.createStyleSheet(style$2);
|
|
2009
|
+
const styleString = sheet.toString();
|
|
2010
|
+
const vanillaStyle = `
|
|
2011
|
+
:host{
|
|
2012
|
+
display: block;
|
|
2013
|
+
}`;
|
|
2014
|
+
return (index.h("div", { class: sheet.classes.Container },
|
|
2015
|
+
index.h("style", { type: "text/css" },
|
|
2016
|
+
vanillaStyle,
|
|
2017
|
+
styleString),
|
|
2018
|
+
index.h("div", { class: sheet.classes.InvoiceTableContaier },
|
|
2019
|
+
index.h("sl-details", { summary: props.header },
|
|
2020
|
+
index.h("p", { class: sheet.classes.Description }, props.description),
|
|
2021
|
+
children))));
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
exports.ADDRESS_REGIONS = ADDRESS_REGIONS;
|
|
2025
|
+
exports.GeneralLoadingView = GeneralLoadingView;
|
|
2026
|
+
exports.INDIRECT_TAX_PROVINCES = INDIRECT_TAX_PROVINCES;
|
|
2027
|
+
exports.INDIRECT_TAX_SPAIN_REGIONS = INDIRECT_TAX_SPAIN_REGIONS;
|
|
2028
|
+
exports.InvoiceTableView = InvoiceTableView;
|
|
2029
|
+
exports.LoadingView = LoadingView;
|
|
2030
|
+
exports.OtherRegionSlotView = OtherRegionSlotView;
|
|
2031
|
+
exports.TaxForm = TaxForm;
|
|
2032
|
+
exports.formatErrorMessage = formatErrorMessage;
|
|
2033
|
+
exports.getCountryObj = getCountryObj;
|
|
2034
|
+
exports.objectIsFull = objectIsFull;
|
|
2035
|
+
exports.taxTypeToName = taxTypeToName;
|
|
2036
|
+
exports.validTaxDocument = validTaxDocument;
|
|
2037
|
+
exports.validateBillingField = validateBillingField;
|
|
2038
|
+
exports.vatLabels = vatLabels;
|