@saasquatch/mint-components 1.11.0-5 → 1.11.0-7
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-21aa34f8.js → ShadowViewAddon-ba87315e.js} +48 -47
- package/dist/cjs/{global-4a59a374.js → global-0e1b8019.js} +162 -11
- package/dist/cjs/index-56d1fa5b.js +2227 -0
- package/dist/cjs/{index.module-df530553.js → index.module-2d82a984.js} +1444 -244
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-05098e19.js → luxon-20eafbd9.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-3c470512.js} +1 -1
- package/dist/cjs/{re-render-1976e05e.js → re-render-7744b75a.js} +5 -5
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +470 -470
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +114 -113
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +6 -6
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-invoice-table-view-7739a5b4.js → sqm-invoice-table-view-e75291d8.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +12 -11
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +10 -9
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a125ec5f.js → sqm-navigation-sidebar-item-view-34d8941e.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-email-verification-view-07161940.js → sqm-portal-email-verification-view-a056e53e.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-07b99f80.js → sqm-portal-profile-view-c1753d1a.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -14
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +12 -11
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +8 -8
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +17 -16
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +67 -66
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +50 -49
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-a5a04d8a.js} +1 -4
- package/dist/cjs/{useChildElements-e0d44916.js → useChildElements-079a23aa.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-615a4dec.js} +4 -4
- package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-034e8eb1.js} +20 -19
- package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-cabaa291.js} +3 -3
- package/dist/cjs/{utilities-cec9dd36.js → utilities-a4072d5b.js} +2 -2
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +13 -14
- package/dist/esm/{ShadowViewAddon-90897c22.js → ShadowViewAddon-cebdd86a.js} +22 -21
- package/dist/esm/{global-e7bb0343.js → global-ce667547.js} +162 -11
- package/dist/esm/index-0c7b14c5.js +2225 -0
- package/dist/esm/{index.module-def4aec5.js → index.module-cfe48b0e.js} +1426 -223
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
- package/dist/esm/{re-render-12fd274a.js → re-render-9f58806b.js} +5 -5
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +78 -78
- package/dist/esm/sqm-big-stat_38.entry.js +63 -62
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +3 -3
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +6 -6
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
- package/dist/esm/{sqm-invoice-table-view-fb2f95b9.js → sqm-invoice-table-view-bccf5bbc.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +7 -6
- package/dist/esm/sqm-logout-current-user.entry.js +5 -4
- package/dist/esm/{sqm-navigation-sidebar-item-view-60ef06cc.js → sqm-navigation-sidebar-item-view-407d8d6a.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +5 -5
- package/dist/esm/{sqm-portal-email-verification-view-0b32261f.js → sqm-portal-email-verification-view-b8ba7573.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +9 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-03026a5e.js → sqm-portal-profile-view-9cbfeaf9.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +9 -8
- package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
- package/dist/esm/sqm-portal-registration-form.entry.js +10 -9
- package/dist/esm/sqm-portal-reset-password.entry.js +8 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/sqm-referral-table_11.entry.js +9 -8
- package/dist/esm/sqm-referred-registration.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +14 -13
- package/dist/esm/sqm-stencilbook.entry.js +48 -47
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
- package/dist/esm/{useChildElements-32e1bda1.js → useChildElements-55ba77b1.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-c8486b92.js} +4 -4
- package/dist/esm/{useReferralTable-f4de0650.js → useReferralTable-1671695f.js} +11 -10
- package/dist/esm/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-554eed2c.js} +3 -3
- package/dist/esm/{utilities-3f5bba22.js → utilities-aa00400c.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-cebdd86a.js +1 -0
- package/dist/esm-es5/global-ce667547.js +285 -0
- package/dist/esm-es5/index-0c7b14c5.js +1 -0
- package/dist/esm-es5/index.module-cfe48b0e.js +53 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
- package/dist/esm-es5/{re-render-12fd274a.js → re-render-9f58806b.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-fb2f95b9.js → sqm-invoice-table-view-bccf5bbc.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-60ef06cc.js → sqm-navigation-sidebar-item-view-407d8d6a.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-0b32261f.js → sqm-portal-email-verification-view-b8ba7573.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-03026a5e.js → sqm-portal-profile-view-9cbfeaf9.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
- package/dist/esm-es5/useChildElements-55ba77b1.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-c8486b92.js +1 -0
- package/dist/esm-es5/useReferralTable-1671695f.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-554eed2c.js +1 -0
- package/dist/esm-es5/{utilities-3f5bba22.js → utilities-aa00400c.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-674a64fe.system.js → p-0034b33b.system.js} +1 -1
- package/dist/mint-components/{p-2a414b2e.system.js → p-0979f82e.system.js} +2 -2
- package/dist/mint-components/{p-cde759a7.entry.js → p-1128f16d.entry.js} +14 -14
- package/dist/mint-components/{p-88aac6a9.system.entry.js → p-14beec1b.system.entry.js} +1 -1
- package/dist/mint-components/{p-5956a47e.entry.js → p-155e5795.entry.js} +1 -1
- package/dist/mint-components/p-175cf117.system.entry.js +1 -0
- package/dist/mint-components/{p-fd2c5407.js → p-1b24bb52.js} +1 -1
- package/dist/mint-components/p-1bb39bf3.js +1 -0
- package/dist/mint-components/p-1c021084.system.js +1 -0
- package/dist/mint-components/p-1cb0c56c.js +1 -0
- package/dist/mint-components/p-22082cf5.entry.js +1 -0
- package/dist/mint-components/{p-4502ed11.system.entry.js → p-2669e88d.system.entry.js} +1 -1
- package/dist/mint-components/{p-0e556260.js → p-2a82e591.js} +1 -1
- package/dist/mint-components/p-2c1ec58d.system.entry.js +1 -0
- package/dist/mint-components/{p-573fab0f.system.js → p-2c8c2ae9.system.js} +22 -22
- package/dist/mint-components/p-2d713a4a.entry.js +1 -0
- package/dist/mint-components/{p-58ef25d3.system.entry.js → p-2f75d0c6.system.entry.js} +1 -1
- package/dist/mint-components/{p-5cac90e8.system.entry.js → p-349315e6.system.entry.js} +1 -1
- package/dist/mint-components/{p-64491c96.system.entry.js → p-37518555.system.entry.js} +1 -1
- package/dist/mint-components/{p-3223ba7b.entry.js → p-3912f9af.entry.js} +1 -1
- package/dist/mint-components/{p-f3053c61.js → p-48704504.js} +1 -1
- package/dist/mint-components/{p-ce5afa40.entry.js → p-4baf9ec9.entry.js} +1 -1
- package/dist/mint-components/p-4e5ff6d5.system.entry.js +1 -0
- package/dist/mint-components/p-4fd5cde2.entry.js +1 -0
- package/dist/mint-components/{p-e84a74fe.system.entry.js → p-5464dd3c.system.entry.js} +1 -1
- package/dist/mint-components/{p-dd7ee007.system.js → p-553a92e2.system.js} +1 -1
- package/dist/mint-components/p-55ba5de4.js +42 -0
- package/dist/mint-components/p-569acf5d.entry.js +1 -0
- package/dist/mint-components/p-5a9e6c23.system.js +1 -0
- package/dist/mint-components/{p-dd0d79bf.entry.js → p-5c602e84.entry.js} +1 -1
- package/dist/mint-components/p-5e346208.system.entry.js +1 -0
- package/dist/mint-components/{p-a9050eb0.entry.js → p-5f4a0d5a.entry.js} +1 -1
- package/dist/mint-components/p-5f4cf5f4.system.js +53 -0
- package/dist/mint-components/p-6361cd09.system.entry.js +1 -0
- package/dist/mint-components/p-65976f70.system.entry.js +1 -0
- package/dist/mint-components/{p-3d4656bb.system.js → p-69ae3f41.system.js} +1 -1
- package/dist/mint-components/p-6fbfd683.js +1 -0
- package/dist/mint-components/{p-57e4ef5f.entry.js → p-709c0d6d.entry.js} +1 -1
- package/dist/mint-components/{p-86990110.entry.js → p-747e6ce6.entry.js} +1 -1
- package/dist/mint-components/{p-8fe21979.system.entry.js → p-74ba2bdd.system.entry.js} +1 -1
- package/dist/mint-components/p-77150ca3.entry.js +1 -0
- package/dist/mint-components/{p-fbdf0738.entry.js → p-79097c07.entry.js} +1 -1
- package/dist/mint-components/{p-ebcec043.entry.js → p-7a1e23b0.entry.js} +1 -1
- package/dist/mint-components/{p-f0806232.system.entry.js → p-7ab14d4b.system.entry.js} +1 -1
- package/dist/mint-components/{p-9dc3f592.entry.js → p-7b0c819b.entry.js} +23 -24
- package/dist/mint-components/p-81ef4d8d.system.entry.js +1 -0
- package/dist/mint-components/{p-41a11a7f.js → p-83a759a6.js} +1 -1
- package/dist/mint-components/p-84a5feb6.js +1 -0
- package/dist/mint-components/p-858a87ce.entry.js +1 -0
- package/dist/mint-components/p-89669879.system.js +1 -0
- package/dist/mint-components/p-8a82d287.entry.js +1 -0
- package/dist/mint-components/{p-7a572b34.entry.js → p-8b37f9fa.entry.js} +3 -3
- package/dist/mint-components/{p-d7df3dfd.system.js → p-8c616b35.system.js} +1 -1
- package/dist/mint-components/p-8d0312ad.entry.js +13 -0
- package/dist/mint-components/{p-66172a05.js → p-8d2d99b5.js} +1 -1
- package/dist/mint-components/{p-251e7567.js → p-9223640e.js} +1 -1
- package/dist/mint-components/{p-eaada4da.js → p-92990ceb.js} +1 -1
- package/dist/mint-components/{p-51721f6b.system.js → p-93c4b92a.system.js} +1 -1
- package/dist/mint-components/p-93feb565.system.entry.js +1 -0
- package/dist/mint-components/{p-0d8c53ac.system.js → p-94b397d0.system.js} +1 -1
- package/dist/mint-components/{p-6afb4f48.system.entry.js → p-95af445c.system.entry.js} +1 -1
- package/dist/mint-components/p-97f9ea19.system.js +1 -0
- package/dist/mint-components/{p-4edde470.entry.js → p-9a02b093.entry.js} +1 -1
- package/dist/mint-components/{p-007383e1.entry.js → p-9c1011db.entry.js} +2 -2
- package/dist/mint-components/{p-137ea86e.entry.js → p-a05a21b8.entry.js} +1 -1
- package/dist/mint-components/p-a1dddd9c.entry.js +1 -0
- package/dist/mint-components/{p-07f675ab.system.entry.js → p-a2189daf.system.entry.js} +1 -1
- package/dist/mint-components/p-a230e0f7.entry.js +1 -0
- package/dist/mint-components/{p-2ee2ebba.js → p-a2fc8ec6.js} +4 -4
- package/dist/mint-components/{p-5f1c4160.system.entry.js → p-a56fbe1f.system.entry.js} +1 -1
- package/dist/mint-components/p-a63607fe.js +1 -0
- package/dist/mint-components/p-a6ad8082.system.js +1 -0
- package/dist/mint-components/{p-9774fbc5.js → p-a7e84030.js} +153 -153
- package/dist/mint-components/{p-28b6106f.js → p-aa1750ad.js} +1 -1
- package/dist/mint-components/{p-cf690d55.system.entry.js → p-ad218d0b.system.entry.js} +1 -1
- package/dist/mint-components/p-b9e629c4.entry.js +1 -0
- package/dist/mint-components/{p-cf158064.entry.js → p-ba9642a9.entry.js} +3 -3
- package/dist/mint-components/{p-4864ed8a.system.entry.js → p-bf161aff.system.entry.js} +1 -1
- package/dist/mint-components/p-cac64545.system.entry.js +1 -0
- package/dist/mint-components/{p-370a1a73.system.js → p-cb45d0a8.system.js} +1 -1
- package/dist/mint-components/{p-c7a3fd1b.system.js → p-cc24f7e0.system.js} +1 -1
- package/dist/mint-components/p-cc2a5934.entry.js +13 -0
- package/dist/mint-components/p-cca80c2e.system.entry.js +1 -0
- package/dist/mint-components/{p-178d2d2e.entry.js → p-cdd04337.entry.js} +1 -1
- package/dist/mint-components/{p-b12f7281.system.entry.js → p-ce23dbff.system.entry.js} +1 -1
- package/dist/mint-components/{p-fe5675b3.entry.js → p-cf8ccbf5.entry.js} +1 -1
- package/dist/mint-components/{p-fb20eb5e.system.entry.js → p-cfc4a126.system.entry.js} +1 -1
- package/dist/mint-components/p-d29db28c.system.entry.js +1 -0
- package/dist/mint-components/{p-05948592.js → p-d491eac5.js} +24 -24
- package/dist/mint-components/{p-671ee3fd.entry.js → p-d5e0b017.entry.js} +2 -2
- package/dist/mint-components/{p-6cef104b.entry.js → p-db7b9e12.entry.js} +1 -1
- package/dist/mint-components/p-dbb74fc2.system.entry.js +1 -0
- package/dist/mint-components/{p-8e907ac7.system.entry.js → p-de9b0bcf.system.entry.js} +1 -1
- package/dist/mint-components/p-e3ddb67b.system.entry.js +1 -0
- package/dist/mint-components/{p-ce9e7c98.system.js → p-e5299352.system.js} +1 -1
- package/dist/mint-components/p-eb8cb617.system.js +1 -0
- package/dist/mint-components/p-ef4336c4.system.entry.js +1 -0
- package/dist/mint-components/{p-afd366ae.system.entry.js → p-f0553edd.system.entry.js} +1 -1
- package/dist/mint-components/{p-7731f793.system.entry.js → p-fd8496a0.system.entry.js} +1 -1
- package/dist/mint-components/p-fec47694.entry.js +1 -0
- package/dist/mint-components/p-ff87ca9c.system.entry.js +1 -0
- package/dist/types/components.d.ts +0 -26
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-cash-payouts.cjs.entry.js +0 -19
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -89
- package/dist/collection/components/sqm-cash-payouts/sqm-cash-payouts.js +0 -16
- package/dist/collection/components/sqm-cash-payouts/sqm-widget-verification/sqm-widget-verification.js +0 -47
- package/dist/collection/components/sqm-cash-payouts/sqm-widget-verification/useWidgetVerification.js +0 -53
- package/dist/esm/sqm-cash-payouts.entry.js +0 -15
- package/dist/esm/sqm-widget-verification.entry.js +0 -85
- package/dist/esm-es5/ShadowViewAddon-90897c22.js +0 -1
- package/dist/esm-es5/global-e7bb0343.js +0 -285
- package/dist/esm-es5/index.module-def4aec5.js +0 -1
- package/dist/esm-es5/sqm-cash-payouts.entry.js +0 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
- package/dist/esm-es5/useChildElements-32e1bda1.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +0 -1
- package/dist/esm-es5/useReferralTable-f4de0650.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +0 -1
- package/dist/mint-components/p-02424350.system.js +0 -1
- package/dist/mint-components/p-03494732.entry.js +0 -1
- package/dist/mint-components/p-0b9fa97f.js +0 -1
- package/dist/mint-components/p-10e89d0a.entry.js +0 -1
- package/dist/mint-components/p-1b485560.system.entry.js +0 -1
- package/dist/mint-components/p-217ad395.entry.js +0 -1
- package/dist/mint-components/p-2434470e.system.entry.js +0 -1
- package/dist/mint-components/p-2dd67762.entry.js +0 -1
- package/dist/mint-components/p-51f517a2.js +0 -1
- package/dist/mint-components/p-55a782cf.system.entry.js +0 -1
- package/dist/mint-components/p-5be235f9.entry.js +0 -1
- package/dist/mint-components/p-5c55dc92.system.entry.js +0 -1
- package/dist/mint-components/p-5d485450.entry.js +0 -1
- package/dist/mint-components/p-5db9aa17.system.entry.js +0 -1
- package/dist/mint-components/p-61eab172.js +0 -1
- package/dist/mint-components/p-711ba77e.system.entry.js +0 -1
- package/dist/mint-components/p-733825fa.system.entry.js +0 -1
- package/dist/mint-components/p-770368bc.system.js +0 -1
- package/dist/mint-components/p-79191f88.entry.js +0 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +0 -1
- package/dist/mint-components/p-91669312.entry.js +0 -1
- package/dist/mint-components/p-956ed10a.entry.js +0 -13
- package/dist/mint-components/p-97198e2c.system.js +0 -1
- package/dist/mint-components/p-973f6501.system.entry.js +0 -1
- package/dist/mint-components/p-9c310991.system.entry.js +0 -1
- package/dist/mint-components/p-a61e6394.system.entry.js +0 -1
- package/dist/mint-components/p-a6a7dcaa.js +0 -1
- package/dist/mint-components/p-a8f7cb95.js +0 -1
- package/dist/mint-components/p-aad11a68.entry.js +0 -1
- package/dist/mint-components/p-af062c8f.system.entry.js +0 -1
- package/dist/mint-components/p-b370fca8.system.js +0 -1
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +0 -1
- package/dist/mint-components/p-b5861974.system.entry.js +0 -1
- package/dist/mint-components/p-b8dbb809.system.entry.js +0 -1
- package/dist/mint-components/p-be38de26.system.js +0 -1
- package/dist/mint-components/p-c84659a3.system.js +0 -1
- package/dist/mint-components/p-c8878e79.entry.js +0 -1
- package/dist/mint-components/p-dab544d9.entry.js +0 -1
- package/dist/mint-components/p-db6fbcf4.entry.js +0 -1
- package/dist/mint-components/p-dc63e429.system.entry.js +0 -1
- package/dist/mint-components/p-e5a0c50e.entry.js +0 -13
- package/dist/mint-components/p-eba44835.system.entry.js +0 -1
- package/dist/mint-components/p-f8f6c99d.system.entry.js +0 -1
- package/dist/types/components/sqm-cash-payouts/sqm-cash-payouts.d.ts +0 -8
- package/dist/types/components/sqm-cash-payouts/sqm-widget-verification/sqm-widget-verification.d.ts +0 -9
- package/dist/types/components/sqm-cash-payouts/sqm-widget-verification/useWidgetVerification.d.ts +0 -9
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
9
|
-
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
5
|
+
const index$1 = require('./index-b0129cd6.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-a5a04d8a.js');
|
|
7
|
+
const global = require('./global-0e1b8019.js');
|
|
8
|
+
const index_module = require('./index.module-2d82a984.js');
|
|
10
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
10
|
require('./mixins-fe9d4112.js');
|
|
12
11
|
const JSS = require('./JSS-8503a151.js');
|
|
13
12
|
const GenericTableView = require('./GenericTableView-80d7642e.js');
|
|
14
|
-
const reRender = require('./re-render-
|
|
15
|
-
const useChildElements = require('./useChildElements-
|
|
16
|
-
const luxon = require('./luxon-
|
|
17
|
-
const
|
|
13
|
+
const reRender = require('./re-render-7744b75a.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-079a23aa.js');
|
|
15
|
+
const luxon = require('./luxon-20eafbd9.js');
|
|
16
|
+
const index = require('./index-56d1fa5b.js');
|
|
17
|
+
const useReferralTable = require('./useReferralTable-034e8eb1.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
|
-
const
|
|
19
|
+
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
20
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-e75291d8.js');
|
|
20
21
|
|
|
21
22
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
22
23
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -28,7 +29,7 @@ const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
|
28
29
|
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
29
30
|
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
30
31
|
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
31
|
-
const GET_USER =
|
|
32
|
+
const GET_USER = index.dist.gql `
|
|
32
33
|
query getUserTaxInfo {
|
|
33
34
|
user: viewer {
|
|
34
35
|
... on User {
|
|
@@ -69,27 +70,26 @@ const GET_USER = index_module.dist.gql `
|
|
|
69
70
|
type
|
|
70
71
|
dateCreated
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
# }
|
|
73
|
+
withdrawalSettings {
|
|
74
|
+
paymentMethod
|
|
75
|
+
paypalEmailAddress
|
|
76
|
+
bankCountry
|
|
77
|
+
bankAccountNumber
|
|
78
|
+
paymentSchedulingType
|
|
79
|
+
paymentThreshold
|
|
80
|
+
paymentDay
|
|
81
|
+
}
|
|
82
|
+
payoutsAccount {
|
|
83
|
+
hold
|
|
84
|
+
balance
|
|
85
|
+
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
`;
|
|
92
|
-
const GET_COUNTRIES =
|
|
92
|
+
const GET_COUNTRIES = index.dist.gql `
|
|
93
93
|
query getCountries {
|
|
94
94
|
impactPayoutCountries(limit: 1000) {
|
|
95
95
|
data {
|
|
@@ -99,7 +99,7 @@ const GET_COUNTRIES = index_module.dist.gql `
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
`;
|
|
102
|
-
const GET_CURRENCIES =
|
|
102
|
+
const GET_CURRENCIES = index.dist.gql `
|
|
103
103
|
query currencies($locale: RSLocale) {
|
|
104
104
|
currencies(limit: 300) {
|
|
105
105
|
data {
|
|
@@ -109,7 +109,7 @@ const GET_CURRENCIES = index_module.dist.gql `
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
`;
|
|
112
|
-
const GET_FINANCE_NETWORK_SETTINGS =
|
|
112
|
+
const GET_FINANCE_NETWORK_SETTINGS = index.dist.gql `
|
|
113
113
|
query impactFinanceNetworkSettings(
|
|
114
114
|
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
115
115
|
) {
|
|
@@ -135,7 +135,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
135
135
|
const { errors, ...formState } = props.states.formState;
|
|
136
136
|
return {
|
|
137
137
|
0: {
|
|
138
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
|
|
138
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
|
|
139
139
|
class: "error-input",
|
|
140
140
|
helpText: getValidationErrorMessage({
|
|
141
141
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
|
|
@@ -144,18 +144,18 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
144
144
|
})))),
|
|
145
145
|
},
|
|
146
146
|
1: {
|
|
147
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankAccountType) && {
|
|
147
|
+
input: (index$1.h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankAccountType) && {
|
|
148
148
|
class: "error-input",
|
|
149
149
|
helpText: getValidationErrorMessage({
|
|
150
150
|
type: (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _e === void 0 ? void 0 : _e.bankAccountType) === null || _f === void 0 ? void 0 : _f.type,
|
|
151
151
|
label: props.text.bankAccountTypeLabel,
|
|
152
152
|
}),
|
|
153
153
|
})),
|
|
154
|
-
index.h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
155
|
-
index.h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
154
|
+
index$1.h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
155
|
+
index$1.h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
156
156
|
},
|
|
157
157
|
2: {
|
|
158
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountNumber) && {
|
|
158
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountNumber) && {
|
|
159
159
|
class: "error-input",
|
|
160
160
|
helpText: getValidationErrorMessage({
|
|
161
161
|
type: (_j = (_h = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _h === void 0 ? void 0 : _h.bankAccountNumber) === null || _j === void 0 ? void 0 : _j.type,
|
|
@@ -164,7 +164,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
164
164
|
})))),
|
|
165
165
|
},
|
|
166
166
|
3: {
|
|
167
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.bankAccountNumber) && {
|
|
167
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.bankAccountNumber) && {
|
|
168
168
|
class: "error-input",
|
|
169
169
|
helpText: getValidationErrorMessage({
|
|
170
170
|
type: (_m = (_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.bankAccountNumber) === null || _m === void 0 ? void 0 : _m.type,
|
|
@@ -173,7 +173,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
173
173
|
})))),
|
|
174
174
|
},
|
|
175
175
|
4: {
|
|
176
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_o = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _o === void 0 ? void 0 : _o.swiftCode) && {
|
|
176
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_o = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _o === void 0 ? void 0 : _o.swiftCode) && {
|
|
177
177
|
class: "error-input",
|
|
178
178
|
helpText: getValidationErrorMessage({
|
|
179
179
|
type: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.swiftCode) === null || _q === void 0 ? void 0 : _q.type,
|
|
@@ -182,7 +182,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
182
182
|
})))),
|
|
183
183
|
},
|
|
184
184
|
5: {
|
|
185
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: global.intl.formatMessage({
|
|
185
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: global.intl.formatMessage({
|
|
186
186
|
id: "routingCodeText",
|
|
187
187
|
defaultMessage: props.text.routingCodeLabel,
|
|
188
188
|
}, {
|
|
@@ -201,7 +201,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
201
201
|
})))),
|
|
202
202
|
},
|
|
203
203
|
6: {
|
|
204
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankName) && {
|
|
204
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankName) && {
|
|
205
205
|
class: "error-input",
|
|
206
206
|
helpText: getValidationErrorMessage({
|
|
207
207
|
type: (_w = (_v = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _v === void 0 ? void 0 : _v.bankName) === null || _w === void 0 ? void 0 : _w.type,
|
|
@@ -211,17 +211,17 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
211
211
|
},
|
|
212
212
|
7: {
|
|
213
213
|
input: [
|
|
214
|
-
index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.beneficiaryClassification) && {
|
|
214
|
+
index$1.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.beneficiaryClassification) && {
|
|
215
215
|
class: "error-input",
|
|
216
216
|
helpText: getValidationErrorMessage({
|
|
217
217
|
type: (_z = (_y = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _y === void 0 ? void 0 : _y.beneficiaryClassification) === null || _z === void 0 ? void 0 : _z.type,
|
|
218
218
|
label: props.text.classificationLabel,
|
|
219
219
|
}),
|
|
220
220
|
})),
|
|
221
|
-
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
222
|
-
index.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
223
|
-
index.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel)),
|
|
224
|
-
index.h("sl-input", Object.assign({ required: true, label: global.intl.formatMessage({
|
|
221
|
+
index$1.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
222
|
+
index$1.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
223
|
+
index$1.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel)),
|
|
224
|
+
index$1.h("sl-input", Object.assign({ required: true, label: global.intl.formatMessage({
|
|
225
225
|
id: "fxWireText",
|
|
226
226
|
defaultMessage: props.text.taxPayerIdLabel,
|
|
227
227
|
}, {
|
|
@@ -236,18 +236,18 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
236
236
|
],
|
|
237
237
|
},
|
|
238
238
|
8: {
|
|
239
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_3 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _3 === void 0 ? void 0 : _3.beneficiaryClassification) && {
|
|
239
|
+
input: (index$1.h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_3 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _3 === void 0 ? void 0 : _3.beneficiaryClassification) && {
|
|
240
240
|
class: "error-input",
|
|
241
241
|
helpText: getValidationErrorMessage({
|
|
242
242
|
type: (_5 = (_4 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _4 === void 0 ? void 0 : _4.beneficiaryClassification) === null || _5 === void 0 ? void 0 : _5.type,
|
|
243
243
|
label: props.text.classificationCPFLabel,
|
|
244
244
|
}),
|
|
245
245
|
})),
|
|
246
|
-
index.h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
247
|
-
index.h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
246
|
+
index$1.h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
247
|
+
index$1.h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
248
248
|
},
|
|
249
249
|
9: {
|
|
250
|
-
input: (index.h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.patronymicName) && {
|
|
250
|
+
input: (index$1.h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.patronymicName) && {
|
|
251
251
|
class: "error-input",
|
|
252
252
|
helpText: getValidationErrorMessage({
|
|
253
253
|
type: (_8 = (_7 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _7 === void 0 ? void 0 : _7.patronymicName) === null || _8 === void 0 ? void 0 : _8.type,
|
|
@@ -256,7 +256,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
256
256
|
})))),
|
|
257
257
|
},
|
|
258
258
|
10: {
|
|
259
|
-
input: (index.h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.voCode) && {
|
|
259
|
+
input: (index$1.h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.voCode) && {
|
|
260
260
|
class: "error-input",
|
|
261
261
|
helpText: getValidationErrorMessage({
|
|
262
262
|
type: (_11 = (_10 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _10 === void 0 ? void 0 : _10.voCode) === null || _11 === void 0 ? void 0 : _11.type,
|
|
@@ -265,7 +265,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
265
265
|
})))),
|
|
266
266
|
},
|
|
267
267
|
11: {
|
|
268
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.agencyCode) && {
|
|
268
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.agencyCode) && {
|
|
269
269
|
class: "error-input",
|
|
270
270
|
helpText: getValidationErrorMessage({
|
|
271
271
|
type: (_14 = (_13 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _13 === void 0 ? void 0 : _13.agencyCode) === null || _14 === void 0 ? void 0 : _14.type,
|
|
@@ -275,28 +275,28 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
275
275
|
},
|
|
276
276
|
12: {
|
|
277
277
|
input: [
|
|
278
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_15 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _15 === void 0 ? void 0 : _15.bankAddress) && {
|
|
278
|
+
index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_15 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _15 === void 0 ? void 0 : _15.bankAddress) && {
|
|
279
279
|
class: "error-input",
|
|
280
280
|
helpText: getValidationErrorMessage({
|
|
281
281
|
type: (_17 = (_16 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _16 === void 0 ? void 0 : _16.bankAddress) === null || _17 === void 0 ? void 0 : _17.type,
|
|
282
282
|
label: props.text.bankAddressLabel,
|
|
283
283
|
}),
|
|
284
284
|
}))),
|
|
285
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_18 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _18 === void 0 ? void 0 : _18.bankCity) && {
|
|
285
|
+
index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_18 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _18 === void 0 ? void 0 : _18.bankCity) && {
|
|
286
286
|
class: "error-input",
|
|
287
287
|
helpText: getValidationErrorMessage({
|
|
288
288
|
type: (_20 = (_19 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _19 === void 0 ? void 0 : _19.bankCity) === null || _20 === void 0 ? void 0 : _20.type,
|
|
289
289
|
label: props.text.bankCityLabel,
|
|
290
290
|
}),
|
|
291
291
|
}))),
|
|
292
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.bankState) && {
|
|
292
|
+
index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.bankState) && {
|
|
293
293
|
class: "error-input",
|
|
294
294
|
helpText: getValidationErrorMessage({
|
|
295
295
|
type: (_23 = (_22 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _22 === void 0 ? void 0 : _22.bankState) === null || _23 === void 0 ? void 0 : _23.type,
|
|
296
296
|
label: props.text.bankStateLabel,
|
|
297
297
|
}),
|
|
298
298
|
}))),
|
|
299
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.bankPostalCode) && {
|
|
299
|
+
index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.bankPostalCode) && {
|
|
300
300
|
class: "error-input",
|
|
301
301
|
helpText: getValidationErrorMessage({
|
|
302
302
|
type: (_26 = (_25 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _25 === void 0 ? void 0 : _25.bankPostalCode) === null || _26 === void 0 ? void 0 : _26.type,
|
|
@@ -306,7 +306,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
306
306
|
],
|
|
307
307
|
},
|
|
308
308
|
13: {
|
|
309
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.branchCode) && {
|
|
309
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.branchCode) && {
|
|
310
310
|
class: "error-input",
|
|
311
311
|
helpText: getValidationErrorMessage({
|
|
312
312
|
type: (_29 = (_28 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _28 === void 0 ? void 0 : _28.branchCode) === null || _29 === void 0 ? void 0 : _29.type,
|
|
@@ -315,16 +315,16 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
315
315
|
})))),
|
|
316
316
|
},
|
|
317
317
|
14: {
|
|
318
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_30 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _30 === void 0 ? void 0 : _30.beneficiaryClassification) && {
|
|
318
|
+
input: (index$1.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_30 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _30 === void 0 ? void 0 : _30.beneficiaryClassification) && {
|
|
319
319
|
class: "error-input",
|
|
320
320
|
helpText: getValidationErrorMessage({
|
|
321
321
|
type: (_32 = (_31 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _31 === void 0 ? void 0 : _31.beneficiaryClassification) === null || _32 === void 0 ? void 0 : _32.type,
|
|
322
322
|
label: props.text.classificationLabel,
|
|
323
323
|
}),
|
|
324
324
|
})),
|
|
325
|
-
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
326
|
-
index.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
327
|
-
index.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel))),
|
|
325
|
+
index$1.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
326
|
+
index$1.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
327
|
+
index$1.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel))),
|
|
328
328
|
},
|
|
329
329
|
};
|
|
330
330
|
}
|
|
@@ -822,80 +822,80 @@ const BankingInfoFormView = (props) => {
|
|
|
822
822
|
gap: "8px",
|
|
823
823
|
};
|
|
824
824
|
if (checkedValue === undefined) {
|
|
825
|
-
return (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column", gap: "16px" } },
|
|
826
|
-
index.h("div", { class: classes.SmallSkeleton }),
|
|
827
|
-
index.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
828
|
-
index.h("div", { class: classes.CheckboxSkeleton }),
|
|
829
|
-
index.h("div", { class: classes.SmallSkeleton })),
|
|
830
|
-
index.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
831
|
-
index.h("div", { class: classes.CheckboxSkeleton }),
|
|
832
|
-
index.h("div", { class: classes.SmallSkeleton }))));
|
|
825
|
+
return (index$1.h("div", { style: { ...flexBoxStyle, flexDirection: "column", gap: "16px" } },
|
|
826
|
+
index$1.h("div", { class: classes.SmallSkeleton }),
|
|
827
|
+
index$1.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
828
|
+
index$1.h("div", { class: classes.CheckboxSkeleton }),
|
|
829
|
+
index$1.h("div", { class: classes.SmallSkeleton })),
|
|
830
|
+
index$1.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
831
|
+
index$1.h("div", { class: classes.CheckboxSkeleton }),
|
|
832
|
+
index$1.h("div", { class: classes.SmallSkeleton }))));
|
|
833
833
|
}
|
|
834
834
|
if (checkedValue === "toPayPalAccount") {
|
|
835
|
-
return (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column" } },
|
|
836
|
-
index.h("div", { class: classes.SmallSkeleton }),
|
|
837
|
-
index.h("div", { class: classes.LargeSkeleton })));
|
|
835
|
+
return (index$1.h("div", { style: { ...flexBoxStyle, flexDirection: "column" } },
|
|
836
|
+
index$1.h("div", { class: classes.SmallSkeleton }),
|
|
837
|
+
index$1.h("div", { class: classes.LargeSkeleton })));
|
|
838
838
|
}
|
|
839
|
-
const skeletons = inputNumArray.map((_, idx) => (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column" }, key: idx },
|
|
840
|
-
index.h("div", { class: classes.SmallSkeleton }),
|
|
841
|
-
index.h("div", { class: classes.LargeSkeleton }))));
|
|
839
|
+
const skeletons = inputNumArray.map((_, idx) => (index$1.h("div", { style: { ...flexBoxStyle, flexDirection: "column" }, key: idx },
|
|
840
|
+
index$1.h("div", { class: classes.SmallSkeleton }),
|
|
841
|
+
index$1.h("div", { class: classes.LargeSkeleton }))));
|
|
842
842
|
return skeletons;
|
|
843
843
|
};
|
|
844
|
-
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
845
|
-
index.h("style", { type: "text/css" },
|
|
844
|
+
return (index$1.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
845
|
+
index$1.h("style", { type: "text/css" },
|
|
846
846
|
styleString,
|
|
847
847
|
vanillaStyle),
|
|
848
|
-
index.h("div", { class: classes.TextContainer },
|
|
849
|
-
index.h("div", null,
|
|
850
|
-
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
848
|
+
index$1.h("div", { class: classes.TextContainer },
|
|
849
|
+
index$1.h("div", null,
|
|
850
|
+
!states.hideSteps && (index$1.h("p", null, global.intl.formatMessage({
|
|
851
851
|
id: "formStep",
|
|
852
852
|
defaultMessage: text.formStep,
|
|
853
853
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
854
|
-
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
855
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
856
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
857
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
858
|
-
index.h("strong", null, text.error.generalTitle),
|
|
859
|
-
index.h("br", null),
|
|
854
|
+
index$1.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
855
|
+
index$1.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
856
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
857
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
858
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
859
|
+
index$1.h("br", null),
|
|
860
860
|
text.error.generalDescription)),
|
|
861
|
-
states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
862
|
-
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
863
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
864
|
-
index.h("br", null),
|
|
861
|
+
states.isPartner && !states.hideSteps && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
862
|
+
index$1.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
863
|
+
index$1.h("strong", null, text.isPartnerAlertHeader),
|
|
864
|
+
index$1.h("br", null),
|
|
865
865
|
text.isPartnerAlertDescription)),
|
|
866
|
-
index.h("div", null,
|
|
867
|
-
index.h("h4", null, text.paymentMethod),
|
|
868
|
-
index.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
869
|
-
index.h("div", null,
|
|
870
|
-
index.h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (index.h("div", { class: classes.RadioContainer },
|
|
871
|
-
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
|
|
872
|
-
formState.paymentMethodChecked === "toBankAccount" && (index.h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
|
|
866
|
+
index$1.h("div", null,
|
|
867
|
+
index$1.h("h4", null, text.paymentMethod),
|
|
868
|
+
index$1.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
869
|
+
index$1.h("div", null,
|
|
870
|
+
index$1.h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (index$1.h("div", { class: classes.RadioContainer },
|
|
871
|
+
states.hasPayPal && (index$1.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
|
|
872
|
+
formState.paymentMethodChecked === "toBankAccount" && (index$1.h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
|
|
873
873
|
? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
|
|
874
874
|
: [
|
|
875
875
|
slots.countryInputSlot,
|
|
876
876
|
slots.paymentMethodSlot,
|
|
877
877
|
slots.formInputsSlot,
|
|
878
878
|
])),
|
|
879
|
-
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, global.intl.formatMessage({
|
|
879
|
+
states.hasPayPal && (index$1.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, global.intl.formatMessage({
|
|
880
880
|
id: "paypal-input-label",
|
|
881
881
|
defaultMessage: text.toPayPalAccount,
|
|
882
882
|
}, { feeCap: states.feeCap }))),
|
|
883
|
-
formState.paymentMethodChecked === "toPayPalAccount" && (index.h("div", { class: classes.InputContainer, style: states.hidePayPal ? { display: "none" } : {} }, states.loading
|
|
883
|
+
formState.paymentMethodChecked === "toPayPalAccount" && (index$1.h("div", { class: classes.InputContainer, style: states.hidePayPal ? { display: "none" } : {} }, states.loading
|
|
884
884
|
? getLoadingSkeleton("toPayPalAccount")
|
|
885
885
|
: slots.paypalInputSlot)),
|
|
886
|
-
index.h("div", { style: { paddingTop: "24px", paddingBottom: "12px" } },
|
|
887
|
-
index.h("h4", null, text.paymentSchedule)),
|
|
888
|
-
index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
|
|
889
|
-
formState.paymentScheduleChecked === "BALANCE_THRESHOLD" && (index.h("div", { class: classes.InputContainer, style: states.hideBalanceThreshold ? { display: "none" } : {} }, states.loading
|
|
886
|
+
index$1.h("div", { style: { paddingTop: "24px", paddingBottom: "12px" } },
|
|
887
|
+
index$1.h("h4", null, text.paymentSchedule)),
|
|
888
|
+
index$1.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
|
|
889
|
+
formState.paymentScheduleChecked === "BALANCE_THRESHOLD" && (index$1.h("div", { class: classes.InputContainer, style: states.hideBalanceThreshold ? { display: "none" } : {} }, states.loading
|
|
890
890
|
? getLoadingSkeleton("toPayPalAccount")
|
|
891
891
|
: slots.paymentThresholdSelectSlot)),
|
|
892
|
-
index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
|
|
893
|
-
formState.paymentScheduleChecked === "FIXED_DAY" && (index.h("div", { class: classes.InputContainer, style: states.hideFixedDay ? { display: "none" } : {} }, states.loading
|
|
892
|
+
index$1.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
|
|
893
|
+
formState.paymentScheduleChecked === "FIXED_DAY" && (index$1.h("div", { class: classes.InputContainer, style: states.hideFixedDay ? { display: "none" } : {} }, states.loading
|
|
894
894
|
? getLoadingSkeleton("toPayPalAccount")
|
|
895
895
|
: slots.paymentFixedDaySelectSlot))))),
|
|
896
|
-
index.h("div", { class: classes.BtnContainer },
|
|
897
|
-
index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
898
|
-
!states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
896
|
+
index$1.h("div", { class: classes.BtnContainer },
|
|
897
|
+
index$1.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
898
|
+
!states.hideBackButton && (index$1.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
899
899
|
};
|
|
900
900
|
|
|
901
901
|
// Hardcoded in Impact backend
|
|
@@ -929,7 +929,7 @@ function getFormInputs({ bitset, formMap }) {
|
|
|
929
929
|
}, []);
|
|
930
930
|
return inputFields;
|
|
931
931
|
}
|
|
932
|
-
const SAVE_WITHDRAWAL_SETTINGS =
|
|
932
|
+
const SAVE_WITHDRAWAL_SETTINGS = index.dist.gql `
|
|
933
933
|
mutation setImpactPublisherWithdrawalSettings(
|
|
934
934
|
$setImpactPublisherWithdrawalSettingsInput: SetImpactPublisherWithdrawalSettingsInput!
|
|
935
935
|
) {
|
|
@@ -961,15 +961,15 @@ function parseImpactThreshold(threshold) {
|
|
|
961
961
|
}
|
|
962
962
|
function useBankingInfoForm(props) {
|
|
963
963
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
964
|
-
const locale = index_module.
|
|
965
|
-
const user = index_module.
|
|
966
|
-
const [step, setStep] = index_module.
|
|
967
|
-
const context = index_module.
|
|
968
|
-
const countries = index_module.
|
|
964
|
+
const locale = index_module.Q();
|
|
965
|
+
const user = index_module.K();
|
|
966
|
+
const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
|
|
967
|
+
const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
968
|
+
const countries = index_module.Dn(SORTED_COUNTRIES_NAMESPACE);
|
|
969
969
|
const formRef = stencilHooks_module.useRef(null);
|
|
970
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.
|
|
971
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
972
|
-
const [saveWithdrawalSettings] = index_module
|
|
970
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.qn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
971
|
+
const { data: userData, refetch, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
972
|
+
const [saveWithdrawalSettings] = index_module.xe(SAVE_WITHDRAWAL_SETTINGS);
|
|
973
973
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
974
974
|
const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
|
|
975
975
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -1191,7 +1191,7 @@ function useBankingInfoForm(props) {
|
|
|
1191
1191
|
|
|
1192
1192
|
const BankingInfoForm = class {
|
|
1193
1193
|
constructor(hostRef) {
|
|
1194
|
-
index.registerInstance(this, hostRef);
|
|
1194
|
+
index$1.registerInstance(this, hostRef);
|
|
1195
1195
|
this.ignored = true;
|
|
1196
1196
|
/**
|
|
1197
1197
|
* @uiName Setup progress
|
|
@@ -1432,7 +1432,7 @@ const BankingInfoForm = class {
|
|
|
1432
1432
|
* @uiWidget textArea
|
|
1433
1433
|
*/
|
|
1434
1434
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
|
|
1435
|
-
stencilHooks_module.h
|
|
1435
|
+
stencilHooks_module.h(this);
|
|
1436
1436
|
}
|
|
1437
1437
|
disconnectedCallback() { }
|
|
1438
1438
|
getTextProps() {
|
|
@@ -1488,40 +1488,40 @@ const BankingInfoForm = class {
|
|
|
1488
1488
|
padding: "var(--sl-spacing-x-small)",
|
|
1489
1489
|
},
|
|
1490
1490
|
};
|
|
1491
|
-
return (index.h(index.Host, null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1491
|
+
return (index$1.h(index$1.Host, null, index$1.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1492
1492
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1493
|
-
countryInputSlot: (index.h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1493
|
+
countryInputSlot: (index$1.h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1494
1494
|
class: "error-input",
|
|
1495
1495
|
helpText: getValidationErrorMessage({
|
|
1496
1496
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.bankCountry) === null || _c === void 0 ? void 0 : _c.type,
|
|
1497
1497
|
label: props.text.bankLocationLabel,
|
|
1498
1498
|
}),
|
|
1499
|
-
})), index.h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1499
|
+
})), index$1.h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1500
1500
|
// Stop shoelace intercepting key presses
|
|
1501
1501
|
e.stopPropagation();
|
|
1502
1502
|
}, "onSl-input": (e) => {
|
|
1503
1503
|
props.callbacks.setCountrySearch(e.target.value);
|
|
1504
1504
|
} }), (_d = props.states.countries) === null || _d === void 0 ? void 0 :
|
|
1505
1505
|
_d.map((country) => {
|
|
1506
|
-
return (index.h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1506
|
+
return (index$1.h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1507
1507
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1508
|
-
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1509
|
-
paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1510
|
-
paymentThresholdSelectSlot: (index.h("sl-select", Object.assign({ required: true, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1508
|
+
_f.map((c) => (index$1.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1509
|
+
paymentMethodSlot: (index$1.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1510
|
+
paymentThresholdSelectSlot: (index$1.h("sl-select", Object.assign({ required: true, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1511
1511
|
class: "error-input",
|
|
1512
1512
|
helpText: getValidationErrorMessage({
|
|
1513
1513
|
type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
|
|
1514
1514
|
label: props.text.paymentThresholdSelectLabel,
|
|
1515
1515
|
}),
|
|
1516
|
-
})), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1517
|
-
paymentFixedDaySelectSlot: (index.h("sl-select", Object.assign({ required: true, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1516
|
+
})), props.states.thresholds.map((t) => (index$1.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1517
|
+
paymentFixedDaySelectSlot: (index$1.h("sl-select", Object.assign({ required: true, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1518
1518
|
class: "error-input",
|
|
1519
1519
|
helpText: getValidationErrorMessage({
|
|
1520
1520
|
type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
|
|
1521
1521
|
label: props.text.paymentDaySelectLabel,
|
|
1522
1522
|
}),
|
|
1523
|
-
})), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1524
|
-
paypalInputSlot: (index.h("sl-input", Object.assign({ required: true, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1523
|
+
})), index$1.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index$1.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1524
|
+
paypalInputSlot: (index$1.h("sl-input", Object.assign({ required: true, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1525
1525
|
class: "error-input",
|
|
1526
1526
|
helpText: getValidationErrorMessage({
|
|
1527
1527
|
type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
|
|
@@ -1537,7 +1537,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1537
1537
|
const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
|
|
1538
1538
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1539
1539
|
const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
|
|
1540
|
-
const setStep = index_module.
|
|
1540
|
+
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
1541
1541
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1542
1542
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1543
1543
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1628,7 +1628,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1628
1628
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1629
1629
|
}
|
|
1630
1630
|
|
|
1631
|
-
const GET_TAX_DOCUMENT =
|
|
1631
|
+
const GET_TAX_DOCUMENT = index.dist.gql `
|
|
1632
1632
|
mutation createImpactPublisherTaxDocument(
|
|
1633
1633
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
1634
1634
|
) {
|
|
@@ -1639,7 +1639,7 @@ const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
1641
|
`;
|
|
1642
|
-
const COMPLETE_TAX_DOCUMENT =
|
|
1642
|
+
const COMPLETE_TAX_DOCUMENT = index.dist.gql `
|
|
1643
1643
|
mutation completeImpactPublisherTaxDocument($vars: UserIdInput!) {
|
|
1644
1644
|
completeImpactPublisherTaxDocument(user: $vars) {
|
|
1645
1645
|
success
|
|
@@ -1655,13 +1655,13 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1655
1655
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1656
1656
|
function useDocusignForm(props) {
|
|
1657
1657
|
var _a, _b, _c;
|
|
1658
|
-
const user = index_module.
|
|
1659
|
-
const context = index_module.
|
|
1660
|
-
const [step, setStep] = index_module.
|
|
1661
|
-
const { data, loading: userLoading, refetch, } = index_module.
|
|
1658
|
+
const user = index_module.K();
|
|
1659
|
+
const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1660
|
+
const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
|
|
1661
|
+
const { data, loading: userLoading, refetch, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
1662
1662
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
1663
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module
|
|
1664
|
-
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module
|
|
1663
|
+
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.xe(GET_TAX_DOCUMENT);
|
|
1664
|
+
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.xe(COMPLETE_TAX_DOCUMENT);
|
|
1665
1665
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
1666
1666
|
const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
|
|
1667
1667
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
@@ -1804,39 +1804,39 @@ const styleString$1 = sheet$1.toString();
|
|
|
1804
1804
|
const DocusignExpiredView = (props) => {
|
|
1805
1805
|
const { classes } = sheet$1;
|
|
1806
1806
|
const { text } = props;
|
|
1807
|
-
return (index.h("div", null,
|
|
1808
|
-
index.h("style", { type: "text/css" }, styleString$1),
|
|
1809
|
-
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1810
|
-
index.h("sl-icon", { style: {
|
|
1807
|
+
return (index$1.h("div", null,
|
|
1808
|
+
index$1.h("style", { type: "text/css" }, styleString$1),
|
|
1809
|
+
index$1.h("div", { class: classes.DocusignStatusContainer },
|
|
1810
|
+
index$1.h("sl-icon", { style: {
|
|
1811
1811
|
width: "50px",
|
|
1812
1812
|
height: "50px",
|
|
1813
1813
|
color: "var(--sl-color-neutral-500)",
|
|
1814
1814
|
}, name: "clock" }),
|
|
1815
|
-
index.h("div", { class: classes.MessageContainer },
|
|
1816
|
-
index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
1817
|
-
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1815
|
+
index$1.h("div", { class: classes.MessageContainer },
|
|
1816
|
+
index$1.h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
1817
|
+
index$1.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1818
1818
|
};
|
|
1819
1819
|
const DocusignErrorView = (props) => {
|
|
1820
1820
|
const { classes } = sheet$1;
|
|
1821
1821
|
const { text } = props;
|
|
1822
|
-
return (index.h("div", null,
|
|
1823
|
-
index.h("style", { type: "text/css" }, styleString$1),
|
|
1824
|
-
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1825
|
-
index.h("sl-icon", { style: {
|
|
1822
|
+
return (index$1.h("div", null,
|
|
1823
|
+
index$1.h("style", { type: "text/css" }, styleString$1),
|
|
1824
|
+
index$1.h("div", { class: classes.DocusignStatusContainer },
|
|
1825
|
+
index$1.h("sl-icon", { style: {
|
|
1826
1826
|
width: "50px",
|
|
1827
1827
|
height: "50px",
|
|
1828
1828
|
color: "var(--sl-color-gray-500)",
|
|
1829
1829
|
}, name: "exclamation-octagon" }),
|
|
1830
|
-
index.h("div", { class: classes.MessageContainer },
|
|
1831
|
-
index.h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
1832
|
-
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1830
|
+
index$1.h("div", { class: classes.MessageContainer },
|
|
1831
|
+
index$1.h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
1832
|
+
index$1.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1833
1833
|
};
|
|
1834
1834
|
const DocusignLoadingView = () => {
|
|
1835
1835
|
const { classes } = sheet$1;
|
|
1836
|
-
return (index.h("div", null,
|
|
1837
|
-
index.h("style", { type: "text/css" }, styleString$1),
|
|
1838
|
-
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1839
|
-
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1836
|
+
return (index$1.h("div", null,
|
|
1837
|
+
index$1.h("style", { type: "text/css" }, styleString$1),
|
|
1838
|
+
index$1.h("div", { class: classes.DocusignStatusContainer },
|
|
1839
|
+
index$1.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1840
1840
|
};
|
|
1841
1841
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1842
1842
|
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
@@ -1866,13 +1866,13 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1866
1866
|
};
|
|
1867
1867
|
}, []);
|
|
1868
1868
|
if (states.urlLoading)
|
|
1869
|
-
return index.h(DocusignLoadingView, null);
|
|
1869
|
+
return index$1.h(DocusignLoadingView, null);
|
|
1870
1870
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
1871
|
-
return index.h(DocusignErrorView, { text: text });
|
|
1871
|
+
return index$1.h(DocusignErrorView, { text: text });
|
|
1872
1872
|
}
|
|
1873
1873
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
1874
|
-
return index.h(DocusignExpiredView, { text: text });
|
|
1875
|
-
return (index.h("iframe", { scrolling: "yes", frameBorder: "0", src: data.documentUrl, width: "100%", height: iFrameHeight }));
|
|
1874
|
+
return index$1.h(DocusignExpiredView, { text: text });
|
|
1875
|
+
return (index$1.h("iframe", { scrolling: "yes", frameBorder: "0", src: data.documentUrl, width: "100%", height: iFrameHeight }));
|
|
1876
1876
|
};
|
|
1877
1877
|
|
|
1878
1878
|
const style$2 = {
|
|
@@ -2016,33 +2016,33 @@ const DocusignFormView = (props) => {
|
|
|
2016
2016
|
var _a;
|
|
2017
2017
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2018
2018
|
const { classes } = sheet$2;
|
|
2019
|
-
return (index.h("div", { class: classes.Container },
|
|
2020
|
-
index.h("style", { type: "text/css" },
|
|
2019
|
+
return (index$1.h("div", { class: classes.Container },
|
|
2020
|
+
index$1.h("style", { type: "text/css" },
|
|
2021
2021
|
styleString$2,
|
|
2022
2022
|
vanillaStyle$1),
|
|
2023
|
-
index.h("div", { class: classes.TextContainer },
|
|
2024
|
-
index.h("div", null,
|
|
2025
|
-
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2023
|
+
index$1.h("div", { class: classes.TextContainer },
|
|
2024
|
+
index$1.h("div", null,
|
|
2025
|
+
!states.hideSteps && (index$1.h("p", null, global.intl.formatMessage({
|
|
2026
2026
|
id: "formStep",
|
|
2027
2027
|
defaultMessage: text.formStep,
|
|
2028
2028
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
2029
|
-
index.h("h3", null, text.taxForm),
|
|
2030
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2031
|
-
states.loadingError && (index.h("div", null,
|
|
2032
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2033
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2034
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2035
|
-
index.h("br", null),
|
|
2029
|
+
index$1.h("h3", null, text.taxForm),
|
|
2030
|
+
index$1.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2031
|
+
states.loadingError && (index$1.h("div", null,
|
|
2032
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2033
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2034
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2035
|
+
index$1.h("br", null),
|
|
2036
2036
|
text.error.loadingErrorAlertDescription))),
|
|
2037
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2038
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2039
|
-
index.h("strong", null, text.error.generalTitle),
|
|
2040
|
-
index.h("br", null),
|
|
2037
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2038
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2039
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
2040
|
+
index$1.h("br", null),
|
|
2041
2041
|
text.error.generalDescription)),
|
|
2042
|
-
index.h("div", null,
|
|
2043
|
-
index.h("div", null,
|
|
2044
|
-
index.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
2045
|
-
index.h("p", null, global.intl.formatMessage({
|
|
2042
|
+
index$1.h("div", null,
|
|
2043
|
+
index$1.h("div", null,
|
|
2044
|
+
index$1.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
2045
|
+
index$1.h("p", null, global.intl.formatMessage({
|
|
2046
2046
|
id: "tax-form-description",
|
|
2047
2047
|
defaultMessage: states.documentType === "W9"
|
|
2048
2048
|
? text.taxFormDescription
|
|
@@ -2050,12 +2050,12 @@ const DocusignFormView = (props) => {
|
|
|
2050
2050
|
? text.taxFormDescriptionIndividualParticipant
|
|
2051
2051
|
: text.taxFormDescriptionBusinessEntity,
|
|
2052
2052
|
}, { documentType: documentTypeString }))),
|
|
2053
|
-
index.h("div", null, slots.docusignIframeSlot))));
|
|
2053
|
+
index$1.h("div", null, slots.docusignIframeSlot))));
|
|
2054
2054
|
};
|
|
2055
2055
|
|
|
2056
2056
|
const DocusignForm = class {
|
|
2057
2057
|
constructor(hostRef) {
|
|
2058
|
-
index.registerInstance(this, hostRef);
|
|
2058
|
+
index$1.registerInstance(this, hostRef);
|
|
2059
2059
|
this.ignored = true;
|
|
2060
2060
|
/**
|
|
2061
2061
|
* @uiName Setup progress
|
|
@@ -2153,7 +2153,7 @@ const DocusignForm = class {
|
|
|
2153
2153
|
* @uiName Page description
|
|
2154
2154
|
*/
|
|
2155
2155
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2156
|
-
stencilHooks_module.h
|
|
2156
|
+
stencilHooks_module.h(this);
|
|
2157
2157
|
}
|
|
2158
2158
|
disconnectedCallback() { }
|
|
2159
2159
|
getTextProps() {
|
|
@@ -2172,7 +2172,7 @@ const DocusignForm = class {
|
|
|
2172
2172
|
render() {
|
|
2173
2173
|
const _isDemo = index_module.isDemo();
|
|
2174
2174
|
const props = _isDemo ? useDocusignFormDemo(this) : useDocusignForm(this);
|
|
2175
|
-
const docusignIframeSlot = (index.h(DocusignIframe, { states: {
|
|
2175
|
+
const docusignIframeSlot = (index$1.h(DocusignIframe, { states: {
|
|
2176
2176
|
status: props.states.docusignStatus,
|
|
2177
2177
|
loading: props.states.loading,
|
|
2178
2178
|
urlLoading: props.states.urlLoading,
|
|
@@ -2182,16 +2182,16 @@ const DocusignForm = class {
|
|
|
2182
2182
|
progressStep: props.callbacks.progressStep,
|
|
2183
2183
|
completeDocument: props.callbacks.completeDocument,
|
|
2184
2184
|
}, text: props.text }));
|
|
2185
|
-
return (index.h(index.Host, null, index.h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
2185
|
+
return (index$1.h(index$1.Host, null, index$1.h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
2186
2186
|
docusignIframeSlot: _isDemo
|
|
2187
2187
|
? DemoDocusignIframe({ callbacks: props.callbacks })
|
|
2188
2188
|
: docusignIframeSlot,
|
|
2189
2189
|
} })));
|
|
2190
2190
|
}
|
|
2191
|
-
get el() { return index.getElement(this); }
|
|
2191
|
+
get el() { return index$1.getElement(this); }
|
|
2192
2192
|
};
|
|
2193
2193
|
function useDocusignFormDemo(props) {
|
|
2194
|
-
const setStep = index_module.
|
|
2194
|
+
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
2195
2195
|
return cjs.cjs({
|
|
2196
2196
|
text: props.getTextProps(),
|
|
2197
2197
|
states: {
|
|
@@ -2225,19 +2225,19 @@ function useDocusignFormDemo(props) {
|
|
|
2225
2225
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2226
2226
|
}
|
|
2227
2227
|
const DemoDocusignIframe = ({ callbacks }) => {
|
|
2228
|
-
return (index.h("div", { style: {
|
|
2228
|
+
return (index$1.h("div", { style: {
|
|
2229
2229
|
width: "100%",
|
|
2230
2230
|
height: "600px",
|
|
2231
2231
|
background: "#fafafa",
|
|
2232
2232
|
display: "flex",
|
|
2233
2233
|
justifyContent: "center",
|
|
2234
2234
|
alignItems: "center",
|
|
2235
|
-
} }, index.h("div", { style: {
|
|
2235
|
+
} }, index$1.h("div", { style: {
|
|
2236
2236
|
display: "flex",
|
|
2237
2237
|
flexDirection: "column",
|
|
2238
2238
|
gap: "12px",
|
|
2239
2239
|
alignItems: "center",
|
|
2240
|
-
} }, index.h("span", null, "Placeholder for docusign iframe"), index.h("div", { style: { display: "flex", gap: "8px" } }, index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2240
|
+
} }, index$1.h("span", null, "Placeholder for docusign iframe"), index$1.h("div", { style: { display: "flex", gap: "8px" } }, index$1.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index$1.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2241
2241
|
};
|
|
2242
2242
|
|
|
2243
2243
|
const style$3 = {
|
|
@@ -2372,61 +2372,61 @@ const IndirectTaxFormView = (props) => {
|
|
|
2372
2372
|
var _a;
|
|
2373
2373
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2374
2374
|
const { classes } = sheet$3;
|
|
2375
|
-
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2376
|
-
index.h("style", { type: "text/css" },
|
|
2375
|
+
return (index$1.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2376
|
+
index$1.h("style", { type: "text/css" },
|
|
2377
2377
|
styleString$3,
|
|
2378
2378
|
vanillaStyle$2),
|
|
2379
|
-
index.h("div", { class: classes.TextContainer },
|
|
2380
|
-
index.h("div", null,
|
|
2381
|
-
!states.hideSteps && (index.h("p", null,
|
|
2379
|
+
index$1.h("div", { class: classes.TextContainer },
|
|
2380
|
+
index$1.h("div", null,
|
|
2381
|
+
!states.hideSteps && (index$1.h("p", null,
|
|
2382
2382
|
" ",
|
|
2383
2383
|
global.intl.formatMessage({
|
|
2384
2384
|
id: "formStep",
|
|
2385
2385
|
defaultMessage: text.formStep,
|
|
2386
2386
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
2387
|
-
index.h("h3", null, text.indirectTax),
|
|
2388
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2389
|
-
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2390
|
-
states.loadingError && (index.h("div", null,
|
|
2391
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
|
|
2392
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2393
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2394
|
-
index.h("br", null),
|
|
2387
|
+
index$1.h("h3", null, text.indirectTax),
|
|
2388
|
+
index$1.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2389
|
+
index$1.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2390
|
+
states.loadingError && (index$1.h("div", null,
|
|
2391
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
|
|
2392
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2393
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2394
|
+
index$1.h("br", null),
|
|
2395
2395
|
text.error.loadingErrorAlertDescription))),
|
|
2396
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
|
|
2397
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2398
|
-
index.h("strong", null, text.error.generalTitle),
|
|
2399
|
-
index.h("br", null),
|
|
2396
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
|
|
2397
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2398
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
2399
|
+
index$1.h("br", null),
|
|
2400
2400
|
text.error.generalDescription)),
|
|
2401
|
-
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2402
|
-
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2403
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2404
|
-
index.h("br", null),
|
|
2401
|
+
states.isPartner && (index$1.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2402
|
+
index$1.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2403
|
+
index$1.h("strong", null, text.isPartnerAlertHeader),
|
|
2404
|
+
index$1.h("br", null),
|
|
2405
2405
|
text.isPartnerAlertDescription)),
|
|
2406
|
-
index.h("div", null,
|
|
2407
|
-
index.h("h4", null, text.indirectTaxDetails))),
|
|
2408
|
-
states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", null,
|
|
2409
|
-
index.h("div", { class: classes.RadioContainer },
|
|
2410
|
-
index.h("div", { class: classes.InnerRadioContainer },
|
|
2411
|
-
index.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "notRegistered", id: "notRegistered", checked: formState.checked === "notRegistered", onInput: () => callbacks.onChange("notRegistered"), disabled: states.disabled || states.isPartner },
|
|
2412
|
-
index.h("div", { class: classes.RadioContent },
|
|
2406
|
+
index$1.h("div", null,
|
|
2407
|
+
index$1.h("h4", null, text.indirectTaxDetails))),
|
|
2408
|
+
states.loading ? (index$1.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index$1.h("div", null,
|
|
2409
|
+
index$1.h("div", { class: classes.RadioContainer },
|
|
2410
|
+
index$1.h("div", { class: classes.InnerRadioContainer },
|
|
2411
|
+
index$1.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "notRegistered", id: "notRegistered", checked: formState.checked === "notRegistered", onInput: () => callbacks.onChange("notRegistered"), disabled: states.disabled || states.isPartner },
|
|
2412
|
+
index$1.h("div", { class: classes.RadioContent },
|
|
2413
2413
|
text.notRegistered,
|
|
2414
|
-
index.h("p", { class: classes.DescriptionText }, text.notRegisteredSubtext))),
|
|
2415
|
-
index.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "otherRegion", id: "otherRegion", checked: formState.checked === "otherRegion", onInput: () => callbacks.onChange("otherRegion"), disabled: states.disabled || states.isPartner },
|
|
2416
|
-
index.h("div", { class: classes.RadioContent },
|
|
2414
|
+
index$1.h("p", { class: classes.DescriptionText }, text.notRegisteredSubtext))),
|
|
2415
|
+
index$1.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "otherRegion", id: "otherRegion", checked: formState.checked === "otherRegion", onInput: () => callbacks.onChange("otherRegion"), disabled: states.disabled || states.isPartner },
|
|
2416
|
+
index$1.h("div", { class: classes.RadioContent },
|
|
2417
2417
|
text.otherRegion,
|
|
2418
|
-
index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2418
|
+
index$1.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2419
2419
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2420
|
-
index.h("div", { class: classes.CannotChangeAlertContainer },
|
|
2421
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2422
|
-
index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2420
|
+
index$1.h("div", { class: classes.CannotChangeAlertContainer },
|
|
2421
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2422
|
+
index$1.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2423
2423
|
text.cannotChangeInfoAlert)),
|
|
2424
|
-
index.h("div", { class: classes.BtnContainer },
|
|
2425
|
-
index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2426
|
-
index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2424
|
+
index$1.h("div", { class: classes.BtnContainer },
|
|
2425
|
+
index$1.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2426
|
+
index$1.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2427
2427
|
};
|
|
2428
2428
|
|
|
2429
|
-
const CONNECT_PARTNER =
|
|
2429
|
+
const CONNECT_PARTNER = index.dist.gql `
|
|
2430
2430
|
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
2431
2431
|
createImpactConnection(impactConnectionInput: $vars) {
|
|
2432
2432
|
success
|
|
@@ -2464,15 +2464,15 @@ function getOption(countries, countryCode) {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
function useIndirectTaxForm(props) {
|
|
2466
2466
|
var _a, _b, _c, _d, _e;
|
|
2467
|
-
const user = index_module.
|
|
2468
|
-
const locale = index_module.
|
|
2467
|
+
const user = index_module.K();
|
|
2468
|
+
const locale = index_module.Q();
|
|
2469
2469
|
const formRef = stencilHooks_module.useRef(null);
|
|
2470
|
-
const context = index_module.
|
|
2471
|
-
const [step, setStep] = index_module.
|
|
2472
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module
|
|
2473
|
-
const userForm = index_module.
|
|
2474
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
2475
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.
|
|
2470
|
+
const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2471
|
+
const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
|
|
2472
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.xe(CONNECT_PARTNER);
|
|
2473
|
+
const userForm = index_module.Dn(USER_FORM_CONTEXT_NAMESPACE);
|
|
2474
|
+
const { data: userData, refetch, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
2475
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.qn(COUNTRIES_QUERY_NAMESPACE);
|
|
2476
2476
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2477
2477
|
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2478
2478
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -2662,7 +2662,7 @@ function useIndirectTaxForm(props) {
|
|
|
2662
2662
|
|
|
2663
2663
|
const IndirectTaxForm = class {
|
|
2664
2664
|
constructor(hostRef) {
|
|
2665
|
-
index.registerInstance(this, hostRef);
|
|
2665
|
+
index$1.registerInstance(this, hostRef);
|
|
2666
2666
|
/**
|
|
2667
2667
|
* @uiName Setup progress
|
|
2668
2668
|
*/
|
|
@@ -2808,7 +2808,7 @@ const IndirectTaxForm = class {
|
|
|
2808
2808
|
* @uiName Page description
|
|
2809
2809
|
*/
|
|
2810
2810
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2811
|
-
stencilHooks_module.h
|
|
2811
|
+
stencilHooks_module.h(this);
|
|
2812
2812
|
}
|
|
2813
2813
|
disconnectedCallback() { }
|
|
2814
2814
|
getTextProps() {
|
|
@@ -2843,7 +2843,7 @@ const IndirectTaxForm = class {
|
|
|
2843
2843
|
const props = index_module.isDemo()
|
|
2844
2844
|
? useDemoIndirectTaxForm(this)
|
|
2845
2845
|
: useIndirectTaxForm(this);
|
|
2846
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2846
|
+
const registeredInDifferentCountryDetailsSlot = (index$1.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2847
2847
|
hide: props.states.formState.checked !== "otherRegion",
|
|
2848
2848
|
disabled: props.states.disabled || props.states.isPartner,
|
|
2849
2849
|
formState: props.slotProps.formState,
|
|
@@ -2855,13 +2855,13 @@ const IndirectTaxForm = class {
|
|
|
2855
2855
|
provinces: props.data.provinces,
|
|
2856
2856
|
allCountries: props.data.allCountries,
|
|
2857
2857
|
}, text: props.text.slotText }));
|
|
2858
|
-
return (index.h(index.Host, null, index.h(IndirectTaxFormView, { callbacks: props.callbacks, states: props.states, refs: props.refs, text: props.text, slots: {
|
|
2858
|
+
return (index$1.h(index$1.Host, null, index$1.h(IndirectTaxFormView, { callbacks: props.callbacks, states: props.states, refs: props.refs, text: props.text, slots: {
|
|
2859
2859
|
registeredInDifferentCountryDetailsSlot,
|
|
2860
2860
|
} })));
|
|
2861
2861
|
}
|
|
2862
2862
|
};
|
|
2863
2863
|
function useDemoIndirectTaxForm(props) {
|
|
2864
|
-
const setStep = index_module.
|
|
2864
|
+
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
2865
2865
|
const [option, setOption] = stencilHooks_module.useState(null);
|
|
2866
2866
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2867
2867
|
return cjs.cjs({
|
|
@@ -2945,7 +2945,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2945
2945
|
|
|
2946
2946
|
const debug = stencilHooks_module.browser("sq:useInvoiceTable");
|
|
2947
2947
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
2948
|
-
const GET_INVOICES =
|
|
2948
|
+
const GET_INVOICES = index.dist.gql `
|
|
2949
2949
|
query getUserTaxInfo($limit: Int!, $offset: Int!) {
|
|
2950
2950
|
user: viewer {
|
|
2951
2951
|
... on User {
|
|
@@ -2971,8 +2971,8 @@ const GET_INVOICES = index_module.dist.gql `
|
|
|
2971
2971
|
`;
|
|
2972
2972
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
2973
2973
|
var _a;
|
|
2974
|
-
const user = index_module.
|
|
2975
|
-
const locale = index_module.
|
|
2974
|
+
const user = index_module.K();
|
|
2975
|
+
const locale = index_module.Q();
|
|
2976
2976
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
2977
2977
|
...state,
|
|
2978
2978
|
...next,
|
|
@@ -2982,7 +2982,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
2982
2982
|
loading: false,
|
|
2983
2983
|
page: 0,
|
|
2984
2984
|
});
|
|
2985
|
-
const { envelope: invoicesData, states, callbacks, } = index_module.
|
|
2985
|
+
const { envelope: invoicesData, states, callbacks, } = index_module.On(GET_INVOICES, (data) => { var _a, _b, _c; return (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.invoices; }, {
|
|
2986
2986
|
limit: props.perPage,
|
|
2987
2987
|
offset: 0,
|
|
2988
2988
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3006,7 +3006,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3006
3006
|
netEarnings: `${invoice.currency}${((_c = (invoice.totalAmount - invoice.totalVatAmount)) === null || _c === void 0 ? void 0 : _c.toFixed(2)) || "0.00"}`,
|
|
3007
3007
|
downloadUrl: invoice.downloadUrl,
|
|
3008
3008
|
};
|
|
3009
|
-
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(invoiceData, { locale }, index.h)));
|
|
3009
|
+
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(invoiceData, { locale }, index$1.h)));
|
|
3010
3010
|
const cells = (await Promise.all(cellPromise));
|
|
3011
3011
|
return cells;
|
|
3012
3012
|
});
|
|
@@ -3075,7 +3075,7 @@ async function tryMethod(c, callback) {
|
|
|
3075
3075
|
// renderLabel did not return a promise, so this method probably doesn't exist
|
|
3076
3076
|
// therefore, we IGNORE the label
|
|
3077
3077
|
debug("label promise failed", e);
|
|
3078
|
-
return index.h("span", null);
|
|
3078
|
+
return index$1.h("span", null);
|
|
3079
3079
|
}
|
|
3080
3080
|
try {
|
|
3081
3081
|
return await labelPromise;
|
|
@@ -3085,8 +3085,8 @@ async function tryMethod(c, callback) {
|
|
|
3085
3085
|
// This should not happen so we fail fast
|
|
3086
3086
|
debug("Error rendering label", e);
|
|
3087
3087
|
const userError = useReferralTable.generateUserError(e);
|
|
3088
|
-
return (index.h("details", null,
|
|
3089
|
-
index.h("summary", null, "Error"),
|
|
3088
|
+
return (index$1.h("details", null,
|
|
3089
|
+
index$1.h("summary", null, "Error"),
|
|
3090
3090
|
userError));
|
|
3091
3091
|
}
|
|
3092
3092
|
}
|
|
@@ -3113,7 +3113,7 @@ const getMockData = () => {
|
|
|
3113
3113
|
|
|
3114
3114
|
const InvoiceTable = class {
|
|
3115
3115
|
constructor(hostRef) {
|
|
3116
|
-
index.registerInstance(this, hostRef);
|
|
3116
|
+
index$1.registerInstance(this, hostRef);
|
|
3117
3117
|
/**
|
|
3118
3118
|
* Number of invoices displayed per page
|
|
3119
3119
|
*
|
|
@@ -3144,27 +3144,27 @@ const InvoiceTable = class {
|
|
|
3144
3144
|
this.emptyStateHeader = "View your invoice details";
|
|
3145
3145
|
/** @uiName Empty invoice table description */
|
|
3146
3146
|
this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
3147
|
-
stencilHooks_module.h
|
|
3147
|
+
stencilHooks_module.h(this);
|
|
3148
3148
|
}
|
|
3149
3149
|
disconnectedCallback() { }
|
|
3150
3150
|
render() {
|
|
3151
|
-
const empty = (index.h(EmptySlot, { emptyStateHeader: this.emptyStateHeader, emptyStateText: this.emptyStateText }));
|
|
3152
|
-
const loading = index.h(LoadingSlot, null);
|
|
3151
|
+
const empty = (index$1.h(EmptySlot, { emptyStateHeader: this.emptyStateHeader, emptyStateText: this.emptyStateText }));
|
|
3152
|
+
const loading = index$1.h(LoadingSlot, null);
|
|
3153
3153
|
const { states, data, callbacks, elements } = index_module.isDemo()
|
|
3154
3154
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3155
3155
|
: useInvoiceTable(this, empty, loading);
|
|
3156
3156
|
reRender.useRequestRerender([this.perPage]);
|
|
3157
|
-
return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3157
|
+
return (index$1.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index$1.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3158
3158
|
}
|
|
3159
3159
|
};
|
|
3160
3160
|
function EmptySlot(props) {
|
|
3161
|
-
return (index.h("slot", { name: "empty" }, index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1710363322/squatch-assets/invoice-table-empty.png", "empty-state-header": props.emptyStateHeader, "empty-state-text": props.emptyStateText })));
|
|
3161
|
+
return (index$1.h("slot", { name: "empty" }, index$1.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1710363322/squatch-assets/invoice-table-empty.png", "empty-state-header": props.emptyStateHeader, "empty-state-text": props.emptyStateText })));
|
|
3162
3162
|
}
|
|
3163
3163
|
function LoadingSlot() {
|
|
3164
|
-
return (index.h("slot", { name: "loading" }, index.h(LoadingRow, null), index.h(LoadingRow, null), index.h(LoadingRow, null), index.h(LoadingRow, null)));
|
|
3164
|
+
return (index$1.h("slot", { name: "loading" }, index$1.h(LoadingRow, null), index$1.h(LoadingRow, null), index$1.h(LoadingRow, null), index$1.h(LoadingRow, null)));
|
|
3165
3165
|
}
|
|
3166
3166
|
function LoadingRow() {
|
|
3167
|
-
return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
|
|
3167
|
+
return (index$1.h("sqm-table-row", null, index$1.h("sqm-table-cell", { colspan: 6 }, index$1.h("sl-skeleton", null))));
|
|
3168
3168
|
}
|
|
3169
3169
|
function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
3170
3170
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
@@ -3258,9 +3258,9 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3258
3258
|
|
|
3259
3259
|
const InvoiceTableDataCell = class {
|
|
3260
3260
|
constructor(hostRef) {
|
|
3261
|
-
index.registerInstance(this, hostRef);
|
|
3261
|
+
index$1.registerInstance(this, hostRef);
|
|
3262
3262
|
this.ignored = true;
|
|
3263
|
-
stencilHooks_module.h
|
|
3263
|
+
stencilHooks_module.h(this);
|
|
3264
3264
|
}
|
|
3265
3265
|
disconnectedCallback() { }
|
|
3266
3266
|
render() {
|
|
@@ -3270,28 +3270,28 @@ const InvoiceTableDataCell = class {
|
|
|
3270
3270
|
|
|
3271
3271
|
const InvoiceTableDataColumn = class {
|
|
3272
3272
|
constructor(hostRef) {
|
|
3273
|
-
index.registerInstance(this, hostRef);
|
|
3274
|
-
stencilHooks_module.h
|
|
3273
|
+
index$1.registerInstance(this, hostRef);
|
|
3274
|
+
stencilHooks_module.h(this);
|
|
3275
3275
|
}
|
|
3276
3276
|
disconnectedCallback() { }
|
|
3277
3277
|
async renderCell(data) {
|
|
3278
|
-
return (index.h("sqm-invoice-table-data-cell", { data: data[this.property] }));
|
|
3278
|
+
return (index$1.h("sqm-invoice-table-data-cell", { data: data[this.property] }));
|
|
3279
3279
|
}
|
|
3280
3280
|
async renderLabel() {
|
|
3281
3281
|
return Promise.resolve(this.columnTitle);
|
|
3282
3282
|
}
|
|
3283
3283
|
render() {
|
|
3284
3284
|
reRender.useRequestRerender([this.columnTitle, this.property]);
|
|
3285
|
-
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3285
|
+
return (index$1.h(index$1.Host, { style: { display: "none" } }, index$1.h("slot", null)));
|
|
3286
3286
|
}
|
|
3287
3287
|
};
|
|
3288
3288
|
|
|
3289
3289
|
const RewardTableDateCell = class {
|
|
3290
3290
|
constructor(hostRef) {
|
|
3291
|
-
index.registerInstance(this, hostRef);
|
|
3291
|
+
index$1.registerInstance(this, hostRef);
|
|
3292
3292
|
this.ignored = true;
|
|
3293
3293
|
this.locale = "en";
|
|
3294
|
-
stencilHooks_module.h
|
|
3294
|
+
stencilHooks_module.h(this);
|
|
3295
3295
|
}
|
|
3296
3296
|
disconnectedCallback() { }
|
|
3297
3297
|
render() {
|
|
@@ -3305,58 +3305,58 @@ const RewardTableDateCell = class {
|
|
|
3305
3305
|
|
|
3306
3306
|
const InvoiceTableDateColumn = class {
|
|
3307
3307
|
constructor(hostRef) {
|
|
3308
|
-
index.registerInstance(this, hostRef);
|
|
3309
|
-
stencilHooks_module.h
|
|
3308
|
+
index$1.registerInstance(this, hostRef);
|
|
3309
|
+
stencilHooks_module.h(this);
|
|
3310
3310
|
}
|
|
3311
3311
|
disconnectedCallback() { }
|
|
3312
3312
|
async renderCell(data, options) {
|
|
3313
|
-
return (index.h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
3313
|
+
return (index$1.h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
3314
3314
|
}
|
|
3315
3315
|
async renderLabel() {
|
|
3316
3316
|
return this.columnTitle;
|
|
3317
3317
|
}
|
|
3318
3318
|
render() {
|
|
3319
3319
|
reRender.useRequestRerender([this.columnTitle]);
|
|
3320
|
-
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3320
|
+
return (index$1.h(index$1.Host, { style: { display: "none" } }, index$1.h("slot", null)));
|
|
3321
3321
|
}
|
|
3322
3322
|
};
|
|
3323
3323
|
|
|
3324
3324
|
const InvoiceTableDownloadCell = class {
|
|
3325
3325
|
constructor(hostRef) {
|
|
3326
|
-
index.registerInstance(this, hostRef);
|
|
3326
|
+
index$1.registerInstance(this, hostRef);
|
|
3327
3327
|
this.ignored = true;
|
|
3328
|
-
stencilHooks_module.h
|
|
3328
|
+
stencilHooks_module.h(this);
|
|
3329
3329
|
}
|
|
3330
3330
|
disconnectedCallback() { }
|
|
3331
3331
|
render() {
|
|
3332
3332
|
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3333
3333
|
cursor: pointer;
|
|
3334
3334
|
}`;
|
|
3335
|
-
return (index.h(index.Host, null, index.h("style", null, vanillaStyle), !!this.downloadUrl && (index.h("a", { href: this.downloadUrl, target: "_blank" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), index.h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "#717179" }))))));
|
|
3335
|
+
return (index$1.h(index$1.Host, null, index$1.h("style", null, vanillaStyle), !!this.downloadUrl && (index$1.h("a", { href: this.downloadUrl, target: "_blank" }, index$1.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), index$1.h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "#717179" }))))));
|
|
3336
3336
|
}
|
|
3337
3337
|
};
|
|
3338
3338
|
|
|
3339
3339
|
const InvoiceTableGenericColumn = class {
|
|
3340
3340
|
constructor(hostRef) {
|
|
3341
|
-
index.registerInstance(this, hostRef);
|
|
3342
|
-
stencilHooks_module.h
|
|
3341
|
+
index$1.registerInstance(this, hostRef);
|
|
3342
|
+
stencilHooks_module.h(this);
|
|
3343
3343
|
}
|
|
3344
3344
|
disconnectedCallback() { }
|
|
3345
3345
|
async renderCell(data) {
|
|
3346
|
-
return (index.h("sqm-invoice-table-download-cell", { downloadUrl: data.downloadUrl }));
|
|
3346
|
+
return (index$1.h("sqm-invoice-table-download-cell", { downloadUrl: data.downloadUrl }));
|
|
3347
3347
|
}
|
|
3348
3348
|
async renderLabel() {
|
|
3349
|
-
return index.h("span", null);
|
|
3349
|
+
return index$1.h("span", null);
|
|
3350
3350
|
}
|
|
3351
3351
|
render() {
|
|
3352
|
-
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3352
|
+
return (index$1.h(index$1.Host, { style: { display: "none" } }, index$1.h("slot", null)));
|
|
3353
3353
|
}
|
|
3354
3354
|
};
|
|
3355
3355
|
|
|
3356
|
-
const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "20", viewBox: "0 0 17 20", fill: "none" },
|
|
3357
|
-
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.20649 4.55454H12.7877C15.7842 4.55454 16.9137 6.08577 16.7343 8.34231C16.4486 12.0629 14.2228 14.118 11.2728 14.118H9.78446C9.37916 14.118 9.10675 14.3866 9.00044 15.1254L8.36923 19.39C8.32937 19.6653 8.1832 19.8265 7.97058 19.8467H4.46242C4.13021 19.8467 4.01725 19.5915 4.10363 19.0408L6.23643 5.36045C6.32281 4.81646 6.61515 4.55454 7.20649 4.55454Z", fill: "#009EE3" }),
|
|
3358
|
-
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
|
|
3359
|
-
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
|
|
3356
|
+
const PayPalIcon = () => (index$1.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "20", viewBox: "0 0 17 20", fill: "none" },
|
|
3357
|
+
index$1.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.20649 4.55454H12.7877C15.7842 4.55454 16.9137 6.08577 16.7343 8.34231C16.4486 12.0629 14.2228 14.118 11.2728 14.118H9.78446C9.37916 14.118 9.10675 14.3866 9.00044 15.1254L8.36923 19.39C8.32937 19.6653 8.1832 19.8265 7.97058 19.8467H4.46242C4.13021 19.8467 4.01725 19.5915 4.10363 19.0408L6.23643 5.36045C6.32281 4.81646 6.61515 4.55454 7.20649 4.55454Z", fill: "#009EE3" }),
|
|
3358
|
+
index$1.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
|
|
3359
|
+
index$1.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
|
|
3360
3360
|
|
|
3361
3361
|
const style$4 = {
|
|
3362
3362
|
CardContainer: {
|
|
@@ -3497,12 +3497,12 @@ function PayoutDetailsCardView(props) {
|
|
|
3497
3497
|
const { classes } = sheet;
|
|
3498
3498
|
const { states, text } = props;
|
|
3499
3499
|
const renderLoadingSkeleton = () => {
|
|
3500
|
-
return (index.h("div", { class: classes.CardContainer },
|
|
3501
|
-
index.h("div", { class: classes.StatusContainer },
|
|
3502
|
-
index.h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
3503
|
-
index.h("sl-skeleton", { class: classes.SkeletonTwo })),
|
|
3504
|
-
index.h("sl-skeleton", { class: classes.SkeletonThree }),
|
|
3505
|
-
index.h("sl-skeleton", { class: classes.SkeletonOne })));
|
|
3500
|
+
return (index$1.h("div", { class: classes.CardContainer },
|
|
3501
|
+
index$1.h("div", { class: classes.StatusContainer },
|
|
3502
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
3503
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonTwo })),
|
|
3504
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonThree }),
|
|
3505
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonOne })));
|
|
3506
3506
|
};
|
|
3507
3507
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3508
3508
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
@@ -3512,7 +3512,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3512
3512
|
}, {
|
|
3513
3513
|
badgeText: status,
|
|
3514
3514
|
});
|
|
3515
|
-
return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3515
|
+
return (index$1.h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3516
3516
|
};
|
|
3517
3517
|
const thresholdText = global.intl.formatMessage({
|
|
3518
3518
|
id: "thresholdText",
|
|
@@ -3520,16 +3520,16 @@ function PayoutDetailsCardView(props) {
|
|
|
3520
3520
|
}, {
|
|
3521
3521
|
thresholdBalance: states.thresholdBalance,
|
|
3522
3522
|
});
|
|
3523
|
-
return (index.h("div", { class: classes.Container },
|
|
3524
|
-
index.h("style", { type: "text/css" }, styleString),
|
|
3525
|
-
states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3526
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3527
|
-
index.h("div", { class: classes.AlertContent },
|
|
3528
|
-
index.h("b", null, text.error.errorTitleText),
|
|
3523
|
+
return (index$1.h("div", { class: classes.Container },
|
|
3524
|
+
index$1.h("style", { type: "text/css" }, styleString),
|
|
3525
|
+
states.error && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3526
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3527
|
+
index$1.h("div", { class: classes.AlertContent },
|
|
3528
|
+
index$1.h("b", null, text.error.errorTitleText),
|
|
3529
3529
|
text.error.errorDescriptionText))),
|
|
3530
|
-
states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
|
|
3531
|
-
index.h("div", { class: classes.StatusContainer },
|
|
3532
|
-
index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
3530
|
+
states.loading ? (renderLoadingSkeleton()) : (index$1.h("div", { class: classes.CardContainer },
|
|
3531
|
+
index$1.h("div", { class: classes.StatusContainer },
|
|
3532
|
+
index$1.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
3533
3533
|
? states.thresholdBalance
|
|
3534
3534
|
? thresholdText
|
|
3535
3535
|
: ""
|
|
@@ -3537,18 +3537,18 @@ function PayoutDetailsCardView(props) {
|
|
|
3537
3537
|
states.badgeStatus === "thresholdPayout"
|
|
3538
3538
|
? null
|
|
3539
3539
|
: renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
|
|
3540
|
-
index.h("h1", { class: classes.MainCurrency }, states.balance),
|
|
3541
|
-
states.payoutType === "PAYPAL" ? (index.h("div", { class: classes.PaypalDetailsContainer },
|
|
3542
|
-
index.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
|
|
3543
|
-
index.h(PayPalIcon, null))) : (index.h("div", { class: classes.AccountDetailsContainer },
|
|
3544
|
-
index.h("span", null, states.cardNumberPreview
|
|
3540
|
+
index$1.h("h1", { class: classes.MainCurrency }, states.balance),
|
|
3541
|
+
states.payoutType === "PAYPAL" ? (index$1.h("div", { class: classes.PaypalDetailsContainer },
|
|
3542
|
+
index$1.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
|
|
3543
|
+
index$1.h(PayPalIcon, null))) : (index$1.h("div", { class: classes.AccountDetailsContainer },
|
|
3544
|
+
index$1.h("span", null, states.cardNumberPreview
|
|
3545
3545
|
? `${text.accountText} ${states.cardNumberPreview}`
|
|
3546
3546
|
: text.payoutMissingInformationText)))))));
|
|
3547
3547
|
}
|
|
3548
3548
|
|
|
3549
3549
|
function usePayoutDetailsCard(props) {
|
|
3550
3550
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3551
|
-
const { data, loading } = index_module.
|
|
3551
|
+
const { data, loading } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
3552
3552
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
3553
3553
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3554
3554
|
var _a;
|
|
@@ -3606,7 +3606,7 @@ function usePayoutDetailsCard(props) {
|
|
|
3606
3606
|
|
|
3607
3607
|
const PayoutDetailsCard = class {
|
|
3608
3608
|
constructor(hostRef) {
|
|
3609
|
-
index.registerInstance(this, hostRef);
|
|
3609
|
+
index$1.registerInstance(this, hostRef);
|
|
3610
3610
|
/**
|
|
3611
3611
|
* Badge text indicating payout status
|
|
3612
3612
|
* @uiName Payout badge status text
|
|
@@ -3637,7 +3637,7 @@ const PayoutDetailsCard = class {
|
|
|
3637
3637
|
* @uiName Payout missing information subtext
|
|
3638
3638
|
*/
|
|
3639
3639
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3640
|
-
stencilHooks_module.h
|
|
3640
|
+
stencilHooks_module.h(this);
|
|
3641
3641
|
}
|
|
3642
3642
|
disconnectedCallback() { }
|
|
3643
3643
|
getTextProps() {
|
|
@@ -3654,7 +3654,7 @@ const PayoutDetailsCard = class {
|
|
|
3654
3654
|
const props = index_module.isDemo()
|
|
3655
3655
|
? useDemoPayoutDetailsCard(this)
|
|
3656
3656
|
: usePayoutDetailsCard(this);
|
|
3657
|
-
return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
3657
|
+
return (index$1.h(index$1.Host, null, index$1.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
3658
3658
|
}
|
|
3659
3659
|
};
|
|
3660
3660
|
function useDemoPayoutDetailsCard(props) {
|
|
@@ -3680,27 +3680,27 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
3680
3680
|
|
|
3681
3681
|
const TableCell = class {
|
|
3682
3682
|
constructor(hostRef) {
|
|
3683
|
-
index.registerInstance(this, hostRef);
|
|
3683
|
+
index$1.registerInstance(this, hostRef);
|
|
3684
3684
|
/** @uiName Column span */
|
|
3685
3685
|
this.colspan = 1;
|
|
3686
3686
|
/** @uiName Padding */
|
|
3687
3687
|
this.padding = "15px 10px";
|
|
3688
3688
|
}
|
|
3689
3689
|
render() {
|
|
3690
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
3690
|
+
return (index$1.h(index$1.Host, { style: { display: "contents" } }, index$1.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index$1.h("slot", null))));
|
|
3691
3691
|
}
|
|
3692
3692
|
};
|
|
3693
3693
|
|
|
3694
3694
|
const TableRow = class {
|
|
3695
3695
|
constructor(hostRef) {
|
|
3696
|
-
index.registerInstance(this, hostRef);
|
|
3696
|
+
index$1.registerInstance(this, hostRef);
|
|
3697
3697
|
/**
|
|
3698
3698
|
* @uiName Border
|
|
3699
3699
|
*/
|
|
3700
3700
|
this.border = "1px solid #EAEAEA";
|
|
3701
3701
|
}
|
|
3702
3702
|
render() {
|
|
3703
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
3703
|
+
return (index$1.h(index$1.Host, { style: { display: "contents" } }, index$1.h("tr", { style: { border: this.border } }, index$1.h("slot", null))));
|
|
3704
3704
|
}
|
|
3705
3705
|
};
|
|
3706
3706
|
|
|
@@ -3737,21 +3737,21 @@ function getCurrentStep(user) {
|
|
|
3737
3737
|
}
|
|
3738
3738
|
function useTaxAndCash() {
|
|
3739
3739
|
var _a, _b, _c, _d, _e;
|
|
3740
|
-
const host = index_module.
|
|
3741
|
-
const user = index_module.
|
|
3742
|
-
const locale = index_module.
|
|
3740
|
+
const host = index_module.T();
|
|
3741
|
+
const user = index_module.K();
|
|
3742
|
+
const locale = index_module.Q();
|
|
3743
3743
|
// State for current step of form
|
|
3744
|
-
const [step, setStep] = index_module.
|
|
3744
|
+
const [step, setStep] = index_module.Fn({
|
|
3745
3745
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3746
3746
|
initialValue: "/loading",
|
|
3747
3747
|
});
|
|
3748
3748
|
// State for when to hide steps, or override certain actions
|
|
3749
|
-
const [context, _setContext] = index_module.
|
|
3749
|
+
const [context, _setContext] = index_module.Fn({
|
|
3750
3750
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3751
3751
|
initialValue: {},
|
|
3752
3752
|
});
|
|
3753
3753
|
// State to carry user form information into step 2
|
|
3754
|
-
const [userFormContext, _setUserFormContext] = index_module.
|
|
3754
|
+
const [userFormContext, _setUserFormContext] = index_module.Fn({
|
|
3755
3755
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3756
3756
|
initialValue: {
|
|
3757
3757
|
firstName: undefined,
|
|
@@ -3761,19 +3761,19 @@ function useTaxAndCash() {
|
|
|
3761
3761
|
currency: undefined,
|
|
3762
3762
|
},
|
|
3763
3763
|
});
|
|
3764
|
-
const [_currenciesContext, setCurrenciesContext] = index_module.
|
|
3764
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.Fn({
|
|
3765
3765
|
namespace: CURRENCIES_NAMESPACE,
|
|
3766
3766
|
initialValue: [],
|
|
3767
3767
|
});
|
|
3768
|
-
const [_countriesContext, _setCountriesContext] = index_module.
|
|
3768
|
+
const [_countriesContext, _setCountriesContext] = index_module.Fn({
|
|
3769
3769
|
namespace: COUNTRIES_NAMESPACE,
|
|
3770
3770
|
initialValue: [],
|
|
3771
3771
|
});
|
|
3772
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.
|
|
3772
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.Fn({
|
|
3773
3773
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3774
3774
|
initialValue: [],
|
|
3775
3775
|
});
|
|
3776
|
-
const { data, errors } = index_module.
|
|
3776
|
+
const { data, errors } = index_module.An({
|
|
3777
3777
|
namespace: USER_QUERY_NAMESPACE,
|
|
3778
3778
|
query: GET_USER,
|
|
3779
3779
|
skip: !user,
|
|
@@ -3783,12 +3783,12 @@ function useTaxAndCash() {
|
|
|
3783
3783
|
});
|
|
3784
3784
|
const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
|
|
3785
3785
|
userFormContext.countryCode;
|
|
3786
|
-
index_module.
|
|
3786
|
+
index_module.An({
|
|
3787
3787
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3788
3788
|
query: GET_COUNTRIES,
|
|
3789
3789
|
skip: !user,
|
|
3790
3790
|
});
|
|
3791
|
-
const { data: financeNetworkData, refetch } = index_module.
|
|
3791
|
+
const { data: financeNetworkData, refetch } = index_module.An({
|
|
3792
3792
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3793
3793
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3794
3794
|
skip: !user,
|
|
@@ -3796,7 +3796,7 @@ function useTaxAndCash() {
|
|
|
3796
3796
|
filter: getFinanceNetworkFilter(),
|
|
3797
3797
|
},
|
|
3798
3798
|
});
|
|
3799
|
-
const { data: currenciesData } = index_module.
|
|
3799
|
+
const { data: currenciesData } = index_module.An({
|
|
3800
3800
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3801
3801
|
query: GET_CURRENCIES,
|
|
3802
3802
|
skip: !user,
|
|
@@ -3877,14 +3877,14 @@ function useTaxAndCash() {
|
|
|
3877
3877
|
step,
|
|
3878
3878
|
setStep,
|
|
3879
3879
|
context,
|
|
3880
|
-
namespace: index_module
|
|
3880
|
+
namespace: index_module.$n(TAX_CONTEXT_NAMESPACE),
|
|
3881
3881
|
loading: step === "/loading",
|
|
3882
3882
|
};
|
|
3883
3883
|
}
|
|
3884
3884
|
|
|
3885
3885
|
const TaxAndCashMonolith = class {
|
|
3886
3886
|
constructor(hostRef) {
|
|
3887
|
-
index.registerInstance(this, hostRef);
|
|
3887
|
+
index$1.registerInstance(this, hostRef);
|
|
3888
3888
|
/*---------------------------------------------------------------------------------
|
|
3889
3889
|
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
3890
3890
|
-----------------------------------------------------------------------------------*/
|
|
@@ -4763,7 +4763,7 @@ const TaxAndCashMonolith = class {
|
|
|
4763
4763
|
* @uiGroup General Form Properties
|
|
4764
4764
|
*/
|
|
4765
4765
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
4766
|
-
stencilHooks_module.h
|
|
4766
|
+
stencilHooks_module.h(this);
|
|
4767
4767
|
}
|
|
4768
4768
|
disconnectedCallback() { }
|
|
4769
4769
|
// this field is required prop
|
|
@@ -4794,31 +4794,31 @@ const TaxAndCashMonolith = class {
|
|
|
4794
4794
|
// @ts-ignore
|
|
4795
4795
|
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
4796
4796
|
const textProps = utils.getProps(this);
|
|
4797
|
-
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
4797
|
+
return (index$1.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
4798
4798
|
if (prop === "demoData")
|
|
4799
4799
|
return;
|
|
4800
|
-
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
4800
|
+
return (index$1.h("div", null, index$1.h("b", null, prop, ":"), " ", this[prop], index$1.h("hr", null)));
|
|
4801
4801
|
})));
|
|
4802
4802
|
}
|
|
4803
4803
|
switch (props.step) {
|
|
4804
4804
|
case "/1":
|
|
4805
|
-
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
4805
|
+
return (index$1.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
4806
4806
|
case "/2":
|
|
4807
|
-
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
4807
|
+
return (index$1.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
4808
4808
|
case "/3":
|
|
4809
|
-
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
4809
|
+
return (index$1.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
4810
4810
|
case "/4":
|
|
4811
|
-
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
4811
|
+
return (index$1.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
4812
4812
|
case "/dashboard":
|
|
4813
|
-
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
4813
|
+
return (index$1.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
4814
4814
|
case "/error":
|
|
4815
|
-
return (index.h(sqmInvoiceTableView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
4815
|
+
return (index$1.h(sqmInvoiceTableView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
4816
4816
|
}
|
|
4817
|
-
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
4817
|
+
return index$1.h(sqmInvoiceTableView.LoadingView, null);
|
|
4818
4818
|
}
|
|
4819
4819
|
};
|
|
4820
4820
|
function useDemoTaxAndCash(props) {
|
|
4821
|
-
const [step, setStep] = index_module.
|
|
4821
|
+
const [step, setStep] = index_module.Fn({
|
|
4822
4822
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4823
4823
|
initialValue: "/1",
|
|
4824
4824
|
});
|
|
@@ -4989,17 +4989,17 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4989
4989
|
var _a;
|
|
4990
4990
|
const { states, text, callbacks, slots } = props;
|
|
4991
4991
|
const statusMap = {
|
|
4992
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4993
|
-
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4994
|
-
index.h("p", null, global.intl.formatMessage({
|
|
4992
|
+
NOT_VERIFIED: (index$1.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4993
|
+
index$1.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4994
|
+
index$1.h("p", null, global.intl.formatMessage({
|
|
4995
4995
|
id: `badgeTextAwaitingReview`,
|
|
4996
4996
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
4997
4997
|
}, {
|
|
4998
4998
|
dateSubmitted: states.dateSubmitted,
|
|
4999
4999
|
})))),
|
|
5000
|
-
ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5001
|
-
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5002
|
-
index.h("p", null, global.intl.formatMessage({
|
|
5000
|
+
ACTIVE: (index$1.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5001
|
+
index$1.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5002
|
+
index$1.h("p", null, global.intl.formatMessage({
|
|
5003
5003
|
id: `badgeTextSubmittedOn`,
|
|
5004
5004
|
defaultMessage: states.documentType === "W9"
|
|
5005
5005
|
? text.badgeTextSubmittedOn
|
|
@@ -5007,14 +5007,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5007
5007
|
}, {
|
|
5008
5008
|
dateSubmitted: states.dateSubmitted,
|
|
5009
5009
|
})))),
|
|
5010
|
-
INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5011
|
-
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5012
|
-
index.h("p", null, text.invalidForm))),
|
|
5010
|
+
INACTIVE: (index$1.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5011
|
+
index$1.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5012
|
+
index$1.h("p", null, text.invalidForm))),
|
|
5013
5013
|
};
|
|
5014
5014
|
const alertMap = {
|
|
5015
|
-
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5016
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5017
|
-
index.h("strong", null, global.intl.formatMessage({
|
|
5015
|
+
INACTIVE: (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5016
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5017
|
+
index$1.h("strong", null, global.intl.formatMessage({
|
|
5018
5018
|
id: `taxAlertHeaderNotActive`,
|
|
5019
5019
|
defaultMessage: states.documentType === "W9"
|
|
5020
5020
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -5022,7 +5022,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5022
5022
|
}, {
|
|
5023
5023
|
documentType: states.documentTypeString,
|
|
5024
5024
|
})),
|
|
5025
|
-
index.h("br", null),
|
|
5025
|
+
index$1.h("br", null),
|
|
5026
5026
|
global.intl.formatMessage({
|
|
5027
5027
|
id: `taxAlertMessage`,
|
|
5028
5028
|
defaultMessage: states.documentType === "W9"
|
|
@@ -5060,66 +5060,66 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5060
5060
|
});
|
|
5061
5061
|
}
|
|
5062
5062
|
};
|
|
5063
|
-
return (index.h("div", null,
|
|
5064
|
-
index.h("div", null,
|
|
5065
|
-
index.h("style", { type: "text/css" }, styleString$4),
|
|
5066
|
-
states.loadingError && (index.h("div", null,
|
|
5067
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5068
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5069
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5070
|
-
index.h("br", null),
|
|
5063
|
+
return (index$1.h("div", null,
|
|
5064
|
+
index$1.h("div", null,
|
|
5065
|
+
index$1.h("style", { type: "text/css" }, styleString$4),
|
|
5066
|
+
states.loadingError && (index$1.h("div", null,
|
|
5067
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5068
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5069
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5070
|
+
index$1.h("br", null),
|
|
5071
5071
|
text.error.loadingErrorAlertDescription))),
|
|
5072
|
-
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5073
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5074
|
-
index.h("strong", null, text.error.generalTitle),
|
|
5075
|
-
index.h("br", null),
|
|
5072
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5073
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5074
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
5075
|
+
index$1.h("br", null),
|
|
5076
5076
|
text.error.generalDescription)),
|
|
5077
|
-
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5078
|
-
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5079
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5080
|
-
index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5077
|
+
index$1.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5078
|
+
index$1.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5079
|
+
index$1.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5080
|
+
index$1.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5081
5081
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5082
|
-
index.h("div", null,
|
|
5083
|
-
index.h("h3", null, text.bankingInformationSectionHeader),
|
|
5084
|
-
index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5085
|
-
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5082
|
+
index$1.h("div", null,
|
|
5083
|
+
index$1.h("h3", null, text.bankingInformationSectionHeader),
|
|
5084
|
+
index$1.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5085
|
+
index$1.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5086
5086
|
slots.payoutDetailsCardSlot,
|
|
5087
|
-
!states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5088
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5089
|
-
index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
5090
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5091
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5092
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
5093
|
-
index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5094
|
-
index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
5095
|
-
index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5096
|
-
index.h("div", { class: sheet$4.classes.StatusContainer },
|
|
5097
|
-
index.h("h3", null, global.intl.formatMessage({
|
|
5087
|
+
!states.loading && (index$1.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5088
|
+
states.canEditPayoutInfo && (index$1.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5089
|
+
index$1.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
5090
|
+
index$1.h("div", null, states.loading ? (index$1.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5091
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5092
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index$1.h("div", null, states.noFormNeeded ? (index$1.h("div", null,
|
|
5093
|
+
index$1.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5094
|
+
index$1.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index$1.h("div", null,
|
|
5095
|
+
index$1.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5096
|
+
index$1.h("div", { class: sheet$4.classes.StatusContainer },
|
|
5097
|
+
index$1.h("h3", null, global.intl.formatMessage({
|
|
5098
5098
|
id: "section-subheader",
|
|
5099
5099
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5100
5100
|
}, {
|
|
5101
5101
|
documentType: states.documentTypeString,
|
|
5102
5102
|
})),
|
|
5103
|
-
index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
5104
|
-
index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton))))))),
|
|
5105
|
-
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5106
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5107
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
5108
|
-
index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5103
|
+
index$1.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
5104
|
+
index$1.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton))))))),
|
|
5105
|
+
index$1.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index$1.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5106
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5107
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index$1.h("div", null,
|
|
5108
|
+
index$1.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5109
5109
|
text.indirectTaxInfoSectionHeader,
|
|
5110
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
5111
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
5112
|
-
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
5113
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, text.notRegisteredForTax)) : (getIndirectTaxRegisteredIn())),
|
|
5114
|
-
!states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5115
|
-
index.h("span", null, global.intl.formatMessage({
|
|
5110
|
+
index$1.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
5111
|
+
index$1.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
5112
|
+
index$1.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
5113
|
+
index$1.h("span", null, states.notRegistered ? (index$1.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, text.notRegisteredForTax)) : (getIndirectTaxRegisteredIn())),
|
|
5114
|
+
!states.notRegistered && (index$1.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5115
|
+
index$1.h("span", null, global.intl.formatMessage({
|
|
5116
5116
|
id: `indirectTaxDetails`,
|
|
5117
5117
|
defaultMessage: text.indirectTaxDetails,
|
|
5118
5118
|
}, {
|
|
5119
5119
|
indirectTaxType: states.indirectTaxType,
|
|
5120
5120
|
indirectTaxNumber: states.indirectTaxNumber,
|
|
5121
5121
|
})),
|
|
5122
|
-
index.h("span", null,
|
|
5122
|
+
index$1.h("span", null,
|
|
5123
5123
|
states.qstNumber &&
|
|
5124
5124
|
global.intl.formatMessage({
|
|
5125
5125
|
id: `qstNumber`,
|
|
@@ -5134,14 +5134,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5134
5134
|
}, {
|
|
5135
5135
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5136
5136
|
})))),
|
|
5137
|
-
!states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5138
|
-
index.h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
|
|
5139
|
-
index.h("sqm-invoice-table-download-column", null),
|
|
5140
|
-
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
5141
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.invoiceColumnTitle, property: "invoiceId" }),
|
|
5142
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.earningsColumnTitle, property: "earnings" }),
|
|
5143
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.indirectTaxColumnTitle, property: "indirectTax" }),
|
|
5144
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
5137
|
+
!states.notRegistered && (index$1.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5138
|
+
index$1.h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
|
|
5139
|
+
index$1.h("sqm-invoice-table-download-column", null),
|
|
5140
|
+
index$1.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
5141
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.invoiceColumnTitle, property: "invoiceId" }),
|
|
5142
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.earningsColumnTitle, property: "earnings" }),
|
|
5143
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.indirectTaxColumnTitle, property: "indirectTax" }),
|
|
5144
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
5145
5145
|
};
|
|
5146
5146
|
|
|
5147
5147
|
function getCountryName(countryCode, locale) {
|
|
@@ -5180,15 +5180,15 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5180
5180
|
}
|
|
5181
5181
|
const useTaxAndCashDashboard = (props) => {
|
|
5182
5182
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5183
|
-
const setStep = index_module.
|
|
5184
|
-
const setContext = index_module.
|
|
5183
|
+
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
5184
|
+
const setContext = index_module.Sn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5185
5185
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
5186
|
-
const locale = index_module.
|
|
5186
|
+
const locale = index_module.Q();
|
|
5187
5187
|
stencilHooks_module.useEffect(() => {
|
|
5188
5188
|
// Clear override context once on submitted
|
|
5189
5189
|
setContext({});
|
|
5190
5190
|
}, []);
|
|
5191
|
-
const { data, loading, errors: userError, } = index_module.
|
|
5191
|
+
const { data, loading, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
5192
5192
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
5193
5193
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5194
5194
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5247,7 +5247,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5247
5247
|
|
|
5248
5248
|
const TaxAndCashDashboard = class {
|
|
5249
5249
|
constructor(hostRef) {
|
|
5250
|
-
index.registerInstance(this, hostRef);
|
|
5250
|
+
index$1.registerInstance(this, hostRef);
|
|
5251
5251
|
/**
|
|
5252
5252
|
* @uiName Active tax form badge label
|
|
5253
5253
|
*/
|
|
@@ -5507,7 +5507,7 @@ const TaxAndCashDashboard = class {
|
|
|
5507
5507
|
* @uiName Cancel button label
|
|
5508
5508
|
*/
|
|
5509
5509
|
this.cancelButton = "Cancel";
|
|
5510
|
-
stencilHooks_module.h
|
|
5510
|
+
stencilHooks_module.h(this);
|
|
5511
5511
|
}
|
|
5512
5512
|
disconnectedCallback() { }
|
|
5513
5513
|
getTextProps() {
|
|
@@ -5526,8 +5526,8 @@ const TaxAndCashDashboard = class {
|
|
|
5526
5526
|
const props = index_module.isDemo()
|
|
5527
5527
|
? useDemoTaxAndCashDashboard(this)
|
|
5528
5528
|
: useTaxAndCashDashboard(this);
|
|
5529
|
-
return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
5530
|
-
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
5529
|
+
return (index$1.h(index$1.Host, null, index$1.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
5530
|
+
payoutDetailsCardSlot: (index$1.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
5531
5531
|
} })));
|
|
5532
5532
|
}
|
|
5533
5533
|
};
|
|
@@ -6641,7 +6641,7 @@ const UserInfoFormView = (props) => {
|
|
|
6641
6641
|
id: "bankingCollectionText",
|
|
6642
6642
|
defaultMessage: text.allowBankingCollection,
|
|
6643
6643
|
}, {
|
|
6644
|
-
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
6644
|
+
termsAndConditionsLink: (index$1.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
6645
6645
|
});
|
|
6646
6646
|
let regionLabel = undefined;
|
|
6647
6647
|
switch (data.regionLabelEnum) {
|
|
@@ -6657,68 +6657,68 @@ const UserInfoFormView = (props) => {
|
|
|
6657
6657
|
default:
|
|
6658
6658
|
regionLabel = text.state;
|
|
6659
6659
|
}
|
|
6660
|
-
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6661
|
-
index.h("style", { type: "text/css" },
|
|
6660
|
+
return (index$1.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6661
|
+
index$1.h("style", { type: "text/css" },
|
|
6662
6662
|
styleString$5,
|
|
6663
6663
|
vanillaStyle$3),
|
|
6664
|
-
states.loadingError && (index.h("div", null,
|
|
6665
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
|
|
6666
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6667
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6668
|
-
index.h("br", null),
|
|
6664
|
+
states.loadingError && (index$1.h("div", null,
|
|
6665
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
|
|
6666
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6667
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6668
|
+
index$1.h("br", null),
|
|
6669
6669
|
text.error.loadingErrorAlertDescription),
|
|
6670
|
-
index.h("br", null))),
|
|
6671
|
-
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
6672
|
-
index.h("div", { class: classes.TextContainer },
|
|
6673
|
-
index.h("div", null,
|
|
6674
|
-
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
6670
|
+
index$1.h("br", null))),
|
|
6671
|
+
states.loading ? (index$1.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index$1.h("div", null,
|
|
6672
|
+
index$1.h("div", { class: classes.TextContainer },
|
|
6673
|
+
index$1.h("div", null,
|
|
6674
|
+
!states.hideSteps && (index$1.h("p", null, global.intl.formatMessage({
|
|
6675
6675
|
id: "formStep",
|
|
6676
6676
|
defaultMessage: text.formStep,
|
|
6677
6677
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
6678
|
-
index.h("h3", null, text.personalInformation),
|
|
6679
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6680
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
|
|
6681
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6682
|
-
index.h("strong", null, text.error.generalTitle),
|
|
6683
|
-
index.h("br", null),
|
|
6678
|
+
index$1.h("h3", null, text.personalInformation),
|
|
6679
|
+
index$1.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6680
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
|
|
6681
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6682
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
6683
|
+
index$1.h("br", null),
|
|
6684
6684
|
text.error.generalDescription)),
|
|
6685
|
-
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
6686
|
-
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6687
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
6688
|
-
index.h("br", null),
|
|
6685
|
+
(states.isPartner || states.isUser) && (index$1.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
6686
|
+
index$1.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6687
|
+
index$1.h("strong", null, text.isPartnerAlertHeader),
|
|
6688
|
+
index$1.h("br", null),
|
|
6689
6689
|
text.isPartnerAlertDescription)),
|
|
6690
|
-
index.h("div", null,
|
|
6691
|
-
index.h("div", { class: classes.InputContainer },
|
|
6692
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
6690
|
+
index$1.h("div", null,
|
|
6691
|
+
index$1.h("div", { class: classes.InputContainer },
|
|
6692
|
+
index$1.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
6693
6693
|
class: classes.ErrorInput,
|
|
6694
6694
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
6695
6695
|
}
|
|
6696
6696
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
6697
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
6697
|
+
index$1.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
6698
6698
|
class: classes.ErrorInput,
|
|
6699
6699
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
6700
6700
|
}
|
|
6701
6701
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
6702
|
-
index.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
6703
|
-
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
6702
|
+
index$1.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
6703
|
+
index$1.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
6704
6704
|
class: classes.ErrorInput,
|
|
6705
6705
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
6706
6706
|
}
|
|
6707
6707
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
6708
|
-
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6708
|
+
index$1.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6709
6709
|
// Stop shoelace intercepting key presses
|
|
6710
6710
|
e.stopPropagation();
|
|
6711
6711
|
}, "onSl-input": (e) => {
|
|
6712
6712
|
callbacks.setCountrySearch(e.target.value);
|
|
6713
6713
|
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
6714
|
-
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
6715
|
-
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6716
|
-
index.h("div", { style: { display: "flex", gap: "4px", alignItems: "flex-end" } },
|
|
6717
|
-
index.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", label: text.phoneNumber, style: { minWidth: "120px" }, value: formState.phoneNumberCountryCode, disabled: states.disabled || states.isPartner, ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
|
|
6714
|
+
_e.map((c) => (index$1.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
6715
|
+
_f.map((c) => (index$1.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6716
|
+
index$1.h("div", { style: { display: "flex", gap: "4px", alignItems: "flex-end" } },
|
|
6717
|
+
index$1.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", label: text.phoneNumber, style: { minWidth: "120px" }, value: formState.phoneNumberCountryCode, disabled: states.disabled || states.isPartner, ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
|
|
6718
6718
|
class: classes.ErrorInput,
|
|
6719
6719
|
}
|
|
6720
6720
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
|
|
6721
|
-
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6721
|
+
index$1.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6722
6722
|
// Stop shoelace intercepting key presses
|
|
6723
6723
|
e.stopPropagation();
|
|
6724
6724
|
}, "onSl-input": (e) => {
|
|
@@ -6726,17 +6726,17 @@ const UserInfoFormView = (props) => {
|
|
|
6726
6726
|
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
6727
6727
|
_h.map((c) => {
|
|
6728
6728
|
var _a, _b;
|
|
6729
|
-
return (index.h("sl-menu-item", { style: { width: "500px" }, value: c.countryCode },
|
|
6730
|
-
index.h("div", { slot: "prefix", style: { marginRight: "8px" } }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6729
|
+
return (index$1.h("sl-menu-item", { style: { width: "500px" }, value: c.countryCode },
|
|
6730
|
+
index$1.h("div", { slot: "prefix", style: { marginRight: "8px" } }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6731
6731
|
_b.dial_code));
|
|
6732
6732
|
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
6733
6733
|
_j.map((c) => {
|
|
6734
6734
|
var _a, _b;
|
|
6735
|
-
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
6736
|
-
index.h("div", { slot: "prefix", style: { marginRight: "8px" } }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6735
|
+
return (index$1.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
6736
|
+
index$1.h("div", { slot: "prefix", style: { marginRight: "8px" } }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6737
6737
|
_b.dial_code));
|
|
6738
6738
|
})),
|
|
6739
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: " ", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, style: { marginTop: "2px", width: "362px" }, validationError: ({ value }) =>
|
|
6739
|
+
index$1.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: " ", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, style: { marginTop: "2px", width: "362px" }, validationError: ({ value }) =>
|
|
6740
6740
|
// Naive phone number validation
|
|
6741
6741
|
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
6742
6742
|
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError), disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
@@ -6744,7 +6744,7 @@ const UserInfoFormView = (props) => {
|
|
|
6744
6744
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6745
6745
|
}
|
|
6746
6746
|
: {}), { required: true }))),
|
|
6747
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
6747
|
+
index$1.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
6748
6748
|
// Checks for non-ASCII characters
|
|
6749
6749
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6750
6750
|
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
@@ -6752,7 +6752,7 @@ const UserInfoFormView = (props) => {
|
|
|
6752
6752
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
6753
6753
|
}
|
|
6754
6754
|
: {}), { required: true })),
|
|
6755
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
6755
|
+
index$1.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
6756
6756
|
// Checks for non-ASCII characters
|
|
6757
6757
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6758
6758
|
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
@@ -6760,41 +6760,41 @@ const UserInfoFormView = (props) => {
|
|
|
6760
6760
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
6761
6761
|
}
|
|
6762
6762
|
: {}), { required: true })),
|
|
6763
|
-
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
6763
|
+
!states.hideState && (index$1.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
6764
6764
|
class: classes.ErrorInput,
|
|
6765
6765
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
6766
6766
|
}
|
|
6767
|
-
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6768
|
-
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
6767
|
+
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index$1.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6768
|
+
index$1.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
6769
6769
|
class: classes.ErrorInput,
|
|
6770
6770
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
6771
6771
|
}
|
|
6772
6772
|
: {}), { required: true })),
|
|
6773
|
-
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
|
|
6773
|
+
index$1.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
|
|
6774
6774
|
class: classes.ErrorInput,
|
|
6775
6775
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
6776
6776
|
}
|
|
6777
6777
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
6778
|
-
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
6778
|
+
index$1.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
6779
6779
|
// Stop shoelace intercepting key presses
|
|
6780
6780
|
e.stopPropagation();
|
|
6781
6781
|
}, "onSl-input": (e) => {
|
|
6782
6782
|
callbacks.setCurrencySearch(e.target.value);
|
|
6783
6783
|
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6784
|
-
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
6784
|
+
_s.map((c) => (index$1.h("sl-menu-item", { value: c.currencyCode },
|
|
6785
6785
|
c.currencyCode,
|
|
6786
6786
|
" - ",
|
|
6787
6787
|
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6788
|
-
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6788
|
+
_t.map((c) => (index$1.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6789
6789
|
c.currencyCode,
|
|
6790
6790
|
" - ",
|
|
6791
6791
|
c.displayName)))),
|
|
6792
|
-
index.h("div", { class: classes.CheckboxWrapper },
|
|
6793
|
-
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6792
|
+
index$1.h("div", { class: classes.CheckboxWrapper },
|
|
6793
|
+
index$1.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6794
6794
|
e.target.value = e.target.checked;
|
|
6795
6795
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
6796
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
6797
|
-
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6796
|
+
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index$1.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
6797
|
+
index$1.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6798
6798
|
};
|
|
6799
6799
|
|
|
6800
6800
|
function useUserInfoForm(props) {
|
|
@@ -6802,12 +6802,12 @@ function useUserInfoForm(props) {
|
|
|
6802
6802
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
6803
6803
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
6804
6804
|
const formRef = stencilHooks_module.useRef(null);
|
|
6805
|
-
const context = index_module.
|
|
6806
|
-
const countries = index_module.
|
|
6807
|
-
const [step, setStep] = index_module.
|
|
6808
|
-
const [userFormContext, setUserFormContext] = index_module.
|
|
6809
|
-
const { data, loading, errors: userError, } = index_module.
|
|
6810
|
-
const _currencies = index_module.
|
|
6805
|
+
const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6806
|
+
const countries = index_module.Dn(SORTED_COUNTRIES_NAMESPACE);
|
|
6807
|
+
const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
|
|
6808
|
+
const [userFormContext, setUserFormContext] = index_module.Mn(USER_FORM_CONTEXT_NAMESPACE);
|
|
6809
|
+
const { data, loading, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
6810
|
+
const _currencies = index_module.Dn(CURRENCIES_NAMESPACE);
|
|
6811
6811
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6812
6812
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
6813
6813
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -6991,7 +6991,7 @@ function useUserInfoForm(props) {
|
|
|
6991
6991
|
|
|
6992
6992
|
const TaxForm = class {
|
|
6993
6993
|
constructor(hostRef) {
|
|
6994
|
-
index.registerInstance(this, hostRef);
|
|
6994
|
+
index$1.registerInstance(this, hostRef);
|
|
6995
6995
|
this.ignored = true;
|
|
6996
6996
|
/**
|
|
6997
6997
|
* @uiName First name field label
|
|
@@ -7139,7 +7139,7 @@ const TaxForm = class {
|
|
|
7139
7139
|
* @uiName Page description
|
|
7140
7140
|
*/
|
|
7141
7141
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
7142
|
-
stencilHooks_module.h
|
|
7142
|
+
stencilHooks_module.h(this);
|
|
7143
7143
|
}
|
|
7144
7144
|
disconnectedCallback() { }
|
|
7145
7145
|
getTextProps() {
|
|
@@ -7159,7 +7159,7 @@ const TaxForm = class {
|
|
|
7159
7159
|
}
|
|
7160
7160
|
render() {
|
|
7161
7161
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
7162
|
-
return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
|
|
7162
|
+
return (index$1.h(index$1.Host, null, index$1.h(UserInfoFormView, { data: props.data,
|
|
7163
7163
|
// @ts-ignore
|
|
7164
7164
|
states: props.states, callbacks: {
|
|
7165
7165
|
...props.callbacks,
|
|
@@ -7168,7 +7168,7 @@ const TaxForm = class {
|
|
|
7168
7168
|
}
|
|
7169
7169
|
};
|
|
7170
7170
|
function useDemoUserInfoForm(props) {
|
|
7171
|
-
const setStep = index_module.
|
|
7171
|
+
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
7172
7172
|
return cjs.cjs({
|
|
7173
7173
|
setStep,
|
|
7174
7174
|
onSubmit: () => {
|